mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-19 14:42:56 +01:00
1 line
100 KiB
JavaScript
1 line
100 KiB
JavaScript
angular.module("ui.bootstrap",["ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(f,m,h,e){var g=e.has("$animateCss")?e.get("$animateCss"):null;return{link:function(t,n,e){var o=h(e.expanding),i=h(e.expanded),a=h(e.collapsing),r=h(e.collapsed),l=!1,s={},u={};function p(e){return l?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function c(){n.removeClass("collapsing").addClass("collapse").css(s),i(t)}function d(){n.css(u),n.removeClass("collapsing").addClass("collapse"),r(t)}!function(){u=(l=!!("horizontal"in e))?(s={width:""},{width:"0"}):(s={height:""},{height:"0"});t.$eval(e.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(s)}(),t.$watch(e.uibCollapse,function(e){e?function(){if(!n.hasClass("collapse")&&!n.hasClass("in"))return d();m.resolve(a(t)).then(function(){n.css(p(n[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),g?g(n,{removeClass:"in",to:u}).start().finally(d):f.removeClass(n,"in",{to:u}).then(d)},angular.noop)}():n.hasClass("collapse")&&n.hasClass("in")||m.resolve(o(t)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),g?g(n,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:p(n[0])}).start().finally(c):f.addClass(n,"in",{css:{overflow:"hidden"},to:p(n[0])}).then(c)},angular.noop)})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(e,t,n){n.$observe("disabled",function(e){n.$set("tabindex",e?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,n,o){this.groups=[],this.closeOthers=function(t){(angular.isDefined(n.closeOthers)?e.$eval(n.closeOthers):o.closeOthers)&&angular.forEach(this.groups,function(e){e!==t&&(e.isOpen=!1)})},this.addGroup=function(t){var n=this;this.groups.push(t),t.$on("$destroy",function(e){n.removeGroup(t)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(t,n,e,o){n.addClass("panel"),o.addGroup(t),t.openClass=e.openClass||"panel-open",t.panelClass=e.panelClass||"panel-default",t.$watch("isOpen",function(e){n.toggleClass(t.openClass,!!e),e&&o.closeOthers(t)}),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)};var i="accordiongroup-"+t.$id+"-"+Math.floor(1e4*Math.random());t.headingId=i+"-tab",t.panelId=i+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,o,i){o.setHeading(i(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,n,t,o){e.$watch(function(){return o[t.uibAccordionTransclude]},function(e){var t;e&&((t=angular.element(n[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"))).html(""),t.append(e))})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(e,t,n,o,i){e.closeable=!!n.close,t.addClass("alert"),n.$set("role","alert"),e.closeable&&t.addClass("alert-dismissible");var a=angular.isDefined(n.dismissOnTimeout)?o(n.dismissOnTimeout)(e.$parent):null;a&&i(function(){e.close()},parseInt(a,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(l){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,o,e){var i=e[0],a=e[1],r=l(o.uibUncheckable);n.find("input").css({display:"none"}),a.$render=function(){n.toggleClass(i.activeClass,angular.equals(a.$modelValue,t.$eval(o.uibBtnRadio)))},n.on(i.toggleEvent,function(){var e;o.disabled||((e=n.hasClass(i.activeClass))&&!angular.isDefined(o.uncheckable)||t.$apply(function(){a.$setViewValue(e?null:t.$eval(o.uibBtnRadio)),a.$render()}))}),o.uibUncheckable&&t.$watch(r,function(e){o.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,e,t,o){var i=o[0],a=o[1];function r(){return l(t.btnCheckboxTrue,!0)}function l(e,t){return angular.isDefined(e)?n.$eval(e):t}e.find("input").css({display:"none"}),a.$render=function(){e.toggleClass(i.activeClass,angular.equals(a.$modelValue,r()))},e.on(i.toggleEvent,function(){t.disabled||n.$apply(function(){a.$setViewValue(e.hasClass(i.activeClass)?l(t.btnCheckboxFalse,!1):r()),a.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(i,a,t,e,r){var n,o,l=this,s=l.slides=i.slides=[],u="uib-slideDirection",p=i.active,c=!1;function d(e){for(var t=0;t<s.length;t++)s[t].slide.active=t===e}function f(e){for(var t=0;t<s.length;t++)if(s[t].slide===e)return t}function m(){n&&(t.cancel(n),n=null)}function h(){m();var e=+i.interval;!isNaN(e)&&0<e&&(n=t(g,e))}function g(){var e=+i.interval;o&&!isNaN(e)&&0<e&&s.length?i.next():i.pause()}a.addClass("carousel"),l.addSlide=function(e,t){s.push({slide:e,element:t}),s.sort(function(e,t){return e.slide.index-t.slide.index}),e.index!==i.active&&(1!==s.length||angular.isNumber(i.active))||(i.$currentTransition&&(i.$currentTransition=null),p=e.index,i.active=e.index,d(p),l.select(s[f(e)]),1===s.length&&i.play())},l.getCurrentIndex=function(){for(var e=0;e<s.length;e++)if(s[e].slide.index===p)return e},l.next=i.next=function(){var e=(l.getCurrentIndex()+1)%s.length;if(0!=e||!i.noWrap())return l.select(s[e],"next");i.pause()},l.prev=i.prev=function(){var e=l.getCurrentIndex()-1<0?s.length-1:l.getCurrentIndex()-1;if(!i.noWrap()||e!=s.length-1)return l.select(s[e],"prev");i.pause()},l.removeSlide=function(e){var t=f(e);s.splice(t,1),0<s.length&&p===t?t>=s.length?(p=s.length-1,d(i.active=p),l.select(s[s.length-1])):(p=t,d(i.active=p),l.select(s[t])):t<p&&(p--,i.active=p),0===s.length&&(p=null,i.active=null)},l.select=i.select=function(e,t){var n=f(e.slide);void 0===t&&(t=n>l.getCurrentIndex()?"next":"prev"),e.slide.index===p||i.$currentTransition||function(e,t,n){if(c)return;{var o;angular.extend(e,{direction:n}),angular.extend(s[p].slide||{},{direction:n}),r.enabled(a)&&!i.$currentTransition&&s[t].element&&1<l.slides.length&&(s[t].element.data(u,e.direction),o=l.getCurrentIndex(),angular.isNumber(o)&&s[o].element&&s[o].element.data(u,e.direction),i.$currentTransition=!0,r.on("addClass",s[t].element,function(e,t){"close"===t&&(i.$currentTransition=null,r.off("addClass",e))}))}i.active=e.index,p=e.index,d(t),h()}(e.slide,n,t)},i.indexOfSlide=function(e){return+e.slide.index},i.isActive=function(e){return i.active===e.slide.index},i.isPrevDisabled=function(){return 0===i.active&&i.noWrap()},i.isNextDisabled=function(){return i.active===s.length-1&&i.noWrap()},i.pause=function(){i.noPause||(o=!1,m())},i.play=function(){o||(o=!0,h())},a.on("mouseenter",i.pause),a.on("mouseleave",i.play),i.$on("$destroy",function(){c=!0,m()}),i.$watch("noTransition",function(e){r.enabled(a,!e)}),i.$watch("interval",h),i.$watchCollection("slides",function(e){e.length||(i.$currentTransition=null)}),i.$watch("active",function(e){if(angular.isNumber(e)&&p!==e){for(var t=0;t<s.length;t++)if(s[t].slide.index===e){e=t;break}s[e]&&(d(e),l.select(s[e]),p=e)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(i){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(e,t,n,o){t.addClass("item"),o.addSlide(e,t),e.$on("$destroy",function(){o.removeSlide(e)}),e.$watch("active",function(e){i[e?"addClass":"removeClass"](t,"active")})}}}]).animation(".item",["$animateCss",function(r){var l="uib-slideDirection";function s(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(e,t,n){if("active"===t){var o=e.data(l),i="next"===o?"left":"right",a=s.bind(this,e,i+" "+o,n);return e.addClass(o),r(e,{addClass:i}).start().done(a),function(){0}}n()},beforeRemoveClass:function(e,t,n){if("active"===t){var o="next"===e.data(l)?"left":"right",i=s.bind(this,e,o,n);return r(e,{addClass:o}).start().done(i),function(){0}}n()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter","filterFilter",function(h,g,n,b,t){var v,$,y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function o(e){return t($,{key:e},!0)[0]}function a(e,t,n){return function(){return e.substr(t+1,n-t-1)}}function r(e,t){for(var n=e.substr(t),o=0;o<$.length;o++)if(new RegExp("^"+$[o].key).test(n)){var i=$[o];return{endIdx:t+i.key.length,parser:i.formatter}}return{endIdx:t+1,parser:function(){return n.charAt(0)}}}function l(e){return parseInt(e,10)}function i(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function s(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function u(e,t,n){n=n?-1:1;var o=e.getTimezoneOffset();return s(e,n*(i(t,o)-o))}this.init=function(){v=g.id,this.parsers={},this.formatters={},$=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){e=+e,this.year=e<69?e+2e3:e+1900},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:g.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=g.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:g.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=g.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:g.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:g.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:g.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],o=t[2],i=t[3];this.hours+=l(n+o),this.minutes+=l(n+i)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:g.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:g.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:g.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:g.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}],1<=angular.version.major&&4<angular.version.minor&&$.push({key:"LLLL",regex:g.DATETIME_FORMATS.STANDALONEMONTH.join("|"),apply:function(e){this.month=g.DATETIME_FORMATS.STANDALONEMONTH.indexOf(e)},formatter:function(e){return n(e,"LLLL")}})},this.init(),this.getParser=function(e){var t=o(e);return t&&t.apply||null},this.overrideParser=function(e,t){var n=o(e);n&&angular.isFunction(t)&&(this.parsers={},n.apply=t)}.bind(this),this.filter=function(n,e){return angular.isDate(n)&&!isNaN(n)&&e?(e=g.DATETIME_FORMATS[e]||e,g.id!==v&&this.init(),this.formatters[e]||(this.formatters[e]=function(e){for(var t,n,o=[],i=0;i<e.length;)if(angular.isNumber(n)){if("'"===e.charAt(i))(i+1>=e.length||"'"!==e.charAt(i+1))&&(o.push(a(e,n,i)),n=null);else if(i===e.length)for(;n<e.length;)t=r(e,n),o.push(t),n=t.endIdx;i++}else"'"!==e.charAt(i)?(t=r(e,i),o.push(t.parser),i=t.endIdx):(n=i,i++);return o}(e)),this.formatters[e].reduce(function(e,t){return e+t(n)},"")):""},this.parse=function(e,t,n){if(!angular.isString(e)||!t)return e;t=(t=g.DATETIME_FORMATS[t]||t).replace(y,"\\$&"),g.id!==v&&this.init(),this.parsers[t]||(this.parsers[t]=function(i){var a=[],r=i.split(""),e=i.indexOf("'");if(-1<e){var t=!1;i=i.split("");for(var n=e;n<i.length;n++)t?("'"===i[n]&&(n+1<i.length&&"'"===i[n+1]?(i[n+1]="$",r[n+1]=""):(r[n]="",t=!1)),i[n]="$"):"'"===i[n]&&(i[n]="$",t=!(r[n]=""));i=i.join("")}return angular.forEach($,function(e){var t=i.indexOf(e.key);if(-1<t){i=i.split(""),r[t]="("+e.regex+")",i[t]="$";for(var n=t+1,o=t+e.key.length;n<o;n++)r[n]="",i[n]="$";i=i.join(""),a.push({index:t,key:e.key,apply:e.apply,matcher:e.regex})}}),{regex:new RegExp("^"+r.join("")+"$"),map:b(a,"index")}}(t));var o=this.parsers[t],i=o.regex,a=o.map,r=e.match(i),l=!1;if(r&&r.length){for(var s,u=angular.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds(),milliseconds:n.getMilliseconds()}:(n&&h.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),p=1,c=r.length;p<c;p++){var d=a[p-1];"Z"===d.matcher&&(l=!0),d.apply&&d.apply.call(u,r[p])}var f=l?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,m=l?Date.prototype.setUTCHours:Date.prototype.setHours;return function(e,t,n){if(n<1)return;if(1===t&&28<n)return 29===n&&(e%4==0&&e%100!=0||e%400==0);return 3!==t&&5!==t&&8!==t&&10!==t||n<31}(u.year,u.month,u.date)&&(!angular.isDate(n)||isNaN(n.getTime())||l?(s=new Date(0),f.call(s,u.year,u.month,u.date),m.call(s,u.hours||0,u.minutes||0,u.seconds||0,u.milliseconds||0)):(s=new Date(n),f.call(s,u.year,u.month,u.date),m.call(s,u.hours,u.minutes,u.seconds,u.milliseconds))),s}},this.toTimezone=function(e,t){return e&&t?u(e,t):e},this.fromTimezone=function(e,t){return e&&t?u(e,t,!0):e},this.timezoneToOffset=i,this.addDateMinutes=s,this.convertTimezoneToLocal=u}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(p){var r=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,c=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(e,t){var i=[],l=[],s={},n=t.uibIsClass.match(r),u=n[2],o=n[1].split(",");return function(n,e,t){i.push(n),l.push({scope:n,element:e}),o.forEach(function(e,t){!function(e,t){var n=e.match(c),o=t.$eval(n[1]),i=n[2],a=s[e];{var r;a||(r=function(t){var n=null;l.some(function(e){if(e.scope.$eval(u)===t)return n=e,!0}),a.lastActivated!==n&&(a.lastActivated&&p.removeClass(a.lastActivated.element,o),n&&p.addClass(n.element,o),a.lastActivated=n)},s[e]=a={lastActivated:null,scope:t,watchFn:r,compareWithExp:i,watcher:t.$watch(i,r)})}a.watchFn(t.$eval(i))}(e,n)}),n.$on("$destroy",a)};function a(e){var t,n=e.targetScope,o=i.indexOf(n);i.splice(o,1),l.splice(o,1),i.length?(t=i[0],angular.forEach(s,function(e){e.scope===n&&(e.watcher=t.$watch(e.compareWithExp,e.watchFn),e.scope=t)})):s={}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(r,e,t,n,o,i,a,l,s,u,p,c){var d=this,f={$setViewValue:angular.noop},m={},h=[];e.addClass("uib-datepicker"),t.$set("role","application"),r.datepickerOptions||(r.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":r[t]=r.datepickerOptions[t]||angular.noop;break;case"datepickerMode":r.datepickerMode=angular.isDefined(r.datepickerOptions.datepickerMode)?r.datepickerOptions.datepickerMode:s.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":d[t]=angular.isDefined(r.datepickerOptions[t])?o(r.datepickerOptions[t])(r.$parent):s[t];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":d[t]=angular.isDefined(r.datepickerOptions[t])?r.datepickerOptions[t]:s[t];break;case"startingDay":angular.isDefined(r.datepickerOptions.startingDay)?d.startingDay=r.datepickerOptions.startingDay:angular.isNumber(s.startingDay)?d.startingDay=s.startingDay:d.startingDay=(i.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":r.$watch("datepickerOptions."+t,function(e){e?angular.isDate(e)?d[t]=c.fromTimezone(new Date(e),m.getOption("timezone")):(u&&a.warn("Literal date support has been deprecated, please switch to date object usage"),d[t]=new Date(l(e,"medium"))):d[t]=s[t]?c.fromTimezone(new Date(s[t]),m.getOption("timezone")):null,d.refreshView()});break;case"maxMode":case"minMode":r.datepickerOptions[t]?r.$watch(function(){return r.datepickerOptions[t]},function(e){d[t]=r[t]=angular.isDefined(e)?e:r.datepickerOptions[t],("minMode"===t&&d.modes.indexOf(r.datepickerOptions.datepickerMode)<d.modes.indexOf(d[t])||"maxMode"===t&&d.modes.indexOf(r.datepickerOptions.datepickerMode)>d.modes.indexOf(d[t]))&&(r.datepickerMode=d[t],r.datepickerOptions.datepickerMode=d[t])}):d[t]=r[t]=s[t]||null}}),r.uniqueId="datepicker-"+r.$id+"-"+Math.floor(1e4*Math.random()),r.disabled=angular.isDefined(t.disabled)||!1,angular.isDefined(t.ngDisabled)&&h.push(r.$parent.$watch(t.ngDisabled,function(e){r.disabled=e,d.refreshView()})),r.isActive=function(e){return 0===d.compare(e.date,d.activeDate)&&(r.activeDateId=e.uid,!0)},this.init=function(e){m=function(e){var t;{var n;angular.version.minor<6?(t=e.$options||r.datepickerOptions.ngModelOptions||s.ngModelOptions||{}).getOption=function(e){return t[e]}:(n=e.$options.getOption("timezone")||(r.datepickerOptions.ngModelOptions?r.datepickerOptions.ngModelOptions.timezone:null)||(s.ngModelOptions?s.ngModelOptions.timezone:null),t=e.$options.createChild(s.ngModelOptions).createChild(r.datepickerOptions.ngModelOptions).createChild(e.$options).createChild({timezone:n}))}return t}(f=e),r.datepickerOptions.initDate?(d.activeDate=c.fromTimezone(r.datepickerOptions.initDate,m.getOption("timezone"))||new Date,r.$watch("datepickerOptions.initDate",function(e){e&&(f.$isEmpty(f.$modelValue)||f.$invalid)&&(d.activeDate=c.fromTimezone(e,m.getOption("timezone")),d.refreshView())})):d.activeDate=new Date;var t=f.$modelValue?new Date(f.$modelValue):new Date;this.activeDate=isNaN(t)?c.fromTimezone(new Date,m.getOption("timezone")):c.fromTimezone(t,m.getOption("timezone")),f.$render=function(){d.render()}},this.render=function(){var e;f.$viewValue&&(e=new Date(f.$viewValue),!isNaN(e)?this.activeDate=c.fromTimezone(e,m.getOption("timezone")):p||a.error('Datepicker directive: "ng-model" value must be a Date object')),this.refreshView()},this.refreshView=function(){var e;this.element&&(r.selectedDt=null,this._refreshView(),r.activeDt&&(r.activeDateId=r.activeDt.uid),e=f.$viewValue?new Date(f.$viewValue):null,e=c.fromTimezone(e,m.getOption("timezone")),f.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e)))},this.createDateObject=function(e,t){var n=f.$viewValue?new Date(f.$viewValue):null,n=c.fromTimezone(n,m.getOption("timezone")),o=new Date,o=c.fromTimezone(o,m.getOption("timezone")),i=this.compare(e,o),a={date:e,label:c.filter(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),past:i<0,current:0===i,future:0<i,customClass:this.customClass(e)||null};return n&&0===this.compare(e,n)&&(r.selectedDt=a),d.activeDate&&0===this.compare(a.date,d.activeDate)&&(r.activeDt=a),a},this.isDisabled=function(e){return r.disabled||this.minDate&&this.compare(e,this.minDate)<0||this.maxDate&&0<this.compare(e,this.maxDate)||r.dateDisabled&&r.dateDisabled({date:e,mode:r.datepickerMode})},this.customClass=function(e){return r.customClass({date:e,mode:r.datepickerMode})},this.split=function(e,t){for(var n=[];0<e.length;)n.push(e.splice(0,t));return n},r.select=function(e){var t;r.datepickerMode===d.minMode?((t=f.$viewValue?c.fromTimezone(new Date(f.$viewValue),m.getOption("timezone")):new Date(0,0,0,0,0,0,0)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t=c.toTimezone(t,m.getOption("timezone")),f.$setViewValue(t),f.$render()):(d.activeDate=e,g(d.modes[d.modes.indexOf(r.datepickerMode)-1]),r.$emit("uib:datepicker.mode")),r.$broadcast("uib:datepicker.focus")},r.move=function(e){var t=d.activeDate.getFullYear()+e*(d.step.years||0),n=d.activeDate.getMonth()+e*(d.step.months||0);d.activeDate.setFullYear(t,n,1),d.refreshView()},r.toggleMode=function(e){e=e||1,r.datepickerMode===d.maxMode&&1===e||r.datepickerMode===d.minMode&&-1===e||(g(d.modes[d.modes.indexOf(r.datepickerMode)+e]),r.$emit("uib:datepicker.mode"))},r.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};function g(e){r.datepickerMode=e,r.datepickerOptions.datepickerMode=e}r.$on("uib:datepicker.focus",function(){d.element[0].focus()}),r.keydown=function(e){var t=r.keys[e.which];if(t&&!e.shiftKey&&!e.altKey&&!r.disabled)if(e.preventDefault(),d.shortcutPropagation||e.stopPropagation(),"enter"===t||"space"===t){if(d.isDisabled(d.activeDate))return;r.select(d.activeDate)}else!e.ctrlKey||"up"!==t&&"down"!==t?(d.handleKeyDown(t,e),d.refreshView()):r.toggleMode("up"===t?1:-1)},e.on("keydown",function(e){r.$apply(function(){r.keydown(e)})}),r.$on("$destroy",function(){for(;h.length;)h.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(d,e,f){var n=[31,28,31,30,31,30,31,31,30,31,30,31];function i(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?n[t]:29}function m(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}this.step={months:1},this.element=e,this.init=function(e){angular.extend(e,this),d.showWeeks=e.showWeeks,e.refreshView()},this.getDates=function(e,t){for(var n,o=new Array(t),i=new Date(e),a=0;a<t;)n=new Date(i),o[a++]=n,i.setDate(i.getDate()+1);return o},this._refreshView=function(){var e=this.activeDate.getFullYear(),t=this.activeDate.getMonth(),n=new Date(this.activeDate);n.setFullYear(e,t,1);var o=this.startingDay-n.getDay(),i=0<o?7-o:-o,a=new Date(n);0<i&&a.setDate(1-i);for(var r=this.getDates(a,42),l=0;l<42;l++)r[l]=angular.extend(this.createDateObject(r[l],this.formatDay),{secondary:r[l].getMonth()!==t,uid:d.uniqueId+"-"+l});d.labels=new Array(7);for(var s=0;s<7;s++)d.labels[s]={abbr:f(r[s].date,this.formatDayHeader),full:f(r[s].date,"EEEE")};if(d.title=f(this.activeDate,this.formatDayTitle),d.rows=this.split(r,7),d.showWeeks){d.weekNumbers=[];for(var u=(11-this.startingDay)%7,p=d.rows.length,c=0;c<p;c++)d.weekNumbers.push(m(d.rows[c][u].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),o=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),o.setFullYear(t.getFullYear()),n-o},this.handleKeyDown=function(e,t){var n,o=this.activeDate.getDate();"left"===e?--o:"up"===e?o-=7:"right"===e?o+=1:"down"===e?o+=7:"pageup"===e||"pagedown"===e?(n=this.activeDate.getMonth()+("pageup"===e?-1:1),this.activeDate.setMonth(n,1),o=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),o)):"home"===e?o=1:"end"===e&&(o=i(this.activeDate.getFullYear(),this.activeDate.getMonth())),this.activeDate.setDate(o)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(i,e,a){this.step={years:1},this.element=e,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var e,t=new Array(12),n=this.activeDate.getFullYear(),o=0;o<12;o++)(e=new Date(this.activeDate)).setFullYear(n,o,1),t[o]=angular.extend(this.createDateObject(e,this.formatMonth),{uid:i.uniqueId+"-"+o});i.title=a(this.activeDate,this.formatMonthTitle),i.rows=this.split(t,this.monthColumns),i.yearHeaderColspan=3<this.monthColumns?this.monthColumns-2:1},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),o=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),o.setFullYear(t.getFullYear()),n-o},this.handleKeyDown=function(e,t){var n,o=this.activeDate.getMonth();"left"===e?--o:"up"===e?o-=this.monthColumns:"right"===e?o+=1:"down"===e?o+=this.monthColumns:"pageup"===e||"pagedown"===e?(n=this.activeDate.getFullYear()+("pageup"===e?-1:1),this.activeDate.setFullYear(n)):"home"===e?o=0:"end"===e&&(o=11),this.activeDate.setMonth(o)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(i,e,t){var a,r;function l(e){return parseInt((e-1)/r,10)*r+1}this.element=e,this.yearpickerInit=function(){a=this.yearColumns,r=this.yearRows*a,this.step={years:r}},this._refreshView=function(){for(var e,t=new Array(r),n=0,o=l(this.activeDate.getFullYear());n<r;n++)(e=new Date(this.activeDate)).setFullYear(o+n,0,1),t[n]=angular.extend(this.createDateObject(e,this.formatYear),{uid:i.uniqueId+"-"+n});i.title=[t[0].label,t[r-1].label].join(" - "),i.rows=this.split(t,a),i.columns=a},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?--n:"up"===e?n-=a:"right"===e?n+=1:"down"===e?n+=a:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*r:"home"===e?n=l(this.activeDate.getFullYear()):"end"===e&&(n=l(this.activeDate.getFullYear())+r-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,o){var i=o[0],a=o[1];i.init(a)}}}).directive("uibDaypicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(e,t,n,o){var i=o[0];o[1].init(i)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(e,t,n,o){var i=o[0];o[1].init(i)}}}).directive("uibYearpicker",function(){return{templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(e,t,n,o){var i=o[0];angular.extend(i,o[1]),i.yearpickerInit(),i.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(u,m){var o,i,p={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},h={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},r=/(HTML|BODY)/;return{getRawNode:function(e){return!e.nodeName&&e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(e){var t,n=(e=this.getRawNode(e)).offsetParent||u[0].documentElement;for(;n&&n!==u[0].documentElement&&(t=n,"static"===(m.getComputedStyle(t).position||"static"));)n=n.offsetParent;return n||u[0].documentElement},scrollbarWidth:function(e){var t,n;return e?(angular.isUndefined(i)&&((t=u.find("body")).addClass("uib-position-body-scrollbar-measure"),i=m.innerWidth-t[0].clientWidth,i=isFinite(i)?i:0,t.removeClass("uib-position-body-scrollbar-measure")),i):(angular.isUndefined(o)&&(n=angular.element('<div class="uib-position-scrollbar-measure"></div>'),u.find("body").append(n),o=n[0].offsetWidth-n[0].clientWidth,o=isFinite(o)?o:0,n.remove()),o)},scrollbarPadding:function(e){e=this.getRawNode(e);var t=m.getComputedStyle(e),n=this.parseStyle(t.paddingRight),o=this.parseStyle(t.paddingBottom),i=this.scrollParent(e,!1,!0),a=this.scrollbarWidth(r.test(i.tagName));return{scrollbarWidth:a,widthOverflow:i.scrollWidth>i.clientWidth,right:n+a,originalRight:n,heightOverflow:i.scrollHeight>i.clientHeight,bottom:o+a,originalBottom:o}},isScrollable:function(e,t){e=this.getRawNode(e);var n=t?p.hidden:p.normal,o=m.getComputedStyle(e);return n.test(o.overflow+o.overflowY+o.overflowX)},scrollParent:function(e,t,n){e=this.getRawNode(e);var o=t?p.hidden:p.normal,i=u[0].documentElement,a=m.getComputedStyle(e);if(n&&o.test(a.overflow+a.overflowY+a.overflowX))return e;var r="absolute"===a.position,l=e.parentElement||i;if(l===i||"fixed"===a.position)return i;for(;l.parentElement&&l!==i;){var s=m.getComputedStyle(l);if(r&&"static"!==s.position&&(r=!1),!r&&o.test(s.overflow+s.overflowY+s.overflowX))break;l=l.parentElement}return l},position:function(e,t){e=this.getRawNode(e);var n,o=this.offset(e);t&&(n=m.getComputedStyle(e),o.top-=this.parseStyle(n.marginTop),o.left-=this.parseStyle(n.marginLeft));var i=this.offsetParent(e),a={top:0,left:0};return i!==u[0].documentElement&&((a=this.offset(i)).top+=i.clientTop-i.scrollTop,a.left+=i.clientLeft-i.scrollLeft),{width:Math.round(angular.isNumber(o.width)?o.width:e.offsetWidth),height:Math.round(angular.isNumber(o.height)?o.height:e.offsetHeight),top:Math.round(o.top-a.top),left:Math.round(o.left-a.left)}},offset:function(e){var t=(e=this.getRawNode(e)).getBoundingClientRect();return{width:Math.round(angular.isNumber(t.width)?t.width:e.offsetWidth),height:Math.round(angular.isNumber(t.height)?t.height:e.offsetHeight),top:Math.round(t.top+(m.pageYOffset||u[0].documentElement.scrollTop)),left:Math.round(t.left+(m.pageXOffset||u[0].documentElement.scrollLeft))}},viewportOffset:function(e,t,n){n=!1!==n;var o,i=(e=this.getRawNode(e)).getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},r=t?u[0].documentElement:this.scrollParent(e),l=r.getBoundingClientRect();return a.top=l.top+r.clientTop,a.left=l.left+r.clientLeft,r===u[0].documentElement&&(a.top+=m.pageYOffset,a.left+=m.pageXOffset),a.bottom=a.top+r.clientHeight,a.right=a.left+r.clientWidth,n&&(o=m.getComputedStyle(r),a.top+=this.parseStyle(o.paddingTop),a.bottom-=this.parseStyle(o.paddingBottom),a.left+=this.parseStyle(o.paddingLeft),a.right-=this.parseStyle(o.paddingRight)),{top:Math.round(i.top-a.top),bottom:Math.round(a.bottom-i.bottom),left:Math.round(i.left-a.left),right:Math.round(a.right-i.right)}},parsePlacement:function(e){var t=h.auto.test(e);return t&&(e=e.replace(h.auto,"")),(e=e.split("-"))[0]=e[0]||"top",h.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",h.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,t,n,o){e=this.getRawNode(e),t=this.getRawNode(t);var i=angular.isDefined(t.offsetWidth)?t.offsetWidth:t.prop("offsetWidth"),a=angular.isDefined(t.offsetHeight)?t.offsetHeight:t.prop("offsetHeight");n=this.parsePlacement(n);var r,l,s,u,p,c,d=o?this.offset(e):this.position(e),f={top:0,left:0,placement:""};switch(n[2]&&(r=this.viewportOffset(e,o),l=m.getComputedStyle(t),s=i+Math.round(Math.abs(this.parseStyle(l.marginLeft)+this.parseStyle(l.marginRight))),u=a+Math.round(Math.abs(this.parseStyle(l.marginTop)+this.parseStyle(l.marginBottom))),n[0]="top"===n[0]&&u>r.top&&u<=r.bottom?"bottom":"bottom"===n[0]&&u>r.bottom&&u<=r.top?"top":"left"===n[0]&&s>r.left&&s<=r.right?"right":"right"===n[0]&&s>r.right&&s<=r.left?"left":n[0],n[1]="top"===n[1]&&u-d.height>r.bottom&&u-d.height<=r.top?"bottom":"bottom"===n[1]&&u-d.height>r.top&&u-d.height<=r.bottom?"top":"left"===n[1]&&s-d.width>r.right&&s-d.width<=r.left?"right":"right"===n[1]&&s-d.width>r.left&&s-d.width<=r.right?"left":n[1],"center"===n[1]&&(h.vertical.test(n[0])?(p=d.width/2-i/2,r.left+p<0&&s-d.width<=r.right?n[1]="left":r.right+p<0&&s-d.width<=r.left&&(n[1]="right")):(c=d.height/2-u/2,r.top+c<0&&u-d.height<=r.bottom?n[1]="top":r.bottom+c<0&&u-d.height<=r.top&&(n[1]="bottom")))),n[0]){case"top":f.top=d.top-a;break;case"bottom":f.top=d.top+d.height;break;case"left":f.left=d.left-i;break;case"right":f.left=d.left+d.width}switch(n[1]){case"top":f.top=d.top;break;case"bottom":f.top=d.top+d.height-a;break;case"left":f.left=d.left;break;case"right":f.left=d.left+d.width-i;break;case"center":h.vertical.test(n[0])?f.left=d.left+d.width/2-i/2:f.top=d.top+d.height/2-a/2}return f.top=Math.round(f.top),f.left=Math.round(f.left),f.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],f},adjustTop:function(e,t,n,o){if(-1!==e.indexOf("top")&&n!==o)return{top:t.top-o+"px"}},positionArrow:function(e,t){var n=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(n){var o=angular.element(n).hasClass("tooltip-inner"),i=o?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(i){var a={top:"",bottom:"",left:"",right:""};if("center"!==(t=this.parsePlacement(t))[1]){var r="border-"+t[0]+"-width",l=m.getComputedStyle(i)[r],s="border-";h.vertical.test(t[0])?s+=t[0]+"-"+t[1]:s+=t[1]+"-"+t[0],s+="-radius";var u=m.getComputedStyle(o?n:e)[s];switch(t[0]){case"top":a.bottom=o?"0":"-"+l;break;case"bottom":a.top=o?"0":"-"+l;break;case"left":a.right=o?"0":"-"+l;break;case"right":a.left=o?"0":"-"+l}a[t[1]]=u,angular.element(i).css(a)}else angular.element(i).css(a)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(i,a,o,t,n,e,r,l,s,u,p,c,d,f,m,h){var g,b,v,$,y,w,D,k,C,T,x,M,O,E=!1,P=[];function S(e){var t=c.parse(e,g,i.date);if(isNaN(t))for(var n=0;n<O.length;n++)if(t=c.parse(e,O[n],i.date),!isNaN(t))return t;return t}function A(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=S(e);if(!isNaN(t))return c.toTimezone(t,x.getOption("timezone"))}return x.getOption("allowInvalid")?e:void 0}function I(e,t){var n=e||t;return!o.ngRequired&&!n||(angular.isNumber(n)&&(n=new Date(n)),!n||(!(!angular.isDate(n)||isNaN(n))||!!angular.isString(n)&&!isNaN(S(n))))}function U(e){var t,n,o;!i.isOpen&&i.disabled||(t=M[0],n=a[0].contains(e.target),o=void 0!==t.contains&&t.contains(e.target),!i.isOpen||n||o||i.$apply(function(){i.isOpen=!1}))}function N(e){27===e.which&&i.isOpen?(e.preventDefault(),e.stopPropagation(),i.$apply(function(){i.isOpen=!1}),a[0].focus()):40!==e.which||i.isOpen||(e.preventDefault(),e.stopPropagation(),i.$apply(function(){i.isOpen=!0}))}function F(){var e,t,n;i.isOpen&&(e=angular.element(M[0].querySelector(".uib-datepicker-popup")),t=o.popupPlacement?o.popupPlacement:d.placement,n=u.positionElements(a,e,t,v),e.css({top:n.top+"px",left:n.left+"px"}),e.hasClass("uib-position-measure")&&e.removeClass("uib-position-measure"))}this.init=function(e){if(x=function(e){var t;angular.version.minor<6?(t=angular.isObject(e.$options)?e.$options:{timezone:null}).getOption=function(e){return t[e]}:t=e.$options;return t}(T=e),b=angular.isDefined(o.closeOnDateSelection)?i.$parent.$eval(o.closeOnDateSelection):d.closeOnDateSelection,v=angular.isDefined(o.datepickerAppendToBody)?i.$parent.$eval(o.datepickerAppendToBody):d.appendToBody,$=angular.isDefined(o.onOpenFocus)?i.$parent.$eval(o.onOpenFocus):d.onOpenFocus,y=angular.isDefined(o.datepickerPopupTemplateUrl)?o.datepickerPopupTemplateUrl:d.datepickerPopupTemplateUrl,w=angular.isDefined(o.datepickerTemplateUrl)?o.datepickerTemplateUrl:d.datepickerTemplateUrl,O=angular.isDefined(o.altInputFormats)?i.$parent.$eval(o.altInputFormats):d.altInputFormats,i.showButtonBar=angular.isDefined(o.showButtonBar)?i.$parent.$eval(o.showButtonBar):d.showButtonBar,d.html5Types[o.type]?(g=d.html5Types[o.type],E=!0):(g=o.uibDatepickerPopup||d.datepickerPopup,o.$observe("uibDatepickerPopup",function(e,t){var n=e||d.datepickerPopup;if(n!==g&&(g=n,T.$modelValue=null,!g))throw new Error("uibDatepickerPopup must have a date format specified.")})),!g)throw new Error("uibDatepickerPopup must have a date format specified.");if(E&&o.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");(D=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":y}),(k=angular.element(D.children()[0])).attr("template-url",w),i.datepickerOptions||(i.datepickerOptions={}),E&&"month"===o.type&&(i.datepickerOptions.datepickerMode="month",i.datepickerOptions.minMode="month"),k.attr("datepicker-options","datepickerOptions"),E?T.$formatters.push(function(e){return i.date=c.fromTimezone(e,x.getOption("timezone")),e}):(T.$$parserName="date",T.$validators.date=I,T.$parsers.unshift(A),T.$formatters.push(function(e){return T.$isEmpty(e)?i.date=e:(angular.isNumber(e)&&(e=new Date(e)),i.date=c.fromTimezone(e,x.getOption("timezone")),c.filter(i.date,g))})),T.$viewChangeListeners.push(function(){i.date=S(T.$viewValue)}),a.on("keydown",N),M=t(D)(i),D.remove(),v?l.find("body").append(M):a.after(M),i.$on("$destroy",function(){for(!0===i.isOpen&&(s.$$phase||i.$apply(function(){i.isOpen=!1})),M.remove(),a.off("keydown",N),l.off("click",U),C&&C.off("scroll",F),angular.element(r).off("resize",F);P.length;)P.shift()()})},i.getText=function(e){return i[e+"Text"]||d[e+"Text"]},i.isDisabled=function(e){"today"===e&&(e=c.fromTimezone(new Date,x.getOption("timezone")));var t={};return angular.forEach(["minDate","maxDate"],function(e){i.datepickerOptions[e]?angular.isDate(i.datepickerOptions[e])?t[e]=new Date(i.datepickerOptions[e]):(h&&n.warn("Literal date support has been deprecated, please switch to date object usage"),t[e]=new Date(p(i.datepickerOptions[e],"medium"))):t[e]=null}),i.datepickerOptions&&t.minDate&&i.compare(e,t.minDate)<0||t.maxDate&&0<i.compare(e,t.maxDate)},i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},i.dateSelection=function(e){i.date=e;var t=i.date?c.filter(i.date,g):null;a.val(t),T.$setViewValue(t),b&&(i.isOpen=!1,a[0].focus())},i.keydown=function(e){27===e.which&&(e.stopPropagation(),i.isOpen=!1,a[0].focus())},i.select=function(e,t){var n;t.stopPropagation(),"today"===e&&(n=new Date,angular.isDate(i.date)?(e=new Date(i.date)).setFullYear(n.getFullYear(),n.getMonth(),n.getDate()):(e=c.fromTimezone(n,x.getOption("timezone"))).setHours(0,0,0,0)),i.dateSelection(e)},i.close=function(e){e.stopPropagation(),i.isOpen=!1,a[0].focus()},i.disabled=angular.isDefined(o.disabled)||!1,o.ngDisabled&&P.push(i.$parent.$watch(e(o.ngDisabled),function(e){i.disabled=e})),i.$watch("isOpen",function(e){e?i.disabled?i.isOpen=!1:f(function(){F(),$&&i.$broadcast("uib:datepicker.focus"),l.on("click",U);var e=o.popupPlacement?o.popupPlacement:d.placement;v||u.parsePlacement(e)[2]?(C=C||angular.element(u.scrollParent(a)))&&C.on("scroll",F):C=null,angular.element(r).on("resize",F)},0,!1):(l.off("click",U),C&&C.off("scroll",F),angular.element(r).off("resize",F))}),i.$on("uib:datepicker.mode",function(){f(F,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,o){var i=o[0];o[1].init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(a){return function(n,o){var i;return function(){var e=this,t=Array.prototype.slice.call(arguments);i&&a.cancel(i),i=a(function(){n.apply(e,t)},o)}}}]),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var i={};return{entries:function(){return Object.keys(i).map(function(e){return{key:e,value:i[e]}})},get:function(e){return i[e]},hasKey:function(e){return!!i[e]},keys:function(){return Object.keys(i)},put:function(e,t){i[e]||(i[e]=[]),i[e].push(t)},remove:function(e,t){var n,o=i[e];o&&(-1!==(n=o.indexOf(t))&&o.splice(n,1),o.length||delete i[e])}}}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.multiMap","ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope","$$multiMap",function(a,o,e){var r=null,l=e.createNew();this.isOnlyOpen=function(n,e){var t=l.get(e);if(t&&t.reduce(function(e,t){return t.scope===n?t:e},{}))return 1===t.length;return!1},this.open=function(e,t,n){var o;r||a.on("click",s),r&&r!==e&&(r.isOpen=!1),r=e,n&&((o=l.get(n))&&-1!==o.map(function(e){return e.scope}).indexOf(e)||l.put(n,{scope:e}))},this.close=function(n,e,t){var o,i;r===n&&(a.off("click",s),a.off("keydown",this.keybindFilter),r=null),t&&(!(o=l.get(t))||(i=o.reduce(function(e,t){return t.scope===n?t:e},{}))&&l.remove(t,i))};var s=function(e){var t,n;r&&r.isOpen&&(e&&"disabled"===r.getAutoClose()||e&&3===e.which||(t=r.getToggleElement(),e&&t&&t[0].contains(e.target)||(n=r.getDropdownElement(),e&&"outsideClick"===r.getAutoClose()&&n&&n[0].contains(e.target)||(r.focusToggleElement(),r.isOpen=!1,o.$$phase||r.$apply()))))};this.keybindFilter=function(e){var t,n,o,i;r&&(t=r.getDropdownElement(),n=r.getToggleElement(),o=t&&t[0].contains(e.target),i=n&&n[0].contains(e.target),27===e.which?(e.stopPropagation(),r.focusToggleElement(),s()):r.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&r.isOpen&&(o||i)&&(e.preventDefault(),e.stopPropagation(),r.focusDropdownEntry(e.which)))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(g,b,v,$,e,y,w,D,k,C,T){var x,t,M=this,O=g.$new(),E=e.appendToOpenClass,P=e.openClass,S=angular.noop,A=v.onToggle?$(v.onToggle):angular.noop,n=!1,I=k.find("body");function U(){b.append(M.dropdownMenu)}b.addClass("dropdown"),this.init=function(){v.isOpen&&(t=$(v.isOpen),S=t.assign,g.$watch(t,function(e){O.isOpen=!!e})),n=angular.isDefined(v.keyboardNav)},this.toggle=function(e){return O.isOpen=arguments.length?!!e:!O.isOpen,angular.isFunction(S)&&S(O,O.isOpen),O.isOpen},this.isOpen=function(){return O.isOpen},O.getToggleElement=function(){return M.toggleElement},O.getAutoClose=function(){return v.autoClose||"always"},O.getElement=function(){return b},O.isKeynavEnabled=function(){return n},O.focusDropdownEntry=function(e){var t=M.dropdownMenu?angular.element(M.dropdownMenu).find("a"):b.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(M.selectedOption)?M.selectedOption=M.selectedOption===t.length-1?M.selectedOption:M.selectedOption+1:M.selectedOption=0;break;case 38:angular.isNumber(M.selectedOption)?M.selectedOption=0===M.selectedOption?0:M.selectedOption-1:M.selectedOption=t.length-1}t[M.selectedOption].focus()},O.getDropdownElement=function(){return M.dropdownMenu},O.focusToggleElement=function(){M.toggleElement&&M.toggleElement[0].focus()},O.$watch("isOpen",function(e,t){var n,o,i,a,r,l,s,u=null,p=!1;!angular.isDefined(v.dropdownAppendTo)||(n=$(v.dropdownAppendTo)(O))&&(u=angular.element(n)),angular.isDefined(v.dropdownAppendToBody)&&!1!==$(v.dropdownAppendToBody)(O)&&(p=!0),p&&!u&&(u=I),u&&M.dropdownMenu&&(e?(u.append(M.dropdownMenu),b.on("$destroy",U)):(b.off("$destroy",U),U())),u&&M.dropdownMenu&&(a=0,l={top:(o=D.positionElements(b,M.dropdownMenu,"bottom-left",!0)).top+"px",display:e?"block":"none"},(s=M.dropdownMenu.hasClass("dropdown-menu-right"))?(l.left="auto",(i=D.scrollbarPadding(u)).heightOverflow&&i.scrollbarWidth&&(a=i.scrollbarWidth),l.right=window.innerWidth-a-(o.left+b.prop("offsetWidth"))+"px"):(l.left=o.left+"px",l.right="auto"),p||(r=D.offset(u),l.top=o.top-r.top+"px",s?l.right=window.innerWidth-(o.left-r.left+b.prop("offsetWidth"))+"px":l.left=o.left-r.left+"px"),M.dropdownMenu.css(l));var c,d=u||b,f=u?E:P,m=d.hasClass(f),h=y.isOnlyOpen(g,u);m===!e&&w[u?h?"removeClass":"addClass":e?"addClass":"removeClass"](d,f).then(function(){angular.isDefined(e)&&e!==t&&A(g,{open:!!e})}),e?(M.dropdownMenuTemplateUrl?T(M.dropdownMenuTemplateUrl).then(function(e){x=O.$new(),C(e.trim())(x,function(e){var t=e;M.dropdownMenu.replaceWith(t),M.dropdownMenu=t,k.on("keydown",y.keybindFilter)})}):k.on("keydown",y.keybindFilter),O.focusToggleElement(),y.open(O,b,u)):(y.close(O,b,u),M.dropdownMenuTemplateUrl&&(x&&x.$destroy(),c=angular.element('<ul class="dropdown-menu"></ul>'),M.dropdownMenu.replaceWith(c),M.dropdownMenu=c),M.selectedOption=null),angular.isFunction(S)&&S(g,e)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,o){o.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,o){var i;o&&!angular.isDefined(n.dropdownNested)&&(t.addClass("dropdown-menu"),(i=n.templateUrl)&&(o.dropdownMenuTemplateUrl=i),o.dropdownMenu||(o.dropdownMenu=t))}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(t,n,o,i){var e;i&&(n.addClass("dropdown-toggle"),i.toggleElement=n,e=function(e){e.preventDefault(),n.hasClass("disabled")||o.disabled||t.$apply(function(){i.toggle()})},n.on("click",e),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(i.isOpen,function(e){n.attr("aria-expanded",!!e)}),t.$on("$destroy",function(){n.off("click",e)}))}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var o=[];return{add:function(e,t){o.push({key:e,value:t})},get:function(e){for(var t=0;t<o.length;t++)if(e===o[t].key)return o[t]},keys:function(){for(var e=[],t=0;t<o.length;t++)e.push(o[t].key);return e},top:function(){return o[o.length-1]},remove:function(e){for(var t=-1,n=0;n<o.length;n++)if(e===o[n].key){t=n;break}return o.splice(t,1)[0]},removeTop:function(){return o.pop()},length:function(){return o.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(a,r){var l=e.resolver?a.get(e.resolver):null;return{resolve:function(e,t,n,o){if(l)return l.resolve(e,t,n,o);var i=[];return angular.forEach(e,function(e){angular.isFunction(e)||angular.isArray(e)?i.push(r.resolve(a.invoke(e))):angular.isString(e)?i.push(r.resolve(a.get(e))):i.push(r.resolve(e))}),r.all(i).then(function(n){var o={},i=0;return angular.forEach(e,function(e,t){o[t]=n[i++]}),o})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(r,e,t){return{restrict:"A",compile:function(e,t){return e.addClass(t.backdropClass),n}};function n(o,i,a){a.modalInClass&&(r.addClass(i,a.modalInClass),o.$on(t.NOW_CLOSING_EVENT,function(e,t){var n=t();o.modalOptions.animation?r.removeClass(i,a.modalInClass).then(n):n()}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(n,a,r,l){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(t,o,i){o.addClass(i.windowTopClass||""),t.size=i.size,t.close=function(e){var t=n.getTop();t&&t.value.backdrop&&"static"!==t.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),n.dismiss(t.key,"backdrop click"))},o.on("click",t.close),t.$isRendered=!0;var e=a.defer();t.$$postDigest(function(){e.resolve()}),e.promise.then(function(){var e=null;i.modalInClass&&(e=r(o,{addClass:i.modalInClass}).start(),t.$on(n.NOW_CLOSING_EVENT,function(e,t){var n=t();r(o,{removeClass:i.modalInClass}).start().then(n)})),a.when(e).then(function(){var e,t=n.getTop();t&&n.modalRendered(t.key),l[0].activeElement&&o[0].contains(l[0].activeElement)||((e=o[0].querySelector("[autofocus]"))?e.focus():o[0].focus())})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(a){return{link:function(e,t,n,o,i){i(e.$parent,function(e){t.empty(),a.enter(e,t)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(s,e,u,p,c,l,t,n,d){var f,m,h,g="modal-open",b=n.createNew(),v=t.createNew(),$={NOW_CLOSING_EVENT:"modal.stack.now-closing"},y=0,w=null,D="data-bootstrap-modal-aria-hidden-count",k=/[A-Z]/g;function C(){for(var e=-1,t=b.keys(),n=0;n<t.length;n++)b.get(t[n]).value.backdrop&&(e=n);return-1<e&&e<y&&(e=y),e}function o(n,e){var o=b.get(n).value,i=o.appendTo;b.remove(n),(w=b.top())&&(y=parseInt(w.value.modalDomEl.attr("index"),10)),a(o.modalDomEl,o.modalScope,function(){var e=o.openedClass||g;v.remove(e,n);var t=v.hasKey(e);i.toggleClass(e,t),!t&&h&&h.heightOverflow&&h.scrollbarWidth&&(h.originalRight?i.css({paddingRight:h.originalRight+"px"}):i.css({paddingRight:""}),h=null),T(!0)},o.closedDeferred),function(){{f&&-1===C()&&(a(f,m,function(){0}),m=f=void 0)}}(),e&&e.focus?e.focus():i.focus&&i.focus()}function T(e){var t;0<b.length()&&(t=b.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function a(e,t,n,o){var i,a=null;return t.$broadcast($.NOW_CLOSING_EVENT,function(){return i||(i=l.defer(),a=i.promise),function(){i.resolve()}}),l.when(a).then(r);function r(){r.done||(r.done=!0,s.leave(e).then(function(){n&&n(),e.remove(),o&&o.resolve()}),t.$destroy())}}function i(e){if(e.isDefaultPrevented())return e;var t=b.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),c.$apply(function(){$.dismiss(t.key,"escape key press")}));break;case 9:var n=$.loadFocusElementList(t),o=!1;e.shiftKey?($.isFocusInFirstItem(e,n)||$.isModalFocused(e,t))&&(o=$.focusLastFocusableElement(n)):$.isFocusInLastItem(e,n)&&(o=$.focusFirstFocusableElement(n)),o&&(e.preventDefault(),e.stopPropagation())}}function r(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}function x(){Array.prototype.forEach.call(document.querySelectorAll("["+D+"]"),function(e){var t=parseInt(e.getAttribute(D),10)-1;e.setAttribute(D,t),t||(e.removeAttribute(D),e.removeAttribute("aria-hidden"))})}return c.$watch(C,function(e){m&&(m.index=e)}),u.on("keydown",i),c.$on("$destroy",function(){u.off("keydown",i)}),$.open=function(e,t){var n=u[0].activeElement,o=t.openedClass||g;T(!1),w=b.top(),b.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,closedDeferred:t.closedDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass,windowTopClass:t.windowTopClass,animation:t.animation,appendTo:t.appendTo}),v.put(o,e);var i,a=t.appendTo,r=C();0<=r&&!f&&((m=c.$new(!0)).modalOptions=t,m.index=r,(f=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),t.backdropClass&&f.addClass(t.backdropClass),t.animation&&f.attr("modal-animation","true"),p(f)(m),s.enter(f,a),d.isScrollable(a)&&(h=d.scrollbarPadding(a)).heightOverflow&&h.scrollbarWidth&&a.css({paddingRight:h.right+"px"})),t.component?(i=document.createElement(t.component.name.replace(k,function(e,t){return(t?"-":"")+e.toLowerCase()})),(i=angular.element(i)).attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):i=t.content,y=w?parseInt(w.value.modalDomEl.attr("index"),10)+1:0;var l=angular.element('<div uib-modal-window="modal-window"></div>');l.attr({class:"modal","template-url":t.windowTemplateUrl,"window-top-class":t.windowTopClass,role:"dialog","aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy,size:t.size,index:y,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(i),t.windowClass&&l.addClass(t.windowClass),t.animation&&l.attr("modal-animation","true"),a.addClass(o),t.scope&&(t.scope.$$topModalIndex=y),s.enter(p(l)(t.scope),a),b.top().value.modalDomEl=l,b.top().value.modalOpener=n,function e(t){if(!t||"BODY"===t[0].tagName)return;n(t).forEach(function(e){var t="true"===e.getAttribute("aria-hidden"),n=parseInt(e.getAttribute(D),10);n=n||(t?1:0),e.setAttribute(D,n+1),e.setAttribute("aria-hidden","true")});return e(t.parent());function n(t){var e=t.parent()?t.parent().children():[];return Array.prototype.filter.call(e,function(e){return e!==t[0]})}}(l)},$.close=function(e,t){var n=b.get(e);return x(),n&&r(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),o(e,n.value.modalOpener),!0):!n},$.dismiss=function(e,t){var n=b.get(e);return x(),n&&r(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),o(e,n.value.modalOpener),!0):!n},$.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},$.getTop=function(){return b.top()},$.modalRendered=function(e){var t=b.get(e);t&&t.value.renderDeferred.resolve()},$.focusFirstFocusableElement=function(e){return 0<e.length&&(e[0].focus(),!0)},$.focusLastFocusableElement=function(e){return 0<e.length&&(e[e.length-1].focus(),!0)},$.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},$.isFocusInFirstItem=function(e,t){return 0<t.length&&(e.target||e.srcElement)===t[0]},$.isFocusInLastItem=function(e,t){return 0<t.length&&(e.target||e.srcElement)===t[t.length-1]},$.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]");return n?Array.prototype.filter.call(n,function(e){return!!((t=e).offsetWidth||t.offsetHeight||t.getClientRects().length);var t}):n}}},$}]).provider("$uibModal",function(){var v={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(h,i,a,r,g,l,b){var e={};var s=null;return e.getPromiseChain=function(){return s},e.open=function(u){var e,t,n,p=i.defer(),c=i.defer(),d=i.defer(),f=i.defer(),m={result:p.promise,opened:c.promise,closed:d.promise,rendered:f.promise,close:function(e){return b.close(m,e)},dismiss:function(e){return b.dismiss(m,e)}};if((u=angular.extend({},v.options,u)).resolve=u.resolve||{},u.appendTo=u.appendTo||a.find("body").eq(0),!u.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!u.component&&!u.template&&!u.templateUrl)throw new Error("One of component or template or templateUrl options is required.");function o(){return e}return e=u.component?i.when(l.resolve(u.resolve,{},null,null)):i.all([(t=u).template?i.when(t.template):r(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl),l.resolve(u.resolve,{},null,null)]),n=s=i.all([s]).then(o,o).then(function(a){var e=u.scope||h,r=e.$new();r.$close=m.close,r.$dismiss=m.dismiss,r.$on("$destroy",function(){r.$$uibDestructionScheduled||r.$dismiss("$uibUnscheduledDestruction")});var t,n,o={scope:r,deferred:p,renderDeferred:f,closedDeferred:d,animation:u.animation,backdrop:u.backdrop,keyboard:u.keyboard,backdropClass:u.backdropClass,windowTopClass:u.windowTopClass,windowClass:u.windowClass,windowTemplateUrl:u.windowTemplateUrl,ariaLabelledBy:u.ariaLabelledBy,ariaDescribedBy:u.ariaDescribedBy,size:u.size,openedClass:u.openedClass,appendTo:u.appendTo},i={},l={};function s(n,e,t,o){n.$scope=r,n.$scope.$resolve={},t?n.$scope.$uibModalInstance=m:n.$uibModalInstance=m;var i=e?a[1]:a;angular.forEach(i,function(e,t){o&&(n[t]=e),n.$scope.$resolve[t]=e})}u.component?(s(i,!1,!0,!1),i.name=u.component,o.component=i):u.controller&&(s(l,!0,!1,!0),n=g(u.controller,l,!0,u.controllerAs),u.controllerAs&&u.bindToController&&((t=n.instance).$close=r.$close,t.$dismiss=r.$dismiss,angular.extend(t,{$resolve:l.$scope.$resolve},e)),t=n(),angular.isFunction(t.$onInit)&&t.$onInit()),u.component||(o.content=a[0]),b.open(m,o),c.resolve(!0)},function(e){c.reject(e),p.reject(e)}).finally(function(){s===n&&(s=null)}),m},e}]};return v}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(n,o,i){n.setNumPages=i.numPages?e(i.numPages).assign:angular.noop,n.ngModelCtrl={$setViewValue:angular.noop},n._watchers=[],n.init=function(e,t){n.ngModelCtrl=e,n.config=t,e.$render=function(){n.render()},i.itemsPerPage?n._watchers.push(o.$parent.$watch(i.itemsPerPage,function(e){n.itemsPerPage=parseInt(e,10),o.totalPages=n.calculateTotalPages(),n.updatePage()})):n.itemsPerPage=t.itemsPerPage,o.$watch("totalItems",function(e,t){!angular.isDefined(e)&&e===t||(o.totalPages=n.calculateTotalPages(),n.updatePage())})},n.calculateTotalPages=function(){var e=n.itemsPerPage<1?1:Math.ceil(o.totalItems/n.itemsPerPage);return Math.max(e||0,1)},n.render=function(){o.page=parseInt(n.ngModelCtrl.$viewValue,10)||1},o.selectPage=function(e,t){t&&t.preventDefault(),(!o.ngDisabled||!t)&&o.page!==e&&0<e&&e<=o.totalPages&&(t&&t.target&&t.target.blur(),n.ngModelCtrl.$setViewValue(e),n.ngModelCtrl.$render())},o.getText=function(e){return o[e+"Text"]||n.config[e+"Text"]},o.noPrevious=function(){return 1===o.page},o.noNext=function(){return o.page===o.totalPages},n.updatePage=function(){n.setNumPages(o.$parent,o.totalPages),o.page>o.totalPages?o.selectPage(o.totalPages):n.ngModelCtrl.$render()},o.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,o){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):o.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(r){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},link:function(e,t,n,o){t.addClass("pager");var i=o[0],a=o[1];a&&i.init(a,r)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(t,n,e,o,i){var a=this,m=angular.isDefined(n.maxSize)?t.$parent.$eval(n.maxSize):i.maxSize,h=angular.isDefined(n.rotate)?t.$parent.$eval(n.rotate):i.rotate,g=angular.isDefined(n.forceEllipses)?t.$parent.$eval(n.forceEllipses):i.forceEllipses,b=angular.isDefined(n.boundaryLinkNumbers)?t.$parent.$eval(n.boundaryLinkNumbers):i.boundaryLinkNumbers,v=angular.isDefined(n.pageLabel)?function(e){return t.$parent.$eval(n.pageLabel,{$page:e})}:angular.identity;function $(e,t,n){return{number:e,text:t,active:n}}t.boundaryLinks=angular.isDefined(n.boundaryLinks)?t.$parent.$eval(n.boundaryLinks):i.boundaryLinks,t.directionLinks=angular.isDefined(n.directionLinks)?t.$parent.$eval(n.directionLinks):i.directionLinks,n.$set("role","menu"),o.create(this,t,n),n.maxSize&&a._watchers.push(t.$parent.$watch(e(n.maxSize),function(e){m=parseInt(e,10),a.render()}));var r=this.render;this.render=function(){r(),0<t.page&&t.page<=t.totalPages&&(t.pages=function(e,t){var n=[],o=1,i=t,a=angular.isDefined(m)&&m<t;a&&(h?t<(i=(o=Math.max(e-Math.floor(m/2),1))+m-1)&&(o=(i=t)-m+1):(o=(Math.ceil(e/m)-1)*m+1,i=Math.min(o+m-1,t)));for(var r,l,s,u,p,c,d=o;d<=i;d++){var f=$(d,v(d),d===e);n.push(f)}return a&&0<m&&(!h||g||b)&&(1<o&&((!b||3<o)&&(r=$(o-1,"...",!1),n.unshift(r)),b&&(3===o&&(l=$(2,"2",!1),n.unshift(l)),s=$(1,"1",!1),n.unshift(s))),i<t&&((!b||i<t-2)&&(u=$(i+1,"...",!1),n.push(u)),b&&(i===t-2&&(p=$(t-1,t-1,!1),n.push(p)),c=$(t,t,!1),n.push(c)))),n}(t.page,t.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,r){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},link:function(e,t,n,o){t.addClass("pagination");var i=o[0],a=o[1];a&&i.init(a,r)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var l={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},s={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},u={};this.options=function(e){angular.extend(u,e)},this.setTriggers=function(e){angular.extend(s,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(e,a,Y,B,W,r,t,j,n){var _=n.createNew();function o(e){var t;27!==e.which||(t=_.top())&&(t.value.close(),t=null)}return B.on("keyup",o),t.$on("$destroy",function(){B.off("keyup",o)}),function(V,L,o,z){function q(e){var t=(e||z.trigger||o).split(" "),n=t.map(function(e){return s[e]||e});return{show:t,hide:n}}z=angular.extend({},l,u,z);var e=V.replace(/[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()}),t=r.startSymbol(),n=r.endSymbol(),i="<div "+e+'-popup uib-title="'+t+"title"+n+'" '+(z.useContentExp?'content-exp="contentExp()" ':'content="'+t+"content"+n+'" ')+'origin-scope="origScope" class="uib-position-measure '+L+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(e,t){var R=a(i);return function(o,a,i){var r,e,t,n,l,s,u,p,c=!!angular.isDefined(z.appendToBody)&&z.appendToBody,d=q(void 0),f=angular.isDefined(i[L+"Enable"]),m=o.$new(!0),h=!1,g=!!angular.isDefined(i[L+"IsOpen"])&&j(i[L+"IsOpen"]),b=!!z.useContentExp&&j(i[V]),v=[],$=function(){r&&r.html()&&(s=s||Y(function(){var e=W.positionElements(a,r,m.placement,c),n=angular.isDefined(r.offsetHeight)?r.offsetHeight:r.prop("offsetHeight"),o=c?W.offset(a):W.position(a);r.css({top:e.top+"px",left:e.left+"px"});var i=e.placement.split("-");r.hasClass(i[0])||(r.removeClass(p.split("-")[0]),r.addClass(i[0])),r.hasClass(z.placementClassPrefix+e.placement)||(r.removeClass(z.placementClassPrefix+p),r.addClass(z.placementClassPrefix+e.placement)),u=Y(function(){var e=angular.isDefined(r.offsetHeight)?r.offsetHeight:r.prop("offsetHeight"),t=W.adjustTop(i,o,n,e);t&&r.css(t),u=null},0,!1),r.hasClass("uib-position-measure")?(W.positionArrow(r,e.placement),r.removeClass("uib-position-measure")):p!==e.placement&&W.positionArrow(r,e.placement),p=e.placement,s=null},0,!1))};function y(){(m.isOpen?D:w)()}function w(){f&&!o.$eval(i[L+"Enable"])||(x(),function(){m.title=i[L+"Title"],m.content=b?b(o):i[V];m.popupClass=i[L+"Class"],m.placement=angular.isDefined(i[L+"Placement"])?i[L+"Placement"]:z.placement;var e=W.parsePlacement(m.placement);p=e[1]?e[0]+"-"+e[1]:e[0];var t=parseInt(i[L+"PopupDelay"],10),n=parseInt(i[L+"PopupCloseDelay"],10);m.popupDelay=isNaN(t)?z.popupDelay:t,m.popupCloseDelay=isNaN(n)?z.popupCloseDelay:n}(),m.popupDelay?n=n||Y(k,m.popupDelay,!1):k())}function D(){C(),m.popupCloseDelay?l=l||Y(T,m.popupCloseDelay,!1):T()}function k(){if(C(),x(),!m.content)return angular.noop;!function(){if(r)return;e=m.$new(),r=R(e,function(e){c?B.find("body").append(e):a.after(e)}),_.add(m,{close:T}),function(){v.length=0,b?(v.push(o.$watch(b,function(e){!(m.content=e)&&m.isOpen&&T()})),v.push(e.$watch(function(){h||(h=!0,e.$$postDigest(function(){h=!1,m&&m.isOpen&&$()}))}))):v.push(i.$observe(V,function(e){(!(m.content=e)&&m.isOpen?T:$)()}));v.push(i.$observe(L+"Title",function(e){m.title=e,m.isOpen&&$()})),v.push(i.$observe(L+"Placement",function(e){m.placement=e||z.placement,m.isOpen&&$()}))}()}(),m.$evalAsync(function(){O(m.isOpen=!0),$()})}function C(){n&&(Y.cancel(n),n=null),s&&(Y.cancel(s),s=null)}function T(){m&&m.$evalAsync(function(){m&&(O(m.isOpen=!1),m.animation?t=t||Y(M,150,!1):M())})}function x(){l&&(Y.cancel(l),l=null),t&&(Y.cancel(t),t=null)}function M(){C(),x(),v.length&&(angular.forEach(v,function(e){e()}),v.length=0),r&&(r.remove(),r=null,u&&Y.cancel(u)),_.remove(m),e&&(e.$destroy(),e=null)}function O(e){g&&angular.isFunction(g.assign)&&g.assign(o,e)}function E(e){m&&m.isOpen&&r&&(a[0].contains(e.target)||r[0].contains(e.target)||D())}function P(e){27===e.which&&D()}m.origScope=o,m.isOpen=!1,m.contentExp=function(){return m.content},i.$observe("disabled",function(e){e&&C(),e&&m.isOpen&&T()}),g&&o.$watch(g,function(e){m&&!e===m.isOpen&&y()});function S(){d.show.forEach(function(e){"outsideClick"===e?a.off("click",y):(a.off(e,w),a.off(e,y)),a.off("keypress",P)}),d.hide.forEach(function(e){"outsideClick"===e?B.off("click",E):a.off(e,D)})}var A,I,U;A=[],I=[],U=o.$eval(i[L+"Trigger"]),S(),"none"!==(d=angular.isObject(U)?(Object.keys(U).forEach(function(e){A.push(e),I.push(U[e])}),{show:A,hide:I}):q(U)).show&&d.show.forEach(function(e,t){"outsideClick"===e?(a.on("click",y),B.on("click",E)):e===d.hide[t]?a.on(e,y):e&&(a.on(e,w),a.on(d.hide[t],D)),a.on("keypress",P)});var N=o.$eval(i[L+"Animation"]);m.animation=angular.isDefined(N)?!!N:z.animation;var F=L+"AppendToBody",H=F in i&&void 0===i[F]||o.$eval(i[F]),c=angular.isDefined(H)?H:c;o.$on("$destroy",function(){S(),M(),m=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(c,o,d,f){return{link:function(e,a,t){function r(){n&&(n.remove(),n=null),l&&(l.$destroy(),l=null),s&&(c.leave(s).then(function(){n=null}),n=s,s=null)}var l,n,s,u=e.$eval(t.tooltipTemplateTranscludeScope),p=0;e.$watch(o.parseAsResourceUrl(t.uibTooltipTemplateTransclude),function(o){var i=++p;o?(f(o,!0).then(function(e){var t,n;i===p&&(t=u.$new(),n=d(e)(t,function(e){r(),c.enter(e,a)}),s=n,(l=t).$emit("$includeContentLoaded",o))},function(){i===p&&(r(),e.$emit("$includeContentError",o))}),e.$emit("$includeContentRequested",o)):r()}),e.$on("$destroy",r)}}}]).directive("uibTooltipClasses",["$uibPosition",function(i){return{restrict:"A",link:function(e,t,n){var o;e.placement&&(o=i.parsePlacement(e.placement),t.addClass(o[0])),e.popupClass&&t.addClass(e.popupClass),e.animation&&t.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){var o=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;function a(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}this.bars=[],e.max=a(),this.addBar=function(t,e,n){i||e.css({transition:"none"}),this.bars.push(t),t.max=a(),t.title=n&&angular.isDefined(n.title)?n.title:"progressbar",t.$watch("value",function(e){t.recalculatePercentage()}),t.recalculatePercentage=function(){var e=o.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);100<e&&(t.percent-=e-100)},t.$on("$destroy",function(){e=null,o.removeBar(t)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){o.bars.forEach(function(e){e.max=a(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,o){o.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,o){o.addBar(e,angular.element(t.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(o,i,a){var r={$setViewValue:angular.noop},n=this;this.init=function(e){(r=e).$render=this.render,r.$formatters.push(function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e}),this.stateOn=angular.isDefined(i.stateOn)?o.$parent.$eval(i.stateOn):a.stateOn,this.stateOff=angular.isDefined(i.stateOff)?o.$parent.$eval(i.stateOff):a.stateOff,this.enableReset=angular.isDefined(i.enableReset)?o.$parent.$eval(i.enableReset):a.enableReset;var t=angular.isDefined(i.titles)?o.$parent.$eval(i.titles):a.titles;this.titles=angular.isArray(t)&&0<t.length?t:a.titles;var n=angular.isDefined(i.ratingStates)?o.$parent.$eval(i.ratingStates):new Array(angular.isDefined(i.max)?o.$parent.$eval(i.max):a.max);o.range=this.buildTemplateObjects(n)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},o.rate=function(e){var t;!o.readonly&&0<=e&&e<=o.range.length&&(t=n.enableReset&&r.$viewValue===e?0:e,r.$setViewValue(t),r.$render())},o.enter=function(e){o.readonly||(o.value=e),o.onHover({value:e})},o.reset=function(){o.value=r.$viewValue,o.onLeave()},o.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),o.rate(o.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){o.value=r.$viewValue,o.title=n.getTitle(o.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(e,t,n,o){var i=o[0],a=o[1];i.init(a)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var a,r,l=this;function s(e){for(var t=0;t<l.tabs.length;t++)if(l.tabs[t].index===e)return t}l.tabs=[],l.select=function(e,t){if(!r){var n=s(a),o=l.tabs[n];if(o){if(o.tab.onDeselect({$event:t,$selectedIndex:e}),t&&t.isDefaultPrevented())return;o.tab.active=!1}var i=l.tabs[e];i?(i.tab.onSelect({$event:t}),i.tab.active=!0,l.active=i.index,a=i.index):!i&&angular.isDefined(a)&&(l.active=null,a=null)}},l.addTab=function(e){var t;l.tabs.push({tab:e,index:e.index}),l.tabs.sort(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0}),e.index!==l.active&&(angular.isDefined(l.active)||1!==l.tabs.length)||(t=s(e.index),l.select(t))},l.removeTab=function(e){for(var t,n,o=0;o<l.tabs.length;o++)if(l.tabs[o].tab===e){t=o;break}l.tabs[t].index===l.active&&(n=t===l.tabs.length-1?t-1:t+1%l.tabs.length,l.select(n)),l.tabs.splice(t,1)},e.$watch("tabset.active",function(e){angular.isDefined(e)&&e!==a&&l.select(s(e))}),e.$on("$destroy",function(){r=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(a){return{require:"^uibTabset",replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(o,e,t,i,n){o.disabled=!1,t.disable&&o.$parent.$watch(a(t.disable),function(e){o.disabled=!!e}),angular.isUndefined(t.index)&&(i.tabs&&i.tabs.length?o.index=Math.max.apply(null,i.tabs.map(function(e){return e.index}))+1:o.index=0),angular.isUndefined(t.classes)&&(o.classes=""),o.select=function(e){if(!o.disabled){for(var t,n=0;n<i.tabs.length;n++)if(i.tabs[n].tab===o){t=n;break}i.select(t,e)}},i.addTab(o),o.$on("$destroy",function(){i.removeTab(o)}),o.$transcludeFn=n}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:"^uibTabset",link:function(e,n,t){var o=e.$eval(t.uibTabContentTransclude).tab;o.$transcludeFn(o.$parent,function(e){angular.forEach(e,function(e){var t;(t=e).tagName&&(t.hasAttribute("uib-tab-heading")||t.hasAttribute("data-uib-tab-heading")||t.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===t.tagName.toLowerCase()||"data-uib-tab-heading"===t.tagName.toLowerCase()||"x-uib-tab-heading"===t.tagName.toLowerCase()||"uib:tab-heading"===t.tagName.toLowerCase())?o.headingElement=e:n.append(e)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(a,e,r,t,n,o,l){var s,u,p,i=new Date,c=[],d={$setViewValue:angular.noop},f=angular.isDefined(r.meridians)?a.$parent.$eval(r.meridians):l.meridians||o.DATETIME_FORMATS.AMPMS,m=!angular.isDefined(r.padHours)||a.$parent.$eval(r.padHours);a.tabindex=angular.isDefined(r.tabindex)?r.tabindex:0,e.removeAttr("tabindex"),this.init=function(e,t){(d=e).$render=this.render,d.$formatters.unshift(function(e){return e?new Date(e):null});var n=t.eq(0),o=t.eq(1),i=t.eq(2);s=n.controller("ngModel"),u=o.controller("ngModel"),p=i.controller("ngModel"),(angular.isDefined(r.mousewheel)?a.$parent.$eval(r.mousewheel):l.mousewheel)&&this.setupMousewheelEvents(n,o,i),(angular.isDefined(r.arrowkeys)?a.$parent.$eval(r.arrowkeys):l.arrowkeys)&&this.setupArrowkeyEvents(n,o,i),a.readonlyInput=angular.isDefined(r.readonlyInput)?a.$parent.$eval(r.readonlyInput):l.readonlyInput,this.setupInputEvents(n,o,i)};var h=l.hourStep;r.hourStep&&c.push(a.$parent.$watch(t(r.hourStep),function(e){h=+e}));var g,b,v=l.minuteStep;r.minuteStep&&c.push(a.$parent.$watch(t(r.minuteStep),function(e){v=+e})),c.push(a.$parent.$watch(t(r.min),function(e){var t=new Date(e);g=isNaN(t)?void 0:t})),c.push(a.$parent.$watch(t(r.max),function(e){var t=new Date(e);b=isNaN(t)?void 0:t}));var $=!1;r.ngDisabled&&c.push(a.$parent.$watch(t(r.ngDisabled),function(e){$=e})),a.noIncrementHours=function(){var e=O(i,60*h);return $||b<e||e<i&&e<g},a.noDecrementHours=function(){var e=O(i,60*-h);return $||e<g||i<e&&b<e},a.noIncrementMinutes=function(){var e=O(i,v);return $||b<e||e<i&&e<g},a.noDecrementMinutes=function(){var e=O(i,-v);return $||e<g||i<e&&b<e},a.noIncrementSeconds=function(){var e=E(i,y);return $||b<e||e<i&&e<g},a.noDecrementSeconds=function(){var e=E(i,-y);return $||e<g||i<e&&b<e},a.noToggleMeridian=function(){return i.getHours()<12?$||O(i,720)>b:$||O(i,-720)<g};var y=l.secondStep;function w(){var e=+a.hours;if((a.showMeridian?0<e&&e<13:0<=e&&e<24)&&""!==a.hours)return a.showMeridian&&(12===e&&(e=0),a.meridian===f[1]&&(e+=12)),e}function D(){var e=+a.minutes;if(0<=e&&e<60&&""!==a.minutes)return e}function k(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function C(e){T(),d.$setViewValue(new Date(i)),x(e)}function T(){s&&s.$setValidity("hours",!0),u&&u.$setValidity("minutes",!0),p&&p.$setValidity("seconds",!0),d.$setValidity("time",!0),a.invalidHours=!1,a.invalidMinutes=!1,a.invalidSeconds=!1}function x(e){var t,n,o;d.$modelValue?(t=i.getHours(),n=i.getMinutes(),o=i.getSeconds(),a.showMeridian&&(t=0===t||12===t?12:t%12),a.hours="h"===e?t:k(t,!m),"m"!==e&&(a.minutes=k(n)),a.meridian=i.getHours()<12?f[0]:f[1],"s"!==e&&(a.seconds=k(o)),a.meridian=i.getHours()<12?f[0]:f[1]):(a.hours=null,a.minutes=null,a.seconds=null,a.meridian=f[0])}function M(e){i=E(i,e),C()}function O(e,t){return E(e,60*t)}function E(e,t){var n=new Date(e.getTime()+1e3*t),o=new Date(e);return o.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),o}function P(){return(null===a.hours||""===a.hours)&&(null===a.minutes||""===a.minutes)&&(!a.showSeconds||a.showSeconds&&(null===a.seconds||""===a.seconds))}r.secondStep&&c.push(a.$parent.$watch(t(r.secondStep),function(e){y=+e})),a.showSeconds=l.showSeconds,r.showSeconds&&c.push(a.$parent.$watch(t(r.showSeconds),function(e){a.showSeconds=!!e})),a.showMeridian=l.showMeridian,r.showMeridian&&c.push(a.$parent.$watch(t(r.showMeridian),function(e){var t,n;a.showMeridian=!!e,d.$error.time?(t=w(),n=D(),angular.isDefined(t)&&angular.isDefined(n)&&(i.setHours(t),C())):x()})),this.setupMousewheelEvents=function(e,t,n){function o(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||0<t}e.on("mousewheel wheel",function(e){$||a.$apply(o(e)?a.incrementHours():a.decrementHours()),e.preventDefault()}),t.on("mousewheel wheel",function(e){$||a.$apply(o(e)?a.incrementMinutes():a.decrementMinutes()),e.preventDefault()}),n.on("mousewheel wheel",function(e){$||a.$apply(o(e)?a.incrementSeconds():a.decrementSeconds()),e.preventDefault()})},this.setupArrowkeyEvents=function(e,t,n){e.on("keydown",function(e){$||(38===e.which?(e.preventDefault(),a.incrementHours(),a.$apply()):40===e.which&&(e.preventDefault(),a.decrementHours(),a.$apply()))}),t.on("keydown",function(e){$||(38===e.which?(e.preventDefault(),a.incrementMinutes(),a.$apply()):40===e.which&&(e.preventDefault(),a.decrementMinutes(),a.$apply()))}),n.on("keydown",function(e){$||(38===e.which?(e.preventDefault(),a.incrementSeconds(),a.$apply()):40===e.which&&(e.preventDefault(),a.decrementSeconds(),a.$apply()))})},this.setupInputEvents=function(e,t,n){if(a.readonlyInput)return a.updateHours=angular.noop,a.updateMinutes=angular.noop,void(a.updateSeconds=angular.noop);function o(e,t,n){d.$setViewValue(null),d.$setValidity("time",!1),angular.isDefined(e)&&(a.invalidHours=e,s&&s.$setValidity("hours",!1)),angular.isDefined(t)&&(a.invalidMinutes=t,u&&u.$setValidity("minutes",!1)),angular.isDefined(n)&&(a.invalidSeconds=n,p&&p.$setValidity("seconds",!1))}a.updateHours=function(){var e=w(),t=D();d.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(i.setHours(e),i.setMinutes(t),i<g||b<i?o(!0):C("h")):o(!0)},e.on("blur",function(e){d.$setTouched(),P()?T():null===a.hours||""===a.hours?o(!0):!a.invalidHours&&a.hours<10&&a.$apply(function(){a.hours=k(a.hours,!m)})}),a.updateMinutes=function(){var e=D(),t=w();d.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(i.setHours(t),i.setMinutes(e),i<g||b<i?o(void 0,!0):C("m")):o(void 0,!0)},t.on("blur",function(e){d.$setTouched(),P()?T():null===a.minutes?o(void 0,!0):!a.invalidMinutes&&a.minutes<10&&a.$apply(function(){a.minutes=k(a.minutes)})}),a.updateSeconds=function(){var e,t=0<=(e=+a.seconds)&&e<60?e:void 0;d.$setDirty(),angular.isDefined(t)?(i.setSeconds(t),C("s")):o(void 0,void 0,!0)},n.on("blur",function(e){P()?T():!a.invalidSeconds&&a.seconds<10&&a.$apply(function(){a.seconds=k(a.seconds)})})},this.render=function(){var e=d.$viewValue;isNaN(e)?(d.$setValidity("time",!1),n.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(e&&(i=e),i<g||b<i?(d.$setValidity("time",!1),a.invalidHours=!0,a.invalidMinutes=!0):T(),x())},a.showSpinners=angular.isDefined(r.showSpinners)?a.$parent.$eval(r.showSpinners):l.showSpinners,a.incrementHours=function(){a.noIncrementHours()||M(60*h*60)},a.decrementHours=function(){a.noDecrementHours()||M(60*-h*60)},a.incrementMinutes=function(){a.noIncrementMinutes()||M(60*v)},a.decrementMinutes=function(){a.noDecrementMinutes()||M(60*-v)},a.incrementSeconds=function(){a.noIncrementSeconds()||M(y)},a.decrementSeconds=function(){a.noDecrementSeconds()||M(-y)},a.toggleMeridian=function(){var e=D(),t=w();a.noToggleMeridian()||(angular.isDefined(e)&&angular.isDefined(t)?M(720*(i.getHours()<12?60:-60)):a.meridian=a.meridian===f[0]?f[1]:f[0])},a.blur=function(){d.$setTouched()},a.$on("$destroy",function(){for(;c.length;)c.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(e,t){return t.templateUrl||n.templateUrl},link:function(e,t,n,o){var i=o[0],a=o[1];a&&i.init(a,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var o=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(e){var t=e.match(o);if(!t)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+e+'".');return{itemName:t[3],source:n(t[4]),viewMapper:n(t[2]||t[1]),modelMapper:n(t[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(u,p,l,e,t,n,s,o,i,a,c,r,d){var f,m,h=[9,13,27,38,40],g=u.$eval(l.typeaheadMinLength);g||0===g||(g=1),u.$watch(l.typeaheadMinLength,function(e){g=e||0===e?e:1});var b=u.$eval(l.typeaheadWaitMs)||0,v=!1!==u.$eval(l.typeaheadEditable);u.$watch(l.typeaheadEditable,function(e){v=!1!==e});var $,y,w=t(l.typeaheadLoading).assign||angular.noop,D=l.typeaheadShouldSelect?t(l.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},k=t(l.typeaheadOnSelect),C=!!angular.isDefined(l.typeaheadSelectOnBlur)&&u.$eval(l.typeaheadSelectOnBlur),T=t(l.typeaheadNoResults).assign||angular.noop,x=l.typeaheadInputFormatter?t(l.typeaheadInputFormatter):void 0,M=!!l.typeaheadAppendToBody&&u.$eval(l.typeaheadAppendToBody),O=l.typeaheadAppendTo?u.$eval(l.typeaheadAppendTo):null,E=!1!==u.$eval(l.typeaheadFocusFirst),P=!!l.typeaheadSelectOnExact&&u.$eval(l.typeaheadSelectOnExact),S=t(l.typeaheadIsOpen).assign||angular.noop,A=u.$eval(l.typeaheadShowHint)||!1,I=t(l.ngModel),U=t(l.ngModel+"($$$p)"),N=d.parse(l.uibTypeahead),F=u.$new(),H=u.$on("$destroy",function(){F.$destroy()});F.$on("$destroy",H);var R,V,L="typeahead-"+F.$id+"-"+Math.floor(1e4*Math.random());p.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":L}),A&&((R=angular.element("<div></div>")).css("position","relative"),p.after(R),(V=p.clone()).attr("placeholder",""),V.attr("tabindex","-1"),V.val(""),V.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),p.css({position:"relative","vertical-align":"top","background-color":"transparent"}),V.attr("id")&&V.removeAttr("id"),R.append(V),V.after(p));var z=angular.element("<div uib-typeahead-popup></div>");z.attr({id:L,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(l.typeaheadTemplateUrl)&&z.attr("template-url",l.typeaheadTemplateUrl),angular.isDefined(l.typeaheadPopupTemplateUrl)&&z.attr("popup-template-url",l.typeaheadPopupTemplateUrl);function q(){F.matches=[],F.activeIdx=-1,p.attr("aria-expanded",!1),A&&V.val("")}function Y(e){return L+"-option-"+e}F.$watch("activeIdx",function(e){e<0?p.removeAttr("aria-activedescendant"):p.attr("aria-activedescendant",Y(e))});function B(r,l){var s={$viewValue:r};w(u,!0),T(u,!1),n.when(N.source(u,s)).then(function(e){var t,n,o=r===f.$viewValue;if(o&&$)if(e&&0<e.length){F.activeIdx=E?0:-1,T(u,!1);for(var i,a=F.matches.length=0;a<e.length;a++)s[N.itemName]=e[a],F.matches.push({id:Y(a),label:N.viewMapper(F,s),model:e[a]});F.query=r,G(),p.attr("aria-expanded",!0),P&&1===F.matches.length&&(t=r,n=0,F.matches.length>n&&t&&t.toUpperCase()===F.matches[n].label.toUpperCase())&&(angular.isNumber(F.debounceUpdate)||angular.isObject(F.debounceUpdate)?c(function(){F.select(0,l)},angular.isNumber(F.debounceUpdate)?F.debounceUpdate:F.debounceUpdate.default):F.select(0,l)),A&&(i=F.matches[0].label,angular.isString(r)&&0<r.length&&i.slice(0,r.length).toUpperCase()===r.toUpperCase()?V.val(r+i.slice(r.length)):V.val(""))}else q(),T(u,!0);o&&w(u,!1)},function(){q(),w(u,!1),T(u,!0)})}M&&(angular.element(i).on("resize",_),o.find("body").on("scroll",_));var W,j=c(function(){F.matches.length&&G(),F.moveInProgress=!1},200);function _(){F.moveInProgress||(F.moveInProgress=!0,F.$digest()),j()}function G(){F.position=M?r.offset(p):r.position(p),F.position.top+=p.prop("offsetHeight")}F.moveInProgress=!1,F.query=void 0;function K(){W&&s.cancel(W)}q(),F.assignIsOpen=function(e){S(u,e)},F.select=function(e,t){var n,o,i,a,r={};y=!0,r[N.itemName]=o=F.matches[e].model,n=N.modelMapper(u,r),i=u,a=n,angular.isFunction(I(u))&&m.getOption("getterSetter")?U(i,{$$$p:a}):I.assign(i,a),f.$setValidity("editable",!0),f.$setValidity("parse",!0),k(u,{$item:o,$model:n,$label:N.viewMapper(u,r),$event:t}),q(),!1!==F.$eval(l.typeaheadFocusOnSelect)&&s(function(){p[0].focus()},0,!1)},p.on("keydown",function(e){if(0!==F.matches.length&&-1!==h.indexOf(e.which)){var t,n=D(u,{$event:e});if(-1===F.activeIdx&&n||9===e.which&&e.shiftKey)return q(),void F.$digest();switch(e.preventDefault(),e.which){case 27:e.stopPropagation(),q(),u.$digest();break;case 38:F.activeIdx=(0<F.activeIdx?F.activeIdx:F.matches.length)-1,F.$digest(),(t=z[0].querySelectorAll(".uib-typeahead-match")[F.activeIdx]).parentNode.scrollTop=t.offsetTop;break;case 40:F.activeIdx=(F.activeIdx+1)%F.matches.length,F.$digest(),(t=z[0].querySelectorAll(".uib-typeahead-match")[F.activeIdx]).parentNode.scrollTop=t.offsetTop;break;default:n&&F.$apply(function(){angular.isNumber(F.debounceUpdate)||angular.isObject(F.debounceUpdate)?c(function(){F.select(F.activeIdx,e)},angular.isNumber(F.debounceUpdate)?F.debounceUpdate:F.debounceUpdate.default):F.select(F.activeIdx,e)})}}}),p.on("focus",function(e){$=!0,0!==g||f.$viewValue||s(function(){B(f.$viewValue,e)},0)}),p.on("blur",function(e){C&&F.matches.length&&-1!==F.activeIdx&&!y&&(y=!0,F.$apply(function(){angular.isObject(F.debounceUpdate)&&angular.isNumber(F.debounceUpdate.blur)?c(function(){F.select(F.activeIdx,e)},F.debounceUpdate.blur):F.select(F.activeIdx,e)})),!v&&f.$error.editable&&(f.$setViewValue(),F.$apply(function(){f.$setValidity("editable",!0),f.$setValidity("parse",!0)}),p.val("")),y=$=!1});function X(e){p[0]!==e.target&&3!==e.which&&0!==F.matches.length&&(q(),a.$$phase||u.$digest())}o.on("click",X),u.$on("$destroy",function(){o.off("click",X),(M||O)&&Z.remove(),M&&(angular.element(i).off("resize",_),o.find("body").off("scroll",_)),z.remove(),A&&R.remove()});var Z=e(z)(F);M?o.find("body").append(Z):O?angular.element(O).eq(0).append(Z):p.after(Z),this.init=function(e){m=function(e){var t;angular.version.minor<6?(t=e.$options||{}).getOption=function(e){return t[e]}:t=e.$options;return t}(f=e),F.debounceUpdate=t(m.getOption("debounce"))(u),f.$parsers.unshift(function(e){var t;return $=!0,0===g||e&&e.length>=g?0<b?(K(),t=e,W=s(function(){B(t)},b)):B(e):(w(u,!1),K(),q()),v?e:e?void f.$setValidity("editable",!1):(f.$setValidity("editable",!0),null)}),f.$formatters.push(function(e){var t,n={};return v||f.$setValidity("editable",!0),x?(n.$model=e,x(u,n)):(n[N.itemName]=e,t=N.viewMapper(u,n),n[N.itemName]=void 0,t!==N.viewMapper(u,n)?t:e)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","uibTypeahead"],link:function(e,t,n,o){o[1].init(o[0])}}}).directive("uibTypeaheadPopup",["$$debounce",function(i){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(o,e,t){o.templateUrl=t.templateUrl,o.isOpen=function(){var e=0<o.matches.length;return o.assignIsOpen({isOpen:e}),e},o.isActive=function(e){return o.active===e},o.selectActive=function(e){o.active=e},o.selectMatch=function(e,t){var n=o.debounce();angular.isNumber(n)||angular.isObject(n)?i(function(){o.select({activeIdx:e,evt:t})},angular.isNumber(n)?n:n.default):o.select({activeIdx:e,evt:t})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(i,a,r){return{scope:{index:"=",match:"=",query:"="},link:function(n,o,e){var t=r(e.templateUrl)(n.$parent)||"uib/template/typeahead/typeahead-match.html";i(t).then(function(e){var t=angular.element(e.trim());o.replaceWith(t),a(t)(n)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,e,o){var i;return i=e.has("$sanitize"),function(e,t){return!i&&/<.*>/g.test(e)&&o.warn("Unsafe use of typeahead please use ngSanitize"),e=t?(""+e).replace(new RegExp(t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):e,i||(e=n.trustAsHtml(e)),e}}]),angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibCarouselCss||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0}); |