138 lines
936 KiB
JavaScript
138 lines
936 KiB
JavaScript
!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s="c0dd")}({"+NP7":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(e){i(this,t),this._configurations=e}return o(t,[{key:"get",value:function(t){return this._configurations[t]}},{key:"has",value:function(t){return t in this._configurations}}]),t}();e.a=r},"/TWM":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=n("PJh5"),c=n.n(u),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),h=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),d(e,[{key:"getId",value:function(){return"date-range-picker"}},{key:"init",value:function(){this.activateDateRangePicker(this.selector)}},{key:"activateDateRangePicker",value:function(t){var e=this.getContainer().getTranslation();a()(t+' input[data-daterangepickerenable="on"]').each(function(t){var n=a()(this).data("format"),i=a()(this).data("separator"),o={};o[e.get("today")]=[c()(),c()()],o[e.get("yesterday")]=[c()().subtract(1,"days"),c()().subtract(1,"days")],o[e.get("thisWeek")]=[c()().startOf("week"),c()().endOf("week")],o[e.get("lastWeek")]=[c()().subtract(1,"week").startOf("week"),c()().subtract(1,"week").endOf("week")],o[e.get("thisMonth")]=[c()().startOf("month"),c()().endOf("month")],o[e.get("lastMonth")]=[c()().subtract(1,"month").startOf("month"),c()().subtract(1,"month").endOf("month")],o[e.get("thisYear")]=[c()().startOf("year"),c()().endOf("year")],o[e.get("lastYear")]=[c()().subtract(1,"year").startOf("year"),c()().subtract(1,"year").endOf("year")],a()(this).daterangepicker({showDropdowns:!0,autoUpdateInput:!1,autoApply:!1,linkedCalendars:!1,locale:{separator:i,format:n,firstDay:1,applyLabel:e.get("confirm"),cancelLabel:e.get("cancel"),customRangeLabel:e.get("customRange"),daysOfWeek:c.a.weekdaysShort(),monthNames:c.a.months()},ranges:o,alwaysShowCalendars:!0}),a()(this).on("apply.daterangepicker",function(t,e){a()(this).val(e.startDate.format(n)+" - "+e.endDate.format(n)),a()(this).trigger("change")})})}}]),e}(l.a);e.a=h},"1QPC":function(t,e,n){var i,i;/*!
|
||
* Chart.js
|
||
* http://chartjs.org/
|
||
* Version: 2.7.2
|
||
*
|
||
* Copyright 2018 Chart.js Contributors
|
||
* Released under the MIT license
|
||
* https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
|
||
*/
|
||
!function(e){t.exports=e()}(function(){return function t(e,n,o){function r(a,l){if(!n[a]){if(!e[a]){var u="function"==typeof i&&i;if(!l&&u)return i(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[a]={exports:{}};e[a][0].call(d.exports,function(t){return r(e[a][1][t]||t)},d,d.exports,t,e,n,o)}return n[a].exports}for(var s="function"==typeof i&&i,a=0;a<o.length;a++)r(o[a]);return r}({1:[function(t,e,n){},{}],2:[function(t,e,n){function i(t){if(t){var e=[0,0,0],n=1,i=t.match(/^#([a-fA-F0-9]{3})$/i);if(i){i=i[1];for(var o=0;o<e.length;o++)e[o]=parseInt(i[o]+i[o],16)}else if(i=t.match(/^#([a-fA-F0-9]{6})$/i))for(i=i[1],o=0;o<e.length;o++)e[o]=parseInt(i.slice(2*o,2*o+2),16);else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=d[i[1]]))return}for(o=0;o<e.length;o++)e[o]=u(e[o],0,255);return n=n||0==n?u(n,0,1):1,e[3]=n,e}}function o(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[u(parseInt(e[1]),0,360),u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function r(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[u(parseInt(e[1]),0,360),u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function a(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function l(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var d=t(6);e.exports={getRgba:i,getHsla:o,getRgb:function(t){var e=i(t);return e&&e.slice(0,3)},getHsl:function(t){var e=o(t);return e&&e.slice(0,3)},getHwb:r,getAlpha:function(t){var e=i(t);return e?e[3]:(e=o(t))?e[3]:(e=r(t))?e[3]:void 0},hexString:function(t){return"#"+c(t[0])+c(t[1])+c(t[2])},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?s(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){return e<1||t[3]&&t[3]<1?a(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:a,hslString:function(t,e){return e<1||t[3]&&t[3]<1?l(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:l,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return h[t.slice(0,3)]}};var h={};for(var f in d)h[d[f]]=f},{6:6}],3:[function(t,e,n){var i=t(5),o=t(2),r=function(t){return t instanceof r?t:this instanceof r?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=o.getRgba(t))?this.setValues("rgb",e):(e=o.getHsla(t))?this.setValues("hsl",e):(e=o.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new r(t);var e};r.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return o.hexString(this.values.rgb)},rgbString:function(){return o.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return o.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return o.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return o.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return o.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return o.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return o.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,o=void 0===e?.5:e,r=2*o-1,s=n.alpha()-i.alpha(),a=((r*s==-1?r:(r+s)/(1+r*s))+1)/2,l=1-a;return this.rgb(a*n.red()+l*i.red(),a*n.green()+l*i.green(),a*n.blue()+l*i.blue()).alpha(n.alpha()*o+i.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new r,i=this.values,o=n.values;for(var s in i)i.hasOwnProperty(s)&&(t=i[s],"[object Array]"===(e={}.toString.call(t))?o[s]=t.slice(0):"[object Number]"===e?o[s]=t:console.error("unexpected color value:",t));return n}},r.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},r.prototype.setValues=function(t,e){var n,o,r=this.values,s=this.spaces,a=this.maxes,l=1;if(this.valid=!0,"alpha"===t)l=e;else if(e.length)r[t]=e.slice(0,t.length),l=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)r[t][n]=e[t.charAt(n)];l=e.a}else if(void 0!==e[s[t][0]]){var u=s[t];for(n=0;n<t.length;n++)r[t][n]=e[u[n]];l=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===t)return!1;for(n=0;n<t.length;n++)o=Math.max(0,Math.min(a[t][n],r[t][n])),r[t][n]=Math.round(o);for(var c in s)c!==t&&(r[c]=i[t][c](r[t]));return!0},r.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},r.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:n===i[e]?this:(i[e]=n,this.setValues(t,i),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{2:2,5:5}],4:[function(t,e,n){function i(t){var e,n,i=t[0]/255,o=t[1]/255,r=t[2]/255,s=Math.min(i,o,r),a=Math.max(i,o,r),l=a-s;return a==s?e=0:i==a?e=(o-r)/l:o==a?e=2+(r-i)/l:r==a&&(e=4+(i-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(s+a)/2,[e,100*(a==s?0:n<=.5?l/(a+s):l/(2-a-s)),100*n]}function o(t){var e,n,i=t[0],o=t[1],r=t[2],s=Math.min(i,o,r),a=Math.max(i,o,r),l=a-s;return n=0==a?0:l/a*1e3/10,a==s?e=0:i==a?e=(o-r)/l:o==a?e=2+(r-i)/l:r==a&&(e=4+(i-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,a/255*1e3/10]}function s(t){var e=t[0],n=t[1],o=t[2];return[i(t)[0],1/255*Math.min(e,Math.min(n,o))*100,100*(o=1-1/255*Math.max(e,Math.max(n,o)))]}function a(t){var e,n=t[0]/255,i=t[1]/255,o=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-o)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]}function l(t){return S[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function c(t){var e=u(t),n=e[0],i=e[1],o=e[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function d(t){var e,n,i,o,r,s=t[0]/360,a=t[1]/100,l=t[2]/100;if(0==a)return[r=255*l,r,r];e=2*l-(n=l<.5?l*(1+a):l+a-l*a),o=[0,0,0];for(var u=0;u<3;u++)(i=s+1/3*-(u-1))<0&&i++,i>1&&i--,r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,o[u]=255*r;return o}function h(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,o=Math.floor(e)%6,r=e-Math.floor(e),s=255*i*(1-n),a=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,o){case 0:return[i,l,s];case 1:return[a,i,s];case 2:return[s,i,l];case 3:return[s,a,i];case 4:return[l,s,i];case 5:return[i,s,a]}}function f(t){var e,n,i,o,s=t[0]/360,a=t[1]/100,l=t[2]/100,u=a+l;switch(u>1&&(a/=u,l/=u),i=6*s-(e=Math.floor(6*s)),0!=(1&e)&&(i=1-i),o=a+i*((n=1-l)-a),e){default:case 6:case 0:r=n,g=o,b=a;break;case 1:r=o,g=n,b=a;break;case 2:r=a,g=n,b=o;break;case 3:r=a,g=o,b=n;break;case 4:r=o,g=a,b=n;break;case 5:r=n,g=a,b=o}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o))]}function m(t){var e,n,i,o=t[0]/100,r=t[1]/100,s=t[2]/100;return n=-.9689*o+1.8758*r+.0415*s,i=.0557*o+-.204*r+1.057*s,e=(e=3.2406*o+-1.5372*r+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]}function v(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function y(t){var e,n,i,o,r=t[0],s=t[1],a=t[2];return r<=8?o=(n=100*r/903.3)/100*7.787+16/116:(n=100*Math.pow((r+16)/116,3),o=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(s/500+o-16/116)/7.787:95.047*Math.pow(s/500+o,3),n,i=i/108.883<=.008859?i=108.883*(o-a/200-16/116)/7.787:108.883*Math.pow(o-a/200,3)]}function w(t){var e,n=t[0],i=t[1],o=t[2];return(e=360*Math.atan2(o,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+o*o),e]}function _(t){return m(y(t))}function x(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]}function D(t){return k[t]}e.exports={rgb2hsl:i,rgb2hsv:o,rgb2hwb:s,rgb2cmyk:a,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return w(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,i=t[2]/100;return 0===i?[0,0,0]:[e,2*(n*=(i*=2)<=1?i:2-i)/(i+n)*100,(i+n)/2*100]},hsl2hwb:function(t){return s(d(t))},hsl2cmyk:function(t){return a(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,i=t[0],o=t[1]/100,r=t[2]/100;return e=o*r,[i,100*(e=(e/=(n=(2-o)*r)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return s(h(t))},hsv2cmyk:function(t){return a(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return i(f(t))},hwb2hsv:function(t){return o(f(t))},hwb2cmyk:function(t){return a(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return i(p(t))},cmyk2hsv:function(t){return o(p(t))},cmyk2hwb:function(t){return s(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:D,keyword2hsl:function(t){return i(D(t))},keyword2hsv:function(t){return o(D(t))},keyword2hwb:function(t){return s(D(t))},keyword2cmyk:function(t){return a(D(t))},keyword2lab:function(t){return c(D(t))},keyword2xyz:function(t){return u(D(t))},xyz2rgb:m,xyz2lab:v,xyz2lch:function(t){return w(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:w,lch2lab:x,lch2xyz:function(t){return y(x(t))},lch2rgb:function(t){return _(x(t))}};var k={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},S={};for(var M in k)S[JSON.stringify(k[M])]=M},{}],5:[function(t,e,n){var i=t(4),o=function(){return new u};for(var r in i){o[r+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(r);var s=/(\w+)2(\w+)/.exec(r),a=s[1],l=s[2];(o[a]=o[a]||{})[l]=o[r]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var o=0;o<n.length;o++)n[o]=Math.round(n[o]);return n}}(r)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var n=this.space,i=this.convs[n];e=o[n][t](i),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){u.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=o},{4:4}],6:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(t,e,n){var i=t(29)();i.helpers=t(45),t(27)(i),i.defaults=t(25),i.Element=t(26),i.elements=t(40),i.Interaction=t(28),i.layouts=t(30),i.platform=t(48),i.plugins=t(31),i.Ticks=t(34),t(22)(i),t(23)(i),t(24)(i),t(33)(i),t(32)(i),t(35)(i),t(55)(i),t(53)(i),t(54)(i),t(56)(i),t(57)(i),t(58)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(21)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var o=t(49);for(var r in o)o.hasOwnProperty(r)&&i.plugins.register(o[r]);i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.Legend=o.legend._element,i.Title=o.title._element,i.pluginService=i.plugins,i.PluginBase=i.Element.extend({}),i.canvasHelpers=i.helpers.canvas,i.layoutService=i.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t){t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return t.length>0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(t){t.controllers.bar=t.DatasetController.extend({dataElementType:o.Rectangle,initialize:function(){var e;t.DatasetController.prototype.initialize.apply(this,arguments),(e=this.getMeta()).stack=this.getDataset().stack,e.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,o=i.chart,s=i.getMeta(),a=i.getDataset(),l=t.custom||{},u=o.options.elements.rectangle;t._xScale=i.getScaleForId(s.xAxisID),t._yScale=i.getScaleForId(s.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:a.label,label:o.data.labels[e],borderSkipped:l.borderSkipped?l.borderSkipped:u.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:r.valueAtIndexOrDefault(a.backgroundColor,e,u.backgroundColor),borderColor:l.borderColor?l.borderColor:r.valueAtIndexOrDefault(a.borderColor,e,u.borderColor),borderWidth:l.borderWidth?l.borderWidth:r.valueAtIndexOrDefault(a.borderWidth,e,u.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,o=t._model,r=i.getValueScale(),s=r.getBasePixel(),a=r.isHorizontal(),l=i._ruler||i.getRuler(),u=i.calculateBarValuePixels(i.index,e),c=i.calculateBarIndexPixels(i.index,e,l);o.horizontal=a,o.base=n?s:u.base,o.x=a?n?s:u.head:c.center,o.y=a?c.center:n?s:u.head,o.height=a?c.size:void 0,o.width=a?void 0:c.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){var e,n,i=this.chart,o=this.getIndexScale().options.stacked,r=void 0===t?i.data.datasets.length:t+1,s=[];for(e=0;e<r;++e)(n=i.getDatasetMeta(e)).bar&&i.isDatasetVisible(e)&&(!1===o||!0===o&&-1===s.indexOf(n.stack)||void 0===o&&(void 0===n.stack||-1===s.indexOf(n.stack)))&&s.push(n.stack);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),i=void 0!==e?n.indexOf(e):-1;return-1===i?n.length-1:i},getRuler:function(){var t,e,n=this.getIndexScale(),i=this.getStackCount(),o=this.index,s=n.isHorizontal(),a=s?n.left:n.top,l=a+(s?n.width:n.height),u=[];for(t=0,e=this.getMeta().data.length;t<e;++t)u.push(n.getPixelForValue(null,t,o));return{min:r.isNullOrUndef(n.options.barThickness)?function(t,e){var n,i,o,r,s=t.isHorizontal()?t.width:t.height,a=t.getTicks();for(o=1,r=e.length;o<r;++o)s=Math.min(s,e[o]-e[o-1]);for(o=0,r=a.length;o<r;++o)i=t.getPixelForTick(o),s=o>0?Math.min(s,i-n):s,n=i;return s}(n,u):-1,pixels:u,start:a,end:l,stackCount:i,scale:n}},calculateBarValuePixels:function(t,e){var n,i,o,r,s,a,l=this.chart,u=this.getMeta(),c=this.getValueScale(),d=l.data.datasets,h=c.getRightValue(d[t].data[e]),f=c.options.stacked,p=u.stack,m=0;if(f||void 0===f&&void 0!==p)for(n=0;n<t;++n)(i=l.getDatasetMeta(n)).bar&&i.stack===p&&i.controller.getValueScaleId()===c.id&&l.isDatasetVisible(n)&&(o=c.getRightValue(d[n].data[e]),(h<0&&o<0||h>=0&&o>0)&&(m+=o));return r=c.getPixelForValue(m),{size:a=((s=c.getPixelForValue(m+h))-r)/2,base:r,head:s,center:s+a/2}},calculateBarIndexPixels:function(t,e,n){var i,o,s,a,l,u,c,d,h,f,p,m,g,v,y,b,w,_=n.scale.options,x="flex"===_.barThickness?(h=e,p=_,g=(f=n).pixels,v=g[h],y=h>0?g[h-1]:null,b=h<g.length-1?g[h+1]:null,w=p.categoryPercentage,null===y&&(y=v-(null===b?f.end-v:b-v)),null===b&&(b=v+v-y),m=v-(v-y)/2*w,{chunk:(b-y)/2*w/f.stackCount,ratio:p.barPercentage,start:m}):(i=e,o=n,u=(s=_).barThickness,c=o.stackCount,d=o.pixels[i],r.isNullOrUndef(u)?(a=o.min*s.categoryPercentage,l=s.barPercentage):(a=u*c,l=1),{chunk:a/c,ratio:l,start:d-a/2}),D=this.getStackIndex(t,this.getMeta().stack),k=x.start+x.chunk*D+x.chunk/2,S=Math.min(r.valueOrDefault(_.maxBarThickness,1/0),x.chunk*x.ratio);return{base:k-S/2,head:k+S/2,center:k,size:S}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),o=n.length,s=0;for(r.canvas.clipArea(t.ctx,t.chartArea);s<o;++s)isNaN(e.getRightValue(i.data[s]))||n[s].draw();r.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},o=t._model;o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:r.valueAtIndexOrDefault(e.hoverBackgroundColor,n,r.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:r.valueAtIndexOrDefault(e.hoverBorderColor,n,r.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:r.valueAtIndexOrDefault(e.hoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},o=t._model,s=this.chart.options.elements.rectangle;o.backgroundColor=i.backgroundColor?i.backgroundColor:r.valueAtIndexOrDefault(e.backgroundColor,n,s.backgroundColor),o.borderColor=i.borderColor?i.borderColor:r.valueAtIndexOrDefault(e.borderColor,n,s.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:r.valueAtIndexOrDefault(e.borderWidth,n,s.borderWidth)}}),t.controllers.horizontalBar=t.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",i=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+i.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:o.Point,update:function(t){var e=this,n=e.getMeta().data;r.each(n,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,o=i.getMeta(),r=t.custom||{},s=i.getScaleForId(o.xAxisID),a=i.getScaleForId(o.yAxisID),l=i._resolveElementOptions(t,e),u=i.getDataset().data[e],c=i.index,d=n?s.getPixelForDecimal(.5):s.getPixelForValue("object"==typeof u?u:NaN,e,c),h=n?a.getBasePixel():a.getPixelForValue(u,e,c);t._xScale=s,t._yScale=a,t._options=l,t._datasetIndex=c,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:n?0:l.radius,skip:r.skip||isNaN(d)||isNaN(h),x:d,y:h},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options;e.backgroundColor=r.valueOrDefault(n.hoverBackgroundColor,r.getHoverColor(n.backgroundColor)),e.borderColor=r.valueOrDefault(n.hoverBorderColor,r.getHoverColor(n.borderColor)),e.borderWidth=r.valueOrDefault(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},removeHoverStyle:function(t){var e=t._model,n=t._options;e.backgroundColor=n.backgroundColor,e.borderColor=n.borderColor,e.borderWidth=n.borderWidth,e.radius=n.radius},_resolveElementOptions:function(t,e){var n,i,o,s=this.chart,a=s.data.datasets[this.index],l=t.custom||{},u=s.options.elements.point,c=r.options.resolve,d=a.data[e],h={},f={chart:s,dataIndex:e,dataset:a,datasetIndex:this.index},p=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"];for(n=0,i=p.length;n<i;++n)h[o=p[n]]=c([l[o],a[o],u[o]],f,e);return h.radius=c([l.radius,d?d.r:void 0,a.radius,u.radius],f,e),h}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,o=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)e.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),o[r]&&e.push(o[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var o=t.getDatasetMeta(0),s=e.datasets[0],a=o.data[i],l=a&&a.custom||{},u=r.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(s.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(s.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(s.borderWidth,i,c.borderWidth),hidden:isNaN(s.data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,o,r=e.index,s=this.chart;for(n=0,i=(s.data.datasets||[]).length;n<i;++n)(o=s.getDatasetMeta(n)).data[r]&&(o.data[r].hidden=!o.data[r].hidden);s.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],i=": "+e.datasets[t.datasetIndex].data[t.index];return r.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}}),i._set("pie",r.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(t){t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:o.Arc,linkScales:r.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e=this,n=e.chart,i=n.chartArea,o=n.options,s=o.elements.arc,a=i.right-i.left-s.borderWidth,l=i.bottom-i.top-s.borderWidth,u=Math.min(a,l),c={x:0,y:0},d=e.getMeta(),h=o.cutoutPercentage,f=o.circumference;if(f<2*Math.PI){var p=o.rotation%(2*Math.PI),m=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+f,g=Math.cos(p),v=Math.sin(p),y=Math.cos(m),b=Math.sin(m),w=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,_=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,x=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,D=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,k=h/100,S=x?-1:Math.min(g*(g<0?1:k),y*(y<0?1:k)),M=D?-1:Math.min(v*(v<0?1:k),b*(b<0?1:k)),C=w?1:Math.max(g*(g>0?1:k),y*(y>0?1:k)),T=_?1:Math.max(v*(v>0?1:k),b*(b>0?1:k)),E=.5*(C-S),P=.5*(T-M);u=Math.min(a/E,l/P),c={x:-.5*(C+S),y:-.5*(T+M)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),r.each(d.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,o=i.chart,s=o.chartArea,a=o.options,l=a.animation,u=(s.left+s.right)/2,c=(s.top+s.bottom)/2,d=a.rotation,h=a.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(a.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,v=r.valueAtIndexOrDefault;r.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+o.offsetX,y:c+o.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:g,innerRadius:m,label:v(f.label,e,o.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(y.startAngle=0===e?a.rotation:i.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return r.each(n.data,function(n,o){t=e.data[o],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,o=this.index,r=t.length,s=0;s<r;s++)e=t[s]._model?t[s]._model.borderWidth:0,i=(n=t[s]._chart?t[s]._chart.config.data.datasets[o].hoverBorderWidth:0)>(i=e>i?e:i)?n:i;return i}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return r.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function(t){var n,i,o,s=this,a=s.getMeta(),l=a.dataset,u=a.data||[],c=s.chart.options,d=c.elements.line,h=s.getScaleForId(a.yAxisID),f=s.getDataset(),p=e(f,c);for(p&&(o=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=s.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:o.tension?o.tension:r.valueOrDefault(f.lineTension,d.tension),backgroundColor:o.backgroundColor?o.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:f.borderWidth||d.borderWidth,borderColor:o.borderColor?o.borderColor:f.borderColor||d.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:o.borderDash?o.borderDash:f.borderDash||d.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:o.fill?o.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:o.steppedLine?o.steppedLine:r.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:o.cubicInterpolationMode?o.cubicInterpolationMode:r.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n<i;++n)s.updateElement(u[n],n,t);for(p&&0!==l._model.tension&&s.updateBezierControlPoints(),n=0,i=u.length;n<i;++n)u[n].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),o=t.custom||{};return o.backgroundColor?n=o.backgroundColor:i.pointBackgroundColor?n=r.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),o=t.custom||{};return o.borderColor?n=o.borderColor:i.pointBorderColor?n=r.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),o=t.custom||{};return isNaN(o.borderWidth)?!isNaN(i.pointBorderWidth)||r.isArray(i.pointBorderWidth)?n=r.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=o.borderWidth,n},updateElement:function(t,e,n){var i,o,s=this,a=s.getMeta(),l=t.custom||{},u=s.getDataset(),c=s.index,d=u.data[e],h=s.getScaleForId(a.yAxisID),f=s.getScaleForId(a.xAxisID),p=s.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),i=f.getPixelForValue("object"==typeof d?d:NaN,e,c),o=n?h.getBasePixel():s.calculatePointY(d,e,c),t._xScale=f,t._yScale=h,t._datasetIndex=c,t._index=e,t._model={x:i,y:o,skip:l.skip||isNaN(i)||isNaN(o),radius:l.radius||r.valueAtIndexOrDefault(u.pointRadius,e,p.radius),pointStyle:l.pointStyle||r.valueAtIndexOrDefault(u.pointStyle,e,p.pointStyle),backgroundColor:s.getPointBackgroundColor(t,e),borderColor:s.getPointBorderColor(t,e),borderWidth:s.getPointBorderWidth(t,e),tension:a.dataset._model?a.dataset._model.tension:0,steppedLine:!!a.dataset._model&&a.dataset._model.steppedLine,hitRadius:l.hitRadius||r.valueAtIndexOrDefault(u.pointHitRadius,e,p.hitRadius)}},calculatePointY:function(t,e,n){var i,o,r,s=this.chart,a=this.getMeta(),l=this.getScaleForId(a.yAxisID),u=0,c=0;if(l.options.stacked){for(i=0;i<n;i++)if(o=s.data.datasets[i],"line"===(r=s.getDatasetMeta(i)).type&&r.yAxisID===l.id&&s.isDatasetVisible(i)){var d=Number(l.getRightValue(o.data[e]));d<0?c+=d||0:u+=d||0}var h=Number(l.getRightValue(t));return h<0?l.getPixelForValue(c+h):l.getPixelForValue(u+h)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,n){return Math.max(Math.min(t,n),e)}var e,n,i,o,s=this.getMeta(),a=this.chart.chartArea,l=s.data||[];if(s.dataset._model.spanGaps&&(l=l.filter(function(t){return!t._model.skip})),"monotone"===s.dataset._model.cubicInterpolationMode)r.splineCurveMonotone(l);else for(e=0,n=l.length;e<n;++e)i=l[e]._model,o=r.splineCurve(r.previousItem(l,e)._model,i,r.nextItem(l,e)._model,s.dataset._model.tension),i.controlPointPreviousX=o.previous.x,i.controlPointPreviousY=o.previous.y,i.controlPointNextX=o.next.x,i.controlPointNextY=o.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,n=l.length;e<n;++e)(i=l[e]._model).controlPointPreviousX=t(i.controlPointPreviousX,a.left,a.right),i.controlPointPreviousY=t(i.controlPointPreviousY,a.top,a.bottom),i.controlPointNextX=t(i.controlPointNextX,a.left,a.right),i.controlPointNextY=t(i.controlPointNextY,a.top,a.bottom)},draw:function(){var t=this.chart,n=this.getMeta(),i=n.data||[],o=t.chartArea,s=i.length,a=0;for(r.canvas.clipArea(t.ctx,o),e(this.getDataset(),t.options)&&n.dataset.draw(),r.canvas.unclipArea(t.ctx);a<s;++a)i[a].draw(o)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},o=t._model;o.radius=i.hoverRadius||r.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor||r.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,r.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor||r.valueAtIndexOrDefault(e.pointHoverBorderColor,n,r.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth||r.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,o=t.custom||{},s=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),s.radius=o.radius||r.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),s.backgroundColor=e.getPointBackgroundColor(t,i),s.borderColor=e.getPointBorderColor(t,i),s.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,o=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)e.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),o[r]&&e.push(o[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var o=t.getDatasetMeta(0),s=e.datasets[0],a=o.data[i].custom||{},l=r.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:a.backgroundColor?a.backgroundColor:l(s.backgroundColor,i,u.backgroundColor),strokeStyle:a.borderColor?a.borderColor:l(s.borderColor,i,u.borderColor),lineWidth:a.borderWidth?a.borderWidth:l(s.borderWidth,i,u.borderWidth),hidden:isNaN(s.data[i])||o.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,o,r=e.index,s=this.chart;for(n=0,i=(s.data.datasets||[]).length;n<i;++n)(o=s.getDatasetMeta(n)).data[r].hidden=!o.data[r].hidden;s.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(t){t.controllers.polarArea=t.DatasetController.extend({dataElementType:o.Arc,linkScales:r.noop,update:function(t){var e=this,n=e.chart,i=n.chartArea,o=e.getMeta(),s=n.options,a=s.elements.arc,l=Math.min(i.right-i.left,i.bottom-i.top);n.outerRadius=Math.max((l-a.borderWidth/2)/2,0),n.innerRadius=Math.max(s.cutoutPercentage?n.outerRadius/100*s.cutoutPercentage:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),e.outerRadius=n.outerRadius-n.radiusLength*e.index,e.innerRadius=e.outerRadius-n.radiusLength,o.count=e.countVisibleElements(),r.each(o.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){for(var i=this,o=i.chart,s=i.getDataset(),a=o.options,l=a.animation,u=o.scale,c=o.data.labels,d=i.calculateCircumference(s.data[e]),h=u.xCenter,f=u.yCenter,p=0,m=i.getMeta(),g=0;g<e;++g)isNaN(s.data[g])||m.data[g].hidden||++p;var v=a.startAngle,y=t.hidden?0:u.getDistanceFromCenterForValue(s.data[e]),b=v+d*p,w=b+(t.hidden?0:d),_=l.animateScale?0:u.getDistanceFromCenterForValue(s.data[e]);r.extend(t,{_datasetIndex:i.index,_index:e,_scale:u,_model:{x:h,y:f,innerRadius:0,outerRadius:n?_:y,startAngle:n&&l.animateRotate?v:b,endAngle:n&&l.animateRotate?v:w,label:r.valueAtIndexOrDefault(c,e,c[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return r.each(e.data,function(e,i){isNaN(t.data[i])||e.hidden||n++}),n},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),o=t(40),r=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,linkScales:r.noop,update:function(t){var e=this,n=e.getMeta(),i=n.dataset,o=n.data,s=i.custom||{},a=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==a.tension&&void 0===a.lineTension&&(a.lineTension=a.tension),r.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:o,_loop:!0,_model:{tension:s.tension?s.tension:r.valueOrDefault(a.lineTension,l.tension),backgroundColor:s.backgroundColor?s.backgroundColor:a.backgroundColor||l.backgroundColor,borderWidth:s.borderWidth?s.borderWidth:a.borderWidth||l.borderWidth,borderColor:s.borderColor?s.borderColor:a.borderColor||l.borderColor,fill:s.fill?s.fill:void 0!==a.fill?a.fill:l.fill,borderCapStyle:s.borderCapStyle?s.borderCapStyle:a.borderCapStyle||l.borderCapStyle,borderDash:s.borderDash?s.borderDash:a.borderDash||l.borderDash,borderDashOffset:s.borderDashOffset?s.borderDashOffset:a.borderDashOffset||l.borderDashOffset,borderJoinStyle:s.borderJoinStyle?s.borderJoinStyle:a.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),r.each(o,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,o=t.custom||{},s=i.getDataset(),a=i.chart.scale,l=i.chart.options.elements.point,u=a.getPointPositionForValue(e,s.data[e]);void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),r.extend(t,{_datasetIndex:i.index,_index:e,_scale:a,_model:{x:n?a.xCenter:u.x,y:n?a.yCenter:u.y,tension:o.tension?o.tension:r.valueOrDefault(s.lineTension,i.chart.options.elements.line.tension),radius:o.radius?o.radius:r.valueAtIndexOrDefault(s.pointRadius,e,l.radius),backgroundColor:o.backgroundColor?o.backgroundColor:r.valueAtIndexOrDefault(s.pointBackgroundColor,e,l.backgroundColor),borderColor:o.borderColor?o.borderColor:r.valueAtIndexOrDefault(s.pointBorderColor,e,l.borderColor),borderWidth:o.borderWidth?o.borderWidth:r.valueAtIndexOrDefault(s.pointBorderWidth,e,l.borderWidth),pointStyle:o.pointStyle?o.pointStyle:r.valueAtIndexOrDefault(s.pointStyle,e,l.pointStyle),hitRadius:o.hitRadius?o.hitRadius:r.valueAtIndexOrDefault(s.pointHitRadius,e,l.hitRadius)}}),t._model.skip=o.skip?o.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();r.each(e.data,function(n,i){var o=n._model,s=r.splineCurve(r.previousItem(e.data,i,!0)._model,o,r.nextItem(e.data,i,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(s.previous.x,t.right),t.left),o.controlPointPreviousY=Math.max(Math.min(s.previous.y,t.bottom),t.top),o.controlPointNextX=Math.max(Math.min(s.next.x,t.right),t.left),o.controlPointNextY=Math.max(Math.min(s.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,o=t._model;o.radius=n.hoverRadius?n.hoverRadius:r.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),o.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:r.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,r.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor?n.hoverBorderColor:r.valueAtIndexOrDefault(e.pointHoverBorderColor,i,r.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:r.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,o=t._model,s=this.chart.options.elements.point;o.radius=n.radius?n.radius:r.valueAtIndexOrDefault(e.pointRadius,i,s.radius),o.backgroundColor=n.backgroundColor?n.backgroundColor:r.valueAtIndexOrDefault(e.pointBackgroundColor,i,s.backgroundColor),o.borderColor=n.borderColor?n.borderColor:r.valueAtIndexOrDefault(e.pointBorderColor,i,s.borderColor),o.borderWidth=n.borderWidth?n.borderWidth:r.valueAtIndexOrDefault(e.pointBorderWidth,i,s.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=o.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var o,r,s=this.animations;for(e.chart=t,i||(t.animating=!0),o=0,r=s.length;o<r;++o)if(s[o].chart===t)return void(s[o]=e);s.push(e),1===s.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=r.findIndex(this.animations,function(e){return e.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=r.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;t.dropFrames>1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,o=0;o<i.length;)n=(e=i[o]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),r.callback(e.render,[n,e],n),r.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(o,1)):++o}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var i=t(25),o=t(45),r=t(28),s=t(30),a=t(48),l=t(31);e.exports=function(t){function e(t){return"top"===t||"bottom"===t}t.types={},t.instances={},t.controllers={},o.extend(t.prototype,{construct:function(e,n){var r,s,l=this;(s=(r=(r=n)||{}).data=r.data||{}).datasets=s.datasets||[],s.labels=s.labels||[],r.options=o.configMerge(i.global,i[r.type],r.options||{}),n=r;var u=a.acquireContext(e,n),c=u&&u.canvas,d=c&&c.height,h=c&&c.width;l.id=o.uid(),l.ctx=u,l.canvas=c,l.config=n,l.width=h,l.height=d,l.aspectRatio=d?h/d:null,l.options=n.options,l._bufferedRender=!1,l.chart=l,l.controller=l,t.instances[l.id]=l,Object.defineProperty(l,"data",{get:function(){return l.config.data},set:function(t){l.config.data=t}}),u&&c?(l.initialize(),l.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),o.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return o.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,s=Math.max(0,Math.floor(o.getMaximumWidth(i))),a=Math.max(0,Math.floor(r?s/r:o.getMaximumHeight(i)));if((e.width!==s||e.height!==a)&&(i.width=e.width=s,i.height=e.height=a,i.style.width=s+"px",i.style.height=a+"px",o.retinaScale(e,n.devicePixelRatio),!t)){var u={width:s,height:a};l.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;o.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),o.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var n=this,i=n.options,r=n.scales||{},s=[],a=Object.keys(r).reduce(function(t,e){return t[e]=!1,t},{});i.scales&&(s=s.concat((i.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(i.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),i.scale&&s.push({options:i.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),o.each(s,function(i){var s=i.options,l=s.id,u=o.valueOrDefault(s.type,i.dtype);e(s.position)!==e(i.dposition)&&(s.position=i.dposition),a[l]=!0;var c=null;if(l in r&&r[l].type===u)(c=r[l]).options=s,c.ctx=n.ctx,c.chart=n;else{var d=t.scaleService.getScaleConstructor(u);if(!d)return;c=new d({id:l,type:u,options:s,ctx:n.ctx,chart:n}),r[c.id]=c}c.mergeTicksOptions(),i.isDefault&&(n.scale=c)}),o.each(a,function(t,e){t||delete r[e]}),n.scales=r,t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return o.each(e.data.datasets,function(o,r){var s=e.getDatasetMeta(r),a=o.type||e.config.type;if(s.type&&s.type!==a&&(e.destroyDatasetMeta(r),s=e.getDatasetMeta(r)),s.type=a,n.push(s.type),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{var l=t.controllers[s.type];if(void 0===l)throw new Error('"'+s.type+'" is not a chart type.');s.controller=new l(e,r),i.push(s.controller)}},e),i},resetElements:function(){var t=this;o.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var n,i,r=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),i=(n=r).options,o.each(n.scales,function(t){s.removeBox(n,t)}),i=o.configMerge(t.defaults.global,t.defaults[n.config.type],i),n.options=n.config.options=i,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=i.tooltips,n.tooltip.initialize(),l._invalidate(r),!1!==l.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var a=r.buildOrUpdateControllers();o.each(r.data.datasets,function(t,e){r.getDatasetMeta(e).controller.buildOrUpdateElements()},r),r.updateLayout(),r.options.animation&&r.options.animation.duration&&o.each(a,function(t){t.reset()}),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],l.notify(r,"afterUpdate"),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(s.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),n={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[n])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var n=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var i=e.duration,r=e.lazy;if(!1!==l.notify(n,"beforeRender")){var s=n.options.animation,a=function(t){l.notify(n,"afterRender"),o.callback(s&&s.onComplete,[t],n)};if(s&&(void 0!==i&&0!==i||void 0===i&&0!==s.duration)){var u=new t.Animation({numSteps:(i||s.duration)/16.66,easing:e.easing||s.easing,render:function(t,e){var n=o.easing.effects[e.easing],i=e.currentStep,r=i/e.numSteps;t.draw(n(r),r,i)},onAnimationProgress:s.onProgress,onAnimationComplete:a});t.animationService.addAnimation(n,u,i,r)}else n.draw(),a(new t.Animation({numSteps:0,chart:n}));return n}},draw:function(t){var e=this;e.clear(),o.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(o.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;n>=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),i={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[i])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),l.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return r.modes.single(this,t)},getElementsAtEvent:function(t){return r.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return r.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=r.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return r.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],i=n._meta&&n._meta[e];i&&(i.controller.destroy(),delete n._meta[e])},destroy:function(){var e,n,i=this,r=i.canvas;for(i.stop(),e=0,n=i.data.datasets.length;e<n;++e)i.destroyDatasetMeta(e);r&&(i.unbindEvents(),o.canvas.clear(i),a.releaseContext(i.ctx),i.canvas=null,i.ctx=null),l.notify(i,"destroy"),delete t.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};o.each(t.options.events,function(i){a.addEventListener(t,i,n),e[i]=n}),t.options.responsive&&(n=function(){t.resize()},a.addEventListener(t,"resize",n),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,o.each(e,function(e,n){a.removeEventListener(t,n,e)}))},updateHoverStyle:function(t,e,n){var i,o,r,s=n?"setHoverStyle":"removeHoverStyle";for(o=0,r=t.length;o<r;++o)(i=t[o])&&this.getDatasetMeta(i._datasetIndex).controller[s](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==l.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),l.notify(e,"afterEvent",[t]);var o=e._bufferedRequest;return o?e.render(o):i&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,r.mode,r),o.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),e=!o.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),t.Controller=t}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){function e(t,e){var i=t._chartjs;if(i){var o=i.listeners,r=o.indexOf(e);-1!==r&&o.splice(r,1),o.length>0||(n.forEach(function(e){delete t[e]}),delete t._chartjs)}}var n=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&e(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],o=n.data;for(t=0,e=i.length;t<e;++t)o[t]=o[t]||this.createMetaData(t);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t,o,r=this,s=r.getDataset(),a=s.data||(s.data=[]);r._data!==a&&(r._data&&e(r._data,r),o=r,(t=a)._chartjs?t._chartjs.listeners.push(o):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),n.forEach(function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),r=o.apply(this,e);return i.each(t._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),r}})})),r._data=a),r.resyncElements()},update:i.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,o=0;o<i;++o)n[o].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],o=t._index,r=t.custom||{},s=i.valueAtIndexOrDefault,a=t._model;a.backgroundColor=r.backgroundColor?r.backgroundColor:s(n.backgroundColor,o,e.backgroundColor),a.borderColor=r.borderColor?r.borderColor:s(n.borderColor,o,e.borderColor),a.borderWidth=r.borderWidth?r.borderWidth:s(n.borderWidth,o,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,o=t.custom||{},r=i.valueAtIndexOrDefault,s=i.getHoverColor,a=t._model;a.backgroundColor=o.hoverBackgroundColor?o.hoverBackgroundColor:r(e.hoverBackgroundColor,n,s(a.backgroundColor)),a.borderColor=o.hoverBorderColor?o.hoverBorderColor:r(e.hoverBorderColor,n,s(a.borderColor)),a.borderWidth=o.hoverBorderWidth?o.hoverBorderWidth:r(e.hoverBorderWidth,n,a.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,i=e.length;i<n?t.data.splice(i,n-i):i>n&&this.insertElements(n,i-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=i.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var i=t(3),o=t(45),r=function(t){o.extend(this,t),this.initialize.apply(this,arguments)};o.extend(r.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=o.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,o=e._start,r=e._view;return n&&1!==t?(r||(r=e._view={}),o||(o=e._start={}),function(t,e,n,o){var r,s,a,l,u,c,d,h,f,p=Object.keys(n);for(r=0,s=p.length;r<s;++r)if(c=n[a=p[r]],e.hasOwnProperty(a)||(e[a]=c),(l=e[a])!==c&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=l),(d=typeof c)==typeof(u=t[a]))if("string"===d){if((h=i(u)).valid&&(f=i(c)).valid){e[a]=f.mix(h,o).rgbString();continue}}else if("number"===d&&isFinite(u)&&isFinite(c)){e[a]=u+(c-u)*o;continue}e[a]=c}}(o,r,n,t),e):(e._view=n,e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return o.isNumber(this._model.x)&&o.isNumber(this._model.y)}}),r.extend=o.inherits,e.exports=r},{3:3,45:45}],27:[function(t,e,n){"use strict";var i=t(3),o=t(25),r=t(45);e.exports=function(t){function e(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function n(t){return null!=t&&"none"!==t}function s(t,i,o){var r=document.defaultView,s=t.parentNode,a=r.getComputedStyle(t)[i],l=r.getComputedStyle(s)[i],u=n(a),c=n(l),d=Number.POSITIVE_INFINITY;return u||c?Math.min(u?e(a,t,o):d,c?e(l,s,o):d):"none"}r.configMerge=function(){return r.merge(r.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,n,i,o){var s=n[e]||{},a=i[e];"scales"===e?n[e]=r.scaleMerge(s,a):"scale"===e?n[e]=r.merge(s,[t.scaleService.getScaleDefaults(a.type),a]):r._merger(e,n,i,o)}})},r.scaleMerge=function(){return r.merge(r.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,n,i,o){if("xAxes"===e||"yAxes"===e){var s,a,l,u=i[e].length;for(n[e]||(n[e]=[]),s=0;s<u;++s)l=i[e][s],a=r.valueOrDefault(l.type,"xAxes"===e?"category":"linear"),s>=n[e].length&&n[e].push({}),!n[e][s].type||l.type&&l.type!==n[e][s].type?r.merge(n[e][s],[t.scaleService.getScaleDefaults(a),l]):r.merge(n[e][s],l)}else r._merger(e,n,i,o)}})},r.where=function(t,e){if(r.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return r.each(t,function(t){e(t)&&n.push(t)}),n},r.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,o=t.length;i<o;++i)if(e.call(n,t[i],i,t))return i;return-1},r.findNextWhere=function(t,e,n){r.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<t.length;i++){var o=t[i];if(e(o))return o}},r.findPreviousWhere=function(t,e,n){r.isNullOrUndef(n)&&(n=t.length);for(var i=n-1;i>=0;i--){var o=t[i];if(e(o))return o}},r.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},r.almostEquals=function(t,e,n){return Math.abs(t-e)<n},r.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&n+e>t},r.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},r.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},r.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},r.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},r.toRadians=function(t){return t*(Math.PI/180)},r.toDegrees=function(t){return t*(180/Math.PI)},r.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:o}},r.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},r.aliasPixel=function(t){return t%2==0?0:.5},r.splineCurve=function(t,e,n,i){var o=t.skip?e:t,r=e,s=n.skip?e:n,a=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),l=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),u=a/(a+l),c=l/(a+l),d=i*(u=isNaN(u)?0:u),h=i*(c=isNaN(c)?0:c);return{previous:{x:r.x-d*(s.x-o.x),y:r.y-d*(s.y-o.y)},next:{x:r.x+h*(s.x-o.x),y:r.y+h*(s.y-o.y)}}},r.EPSILON=Number.EPSILON||1e-14,r.splineCurveMonotone=function(t){var e,n,i,o,s,a,l,u,c,d=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),h=d.length;for(e=0;e<h;++e)if(!(i=d[e]).model.skip){if(n=e>0?d[e-1]:null,(o=e<h-1?d[e+1]:null)&&!o.model.skip){var f=o.model.x-i.model.x;i.deltaK=0!==f?(o.model.y-i.model.y)/f:0}!n||n.model.skip?i.mK=i.deltaK:!o||o.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(e=0;e<h-1;++e)i=d[e],o=d[e+1],i.model.skip||o.model.skip||(r.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=o.mK=0:(s=i.mK/i.deltaK,a=o.mK/i.deltaK,(u=Math.pow(s,2)+Math.pow(a,2))<=9||(l=3/Math.sqrt(u),i.mK=s*l*i.deltaK,o.mK=a*l*i.deltaK)));for(e=0;e<h;++e)(i=d[e]).model.skip||(n=e>0?d[e-1]:null,o=e<h-1?d[e+1]:null,n&&!n.model.skip&&(c=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-c,i.model.controlPointPreviousY=i.model.y-c*i.mK),o&&!o.model.skip&&(c=(o.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+c,i.model.controlPointNextY=i.model.y+c*i.mK))},r.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},r.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},r.niceNum=function(t,e){var n=Math.floor(r.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},r.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},r.getRelativePosition=function(t,e){var n,i,o=t.originalEvent||t,s=t.currentTarget||t.srcElement,a=s.getBoundingClientRect(),l=o.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=o.clientX,i=o.clientY);var u=parseFloat(r.getStyle(s,"padding-left")),c=parseFloat(r.getStyle(s,"padding-top")),d=parseFloat(r.getStyle(s,"padding-right")),h=parseFloat(r.getStyle(s,"padding-bottom")),f=a.right-a.left-u-d,p=a.bottom-a.top-c-h;return{x:n=Math.round((n-a.left-u)/f*s.width/e.currentDevicePixelRatio),y:i=Math.round((i-a.top-c)/p*s.height/e.currentDevicePixelRatio)}},r.getConstraintWidth=function(t){return s(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return s(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(r.getStyle(e,"padding-left"),10),i=parseInt(r.getStyle(e,"padding-right"),10),o=e.clientWidth-n-i,s=r.getConstraintWidth(t);return isNaN(s)?o:Math.min(o,s)},r.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(r.getStyle(e,"padding-top"),10),i=parseInt(r.getStyle(e,"padding-bottom"),10),o=e.clientHeight-n-i,s=r.getConstraintHeight(t);return isNaN(s)?o:Math.min(o,s)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,o=t.height,r=t.width;i.height=o*n,i.width=r*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=o+"px",i.style.width=r+"px")}},r.fontString=function(t,e,n){return e+" "+t+"px "+n},r.longestText=function(t,e,n,i){var o=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},s=i.garbageCollect=[],i.font=e),t.font=e;var a=0;r.each(n,function(e){null!=e&&!0!==r.isArray(e)?a=r.measureText(t,o,s,a,e):r.isArray(e)&&r.each(e,function(e){null==e||r.isArray(e)||(a=r.measureText(t,o,s,a,e))})});var l=s.length/2;if(l>n.length){for(var u=0;u<l;u++)delete o[s[u]];s.splice(0,l)}return a},r.measureText=function(t,e,n,i,o){var r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.color=i?function(t){return t instanceof CanvasGradient&&(t=o.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function i(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function o(t,e){var n,i,o,r,s;for(i=0,r=t.data.datasets.length;i<r;++i)if(t.isDatasetVisible(i))for(o=0,s=(n=t.getDatasetMeta(i)).data.length;o<s;++o){var a=n.data[o];a._view.skip||e(a)}}function r(t,e){var n=[];return o(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function s(t,e,n,i){var r=Number.POSITIVE_INFINITY,s=[];return o(t,function(t){if(!n||t.inRange(e.x,e.y)){var o=t.getCenterPoint(),a=i(e,o);a<r?(s=[t],r=a):a===r&&s.push(t)}}),s}function a(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){var o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function l(t,e,n){var o=i(e,t);n.axis=n.axis||"x";var l=a(n.axis),u=n.intersect?r(t,o):s(t,o,!1,l),c=[];return u.length?(t.data.datasets.forEach(function(e,n){if(t.isDatasetVisible(n)){var i=t.getDatasetMeta(n).data[u[0]._index];i&&!i._view.skip&&c.push(i)}}),c):[]}var u=t(45);e.exports={modes:{single:function(t,e){var n=i(e,t),r=[];return o(t,function(t){if(t.inRange(n.x,n.y))return r.push(t),r}),r.slice(0,1)},label:l,index:l,dataset:function(t,e,n){var o=i(e,t);n.axis=n.axis||"xy";var l=a(n.axis),u=n.intersect?r(t,o):s(t,o,!1,l);return u.length>0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!1})},point:function(t,e){return r(t,i(e,t))},nearest:function(t,e,n){var o=i(e,t);n.axis=n.axis||"xy";var r=a(n.axis),l=s(t,o,n.intersect,r);return l.length>1&&l.sort(function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n}),l.slice(0,1)},x:function(t,e,n){var r=i(e,t),s=[],a=!1;return o(t,function(t){t.inXRange(r.x)&&s.push(t),t.inRange(r.x,r.y)&&(a=!0)}),n.intersect&&!a&&(s=[]),s},y:function(t,e,n){var r=i(e,t),s=[],a=!1;return o(t,function(t){t.inYRange(r.y)&&s.push(t),t.inRange(r.x,r.y)&&(a=!0)}),n.intersect&&!a&&(s=[]),s}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";function i(t,e){return r.where(t,function(t){return t.position===e})}function o(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,o=e?t:n;return i.weight===o.weight?i._tmpIndex_-o._tmpIndex_:i.weight-o.weight}),t.forEach(function(t){delete t._tmpIndex_})}var r=t(45);e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,o=["fullWidth","position","weight"],r=o.length,s=0;s<r;++s)i=o[s],n.hasOwnProperty(i)&&(e[i]=n[i])},update:function(t,e,n){function s(t){var e=r.findNextWhere(M,function(e){return e.box===t});if(e)if(t.isHorizontal()){var n={left:Math.max(O,C),right:Math.max(I,T),top:0,bottom:0};t.update(t.fullWidth?b:k,w/2,n)}else t.update(e.minSize.width,S)}function a(t){t.isHorizontal()?(t.left=t.fullWidth?c:O,t.right=t.fullWidth?e-d:O+k,t.top=j,t.bottom=j+t.height,j=t.bottom):(t.left=F,t.right=F+t.width,t.top=L,t.bottom=L+S,F=t.right)}if(t){var l=t.options.layout||{},u=r.options.toPadding(l.padding),c=u.left,d=u.right,h=u.top,f=u.bottom,p=i(t.boxes,"left"),m=i(t.boxes,"right"),g=i(t.boxes,"top"),v=i(t.boxes,"bottom"),y=i(t.boxes,"chartArea");o(p,!0),o(m,!1),o(g,!0),o(v,!1);var b=e-c-d,w=n-h-f,_=w/2,x=(e-b/2)/(p.length+m.length),D=(n-_)/(g.length+v.length),k=b,S=w,M=[];r.each(p.concat(m,g,v),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?b:k,D),S-=e.height):(e=t.update(x,S),k-=e.width),M.push({horizontal:n,minSize:e,box:t})});var C=0,T=0,E=0,P=0;r.each(g.concat(v),function(t){if(t.getPadding){var e=t.getPadding();C=Math.max(C,e.left),T=Math.max(T,e.right)}}),r.each(p.concat(m),function(t){if(t.getPadding){var e=t.getPadding();E=Math.max(E,e.top),P=Math.max(P,e.bottom)}});var O=c,I=d,L=h,R=f;r.each(p.concat(m),s),r.each(p,function(t){O+=t.width}),r.each(m,function(t){I+=t.width}),r.each(g.concat(v),s),r.each(g,function(t){L+=t.height}),r.each(v,function(t){R+=t.height}),r.each(p.concat(m),function(t){var e=r.findNextWhere(M,function(e){return e.box===t}),n={left:0,right:0,top:L,bottom:R};e&&t.update(e.minSize.width,S,n)}),O=c,I=d,L=h,R=f,r.each(p,function(t){O+=t.width}),r.each(m,function(t){I+=t.width}),r.each(g,function(t){L+=t.height}),r.each(v,function(t){R+=t.height});var Y=Math.max(C-O,0);O+=Y,I+=Math.max(T-I,0);var H=Math.max(E-L,0);L+=H,R+=Math.max(P-R,0);var A=n-L-R,N=e-O-I;N===k&&A===S||(r.each(p,function(t){t.height=A}),r.each(m,function(t){t.height=A}),r.each(g,function(t){t.fullWidth||(t.width=N)}),r.each(v,function(t){t.fullWidth||(t.width=N)}),S=A,k=N);var F=c+Y,j=h+H;r.each(p.concat(g),a),F+=k,j+=S,r.each(m,a),r.each(v,a),t.chartArea={left:O,top:L,right:O+k,bottom:L+S},r.each(y,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(k,S)})}}}},{45:45}],31:[function(t,e,n){"use strict";var i=t(25),o=t(45);i._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,o,r,s,a,l=this.descriptors(t),u=l.length;for(i=0;i<u;++i)if("function"==typeof(a=(r=(o=l[i]).plugin)[e])&&((s=[t].concat(n||[])).push(o.options),!1===a.apply(r,s)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],r=[],s=t&&t.config||{},a=s.options&&s.options.plugins||{};return this._plugins.concat(s.plugins||[]).forEach(function(t){if(-1===n.indexOf(t)){var e=t.id,s=a[e];!1!==s&&(!0===s&&(s=o.clone(i.global.plugins[e])),n.push(t),r.push({plugin:t,options:s||{}}))}}),e.descriptors=r,e.id=this._cacheId,r},_invalidate:function(t){delete t.$plugins}}},{25:25,45:45}],32:[function(t,e,n){"use strict";function i(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(t[e].label);return i}function o(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}var r=t(25),s=t(26),a=t(45),l=t(34);r._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:l.formatters.values,minor:{},major:{}}}),e.exports=function(t){function e(t,e,n){return a.isArray(e)?a.longestText(t,n,e):t.measureText(e).width}function n(t){var e=a.valueOrDefault,n=r.global,i=e(t.fontSize,n.defaultFontSize),o=e(t.fontStyle,n.defaultFontStyle),s=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:o,family:s,font:a.fontString(i,o,s)}}function l(t){return a.options.toLineHeight(a.valueOrDefault(t.lineHeight,1.2),a.valueOrDefault(t.fontSize,r.global.defaultFontSize))}t.Scale=s.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;for(var e in!1===t.minor&&(t.minor={display:!1}),!1===t.major&&(t.major={display:!1}),t)"major"!==e&&"minor"!==e&&(void 0===t.minor[e]&&(t.minor[e]=t[e]),void 0===t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){a.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,o,r,s,l,u,c=this;for(c.beforeUpdate(),c.maxWidth=t,c.maxHeight=e,c.margins=a.extend({left:0,right:0,top:0,bottom:0},n),c.longestTextCache=c.longestTextCache||{},c.beforeSetDimensions(),c.setDimensions(),c.afterSetDimensions(),c.beforeDataLimits(),c.determineDataLimits(),c.afterDataLimits(),c.beforeBuildTicks(),l=c.buildTicks()||[],c.afterBuildTicks(),c.beforeTickToLabelConversion(),r=c.convertTicksToLabels(l)||c.ticks,c.afterTickToLabelConversion(),c.ticks=r,i=0,o=r.length;i<o;++i)s=r[i],(u=l[i])?u.label=s:l.push(u={label:s,major:!1});return c._ticks=l,c.beforeCalculateTickRotation(),c.calculateTickRotation(),c.afterCalculateTickRotation(),c.beforeFit(),c.fit(),c.afterFit(),c.afterUpdate(),c.minSize},afterUpdate:function(){a.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){a.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){a.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){a.callback(this.options.beforeDataLimits,[this])},determineDataLimits:a.noop,afterDataLimits:function(){a.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){a.callback(this.options.beforeBuildTicks,[this])},buildTicks:a.noop,afterBuildTicks:function(){a.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){a.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){a.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){a.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,o=t.options.ticks,r=i(t._ticks),s=n(o);e.font=s.font;var l=o.minRotation||0;if(r.length&&t.options.display&&t.isHorizontal())for(var u,c=a.longestText(e,s.font,r,t.longestTextCache),d=c,h=t.getPixelForTick(1)-t.getPixelForTick(0)-6;d>h&&l<o.maxRotation;){var f=a.toRadians(l);if(u=Math.cos(f),Math.sin(f)*c>t.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){a.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){a.callback(this.options.beforeFit,[this])},fit:function(){var t=this,o=t.minSize={width:0,height:0},r=i(t._ticks),s=t.options,u=s.ticks,c=s.scaleLabel,d=s.gridLines,h=s.display,f=t.isHorizontal(),p=n(u),m=s.gridLines.tickMarkLength;if(o.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?m:0,o.height=f?h&&d.drawTicks?m:0:t.maxHeight,c.display&&h){var g=l(c)+a.options.toPadding(c.padding).height;f?o.height+=g:o.width+=g}if(u.display&&h){var v=a.longestText(t.ctx,p.font,r,t.longestTextCache),y=a.numberOfLabelLines(r),b=.5*p.size,w=t.options.ticks.padding;if(f){t.longestLabelWidth=v;var _=a.toRadians(t.labelRotation),x=Math.cos(_),D=Math.sin(_)*v+p.size*y+b*(y-1)+b;o.height=Math.min(t.maxHeight,o.height+D+w),t.ctx.font=p.font;var k=e(t.ctx,r[0],p.font),S=e(t.ctx,r[r.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===s.position?x*k+3:x*b+3,t.paddingRight="bottom"===s.position?x*b+3:x*S+3):(t.paddingLeft=k/2+3,t.paddingRight=S/2+3)}else u.mirror?v=0:v+=w+b,o.width=Math.min(t.maxWidth,o.width+v),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=o.width,t.height=o.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){a.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(a.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:a.noop,getPixelForValue:a.noop,getValueForPixel:a.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),o=i*t+e.paddingLeft;n&&(o+=i/2);var r=e.left+Math.round(o);return r+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,i=e.left+Math.round(n);return i+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,i,o,r=this,s=r.isHorizontal(),l=r.options.ticks.minor,u=t.length,c=a.toRadians(r.labelRotation),d=Math.cos(c),h=r.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(o=l.maxTicksLimit),s&&(e=!1,(h+l.autoSkipPadding)*u>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(r.width-(r.paddingLeft+r.paddingRight)))),o&&u>o&&(e=Math.max(e,Math.floor(u/o)))),n=0;n<u;n++)i=t[n],(e>1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1&&delete i.label,f.push(i);return f},draw:function(t){var e=this,i=e.options;if(i.display){var s=e.ctx,u=r.global,c=i.ticks.minor,d=i.ticks.major||c,h=i.gridLines,f=i.scaleLabel,p=0!==e.labelRotation,m=e.isHorizontal(),g=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=a.valueOrDefault(c.fontColor,u.defaultFontColor),y=n(c),b=a.valueOrDefault(d.fontColor,u.defaultFontColor),w=n(d),_=h.drawTicks?h.tickMarkLength:0,x=a.valueOrDefault(f.fontColor,u.defaultFontColor),D=n(f),k=a.options.toPadding(f.padding),S=a.toRadians(e.labelRotation),M=[],C=e.options.gridLines.lineWidth,T="right"===i.position?e.right:e.right-C-_,E="right"===i.position?e.right+_:e.right,P="bottom"===i.position?e.top+C:e.bottom-_-C,O="bottom"===i.position?e.top+C+_:e.bottom+C;if(a.each(g,function(n,r){if(!a.isNullOrUndef(n.label)){var s,l,d,f,v,y,b,w,x,D,k,I,L,R,Y=n.label;r===e.zeroLineIndex&&i.offset===h.offsetGridLines?(s=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(s=a.valueAtIndexOrDefault(h.lineWidth,r),l=a.valueAtIndexOrDefault(h.color,r),d=a.valueOrDefault(h.borderDash,u.borderDash),f=a.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var H="middle",A="middle",N=c.padding;if(m){var F=_+N;"bottom"===i.position?(A=p?"middle":"top",H=p?"right":"center",R=e.top+F):(A=p?"middle":"bottom",H=p?"left":"center",R=e.bottom-F);var j=o(e,r,h.offsetGridLines&&g.length>1);j<e.left&&(l="rgba(0,0,0,0)"),j+=a.aliasPixel(s),L=e.getPixelForTick(r)+c.labelOffset,v=b=x=k=j,y=P,w=O,D=t.top,I=t.bottom+C}else{var z,W="left"===i.position;c.mirror?(H=W?"left":"right",z=N):(H=W?"right":"left",z=_+N),L=W?e.right-z:e.left+z;var B=o(e,r,h.offsetGridLines&&g.length>1);B<e.top&&(l="rgba(0,0,0,0)"),B+=a.aliasPixel(s),R=e.getPixelForTick(r)+c.labelOffset,v=T,b=E,x=t.left,k=t.right+C,y=w=D=I=B}M.push({tx1:v,ty1:y,tx2:b,ty2:w,x1:x,y1:D,x2:k,y2:I,labelX:L,labelY:R,glWidth:s,glColor:l,glBorderDash:d,glBorderDashOffset:f,rotation:-1*S,label:Y,major:n.major,textBaseline:A,textAlign:H})}}),a.each(M,function(t){if(h.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),h.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),h.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=t.major?w.font:y.font,s.fillStyle=t.major?b:v,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var n=t.label;if(a.isArray(n))for(var i=n.length,o=1.5*y.size,r=e.isHorizontal()?0:-o*(i-1)/2,l=0;l<i;++l)s.fillText(""+n[l],0,r),r+=o;else s.fillText(n,0,0);s.restore()}}),f.display){var I,L,R=0,Y=l(f)/2;if(m)I=e.left+(e.right-e.left)/2,L="bottom"===i.position?e.bottom-Y-k.bottom:e.top+Y+k.top;else{var H="left"===i.position;I=H?e.left+Y+k.top:e.right-Y-k.top,L=e.top+(e.bottom-e.top)/2,R=H?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(I,L),s.rotate(R),s.textAlign="center",s.textBaseline="middle",s.fillStyle=x,s.font=D.font,s.fillText(f.labelString,0,0),s.restore()}if(h.drawBorder){s.lineWidth=a.valueAtIndexOrDefault(h.lineWidth,0),s.strokeStyle=a.valueAtIndexOrDefault(h.color,0);var A=e.left,N=e.right+C,F=e.top,j=e.bottom+C,z=a.aliasPixel(s.lineWidth);m?(F=j="top"===i.position?e.bottom:e.top,F+=z,j+=z):(A=N="left"===i.position?e.right:e.left,A+=z,N+=z),s.beginPath(),s.moveTo(A,F),s.lineTo(N,j),s.stroke()}}}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),o=t(45),r=t(30);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=o.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?o.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=o.extend(this.defaults[t],e))},addScalesToLayout:function(t){o.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,r.addBox(t,e)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var i=t(45);e.exports={formatters:{values:function(t){return i.isArray(t)?t:""+t},linear:function(t,e,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var r=i.log10(Math.abs(o)),s="";if(0!==t){var a=-1*Math.floor(r);a=Math.max(Math.min(a,20),0),s=t.toFixed(a)}else s="0";return s},logarithmic:function(t,e,n){var o=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:r.noop,title:function(t,e){var n="",i=e.labels,o=i?i.length:0;if(t.length>0){var r=t[0];r.xLabel?n=r.xLabel:o>0&&r.index<o&&(n=i[r.index])}return n},afterTitle:r.noop,beforeBody:r.noop,beforeLabel:r.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),n+=t.yLabel},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:r.noop,afterBody:r.noop,beforeFooter:r.noop,footer:r.noop,afterFooter:r.noop}}}),e.exports=function(t){function e(t,e){var n=r.color(t);return n.alpha(e*n.alpha()).rgbaString()}function n(t,e){return e&&(r.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function s(t){var e=i.global,n=r.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}t.Tooltip=o.extend({initialize:function(){this._model=s(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),o=t.afterTitle.apply(this,arguments),r=[];return r=n(r=n(r=n(r,e),i),o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,o=i._options.callbacks,s=[];return r.each(t,function(t){var r={before:[],lines:[],after:[]};n(r.before,o.beforeLabel.call(i,t,e)),n(r.lines,o.label.call(i,t,e)),n(r.after,o.afterLabel.call(i,t,e)),s.push(r)}),s},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),o=t.afterFooter.apply(this,arguments),r=[];return r=n(r=n(r=n(r,e),i),o)},update:function(e){var n,i,o,a,l,u,c,d,h,f,p,m,g,v,y,b,w,_,x,D,k=this,S=k._options,M=k._model,C=k._model=s(S),T=k._active,E=k._data,P={xAlign:M.xAlign,yAlign:M.yAlign},O={x:M.x,y:M.y},I={width:M.width,height:M.height},L={x:M.caretX,y:M.caretY};if(T.length){C.opacity=1;var R=[],Y=[];L=t.Tooltip.positioners[S.position].call(k,T,k._eventPosition);var H=[];for(n=0,i=T.length;n<i;++n)H.push((b=T[n],w=void 0,_=void 0,w=b._xScale,_=b._yScale||b._scale,x=b._index,D=b._datasetIndex,{xLabel:w?w.getLabelForIndex(x,D):"",yLabel:_?_.getLabelForIndex(x,D):"",index:x,datasetIndex:D,x:b._model.x,y:b._model.y}));S.filter&&(H=H.filter(function(t){return S.filter(t,E)})),S.itemSort&&(H=H.sort(function(t,e){return S.itemSort(t,e,E)})),r.each(H,function(t){R.push(S.callbacks.labelColor.call(k,t,k._chart)),Y.push(S.callbacks.labelTextColor.call(k,t,k._chart))}),C.title=k.getTitle(H,E),C.beforeBody=k.getBeforeBody(H,E),C.body=k.getBody(H,E),C.afterBody=k.getAfterBody(H,E),C.footer=k.getFooter(H,E),C.x=Math.round(L.x),C.y=Math.round(L.y),C.caretPadding=S.caretPadding,C.labelColors=R,C.labelTextColors=Y,C.dataPoints=H,P=function(t,e){var n,i,o,r,s,a=t._model,l=t._chart,u=t._chart.chartArea,c="center",d="center";a.y<e.height?d="top":a.y>l.height-e.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===d?(n=function(t){return t<=h},i=function(t){return t>h}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),o=function(t){return t+e.width+a.caretSize+a.caretPadding>l.width},r=function(t){return t-e.width-a.caretSize-a.caretPadding<0},s=function(t){return t<=f?"top":"bottom"},n(a.x)?(c="left",o(a.x)&&(c="center",d=s(a.y))):i(a.x)&&(c="right",r(a.x)&&(c="center",d=s(a.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}(this,I=function(t,e){var n=t._chart.ctx,i=2*e.yPadding,o=0,s=e.body,a=s.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);a+=e.beforeBody.length+e.afterBody.length;var l=e.title.length,u=e.footer.length,c=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize;i+=l*c,i+=l?(l-1)*e.titleSpacing:0,i+=l?e.titleMarginBottom:0,i+=a*d,i+=a?(a-1)*e.bodySpacing:0,i+=u?e.footerMarginTop:0,i+=u*h,i+=u?(u-1)*e.footerSpacing:0;var f=0,p=function(t){o=Math.max(o,n.measureText(t).width+f)};return n.font=r.fontString(c,e._titleFontStyle,e._titleFontFamily),r.each(e.title,p),n.font=r.fontString(d,e._bodyFontStyle,e._bodyFontFamily),r.each(e.beforeBody.concat(e.afterBody),p),f=e.displayColors?d+2:0,r.each(s,function(t){r.each(t.before,p),r.each(t.lines,p),r.each(t.after,p)}),f=0,n.font=r.fontString(h,e._footerFontStyle,e._footerFontFamily),r.each(e.footer,p),{width:o+=2*e.xPadding,height:i}}(this,C)),o=C,a=I,l=P,u=k._chart,c=o.x,d=o.y,h=o.caretSize,f=o.caretPadding,p=o.cornerRadius,m=l.xAlign,g=l.yAlign,v=h+f,y=p+f,"right"===m?c-=a.width:"center"===m&&((c-=a.width/2)+a.width>u.width&&(c=u.width-a.width),c<0&&(c=0)),"top"===g?d+=v:d-="bottom"===g?a.height+v:a.height/2,"center"===g?"left"===m?c+=v:"right"===m&&(c-=v):"left"===m?c-=y:"right"===m&&(c+=y),O={x:c,y:d}}else C.opacity=0;return C.xAlign=P.xAlign,C.yAlign=P.yAlign,C.x=O.x,C.y=O.y,C.width=I.width,C.height=I.height,C.caretX=L.x,C.caretY=L.y,k._model=C,e&&S.custom&&S.custom.call(k,C),k},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,o=this.getCaretPosition(t,e,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)},getCaretPosition:function(t,e,n){var i,o,r,s,a,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,m=e.width,g=e.height;if("center"===h)a=p+g/2,"left"===d?(o=(i=f)-u,r=i,s=a+u,l=a-u):(o=(i=f+m)+u,r=i,s=a-u,l=a+u);else if("left"===d?(i=(o=f+c+u)-u,r=o+u):"right"===d?(i=(o=f+m-c-u)-u,r=o+u):(i=(o=n.caretX)-u,r=o+u),"top"===h)a=(s=p)-u,l=s;else{a=(s=p+g)+u,l=s;var v=r;r=i,i=v}return{x1:i,x2:o,x3:r,y1:s,y2:a,y3:l}},drawTitle:function(t,n,i,o){var s=n.title;if(s.length){i.textAlign=n._titleAlign,i.textBaseline="top";var a,l,u=n.titleFontSize,c=n.titleSpacing;for(i.fillStyle=e(n.titleFontColor,o),i.font=r.fontString(u,n._titleFontStyle,n._titleFontFamily),a=0,l=s.length;a<l;++a)i.fillText(s[a],t.x,t.y),t.y+=u+c,a+1===s.length&&(t.y+=n.titleMarginBottom-c)}},drawBody:function(t,n,i,o){var s=n.bodyFontSize,a=n.bodySpacing,l=n.body;i.textAlign=n._bodyAlign,i.textBaseline="top",i.font=r.fontString(s,n._bodyFontStyle,n._bodyFontFamily);var u=0,c=function(e){i.fillText(e,t.x+u,t.y),t.y+=s+a};i.fillStyle=e(n.bodyFontColor,o),r.each(n.beforeBody,c);var d=n.displayColors;u=d?s+2:0,r.each(l,function(a,l){var u=e(n.labelTextColors[l],o);i.fillStyle=u,r.each(a.before,c),r.each(a.lines,function(r){d&&(i.fillStyle=e(n.legendColorBackground,o),i.fillRect(t.x,t.y,s,s),i.lineWidth=1,i.strokeStyle=e(n.labelColors[l].borderColor,o),i.strokeRect(t.x,t.y,s,s),i.fillStyle=e(n.labelColors[l].backgroundColor,o),i.fillRect(t.x+1,t.y+1,s-2,s-2),i.fillStyle=u),c(r)}),r.each(a.after,c)}),u=0,r.each(n.afterBody,c),t.y-=a},drawFooter:function(t,n,i,o){var s=n.footer;s.length&&(t.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=e(n.footerFontColor,o),i.font=r.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),r.each(s,function(e){i.fillText(e,t.x,t.y),t.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,n,i,o,r){i.fillStyle=e(n.backgroundColor,r),i.strokeStyle=e(n.borderColor,r),i.lineWidth=n.borderWidth;var s=n.xAlign,a=n.yAlign,l=t.x,u=t.y,c=o.width,d=o.height,h=n.cornerRadius;i.beginPath(),i.moveTo(l+h,u),"top"===a&&this.drawCaret(t,o),i.lineTo(l+c-h,u),i.quadraticCurveTo(l+c,u,l+c,u+h),"center"===a&&"right"===s&&this.drawCaret(t,o),i.lineTo(l+c,u+d-h),i.quadraticCurveTo(l+c,u+d,l+c-h,u+d),"bottom"===a&&this.drawCaret(t,o),i.lineTo(l+h,u+d),i.quadraticCurveTo(l,u+d,l,u+d-h),"center"===a&&"left"===s&&this.drawCaret(t,o),i.lineTo(l,u+h),i.quadraticCurveTo(l,u,l+h,u),i.closePath(),i.fill(),n.borderWidth>0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(this.drawBackground(i,e,t,n,o),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,o),this.drawBody(i,e,t,o),this.drawFooter(i,e,t,o))}},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!r.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,o=0,r=0;for(e=0,n=t.length;e<n;++e){var s=t[e];if(s&&s.hasValue()){var a=s.tooltipPosition();i+=a.x,o+=a.y,++r}}return{x:Math.round(i/r),y:Math.round(o/r)}},nearest:function(t,e){var n,i,o,s=e.x,a=e.y,l=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){var u=t[n];if(u&&u.hasValue()){var c=u.getCenterPoint(),d=r.distanceBetweenPoints(e,c);d<l&&(l=d,o=u)}}if(o){var h=o.tooltipPosition();s=h.x,a=h.y}return{x:s,y:a}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=o.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var i=r.getAngleFromPoint(n,{x:t,y:e}),o=i.angle,s=i.distance,a=n.startAngle,l=n.endAngle;l<a;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;o<a;)o+=2*Math.PI;var u=o>=a&&o<=l,c=s>=n.innerRadius&&s<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),o=t(26),r=t(45),s=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:s.defaultColor,borderWidth:3,borderColor:s.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=o.extend({draw:function(){var t,e,n,i,o=this._view,a=this._chart.ctx,l=o.spanGaps,u=this._children.slice(),c=s.elements.line,d=-1;for(this._loop&&u.length&&u.push(u[0]),a.save(),a.lineCap=o.borderCapStyle||c.borderCapStyle,a.setLineDash&&a.setLineDash(o.borderDash||c.borderDash),a.lineDashOffset=o.borderDashOffset||c.borderDashOffset,a.lineJoin=o.borderJoinStyle||c.borderJoinStyle,a.lineWidth=o.borderWidth||c.borderWidth,a.strokeStyle=o.borderColor||s.defaultColor,a.beginPath(),d=-1,t=0;t<u.length;++t)e=u[t],n=r.previousItem(u,t),i=e._view,0===t?i.skip||(a.moveTo(i.x,i.y),d=t):(n=-1===d?n:u[d],i.skip||(d!==t-1&&!l||-1===d?a.moveTo(i.x,i.y):r.canvas.lineTo(a,n._view,e._view),d=t));a.stroke(),a.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";function i(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}var o=t(25),r=t(26),s=t(45),a=o.global.defaultColor;o._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:a,borderColor:a,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=r.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:i,inXRange:i,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,r=e.pointStyle,l=e.radius,u=e.x,c=e.y,d=s.color,h=0;e.skip||(i.strokeStyle=e.borderColor||a,i.lineWidth=s.valueOrDefault(e.borderWidth,o.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||a,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?h=(u-n.x)/(t.left-n.x):1.01*t.right<n.x?h=(n.x-u)/(n.x-t.right):n.y<t.top?h=(c-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(h=(n.y-c)/(n.y-t.bottom)),h=Math.round(100*h)/100,i.strokeStyle=d(i.strokeStyle).alpha(h).rgbString(),i.fillStyle=d(i.fillStyle).alpha(h).rgbString()),s.canvas.drawPoint(i,r,l,u,c))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";function i(t){return void 0!==t._view.width}function o(t){var e,n,o,r,s=t._view;if(i(t)){var a=s.width/2;e=s.x-a,n=s.x+a,o=Math.min(s.y,s.base),r=Math.max(s.y,s.base)}else{var l=s.height/2;e=Math.min(s.x,s.base),n=Math.max(s.x,s.base),o=s.y-l,r=s.y+l}return{left:e,top:o,right:n,bottom:r}}var r=t(25),s=t(26);r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=s.extend({draw:function(){function t(t){return v[(y+t)%4]}var e,n,i,o,r,s,a,l=this._chart.ctx,u=this._view,c=u.borderWidth;if(u.horizontal?(e=u.base,n=u.x,i=u.y-u.height/2,o=u.y+u.height/2,r=n>e?1:-1,s=1,a=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=1,s=(o=u.base)>i?1:-1,a=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(i-o)),h=(c=c>d?d:c)/2,f=e+("left"!==a?h*r:0),p=n+("right"!==a?-h*r:0),m=i+("top"!==a?h*s:0),g=o+("bottom"!==a?-h*s:0);f!==p&&(i=m,o=g),m!==g&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var v=[[e,o],[e,i],[n,i],[n,o]],y=["bottom","left","top","right"].indexOf(a,0);-1===y&&(y=0);var b=t(0);l.moveTo(b[0],b[1]);for(var w=1;w<4;w++)b=t(w),l.lineTo(b[0],b[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=o(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){if(!this._view)return!1;var n=o(this);return i(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom},inXRange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var i=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,o,r){if(r){var s=Math.min(r,i/2),a=Math.min(r,o/2);t.moveTo(e+s,n),t.lineTo(e+i-s,n),t.quadraticCurveTo(e+i,n,e+i,n+a),t.lineTo(e+i,n+o-a),t.quadraticCurveTo(e+i,n+o,e+i-s,n+o),t.lineTo(e+s,n+o),t.quadraticCurveTo(e,n+o,e,n+o-a),t.lineTo(e,n+a),t.quadraticCurveTo(e,n,e+s,n)}else t.rect(e,n,i,o)},drawPoint:function(t,e,n,i,o){var r,s,a,l,u,c;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,o,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(s=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-s/2,o+u/3),t.lineTo(i+s/2,o+u/3),t.lineTo(i,o-2*u/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,o-c,2*c,2*c),t.strokeRect(i-c,o-c,2*c,2*c);break;case"rectRounded":var d=n/Math.SQRT2,h=i-d,f=o-d,p=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,h,f,p,p,n/2),t.closePath(),t.fill();break;case"rectRot":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,o),t.lineTo(i,o+c),t.lineTo(i+c,o),t.lineTo(i,o-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,o+n),t.lineTo(i,o-n),t.moveTo(i-n,o),t.lineTo(i+n,o),t.closePath();break;case"crossRot":t.beginPath(),a=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-a,o-l),t.lineTo(i+a,o+l),t.moveTo(i-a,o+l),t.lineTo(i+a,o-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,o+n),t.lineTo(i,o-n),t.moveTo(i-n,o),t.lineTo(i+n,o),a=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-a,o-l),t.lineTo(i+a,o+l),t.moveTo(i-a,o+l),t.lineTo(i+a,o-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,o),t.lineTo(i+n,o),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,o),t.lineTo(i+n,o),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,o-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},i.clear=n.clear,i.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i,o={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return o.valueOrDefault(o.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var r,s,a;if(o.isArray(t))if(s=t.length,i)for(r=s-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<s;r++)e.call(n,t[r],r);else if(o.isObject(t))for(s=(a=Object.keys(t)).length,r=0;r<s;r++)e.call(n,t[a[r]],a[r])},arrayEquals:function(t,e){var n,i,r,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],s=e[n],r instanceof Array&&s instanceof Array){if(!o.arrayEquals(r,s))return!1}else if(r!==s)return!1;return!0},clone:function(t){if(o.isArray(t))return t.map(o.clone);if(o.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,r=0;r<i;++r)e[n[r]]=o.clone(t[n[r]]);return e}return t},_merger:function(t,e,n,i){var r=e[t],s=n[t];o.isObject(r)&&o.isObject(s)?o.merge(r,s,i):e[t]=o.clone(s)},_mergerIf:function(t,e,n){var i=e[t],r=n[t];o.isObject(i)&&o.isObject(r)?o.mergeIf(i,r):e.hasOwnProperty(t)||(e[t]=o.clone(r))},merge:function(t,e,n){var i,r,s,a,l,u=o.isArray(e)?e:[e],c=u.length;if(!o.isObject(t))return t;for(i=(n=n||{}).merger||o._merger,r=0;r<c;++r)if(e=u[r],o.isObject(e))for(l=0,a=(s=Object.keys(e)).length;l<a;++l)i(s[l],t,e,n);return t},mergeIf:function(t,e){return o.merge(t,e,{merger:o._mergerIf})},extend:function(t){for(var e=function(e,n){t[n]=e},n=1,i=arguments.length;n<i;++n)o.each(arguments[n],e);return t},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=o.inherits,t&&o.extend(n.prototype,t),n.__super__=e.prototype,n}};e.exports=o,o.callCallback=o.callback,o.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},o.getValueOrDefault=o.valueOrDefault,o.getValueAtIndexOrDefault=o.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var i=t(42),o={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-o.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*o.easeInBounce(2*t):.5*o.easeOutBounce(2*t-1)+.5}};e.exports={effects:o},i.easingEffects=o},{42:42}],44:[function(t,e,n){"use strict";var i=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,o,r;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,o=+t.bottom||0,r=+t.left||0):e=n=o=r=+t||0,{top:e,right:n,bottom:o,left:r,height:e+o,width:r+n}},resolve:function(t,e,n){var o,r,s;for(o=0,r=t.length;o<r;++o)if(void 0!==(s=t[o])&&(void 0!==e&&"function"==typeof s&&(s=s(e)),void 0!==n&&i.isArray(s)&&(s=s[n]),void 0!==s))return s}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";function i(t,e){var n=u.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}function o(t,e,n){t.addEventListener(e,n,g)}function r(t,e,n){t.removeEventListener(e,n,g)}function s(t,e,n,i,o){return{type:t,chart:e,native:o||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function a(t,e,n){var i,r,a,l,m,g,v,y,b=t[c]||(t[c]={}),w=b.resizer=function(t){var e=document.createElement("div"),n=d+"size-monitor",i="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=i,e.className=n,e.innerHTML='<div class="'+n+'-expand" style="'+i+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+i+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var r=e.childNodes[0],s=e.childNodes[1];e._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,s.scrollLeft=1e6,s.scrollTop=1e6};var a=function(){e._reset(),t()};return o(r,"scroll",a.bind(r,"expand")),o(s,"scroll",a.bind(s,"shrink")),e}((i=function(){if(b.resizer)return e(s("resize",n))},a=!1,l=[],function(){l=Array.prototype.slice.call(arguments),r=r||this,a||(a=!0,u.requestAnimFrame.call(window,function(){a=!1,i.apply(r,l)}))}));g=function(){if(b.resizer){var e=t.parentNode;e&&e!==w.parentNode&&e.insertBefore(w,e.firstChild),w._reset()}},v=(m=t)[c]||(m[c]={}),y=v.renderProxy=function(t){t.animationName===f&&g()},u.each(p,function(t){o(m,t,y)}),v.reflow=!!m.offsetParent,m.classList.add(h)}function l(t){var e,n,i,o=t[c]||{},s=o.resizer;delete o.resizer,n=(e=t)[c]||{},(i=n.renderProxy)&&(u.each(p,function(t){r(e,t,i)}),delete n.renderProxy),e.classList.remove(h),s&&s.parentNode&&s.parentNode.removeChild(s)}var u=t(45),c="$chartjs",d="chartjs-",h=d+"render-monitor",f=d+"render-animation",p=["animationstart","webkitAnimationStart"],m={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},g=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n,i="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+f+"{"+i+"}@keyframes "+f+"{"+i+"}."+h+"{-webkit-animation:"+f+" 0.001s;animation:"+f+" 0.001s;}",n=(t=this)._style||document.createElement("style"),t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,o=t.getAttribute("height"),r=t.getAttribute("width");if(t[c]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var s=i(t,"width");void 0!==s&&(t.width=s)}if(null===o||""===o)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var a=i(t,"height");void 0!==s&&(t.height=a)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[c]){var n=e[c].initial;["height","width"].forEach(function(t){var i=n[t];u.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),u.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[c]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var r=n[c]||(n[c]={});o(i,e,(r.proxies||(r.proxies={}))[t.id+"_"+e]=function(e){var i,o,r,a;n((o=t,r=m[(i=e).type]||i.type,a=u.getRelativePosition(i,o),s(r,o,a.x,a.y,i)))})}else a(i,n,t)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var o=((n[c]||{}).proxies||{})[t.id+"_"+e];o&&r(i,e,o)}else l(i)}},u.addEvent=o,u.removeEvent=r},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),o=t(46),r=t(47),s=r._enabled?r:o;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},s)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";function i(t,e,n){var i,o=t._model||{},r=o.fill;if(void 0===r&&(r=!!o.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function o(t){var e,n=t.el._model||{},i=t.el._scale||{},o=t.fill,r=null;if(isFinite(o))return null;if("start"===o?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===o?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePosition?r=i.getBasePosition():i.getBasePixel&&(r=i.getBasePixel()),null!=r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return{x:(e=i.isHorizontal())?r:null,y:e?null:r}}return null}function r(t,e,n){var i,o=t[e].fill,r=[e];if(!n)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!isFinite(o))return o;if(!(i=t[o]))return!1;if(i.visible)return o;r.push(o),o=i.fill}return!1}function s(t){return t&&!t.skip}function a(t,e,n,i,o){var r;if(i&&o){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)c.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(n[o-1].x,n[o-1].y),r=o-1;r>0;--r)c.canvas.lineTo(t,n[r],n[r-1],!0)}}var l=t(25),u=t(40),c=t(45);l._set("global",{plugins:{filler:{propagate:!0}}});var d={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),o=i&&n.isDatasetVisible(e)&&i.dataset._children||[],r=o.length||0;return r?function(t,e){return e<r&&o[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,i=e?e.y:null;return function(t){return{x:null===n?t.x:n,y:null===i?t.y:i}}}};e.exports={id:"filler",afterDatasetsUpdate:function(t,e){var n,s,a,l,c,h,f,p=(t.data.datasets||[]).length,m=e.propagate,g=[];for(s=0;s<p;++s)l=null,(a=(n=t.getDatasetMeta(s)).dataset)&&a._model&&a instanceof u.Line&&(l={visible:t.isDatasetVisible(s),fill:i(a,s,p),chart:t,el:a}),n.$filler=l,g.push(l);for(s=0;s<p;++s)(l=g[s])&&(l.fill=r(g,s,m),l.boundary=o(l),l.mapper=(f=void 0,h=(c=l).fill,f="dataset",!1===h?null:(isFinite(h)||(f="boundary"),d[f](c))))},beforeDatasetDraw:function(t,e){var n=e.meta.$filler;if(n){var i=t.ctx,o=n.el,r=o._view,u=o._children||[],d=n.mapper,h=r.backgroundColor||l.global.defaultColor;d&&h&&u.length&&(c.canvas.clipArea(i,t.chartArea),function(t,e,n,i,o,r){var l,u,c,d,h,f,p,m=e.length,g=i.spanGaps,v=[],y=[],b=0,w=0;for(t.beginPath(),l=0,u=m+!!r;l<u;++l)h=n(d=e[c=l%m]._view,c,i),f=s(d),p=s(h),f&&p?(b=v.push(d),w=y.push(h)):b&&w&&(g?(f&&v.push(d),p&&y.push(h)):(a(t,v,y,b,w),b=w=0,v=[],y=[]));a(t,v,y,b,w),t.closePath(),t.fillStyle=o,t.fill()}(i,u,d,r,h,o._loop),c.canvas.unclipArea(i))}}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";function i(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function o(t,e){var n=new c({ctx:t.ctx,options:e,chart:t});l.configure(t,n,e),l.addBox(t,n),t.legend=n}var r=t(25),s=t(26),a=t(45),l=t(30),u=a.noop;r._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,o=i.getDatasetMeta(n);o.hidden=null===o.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return a.isArray(e.datasets)?e.datasets.map(function(e,n){return{text:e.label,fillStyle:a.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var c=s.extend({initialize:function(t){a.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:u,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:u,beforeSetDimensions:u,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:u,beforeBuildLabels:u,buildLabels:function(){var t=this,e=t.options.labels||{},n=a.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:u,beforeFit:u,fit:function(){var t=this,e=t.options,n=e.labels,o=e.display,s=t.ctx,l=r.global,u=a.valueOrDefault,c=u(n.fontSize,l.defaultFontSize),d=u(n.fontStyle,l.defaultFontStyle),h=u(n.fontFamily,l.defaultFontFamily),f=a.fontString(c,d,h),p=t.legendHitBoxes=[],m=t.minSize,g=t.isHorizontal();if(g?(m.width=t.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=t.maxHeight),o)if(s.font=f,g){var v=t.lineWidths=[0],y=t.legendItems.length?c+n.padding:0;s.textAlign="left",s.textBaseline="top",a.each(t.legendItems,function(e,o){var r=i(n,c)+c/2+s.measureText(e.text).width;v[v.length-1]+r+n.padding>=t.width&&(y+=c+n.padding,v[v.length]=t.left),p[o]={left:0,top:0,width:r,height:c},v[v.length-1]+=r+n.padding}),m.height+=y}else{var b=n.padding,w=t.columnWidths=[],_=n.padding,x=0,D=0,k=c+b;a.each(t.legendItems,function(t,e){var o=i(n,c)+c/2+s.measureText(t.text).width;D+k>m.height&&(_+=x+n.padding,w.push(x),x=0,D=0),x=Math.max(x,o),D+=k,p[e]={left:0,top:0,width:o,height:c}}),_+=x,w.push(x),m.width+=_}t.width=m.width,t.height=m.height},afterFit:u,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,o=r.global,s=o.elements.line,l=t.width,u=t.lineWidths;if(e.display){var c,d=t.ctx,h=a.valueOrDefault,f=h(n.fontColor,o.defaultFontColor),p=h(n.fontSize,o.defaultFontSize),m=h(n.fontStyle,o.defaultFontStyle),g=h(n.fontFamily,o.defaultFontFamily),v=a.fontString(p,m,g);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=v;var y=i(n,p),b=t.legendHitBoxes,w=t.isHorizontal();c=w?{x:t.left+(l-u[0])/2,y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+n.padding,line:0};var _=p+n.padding;a.each(t.legendItems,function(i,r){var f,m,g,v,x,D=d.measureText(i.text).width,k=y+p/2+D,S=c.x,M=c.y;w?S+k>=l&&(M=c.y+=_,c.line++,S=c.x=t.left+(l-u[c.line])/2):M+_>t.bottom&&(S=c.x=S+t.columnWidths[c.line]+n.padding,M=c.y=t.top+n.padding,c.line++),function(t,n,i){if(!(isNaN(y)||y<=0)){d.save(),d.fillStyle=h(i.fillStyle,o.defaultColor),d.lineCap=h(i.lineCap,s.borderCapStyle),d.lineDashOffset=h(i.lineDashOffset,s.borderDashOffset),d.lineJoin=h(i.lineJoin,s.borderJoinStyle),d.lineWidth=h(i.lineWidth,s.borderWidth),d.strokeStyle=h(i.strokeStyle,o.defaultColor);var r=0===h(i.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(i.lineDash,s.borderDash)),e.labels&&e.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=n+u;a.canvas.drawPoint(d,i.pointStyle,l,c,f)}else r||d.strokeRect(t,n,y,p),d.fillRect(t,n,y,p);d.restore()}}(S,M,i),b[r].left=S,b[r].top=M,f=i,m=D,v=y+(g=p/2)+S,x=M+g,d.fillText(f.text,v,x),f.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(v,x),d.lineTo(v+m,x),d.stroke()),w?c.x+=k+n.padding:c.y+=_})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,o=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,s=t.y;if(r>=e.left&&r<=e.right&&s>=e.top&&s<=e.bottom)for(var a=e.legendHitBoxes,l=0;l<a.length;++l){var u=a[l];if(r>=u.left&&r<=u.left+u.width&&s>=u.top&&s<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),o=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),o=!0;break}}}return o}});e.exports={id:"legend",_element:c,beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(a.mergeIf(e,r.global.legend),n?(l.configure(t,n,e),n.options=e):o(t,e)):n&&(l.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";function i(t,e){var n=new u({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}var o=t(25),r=t(26),s=t(45),a=t(30),l=s.noop;o._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var u=r.extend({initialize:function(t){s.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:l,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:l,beforeSetDimensions:l,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:l,beforeBuildLabels:l,buildLabels:l,afterBuildLabels:l,beforeFit:l,fit:function(){var t=this,e=s.valueOrDefault,n=t.options,i=n.display,r=e(n.fontSize,o.global.defaultFontSize),a=t.minSize,l=s.isArray(n.text)?n.text.length:1,u=s.options.toLineHeight(n.lineHeight,r),c=i?l*u+2*n.padding:0;t.isHorizontal()?(a.width=t.maxWidth,a.height=c):(a.width=c,a.height=t.maxHeight),t.width=a.width,t.height=a.height},afterFit:l,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=s.valueOrDefault,i=t.options,r=o.global;if(i.display){var a,l,u,c=n(i.fontSize,r.defaultFontSize),d=n(i.fontStyle,r.defaultFontStyle),h=n(i.fontFamily,r.defaultFontFamily),f=s.fontString(c,d,h),p=s.options.toLineHeight(i.lineHeight,c),m=p/2+i.padding,g=0,v=t.top,y=t.left,b=t.bottom,w=t.right;e.fillStyle=n(i.fontColor,r.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(w-y)/2,u=v+m,a=w-y):(l="left"===i.position?y+m:w-m,u=v+(b-v)/2,a=b-v,g=Math.PI*("left"===i.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(g),e.textAlign="center",e.textBaseline="middle";var _=i.text;if(s.isArray(_))for(var x=0,D=0;D<_.length;++D)e.fillText(_[D],0,x,a),x+=p;else e.fillText(_,0,0,a);e.restore()}}});e.exports={id:"title",_element:u,beforeInit:function(t){var e=t.options.title;e&&i(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(s.mergeIf(e,o.global.title),n?(a.configure(t,n,e),n.options=e):i(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,o=n.isHorizontal();return i.yLabels&&!o?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,o=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(o?0:1),1);if(null!=t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){t=n||t;var s=i.getLabels().indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var a=i.width/r,l=a*(e-i.minIndex);return o&&(l+=a/2),i.left+Math.round(l)}var u=i.height/r,c=u*(e-i.minIndex);return o&&(c+=u/2),i.top+Math.round(c)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),o=e.isHorizontal(),r=(o?e.width:e.height)/i;return t-=o?e.left:e.top,n&&(t-=r/2),(t<=0?0:Math.round(t/r))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),o=t(45),r=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,r=i.data.datasets,s=e.isHorizontal();e.min=null,e.max=null;var a=n.stacked;if(void 0===a&&o.each(r,function(e,n){if(!a){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(a=!0)}}),n.stacked||a){var l={};o.each(r,function(r,s){var a=i.getDatasetMeta(s),u=[a.type,void 0===n.stacked&&void 0===a.stack?s:"",a.stack].join(".");void 0===l[u]&&(l[u]={positiveValues:[],negativeValues:[]});var c=l[u].positiveValues,d=l[u].negativeValues;i.isDatasetVisible(s)&&t(a)&&o.each(r.data,function(t,i){var o=+e.getRightValue(t);isNaN(o)||a.data[i].hidden||(c[i]=c[i]||0,d[i]=d[i]||0,n.relativePoints?c[i]=100:o<0?d[i]+=o:c[i]+=o)})}),o.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),i=o.min(n),r=o.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?r:Math.max(e.max,r)})}else o.each(r,function(n,r){var s=i.getDatasetMeta(r);i.isDatasetVisible(r)&&t(s)&&o.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||s.data[n].hidden||(null===e.min?e.min=i:i<e.min&&(e.min=i),null===e.max?e.max=i:i>e.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;if(this.isHorizontal())t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=o.valueOrDefault(e.fontSize,i.global.defaultFontSize);t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this,n=e.start,i=+e.getRightValue(t),o=e.end-n;return e.isHorizontal()?e.left+e.width/o*(i-n):e.bottom-e.height/o*(i-n)},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,o=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*o},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=i.sign(t.min),o=i.sign(t.max);n<0&&o<0?t.max=0:n>0&&o>0&&(t.min=0)}var r=void 0!==e.min||void 0!==e.suggestedMin,s=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),r!==s&&t.min>=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),o={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:i.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=function(t,e){var n,o=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var r=i.niceNum(e.max-e.min,!1);n=i.niceNum(r/(t.maxTicks-1),!0)}var s=Math.floor(e.min/n)*n,a=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(s=t.min,a=t.max);var l=(a-s)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l);var u=1;n<1&&(u=Math.pow(10,n.toString().length-2),s=Math.round(s*u)/u,a=Math.round(a*u)/u),o.push(void 0!==t.min?t.min:s);for(var c=1;c<l;++c)o.push(Math.round((s+c*n)*u)/u);return o.push(void 0!==t.max?t.max:a),o}(o,t);t.handleDirectionalChanges(),t.max=i.max(r),t.min=i.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{45:45}],56:[function(t,e,n){"use strict";var i=t(45),o=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:o.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,o=e.chart,r=o.data.datasets,s=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var a=n.stacked;if(void 0===a&&i.each(r,function(e,n){if(!a){var i=o.getDatasetMeta(n);o.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(a=!0)}}),n.stacked||a){var l={};i.each(r,function(r,s){var a=o.getDatasetMeta(s),u=[a.type,void 0===n.stacked&&void 0===a.stack?s:"",a.stack].join(".");o.isDatasetVisible(s)&&t(a)&&(void 0===l[u]&&(l[u]=[]),i.each(r.data,function(t,n){var i=l[u],o=+e.getRightValue(t);isNaN(o)||a.data[n].hidden||o<0||(i[n]=i[n]||0,i[n]+=o)}))}),i.each(l,function(t){if(t.length>0){var n=i.min(t),o=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?o:Math.max(e.max,o)}})}else i.each(r,function(n,r){var s=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(s)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||s.data[n].hidden||i<0||(null===e.min?e.min=i:i<e.min&&(e.min=i),null===e.max?e.max=i:i>e.max&&(e.max=i),0!==i&&(null===e.minNotZero||i<e.minNotZero)&&(e.minNotZero=i))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=i.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(i.log10(t.min))-1),t.max=Math.pow(10,Math.floor(i.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(i.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(i.log10(t.min))+1):10),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(i.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),o={min:e.min,max:e.max},r=t.ticks=function(t,e){var n,o,r=[],s=i.valueOrDefault,a=s(t.min,Math.pow(10,Math.floor(i.log10(e.min)))),l=Math.floor(i.log10(e.max)),u=Math.ceil(e.max/Math.pow(10,l));0===a?(n=Math.floor(i.log10(e.minNotZero)),o=Math.floor(e.minNotZero/Math.pow(10,n)),r.push(a),a=o*Math.pow(10,n)):(n=Math.floor(i.log10(a)),o=Math.floor(a/Math.pow(10,n)));for(var c=n<0?Math.pow(10,Math.abs(n)):1;r.push(a),10==++o&&(o=1,c=++n>=0?1:c),a=Math.round(o*Math.pow(10,n)*c)/c,n<l||n===l&&o<u;);var d=s(t.max,a);return r.push(d),r}(o,t);t.max=i.max(r),t.min=i.min(r),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(i.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(e){var n,o,r,s,a,l=this,u=l.options.ticks.reverse,c=i.log10,d=l._getFirstTickValue(l.minNotZero),h=0;return e=+l.getRightValue(e),u?(r=l.end,s=l.start,a=-1):(r=l.start,s=l.end,a=1),l.isHorizontal()?(n=l.width,o=u?l.right:l.left):(n=l.height,a*=-1,o=u?l.top:l.bottom),e!==r&&(0===r&&(n-=h=i.getValueOrDefault(l.options.ticks.fontSize,t.defaults.global.defaultFontSize),r=d),0!==e&&(h+=n/(c(s)-c(r))*(c(e)-c(r))),o+=a*h),o},getValueForPixel:function(e){var n,o,r,s,a=this,l=a.options.ticks.reverse,u=i.log10,c=a._getFirstTickValue(a.minNotZero);if(l?(o=a.end,r=a.start):(o=a.start,r=a.end),a.isHorizontal()?(n=a.width,s=l?a.right-e:e-a.left):(n=a.height,s=l?e-a.top:a.bottom-e),s!==o){if(0===o){var d=i.getValueOrDefault(a.options.ticks.fontSize,t.defaults.global.defaultFontSize);s-=d,n-=d,o=c}s*=u(r)-u(o),s/=n,s=Math.pow(10,u(o)+s)}return s}});t.scaleService.registerScaleType("logarithmic",n,e)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var i=t(25),o=t(45),r=t(34);e.exports=function(t){function e(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function n(t){var e=t.options.pointLabels,n=o.valueOrDefault(e.fontSize,u.defaultFontSize),i=o.valueOrDefault(e.fontStyle,u.defaultFontStyle),r=o.valueOrDefault(e.fontFamily,u.defaultFontFamily);return{size:n,style:i,family:r,font:o.fontString(n,i,r)}}function s(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function a(t,e,n,i){if(o.isArray(e))for(var r=n.y,s=1.5*i,a=0;a<e.length;++a)t.fillText(e[a],n.x,r),r+=s;else t.fillText(e,n.x,n.y)}function l(t){return o.isNumber(t)?t:0}var u=i.global,c={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:r.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}},d=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var i=o.min([t.height,t.width]),r=o.valueOrDefault(n.fontSize,u.defaultFontSize);t.drawingArea=e.display?i/2-(r/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;o.each(e.data.datasets,function(r,s){if(e.isDatasetVisible(s)){var a=e.getDatasetMeta(s);o.each(r.data,function(e,o){var r=+t.getRightValue(e);isNaN(r)||a.data[o].hidden||(n=Math.min(r,n),i=Math.max(r,i))})}}),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=o.valueOrDefault(t.fontSize,u.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,i;this.options.pointLabels.display?function(t){var i,r,a,l=n(t),u=Math.min(t.height/2,t.width/2),c={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=l.font,t._pointLabelSizes=[];var h,f,p,m=e(t);for(i=0;i<m;i++){a=t.getPointPosition(i,u),h=t.ctx,f=l.size,p=t.pointLabels[i]||"",r=o.isArray(p)?{w:o.longestText(h,h.font,p),h:p.length*f+1.5*(p.length-1)*f}:{w:h.measureText(p).width,h:f},t._pointLabelSizes[i]=r;var g=t.getIndexAngle(i),v=o.toDegrees(g)%360,y=s(v,a.x,r.w,0,180),b=s(v,a.y,r.h,90,270);y.start<c.l&&(c.l=y.start,d.l=g),y.end>c.r&&(c.r=y.end,d.r=g),b.start<c.t&&(c.t=b.start,d.t=g),b.end>c.b&&(c.b=b.end,d.b=g)}t.setReductions(u,c,d)}(this):(t=this,i=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(i),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),o=Math.max(e.r-this.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-this.height,0)/Math.cos(n.b);i=l(i),o=l(o),r=l(r),s=l(s),this.drawingArea=Math.min(Math.round(t-(i+o)/2),Math.round(t-(r+s)/2)),this.setCenterPoint(i,o,r,s)},setCenterPoint:function(t,e,n,i){var o=this,r=o.width-e-o.drawingArea,s=t+o.drawingArea,a=n+o.drawingArea,l=o.height-i-o.drawingArea;o.xCenter=Math.round((s+r)/2+o.left),o.yCenter=Math.round((a+l)/2+o.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(n)*e)+this.xCenter,y:Math.round(Math.sin(n)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,i=t.options,r=i.gridLines,s=i.ticks,l=o.valueOrDefault;if(i.display){var c=t.ctx,d=this.getIndexAngle(0),h=l(s.fontSize,u.defaultFontSize),f=l(s.fontStyle,u.defaultFontStyle),p=l(s.fontFamily,u.defaultFontFamily),m=o.fontString(h,f,p);o.each(t.ticks,function(n,i){if(i>0||s.reverse){var a=t.getDistanceFromCenterForValue(t.ticksAsNumbers[i]);if(r.display&&0!==i&&function(t,n,i,r){var s=t.ctx;if(s.strokeStyle=o.valueAtIndexOrDefault(n.color,r-1),s.lineWidth=o.valueAtIndexOrDefault(n.lineWidth,r-1),t.options.gridLines.circular)s.beginPath(),s.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),s.closePath(),s.stroke();else{var a=e(t);if(0===a)return;s.beginPath();var l=t.getPointPosition(0,i);s.moveTo(l.x,l.y);for(var u=1;u<a;u++)l=t.getPointPosition(u,i),s.lineTo(l.x,l.y);s.closePath(),s.stroke()}}(t,r,a,i),s.display){var f=l(s.fontColor,u.defaultFontColor);if(c.font=m,c.save(),c.translate(t.xCenter,t.yCenter),c.rotate(d),s.showLabelBackdrop){var p=c.measureText(n).width;c.fillStyle=s.backdropColor,c.fillRect(-p/2-s.backdropPaddingX,-a-h/2-s.backdropPaddingY,p+2*s.backdropPaddingX,h+2*s.backdropPaddingY)}c.textAlign="center",c.textBaseline="middle",c.fillStyle=f,c.fillText(n,0,-a),c.restore()}}}),(i.angleLines.display||i.pointLabels.display)&&function(t){var i=t.ctx,r=t.options,s=r.angleLines,l=r.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var c,d,h,f,p=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),m=n(t);i.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,p);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(v.x,v.y),i.stroke(),i.closePath()}if(l.display){var y=t.getPointPosition(g,p+5),b=o.valueAtIndexOrDefault(l.fontColor,g,u.defaultFontColor);i.font=m.font,i.fillStyle=b;var w=t.getIndexAngle(g),_=o.toDegrees(w);i.textAlign=0===(f=_)||180===f?"center":f<180?"left":"right",c=_,d=t._pointLabelSizes[g],h=y,90===c||270===c?h.y-=d.h/2:(c>270||c<90)&&(h.y-=d.h),a(i,t.pointLabels[g]||"",y,m.size)}}}(t)}}});t.scaleService.registerScaleType("radialLinear",d,c)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";function i(t,e){return t-e}function o(t){var e,n,i,o={},r=[];for(e=0,n=t.length;e<n;++e)o[i=t[e]]||(o[i]=!0,r.push(i));return r}function r(t,e,n,i){var o=function(t,e,n){for(var i,o,r,s=0,a=t.length-1;s>=0&&s<=a;){if(o=t[(i=s+a>>1)-1]||null,r=t[i],!o)return{lo:null,hi:r};if(r[e]<n)s=i+1;else{if(!(o[e]>n))return{lo:o,hi:r};a=i-1}}return{lo:r,hi:null}}(t,e,n),r=o.lo?o.hi?o.lo:t[t.length-2]:t[0],s=o.lo?o.hi?o.hi:t[t.length-1]:t[1],a=s[e]-r[e],l=a?(n-r[e])/a:0,u=(s[i]-r[i])*l;return r[i]+u}function s(t,e){var n=e.parser,i=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof i?c(t,i):(t instanceof c||(t=c(t)),t.isValid()?t:"function"==typeof i?i(t):t)}function a(t,e){if(h.isNullOrUndef(t))return null;var n=e.options.time,i=s(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function l(t){for(var e=g.indexOf(t)+1,n=g.length;e<n;++e)if(m[g[e]].common)return g[e]}function u(t,e,n,i){var o,r=i.time,s=r.unit||function(t,e,n,i){var o,r,s,a=g.length;for(o=g.indexOf(t);o<a-1;++o)if(s=(r=m[g[o]]).steps?r.steps[r.steps.length-1]:p,r.common&&Math.ceil((n-e)/(s*r.size))<=i)return g[o];return g[a-1]}(r.minUnit,t,e,n),a=l(s),u=h.valueOrDefault(r.stepSize,r.unitStepSize),d="week"===s&&r.isoWeekday,f=i.ticks.major.enabled,v=m[s],y=c(t),b=c(e),w=[];for(u||(u=function(t,e,n,i){var o,r,s,a=e-t,l=m[n],u=l.size,c=l.steps;if(!c)return Math.ceil(a/(i*u));for(o=0,r=c.length;o<r&&(s=c[o],!(Math.ceil(a/(u*s))<=i));++o);return s}(t,e,s,n)),d&&(y=y.isoWeekday(d),b=b.isoWeekday(d)),y=y.startOf(d?"day":s),(b=b.startOf(d?"day":s))<e&&b.add(1,s),o=c(y),f&&a&&!d&&!r.round&&(o.startOf(a),o.add(~~((y-o)/(v.size*u))*u,s));o<b;o.add(u,s))w.push(+o);return w.push(+o),w}var c=t(1);c="function"==typeof c?c:window.moment;var d=t(25),h=t(45),f=Number.MIN_SAFE_INTEGER||-9007199254740991,p=Number.MAX_SAFE_INTEGER||9007199254740991,m={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},g=Object.keys(m);e.exports=function(t){var e=t.Scale.extend({initialize:function(){if(!c)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),t.Scale.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),t.Scale.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),t.Scale.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var t,e,n,r,s,l,u=this,d=u.chart,m=u.options.time,g=m.unit||"day",v=p,y=f,b=[],w=[],_=[];for(t=0,n=d.data.labels.length;t<n;++t)_.push(a(d.data.labels[t],u));for(t=0,n=(d.data.datasets||[]).length;t<n;++t)if(d.isDatasetVisible(t))if(s=d.data.datasets[t].data,h.isObject(s[0]))for(w[t]=[],e=0,r=s.length;e<r;++e)l=a(s[e],u),b.push(l),w[t][e]=l;else b.push.apply(b,_),w[t]=_.slice(0);else w[t]=[];_.length&&(_=o(_).sort(i),v=Math.min(v,_[0]),y=Math.max(y,_[_.length-1])),b.length&&(b=o(b).sort(i),v=Math.min(v,b[0]),y=Math.max(y,b[b.length-1])),v=a(m.min,u)||v,y=a(m.max,u)||y,v=v===p?+c().startOf(g):v,y=y===f?+c().endOf(g)+1:y,u.min=Math.min(v,y),u.max=Math.max(v+1,y),u._horizontal=u.isHorizontal(),u._table=[],u._timestamps={data:b,datasets:w,labels:_}},buildTicks:function(){var t,e,n,i,o,d,h,f,p,v,y,b,w=this,_=w.min,x=w.max,D=w.options,k=D.time,S=[],M=[];switch(D.ticks.source){case"data":S=w._timestamps.data;break;case"labels":S=w._timestamps.labels;break;case"auto":default:S=u(_,x,w.getLabelCapacity(_),D)}for("ticks"===D.bounds&&S.length&&(_=S[0],x=S[S.length-1]),_=a(k.min,w)||_,x=a(k.max,w)||x,t=0,e=S.length;t<e;++t)(n=S[t])>=_&&n<=x&&M.push(n);return w.min=_,w.max=x,w._unit=k.unit||function(t,e,n,i){var o,r,s=c.duration(c(i).diff(c(n)));for(o=g.length-1;o>=g.indexOf(e);o--)if(r=g[o],m[r].common&&s.as(r)>=t.length)return r;return g[e?g.indexOf(e):0]}(M,k.minUnit,w.min,w.max),w._majorUnit=l(w._unit),w._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var o,r,s,a,l,u=[],c=[e];for(o=0,r=t.length;o<r;++o)(a=t[o])>e&&a<n&&c.push(a);for(c.push(n),o=0,r=c.length;o<r;++o)l=c[o+1],s=c[o-1],a=c[o],void 0!==s&&void 0!==l&&Math.round((l+s)/2)===a||u.push({time:a,pos:o/(r-1)});return u}(w._timestamps.data,_,x,D.distribution),w._offsets=(i=w._table,o=M,d=_,h=x,y=0,b=0,(f=D).offset&&o.length&&(f.time.min||(p=o.length>1?o[1]:h,v=o[0],y=(r(i,"time",p,"pos")-r(i,"time",v,"pos"))/2),f.time.max||(p=o[o.length-1],v=o.length>1?o[o.length-2]:d,b=(r(i,"time",p,"pos")-r(i,"time",v,"pos"))/2)),{left:y,right:b}),w._labelFormat=function(t,e){var n,i,o,r=t.length;for(n=0;n<r;n++){if(0!==(i=s(t[n],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===i.second()&&0===i.minute()&&0===i.hour()||(o=!0)}return o?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(w._timestamps.data,k),function(t,e){var n,i,o,r,s=[];for(n=0,i=t.length;n<i;++n)o=t[n],r=!!e&&o===+c(o).startOf(e),s.push({value:o,major:r});return s}(M,w._majorUnit)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,o=n.labels&&t<n.labels.length?n.labels[t]:"",r=n.datasets[e].data[t];return h.isObject(r)&&(o=this.getRightValue(r)),i.tooltipFormat?s(o,i).format(i.tooltipFormat):"string"==typeof o?o:s(o,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var o=this.options,r=t.valueOf(),s=o.time.displayFormats,a=s[this._unit],l=this._majorUnit,u=s[l],c=t.clone().startOf(l).valueOf(),d=o.ticks.major,f=d.enabled&&l&&u&&r===c,p=t.format(i||(f?u:a)),m=f?d:o.ticks.minor,g=h.valueOrDefault(m.callback,m.userCallback);return g?g(p,e,n):p},convertTicksToLabels:function(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(this.tickFormatFunction(c(t[e].value),e,t));return i},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,o=r(e._table,"time",t,"pos");return i+n*(e._offsets.left+o)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(void 0!==e&&void 0!==n&&(i=this._timestamps.datasets[n][e]),null===i&&(i=a(t,this)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,o=(n?(t-i)/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,s=r(e._table,"pos",o,"time");return c(s)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=h.toRadians(e.maxRotation),o=Math.cos(i),r=Math.sin(i);return n*o+h.valueOrDefault(e.fontSize,d.global.defaultFontSize)*r},getLabelCapacity:function(t){var e=this,n=e.options.time.displayFormats.millisecond,i=e.tickFormatFunction(c(t),0,[],n),o=e.getLabelWidth(i),r=e.isHorizontal()?e.width:e.height,s=Math.floor(r/o);return s>0?s:1}});t.scaleService.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{1:1,25:25,45:45}]},{},[7])(7)})},"3IRH":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"3MVc":function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(t){return function(e,n,r,s){var a=i(e),l=o[t][i(e)];return 2===a&&(l=l[n?0:1]),l.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return t.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},"4klR":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n("TqGs"),r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(){function t(){i(this,t)}return r(t,[{key:"init",value:function(){}},{key:"getId",value:function(){return null}},{key:"setContainer",value:function(t){if(!(t instanceof o.a))throw new Error("Plugin was given an invalid KimaiContainer");this._core=t}},{key:"getContainer",value:function(){return this._core}}]),t}();e.a=s},"5pSg":function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=95)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},95:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(96);var i=n(1);i.datepickerLocale("de","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),i.locale("de",{buttonText:{month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(t){return"+ weitere "+t},noEventsMessage:"Keine Ereignisse anzuzeigen"})},96:function(t,e,n){!function(t,e){!function(t){function e(t,e,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[n][0]:o[n][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))}()}})})},"6/V7":function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=181)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},181:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(182);var i=n(1);i.datepickerLocale("ru","ru",{closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),i.locale("ru",{buttonText:{month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},allDayText:"Весь день",eventLimitText:function(t){return"+ ещё "+t},noEventsMessage:"Нет событий для отображения"})},182:function(t,e,n){!function(t,e){!function(t){function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,i){var o={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?n?"минута":"минуту":t+" "+e(o[i],+t)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})}(n(0))}()}})})},"7Rwe":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n("PJh5"),r=n.n(o),s=n("awG4"),a=n("+NP7"),l=n("TqGs"),u=n("ztJp"),c=n("sZyP"),d=n("Eg81"),h=n("YVa9"),f=n("/TWM"),p=n("WByX"),m=n("9psQ"),g=n("iNbH"),v=n("T4Pq"),y=n("hMlo"),b=n("IArr"),w=n("RvrG"),_=n("mF88"),x=n("O5V4"),D=n("ddt0"),k=n("Orr0"),S=n("Eq4i"),M=n("y84T"),C=function t(e,n){i(this,t),r.a.locale(e.locale);var o=new l.a(new a.a(e),new s.a(n));o.registerPlugin(new D.a),o.registerPlugin(new g.a),o.registerPlugin(new S.a),o.registerPlugin(new u.a("[data-since]")),o.registerPlugin(new c.a("data-column-visibility")),o.registerPlugin(new d.a),o.registerPlugin(new h.a),o.registerPlugin(new f.a(".content-wrapper")),o.registerPlugin(new y.a(".content-wrapper")),o.registerPlugin(new p.a("table.dataTable")),o.registerPlugin(new m.a),o.registerPlugin(new v.a("select[data-related-select]")),o.registerPlugin(new b.a(".alternative-link")),o.registerPlugin(new w.a(".modal-ajax-form")),o.registerPlugin(new x.a("li.notifications-menu")),o.registerPlugin(new _.a("li.messages-menu","li.messages-menu-empty")),o.registerPlugin(new k.a("api-link")),o.registerPlugin(new M.a(".js-autocomplete")),o.getPlugin("event").trigger("kimai.pluginRegister"),o.getPlugins().map(function(t){t.init()}),o.getPlugin("event").trigger("kimai.initialized")};e.a=C},"7t+N":function(t,e,n){var i,o;/*!
|
||
* jQuery JavaScript Library v3.3.1
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2018-01-20T17:24Z
|
||
*/
|
||
!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,r){"use strict";function s(t,e,n){e=e||ct;var i,o=e.createElement("script");if(o.text=t,n)for(i in kt)n[i]&&(o[i]=n[i]);e.head.appendChild(o).parentNode.removeChild(o)}function a(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?gt[vt.call(t)]||"object":typeof t}function l(t){var e=!!t&&"length"in t&&t.length,n=a(t);return!xt(t)&&!Dt(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function c(t,e,n){return xt(e)?St.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?St.grep(t,function(t){return t===e!==n}):"string"!=typeof e?St.grep(t,function(t){return mt.call(e,t)>-1!==n}):St.filter(e,t,n)}function d(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function h(t){var e={};return St.each(t.match(Ht)||[],function(t,n){e[n]=!0}),e}function f(t){return t}function p(t){throw t}function m(t,e,n,i){var o;try{t&&xt(o=t.promise)?o.call(t).done(e).fail(n):t&&xt(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function g(){ct.removeEventListener("DOMContentLoaded",g),n.removeEventListener("load",g),St.ready()}function v(t,e){return e.toUpperCase()}function y(t){return t.replace(jt,"ms-").replace(zt,v)}function b(){this.expando=St.expando+b.uid++}function w(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Ut.test(t)?JSON.parse(t):t)}function _(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace($t,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=w(n)}catch(t){}Vt.set(t,e,n)}else n=void 0;return n}function x(t,e,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return St.css(t,e,"")},l=a(),u=n&&n[3]||(St.cssNumber[e]?"":"px"),c=(St.cssNumber[e]||"px"!==u&&+l)&&qt.exec(St.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)St.style(t,e,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;c*=2,St.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}function D(t){var e,n=t.ownerDocument,i=t.nodeName,o=Qt[i];return o||(e=n.body.appendChild(n.createElement(i)),o=St.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),Qt[i]=o,o)}function k(t,e){for(var n,i,o=[],r=0,s=t.length;r<s;r++)i=t[r],i.style&&(n=i.style.display,e?("none"===n&&(o[r]=Bt.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&Jt(i)&&(o[r]=D(i))):"none"!==n&&(o[r]="none",Bt.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}function S(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&u(t,e)?St.merge([t],n):n}function M(t,e){for(var n=0,i=t.length;n<i;n++)Bt.set(t[n],"globalEval",!e||Bt.get(e[n],"globalEval"))}function C(t,e,n,i,o){for(var r,s,l,u,c,d,h=e.createDocumentFragment(),f=[],p=0,m=t.length;p<m;p++)if((r=t[p])||0===r)if("object"===a(r))St.merge(f,r.nodeType?[r]:r);else if(ie.test(r)){for(s=s||h.appendChild(e.createElement("div")),l=(te.exec(r)||["",""])[1].toLowerCase(),u=ne[l]||ne._default,s.innerHTML=u[1]+St.htmlPrefilter(r)+u[2],d=u[0];d--;)s=s.lastChild;St.merge(f,s.childNodes),s=h.firstChild,s.textContent=""}else f.push(e.createTextNode(r));for(h.textContent="",p=0;r=f[p++];)if(i&&St.inArray(r,i)>-1)o&&o.push(r);else if(c=St.contains(r.ownerDocument,r),s=S(h.appendChild(r),"script"),c&&M(s),n)for(d=0;r=s[d++];)ee.test(r.type||"")&&n.push(r);return h}function T(){return!0}function E(){return!1}function P(){try{return ct.activeElement}catch(t){}}function O(t,e,n,i,o,r){var s,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)O(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=E;else if(!o)return t;return 1===r&&(s=o,o=function(t){return St().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=St.guid++)),t.each(function(){St.event.add(this,e,o,i,n)})}function I(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")?St(t).children("tbody")[0]||t:t}function L(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function R(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Y(t,e){var n,i,o,r,s,a,l,u;if(1===e.nodeType){if(Bt.hasData(t)&&(r=Bt.access(t),s=Bt.set(e,r),u=r.events)){delete s.handle,s.events={};for(o in u)for(n=0,i=u[o].length;n<i;n++)St.event.add(e,o,u[o][n])}Vt.hasData(t)&&(a=Vt.access(t),l=St.extend({},a),Vt.set(e,l))}}function H(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Kt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function A(t,e,n,i){e=ft.apply([],e);var o,r,a,l,u,c,d=0,h=t.length,f=h-1,p=e[0],m=xt(p);if(m||h>1&&"string"==typeof p&&!_t.checkClone&&ce.test(p))return t.each(function(o){var r=t.eq(o);m&&(e[0]=p.call(this,o,r.html())),A(r,e,n,i)});if(h&&(o=C(e,t[0].ownerDocument,!1,t,i),r=o.firstChild,1===o.childNodes.length&&(o=r),r||i)){for(a=St.map(S(o,"script"),L),l=a.length;d<h;d++)u=o,d!==f&&(u=St.clone(u,!0,!0),l&&St.merge(a,S(u,"script"))),n.call(t[d],u,d);if(l)for(c=a[a.length-1].ownerDocument,St.map(a,R),d=0;d<l;d++)u=a[d],ee.test(u.type||"")&&!Bt.access(u,"globalEval")&&St.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?St._evalUrl&&St._evalUrl(u.src):s(u.textContent.replace(de,""),c,u))}return t}function N(t,e,n){for(var i,o=e?St.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||St.cleanData(S(i)),i.parentNode&&(n&&St.contains(i.ownerDocument,i)&&M(S(i,"script")),i.parentNode.removeChild(i));return t}function F(t,e,n){var i,o,r,s,a=t.style;return n=n||fe(t),n&&(s=n.getPropertyValue(e)||n[e],""!==s||St.contains(t.ownerDocument,t)||(s=St.style(t,e)),!_t.pixelBoxStyles()&&he.test(s)&&pe.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function j(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function z(t){if(t in we)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=be.length;n--;)if((t=be[n]+e)in we)return t}function W(t){var e=St.cssProps[t];return e||(e=St.cssProps[t]=z(t)||t),e}function B(t,e,n){var i=qt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function V(t,e,n,i,o,r){var s="width"===e?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=St.css(t,n+Zt[s],!0,o)),i?("content"===n&&(l-=St.css(t,"padding"+Zt[s],!0,o)),"margin"!==n&&(l-=St.css(t,"border"+Zt[s]+"Width",!0,o))):(l+=St.css(t,"padding"+Zt[s],!0,o),"padding"!==n?l+=St.css(t,"border"+Zt[s]+"Width",!0,o):a+=St.css(t,"border"+Zt[s]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-a-.5))),l}function U(t,e,n){var i=fe(t),o=F(t,e,i),r="border-box"===St.css(t,"boxSizing",!1,i),s=r;if(he.test(o)){if(!n)return o;o="auto"}return s=s&&(_t.boxSizingReliable()||o===t.style[e]),("auto"===o||!parseFloat(o)&&"inline"===St.css(t,"display",!1,i))&&(o=t["offset"+e[0].toUpperCase()+e.slice(1)],s=!0),(o=parseFloat(o)||0)+V(t,e,n||(r?"border":"content"),s,i,o)+"px"}function $(t,e,n,i,o){return new $.prototype.init(t,e,n,i,o)}function G(){xe&&(!1===ct.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(G):n.setTimeout(G,St.fx.interval),St.fx.tick())}function q(){return n.setTimeout(function(){_e=void 0}),_e=Date.now()}function Z(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)n=Zt[i],o["margin"+n]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function J(t,e,n){for(var i,o=(K.tweeners[e]||[]).concat(K.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function X(t,e,n){var i,o,r,s,a,l,u,c,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&Jt(t),g=Bt.get(t,"fxshow");n.queue||(s=St._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,St.queue(t,"fx").length||s.empty.fire()})}));for(i in e)if(o=e[i],De.test(o)){if(delete e[i],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||St.style(t,i)}if((l=!St.isEmptyObject(e))||!St.isEmptyObject(f)){d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],u=g&&g.display,null==u&&(u=Bt.get(t,"display")),c=St.css(t,"display"),"none"===c&&(u?c=u:(k([t],!0),u=t.style.display||u,c=St.css(t,"display"),k([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===St.css(t,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1;for(i in f)l||(g?"hidden"in g&&(m=g.hidden):g=Bt.access(t,"fxshow",{display:u}),r&&(g.hidden=!m),m&&k([t],!0),h.done(function(){m||k([t]),Bt.remove(t,"fxshow");for(i in f)St.style(t,i,f[i])})),l=J(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}}function Q(t,e){var n,i,o,r,s;for(n in t)if(i=y(n),o=e[i],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=St.cssHooks[i])&&"expand"in s){r=s.expand(r),delete t[i];for(n in r)n in t||(t[n]=r[n],e[n]=o)}else e[i]=o}function K(t,e,n){var i,o,r=0,s=K.prefilters.length,a=St.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=_e||q(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,r=1-i,s=0,l=u.tweens.length;s<l;s++)u.tweens[s].run(r);return a.notifyWith(t,[u,r,n]),r<1&&l?n:(l||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:St.extend({},e),opts:St.extend(!0,{specialEasing:{},easing:St.easing._default},n),originalProperties:e,originalOptions:n,startTime:_e||q(),duration:n.duration,tweens:[],createTween:function(e,n){var i=St.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(Q(c,u.opts.specialEasing);r<s;r++)if(i=K.prefilters[r].call(u,t,c,u.opts))return xt(i.stop)&&(St._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return St.map(c,J,u),xt(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),St.fx.timer(St.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}function tt(t){return(t.match(Ht)||[]).join(" ")}function et(t){return t.getAttribute&&t.getAttribute("class")||""}function nt(t){return Array.isArray(t)?t:"string"==typeof t?t.match(Ht)||[]:[]}function it(t,e,n,i){var o;if(Array.isArray(e))St.each(e,function(e,o){n||Ye.test(t)?i(t,o):it(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)});else if(n||"object"!==a(e))i(t,e);else for(o in e)it(t+"["+o+"]",e[o],n,i)}function ot(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(Ht)||[];if(xt(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function rt(t,e,n,i){function o(a){var l;return r[a]=!0,St.each(t[a]||[],function(t,a){var u=a(e,n,i);return"string"!=typeof u||s||r[u]?s?!(l=u):void 0:(e.dataTypes.unshift(u),o(u),!1)}),l}var r={},s=t===Ge;return o(e.dataTypes[0])||!r["*"]&&o("*")}function st(t,e){var n,i,o=St.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&St.extend(!0,t,i),t}function at(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}function lt(t,e,n,i){var o,r,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if(a=o.split(" "),a[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}var ut=[],ct=n.document,dt=Object.getPrototypeOf,ht=ut.slice,ft=ut.concat,pt=ut.push,mt=ut.indexOf,gt={},vt=gt.toString,yt=gt.hasOwnProperty,bt=yt.toString,wt=bt.call(Object),_t={},xt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},Dt=function(t){return null!=t&&t===t.window},kt={type:!0,src:!0,noModule:!0},St=function(t,e){return new St.fn.init(t,e)},Mt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;St.fn=St.prototype={jquery:"3.3.1",constructor:St,length:0,toArray:function(){return ht.call(this)},get:function(t){return null==t?ht.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=St.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return St.each(this,t)},map:function(t){return this.pushStack(St.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(ht.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:pt,sort:ut.sort,splice:ut.splice},St.extend=St.fn.extend=function(){var t,e,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||xt(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],i=t[e],s!==i&&(u&&i&&(St.isPlainObject(i)||(o=Array.isArray(i)))?(o?(o=!1,r=n&&Array.isArray(n)?n:[]):r=n&&St.isPlainObject(n)?n:{},s[e]=St.extend(u,r,i)):void 0!==i&&(s[e]=i));return s},St.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==vt.call(t))&&(!(e=dt(t))||"function"==typeof(n=yt.call(e,"constructor")&&e.constructor)&&bt.call(n)===wt)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){s(t)},each:function(t,e){var n,i=0;if(l(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(Mt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(l(Object(t))?St.merge(n,"string"==typeof t?[t]:t):pt.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:mt.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!==s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(l(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return ft.apply([],s)},guid:1,support:_t}),"function"==typeof Symbol&&(St.fn[Symbol.iterator]=ut[Symbol.iterator]),St.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){gt["[object "+e+"]"]=e.toLowerCase()});var Ct=/*!
|
||
* Sizzle CSS Selector Engine v2.3.3
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*
|
||
* Date: 2016-08-08
|
||
*/
|
||
function(t){function e(t,e,n,i){var o,r,s,a,l,c,h,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:F)!==O&&P(e),e=e||O,L)){if(11!==p&&(l=mt.exec(t)))if(o=l[1]){if(9===p){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(f&&(s=f.getElementById(o))&&A(e,s)&&s.id===o)return n.push(s),n}else{if(l[2])return J.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return J.apply(n,e.getElementsByClassName(o)),n}if(w.qsa&&!V[t+" "]&&(!R||!R.test(t))){if(1!==p)f=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(bt,wt):e.setAttribute("id",a=N),c=k(t),r=c.length;r--;)c[r]="#"+a+" "+d(c[r]);h=c.join(","),f=gt.test(t)&&u(e.parentNode)||e}if(h)try{return J.apply(n,f.querySelectorAll(h)),n}catch(t){}finally{a===N&&e.removeAttribute("id")}}}return M(t.replace(rt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[N]=!0,t}function o(t){var e=O.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&xt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var o,r=t([],n.length,e),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function u(t){return t&&void 0!==t.getElementsByTagName&&t}function c(){}function d(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function h(t,e,n){var i=e.dir,o=e.next,r=o||i,s=n&&"parentNode"===r,a=z++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,o);return!1}:function(e,n,l){var u,c,d,h=[j,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(d=e[N]||(e[N]={}),c=d[e.uniqueID]||(d[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[r])&&u[0]===j&&u[1]===a)return h[2]=u[2];if(c[r]=h,h[2]=t(e,n,l))return!0}return!1}}function f(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function p(t,n,i){for(var o=0,r=n.length;o<r;o++)e(t,n[o],i);return i}function m(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),u&&e.push(a)));return s}function g(t,e,n,o,r,s){return o&&!o[N]&&(o=g(o)),r&&!r[N]&&(r=g(r,s)),i(function(i,s,a,l){var u,c,d,h=[],f=[],g=s.length,v=i||p(e||"*",a.nodeType?[a]:a,[]),y=!t||!i&&e?v:m(v,h,t,a,l),b=n?r||(i?t:g||o)?[]:s:y;if(n&&n(y,b,a,l),o)for(u=m(b,f),o(u,[],a,l),c=u.length;c--;)(d=u[c])&&(b[f[c]]=!(y[f[c]]=d));if(i){if(r||t){if(r){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);r(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=r?Q(i,d):h[c])>-1&&(i[u]=!(s[u]=d))}}else b=m(b===s?b.splice(g,b.length):b),r?r(null,s,b,l):J.apply(s,b)})}function v(t){for(var e,n,i,o=t.length,r=_.relative[t[0].type],s=r||_.relative[" "],a=r?1:0,l=h(function(t){return t===e},s,!0),u=h(function(t){return Q(e,t)>-1},s,!0),c=[function(t,n,i){var o=!r&&(i||n!==C)||((e=n).nodeType?l(t,n,i):u(t,n,i));return e=null,o}];a<o;a++)if(n=_.relative[t[a].type])c=[h(f(c),n)];else{if(n=_.filter[t[a].type].apply(null,t[a].matches),n[N]){for(i=++a;i<o&&!_.relative[t[i].type];i++);return g(a>1&&f(c),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(rt,"$1"),n,a<i&&v(t.slice(a,i)),i<o&&v(t=t.slice(i)),i<o&&d(t))}c.push(n)}return f(c)}function y(t,n){var o=n.length>0,r=t.length>0,s=function(i,s,a,l,u){var c,d,h,f=0,p="0",g=i&&[],v=[],y=C,b=i||r&&_.find.TAG("*",u),w=j+=null==y?1:Math.random()||.1,x=b.length;for(u&&(C=s===O||s||u);p!==x&&null!=(c=b[p]);p++){if(r&&c){for(d=0,s||c.ownerDocument===O||(P(c),a=!L);h=t[d++];)if(h(c,s||O,a)){l.push(c);break}u&&(j=w)}o&&((c=!h&&c)&&f--,i&&g.push(c))}if(f+=p,o&&p!==f){for(d=0;h=n[d++];)h(g,v,s,a);if(i){if(f>0)for(;p--;)g[p]||v[p]||(v[p]=q.call(l));v=m(v)}J.apply(l,v),u&&!i&&v.length>0&&f+n.length>1&&e.uniqueSort(l)}return u&&(j=w,C=y),g};return o?i(s):s}var b,w,_,x,D,k,S,M,C,T,E,P,O,I,L,R,Y,H,A,N="sizzle"+1*new Date,F=t.document,j=0,z=0,W=n(),B=n(),V=n(),U=function(t,e){return t===e&&(E=!0),0},$={}.hasOwnProperty,G=[],q=G.pop,Z=G.push,J=G.push,X=G.slice,Q=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",nt="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",it=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+nt+")*)|.*)\\)|)",ot=new RegExp(tt+"+","g"),rt=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),st=new RegExp("^"+tt+"*,"+tt+"*"),at=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ut=new RegExp(it),ct=new RegExp("^"+et+"$"),dt={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,ft=/^h\d$/i,pt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),yt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},bt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wt=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},_t=function(){P()},xt=h(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{J.apply(G=X.call(F.childNodes),F.childNodes),G[F.childNodes.length].nodeType}catch(t){J={apply:G.length?function(t,e){Z.apply(t,X.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}w=e.support={},D=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},P=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:F;return i!==O&&9===i.nodeType&&i.documentElement?(O=i,I=O.documentElement,L=!D(O),F!==O&&(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),w.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=o(function(t){return t.appendChild(O.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=pt.test(O.getElementsByClassName),w.getById=o(function(t){return I.appendChild(t).id=N,!O.getElementsByName||!O.getElementsByName(N).length}),w.getById?(_.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&L){var n=e.getElementById(t);return n?[n]:[]}}):(_.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&L){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),_.find.TAG=w.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},_.find.CLASS=w.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&L)return e.getElementsByClassName(t)},Y=[],R=[],(w.qsa=pt.test(O.querySelectorAll))&&(o(function(t){I.appendChild(t).innerHTML="<a id='"+N+"'></a><select id='"+N+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+tt+"*(?:value|"+K+")"),t.querySelectorAll("[id~="+N+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+N+"+*").length||R.push(".#.+[+~]")}),o(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=O.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),I.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(w.matchesSelector=pt.test(H=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&o(function(t){w.disconnectedMatch=H.call(t,"*"),H.call(t,"[s!='']:x"),Y.push("!=",it)}),R=R.length&&new RegExp(R.join("|")),Y=Y.length&&new RegExp(Y.join("|")),e=pt.test(I.compareDocumentPosition),A=e||pt.test(I.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===O||t.ownerDocument===F&&A(F,t)?-1:e===O||e.ownerDocument===F&&A(F,e)?1:T?Q(T,t)-Q(T,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!o||!r)return t===O?-1:e===O?1:o?-1:r?1:T?Q(T,t)-Q(T,e):0;if(o===r)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===F?-1:l[i]===F?1:0},O):O},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==O&&P(t),n=n.replace(lt,"='$1']"),w.matchesSelector&&L&&!V[n+" "]&&(!Y||!Y.test(n))&&(!R||!R.test(n)))try{var i=H.call(t,n);if(i||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,O,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==O&&P(t),A(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==O&&P(t);var n=_.attrHandle[e.toLowerCase()],i=n&&$.call(_.attrHandle,e.toLowerCase())?n(t,e,!L):void 0;return void 0!==i?i:w.attributes||!L?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(bt,wt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,o=0;if(E=!w.detectDuplicates,T=!w.sortStable&&t.slice(0),t.sort(U),E){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return T=null,t},x=e.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=x(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=x(e);return n},_=e.selectors={cacheLength:50,createPseudo:i,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(vt,yt),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,yt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ut.test(n)&&(e=k(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,yt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(o){var r=e.attr(o,t);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(ot," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,m=r!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(r){for(;m;){for(h=e;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(h=g,d=h[N]||(h[N]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[t]||[],f=u[0]===j&&u[1],b=f&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[j,f,b];break}}else if(y&&(h=e,d=h[N]||(h[N]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[t]||[],f=u[0]===j&&u[1],b=f),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&(d=h[N]||(h[N]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),c[t]=[j,b]),h!==e)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,n){var o,r=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[N]?r(n):r.length>1?(o=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=r(t,n),s=o.length;s--;)i=Q(t,o[s]),t[i]=!(e[i]=o[s])}):function(t){return r(t,0,o)}):r}},pseudos:{not:i(function(t){var e=[],n=[],o=S(t.replace(rt,"$1"));return o[N]?i(function(t,e,n,i){for(var r,s=o(t,null,i,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))}):function(t,i,r){return e[0]=t,o(e,null,r,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(vt,yt),function(e){return(e.textContent||e.innerText||x(e)).indexOf(t)>-1}}),lang:i(function(t){return ct.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,yt).toLowerCase(),function(e){var n;do{if(n=L?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===I},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return ft.test(t.nodeName)},input:function(t){return ht.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},_.pseudos.nth=_.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[b]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(b);for(b in{submit:!0,reset:!0})_.pseudos[b]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(b);return c.prototype=_.filters=_.pseudos,_.setFilters=new c,k=e.tokenize=function(t,n){var i,o,r,s,a,l,u,c=B[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=_.preFilter;a;){i&&!(o=st.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=at.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(rt," ")}),a=a.slice(i.length));for(s in _.filter)!(o=dt[s].exec(a))||u[s]&&!(o=u[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):B(t,l).slice(0)},S=e.compile=function(t,e){var n,i=[],o=[],r=V[t+" "];if(!r){for(e||(e=k(t)),n=e.length;n--;)r=v(e[n]),r[N]?i.push(r):o.push(r);r=V(t,y(o,i)),r.selector=t}return r},M=e.select=function(t,e,n,i){var o,r,s,a,l,c="function"==typeof t&&t,h=!i&&k(t=c.selector||t);if(n=n||[],1===h.length){if(r=h[0]=h[0].slice(0),r.length>2&&"ID"===(s=r[0]).type&&9===e.nodeType&&L&&_.relative[r[1].type]){if(!(e=(_.find.ID(s.matches[0].replace(vt,yt),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=dt.needsContext.test(t)?0:r.length;o--&&(s=r[o],!_.relative[a=s.type]);)if((l=_.find[a])&&(i=l(s.matches[0].replace(vt,yt),gt.test(r[0].type)&&u(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&d(r)))return J.apply(n,i),n;break}}return(c||S(t,h))(i,e,!L,n,!e||gt.test(t)&&u(e.parentNode)||e),n},w.sortStable=N.split("").sort(U).join("")===N,w.detectDuplicates=!!E,P(),w.sortDetached=o(function(t){return 1&t.compareDocumentPosition(O.createElement("fieldset"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||r(K,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(n);St.find=Ct,St.expr=Ct.selectors,St.expr[":"]=St.expr.pseudos,St.uniqueSort=St.unique=Ct.uniqueSort,St.text=Ct.getText,St.isXMLDoc=Ct.isXML,St.contains=Ct.contains,St.escapeSelector=Ct.escape;var Tt=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&St(t).is(n))break;i.push(t)}return i},Et=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Pt=St.expr.match.needsContext,Ot=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;St.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?St.find.matchesSelector(i,t)?[i]:[]:St.find.matches(t,St.grep(e,function(t){return 1===t.nodeType}))},St.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(St(t).filter(function(){for(e=0;e<i;e++)if(St.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)St.find(t,o[e],n);return i>1?St.uniqueSort(n):n},filter:function(t){return this.pushStack(c(this,t||[],!1))},not:function(t){return this.pushStack(c(this,t||[],!0))},is:function(t){return!!c(this,"string"==typeof t&&Pt.test(t)?St(t):t||[],!1).length}});var It,Lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(St.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||It,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Lt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof St?e[0]:e,St.merge(this,St.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:ct,!0)),Ot.test(i[1])&&St.isPlainObject(e))for(i in e)xt(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return o=ct.getElementById(i[2]),o&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):xt(t)?void 0!==n.ready?n.ready(t):t(St):St.makeArray(t,this)}).prototype=St.fn,It=St(ct);var Rt=/^(?:parents|prev(?:Until|All))/,Yt={children:!0,contents:!0,next:!0,prev:!0};St.fn.extend({has:function(t){var e=St(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(St.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,r=[],s="string"!=typeof t&&St(t);if(!Pt.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&St.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?St.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?mt.call(St(t),this[0]):mt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(St.uniqueSort(St.merge(this.get(),St(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),St.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Tt(t,"parentNode")},parentsUntil:function(t,e,n){return Tt(t,"parentNode",n)},next:function(t){return d(t,"nextSibling")},prev:function(t){return d(t,"previousSibling")},nextAll:function(t){return Tt(t,"nextSibling")},prevAll:function(t){return Tt(t,"previousSibling")},nextUntil:function(t,e,n){return Tt(t,"nextSibling",n)},prevUntil:function(t,e,n){return Tt(t,"previousSibling",n)},siblings:function(t){return Et((t.parentNode||{}).firstChild,t)},children:function(t){return Et(t.firstChild)},contents:function(t){return u(t,"iframe")?t.contentDocument:(u(t,"template")&&(t=t.content||t),St.merge([],t.childNodes))}},function(t,e){St.fn[t]=function(n,i){var o=St.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=St.filter(i,o)),this.length>1&&(Yt[t]||St.uniqueSort(o),Rt.test(t)&&o.reverse()),this.pushStack(o)}});var Ht=/[^\x20\t\r\n\f]+/g;St.Callbacks=function(t){t="string"==typeof t?h(t):St.extend({},t);var e,n,i,o,r=[],s=[],l=-1,u=function(){for(o=o||t.once,i=e=!0;s.length;l=-1)for(n=s.shift();++l<r.length;)!1===r[l].apply(n[0],n[1])&&t.stopOnFalse&&(l=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!e&&(l=r.length-1,s.push(n)),function e(n){St.each(n,function(n,i){xt(i)?t.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==a(i)&&e(i)})}(arguments),n&&!e&&u()),this},remove:function(){return St.each(arguments,function(t,e){for(var n;(n=St.inArray(e,r,n))>-1;)r.splice(n,1),n<=l&&l--}),this},has:function(t){return t?St.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},St.extend({Deferred:function(t){var e=[["notify","progress",St.Callbacks("memory"),St.Callbacks("memory"),2],["resolve","done",St.Callbacks("once memory"),St.Callbacks("once memory"),0,"resolved"],["reject","fail",St.Callbacks("once memory"),St.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return St.Deferred(function(n){St.each(e,function(e,i){var o=xt(t[i[4]])&&t[i[4]];r[i[1]](function(){var t=o&&o.apply(this,arguments);t&&xt(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(t,i,o){function r(t,e,i,o){return function(){var a=this,l=arguments,u=function(){var n,u;if(!(t<s)){if((n=i.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,xt(u)?o?u.call(n,r(s,e,f,o),r(s,e,p,o)):(s++,u.call(n,r(s,e,f,o),r(s,e,p,o),r(s,e,f,e.notifyWith))):(i!==f&&(a=void 0,l=[n]),(o||e.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(n){St.Deferred.exceptionHook&&St.Deferred.exceptionHook(n,c.stackTrace),t+1>=s&&(i!==p&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?c():(St.Deferred.getStackHook&&(c.stackTrace=St.Deferred.getStackHook()),n.setTimeout(c))}}var s=0;return St.Deferred(function(n){e[0][3].add(r(0,n,xt(o)?o:f,n.notifyWith)),e[1][3].add(r(0,n,xt(t)?t:f)),e[2][3].add(r(0,n,xt(i)?i:p))}).promise()},promise:function(t){return null!=t?St.extend(t,o):o}},r={};return St.each(e,function(t,n){var s=n[2],a=n[5];o[n[1]]=s.add,a&&s.add(function(){i=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),r[n[0]]=function(){return r[n[0]+"With"](this===r?void 0:this,arguments),this},r[n[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,n=e,i=Array(n),o=ht.call(arguments),r=St.Deferred(),s=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?ht.call(arguments):n,--e||r.resolveWith(i,o)}};if(e<=1&&(m(t,r.done(s(n)).resolve,r.reject,!e),"pending"===r.state()||xt(o[n]&&o[n].then)))return r.then();for(;n--;)m(o[n],s(n),r.reject);return r.promise()}});var At=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;St.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&At.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},St.readyException=function(t){n.setTimeout(function(){throw t})};var Nt=St.Deferred();St.fn.ready=function(t){return Nt.then(t).catch(function(t){St.readyException(t)}),this},St.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--St.readyWait:St.isReady)||(St.isReady=!0,!0!==t&&--St.readyWait>0||Nt.resolveWith(ct,[St]))}}),St.ready.then=Nt.then,"complete"===ct.readyState||"loading"!==ct.readyState&&!ct.documentElement.doScroll?n.setTimeout(St.ready):(ct.addEventListener("DOMContentLoaded",g),n.addEventListener("load",g));var Ft=function(t,e,n,i,o,r,s){var l=0,u=t.length,c=null==n;if("object"===a(n)){o=!0;for(l in n)Ft(t,e,l,n[l],!0,r,s)}else if(void 0!==i&&(o=!0,xt(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(St(t),n)})),e))for(;l<u;l++)e(t[l],n,s?i:i.call(t[l],l,e(t[l],n)));return o?t:c?e.call(t):u?e(t[0],n):r},jt=/^-ms-/,zt=/-([a-z])/g,Wt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};b.uid=1,b.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Wt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[y(e)]=n;else for(i in e)o[y(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][y(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){Array.isArray(e)?e=e.map(y):(e=y(e),e=e in i?[e]:e.match(Ht)||[]),n=e.length;for(;n--;)delete i[e[n]]}(void 0===e||St.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!St.isEmptyObject(e)}};var Bt=new b,Vt=new b,Ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$t=/[A-Z]/g;St.extend({hasData:function(t){return Vt.hasData(t)||Bt.hasData(t)},data:function(t,e,n){return Vt.access(t,e,n)},removeData:function(t,e){Vt.remove(t,e)},_data:function(t,e,n){return Bt.access(t,e,n)},_removeData:function(t,e){Bt.remove(t,e)}}),St.fn.extend({data:function(t,e){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===t){if(this.length&&(o=Vt.get(r),1===r.nodeType&&!Bt.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=y(i.slice(5)),_(r,i,o[i])));Bt.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){Vt.set(this,t)}):Ft(this,function(e){var n;if(r&&void 0===e){if(void 0!==(n=Vt.get(r,t)))return n;if(void 0!==(n=_(r,t)))return n}else this.each(function(){Vt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Vt.remove(this,t)})}}),St.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Bt.get(t,e),n&&(!i||Array.isArray(n)?i=Bt.access(t,e,St.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=St.queue(t,e),i=n.length,o=n.shift(),r=St._queueHooks(t,e),s=function(){St.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,s,r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Bt.get(t,n)||Bt.access(t,n,{empty:St.Callbacks("once memory").add(function(){Bt.remove(t,[e+"queue",n])})})}}),St.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?St.queue(this[0],t):void 0===e?this:this.each(function(){var n=St.queue(this,t,e);St._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&St.dequeue(this,t)})},dequeue:function(t){return this.each(function(){St.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=St.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Bt.get(r[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(e)}});var Gt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,qt=new RegExp("^(?:([+-])=|)("+Gt+")([a-z%]*)$","i"),Zt=["Top","Right","Bottom","Left"],Jt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&St.contains(t.ownerDocument,t)&&"none"===St.css(t,"display")},Xt=function(t,e,n,i){var o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];o=n.apply(t,i||[]);for(r in e)t.style[r]=s[r];return o},Qt={};St.fn.extend({show:function(){return k(this,!0)},hide:function(){return k(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Jt(this)?St(this).show():St(this).hide()})}});var Kt=/^(?:checkbox|radio)$/i,te=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ee=/^$|^module$|\/(?:java|ecma)script/i,ne={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ne.optgroup=ne.option,ne.tbody=ne.tfoot=ne.colgroup=ne.caption=ne.thead,ne.th=ne.td;var ie=/<|&#?\w+;/;!function(){var t=ct.createDocumentFragment(),e=t.appendChild(ct.createElement("div")),n=ct.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),_t.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",_t.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var oe=ct.documentElement,re=/^key/,se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ae=/^([^.]*)(?:\.(.+)|)/;St.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,u,c,d,h,f,p,m,g=Bt.get(t);if(g)for(n.handler&&(r=n,n=r.handler,o=r.selector),o&&St.find.matchesSelector(oe,o),n.guid||(n.guid=St.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==St&&St.event.triggered!==e.type?St.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Ht)||[""],u=e.length;u--;)a=ae.exec(e[u])||[],f=m=a[1],p=(a[2]||"").split(".").sort(),f&&(d=St.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=St.event.special[f]||{},c=St.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&St.expr.match.needsContext.test(o),namespace:p.join(".")},r),(h=l[f])||(h=l[f]=[],h.delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,c):h.push(c),St.event.global[f]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,u,c,d,h,f,p,m,g=Bt.hasData(t)&&Bt.get(t);if(g&&(l=g.events)){for(e=(e||"").match(Ht)||[""],u=e.length;u--;)if(a=ae.exec(e[u])||[],f=m=a[1],p=(a[2]||"").split(".").sort(),f){for(d=St.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,h=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)c=h[r],!o&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(r,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||St.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)St.event.remove(t,f+e[u],n,i,!0);St.isEmptyObject(l)&&Bt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s,a=St.event.fix(t),l=new Array(arguments.length),u=(Bt.get(this,"events")||{})[a.type]||[],c=St.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=St.event.handlers.call(this,a,u),e=0;(o=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(i=((St.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,o,r,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)i=e[n],o=i.selector+" ",void 0===s[o]&&(s[o]=i.needsContext?St(o,this).index(u)>-1:St.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(St.Event.prototype,t,{enumerable:!0,configurable:!0,get:xt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[St.expando]?t:new St.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==P()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===P()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&u(this,"input"))return this.click(),!1},_default:function(t){return u(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},St.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},St.Event=function(t,e){if(!(this instanceof St.Event))return new St.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?T:E,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&St.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[St.expando]=!0},St.Event.prototype={constructor:St.Event,isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=T,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=T,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=T,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},St.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&re.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&se.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},St.event.addProp),St.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){St.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||St.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),St.fn.extend({on:function(t,e,n,i){return O(this,t,e,n,i)},one:function(t,e,n,i){return O(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,St(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=E),this.each(function(){St.event.remove(this,t,n,e)})}});var le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ue=/<script|<style|<link/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,de=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;St.extend({htmlPrefilter:function(t){return t.replace(le,"<$1></$2>")},clone:function(t,e,n){var i,o,r,s,a=t.cloneNode(!0),l=St.contains(t.ownerDocument,t);if(!(_t.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||St.isXMLDoc(t)))for(s=S(a),r=S(t),i=0,o=r.length;i<o;i++)H(r[i],s[i]);if(e)if(n)for(r=r||S(t),s=s||S(a),i=0,o=r.length;i<o;i++)Y(r[i],s[i]);else Y(t,a);return s=S(a,"script"),s.length>0&&M(s,!l&&S(t,"script")),a},cleanData:function(t){for(var e,n,i,o=St.event.special,r=0;void 0!==(n=t[r]);r++)if(Wt(n)){if(e=n[Bt.expando]){if(e.events)for(i in e.events)o[i]?St.event.remove(n,i):St.removeEvent(n,i,e.handle);n[Bt.expando]=void 0}n[Vt.expando]&&(n[Vt.expando]=void 0)}}}),St.fn.extend({detach:function(t){return N(this,t,!0)},remove:function(t){return N(this,t)},text:function(t){return Ft(this,function(t){return void 0===t?St.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return A(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){I(this,t).appendChild(t)}})},prepend:function(){return A(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=I(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return A(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return A(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(St.cleanData(S(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return St.clone(this,t,e)})},html:function(t){return Ft(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ue.test(t)&&!ne[(te.exec(t)||["",""])[1].toLowerCase()]){t=St.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(St.cleanData(S(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return A(this,arguments,function(e){var n=this.parentNode;St.inArray(this,t)<0&&(St.cleanData(S(this)),n&&n.replaceChild(e,this))},t)}}),St.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){St.fn[t]=function(t){for(var n,i=[],o=St(t),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),St(o[s])[e](n),pt.apply(i,n.get());return this.pushStack(i)}});var he=new RegExp("^("+Gt+")(?!px)[a-z%]+$","i"),fe=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},pe=new RegExp(Zt.join("|"),"i");!function(){function t(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(u);var t=n.getComputedStyle(u);i="1%"!==t.top,a=12===e(t.marginLeft),u.style.right="60%",s=36===e(t.right),o=36===e(t.width),u.style.position="absolute",r=36===u.offsetWidth||"absolute",oe.removeChild(l),u=null}}function e(t){return Math.round(parseFloat(t))}var i,o,r,s,a,l=ct.createElement("div"),u=ct.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",_t.clearCloneStyle="content-box"===u.style.backgroundClip,St.extend(_t,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),a},scrollboxSize:function(){return t(),r}}))}();var me=/^(none|table(?!-c[ea]).+)/,ge=/^--/,ve={position:"absolute",visibility:"hidden",display:"block"},ye={letterSpacing:"0",fontWeight:"400"},be=["Webkit","Moz","ms"],we=ct.createElement("div").style;St.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=F(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=y(e),l=ge.test(e),u=t.style;if(l||(e=W(a)),s=St.cssHooks[e]||St.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:u[e];r=typeof n,"string"===r&&(o=qt.exec(n))&&o[1]&&(n=x(t,e,o),r="number"),null!=n&&n===n&&("number"===r&&(n+=o&&o[3]||(St.cssNumber[a]?"":"px")),_t.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r,s,a=y(e);return ge.test(e)||(e=W(a)),s=St.cssHooks[e]||St.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=F(t,e,i)),"normal"===o&&e in ye&&(o=ye[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),St.each(["height","width"],function(t,e){St.cssHooks[e]={get:function(t,n,i){if(n)return!me.test(St.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?U(t,e,i):Xt(t,ve,function(){return U(t,e,i)})},set:function(t,n,i){var o,r=fe(t),s="border-box"===St.css(t,"boxSizing",!1,r),a=i&&V(t,e,i,s,r);return s&&_t.scrollboxSize()===r.position&&(a-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-V(t,e,"border",!1,r)-.5)),a&&(o=qt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=St.css(t,e)),B(t,n,a)}}}),St.cssHooks.marginLeft=j(_t.reliableMarginLeft,function(t,e){if(e)return(parseFloat(F(t,"marginLeft"))||t.getBoundingClientRect().left-Xt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),St.each({margin:"",padding:"",border:"Width"},function(t,e){St.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+Zt[i]+e]=r[i]||r[i-2]||r[0];return o}},"margin"!==t&&(St.cssHooks[t+e].set=B)}),St.fn.extend({css:function(t,e){return Ft(this,function(t,e,n){var i,o,r={},s=0;if(Array.isArray(e)){for(i=fe(t),o=e.length;s<o;s++)r[e[s]]=St.css(t,e[s],!1,i);return r}return void 0!==n?St.style(t,e,n):St.css(t,e)},t,e,arguments.length>1)}}),St.Tween=$,$.prototype={constructor:$,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||St.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(St.cssNumber[n]?"":"px")},cur:function(){var t=$.propHooks[this.prop];return t&&t.get?t.get(this):$.propHooks._default.get(this)},run:function(t){var e,n=$.propHooks[this.prop];return this.options.duration?this.pos=e=St.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):$.propHooks._default.set(this),this}},$.prototype.init.prototype=$.prototype,$.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=St.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){St.fx.step[t.prop]?St.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[St.cssProps[t.prop]]&&!St.cssHooks[t.prop]?t.elem[t.prop]=t.now:St.style(t.elem,t.prop,t.now+t.unit)}}},$.propHooks.scrollTop=$.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},St.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},St.fx=$.prototype.init,St.fx.step={};var _e,xe,De=/^(?:toggle|show|hide)$/,ke=/queueHooks$/;St.Animation=St.extend(K,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return x(n.elem,t,qt.exec(e),n),n}]},tweener:function(t,e){xt(t)?(e=t,t=["*"]):t=t.match(Ht);for(var n,i=0,o=t.length;i<o;i++)n=t[i],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(e)},prefilters:[X],prefilter:function(t,e){e?K.prefilters.unshift(t):K.prefilters.push(t)}}),St.speed=function(t,e,n){var i=t&&"object"==typeof t?St.extend({},t):{complete:n||!n&&e||xt(t)&&t,duration:t,easing:n&&e||e&&!xt(e)&&e};return St.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in St.fx.speeds?i.duration=St.fx.speeds[i.duration]:i.duration=St.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){xt(i.old)&&i.old.call(this),i.queue&&St.dequeue(this,i.queue)},i},St.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Jt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=St.isEmptyObject(t),r=St.speed(e,n,i),s=function(){var e=K(this,St.extend({},t),r);(o||Bt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",r=St.timers,s=Bt.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&ke.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||St.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=Bt.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=St.timers,s=i?i.length:0;for(n.finish=!0,St.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),St.each(["toggle","show","hide"],function(t,e){var n=St.fn[e];St.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(Z(e,!0),t,i,o)}}),St.each({slideDown:Z("show"),slideUp:Z("hide"),slideToggle:Z("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){St.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),St.timers=[],St.fx.tick=function(){var t,e=0,n=St.timers;for(_e=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||St.fx.stop(),_e=void 0},St.fx.timer=function(t){St.timers.push(t),St.fx.start()},St.fx.interval=13,St.fx.start=function(){xe||(xe=!0,G())},St.fx.stop=function(){xe=null},St.fx.speeds={slow:600,fast:200,_default:400},St.fn.delay=function(t,e){return t=St.fx?St.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var o=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(o)}})},function(){var t=ct.createElement("input"),e=ct.createElement("select"),n=e.appendChild(ct.createElement("option"));t.type="checkbox",_t.checkOn=""!==t.value,_t.optSelected=n.selected,t=ct.createElement("input"),t.value="t",t.type="radio",_t.radioValue="t"===t.value}();var Se,Me=St.expr.attrHandle;St.fn.extend({attr:function(t,e){return Ft(this,St.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){St.removeAttr(this,t)})}}),St.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?St.prop(t,e,n):(1===r&&St.isXMLDoc(t)||(o=St.attrHooks[e.toLowerCase()]||(St.expr.match.bool.test(e)?Se:void 0)),void 0!==n?null===n?void St.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:(i=St.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!_t.radioValue&&"radio"===e&&u(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(Ht);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),Se={set:function(t,e,n){return!1===e?St.removeAttr(t,n):t.setAttribute(n,n),n}},St.each(St.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Me[e]||St.find.attr;Me[e]=function(t,e,i){var o,r,s=e.toLowerCase();return i||(r=Me[s],Me[s]=o,o=null!=n(t,e,i)?s:null,Me[s]=r),o}});var Ce=/^(?:input|select|textarea|button)$/i,Te=/^(?:a|area)$/i;St.fn.extend({prop:function(t,e){return Ft(this,St.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[St.propFix[t]||t]})}}),St.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&St.isXMLDoc(t)||(e=St.propFix[e]||e,o=St.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=St.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_t.optSelected||(St.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),St.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){St.propFix[this.toLowerCase()]=this}),St.fn.extend({addClass:function(t){var e,n,i,o,r,s,a,l=0;if(xt(t))return this.each(function(e){St(this).addClass(t.call(this,e,et(this)))});if(e=nt(t),e.length)for(;n=this[l++];)if(o=et(n),i=1===n.nodeType&&" "+tt(o)+" "){for(s=0;r=e[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=tt(i),o!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,o,r,s,a,l=0;if(xt(t))return this.each(function(e){St(this).removeClass(t.call(this,e,et(this)))});if(!arguments.length)return this.attr("class","");if(e=nt(t),e.length)for(;n=this[l++];)if(o=et(n),i=1===n.nodeType&&" "+tt(o)+" "){for(s=0;r=e[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a=tt(i),o!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):xt(t)?this.each(function(n){St(this).toggleClass(t.call(this,n,et(this),e),e)}):this.each(function(){var e,o,r,s;if(i)for(o=0,r=St(this),s=nt(t);e=s[o++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||(e=et(this),e&&Bt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Bt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+tt(et(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ee=/\r/g;St.fn.extend({val:function(t){var e,n,i,o=this[0];{if(arguments.length)return i=xt(t),this.each(function(n){var o;1===this.nodeType&&(o=i?t.call(this,n,St(this).val()):t,null==o?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=St.map(o,function(t){return null==t?"":t+""})),(e=St.valHooks[this.type]||St.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))});if(o)return(e=St.valHooks[o.type]||St.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(Ee,""):null==n?"":n)}}}),St.extend({valHooks:{option:{get:function(t){var e=St.find.attr(t,"value");return null!=e?e:tt(St.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(n=o[i],(n.selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!u(n.parentNode,"optgroup"))){if(e=St(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,o=t.options,r=St.makeArray(e),s=o.length;s--;)i=o[s],(i.selected=St.inArray(St.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),St.each(["radio","checkbox"],function(){St.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=St.inArray(St(t).val(),e)>-1}},_t.checkOn||(St.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),_t.focusin="onfocusin"in n;var Pe=/^(?:focusinfocus|focusoutblur)$/,Oe=function(t){t.stopPropagation()};St.extend(St.event,{trigger:function(t,e,i,o){var r,s,a,l,u,c,d,h,f=[i||ct],p=yt.call(t,"type")?t.type:t,m=yt.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=i=i||ct,3!==i.nodeType&&8!==i.nodeType&&!Pe.test(p+St.event.triggered)&&(p.indexOf(".")>-1&&(m=p.split("."),p=m.shift(),m.sort()),u=p.indexOf(":")<0&&"on"+p,t=t[St.expando]?t:new St.Event(p,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:St.makeArray(e,[t]),d=St.event.special[p]||{},o||!d.trigger||!1!==d.trigger.apply(i,e))){if(!o&&!d.noBubble&&!Dt(i)){for(l=d.delegateType||p,Pe.test(l+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(i.ownerDocument||ct)&&f.push(a.defaultView||a.parentWindow||n)}for(r=0;(s=f[r++])&&!t.isPropagationStopped();)h=s,t.type=r>1?l:d.bindType||p,c=(Bt.get(s,"events")||{})[t.type]&&Bt.get(s,"handle"),c&&c.apply(s,e),(c=u&&s[u])&&c.apply&&Wt(s)&&(t.result=c.apply(s,e),!1===t.result&&t.preventDefault());return t.type=p,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!Wt(i)||u&&xt(i[p])&&!Dt(i)&&(a=i[u],a&&(i[u]=null),St.event.triggered=p,t.isPropagationStopped()&&h.addEventListener(p,Oe),i[p](),t.isPropagationStopped()&&h.removeEventListener(p,Oe),St.event.triggered=void 0,a&&(i[u]=a)),t.result}},simulate:function(t,e,n){var i=St.extend(new St.Event,n,{type:t,isSimulated:!0});St.event.trigger(i,null,e)}}),St.fn.extend({trigger:function(t,e){return this.each(function(){St.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return St.event.trigger(t,e,n,!0)}}),_t.focusin||St.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){St.event.simulate(e,t.target,St.event.fix(t))};St.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=Bt.access(i,e);o||i.addEventListener(t,n,!0),Bt.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=Bt.access(i,e)-1;o?Bt.access(i,e,o):(i.removeEventListener(t,n,!0),Bt.remove(i,e))}}});var Ie=n.location,Le=Date.now(),Re=/\?/;St.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||St.error("Invalid XML: "+t),e};var Ye=/\[\]$/,He=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Ne=/^(?:input|select|textarea|keygen)/i;St.param=function(t,e){var n,i=[],o=function(t,e){var n=xt(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!St.isPlainObject(t))St.each(t,function(){o(this.name,this.value)});else for(n in t)it(n,t[n],e,o);return i.join("&")},St.fn.extend({serialize:function(){return St.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=St.prop(this,"elements");return t?St.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!St(this).is(":disabled")&&Ne.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!Kt.test(t))}).map(function(t,e){var n=St(this).val();return null==n?null:Array.isArray(n)?St.map(n,function(t){return{name:e.name,value:t.replace(He,"\r\n")}}):{name:e.name,value:n.replace(He,"\r\n")}}).get()}});var Fe=/%20/g,je=/#.*$/,ze=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ve=/^(?:GET|HEAD)$/,Ue=/^\/\//,$e={},Ge={},qe="*/".concat("*"),Ze=ct.createElement("a");Ze.href=Ie.href,St.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie.href,type:"GET",isLocal:Be.test(Ie.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":St.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?st(st(t,St.ajaxSettings),e):st(St.ajaxSettings,t)},ajaxPrefilter:ot($e),ajaxTransport:ot(Ge),ajax:function(t,e){function i(t,e,i,a){var u,h,f,w,_,x=e;c||(c=!0,l&&n.clearTimeout(l),o=void 0,s=a||"",D.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(w=at(p,D,i)),w=lt(p,w,D,u),u?(p.ifModified&&(_=D.getResponseHeader("Last-Modified"),_&&(St.lastModified[r]=_),(_=D.getResponseHeader("etag"))&&(St.etag[r]=_)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=w.state,h=w.data,f=w.error,u=!f)):(f=x,!t&&x||(x="error",t<0&&(t=0))),D.status=t,D.statusText=(e||x)+"",u?v.resolveWith(m,[h,x,D]):v.rejectWith(m,[D,x,f]),D.statusCode(b),b=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[D,p,u?h:f]),y.fireWith(m,[D,x]),d&&(g.trigger("ajaxComplete",[D,p]),--St.active||St.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var o,r,s,a,l,u,c,d,h,f,p=St.ajaxSetup({},e),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?St(m):St.event,v=St.Deferred(),y=St.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x="canceled",D={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=We.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)D.always(t[D.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return o&&o.abort(e),i(0,e),this}};if(v.promise(D),p.url=((t||p.url||Ie.href)+"").replace(Ue,Ie.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Ht)||[""],null==p.crossDomain){u=ct.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Ze.protocol+"//"+Ze.host!=u.protocol+"//"+u.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=St.param(p.data,p.traditional)),rt($e,p,e,D),c)return D;d=St.event&&p.global,d&&0==St.active++&&St.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ve.test(p.type),r=p.url.replace(je,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Fe,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Re.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(ze,"$1"),f=(Re.test(r)?"&":"?")+"_="+Le+++f),p.url=r+f),p.ifModified&&(St.lastModified[r]&&D.setRequestHeader("If-Modified-Since",St.lastModified[r]),St.etag[r]&&D.setRequestHeader("If-None-Match",St.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&D.setRequestHeader("Content-Type",p.contentType),D.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qe+"; q=0.01":""):p.accepts["*"]);for(h in p.headers)D.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(m,D,p)||c))return D.abort();if(x="abort",y.add(p.complete),D.done(p.success),D.fail(p.error),o=rt(Ge,p,e,D)){if(D.readyState=1,d&&g.trigger("ajaxSend",[D,p]),c)return D;p.async&&p.timeout>0&&(l=n.setTimeout(function(){D.abort("timeout")},p.timeout));try{c=!1,o.send(w,i)}catch(t){if(c)throw t;i(-1,t)}}else i(-1,"No Transport");return D},getJSON:function(t,e,n){return St.get(t,e,n,"json")},getScript:function(t,e){return St.get(t,void 0,e,"script")}}),St.each(["get","post"],function(t,e){St[e]=function(t,n,i,o){return xt(n)&&(o=o||i,i=n,n=void 0),St.ajax(St.extend({url:t,type:e,dataType:o,data:n,success:i},St.isPlainObject(t)&&t))}}),St._evalUrl=function(t){return St.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},St.fn.extend({wrapAll:function(t){var e;return this[0]&&(xt(t)&&(t=t.call(this[0])),e=St(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return xt(t)?this.each(function(e){St(this).wrapInner(t.call(this,e))}):this.each(function(){var e=St(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=xt(t);return this.each(function(n){St(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){St(this).replaceWith(this.childNodes)}),this}}),St.expr.pseudos.hidden=function(t){return!St.expr.pseudos.visible(t)},St.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},St.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Xe=St.ajaxSettings.xhr();_t.cors=!!Xe&&"withCredentials"in Xe,_t.ajax=Xe=!!Xe,St.ajaxTransport(function(t){var e,i;if(_t.cors||Xe&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(s in o)a.setRequestHeader(s,o[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&i()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),St.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),St.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return St.globalEval(t),t}}}),St.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),St.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,o){e=St("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),ct.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Qe=[],Ke=/(=)\?(?=&|$)|\?\?/;St.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qe.pop()||St.expando+"_"+Le++;return this[t]=!0,t}}),St.ajaxPrefilter("json jsonp",function(t,e,i){var o,r,s,a=!1!==t.jsonp&&(Ke.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=xt(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ke,"$1"+o):!1!==t.jsonp&&(t.url+=(Re.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||St.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=n[o],n[o]=function(){s=arguments},i.always(function(){void 0===r?St(n).removeProp(o):n[o]=r,t[o]&&(t.jsonpCallback=e.jsonpCallback,Qe.push(o)),s&&xt(r)&&r(s[0]),s=r=void 0}),"script"}),_t.createHTMLDocument=function(){var t=ct.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),St.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var i,o,r;return e||(_t.createHTMLDocument?(e=ct.implementation.createHTMLDocument(""),i=e.createElement("base"),i.href=ct.location.href,e.head.appendChild(i)):e=ct),o=Ot.exec(t),r=!n&&[],o?[e.createElement(o[1])]:(o=C([t],e,r),r&&r.length&&St(r).remove(),St.merge([],o.childNodes))},St.fn.load=function(t,e,n){var i,o,r,s=this,a=t.indexOf(" ");return a>-1&&(i=tt(t.slice(a)),t=t.slice(0,a)),xt(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&St.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?St("<div>").append(St.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},St.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){St.fn[e]=function(t){return this.on(e,t)}}),St.expr.pseudos.animated=function(t){return St.grep(St.timers,function(e){return t===e.elem}).length},St.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,u,c=St.css(t,"position"),d=St(t),h={};"static"===c&&(t.style.position="relative"),a=d.offset(),r=St.css(t,"top"),l=St.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1,u?(i=d.position(),s=i.top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),xt(e)&&(e=e.call(t,n,St.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+o),"using"in e?e.using.call(t,h):d.css(h)}},St.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){St.offset.setOffset(this,t,e)});var e,n,i=this[0];if(i)return i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===St.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===St.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&(o=St(t).offset(),o.top+=St.css(t,"borderTopWidth",!0),o.left+=St.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-St.css(i,"marginTop",!0),left:e.left-o.left-St.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===St.css(t,"position");)t=t.offsetParent;return t||oe})}}),St.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;St.fn[t]=function(i){return Ft(this,function(t,i,o){var r;if(Dt(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o},t,i,arguments.length)}}),St.each(["top","left"],function(t,e){St.cssHooks[e]=j(_t.pixelPosition,function(t,n){if(n)return n=F(t,e),he.test(n)?St(t).position()[e]+"px":n})}),St.each({Height:"height",Width:"width"},function(t,e){St.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){St.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return Ft(this,function(e,n,o){var r;return Dt(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?St.css(e,n,a):St.style(e,n,o,a)},e,s?o:void 0,s)}})}),St.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){St.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),St.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),St.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),St.proxy=function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),xt(t))return i=ht.call(arguments,2),o=function(){return t.apply(e||this,i.concat(ht.call(arguments)))},o.guid=t.guid=t.guid||St.guid++,o},St.holdReady=function(t){t?St.readyWait++:St.ready(!0)},St.isArray=Array.isArray,St.parseJSON=JSON.parse,St.nodeName=u,St.isFunction=xt,St.isWindow=Dt,St.camelCase=y,St.type=a,St.now=Date.now,St.isNumeric=function(t){var e=St.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},i=[],void 0!==(o=function(){return St}.apply(e,i))&&(t.exports=o);var tn=n.jQuery,en=n.$;return St.noConflict=function(t){return n.$===St&&(n.$=en),t&&n.jQuery===St&&(n.jQuery=tn),St},r||(n.jQuery=n.$=St),St})},"95j/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=n("7Rwe"),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/*!
|
||
* [KIMAI] Wrapper class for loading Kimai app in browser script scope
|
||
*/
|
||
!function(e,i){"function"==typeof define&&n("nErl")?define([],function(){return e.KimaiWebLoader=i()}):"object"===s(t)&&t.exports?t.exports=i():e.KimaiWebLoader=i()}("undefined"!=typeof self?self:this,function(){return function(t){function n(){return e(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return o(n,t),n}(r.a)})}.call(e,n("f1Eh")(t))},"9psQ":function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,t),u(e,[{key:"init",value:function(){var t=this.getContainer().getPlugin("datatable");a()("body").on("click","div.navigation ul.pagination li a",function(t){var e=a()(".toolbar form input[name='page']");if(0!==e.length){t.preventDefault(),t.stopPropagation();var n=a()(this).attr("href").split("/"),i=n[n.length-1];return e.val(i),e.trigger("change"),!1}}),a()(".toolbar form input").change(function(e){switch(e.target.id){case"page":break;default:a()(".toolbar form input#page").val(1)}t.reloadDatatable()}),a()(".toolbar form select").change(function(e){var n=!0;switch(e.target.id){case"customer":a()(".toolbar form select#project").length>0&&(n=!1);break;case"project":a()(".toolbar form select#activity").length>0&&(n=!1)}a()(".toolbar form input#page").val(1),n&&t.reloadDatatable()})}}]),e}(l.a);e.a=c},AixB:function(t,e){},AoDM:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";return t.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})})},DBzq:function(e,n,i){(function(e){/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
|
||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
||
*
|
||
* Version: 1.3.8
|
||
*
|
||
*/
|
||
!function(e){e.fn.extend({slimScroll:function(n){var i={width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},o=e.extend(i,n);return this.each(function(){function i(t){if(u){var t=t||window.event,n=0;t.wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3);var i=t.target||t.srcTarget||t.srcElement;e(i).closest("."+o.wrapperClass).is(w.parent())&&r(n,!0),t.preventDefault&&!b&&t.preventDefault(),b||(t.returnValue=!1)}}function r(t,e,n){b=!1;var i=t,r=w.outerHeight()-M.outerHeight();if(e&&(i=parseInt(M.css("top"))+t*parseInt(o.wheelStep)/100*M.outerHeight(),i=Math.min(Math.max(i,0),r),i=t>0?Math.ceil(i):Math.floor(i),M.css({top:i+"px"})),m=parseInt(M.css("top"))/(w.outerHeight()-M.outerHeight()),i=m*(w[0].scrollHeight-w.outerHeight()),n){i=t;var s=i/w[0].scrollHeight*w.outerHeight();s=Math.min(Math.max(s,0),r),M.css({top:s+"px"})}w.scrollTop(i),w.trigger("slimscrolling",~~i),a(),l()}function s(){p=Math.max(w.outerHeight()/w[0].scrollHeight*w.outerHeight(),y),M.css({height:p+"px"});var t=p==w.outerHeight()?"none":"block";M.css({display:t})}function a(){if(s(),clearTimeout(h),m==~~m){if(b=o.allowPageScroll,g!=m){var t=0==~~m?"top":"bottom";w.trigger("slimscroll",t)}}else b=!1;if(g=m,p>=w.outerHeight())return void(b=!0);M.stop(!0,!0).fadeIn("fast"),o.railVisible&&S.stop(!0,!0).fadeIn("fast")}function l(){o.alwaysVisible||(h=setTimeout(function(){o.disableFadeOut&&u||c||d||(M.fadeOut("slow"),S.fadeOut("slow"))},1e3))}var u,c,d,h,f,p,m,g,v="<div></div>",y=30,b=!1,w=e(this);if(w.parent().hasClass(o.wrapperClass)){var _=w.scrollTop();if(M=w.siblings("."+o.barClass),S=w.siblings("."+o.railClass),s(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){w.parent().css("height","auto"),w.css("height","auto");var x=w.parent().parent().height();w.parent().css("height",x),w.css("height",x)}else if("height"in n){var D=n.height;w.parent().css("height",D),w.css("height",D)}if("scrollTo"in n)_=parseInt(o.scrollTo);else if("scrollBy"in n)_+=parseInt(o.scrollBy);else if("destroy"in n)return M.remove(),S.remove(),void w.unwrap();r(_,!1,!0)}}else if(!(e.isPlainObject(n)&&"destroy"in n)){o.height="auto"==o.height?w.parent().height():o.height;var k=e(v).addClass(o.wrapperClass).css({position:"relative",overflow:"hidden",width:o.width,height:o.height});w.css({overflow:"hidden",width:o.width,height:o.height});var S=e(v).addClass(o.railClass).css({width:o.size,height:"100%",position:"absolute",top:0,display:o.alwaysVisible&&o.railVisible?"block":"none","border-radius":o.railBorderRadius,background:o.railColor,opacity:o.railOpacity,zIndex:90}),M=e(v).addClass(o.barClass).css({background:o.color,width:o.size,position:"absolute",top:0,opacity:o.opacity,display:o.alwaysVisible?"block":"none","border-radius":o.borderRadius,BorderRadius:o.borderRadius,MozBorderRadius:o.borderRadius,WebkitBorderRadius:o.borderRadius,zIndex:99}),C="right"==o.position?{right:o.distance}:{left:o.distance};S.css(C),M.css(C),w.wrap(k),w.parent().append(M),w.parent().append(S),o.railDraggable&&M.bind("mousedown",function(n){var i=e(document);return d=!0,t=parseFloat(M.css("top")),pageY=n.pageY,i.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,M.css("top",currTop),r(0,M.position().top,!1)}),i.bind("mouseup.slimscroll",function(t){d=!1,l(),i.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),S.hover(function(){a()},function(){l()}),M.hover(function(){c=!0},function(){c=!1}),w.hover(function(){u=!0,a(),l()},function(){u=!1,l()}),w.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(f=t.originalEvent.touches[0].pageY)}),w.bind("touchmove",function(t){if(b||t.originalEvent.preventDefault(),t.originalEvent.touches.length){r((f-t.originalEvent.touches[0].pageY)/o.touchScrollStep,!0),f=t.originalEvent.touches[0].pageY}}),s(),"bottom"===o.start?(M.css({top:w.outerHeight()-M.outerHeight()}),r(0,!0)):"top"!==o.start&&(r(e(o.start).position().top,null,!0),o.alwaysVisible||M.hide()),function(t){window.addEventListener?(t.addEventListener("DOMMouseScroll",i,!1),t.addEventListener("mousewheel",i,!1)):document.attachEvent("onmousewheel",i)}(this)}}),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(e)}).call(n,i("7t+N"))},DOkx:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";function e(t,e,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[n][0]:o[n][1]}return t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},DYUE:function(t,e,n){var i,o,r;/*!
|
||
* jQuery UI Unique ID 1.12.1
|
||
* http://jqueryui.com
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license.
|
||
* http://jquery.org/license
|
||
*/
|
||
!function(s){o=[n("7t+N"),n("UZ9c")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){return t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}})})},Dehm:function(t,e,n){(function(t){/*! AdminLTE app.js
|
||
* ================
|
||
* Main JS application file for AdminLTE v2. This file
|
||
* should be included in all pages. It controls some layout
|
||
* options and implements exclusive AdminLTE plugins.
|
||
*
|
||
* @Author Almsaeed Studio
|
||
* @Support <https://www.almsaeedstudio.com>
|
||
* @Email <abdullah@almsaeedstudio.com>
|
||
* @version 2.4.8
|
||
* @repository git://github.com/almasaeed2010/AdminLTE.git
|
||
* @license MIT <http://opensource.org/licenses/MIT>
|
||
*/
|
||
if(void 0===t)throw new Error("AdminLTE requires jQuery");+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data(n);if(!s){var a=t.extend({},i,o.data(),"object"==typeof e&&e);o.data(n,s=new r(o,a))}if("string"==typeof s){if(void 0===s[e])throw new Error("No method named "+e);s[e]()}})}var n="lte.boxrefresh",i={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>',onLoadStart:function(){},onLoadDone:function(t){return t}},o={data:'[data-widget="box-refresh"]'},r=function(e,n){if(this.element=e,this.options=n,this.$overlay=t(n.overlay),""===n.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()};r.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(t(this)),t.get(this.options.source,this.options.params,function(e){this.options.loadInContent&&t(this.options.content).html(e),this.options.onLoadDone.call(t(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},r.prototype._setUpListeners=function(){t(this.element).on("click",o.trigger,function(t){t&&t.preventDefault(),this.load()}.bind(this))},r.prototype._addOverlay=function(){t(this.element).append(this.$overlay)},r.prototype._removeOverlay=function(){t(this.element).remove(this.$overlay)};var s=t.fn.boxRefresh;t.fn.boxRefresh=e,t.fn.boxRefresh.Constructor=r,t.fn.boxRefresh.noConflict=function(){return t.fn.boxRefresh=s,this},t(window).on("load",function(){t(o.data).each(function(){e.call(t(this))})})}(t),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),r=o.data(n);if(!r){var s=t.extend({},i,o.data(),"object"==typeof e&&e);o.data(n,r=new a(o,s))}if("string"==typeof e){if(void 0===r[e])throw new Error("No method named "+e);r[e]()}})}var n="lte.boxwidget",i={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},o={data:".box",collapsed:".collapsed-box",header:".box-header",body:".box-body",footer:".box-footer",tools:".box-tools"},r={collapsed:"collapsed-box"},s={collapsed:"collapsed.boxwidget",expanded:"expanded.boxwidget",removed:"removed.boxwidget"},a=function(t,e){this.element=t,this.options=e,this._setUpListeners()};a.prototype.toggle=function(){t(this.element).is(o.collapsed)?this.expand():this.collapse()},a.prototype.expand=function(){var e=t.Event(s.expanded),n=this.options.collapseIcon,i=this.options.expandIcon;t(this.element).removeClass(r.collapsed),t(this.element).children(o.header+", "+o.body+", "+o.footer).children(o.tools).find("."+i).removeClass(i).addClass(n),t(this.element).children(o.body+", "+o.footer).slideDown(this.options.animationSpeed,function(){t(this.element).trigger(e)}.bind(this))},a.prototype.collapse=function(){var e=t.Event(s.collapsed),n=this.options.collapseIcon,i=this.options.expandIcon;t(this.element).children(o.header+", "+o.body+", "+o.footer).children(o.tools).find("."+n).removeClass(n).addClass(i),t(this.element).children(o.body+", "+o.footer).slideUp(this.options.animationSpeed,function(){t(this.element).addClass(r.collapsed),t(this.element).trigger(e)}.bind(this))},a.prototype.remove=function(){var e=t.Event(s.removed);t(this.element).slideUp(this.options.animationSpeed,function(){t(this.element).trigger(e),t(this.element).remove()}.bind(this))},a.prototype._setUpListeners=function(){var e=this;t(this.element).on("click",this.options.collapseTrigger,function(n){return n&&n.preventDefault(),e.toggle(t(this)),!1}),t(this.element).on("click",this.options.removeTrigger,function(n){return n&&n.preventDefault(),e.remove(t(this)),!1})};var l=t.fn.boxWidget;t.fn.boxWidget=e,t.fn.boxWidget.Constructor=a,t.fn.boxWidget.noConflict=function(){return t.fn.boxWidget=l,this},t(window).on("load",function(){t(o.data).each(function(){e.call(t(this))})})}(t),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),r=o.data(n);if(!r){var s=t.extend({},i,o.data(),"object"==typeof e&&e);o.data(n,r=new a(o,s))}"string"==typeof e&&r.toggle()})}var n="lte.controlsidebar",i={slide:!0},o={sidebar:".control-sidebar",data:'[data-toggle="control-sidebar"]',open:".control-sidebar-open",bg:".control-sidebar-bg",wrapper:".wrapper",content:".content-wrapper",boxed:".layout-boxed"},r={open:"control-sidebar-open",fixed:"fixed"},s={collapsed:"collapsed.controlsidebar",expanded:"expanded.controlsidebar"},a=function(t,e){this.element=t,this.options=e,this.hasBindedResize=!1,this.init()};a.prototype.init=function(){t(this.element).is(o.data)||t(this).on("click",this.toggle),this.fix(),t(window).resize(function(){this.fix()}.bind(this))},a.prototype.toggle=function(e){e&&e.preventDefault(),this.fix(),t(o.sidebar).is(o.open)||t("body").is(o.open)?this.collapse():this.expand()},a.prototype.expand=function(){this.options.slide?t(o.sidebar).addClass(r.open):t("body").addClass(r.open),t(this.element).trigger(t.Event(s.expanded))},a.prototype.collapse=function(){t("body, "+o.sidebar).removeClass(r.open),t(this.element).trigger(t.Event(s.collapsed))},a.prototype.fix=function(){t("body").is(o.boxed)&&this._fixForBoxed(t(o.bg))},a.prototype._fixForBoxed=function(e){e.css({position:"absolute",height:t(o.wrapper).height()})};var l=t.fn.controlSidebar;t.fn.controlSidebar=e,t.fn.controlSidebar.Constructor=a,t.fn.controlSidebar.noConflict=function(){return t.fn.controlSidebar=l,this},t(document).on("click",o.data,function(n){n&&n.preventDefault(),e.call(t(this),"toggle")})}(t),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data(n);o||i.data(n,o=new r(i)),"string"==typeof e&&o.toggle(i)})}var n="lte.directchat",i={data:'[data-widget="chat-pane-toggle"]',box:".direct-chat"},o={open:"direct-chat-contacts-open"},r=function(t){this.element=t};r.prototype.toggle=function(t){t.parents(i.box).first().toggleClass(o.open)};var s=t.fn.directChat;t.fn.directChat=e,t.fn.directChat.Constructor=r,t.fn.directChat.noConflict=function(){return t.fn.directChat=s,this},t(document).on("click",i.data,function(n){n&&n.preventDefault(),e.call(t(this),"toggle")})}(t),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),r=o.data(n);if(!r){var a=t.extend({},i,o.data(),"object"==typeof e&&e);o.data(n,r=new s(a))}if("string"==typeof e){if(void 0===r[e])throw new Error("No method named "+e);r[e]()}})}var n="lte.layout",i={slimscroll:!0,resetHeight:!0},o={wrapper:".wrapper",contentWrapper:".content-wrapper",layoutBoxed:".layout-boxed",mainFooter:".main-footer",mainHeader:".main-header",sidebar:".sidebar",controlSidebar:".control-sidebar",fixed:".fixed",sidebarMenu:".sidebar-menu",logo:".main-header .logo"},r={fixed:"fixed",holdTransition:"hold-transition"},s=function(t){this.options=t,this.bindedResize=!1,this.activate()};s.prototype.activate=function(){this.fix(),this.fixSidebar(),t("body").removeClass(r.holdTransition),this.options.resetHeight&&t("body, html, "+o.wrapper).css({height:"auto","min-height":"100%"}),this.bindedResize||(t(window).resize(function(){this.fix(),this.fixSidebar(),t(o.logo+", "+o.sidebar).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),t(o.sidebarMenu).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),t(o.sidebarMenu).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},s.prototype.fix=function(){t(o.layoutBoxed+" > "+o.wrapper).css("overflow","hidden");var e=t(o.mainFooter).outerHeight()||0,n=t(o.mainHeader).outerHeight()||0,i=n+e,s=t(window).height(),a=t(o.sidebar).height()||0;if(t("body").hasClass(r.fixed))t(o.contentWrapper).css("min-height",s-e);else{var l;s>=a?(t(o.contentWrapper).css("min-height",s-i),l=s-i):(t(o.contentWrapper).css("min-height",a),l=a);var u=t(o.controlSidebar);void 0!==u&&u.height()>l&&t(o.contentWrapper).css("min-height",u.height())}},s.prototype.fixSidebar=function(){if(!t("body").hasClass(r.fixed))return void(void 0!==t.fn.slimScroll&&t(o.sidebar).slimScroll({destroy:!0}).height("auto"));this.options.slimscroll&&void 0!==t.fn.slimScroll&&t(o.sidebar).slimScroll({height:t(window).height()-t(o.mainHeader).height()+"px"})};var a=t.fn.layout;t.fn.layout=e,t.fn.layout.Constuctor=s,t.fn.layout.noConflict=function(){return t.fn.layout=a,this},t(window).on("load",function(){e.call(t("body"))})}(t),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),r=o.data(n);if(!r){var s=t.extend({},i,o.data(),"object"==typeof e&&e);o.data(n,r=new a(s))}"toggle"===e&&r.toggle()})}var n="lte.pushmenu",i={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},o={collapsed:".sidebar-collapse",open:".sidebar-open",mainSidebar:".main-sidebar",contentWrapper:".content-wrapper",searchInput:".sidebar-form .form-control",button:'[data-toggle="push-menu"]',mini:".sidebar-mini",expanded:".sidebar-expanded-on-hover",layoutFixed:".fixed"},r={collapsed:"sidebar-collapse",open:"sidebar-open",mini:"sidebar-mini",expanded:"sidebar-expanded-on-hover",expandFeature:"sidebar-mini-expand-feature",layoutFixed:"fixed"},s={expanded:"expanded.pushMenu",collapsed:"collapsed.pushMenu"},a=function(t){this.options=t,this.init()};a.prototype.init=function(){(this.options.expandOnHover||t("body").is(o.mini+o.layoutFixed))&&(this.expandOnHover(),t("body").addClass(r.expandFeature)),t(o.contentWrapper).click(function(){t(window).width()<=this.options.collapseScreenSize&&t("body").hasClass(r.open)&&this.close()}.bind(this)),t(o.searchInput).click(function(t){t.stopPropagation()})},a.prototype.toggle=function(){var e=t(window).width(),n=!t("body").hasClass(r.collapsed);e<=this.options.collapseScreenSize&&(n=t("body").hasClass(r.open)),n?this.close():this.open()},a.prototype.open=function(){t(window).width()>this.options.collapseScreenSize?t("body").removeClass(r.collapsed).trigger(t.Event(s.expanded)):t("body").addClass(r.open).trigger(t.Event(s.expanded))},a.prototype.close=function(){t(window).width()>this.options.collapseScreenSize?t("body").addClass(r.collapsed).trigger(t.Event(s.collapsed)):t("body").removeClass(r.open+" "+r.collapsed).trigger(t.Event(s.collapsed))},a.prototype.expandOnHover=function(){t(o.mainSidebar).hover(function(){t("body").is(o.mini+o.collapsed)&&t(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){t("body").is(o.expanded)&&this.collapse()}.bind(this))},a.prototype.expand=function(){setTimeout(function(){t("body").removeClass(r.collapsed).addClass(r.expanded)},this.options.expandTransitionDelay)},a.prototype.collapse=function(){setTimeout(function(){t("body").removeClass(r.expanded).addClass(r.collapsed)},this.options.expandTransitionDelay)};var l=t.fn.pushMenu;t.fn.pushMenu=e,t.fn.pushMenu.Constructor=a,t.fn.pushMenu.noConflict=function(){return t.fn.pushMenu=l,this},t(document).on("click",o.button,function(n){n.preventDefault(),e.call(t(this),"toggle")}),t(window).on("load",function(){e.call(t(o.button))})}(t),function(t){"use strict";function e(e){return this.each(function(){var o=t(this),r=o.data(n);if(!r){var a=t.extend({},i,o.data(),"object"==typeof e&&e);o.data(n,r=new s(o,a))}if("string"==typeof r){if(void 0===r[e])throw new Error("No method named "+e);r[e]()}})}var n="lte.todolist",i={onCheck:function(t){return t},onUnCheck:function(t){return t}},o={data:'[data-widget="todo-list"]'},r={done:"done"},s=function(t,e){this.element=t,this.options=e,this._setUpListeners()};s.prototype.toggle=function(t){if(t.parents(o.li).first().toggleClass(r.done),!t.prop("checked"))return void this.unCheck(t);this.check(t)},s.prototype.check=function(t){this.options.onCheck.call(t)},s.prototype.unCheck=function(t){this.options.onUnCheck.call(t)},s.prototype._setUpListeners=function(){var e=this;t(this.element).on("change ifChanged","input:checkbox",function(){e.toggle(t(this))})};var a=t.fn.todoList;t.fn.todoList=e,t.fn.todoList.Constructor=s,t.fn.todoList.noConflict=function(){return t.fn.todoList=a,this},t(window).on("load",function(){t(o.data).each(function(){e.call(t(this))})})}(t),function(t){"use strict";function e(e){return this.each(function(){var o=t(this);if(!o.data(n)){var r=t.extend({},i,o.data(),"object"==typeof e&&e);o.data(n,new a(o,r))}})}var n="lte.tree",i={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},o={tree:".tree",treeview:".treeview",treeviewMenu:".treeview-menu",open:".menu-open, .active",li:"li",data:'[data-widget="tree"]',active:".active"},r={open:"menu-open",tree:"tree"},s={collapsed:"collapsed.tree",expanded:"expanded.tree"},a=function(e,n){this.element=e,this.options=n,t(this.element).addClass(r.tree),t(o.treeview+o.active,this.element).addClass(r.open),this._setUpListeners()};a.prototype.toggle=function(t,e){var n=t.next(o.treeviewMenu),i=t.parent(),s=i.hasClass(r.open);i.is(o.treeview)&&(this.options.followLink&&"#"!==t.attr("href")||e.preventDefault(),s?this.collapse(n,i):this.expand(n,i))},a.prototype.expand=function(e,n){var i=t.Event(s.expanded);if(this.options.accordion){var a=n.siblings(o.open),l=a.children(o.treeviewMenu);this.collapse(l,a)}n.addClass(r.open),e.slideDown(this.options.animationSpeed,function(){t(this.element).trigger(i)}.bind(this))},a.prototype.collapse=function(e,n){var i=t.Event(s.collapsed);n.removeClass(r.open),e.slideUp(this.options.animationSpeed,function(){t(this.element).trigger(i)}.bind(this))},a.prototype._setUpListeners=function(){var e=this;t(this.element).on("click",this.options.trigger,function(n){e.toggle(t(this),n)})};var l=t.fn.tree;t.fn.tree=e,t.fn.tree.Constructor=a,t.fn.tree.noConflict=function(){return t.fn.tree=l,this},t(window).on("load",function(){t(o.data).each(function(){e.call(t(this))})})}(t)}).call(e,n("7t+N"))},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},EerN:function(t,e,n){var i,o,r;/*!
|
||
* jQuery UI Menu 1.12.1
|
||
* http://jqueryui.com
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license.
|
||
* http://jquery.org/license
|
||
*/
|
||
!function(s){o=[n("7t+N"),n("WLoA"),n("Up1f"),n("Nnp9"),n("DYUE"),n("UZ9c"),n("z1kw")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){return t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target),i=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var n=t(e.target).closest(".ui-menu-item"),i=t(e.currentTarget);n[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),n=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),n.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var n,i,o,r,s=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:s=!1,i=this.previousFilter||"",r=!1,o=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),o===i?r=!0:o=i+o,n=this._filterMenuItems(o),n=r&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(o=String.fromCharCode(e.keyCode),n=this._filterMenuItems(o)),n.length?(this.focus(e,n),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n,i,o,r,s=this,a=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev(),i=t("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+a),n.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",n.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),n=e.find(this.options.items),n.not(".ui-menu-item").each(function(){var e=t(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),o=n.not(".ui-menu-item, .ui-menu-divider"),r=o.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(o,"ui-menu-item")._addClass(r,"ui-menu-item-wrapper"),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n,i,o;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=e.children(".ui-menu"),n.length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,i,o,r,s,a;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-n-i,r=this.activeMenu.scrollTop(),s=this.activeMenu.height(),a=e.outerHeight(),o<0?this.activeMenu.scrollTop(r+o):o+a>s&&this.activeMenu.scrollTop(r+o-s+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[e]()),this.focus(n,i)},nextPage:function(e){var n,i,o;if(!this.active)return void this.next(e);this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i-o<0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))},previousPage:function(e){var n,i,o;if(!this.active)return void this.next(e);this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i+o>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)},_filterMenuItems:function(e){var n=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}})})},Eg81:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,t),u(e,[{key:"init",value:function(){this.registerAutomaticAlertRemove("div.alert-success",5e3)}},{key:"registerAutomaticAlertRemove",value:function(t,e){var n=this;this._alertRemoveHandler=setInterval(function(){n.hideAlert(t)},e)}},{key:"unregisterAutomaticAlertRemove",value:function(){clearInterval(this._alertRemoveHandler)}},{key:"hideAlert",value:function(t){a()(t).alert("close")}}]),e}(l.a);e.a=c},EmE7:function(t,e){t.exports="./images/default_avatar.png?fc197350"},Eq4i:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("e7x4"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,t),u(e,[{key:"getId",value:function(){return"alert"}},{key:"error",value:function(t,e){var n=this.getContainer().getTranslation();n.has(t)&&(t=n.get(t)),n.has(e)&&(e=n.get(e)),a.a.fire({type:"error",title:t.replace("%reason%",""),text:e})}},{key:"success",value:function(t){var e=this.getContainer().getTranslation();e.has(t)&&(t=e.get(t)),a.a.fire({timer:1500,position:"top-end",showConfirmButton:!1,type:"success",title:t})}},{key:"question",value:function(t,e){var n=this.getContainer().getTranslation();n.has(t)&&(t=n.get(t)),a.a.fire({title:t,type:"question",showCancelButton:!0,confirmButtonText:n.get("confirm"),cancelButtonText:n.get("cancel")}).then(function(t){t.value&&e(t.value)})}}]),e}(l.a);e.a=c},FDd9:function(t,e){},FKXc:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";return t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},Fpqq:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";return t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e?"a":2===e?"a":"e")},week:{dow:1,doy:4}})})},GOEF:function(t,e,n){/*!
|
||
* FullCalendar v3.9.0
|
||
* Docs & License: https://fullcalendar.io/
|
||
* (c) 2018 Adam Shaw
|
||
*/
|
||
!function(e,i){t.exports=i(n("olwm"),n("7t+N"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=266)}({1:function(e,n){e.exports=t},2:function(t,e){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};e.__extends=function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}},266:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(267);i.EventSourceParser.registerClass(o.default),i.GcalEventSource=o.default},267:function(t,e,n){function i(t){var e;return/^[^\/]+@([^\/\.]+\.)*(google|googlemail|gmail)\.com$/.test(t)?t:(e=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^\/]*)/.exec(t))||(e=/^https?:\/\/www.google.com\/calendar\/feeds\/([^\/]*)/.exec(t))?decodeURIComponent(e[1]):void 0}function o(t,e){return t.replace(/(\?.*?)?(#|$)/,function(t,n,i){return(n?n+"&":"?")+e+i})}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),s=n(3),a=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.parse=function(t,e){var n;return"object"==typeof t?n=t:"string"==typeof t&&(n={url:t}),!!n&&a.EventSource.parse.call(this,n,e)},e.prototype.fetch=function(t,e,n){var i=this,o=this.buildUrl(),r=this.buildRequestParams(t,e,n),l=this.ajaxSettings||{},u=l.success;return r?(this.calendar.pushLoading(),a.Promise.construct(function(t,e){s.ajax(s.extend({},a.JsonFeedEventSource.AJAX_DEFAULTS,l,{url:o,data:r,success:function(n,o,l){var c,d;i.calendar.popLoading(),n.error?(i.reportError("Google Calendar API: "+n.error.message,n.error.errors),e()):n.items&&(c=i.gcalItemsToRawEventDefs(n.items,r.timeZone),d=a.applyAll(u,i,[n,o,l]),s.isArray(d)&&(c=d),t(i.parseEventDefs(c)))},error:function(t,n,o){i.reportError("Google Calendar network failure: "+n,[t,o]),i.calendar.popLoading(),e()}}))})):a.Promise.reject()},e.prototype.gcalItemsToRawEventDefs=function(t,e){var n=this;return t.map(function(t){return n.gcalItemToRawEventDef(t,e)})},e.prototype.gcalItemToRawEventDef=function(t,e){var n=t.htmlLink||null;return n&&e&&(n=o(n,"ctz="+e)),{id:t.id,title:t.summary,start:t.start.dateTime||t.start.date,end:t.end.dateTime||t.end.date,url:n,location:t.location,description:t.description}},e.prototype.buildUrl=function(){return e.API_BASE+"/"+encodeURIComponent(this.googleCalendarId)+"/events?callback=?"},e.prototype.buildRequestParams=function(t,e,n){var i,o=this.googleCalendarApiKey||this.calendar.opt("googleCalendarApiKey");return o?(t.hasZone()||(t=t.clone().utc().add(-1,"day")),e.hasZone()||(e=e.clone().utc().add(1,"day")),i=s.extend(this.ajaxSettings.data||{},{key:o,timeMin:t.format(),timeMax:e.format(),singleEvents:!0,maxResults:9999}),n&&"local"!==n&&(i.timeZone=n.replace(" ","_")),i):(this.reportError("Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"),null)},e.prototype.reportError=function(t,e){var n=this.calendar,i=n.opt("googleCalendarError"),o=e||[{message:t}];this.googleCalendarError&&this.googleCalendarError.apply(n,o),i&&i.apply(n,o),a.warn.apply(null,[t].concat(e||[]))},e.prototype.getPrimitive=function(){return this.googleCalendarId},e.prototype.applyManualStandardProps=function(t){var e=a.EventSource.prototype.applyManualStandardProps.apply(this,arguments),n=t.googleCalendarId;return null==n&&t.url&&(n=i(t.url)),null!=n&&(this.googleCalendarId=n,e)},e.prototype.applyMiscProps=function(t){this.ajaxSettings||(this.ajaxSettings={}),s.extend(this.ajaxSettings,t)},e.API_BASE="https://www.googleapis.com/calendar/v3/calendars",e}(a.EventSource);e.default=l,l.defineStandardProps({url:!1,googleCalendarId:!1,googleCalendarApiKey:!0,googleCalendarError:!0})},3:function(t,n){t.exports=e}})})},IArr:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=(n.n(s),n("ITav")),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),u=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),l(e,[{key:"init",value:function(){this._addClickHandlerReducedInTableRow(this.selector,function(t){window.location=t})}}]),e}(a.a);e.a=u},ITav:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,t),u(e,[{key:"_addClickHandlerReducedInTableRow",value:function(t,e){a()("body").on("click",t,function(t){if(!t.target.parentNode.isContentEditable&&!t.target.isContentEditable){var n=t.target;if(t.currentTarget.matches("tr"))for(;!n.matches("body");){if(n.matches("a")||n.matches("button"))return;n=n.parentNode}t.preventDefault(),t.stopPropagation();var i=a()(this).attr("data-href");i||(i=a()(this).attr("href")),e(i)}})}}]),e}(l.a);e.a=c},LT9G:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},Nnp9:function(t,e,n){var i,o,r;!function(s){o=[n("7t+N"),n("UZ9c")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(n){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})},O5V4:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("4klR"),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),a(e,[{key:"getId",value:function(){return"recent-activities"}},{key:"init",value:function(){var t=document.querySelector(this.selector);if(null!==t){var e=t.querySelector("ul.dropdown-menu");this.attributes=e.dataset,this.itemList=e.querySelector("li > ul.menu");var n=this,i=function(){n.reloadRecentActivities()};setTimeout(i,500),document.addEventListener("kimai.timesheetStop",i),document.addEventListener("kimai.activityUpdate",i),document.addEventListener("kimai.projectUpdate",i),document.addEventListener("kimai.customerUpdate",i)}}},{key:"emptyList",value:function(){this.itemList.innerHTML=""}},{key:"setEntries",value:function(t){if(0===t.length)return void this.emptyList();var e="",n=!0,i=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done);n=!0){var a=r.value,l=this.attributes.template.replace("%customer%",a.project.customer.name).replace("%project%",a.project.name).replace("%activity%",a.activity.name);e+='<li><a href="'+this.attributes.href.replace("000",a.id)+'"><i class="'+this.attributes.icon+'"></i> '+l+"</a></li>"}}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}this.itemList.innerHTML=e}},{key:"reloadRecentActivities",value:function(){var t=this;this.getContainer().getPlugin("api").get(this.attributes.api,{},function(e){t.setEntries(e)})}}]),e}(s.a);e.a=l},ORgI:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";return t.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()<t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},Orr0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("ITav"),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),a(e,[{key:"init",value:function(){var t=this;document.addEventListener("click",function(e){for(var n=e.target;!n.matches("body");)n.classList.contains(t.selector)&&function(){var i=n.dataset,o=i.href;o||(o=n.getAttribute("href")),void 0!==i.question?t.getContainer().getPlugin("alert").question(i.question,function(){t._callApi(o,i)}):t._callApi(o,i),e.preventDefault(),e.stopPropagation()}(),n=n.parentNode})}},{key:"_callApi",value:function(t,e){var n=e.method,i=e.event,o=this.getContainer().getPlugin("api"),r=this.getContainer().getPlugin("event"),s=this.getContainer().getPlugin("alert"),a=function(t){r.trigger(i),e.msgSuccess&&s.success(e.msgSuccess)},l=function(t,n){var i="action.update.error";e.msgError&&(i=e.msgError),t.responseJSON&&t.responseJSON.message&&(n=t.responseJSON.message),s.error(i,n)};"PATCH"===n?o.patch(t,a,l):"DELETE"===n&&o.delete(t,a,l)}}]),e}(s.a);e.a=l},PJh5:function(t,e,n){(function(t){!function(e,n){t.exports=n()}(0,function(){"use strict";function e(){return Oi.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return Se(t,e,n,i,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return null==t._pf&&(t._pf=h()),t._pf}function p(t){if(null==t._isValid){var e=f(t),n=Ii.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=d(NaN);return null!=t?c(f(e),t):f(e).userInvalidated=!0,e}function g(t,e){var n,i,o;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),Li.length>0)for(n=0;n<Li.length;n++)i=Li[n],o=e[i],r(o)||(t[i]=o);return t}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ri&&(Ri=!0,e.updateOffset(this),Ri=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=b(e)),n}function _(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&w(t[i])!==w(e[i]))&&s++;return s+r}function x(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function D(t,n){var i=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){o+="\n["+s+"] ";for(var a in arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}x(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function k(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Yi[t]||(x(n),Yi[t]=!0)}function S(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){var e,n;for(n in t)e=t[n],S(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(t,e){var n,o=c({},t);for(n in e)u(e,n)&&(i(t[n])&&i(e[n])?(o[n]={},c(o[n],t[n]),c(o[n],e[n])):null!=e[n]?o[n]=e[n]:delete o[n]);for(n in t)u(t,n)&&!u(e,n)&&i(t[n])&&(o[n]=c({},o[n]));return o}function T(t){null!=t&&this.set(t)}function E(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return S(i)?i.call(e,n):i}function P(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function O(){return this._invalidDate}function I(t){return this._ordinal.replace("%d",t)}function L(t,e,n,i){var o=this._relativeTime[n];return S(o)?o(t,e,n,i):o.replace(/%d/i,t)}function R(t,e){var n=this._relativeTime[t>0?"future":"past"];return S(n)?n(e):n.replace(/%s/i,e)}function Y(t,e){var n=t.toLowerCase();zi[n]=zi[n+"s"]=zi[e]=t}function H(t){return"string"==typeof t?zi[t]||zi[t.toLowerCase()]:void 0}function A(t){var e,n,i={};for(n in t)u(t,n)&&(e=H(n))&&(i[e]=t[n]);return i}function N(t,e){Wi[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Wi[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function j(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function z(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&($i[t]=o),e&&($i[e[0]]=function(){return j(o.apply(this,arguments),e[1],e[2])}),n&&($i[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,i=t.match(Bi);for(e=0,n=i.length;e<n;e++)$i[i[e]]?i[e]=$i[i[e]]:i[e]=W(i[e]);return function(e){var o,r="";for(o=0;o<n;o++)r+=S(i[o])?i[o].call(e,t):i[o];return r}}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),Ui[e]=Ui[e]||B(e),Ui[e](t)):t.localeData().invalidDate()}function U(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(Vi.lastIndex=0;i>=0&&Vi.test(t);)t=t.replace(Vi,n),Vi.lastIndex=0,i-=1;return t}function $(t,e,n){co[t]=S(e)?e:function(t,i){return t&&n?n:e}}function G(t,e){return u(co,t)?co[t](e._strict,e._locale):new RegExp(q(t))}function q(t){return Z(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),s(e)&&(i=function(t,n){n[e]=w(t)}),n=0;n<t.length;n++)ho[t[n]]=i}function X(t,e){J(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Q(t,e,n){null!=e&&u(ho,t)&&ho[t](e,n._a,n,t)}function K(t){return tt(t)?366:365}function tt(t){return t%4==0&&t%100!=0||t%400==0}function et(){return tt(this.year())}function nt(t,n){return function(i){return null!=i?(ot(this,t,i),e.updateOffset(this,n),this):it(this,t)}}function it(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function ot(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function rt(t){return t=H(t),S(this[t])?this[t]():this}function st(t,e){if("object"==typeof t){t=A(t);for(var n=F(t),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit])}else if(t=H(t),S(this[t]))return this[t](e);return this}function at(t,e){return(t%e+e)%e}function lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=at(e,12);return t+=(e-n)/12,1===n?tt(t)?29:28:31-n%7%2}function ut(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ko).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone}function ct(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ko.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(t,e,n){var i,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?(o=xo.call(this._shortMonthsParse,s),-1!==o?o:null):(o=xo.call(this._longMonthsParse,s),-1!==o?o:null):"MMM"===e?-1!==(o=xo.call(this._shortMonthsParse,s))?o:(o=xo.call(this._longMonthsParse,s),-1!==o?o:null):-1!==(o=xo.call(this._longMonthsParse,s))?o:(o=xo.call(this._shortMonthsParse,s),-1!==o?o:null)}function ht(t,e,n){var i,o,r;if(this._monthsParseExact)return dt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function ft(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if(e=t.localeData().monthsParse(e),!s(e))return t;return n=Math.min(t.date(),lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function pt(t){return null!=t?(ft(this,t),e.updateOffset(this,!0),this):it(this,"Month")}function mt(){return lt(this.year(),this.month())}function gt(t){return this._monthsParseExact?(u(this,"_monthsRegex")||yt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Co),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(t){return this._monthsParseExact?(u(this,"_monthsRegex")||yt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=To),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function yt(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],r=[];for(e=0;e<12;e++)n=d([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)i[e]=Z(i[e]),o[e]=Z(o[e]);for(e=0;e<24;e++)r[e]=Z(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function bt(t,e,n,i,o,r,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,o,r,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,o,r,s),a}function wt(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function _t(t,e,n){var i=7+e-n;return-(7+wt(t,0,i).getUTCDay()-e)%7+i-1}function xt(t,e,n,i,o){var r,s,a=(7+n-i)%7,l=_t(t,i,o),u=1+7*(e-1)+a+l;return u<=0?(r=t-1,s=K(r)+u):u>K(t)?(r=t+1,s=u-K(t)):(r=t,s=u),{year:r,dayOfYear:s}}function Dt(t,e,n){var i,o,r=_t(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?(o=t.year()-1,i=s+kt(o,e,n)):s>kt(t.year(),e,n)?(i=s-kt(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function kt(t,e,n){var i=_t(t,e,n),o=_t(t+1,e,n);return(K(t)-i+o)/7}function St(t){return Dt(t,this._week.dow,this._week.doy).week}function Mt(){return this._week.dow}function Ct(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Et(t){var e=Dt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function It(t,e){return t.slice(e,7).concat(t.slice(0,e))}function Lt(t,e){var i=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?It(i,this._week.dow):t?i[t.day()]:i}function Rt(t){return!0===t?It(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Yt(t){return!0===t?It(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ht(t,e,n){var i,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?(o=xo.call(this._weekdaysParse,s),-1!==o?o:null):"ddd"===e?(o=xo.call(this._shortWeekdaysParse,s),-1!==o?o:null):(o=xo.call(this._minWeekdaysParse,s),-1!==o?o:null):"dddd"===e?-1!==(o=xo.call(this._weekdaysParse,s))?o:-1!==(o=xo.call(this._shortWeekdaysParse,s))?o:(o=xo.call(this._minWeekdaysParse,s),-1!==o?o:null):"ddd"===e?-1!==(o=xo.call(this._shortWeekdaysParse,s))?o:-1!==(o=xo.call(this._weekdaysParse,s))?o:(o=xo.call(this._minWeekdaysParse,s),-1!==o?o:null):-1!==(o=xo.call(this._minWeekdaysParse,s))?o:-1!==(o=xo.call(this._weekdaysParse,s))?o:(o=xo.call(this._shortWeekdaysParse,s),-1!==o?o:null)}function At(t,e,n){var i,o,r;if(this._weekdaysParseExact)return Ht.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,"d")):e}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function jt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function zt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Lo),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ro),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yo),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vt(){function t(t,e){return e.length-t.length}var e,n,i,o,r,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),a.push(o),l.push(r),u.push(i),u.push(o),u.push(r);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=Z(a[e]),l[e]=Z(l[e]),u[e]=Z(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ut(){return this.hours()%12||12}function $t(){return this.hours()||24}function Gt(t,e){z(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Zt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Jt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Xt(t){return t?t.toLowerCase().replace("_","-"):t}function Qt(t){for(var e,n,i,o,r=0;r<t.length;){for(o=Xt(t[r]).split("-"),e=o.length,n=Xt(t[r+1]),n=n?n.split("-"):null;e>0;){if(i=Kt(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&_(o,n,!0)>=e-1)break;e--}r++}return Ho}function Kt(e){var n=null;if(!jo[e]&&void 0!==t&&t&&t.exports)try{n=Ho._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),te(n)}catch(t){}return jo[e]}function te(t,e){var n;return t&&(n=r(e)?ie(t):ee(t,e),n?Ho=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ho._abbr}function ee(t,e){if(null!==e){var n,i=Fo;if(e.abbr=t,null!=jo[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=jo[t]._config;else if(null!=e.parentLocale)if(null!=jo[e.parentLocale])i=jo[e.parentLocale]._config;else{if(null==(n=Kt(e.parentLocale)))return zo[e.parentLocale]||(zo[e.parentLocale]=[]),zo[e.parentLocale].push({name:t,config:e}),null;i=n._config}return jo[t]=new T(C(i,e)),zo[t]&&zo[t].forEach(function(t){ee(t.name,t.config)}),te(t),jo[t]}return delete jo[t],null}function ne(t,e){if(null!=e){var n,i,o=Fo;i=Kt(t),null!=i&&(o=i._config),e=C(o,e),n=new T(e),n.parentLocale=jo[t],jo[t]=n,te(t)}else null!=jo[t]&&(null!=jo[t].parentLocale?jo[t]=jo[t].parentLocale:null!=jo[t]&&delete jo[t]);return jo[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ho;if(!n(t)){if(e=Kt(t))return e;t=[t]}return Qt(t)}function oe(){return Hi(jo)}function re(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[po]<0||n[po]>11?po:n[mo]<1||n[mo]>lt(n[fo],n[po])?mo:n[go]<0||n[go]>24||24===n[go]&&(0!==n[vo]||0!==n[yo]||0!==n[bo])?go:n[vo]<0||n[vo]>59?vo:n[yo]<0||n[yo]>59?yo:n[bo]<0||n[bo]>999?bo:-1,f(t)._overflowDayOfYear&&(e<fo||e>mo)&&(e=mo),f(t)._overflowWeeks&&-1===e&&(e=wo),f(t)._overflowWeekday&&-1===e&&(e=_o),f(t).overflow=e),t}function se(t,e,n){return null!=t?t:null!=e?e:n}function ae(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function le(t){var e,n,i,o,r,s=[];if(!t._d){for(i=ae(t),t._w&&null==t._a[mo]&&null==t._a[po]&&ue(t),null!=t._dayOfYear&&(r=se(t._a[fo],i[fo]),(t._dayOfYear>K(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=wt(r,0,t._dayOfYear),t._a[po]=n.getUTCMonth(),t._a[mo]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[go]&&0===t._a[vo]&&0===t._a[yo]&&0===t._a[bo]&&(t._nextDay=!0,t._a[go]=0),t._d=(t._useUTC?wt:bt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[go]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function ue(t){var e,n,i,o,r,s,a,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)r=1,s=4,n=se(e.GG,t._a[fo],Dt(Me(),1,4).year),i=se(e.W,1),((o=se(e.E,1))<1||o>7)&&(l=!0);else{r=t._locale._week.dow,s=t._locale._week.doy;var u=Dt(Me(),r,s);n=se(e.gg,t._a[fo],u.year),i=se(e.w,u.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r}i<1||i>kt(n,r,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=xt(n,i,o,r,s),t._a[fo]=a.year,t._dayOfYear=a.dayOfYear)}function ce(t){var e,n,i,o,r,s,a=t._i,l=Wo.exec(a)||Bo.exec(a);if(l){for(f(t).iso=!0,e=0,n=Uo.length;e<n;e++)if(Uo[e][1].exec(l[1])){o=Uo[e][0],i=!1!==Uo[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=$o.length;e<n;e++)if($o[e][1].exec(l[3])){r=(l[2]||" ")+$o[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!Vo.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=o+(r||"")+(s||""),ye(t)}else t._isValid=!1}function de(t,e,n,i,o,r){var s=[he(t),Mo.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function he(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function fe(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pe(t,e,n){if(t){if(Oo.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function me(t,e,n){if(t)return Zo[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function ge(t){var e=qo.exec(fe(t._i));if(e){var n=de(e[4],e[3],e[2],e[5],e[6],e[7]);if(!pe(e[1],n,t))return;t._a=n,t._tzm=me(e[8],e[9],e[10]),t._d=wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function ve(t){var n=Go.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));ce(t),!1===t._isValid&&(delete t._isValid,ge(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function ye(t){if(t._f===e.ISO_8601)return void ce(t);if(t._f===e.RFC_2822)return void ge(t);t._a=[],f(t).empty=!0;var n,i,o,r,s,a=""+t._i,l=a.length,u=0;for(o=U(t._f,t._locale).match(Bi)||[],n=0;n<o.length;n++)r=o[n],i=(a.match(G(r,t))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&f(t).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),$i[r]?(i?f(t).empty=!1:f(t).unusedTokens.push(r),Q(r,i,t)):t._strict&&!i&&f(t).unusedTokens.push(r);f(t).charsLeftOver=l-u,a.length>0&&f(t).unusedInput.push(a),t._a[go]<=12&&!0===f(t).bigHour&&t._a[go]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[go]=be(t._locale,t._a[go],t._meridiem),le(t),re(t)}function be(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function we(t){var e,n,i,o,r;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],ye(e),p(e)&&(r+=f(e).charsLeftOver,r+=10*f(e).unusedTokens.length,f(e).score=r,(null==i||r<i)&&(i=r,n=e));c(t,n||e)}function _e(t){if(!t._d){var e=A(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),le(t)}}function xe(t){var e=new v(re(De(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function De(t){var e=t._i,i=t._f;return t._locale=t._locale||ie(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(re(e)):(a(e)?t._d=e:n(i)?we(t):i?ye(t):ke(t),p(t)||(t._d=null),t))}function ke(t){var o=t._i;r(o)?t._d=new Date(e.now()):a(o)?t._d=new Date(o.valueOf()):"string"==typeof o?ve(t):n(o)?(t._a=l(o.slice(0),function(t){return parseInt(t,10)}),le(t)):i(o)?_e(t):s(o)?t._d=new Date(o):e.createFromInputFallback(t)}function Se(t,e,r,s,a){var l={};return!0!==r&&!1!==r||(s=r,r=void 0),(i(t)&&o(t)||n(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=r,l._i=t,l._f=e,l._strict=s,xe(l)}function Me(t,e,n,i){return Se(t,e,n,i,!1)}function Ce(t,e){var i,o;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Me();for(i=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](i)||(i=e[o]);return i}function Te(){return Ce("isBefore",[].slice.call(arguments,0))}function Ee(){return Ce("isAfter",[].slice.call(arguments,0))}function Pe(t){for(var e in t)if(-1===xo.call(Ko,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ko.length;++i)if(t[Ko[i]]){if(n)return!1;parseFloat(t[Ko[i]])!==w(t[Ko[i]])&&(n=!0)}return!0}function Oe(){return this._isValid}function Ie(){return Xe(NaN)}function Le(t){var e=A(t),n=e.year||0,i=e.quarter||0,o=e.month||0,r=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=Pe(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=ie(),this._bubble()}function Re(t){return t instanceof Le}function Ye(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function He(t,e){z(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+j(~~(t/60),2)+e+j(~~t%60,2)})}function Ae(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],o=(i+"").match(tr)||["-",0,0],r=60*o[1]+w(o[2]);return 0===r?0:"+"===o[0]?r:-r}function Ne(t,n){var i,o;return n._isUTC?(i=n.clone(),o=(y(t)||a(t)?t.valueOf():Me(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),e.updateOffset(i,!1),i):Me(t).local()}function Fe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function je(t,n,i){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ae(ao,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(o=Fe(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!n||this._changeInProgress?nn(this,Xe(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Fe(this)}function ze(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function We(t){return this.utcOffset(0,t)}function Be(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this}function Ve(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ae(so,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ue(t){return!!this.isValid()&&(t=t?Me(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function $e(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ge(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=De(t),t._a){var e=t._isUTC?d(t._a):Me(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function qe(){return!!this.isValid()&&!this._isUTC}function Ze(){return!!this.isValid()&&this._isUTC}function Je(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xe(t,e){var n,i,o,r=t,a=null;return Re(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(r={},e?r[e]=t:r.milliseconds=t):(a=er.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:w(a[mo])*n,h:w(a[go])*n,m:w(a[vo])*n,s:w(a[yo])*n,ms:w(Ye(1e3*a[bo]))*n}):(a=nr.exec(t))?(n="-"===a[1]?-1:1,r={y:Qe(a[2],n),M:Qe(a[3],n),w:Qe(a[4],n),d:Qe(a[5],n),h:Qe(a[6],n),m:Qe(a[7],n),s:Qe(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=tn(Me(r.from),Me(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new Le(r),Re(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ke(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function tn(t,e){var n;return t.isValid()&&e.isValid()?(e=Ne(e,t),t.isBefore(e)?n=Ke(t,e):(n=Ke(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function en(t,e){return function(n,i){var o,r;return null===i||isNaN(+i)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),n="string"==typeof n?+n:n,o=Xe(n,i),nn(this,o,t),this}}function nn(t,n,i,o){var r=n._milliseconds,s=Ye(n._days),a=Ye(n._months);t.isValid()&&(o=null==o||o,a&&ft(t,it(t,"Month")+a*i),s&&ot(t,"Date",it(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),o&&e.updateOffset(t,s||a))}function on(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function rn(t,n){var i=t||Me(),o=Ne(i,this).startOf("day"),r=e.calendarFormat(this,o)||"sameElse",s=n&&(S(n[r])?n[r].call(this,i):n[r]);return this.format(s||this.localeData().calendar(r,this,Me(i)))}function sn(){return new v(this)}function an(t,e){var n=y(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&(e=H(e)||"millisecond","millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function ln(t,e){var n=y(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&(e=H(e)||"millisecond","millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function un(t,e,n,i){var o=y(t)?t:Me(t),r=y(e)?e:Me(e);return!!(this.isValid()&&o.isValid()&&r.isValid())&&(i=i||"()",("("===i[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n)))}function cn(t,e){var n,i=y(t)?t:Me(t);return!(!this.isValid()||!i.isValid())&&(e=H(e)||"millisecond","millisecond"===e?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function dn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function hn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function fn(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(i=Ne(t,this),!i.isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=H(e)){case"year":r=pn(this,i)/12;break;case"month":r=pn(this,i);break;case"quarter":r=pn(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:b(r)}function pn(t,e){var n,i,o=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(o,"months");return e-r<0?(n=t.clone().add(o-1,"months"),i=(e-r)/(r-n)):(n=t.clone().add(o+1,"months"),i=(e-r)/(n-r)),-(o+i)||0}function mn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function gn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)}function yn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=V(this,t);return this.localeData().postformat(n)}function bn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Me(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function wn(t){return this.from(Me(),t)}function _n(t,e){return this.isValid()&&(y(t)&&t.isValid()||Me(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function xn(t){return this.to(Me(),t)}function Dn(t){var e;return void 0===t?this._locale._abbr:(e=ie(t),null!=e&&(this._locale=e),this)}function kn(){return this._locale}function Sn(t,e){return(t%e+e)%e}function Mn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-ur:new Date(t,e,n).valueOf()}function Cn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-ur:Date.UTC(t,e,n)}function Tn(t){var n;if(void 0===(t=H(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Cn:Mn;switch(t){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Sn(n+(this._isUTC?0:this.utcOffset()*ar),lr);break;case"minute":n=this._d.valueOf(),n-=Sn(n,ar);break;case"second":n=this._d.valueOf(),n-=Sn(n,sr)}return this._d.setTime(n),e.updateOffset(this,!0),this}function En(t){var n;if(void 0===(t=H(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Cn:Mn;switch(t){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=lr-Sn(n+(this._isUTC?0:this.utcOffset()*ar),lr)-1;break;case"minute":n=this._d.valueOf(),n+=ar-Sn(n,ar)-1;break;case"second":n=this._d.valueOf(),n+=sr-Sn(n,sr)-1}return this._d.setTime(n),e.updateOffset(this,!0),this}function Pn(){return this._d.valueOf()-6e4*(this._offset||0)}function On(){return Math.floor(this.valueOf()/1e3)}function In(){return new Date(this.valueOf())}function Ln(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Rn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Yn(){return this.isValid()?this.toISOString():null}function Hn(){return p(this)}function An(){return c({},f(this))}function Nn(){return f(this).overflow}function Fn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function jn(t,e){z(0,[t,t.length],0,e)}function zn(t){return Un.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wn(t){return Un.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Bn(){return kt(this.year(),1,4)}function Vn(){var t=this.localeData()._week;return kt(this.year(),t.dow,t.doy)}function Un(t,e,n,i,o){var r;return null==t?Dt(this,i,o).year:(r=kt(t,i,o),e>r&&(e=r),$n.call(this,t,e,n,i,o))}function $n(t,e,n,i,o){var r=xt(t,e,n,i,o),s=wt(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Gn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function qn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Zn(t,e){e[bo]=w(1e3*("0."+t))}function Jn(){return this._isUTC?"UTC":""}function Xn(){return this._isUTC?"Coordinated Universal Time":""}function Qn(t){return Me(1e3*t)}function Kn(){return Me.apply(null,arguments).parseZone()}function ti(t){return t}function ei(t,e,n,i){var o=ie(),r=d().set(i,e);return o[n](r,t)}function ni(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return ei(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=ei(t,i,n,"month");return o}function ii(t,e,n,i){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var o=ie(),r=t?o._week.dow:0;if(null!=n)return ei(e,(n+r)%7,i,"day");var a,l=[];for(a=0;a<7;a++)l[a]=ei(e,(a+r)%7,i,"day");return l}function oi(t,e){return ni(t,e,"months")}function ri(t,e){return ni(t,e,"monthsShort")}function si(t,e,n){return ii(t,e,n,"weekdays")}function ai(t,e,n){return ii(t,e,n,"weekdaysShort")}function li(t,e,n){return ii(t,e,n,"weekdaysMin")}function ui(){var t=this._data;return this._milliseconds=vr(this._milliseconds),this._days=vr(this._days),this._months=vr(this._months),t.milliseconds=vr(t.milliseconds),t.seconds=vr(t.seconds),t.minutes=vr(t.minutes),t.hours=vr(t.hours),t.months=vr(t.months),t.years=vr(t.years),this}function ci(t,e,n,i){var o=Xe(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function di(t,e){return ci(this,t,e,1)}function hi(t,e){return ci(this,t,e,-1)}function fi(t){return t<0?Math.floor(t):Math.ceil(t)}function pi(){var t,e,n,i,o,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*fi(gi(a)+s),s=0,a=0),l.milliseconds=r%1e3,t=b(r/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,s+=b(n/24),o=b(mi(s)),a+=o,s-=fi(gi(o)),i=b(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function mi(t){return 4800*t/146097}function gi(t){return 146097*t/4800}function vi(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=H(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+mi(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(gi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function yi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function bi(t){return function(){return this.as(t)}}function wi(){return Xe(this)}function _i(t){return t=H(t),this.isValid()?this[t+"s"]():NaN}function xi(t){return function(){return this.isValid()?this._data[t]:NaN}}function Di(){return b(this.days()/7)}function ki(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function Si(t,e,n){var i=Xe(t).abs(),o=Rr(i.as("s")),r=Rr(i.as("m")),s=Rr(i.as("h")),a=Rr(i.as("d")),l=Rr(i.as("M")),u=Rr(i.as("y")),c=o<=Yr.ss&&["s",o]||o<Yr.s&&["ss",o]||r<=1&&["m"]||r<Yr.m&&["mm",r]||s<=1&&["h"]||s<Yr.h&&["hh",s]||a<=1&&["d"]||a<Yr.d&&["dd",a]||l<=1&&["M"]||l<Yr.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,ki.apply(null,c)}function Mi(t){return void 0===t?Rr:"function"==typeof t&&(Rr=t,!0)}function Ci(t,e){return void 0!==Yr[t]&&(void 0===e?Yr[t]:(Yr[t]=e,"s"===t&&(Yr.ss=e-1),!0))}function Ti(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=Si(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Ei(t){return(t>0)-(t<0)||+t}function Pi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=Hr(this._milliseconds)/1e3,o=Hr(this._days),r=Hr(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60,n=b(r/12),r%=12;var s=n,a=r,l=o,u=e,c=t,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",p=Ei(this._months)!==Ei(h)?"-":"",m=Ei(this._days)!==Ei(h)?"-":"",g=Ei(this._milliseconds)!==Ei(h)?"-":"";return f+"P"+(s?p+s+"Y":"")+(a?p+a+"M":"")+(l?m+l+"D":"")+(u||c||d?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(d?g+d+"S":"")}var Oi,Ii;Ii=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var Li=e.momentProperties=[],Ri=!1,Yi={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Hi;Hi=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var Ai={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ni={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"},Fi=/\d{1,2}/,ji={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},zi={},Wi={},Bi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ui={},$i={},Gi=/\d/,qi=/\d\d/,Zi=/\d{3}/,Ji=/\d{4}/,Xi=/[+-]?\d{6}/,Qi=/\d\d?/,Ki=/\d\d\d\d?/,to=/\d\d\d\d\d\d?/,eo=/\d{1,3}/,no=/\d{1,4}/,io=/[+-]?\d{1,6}/,oo=/\d+/,ro=/[+-]?\d+/,so=/Z|[+-]\d\d:?\d\d/gi,ao=/Z|[+-]\d\d(?::?\d\d)?/gi,lo=/[+-]?\d+(\.\d{1,3})?/,uo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,co={},ho={},fo=0,po=1,mo=2,go=3,vo=4,yo=5,bo=6,wo=7,_o=8;z("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),N("year",1),$("Y",ro),$("YY",Qi,qi),$("YYYY",no,Ji),$("YYYYY",io,Xi),$("YYYYYY",io,Xi),J(["YYYYY","YYYYYY"],fo),J("YYYY",function(t,n){n[fo]=2===t.length?e.parseTwoDigitYear(t):w(t)}),J("YY",function(t,n){n[fo]=e.parseTwoDigitYear(t)}),J("Y",function(t,e){e[fo]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return w(t)+(w(t)>68?1900:2e3)};var xo,Do=nt("FullYear",!0);xo=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),z("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),N("month",8),$("M",Qi),$("MM",Qi,qi),$("MMM",function(t,e){return e.monthsShortRegex(t)}),$("MMMM",function(t,e){return e.monthsRegex(t)}),J(["M","MM"],function(t,e){e[po]=w(t)-1}),J(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[po]=o:f(n).invalidMonth=t});var ko=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,So="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Co=uo,To=uo;z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),N("week",5),N("isoWeek",5),$("w",Qi),$("ww",Qi,qi),$("W",Qi),$("WW",Qi,qi),X(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=w(t)});var Eo={dow:0,doy:6};z("d",0,"do","day"),z("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),z("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),z("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),$("d",Qi),$("e",Qi),$("E",Qi),$("dd",function(t,e){return e.weekdaysMinRegex(t)}),$("ddd",function(t,e){return e.weekdaysShortRegex(t)}),$("dddd",function(t,e){return e.weekdaysRegex(t)}),X(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:f(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,i){e[i]=w(t)});var Po="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Oo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Io="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lo=uo,Ro=uo,Yo=uo;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ut),z("k",["kk",2],0,$t),z("hmm",0,0,function(){return""+Ut.apply(this)+j(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Ut.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),Gt("a",!0),Gt("A",!1),Y("hour","h"),N("hour",13),$("a",qt),$("A",qt),$("H",Qi),$("h",Qi),$("k",Qi),$("HH",Qi,qi),$("hh",Qi,qi),$("kk",Qi,qi),$("hmm",Ki),$("hmmss",to),$("Hmm",Ki),$("Hmmss",to),J(["H","HH"],go),J(["k","kk"],function(t,e,n){var i=w(t);e[go]=24===i?0:i}),J(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),J(["h","hh"],function(t,e,n){e[go]=w(t),f(n).bigHour=!0}),J("hmm",function(t,e,n){var i=t.length-2;e[go]=w(t.substr(0,i)),e[vo]=w(t.substr(i)),f(n).bigHour=!0}),J("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[go]=w(t.substr(0,i)),e[vo]=w(t.substr(i,2)),e[yo]=w(t.substr(o)),f(n).bigHour=!0}),J("Hmm",function(t,e,n){var i=t.length-2;e[go]=w(t.substr(0,i)),e[vo]=w(t.substr(i))}),J("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[go]=w(t.substr(0,i)),e[vo]=w(t.substr(i,2)),e[yo]=w(t.substr(o))});var Ho,Ao=/[ap]\.?m?\.?/i,No=nt("Hours",!0),Fo={calendar:Ai,longDateFormat:Ni,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Fi,relativeTime:ji,months:So,monthsShort:Mo,week:Eo,weekdays:Po,weekdaysMin:Io,weekdaysShort:Oo,meridiemParse:Ao},jo={},zo={},Wo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bo=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vo=/Z|[+-]\d\d(?::?\d\d)?/,Uo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],$o=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Go=/^\/?Date\((\-?\d+)/i,qo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Zo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Jo=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Xo=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),Qo=function(){return Date.now?Date.now():+new Date},Ko=["year","quarter","month","week","day","hour","minute","second","millisecond"];He("Z",":"),He("ZZ",""),$("Z",ao),$("ZZ",ao),J(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ae(ao,t)});var tr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var er=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,nr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Xe.fn=Le.prototype,Xe.invalid=Ie;var ir=en(1,"add"),or=en(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rr=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),sr=1e3,ar=60*sr,lr=60*ar,ur=3506328*lr;z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),jn("gggg","weekYear"),jn("ggggg","weekYear"),jn("GGGG","isoWeekYear"),jn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),$("G",ro),$("g",ro),$("GG",Qi,qi),$("gg",Qi,qi),$("GGGG",no,Ji),$("gggg",no,Ji),$("GGGGG",io,Xi),$("ggggg",io,Xi),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=w(t)}),X(["gg","GG"],function(t,n,i,o){n[o]=e.parseTwoDigitYear(t)}),z("Q",0,"Qo","quarter"),Y("quarter","Q"),N("quarter",7),$("Q",Gi),J("Q",function(t,e){e[po]=3*(w(t)-1)}),z("D",["DD",2],"Do","date"),Y("date","D"),N("date",9),$("D",Qi),$("DD",Qi,qi),$("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),J(["D","DD"],mo),J("Do",function(t,e){e[mo]=w(t.match(Qi)[0])});var cr=nt("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),N("dayOfYear",4),$("DDD",eo),$("DDDD",Zi),J(["DDD","DDDD"],function(t,e,n){n._dayOfYear=w(t)}),z("m",["mm",2],0,"minute"),Y("minute","m"),N("minute",14),$("m",Qi),$("mm",Qi,qi),J(["m","mm"],vo);var dr=nt("Minutes",!1);z("s",["ss",2],0,"second"),Y("second","s"),N("second",15),$("s",Qi),$("ss",Qi,qi),J(["s","ss"],yo);var hr=nt("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),N("millisecond",16),$("S",eo,Gi),$("SS",eo,qi),$("SSS",eo,Zi);var fr;for(fr="SSSS";fr.length<=9;fr+="S")$(fr,oo);for(fr="S";fr.length<=9;fr+="S")J(fr,Zn);var pr=nt("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var mr=v.prototype;mr.add=ir,mr.calendar=rn,mr.clone=sn,mr.diff=fn,mr.endOf=En,mr.format=yn,mr.from=bn,mr.fromNow=wn,mr.to=_n,mr.toNow=xn,mr.get=rt,mr.invalidAt=Nn,mr.isAfter=an,mr.isBefore=ln,mr.isBetween=un,mr.isSame=cn,mr.isSameOrAfter=dn,mr.isSameOrBefore=hn,mr.isValid=Hn,mr.lang=rr,mr.locale=Dn,mr.localeData=kn,mr.max=Xo,mr.min=Jo,mr.parsingFlags=An,mr.set=st,mr.startOf=Tn,mr.subtract=or,mr.toArray=Ln,mr.toObject=Rn,mr.toDate=In,mr.toISOString=gn,mr.inspect=vn,mr.toJSON=Yn,mr.toString=mn,mr.unix=On,mr.valueOf=Pn,mr.creationData=Fn,mr.year=Do,mr.isLeapYear=et,mr.weekYear=zn,mr.isoWeekYear=Wn,mr.quarter=mr.quarters=Gn,mr.month=pt,mr.daysInMonth=mt,mr.week=mr.weeks=Tt,mr.isoWeek=mr.isoWeeks=Et,mr.weeksInYear=Vn,mr.isoWeeksInYear=Bn,mr.date=cr,mr.day=mr.days=Nt,mr.weekday=Ft,mr.isoWeekday=jt,mr.dayOfYear=qn,mr.hour=mr.hours=No,mr.minute=mr.minutes=dr,mr.second=mr.seconds=hr,mr.millisecond=mr.milliseconds=pr,mr.utcOffset=je,mr.utc=We,mr.local=Be,mr.parseZone=Ve,mr.hasAlignedHourOffset=Ue,mr.isDST=$e,mr.isLocal=qe,mr.isUtcOffset=Ze,mr.isUtc=Je,mr.isUTC=Je,mr.zoneAbbr=Jn,mr.zoneName=Xn,mr.dates=D("dates accessor is deprecated. Use date instead.",cr),mr.months=D("months accessor is deprecated. Use month instead",pt),mr.years=D("years accessor is deprecated. Use year instead",Do),mr.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ze),mr.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ge);var gr=T.prototype;gr.calendar=E,gr.longDateFormat=P,gr.invalidDate=O,gr.ordinal=I,gr.preparse=ti,gr.postformat=ti,gr.relativeTime=L,gr.pastFuture=R,gr.set=M,gr.months=ut,gr.monthsShort=ct,gr.monthsParse=ht,gr.monthsRegex=vt,gr.monthsShortRegex=gt,gr.week=St,gr.firstDayOfYear=Ct,gr.firstDayOfWeek=Mt,gr.weekdays=Lt,gr.weekdaysMin=Yt,gr.weekdaysShort=Rt,gr.weekdaysParse=At,gr.weekdaysRegex=zt,gr.weekdaysShortRegex=Wt,gr.weekdaysMinRegex=Bt,gr.isPM=Zt,gr.meridiem=Jt,te("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=D("moment.lang is deprecated. Use moment.locale instead.",te),e.langData=D("moment.langData is deprecated. Use moment.localeData instead.",ie);var vr=Math.abs,yr=bi("ms"),br=bi("s"),wr=bi("m"),_r=bi("h"),xr=bi("d"),Dr=bi("w"),kr=bi("M"),Sr=bi("Q"),Mr=bi("y"),Cr=xi("milliseconds"),Tr=xi("seconds"),Er=xi("minutes"),Pr=xi("hours"),Or=xi("days"),Ir=xi("months"),Lr=xi("years"),Rr=Math.round,Yr={ss:44,s:45,m:45,h:22,d:26,M:11},Hr=Math.abs,Ar=Le.prototype;return Ar.isValid=Oe,Ar.abs=ui,Ar.add=di,Ar.subtract=hi,Ar.as=vi,Ar.asMilliseconds=yr,Ar.asSeconds=br,Ar.asMinutes=wr,Ar.asHours=_r,Ar.asDays=xr,Ar.asWeeks=Dr,Ar.asMonths=kr,Ar.asQuarters=Sr,Ar.asYears=Mr,Ar.valueOf=yi,Ar._bubble=pi,Ar.clone=wi,Ar.get=_i,Ar.milliseconds=Cr,Ar.seconds=Tr,Ar.minutes=Er,Ar.hours=Pr,Ar.days=Or,Ar.weeks=Di,Ar.months=Ir,Ar.years=Lr,Ar.humanize=Ti,Ar.toISOString=Pi,Ar.toString=Pi,Ar.toJSON=Pi,Ar.locale=Dn,Ar.localeData=kn,Ar.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pi),Ar.lang=rr,z("X",0,0,"unix"),z("x",0,0,"valueOf"),$("x",ro),$("X",lo),J("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),J("x",function(t,e,n){n._d=new Date(w(t))}),e.version="2.24.0",function(t){Oi=t}(Me),e.fn=mr,e.min=Te,e.max=Ee,e.now=Qo,e.utc=d,e.unix=Qn,e.months=oi,e.isDate=a,e.locale=te,e.invalid=m,e.duration=Xe,e.isMoment=y,e.weekdays=si,e.parseZone=Kn,e.localeData=ie,e.isDuration=Re,e.monthsShort=ri,e.weekdaysMin=li,e.defineLocale=ee,e.updateLocale=ne,e.locales=oe,e.weekdaysShort=ai,e.normalizeUnits=H,e.relativeTimeRounding=Mi,e.relativeTimeThreshold=Ci,e.calendarFormat=on,e.prototype=mr,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,n("3IRH")(t))},"PL/P":function(t,e,n){var i,o;/**
|
||
* @version: 3.0.3
|
||
* @author: Dan Grossman http://www.dangrossman.info/
|
||
* @copyright: Copyright (c) 2012-2018 Dan Grossman. All rights reserved.
|
||
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
||
* @website: http://www.daterangepicker.com/
|
||
*/
|
||
!function(r,s){i=[n("bofE"),n("7t+N")],void 0!==(o=function(t,e){return e.fn||(e.fn={}),s(t,e)}.apply(e,i))&&(t.exports=o)}(0,function(t,e){var n=function(n,i,o){if(this.parentEl="body",this.element=e(n),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof i&&null!==i||(i={}),i=e.extend(this.element.data(),i),"string"==typeof i.template||i.template instanceof e||(i.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=e(i.parentEl&&e(i.parentEl).length?i.parentEl:this.parentEl),this.container=e(i.template).appendTo(this.parentEl),"object"==typeof i.locale&&("string"==typeof i.locale.direction&&(this.locale.direction=i.locale.direction),"string"==typeof i.locale.format&&(this.locale.format=i.locale.format),"string"==typeof i.locale.separator&&(this.locale.separator=i.locale.separator),"object"==typeof i.locale.daysOfWeek&&(this.locale.daysOfWeek=i.locale.daysOfWeek.slice()),"object"==typeof i.locale.monthNames&&(this.locale.monthNames=i.locale.monthNames.slice()),"number"==typeof i.locale.firstDay&&(this.locale.firstDay=i.locale.firstDay),"string"==typeof i.locale.applyLabel&&(this.locale.applyLabel=i.locale.applyLabel),"string"==typeof i.locale.cancelLabel&&(this.locale.cancelLabel=i.locale.cancelLabel),"string"==typeof i.locale.weekLabel&&(this.locale.weekLabel=i.locale.weekLabel),"string"==typeof i.locale.customRangeLabel)){var r=document.createElement("textarea");r.innerHTML=i.locale.customRangeLabel;var s=r.value;this.locale.customRangeLabel=s}if(this.container.addClass(this.locale.direction),"string"==typeof i.startDate&&(this.startDate=t(i.startDate,this.locale.format)),"string"==typeof i.endDate&&(this.endDate=t(i.endDate,this.locale.format)),"string"==typeof i.minDate&&(this.minDate=t(i.minDate,this.locale.format)),"string"==typeof i.maxDate&&(this.maxDate=t(i.maxDate,this.locale.format)),"object"==typeof i.startDate&&(this.startDate=t(i.startDate)),"object"==typeof i.endDate&&(this.endDate=t(i.endDate)),"object"==typeof i.minDate&&(this.minDate=t(i.minDate)),"object"==typeof i.maxDate&&(this.maxDate=t(i.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof i.applyButtonClasses&&(this.applyButtonClasses=i.applyButtonClasses),"string"==typeof i.applyClass&&(this.applyButtonClasses=i.applyClass),"string"==typeof i.cancelButtonClasses&&(this.cancelButtonClasses=i.cancelButtonClasses),"string"==typeof i.cancelClass&&(this.cancelButtonClasses=i.cancelClass),"object"==typeof i.maxSpan&&(this.maxSpan=i.maxSpan),"object"==typeof i.dateLimit&&(this.maxSpan=i.dateLimit),"string"==typeof i.opens&&(this.opens=i.opens),"string"==typeof i.drops&&(this.drops=i.drops),"boolean"==typeof i.showWeekNumbers&&(this.showWeekNumbers=i.showWeekNumbers),"boolean"==typeof i.showISOWeekNumbers&&(this.showISOWeekNumbers=i.showISOWeekNumbers),"string"==typeof i.buttonClasses&&(this.buttonClasses=i.buttonClasses),"object"==typeof i.buttonClasses&&(this.buttonClasses=i.buttonClasses.join(" ")),"boolean"==typeof i.showDropdowns&&(this.showDropdowns=i.showDropdowns),"number"==typeof i.minYear&&(this.minYear=i.minYear),"number"==typeof i.maxYear&&(this.maxYear=i.maxYear),"boolean"==typeof i.showCustomRangeLabel&&(this.showCustomRangeLabel=i.showCustomRangeLabel),"boolean"==typeof i.singleDatePicker&&(this.singleDatePicker=i.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof i.timePicker&&(this.timePicker=i.timePicker),"boolean"==typeof i.timePickerSeconds&&(this.timePickerSeconds=i.timePickerSeconds),"number"==typeof i.timePickerIncrement&&(this.timePickerIncrement=i.timePickerIncrement),"boolean"==typeof i.timePicker24Hour&&(this.timePicker24Hour=i.timePicker24Hour),"boolean"==typeof i.autoApply&&(this.autoApply=i.autoApply),"boolean"==typeof i.autoUpdateInput&&(this.autoUpdateInput=i.autoUpdateInput),"boolean"==typeof i.linkedCalendars&&(this.linkedCalendars=i.linkedCalendars),"function"==typeof i.isInvalidDate&&(this.isInvalidDate=i.isInvalidDate),"function"==typeof i.isCustomDate&&(this.isCustomDate=i.isCustomDate),"boolean"==typeof i.alwaysShowCalendars&&(this.alwaysShowCalendars=i.alwaysShowCalendars),0!=this.locale.firstDay)for(var a=this.locale.firstDay;a>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),a--;var l,u,c;if(void 0===i.startDate&&void 0===i.endDate&&e(this.element).is(":text")){var d=e(this.element).val(),h=d.split(this.locale.separator);l=u=null,2==h.length?(l=t(h[0],this.locale.format),u=t(h[1],this.locale.format)):this.singleDatePicker&&""!==d&&(l=t(d,this.locale.format),u=t(d,this.locale.format)),null!==l&&null!==u&&(this.setStartDate(l),this.setEndDate(u))}if("object"==typeof i.ranges){for(c in i.ranges){l="string"==typeof i.ranges[c][0]?t(i.ranges[c][0],this.locale.format):t(i.ranges[c][0]),u="string"==typeof i.ranges[c][1]?t(i.ranges[c][1],this.locale.format):t(i.ranges[c][1]),this.minDate&&l.isBefore(this.minDate)&&(l=this.minDate.clone());var f=this.maxDate;if(this.maxSpan&&f&&l.clone().add(this.maxSpan).isAfter(f)&&(f=l.clone().add(this.maxSpan)),f&&u.isAfter(f)&&(u=f.clone()),!(this.minDate&&u.isBefore(this.minDate,this.timepicker?"minute":"day")||f&&l.isAfter(f,this.timepicker?"minute":"day"))){var r=document.createElement("textarea");r.innerHTML=c;var s=r.value;this.ranges[s]=[l,u]}}var p="<ul>";for(c in this.ranges)p+='<li data-range-key="'+c+'">'+c+"</li>";this.showCustomRangeLabel&&(p+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),p+="</ul>",this.container.find(".ranges").prepend(p)}"function"==typeof o&&(this.callback=o),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof i.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),this.timePicker||this.container.addClass("auto-apply")),(void 0===i.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return n.prototype={constructor:n,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),this.timePicker||(this.endDate=this.endDate.add(1,"d").startOf("day").subtract(1,"second")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").removeAttr("disabled").removeClass("disabled"):this.container.find(".right .calendar-time select").attr("disabled","disabled").addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,n;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),n=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var i=this.container.find(".left .ampmselect").val();"PM"===i&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0)}}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),n=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var i=this.container.find(".right .ampmselect").val();"PM"===i&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0)}this.leftCalendar.month.hour(t).minute(e).second(n),this.rightCalendar.month.hour(t).minute(e).second(n)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(n){var i="left"==n?this.leftCalendar:this.rightCalendar,o=i.month.month(),r=i.month.year(),s=i.month.hour(),a=i.month.minute(),l=i.month.second(),u=t([r,o]).daysInMonth(),c=t([r,o,1]),d=t([r,o,u]),h=t(c).subtract(1,"month").month(),f=t(c).subtract(1,"month").year(),p=t([f,h]).daysInMonth(),m=c.day(),i=[];i.firstDay=c,i.lastDay=d;for(var g=0;g<6;g++)i[g]=[];var v=p-m+this.locale.firstDay+1;v>p&&(v-=7),m==this.locale.firstDay&&(v=p-6);for(var y,b,w=t([f,h,v,12,a,l]),g=0,y=0,b=0;g<42;g++,y++,w=t(w).add(24,"hour"))g>0&&y%7==0&&(y=0,b++),i[b][y]=w.clone().hour(s).minute(a).second(l),w.hour(12),this.minDate&&i[b][y].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&i[b][y].isBefore(this.minDate)&&"left"==n&&(i[b][y]=this.minDate.clone()),this.maxDate&&i[b][y].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&i[b][y].isAfter(this.maxDate)&&"right"==n&&(i[b][y]=this.maxDate.clone());"left"==n?this.leftCalendar.calendar=i:this.rightCalendar.calendar=i;var _="left"==n?this.minDate:this.startDate,x=this.maxDate,D=("left"==n?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');D+="<thead>",D+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(D+="<th></th>"),_&&!_.isBefore(i.firstDay)||this.linkedCalendars&&"left"!=n?D+="<th></th>":D+='<th class="prev available"><span></span></th>';var k=this.locale.monthNames[i[1][1].month()]+i[1][1].format(" YYYY");if(this.showDropdowns){for(var S=i[1][1].month(),M=i[1][1].year(),C=x&&x.year()||this.maxYear,T=_&&_.year()||this.minYear,E=M==T,P=M==C,O='<select class="monthselect">',I=0;I<12;I++)(!E||I>=_.month())&&(!P||I<=x.month())?O+="<option value='"+I+"'"+(I===S?" selected='selected'":"")+">"+this.locale.monthNames[I]+"</option>":O+="<option value='"+I+"'"+(I===S?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[I]+"</option>";O+="</select>";for(var L='<select class="yearselect">',R=T;R<=C;R++)L+='<option value="'+R+'"'+(R===M?' selected="selected"':"")+">"+R+"</option>";L+="</select>",k=O+L}if(D+='<th colspan="5" class="month">'+k+"</th>",x&&!x.isAfter(i.lastDay)||this.linkedCalendars&&"right"!=n&&!this.singleDatePicker?D+="<th></th>":D+='<th class="next available"><span></span></th>',D+="</tr>",D+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(D+='<th class="week">'+this.locale.weekLabel+"</th>"),e.each(this.locale.daysOfWeek,function(t,e){D+="<th>"+e+"</th>"}),D+="</tr>",D+="</thead>",D+="<tbody>",null==this.endDate&&this.maxSpan){var Y=this.startDate.clone().add(this.maxSpan).endOf("day");x&&!Y.isBefore(x)||(x=Y)}for(var b=0;b<6;b++){D+="<tr>",this.showWeekNumbers?D+='<td class="week">'+i[b][0].week()+"</td>":this.showISOWeekNumbers&&(D+='<td class="week">'+i[b][0].isoWeek()+"</td>");for(var y=0;y<7;y++){var H=[];i[b][y].isSame(new Date,"day")&&H.push("today"),i[b][y].isoWeekday()>5&&H.push("weekend"),i[b][y].month()!=i[1][1].month()&&H.push("off"),this.minDate&&i[b][y].isBefore(this.minDate,"day")&&H.push("off","disabled"),x&&i[b][y].isAfter(x,"day")&&H.push("off","disabled"),this.isInvalidDate(i[b][y])&&H.push("off","disabled"),i[b][y].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&H.push("active","start-date"),null!=this.endDate&&i[b][y].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&H.push("active","end-date"),null!=this.endDate&&i[b][y]>this.startDate&&i[b][y]<this.endDate&&H.push("in-range");var A=this.isCustomDate(i[b][y]);!1!==A&&("string"==typeof A?H.push(A):Array.prototype.push.apply(H,A));for(var N="",F=!1,g=0;g<H.length;g++)N+=H[g]+" ","disabled"==H[g]&&(F=!0);F||(N+="available"),D+='<td class="'+N.replace(/^\s+|\s+$/g,"")+'" data-title="r'+b+"c"+y+'">'+i[b][y].date()+"</td>"}D+="</tr>"}D+="</tbody>",D+="</table>",this.container.find(".drp-calendar."+n+" .calendar-table").html(D)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,n,i,o=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isAfter(this.maxDate)||(o=this.startDate.clone().add(this.maxSpan)),"left"==t)n=this.startDate.clone(),i=this.minDate;else if("right"==t){n=this.endDate.clone(),i=this.startDate;var r=this.container.find(".drp-calendar.right .calendar-time");if(""!=r.html()&&(n.hour(n.hour()||r.find(".hourselect option:selected").val()),n.minute(n.minute()||r.find(".minuteselect option:selected").val()),n.second(n.second()||r.find(".secondselect option:selected").val()),!this.timePicker24Hour)){var s=r.find(".ampmselect option:selected").val();"PM"===s&&n.hour()<12&&n.hour(n.hour()+12),"AM"===s&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),o&&n.isAfter(o)&&(n=o.clone())}e='<select class="hourselect">';for(var a=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,u=a;u<=l;u++){var c=u;this.timePicker24Hour||(c=n.hour()>=12?12==u?12:u+12:12==u?0:u);var d=n.clone().hour(c),h=!1;i&&d.minute(59).isBefore(i)&&(h=!0),o&&d.minute(0).isAfter(o)&&(h=!0),c!=n.hour()||h?e+=h?'<option value="'+u+'" disabled="disabled" class="disabled">'+u+"</option>":'<option value="'+u+'">'+u+"</option>":e+='<option value="'+u+'" selected="selected">'+u+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';for(var u=0;u<60;u+=this.timePickerIncrement){var f=u<10?"0"+u:u,d=n.clone().minute(u),h=!1;i&&d.second(59).isBefore(i)&&(h=!0),o&&d.second(0).isAfter(o)&&(h=!0),n.minute()!=u||h?e+=h?'<option value="'+u+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+u+'">'+f+"</option>":e+='<option value="'+u+'" selected="selected">'+f+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(var u=0;u<60;u++){var f=u<10?"0"+u:u,d=n.clone().second(u),h=!1;i&&d.isBefore(i)&&(h=!0),o&&d.isAfter(o)&&(h=!0),n.second()!=u||h?e+=h?'<option value="'+u+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+u+'">'+f+"</option>":e+='<option value="'+u+'" selected="selected">'+f+"</option>"}e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var p="",m="";i&&n.clone().hour(12).minute(0).second(0).isBefore(i)&&(p=' disabled="disabled" class="disabled"'),o&&n.clone().hour(0).minute(0).second(0).isAfter(o)&&(m=' disabled="disabled" class="disabled"'),n.hour()>=12?e+='<option value="AM"'+p+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":e+='<option value="AM" selected="selected"'+p+'>AM</option><option value="PM"'+m+">PM</option>",e+="</select>"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled")},move:function(){var t,n={top:0,left:0},i=e(window).width();this.parentEl.is("body")||(n={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},i=this.parentEl[0].clientWidth+this.parentEl.offset().left),t="up"==this.drops?this.element.offset().top-this.container.outerHeight()-n.top:this.element.offset().top+this.element.outerHeight()-n.top,this.container["up"==this.drops?"addClass":"removeClass"]("drop-up"),"left"==this.opens?(this.container.css({top:t,right:i-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:t,left:this.element.offset().left-n.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:t,left:this.element.offset().left-n.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>e(window).width()&&this.container.css({left:"auto",right:0}))},show:function(t){this.isShowing||(this._outsideClickProxy=e.proxy(function(t){this.outsideClick(t)},this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var n=e(t.target);"focusin"==t.type||n.closest(this.element).length||n.closest(this.container).length||n.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var n=this.ranges[e];this.startDate=n[0],this.endDate=n[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var n=e(t.target).attr("data-title"),i=n.substr(1,1),o=n.substr(3,1),r=e(t.target).parents(".drp-calendar"),s=r.hasClass("left")?this.leftCalendar.calendar[i][o]:this.rightCalendar.calendar[i][o],a=this.leftCalendar,l=this.rightCalendar,u=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(t,n){if(!e(n).hasClass("week")){var i=e(n).attr("data-title"),o=i.substr(1,1),r=i.substr(3,1),c=e(n).parents(".drp-calendar"),d=c.hasClass("left")?a.calendar[o][r]:l.calendar[o][r];d.isAfter(u)&&d.isBefore(s)||d.isSame(s,"day")?e(n).addClass("in-range"):e(n).removeClass("in-range")}})}},clickDate:function(t){if(e(t.target).hasClass("available")){var n=e(t.target).attr("data-title"),i=n.substr(1,1),o=n.substr(3,1),r=e(t.target).parents(".drp-calendar"),s=r.hasClass("left")?this.leftCalendar.calendar[i][o]:this.rightCalendar.calendar[i][o];if(this.endDate||s.isBefore(this.startDate,"day")){if(this.timePicker){var a=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var l=this.container.find(".left .ampmselect").val();"PM"===l&&a<12&&(a+=12),"AM"===l&&12===a&&(a=0)}var u=parseInt(this.container.find(".left .minuteselect").val(),10),c=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;s=s.clone().hour(a).minute(u).second(c)}this.endDate=null,this.setStartDate(s.clone())}else if(!this.endDate&&s.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var a=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var l=this.container.find(".right .ampmselect").val();"PM"===l&&a<12&&(a+=12),"AM"===l&&12===a&&(a=0)}var u=parseInt(this.container.find(".right .minuteselect").val(),10),c=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;s=s.clone().hour(a).minute(u).second(c)}this.setEndDate(s.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),this.timePicker||this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var n in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD hh:mm:ss":"YYYY-MM-DD hh:mm";if(this.startDate.format(i)==this.ranges[n][0].format(i)&&this.endDate.format(i)==this.ranges[n][1].format(i)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[n][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[n][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var n=e(t.target).closest(".drp-calendar").hasClass("left"),i=n?"left":"right",o=this.container.find(".drp-calendar."+i),r=parseInt(o.find(".monthselect").val(),10),s=o.find(".yearselect").val();n||(s<this.startDate.year()||s==this.startDate.year()&&r<this.startDate.month())&&(r=this.startDate.month(),s=this.startDate.year()),this.minDate&&(s<this.minDate.year()||s==this.minDate.year()&&r<this.minDate.month())&&(r=this.minDate.month(),s=this.minDate.year()),this.maxDate&&(s>this.maxDate.year()||s==this.maxDate.year()&&r>this.maxDate.month())&&(r=this.maxDate.month(),s=this.maxDate.year()),n?(this.leftCalendar.month.month(r).year(s),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(r).year(s),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var n=e(t.target).closest(".drp-calendar"),i=n.hasClass("left"),o=parseInt(n.find(".hourselect").val(),10),r=parseInt(n.find(".minuteselect").val(),10),s=this.timePickerSeconds?parseInt(n.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var a=n.find(".ampmselect").val();"PM"===a&&o<12&&(o+=12),"AM"===a&&12===o&&(o=0)}if(i){var l=this.startDate.clone();l.hour(o),l.minute(r),l.second(s),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var u=this.endDate.clone();u.hour(o),u.minute(r),u.second(s),this.setEndDate(u)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),n=null,i=null;2===e.length&&(n=t(e[0],this.locale.format),i=t(e[1],this.locale.format)),(this.singleDatePicker||null===n||null===i)&&(n=t(this.element.val(),this.locale.format),i=n),n.isValid()&&i.isValid()&&(this.setStartDate(n),this.setEndDate(i),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,i){var o=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new n(t,o,i))}),this},n})},R6CI:function(t,e){},RvrG:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("ITav"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),u(e,[{key:"init",value:function(){var t=this;this._addClickHandlerReducedInTableRow(this.selector,function(e){a.a.ajax({url:e,success:function(e){t._openFormInModal(e)},error:function(t,n){window.location=e}})})}},{key:"_openFormInModal",value:function(t){var e=this,n="#remote_form_modal .modal-content form",i=a()(n),o=a()("#remote_form_modal");i.off("submit"),a()(t).find("#form_modal .modal-content").length>0&&(o.on("hidden.bs.modal",function(){o.hasClass("modal-danger")&&o.removeClass("modal-danger")}),a()(t).find("#form_modal").hasClass("modal-danger")&&o.addClass("modal-danger"),a()("#remote_form_modal .modal-content").replaceWith(a()(t).find("#form_modal .modal-content")),e.getContainer().getPlugin("date-time-picker").activateDateTimePicker(n),e.getContainer().getPlugin("autocomplete").activateAutocomplete(n+" .js-autocomplete"),a()(".selectpicker").selectpicker("refresh")),a()(t).find("div.alert-error").length>0&&a()("#remote_form_modal .modal-body").prepend(a()(t).find("div.alert-error"));var r=a.a.fn.modal.Constructor.prototype.enforceFocus;a.a.fn.modal.Constructor.prototype.enforceFocus=function(){},o.on("hidden.bs.modal",function(){a.a.fn.modal.Constructor.prototype.enforceFocus=r}),o.on("shown.bs.modal",function(){a()(this).find("input[type=text],textarea,select").filter(':not("[data-datetimepicker=on]")').filter(":visible:first").focus().delay(1e3).focus()}),o.modal("show"),i=a()(n),i.on("submit",function(t){var r=a()(n+" button[type=submit]").button("loading"),s=i.attr("data-form-event"),l=e.getContainer().getPlugin("event"),u=e.getContainer().getPlugin("alert");t.preventDefault(),t.stopPropagation(),a.a.ajax({url:i.attr("action"),type:i.attr("method"),data:i.serialize(),success:function(t){r.button("reset");var n=a()(t).find("#form_modal .modal-content .has-error").length>0,c=a()(t).find("#form_modal .modal-content ul.list-unstyled li.text-danger").length>0,d=a()(t).find("div.alert-error").length>0;if(n||c||d)e._openFormInModal(t);else{l.trigger(s);var h=i.attr("data-msg-success");if(null===h||void 0===h){var f=a()(t).find("section.content div.row div.alert.alert-success");if(f.length>0){var p=f.contents();3===p.length&&(h=p[2].textContent)}}null!==h&&void 0!==h||(h="action.update.success"),o.modal("hide"),u.success(h)}return!1},error:function(t,e){var n=i.attr("data-msg-error");null!==n&&void 0!==n||(n="action.update.error"),t.responseJSON&&t.responseJSON.message?e=t.responseJSON.message:t.status&&t.statusText&&(e="["+t.status+"] "+t.statusText),u.error(n,e)}})})}}]),e}(l.a);e.a=c},T4Pq:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),u(e,[{key:"getId",value:function(){return"select-data-api"}},{key:"init",value:function(){this.activateApiSelects(this.selector)}},{key:"activateApiSelects",value:function(t){var e=this,n=this.getContainer().getPlugin("api");a()("body").on("change",t,function(t){var i=a()(this).attr("data-api-url").replace("-s-",a()(this).val()),o="#"+a()(this).attr("data-related-select");if(0!==a()(o).length){if(""===a()(this).val()){if(void 0===a()(this).attr("data-empty-url"))return e._updateSelect(o,{}),void a()(o).attr("disabled","disabled");i=a()(this).attr("data-empty-url").replace("-s-",a()(this).val())}a()(o).removeAttr("disabled"),n.get(i,function(t){e._updateSelect(o,t)})}})}},{key:"_updateSelect",value:function(t,e){var n=a()(t),i=a()(t+' option[value=""]');n.find("option").remove().end().find("optgroup").remove().end(),0!==i.length&&n.append('<option value="">'+i.text()+"</option>"),a.a.each(e,function(t,e){n.append('<option value="'+e.id+'">'+e.name+"</option>")}),n.trigger("change"),a()(".selectpicker").selectpicker("refresh")}}]),e}(l.a);e.a=c},TqGs:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n("+NP7"),r=n("awG4"),s=n("4klR"),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(){function t(e,n){if(i(this,t),!(e instanceof o.a))throw new Error("Configuration needs to a KimaiConfiguration instance");if(this._configuration=e,!(n instanceof r.a))throw new Error("Configuration needs to a KimaiTranslation instance");this._translation=n,this._plugins=[]}return a(t,[{key:"registerPlugin",value:function(t){if(!(t instanceof s.a))throw new Error("Invalid plugin given, needs to be a KimaiPlugin instance");return t.setContainer(this),this._plugins.push(t),t}},{key:"getPlugin",value:function(t){var e=!0,n=!1,i=void 0;try{for(var o,r=this._plugins[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){var s=o.value;if(null!==s.getId()&&s.getId()===t)return s}}catch(t){n=!0,i=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw i}}throw new Error("Unknown plugin: "+t)}},{key:"getPlugins",value:function(){return this._plugins}},{key:"getTranslation",value:function(){return this._translation}},{key:"getConfiguration",value:function(){return this._configuration}}]),t}();e.a=l},UGgp:function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=175)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},175:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(176);var i=n(1);i.datepickerLocale("pt-br","pt-BR",{closeText:"Fechar",prevText:"<Anterior",nextText:"Próximo>",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),i.locale("pt-br",{buttonText:{month:"Mês",week:"Semana",day:"Dia",list:"Compromissos"},allDayText:"dia inteiro",eventLimitText:function(t){return"mais +"+t},noEventsMessage:"Não há eventos para mostrar"})},176:function(t,e,n){!function(t,e){!function(t){t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(0))}()}})})},UZ9c:function(t,e,n){var i,o,r;!function(s){o=[n("7t+N")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})},Up1f:function(t,e,n){var i,o,r;/*!
|
||
* jQuery UI Position 1.12.1
|
||
* http://jqueryui.com
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://api.jqueryui.com/position/
|
||
*/
|
||
!function(s){o=[n("7t+N"),n("UZ9c")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){return function(){function e(t,e,n){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?n/100:1)]}function n(e,n){return parseInt(t.css(e,n),10)||0}function i(e){var n=e[0];return 9===n.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var o,r=Math.max,s=Math.abs,a=/left|center|right/,l=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,d=/%$/,h=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==o)return o;var e,n,i=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),r=i.children()[0];return t("body").append(i),e=r.offsetWidth,i.css("overflow","scroll"),n=r.offsetWidth,e===n&&(n=i[0].clientWidth),i.remove(),o=e-n},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),i=t.isWindow(n[0]),o=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:o,offset:i||o?{left:0,top:0}:t(e).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(o){if(!o||!o.of)return h.apply(this,arguments);o=t.extend({},o);var d,f,p,m,g,v,y=t(o.of),b=t.position.getWithinInfo(o.within),w=t.position.getScrollInfo(b),_=(o.collision||"flip").split(" "),x={};return v=i(y),y[0].preventDefault&&(o.at="left top"),f=v.width,p=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,e,n=(o[this]||"").split(" ");1===n.length&&(n=a.test(n[0])?n.concat(["center"]):l.test(n[0])?["center"].concat(n):["center","center"]),n[0]=a.test(n[0])?n[0]:"center",n[1]=l.test(n[1])?n[1]:"center",t=u.exec(n[0]),e=u.exec(n[1]),x[this]=[t?t[0]:0,e?e[0]:0],o[this]=[c.exec(n[0])[0],c.exec(n[1])[0]]}),1===_.length&&(_[1]=_[0]),"right"===o.at[0]?g.left+=f:"center"===o.at[0]&&(g.left+=f/2),"bottom"===o.at[1]?g.top+=p:"center"===o.at[1]&&(g.top+=p/2),d=e(x.at,f,p),g.left+=d[0],g.top+=d[1],this.each(function(){var i,a,l=t(this),u=l.outerWidth(),c=l.outerHeight(),h=n(this,"marginLeft"),v=n(this,"marginTop"),D=u+h+n(this,"marginRight")+w.width,k=c+v+n(this,"marginBottom")+w.height,S=t.extend({},g),M=e(x.my,l.outerWidth(),l.outerHeight());"right"===o.my[0]?S.left-=u:"center"===o.my[0]&&(S.left-=u/2),"bottom"===o.my[1]?S.top-=c:"center"===o.my[1]&&(S.top-=c/2),S.left+=M[0],S.top+=M[1],i={marginLeft:h,marginTop:v},t.each(["left","top"],function(e,n){t.ui.position[_[e]]&&t.ui.position[_[e]][n](S,{targetWidth:f,targetHeight:p,elemWidth:u,elemHeight:c,collisionPosition:i,collisionWidth:D,collisionHeight:k,offset:[d[0]+M[0],d[1]+M[1]],my:o.my,at:o.at,within:b,elem:l})}),o.using&&(a=function(t){var e=m.left-S.left,n=e+f-u,i=m.top-S.top,a=i+p-c,d={target:{element:y,left:m.left,top:m.top,width:f,height:p},element:{element:l,left:S.left,top:S.top,width:u,height:c},horizontal:n<0?"left":e>0?"right":"center",vertical:a<0?"top":i>0?"bottom":"middle"};f<u&&s(e+n)<f&&(d.horizontal="center"),p<c&&s(i+a)<p&&(d.vertical="middle"),r(s(e),s(n))>r(s(i),s(a))?d.important="horizontal":d.important="vertical",o.using.call(this,t,d)}),l.offset(t.extend(S,{using:a}))})},t.ui.position={fit:{left:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,u=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&u<=0?(n=t.left+l+e.collisionWidth-s-o,t.left+=l-n):t.left=u>0&&l<=0?o:l>u?o+s-e.collisionWidth:o:l>0?t.left+=l:u>0?t.left-=u:t.left=r(t.left-a,t.left)},top:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollTop:i.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,u=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&u<=0?(n=t.top+l+e.collisionHeight-s-o,t.top+=l-n):t.top=u>0&&l<=0?o:l>u?o+s-e.collisionHeight:o:l>0?t.top+=l:u>0?t.top-=u:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var n,i,o=e.within,r=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,d=u+e.collisionWidth-a-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];c<0?((n=t.left+h+f+p+e.collisionWidth-a-r)<0||n<s(c))&&(t.left+=h+f+p):d>0&&((i=t.left-e.collisionPosition.marginLeft+h+f+p-l)>0||s(i)<d)&&(t.left+=h+f+p)},top:function(t,e){var n,i,o=e.within,r=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-l,d=u+e.collisionHeight-a-l,h="top"===e.my[1],f=h?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];c<0?((i=t.top+f+p+m+e.collisionHeight-a-r)<0||i<s(c))&&(t.top+=f+p+m):d>0&&((n=t.top-e.collisionPosition.marginTop+f+p+m-l)>0||s(n)<d)&&(t.top+=f+p+m)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position})},VcwF:function(t,e,n){(function(t){!function(e,n){t.exports=n()}(0,function(){"use strict";function e(){return Ci.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return ke(t,e,n,i,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return null==t._pf&&(t._pf=h()),t._pf}function p(t){if(null==t._isValid){var e=f(t),n=Ti.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=d(NaN);return null!=t?c(f(e),t):f(e).userInvalidated=!0,e}function g(t,e){var n,i,o;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),Ei.length>0)for(n=0;n<Ei.length;n++)i=Ei[n],o=e[i],r(o)||(t[i]=o);return t}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Pi&&(Pi=!0,e.updateOffset(this),Pi=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=b(e)),n}function _(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&w(t[i])!==w(e[i]))&&s++;return s+r}function x(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function D(t,n){var i=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){o+="\n["+s+"] ";for(var a in arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}x(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function k(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Oi[t]||(x(n),Oi[t]=!0)}function S(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){var e,n;for(n in t)e=t[n],S(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(t,e){var n,o=c({},t);for(n in e)u(e,n)&&(i(t[n])&&i(e[n])?(o[n]={},c(o[n],t[n]),c(o[n],e[n])):null!=e[n]?o[n]=e[n]:delete o[n]);for(n in t)u(t,n)&&!u(e,n)&&i(t[n])&&(o[n]=c({},o[n]));return o}function T(t){null!=t&&this.set(t)}function E(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return S(i)?i.call(e,n):i}function P(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function O(){return this._invalidDate}function I(t){return this._ordinal.replace("%d",t)}function L(t,e,n,i){var o=this._relativeTime[n];return S(o)?o(t,e,n,i):o.replace(/%d/i,t)}function R(t,e){var n=this._relativeTime[t>0?"future":"past"];return S(n)?n(e):n.replace(/%s/i,e)}function Y(t,e){var n=t.toLowerCase();Ai[n]=Ai[n+"s"]=Ai[e]=t}function H(t){return"string"==typeof t?Ai[t]||Ai[t.toLowerCase()]:void 0}function A(t){var e,n,i={};for(n in t)u(t,n)&&(e=H(n))&&(i[e]=t[n]);return i}function N(t,e){Ni[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Ni[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function j(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function z(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(Wi[t]=o),e&&(Wi[e[0]]=function(){return j(o.apply(this,arguments),e[1],e[2])}),n&&(Wi[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,i=t.match(Fi);for(e=0,n=i.length;e<n;e++)Wi[i[e]]?i[e]=Wi[i[e]]:i[e]=W(i[e]);return function(e){var o,r="";for(o=0;o<n;o++)r+=S(i[o])?i[o].call(e,t):i[o];return r}}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),zi[e]=zi[e]||B(e),zi[e](t)):t.localeData().invalidDate()}function U(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(ji.lastIndex=0;i>=0&&ji.test(t);)t=t.replace(ji,n),ji.lastIndex=0,i-=1;return t}function $(t,e,n){so[t]=S(e)?e:function(t,i){return t&&n?n:e}}function G(t,e){return u(so,t)?so[t](e._strict,e._locale):new RegExp(q(t))}function q(t){return Z(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),s(e)&&(i=function(t,n){n[e]=w(t)}),n=0;n<t.length;n++)ao[t[n]]=i}function X(t,e){J(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Q(t,e,n){null!=e&&u(ao,t)&&ao[t](e,n._a,n,t)}function K(t){return tt(t)?366:365}function tt(t){return t%4==0&&t%100!=0||t%400==0}function et(){return tt(this.year())}function nt(t,n){return function(i){return null!=i?(ot(this,t,i),e.updateOffset(this,n),this):it(this,t)}}function it(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function ot(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function rt(t){return t=H(t),S(this[t])?this[t]():this}function st(t,e){if("object"==typeof t){t=A(t);for(var n=F(t),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit])}else if(t=H(t),S(this[t]))return this[t](e);return this}function at(t,e){return(t%e+e)%e}function lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=at(e,12);return t+=(e-n)/12,1===n?tt(t)?29:28:31-n%7%2}function ut(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||wo).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone}function ct(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[wo.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(t,e,n){var i,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?(o=yo.call(this._shortMonthsParse,s),-1!==o?o:null):(o=yo.call(this._longMonthsParse,s),-1!==o?o:null):"MMM"===e?-1!==(o=yo.call(this._shortMonthsParse,s))?o:(o=yo.call(this._longMonthsParse,s),-1!==o?o:null):-1!==(o=yo.call(this._longMonthsParse,s))?o:(o=yo.call(this._shortMonthsParse,s),-1!==o?o:null)}function ht(t,e,n){var i,o,r;if(this._monthsParseExact)return dt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function ft(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if(e=t.localeData().monthsParse(e),!s(e))return t;return n=Math.min(t.date(),lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function pt(t){return null!=t?(ft(this,t),e.updateOffset(this,!0),this):it(this,"Month")}function mt(){return lt(this.year(),this.month())}function gt(t){return this._monthsParseExact?(u(this,"_monthsRegex")||yt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Do),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(t){return this._monthsParseExact?(u(this,"_monthsRegex")||yt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ko),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function yt(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],r=[];for(e=0;e<12;e++)n=d([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)i[e]=Z(i[e]),o[e]=Z(o[e]);for(e=0;e<24;e++)r[e]=Z(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function bt(t,e,n,i,o,r,s){var a=new Date(t,e,n,i,o,r,s);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function wt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function _t(t,e,n){var i=7+e-n;return-(7+wt(t,0,i).getUTCDay()-e)%7+i-1}function xt(t,e,n,i,o){var r,s,a=(7+n-i)%7,l=_t(t,i,o),u=1+7*(e-1)+a+l;return u<=0?(r=t-1,s=K(r)+u):u>K(t)?(r=t+1,s=u-K(t)):(r=t,s=u),{year:r,dayOfYear:s}}function Dt(t,e,n){var i,o,r=_t(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?(o=t.year()-1,i=s+kt(o,e,n)):s>kt(t.year(),e,n)?(i=s-kt(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function kt(t,e,n){var i=_t(t,e,n),o=_t(t+1,e,n);return(K(t)-i+o)/7}function St(t){return Dt(t,this._week.dow,this._week.doy).week}function Mt(){return this._week.dow}function Ct(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Et(t){var e=Dt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function It(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Lt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Rt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Yt(t,e,n){var i,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?(o=yo.call(this._weekdaysParse,s),-1!==o?o:null):"ddd"===e?(o=yo.call(this._shortWeekdaysParse,s),-1!==o?o:null):(o=yo.call(this._minWeekdaysParse,s),-1!==o?o:null):"dddd"===e?-1!==(o=yo.call(this._weekdaysParse,s))?o:-1!==(o=yo.call(this._shortWeekdaysParse,s))?o:(o=yo.call(this._minWeekdaysParse,s),-1!==o?o:null):"ddd"===e?-1!==(o=yo.call(this._shortWeekdaysParse,s))?o:-1!==(o=yo.call(this._weekdaysParse,s))?o:(o=yo.call(this._minWeekdaysParse,s),-1!==o?o:null):-1!==(o=yo.call(this._minWeekdaysParse,s))?o:-1!==(o=yo.call(this._weekdaysParse,s))?o:(o=yo.call(this._shortWeekdaysParse,s),-1!==o?o:null)}function Ht(t,e,n){var i,o,r;if(this._weekdaysParseExact)return Yt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function At(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,"d")):e}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ft(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function jt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Eo),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Po),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oo),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bt(){function t(t,e){return e.length-t.length}var e,n,i,o,r,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),a.push(o),l.push(r),u.push(i),u.push(o),u.push(r);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=Z(a[e]),l[e]=Z(l[e]),u[e]=Z(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Vt(){return this.hours()%12||12}function Ut(){return this.hours()||24}function $t(t,e){z(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Gt(t,e){return e._meridiemParse}function qt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Zt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Jt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,n,i,o,r=0;r<t.length;){for(o=Jt(t[r]).split("-"),e=o.length,n=Jt(t[r+1]),n=n?n.split("-"):null;e>0;){if(i=Qt(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&_(o,n,!0)>=e-1)break;e--}r++}return Io}function Qt(e){var n=null;if(!Ho[e]&&void 0!==t&&t&&t.exports)try{n=Io._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Kt(n)}catch(t){}return Ho[e]}function Kt(t,e){var n;return t&&(n=r(e)?ne(t):te(t,e),n?Io=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Io._abbr}function te(t,e){if(null!==e){var n,i=Yo;if(e.abbr=t,null!=Ho[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Ho[t]._config;else if(null!=e.parentLocale)if(null!=Ho[e.parentLocale])i=Ho[e.parentLocale]._config;else{if(null==(n=Qt(e.parentLocale)))return Ao[e.parentLocale]||(Ao[e.parentLocale]=[]),Ao[e.parentLocale].push({name:t,config:e}),null;i=n._config}return Ho[t]=new T(C(i,e)),Ao[t]&&Ao[t].forEach(function(t){te(t.name,t.config)}),Kt(t),Ho[t]}return delete Ho[t],null}function ee(t,e){if(null!=e){var n,i,o=Yo;i=Qt(t),null!=i&&(o=i._config),e=C(o,e),n=new T(e),n.parentLocale=Ho[t],Ho[t]=n,Kt(t)}else null!=Ho[t]&&(null!=Ho[t].parentLocale?Ho[t]=Ho[t].parentLocale:null!=Ho[t]&&delete Ho[t]);return Ho[t]}function ne(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Io;if(!n(t)){if(e=Qt(t))return e;t=[t]}return Xt(t)}function ie(){return Ii(Ho)}function oe(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[uo]<0||n[uo]>11?uo:n[co]<1||n[co]>lt(n[lo],n[uo])?co:n[ho]<0||n[ho]>24||24===n[ho]&&(0!==n[fo]||0!==n[po]||0!==n[mo])?ho:n[fo]<0||n[fo]>59?fo:n[po]<0||n[po]>59?po:n[mo]<0||n[mo]>999?mo:-1,f(t)._overflowDayOfYear&&(e<lo||e>co)&&(e=co),f(t)._overflowWeeks&&-1===e&&(e=go),f(t)._overflowWeekday&&-1===e&&(e=vo),f(t).overflow=e),t}function re(t,e,n){return null!=t?t:null!=e?e:n}function se(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ae(t){var e,n,i,o,r,s=[];if(!t._d){for(i=se(t),t._w&&null==t._a[co]&&null==t._a[uo]&&le(t),null!=t._dayOfYear&&(r=re(t._a[lo],i[lo]),(t._dayOfYear>K(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=wt(r,0,t._dayOfYear),t._a[uo]=n.getUTCMonth(),t._a[co]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ho]&&0===t._a[fo]&&0===t._a[po]&&0===t._a[mo]&&(t._nextDay=!0,t._a[ho]=0),t._d=(t._useUTC?wt:bt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ho]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function le(t){var e,n,i,o,r,s,a,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)r=1,s=4,n=re(e.GG,t._a[lo],Dt(Se(),1,4).year),i=re(e.W,1),((o=re(e.E,1))<1||o>7)&&(l=!0);else{r=t._locale._week.dow,s=t._locale._week.doy;var u=Dt(Se(),r,s);n=re(e.gg,t._a[lo],u.year),i=re(e.w,u.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r}i<1||i>kt(n,r,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=xt(n,i,o,r,s),t._a[lo]=a.year,t._dayOfYear=a.dayOfYear)}function ue(t){var e,n,i,o,r,s,a=t._i,l=No.exec(a)||Fo.exec(a);if(l){for(f(t).iso=!0,e=0,n=zo.length;e<n;e++)if(zo[e][1].exec(l[1])){o=zo[e][0],i=!1!==zo[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Wo.length;e<n;e++)if(Wo[e][1].exec(l[3])){r=(l[2]||" ")+Wo[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!jo.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=o+(r||"")+(s||""),ve(t)}else t._isValid=!1}function ce(t,e,n,i,o,r){var s=[de(t),xo.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function de(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function he(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fe(t,e,n){if(t){if(Co.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pe(t,e,n){if(t)return Uo[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function me(t){var e=Vo.exec(he(t._i));if(e){var n=ce(e[4],e[3],e[2],e[5],e[6],e[7]);if(!fe(e[1],n,t))return;t._a=n,t._tzm=pe(e[8],e[9],e[10]),t._d=wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function ge(t){var n=Bo.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));ue(t),!1===t._isValid&&(delete t._isValid,me(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function ve(t){if(t._f===e.ISO_8601)return void ue(t);if(t._f===e.RFC_2822)return void me(t);t._a=[],f(t).empty=!0;var n,i,o,r,s,a=""+t._i,l=a.length,u=0;for(o=U(t._f,t._locale).match(Fi)||[],n=0;n<o.length;n++)r=o[n],i=(a.match(G(r,t))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&f(t).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),Wi[r]?(i?f(t).empty=!1:f(t).unusedTokens.push(r),Q(r,i,t)):t._strict&&!i&&f(t).unusedTokens.push(r);f(t).charsLeftOver=l-u,a.length>0&&f(t).unusedInput.push(a),t._a[ho]<=12&&!0===f(t).bigHour&&t._a[ho]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[ho]=ye(t._locale,t._a[ho],t._meridiem),ae(t),oe(t)}function ye(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function be(t){var e,n,i,o,r;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],ve(e),p(e)&&(r+=f(e).charsLeftOver,r+=10*f(e).unusedTokens.length,f(e).score=r,(null==i||r<i)&&(i=r,n=e));c(t,n||e)}function we(t){if(!t._d){var e=A(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ae(t)}}function _e(t){var e=new v(oe(xe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xe(t){var e=t._i,i=t._f;return t._locale=t._locale||ne(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(oe(e)):(a(e)?t._d=e:n(i)?be(t):i?ve(t):De(t),p(t)||(t._d=null),t))}function De(t){var o=t._i;r(o)?t._d=new Date(e.now()):a(o)?t._d=new Date(o.valueOf()):"string"==typeof o?ge(t):n(o)?(t._a=l(o.slice(0),function(t){return parseInt(t,10)}),ae(t)):i(o)?we(t):s(o)?t._d=new Date(o):e.createFromInputFallback(t)}function ke(t,e,r,s,a){var l={};return!0!==r&&!1!==r||(s=r,r=void 0),(i(t)&&o(t)||n(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=r,l._i=t,l._f=e,l._strict=s,_e(l)}function Se(t,e,n,i){return ke(t,e,n,i,!1)}function Me(t,e){var i,o;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Se();for(i=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](i)||(i=e[o]);return i}function Ce(){return Me("isBefore",[].slice.call(arguments,0))}function Te(){return Me("isAfter",[].slice.call(arguments,0))}function Ee(t){for(var e in t)if(-1===yo.call(Zo,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Zo.length;++i)if(t[Zo[i]]){if(n)return!1;parseFloat(t[Zo[i]])!==w(t[Zo[i]])&&(n=!0)}return!0}function Pe(){return this._isValid}function Oe(){return Je(NaN)}function Ie(t){var e=A(t),n=e.year||0,i=e.quarter||0,o=e.month||0,r=e.week||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=Ee(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=ne(),this._bubble()}function Le(t){return t instanceof Ie}function Re(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,e){z(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+j(~~(t/60),2)+e+j(~~t%60,2)})}function He(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],o=(i+"").match(Jo)||["-",0,0],r=60*o[1]+w(o[2]);return 0===r?0:"+"===o[0]?r:-r}function Ae(t,n){var i,o;return n._isUTC?(i=n.clone(),o=(y(t)||a(t)?t.valueOf():Se(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),e.updateOffset(i,!1),i):Se(t).local()}function Ne(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Fe(t,n,i){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=He(io,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(o=Ne(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!n||this._changeInProgress?en(this,Je(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ne(this)}function je(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function ze(t){return this.utcOffset(0,t)}function We(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this}function Be(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(no,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ve(t){return!!this.isValid()&&(t=t?Se(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Ue(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $e(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=xe(t),t._a){var e=t._isUTC?d(t._a):Se(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ge(){return!!this.isValid()&&!this._isUTC}function qe(){return!!this.isValid()&&this._isUTC}function Ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Je(t,e){var n,i,o,r=t,a=null;return Le(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(r={},e?r[e]=t:r.milliseconds=t):(a=Xo.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:w(a[co])*n,h:w(a[ho])*n,m:w(a[fo])*n,s:w(a[po])*n,ms:w(Re(1e3*a[mo]))*n}):(a=Qo.exec(t))?(n="-"===a[1]?-1:(a[1],1),r={y:Xe(a[2],n),M:Xe(a[3],n),w:Xe(a[4],n),d:Xe(a[5],n),h:Xe(a[6],n),m:Xe(a[7],n),s:Xe(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Ke(Se(r.from),Se(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new Ie(r),Le(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Xe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ke(t,e){var n;return t.isValid()&&e.isValid()?(e=Ae(e,t),t.isBefore(e)?n=Qe(t,e):(n=Qe(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(t,e){return function(n,i){var o,r;return null===i||isNaN(+i)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),n="string"==typeof n?+n:n,o=Je(n,i),en(this,o,t),this}}function en(t,n,i,o){var r=n._milliseconds,s=Re(n._days),a=Re(n._months);t.isValid()&&(o=null==o||o,a&&ft(t,it(t,"Month")+a*i),s&&ot(t,"Date",it(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),o&&e.updateOffset(t,s||a))}function nn(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function on(t,n){var i=t||Se(),o=Ae(i,this).startOf("day"),r=e.calendarFormat(this,o)||"sameElse",s=n&&(S(n[r])?n[r].call(this,i):n[r]);return this.format(s||this.localeData().calendar(r,this,Se(i)))}function rn(){return new v(this)}function sn(t,e){var n=y(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&(e=H(r(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function an(t,e){var n=y(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&(e=H(r(e)?"millisecond":e),"millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function ln(t,e,n,i){return i=i||"()",("("===i[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))}function un(t,e){var n,i=y(t)?t:Se(t);return!(!this.isValid()||!i.isValid())&&(e=H(e||"millisecond"),"millisecond"===e?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function cn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function dn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function hn(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(i=Ae(t,this),!i.isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=H(e)){case"year":r=fn(this,i)/12;break;case"month":r=fn(this,i);break;case"quarter":r=fn(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:b(r)}function fn(t,e){var n,i,o=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(o,"months");return e-r<0?(n=t.clone().add(o-1,"months"),i=(e-r)/(r-n)):(n=t.clone().add(o+1,"months"),i=(e-r)/(n-r)),-(o+i)||0}function pn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)}function vn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=V(this,t);return this.localeData().postformat(n)}function yn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function bn(t){return this.from(Se(),t)}function wn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _n(t){return this.to(Se(),t)}function xn(t){var e;return void 0===t?this._locale._abbr:(e=ne(t),null!=e&&(this._locale=e),this)}function Dn(){return this._locale}function kn(t){switch(t=H(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function Sn(t){return void 0===(t=H(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Mn(){return this._d.valueOf()-6e4*(this._offset||0)}function Cn(){return Math.floor(this.valueOf()/1e3)}function Tn(){return new Date(this.valueOf())}function En(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Pn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function On(){return this.isValid()?this.toISOString():null}function In(){return p(this)}function Ln(){return c({},f(this))}function Rn(){return f(this).overflow}function Yn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Hn(t,e){z(0,[t,t.length],0,e)}function An(t){return zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Nn(t){return zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Fn(){return kt(this.year(),1,4)}function jn(){var t=this.localeData()._week;return kt(this.year(),t.dow,t.doy)}function zn(t,e,n,i,o){var r;return null==t?Dt(this,i,o).year:(r=kt(t,i,o),e>r&&(e=r),Wn.call(this,t,e,n,i,o))}function Wn(t,e,n,i,o){var r=xt(t,e,n,i,o),s=wt(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Bn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Vn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Un(t,e){e[mo]=w(1e3*("0."+t))}function $n(){return this._isUTC?"UTC":""}function Gn(){return this._isUTC?"Coordinated Universal Time":""}function qn(t){return Se(1e3*t)}function Zn(){return Se.apply(null,arguments).parseZone()}function Jn(t){return t}function Xn(t,e,n,i){var o=ne(),r=d().set(i,e);return o[n](r,t)}function Qn(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xn(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Xn(t,i,n,"month");return o}function Kn(t,e,n,i){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var o=ne(),r=t?o._week.dow:0;if(null!=n)return Xn(e,(n+r)%7,i,"day");var a,l=[];for(a=0;a<7;a++)l[a]=Xn(e,(a+r)%7,i,"day");return l}function ti(t,e){return Qn(t,e,"months")}function ei(t,e){return Qn(t,e,"monthsShort")}function ni(t,e,n){return Kn(t,e,n,"weekdays")}function ii(t,e,n){return Kn(t,e,n,"weekdaysShort")}function oi(t,e,n){return Kn(t,e,n,"weekdaysMin")}function ri(){var t=this._data;return this._milliseconds=ur(this._milliseconds),this._days=ur(this._days),this._months=ur(this._months),t.milliseconds=ur(t.milliseconds),t.seconds=ur(t.seconds),t.minutes=ur(t.minutes),t.hours=ur(t.hours),t.months=ur(t.months),t.years=ur(t.years),this}function si(t,e,n,i){var o=Je(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function ai(t,e){return si(this,t,e,1)}function li(t,e){return si(this,t,e,-1)}function ui(t){return t<0?Math.floor(t):Math.ceil(t)}function ci(){var t,e,n,i,o,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*ui(hi(a)+s),s=0,a=0),l.milliseconds=r%1e3,t=b(r/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,s+=b(n/24),o=b(di(s)),a+=o,s-=ui(hi(o)),i=b(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function di(t){return 4800*t/146097}function hi(t){return 146097*t/4800}function fi(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=H(t))||"year"===t)return e=this._days+i/864e5,n=this._months+di(e),"month"===t?n:n/12;switch(e=this._days+Math.round(hi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function mi(t){return function(){return this.as(t)}}function gi(){return Je(this)}function vi(t){return t=H(t),this.isValid()?this[t+"s"]():NaN}function yi(t){return function(){return this.isValid()?this._data[t]:NaN}}function bi(){return b(this.days()/7)}function wi(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function _i(t,e,n){var i=Je(t).abs(),o=Sr(i.as("s")),r=Sr(i.as("m")),s=Sr(i.as("h")),a=Sr(i.as("d")),l=Sr(i.as("M")),u=Sr(i.as("y")),c=o<=Mr.ss&&["s",o]||o<Mr.s&&["ss",o]||r<=1&&["m"]||r<Mr.m&&["mm",r]||s<=1&&["h"]||s<Mr.h&&["hh",s]||a<=1&&["d"]||a<Mr.d&&["dd",a]||l<=1&&["M"]||l<Mr.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,wi.apply(null,c)}function xi(t){return void 0===t?Sr:"function"==typeof t&&(Sr=t,!0)}function Di(t,e){return void 0!==Mr[t]&&(void 0===e?Mr[t]:(Mr[t]=e,"s"===t&&(Mr.ss=e-1),!0))}function ki(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=_i(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Si(t){return(t>0)-(t<0)||+t}function Mi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=Cr(this._milliseconds)/1e3,o=Cr(this._days),r=Cr(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60,n=b(r/12),r%=12;var s=n,a=r,l=o,u=e,c=t,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",p=Si(this._months)!==Si(h)?"-":"",m=Si(this._days)!==Si(h)?"-":"",g=Si(this._milliseconds)!==Si(h)?"-":"";return f+"P"+(s?p+s+"Y":"")+(a?p+a+"M":"")+(l?m+l+"D":"")+(u||c||d?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(d?g+d+"S":"")}var Ci,Ti;Ti=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var Ei=e.momentProperties=[],Pi=!1,Oi={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Ii;Ii=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var Li={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ri={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"},Yi=/\d{1,2}/,Hi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},Ai={},Ni={},Fi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ji=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zi={},Wi={},Bi=/\d/,Vi=/\d\d/,Ui=/\d{3}/,$i=/\d{4}/,Gi=/[+-]?\d{6}/,qi=/\d\d?/,Zi=/\d\d\d\d?/,Ji=/\d\d\d\d\d\d?/,Xi=/\d{1,3}/,Qi=/\d{1,4}/,Ki=/[+-]?\d{1,6}/,to=/\d+/,eo=/[+-]?\d+/,no=/Z|[+-]\d\d:?\d\d/gi,io=/Z|[+-]\d\d(?::?\d\d)?/gi,oo=/[+-]?\d+(\.\d{1,3})?/,ro=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,so={},ao={},lo=0,uo=1,co=2,ho=3,fo=4,po=5,mo=6,go=7,vo=8;z("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),N("year",1),$("Y",eo),$("YY",qi,Vi),$("YYYY",Qi,$i),$("YYYYY",Ki,Gi),$("YYYYYY",Ki,Gi),J(["YYYYY","YYYYYY"],lo),J("YYYY",function(t,n){n[lo]=2===t.length?e.parseTwoDigitYear(t):w(t)}),J("YY",function(t,n){n[lo]=e.parseTwoDigitYear(t)}),J("Y",function(t,e){e[lo]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return w(t)+(w(t)>68?1900:2e3)};var yo,bo=nt("FullYear",!0);yo=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),z("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),N("month",8),$("M",qi),$("MM",qi,Vi),$("MMM",function(t,e){return e.monthsShortRegex(t)}),$("MMMM",function(t,e){return e.monthsRegex(t)}),J(["M","MM"],function(t,e){e[uo]=w(t)-1}),J(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[uo]=o:f(n).invalidMonth=t});var wo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_o="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Do=ro,ko=ro;z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),N("week",5),N("isoWeek",5),$("w",qi),$("ww",qi,Vi),$("W",qi),$("WW",qi,Vi),X(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=w(t)});var So={dow:0,doy:6};z("d",0,"do","day"),z("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),z("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),z("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),$("d",qi),$("e",qi),$("E",qi),$("dd",function(t,e){return e.weekdaysMinRegex(t)}),$("ddd",function(t,e){return e.weekdaysShortRegex(t)}),$("dddd",function(t,e){return e.weekdaysRegex(t)}),X(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:f(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,i){e[i]=w(t)});var Mo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Co="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),To="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Eo=ro,Po=ro,Oo=ro;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Vt),z("k",["kk",2],0,Ut),z("hmm",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),$t("a",!0),$t("A",!1),Y("hour","h"),N("hour",13),$("a",Gt),$("A",Gt),$("H",qi),$("h",qi),$("k",qi),$("HH",qi,Vi),$("hh",qi,Vi),$("kk",qi,Vi),$("hmm",Zi),$("hmmss",Ji),$("Hmm",Zi),$("Hmmss",Ji),J(["H","HH"],ho),J(["k","kk"],function(t,e,n){var i=w(t);e[ho]=24===i?0:i}),J(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),J(["h","hh"],function(t,e,n){e[ho]=w(t),f(n).bigHour=!0}),J("hmm",function(t,e,n){var i=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i)),f(n).bigHour=!0}),J("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i,2)),e[po]=w(t.substr(o)),f(n).bigHour=!0}),J("Hmm",function(t,e,n){var i=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i))}),J("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i,2)),e[po]=w(t.substr(o))});var Io,Lo=/[ap]\.?m?\.?/i,Ro=nt("Hours",!0),Yo={calendar:Li,longDateFormat:Ri,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Yi,relativeTime:Hi,months:_o,monthsShort:xo,week:So,weekdays:Mo,weekdaysMin:To,weekdaysShort:Co,meridiemParse:Lo},Ho={},Ao={},No=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fo=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jo=/Z|[+-]\d\d(?::?\d\d)?/,zo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Wo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Bo=/^\/?Date\((\-?\d+)/i,Vo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Uo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var $o=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Go=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),qo=function(){return Date.now?Date.now():+new Date},Zo=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ye("Z",":"),Ye("ZZ",""),$("Z",io),$("ZZ",io),J(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(io,t)});var Jo=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Xo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Je.fn=Ie.prototype,Je.invalid=Oe;var Ko=tn(1,"add"),tr=tn(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var er=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Hn("gggg","weekYear"),Hn("ggggg","weekYear"),Hn("GGGG","isoWeekYear"),Hn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),$("G",eo),$("g",eo),$("GG",qi,Vi),$("gg",qi,Vi),$("GGGG",Qi,$i),$("gggg",Qi,$i),$("GGGGG",Ki,Gi),$("ggggg",Ki,Gi),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=w(t)}),X(["gg","GG"],function(t,n,i,o){n[o]=e.parseTwoDigitYear(t)}),z("Q",0,"Qo","quarter"),Y("quarter","Q"),N("quarter",7),$("Q",Bi),J("Q",function(t,e){e[uo]=3*(w(t)-1)}),z("D",["DD",2],"Do","date"),Y("date","D"),N("date",9),$("D",qi),$("DD",qi,Vi),$("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),J(["D","DD"],co),J("Do",function(t,e){e[co]=w(t.match(qi)[0])});var nr=nt("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),N("dayOfYear",4),$("DDD",Xi),$("DDDD",Ui),J(["DDD","DDDD"],function(t,e,n){n._dayOfYear=w(t)}),z("m",["mm",2],0,"minute"),Y("minute","m"),N("minute",14),$("m",qi),$("mm",qi,Vi),J(["m","mm"],fo);var ir=nt("Minutes",!1);z("s",["ss",2],0,"second"),Y("second","s"),N("second",15),$("s",qi),$("ss",qi,Vi),J(["s","ss"],po);var or=nt("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),N("millisecond",16),$("S",Xi,Bi),$("SS",Xi,Vi),$("SSS",Xi,Ui);var rr;for(rr="SSSS";rr.length<=9;rr+="S")$(rr,to);for(rr="S";rr.length<=9;rr+="S")J(rr,Un);var sr=nt("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var ar=v.prototype;ar.add=Ko,ar.calendar=on,ar.clone=rn,ar.diff=hn,ar.endOf=Sn,ar.format=vn,ar.from=yn,ar.fromNow=bn,ar.to=wn,ar.toNow=_n,ar.get=rt,ar.invalidAt=Rn,ar.isAfter=sn,ar.isBefore=an,ar.isBetween=ln,ar.isSame=un,ar.isSameOrAfter=cn,ar.isSameOrBefore=dn,ar.isValid=In,ar.lang=er,ar.locale=xn,ar.localeData=Dn,ar.max=Go,ar.min=$o,ar.parsingFlags=Ln,ar.set=st,ar.startOf=kn,ar.subtract=tr,ar.toArray=En,ar.toObject=Pn,ar.toDate=Tn,ar.toISOString=mn,ar.inspect=gn,ar.toJSON=On,ar.toString=pn,ar.unix=Cn,ar.valueOf=Mn,ar.creationData=Yn,ar.year=bo,ar.isLeapYear=et,ar.weekYear=An,ar.isoWeekYear=Nn,ar.quarter=ar.quarters=Bn,ar.month=pt,ar.daysInMonth=mt,ar.week=ar.weeks=Tt,ar.isoWeek=ar.isoWeeks=Et,ar.weeksInYear=jn,ar.isoWeeksInYear=Fn,ar.date=nr,ar.day=ar.days=At,ar.weekday=Nt,ar.isoWeekday=Ft,ar.dayOfYear=Vn,ar.hour=ar.hours=Ro,ar.minute=ar.minutes=ir,ar.second=ar.seconds=or,ar.millisecond=ar.milliseconds=sr,ar.utcOffset=Fe,ar.utc=ze,ar.local=We,ar.parseZone=Be,ar.hasAlignedHourOffset=Ve,ar.isDST=Ue,ar.isLocal=Ge,ar.isUtcOffset=qe,ar.isUtc=Ze,ar.isUTC=Ze,ar.zoneAbbr=$n,ar.zoneName=Gn,ar.dates=D("dates accessor is deprecated. Use date instead.",nr),ar.months=D("months accessor is deprecated. Use month instead",pt),ar.years=D("years accessor is deprecated. Use year instead",bo),ar.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",je),ar.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$e);var lr=T.prototype;lr.calendar=E,lr.longDateFormat=P,lr.invalidDate=O,lr.ordinal=I,lr.preparse=Jn,lr.postformat=Jn,lr.relativeTime=L,lr.pastFuture=R,lr.set=M,lr.months=ut,lr.monthsShort=ct,lr.monthsParse=ht,lr.monthsRegex=vt,lr.monthsShortRegex=gt,lr.week=St,lr.firstDayOfYear=Ct,lr.firstDayOfWeek=Mt,lr.weekdays=It,lr.weekdaysMin=Rt,lr.weekdaysShort=Lt,lr.weekdaysParse=Ht,lr.weekdaysRegex=jt,lr.weekdaysShortRegex=zt,lr.weekdaysMinRegex=Wt,lr.isPM=qt,lr.meridiem=Zt,Kt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=D("moment.lang is deprecated. Use moment.locale instead.",Kt),e.langData=D("moment.langData is deprecated. Use moment.localeData instead.",ne);var ur=Math.abs,cr=mi("ms"),dr=mi("s"),hr=mi("m"),fr=mi("h"),pr=mi("d"),mr=mi("w"),gr=mi("M"),vr=mi("y"),yr=yi("milliseconds"),br=yi("seconds"),wr=yi("minutes"),_r=yi("hours"),xr=yi("days"),Dr=yi("months"),kr=yi("years"),Sr=Math.round,Mr={ss:44,s:45,m:45,h:22,d:26,M:11},Cr=Math.abs,Tr=Ie.prototype;return Tr.isValid=Pe,Tr.abs=ri,Tr.add=ai,Tr.subtract=li,Tr.as=fi,Tr.asMilliseconds=cr,Tr.asSeconds=dr,Tr.asMinutes=hr,Tr.asHours=fr,Tr.asDays=pr,Tr.asWeeks=mr,Tr.asMonths=gr,Tr.asYears=vr,Tr.valueOf=pi,Tr._bubble=ci,Tr.clone=gi,Tr.get=vi,Tr.milliseconds=yr,Tr.seconds=br,Tr.minutes=wr,Tr.hours=_r,Tr.days=xr,Tr.weeks=bi,Tr.months=Dr,Tr.years=kr,Tr.humanize=ki,Tr.toISOString=Mi,Tr.toString=Mi,Tr.toJSON=Mi,Tr.locale=xn,Tr.localeData=Dn,Tr.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mi),Tr.lang=er,z("X",0,0,"unix"),z("x",0,0,"valueOf"),$("x",eo),$("X",oo),J("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),J("x",function(t,e,n){n._d=new Date(w(t))}),e.version="2.22.2",function(t){Ci=t}(Se),e.fn=ar,e.min=Ce,e.max=Te,e.now=qo,e.utc=d,e.unix=qn,e.months=ti,e.isDate=a,e.locale=Kt,e.invalid=m,e.duration=Je,e.isMoment=y,e.weekdays=ni,e.parseZone=Zn,e.localeData=ne,e.isDuration=Le,e.monthsShort=ei,e.weekdaysMin=oi,e.defineLocale=te,e.updateLocale=ee,e.locales=ie,e.weekdaysShort=ii,e.normalizeUnits=H,e.relativeTimeRounding=xi,e.relativeTimeThreshold=Di,e.calendarFormat=nn,e.prototype=ar,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,n("3IRH")(t))},WByX:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),u(e,[{key:"getId",value:function(){return"datatable"}},{key:"init",value:function(){var t=document.querySelector(this.selector);if(null!==t){var e=t.dataset,n=e.reloadEvent;if(void 0!==n){var i=this,o=function(){i.reloadDatatable()},r=!0,s=!1,a=void 0;try{for(var l,u=n.split(" ")[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var c=l.value;document.addEventListener(c,o)}}catch(t){s=!0,a=t}finally{try{!r&&u.return&&u.return()}finally{if(s)throw a}}}}}},{key:"reloadDatatable",value:function(){var t=this.getContainer().getPlugin("timesheet-duration"),e=a()(".toolbar form");a()("section.content").append('<div class="overlay"><i class="fas fa-sync fa-spin"></i></div>');var n=a()(".toolbar form :input").filter(function(t,e){return""!=a()(e).val()}).serialize();a.a.ajax({url:e.attr("action"),type:e.attr("method"),data:n,success:function(e){a()("section.content").replaceWith(a()(e).find("section.content")),t.updateRecords()},error:function(t,n){e.submit()}})}}]),e}(l.a);e.a=c},WFwX:function(t,e){},WLoA:function(t,e,n){var i,o,r;/*!
|
||
* jQuery UI Keycode 1.12.1
|
||
* http://jqueryui.com
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license.
|
||
* http://jquery.org/license
|
||
*/
|
||
!function(s){o=[n("7t+N"),n("UZ9c")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})},YVa9:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,t),u(e,[{key:"init",value:function(){a()(".dropdown-toggle").dropdown(),a()('[data-toggle="tooltip"]').tooltip()}}]),e}(l.a);e.a=c},aGkv:function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=137)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},137:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(138);var i=n(1);i.datepickerLocale("hu","hu",{closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],dayNames:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],weekHeader:"Hét",dateFormat:"yy.mm.dd.",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),i.locale("hu",{buttonText:{month:"Hónap",week:"Hét",day:"Nap",list:"Napló"},allDayText:"Egész nap",eventLimitText:"további",noEventsMessage:"Nincs megjeleníthető események"})},138:function(t,e,n){!function(t,e){!function(t){function e(t,e,n,i){var o=t;switch(n){case"s":return i||e?"néhány másodperc":"néhány másodperce";case"ss":return o+(i||e)?" másodperc":" másodperce";case"m":return"egy"+(i||e?" perc":" perce");case"mm":return o+(i||e?" perc":" perce");case"h":return"egy"+(i||e?" óra":" órája");case"hh":return o+(i||e?" óra":" órája");case"d":return"egy"+(i||e?" nap":" napja");case"dd":return o+(i||e?" nap":" napja");case"M":return"egy"+(i||e?" hónap":" hónapja");case"MM":return o+(i||e?" hónap":" hónapja");case"y":return"egy"+(i||e?" év":" éve");case"yy":return o+(i||e?" év":" éve")}return""}function n(t){return(t?"":"[múlt] ")+"["+i[this.day()]+"] LT[-kor]"}var i="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))}()}})})},awG4:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(e){i(this,t),this._translations=e}return o(t,[{key:"get",value:function(t){return this._translations[t]}},{key:"has",value:function(t){return t in this._translations}}]),t}();e.a=r},bofE:function(t,e,n){(function(t){!function(e,n){t.exports=n()}(0,function(){"use strict";function e(){return Ci.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return ke(t,e,n,i,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(t){return null==t._pf&&(t._pf=h()),t._pf}function p(t){if(null==t._isValid){var e=f(t),n=Ti.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=d(NaN);return null!=t?c(f(e),t):f(e).userInvalidated=!0,e}function g(t,e){var n,i,o;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),Ei.length>0)for(n=0;n<Ei.length;n++)i=Ei[n],o=e[i],r(o)||(t[i]=o);return t}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Pi&&(Pi=!0,e.updateOffset(this),Pi=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=b(e)),n}function _(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&w(t[i])!==w(e[i]))&&s++;return s+r}function x(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function D(t,n){var i=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){o+="\n["+s+"] ";for(var a in arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}x(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function k(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),Oi[t]||(x(n),Oi[t]=!0)}function S(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){var e,n;for(n in t)e=t[n],S(e)?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(t,e){var n,o=c({},t);for(n in e)u(e,n)&&(i(t[n])&&i(e[n])?(o[n]={},c(o[n],t[n]),c(o[n],e[n])):null!=e[n]?o[n]=e[n]:delete o[n]);for(n in t)u(t,n)&&!u(e,n)&&i(t[n])&&(o[n]=c({},o[n]));return o}function T(t){null!=t&&this.set(t)}function E(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return S(i)?i.call(e,n):i}function P(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function O(){return this._invalidDate}function I(t){return this._ordinal.replace("%d",t)}function L(t,e,n,i){var o=this._relativeTime[n];return S(o)?o(t,e,n,i):o.replace(/%d/i,t)}function R(t,e){var n=this._relativeTime[t>0?"future":"past"];return S(n)?n(e):n.replace(/%s/i,e)}function Y(t,e){var n=t.toLowerCase();Ai[n]=Ai[n+"s"]=Ai[e]=t}function H(t){return"string"==typeof t?Ai[t]||Ai[t.toLowerCase()]:void 0}function A(t){var e,n,i={};for(n in t)u(t,n)&&(e=H(n))&&(i[e]=t[n]);return i}function N(t,e){Ni[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Ni[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function j(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function z(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(Wi[t]=o),e&&(Wi[e[0]]=function(){return j(o.apply(this,arguments),e[1],e[2])}),n&&(Wi[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,i=t.match(Fi);for(e=0,n=i.length;e<n;e++)Wi[i[e]]?i[e]=Wi[i[e]]:i[e]=W(i[e]);return function(e){var o,r="";for(o=0;o<n;o++)r+=S(i[o])?i[o].call(e,t):i[o];return r}}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),zi[e]=zi[e]||B(e),zi[e](t)):t.localeData().invalidDate()}function U(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(ji.lastIndex=0;i>=0&&ji.test(t);)t=t.replace(ji,n),ji.lastIndex=0,i-=1;return t}function $(t,e,n){so[t]=S(e)?e:function(t,i){return t&&n?n:e}}function G(t,e){return u(so,t)?so[t](e._strict,e._locale):new RegExp(q(t))}function q(t){return Z(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}))}function Z(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),s(e)&&(i=function(t,n){n[e]=w(t)}),n=0;n<t.length;n++)ao[t[n]]=i}function X(t,e){J(t,function(t,n,i,o){i._w=i._w||{},e(t,i._w,i,o)})}function Q(t,e,n){null!=e&&u(ao,t)&&ao[t](e,n._a,n,t)}function K(t){return tt(t)?366:365}function tt(t){return t%4==0&&t%100!=0||t%400==0}function et(){return tt(this.year())}function nt(t,n){return function(i){return null!=i?(ot(this,t,i),e.updateOffset(this,n),this):it(this,t)}}function it(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function ot(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function rt(t){return t=H(t),S(this[t])?this[t]():this}function st(t,e){if("object"==typeof t){t=A(t);for(var n=F(t),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit])}else if(t=H(t),S(this[t]))return this[t](e);return this}function at(t,e){return(t%e+e)%e}function lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=at(e,12);return t+=(e-n)/12,1===n?tt(t)?29:28:31-n%7%2}function ut(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||wo).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone}function ct(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[wo.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(t,e,n){var i,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?(o=yo.call(this._shortMonthsParse,s),-1!==o?o:null):(o=yo.call(this._longMonthsParse,s),-1!==o?o:null):"MMM"===e?-1!==(o=yo.call(this._shortMonthsParse,s))?o:(o=yo.call(this._longMonthsParse,s),-1!==o?o:null):-1!==(o=yo.call(this._longMonthsParse,s))?o:(o=yo.call(this._shortMonthsParse,s),-1!==o?o:null)}function ht(t,e,n){var i,o,r;if(this._monthsParseExact)return dt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function ft(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if(e=t.localeData().monthsParse(e),!s(e))return t;return n=Math.min(t.date(),lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function pt(t){return null!=t?(ft(this,t),e.updateOffset(this,!0),this):it(this,"Month")}function mt(){return lt(this.year(),this.month())}function gt(t){return this._monthsParseExact?(u(this,"_monthsRegex")||yt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Do),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(t){return this._monthsParseExact?(u(this,"_monthsRegex")||yt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ko),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function yt(){function t(t,e){return e.length-t.length}var e,n,i=[],o=[],r=[];for(e=0;e<12;e++)n=d([2e3,e]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)i[e]=Z(i[e]),o[e]=Z(o[e]);for(e=0;e<24;e++)r[e]=Z(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function bt(t,e,n,i,o,r,s){var a=new Date(t,e,n,i,o,r,s);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}function wt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function _t(t,e,n){var i=7+e-n;return-(7+wt(t,0,i).getUTCDay()-e)%7+i-1}function xt(t,e,n,i,o){var r,s,a=(7+n-i)%7,l=_t(t,i,o),u=1+7*(e-1)+a+l;return u<=0?(r=t-1,s=K(r)+u):u>K(t)?(r=t+1,s=u-K(t)):(r=t,s=u),{year:r,dayOfYear:s}}function Dt(t,e,n){var i,o,r=_t(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?(o=t.year()-1,i=s+kt(o,e,n)):s>kt(t.year(),e,n)?(i=s-kt(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function kt(t,e,n){var i=_t(t,e,n),o=_t(t+1,e,n);return(K(t)-i+o)/7}function St(t){return Dt(t,this._week.dow,this._week.doy).week}function Mt(){return this._week.dow}function Ct(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Et(t){var e=Dt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function It(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Lt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Rt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Yt(t,e,n){var i,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?(o=yo.call(this._weekdaysParse,s),-1!==o?o:null):"ddd"===e?(o=yo.call(this._shortWeekdaysParse,s),-1!==o?o:null):(o=yo.call(this._minWeekdaysParse,s),-1!==o?o:null):"dddd"===e?-1!==(o=yo.call(this._weekdaysParse,s))?o:-1!==(o=yo.call(this._shortWeekdaysParse,s))?o:(o=yo.call(this._minWeekdaysParse,s),-1!==o?o:null):"ddd"===e?-1!==(o=yo.call(this._shortWeekdaysParse,s))?o:-1!==(o=yo.call(this._weekdaysParse,s))?o:(o=yo.call(this._minWeekdaysParse,s),-1!==o?o:null):-1!==(o=yo.call(this._minWeekdaysParse,s))?o:-1!==(o=yo.call(this._weekdaysParse,s))?o:(o=yo.call(this._shortWeekdaysParse,s),-1!==o?o:null)}function Ht(t,e,n){var i,o,r;if(this._weekdaysParseExact)return Yt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function At(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,"d")):e}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ft(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function jt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Eo),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Po),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oo),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bt(){function t(t,e){return e.length-t.length}var e,n,i,o,r,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),a.push(o),l.push(r),u.push(i),u.push(o),u.push(r);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=Z(a[e]),l[e]=Z(l[e]),u[e]=Z(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Vt(){return this.hours()%12||12}function Ut(){return this.hours()||24}function $t(t,e){z(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Gt(t,e){return e._meridiemParse}function qt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Zt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Jt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,n,i,o,r=0;r<t.length;){for(o=Jt(t[r]).split("-"),e=o.length,n=Jt(t[r+1]),n=n?n.split("-"):null;e>0;){if(i=Qt(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&_(o,n,!0)>=e-1)break;e--}r++}return Io}function Qt(e){var n=null;if(!Ho[e]&&void 0!==t&&t&&t.exports)try{n=Io._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Kt(n)}catch(t){}return Ho[e]}function Kt(t,e){var n;return t&&(n=r(e)?ne(t):te(t,e),n?Io=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Io._abbr}function te(t,e){if(null!==e){var n,i=Yo;if(e.abbr=t,null!=Ho[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Ho[t]._config;else if(null!=e.parentLocale)if(null!=Ho[e.parentLocale])i=Ho[e.parentLocale]._config;else{if(null==(n=Qt(e.parentLocale)))return Ao[e.parentLocale]||(Ao[e.parentLocale]=[]),Ao[e.parentLocale].push({name:t,config:e}),null;i=n._config}return Ho[t]=new T(C(i,e)),Ao[t]&&Ao[t].forEach(function(t){te(t.name,t.config)}),Kt(t),Ho[t]}return delete Ho[t],null}function ee(t,e){if(null!=e){var n,i,o=Yo;i=Qt(t),null!=i&&(o=i._config),e=C(o,e),n=new T(e),n.parentLocale=Ho[t],Ho[t]=n,Kt(t)}else null!=Ho[t]&&(null!=Ho[t].parentLocale?Ho[t]=Ho[t].parentLocale:null!=Ho[t]&&delete Ho[t]);return Ho[t]}function ne(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Io;if(!n(t)){if(e=Qt(t))return e;t=[t]}return Xt(t)}function ie(){return Ii(Ho)}function oe(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[uo]<0||n[uo]>11?uo:n[co]<1||n[co]>lt(n[lo],n[uo])?co:n[ho]<0||n[ho]>24||24===n[ho]&&(0!==n[fo]||0!==n[po]||0!==n[mo])?ho:n[fo]<0||n[fo]>59?fo:n[po]<0||n[po]>59?po:n[mo]<0||n[mo]>999?mo:-1,f(t)._overflowDayOfYear&&(e<lo||e>co)&&(e=co),f(t)._overflowWeeks&&-1===e&&(e=go),f(t)._overflowWeekday&&-1===e&&(e=vo),f(t).overflow=e),t}function re(t,e,n){return null!=t?t:null!=e?e:n}function se(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ae(t){var e,n,i,o,r,s=[];if(!t._d){for(i=se(t),t._w&&null==t._a[co]&&null==t._a[uo]&&le(t),null!=t._dayOfYear&&(r=re(t._a[lo],i[lo]),(t._dayOfYear>K(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=wt(r,0,t._dayOfYear),t._a[uo]=n.getUTCMonth(),t._a[co]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ho]&&0===t._a[fo]&&0===t._a[po]&&0===t._a[mo]&&(t._nextDay=!0,t._a[ho]=0),t._d=(t._useUTC?wt:bt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ho]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function le(t){var e,n,i,o,r,s,a,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)r=1,s=4,n=re(e.GG,t._a[lo],Dt(Se(),1,4).year),i=re(e.W,1),((o=re(e.E,1))<1||o>7)&&(l=!0);else{r=t._locale._week.dow,s=t._locale._week.doy;var u=Dt(Se(),r,s);n=re(e.gg,t._a[lo],u.year),i=re(e.w,u.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r}i<1||i>kt(n,r,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=xt(n,i,o,r,s),t._a[lo]=a.year,t._dayOfYear=a.dayOfYear)}function ue(t){var e,n,i,o,r,s,a=t._i,l=No.exec(a)||Fo.exec(a);if(l){for(f(t).iso=!0,e=0,n=zo.length;e<n;e++)if(zo[e][1].exec(l[1])){o=zo[e][0],i=!1!==zo[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,n=Wo.length;e<n;e++)if(Wo[e][1].exec(l[3])){r=(l[2]||" ")+Wo[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!jo.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=o+(r||"")+(s||""),ve(t)}else t._isValid=!1}function ce(t,e,n,i,o,r){var s=[de(t),xo.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function de(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function he(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fe(t,e,n){if(t){if(Co.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return f(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pe(t,e,n){if(t)return Uo[t];if(e)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function me(t){var e=Vo.exec(he(t._i));if(e){var n=ce(e[4],e[3],e[2],e[5],e[6],e[7]);if(!fe(e[1],n,t))return;t._a=n,t._tzm=pe(e[8],e[9],e[10]),t._d=wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function ge(t){var n=Bo.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));ue(t),!1===t._isValid&&(delete t._isValid,me(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function ve(t){if(t._f===e.ISO_8601)return void ue(t);if(t._f===e.RFC_2822)return void me(t);t._a=[],f(t).empty=!0;var n,i,o,r,s,a=""+t._i,l=a.length,u=0;for(o=U(t._f,t._locale).match(Fi)||[],n=0;n<o.length;n++)r=o[n],i=(a.match(G(r,t))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&f(t).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),Wi[r]?(i?f(t).empty=!1:f(t).unusedTokens.push(r),Q(r,i,t)):t._strict&&!i&&f(t).unusedTokens.push(r);f(t).charsLeftOver=l-u,a.length>0&&f(t).unusedInput.push(a),t._a[ho]<=12&&!0===f(t).bigHour&&t._a[ho]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[ho]=ye(t._locale,t._a[ho],t._meridiem),ae(t),oe(t)}function ye(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function be(t){var e,n,i,o,r;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],ve(e),p(e)&&(r+=f(e).charsLeftOver,r+=10*f(e).unusedTokens.length,f(e).score=r,(null==i||r<i)&&(i=r,n=e));c(t,n||e)}function we(t){if(!t._d){var e=A(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ae(t)}}function _e(t){var e=new v(oe(xe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xe(t){var e=t._i,i=t._f;return t._locale=t._locale||ne(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(oe(e)):(a(e)?t._d=e:n(i)?be(t):i?ve(t):De(t),p(t)||(t._d=null),t))}function De(t){var o=t._i;r(o)?t._d=new Date(e.now()):a(o)?t._d=new Date(o.valueOf()):"string"==typeof o?ge(t):n(o)?(t._a=l(o.slice(0),function(t){return parseInt(t,10)}),ae(t)):i(o)?we(t):s(o)?t._d=new Date(o):e.createFromInputFallback(t)}function ke(t,e,r,s,a){var l={};return!0!==r&&!1!==r||(s=r,r=void 0),(i(t)&&o(t)||n(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=r,l._i=t,l._f=e,l._strict=s,_e(l)}function Se(t,e,n,i){return ke(t,e,n,i,!1)}function Me(t,e){var i,o;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Se();for(i=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](i)||(i=e[o]);return i}function Ce(){return Me("isBefore",[].slice.call(arguments,0))}function Te(){return Me("isAfter",[].slice.call(arguments,0))}function Ee(t){for(var e in t)if(-1===yo.call(Zo,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Zo.length;++i)if(t[Zo[i]]){if(n)return!1;parseFloat(t[Zo[i]])!==w(t[Zo[i]])&&(n=!0)}return!0}function Pe(){return this._isValid}function Oe(){return Je(NaN)}function Ie(t){var e=A(t),n=e.year||0,i=e.quarter||0,o=e.month||0,r=e.week||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=Ee(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=ne(),this._bubble()}function Le(t){return t instanceof Ie}function Re(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,e){z(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+j(~~(t/60),2)+e+j(~~t%60,2)})}function He(t,e){var n=(e||"").match(t);if(null===n)return null;var i=n[n.length-1]||[],o=(i+"").match(Jo)||["-",0,0],r=60*o[1]+w(o[2]);return 0===r?0:"+"===o[0]?r:-r}function Ae(t,n){var i,o;return n._isUTC?(i=n.clone(),o=(y(t)||a(t)?t.valueOf():Se(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),e.updateOffset(i,!1),i):Se(t).local()}function Ne(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Fe(t,n,i){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=He(io,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(o=Ne(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!n||this._changeInProgress?en(this,Je(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ne(this)}function je(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function ze(t){return this.utcOffset(0,t)}function We(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this}function Be(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(no,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ve(t){return!!this.isValid()&&(t=t?Se(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Ue(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $e(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=xe(t),t._a){var e=t._isUTC?d(t._a):Se(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ge(){return!!this.isValid()&&!this._isUTC}function qe(){return!!this.isValid()&&this._isUTC}function Ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Je(t,e){var n,i,o,r=t,a=null;return Le(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(r={},e?r[e]=t:r.milliseconds=t):(a=Xo.exec(t))?(n="-"===a[1]?-1:1,r={y:0,d:w(a[co])*n,h:w(a[ho])*n,m:w(a[fo])*n,s:w(a[po])*n,ms:w(Re(1e3*a[mo]))*n}):(a=Qo.exec(t))?(n="-"===a[1]?-1:(a[1],1),r={y:Xe(a[2],n),M:Xe(a[3],n),w:Xe(a[4],n),d:Xe(a[5],n),h:Xe(a[6],n),m:Xe(a[7],n),s:Xe(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Ke(Se(r.from),Se(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new Ie(r),Le(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Xe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ke(t,e){var n;return t.isValid()&&e.isValid()?(e=Ae(e,t),t.isBefore(e)?n=Qe(t,e):(n=Qe(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(t,e){return function(n,i){var o,r;return null===i||isNaN(+i)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),n="string"==typeof n?+n:n,o=Je(n,i),en(this,o,t),this}}function en(t,n,i,o){var r=n._milliseconds,s=Re(n._days),a=Re(n._months);t.isValid()&&(o=null==o||o,a&&ft(t,it(t,"Month")+a*i),s&&ot(t,"Date",it(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),o&&e.updateOffset(t,s||a))}function nn(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function on(t,n){var i=t||Se(),o=Ae(i,this).startOf("day"),r=e.calendarFormat(this,o)||"sameElse",s=n&&(S(n[r])?n[r].call(this,i):n[r]);return this.format(s||this.localeData().calendar(r,this,Se(i)))}function rn(){return new v(this)}function sn(t,e){var n=y(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&(e=H(r(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function an(t,e){var n=y(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&(e=H(r(e)?"millisecond":e),"millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function ln(t,e,n,i){return i=i||"()",("("===i[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))}function un(t,e){var n,i=y(t)?t:Se(t);return!(!this.isValid()||!i.isValid())&&(e=H(e||"millisecond"),"millisecond"===e?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function cn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function dn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function hn(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(i=Ae(t,this),!i.isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=H(e)){case"year":r=fn(this,i)/12;break;case"month":r=fn(this,i);break;case"quarter":r=fn(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:b(r)}function fn(t,e){var n,i,o=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(o,"months");return e-r<0?(n=t.clone().add(o-1,"months"),i=(e-r)/(r-n)):(n=t.clone().add(o+1,"months"),i=(e-r)/(n-r)),-(o+i)||0}function pn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)}function vn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=V(this,t);return this.localeData().postformat(n)}function yn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function bn(t){return this.from(Se(),t)}function wn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _n(t){return this.to(Se(),t)}function xn(t){var e;return void 0===t?this._locale._abbr:(e=ne(t),null!=e&&(this._locale=e),this)}function Dn(){return this._locale}function kn(t){switch(t=H(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function Sn(t){return void 0===(t=H(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Mn(){return this._d.valueOf()-6e4*(this._offset||0)}function Cn(){return Math.floor(this.valueOf()/1e3)}function Tn(){return new Date(this.valueOf())}function En(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Pn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function On(){return this.isValid()?this.toISOString():null}function In(){return p(this)}function Ln(){return c({},f(this))}function Rn(){return f(this).overflow}function Yn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Hn(t,e){z(0,[t,t.length],0,e)}function An(t){return zn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Nn(t){return zn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Fn(){return kt(this.year(),1,4)}function jn(){var t=this.localeData()._week;return kt(this.year(),t.dow,t.doy)}function zn(t,e,n,i,o){var r;return null==t?Dt(this,i,o).year:(r=kt(t,i,o),e>r&&(e=r),Wn.call(this,t,e,n,i,o))}function Wn(t,e,n,i,o){var r=xt(t,e,n,i,o),s=wt(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Bn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Vn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Un(t,e){e[mo]=w(1e3*("0."+t))}function $n(){return this._isUTC?"UTC":""}function Gn(){return this._isUTC?"Coordinated Universal Time":""}function qn(t){return Se(1e3*t)}function Zn(){return Se.apply(null,arguments).parseZone()}function Jn(t){return t}function Xn(t,e,n,i){var o=ne(),r=d().set(i,e);return o[n](r,t)}function Qn(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xn(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Xn(t,i,n,"month");return o}function Kn(t,e,n,i){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var o=ne(),r=t?o._week.dow:0;if(null!=n)return Xn(e,(n+r)%7,i,"day");var a,l=[];for(a=0;a<7;a++)l[a]=Xn(e,(a+r)%7,i,"day");return l}function ti(t,e){return Qn(t,e,"months")}function ei(t,e){return Qn(t,e,"monthsShort")}function ni(t,e,n){return Kn(t,e,n,"weekdays")}function ii(t,e,n){return Kn(t,e,n,"weekdaysShort")}function oi(t,e,n){return Kn(t,e,n,"weekdaysMin")}function ri(){var t=this._data;return this._milliseconds=ur(this._milliseconds),this._days=ur(this._days),this._months=ur(this._months),t.milliseconds=ur(t.milliseconds),t.seconds=ur(t.seconds),t.minutes=ur(t.minutes),t.hours=ur(t.hours),t.months=ur(t.months),t.years=ur(t.years),this}function si(t,e,n,i){var o=Je(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function ai(t,e){return si(this,t,e,1)}function li(t,e){return si(this,t,e,-1)}function ui(t){return t<0?Math.floor(t):Math.ceil(t)}function ci(){var t,e,n,i,o,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*ui(hi(a)+s),s=0,a=0),l.milliseconds=r%1e3,t=b(r/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,s+=b(n/24),o=b(di(s)),a+=o,s-=ui(hi(o)),i=b(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function di(t){return 4800*t/146097}function hi(t){return 146097*t/4800}function fi(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=H(t))||"year"===t)return e=this._days+i/864e5,n=this._months+di(e),"month"===t?n:n/12;switch(e=this._days+Math.round(hi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function mi(t){return function(){return this.as(t)}}function gi(){return Je(this)}function vi(t){return t=H(t),this.isValid()?this[t+"s"]():NaN}function yi(t){return function(){return this.isValid()?this._data[t]:NaN}}function bi(){return b(this.days()/7)}function wi(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}function _i(t,e,n){var i=Je(t).abs(),o=Sr(i.as("s")),r=Sr(i.as("m")),s=Sr(i.as("h")),a=Sr(i.as("d")),l=Sr(i.as("M")),u=Sr(i.as("y")),c=o<=Mr.ss&&["s",o]||o<Mr.s&&["ss",o]||r<=1&&["m"]||r<Mr.m&&["mm",r]||s<=1&&["h"]||s<Mr.h&&["hh",s]||a<=1&&["d"]||a<Mr.d&&["dd",a]||l<=1&&["M"]||l<Mr.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=e,c[3]=+t>0,c[4]=n,wi.apply(null,c)}function xi(t){return void 0===t?Sr:"function"==typeof t&&(Sr=t,!0)}function Di(t,e){return void 0!==Mr[t]&&(void 0===e?Mr[t]:(Mr[t]=e,"s"===t&&(Mr.ss=e-1),!0))}function ki(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=_i(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Si(t){return(t>0)-(t<0)||+t}function Mi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=Cr(this._milliseconds)/1e3,o=Cr(this._days),r=Cr(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60,n=b(r/12),r%=12;var s=n,a=r,l=o,u=e,c=t,d=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",p=Si(this._months)!==Si(h)?"-":"",m=Si(this._days)!==Si(h)?"-":"",g=Si(this._milliseconds)!==Si(h)?"-":"";return f+"P"+(s?p+s+"Y":"")+(a?p+a+"M":"")+(l?m+l+"D":"")+(u||c||d?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(d?g+d+"S":"")}var Ci,Ti;Ti=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var Ei=e.momentProperties=[],Pi=!1,Oi={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Ii;Ii=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var Li={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ri={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"},Yi=/\d{1,2}/,Hi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},Ai={},Ni={},Fi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ji=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zi={},Wi={},Bi=/\d/,Vi=/\d\d/,Ui=/\d{3}/,$i=/\d{4}/,Gi=/[+-]?\d{6}/,qi=/\d\d?/,Zi=/\d\d\d\d?/,Ji=/\d\d\d\d\d\d?/,Xi=/\d{1,3}/,Qi=/\d{1,4}/,Ki=/[+-]?\d{1,6}/,to=/\d+/,eo=/[+-]?\d+/,no=/Z|[+-]\d\d:?\d\d/gi,io=/Z|[+-]\d\d(?::?\d\d)?/gi,oo=/[+-]?\d+(\.\d{1,3})?/,ro=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,so={},ao={},lo=0,uo=1,co=2,ho=3,fo=4,po=5,mo=6,go=7,vo=8;z("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),N("year",1),$("Y",eo),$("YY",qi,Vi),$("YYYY",Qi,$i),$("YYYYY",Ki,Gi),$("YYYYYY",Ki,Gi),J(["YYYYY","YYYYYY"],lo),J("YYYY",function(t,n){n[lo]=2===t.length?e.parseTwoDigitYear(t):w(t)}),J("YY",function(t,n){n[lo]=e.parseTwoDigitYear(t)}),J("Y",function(t,e){e[lo]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return w(t)+(w(t)>68?1900:2e3)};var yo,bo=nt("FullYear",!0);yo=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),z("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),N("month",8),$("M",qi),$("MM",qi,Vi),$("MMM",function(t,e){return e.monthsShortRegex(t)}),$("MMMM",function(t,e){return e.monthsRegex(t)}),J(["M","MM"],function(t,e){e[uo]=w(t)-1}),J(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[uo]=o:f(n).invalidMonth=t});var wo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_o="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Do=ro,ko=ro;z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),N("week",5),N("isoWeek",5),$("w",qi),$("ww",qi,Vi),$("W",qi),$("WW",qi,Vi),X(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=w(t)});var So={dow:0,doy:6};z("d",0,"do","day"),z("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),z("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),z("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),$("d",qi),$("e",qi),$("E",qi),$("dd",function(t,e){return e.weekdaysMinRegex(t)}),$("ddd",function(t,e){return e.weekdaysShortRegex(t)}),$("dddd",function(t,e){return e.weekdaysRegex(t)}),X(["dd","ddd","dddd"],function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:f(n).invalidWeekday=t}),X(["d","e","E"],function(t,e,n,i){e[i]=w(t)});var Mo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Co="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),To="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Eo=ro,Po=ro,Oo=ro;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Vt),z("k",["kk",2],0,Ut),z("hmm",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),$t("a",!0),$t("A",!1),Y("hour","h"),N("hour",13),$("a",Gt),$("A",Gt),$("H",qi),$("h",qi),$("k",qi),$("HH",qi,Vi),$("hh",qi,Vi),$("kk",qi,Vi),$("hmm",Zi),$("hmmss",Ji),$("Hmm",Zi),$("Hmmss",Ji),J(["H","HH"],ho),J(["k","kk"],function(t,e,n){var i=w(t);e[ho]=24===i?0:i}),J(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),J(["h","hh"],function(t,e,n){e[ho]=w(t),f(n).bigHour=!0}),J("hmm",function(t,e,n){var i=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i)),f(n).bigHour=!0}),J("hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i,2)),e[po]=w(t.substr(o)),f(n).bigHour=!0}),J("Hmm",function(t,e,n){var i=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i))}),J("Hmmss",function(t,e,n){var i=t.length-4,o=t.length-2;e[ho]=w(t.substr(0,i)),e[fo]=w(t.substr(i,2)),e[po]=w(t.substr(o))});var Io,Lo=/[ap]\.?m?\.?/i,Ro=nt("Hours",!0),Yo={calendar:Li,longDateFormat:Ri,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Yi,relativeTime:Hi,months:_o,monthsShort:xo,week:So,weekdays:Mo,weekdaysMin:To,weekdaysShort:Co,meridiemParse:Lo},Ho={},Ao={},No=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fo=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jo=/Z|[+-]\d\d(?::?\d\d)?/,zo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Wo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Bo=/^\/?Date\((\-?\d+)/i,Vo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Uo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var $o=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Go=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),qo=function(){return Date.now?Date.now():+new Date},Zo=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ye("Z",":"),Ye("ZZ",""),$("Z",io),$("ZZ",io),J(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(io,t)});var Jo=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Xo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Je.fn=Ie.prototype,Je.invalid=Oe;var Ko=tn(1,"add"),tr=tn(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var er=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Hn("gggg","weekYear"),Hn("ggggg","weekYear"),Hn("GGGG","isoWeekYear"),Hn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),$("G",eo),$("g",eo),$("GG",qi,Vi),$("gg",qi,Vi),$("GGGG",Qi,$i),$("gggg",Qi,$i),$("GGGGG",Ki,Gi),$("ggggg",Ki,Gi),X(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=w(t)}),X(["gg","GG"],function(t,n,i,o){n[o]=e.parseTwoDigitYear(t)}),z("Q",0,"Qo","quarter"),Y("quarter","Q"),N("quarter",7),$("Q",Bi),J("Q",function(t,e){e[uo]=3*(w(t)-1)}),z("D",["DD",2],"Do","date"),Y("date","D"),N("date",9),$("D",qi),$("DD",qi,Vi),$("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),J(["D","DD"],co),J("Do",function(t,e){e[co]=w(t.match(qi)[0])});var nr=nt("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),N("dayOfYear",4),$("DDD",Xi),$("DDDD",Ui),J(["DDD","DDDD"],function(t,e,n){n._dayOfYear=w(t)}),z("m",["mm",2],0,"minute"),Y("minute","m"),N("minute",14),$("m",qi),$("mm",qi,Vi),J(["m","mm"],fo);var ir=nt("Minutes",!1);z("s",["ss",2],0,"second"),Y("second","s"),N("second",15),$("s",qi),$("ss",qi,Vi),J(["s","ss"],po);var or=nt("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),N("millisecond",16),$("S",Xi,Bi),$("SS",Xi,Vi),$("SSS",Xi,Ui);var rr;for(rr="SSSS";rr.length<=9;rr+="S")$(rr,to);for(rr="S";rr.length<=9;rr+="S")J(rr,Un);var sr=nt("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var ar=v.prototype;ar.add=Ko,ar.calendar=on,ar.clone=rn,ar.diff=hn,ar.endOf=Sn,ar.format=vn,ar.from=yn,ar.fromNow=bn,ar.to=wn,ar.toNow=_n,ar.get=rt,ar.invalidAt=Rn,ar.isAfter=sn,ar.isBefore=an,ar.isBetween=ln,ar.isSame=un,ar.isSameOrAfter=cn,ar.isSameOrBefore=dn,ar.isValid=In,ar.lang=er,ar.locale=xn,ar.localeData=Dn,ar.max=Go,ar.min=$o,ar.parsingFlags=Ln,ar.set=st,ar.startOf=kn,ar.subtract=tr,ar.toArray=En,ar.toObject=Pn,ar.toDate=Tn,ar.toISOString=mn,ar.inspect=gn,ar.toJSON=On,ar.toString=pn,ar.unix=Cn,ar.valueOf=Mn,ar.creationData=Yn,ar.year=bo,ar.isLeapYear=et,ar.weekYear=An,ar.isoWeekYear=Nn,ar.quarter=ar.quarters=Bn,ar.month=pt,ar.daysInMonth=mt,ar.week=ar.weeks=Tt,ar.isoWeek=ar.isoWeeks=Et,ar.weeksInYear=jn,ar.isoWeeksInYear=Fn,ar.date=nr,ar.day=ar.days=At,ar.weekday=Nt,ar.isoWeekday=Ft,ar.dayOfYear=Vn,ar.hour=ar.hours=Ro,ar.minute=ar.minutes=ir,ar.second=ar.seconds=or,ar.millisecond=ar.milliseconds=sr,ar.utcOffset=Fe,ar.utc=ze,ar.local=We,ar.parseZone=Be,ar.hasAlignedHourOffset=Ve,ar.isDST=Ue,ar.isLocal=Ge,ar.isUtcOffset=qe,ar.isUtc=Ze,ar.isUTC=Ze,ar.zoneAbbr=$n,ar.zoneName=Gn,ar.dates=D("dates accessor is deprecated. Use date instead.",nr),ar.months=D("months accessor is deprecated. Use month instead",pt),ar.years=D("years accessor is deprecated. Use year instead",bo),ar.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",je),ar.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$e);var lr=T.prototype;lr.calendar=E,lr.longDateFormat=P,lr.invalidDate=O,lr.ordinal=I,lr.preparse=Jn,lr.postformat=Jn,lr.relativeTime=L,lr.pastFuture=R,lr.set=M,lr.months=ut,lr.monthsShort=ct,lr.monthsParse=ht,lr.monthsRegex=vt,lr.monthsShortRegex=gt,lr.week=St,lr.firstDayOfYear=Ct,lr.firstDayOfWeek=Mt,lr.weekdays=It,lr.weekdaysMin=Rt,lr.weekdaysShort=Lt,lr.weekdaysParse=Ht,lr.weekdaysRegex=jt,lr.weekdaysShortRegex=zt,lr.weekdaysMinRegex=Wt,lr.isPM=qt,lr.meridiem=Zt,Kt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=D("moment.lang is deprecated. Use moment.locale instead.",Kt),e.langData=D("moment.langData is deprecated. Use moment.localeData instead.",ne);var ur=Math.abs,cr=mi("ms"),dr=mi("s"),hr=mi("m"),fr=mi("h"),pr=mi("d"),mr=mi("w"),gr=mi("M"),vr=mi("y"),yr=yi("milliseconds"),br=yi("seconds"),wr=yi("minutes"),_r=yi("hours"),xr=yi("days"),Dr=yi("months"),kr=yi("years"),Sr=Math.round,Mr={ss:44,s:45,m:45,h:22,d:26,M:11},Cr=Math.abs,Tr=Ie.prototype;return Tr.isValid=Pe,Tr.abs=ri,Tr.add=ai,Tr.subtract=li,Tr.as=fi,Tr.asMilliseconds=cr,Tr.asSeconds=dr,Tr.asMinutes=hr,Tr.asHours=fr,Tr.asDays=pr,Tr.asWeeks=mr,Tr.asMonths=gr,Tr.asYears=vr,Tr.valueOf=pi,Tr._bubble=ci,Tr.clone=gi,Tr.get=vi,Tr.milliseconds=yr,Tr.seconds=br,Tr.minutes=wr,Tr.hours=_r,Tr.days=xr,Tr.weeks=bi,Tr.months=Dr,Tr.years=kr,Tr.humanize=ki,Tr.toISOString=Mi,Tr.toString=Mi,Tr.toJSON=Mi,Tr.locale=xn,Tr.localeData=Dn,Tr.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mi),Tr.lang=er,z("X",0,0,"unix"),z("x",0,0,"valueOf"),$("x",eo),$("X",oo),J("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),J("x",function(t,e,n){n._d=new Date(w(t))}),e.version="2.22.2",function(t){Ci=t}(Se),e.fn=ar,e.min=Ce,e.max=Te,e.now=qo,e.utc=d,e.unix=qn,e.months=ti,e.isDate=a,e.locale=Kt,e.invalid=m,e.duration=Je,e.isMoment=y,e.weekdays=ni,e.parseZone=Zn,e.localeData=ne,e.isDuration=Le,e.monthsShort=ei,e.weekdaysMin=oi,e.defineLocale=te,e.updateLocale=ee,e.locales=ie,e.weekdaysShort=ii,e.normalizeUnits=H,e.relativeTimeRounding=xi,e.relativeTimeThreshold=Di,e.calendarFormat=nn,e.prototype=ar,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,n("3IRH")(t))},bsvz:function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=145)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},145:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(146);var i=n(1);i.datepickerLocale("ja","ja",{closeText:"閉じる",prevText:"<前",nextText:"次>",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),i.locale("ja",{buttonText:{month:"月",week:"週",day:"日",list:"予定リスト"},allDayText:"終日",eventLimitText:function(t){return"他 "+t+" 件"},noEventsMessage:"イベントが表示されないように"})},146:function(t,e,n){!function(t,e){!function(t){t.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(0))}()}})})},c0dd:function(t,e,n){(function(t){var e=n("7t+N");t.$=t.jQuery=e,n("jf49"),n("DBzq"),n("tNVI");var i=n("PJh5");t.moment=i,n("DOkx"),n("FKXc"),n("tzHd"),n("LT9G"),n("ulq9"),n("3MVc"),n("xne+"),n("AoDM"),n("Fpqq"),n("ORgI"),n("PL/P"),n("WFwX"),n("R6CI"),n("iES9"),n("FDd9"),t.$.AdminLTE={},t.$.AdminLTE.options={},n("Dehm"),n("l77c"),n("nyna"),n("olwm"),n("GOEF"),n("5pSg"),n("mEMJ"),n("x/W5"),n("oWa1"),n("6/V7"),n("nDZU"),n("aGkv"),n("UGgp"),n("tqWD"),n("bsvz"),n("AixB"),n("1QPC"),n("95j/"),n("EmE7"),n("mN5h"),n("qqAM")}).call(e,n("DuR2"))},ddt0:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("4klR"),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,t),a(e,[{key:"getId",value:function(){return"event"}},{key:"trigger",value:function(t){if(null!==t&&void 0!==t){var e=!0,n=!1,i=void 0;try{for(var o,r=t.split(" ")[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){var s=o.value;document.dispatchEvent(new Event(s))}}catch(t){n=!0,i=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw i}}}}}]),e}(s.a);e.a=l},e7x4:function(t,e,n){/*!
|
||
* sweetalert2 v8.10.2
|
||
* Released under the MIT License.
|
||
*/
|
||
!function(e,n){t.exports=n()}(0,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function u(t,e,n){return u=l()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=Function.bind.apply(t,i),r=new o;return n&&a(r,n.prototype),r},u.apply(null,arguments)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?c(t):e}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=h(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return gt(t,at[e]);case"checkbox":return t.querySelector(".".concat(at.checkbox," input"));case"radio":return t.querySelector(".".concat(at.radio," input:checked"))||t.querySelector(".".concat(at.radio," input:first-child"));case"range":return t.querySelector(".".concat(at.range," input"));default:return gt(t,at.input)}}function m(t,e,n){pt([t,e],at.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor);var i=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=i,t.style.borderRightColor=i}function g(t,e,n){wt(t,n["showC"+e.substring(1)+"Button"],"inline-block"),t.innerHTML=n[e+"ButtonText"],t.setAttribute("aria-label",n[e+"ButtonAriaLabel"]),t.className=at[e],dt(t,n.customClass,e+"Button"),pt(t,n[e+"ButtonClass"])}function v(t,e){"string"==typeof e?t.style.background=e:e||pt([document.documentElement,document.body],at["no-backdrop"])}function y(t,e){e in at?pt(t,at[e]):(X('The "position" parameter is not valid, defaulting to "center"'),pt(t,at.center))}function b(t,e){if(e&&"string"==typeof e){var n="grow-"+e;n in at&&pt(t,at[n])}}function w(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return u(t,n)}function _(t){return function(n){function a(){return e(this,a),d(this,s(a).apply(this,arguments))}return r(a,n),i(a,[{key:"_main",value:function(e){return f(s(a.prototype),"_main",this).call(this,o({},t,e))}}]),a}(this)}function x(){var t=se.innerParams.get(this),e=se.domCache.get(this);t.showConfirmButton||(bt(e.confirmButton),t.showCancelButton||bt(e.actions)),mt([e.popup,e.actions],at.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.cancelButton.disabled=!1}function D(t){var e=se.innerParams.get(t||this);return p(se.domCache.get(t||this).content,e.input)}function k(t,e){Bt()?vn(e):(Fe().then(function(){return vn(e)}),Ae.keydownTarget.removeEventListener("keydown",Ae.keydownHandler,{capture:Ae.keydownListenerCapture}),Ae.keydownHandlerAdded=!1),delete Ae.keydownHandler,delete Ae.keydownTarget,t.parentNode&&t.parentNode.removeChild(t),S(),Wt()&&(sn(),ln(),hn(),pn())}function S(){mt([document.documentElement,document.body],[at.shown,at["height-auto"],at["no-backdrop"],at["toast-shown"],at["toast-column"]])}function M(t,e,n){t.removeEventListener(ne,M),ct(t,at.hide)&&k(e,n),gn(se),gn(mn)}function C(t){var e=kt(),n=Ct(),i=se.innerParams.get(this),o=mn.swalPromiseResolve.get(this),r=i.onClose,s=i.onAfterClose;n&&!ct(n,at.hide)&&(null!==r&&"function"==typeof r&&r(n),mt(n,at.show),pt(n,at.hide),ne&&xt(n)?n.addEventListener(ne,M.bind(null,n,e,s)):k(e,s),o(t||{}),delete this.params)}function T(t,e,n){var i=se.domCache.get(t);e.forEach(function(t){i[t].disabled=n})}function E(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode,i=n.querySelectorAll("input"),o=0;o<i.length;o++)i[o].disabled=e;else t.disabled=e}function P(){T(this,["confirmButton","cancelButton"],!1)}function O(){T(this,["confirmButton","cancelButton"],!0)}function I(){et("Swal.disableConfirmButton()","Swal.getConfirmButton().removeAttribute('disabled')"),T(this,["confirmButton"],!1)}function L(){et("Swal.enableConfirmButton()","Swal.getConfirmButton().setAttribute('disabled', '')"),T(this,["confirmButton"],!0)}function R(){return E(this.getInput(),!1)}function Y(){return E(this.getInput(),!0)}function H(t){var e=se.domCache.get(this);e.validationMessage.innerHTML=t;var n=window.getComputedStyle(e.popup);e.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),e.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),yt(e.validationMessage);var i=this.getInput();i&&(i.setAttribute("aria-invalid",!0),i.setAttribute("aria-describedBy",at["validation-message"]),ht(i),pt(i,at.inputerror))}function A(){var t=se.domCache.get(this);t.validationMessage&&bt(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),mt(e,at.inputerror))}function N(){return et("Swal.getProgressSteps()","const swalInstance = Swal.fire({progressSteps: ['1', '2', '3']}); const progressSteps = swalInstance.params.progressSteps"),se.innerParams.get(this).progressSteps}function F(t){et("Swal.setProgressSteps()","Swal.update()");var e=se.innerParams.get(this),n=o({},e,{progressSteps:t});De(this,n),se.innerParams.set(this,n)}function j(){var t=se.domCache.get(this);yt(t.progressSteps)}function z(){var t=se.domCache.get(this);bt(t.progressSteps)}function W(t){t.inputValidator||Object.keys(bn).forEach(function(e){t.input===e&&(t.inputValidator=bn[e])}),t.showLoaderOnConfirm&&!t.preConfirm&&X("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=nt(t.animation),(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(X('Target parameter is not valid, defaulting to "body"'),t.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />"));var e=Ct(),n="string"==typeof t.target?document.querySelector(t.target):t.target;(!e||e&&n&&e.parentNode!==n.parentNode)&&Kt(t)}function B(t,e){t.removeEventListener(ne,B),e.style.overflowY="auto"}function V(t){var e=this;nn(t);var n=o({},$e,t);W(n),Object.freeze(n),Ae.timeout&&(Ae.timeout.stop(),delete Ae.timeout),clearTimeout(Ae.restoreFocusTimeout);var i={popup:Ct(),container:kt(),content:Ot(),actions:At(),confirmButton:Yt(),cancelButton:Ht(),closeButton:jt(),validationMessage:Rt(),progressSteps:Lt()};se.domCache.set(this,i),Ce(this,n),se.innerParams.set(this,n);var r=this.constructor;return new Promise(function(t){var o=function(t){e.closePopup({value:t})},s=function(t){e.closePopup({dismiss:t})};mn.swalPromiseResolve.set(e,t),n.timer&&(Ae.timeout=new yn(function(){s("timer"),delete Ae.timeout},n.timer));var a=function(){var t=e.getInput();if(!t)return null;switch(n.input){case"checkbox":return t.checked?1:0;case"radio":return t.checked?t.value:null;case"file":return t.files.length?t.files[0]:null;default:return n.inputAutoTrim?t.value.trim():t.value}};n.input&&setTimeout(function(){var t=e.getInput();t&&ht(t)},0);for(var l=function(t){if(n.showLoaderOnConfirm&&r.showLoading(),n.preConfirm){e.resetValidationMessage();Promise.resolve().then(function(){return n.preConfirm(t,n.validationMessage)}).then(function(n){_t(i.validationMessage)||!1===n?e.hideLoading():o(void 0===n?t:n)})}else o(t)},u=function(t){var o=t.target,u=i.confirmButton,c=i.cancelButton,d=u&&(u===o||u.contains(o)),h=c&&(c===o||c.contains(o));switch(t.type){case"click":if(d)if(e.disableButtons(),n.input){var f=a();if(n.inputValidator){e.disableInput();var p=Promise.resolve().then(function(){return n.inputValidator(f,n.validationMessage)});p.then(function(t){e.enableButtons(),e.enableInput(),t?e.showValidationMessage(t):l(f)})}else e.getInput().checkValidity()?l(f):(e.enableButtons(),e.showValidationMessage(n.validationMessage))}else l(!0);else h&&(e.disableButtons(),s(r.DismissReason.cancel))}},c=i.popup.querySelectorAll("button"),d=0;d<c.length;d++)c[d].onclick=u,c[d].onmouseover=u,c[d].onmouseout=u,c[d].onmousedown=u;if(i.closeButton.onclick=function(){s(r.DismissReason.close)},n.toast)i.popup.onclick=function(){n.showConfirmButton||n.showCancelButton||n.showCloseButton||n.input||s(r.DismissReason.close)};else{var h=!1;i.popup.onmousedown=function(){i.container.onmouseup=function(t){i.container.onmouseup=void 0,t.target===i.container&&(h=!0)}},i.container.onmousedown=function(){i.popup.onmouseup=function(t){i.popup.onmouseup=void 0,(t.target===i.popup||i.popup.contains(t.target))&&(h=!0)}},i.container.onclick=function(t){if(h)return void(h=!1);t.target===i.container&&nt(n.allowOutsideClick)&&s(r.DismissReason.backdrop)}}n.reverseButtons?i.confirmButton.parentNode.insertBefore(i.cancelButton,i.confirmButton):i.confirmButton.parentNode.insertBefore(i.confirmButton,i.cancelButton);var f=function(t,e){for(var o=zt(n.focusCancel),r=0;r<o.length;r++)return t+=e,t===o.length?t=0:-1===t&&(t=o.length-1),o[t].focus();i.popup.focus()},p=function(t,n){n.stopKeydownPropagation&&t.stopPropagation();var o=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"];if("Enter"!==t.key||t.isComposing)if("Tab"===t.key){for(var a=t.target,l=zt(n.focusCancel),u=-1,c=0;c<l.length;c++)if(a===l[c]){u=c;break}t.shiftKey?f(u,-1):f(u,1),t.stopPropagation(),t.preventDefault()}else-1!==o.indexOf(t.key)?document.activeElement===i.confirmButton&&_t(i.cancelButton)?i.cancelButton.focus():document.activeElement===i.cancelButton&&_t(i.confirmButton)&&i.confirmButton.focus():"Escape"!==t.key&&"Esc"!==t.key||!0!==nt(n.allowEscapeKey)||(t.preventDefault(),s(r.DismissReason.esc));else if(t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;r.clickConfirm(),t.preventDefault()}};Ae.keydownTarget&&Ae.keydownHandlerAdded&&(Ae.keydownTarget.removeEventListener("keydown",Ae.keydownHandler,{capture:Ae.keydownListenerCapture}),Ae.keydownHandlerAdded=!1),n.toast||(Ae.keydownHandler=function(t){return p(t,n)},Ae.keydownTarget=n.keydownListenerCapture?window:i.popup,Ae.keydownListenerCapture=n.keydownListenerCapture,Ae.keydownTarget.addEventListener("keydown",Ae.keydownHandler,{capture:Ae.keydownListenerCapture}),Ae.keydownHandlerAdded=!0),e.enableButtons(),e.hideLoading(),e.resetValidationMessage(),n.toast&&(n.input||n.footer||n.showCloseButton)?pt(document.body,at["toast-column"]):mt(document.body,at["toast-column"]),"select"===n.input||"radio"===n.input?xn(e,n):-1!==["text","email","number","tel","textarea"].indexOf(n.input)&&it(n.inputValue)&&Dn(e,n),wn(n),n.toast||(nt(n.allowEnterKey)?n.focusCancel&&_t(i.cancelButton)?i.cancelButton.focus():n.focusConfirm&&_t(i.confirmButton)?i.confirmButton.focus():f(-1,1):document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()),i.container.scrollTop=0})}function U(t){var e={};Object.keys(t).forEach(function(n){Cn.isUpdatableParameter(n)?e[n]=t[n]:X('Invalid parameter to update: "'.concat(n,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))});var n=se.innerParams.get(this),i=o({},n,e);Ce(this,i),se.innerParams.set(this,i),Object.defineProperties(this,{params:{value:o({},this.params,t),writable:!1,enumerable:!0}})}function $(){if("undefined"!=typeof window){"undefined"==typeof Promise&&Q("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),fe=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:i,writable:!1,enumerable:!0,configurable:!0}});var o=this._main(this.params);se.promise.set(this,o)}}var G,q=function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e},Z=function(t){return Object.keys(t).map(function(e){return t[e]})},J=function(t){return Array.prototype.slice.call(t)},X=function(t){console.warn("".concat("SweetAlert2:"," ").concat(t))},Q=function(t){console.error("".concat("SweetAlert2:"," ").concat(t))},K=[],tt=function(t){-1===K.indexOf(t)&&(K.push(t),X(t))},et=function(t,e){tt('"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'))},nt=function(t){return"function"==typeof t?t():t},it=function(t){return t&&Promise.resolve(t)===t},ot=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),rt=function(e){var n={};switch(t(e[0])){case"object":o(n,e[0]);break;default:["title","html","type"].forEach(function(i,o){switch(t(e[o])){case"string":n[i]=e[o];break;case"undefined":break;default:Q("Unexpected type of ".concat(i,'! Expected "string", got ').concat(t(e[o])))}})}return n},st=function(t){var e={};for(var n in t)e[t[n]]="swal2-"+t[n];return e},at=st(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl"]),lt=st(["success","warning","info","question","error"]),ut={previousBodyPadding:null},ct=function(t,e){return t.classList.contains(e)},dt=function(t,e,n){J(t.classList).forEach(function(e){-1===Z(at).indexOf(e)&&-1===Z(lt).indexOf(e)&&t.classList.remove(e)}),e&&e[n]&&pt(t,e[n])},ht=function(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}},ft=function(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(function(e){t.forEach?t.forEach(function(t){n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))},pt=function(t,e){ft(t,e,!0)},mt=function(t,e){ft(t,e,!1)},gt=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(ct(t.childNodes[n],e))return t.childNodes[n]},vt=function(t,e,n){n||0===parseInt(n)?t.style[e]="number"==typeof n?n+"px":n:t.style.removeProperty(e)},yt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},bt=function(t){t.style.opacity="",t.style.display="none"},wt=function(t,e,n){e?yt(t,n):bt(t)},_t=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},xt=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||i>0},Dt=function(t,e){if("function"==typeof t.contains)return t.contains(e)},kt=function(){return document.body.querySelector("."+at.container)},St=function(t){var e=kt();return e?e.querySelector(t):null},Mt=function(t){return St("."+t)},Ct=function(){return Mt(at.popup)},Tt=function(){var t=Ct();return J(t.querySelectorAll("."+at.icon))},Et=function(){var t=Tt().filter(function(t){return _t(t)});return t.length?t[0]:null},Pt=function(){return Mt(at.title)},Ot=function(){return Mt(at.content)},It=function(){return Mt(at.image)},Lt=function(){return Mt(at["progress-steps"])},Rt=function(){return Mt(at["validation-message"])},Yt=function(){return St("."+at.actions+" ."+at.confirm)},Ht=function(){return St("."+at.actions+" ."+at.cancel)},At=function(){return Mt(at.actions)},Nt=function(){return Mt(at.header)},Ft=function(){return Mt(at.footer)},jt=function(){return Mt(at.close)},zt=function(){var t=J(Ct().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){return t=parseInt(t.getAttribute("tabindex")),e=parseInt(e.getAttribute("tabindex")),t>e?1:t<e?-1:0}),e=J(Ct().querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]')).filter(function(t){return"-1"!==t.getAttribute("tabindex")});return q(t.concat(e)).filter(function(t){return _t(t)})},Wt=function(){return!Bt()&&!document.body.classList.contains(at["no-backdrop"])},Bt=function(){return document.body.classList.contains(at["toast-shown"])},Vt=function(){return Ct().hasAttribute("data-loading")},Ut=function(){return"undefined"==typeof window||"undefined"==typeof document},$t='\n <div aria-labelledby="'.concat(at.title,'" aria-describedby="').concat(at.content,'" class="').concat(at.popup,'" tabindex="-1">\n <div class="').concat(at.header,'">\n <ul class="').concat(at["progress-steps"],'"></ul>\n <div class="').concat(at.icon," ").concat(lt.error,'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="').concat(at.icon," ").concat(lt.question,'"></div>\n <div class="').concat(at.icon," ").concat(lt.warning,'"></div>\n <div class="').concat(at.icon," ").concat(lt.info,'"></div>\n <div class="').concat(at.icon," ").concat(lt.success,'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="').concat(at.image,'" />\n <h2 class="').concat(at.title,'" id="').concat(at.title,'"></h2>\n <button type="button" class="').concat(at.close,'">×</button>\n </div>\n <div class="').concat(at.content,'">\n <div id="').concat(at.content,'"></div>\n <input class="').concat(at.input,'" />\n <input type="file" class="').concat(at.file,'" />\n <div class="').concat(at.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(at.select,'"></select>\n <div class="').concat(at.radio,'"></div>\n <label for="').concat(at.checkbox,'" class="').concat(at.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(at.label,'"></span>\n </label>\n <textarea class="').concat(at.textarea,'"></textarea>\n <div class="').concat(at["validation-message"],'" id="').concat(at["validation-message"],'"></div>\n </div>\n <div class="').concat(at.actions,'">\n <button type="button" class="').concat(at.confirm,'">OK</button>\n <button type="button" class="').concat(at.cancel,'">Cancel</button>\n </div>\n <div class="').concat(at.footer,'">\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Gt=function(){var t=kt();t&&(t.parentNode.removeChild(t),mt([document.documentElement,document.body],[at["no-backdrop"],at["toast-shown"],at["has-column"]]))},qt=function(t){Cn.isVisible()&&G!==t.target.value&&Cn.resetValidationMessage(),G=t.target.value},Zt=function(){var t=Ot(),e=gt(t,at.input),n=gt(t,at.file),i=t.querySelector(".".concat(at.range," input")),o=t.querySelector(".".concat(at.range," output")),r=gt(t,at.select),s=t.querySelector(".".concat(at.checkbox," input")),a=gt(t,at.textarea);e.oninput=qt,n.onchange=qt,r.onchange=qt,s.onchange=qt,a.oninput=qt,i.oninput=function(t){qt(t),o.value=i.value},i.onchange=function(t){qt(t),i.nextSibling.value=i.value}},Jt=function(t){return"string"==typeof t?document.querySelector(t):t},Xt=function(t){var e=Ct();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Qt=function(t){"rtl"===window.getComputedStyle(t).direction&&pt(kt(),at.rtl)},Kt=function(t){if(Gt(),Ut())return void Q("SweetAlert2 requires document to initialize");var e=document.createElement("div");e.className=at.container,e.innerHTML=$t;var n=Jt(t.target);n.appendChild(e),Xt(t),Qt(n),Zt()},te=function(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?ee(n,e):e&&(n.innerHTML=e)},ee=function(t,e){if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},ne=function(){if(Ut())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(e.hasOwnProperty(n)&&void 0!==t.style[n])return e[n];return!1}(),ie=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var t=document.createElement("div");t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},oe=function(t,e){var n=At(),i=Yt(),o=Ht();e.showConfirmButton||e.showCancelButton?yt(n):bt(n),dt(n,e.customClass,"actions"),g(i,"confirm",e),g(o,"cancel",e),e.buttonsStyling?m(i,o,e):(mt([i,o],at.styled),i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor="",o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor="")},re=function(t,e){var n=kt();n&&(v(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&X('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),y(n,e.position),b(n,e.grow),dt(n,e.customClass,"container"),e.customContainerClass&&pt(n,e.customContainerClass))},se={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},ae=function(t,e){for(var n=se.innerParams.get(t),i=!n||e.input!==n.input,o=Ot(),r=["input","file","range","select","radio","checkbox","textarea"],s=0;s<r.length;s++){var a=at[r[s]],l=gt(o,a);ue(r[s],e.inputAttributes),ce(l,a,e),i&&bt(l)}if(e.input){if(!he[e.input])return Q('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));if(i){var u=he[e.input](e);yt(u)}}},le=function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}},ue=function(t,e){var n=p(Ot(),t);if(n){le(n);for(var i in e)"range"===t&&"placeholder"===i||n.setAttribute(i,e[i])}},ce=function(t,e,n){t.className=e,n.inputClass&&pt(t,n.inputClass),n.customClass&&pt(t,n.customClass.input)},de=function(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},he={};he.text=he.email=he.password=he.number=he.tel=he.url=function(e){var n=gt(Ot(),at.input);return"string"==typeof e.inputValue||"number"==typeof e.inputValue?n.value=e.inputValue:it(e.inputValue)||X('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(e.inputValue),'"')),de(n,e),n.type=e.input,n},he.file=function(t){var e=gt(Ot(),at.file);return de(e,t),e.type=t.input,e},he.range=function(t){var e=gt(Ot(),at.range),n=e.querySelector("input"),i=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,i.value=t.inputValue,e},he.select=function(t){var e=gt(Ot(),at.select);if(e.innerHTML="",t.inputPlaceholder){var n=document.createElement("option");n.innerHTML=t.inputPlaceholder,n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return e},he.radio=function(){var t=gt(Ot(),at.radio);return t.innerHTML="",t},he.checkbox=function(t){var e=gt(Ot(),at.checkbox),n=p(Ot(),"checkbox");return n.type="checkbox",n.value=1,n.id=at.checkbox,n.checked=Boolean(t.inputValue),e.querySelector("span").innerHTML=t.inputPlaceholder,e},he.textarea=function(t){var e=gt(Ot(),at.textarea);return e.value=t.inputValue,de(e,t),e};var fe,pe=function(t,e){var n=Ot().querySelector("#"+at.content);e.html?(te(e.html,n),yt(n,"block")):e.text?(n.textContent=e.text,yt(n,"block")):bt(n),ae(t,e),dt(Ot(),e.customClass,"content")},me=function(t,e){var n=Ft();wt(n,e.footer),e.footer&&te(e.footer,n),dt(n,e.customClass,"footer")},ge=function(t,e){var n=jt();dt(n,e.customClass,"closeButton"),wt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},ve=function(t,e){var n=se.innerParams.get(t);if(n&&e.type===n.type&&Et())return void dt(Et(),e.customClass,"icon");if(ye(),e.type)if(be(),-1!==Object.keys(lt).indexOf(e.type)){var i=St(".".concat(at.icon,".").concat(lt[e.type]));yt(i),dt(i,e.customClass,"icon"),ft(i,"swal2-animate-".concat(e.type,"-icon"),e.animation)}else Q('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type,'"'))},ye=function(){for(var t=Tt(),e=0;e<t.length;e++)bt(t[e])},be=function(){for(var t=Ct(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),i=0;i<n.length;i++)n[i].style.backgroundColor=e},we=function(t,e){var n=It();if(!e.imageUrl)return bt(n);yt(n),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),vt(n,"width",e.imageWidth),vt(n,"height",e.imageHeight),n.className=at.image,dt(n,e.customClass,"image"),e.imageClass&&pt(n,e.imageClass)},_e=function(t){var e=document.createElement("li");return pt(e,at["progress-step"]),e.innerHTML=t,e},xe=function(t){var e=document.createElement("li");return pt(e,at["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},De=function(t,e){var n=Lt();if(!e.progressSteps||0===e.progressSteps.length)return bt(n);yt(n),n.innerHTML="";var i=parseInt(null===e.currentProgressStep?Cn.getQueueStep():e.currentProgressStep);i>=e.progressSteps.length&&X("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(function(t,o){var r=_e(t);if(n.appendChild(r),o===i&&pt(r,at["active-progress-step"]),o!==e.progressSteps.length-1){var s=xe(t);n.appendChild(s)}})},ke=function(t,e){var n=Pt();wt(n,e.title||e.titleText),e.title&&te(e.title,n),e.titleText&&(n.innerText=e.titleText),dt(n,e.customClass,"title")},Se=function(t,e){var n=Nt();dt(n,e.customClass,"header"),De(t,e),ve(t,e),we(0,e),ke(0,e),ge(0,e)},Me=function(t,e){var n=Ct();vt(n,"width",e.width),vt(n,"padding",e.padding),e.background&&(n.style.background=e.background),n.className=at.popup,e.toast?(pt([document.documentElement,document.body],at["toast-shown"]),pt(n,at.toast)):pt(n,at.modal),dt(n,e.customClass,"popup"),"string"==typeof e.customClass&&pt(n,e.customClass),ft(n,at.noanimation,!e.animation)},Ce=function(t,e){Me(0,e),re(0,e),Se(t,e),pe(t,e),oe(0,e),me(0,e)},Te=function(){return _t(Ct())},Ee=function(){return Yt()&&Yt().click()},Pe=function(){return Ht()&&Ht().click()},Oe=[],Ie=function(t){var e=this;Oe=t;var n=function(t,e){Oe=[],document.body.removeAttribute("data-swal2-queue-step"),t(e)},i=[];return new Promise(function(t){!function o(r,s){r<Oe.length?(document.body.setAttribute("data-swal2-queue-step",r),e.fire(Oe[r]).then(function(e){void 0!==e.value?(i.push(e.value),o(r+1,s)):n(t,{dismiss:e.dismiss})})):n(t,{value:i})}(0)})},Le=function(){return document.body.getAttribute("data-swal2-queue-step")},Re=function(t,e){return e&&e<Oe.length?Oe.splice(e,0,t):Oe.push(t)},Ye=function(t){void 0!==Oe[t]&&Oe.splice(t,1)},He=function(){var t=Ct();t||Cn.fire(""),t=Ct();var e=At(),n=Yt(),i=Ht();yt(e),yt(n),pt([t,e],at.loading),n.disabled=!0,i.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Ae={},Ne=function(){Ae.previousActiveElement&&Ae.previousActiveElement.focus?(Ae.previousActiveElement.focus(),Ae.previousActiveElement=null):document.body&&document.body.focus()},Fe=function(){return new Promise(function(t){var e=window.scrollX,n=window.scrollY;Ae.restoreFocusTimeout=setTimeout(function(){Ne(),t()},100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)})},je=function(){return Ae.timeout&&Ae.timeout.getTimerLeft()},ze=function(){return Ae.timeout&&Ae.timeout.stop()},We=function(){return Ae.timeout&&Ae.timeout.start()},Be=function(){var t=Ae.timeout;return t&&(t.running?t.stop():t.start())},Ve=function(t){return Ae.timeout&&Ae.timeout.increase(t)},Ue=function(){return Ae.timeout&&Ae.timeout.isRunning()},$e={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",customContainerClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:"",cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:"",buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:"",timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:"",inputAttributes:{},inputValidator:null,validationMessage:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onAfterClose:null,onOpen:null,onClose:null,scrollbarPadding:!0},Ge=["title","titleText","text","html","type","customClass","showConfirmButton","showCancelButton","confirmButtonText","confirmButtonAriaLabel","confirmButtonColor","confirmButtonClass","cancelButtonText","cancelButtonAriaLabel","cancelButtonColor","cancelButtonClass","buttonsStyling","reverseButtons","imageUrl","imageWidth","imageHeigth","imageAlt","imageClass","progressSteps","currentProgressStep"],qe={customContainerClass:"customClass",confirmButtonClass:"customClass",cancelButtonClass:"customClass",imageClass:"customClass",inputClass:"customClass"},Ze=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Je=function(t){return $e.hasOwnProperty(t)},Xe=function(t){return-1!==Ge.indexOf(t)},Qe=function(t){return qe[t]},Ke=function(t){Je(t)||X('Unknown parameter "'.concat(t,'"'))},tn=function(t){-1!==Ze.indexOf(t)&&X('The parameter "'.concat(t,'" is incompatible with toasts'))},en=function(t){Qe(t)&&et(t,Qe(t))},nn=function(t){for(var e in t)Ke(e),t.toast&&tn(e),en()},on=Object.freeze({isValidParameter:Je,isUpdatableParameter:Xe,isDeprecatedParameter:Qe,argsToParams:rt,isVisible:Te,clickConfirm:Ee,clickCancel:Pe,getContainer:kt,getPopup:Ct,getTitle:Pt,getContent:Ot,getImage:It,getIcon:Et,getIcons:Tt,getCloseButton:jt,getActions:At,getConfirmButton:Yt,getCancelButton:Ht,getHeader:Nt,getFooter:Ft,getFocusableElements:zt,getValidationMessage:Rt,isLoading:Vt,fire:w,mixin:_,queue:Ie,getQueueStep:Le,insertQueueStep:Re,deleteQueueStep:Ye,showLoading:He,enableLoading:He,getTimerLeft:je,stopTimer:ze,resumeTimer:We,toggleTimer:Be,increaseTimer:Ve,isTimerRunning:Ue}),rn=function(){null===ut.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(ut.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=ut.previousBodyPadding+ie()+"px")},sn=function(){null!==ut.previousBodyPadding&&(document.body.style.paddingRight=ut.previousBodyPadding+"px",ut.previousBodyPadding=null)},an=function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!ct(document.body,at.iosfix)){var t=document.body.scrollTop;document.body.style.top=-1*t+"px",pt(document.body,at.iosfix)}},ln=function(){if(ct(document.body,at.iosfix)){var t=parseInt(document.body.style.top,10);mt(document.body,at.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},un=function(){return!!window.MSInputMethodContext&&!!document.documentMode},cn=function(){var t=kt(),e=Ct();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},dn=function(){"undefined"!=typeof window&&un()&&(cn(),window.addEventListener("resize",cn))},hn=function(){"undefined"!=typeof window&&un()&&window.removeEventListener("resize",cn)},fn=function(){J(document.body.children).forEach(function(t){t===kt()||Dt(t,kt())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})},pn=function(){J(document.body.children).forEach(function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},mn={swalPromiseResolve:new WeakMap},gn=function(t){for(var e in t)t[e]=new WeakMap},vn=function(t){null!==t&&"function"==typeof t&&setTimeout(function(){t()})},yn=function(){function t(n,i){e(this,t),this.callback=n,this.remaining=i,this.running=!1,this.start()}return i(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),bn={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&\/\/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}},wn=function(t){var e=kt(),n=Ct();null!==t.onBeforeOpen&&"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n),t.animation&&(pt(n,at.show),pt(e,at.fade)),yt(n),ne&&xt(n)?(e.style.overflowY="hidden",n.addEventListener(ne,B.bind(null,n,e))):e.style.overflowY="auto",pt([document.documentElement,document.body,e],at.shown),t.heightAuto&&t.backdrop&&!t.toast&&pt([document.documentElement,document.body],at["height-auto"]),Wt()&&(t.scrollbarPadding&&rn(),an(),dn(),fn(),setTimeout(function(){e.scrollTop=0})),Bt()||Ae.previousActiveElement||(Ae.previousActiveElement=document.activeElement),null!==t.onOpen&&"function"==typeof t.onOpen&&setTimeout(function(){t.onOpen(n)})},_n=void 0,xn=function(e,n){var i=Ot(),o=function(t){return kn[n.input](i,Sn(t),n)};it(n.inputOptions)?(He(),n.inputOptions.then(function(t){e.hideLoading(),o(t)})):"object"===t(n.inputOptions)?o(n.inputOptions):Q("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},Dn=function(t,e){var n=t.getInput();bt(n),e.inputValue.then(function(i){n.value="number"===e.input?parseFloat(i)||0:i+"",yt(n),n.focus(),t.hideLoading()}).catch(function(t){Q("Error in inputValue promise: "+t),n.value="",yt(n),n.focus(),_n.hideLoading()})},kn={select:function(t,e,n){var i=gt(t,at.select);e.forEach(function(t){var e=t[0],o=t[1],r=document.createElement("option");r.value=e,r.innerHTML=o,n.inputValue.toString()===e.toString()&&(r.selected=!0),i.appendChild(r)}),i.focus()},radio:function(t,e,n){var i=gt(t,at.radio);e.forEach(function(t){var e=t[0],o=t[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=at.radio,r.value=e,n.inputValue.toString()===e.toString()&&(r.checked=!0);var a=document.createElement("span");a.innerHTML=o,a.className=at.label,s.appendChild(r),s.appendChild(a),i.appendChild(s)});var o=i.querySelectorAll("input");o.length&&o[0].focus()}},Sn=function(t){var e=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach(function(t,n){e.push([n,t])}):Object.keys(t).forEach(function(n){e.push([n,t[n]])}),e},Mn=Object.freeze({hideLoading:x,disableLoading:x,getInput:D,close:C,closePopup:C,closeModal:C,closeToast:C,enableButtons:P,disableButtons:O,enableConfirmButton:I,disableConfirmButton:L,enableInput:R,disableInput:Y,showValidationMessage:H,resetValidationMessage:A,getProgressSteps:N,setProgressSteps:F,showProgressSteps:j,hideProgressSteps:z,_main:V,update:U});$.prototype.then=function(t){return se.promise.get(this).then(t)},$.prototype.finally=function(t){return se.promise.get(this).finally(t)},o($.prototype,Mn),o($,on),Object.keys(Mn).forEach(function(t){$[t]=function(){if(fe){var e;return(e=fe)[t].apply(e,arguments)}}}),$.DismissReason=ot,$.version="8.10.2";var Cn=$;return Cn.default=Cn,Cn}),"undefined"!=typeof window&&window.Sweetalert2&&(window.swal=window.sweetAlert=window.Swal=window.SweetAlert=window.Sweetalert2),"undefined"!=typeof document&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,'@charset "UTF-8";@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon::before{display:flex;align-items:center;font-size:2em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon::before{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .2s forwards;animation:swal2-toast-hide .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}@-webkit-keyframes swal2-toast-show{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes swal2-toast-show{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes swal2-toast-hide{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;background-color:transparent;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;outline:initial;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;word-wrap:break-word}#swal2-content{text-align:center}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-webkit-input-placeholder,.swal2-input::-webkit-input-placeholder,.swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:inherit}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:inherit;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;zoom:normal;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;zoom:normal;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon::before{display:flex;align-items:center;height:92%;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning::before{content:"!"}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info::before{content:"i"}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question::before{content:"?"}.swal2-icon.swal2-question.swal2-arabic-question-mark::before{content:"؟"}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:initial!important}}')},f1Eh:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},hMlo:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=n("PJh5"),c=n.n(u),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),h=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),d(e,[{key:"getId",value:function(){return"date-time-picker"}},{key:"init",value:function(){this.activateDateTimePicker(this.selector)}},{key:"activateDateTimePicker",value:function(t){var e=this.getContainer().getTranslation(),n=this.getContainer().getConfiguration();a()(t+' input[data-datetimepicker="on"]').each(function(t){var i=a()(this).data("format");a()(this).daterangepicker({singleDatePicker:!0,timePicker:!0,timePicker24Hour:n.get("twentyFourHours"),showDropdowns:!0,autoUpdateInput:!1,locale:{format:i,firstDay:1,applyLabel:e.get("confirm"),cancelLabel:e.get("cancel"),customRangeLabel:e.get("customRange"),daysOfWeek:c.a.weekdaysShort(),monthNames:c.a.months()}}),a()(this).on("apply.daterangepicker",function(t,e){a()(this).val(e.startDate.format(i)),a()(this).trigger("change")})})}}]),e}(l.a);e.a=h},iES9:function(t,e){},iNbH:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,t),u(e,[{key:"getId",value:function(){return"api"}},{key:"get",value:function(t,e,n){a.a.ajax({url:t,headers:{"X-AUTH-SESSION":!0,"Content-Type":"application/json"},method:"GET",data:e,dataType:"json",success:n})}},{key:"patch",value:function(t,e,n){a.a.ajax({url:t,headers:{"X-AUTH-SESSION":!0,"Content-Type":"application/json"},method:"PATCH",dataType:"json",success:e,error:n})}},{key:"delete",value:function(t,e,n){a.a.ajax({url:t,headers:{"X-AUTH-SESSION":!0,"Content-Type":"application/json"},method:"DELETE",dataType:"json",success:e,error:n})}}]),e}(l.a);e.a=c},jf49:function(t,e,n){(function(t){/*!
|
||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
||
* Copyright 2011-2016 Twitter, Inc.
|
||
* Licensed under the MIT license
|
||
*/
|
||
if(void 0===t)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(t),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var o=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(t),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new i(this)),"string"==typeof e&&o[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){s.detach().trigger("closed.bs.alert").remove()}var o=t(this),r=o.attr("data-target");r||(r=o.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var s=t("#"===r?[]:r);e&&e.preventDefault(),s.length||(s=o.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var o=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(t),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.button"),r="object"==typeof e&&e;o||i.data("bs.button",o=new n(this,r)),"toggle"==e?o.toggle():e&&o.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",r=i.data();e+="Text",null==r.resetText&&i.data("resetText",i[o]()),setTimeout(t.proxy(function(){i[o](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(t),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.carousel"),r=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),s="string"==typeof e?e:r.slide;o||i.data("bs.carousel",o=new n(this,r)),"number"==typeof e?o.to(e):s?o[s]():r.interval&&o.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i="prev"==t?-1:1,o=(n+i)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),r=i||this.getItemForDirection(e,o),s=this.interval,a="next"==e?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var u=r[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(r)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(r.addClass(e),r[0].offsetWidth,o.addClass(a),r.addClass(a),o.one("bsTransitionEnd",function(){r.removeClass([e,a].join(" ")).addClass("active"),o.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var o=function(n){var i,o=t(this),r=t(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var s=t.extend({},r.data(),o.data()),a=o.attr("data-slide-to");a&&(s.interval=!1),e.call(r,s),a&&r.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(t),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),r=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!o&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),o||n.data("bs.collapse",o=new i(this,r)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"))&&e.transitioning)){var r=t.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),e||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return o.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var o=t(i);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=t(this);o.attr("data-target")||i.preventDefault();var r=e(o),s=r.data("bs.collapse"),a=s?"toggle":o.data();n.call(r,a)})}(t),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(o).remove(),t(r).each(function(){var i=t(this),o=e(i),r={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(o[0],n.target)||(o.trigger(n=t.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",r)))))}))}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new s(this)),"string"==typeof e&&i[e].call(n)})}var o=".dropdown-backdrop",r='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.7",s.prototype.toggle=function(i){var o=t(this);if(!o.is(".disabled, :disabled")){var r=e(o),s=r.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(r.trigger(i=t.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},s.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var o=e(i),s=o.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&o.find(r).trigger("focus"),i.trigger("click");var a=o.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<a.length-1&&l++,~l||(l=0),a.eq(l).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,s.prototype.toggle).on("keydown.bs.dropdown.data-api",r,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(t),function(t){"use strict";function e(e,i){return this.each(function(){var o=t(this),r=o.data("bs.modal"),s=t.extend({},n.DEFAULTS,o.data(),"object"==typeof e&&e);r||o.data("bs.modal",r=new n(this,s)),"string"==typeof e?r[e](i):s.show&&r.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:e});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){if(this.ignoreBackdropClick)return void(this.ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;r?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),o=i.attr("href"),r=t(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&n.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(r,s,this)})}(t),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),r="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.tooltip",o=new n(this,r)),"string"==typeof e&&o[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(u){var f=a,p=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+h>p.bottom?"top":"top"==a&&c.top-h<p.top?"bottom":"right"==a&&c.right+d>p.width?"left":"left"==a&&c.left-d<p.left?"right":a,r.removeClass(f).addClass(a)}var m=this.getCalculatedOffset(a,c,d,h);this.applyPlacement(m,a);var g=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(n.TRANSITION_DURATION):g()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),o=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=r&&(e.top=e.top+r-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(n),h=d?2*c.left-o+l:2*c.top-r+u,f=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][f],d)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(e){function i(){"in"!=o.hoverState&&r.detach(),o.$element&&o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),e&&e()}var o=this,r=t(this.$tip),s=t.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=window.SVGElement&&n instanceof window.SVGElement,s=i?{top:0,left:0}:r?null:e.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,a,l,s)},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-s.scroll,l=e.top+r-s.scroll+i;a<s.top?o.top=s.top-a:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var u=e.left-r,c=e.left+r+n;u<s.left?o.left=s.left-u:c>s.right&&(o.left=s.left+s.width-c)}return o},n.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},n.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(t),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.popover"),r="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.popover",o=new n(this,r)),"string"==typeof e&&o[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(t),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),r="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new e(this,r)),"string"==typeof n&&o[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),o=e.data("target")||e.attr("href"),r=/^#./.test(o)&&t(o);return r&&r.length&&r.is(":visible")&&[[r[n]().top+i,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(r[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(t),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof e&&o[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=n.find(".active:last a"),r=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),e.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=t(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(e,i,o){function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var s=i.find("> .active"),a=o&&t.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),s.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var o=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(t),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.affix"),r="object"==typeof e&&e;o||i.data("bs.affix",o=new n(this,r)),"string"==typeof e&&o[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(o+s<=t-i)&&"bottom";var a=null==this.affixed,l=a?o:r.top,u=a?s:e;return null!=n&&o<=n?"top":null!=i&&l+u>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,o=i.top,r=i.bottom,s=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(r=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var a=this.getState(s,e,o,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-e-r})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(t)}).call(e,n("7t+N"))},l77c:function(t,e){t.exports="./images/default_avatar.png?fc197350"},lbHh:function(t,e,n){var i,o;!function(r){var s=!1;if(i=r,void 0!==(o="function"==typeof i?i.call(e,n,e,t):i)&&(t.exports=o),s=!0,t.exports=r(),s=!0,!s){var a=window.Cookies,l=window.Cookies=r();l.noConflict=function(){return window.Cookies=a,l}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(n){function i(e,o,r){var s;if("undefined"!=typeof document){if(arguments.length>1){if(r=t({path:"/"},i.defaults,r),"number"==typeof r.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*r.expires),r.expires=a}r.expires=r.expires?r.expires.toUTCString():"";try{s=JSON.stringify(o),/^[\{\[]/.test(s)&&(o=s)}catch(t){}o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var l="";for(var u in r)r[u]&&(l+="; "+u,!0!==r[u]&&(l+="="+r[u]));return document.cookie=e+"="+o+l}e||(s={});for(var c=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,h=0;h<c.length;h++){var f=c[h].split("="),p=f.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var m=f[0].replace(d,decodeURIComponent);if(p=n.read?n.read(p,m):n(p,m)||p.replace(d,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(t){}if(e===m){s=p;break}e||(s[m]=p)}catch(t){}}return s}}return i.set=i,i.get=function(t){return i.call(i,t)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(e,n){i(e,"",t(n,{expires:-1}))},i.withConverter=e,i}return e(function(){})})},mEMJ:function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=143)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},143:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(144);var i=n(1);i.datepickerLocale("it","it",{closeText:"Chiudi",prevText:"<Prec",nextText:"Succ>",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),i.locale("it",{buttonText:{month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},allDayHtml:"Tutto il<br/>giorno",eventLimitText:function(t){return"+altri "+t},noEventsMessage:"Non ci sono eventi da visualizzare"})},144:function(t,e,n){!function(t,e){!function(t){t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))}()}})})},mF88:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("4klR"),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.selector=t,r.selectorEmpty=n,r}return r(e,t),a(e,[{key:"getId",value:function(){return"active-records"}},{key:"init",value:function(){var t=document.querySelector(this.selector);if(null!==t){var e=t.querySelector("ul.dropdown-menu");this.attributes=e.dataset,this.itemList=e.querySelector("li > ul.menu"),this.label=t.querySelector("a > span.label");var n=this,i=function(){n.reloadActiveRecords()};document.addEventListener("kimai.timesheetUpdate",i),document.addEventListener("kimai.activityUpdate",i),document.addEventListener("kimai.projectUpdate",i),document.addEventListener("kimai.customerUpdate",i)}}},{key:"emptyList",value:function(){this.itemList.innerHTML=""}},{key:"_toggleMenu",value:function(t){var e=document.querySelector(this.selector),n=document.querySelector(this.selectorEmpty);e.style.display=t?"inline-block":"none",null!==n&&(n.style.display=t?"none":"inline-block")}},{key:"setEntries",value:function(t){if(this._toggleMenu(t.length>0),0===t.length)return this.label.innerText="",void this.emptyList();var e="",n=this.getContainer().getPlugin("timesheet-duration"),i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var l=s.value;e+='<li><a href="'+this.attributes.href.replace("000",l.id)+'" data-event="kimai.timesheetStop kimai.timesheetUpdate" class="api-link" data-method="PATCH" data-msg-error="timesheet.stop.error" data-msg-success="timesheet.stop.success"><div class="pull-left"><i class="'+this.attributes.icon+' fa-2x"></i></div><h4><span>'+l.activity.name+'</span><small><span data-title="true" data-since="'+l.begin+'" data-format="'+this.attributes.format+'">'+n.formatDuration(l.duration,this.attributes.format)+"</span></small></h4><p>"+l.project.name+" ("+l.project.customer.name+")</p></a></li>"}}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}this.label.dataset.warning<t.length?this.label.classList="label label-danger":this.label.classList="label label-warning",this.label.innerText=t.length,this.itemList.innerHTML=e,n.updateRecords()}},{key:"reloadActiveRecords",value:function(){var t=this;this.getContainer().getPlugin("api").get(this.attributes.api,{},function(e){t.setEntries(e)})}}]),e}(s.a);e.a=l},mN5h:function(t,e){t.exports="./images/signature.png?5f58501e"},nDZU:function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=79)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},79:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(80);var i=n(1);i.datepickerLocale("ar","ar",{closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""}),i.locale("ar",{buttonText:{month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"})},80:function(t,e,n){!function(t,e){!function(t){var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(t){return function(e,n,r,s){var a=i(e),l=o[t][i(e)];return 2===a&&(l=l[n?0:1]),l.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return n[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))}()}})})},nErl:function(t,e){(function(e){t.exports=e}).call(e,{})},nyna:function(t,e){},oWa1:function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=113)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},113:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(114);var i=n(1);i.datepickerLocale("es","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),i.locale("es",{buttonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo<br/>el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"})},114:function(t,e,n){!function(t,e){!function(t){var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))}()}})})},olwm:function(t,e,n){/*!
|
||
* FullCalendar v3.9.0
|
||
* Docs & License: https://fullcalendar.io/
|
||
* (c) 2018 Adam Shaw
|
||
*/
|
||
!function(e,i){t.exports=i(n("VcwF"),n("7t+N"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=236)}([function(e,n){e.exports=t},,function(t,e){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};e.__extends=function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}},function(t,n){t.exports=e},function(t,e,n){function i(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})}function o(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function r(){ft("body").addClass("fc-not-allowed")}function s(){ft("body").removeClass("fc-not-allowed")}function a(t,e,n){var i=Math.floor(e/t.length),o=Math.floor(e-i*(t.length-1)),r=[],s=[],a=[],u=0;l(t),t.each(function(e,n){var l=e===t.length-1?o:i,c=ft(n).outerHeight(!0);c<l?(r.push(n),s.push(c),a.push(ft(n).height())):u+=c}),n&&(e-=u,i=Math.floor(e/r.length),o=Math.floor(e-i*(r.length-1))),ft(r).each(function(t,e){var n=t===r.length-1?o:i,l=s[t],u=a[t],c=n-(l-u);l<n&&ft(e).height(c)})}function l(t){t.height("")}function u(t){var e=0;return t.find("> *").each(function(t,n){var i=ft(n).outerWidth();i>e&&(e=i)}),e++,t.width(e),e}function c(t,e){var n,i=t.add(e);return i.css({position:"relative",left:-1}),n=t.outerHeight()-e.outerHeight(),i.css({position:"",left:""}),n}function d(t){var e=t.css("position"),n=t.parents().filter(function(){var t=ft(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&n.length?n:ft(t[0].ownerDocument||document)}function h(t,e){var n=t.offset(),i=n.left-(e?e.left:0),o=n.top-(e?e.top:0);return{left:i,right:i+t.outerWidth(),top:o,bottom:o+t.outerHeight()}}function f(t,e){var n=t.offset(),i=m(t),o=n.left+b(t,"border-left-width")+i.left-(e?e.left:0),r=n.top+b(t,"border-top-width")+i.top-(e?e.top:0);return{left:o,right:o+t[0].clientWidth,top:r,bottom:r+t[0].clientHeight}}function p(t,e){var n=t.offset(),i=n.left+b(t,"border-left-width")+b(t,"padding-left")-(e?e.left:0),o=n.top+b(t,"border-top-width")+b(t,"padding-top")-(e?e.top:0);return{left:i,right:i+t.width(),top:o,bottom:o+t.height()}}function m(t){var e,n=t[0].offsetWidth-t[0].clientWidth,i=t[0].offsetHeight-t[0].clientHeight;return n=g(n),i=g(i),e={left:0,right:0,top:0,bottom:i},v()&&"rtl"===t.css("direction")?e.left=n:e.right=n,e}function g(t){return t=Math.max(0,t),t=Math.round(t)}function v(){return null===pt&&(pt=y()),pt}function y(){var t=ft("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),e=t.children(),n=e.offset().left>t.offset().left;return t.remove(),n}function b(t,e){return parseFloat(t.css(e))||0}function w(t){return 1===t.which&&!t.ctrlKey}function _(t){var e=t.originalEvent.touches;return e&&e.length?e[0].pageX:t.pageX}function x(t){var e=t.originalEvent.touches;return e&&e.length?e[0].pageY:t.pageY}function D(t){return/^touch/.test(t.type)}function k(t){t.addClass("fc-unselectable").on("selectstart",M)}function S(t){t.removeClass("fc-unselectable").off("selectstart",M)}function M(t){t.preventDefault()}function C(t,e){var n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function T(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function E(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function P(t,e){return{left:t.left-e.left,top:t.top-e.top}}function O(t){var e,n,i=[],o=[];for("string"==typeof t?o=t.split(/\s*,\s*/):"function"==typeof t?o=[t]:ft.isArray(t)&&(o=t),e=0;e<o.length;e++)n=o[e],"string"==typeof n?i.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&i.push({func:n});return i}function I(t,e,n,i,o){var r,s;for(r=0;r<n.length;r++)if(s=L(t,e,n[r],i,o))return s;return 0}function L(t,e,n,i,o){if(n.func)return n.func(t,e);var r=t[n.field],s=e[n.field];return null==r&&i&&(r=i[n.field]),null==s&&o&&(s=o[n.field]),R(r,s)*(n.order||1)}function R(t,e){return t||e?null==e?-1:null==t?1:"string"===ft.type(t)||"string"===ft.type(e)?String(t).localeCompare(String(e)):t-e:0}function Y(t,e){return ht.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days"),ms:t.time()-e.time()})}function H(t,e){return ht.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days")})}function A(t,e,n){return ht.duration(Math.round(t.diff(e,n,!0)),n)}function N(t,n){var i,o,r;for(i=0;i<e.unitsDesc.length&&(o=e.unitsDesc[i],!((r=j(o,t,n))>=1&&ut(r)));i++);return o}function F(t,e){var n=N(t);return"week"===n&&"object"==typeof e&&e.days&&(n="day"),n}function j(t,e,n){return null!=n?n.diff(e,t,!0):ht.isDuration(e)?e.as(t):e.end.diff(e.start,t,!0)}function z(t,e,n){var i;return V(n)?(e-t)/n:(i=n.asMonths(),Math.abs(i)>=1&&ut(i)?e.diff(t,"months",!0)/i:e.diff(t,"days",!0)/n.asDays())}function W(t,e){var n,i;return V(t)||V(e)?t/e:(n=t.asMonths(),i=e.asMonths(),Math.abs(n)>=1&&ut(n)&&Math.abs(i)>=1&&ut(i)?n/i:t.asDays()/e.asDays())}function B(t,e){var n;return V(t)?ht.duration(t*e):(n=t.asMonths(),Math.abs(n)>=1&&ut(n)?ht.duration({months:n*e}):ht.duration({days:t.asDays()*e}))}function V(t){return Boolean(t.hours()||t.minutes()||t.seconds()||t.milliseconds())}function U(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function $(t){return"string"==typeof t&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(t)}function G(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=window.console;if(n&&n.log)return n.log.apply(n,t)}function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=window.console;return n&&n.warn?n.warn.apply(n,t):G.apply(null,t)}function Z(t,e){var n,i,o,r,s,a,l={};if(e)for(n=0;n<e.length;n++){for(i=e[n],o=[],r=t.length-1;r>=0;r--)if("object"==typeof(s=t[r][i]))o.unshift(s);else if(void 0!==s){l[i]=s;break}o.length&&(l[i]=Z(o))}for(n=t.length-1;n>=0;n--){a=t[n];for(i in a)i in l||(l[i]=a[i])}return l}function J(t,e){for(var n in t)X(t,n)&&(e[n]=t[n])}function X(t,e){return mt.call(t,e)}function Q(t,e,n){if(ft.isFunction(t)&&(t=[t]),t){var i=void 0,o=void 0;for(i=0;i<t.length;i++)o=t[i].apply(e,n)||o;return o}}function K(t,e){for(var n=0,i=0;i<t.length;)e(t[i])?(t.splice(i,1),n++):i++;return n}function tt(t,e){for(var n=0,i=0;i<t.length;)t[i]===e?(t.splice(i,1),n++):i++;return n}function et(t,e){var n,i=t.length;if(null==i||i!==e.length)return!1;for(n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function nt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++)if(void 0!==t[n])return t[n]}function it(t){return(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function ot(t){return t.replace(/&.*?;/g,"")}function rt(t){var e=[];return ft.each(t,function(t,n){null!=n&&e.push(t+":"+n)}),e.join(";")}function st(t){var e=[];return ft.each(t,function(t,n){null!=n&&e.push(t+'="'+it(n)+'"')}),e.join(" ")}function at(t){return t.charAt(0).toUpperCase()+t.slice(1)}function lt(t,e){return t-e}function ut(t){return t%1==0}function ct(t,e){var n=t[e];return function(){return n.apply(t,arguments)}}function dt(t,e,n){void 0===n&&(n=!1);var i,o,r,s,a,l=function(){var u=+new Date-s;u<e?i=setTimeout(l,e-u):(i=null,n||(a=t.apply(r,o),r=o=null))};return function(){r=this,o=arguments,s=+new Date;var u=n&&!i;return i||(i=setTimeout(l,e)),u&&(a=t.apply(r,o),r=o=null),a}}Object.defineProperty(e,"__esModule",{value:!0});var ht=n(0),ft=n(3);e.compensateScroll=i,e.uncompensateScroll=o,e.disableCursor=r,e.enableCursor=s,e.distributeHeight=a,e.undistributeHeight=l,e.matchCellWidths=u,e.subtractInnerElHeight=c,e.getScrollParent=d,e.getOuterRect=h,e.getClientRect=f,e.getContentRect=p,e.getScrollbarWidths=m;var pt=null;e.isPrimaryMouseButton=w,e.getEvX=_,e.getEvY=x,e.getEvIsTouch=D,e.preventSelection=k,e.allowSelection=S,e.preventDefault=M,e.intersectRects=C,e.constrainPoint=T,e.getRectCenter=E,e.diffPoints=P,e.parseFieldSpecs=O,e.compareByFieldSpecs=I,e.compareByFieldSpec=L,e.flexibleCompare=R,e.dayIDs=["sun","mon","tue","wed","thu","fri","sat"],e.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"],e.diffDayTime=Y,e.diffDay=H,e.diffByUnit=A,e.computeGreatestUnit=N,e.computeDurationGreatestUnit=F,e.divideRangeByDuration=z,e.divideDurationByDuration=W,e.multiplyDuration=B,e.durationHasTime=V,e.isNativeDate=U,e.isTimeString=$,e.log=G,e.warn=q;var mt={}.hasOwnProperty;e.mergeProps=Z,e.copyOwnProps=J,e.hasOwnProp=X,e.applyAll=Q,e.removeMatching=K,e.removeExact=tt,e.isArraysEqual=et,e.firstDefined=nt,e.htmlEscape=it,e.stripHtmlEntities=ot,e.cssToStr=rt,e.attrsToStr=st,e.capitaliseFirstLetter=at,e.compareNumbers=lt,e.isInt=ut,e.proxy=ct,e.debounce=dt},function(t,e,n){function i(t,e){return t.startMs-e.startMs}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(10),s=function(){function t(t,e){this.isStart=!0,this.isEnd=!0,o.isMoment(t)&&(t=t.clone().stripZone()),o.isMoment(e)&&(e=e.clone().stripZone()),t&&(this.startMs=t.valueOf()),e&&(this.endMs=e.valueOf())}return t.invertRanges=function(e,n){var o,r,s=[],a=n.startMs;for(e.sort(i),o=0;o<e.length;o++)r=e[o],r.startMs>a&&s.push(new t(a,r.startMs)),r.endMs>a&&(a=r.endMs);return a<n.endMs&&s.push(new t(a,n.endMs)),s},t.prototype.intersect=function(e){var n=this.startMs,i=this.endMs,o=null;return null!=e.startMs&&(n=null==n?e.startMs:Math.max(n,e.startMs)),null!=e.endMs&&(i=null==i?e.endMs:Math.min(i,e.endMs)),(null==n||null==i||n<i)&&(o=new t(n,i),o.isStart=this.isStart&&n===this.startMs,o.isEnd=this.isEnd&&i===this.endMs),o},t.prototype.intersectsWith=function(t){return(null==this.endMs||null==t.startMs||this.endMs>t.startMs)&&(null==this.startMs||null==t.endMs||this.startMs<t.endMs)},t.prototype.containsRange=function(t){return(null==this.startMs||null!=t.startMs&&t.startMs>=this.startMs)&&(null==this.endMs||null!=t.endMs&&t.endMs<=this.endMs)},t.prototype.containsDate=function(t){var e=t.valueOf();return(null==this.startMs||e>=this.startMs)&&(null==this.endMs||e<this.endMs)},t.prototype.constrainDate=function(t){var e=t.valueOf();return null!=this.startMs&&e<this.startMs&&(e=this.startMs),null!=this.endMs&&e>=this.endMs&&(e=this.endMs-1),e},t.prototype.equals=function(t){return this.startMs===t.startMs&&this.endMs===t.endMs},t.prototype.clone=function(){var e=new t(this.startMs,this.endMs);return e.isStart=this.isStart,e.isEnd=this.isEnd,e},t.prototype.getStart=function(){return null!=this.startMs?r.default.utc(this.startMs).stripZone():null},t.prototype.getEnd=function(){return null!=this.endMs?r.default.utc(this.endMs).stripZone():null},t.prototype.as=function(t){return o.utc(this.endMs).diff(o.utc(this.startMs),t,!0)},t}();e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(208),s=n(33),a=n(49),l=function(t){function e(n){var i=t.call(this)||this;return i.calendar=n,i.className=[],i.uid=String(e.uuid++),i}return i.__extends(e,t),e.parse=function(t,e){var n=new this(e);return!("object"!=typeof t||!n.applyProps(t))&&n},e.normalizeId=function(t){return t?String(t):null},e.prototype.fetch=function(t,e,n){},e.prototype.removeEventDefsById=function(t){},e.prototype.removeAllEventDefs=function(){},e.prototype.getPrimitive=function(t){},e.prototype.parseEventDefs=function(t){var e,n,i=[];for(e=0;e<t.length;e++)(n=this.parseEventDef(t[e]))&&i.push(n);return i},e.prototype.parseEventDef=function(t){var e=this.calendar.opt("eventDataTransform"),n=this.eventDataTransform;return e&&(t=e(t,this.calendar)),n&&(t=n(t,this.calendar)),a.default.parse(t,this)},e.prototype.applyManualStandardProps=function(t){return null!=t.id&&(this.id=e.normalizeId(t.id)),o.isArray(t.className)?this.className=t.className:"string"==typeof t.className&&(this.className=t.className.split(/\s+/)),!0},e.uuid=0,e.defineStandardProps=r.default.defineStandardProps,e.copyVerbatimStandardProps=r.default.copyVerbatimStandardProps,e}(s.default);e.default=l,r.default.mixInto(l),l.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(14),s=0,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.listenTo=function(t,e,n){if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&this.listenTo(t,i,e[i]);else"string"==typeof e&&t.on(e+"."+this.getListenerNamespace(),o.proxy(n,this))},e.prototype.stopListeningTo=function(t,e){t.off((e||"")+"."+this.getListenerNamespace())},e.prototype.getListenerNamespace=function(){return null==this.listenerId&&(this.listenerId=s++),"_listener"+this.listenerId},e}(r.default);e.default=a},,,function(t,e,n){function i(t,e){return d.format.call(t,e)}function o(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i,o,c,d,h=t[0],f=1===t.length&&"string"==typeof h;return r.isMoment(h)||a.isNativeDate(h)||void 0===h?d=r.apply(null,t):(i=!1,o=!1,f?l.test(h)?(h+="-01",t=[h],i=!0,o=!0):(c=u.exec(h))&&(i=!c[5],o=!0):s.isArray(h)&&(o=!0),d=e||i?r.utc.apply(r,t):r.apply(null,t),i?(d._ambigTime=!0,d._ambigZone=!0):n&&(o?d._ambigZone=!0:f&&d.utcOffset(h))),d._fullCalendar=!0,d}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),s=n(3),a=n(4),l=/^\s*\d{4}-\d\d$/,u=/^\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+)?)?)?)?)?$/,c=r.fn;e.newMomentProto=c;var d=s.extend({},c);e.oldMomentProto=d;var h=r.momentProperties;h.push("_fullCalendar"),h.push("_ambigTime"),h.push("_ambigZone"),e.oldMomentFormat=i;var f=function(){return o(arguments)};e.default=f,f.utc=function(){var t=o(arguments,!0);return t.hasTime()&&t.utc(),t},f.parseZone=function(){return o(arguments,!0,!0)},c.week=c.weeks=function(t){var e=this._locale._fullCalendar_weekCalc;return null==t&&"function"==typeof e?e(this):"ISO"===e?d.isoWeek.apply(this,arguments):d.week.apply(this,arguments)},c.time=function(t){if(!this._fullCalendar)return d.time.apply(this,arguments);if(null==t)return r.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,r.isDuration(t)||r.isMoment(t)||(t=r.duration(t));var e=0;return r.isDuration(t)&&(e=24*Math.floor(t.asDays())),this.hours(e+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},c.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},c.hasTime=function(){return!this._ambigTime},c.stripZone=function(){var t;return this._ambigZone||(t=this._ambigTime,this.utc(!0),this._ambigTime=t||!1,this._ambigZone=!0),this},c.hasZone=function(){return!this._ambigZone},c.local=function(t){return d.local.call(this,this._ambigZone||t),this._ambigTime=!1,this._ambigZone=!1,this},c.utc=function(t){return d.utc.call(this,t),this._ambigTime=!1,this._ambigZone=!1,this},c.utcOffset=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),d.utcOffset.apply(this,arguments)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(14),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.on=function(t,e){return o(this).on(t,this._prepareIntercept(e)),this},e.prototype.one=function(t,e){return o(this).one(t,this._prepareIntercept(e)),this},e.prototype._prepareIntercept=function(t){var e=function(e,n){return t.apply(n.context||this,n.args||[])};return t.guid||(t.guid=o.guid++),e.guid=t.guid,e},e.prototype.off=function(t,e){return o(this).off(t,e),this},e.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return o(this).triggerHandler(t,{args:e}),this},e.prototype.triggerWith=function(t,e,n){return o(this).triggerHandler(t,{context:e,args:n}),this},e.prototype.hasHandlers=function(t){var e=o._data(this,"events");return e&&e[t]&&e[t].length>0},e}(r.default);e.default=s},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.isAllDay=!1,this.unzonedRange=t,this.isAllDay=e}return t.prototype.toLegacy=function(t){return{start:t.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:t.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},t}();e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(34),r=n(209),s=n(17),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.buildInstances=function(){return[this.buildInstance()]},e.prototype.buildInstance=function(){return new r.default(this,this.dateProfile)},e.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.dateProfile=this.dateProfile,e},e.prototype.rezone=function(){var t=this.source.calendar,e=this.dateProfile;this.dateProfile=new s.default(t.moment(e.start),e.end?t.moment(e.end):null,t)},e.prototype.applyManualStandardProps=function(e){var n=t.prototype.applyManualStandardProps.call(this,e),i=s.default.parse(e,this.source);return!!i&&(this.dateProfile=i,null!=e.date&&(this.miscProps.date=e.date),n)},e}(o.default);e.default=a,a.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.mixInto=function(t){var e=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){t.prototype[n]||(t.prototype[n]=e.prototype[n])})},t.mixOver=function(t){var e=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){t.prototype[n]=e.prototype[n]})},t}();e.default=n},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.view=t._getView(),this.component=t}return t.prototype.opt=function(t){return this.view.opt(t)},t.prototype.end=function(){},t}();e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.version="3.9.0",e.internalApiVersion=12;var i=n(4);e.applyAll=i.applyAll,e.debounce=i.debounce,e.isInt=i.isInt,e.htmlEscape=i.htmlEscape,e.cssToStr=i.cssToStr,e.proxy=i.proxy,e.capitaliseFirstLetter=i.capitaliseFirstLetter,e.getOuterRect=i.getOuterRect,e.getClientRect=i.getClientRect,e.getContentRect=i.getContentRect,e.getScrollbarWidths=i.getScrollbarWidths,e.preventDefault=i.preventDefault,e.parseFieldSpecs=i.parseFieldSpecs,e.compareByFieldSpecs=i.compareByFieldSpecs,e.compareByFieldSpec=i.compareByFieldSpec,e.flexibleCompare=i.flexibleCompare,e.computeGreatestUnit=i.computeGreatestUnit,e.divideRangeByDuration=i.divideRangeByDuration,e.divideDurationByDuration=i.divideDurationByDuration,e.multiplyDuration=i.multiplyDuration,e.durationHasTime=i.durationHasTime,e.log=i.log,e.warn=i.warn,e.removeExact=i.removeExact,e.intersectRects=i.intersectRects;var o=n(47);e.formatDate=o.formatDate,e.formatRange=o.formatRange,e.queryMostGranularFormatUnit=o.queryMostGranularFormatUnit;var r=n(31);e.datepickerLocale=r.datepickerLocale,e.locale=r.locale;var s=n(10);e.moment=s.default;var a=n(11);e.EmitterMixin=a.default;var l=n(7);e.ListenerMixin=l.default;var u=n(48);e.Model=u.default;var c=n(207);e.Constraints=c.default;var d=n(5);e.UnzonedRange=d.default;var h=n(12);e.ComponentFootprint=h.default;var f=n(212);e.BusinessHourGenerator=f.default;var p=n(34);e.EventDef=p.default;var m=n(37);e.EventDefMutation=m.default;var g=n(38);e.EventSourceParser=g.default;var v=n(6);e.EventSource=v.default;var y=n(51);e.defineThemeSystem=y.defineThemeSystem;var b=n(18);e.EventInstanceGroup=b.default;var w=n(52);e.ArrayEventSource=w.default;var _=n(215);e.FuncEventSource=_.default;var x=n(216);e.JsonFeedEventSource=x.default;var D=n(36);e.EventFootprint=D.default;var k=n(33);e.Class=k.default;var S=n(14);e.Mixin=S.default;var M=n(53);e.CoordCache=M.default;var C=n(54);e.DragListener=C.default;var T=n(20);e.Promise=T.default;var E=n(217);e.TaskQueue=E.default;var P=n(218);e.RenderQueue=P.default;var O=n(39);e.Scroller=O.default;var I=n(19);e.Theme=I.default;var L=n(219);e.DateComponent=L.default;var R=n(40);e.InteractiveDateComponent=R.default;var Y=n(220);e.Calendar=Y.default;var H=n(41);e.View=H.default;var A=n(22);e.defineView=A.defineView,e.getViewConfig=A.getViewConfig;var N=n(55);e.DayTableMixin=N.default;var F=n(56);e.BusinessHourRenderer=F.default;var j=n(42);e.EventRenderer=j.default;var z=n(57);e.FillRenderer=z.default;var W=n(58);e.HelperRenderer=W.default;var B=n(222);e.ExternalDropping=B.default;var V=n(223);e.EventResizing=V.default;var U=n(59);e.EventPointing=U.default;var $=n(224);e.EventDragging=$.default;var G=n(225);e.DateSelecting=G.default;var q=n(60);e.StandardInteractionsMixin=q.default;var Z=n(226);e.AgendaView=Z.default;var J=n(227);e.TimeGrid=J.default;var X=n(61);e.DayGrid=X.default;var Q=n(62);e.BasicView=Q.default;var K=n(229);e.MonthView=K.default;var tt=n(230);e.ListView=tt.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=function(){function t(t,e,n){this.start=t,this.end=e||null,this.unzonedRange=this.buildUnzonedRange(n)}return t.parse=function(e,n){var i=e.start||e.date,o=e.end;if(!i)return!1;var r=n.calendar,s=r.moment(i),a=o?r.moment(o):null,l=e.allDay,u=r.opt("forceEventDuration");return!!s.isValid()&&(!a||a.isValid()&&a.isAfter(s)||(a=null),null==l&&null==(l=n.allDayDefault)&&(l=r.opt("allDayDefault")),!0===l?(s.stripTime(),a&&a.stripTime()):!1===l&&(s.hasTime()||s.time(0),a&&!a.hasTime()&&a.time(0)),!a&&u&&(a=r.getDefaultEventEnd(!s.hasTime(),s)),new t(s,a,r))},t.isStandardProp=function(t){return"start"===t||"date"===t||"end"===t||"allDay"===t},t.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},t.prototype.buildUnzonedRange=function(t){var e=this.start.clone().stripZone().valueOf(),n=this.getEnd(t).stripZone().valueOf();return new i.default(e,n)},t.prototype.getEnd=function(t){return this.end?this.end.clone():t.getDefaultEventEnd(this.isAllDay(),this.start)},t}();e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=n(35),r=n(211),s=function(){function t(t){this.eventInstances=t||[]}return t.prototype.getAllEventRanges=function(t){return t?this.sliceNormalRenderRanges(t):this.eventInstances.map(o.eventInstanceToEventRange)},t.prototype.sliceRenderRanges=function(t){return this.isInverse()?this.sliceInverseRenderRanges(t):this.sliceNormalRenderRanges(t)},t.prototype.sliceNormalRenderRanges=function(t){var e,n,i,o=this.eventInstances,s=[];for(e=0;e<o.length;e++)n=o[e],(i=n.dateProfile.unzonedRange.intersect(t))&&s.push(new r.default(i,n.def,n));return s},t.prototype.sliceInverseRenderRanges=function(t){var e=this.eventInstances.map(o.eventInstanceToUnzonedRange),n=this.getEventDef();return e=i.default.invertRanges(e,t),e.map(function(t){return new r.default(t,n)})},t.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},t.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},t}();e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=function(){function t(t){this.optionsManager=t,this.processIconOverride()}return t.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},t.prototype.setIconOverride=function(t){var e,n;if(i.isPlainObject(t)){e=i.extend({},this.iconClasses);for(n in t)e[n]=this.applyIconOverridePrefix(t[n]);this.iconClasses=e}else!1===t&&(this.iconClasses={})},t.prototype.applyIconOverridePrefix=function(t){var e=this.iconOverridePrefix;return e&&0!==t.indexOf(e)&&(t=e+t),t},t.prototype.getClass=function(t){return this.classes[t]||""},t.prototype.getIconClass=function(t){var e=this.iconClasses[t];return e?this.baseIconClass+" "+e:""},t.prototype.getCustomButtonIconClass=function(t){var e;return this.iconOverrideCustomButtonOption&&(e=t[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(e):""},t}();e.default=o,o.prototype.classes={},o.prototype.iconClasses={},o.prototype.baseIconClass="",o.prototype.iconOverridePrefix=""},function(t,e,n){function i(t,e){t.then=function(n){return"function"==typeof n?s.resolve(n(e)):t}}function o(t){t.then=function(e,n){return"function"==typeof n&&n(),t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),s={construct:function(t){var e=r.Deferred(),n=e.promise();return"function"==typeof t&&t(function(t){e.resolve(t),i(n,t)},function(){e.reject(),o(n)}),n},resolve:function(t){var e=r.Deferred().resolve(t),n=e.promise();return i(n,t),n},reject:function(){var t=r.Deferred().reject(),e=t.promise();return o(e),e}};e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(16),r=n(11),s=n(7);o.touchMouseIgnoreWait=500;var a=null,l=0,u=function(){function t(){this.isTouching=!1,this.mouseIgnoreDepth=0}return t.get=function(){return a||(a=new t,a.bind()),a},t.needed=function(){t.get(),l++},t.unneeded=function(){--l||(a.unbind(),a=null)},t.prototype.bind=function(){var t=this;this.listenTo(i(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(e){t.handleTouchMove(i.Event(e))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(e){t.handleScroll(i.Event(e))},!0)},t.prototype.unbind=function(){this.stopListeningTo(i(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},t.prototype.handleTouchStart=function(t){this.stopTouch(t,!0),this.isTouching=!0,this.trigger("touchstart",t)},t.prototype.handleTouchMove=function(t){this.isTouching&&this.trigger("touchmove",t)},t.prototype.handleTouchCancel=function(t){this.isTouching&&(this.trigger("touchcancel",t),this.stopTouch(t))},t.prototype.handleTouchEnd=function(t){this.stopTouch(t)},t.prototype.handleMouseDown=function(t){this.shouldIgnoreMouse()||this.trigger("mousedown",t)},t.prototype.handleMouseMove=function(t){this.shouldIgnoreMouse()||this.trigger("mousemove",t)},t.prototype.handleMouseUp=function(t){this.shouldIgnoreMouse()||this.trigger("mouseup",t)},t.prototype.handleClick=function(t){this.shouldIgnoreMouse()||this.trigger("click",t)},t.prototype.handleSelectStart=function(t){this.trigger("selectstart",t)},t.prototype.handleContextMenu=function(t){this.trigger("contextmenu",t)},t.prototype.handleScroll=function(t){this.trigger("scroll",t)},t.prototype.stopTouch=function(t,e){void 0===e&&(e=!1),this.isTouching&&(this.isTouching=!1,this.trigger("touchend",t),e||this.startTouchMouseIgnore())},t.prototype.startTouchMouseIgnore=function(){var t=this,e=o.touchMouseIgnoreWait;e&&(this.mouseIgnoreDepth++,setTimeout(function(){t.mouseIgnoreDepth--},e))},t.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},t}();e.default=u,s.default.mixInto(u),r.default.mixInto(u)},function(t,e,n){function i(t,n){e.viewHash[t]=n}function o(t){return e.viewHash[t]}Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);e.viewHash={},r.views=e.viewHash,e.defineView=i,e.getViewConfig=o},function(t,e,n){function i(t,e){return!t&&!e||!(!t||!e)&&(t.component===e.component&&o(t,e)&&o(e,t))}function o(t,e){for(var n in t)if(!/^(component|left|right|top|bottom)$/.test(n)&&t[n]!==e[n])return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),s=n(4),a=n(54),l=function(t){function e(e,n){var i=t.call(this,n)||this;return i.component=e,i}return r.__extends(e,t),e.prototype.handleInteractionStart=function(e){var n,i,o,r=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),e?(i={left:s.getEvX(e),top:s.getEvY(e)},o=i,r&&(n=s.getOuterRect(r),o=s.constrainPoint(o,n)),this.origHit=this.queryHit(o.left,o.top),r&&this.options.subjectCenter&&(this.origHit&&(n=s.intersectRects(this.origHit,n)||n),o=s.getRectCenter(n)),this.coordAdjust=s.diffPoints(o,i)):(this.origHit=null,this.coordAdjust=null),t.prototype.handleInteractionStart.call(this,e)},e.prototype.handleDragStart=function(e){var n;t.prototype.handleDragStart.call(this,e),(n=this.queryHit(s.getEvX(e),s.getEvY(e)))&&this.handleHitOver(n)},e.prototype.handleDrag=function(e,n,o){var r;t.prototype.handleDrag.call(this,e,n,o),r=this.queryHit(s.getEvX(o),s.getEvY(o)),i(r,this.hit)||(this.hit&&this.handleHitOut(),r&&this.handleHitOver(r))},e.prototype.handleDragEnd=function(e){this.handleHitDone(),t.prototype.handleDragEnd.call(this,e)},e.prototype.handleHitOver=function(t){var e=i(t,this.origHit);this.hit=t,this.trigger("hitOver",this.hit,e,this.origHit)},e.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},e.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},e.prototype.handleInteractionEnd=function(e,n){t.prototype.handleInteractionEnd.call(this,e,n),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},e.prototype.handleScrollEnd=function(){t.prototype.handleScrollEnd.call(this),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},e.prototype.queryHit=function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.component.queryHit(t,e)},e}(a.default);e.default=l},,,,,,,,function(t,e,n){function i(t){a.each(p,function(e,n){null==t[e]&&(t[e]=n(t))})}function o(t,n,i){var o=e.localeOptionHash[t]||(e.localeOptionHash[t]={});o.isRTL=i.isRTL,o.weekNumberTitle=i.weekHeader,a.each(h,function(t,e){o[t]=e(i)});var r=a.datepicker;r&&(r.regional[n]=r.regional[t]=i,r.regional.en=r.regional[""],r.setDefaults(i))}function r(t,n){var i,o;i=e.localeOptionHash[t]||(e.localeOptionHash[t]={}),n&&(i=e.localeOptionHash[t]=c.mergeOptions([i,n])),o=s(t),a.each(f,function(t,e){null==i[t]&&(i[t]=e(o,i))}),c.globalDefaults.locale=t}function s(t){return l.localeData(t)||l.localeData("en")}Object.defineProperty(e,"__esModule",{value:!0});var a=n(3),l=n(0),u=n(16),c=n(32),d=n(4);e.localeOptionHash={},u.locales=e.localeOptionHash;var h={buttonText:function(t){return{prev:d.stripHtmlEntities(t.prevText),next:d.stripHtmlEntities(t.nextText),today:d.stripHtmlEntities(t.currentText)}},monthYearFormat:function(t){return t.showMonthAfterYear?"YYYY["+t.yearSuffix+"] MMMM":"MMMM YYYY["+t.yearSuffix+"]"}},f={dayOfMonthFormat:function(t,e){var n=t.longDateFormat("l");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),e.isRTL?n+=" ddd":n="ddd "+n,n},mediumTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(t){return t.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(t){return t.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(t){return t.longDateFormat("LT").replace(/\s*a$/i,"")}},p={smallDayDateFormat:function(t){return t.isRTL?"D dd":"dd D"},weekFormat:function(t){return t.isRTL?"w[ "+t.weekNumberTitle+"]":"["+t.weekNumberTitle+" ]w"},smallWeekFormat:function(t){return t.isRTL?"w["+t.weekNumberTitle+"]":"["+t.weekNumberTitle+"]w"}};e.populateInstanceComputableOptions=i,e.datepickerLocale=o,e.locale=r,e.getMomentLocaleData=s,r("en",c.englishDefaults)},function(t,e,n){function i(t){return o.mergeProps(t,r)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(4);e.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},e.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},e.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var r=["header","footer","buttonText","buttonIcons","themeButtonIcons"];e.mergeOptions=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(4),r=function(){function t(){}return t.extend=function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(this);return o.copyOwnProps(t,e.prototype),e},t.mixin=function(t){o.copyOwnProps(t,this.prototype)},t}();e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(208),r=function(){function t(t){this.source=t,this.className=[],this.miscProps={}}return t.parse=function(t,e){var n=new this(e);return!!n.applyProps(t)&&n},t.normalizeId=function(t){return String(t)},t.generateId=function(){return"_fc"+t.uuid++},t.prototype.clone=function(){var e=new this.constructor(this.source);return e.id=this.id,e.rawId=this.rawId,e.uid=this.uid,t.copyVerbatimStandardProps(this,e),e.className=this.className.slice(),e.miscProps=i.extend({},this.miscProps),e},t.prototype.hasInverseRendering=function(){return"inverse-background"===this.getRendering()},t.prototype.hasBgRendering=function(){var t=this.getRendering();return"inverse-background"===t||"background"===t},t.prototype.getRendering=function(){return null!=this.rendering?this.rendering:this.source.rendering},t.prototype.getConstraint=function(){return null!=this.constraint?this.constraint:null!=this.source.constraint?this.source.constraint:this.source.calendar.opt("eventConstraint")},t.prototype.getOverlap=function(){return null!=this.overlap?this.overlap:null!=this.source.overlap?this.source.overlap:this.source.calendar.opt("eventOverlap")},t.prototype.isStartExplicitlyEditable=function(){return null!=this.startEditable?this.startEditable:this.source.startEditable},t.prototype.isDurationExplicitlyEditable=function(){return null!=this.durationEditable?this.durationEditable:this.source.durationEditable},t.prototype.isExplicitlyEditable=function(){return null!=this.editable?this.editable:this.source.editable},t.prototype.toLegacy=function(){var e=i.extend({},this.miscProps);return e._id=this.uid,e.source=this.source,e.className=this.className.slice(),e.allDay=this.isAllDay(),null!=this.rawId&&(e.id=this.rawId),t.copyVerbatimStandardProps(this,e),e},t.prototype.applyManualStandardProps=function(e){return null!=e.id?this.id=t.normalizeId(this.rawId=e.id):this.id=t.generateId(),null!=e._id?this.uid=String(e._id):this.uid=t.generateId(),i.isArray(e.className)&&(this.className=e.className),"string"==typeof e.className&&(this.className=e.className.split(/\s+/)),!0},t.prototype.applyMiscProps=function(t){i.extend(this.miscProps,t)},t.uuid=0,t.defineStandardProps=o.default.defineStandardProps,t.copyVerbatimStandardProps=o.default.copyVerbatimStandardProps,t}();e.default=r,o.default.mixInto(r),r.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(t,e,n){function i(t,e){var n,i=[];for(n=0;n<t.length;n++)i.push.apply(i,t[n].buildInstances(e));return i}function o(t){return new l.default(t.dateProfile.unzonedRange,t.def,t)}function r(t){return new u.default(new c.default(t.unzonedRange,t.eventDef.isAllDay()),t.eventDef,t.eventInstance)}function s(t){return t.dateProfile.unzonedRange}function a(t){return t.componentFootprint}Object.defineProperty(e,"__esModule",{value:!0});var l=n(211),u=n(36),c=n(12);e.eventDefsToEventInstances=i,e.eventInstanceToEventRange=o,e.eventRangeToEventFootprint=r,e.eventInstanceToUnzonedRange=s,e.eventFootprintToComponentFootprint=a},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,n){this.componentFootprint=t,this.eventDef=e,n&&(this.eventInstance=n)}return t.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},t}();e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(17),r=n(34),s=n(50),a=n(13),l=function(){function t(){}return t.createFromRawProps=function(e,n,a){var l,u,c,d,h=e.def,f={},p={},m={},g={},v=null,y=null;for(l in n)o.default.isStandardProp(l)?f[l]=n[l]:h.isStandardProp(l)?p[l]=n[l]:h.miscProps[l]!==n[l]&&(m[l]=n[l]);return u=o.default.parse(f,h.source),u&&(c=s.default.createFromDiff(e.dateProfile,u,a)),p.id!==h.id&&(v=p.id),i.isArraysEqual(p.className,h.className)||(y=p.className),r.default.copyVerbatimStandardProps(p,g),d=new t,d.eventDefId=v,d.className=y,d.verbatimStandardProps=g,d.miscProps=m,c&&(d.dateMutation=c),d},t.prototype.mutateSingle=function(t){var e;return this.dateMutation&&(e=t.dateProfile,t.dateProfile=this.dateMutation.buildNewDateProfile(e,t.source.calendar)),null!=this.eventDefId&&(t.id=r.default.normalizeId(t.rawId=this.eventDefId)),this.className&&(t.className=this.className),this.verbatimStandardProps&&a.default.copyVerbatimStandardProps(this.verbatimStandardProps,t),this.miscProps&&t.applyMiscProps(this.miscProps),e?function(){t.dateProfile=e}:function(){}},t.prototype.setDateMutation=function(t){t&&!t.isEmpty()?this.dateMutation=t:this.dateMutation=null},t.prototype.isEmpty=function(){return!this.dateMutation},t}();e.default=l},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={sourceClasses:[],registerClass:function(t){this.sourceClasses.unshift(t)},parse:function(t,e){var n,i,o=this.sourceClasses;for(n=0;n<o.length;n++)if(i=o[n].parse(t,e))return i}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(33),a=function(t){function e(e){var n=t.call(this)||this;return e=e||{},n.overflowX=e.overflowX||e.overflow||"auto",n.overflowY=e.overflowY||e.overflow||"auto",n}return i.__extends(e,t),e.prototype.render=function(){this.el=this.renderEl(),this.applyOverflow()},e.prototype.renderEl=function(){return this.scrollEl=o('<div class="fc-scroller"></div>')},e.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},e.prototype.destroy=function(){this.el.remove()},e.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},e.prototype.lockOverflow=function(t){var e=this.overflowX,n=this.overflowY;t=t||this.getScrollbarWidths(),"auto"===e&&(e=t.top||t.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===n&&(n=t.left||t.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":e,"overflow-y":n})},e.prototype.setHeight=function(t){this.scrollEl.height(t)},e.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},e.prototype.setScrollTop=function(t){this.scrollEl.scrollTop(t)},e.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},e.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},e.prototype.getScrollbarWidths=function(){return r.getScrollbarWidths(this.scrollEl)},e}(s.default);e.default=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(219),a=n(21),l=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.segSelector=".fc-event-container > *",i.dateSelectingClass&&(i.dateClicking=new i.dateClickingClass(i)),i.dateSelectingClass&&(i.dateSelecting=new i.dateSelectingClass(i)),i.eventPointingClass&&(i.eventPointing=new i.eventPointingClass(i)),i.eventDraggingClass&&i.eventPointing&&(i.eventDragging=new i.eventDraggingClass(i,i.eventPointing)),i.eventResizingClass&&i.eventPointing&&(i.eventResizing=new i.eventResizingClass(i,i.eventPointing)),i.externalDroppingClass&&(i.externalDropping=new i.externalDroppingClass(i)),i}return i.__extends(e,t),e.prototype.setElement=function(e){t.prototype.setElement.call(this,e),this.dateClicking&&this.dateClicking.bindToEl(e),this.dateSelecting&&this.dateSelecting.bindToEl(e),this.bindAllSegHandlersToEl(e)},e.prototype.removeElement=function(){this.endInteractions(),t.prototype.removeElement.call(this)},e.prototype.executeEventUnrender=function(){this.endInteractions(),t.prototype.executeEventUnrender.call(this)},e.prototype.bindGlobalHandlers=function(){t.prototype.bindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.bindToDocument()},e.prototype.unbindGlobalHandlers=function(){t.prototype.unbindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.unbindFromDocument()},e.prototype.bindDateHandlerToEl=function(t,e,n){var i=this;this.el.on(e,function(t){if(!o(t.target).is(i.segSelector+":not(.fc-helper),"+i.segSelector+":not(.fc-helper) *,.fc-more,a[data-goto]"))return n.call(i,t)})},e.prototype.bindAllSegHandlersToEl=function(t){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(e){e&&e.bindToEl(t)})},e.prototype.bindSegHandlerToEl=function(t,e,n){var i=this;t.on(e,this.segSelector,function(t){var e=o(t.currentTarget);if(!e.is(".fc-helper")){var r=e.data("fc-seg");if(r&&!i.shouldIgnoreEventPointing())return n.call(i,r,t)}})},e.prototype.shouldIgnoreMouse=function(){return a.default.get().shouldIgnoreMouse()},e.prototype.shouldIgnoreTouch=function(){var t=this._getView();return t.isSelected||t.selectedEvent},e.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},e.prototype.canStartSelection=function(t,e){return r.getEvIsTouch(e)&&!this.canStartResize(t,e)&&(this.isEventDefDraggable(t.footprint.eventDef)||this.isEventDefResizable(t.footprint.eventDef))},e.prototype.canStartDrag=function(t,e){return!this.canStartResize(t,e)&&this.isEventDefDraggable(t.footprint.eventDef)},e.prototype.canStartResize=function(t,e){var n=this._getView(),i=t.footprint.eventDef;return(!r.getEvIsTouch(e)||n.isEventDefSelected(i))&&this.isEventDefResizable(i)&&o(e.target).is(".fc-resizer")},e.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(t){t&&t.end()})},e.prototype.isEventDefDraggable=function(t){return this.isEventDefStartEditable(t)},e.prototype.isEventDefStartEditable=function(t){var e=t.isStartExplicitlyEditable();return null==e&&null==(e=this.opt("eventStartEditable"))&&(e=this.isEventDefGenerallyEditable(t)),e},e.prototype.isEventDefGenerallyEditable=function(t){var e=t.isExplicitlyEditable();return null==e&&(e=this.opt("editable")),e},e.prototype.isEventDefResizableFromStart=function(t){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(t)},e.prototype.isEventDefResizableFromEnd=function(t){return this.isEventDefResizable(t)},e.prototype.isEventDefResizable=function(t){var e=t.isDurationExplicitlyEditable();return null==e&&null==(e=this.opt("eventDurationEditable"))&&(e=this.isEventDefGenerallyEditable(t)),e},e.prototype.diffDates=function(t,e){return this.largeUnit?r.diffByUnit(t,e,this.largeUnit):r.diffDayTime(t,e)},e.prototype.isEventInstanceGroupAllowed=function(t){var e,n=this._getView(),i=this.dateProfile,o=this.eventRangesToEventFootprints(t.getAllEventRanges());for(e=0;e<o.length;e++)if(!i.validUnzonedRange.containsRange(o[e].componentFootprint.unzonedRange))return!1;return n.calendar.constraints.isEventInstanceGroupAllowed(t)},e.prototype.isExternalInstanceGroupAllowed=function(t){var e,n=this._getView(),i=this.dateProfile,o=this.eventRangesToEventFootprints(t.getAllEventRanges());for(e=0;e<o.length;e++)if(!i.validUnzonedRange.containsRange(o[e].componentFootprint.unzonedRange))return!1;for(e=0;e<o.length;e++)if(!n.calendar.constraints.isSelectionFootprintAllowed(o[e].componentFootprint))return!1;return!0},e}(s.default);e.default=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(0),s=n(4),a=n(218),l=n(221),u=n(40),c=n(21),d=n(5),h=function(t){function e(e,n){var i=t.call(this,null,n.options)||this;return i.batchRenderDepth=0,i.isSelected=!1,i.calendar=e,i.viewSpec=n,i.type=n.type,i.name=i.type,i.initRenderQueue(),i.initHiddenDays(),i.dateProfileGenerator=new i.dateProfileGeneratorClass(i),i.bindBaseRenderHandlers(),i.eventOrderSpecs=s.parseFieldSpecs(i.opt("eventOrder")),i.initialize&&i.initialize(),i}return i.__extends(e,t),e.prototype._getView=function(){return this},e.prototype.opt=function(t){return this.options[t]},e.prototype.initRenderQueue=function(){this.renderQueue=new a.default({event:this.opt("eventRenderWait")}),this.renderQueue.on("start",this.onRenderQueueStart.bind(this)),this.renderQueue.on("stop",this.onRenderQueueStop.bind(this)),this.on("before:change",this.startBatchRender),this.on("change",this.stopBatchRender)},e.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight(),this.addScroll(this.queryScroll())},e.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll(),this.calendar.thawContentHeight()},e.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},e.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},e.prototype.requestRender=function(t,e,n){this.renderQueue.queue(t,e,n)},e.prototype.whenSizeUpdated=function(t){this.renderQueue.isRunning?this.renderQueue.one("stop",t.bind(this)):t.call(this)},e.prototype.computeTitle=function(t){var e;return e=/^(year|month)$/.test(t.currentRangeUnit)?t.currentUnzonedRange:t.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(e.startMs,t.isRangeAllDay),end:this.calendar.msToMoment(e.endMs,t.isRangeAllDay)},t.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(t),this.opt("titleRangeSeparator"))},e.prototype.computeTitleFormat=function(t){var e=t.currentRangeUnit;return"year"===e?"YYYY":"month"===e?this.opt("monthYearFormat"):t.currentUnzonedRange.as("days")>1?"ll":"LL"},e.prototype.setDate=function(t){var e=this.get("dateProfile"),n=this.dateProfileGenerator.build(t,void 0,!0);e&&e.activeUnzonedRange.equals(n.activeUnzonedRange)||this.set("dateProfile",n)},e.prototype.unsetDate=function(){this.unset("dateProfile")},e.prototype.fetchInitialEvents=function(t){var e=this.calendar,n=t.isRangeAllDay&&!this.usesMinMaxTime;return e.requestEvents(e.msToMoment(t.activeUnzonedRange.startMs,n),e.msToMoment(t.activeUnzonedRange.endMs,n))},e.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},e.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},e.prototype.setEvents=function(t){this.set("currentEvents",t),this.set("hasEvents",!0)},e.prototype.unsetEvents=function(){this.unset("currentEvents"),this.unset("hasEvents")},e.prototype.resetEvents=function(t){this.startBatchRender(),this.unsetEvents(),this.setEvents(t),this.stopBatchRender()},e.prototype.requestDateRender=function(t){var e=this;this.requestRender(function(){e.executeDateRender(t)},"date","init")},e.prototype.requestDateUnrender=function(){var t=this;this.requestRender(function(){t.executeDateUnrender()},"date","destroy")},e.prototype.executeDateRender=function(e){t.prototype.executeDateRender.call(this,e),this.render&&this.render(),this.trigger("datesRendered"),this.addScroll({isDateInit:!0}),this.startNowIndicator()},e.prototype.executeDateUnrender=function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.destroy&&this.destroy(),t.prototype.executeDateUnrender.call(this)},e.prototype.bindBaseRenderHandlers=function(){var t=this;this.on("datesRendered",function(){t.whenSizeUpdated(t.triggerViewRender)}),this.on("before:datesUnrendered",function(){t.triggerViewDestroy()})},e.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},e.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},e.prototype.requestEventsRender=function(t){var e=this;this.requestRender(function(){e.executeEventRender(t),e.whenSizeUpdated(e.triggerAfterEventsRendered)},"event","init")},e.prototype.requestEventsUnrender=function(){var t=this;this.requestRender(function(){t.triggerBeforeEventsDestroyed(),t.executeEventUnrender()},"event","destroy")},e.prototype.requestBusinessHoursRender=function(t){var e=this;this.requestRender(function(){e.renderBusinessHours(t)},"businessHours","init")},e.prototype.requestBusinessHoursUnrender=function(){var t=this;this.requestRender(function(){t.unrenderBusinessHours()},"businessHours","destroy")},e.prototype.bindGlobalHandlers=function(){t.prototype.bindGlobalHandlers.call(this),this.listenTo(c.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},e.prototype.unbindGlobalHandlers=function(){t.prototype.unbindGlobalHandlers.call(this),this.stopListeningTo(c.default.get())},e.prototype.startNowIndicator=function(){var t,e,n,i=this;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit())&&(e=s.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(t).add(1,t).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){i.nowIndicatorTimeoutID=null,e(),n=+r.duration(1,t),n=Math.max(100,n),i.nowIndicatorIntervalID=setInterval(e,n)},n))},e.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},e.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},e.prototype.updateSize=function(e,n,i){this.setHeight?this.setHeight(e,n):t.prototype.updateSize.call(this,e,n,i),this.updateNowIndicator()},e.prototype.addScroll=function(t){var e=this.queuedScroll||(this.queuedScroll={});o.extend(e,t)},e.prototype.popScroll=function(){this.applyQueuedScroll(),this.queuedScroll=null},e.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},e.prototype.queryScroll=function(){var t={};return this.isDatesRendered&&o.extend(t,this.queryDateScroll()),t},e.prototype.applyScroll=function(t){t.isDateInit&&this.isDatesRendered&&o.extend(t,this.computeInitialDateScroll()),this.isDatesRendered&&this.applyDateScroll(t)},e.prototype.computeInitialDateScroll=function(){return{}},e.prototype.queryDateScroll=function(){return{}},e.prototype.applyDateScroll=function(t){},e.prototype.reportEventDrop=function(t,e,n,i){var o=this.calendar.eventManager,s=o.mutateEventsWithId(t.def.id,e),a=e.dateMutation;a&&(t.dateProfile=a.buildNewDateProfile(t.dateProfile,this.calendar)),this.triggerEventDrop(t,a&&a.dateDelta||r.duration(),s,n,i)},e.prototype.triggerEventDrop=function(t,e,n,i,o){this.publiclyTrigger("eventDrop",{context:i[0],args:[t.toLegacy(),e,n,o,{},this]})},e.prototype.reportExternalDrop=function(t,e,n,i,o,r){e&&this.calendar.eventManager.addEventDef(t,n),this.triggerExternalDrop(t,e,i,o,r)},e.prototype.triggerExternalDrop=function(t,e,n,i,o){this.publiclyTrigger("drop",{context:n[0],args:[t.dateProfile.start.clone(),i,o,this]}),e&&this.publiclyTrigger("eventReceive",{context:this,args:[t.buildInstance().toLegacy(),this]})},e.prototype.reportEventResize=function(t,e,n,i){var o=this.calendar.eventManager,r=o.mutateEventsWithId(t.def.id,e);t.dateProfile=e.dateMutation.buildNewDateProfile(t.dateProfile,this.calendar),this.triggerEventResize(t,e.dateMutation.endDelta,r,n,i)},e.prototype.triggerEventResize=function(t,e,n,i,o){this.publiclyTrigger("eventResize",{context:i[0],args:[t.toLegacy(),e,n,o,{},this]})},e.prototype.select=function(t,e){this.unselect(e),this.renderSelectionFootprint(t),this.reportSelection(t,e)},e.prototype.renderSelectionFootprint=function(e){this.renderSelection?this.renderSelection(e.toLegacy(this.calendar)):t.prototype.renderSelectionFootprint.call(this,e)},e.prototype.reportSelection=function(t,e){this.isSelected=!0,this.triggerSelect(t,e)},e.prototype.triggerSelect=function(t,e){var n=this.calendar.footprintToDateProfile(t);this.publiclyTrigger("select",{context:this,args:[n.start,n.end,e,this]})},e.prototype.unselect=function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[t,this]}))},e.prototype.selectEventInstance=function(t){this.selectedEventInstance&&this.selectedEventInstance===t||(this.unselectEventInstance(),this.getEventSegs().forEach(function(e){e.footprint.eventInstance===t&&e.el&&e.el.addClass("fc-selected")}),this.selectedEventInstance=t)},e.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(t){t.el&&t.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},e.prototype.isEventDefSelected=function(t){return this.selectedEventInstance&&this.selectedEventInstance.def.id===t.id},e.prototype.handleDocumentMousedown=function(t){s.isPrimaryMouseButton(t)&&this.processUnselect(t)},e.prototype.processUnselect=function(t){this.processRangeUnselect(t),this.processEventUnselect(t)},e.prototype.processRangeUnselect=function(t){var e;this.isSelected&&this.opt("unselectAuto")&&((e=this.opt("unselectCancel"))&&o(t.target).closest(e).length||this.unselect(t))},e.prototype.processEventUnselect=function(t){this.selectedEventInstance&&(o(t.target).closest(".fc-selected").length||this.unselectEventInstance())},e.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},e.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},e.prototype.triggerDayClick=function(t,e,n){var i=this.calendar.footprintToDateProfile(t);this.publiclyTrigger("dayClick",{context:e,args:[i.start,n,this]})},e.prototype.isDateInOtherMonth=function(t,e){return!1},e.prototype.getUnzonedRangeOption=function(t){var e=this.opt(t);if("function"==typeof e&&(e=e.apply(null,Array.prototype.slice.call(arguments,1))),e)return this.calendar.parseUnzonedRange(e)},e.prototype.initHiddenDays=function(){var t,e=this.opt("hiddenDays")||[],n=[],i=0;for(!1===this.opt("weekends")&&e.push(0,6),t=0;t<7;t++)(n[t]=-1!==o.inArray(t,e))||i++;if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(t){var e=t.getStart(),n=t.getEnd();return e&&(e=this.skipHiddenDays(e)),n&&(n=this.skipHiddenDays(n,-1,!0)),null===e||null===n||e<n?new d.default(e,n):null},e.prototype.isHiddenDay=function(t){return r.isMoment(t)&&(t=t.day()),this.isHiddenDayHash[t]},e.prototype.skipHiddenDays=function(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);for(var i=t.clone();this.isHiddenDayHash[(i.day()+(n?e:0)+7)%7];)i.add(e,"days");return i},e}(u.default);e.default=h,h.prototype.usesMinMaxTime=!1,h.prototype.dateProfileGeneratorClass=l.default,h.watch("displayingDates",["isInDom","dateProfile"],function(t){this.requestDateRender(t.dateProfile)},function(){this.requestDateUnrender()}),h.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(t){this.requestBusinessHoursRender(t.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()}),h.watch("initialEvents",["dateProfile"],function(t){return this.fetchInitialEvents(t.dateProfile)}),h.watch("bindingEvents",["initialEvents"],function(t){this.setEvents(t.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),h.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),h.watch("title",["dateProfile"],function(t){return this.title=this.computeTitle(t.dateProfile)}),h.watch("legacyDateProps",["dateProfile"],function(t){var e=this.calendar,n=t.dateProfile;this.start=e.msToMoment(n.activeUnzonedRange.startMs,n.isRangeAllDay),this.end=e.msToMoment(n.activeUnzonedRange.endMs,n.isRangeAllDay),this.intervalStart=e.msToMoment(n.currentUnzonedRange.startMs,n.isRangeAllDay),this.intervalEnd=e.msToMoment(n.currentUnzonedRange.endMs,n.isRangeAllDay)})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=function(){function t(t,e){this.view=t._getView(),this.component=t,this.fillRenderer=e}return t.prototype.opt=function(t){return this.view.opt(t)},t.prototype.rangeUpdated=function(){var t,e;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat(),t=this.opt("displayEventTime"),null==t&&(t=this.computeDisplayEventTime()),e=this.opt("displayEventEnd"),null==e&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},t.prototype.render=function(t){var e,n,i,o=this.component._getDateProfile(),r=[],s=[];for(e in t)n=t[e],i=n.sliceRenderRanges(o.activeUnzonedRange),n.getEventDef().hasBgRendering()?r.push.apply(r,i):s.push.apply(s,i);this.renderBgRanges(r),this.renderFgRanges(s)},t.prototype.unrender=function(){this.unrenderBgRanges(),this.unrenderFgRanges()},t.prototype.renderFgRanges=function(t){var e=this.component.eventRangesToEventFootprints(t),n=this.component.eventFootprintsToSegs(e);n=this.renderFgSegEls(n),!1!==this.renderFgSegs(n)&&(this.fgSegs=n)},t.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]),this.fgSegs=null},t.prototype.renderBgRanges=function(t){var e=this.component.eventRangesToEventFootprints(t),n=this.component.eventFootprintsToSegs(e);!1!==this.renderBgSegs(n)&&(this.bgSegs=n)},t.prototype.unrenderBgRanges=function(){this.unrenderBgSegs(),this.bgSegs=null},t.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},t.prototype.renderFgSegs=function(t){return!1},t.prototype.unrenderFgSegs=function(t){},t.prototype.renderBgSegs=function(t){var e=this;if(!this.fillRenderer)return!1;this.fillRenderer.renderSegs("bgEvent",t,{getClasses:function(t){return e.getBgClasses(t.footprint.eventDef)},getCss:function(t){return{"background-color":e.getBgColor(t.footprint.eventDef)}},filterEl:function(t,n){return e.filterEventRenderEl(t.footprint,n)}})},t.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},t.prototype.renderFgSegEls=function(t,e){var n=this;void 0===e&&(e=!1);var o,r=this.view.hasPublicHandlers("eventRender"),s="",a=[];if(t.length){for(o=0;o<t.length;o++)this.beforeFgSegHtml(t[o]),s+=this.fgSegHtml(t[o],e);i(s).each(function(e,o){var s=t[e],l=i(o);r&&(l=n.filterEventRenderEl(s.footprint,l)),l&&(l.data("fc-seg",s),s.el=l,a.push(s))})}return a},t.prototype.beforeFgSegHtml=function(t){},t.prototype.fgSegHtml=function(t,e){},t.prototype.getSegClasses=function(t,e,n){var i=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(t.footprint.eventDef));return e&&i.push("fc-draggable"),n&&i.push("fc-resizable"),this.view.isEventDefSelected(t.footprint.eventDef)&&i.push("fc-selected"),i},t.prototype.filterEventRenderEl=function(t,e){var n=t.getEventLegacy(),o=this.view.publiclyTrigger("eventRender",{context:n,args:[n,e,this.view]});return!1===o?e=null:o&&!0!==o&&(e=i(o)),e},t.prototype.getTimeText=function(t,e,n){return this._getTimeText(t.eventInstance.dateProfile.start,t.eventInstance.dateProfile.end,t.componentFootprint.isAllDay,e,n)},t.prototype._getTimeText=function(t,e,n,i,o){return null==i&&(i=this.eventTimeFormat),null==o&&(o=this.displayEventEnd),this.displayEventTime&&!n?o&&e?this.view.formatRange({start:t,end:e},!1,i):t.format(i):""},t.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},t.prototype.computeDisplayEventTime=function(){return!0},t.prototype.computeDisplayEventEnd=function(){return!0},t.prototype.getBgClasses=function(t){var e=this.getClasses(t);return e.push("fc-bgevent"),e},t.prototype.getClasses=function(t){var e,n=this.getStylingObjs(t),i=[];for(e=0;e<n.length;e++)i.push.apply(i,n[e].eventClassName||n[e].className||[]);return i},t.prototype.getSkinCss=function(t){return{"background-color":this.getBgColor(t),"border-color":this.getBorderColor(t),color:this.getTextColor(t)}},t.prototype.getBgColor=function(t){var e,n,i=this.getStylingObjs(t);for(e=0;e<i.length&&!n;e++)n=i[e].eventBackgroundColor||i[e].eventColor||i[e].backgroundColor||i[e].color;return n||(n=this.opt("eventBackgroundColor")||this.opt("eventColor")),n},t.prototype.getBorderColor=function(t){var e,n,i=this.getStylingObjs(t);for(e=0;e<i.length&&!n;e++)n=i[e].eventBorderColor||i[e].eventColor||i[e].borderColor||i[e].color;return n||(n=this.opt("eventBorderColor")||this.opt("eventColor")),n},t.prototype.getTextColor=function(t){var e,n,i=this.getStylingObjs(t);for(e=0;e<i.length&&!n;e++)n=i[e].eventTextColor||i[e].textColor;return n||(n=this.opt("eventTextColor")),n},t.prototype.getStylingObjs=function(t){var e=this.getFallbackStylingObjs(t);return e.unshift(t),e},t.prototype.getFallbackStylingObjs=function(t){return[t.source]},t.prototype.sortEventSegs=function(t){t.sort(o.proxy(this,"compareEventSegs"))},t.prototype.compareEventSegs=function(t,e){var n=t.footprint,i=e.footprint,r=n.componentFootprint,s=i.componentFootprint,a=r.unzonedRange,l=s.unzonedRange;return a.startMs-l.startMs||l.endMs-l.startMs-(a.endMs-a.startMs)||s.isAllDay-r.isAllDay||o.compareByFieldSpecs(n.eventDef,i.eventDef,this.view.eventOrderSpecs,n.eventDef.miscProps,i.eventDef.miscProps)},t}();e.default=r},,,,,function(t,e,n){function i(t){return"en"!==t.locale()?t.clone().locale("en"):t}function o(t,e){return f(a(e).fakeFormatString,t)}function r(t,e,n,i,o){var r;return t=v.default.parseZone(t),e=v.default.parseZone(e),r=t.localeData(),n=r.longDateFormat(n)||n,s(a(n),t,e,i||" - ",o)}function s(t,e,n,i,o){var r,s,a,l=t.sameUnits,u=e.clone().stripZone(),c=n.clone().stripZone(),d=p(t.fakeFormatString,e),h=p(t.fakeFormatString,n),f="",g="",v="",y="",b="";for(r=0;r<l.length&&(!l[r]||u.isSame(c,l[r]));r++)f+=d[r];for(s=l.length-1;s>r&&(!l[s]||u.isSame(c,l[s]))&&(s-1!==r||"."!==d[s]);s--)g=d[s]+g;for(a=r;a<=s;a++)v+=d[a],y+=h[a];return(v||y)&&(b=o?y+i+v:v+i+y),m(f+b+g)}function a(t){return k[t]||(k[t]=l(t))}function l(t){var e=u(t);return{fakeFormatString:d(e),sameUnits:h(e)}}function u(t){for(var e,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;e=i.exec(t);)e[1]?n.push.apply(n,c(e[1])):e[2]?n.push({maybe:u(e[2])}):e[3]?n.push({token:e[3]}):e[5]&&n.push.apply(n,c(e[5]));return n}function c(t){return". "===t?["."," "]:[t]}function d(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],"string"==typeof n?i.push("["+n+"]"):n.token?n.token in x?i.push(b+"["+n.token+"]"):i.push(n.token):n.maybe&&i.push(w+d(n.maybe)+w);return i.join(y)}function h(t){var e,n,i,o=[];for(e=0;e<t.length;e++)n=t[e],n.token?(i=D[n.token.charAt(0)],o.push(i?i.unit:"second")):n.maybe?o.push.apply(o,h(n.maybe)):o.push(null);return o}function f(t,e){return m(p(t,e).join(""))}function p(t,e){var n,i,o=[],r=v.oldMomentFormat(e,t),s=r.split(y);for(n=0;n<s.length;n++)i=s[n],i.charAt(0)===b?o.push(x[i.substring(1)](e)):o.push(i);return o}function m(t){return t.replace(_,function(t,e){return e.match(/[1-9]/)?e:""})}function g(t){var e,n,i,o,r=u(t);for(e=0;e<r.length;e++)n=r[e],n.token&&(i=D[n.token.charAt(0)])&&(!o||i.value>o.value)&&(o=i);return o?o.unit:null}Object.defineProperty(e,"__esModule",{value:!0});var v=n(10);v.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?o(this,arguments[0]):this._ambigTime?v.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?v.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?v.oldMomentFormat(i(this)):v.oldMomentProto.format.apply(this,arguments)},v.newMomentProto.toISOString=function(){return this._ambigTime?v.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?v.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?v.oldMomentProto.toISOString.apply(i(this),arguments):v.oldMomentProto.toISOString.apply(this,arguments)};var y="\v",b="",w="",_=new RegExp(w+"([^"+w+"]*)"+w,"g"),x={t:function(t){return v.oldMomentFormat(t,"a").charAt(0)},T:function(t){return v.oldMomentFormat(t,"A").charAt(0)}},D={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};e.formatDate=o,e.formatRange=r;var k={};e.queryMostGranularFormatUnit=g},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(33),r=n(11),s=n(7),a=function(t){function e(){var e=t.call(this)||this;return e._watchers={},e._props={},e.applyGlobalWatchers(),e.constructed(),e}return i.__extends(e,t),e.watch=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs)),this.prototype._globalWatchArgs[t]=e},e.prototype.constructed=function(){},e.prototype.applyGlobalWatchers=function(){var t,e=this._globalWatchArgs;for(t in e)this.watch.apply(this,[t].concat(e[t]))},e.prototype.has=function(t){return t in this._props},e.prototype.get=function(t){return void 0===t?this._props:this._props[t]},e.prototype.set=function(t,e){var n;"string"==typeof t?(n={},n[t]=void 0===e?null:e):n=t,this.setProps(n)},e.prototype.reset=function(t){var e,n=this._props,i={};for(e in n)i[e]=void 0;for(e in t)i[e]=t[e];this.setProps(i)},e.prototype.unset=function(t){var e,n,i={};for(e="string"==typeof t?[t]:t,n=0;n<e.length;n++)i[e[n]]=void 0;this.setProps(i)},e.prototype.setProps=function(t){var e,n,i={},o=0;for(e in t)"object"!=typeof(n=t[e])&&n===this._props[e]||(i[e]=n,o++);if(o){this.trigger("before:batchChange",i);for(e in i)n=i[e],this.trigger("before:change",e,n),this.trigger("before:change:"+e,n);for(e in i)n=i[e],void 0===n?delete this._props[e]:this._props[e]=n,this.trigger("change:"+e,n),this.trigger("change",e,n);this.trigger("batchChange",i)}},e.prototype.watch=function(t,e,n,i){var o=this;this.unwatch(t),this._watchers[t]=this._watchDeps(e,function(e){var i=n.call(o,e);i&&i.then?(o.unset(t),i.then(function(e){o.set(t,e)})):o.set(t,i)},function(e){o.unset(t),i&&i.call(o,e)})},e.prototype.unwatch=function(t){var e=this._watchers[t];e&&(delete this._watchers[t],e.teardown())},e.prototype._watchDeps=function(t,e,n){var i=this,o=0,r=t.length,s=0,a={},l=[],u=!1,c=function(t,e,i){1===++o&&s===r&&(u=!0,n(a),u=!1)},d=function(t,n,i){void 0===n?(i||void 0===a[t]||s--,delete a[t]):(i||void 0!==a[t]||s++,a[t]=n),--o||s===r&&(u||e(a))},h=function(t,e){i.on(t,e),l.push([t,e])};return t.forEach(function(t){var e=!1;"?"===t.charAt(0)&&(t=t.substring(1),e=!0),h("before:change:"+t,function(t){c()}),h("change:"+t,function(n){d(t,n,e)})}),t.forEach(function(t){var e=!1;"?"===t.charAt(0)&&(t=t.substring(1),e=!0),i.has(t)?(a[t]=i.get(t),s++):e&&s++}),s===r&&e(a),{teardown:function(){for(var t=0;t<l.length;t++)i.off(l[t][0],l[t][1]);l=null,s===r&&n()},flash:function(){s===r&&(n(),e(a))}}},e.prototype.flash=function(t){var e=this._watchers[t];e&&e.flash()},e}(o.default);e.default=a,a.prototype._globalWatchArgs={},r.default.mixInto(a),s.default.mixInto(a)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(13),s=n(210);e.default={parse:function(t,e){return o.isTimeString(t.start)||i.isDuration(t.start)||o.isTimeString(t.end)||i.isDuration(t.end)?s.default.parse(t,e):r.default.parse(t,e)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(17),r=function(){function t(){this.clearEnd=!1,this.forceTimed=!1,this.forceAllDay=!1}return t.createFromDiff=function(e,n,o){function r(t,e){return o?i.diffByUnit(t,e,o):n.isAllDay()?i.diffDay(t,e):i.diffDayTime(t,e)}var s,a,l,u,c=e.end&&!n.end,d=e.isAllDay()&&!n.isAllDay(),h=!e.isAllDay()&&n.isAllDay();return s=r(n.start,e.start),n.end&&(a=r(n.unzonedRange.getEnd(),e.unzonedRange.getEnd()),l=a.subtract(s)),u=new t,u.clearEnd=c,u.forceTimed=d,u.forceAllDay=h,u.setDateDelta(s),u.setEndDelta(l),u},t.prototype.buildNewDateProfile=function(t,e){var n=t.start.clone(),i=null,r=!1;return t.end&&!this.clearEnd?i=t.end.clone():this.endDelta&&!i&&(i=e.getDefaultEventEnd(t.isAllDay(),n)),this.forceTimed?(r=!0,n.hasTime()||n.time(0),i&&!i.hasTime()&&i.time(0)):this.forceAllDay&&(n.hasTime()&&n.stripTime(),i&&i.hasTime()&&i.stripTime()),this.dateDelta&&(r=!0,n.add(this.dateDelta),i&&i.add(this.dateDelta)),this.endDelta&&(r=!0,i.add(this.endDelta)),this.startDelta&&(r=!0,n.add(this.startDelta)),r&&(n=e.applyTimezone(n),i&&(i=e.applyTimezone(i))),!i&&e.opt("forceEventDuration")&&(i=e.getDefaultEventEnd(t.isAllDay(),n)),new o.default(n,i,e)},t.prototype.setDateDelta=function(t){t&&t.valueOf()?this.dateDelta=t:this.dateDelta=null},t.prototype.setStartDelta=function(t){t&&t.valueOf()?this.startDelta=t:this.startDelta=null},t.prototype.setEndDelta=function(t){t&&t.valueOf()?this.endDelta=t:this.endDelta=null},t.prototype.isEmpty=function(){return!(this.clearEnd||this.forceTimed||this.forceAllDay||this.dateDelta||this.startDelta||this.endDelta)},t}();e.default=r},function(t,e,n){function i(t,e){a[t]=e}function o(t){return t?!0===t?s.default:a[t]:r.default}Object.defineProperty(e,"__esModule",{value:!0});var r=n(213),s=n(214),a={};e.defineThemeSystem=i,e.getThemeSystemClass=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(20),a=n(6),l=n(13),u=function(t){function e(e){var n=t.call(this,e)||this;return n.eventDefs=[],n}return i.__extends(e,t),e.parse=function(t,e){var n;return o.isArray(t.events)?n=t:o.isArray(t)&&(n={events:t}),!!n&&a.default.parse.call(this,n,e)},e.prototype.setRawEventDefs=function(t){this.rawEventDefs=t,this.eventDefs=this.parseEventDefs(t)},e.prototype.fetch=function(t,e,n){var i,o=this.eventDefs;if(null!=this.currentTimezone&&this.currentTimezone!==n)for(i=0;i<o.length;i++)o[i]instanceof l.default&&o[i].rezone();return this.currentTimezone=n,s.default.resolve(o)},e.prototype.addEventDef=function(t){this.eventDefs.push(t)},e.prototype.removeEventDefsById=function(t){return r.removeMatching(this.eventDefs,function(e){return e.id===t})},e.prototype.removeAllEventDefs=function(){this.eventDefs=[]},e.prototype.getPrimitive=function(){return this.rawEventDefs},e.prototype.applyManualStandardProps=function(e){var n=t.prototype.applyManualStandardProps.call(this,e);return this.setRawEventDefs(e.events),n},e}(a.default);e.default=u,u.defineStandardProps({events:!1})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=function(){function t(t){this.isHorizontal=!1,this.isVertical=!1,this.els=i(t.els),this.isHorizontal=t.isHorizontal,this.isVertical=t.isVertical,this.forcedOffsetParentEl=t.offsetParent?i(t.offsetParent):null}return t.prototype.build=function(){var t=this.forcedOffsetParentEl;!t&&this.els.length>0&&(t=this.els.eq(0).offsetParent()),this.origin=t?t.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},t.prototype.clear=function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},t.prototype.ensureBuilt=function(){this.origin||this.build()},t.prototype.buildElHorizontals=function(){var t=[],e=[];this.els.each(function(n,o){var r=i(o),s=r.offset().left,a=r.outerWidth();t.push(s),e.push(s+a)}),this.lefts=t,this.rights=e},t.prototype.buildElVerticals=function(){var t=[],e=[];this.els.each(function(n,o){var r=i(o),s=r.offset().top,a=r.outerHeight();t.push(s),e.push(s+a)}),this.tops=t,this.bottoms=e},t.prototype.getHorizontalIndex=function(t){this.ensureBuilt();var e,n=this.lefts,i=this.rights,o=n.length;for(e=0;e<o;e++)if(t>=n[e]&&t<i[e])return e},t.prototype.getVerticalIndex=function(t){this.ensureBuilt();var e,n=this.tops,i=this.bottoms,o=n.length;for(e=0;e<o;e++)if(t>=n[e]&&t<i[e])return e},t.prototype.getLeftOffset=function(t){return this.ensureBuilt(),this.lefts[t]},t.prototype.getLeftPosition=function(t){return this.ensureBuilt(),this.lefts[t]-this.origin.left},t.prototype.getRightOffset=function(t){return this.ensureBuilt(),this.rights[t]},t.prototype.getRightPosition=function(t){return this.ensureBuilt(),this.rights[t]-this.origin.left},t.prototype.getWidth=function(t){return this.ensureBuilt(),this.rights[t]-this.lefts[t]},t.prototype.getTopOffset=function(t){return this.ensureBuilt(),this.tops[t]},t.prototype.getTopPosition=function(t){return this.ensureBuilt(),this.tops[t]-this.origin.top},t.prototype.getBottomOffset=function(t){return this.ensureBuilt(),this.bottoms[t]},t.prototype.getBottomPosition=function(t){return this.ensureBuilt(),this.bottoms[t]-this.origin.top},t.prototype.getHeight=function(t){return this.ensureBuilt(),this.bottoms[t]-this.tops[t]},t.prototype.queryBoundingRect=function(){var t;return this.els.length>0&&(t=o.getScrollParent(this.els.eq(0)),!t.is(document))?o.getClientRect(t):null},t.prototype.isPointInBounds=function(t,e){return this.isLeftInBounds(t)&&this.isTopInBounds(e)},t.prototype.isLeftInBounds=function(t){return!this.boundingRect||t>=this.boundingRect.left&&t<this.boundingRect.right},t.prototype.isTopInBounds=function(t){return!this.boundingRect||t>=this.boundingRect.top&&t<this.boundingRect.bottom},t}();e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=n(7),s=n(21),a=function(){function t(t){this.isInteracting=!1,this.isDistanceSurpassed=!1,this.isDelayEnded=!1,this.isDragging=!1,this.isTouch=!1,this.isGeneric=!1,this.shouldCancelTouchScroll=!0,this.scrollAlwaysKills=!1,this.isAutoScroll=!1,this.scrollSensitivity=30,this.scrollSpeed=200,this.scrollIntervalMs=50,this.options=t||{}}return t.prototype.startInteraction=function(t,e){if(void 0===e&&(e={}),"mousedown"===t.type){if(s.default.get().shouldIgnoreMouse())return;if(!o.isPrimaryMouseButton(t))return;t.preventDefault()}this.isInteracting||(this.delay=o.firstDefined(e.delay,this.options.delay,0),this.minDistance=o.firstDefined(e.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,o.preventSelection(i("body")),this.isInteracting=!0,this.isTouch=o.getEvIsTouch(t),this.isGeneric="dragstart"===t.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=o.getEvX(t),this.originY=o.getEvY(t),this.scrollEl=o.getScrollParent(i(t.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(t),this.startDelay(t),this.minDistance||this.handleDistanceSurpassed(t))},t.prototype.handleInteractionStart=function(t){this.trigger("interactionStart",t)},t.prototype.endInteraction=function(t,e){this.isInteracting&&(this.endDrag(t),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(t,e),o.allowSelection(i("body")))},t.prototype.handleInteractionEnd=function(t,e){this.trigger("interactionEnd",t,e||!1)},t.prototype.bindHandlers=function(){var t=s.default.get();this.isGeneric?this.listenTo(i(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(t,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(t,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(t,{selectstart:o.preventDefault,contextmenu:o.preventDefault})},t.prototype.unbindHandlers=function(){this.stopListeningTo(s.default.get()),this.stopListeningTo(i(document))},t.prototype.startDrag=function(t,e){this.startInteraction(t,e),this.isDragging||(this.isDragging=!0,this.handleDragStart(t))},t.prototype.handleDragStart=function(t){this.trigger("dragStart",t)},t.prototype.handleMove=function(t){var e=o.getEvX(t)-this.originX,n=o.getEvY(t)-this.originY,i=this.minDistance;this.isDistanceSurpassed||e*e+n*n>=i*i&&this.handleDistanceSurpassed(t),this.isDragging&&this.handleDrag(e,n,t)},t.prototype.handleDrag=function(t,e,n){this.trigger("drag",t,e,n),this.updateAutoScroll(n)},t.prototype.endDrag=function(t){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(t))},t.prototype.handleDragEnd=function(t){this.trigger("dragEnd",t)},t.prototype.startDelay=function(t){var e=this;this.delay?this.delayTimeoutId=setTimeout(function(){e.handleDelayEnd(t)},this.delay):this.handleDelayEnd(t)},t.prototype.handleDelayEnd=function(t){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(t)},t.prototype.handleDistanceSurpassed=function(t){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(t)},t.prototype.handleTouchMove=function(t){this.isDragging&&this.shouldCancelTouchScroll&&t.preventDefault(),this.handleMove(t)},t.prototype.handleMouseMove=function(t){this.handleMove(t)},t.prototype.handleTouchScroll=function(t){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(t,!0)},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.options[t]&&this.options[t].apply(this,e),this["_"+t]&&this["_"+t].apply(this,e)},t.prototype.initAutoScroll=function(){var t=this.scrollEl;this.isAutoScroll=this.options.scroll&&t&&!t.is(window)&&!t.is(document),this.isAutoScroll&&this.listenTo(t,"scroll",o.debounce(this.handleDebouncedScroll,100))},t.prototype.destroyAutoScroll=function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},t.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=o.getOuterRect(this.scrollEl))},t.prototype.updateAutoScroll=function(t){var e,n,i,r,s=this.scrollSensitivity,a=this.scrollBounds,l=0,u=0;a&&(e=(s-(o.getEvY(t)-a.top))/s,n=(s-(a.bottom-o.getEvY(t)))/s,i=(s-(o.getEvX(t)-a.left))/s,r=(s-(a.right-o.getEvX(t)))/s,e>=0&&e<=1?l=e*this.scrollSpeed*-1:n>=0&&n<=1&&(l=n*this.scrollSpeed),i>=0&&i<=1?u=i*this.scrollSpeed*-1:r>=0&&r<=1&&(u=r*this.scrollSpeed)),this.setScrollVel(l,u)},t.prototype.setScrollVel=function(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(o.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},t.prototype.constrainScrollVel=function(){var t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},t.prototype.scrollIntervalFunc=function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},t.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},t.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},t.prototype.handleScrollEnd=function(){},t}();e.default=a,r.default.mixInto(a)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(4),r=n(14),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.updateDayTable=function(){for(var t,e,n,i=this,o=i.view,r=o.calendar,s=r.msToUtcMoment(i.dateProfile.renderUnzonedRange.startMs,!0),a=r.msToUtcMoment(i.dateProfile.renderUnzonedRange.endMs,!0),l=-1,u=[],c=[];s.isBefore(a);)o.isHiddenDay(s)?u.push(l+.5):(l++,u.push(l),c.push(s.clone())),s.add(1,"days");if(this.breakOnWeeks){for(e=c[0].day(),t=1;t<c.length&&c[t].day()!==e;t++);n=Math.ceil(c.length/t)}else n=1,t=c.length;this.dayDates=c,this.dayIndices=u,this.daysPerRow=t,this.rowCnt=n,this.updateDayTableCols()},e.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},e.prototype.computeColCnt=function(){return this.daysPerRow},e.prototype.getCellDate=function(t,e){return this.dayDates[this.getCellDayIndex(t,e)].clone()},e.prototype.getCellRange=function(t,e){var n=this.getCellDate(t,e);return{start:n,end:n.clone().add(1,"days")}},e.prototype.getCellDayIndex=function(t,e){return t*this.daysPerRow+this.getColDayIndex(e)},e.prototype.getColDayIndex=function(t){return this.isRTL?this.colCnt-1-t:t},e.prototype.getDateDayIndex=function(t){var e=this.dayIndices,n=t.diff(this.dayDates[0],"days");return n<0?e[0]-1:n>=e.length?e[e.length-1]+1:e[n]},e.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},e.prototype.sliceRangeByRow=function(t){var e,n,i,o,r,s=this.daysPerRow,a=this.view.computeDayRange(t),l=this.getDateDayIndex(a.start),u=this.getDateDayIndex(a.end.clone().subtract(1,"days")),c=[];for(e=0;e<this.rowCnt;e++)n=e*s,i=n+s-1,o=Math.max(l,n),r=Math.min(u,i),o=Math.ceil(o),r=Math.floor(r),o<=r&&c.push({row:e,firstRowDayIndex:o-n,lastRowDayIndex:r-n,isStart:o===l,isEnd:r===u});return c},e.prototype.sliceRangeByDay=function(t){var e,n,i,o,r,s,a=this.daysPerRow,l=this.view.computeDayRange(t),u=this.getDateDayIndex(l.start),c=this.getDateDayIndex(l.end.clone().subtract(1,"days")),d=[];for(e=0;e<this.rowCnt;e++)for(n=e*a,i=n+a-1,o=n;o<=i;o++)r=Math.max(u,o),s=Math.min(c,o),r=Math.ceil(r),s=Math.floor(s),r<=s&&d.push({row:e,firstRowDayIndex:r-n,lastRowDayIndex:s-n,isStart:r===u,isEnd:s===c});return d},e.prototype.renderHeadHtml=function(){var t=this.view.calendar.theme;return'<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},e.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},e.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},e.prototype.renderHeadDateCellsHtml=function(){var t,e,n=[];for(t=0;t<this.colCnt;t++)e=this.getCellDate(0,t),n.push(this.renderHeadDateCellHtml(e));return n.join("")},e.prototype.renderHeadDateCellHtml=function(t,e,n){var i,r=this,s=r.view,a=r.dateProfile.activeUnzonedRange.containsDate(t),l=["fc-day-header",s.calendar.theme.getClass("widgetHeader")];return i="function"==typeof r.opt("columnHeaderHtml")?r.opt("columnHeaderHtml")(t):"function"==typeof r.opt("columnHeaderText")?o.htmlEscape(r.opt("columnHeaderText")(t)):o.htmlEscape(t.format(r.colHeadFormat)),1===r.rowCnt?l=l.concat(r.getDayClasses(t,!0)):l.push("fc-"+o.dayIDs[t.day()]),'<th class="'+l.join(" ")+'"'+(1===(a&&r.rowCnt)?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e>1?' colspan="'+e+'"':"")+(n?" "+n:"")+">"+(a?s.buildGotoAnchorHtml({date:t,forceOff:r.rowCnt>1||1===r.colCnt},i):i)+"</th>"},e.prototype.renderBgTrHtml=function(t){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(t))+this.renderBgCellsHtml(t)+(this.isRTL?this.renderBgIntroHtml(t):"")+"</tr>"},e.prototype.renderBgIntroHtml=function(t){return this.renderIntroHtml()},e.prototype.renderBgCellsHtml=function(t){var e,n,i=[];for(e=0;e<this.colCnt;e++)n=this.getCellDate(t,e),i.push(this.renderBgCellHtml(n));return i.join("")},e.prototype.renderBgCellHtml=function(t,e){var n=this,i=n.view,o=n.dateProfile.activeUnzonedRange.containsDate(t),r=n.getDayClasses(t);return r.unshift("fc-day",i.calendar.theme.getClass("widgetContent")),'<td class="'+r.join(" ")+'"'+(o?' data-date="'+t.format("YYYY-MM-DD")+'"':"")+(e?" "+e:"")+"></td>"},e.prototype.renderIntroHtml=function(){},e.prototype.bookendCells=function(t){var e=this.renderIntroHtml();e&&(this.isRTL?t.append(e):t.prepend(e))},e}(r.default);e.default=s},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.component=t,this.fillRenderer=e}return t.prototype.render=function(t){var e=this.component,n=e._getDateProfile().activeUnzonedRange,i=t.buildEventInstanceGroup(e.hasAllDayBusinessHours,n),o=i?e.eventRangesToEventFootprints(i.sliceRenderRanges(n)):[];this.renderEventFootprints(o)},t.prototype.renderEventFootprints=function(t){var e=this.component.eventFootprintsToSegs(t);this.renderSegs(e),this.segs=e},t.prototype.renderSegs=function(t){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",t,{getClasses:function(t){return["fc-nonbusiness","fc-bgevent"]}})},t.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours"),this.segs=null},t.prototype.getSegs=function(){return this.segs||[]},t}();e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=function(){function t(t){this.fillSegTag="div",this.component=t,this.elsByFill={}}return t.prototype.renderFootprint=function(t,e,n){this.renderSegs(t,this.component.componentFootprintToSegs(e),n)},t.prototype.renderSegs=function(t,e,n){var i;return e=this.buildSegEls(t,e,n),i=this.attachSegEls(t,e),i&&this.reportEls(t,i),e},t.prototype.unrender=function(t){var e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},t.prototype.buildSegEls=function(t,e,n){var o,r=this,s="",a=[];if(e.length){for(o=0;o<e.length;o++)s+=this.buildSegHtml(t,e[o],n);i(s).each(function(t,o){var s=e[t],l=i(o);n.filterEl&&(l=n.filterEl(s,l)),l&&(l=i(l),l.is(r.fillSegTag)&&(s.el=l,a.push(s)))})}return a},t.prototype.buildSegHtml=function(t,e,n){var i=n.getClasses?n.getClasses(e):[],r=o.cssToStr(n.getCss?n.getCss(e):{});return"<"+this.fillSegTag+(i.length?' class="'+i.join(" ")+'"':"")+(r?' style="'+r+'"':"")+" />"},t.prototype.attachSegEls=function(t,e){},t.prototype.reportEls=function(t,e){this.elsByFill[t]?this.elsByFill[t]=this.elsByFill[t].add(e):this.elsByFill[t]=i(e)},t}();e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),o=n(36),r=n(6),s=function(){function t(t,e){this.view=t._getView(),this.component=t,this.eventRenderer=e}return t.prototype.renderComponentFootprint=function(t){this.renderEventFootprints([this.fabricateEventFootprint(t)])},t.prototype.renderEventDraggingFootprints=function(t,e,n){this.renderEventFootprints(t,e,"fc-dragging",n?null:this.view.opt("dragOpacity"))},t.prototype.renderEventResizingFootprints=function(t,e,n){this.renderEventFootprints(t,e,"fc-resizing")},t.prototype.renderEventFootprints=function(t,e,n,i){var o,r=this.component.eventFootprintsToSegs(t),s="fc-helper "+(n||"");for(r=this.eventRenderer.renderFgSegEls(r),o=0;o<r.length;o++)r[o].el.addClass(s);if(null!=i)for(o=0;o<r.length;o++)r[o].el.css("opacity",i);this.helperEls=this.renderSegs(r,e)},t.prototype.renderSegs=function(t,e){},t.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},t.prototype.fabricateEventFootprint=function(t){var e,n=this.view.calendar,s=n.footprintToDateProfile(t),a=new i.default(new r.default(n));return a.dateProfile=s,e=a.buildInstance(),new o.default(t,a,e)},t}();e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(21),r=n(15),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"click",this.handleClick.bind(this)),e.bindSegHandlerToEl(t,"mouseenter",this.handleMouseover.bind(this)),e.bindSegHandlerToEl(t,"mouseleave",this.handleMouseout.bind(this))},e.prototype.handleClick=function(t,e){!1===this.component.publiclyTrigger("eventClick",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,this.view]})&&e.preventDefault()},e.prototype.handleMouseover=function(t,e){o.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=t,this.view.isEventDefResizable(t.footprint.eventDef)&&t.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,this.view]}))},e.prototype.handleMouseout=function(t,e){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(t.footprint.eventDef)&&t.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:t.el[0],args:[t.footprint.getEventLegacy(),e||{},this.view]}))},e.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},e}(r.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(14),r=n(245),s=n(225),a=n(59),l=n(224),u=n(223),c=n(222),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o.default);e.default=d,d.prototype.dateClickingClass=r.default,d.prototype.dateSelectingClass=s.default,d.prototype.eventPointingClass=a.default,d.prototype.eventDraggingClass=l.default,d.prototype.eventResizingClass=u.default,d.prototype.externalDroppingClass=c.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(53),a=n(249),l=n(5),u=n(12),c=n(36),d=n(56),h=n(60),f=n(40),p=n(55),m=n(250),g=n(251),v=n(252),y=function(t){function e(e){var n=t.call(this,e)||this;return n.cellWeekNumbersVisible=!1,n.bottomCoordPadding=0,n.isRigid=!1,n.hasAllDayBusinessHours=!0,n}return i.__extends(e,t),e.prototype.componentFootprintToSegs=function(t){var e,n,i=this.sliceRangeByRow(t.unzonedRange);for(e=0;e<i.length;e++)n=i[e],this.isRTL?(n.leftCol=this.daysPerRow-1-n.lastRowDayIndex,n.rightCol=this.daysPerRow-1-n.firstRowDayIndex):(n.leftCol=n.firstRowDayIndex,n.rightCol=n.lastRowDayIndex);return i},e.prototype.renderDates=function(t){this.dateProfile=t,this.updateDayTable(),this.renderGrid()},e.prototype.unrenderDates=function(){this.removeSegPopover()},e.prototype.renderGrid=function(){var t,e,n=this.view,i=this.rowCnt,o=this.colCnt,r="";for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),t=0;t<i;t++)r+=this.renderDayRowHtml(t,this.isRigid);for(this.el.html(r),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new s.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new s.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),t=0;t<i;t++)for(e=0;e<o;e++)this.publiclyTrigger("dayRender",{context:n,args:[this.getCellDate(t,e),this.getCellEl(t,e),n]})},e.prototype.renderDayRowHtml=function(t,e){var n=this.view.calendar.theme,i=["fc-row","fc-week",n.getClass("dayRow")];return e&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+this.renderBgTrHtml(t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(t)+"</thead>":"")+"</table></div></div>"},e.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},e.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},e.prototype.renderNumberTrHtml=function(t){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(t))+this.renderNumberCellsHtml(t)+(this.isRTL?this.renderNumberIntroHtml(t):"")+"</tr>"},e.prototype.renderNumberIntroHtml=function(t){return this.renderIntroHtml()},e.prototype.renderNumberCellsHtml=function(t){var e,n,i=[];for(e=0;e<this.colCnt;e++)n=this.getCellDate(t,e),i.push(this.renderNumberCellHtml(n));return i.join("")},e.prototype.renderNumberCellHtml=function(t){var e,n,i=this.view,o="",r=this.dateProfile.activeUnzonedRange.containsDate(t),s=this.getIsDayNumbersVisible()&&r;return s||this.cellWeekNumbersVisible?(e=this.getDayClasses(t),e.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(n="ISO"===t._locale._fullCalendar_weekCalc?1:t._locale.firstDayOfWeek()),o+='<td class="'+e.join(" ")+'"'+(r?' data-date="'+t.format()+'"':"")+">",this.cellWeekNumbersVisible&&t.day()===n&&(o+=i.buildGotoAnchorHtml({date:t,type:"week"},{class:"fc-week-number"},t.format("w"))),s&&(o+=i.buildGotoAnchorHtml(t,{class:"fc-day-number"},t.format("D"))),o+="</td>"):"<td/>"},e.prototype.prepareHits=function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},e.prototype.releaseHits=function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},e.prototype.queryHit=function(t,e){if(this.colCoordCache.isLeftInBounds(t)&&this.rowCoordCache.isTopInBounds(e)){var n=this.colCoordCache.getHorizontalIndex(t),i=this.rowCoordCache.getVerticalIndex(e);if(null!=i&&null!=n)return this.getCellHit(i,n)}},e.prototype.getHitFootprint=function(t){var e=this.getCellRange(t.row,t.col);return new u.default(new l.default(e.start,e.end),!0)},e.prototype.getHitEl=function(t){return this.getCellEl(t.row,t.col)},e.prototype.getCellHit=function(t,e){return{row:t,col:e,component:this,left:this.colCoordCache.getLeftOffset(e),right:this.colCoordCache.getRightOffset(e),top:this.rowCoordCache.getTopOffset(t),bottom:this.rowCoordCache.getBottomOffset(t)}},e.prototype.getCellEl=function(t,e){return this.cellEls.eq(t*this.colCnt+e)},e.prototype.executeEventUnrender=function(){this.removeSegPopover(),t.prototype.executeEventUnrender.call(this)},e.prototype.getOwnEventSegs=function(){return t.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},e.prototype.renderDrag=function(t,e,n){var i;for(i=0;i<t.length;i++)this.renderHighlight(t[i].componentFootprint);if(t.length&&e&&e.component!==this)return this.helperRenderer.renderEventDraggingFootprints(t,e,n),!0},e.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.renderEventResize=function(t,e,n){var i;for(i=0;i<t.length;i++)this.renderHighlight(t[i].componentFootprint);this.helperRenderer.renderEventResizingFootprints(t,e,n)},e.prototype.unrenderEventResize=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},e.prototype.limitRows=function(t){var e,n,i=this.eventRenderer.rowStructs||[];for(e=0;e<i.length;e++)this.unlimitRow(e),!1!==(n=!!t&&("number"==typeof t?t:this.computeRowLevelLimit(e)))&&this.limitRow(e,n)},e.prototype.computeRowLevelLimit=function(t){function e(t,e){r=Math.max(r,o(e).outerHeight())}var n,i,r,s=this.rowEls.eq(t),a=s.height(),l=this.eventRenderer.rowStructs[t].tbodyEl.children();for(n=0;n<l.length;n++)if(i=l.eq(n).removeClass("fc-limited"),r=0,i.find("> td > :first-child").each(e),i.position().top+r>a)return n;return!1},e.prototype.limitRow=function(t,e){var n,i,r,s,a,l,u,c,d,h,f,p,m,g,v,y=this,b=this.eventRenderer.rowStructs[t],w=[],_=0,x=function(n){for(;_<n;)l=y.getCellSegs(t,_,e),l.length&&(d=i[e-1][_],v=y.renderMoreLink(t,_,l),g=o("<div/>").append(v),d.append(g),w.push(g[0])),_++};if(e&&e<b.segLevels.length){for(n=b.segLevels[e-1],i=b.cellMatrix,r=b.tbodyEl.children().slice(e).addClass("fc-limited").get(),s=0;s<n.length;s++){for(a=n[s],x(a.leftCol),c=[],u=0;_<=a.rightCol;)l=this.getCellSegs(t,_,e),c.push(l),u+=l.length,_++;if(u){for(d=i[e-1][a.leftCol],h=d.attr("rowspan")||1,f=[],p=0;p<c.length;p++)m=o('<td class="fc-more-cell"/>').attr("rowspan",h),l=c[p],v=this.renderMoreLink(t,a.leftCol+p,[a].concat(l)),g=o("<div/>").append(v),m.append(g),f.push(m[0]),w.push(m[0]);d.addClass("fc-limited").after(o(f)),r.push(d[0])}}x(this.colCnt),b.moreEls=o(w),b.limitedEls=o(r)}},e.prototype.unlimitRow=function(t){var e=this.eventRenderer.rowStructs[t];e.moreEls&&(e.moreEls.remove(),e.moreEls=null),e.limitedEls&&(e.limitedEls.removeClass("fc-limited"),e.limitedEls=null)},e.prototype.renderMoreLink=function(t,e,n){var i=this,r=this.view;return o('<a class="fc-more"/>').text(this.getMoreLinkText(n.length)).on("click",function(s){var a=i.opt("eventLimitClick"),l=i.getCellDate(t,e),u=o(s.currentTarget),c=i.getCellEl(t,e),d=i.getCellSegs(t,e),h=i.resliceDaySegs(d,l),f=i.resliceDaySegs(n,l);"function"==typeof a&&(a=i.publiclyTrigger("eventLimitClick",{context:r,args:[{date:l.clone(),dayEl:c,moreEl:u,segs:h,hiddenSegs:f},s,r]})),"popover"===a?i.showSegPopover(t,e,u,h):"string"==typeof a&&r.calendar.zoomTo(l,a)})},e.prototype.showSegPopover=function(t,e,n,i){var o,r,s=this,l=this.view,u=n.parent();o=1===this.rowCnt?l.el:this.rowEls.eq(t),r={className:"fc-more-popover "+l.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(t,e,i),parentEl:l.el,top:o.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){s.popoverSegs&&s.triggerBeforeEventSegsDestroyed(s.popoverSegs),s.segPopover.removeElement(),s.segPopover=null,s.popoverSegs=null}},this.isRTL?r.right=u.offset().left+u.outerWidth()+1:r.left=u.offset().left-1,this.segPopover=new a.default(r),this.segPopover.show(),this.bindAllSegHandlersToEl(this.segPopover.el),this.triggerAfterEventSegsRendered(i)},e.prototype.renderSegPopoverContent=function(t,e,n){var i,s=this.view,a=s.calendar.theme,l=this.getCellDate(t,e).format(this.opt("dayPopoverFormat")),u=o('<div class="fc-header '+a.getClass("popoverHeader")+'"><span class="fc-close '+a.getIconClass("close")+'"></span><span class="fc-title">'+r.htmlEscape(l)+'</span><div class="fc-clear"/></div><div class="fc-body '+a.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>'),c=u.find(".fc-event-container");for(n=this.eventRenderer.renderFgSegEls(n,!0),this.popoverSegs=n,i=0;i<n.length;i++)this.hitsNeeded(),n[i].hit=this.getCellHit(t,e),this.hitsNotNeeded(),c.append(n[i].el);return u},e.prototype.resliceDaySegs=function(t,e){var n,i,r,s=e.clone(),a=s.clone().add(1,"days"),d=new l.default(s,a),h=[];for(n=0;n<t.length;n++)i=t[n],(r=i.footprint.componentFootprint.unzonedRange.intersect(d))&&h.push(o.extend({},i,{footprint:new c.default(new u.default(r,i.footprint.componentFootprint.isAllDay),i.footprint.eventDef,i.footprint.eventInstance),isStart:i.isStart&&r.isStart,isEnd:i.isEnd&&r.isEnd}));return this.eventRenderer.sortEventSegs(h),h},e.prototype.getMoreLinkText=function(t){var e=this.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},e.prototype.getCellSegs=function(t,e,n){for(var i,o=this.eventRenderer.rowStructs[t].segMatrix,r=n||0,s=[];r<o.length;)i=o[r][e],i&&s.push(i),r++;return s},e}(f.default);e.default=y,y.prototype.eventRendererClass=m.default,y.prototype.businessHourRendererClass=d.default,y.prototype.helperRendererClass=g.default,y.prototype.fillRendererClass=v.default,h.default.mixInto(y),p.default.mixInto(y)},function(t,e,n){function i(t){return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.colWeekNumbersVisible=!1,e}return o.__extends(e,t),e.prototype.renderHeadIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+t.calendar.theme.getClass("widgetHeader")+'" '+t.weekNumberStyleAttr()+"><span>"+s.htmlEscape(this.opt("weekNumberTitle"))+"</span></th>":""},e.prototype.renderNumberIntroHtml=function(t){var e=this.view,n=this.getCellDate(t,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+">"+e.buildGotoAnchorHtml({date:n,type:"week",forceOff:1===this.colCnt},n.format("w"))+"</td>":""},e.prototype.renderBgIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+t.calendar.theme.getClass("widgetContent")+'" '+t.weekNumberStyleAttr()+"></td>":""},e.prototype.renderIntroHtml=function(){var t=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+"></td>":""},e.prototype.getIsNumbersVisible=function(){return c.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},e}(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(3),s=n(4),a=n(39),l=n(41),u=n(228),c=n(61),d=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.dayGrid=i.instantiateDayGrid(),i.dayGrid.isRigid=i.hasRigidRows(),i.opt("weekNumbers")&&(i.opt("weekNumbersWithinDays")?(i.dayGrid.cellWeekNumbersVisible=!0,i.dayGrid.colWeekNumbersVisible=!1):(i.dayGrid.cellWeekNumbersVisible=!1,i.dayGrid.colWeekNumbersVisible=!0)),i.addChild(i.dayGrid),i.scroller=new a.default({overflowX:"hidden",overflowY:"auto"}),i}return o.__extends(e,t),e.prototype.instantiateDayGrid=function(){return new(i(this.dayGridClass))(this)},e.prototype.executeDateRender=function(e){this.dayGrid.breakOnWeeks=/year|month|week/.test(e.currentRangeUnit),t.prototype.executeDateRender.call(this,e)},e.prototype.renderSkeleton=function(){var t,e;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.scroller.render(),t=this.scroller.el.addClass("fc-day-grid-container"),e=r('<div class="fc-day-grid" />').appendTo(t),this.el.find(".fc-body > tr > td").append(t),this.dayGrid.headContainerEl=this.el.find(".fc-head-container"),this.dayGrid.setElement(e)},e.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement(),this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var t=this.calendar.theme;return'<table class="'+t.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},e.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},e.prototype.hasRigidRows=function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},e.prototype.updateSize=function(e,n,i){var o,r,a=this.opt("eventLimit"),l=this.dayGrid.headContainerEl.find(".fc-row");if(!this.dayGrid.rowEls)return void(n||(o=this.computeScrollerHeight(e),this.scroller.setHeight(o)));t.prototype.updateSize.call(this,e,n,i),this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=s.matchCellWidths(this.el.find(".fc-week-number"))),this.scroller.clear(),s.uncompensateScroll(l),this.dayGrid.removeSegPopover(),a&&"number"==typeof a&&this.dayGrid.limitRows(a),o=this.computeScrollerHeight(e),this.setGridHeight(o,n),a&&"number"!=typeof a&&this.dayGrid.limitRows(a),n||(this.scroller.setHeight(o),r=this.scroller.getScrollbarWidths(),(r.left||r.right)&&(s.compensateScroll(l,r),o=this.computeScrollerHeight(e),this.scroller.setHeight(o)),this.scroller.lockOverflow(r))},e.prototype.computeScrollerHeight=function(t){return t-s.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.setGridHeight=function(t,e){e?s.undistributeHeight(this.dayGrid.rowEls):s.distributeHeight(this.dayGrid.rowEls,t,!0)},e.prototype.computeInitialDateScroll=function(){return{top:0}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},e}(l.default);e.default=d,d.prototype.dateProfileGeneratorClass=u.default,d.prototype.dayGridClass=c.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){function i(t,e,n){var i;for(i=0;i<t.length;i++)if(!e(t[i].eventInstance.toLegacy(),n?n.toLegacy():null))return!1;return!0}function o(t,e){var n,i,o,r,s=e.toLegacy();for(n=0;n<t.length;n++){if(i=t[n].eventInstance,o=i.def,!1===(r=o.getOverlap()))return!1;if("function"==typeof r&&!r(i.toLegacy(),s))return!1}return!0}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),s=n(12),a=n(49),l=n(6),u=n(35),c=function(){function t(t,e){this.eventManager=t,this._calendar=e}return t.prototype.opt=function(t){return this._calendar.opt(t)},t.prototype.isEventInstanceGroupAllowed=function(t){var e,n=t.getEventDef(),i=this.eventRangesToEventFootprints(t.getAllEventRanges()),o=this.getPeerEventInstances(n),r=o.map(u.eventInstanceToEventRange),s=this.eventRangesToEventFootprints(r),a=n.getConstraint(),l=n.getOverlap(),c=this.opt("eventAllow");for(e=0;e<i.length;e++)if(!this.isFootprintAllowed(i[e].componentFootprint,s,a,l,i[e].eventInstance))return!1;if(c)for(e=0;e<i.length;e++)if(!1===c(i[e].componentFootprint.toLegacy(this._calendar),i[e].getEventLegacy()))return!1;return!0},t.prototype.getPeerEventInstances=function(t){return this.eventManager.getEventInstancesWithoutId(t.id)},t.prototype.isSelectionFootprintAllowed=function(t){var e,n=this.eventManager.getEventInstances(),i=n.map(u.eventInstanceToEventRange),o=this.eventRangesToEventFootprints(i);return!!this.isFootprintAllowed(t,o,this.opt("selectConstraint"),this.opt("selectOverlap"))&&(!(e=this.opt("selectAllow"))||!1!==e(t.toLegacy(this._calendar)))},t.prototype.isFootprintAllowed=function(t,e,n,r,s){var a,l;if(null!=n&&(a=this.constraintValToFootprints(n,t.isAllDay),!this.isFootprintWithinConstraints(t,a)))return!1;if(l=this.collectOverlapEventFootprints(e,t),!1===r){if(l.length)return!1}else if("function"==typeof r&&!i(l,r,s))return!1;return!(s&&!o(l,s))},t.prototype.isFootprintWithinConstraints=function(t,e){var n;for(n=0;n<e.length;n++)if(this.footprintContainsFootprint(e[n],t))return!0;return!1},t.prototype.constraintValToFootprints=function(t,e){var n;return"businessHours"===t?this.buildCurrentBusinessFootprints(e):"object"==typeof t?(n=this.parseEventDefToInstances(t),n?this.eventInstancesToFootprints(n):this.parseFootprints(t)):null!=t?(n=this.eventManager.getEventInstancesWithId(t),this.eventInstancesToFootprints(n)):void 0},t.prototype.buildCurrentBusinessFootprints=function(t){var e=this._calendar.view,n=e.get("businessHourGenerator"),i=e.dateProfile.activeUnzonedRange,o=n.buildEventInstanceGroup(t,i);return o?this.eventInstancesToFootprints(o.eventInstances):[]},t.prototype.eventInstancesToFootprints=function(t){var e=t.map(u.eventInstanceToEventRange);return this.eventRangesToEventFootprints(e).map(u.eventFootprintToComponentFootprint)},t.prototype.collectOverlapEventFootprints=function(t,e){var n,i=[];for(n=0;n<t.length;n++)this.footprintsIntersect(e,t[n].componentFootprint)&&i.push(t[n]);return i},t.prototype.parseEventDefToInstances=function(t){var e=this.eventManager,n=a.default.parse(t,new l.default(this._calendar));return!!n&&n.buildInstances(e.currentPeriod.unzonedRange)},t.prototype.eventRangesToEventFootprints=function(t){var e,n=[];for(e=0;e<t.length;e++)n.push.apply(n,this.eventRangeToEventFootprints(t[e]));return n},t.prototype.eventRangeToEventFootprints=function(t){return[u.eventRangeToEventFootprint(t)]},t.prototype.parseFootprints=function(t){var e,n;return t.start&&(e=this._calendar.moment(t.start),e.isValid()||(e=null)),t.end&&(n=this._calendar.moment(t.end),n.isValid()||(n=null)),[new s.default(new r.default(e,n),e&&!e.hasTime()||n&&!n.hasTime())]},t.prototype.footprintContainsFootprint=function(t,e){return t.unzonedRange.containsRange(e.unzonedRange)},t.prototype.footprintsIntersect=function(t,e){return t.unzonedRange.intersectsWith(e.unzonedRange)},t}();e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(4),r=n(14),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.defineStandardProps=function(t){var e=this.prototype;e.hasOwnProperty("standardPropMap")||(e.standardPropMap=Object.create(e.standardPropMap)),o.copyOwnProps(t,e.standardPropMap)},e.copyVerbatimStandardProps=function(t,e){var n,i=this.prototype.standardPropMap;for(n in i)null!=t[n]&&!0===i[n]&&(e[n]=t[n])},e.prototype.applyProps=function(t){var e,n=this.standardPropMap,i={},o={};for(e in t)!0===n[e]?this[e]=t[e]:!1===n[e]?i[e]=t[e]:o[e]=t[e];return this.applyMiscProps(o),this.applyManualStandardProps(i)},e.prototype.applyManualStandardProps=function(t){return!0},e.prototype.applyMiscProps=function(t){},e.prototype.isStandardProp=function(t){return t in this.standardPropMap},e}(r.default);e.default=s,s.prototype.standardPropMap={}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.def=t,this.dateProfile=e}return t.prototype.toLegacy=function(){var t=this.dateProfile,e=this.def.toLegacy();return e.start=t.start.clone(),e.end=t.end?t.end.clone():null,e},t}();e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(0),s=n(34),a=n(209),l=n(17),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},e.prototype.buildInstances=function(t){for(var e,n,i,o=this.source.calendar,r=t.getStart(),s=t.getEnd(),u=[];r.isBefore(s);)this.dowHash&&!this.dowHash[r.day()]||(e=o.applyTimezone(r),n=e.clone(),i=null,this.startTime?n.time(this.startTime):n.stripTime(),this.endTime&&(i=e.clone().time(this.endTime)),u.push(new a.default(this,new l.default(n,i,o)))),r.add(1,"days");return u},e.prototype.setDow=function(t){this.dowHash||(this.dowHash={});for(var e=0;e<t.length;e++)this.dowHash[t[e]]=!0},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.startTime&&(e.startTime=r.duration(this.startTime)),e.endTime&&(e.endTime=r.duration(this.endTime)),this.dowHash&&(e.dowHash=o.extend({},this.dowHash)),e},e}(s.default);e.default=u,u.prototype.applyProps=function(t){var e=s.default.prototype.applyProps.call(this,t);return t.start&&(this.startTime=r.duration(t.start)),t.end&&(this.endTime=r.duration(t.end)),t.dow&&this.setDow(t.dow),e},u.defineStandardProps({start:!1,end:!1,dow:!1})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,n){this.unzonedRange=t,this.eventDef=e,n&&(this.eventInstance=n)}return t}();e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(35),r=n(18),s=n(210),a=n(6),l={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},u=function(){function t(t,e){this.rawComplexDef=t,this.calendar=e}return t.prototype.buildEventInstanceGroup=function(t,e){var n,i=this.buildEventDefs(t);if(i.length)return n=new r.default(o.eventDefsToEventInstances(i,e)),n.explicitEventDef=i[0],n},t.prototype.buildEventDefs=function(t){var e,n=this.rawComplexDef,o=[],r=!1,s=[];for(!0===n?o=[{}]:i.isPlainObject(n)?o=[n]:i.isArray(n)&&(o=n,r=!0),e=0;e<o.length;e++)r&&!o[e].dow||s.push(this.buildEventDef(t,o[e]));return s},t.prototype.buildEventDef=function(t,e){var n=i.extend({},l,e);return t&&(n.start=null,n.end=null),s.default.parse(n,new a.default(this.calendar))},t}();e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(19),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o.default);e.default=r,r.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},r.prototype.baseIconClass="fc-icon",r.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"},r.prototype.iconOverrideOption="buttonIcons",r.prototype.iconOverrideCustomButtonOption="icon",r.prototype.iconOverridePrefix="fc-icon-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(19),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o.default);e.default=r,r.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"},r.prototype.baseIconClass="ui-icon",r.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"},r.prototype.iconOverrideOption="themeButtonIcons",r.prototype.iconOverrideCustomButtonOption="themeIcon",r.prototype.iconOverridePrefix="ui-icon-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(20),s=n(6),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.parse=function(t,e){var n;return o.isFunction(t.events)?n=t:o.isFunction(t)&&(n={events:t}),!!n&&s.default.parse.call(this,n,e)},e.prototype.fetch=function(t,e,n){var i=this;return this.calendar.pushLoading(),r.default.construct(function(o){i.func.call(i.calendar,t.clone(),e.clone(),n,function(t){i.calendar.popLoading(),o(i.parseEventDefs(t))})})},e.prototype.getPrimitive=function(){return this.func},e.prototype.applyManualStandardProps=function(e){var n=t.prototype.applyManualStandardProps.call(this,e);return this.func=e.events,n},e}(s.default);e.default=a,a.defineStandardProps({events:!1})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(20),a=n(6),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.parse=function(t,e){var n;return"string"==typeof t.url?n=t:"string"==typeof t&&(n={url:t}),!!n&&a.default.parse.call(this,n,e)},e.prototype.fetch=function(t,n,i){var a=this,l=this.ajaxSettings,u=l.success,c=l.error,d=this.buildRequestParams(t,n,i);return this.calendar.pushLoading(),s.default.construct(function(t,n){o.ajax(o.extend({},e.AJAX_DEFAULTS,l,{url:a.url,data:d,success:function(e,i,s){var l;a.calendar.popLoading(),e?(l=r.applyAll(u,a,[e,i,s]),o.isArray(l)&&(e=l),t(a.parseEventDefs(e))):n()},error:function(t,e,i){a.calendar.popLoading(),r.applyAll(c,a,[t,e,i]),n()}}))})},e.prototype.buildRequestParams=function(t,e,n){var i,r,s,a,l=this.calendar,u=this.ajaxSettings,c={};return i=this.startParam,null==i&&(i=l.opt("startParam")),r=this.endParam,null==r&&(r=l.opt("endParam")),s=this.timezoneParam,null==s&&(s=l.opt("timezoneParam")),a=o.isFunction(u.data)?u.data():u.data||{},o.extend(c,a),c[i]=t.format(),c[r]=e.format(),n&&"local"!==n&&(c[s]=n),c},e.prototype.getPrimitive=function(){return this.url},e.prototype.applyMiscProps=function(t){this.ajaxSettings=t},e.AJAX_DEFAULTS={dataType:"json",cache:!1},e}(a.default);e.default=l,l.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),o=function(){function t(){this.q=[],this.isPaused=!1,this.isRunning=!1}return t.prototype.queue=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.q.push.apply(this.q,t),this.tryStart()},t.prototype.pause=function(){this.isPaused=!0},t.prototype.resume=function(){this.isPaused=!1,this.tryStart()},t.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},t.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},t.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},t.prototype.runRemaining=function(){var t,e,n=this;do{if(t=this.q.shift(),(e=this.runTask(t))&&e.then)return void e.then(function(){n.canRunNext()&&n.runRemaining()})}while(this.canRunNext());this.trigger("stop"),this.isRunning=!1,this.tryStart()},t.prototype.runTask=function(t){return t()},t}();e.default=o,i.default.mixInto(o)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(217),r=function(t){function e(e){var n=t.call(this)||this;return n.waitsByNamespace=e||{},n}return i.__extends(e,t),e.prototype.queue=function(t,e,n){var i,o={func:t,namespace:e,type:n};e&&(i=this.waitsByNamespace[e]),this.waitNamespace&&(e===this.waitNamespace&&null!=i?this.delayWait(i):(this.clearWait(),this.tryStart())),this.compoundTask(o)&&(this.waitNamespace||null==i?this.tryStart():this.startWait(e,i))},e.prototype.startWait=function(t,e){this.waitNamespace=t,this.spawnWait(e)},e.prototype.delayWait=function(t){clearTimeout(this.waitId),this.spawnWait(t)},e.prototype.spawnWait=function(t){var e=this;this.waitId=setTimeout(function(){e.waitNamespace=null,e.tryStart()},t)},e.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},e.prototype.canRunNext=function(){if(!t.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var e=this.q,n=0;n<e.length;n++)if(e[n].namespace!==this.waitNamespace)return!0;return!1}return!0},e.prototype.runTask=function(t){t.func()},e.prototype.compoundTask=function(t){var e,n,i=this.q,o=!0;if(t.namespace&&"destroy"===t.type)for(e=i.length-1;e>=0;e--)switch(n=i[e],n.type){case"init":o=!1;case"add":case"remove":i.splice(e,1)}return o&&i.push(t),o},e}(o.default);e.default=r},function(t,e,n){function i(t){var e,n,i,o=[];for(e in t)for(n=t[e].eventInstances,i=0;i<n.length;i++)o.push(n[i].toLegacy());return o}Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(3),s=n(0),a=n(4),l=n(10),u=n(47),c=n(237),d=n(35),h=function(t){function e(n,i){var o=t.call(this)||this;return o.isRTL=!1,o.hitsNeededDepth=0,o.hasAllDayBusinessHours=!1,o.isDatesRendered=!1,n&&(o.view=n),i&&(o.options=i),o.uid=String(e.guid++),o.childrenByUid={},o.nextDayThreshold=s.duration(o.opt("nextDayThreshold")),o.isRTL=o.opt("isRTL"),o.fillRendererClass&&(o.fillRenderer=new o.fillRendererClass(o)),o.eventRendererClass&&(o.eventRenderer=new o.eventRendererClass(o,o.fillRenderer)),o.helperRendererClass&&o.eventRenderer&&(o.helperRenderer=new o.helperRendererClass(o,o.eventRenderer)),o.businessHourRendererClass&&o.fillRenderer&&(o.businessHourRenderer=new o.businessHourRendererClass(o,o.fillRenderer)),o}return o.__extends(e,t),e.prototype.addChild=function(t){return!this.childrenByUid[t.uid]&&(this.childrenByUid[t.uid]=t,!0)},e.prototype.removeChild=function(t){return!!this.childrenByUid[t.uid]&&(delete this.childrenByUid[t.uid],!0)},e.prototype.updateSize=function(t,e,n){this.callChildren("updateSize",arguments)},e.prototype.opt=function(t){return this._getView().opt(t)},e.prototype.publiclyTrigger=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getCalendar();return n.publiclyTrigger.apply(n,t)},e.prototype.hasPublicHandlers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getCalendar();return n.hasPublicHandlers.apply(n,t)},e.prototype.executeDateRender=function(t){this.dateProfile=t,this.renderDates(t),this.isDatesRendered=!0,this.callChildren("executeDateRender",arguments)},e.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments),this.dateProfile=null,this.unrenderDates(),this.isDatesRendered=!1},e.prototype.renderDates=function(t){},e.prototype.unrenderDates=function(){},e.prototype.getNowIndicatorUnit=function(){},e.prototype.renderNowIndicator=function(t){this.callChildren("renderNowIndicator",arguments)},e.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},e.prototype.renderBusinessHours=function(t){this.businessHourRenderer&&this.businessHourRenderer.render(t),this.callChildren("renderBusinessHours",arguments)},e.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments),this.businessHourRenderer&&this.businessHourRenderer.unrender()},e.prototype.executeEventRender=function(t){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(t)):this.renderEvents&&this.renderEvents(i(t)),this.callChildren("executeEventRender",arguments)},e.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments),this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},e.prototype.getBusinessHourSegs=function(){var t=this.getOwnBusinessHourSegs();return this.iterChildren(function(e){t.push.apply(t,e.getBusinessHourSegs())}),t},e.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},e.prototype.getEventSegs=function(){var t=this.getOwnEventSegs();return this.iterChildren(function(e){t.push.apply(t,e.getEventSegs())}),t},e.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},e.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs()),this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},e.prototype.triggerAfterEventSegsRendered=function(t){var e=this;this.hasPublicHandlers("eventAfterRender")&&t.forEach(function(t){var n;t.el&&(n=t.footprint.getEventLegacy(),e.publiclyTrigger("eventAfterRender",{context:n,args:[n,t.el,e]}))})},e.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},e.prototype.triggerBeforeEventSegsDestroyed=function(t){var e=this;this.hasPublicHandlers("eventDestroy")&&t.forEach(function(t){var n;t.el&&(n=t.footprint.getEventLegacy(),e.publiclyTrigger("eventDestroy",{context:n,args:[n,t.el,e]}))})},e.prototype.showEventsWithId=function(t){this.getEventSegs().forEach(function(e){e.footprint.eventDef.id===t&&e.el&&e.el.css("visibility","")}),this.callChildren("showEventsWithId",arguments)},e.prototype.hideEventsWithId=function(t){this.getEventSegs().forEach(function(e){e.footprint.eventDef.id===t&&e.el&&e.el.css("visibility","hidden")}),this.callChildren("hideEventsWithId",arguments)},e.prototype.renderDrag=function(t,e,n){var i=!1;return this.iterChildren(function(o){o.renderDrag(t,e,n)&&(i=!0)}),i},e.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},e.prototype.renderEventResize=function(t,e,n){this.callChildren("renderEventResize",arguments)},e.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},e.prototype.renderSelectionFootprint=function(t){this.renderHighlight(t),this.callChildren("renderSelectionFootprint",arguments)},e.prototype.unrenderSelection=function(){this.unrenderHighlight(),this.callChildren("unrenderSelection",arguments)},e.prototype.renderHighlight=function(t){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",t,{getClasses:function(){return["fc-highlight"]}}),this.callChildren("renderHighlight",arguments)},e.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight"),this.callChildren("unrenderHighlight",arguments)},e.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits(),this.callChildren("hitsNeeded",arguments)},e.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits(),this.callChildren("hitsNotNeeded",arguments)},e.prototype.prepareHits=function(){},e.prototype.releaseHits=function(){},e.prototype.queryHit=function(t,e){var n,i,o=this.childrenByUid;for(n in o)if(i=o[n].queryHit(t,e))break;return i},e.prototype.getSafeHitFootprint=function(t){var e=this.getHitFootprint(t);return this.dateProfile.activeUnzonedRange.containsRange(e.unzonedRange)?e:null},e.prototype.getHitFootprint=function(t){},e.prototype.getHitEl=function(t){},e.prototype.eventRangesToEventFootprints=function(t){var e,n=[];for(e=0;e<t.length;e++)n.push.apply(n,this.eventRangeToEventFootprints(t[e]));return n},e.prototype.eventRangeToEventFootprints=function(t){return[d.eventRangeToEventFootprint(t)]},e.prototype.eventFootprintsToSegs=function(t){var e,n=[];for(e=0;e<t.length;e++)n.push.apply(n,this.eventFootprintToSegs(t[e]));return n},e.prototype.eventFootprintToSegs=function(t){var e,n,i,o=t.componentFootprint.unzonedRange;for(e=this.componentFootprintToSegs(t.componentFootprint),n=0;n<e.length;n++)i=e[n],o.isStart||(i.isStart=!1),o.isEnd||(i.isEnd=!1),i.footprint=t;return e},e.prototype.componentFootprintToSegs=function(t){return[]},e.prototype.callChildren=function(t,e){this.iterChildren(function(n){n[t].apply(n,e)})},e.prototype.iterChildren=function(t){var e,n=this.childrenByUid;for(e in n)t(n[e])},e.prototype._getCalendar=function(){var t=this;return t.calendar||t.view.calendar},e.prototype._getView=function(){return this.view},e.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},e.prototype.buildGotoAnchorHtml=function(t,e,n){var i,o,s,u;return r.isPlainObject(t)?(i=t.date,o=t.type,s=t.forceOff):i=t,i=l.default(i),u={date:i.format("YYYY-MM-DD"),type:o||"day"},"string"==typeof e&&(n=e,e=null),e=e?" "+a.attrsToStr(e):"",n=n||"",!s&&this.opt("navLinks")?"<a"+e+' data-goto="'+a.htmlEscape(JSON.stringify(u))+'">'+n+"</a>":"<span"+e+">"+n+"</span>"},e.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||a.htmlEscape(this.opt("allDayText"))},e.prototype.getDayClasses=function(t,e){var n,i=this._getView(),o=[];return this.dateProfile.activeUnzonedRange.containsDate(t)?(o.push("fc-"+a.dayIDs[t.day()]),i.isDateInOtherMonth(t,this.dateProfile)&&o.push("fc-other-month"),n=i.calendar.getNow(),t.isSame(n,"day")?(o.push("fc-today"),!0!==e&&o.push(i.calendar.theme.getClass("today"))):t<n?o.push("fc-past"):o.push("fc-future")):o.push("fc-disabled-day"),o},e.prototype.formatRange=function(t,e,n,i){var o=t.end;return e&&(o=o.clone().subtract(1)),u.formatRange(t.start,o,n,i,this.isRTL)},e.prototype.currentRangeAs=function(t){return this._getDateProfile().currentUnzonedRange.as(t)},e.prototype.computeDayRange=function(t){var e=this._getCalendar(),n=e.msToUtcMoment(t.startMs,!0),i=e.msToUtcMoment(t.endMs),o=+i.time(),r=i.clone().stripTime();return o&&o>=this.nextDayThreshold&&r.add(1,"days"),r<=n&&(r=n.clone().add(1,"days")),{start:n,end:r}},e.prototype.isMultiDayRange=function(t){var e=this.computeDayRange(t);return e.end.diff(e.start,"days")>1},e.guid=0,e}(c.default);e.default=h},function(t,e,n){function i(t,e){return null==e?t:o.isFunction(e)?t.filter(e):(e+="",t.filter(function(t){return t.id==e||t._id===e}))}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(0),s=n(4),a=n(32),l=n(238),u=n(21),c=n(11),d=n(7),h=n(239),f=n(240),p=n(241),m=n(207),g=n(31),v=n(10),y=n(5),b=n(12),w=n(17),_=n(242),x=n(212),D=n(38),k=n(49),S=n(13),M=n(37),C=n(6),T=n(51),E=function(){function t(t,e){this.loadingLevel=0,this.ignoreUpdateViewSize=0,this.freezeContentHeightDepth=0,u.default.needed(),this.el=t,this.viewsByType={},this.optionsManager=new f.default(this,e),this.viewSpecManager=new p.default(this.optionsManager,this),this.initMomentInternals(),this.initCurrentDate(),this.initEventManager(),this.constraints=new m.default(this.eventManager,this),this.constructed()}return t.prototype.constructed=function(){},t.prototype.getView=function(){return this.view},t.prototype.publiclyTrigger=function(t,e){var n,i,r=this.opt(t);if(o.isPlainObject(e)?(n=e.context,i=e.args):o.isArray(e)&&(i=e),null==n&&(n=this.el[0]),i||(i=[]),this.triggerWith(t,n,i),r)return r.apply(n,i)},t.prototype.hasPublicHandlers=function(t){return this.hasHandlers(t)||this.opt(t)},t.prototype.option=function(t,e){var n;if("string"==typeof t){if(void 0===e)return this.optionsManager.get(t);n={},n[t]=e,this.optionsManager.add(n)}else"object"==typeof t&&this.optionsManager.add(t)},t.prototype.opt=function(t){return this.optionsManager.get(t)},t.prototype.instantiateView=function(t){var e=this.viewSpecManager.getViewSpec(t);if(!e)throw new Error('View type "'+t+'" is not valid');return new e.class(this,e)},t.prototype.isValidViewType=function(t){return Boolean(this.viewSpecManager.getViewSpec(t))},t.prototype.changeView=function(t,e){e&&(e.start&&e.end?this.optionsManager.recordOverrides({visibleRange:e}):this.currentDate=this.moment(e).stripZone()),this.renderView(t)},t.prototype.zoomTo=function(t,e){var n;e=e||"day",n=this.viewSpecManager.getViewSpec(e)||this.viewSpecManager.getUnitViewSpec(e),this.currentDate=t.clone(),this.renderView(n?n.type:null)},t.prototype.initCurrentDate=function(){var t=this.opt("defaultDate");this.currentDate=null!=t?this.moment(t).stripZone():this.getNow()},t.prototype.prev=function(){var t=this.view,e=t.dateProfileGenerator.buildPrev(t.get("dateProfile"));e.isValid&&(this.currentDate=e.date,this.renderView())},t.prototype.next=function(){var t=this.view,e=t.dateProfileGenerator.buildNext(t.get("dateProfile"));e.isValid&&(this.currentDate=e.date,this.renderView())},t.prototype.prevYear=function(){this.currentDate.add(-1,"years"),this.renderView()},t.prototype.nextYear=function(){this.currentDate.add(1,"years"),this.renderView()},t.prototype.today=function(){this.currentDate=this.getNow(),this.renderView()},t.prototype.gotoDate=function(t){this.currentDate=this.moment(t).stripZone(),this.renderView()},t.prototype.incrementDate=function(t){this.currentDate.add(r.duration(t)),this.renderView()},t.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},t.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},t.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},t.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},t.prototype.initialRender=function(){var t=this,e=this.el;e.addClass("fc"),e.on("click.fc","a[data-goto]",function(e){var n=o(e.currentTarget),i=n.data("goto"),r=t.moment(i.date),a=i.type,l=t.view.opt("navLink"+s.capitaliseFirstLetter(a)+"Click");"function"==typeof l?l(r,e):("string"==typeof l&&(a=l),t.zoomTo(r,a))}),this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(n){var i=T.getThemeSystemClass(n.themeSystem||n.theme),o=new i(t.optionsManager),r=o.getClass("widget");t.theme=o,r&&e.addClass(r)},function(){var n=t.theme.getClass("widget");t.theme=null,n&&e.removeClass(n)}),this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(e){t.businessHourGenerator=new x.default(e.businessHours,t),t.view&&t.view.set("businessHourGenerator",t.businessHourGenerator)},function(){t.businessHourGenerator=null}),this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(t){e.toggleClass("fc-ltr",!t.isRTL),e.toggleClass("fc-rtl",t.isRTL)}),this.contentEl=o("<div class='fc-view-container'/>").prependTo(e),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&o(window).resize(this.windowResizeProxy=s.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},t.prototype.destroy=function(){this.view&&this.clearView(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl"),this.optionsManager.unwatch("settingTheme"),this.optionsManager.unwatch("settingBusinessHourGenerator"),this.el.off(".fc"),this.windowResizeProxy&&(o(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),u.default.unneeded()},t.prototype.elementVisible=function(){return this.el.is(":visible")},t.prototype.bindViewHandlers=function(t){var e=this;t.watch("titleForCalendar",["title"],function(n){t===e.view&&e.setToolbarsTitle(n.title)}),t.watch("dateProfileForCalendar",["dateProfile"],function(n){t===e.view&&(e.currentDate=n.dateProfile.date,e.updateToolbarButtons(n.dateProfile))})},t.prototype.unbindViewHandlers=function(t){t.unwatch("titleForCalendar"),t.unwatch("dateProfileForCalendar")},t.prototype.renderView=function(t){var e,n=this.view;this.freezeContentHeight(),n&&t&&n.type!==t&&this.clearView(),!this.view&&t&&(e=this.view=this.viewsByType[t]||(this.viewsByType[t]=this.instantiateView(t)),this.bindViewHandlers(e),e.startBatchRender(),e.setElement(o("<div class='fc-view fc-"+t+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",t)),this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),e&&e.stopBatchRender()),this.thawContentHeight()},t.prototype.clearView=function(){var t=this.view;this.toolbarsManager.proxyCall("deactivateButton",t.type),this.unbindViewHandlers(t),t.removeElement(),t.unsetDate(),this.view=null},t.prototype.reinitView=function(){var t=this.view,e=t.queryScroll();this.freezeContentHeight(),this.clearView(),this.calcSize(),this.renderView(t.type),this.view.applyScroll(e),this.thawContentHeight()},t.prototype.getSuggestedViewHeight=function(){return null==this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},t.prototype.isHeightAuto=function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},t.prototype.updateViewSize=function(t){void 0===t&&(t=!1);var e,n=this.view;if(!this.ignoreUpdateViewSize&&n)return t&&(this.calcSize(),e=n.queryScroll()),this.ignoreUpdateViewSize++,n.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),t),this.ignoreUpdateViewSize--,t&&n.applyScroll(e),!0},t.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},t.prototype._calcSize=function(){var t=this.opt("contentHeight"),e=this.opt("height");this.suggestedViewHeight="number"==typeof t?t:"function"==typeof t?t():"number"==typeof e?e-this.queryToolbarsHeight():"function"==typeof e?e()-this.queryToolbarsHeight():"parent"===e?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},t.prototype.windowResize=function(t){t.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},t.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},t.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},t.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--,this.contentEl.css({width:"",height:"",overflow:""}),this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},t.prototype.initToolbars=function(){this.header=new h.default(this,this.computeHeaderOptions()),this.footer=new h.default(this,this.computeFooterOptions()),this.toolbarsManager=new l.default([this.header,this.footer])},t.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},t.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},t.prototype.renderHeader=function(){var t=this.header;t.setToolbarOptions(this.computeHeaderOptions()),t.render(),t.el&&this.el.prepend(t.el)},t.prototype.renderFooter=function(){var t=this.footer;t.setToolbarOptions(this.computeFooterOptions()),t.render(),t.el&&this.el.append(t.el)},t.prototype.setToolbarsTitle=function(t){this.toolbarsManager.proxyCall("updateTitle",t)},t.prototype.updateToolbarButtons=function(t){var e=this.getNow(),n=this.view,i=n.dateProfileGenerator.build(e),o=n.dateProfileGenerator.buildPrev(n.get("dateProfile")),r=n.dateProfileGenerator.buildNext(n.get("dateProfile"));this.toolbarsManager.proxyCall(i.isValid&&!t.currentUnzonedRange.containsDate(e)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(o.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(r.isValid?"enableButton":"disableButton","next")},t.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(t,e){return t+(e.el?e.el.outerHeight(!0):0)},0)},t.prototype.select=function(t,e){this.view.select(this.buildSelectFootprint.apply(this,arguments))},t.prototype.unselect=function(){this.view&&this.view.unselect()},t.prototype.buildSelectFootprint=function(t,e){var n,i=this.moment(t).stripZone();return n=e?this.moment(e).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),new b.default(new y.default(i,n),!i.hasTime())},t.prototype.initMomentInternals=function(){var t=this;this.defaultAllDayEventDuration=r.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=r.duration(this.opt("defaultTimedEventDuration")),this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(e){var n,i=e.weekNumberCalculation,o=e.firstDay;"iso"===i&&(i="ISO");var r=Object.create(g.getMomentLocaleData(e.locale));e.monthNames&&(r._months=e.monthNames),e.monthNamesShort&&(r._monthsShort=e.monthNamesShort),e.dayNames&&(r._weekdays=e.dayNames),e.dayNamesShort&&(r._weekdaysShort=e.dayNamesShort),null==o&&"ISO"===i&&(o=1),null!=o&&(n=Object.create(r._week),n.dow=o,r._week=n),"ISO"!==i&&"local"!==i&&"function"!=typeof i||(r._fullCalendar_weekCalc=i),t.localeData=r,t.currentDate&&t.localizeMoment(t.currentDate)})},t.prototype.moment=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n;return"local"===this.opt("timezone")?(n=v.default.apply(null,t),n.hasTime()&&n.local()):n="UTC"===this.opt("timezone")?v.default.utc.apply(null,t):v.default.parseZone.apply(null,t),this.localizeMoment(n),n},t.prototype.msToMoment=function(t,e){var n=v.default.utc(t);return e?n.stripTime():n=this.applyTimezone(n),this.localizeMoment(n),n},t.prototype.msToUtcMoment=function(t,e){var n=v.default.utc(t);return e&&n.stripTime(),this.localizeMoment(n),n},t.prototype.localizeMoment=function(t){t._locale=this.localeData},t.prototype.getIsAmbigTimezone=function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},t.prototype.applyTimezone=function(t){if(!t.hasTime())return t.clone();var e,n=this.moment(t.toArray()),i=t.time().asMilliseconds()-n.time().asMilliseconds();return i&&(e=n.clone().add(i),t.time().asMilliseconds()-e.time().asMilliseconds()==0&&(n=e)),n},t.prototype.footprintToDateProfile=function(t,e){void 0===e&&(e=!1);var n,i=v.default.utc(t.unzonedRange.startMs);return e||(n=v.default.utc(t.unzonedRange.endMs)),t.isAllDay?(i.stripTime(),n&&n.stripTime()):(i=this.applyTimezone(i),n&&(n=this.applyTimezone(n))),new w.default(i,n,this)},t.prototype.getNow=function(){var t=this.opt("now");return"function"==typeof t&&(t=t()),this.moment(t).stripZone()},t.prototype.humanizeDuration=function(t){return t.locale(this.opt("locale")).humanize()},t.prototype.parseUnzonedRange=function(t){var e=null,n=null;return t.start&&(e=this.moment(t.start).stripZone()),t.end&&(n=this.moment(t.end).stripZone()),e||n?e&&n&&n.isBefore(e)?null:new y.default(e,n):null},t.prototype.initEventManager=function(){var t=this,e=new _.default(this),n=this.opt("eventSources")||[],i=this.opt("events");this.eventManager=e,i&&n.unshift(i),e.on("release",function(e){t.trigger("eventsReset",e)}),e.freeze(),n.forEach(function(n){var i=D.default.parse(n,t);i&&e.addSource(i)}),e.thaw()},t.prototype.requestEvents=function(t,e){return this.eventManager.requestEvents(t,e,this.opt("timezone"),!this.opt("lazyFetching"))},t.prototype.getEventEnd=function(t){return t.end?t.end.clone():this.getDefaultEventEnd(t.allDay,t.start)},t.prototype.getDefaultEventEnd=function(t,e){var n=e.clone();return t?n.stripTime().add(this.defaultAllDayEventDuration):n.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&n.stripZone(),n},t.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},t.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},t.prototype.renderEvents=function(t,e){this.eventManager.freeze();for(var n=0;n<t.length;n++)this.renderEvent(t[n],e);this.eventManager.thaw()},t.prototype.renderEvent=function(t,e){void 0===e&&(e=!1);var n=this.eventManager,i=k.default.parse(t,t.source||n.stickySource);i&&n.addEventDef(i,e)},t.prototype.removeEvents=function(t){var e,n,o=this.eventManager,r=[],s={};if(null==t)o.removeAllEventDefs();else{for(o.getEventInstances().forEach(function(t){r.push(t.toLegacy())}),r=i(r,t),n=0;n<r.length;n++)e=this.eventManager.getEventDefByUid(r[n]._id),s[e.id]=!0;o.freeze();for(n in s)o.removeEventDefsById(n);o.thaw()}},t.prototype.clientEvents=function(t){var e=[];return this.eventManager.getEventInstances().forEach(function(t){e.push(t.toLegacy())}),i(e,t)},t.prototype.updateEvents=function(t){this.eventManager.freeze();for(var e=0;e<t.length;e++)this.updateEvent(t[e]);this.eventManager.thaw()},t.prototype.updateEvent=function(t){var e,n,i=this.eventManager.getEventDefByUid(t._id);i instanceof S.default&&(e=i.buildInstance(),n=M.default.createFromRawProps(e,t,null),this.eventManager.mutateEventsWithId(i.id,n))},t.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},t.prototype.getEventSourceById=function(t){return this.eventManager.getSourceById(C.default.normalizeId(t))},t.prototype.addEventSource=function(t){var e=D.default.parse(t,this);e&&this.eventManager.addSource(e)},t.prototype.removeEventSources=function(t){var e,n,i=this.eventManager;if(null==t)this.eventManager.removeAllSources();else{for(e=i.multiQuerySources(t),i.freeze(),n=0;n<e.length;n++)i.removeSource(e[n]);i.thaw()}},t.prototype.removeEventSource=function(t){var e,n=this.eventManager,i=n.querySources(t);for(n.freeze(),e=0;e<i.length;e++)n.removeSource(i[e]);n.thaw()},t.prototype.refetchEventSources=function(t){var e,n=this.eventManager,i=n.multiQuerySources(t);for(n.freeze(),e=0;e<i.length;e++)n.refetchSource(i[e]);n.thaw()},t.defaults=a.globalDefaults,t.englishDefaults=a.englishDefaults,t.rtlDefaults=a.rtlDefaults,t}();e.default=E,c.default.mixInto(E),d.default.mixInto(E)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(5),s=function(){function t(t){this._view=t}return t.prototype.opt=function(t){return this._view.opt(t)},t.prototype.trimHiddenDays=function(t){return this._view.trimHiddenDays(t)},t.prototype.msToUtcMoment=function(t,e){return this._view.calendar.msToUtcMoment(t,e)},t.prototype.buildPrev=function(t){var e=t.date.clone().startOf(t.currentRangeUnit).subtract(t.dateIncrement);return this.build(e,-1)},t.prototype.buildNext=function(t){var e=t.date.clone().startOf(t.currentRangeUnit).add(t.dateIncrement);return this.build(e,1)},t.prototype.build=function(t,e,n){void 0===n&&(n=!1);var o,r,s,a,l,u,c=!t.hasTime(),d=null,h=null;return o=this.buildValidRange(),o=this.trimHiddenDays(o),n&&(t=this.msToUtcMoment(o.constrainDate(t),c)),r=this.buildCurrentRangeInfo(t,e),s=/^(year|month|week|day)$/.test(r.unit),a=this.buildRenderRange(this.trimHiddenDays(r.unzonedRange),r.unit,s),a=this.trimHiddenDays(a),l=a.clone(),this.opt("showNonCurrentDates")||(l=l.intersect(r.unzonedRange)),d=i.duration(this.opt("minTime")),h=i.duration(this.opt("maxTime")),l=this.adjustActiveRange(l,d,h),l=l.intersect(o),l&&(t=this.msToUtcMoment(l.constrainDate(t),c)),u=r.unzonedRange.intersectsWith(o),{validUnzonedRange:o,currentUnzonedRange:r.unzonedRange,currentRangeUnit:r.unit,isRangeAllDay:s,activeUnzonedRange:l,renderUnzonedRange:a,minTime:d,maxTime:h,isValid:u,date:t,dateIncrement:this.buildDateIncrement(r.duration)}},t.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new r.default},t.prototype.buildCurrentRangeInfo=function(t,e){var n,i=this._view.viewSpec,r=null,s=null,a=null;return i.duration?(r=i.duration,s=i.durationUnit,a=this.buildRangeFromDuration(t,e,r,s)):(n=this.opt("dayCount"))?(s="day",a=this.buildRangeFromDayCount(t,e,n)):(a=this.buildCustomVisibleRange(t))?s=o.computeGreatestUnit(a.getStart(),a.getEnd()):(r=this.getFallbackDuration(),s=o.computeGreatestUnit(r),a=this.buildRangeFromDuration(t,e,r,s)),{duration:r,unit:s,unzonedRange:a}},t.prototype.getFallbackDuration=function(){return i.duration({days:1})},t.prototype.adjustActiveRange=function(t,e,n){var i=t.getStart(),o=t.getEnd();return this._view.usesMinMaxTime&&(e<0&&i.time(0).add(e),n>864e5&&o.time(n-864e5)),new r.default(i,o)},t.prototype.buildRangeFromDuration=function(t,e,n,s){function a(){c=t.clone().startOf(f),d=c.clone().add(n),h=new r.default(c,d)}var l,u,c,d,h,f=this.opt("dateAlignment");return f||(l=this.opt("dateIncrement"),l?(u=i.duration(l),f=u<n?o.computeDurationGreatestUnit(u,l):s):f=s),n.as("days")<=1&&this._view.isHiddenDay(c)&&(c=this._view.skipHiddenDays(c,e),c.startOf("day")),a(),this.trimHiddenDays(h)||(t=this._view.skipHiddenDays(t,e),a()),h},t.prototype.buildRangeFromDayCount=function(t,e,n){var i,o=this.opt("dateAlignment"),s=0,a=t.clone();o&&a.startOf(o),a.startOf("day"),a=this._view.skipHiddenDays(a,e),i=a.clone();do{i.add(1,"day"),this._view.isHiddenDay(i)||s++}while(s<n);return new r.default(a,i)},t.prototype.buildCustomVisibleRange=function(t){var e=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(t));return!e||null!=e.startMs&&null!=e.endMs?e:null},t.prototype.buildRenderRange=function(t,e,n){return t.clone()},t.prototype.buildDateIncrement=function(t){var e,n=this.opt("dateIncrement");return n?i.duration(n):(e=this.opt("dateAlignment"))?i.duration(1,e):t||i.duration({days:1})},t}();e.default=s},function(t,e,n){function i(t){var e,n,i,o,l=a.dataAttrPrefix;return l&&(l+="-"),e=t.data(l+"event")||null,e&&(e="object"==typeof e?r.extend({},e):{},n=e.start,null==n&&(n=e.time),i=e.duration,o=e.stick,delete e.start,delete e.time,delete e.duration,delete e.stick),null==n&&(n=t.data(l+"start")),null==n&&(n=t.data(l+"time")),null==i&&(i=t.data(l+"duration")),null==o&&(o=t.data(l+"stick")),n=null!=n?s.duration(n):null,i=null!=i?s.duration(i):null,o=Boolean(o),{eventProps:e,startTime:n,duration:i,stick:o}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(3),s=n(0),a=n(16),l=n(4),u=n(10),c=n(7),d=n(23),h=n(13),f=n(18),p=n(6),m=n(15),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return o.__extends(e,t),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.bindToDocument=function(){this.listenTo(r(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},e.prototype.unbindFromDocument=function(){this.stopListeningTo(r(document))},e.prototype.handleDragStart=function(t,e){var n,i;this.opt("droppable")&&(n=r((e?e.item:null)||t.target),i=this.opt("dropAccept"),(r.isFunction(i)?i.call(n[0],n):n.is(i))&&(this.isDragging||this.listenToExternalDrag(n,t,e)))},e.prototype.listenToExternalDrag=function(t,e,n){var o,r=this,s=this.component,a=this.view,u=i(t);(this.dragListener=new d.default(s,{interactionStart:function(){r.isDragging=!0},hitOver:function(t){var e,n=!0,i=t.component.getSafeHitFootprint(t);i?(o=r.computeExternalDrop(i,u),o?(e=new f.default(o.buildInstances()),n=u.eventProps?s.isEventInstanceGroupAllowed(e):s.isExternalInstanceGroupAllowed(e)):n=!1):n=!1,n||(o=null,l.disableCursor()),o&&s.renderDrag(s.eventRangesToEventFootprints(e.sliceRenderRanges(s.dateProfile.renderUnzonedRange,a.calendar)))},hitOut:function(){o=null},hitDone:function(){l.enableCursor(),s.unrenderDrag()},interactionEnd:function(e){o&&a.reportExternalDrop(o,Boolean(u.eventProps),Boolean(u.stick),t,e,n),r.isDragging=!1,r.dragListener=null}})).startDrag(e)},e.prototype.computeExternalDrop=function(t,e){var n,i=this.view.calendar,o=u.default.utc(t.unzonedRange.startMs).stripZone();return t.isAllDay&&(e.startTime?o.time(e.startTime):o.stripTime()),e.duration&&(n=o.clone().add(e.duration)),o=i.applyTimezone(o),n&&(n=i.applyTimezone(n)),h.default.parse(r.extend({},e.eventProps,{start:o,end:n}),new p.default(i))},e}(m.default);e.default=g,c.default.mixInto(g),a.dataAttrPrefix=""},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(37),a=n(50),l=n(23),u=n(15),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.isResizing=!1,i.eventPointing=n,i}return i.__extends(e,t),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"mousedown",this.handleMouseDown.bind(this)),e.bindSegHandlerToEl(t,"touchstart",this.handleTouchStart.bind(this))},e.prototype.handleMouseDown=function(t,e){this.component.canStartResize(t,e)&&this.buildDragListener(t,o(e.target).is(".fc-start-resizer")).startInteraction(e,{distance:5})},e.prototype.handleTouchStart=function(t,e){this.component.canStartResize(t,e)&&this.buildDragListener(t,o(e.target).is(".fc-start-resizer")).startInteraction(e)},e.prototype.buildDragListener=function(t,e){var n,i,o=this,s=this.component,a=this.view,u=a.calendar,c=u.eventManager,d=t.el,h=t.footprint.eventDef,f=t.footprint.eventInstance;return this.dragListener=new l.default(s,{scroll:this.opt("dragScroll"),subjectEl:d,interactionStart:function(){n=!1},dragStart:function(e){n=!0,o.eventPointing.handleMouseout(t,e),o.segResizeStart(t,e)},hitOver:function(n,l,d){var f,p=!0,m=s.getSafeHitFootprint(d),g=s.getSafeHitFootprint(n);m&&g?(i=e?o.computeEventStartResizeMutation(m,g,t.footprint):o.computeEventEndResizeMutation(m,g,t.footprint),i?(f=c.buildMutatedEventInstanceGroup(h.id,i),p=s.isEventInstanceGroupAllowed(f)):p=!1):p=!1,p?i.isEmpty()&&(i=null):(i=null,r.disableCursor()),i&&(a.hideEventsWithId(t.footprint.eventDef.id),a.renderEventResize(s.eventRangesToEventFootprints(f.sliceRenderRanges(s.dateProfile.renderUnzonedRange,u)),t))},hitOut:function(){i=null},hitDone:function(){a.unrenderEventResize(t),a.showEventsWithId(t.footprint.eventDef.id),r.enableCursor()},interactionEnd:function(e){n&&o.segResizeStop(t,e),i&&a.reportEventResize(f,i,d,e),o.dragListener=null}})},e.prototype.segResizeStart=function(t,e){this.isResizing=!0,this.component.publiclyTrigger("eventResizeStart",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.segResizeStop=function(t,e){this.isResizing=!1,this.component.publiclyTrigger("eventResizeStop",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.computeEventStartResizeMutation=function(t,e,n){var i,o,r=n.componentFootprint.unzonedRange,l=this.component.diffDates(e.unzonedRange.getStart(),t.unzonedRange.getStart());return r.getStart().add(l)<r.getEnd()&&(i=new a.default,i.setStartDelta(l),o=new s.default,o.setDateMutation(i),o)},e.prototype.computeEventEndResizeMutation=function(t,e,n){var i,o,r=n.componentFootprint.unzonedRange,l=this.component.diffDates(e.unzonedRange.getEnd(),t.unzonedRange.getEnd());return r.getEnd().add(l)>r.getStart()&&(i=new a.default,i.setEndDelta(l),o=new s.default,o.setDateMutation(i),o)},e}(u.default);e.default=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(4),r=n(37),s=n(50),a=n(54),l=n(23),u=n(244),c=n(15),d=function(t){function e(e,n){var i=t.call(this,e)||this;return i.isDragging=!1,i.eventPointing=n,i}return i.__extends(e,t),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.getSelectionDelay=function(){var t=this.opt("eventLongPressDelay");return null==t&&(t=this.opt("longPressDelay")),t},e.prototype.bindToEl=function(t){var e=this.component;e.bindSegHandlerToEl(t,"mousedown",this.handleMousedown.bind(this)),e.bindSegHandlerToEl(t,"touchstart",this.handleTouchStart.bind(this))},e.prototype.handleMousedown=function(t,e){!this.component.shouldIgnoreMouse()&&this.component.canStartDrag(t,e)&&this.buildDragListener(t).startInteraction(e,{distance:5})},e.prototype.handleTouchStart=function(t,e){var n=this.component,i={delay:this.view.isEventDefSelected(t.footprint.eventDef)?0:this.getSelectionDelay()};n.canStartDrag(t,e)?this.buildDragListener(t).startInteraction(e,i):n.canStartSelection(t,e)&&this.buildSelectListener(t).startInteraction(e,i)},e.prototype.buildSelectListener=function(t){var e=this,n=this.view,i=t.footprint.eventDef,o=t.footprint.eventInstance;if(this.dragListener)return this.dragListener;var r=this.dragListener=new a.default({dragStart:function(t){r.isTouch&&!n.isEventDefSelected(i)&&o&&n.selectEventInstance(o)},interactionEnd:function(t){e.dragListener=null}});return r},e.prototype.buildDragListener=function(t){var e,n,i,r=this,s=this.component,a=this.view,c=a.calendar,d=c.eventManager,h=t.el,f=t.footprint.eventDef,p=t.footprint.eventInstance;if(this.dragListener)return this.dragListener;var m=this.dragListener=new l.default(a,{scroll:this.opt("dragScroll"),subjectEl:h,subjectCenter:!0,interactionStart:function(i){t.component=s,e=!1,n=new u.default(t.el,{additionalClass:"fc-dragging",parentEl:a.el,opacity:m.isTouch?null:r.opt("dragOpacity"),revertDuration:r.opt("dragRevertDuration"),zIndex:2}),n.hide(),n.start(i)},dragStart:function(n){m.isTouch&&!a.isEventDefSelected(f)&&p&&a.selectEventInstance(p),e=!0,r.eventPointing.handleMouseout(t,n),r.segDragStart(t,n),a.hideEventsWithId(t.footprint.eventDef.id)},hitOver:function(e,l,u){var h,p,g,v=!0;t.hit&&(u=t.hit),h=u.component.getSafeHitFootprint(u),p=e.component.getSafeHitFootprint(e),h&&p?(i=r.computeEventDropMutation(h,p,f),i?(g=d.buildMutatedEventInstanceGroup(f.id,i),v=s.isEventInstanceGroupAllowed(g)):v=!1):v=!1,v||(i=null,o.disableCursor()),i&&a.renderDrag(s.eventRangesToEventFootprints(g.sliceRenderRanges(s.dateProfile.renderUnzonedRange,c)),t,m.isTouch)?n.hide():n.show(),l&&(i=null)},hitOut:function(){a.unrenderDrag(t),n.show(),i=null},hitDone:function(){o.enableCursor()},interactionEnd:function(o){delete t.component,n.stop(!i,function(){e&&(a.unrenderDrag(t),r.segDragStop(t,o)),a.showEventsWithId(t.footprint.eventDef.id),i&&a.reportEventDrop(p,i,h,o)}),r.dragListener=null}});return m},e.prototype.segDragStart=function(t,e){this.isDragging=!0,this.component.publiclyTrigger("eventDragStart",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.segDragStop=function(t,e){this.isDragging=!1,this.component.publiclyTrigger("eventDragStop",{context:t.el[0],args:[t.footprint.getEventLegacy(),e,{},this.view]})},e.prototype.computeEventDropMutation=function(t,e,n){var i=new r.default;return i.setDateMutation(this.computeEventDateMutation(t,e)),i},e.prototype.computeEventDateMutation=function(t,e){var n,i,o=t.unzonedRange.getStart(),r=e.unzonedRange.getStart(),a=!1,l=!1,u=!1;return t.isAllDay!==e.isAllDay&&(a=!0,e.isAllDay?(u=!0,o.stripTime()):l=!0),n=this.component.diffDates(r,o),i=new s.default,i.clearEnd=a,i.forceTimed=l,i.forceAllDay=u,i.setDateDelta(n),i},e}(c.default);e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(4),r=n(23),s=n(12),a=n(5),l=n(15),u=function(t){function e(e){var n=t.call(this,e)||this;return n.dragListener=n.buildDragListener(),n}return i.__extends(e,t),e.prototype.end=function(){this.dragListener.endInteraction()},e.prototype.getDelay=function(){var t=this.opt("selectLongPressDelay");return null==t&&(t=this.opt("longPressDelay")),t},e.prototype.bindToEl=function(t){var e=this,n=this.component,i=this.dragListener;n.bindDateHandlerToEl(t,"mousedown",function(t){e.opt("selectable")&&!n.shouldIgnoreMouse()&&i.startInteraction(t,{distance:e.opt("selectMinDistance")})}),n.bindDateHandlerToEl(t,"touchstart",function(t){e.opt("selectable")&&!n.shouldIgnoreTouch()&&i.startInteraction(t,{delay:e.getDelay()})}),o.preventSelection(t)},e.prototype.buildDragListener=function(){var t,e=this,n=this.component;return new r.default(n,{scroll:this.opt("dragScroll"),interactionStart:function(){t=null},dragStart:function(t){e.view.unselect(t)},hitOver:function(i,r,s){var a,l;s&&(a=n.getSafeHitFootprint(s),l=n.getSafeHitFootprint(i),t=a&&l?e.computeSelection(a,l):null,t?n.renderSelectionFootprint(t):!1===t&&o.disableCursor())},hitOut:function(){t=null,n.unrenderSelection()},hitDone:function(){o.enableCursor()},interactionEnd:function(n,i){!i&&t&&e.view.reportSelection(t,n)}})},e.prototype.computeSelection=function(t,e){var n=this.computeSelectionFootprint(t,e);return!(n&&!this.isSelectionFootprintAllowed(n))&&n},e.prototype.computeSelectionFootprint=function(t,e){var n=[t.unzonedRange.startMs,t.unzonedRange.endMs,e.unzonedRange.startMs,e.unzonedRange.endMs];return n.sort(o.compareNumbers),new s.default(new a.default(n[0],n[3]),t.isAllDay)},e.prototype.isSelectionFootprintAllowed=function(t){return this.component.dateProfile.validUnzonedRange.containsRange(t.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(t)},e}(l.default);e.default=u},function(t,e,n){function i(t){var e,n=[],i=[];for(e=0;e<t.length;e++)t[e].componentFootprint.isAllDay?n.push(t[e]):i.push(t[e]);return{allDay:n,timed:i}}Object.defineProperty(e,"__esModule",{value:!0});var o,r,s=n(2),a=n(0),l=n(3),u=n(4),c=n(39),d=n(41),h=n(227),f=n(61),p=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.usesMinMaxTime=!0,i.timeGrid=i.instantiateTimeGrid(),i.addChild(i.timeGrid),i.opt("allDaySlot")&&(i.dayGrid=i.instantiateDayGrid(),i.addChild(i.dayGrid)),i.scroller=new c.default({overflowX:"hidden",overflowY:"auto"}),i}return s.__extends(e,t),e.prototype.instantiateTimeGrid=function(){var t=new this.timeGridClass(this);return u.copyOwnProps(o,t),t},e.prototype.instantiateDayGrid=function(){var t=new this.dayGridClass(this);return u.copyOwnProps(r,t),t},e.prototype.renderSkeleton=function(){var t,e;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.scroller.render(),t=this.scroller.el.addClass("fc-time-grid-container"),e=l('<div class="fc-time-grid" />').appendTo(t),this.el.find(".fc-body > tr > td").append(t),this.timeGrid.headContainerEl=this.el.find(".fc-head-container"),this.timeGrid.setElement(e),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},e.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement(),this.dayGrid&&this.dayGrid.removeElement(),this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var t=this.calendar.theme;return'<table class="'+t.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'"> </td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+t.getClass("widgetHeader")+'"/>':"")+"</td></tr></tbody></table>"},e.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},e.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},e.prototype.updateSize=function(e,n,i){var o,r,s;if(t.prototype.updateSize.call(this,e,n,i),this.axisWidth=u.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls)return void(n||(r=this.computeScrollerHeight(e),this.scroller.setHeight(r)));var a=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide(),this.scroller.clear(),u.uncompensateScroll(a),this.dayGrid&&(this.dayGrid.removeSegPopover(),o=this.opt("eventLimit"),o&&"number"!=typeof o&&(o=5),o&&this.dayGrid.limitRows(o)),n||(r=this.computeScrollerHeight(e),this.scroller.setHeight(r),s=this.scroller.getScrollbarWidths(),(s.left||s.right)&&(u.compensateScroll(a,s),r=this.computeScrollerHeight(e),this.scroller.setHeight(r)),this.scroller.lockOverflow(s),this.timeGrid.getTotalSlatHeight()<r&&this.timeGrid.bottomRuleEl.show())},e.prototype.computeScrollerHeight=function(t){return t-u.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.computeInitialDateScroll=function(){var t=a.duration(this.opt("scrollTime")),e=this.timeGrid.computeTimeTop(t);return e=Math.ceil(e),e&&e++,{top:e}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(t){void 0!==t.top&&this.scroller.setScrollTop(t.top)},e.prototype.getHitFootprint=function(t){return t.component.getHitFootprint(t)},e.prototype.getHitEl=function(t){return t.component.getHitEl(t)},e.prototype.executeEventRender=function(t){var e,n,i={},o={};for(e in t)n=t[e],n.getEventDef().isAllDay()?i[e]=n:o[e]=n;this.timeGrid.executeEventRender(o),this.dayGrid&&this.dayGrid.executeEventRender(i)},e.prototype.renderDrag=function(t,e,n){var o=i(t),r=!1;return r=this.timeGrid.renderDrag(o.timed,e,n),this.dayGrid&&(r=this.dayGrid.renderDrag(o.allDay,e,n)||r),r},e.prototype.renderEventResize=function(t,e,n){var o=i(t);this.timeGrid.renderEventResize(o.timed,e,n),this.dayGrid&&this.dayGrid.renderEventResize(o.allDay,e,n)},e.prototype.renderSelectionFootprint=function(t){t.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(t):this.timeGrid.renderSelectionFootprint(t)},e}(d.default);e.default=p,p.prototype.timeGridClass=h.default,p.prototype.dayGridClass=f.default,o={renderHeadIntroHtml:function(){var t,e=this.view,n=e.calendar,i=n.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0);return this.opt("weekNumbers")?(t=i.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+n.theme.getClass("widgetHeader")+'" '+e.axisStyleAttr()+">"+e.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt>1},u.htmlEscape(t))+"</th>"):'<th class="fc-axis '+n.theme.getClass("widgetHeader")+'" '+e.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.calendar.theme.getClass("widgetContent")+'" '+t.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},r={renderBgIntroHtml:function(){var t=this.view;return'<td class="fc-axis '+t.calendar.theme.getClass("widgetContent")+'" '+t.axisStyleAttr()+"><span>"+t.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(0),s=n(4),a=n(40),l=n(56),u=n(60),c=n(55),d=n(53),h=n(5),f=n(12),p=n(246),m=n(247),g=n(248),v=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],y=function(t){function e(e){var n=t.call(this,e)||this;return n.processOptions(),n}return i.__extends(e,t),e.prototype.componentFootprintToSegs=function(t){var e,n=this.sliceRangeByTimes(t.unzonedRange);for(e=0;e<n.length;e++)this.isRTL?n[e].col=this.daysPerRow-1-n[e].dayIndex:n[e].col=n[e].dayIndex;return n},e.prototype.sliceRangeByTimes=function(t){var e,n,i=[];for(n=0;n<this.daysPerRow;n++)(e=t.intersect(this.dayRanges[n]))&&i.push({startMs:e.startMs,endMs:e.endMs,isStart:e.isStart,isEnd:e.isEnd,dayIndex:n});return i},e.prototype.processOptions=function(){var t,e=this.opt("slotDuration"),n=this.opt("snapDuration");e=r.duration(e),n=n?r.duration(n):e,this.slotDuration=e,this.snapDuration=n,this.snapsPerSlot=e/n,t=this.opt("slotLabelFormat"),o.isArray(t)&&(t=t[t.length-1]),this.labelFormat=t||this.opt("smallTimeFormat"),t=this.opt("slotLabelInterval"),this.labelInterval=t?r.duration(t):this.computeLabelInterval(e)},e.prototype.computeLabelInterval=function(t){var e,n,i;for(e=v.length-1;e>=0;e--)if(n=r.duration(v[e]),i=s.divideDurationByDuration(n,t),s.isInt(i)&&i>1)return n;return r.duration(t)},e.prototype.renderDates=function(t){this.dateProfile=t,this.updateDayTable(),this.renderSlats(),this.renderColumns()},e.prototype.unrenderDates=function(){this.unrenderColumns()},e.prototype.renderSkeleton=function(){var t=this.view.calendar.theme;this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" style="display:none" />'),this.bottomRuleEl=this.el.find("hr")},e.prototype.renderSlats=function(){var t=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+t.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"</table>"),this.slatEls=this.slatContainerEl.find("tr"),this.slatCoordCache=new d.default({els:this.slatEls,isVertical:!0})},e.prototype.renderSlatRowHtml=function(){for(var t,e,n,i=this.view,o=i.calendar,a=o.theme,l=this.isRTL,u=this.dateProfile,c="",d=r.duration(+u.minTime),h=r.duration(0);d<u.maxTime;)t=o.msToUtcMoment(u.renderUnzonedRange.startMs).time(d),e=s.isInt(s.divideDurationByDuration(h,this.labelInterval)),n='<td class="fc-axis fc-time '+a.getClass("widgetContent")+'" '+i.axisStyleAttr()+">"+(e?"<span>"+s.htmlEscape(t.format(this.labelFormat))+"</span>":"")+"</td>",c+='<tr data-time="'+t.format("HH:mm:ss")+'"'+(e?"":' class="fc-minor"')+">"+(l?"":n)+'<td class="'+a.getClass("widgetContent")+'"/>'+(l?n:"")+"</tr>",d.add(this.slotDuration),h.add(this.slotDuration);return c},e.prototype.renderColumns=function(){var t=this.dateProfile,e=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(e){return new h.default(e.clone().add(t.minTime),e.clone().add(t.maxTime))}),this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),this.el.find("> .fc-bg").html('<table class="'+e.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"</table>"),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.colCoordCache=new d.default({els:this.colEls,isHorizontal:!0}),this.renderContentSkeleton()},e.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},e.prototype.renderContentSkeleton=function(){var t,e,n="";for(t=0;t<this.colCnt;t++)n+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';e=this.contentSkeletonEl=o('<div class="fc-content-skeleton"><table><tr>'+n+"</tr></table></div>"),this.colContainerEls=e.find(".fc-content-col"),this.helperContainerEls=e.find(".fc-helper-container"),this.fgContainerEls=e.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=e.find(".fc-bgevent-container"),this.highlightContainerEls=e.find(".fc-highlight-container"),this.businessContainerEls=e.find(".fc-business-container"),this.bookendCells(e.find("tr")),this.el.append(e)},e.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl&&(this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null)},e.prototype.groupSegsByCol=function(t){var e,n=[];for(e=0;e<this.colCnt;e++)n.push([]);for(e=0;e<t.length;e++)n[t[e].col].push(t[e]);return n},e.prototype.attachSegsByCol=function(t,e){var n,i,o;for(n=0;n<this.colCnt;n++)for(i=t[n],o=0;o<i.length;o++)e.eq(n).append(i[o].el)},e.prototype.getNowIndicatorUnit=function(){return"minute"},e.prototype.renderNowIndicator=function(t){if(this.colContainerEls){var e,n=this.componentFootprintToSegs(new f.default(new h.default(t,t.valueOf()+1),!1)),i=this.computeDateTop(t,t),r=[];for(e=0;e<n.length;e++)r.push(o('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",i).appendTo(this.colContainerEls.eq(n[e].col))[0]);n.length>0&&r.push(o('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",i).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=o(r)}},e.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},e.prototype.updateSize=function(e,n,i){t.prototype.updateSize.call(this,e,n,i),this.slatCoordCache.build(),i&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},e.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},e.prototype.computeDateTop=function(t,e){return this.computeTimeTop(r.duration(t-e.clone().stripTime()))},e.prototype.computeTimeTop=function(t){var e,n,i=this.slatEls.length,o=this.dateProfile,r=(t-o.minTime)/this.slotDuration;return r=Math.max(0,r),r=Math.min(i,r),e=Math.floor(r),e=Math.min(e,i-1),n=r-e,this.slatCoordCache.getTopPosition(e)+this.slatCoordCache.getHeight(e)*n},e.prototype.updateSegVerticals=function(t){this.computeSegVerticals(t),this.assignSegVerticals(t)},e.prototype.computeSegVerticals=function(t){var e,n,i,o=this.opt("agendaEventMinHeight");for(e=0;e<t.length;e++)n=t[e],i=this.dayDates[n.dayIndex],n.top=this.computeDateTop(n.startMs,i),n.bottom=Math.max(n.top+o,this.computeDateTop(n.endMs,i))},e.prototype.assignSegVerticals=function(t){var e,n;for(e=0;e<t.length;e++)n=t[e],n.el.css(this.generateSegVerticalCss(n))},e.prototype.generateSegVerticalCss=function(t){return{top:t.top,bottom:-t.bottom}},e.prototype.prepareHits=function(){this.colCoordCache.build(),this.slatCoordCache.build()},e.prototype.releaseHits=function(){this.colCoordCache.clear()},e.prototype.queryHit=function(t,e){var n=this.snapsPerSlot,i=this.colCoordCache,o=this.slatCoordCache;if(i.isLeftInBounds(t)&&o.isTopInBounds(e)){var r=i.getHorizontalIndex(t),s=o.getVerticalIndex(e);if(null!=r&&null!=s){var a=o.getTopOffset(s),l=o.getHeight(s),u=(e-a)/l,c=Math.floor(u*n),d=s*n+c,h=a+c/n*l,f=a+(c+1)/n*l;return{col:r,snap:d,component:this,left:i.getLeftOffset(r),right:i.getRightOffset(r),top:h,bottom:f}}}},e.prototype.getHitFootprint=function(t){var e,n=this.getCellDate(0,t.col),i=this.computeSnapTime(t.snap);return n.time(i),e=n.clone().add(this.snapDuration),new f.default(new h.default(n,e),!1)},e.prototype.computeSnapTime=function(t){return r.duration(this.dateProfile.minTime+this.snapDuration*t)},e.prototype.getHitEl=function(t){return this.colEls.eq(t.col)},e.prototype.renderDrag=function(t,e,n){var i;if(e){if(t.length)return this.helperRenderer.renderEventDraggingFootprints(t,e,n),!0}else for(i=0;i<t.length;i++)this.renderHighlight(t[i].componentFootprint)},e.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.renderEventResize=function(t,e,n){this.helperRenderer.renderEventResizingFootprints(t,e,n)},e.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},e.prototype.renderSelectionFootprint=function(t){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(t):this.renderHighlight(t)},e.prototype.unrenderSelection=function(){this.helperRenderer.unrender(),this.unrenderHighlight()},e}(a.default);e.default=y,y.prototype.eventRendererClass=p.default,y.prototype.businessHourRendererClass=l.default,y.prototype.helperRendererClass=m.default,y.prototype.fillRendererClass=g.default,u.default.mixInto(y),c.default.mixInto(y)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(5),r=n(221),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.buildRenderRange=function(e,n,i){var r=t.prototype.buildRenderRange.call(this,e,n,i),s=this.msToUtcMoment(r.startMs,i),a=this.msToUtcMoment(r.endMs,i);return/^(year|month)$/.test(n)&&(s.startOf("week"),a.weekday()&&a.add(1,"week").startOf("week")),new o.default(s,a)},e}(r.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(0),r=n(4),s=n(62),a=n(253),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setGridHeight=function(t,e){e&&(t*=this.dayGrid.rowCnt/6),r.distributeHeight(this.dayGrid.rowEls,t,!e)},e.prototype.isDateInOtherMonth=function(t,e){return t.month()!==o.utc(e.currentUnzonedRange.startMs).month()},e}(s.default);e.default=l,l.prototype.dateProfileGeneratorClass=a.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(5),a=n(41),l=n(39),u=n(254),c=n(255),d=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.segSelector=".fc-list-item",i.scroller=new l.default({overflowX:"hidden",overflowY:"auto"}),i}return i.__extends(e,t),e.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView")),this.scroller.render(),this.scroller.el.appendTo(this.el),this.contentEl=this.scroller.scrollEl},e.prototype.unrenderSkeleton=function(){this.scroller.destroy()},e.prototype.updateSize=function(e,n,i){t.prototype.updateSize.call(this,e,n,i),this.scroller.clear(),n||this.scroller.setHeight(this.computeScrollerHeight(e))},e.prototype.computeScrollerHeight=function(t){return t-r.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.renderDates=function(t){for(var e=this.calendar,n=e.msToUtcMoment(t.renderUnzonedRange.startMs,!0),i=e.msToUtcMoment(t.renderUnzonedRange.endMs,!0),o=[],r=[];n<i;)o.push(n.clone()),r.push(new s.default(n,n.clone().add(1,"day"))),n.add(1,"day");this.dayDates=o,this.dayRanges=r},e.prototype.componentFootprintToSegs=function(t){var e,n,i,o=this.dayRanges,r=[];for(e=0;e<o.length;e++)if((n=t.unzonedRange.intersect(o[e]))&&(i={startMs:n.startMs,endMs:n.endMs,isStart:n.isStart,isEnd:n.isEnd,dayIndex:e},r.push(i),!i.isEnd&&!t.isAllDay&&e+1<o.length&&t.unzonedRange.endMs<o[e+1].startMs+this.nextDayThreshold)){i.endMs=t.unzonedRange.endMs,i.isEnd=!0;break}return r},e.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+r.htmlEscape(this.opt("noEventsMessage"))+"</div></div></div>")},e.prototype.renderSegList=function(t){var e,n,i,r=this.groupSegsByDay(t),s=o('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/></table>'),a=s.find("tbody");for(e=0;e<r.length;e++)if(n=r[e])for(a.append(this.dayHeaderHtml(this.dayDates[e])),this.eventRenderer.sortEventSegs(n),i=0;i<n.length;i++)a.append(n[i].el);this.contentEl.empty().append(s)},e.prototype.groupSegsByDay=function(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],(i[n.dayIndex]||(i[n.dayIndex]=[])).push(n);return i},e.prototype.dayHeaderHtml=function(t){var e=this.opt("listDayFormat"),n=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+t.format("YYYY-MM-DD")+'"><td class="'+(this.calendar.theme.getClass("tableListHeading")||this.calendar.theme.getClass("widgetHeader"))+'" colspan="3">'+(e?this.buildGotoAnchorHtml(t,{class:"fc-list-heading-main"},r.htmlEscape(t.format(e))):"")+(n?this.buildGotoAnchorHtml(t,{class:"fc-list-heading-alt"},r.htmlEscape(t.format(n))):"")+"</td></tr>"},e}(a.default);e.default=d,d.prototype.eventRendererClass=u.default,d.prototype.eventPointingClass=c.default},,,,,,function(t,e,n){var i=n(3),o=n(16),r=n(4),s=n(220);n(10),n(47),n(256),n(257),n(260),n(261),n(262),n(263),i.fullCalendar=o,i.fn.fullCalendar=function(t){var e=Array.prototype.slice.call(arguments,1),n=this;return this.each(function(o,a){var l,u=i(a),c=u.data("fullCalendar");"string"==typeof t?"getCalendar"===t?o||(n=c):"destroy"===t?c&&(c.destroy(),u.removeData("fullCalendar")):c?i.isFunction(c[t])?(l=c[t].apply(c,e),o||(n=l),"destroy"===t&&u.removeData("fullCalendar")):r.warn("'"+t+"' is an unknown FullCalendar method."):r.warn("Attempting to call a FullCalendar method on an element with no calendar."):c||(c=new s.default(u,t),u.data("fullCalendar",c),c.render())}),n},t.exports=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(48),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setElement=function(t){this.el=t,this.bindGlobalHandlers(),this.renderSkeleton(),this.set("isInDom",!0)},e.prototype.removeElement=function(){this.unset("isInDom"),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},e.prototype.bindGlobalHandlers=function(){},e.prototype.unbindGlobalHandlers=function(){},e.prototype.renderSkeleton=function(){},e.prototype.unrenderSkeleton=function(){},e}(o.default);e.default=r},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.items=t||[]}return t.prototype.proxyCall=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=[];return this.items.forEach(function(n){i.push(n[t].apply(n,e))}),i},t}();e.default=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=function(){function t(t,e){this.el=null,this.viewsWithButtons=[],this.calendar=t,this.toolbarOptions=e}return t.prototype.setToolbarOptions=function(t){this.toolbarOptions=t},t.prototype.render=function(){var t=this.toolbarOptions.layout,e=this.el;t?(e?e.empty():e=this.el=i("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),e.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},t.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},t.prototype.renderSection=function(t){var e=this,n=this.calendar,r=n.theme,s=n.optionsManager,a=n.viewSpecManager,l=i('<div class="fc-'+t+'"/>'),u=this.toolbarOptions.layout[t],c=s.get("customButtons")||{},d=s.overrides.buttonText||{},h=s.get("buttonText")||{};return u&&i.each(u.split(" "),function(t,s){var u,f=i(),p=!0;i.each(s.split(","),function(t,s){var l,u,m,g,v,y,b,w,_;"title"===s?(f=f.add(i("<h2> </h2>")),p=!1):((l=c[s])?(m=function(t){l.click&&l.click.call(w[0],t)},(g=r.getCustomButtonIconClass(l))||(g=r.getIconClass(s))||(v=l.text)):(u=a.getViewSpec(s))?(e.viewsWithButtons.push(s),m=function(){n.changeView(s)},(v=u.buttonTextOverride)||(g=r.getIconClass(s))||(v=u.buttonTextDefault)):n[s]&&(m=function(){n[s]()},(v=d[s])||(g=r.getIconClass(s))||(v=h[s])),m&&(b=["fc-"+s+"-button",r.getClass("button"),r.getClass("stateDefault")],v?(y=o.htmlEscape(v),_=""):g&&(y="<span class='"+g+"'></span>",_=' aria-label="'+s+'"'),w=i('<button type="button" class="'+b.join(" ")+'"'+_+">"+y+"</button>").click(function(t){w.hasClass(r.getClass("stateDisabled"))||(m(t),(w.hasClass(r.getClass("stateActive"))||w.hasClass(r.getClass("stateDisabled")))&&w.removeClass(r.getClass("stateHover")))}).mousedown(function(){w.not("."+r.getClass("stateActive")).not("."+r.getClass("stateDisabled")).addClass(r.getClass("stateDown"))}).mouseup(function(){w.removeClass(r.getClass("stateDown"))}).hover(function(){w.not("."+r.getClass("stateActive")).not("."+r.getClass("stateDisabled")).addClass(r.getClass("stateHover"))},function(){w.removeClass(r.getClass("stateHover")).removeClass(r.getClass("stateDown"))}),f=f.add(w)))}),p&&f.first().addClass(r.getClass("cornerLeft")).end().last().addClass(r.getClass("cornerRight")).end(),f.length>1?(u=i("<div/>"),p&&u.addClass(r.getClass("buttonGroup")),u.append(f),l.append(u)):l.append(f)}),l},t.prototype.updateTitle=function(t){this.el&&this.el.find("h2").text(t)},t.prototype.activateButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").addClass(this.calendar.theme.getClass("stateActive"))},t.prototype.deactivateButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},t.prototype.disableButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},t.prototype.enableButton=function(t){this.el&&this.el.find(".fc-"+t+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},t.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},t}();e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(32),a=n(31),l=n(48),u=function(t){function e(e,n){var i=t.call(this)||this;return i._calendar=e,i.overrides=o.extend({},n),i.dynamicOverrides={},i.compute(),i}return i.__extends(e,t),e.prototype.add=function(t){var e,n=0;this.recordOverrides(t);for(e in t)n++;if(1===n){if("height"===e||"contentHeight"===e||"aspectRatio"===e)return void this._calendar.updateViewSize(!0);if("defaultDate"===e)return;if("businessHours"===e)return;if(/^(event|select)(Overlap|Constraint|Allow)$/.test(e))return;if("timezone"===e)return void this._calendar.view.flash("initialEvents")}this._calendar.renderHeader(),this._calendar.renderFooter(),this._calendar.viewsByType={},this._calendar.reinitView()},e.prototype.compute=function(){var t,e,n,i,o;t=r.firstDefined(this.dynamicOverrides.locale,this.overrides.locale),e=a.localeOptionHash[t],e||(t=s.globalDefaults.locale,e=a.localeOptionHash[t]||{}),n=r.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,e.isRTL,s.globalDefaults.isRTL),i=n?s.rtlDefaults:{},this.dirDefaults=i,this.localeDefaults=e,o=s.mergeOptions([s.globalDefaults,i,e,this.overrides,this.dynamicOverrides]),a.populateInstanceComputableOptions(o),this.reset(o)},e.prototype.recordOverrides=function(t){var e;for(e in t)this.dynamicOverrides[e]=t[e];this._calendar.viewSpecManager.clearCache(),this.compute()},e}(l.default);e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(3),r=n(22),s=n(4),a=n(32),l=n(31),u=function(){function t(t,e){this.optionsManager=t,this._calendar=e,this.clearCache()}return t.prototype.clearCache=function(){this.viewSpecCache={}},t.prototype.getViewSpec=function(t){var e=this.viewSpecCache;return e[t]||(e[t]=this.buildViewSpec(t))},t.prototype.getUnitViewSpec=function(t){var e,n,i;if(-1!==o.inArray(t,s.unitsDesc))for(e=this._calendar.header.getViewsWithButtons(),o.each(r.viewHash,function(t){e.push(t)}),n=0;n<e.length;n++)if((i=this.getViewSpec(e[n]))&&i.singleUnit===t)return i},t.prototype.buildViewSpec=function(t){for(var e,n,o,l,u,c=this.optionsManager.overrides.views||{},d=[],h=[],f=[],p=t;p;)e=r.viewHash[p],n=c[p],p=null,"function"==typeof e&&(e={class:e}),e&&(d.unshift(e),h.unshift(e.defaults||{}),o=o||e.duration,p=p||e.type),n&&(f.unshift(n),o=o||n.duration,p=p||n.type);return e=s.mergeProps(d),e.type=t,!!e.class&&(o=o||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,o&&(l=i.duration(o),l.valueOf()&&(u=s.computeDurationGreatestUnit(l,o),e.duration=l,e.durationUnit=u,1===l.as(u)&&(e.singleUnit=u,f.unshift(c[u]||{})))),e.defaults=a.mergeOptions(h),e.overrides=a.mergeOptions(f),this.buildViewSpecOptions(e),this.buildViewSpecButtonText(e,t),e)},t.prototype.buildViewSpecOptions=function(t){var e=this.optionsManager;t.options=a.mergeOptions([a.globalDefaults,t.defaults,e.dirDefaults,e.localeDefaults,e.overrides,t.overrides,e.dynamicOverrides]),l.populateInstanceComputableOptions(t.options)},t.prototype.buildViewSpecButtonText=function(t,e){function n(n){var i=n.buttonText||{};return i[e]||(t.buttonTextKey?i[t.buttonTextKey]:null)||(t.singleUnit?i[t.singleUnit]:null)}var i=this.optionsManager;t.buttonTextOverride=n(i.dynamicOverrides)||n(i.overrides)||t.overrides.buttonText,t.buttonTextDefault=n(i.localeDefaults)||n(i.dirDefaults)||t.defaults.buttonText||n(a.globalDefaults)||(t.duration?this._calendar.humanizeDuration(t.duration):null)||e},t}();e.default=u},function(t,e,n){function i(t,e){return t.getPrimitive()===e.getPrimitive()}Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(4),s=n(243),a=n(52),l=n(6),u=n(38),c=n(13),d=n(18),h=n(11),f=n(7),p=function(){function t(t){this.calendar=t,this.stickySource=new a.default(t),this.otherSources=[]}return t.prototype.requestEvents=function(t,e,n,i){return!i&&this.currentPeriod&&this.currentPeriod.isWithinRange(t,e)&&n===this.currentPeriod.timezone||this.setPeriod(new s.default(t,e,n)),this.currentPeriod.whenReleased()},t.prototype.addSource=function(t){this.otherSources.push(t),this.currentPeriod&&this.currentPeriod.requestSource(t)},t.prototype.removeSource=function(t){r.removeExact(this.otherSources,t),this.currentPeriod&&this.currentPeriod.purgeSource(t)},t.prototype.removeAllSources=function(){this.otherSources=[],this.currentPeriod&&this.currentPeriod.purgeAllSources()},t.prototype.refetchSource=function(t){var e=this.currentPeriod;e&&(e.freeze(),e.purgeSource(t),e.requestSource(t),e.thaw())},t.prototype.refetchAllSources=function(){var t=this.currentPeriod;t&&(t.freeze(),t.purgeAllSources(),t.requestSources(this.getSources()),t.thaw())},t.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},t.prototype.multiQuerySources=function(t){t?o.isArray(t)||(t=[t]):t=[];var e,n=[];for(e=0;e<t.length;e++)n.push.apply(n,this.querySources(t[e]));return n},t.prototype.querySources=function(t){var e,n,r=this.otherSources;for(e=0;e<r.length;e++)if((n=r[e])===t)return[n];return(n=this.getSourceById(l.default.normalizeId(t)))?[n]:(t=u.default.parse(t,this.calendar),t?o.grep(r,function(e){return i(t,e)}):void 0)},t.prototype.getSourceById=function(t){return o.grep(this.otherSources,function(e){return e.id&&e.id===t})[0]},t.prototype.setPeriod=function(t){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null),this.currentPeriod=t,this.bindPeriod(t),t.requestSources(this.getSources())},t.prototype.bindPeriod=function(t){this.listenTo(t,"release",function(t){this.trigger("release",t)})},t.prototype.unbindPeriod=function(t){this.stopListeningTo(t)},t.prototype.getEventDefByUid=function(t){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(t)},t.prototype.addEventDef=function(t,e){e&&this.stickySource.addEventDef(t),this.currentPeriod&&this.currentPeriod.addEventDef(t)},t.prototype.removeEventDefsById=function(t){this.getSources().forEach(function(e){e.removeEventDefsById(t)}),this.currentPeriod&&this.currentPeriod.removeEventDefsById(t)},t.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(t){t.removeAllEventDefs()}),this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},t.prototype.mutateEventsWithId=function(t,e){var n,i=this.currentPeriod,o=[];return i?(i.freeze(),n=i.getEventDefsById(t),n.forEach(function(t){i.removeEventDef(t),o.push(e.mutateSingle(t)),i.addEventDef(t)}),i.thaw(),function(){i.freeze();for(var t=0;t<n.length;t++)i.removeEventDef(n[t]),o[t](),i.addEventDef(n[t]);i.thaw()}):function(){}},t.prototype.buildMutatedEventInstanceGroup=function(t,e){var n,i,o=this.getEventDefsById(t),r=[];for(n=0;n<o.length;n++)(i=o[n].clone())instanceof c.default&&(e.mutateSingle(i),r.push.apply(r,i.buildInstances()));return new d.default(r)},t.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},t.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},t.prototype.getEventDefsById=function(t){return this.currentPeriod.getEventDefsById(t)},t.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},t.prototype.getEventInstancesWithId=function(t){return this.currentPeriod.getEventInstancesWithId(t)},t.prototype.getEventInstancesWithoutId=function(t){return this.currentPeriod.getEventInstancesWithoutId(t)},t}();e.default=p,h.default.mixInto(p),f.default.mixInto(p)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=n(20),s=n(11),a=n(5),l=n(18),u=function(){function t(t,e,n){this.pendingCnt=0,this.freezeDepth=0,this.stuntedReleaseCnt=0,this.releaseCnt=0,this.start=t,this.end=e,this.timezone=n,this.unzonedRange=new a.default(t.clone().stripZone(),e.clone().stripZone()),this.requestsByUid={},this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={}}return t.prototype.isWithinRange=function(t,e){return!t.isBefore(this.start)&&!e.isAfter(this.end)},t.prototype.requestSources=function(t){this.freeze();for(var e=0;e<t.length;e++)this.requestSource(t[e]);this.thaw()},t.prototype.requestSource=function(t){var e=this,n={source:t,status:"pending",eventDefs:null};this.requestsByUid[t.uid]=n,this.pendingCnt+=1,t.fetch(this.start,this.end,this.timezone).then(function(t){"cancelled"!==n.status&&(n.status="completed",n.eventDefs=t,e.addEventDefs(t),e.pendingCnt--,e.tryRelease())},function(){"cancelled"!==n.status&&(n.status="failed",e.pendingCnt--,e.tryRelease())})},t.prototype.purgeSource=function(t){var e=this.requestsByUid[t.uid];e&&(delete this.requestsByUid[t.uid],"pending"===e.status?(e.status="cancelled",this.pendingCnt--,this.tryRelease()):"completed"===e.status&&e.eventDefs.forEach(this.removeEventDef.bind(this)))},t.prototype.purgeAllSources=function(){var t,e,n=this.requestsByUid,i=0;for(t in n)e=n[t],"pending"===e.status?e.status="cancelled":"completed"===e.status&&i++;this.requestsByUid={},this.pendingCnt=0,i&&this.removeAllEventDefs()},t.prototype.getEventDefByUid=function(t){return this.eventDefsByUid[t]},t.prototype.getEventDefsById=function(t){var e=this.eventDefsById[t];return e?e.slice():[]},t.prototype.addEventDefs=function(t){for(var e=0;e<t.length;e++)this.addEventDef(t[e])},t.prototype.addEventDef=function(t){var e,n=this.eventDefsById,i=t.id,o=n[i]||(n[i]=[]),r=t.buildInstances(this.unzonedRange);for(o.push(t),this.eventDefsByUid[t.uid]=t,e=0;e<r.length;e++)this.addEventInstance(r[e],i)},t.prototype.removeEventDefsById=function(t){var e=this;this.getEventDefsById(t).forEach(function(t){e.removeEventDef(t)})},t.prototype.removeAllEventDefs=function(){var t=i.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={},t||this.tryRelease()},t.prototype.removeEventDef=function(t){var e=this.eventDefsById,n=e[t.id];delete this.eventDefsByUid[t.uid],n&&(o.removeExact(n,t),n.length||delete e[t.id],this.removeEventInstancesForDef(t))},t.prototype.getEventInstances=function(){var t,e=this.eventInstanceGroupsById,n=[];for(t in e)n.push.apply(n,e[t].eventInstances);return n},t.prototype.getEventInstancesWithId=function(t){var e=this.eventInstanceGroupsById[t];return e?e.eventInstances.slice():[]},t.prototype.getEventInstancesWithoutId=function(t){var e,n=this.eventInstanceGroupsById,i=[];for(e in n)e!==t&&i.push.apply(i,n[e].eventInstances);return i},t.prototype.addEventInstance=function(t,e){var n=this.eventInstanceGroupsById;(n[e]||(n[e]=new l.default)).eventInstances.push(t),this.tryRelease()},t.prototype.removeEventInstancesForDef=function(t){var e,n=this.eventInstanceGroupsById,i=n[t.id];i&&(e=o.removeMatching(i.eventInstances,function(e){return e.def===t}),i.eventInstances.length||delete n[t.id],e&&this.tryRelease())},t.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},t.prototype.release=function(){this.releaseCnt++,this.trigger("release",this.eventInstanceGroupsById)},t.prototype.whenReleased=function(){var t=this;return this.releaseCnt?r.default.resolve(this.eventInstanceGroupsById):r.default.construct(function(e){t.one("release",e)})},t.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},t.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},t}();e.default=u,s.default.mixInto(u)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=n(7),s=function(){function t(t,e){this.isFollowing=!1,this.isHidden=!1,this.isAnimating=!1,this.options=e=e||{},this.sourceEl=t,this.parentEl=e.parentEl?i(e.parentEl):t.parent()}return t.prototype.start=function(t){this.isFollowing||(this.isFollowing=!0,this.y0=o.getEvY(t),this.x0=o.getEvX(t),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),o.getEvIsTouch(t)?this.listenTo(i(document),"touchmove",this.handleMove):this.listenTo(i(document),"mousemove",this.handleMove))},t.prototype.stop=function(t,e){var n=this,o=this.options.revertDuration,r=function(){n.isAnimating=!1,n.removeElement(),n.top0=n.left0=null,e&&e()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(i(document)),t&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:r})):r())},t.prototype.getEl=function(){var t=this.el;return t||(t=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").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}),t.addClass("fc-unselectable"),t.appendTo(this.parentEl)),t},t.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},t.prototype.updatePosition=function(){var t,e;this.getEl(),null==this.top0&&(t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},t.prototype.handleMove=function(t){this.topDelta=o.getEvY(t)-this.y0,this.leftDelta=o.getEvX(t)-this.x0,this.isHidden||this.updatePosition()},t.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},t.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},t}();e.default=s,r.default.mixInto(s)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(23),r=n(15),s=function(t){function e(e){var n=t.call(this,e)||this;return n.dragListener=n.buildDragListener(),n}return i.__extends(e,t),e.prototype.end=function(){this.dragListener.endInteraction()},e.prototype.bindToEl=function(t){var e=this.component,n=this.dragListener;e.bindDateHandlerToEl(t,"mousedown",function(t){e.shouldIgnoreMouse()||n.startInteraction(t)}),e.bindDateHandlerToEl(t,"touchstart",function(t){e.shouldIgnoreTouch()||n.startInteraction(t)})},e.prototype.buildDragListener=function(){var t,e=this,n=this.component,i=new o.default(n,{scroll:this.opt("dragScroll"),interactionStart:function(){t=i.origHit},hitOver:function(e,n,i){n||(t=null)},hitOut:function(){t=null},interactionEnd:function(i,o){var r;!o&&t&&(r=n.getSafeHitFootprint(t))&&e.view.triggerDayClick(r,n.getHitEl(t),i)}});return i.shouldCancelTouchScroll=!1,i.scrollAlwaysKills=!0,i},e}(r.default);e.default=s},function(t,e,n){function i(t){var e,n,i,o=[];for(e=0;e<t.length;e++){for(n=t[e],i=0;i<o.length&&s(n,o[i]).length;i++);n.level=i,(o[i]||(o[i]=[])).push(n)}return o}function o(t){var e,n,i,o,r;for(e=0;e<t.length;e++)for(n=t[e],i=0;i<n.length;i++)for(o=n[i],o.forwardSegs=[],r=e+1;r<t.length;r++)s(o,t[r],o.forwardSegs)}function r(t){var e,n,i=t.forwardSegs,o=0;if(void 0===t.forwardPressure){for(e=0;e<i.length;e++)n=i[e],r(n),o=Math.max(o,1+n.forwardPressure);t.forwardPressure=o}}function s(t,e,n){void 0===n&&(n=[]);for(var i=0;i<e.length;i++)a(t,e[i])&&n.push(e[i]);return n}function a(t,e){return t.bottom>e.top&&t.top<e.bottom}Object.defineProperty(e,"__esModule",{value:!0});var l=n(2),u=n(4),c=n(42),d=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.timeGrid=e,i}return l.__extends(e,t),e.prototype.renderFgSegs=function(t){this.renderFgSegsIntoContainers(t,this.timeGrid.fgContainerEls)},e.prototype.renderFgSegsIntoContainers=function(t,e){var n,i;for(n=this.timeGrid.groupSegsByCol(t),i=0;i<this.timeGrid.colCnt;i++)this.updateFgSegCoords(n[i]);this.timeGrid.attachSegsByCol(n,e)},e.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(t){t.el.remove()})},e.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.fgSegHtml=function(t,e){var n,i,o,r=this.view,s=r.calendar,a=t.footprint.componentFootprint,l=a.isAllDay,c=t.footprint.eventDef,d=r.isEventDefDraggable(c),h=!e&&t.isStart&&r.isEventDefResizableFromStart(c),f=!e&&t.isEnd&&r.isEventDefResizableFromEnd(c),p=this.getSegClasses(t,d,h||f),m=u.cssToStr(this.getSkinCss(c));if(p.unshift("fc-time-grid-event","fc-v-event"),r.isMultiDayRange(a.unzonedRange)){if(t.isStart||t.isEnd){var g=s.msToMoment(t.startMs),v=s.msToMoment(t.endMs);n=this._getTimeText(g,v,l),i=this._getTimeText(g,v,l,"LT"),o=this._getTimeText(g,v,l,null,!1)}}else n=this.getTimeText(t.footprint),i=this.getTimeText(t.footprint,"LT"),o=this.getTimeText(t.footprint,null,!1);return'<a class="'+p.join(" ")+'"'+(c.url?' href="'+u.htmlEscape(c.url)+'"':"")+(m?' style="'+m+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+u.htmlEscape(o)+'" data-full="'+u.htmlEscape(i)+'"><span>'+u.htmlEscape(n)+"</span></div>":"")+(c.title?'<div class="fc-title">'+u.htmlEscape(c.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(f?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},e.prototype.updateFgSegCoords=function(t){this.timeGrid.computeSegVerticals(t),this.computeFgSegHorizontals(t),this.timeGrid.assignSegVerticals(t),this.assignFgSegHorizontals(t)},e.prototype.computeFgSegHorizontals=function(t){var e,n,s;if(this.sortEventSegs(t),e=i(t),o(e),n=e[0]){for(s=0;s<n.length;s++)r(n[s]);for(s=0;s<n.length;s++)this.computeFgSegForwardBack(n[s],0,0)}},e.prototype.computeFgSegForwardBack=function(t,e,n){var i,o=t.forwardSegs;if(void 0===t.forwardCoord)for(o.length?(this.sortForwardSegs(o),this.computeFgSegForwardBack(o[0],e+1,n),t.forwardCoord=o[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-n)/(e+1),i=0;i<o.length;i++)this.computeFgSegForwardBack(o[i],0,t.forwardCoord)},e.prototype.sortForwardSegs=function(t){t.sort(u.proxy(this,"compareForwardSegs"))},e.prototype.compareForwardSegs=function(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||this.compareEventSegs(t,e)},e.prototype.assignFgSegHorizontals=function(t){var e,n;for(e=0;e<t.length;e++)n=t[e],n.el.css(this.generateFgSegHorizontalCss(n)),n.bottom-n.top<30&&n.el.addClass("fc-short")},e.prototype.generateFgSegHorizontalCss=function(t){var e,n,i=this.opt("slotEventOverlap"),o=t.backwardCoord,r=t.forwardCoord,s=this.timeGrid.generateSegVerticalCss(t),a=this.timeGrid.isRTL;return i&&(r=Math.min(1,o+2*(r-o))),a?(e=1-r,n=o):(e=o,n=1-r),s.zIndex=t.level+1,s.left=100*e+"%",s.right=100*n+"%",i&&t.forwardPressure&&(s[a?"marginLeft":"marginRight"]=20),s},e}(c.default);e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(58),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.renderSegs=function(t,e){var n,i,r,s=[];for(this.eventRenderer.renderFgSegsIntoContainers(t,this.component.helperContainerEls),n=0;n<t.length;n++)i=t[n],e&&e.col===i.col&&(r=e.el,i.el.css({left:r.css("left"),right:r.css("right"),"margin-left":r.css("margin-left"),"margin-right":r.css("margin-right")})),s.push(i.el[0]);return o(s)},e}(r.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(57),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.attachSegEls=function(t,e){var n,i=this.component;return"bgEvent"===t?n=i.bgContainerEls:"businessHours"===t?n=i.businessContainerEls:"highlight"===t&&(n=i.highlightContainerEls),i.updateSegVerticals(e),i.attachSegsByCol(i.groupSegsByCol(e),n),e.map(function(t){return t.el[0]})},e}(o.default);e.default=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=n(7),s=function(){function t(t){this.isHidden=!0,this.margin=10,this.options=t||{}}return t.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},t.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},t.prototype.render=function(){var t=this,e=this.options;this.el=i('<div class="fc-popover"/>').addClass(e.className||"").css({top:0,left:0}).append(e.content).appendTo(e.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),e.autoHide&&this.listenTo(i(document),"mousedown",this.documentMousedown)},t.prototype.documentMousedown=function(t){this.el&&!i(t.target).closest(this.el).length&&this.hide()},t.prototype.removeElement=function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(i(document),"mousedown")},t.prototype.position=function(){var t,e,n,r,s,a=this.options,l=this.el.offsetParent().offset(),u=this.el.outerWidth(),c=this.el.outerHeight(),d=i(window),h=o.getScrollParent(this.el);r=a.top||0,s=void 0!==a.left?a.left:void 0!==a.right?a.right-u:0,h.is(window)||h.is(document)?(h=d,t=0,e=0):(n=h.offset(),t=n.top,e=n.left),t+=d.scrollTop(),e+=d.scrollLeft(),!1!==a.viewportConstrain&&(r=Math.min(r,t+h.outerHeight()-c-this.margin),r=Math.max(r,t+this.margin),s=Math.min(s,e+h.outerWidth()-u-this.margin),s=Math.max(s,e+this.margin)),this.el.css({top:r-l.top,left:s-l.left})},t.prototype.trigger=function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},t}();e.default=s,r.default.mixInto(s)},function(t,e,n){function i(t,e){var n,i;for(n=0;n<e.length;n++)if(i=e[n],i.leftCol<=t.rightCol&&i.rightCol>=t.leftCol)return!0;return!1}function o(t,e){return t.leftCol-e.leftCol}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),s=n(3),a=n(4),l=n(42),u=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.dayGrid=e,i}return r.__extends(e,t),e.prototype.renderBgRanges=function(e){e=s.grep(e,function(t){return t.eventDef.isAllDay()}),t.prototype.renderBgRanges.call(this,e)},e.prototype.renderFgSegs=function(t){var e=this.rowStructs=this.renderSegRows(t);this.dayGrid.rowEls.each(function(t,n){s(n).find(".fc-content-skeleton > table").append(e[t].tbodyEl)})},e.prototype.unrenderFgSegs=function(){for(var t,e=this.rowStructs||[];t=e.pop();)t.tbodyEl.remove();this.rowStructs=null},e.prototype.renderSegRows=function(t){var e,n,i=[];for(e=this.groupSegRows(t),n=0;n<e.length;n++)i.push(this.renderSegRow(n,e[n]));return i},e.prototype.renderSegRow=function(t,e){function n(t){for(;r<t;)c=(v[i-1]||[])[r],c?c.attr("rowspan",parseInt(c.attr("rowspan")||1,10)+1):(c=s("<td/>"),a.append(c)),g[i][r]=c,v[i][r]=c,r++}var i,o,r,a,l,u,c,d=this.dayGrid.colCnt,h=this.buildSegLevels(e),f=Math.max(1,h.length),p=s("<tbody/>"),m=[],g=[],v=[];for(i=0;i<f;i++){if(o=h[i],r=0,a=s("<tr/>"),m.push([]),g.push([]),v.push([]),o)for(l=0;l<o.length;l++){for(u=o[l],n(u.leftCol),c=s('<td class="fc-event-container"/>').append(u.el),u.leftCol!==u.rightCol?c.attr("colspan",u.rightCol-u.leftCol+1):v[i][r]=c;r<=u.rightCol;)g[i][r]=c,m[i][r]=u,r++;a.append(c)}n(d),this.dayGrid.bookendCells(a),p.append(a)}return{row:t,tbodyEl:p,cellMatrix:g,segMatrix:m,segLevels:h,segs:e}},e.prototype.buildSegLevels=function(t){var e,n,r,s=[];for(this.sortEventSegs(t),e=0;e<t.length;e++){for(n=t[e],r=0;r<s.length&&i(n,s[r]);r++);n.level=r,(s[r]||(s[r]=[])).push(n)}for(r=0;r<s.length;r++)s[r].sort(o);return s},e.prototype.groupSegRows=function(t){var e,n=[];for(e=0;e<this.dayGrid.rowCnt;e++)n.push([]);for(e=0;e<t.length;e++)n[t[e].row].push(t[e]);return n},e.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},e.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},e.prototype.fgSegHtml=function(t,e){var n,i,o=this.view,r=t.footprint.eventDef,s=t.footprint.componentFootprint.isAllDay,l=o.isEventDefDraggable(r),u=!e&&s&&t.isStart&&o.isEventDefResizableFromStart(r),c=!e&&s&&t.isEnd&&o.isEventDefResizableFromEnd(r),d=this.getSegClasses(t,l,u||c),h=a.cssToStr(this.getSkinCss(r)),f="";return d.unshift("fc-day-grid-event","fc-h-event"),t.isStart&&(n=this.getTimeText(t.footprint))&&(f='<span class="fc-time">'+a.htmlEscape(n)+"</span>"),i='<span class="fc-title">'+(a.htmlEscape(r.title||"")||" ")+"</span>",'<a class="'+d.join(" ")+'"'+(r.url?' href="'+a.htmlEscape(r.url)+'"':"")+(h?' style="'+h+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?i+" "+f:f+" "+i)+"</div>"+(u?'<div class="fc-resizer fc-start-resizer" />':"")+(c?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},e}(l.default);e.default=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(58),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.renderSegs=function(t,e){var n,i=[];return n=this.eventRenderer.renderSegRows(t),this.component.rowEls.each(function(t,r){var s,a,l=o(r),u=o('<div class="fc-helper-skeleton"><table/></div>');e&&e.row===t?a=e.el.position().top:(s=l.find(".fc-content-skeleton tbody"),s.length||(s=l.find(".fc-content-skeleton table")),a=s.position().top),u.css("top",a).find("table").append(n[t].tbodyEl),l.append(u),i.push(u[0])}),o(i)},e}(r.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(57),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.fillSegTag="td",e}return i.__extends(e,t),e.prototype.attachSegEls=function(t,e){var n,i,o,r=[];for(n=0;n<e.length;n++)i=e[n],o=this.renderFillRow(t,i),this.component.rowEls.eq(i.row).append(o),r.push(o[0]);return r},e.prototype.renderFillRow=function(t,e){var n,i,r,s=this.component.colCnt,a=e.leftCol,l=e.rightCol+1;return n="businessHours"===t?"bgevent":t.toLowerCase(),i=o('<div class="fc-'+n+'-skeleton"><table><tr/></table></div>'),r=i.find("tr"),a>0&&r.append('<td colspan="'+a+'"/>'),r.append(e.el.attr("colspan",l-a)),l<s&&r.append('<td colspan="'+(s-l)+'"/>'),this.component.bookendCells(r),i},e}(r.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(228),r=n(5),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.buildRenderRange=function(e,n,i){var o,s=t.prototype.buildRenderRange.call(this,e,n,i),a=this.msToUtcMoment(s.startMs,i),l=this.msToUtcMoment(s.endMs,i);return this.opt("fixedWeekCount")&&(o=Math.ceil(l.diff(a,"weeks",!0)),l.add(6-o,"weeks")),new r.default(a,l)},e}(o.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(4),r=n(42),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.renderFgSegs=function(t){t.length?this.component.renderSegList(t):this.component.renderEmptyMessage()},e.prototype.fgSegHtml=function(t){var e,n=this.view,i=n.calendar,r=i.theme,s=t.footprint,a=s.eventDef,l=s.componentFootprint,u=a.url,c=["fc-list-item"].concat(this.getClasses(a)),d=this.getBgColor(a);return e=l.isAllDay?n.getAllDayHtml():n.isMultiDayRange(l.unzonedRange)?t.isStart||t.isEnd?o.htmlEscape(this._getTimeText(i.msToMoment(t.startMs),i.msToMoment(t.endMs),l.isAllDay)):n.getAllDayHtml():o.htmlEscape(this.getTimeText(s)),u&&c.push("fc-has-url"),'<tr class="'+c.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+r.getClass("widgetContent")+'">'+(e||"")+"</td>":"")+'<td class="fc-list-item-marker '+r.getClass("widgetContent")+'"><span class="fc-event-dot"'+(d?' style="background-color:'+d+'"':"")+'></span></td><td class="fc-list-item-title '+r.getClass("widgetContent")+'"><a'+(u?' href="'+o.htmlEscape(u)+'"':"")+">"+o.htmlEscape(a.title||"")+"</a></td></tr>"},e.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},e}(r.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(59),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.handleClick=function(e,n){var i;t.prototype.handleClick.call(this,e,n),o(n.target).closest("a[href]").length||(i=e.footprint.eventDef.url)&&!n.isDefaultPrevented()&&(window.location.href=i)},e}(r.default);e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(38),o=n(52),r=n(215),s=n(216);i.default.registerClass(o.default),i.default.registerClass(r.default),i.default.registerClass(s.default)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(51),o=n(213),r=n(214),s=n(258),a=n(259);i.defineThemeSystem("standard",o.default),i.defineThemeSystem("jquery-ui",r.default),i.defineThemeSystem("bootstrap3",s.default),i.defineThemeSystem("bootstrap4",a.default)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(19),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o.default);e.default=r,r.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table",tableListHeading:"active",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},r.prototype.baseIconClass="glyphicon",r.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},r.prototype.iconOverrideOption="bootstrapGlyphicons",r.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",r.prototype.iconOverridePrefix="glyphicon-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(19),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(o.default);e.default=r,r.prototype.classes={widget:"fc-bootstrap4",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-primary",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},r.prototype.baseIconClass="fa",r.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},r.prototype.iconOverrideOption="bootstrapFontAwesome",r.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",r.prototype.iconOverridePrefix="fa-"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n(62),r=n(229);i.defineView("basic",{class:o.default}),i.defineView("basicDay",{type:"basic",duration:{days:1}}),i.defineView("basicWeek",{type:"basic",duration:{weeks:1}}),i.defineView("month",{class:r.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n(226);i.defineView("agenda",{class:o.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}}),i.defineView("agendaDay",{type:"agenda",duration:{days:1}}),i.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n(230);i.defineView("list",{class:o.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}}),i.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}}),i.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}}),i.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}}),i.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0})}])})},qqAM:function(t,e,n){var i,o,r;/*!
|
||
* jQuery UI Autocomplete 1.12.1
|
||
* http://jqueryui.com
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license.
|
||
* http://jquery.org/license
|
||
*/
|
||
!function(s){o=[n("7t+N"),n("EerN"),n("WLoA"),n("Up1f"),n("Nnp9"),n("UZ9c"),n("z1kw")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){return t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,i,o=this.element[0].nodeName.toLowerCase(),r="textarea"===o,s="input"===o;this.isMultiLine=r||!s&&this._isContentEditable(this.element),this.valueMethod=this.element[r||s?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,i=!0,void(n=!0);e=!1,i=!1,n=!1;var r=t.ui.keyCode;switch(o.keyCode){case r.PAGE_UP:e=!0,this._move("previousPage",o);break;case r.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case r.UP:e=!0,this._keyEvent("previous",o);break;case r.DOWN:e=!0,this._keyEvent("next",o);break;case r.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case r.TAB:this.menu.active&&this.menu.select(o);break;case r.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:n=!0,this._searchTimeout(o)}},keypress:function(i){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var o=t.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:this._move("previousPage",i);break;case o.PAGE_DOWN:this._move("nextPage",i);break;case o.UP:this._keyEvent("previous",i);break;case o.DOWN:this._keyEvent("next",i)}}},input:function(t){if(i)return i=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){if(this.cancelBlur)return void delete this.cancelBlur;clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,n){var i,o;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});o=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:o})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(o.value),(i=n.item.attr("aria-label")||o.value)&&t.trim(i).length&&(this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(e,n){var i=n.item.data("ui-autocomplete-item"),o=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var n=this.menu.element[0];return e.target===this.element[0]||e.target===n||t.contains(n,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,i=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,i){i(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,o){i.xhr&&i.xhr.abort(),i.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),n=this.menu.element.is(":visible"),i=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||n||i)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),--this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var i=this;t.each(n,function(t,n){i._renderItemData(e,n)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,n){return t("<li>").append(t("<div>").text(n.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var i=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return i.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))}}),t.ui.autocomplete})},sZyP:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("lbHh"),a=n.n(s),l=n("7t+N"),u=n.n(l),c=n("4klR"),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),h=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.dataAttribute=t,n}return r(e,t),d(e,[{key:"getId",value:function(){return"datatable-column-visibility"}},{key:"init",value:function(){var t=document.querySelector("["+this.dataAttribute+"]");null!==t&&(this.id=t.getAttribute(this.dataAttribute),this.modal=document.getElementById("modal_"+this.id),this.bindButtons())}},{key:"bindButtons",value:function(){var t=this;this.modal.querySelector("button[data-type=save]").addEventListener("click",function(){t.saveVisibility()}),this.modal.querySelector("button[data-type=reset]").addEventListener("click",function(){t.resetVisibility()});var e=!0,n=!1,i=void 0;try{for(var o,r=this.modal.querySelectorAll("form input[type=checkbox]")[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){var s=o.value;!function(e){e.addEventListener("click",function(){t.changeVisibility(e.getAttribute("name"))})}(s)}}catch(t){n=!0,i=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw i}}}},{key:"saveVisibility",value:function(){var t=this.modal.getElementsByTagName("form")[0],e={},n=!0,i=!1,o=void 0;try{for(var r,s=t.querySelectorAll("input[type=checkbox]")[Symbol.iterator]();!(n=(r=s.next()).done);n=!0){var l=r.value;e[l.getAttribute("name")]=l.checked}}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}a.a.set(t.getAttribute("name"),JSON.stringify(e),{expires:365}),u()(this.modal).modal("toggle")}},{key:"resetVisibility",value:function(){var t=this.modal.getElementsByTagName("form")[0];a.a.remove(t.getAttribute("name"));var e=!0,n=!1,i=void 0;try{for(var o,r=t.querySelectorAll("input[type=checkbox]")[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){var s=o.value;s.checked||s.click()}}catch(t){n=!0,i=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw i}}u()(this.modal).modal("toggle")}},{key:"changeVisibility",value:function(t){var e=document.getElementById("datatable_"+this.id).getElementsByClassName("dataTable")[0],n=0,i=!1,o=!0,r=!1,s=void 0;try{for(var a,l=e.getElementsByTagName("th")[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){if(a.value.getAttribute("data-field")===t){i=!0;break}n++}}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}if(i){var u=!0,c=!1,d=void 0;try{for(var h,f=e.getElementsByTagName("tr")[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){h.value.children[n].classList.toggle("hidden")}}catch(t){c=!0,d=t}finally{try{!u&&f.return&&f.return()}finally{if(c)throw d}}}}}]),e}(c.a);e.a=h},tNVI:function(t,e,n){var i,o;/*!
|
||
* Bootstrap-select v1.13.1 (https://developer.snapappointments.com/bootstrap-select)
|
||
*
|
||
* Copyright 2012-2018 SnapAppointments, LLC
|
||
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
|
||
*/
|
||
!function(r,s){i=[n("7t+N")],void 0!==(o=function(t){return s(t)}.apply(e,i))&&(t.exports=o)}(0,function(t){!function(t){"use strict";function e(t,e){return t.length===e.length&&t.every(function(t,n){return t===e[n]})}function n(t){var e,n=[],i=t&&t.options;if(t.multiple)for(var o=0,r=i.length;o<r;o++)e=i[o],e.selected&&n.push(e.value||e.text);else n=t.value;return n}function i(t,e,n,i){for(var o=["content","subtext","tokens"],s=!1,a=0;a<o.length;a++){var l=o[a],u=t[l];if(u&&(u=u.toString(),"content"===l&&(u=u.replace(/<[^>]+>/g,"")),i&&(u=r(u)),u=u.toUpperCase(),s="contains"===n?u.indexOf(e)>=0:u.startsWith(e)))break}return s}function o(t){return parseInt(t,10)||0}function r(e){var n=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];return t.each(n,function(){e=e?e.replace(this.re,this.ch):""}),e}function s(e){var n=arguments,i=e;[].shift.apply(n);var o,r=this.each(function(){var e=t(this);if(e.is("select")){var r=e.data("selectpicker"),s="object"==typeof i&&i;if(r){if(s)for(var a in s)s.hasOwnProperty(a)&&(r.options[a]=s[a])}else{var l=t.extend({},D.DEFAULTS,t.fn.selectpicker.defaults||{},e.data(),s);l.template=t.extend({},D.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},e.data().template,s.template),e.data("selectpicker",r=new D(this,l))}"string"==typeof i&&(o=r[i]instanceof Function?r[i].apply(r,n):r.options[i])}});return void 0!==o?o:r}var a=document.createElement("_");if(a.classList.toggle("c3",!1),a.classList.contains("c3")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:l.call(this,t)}}String.prototype.startsWith||function(){var t=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),e={}.toString,n=function(t){if(null==this)throw new TypeError;var n=String(this);if(t&&"[object RegExp]"==e.call(t))throw new TypeError;var i=n.length,o=String(t),r=o.length,s=arguments.length>1?arguments[1]:void 0,a=s?Number(s):0;a!=a&&(a=0);var l=Math.min(Math.max(a,0),i);if(r+l>i)return!1;for(var u=-1;++u<r;)if(n.charCodeAt(l+u)!=o.charCodeAt(u))return!1;return!0};t?t(String.prototype,"startsWith",{value:n,configurable:!0,writable:!0}):String.prototype.startsWith=n}(),Object.keys||(Object.keys=function(t,e,n){n=[];for(e in t)n.hasOwnProperty.call(t,e)&&n.push(e);return n});var u={useDefault:!1,_set:t.valHooks.select.set};t.valHooks.select.set=function(e,n){return n&&!u.useDefault&&t(e).data("selected",!0),u._set.apply(this,arguments)};var c=null,d=function(){try{return new Event("change"),!0}catch(t){return!1}}();t.fn.triggerNative=function(t){var e,n=this[0];n.dispatchEvent?(d?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event"),e.initEvent(t,!0,!1)),n.dispatchEvent(e)):n.fireEvent?(e=document.createEventObject(),e.eventType=t,n.fireEvent("on"+t,e)):this.trigger(t)};var h={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},f={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},p=function(t){var e=function(e){return t[e]},n="(?:"+Object.keys(t).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(o,e):t}},m=p(h),g=p(f),v={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},y={ESCAPE:27,ENTER:13,SPACE:32,TAB:9,ARROW_UP:38,ARROW_DOWN:40},b={};try{b.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),b.major=b.full[0]}catch(t){console.error("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision.",t),b.major="3"}var w={DISABLED:"disabled",DIVIDER:"4"===b.major?"dropdown-divider":"divider",SHOW:"4"===b.major?"show":"open",DROPUP:"dropup",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"4"===b.major?"btn-light":"btn-default",POPOVERHEADER:"4"===b.major?"popover-header":"popover-title"},_=new RegExp(y.ARROW_UP+"|"+y.ARROW_DOWN),x=new RegExp("^"+y.TAB+"$|"+y.ESCAPE),D=(new RegExp(y.ENTER+"|"+y.SPACE),function(e,n){var i=this;u.useDefault||(t.valHooks.select.set=u._set,u.useDefault=!0),this.$element=t(e),this.$newElement=null,this.$button=null,this.$menu=null,this.options=n,this.selectpicker={main:{map:{newIndex:{},originalIndex:{}}},current:{map:{}},search:{map:{}},view:{},keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){i.selectpicker.keydown.keyHistory=""},800)}}}},null===this.options.title&&(this.options.title=this.$element.attr("title"));var o=this.options.windowPadding;"number"==typeof o&&(this.options.windowPadding=[o,o,o,o]),this.val=D.prototype.val,this.render=D.prototype.render,this.refresh=D.prototype.refresh,this.setStyle=D.prototype.setStyle,this.selectAll=D.prototype.selectAll,this.deselectAll=D.prototype.deselectAll,this.destroy=D.prototype.destroy,this.remove=D.prototype.remove,this.show=D.prototype.show,this.hide=D.prototype.hide,this.init()});D.VERSION="1.13.1",D.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600},"4"===b.major&&(D.DEFAULTS.style="btn-light",D.DEFAULTS.iconBase="",D.DEFAULTS.tickIcon="bs-ok-default"),D.prototype={constructor:D,init:function(){var t=this,e=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createDropdown(),this.createLi(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu.addClass(w.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide.bs.select",function(){if(t.isVirtual()){var e=t.$menuInner[0],n=e.firstChild.cloneNode(!1);e.replaceChild(n,e.firstChild),e.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$menuInner.attr("aria-expanded",!1),t.$element.trigger("hide.bs.select",e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden.bs.select",e)},"show.bs.dropdown":function(e){t.$menuInner.attr("aria-expanded",!0),t.$element.trigger("show.bs.select",e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown.bs.select",e)}}),t.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){t.$button.addClass("bs-invalid"),t.$element.on({"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid"),t.$element.off("rendered.bs.select")}}),t.$button.on("blur.bs.select",function(){t.$element.focus().blur(),t.$button.off("blur.bs.select")})}),setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",n=this.autofocus?" autofocus":"",i=this.options.header?'<div class="'+w.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>":"",o=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+m(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"></div>':"",r=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+w.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+w.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+w.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>":"",a='<div class="dropdown bootstrap-select'+e+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+n+' role="button"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===b.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="dropdown-menu '+("4"===b.major?"":w.SHOW)+'" role="combobox">'+i+o+r+'<div class="inner '+w.SHOW+'" role="listbox" aria-expanded="false" tabindex="-1"><ul class="dropdown-menu inner '+("4"===b.major?w.SHOW:"")+'"></ul></div>'+s+"</div></div>";return t(a)},setPositionData:function(){this.selectpicker.view.canHighlight=[];for(var t=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],n=!0;"divider"===e.type?(n=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(n=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(n=!1),this.selectpicker.view.canHighlight.push(n),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(n,i){function o(t,i){var o,u,c,d,h,f,p,m=r.selectpicker.current.elements.length,g=[],v=void 0,y=!0,b=r.isVirtual();r.selectpicker.view.scrollTop=t,!0===b&&r.sizeInfo.hasScrollBar&&r.$menu[0].offsetWidth>r.sizeInfo.totalMenuWidth&&(r.sizeInfo.menuWidth=r.$menu[0].offsetWidth,r.sizeInfo.totalMenuWidth=r.sizeInfo.menuWidth+r.sizeInfo.scrollBarWidth,r.$menu.css("min-width",r.sizeInfo.menuWidth)),o=Math.ceil(r.sizeInfo.menuInnerHeight/r.sizeInfo.liHeight*1.5),u=Math.round(m/o)||1;for(var w=0;w<u;w++){var _=(w+1)*o;if(w===u-1&&(_=m),g[w]=[w*o+(w?1:0),_],!m)break;void 0===v&&t<=r.selectpicker.current.data[_-1].position-r.sizeInfo.menuInnerHeight&&(v=w)}if(void 0===v&&(v=0),h=[r.selectpicker.view.position0,r.selectpicker.view.position1],c=Math.max(0,v-1),d=Math.min(u-1,v+1),r.selectpicker.view.position0=Math.max(0,g[c][0])||0,r.selectpicker.view.position1=Math.min(m,g[d][1])||0,f=h[0]!==r.selectpicker.view.position0||h[1]!==r.selectpicker.view.position1,void 0!==r.activeIndex&&(a=r.selectpicker.current.elements[r.selectpicker.current.map.newIndex[r.prevActiveIndex]],l=r.selectpicker.current.elements[r.selectpicker.current.map.newIndex[r.activeIndex]],s=r.selectpicker.current.elements[r.selectpicker.current.map.newIndex[r.selectedIndex]],i&&(r.activeIndex!==r.selectedIndex&&(l.classList.remove("active"),l.firstChild&&l.firstChild.classList.remove("active")),r.activeIndex=void 0),r.activeIndex&&r.activeIndex!==r.selectedIndex&&s&&s.length&&(s.classList.remove("active"),s.firstChild&&s.firstChild.classList.remove("active"))),void 0!==r.prevActiveIndex&&r.prevActiveIndex!==r.activeIndex&&r.prevActiveIndex!==r.selectedIndex&&a&&a.length&&(a.classList.remove("active"),a.firstChild&&a.firstChild.classList.remove("active")),(i||f)&&(p=r.selectpicker.view.visibleElements?r.selectpicker.view.visibleElements.slice():[],r.selectpicker.view.visibleElements=r.selectpicker.current.elements.slice(r.selectpicker.view.position0,r.selectpicker.view.position1),r.setOptionStatus(),(n||!1===b&&i)&&(y=!e(p,r.selectpicker.view.visibleElements)),(i||!0===b)&&y)){var x,D,k=r.$menuInner[0],S=document.createDocumentFragment(),M=k.firstChild.cloneNode(!1),C=!0===b?r.selectpicker.view.visibleElements:r.selectpicker.current.elements;k.replaceChild(M,k.firstChild);for(var w=0,T=C.length;w<T;w++)S.appendChild(C[w]);!0===b&&(x=0===r.selectpicker.view.position0?0:r.selectpicker.current.data[r.selectpicker.view.position0-1].position,D=r.selectpicker.view.position1>m-1?0:r.selectpicker.current.data[m-1].position-r.selectpicker.current.data[r.selectpicker.view.position1-1].position,k.firstChild.style.marginTop=x+"px",k.firstChild.style.marginBottom=D+"px"),k.firstChild.appendChild(S)}if(r.prevActiveIndex=r.activeIndex,r.options.liveSearch){if(n&&i){var E,P=0;r.selectpicker.view.canHighlight[P]||(P=1+r.selectpicker.view.canHighlight.slice(1).indexOf(!0)),E=r.selectpicker.view.visibleElements[P],r.selectpicker.view.currentActive&&(r.selectpicker.view.currentActive.classList.remove("active"),r.selectpicker.view.currentActive.firstChild&&r.selectpicker.view.currentActive.firstChild.classList.remove("active")),E&&(E.classList.add("active"),E.firstChild&&E.firstChild.classList.add("active")),r.activeIndex=r.selectpicker.current.map.originalIndex[P]}}else r.$menuInner.focus()}i=i||0;var r=this;this.selectpicker.current=n?this.selectpicker.search:this.selectpicker.main;var s,a,l=[];this.setPositionData(),o(i,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(t,e){r.noScroll||o(this.scrollTop,e),r.noScroll=!1}),t(window).off("resize.createView").on("resize.createView",function(){o(r.$menuInner[0].scrollTop)})},createLi:function(){var e,n=this,i=[],o=0,r=0,s=[],a=0,l=0,u=-1;this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option"));var c={span:document.createElement("span"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" ")},d=c.span.cloneNode(!1),h=document.createDocumentFragment();d.className=n.options.iconBase+" "+n.options.tickIcon+" check-mark",c.a.appendChild(d),c.a.setAttribute("role","option"),c.subtext.className="text-muted",c.text=c.span.cloneNode(!1),c.text.className="text";var f=function(t,e,n,i){var o=c.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?o.appendChild(t):o.innerHTML=t),void 0!==n&&""!==n&&(o.className=n),void 0!==i&&null!==i&&o.classList.add("optgroup-"+i),o},p=function(t,e,n){var i=c.a.cloneNode(!0);return t&&(11===t.nodeType?i.appendChild(t):i.insertAdjacentHTML("beforeend",t)),void 0!==e&""!==e&&(i.className=e),"4"===b.major&&i.classList.add("dropdown-item"),n&&i.setAttribute("style",n),i},g=function(t){var e,i,o=c.text.cloneNode(!1);if(t.optionContent)o.innerHTML=t.optionContent;else{if(o.textContent=t.text,t.optionIcon){var r=c.whitespace.cloneNode(!1);i=c.span.cloneNode(!1),i.className=n.options.iconBase+" "+t.optionIcon,h.appendChild(i),h.appendChild(r)}t.optionSubtext&&(e=c.subtext.cloneNode(!1),e.innerHTML=t.optionSubtext,o.appendChild(e))}return h.appendChild(o),h},v=function(t){var e,i,o=c.text.cloneNode(!1);if(o.textContent=t.labelEscaped,t.labelIcon){var r=c.whitespace.cloneNode(!1);i=c.span.cloneNode(!1),i.className=n.options.iconBase+" "+t.labelIcon,h.appendChild(i),h.appendChild(r)}return t.labelSubtext&&(e=c.subtext.cloneNode(!1),e.textContent=t.labelSubtext,o.appendChild(e)),h.appendChild(o),h};if(this.options.title&&!this.multiple){u--;var y=this.$element[0],_=!1,x=!this.selectpicker.view.titleOption.parentNode;if(x){this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="";_=void 0===t(y.options[y.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected")}(x||0!==this.selectpicker.view.titleOption.index)&&y.insertBefore(this.selectpicker.view.titleOption,y.firstChild),_&&(y.selectedIndex=0)}var D=this.$element.find("option");D.each(function(c){var d=t(this);if(u++,!d.hasClass("bs-title-option")){var h,y,b=d.data(),_=this.className||"",x=m(this.style.cssText),k=b.content,S=this.textContent,M=b.tokens,C=b.subtext,T=b.icon,E=d.parent(),P=E[0],O="OPTGROUP"===P.tagName,I=O&&P.disabled,L=this.disabled||I,R=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName,Y=E.data();if(!0===b.hidden||n.options.hideDisabled&&(L&&!O||I)){if(h=b.prevHiddenIndex,d.next().data("prevHiddenIndex",void 0!==h?h:c),u--,!R&&void 0!==h){var H=D[h].previousElementSibling;H&&"OPTGROUP"===H.tagName&&!H.disabled&&(R=!0)}return void(R&&"divider"!==s[s.length-1].type&&(u++,i.push(f(!1,0,w.DIVIDER,a+"div")),s.push({type:"divider",optID:a,originalIndex:c})))}if(O&&!0!==b.divider){if(n.options.hideDisabled&&L){if(void 0===Y.allOptionsDisabled){var A=E.children();E.data("allOptionsDisabled",A.filter(":disabled").length===A.length)}if(E.data("allOptionsDisabled"))return void u--}var N=" "+P.className||"";if(!this.previousElementSibling){a+=1;var F=P.label,j=m(F),z=Y.subtext,W=Y.icon;0!==c&&i.length>0&&(u++,i.push(f(!1,0,w.DIVIDER,a+"div")),s.push({type:"divider",optID:a,originalIndex:c})),u++;var B=v({labelEscaped:j,labelSubtext:z,labelIcon:W});i.push(f(B,0,"dropdown-header"+N,a)),s.push({content:j,subtext:z,type:"optgroup-label",optID:a,originalIndex:c}),l=u-1}if(n.options.hideDisabled&&L||!0===b.hidden)return void u--;y=g({text:S,optionContent:k,optionSubtext:C,optionIcon:T}),i.push(f(p(y,"opt "+_+N,x),0,"",a)),s.push({content:k||S,subtext:C,tokens:M,type:"option",optID:a,headerIndex:l,lastIndex:l+P.childElementCount,originalIndex:c,data:b}),o++}else if(!0===b.divider)i.push(f(!1,0,"divider")),s.push({type:"divider",originalIndex:c});else{if(!R&&n.options.hideDisabled&&void 0!==(h=b.prevHiddenIndex)){var H=D[h].previousElementSibling;H&&"OPTGROUP"===H.tagName&&!H.disabled&&(R=!0)}R&&"divider"!==s[s.length-1].type&&(u++,i.push(f(!1,0,w.DIVIDER,a+"div")),s.push({type:"divider",optID:a,originalIndex:c})),y=g({text:S,optionContent:k,optionSubtext:C,optionIcon:T}),i.push(f(p(y,_,x))),s.push({content:k||S,subtext:C,tokens:M,type:"option",originalIndex:c,data:b}),o++}n.selectpicker.main.map.newIndex[c]=u,n.selectpicker.main.map.originalIndex[u]=c;var V=s[s.length-1];V.disabled=L;var U=0;V.content&&(U+=V.content.length),V.subtext&&(U+=V.subtext.length),T&&(U+=1),U>r&&(r=U,e=i[i.length-1])}}),this.selectpicker.main.elements=i,this.selectpicker.main.data=s,this.selectpicker.current=this.selectpicker.main,this.selectpicker.view.widestOption=e,this.selectpicker.view.availableOptionsCount=o},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var t=this,e=this.$element.find("option"),n=[],i=[];this.togglePlaceholder(),this.tabIndex();for(var o=0,r=this.selectpicker.main.elements.length;o<r;o++){var s=this.selectpicker.main.map.originalIndex[o],a=e[s];if(a&&a.selected&&(n.push(a),i.length<100&&"count"!==t.options.selectedTextFormat||1===n.length)){if(t.options.hideDisabled&&(a.disabled||"OPTGROUP"===a.parentNode.tagName&&a.parentNode.disabled))return;var l,u,c=this.selectpicker.main.data[o].data,d=c.icon&&t.options.showIcon?'<i class="'+t.options.iconBase+" "+c.icon+'"></i> ':"";l=t.options.showSubtext&&c.subtext&&!t.multiple?' <small class="text-muted">'+c.subtext+"</small>":"",u=a.title?a.title:c.content&&t.options.showContent?c.content.toString():d+a.innerHTML.trim()+l,i.push(u)}}var h=this.multiple?i.join(this.options.multipleSeparator):i[0];if(n.length>50&&(h+="..."),this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")){var f=this.options.selectedTextFormat.split(">");if(f.length>1&&n.length>f[1]||1===f.length&&n.length>=2){var p=this.selectpicker.view.availableOptionsCount;h=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(n.length,p):this.options.countSelectedText).replace("{0}",n.length.toString()).replace("{1}",p.toString())}}void 0==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(h=this.options.title),h||(h=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button[0].title=g(h.replace(/<[^>]*>?/g,"").trim()),this.$button.find(".filter-option-inner-inner")[0].innerHTML=h,this.$element.trigger("rendered.bs.select")},setStyle:function(t,e){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var n=t||this.options.style;"add"==e?this.$button.addClass(n):"remove"==e?this.$button.removeClass(n):(this.$button.removeClass(this.options.style),this.$button.addClass(n))},liHeight:function(e){if(e||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var n=document.createElement("div"),i=document.createElement("div"),r=document.createElement("div"),s=document.createElement("ul"),a=document.createElement("li"),l=document.createElement("li"),u=document.createElement("li"),c=document.createElement("a"),d=document.createElement("span"),h=this.options.header&&this.$menu.find("."+w.POPOVERHEADER).length>0?this.$menu.find("."+w.POPOVERHEADER)[0].cloneNode(!0):null,f=this.options.liveSearch?document.createElement("div"):null,p=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,m=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,d.className="text",c.className="dropdown-item",n.className=this.$menu[0].parentNode.className+" "+w.SHOW,n.style.width=this.sizeInfo.selectWidth+"px",i.className="dropdown-menu "+w.SHOW,r.className="inner "+w.SHOW,s.className="dropdown-menu inner "+("4"===b.major?w.SHOW:""),a.className=w.DIVIDER,l.className="dropdown-header",d.appendChild(document.createTextNode("Inner text")),c.appendChild(d),u.appendChild(c),l.appendChild(d.cloneNode(!0)),this.selectpicker.view.widestOption&&s.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),s.appendChild(u),s.appendChild(a),s.appendChild(l),h&&i.appendChild(h),f){var g=document.createElement("input");f.className="bs-searchbox",g.className="form-control",f.appendChild(g),i.appendChild(f)}p&&i.appendChild(p),r.appendChild(s),i.appendChild(r),m&&i.appendChild(m),n.appendChild(i),document.body.appendChild(n);var v,y=c.offsetHeight,_=l?l.offsetHeight:0,x=h?h.offsetHeight:0,D=f?f.offsetHeight:0,k=p?p.offsetHeight:0,S=m?m.offsetHeight:0,M=t(a).outerHeight(!0),C=!!window.getComputedStyle&&window.getComputedStyle(i),T=i.offsetWidth,E=C?null:t(i),P={vert:o(C?C.paddingTop:E.css("paddingTop"))+o(C?C.paddingBottom:E.css("paddingBottom"))+o(C?C.borderTopWidth:E.css("borderTopWidth"))+o(C?C.borderBottomWidth:E.css("borderBottomWidth")),horiz:o(C?C.paddingLeft:E.css("paddingLeft"))+o(C?C.paddingRight:E.css("paddingRight"))+o(C?C.borderLeftWidth:E.css("borderLeftWidth"))+o(C?C.borderRightWidth:E.css("borderRightWidth"))},O={vert:P.vert+o(C?C.marginTop:E.css("marginTop"))+o(C?C.marginBottom:E.css("marginBottom"))+2,horiz:P.horiz+o(C?C.marginLeft:E.css("marginLeft"))+o(C?C.marginRight:E.css("marginRight"))+2};r.style.overflowY="scroll",v=i.offsetWidth-T,document.body.removeChild(n),this.sizeInfo.liHeight=y,this.sizeInfo.dropdownHeaderHeight=_,this.sizeInfo.headerHeight=x,this.sizeInfo.searchHeight=D,this.sizeInfo.actionsHeight=k,this.sizeInfo.doneButtonHeight=S,this.sizeInfo.dividerHeight=M,this.sizeInfo.menuPadding=P,this.sizeInfo.menuExtras=O,this.sizeInfo.menuWidth=T,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=v,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var e,n=this,i=t(window),o=n.$newElement.offset(),r=t(n.options.container);n.options.container&&!r.is("body")?(e=r.offset(),e.top+=parseInt(r.css("borderTopWidth")),e.left+=parseInt(r.css("borderLeftWidth"))):e={top:0,left:0};var s=n.options.windowPadding;this.sizeInfo.selectOffsetTop=o.top-e.top-i.scrollTop(),this.sizeInfo.selectOffsetBot=i.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-e.top-s[2],this.sizeInfo.selectOffsetLeft=o.left-e.left-i.scrollLeft(),this.sizeInfo.selectOffsetRight=i.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-e.left-s[1],this.sizeInfo.selectOffsetTop-=s[0],this.sizeInfo.selectOffsetLeft-=s[3]},setMenuSize:function(t){this.getSelectPosition();var e,n,i,o,r,s,a,l=this.sizeInfo.selectWidth,u=this.sizeInfo.liHeight,c=this.sizeInfo.headerHeight,d=this.sizeInfo.searchHeight,h=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,p=this.sizeInfo.dividerHeight,m=this.sizeInfo.menuPadding,g=0;if(this.options.dropupAuto&&(a=u*this.selectpicker.current.elements.length+m.vert,this.$newElement.toggleClass(w.DROPUP,this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&a+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)o=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,i=o+c+d+h+f,s=Math.max(o-m.vert,0),this.$newElement.hasClass(w.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),r=n,e=n-c-d-h-f-m.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var v=0;v<this.options.size;v++)"divider"===this.selectpicker.current.data[v].type&&g++;n=u*this.options.size+g*p+m.vert,e=n-m.vert,r=n+c+d+h+f,i=s=""}"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(w.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.$menu[0].offsetWidth-l),this.$menu.css({"max-height":r+"px",overflow:"hidden","min-height":i+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":s+"px"}),this.sizeInfo.menuInnerHeight=e,this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth,this.$menu.css("min-width",this.sizeInfo.totalMenuWidth)),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var n,i=this,o=t(window),r=0;this.setMenuSize(),"auto"===this.options.size?(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return i.setMenuSize()}),o.off("resize.setMenuSize scroll.setMenuSize").on("resize.setMenuSize scroll.setMenuSize",function(){return i.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&(this.$searchbox.off("input.setMenuSize propertychange.setMenuSize"),o.off("resize.setMenuSize scroll.setMenuSize")),e?r=this.$menuInner[0].scrollTop:i.multiple||"number"==typeof(n=i.selectpicker.main.map.newIndex[i.$element[0].selectedIndex])&&!1!==i.options.size&&(r=i.sizeInfo.liHeight*n,r=r-i.sizeInfo.menuInnerHeight/2+i.sizeInfo.liHeight/2),i.createView(!1,r)}},setWidth:function(){var t=this;"auto"===this.options.width?requestAnimationFrame(function(){t.$menu.css("min-width","0"),t.liHeight(),t.setMenuSize();var e=t.$newElement.clone().appendTo("body"),n=e.css("width","auto").children("button").outerWidth();e.remove(),t.sizeInfo.selectWidth=Math.max(t.sizeInfo.totalMenuWidth,n),t.$newElement.css("width",t.sizeInfo.selectWidth+"px")}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=t('<div class="bs-container" />');var e,n,i,o=this,r=t(this.options.container),s=function(t){var s={};o.$bsContainer.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(w.DROPUP,t.hasClass(w.DROPUP)),e=t.offset(),r.is("body")?n={top:0,left:0}:(n=r.offset(),n.top+=parseInt(r.css("borderTopWidth"))-r.scrollTop(),n.left+=parseInt(r.css("borderLeftWidth"))-r.scrollLeft()),i=t.hasClass(w.DROPUP)?0:t[0].offsetHeight,b.major<4&&(s.top=e.top-n.top+i,s.left=e.left-n.left),s.width=t[0].offsetWidth,o.$bsContainer.css(s)};this.$button.on("click.bs.dropdown.data-api",function(){o.isDisabled()||(s(o.$newElement),o.$bsContainer.appendTo(o.options.container).toggleClass(w.SHOW,!o.$button.hasClass(w.SHOW)).append(o.$menu))}),t(window).on("resize scroll",function(){s(o.$newElement)}),this.$element.on("hide.bs.select",function(){o.$menu.data("height",o.$menu.height()),o.$bsContainer.detach()})},setOptionStatus:function(){var t=this,e=this.$element.find("option");if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var n=0;n<t.selectpicker.view.visibleElements.length;n++){var i=t.selectpicker.current.map.originalIndex[n+t.selectpicker.view.position0],o=e[i];if(o){var r=this.selectpicker.main.map.newIndex[i],s=this.selectpicker.main.elements[r];t.setDisabled(i,o.disabled||"OPTGROUP"===o.parentNode.tagName&&o.parentNode.disabled,r,s),t.setSelected(i,o.selected,r,s)}}},setSelected:function(t,e,n,i){var o,r,s,a=void 0!==this.activeIndex,l=this.activeIndex===t,u=l||e&&!this.multiple&&!a;n||(n=this.selectpicker.main.map.newIndex[t]),i||(i=this.selectpicker.main.elements[n]),s=i.firstChild,e&&(this.selectedIndex=t),i.classList.toggle("selected",e),i.classList.toggle("active",u),u&&(this.selectpicker.view.currentActive=i,this.activeIndex=t),s&&(s.classList.toggle("selected",e),s.classList.toggle("active",u),s.setAttribute("aria-selected",e)),u||!a&&e&&void 0!==this.prevActiveIndex&&(o=this.selectpicker.main.map.newIndex[this.prevActiveIndex],r=this.selectpicker.main.elements[o],r.classList.remove("selected"),r.classList.remove("active"),r.firstChild&&(r.firstChild.classList.remove("selected"),r.firstChild.classList.remove("active")))},setDisabled:function(t,e,n,i){var o;n||(n=this.selectpicker.main.map.newIndex[t]),i||(i=this.selectpicker.main.elements[n]),o=i.firstChild,i.classList.toggle(w.DISABLED,e),o&&("4"===b.major&&o.classList.toggle(w.DISABLED,e),o.setAttribute("aria-disabled",e),e?o.setAttribute("tabindex",-1):o.setAttribute("tabindex",0))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var t=this;this.isDisabled()?(this.$newElement.addClass(w.DISABLED),this.$button.addClass(w.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass(w.DISABLED)&&(this.$newElement.removeClass(w.DISABLED),this.$button.removeClass(w.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!t.isDisabled()})},togglePlaceholder:function(){var t=this.$element[0],e=t.selectedIndex,n=-1===e;n||t.options[e].value||(n=!0),this.$button.toggleClass("bs-placeholder",n)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var e=this,i=t(document);i.data("spaceSelect",!1),this.$button.on("keyup",function(t){/(32)/.test(t.keyCode.toString(10))&&i.data("spaceSelect")&&(t.preventDefault(),i.data("spaceSelect",!1))}),this.$newElement.on("show.bs.dropdown",function(){b.major>3&&!e.dropdown&&(e.dropdown=e.$button.data("bs.dropdown"),e.dropdown._menu=e.$menu[0])}),this.$button.on("click.bs.dropdown.data-api",function(){e.$newElement.hasClass(w.SHOW)||e.setSize()}),this.$element.on("shown.bs.select",function(){e.$menuInner[0].scrollTop!==e.selectpicker.view.scrollTop&&(e.$menuInner[0].scrollTop=e.selectpicker.view.scrollTop),e.options.liveSearch?e.$searchbox.focus():e.$menuInner.focus()}),this.$menuInner.on("click","li a",function(i,o){var r=t(this),s=e.isVirtual()?e.selectpicker.view.position0:0,a=e.selectpicker.current.map.originalIndex[r.parent().index()+s],l=n(e.$element[0]),u=e.$element.prop("selectedIndex"),d=!0;if(e.multiple&&1!==e.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!e.isDisabled()&&!r.parent().hasClass(w.DISABLED)){var h=e.$element.find("option"),f=h.eq(a),p=f.prop("selected"),m=f.parent("optgroup"),g=e.options.maxOptions,v=m.data("maxOptions")||!1;if(a===e.activeIndex&&(o=!0),o||(e.prevActiveIndex=e.activeIndex,e.activeIndex=void 0),e.multiple){if(f.prop("selected",!p),e.setSelected(a,!p),r.blur(),!1!==g||!1!==v){var y=g<h.filter(":selected").length,b=v<m.find("option:selected").length;if(g&&y||v&&b)if(g&&1==g)h.prop("selected",!1),f.prop("selected",!0),e.$menuInner.find(".selected").removeClass("selected"),e.setSelected(a,!0);else if(v&&1==v){m.find("option:selected").prop("selected",!1),f.prop("selected",!0);var _=e.selectpicker.current.data[r.parent().index()+e.selectpicker.view.position0].optID;e.$menuInner.find(".optgroup-"+_).removeClass("selected"),e.setSelected(a,!0)}else{var x="string"==typeof e.options.maxOptionsText?[e.options.maxOptionsText,e.options.maxOptionsText]:e.options.maxOptionsText,D="function"==typeof x?x(g,v):x,k=D[0].replace("{n}",g),S=D[1].replace("{n}",v),M=t('<div class="notify"></div>');D[2]&&(k=k.replace("{var}",D[2][g>1?0:1]),S=S.replace("{var}",D[2][v>1?0:1])),f.prop("selected",!1),e.$menu.append(M),g&&y&&(M.append(t("<div>"+k+"</div>")),d=!1,e.$element.trigger("maxReached.bs.select")),v&&b&&(M.append(t("<div>"+S+"</div>")),d=!1,e.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){e.setSelected(a,!1)},10),M.delay(750).fadeOut(300,function(){t(this).remove()})}}}else h.prop("selected",!1),f.prop("selected",!0),e.setSelected(a,!0);!e.multiple||e.multiple&&1===e.options.maxOptions?e.$button.focus():e.options.liveSearch&&e.$searchbox.focus(),d&&(l!=n(e.$element[0])&&e.multiple||u!=e.$element.prop("selectedIndex")&&!e.multiple)&&(c=[a,f.prop("selected"),l],e.$element.triggerNative("change"))}}),this.$menu.on("click","li."+w.DISABLED+" a, ."+w.POPOVERHEADER+", ."+w.POPOVERHEADER+" :not(.close)",function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),e.options.liveSearch&&!t(n.target).hasClass("close")?e.$searchbox.focus():e.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.focus():e.$button.focus()}),this.$menu.on("click","."+w.POPOVERHEADER+" .close",function(){e.$button.click()}),this.$searchbox.on("click",function(t){t.stopPropagation()}),this.$menu.on("click",".actions-btn",function(n){e.options.liveSearch?e.$searchbox.focus():e.$button.focus(),n.preventDefault(),n.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()}),this.$element.on({change:function(){e.render(),e.$element.trigger("changed.bs.select",c),c=null},focus:function(){e.$button.focus()}})},liveSearchListener:function(){var t=this,e=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){t.$searchbox.val()&&t.$searchbox.val("")}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(t){t.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var n=t.$searchbox.val();if(t.selectpicker.search.map.newIndex={},t.selectpicker.search.map.originalIndex={},t.selectpicker.search.elements=[],t.selectpicker.search.data=[],n){var o,r=[],s=n.toUpperCase(),a={},l=[],u=t._searchStyle(),c=t.options.liveSearchNormalize;t._$lisSelected=t.$menuInner.find(".selected");for(var o=0;o<t.selectpicker.main.data.length;o++){var d=t.selectpicker.main.data[o];a[o]||(a[o]=i(d,s,u,c)),a[o]&&void 0!==d.headerIndex&&-1===l.indexOf(d.headerIndex)&&(d.headerIndex>0&&(a[d.headerIndex-1]=!0,l.push(d.headerIndex-1)),a[d.headerIndex]=!0,l.push(d.headerIndex),a[d.lastIndex+1]=!0),a[o]&&"optgroup-label"!==d.type&&l.push(o)}for(var o=0,h=l.length;o<h;o++){var f=l[o],p=l[o-1],d=t.selectpicker.main.data[f],g=t.selectpicker.main.data[p];("divider"!==d.type||"divider"===d.type&&g&&"divider"!==g.type&&h-1!==o)&&(t.selectpicker.search.data.push(d),r.push(t.selectpicker.main.elements[f]),t.selectpicker.search.map.newIndex[d.originalIndex]=r.length-1,t.selectpicker.search.map.originalIndex[r.length-1]=d.originalIndex)}t.activeIndex=void 0,t.noScroll=!0,t.$menuInner.scrollTop(0),t.selectpicker.search.elements=r,t.createView(!0),r.length||(e.className="no-results",e.innerHTML=t.options.noneResultsText.replace("{0}",'"'+m(n)+'"'),t.$menuInner[0].firstChild.appendChild(e))}else t.$menuInner.scrollTop(0),t.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){return void 0!==t?(this.$element.val(t).triggerNative("change"),this.$element):this.$element.val()},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0);var e=this.$element.find("option"),i=0,o=0,r=n(this.$element[0]);this.$element.addClass("bs-select-hidden");for(var s=0;s<this.selectpicker.current.elements.length;s++){var a=this.selectpicker.current.map.originalIndex[s],l=e[a];l&&(l.selected&&i++,l.selected=t,l.selected&&o++)}this.$element.removeClass("bs-select-hidden"),i!==o&&(this.setOptionStatus(),this.togglePlaceholder(),c=[null,null,r],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){t=t||window.event,t&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var n,o,r,s,a,l=t(this),u=l.is("input")?l.parent().parent():l.parent(),c=u.data("this"),d=c.findLis(),h=!1,f=e.which===y.TAB&&!l.hasClass("dropdown-toggle")&&!c.options.selectOnTab,p=_.test(e.which)||f,m=c.$menuInner[0].scrollTop,g=c.isVirtual(),b=!0===g?c.selectpicker.view.position0:0;if(o=c.$newElement.hasClass(w.SHOW),!o&&(p||e.which>=48&&e.which<=57||e.which>=96&&e.which<=105||e.which>=65&&e.which<=90)&&c.$button.trigger("click.bs.dropdown.data-api"),e.which===y.ESCAPE&&o&&(e.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").focus()),p){if(!d.length)return;n=!0===g?d.index(d.filter(".active")):c.selectpicker.current.map.newIndex[c.activeIndex],void 0===n&&(n=-1),-1!==n&&(r=c.selectpicker.current.elements[n+b],r.classList.remove("active"),r.firstChild&&r.firstChild.classList.remove("active")),e.which===y.ARROW_UP?(-1!==n&&n--,n+b<0&&(n+=d.length),c.selectpicker.view.canHighlight[n+b]||-1===(n=c.selectpicker.view.canHighlight.slice(0,n+b).lastIndexOf(!0)-b)&&(n=d.length-1)):(e.which===y.ARROW_DOWN||f)&&(n++,n+b>=c.selectpicker.view.canHighlight.length&&(n=0),c.selectpicker.view.canHighlight[n+b]||(n=n+1+c.selectpicker.view.canHighlight.slice(n+b+1).indexOf(!0))),e.preventDefault();var D=b+n;e.which===y.ARROW_UP?0===b&&n===d.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,D=c.selectpicker.current.elements.length-1):(s=c.selectpicker.current.data[D],a=s.position-s.height,h=a<m):(e.which===y.ARROW_DOWN||f)&&(0!==b&&0===n?(c.$menuInner[0].scrollTop=0,D=0):(s=c.selectpicker.current.data[D],a=s.position-c.sizeInfo.menuInnerHeight,h=a>m)),r=c.selectpicker.current.elements[D],r.classList.add("active"),r.firstChild&&r.firstChild.classList.add("active"),c.activeIndex=c.selectpicker.current.map.originalIndex[D],c.selectpicker.view.currentActive=r,h&&(c.$menuInner[0].scrollTop=a),c.options.liveSearch?c.$searchbox.focus():l.focus()}else if(!l.is("input")&&!x.test(e.which)||e.which===y.SPACE&&c.selectpicker.keydown.keyHistory){var k,S,M=[];e.preventDefault(),c.selectpicker.keydown.keyHistory+=v[e.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),S=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(S)&&(S=S.charAt(0));for(var C=0;C<c.selectpicker.current.data.length;C++){var T,E=c.selectpicker.current.data[C];T=i(E,S,"startsWith",!0),T&&c.selectpicker.view.canHighlight[C]&&(E.index=C,M.push(E.originalIndex))}if(M.length){var P=0;d.removeClass("active").find("a").removeClass("active"),1===S.length&&(P=M.indexOf(c.activeIndex),-1===P||P===M.length-1?P=0:P++),k=c.selectpicker.current.map.newIndex[M[P]],s=c.selectpicker.current.data[k],m-s.position>0?(a=s.position-s.height,h=!0):(a=s.position-c.sizeInfo.menuInnerHeight,h=s.position>m+c.sizeInfo.menuInnerHeight),r=c.selectpicker.current.elements[k],r.classList.add("active"),r.firstChild&&r.firstChild.classList.add("active"),c.activeIndex=M[P],r.firstChild.focus(),h&&(c.$menuInner[0].scrollTop=a),l.focus()}}o&&(e.which===y.SPACE&&!c.selectpicker.keydown.keyHistory||e.which===y.ENTER||e.which===y.TAB&&c.options.selectOnTab)&&(e.which!==y.SPACE&&e.preventDefault(),c.options.liveSearch&&e.which===y.SPACE||(c.$menuInner.find(".active a").trigger("click",!0),l.focus(),c.options.liveSearch||(e.preventDefault(),t(document).data("spaceSelect",!0))))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){var e=t.extend({},this.options,this.$element.data());this.options=e,this.selectpicker.main.map.newIndex={},this.selectpicker.main.map.originalIndex={},this.createLi(),this.checkDisabled(),this.render(),this.setStyle(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var k=t.fn.selectpicker;t.fn.selectpicker=s,t.fn.selectpicker.Constructor=D,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=k,this},t(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.select",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bs-searchbox input',D.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bs-searchbox input',function(t){t.stopPropagation()}),t(window).on("load.bs.select.data-api",function(){t(".selectpicker").each(function(){var e=t(this);s.call(e,e.data())})})}(t)})},tqWD:function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=193)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},193:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(194);var i=n(1);i.datepickerLocale("sv","sv",{closeText:"Stäng",prevText:"«Förra",nextText:"Nästa»",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],weekHeader:"v. ",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),i.locale("sv",{buttonText:{month:"Månad",week:"Vecka",day:"Dag",list:"Program"},allDayText:"Heldag",eventLimitText:"till",noEventsMessage:"Inga händelser att visa"})},194:function(t,e,n){!function(t,e){!function(t){t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e?"a":2===e?"a":"e")},week:{dow:1,doy:4}})}(n(0))}()}})})},tzHd:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";return t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})})},ulq9:function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";function e(t,e){var n=t.split("_");return e%10==1&&e%100!=11?n[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?n[1]:n[2]}function n(t,n,i){var o={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?n?"минута":"минуту":t+" "+e(o[i],+t)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})})},"x/W5":function(t,e,n){!function(e,i){t.exports=i(n("VcwF"),n("olwm"))}("undefined"!=typeof self&&self,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=127)}({0:function(e,n){e.exports=t},1:function(t,n){t.exports=e},127:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n(128);var i=n(1);i.datepickerLocale("fr","fr",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),i.locale("fr",{buttonText:{year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la<br/>journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"})},128:function(t,e,n){!function(t,e){!function(t){t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(0))}()}})})},"xne+":function(t,e,n){!function(t,e){e(n("PJh5"))}(0,function(t){"use strict";function e(t,e,n,i){var o=t;switch(n){case"s":return i||e?"néhány másodperc":"néhány másodperce";case"ss":return o+(i||e)?" másodperc":" másodperce";case"m":return"egy"+(i||e?" perc":" perce");case"mm":return o+(i||e?" perc":" perce");case"h":return"egy"+(i||e?" óra":" órája");case"hh":return o+(i||e?" óra":" órája");case"d":return"egy"+(i||e?" nap":" napja");case"dd":return o+(i||e?" nap":" napja");case"M":return"egy"+(i||e?" hónap":" hónapja");case"MM":return o+(i||e?" hónap":" hónapja");case"y":return"egy"+(i||e?" év":" éve");case"yy":return o+(i||e?" év":" éve")}return""}function n(t){return(t?"":"[múlt] ")+"["+i[this.day()]+"] LT[-kor]"}var i="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},y84T:function(t,e,n){"use strict";(function(t){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("7t+N"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(e){function n(t){i(this,n);var e=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.selector=t,e}return r(n,e),u(n,[{key:"init",value:function(){this.activateAutocomplete(this.selector)}},{key:"getId",value:function(){return"autocomplete"}},{key:"splitTagList",value:function(t){return t.split(/,\s*/)}},{key:"extractLastTag",value:function(t){return this.splitTagList(t).pop()}},{key:"activateAutocomplete",value:function(e){var n=a()(e).attr("data-autocomplete-url"),i=this;a()(e).on("keydown",function(t){t.keyCode===a.a.ui.keyCode.TAB&&a()(this).autocomplete("instance").menu.active&&t.preventDefault()}).autocomplete({source:function(t,e){var o=i.extractLastTag(t.term);i.getContainer().getPlugin("api").get(n,{name:o},function(t){e(t)})},search:function(){if(i.extractLastTag(this.value).length<2)return!1},focus:function(){return!1},select:function(e,n){var o=i.splitTagList(this.value);return o.pop(),o.includes(n.item.value)||o.push(n.item.value),o.push(""),this.value=o.join(", "),t(this).trigger("change"),!1}})}}]),n}(l.a);e.a=c}).call(e,n("7t+N"))},z1kw:function(t,e,n){var i,o,r;/*!
|
||
* jQuery UI Widget 1.12.1
|
||
* http://jqueryui.com
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license.
|
||
* http://jquery.org/license
|
||
*/
|
||
!function(s){o=[n("7t+N"),n("UZ9c")],i=s,void 0!==(r="function"==typeof i?i.apply(e,o):i)&&(t.exports=r)}(function(t){var e=0,n=Array.prototype.slice;return t.cleanData=function(e){return function(n){var i,o,r;for(r=0;null!=(o=n[r]);r++)try{i=t._data(o,"events"),i&&i.remove&&t(o).triggerHandler("remove")}catch(t){}e(n)}}(t.cleanData),t.widget=function(e,n,i){var o,r,s,a={},l=e.split(".")[0];e=e.split(".")[1];var u=l+"-"+e;return i||(i=n,n=t.Widget),t.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr[":"][u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},o=t[l][e],r=t[l][e]=function(t,e){if(!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},t.extend(r,o,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),s=new n,s.options=t.widget.extend({},s.options),t.each(i,function(e,i){if(!t.isFunction(i))return void(a[e]=i);a[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function o(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,r=this._superApply;return this._super=t,this._superApply=o,e=i.apply(this,arguments),this._super=n,this._superApply=r,e}}()}),r.prototype=t.widget.extend(s,{widgetEventPrefix:o?s.widgetEventPrefix||e:e},a,{constructor:r,namespace:l,widgetName:e,widgetFullName:u}),o?(t.each(o._childConstructors,function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,r,n._proto)}),delete o._childConstructors):n._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,o,r=n.call(arguments,1),s=0,a=r.length;s<a;s++)for(i in r[s])o=r[s][i],r[s].hasOwnProperty(i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var o=i.prototype.widgetFullName||e;t.fn[e]=function(r){var s="string"==typeof r,a=n.call(arguments,1),l=this;return s?this.length||"instance"!==r?this.each(function(){var n,i=t.data(this,o);return"instance"===r?(l=i,!1):i?t.isFunction(i[r])&&"_"!==r.charAt(0)?(n=i[r].apply(i,a),n!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+r+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(a.length&&(r=t.widget.extend.apply(null,[r].concat(a))),this.each(function(){var e=t.data(this,o);e?(e.option(r||{}),e._init&&e._init()):t.data(this,o,new i(r,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,n){e._removeClass(n,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,o,r,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},i=e.split("."),e=i.shift(),i.length){for(o=s[e]=t.widget.extend({},this.options[e]),r=0;r<i.length-1;r++)o[i[r]]=o[i[r]]||{},o=o[i[r]];if(e=i.pop(),1===arguments.length)return void 0===o[e]?null:o[e];o[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,o;for(n in e)o=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&o&&o.length&&(i=t(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function n(n,r){var s,a;for(a=0;a<n.length;a++)s=o.classesElementLookup[n[a]]||t(),s=t(e.add?t.unique(s.get().concat(e.element.get())):s.not(e.element).get()),o.classesElementLookup[n[a]]=s,i.push(n[a]),r&&e.classes[n[a]]&&i.push(e.classes[n[a]])}var i=[],o=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&n(e.keys.match(/\S+/g)||[],!0),e.extra&&n(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,function(i,o){-1!==t.inArray(e.target,o)&&(n.classesElementLookup[i]=t(o.not(e.target).get()))})},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof t||null===t,r={extra:o?e:n,keys:o?t:e,element:o?this.element:t,add:i};return r.element.toggleClass(this._classes(r),i),this},_on:function(e,n,i){var o,r=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=o=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),t.each(i,function(i,s){function a(){if(e||!0!==r.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof s?r[s]:s).apply(r,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?o.on(u,c,a):n.on(u,a)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var o,r,s=this.options[e];if(i=i||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(o in r)o in n||(n[o]=r[o]);return this.element.trigger(n,i),!(t.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(i,o,r){"string"==typeof o&&(o={effect:o});var s,a=o?!0===o||"number"==typeof o?n:o.effect||n:e;o=o||{},"number"==typeof o&&(o={duration:o}),s=!t.isEmptyObject(o),o.complete=r,o.delay&&i.delay(o.delay),s&&t.effects&&t.effects.effect[a]?i[e](o):a!==e&&i[a]?i[a](o.duration,o.easing,r):i.queue(function(n){t(this)[e](),r&&r.call(i[0]),n()})}}),t.widget})},ztJp:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n("PJh5"),a=n.n(s),l=n("4klR"),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),c=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.selector=t,n}return r(e,t),u(e,[{key:"getId",value:function(){return"timesheet-duration"}},{key:"init",value:function(){this.updateRecords();var t=this,e=function(){t.updateRecords()};this._updatesHandler=setInterval(e,1e4),document.addEventListener("kimai.timesheetUpdate",e)}},{key:"unregisterUpdates",value:function(){clearInterval(this._updatesHandler)}},{key:"updateRecords",value:function(){var t=[],e=document.querySelectorAll(this.selector);if(0===e.length)return void(document.title=document.querySelector("body").dataset.title);var n=!0,i=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(n=(r=s.next()).done);n=!0){var a=r.value,l=a.getAttribute("data-since"),u=a.getAttribute("data-format"),c=this.formatDuration(l,u);null!==a.getAttribute("data-title")&&t.push(c),a.textContent=c}}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}if(0!==t.length){var d=t.shift(),h=!0,f=!1,p=void 0;try{for(var m,g=t.slice(0,2)[Symbol.iterator]();!(h=(m=g.next()).done);h=!0){var c=m.value;d+=" | "+c}}catch(t){f=!0,p=t}finally{try{!h&&g.return&&g.return()}finally{if(f)throw p}}document.title=d}}},{key:"formatDuration",value:function(t,e){var n=a.a.duration(a()(new Date).diff(a()(t))),i=parseInt(n.asHours()).toString(),o=n.minutes(),r=n.seconds();return 1===i.length&&(i="0"+i),e.replace("%h",i).replace("%m",("0"+o).substr(-2)).replace("%s",("0"+r).substr(-2))}}]),e}(l.a);e.a=c}}); |