text: /*
   * Copyright (C) 2015 Stratio (http://stratio.com)
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *         http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  /*
   * angular-ui-bootstrap
   * http://angular-ui.github.io/bootstrap/
  
   * Version: 0.13.4 - 2015-09-03
   * License: MIT
   */
  angular.module("ui.bootstrap",["ui.bootstrap.collapse","ui.bootstrap.modal","ui.bootstrap.tooltip","ui.bootstrap.position","ui.bootstrap.bindHtml","ui.bootstrap.carousel","ui.bootstrap.accordion"]),angular.module("ui.bootstrap.collapse",[]).directive("collapse",["$animate",function(e){return{link:function(t,n,o){function a(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),e.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(i)}function i(){n.removeClass("collapsing"),n.css({height:"auto"})}function l(){return n.hasClass("collapse")||n.hasClass("in")?(n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void e.removeClass(n,"in",{to:{height:"0"}}).then(r)):r()}function r(){n.css({height:"0"}),n.removeClass("collapsing"),n.addClass("collapse")}t.$watch(o.collapse,function(e){e?l():a()})}}}]),angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t==e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,o=0;o<e.length;o++)if(t==e[o].key){n=o;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}).factory("$$multiMap",function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map(function(t){return{key:t,value:e[t]}})},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var o=e[t];if(o){var a=o.indexOf(n);-1!==a&&o.splice(a,1),o.length||delete e[t]}}}}}}).directive("modalBackdrop",["$animate","$injector","$modalStack",function(e,t,n){function o(t,o,i){i.modalInClass&&(a?a(o,{addClass:i.modalInClass}).start():e.addClass(o,i.modalInClass),t.$on(n.NOW_CLOSING_EVENT,function(t,n){var l=n();a?a(o,{removeClass:i.modalInClass}).start().then(l):e.removeClass(o,i.modalInClass).then(l)}))}var a=null;return t.has("$animateCss")&&(a=t.get("$animateCss")),{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),o}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector",function(e,t,n,o){var a=null;return o.has("$animateCss")&&(a=o.get("$animateCss")),{restrict:"EA",scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(o,i,l){i.addClass(l.windowClass||""),o.size=l.size,o.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},o.$isRendered=!0;var r=t.defer();l.$observe("modalRender",function(e){"true"==e&&r.resolve()}),r.promise.then(function(){var r=null;l.modalInClass&&(r=a?a(i,{addClass:l.modalInClass}).start():n.addClass(i,l.modalInClass),o.$on(e.NOW_CLOSING_EVENT,function(e,t){var o=t();a?a(i,{removeClass:l.modalInClass}).start().then(o):n.removeClass(i,l.modalInClass).then(o)})),t.when(r).then(function(){var e=i[0].querySelectorAll("[autofocus]");e.length?e[0].focus():i[0].focus()});var s=e.getTop();s&&e.modalRendered(s.key)})}}}]).directive("modalAnimationClass",[function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.modalAnimationClass)}}}]).directive("modalTransclude",function(){return{link:function(e,t,n,o,a){a(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(e,t,n,o,a,i,l,r,s){function c(){for(var e=-1,t=C.keys(),n=0;n<t.length;n++)C.get(t[n]).value.backdrop&&(e=n);return e}function u(e,t){var o=n.find("body").eq(0),a=C.get(e).value;C.remove(e),d(a.modalDomEl,a.modalScope,function(){var t=a.openedClass||$;b.remove(t,e),o.toggleClass(t,b.hasKey(t))}),p(),t&&t.focus?t.focus():o.focus()}function p(){if(h&&-1==c()){var e=v;d(h,v,function(){e=null}),h=void 0,v=void 0}}function d(t,n,o){function a(){a.done||(a.done=!0,m?m(t,{event:"leave"}).start().then(function(){t.remove()}):e.leave(t),n.$destroy(),o&&o())}var l,r=null,s=function(){return l||(l=i.defer(),r=l.promise),function(){l.resolve()}};return n.$broadcast(w.NOW_CLOSING_EVENT,s),i.when(r).then(a)}function f(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var m=null;l.has("$animateCss")&&(m=l.get("$animateCss"));var h,v,g,$="modal-open",C=s.createNew(),b=r.createNew(),w={NOW_CLOSING_EVENT:"modal.stack.now-closing"},k=0,y="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return a.$watch(c,function(e){v&&(v.index=e)}),n.bind("keydown",function(e){if(e.isDefaultPrevented())return e;var t=C.top();if(t&&t.value.keyboard)switch(e.which){case 27:e.preventDefault(),a.$apply(function(){w.dismiss(t.key,"escape key press")});break;case 9:w.loadFocusElementList(t);var n=!1;e.shiftKey?w.isFocusInFirstItem(e)&&(n=w.focusLastFocusableElement()):w.isFocusInLastItem(e)&&(n=w.focusFirstFocusableElement()),n&&(e.preventDefault(),e.stopPropagation())}}),w.open=function(e,t){var i=n[0].activeElement,l=t.openedClass||$;C.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass}),b.put(l,e);var r=n.find("body").eq(0),s=c();if(s>=0&&!h){v=a.$new(!0),v.index=s;var u=angular.element('<div modal-backdrop="modal-backdrop"></div>');u.attr("backdrop-class",t.backdropClass),t.animation&&u.attr("modal-animation","true"),h=o(u)(v),r.append(h)}var p=angular.element('<div modal-window="modal-window"></div>');p.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:C.length()-1,animate:"animate"}).html(t.content),t.animation&&p.attr("modal-animation","true");var d=o(p)(t.scope);C.top().value.modalDomEl=d,C.top().value.modalOpener=i,r.append(d),r.addClass(l),w.clearFocusListCache()},w.close=function(e,t){var n=C.get(e);return n&&f(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),u(e,n.value.modalOpener),!0):!n},w.dismiss=function(e,t){var n=C.get(e);return n&&f(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),u(e,n.value.modalOpener),!0):!n},w.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},w.getTop=function(){return C.top()},w.modalRendered=function(e){var t=C.get(e);t&&t.value.renderDeferred.resolve()},w.focusFirstFocusableElement=function(){return g.length>0?(g[0].focus(),!0):!1},w.focusLastFocusableElement=function(){return g.length>0?(g[g.length-1].focus(),!0):!1},w.isFocusInFirstItem=function(e){return g.length>0?(e.target||e.srcElement)==g[0]:!1},w.isFocusInLastItem=function(e){return g.length>0?(e.target||e.srcElement)==g[g.length-1]:!1},w.clearFocusListCache=function(){g=[],k=0},w.loadFocusElementList=function(e){if((void 0===g||!g.length0)&&e){var t=e.value.modalDomEl;t&&t.length&&(g=t[0].querySelectorAll(y))}},w}]).provider("$modal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(t,n,o,a,i,l){function r(e){return e.template?o.when(e.template):a(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function s(e){var n=[];return angular.forEach(e,function(e){n.push(angular.isFunction(e)||angular.isArray(e)?o.when(t.invoke(e)):angular.isString(e)?o.when(t.get(e)):o.when(e))}),n}var c={},u=null;return c.getPromiseChain=function(){return u},c.open=function(t){var a=o.defer(),c=o.defer(),p=o.defer(),d={result:a.promise,opened:c.promise,rendered:p.promise,close:function(e){return l.close(d,e)},dismiss:function(e){return l.dismiss(d,e)}};if(t=angular.extend({},e.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var f,m=o.all([r(t)].concat(s(t.resolve)));return f=u=o.all([u]).then(function(){return m},function(){return m}).then(function(e){var o=(t.scope||n).$new();o.$close=d.close,o.$dismiss=d.dismiss,o.$on("$destroy",function(){o.$$uibDestructionScheduled||o.$dismiss("$uibUnscheduledDestruction")});var r,s={},u=1;t.controller&&(s.$scope=o,s.$modalInstance=d,angular.forEach(t.resolve,function(t,n){s[n]=e[u++]}),r=i(t.controller,s),t.controllerAs&&(t.bindToController&&angular.extend(r,o),o[t.controllerAs]=r)),l.open(d,{scope:o,deferred:a,renderDeferred:p,content:e[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size,openedClass:t.openedClass}),c.resolve(!0)},function(e){c.reject(e),a.reject(e)}).finally(function(){u===f&&(u=null)}),d},c}]};return e}),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function e(e){var t=/[A-Z]/g,n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}var t={placement:"top",animation:!0,popupDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",focus:"blur",none:""},o={};this.options=function(e){angular.extend(o,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate","$rootScope","$parse",function(a,i,l,r,s,c,u,p){return function(a,d,f,m){function h(e){var t=(e||m.trigger||f).split(" "),o=t.map(function(e){return n[e]||e});return{show:t,hide:o}}m=angular.extend({},t,o,m);var v=e(a),g=c.startSymbol(),$=c.endSymbol(),C="<div "+v+'-popup title="'+g+"title"+$+'" '+(m.useContentExp?'content-exp="contentExp()" ':'content="'+g+"content"+$+'" ')+'placement="'+g+"placement"+$+'" popup-class="'+g+"popupClass"+$+'" animation="animation" is-open="isOpen"origin-scope="origScope" ></div>';return{restrict:"EA",compile:function(){var e=i(C);return function(t,n,o){function i(){H.isOpen?f():c()}function c(){(!I||t.$eval(o[d+"Enable"]))&&(b(),H.popupDelay?T||(T=l(v,H.popupDelay,!1)):v())}function f(){g(),u.$$phase||u.$digest()}function v(){return T=null,S&&(l.cancel(S),S=null),(m.useContentExp?H.contentExp():H.content)?($(),H.isOpen=!0,N&&N.assign(H.origScope,H.isOpen),u.$$phase||H.$apply(),O.css({display:"block"}),void F()):angular.noop}function g(){H.isOpen=!1,N&&N.assign(H.origScope,H.isOpen),l.cancel(T),T=null,l.cancel(D),D=null,H.animation?S||(S=l(C,500)):C()}function $(){O&&C(),x=H.$new(),O=e(x,function(e){U?r.find("body").append(e):n.after(e)}),m.useContentExp&&(x.$watch("contentExp()",function(e){!e&&H.isOpen&&g()}),x.$watch(function(){L||(L=!0,x.$$postDigest(function(){L=!1,H.isOpen&&F()}))}))}function C(){S=null,O&&(O.remove(),O=null),x&&(x.$destroy(),x=null)}function b(){w(),k(),y()}function w(){H.popupClass=o[d+"Class"]}function k(){var e=o[d+"Placement"];H.placement=angular.isDefined(e)?e:m.placement}function y(){var e=o[d+"PopupDelay"],t=parseInt(e,10);H.popupDelay=isNaN(t)?m.popupDelay:t}function E(){var e=o[d+"Trigger"];q(),A=h(e),"none"!==A.show&&A.show.forEach(function(e,t){e===A.hide[t]?n[0].addEventListener(e,i):e&&(n[0].addEventListener(e,c),n[0].addEventListener(A.hide[t],f))})}var O,x,S,T,D,U=angular.isDefined(m.appendToBody)?m.appendToBody:!1,A=h(void 0),I=angular.isDefined(o[d+"Enable"]),H=t.$new(!0),L=!1,N=angular.isDefined(o[d+"IsOpen"])?p(o[d+"IsOpen"]):!1,F=function(){O&&(D||(D=l(function(){O.css({top:0,left:0,width:"auto",height:"auto"});var e=s.position(O),t=s.positionElements(n,O,H.placement,U);t.top+="px",t.left+="px",t.width=e.width+"px",t.height=e.height+"px",O.css(t),D=null},0,!1)))};H.origScope=t,H.isOpen=!1,H.contentExp=function(){return t.$eval(o[a])},m.useContentExp||o.$observe(a,function(e){H.content=e,!e&&H.isOpen?g():F()}),o.$observe("disabled",function(e){T&&e&&(l.cancel(T),T=null),e&&H.isOpen&&g()}),o.$observe(d+"Title",function(e){H.title=e,F()}),o.$observe(d+"Placement",function(){H.isOpen&&(k(),F())}),N&&t.$watch(N,function(e){e!==H.isOpen&&i()});var q=function(){A.show.forEach(function(e){n.unbind(e,c)}),A.hide.forEach(function(e){n.unbind(e,f)})};E();var P=t.$eval(o[d+"Animation"]);H.animation=angular.isDefined(P)?!!P:m.animation;var G=t.$eval(o[d+"AppendToBody"]);U=angular.isDefined(G)?G:U,U&&t.$on("$locationChangeSuccess",function(){H.isOpen&&g()}),t.$on("$destroy",function(){l.cancel(S),l.cancel(T),l.cancel(D),q(),C(),H=null})}}}}}]}).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,o){return{link:function(a,i,l){var r,s,c,u=a.$eval(l.tooltipTemplateTranscludeScope),p=0,d=function(){s&&(s.remove(),s=null),r&&(r.$destroy(),r=null),c&&(e.leave(c).then(function(){s=null}),s=c,c=null)};a.$watch(t.parseAsResourceUrl(l.tooltipTemplateTransclude),function(t){var l=++p;t?(o(t,!0).then(function(o){if(l===p){var a=u.$new(),s=o,f=n(s)(a,function(t){d(),e.enter(t,i)});r=a,c=f,r.$emit("$includeContentLoaded",t)}},function(){l===p&&(d(),a.$emit("$includeContentError",t))}),a.$emit("$includeContentRequested",t)):d()}),a.$on("$destroy",d)}}}]).directive("tooltipClasses",function(){return{restrict:"A",link:function(e,t,n){e.placement&&t.addClass(e.placement),e.popupClass&&t.addClass(e.popupClass),e.animation()&&t.addClass(n.tooltipAnimationClass)}}}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}}).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}}).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).value("tooltipHtmlUnsafeSuppressDeprecated",!1).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(e,t,n){return t||n.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead."),e("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(e,t){function n(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}function o(e){return"static"===(n(e,"position")||"static")}var a=function(t){for(var n=e[0],a=t.offsetParent||n;a&&a!==n&&o(a);)a=a.offsetParent;return a||n};return{position:function(t){var n=this.offset(t),o={top:0,left:0},i=a(t[0]);i!=e[0]&&(o=this.offset(angular.element(i)),o.top+=i.clientTop-i.scrollTop,o.left+=i.clientLeft-i.scrollLeft);var l=t[0].getBoundingClientRect();return{width:l.width||t.prop("offsetWidth"),height:l.height||t.prop("offsetHeight"),top:n.top-o.top,left:n.left-o.left}},offset:function(n){var o=n[0].getBoundingClientRect();return{width:o.width||n.prop("offsetWidth"),height:o.height||n.prop("offsetHeight"),top:o.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:o.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,o){var a,i,l,r,s=n.split("-"),c=s[0],u=s[1]||"center";a=o?this.offset(e):this.position(e),i=t.prop("offsetWidth"),l=t.prop("offsetHeight");var p={center:function(){return a.left+a.width/2-i/2},left:function(){return a.left},right:function(){return a.left+a.width}},d={center:function(){return a.top+a.height/2-l/2},top:function(){return a.top},bottom:function(){return a.top+a.height}};switch(c){case"right":r={top:d[u](),left:p[c]()};break;case"left":r={top:d[u](),left:a.left-i};break;case"bottom":r={top:d[c](),left:p[u]()};break;default:r={top:a.top-l,left:p[u]()}}return r}}}]),angular.module("ui.bootstrap.bindHtml",[]).value("$bindHtmlUnsafeSuppressDeprecated",!1).directive("bindHtmlUnsafe",["$log","$bindHtmlUnsafeSuppressDeprecated",function(e,t){return function(n,o,a){t||e.warn("bindHtmlUnsafe is now deprecated. Use ngBindHtml instead"),o.addClass("ng-binding").data("$binding",a.bindHtmlUnsafe),n.$watch(a.bindHtmlUnsafe,function(e){o.html(e||"")})}}]),angular.module("ui.bootstrap.carousel",[]).controller("CarouselController",["$scope","$element","$interval","$animate",function(e,t,n,o){function a(t,n,a){g||(angular.extend(t,{direction:a,active:!0}),angular.extend(p.currentSlide||{},{direction:a,active:!1}),o.enabled()&&!e.noTransition&&!e.$currentTransition&&t.$element&&p.slides.length>1&&(t.$element.data(h,t.direction),p.currentSlide&&p.currentSlide.$element&&p.currentSlide.$element.data(h,t.direction),e.$currentTransition=!0,f?o.on("addClass",t.$element,function(t,n){"close"===n&&(e.$currentTransition=null,o.off("addClass",t))}):t.$element.one("$animate:close",function(){e.$currentTransition=null})),p.currentSlide=t,v=n,l())}function i(e){if(angular.isUndefined(d[e].index))return d[e];{var t;d.length}for(t=0;t<d.length;++t)if(d[t].index==e)return d[t]}function l(){r();var t=+e.interval;!isNaN(t)&&t>0&&(c=n(s,t))}function r(){c&&(n.cancel(c),c=null)}function s(){var t=+e.interval;u&&!isNaN(t)&&t>0&&d.length?e.next():e.pause()}var c,u,p=this,d=p.slides=e.slides=[],f=angular.version.minor>=4,m="uib-noTransition",h="uib-slideDirection",v=-1;p.currentSlide=null;var g=!1;p.select=e.select=function(t,n){var o=e.indexOfSlide(t);void 0===n&&(n=o>p.getCurrentIndex()?"next":"prev"),t&&t!==p.currentSlide&&!e.$currentTransition&&a(t,o,n)},e.$on("$destroy",function(){g=!0}),p.getCurrentIndex=function(){return p.currentSlide&&angular.isDefined(p.currentSlide.index)?+p.currentSlide.index:v},e.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:d.indexOf(e)},e.next=function(){var t=(p.getCurrentIndex()+1)%d.length;return 0===t&&e.noWrap()?void e.pause():p.select(i(t),"next")},e.prev=function(){var t=p.getCurrentIndex()-1<0?d.length-1:p.getCurrentIndex()-1;return e.noWrap()&&t===d.length-1?void e.pause():p.select(i(t),"prev")},e.isActive=function(e){return p.currentSlide===e},e.$watch("interval",l),e.$on("$destroy",r),e.play=function(){u||(u=!0,l())},e.pause=function(){e.noPause||(u=!1,r())},p.addSlide=function(t,n){t.$element=n,d.push(t),1===d.length||t.active?(p.select(d[d.length-1]),1==d.length&&e.play()):t.active=!1},p.removeSlide=function(e){angular.isDefined(e.index)&&d.sort(function(e,t){return+e.index>+t.index});var t=d.indexOf(e);d.splice(t,1),d.length>0&&e.active?p.select(t>=d.length?d[t-1]:d[t]):v>t&&v--,0===d.length&&(p.currentSlide=null)},e.$watch("noTransition",function(e){t.data(m,e)})}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(e,t){return t.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,o){o.addSlide(e,t),e.$on("$destroy",function(){o.removeSlide(e)}),e.$watch("active",function(t){t&&o.select(e)})}}}).animation(".item",["$injector","$animate",function(e,t){function n(e,t,n){e.removeClass(t),n&&n()}var o="uib-noTransition",a="uib-slideDirection",i=null;return e.has("$animateCss")&&(i=e.get("$animateCss")),{beforeAddClass:function(e,l,r){if("active"==l&&e.parent()&&!e.parent().data(o)){var s=!1,c=e.data(a),u="next"==c?"left":"right",p=n.bind(this,e,u+" "+c,r);return e.addClass(c),i?i(e,{addClass:u}).start().done(p):t.addClass(e,u).then(function(){s||p(),r()}),function(){s=!0}}r()},beforeRemoveClass:function(e,l,r){if("active"===l&&e.parent()&&!e.parent().data(o)){var s=!1,c=e.data(a),u="next"==c?"left":"right",p=n.bind(this,e,u,r);return i?i(e,{addClass:u}).start().done(p):t.addClass(e,u).then(function(){s||p(),r()}),function(){s=!0}}r()}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(o){var a=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;a&&angular.forEach(this.groups,function(e){e!==o&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion.html"}}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,o){o.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass,e.$watch("isOpen",function(n){t.toggleClass(e.openClass,n),n&&o.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(e,t,n,o,a){o.setHeading(a(e,angular.noop))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(e,t,n,o){e.$watch(function(){return o[n.accordionTransclude]},function(e){e&&(t.find("span").html(""),t.find("span").append(e))})}}}),!angular.$$csp()&&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>');