text: /*
   * angular-ui-bootstrap
   * http://angular-ui.github.io/bootstrap/
  
   * Version: 2.5.0 - 2017-01-28
   * License: MIT
   */angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.modal","ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position","ui.bootstrap.tooltip","ui.bootstrap.dropdown"]),angular.module("ui.bootstrap.tpls",["uib/template/modal/window.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html"]),angular.module("ui.bootstrap.modal",["ui.bootstrap.multiMap","ui.bootstrap.stackedMap","ui.bootstrap.position"]).provider("$uibResolve",function(){var t=this;this.resolver=null,this.setResolver=function(t){this.resolver=t},this.$get=["$injector","$q",function(e,o){var n=t.resolver?e.get(t.resolver):null;return{resolve:function(t,i,r,a){if(n)return n.resolve(t,i,r,a);var l=[];return angular.forEach(t,function(t){l.push(angular.isFunction(t)||angular.isArray(t)?o.resolve(e.invoke(t)):angular.isString(t)?o.resolve(e.get(t)):o.resolve(t))}),o.all(l).then(function(e){var o={},n=0;return angular.forEach(t,function(t,i){o[i]=e[n++]}),o})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(t,e,o){function n(e,n,i){i.modalInClass&&(t.addClass(n,i.modalInClass),e.$on(o.NOW_CLOSING_EVENT,function(o,r){var a=r();e.modalOptions.animation?t.removeClass(n,i.modalInClass).then(a):a()}))}return{restrict:"A",compile:function(t,e){return t.addClass(e.backdropClass),n}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(t,e,o,n){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/modal/window.html"},link:function(i,r,a){r.addClass(a.windowTopClass||""),i.size=a.size,i.close=function(e){var o=t.getTop();o&&o.value.backdrop&&"static"!==o.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(o.key,"backdrop click"))},r.on("click",i.close),i.$isRendered=!0;var l=e.defer();i.$$postDigest(function(){l.resolve()}),l.promise.then(function(){var l=null;a.modalInClass&&(l=o(r,{addClass:a.modalInClass}).start(),i.$on(t.NOW_CLOSING_EVENT,function(t,e){var n=e();o(r,{removeClass:a.modalInClass}).start().then(n)})),e.when(l).then(function(){var e=t.getTop();if(e&&t.modalRendered(e.key),!n[0].activeElement||!r[0].contains(n[0].activeElement)){var o=r[0].querySelector("[autofocus]");o?o.focus():r[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(t){return{link:function(e,o,n,i,r){r(e.$parent,function(e){o.empty(),t.enter(e,o)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(t,e,o,n,i,r,a,l,p){function s(t){var e="-";return t.replace(S,function(t,o){return(o?e:"")+t.toLowerCase()})}function u(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function d(){for(var t=-1,e=k.keys(),o=0;o<e.length;o++)k.get(e[o]).value.backdrop&&(t=o);return t>-1&&O>t&&(t=O),t}function c(t,e){var o=k.get(t).value,n=o.appendTo;k.remove(t),D=k.top(),D&&(O=parseInt(D.value.modalDomEl.attr("index"),10)),h(o.modalDomEl,o.modalScope,function(){var e=o.openedClass||C;T.remove(e,t);var i=T.hasKey(e);n.toggleClass(e,i),!i&&y&&y.heightOverflow&&y.scrollbarWidth&&(n.css(y.originalRight?{paddingRight:y.originalRight+"px"}:{paddingRight:""}),y=null),f(!0)},o.closedDeferred),m(),e&&e.focus?e.focus():n.focus&&n.focus()}function f(t){var e;k.length()>0&&(e=k.top().value,e.modalDomEl.toggleClass(e.windowTopClass||"",t))}function m(){if(w&&-1===d()){var t=$;h(w,$,function(){t=null}),w=void 0,$=void 0}}function h(e,o,n,i){function a(){a.done||(a.done=!0,t.leave(e).then(function(){n&&n(),e.remove(),i&&i.resolve()}),o.$destroy())}var l,p=null,s=function(){return l||(l=r.defer(),p=l.promise),function(){l.resolve()}};return o.$broadcast(E.NOW_CLOSING_EVENT,s),r.when(p).then(a)}function g(t){if(t.isDefaultPrevented())return t;var e=k.top();if(e)switch(t.which){case 27:e.value.keyboard&&(t.preventDefault(),i.$apply(function(){E.dismiss(e.key,"escape key press")}));break;case 9:var o=E.loadFocusElementList(e),n=!1;t.shiftKey?(E.isFocusInFirstItem(t,o)||E.isModalFocused(t,e))&&(n=E.focusLastFocusableElement(o)):E.isFocusInLastItem(t,o)&&(n=E.focusFirstFocusableElement(o)),n&&(t.preventDefault(),t.stopPropagation())}}function b(t,e,o){return!t.value.modalScope.$broadcast("modal.closing",e,o).defaultPrevented}function v(){Array.prototype.forEach.call(document.querySelectorAll("["+M+"]"),function(t){var e=parseInt(t.getAttribute(M),10),o=e-1;t.setAttribute(M,o),o||(t.removeAttribute(M),t.removeAttribute("aria-hidden"))})}var w,$,y,C="modal-open",k=l.createNew(),T=a.createNew(),E={NOW_CLOSING_EVENT:"modal.stack.now-closing"},O=0,D=null,M="data-bootstrap-modal-aria-hidden-count",x="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]",S=/[A-Z]/g;return i.$watch(d,function(t){$&&($.index=t)}),o.on("keydown",g),i.$on("$destroy",function(){o.off("keydown",g)}),E.open=function(e,r){function a(t){function e(t){var e=t.parent()?t.parent().children():[];return Array.prototype.filter.call(e,function(e){return e!==t[0]})}if(t&&"BODY"!==t[0].tagName)return e(t).forEach(function(t){var e="true"===t.getAttribute("aria-hidden"),o=parseInt(t.getAttribute(M),10);o||(o=e?1:0),t.setAttribute(M,o+1),t.setAttribute("aria-hidden","true")}),a(t.parent())}var l=o[0].activeElement,u=r.openedClass||C;f(!1),D=k.top(),k.add(e,{deferred:r.deferred,renderDeferred:r.renderDeferred,closedDeferred:r.closedDeferred,modalScope:r.scope,backdrop:r.backdrop,keyboard:r.keyboard,openedClass:r.openedClass,windowTopClass:r.windowTopClass,animation:r.animation,appendTo:r.appendTo}),T.put(u,e);var c=r.appendTo,m=d();m>=0&&!w&&($=i.$new(!0),$.modalOptions=r,$.index=m,w=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),w.attr({"class":"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),r.backdropClass&&w.addClass(r.backdropClass),r.animation&&w.attr("modal-animation","true"),n(w)($),t.enter(w,c),p.isScrollable(c)&&(y=p.scrollbarPadding(c),y.heightOverflow&&y.scrollbarWidth&&c.css({paddingRight:y.right+"px"})));var h;r.component?(h=document.createElement(s(r.component.name)),h=angular.element(h),h.attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):h=r.content,O=D?parseInt(D.value.modalDomEl.attr("index"),10)+1:0;var g=angular.element('<div uib-modal-window="modal-window"></div>');g.attr({"class":"modal","template-url":r.windowTemplateUrl,"window-top-class":r.windowTopClass,role:"dialog","aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,size:r.size,index:O,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(h),r.windowClass&&g.addClass(r.windowClass),r.animation&&g.attr("modal-animation","true"),c.addClass(u),r.scope&&(r.scope.$$topModalIndex=O),t.enter(n(g)(r.scope),c),k.top().value.modalDomEl=g,k.top().value.modalOpener=l,a(g)},E.close=function(t,e){var o=k.get(t);return v(),o&&b(o,e,!0)?(o.value.modalScope.$$uibDestructionScheduled=!0,o.value.deferred.resolve(e),c(t,o.value.modalOpener),!0):!o},E.dismiss=function(t,e){var o=k.get(t);return v(),o&&b(o,e,!1)?(o.value.modalScope.$$uibDestructionScheduled=!0,o.value.deferred.reject(e),c(t,o.value.modalOpener),!0):!o},E.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},E.getTop=function(){return k.top()},E.modalRendered=function(t){var e=k.get(t);e&&e.value.renderDeferred.resolve()},E.focusFirstFocusableElement=function(t){return t.length>0?(t[0].focus(),!0):!1},E.focusLastFocusableElement=function(t){return t.length>0?(t[t.length-1].focus(),!0):!1},E.isModalFocused=function(t,e){if(t&&e){var o=e.value.modalDomEl;if(o&&o.length)return(t.target||t.srcElement)===o[0]}return!1},E.isFocusInFirstItem=function(t,e){return e.length>0?(t.target||t.srcElement)===e[0]:!1},E.isFocusInLastItem=function(t,e){return e.length>0?(t.target||t.srcElement)===e[e.length-1]:!1},E.loadFocusElementList=function(t){if(t){var e=t.value.modalDomEl;if(e&&e.length){var o=e[0].querySelectorAll(x);return o?Array.prototype.filter.call(o,function(t){return u(t)}):o}}},E}]).provider("$uibModal",function(){var t={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(e,o,n,i,r,a,l){function p(t){return t.template?o.when(t.template):i(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl)}var s={},u=null;return s.getPromiseChain=function(){return u},s.open=function(i){function s(){return g}var d=o.defer(),c=o.defer(),f=o.defer(),m=o.defer(),h={result:d.promise,opened:c.promise,closed:f.promise,rendered:m.promise,close:function(t){return l.close(h,t)},dismiss:function(t){return l.dismiss(h,t)}};if(i=angular.extend({},t.options,i),i.resolve=i.resolve||{},i.appendTo=i.appendTo||n.find("body").eq(0),!i.appendTo.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");if(!i.component&&!i.template&&!i.templateUrl)throw new Error("One of component or template or templateUrl options is required.");var g;g=i.component?o.when(a.resolve(i.resolve,{},null,null)):o.all([p(i),a.resolve(i.resolve,{},null,null)]);var b;return b=u=o.all([u]).then(s,s).then(function(t){function o(e,o,n,i){e.$scope=a,e.$scope.$resolve={},n?e.$scope.$uibModalInstance=h:e.$uibModalInstance=h;var r=o?t[1]:t;angular.forEach(r,function(t,o){i&&(e[o]=t),e.$scope.$resolve[o]=t})}var n=i.scope||e,a=n.$new();a.$close=h.close,a.$dismiss=h.dismiss,a.$on("$destroy",function(){a.$$uibDestructionScheduled||a.$dismiss("$uibUnscheduledDestruction")});var p,s,u={scope:a,deferred:d,renderDeferred:m,closedDeferred:f,animation:i.animation,backdrop:i.backdrop,keyboard:i.keyboard,backdropClass:i.backdropClass,windowTopClass:i.windowTopClass,windowClass:i.windowClass,windowTemplateUrl:i.windowTemplateUrl,ariaLabelledBy:i.ariaLabelledBy,ariaDescribedBy:i.ariaDescribedBy,size:i.size,openedClass:i.openedClass,appendTo:i.appendTo},g={},b={};i.component?(o(g,!1,!0,!1),g.name=i.component,u.component=g):i.controller&&(o(b,!0,!1,!0),s=r(i.controller,b,!0,i.controllerAs),i.controllerAs&&i.bindToController&&(p=s.instance,p.$close=a.$close,p.$dismiss=a.$dismiss,angular.extend(p,{$resolve:b.$scope.$resolve},n)),p=s(),angular.isFunction(p.$onInit)&&p.$onInit()),i.component||(u.content=t[0]),l.open(h,u),c.resolve(!0)},function(t){c.reject(t),d.reject(t)})["finally"](function(){u===b&&(u=null)}),h},s}]};return t}),angular.module("ui.bootstrap.multiMap",[]).factory("$$multiMap",function(){return{createNew:function(){var t={};return{entries:function(){return Object.keys(t).map(function(e){return{key:e,value:t[e]}})},get:function(e){return t[e]},hasKey:function(e){return!!t[e]},keys:function(){return Object.keys(t)},put:function(e,o){t[e]||(t[e]=[]),t[e].push(o)},remove:function(e,o){var n=t[e];if(n){var i=n.indexOf(o);-1!==i&&n.splice(i,1),n.length||delete t[e]}}}}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,o){t.push({key:e,value:o})},get:function(e){for(var o=0;o<t.length;o++)if(e===t[o].key)return t[o]},keys:function(){for(var e=[],o=0;o<t.length;o++)e.push(t[o].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var o=-1,n=0;n<t.length;n++)if(e===t[n].key){o=n;break}return t.splice(o,1)[0]},removeTop:function(){return t.pop()},length:function(){return t.length}}}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(t,e){var o,n,i={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},r={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},a=/(HTML|BODY)/;return{getRawNode:function(t){return t.nodeName?t:t[0]||t},parseStyle:function(t){return t=parseFloat(t),isFinite(t)?t:0},offsetParent:function(o){function n(t){return"static"===(e.getComputedStyle(t).position||"static")}o=this.getRawNode(o);for(var i=o.offsetParent||t[0].documentElement;i&&i!==t[0].documentElement&&n(i);)i=i.offsetParent;return i||t[0].documentElement},scrollbarWidth:function(i){if(i){if(angular.isUndefined(n)){var r=t.find("body");r.addClass("uib-position-body-scrollbar-measure"),n=e.innerWidth-r[0].clientWidth,n=isFinite(n)?n:0,r.removeClass("uib-position-body-scrollbar-measure")}return n}if(angular.isUndefined(o)){var a=angular.element('<div class="uib-position-scrollbar-measure"></div>');t.find("body").append(a),o=a[0].offsetWidth-a[0].clientWidth,o=isFinite(o)?o:0,a.remove()}return o},scrollbarPadding:function(t){t=this.getRawNode(t);var o=e.getComputedStyle(t),n=this.parseStyle(o.paddingRight),i=this.parseStyle(o.paddingBottom),r=this.scrollParent(t,!1,!0),l=this.scrollbarWidth(a.test(r.tagName));return{scrollbarWidth:l,widthOverflow:r.scrollWidth>r.clientWidth,right:n+l,originalRight:n,heightOverflow:r.scrollHeight>r.clientHeight,bottom:i+l,originalBottom:i}},isScrollable:function(t,o){t=this.getRawNode(t);var n=o?i.hidden:i.normal,r=e.getComputedStyle(t);return n.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(o,n,r){o=this.getRawNode(o);var a=n?i.hidden:i.normal,l=t[0].documentElement,p=e.getComputedStyle(o);if(r&&a.test(p.overflow+p.overflowY+p.overflowX))return o;var s="absolute"===p.position,u=o.parentElement||l;if(u===l||"fixed"===p.position)return l;for(;u.parentElement&&u!==l;){var d=e.getComputedStyle(u);if(s&&"static"!==d.position&&(s=!1),!s&&a.test(d.overflow+d.overflowY+d.overflowX))break;u=u.parentElement}return u},position:function(o,n){o=this.getRawNode(o);var i=this.offset(o);if(n){var r=e.getComputedStyle(o);i.top-=this.parseStyle(r.marginTop),i.left-=this.parseStyle(r.marginLeft)}var a=this.offsetParent(o),l={top:0,left:0};return a!==t[0].documentElement&&(l=this.offset(a),l.top+=a.clientTop-a.scrollTop,l.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(i.width)?i.width:o.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:o.offsetHeight),top:Math.round(i.top-l.top),left:Math.round(i.left-l.left)}},offset:function(o){o=this.getRawNode(o);var n=o.getBoundingClientRect();return{width:Math.round(angular.isNumber(n.width)?n.width:o.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:o.offsetHeight),top:Math.round(n.top+(e.pageYOffset||t[0].documentElement.scrollTop)),left:Math.round(n.left+(e.pageXOffset||t[0].documentElement.scrollLeft))}},viewportOffset:function(o,n,i){o=this.getRawNode(o),i=i!==!1?!0:!1;var r=o.getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},l=n?t[0].documentElement:this.scrollParent(o),p=l.getBoundingClientRect();if(a.top=p.top+l.clientTop,a.left=p.left+l.clientLeft,l===t[0].documentElement&&(a.top+=e.pageYOffset,a.left+=e.pageXOffset),a.bottom=a.top+l.clientHeight,a.right=a.left+l.clientWidth,i){var s=e.getComputedStyle(l);a.top+=this.parseStyle(s.paddingTop),a.bottom-=this.parseStyle(s.paddingBottom),a.left+=this.parseStyle(s.paddingLeft),a.right-=this.parseStyle(s.paddingRight)}return{top:Math.round(r.top-a.top),bottom:Math.round(a.bottom-r.bottom),left:Math.round(r.left-a.left),right:Math.round(a.right-r.right)}},parsePlacement:function(t){var e=r.auto.test(t);return e&&(t=t.replace(r.auto,"")),t=t.split("-"),t[0]=t[0]||"top",r.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",r.secondary.test(t[1])||(t[1]="center"),t[2]=e?!0:!1,t},positionElements:function(t,o,n,i){t=this.getRawNode(t),o=this.getRawNode(o);var a=angular.isDefined(o.offsetWidth)?o.offsetWidth:o.prop("offsetWidth"),l=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight");n=this.parsePlacement(n);var p=i?this.offset(t):this.position(t),s={top:0,left:0,placement:""};if(n[2]){var u=this.viewportOffset(t,i),d=e.getComputedStyle(o),c={width:a+Math.round(Math.abs(this.parseStyle(d.marginLeft)+this.parseStyle(d.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(d.marginTop)+this.parseStyle(d.marginBottom)))};if(n[0]="top"===n[0]&&c.height>u.top&&c.height<=u.bottom?"bottom":"bottom"===n[0]&&c.height>u.bottom&&c.height<=u.top?"top":"left"===n[0]&&c.width>u.left&&c.width<=u.right?"right":"right"===n[0]&&c.width>u.right&&c.width<=u.left?"left":n[0],n[1]="top"===n[1]&&c.height-p.height>u.bottom&&c.height-p.height<=u.top?"bottom":"bottom"===n[1]&&c.height-p.height>u.top&&c.height-p.height<=u.bottom?"top":"left"===n[1]&&c.width-p.width>u.right&&c.width-p.width<=u.left?"right":"right"===n[1]&&c.width-p.width>u.left&&c.width-p.width<=u.right?"left":n[1],"center"===n[1])if(r.vertical.test(n[0])){var f=p.width/2-a/2;u.left+f<0&&c.width-p.width<=u.right?n[1]="left":u.right+f<0&&c.width-p.width<=u.left&&(n[1]="right")}else{var m=p.height/2-c.height/2;u.top+m<0&&c.height-p.height<=u.bottom?n[1]="top":u.bottom+m<0&&c.height-p.height<=u.top&&(n[1]="bottom")}}switch(n[0]){case"top":s.top=p.top-l;break;case"bottom":s.top=p.top+p.height;break;case"left":s.left=p.left-a;break;case"right":s.left=p.left+p.width}switch(n[1]){case"top":s.top=p.top;break;case"bottom":s.top=p.top+p.height-l;break;case"left":s.left=p.left;break;case"right":s.left=p.left+p.width-a;break;case"center":r.vertical.test(n[0])?s.left=p.left+p.width/2-a/2:s.top=p.top+p.height/2-l/2}return s.top=Math.round(s.top),s.left=Math.round(s.left),s.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],s},adjustTop:function(t,e,o,n){return-1!==t.indexOf("top")&&o!==n?{top:e.top-n+"px"}:void 0},positionArrow:function(t,o){t=this.getRawNode(t);var n=t.querySelector(".tooltip-inner, .popover-inner");if(n){var i=angular.element(n).hasClass("tooltip-inner"),a=t.querySelector(i?".tooltip-arrow":".arrow");if(a){var l={top:"",bottom:"",left:"",right:""};if(o=this.parsePlacement(o),"center"===o[1])return void angular.element(a).css(l);var p="border-"+o[0]+"-width",s=e.getComputedStyle(a)[p],u="border-";u+=r.vertical.test(o[0])?o[0]+"-"+o[1]:o[1]+"-"+o[0],u+="-radius";var d=e.getComputedStyle(i?n:t)[u];switch(o[0]){case"top":l.bottom=i?"0":"-"+s;break;case"bottom":l.top=i?"0":"-"+s;break;case"left":l.right=i?"0":"-"+s;break;case"right":l.left=i?"0":"-"+s}l[o[1]]=d,angular.element(a).css(l)}}}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){function t(t){var e=/[A-Z]/g,o="-";return t.replace(e,function(t,e){return(e?o:"")+t.toLowerCase()})}var e={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},o={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},n={};this.options=function(t){angular.extend(n,t)},this.setTriggers=function(t){angular.extend(o,t)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(i,r,a,l,p,s,u,d,c){function f(t){if(27===t.which){var e=m.top();e&&(e.value.close(),e=null)}}var m=c.createNew();return l.on("keyup",f),u.$on("$destroy",function(){l.off("keyup",f)}),function(i,u,c,f){function h(t){var e=(t||f.trigger||c).split(" "),n=e.map(function(t){return o[t]||t});return{show:e,hide:n}}f=angular.extend({},e,n,f);var g=t(i),b=s.startSymbol(),v=s.endSymbol(),w="<div "+g+'-popup uib-title="'+b+"title"+v+'" '+(f.useContentExp?'content-exp="contentExp()" ':'content="'+b+"content"+v+'" ')+'origin-scope="origScope" class="uib-position-measure '+u+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(){var t=r(w);return function(e,o,n){function r(){B.isOpen?c():s()}function s(){(!U||e.$eval(n[u+"Enable"]))&&(w(),C(),B.popupDelay?N||(N=a(g,B.popupDelay,!1)):g())}function c(){b(),B.popupCloseDelay?P||(P=a(v,B.popupCloseDelay,!1)):v()}function g(){return b(),w(),B.content?($(),void B.$evalAsync(function(){B.isOpen=!0,k(!0),_()})):angular.noop}function b(){N&&(a.cancel(N),N=null),I&&(a.cancel(I),I=null)}function v(){B&&B.$evalAsync(function(){B&&(B.isOpen=!1,k(!1),B.animation?A||(A=a(y,150,!1)):y())})}function w(){P&&(a.cancel(P),P=null),A&&(a.cancel(A),A=null)}function $(){x||(S=B.$new(),x=t(S,function(t){F?l.find("body").append(t):o.after(t)}),m.add(B,{close:v}),T())}function y(){b(),w(),E(),x&&(x.remove(),x=null,R&&a.cancel(R)),m.remove(B),S&&(S.$destroy(),S=null)}function C(){B.title=n[u+"Title"],B.content=j?j(e):n[i],B.popupClass=n[u+"Class"],B.placement=angular.isDefined(n[u+"Placement"])?n[u+"Placement"]:f.placement;var t=p.parsePlacement(B.placement);W=t[1]?t[0]+"-"+t[1]:t[0];var o=parseInt(n[u+"PopupDelay"],10),r=parseInt(n[u+"PopupCloseDelay"],10);B.popupDelay=isNaN(o)?f.popupDelay:o,B.popupCloseDelay=isNaN(r)?f.popupCloseDelay:r}function k(t){q&&angular.isFunction(q.assign)&&q.assign(e,t)}function T(){z.length=0,j?(z.push(e.$watch(j,function(t){B.content=t,!t&&B.isOpen&&v()})),z.push(S.$watch(function(){H||(H=!0,S.$$postDigest(function(){H=!1,B&&B.isOpen&&_()}))}))):z.push(n.$observe(i,function(t){B.content=t,!t&&B.isOpen?v():_()})),z.push(n.$observe(u+"Title",function(t){B.title=t,B.isOpen&&_()})),z.push(n.$observe(u+"Placement",function(t){B.placement=t?t:f.placement,B.isOpen&&_()}))}function E(){z.length&&(angular.forEach(z,function(t){t()}),z.length=0)}function O(t){B&&B.isOpen&&x&&(o[0].contains(t.target)||x[0].contains(t.target)||c())}function D(t){27===t.which&&c()}function M(){var t=[],i=[],a=e.$eval(n[u+"Trigger"]);Y(),angular.isObject(a)?(Object.keys(a).forEach(function(e){t.push(e),i.push(a[e])}),L={show:t,hide:i}):L=h(a),"none"!==L.show&&L.show.forEach(function(t,e){"outsideClick"===t?(o.on("click",r),l.on("click",O)):t===L.hide[e]?o.on(t,r):t&&(o.on(t,s),o.on(L.hide[e],c)),o.on("keypress",D)})}var x,S,A,N,P,I,R,W,F=angular.isDefined(f.appendToBody)?f.appendToBody:!1,L=h(void 0),U=angular.isDefined(n[u+"Enable"]),B=e.$new(!0),H=!1,q=angular.isDefined(n[u+"IsOpen"])?d(n[u+"IsOpen"]):!1,j=f.useContentExp?d(n[i]):!1,z=[],_=function(){x&&x.html()&&(I||(I=a(function(){var t=p.positionElements(o,x,B.placement,F),e=angular.isDefined(x.offsetHeight)?x.offsetHeight:x.prop("offsetHeight"),n=F?p.offset(o):p.position(o);x.css({top:t.top+"px",left:t.left+"px"});var i=t.placement.split("-");x.hasClass(i[0])||(x.removeClass(W.split("-")[0]),x.addClass(i[0])),x.hasClass(f.placementClassPrefix+t.placement)||(x.removeClass(f.placementClassPrefix+W),x.addClass(f.placementClassPrefix+t.placement)),R=a(function(){var t=angular.isDefined(x.offsetHeight)?x.offsetHeight:x.prop("offsetHeight"),o=p.adjustTop(i,n,e,t);o&&x.css(o),R=null},0,!1),x.hasClass("uib-position-measure")?(p.positionArrow(x,t.placement),x.removeClass("uib-position-measure")):W!==t.placement&&p.positionArrow(x,t.placement),W=t.placement,I=null},0,!1)))};B.origScope=e,B.isOpen=!1,B.contentExp=function(){return B.content},n.$observe("disabled",function(t){t&&b(),t&&B.isOpen&&v()}),q&&e.$watch(q,function(t){B&&!t===B.isOpen&&r()});var Y=function(){L.show.forEach(function(t){"outsideClick"===t?o.off("click",r):(o.off(t,s),o.off(t,r)),o.off("keypress",D)}),L.hide.forEach(function(t){"outsideClick"===t?l.off("click",O):o.off(t,c)})};M();var K=e.$eval(n[u+"Animation"]);B.animation=angular.isDefined(K)?!!K:f.animation;var X,G=u+"AppendToBody";X=G in n&&void 0===n[G]?!0:e.$eval(n[G]),F=angular.isDefined(X)?X:F,e.$on("$destroy",function(){Y(),y(),B=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(t,e,o,n){return{link:function(i,r,a){var l,p,s,u=i.$eval(a.tooltipTemplateTranscludeScope),d=0,c=function(){p&&(p.remove(),p=null),l&&(l.$destroy(),l=null),s&&(t.leave(s).then(function(){p=null}),p=s,s=null)};i.$watch(e.parseAsResourceUrl(a.uibTooltipTemplateTransclude),function(e){var a=++d;e?(n(e,!0).then(function(n){if(a===d){var i=u.$new(),p=n,f=o(p)(i,function(e){c(),t.enter(e,r)});l=i,s=f,l.$emit("$includeContentLoaded",e)}},function(){a===d&&(c(),i.$emit("$includeContentError",e))}),i.$emit("$includeContentRequested",e)):c()}),i.$on("$destroy",c)}}}]).directive("uibTooltipClasses",["$uibPosition",function(t){return{restrict:"A",link:function(e,o,n){if(e.placement){var i=t.parsePlacement(e.placement);o.addClass(i[0])}e.popupClass&&o.addClass(e.popupClass),e.animation&&o.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("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(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),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(t,e,o){var n=null,i=o.createNew();this.isOnlyOpen=function(t,e){var o=i.get(e);if(o){var n=o.reduce(function(e,o){return o.scope===t?o:e},{});if(n)return 1===o.length}return!1},this.open=function(e,o,a){if(n||t.on("click",r),n&&n!==e&&(n.isOpen=!1),n=e,a){var l=i.get(a);if(l){var p=l.map(function(t){return t.scope});-1===p.indexOf(e)&&i.put(a,{scope:e})}else i.put(a,{scope:e})}},this.close=function(e,o,a){if(n===e&&(t.off("click",r),t.off("keydown",this.keybindFilter),n=null),a){var l=i.get(a);if(l){var p=l.reduce(function(t,o){return o.scope===e?o:t},{});p&&i.remove(a,p)}}};var r=function(t){if(n&&n.isOpen&&!(t&&"disabled"===n.getAutoClose()||t&&3===t.which)){var o=n.getToggleElement();if(!(t&&o&&o[0].contains(t.target))){var i=n.getDropdownElement();t&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(t.target)||(n.focusToggleElement(),n.isOpen=!1,e.$$phase||n.$apply())}}};this.keybindFilter=function(t){if(n){var e=n.getDropdownElement(),o=n.getToggleElement(),i=e&&e[0].contains(t.target),a=o&&o[0].contains(t.target);27===t.which?(t.stopPropagation(),n.focusToggleElement(),r()):n.isKeynavEnabled()&&-1!==[38,40].indexOf(t.which)&&n.isOpen&&(i||a)&&(t.preventDefault(),t.stopPropagation(),n.focusDropdownEntry(t.which))}}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(t,e,o,n,i,r,a,l,p,s,u){function d(){e.append(m.dropdownMenu)}var c,f,m=this,h=t.$new(),g=i.appendToOpenClass,b=i.openClass,v=angular.noop,w=o.onToggle?n(o.onToggle):angular.noop,$=!1,y=p.find("body");e.addClass("dropdown"),this.init=function(){o.isOpen&&(f=n(o.isOpen),v=f.assign,t.$watch(f,function(t){h.isOpen=!!t})),$=angular.isDefined(o.keyboardNav)},this.toggle=function(t){return h.isOpen=arguments.length?!!t:!h.isOpen,angular.isFunction(v)&&v(h,h.isOpen),h.isOpen},this.isOpen=function(){return h.isOpen},h.getToggleElement=function(){return m.toggleElement},h.getAutoClose=function(){return o.autoClose||"always"},h.getElement=function(){return e},h.isKeynavEnabled=function(){return $},h.focusDropdownEntry=function(t){var o=m.dropdownMenu?angular.element(m.dropdownMenu).find("a"):e.find("ul").eq(0).find("a");switch(t){case 40:m.selectedOption=angular.isNumber(m.selectedOption)?m.selectedOption===o.length-1?m.selectedOption:m.selectedOption+1:0;break;case 38:m.selectedOption=angular.isNumber(m.selectedOption)?0===m.selectedOption?0:m.selectedOption-1:o.length-1}o[m.selectedOption].focus()},h.getDropdownElement=function(){return m.dropdownMenu},h.focusToggleElement=function(){m.toggleElement&&m.toggleElement[0].focus()},h.$watch("isOpen",function(i,f){var $=null,C=!1;if(angular.isDefined(o.dropdownAppendTo)){var k=n(o.dropdownAppendTo)(h);k&&($=angular.element(k))}if(angular.isDefined(o.dropdownAppendToBody)){var T=n(o.dropdownAppendToBody)(h);T!==!1&&(C=!0)}if(C&&!$&&($=y),$&&m.dropdownMenu&&(i?($.append(m.dropdownMenu),e.on("$destroy",d)):(e.off("$destroy",d),d())),$&&m.dropdownMenu){var E,O,D,M=l.positionElements(e,m.dropdownMenu,"bottom-left",!0),x=0;if(E={top:M.top+"px",display:i?"block":"none"},O=m.dropdownMenu.hasClass("dropdown-menu-right"),O?(E.left="auto",D=l.scrollbarPadding($),D.heightOverflow&&D.scrollbarWidth&&(x=D.scrollbarWidth),E.right=window.innerWidth-x-(M.left+e.prop("offsetWidth"))+"px"):(E.left=M.left+"px",E.right="auto"),!C){var S=l.offset($);E.top=M.top-S.top+"px",O?E.right=window.innerWidth-(M.left-S.left+e.prop("offsetWidth"))+"px":E.left=M.left-S.left+"px"}m.dropdownMenu.css(E)}var A=$?$:e,N=$?g:b,P=A.hasClass(N),I=r.isOnlyOpen(t,$);if(P===!i){var R;R=$?I?"removeClass":"addClass":i?"addClass":"removeClass",a[R](A,N).then(function(){angular.isDefined(i)&&i!==f&&w(t,{open:!!i})})}if(i)m.dropdownMenuTemplateUrl?u(m.dropdownMenuTemplateUrl).then(function(t){c=h.$new(),s(t.trim())(c,function(t){var e=t;m.dropdownMenu.replaceWith(e),m.dropdownMenu=e,p.on("keydown",r.keybindFilter)})}):p.on("keydown",r.keybindFilter),h.focusToggleElement(),r.open(h,e,$);else{if(r.close(h,e,$),m.dropdownMenuTemplateUrl){c&&c.$destroy();var W=angular.element('<ul class="dropdown-menu"></ul>');m.dropdownMenu.replaceWith(W),m.dropdownMenu=W}m.selectedOption=null}angular.isFunction(v)&&v(t,i)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(t,e,o,n){n.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(t,e,o,n){if(n&&!angular.isDefined(o.dropdownNested)){e.addClass("dropdown-menu");var i=o.templateUrl;i&&(n.dropdownMenuTemplateUrl=i),n.dropdownMenu||(n.dropdownMenu=e)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(t,e,o,n){if(n){e.addClass("dropdown-toggle"),n.toggleElement=e;var i=function(i){i.preventDefault(),e.hasClass("disabled")||o.disabled||t.$apply(function(){n.toggle()})};e.on("click",i),e.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(n.isOpen,function(t){e.attr("aria-expanded",!!t)}),t.$on("$destroy",function(){e.off("click",i)})}}}}),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"></div>\n')
  }]),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.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});