!function(t,_){"use strict";function a(t,e){var r=[],n=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(t,e,n,i){return t="?"===i||"*?"===i,i="*"===i||"*?"===i,r.push({name:n,optional:t}),e=e||"",(t?"(?:"+e:e+"(?:")+(i?"(.+?)":"([^/]+)")+(t?"?)?":")")}).replace(/([/$*])/g,"\\$1");return e.ignoreTrailingSlashes&&(n=n.replace(/\/+$/,"")+"/*"),{keys:r,regexp:new RegExp("^"+n+"(?:[?#]|$)",e.caseInsensitiveMatch?"i":"")}}function e(t){l&&t.get("$route")}function n(h,f,p){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(n,i,t,e,r){function a(){u&&(p.cancel(u),u=null),s&&(s.$destroy(),s=null),l&&((u=p.leave(l)).done(function(t){!1!==t&&(u=null)}),l=null)}function o(){var t=h.current&&h.current.locals;if(_.isDefined(t&&t.$template)){t=n.$new();var e=h.current;l=r(t,function(t){p.enter(t,null,l||i).done(function(t){!1===t||!_.isDefined(c)||c&&!n.$eval(c)||f()}),a()}),(s=e.scope=t).$emit("$viewContentLoaded"),s.$eval(d)}else a()}var s,l,u,c=t.autoscroll,d=t.onload||"";n.$on("$routeChangeSuccess",o),o()}}}function i(o,s,l){return{restrict:"ECA",priority:-400,link:function(t,e){var n=l.current,i=n.locals;e.html(i.$template);var r=o(e.contents());if(n.controller){i.$scope=t;var a=s(n.controller,i);n.controllerAs&&(t[n.controllerAs]=a),e.data("$ngControllerController",a),e.children().data("$ngControllerController",a)}t[n.resolveAs||"$resolve"]=i,r(t)}}}var o,s,r,k,l,u=_.module("ngRoute",[]).info({angularVersion:"1.8.2"}).provider("$route",function(){function b(t,e){return _.extend(Object.create(t),e)}o=_.isArray,s=_.isObject,r=_.isDefined,k=_.noop;var w={};this.when=function(t,e){var n;if(n=void 0,o(e)){n=n||[];for(var i=0,r=e.length;i]/g)||[]).length<=0||0this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),e?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&e&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,e="";for(this.o.calendarWeeks&&(e+=' ');t";e+="",this.picker.find(".datepicker-days thead").append(e)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+=''+A[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){t&&t.length?this.range=T.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var e=[],n=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),r=E();return t.getUTCFullYear()n||t.getUTCFullYear()===n&&t.getUTCMonth()>i)&&e.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&e.push("focused"),this.o.todayHighlight&&a(t,r)&&e.push("today"),-1!==this.dates.contains(t)&&e.push("active"),this.dateWithinRange(t)||e.push("disabled"),this.dateIsDisabled(t)&&e.push("disabled","disabled-date"),-1!==T.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&e.push("highlighted"),this.range&&(t>this.range[0]&&t"+v+"";h.find(".datepicker-switch").text(f+"-"+p),h.find("td").html(c)},fill:function(){var t,e,n=new Date(this.viewDate),r=n.getUTCFullYear(),i=n.getUTCMonth(),a=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,u=A[this.o.language].today||A.en.today||"",c=A[this.o.language].clear||A.en.clear||"",d=A[this.o.language].titleFormat||A.en.titleFormat,h=E(),f=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&h>=this.o.startDate&&h<=this.o.endDate&&!this.weekOfDateIsDisabled(h);if(!isNaN(r)&&!isNaN(i)){this.picker.find(".datepicker-days .datepicker-switch").text(I.formatDate(n,d,this.o.language)),this.picker.find("tfoot .today").text(u).css("display",f?"table-cell":"none"),this.picker.find("tfoot .clear").text(c).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var p=O(r,i,0),m=p.getUTCDate();p.setUTCDate(m-(p.getUTCDay()-this.o.weekStart+7)%7);var g=new Date(p);p.getUTCFullYear()<100&&g.setUTCFullYear(p.getUTCFullYear()),g.setUTCDate(g.getUTCDate()+42),g=g.valueOf();for(var v,y,b=[];p.valueOf()"),this.o.calendarWeeks)){var w=new Date(+p+(this.o.weekStart-v-7)%7*864e5),_=new Date(Number(w)+(11-w.getUTCDay())%7*864e5),k=new Date(Number(k=O(_.getUTCFullYear(),0,1))+(11-k.getUTCDay())%7*864e5),x=(_-k)/864e5/7+1;b.push(''+x+"")}(y=this.getClassNames(p)).push("day");var D=p.getUTCDate();this.o.beforeShowDay!==T.noop&&((e=this.o.beforeShowDay(this._utc_to_local(p)))===P?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e}),!1===e.enabled&&y.push("disabled"),e.classes&&(y=y.concat(e.classes.split(/\s+/))),e.tooltip&&(t=e.tooltip),e.content&&(D=e.content)),y=T.isFunction(T.uniqueSort)?T.uniqueSort(y):T.unique(y),b.push(''+D+""),t=null,v===this.o.weekEnd&&b.push(""),p.setUTCDate(p.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(b.join(""));var S=A[this.o.language].monthsTitle||A.en.monthsTitle||"Months",M=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?S:r).end().find("tbody span").removeClass("active");if(T.each(this.dates,function(t,e){e.getUTCFullYear()===r&&M.eq(e.getUTCMonth()).addClass("active")}),(rs;break;case 0:t=i<=a&&r<=o,e=s<=i&&l<=r}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(t){var e,n,i;t.preventDefault(),t.stopPropagation(),(e=T(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),e.hasClass("today")&&!e.hasClass("day")&&(this.setViewMode(0),this._setDate(E(),"linked"===this.o.todayBtn?null:"view")),e.hasClass("clear")&&this.clearDates(),e.hasClass("disabled")||(e.hasClass("month")||e.hasClass("year")||e.hasClass("decade")||e.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(i=e.parent().find("span").index(e),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(i)):(i=0,n=Number(e.text()),this.viewDate.setUTCFullYear(n)),this._trigger(I.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(O(n,i,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var e=T(t.currentTarget).data("date"),n=new Date(e);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(t){var e=T(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(e*=12*I.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,e),this._trigger(I.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||1this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!(n=t)||isNaN(n.getTime()))return this.o.defaultViewDate;var n;if(!e)return t;var i,r,a=new Date(t.valueOf()),o=a.getUTCDate(),s=a.getUTCMonth(),l=Math.abs(e);if(e=0=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+I.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var u=function(t,e){T.data(t,"datepicker",this),this.element=T(t),this.inputs=T.map(e.inputs,function(t){return t.jquery?t[0]:t}),delete e.inputs,this.keepEmptyValues=e.keepEmptyValues,delete e.keepEmptyValues,r.call(T(this.inputs),e).on("changeDate",T.proxy(this.dateUpdated,this)),this.pickers=T.map(this.inputs,function(t){return T.data(t,"datepicker")}),this.updateDates()};u.prototype={updateDates:function(){this.dates=T.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var n=T.map(this.dates,function(t){return t.valueOf()});T.each(this.pickers,function(t,e){e.setRange(n)})},clearDates:function(){T.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var n=T.data(t.target,"datepicker");if(n!==P){var i=n.getUTCDate(),r=this.keepEmptyValues,e=T.inArray(t.target,this.inputs),a=e-1,o=e+1,s=this.inputs.length;if(-1!==e){if(T.each(this.pickers,function(t,e){e.getUTCDate()||e!==n&&r||e.setUTCDate(i)}),ithis.dates[o])for(;othis.dates[o];)this.pickers[o++].setUTCDate(i);this.updateDates(),delete this.updating}}}},destroy:function(){T.map(this.pickers,function(t){t.destroy()}),T(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:t("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var i=T.fn.datepicker,r=function(o){var s,l=Array.apply(null,arguments);if(l.shift(),this.each(function(){var t=T(this),e=t.data("datepicker"),n="object"==typeof o&&o;if(!e){var i=function(t,e){function n(t,e){return e.toLowerCase()}var i=T(t).data(),r={},a=new RegExp("^"+e.toLowerCase()+"([A-Z])");for(var o in e=new RegExp("^"+e.toLowerCase()),i)e.test(o)&&(r[o.replace(a,n)]=i[o]);return r}(this,"date"),r=function(t){var n={};if(A[t]||(t=t.split("-")[0],A[t])){var i=A[t];return T.each(d,function(t,e){e in i&&(n[e]=i[e])}),n}}(T.extend({},c,i,n).language),a=T.extend({},c,r,i,n);e=t.hasClass("input-daterange")||a.inputs?(T.extend(a,{inputs:a.inputs||t.find("input").toArray()}),new u(this,a)):new _(this,a),t.data("datepicker",e)}"string"==typeof o&&"function"==typeof e[o]&&(s=e[o].apply(e,l))}),s===P||s instanceof _||s instanceof u)return this;if(1(new Date).getFullYear()+i&&(n-=100),n):e);var n,i},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};g.yy=g.yyyy,g.M=g.MM=g.mm=g.m,g.dd=g.d,t=E();var v=e.parts.slice();if(a.length!==v.length&&(v=T(v).filter(function(t,e){return-1!==T.inArray(e,m)}).toArray()),a.length===v.length){var y,b,w;for(l=0,y=v.length;l'+c.templates.leftArrow+''+c.templates.rightArrow+"",contTemplate:'',footTemplate:''};I.template='
'+I.headTemplate+""+I.footTemplate+'
'+I.headTemplate+I.contTemplate+I.footTemplate+'
'+I.headTemplate+I.contTemplate+I.footTemplate+'
'+I.headTemplate+I.contTemplate+I.footTemplate+'
'+I.headTemplate+I.contTemplate+I.footTemplate+"
",T.fn.datepicker.DPGlobal=I,T.fn.datepicker.noConflict=function(){return T.fn.datepicker=i,this},T.fn.datepicker.version="1.9.0",T.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},T(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=T(this);e.data("datepicker")||(t.preventDefault(),r.call(e,"show"))}),T(function(){r.call(T('[data-provide="datepicker-inline"]'))})}),jQuery.fn.datepicker.dates["pt-BR"]={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje",monthsTitle:"Meses",clear:"Limpar",format:"dd/mm/yyyy"},function(_,k,x){"use strict";!function a(o,s,l){function u(n,t){if(!s[n]){if(!o[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[n]={exports:{}};o[n][0].call(r.exports,function(t){var e=o[n][1][t];return u(e||t)},r,r.exports,a,o,s,l)}return s[n].exports}for(var c="function"==typeof require&&require,t=0;t
\n \n \n \n \n
\n \n \n
\n \n \n\n
\n
\n

Title

\n

Text

\n
\n \n
\n
\n
!
\n

Not valid!

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
',e.exports=n.default},{}],8:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});var m=t("./utils"),g=t("./handle-swal-dom"),v=t("./handle-dom"),y=["error","warning","info","success","input","prompt"];n.default=function(r){var a=g.getModal(),t=a.querySelector("h2"),e=a.querySelector("p"),n=a.querySelector("button.cancel"),i=a.querySelector("button.confirm");if(t.innerHTML=r.html?r.title:v.escapeHtml(r.title).split("\n").join("
"),e.innerHTML=r.html?r.text:v.escapeHtml(r.text||"").split("\n").join("
"),r.text&&v.show(e),r.customClass)v.addClass(a,r.customClass),a.setAttribute("data-custom-class",r.customClass);else{var o=a.getAttribute("data-custom-class");v.removeClass(a,o),a.setAttribute("data-custom-class","")}if(v.hide(a.querySelectorAll(".sa-icon")),r.type&&!m.isIE8()){var s=function(){for(var t=!1,e=0;e=f}function C(n){var i,r,e="",t=S[0],a=d.slice(),o=N,s=o+A(t),l="";return n=n.toString(),i=0,r=n.length-R.length,angular.forEach(h,function(t){var e=t.position;o<=e&&ea.length||p&&r.length>a.length-p,y=r.lengthi.length&&(o=!0),S.val(i),o&&D.$apply(function(){M.$setViewValue(i)}),v&&u<=h&&(u=h+1),k&&u--,u=f>>0;if(0===n)return-1;var i=0;if(1 4096 bytes)!"),s.cookie=e}}l.module("ngCookies",["ng"]).info({angularVersion:"1.8.2"}).provider("$cookies",[function(){var r=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(e,i){return{get:function(t){return e()[t]},getObject:function(t){return(t=this.get(t))?l.fromJson(t):t},getAll:function(){return e()},put:function(t,e,n){i(t,e,n?l.extend({},r,n):r)},putObject:function(t,e,n){this.put(t,l.toJson(e),n)},remove:function(t,e){i(t,void 0,e?l.extend({},r,e):r)}}}]}]),e.$inject=["$document","$log","$browser"],l.module("ngCookies").provider("$$cookieWriter",function(){this.$get=e})}(window,window.angular),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,r;function p(){return t.apply(null,arguments)}function s(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function m(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(m(t,e))return!1;return!0}function c(t){return void 0===t}function d(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,i=[],r=t.length;for(n=0;n>>0;for(e=0;eNt(t)?(a=t+1,s-Nt(t)):(a=t,s),{year:a,dayOfYear:o}}function jt(t,e,n){var i,r,a=Vt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?i=o+Wt(r=t.year()-1,e,n):o>Wt(t.year(),e,n)?(i=o-Wt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Wt(t,e,n){var i=Vt(t,e,n),r=Vt(t+1,e,n);return(Nt(t)-i+r)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),j("week",5),j("isoWeek",5),ht("w",et),ht("ww",et,Q),ht("W",et),ht("WW",et,Q),vt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=B(t)});function Ut(t,e){return t.slice(e,7).concat(t.slice(0,e))}R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),ht("d",et),ht("e",et),ht("E",et),ht("dd",function(t,e){return e.weekdaysMinRegex(t)}),ht("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ht("dddd",function(t,e){return e.weekdaysRegex(t)}),vt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:y(n).invalidWeekday=t}),vt(["d","e","E"],function(t,e,n,i){e[i]=B(t)});var Bt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Gt=dt,Zt=dt,Jt=dt;function Qt(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=v([2e3,1]).day(e),i=pt(this.weekdaysMin(n,"")),r=pt(this.weekdaysShort(n,"")),a=pt(this.weekdays(n,"")),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);o.sort(t),s.sort(t),l.sort(t),u.sort(t),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("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Xt(t,e){R(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Kt),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+Kt.apply(this)+P(this.minutes(),2)}),R("hmmss",0,0,function(){return""+Kt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),Xt("a",!0),Xt("A",!1),$("hour","h"),j("hour",13),ht("a",te),ht("A",te),ht("H",et),ht("h",et),ht("k",et),ht("HH",et,Q),ht("hh",et,Q),ht("kk",et,Q),ht("hmm",nt),ht("hmmss",it),ht("Hmm",nt),ht("Hmmss",it),gt(["H","HH"],kt),gt(["k","kk"],function(t,e,n){var i=B(t);e[kt]=24===i?0:i}),gt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),gt(["h","hh"],function(t,e,n){e[kt]=B(t),y(n).bigHour=!0}),gt("hmm",function(t,e,n){var i=t.length-2;e[kt]=B(t.substr(0,i)),e[xt]=B(t.substr(i)),y(n).bigHour=!0}),gt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[kt]=B(t.substr(0,i)),e[xt]=B(t.substr(i,2)),e[Dt]=B(t.substr(r)),y(n).bigHour=!0}),gt("Hmm",function(t,e,n){var i=t.length-2;e[kt]=B(t.substr(0,i)),e[xt]=B(t.substr(i))}),gt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[kt]=B(t.substr(0,i)),e[xt]=B(t.substr(i,2)),e[Dt]=B(t.substr(r))});var ee=z("Hours",!0);var ne,ie={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Bt,weekdaysMin:qt,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},re={},ae={};function oe(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n=e&&oe(r,n)>=e-1)break;e--}a++}return ne}(t)}function he(t){var e,n=t._a;return n&&-2===y(t).overflow&&(e=n[wt]<0||11Tt(n[bt],n[wt])?_t:n[kt]<0||24Wt(n,a,o)?y(t)._overflowWeeks=!0:null!=l?y(t)._overflowWeekday=!0:(s=Ht(n,i,r,a,o),t._a[bt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=De(t._a[bt],i[bt]),(t._dayOfYear>Nt(a)||0===t._dayOfYear)&&(y(t)._overflowDayOfYear=!0),n=Lt(a,0,t._dayOfYear),t._a[wt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[kt]&&0===t._a[xt]&&0===t._a[Dt]&&0===t._a[St]&&(t._nextDay=!0,t._a[kt]=0),t._d=(t._useUTC?Lt:function(t,e,n,i,r,a,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,a,o),s}).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(y(t).weekdayMismatch=!0)}}function Me(t){if(t._f!==p.ISO_8601)if(t._f!==p.RFC_2822){t._a=[],y(t).empty=!0;var e,n,i,r,a,o,s,l,u,c,d=""+t._i,h=d.length,f=0;for(s=(i=F(t._f,t._locale).match(O)||[]).length,e=0;en.valueOf():n.valueOf()"}),bn.toJSON=function(){return this.isValid()?this.toISOString():null},bn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bn.unix=function(){return Math.floor(this.valueOf()/1e3)},bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bn.isUtc=je,bn.isUTC=je,bn.zoneAbbr=function(){return this._isUTC?"UTC":""},bn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bn.dates=n("dates accessor is deprecated. Use date instead.",fn),bn.months=n("months accessor is deprecated. Use month instead",Yt),bn.years=n("years accessor is deprecated. Use year instead",$t),bn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),bn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=Ce(e))._a?(t=e._isUTC?v(e._a):Pe(e._a),this._isDSTShifted=this.isValid()&&0
',this.loadingBarTemplate='
',this.$get=["$injector","$document","$timeout","$rootScope",function(r,a,o,s){function l(t){if(g){var e=100*t+"%";p.css("width",e),v=t,y&&(o.cancel(c),c=o(function(){n()},250))}}function n(){if(!(1<=i())){var t,e=i();t=0<=e&&e<.25?(3*Math.random()+3)/100:.25<=e&&e<.65?3*Math.random()/100:.65<=e&&e<.9?2*Math.random()/100:.9<=e&&e<.99?.005:0,l(i()+t)}}function i(){return v}function e(){v=0,g=!1}var u,c,d,h=this.parentSelector,f=angular.element(this.loadingBarTemplate),p=f.find("div").eq(0),m=angular.element(this.spinnerTemplate),g=!1,v=0,y=this.autoIncrement,b=this.includeSpinner,w=this.includeBar,_=this.startSize;return{start:function(){if(u||(u=r.get("$animate")),o.cancel(d),!g){var t=a[0],e=t.querySelector?t.querySelector(h):a.find(h)[0];e||(e=t.getElementsByTagName("body")[0]);var n=angular.element(e),i=e.lastChild&&angular.element(e.lastChild);s.$broadcast("cfpLoadingBar:started"),g=!0,w&&u.enter(f,n,i),b&&u.enter(m,n,f),l(_)}},set:l,status:i,inc:n,complete:function(){u||(u=r.get("$animate")),s.$broadcast("cfpLoadingBar:completed"),l(1),o.cancel(d),d=o(function(){var t=u.leave(f,e);t&&t.then&&t.then(e),u.leave(m)},500)},autoIncrement:this.autoIncrement,includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Chart=e()}(this,function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var u={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]},c=t(function(t){var l={};for(var e in u)u.hasOwnProperty(e)&&(l[u[e]]=e);var o=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in o)if(o.hasOwnProperty(n)){if(!("channels"in o[n]))throw new Error("missing channels property: "+n);if(!("labels"in o[n]))throw new Error("missing channel labels property: "+n);if(o[n].labels.length!==o[n].channels)throw new Error("channel and label counts mismatch: "+n);var i=o[n].channels,r=o[n].labels;delete o[n].channels,delete o[n].labels,Object.defineProperty(o[n],"channels",{value:i}),Object.defineProperty(o[n],"labels",{value:r})}o.rgb.hsl=function(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o;return s===o?e=0:i===s?e=(r-a)/l:r===s?e=2+(a-i)/l:a===s&&(e=4+(i-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(o+s)/2,[e,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},o.rgb.hsv=function(t){var e,n,i,r,a,o=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(o,s,l),c=u-Math.min(o,s,l),d=function(t){return(u-t)/6/c+.5};return 0===c?r=a=0:(a=c/u,e=d(o),n=d(s),i=d(l),o===u?r=i-n:s===u?r=1/3+e-i:l===u&&(r=2/3+n-e),r<0?r+=1:1>1&1)*n*255,(e>>2&1)*n*255]},o.ansi256.rgb=function(t){if(232<=t){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},o.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},o.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255,a=Math.max(Math.max(n,i),r),o=Math.min(Math.min(n,i),r),s=a-o;return e=s<=0?0:a===n?(i-r)/s%6:a===i?2+(r-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?o/(1-s):0)]},o.hsl.hcg=function(t){var e,n=t[1]/100,i=t[2]/100,r=0;return(e=i<.5?2*n*i:2*n*(1-i))<1&&(r=(i-.5*e)/(1-e)),[t[0],100*e,100*r]},o.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},o.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var r,a=[0,0,0],o=e%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return r=(1-n)*i,[255*(n*a[0]+r),255*(n*a[1]+r),255*(n*a[2]+r)]},o.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return 0e.left-1e-6&&t.xe.top-1e-6&&t.y=n?(H.callback(t.onAnimationComplete,[t],e),e.animating=!1,r.splice(a,1)):++a}},Q=H.options.resolve,K=["push","pop","shift","splice","unshift"];function X(e,t){var n=e._chartjs;if(n){var i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),0r?(a=r/e.innerRadius,t.arc(o,s,e.innerRadius-r,i+a,n-a,!0)):t.arc(o,s,r,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}F._set("global",{elements:{arc:{backgroundColor:F.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var rt=q.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)=n.innerRadius&&a<=n.outerRadius;return l&&u}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,e,n,i,r,a=this._chart.ctx,o=this._view,s="inner"===o.borderAlign?.33:0,l={x:o.x,y:o.y,innerRadius:o.innerRadius,outerRadius:Math.max(o.outerRadius-s,0),pixelMargin:s,startAngle:o.startAngle,endAngle:o.endAngle,fullCircles:Math.floor(o.circumference/nt)};if(a.save(),a.fillStyle=o.backgroundColor,a.strokeStyle=o.borderColor,l.fullCircles){for(l.endAngle=l.startAngle+nt,a.beginPath(),a.arc(l.x,l.y,l.outerRadius,l.startAngle,l.endAngle),a.arc(l.x,l.y,l.innerRadius,l.endAngle,l.startAngle,!0),a.closePath(),t=0;t=a.left&&e<=a.right)&&(r||n>=a.top&&n<=a.bottom)}F._set("global",{elements:{rectangle:{backgroundColor:ht,borderColor:ht,borderSkipped:"bottom",borderWidth:0}}});var vt=q.extend({_type:"rectangle",draw:function(){var t,e,n,i,r,a,o,s,l,u,c,d,h,f,p,m,g,v=this._chart.ctx,y=this._view,b=(f=pt(t=y),p=f.right-f.left,m=f.bottom-f.top,n=p/2,i=m/2,d=(e=t).borderWidth,u=(l=e).borderSkipped,c={},u&&(l.horizontal?l.base>l.x&&(u=mt(u,"left","right")):l.base(u=udiv{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}"}))&&se.default||se,ce="$chartjs",de="chartjs-size-monitor",he="chartjs-render-monitor",fe=["animationstart","webkitAnimationStart"],pe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function me(t,e){var n=H.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var ge=!!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};function ve(t,e,n){t.addEventListener(e,n,ge)}function ye(t,e,n){t.removeEventListener(e,n,ge)}function be(t,e,n,i,r){return{type:t,chart:e,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function we(t){var e=document.createElement("div");return e.className=t||"",e}function _e(n,i,r){var t,e,a,o,s,l,u,c=n[ce]||(n[ce]={}),d=c.resizer=function(t){var e=we(de),n=we(de+"-expand"),i=we(de+"-shrink");n.appendChild(we()),i.appendChild(we()),e.appendChild(n),e.appendChild(i),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var r=function(){e._reset(),t()};return ve(n,"scroll",r.bind(n,"expand")),ve(i,"scroll",r.bind(i,"shrink")),e}((a=!(t=function(){if(c.resizer){var t=r.options.maintainAspectRatio&&n.parentNode,e=t?t.clientWidth:0;i(be("resize",r)),t&&t.clientWidthl.height-e.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;i="center"===d?(n=function(t){return t<=h},function(t){return h=l.width-e.width/2}),r=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},a=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(c="left",r(s.x)&&(c="center",d=o(s.y))):i(s.x)&&(c="right",a(s.x)&&(c="center",d=o(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}(this,h=A),p=D._chart,m=d.x,g=d.y,v=d.caretSize,y=d.caretPadding,b=d.cornerRadius,w=f.xAlign,_=f.yAlign,k=v+y,x=b+y,"right"===w?m-=h.width:"center"===w&&((m-=h.width/2)+h.width>p.width&&(m=p.width-h.width),m<0&&(m=0)),"top"===_?g+=k:g-="bottom"===_?h.height+k:h.height/2,"center"===_?"left"===w?m+=k:"right"===w&&(m-=k):"left"===w?m-=x:"right"===w&&(m+=x),E={x:m,y:g}}else C.opacity=0;return C.xAlign=O.xAlign,C.yAlign=O.yAlign,C.x=E.x,C.y=E.y,C.width=A.width,C.height=A.height,C.caretX=I.x,C.caretY=I.y,D._model=C,t&&S.custom&&S.custom.call(D,C),D},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(t,e,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(t,e,n){var i,r,a,o,s,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)s=p+g/2,l="left"===d?(r=(i=f)-u,a=i,o=s+u,s-u):(r=(i=f+m)+u,a=i,o=s-u,s+u);else if(a=(i="left"===d?(r=f+c+u)-u:"right"===d?(r=f+m-c-u)-u:(r=n.caretX)-u,r+u),"top"===h)s=(o=p)-u,l=o;else{s=(o=p+g)+u,l=o;var v=a;a=i,i=v}return{x1:i,x2:r,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(t,e,n){var i,r,a,o=e.title,s=o.length;if(s){var l=Te(e.rtl,e.x,e.width);for(t.x=Ie(e,e._titleAlign),n.textAlign=l.textAlign(e._titleAlign),n.textBaseline="middle",i=e.titleFontSize,r=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=H.fontString(i,e._titleFontStyle,e._titleFontFamily),a=0;a=e[t].length&&e[t].push({}),!e[t][r].type||o.type&&o.type!==e[t][r].type?H.merge(e[t][r],[Me.getScaleDefaults(a),o]):H.merge(e[t][r],o)}else H._merger(t,e,n,i)}})}function Ve(){return H.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){var r=e[t]||Object.create(null),a=n[t];"scales"===t?e[t]=Le(r,a):"scale"===t?e[t]=H.merge(r,[Me.getScaleDefaults(a.type),a]):H._merger(t,e,n,i)}})}function He(t,e,n){for(var i,r=function(t){return t.id===i};i=e+n++,0<=H.findIndex(t,r););return i}function je(t){return"top"===t||"bottom"===t}function We(n,i){return function(t,e){return t[n]===e[n]?t[i]-e[i]:t[n]-e[n]}}F._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Ue=function(t,e){return this.construct(t,e),this};H.extend(Ue.prototype,{construct:function(t,e){var n,i,r=this;(i=(n=(n=e)||Object.create(null)).data=n.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],n.options=Ve(F.global,F[n.type],n.options||{}),e=n;var a=De.acquireContext(t,e),o=a&&a.canvas,s=o&&o.height,l=o&&o.width;r.id=H.uid(),r.ctx=a,r.canvas=o,r.config=e,r.width=l,r.height=s,r.aspectRatio=s?l/s:null,r.options=e.options,r._bufferedRender=!1,r._layers=[],(r.chart=r).controller=r,Ue.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(t){r.config.data=t}}),a&&o?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){return Se.notify(this,"beforeInit"),H.retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.options.responsive&&this.resize(!0),this.initToolTip(),Se.notify(this,"afterInit"),this},clear:function(){return H.canvas.clear(this),this},stop:function(){return J.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(H.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?a/r:H.getMaximumHeight(i)));if((e.width!==a||e.height!==o)&&(i.width=e.width=a,i.height=e.height=o,i.style.width=a+"px",i.style.height=o+"px",H.retinaScale(e,n.devicePixelRatio),!t)){var s={width:a,height:o};Se.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,n=t.scales||{},e=t.scale;H.each(n.xAxes,function(t,e){t.id||(t.id=He(n.xAxes,"x-axis-",e))}),H.each(n.yAxes,function(t,e){t.id||(t.id=He(n.yAxes,"y-axis-",e))}),e&&(e.id=e.id||"scale")},buildOrUpdateScales:function(){var o=this,t=o.options,s=o.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),H.each(e,function(t){var e=t.options,n=e.id,i=$e(e.type,t.dtype);je(e.position)!==je(t.dposition)&&(e.position=t.dposition),l[n]=!0;var r=null;if(n in s&&s[n].type===i)(r=s[n]).options=e,r.ctx=o.ctx,r.chart=o;else{var a=Me.getScaleConstructor(i);if(!a)return;r=new a({id:n,type:i,options:e,ctx:o.ctx,chart:o}),s[r.id]=r}r.mergeTicksOptions(),t.isDefault&&(o.scale=r)}),H.each(l,function(t,e){t||delete s[e]}),o.scales=s,Me.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=[],i=this.data.datasets;for(t=0,e=i.length;t(r=l.offset?s.maxWidth/c:i/(c-1))&&(r=i/(c-(l.offset?.5:1)),a=s.maxHeight-en(l.gridLines)-u.padding-nn(l.scaleLabel),o=Math.sqrt(e*e+n*n),f=H.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/r,1)),Math.asin(Math.min(a/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){H.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){H.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,i=t.options,r=i.ticks,a=i.scaleLabel,o=i.gridLines,s=t._isVisible(),l="bottom"===i.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=en(o)+nn(a)),u?s&&(e.height=en(o)+nn(a)):e.height=t.maxHeight,r.display&&s){var c=an(r),d=t._getLabelSizes(),h=d.first,f=d.last,p=d.widest,m=d.highest,g=.4*c.minor.lineHeight,v=r.padding;if(u){var y=0!==t.labelRotation,b=H.toRadians(t.labelRotation),w=Math.cos(b),_=Math.sin(b),k=_*p.width+w*(m.height-(y?m.offset:0))+(y?0:g);e.height=Math.min(t.maxHeight,e.height+k+v);var x,D,S=t.getPixelForTick(0)-t.left,M=t.right-t.getPixelForTick(t.getTicks().length-1);D=y?(x=l?w*h.width+_*h.offset:_*(h.height-h.offset),l?_*(f.height-f.offset):w*f.width+_*f.offset):(x=h.width/2,f.width/2),t.paddingLeft=Math.max((x-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((D-M)*t.width/(t.width-M),0)+3}else{var C=r.mirror?0:p.width+v+g;e.width=Math.min(t.maxWidth,e.width+C),t.paddingTop=h.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){H.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(Qe(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!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},_convertTicksToLabels:function(t){var e,n,i;for(this.ticks=t.map(function(t){return t.value}),this.beforeTickToLabelConversion(),e=this.convertTicksToLabels(t)||this.ticks,this.afterTickToLabelConversion(),n=0,i=t.length;nu)return a;return Math.max(u,1)}(0,t,0,s),0e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange);return Math.min(Math.max(e,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}});dn._defaults={position:"bottom"};var hn=H.noop,fn=H.isNullOrUndef,pn=un.extend({getRightValue:function(t){return"string"==typeof t?+t:un.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=H.sign(t.min),i=H.sign(t.max);n<0&&i<0?t.max=0:0=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,i=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:hn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),v={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:H.valueOrDefault(e.fixedStepSize,e.stepSize)},i=t.ticks=function(t,e){var n,i,r,a,o=[],s=v.stepSize,l=s||1,u=v.maxTicks-1,c=v.min,d=v.max,h=v.precision,f=e.min,p=e.max,m=H.niceNum((p-f)/u/l)*l;if(m<1e-14&&fn(c)&&fn(d))return[f,p];(a=Math.ceil(p/m)-Math.floor(f/m))>u&&(m=H.niceNum(a*m/u/l)*l),s||fn(h)?n=Math.pow(10,H._decimalPlaces(m)):(n=Math.pow(10,h),m=Math.ceil(m*n)/n),i=Math.floor(f/m)*m,r=Math.ceil(p/m)*m,s&&(!fn(c)&&H.almostWhole(c/m,m/1e3)&&(i=c),!fn(d)&&H.almostWhole(d/m,m/1e3)&&(r=d)),a=(r-i)/m,a=H.almostEquals(a,Math.round(a),m/1e3)?Math.round(a):Math.ceil(a),i=Math.round(i*n)/n,r=Math.round(r*n)/n,o.push(fn(c)?i:c);for(var g=1;ge.length-1?null:this.getPixelForValue(e[t])}}),bn=mn;yn._defaults=bn;var wn=H.valueOrDefault,_n=H.math.log10,kn={position:"left",ticks:{callback:Ze.formatters.logarithmic}};function xn(t,e){return H.isFinite(t)&&0<=t?t:e}var Dn=un.extend({determineDataLimits:function(){var t,e,n,i,r,a,o=this,s=o.options,l=o.chart,u=l.data.datasets,c=o.isHorizontal();function d(t){return c?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(t=0;te.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(_n(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;un.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=wn(t.options.ticks.fontSize,F.global.defaultFontSize)/t._length),t._startValue=_n(e),t._valueOffset=n,t._valueRange=(_n(t.max)-_n(e))/(1-n)},getPixelForValue:function(t){var e=0;return(t=+this.getRightValue(t))>this.min&&0a.r&&(a.r=f.end,o.r=d),p.starta.b&&(a.b=p.end,o.b=d)}t.setReductions(t.drawingArea,a,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),r=Math.max(e.r-this.width,0)/Math.sin(n.r),a=-e.t/Math.cos(n.t),o=-Math.max(e.b-(this.height-this.paddingTop),0)/Math.cos(n.b);i=In(i),r=In(r),a=In(a),o=In(o),this.drawingArea=Math.min(Math.floor(t-(i+r)/2),Math.floor(t-(a+o)/2)),this.setCenterPoint(i,r,a,o)},setCenterPoint:function(t,e,n,i){var r=this,a=r.width-e-r.drawingArea,o=t+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((o+a)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(H.isNullOrUndef(t))return NaN;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this.min,n=this.max;return this.getPointPositionForValue(t||0,this.beginAtZero?0:e<0&&n<0?n:0>1)-1]||null,a=t[i],!r)return{lo:null,hi:a};if(a[e]n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}(t,e,n),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],o=r.lo?r.hi?r.hi:t[t.length-1]:t[1],s=o[e]-a[e],l=s?(n-a[e])/s:0,u=(o[i]-a[i])*l;return a[i]+u}function qn(t,e){var n=t._adapter,i=t.options.time,r=i.parser,a=r||i.format,o=e;return"function"==typeof r&&(o=r(o)),H.isFinite(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(r||"function"!=typeof a||(o=a(e),H.isFinite(o)||(o=n.parse(o))),o)}function Gn(t,e){if(H.isNullOrUndef(e))return null;var n=t.options.time,i=qn(t,t.getRightValue(e));return null===i||n.round&&(i=+t._adapter.startOf(i,n.round)),i}function Zn(t,e,n,i){var r,a,o,s=jn.length;for(r=jn.indexOf(t);r1e5*u)throw e+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(r=d;r=c&&n<=d&&g.push(n);return u.min=c,u.max=d,u._unit=p.unit||(f.autoSkip?Zn(p.minUnit,u.min,u.max,v):function(t,e,n,i,r){var a,o;for(a=jn.length-1;a>=jn.indexOf(n);a--)if(o=jn[a],Hn[o].common&&t._adapter.diff(r,i,o)>=e-1)return o;return jn[n?jn.indexOf(n):0]}(u,g.length,p.minUnit,u.min,u.max)),u._majorUnit=f.major.enabled&&"year"!==u._unit?function(t){for(var e=jn.indexOf(t)+1,n=jn.length;ee&&s>>0,i=0;ikt(t)?(a=t+1,s-kt(t)):(a=t,s),{year:a,dayOfYear:o}}function Ht(t,e,n){var i,r,a=Lt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?i=o+jt(r=t.year()-1,e,n):o>jt(t.year(),e,n)?(i=o-jt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function jt(t,e,n){var i=Lt(t,e,n),r=Lt(t+1,e,n);return(kt(t)-i+r)/7}function Wt(t,e){return t.slice(e,7).concat(t.slice(0,e))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),F("week",5),F("isoWeek",5),lt("w",J),lt("ww",J,z),lt("W",J),lt("WW",J,z),ht(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=D(t)}),j("d",0,"do","day"),j("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),j("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),j("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ht(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:w(n).invalidWeekday=t}),ht(["d","e","E"],function(t,e,n,i){e[i]=D(t)});var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var qt=ot,Gt=ot,Zt=ot;function Jt(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=ut(s[e]),l[e]=ut(l[e]),u[e]=ut(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("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Kt(t,e){j(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Xt(t,e){return e._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Qt),j("k",["kk",2],0,function(){return this.hours()||24}),j("hmm",0,0,function(){return""+Qt.apply(this)+N(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Qt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),Kt("a",!0),Kt("A",!1),A("hour","h"),F("hour",13),lt("a",Xt),lt("A",Xt),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,z),lt("hh",J,z),lt("kk",J,z),lt("hmm",Q),lt("hmmss",K),lt("Hmm",Q),lt("Hmmss",K),dt(["H","HH"],gt),dt(["k","kk"],function(t,e,n){var i=D(t);e[gt]=24===i?0:i}),dt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),dt(["h","hh"],function(t,e,n){e[gt]=D(t),w(n).bigHour=!0}),dt("hmm",function(t,e,n){var i=t.length-2;e[gt]=D(t.substr(0,i)),e[vt]=D(t.substr(i)),w(n).bigHour=!0}),dt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[gt]=D(t.substr(0,i)),e[vt]=D(t.substr(i,2)),e[yt]=D(t.substr(r)),w(n).bigHour=!0}),dt("Hmm",function(t,e,n){var i=t.length-2;e[gt]=D(t.substr(0,i)),e[vt]=D(t.substr(i))}),dt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[gt]=D(t.substr(0,i)),e[vt]=D(t.substr(i,2)),e[yt]=D(t.substr(r))});var te,ee=Mt("Hours",!0),ne={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Et,monthsShort:At,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:zt,weekdaysShort:Bt,meridiemParse:/[ap]\.?m?\.?/i},ie={},re={};function ae(t){return t?t.toLowerCase().replace("_","-"):t}function oe(t){var e=null;if(!ie[t]&&zn&&zn.exports)try{e=te._abbr,function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}(),se(e)}catch(t){}return ie[t]}function se(t,e){var n;return t&&((n=u(e)?ue(t):le(t,e))?te=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),te._abbr}function le(t,e){if(null===e)return delete ie[t],null;var n,i=ne;if(e.abbr=t,null!=ie[t])C("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=ie[t]._config;else if(null!=e.parentLocale)if(null!=ie[e.parentLocale])i=ie[e.parentLocale]._config;else{if(null==(n=oe(e.parentLocale)))return re[e.parentLocale]||(re[e.parentLocale]=[]),re[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ie[t]=new O(P(i,e)),re[t]&&re[t].forEach(function(t){le(t.name,t.config)}),se(t),ie[t]}function ue(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return te;if(!s(t)){if(e=oe(t))return e;t=[t]}return function(t){for(var e,n,i,r,a=0;a=e&&o(r,n,!0)>=e-1)break;e--}a++}return te}(t)}function ce(t){var e,n=t._a;return n&&-2===w(t).overflow&&(e=n[pt]<0||11Pt(n[ft],n[pt])?mt:n[gt]<0||24jt(n,a,o)?w(t)._overflowWeeks=!0:null!=l?w(t)._overflowWeekday=!0:(s=Vt(n,i,r,a,o),t._a[ft]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=de(t._a[ft],i[ft]),(t._dayOfYear>kt(a)||0===t._dayOfYear)&&(w(t)._overflowDayOfYear=!0),n=$t(a,0,t._dayOfYear),t._a[pt]=n.getUTCMonth(),t._a[mt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=l[e]=i[e];for(;e<7;e++)t._a[e]=l[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[gt]&&0===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&(t._nextDay=!0,t._a[gt]=0),t._d=(t._useUTC?$t:function(t,e,n,i,r,a,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,a,o),s}).apply(null,l),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(w(t).weekdayMismatch=!0)}}var fe=/^\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)?)?$/,pe=/^\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)?)?$/,me=/Z|[+-]\d\d(?::?\d\d)?/,ge=[["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}/]],ve=[["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/]],ye=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,i,r,a,o,s=t._i,l=fe.exec(s)||pe.exec(s);if(l){for(w(t).iso=!0,e=0,n=ge.length;e(a=jt(t,i,r))&&(e=a),function(t,e,n,i,r){var a=Vt(t,e,n,i,r),o=$t(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,n,i,r))}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",J,z),lt("gg",J,z),lt("GGGG",tt,G),lt("gggg",tt,G),lt("GGGGG",et,Z),lt("ggggg",et,Z),ht(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=D(t)}),ht(["gg","GG"],function(t,e,n,i){e[i]=y.parseTwoDigitYear(t)}),j("Q",0,"Qo","quarter"),A("quarter","Q"),F("quarter",7),lt("Q",B),dt("Q",function(t,e){e[pt]=3*(D(t)-1)}),j("D",["DD",2],"Do","date"),A("date","D"),F("date",9),lt("D",J),lt("DD",J,z),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),dt(["D","DD"],mt),dt("Do",function(t,e){e[mt]=D(t.match(J)[0])});var an=Mt("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),F("dayOfYear",4),lt("DDD",X),lt("DDDD",q),dt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=D(t)}),j("m",["mm",2],0,"minute"),A("minute","m"),F("minute",14),lt("m",J),lt("mm",J,z),dt(["m","mm"],vt);var on=Mt("Minutes",!1);j("s",["ss",2],0,"second"),A("second","s"),F("second",15),lt("s",J),lt("ss",J,z),dt(["s","ss"],yt);var sn,ln=Mt("Seconds",!1);for(j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),F("millisecond",16),lt("S",X,B),lt("SS",X,z),lt("SSS",X,q),sn="SSSS";sn.length<=9;sn+="S")lt(sn,nt);function un(t,e){e[bt]=D(1e3*("0."+t))}for(sn="S";sn.length<=9;sn+="S")dt(sn,un);var cn=Mt("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var dn=_.prototype;function hn(t){return t}dn.add=qe,dn.calendar=function(t,e){var n=t||Me(),i=Ne(n,this).startOf("day"),r=y.calendarFormat(this,i)||"sameElse",a=e&&(T(e[r])?e[r].call(this,n):e[r]);return this.format(a||this.localeData().calendar(r,this,Me(n)))},dn.clone=function(){return new _(this)},dn.diff=function(t,e,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=Ne(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=I(e)){case"year":a=Ze(this,i)/12;break;case"month":a=Ze(this,i);break;case"quarter":a=Ze(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:x(a)},dn.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?en:tn;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Xe(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Xe(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Xe(e,1e3)-1}return this._d.setTime(e),y.updateOffset(this,!0),this},dn.format=function(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)},dn.from=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Me(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},dn.fromNow=function(t){return this.from(Me(),t)},dn.to=function(t,e){return this.isValid()&&(k(t)&&t.isValid()||Me(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},dn.toNow=function(t){return this.to(Me(),t)},dn.get=function(t){return T(this[t=I(t)])?this[t]():this},dn.invalidAt=function(){return w(this).overflow},dn.isAfter=function(t,e){var n=k(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Le,dn.isUTC=Le,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=n("dates accessor is deprecated. Use date instead.",an),dn.months=n("months accessor is deprecated. Use month instead",Rt),dn.years=n("years accessor is deprecated. Use year instead",St),dn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),dn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=De(t))._a){var e=t._isUTC?p(t._a):Me(t._a);this._isDSTShifted=this.isValid()&&0e?e:t.boxWidth}F._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data.datasets,t=n.options.legend||{},r=t.labels&&t.labels.usePointStyle;return n._getSortedDatasetMetas().map(function(t){var e=t.controller.getStyle(r?0:void 0);return{text:i[t.index].label,fillStyle:e.backgroundColor,hidden:!n.isDatasetVisible(t.index),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,rotation:e.rotation,datasetIndex:t.index}},this)}}},legendCallback:function(t){var e,n,i,r=document.createElement("ul"),a=t.data.datasets;for(r.setAttribute("class",t.id+"-legend"),e=0,n=a.length;el.width)&&(d+=o+i.padding,c[c.length-(0l.height&&(m+=g+i.padding,f.push(g),p.push(v),v=g=0),g=Math.max(g,n),v+=o+h,s[e]={left:0,top:0,width:n,height:o}}),m+=g,f.push(g),p.push(v),l.width+=m}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:ui,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var p=this,n=p.options,m=n.labels,t=F.global,g=t.defaultColor,v=t.elements.line,y=p.height,b=p.columnHeights,w=p.width,_=p.lineWidths;if(n.display){var k,x=li(n.rtl,p.left,p.minSize.width),D=p.ctx,e=ci(m.fontColor,t.defaultFontColor),i=H.options._parseFont(m),S=i.size;D.textAlign=x.textAlign("left"),D.textBaseline="middle",D.lineWidth=.5,D.strokeStyle=e,D.fillStyle=e,D.font=i.string;var M=di(m,S),C=p.legendHitBoxes,T=function(t,e){switch(n.align){case"start":return m.padding;case"end":return t-e;default:return(t-e+m.padding)/2}},P=p.isHorizontal();k=P?{x:p.left+T(w,_[0]),y:p.top+m.padding,line:0}:{x:p.left+m.padding,y:p.top+T(y,b[0]),line:0},H.rtl.overrideTextDirection(p.ctx,n.textDirection);var O=S+m.padding;H.each(p.legendItems,function(t,e){var n=D.measureText(t.text).width,i=M+S/2+n,r=k.x,a=k.y;x.setWidth(p.minSize.width),P?0p.left+p.minSize.width&&(a=k.y+=O,k.line++,r=k.x=p.left+T(w,_[k.line])):0p.top+p.minSize.height&&(r=k.x=r+p.columnWidths[k.line]+m.padding,k.line++,a=k.y=p.top+T(y,b[k.line]));var o,s,l,u,c,d,h,f=x.x(r);!function(t,e,n){if(!(isNaN(M)||M<=0)){D.save();var i=ci(n.lineWidth,v.borderWidth);if(D.fillStyle=ci(n.fillStyle,g),D.lineCap=ci(n.lineCap,v.borderCapStyle),D.lineDashOffset=ci(n.lineDashOffset,v.borderDashOffset),D.lineJoin=ci(n.lineJoin,v.borderJoinStyle),D.lineWidth=i,D.strokeStyle=ci(n.strokeStyle,g),D.setLineDash&&D.setLineDash(ci(n.lineDash,v.borderDash)),m&&m.usePointStyle){var r=M*Math.SQRT2/2,a=x.xPlus(t,M/2),o=e+S/2;H.canvas.drawPoint(D,n.pointStyle,r,a,o,n.rotation)}else D.fillRect(x.leftForLtr(t,M),e,M,S),0!==i&&D.strokeRect(x.leftForLtr(t,M),e,M,S);D.restore()}}(f,a,t),C[e].left=x.leftForLtr(f,C[e].width),C[e].top=a,o=f,s=a,l=t,u=n,c=S/2,d=x.xPlus(o,M+c),h=s+c,D.fillText(l.text,d,h),l.hidden&&(D.beginPath(),D.lineWidth=2,D.moveTo(d,h),D.lineTo(x.xPlus(d,u),h),D.stroke()),P?k.x+=i+m.padding:k.y+=O}),H.rtl.restoreTextDirection(p.ctx,n.textDirection)}},_getLegendItemAt:function(t,e){var n,i,r;if(t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom)for(r=this.legendHitBoxes,n=0;n=(i=r[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return this.legendItems[n];return null},handleEvent:function(t){var e,n=this.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!n.onHover&&!n.onLeave)return}else{if("click"!==i)return;if(!n.onClick)return}e=this._getLegendItemAt(t.x,t.y),"click"===i?e&&n.onClick&&n.onClick.call(this,t.native,e):(n.onLeave&&e!==this._hoveredItem&&(this._hoveredItem&&n.onLeave.call(this,t.native,this._hoveredItem),this._hoveredItem=e),n.onHover&&e&&n.onHover.call(this,t.native,e))}});function fi(t,e){var n=new hi({ctx:t.ctx,options:e,chart:t});le.configure(t,n,e),le.addBox(t,n),t.legend=n}var pi={id:"legend",_element:hi,beforeInit:function(t){var e=t.options.legend;e&&fi(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(H.mergeIf(e,F.global.legend),n?(le.configure(t,n,e),n.options=e):fi(t,e)):n&&(le.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},mi=H.noop;F._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var gi=q.extend({initialize:function(t){H.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:mi,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:mi,beforeSetDimensions:mi,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:mi,beforeBuildLabels:mi,buildLabels:mi,afterBuildLabels:mi,beforeFit:mi,fit:function(){var t,e=this.options,n=this.minSize={},i=this.isHorizontal();e.display?(t=(H.isArray(e.text)?e.text.length:1)*H.options._parseFont(e).lineHeight+2*e.padding,this.width=n.width=i?this.maxWidth:t,this.height=n.height=i?t:this.maxHeight):this.width=n.width=this.height=n.height=0},afterFit:mi,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=this.options;if(e.display){var n,i,r,a=H.options._parseFont(e),o=a.lineHeight,s=o/2+e.padding,l=0,u=this.top,c=this.left,d=this.bottom,h=this.right;t.fillStyle=H.valueOrDefault(e.fontColor,F.global.defaultFontColor),t.font=a.string,this.isHorizontal()?(i=c+(h-c)/2,r=u+s,n=h-c):(i="left"===e.position?c+s:h-s,r=u+(d-u)/2,n=d-u,l=Math.PI*("left"===e.position?-.5:.5)),t.save(),t.translate(i,r),t.rotate(l),t.textAlign="center",t.textBaseline="middle";var f=e.text;if(H.isArray(f))for(var p=0,m=0;m=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},H.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},H.niceNum=function(t,e){var n=Math.floor(H.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)},H.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)},H.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,a=t.target||t.srcElement,o=a.getBoundingClientRect(),s=r.touches;i=s&&0n.length){for(o=0;oe&&(e=t.length)}),e},H.color=w?function(t){return t instanceof CanvasGradient&&(t=F.global.defaultColor),w(t)}:function(t){return console.error("Color.js not found!"),t},H.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:H.color(t).saturate(.5).darken(.1).rgbString()}}(),Be._adapters=Ge,Be.Animation=Z,Be.animationService=J,Be.controllers=Bt,Be.DatasetController=et,Be.defaults=F,Be.Element=q,Be.elements=yt,Be.Interaction=Kt,Be.layouts=le,Be.platform=De,Be.plugins=Se,Be.Scale=un,Be.scaleService=Me,Be.Ticks=Ze,Be.Tooltip=Ne,Be.helpers.each(Kn,function(t,e){Be.scaleService.registerScaleType(e,t,t._defaults)}),yi)yi.hasOwnProperty(ki)&&Be.plugins.register(yi[ki]);Be.platform.initialize();var xi=Be;return"undefined"!=typeof window&&(window.Chart=Be),(Be.Chart=Be).Legend=yi.legend._element,Be.Title=yi.title._element,Be.pluginService=Be.plugins,Be.PluginBase=Be.Element.extend({}),Be.canvasHelpers=Be.helpers.canvas,Be.layoutService=Be.layouts,Be.LinearScaleBase=pn,Be.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(n){Be[n]=function(t,e){return new Be(t,Be.helpers.merge(e||{},{type:n.charAt(0).toLowerCase()+n.slice(1)}))}}),xi}),function(t){"use strict";if("object"==typeof exports)module.exports=t("undefined"!=typeof angular?angular:require("angular"),"undefined"!=typeof Chart?Chart:require("chart.js"));else if("function"==typeof define&&define.amd)define(["angular","chart"],t);else{if("undefined"==typeof angular)throw new Error("AngularJS framework needs to be included, see https://angularjs.org/");if("undefined"==typeof Chart)throw new Error("Chart.js library needs to be included, see http://jtblin.github.io/angular-chart.js/");t(angular,Chart)}}(function(Y,F){"use strict";F.defaults.global.multiTooltipTemplate="<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%= value %>",F.defaults.global.tooltips.mode="label",F.defaults.global.elements.line.borderWidth=2,F.defaults.global.elements.rectangle.borderWidth=2,F.defaults.global.legend.display=!1,F.defaults.global.colors=["#97BBCD","#DCDCDC","#F7464A","#46BFBD","#FDB45C","#949FB1","#4D5360"];var a="object"==typeof window.G_vmlCanvasManager&&null!==window.G_vmlCanvasManager&&"function"==typeof window.G_vmlCanvasManager.initElement;return a&&(F.defaults.global.animation=!1),Y.module("chart.js",[]).provider("ChartJs",function(){var n={responsive:!0},i={Chart:F,getOptions:function(t){var e=t&&n[t]||{};return Y.extend({},n,e)}};this.setOptions=function(t,e){e?n[t]=Y.merge(n[t]||{},e):(e=t,n=Y.merge(n,e)),Y.merge(i.Chart.defaults,n)},this.$get=function(){return i}}).factory("ChartJsFactory",["ChartJs","$timeout",function(T,P){function O(t,e,n){var i,r,a,o,s,l,u,c,d,h,f,p,m,g,v,y,b,w,_,k,x,D=(i=t,r=e,Y.extend({},T.getOptions(i),r.chartOptions));if((x=e).chartData&&x.chartData.length&&(w=t,_=e,k=n,!D.responsive||0!==k[0].clientHeight||(P(function(){O(w,_,k)},50,!1),0))){var S=n[0],M=S.getContext("2d");e.chartGetColor="function"==typeof(b=e).chartGetColor?b.chartGetColor:I;var C=(l=function(t,e){for(var n=Y.copy(e.chartColors||T.getOptions(t).chartColors||F.defaults.global.colors),i=n.length=e&&Y.merge(n,y[e]),n})}):(u=s.chartLabels,c=s.chartData,d=l,h=s.chartDatasetOverride,f={labels:u,datasets:[{data:c,backgroundColor:d.map(function(t){return t.pointBackgroundColor}),hoverBackgroundColor:d.map(function(t){return t.backgroundColor})}]},h&&Y.merge(f.datasets[0],h),f));R(e),e.chart=new T.Chart(M,{type:t,data:C,options:D}),e.$emit("chart-create",e.chart),o=e,(a=S).onclick=o.chartClick?E(o,"chartClick",!1):Y.noop,a.onmousemove=o.chartHover?E(o,"chartHover",!0):Y.noop}}function c(t,e){return t+e}function E(a,o,s){var l={point:void 0,points:void 0};return function(t){var e=a.chart.getElementAtEvent||a.chart.getPointAtEvent,n=a.chart.getElementsAtEvent||a.chart.getPointsAtEvent;if(n){var i=n.call(a.chart,t),r=e?e.call(a.chart,t)[0]:void 0;!1!==s&&(Y.equals(l.points,i)||Y.equals(l.point,r))||(l.point=r,l.points=i,a[o](i,t,r))}}}function A(t){return"string"==typeof t&&"r"===t[0]?i(function(t){var e=t.match(/^rgba?\(([\d,.]+)\)$/);if(!e)throw new Error("Cannot parse rgb value");return(t=e[1].split(",")).map(Number)}(t)):"string"==typeof t&&"#"===t[0]?i((e=t.substr(1),[(n=parseInt(e,16))>>16&255,n>>8&255,255&n])):"object"==typeof t&&null!==t?t:I();var e,n}function I(){return i([t(0,255),t(0,255),t(0,255)])}function i(t){var e=t[3]||1;return{backgroundColor:n(t=t.slice(0,3),.2),pointBackgroundColor:n(t,e),pointHoverBackgroundColor:n(t,.8),borderColor:n(t,e),pointBorderColor:"#fff",pointHoverBorderColor:n(t,e)}}function t(t,e){return Math.floor(Math.random()*(e-t+1))+t}function n(t,e){return a?"rgb("+t.join(",")+")":"rgba("+t.concat(e).join(",")+")"}function r(t){return!t||Array.isArray(t)&&!t.length||"object"==typeof t&&!Object.keys(t).length}function R(t){t.chart&&(t.chart.destroy(),t.$emit("chart-destroy",t.chart))}return function(u){return{restrict:"CA",scope:{chartGetColor:"=?",chartType:"=",chartData:"=?",chartLabels:"=?",chartOptions:"=?",chartSeries:"=?",chartColors:"=?",chartClick:"=?",chartHover:"=?",chartDatasetOverride:"=?"},link:function(s,l){function t(t,e){if(!r(t)&&!Y.equals(t,e)){var n=u||s.chartType;n&&O(n,s,l)}}a&&window.G_vmlCanvasManager.initElement(l[0]),s.$watch("chartData",function(t,e){if(t&&t.length&&(!Array.isArray(t[0])||t[0].length)){var n,i,r,a,o=u||s.chartType;return o?s.chart&&(a=e,(r=t)&&a&&r.length&&a.length&&(Array.isArray(r[0])?r.length===a.length&&r.every(function(t,e){return t.length===a[e].length}):0").addClass("bootstrap-datetimepicker-widget dropdown-menu"),d=J("
").addClass("datepicker").append((e=J("").append(J("").append(J("").addClass("prev").attr("data-action","previous").append(J("").addClass(m.icons.previous))).append(J("").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",m.calendarWeeks?"6":"5")).append(J("").addClass("next").attr("data-action","next").append(J("").addClass(m.icons.next)))),n=J("").append(J("").append(J("").attr("colspan",m.calendarWeeks?"8":"7"))),[J("
").addClass("datepicker-days").append(J("").addClass("table-condensed").append(e).append(J(""))),J("
").addClass("datepicker-months").append(J("
").addClass("table-condensed").append(e.clone()).append(n.clone())),J("
").addClass("datepicker-years").append(J("
").addClass("table-condensed").append(e.clone()).append(n.clone())),J("
").addClass("datepicker-decades").append(J("
").addClass("table-condensed").append(e.clone()).append(n.clone()))])),h=J("
").addClass("timepicker").append((o=J("
").addClass("timepicker-hours").append(J("
").addClass("table-condensed")),s=J("
").addClass("timepicker-minutes").append(J("
").addClass("table-condensed")),l=J("
").addClass("timepicker-seconds").append(J("
").addClass("table-condensed")),u=[(i=J(""),r=J(""),a=J(""),g("h")&&(i.append(J("
").append(J("").attr({href:"#",tabindex:"-1",title:m.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(J("").addClass(m.icons.up)))),r.append(J("").append(J("").addClass("timepicker-hour").attr({"data-time-component":"hours",title:m.tooltips.pickHour}).attr("data-action","showHours"))),a.append(J("").append(J("").attr({href:"#",tabindex:"-1",title:m.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(J("").addClass(m.icons.down))))),g("m")&&(g("h")&&(i.append(J("").addClass("separator")),r.append(J("").addClass("separator").html(":")),a.append(J("").addClass("separator"))),i.append(J("").append(J("").attr({href:"#",tabindex:"-1",title:m.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(J("").addClass(m.icons.up)))),r.append(J("").append(J("").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:m.tooltips.pickMinute}).attr("data-action","showMinutes"))),a.append(J("").append(J("").attr({href:"#",tabindex:"-1",title:m.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(J("").addClass(m.icons.down))))),g("s")&&(g("m")&&(i.append(J("").addClass("separator")),r.append(J("").addClass("separator").html(":")),a.append(J("").addClass("separator"))),i.append(J("").append(J("").attr({href:"#",tabindex:"-1",title:m.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(J("").addClass(m.icons.up)))),r.append(J("").append(J("").addClass("timepicker-second").attr({"data-time-component":"seconds",title:m.tooltips.pickSecond}).attr("data-action","showSeconds"))),a.append(J("").append(J("").attr({href:"#",tabindex:"-1",title:m.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(J("").addClass(m.icons.down))))),E||(i.append(J("").addClass("separator")),r.append(J("").append(J("").addClass("separator"))),J("
").addClass("timepicker-picker").append(J("").addClass("table-condensed").append([i,r,a])))],g("h")&&u.push(o),g("m")&&u.push(s),g("s")&&u.push(l),u)),f=J("
    ").addClass("list-unstyled"),p=J("
  • ").addClass("picker-switch"+(m.collapse?" accordion-toggle":"")).append((t=[],m.showTodayButton&&t.push(J("
").append(J("").attr({"data-action":"today",title:m.tooltips.today}).append(J("").addClass(m.icons.today)))),!m.sideBySide&&y()&&v()&&t.push(J("").append(J("").attr({"data-action":"togglePicker",title:m.tooltips.selectTime}).append(J("").addClass(m.icons.time)))),m.showClear&&t.push(J("").append(J("").attr({"data-action":"clear",title:m.tooltips.clear}).append(J("").addClass(m.icons.clear)))),m.showClose&&t.push(J("").append(J("").attr({"data-action":"close",title:m.tooltips.close}).append(J("").addClass(m.icons.close)))),J("").addClass("table-condensed").append(J("").append(J("").append(t)))));return m.inline&&c.removeClass("dropdown-menu"),E&&c.addClass("usetwentyfour"),g("s")&&!E&&c.addClass("wider"),m.sideBySide&&y()&&v()?(c.addClass("timepicker-sbs"),"top"===m.toolbarPlacement&&c.append(p),c.append(J("
").addClass("row").append(d.addClass("col-md-6")).append(h.addClass("col-md-6"))),"bottom"===m.toolbarPlacement&&c.append(p),c):("top"===m.toolbarPlacement&&f.append(p),y()&&f.append(J("
  • ").addClass(m.collapse&&v()?"collapse in":"").append(d)),"default"===m.toolbarPlacement&&f.append(p),v()&&f.append(J("
  • ").addClass(m.collapse&&y()?"collapse":"").append(h)),"bottom"===m.toolbarPlacement&&f.append(p),c.append(f))}function i(){var t,e=(L||a).position(),n=(L||a).offset(),i=m.widgetPositioning.vertical,r=m.widgetPositioning.horizontal;if(m.widgetParent)t=m.widgetParent.append(V);else if(a.is("input"))t=a.after(V).parent();else{if(m.inline)return void(t=a.append(V));(t=a).children().first().after(V)}if("auto"===i&&(i=n.top+1.5*V.height()>=J(window).height()+J(window).scrollTop()&&V.height()+a.outerHeight()J(window).width()?"right":"left"),"top"===i?V.addClass("top").removeClass("bottom"):V.addClass("bottom").removeClass("top"),"right"===r?V.addClass("pull-right"):V.removeClass("pull-right"),"static"===t.css("position")&&(t=t.parents().filter(function(){return"static"!==J(this).css("position")}).first()),0===t.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");V.css({top:"top"===i?"auto":e.top+a.outerHeight(),bottom:"top"===i?t.outerHeight()-(t===a?0:e.top):"auto",left:"left"===r?t===a?0:e.left:"auto",right:"left"===r?"auto":t.outerWidth()-a.outerWidth()-(t===a?0:e.left)})}function d(t){"dp.change"===t.type&&(t.date&&t.date.isSame(t.oldDate)||!t.date&&!t.oldDate)||a.trigger(t)}function r(t){"y"===t&&(t="YYYY"),d({type:"dp.update",change:t,viewDate:P.clone()})}function o(t){V&&(t&&(R=Math.max(H,Math.min(3,R+t))),V.find(".datepicker > div").hide().filter(".datepicker-"+j[R].clsName).show())}function h(t,e){var n,i,r,a;if(t.isValid()&&!(m.disabledDates&&"d"===e&&(n=t,!0===m.disabledDates[n.format("YYYY-MM-DD")])||m.enabledDates&&"d"===e&&(i=t,!0!==m.enabledDates[i.format("YYYY-MM-DD")])||m.minDate&&t.isBefore(m.minDate,e)||m.maxDate&&t.isAfter(m.maxDate,e)||m.daysOfWeekDisabled&&"d"===e&&-1!==m.daysOfWeekDisabled.indexOf(t.day())||m.disabledHours&&("h"===e||"m"===e||"s"===e)&&(r=t,!0===m.disabledHours[r.format("H")])||m.enabledHours&&("h"===e||"m"===e||"s"===e)&&(a=t,!0!==m.enabledHours[a.format("H")]))){if(m.disabledTimeIntervals&&("h"===e||"m"===e||"s"===e)){var o=!1;if(J.each(m.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return!(o=!0)}),o)return}return 1}}function s(){var t,e,n,i=V.find(".datepicker-days"),r=i.find("th"),a=[],o=[];if(y()){for(r.eq(0).find("span").attr("title",m.tooltips.prevMonth),r.eq(1).attr("title",m.tooltips.selectMonth),r.eq(2).find("span").attr("title",m.tooltips.nextMonth),i.find(".disabled").removeClass("disabled"),r.eq(1).text(P.format(m.dayViewHeaderFormat)),h(P.clone().subtract(1,"M"),"M")||r.eq(0).addClass("disabled"),h(P.clone().add(1,"M"),"M")||r.eq(2).addClass("disabled"),t=P.clone().startOf("M").startOf("w").startOf("d"),n=0;n<42;n++)0===t.weekday()&&(e=J("
  • "),m.calendarWeeks&&e.append('"),a.push(e)),o=["day"],t.isBefore(P,"M")&&o.push("old"),t.isAfter(P,"M")&&o.push("new"),t.isSame(T,"d")&&!$&&o.push("active"),h(t,"d")||o.push("disabled"),t.isSame(c(),"d")&&o.push("today"),0!==t.day()&&6!==t.day()||o.push("weekend"),d({type:"dp.classify",date:t,classNames:o}),e.append('"),t.add(1,"d");var s,l,u;i.find("tbody").empty().append(a),l=(s=V.find(".datepicker-months")).find("th"),u=s.find("tbody").find("span"),l.eq(0).find("span").attr("title",m.tooltips.prevYear),l.eq(1).attr("title",m.tooltips.selectYear),l.eq(2).find("span").attr("title",m.tooltips.nextYear),s.find(".disabled").removeClass("disabled"),h(P.clone().subtract(1,"y"),"y")||l.eq(0).addClass("disabled"),l.eq(1).text(P.year()),h(P.clone().add(1,"y"),"y")||l.eq(2).addClass("disabled"),u.removeClass("active"),T.isSame(P,"y")&&!$&&u.eq(T.month()).addClass("active"),u.each(function(t){h(P.clone().month(t),"M")||J(this).addClass("disabled")}),function(){var t=V.find(".datepicker-years"),e=t.find("th"),n=P.clone().subtract(5,"y"),i=P.clone().add(6,"y"),r="";for(e.eq(0).find("span").attr("title",m.tooltips.prevDecade),e.eq(1).attr("title",m.tooltips.selectDecade),e.eq(2).find("span").attr("title",m.tooltips.nextDecade),t.find(".disabled").removeClass("disabled"),m.minDate&&m.minDate.isAfter(n,"y")&&e.eq(0).addClass("disabled"),e.eq(1).text(n.year()+"-"+i.year()),m.maxDate&&m.maxDate.isBefore(i,"y")&&e.eq(2).addClass("disabled");!n.isAfter(i,"y");)r+=''+n.year()+"",n.add(1,"y");t.find("td").html(r)}(),function(){var t,e=V.find(".datepicker-decades"),n=e.find("th"),i=Q({y:P.year()-P.year()%100-1}),r=i.clone().add(100,"y"),a=i.clone(),o=!1,s=!1,l="";for(n.eq(0).find("span").attr("title",m.tooltips.prevCentury),n.eq(2).find("span").attr("title",m.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(i.isSame(Q({y:1900}))||m.minDate&&m.minDate.isAfter(i,"y"))&&n.eq(0).addClass("disabled"),n.eq(1).text(i.year()+"-"+r.year()),(i.isSame(Q({y:2e3}))||m.maxDate&&m.maxDate.isBefore(r,"y"))&&n.eq(2).addClass("disabled");!i.isAfter(r,"y");)t=i.year()+12,o=m.minDate&&m.minDate.isAfter(i,"y")&&m.minDate.year()<=t,s=m.maxDate&&m.maxDate.isAfter(i,"y")&&m.maxDate.year()<=t,l+=''+(i.year()+1)+" - "+(i.year()+12)+"",i.add(12,"y");l+="",e.find("td").html(l),n.eq(1).text(a.year()+1+"-"+i.year())}()}}function l(){var t,e,n;V&&(s(),n=V.find(".timepicker span[data-time-component]"),E||(t=V.find(".timepicker [data-action=togglePeriod]"),e=T.clone().add(12<=T.hours()?-12:12,"h"),t.text(T.format("A")),h(e,"h")?t.removeClass("disabled"):t.addClass("disabled")),n.filter("[data-time-component=hours]").text(T.format(E?"HH":"hh")),n.filter("[data-time-component=minutes]").text(T.format("mm")),n.filter("[data-time-component=seconds]").text(T.format("ss")),function(){var t=V.find(".timepicker-hours table"),e=P.clone().startOf("d"),n=[],i=J("");for(11"),n.push(i)),i.append('"),e.add(1,"h");t.empty().append(n)}(),function(){for(var t=V.find(".timepicker-minutes table"),e=P.clone().startOf("h"),n=[],i=J(""),r=1===m.stepping?5:m.stepping;P.isSame(e,"h");)e.minute()%(4*r)==0&&(i=J(""),n.push(i)),i.append('"),e.add(r,"m");t.empty().append(n)}(),function(){for(var t=V.find(".timepicker-seconds table"),e=P.clone().startOf("m"),n=[],i=J("");P.isSame(e,"m");)e.second()%20==0&&(i=J(""),n.push(i)),i.append('"),e.add(5,"s");t.empty().append(n)}())}function u(t){var e=$?null:T;if(!t)return $=!0,O.val(""),a.data("date",""),d({type:"dp.change",date:!1,oldDate:e}),void l();if(t=t.clone().locale(m.locale),n()&&t.tz(m.timeZone),1!==m.stepping)for(t.minutes(Math.round(t.minutes()/m.stepping)*m.stepping).seconds(0);m.minDate&&t.isBefore(m.minDate);)t.add(m.stepping,"minutes");h(t)?(P=(T=t).clone(),O.val(T.format(A)),a.data("date",T.format(A)),$=!1,l(),d({type:"dp.change",date:T.clone(),oldDate:e})):(m.keepInvalid?d({type:"dp.change",date:t,oldDate:e}):O.val($?"":T.format(A)),d({type:"dp.error",date:t,oldDate:e}))}function f(){var e=!1;return V&&(V.find(".collapse").each(function(){var t=J(this).data("collapse");return!t||!t.transitioning||!(e=!0)}),e||(L&&L.hasClass("btn")&&L.toggleClass("active"),V.hide(),J(window).off("resize",i),V.off("click","[data-action]"),V.off("mousedown",!1),V.remove(),V=!1,d({type:"dp.hide",date:T.clone()}),O.blur(),P=T.clone())),N}function t(){u(null)}function p(t){return void 0===m.parseInputDate?(!Q.isMoment(t)||t instanceof Date)&&(t=c(t)):t=m.parseInputDate(t),t}function b(t){return J(t.currentTarget).is(".disabled")||Z[J(t.currentTarget).data("action")].apply(N,arguments),!1}function w(){var t;return O.prop("disabled")||!m.ignoreReadonly&&O.prop("readonly")||V||(void 0!==O.val()&&0!==O.val().trim().length?u(p(O.val().trim())):$&&m.useCurrent&&(m.inline||O.is("input")&&0===O.val().trim().length)&&(t=c(),"string"==typeof m.useCurrent&&(t={year:function(t){return t.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(t){return t.date(1).hours(0).seconds(0).minutes(0)},day:function(t){return t.hours(0).seconds(0).minutes(0)},hour:function(t){return t.seconds(0).minutes(0)},minute:function(t){return t.seconds(0)}}[m.useCurrent](t)),u(t)),V=e(),function(){var t=J(""),e=P.clone().startOf("w").startOf("d");for(!0===m.calendarWeeks&&t.append(J("",k+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+=""),b&&!b.isBefore(e.firstDay)||this.linkedCalendars&&"left"!=t?k+="":k+='';var x=this.locale.monthNames[e[1][1].month()]+e[1][1].format(" YYYY");if(this.showDropdowns){for(var D=e[1][1].month(),S=e[1][1].year(),M=w&&w.year()||S+5,C=b&&b.year()||S-50,T=S==C,P=S==M,O='";for(var A='")}if(k+='",w&&!w.isAfter(e.lastDay)||this.linkedCalendars&&"right"!=t&&!this.singleDatePicker?k+="":k+='',k+="",k+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+='"),V.each(this.locale.daysOfWeek,function(t,e){k+=""}),k+="",k+="",k+="",null==this.endDate&&this.dateLimit){var R=this.startDate.clone().add(this.dateLimit).endOf("day");w&&!R.isBefore(w)||(w=R)}for(y=0;y<6;y++){k+="",this.showWeekNumbers?k+='":this.showISOWeekNumbers&&(k+='");for(v=0;v<7;v++){var Y=[];e[y][v].isSame(new Date,"day")&&Y.push("today"),5this.startDate&&e[y][v]'+e[y][v].date()+""}k+=""}k+="",k+="
    '+t.week()+"'+t.date()+"
    '+e.format(E?"HH":"hh")+"
    '+e.format("mm")+"
    '+e.format("ss")+"
    ").addClass("cw").text("#"));e.isBefore(P.clone().endOf("w"));)t.append(J("").addClass("dow").text(e.format("dd"))),e.add(1,"d");V.find(".datepicker-days thead").append(t)}(),function(){for(var t=[],e=P.clone().startOf("y").startOf("d");e.isSame(P,"y");)t.push(J("").attr("data-action","selectMonth").addClass("month").text(e.format("MMM"))),e.add(1,"M");V.find(".datepicker-months td").empty().append(t)}(),V.find(".timepicker-hours").hide(),V.find(".timepicker-minutes").hide(),V.find(".timepicker-seconds").hide(),l(),o(),J(window).on("resize",i),V.on("click","[data-action]",b),V.on("mousedown",!1),L&&L.hasClass("btn")&&L.toggleClass("active"),i(),V.show(),m.focusOnShow&&!O.is(":focus")&&O.focus(),d({type:"dp.show"})),N}function _(){return(V?f:w)()}function k(t){var e,n,i,r,a=null,o=[],s={},l=t.which;for(e in G[l]="p",G)G.hasOwnProperty(e)&&"p"===G[e]&&(o.push(e),parseInt(e,10)!==l&&(s[e]=!0));for(e in m.keyBinds)if(m.keyBinds.hasOwnProperty(e)&&"function"==typeof m.keyBinds[e]&&(i=e.split(" ")).length===o.length&&q[l]===i[i.length-1]){for(r=!0,n=i.length-2;0<=n;n--)if(!(q[i[n]]in s)){r=!1;break}if(r){a=m.keyBinds[e];break}}a&&(a.call(N,V),t.stopPropagation(),t.preventDefault())}function x(t){G[t.which]="r",t.stopPropagation(),t.preventDefault()}function D(t){var e=J(t.target).val().trim();return u(e?p(e):null),t.stopImmediatePropagation(),!1}function S(t){var e={};return J.each(t,function(){var t=p(this);t.isValid()&&(e[t.format("YYYY-MM-DD")]=!0)}),!!Object.keys(e).length&&e}function M(t){var e={};return J.each(t,function(){e[this]=!0}),!!Object.keys(e).length&&e}function C(){var t=m.format||"L LT";A=t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return(T.localeData().longDateFormat(t)||t).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return T.localeData().longDateFormat(t)||t})}),(I=m.extraFormats?m.extraFormats.slice():[]).indexOf(t)<0&&I.indexOf(A)<0&&I.push(A),E=A.toLowerCase().indexOf("a")<1&&A.replace(/\[.*?\]/g,"").indexOf("h")<1,g("y")&&(H=2),g("M")&&(H=1),g("d")&&(H=0),R=Math.max(H,R),$||u(T)}var T,P,O,E,A,I,R,Y,F,N={},$=!0,L=!1,V=!1,H=0,j=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],W=["days","months","years","decades"],U=["top","bottom","auto"],B=["left","right","auto"],z=["default","top","bottom"],q={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},G={},Z={next:function(){var t=j[R].navFnc;P.add(j[R].navStep,t),s(),r(t)},previous:function(){var t=j[R].navFnc;P.subtract(j[R].navStep,t),s(),r(t)},pickerSwitch:function(){o(1)},selectMonth:function(t){var e=J(t.target).closest("tbody").find("span").index(J(t.target));P.month(e),R===H?(u(T.clone().year(P.year()).month(P.month())),m.inline||f()):(o(-1),s()),r("M")},selectYear:function(t){var e=parseInt(J(t.target).text(),10)||0;P.year(e),R===H?(u(T.clone().year(P.year())),m.inline||f()):(o(-1),s()),r("YYYY")},selectDecade:function(t){var e=parseInt(J(t.target).data("selection"),10)||0;P.year(e),R===H?(u(T.clone().year(P.year())),m.inline||f()):(o(-1),s()),r("YYYY")},selectDay:function(t){var e=P.clone();J(t.target).is(".old")&&e.subtract(1,"M"),J(t.target).is(".new")&&e.add(1,"M"),u(e.date(parseInt(J(t.target).text(),10))),v()||m.keepOpen||m.inline||f()},incrementHours:function(){var t=T.clone().add(1,"h");h(t,"h")&&u(t)},incrementMinutes:function(){var t=T.clone().add(m.stepping,"m");h(t,"m")&&u(t)},incrementSeconds:function(){var t=T.clone().add(1,"s");h(t,"s")&&u(t)},decrementHours:function(){var t=T.clone().subtract(1,"h");h(t,"h")&&u(t)},decrementMinutes:function(){var t=T.clone().subtract(m.stepping,"m");h(t,"m")&&u(t)},decrementSeconds:function(){var t=T.clone().subtract(1,"s");h(t,"s")&&u(t)},togglePeriod:function(){u(T.clone().add(12<=T.hours()?-12:12,"h"))},togglePicker:function(t){var e,n=J(t.target),i=n.closest("ul"),r=i.find(".in"),a=i.find(".collapse:not(.in)");if(r&&r.length){if((e=r.data("collapse"))&&e.transitioning)return;r.collapse?(r.collapse("hide"),a.collapse("show")):(r.removeClass("in"),a.addClass("in")),n.is("span")?n.toggleClass(m.icons.time+" "+m.icons.date):n.find("span").toggleClass(m.icons.time+" "+m.icons.date)}},showPicker:function(){V.find(".timepicker > div:not(.timepicker-picker)").hide(),V.find(".timepicker .timepicker-picker").show()},showHours:function(){V.find(".timepicker .timepicker-picker").hide(),V.find(".timepicker .timepicker-hours").show()},showMinutes:function(){V.find(".timepicker .timepicker-picker").hide(),V.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){V.find(".timepicker .timepicker-picker").hide(),V.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var e=parseInt(J(t.target).text(),10);E||(12<=T.hours()?12!==e&&(e+=12):12===e&&(e=0)),u(T.clone().hours(e)),Z.showPicker.call(N)},selectMinute:function(t){u(T.clone().minutes(parseInt(J(t.target).text(),10))),Z.showPicker.call(N)},selectSecond:function(t){u(T.clone().seconds(parseInt(J(t.target).text(),10))),Z.showPicker.call(N)},clear:t,today:function(){var t=c();h(t,"d")&&u(t)},close:f};if(N.destroy=function(){f(),O.off({change:D,blur:blur,keydown:k,keyup:x,focus:m.allowInputToggle?f:""}),a.is("input")?O.off({focus:w}):L&&(L.off("click",_),L.off("mousedown",!1)),a.removeData("DateTimePicker"),a.removeData("date")},N.toggle=_,N.show=w,N.hide=f,N.disable=function(){return f(),L&&L.hasClass("btn")&&L.addClass("disabled"),O.prop("disabled",!0),N},N.enable=function(){return L&&L.hasClass("btn")&&L.removeClass("disabled"),O.prop("disabled",!1),N},N.ignoreReadonly=function(t){if(0===arguments.length)return m.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");return m.ignoreReadonly=t,N},N.options=function(t){if(0===arguments.length)return J.extend(!0,{},m);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return J.extend(!0,m,t),J.each(m,function(t,e){if(void 0===N[t])throw new TypeError("option "+t+" is not recognized!");N[t](e)}),N},N.date=function(t){if(0===arguments.length)return $?null:T.clone();if(!(null===t||"string"==typeof t||Q.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return u(null===t?null:p(t)),N},N.format=function(t){if(0===arguments.length)return m.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);return m.format=t,A&&C(),N},N.timeZone=function(t){if(0===arguments.length)return m.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");return m.timeZone=t,N},N.dayViewHeaderFormat=function(t){if(0===arguments.length)return m.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return m.dayViewHeaderFormat=t,N},N.extraFormats=function(t){if(0===arguments.length)return m.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return m.extraFormats=t,I&&C(),N},N.disabledDates=function(t){if(0===arguments.length)return m.disabledDates?J.extend({},m.disabledDates):m.disabledDates;if(!t)return m.disabledDates=!1,l(),N;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return m.disabledDates=S(t),m.enabledDates=!1,l(),N},N.enabledDates=function(t){if(0===arguments.length)return m.enabledDates?J.extend({},m.enabledDates):m.enabledDates;if(!t)return m.enabledDates=!1,l(),N;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return m.enabledDates=S(t),m.disabledDates=!1,l(),N},N.daysOfWeekDisabled=function(t){if(0===arguments.length)return m.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return m.daysOfWeekDisabled=!1,l(),N;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(m.daysOfWeekDisabled=t.reduce(function(t,e){return 6<(e=parseInt(e,10))||e<0||isNaN(e)||-1===t.indexOf(e)&&t.push(e),t},[]).sort(),m.useCurrent&&!m.keepInvalid){for(var e=0;!h(T,"d");){if(T.add(1,"d"),31===e)throw"Tried 31 times to find a valid date";e++}u(T)}return l(),N},N.maxDate=function(t){if(0===arguments.length)return m.maxDate?m.maxDate.clone():m.maxDate;if("boolean"==typeof t&&!1===t)return m.maxDate=!1,l(),N;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=c()));var e=p(t);if(!e.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+t);if(m.minDate&&e.isBefore(m.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+e.format(A));return m.maxDate=e,m.useCurrent&&!m.keepInvalid&&T.isAfter(t)&&u(m.maxDate),P.isAfter(e)&&(P=e.clone().subtract(m.stepping,"m")),l(),N},N.minDate=function(t){if(0===arguments.length)return m.minDate?m.minDate.clone():m.minDate;if("boolean"==typeof t&&!1===t)return m.minDate=!1,l(),N;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=c()));var e=p(t);if(!e.isValid())throw new TypeError("minDate() Could not parse date parameter: "+t);if(m.maxDate&&e.isAfter(m.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+e.format(A));return m.minDate=e,m.useCurrent&&!m.keepInvalid&&T.isBefore(t)&&u(m.minDate),P.isBefore(e)&&(P=e.clone().add(m.stepping,"m")),l(),N},N.defaultDate=function(t){if(0===arguments.length)return m.defaultDate?m.defaultDate.clone():m.defaultDate;if(!t)return m.defaultDate=!1,N;"string"==typeof t&&(t="now"===t||"moment"===t?c():c(t));var e=p(t);if(!e.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+t);if(!h(e))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return m.defaultDate=e,(m.defaultDate&&m.inline||""===O.val().trim())&&u(m.defaultDate),N},N.locale=function(t){if(0===arguments.length)return m.locale;if(!Q.localeData(t))throw new TypeError("locale() locale "+t+" is not loaded from moment locales!");return m.locale=t,T.locale(m.locale),P.locale(m.locale),A&&C(),V&&(f(),w()),N},N.stepping=function(t){return 0===arguments.length?m.stepping:(t=parseInt(t,10),(isNaN(t)||t<1)&&(t=1),m.stepping=t,N)},N.useCurrent=function(t){var e=["year","month","day","hour","minute"];if(0===arguments.length)return m.useCurrent;if("boolean"!=typeof t&&"string"!=typeof t)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof t&&-1===e.indexOf(t.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+e.join(", "));return m.useCurrent=t,N},N.collapse=function(t){if(0===arguments.length)return m.collapse;if("boolean"!=typeof t)throw new TypeError("collapse() expects a boolean parameter");return m.collapse===t||(m.collapse=t,V&&(f(),w())),N},N.icons=function(t){if(0===arguments.length)return J.extend({},m.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return J.extend(m.icons,t),V&&(f(),w()),N},N.tooltips=function(t){if(0===arguments.length)return J.extend({},m.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return J.extend(m.tooltips,t),V&&(f(),w()),N},N.useStrict=function(t){if(0===arguments.length)return m.useStrict;if("boolean"!=typeof t)throw new TypeError("useStrict() expects a boolean parameter");return m.useStrict=t,N},N.sideBySide=function(t){if(0===arguments.length)return m.sideBySide;if("boolean"!=typeof t)throw new TypeError("sideBySide() expects a boolean parameter");return m.sideBySide=t,V&&(f(),w()),N},N.viewMode=function(t){if(0===arguments.length)return m.viewMode;if("string"!=typeof t)throw new TypeError("viewMode() expects a string parameter");if(-1===W.indexOf(t))throw new TypeError("viewMode() parameter must be one of ("+W.join(", ")+") value");return m.viewMode=t,R=Math.max(W.indexOf(t),H),o(),N},N.toolbarPlacement=function(t){if(0===arguments.length)return m.toolbarPlacement;if("string"!=typeof t)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===z.indexOf(t))throw new TypeError("toolbarPlacement() parameter must be one of ("+z.join(", ")+") value");return m.toolbarPlacement=t,V&&(f(),w()),N},N.widgetPositioning=function(t){if(0===arguments.length)return J.extend({},m.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===B.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+B.join(", ")+")");m.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===U.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+U.join(", ")+")");m.widgetPositioning.vertical=t.vertical}return l(),N},N.calendarWeeks=function(t){if(0===arguments.length)return m.calendarWeeks;if("boolean"!=typeof t)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return m.calendarWeeks=t,l(),N},N.showTodayButton=function(t){if(0===arguments.length)return m.showTodayButton;if("boolean"!=typeof t)throw new TypeError("showTodayButton() expects a boolean parameter");return m.showTodayButton=t,V&&(f(),w()),N},N.showClear=function(t){if(0===arguments.length)return m.showClear;if("boolean"!=typeof t)throw new TypeError("showClear() expects a boolean parameter");return m.showClear=t,V&&(f(),w()),N},N.widgetParent=function(t){if(0===arguments.length)return m.widgetParent;if("string"==typeof t&&(t=J(t)),null!==t&&"string"!=typeof t&&!(t instanceof J))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return m.widgetParent=t,V&&(f(),w()),N},N.keepOpen=function(t){if(0===arguments.length)return m.keepOpen;if("boolean"!=typeof t)throw new TypeError("keepOpen() expects a boolean parameter");return m.keepOpen=t,N},N.focusOnShow=function(t){if(0===arguments.length)return m.focusOnShow;if("boolean"!=typeof t)throw new TypeError("focusOnShow() expects a boolean parameter");return m.focusOnShow=t,N},N.inline=function(t){if(0===arguments.length)return m.inline;if("boolean"!=typeof t)throw new TypeError("inline() expects a boolean parameter");return m.inline=t,N},N.clear=function(){return t(),N},N.keyBinds=function(t){return 0===arguments.length?m.keyBinds:(m.keyBinds=t,N)},N.getMoment=function(t){return c(t)},N.debug=function(t){if("boolean"!=typeof t)throw new TypeError("debug() expects a boolean parameter");return m.debug=t,N},N.allowInputToggle=function(t){if(0===arguments.length)return m.allowInputToggle;if("boolean"!=typeof t)throw new TypeError("allowInputToggle() expects a boolean parameter");return m.allowInputToggle=t,N},N.showClose=function(t){if(0===arguments.length)return m.showClose;if("boolean"!=typeof t)throw new TypeError("showClose() expects a boolean parameter");return m.showClose=t,N},N.keepInvalid=function(t){if(0===arguments.length)return m.keepInvalid;if("boolean"!=typeof t)throw new TypeError("keepInvalid() expects a boolean parameter");return m.keepInvalid=t,N},N.datepickerInput=function(t){if(0===arguments.length)return m.datepickerInput;if("string"!=typeof t)throw new TypeError("datepickerInput() expects a string parameter");return m.datepickerInput=t,N},N.parseInputDate=function(t){if(0===arguments.length)return m.parseInputDate;if("function"!=typeof t)throw new TypeError("parseInputDate() sholud be as function");return m.parseInputDate=t,N},N.disabledTimeIntervals=function(t){if(0===arguments.length)return m.disabledTimeIntervals?J.extend({},m.disabledTimeIntervals):m.disabledTimeIntervals;if(!t)return m.disabledTimeIntervals=!1,l(),N;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return m.disabledTimeIntervals=t,l(),N},N.disabledHours=function(t){if(0===arguments.length)return m.disabledHours?J.extend({},m.disabledHours):m.disabledHours;if(!t)return m.disabledHours=!1,l(),N;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(m.disabledHours=M(t),m.enabledHours=!1,m.useCurrent&&!m.keepInvalid){for(var e=0;!h(T,"h");){if(T.add(1,"h"),24===e)throw"Tried 24 times to find a valid date";e++}u(T)}return l(),N},N.enabledHours=function(t){if(0===arguments.length)return m.enabledHours?J.extend({},m.enabledHours):m.enabledHours;if(!t)return m.enabledHours=!1,l(),N;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(m.enabledHours=M(t),m.disabledHours=!1,m.useCurrent&&!m.keepInvalid){for(var e=0;!h(T,"h");){if(T.add(1,"h"),24===e)throw"Tried 24 times to find a valid date";e++}u(T)}return l(),N},N.viewDate=function(t){if(0===arguments.length)return P.clone();if(!t)return P=T.clone(),N;if(!("string"==typeof t||Q.isMoment(t)||t instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return P=p(t),r(),N},a.is("input"))O=a;else if(0===(O=a.find(m.datepickerInput)).length)O=a.find("input");else if(!O.is("input"))throw new Error('CSS class "'+m.datepickerInput+'" cannot be applied to non input element');if(a.hasClass("input-group")&&(L=0===a.find(".datepickerbutton").length?a.find(".input-group-addon"):a.find(".datepickerbutton")),!m.inline&&!O.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return T=c(),P=T.clone(),J.extend(!0,m,(F={},(Y=a.is("input")||m.inline?a.data():a.find("input").data()).dateOptions&&Y.dateOptions instanceof Object&&(F=J.extend(!0,F,Y.dateOptions)),J.each(m,function(t){var e="date"+t.charAt(0).toUpperCase()+t.slice(1);void 0!==Y[e]&&(F[t]=Y[e])}),F)),N.options(m),C(),O.on({change:D,blur:m.debug?"":f,keydown:k,keyup:x,focus:m.allowInputToggle?w:""}),a.is("input")?O.on({focus:w}):L&&(L.on("click",_),L.on("mousedown",!1)),O.prop("disabled")&&N.disable(),O.is("input")&&0!==O.val().trim().length?u(p(O.val().trim())):m.defaultDate&&void 0===O.attr("placeholder")&&u(m.defaultDate),m.inline&&w(),N}return J.fn.datetimepicker=function(n){n=n||{};var e,i=Array.prototype.slice.call(arguments,1),r=!0;if("object"==typeof n)return this.each(function(){var t,e=J(this);e.data("DateTimePicker")||(t=J.extend(!0,{},J.fn.datetimepicker.defaults,n),e.data("DateTimePicker",a(e,t)))});if("string"==typeof n)return this.each(function(){var t=J(this).data("DateTimePicker");if(!t)throw new Error('bootstrap-datetimepicker("'+n+'") method was called on an element that is not using DateTimePicker');e=t[n].apply(t,i),r=e===t}),r||-1=e&&f[e-1].open.resolve(),f.length||(d.remove(),d=null,g=c.defer())}))}function i(t,e,n,i){return angular.isObject(n)&&(i=n,n=null),function(i){var r=y();if(function(){var t=r.preventDuplicates&&i.message===p,e=r.preventOpenDuplicates&&m[i.message];if(t||e)return!0;return p=i.message,!(m[i.message]=!0)}())return;var e=function(){var t={toastId:h++,isOpened:!1,scope:l.$new(),open:c.defer()};t.iconClass=i.iconClass,i.optionsOverride&&(angular.extend(r,function(t){for(var e=["containerId","iconClasses","maxOpened","newestOnTop","positionClass","preventDuplicates","preventOpenDuplicates","templates"],n=0,i=e.length;n"),s.get("$compile")(n)(e)),t;var e,n}();if(f.push(e),r.autoDismiss&&r.maxOpened&&f.length>r.maxOpened)for(var t=f.slice(0,f.length-r.maxOpened),n=0,a=t.length;n")).attr("id",t.containerId),d.addClass(t.positionClass),d.css({"pointer-events":"auto"});var e=angular.element(document.querySelector(t.target));if(e&&e.length)return o.enter(d,e).then(function(){g.resolve()}),g.promise;throw"Target for toasts doesn't exist"})(r).then(function(){if(e.isOpened=!0,r.newestOnTop)o.enter(e.el,d).then(function(){e.scope.init()});else{var t=d[0].lastChild?angular.element(d[0].lastChild):null;o.enter(e.el,d,t).then(function(){e.scope.init()})}})}),e}({iconClass:t,message:e,optionsOverride:i,title:n})}function y(){return angular.extend({},r)}}angular.module("toastr",[]).factory("toastr",t),t.$inject=["$animate","$injector","$document","$rootScope","$sce","toastrConfig","$q"]}(),function(){"use strict";angular.module("toastr").constant("toastrConfig",{allowHtml:!1,autoDismiss:!1,closeButton:!1,closeHtml:"",containerId:"toast-container",extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},maxOpened:0,messageClass:"toast-message",newestOnTop:!0,onHidden:null,onShown:null,onTap:null,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,progressBar:!1,tapToDismiss:!0,target:"body",templates:{toast:"directives/toast/toast.html",progressbar:"directives/progressbar/progressbar.html"},timeOut:5e3,titleClass:"toast-title",toastClass:"toast"})}(),function(){"use strict";function t(t){return{require:"^toast",templateUrl:function(){return t.templates.progressbar},link:function(t,e,n,i){var r,a,o;function s(){var t=(o-(new Date).getTime())/a*100;e.css("width",t+"%")}(i.progressBar=t).start=function(t){r&&clearInterval(r),a=parseFloat(t),o=(new Date).getTime()+a,r=setInterval(s,10)},t.stop=function(){r&&clearInterval(r)},t.$on("$destroy",function(){clearInterval(r)})}}}angular.module("toastr").directive("progressBar",t),t.$inject=["toastrConfig"]}(),function(){"use strict";angular.module("toastr").controller("ToastController",function(){this.progressBar=null,this.startProgressBar=function(t){this.progressBar&&this.progressBar.start(t)},this.stopProgressBar=function(){this.progressBar&&this.progressBar.stop()}})}(),function(){"use strict";function t(l,u,t,c){return{templateUrl:function(){return t.templates.toast},controller:"ToastController",link:function(n,t,e,i){var r;if(n.toastClass=n.options.toastClass,n.titleClass=n.options.titleClass,n.messageClass=n.options.messageClass,n.progressBar=n.options.progressBar,n.options.closeHtml){var a=angular.element(n.options.closeHtml),o=l.get("$compile");a.addClass("toast-close-button"),a.attr("ng-click","close(true, $event)"),o(a)(n),t.children().prepend(a)}function s(t){return i.startProgressBar(t),u(function(){i.stopProgressBar(),c.remove(n.toastId)},t,1)}n.init=function(){n.options.timeOut&&(r=s(n.options.timeOut)),n.options.onShown&&n.options.onShown()},t.on("mouseenter",function(){n.progressBar=!1,i.stopProgressBar(),r&&u.cancel(r)}),n.tapToast=function(){angular.isFunction(n.options.onTap)&&n.options.onTap(),n.options.tapToDismiss&&n.close(!0)},n.close=function(t,e){e&&angular.isFunction(e.stopPropagation)&&e.stopPropagation(),c.remove(n.toastId,t)},n.refreshTimer=function(t){r&&(u.cancel(r),r=s(t||n.options.timeOut))},t.on("mouseleave",function(){0===n.options.timeOut&&0===n.options.extendedTimeOut||(n.$apply(function(){n.progressBar=n.options.progressBar}),r=s(n.options.extendedTimeOut))})}}}angular.module("toastr").directive("toast",t),t.$inject=["$injector","$interval","toastrConfig","toastr"]}(),angular.module("toastr").run(["$templateCache",function(t){t.put("directives/progressbar/progressbar.html",'
    \n'),t.put("directives/toast/toast.html",'
    \n
    \n
    {{title}}
    \n
    {{message}}
    \n
    \n
    \n
    \n \n
    \n')}]);var base64Module=angular.module("base64Module",[]);base64Module.factory("base64Service",["$log","$window",function(e,n){return{encode:function(t){return e.debug("base64Service.encode."),n.btoa(unescape(encodeURIComponent(t)))},decode:function(t){return e.debug("base64Service.decode."),decodeURIComponent(escape(n.atob(t)))}}}]),function(t,n){if("function"==typeof define&&define.amd)define(["moment","jquery"],function(t,e){return e.fn||(e.fn={}),n(t,e)});else if("object"==typeof module&&module.exports){var e="undefined"!=typeof window?window.jQuery:void 0;e||(e=require("jquery")).fn||(e.fn={});var i="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=n(i,e)}else t.daterangepicker=n(t.moment,t.jQuery)}(this,function(L,V){var i=function(t,e,n){if(this.parentEl="body",this.element=V(t),this.startDate=L().startOf("day"),this.endDate=L().endOf("day"),this.minDate=!1,this.maxDate=!1,this.dateLimit=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,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.applyClass="btn-success",this.cancelClass="btn-default",this.locale={direction:"ltr",format:L.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:L.weekdaysMin(),monthNames:L.monthsShort(),firstDay:L.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof e&&null!==e||(e={}),"string"==typeof(e=V.extend(this.element.data(),e)).template||e.template instanceof V||(e.template=''),this.parentEl=e.parentEl&&V(e.parentEl).length?V(e.parentEl):V(this.parentEl),this.container=V(e.template).appendTo(this.parentEl),"object"==typeof e.locale&&("string"==typeof e.locale.direction&&(this.locale.direction=e.locale.direction),"string"==typeof e.locale.format&&(this.locale.format=e.locale.format),"string"==typeof e.locale.separator&&(this.locale.separator=e.locale.separator),"object"==typeof e.locale.daysOfWeek&&(this.locale.daysOfWeek=e.locale.daysOfWeek.slice()),"object"==typeof e.locale.monthNames&&(this.locale.monthNames=e.locale.monthNames.slice()),"number"==typeof e.locale.firstDay&&(this.locale.firstDay=e.locale.firstDay),"string"==typeof e.locale.applyLabel&&(this.locale.applyLabel=e.locale.applyLabel),"string"==typeof e.locale.cancelLabel&&(this.locale.cancelLabel=e.locale.cancelLabel),"string"==typeof e.locale.weekLabel&&(this.locale.weekLabel=e.locale.weekLabel),"string"==typeof e.locale.customRangeLabel)){(d=document.createElement("textarea")).innerHTML=e.locale.customRangeLabel;var i=d.value;this.locale.customRangeLabel=i}if(this.container.addClass(this.locale.direction),"string"==typeof e.startDate&&(this.startDate=L(e.startDate,this.locale.format)),"string"==typeof e.endDate&&(this.endDate=L(e.endDate,this.locale.format)),"string"==typeof e.minDate&&(this.minDate=L(e.minDate,this.locale.format)),"string"==typeof e.maxDate&&(this.maxDate=L(e.maxDate,this.locale.format)),"object"==typeof e.startDate&&(this.startDate=L(e.startDate)),"object"==typeof e.endDate&&(this.endDate=L(e.endDate)),"object"==typeof e.minDate&&(this.minDate=L(e.minDate)),"object"==typeof e.maxDate&&(this.maxDate=L(e.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 e.applyClass&&(this.applyClass=e.applyClass),"string"==typeof e.cancelClass&&(this.cancelClass=e.cancelClass),"object"==typeof e.dateLimit&&(this.dateLimit=e.dateLimit),"string"==typeof e.opens&&(this.opens=e.opens),"string"==typeof e.drops&&(this.drops=e.drops),"boolean"==typeof e.showWeekNumbers&&(this.showWeekNumbers=e.showWeekNumbers),"boolean"==typeof e.showISOWeekNumbers&&(this.showISOWeekNumbers=e.showISOWeekNumbers),"string"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses),"object"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses.join(" ")),"boolean"==typeof e.showDropdowns&&(this.showDropdowns=e.showDropdowns),"boolean"==typeof e.showCustomRangeLabel&&(this.showCustomRangeLabel=e.showCustomRangeLabel),"boolean"==typeof e.singleDatePicker&&(this.singleDatePicker=e.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof e.timePicker&&(this.timePicker=e.timePicker),"boolean"==typeof e.timePickerSeconds&&(this.timePickerSeconds=e.timePickerSeconds),"number"==typeof e.timePickerIncrement&&(this.timePickerIncrement=e.timePickerIncrement),"boolean"==typeof e.timePicker24Hour&&(this.timePicker24Hour=e.timePicker24Hour),"boolean"==typeof e.autoApply&&(this.autoApply=e.autoApply),"boolean"==typeof e.autoUpdateInput&&(this.autoUpdateInput=e.autoUpdateInput),"boolean"==typeof e.linkedCalendars&&(this.linkedCalendars=e.linkedCalendars),"function"==typeof e.isInvalidDate&&(this.isInvalidDate=e.isInvalidDate),"function"==typeof e.isCustomDate&&(this.isCustomDate=e.isCustomDate),"boolean"==typeof e.alwaysShowCalendars&&(this.alwaysShowCalendars=e.alwaysShowCalendars),0!=this.locale.firstDay)for(var r=this.locale.firstDay;0'+s+"";this.showCustomRangeLabel&&(h+='
  • '+this.locale.customRangeLabel+"
  • "),h+="",this.container.find(".ranges").prepend(h)}"function"==typeof n&&(this.callback=n),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&&"object"!=typeof e.ranges?this.container.find(".ranges").hide():this.autoApply&&this.container.find(".applyBtn, .cancelBtn").addClass("hide"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".calendar.left").addClass("single"),this.container.find(".calendar.left").show(),this.container.find(".calendar.right").hide(),this.container.find(".daterangepicker_input input, .daterangepicker_input > i").hide(),this.timePicker?this.container.find(".ranges ul").hide():this.container.find(".ranges").hide()),(void 0===e.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),void 0!==e.ranges&&"right"==this.opens&&this.container.find(".ranges").prependTo(this.container.find(".calendar.left").parent()),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyClass.length&&this.container.find(".applyBtn").addClass(this.applyClass),this.cancelClass.length&&this.container.find(".cancelBtn").addClass(this.cancelClass),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".calendar").on("click.daterangepicker",".prev",V.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",V.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",V.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",V.proxy(this.hoverDate,this)).on("mouseleave.daterangepicker","td.available",V.proxy(this.updateFormInputs,this)).on("change.daterangepicker","select.yearselect",V.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",V.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",V.proxy(this.timeChanged,this)).on("click.daterangepicker",".daterangepicker_input input",V.proxy(this.showCalendars,this)).on("focus.daterangepicker",".daterangepicker_input input",V.proxy(this.formInputsFocused,this)).on("blur.daterangepicker",".daterangepicker_input input",V.proxy(this.formInputsBlurred,this)).on("change.daterangepicker",".daterangepicker_input input",V.proxy(this.formInputsChanged,this)).on("keydown.daterangepicker",".daterangepicker_input input",V.proxy(this.formInputsKeydown,this)),this.container.find(".ranges").on("click.daterangepicker","button.applyBtn",V.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",V.proxy(this.clickCancel,this)).on("click.daterangepicker","li",V.proxy(this.clickRange,this)).on("mouseenter.daterangepicker","li",V.proxy(this.hoverRange,this)).on("mouseleave.daterangepicker","li",V.proxy(this.updateFormInputs,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":V.proxy(this.show,this),"focus.daterangepicker":V.proxy(this.show,this),"keyup.daterangepicker":V.proxy(this.elementChanged,this),"keydown.daterangepicker":V.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",V.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",V.proxy(this.toggle,this))),this.element.is("input")&&!this.singleDatePicker&&this.autoUpdateInput?(this.element.val(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.element.trigger("change")):this.element.is("input")&&this.autoUpdateInput&&(this.element.val(this.startDate.format(this.locale.format)),this.element.trigger("change"))};return i.prototype={constructor:i,setStartDate:function(t){"string"==typeof t&&(this.startDate=L(t,this.locale.format)),"object"==typeof t&&(this.startDate=L(t)),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(t){"string"==typeof t&&(this.endDate=L(t,this.locale.format)),"object"==typeof t&&(this.endDate=L(t)),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.dateLimit&&this.startDate.clone().add(this.dateLimit).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.dateLimit)),this.previousRightTime=this.endDate.clone(),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('input[name="daterangepicker_end"]').removeClass("active"),this.container.find('input[name="daterangepicker_start"]').addClass("active")):(this.container.find('input[name="daterangepicker_end"]').addClass("active"),this.container.find('input[name="daterangepicker_start"]').removeClass("active")),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,i;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)"PM"===(i=this.container.find(".left .ampmselect").val())&&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)"PM"===(i=this.container.find(".right .ampmselect").val())&&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(t){var e,n=(e="left"==t?this.leftCalendar:this.rightCalendar).month.month(),i=e.month.year(),r=e.month.hour(),a=e.month.minute(),o=e.month.second(),s=L([i,n]).daysInMonth(),l=L([i,n,1]),u=L([i,n,s]),c=L(l).subtract(1,"month").month(),d=L(l).subtract(1,"month").year(),h=L([d,c]).daysInMonth(),f=l.day();(e=[]).firstDay=l,e.lastDay=u;for(var p=0;p<6;p++)e[p]=[];var m=h-f+this.locale.firstDay+1;h';k+="
    '+x+"
    '+this.locale.weekLabel+""+e+"
    '+e[y][0].week()+"'+e[y][0].isoWeek()+"
    ",this.container.find(".calendar."+t+" .calendar-table").html(k)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,n,i,r=this.maxDate;if(!this.dateLimit||this.maxDate&&!this.startDate.clone().add(this.dateLimit).isAfter(this.maxDate)||(r=this.startDate.clone().add(this.dateLimit)),"left"==t)n=this.startDate.clone(),i=this.minDate;else if("right"==t){n=this.endDate.clone(),i=this.startDate;var a=this.container.find(".calendar.right .calendar-time div");if(""!=a.html()&&(n.hour(a.find(".hourselect option:selected").val()||n.hour()),n.minute(a.find(".minuteselect option:selected").val()||n.minute()),n.second(a.find(".secondselect option:selected").val()||n.second()),!this.timePicker24Hour)){var o=a.find(".ampmselect option:selected").val();"PM"===o&&n.hour()<12&&n.hour(n.hour()+12),"AM"===o&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),r&&n.isAfter(r)&&(n=r.clone())}e=' ",e+=': ",this.timePickerSeconds){e+=': "}if(!this.timePicker24Hour){e+='"}this.container.find(".calendar."+t+" .calendar-time div").html(e)}},updateFormInputs:function(){this.container.find("input[name=daterangepicker_start]").is(":focus")||this.container.find("input[name=daterangepicker_end]").is(":focus")||(this.container.find("input[name=daterangepicker_start]").val(this.startDate.format(this.locale.format)),this.endDate&&this.container.find("input[name=daterangepicker_end]").val(this.endDate.format(this.locale.format)),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,e={top:0,left:0},n=V(window).width();this.parentEl.is("body")||(e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},n=this.parentEl[0].clientWidth+this.parentEl.offset().left),t="up"==this.drops?this.element.offset().top-this.container.outerHeight()-e.top:this.element.offset().top+this.element.outerHeight()-e.top,this.container["up"==this.drops?"addClass":"removeClass"]("dropup"),"left"==this.opens?(this.container.css({top:t,right:n-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-e.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-e.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>V(window).width()&&this.container.css({left:"auto",right:0}))},show:function(t){this.isShowing||(this._outsideClickProxy=V.proxy(function(t){this.outsideClick(t)},this),V(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),V(window).on("resize.daterangepicker",V.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,this.endDate,this.chosenLabel),this.updateElement(),V(document).off(".daterangepicker"),V(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 e=V(t.target);"focusin"==t.type||e.closest(this.element).length||e.closest(this.container).length||e.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)},hoverRange:function(t){if(!this.container.find("input[name=daterangepicker_start]").is(":focus")&&!this.container.find("input[name=daterangepicker_end]").is(":focus")){var e=t.target.getAttribute("data-range-key");if(e==this.locale.customRangeLabel)this.updateView();else{var n=this.ranges[e];this.container.find("input[name=daterangepicker_start]").val(n[0].format(this.locale.format)),this.container.find("input[name=daterangepicker_end]").val(n[1].format(this.locale.format))}}},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if((this.chosenLabel=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){V(t.target).parents(".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){V(t.target).parents(".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(V(t.target).hasClass("available")){var e=V(t.target).attr("data-title"),n=e.substr(1,1),i=e.substr(3,1),o=V(t.target).parents(".calendar").hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i];this.endDate&&!this.container.find("input[name=daterangepicker_start]").is(":focus")?this.container.find("input[name=daterangepicker_start]").val(o.format(this.locale.format)):this.endDate||this.container.find("input[name=daterangepicker_end]").is(":focus")||this.container.find("input[name=daterangepicker_end]").val(o.format(this.locale.format));var s=this.leftCalendar,l=this.rightCalendar,u=this.startDate;this.endDate||this.container.find(".calendar tbody td").each(function(t,e){if(!V(e).hasClass("week")){var n=V(e).attr("data-title"),i=n.substr(1,1),r=n.substr(3,1),a=V(e).parents(".calendar").hasClass("left")?s.calendar[i][r]:l.calendar[i][r];a.isAfter(u)&&a.isBefore(o)||a.isSame(o,"day")?V(e).addClass("in-range"):V(e).removeClass("in-range")}})}},clickDate:function(t){if(V(t.target).hasClass("available")){var e=V(t.target).attr("data-title"),n=e.substr(1,1),i=e.substr(3,1),r=V(t.target).parents(".calendar").hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i];if(this.endDate||r.isBefore(this.startDate,"day")){if(this.timePicker){var a=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".left .ampmselect").val())&&a<12&&(a+=12),"AM"===l&&12===a&&(a=0);var o=parseInt(this.container.find(".left .minuteselect").val(),10),s=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;r=r.clone().hour(a).minute(o).second(s)}this.endDate=null,this.setStartDate(r.clone())}else if(!this.endDate&&r.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var l;a=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".right .ampmselect").val())&&a<12&&(a+=12),"AM"===l&&12===a&&(a=0);o=parseInt(this.container.find(".right .minuteselect").val(),10),s=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;r=r.clone().hour(a).minute(o).second(s)}this.setEndDate(r.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").html();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").html();break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").html():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 e=V(t.target).closest(".calendar").hasClass("left"),n=e?"left":"right",i=this.container.find(".calendar."+n),r=parseInt(i.find(".monthselect").val(),10),a=i.find(".yearselect").val();e||(athis.maxDate.year()||a==this.maxDate.year()&&r>this.maxDate.month())&&(r=this.maxDate.month(),a=this.maxDate.year()),e?(this.leftCalendar.month.month(r).year(a),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(r).year(a),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var e=V(t.target).closest(".calendar"),n=e.hasClass("left"),i=parseInt(e.find(".hourselect").val(),10),r=parseInt(e.find(".minuteselect").val(),10),a=this.timePickerSeconds?parseInt(e.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var o=e.find(".ampmselect").val();"PM"===o&&i<12&&(i+=12),"AM"===o&&12===i&&(i=0)}if(n){var s=this.startDate.clone();s.hour(i),s.minute(r),s.second(a),this.setStartDate(s),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==s.format("YYYY-MM-DD")&&this.endDate.isBefore(s)&&this.setEndDate(s.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(i),l.minute(r),l.second(a),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},formInputsChanged:function(t){var e=V(t.target).closest(".calendar").hasClass("right"),n=L(this.container.find('input[name="daterangepicker_start"]').val(),this.locale.format),i=L(this.container.find('input[name="daterangepicker_end"]').val(),this.locale.format);n.isValid()&&i.isValid()&&(e&&i.isBefore(n)&&(n=i.clone()),this.setStartDate(n),this.setEndDate(i),e?this.container.find('input[name="daterangepicker_start"]').val(this.startDate.format(this.locale.format)):this.container.find('input[name="daterangepicker_end"]').val(this.endDate.format(this.locale.format))),this.updateView()},formInputsFocused:function(t){this.container.find('input[name="daterangepicker_start"], input[name="daterangepicker_end"]').removeClass("active"),V(t.target).addClass("active"),V(t.target).closest(".calendar").hasClass("right")&&(this.endDate=null,this.setStartDate(this.startDate.clone()),this.updateView())},formInputsBlurred:function(t){if(!this.endDate){var e=this.container.find('input[name="daterangepicker_end"]').val(),n=L(e,this.locale.format);n.isValid()&&(this.setEndDate(n),this.updateView())}},formInputsKeydown:function(t){13===t.keyCode&&(t.preventDefault(),this.formInputsChanged(t))},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),e=null,n=null;2===t.length&&(e=L(t[0],this.locale.format),n=L(t[1],this.locale.format)),(this.singleDatePicker||null===e||null===n)&&(n=e=L(this.element.val(),this.locale.format)),e.isValid()&&n.isValid()&&(this.setStartDate(e),this.setEndDate(n),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){this.element.is("input")&&!this.singleDatePicker&&this.autoUpdateInput?(this.element.val(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.element.trigger("change")):this.element.is("input")&&this.autoUpdateInput&&(this.element.val(this.startDate.format(this.locale.format)),this.element.trigger("change"))},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},V.fn.daterangepicker=function(t,e){var n=V.extend(!0,{},V.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=V(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,n,e))}),this},i}),function(){var t;(t=angular.module("daterangepicker",[])).constant("dateRangePickerConfig",{clearLabel:"Clear",locale:{separator:" - ",format:"YYYY-MM-DD"}}),t.directive("dateRangePicker",["$compile","$timeout","$parse","dateRangePickerConfig",function(t,e,n,y){return{require:"ngModel",restrict:"A",scope:{min:"=",max:"=",model:"=ngModel",opts:"=options",clearable:"="},link:function(r,t,a,o){var e,s,n,i,l,u,c,d,h,f,p,m,g,v;return i=function(){var t,e;return e=angular.extend.apply(angular,Array.prototype.slice.call(arguments).map(function(t){return null!=t?t.locale:void 0}).filter(function(t){return!!t})),(t=angular.extend.apply(angular,arguments)).locale=e,t},g=$(t),m=r.opts,v=i({},y,m),l=null,e=function(){return l.setStartDate(),l.setEndDate()},d=(u=function(e){return function(t){if(l&&t)return e(moment(t))}})(function(t){return l.endDatet&&l.setStartDate(t),v.endDate=t,l.setEndDate(t)}),p=(h=function(n){return function(t,e){return!t||!e||n(moment(t),moment(e))}})(function(t,e){return t.isBefore(e)||t.isSame(e,"day")}),f=h(function(t,e){return t.isAfter(e)||t.isSame(e,"day")}),o.$formatters.push(function(t){var e;return e=function(t){return moment.isMoment(t)?t.format(v.locale.format):moment(t).format(v.locale.format)},v.singleDatePicker&&t?e(t):t.startDate?[e(t.startDate),e(t.endDate)].join(v.locale.separator):""}),o.$render=function(){return o.$modelValue&&o.$modelValue.startDate?(d(o.$modelValue.startDate),c(o.$modelValue.endDate)):e(),g.val(o.$viewValue)},o.$parsers.push(function(t){var e,n,i;return e=function(t){return moment(t,v.locale.format)},n={startDate:null,endDate:null},angular.isString(t)&&0=i?n.apply(null,e):function(){return t(e.concat([].slice.apply(arguments)))}}(t)}function i(){var n=arguments,i=n.length-1;return function(){for(var t=i,e=n[i].apply(this,arguments);t--;)e=n[t].call(this,e);return e}}function r(){for(var t=[],e=0;ethis._limit&&e.shift(),t},t.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},t.prototype.clear=function(){var t=this._items;return this._items=[],t},t.prototype.size=function(){return this._items.length},t.prototype.remove=function(t){var e=this._items.indexOf(t);return-1 "+(this.valid()?"":"(X) ")+"'"+(r.isObject(e)?e.name:e)+"'"+c.toJson(n(this.params()))+" )"},l.diToken=l}();e.Transition=l},function(t,e,n){"use strict";function i(t){return t?"[ui-view#"+t.id+" tag in template from '"+(t.creationContext&&t.creationContext.name||"(root)")+"' state]: fqn: '"+t.fqn+"', name: '"+t.name+"@"+t.creationContext+"')":"ui-view (defunct)"}function r(t){return o.isNumber(t)?u[t]:u[u[t]]}var a,s=n(5),o=n(4),l=n(9);(a=e.Category||(e.Category={}))[a.RESOLVE=0]="RESOLVE",a[a.TRANSITION=1]="TRANSITION",a[a.HOOK=2]="HOOK",a[a.UIVIEW=3]="UIVIEW",a[a.VIEWCONFIG=4]="VIEWCONFIG";var u=e.Category,c=function(){function t(){this._enabled={},this.approximateDigests=0}return t.prototype._set=function(e,t){var n=this;t.length||(t=Object.keys(u).map(function(t){return parseInt(t,10)}).filter(function(t){return!isNaN(t)}).map(function(t){return u[t]})),t.map(r).forEach(function(t){return n._enabled[t]=e})},t.prototype.enable=function(){for(var t=[],e=0;e "+i)}},t.prototype.traceTransitionIgnored=function(t){if(this.enabled(u.TRANSITION)){var e=t&&t.$id,n=this.approximateDigests,i=l.stringify(t);console.log("Transition #"+e+" Digest #"+n+": Ignored <> "+i)}},t.prototype.traceHookInvocation=function(t,e){if(this.enabled(u.HOOK)){var n=s.parse("transition.$id")(e),i=this.approximateDigests,r=s.parse("traceData.hookType")(e)||"internal",a=s.parse("traceData.context.state.name")(e)||s.parse("traceData.context")(e)||"unknown",o=l.functionToString(t.eventHook.callback);console.log("Transition #"+n+" Digest #"+i+": Hook -> "+r+" context: "+a+", "+l.maxLength(200,o))}},t.prototype.traceHookResult=function(t,e){if(this.enabled(u.HOOK)){var n=s.parse("transition.$id")(e),i=this.approximateDigests,r=l.stringify(t);console.log("Transition #"+n+" Digest #"+i+": <- Hook returned: "+l.maxLength(200,r))}},t.prototype.traceResolvePath=function(t,e,n){if(this.enabled(u.RESOLVE)){var i=n&&n.$id,r=this.approximateDigests,a=t&&t.toString();console.log("Transition #"+i+" Digest #"+r+": Resolving "+a+" ("+e+")")}},t.prototype.traceResolvableResolved=function(t,e){if(this.enabled(u.RESOLVE)){var n=e&&e.$id,i=this.approximateDigests,r=t&&t.toString(),a=l.stringify(t.data);console.log("Transition #"+n+" Digest #"+i+": <- Resolved "+r+" to: "+l.maxLength(200,a))}},t.prototype.traceError=function(t,e){if(this.enabled(u.TRANSITION)){var n=e&&e.$id,i=this.approximateDigests,r=l.stringify(e);console.log("Transition #"+n+" Digest #"+i+": <- Rejected "+r+", reason: "+t)}},t.prototype.traceSuccess=function(t,e){if(this.enabled(u.TRANSITION)){var n=e&&e.$id,i=this.approximateDigests,r=t.name,a=l.stringify(e);console.log("Transition #"+n+" Digest #"+i+": <- Success "+a+", final state: "+r)}},t.prototype.traceUIViewEvent=function(t,e,n){void 0===n&&(n=""),this.enabled(u.UIVIEW)&&console.log("ui-view: "+l.padString(30,t)+" "+i(e)+n)},t.prototype.traceUIViewConfigUpdated=function(t,e){this.enabled(u.UIVIEW)&&this.traceUIViewEvent("Updating",t," with ViewConfig from context='"+e+"'")},t.prototype.traceUIViewFill=function(t,e){this.enabled(u.UIVIEW)&&this.traceUIViewEvent("Fill",t," with: "+l.maxLength(200,e))},t.prototype.traceViewServiceEvent=function(t,e){var n;this.enabled(u.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+("[ViewConfig#"+(n=e).$id+" from '"+(n.viewDecl.$context.name||"(root)")+"' state]: target ui-view: '"+n.viewDecl.$uiViewName+"@"+n.viewDecl.$uiViewContextAnchor+"'"))},t.prototype.traceViewServiceUIViewEvent=function(t,e){this.enabled(u.VIEWCONFIG)&&console.log("VIEWCONFIG: "+t+" "+i(e))},t}(),d=new(e.Trace=c);e.trace=d},function(t,e,n){"use strict";var a=n(3),o=n(9),s=n(4),l=n(5),i=n(12),u=n(6),c=n(10),r=n(14),d={async:!0,rejectIfSuperseded:!0,current:a.noop,transition:null,traceData:{},bind:null},h=function(){function t(t,e,n,i){var r=this;this.transition=t,this.stateContext=e,this.eventHook=n,this.options=i,this.isSuperseded=function(){return r.options.current()!==r.options.transition},this.options=a.defaults(i,d)}return t.prototype.invokeHook=function(){var t=this.options,e=this.eventHook;if(i.trace.traceHookInvocation(this,t),t.rejectIfSuperseded&&this.isSuperseded())return c.Rejection.superseded(t.current()).toPromise();var n=e._deregistered?void 0:e.callback.call(t.bind,this.transition,this.stateContext);return this.handleHookResult(n)},t.prototype.handleHookResult=function(t){return this.isSuperseded()?c.Rejection.superseded(this.options.current()).toPromise():s.isPromise(t)?t.then(this.handleHookResult.bind(this)):(i.trace.traceHookResult(t,this.options),!1===t?c.Rejection.aborted("Hook aborted transition").toPromise():l.is(r.TargetState)(t)?c.Rejection.redirected(t).toPromise():void 0)},t.prototype.toString=function(){var t=this.options,e=this.eventHook,n=l.parse("traceData.hookType")(t)||"internal",i=l.parse("traceData.context.state.name")(t)||l.parse("traceData.context")(t)||"unknown",r=o.fnToString(e.callback);return n+" context: "+i+", "+o.maxLength(200,r)},t.runSynchronousHooks=function(t,e){void 0===e&&(e=!1);for(var n=[],i=0;i Registering",t),this.viewConfigs.push(t)},t.prototype.registerUIView=function(e){i.trace.traceViewServiceUIViewEvent("-> Registering",e);var t=this.uiViews;return t.filter(function(t){return t.fqn===e.fqn}).length&&i.trace.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",e),t.push(e),this.sync(),function(){return-1===t.indexOf(e)?void i.trace.traceViewServiceUIViewEvent("Tried removing non-registered uiView",e):(i.trace.traceViewServiceUIViewEvent("<- Deregistering",e),void u.removeFrom(t)(e))}},t.prototype.available=function(){return this.uiViews.map(a.prop("fqn"))},t.prototype.active=function(){return this.uiViews.filter(a.prop("$config")).map(a.prop("name"))},t.normalizeUIViewTarget=function(t,e){void 0===e&&(e="");var n=e.split("@"),i=n[0]||"$default",r=o.isString(n[1])?n[1]:"^",a=/^(\^(?:\.\^)*)\.(.*$)/.exec(i);a&&(r=a[1],i=a[2]),"!"===i.charAt(0)&&(i=i.substr(1),r="");/^(\^(?:\.\^)*)$/.exec(r)&&(r=r.split(".").reduce(function(t,e){return t.parent},t).name);return{uiViewName:i,uiViewContextAnchor:r}},t}();e.ViewService=r},function(t,e,n){"use strict";var i=n(39),r=n(40),a=n(41),o=n(3),s=function(){function t(t,e){this.urlRouterProvider=e,this.states={},this.listeners=[],this.matcher=new i.StateMatcher(this.states),this.builder=new r.StateBuilder(this.matcher,t),this.stateQueue=new a.StateQueueManager(this.states,this.builder,e,this.listeners);(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null}return t.prototype.onStatesChanged=function(t){return this.listeners.push(t),function(){o.removeFrom(this.listeners)(t)}.bind(this)},t.prototype.root=function(){return this._root},t.prototype.register=function(t){return this.stateQueue.register(t)},t.prototype._deregisterTree=function(t){var e=this,n=this.get().map(function(t){return t.$$state()}),i=function(e){var t=n.filter(function(t){return-1!==e.indexOf(t.parent)});return 0===t.length?t:t.concat(i(t))},r=i([t]),a=[t].concat(r).reverse();return a.forEach(function(t){e.urlRouterProvider.removeRule(t._urlRule),delete e.states[t.name]}),a},t.prototype.deregister=function(t){var e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);var n=this._deregisterTree(e.$$state());return this.listeners.forEach(function(t){return t("deregistered",n.map(function(t){return t.self}))}),n},t.prototype.get=function(t,e){var n=this;if(0===arguments.length)return Object.keys(this.states).map(function(t){return n.states[t].self});var i=this.matcher.find(t,e);return i&&i.self||null},t.prototype.decorator=function(t,e){return this.builder.builder(t,e)},t}();e.StateRegistry=s},function(t,e,n){"use strict";var o=n(4),s=n(7),l=n(3),i=function(){function t(t){this._states=t}return t.prototype.isRelative=function(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")},t.prototype.find=function(t,e){if(t||""===t){var n=o.isString(t),i=n?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));var r=this._states[i];if(r&&(n||!(n||r!==t&&r.self!==t)))return r;if(n){var a=l.values(this._states).filter(function(t){return new s.Glob(t.name).matches(i)});return 1"}]}a.resolveAs=a.resolveAs||"$resolve",a.$type="ng1",a.$context=n,a.$name=t;var e=u.ViewService.normalizeUIViewTarget(a.$context,a.$name);a.$uiViewName=e.uiViewName,a.$uiViewContextAnchor=e.uiViewContextAnchor,o[t]=a}}),o};var p=function(t){return e=c.isObject(t.bindToController)?t.bindToController:t.scope,Object.keys(e||{}).map(function(t){return[t,/^([=<@])[?]?(.*)/.exec(e[t])]}).filter(function(t){return c.isDefined(t)&&c.isDefined(t[1])}).map(function(t){return{name:t[1][2]||t[0],type:t[1][1]}});var e},i=0,m=function(){function t(t,e){this.path=t,this.viewDecl=e,this.$id=i++,this.loaded=!1}return t.prototype.load=function(){var e=this,t=a.services.$q;if(!this.hasTemplate())throw new Error("No template configuration specified for '"+this.viewDecl.$uiViewName+"@"+this.viewDecl.$uiViewContextAnchor+"'");var n=new h.ResolveContext(this.path),i=this.path.reduce(function(t,e){return s.extend(t,e.paramValues)},{}),r={template:t.when(this.getTemplate(i,new d.TemplateFactory,n)),controller:t.when(this.getController(n))};return t.all(r).then(function(t){return o.trace.traceViewServiceEvent("Loaded",e),e.controller=t.controller,e.template=t.template,e})},t.prototype.hasTemplate=function(){return!!(this.viewDecl.template||this.viewDecl.templateUrl||this.viewDecl.templateProvider)},t.prototype.getTemplate=function(t,e,n){return e.fromConfig(this.viewDecl,t,n)},t.prototype.getController=function(t){var e=this.viewDecl.controllerProvider;if(!c.isInjectable(e))return this.viewDecl.controller;var n=a.services.$injector.annotate(e),i=c.isArray(e)?s.tail(e):e;return new r.Resolvable("",i,n).get(t)},t}();e.Ng1ViewConfig=m},function(t,e,n){"use strict";var a=n(4),o=n(6),s=n(3),l=n(19),i=function(){function t(){}return t.prototype.fromConfig=function(t,e,n){return a.isDefined(t.template)?this.fromString(t.template,e):a.isDefined(t.templateUrl)?this.fromUrl(t.templateUrl,e):a.isDefined(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},t.prototype.fromString=function(t,e){return a.isFunction(t)?t(e):t},t.prototype.fromUrl=function(t,e){return a.isFunction(t)&&(t=t(e)),null==t?null:o.services.template.get(t)},t.prototype.fromProvider=function(t,e,n){var i=o.services.$injector.annotate(t),r=a.isArray(t)?s.tail(t):t;return new l.Resolvable("",r,i).get(n)},t}();e.TemplateFactory=i},function(t,e){t.exports=n},function(t,e,n){"use strict";var i=n(4),r=n(3),a=function(){function n(t,e){this.stateRegistry=t,this.stateService=e,r.bindFunctions(n.prototype,this,this)}return n.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},n.prototype.state=function(t,e){return i.isObject(t)?e=t:e.name=t,this.stateRegistry.register(e),this},n.prototype.onInvalid=function(t){return this.stateService.onInvalid(t)},n}();e.StateProvider=a},function(t,e,n){"use strict";var r=n(6),a=n(53),o=n(17),s=n(3);e.getStateHookBuilder=function(n){return function(t,e){var i=t[n];return i?function(t,e){var n=new o.ResolveContext(t.treeChanges().to);return r.services.$injector.invoke(i,this,s.extend({$state$:e},a.getLocals(n)))}:void 0}}},function(t,e,n){"use strict";function v(t,e){var n,i=t.match(/^\s*({[^}]*})\s*$/);if(i&&(t=e+"("+i[1]+")"),!(n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function y(t){var e=t.parent().inheritedData("$uiView"),n=i.parse("$cfg.path")(e);return n?b.tail(n).state.name:void 0}function p(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function m(a,o,s,l,u){return function(t){var e=t.which||t.button,n=u();if(!(1