!function(n,t,i){"use strict";angular.module("mgcrea.ngStrap",["mgcrea.ngStrap.modal","mgcrea.ngStrap.aside","mgcrea.ngStrap.alert","mgcrea.ngStrap.button","mgcrea.ngStrap.select","mgcrea.ngStrap.datepicker","mgcrea.ngStrap.timepicker","mgcrea.ngStrap.navbar","mgcrea.ngStrap.tooltip","mgcrea.ngStrap.popover","mgcrea.ngStrap.dropdown","mgcrea.ngStrap.typeahead","mgcrea.ngStrap.scrollspy","mgcrea.ngStrap.affix","mgcrea.ngStrap.tab","mgcrea.ngStrap.collapse"]);angular.module("mgcrea.ngStrap.affix",["mgcrea.ngStrap.helpers.dimensions","mgcrea.ngStrap.helpers.debounce"]).provider("$affix",function(){var n=this.defaults={offsetTop:"auto",inlineStyles:!0};this.$get=["$window","debounce","dimensions",function(t,i,r){function f(f,o){function tt(n,t,i){var r=k(),u=d();return w>=r?"top":null!==n&&r+n<=t.top?"middle":null!==y&&t.top+i+v>=u-y?"bottom":"middle"}function k(){return c[0]===t?t.pageYOffset:c[0].scrollTop}function d(){return c[0]===t?t.document.body.scrollHeight:c[0].scrollHeight}var h={},s=angular.extend({},n,o),c=s.target,it="affix affix-top affix-bottom",a=!1,v=0,g=0,w=0,y=0,nt=null,p=null,l=f.parent(),b;if(s.offsetParent)if(s.offsetParent.match(/^\d+$/))for(b=0;b<1*s.offsetParent-1;b++)l=l.parent();else l=angular.element(s.offsetParent);return h.init=function(){this.$parseOffsets();g=r.offset(f[0]).top+v;a=!f[0].style.width;c.on("scroll",this.checkPosition);c.on("click",this.checkPositionWithEventLoop);u.on("resize",this.$debouncedOnResize);this.checkPosition();this.checkPositionWithEventLoop()},h.destroy=function(){c.off("scroll",this.checkPosition);c.off("click",this.checkPositionWithEventLoop);u.off("resize",this.$debouncedOnResize)},h.checkPositionWithEventLoop=function(){setTimeout(h.checkPosition,1)},h.checkPosition=function(){var u=k(),t=r.offset(f[0]),i=r.height(f[0]),n=tt(p,t,i);nt!==n&&(nt=n,f.removeClass(it).addClass("affix"+("middle"!==n?"-"+n:"")),"top"===n?(p=null,a&&f.css("width",""),s.inlineStyles&&(f.css("position",s.offsetParent?"":"relative"),f.css("top",""))):"bottom"===n?(p=s.offsetUnpin?-(1*s.offsetUnpin):t.top-u,a&&f.css("width",""),s.inlineStyles&&(f.css("position",s.offsetParent?"":"relative"),f.css("top",s.offsetParent?"":e[0].offsetHeight-y-i-g+"px"))):(p=null,a&&f.css("width",f[0].offsetWidth+"px"),s.inlineStyles&&(f.css("position","fixed"),f.css("top",v+"px"))))},h.$onResize=function(){h.$parseOffsets();h.checkPosition()},h.$debouncedOnResize=i(h.$onResize,50),h.$parseOffsets=function(){var n=f.css("position");s.inlineStyles&&f.css("position",s.offsetParent?"":"relative");s.offsetTop&&("auto"===s.offsetTop&&(s.offsetTop="+0"),s.offsetTop.match(/^[-+]\d+$/)?(v=1*-s.offsetTop,w=s.offsetParent?r.offset(l[0]).top+1*s.offsetTop:r.offset(f[0]).top-r.css(f[0],"marginTop",!0)+1*s.offsetTop):w=1*s.offsetTop);s.offsetBottom&&(y=s.offsetParent&&s.offsetBottom.match(/^[-+]\d+$/)?d()-(r.offset(l[0]).top+r.height(l[0]))+1*s.offsetBottom+1:1*s.offsetBottom);s.inlineStyles&&f.css("position",n)},h.init(),h}var e=angular.element(t.document.body),u=angular.element(t);return f}]}).directive("bsAffix",["$affix","$window",function(n,t){return{restrict:"EAC",require:"^?bsAffixTarget",link:function(i,r,u,f){var o={scope:i,target:f?f.$element:angular.element(t)},e;angular.forEach(["offsetTop","offsetBottom","offsetParent","offsetUnpin","inlineStyles"],function(n){if(angular.isDefined(u[n])){var t=u[n];/true/i.test(t)&&(t=!0);/false/i.test(t)&&(t=!1);o[n]=t}});e=n(r,o);i.$on("$destroy",function(){e&&e.destroy();o=null;e=null})}}}]).directive("bsAffixTarget",function(){return{controller:["$element",function(n){this.$element=n}]}});angular.module("mgcrea.ngStrap.aside",["mgcrea.ngStrap.modal"]).provider("$aside",function(){var n=this.defaults={animation:"am-fade-and-slide-right",prefixClass:"aside",prefixEvent:"aside",placement:"right",template:"aside/aside.tpl.html",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0};this.$get=["$modal",function(t){function i(i){var r=angular.extend({},n,i);return t(r)}return i}]}).directive("bsAside",["$window","$sce","$aside",function(n,t,i){return n.requestAnimationFrame||n.setTimeout,{restrict:"EAC",scope:!0,link:function(n,r,u){var e={scope:n,element:r,show:!1},f;angular.forEach(["template","contentTemplate","placement","backdrop","keyboard","html","container","animation"],function(n){angular.isDefined(u[n])&&(e[n]=u[n])});angular.forEach(["title","content"],function(i){u[i]&&u.$observe(i,function(r){n[i]=t.trustAsHtml(r)})});u.bsAside&&n.$watch(u.bsAside,function(t){angular.isObject(t)?angular.extend(n,t):n.content=t},!0);f=i(e);r.on(u.trigger||"click",f.toggle);n.$on("$destroy",function(){f&&f.destroy();e=null;f=null})}}}]);angular.module("mgcrea.ngStrap.alert",["mgcrea.ngStrap.modal"]).provider("$alert",function(){var n=this.defaults={animation:"am-fade",prefixClass:"alert",prefixEvent:"alert",placement:null,template:"alert/alert.tpl.html",container:!1,element:null,backdrop:!1,keyboard:!0,show:!0,duration:!1,type:!1,dismissable:!0};this.$get=["$modal","$timeout",function(t,i){function r(r){var u={},f=angular.extend({},n,r),e;return u=t(f),u.$scope.dismissable=!!f.dismissable,f.type&&(u.$scope.type=f.type),e=u.show,f.duration&&(u.show=function(){e();i(function(){u.hide()},1e3*f.duration)}),u}return r}]}).directive("bsAlert",["$window","$sce","$alert",function(n,t,i){return n.requestAnimationFrame||n.setTimeout,{restrict:"EAC",scope:!0,link:function(n,r,u){var e={scope:n,element:r,show:!1},f;angular.forEach(["template","placement","keyboard","html","container","animation","duration","dismissable"],function(n){angular.isDefined(u[n])&&(e[n]=u[n])});n.hasOwnProperty("title")||(n.title="");angular.forEach(["title","content","type"],function(i){u[i]&&u.$observe(i,function(r){n[i]=t.trustAsHtml(r)})});u.bsAlert&&n.$watch(u.bsAlert,function(t){angular.isObject(t)?angular.extend(n,t):n.content=t},!0);f=i(e);r.on(u.trigger||"click",f.toggle);n.$on("$destroy",function(){f&&f.destroy();e=null;f=null})}}}]);angular.module("mgcrea.ngStrap.button",[]).provider("$button",function(){var n=this.defaults={activeClass:"active",toggleEvent:"click"};this.$get=function(){return{defaults:n}}}).directive("bsCheckboxGroup",function(){return{restrict:"A",require:"ngModel",compile:function(n,t){n.attr("data-toggle","buttons");n.removeAttr("ng-model");var i=n[0].querySelectorAll('input[type="checkbox"]');angular.forEach(i,function(n){var i=angular.element(n);i.attr("bs-checkbox","");i.attr("ng-model",t.ngModel+"."+i.attr("value"))})}}}).directive("bsCheckbox",["$button","$$rAF",function(n,t){var r=n.defaults,i=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(n,u,f,e){var l=r,h="INPUT"===u[0].nodeName,a=h?u.parent():u,o=angular.isDefined(f.trueValue)?f.trueValue:!0,s,c;i.test(f.trueValue)&&(o=n.$eval(f.trueValue));s=angular.isDefined(f.falseValue)?f.falseValue:!1;i.test(f.falseValue)&&(s=n.$eval(f.falseValue));c="boolean"!=typeof o||"boolean"!=typeof s;c&&(e.$parsers.push(function(n){return n?o:s}),e.$formatters.push(function(n){return angular.equals(n,o)}),n.$watch(f.ngModel,function(){e.$render()}));e.$render=function(){var n=angular.equals(e.$modelValue,o);t(function(){h&&(u[0].checked=n);a.toggleClass(l.activeClass,n)})};u.bind(l.toggleEvent,function(){n.$apply(function(){h||e.$setViewValue(!a.hasClass("active"));c||e.$render()})})}}}]).directive("bsRadioGroup",function(){return{restrict:"A",require:"ngModel",compile:function(n,t){n.attr("data-toggle","buttons");n.removeAttr("ng-model");var i=n[0].querySelectorAll('input[type="radio"]');angular.forEach(i,function(n){angular.element(n).attr("bs-radio","");angular.element(n).attr("ng-model",t.ngModel)})}}}).directive("bsRadio",["$button","$$rAF",function(n,t){var i=n.defaults,r=/^(true|false|\d+)$/;return{restrict:"A",require:"ngModel",link:function(n,u,f,e){var o,s=i,h="INPUT"===u[0].nodeName,c=h?u.parent():u;f.$observe("value",function(t){o=r.test(t)?n.$eval(t):t;e.$render()});e.$render=function(){var n=angular.equals(e.$modelValue,o);t(function(){h&&(u[0].checked=n);c.toggleClass(s.activeClass,n)})};u.bind(s.toggleEvent,function(){n.$apply(function(){e.$setViewValue(o);e.$render()})})}}}]);angular.module("mgcrea.ngStrap.collapse",[]).provider("$collapse",function(){var n=this.defaults={animation:"am-collapse",disallowToggle:!1,activeClass:"in",startCollapsed:!1,allowMultiple:!1},t=this.controller=function(t,i,r){function o(n){for(var i=u.$targets.$active,t=0;t<i.length;t++)n<i[t]&&(i[t]=i[t]-1),i[t]===u.$targets.length&&(i[t]=u.$targets.length-1)}function s(n){var t=u.$targets.$active;return-1===t.indexOf(n)?!1:!0}function f(n){var t=u.$targets.$active.indexOf(n);-1!==t&&u.$targets.$active.splice(t,1)}function e(n){u.$options.allowMultiple||u.$targets.$active.splice(0,1);-1===u.$targets.$active.indexOf(n)&&u.$targets.$active.push(n)}var u=this;u.$options=angular.copy(n);angular.forEach(["animation","disallowToggle","activeClass","startCollapsed","allowMultiple"],function(n){angular.isDefined(r[n])&&(u.$options[n]=r[n])});u.$toggles=[];u.$targets=[];u.$viewChangeListeners=[];u.$registerToggle=function(n){u.$toggles.push(n)};u.$registerTarget=function(n){u.$targets.push(n)};u.$unregisterToggle=function(n){var t=u.$toggles.indexOf(n);u.$toggles.splice(t,1)};u.$unregisterTarget=function(n){var t=u.$targets.indexOf(n);u.$targets.splice(t,1);u.$options.allowMultiple&&f(n);o(t);u.$viewChangeListeners.forEach(function(n){n()})};u.$targets.$active=u.$options.startCollapsed?[]:[0];u.$setActive=t.$setActive=function(n){angular.isArray(n)?u.$targets.$active=angular.copy(n):u.$options.disallowToggle?e(n):s(n)?f(n):e(n);u.$viewChangeListeners.forEach(function(n){n()})};u.$activeIndexes=function(){return u.$options.allowMultiple?u.$targets.$active:1===u.$targets.$active.length?u.$targets.$active[0]:-1}};this.$get=function(){var i={};return i.defaults=n,i.controller=t,i}}).directive("bsCollapse",["$window","$animate","$collapse",function(n,t,i){return i.defaults,{require:["?ngModel","bsCollapse"],controller:["$scope","$element","$attrs",i.controller],link:function(n,t,i,r){var f=r[0],u=r[1];f&&(u.$viewChangeListeners.push(function(){f.$setViewValue(u.$activeIndexes())}),f.$formatters.push(function(n){if(angular.isArray(n))u.$setActive(n);else{var t=u.$activeIndexes();angular.isArray(t)?-1===t.indexOf(1*n)&&u.$setActive(1*n):t!==1*n&&u.$setActive(1*n)}return n}))}}}]).directive("bsCollapseToggle",function(){return{require:["^?ngModel","^bsCollapse"],link:function(n,t,i,r){var u=(r[0],r[1]);t.attr("data-toggle","collapse");u.$registerToggle(t);n.$on("$destroy",function(){u.$unregisterToggle(t)});t.on("click",function(){var r=i.bsCollapseToggle||u.$toggles.indexOf(t);u.$setActive(1*r);n.$apply()})}}}).directive("bsCollapseTarget",["$animate",function(n){return{require:["^?ngModel","^bsCollapse"],link:function(t,i,r,u){function e(){var u=f.$targets.indexOf(i),t=f.$activeIndexes(),r="removeClass";angular.isArray(t)?-1!==t.indexOf(u)&&(r="addClass"):u===t&&(r="addClass");n[r](i,f.$options.activeClass)}var f=(u[0],u[1]);i.addClass("collapse");f.$options.animation&&i.addClass(f.$options.animation);f.$registerTarget(i);t.$on("$destroy",function(){f.$unregisterTarget(i)});f.$viewChangeListeners.push(function(){e()});e()}}}]);angular.module("mgcrea.ngStrap.datepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$datepicker",function(){var n=this.defaults={animation:"am-fade",prefixClass:"datepicker",placement:"bottom-left",template:"datepicker/datepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!1,dateType:"date",dateFormat:"shortDate",timezone:null,modelDateFormat:null,dayFormat:"dd",monthFormat:"MMM",yearFormat:"yyyy",monthTitleFormat:"MMMM yyyy",yearTitleFormat:"yyyy",strictFormat:!1,autoclose:!1,minDate:-1/0,maxDate:1/0,startView:0,minView:0,startWeek:0,daysOfWeekDisabled:"",iconLeft:"glyphicon glyphicon-chevron-left",iconRight:"glyphicon glyphicon-chevron-right"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","datepickerViews","$tooltip","$timeout",function(t,i,r,u,f,e,o,s){function l(t,i,r){function g(n){n.selected=u.$isSelected(n.date)}function p(){t[0].focus()}var u=o(t,angular.extend({},n,r)),nt=r.scope,l=u.$options,f=u.$scope,y,v,a,w,b,k,d;return l.startView&&(l.startView-=l.minView),y=e(u),u.$views=y.views,v=y.viewDate,f.$mode=l.startView,f.$iconLeft=l.iconLeft,f.$iconRight=l.iconRight,a=u.$views[f.$mode],f.$select=function(n){u.select(n)},f.$selectPane=function(n){u.$selectPane(n)},f.$toggleMode=function(){u.setMode((f.$mode+1)%u.$views.length)},u.update=function(n){angular.isDate(n)&&!isNaN(n.getTime())&&(u.$date=n,a.update.call(a,n));u.$build(!0)},u.updateDisabledDates=function(n){l.disabledDateRanges=n;for(var t=0,i=f.rows.length;i>t;t++)angular.forEach(f.rows[t],u.$setDisabledEl)},u.select=function(n,t){angular.isDate(i.$dateValue)||(i.$dateValue=new Date(n));!f.$mode||t?(i.$setViewValue(angular.copy(n)),i.$render(),l.autoclose&&!t&&s(function(){u.hide(!0)})):(angular.extend(v,{year:n.getFullYear(),month:n.getMonth(),date:n.getDate()}),u.setMode(f.$mode-1),u.$build())},u.setMode=function(n){f.$mode=n;a=u.$views[f.$mode];u.$build()},u.$build=function(n){n===!0&&a.built||(n!==!1||a.built)&&a.build.call(a)},u.$updateSelected=function(){for(var n=0,t=f.rows.length;t>n;n++)angular.forEach(f.rows[n],g)},u.$isSelected=function(n){return a.isSelected(n)},u.$setDisabledEl=function(n){n.disabled=a.isDisabled(n.date)},u.$selectPane=function(n){var i=a.steps,t=new Date(Date.UTC(v.year+(i.year||0)*n,v.month+(i.month||0)*n,1));angular.extend(v,{year:t.getUTCFullYear(),month:t.getUTCMonth(),date:t.getUTCDate()});u.$build()},u.$onMouseDown=function(n){if(n.preventDefault(),n.stopPropagation(),h){var t=angular.element(n.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent());t.triggerHandler("click")}},u.$onKeyDown=function(n){if(/(38|37|39|40|13)/.test(n.keyCode)&&!n.shiftKey&&!n.altKey){if(n.preventDefault(),n.stopPropagation(),13===n.keyCode)return f.$mode?f.$apply(function(){u.setMode(f.$mode-1)}):u.hide(!0);a.onKeyDown(n);nt.$digest()}},w=u.init,u.init=function(){return c&&l.useNative?(t.prop("type","date"),void t.css("-webkit-appearance","textfield")):(h&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",p)),void w())},b=u.destroy,u.destroy=function(){c&&l.useNative&&t.off("click",p);b()},k=u.show,u.show=function(){k();s(function(){u.$isShown&&(u.$element.on(h?"touchstart":"mousedown",u.$onMouseDown),l.keyboard&&t.on("keydown",u.$onKeyDown))},0,!1)},d=u.hide,u.hide=function(n){u.$isShown&&(u.$element.off(h?"touchstart":"mousedown",u.$onMouseDown),l.keyboard&&t.off("keydown",u.$onKeyDown),d(n))},u}var c=(angular.element(t.document.body),/(ip(a|o)d|iphone|android)/gi.test(t.navigator.userAgent)),h="createTouch"in t.document&&c;return n.lang||(n.lang=f.getDefaultLocale()),l.defaults=n,l}]}).directive("bsDatepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$datepicker",function(n,t,i,r,u,f){var e=(f.defaults,/(ip(a|o)d|iphone|android)/gi.test(n.navigator.userAgent));return{restrict:"EAC",require:"ngModel",link:function(n,t,i,o){function l(n){return n&&n.length?n:null}function a(n){if(angular.isDate(n)){var t=isNaN(h.$options.minDate)||n.getTime()>=h.$options.minDate,i=isNaN(h.$options.maxDate)||n.getTime()<=h.$options.maxDate,r=t&&i;o.$setValidity("date",r);o.$setValidity("min",t);o.$setValidity("max",i);r&&(o.$dateValue=n)}}function v(){return!o.$dateValue||isNaN(o.$dateValue.getTime())?"":p(o.$dateValue,s.dateFormat)}var s={scope:n,controller:o},h;angular.forEach(["placement","container","delay","trigger","keyboard","html","animation","template","autoclose","dateType","dateFormat","timezone","modelDateFormat","dayFormat","strictFormat","startWeek","startDate","useNative","lang","startView","minView","iconLeft","iconRight","daysOfWeekDisabled","id"],function(n){angular.isDefined(i[n])&&(s[n]=i[n])});i.bsShow&&n.$watch(i.bsShow,function(n){h&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(datepicker),?/i)),n===!0?h.show():h.hide())});h=f(t,o,s);s=h.$options;e&&s.useNative&&(s.dateFormat="yyyy-MM-dd");var y=s.lang,p=function(n,t){return r.formatDate(n,t,y)},c=u({format:s.dateFormat,lang:y,strict:s.strictFormat});angular.forEach(["minDate","maxDate"],function(n){angular.isDefined(i[n])&&i.$observe(n,function(t){h.$options[n]=c.getDateForAttribute(n,t);!isNaN(h.$options[n])&&h.$build(!1);a(o.$dateValue)})});n.$watch(i.ngModel,function(){h.update(o.$dateValue)},!0);angular.isDefined(i.disabledDates)&&n.$watch(i.disabledDates,function(n,t){n=l(n);t=l(t);n&&h.updateDisabledDates(n)});o.$parsers.unshift(function(n){var t,i;return n?(i=c.parse(n,o.$dateValue),!i||isNaN(i.getTime())?void o.$setValidity("date",!1):(a(i),"string"===s.dateType?(t=c.timezoneOffsetAdjust(i,s.timezone,!0),p(t,s.modelDateFormat||s.dateFormat)):(t=c.timezoneOffsetAdjust(o.$dateValue,s.timezone,!0),"number"===s.dateType?t.getTime():"unix"===s.dateType?t.getTime()/1e3:"iso"===s.dateType?t.toISOString():new Date(t)))):(o.$setValidity("date",!0),null)});o.$formatters.push(function(n){var t;return t=angular.isUndefined(n)||null===n?NaN:angular.isDate(n)?n:"string"===s.dateType?c.parse(n,null,s.modelDateFormat):new Date("unix"===s.dateType?1e3*n:n),o.$dateValue=c.timezoneOffsetAdjust(t,s.timezone),v()});o.$render=function(){t.val(v())};n.$on("$destroy",function(){h&&h.destroy();s=null;h=null})}}}]).provider("datepickerViews",function(){function n(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i}function t(n,t){return(n%t+t)%t}this.defaults={dayFormat:"dd",daySplit:7};this.$get=["$dateFormatter","$dateParser","$sce",function(i,r,u){return function(f){var s=f.$scope,e=f.$options,c=e.lang,h=function(n,t){return i.formatDate(n,t,c)},l=r({format:e.dateFormat,lang:c,strict:e.strictFormat}),v=i.weekdaysShort(c),p=v.slice(e.startWeek).concat(v.slice(0,e.startWeek)),w=u.trustAsHtml('<th class="dow text-center">'+p.join('<\/th><th class="dow text-center">')+"<\/th>"),a=f.$date||(e.startDate?l.getDateForAttribute("startDate",e.startDate):new Date),o={year:a.getFullYear(),month:a.getMonth(),date:a.getDate()},y=[{format:e.dayFormat,split:7,steps:{month:1},update:function(n,t){!this.built||t||n.getFullYear()!==o.year||n.getMonth()!==o.month?(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$build()):n.getDate()!==o.date&&(o.date=f.$date.getDate(),f.$updateSelected())},build:function(){var u=new Date(o.year,o.month,1),v=u.getTimezoneOffset(),r=new Date(+u-864e5*t(u.getDay()-e.startWeek,7)),y=r.getTimezoneOffset(),p=l.timezoneOffsetAdjust(new Date,e.timezone).toDateString(),i,a,c;for(y!==v&&(r=new Date(+r+6e4*(y-v))),a=[],c=0;42>c;c++)i=l.daylightSavingAdjust(new Date(r.getFullYear(),r.getMonth(),r.getDate()+c)),a.push({date:i,isToday:i.toDateString()===p,label:h(i,this.format),selected:f.$date&&this.isSelected(i),muted:i.getMonth()!==o.month,disabled:this.isDisabled(i)});s.title=h(u,e.monthTitleFormat);s.showLabels=!0;s.labels=w;s.rows=n(a,this.split);this.built=!0},isSelected:function(n){return f.$date&&n.getFullYear()===f.$date.getFullYear()&&n.getMonth()===f.$date.getMonth()&&n.getDate()===f.$date.getDate()},isDisabled:function(n){var i=n.getTime(),t;if(i<e.minDate||i>e.maxDate||-1!==e.daysOfWeekDisabled.indexOf(n.getDay()))return!0;if(e.disabledDateRanges)for(t=0;t<e.disabledDateRanges.length;t++)if(i>=e.disabledDateRanges[t].start&&i<=e.disabledDateRanges[t].end)return!0;return!1},onKeyDown:function(n){if(f.$date){var t,i=f.$date.getTime();37===n.keyCode?t=new Date(i-864e5):38===n.keyCode?t=new Date(i-6048e5):39===n.keyCode?t=new Date(i+864e5):40===n.keyCode&&(t=new Date(i+6048e5));this.isDisabled(t)||f.select(t,!0)}}},{name:"month",format:e.monthFormat,split:4,steps:{year:1},update:function(n){this.built&&n.getFullYear()===o.year?n.getMonth()!==o.month&&(angular.extend(o,{month:f.$date.getMonth(),date:f.$date.getDate()}),f.$updateSelected()):(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$build())},build:function(){for(var t,r=(new Date(o.year,0,1),[]),i=0;12>i;i++)t=new Date(o.year,i,1),r.push({date:t,label:h(t,this.format),selected:f.$isSelected(t),disabled:this.isDisabled(t)});s.title=h(t,e.yearTitleFormat);s.showLabels=!1;s.rows=n(r,this.split);this.built=!0},isSelected:function(n){return f.$date&&n.getFullYear()===f.$date.getFullYear()&&n.getMonth()===f.$date.getMonth()},isDisabled:function(n){var t=+new Date(n.getFullYear(),n.getMonth()+1,0);return t<e.minDate||n.getTime()>e.maxDate},onKeyDown:function(n){if(f.$date){var i=f.$date.getMonth(),t=new Date(f.$date);37===n.keyCode?t.setMonth(i-1):38===n.keyCode?t.setMonth(i-4):39===n.keyCode?t.setMonth(i+1):40===n.keyCode&&t.setMonth(i+4);this.isDisabled(t)||f.select(t,!0)}}},{name:"year",format:e.yearFormat,split:4,steps:{year:12},update:function(n,t){!this.built||t||parseInt(n.getFullYear()/20,10)!==parseInt(o.year/20,10)?(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$build()):n.getFullYear()!==o.year&&(angular.extend(o,{year:f.$date.getFullYear(),month:f.$date.getMonth(),date:f.$date.getDate()}),f.$updateSelected())},build:function(){for(var t,u=o.year-o.year%(3*this.split),i=[],r=0;12>r;r++)t=new Date(u+r,0,1),i.push({date:t,label:h(t,this.format),selected:f.$isSelected(t),disabled:this.isDisabled(t)});s.title=i[0].label+"-"+i[i.length-1].label;s.showLabels=!1;s.rows=n(i,this.split);this.built=!0},isSelected:function(n){return f.$date&&n.getFullYear()===f.$date.getFullYear()},isDisabled:function(n){var t=+new Date(n.getFullYear()+1,0,0);return t<e.minDate||n.getTime()>e.maxDate},onKeyDown:function(n){if(f.$date){var i=f.$date.getFullYear(),t=new Date(f.$date);37===n.keyCode?t.setYear(i-1):38===n.keyCode?t.setYear(i-4):39===n.keyCode?t.setYear(i+1):40===n.keyCode&&t.setYear(i+4);this.isDisabled(t)||f.select(t,!0)}}}];return{views:e.minView?Array.prototype.slice.call(y,e.minView):y,viewDate:o}}}]});angular.module("mgcrea.ngStrap.dropdown",["mgcrea.ngStrap.tooltip"]).provider("$dropdown",function(){var n=this.defaults={animation:"am-fade",prefixClass:"dropdown",prefixEvent:"dropdown",placement:"bottom-left",template:"dropdown/dropdown.tpl.html",trigger:"click",container:!1,keyboard:!0,html:!1,delay:0};this.$get=["$window","$rootScope","$tooltip","$timeout",function(t,i,r,u){function o(t,o){function l(n){if(n.target!==t[0])return n.target!==t[0]&&s.hide()}var s={},h=angular.extend({},n,o),c,a,v,y;return s.$scope=h.scope&&h.scope.$new()||i.$new(),s=r(t,h),c=t.parent(),s.$onKeyDown=function(n){var i,t;/(38|40)/.test(n.keyCode)&&(n.preventDefault(),n.stopPropagation(),i=angular.element(s.$element[0].querySelectorAll("li:not(.divider) a")),i.length&&(angular.forEach(i,function(n,i){e&&e.call(n,":focus")&&(t=i)}),38===n.keyCode&&t>0?t--:40===n.keyCode&&t<i.length-1?t++:angular.isUndefined(t)&&(t=0),i.eq(t)[0].focus()))},a=s.show,s.show=function(){a();u(function(){h.keyboard&&s.$element.on("keydown",s.$onKeyDown);f.on("click",l)},0,!1);c.hasClass("dropdown")&&c.addClass("open")},v=s.hide,s.hide=function(){s.$isShown&&(h.keyboard&&s.$element.off("keydown",s.$onKeyDown),f.off("click",l),c.hasClass("dropdown")&&c.removeClass("open"),v())},y=s.destroy,s.destroy=function(){f.off("click",l);y()},s}var f=angular.element(t.document.body),e=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector;return o}]}).directive("bsDropdown",["$window","$sce","$dropdown",function(n,t,i){return{restrict:"EAC",scope:!0,link:function(n,t,r){var f={scope:n},u;angular.forEach(["placement","container","delay","trigger","keyboard","html","animation","template","id"],function(n){angular.isDefined(r[n])&&(f[n]=r[n])});r.bsDropdown&&n.$watch(r.bsDropdown,function(t){n.content=t},!0);r.bsShow&&n.$watch(r.bsShow,function(n){u&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(dropdown),?/i)),n===!0?u.show():u.hide())});u=i(t,f);n.$on("$destroy",function(){u&&u.destroy();f=null;u=null})}}}]);angular.module("mgcrea.ngStrap.helpers.dateFormatter",[]).service("$dateFormatter",["$locale","dateFilter",function(n,t){function i(n){return/(h+)([:\.])?(m+)[ ]?(a?)/i.exec(n).slice(1)}this.getDefaultLocale=function(){return n.id};this.getDatetimeFormat=function(t){return n.DATETIME_FORMATS[t]||t};this.weekdaysShort=function(){return n.DATETIME_FORMATS.SHORTDAY};this.hoursFormat=function(n){return i(n)[0]};this.minutesFormat=function(n){return i(n)[2]};this.timeSeparator=function(n){return i(n)[1]};this.showAM=function(n){return!!i(n)[3]};this.formatDate=function(n,i,r,u){return t(n,i,u)}}]);angular.module("mgcrea.ngStrap.helpers.dateParser",[]).provider("$dateParser",["$localeProvider",function(){function t(){this.year=1970;this.month=0;this.day=1;this.hours=0;this.minutes=0;this.seconds=0;this.milliseconds=0}function i(){}function r(n){return!isNaN(parseFloat(n))&&isFinite(n)}function u(n,t){for(var r=n.length,u=t.toString().toLowerCase(),i=0;r>i;i++)if(n[i].toLowerCase()===u)return i;return-1}t.prototype.setMilliseconds=function(n){this.milliseconds=n};t.prototype.setSeconds=function(n){this.seconds=n};t.prototype.setMinutes=function(n){this.minutes=n};t.prototype.setHours=function(n){this.hours=n};t.prototype.getHours=function(){return this.hours};t.prototype.setDate=function(n){this.day=n};t.prototype.setMonth=function(n){this.month=n};t.prototype.setFullYear=function(n){this.year=n};t.prototype.fromDate=function(n){return this.year=n.getFullYear(),this.month=n.getMonth(),this.day=n.getDate(),this.hours=n.getHours(),this.minutes=n.getMinutes(),this.seconds=n.getSeconds(),this.milliseconds=n.getMilliseconds(),this};t.prototype.toDate=function(){return new Date(this.year,this.month,this.day,this.hours,this.minutes,this.seconds,this.milliseconds)};var n=t.prototype,f=this.defaults={format:"shortDate",strict:!1};this.$get=["$locale","dateFilter",function(e,o){return function(s){function v(n){for(var i=Object.keys(a),r=[],u=[],e=n,f,t=0;t<i.length;t++)n.split(i[t]).length>1&&(f=e.search(i[t]),n=n.split(i[t]).join(""),a[i[t]]&&(r[f]=a[i[t]]));return angular.forEach(r,function(n){n&&u.push(n)}),u}function b(n){return n.replace(/\//g,"[\\/]").replace("/-/g","[-]").replace(/\./g,"[.]").replace(/\\s/g,"[\\s]")}function y(n){for(var r=Object.keys(w),i=n,t=0;t<r.length;t++)i=i.split(r[t]).join("${"+t+"}");for(t=0;t<r.length;t++)i=i.split("${"+t+"}").join("("+w[r[t]]+")");return n=b(n),new RegExp("^"+i+"$",["i"])}var l,p,c=angular.extend({},f,s),h={},w={sss:"[0-9]{3}",ss:"[0-5][0-9]",s:c.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",mm:"[0-5][0-9]",m:c.strict?"[1-5]?[0-9]":"[0-9]|[0-5][0-9]",HH:"[01][0-9]|2[0-3]",H:c.strict?"1?[0-9]|2[0-3]":"[01]?[0-9]|2[0-3]",hh:"[0][1-9]|[1][012]",h:c.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",a:"AM|PM",EEEE:e.DATETIME_FORMATS.DAY.join("|"),EEE:e.DATETIME_FORMATS.SHORTDAY.join("|"),dd:"0[1-9]|[12][0-9]|3[01]",d:c.strict?"[1-9]|[1-2][0-9]|3[01]":"0?[1-9]|[1-2][0-9]|3[01]",MMMM:e.DATETIME_FORMATS.MONTH.join("|"),MMM:e.DATETIME_FORMATS.SHORTMONTH.join("|"),MM:"0[1-9]|1[012]",M:c.strict?"[1-9]|1[012]":"0?[1-9]|1[012]",yyyy:"[1]{1}[0-9]{3}|[2]{1}[0-9]{3}",yy:"[0-9]{2}",y:c.strict?"-?(0|[1-9][0-9]{0,3})":"-?0*[0-9]{1,4}"},a={sss:n.setMilliseconds,ss:n.setSeconds,s:n.setSeconds,mm:n.setMinutes,m:n.setMinutes,HH:n.setHours,H:n.setHours,hh:n.setHours,h:n.setHours,EEEE:i,EEE:i,dd:n.setDate,d:n.setDate,a:function(n){var t=this.getHours()%12;return this.setHours(n.match(/pm/i)?t+12:t)},MMMM:function(n){return this.setMonth(u(e.DATETIME_FORMATS.MONTH,n))},MMM:function(n){return this.setMonth(u(e.DATETIME_FORMATS.SHORTMONTH,n))},MM:function(n){return this.setMonth(1*n-1)},M:function(n){return this.setMonth(1*n-1)},yyyy:n.setFullYear,yy:function(n){return this.setFullYear(2e3+1*n)},y:n.setFullYear};return h.init=function(){h.$format=e.DATETIME_FORMATS[c.format]||c.format;l=y(h.$format);p=v(h.$format)},h.isValid=function(n){return angular.isDate(n)?!isNaN(n.getTime()):l.test(n)},h.parse=function(n,i,r,u){var s,f,a;r&&(r=e.DATETIME_FORMATS[r]||r);angular.isDate(n)&&(n=o(n,r||h.$format,u));var b=r?y(r):l,w=r?v(r):p,c=b.exec(n);if(!c)return!1;for(s=(new t).fromDate(i&&!isNaN(i.getTime())?i:new Date(1970,0,1,0)),f=0;f<c.length-1;f++)w[f]&&w[f].call(s,c[f+1]);return a=s.toDate(),parseInt(s.day,10)!==a.getDate()?!1:a},h.getDateForAttribute=function(n,t){var u,i;return"today"===t?(i=new Date,u=new Date(i.getFullYear(),i.getMonth(),i.getDate()+("maxDate"===n?1:0),0,0,0,"minDate"===n?0:-1)):u=angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)):r(t)?new Date(parseInt(t,10)):angular.isString(t)&&0===t.length?"minDate"===n?-1/0:1/0:new Date(t),u},h.getTimeForAttribute=function(n,t){return"now"===t?(new Date).setFullYear(1970,0,1):angular.isString(t)&&t.match(/^".+"$/)?new Date(t.substr(1,t.length-2)).setFullYear(1970,0,1):r(t)?new Date(parseInt(t,10)).setFullYear(1970,0,1):angular.isString(t)&&0===t.length?"minTime"===n?-1/0:1/0:h.parse(t,new Date(1970,0,1,0))},h.daylightSavingAdjust=function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},h.timezoneOffsetAdjust=function(n,t,i){return n?(t&&"UTC"===t&&(n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+(i?-1:1)*n.getTimezoneOffset())),n):null},h.init(),h}}]}]);angular.module("mgcrea.ngStrap.helpers.debounce",[]).factory("debounce",["$timeout",function(n){return function(t,i,r){var u=null;return function(){var f=this,e=arguments,o=r&&!u;return u&&n.cancel(u),u=n(function(){u=null;r||t.apply(f,e)},i,!1),o&&t.apply(f,e),u}}}]).factory("throttle",["$timeout",function(n){return function(t,i,r){var u=null;return r||(r={}),function(){var f=this,e=arguments;u||(r.leading!==!1&&t.apply(f,e),u=n(function(){u=null;r.trailing!==!1&&t.apply(f,e)},i,!1))}}}]);angular.module("mgcrea.ngStrap.helpers.dimensions",[]).factory("dimensions",["$document","$window",function(){var t=(angular.element,{}),i=t.nodeName=function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},r;return t.css=function(t,i,r){var u;return u=t.currentStyle?t.currentStyle[i]:n.getComputedStyle?n.getComputedStyle(t)[i]:t.style[i],r===!0?parseFloat(u)||0:u},t.offset=function(t){var i=t.getBoundingClientRect(),r=t.ownerDocument;return{width:i.width||t.offsetWidth,height:i.height||t.offsetHeight,top:i.top+(n.pageYOffset||r.documentElement.scrollTop)-(r.documentElement.clientTop||0),left:i.left+(n.pageXOffset||r.documentElement.scrollLeft)-(r.documentElement.clientLeft||0)}},t.setOffset=function(n,i,r){var e,o,s,h,f,c,a,l=t.css(n,"position"),v=angular.element(n),u={};"static"===l&&(n.style.position="relative");f=t.offset(n);s=t.css(n,"top");c=t.css(n,"left");a=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1;a?(e=t.position(n),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);angular.isFunction(i)&&(i=i.call(n,r,f));null!==i.top&&(u.top=i.top-f.top+h);null!==i.left&&(u.left=i.left-f.left+o);"using"in i?i.using.call(v,u):v.css({top:u.top+"px",left:u.left+"px"})},t.position=function(n){var u,e,f={top:0,left:0};return"fixed"===t.css(n,"position")?e=n.getBoundingClientRect():(u=r(n),e=t.offset(n),i(u,"html")||(f=t.offset(u)),f.top+=t.css(u,"borderTopWidth",!0),f.left+=t.css(u,"borderLeftWidth",!0)),{width:n.offsetWidth,height:n.offsetHeight,top:e.top-f.top-t.css(n,"marginTop",!0),left:e.left-f.left-t.css(n,"marginLeft",!0)}},r=function(n){var u=n.ownerDocument,r=n.offsetParent||u;if(i(r,"#document"))return u.documentElement;for(;r&&!i(r,"html")&&"static"===t.css(r,"position");)r=r.offsetParent;return r||u.documentElement},t.height=function(n,i){var r=n.offsetHeight;return i?r+=t.css(n,"marginTop",!0)+t.css(n,"marginBottom",!0):r-=t.css(n,"paddingTop",!0)+t.css(n,"paddingBottom",!0)+t.css(n,"borderTopWidth",!0)+t.css(n,"borderBottomWidth",!0),r},t.width=function(n,i){var r=n.offsetWidth;return i?r+=t.css(n,"marginLeft",!0)+t.css(n,"marginRight",!0):r-=t.css(n,"paddingLeft",!0)+t.css(n,"paddingRight",!0)+t.css(n,"borderLeftWidth",!0)+t.css(n,"borderRightWidth",!0),r},t}]);angular.module("mgcrea.ngStrap.helpers.parseOptions",[]).provider("$parseOptions",function(){var n=this.defaults={regexp:/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/};this.$get=["$parse","$q",function(t,i){function r(r,u){function l(n,t){return n.map(function(n,i){var u,f,r={};return r[o]=n,u=s(t,r),f=h(t,r),{label:u,value:f,index:i}})}var e={},a=angular.extend({},n,u),f,s,o,v,y,h,c;return e.$values=[],e.init=function(){e.$match=f=r.match(a.regexp);s=t(f[2]||f[1]);o=f[4]||f[6];v=f[5];y=t(f[3]||"");h=t(f[2]?f[1]:o);c=t(f[7])},e.valuesFn=function(n,t){return i.when(c(n,t)).then(function(t){return e.$values=t?l(t,n):{},e.$values})},e.displayValue=function(n){var t={};return t[o]=n,s(t)},e.init(),e}return r}]});angular.version.minor<3&&angular.version.dot<14&&angular.module("ng").factory("$$rAF",["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]);angular.module("mgcrea.ngStrap.modal",["mgcrea.ngStrap.helpers.dimensions"]).provider("$modal",function(){var n=this.defaults={animation:"am-fade",backdropAnimation:"am-fade",prefixClass:"modal",prefixEvent:"modal",placement:"top",template:"modal/modal.tpl.html",contentTemplate:!1,container:!1,element:null,backdrop:!0,keyboard:!0,html:!1,show:!0};this.$get=["$window","$rootScope","$compile","$q","$templateCache","$http","$animate","$timeout","$sce","dimensions",function(i,r,u,f,e,o,s,h,c){function w(t){function w(){e.$emit(i.prefixEvent+".show",f)}function nt(){e.$emit(i.prefixEvent+".hide",f);l.removeClass(i.prefixClass+"-open");i.animation&&l.removeClass(i.prefixClass+"-with-"+i.animation)}function a(n){n.target===n.currentTarget&&("static"===i.backdrop?f.focus():f.hide())}function tt(n){n.preventDefault()}var f={},i=f.$options=angular.extend({},n,t),e,it,o,h;return f.$promise=p(i.template),e=f.$scope=i.scope&&i.scope.$new()||r.$new(),i.element||i.container||(i.container="body"),f.$id=i.id||i.element&&i.element.attr("id")||"",b(["title","content"],function(n){i[n]&&(e[n]=c.trustAsHtml(i[n]))}),e.$hide=function(){e.$$postDigest(function(){f.hide()})},e.$show=function(){e.$$postDigest(function(){f.show()})},e.$toggle=function(){e.$$postDigest(function(){f.toggle()})},f.$isShown=e.$isShown=!1,i.contentTemplate&&(f.$promise=f.$promise.then(function(n){var r=angular.element(n);return p(i.contentTemplate).then(function(n){var i=y('[ng-bind="content"]',r[0]).removeAttr("ng-bind").html(n);return t.template||i.next().remove(),r[0].outerHTML})})),h=angular.element('<div class="'+i.prefixClass+'-backdrop"/>'),h.css({position:"fixed",top:"0px",left:"0px",bottom:"0px",right:"0px","z-index":1038}),f.$promise.then(function(n){angular.isObject(n)&&(n=n.data);i.html&&(n=n.replace(g,'ng-bind-html="'));n=k.apply(n);it=u(n);f.init()}),f.init=function(){i.show&&e.$$postDigest(function(){f.show()})},f.destroy=function(){o&&(o.remove(),o=null);h&&(h.remove(),h=null);e.$destroy()},f.show=function(){var n,t,r,u;f.$isShown||(angular.isElement(i.container)?(n=i.container,t=i.container[0].lastChild?angular.element(i.container[0].lastChild):null):i.container?(n=y(i.container),t=n[0].lastChild?angular.element(n[0].lastChild):null):(n=null,t=i.element),o=f.$element=it(e,function(){}),e.$emit(i.prefixEvent+".show.before",f).defaultPrevented)||(o.css({display:"block"}).addClass(i.placement),i.animation&&(i.backdrop&&h.addClass(i.backdropAnimation),o.addClass(i.animation)),i.backdrop&&s.enter(h,l,null),r=s.enter(o,n,t,w),r&&r.then&&r.then(w),f.$isShown=e.$isShown=!0,v(e),u=o[0],d(function(){u.focus()}),l.addClass(i.prefixClass+"-open"),i.animation&&l.addClass(i.prefixClass+"-with-"+i.animation),i.backdrop&&(o.on("click",a),h.on("click",a),h.on("wheel",tt)),i.keyboard&&o.on("keyup",f.$onKeyUp))},f.hide=function(){if(f.$isShown&&!e.$emit(i.prefixEvent+".hide.before",f).defaultPrevented){var n=s.leave(o,nt);n&&n.then&&n.then(nt);i.backdrop&&s.leave(h);f.$isShown=e.$isShown=!1;v(e);i.backdrop&&(o.off("click",a),h.off("click",a),h.off("wheel",tt));i.keyboard&&o.off("keyup",f.$onKeyUp)}},f.toggle=function(){f.$isShown?f.hide():f.show()},f.focus=function(){o[0].focus()},f.$onKeyUp=function(n){27===n.which&&f.$isShown&&(f.hide(),n.stopPropagation())},f}function v(n){n.$$phase||n.$root&&n.$root.$$phase||n.$digest()}function y(n,i){return angular.element((i||t).querySelectorAll(n))}function p(n){return a[n]?a[n]:a[n]=o.get(n,{cache:e}).then(function(n){return n.data})}var b=angular.forEach,k=String.prototype.trim,d=i.requestAnimationFrame||i.setTimeout,l=angular.element(i.document.body),g=/ng-bind="/gi,a={};return w}]}).directive("bsModal",["$window","$sce","$modal",function(n,t,i){return{restrict:"EAC",scope:!0,link:function(n,r,u){var f={scope:n,element:r,show:!1},o,e;angular.forEach(["template","contentTemplate","placement","container","animation","id"],function(n){angular.isDefined(u[n])&&(f[n]=u[n])});o=/^(false|0|)$/;angular.forEach(["keyboard","html"],function(n){angular.isDefined(u[n])&&(f[n]=!o.test(u[n]))});angular.isDefined(u.backdrop)&&(f.backdrop=o.test(u.backdrop)?!1:u.backdrop);angular.forEach(["title","content"],function(i){u[i]&&u.$observe(i,function(r){n[i]=t.trustAsHtml(r)})});u.bsModal&&n.$watch(u.bsModal,function(t){angular.isObject(t)?angular.extend(n,t):n.content=t},!0);e=i(f);r.on(u.trigger||"click",e.toggle);n.$on("$destroy",function(){e&&e.destroy();f=null;e=null})}}}]);angular.module("mgcrea.ngStrap.navbar",[]).provider("$navbar",function(){var n=this.defaults={activeClass:"active",routeAttr:"data-match-route",strict:!1};this.$get=function(){return{defaults:n}}}).directive("bsNavbar",["$window","$location","$navbar",function(n,t,i){var r=i.defaults;return{restrict:"A",link:function(n,i,u){var f=angular.copy(r);angular.forEach(Object.keys(r),function(n){angular.isDefined(u[n])&&(f[n]=u[n])});n.$watch(function(){return t.path()},function(n){var t=i[0].querySelectorAll("li["+f.routeAttr+"]");angular.forEach(t,function(t){var i=angular.element(t),r=i.attr(f.routeAttr).replace("/","\\/"),u;f.strict&&(r="^"+r+"$");u=new RegExp(r,"i");u.test(n)?i.addClass(f.activeClass):i.removeClass(f.activeClass)})})}}}]);angular.module("mgcrea.ngStrap.popover",["mgcrea.ngStrap.tooltip"]).provider("$popover",function(){var n=this.defaults={animation:"am-fade",customClass:"",container:!1,target:!1,placement:"right",template:"popover/popover.tpl.html",contentTemplate:!1,trigger:"click",keyboard:!0,html:!1,title:"",content:"",delay:0,autoClose:!1};this.$get=["$tooltip",function(t){function i(i,r){var u=angular.extend({},n,r),f=t(i,u);return u.content&&(f.$scope.content=u.content),f}return i}]}).directive("bsPopover",["$window","$sce","$popover",function(n,t,i){var r=n.requestAnimationFrame||n.setTimeout;return{restrict:"EAC",scope:!0,link:function(n,u,f){var o={scope:n},e;angular.forEach(["template","contentTemplate","placement","container","target","delay","trigger","keyboard","html","animation","customClass","autoClose","id"],function(n){angular.isDefined(f[n])&&(o[n]=f[n])});angular.forEach(["title","content"],function(i){f[i]&&f.$observe(i,function(u,f){n[i]=t.trustAsHtml(u);angular.isDefined(f)&&r(function(){e&&e.$applyPlacement()})})});f.bsPopover&&n.$watch(f.bsPopover,function(t,i){angular.isObject(t)?angular.extend(n,t):n.content=t;angular.isDefined(i)&&r(function(){e&&e.$applyPlacement()})},!0);f.bsShow&&n.$watch(f.bsShow,function(n){e&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(popover),?/i)),n===!0?e.show():e.hide())});f.viewport&&n.$watch(f.viewport,function(n){e&&angular.isDefined(n)&&e.setViewport(n)});e=i(u,o);n.$on("$destroy",function(){e&&e.destroy();o=null;e=null})}}}]);angular.module("mgcrea.ngStrap.scrollspy",["mgcrea.ngStrap.helpers.debounce","mgcrea.ngStrap.helpers.dimensions"]).provider("$scrollspy",function(){var n=this.$$spies={},i=this.defaults={debounce:150,throttle:100,offset:100};this.$get=["$window","$document","$rootScope","dimensions","debounce","throttle",function(r,u,f,e,o,s){function h(n,t){return n[0].nodeName&&n[0].nodeName.toLowerCase()===t.toLowerCase()}function l(u){var p=angular.extend({},i,u);p.element||(p.element=v);var it=h(p.element,"body"),k=it?c:p.element,b=it?"window":p.id;if(n[b])return n[b].$$count++,n[b];var ut,ft,d,g,rt,nt,et,tt,l={},w=l.$trackedElements=[],y=[];return l.init=function(){this.$$count=1;g=o(this.checkPosition,p.debounce);rt=s(this.checkPosition,p.throttle);k.on("click",this.checkPositionWithEventLoop);c.on("resize",g);k.on("scroll",rt);nt=o(this.checkOffsets,p.debounce);ut=f.$on("$viewContentLoaded",nt);ft=f.$on("$includeContentLoaded",nt);nt();b&&(n[b]=l)},l.destroy=function(){this.$$count--;this.$$count>0||(k.off("click",this.checkPositionWithEventLoop),c.off("resize",g),k.off("scroll",rt),ut(),ft(),b&&delete n[b])},l.checkPosition=function(){if(y.length){if(tt=(it?r.pageYOffset:k.prop("scrollTop"))||0,et=Math.max(r.innerHeight,a.prop("clientHeight")),tt<y[0].offsetTop&&d!==y[0].target)return l.$activateElement(y[0]);for(var n=y.length;n--;)if(!angular.isUndefined(y[n].offsetTop)&&null!==y[n].offsetTop&&d!==y[n].target&&!(tt<y[n].offsetTop||y[n+1]&&tt>y[n+1].offsetTop))return l.$activateElement(y[n])}},l.checkPositionWithEventLoop=function(){setTimeout(l.checkPosition,1)},l.$activateElement=function(n){if(d){var t=l.$getTrackedElement(d);t&&(t.source.removeClass("active"),h(t.source,"li")&&h(t.source.parent().parent(),"li")&&t.source.parent().parent().removeClass("active"))}d=n.target;n.source.addClass("active");h(n.source,"li")&&h(n.source.parent().parent(),"li")&&n.source.parent().parent().addClass("active")},l.$getTrackedElement=function(n){return w.filter(function(t){return t.target===n})[0]},l.checkOffsets=function(){angular.forEach(w,function(n){var i=t.querySelector(n.target);n.offsetTop=i?e.offset(i).top:null;p.offset&&null!==n.offsetTop&&(n.offsetTop-=1*p.offset)});y=w.filter(function(n){return null!==n.offsetTop}).sort(function(n,t){return n.offsetTop-t.offsetTop});g()},l.trackElement=function(n,t){w.push({target:n,source:t})},l.untrackElement=function(n,t){for(var r,i=w.length;i--;)if(w[i].target===n&&w[i].source===t){r=i;break}w=w.splice(r,1)},l.activate=function(n){w[n].addClass("active")},l.init(),l}var c=angular.element(r),a=angular.element(u.prop("documentElement")),v=angular.element(r.document.body);return l}]}).directive("bsScrollspy",["$rootScope","debounce","dimensions","$scrollspy",function(n,t,i,r){return{restrict:"EAC",link:function(n,t,i){var f={scope:n},u;angular.forEach(["offset","target"],function(n){angular.isDefined(i[n])&&(f[n]=i[n])});u=r(f);u.trackElement(f.target,t);n.$on("$destroy",function(){u&&(u.untrackElement(f.target,t),u.destroy());f=null;u=null})}}}]).directive("bsScrollspyList",["$rootScope","debounce","dimensions","$scrollspy",function(){return{restrict:"A",compile:function(n){var t=n[0].querySelectorAll("li > a[href]");angular.forEach(t,function(n){var t=angular.element(n);t.parent().attr("bs-scrollspy","").attr("data-target",t.attr("href"))})}}}]);angular.module("mgcrea.ngStrap.select",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$select",function(){var n=this.defaults={animation:"am-fade",prefixClass:"select",prefixEvent:"$select",placement:"bottom-left",template:"select/select.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,multiple:!1,allNoneButtons:!1,sort:!0,caretHtml:'&nbsp;<span class="caret"><\/span>',placeholder:"Choose among the following...",allText:"All",noneText:"None",maxLength:3,maxLengthHtml:"selected",iconCheckmark:"glyphicon glyphicon-ok"};this.$get=["$window","$document","$rootScope","$tooltip","$timeout",function(t,i,r,u,f){function o(t,i,r){var s={},h=angular.extend({},n,r),o,c,l;return h.sort=h.sort.toString().match(/true|1/i),s=u(t,h),o=s.$scope,o.$matches=[],o.$activeIndex=-1,o.$isMultiple=h.multiple,o.$showAllNoneButtons=h.allNoneButtons&&h.multiple,o.$iconCheckmark=h.iconCheckmark,o.$allText=h.allText,o.$noneText=h.noneText,o.$activate=function(n){o.$$postDigest(function(){s.activate(n)})},o.$select=function(n){o.$$postDigest(function(){s.select(n)})},o.$isVisible=function(){return s.$isVisible()},o.$isActive=function(n){return s.$isActive(n)},o.$selectAll=function(){for(var n=0;n<o.$matches.length;n++)o.$isActive(n)||o.$select(n)},o.$selectNone=function(){for(var n=0;n<o.$matches.length;n++)o.$isActive(n)&&o.$select(n)},s.update=function(n){o.$matches=n;s.$updateActiveIndex()},s.activate=function(n){return h.multiple?(s.$isActive(n)?o.$activeIndex.splice(o.$activeIndex.indexOf(n),1):o.$activeIndex.push(n),h.sort&&o.$activeIndex.sort()):o.$activeIndex=n,o.$activeIndex},s.select=function(n){var t=o.$matches[n].value;o.$apply(function(){s.activate(n);h.multiple?i.$setViewValue(o.$activeIndex.map(function(n){return o.$matches[n].value})):(i.$setViewValue(t),s.hide())});o.$emit(h.prefixEvent+".select",t,n,s)},s.$updateActiveIndex=function(){i.$modelValue&&o.$matches.length?o.$activeIndex=h.multiple&&angular.isArray(i.$modelValue)?i.$modelValue.map(function(n){return s.$getIndex(n)}):s.$getIndex(i.$modelValue):o.$activeIndex>=o.$matches.length&&(o.$activeIndex=h.multiple?[]:0)},s.$isVisible=function(){return h.minLength&&i?o.$matches.length&&i.$viewValue.length>=h.minLength:o.$matches.length},s.$isActive=function(n){return h.multiple?-1!==o.$activeIndex.indexOf(n):o.$activeIndex===n},s.$getIndex=function(n){var i=o.$matches.length,t=i;if(i){for(t=i;t--&&o.$matches[t].value!==n;);if(!(0>t))return t}},s.$onMouseDown=function(n){if(n.preventDefault(),n.stopPropagation(),e){var t=angular.element(n.target);t.triggerHandler("click")}},s.$onKeyDown=function(n){if(/(9|13|38|40)/.test(n.keyCode))return(n.preventDefault(),n.stopPropagation(),h.multiple&&9===n.keyCode?s.hide():h.multiple||13!==n.keyCode&&9!==n.keyCode?void(h.multiple||(38===n.keyCode&&o.$activeIndex>0?o.$activeIndex--:38===n.keyCode&&o.$activeIndex<0?o.$activeIndex=o.$matches.length-1:40===n.keyCode&&o.$activeIndex<o.$matches.length-1?o.$activeIndex++:angular.isUndefined(o.$activeIndex)&&(o.$activeIndex=0),o.$digest())):s.select(o.$activeIndex))},c=s.show,s.show=function(){c();h.multiple&&s.$element.addClass("select-multiple");f(function(){s.$element.on(e?"touchstart":"mousedown",s.$onMouseDown);h.keyboard&&t.on("keydown",s.$onKeyDown)},0,!1)},l=s.hide,s.hide=function(){h.multiple||i.$modelValue||(o.$activeIndex=-1);s.$element.off(e?"touchstart":"mousedown",s.$onMouseDown);h.keyboard&&t.off("keydown",s.$onKeyDown);l(!0)},s}var s=(angular.element(t.document.body),/(ip(a|o)d|iphone|android)/gi.test(t.navigator.userAgent)),e="createTouch"in t.document&&s;return o.defaults=n,o}]}).directive("bsSelect",["$window","$parse","$q","$select","$parseOptions",function(n,t,i,r,u){var f=r.defaults;return{restrict:"EAC",require:"ngModel",link:function(n,t,i,e){var o={scope:n,placeholder:f.placeholder},h;(angular.forEach(["placement","container","delay","trigger","keyboard","html","animation","template","placeholder","multiple","allNoneButtons","maxLength","maxLengthHtml","allText","noneText","iconCheckmark","autoClose","id","sort","caretHtml"],function(n){angular.isDefined(i[n])&&(o[n]=i[n])}),"select"===t[0].nodeName.toLowerCase())&&(h=t,h.css("display","none"),t=angular.element('<button type="button" class="btn btn-default"><\/button>'),h.after(t));var c=u(i.bsOptions),s=r(t,e,o),l=c.$match[7].replace(/\|.+/,"").trim();n.$watch(l,function(){c.valuesFn(n,e).then(function(n){s.update(n);e.$render()})},!0);n.$watch(i.ngModel,function(){s.$updateActiveIndex();e.$render()},!0);e.$render=function(){var n,i;o.multiple&&angular.isArray(e.$modelValue)?(n=e.$modelValue.map(function(n){return i=s.$getIndex(n),angular.isDefined(i)?s.$scope.$matches[i].label:!1}).filter(angular.isDefined),n=n.length>(o.maxLength||f.maxLength)?n.length+" "+(o.maxLengthHtml||f.maxLengthHtml):n.join(", ")):(i=s.$getIndex(e.$modelValue),n=angular.isDefined(i)?s.$scope.$matches[i].label:!1);t.html((n?n:o.placeholder)+(o.caretHtml?o.caretHtml:f.caretHtml))};o.multiple&&(e.$isEmpty=function(n){return!n||0===n.length});n.$on("$destroy",function(){s&&s.destroy();o=null;s=null})}}}]);angular.module("mgcrea.ngStrap.tab",[]).provider("$tab",function(){var n=this.defaults={animation:"am-fade",template:"tab/tab.tpl.html",navClass:"nav-tabs",activeClass:"active"},t=this.controller=function(t,i,r){var u=this;u.$options=angular.copy(n);angular.forEach(["animation","navClass","activeClass"],function(n){angular.isDefined(r[n])&&(u.$options[n]=r[n])});t.$navClass=u.$options.navClass;t.$activeClass=u.$options.activeClass;u.$panes=t.$panes=[];u.$activePaneChangeListeners=u.$viewChangeListeners=[];u.$push=function(n){u.$panes.push(n)};u.$remove=function(n){var i=u.$panes.indexOf(n),t=u.$panes.$active;u.$panes.splice(i,1);t>i?t--:i===t&&t===u.$panes.length&&t--;u.$setActive(t)};u.$panes.$active=0;u.$setActive=t.$setActive=function(n){u.$panes.$active=n;u.$activePaneChangeListeners.forEach(function(n){n()})}};this.$get=function(){var i={};return i.defaults=n,i.controller=t,i}}).directive("bsTabs",["$window","$animate","$tab","$parse",function(n,t,i,r){var u=i.defaults;return{require:["?ngModel","bsTabs"],transclude:!0,scope:!0,controller:["$scope","$element","$attrs",i.controller],templateUrl:function(n,t){return t.template||u.template},link:function(n,t,i,u){var e=u[0],f=u[1],o;(e&&(console.warn("Usage of ngModel is deprecated, please use bsActivePane instead!"),f.$activePaneChangeListeners.push(function(){e.$setViewValue(f.$panes.$active)}),e.$formatters.push(function(n){return f.$setActive(1*n),n})),i.bsActivePane)&&(o=r(i.bsActivePane),f.$activePaneChangeListeners.push(function(){o.assign(n,f.$panes.$active)}),n.$watch(i.bsActivePane,function(n){f.$setActive(1*n)},!0))}}}]).directive("bsPane",["$window","$animate","$sce",function(n,t,i){return{require:["^?ngModel","^bsTabs"],scope:!0,link:function(n,r,u,f){function o(){var i=e.$panes.indexOf(n),u=e.$panes.$active;t[i===u?"addClass":"removeClass"](r,e.$options.activeClass)}var e=(f[0],f[1]);r.addClass("tab-pane");u.$observe("title",function(t){n.title=i.trustAsHtml(t)});e.$options.animation&&r.addClass(e.$options.animation);u.$observe("disabled",function(t){n.disabled=n.$eval(t)});e.$push(n);n.$on("$destroy",function(){e.$remove(n)});e.$activePaneChangeListeners.push(function(){o()});o()}}}]);angular.module("mgcrea.ngStrap.timepicker",["mgcrea.ngStrap.helpers.dateParser","mgcrea.ngStrap.helpers.dateFormatter","mgcrea.ngStrap.tooltip"]).provider("$timepicker",function(){var n=this.defaults={animation:"am-fade",prefixClass:"timepicker",placement:"bottom-left",template:"timepicker/timepicker.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,useNative:!0,timeType:"date",timeFormat:"shortTime",timezone:null,modelTimeFormat:null,autoclose:!1,minTime:-1/0,maxTime:1/0,length:5,hourStep:1,minuteStep:5,roundDisplay:!1,iconUp:"glyphicon glyphicon-chevron-up",iconDown:"glyphicon glyphicon-chevron-down",arrowBehavior:"pager"};this.$get=["$window","$document","$rootScope","$sce","$dateFormatter","$tooltip","$timeout",function(t,i,r,u,f,e,o){function c(t,i,r){function ft(n){var t=6e4*c.minuteStep;return new Date(Math.floor(n.getTime()/t)*t)}function et(n,i){if(t[0].createTextRange){var r=t[0].createTextRange();r.collapse(!0);r.moveStart("character",n);r.moveEnd("character",i);r.select()}else t[0].setSelectionRange?t[0].setSelectionRange(n,i):angular.isUndefined(t[0].selectionStart)&&(t[0].selectionStart=n,t[0].selectionEnd=i)}function d(){t[0].focus()}var u=e(t,angular.extend({},n,r)),ot=r.scope,c=u.$options,l=u.$scope,g=c.lang,y=function(n,t,i){return f.formatDate(n,t,g,i)},v=0,st=c.roundDisplay?ft(new Date):new Date,p=i.$dateValue||st,a={hour:p.getHours(),meridian:p.getHours()<12,minute:p.getMinutes(),second:p.getSeconds(),millisecond:p.getMilliseconds()},w=f.getDatetimeFormat(c.timeFormat,g),b=f.hoursFormat(w),ht=f.timeSeparator(w),k=f.minutesFormat(w),nt=f.showAM(w),tt,it,rt,ut;return l.$iconUp=c.iconUp,l.$iconDown=c.iconDown,l.$select=function(n,t){u.select(n,t)},l.$moveIndex=function(n,t){u.$moveIndex(n,t)},l.$switchMeridian=function(n){u.switchMeridian(n)},u.update=function(n){angular.isDate(n)&&!isNaN(n.getTime())?(u.$date=n,angular.extend(a,{hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),millisecond:n.getMilliseconds()}),u.$build()):u.$isBuilt||u.$build()},u.select=function(n,t,r){(!i.$dateValue||isNaN(i.$dateValue.getTime()))&&(i.$dateValue=new Date(1970,0,1));angular.isDate(n)||(n=new Date(n));0===t?i.$dateValue.setHours(n.getHours()):1===t&&i.$dateValue.setMinutes(n.getMinutes());i.$setViewValue(angular.copy(i.$dateValue));i.$render();c.autoclose&&!r&&o(function(){u.hide(!0)})},u.switchMeridian=function(n){if(i.$dateValue&&!isNaN(i.$dateValue.getTime())){var t=(n||i.$dateValue).getHours();i.$dateValue.setHours(12>t?t+12:t-12);i.$setViewValue(angular.copy(i.$dateValue));i.$render()}},u.$build=function(){for(var t,r=l.midIndex=parseInt(c.length/2,10),f=[],i,e,o,n=0;n<c.length;n++)t=new Date(1970,0,1,a.hour-(r-n)*c.hourStep),f.push({date:t,label:y(t,b),selected:u.$date&&u.$isSelected(t,0),disabled:u.$isDisabled(t,0)});for(e=[],n=0;n<c.length;n++)i=new Date(1970,0,1,0,a.minute-(r-n)*c.minuteStep),e.push({date:i,label:y(i,k),selected:u.$date&&u.$isSelected(i,1),disabled:u.$isDisabled(i,1)});for(o=[],n=0;n<c.length;n++)o.push([f[n],e[n]]);l.rows=o;l.showAM=nt;l.isAM=(u.$date||f[r].date).getHours()<12;l.timeSeparator=ht;u.$isBuilt=!0},u.$isSelected=function(n,t){return u.$date?0===t?n.getHours()===u.$date.getHours():1===t?n.getMinutes()===u.$date.getMinutes():void 0:!1},u.$isDisabled=function(n,t){var i;return 0===t?i=n.getTime()+6e4*a.minute:1===t&&(i=n.getTime()+36e5*a.hour),i<1*c.minTime||i>1*c.maxTime},l.$arrowAction=function(n,t){"picker"===c.arrowBehavior?u.$setTimeByStep(n,t):u.$moveIndex(n,t)},u.$setTimeByStep=function(n,t){var i=new Date(u.$date),r=i.getHours(),f=(y(i,b).length,i.getMinutes());y(i,k).length;0===t?i.setHours(r-parseInt(c.hourStep,10)*n):i.setMinutes(f-parseInt(c.minuteStep,10)*n);u.select(i,t,!0)},u.$moveIndex=function(n,t){var i;0===t?(i=new Date(1970,0,1,a.hour+n*c.length,a.minute),angular.extend(a,{hour:i.getHours()})):1===t&&(i=new Date(1970,0,1,a.hour,a.minute+n*c.length*c.minuteStep),angular.extend(a,{minute:i.getMinutes()}));u.$build()},u.$onMouseDown=function(n){if("input"!==n.target.nodeName.toLowerCase()&&n.preventDefault(),n.stopPropagation(),s){var t=angular.element(n.target);"button"!==t[0].nodeName.toLowerCase()&&(t=t.parent());t.triggerHandler("click")}},u.$onKeyDown=function(n){var r;if(/(38|37|39|40|13)/.test(n.keyCode)&&!n.shiftKey&&!n.altKey){if(n.preventDefault(),n.stopPropagation(),13===n.keyCode)return u.hide(!0);var t=new Date(u.$date),e=t.getHours(),i=y(t,b).length,o=t.getMinutes(),f=y(t,k).length,s=/(37|39)/.test(n.keyCode),h=2+1*nt;s&&(37===n.keyCode?v=1>v?h-1:v-1:39===n.keyCode&&(v=h-1>v?v+1:0));r=[0,i];0===v?(38===n.keyCode?t.setHours(e-parseInt(c.hourStep,10)):40===n.keyCode&&t.setHours(e+parseInt(c.hourStep,10)),i=y(t,b).length,r=[0,i]):1===v?(38===n.keyCode?t.setMinutes(o-parseInt(c.minuteStep,10)):40===n.keyCode&&t.setMinutes(o+parseInt(c.minuteStep,10)),f=y(t,k).length,r=[i+1,i+1+f]):2===v&&(s||u.switchMeridian(),r=[i+1+f+1,i+1+f+3]);u.select(t,v,!0);et(r[0],r[1]);ot.$digest()}},tt=u.init,u.init=function(){return h&&c.useNative?(t.prop("type","time"),void t.css("-webkit-appearance","textfield")):(s&&(t.prop("type","text"),t.attr("readonly","true"),t.on("click",d)),void tt())},it=u.destroy,u.destroy=function(){h&&c.useNative&&t.off("click",d);it()},rt=u.show,u.show=function(){rt();o(function(){u.$element.on(s?"touchstart":"mousedown",u.$onMouseDown);c.keyboard&&t.on("keydown",u.$onKeyDown)},0,!1)},ut=u.hide,u.hide=function(n){u.$isShown&&(u.$element.off(s?"touchstart":"mousedown",u.$onMouseDown),c.keyboard&&t.off("keydown",u.$onKeyDown),ut(n))},u}var h=(angular.element(t.document.body),/(ip(a|o)d|iphone|android)/gi.test(t.navigator.userAgent)),s="createTouch"in t.document&&h;return n.lang||(n.lang=f.getDefaultLocale()),c.defaults=n,c}]}).directive("bsTimepicker",["$window","$parse","$q","$dateFormatter","$dateParser","$timepicker",function(n,t,i,r,u,f){var e=f.defaults,o=/(ip(a|o)d|iphone|android)/gi.test(n.navigator.userAgent);return n.requestAnimationFrame||n.setTimeout,{restrict:"EAC",require:"ngModel",link:function(n,t,i,s){function a(n){if(angular.isDate(n)){var t=isNaN(h.minTime)||new Date(n.getTime()).setFullYear(1970,0,1)>=h.minTime,i=isNaN(h.maxTime)||new Date(n.getTime()).setFullYear(1970,0,1)<=h.maxTime,r=t&&i;s.$setValidity("date",r);s.$setValidity("min",t);s.$setValidity("max",i);r&&(s.$dateValue=n)}}function v(){return!s.$dateValue||isNaN(s.$dateValue.getTime())?"":w(s.$dateValue,h.timeFormat)}var h={scope:n,controller:s},y,c;angular.forEach(["placement","container","delay","trigger","keyboard","html","animation","template","autoclose","timeType","timeFormat","timezone","modelTimeFormat","useNative","hourStep","minuteStep","length","arrowBehavior","iconUp","iconDown","id"],function(n){angular.isDefined(i[n])&&(h[n]=i[n])});y=/^(false|0|)$/;angular.forEach(["roundDisplay"],function(n){angular.isDefined(i[n])&&(h[n]=!y.test(i[n]))});i.bsShow&&n.$watch(i.bsShow,function(n){c&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(timepicker),?/i)),n===!0?c.show():c.hide())});o&&(h.useNative||e.useNative)&&(h.timeFormat="HH:mm");c=f(t,s,h);h=c.$options;var p=h.lang,w=function(n,t,i){return r.formatDate(n,t,p,i)},l=u({format:h.timeFormat,lang:p});angular.forEach(["minTime","maxTime"],function(n){angular.isDefined(i[n])&&i.$observe(n,function(t){c.$options[n]=l.getTimeForAttribute(n,t);!isNaN(c.$options[n])&&c.$build();a(s.$dateValue)})});n.$watch(i.ngModel,function(){c.update(s.$dateValue)},!0);s.$parsers.unshift(function(n){var t,i;return n?(i=angular.isDate(n)?n:l.parse(n,s.$dateValue),!i||isNaN(i.getTime())?void s.$setValidity("date",!1):(a(i),"string"===h.timeType?(t=l.timezoneOffsetAdjust(i,h.timezone,!0),w(t,h.modelTimeFormat||h.timeFormat)):(t=l.timezoneOffsetAdjust(s.$dateValue,h.timezone,!0),"number"===h.timeType?t.getTime():"unix"===h.timeType?t.getTime()/1e3:"iso"===h.timeType?t.toISOString():new Date(t)))):(s.$setValidity("date",!0),null)});s.$formatters.push(function(n){var t;return t=angular.isUndefined(n)||null===n?NaN:angular.isDate(n)?n:"string"===h.timeType?l.parse(n,null,h.modelTimeFormat):new Date("unix"===h.timeType?1e3*n:n),s.$dateValue=l.timezoneOffsetAdjust(t,h.timezone),v()});s.$render=function(){t.val(v())};n.$on("$destroy",function(){c&&c.destroy();h=null;c=null})}}}]);angular.module("mgcrea.ngStrap.typeahead",["mgcrea.ngStrap.tooltip","mgcrea.ngStrap.helpers.parseOptions"]).provider("$typeahead",function(){var n=this.defaults={animation:"am-fade",prefixClass:"typeahead",prefixEvent:"$typeahead",placement:"bottom-left",template:"typeahead/typeahead.tpl.html",trigger:"focus",container:!1,keyboard:!0,html:!1,delay:0,minLength:1,filter:"filter",limit:6,autoSelect:!1,comparator:""};this.$get=["$window","$rootScope","$tooltip","$timeout",function(t,i,r,u){function f(t,i,f){var o={},s=angular.extend({},n,f),h,e,c,l;return o=r(t,s),h=f.scope,e=o.$scope,e.$resetMatches=function(){e.$matches=[];e.$activeIndex=s.autoSelect?0:-1},e.$resetMatches(),e.$activate=function(n){e.$$postDigest(function(){o.activate(n)})},e.$select=function(n){e.$$postDigest(function(){o.select(n)})},e.$isVisible=function(){return o.$isVisible()},o.update=function(n){e.$matches=n;e.$activeIndex>=n.length&&(e.$activeIndex=s.autoSelect?0:-1);/^(bottom|bottom-left|bottom-right)$/.test(s.placement)||u(o.$applyPlacement)},o.activate=function(n){e.$activeIndex=n},o.select=function(n){var t=e.$matches[n].value;i.$setViewValue(t);i.$render();e.$resetMatches();h&&h.$digest();e.$emit(s.prefixEvent+".select",t,n,o)},o.$isVisible=function(){return s.minLength&&i?e.$matches.length&&angular.isString(i.$viewValue)&&i.$viewValue.length>=s.minLength:!!e.$matches.length},o.$getIndex=function(n){var i=e.$matches.length,t=i;if(i){for(t=i;t--&&e.$matches[t].value!==n;);if(!(0>t))return t}},o.$onMouseDown=function(n){n.preventDefault();n.stopPropagation()},o.$onKeyDown=function(n){/(38|40|13)/.test(n.keyCode)&&(o.$isVisible()&&(n.preventDefault(),n.stopPropagation()),13===n.keyCode&&e.$matches.length?o.select(e.$activeIndex):38===n.keyCode&&e.$activeIndex>0?e.$activeIndex--:40===n.keyCode&&e.$activeIndex<e.$matches.length-1?e.$activeIndex++:angular.isUndefined(e.$activeIndex)&&(e.$activeIndex=0),e.$digest())},c=o.show,o.show=function(){c();u(function(){o.$element.on("mousedown",o.$onMouseDown);s.keyboard&&t.on("keydown",o.$onKeyDown)},0,!1)},l=o.hide,o.hide=function(){o.$element.off("mousedown",o.$onMouseDown);s.keyboard&&t.off("keydown",o.$onKeyDown);s.autoSelect||o.activate(-1);l()},o}return angular.element(t.document.body),f.defaults=n,f}]}).directive("bsTypeahead",["$window","$parse","$q","$typeahead","$parseOptions",function(n,t,r,u,f){var e=u.defaults;return{restrict:"EAC",require:"ngModel",link:function(n,t,r,o){var h={scope:n},c,s,p;angular.forEach(["placement","container","delay","trigger","keyboard","html","animation","template","filter","limit","minLength","watchOptions","selectMode","autoSelect","comparator","id"],function(n){angular.isDefined(r[n])&&(h[n]=r[n])});t.attr("autocomplete","off");var v=h.filter||e.filter,l=h.limit||e.limit,y=h.comparator||e.comparator,a=r.bsOptions;v&&(a+=" | "+v+":$viewValue");y&&(a+=":"+y);l&&(a+=" | limitTo:"+l);c=f(a);s=u(t,o,h);h.watchOptions&&(p=c.$match[7].replace(/\|.+/,"").replace(/\(.*\)/g,"").trim(),n.$watch(p,function(){c.valuesFn(n,o).then(function(n){s.update(n);o.$render()})},!0));n.$watch(r.ngModel,function(t){n.$modelValue=t;c.valuesFn(n,o).then(function(n){if(h.selectMode&&!n.length&&t.length>0)return void o.$setViewValue(o.$viewValue.substring(0,o.$viewValue.length-1));n.length>l&&(n=n.slice(0,l));var i=s.$isVisible();i&&s.update(n);(1!==n.length||n[0].value!==t)&&(!i&&s.update(n),o.$render())})});o.$formatters.push(function(n){var t=c.displayValue(n);return t===i?"":t});o.$render=function(){if(o.$isEmpty(o.$viewValue))return t.val("");var i=s.$getIndex(o.$modelValue),n=angular.isDefined(i)?s.$scope.$matches[i].label:o.$viewValue;n=angular.isObject(n)?c.displayValue(n):n;t.val(n?n.toString().replace(/<(?:.|\n)*?>/gm,"").trim():"")};n.$on("$destroy",function(){s&&s.destroy();h=null;s=null})}}}]);angular.module("mgcrea.ngStrap.tooltip",["mgcrea.ngStrap.helpers.dimensions"]).provider("$tooltip",function(){var n=this.defaults={animation:"am-fade",customClass:"",prefixClass:"tooltip",prefixEvent:"tooltip",container:!1,target:!1,placement:"top",template:"tooltip/tooltip.tpl.html",contentTemplate:!1,trigger:"hover focus",keyboard:!1,html:!1,show:!1,title:"",type:"",delay:0,autoClose:!1,bsEnabled:!0,viewport:{selector:"body",padding:0}};this.$get=["$window","$rootScope","$compile","$q","$templateCache","$http","$animate","$sce","dimensions","$$rAF","$timeout",function(i,r,u,f,e,o,s,h,c,l,a){function d(f,e){function ct(){tt.$emit(o.prefixEvent+".show",p)}function lt(){if(tt.$emit(o.prefixEvent+".hide",p),d===kt){if(bt&&"focus"===o.trigger)return f[0].blur();ht()}}function dt(){var n=o.trigger.split(" ");angular.forEach(n,function(n){"click"===n?f.on("click",p.toggle):"manual"!==n&&(f.on("hover"===n?"mouseenter":"focus",p.enter),f.on("hover"===n?"mouseleave":"blur",p.leave),"button"===pt&&"hover"!==n&&f.on(b?"touchstart":"mousedown",p.$onFocusElementMouseDown))})}function gt(){for(var n,t=o.trigger.split(" "),i=t.length;i--;)n=t[i],"click"===n?f.off("click",p.toggle):"manual"!==n&&(f.off("hover"===n?"mouseenter":"focus",p.enter),f.off("hover"===n?"mouseleave":"blur",p.leave),"button"===pt&&"hover"!==n&&f.off(b?"touchstart":"mousedown",p.$onFocusElementMouseDown))}function ni(){"focus"!==o.trigger?d.on("keyup",p.$onKeyUp):f.on("keyup",p.$onFocusKeyUp)}function at(){"focus"!==o.trigger?d.off("keyup",p.$onKeyUp):f.off("keyup",p.$onFocusKeyUp)}function ti(){a(function(){d.on("click",yt);k.on("click",p.hide);ot=!0},0,!1)}function vt(){ot&&(d.off("click",yt),k.off("click",p.hide),ot=!1)}function yt(n){n.stopPropagation()}function st(n){var h;n=n||o.target||f;var e=n[0],s="BODY"===e.tagName,r=e.getBoundingClientRect(),u={};for(h in r)u[h]=r[h];null===u.width&&(u=angular.extend({},u,{width:r.right-r.left,height:r.bottom-r.top}));var l=s?{top:0,left:0}:c.offset(e),a={scroll:s?t.documentElement.scrollTop||t.body.scrollTop:n.prop("scrollTop")||0},v=s?{width:t.documentElement.clientWidth,height:i.innerHeight}:null;return angular.extend({},u,a,v,l)}function ii(n,t,i,r){var u,f=n.split("-");switch(f[0]){case"right":u={top:t.top+t.height/2-r/2,left:t.left+t.width};break;case"bottom":u={top:t.top+t.height,left:t.left+t.width/2-i/2};break;case"left":u={top:t.top+t.height/2-r/2,left:t.left-i};break;default:u={top:t.top-r,left:t.left+t.width/2-i/2}}if(!f[1])return u;if("top"===f[0]||"bottom"===f[0])switch(f[1]){case"left":u.left=t.left;break;case"right":u.left=t.left+t.width-i}else if("left"===f[0]||"right"===f[0])switch(f[1]){case"top":u.top=t.top-r;break;case"bottom":u.top=t.top+t.height}return u}function ri(n,t){var i=d[0],l=i.offsetWidth,f=i.offsetHeight,e=parseInt(c.css(i,"margin-top"),10),o=parseInt(c.css(i,"margin-left"),10),s,u,r;if(isNaN(e)&&(e=0),isNaN(o)&&(o=0),n.top=n.top+e,n.left=n.left+o,c.setOffset(i,angular.extend({using:function(n){d.css({top:Math.round(n.top)+"px",left:Math.round(n.left)+"px"})}},n),0),s=i.offsetWidth,u=i.offsetHeight,("top"===t&&u!==f&&(n.top=n.top+f-u),!/top-left|top-right|bottom-left|bottom-right/.test(t))&&(r=ui(t,n,s,u),r.left?n.left+=r.left:n.top+=r.top,c.setOffset(i,n),/top|right|bottom|left/.test(t))){var h=/top|bottom/.test(t),a=h?2*r.left-l+s:2*r.top-f+u,v=h?"offsetWidth":"offsetHeight";fi(a,i[v],h)}}function ui(n,t,i,r){var f={top:0,left:0},a=o.viewport&&v(o.viewport.selector||o.viewport),e,u,s,h,c,l;return a?(e=o.viewport&&o.viewport.padding||0,u=st(a),/right|left/.test(n)?(s=t.top-e-u.scroll,h=t.top+e-u.scroll+r,s<u.top?f.top=u.top-s:h>u.top+u.height&&(f.top=u.top+u.height-h)):(c=t.left-e,l=t.left+e+i,c<u.left?f.left=u.left-c:l>u.width&&(f.left=u.left+u.width-l)),f):f}function fi(n,t,i){var r=v(".tooltip-arrow, .arrow",d[0]);r.css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")}function ht(){clearTimeout(ut);p.$isShown&&null!==d&&(o.autoClose&&vt(),o.keyboard&&at());ft&&(ft.$destroy(),ft=null);d&&(d.remove(),d=p.$element=null)}var p={},pt=f[0].nodeName.toLowerCase(),o=p.$options=angular.extend({},n,e),tt,rt,ut,et,wt,d,ei,it,ft,bt,kt,ot;return p.$promise=w(o.template),tt=p.$scope=o.scope&&o.scope.$new()||r.$new(),o.delay&&angular.isString(o.delay)&&(rt=o.delay.split(",").map(parseFloat),o.delay=rt.length>1?{show:rt[0],hide:rt[1]}:rt[0]),p.$id=o.id||f.attr("id")||"",o.title&&(tt.title=h.trustAsHtml(o.title)),tt.$setEnabled=function(n){tt.$$postDigest(function(){p.setEnabled(n)})},tt.$hide=function(){tt.$$postDigest(function(){p.hide()})},tt.$show=function(){tt.$$postDigest(function(){p.show()})},tt.$toggle=function(){tt.$$postDigest(function(){p.toggle()})},p.$isShown=tt.$isShown=!1,o.contentTemplate&&(p.$promise=p.$promise.then(function(n){var t=angular.element(n);return w(o.contentTemplate).then(function(n){var i=v('[ng-bind="content"]',t[0]);return i.length||(i=v('[ng-bind="title"]',t[0])),i.removeAttr("ng-bind").html(n),t[0].outerHTML})})),p.$promise.then(function(n){angular.isObject(n)&&(n=n.data);o.html&&(n=n.replace(nt,'ng-bind-html="'));n=g.apply(n);ei=n;wt=u(n);p.init()}),p.init=function(){o.delay&&angular.isNumber(o.delay)&&(o.delay={show:o.delay,hide:o.delay});"self"===o.container?it=f:angular.isElement(o.container)?it=o.container:o.container&&(it=v(o.container));dt();o.target&&(o.target=angular.isElement(o.target)?o.target:v(o.target));o.show&&tt.$$postDigest(function(){"focus"===o.trigger?f[0].focus():p.show()})},p.destroy=function(){gt();ht();tt.$destroy()},p.enter=function(){return clearTimeout(ut),et="in",o.delay&&o.delay.show?void(ut=setTimeout(function(){"in"===et&&p.show()},o.delay.show)):p.show()},p.show=function(){var t,n,i;o.bsEnabled&&!p.$isShown&&(tt.$emit(o.prefixEvent+".show.before",p),o.container?(t=it,n=it[0].lastChild?angular.element(it[0].lastChild):null):(t=null,n=f),d&&ht(),ft=p.$scope.$new(),d=p.$element=wt(ft,function(){}),d.css({top:"-9999px",left:"-9999px",display:"block",visibility:"hidden"}),o.animation&&d.addClass(o.animation),o.type&&d.addClass(o.prefixClass+"-"+o.type),o.customClass&&d.addClass(o.customClass),n?n.after(d):t.prepend(d),p.$isShown=tt.$isShown=!0,y(tt),p.$applyPlacement(),i=s.enter(d,t,n,ct),i&&i.then&&i.then(ct),y(tt),l(function(){d&&d.css({visibility:"visible"})}),o.keyboard&&("focus"!==o.trigger&&p.focus(),ni()),o.autoClose&&ti())},p.leave=function(){return clearTimeout(ut),et="out",o.delay&&o.delay.hide?void(ut=setTimeout(function(){"out"===et&&p.hide()},o.delay.hide)):p.hide()},p.hide=function(n){if(p.$isShown){tt.$emit(o.prefixEvent+".hide.before",p);bt=n;kt=d;var t=s.leave(d,lt);t&&t.then&&t.then(lt);p.$isShown=tt.$isShown=!1;y(tt);o.keyboard&&null!==d&&at();o.autoClose&&null!==d&&vt()}},p.toggle=function(){p.$isShown?p.leave():p.enter()},p.focus=function(){d[0].focus()},p.setEnabled=function(n){o.bsEnabled=n},p.setViewport=function(n){o.viewport=n},p.$applyPlacement=function(){var l;if(d){var t=o.placement,h=/\s?auto?\s?/i,c=h.test(t);c&&(t=t.replace(h,"")||n.placement);d.addClass(o.placement);var r=st(),e=d.prop("offsetWidth"),s=d.prop("offsetHeight");if(c){var i=t,a=o.container?v(o.container):f.parent(),u=st(a);i.indexOf("bottom")>=0&&r.bottom+s>u.bottom?t=i.replace("bottom","top"):i.indexOf("top")>=0&&r.top-s<u.top&&(t=i.replace("top","bottom"));("right"===i||"bottom-left"===i||"top-left"===i)&&r.right+e>u.width?t="right"===i?"left":t.replace("left","right"):("left"===i||"bottom-right"===i||"top-right"===i)&&r.left-e<u.left&&(t="left"===i?"right":t.replace("right","left"));d.removeClass(i).addClass(t)}l=ii(t,r,e,s);ri(l,t)}},p.$onKeyUp=function(n){27===n.which&&p.$isShown&&(p.hide(),n.stopPropagation())},p.$onFocusKeyUp=function(n){27===n.which&&(f[0].blur(),n.stopPropagation())},p.$onFocusElementMouseDown=function(n){n.preventDefault();n.stopPropagation();p.$isShown?f[0].blur():f[0].focus()},ot=!1,p}function y(n){n.$$phase||n.$root&&n.$root.$$phase||n.$digest()}function v(n,i){return angular.element((i||t).querySelectorAll(n))}function w(n){return p[n]?p[n]:p[n]=o.get(n,{cache:e}).then(function(n){return n.data})}var g=String.prototype.trim,b="createTouch"in i.document,nt=/ng-bind="/gi,k=angular.element(i.document),p={};return d}]}).directive("bsTooltip",["$window","$location","$sce","$tooltip","$$rAF",function(n,t,i,r,u){return{restrict:"EAC",scope:!0,link:function(n,t,f){var o={scope:n},e;angular.forEach(["template","contentTemplate","placement","container","delay","trigger","keyboard","html","animation","backdropAnimation","type","customClass","id"],function(n){angular.isDefined(f[n])&&(o[n]=f[n])});t.attr("data-target")&&(o.target=t.attr("data-target"));n.hasOwnProperty("title")||(n.title="");f.$observe("title",function(t){if(angular.isDefined(t)||!n.hasOwnProperty("title")){var r=n.title;n.title=i.trustAsHtml(t);angular.isDefined(r)&&u(function(){e&&e.$applyPlacement()})}});f.bsTooltip&&n.$watch(f.bsTooltip,function(t,i){angular.isObject(t)?angular.extend(n,t):n.title=t;angular.isDefined(i)&&u(function(){e&&e.$applyPlacement()})},!0);f.bsShow&&n.$watch(f.bsShow,function(n){e&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|,?(tooltip),?/i)),n===!0?e.show():e.hide())});f.bsEnabled&&n.$watch(f.bsEnabled,function(n){e&&angular.isDefined(n)&&(angular.isString(n)&&(n=!!n.match(/true|1|,?(tooltip),?/i)),e.setEnabled(n===!1?!1:!0))});f.viewport&&n.$watch(f.viewport,function(n){e&&angular.isDefined(n)&&e.setViewport(n)});e=r(t,o);n.$on("$destroy",function(){e&&e.destroy();o=null;e=null})}}}])}(window,document);!function(){"use strict";angular.module("mgcrea.ngStrap.aside").run(["$templateCache",function(n){n.put("aside/aside.tpl.html",'<div class="aside" tabindex="-1" role="dialog"><div class="aside-dialog"><div class="aside-content"><div class="aside-header" ng-show="title"><button type="button" class="close" ng-click="$hide()">&times;<\/button><h4 class="aside-title" ng-bind="title"><\/h4><\/div><div class="aside-body" ng-bind="content"><\/div><div class="aside-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close<\/button><\/div><\/div><\/div><\/div>')}]);angular.module("mgcrea.ngStrap.alert").run(["$templateCache",function(n){n.put("alert/alert.tpl.html",'<div class="alert" ng-class="[type ? \'alert-\' + type : null]"><button type="button" class="close" ng-if="dismissable" ng-click="$hide()">&times;<\/button> <strong ng-bind="title"><\/strong>&nbsp;<span ng-bind-html="content"><\/span><\/div>')}]);angular.module("mgcrea.ngStrap.datepicker").run(["$templateCache",function(n){n.put("datepicker/datepicker.tpl.html",'<div class="dropdown-menu datepicker" ng-class="\'datepicker-mode-\' + $mode" style="max-width: 320px"><table style="table-layout: fixed; height: 100%; width: 100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$selectPane(-1)"><i class="{{$iconLeft}}"><\/i><\/button><\/th><th colspan="{{ rows[0].length - 2 }}"><button tabindex="-1" type="button" class="btn btn-default btn-block text-strong" ng-click="$toggleMode()"><strong style="text-transform: capitalize" ng-bind="title"><\/strong><\/button><\/th><th><button tabindex="-1" type="button" class="btn btn-default pull-right" ng-click="$selectPane(+1)"><i class="{{$iconRight}}"><\/i><\/button><\/th><\/tr><tr ng-show="showLabels" ng-bind-html="labels"><\/tr><\/thead><tbody><tr ng-repeat="(i, row) in rows" height="{{ 100 / rows.length }}%"><td class="text-center" ng-repeat="(j, el) in row"><button tabindex="-1" type="button" class="btn btn-default" style="width: 100%" ng-class="{\'btn-primary\': el.selected, \'btn-info btn-today\': el.isToday && !el.selected}" ng-click="$select(el.date)" ng-disabled="el.disabled"><span ng-class="{\'text-muted\': el.muted}" ng-bind="el.label"><\/span><\/button><\/td><\/tr><\/tbody><\/table><\/div>')}]);angular.module("mgcrea.ngStrap.dropdown").run(["$templateCache",function(n){n.put("dropdown/dropdown.tpl.html",'<ul tabindex="-1" class="dropdown-menu" role="menu"><li role="presentation" ng-class="{divider: item.divider}" ng-repeat="item in content"><a role="menuitem" tabindex="-1" ng-href="{{item.href}}" ng-if="!item.divider && item.href" target="{{item.target || \'\'}}" ng-bind="item.text"><\/a> <a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-if="!item.divider && item.click" ng-click="$eval(item.click);$hide()" ng-bind="item.text"><\/a><\/li><\/ul>')}]);angular.module("mgcrea.ngStrap.modal").run(["$templateCache",function(n){n.put("modal/modal.tpl.html",'<div class="modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header" ng-show="title"><button type="button" class="close" aria-label="Close" ng-click="$hide()"><span aria-hidden="true">&times;<\/span><\/button><h4 class="modal-title" ng-bind="title"><\/h4><\/div><div class="modal-body" ng-bind="content"><\/div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close<\/button><\/div><\/div><\/div><\/div>')}]);angular.module("mgcrea.ngStrap.popover").run(["$templateCache",function(n){n.put("popover/popover.tpl.html",'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title" ng-bind="title" ng-show="title"><\/h3><div class="popover-content" ng-bind="content"><\/div><\/div>')}]);angular.module("mgcrea.ngStrap.select").run(["$templateCache",function(n){n.put("select/select.tpl.html",'<ul tabindex="-1" class="select dropdown-menu" ng-show="$isVisible()" role="select"><li ng-if="$showAllNoneButtons"><div class="btn-group" style="margin-bottom: 5px; margin-left: 5px"><button type="button" class="btn btn-default btn-xs" ng-click="$selectAll()">{{$allText}}<\/button> <button type="button" class="btn btn-default btn-xs" ng-click="$selectNone()">{{$noneText}}<\/button><\/div><\/li><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $isActive($index)}"><a style="cursor: default" role="menuitem" tabindex="-1" ng-click="$select($index, $event)"><i class="{{$iconCheckmark}} pull-right" ng-if="$isMultiple && $isActive($index)"><\/i> <span ng-bind="match.label"><\/span><\/a><\/li><\/ul>')}]);angular.module("mgcrea.ngStrap.tab").run(["$templateCache",function(n){n.put("tab/tab.tpl.html",'<ul class="nav" ng-class="$navClass" role="tablist"><li role="presentation" ng-repeat="$pane in $panes track by $index" ng-class="[ $index == $panes.$active ? $activeClass : \'\', $pane.disabled ? \'disabled\' : \'\' ]"><a role="tab" data-toggle="tab" ng-click="!$pane.disabled && $setActive($index)" data-index="{{ $index }}" ng-bind-html="$pane.title" aria-controls="$pane.title"><\/a><\/li><\/ul><div ng-transclude class="tab-content"><\/div>')}]);angular.module("mgcrea.ngStrap.timepicker").run(["$templateCache",function(n){n.put("timepicker/timepicker.tpl.html",'<div class="dropdown-menu timepicker" style="min-width: 0px;width: auto"><table height="100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)"><i class="{{ $iconUp }}"><\/i><\/button><\/th><th>&nbsp;<\/th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 1)"><i class="{{ $iconUp }}"><\/i><\/button><\/th><\/tr><\/thead><tbody><tr ng-repeat="(i, row) in rows"><td class="text-center"><button tabindex="-1" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[0].selected}" ng-click="$select(row[0].date, 0)" ng-disabled="row[0].disabled"><span ng-class="{\'text-muted\': row[0].muted}" ng-bind="row[0].label"><\/span><\/button><\/td><td><span ng-bind="i == midIndex ? timeSeparator : \' \'"><\/span><\/td><td class="text-center"><button tabindex="-1" ng-if="row[1].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[1].selected}" ng-click="$select(row[1].date, 1)" ng-disabled="row[1].disabled"><span ng-class="{\'text-muted\': row[1].muted}" ng-bind="row[1].label"><\/span><\/button><\/td><td ng-if="showAM">&nbsp;<\/td><td ng-if="showAM"><button tabindex="-1" ng-show="i == midIndex - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !!isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">AM<\/button> <button tabindex="-1" ng-show="i == midIndex + 1 - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">PM<\/button><\/td><\/tr><\/tbody><tfoot><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 0)"><i class="{{ $iconDown }}"><\/i><\/button><\/th><th>&nbsp;<\/th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 1)"><i class="{{ $iconDown }}"><\/i><\/button><\/th><\/tr><\/tfoot><\/table><\/div>')}]);angular.module("mgcrea.ngStrap.typeahead").run(["$templateCache",function(n){n.put("typeahead/typeahead.tpl.html",'<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"><\/a><\/li><\/ul>')}]);angular.module("mgcrea.ngStrap.tooltip").run(["$templateCache",function(n){n.put("tooltip/tooltip.tpl.html",'<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"><\/div><div class="tooltip-inner" ng-bind="title"><\/div><\/div>')}])}(window,document)