<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="style.css">
<link href="http://code.ionicframework.com/1.0.0-beta.13/css/ionic.min.css" rel="stylesheet">
<!-- ionic/angularjs js -->
<!--<script src="http://code.ionicframework.com/1.0.0-beta.13/js/ionic.bundle.min.js"></script>-->
<script src="ionic.bundle.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="myApp">
<ion-nav-view></ion-nav-view>
</body>
</html>
angular.module('myApp', ['ionic'])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('app', {
url: "/app",
abstract: true,
templateUrl: "menu.html",
controller: 'AppCtrl'
})
.state('app.home', {
url: '/home',
views: {
'menuContent':{
templateUrl: 'home.html',
controller: 'HomeController'
}
}
})
.state('app.about', {
url: '/about',
views: {
'menuContent':{
templateUrl: 'about.html',
controller: 'AboutController'
}
}
});
$urlRouterProvider.otherwise('/app/home');
})
.controller('AppCtrl',function($scope, $location) {})
.controller('HomeController',function($scope, $location) {
$scope.title = "Home Page";
$scope.items = [{"name":"Item 1"},{"name":"Item 2"},
{"name":"Item 3"},{"name":"Item 4"},
{"name":"Item 5"},{"name":"Item 6"},
{"name":"Item 7"},{"name":"Item 8"},
{"name":"Item 9"},{"name":"Item 10"},
{"name":"Item 11"},{"name":"Item 12"},
{"name":"Item 13"},{"name":"Item 14"},
{"name":"Item 15"},{"name":"Item 16"},
{"name":"Item 17"},{"name":"Item 18"},
{"name":"Item 19"},{"name":"Item 20"}];
})
.controller('AboutController',function($scope, $location) {
$scope.title = "About Page";
});
/* Styles go here */
ion-scroll{
height:200px;
width:100%;
}
.myItemContainer{
width: 3020px;
}
.myItem{
background-color: #595959;
display: inline-block !important;
font-size: 0.8em;
height: 200px;
margin: 5px;
text-align: center;
text-decoration: none;
text-shadow: none;
width: 140px;
}
.myItem:nth-child(2n+2) {
background-color: #003F72;
color: #fff;
}
.myItem:first-child{
margin-left: 10px;
}
<ion-view title="{{title}}" hide-back-button="true">
<ion-nav-buttons side="left">
<button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
</ion-nav-buttons>
<ion-content>
<ion-scroll direction="x">
<div class="myItemContainer">
<div class="myItem" ng-repeat="item in items">
{{item.name}}
</div>
</div>
</ion-scroll>
<ion-scroll direction="x">
<div class="myItemContainer">
<div class="myItem" ng-repeat="item in items">
{{item.name}}
</div>
</div>
</ion-scroll>
<ion-scroll direction="x">
<div class="myItemContainer">
<div class="myItem" ng-repeat="item in items">
{{item.name}}
</div>
</div>
</ion-scroll>
<ion-scroll direction="x">
<div class="myItemContainer">
<div class="myItem" ng-repeat="item in items">
{{item.name}}
</div>
</div>
</ion-scroll>
<ion-scroll direction="x">
<div class="myItemContainer">
<div class="myItem" ng-repeat="item in items">
{{item.name}}
</div>
</div>
</ion-scroll>
</ion-content>
<div class="bar bar-footer bar-stable">
<div class="title">
Bam! A Footer!
</div>
</div>
</ion-view>
<ion-view title="{{title}}" hide-back-button="true">
<ion-nav-buttons side="left">
<button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
</ion-nav-buttons>
<ion-content>
About this!
</ion-content>
<div class="bar bar-footer bar-stable">
<div class="title">
Bam! Another Footer!
</div>
</div>
</ion-view>
<ion-side-menus>
<ion-pane ion-side-menu-content edge-drag-threshold="true">
<ion-nav-bar class="bar-stable nav-title-slide-ios7">
<ion-nav-back-button class="button-clear"><i class="icon ion-chevron-left"></i> Back</ion-nav-back-button>
</ion-nav-bar>
<ion-nav-view name="menuContent" animation="slide-left-right"></ion-nav-view>
</ion-pane>
<ion-side-menu side="left">
<ion-content>
<ion-list>
<a class="item item-icon-right" href="#/app/home">
Home
<i class="icon ion-chevron-right"></i>
</a>
<a class="item item-icon-right" href="#/app/about">
About
<i class="icon ion-chevron-right"></i>
</a>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
(function(){function h(t,n,r){if(n!==false){e.addEventListener(t,c[t],r)}else{e.removeEventListener(t,c[t])}}function p(e){var t=M(e.target);var n=_(t);if(ionic.tap.requiresNativeClick(n)||i)return false;var r=ionic.tap.pointerCoord(e);void 0;d("click",n,r.x,r.y);N(n)}function d(e,t,n,r){var i=document.createEvent("MouseEvents");i.initMouseEvent(e,true,true,window,1,0,0,n,r,false,false,false,false,0,null);i.isIonicTap=true;t.dispatchEvent(i)}function v(e){if(e.target.type=="submit"&&e.detail===0){return}if(ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(e.target)||!e.isIonicTap&&!ionic.tap.requiresNativeClick(e.target)){void 0;e.stopPropagation();if(!ionic.tap.isLabelWithTextInput(e.target)){e.preventDefault()}return false}}function m(e){if(e.isIonicTap||T(e))return;if(n){void 0;e.stopPropagation();if((!ionic.tap.isTextInput(e.target)||u!==e.target)&&!/^(select|option)$/i.test(e.target.tagName)){e.preventDefault()}return false}i=false;s=ionic.tap.pointerCoord(e);h("mousemove");ionic.activator.start(e)}function g(e){if(n){e.stopPropagation();e.preventDefault();return false}if(T(e)||/^(select|option)$/i.test(e.target.tagName))return false;if(!O(e)){p(e)}h("mousemove",false);ionic.activator.end();i=false}function y(e){if(O(e)){h("mousemove",false);ionic.activator.end();i=true;return false}}function b(e){if(T(e))return;i=false;x();s=ionic.tap.pointerCoord(e);h(a);ionic.activator.start(e);if(ionic.Platform.isIOS()&&ionic.tap.isLabelWithTextInput(e.target)){var n=_(M(e.target));if(n!==t){e.preventDefault()}}}function w(e){if(T(e))return;x();if(!O(e)){p(e);if(/^(select|option)$/i.test(e.target.tagName)){e.preventDefault()}}u=e.target;S()}function E(e){if(O(e)){i=true;h(a,false);ionic.activator.end();return false}}function S(e){h(a,false);ionic.activator.end();i=false}function x(){n=true;clearTimeout(r);r=setTimeout(function(){n=false},2e3)}function T(e){if(e.isTapHandled)return true;e.isTapHandled=true;if(ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(e.target)){e.preventDefault();return true}}function N(e){o=null;var t=false;if(e.tagName=="SELECT"){d("mousedown",e,0,0);e.focus&&e.focus();t=true}else if(A()===e){t=true}else if(/^(input|textarea)$/i.test(e.tagName)||e.isContentEditable){t=true;e.focus&&e.focus();e.value=e.value;if(n){o=e}}else{C()}if(t){A(e);ionic.trigger("ionic.focusin",{target:e},true)}}function C(){var e=A();if(e&&(/^(input|textarea|select)$/i.test(e.tagName)||e.isContentEditable)){void 0;e.blur()}A(null)}function k(e){if(n&&ionic.tap.isTextInput(A())&&ionic.tap.isTextInput(o)&&o!==e.target){void 0;o.focus();o=null}ionic.scroll.isScrolling=false}function L(){A(null)}function A(e){if(arguments.length){t=e}return t||document.activeElement}function O(e){if(!e||e.target.nodeType!==1||!s||s.x===0&&s.y===0){return false}var t=ionic.tap.pointerCoord(e);var n=!!(e.target.classList&&e.target.classList.contains);var r=n&e.target.classList.contains("button")?l:f;return Math.abs(s.x-t.x)>r||Math.abs(s.y-t.y)>r}function M(e,t){var n=e;for(var r=0;r<6;r++){if(!n)break;if(n.tagName==="LABEL")return n;n=n.parentElement}if(t!==false)return e}function _(e){if(e&&e.tagName==="LABEL"){if(e.control)return e.control;if(e.querySelector){var t=e.querySelector("input,textarea,select");if(t)return t}}return e}function U(){if(tt()){window.addEventListener("native.keyboardshow",z);window.addEventListener("native.keyboardhide",$);window.addEventListener("native.showkeyboard",z);window.addEventListener("native.hidekeyboard",$)}else{document.body.addEventListener("focusout",$)}document.body.addEventListener("ionic.focusin",W);document.body.addEventListener("focusin",W);document.body.addEventListener("orientationchange",G);if(window.navigator.msPointerEnabled){document.removeEventListener("MSPointerDown",U)}else{document.removeEventListener("touchstart",U)}}function z(e){clearTimeout(B);ionic.keyboard.height=e.keyboardHeight}function W(e){if(!e.target||!ionic.tap.isTextInput(e.target)||ionic.tap.isDateInput(e.target)||!et(e.target))return;document.addEventListener("keydown",K,false);document.body.scrollTop=0;document.body.querySelector(".scroll-content").scrollTop=0;H=e.target;X(e)}function X(e){clearTimeout(j);clearTimeout(B);j=setTimeout(function(){if(I+350>Date.now())return;void 0;I=Date.now();var t;var n=H.getBoundingClientRect();var r=0;F=setInterval(function(){t=Y();if(r>10){clearInterval(F);t=275}if(t){clearInterval(F);V(e.target,n.top,n.bottom,D,t)}r++},100)},32)}function V(e,t,n,r,i){var s={target:e,elementTop:Math.round(t),elementBottom:Math.round(n),keyboardHeight:i,viewportHeight:r};s.hasPlugin=tt();s.contentHeight=r-i;void 0;s.isElementUnderKeyboard=s.elementBottom>s.contentHeight;ionic.keyboard.isOpen=true;H=e;ionic.trigger("scrollChildIntoView",s,true);ionic.requestAnimationFrame(function(){document.body.classList.add(q)});if(window.navigator.msPointerEnabled){document.addEventListener("MSPointerMove",Q,false)}else{document.addEventListener("touchmove",Q,false)}return s}function $(e){clearTimeout(B);B=setTimeout(ionic.keyboard.hide,350)}function J(){if(Z()>D){D=Z()}}function K(e){if(ionic.scroll.isScrolling){Q(e)}}function Q(e){if(e.target.tagName!=="TEXTAREA"){e.preventDefault()}}function G(){var e=Z();if(e===D){var t=0;var n=setInterval(function(){if(t>10){clearInterval(n)}e=Z();if(e!==D){if(e<D){ionic.keyboard.landscape=true}else{ionic.keyboard.landscape=false}D=e;clearInterval(n)}t++},50)}else{D=e}}function Y(){if(ionic.keyboard.height){return ionic.keyboard.height}if(ionic.Platform.isAndroid()){if(ionic.Platform.isFullScreen){return 275}if(Z()<D){return D-Z()}else{return 0}}if(ionic.Platform.isIOS()){if(ionic.keyboard.landscape){return 206}if(!ionic.Platform.isWebView()){return 216}return 260}return 275}function Z(){return window.innerHeight||screen.height}function et(e){while(e){if(e.classList.contains(R)){return true}e=e.parentElement}return false}function tt(){return!!(window.cordova&&cordova.plugins&&cordova.plugins.Keyboard)}function it(){var e;for(e=0;e<document.head.children.length;e++){if(document.head.children[e].name=="viewport"){nt=document.head.children[e];break}}if(nt){var t=nt.content.toLowerCase().replace(/\s+/g,"").split(",");var n;for(e=0;e<t.length;e++){if(t[e]){n=t[e].split("=");rt[n[0]]=n.length>1?n[1]:"_"}}st()}}function st(){var e=rt.width;var t=rt.height;var n=ionic.Platform;var r=n.version();var i="device-width";var s="device-height";var o=ionic.viewport.orientation();delete rt.height;rt.width=i;if(n.isIPad()){if(r>7){delete rt.width}else{if(n.isWebView()){if(o==90){rt.height="0"}else if(r==7){rt.height=s}}else{if(r<7){rt.height="0"}}}}else if(n.isIOS()){if(n.isWebView()){if(r>7){delete rt.width}else if(r<7){if(t)rt.height="0"}else if(r==7){rt.height=s}}else{if(r<7){if(t)rt.height="0"}}}if(e!==rt.width||t!==rt.height){ot()}}function ot(){var e,t=[];for(e in rt){if(rt[e]){t.push(e+(rt[e]=="_"?"":"="+rt[e]))}}nt.content=t.join(", ")}window.ionic=window.ionic||{};window.ionic.views={};window.ionic.version="1.0.0-beta.13";(function(e,t,n){function s(){i=true;for(var e=0;e<r.length;e++){n.requestAnimationFrame(r[e])}r=[];t.removeEventListener("DOMContentLoaded",s)}var r=[];var i=t.readyState==="complete"||t.readyState==="interactive";if(!i){t.addEventListener("DOMContentLoaded",s)}e._rAF=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(t){e.setTimeout(t,16)}}();var o=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelRequestAnimationFrame;n.DomUtil={requestAnimationFrame:function(t){return e._rAF(t)},cancelAnimationFrame:function(e){o(e)},animationFrameThrottle:function(e){var t,r,i;return function(){t=arguments;i=this;if(!r){r=true;n.requestAnimationFrame(function(){e.apply(i,t);r=false})}}},getPositionInParent:function(e){return{left:e.offsetLeft,top:e.offsetTop}},ready:function(e){if(i){n.requestAnimationFrame(e)}else{r.push(e)}},getTextBounds:function(n){if(t.createRange){var r=t.createRange();r.selectNodeContents(n);if(r.getBoundingClientRect){var i=r.getBoundingClientRect();if(i){var s=e.scrollX;var o=e.scrollY;return{top:i.top+o,left:i.left+s,right:i.left+s+i.width,bottom:i.top+o+i.height,width:i.width,height:i.height}}}}return null},getChildIndex:function(e,t){if(t){var n=e.parentNode.children;var r;for(var i=0,s=0,o=n.length;i<o;i++){r=n[i];if(r.nodeName&&r.nodeName.toLowerCase()==t){if(r==e){return s}s++}}}return Array.prototype.slice.call(e.parentNode.children).indexOf(e)},swapNodes:function(e,t){t.parentNode.insertBefore(e,t)},elementIsDescendant:function(e,t,n){var r=e;do{if(r===t)return true;r=r.parentNode}while(r&&r!==n);return false},getParentWithClass:function(e,t,n){n=n||10;while(e.parentNode&&n--){if(e.parentNode.classList&&e.parentNode.classList.contains(t)){return e.parentNode}e=e.parentNode}return null},getParentOrSelfWithClass:function(e,t,n){n=n||10;while(e&&n--){if(e.classList&&e.classList.contains(t)){return e}e=e.parentNode}return null},rectContains:function(e,t,n,r,i,s){if(e<n||e>i)return false;if(t<r||t>s)return false;return true}};n.requestAnimationFrame=n.DomUtil.requestAnimationFrame;n.cancelAnimationFrame=n.DomUtil.cancelAnimationFrame;n.animationFrameThrottle=n.DomUtil.animationFrameThrottle})(window,document,ionic);(function(e){e.CustomEvent=function(){if(typeof window.CustomEvent==="function")return CustomEvent;var e=function(e,t){var n;t=t||{bubbles:false,cancelable:false,detail:undefined};try{n=document.createEvent("CustomEvent");n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail)}catch(r){n=document.createEvent("Event");for(var i in t){n[i]=t[i]}n.initEvent(e,t.bubbles,t.cancelable)}return n};e.prototype=window.Event.prototype;return e}();e.EventController={VIRTUALIZED_EVENTS:["tap","swipe","swiperight","swipeleft","drag","hold","release"],trigger:function(t,n,r,i){var s=new e.CustomEvent(t,{detail:n,bubbles:!!r,cancelable:!!i});n&&n.target&&n.target.dispatchEvent&&n.target.dispatchEvent(s)||window.dispatchEvent(s)},on:function(t,n,r){var i=r||window;for(var s=0,o=this.VIRTUALIZED_EVENTS.length;s<o;s++){if(t==this.VIRTUALIZED_EVENTS[s]){var u=new e.Gesture(r);u.on(t,n);return u}}i.addEventListener(t,n)},off:function(e,t,n){n.removeEventListener(e,t)},onGesture:function(t,n,r,i){var s=new e.Gesture(r,i);s.on(t,n);return s},offGesture:function(e,t,n){e.off(t,n)},handlePopState:function(e){}};e.on=function(){e.EventController.on.apply(e.EventController,arguments)};e.off=function(){e.EventController.off.apply(e.EventController,arguments)};e.trigger=e.EventController.trigger;e.onGesture=function(){return e.EventController.onGesture.apply(e.EventController.onGesture,arguments)};e.offGesture=function(){return e.EventController.offGesture.apply(e.EventController.offGesture,arguments)}})(window.ionic);(function(e){function t(){if(e.Gestures.READY){return}e.Gestures.event.determineEventTypes();for(var t in e.Gestures.gestures){if(e.Gestures.gestures.hasOwnProperty(t)){e.Gestures.detection.register(e.Gestures.gestures[t])}}e.Gestures.event.onTouch(e.Gestures.DOCUMENT,e.Gestures.EVENT_MOVE,e.Gestures.detection.detect);e.Gestures.event.onTouch(e.Gestures.DOCUMENT,e.Gestures.EVENT_END,e.Gestures.detection.detect);e.Gestures.READY=true}e.Gesture=function(t,n){return new e.Gestures.Instance(t,n||{})};e.Gestures={};e.Gestures.defaults={stop_browser_behavior:"disable-user-behavior"};e.Gestures.HAS_POINTEREVENTS=window.navigator.pointerEnabled||window.navigator.msPointerEnabled;e.Gestures.HAS_TOUCHEVENTS="ontouchstart"in window;e.Gestures.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i;e.Gestures.NO_MOUSEEVENTS=e.Gestures.HAS_TOUCHEVENTS&&window.navigator.userAgent.match(e.Gestures.MOBILE_REGEX);e.Gestures.EVENT_TYPES={};e.Gestures.DIRECTION_DOWN="down";e.Gestures.DIRECTION_LEFT="left";e.Gestures.DIRECTION_UP="up";e.Gestures.DIRECTION_RIGHT="right";e.Gestures.POINTER_MOUSE="mouse";e.Gestures.POINTER_TOUCH="touch";e.Gestures.POINTER_PEN="pen";e.Gestures.EVENT_START="start";e.Gestures.EVENT_MOVE="move";e.Gestures.EVENT_END="end";e.Gestures.DOCUMENT=window.document;e.Gestures.plugins={};e.Gestures.READY=false;e.Gestures.Instance=function(n,r){var i=this;if(n===null){void 0;return}t();this.element=n;this.enabled=true;this.options=e.Gestures.utils.extend(e.Gestures.utils.extend({},e.Gestures.defaults),r||{});if(this.options.stop_browser_behavior){e.Gestures.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior)}e.Gestures.event.onTouch(n,e.Gestures.EVENT_START,function(t){if(i.enabled){e.Gestures.detection.startDetect(i,t)}});return this};e.Gestures.Instance.prototype={on:function(t,n){var r=t.split(" ");for(var i=0;i<r.length;i++){this.element.addEventListener(r[i],n,false)}return this},off:function(t,n){var r=t.split(" ");for(var i=0;i<r.length;i++){this.element.removeEventListener(r[i],n,false)}return this},trigger:function(n,r){var i=e.Gestures.DOCUMENT.createEvent("Event");i.initEvent(n,true,true);i.gesture=r;var s=this.element;if(e.Gestures.utils.hasParent(r.target,s)){s=r.target}s.dispatchEvent(i);return this},enable:function(t){this.enabled=t;return this}};var n=null;var r=false;var i=false;e.Gestures.event={bindDom:function(e,t,n){var r=t.split(" ");for(var i=0;i<r.length;i++){e.addEventListener(r[i],n,false)}},onTouch:function(s,o,u){var a=this;this.bindDom(s,e.Gestures.EVENT_TYPES[o],function(f){var l=f.type.toLowerCase();if(l.match(/mouse/)&&i){return}else if(l.match(/touch/)||l.match(/pointerdown/)||l.match(/mouse/)&&f.which===1){r=true}else if(l.match(/mouse/)&&f.which!==1){r=false}if(l.match(/touch|pointer/)){i=true}var c=0;if(r){if(e.Gestures.HAS_POINTEREVENTS&&o!=e.Gestures.EVENT_END){c=e.Gestures.PointerEvent.updatePointer(o,f)}else if(l.match(/touch/)){c=f.touches.length}else if(!i){c=l.match(/up/)?0:1}if(c>0&&o==e.Gestures.EVENT_END){o=e.Gestures.EVENT_MOVE}else if(!c){o=e.Gestures.EVENT_END}if(c||n===null){n=f}u.call(e.Gestures.detection,a.collectEventData(s,o,a.getTouchList(n,o),f));if(e.Gestures.HAS_POINTEREVENTS&&o==e.Gestures.EVENT_END){c=e.Gestures.PointerEvent.updatePointer(o,f)}}if(!c){n=null;r=false;i=false;e.Gestures.PointerEvent.reset()}})},determineEventTypes:function(){var n;if(e.Gestures.HAS_POINTEREVENTS){n=e.Gestures.PointerEvent.getEvents()}else if(e.Gestures.NO_MOUSEEVENTS){n=["touchstart","touchmove","touchend touchcancel"]}else{n=["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"]}e.Gestures.EVENT_TYPES[e.Gestures.EVENT_START]=n[0];e.Gestures.EVENT_TYPES[e.Gestures.EVENT_MOVE]=n[1];e.Gestures.EVENT_TYPES[e.Gestures.EVENT_END]=n[2]},getTouchList:function(n){if(e.Gestures.HAS_POINTEREVENTS){return e.Gestures.PointerEvent.getTouchList()}else if(n.touches){return n.touches}else{n.identifier=1;return[n]}},collectEventData:function(n,r,i,s){var o=e.Gestures.POINTER_TOUCH;if(s.type.match(/mouse/)||e.Gestures.PointerEvent.matchType(e.Gestures.POINTER_MOUSE,s)){o=e.Gestures.POINTER_MOUSE}return{center:e.Gestures.utils.getCenter(i),timeStamp:(new Date).getTime(),target:s.target,touches:i,eventType:r,pointerType:o,srcEvent:s,preventDefault:function(){if(this.srcEvent.preventManipulation){this.srcEvent.preventManipulation()}if(this.srcEvent.preventDefault){}},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return e.Gestures.detection.stopDetect()}}}};e.Gestures.PointerEvent={pointers:{},getTouchList:function(){var e=this;var t=[];Object.keys(e.pointers).sort().forEach(function(n){t.push(e.pointers[n])});return t},updatePointer:function(t,n){if(t==e.Gestures.EVENT_END){this.pointers={}}else{n.identifier=n.pointerId;this.pointers[n.pointerId]=n}return Object.keys(this.pointers).length},matchType:function(t,n){if(!n.pointerType){return false}var r={};r[e.Gestures.POINTER_MOUSE]=n.pointerType==n.MSPOINTER_TYPE_MOUSE||n.pointerType==e.Gestures.POINTER_MOUSE;r[e.Gestures.POINTER_TOUCH]=n.pointerType==n.MSPOINTER_TYPE_TOUCH||n.pointerType==e.Gestures.POINTER_TOUCH;r[e.Gestures.POINTER_PEN]=n.pointerType==n.MSPOINTER_TYPE_PEN||n.pointerType==e.Gestures.POINTER_PEN;return r[t]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}};e.Gestures.utils={extend:function(t,n,r){for(var i in n){if(t[i]!==undefined&&r){continue}t[i]=n[i]}return t},hasParent:function(e,t){while(e){if(e==t){return true}e=e.parentNode}return false},getCenter:function(t){var n=[],r=[];for(var i=0,s=t.length;i<s;i++){n.push(t[i].pageX);r.push(t[i].pageY)}return{pageX:(Math.min.apply(Math,n)+Math.max.apply(Math,n))/2,pageY:(Math.min.apply(Math,r)+Math.max.apply(Math,r))/2}},getVelocity:function(t,n,r){return{x:Math.abs(n/t)||0,y:Math.abs(r/t)||0}},getAngle:function(t,n){var r=n.pageY-t.pageY,i=n.pageX-t.pageX;return Math.atan2(r,i)*180/Math.PI},getDirection:function(n,r){var i=Math.abs(n.pageX-r.pageX),s=Math.abs(n.pageY-r.pageY);if(i>=s){return n.pageX-r.pageX>0?e.Gestures.DIRECTION_LEFT:e.Gestures.DIRECTION_RIGHT}else{return n.pageY-r.pageY>0?e.Gestures.DIRECTION_UP:e.Gestures.DIRECTION_DOWN}},getDistance:function(t,n){var r=n.pageX-t.pageX,i=n.pageY-t.pageY;return Math.sqrt(r*r+i*i)},getScale:function(t,n){if(t.length>=2&&n.length>=2){return this.getDistance(n[0],n[1])/this.getDistance(t[0],t[1])}return 1},getRotation:function(t,n){if(t.length>=2&&n.length>=2){return this.getAngle(n[1],n[0])-this.getAngle(t[1],t[0])}return 0},isVertical:function(n){return n==e.Gestures.DIRECTION_UP||n==e.Gestures.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(t,n){if(t&&t.classList){t.classList.add(n);t.onselectstart=function(){return false}}}};e.Gestures.detection={gestures:[],current:null,previous:null,stopped:false,startDetect:function(n,r){if(this.current){return}this.stopped=false;this.current={inst:n,startEvent:e.Gestures.utils.extend({},r),lastEvent:false,name:""};this.detect(r)},detect:function(n){if(!this.current||this.stopped){return}n=this.extendEventData(n);var r=this.current.inst.options;for(var i=0,s=this.gestures.length;i<s;i++){var o=this.gestures[i];if(!this.stopped&&r[o.name]!==false){if(o.handler.call(o,n,this.current.inst)===false){this.stopDetect();break}}}if(this.current){this.current.lastEvent=n}if(n.eventType==e.Gestures.EVENT_END&&!n.touches.length-1){this.stopDetect()}return n},stopDetect:function(){this.previous=e.Gestures.utils.extend({},this.current);this.current=null;this.stopped=true},extendEventData:function(n){var r=this.current.startEvent;if(r&&(n.touches.length!=r.touches.length||n.touches===r.touches)){r.touches=[];for(var i=0,s=n.touches.length;i<s;i++){r.touches.push(e.Gestures.utils.extend({},n.touches[i]))}}var o=n.timeStamp-r.timeStamp,u=n.center.pageX-r.center.pageX,a=n.center.pageY-r.center.pageY,f=e.Gestures.utils.getVelocity(o,u,a);e.Gestures.utils.extend(n,{deltaTime:o,deltaX:u,deltaY:a,velocityX:f.x,velocityY:f.y,distance:e.Gestures.utils.getDistance(r.center,n.center),angle:e.Gestures.utils.getAngle(r.center,n.center),direction:e.Gestures.utils.getDirection(r.center,n.center),scale:e.Gestures.utils.getScale(r.touches,n.touches),rotation:e.Gestures.utils.getRotation(r.touches,n.touches),startEvent:r});return n},register:function(n){var r=n.defaults||{};if(r[n.name]===undefined){r[n.name]=true}e.Gestures.utils.extend(e.Gestures.defaults,r,true);n.index=n.index||1e3;this.gestures.push(n);this.gestures.sort(function(e,t){if(e.index<t.index){return-1}if(e.index>t.index){return 1}return 0});return this.gestures}};e.Gestures.gestures=e.Gestures.gestures||{};e.Gestures.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(n,r){switch(n.eventType){case e.Gestures.EVENT_START:clearTimeout(this.timer);e.Gestures.detection.current.name=this.name;this.timer=setTimeout(function(){if(e.Gestures.detection.current.name=="hold"){e.tap.cancelClick();r.trigger("hold",n)}},r.options.hold_timeout);break;case e.Gestures.EVENT_MOVE:if(n.distance>r.options.hold_threshold){clearTimeout(this.timer)}break;case e.Gestures.EVENT_END:clearTimeout(this.timer);break}}};e.Gestures.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:true,doubletap_distance:20,doubletap_interval:300},handler:function(n,r){if(n.eventType==e.Gestures.EVENT_END&&n.srcEvent.type!="touchcancel"){var i=e.Gestures.detection.previous,s=false;if(n.deltaTime>r.options.tap_max_touchtime||n.distance>r.options.tap_max_distance){return}if(i&&i.name=="tap"&&n.timeStamp-i.lastEvent.timeStamp<r.options.doubletap_interval&&n.distance<r.options.doubletap_distance){r.trigger("doubletap",n);s=true}if(!s||r.options.tap_always){e.Gestures.detection.current.name="tap";r.trigger("tap",n)}}}};e.Gestures.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.7},handler:function(n,r){if(n.eventType==e.Gestures.EVENT_END){if(r.options.swipe_max_touches>0&&n.touches.length>r.options.swipe_max_touches){return}if(n.velocityX>r.options.swipe_velocity||n.velocityY>r.options.swipe_velocity){r.trigger(this.name,n);r.trigger(this.name+n.direction,n)}}}};e.Gestures.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:true,drag_max_touches:1,drag_block_horizontal:true,drag_block_vertical:true,drag_lock_to_axis:false,drag_lock_min_distance:25},triggered:false,handler:function(n,r){if(e.Gestures.detection.current.name!=this.name&&this.triggered){r.trigger(this.name+"end",n);this.triggered=false;return}if(r.options.drag_max_touches>0&&n.touches.length>r.options.drag_max_touches){return}switch(n.eventType){case e.Gestures.EVENT_START:this.triggered=false;break;case e.Gestures.EVENT_MOVE:if(n.distance<r.options.drag_min_distance&&e.Gestures.detection.current.name!=this.name){return}if(e.Gestures.detection.current.name!=this.name){e.Gestures.detection.current.name=this.name;if(r.options.correct_for_drag_min_distance){var i=Math.abs(r.options.drag_min_distance/n.distance);e.Gestures.detection.current.startEvent.center.pageX+=n.deltaX*i;e.Gestures.detection.current.startEvent.center.pageY+=n.deltaY*i;n=e.Gestures.detection.extendEventData(n)}}if(e.Gestures.detection.current.lastEvent.drag_locked_to_axis||r.options.drag_lock_to_axis&&r.options.drag_lock_min_distance<=n.distance){n.drag_locked_to_axis=true}var s=e.Gestures.detection.current.lastEvent.direction;if(n.drag_locked_to_axis&&s!==n.direction){if(e.Gestures.utils.isVertical(s)){n.direction=n.deltaY<0?e.Gestures.DIRECTION_UP:e.Gestures.DIRECTION_DOWN}else{n.direction=n.deltaX<0?e.Gestures.DIRECTION_LEFT:e.Gestures.DIRECTION_RIGHT}}if(!this.triggered){r.trigger(this.name+"start",n);this.triggered=true}r.trigger(this.name,n);r.trigger(this.name+n.direction,n);if(r.options.drag_block_vertical&&e.Gestures.utils.isVertical(n.direction)||r.options.drag_block_horizontal&&!e.Gestures.utils.isVertical(n.direction)){n.preventDefault()}break;case e.Gestures.EVENT_END:if(this.triggered){r.trigger(this.name+"end",n)}this.triggered=false;break}}};e.Gestures.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:false},triggered:false,handler:function(n,r){if(e.Gestures.detection.current.name!=this.name&&this.triggered){r.trigger(this.name+"end",n);this.triggered=false;return}if(n.touches.length<2){return}if(r.options.transform_always_block){n.preventDefault()}switch(n.eventType){case e.Gestures.EVENT_START:this.triggered=false;break;case e.Gestures.EVENT_MOVE:var i=Math.abs(1-n.scale);var s=Math.abs(n.rotation);if(i<r.options.transform_min_scale&&s<r.options.transform_min_rotation){return}e.Gestures.detection.current.name=this.name;if(!this.triggered){r.trigger(this.name+"start",n);this.triggered=true}r.trigger(this.name,n);if(s>r.options.transform_min_rotation){r.trigger("rotate",n)}if(i>r.options.transform_min_scale){r.trigger("pinch",n);r.trigger("pinch"+(n.scale<1?"in":"out"),n)}break;case e.Gestures.EVENT_END:if(this.triggered){r.trigger(this.name+"end",n)}this.triggered=false;break}}};e.Gestures.gestures.Touch={name:"touch",index:-Infinity,defaults:{prevent_default:false,prevent_mouseevents:false},handler:function(n,r){if(r.options.prevent_mouseevents&&n.pointerType==e.Gestures.POINTER_MOUSE){n.stopDetect();return}if(r.options.prevent_default){n.preventDefault()}if(n.eventType==e.Gestures.EVENT_START){r.trigger(this.name,n)}}};e.Gestures.gestures.Release={name:"release",index:Infinity,handler:function(n,r){if(n.eventType==e.Gestures.EVENT_END){r.trigger(this.name,n)}}}})(window.ionic);(function(e,t,n){function l(){if(n.Platform.isWebView()){t.addEventListener("deviceready",c,false)}else{c()}if(f){e.removeEventListener("load",l,false)}}function c(){n.Platform.isReady=true;n.Platform.detect();for(var e=0;e<a.length;e++){a[e]()}a=[];n.trigger("platformready",{target:t});n.requestAnimationFrame(function(){t.body.classList.add("platform-ready")})}var r="ios";var i="android";var s="windowsphone";n.Platform={navigator:e.navigator,isReady:false,isFullScreen:false,platforms:null,grade:null,ua:navigator.userAgent,ready:function(e){if(this.isReady){e()}else{a.push(e)}},detect:function(){n.Platform._checkPlatforms();n.requestAnimationFrame(function(){for(var e=0;e<n.Platform.platforms.length;e++){t.body.classList.add("platform-"+n.Platform.platforms[e])}})},setGrade:function(e){var r=this.grade;this.grade=e;n.requestAnimationFrame(function(){if(r){t.body.classList.remove("grade-"+r)}t.body.classList.add("grade-"+e)})},device:function(){return e.device||{}},_checkPlatforms:function(e){this.platforms=[];var t="a";if(this.isWebView()){this.platforms.push("webview");this.platforms.push("cordova")}else{this.platforms.push("browser")}if(this.isIPad())this.platforms.push("ipad");var n=this.platform();if(n){this.platforms.push(n);var r=this.version();if(r){var i=r.toString();if(i.indexOf(".")>0){i=i.replace(".","_")}else{i+="_0"}this.platforms.push(n+i.split("_")[0]);this.platforms.push(n+i);if(this.isAndroid()&&r<4.4){t=r<4?"c":"b"}else if(this.isWindowsPhone()){t="b"}}}this.setGrade(t)},isWebView:function(){return!(!e.cordova&&!e.PhoneGap&&!e.phonegap)},isIPad:function(){if(/iPad/i.test(n.Platform.navigator.platform)){return true}return/iPad/i.test(this.ua)},isIOS:function(){return this.is(r)},isAndroid:function(){return this.is(i)},isWindowsPhone:function(){return this.is(s)},platform:function(){if(o===null)this.setPlatform(this.device().platform);return o},setPlatform:function(e){if(typeof e!="undefined"&&e!==null&&e.length){o=e.toLowerCase()}else if(this.ua.indexOf("Android")>0){o=i}else if(this.ua.indexOf("iPhone")>-1||this.ua.indexOf("iPad")>-1||this.ua.indexOf("iPod")>-1){o=r}else if(this.ua.indexOf("Windows Phone")>-1){o=s}else{o=n.Platform.navigator.platform&&navigator.platform.toLowerCase().split(" ")[0]||""}},version:function(){if(u===null)this.setVersion(this.device().version);return u},setVersion:function(e){if(typeof e!="undefined"&&e!==null){e=e.split(".");e=parseFloat(e[0]+"."+(e.length>1?e[1]:0));if(!isNaN(e)){u=e;return}}u=0;var t=this.platform();var n={android:/Android (\d+).(\d+)?/,ios:/OS (\d+)_(\d+)?/,windowsphone:/Windows Phone (\d+).(\d+)?/};if(n[t]){e=this.ua.match(n[t]);if(e&&e.length>2){u=parseFloat(e[1]+"."+e[2])}}},is:function(e){e=e.toLowerCase();if(this.platforms){for(var t=0;t<this.platforms.length;t++){if(this.platforms[t]===e)return true}}var n=this.platform();if(n){return n===e.toLowerCase()}return this.ua.toLowerCase().indexOf(e)>=0},exitApp:function(){this.ready(function(){navigator.app&&navigator.app.exitApp&&navigator.app.exitApp()})},showStatusBar:function(r){this._showStatusBar=r;this.ready(function(){n.requestAnimationFrame(function(){if(n.Platform._showStatusBar){e.StatusBar&&e.StatusBar.show();t.body.classList.remove("status-bar-hide")}else{e.StatusBar&&e.StatusBar.hide();t.body.classList.add("status-bar-hide")}})})},fullScreen:function(e,r){this.isFullScreen=e!==false;n.DomUtil.ready(function(){n.requestAnimationFrame(function(){panes=t.getElementsByClassName("pane");for(var e=0;e<panes.length;e++){panes[e].style.height=panes[e].offsetHeight+"px"}if(n.Platform.isFullScreen){t.body.classList.add("fullscreen")}else{t.body.classList.remove("fullscreen")}});n.Platform.showStatusBar(r===true)})}};var o=null,u=null,a=[],f;if(t.readyState==="complete"){l()}else{f=true;e.addEventListener("load",l,false)}e.addEventListener("load",l,false)})(this,document,ionic);(function(e,t){"use strict";t.CSS={};(function(){var n,r=["webkitTransform","transform","-webkit-transform","webkit-transform","-moz-transform","moz-transform","MozTransform","mozTransform","msTransform"];for(n=0;n<r.length;n++){if(e.documentElement.style[r[n]]!==undefined){t.CSS.TRANSFORM=r[n];break}}r=["webkitTransition","mozTransition","msTransition","transition"];for(n=0;n<r.length;n++){if(e.documentElement.style[r[n]]!==undefined){t.CSS.TRANSITION=r[n];break}}})();if(!("classList"in e.documentElement)&&Object.defineProperty&&typeof HTMLElement!=="undefined"){Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function t(t){return function(){var n,r=e.className.split(/\s+/);for(n=0;n<arguments.length;n++){t(r,r.indexOf(arguments[n]),arguments[n])}e.className=r.join(" ")}}var e=this;return{add:t(function(e,t,n){~t||e.push(n)}),remove:t(function(e,t){~t&&e.splice(t,1)}),toggle:t(function(e,t,n){~t?e.splice(t,1):e.push(n)}),contains:function(t){return!!~e.className.split(/\s+/).indexOf(t)},item:function(t){return e.className.split(/\s+/)[t]||null}}}})}})(document,ionic);var e;var t;var n;var r;var i;var s;var o;var u;var a="touchmove";var f=6;var l=50;var c={click:v,mousedown:m,mouseup:g,mousemove:y,touchstart:b,touchend:w,touchcancel:S,touchmove:E,pointerdown:b,pointerup:w,pointercancel:S,pointermove:E,MSPointerDown:b,MSPointerUp:w,MSPointerCancel:S,MSPointerMove:E,focusin:k,focusout:L};ionic.tap={register:function(r){e=r;h("click",true,true);h("mouseup");h("mousedown");if(window.navigator.pointerEnabled){h("pointerdown");h("pointerup");h("pointcancel");a="pointermove"}else if(window.navigator.msPointerEnabled){h("MSPointerDown");h("MSPointerUp");h("MSPointerCancel");a="MSPointerMove"}else{h("touchstart");h("touchend");h("touchcancel")}h("focusin");h("focusout");return function(){for(var r in c){h(r,false)}e=null;t=null;n=false;i=false;s=null}},ignoreScrollStart:function(e){return;/^(file|range)$/i.test(e.target.type)||(e.target.dataset?e.target.dataset.preventScroll:e.target.getAttribute("data-prevent-scroll"))=="true"||!!/^(object|embed)$/i.test(e.target.tagName)||ionic.tap.isElementTapDisabled(e.target)},isTextInput:function(e){return!!e&&(e.tagName=="TEXTAREA"||e.contentEditable==="true"||e.tagName=="INPUT"&&!/^(radio|checkbox|range|file|submit|reset)$/i.test(e.type))},isDateInput:function(e){return!!e&&e.tagName=="INPUT"&&/^(date|time|datetime-local|month|week)$/i.test(e.type)},isLabelWithTextInput:function(e){var t=M(e,false);return!!t&&ionic.tap.isTextInput(_(t))},containsOrIsTextInput:function(e){return ionic.tap.isTextInput(e)||ionic.tap.isLabelWithTextInput(e)},cloneFocusedInput:function(e,t){if(ionic.tap.hasCheckedClone)return;ionic.tap.hasCheckedClone=true;ionic.requestAnimationFrame(function(){var t=e.querySelector(":focus");if(ionic.tap.isTextInput(t)){var n=t.parentElement.querySelector(".cloned-text-input");if(!n){n=document.createElement(t.tagName);n.placeholder=t.placeholder;n.type=t.type;n.value=t.value;n.style=t.style;n.className=t.className;n.classList.add("cloned-text-input");n.readOnly=true;if(t.isContentEditable){n.contentEditable=t.contentEditable;n.innerHTML=t.innerHTML}t.parentElement.insertBefore(n,t);t.style.top=t.offsetTop;t.classList.add("previous-input-focus")}}})},hasCheckedClone:false,removeClonedInputs:function(e,t){ionic.tap.hasCheckedClone=false;ionic.requestAnimationFrame(function(){var t=e.querySelectorAll(".cloned-text-input");var n=e.querySelectorAll(".previous-input-focus");var r;for(r=0;r<t.length;r++){t[r].parentElement.removeChild(t[r])}for(r=0;r<n.length;r++){n[r].classList.remove("previous-input-focus");n[r].style.top="";n[r].focus()}})},requiresNativeClick:function(e){if(!e||e.disabled||/^(file|range)$/i.test(e.type)||/^(object|video)$/i.test(e.tagName)||ionic.tap.isLabelContainingFileInput(e)){return true}return ionic.tap.isElementTapDisabled(e)},isLabelContainingFileInput:function(e){var t=M(e);if(t.tagName!=="LABEL")return false;var n=t.querySelector("input[type=file]");if(n&&n.disabled===false)return true;return false},isElementTapDisabled:function(e){if(e&&e.nodeType===1){var t=e;while(t){if((t.dataset?t.dataset.tapDisabled:t.getAttribute("data-tap-disabled"))=="true"){return true}t=t.parentElement}}return false},setTolerance:function(e,t){f=e;l=t},cancelClick:function(){i=true},pointerCoord:function(e){var t={x:0,y:0};if(e){var n=e.touches&&e.touches.length?e.touches:[e];var r=e.changedTouches&&e.changedTouches[0]||n[0];if(r){t.x=r.clientX||r.pageX||0;t.y=r.clientY||r.pageY||0}}return t}};ionic.DomUtil.ready(function(){var e=typeof angular!=="undefined"?angular:null;if(!e||e&&!e.scenario){ionic.tap.register(document)}});(function(e,t){"use strict";function o(){n={};t.requestAnimationFrame(a)}function u(){for(var e in n){if(n[e]){n[e].classList.add(s);r[e]=n[e]}}n={}}function a(){for(var e in r){if(r[e]){r[e].classList.remove(s);delete r[e]}}}var n={};var r={};var i=0;var s="activated";t.activator={start:function(e){var r=this;t.requestAnimationFrame(function(){if(t.tap.requiresNativeClick(e.target))return;var s=e.target;var o;for(var a=0;a<6;a++){if(!s||s.nodeType!==1)break;if(o&&s.classList.contains("item")){o=s;break}if(s.tagName=="A"||s.tagName=="BUTTON"||s.hasAttribute("ng-click")){o=s;break}if(s.classList.contains("button")){o=s;break}if(s.classList.contains("pane")||s.tagName=="BODY"||s.tagName=="ION-CONTENT"){break}s=s.parentElement}if(o){n[i]=o;if(e.type==="touchstart"){r._activateTimeout=setTimeout(u,80)}else{t.requestAnimationFrame(u)}i=i>19?0:i+1}})},end:function(){clearTimeout(this._activateTimeout);setTimeout(o,200)}}})(document,ionic);(function(e){var t=["0","0","0"];e.Utils={arrayMove:function(e,t,n){if(n>=e.length){var r=n-e.length;while(r-- +1){e.push(undefined)}}e.splice(n,0,e.splice(t,1)[0]);return e},proxy:function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){return e.apply(t,n.concat(Array.prototype.slice.call(arguments)))}},debounce:function(e,t,n){var r,i,s,o,u;return function(){s=this;i=arguments;o=new Date;var a=function(){var f=new Date-o;if(f<t){r=setTimeout(a,t-f)}else{r=null;if(!n)u=e.apply(s,i)}};var f=n&&!r;if(!r){r=setTimeout(a,t)}if(f)u=e.apply(s,i);return u}},throttle:function(e,t,n){var r,i,s;var o=null;var u=0;n||(n={});var a=function(){u=n.leading===false?0:Date.now();o=null;s=e.apply(r,i)};return function(){var f=Date.now();if(!u&&n.leading===false)u=f;var l=t-(f-u);r=this;i=arguments;if(l<=0){clearTimeout(o);o=null;u=f;s=e.apply(r,i)}else if(!o&&n.trailing!==false){o=setTimeout(a,l)}return s}},inherit:function(t,n){var r=this;var i;if(t&&t.hasOwnProperty("constructor")){i=t.constructor}else{i=function(){return r.apply(this,arguments)}}e.extend(i,r,n);var s=function(){this.constructor=i};s.prototype=r.prototype;i.prototype=new s;if(t)e.extend(i.prototype,t);i.__super__=r.prototype;return i},extend:function(e){var t=Array.prototype.slice.call(arguments,1);for(var n=0;n<t.length;n++){var r=t[n];if(r){for(var i in r){e[i]=r[i]}}}return e},nextUid:function(){var e=t.length;var n;while(e){e--;n=t[e].charCodeAt(0);if(n==57){t[e]="A";return t.join("")}if(n==90){t[e]="0"}else{t[e]=String.fromCharCode(n+1);return t.join("")}}t.unshift("0");return t.join("")}};e.inherit=e.Utils.inherit;e.extend=e.Utils.extend;e.throttle=e.Utils.throttle;e.proxy=e.Utils.proxy;e.debounce=e.Utils.debounce})(window.ionic);var D=Z();var P;var H;var B;var j;var F;var I=0;var q="keyboard-open";var R="scroll";ionic.keyboard={isOpen:false,height:null,landscape:false,hide:function(){clearTimeout(j);clearTimeout(B);clearTimeout(F);ionic.keyboard.isOpen=false;ionic.trigger("resetScrollView",{target:H},true);ionic.requestAnimationFrame(function(){document.body.classList.remove(q)});if(window.navigator.msPointerEnabled){document.removeEventListener("MSPointerMove",Q)}else{document.removeEventListener("touchmove",Q)}document.removeEventListener("keydown",K);if(tt()){cordova.plugins.Keyboard.close()}},show:function(){if(tt()){cordova.plugins.Keyboard.show()}}};ionic.Platform.ready(function(){J();setTimeout(J,999);if(window.navigator.msPointerEnabled){document.addEventListener("MSPointerDown",U,false)}else{document.addEventListener("touchstart",U,false)}});var nt;var rt={};ionic.viewport={orientation:function(){return window.innerWidth>window.innerHeight?90:0}};ionic.Platform.ready(function(){it();window.addEventListener("orientationchange",function(){setTimeout(st,1e3)},false)});(function(e){"use strict";e.views.View=function(){this.initialize.apply(this,arguments)};e.views.View.inherit=e.inherit;e.extend(e.views.View.prototype,{initialize:function(){}})})(window.ionic);var ut={effect:{}};(function(e){var t=Date.now||function(){return+(new Date)};var n=60;var r=1e3;var i={};var s=1;ut.effect.Animate={requestAnimationFrame:function(){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame;var n=!!t;if(t&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(t.toString())){n=false}if(n){return function(e,n){t(e,n)}}var r=60;var i={};var s=0;var o=1;var u=null;var a=+(new Date);return function(e,t){var n=o++;i[n]=e;s++;if(u===null){u=setInterval(function(){var e=+(new Date);var t=i;i={};s=0;for(var n in t){if(t.hasOwnProperty(n)){t[n](e);a=e}}if(e-a>2500){clearInterval(u);u=null}},1e3/r)}return n}}(),stop:function(e){var t=i[e]!=null;if(t){i[e]=null}return t},isRunning:function(e){return i[e]!=null},start:function(e,o,u,a,f,l){var c=t();var h=c;var p=0;var d=0;var v=s++;if(!l){l=document.body}if(v%20===0){var m={};for(var g in i){m[g]=true}i=m}var y=function(s){var m=s!==true;var g=t();if(!i[v]||o&&!o(v)){i[v]=null;u&&u(n-d/((g-c)/r),v,false);return}if(m){var b=Math.round((g-h)/(r/n))-1;for(var w=0;w<Math.min(b,4);w++){y(true);d++}}if(a){p=(g-c)/a;if(p>1){p=1}}var E=f?f(p):p;if((e(E,g,m)===false||p===1)&&m){i[v]=null;u&&u(n-d/((g-c)/r),v,p===1||a==null)}else if(m){h=g;ut.effect.Animate.requestAnimationFrame(y,l)}};i[v]=true;ut.effect.Animate.requestAnimationFrame(y,l);return v}}})(this);var at;(function(e){var t=function(){};var n=function(e){return Math.pow(e-1,3)+1};var r=function(e){if((e/=.5)<1){return.5*Math.pow(e,3)}return.5*(Math.pow(e-2,3)+2)};e.views.Scroll=e.views.View.inherit({initialize:function(n){var r=this;this.__container=n.el;this.__content=n.el.firstElementChild;setTimeout(function(){if(r.__container&&r.__content){r.__container.scrollTop=0;r.__content.scrollTop=0}});this.options={scrollingX:false,scrollbarX:true,scrollingY:true,scrollbarY:true,startX:0,startY:0,wheelDampen:6,minScrollbarSizeX:5,minScrollbarSizeY:5,scrollbarsFade:true,scrollbarFadeDelay:300,scrollbarResizeFadeDelay:1e3,animating:true,animationDuration:250,bouncing:true,locking:true,paging:false,snapping:false,zooming:false,minZoom:.5,maxZoom:3,speedMultiplier:1,deceleration:.97,scrollingComplete:t,penetrationDeceleration:.03,penetrationAcceleration:.08,scrollEventInterval:10,getContentWidth:function(){return Math.max(r.__content.scrollWidth,r.__content.offsetWidth)},getContentHeight:function(){return Math.max(r.__content.scrollHeight,r.__content.offsetHeight+r.__content.offsetTop*2)}};for(var i in n){this.options[i]=n[i]}this.hintResize=e.debounce(function(){r.resize()},1e3,true);this.onScroll=function(){if(!e.scroll.isScrolling){setTimeout(r.setScrollStart,50)}else{clearTimeout(r.scrollTimer);r.scrollTimer=setTimeout(r.setScrollStop,80)}};this.setScrollStart=function(){e.scroll.isScrolling=Math.abs(e.scroll.lastTop-r.__scrollTop)>1;clearTimeout(r.scrollTimer);r.scrollTimer=setTimeout(r.setScrollStop,80)};this.setScrollStop=function(){e.scroll.isScrolling=false;e.scroll.lastTop=r.__scrollTop};this.triggerScrollEvent=e.throttle(function(){r.onScroll();e.trigger("scroll",{scrollTop:r.__scrollTop,scrollLeft:r.__scrollLeft,target:r.__container})},this.options.scrollEventInterval);this.triggerScrollEndEvent=function(){e.trigger("scrollend",{scrollTop:r.__scrollTop,scrollLeft:r.__scrollLeft,target:r.__container})};this.__scrollLeft=this.options.startX;this.__scrollTop=this.options.startY;this.__callback=this.getRenderFn();this.__initEventHandlers();this.__createScrollbars()},run:function(){this.resize();this.__fadeScrollbars("out",this.options.scrollbarResizeFadeDelay)},__isSingleTouch:false,__isTracking:false,__didDecelerationComplete:false,__isGesturing:false,__isDragging:false,__isDecelerating:false,__isAnimating:false,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:false,__refreshActivate:null,__refreshDeactivate:null,__refreshStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,__transformProperty:null,__perspectiveProperty:null,__indicatorX:null,__indicatorY:null,__scrollbarFadeTimeout:null,__didWaitForSize:null,__sizerTimeout:null,__initEventHandlers:function(){function r(e){return e.touches&&e.touches.length?e.touches:[{pageX:e.pageX,pageY:e.pageY}]}var t=this;var n=this.__container;t.scrollChildIntoView=function(r){var i;if(!t.isScrolledIntoView){if(e.Platform.isIOS()||e.Platform.isFullScreen){i=n.getBoundingClientRect().bottom;var s=r.detail.viewportHeight-i;var o=Math.max(0,r.detail.keyboardHeight-s);n.style.height=n.clientHeight-o+"px";n.style.overflow="visible";t.resize()}t.isScrolledIntoView=true}if(r.detail.isElementUnderKeyboard){var u;if(e.Platform.isAndroid()&&!e.Platform.isFullScreen){if(e.Platform.version()<4.4){u=500}else{u=350}}else{u=80}e.scroll.isScrolling=true;setTimeout(function(){var s=n.clientHeight*.5;i=n.getBoundingClientRect().bottom;var o=r.detail.elementTop-i;var u=o+s;if(u>0){e.tap.cloneFocusedInput(n,t);t.scrollBy(0,u,true);t.onScroll()}},u)}r.stopPropagation()};t.resetScrollView=function(r){if(t.isScrolledIntoView){t.isScrolledIntoView=false;n.style.height="";n.style.overflow="";t.resize();e.scroll.isScrolling=false}};n.addEventListener("scrollChildIntoView",t.scrollChildIntoView);n.addEventListener("resetScrollView",t.resetScrollView);t.touchStart=function(n){t.startCoordinates=e.tap.pointerCoord(n);if(e.tap.ignoreScrollStart(n)){return}t.__isDown=true;if(e.tap.containsOrIsTextInput(n.target)||n.target.tagName==="SELECT"){t.__hasStarted=false;return}t.__isSelectable=true;t.__enableScrollY=true;t.__hasStarted=true;t.doTouchStart(r(n),n.timeStamp);n.preventDefault()};t.touchMove=function(i){if(!t.__isDown||i.defaultPrevented||i.target.tagName==="TEXTAREA"&&i.target.parentElement.querySelector(":focus")){return}if(!t.__hasStarted&&(e.tap.containsOrIsTextInput(i.target)||i.target.tagName==="SELECT")){t.__hasStarted=true;t.doTouchStart(r(i),i.timeStamp);i.preventDefault();return}if(t.startCoordinates){var s=e.tap.pointerCoord(i);if(t.__isSelectable&&e.tap.isTextInput(i.target)&&Math.abs(t.startCoordinates.x-s.x)>20){t.__enableScrollY=false;t.__isSelectable=true}if(t.__enableScrollY&&Math.abs(t.startCoordinates.y-s.y)>10){t.__isSelectable=false;e.tap.cloneFocusedInput(n,t)}}t.doTouchMove(r(i),i.timeStamp,i.scale);t.__isDown=true};t.touchEnd=function(r){if(!t.__isDown)return;t.doTouchEnd(r.timeStamp);t.__isDown=false;t.__hasStarted=false;t.__isSelectable=true;t.__enableScrollY=true;if(!t.__isDragging&&!t.__isDecelerating&&!t.__isAnimating){e.tap.removeClonedInputs(n,t)}};if("ontouchstart"in window){n.addEventListener("touchstart",t.touchStart,false);document.addEventListener("touchmove",t.touchMove,false);document.addEventListener("touchend",t.touchEnd,false);document.addEventListener("touchcancel",t.touchEnd,false)}else if(window.navigator.pointerEnabled){n.addEventListener("pointerdown",t.touchStart,false);document.addEventListener("pointermove",t.touchMove,false);document.addEventListener("pointerup",t.touchEnd,false);document.addEventListener("pointercancel",t.touchEnd,false)}else if(window.navigator.msPointerEnabled){n.addEventListener("MSPointerDown",t.touchStart,false);document.addEventListener("MSPointerMove",t.touchMove,false);document.addEventListener("MSPointerUp",t.touchEnd,false);document.addEventListener("MSPointerCancel",t.touchEnd,false)}else{var i=false;t.mouseDown=function(n){if(e.tap.ignoreScrollStart(n)||n.target.tagName==="SELECT"){return}t.doTouchStart(r(n),n.timeStamp);if(!e.tap.isTextInput(n.target)){n.preventDefault()}i=true};t.mouseMove=function(e){if(!i||e.defaultPrevented){return}t.doTouchMove(r(e),e.timeStamp);i=true};t.mouseUp=function(e){if(!i){return}t.doTouchEnd(e.timeStamp);i=false};t.mouseWheel=e.animationFrameThrottle(function(n){var r=e.DomUtil.getParentOrSelfWithClass(n.target,"ionic-scroll");if(r===t.__container){t.hintResize();t.scrollBy(n.wheelDeltaX/t.options.wheelDampen,-n.wheelDeltaY/t.options.wheelDampen);t.__fadeScrollbars("in");clearTimeout(t.__wheelHideBarTimeout);t.__wheelHideBarTimeout=setTimeout(function(){t.__fadeScrollbars("out")},100)}});n.addEventListener("mousedown",t.mouseDown,false);document.addEventListener("mousemove",t.mouseMove,false);document.addEventListener("mouseup",t.mouseUp,false);document.addEventListener("mousewheel",t.mouseWheel,false)}},__cleanup:function(){var t=this.__container;var n=this;t.removeEventListener("touchstart",n.touchStart);document.removeEventListener("touchmove",n.touchMove);document.removeEventListener("touchend",n.touchEnd);document.removeEventListener("touchcancel",n.touchCancel);t.removeEventListener("pointerdown",n.touchStart);document.removeEventListener("pointermove",n.touchMove);document.removeEventListener("pointerup",n.touchEnd);document.removeEventListener("pointercancel",n.touchEnd);t.removeEventListener("MSPointerDown",n.touchStart);document.removeEventListener("MSPointerMove",n.touchMove);document.removeEventListener("MSPointerUp",n.touchEnd);document.removeEventListener("MSPointerCancel",n.touchEnd);t.removeEventListener("mousedown",n.mouseDown);document.removeEventListener("mousemove",n.mouseMove);document.removeEventListener("mouseup",n.mouseUp);document.removeEventListener("mousewheel",n.mouseWheel);t.removeEventListener("scrollChildIntoView",n.scrollChildIntoView);t.removeEventListener("resetScrollView",n.resetScrollView);e.tap.removeClonedInputs(t,n);delete this.__container;delete this.__content;delete this.__indicatorX;delete this.__indicatorY;delete this.options.el;this.__callback=this.scrollChildIntoView=this.resetScrollView=angular.noop;this.mouseMove=this.mouseDown=this.mouseUp=this.mouseWheel=this.touchStart=this.touchMove=this.touchEnd=this.touchCancel=angular.noop;this.resize=this.scrollTo=this.zoomTo=this.__scrollingComplete=angular.noop;t=null},__createScrollbar:function(e){var t=document.createElement("div"),n=document.createElement("div");n.className="scroll-bar-indicator scroll-bar-fade-out";if(e=="h"){t.className="scroll-bar scroll-bar-h"}else{t.className="scroll-bar scroll-bar-v"}t.appendChild(n);return t},__createScrollbars:function(){var e,t;if(this.options.scrollingX){e={el:this.__createScrollbar("h"),sizeRatio:1};e.indicator=e.el.children[0];if(this.options.scrollbarX){this.__container.appendChild(e.el)}this.__indicatorX=e}if(this.options.scrollingY){t={el:this.__createScrollbar("v"),sizeRatio:1};t.indicator=t.el.children[0];if(this.options.scrollbarY){this.__container.appendChild(t.el)}this.__indicatorY=t}},__resizeScrollbars:function(){var e=this;if(e.__indicatorX){var t=Math.max(Math.round(e.__clientWidth*e.__clientWidth/e.__contentWidth),20);if(t>e.__contentWidth){t=0}e.__indicatorX.size=t;e.__indicatorX.minScale=this.options.minScrollbarSizeX/t;e.__indicatorX.indicator.style.width=t+"px";e.__indicatorX.maxPos=e.__clientWidth-t;e.__indicatorX.sizeRatio=e.__maxScrollLeft?e.__indicatorX.maxPos/e.__maxScrollLeft:1}if(e.__indicatorY){var n=Math.max(Math.round(e.__clientHeight*e.__clientHeight/e.__contentHeight),20);if(n>e.__contentHeight){n=0}e.__indicatorY.size=n;e.__indicatorY.minScale=this.options.minScrollbarSizeY/n;e.__indicatorY.maxPos=e.__clientHeight-n;e.__indicatorY.indicator.style.height=n+"px";e.__indicatorY.sizeRatio=e.__maxScrollTop?e.__indicatorY.maxPos/e.__maxScrollTop:1}},__repositionScrollbars:function(){var e=this,t,n,r,i,s,o,u=0,a=0;if(e.__indicatorX){if(e.__indicatorY)u=10;s=Math.round(e.__indicatorX.sizeRatio*e.__scrollLeft)||0,r=e.__scrollLeft-(e.__maxScrollLeft-u);if(e.__scrollLeft<0){widthScale=Math.max(e.__indicatorX.minScale,(e.__indicatorX.size-Math.abs(e.__scrollLeft))/e.__indicatorX.size);s=0;e.__indicatorX.indicator.style[e.__transformOriginProperty]="left center"}else if(r>0){widthScale=Math.max(e.__indicatorX.minScale,(e.__indicatorX.size-r)/e.__indicatorX.size);s=e.__indicatorX.maxPos-u;e.__indicatorX.indicator.style[e.__transformOriginProperty]="right center"}else{s=Math.min(e.__maxScrollLeft,Math.max(0,s));widthScale=1}e.__indicatorX.indicator.style[e.__transformProperty]="translate3d("+s+"px, 0, 0) scaleX("+widthScale+")"}if(e.__indicatorY){o=Math.round(e.__indicatorY.sizeRatio*e.__scrollTop)||0;if(e.__indicatorX)a=10;i=e.__scrollTop-(e.__maxScrollTop-a);if(e.__scrollTop<0){n=Math.max(e.__indicatorY.minScale,(e.__indicatorY.size-Math.abs(e.__scrollTop))/e.__indicatorY.size);o=0;e.__indicatorY.indicator.style[e.__transformOriginProperty]="center top"}else if(i>0){n=Math.max(e.__indicatorY.minScale,(e.__indicatorY.size-i)/e.__indicatorY.size);o=e.__indicatorY.maxPos-a;e.__indicatorY.indicator.style[e.__transformOriginProperty]="center bottom"}else{o=Math.min(e.__maxScrollTop,Math.max(0,o));n=1}e.__indicatorY.indicator.style[e.__transformProperty]="translate3d(0,"+o+"px, 0) scaleY("+n+")"}},__fadeScrollbars:function(e,t){var n=this;if(!this.options.scrollbarsFade){return}var r="scroll-bar-fade-out";if(n.options.scrollbarsFade===true){clearTimeout(n.__scrollbarFadeTimeout);if(e=="in"){if(n.__indicatorX){n.__indicatorX.indicator.classList.remove(r)}if(n.__indicatorY){n.__indicatorY.indicator.classList.remove(r)}}else{n.__scrollbarFadeTimeout=setTimeout(function(){if(n.__indicatorX){n.__indicatorX.indicator.classList.add(r)}if(n.__indicatorY){n.__indicatorY.indicator.classList.add(r)}},t||n.options.scrollbarFadeDelay)}}},__scrollingComplete:function(){var t=this;t.options.scrollingComplete();e.tap.removeClonedInputs(t.__container,t);t.__fadeScrollbars("out")},resize:function(){if(!this.__container||!this.options)return;this.setDimensions(this.__container.clientWidth,this.__container.clientHeight,this.options.getContentWidth(),this.options.getContentHeight())},getRenderFn:function(){var e=this;var t=this.__content;var n=document.documentElement.style;var r;if("MozAppearance"in n){r="gecko"}else if("WebkitAppearance"in n){r="webkit"}else if(typeof navigator.cpuClass==="string"){r="trident"}var i={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[r];var s=document.createElement("div");var o;var u=i+"Perspective";var a=i+"Transform";var f=i+"TransformOrigin";e.__perspectiveProperty=a;e.__transformProperty=a;e.__transformOriginProperty=f;if(s.style[u]!==o){return function(n,r,i,s){t.style[a]="translate3d("+ -n+"px,"+ -r+"px,0) scale("+i+")";e.__repositionScrollbars();if(!s){e.triggerScrollEvent()}}}else if(s.style[a]!==o){return function(n,r,i,s){t.style[a]="translate("+ -n+"px,"+ -r+"px) scale("+i+")";e.__repositionScrollbars();if(!s){e.triggerScrollEvent()}}}else{return function(n,r,i,s){t.style.marginLeft=n?-n/i+"px":"";t.style.marginTop=r?-r/i+"px":"";t.style.zoom=i||"";e.__repositionScrollbars();if(!s){e.triggerScrollEvent()}}}},setDimensions:function(e,t,n,r){var i=this;if(e===+e){i.__clientWidth=e}if(t===+t){i.__clientHeight=t}if(n===+n){i.__contentWidth=n}if(r===+r){i.__contentHeight=r}i.__computeScrollMax();i.__resizeScrollbars();i.scrollTo(i.__scrollLeft,i.__scrollTop,true,null,true)},setPosition:function(e,t){var n=this;n.__clientLeft=e||0;n.__clientTop=t||0},setSnapSize:function(e,t){var n=this;n.__snapWidth=e;n.__snapHeight=t},activatePullToRefresh:function(t,n,r,i,s,o,u){var a=this;a.__refreshHeight=t;a.__refreshActivate=function(){e.requestAnimationFrame(n)};a.__refreshDeactivate=function(){e.requestAnimationFrame(r)};a.__refreshStart=function(){e.requestAnimationFrame(i)};a.__refreshShow=function(){e.requestAnimationFrame(s)};a.__refreshHide=function(){e.requestAnimationFrame(o)};a.__refreshTail=function(){e.requestAnimationFrame(u)};a.__refreshTailTime=100;a.__minSpinTime=600},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,true);var e=new Date;self.refreshStartTime=e.getTime();if(this.__refreshStart){this.__refreshStart()}},finishPullToRefresh:function(){var e=this;var t=new Date;var n=0;if(e.refreshStartTime+e.__minSpinTime>t.getTime()){n=e.refreshStartTime+e.__minSpinTime-t.getTime()}setTimeout(function(){if(e.__refreshTail){e.__refreshTail()}setTimeout(function(){e.__refreshActive=false;if(e.__refreshDeactivate){e.__refreshDeactivate()}e.scrollTo(e.__scrollLeft,e.__scrollTop,true)},e.__refreshTailTime)},n)},getValues:function(){var e=this;return{left:e.__scrollLeft,top:e.__scrollTop,zoom:e.__zoomLevel}},getScrollMax:function(){var e=this;return{left:e.__maxScrollLeft,top:e.__maxScrollTop}},zoomTo:function(e,t,n,r){var i=this;if(!i.options.zooming){throw new Error("Zooming is not enabled!")}if(i.__isDecelerating){ut.effect.Animate.stop(i.__isDecelerating);i.__isDecelerating=false}var s=i.__zoomLevel;if(n==null){n=i.__clientWidth/2}if(r==null){r=i.__clientHeight/2}e=Math.max(Math.min(e,i.options.maxZoom),i.options.minZoom);i.__computeScrollMax(e);var o=(n+i.__scrollLeft)*e/s-n;var u=(r+i.__scrollTop)*e/s-r;if(o>i.__maxScrollLeft){o=i.__maxScrollLeft}else if(o<0){o=0}if(u>i.__maxScrollTop){u=i.__maxScrollTop}else if(u<0){u=0}i.__publish(o,u,e,t)},zoomBy:function(e,t,n,r){var i=this;i.zoomTo(i.__zoomLevel*e,t,n,r)},scrollTo:function(e,t,n,r,i){var s=this;if(s.__isDecelerating){ut.effect.Animate.stop(s.__isDecelerating);s.__isDecelerating=false}if(r!=null&&r!==s.__zoomLevel){if(!s.options.zooming){throw new Error("Zooming is not enabled!")}e*=r;t*=r;s.__computeScrollMax(r)}else{r=s.__zoomLevel}if(!s.options.scrollingX){e=s.__scrollLeft}else{if(s.options.paging){e=Math.round(e/s.__clientWidth)*s.__clientWidth}else if(s.options.snapping){e=Math.round(e/s.__snapWidth)*s.__snapWidth}}if(!s.options.scrollingY){t=s.__scrollTop}else{if(s.options.paging){t=Math.round(t/s.__clientHeight)*s.__clientHeight}else if(s.options.snapping){t=Math.round(t/s.__snapHeight)*s.__snapHeight}}e=Math.max(Math.min(s.__maxScrollLeft,e),0);t=Math.max(Math.min(s.__maxScrollTop,t),0);if(e===s.__scrollLeft&&t===s.__scrollTop){n=false}s.__publish(e,t,r,n,i)},scrollBy:function(e,t,n){var r=this;var i=r.__isAnimating?r.__scheduledLeft:r.__scrollLeft;var s=r.__isAnimating?r.__scheduledTop:r.__scrollTop;r.scrollTo(i+(e||0),s+(t||0),n)},doMouseZoom:function(e,t,n,r){var i=this;var s=e>0?.97:1.03;return i.zoomTo(i.__zoomLevel*s,false,n-i.__clientLeft,r-i.__clientTop)},doTouchStart:function(e,t){this.hintResize();if(t instanceof Date){t=t.valueOf()}if(typeof t!=="number"){t=Date.now()}var n=this;n.__interruptedAnimation=true;if(n.__isDecelerating){ut.effect.Animate.stop(n.__isDecelerating);n.__isDecelerating=false;n.__interruptedAnimation=true}if(n.__isAnimating){ut.effect.Animate.stop(n.__isAnimating);n.__isAnimating=false;n.__interruptedAnimation=true}var r,i;var s=e.length===1;if(s){r=e[0].pageX;i=e[0].pageY}else{r=Math.abs(e[0].pageX+e[1].pageX)/2;i=Math.abs(e[0].pageY+e[1].pageY)/2}n.__initialTouchLeft=r;n.__initialTouchTop=i;n.__initialTouches=e;n.__zoomLevelStart=n.__zoomLevel;n.__lastTouchLeft=r;n.__lastTouchTop=i;n.__lastTouchMove=t;n.__lastScale=1;n.__enableScrollX=!s&&n.options.scrollingX;n.__enableScrollY=!s&&n.options.scrollingY;n.__isTracking=true;n.__didDecelerationComplete=false;n.__isDragging=!s;n.__isSingleTouch=s;n.__positions=[]},doTouchMove:function(e,t,n){if(t instanceof Date){t=t.valueOf()}if(typeof t!=="number"){t=Date.now()}var r=this;if(!r.__isTracking){return}var i,s;if(e.length===2){i=Math.abs(e[0].pageX+e[1].pageX)/2;s=Math.abs(e[0].pageY+e[1].pageY)/2;if(!n&&r.options.zooming){n=r.__getScale(r.__initialTouches,e)}}else{i=e[0].pageX;s=e[0].pageY}var o=r.__positions;if(r.__isDragging){var u=i-r.__lastTouchLeft;var a=s-r.__lastTouchTop;var f=r.__scrollLeft;var l=r.__scrollTop;var c=r.__zoomLevel;if(n!=null&&r.options.zooming){var h=c;c=c/r.__lastScale*n;c=Math.max(Math.min(c,r.options.maxZoom),r.options.minZoom);if(h!==c){var p=i-r.__clientLeft;var d=s-r.__clientTop;f=(p+f)*c/h-p;l=(d+l)*c/h-d;r.__computeScrollMax(c)}}if(r.__enableScrollX){f-=u*this.options.speedMultiplier;var v=r.__maxScrollLeft;if(f>v||f<0){if(r.options.bouncing){f+=u/2*this.options.speedMultiplier}else if(f>v){f=v}else{f=0}}}if(r.__enableScrollY){l-=a*this.options.speedMultiplier;var m=r.__maxScrollTop;if(l>m||l<0){if(r.options.bouncing||r.__refreshHeight&&l<0){l+=a/2*this.options.speedMultiplier;if(!r.__enableScrollX&&r.__refreshHeight!=null){if(l<0){r.__refreshHidden=false;r.__refreshShow()}else{r.__refreshHide();r.__refreshHidden=true}if(!r.__refreshActive&&l<=-r.__refreshHeight){r.__refreshActive=true;if(r.__refreshActivate){r.__refreshActivate()}}else if(r.__refreshActive&&l>-r.__refreshHeight){r.__refreshActive=false;if(r.__refreshDeactivate){r.__refreshDeactivate()}}}}else if(l>m){l=m}else{l=0}}else if(r.__refreshHeight&&!r.__refreshHidden){r.__refreshHide();r.__refreshHidden=true}}if(o.length>60){o.splice(0,30)}o.push(f,l,t);r.__publish(f,l,c)}else{var g=r.options.locking?3:0;var y=5;var b=Math.abs(i-r.__initialTouchLeft);var w=Math.abs(s-r.__initialTouchTop);r.__enableScrollX=r.options.scrollingX&&b>=g;r.__enableScrollY=r.options.scrollingY&&w>=g;o.push(r.__scrollLeft,r.__scrollTop,t);r.__isDragging=(r.__enableScrollX||r.__enableScrollY)&&(b>=y||w>=y);if(r.__isDragging){r.__interruptedAnimation=false;r.__fadeScrollbars("in")}}r.__lastTouchLeft=i;r.__lastTouchTop=s;r.__lastTouchMove=t;r.__lastScale=n},doTouchEnd:function(t){if(t instanceof Date){t=t.valueOf()}if(typeof t!=="number"){t=Date.now()}var n=this;if(!n.__isTracking){return}n.__isTracking=false;if(n.__isDragging){n.__isDragging=false;if(n.__isSingleTouch&&n.options.animating&&t-n.__lastTouchMove<=100){var r=n.__positions;var i=r.length-1;var s=i;for(var o=i;o>0&&r[o]>n.__lastTouchMove-100;o-=3){s=o}if(s!==i){var u=r[i]-r[s];var a=n.__scrollLeft-r[s-2];var f=n.__scrollTop-r[s-1];n.__decelerationVelocityX=a/u*(1e3/60);n.__decelerationVelocityY=f/u*(1e3/60);var l=n.options.paging||n.options.snapping?4:1;if(Math.abs(n.__decelerationVelocityX)>l||Math.abs(n.__decelerationVelocityY)>l){if(!n.__refreshActive){n.__startDeceleration(t)}}}else{n.__scrollingComplete()}}else if(t-n.__lastTouchMove>100){n.__scrollingComplete()}}if(!n.__isDecelerating){if(n.__refreshActive&&n.__refreshStart){n.__publish(n.__scrollLeft,-n.__refreshHeight,n.__zoomLevel,true);var c=new Date;n.refreshStartTime=c.getTime();if(n.__refreshStart){n.__refreshStart()}if(!e.Platform.isAndroid())n.__startDeceleration()}else{if(n.__interruptedAnimation||n.__isDragging){n.__scrollingComplete()}n.scrollTo(n.__scrollLeft,n.__scrollTop,true,n.__zoomLevel);if(n.__refreshActive){n.__refreshActive=false;if(n.__refreshDeactivate){n.__refreshDeactivate()}}}}n.__positions.length=0},__publish:function(e,t,i,s,o){var u=this;var a=u.__isAnimating;if(a){ut.effect.Animate.stop(a);u.__isAnimating=false}if(s&&u.options.animating){u.__scheduledLeft=e;u.__scheduledTop=t;u.__scheduledZoom=i;var f=u.__scrollLeft;var l=u.__scrollTop;var c=u.__zoomLevel;var h=e-f;var p=t-l;var d=i-c;var v=function(e,t,n){if(n){u.__scrollLeft=f+h*e;u.__scrollTop=l+p*e;u.__zoomLevel=c+d*e;if(u.__callback){u.__callback(u.__scrollLeft,u.__scrollTop,u.__zoomLevel,o)}}};var m=function(e){return u.__isAnimating===e};var g=function(e,t,n){if(t===u.__isAnimating){u.__isAnimating=false}if(u.__didDecelerationComplete||n){u.__scrollingComplete()}if(u.options.zooming){u.__computeScrollMax()}};u.__isAnimating=ut.effect.Animate.start(v,m,g,u.options.animationDuration,a?n:r)}else{u.__scheduledLeft=u.__scrollLeft=e;u.__scheduledTop=u.__scrollTop=t;u.__scheduledZoom=u.__zoomLevel=i;if(u.__callback){u.__callback(e,t,i,o)}if(u.options.zooming){u.__computeScrollMax()}}},__computeScrollMax:function(e){var t=this;if(e==null){e=t.__zoomLevel}t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0);t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0);if(!t.__didWaitForSize&&!t.__maxScrollLeft&&!t.__maxScrollTop){t.__didWaitForSize=true;t.__waitForSize()}},__waitForSize:function(){var e=this;clearTimeout(e.__sizerTimeout);var t=function(){e.resize();if(e.options.scrollingX&&!e.__maxScrollLeft||e.options.scrollingY&&!e.__maxScrollTop){}};t();e.__sizerTimeout=setTimeout(t,1e3)},__startDeceleration:function(e){var t=this;if(t.options.paging){var n=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0);var r=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0);var i=t.__clientWidth;var s=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(n/i)*i;t.__minDecelerationScrollTop=Math.floor(r/s)*s;t.__maxDecelerationScrollLeft=Math.ceil(n/i)*i;t.__maxDecelerationScrollTop=Math.ceil(r/s)*s}else{t.__minDecelerationScrollLeft=0;t.__minDecelerationScrollTop=0;t.__maxDecelerationScrollLeft=t.__maxScrollLeft;t.__maxDecelerationScrollTop=t.__maxScrollTop;if(t.__refreshActive)t.__minDecelerationScrollTop=t.__refreshHeight*-1}var o=function(e,n,r){t.__stepThroughDeceleration(r)};t.__minVelocityToKeepDecelerating=t.options.snapping?4:.1;var u=function(){var e=Math.abs(t.__decelerationVelocityX)>=t.__minVelocityToKeepDecelerating||Math.abs(t.__decelerationVelocityY)>=t.__minVelocityToKeepDecelerating;if(!e){t.__didDecelerationComplete=true;if(t.options.bouncing&&!t.__refreshActive){t.scrollTo(Math.min(Math.max(t.__scrollLeft,0),t.__maxScrollLeft),Math.min(Math.max(t.__scrollTop,0),t.__maxScrollTop),t.__refreshActive)}}return e};var a=function(e,n,r){t.__isDecelerating=false;if(t.__didDecelerationComplete){t.__scrollingComplete()}if(t.options.paging){t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping)}};t.__isDecelerating=ut.effect.Animate.start(o,u,a)},__stepThroughDeceleration:function(e){var t=this;var n=t.__scrollLeft+t.__decelerationVelocityX;var r=t.__scrollTop+t.__decelerationVelocityY;if(!t.options.bouncing){var i=Math.max(Math.min(t.__maxDecelerationScrollLeft,n),t.__minDecelerationScrollLeft);if(i!==n){n=i;t.__decelerationVelocityX=0}var s=Math.max(Math.min(t.__maxDecelerationScrollTop,r),t.__minDecelerationScrollTop);if(s!==r){r=s;t.__decelerationVelocityY=0}}if(e){t.__publish(n,r,t.__zoomLevel)}else{t.__scrollLeft=n;t.__scrollTop=r}if(!t.options.paging){var o=t.options.deceleration;t.__decelerationVelocityX*=o;t.__decelerationVelocityY*=o}if(t.options.bouncing){var u=0;var a=0;var f=t.options.penetrationDeceleration;var l=t.options.penetrationAcceleration;if(n<t.__minDecelerationScrollLeft){u=t.__minDecelerationScrollLeft-n}else if(n>t.__maxDecelerationScrollLeft){u=t.__maxDecelerationScrollLeft-n}if(r<t.__minDecelerationScrollTop){a=t.__minDecelerationScrollTop-r}else if(r>t.__maxDecelerationScrollTop){a=t.__maxDecelerationScrollTop-r}if(u!==0){var c=u*t.__decelerationVelocityX<=t.__minDecelerationScrollLeft;if(c){t.__decelerationVelocityX+=u*f}var h=Math.abs(t.__decelerationVelocityX)<=t.__minVelocityToKeepDecelerating;if(!c||h){t.__decelerationVelocityX=u*l}}if(a!==0){var p=a*t.__decelerationVelocityY<=t.__minDecelerationScrollTop;if(p){t.__decelerationVelocityY+=a*f}var d=Math.abs(t.__decelerationVelocityY)<=t.__minVelocityToKeepDecelerating;if(!p||d){t.__decelerationVelocityY=a*l}}}},__getDistance:function(t,n){var r=n.pageX-t.pageX,i=n.pageY-t.pageY;return Math.sqrt(r*r+i*i)},__getScale:function(t,n){var r=this;if(t.length>=2&&n.length>=2){return r.__getDistance(n[0],n[1])/r.__getDistance(t[0],t[1])}return 1}});e.scroll={isScrolling:false,lastTop:0}})(ionic);(function(e){"use strict";e.views.HeaderBar=e.views.View.inherit({initialize:function(t){this.el=t.el;e.extend(this,{alignTitle:"center"},t);this.align()},align:function(t){t||(t=this.alignTitle);var n=this.el.querySelector(".title");if(!n){return}var r=this;e.requestAnimationFrame(function(){var i,s,o;var u=r.el.childNodes;var a=0;var f=0;var l=false;for(i=0;i<u.length;i++){s=u[i];if(s.tagName&&s.tagName.toLowerCase()=="h1"){l=true;continue}o=null;if(s.nodeType==3){var c=e.DomUtil.getTextBounds(s);if(c){o=c.width}}else if(s.nodeType==1){o=s.offsetWidth}if(o){if(l){f+=o}else{a+=o}}}var h=Math.max(a,f)+10;n.style.left=n.style.right="";if(t=="center"){if(h>10){n.style.left=h+"px";n.style.right=h+"px"}if(n.offsetWidth<n.scrollWidth){if(f>0){n.style.right=f+5+"px"}}}else if(t=="left"){n.classList.add("title-left");if(a>0){n.style.left=a+15+"px"}}else if(t=="right"){n.classList.add("title-right");if(f>0){n.style.right=f+15+"px"}}})}})})(ionic);(function(e){"use strict";var t="item";var n="item-content";var r="item-sliding";var i="item-options";var s="item-placeholder";var o="item-reordering";var u="item-reorder";var a=function(){};a.prototype={start:function(e){},drag:function(e){},end:function(e){},isSameItem:function(e){return false}};var f=function(e){this.dragThresholdX=e.dragThresholdX||10;this.el=e.el;this.canSwipe=e.canSwipe};f.prototype=new a;f.prototype.start=function(s){var o,u,a,f;if(!this.canSwipe()){return}if(s.target.classList.contains(n)){o=s.target}else if(s.target.classList.contains(t)){o=s.target.querySelector("."+n)}else{o=e.DomUtil.getParentWithClass(s.target,n)}if(!o){return}o.classList.remove(r);a=parseFloat(o.style[e.CSS.TRANSFORM].replace("translate3d(","").split(",")[0])||0;u=o.parentNode.querySelector("."+i);if(!u){return}u.classList.remove("invisible");f=u.offsetWidth;this._currentDrag={buttons:u,buttonsWidth:f,content:o,startOffsetX:a}};f.prototype.isSameItem=function(e){if(e._lastDrag&&this._currentDrag){return this._currentDrag.content==e._lastDrag.content}return false};f.prototype.clean=function(t){var n=this._lastDrag;if(!n)return;n.content.style[e.CSS.TRANSITION]="";n.content.style[e.CSS.TRANSFORM]="";e.requestAnimationFrame(function(){setTimeout(function(){n.buttons&&n.buttons.classList.add("invisible")},250)})};f.prototype.drag=e.animationFrameThrottle(function(t){var n;if(!this._currentDrag){return}if(!this._isDragging&&(Math.abs(t.gesture.deltaX)>this.dragThresholdX||Math.abs(this._currentDrag.startOffsetX)>0)){this._isDragging=true}if(this._isDragging){n=this._currentDrag.buttonsWidth;var r=Math.min(0,this._currentDrag.startOffsetX+t.gesture.deltaX);if(r<-n){r=Math.min(-n,-n+(t.gesture.deltaX+n)*.4)}this._currentDrag.content.style[e.CSS.TRANSFORM]="translate3d("+r+"px, 0, 0)";this._currentDrag.content.style[e.CSS.TRANSITION]="none"}});f.prototype.end=function(t,n){var r=this;if(!this._currentDrag){n&&n();return}var i=-this._currentDrag.buttonsWidth;if(t.gesture.deltaX>-(this._currentDrag.buttonsWidth/2)){if(t.gesture.direction=="left"&&Math.abs(t.gesture.velocityX)<.3){i=0}else if(t.gesture.direction=="right"){i=0}}e.requestAnimationFrame(function(){if(i===0){r._currentDrag.content.style[e.CSS.TRANSFORM]="";var t=r._currentDrag.buttons;setTimeout(function(){t&&t.classList.add("invisible")},250)}else{r._currentDrag.content.style[e.CSS.TRANSFORM]="translate3d("+i+"px, 0, 0)"}r._currentDrag.content.style[e.CSS.TRANSITION]="";r._lastDrag=r._currentDrag;r._currentDrag=null;n&&n()})};var l=function(e){this.dragThresholdY=e.dragThresholdY||0;this.onReorder=e.onReorder;this.listEl=e.listEl;this.el=e.el;this.scrollEl=e.scrollEl;this.scrollView=e.scrollView;this.listElTrueTop=0;if(this.listEl.offsetParent){var t=this.listEl;do{this.listElTrueTop+=t.offsetTop;t=t.offsetParent}while(t)}};l.prototype=new a;l.prototype._moveElement=function(t){var n=t.gesture.center.pageY+this.scrollView.getValues().top-this._currentDrag.elementHeight/2-this.listElTrueTop;this.el.style[e.CSS.TRANSFORM]="translate3d(0, "+n+"px, 0)"};l.prototype.start=function(t){var n;var r=e.DomUtil.getChildIndex(this.el,this.el.nodeName.toLowerCase());var i=this.el.scrollHeight;var u=this.el.cloneNode(true);u.classList.add(s);this.el.parentNode.insertBefore(u,this.el);this.el.classList.add(o);this._currentDrag={elementHeight:i,startIndex:r,placeholder:u,scrollHeight:scroll,list:u.parentNode};this._moveElement(t)};l.prototype.drag=e.animationFrameThrottle(function(t){var n=this;if(!this._currentDrag){return}var r=0;var i=t.gesture.center.pageY;var s=this.listElTrueTop;if(this.scrollView){var o=this.scrollView.__container;r=this.scrollView.getValues().top;var u=o.offsetTop;var a=u-i+this._currentDrag.elementHeight/2;var f=i+this._currentDrag.elementHeight/2-u-o.offsetHeight;if(t.gesture.deltaY<0&&a>0&&r>0){this.scrollView.scrollBy(null,-a);e.requestAnimationFrame(function(){n.drag(t)})}if(t.gesture.deltaY>0&&f>0){if(r<this.scrollView.getScrollMax().top){this.scrollView.scrollBy(null,f);e.requestAnimationFrame(function(){n.drag(t)})}}}if(!this._isDragging&&Math.abs(t.gesture.deltaY)>this.dragThresholdY){this._isDragging=true}if(this._isDragging){this._moveElement(t);this._currentDrag.currentY=r+i-s}});l.prototype._getReorderIndex=function(){var e=this;var t=this._currentDrag.placeholder;var n=Array.prototype.slice.call(this._currentDrag.placeholder.parentNode.children).filter(function(t){return t.nodeName===e.el.nodeName&&t!==e.el});var r=this._currentDrag.currentY;var i;for(var s=0,o=n.length;s<o;s++){i=n[s];if(s===o-1){if(r>i.offsetTop){return s}}else if(s===0){if(r<i.offsetTop+i.offsetHeight){return s}}else if(r>i.offsetTop-i.offsetHeight/2&&r<i.offsetTop+i.offsetHeight){return s}}return this._currentDrag.startIndex};l.prototype.end=function(t,n){if(!this._currentDrag){n&&n();return}var r=this._currentDrag.placeholder;var i=this._getReorderIndex();this.el.classList.remove(o);this.el.style[e.CSS.TRANSFORM]="";r.parentNode.insertBefore(this.el,r);r.parentNode.removeChild(r);this.onReorder&&this.onReorder(this.el,this._currentDrag.startIndex,i);this._currentDrag=null;n&&n()};e.views.ListView=e.views.View.inherit({initialize:function(t){var n=this;t=e.extend({onReorder:function(e,t,n){},virtualRemoveThreshold:-200,virtualAddThreshold:200,canSwipe:function(){return true}},t);e.extend(this,t);if(!this.itemHeight&&this.listEl){this.itemHeight=this.listEl.children[0]&&parseInt(this.listEl.children[0].style.height,10)}this.onRefresh=t.onRefresh||function(){};this.onRefreshOpening=t.onRefreshOpening||function(){};this.onRefreshHolding=t.onRefreshHolding||function(){};window.ionic.onGesture("release",function(e){n._handleEndDrag(e)},this.el);window.ionic.onGesture("drag",function(e){n._handleDrag(e)},this.el);this._initDrag()},stopRefreshing:function(){var e=this.el.querySelector(".list-refresher");e.style.height="0px"},didScroll:function(e){if(this.isVirtual){var t=this.itemHeight;var n=this.listEl.children.length;var r=e.target.scrollHeight;var i=this.el.parentNode.offsetHeight;var s=e.scrollTop;var o=Math.max(0,e.scrollTop+this.virtualRemoveThreshold);var u=Math.min(r,Math.abs(e.scrollTop)+i+this.virtualAddThreshold);var a=Math.floor((u-o)/t);var f=parseInt(Math.abs(o/t),10);var l=parseInt(Math.abs(u/t),10);this._virtualItemsToRemove=Array.prototype.slice.call(this.listEl.children,0,f);var c=Array.prototype.slice.call(this.listEl.children,f,f+a);this.renderViewport&&this.renderViewport(o,u,f,l)}},didStopScrolling:function(e){if(this.isVirtual){for(var t=0;t<this._virtualItemsToRemove.length;t++){var n=this._virtualItemsToRemove[t];this.didHideItem&&this.didHideItem(t)}}},clearDragEffects:function(){if(this._lastDragOp){this._lastDragOp.clean&&this._lastDragOp.clean();this._lastDragOp=null}},_initDrag:function(){this._lastDragOp=this._dragOp;this._dragOp=null},_getItem:function(e){while(e){if(e.classList&&e.classList.contains(t)){return e}e=e.parentNode}return null},_startDrag:function(t){var n=this;var r=false;this._isDragging=false;var i=this._lastDragOp;var s;if(e.DomUtil.getParentOrSelfWithClass(t.target,u)&&(t.gesture.direction=="up"||t.gesture.direction=="down")){s=this._getItem(t.target);if(s){this._dragOp=new l({listEl:this.el,el:s,scrollEl:this.scrollEl,scrollView:this.scrollView,onReorder:function(e,t,r){n.onReorder&&n.onReorder(e,t,r)}});this._dragOp.start(t);t.preventDefault()}}else if(!this._didDragUpOrDown&&(t.gesture.direction=="left"||t.gesture.direction=="right")&&Math.abs(t.gesture.deltaX)>5){s=this._getItem(t.target);if(s&&s.querySelector(".item-options")){this._dragOp=new f({el:this.el,canSwipe:this.canSwipe});this._dragOp.start(t);t.preventDefault()}}if(i&&this._dragOp&&!this._dragOp.isSameItem(i)&&t.defaultPrevented){i.clean&&i.clean()}},_handleEndDrag:function(e){var t=this;this._didDragUpOrDown=false;if(!this._dragOp){return}this._dragOp.end(e,function(){t._initDrag()})},_handleDrag:function(e){var t=this,n,r;if(Math.abs(e.gesture.deltaY)>5){this._didDragUpOrDown=true}if(!this.isDragging&&!this._dragOp){this._startDrag(e)}if(!this._dragOp){return}e.gesture.srcEvent.preventDefault();this._dragOp.drag(e)}})})(ionic);(function(e){"use strict";e.views.Modal=e.views.View.inherit({initialize:function(t){t=e.extend({focusFirstInput:false,unfocusOnHide:true,focusFirstDelay:600,backdropClickToClose:true,hardwareBackButtonClose:true},t);e.extend(this,t);this.el=t.el},show:function(){var e=this;if(e.focusFirstInput){window.setTimeout(function(){var t=e.el.querySelector("input, textarea");t&&t.focus&&t.focus()},e.focusFirstDelay)}},hide:function(){if(this.unfocusOnHide){var e=this.el.querySelectorAll("input, textarea");window.setTimeout(function(){for(var t=0;t<e.length;t++){e[t].blur&&e[t].blur()}})}}})})(ionic);(function(e){"use strict";e.views.SideMenu=e.views.View.inherit({initialize:function(e){this.el=e.el;this.isEnabled=typeof e.isEnabled==="undefined"?true:e.isEnabled;this.setWidth(e.width)},getFullWidth:function(){return this.width},setWidth:function(e){this.width=e;this.el.style.width=e+"px"},setIsEnabled:function(e){this.isEnabled=e},bringUp:function(){if(this.el.style.zIndex!=="0"){this.el.style.zIndex="0"}},pushDown:function(){if(this.el.style.zIndex!=="-1"){this.el.style.zIndex="-1"}}});e.views.SideMenuContent=e.views.View.inherit({initialize:function(t){e.extend(this,{animationClass:"menu-animated",onDrag:function(e){},onEndDrag:function(e){}},t);e.onGesture("drag",e.proxy(this._onDrag,this),this.el);e.onGesture("release",e.proxy(this._onEndDrag,this),this.el)},_onDrag:function(e){this.onDrag&&this.onDrag(e)},_onEndDrag:function(e){this.onEndDrag&&this.onEndDrag(e)},disableAnimation:function(){this.el.classList.remove(this.animationClass)},enableAnimation:function(){this.el.classList.add(this.animationClass)},getTranslateX:function(){return parseFloat(this.el.style[e.CSS.TRANSFORM].replace("translate3d(","").split(",")[0])},setTranslateX:e.animationFrameThrottle(function(t){this.el.style[e.CSS.TRANSFORM]="translate3d("+t+"px, 0, 0)"})})})(ionic);(function(e){"use strict";e.views.Slider=e.views.View.inherit({initialize:function(e){function p(){u=o.children;l=u.length;if(u.length<2)e.continuous=false;if(i.transitions&&e.continuous&&u.length<3){o.appendChild(u[0].cloneNode(true));o.appendChild(o.children[1].cloneNode(true));u=o.children}a=new Array(u.length);f=s.offsetWidth||s.getBoundingClientRect().width;o.style.width=u.length*f+"px";var t=u.length;while(t--){var n=u[t];n.style.width=f+"px";n.setAttribute("data-index",t);if(i.transitions){n.style.left=t*-f+"px";y(t,c>t?-f:c<t?f:0,0)}}if(e.continuous&&i.transitions){y(m(c-1),-f,0);y(m(c+1),f,0)}if(!i.transitions)o.style.left=c*-f+"px";s.style.visibility="visible";e.slidesChanged&&e.slidesChanged()}function d(){if(e.continuous)g(c-1);else if(c)g(c-1)}function v(){if(e.continuous)g(c+1);else if(c<u.length-1)g(c+1)}function m(e){return(u.length+e%u.length)%u.length}function g(t,n){if(c==t)return;if(i.transitions){var s=Math.abs(c-t)/(c-t);if(e.continuous){var o=s;s=-a[m(t)]/f;if(s!==o)t=-s*u.length+t}var l=Math.abs(c-t)-1;while(l--)y(m((t>c?t:c)-l-1),f*s,0);t=m(t);y(c,f*s,n||h);y(t,0,n||h);if(e.continuous)y(m(t-s),-(f*s),0)}else{t=m(t);w(c*-f,t*-f,n||h)}c=t;r(e.callback&&e.callback(c,u[c]))}function y(e,t,n){b(e,t,n);a[e]=t}function b(e,t,n){var r=u[e];var i=r&&r.style;if(!i)return;i.webkitTransitionDuration=i.MozTransitionDuration=i.msTransitionDuration=i.OTransitionDuration=i.transitionDuration=n+"ms";i.webkitTransform="translate("+t+"px,0)"+"translateZ(0)";i.msTransform=i.MozTransform=i.OTransform="translateX("+t+"px)"}function w(t,n,r){if(!r){o.style.left=n+"px";return}var i=+(new Date);var s=setInterval(function(){var a=+(new Date)-i;if(a>r){o.style.left=n+"px";if(E)x();e.transitionEnd&&e.transitionEnd.call(event,c,u[c]);clearInterval(s);return}o.style.left=(n-t)*(Math.floor(a/r*100)/100)+t+"px"},4)}function x(){S=setTimeout(v,E)}function T(){E=e.auto||0;clearTimeout(S)}var t=this;var n=function(){};var r=function(e){setTimeout(e||n,0)};var i={addEventListener:!!window.addEventListener,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,transitions:function(e){var t=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(var n in t)if(e.style[t[n]]!==undefined)return true;return false}(document.createElement("swipe"))};var s=e.el;if(!s)return;var o=s.children[0];var u,a,f,l;e=e||{};var c=parseInt(e.startSlide,10)||0;var h=e.speed||300;e.continuous=e.continuous!==undefined?e.continuous:true;var E=e.auto||0;var S;var N={};var C={};var k;var L={handleEvent:function(t){if(t.type=="mousedown"||t.type=="mouseup"||t.type=="mousemove"){t.touches=[{pageX:t.pageX,pageY:t.pageY}]}switch(t.type){case"mousedown":this.start(t);break;case"touchstart":this.start(t);break;case"touchmove":this.touchmove(t);break;case"mousemove":this.touchmove(t);break;case"touchend":r(this.end(t));break;case"mouseup":r(this.end(t));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":r(this.transitionEnd(t));break;case"resize":r(p);break}if(e.stopPropagation)t.stopPropagation()},start:function(e){var t=e.touches[0];N={x:t.pageX,y:t.pageY,time:+(new Date)};k=undefined;C={};if(i.touch){o.addEventListener("touchmove",this,false);o.addEventListener("touchend",this,false)}else{o.addEventListener("mousemove",this,false);o.addEventListener("mouseup",this,false);document.addEventListener("mouseup",this,false)}},touchmove:function(n){if(n.touches.length>1||n.scale&&n.scale!==1||t.slideIsDisabled){return}if(e.disableScroll)n.preventDefault();var r=n.touches[0];C={x:r.pageX-N.x,y:r.pageY-N.y};if(typeof k=="undefined"){k=!!(k||Math.abs(C.x)<Math.abs(C.y))}if(!k){n.preventDefault();T();if(e.continuous){b(m(c-1),C.x+a[m(c-1)],0);b(c,C.x+a[c],0);b(m(c+1),C.x+a[m(c+1)],0)}else{C.x=C.x/(!c&&C.x>0||c==u.length-1&&C.x<0?Math.abs(C.x)/f+1:1);b(c-1,C.x+a[c-1],0);b(c,C.x+a[c],0);b(c+1,C.x+a[c+1],0)}}},end:function(t){var n=+(new Date)-N.time;var r=Number(n)<250&&Math.abs(C.x)>20||Math.abs(C.x)>f/2;var s=!c&&C.x>0||c==u.length-1&&C.x<0;if(e.continuous)s=false;var l=C.x<0;if(!k){if(r&&!s){if(l){if(e.continuous){y(m(c-1),-f,0);y(m(c+2),f,0)}else{y(c-1,-f,0)}y(c,a[c]-f,h);y(m(c+1),a[m(c+1)]-f,h);c=m(c+1)}else{if(e.continuous){y(m(c+1),f,0);y(m(c-2),-f,0)}else{y(c+1,f,0)}y(c,a[c]+f,h);y(m(c-1),a[m(c-1)]+f,h);c=m(c-1)}e.callback&&e.callback(c,u[c])}else{if(e.continuous){y(m(c-1),-f,h);y(c,0,h);y(m(c+1),f,h)}else{y(c-1,-f,h);y(c,0,h);y(c+1,f,h)}}}if(i.touch){o.removeEventListener("touchmove",L,false);o.removeEventListener("touchend",L,false)}else{o.removeEventListener("mousemove",L,false);o.removeEventListener("mouseup",L,false);document.removeEventListener("mouseup",L,false)}},transitionEnd:function(t){if(parseInt(t.target.getAttribute("data-index"),10)==c){if(E)x();e.transitionEnd&&e.transitionEnd.call(t,c,u[c])}}};this.update=function(){setTimeout(p)};this.setup=function(){p()};this.enableSlide=function(e){if(arguments.length){this.slideIsDisabled=!e}return!this.slideIsDisabled},this.slide=function(e,t){T();g(e,t)};this.prev=this.previous=function(){T();d()};this.next=function(){T();v()};this.stop=function(){T()};this.start=function(){x()};this.currentIndex=function(){return c};this.slidesCount=function(){return l};this.kill=function(){T();o.style.width="";o.style.left="";var e=u.length;while(e--){var t=u[e];t.style.width="";t.style.left="";if(i.transitions)b(e,0,0)}if(i.addEventListener){o.removeEventListener("touchstart",L,false);o.removeEventListener("webkitTransitionEnd",L,false);o.removeEventListener("msTransitionEnd",L,false);o.removeEventListener("oTransitionEnd",L,false);o.removeEventListener("otransitionend",L,false);o.removeEventListener("transitionend",L,false);window.removeEventListener("resize",L,false)}else{window.onresize=null}};this.load=function(){p();if(E)x();if(i.addEventListener){if(i.touch){o.addEventListener("touchstart",L,false)}else{o.addEventListener("mousedown",L,false)}if(i.transitions){o.addEventListener("webkitTransitionEnd",L,false);o.addEventListener("msTransitionEnd",L,false);o.addEventListener("oTransitionEnd",L,false);o.addEventListener("otransitionend",L,false);o.addEventListener("transitionend",L,false)}window.addEventListener("resize",L,false)}else{window.onresize=function(){p()}}}}})})(ionic);(function(e){"use strict";e.views.Toggle=e.views.View.inherit({initialize:function(t){var n=this;this.el=t.el;this.checkbox=t.checkbox;this.track=t.track;this.handle=t.handle;this.openPercent=-1;this.onChange=t.onChange||function(){};this.triggerThreshold=t.triggerThreshold||20;this.dragStartHandler=function(e){n.dragStart(e)};this.dragHandler=function(e){n.drag(e)};this.holdHandler=function(e){n.hold(e)};this.releaseHandler=function(e){n.release(e)};this.dragStartGesture=e.onGesture("dragstart",this.dragStartHandler,this.el);this.dragGesture=e.onGesture("drag",this.dragHandler,this.el);this.dragHoldGesture=e.onGesture("hold",this.holdHandler,this.el);this.dragReleaseGesture=e.onGesture("release",this.releaseHandler,this.el)},destroy:function(){e.offGesture(this.dragStartGesture,"dragstart",this.dragStartGesture);e.offGesture(this.dragGesture,"drag",this.dragGesture);e.offGesture(this.dragHoldGesture,"hold",this.holdHandler);e.offGesture(this.dragReleaseGesture,"release",this.releaseHandler)},tap:function(e){if(this.el.getAttribute("disabled")!=="disabled"){this.val(!this.checkbox.checked)}},dragStart:function(e){if(this.checkbox.disabled)return;this._dragInfo={width:this.el.offsetWidth,left:this.el.offsetLeft,right:this.el.offsetLeft+this.el.offsetWidth,triggerX:this.el.offsetWidth/2,initialState:this.checkbox.checked};e.gesture.srcEvent.preventDefault();this.hold(e)},drag:function(t){var n=this;if(!this._dragInfo){return}t.gesture.srcEvent.preventDefault();e.requestAnimationFrame(function(e){if(!n._dragInfo){return}var r=n.track.offsetLeft+n.handle.offsetWidth/2;var i=n.track.offsetLeft+n.track.offsetWidth-n.handle.offsetWidth/2;var s=t.gesture.deltaX;var o=t.gesture.touches[0].pageX-n._dragInfo.left;var u=n._dragInfo.width-n.triggerThreshold;if(n._dragInfo.initialState){if(o<n.triggerThreshold){n.setOpenPercent(0)}else if(o>n._dragInfo.triggerX){n.setOpenPercent(100)}}else{if(o<n._dragInfo.triggerX){n.setOpenPercent(0)}else if(o>u){n.setOpenPercent(100)}}})},endDrag:function(e){this._dragInfo=null},hold:function(e){this.el.classList.add("dragging")},release:function(e){this.el.classList.remove("dragging");this.endDrag(e)},setOpenPercent:function(t){if(this.openPercent<0||t<this.openPercent-3||t>this.openPercent+3){this.openPercent=t;if(t===0){this.val(false)}else if(t===100){this.val(true)}else{var n=Math.round(t/100*this.track.offsetWidth-this.handle.offsetWidth);n=n<1?0:n;this.handle.style[e.CSS.TRANSFORM]="translate3d("+n+"px,0,0)"}}},val:function(t){if(t===true||t===false){if(this.handle.style[e.CSS.TRANSFORM]!==""){this.handle.style[e.CSS.TRANSFORM]=""}this.checkbox.checked=t;this.openPercent=t?100:0;this.onChange&&this.onChange()}return this.checkbox.checked}})})(ionic)})();(function(e,t,n){"use strict";function r(e){return function(){var t=arguments[0],n="["+(e?e+":":"")+t+"] ",r=arguments[1],i=arguments,s=function(e){if(typeof e==="function"){return e.toString().replace(/ \{[\s\S]*$/,"")}else if(typeof e==="undefined"){return"undefined"}else if(typeof e!=="string"){return JSON.stringify(e)}return e},o,u;o=n+r.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n;if(t+2<i.length){n=i[t+2];if(typeof n==="function"){return n.toString().replace(/ ?\{[\s\S]*$/,"")}else if(typeof n==="undefined"){return"undefined"}else if(typeof n!=="string"){return ht(n)}return n}return e});o=o+"\nhttp://errors.angularjs.org/1.2.25/"+(e?e+"/":"")+t;for(u=2;u<arguments.length;u++){o=o+(u==2?"?":"&")+"p"+(u-2)+"="+encodeURIComponent(s(arguments[u]))}return new Error(o)}}function E(e){if(e==null||z(e)){return false}var t=e.length;if(e.nodeType===1&&t){return true}return j(e)||q(e)||t===0||typeof t==="number"&&t>0&&t-1 in e}function S(e,t,n){var r;if(e){if(R(e)){for(r in e){if(r!="prototype"&&r!="length"&&r!="name"&&(!e.hasOwnProperty||e.hasOwnProperty(r))){t.call(n,e[r],r)}}}else if(q(e)||E(e)){for(r=0;r<e.length;r++){t.call(n,e[r],r)}}else if(e.forEach&&e.forEach!==S){e.forEach(t,n)}else{for(r in e){if(e.hasOwnProperty(r)){t.call(n,e[r],r)}}}}return e}function x(e){var t=[];for(var n in e){if(e.hasOwnProperty(n)){t.push(n)}}return t.sort()}function T(e,t,n){var r=x(e);for(var i=0;i<r.length;i++){t.call(n,e[r[i]],r[i])}return r}function N(e){return function(t,n){e(n,t)}}function C(){var e=w.length;var t;while(e){e--;t=w[e].charCodeAt(0);if(t==57){w[e]="A";return w.join("")}if(t==90){w[e]="0"}else{w[e]=String.fromCharCode(t+1);return w.join("")}}w.unshift("0");return w.join("")}function k(e,t){if(t){e.$$hashKey=t}else{delete e.$$hashKey}}function L(e){var t=e.$$hashKey;S(arguments,function(t){if(t!==e){S(t,function(t,n){e[n]=t})}});k(e,t);return e}function A(e){return parseInt(e,10)}function O(e,t){return L(new(L(function(){},{prototype:e})),t)}function M(){}function _(e){return e}function D(e){return function(){return e}}function P(e){return typeof e==="undefined"}function H(e){return typeof e!=="undefined"}function B(e){return e!=null&&typeof e==="object"}function j(e){return typeof e==="string"}function F(e){return typeof e==="number"}function I(e){return v.call(e)==="[object Date]"}function R(e){return typeof e==="function"}function U(e){return v.call(e)==="[object RegExp]"}function z(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function W(e){return e&&e.$evalAsync&&e.$watch}function X(e){return v.call(e)==="[object File]"}function V(e){return v.call(e)==="[object Blob]"}function $(e){return typeof e==="boolean"}function J(e){return e&&R(e.then)}function Q(e){return!!(e&&(e.nodeName||e.prop&&e.attr&&e.find))}function G(e){var t={},n=e.split(","),r;for(r=0;r<n.length;r++)t[n[r]]=true;return t}function Y(e,t,n){var r=[];S(e,function(e,i,s){r.push(t.call(n,e,i,s))});return r}function Z(e,t){var n=0,r;if(q(e)||j(e)){return e.length}else if(B(e)){for(r in e)if(!t||e.hasOwnProperty(r))n++}return n}function et(e,t){return tt(e,t)!=-1}function tt(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++){if(t===e[n])return n}return-1}function nt(e,t){var n=tt(e,t);if(n>=0)e.splice(n,1);return t}function rt(e){if(e){switch(e.nodeName){case"OPTION":case"PRE":case"TITLE":return true}}return false}function it(e,t,n,r){if(z(e)||W(e)){throw m("cpws","Can't copy! Making copies of Window or Scope instances is not supported.")}if(!t){t=e;if(e){if(q(e)){t=it(e,[],n,r)}else if(I(e)){t=new Date(e.getTime())}else if(U(e)){t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);t.lastIndex=e.lastIndex}else if(B(e)){t=it(e,{},n,r)}}}else{if(e===t)throw m("cpi","Can't copy! Source and destination are identical.");n=n||[];r=r||[];if(B(e)){var i=tt(n,e);if(i!==-1)return r[i];n.push(e);r.push(t)}var s;if(q(e)){t.length=0;for(var o=0;o<e.length;o++){s=it(e[o],null,n,r);if(B(e[o])){n.push(e[o]);r.push(s)}t.push(s)}}else{var u=t.$$hashKey;if(q(t)){t.length=0}else{S(t,function(e,n){delete t[n]})}for(var a in e){s=it(e[a],null,n,r);if(B(e[a])){n.push(e[a]);r.push(s)}t[a]=s}k(t,u)}}return t}function st(e,t){if(q(e)){t=t||[];for(var n=0;n<e.length;n++){t[n]=e[n]}}else if(B(e)){t=t||{};for(var r in e){if(o.call(e,r)&&!(r.charAt(0)==="$"&&r.charAt(1)==="$")){t[r]=e[r]}}}return t||e}function ot(e,t){if(e===t)return true;if(e===null||t===null)return false;if(e!==e&&t!==t)return true;var r=typeof e,i=typeof t,s,o,u;if(r==i){if(r=="object"){if(q(e)){if(!q(t))return false;if((s=e.length)==t.length){for(o=0;o<s;o++){if(!ot(e[o],t[o]))return false}return true}}else if(I(e)){if(!I(t))return false;return isNaN(e.getTime())&&isNaN(t.getTime())||e.getTime()===t.getTime()}else if(U(e)&&U(t)){return e.toString()==t.toString()}else{if(W(e)||W(t)||z(e)||z(t)||q(t))return false;u={};for(o in e){if(o.charAt(0)==="$"||R(e[o]))continue;if(!ot(e[o],t[o]))return false;u[o]=true}for(o in t){if(!u.hasOwnProperty(o)&&o.charAt(0)!=="$"&&t[o]!==n&&!R(t[o]))return false}return true}}}return false}function at(e,t,n){return e.concat(p.call(t,n))}function ft(e,t){return p.call(e,t||0)}function lt(e,t){var n=arguments.length>2?ft(arguments,2):[];if(R(t)&&!(t instanceof RegExp)){return n.length?function(){return arguments.length?t.apply(e,n.concat(p.call(arguments,0))):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}else{return t}}function ct(e,r){var i=r;if(typeof e==="string"&&e.charAt(0)==="$"){i=n}else if(z(r)){i="$WINDOW"}else if(r&&t===r){i="$DOCUMENT"}else if(W(r)){i="$SCOPE"}return i}function ht(e,t){if(typeof e==="undefined")return n;return JSON.stringify(e,ct,t?" ":null)}function pt(e){return j(e)?JSON.parse(e):e}function dt(e){if(typeof e==="function"){e=true}else if(e&&e.length!==0){var t=s(""+e);e=!(t=="f"||t=="0"||t=="false"||t=="no"||t=="n"||t=="[]")}else{e=false}return e}function vt(e){e=c(e).clone();try{e.empty()}catch(t){}var n=3;var r=c("<div>").append(e).html();try{return e[0].nodeType===n?s(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+s(t)})}catch(t){return s(r)}}function mt(e){try{return decodeURIComponent(e)}catch(t){}}function gt(e){var t={},n,r;S((e||"").split("&"),function(e){if(e){n=e.replace(/\+/g,"%20").split("=");r=mt(n[0]);if(H(r)){var i=H(n[1])?mt(n[1]):true;if(!o.call(t,r)){t[r]=i}else if(q(t[r])){t[r].push(i)}else{t[r]=[t[r],i]}}}});return t}function yt(e){var t=[];S(e,function(e,n){if(q(e)){S(e,function(e){t.push(wt(n,true)+(e===true?"":"="+wt(e,true)))})}else{t.push(wt(n,true)+(e===true?"":"="+wt(e,true)))}});return t.length?t.join("&"):""}function bt(e){return wt(e,true).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function wt(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function Et(e,n){function a(e){e&&r.push(e)}var r=[e],i,s,o=["ng:app","ng-app","x-ng-app","data-ng-app"],u=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;S(o,function(n){o[n]=true;a(t.getElementById(n));n=n.replace(":","\\:");if(e.querySelectorAll){S(e.querySelectorAll("."+n),a);S(e.querySelectorAll("."+n+"\\:"),a);S(e.querySelectorAll("["+n+"]"),a)}});S(r,function(e){if(!i){var t=" "+e.className+" ";var n=u.exec(t);if(n){i=e;s=(n[2]||"").replace(/\s+/g,",")}else{S(e.attributes,function(t){if(!i&&o[t.name]){i=e;s=t.value}})}}});if(i){n(i,s?[s]:[])}}function St(n,r){var i=function(){n=c(n);if(n.injector()){var e=n[0]===t?"document":vt(n);throw m("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"<").replace(/>/,">"))}r=r||[];r.unshift(["$provide",function(e){e.value("$rootElement",n)}]);r.unshift("ng");var i=kn(r);i.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(e,t,n,r,i){e.$apply(function(){t.data("$injector",r);n(t)(e)})}]);return i};var s=/^NG_DEFER_BOOTSTRAP!/;if(e&&!s.test(e.name)){return i()}e.name=e.name.replace(s,"");g.resumeBootstrap=function(e){S(e,function(e){r.push(e)});i()}}function Tt(e,t){t=t||"_";return e.replace(xt,function(e,n){return(n?t:"")+e.toLowerCase()})}function Nt(){h=e.jQuery;if(h&&h.fn.on){c=h;L(h.fn,{scope:dn.scope,isolateScope:dn.isolateScope,controller:dn.controller,injector:dn.injector,inheritedData:dn.inheritedData});Wt("remove",true,true,false);Wt("empty",false,false,false);Wt("html",false,false,true)}else{c=Zt}g.element=c}function Ct(e,t,n){if(!e){throw m("areq","Argument '{0}' is {1}",t||"?",n||"required")}return e}function kt(e,t,n){if(n&&q(e)){e=e[e.length-1]}Ct(R(e),t,"not a function, got "+(e&&typeof e==="object"?e.constructor.name||"Object":typeof e));return e}function Lt(e,t){if(e==="hasOwnProperty"){throw m("badname","hasOwnProperty is not a valid {0} name",t)}}function At(e,t,n){if(!t)return e;var r=t.split(".");var i;var s=e;var o=r.length;for(var u=0;u<o;u++){i=r[u];if(e){e=(s=e)[i]}}if(!n&&R(e)){return lt(s,e)}return e}function Ot(e){var t=e[0],n=e[e.length-1];if(t===n){return c(t)}var r=t;var i=[r];do{r=r.nextSibling;if(!r)break;i.push(r)}while(r!==n);return c(i)}function Mt(e){function i(e,t,n){return e[t]||(e[t]=n())}var t=r("$injector");var n=r("ng");var s=i(e,"angular",Object);s.$$minErr=s.$$minErr||r;return i(s,"module",function(){var e={};return function(s,o,u){var a=function(e,t){if(e==="hasOwnProperty"){throw n("badname","hasOwnProperty is not a valid {0} name",t)}};a(s,"module");if(o&&e.hasOwnProperty(s)){e[s]=null}return i(e,s,function(){function a(t,n,r){return function(){e[r||"push"]([t,n,arguments]);return i}}if(!o){throw t("nomod","Module '{0}' is not available! You either misspelled "+"the module name or forgot to load it. If registering a module ensure that you "+"specify the dependencies as the second argument.",s)}var e=[];var n=[];var r=a("$injector","invoke");var i={_invokeQueue:e,_runBlocks:n,requires:o,name:s,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:r,run:function(e){n.push(e);return this}};if(u){r(u)}return i})}})}function Dt(t){L(t,{bootstrap:St,copy:it,extend:L,equals:ot,element:c,forEach:S,injector:kn,noop:M,bind:lt,toJson:ht,fromJson:pt,identity:_,isUndefined:P,isDefined:H,isString:j,isFunction:R,isObject:B,isNumber:F,isElement:Q,isArray:q,version:_t,isDate:I,lowercase:s,uppercase:u,callbacks:{counter:0},$$minErr:r,$$csp:ut});y=Mt(e);try{y("ngLocale")}catch(n){y("ngLocale",[]).provider("$locale",rr)}y("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:zr});t.provider("$compile",jn).directive({a:Ni,input:Vi,textarea:Vi,form:Oi,script:As,select:_s,style:Ps,option:Ds,ngBind:is,ngBindHtml:os,ngBindTemplate:ss,ngClass:as,ngClassEven:ls,ngClassOdd:fs,ngCloak:cs,ngController:hs,ngForm:Mi,ngHide:xs,ngIf:vs,ngInclude:ms,ngInit:ys,ngNonBindable:bs,ngPluralize:ws,ngRepeat:Es,ngShow:Ss,ngStyle:Ts,ngSwitch:Ns,ngSwitchWhen:Cs,ngSwitchDefault:ks,ngOptions:Ms,ngTransclude:Ls,ngModel:Yi,ngList:ts,ngChange:Zi,required:es,ngRequired:es,ngValue:rs}).directive({ngInclude:gs}).directive(Ci).directive(ps);t.provider({$anchorScroll:Ln,$animate:On,$browser:Dn,$cacheFactory:Pn,$controller:zn,$document:Wn,$exceptionHandler:Xn,$filter:ii,$interpolate:tr,$interval:nr,$http:Qn,$httpBackend:Yn,$location:br,$log:wr,$parse:Fr,$rootScope:Ur,$q:Ir,$sce:Qr,$sceDelegate:Kr,$sniffer:Gr,$templateCache:Hn,$timeout:Yr,$window:ri,$$rAF:Rr,$$asyncCallback:Mn})}])}function It(){return++Ht}function zt(e){return e.replace(qt,function(e,t,n,r){return r?n.toUpperCase():n}).replace(Rt,"Moz$1")}function Wt(e,t,n,r){function s(e){var s=n&&e?[this.filter(e)]:[this],o=t,u,a,f,l,p,d,v;if(!r||e!=null){while(s.length){u=s.shift();for(a=0,f=u.length;a<f;a++){l=c(u[a]);if(o){l.triggerHandler("$destroy")}else{o=!o}for(p=0,d=(v=l.children()).length;p<d;p++){s.push(h(v[p]))}}}}return i.apply(this,arguments)}var i=h.fn[e];i=i.$original||i;s.$original=i;h.fn[e]=s}function Qt(e){return!Vt.test(e)}function Gt(e,t){var n,r,i,s,o=t.createDocumentFragment(),u=[],a,f,l;if(Qt(e)){u.push(t.createTextNode(e))}else{r=o.appendChild(t.createElement("div"));i=($t.exec(e)||["",""])[1].toLowerCase();s=Kt[i]||Kt._default;r.innerHTML="<div> </div>"+s[1]+e.replace(Jt,"<$1></$2>")+s[2];r.removeChild(r.firstChild);a=s[0];while(a--){r=r.lastChild}for(f=0,l=r.childNodes.length;f<l;++f)u.push(r.childNodes[f]);r=o.firstChild;r.textContent=""}o.textContent="";o.innerHTML="";return u}function Yt(e,n){n=n||t;var r;if(r=Xt.exec(e)){return[n.createElement(r[1])]}return Gt(e,n)}function Zt(e){if(e instanceof Zt){return e}if(j(e)){e=K(e)}if(!(this instanceof Zt)){if(j(e)&&e.charAt(0)!="<"){throw Ut("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element")}return new Zt(e)}if(j(e)){ln(this,Yt(e));var n=c(t.createDocumentFragment());n.append(this)}else{ln(this,e)}}function en(e){return e.cloneNode(true)}function tn(e){rn(e);for(var t=0,n=e.childNodes||[];t<n.length;t++){tn(n[t])}}function nn(e,t,n,r){if(H(r))throw Ut("offargs","jqLite#off() does not support the `selector` argument");var i=sn(e,"events"),s=sn(e,"handle");if(!s)return;if(P(t)){S(i,function(t,n){jt(e,n,t);delete i[n]})}else{S(t.split(" "),function(t){if(P(n)){jt(e,t,i[t]);delete i[t]}else{nt(i[t]||[],n)}})}}function rn(e,t){var r=e.ng339,i=Pt[r];if(i){if(t){delete Pt[r].data[t];return}if(i.handle){i.events.$destroy&&i.handle({},"$destroy");nn(e)}delete Pt[r];e.ng339=n}}function sn(e,t,n){var r=e.ng339,i=Pt[r||-1];if(H(n)){if(!i){e.ng339=r=It();i=Pt[r]={}}i[t]=n}else{return i&&i[t]}}function on(e,t,n){var r=sn(e,"data"),i=H(n),s=!i&&H(t),o=s&&!B(t);if(!r&&!o){sn(e,"data",r={})}if(i){r[t]=n}else{if(s){if(o){return r&&r[t]}else{L(r,t)}}else{return r}}}function un(e,t){if(!e.getAttribute)return false;return(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function an(e,t){if(t&&e.setAttribute){S(t.split(" "),function(t){e.setAttribute("class",K((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+K(t)+" "," ")))})}}function fn(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");S(t.split(" "),function(e){e=K(e);if(n.indexOf(" "+e+" ")===-1){n+=e+" "}});e.setAttribute("class",K(n))}}function ln(e,t){if(t){t=!t.nodeName&&H(t.length)&&!z(t)?t:[t];for(var n=0;n<t.length;n++){e.push(t[n])}}}function cn(e,t){return hn(e,"$"+(t||"ngController")+"Controller")}function hn(e,t,r){if(e.nodeType==9){e=e.documentElement}var i=q(t)?t:[t];while(e){for(var s=0,o=i.length;s<o;s++){if((r=c.data(e,i[s]))!==n)return r}e=e.parentNode||e.nodeType===11&&e.host}}function pn(e){for(var t=0,n=e.childNodes;t<n.length;t++){tn(n[t])}while(e.firstChild){e.removeChild(e.firstChild)}}function gn(e,t){var n=vn[t.toLowerCase()];return n&&mn[e.nodeName]&&n}function yn(e,n){var r=function(r,i){if(!r.preventDefault){r.preventDefault=function(){r.returnValue=false}}if(!r.stopPropagation){r.stopPropagation=function(){r.cancelBubble=true}}if(!r.target){r.target=r.srcElement||t}if(P(r.defaultPrevented)){var s=r.preventDefault;r.preventDefault=function(){r.defaultPrevented=true;s.call(r)};r.defaultPrevented=false}r.isDefaultPrevented=function(){return r.defaultPrevented||r.returnValue===false};var o=st(n[i||r.type]||[]);S(o,function(t){t.call(e,r)});if(l<=8){r.preventDefault=null;r.stopPropagation=null;r.isDefaultPrevented=null}else{delete r.preventDefault;delete r.stopPropagation;delete r.isDefaultPrevented}};r.elem=e;return r}function bn(e,t){var r=typeof e,i;if(r=="function"||r=="object"&&e!==null){if(typeof (i=e.$$hashKey)=="function"){i=e.$$hashKey()}else if(i===n){i=e.$$hashKey=(t||C)()}}else{i=e}return r+":"+i}function wn(e,t){if(t){var n=0;this.nextUid=function(){return++n}}S(e,this.put,this)}function Cn(e){var t,n,r,i;if(typeof e==="function"){if(!(t=e.$inject)){t=[];if(e.length){n=e.toString().replace(Tn,"");r=n.match(En);S(r[1].split(Sn),function(e){e.replace(xn,function(e,n,r){t.push(r)})})}e.$inject=t}}else if(q(e)){i=e.length-1;kt(e[i],"fn");t=e.slice(0,i)}else{kt(e,"fn",true)}return t}function kn(e){function f(e){return function(t,n){if(B(t)){S(t,N(e))}else{return e(t,n)}}}function l(e,t){Lt(e,"service");if(R(t)||q(t)){t=o.instantiate(t)}if(!t.$get){throw Nn("pget","Provider '{0}' must define $get factory method.",e)}return s[e+n]=t}function c(e,t){return l(e,{$get:t})}function h(e,t){return c(e,["$injector",function(e){return e.instantiate(t)}])}function p(e,t){return c(e,D(t))}function d(e,t){Lt(e,"constant");s[e]=t;u[e]=t}function v(e,t){var r=o.get(e+n),i=r.$get;r.$get=function(){var e=a.invoke(i,r);return a.invoke(t,null,{$delegate:e})}}function m(e){var t=[],n,r,s,u;S(e,function(e){if(i.get(e))return;i.put(e,true);try{if(j(e)){n=y(e);t=t.concat(m(n.requires)).concat(n._runBlocks);for(r=n._invokeQueue,s=0,u=r.length;s<u;s++){var a=r[s],f=o.get(a[0]);f[a[1]].apply(f,a[2])}}else if(R(e)){t.push(o.invoke(e))}else if(q(e)){t.push(o.invoke(e))}else{kt(e,"module")}}catch(l){if(q(e)){e=e[e.length-1]}if(l.message&&l.stack&&l.stack.indexOf(l.message)==-1){l=l.message+"\n"+l.stack}throw Nn("modulerr","Failed to instantiate module {0} due to:\n{1}",e,l.stack||l.message||l)}});return t}function g(e,i){function o(n){if(e.hasOwnProperty(n)){if(e[n]===t){throw Nn("cdep","Circular dependency found: {0}",n+" <- "+r.join(" <- "))}return e[n]}else{try{r.unshift(n);e[n]=t;return e[n]=i(n)}catch(s){if(e[n]===t){delete e[n]}throw s}finally{r.shift()}}}function u(e,t,n){var r=[],i=Cn(e),s,u,a;for(u=0,s=i.length;u<s;u++){a=i[u];if(typeof a!=="string"){throw Nn("itkn","Incorrect injection token! Expected service name as string, got {0}",a)}r.push(n&&n.hasOwnProperty(a)?n[a]:o(a))}if(q(e)){e=e[s]}return e.apply(t,r)}function a(e,t){var n=function(){},r,i;n.prototype=(q(e)?e[e.length-1]:e).prototype;r=new n;i=u(e,r,t);return B(i)||R(i)?i:r}return{invoke:u,instantiate:a,get:o,annotate:Cn,has:function(t){return s.hasOwnProperty(t+n)||e.hasOwnProperty(t)}}}var t={},n="Provider",r=[],i=new wn([],true),s={$provide:{provider:f(l),factory:f(c),service:f(h),value:f(p),constant:f(d),decorator:v}},o=s.$injector=g(s,function(){throw Nn("unpr","Unknown provider: {0}",r.join(" <- "))}),u={},a=u.$injector=g(u,function(e){var t=o.get(e+n);return a.invoke(t.$get,t)});S(m(e),function(e){a.invoke(e||M)});return a}function Ln(){var e=true;this.disableAutoScrolling=function(){e=false};this.$get=["$window","$location","$rootScope",function(t,n,r){function o(e){var t=null;S(e,function(e){if(!t&&s(e.nodeName)==="a")t=e});return t}function u(){var e=n.hash(),r;if(!e)t.scrollTo(0,0);else if(r=i.getElementById(e))r.scrollIntoView();else if(r=o(i.getElementsByName(e)))r.scrollIntoView();else if(e==="top")t.scrollTo(0,0)}var i=t.document;if(e){r.$watch(function(){return n.hash()},function(){r.$evalAsync(u)})}return u}]}function Mn(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,false)}}]}function _n(e,t,r,i){function v(e){try{e.apply(null,ft(arguments,1))}finally{p--;if(p===0){while(d.length){try{d.pop()()}catch(t){r.error(t)}}}}}function y(e,t){(function n(){S(m,function(e){e()});g=t(n,e)})()}function N(){E=null;if(b==s.url())return;b=s.url();S(x,function(e){e(s.url())})}var s=this,o=t[0],u=e.location,a=e.history,f=e.setTimeout,l=e.clearTimeout,h={};s.isMock=false;var p=0;var d=[];s.$$completeOutstandingRequest=v;s.$$incOutstandingRequestCount=function(){p++};s.notifyWhenNoOutstandingRequests=function(e){S(m,function(e){e()});if(p===0){e()}else{d.push(e)}};var m=[],g;s.addPollFn=function(e){if(P(g))y(100,f);m.push(e);return e};var b=u.href,w=t.find("base"),E=null;s.url=function(t,n){if(u!==e.location)u=e.location;if(a!==e.history)a=e.history;if(t){if(b==t)return;b=t;if(i.history){if(n)a.replaceState(null,"",t);else{a.pushState(null,"",t);w.attr("href",w.attr("href"))}}else{E=t;if(n){u.replace(t)}else{u.href=t}}return s}else{return E||u.href.replace(/%27/g,"'")}};var x=[],T=false;s.onUrlChange=function(t){if(!T){if(i.history)c(e).on("popstate",N);if(i.hashchange)c(e).on("hashchange",N);else s.addPollFn(N);T=true}x.push(t);return t};s.$$checkUrlChange=N;s.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var C={};var k="";var L=s.baseHref();s.cookies=function(e,t){var i,s,u,a,f;if(e){if(t===n){o.cookie=escape(e)+"=;path="+L+";expires=Thu, 01 Jan 1970 00:00:00 GMT"}else{if(j(t)){i=(o.cookie=escape(e)+"="+escape(t)+";path="+L).length+1;if(i>4096){r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!")}}}}else{if(o.cookie!==k){k=o.cookie;s=k.split("; ");C={};for(a=0;a<s.length;a++){u=s[a];f=u.indexOf("=");if(f>0){e=unescape(u.substring(0,f));if(C[e]===n){C[e]=unescape(u.substring(f+1))}}}}return C}};s.defer=function(e,t){var n;p++;n=f(function(){delete h[n];v(e)},t||0);h[n]=true;return n};s.defer.cancel=function(e){if(h[e]){delete h[e];l(e);v(M);return true}return false}}function Dn(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new _n(e,r,t,n)}]}function Pn(){this.$get=function(){function t(t,n){function c(e){if(e!=f){if(!l){l=e}else if(l==e){l=e.n}h(e.n,e.p);h(e,f);f=e;f.n=null}}function h(e,t){if(e!=t){if(e)e.p=t;if(t)t.n=e}}if(t in e){throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t)}var i=0,s=L({},n,{id:t}),o={},u=n&&n.capacity||Number.MAX_VALUE,a={},f=null,l=null;return e[t]={put:function(e,t){if(u<Number.MAX_VALUE){var n=a[e]||(a[e]={key:e});c(n)}if(P(t))return;if(!(e in o))i++;o[e]=t;if(i>u){this.remove(l.key)}return t},get:function(e){if(u<Number.MAX_VALUE){var t=a[e];if(!t)return;c(t)}return o[e]},remove:function(e){if(u<Number.MAX_VALUE){var t=a[e];if(!t)return;if(t==f)f=t.p;if(t==l)l=t.n;h(t.n,t.p);delete a[e]}delete o[e];i--},removeAll:function(){o={};i=0;a={};f=l=null},destroy:function(){o=null;s=null;a=null;delete e[t]},info:function(){return L({},s,{size:i})}}}var e={};t.info=function(){var t={};S(e,function(e,n){t[n]=e.info()});return t};t.get=function(t){return e[t]};return t}}function Hn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function jn(e,r){var i={},s="Directive",o=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,u=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/;var a=/^(on[a-z]+|formaction)$/;this.directive=function f(t,n){Lt(t,"directive");if(j(t)){Ct(n,"directiveFactory");if(!i.hasOwnProperty(t)){i[t]=[];e.factory(t+s,["$injector","$exceptionHandler",function(e,n){var r=[];S(i[t],function(i,s){try{var o=e.invoke(i);if(R(o)){o={compile:D(o)}}else if(!o.compile&&o.link){o.compile=D(o.link)}o.priority=o.priority||0;o.index=s;o.name=o.name||t;o.require=o.require||o.controller&&o.name;o.restrict=o.restrict||"A";r.push(o)}catch(u){n(u)}});return r}])}i[t].push(n)}else{S(t,N(f))}return this};this.aHrefSanitizationWhitelist=function(e){if(H(e)){r.aHrefSanitizationWhitelist(e);return this}else{return r.aHrefSanitizationWhitelist()}};this.imgSrcSanitizationWhitelist=function(e){if(H(e)){r.imgSrcSanitizationWhitelist(e);return this}else{return r.imgSrcSanitizationWhitelist()}};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,f,h,p,d,v,m,g,y,w,E){function A(e,t,n,r,i){if(!(e instanceof c)){e=c(e)}S(e,function(t,n){if(t.nodeType==3&&t.nodeValue.match(/\S+/)){e[n]=t=c(t).wrap("<span></span>").parent()[0]}});var s=D(e,t,e,n,r,i);M(e,"ng-scope");return function(n,r,i,o){Ct(n,"scope");var u=r?dn.clone.call(e):e;S(i,function(e,t){u.data("$"+t+"Controller",e)});for(var a=0,f=u.length;a<f;a++){var l=u[a],c=l.nodeType;if(c===1||c===9){u.eq(a).data("$scope",n)}}if(r)r(u,n);if(s)s(n,u,u,o);return u}}function M(e,t){try{e.addClass(t)}catch(n){}}function D(e,t,r,i,s,o){function m(e,r,i,s){var o,a,f,l,h,p,d,v;var m=r.length,g=new Array(m);for(h=0;h<m;h++){g[h]=r[h]}for(h=0,d=0,p=u.length;h<p;d++){f=g[d];o=u[h++];a=u[h++];if(o){if(o.scope){l=e.$new();c.data(f,"$scope",l)}else{l=e}if(o.transcludeOnThisElement){v=P(e,o.transclude,s)}else if(!o.templateOnThisElement&&s){v=s}else if(!s&&t){v=P(e,t)}else{v=null}o(a,l,f,i,v)}else if(a){a(e,f.childNodes,n,s)}}}var u=[],a,f,l,h,p,d;for(var v=0;v<e.length;v++){a=new x;f=H(e[v],[],a,v===0?i:n,s);l=f.length?U(f,e[v],a,t,r,null,[],[],o):null;if(l&&l.scope){M(a.$$element,"ng-scope")}p=l&&l.terminal||!(h=e[v].childNodes)||!h.length?null:D(h,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t);u.push(l,p);d=d||l||p;o=null}return d?m:null}function P(e,t,n){var r=function(r,i,s){var o=false;if(!r){r=e.$new();r.$$transcluded=true;o=true}var u=t(r,i,s,n);if(o){u.on("$destroy",function(){r.$destroy()})}return u};return r}function H(e,t,n,r,i){var s=e.nodeType,a=n.$attr,f,c;switch(s){case 1:W(t,In(b(e).toLowerCase()),"E",r,i);for(var h,p,d,v,m,g,y=e.attributes,w=0,E=y&&y.length;w<E;w++){var S=false;var x=false;h=y[w];if(!l||l>=8||h.specified){p=h.name;m=K(h.value);v=In(p);if(g=k.test(v)){p=Tt(v.substr(6),"-")}var T=v.replace(/(Start|End)$/,"");if(v===T+"Start"){S=p;x=p.substr(0,p.length-5)+"end";p=p.substr(0,p.length-6)}d=In(p.toLowerCase());a[d]=p;if(g||!n.hasOwnProperty(d)){n[d]=m;if(gn(e,d)){n[d]=true}}Y(e,t,m,d);W(t,d,"A",r,i,S,x)}}c=e.className;if(j(c)&&c!==""){while(f=u.exec(c)){d=In(f[2]);if(W(t,d,"C",r,i)){n[d]=K(f[3])}c=c.substr(f.index+f[0].length)}}break;case 3:Q(t,e.nodeValue);break;case 8:try{f=o.exec(e.nodeValue);if(f){d=In(f[1]);if(W(t,d,"M",r,i)){n[d]=K(f[2])}}}catch(N){}break}t.sort($);return t}function F(e,t,n){var r=[];var i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){var s=e;do{if(!e){throw Bn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n)}if(e.nodeType==1){if(e.hasAttribute(t))i++;if(e.hasAttribute(n))i--}r.push(e);e=e.nextSibling}while(i>0)}else{r.push(e)}return c(r)}function I(e,t,n){return function(r,i,s,o,u){i=F(i[0],t,n);return e(r,i,s,o,u)}}function U(e,i,s,o,u,a,l,h,p){function at(e,t,n,r){if(e){if(n)e=I(e,n,r);e.require=O.require;e.directiveName=_;if(b===O||O.$$isolateScope){e=et(e,{isolateScope:true})}l.push(e)}if(t){if(n)t=I(t,n,r);t.require=O.require;t.directiveName=_;if(b===O||O.$$isolateScope){t=et(t,{isolateScope:true})}h.push(t)}}function lt(e,t,n,r){var i,s="data",o=false;if(j(t)){while((i=t.charAt(0))=="^"||i=="?"){t=t.substr(1);if(i=="^"){s="inheritedData"}o=o||i=="?"}i=null;if(r&&s==="data"){i=r[t]}i=i||n[s]("$"+t+"Controller");if(!i&&!o){throw Bn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e)}return i}else if(q(t)){i=[];S(t,function(t){i.push(lt(e,t,n,r))})}return i}function ct(e,t,o,u,a){function P(e,t){var r;if(arguments.length<2){t=e;e=n}if(k){r=L}return a(e,t,r)}var p,m,g,E,T,N,C,L={},A;p=i===o?s:st(s,new x(c(o),s.$attr));m=p.$$element;if(b){var O=/^\s*([@=&])(\??)\s*(\w*)\s*$/;C=t.$new(true);if(w&&(w===b||w===b.$$originalDirective)){m.data("$isolateScope",C)}else{m.data("$isolateScopeNoTemplate",C)}M(m,"ng-isolate-scope");S(b.scope,function(e,n){var i=e.match(O)||[],s=i[3]||n,o=i[2]=="?",u=i[1],a,f,l,c;C.$$isolateBindings[n]=u+s;switch(u){case"@":p.$observe(s,function(e){C[n]=e});p.$$observers[s].$$scope=t;if(p[s]){C[n]=r(p[s])(t)}break;case"=":if(o&&!p[s]){return}f=d(p[s]);if(f.literal){c=ot}else{c=function(e,t){return e===t||e!==e&&t!==t}}l=f.assign||function(){a=C[n]=f(t);throw Bn("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",p[s],b.name)};a=C[n]=f(t);C.$watch(function(){var r=f(t);if(!c(r,C[n])){if(!c(r,a)){C[n]=r}else{l(t,r=C[n])}}return a=r},null,f.literal);break;case"&":f=d(p[s]);C[n]=function(e){return f(t,e)};break;default:throw Bn("iscp","Invalid isolate scope definition for directive '{0}'."+" Definition: {... {1}: '{2}' ...}",b.name,n,e)}})}A=a&&P;if(y){S(y,function(e){var n={$scope:e===b||e.$$isolateScope?C:t,$element:m,$attrs:p,$transclude:A},r;N=e.controller;if(N=="@"){N=p[e.name]}r=v(N,n);L[e.name]=r;if(!k){m.data("$"+e.name+"Controller",r)}if(e.controllerAs){n.$scope[e.controllerAs]=r}})}for(g=0,E=l.length;g<E;g++){try{T=l[g];T(T.isolateScope?C:t,m,p,T.require&<(T.directiveName,T.require,m,L),A)}catch(_){f(_,vt(m))}}var D=t;if(b&&(b.template||b.templateUrl===null)){D=C}e&&e(D,o.childNodes,n,a);for(g=h.length-1;g>=0;g--){try{T=h[g];T(T.isolateScope?C:t,m,p,T.require&<(T.directiveName,T.require,m,L),A)}catch(_){f(_,vt(m))}}}p=p||{};var m=-Number.MAX_VALUE,g,y=p.controllerDirectives,b=p.newIsolateScopeDirective,w=p.templateDirective,E=p.nonTlbTranscludeDirective,T=false,N=false,k=p.hasElementTranscludeDirective,L=s.$$element=c(i),O,_,D,P=a,U=o,W,$;for(var Q=0,G=e.length;Q<G;Q++){O=e[Q];var Y=O.$$start;var tt=O.$$end;if(Y){L=F(i,Y,tt)}D=n;if(m>O.priority){break}if($=O.scope){g=g||O;if(!O.templateUrl){J("new/isolated scope",b,O,L);if(B($)){b=O}}}_=O.name;if(!O.templateUrl&&O.controller){$=O.controller;y=y||{};J("'"+_+"' controller",y[_],O,L);y[_]=O}if($=O.transclude){T=true;if(!O.$$tlb){J("transclusion",E,O,L);E=O}if($=="element"){k=true;m=O.priority;D=L;L=s.$$element=c(t.createComment(" "+_+": "+s[_]+" "));i=L[0];Z(u,ft(D),i);U=A(D,o,m,P&&P.name,{nonTlbTranscludeDirective:E})}else{D=c(en(i)).contents();L.empty();U=A(D,o)}}if(O.template){N=true;J("template",w,O,L);w=O;$=R(O.template)?O.template(L,s):O.template;$=C($);if(O.replace){P=O;if(Qt($)){D=[]}else{D=c(K($))}i=D[0];if(D.length!=1||i.nodeType!==1){throw Bn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",_,"")}Z(u,L,i);var nt={$attr:{}};var rt=H(i,[],nt);var it=e.splice(Q+1,e.length-(Q+1));if(b){z(rt)}e=e.concat(rt).concat(it);X(s,nt);G=e.length}else{L.html($)}}if(O.templateUrl){N=true;J("template",w,O,L);w=O;if(O.replace){P=O}ct=V(e.splice(Q,e.length-Q),L,s,u,T&&U,l,h,{controllerDirectives:y,newIsolateScopeDirective:b,templateDirective:w,nonTlbTranscludeDirective:E});G=e.length}else if(O.compile){try{W=O.compile(L,s,U);if(R(W)){at(null,W,Y,tt)}else if(W){at(W.pre,W.post,Y,tt)}}catch(ut){f(ut,vt(L))}}if(O.terminal){ct.terminal=true;m=Math.max(m,O.priority)}}ct.scope=g&&g.scope===true;ct.transcludeOnThisElement=T;ct.templateOnThisElement=N;ct.transclude=U;p.hasElementTranscludeDirective=k;return ct}function z(e){for(var t=0,n=e.length;t<n;t++){e[t]=O(e[t],{$$isolateScope:true})}}function W(t,r,o,u,a,l,c){if(r===a)return null;var h=null;if(i.hasOwnProperty(r)){for(var p,d=e.get(r+s),v=0,m=d.length;v<m;v++){try{p=d[v];if((u===n||u>p.priority)&&p.restrict.indexOf(o)!=-1){if(l){p=O(p,{$$start:l,$$end:c})}t.push(p);h=p}}catch(g){f(g)}}}return h}function X(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;S(e,function(r,i){if(i.charAt(0)!="$"){if(t[i]&&t[i]!==r){r+=(i==="style"?";":" ")+t[i]}e.$set(i,r,true,n[i])}});S(t,function(t,s){if(s=="class"){M(i,t);e["class"]=(e["class"]?e["class"]+" ":"")+t}else if(s=="style"){i.attr("style",i.attr("style")+";"+t);e["style"]=(e["style"]?e["style"]+";":"")+t}else if(s.charAt(0)!="$"&&!e.hasOwnProperty(s)){e[s]=t;r[s]=n[s]}})}function V(e,t,n,r,i,s,o,u){var a=[],f,l,d=t[0],v=e.shift(),m=L({},v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=R(v.templateUrl)?v.templateUrl(t,n):v.templateUrl;t.empty();h.get(y.getTrustedResourceUrl(g),{cache:p}).success(function(h){var p,y,b,w;h=C(h);if(v.replace){if(Qt(h)){b=[]}else{b=c(K(h))}p=b[0];if(b.length!=1||p.nodeType!==1){throw Bn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,g)}y={$attr:{}};Z(r,t,p);var E=H(p,[],y);if(B(v.scope)){z(E)}e=E.concat(e);X(n,y)}else{p=d;t.html(h)}e.unshift(m);f=U(e,p,n,i,t,v,s,o,u);S(r,function(e,n){if(e==p){r[n]=t[0]}});l=D(t[0].childNodes,i);while(a.length){var x=a.shift(),T=a.shift(),N=a.shift(),k=a.shift(),L=t[0];if(T!==d){var A=T.className;if(!(u.hasElementTranscludeDirective&&v.replace)){L=en(p)}Z(N,c(T),L);M(c(L),A)}if(f.transcludeOnThisElement){w=P(x,f.transclude,k)}else{w=k}f(l,x,L,r,w)}a=null}).error(function(e,t,n,r){throw Bn("tpload","Failed to load template: {0}",r.url)});return function(t,n,r,i,s){var o=s;if(a){a.push(n);a.push(r);a.push(i);a.push(o)}else{if(f.transcludeOnThisElement){o=P(n,f.transclude,s)}f(l,n,r,i,o)}}}function $(e,t){var n=t.priority-e.priority;if(n!==0)return n;if(e.name!==t.name)return e.name<t.name?-1:1;return e.index-t.index}function J(e,t,n,r){if(t){throw Bn("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,vt(r))}}function Q(e,t){var n=r(t,true);if(n){e.push({priority:0,compile:function(t){var r=t.parent(),i=r.length;if(i)M(t.parent(),"ng-binding");return function(t,r){var s=r.parent(),o=s.data("$binding")||[];o.push(n);s.data("$binding",o);if(!i)M(s,"ng-binding");t.$watch(n,function(t){r[0].nodeValue=t})}}})}}function G(e,t){if(t=="srcdoc"){return y.HTML}var n=b(e);if(t=="xlinkHref"||n=="FORM"&&t=="action"||n!="IMG"&&(t=="src"||t=="ngSrc")){return y.RESOURCE_URL}}function Y(e,t,n,i){var s=r(n,true);if(!s)return;if(i==="multiple"&&b(e)==="SELECT"){throw Bn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",vt(e))}t.push({priority:100,compile:function(){return{pre:function(n,o,u){var f=u.$$observers||(u.$$observers={});if(a.test(i)){throw Bn("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the "+"ng- versions (such as ng-click instead of onclick) instead.")}s=r(u[i],true,G(e,i));if(!s)return;u[i]=s(n);(f[i]||(f[i]=[])).$$inter=true;(u.$$observers&&u.$$observers[i].$$scope||n).$watch(s,function(t,n){if(i==="class"&&t!=n){u.$updateClass(t,n)}else{u.$set(i,t)}})}}}})}function Z(e,n,r){var i=n[0],s=n.length,o=i.parentNode,u,a;if(e){for(u=0,a=e.length;u<a;u++){if(e[u]==i){e[u++]=r;for(var f=u,l=f+s-1,h=e.length;f<h;f++,l++){if(l<h){e[f]=e[l]}else{delete e[f]}}e.length-=s-1;break}}}if(o){o.replaceChild(r,i)}var p=t.createDocumentFragment();p.appendChild(i);r[c.expando]=i[c.expando];for(var d=1,v=n.length;d<v;d++){var m=n[d];c(m).remove();p.appendChild(m);delete n[d]}n[0]=r;n.length=1}function et(e,t){return L(function(){return e.apply(null,arguments)},e,t)}var x=function(e,t){this.$$element=e;this.$attr=t||{}};x.prototype={$normalize:In,$addClass:function(e){if(e&&e.length>0){w.addClass(this.$$element,e)}},$removeClass:function(e){if(e&&e.length>0){w.removeClass(this.$$element,e)}},$updateClass:function(e,t){var n=Un(e,t);var r=Un(t,e);if(n.length===0){w.removeClass(this.$$element,r)}else if(r.length===0){w.addClass(this.$$element,n)}else{w.setClass(this.$$element,n,r)}},$set:function(e,t,r,i){var s=gn(this.$$element[0],e),o,u;if(s){this.$$element.prop(e,t);i=s}this[e]=t;if(i){this.$attr[e]=i}else{i=this.$attr[e];if(!i){this.$attr[e]=i=Tt(e,"-")}}u=b(this.$$element);if(u==="A"&&e==="href"||u==="IMG"&&e==="src"){this[e]=t=E(t,e==="src")}if(r!==false){if(t===null||t===n){this.$$element.removeAttr(i)}else{this.$$element.attr(i,t)}}var a=this.$$observers;a&&S(a[e],function(e){try{e(t)}catch(n){f(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers={}),i=r[e]||(r[e]=[]);i.push(t);m.$evalAsync(function(){if(!i.$$inter){t(n[e])}});return t}};var T=r.startSymbol(),N=r.endSymbol(),C=T=="{{"||N=="}}"?_:function(t){return t.replace(/\{\{/g,T).replace(/}}/g,N)},k=/^ngAttr[A-Z]/;return A}]}function In(e){return zt(e.replace(Fn,""))}function qn(e,t,n,r){}function Rn(e,t,n,r,i){}function Un(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var s=0;s<r.length;s++){var o=r[s];for(var u=0;u<i.length;u++){if(o==i[u])continue e}n+=(n.length>0?" ":"")+o}return n}function zn(){var e={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){Lt(t,"controller");if(B(t)){L(e,t)}else{e[t]=n}};this.$get=["$injector","$window",function(n,i){return function(s,o){var u,a,f,l;if(j(s)){a=s.match(t),f=a[1],l=a[3];s=e.hasOwnProperty(f)?e[f]:At(o.$scope,f,true)||At(i,f,true);kt(s,f,true)}u=n.instantiate(s,o);if(l){if(!(o&&typeof o.$scope==="object")){throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",f||s.name,l)}o.$scope[l]=u}return u}}]}function Wn(){this.$get=["$window",function(e){return c(e.document)}]}function Xn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Vn(e){var t={},n,r,i;if(!e)return t;S(e.split("\n"),function(e){i=e.indexOf(":");n=s(K(e.substr(0,i)));r=K(e.substr(i+1));if(n){t[n]=t[n]?t[n]+", "+r:r}});return t}function $n(e){var t=B(e)?e:n;return function(n){if(!t)t=Vn(e);if(n){return t[s(n)]||null}return t}}function Jn(e,t,n){if(R(n))return n(e,t);S(n,function(n){e=n(e,t)});return e}function Kn(e){return 200<=e&&e<300}function Qn(){var e=/^\s*(\[|\{[^\{])/,t=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,i={"Content-Type":"application/json;charset=utf-8"};var o=this.defaults={transformResponse:[function(n){if(j(n)){n=n.replace(r,"");if(e.test(n)&&t.test(n))n=pt(n)}return n}],transformRequest:[function(e){return B(e)&&!X(e)&&!V(e)?ht(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:st(i),put:st(i),patch:st(i)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"};var a=this.interceptors=[];var f=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(e,t,r,i,l,c){function d(e){function d(e){var n=L({},e,{data:Jn(e.data,e.headers,t.transformResponse)});return Kn(e.status)?n:l.reject(n)}function v(e){function a(e){var t;S(e,function(n,r){if(R(n)){t=n();if(t!=null){e[r]=t}else{delete e[r]}}})}var t=o.headers,n=L({},e.headers),r,i,u;t=L({},t.common,t[s(e.method)]);e:for(r in t){i=s(r);for(u in n){if(s(u)===i){continue e}}n[r]=t[r]}a(n);return n}var t={method:"get",transformRequest:o.transformRequest,transformResponse:o.transformResponse};var r=v(e);L(t,e);t.headers=r;t.method=u(t.method);var i=function(e){r=e.headers;var t=Jn(e.data,$n(r),e.transformRequest);if(P(t)){S(r,function(e,t){if(s(t)==="content-type"){delete r[t]}})}if(P(e.withCredentials)&&!P(o.withCredentials)){e.withCredentials=o.withCredentials}return g(e,t,r).then(d,d)};var a=[i,n];var f=l.when(t);S(p,function(e){if(e.request||e.requestError){a.unshift(e.request,e.requestError)}if(e.response||e.responseError){a.push(e.response,e.responseError)}});while(a.length){var c=a.shift();var h=a.shift();f=f.then(c,h)}f.success=function(e){f.then(function(n){e(n.data,n.status,n.headers,t)});return f};f.error=function(e){f.then(null,function(n){e(n.data,n.status,n.headers,t)});return f};return f}function v(e){S(arguments,function(e){d[e]=function(t,n){return d(L(n||{},{method:e,url:t}))}})}function m(e){S(arguments,function(e){d[e]=function(t,n,r){return d(L(r||{},{method:e,url:t,data:n}))}})}function g(r,s,u){function g(e,t,n,r){if(c){if(Kn(e)){c.put(v,[e,t,Vn(n),r])}else{c.remove(v)}}b(t,e,n,r);if(!i.$$phase)i.$apply()}function b(e,t,n,i){t=Math.max(t,0);(Kn(t)?a.resolve:a.reject)({data:e,status:t,headers:$n(n),config:r,statusText:i})}function w(){var e=tt(d.pendingRequests,r);if(e!==-1)d.pendingRequests.splice(e,1)}var a=l.defer(),f=a.promise,c,p,v=y(r.url,r.params);d.pendingRequests.push(r);f.then(w,w);if((r.cache||o.cache)&&r.cache!==false&&(r.method==="GET"||r.method==="JSONP")){c=B(r.cache)?r.cache:B(o.cache)?o.cache:h}if(c){p=c.get(v);if(H(p)){if(J(p)){p.then(w,w);return p}else{if(q(p)){b(p[1],p[0],st(p[2]),p[3])}else{b(p,200,{},"OK")}}}else{c.put(v,f)}}if(P(p)){var m=ni(r.url)?t.cookies()[r.xsrfCookieName||o.xsrfCookieName]:n;if(m){u[r.xsrfHeaderName||o.xsrfHeaderName]=m}e(r.method,v,s,g,u,r.timeout,r.withCredentials,r.responseType)}return f}function y(e,t){if(!t)return e;var n=[];T(t,function(e,t){if(e===null||P(e))return;if(!q(e))e=[e];S(e,function(e){if(B(e)){if(I(e)){e=e.toISOString()}else{e=ht(e)}}n.push(wt(t)+"="+wt(e))})});if(n.length>0){e+=(e.indexOf("?")==-1?"?":"&")+n.join("&")}return e}var h=r("$http");var p=[];S(a,function(e){p.unshift(j(e)?c.get(e):c.invoke(e))});S(f,function(e,t){var n=j(e)?c.get(e):c.invoke(e);p.splice(t,0,{response:function(e){return n(l.when(e))},responseError:function(e){return n(l.reject(e))}})});d.pendingRequests=[];v("get","delete","head","jsonp");m("post","put");d.defaults=o;return d}]}function Gn(t){if(l<=8&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!e.XMLHttpRequest)){return new e.ActiveXObject("Microsoft.XMLHTTP")}else if(e.XMLHttpRequest){return new e.XMLHttpRequest}throw r("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function Yn(){this.$get=["$browser","$window","$document",function(e,t,n){return Zn(e,Gn,e.defer,t.angular.callbacks,n[0])}]}function Zn(e,t,n,r,i){function u(e,t,n){var s=i.createElement("script"),o=null;s.type="text/javascript";s.src=e;s.async=true;o=function(e){jt(s,"load",o);jt(s,"error",o);i.body.removeChild(s);s=null;var u=-1;var a="unknown";if(e){if(e.type==="load"&&!r[t].called){e={type:"error"}}a=e.type;u=e.type==="error"?404:200}if(n){n(u,a)}};Bt(s,"load",o);Bt(s,"error",o);if(l<=8){s.onreadystatechange=function(){if(j(s.readyState)&&/loaded|complete/.test(s.readyState)){s.onreadystatechange=null;o({type:"load"})}}}i.body.appendChild(s);return o}var o=-1;return function(i,a,f,c,h,p,d,v){function x(){m=o;y&&y();b&&b.abort()}function T(t,r,i,s,o){E&&n.cancel(E);y=b=null;if(r===0){r=i?200:ti(a).protocol=="file"?404:0}r=r===1223?204:r;o=o||"";t(r,i,s,o);e.$$completeOutstandingRequest(M)}var m;e.$$incOutstandingRequestCount();a=a||e.url();if(s(i)=="jsonp"){var g="_"+(r.counter++).toString(36);r[g]=function(e){r[g].data=e;r[g].called=true};var y=u(a.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(e,t){T(c,e,r[g].data,"",t);r[g]=M})}else{var b=t(i);b.open(i,a,true);S(h,function(e,t){if(H(e)){b.setRequestHeader(t,e)}});b.onreadystatechange=function(){if(b&&b.readyState==4){var e=null,t=null,n="";if(m!==o){e=b.getAllResponseHeaders();t="response"in b?b.response:b.responseText}if(!(m===o&&l<10)){n=b.statusText}T(c,m||b.status,t,e,n)}};if(d){b.withCredentials=true}if(v){try{b.responseType=v}catch(w){if(v!=="json"){throw w}}}b.send(f||null)}if(p>0){var E=n(x,p)}else if(J(p)){p.then(x)}}}function tr(){var e="{{";var t="}}";this.startSymbol=function(t){if(t){e=t;return this}else{return e}};this.endSymbol=function(e){if(e){t=e;return this}else{return t}};this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function u(u,a,f){var l,c,h=0,p=[],d=u.length,v=false,m,g,y=[];while(h<d){if((l=u.indexOf(e,h))!=-1&&(c=u.indexOf(t,l+s))!=-1){h!=l&&p.push(u.substring(h,l));p.push(m=n(g=u.substring(l+s,c)));m.exp=g;h=c+o;v=true}else{h!=d&&p.push(u.substring(h));h=d}}if(!(d=p.length)){p.push("");d=1}if(f&&p.length>1){throw er("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows "+"interpolations that concatenate multiple expressions when a trusted value is "+"required. See http://docs.angularjs.org/api/ng.$sce",u)}if(!a||v){y.length=d;m=function(e){try{for(var t=0,n=d,s;t<n;t++){if(typeof (s=p[t])=="function"){s=s(e);if(f){s=i.getTrusted(f,s)}else{s=i.valueOf(s)}if(s==null){s=""}else{switch(typeof s){case"string":{break};case"number":{s=""+s;break};default:{s=ht(s)}}}}y[t]=s}return y.join("")}catch(o){var a=er("interr","Can't interpolate: {0}\n{1}",u,o.toString());r(a)}};m.exp=u;m.parts=p;return m}}var s=e.length,o=t.length;u.startSymbol=function(){return e};u.endSymbol=function(){return t};return u}]}function nr(){this.$get=["$rootScope","$window","$q",function(e,t,n){function i(i,s,o,u){var a=t.setInterval,f=t.clearInterval,l=n.defer(),c=l.promise,h=0,p=H(u)&&!u;o=H(o)?o:0;c.then(null,null,i);c.$$intervalId=a(function(){l.notify(h++);if(o>0&&h>=o){l.resolve(h);f(c.$$intervalId);delete r[c.$$intervalId]}if(!p)e.$apply()},s);r[c.$$intervalId]=l;return c}var r={};i.cancel=function(e){if(e&&e.$$intervalId in r){r[e.$$intervalId].reject("canceled");t.clearInterval(e.$$intervalId);delete r[e.$$intervalId];return true}return false};return i}]}function rr(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(e){if(e===1){return"one"}return"other"}}}}function ur(e){var t=e.split("/"),n=t.length;while(n--){t[n]=bt(t[n])}return t.join("/")}function ar(e,t,n){var r=ti(e,n);t.$$protocol=r.protocol;t.$$host=r.hostname;t.$$port=A(r.port)||sr[r.protocol]||null}function fr(e,t,n){var r=e.charAt(0)!=="/";if(r){e="/"+e}var i=ti(e,n);t.$$path=decodeURIComponent(r&&i.pathname.charAt(0)==="/"?i.pathname.substring(1):i.pathname);t.$$search=gt(i.search);t.$$hash=decodeURIComponent(i.hash);if(t.$$path&&t.$$path.charAt(0)!="/"){t.$$path="/"+t.$$path}}function lr(e,t){if(t.indexOf(e)===0){return t.substr(e.length)}}function cr(e){var t=e.indexOf("#");return t==-1?e:e.substr(0,t)}function hr(e){return e.substr(0,cr(e).lastIndexOf("/")+1)}function pr(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function dr(e,t){this.$$html5=true;t=t||"";var r=hr(e);ar(e,this,e);this.$$parse=function(t){var n=lr(r,t);if(!j(n)){throw or("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r)}fr(n,this,e);if(!this.$$path){this.$$path="/"}this.$$compose()};this.$$compose=function(){var e=yt(this.$$search),t=this.$$hash?"#"+bt(this.$$hash):"";this.$$url=ur(this.$$path)+(e?"?"+e:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$rewrite=function(i){var s,o;if((s=lr(e,i))!==n){o=s;if((s=lr(t,s))!==n){return r+(lr("/",s)||s)}else{return e+o}}else if((s=lr(r,i))!==n){return r+s}else if(r==i+"/"){return r}}}function vr(e,t){var n=hr(e);ar(e,this,e);this.$$parse=function(r){function o(e,t,n){var r=/^\/[A-Z]:(\/.*)/;var i;if(t.indexOf(n)===0){t=t.replace(n,"")}if(r.exec(t)){return e}i=r.exec(e);return i?i[1]:e}var i=lr(e,r)||lr(n,r);var s=i.charAt(0)=="#"?lr(t,i):this.$$html5?i:"";if(!j(s)){throw or("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,t)}fr(s,this,e);this.$$path=o(this.$$path,s,e);this.$$compose()};this.$$compose=function(){var n=yt(this.$$search),r=this.$$hash?"#"+bt(this.$$hash):"";this.$$url=ur(this.$$path)+(n?"?"+n:"")+r;this.$$absUrl=e+(this.$$url?t+this.$$url:"")};this.$$rewrite=function(t){if(cr(e)==cr(t)){return t}}}function mr(e,t){this.$$html5=true;vr.apply(this,arguments);var n=hr(e);this.$$rewrite=function(r){var i;if(e==cr(r)){return r}else if(i=lr(n,r)){return e+t+i}else if(n===r+"/"){return n}};this.$$compose=function(){var n=yt(this.$$search),r=this.$$hash?"#"+bt(this.$$hash):"";this.$$url=ur(this.$$path)+(n?"?"+n:"")+r;this.$$absUrl=e+t+this.$$url}}function gr(e){return function(){return this[e]}}function yr(e,t){return function(n){if(P(n))return this[e];this[e]=t(n);this.$$compose();return this}}function br(){var t="",n=false;this.hashPrefix=function(e){if(H(e)){t=e;return this}else{return t}};this.html5Mode=function(e){if(H(e)){n=e;return this}else{return n}};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,o,u){function m(e){r.$broadcast("$locationChangeSuccess",a.absUrl(),e)}var a,f,l=i.baseHref(),h=i.url(),p;if(n){p=pr(h)+(l||"/");f=o.history?dr:mr}else{p=cr(h);f=vr}a=new f(p,"#"+t);a.$$parse(a.$$rewrite(h));var d=/^\s*(javascript|mailto):/i;u.on("click",function(n){if(n.ctrlKey||n.metaKey||n.which==2)return;var o=c(n.target);while(s(o[0].nodeName)!=="a"){if(o[0]===u[0]||!(o=o.parent())[0])return}var l=o.prop("href");if(B(l)&&l.toString()==="[object SVGAnimatedString]"){l=ti(l.animVal).href}if(d.test(l))return;if(f===mr){var h=o.attr("href")||o.attr("xlink:href");if(h&&h.indexOf("://")<0){var v="#"+t;if(h[0]=="/"){l=p+v+h}else if(h[0]=="#"){l=p+v+(a.path()||"/")+h}else{var m=a.path().split("/"),g=h.split("/");if(m.length===2&&!m[1])m.length=1;for(var y=0;y<g.length;y++){if(g[y]==".")continue;else if(g[y]=="..")m.pop();else if(g[y].length)m.push(g[y])}l=p+v+m.join("/")}}}var b=a.$$rewrite(l);if(l&&!o.attr("target")&&b&&!n.isDefaultPrevented()){n.preventDefault();if(b!=i.url()){a.$$parse(b);r.$apply();e.angular["ff-684208-preventDefault"]=true}}});if(a.absUrl()!=h){i.url(a.absUrl(),true)}i.onUrlChange(function(e){if(a.absUrl()!=e){r.$evalAsync(function(){var t=a.absUrl();a.$$parse(e);if(r.$broadcast("$locationChangeStart",e,t).defaultPrevented){a.$$parse(t);i.url(t)}else{m(t)}});if(!r.$$phase)r.$digest()}});var v=0;r.$watch(function(){var t=i.url();var n=a.$$replace;if(!v||t!=a.absUrl()){v++;r.$evalAsync(function(){if(r.$broadcast("$locationChangeStart",a.absUrl(),t).defaultPrevented){a.$$parse(t)}else{i.url(a.absUrl(),n);m(t)}})}a.$$replace=false;return v});return a}]}function wr(){var e=true,t=this;this.debugEnabled=function(t){if(H(t)){e=t;return this}else{return e}};this.$get=["$window",function(n){function r(e){if(e instanceof Error){if(e.stack){e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack}else if(e.sourceURL){e=e.message+"\n"+e.sourceURL+":"+e.line}}return e}function i(e){var t=n.console||{},i=t[e]||t.log||M,s=false;try{s=!!i.apply}catch(o){}if(s){return function(){var e=[];S(arguments,function(t){e.push(r(t))});return i.apply(t,e)}}return function(e,t){i(e,t==null?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){if(e){n.apply(t,arguments)}}}()}}]}function Tr(e,t){if(e==="__defineGetter__"||e==="__defineSetter__"||e==="__lookupGetter__"||e==="__lookupSetter__"||e==="__proto__"){throw Er("isecfld","Attempting to access a disallowed field in Angular expressions! "+"Expression: {0}",t)}return e}function Nr(e,t){if(e){if(e.constructor===e){throw Er("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t)}else if(e.document&&e.location&&e.alert&&e.setInterval){throw Er("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t)}else if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find)){throw Er("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t)}else if(e===Object){throw Er("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}}return e}function Ar(e,t){if(e){if(e.constructor===e){throw Er("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t)}else if(e===Cr||e===kr||Lr&&e===Lr){throw Er("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}}function Pr(e,t,r,i,s){Nr(e,i);s=s||{};var o=t.split("."),u;for(var a=0;o.length>1;a++){u=Tr(o.shift(),i);var f=Nr(e[u],i);if(!f){f={};e[u]=f}e=f;if(e.then&&s.unwrapPromises){xr(i);if(!("$$v"in e)){(function(e){e.then(function(t){e.$$v=t})})(e)}if(e.$$v===n){e.$$v={}}e=e.$$v}}u=Tr(o.shift(),i);Nr(e[u],i);e[u]=r;return r}function Br(e,t,r,i,s,o,u){Tr(e,o);Tr(t,o);Tr(r,o);Tr(i,o);Tr(s,o);return!u.unwrapPromises?function(u,a){var f=a&&a.hasOwnProperty(e)?a:u;if(f==null)return f;f=f[e];if(!t)return f;if(f==null)return n;f=f[t];if(!r)return f;if(f==null)return n;f=f[r];if(!i)return f;if(f==null)return n;f=f[i];if(!s)return f;if(f==null)return n;f=f[s];return f}:function(a,f){var l=f&&f.hasOwnProperty(e)?f:a,c;if(l==null)return l;l=l[e];if(l&&l.then){xr(o);if(!("$$v"in l)){c=l;c.$$v=n;c.then(function(e){c.$$v=e})}l=l.$$v}if(!t)return l;if(l==null)return n;l=l[t];if(l&&l.then){xr(o);if(!("$$v"in l)){c=l;c.$$v=n;c.then(function(e){c.$$v=e})}l=l.$$v}if(!r)return l;if(l==null)return n;l=l[r];if(l&&l.then){xr(o);if(!("$$v"in l)){c=l;c.$$v=n;c.then(function(e){c.$$v=e})}l=l.$$v}if(!i)return l;if(l==null)return n;l=l[i];if(l&&l.then){xr(o);if(!("$$v"in l)){c=l;c.$$v=n;c.then(function(e){c.$$v=e})}l=l.$$v}if(!s)return l;if(l==null)return n;l=l[s];if(l&&l.then){xr(o);if(!("$$v"in l)){c=l;c.$$v=n;c.then(function(e){c.$$v=e})}l=l.$$v}return l}}function jr(e,t,r){if(Hr.hasOwnProperty(e)){return Hr[e]}var i=e.split("."),s=i.length,o;if(t.csp){if(s<6){o=Br(i[0],i[1],i[2],i[3],i[4],r,t)}else{o=function(e,o){var u=0,a;do{a=Br(i[u++],i[u++],i[u++],i[u++],i[u++],r,t)(e,o);o=n;e=a}while(u<s);return a}}}else{var u="var p;\n";S(i,function(e,n){Tr(e,r);u+="if(s == null) return undefined;\n"+"s="+(n?"s":'((k&&k.hasOwnProperty("'+e+'"))?k:s)')+'["'+e+'"]'+";\n"+(t.unwrapPromises?"if (s && s.then) {\n"+' pw("'+r.replace(/(["\r\n])/g,"\\$1")+'");\n'+' if (!("$$v" in s)) {\n'+" p=s;\n"+" p.$$v = undefined;\n"+" p.then(function(v) {p.$$v=v;});\n"+"}\n"+" s=s.$$v\n"+"}\n":"")});u+="return s;";var a=new Function("s","k","pw",u);a.toString=D(u);o=t.unwrapPromises?function(e,t){return a(e,t,xr)}:a}if(e!=="hasOwnProperty"){Hr[e]=o}return o}function Fr(){var e={};var t={csp:false,unwrapPromises:false,logPromiseWarnings:true};this.unwrapPromises=function(e){if(H(e)){t.unwrapPromises=!!e;return this}else{return t.unwrapPromises}};this.logPromiseWarnings=function(e){if(H(e)){t.logPromiseWarnings=e;return this}else{return t.logPromiseWarnings}};this.$get=["$filter","$sniffer","$log",function(n,r,i){t.csp=r.csp;xr=function(n){if(!t.logPromiseWarnings||Sr.hasOwnProperty(n))return;Sr[n]=true;i.warn("[$parse] Promise found in the expression `"+n+"`. "+"Automatic unwrapping of promises in Angular expressions is deprecated.")};return function(r){var i;switch(typeof r){case"string":if(e.hasOwnProperty(r)){return e[r]}var s=new _r(t);var o=new Dr(s,n,t);i=o.parse(r);if(r!=="hasOwnProperty"){e[r]=i}return i;case"function":return r;default:return M}}}]}function Ir(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return qr(function(t){e.$evalAsync(t)},t)}]}function qr(e,t){function a(e){return e}function f(e){return s(e)}function l(e){var t=r(),n=0,s=q(e)?[]:{};S(e,function(e,r){n++;i(e).then(function(e){if(s.hasOwnProperty(r))return;s[r]=e;if(!--n)t.resolve(s)},function(e){if(s.hasOwnProperty(r))return;t.reject(e)})});if(n===0){t.resolve(s)}return t.promise}var r=function(){var s=[],u,l;l={resolve:function(t){if(s){var r=s;s=n;u=i(t);if(r.length){e(function(){var e;for(var t=0,n=r.length;t<n;t++){e=r[t];u.then(e[0],e[1],e[2])}})}}},reject:function(e){l.resolve(o(e))},notify:function(t){if(s){var n=s;if(s.length){e(function(){var e;for(var r=0,i=n.length;r<i;r++){e=n[r];e[2](t)}})}}},promise:{then:function(e,n,i){var o=r();var l=function(n){try{o.resolve((R(e)?e:a)(n))}catch(r){o.reject(r);t(r)}};var c=function(e){try{o.resolve((R(n)?n:f)(e))}catch(r){o.reject(r);t(r)}};var h=function(e){try{o.notify((R(i)?i:a)(e))}catch(n){t(n)}};if(s){s.push([l,c,h])}else{u.then(l,c,h)}return o.promise},"catch":function(e){return this.then(null,e)},"finally":function(e){function t(e,t){var n=r();if(t){n.resolve(e)}else{n.reject(e)}return n.promise}function n(n,r){var i=null;try{i=(e||a)()}catch(s){return t(s,false)}if(J(i)){return i.then(function(){return t(n,r)},function(e){return t(e,false)})}else{return t(n,r)}}return this.then(function(e){return n(e,true)},function(e){return n(e,false)})}}};return l};var i=function(t){if(J(t))return t;return{then:function(n){var i=r();e(function(){i.resolve(n(t))});return i.promise}}};var s=function(e){var t=r();t.reject(e);return t.promise};var o=function(n){return{then:function(i,s){var o=r();e(function(){try{o.resolve((R(s)?s:f)(n))}catch(e){o.reject(e);t(e)}});return o.promise}}};var u=function(n,o,u,l){var c=r(),h;var p=function(e){try{return(R(o)?o:a)(e)}catch(n){t(n);return s(n)}};var d=function(e){try{return(R(u)?u:f)(e)}catch(n){t(n);return s(n)}};var v=function(e){try{return(R(l)?l:a)(e)}catch(n){t(n)}};e(function(){i(n).then(function(e){if(h)return;h=true;c.resolve(i(e).then(p,d,v))},function(e){if(h)return;h=true;c.resolve(d(e))},function(e){if(h)return;c.notify(v(e))})});return c.promise};return{defer:r,reject:s,when:u,all:l}}function Rr(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame;var r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelRequestAnimationFrame;var i=!!n;var s=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,false);return function(){t.cancel(n)}};s.supported=i;return s}]}function Ur(){var e=10;var t=r("$rootScope");var n=null;this.digestTtl=function(t){if(arguments.length){e=t}return e};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,i,s,u){function a(){this.$id=C();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=false;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function l(e){if(f.$$phase){throw t("inprog","{0} already in progress",f.$$phase)}f.$$phase=e}function c(){f.$$phase=null}function h(e,t){var n=s(e);kt(n,t);return n}function p(e,t,n){do{e.$$listenerCount[n]-=t;if(e.$$listenerCount[n]===0){delete e.$$listenerCount[n]}}while(e=e.$parent)}function d(){}a.prototype={constructor:a,$new:function(e){var t,n;if(e){n=new a;n.$root=this.$root;n.$$asyncQueue=this.$$asyncQueue;n.$$postDigestQueue=this.$$postDigestQueue}else{if(!this.$$childScopeClass){this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=C();this.$$childScopeClass=null};this.$$childScopeClass.prototype=this}n=new this.$$childScopeClass}n["this"]=n;n.$parent=this;n.$$prevSibling=this.$$childTail;if(this.$$childHead){this.$$childTail.$$nextSibling=n;this.$$childTail=n}else{this.$$childHead=this.$$childTail=n}return n},$watch:function(e,t,r){var i=this,s=h(e,"watch"),o=i.$$watchers,u={fn:t,last:d,get:s,exp:e,eq:!!r};n=null;if(!R(t)){var a=h(t||M,"listener");u.fn=function(e,t,n){a(n)}}if(typeof e=="string"&&s.constant){var f=u.fn;u.fn=function(e,t,n){f.call(this,e,t,n);nt(o,u)}}if(!o){o=i.$$watchers=[]}o.unshift(u);return function(){nt(o,u);n=null}},$watchCollection:function(e,t){function v(){r=l(n);var e,t,s;if(!B(r)){if(i!==r){i=r;f++}}else if(E(r)){if(i!==c){i=c;d=i.length=0;f++}e=r.length;if(d!==e){f++;i.length=d=e}for(var o=0;o<e;o++){s=i[o]!==i[o]&&r[o]!==r[o];if(!s&&i[o]!==r[o]){f++;i[o]=r[o]}}}else{if(i!==h){i=h={};d=0;f++}e=0;for(t in r){if(r.hasOwnProperty(t)){e++;if(i.hasOwnProperty(t)){s=i[t]!==i[t]&&r[t]!==r[t];if(!s&&i[t]!==r[t]){f++;i[t]=r[t]}}else{d++;i[t]=r[t];f++}}}if(d>e){f++;for(t in i){if(i.hasOwnProperty(t)&&!r.hasOwnProperty(t)){d--;delete i[t]}}}}return f}function m(){if(p){p=false;t(r,r,n)}else{t(r,u,n)}if(a){if(!B(r)){u=r}else if(E(r)){u=new Array(r.length);for(var e=0;e<r.length;e++){u[e]=r[e]}}else{u={};for(var i in r){if(o.call(r,i)){u[i]=r[i]}}}}}var n=this;var r;var i;var u;var a=t.length>1;var f=0;var l=s(e);var c=[];var h={};var p=true;var d=0;return this.$watch(v,m)},$digest:function(){var r,s,o,a,f=this.$$asyncQueue,h=this.$$postDigestQueue,p,v,m=e,g,y,b=this,w=[],E,S,x;l("$digest");u.$$checkUrlChange();n=null;do{v=false;y=b;while(f.length){try{x=f.shift();x.scope.$eval(x.expression)}catch(T){c();i(T)}n=null}e:do{if(a=y.$$watchers){p=a.length;while(p--){try{r=a[p];if(r){if((s=r.get(y))!==(o=r.last)&&!(r.eq?ot(s,o):typeof s==="number"&&typeof o==="number"&&isNaN(s)&&isNaN(o))){v=true;n=r;r.last=r.eq?it(s,null):s;r.fn(s,o===d?s:o,y);if(m<5){E=4-m;if(!w[E])w[E]=[];S=R(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp;S+="; newVal: "+ht(s)+"; oldVal: "+ht(o);w[E].push(S)}}else if(r===n){v=false;break e}}}catch(T){c();i(T)}}}if(!(g=y.$$childHead||y!==b&&y.$$nextSibling)){while(y!==b&&!(g=y.$$nextSibling)){y=y.$parent}}}while(y=g);if((v||f.length)&&!(m--)){c();throw t("infdig","{0} $digest() iterations reached. Aborting!\n"+"Watchers fired in the last 5 iterations: {1}",e,ht(w))}}while(v||f.length);c();while(h.length){try{h.shift()()}catch(T){i(T)}}},$destroy:function(){if(this.$$destroyed)return;var e=this.$parent;this.$broadcast("$destroy");this.$$destroyed=true;if(this===f)return;S(this.$$listenerCount,lt(null,p,this));if(e.$$childHead==this)e.$$childHead=this.$$nextSibling;if(e.$$childTail==this)e.$$childTail=this.$$prevSibling;if(this.$$prevSibling)this.$$prevSibling.$$nextSibling=this.$$nextSibling;if(this.$$nextSibling)this.$$nextSibling.$$prevSibling=this.$$prevSibling;this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null;this.$$listeners={};this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[];this.$destroy=this.$digest=this.$apply=M;this.$on=this.$watch=function(){return M}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e){if(!f.$$phase&&!f.$$asyncQueue.length){u.defer(function(){if(f.$$asyncQueue.length){f.$digest()}})}this.$$asyncQueue.push({scope:this,expression:e})},$$postDigest:function(e){this.$$postDigestQueue.push(e)},$apply:function(e){try{l("$apply");return this.$eval(e)}catch(t){i(t)}finally{c();try{f.$digest()}catch(t){i(t);throw t}}},$on:function(e,t){var n=this.$$listeners[e];if(!n){this.$$listeners[e]=n=[]}n.push(t);var r=this;do{if(!r.$$listenerCount[e]){r.$$listenerCount[e]=0}r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){n[tt(n,t)]=null;p(i,1,e)}},$emit:function(e,t){var n=[],r,s=this,o=false,u={name:e,targetScope:s,stopPropagation:function(){o=true},preventDefault:function(){u.defaultPrevented=true},defaultPrevented:false},a=at([u],arguments,1),f,l;do{r=s.$$listeners[e]||n;u.currentScope=s;for(f=0,l=r.length;f<l;f++){if(!r[f]){r.splice(f,1);f--;l--;continue}try{r[f].apply(null,a)}catch(c){i(c)}}if(o)return u;s=s.$parent}while(s);return u},$broadcast:function(e,t){var n=this,r=n,s=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=true},defaultPrevented:false},u=at([o],arguments,1),a,f,l;while(r=s){o.currentScope=r;a=r.$$listeners[e]||[];for(f=0,l=a.length;f<l;f++){if(!a[f]){a.splice(f,1);f--;l--;continue}try{a[f].apply(null,u)}catch(c){i(c)}}if(!(s=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling)){while(r!==n&&!(s=r.$$nextSibling)){r=r.$parent}}}return o}};var f=new a;return f}]}function zr(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){if(H(t)){e=t;return this}return e};this.imgSrcSanitizationWhitelist=function(e){if(H(e)){t=e;return this}return t};this.$get=function(){return function(r,i){var s=i?t:e;var o;if(!l||l>=8){o=ti(r).href;if(o!==""&&!o.match(s)){return"unsafe:"+o}}return r}}}function Vr(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function $r(e){if(e==="self"){return e}else if(j(e)){if(e.indexOf("***")>-1){throw Wr("iwcard","Illegal sequence *** in string matcher. String: {0}",e)}e=Vr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+e+"$")}else if(U(e)){return new RegExp("^"+e.source+"$")}else{throw Wr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}}function Jr(e){var t=[];if(H(e)){S(e,function(e){t.push($r(e))})}return t}function Kr(){this.SCE_CONTEXTS=Xr;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){if(arguments.length){e=Jr(t)}return e};this.resourceUrlBlacklist=function(e){if(arguments.length){t=Jr(e)}return t};this.$get=["$injector",function(r){function s(e,t){if(e==="self"){return ni(t)}else{return!!e.exec(t.href)}}function o(n){var r=ti(n.toString());var i,o,u=false;for(i=0,o=e.length;i<o;i++){if(s(e[i],r)){u=true;break}}if(u){for(i=0,o=t.length;i<o;i++){if(s(t[i],r)){u=false;break}}}return u}function u(e){var t=function(t){this.$$unwrapTrustedValue=function(){return t}};if(e){t.prototype=new e}t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return t}function l(e,t){var r=f.hasOwnProperty(e)?f[e]:null;if(!r){throw Wr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t)}if(t===null||t===n||t===""){return t}if(typeof t!=="string"){throw Wr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e)}return new r(t)}function c(e){if(e instanceof a){return e.$$unwrapTrustedValue()}else{return e}}function h(e,t){if(t===null||t===n||t===""){return t}var r=f.hasOwnProperty(e)?f[e]:null;if(r&&t instanceof r){return t.$$unwrapTrustedValue()}if(e===Xr.RESOURCE_URL){if(o(t)){return t}else{throw Wr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}}else if(e===Xr.HTML){return i(t)}throw Wr("unsafe","Attempting to use an unsafe value in a safe context.")}var i=function(t){throw Wr("unsafe","Attempting to use an unsafe value in a safe context.")};if(r.has("$sanitize")){i=r.get("$sanitize")}var a=u(),f={};f[Xr.HTML]=u(a);f[Xr.CSS]=u(a);f[Xr.URL]=u(a);f[Xr.JS]=u(a);f[Xr.RESOURCE_URL]=u(f[Xr.URL]);return{trustAs:l,getTrusted:h,valueOf:c}}]}function Qr(){var e=true;this.enabled=function(t){if(arguments.length){e=!!t}return e};this.$get=["$parse","$sniffer","$sceDelegate",function(t,n,r){if(e&&n.msie&&n.msieDocumentMode<8){throw Wr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks "+"mode. You can fix this by adding the text <!doctype html> to the top of your HTML "+"document. See http://docs.angularjs.org/api/ng.$sce for more information.")}var i=st(Xr);i.isEnabled=function(){return e};i.trustAs=r.trustAs;i.getTrusted=r.getTrusted;i.valueOf=r.valueOf;if(!e){i.trustAs=i.getTrusted=function(e,t){return t};i.valueOf=_}i.parseAs=function(n,r){var s=t(r);if(s.literal&&s.constant){return s}else{return function(t,r){return i.getTrusted(n,s(t,r))}}};var o=i.parseAs,u=i.getTrusted,a=i.trustAs;S(Xr,function(e,t){var n=s(t);i[zt("parse_as_"+n)]=function(t){return o(e,t)};i[zt("get_trusted_"+n)]=function(t){return u(e,t)};i[zt("trust_as_"+n)]=function(t){return a(e,t)}});return i}]}function Gr(){this.$get=["$window","$document",function(e,t){var n={},r=A((/android (\d+)/.exec(s((e.navigator||{}).userAgent))||[])[1]),i=/Boxee/i.test((e.navigator||{}).userAgent),o=t[0]||{},u=o.documentMode,a,f=/^(Moz|webkit|O|ms)(?=[A-Z])/,c=o.body&&o.body.style,h=false,p=false,d;if(c){for(var v in c){if(d=f.exec(v)){a=d[0];a=a.substr(0,1).toUpperCase()+a.substr(1);break}}if(!a){a="WebkitOpacity"in c&&"webkit"}h=!!("transition"in c||a+"Transition"in c);p=!!("animation"in c||a+"Animation"in c);if(r&&(!h||!p)){h=j(o.body.style.webkitTransition);p=j(o.body.style.webkitAnimation)}}return{history:!!(e.history&&e.history.pushState&&!(r<4)&&!i),hashchange:"onhashchange"in e&&(!u||u>7),hasEvent:function(e){if(e=="input"&&l==9)return false;if(P(n[e])){var t=o.createElement("div");n[e]="on"+e in t}return n[e]},csp:ut(),vendorPrefix:a,transitions:h,animations:p,android:r,msie:l,msieDocumentMode:u}}]}function Yr(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(e,t,n,r){function s(s,o,u){var a=n.defer(),f=a.promise,l=H(u)&&!u,c;c=t.defer(function(){try{a.resolve(s())}catch(t){a.reject(t);r(t)}finally{delete i[f.$$timeoutId]}if(!l)e.$apply()},o);f.$$timeoutId=c;i[c]=a;return f}var i={};s.cancel=function(e){if(e&&e.$$timeoutId in i){i[e.$$timeoutId].reject("canceled");delete i[e.$$timeoutId];return t.defer.cancel(e.$$timeoutId)}return false};return s}]}function ti(e,t){var n=e;if(l){Zr.setAttribute("href",n);n=Zr.href}Zr.setAttribute("href",n);return{href:Zr.href,protocol:Zr.protocol?Zr.protocol.replace(/:$/,""):"",host:Zr.host,search:Zr.search?Zr.search.replace(/^\?/,""):"",hash:Zr.hash?Zr.hash.replace(/^#/,""):"",hostname:Zr.hostname,port:Zr.port,pathname:Zr.pathname.charAt(0)==="/"?Zr.pathname:"/"+Zr.pathname}}function ni(e){var t=j(e)?ti(e):e;return t.protocol===ei.protocol&&t.host===ei.host}function ri(){this.$get=D(e)}function ii(e){function n(r,i){if(B(r)){var s={};S(r,function(e,t){s[t]=n(t,e)});return s}else{return e.factory(r+t,i)}}var t="Filter";this.register=n;this.$get=["$injector",function(e){return function(n){return e.get(n+t)}}];n("currency",oi);n("date",yi);n("filter",si);n("json",bi);n("limitTo",Si);n("lowercase",wi);n("number",ui);n("orderBy",xi);n("uppercase",Ei)}function si(){return function(e,t,n){if(!q(e))return e;var r=typeof n,i=[];i.check=function(e){for(var t=0;t<i.length;t++){if(!i[t](e)){return false}}return true};if(r!=="function"){if(r==="boolean"&&n){n=function(e,t){return g.equals(e,t)}}else{n=function(e,t){if(e&&t&&typeof e==="object"&&typeof t==="object"){for(var r in e){if(r.charAt(0)!=="$"&&o.call(e,r)&&n(e[r],t[r])){return true}}return false}t=(""+t).toLowerCase();return(""+e).toLowerCase().indexOf(t)>-1}}}var s=function(e,t){if(typeof t=="string"&&t.charAt(0)==="!"){return!s(e,t.substr(1))}switch(typeof e){case"boolean":case"number":case"string":return n(e,t);case"object":switch(typeof t){case"object":return n(e,t);default:for(var r in e){if(r.charAt(0)!=="$"&&s(e[r],t)){return true}}break}return false;case"array":for(var i=0;i<e.length;i++){if(s(e[i],t)){return true}}return false;default:return false}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(var u in t){(function(e){if(typeof t[e]==="undefined")return;i.push(function(n){return s(e=="$"?n:n&&n[e],t[e])})})(u)}break;case"function":i.push(t);break;default:return e}var a=[];for(var f=0;f<e.length;f++){var l=e[f];if(i.check(l)){a.push(l)}}return a}}function oi(e){var t=e.NUMBER_FORMATS;return function(e,n){if(P(n))n=t.CURRENCY_SYM;return fi(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function ui(e){var t=e.NUMBER_FORMATS;return function(e,n){return fi(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function fi(e,t,n,r,i){if(e==null||!isFinite(e)||B(e))return"";var s=e<0;e=Math.abs(e);var o=e+"",u="",a=[];var f=false;if(o.indexOf("e")!==-1){var l=o.match(/([\d\.]+)e(-?)(\d+)/);if(l&&l[2]=="-"&&l[3]>i+1){o="0";e=0}else{u=o;f=true}}if(!f){var c=(o.split(ai)[1]||"").length;if(P(i)){i=Math.min(Math.max(t.minFrac,c),t.maxFrac)}e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+ -i);if(e===0){s=false}var h=(""+e).split(ai);var p=h[0];h=h[1]||"";var d,v=0,m=t.lgSize,g=t.gSize;if(p.length>=m+g){v=p.length-m;for(d=0;d<v;d++){if((v-d)%g===0&&d!==0){u+=n}u+=p.charAt(d)}}for(d=v;d<p.length;d++){if((p.length-d)%m===0&&d!==0){u+=n}u+=p.charAt(d)}while(h.length<i){h+="0"}if(i&&i!=="0")u+=r+h.substr(0,i)}else{if(i>0&&e>-1&&e<1){u=e.toFixed(i)}}a.push(s?t.negPre:t.posPre);a.push(u);a.push(s?t.negSuf:t.posSuf);return a.join("")}function li(e,t,n){var r="";if(e<0){r="-";e=-e}e=""+e;while(e.length<t)e="0"+e;if(n)e=e.substr(e.length-t);return r+e}function ci(e,t,n,r){n=n||0;return function(i){var s=i["get"+e]();if(n>0||s>-n)s+=n;if(s===0&&n==-12)s=12;return li(s,t,r)}}function hi(e,t){return function(n,r){var i=n["get"+e]();var s=u(t?"SHORT"+e:e);return r[s][i]}}function pi(e){var t=-1*e.getTimezoneOffset();var n=t>=0?"+":"";n+=li(Math[t>0?"floor":"ceil"](t/60),2)+li(Math.abs(t%60),2);return n}function di(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function yi(e){function n(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,s=0,o=n[8]?r.setUTCFullYear:r.setFullYear,u=n[8]?r.setUTCHours:r.setHours;if(n[9]){i=A(n[9]+n[10]);s=A(n[9]+n[11])}o.call(r,A(n[1]),A(n[2])-1,A(n[3]));var a=A(n[4]||0)-i;var f=A(n[5]||0)-s;var l=A(n[6]||0);var c=Math.round(parseFloat("0."+(n[7]||0))*1e3);u.call(r,a,f,l,c);return r}return e}var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(t,r){var i="",s=[],o,u;r=r||"mediumDate";r=e.DATETIME_FORMATS[r]||r;if(j(t)){t=gi.test(t)?A(t):n(t)}if(F(t)){t=new Date(t)}if(!I(t)){return t}while(r){u=mi.exec(r);if(u){s=at(s,u,1);r=s.pop()}else{s.push(r);r=null}}S(s,function(n){o=vi[n];i+=o?o(t,e.DATETIME_FORMATS):n.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return i}}function bi(){return function(e){return ht(e,true)}}function Si(){return function(e,t){if(!q(e)&&!j(e))return e;if(Math.abs(Number(t))===Infinity){t=Number(t)}else{t=A(t)}if(j(e)){if(t){return t>=0?e.slice(0,t):e.slice(t,e.length)}else{return""}}var n=[],r,i;if(t>e.length)t=e.length;else if(t<-e.length)t=-e.length;if(t>0){r=0;i=t}else{r=e.length+t;i=e.length}for(;r<i;r++){n.push(e[r])}return n}}function xi(e){return function(t,n,r){function o(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(i!==0)return i}return 0}function u(e,t){return dt(t)?function(t,n){return e(n,t)}:e}function a(e,t){var n=typeof e;var r=typeof t;if(n==r){if(I(e)&&I(t)){e=e.valueOf();t=t.valueOf()}if(n=="string"){e=e.toLowerCase();t=t.toLowerCase()}if(e===t)return 0;return e<t?-1:1}else{return n<r?-1:1}}if(!E(t))return t;if(!n)return t;n=q(n)?n:[n];n=Y(n,function(t){var n=false,r=t||_;if(j(t)){if(t.charAt(0)=="+"||t.charAt(0)=="-"){n=t.charAt(0)=="-";t=t.substring(1)}r=e(t);if(r.constant){var i=r();return u(function(e,t){return a(e[i],t[i])},n)}}return u(function(e,t){return a(r(e),r(t))},n)});var i=[];for(var s=0;s<t.length;s++){i.push(t[s])}return i.sort(u(o,r))}}function Ti(e){if(R(e)){e={link:e}}e.restrict=e.restrict||"AC";return D(e)}function Li(e,t,n,r){function f(t,n){n=n?"-"+Tt(n,"-"):"";r.setClass(e,(t?$i:Ji)+n,(t?Ji:$i)+n)}var i=this,s=e.parent().controller("form")||ki,o=0,u=i.$error={},a=[];i.$name=t.name||t.ngForm;i.$dirty=false;i.$pristine=true;i.$valid=true;i.$invalid=false;s.$addControl(i);e.addClass(Ki);f(true);i.$addControl=function(e){Lt(e.$name,"input");a.push(e);if(e.$name){i[e.$name]=e}};i.$removeControl=function(e){if(e.$name&&i[e.$name]===e){delete i[e.$name]}S(u,function(t,n){i.$setValidity(n,true,e)});nt(a,e)};i.$setValidity=function(e,t,n){var r=u[e];if(t){if(r){nt(r,n);if(!r.length){o--;if(!o){f(t);i.$valid=true;i.$invalid=false}u[e]=false;f(true,e);s.$setValidity(e,true,i)}}}else{if(!o){f(t)}if(r){if(et(r,n))return}else{u[e]=r=[];o++;f(false,e);s.$setValidity(e,false,i)}r.push(n);i.$valid=false;i.$invalid=true}};i.$setDirty=function(){r.removeClass(e,Ki);r.addClass(e,Qi);i.$dirty=true;i.$pristine=false;s.$setDirty()};i.$setPristine=function(){r.removeClass(e,Qi);r.addClass(e,Ki);i.$dirty=false;i.$pristine=true;S(a,function(e){e.$setPristine()})}}function Bi(e,t,r,i){e.$setValidity(t,r);return r?i:n}function ji(e,t){var n,r;if(t){for(n=0;n<t.length;++n){r=t[n];if(e[r]){return true}}}return false}function Fi(e,t,n,r,i){if(B(i)){e.$$hasNativeValidators=true;var s=function(s){if(!e.$error[t]&&!ji(i,r)&&ji(i,n)){e.$setValidity(t,false);return}return s};e.$parsers.push(s)}}function Ii(e,t,n,o,u,a){var f=t.prop(i);var c=t[0].placeholder,h={};var p=s(t[0].type);o.$$validityState=f;if(!u.android){var d=false;t.on("compositionstart",function(e){d=true});t.on("compositionend",function(){d=false;v()})}var v=function(r){if(d)return;var i=t.val();if(l&&(r||h).type==="input"&&t[0].placeholder!==c){c=t[0].placeholder;return}if(p!=="password"&&dt(n.ngTrim||"T")){i=K(i)}var s=f&&o.$$hasNativeValidators;if(o.$viewValue!==i||i===""&&s){if(e.$root.$$phase){o.$setViewValue(i)}else{e.$apply(function(){o.$setViewValue(i)})}}};if(u.hasEvent("input")){t.on("input",v)}else{var m;var g=function(){if(!m){m=a.defer(function(){v();m=null})}};t.on("keydown",function(e){var t=e.keyCode;if(t===91||15<t&&t<19||37<=t&&t<=40)return;g()});if(u.hasEvent("paste")){t.on("paste cut",g)}}t.on("change",v);o.$render=function(){t.val(o.$isEmpty(o.$viewValue)?"":o.$viewValue)};var y=n.ngPattern,b,w;if(y){var E=function(e,t){return Bi(o,"pattern",o.$isEmpty(t)||e.test(t),t)};w=y.match(/^\/(.*)\/([gim]*)$/);if(w){y=new RegExp(w[1],w[2]);b=function(e){return E(y,e)}}else{b=function(n){var i=e.$eval(y);if(!i||!i.test){throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",y,i,vt(t))}return E(i,n)}}o.$formatters.push(b);o.$parsers.push(b)}if(n.ngMinlength){var S=A(n.ngMinlength);var x=function(e){return Bi(o,"minlength",o.$isEmpty(e)||e.length>=S,e)};o.$parsers.push(x);o.$formatters.push(x)}if(n.ngMaxlength){var T=A(n.ngMaxlength);var N=function(e){return Bi(o,"maxlength",o.$isEmpty(e)||e.length<=T,e)};o.$parsers.push(N);o.$formatters.push(N)}}function Ri(e,t,r,i,s,o){Ii(e,t,r,i,s,o);i.$parsers.push(function(e){var t=i.$isEmpty(e);if(t||Pi.test(e)){i.$setValidity("number",true);return e===""?null:t?e:parseFloat(e)}else{i.$setValidity("number",false);return n}});Fi(i,"number",qi,null,i.$$validityState);i.$formatters.push(function(e){return i.$isEmpty(e)?"":""+e});if(r.min){var u=function(e){var t=parseFloat(r.min);return Bi(i,"min",i.$isEmpty(e)||e>=t,e)};i.$parsers.push(u);i.$formatters.push(u)}if(r.max){var a=function(e){var t=parseFloat(r.max);return Bi(i,"max",i.$isEmpty(e)||e<=t,e)};i.$parsers.push(a);i.$formatters.push(a)}i.$formatters.push(function(e){return Bi(i,"number",i.$isEmpty(e)||F(e),e)})}function Ui(e,t,n,r,i,s){Ii(e,t,n,r,i,s);var o=function(e){return Bi(r,"url",r.$isEmpty(e)||_i.test(e),e)};r.$formatters.push(o);r.$parsers.push(o)}function zi(e,t,n,r,i,s){Ii(e,t,n,r,i,s);var o=function(e){return Bi(r,"email",r.$isEmpty(e)||Di.test(e),e)};r.$formatters.push(o);r.$parsers.push(o)}function Wi(e,t,n,r){if(P(n.name)){t.attr("name",C())}t.on("click",function(){if(t[0].checked){e.$apply(function(){r.$setViewValue(n.value)})}});r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue};n.$observe("value",r.$render)}function Xi(e,t,n,r){var i=n.ngTrueValue,s=n.ngFalseValue;if(!j(i))i=true;if(!j(s))s=false;t.on("click",function(){e.$apply(function(){r.$setViewValue(t[0].checked)})});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(e){return e!==i};r.$formatters.push(function(e){return e===i});r.$parsers.push(function(e){return e?i:s})}function us(e,t){e="ngClass"+e;return["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){var i=e[r];for(var s=0;s<t.length;s++){if(i==t[s])continue e}n.push(i)}return n}function i(e){if(q(e)){return e}else if(j(e)){return e.split(" ")}else if(B(e)){var t=[],n=0;S(e,function(e,n){if(e){t=t.concat(n.split(" "))}});return t}return e}return{restrict:"AC",link:function(s,o,u){function f(e){var t=c(e,1);u.$addClass(t)}function l(e){var t=c(e,-1);u.$removeClass(t)}function c(e,t){var n=o.data("$classCounts")||{};var r=[];S(e,function(e){if(t>0||n[e]){n[e]=(n[e]||0)+t;if(n[e]===+(t>0)){r.push(e)}}});o.data("$classCounts",n);return r.join(" ")}function h(e,t){var i=r(t,e);var s=r(e,t);s=c(s,-1);i=c(i,1);if(i.length===0){n.removeClass(o,s)}else if(s.length===0){n.addClass(o,i)}else{n.setClass(o,i,s)}}function p(e){if(t===true||s.$index%2===t){var n=i(e||[]);if(!a){f(n)}else if(!ot(e,a)){var r=i(a);h(r,n)}}a=st(e)}var a;s.$watch(u[e],p,true);u.$observe("class",function(t){p(s.$eval(u[e]))});if(e!=="ngClass"){s.$watch("$index",function(n,r){var o=n&1;if(o!==(r&1)){var a=i(s.$eval(u[e]));o===t?f(a):l(a)}})}}}}]}var i="validity";var s=function(e){return j(e)?e.toLowerCase():e};var o=Object.prototype.hasOwnProperty;var u=function(e){return j(e)?e.toUpperCase():e};var a=function(e){return j(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)|32)}):e};var f=function(e){return j(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&~32)}):e};if("i"!=="I".toLowerCase()){s=a;u=f}var l,c,h,p=[].slice,d=[].push,v=Object.prototype.toString,m=r("ng"),g=e.angular||(e.angular={}),y,b,w=["0","0","0"];l=A((/msie (\d+)/.exec(s(navigator.userAgent))||[])[1]);if(isNaN(l)){l=A((/trident\/.*; rv:(\d+)/.exec(s(navigator.userAgent))||[])[1])}M.$inject=[];_.$inject=[];var q=function(){if(!R(Array.isArray)){return function(e){return v.call(e)==="[object Array]"}}return Array.isArray}();var K=function(){if(!String.prototype.trim){return function(e){return j(e)?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e}}return function(e){return j(e)?e.trim():e}}();if(l<9){b=function(e){e=e.nodeName?e:e[0];return e.scopeName&&e.scopeName!="HTML"?u(e.scopeName+":"+e.nodeName):e.nodeName}}else{b=function(e){return e.nodeName?e.nodeName:e[0].nodeName}}var ut=function(){if(H(ut.isActive_))return ut.isActive_;var e=!!(t.querySelector("[ng-csp]")||t.querySelector("[data-ng-csp]"));if(!e){try{new Function("")}catch(n){e=true}}return ut.isActive_=e};var xt=/[A-Z]/g;var _t={full:"1.2.25",major:1,minor:2,dot:25,codeName:"hypnotic-gesticulation"};Zt.expando="ng339";var Pt=Zt.cache={},Ht=1,Bt=e.document.addEventListener?function(e,t,n){e.addEventListener(t,n,false)}:function(e,t,n){e.attachEvent("on"+t,n)},jt=e.document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,false)}:function(e,t,n){e.detachEvent("on"+t,n)};var Ft=Zt._data=function(e){return this.cache[e[this.expando]]||{}};var qt=/([\:\-\_]+(.))/g;var Rt=/^moz([A-Z])/;var Ut=r("jqLite");var Xt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;var Vt=/<|&#?\w+;/;var $t=/<([\w:]+)/;var Jt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi;var Kt={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Kt.optgroup=Kt.option;Kt.tbody=Kt.tfoot=Kt.colgroup=Kt.caption=Kt.thead;Kt.th=Kt.td;var dn=Zt.prototype={ready:function(n){function i(){if(r)return;r=true;n()}var r=false;if(t.readyState==="complete"){setTimeout(i)}else{this.on("DOMContentLoaded",i);Zt(e).on("load",i)}},toString:function(){var e=[];S(this,function(t){e.push(""+t)});return"["+e.join(", ")+"]"},eq:function(e){return e>=0?c(this[e]):c(this[this.length+e])},length:0,push:d,sort:[].sort,splice:[].splice};var vn={};S("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){vn[s(e)]=e});var mn={};S("input,select,option,textarea,button,form,details".split(","),function(e){mn[u(e)]=true});S({data:on,removeData:rn},function(e,t){Zt[t]=e});S({data:on,inheritedData:hn,scope:function(e){return c.data(e,"$scope")||hn(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return c.data(e,"$isolateScope")||c.data(e,"$isolateScopeNoTemplate")},controller:cn,injector:function(e){return hn(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:un,css:function(e,t,r){t=zt(t);if(H(r)){e.style[t]=r}else{var i;if(l<=8){i=e.currentStyle&&e.currentStyle[t];if(i==="")i="auto"}i=i||e.style[t];if(l<=8){i=i===""?n:i}return i}},attr:function(e,t,r){var i=s(t);if(vn[i]){if(H(r)){if(!!r){e[t]=true;e.setAttribute(t,i)}else{e[t]=false;e.removeAttribute(i)}}else{return e[t]||(e.attributes.getNamedItem(t)||M).specified?i:n}}else if(H(r)){e.setAttribute(t,r)}else if(e.getAttribute){var o=e.getAttribute(t,2);return o===null?n:o}},prop:function(e,t,n){if(H(n)){e[t]=n}else{return e[t]}},text:function(){function t(t,n){var r=e[t.nodeType];if(P(n)){return r?t[r]:""}t[r]=n}var e=[];if(l<9){e[1]="innerText";e[3]="nodeValue"}else{e[1]=e[3]="textContent"}t.$dv="";return t}(),val:function(e,t){if(P(t)){if(b(e)==="SELECT"&&e.multiple){var n=[];S(e.options,function(e){if(e.selected){n.push(e.value||e.text)}});return n.length===0?null:n}return e.value}e.value=t},html:function(e,t){if(P(t)){return e.innerHTML}for(var n=0,r=e.childNodes;n<r.length;n++){tn(r[n])}e.innerHTML=t},empty:pn},function(e,t){Zt.prototype[t]=function(t,r){var i,s;var o=this.length;if(e!==pn&&(e.length==2&&e!==un&&e!==cn?t:r)===n){if(B(t)){for(i=0;i<o;i++){if(e===on){e(this[i],t)}else{for(s in t){e(this[i],s,t[s])}}}return this}else{var u=e.$dv;var a=u===n?Math.min(o,1):o;for(var f=0;f<a;f++){var l=e(this[f],t,r);u=u?u+l:l}return u}}else{for(i=0;i<o;i++){e(this[i],t,r)}return this}}});S({removeData:rn,dealoc:tn,on:function Hs(e,n,r,i){if(H(i))throw Ut("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var s=sn(e,"events"),o=sn(e,"handle");if(!s)sn(e,"events",s={});if(!o)sn(e,"handle",o=yn(e,s));S(n.split(" "),function(n){var i=s[n];if(!i){if(n=="mouseenter"||n=="mouseleave"){var u=t.body.contains||t.body.compareDocumentPosition?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16))}:function(e,t){if(t){while(t=t.parentNode){if(t===e){return true}}}return false};s[n]=[];var a={mouseleave:"mouseout",mouseenter:"mouseover"};Hs(e,a[n],function(e){var t=this,r=e.relatedTarget;if(!r||r!==t&&!u(t,r)){o(e,n)}})}else{Bt(e,n,o);s[n]=[]}i=s[n]}i.push(r)})},off:nn,one:function(e,t,n){e=c(e);e.on(t,function r(){e.off(t,n);e.off(t,r)});e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;tn(e);S(new Zt(t),function(t){if(n){r.insertBefore(t,n.nextSibling)}else{r.replaceChild(t,e)}n=t})},children:function(e){var t=[];S(e.childNodes,function(e){if(e.nodeType===1)t.push(e)});return t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){S(new Zt(t),function(t){if(e.nodeType===1||e.nodeType===11){e.appendChild(t)}})},prepend:function(e,t){if(e.nodeType===1){var n=e.firstChild;S(new Zt(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=c(t)[0];var n=e.parentNode;if(n){n.replaceChild(t,e)}t.appendChild(e)},remove:function(e){tn(e);var t=e.parentNode;if(t)t.removeChild(e)},after:function(e,t){var n=e,r=e.parentNode;S(new Zt(t),function(e){r.insertBefore(e,n.nextSibling);n=e})},addClass:fn,removeClass:an,toggleClass:function(e,t,n){if(t){S(t.split(" "),function(t){var r=n;if(P(r)){r=!un(e,t)}(r?fn:an)(e,t)})}},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},next:function(e){if(e.nextElementSibling){return e.nextElementSibling}var t=e.nextSibling;while(t!=null&&t.nodeType!==1){t=t.nextSibling}return t},find:function(e,t){if(e.getElementsByTagName){return e.getElementsByTagName(t)}else{return[]}},clone:en,triggerHandler:function(e,t,n){var r,i,s;var o=t.type||t;var u=(sn(e,"events")||{})[o];if(u){r={preventDefault:function(){this.defaultPrevented=true},isDefaultPrevented:function(){return this.defaultPrevented===true},stopPropagation:M,type:o,target:e};if(t.type){r=L(r,t)}i=st(u);s=n?[r].concat(n):[r];S(i,function(t){t.apply(e,s)})}}},function(e,t){Zt.prototype[t]=function(t,n,r){var i;for(var s=0;s<this.length;s++){if(P(i)){i=e(this[s],t,n,r);if(H(i)){i=c(i)}}else{ln(i,e(this[s],t,n,r))}}return H(i)?i:this};Zt.prototype.bind=Zt.prototype.on;Zt.prototype.unbind=Zt.prototype.off});wn.prototype={put:function(e,t){this[bn(e,this.nextUid)]=t},get:function(e){return this[bn(e,this.nextUid)]},remove:function(e){var t=this[e=bn(e,this.nextUid)];delete this[e];return t}};var En=/^function\s*[^\(]*\(\s*([^\)]*)\)/m;var Sn=/,/;var xn=/^\s*(_?)(\S+?)\1\s*$/;var Tn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;var Nn=r("$injector");var An=r("$animate");var On=["$provide",function(e){this.$$selectors={};this.register=function(t,n){var r=t+"-animation";if(t&&t.charAt(0)!=".")throw An("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r;e.factory(r,n)};this.classNameFilter=function(e){if(arguments.length===1){this.$$classNameFilter=e instanceof RegExp?e:null}return this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(e,t){function n(e){e&&t(e)}return{enter:function(e,t,r,i){if(r){r.after(e)}else{if(!t||!t[0]){t=r.parent()}t.append(e)}n(i)},leave:function(e,t){e.remove();n(t)},move:function(e,t,n,r){this.enter(e,t,n,r)},addClass:function(e,t,r){t=j(t)?t:q(t)?t.join(" "):"";S(e,function(e){fn(e,t)});n(r)},removeClass:function(e,t,r){t=j(t)?t:q(t)?t.join(" "):"";S(e,function(e){an(e,t)});n(r)},setClass:function(e,t,r,i){S(e,function(e){fn(e,t);an(e,r)});n(i)},enabled:M}}]}];var Bn=r("$compile");jn.$inject=["$provide","$$sanitizeUriProvider"];var Fn=/^(x[\:\-_]|data[\:\-_])/i;var er=r("$interpolate");var ir=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,sr={http:80,https:443,ftp:21};var or=r("$location");mr.prototype=vr.prototype=dr.prototype={$$html5:false,$$replace:false,absUrl:gr("$$absUrl"),url:function(e){if(P(e))return this.$$url;var t=ir.exec(e);if(t[1])this.path(decodeURIComponent(t[1]));if(t[2]||t[1])this.search(t[3]||"");this.hash(t[5]||"");return this},protocol:gr("$$protocol"),host:gr("$$host"),port:gr("$$port"),path:yr("$$path",function(e){e=e?e.toString():"";return e.charAt(0)=="/"?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(j(e)||F(e)){e=e.toString();this.$$search=gt(e)}else if(B(e)){S(e,function(t,n){if(t==null)delete e[n]});this.$$search=e}else{throw or("isrcharg","The first argument of the `$location#search()` call must be a string or an object.")}break;default:if(P(t)||t===null){delete this.$$search[e]}else{this.$$search[e]=t}}this.$$compose();return this},hash:yr("$$hash",function(e){return e?e.toString():""}),replace:function(){this.$$replace=true;return this}};var Er=r("$parse");var Sr={};var xr;var Cr=Function.prototype.call;var kr=Function.prototype.apply;var Lr=Function.prototype.bind;var Or={"null":function(){return null},"true":function(){return true},"false":function(){return false},"undefined":M,"+":function(e,t,r,i){r=r(e,t);i=i(e,t);if(H(r)){if(H(i)){return r+i}return r}return H(i)?i:n},"-":function(e,t,n,r){n=n(e,t);r=r(e,t);return(H(n)?n:0)-(H(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"^":function(e,t,n,r){return n(e,t)^r(e,t)},"=":M,"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"&":function(e,t,n,r){return n(e,t)&r(e,t)},"|":function(e,t,n,r){return r(e,t)(e,t,n(e,t))},"!":function(e,t,n){return!n(e,t)}};var Mr={n:"\n",f:"\f",r:"\r",t:" ",v:"","'":"'",'"':'"'};var _r=function(e){this.options=e};_r.prototype={constructor:_r,lex:function(e){this.text=e;this.index=0;this.ch=n;this.lastCh=":";this.tokens=[];while(this.index<this.text.length){this.ch=this.text.charAt(this.index);if(this.is("\"'")){this.readString(this.ch)}else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek())){this.readNumber()}else if(this.isIdent(this.ch)){this.readIdent()}else if(this.is("(){}[].,;:?")){this.tokens.push({index:this.index,text:this.ch});this.index++}else if(this.isWhitespace(this.ch)){this.index++;continue}else{var t=this.ch+this.peek();var r=t+this.peek(2);var i=Or[this.ch];var s=Or[t];var o=Or[r];if(o){this.tokens.push({index:this.index,text:r,fn:o});this.index+=3}else if(s){this.tokens.push({index:this.index,text:t,fn:s});this.index+=2}else if(i){this.tokens.push({index:this.index,text:this.ch,fn:i});this.index+=1}else{this.throwError("Unexpected next character ",this.index,this.index+1)}}this.lastCh=this.ch}return this.tokens},is:function(e){return e.indexOf(this.ch)!==-1},was:function(e){return e.indexOf(this.lastCh)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):false},isNumber:function(e){return"0"<=e&&e<="9"},isWhitespace:function(e){return e===" "||e==="\r"||e===" "||e==="\n"||e===""||e===" "},isIdent:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||e==="$"},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=H(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Er("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){var e="";var t=this.index;while(this.index<this.text.length){var n=s(this.text.charAt(this.index));if(n=="."||this.isNumber(n)){e+=n}else{var r=this.peek();if(n=="e"&&this.isExpOperator(r)){e+=n}else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&e.charAt(e.length-1)=="e"){e+=n}else if(this.isExpOperator(n)&&(!r||!this.isNumber(r))&&e.charAt(e.length-1)=="e"){this.throwError("Invalid exponent")}else{break}}this.index++}e=1*e;this.tokens.push({index:t,text:e,literal:true,constant:true,fn:function(){return e}})},readIdent:function(){var e=this;var t="";var n=this.index;var r,i,s,o;while(this.index<this.text.length){o=this.text.charAt(this.index);if(o==="."||this.isIdent(o)||this.isNumber(o)){if(o===".")r=this.index;t+=o}else{break}this.index++}if(r){i=this.index;while(i<this.text.length){o=this.text.charAt(i);if(o==="("){s=t.substr(r-n+1);t=t.substr(0,r-n);this.index=i;break}if(this.isWhitespace(o)){i++}else{break}}}var u={index:n,text:t};if(Or.hasOwnProperty(t)){u.fn=Or[t];u.literal=true;u.constant=true}else{var a=jr(t,this.options,this.text);u.fn=L(function(e,t){return a(e,t)},{assign:function(n,r){return Pr(n,t,r,e.text,e.options)}})}this.tokens.push(u);if(s){this.tokens.push({index:r,text:"."});this.tokens.push({index:r+1,text:s})}},readString:function(e){var t=this.index;this.index++;var n="";var r=e;var i=false;while(this.index<this.text.length){var s=this.text.charAt(this.index);r+=s;if(i){if(s==="u"){var o=this.text.substring(this.index+1,this.index+5);if(!o.match(/[\da-f]{4}/i))this.throwError("Invalid unicode escape [\\u"+o+"]");this.index+=4;n+=String.fromCharCode(parseInt(o,16))}else{var u=Mr[s];n=n+(u||s)}i=false}else if(s==="\\"){i=true}else if(s===e){this.index++;this.tokens.push({index:t,text:r,string:n,literal:true,constant:true,fn:function(){return n}});return}else{n+=s}this.index++}this.throwError("Unterminated quote",t)}};var Dr=function(e,t,n){this.lexer=e;this.$filter=t;this.options=n};Dr.ZERO=L(function(){return 0},{constant:true});Dr.prototype={constructor:Dr,parse:function(e){this.text=e;this.tokens=this.lexer.lex(e);var t=this.statements();if(this.tokens.length!==0){this.throwError("is an unexpected token",this.tokens[0])}t.literal=!!t.literal;t.constant=!!t.constant;return t},primary:function(){var e;if(this.expect("(")){e=this.filterChain();this.consume(")")}else if(this.expect("[")){e=this.arrayDeclaration()}else if(this.expect("{")){e=this.object()}else{var t=this.expect();e=t.fn;if(!e){this.throwError("not a primary expression",t)}e.literal=!!t.literal;e.constant=!!t.constant}var n,r;while(n=this.expect("(","[",".")){if(n.text==="("){e=this.functionCall(e,r);r=null}else if(n.text==="["){r=e;e=this.objectIndex(e)}else if(n.text==="."){r=e;e=this.fieldAccess(e)}else{this.throwError("IMPOSSIBLE")}}return e},throwError:function(e,t){throw Er("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},peekToken:function(){if(this.tokens.length===0)throw Er("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){if(this.tokens.length>0){var i=this.tokens[0];var s=i.text;if(s===e||s===t||s===n||s===r||!e&&!t&&!n&&!r){return i}}return false},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);if(i){this.tokens.shift();return i}return false},consume:function(e){if(!this.expect(e)){this.throwError("is unexpected, expecting ["+e+"]",this.peek())}},unaryFn:function(e,t){return L(function(n,r){return e(n,r,t)},{constant:t.constant})},ternaryFn:function(e,t,n){return L(function(r,i){return e(r,i)?t(r,i):n(r,i)},{constant:e.constant&&t.constant&&n.constant})},binaryFn:function(e,t,n){return L(function(r,i){return t(r,i,e,n)},{constant:e.constant&&n.constant})},statements:function(){var e=[];while(true){if(this.tokens.length>0&&!this.peek("}",")",";","]"))e.push(this.filterChain());if(!this.expect(";")){return e.length===1?e[0]:function(t,n){var r;for(var i=0;i<e.length;i++){var s=e[i];if(s){r=s(t,n)}}return r}}}},filterChain:function(){var e=this.expression();var t;while(true){if(t=this.expect("|")){e=this.binaryFn(e,t.fn,this.filter())}else{return e}}},filter:function(){var e=this.expect();var t=this.$filter(e.text);var n=[];while(true){if(e=this.expect(":")){n.push(this.expression())}else{var r=function(e,r,i){var s=[i];for(var o=0;o<n.length;o++){s.push(n[o](e,r))}return t.apply(e,s)};return function(){return r}}}},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();var t;var n;if(n=this.expect("=")){if(!e.assign){this.throwError("implies assignment but ["+this.text.substring(0,n.index)+"] can not be assigned to",n)}t=this.ternary();return function(n,r){return e.assign(n,t(n,r),r)}}return e},ternary:function(){var e=this.logicalOR();var t;var n;if(n=this.expect("?")){t=this.assignment();if(n=this.expect(":")){return this.ternaryFn(e,t,this.assignment())}else{this.throwError("expected :",n)}}else{return e}},logicalOR:function(){var e=this.logicalAND();var t;while(true){if(t=this.expect("||")){e=this.binaryFn(e,t.fn,this.logicalAND())}else{return e}}},logicalAND:function(){var e=this.equality();var t;if(t=this.expect("&&")){e=this.binaryFn(e,t.fn,this.logicalAND())}return e},equality:function(){var e=this.relational();var t;if(t=this.expect("==","!=","===","!==")){e=this.binaryFn(e,t.fn,this.equality())}return e},relational:function(){var e=this.additive();var t;if(t=this.expect("<",">","<=",">=")){e=this.binaryFn(e,t.fn,this.relational())}return e},additive:function(){var e=this.multiplicative();var t;while(t=this.expect("+","-")){e=this.binaryFn(e,t.fn,this.multiplicative())}return e},multiplicative:function(){var e=this.unary();var t;while(t=this.expect("*","/","%")){e=this.binaryFn(e,t.fn,this.unary())}return e},unary:function(){var e;if(this.expect("+")){return this.primary()}else if(e=this.expect("-")){return this.binaryFn(Dr.ZERO,e.fn,this.unary())}else if(e=this.expect("!")){return this.unaryFn(e.fn,this.unary())}else{return this.primary()}},fieldAccess:function(e){var t=this;var n=this.expect().text;var r=jr(n,this.options,this.text);return L(function(t,n,i){return r(i||e(t,n))},{assign:function(r,i,s){var o=e(r,s);if(!o)e.assign(r,o={});return Pr(o,n,i,t.text,t.options)}})},objectIndex:function(e){var t=this;var r=this.expression();this.consume("]");return L(function(i,s){var o=e(i,s),u=r(i,s),a,f;Tr(u,t.text);if(!o)return n;a=Nr(o[u],t.text);if(a&&a.then&&t.options.unwrapPromises){f=a;if(!("$$v"in a)){f.$$v=n;f.then(function(e){f.$$v=e})}a=a.$$v}return a},{assign:function(n,i,s){var o=Tr(r(n,s),t.text);var u=Nr(e(n,s),t.text);if(!u)e.assign(n,u={});return u[o]=i}})},functionCall:function(e,t){var n=[];if(this.peekToken().text!==")"){do{n.push(this.expression())}while(this.expect(","))}this.consume(")");var r=this;return function(i,s){var o=[];var u=t?t(i,s):i;for(var a=0;a<n.length;a++){o.push(Nr(n[a](i,s),r.text))}var f=e(i,s,u)||M;Nr(u,r.text);Ar(f,r.text);var l=f.apply?f.apply(u,o):f(o[0],o[1],o[2],o[3],o[4]);return Nr(l,r.text)}},arrayDeclaration:function(){var e=[];var t=true;if(this.peekToken().text!=="]"){do{if(this.peek("]")){break}var n=this.expression();e.push(n);if(!n.constant){t=false}}while(this.expect(","))}this.consume("]");return L(function(t,n){var r=[];for(var i=0;i<e.length;i++){r.push(e[i](t,n))}return r},{literal:true,constant:t})},object:function(){var e=[];var t=true;if(this.peekToken().text!=="}"){do{if(this.peek("}")){break}var n=this.expect(),r=n.string||n.text;this.consume(":");var i=this.expression();e.push({key:r,value:i});if(!i.constant){t=false}}while(this.expect(","))}this.consume("}");return L(function(t,n){var r={};for(var i=0;i<e.length;i++){var s=e[i];r[s.key]=s.value(t,n)}return r},{literal:true,constant:t})}};var Hr={};var Wr=r("$sce");var Xr={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};var Zr=t.createElement("a");var ei=ti(e.location.href,true);ii.$inject=["$provide"];oi.$inject=["$locale"];ui.$inject=["$locale"];var ai=".";var vi={yyyy:ci("FullYear",4),yy:ci("FullYear",2,0,true),y:ci("FullYear",1),MMMM:hi("Month"),MMM:hi("Month",true),MM:ci("Month",2,1),M:ci("Month",1,1),dd:ci("Date",2),d:ci("Date",1),HH:ci("Hours",2),H:ci("Hours",1),hh:ci("Hours",2,-12),h:ci("Hours",1,-12),mm:ci("Minutes",2),m:ci("Minutes",1),ss:ci("Seconds",2),s:ci("Seconds",1),sss:ci("Milliseconds",3),EEEE:hi("Day"),EEE:hi("Day",true),a:di,Z:pi};var mi=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,gi=/^\-?\d+$/;yi.$inject=["$locale"];var wi=D(s);var Ei=D(u);xi.$inject=["$parse"];var Ni=D({restrict:"E",compile:function(e,n){if(l<=8){if(!n.href&&!n.name){n.$set("href","")}e.append(t.createComment("IE fix"))}if(!n.href&&!n.xlinkHref&&!n.name){return function(e,t){var n=v.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(e){if(!t.attr(n)){e.preventDefault()}})}}}});var Ci={};S(vn,function(e,t){if(e=="multiple")return;var n=In("ng-"+t);Ci[n]=function(){return{priority:100,link:function(e,r,i){e.$watch(i[n],function(n){i.$set(t,!!n)})}}}});S(["src","srcset","href"],function(e){var t=In("ng-"+e);Ci[t]=function(){return{priority:99,link:function(n,r,i){var s=e,o=e;if(e==="href"&&v.call(r.prop("href"))==="[object SVGAnimatedString]"){o="xlinkHref";i.$attr[o]="xlink:href";s=null}i.$observe(t,function(t){if(!t){if(e==="href"){i.$set(o,null)}return}i.$set(o,t);if(l&&s)r.prop(s,i[o])})}}}});var ki={$addControl:M,$removeControl:M,$setValidity:M,$setDirty:M,$setPristine:M};Li.$inject=["$element","$attrs","$scope","$animate"];var Ai=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:Li,compile:function(){return{pre:function(e,r,i,s){if(!i.action){var o=function(e){e.preventDefault?e.preventDefault():e.returnValue=false};Bt(r[0],"submit",o);r.on("$destroy",function(){t(function(){jt(r[0],"submit",o)},0,false)})}var u=r.parent().controller("form"),a=i.name||i.ngForm;if(a){Pr(e,a,s,a)}if(u){r.on("$destroy",function(){u.$removeControl(s);if(a){Pr(e,a,n,a)}L(s,ki)})}}}}};return r}]};var Oi=Ai();var Mi=Ai(true);var _i=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;var Di=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;var Pi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;var Hi={text:Ii,number:Ri,url:Ui,email:zi,radio:Wi,checkbox:Xi,hidden:M,button:M,submit:M,reset:M,file:M};var qi=["badInput"];var Vi=["$browser","$sniffer",function(e,t){return{restrict:"E",require:"?ngModel",link:function(n,r,i,o){if(o){(Hi[s(i.type)]||Hi.text)(n,r,i,o,t,e)}}}}];var $i="ng-valid",Ji="ng-invalid",Ki="ng-pristine",Qi="ng-dirty";var Gi=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(e,t,n,i,s,o){function h(e,t){t=t?"-"+Tt(t,"-"):"";o.removeClass(i,(e?Ji:$i)+t);o.addClass(i,(e?$i:Ji)+t)}this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=true;this.$dirty=false;this.$valid=true;this.$invalid=false;this.$name=n.name;var u=s(n.ngModel),a=u.assign;if(!a){throw r("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,vt(i))}this.$render=M;this.$isEmpty=function(e){return P(e)||e===""||e===null||e!==e};var f=i.inheritedData("$formController")||ki,l=0,c=this.$error={};i.addClass(Ki);h(true);this.$setValidity=function(e,t){if(c[e]===!t)return;if(t){if(c[e])l--;if(!l){h(true);this.$valid=true;this.$invalid=false}}else{h(false);this.$invalid=true;this.$valid=false;l++}c[e]=!t;h(t,e);f.$setValidity(e,t,this)};this.$setPristine=function(){this.$dirty=false;this.$pristine=true;o.removeClass(i,Qi);o.addClass(i,Ki)};this.$setViewValue=function(n){this.$viewValue=n;if(this.$pristine){this.$dirty=true;this.$pristine=false;o.removeClass(i,Ki);o.addClass(i,Qi);f.$setDirty()}S(this.$parsers,function(e){n=e(n)});if(this.$modelValue!==n){this.$modelValue=n;a(e,n);S(this.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})}};var p=this;e.$watch(function(){var n=u(e);if(p.$modelValue!==n){var r=p.$formatters,i=r.length;p.$modelValue=n;while(i--){n=r[i](n)}if(p.$viewValue!==n){p.$viewValue=n;p.$render()}}return n})}];var Yi=function(){return{require:["ngModel","^?form"],controller:Gi,link:function(e,t,n,r){var i=r[0],s=r[1]||ki;s.$addControl(i);e.$on("$destroy",function(){s.$removeControl(i)})}}};var Zi=D({require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}});var es=function(){return{require:"?ngModel",link:function(e,t,n,r){if(!r)return;n.required=true;var i=function(e){if(n.required&&r.$isEmpty(e)){r.$setValidity("required",false);return}else{r.$setValidity("required",true);return e}};r.$formatters.push(i);r.$parsers.unshift(i);n.$observe("required",function(){i(r.$viewValue)})}}};var ts=function(){return{require:"ngModel",link:function(e,t,r,i){var s=/\/(.*)\//.exec(r.ngList),o=s&&new RegExp(s[1])||r.ngList||",";var u=function(e){if(P(e))return;var t=[];if(e){S(e.split(o),function(e){if(e)t.push(K(e))})}return t};i.$parsers.push(u);i.$formatters.push(function(e){if(q(e)){return e.join(", ")}return n});i.$isEmpty=function(e){return!e||!e.length}}}};var ns=/^(true|false|\d+)$/;var rs=function(){return{priority:100,compile:function(e,t){if(ns.test(t.ngValue)){return function(t,n,r){r.$set("value",t.$eval(r.ngValue))}}else{return function(t,n,r){t.$watch(r.ngValue,function(t){r.$set("value",t)})}}}}};var is=Ti({compile:function(e){e.addClass("ng-binding");return function(e,t,r){t.data("$binding",r.ngBind);e.$watch(r.ngBind,function(r){t.text(r==n?"":r)})}}});var ss=["$interpolate",function(e){return function(t,n,r){var i=e(n.attr(r.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",i);r.$observe("ngBindTemplate",function(e){n.text(e)})}}];var os=["$sce","$parse",function(e,t){return{compile:function(n){n.addClass("ng-binding");return function(n,r,i){function o(){return(s(n)||"").toString()}r.data("$binding",i.ngBindHtml);var s=t(i.ngBindHtml);n.$watch(o,function(i){r.html(e.getTrustedHtml(s(n))||"")})}}}}];var as=us("",true);var fs=us("Odd",0);var ls=us("Even",1);var cs=Ti({compile:function(e,t){t.$set("ngCloak",n);e.removeClass("ng-cloak")}});var hs=[function(){return{scope:true,controller:"@",priority:500}}];var ps={};var ds={blur:true,focus:true};S("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=In("ng-"+e);ps[t]=["$parse","$rootScope",function(n,r){return{compile:function(i,s){var o=n(s[t]);return function(n,i){i.on(e,function(t){var i=function(){o(n,{$event:t})};if(ds[e]&&r.$$phase){n.$evalAsync(i)}else{n.$apply(i)}})}}}}]});var vs=["$animate",function(e){return{transclude:"element",priority:600,terminal:true,restrict:"A",$$tlb:true,link:function(n,r,i,s,o){var u,a,f;n.$watch(i.ngIf,function(l){if(dt(l)){if(!a){a=n.$new();o(a,function(n){n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" ");u={clone:n};e.enter(n,r.parent(),r)})}}else{if(f){f.remove();f=null}if(a){a.$destroy();a=null}if(u){f=Ot(u.clone);e.leave(f,function(){f=null});u=null}}})}}}];var ms=["$http","$templateCache","$anchorScroll","$animate","$sce",function(e,t,n,r,i){return{restrict:"ECA",priority:400,terminal:true,transclude:"element",controller:g.noop,compile:function(s,o){var u=o.ngInclude||o.src,a=o.onload||"",f=o.autoscroll;return function(s,o,l,c,h){var p=0,d,v,m;var g=function(){if(v){v.remove();v=null}if(d){d.$destroy();d=null}if(m){r.leave(m,function(){v=null});v=m;m=null}};s.$watch(i.parseAsResourceUrl(u),function(u){var l=function(){if(H(f)&&(!f||s.$eval(f))){n()}};var v=++p;if(u){e.get(u,{cache:t}).success(function(e){if(v!==p)return;var t=s.$new();c.template=e;var n=h(t,function(e){g();r.enter(e,null,o,l)});d=t;m=n;d.$emit("$includeContentLoaded");s.$eval(a)}).error(function(){if(v===p)g()});s.$emit("$includeContentRequested")}else{g();c.template=null}})}}}}];var gs=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,n,r,i){n.html(i.template);e(n.contents())(t)}}}];var ys=Ti({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}});var bs=Ti({terminal:true,priority:1e3});var ws=["$locale","$interpolate",function(e,t){var n=/{}/g;return{restrict:"EA",link:function(r,i,o){var u=o.count,a=o.$attr.when&&i.attr(o.$attr.when),f=o.offset||0,l=r.$eval(a)||{},c={},h=t.startSymbol(),p=t.endSymbol(),d=/^when(Minus)?(.+)$/;S(o,function(e,t){if(d.test(t)){l[s(t.replace("when","").replace("Minus","-"))]=i.attr(o.$attr[t])}});S(l,function(e,r){c[r]=t(e.replace(n,h+u+"-"+f+p))});r.$watch(function(){var n=parseFloat(r.$eval(u));if(!isNaN(n)){if(!(n in l))n=e.pluralCat(n-f);return c[n](r,i,true)}else{return""}},function(t){i.text(t)})}}}];var Es=["$parse","$animate",function(e,n){function o(e){return e.clone[0]}function u(e){return e.clone[e.clone.length-1]}var i="$$NG_REMOVED";var s=r("ngRepeat");return{transclude:"element",priority:1e3,terminal:true,$$tlb:true,link:function(r,a,f,l,h){var p=f.ngRepeat;var d=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),v,m,g,y,b,w,x,T,N,C={$id:bn};if(!d){throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p)}w=d[1];x=d[2];v=d[3];if(v){m=e(v);g=function(e,t,n){if(N)C[N]=e;C[T]=t;C.$index=n;return m(r,C)}}else{y=function(e,t){return bn(t)};b=function(e){return e}}d=w.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!d){throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",w)}T=d[3]||d[1];N=d[2];var k={};r.$watchCollection(x,function(f){var l,d,v=a[0],m,w={},x,C,L,A,O,M,_,D,P=[],H;if(E(f)){_=f;M=g||y}else{M=g||b;_=[];for(L in f){if(f.hasOwnProperty(L)&&L.charAt(0)!="$"){_.push(L)}}_.sort()}x=_.length;d=P.length=_.length;for(l=0;l<d;l++){L=f===_?l:_[l];A=f[L];O=M(L,A,l);Lt(O,"`track by` id");if(k.hasOwnProperty(O)){D=k[O];delete k[O];w[O]=D;P[l]=D}else if(w.hasOwnProperty(O)){S(P,function(e){if(e&&e.scope)k[e.id]=e});throw s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,O,ht(A))}else{P[l]={id:O};w[O]=false}}for(L in k){if(k.hasOwnProperty(L)){D=k[L];H=Ot(D.clone);n.leave(H);S(H,function(e){e[i]=true});D.scope.$destroy()}}for(l=0,d=_.length;l<d;l++){L=f===_?l:_[l];A=f[L];D=P[l];if(P[l-1])v=u(P[l-1]);if(D.scope){C=D.scope;m=v;do{m=m.nextSibling}while(m&&m[i]);if(o(D)!=m){n.move(Ot(D.clone),null,c(v))}v=u(D)}else{C=r.$new()}C[T]=A;if(N)C[N]=L;C.$index=l;C.$first=l===0;C.$last=l===x-1;C.$middle=!(C.$first||C.$last);C.$odd=!(C.$even=(l&1)===0);if(!D.scope){h(C,function(e){e[e.length++]=t.createComment(" end ngRepeat: "+p+" ");n.enter(e,null,c(v));v=e;D.scope=C;D.clone=e;w[D.id]=D})}}k=w})}}}];var Ss=["$animate",function(e){return function(t,n,r){t.$watch(r.ngShow,function(r){e[dt(r)?"removeClass":"addClass"](n,"ng-hide")})}}];var xs=["$animate",function(e){return function(t,n,r){t.$watch(r.ngHide,function(r){e[dt(r)?"addClass":"removeClass"](n,"ng-hide")})}}];var Ts=Ti(function(e,t,n){e.$watch(n.ngStyle,function(n,r){if(r&&n!==r){S(r,function(e,n){t.css(n,"")})}if(n)t.css(n)},true)});var Ns=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,n,r,i){var s=r.ngSwitch||r.on,o=[],u=[],a=[],f=[];t.$watch(s,function(s){var l,c;for(l=0,c=a.length;l<c;++l){a[l].remove()}a.length=0;for(l=0,c=f.length;l<c;++l){var h=u[l];f[l].$destroy();a[l]=h;e.leave(h,function(){a.splice(l,1)})}u.length=0;f.length=0;if(o=i.cases["!"+s]||i.cases["?"]){t.$eval(r.change);S(o,function(n){var r=t.$new();f.push(r);n.transclude(r,function(t){var r=n.element;u.push(t);e.enter(t,r.parent(),r)})})}})}}}];var Cs=Ti({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[];r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}});var ks=Ti({transclude:"element",priority:800,require:"^ngSwitch",link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:i,element:t})}});var Ls=Ti({link:function(e,t,n,i,s){if(!s){throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! "+"No parent directive that requires a transclusion found. "+"Element: {0}",vt(t))}s(function(e){t.empty();t.append(e)})}});var As=["$templateCache",function(e){return{restrict:"E",terminal:true,compile:function(t,n){if(n.type=="text/ng-template"){var r=n.id,i=t[0].text;e.put(r,i)}}}}];var Os=r("ngOptions");var Ms=D({terminal:true});var _s=["$compile","$parse",function(e,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:M};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r=this,i={},o=s,u,a;r.databound=n.ngModel;r.init=function(e,t,n){o=e;u=t;a=n};r.addOption=function(t){Lt(t,'"option value"');i[t]=true;if(o.$viewValue==t){e.val(t);if(a.parent())a.remove()}};r.removeOption=function(e){if(this.hasOption(e)){delete i[e];if(o.$viewValue==e){this.renderUnknownOption(e)}}};r.renderUnknownOption=function(t){var n="? "+bn(t)+" ?";a.val(n);e.prepend(a);e.val(n);a.prop("selected",true)};r.hasOption=function(e){return i.hasOwnProperty(e)};t.$on("$destroy",function(){r.renderUnknownOption=M})}],link:function(s,o,u,a){function N(e,t,n,r){n.$render=function(){var e=n.$viewValue;if(r.hasOption(e)){if(b.parent())b.remove();t.val(e);if(e==="")m.prop("selected",true)}else{if(P(e)&&m){t.val("")}else{r.renderUnknownOption(e)}}};t.on("change",function(){e.$apply(function(){if(b.parent())b.remove();n.$setViewValue(t.val())})})}function C(e,t,n){var r;n.$render=function(){var e=new wn(n.$viewValue);S(t.find("option"),function(t){t.selected=H(e.get(t.value))})};e.$watch(function(){if(!ot(r,n.$viewValue)){r=st(n.$viewValue);n.$render()}});t.on("change",function(){e.$apply(function(){var e=[];S(t.find("option"),function(t){if(t.selected){e.push(t.value)}});n.$setViewValue(e)})})}function k(t,s,o){function T(){var e=false;if(p){var n=o.$modelValue;if(E&&q(n)){e=new wn([]);var r={};for(var i=0;i<n.length;i++){r[f]=n[i];e.put(E(t,r),n[i])}}else{e=new wn(n)}}return e}function N(){var e={"":[]},n=[""],r,i,u,d,w,N,C=o.$modelValue,k=b(t)||[],L=c?x(k):k,A,O,M,_,D,P={},B,j=T(),F,I,q;for(D=0;M=L.length,D<M;D++){A=D;if(c){A=L[D];if(A.charAt(0)==="$")continue;P[c]=A}P[f]=k[A];r=h(t,P)||"";if(!(i=e[r])){i=e[r]=[];n.push(r)}if(p){B=H(j.remove(E?E(t,P):m(t,P)))}else{if(E){var R={};R[f]=C;B=E(t,R)===E(t,P)}else{B=C===m(t,P)}j=j||B}q=a(t,P);q=H(q)?q:"";i.push({id:E?E(t,P):c?L[D]:D,label:q,selected:B})}if(!p){if(v||C===null){e[""].unshift({id:"",label:"",selected:!j})}else if(!j){e[""].unshift({id:"?",label:"",selected:true})}}for(_=0,O=n.length;_<O;_++){r=n[_];i=e[r];if(S.length<=_){d={element:y.clone().attr("label",r),label:i.label};w=[d];S.push(w);s.append(d.element)}else{w=S[_];d=w[0];if(d.label!=r){d.element.attr("label",d.label=r)}}F=null;for(D=0,M=i.length;D<M;D++){u=i[D];if(N=w[D+1]){F=N.element;if(N.label!==u.label){F.text(N.label=u.label)}if(N.id!==u.id){F.val(N.id=u.id)}if(F[0].selected!==u.selected){F.prop("selected",N.selected=u.selected);if(l){F.prop("selected",N.selected)}}}else{if(u.id===""&&v){I=v}else{(I=g.clone()).val(u.id).prop("selected",u.selected).attr("selected",u.selected).text(u.label)}w.push(N={element:I,label:u.label,id:u.id,selected:u.selected});if(F){F.after(I)}else{d.element.append(I)}F=I}}D++;while(w.length>D){w.pop().element.remove()}}while(S.length>_){S.pop()[0].element.remove()}}var u;if(!(u=d.match(i))){throw Os("iexp","Expected expression in form of "+"'_select_ (as _label_)? for (_key_,)?_value_ in _collection_'"+" but got '{0}'. Element: {1}",d,vt(s))}var a=r(u[2]||u[1]),f=u[4]||u[6],c=u[5],h=r(u[3]||""),m=r(u[2]?u[1]:f),b=r(u[7]),w=u[8],E=w?r(u[8]):null,S=[[{element:s,label:""}]];if(v){e(v)(t);v.removeClass("ng-scope");v.remove()}s.empty();s.on("change",function(){t.$apply(function(){var e,r=b(t)||[],i={},u,a,l,h,d,v,g,y;if(p){a=[];for(d=0,g=S.length;d<g;d++){e=S[d];for(h=1,v=e.length;h<v;h++){if((l=e[h].element)[0].selected){u=l.val();if(c)i[c]=u;if(E){for(y=0;y<r.length;y++){i[f]=r[y];if(E(t,i)==u)break}}else{i[f]=r[u]}a.push(m(t,i))}}}}else{u=s.val();if(u=="?"){a=n}else if(u===""){a=null}else{if(E){for(y=0;y<r.length;y++){i[f]=r[y];if(E(t,i)==u){a=m(t,i);break}}}else{i[f]=r[u];if(c)i[c]=u;a=m(t,i)}}}o.$setViewValue(a);N()})});o.$render=N;t.$watchCollection(b,N);t.$watchCollection(function(){var e={},n=b(t);if(n){var r=new Array(n.length);for(var i=0,s=n.length;i<s;i++){e[f]=n[i];r[i]=a(t,e)}return r}},N);if(p){t.$watchCollection(function(){return o.$modelValue},N)}}if(!a[1])return;var f=a[0],h=a[1],p=u.multiple,d=u.ngOptions,v=false,m,g=c(t.createElement("option")),y=c(t.createElement("optgroup")),b=g.clone();for(var w=0,E=o.children(),T=E.length;w<T;w++){if(E[w].value===""){m=v=E.eq(w);break}}f.init(h,v,b);if(p){h.$isEmpty=function(e){return!e||e.length===0}}if(d)k(s,o,h);else if(p)C(s,o,h);else N(s,o,h,f)}}}];var Ds=["$interpolate",function(e){var t={addOption:M,removeOption:M};return{restrict:"E",priority:100,compile:function(n,r){if(P(r.value)){var i=e(n.text(),true);if(!i){r.$set("value",n.text())}}return function(e,n,r){var s="$selectController",o=n.parent(),u=o.data(s)||o.parent().data(s);if(u&&u.databound){n.prop("selected",false)}else{u=t}if(i){e.$watch(i,function(t,n){r.$set("value",t);if(t!==n)u.removeOption(n);u.addOption(t)})}else{u.addOption(r.value)}n.on("$destroy",function(){u.removeOption(r.value)})}}}}];var Ps=D({restrict:"E",terminal:true});if(e.angular.bootstrap){console.log("WARNING: Tried to load angular more than once.");return}Nt();Dt(g);c(t).ready(function(){Et(t,St)})})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>');(function(e,t,n){"use strict";t.module("ngAnimate",["ng"]).directive("ngAnimateChildren",function(){var e="$$ngAnimateChildren";return function(n,r,i){var s=i.ngAnimateChildren;if(t.isString(s)&&s.length===0){r.data(e,true)}else{n.$watch(s,function(t){r.data(e,!!t)})}}}).factory("$$animateReflow",["$$rAF","$document",function(e,t){var n=t[0].body;return function(t){return e(function(){var e=n.offsetWidth+1;t()})}}]).config(["$provide","$animateProvider",function(r,i){function p(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==a){return n}}}function d(e){return e&&t.element(e)}function v(e){return t.element(p(e))}function m(e,t){return p(e)==p(t)}var s=t.noop;var o=t.forEach;var u=i.$$selectors;var a=1;var f="$$ngAnimateState";var l="$$ngAnimateChildren";var c="ng-animate";var h={running:true};r.decorator("$animate",["$delegate","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document",function(e,n,r,a,g,y,b){function x(e){var t=e.data(f)||{};t.running=true;e.data(f,t)}function T(e){if(e){var t=[],i={},s=e.substr(1).split(".");if(r.transitions||r.animations){t.push(n.get(u[""]))}for(var o=0;o<s.length;o++){var a=s[o],f=u[a];if(f&&!i[a]){t.push(n.get(f));i[a]=true}}return t}}function N(e,n,r){function w(e,t){var n=e[t];var r=e["before"+t.charAt(0).toUpperCase()+t.substr(1)];if(n||r){if(t=="leave"){r=n;n=null}y.push({event:t,fn:n});v.push({event:t,fn:r});return true}}function E(t,n,i){function c(e){if(n){(n[e]||s)();if(++a<u.length)return;n=null}i()}var u=[];o(t,function(e){e.fn&&u.push(e)});var a=0;o(u,function(t,i){var s=function(){c(i)};switch(t.event){case"setClass":n.push(t.fn(e,f,l,s));break;case"addClass":n.push(t.fn(e,f||r,s));break;case"removeClass":n.push(t.fn(e,l||r,s));break;default:n.push(t.fn(e,s));break}});if(n&&n.length===0){i()}}var i=e[0];if(!i){return}var u=n=="setClass";var a=u||n=="addClass"||n=="removeClass";var f,l;if(t.isArray(r)){f=r[0];l=r[1];r=f+" "+l}var c=e.attr("class");var h=c+" "+r;if(!S(h)){return}var p=s,d=[],v=[],m=s,g=[],y=[];var b=(" "+h).replace(/\s+/g,".");o(T(b),function(e){var t=w(e,n);if(!t&&u){w(e,"addClass");w(e,"removeClass")}});return{node:i,event:n,className:r,isClassBased:a,isSetClassOperation:u,before:function(e){p=e;E(v,d,function(){p=s;e()})},after:function(e){m=e;E(y,g,function(){m=s;e()})},cancel:function(){if(d){o(d,function(e){(e||s)(true)});p(true)}if(g){o(g,function(e){(e||s)(true)});m(true)}}}}function C(e,n,r,i,s,u,a){function C(t){var i="$animate:"+t;if(h&&h[i]&&h[i].length>0){g(function(){r.triggerHandler(i,{event:e,className:n})})}}function k(){C("before")}function O(){C("after")}function M(){C("close");if(a){g(function(){a()})}}function _(){if(!_.hasBeenRun){_.hasBeenRun=true;u()}}function D(){if(!D.hasBeenRun){D.hasBeenRun=true;var t=r.data(f);if(t){if(l&&l.isClassBased){L(r,n)}else{g(function(){var t=r.data(f)||{};if(T==t.index){L(r,n,e)}});r.data(f,t)}}M()}}var l=N(r,e,n);if(!l){_();k();O();D();return}n=l.className;var h=t.element._data(l.node);h=h&&h.events;if(!i){i=s?s.parent():r.parent()}var p=r.data(f)||{};var d=p.active||{};var v=p.totalActive||0;var m=p.last;var y;if(l.isClassBased){y=p.running||p.disabled||m&&!m.isClassBased}if(y||A(r,i)){_();k();O();D();return}var b=false;if(v>0){var E=[];if(!l.isClassBased){if(e=="leave"&&d["ng-leave"]){b=true}else{for(var S in d){E.push(d[S]);L(r,S)}d={};v=0}}else if(m.event=="setClass"){E.push(m);L(r,n)}else if(d[n]){var x=d[n];if(x.event==e){b=true}else{E.push(x);L(r,n)}}if(E.length>0){o(E,function(e){e.cancel()})}}if(l.isClassBased&&!l.isSetClassOperation&&!b){b=e=="addClass"==r.hasClass(n)}if(b){_();k();O();M();return}if(e=="leave"){r.one("$destroy",function(e){var n=t.element(this);var r=n.data(f);if(r){var i=r.active["ng-leave"];if(i){i.cancel();L(n,"ng-leave")}}})}r.addClass(c);var T=w++;v++;d[n]=l;r.data(f,{last:l,active:d,index:T,totalActive:v});k();l.before(function(t){var i=r.data(f);t=t||!i||!i.active[n]||l.isClassBased&&i.active[n].event!=e;_();if(t===true){D()}else{O();l.after(D)}})}function k(e){var n=p(e);if(n){var r=t.isFunction(n.getElementsByClassName)?n.getElementsByClassName(c):n.querySelectorAll("."+c);o(r,function(e){e=t.element(e);var n=e.data(f);if(n&&n.active){o(n.active,function(e){e.cancel()})}})}}function L(e,t){if(m(e,a)){if(!h.disabled){h.running=false;h.structural=false}}else if(t){var n=e.data(f)||{};var r=t===true;if(!r&&n.active&&n.active[t]){n.totalActive--;delete n.active[t]}if(r||!n.totalActive){e.removeClass(c);e.removeData(f)}}}function A(e,n){if(h.disabled){return true}if(m(e,a)){return h.running}var r,i,s;do{if(n.length===0)break;var o=m(n,a);var u=o?h:n.data(f)||{};if(u.disabled){return true}if(o){s=true}if(r!==false){var c=n.data(l);if(t.isDefined(c)){r=c}}i=i||u.running||u.last&&!u.last.isClassBased}while(n=n.parent());return!s||!r&&i}var w=0;a.data(f,h);y.$$postDigest(function(){y.$$postDigest(function(){h.running=false})});var E=i.classNameFilter();var S=!E?function(){return true}:function(e){return E.test(e)};return{enter:function(n,r,i,o){n=t.element(n);r=d(r);i=d(i);x(n);e.enter(n,r,i);y.$$postDigest(function(){n=v(n);C("enter","ng-enter",n,r,i,s,o)})},leave:function(n,r){n=t.element(n);k(n);x(n);y.$$postDigest(function(){C("leave","ng-leave",v(n),null,null,function(){e.leave(n)},r)})},move:function(n,r,i,o){n=t.element(n);r=d(r);i=d(i);k(n);x(n);e.move(n,r,i);y.$$postDigest(function(){n=v(n);C("move","ng-move",n,r,i,s,o)})},addClass:function(n,r,i){n=t.element(n);n=v(n);C("addClass",r,n,null,null,function(){e.addClass(n,r)},i)},removeClass:function(n,r,i){n=t.element(n);n=v(n);C("removeClass",r,n,null,null,function(){e.removeClass(n,r)},i)},setClass:function(n,r,i,s){n=t.element(n);n=v(n);C("setClass",[r,i],n,null,null,function(){e.setClass(n,r,i)},s)},enabled:function(e,t){switch(arguments.length){case 2:if(e){L(t)}else{var n=t.data(f)||{};n.disabled=true;t.data(f,n)}break;case 1:h.disabled=!e;break;default:e=!h.disabled;break}return!!e}}}]);i.register("",["$window","$sniffer","$timeout","$$animateReflow",function(r,i,u,f){function O(e,t){if(A){A()}L.push(t);A=f(function(){o(L,function(e){e()});L=[];A=null;C={}})}function P(e,n){var r=p(e);e=t.element(r);D.push(e);var i=Date.now()+n;if(i<=_){return}u.cancel(M);_=i;M=u(function(){H(D);D=[]},n,false)}function H(e){o(e,function(e){var t=e.data(E);if(t){(t.closeAnimationFn||s)()}})}function B(e,t){var n=t?C[t]:null;if(!n){var i=0;var s=0;var u=0;var f=0;var l;var h;var p;var v;o(e,function(e){if(e.nodeType==a){var t=r.getComputedStyle(e)||{};p=t[c+m];i=Math.max(j(p),i);v=t[c+g];l=t[c+y];s=Math.max(j(l),s);h=t[d+y];f=Math.max(j(h),f);var n=j(t[d+m]);if(n>0){n*=parseInt(t[d+b],10)||1}u=Math.max(n,u)}});n={total:0,transitionPropertyStyle:v,transitionDurationStyle:p,transitionDelayStyle:l,transitionDelay:s,transitionDuration:i,animationDelayStyle:h,animationDelay:f,animationDuration:u};if(t){C[t]=n}}return n}function j(e){var n=0;var r=t.isString(e)?e.split(/\s*,\s*/):[];o(r,function(e){n=Math.max(parseFloat(e)||0,n)});return n}function F(e){var t=e.parent();var n=t.data(w);if(!n){t.data(w,++k);n=k}return n+"-"+p(e).getAttribute("class")}function I(e,t,n,r){var i=F(t);var o=i+" "+n;var u=C[o]?++C[o].total:0;var a={};if(u>0){var f=n+"-stagger";var l=i+" "+f;var c=!C[l];c&&t.addClass(f);a=B(t,l);c&&t.removeClass(f)}r=r||function(e){return e()};t.addClass(n);var h=t.data(E)||{};var p=r(function(){return B(t,o)});var d=p.transitionDuration;var v=p.animationDuration;if(d===0&&v===0){t.removeClass(n);return false}t.data(E,{running:h.running||0,itemIndex:u,stagger:a,timings:p,closeAnimationFn:s});var m=h.running>0||e=="setClass";if(d>0){R(t,n,m)}if(v>0&&a.animationDelay>0&&a.animationDuration===0){U(t)}return true}function q(e){return e=="ng-enter"||e=="ng-move"||e=="ng-leave"}function R(e,t,n){if(q(t)||!n){p(e).style[c+g]="none"}else{e.addClass(S)}}function U(e){p(e).style[d]="none 0s"}function z(e,t){var n=c+g;var r=p(e);if(r.style[n]&&r.style[n].length>0){r.style[n]=""}e.removeClass(S)}function W(e){var t=d;var n=p(e);if(n.style[t]&&n.style[t].length>0){n.style[t]=""}}function X(e,t,n,r){function _(e){t.off(b,D);t.removeClass(u);Q(t,n);var r=p(t);for(var i in S){r.style.removeProperty(S[i])}}function D(e){e.stopPropagation();var t=e.originalEvent||e;var n=t.$manualTimeStamp||t.timeStamp||Date.now();var i=parseFloat(t.elapsedTime.toFixed(x));if(Math.max(n-y,0)>=g&&i>=d){r()}}var i=p(t);var s=t.data(E);if(i.getAttribute("class").indexOf(n)==-1||!s){r();return}var u="";o(n.split(" "),function(e,t){u+=(t>0?" ":"")+e+"-active"});var a=s.stagger;var f=s.timings;var c=s.itemIndex;var d=Math.max(f.transitionDuration,f.animationDuration);var m=Math.max(f.transitionDelay,f.animationDelay);var g=m*N;var y=Date.now();var b=v+" "+h;var w="",S=[];if(f.transitionDuration>0){var C=f.transitionPropertyStyle;if(C.indexOf("all")==-1){w+=l+"transition-property: "+C+";";w+=l+"transition-duration: "+f.transitionDurationStyle+";";S.push(l+"transition-property");S.push(l+"transition-duration")}}if(c>0){if(a.transitionDelay>0&&a.transitionDuration===0){var k=f.transitionDelayStyle;w+=l+"transition-delay: "+V(k,a.transitionDelay,c)+"; ";S.push(l+"transition-delay")}if(a.animationDelay>0&&a.animationDuration===0){w+=l+"animation-delay: "+V(f.animationDelayStyle,a.animationDelay,c)+"; ";S.push(l+"animation-delay")}}if(S.length>0){var L=i.getAttribute("style")||"";i.setAttribute("style",L+"; "+w)}t.on(b,D);t.addClass(u);s.closeAnimationFn=function(){_();r()};var A=c*(Math.max(a.animationDelay,a.transitionDelay)||0);var O=(m+d)*T;var M=(A+O)*N;s.running++;P(t,M);return _}function V(e,t,n){var r="";o(e.split(","),function(e,i){r+=(i>0?",":"")+(n*t+parseInt(e,10))+"s"});return r}function $(e,t,n,r){if(I(e,t,n,r)){return function(e){e&&Q(t,n)}}}function J(e,t,n,r){if(t.data(E)){return X(e,t,n,r)}else{Q(t,n);r()}}function K(e,t,n,r){var i=$(e,t,n);if(!i){r();return}var o=i;O(t,function(){z(t,n);W(t);o=J(e,t,n,r)});return function(e){(o||s)(e)}}function Q(e,t){e.removeClass(t);var n=e.data(E);if(n){if(n.running){n.running--}if(!n.running||n.running===0){e.removeData(E)}}}function G(e,n){var r="";e=t.isArray(e)?e:e.split(/\s+/);o(e,function(e,t){if(e&&e.length>0){r+=(t>0?" ":"")+e+n}});return r}var l="",c,h,d,v;if(e.ontransitionend===n&&e.onwebkittransitionend!==n){l="-webkit-";c="WebkitTransition";h="webkitTransitionEnd transitionend"}else{c="transition";h="transitionend"}if(e.onanimationend===n&&e.onwebkitanimationend!==n){l="-webkit-";d="WebkitAnimation";v="webkitAnimationEnd animationend"}else{d="animation";v="animationend"}var m="Duration";var g="Property";var y="Delay";var b="IterationCount";var w="$$ngAnimateKey";var E="$$ngAnimateCSS3Data";var S="ng-animate-block-transitions";var x=3;var T=1.5;var N=1e3;var C={};var k=0;var L=[];var A;var M=null;var _=0;var D=[];return{enter:function(e,t){return K("enter",e,"ng-enter",t)},leave:function(e,t){return K("leave",e,"ng-leave",t)},move:function(e,t){return K("move",e,"ng-move",t)},beforeSetClass:function(e,t,n,r){var i=G(n,"-remove")+" "+G(t,"-add");var s=$("setClass",e,i,function(r){var i=e.attr("class");e.removeClass(n);e.addClass(t);var s=r();e.attr("class",i);return s});if(s){O(e,function(){z(e,i);W(e);r()});return s}r()},beforeAddClass:function(e,t,n){var r=$("addClass",e,G(t,"-add"),function(n){e.addClass(t);var r=n();e.removeClass(t);return r});if(r){O(e,function(){z(e,t);W(e);n()});return r}n()},setClass:function(e,t,n,r){n=G(n,"-remove");t=G(t,"-add");var i=n+" "+t;return J("setClass",e,i,r)},addClass:function(e,t,n){return J("addClass",e,G(t,"-add"),n)},beforeRemoveClass:function(e,t,n){var r=$("removeClass",e,G(t,"-remove"),function(n){var r=e.attr("class");e.removeClass(t);var i=n();e.attr("class",r);return i});if(r){O(e,function(){z(e,t);W(e);n()});return r}n()},removeClass:function(e,t,n){return J("removeClass",e,G(t,"-remove"),n)}}}])}])})(window,window.angular);(function(e,t,n){"use strict";function i(){this.$get=["$$sanitizeUri",function(e){return function(t){var n=[];k(t,_(n,function(t,n){return!/^unsafe/.test(e(t,n))}));return n.join("")}}]}function s(e){var n=[];var r=_(n,t.noop);r.chars(e);return n.join("")}function C(e){var t={},n=e.split(","),r;for(r=0;r<n.length;r++)t[n[r]]=true;return t}function k(e,n){function x(e,r,i,s){r=t.lowercase(r);if(w[r]){while(v.last()&&E[v.last()]){T("",v.last())}}if(b[r]&&v.last()==r){T("",r)}s=m[r]||!!s;if(!s)v.push(r);var o={};i.replace(a,function(e,t,n,r,i){var s=n||r||i||"";o[t]=O(s)});if(n.start)n.start(r,o,s)}function T(e,r){var i=0,s;r=t.lowercase(r);if(r)for(i=v.length-1;i>=0;i--)if(v[i]==r)break;if(i>=0){for(s=v.length-1;s>=i;s--)if(n.end)n.end(v[s]);v.length=i}}if(typeof e!=="string"){if(e===null||typeof e==="undefined"){e=""}else{e=""+e}}var i,s,d,v=[],g=e,y;v.last=function(){return v[v.length-1]};while(e){y="";s=true;if(!v.last()||!S[v.last()]){if(e.indexOf("<!--")===0){i=e.indexOf("--",4);if(i>=0&&e.lastIndexOf("-->",i)===i){if(n.comment)n.comment(e.substring(4,i));e=e.substring(i+3);s=false}}else if(h.test(e)){d=e.match(h);if(d){e=e.replace(d[0],"");s=false}}else if(l.test(e)){d=e.match(u);if(d){e=e.substring(d[0].length);d[0].replace(u,T);s=false}}else if(f.test(e)){d=e.match(o);if(d){if(d[4]){e=e.substring(d[0].length);d[0].replace(o,x)}s=false}else{y+="<";e=e.substring(1)}}if(s){i=e.indexOf("<");y+=i<0?e:e.substring(0,i);e=i<0?"":e.substring(i);if(n.chars)n.chars(O(y))}}else{e=e.replace(new RegExp("(.*)<\\s*\\/\\s*"+v.last()+"[^>]*>","i"),function(e,t){t=t.replace(c,"$1").replace(p,"$1");if(n.chars)n.chars(O(t));return""});T("",v.last())}if(e==g){throw r("badparse","The sanitizer was unable to parse the following block "+"of html: {0}",e)}g=e}T()}function O(e){if(!e){return""}var t=A.exec(e);var n=t[1];var r=t[3];var i=t[2];if(i){L.innerHTML=i.replace(/</g,"<");i="textContent"in L?L.textContent:L.innerText}return n+i+r}function M(e){return e.replace(/&/g,"&").replace(d,function(e){var t=e.charCodeAt(0);var n=e.charCodeAt(1);return"&#"+((t-55296)*1024+(n-56320)+65536)+";"}).replace(v,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function _(e,n){var r=false;var i=t.bind(e,e.push);return{start:function(e,s,o){e=t.lowercase(e);if(!r&&S[e]){r=e}if(!r&&x[e]===true){i("<");i(e);t.forEach(s,function(r,s){var o=t.lowercase(s);var u=e==="img"&&o==="src"||o==="background";if(N[o]===true&&(T[o]!==true||n(r,u))){i(" ");i(s);i('="');i(M(r));i('"')}});i(o?"/>":">")}},end:function(e){e=t.lowercase(e);if(!r&&x[e]===true){i("</");i(e);i(">")}if(e==r){r=false}},chars:function(e){if(!r){i(M(e))}}}}var r=t.$$minErr("$sanitize");var o=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,u=/^<\/\s*([\w:-]+)[^>]*>/,a=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,f=/^</,l=/^<\//,c=/<!--(.*?)-->/g,h=/<!DOCTYPE([^>]*?)>/i,p=/<!\[CDATA\[(.*?)]]>/g,d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=/([^\#-~| |!])/g;var m=C("area,br,col,hr,img,wbr");var g=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y=C("rp,rt"),b=t.extend({},y,g);var w=t.extend({},g,C("address,article,"+"aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,"+"h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul"));var E=t.extend({},y,C("a,abbr,acronym,b,"+"bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,"+"samp,small,span,strike,strong,sub,sup,time,tt,u,var"));var S=C("script,style");var x=t.extend({},m,w,E,b);var T=C("background,cite,href,longdesc,src,usemap");var N=t.extend({},T,C("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,"+"color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,"+"ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,"+"scope,scrolling,shape,size,span,start,summary,target,title,type,"+"valign,value,vspace,width"));var L=document.createElement("pre");var A=/^(\s*)([\s\S]*?)(\s*)$/;t.module("ngSanitize",[]).provider("$sanitize",i);t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,r=/^mailto:/;return function(i,o){function h(e){if(!e){return}f.push(s(e))}function p(e,n){f.push("<a ");if(t.isDefined(o)){f.push('target="');f.push(o);f.push('" ')}f.push('href="');f.push(e);f.push('">');h(n);f.push("</a>")}if(!i)return i;var u;var a=i;var f=[];var l;var c;while(u=a.match(n)){l=u[0];if(u[2]==u[3])l="mailto:"+l;c=u.index;h(a.substr(0,c));p(l,u[0].replace(r,""));a=a.substring(c+u[0].length)}h(a);return e(f.join(""))}}])})(window,window.angular);if(typeof module!=="undefined"&&typeof exports!=="undefined"&&module.exports===exports){module.exports="ui.router"}(function(e,t,n){"use strict";function c(e,t){return f(new(f(function(){},{prototype:e})),t)}function h(e){a(arguments,function(t){if(t!==e){a(t,function(t,n){if(!e.hasOwnProperty(n))e[n]=t})}});return e}function p(e,t){var n=[];for(var r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}function d(e){if(Object.keys){return Object.keys(e)}var n=[];t.forEach(e,function(e,t){n.push(t)});return n}function v(e,t){if(Array.prototype.indexOf){return e.indexOf(t,Number(arguments[2])||0)}var n=e.length>>>0,r=Number(arguments[2])||0;r=r<0?Math.ceil(r):Math.floor(r);if(r<0)r+=n;for(;r<n;r++){if(r in e&&e[r]===t)return r}return-1}function m(e,t,n,r){var i=p(n,r),s,o={},u=[];for(var a in i){if(!i[a].params||!i[a].params.length)continue;s=i[a].params;for(var l in s){if(v(u,s[l])>=0)continue;u.push(s[l]);o[s[l]]=e[s[l]]}}return f({},o,t)}function g(e,t){var n={};a(e,function(e){var r=t[e];n[e]=r!=null?String(r):null});return n}function y(e,t,n){if(!n){n=[];for(var r in e)n.push(r)}for(var i=0;i<n.length;i++){var s=n[i];if(e[s]!=t[s])return false}return true}function b(e,t){var n={};a(e,function(e){n[e]=t[e]});return n}function w(e,t){var i=1,u=2,l={},c=[],p=l,d=f(e.when(l),{$$promises:l,$$values:l});this.study=function(l){function y(e,n){if(g[n]===u)return;m.push(n);if(g[n]===i){m.splice(0,m.indexOf(n));throw new Error("Cyclic dependency: "+m.join(" -> "))}g[n]=i;if(s(e)){v.push(n,[function(){return t.get(e)}],c)}else{var r=t.annotate(e);a(r,function(e){if(e!==n&&l.hasOwnProperty(e))y(l[e],e)});v.push(n,e,r)}m.pop();g[n]=u}function b(e){return o(e)&&e.then&&e.$$promises}if(!o(l))throw new Error("'invocables' must be an object");var v=[],m=[],g={};a(l,y);l=m=g=null;return function(i,s,u){function E(){if(!--y){if(!w)h(g,s.$$values);c.$$values=g;c.$$promises=true;l.resolve(g)}}function S(e){c.$$failure=e;l.reject(e)}function N(n,s,o){function h(e){f.reject(e);S(e)}function p(){if(r(c.$$failure))return;try{f.resolve(t.invoke(s,u,g));f.promise.then(function(e){g[n]=e;E()},h)}catch(e){h(e)}}var f=e.defer(),l=0;a(o,function(e){if(m.hasOwnProperty(e)&&!i.hasOwnProperty(e)){l++;m[e].then(function(t){g[e]=t;if(!--l)p()},h)}});if(!l)p();m[n]=f.promise}if(b(i)&&u===n){u=s;s=i;i=null}if(!i)i=p;else if(!o(i)){throw new Error("'locals' must be an object")}if(!s)s=d;else if(!b(s)){throw new Error("'parent' must be a promise returned by $resolve.resolve()")}var l=e.defer(),c=l.promise,m=c.$$promises={},g=f({},i),y=1+v.length/3,w=false;if(r(s.$$failure)){S(s.$$failure);return c}if(s.$$values){w=h(g,s.$$values);E()}else{f(m,s.$$promises);s.then(E,S)}for(var x=0,T=v.length;x<T;x+=3){if(i.hasOwnProperty(v[x]))E();else N(v[x],v[x+1],v[x+2])}return c}};this.resolve=function(e,t,n,r){return this.study(e)(t,n,r)}}function E(e,t,n){this.fromConfig=function(e,t,n){return r(e.template)?this.fromString(e.template,t):r(e.templateUrl)?this.fromUrl(e.templateUrl,t):r(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null};this.fromString=function(e,t){return i(e)?e(t):e};this.fromUrl=function(n,r){if(i(n))n=n(r);if(n==null)return null;else return e.get(n,{cache:t}).then(function(e){return e.data})};this.fromProvider=function(e,t,r){return n.invoke(e,null,r||{params:t})}}function S(e){function f(t){if(!/^\w+(-+\w+)*$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+e+"'");if(n[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+e+"'");n[t]=true;u.push(t)}function l(e){return e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&")}var t=/([:*])(\w+)|\{(\w+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,n={},r="^",i=0,s,o=this.segments=[],u=this.params=[];this.source=e;var c,h,p;while(s=t.exec(e)){c=s[2]||s[3];h=s[4]||(s[1]=="*"?".*":"[^/]*");p=e.substring(i,s.index);if(p.indexOf("?")>=0)break;r+=l(p)+"("+h+")";f(c);o.push(p);i=t.lastIndex}p=e.substring(i);var d=p.indexOf("?");if(d>=0){var v=this.sourceSearch=p.substring(d);p=p.substring(0,d);this.sourcePath=e.substring(0,i+d);a(v.substring(1).split(/[&?]/),f)}else{this.sourcePath=e;this.sourceSearch=""}r+=l(p)+"$";o.push(p);this.regexp=new RegExp(r);this.prefix=o[0]}function x(){this.compile=function(e){return new S(e)};this.isMatcher=function(e){return o(e)&&i(e.exec)&&i(e.format)&&i(e.concat)};this.$get=function(){return this}}function T(e){function o(e){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source);return t!=null?t[1].replace(/\\(.)/g,"$1"):""}function a(e,t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t[n==="$"?0:Number(n)]})}function l(e,t,n){if(!n)return false;var i=e.invoke(t,t,{$match:n});return r(i)?i:true}var t=[],n=null;this.rule=function(e){if(!i(e))throw new Error("'rule' must be a function");t.push(e);return this};this.otherwise=function(e){if(s(e)){var t=e;e=function(){return t}}else if(!i(e))throw new Error("'rule' must be a function");n=e;return this};this.when=function(t,n){var r,c=s(n);if(s(t))t=e.compile(t);if(!c&&!i(n)&&!u(n))throw new Error("invalid 'handler' in when()");var h={matcher:function(t,n){if(c){r=e.compile(n);n=["$match",function(e){return r.format(e)}]}return f(function(e,r){return l(e,n,t.exec(r.path(),r.search()))},{prefix:s(t.prefix)?t.prefix:""})},regex:function(e,t){if(e.global||e.sticky)throw new Error("when() RegExp must not be global or sticky");if(c){r=t;t=["$match",function(e){return a(r,e)}]}return f(function(n,r){return l(n,t,e.exec(r.path()))},{prefix:o(e)})}};var p={matcher:e.isMatcher(t),regex:t instanceof RegExp};for(var d in p){if(p[d]){return this.rule(h[d](t,n))}}throw new Error("invalid 'what' in when()")};this.$get=["$location","$rootScope","$injector",function(e,r,i){function o(r){function o(t){var n=t(i,e);if(n){if(s(n))e.replace().url(n);return true}return false}if(r&&r.defaultPrevented)return;var u=t.length,a;for(a=0;a<u;a++){if(o(t[a]))return}if(n)o(n)}r.$on("$locationChangeSuccess",o);return{sync:function(){o()}}}]}function N(e,h,p){function T(e){return e.indexOf(".")===0||e.indexOf("^")===0}function N(e,t){var r=s(e),i=r?e:e.name,o=T(i);if(o){if(!t)throw new Error("No reference point given for path '"+i+"'");var u=i.split("."),a=0,f=u.length,l=t;for(;a<f;a++){if(u[a]===""&&a===0){l=t;continue}if(u[a]==="^"){if(!l.parent)throw new Error("Path '"+i+"' not valid for state '"+t.name+"'");l=l.parent;continue}break}u=u.slice(a).join(".");i=l.name+(l.name&&u?".":"")+u}var c=v[i];if(c&&(r||!r&&(c===e||c.self===e))){return c}return n}function C(e,t){if(!E[e]){E[e]=[]}E[e].push(t)}function k(t){t=c(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}});var n=t.name;if(!s(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(v.hasOwnProperty(n))throw new Error("State '"+n+"'' is already defined");var r=n.indexOf(".")!==-1?n.substring(0,n.lastIndexOf(".")):s(t.parent)?t.parent:"";if(r&&!v[r]){return C(r,t.self)}for(var o in x){if(i(x[o]))t[o]=x[o](t,x.$delegates[o])}v[n]=t;if(!t[S]&&t.url){e.when(t.url,["$match","$stateParams",function(e,n){if(w.$current.navigable!=t||!y(e,n)){w.transitionTo(t,e,{location:false})}}])}if(E[n]){for(var u=0;u<E[n].length;u++){k(E[n][u])}}return t}function L(e){return e.indexOf("*")>-1}function A(e){var t=e.split("."),n=w.$current.name.split(".");if(t[0]==="**"){n=n.slice(n.indexOf(t[1]));n.unshift("**")}if(t[t.length-1]==="**"){n.splice(n.indexOf(t[t.length-2])+1,Number.MAX_VALUE);n.push("**")}if(t.length!=n.length){return false}for(var r=0,i=t.length;r<i;r++){if(t[r]==="*"){n[r]="*"}}return n.join("")===t.join("")}function O(e,t){if(s(e)&&!r(t)){return x[e]}if(!i(t)||!s(e)){return this}if(x[e]&&!x.$delegates[e]){x.$delegates[e]=x[e]}x[e]=t;return this}function M(e,t){if(o(e))t=e;else t.name=e;k(t);return this}function _(e,o,h,E,x,T,C,k,O){function F(){if(C.url()!==B){C.url(B);C.replace()}}function I(e,n,r,s,f){var l=r?n:b(e.params,n);var c={$stateParams:l};f.resolve=x.resolve(e.resolve,c,f.resolve,e);var p=[f.resolve.then(function(e){f.globals=e})];if(s)p.push(s);a(e.views,function(n,r){var s=n.resolve&&n.resolve!==e.resolve?n.resolve:{};s.$template=[function(){return h.load(r,{view:n,locals:c,params:l,notify:false})||""}];p.push(x.resolve(s,c,f.resolve,e).then(function(o){if(i(n.controllerProvider)||u(n.controllerProvider)){var a=t.extend({},s,c);o.$$controller=E.invoke(n.controllerProvider,null,a)}else{o.$$controller=n.controller}o.$$state=e;o.$$controllerAs=n.controllerAs;f[r]=o}))});return o.all(p).then(function(e){return f})}var M=o.reject(new Error("transition superseded"));var _=o.reject(new Error("transition prevented"));var P=o.reject(new Error("transition aborted"));var H=o.reject(new Error("transition failed"));var B=C.url();var j=O.baseHref();d.locals={resolve:null,globals:{$stateParams:{}}};w={params:{},current:d.self,$current:d,transition:null};w.reload=function(){w.transitionTo(w.current,T,{reload:true,inherit:false,notify:false})};w.go=function(t,n,r){return this.transitionTo(t,n,f({inherit:true,relative:w.$current},r))};w.transitionTo=function(n,i,s){i=i||{};s=f({location:true,inherit:false,relative:null,notify:true,reload:false,$retry:false},s||{});var u=w.$current,a=w.params,h=u.path;var p,v=N(n,s.relative);if(!r(v)){var b={to:n,toParams:i,options:s};p=e.$broadcast("$stateNotFound",b,u.self,a);if(p.defaultPrevented){F();return P}if(p.retry){if(s.$retry){F();return H}var x=w.transition=o.when(p.retry);x.then(function(){if(x!==w.transition)return M;b.options.$retry=true;return w.transitionTo(b.to,b.toParams,b.options)},function(){return P});F();return x}n=b.to;i=b.toParams;s=b.options;v=N(n,s.relative);if(!r(v)){if(s.relative)throw new Error("Could not resolve '"+n+"' from state '"+s.relative+"'");throw new Error("No such state '"+n+"'")}}if(v[S])throw new Error("Cannot transition to abstract state '"+n+"'");if(s.inherit)i=m(T,i||{},w.$current,v);n=v;var k=n.path;var L,A,O=d.locals,j=[];for(L=0,A=k[L];A&&A===h[L]&&y(i,a,A.ownParams)&&!s.reload;L++,A=k[L]){O=j[L]=A.locals}if(D(n,u,O,s)){if(n.self.reloadOnSearch!==false)F();w.transition=null;return o.when(w.current)}i=g(n.params,i||{});if(s.notify){p=e.$broadcast("$stateChangeStart",n.self,i,u.self,a);if(p.defaultPrevented){F();return _}}var q=o.when(O);for(var R=L;R<k.length;R++,A=k[R]){O=j[R]=c(O);q=I(A,i,A===n,q,O)}var U=w.transition=q.then(function(){var t,r,o;if(w.transition!==U)return M;for(t=h.length-1;t>=L;t--){o=h[t];if(o.self.onExit){E.invoke(o.self.onExit,o.self,o.locals.globals)}o.locals=null}for(t=L;t<k.length;t++){r=k[t];r.locals=j[t];if(r.self.onEnter){E.invoke(r.self.onEnter,r.self,r.locals.globals)}}if(w.transition!==U)return M;w.$current=n;w.current=n.self;w.params=i;l(w.params,T);w.transition=null;var f=n.navigable;if(s.location&&f){C.url(f.url.format(f.locals.globals.$stateParams));if(s.location==="replace"){C.replace()}}if(s.notify){e.$broadcast("$stateChangeSuccess",n.self,i,u.self,a)}B=C.url();return w.current},function(t){if(w.transition!==U)return M;w.transition=null;e.$broadcast("$stateChangeError",n.self,i,u.self,a,t);F();return o.reject(t)});return U};w.is=function(i,s){var o=N(i);if(!r(o)){return n}if(w.$current!==o){return false}return r(s)&&s!==null?t.equals(T,s):true};w.includes=function(i,o){if(s(i)&&L(i)){if(A(i)){i=w.$current.name}else{return false}}var u=N(i);if(!r(u)){return n}if(!r(w.$current.includes[u.name])){return false}var a=true;t.forEach(o,function(e,t){if(!r(T[t])||T[t]!==e){a=false}});return a};w.href=function(t,n,i){i=f({lossy:true,inherit:false,absolute:false,relative:w.$current},i||{});var s=N(t,i.relative);if(!r(s))return null;n=m(T,n||{},w.$current,s);var o=s&&i.lossy?s.navigable:s;var u=o&&o.url?o.url.format(g(s.params,n||{})):null;if(!p.html5Mode()&&u){u="#"+p.hashPrefix()+u}if(j!=="/"){if(p.html5Mode()){u=j.slice(0,-1)+u}else if(i.absolute){u=j.slice(1)+u}}if(i.absolute&&u){u=C.protocol()+"://"+C.host()+(C.port()==80||C.port()==443?"":":"+C.port())+(!p.html5Mode()&&u?"/":"")+u}return u};w.get=function(e,t){if(!r(e)){var n=[];a(v,function(e){n.push(e.self)});return n}var i=N(e,t);return i&&i.self?i.self:null};return w}function D(e,t,n,r){if(e===t&&(n===t.locals&&!r.reload||e.self.reloadOnSearch===false)){return true}}var d,v={},w,E={},S="abstract";var x={parent:function(e){if(r(e.parent)&&e.parent)return N(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?N(t[1]):d},data:function(e){if(e.parent&&e.parent.data){e.data=e.self.data=f({},e.parent.data,e.data)}return e.data},url:function(e){var t=e.url;if(s(t)){if(t.charAt(0)=="^"){return h.compile(t.substring(1))}return(e.parent.navigable||d).url.concat(t)}if(h.isMatcher(t)||t==null){return t}throw new Error("Invalid url '"+t+"' in state '"+e+"'")},navigable:function(e){return e.url?e:e.parent?e.parent.navigable:null},params:function(e){if(!e.params){return e.url?e.url.parameters():e.parent.params}if(!u(e.params))throw new Error("Invalid params in state '"+e+"'");if(e.url)throw new Error("Both params and url specicified in state '"+e+"'");return e.params},views:function(e){var t={};a(r(e.views)?e.views:{"":e},function(n,r){if(r.indexOf("@")<0)r+="@"+e.parent.name;t[r]=n});return t},ownParams:function(e){if(!e.parent){return e.params}var t={};a(e.params,function(e){t[e]=true});a(e.parent.params,function(n){if(!t[n]){throw new Error("Missing required parameter '"+n+"' in state '"+e.name+"'")}t[n]=false});var n=[];a(t,function(e,t){if(e)n.push(t)});return n},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?f({},e.parent.includes):{};t[e.name]=true;return t},$delegates:{}};d=k({name:"",url:"^",views:null,"abstract":true});d.navigable=null;this.decorator=O;this.state=M;this.$get=_;_.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$location","$urlRouter","$browser"]}function C(){function e(e,t){return{load:function(r,i){var s,o={template:null,controller:null,view:null,locals:null,notify:true,async:true,params:{}};i=f(o,i);if(i.view){s=t.fromConfig(i.view,i.params,i.locals)}if(s&&i.notify){e.$broadcast("$viewContentLoading",i)}return s}}}this.$get=e;e.$inject=["$rootScope","$templateFactory"]}function k(){var e=false;this.useAnchorScroll=function(){e=true};this.$get=["$anchorScroll","$timeout",function(t,n){if(e){return t}return function(e){n(function(){e[0].scrollIntoView()},0,false)}}]}function L(e,n,r){function i(){return n.has?function(e){return n.has(e)?n.get(e):null}:function(e){try{return n.get(e)}catch(t){return null}}}function a(e,t){var n=function(){return{enter:function(e,t,n){t.after(e);n()},leave:function(e,t){e.remove();t()}}};if(u){return{enter:function(e,t,n){u.enter(e,null,t,n)},leave:function(e,t){u.leave(e,t)}}}if(o){var r=o&&o(t,e);return{enter:function(e,t,n){r.enter(e,null,t);n()},leave:function(e,t){r.leave(e);t()}}}return n()}var s=i(),o=s("$animator"),u=s("$animate");var f={restrict:"ECA",terminal:true,priority:400,transclude:"element",compile:function(n,i,s){return function(n,i,o){function v(){if(u){u.remove();u=null}if(l){l.$destroy();l=null}if(f){d.leave(f,function(){u=null});u=f;f=null}}function m(o){var u=n.$new(),a=f&&f.data("$uiViewName"),m=a&&e.$current&&e.$current.locals[a];if(!o&&m===c)return;var g=s(u,function(e){d.enter(e,i,function(){if(t.isDefined(p)&&!p||n.$eval(p)){r(e)}});v()});c=e.$current.locals[g.data("$uiViewName")];f=g;l=u;l.$emit("$viewContentLoaded");l.$eval(h)}var u,f,l,c,h=o.onload||"",p=o.autoscroll,d=a(o,n);n.$on("$stateChangeSuccess",function(){m(false)});n.$on("$viewContentLoading",function(){m(false)});m(true)}}};return f}function A(e,t,n){return{restrict:"ECA",priority:-400,compile:function(r){var i=r.html();return function(r,s,o){var u=o.uiView||o.name||"",a=s.inheritedData("$uiView");if(u.indexOf("@")<0){u=u+"@"+(a?a.state.name:"")}s.data("$uiViewName",u);var f=n.$current,l=f&&f.locals[u];if(!l){return}s.data("$uiView",{name:u,state:l.$$state});s.html(l.$template?l.$template:i);var c=e(s.contents());if(l.$$controller){l.$scope=r;var h=t(l.$$controller,l);if(l.$$controllerAs){r[l.$$controllerAs]=h}s.data("$ngControllerController",h);s.children().data("$ngControllerController",h)}c(r)}}}}function O(e){var t=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/);if(!t||t.length!==4)throw new Error("Invalid state ref '"+e+"'");return{state:t[1],paramExpr:t[3]||null}}function M(e){var t=e.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name){return t.state}}function _(e,n){var r=["location","inherit","reload"];return{restrict:"A",require:"?^uiSrefActive",link:function(i,s,o,u){var a=O(o.uiSref);var f=null,l=null,c=M(s)||e.$current;var h=s[0].nodeName==="FORM";var p=h?"action":"href",d=true;var v={relative:c};var m=i.$eval(o.uiSrefOpts)||{};t.forEach(r,function(e){if(e in m){v[e]=m[e]}});var g=function(t){if(t)f=t;if(!d)return;var n=e.href(a.state,f,v);if(u){u.$$setStateInfo(a.state,f)}if(!n){d=false;return false}s[0][p]=n};if(a.paramExpr){i.$watch(a.paramExpr,function(e,t){if(e!==f)g(e)},true);f=i.$eval(a.paramExpr)}g();if(h)return;s.bind("click",function(t){var r=t.which||t.button;if(!(r>1||t.ctrlKey||t.metaKey||t.shiftKey||s.attr("target"))){n(function(){e.go(a.state,f,v)});t.preventDefault()}})}}}function D(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs",function(r,i,s){function f(){if(e.$current.self===o&&l()){i.addClass(a)}else{i.removeClass(a)}}function l(){return!u||y(u,t)}var o,u,a;a=n(s.uiSrefActive||"",false)(r);this.$$setStateInfo=function(t,n){o=e.get(t,M(i));u=n;f()};r.$on("$stateChangeSuccess",f)}]}}function P(e){return function(t){return e.is(t)}}function H(e){return function(t){return e.includes(t)}}function B(e,t){function o(e){this.locals=e.locals.globals;this.params=this.locals.$stateParams}function u(){this.locals=null;this.params=null}function a(n,a){if(a.redirectTo!=null){var f=a.redirectTo,l;if(s(f)){l=f}else if(i(f)){l=function(e,t){return f(e,t.path(),t.search())}}else{throw new Error("Invalid 'redirectTo' in when()")}t.when(n,l)}else{e.state(c(a,{parent:null,name:"route:"+encodeURIComponent(n),url:n,onEnter:o,onExit:u}))}r.push(a);return this}function f(e,t,i){function o(e){return e.name!==""?e:n}var s={routes:r,params:i,current:n};t.$on("$stateChangeStart",function(e,n,r,i,s){t.$broadcast("$routeChangeStart",o(n),o(i))});t.$on("$stateChangeSuccess",function(e,n,r,i,u){s.current=o(n);t.$broadcast("$routeChangeSuccess",o(n),o(i));l(r,s.params)});t.$on("$stateChangeError",function(e,n,r,i,s,u){t.$broadcast("$routeChangeError",o(n),o(i),u)});return s}var r=[];o.$inject=["$$state"];this.when=a;this.$get=f;f.$inject=["$state","$rootScope","$routeParams"]}var r=t.isDefined,i=t.isFunction,s=t.isString,o=t.isObject,u=t.isArray,a=t.forEach,f=t.extend,l=t.copy;t.module("ui.router.util",["ng"]);t.module("ui.router.router",["ui.router.util"]);t.module("ui.router.state",["ui.router.router","ui.router.util"]);t.module("ui.router",["ui.router.state"]);t.module("ui.router.compat",["ui.router"]);w.$inject=["$q","$injector"];t.module("ui.router.util").service("$resolve",w);E.$inject=["$http","$templateCache","$injector"];t.module("ui.router.util").service("$templateFactory",E);S.prototype.concat=function(e){return new S(this.sourcePath+e+this.sourceSearch)};S.prototype.toString=function(){return this.source};S.prototype.exec=function(e,t){var n=this.regexp.exec(e);if(!n)return null;var r=this.params,i=r.length,s=this.segments.length-1,o={},u;if(s!==n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(u=0;u<s;u++)o[r[u]]=n[u+1];for(;u<i;u++)o[r[u]]=t[r[u]];return o};S.prototype.parameters=function(){return this.params};S.prototype.format=function(e){var t=this.segments,n=this.params;if(!e)return t.join("");var r=t.length-1,i=n.length,s=t[0],o,u,a;for(o=0;o<r;o++){a=e[n[o]];if(a!=null)s+=encodeURIComponent(a);s+=t[o+1]}for(;o<i;o++){a=e[n[o]];if(a!=null){s+=(u?"&":"?")+n[o]+"="+encodeURIComponent(a);u=true}}return s};t.module("ui.router.util").provider("$urlMatcherFactory",x);T.$inject=["$urlMatcherFactoryProvider"];t.module("ui.router.router").provider("$urlRouter",T);N.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider","$locationProvider"];t.module("ui.router.state").value("$stateParams",{}).provider("$state",N);C.$inject=[];t.module("ui.router.state").provider("$view",C);t.module("ui.router.state").provider("$uiViewScroll",k);L.$inject=["$state","$injector","$uiViewScroll"];A.$inject=["$compile","$controller","$state"];t.module("ui.router.state").directive("uiView",L);t.module("ui.router.state").directive("uiView",A);_.$inject=["$state","$timeout"];D.$inject=["$state","$stateParams","$interpolate"];t.module("ui.router.state").directive("uiSref",_).directive("uiSrefActive",D);P.$inject=["$state"];H.$inject=["$state"];t.module("ui.router.state").filter("isState",P).filter("includedByState",H);B.$inject=["$stateProvider","$urlRouterProvider"];t.module("ui.router.compat").provider("$route",B).directive("ngView",L)})(window,window.angular);(function(){function u(e){if(e.$root===e){return}var t=e.$parent;e.$$disconnected=true;if(t.$$childHead===e){t.$$childHead=e.$$nextSibling}if(t.$$childTail===e){t.$$childTail=e.$$prevSibling}if(e.$$prevSibling){e.$$prevSibling.$$nextSibling=e.$$nextSibling}if(e.$$nextSibling){e.$$nextSibling.$$prevSibling=e.$$prevSibling}e.$$nextSibling=e.$$prevSibling=null}function a(e){if(e.$root===e){return}if(!e.$$disconnected){return}var t=e.$parent;e.$$disconnected=false;e.$$prevSibling=t.$$childTail;if(t.$$childHead){t.$$childTail.$$nextSibling=e;t.$$childTail=e}else{t.$$childHead=t.$$childTail=e}}function f(e){return["$log",function(t){function i(e){this.handle=e}var n=this;var r=this._instances=[];this._registerInstance=function(e,t){e.$$delegateHandle=t;r.push(e);return function(){var n=r.indexOf(e);if(n!==-1){r.splice(n,1)}}};this.$getByHandle=function(e){if(!e){return n}return new i(e)};e.forEach(function(e){function s(e,t,n){var r;var i;e.forEach(function(e,s){i=e[t].apply(e,n);if(s===0){r=i}});return r}i.prototype[e]=function(){var n=this.handle;var i=arguments;var s=0;var o;var u;r.forEach(function(t){if(t.$$delegateHandle===n){s++;u=t[e].apply(t,i);if(s===1){o=u}}});if(!s){return t.warn('Delegate for handle "'+this.handle+'" could not find a '+'corresponding element with delegate-handle="'+this.handle+'"! '+e+"() was not called!\n"+"Possible cause: If you are calling "+e+"() immediately, and "+'your element with delegate-handle="'+this.handle+'" is a child of your '+"controller, then your element may not be compiled yet. Put a $timeout "+"around your call to "+e+"() and try again.")}return o};n[e]=function(){var t=arguments;var n;var i;r.forEach(function(r,s){i=r[e].apply(r,t);if(s===0){n=i}});return n}})}]}function w(e){e.$get=function(){return e};return e}function C(e,t){return[function(){return{priority:"99",link:function(n,r,i){i.$observe(e,function(e){if(!e){r[0].removeAttribute(t)}})}}}]}function L(e){return["$ionicGesture","$parse",function(t,n){var r=e.substr(2).toLowerCase();return function(i,s,o){var u=n(o[e]);var a=function(e){i.$apply(function(){u(i,{$event:e})})};var f=t.on(r,a,s);i.$on("$destroy",function(){t.off(f,r,a)})}}]}function A(){return["$ionicScrollDelegate",function(e){return{restrict:"E",link:function(t,n,r){function i(t){var r=3;var i=t.target;while(r--&&i){if(i.classList.contains("button")||i.tagName.match(/input|textarea|select/i)||i.isContentEditable){return}i=i.parentNode}var s=t.gesture&&t.gesture.touches[0]||t.detail.touches[0];var o=n[0].getBoundingClientRect();if(ionic.DomUtil.rectContains(s.pageX,s.pageY,o.left,o.top-20,o.left+o.width,o.top+o.height)){e.scrollTop(true)}}if(r.noTapScroll=="true"){return}ionic.on("tap",i,n[0]);t.$on("$destroy",function(){ionic.off("tap",i,n[0])})}}}]}function O(e){return[function(){return{restrict:"E",compile:function(t,n){function i(t,n,r){var i=new ionic.views.HeaderBar({el:n[0],alignTitle:r.alignTitle||"center"});var s=n[0];if(e){t.$watch(function(){return s.className},function(e){var n=e.indexOf("ng-hide")===-1;var r=e.indexOf("bar-subheader")!==-1;t.$hasHeader=n&&!r;t.$hasSubheader=n&&r});t.$on("$destroy",function(){delete t.$hasHeader;delete t.$hasSubheader})}else{t.$watch(function(){return s.className},function(e){var n=e.indexOf("ng-hide")===-1;var r=e.indexOf("bar-subfooter")!==-1;t.$hasFooter=n&&!r;t.$hasSubfooter=n&&r});t.$on("$destroy",function(){delete t.$hasFooter;delete t.$hasSubfooter});t.$watch("$hasTabs",function(e){n.toggleClass("has-tabs",!!e)})}}t.addClass(e?"bar bar-header":"bar bar-footer");var r=t[0].parentNode;if(r.querySelector(".tabs-top"))t.addClass("has-tabs-top");return{pre:i}}}}]}function B(e){return e.clientHeight}function j(e){e.stopPropagation()}var e={method:function(e,t,n){var r=false;return function(){if(!r){r=true;t(e)}return n.apply(this,arguments)}},field:function(e,t,n,r,i){var s=false;var o=function(){if(!s){s=true;t(e)}return i};var u=function(n){if(!s){s=true;t(e)}i=n;return n};Object.defineProperty(n,r,{get:o,set:u,enumerable:true});return}};var t=angular.module("ionic",["ngAnimate","ngSanitize","ui.router"]),n=angular.extend,r=angular.forEach,i=angular.isDefined,s=angular.isString,o=angular.element;t.factory("$ionicActionSheet",["$rootScope","$compile","$animate","$timeout","$ionicTemplateLoader","$ionicPlatform","$ionicBody",function(e,t,n,r,i,s,u){function a(i){var a=e.$new(true);angular.extend(a,{cancel:angular.noop,destructiveButtonClicked:angular.noop,buttonClicked:angular.noop,$deregisterBackButton:angular.noop,buttons:[],cancelOnStateChange:true},i||{});var f=a.element=t('<ion-action-sheet buttons="buttons"></ion-action-sheet>')(a);var l=o(f[0].querySelector(".action-sheet-wrapper"));var c=a.cancelOnStateChange?e.$on("$stateChangeSuccess",function(){a.cancel()}):angular.noop;a.removeSheet=function(e){if(a.removed)return;a.removed=true;l.removeClass("action-sheet-up");r(function(){u.removeClass("action-sheet-open")},400);a.$deregisterBackButton();c();n.removeClass(f,"active",function(){a.$destroy();f.remove();a.cancel.$scope=null;(e||angular.noop)()})};a.showSheet=function(e){if(a.removed)return;u.append(f).addClass("action-sheet-open");n.addClass(f,"active",function(){if(a.removed)return;(e||angular.noop)()});r(function(){if(a.removed)return;l.addClass("action-sheet-up")},20,false)};a.$deregisterBackButton=s.registerBackButtonAction(function(){r(a.cancel)},g);a.cancel=function(){a.removeSheet(i.cancel)};a.buttonClicked=function(e){if(i.buttonClicked(e,i.buttons[e])===true){a.removeSheet()}};a.destructiveButtonClicked=function(){if(i.destructiveButtonClicked()===true){a.removeSheet()}};a.showSheet();a.cancel.$scope=a;return a.cancel}return{show:a}}]);o.prototype.addClass=function(e){var t,n,r,i,s,o;if(e&&e!="ng-scope"&&e!="ng-isolate-scope"){for(t=0;t<this.length;t++){i=this[t];if(i.setAttribute){if(e.indexOf(" ")<0&&i.classList.add){i.classList.add(e)}else{o=(" "+(i.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");s=e.split(" ");for(n=0;n<s.length;n++){r=s[n].trim();if(o.indexOf(" "+r+" ")===-1){o+=r+" "}}i.setAttribute("class",o.trim())}}}}return this};o.prototype.removeClass=function(e){var t,n,r,i,s;if(e){for(t=0;t<this.length;t++){s=this[t];if(s.getAttribute){if(e.indexOf(" ")<0&&s.classList.remove){s.classList.remove(e)}else{r=e.split(" ");for(n=0;n<r.length;n++){i=r[n];s.setAttribute("class",(" "+(s.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+i.trim()+" "," ").trim())}}}}}return this};t.factory("$ionicBackdrop",["$document","$timeout",function(e,t){function i(){if(++r===1){n.addClass("visible");ionic.requestAnimationFrame(function(){r&&n.addClass("active")})}}function s(){if(--r===0){n.removeClass("active");t(function(){!r&&n.removeClass("visible")},400,false)}}function u(){return n}var n=o('<div class="backdrop">');var r=0;e[0].body.appendChild(n[0]);return{retain:i,release:s,getElement:u,_element:n}}]);t.factory("$ionicBind",["$parse","$interpolate",function(e,t){var n=/^\s*([@=&])(\??)\s*(\w*)\s*$/;return function(i,s,o){r(o||{},function(r,o){var u=r.match(n)||[],a=u[3]||o,f=u[1],l,c;switch(f){case"@":if(!s[a]){return}s.$observe(a,function(e){i[o]=e});if(s[a]){i[o]=t(s[a])(i)}break;case"=":if(!s[a]){return}c=i.$watch(s[a],function(e){i[o]=e});i.$on("$destroy",c);break;case"&":if(s[a]&&s[a].match(RegExp(o+"(.*?)"))){throw new Error('& expression binding "'+o+'" looks like it will recursively call "'+s[a]+'" and cause a stack overflow! Please choose a different scopeName.')}l=e(s[a]);i[o]=function(e){return l(i,e)};break}})}}]);t.factory("$ionicBody",["$document",function(e){return{addClass:function(){for(var t=0;t<arguments.length;t++){e[0].body.classList.add(arguments[t])}return this},removeClass:function(){for(var t=0;t<arguments.length;t++){e[0].body.classList.remove(arguments[t])}return this},enableClass:function(e){var t=Array.prototype.slice.call(arguments).slice(1);if(e){this.addClass.apply(this,t)}else{this.removeClass.apply(this,t)}return this},append:function(t){e[0].body.appendChild(t.length?t[0]:t);return this},get:function(){return e[0].body}}}]);t.factory("$ionicClickBlock",["$document","$ionicBody","$timeout",function(e,t,n){var r=e[0].createElement("div");r.className="click-block";return{show:function(){if(r.parentElement){r.classList.remove("hide")}else{t.append(r)}n(function(){r.classList.add("hide")},500)},hide:function(){r.classList.add("hide")}}}]);t.factory("$collectionDataSource",["$cacheFactory","$parse","$rootScope",function(e,t,n){function r(e){e.css(ionic.CSS.TRANSFORM,"translate3d(-2000px,-2000px,0)")}function i(e){var t=this;this.scope=e.scope;this.transcludeFn=e.transcludeFn;this.transcludeParent=e.transcludeParent;this.element=e.element;this.keyExpr=e.keyExpr;this.listExpr=e.listExpr;this.trackByExpr=e.trackByExpr;this.heightGetter=e.heightGetter;this.widthGetter=e.widthGetter;this.dimensions=[];this.data=[];this.attachedItems={};this.BACKUP_ITEMS_LENGTH=20;this.backupItemsArray=[]}i.prototype={setup:function(){if(this.isSetup)return;this.isSetup=true;for(var e=0;e<this.BACKUP_ITEMS_LENGTH;e++){this.detachItem(this.createItem())}},destroy:function(){this.dimensions.length=0;this.data=null;this.backupItemsArray.length=0;this.attachedItems={}},calculateDataDimensions:function(){var e={};this.dimensions=this.data.map(function(t,n){e[this.keyExpr]=t;e.$index=n;return{width:this.widthGetter(this.scope,e),height:this.heightGetter(this.scope,e)}},this);this.dimensions=this.beforeSiblings.concat(this.dimensions).concat(this.afterSiblings);this.dataStartIndex=this.beforeSiblings.length},createItem:function(){var e={};e.scope=this.scope.$new();this.transcludeFn(e.scope,function(t){t.css("position","absolute");e.element=t});this.transcludeParent.append(e.element);return e},getItem:function(e){if(item=this.attachedItems[e]){}else if(item=this.backupItemsArray.pop()){a(item.scope)}else{item=this.createItem()}return item},attachItemAtIndex:function(e){if(e<this.dataStartIndex){return this.beforeSiblings[e]}e-=this.dataStartIndex;if(e>this.data.length-1){return this.afterSiblings[e-this.dataStartIndex]}var t=this.getItem(e);var r=this.data[e];if(t.index!==e||t.scope[this.keyExpr]!==r){t.index=t.scope.$index=e;t.scope[this.keyExpr]=r;t.scope.$first=e===0;t.scope.$last=e===this.getLength()-1;t.scope.$middle=!(t.scope.$first||t.scope.$last);t.scope.$odd=!(t.scope.$even=(e&1)===0);if(!n.$$phase){t.scope.$digest()}}this.attachedItems[e]=t;return t},destroyItem:function(e){e.element.remove();e.scope.$destroy();e.scope=null;e.element=null},detachItem:function(e){delete this.attachedItems[e.index];if(e.isOutside){r(e.element)}else if(this.backupItemsArray.length>=this.BACKUP_ITEMS_LENGTH){this.destroyItem(e)}else{this.backupItemsArray.push(e);r(e.element);u(e.scope)}},getLength:function(){return this.dimensions&&this.dimensions.length||0},setData:function(e,t,n){this.data=e||[];this.beforeSiblings=t||[];this.afterSiblings=n||[];this.calculateDataDimensions();this.afterSiblings.forEach(function(e){e.element.css({position:"absolute",top:"0",left:"0"});r(e.element)})}};return i}]);t.factory("$collectionRepeatManager",["$rootScope","$timeout",function(e,t){function n(e){function n(){return t.viewportSize}var t=this;this.dataSource=e.dataSource;this.element=e.element;this.scrollView=e.scrollView;this.isVertical=!!this.scrollView.options.scrollingY;this.renderedItems={};this.dimensions=[];this.setCurrentIndex(0);this.scrollView.__$callback=this.scrollView.__callback;this.scrollView.__callback=angular.bind(this,this.renderScroll);if(this.isVertical){this.scrollView.options.getContentHeight=n;this.scrollValue=function(){return this.scrollView.__scrollTop};this.scrollMaxValue=function(){return this.scrollView.__maxScrollTop};this.scrollSize=function(){return this.scrollView.__clientHeight};this.secondaryScrollSize=function(){return this.scrollView.__clientWidth};this.transformString=function(e,t){return"translate3d("+t+"px,"+e+"px,0)"};this.primaryDimension=function(e){return e.height};this.secondaryDimension=function(e){return e.width}}else{this.scrollView.options.getContentWidth=n;this.scrollValue=function(){return this.scrollView.__scrollLeft};this.scrollMaxValue=function(){return this.scrollView.__maxScrollLeft};this.scrollSize=function(){return this.scrollView.__clientWidth};this.secondaryScrollSize=function(){return this.scrollView.__clientHeight};this.transformString=function(e,t){return"translate3d("+e+"px,"+t+"px,0)"};this.primaryDimension=function(e){return e.width};this.secondaryDimension=function(e){return e.height}}}n.prototype={destroy:function(){this.renderedItems={};this.render=angular.noop;this.calculateDimensions=angular.noop;this.dimensions=[]},calculateDimensions:function(){function u(i){var s={primarySize:this.primaryDimension(i),secondarySize:Math.min(this.secondaryDimension(i),n)};if(r){t+=r.secondarySize;if(r.primaryPos===e&&t+s.secondarySize>n){t=0;e+=r.primarySize}}s.primaryPos=e;s.secondaryPos=t;r=s;return s}var e=0;var t=0;var n=this.secondaryScrollSize();var r;this.dataSource.beforeSiblings&&this.dataSource.beforeSiblings.forEach(u,this);var i=e+(r?r.primarySize:0);e=t=0;r=null;var s=this.dataSource.dimensions.map(u,this);var o=e+(r?r.primarySize:0);return{beforeSize:i,totalSize:o,dimensions:s}},resize:function(){var e=this.calculateDimensions();this.dimensions=e.dimensions;this.viewportSize=e.totalSize;this.beforeSize=e.beforeSize;this.setCurrentIndex(0);this.render(true);this.dataSource.setup()},setCurrentIndex:function(e,t){var n=(this.dimensions[e]||{}).primaryPos||0;this.currentIndex=e;this.hasPrevIndex=e>0;if(this.hasPrevIndex){this.previousPos=Math.max(n-this.dimensions[e-1].primarySize,this.dimensions[e-1].primaryPos)}this.hasNextIndex=e+1<this.dataSource.getLength();if(this.hasNextIndex){this.nextPos=Math.min(n+this.dimensions[e+1].primarySize,this.dimensions[e+1].primaryPos)}},renderScroll:ionic.animationFrameThrottle(function(e,t,n,r){if(this.isVertical){this.renderIfNeeded(t)}else{this.renderIfNeeded(e)}return this.scrollView.__$callback(e,t,n,r)}),renderIfNeeded:function(e){if(this.hasNextIndex&&e>=this.nextPos||this.hasPrevIndex&&e<this.previousPos){this.render()}},getIndexForScrollValue:function(e,t){var n;if(t<=this.dimensions[e].primaryPos){while((n=this.dimensions[e-1])&&n.primaryPos>t){e--}}else{while((n=this.dimensions[e+1])&&n.primaryPos<t){e++}}return e},render:function(e){function h(e,n){if(e<t.dataSource.dataStartIndex){}else{t.renderItem(e,n.primaryPos-t.beforeSize,n.secondaryPos)}}var t=this;var n;var r=this.currentIndex>=this.dataSource.getLength();if(r||e){for(n in this.renderedItems){this.removeItem(n)}if(r)return}var i;var s=this.scrollValue();var o=this.scrollSize();var u=o+s;var a=this.getIndexForScrollValue(this.currentIndex,s);var f=Math.max(a-1,0);while(f>0&&(i=this.dimensions[f])&&i.primaryPos===this.dimensions[a-1].primaryPos){f--}n=f;while((i=this.dimensions[n])&&i.primaryPos-i.primarySize<u){h(n,i);n++}if(t.dimensions[n]){h(n,t.dimensions[n]);n++}if(t.dimensions[n]){h(n,t.dimensions[n])}var l=n;for(var c in this.renderedItems){if(c<f||c>l){this.removeItem(c)}}this.setCurrentIndex(a)},renderItem:function(e,t,n){var r=this.dataSource.attachItemAtIndex(e);if(r&&r.element){if(r.primaryPos!==t||r.secondaryPos!==n){r.element.css(ionic.CSS.TRANSFORM,this.transformString(t,n));r.primaryPos=t;r.secondaryPos=n}this.renderedItems[e]=r}else{delete this.renderedItems[e]}},removeItem:function(e){var t=this.renderedItems[e];if(t){t.primaryPos=t.secondaryPos=null;this.dataSource.detachItem(t);delete this.renderedItems[e]}}};return n}]);t.factory("$ionicGesture",[function(){return{on:function(e,t,n,r){return window.ionic.onGesture(e,t,n[0],r)},off:function(e,t,n){return window.ionic.offGesture(e,t,n)}}}]);t.provider("$ionicConfig",function(){var e=this;var t={prefetchTemplates:true};this.prefetchTemplates=function(e){if(arguments.length){t.prefetchTemplates=e}return t.prefetchTemplates};this.$get=function(){return t}});var l='<div class="loading-container">'+'<div class="loading">'+"</div>"+"</div>";var c="$ionicLoading instance.hide() has been deprecated. Use $ionicLoading.hide().";var h="$ionicLoading instance.show() has been deprecated. Use $ionicLoading.show().";var p="$ionicLoading instance.setContent() has been deprecated. Use $ionicLoading.show({ template: 'my content' }).";t.constant("$ionicLoadingConfig",{template:'<i class="icon ion-loading-d"></i>'}).factory("$ionicLoading",["$ionicLoadingConfig","$ionicBody","$ionicTemplateLoader","$ionicBackdrop","$timeout","$q","$log","$compile","$ionicPlatform",function(t,r,i,s,o,u,a,f,d){function y(){if(!v){v=i.compile({template:l,appendTo:r.get()}).then(function(e){var t=e;e.show=function(e){var n=e.templateUrl?i.load(e.templateUrl):u.when(e.template||e.content||"");if(!this.isShown){this.hasBackdrop=!e.noBackdrop&&e.showBackdrop!==false;if(this.hasBackdrop){s.retain();s.getElement().addClass("backdrop-loading")}}if(e.duration){o.cancel(this.durationTimeout);this.durationTimeout=o(angular.bind(this,this.hide),+e.duration)}n.then(function(e){if(e){var n=t.element.children();n.html(e);f(n.contents())(t.scope)}if(t.isShown){t.element.addClass("visible");ionic.requestAnimationFrame(function(){if(t.isShown){t.element.addClass("active");r.addClass("loading-active")}})}});this.isShown=true};e.hide=function(){if(this.isShown){if(this.hasBackdrop){s.release();s.getElement().removeClass("backdrop-loading")}t.element.removeClass("active");r.removeClass("loading-active");setTimeout(function(){!t.isShown&&t.element.removeClass("visible")},200)}o.cancel(this.durationTimeout);this.isShown=false};return e})}return v}function w(r){r=n(t||{},r||{});var i=r.delay||r.showDelay||0;g&&o.cancel(g);g=o(angular.noop,i);g.then(y).then(function(e){m();m=d.registerBackButtonAction(angular.noop,b);return e.show(r)});return{hide:e.method(c,a.error,E),show:e.method(h,a.error,function(){w(r)}),setContent:e.method(p,a.error,function(e){y().then(function(t){t.show({template:e})})})}}function E(){m();o.cancel(g);y().then(function(e){e.hide()})}var v;var m=angular.noop;var g=u.when();return{show:w,hide:E,_getLoader:y}}]);t.factory("$ionicModal",["$rootScope","$ionicBody","$compile","$timeout","$ionicPlatform","$ionicTemplateLoader","$q","$log",function(e,t,r,i,s,u,a,f){var l=ionic.views.Modal.inherit({initialize:function(e){ionic.views.Modal.prototype.initialize.call(this,e);this.animation=e.animation||"slide-in-up"},show:function(e){var n=this;if(n.scope.$$destroyed){f.error("Cannot call "+n.viewType+".show() after remove(). Please create a new "+n.viewType+" instance.");return}var r=o(n.modalEl);n.el.classList.remove("hide");i(function(){t.addClass(n.viewType+"-open")},400);if(!n.el.parentElement){r.addClass(n.animation);t.append(n.el)}if(e&&n.positionView){n.positionView(e,r)}r.addClass("ng-enter active").removeClass("ng-leave ng-leave-active");n._isShown=true;n._deregisterBackButton=s.registerBackButtonAction(n.hardwareBackButtonClose?angular.bind(n,n.hide):angular.noop,m);n._isOpenPromise=a.defer();ionic.views.Modal.prototype.show.call(n);i(function(){r.addClass("ng-enter-active");ionic.trigger("resize");n.scope.$parent&&n.scope.$parent.$broadcast(n.viewType+".shown",n);n.el.classList.add("active")},20);return i(function(){n.$el.on("click",function(e){if(n.backdropClickToClose&&e.target===n.el){n.hide()}})},400)},hide:function(){var e=this;var n=o(e.modalEl);e.el.classList.remove("active");n.addClass("ng-leave");i(function(){n.addClass("ng-leave-active").removeClass("ng-enter ng-enter-active active")},20);e.$el.off("click");e._isShown=false;e.scope.$parent&&e.scope.$parent.$broadcast(e.viewType+".hidden",e);e._deregisterBackButton&&e._deregisterBackButton();ionic.views.Modal.prototype.hide.call(e);return i(function(){t.removeClass(e.viewType+"-open");e.el.classList.add("hide")},e.hideDelay||320)},remove:function(){var e=this;e.scope.$parent&&e.scope.$parent.$broadcast(e.viewType+".removed",e);return e.hide().then(function(){e.scope.$destroy();e.$el.remove()})},isShown:function(){return!!this._isShown}});var c=function(t,i){var s=i.scope&&i.scope.$new()||e.$new(true);i.viewType=i.viewType||"modal";n(s,{$hasHeader:false,$hasSubheader:false,$hasFooter:false,$hasSubfooter:false,$hasTabs:false,$hasTabsTop:false});var o=r("<ion-"+i.viewType+">"+t+"</ion-"+i.viewType+">")(s);i.$el=o;i.el=o[0];i.modalEl=i.el.querySelector("."+i.viewType);var u=new l(i);u.scope=s;if(!i.scope){s[i.viewType]=u}return u};return{fromTemplate:function(e,t){var n=c(e,t||{});return n},fromTemplateUrl:function(e,t,n){var r;if(angular.isFunction(t)){r=t;t=n}return u.load(e).then(function(e){var n=c(e,t||{});r&&r(n);return n})}}}]);t.service("$ionicNavBarDelegate",f(["back","align","showBackButton","showBar","setTitle","changeTitle","getTitle","getPreviousTitle"]));var d=100;var v=150;var m=200;var g=300;var y=400;var b=500;t.constant("$ionicPlatformDefaults",{ios:{$ionicNavBarConfig:{transition:"nav-title-slide-ios",alignTitle:"center",backButtonIcon:"ion-ios7-arrow-back"},$ionicNavViewConfig:{transition:"slide-ios"},$ionicTabsConfig:{type:"",position:""}},android:{$ionicNavBarConfig:{transition:"nav-title-slide-full",alignTitle:"center",backButtonIcon:"ion-ios7-arrow-back"},$ionicNavViewConfig:{transition:"slide-full"},$ionicTabsConfig:{type:"tabs-striped",position:""}}});t.config(["$ionicPlatformDefaults","$injector",function(e,t){var i=ionic.Platform.platform();var s=function(e){r(e,function(e,r){n(t.get(r),e)})};switch(i){case"ios":s(e.ios);break;case"android":s(e.android);break}}]);t.provider("$ionicPlatform",function(){return{$get:["$q","$rootScope",function(e,t){var n={onHardwareBackButton:function(e){ionic.Platform.ready(function(){document.addEventListener("backbutton",e,false)})},offHardwareBackButton:function(e){ionic.Platform.ready(function(){document.removeEventListener("backbutton",e)})},$backButtonActions:{},registerBackButtonAction:function(e,t,r){if(!n._hasBackButtonHandler){n.$backButtonActions={};n.onHardwareBackButton(n.hardwareBackButtonClick);n._hasBackButtonHandler=true}var i={id:r?r:ionic.Utils.nextUid(),priority:t?t:0,fn:e};n.$backButtonActions[i.id]=i;return function(){delete n.$backButtonActions[i.id]}},hardwareBackButtonClick:function(e){var t,r;for(r in n.$backButtonActions){if(!t||n.$backButtonActions[r].priority>=t.priority){t=n.$backButtonActions[r]}}if(t){t.fn(e);return t}},is:function(e){return ionic.Platform.is(e)},on:function(e,t){ionic.Platform.ready(function(){document.addEventListener(e,t,false)});return function(){ionic.Platform.ready(function(){document.removeEventListener(e,t)})}},ready:function(t){var n=e.defer();ionic.Platform.ready(function(){n.resolve();t&&t()});return n.promise}};return n}]}});t.factory("$ionicPopover",["$ionicModal","$ionicPosition","$document","$window",function(e,t,n,r){function u(e,s){var u=angular.element(e.target||e);var a=t.offset(u);var f=s.prop("offsetWidth");var l=s.prop("offsetHeight");var c=n[0].body.clientWidth;var h=r.innerHeight;var p={left:a.left+a.width/2-f/2};var d=o(s[0].querySelector(".popover-arrow"));if(p.left<i){p.left=i}else if(p.left+f+i>c){p.left=c-f-i}if(a.top+a.height+l>h){p.top=a.top-l;s.addClass("popover-bottom")}else{p.top=a.top+a.height;s.removeClass("popover-bottom")}d.css({left:a.left+a.width/2-d.prop("offsetWidth")/2-p.left+"px"});s.css({top:p.top+"px",left:p.left+"px",marginLeft:"0",opacity:"1"})}var i=6;var s={viewType:"popover",hideDelay:1,animation:"none",positionView:u};return{fromTemplate:function(t,n){return e.fromTemplate(t,ionic.Utils.extend(n||{},s))},fromTemplateUrl:function(t,n,r){return e.fromTemplateUrl(t,n,ionic.Utils.extend(n||{},s))}}}]);var E='<div class="popup-container">'+'<div class="popup">'+'<div class="popup-head">'+'<h3 class="popup-title" ng-bind-html="title"></h3>'+'<h5 class="popup-sub-title" ng-bind-html="subTitle" ng-if="subTitle"></h5>'+"</div>"+'<div class="popup-body">'+"</div>"+'<div class="popup-buttons">'+'<button ng-repeat="button in buttons" ng-click="$buttonTapped(button, $event)" class="button" ng-class="button.type || \'button-default\'" ng-bind-html="button.text"></button>'+"</div>"+"</div>"+"</div>";t.factory("$ionicPopup",["$ionicTemplateLoader","$ionicBackdrop","$q","$timeout","$rootScope","$ionicBody","$compile","$ionicPlatform",function(e,t,r,i,s,u,a,f){function p(t){t=n({scope:null,title:"",buttons:[]},t||{});var s=e.compile({template:E,scope:t.scope&&t.scope.$new(),appendTo:u.get()});var f=t.templateUrl?e.load(t.templateUrl):r.when(t.template||t.content||"");return r.all([s,f]).then(function(e){var s=e[0];var u=e[1];var f=r.defer();s.responseDeferred=f;var l=o(s.element[0].querySelector(".popup-body"));if(u){l.html(u);a(l.contents())(s.scope)}else{l.remove()}n(s.scope,{title:t.title,buttons:t.buttons,subTitle:t.subTitle,$buttonTapped:function(e,t){var n=(e.onTap||angular.noop)(t);t=t.originalEvent||t;if(!t.defaultPrevented){f.resolve(n)}}});s.show=function(){if(s.isShown)return;s.isShown=true;ionic.requestAnimationFrame(function(){if(!s.isShown)return;s.element.removeClass("popup-hidden");s.element.addClass("popup-showing active");m(s.element)})};s.hide=function(e){e=e||angular.noop;if(!s.isShown)return e();s.isShown=false;s.element.removeClass("active");s.element.addClass("popup-hidden");i(e,250)};s.remove=function(){if(s.removed)return;s.hide(function(){s.element.remove();s.scope.$destroy()});s.removed=true};return s})}function d(e){c[0]&&c[0].responseDeferred.resolve()}function v(e){function o(e){n.then(function(t){if(!t.removed){t.responseDeferred.resolve(e)}})}var n=h._createPopup(e);var r=c[0];if(r){r.hide()}var s=i(angular.noop,r?l.stackPushDelay:0).then(function(){return n}).then(function(e){if(!r){u.addClass("popup-open");t.retain();h._backButtonActionDone=f.registerBackButtonAction(d,y)}c.unshift(e);e.show();e.responseDeferred.notify({close:s.close});return e.responseDeferred.promise.then(function(n){var r=c.indexOf(e);if(r!==-1){c.splice(r,1)}e.remove();var s=c[0];if(s){s.show()}else{i(function(){u.removeClass("popup-open")},400);t.release();(h._backButtonActionDone||angular.noop)()}return n})});s.close=o;return s}function m(e){var t=e[0].querySelector("[autofocus]");if(t){t.focus()}}function g(e){return v(n({buttons:[{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(e){return true}}]},e||{}))}function b(e){return v(n({buttons:[{text:e.cancelText||"Cancel",type:e.cancelType||"button-default",onTap:function(e){return false}},{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(e){return true}}]},e||{}))}function w(e){var t=s.$new(true);t.data={};var r="";if(e.template&&/<[a-z][\s\S]*>/i.test(e.template)===false){r="<span>"+e.template+"</span>";delete e.template}return v(n({template:r+'<input ng-model="data.response" type="'+(e.inputType||"text")+'" placeholder="'+(e.inputPlaceholder||"")+'">',scope:t,buttons:[{text:e.cancelText||"Cancel",type:e.cancelType||"button-default",onTap:function(e){}},{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(e){return t.data.response||""}}]},e||{}))}var l={stackPushDelay:75};var c=[];var h={show:v,alert:g,confirm:b,prompt:w,_createPopup:p,_popupStack:c};return h}]);t.factory("$ionicPosition",["$document","$window",function(e,t){function n(e,n){if(e.currentStyle){return e.currentStyle[n]}else if(t.getComputedStyle){return t.getComputedStyle(e)[n]}return e.style[n]}function r(e){return(n(e,"position")||"static")==="static"}var i=function(t){var n=e[0];var i=t.offsetParent||n;while(i&&i!==n&&r(i)){i=i.offsetParent}return i||n};return{position:function(t){var n=this.offset(t);var r={top:0,left:0};var s=i(t[0]);if(s!=e[0]){r=this.offset(angular.element(s));r.top+=s.clientTop-s.scrollTop;r.left+=s.clientLeft-s.scrollLeft}var o=t[0].getBoundingClientRect();return{width:o.width||t.prop("offsetWidth"),height:o.height||t.prop("offsetHeight"),top:n.top-r.top,left:n.left-r.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}}]);t.service("$ionicScrollDelegate",f(["resize","scrollTop","scrollBottom","scrollTo","scrollBy","zoomTo","zoomBy","getScrollPosition","anchorScroll","getScrollView","rememberScrollPosition","forgetScrollPosition","scrollToRememberedPosition"]));t.service("$ionicSideMenuDelegate",f(["toggleLeft","toggleRight","getOpenRatio","isOpen","isOpenLeft","isOpenRight","canDragContent","edgeDragThreshold"]));t.service("$ionicSlideBoxDelegate",f(["update","slide","enableSlide","previous","next","stop","start","currentIndex","slidesCount"]));t.service("$ionicTabsDelegate",f(["select","selectedIndex"]));(function(){var e=[];t.factory("$ionicTemplateCache",["$http","$templateCache","$timeout","$ionicConfig",function(t,n,i,o){function f(e){if(u.length>500)return false;if(typeof e==="undefined")return l();if(s(e))e=[e];r(e,function(e){u.push(e)});if(a)l()}var u=e,a=false;var l=function(){if(o.prefetchTemplates===false)return;f._runCount++;a=true;if(u.length===0)return;var e=0;while(e<5&&(template=u.pop())){if(s(template))t.get(template,{cache:n});e++}if(u.length)i(function(){l()},1e3)};f._runCount=0;return f}]).config(["$stateProvider","$ionicConfigProvider",function(t,n){var r=t.state;t.state=function(i,o){if(typeof o==="object"&&n.prefetchTemplates()!==false){var u=o.prefetchTemplate!==false;if(u&&s(o.templateUrl))e.push(o.templateUrl);if(angular.isObject(o.views)){for(var a in o.views){u=o.views[a].prefetchTemplate!==false;if(u&&s(o.views[a].templateUrl))e.push(o.views[a].templateUrl)}}}return r.call(t,i,o)}}]).run(["$ionicTemplateCache",function(e){e()}])})();t.factory("$ionicTemplateLoader",["$compile","$controller","$http","$q","$rootScope","$templateCache",function(e,t,r,i,s,u){function a(e){return r.get(e,{cache:u}).then(function(e){return e.data&&e.data.trim()})}function f(r){r=n({template:"",templateUrl:"",scope:null,controller:null,locals:{},appendTo:null},r||{});var u=r.templateUrl?this.load(r.templateUrl):i.when(r.template);return u.then(function(i){var u;var a=r.scope||s.$new();var f=o("<div>").html(i).contents();if(r.controller){u=t(r.controller,n(r.locals,{$scope:a}));f.children().data("$ngControllerController",u)}if(r.appendTo){o(r.appendTo).append(f)}e(f)(a);return{element:f,scope:a}})}return{load:a,compile:f}}]);t.run(["$rootScope","$state","$location","$document","$animate","$ionicPlatform","$ionicViewService",function(e,t,n,r,i,s,o){function u(t){if(e.$viewHistory.backView){e.$viewHistory.backView.go()}else{ionic.Platform.exitApp()}t.preventDefault();return false}e.$viewHistory={histories:{root:{historyId:"root",parentHistoryId:null,stack:[],cursor:-1}},views:{},backView:null,forwardView:null,currentView:null,disabledRegistrableTagNames:[]};if(o.disableRegisterByTagName){o.disableRegisterByTagName("ion-tabs");o.disableRegisterByTagName("ion-side-menus")}e.$on("$stateChangeStart",function(){ionic.keyboard.hide()});e.$on("viewState.changeHistory",function(r,i){if(!i)return;var s=i.historyId?e.$viewHistory.histories[i.historyId]:null;if(s&&s.cursor>-1&&s.cursor<s.stack.length){var o=s.stack[s.cursor];return o.go(i)}if(!i.url&&i.uiSref){i.url=t.href(i.uiSref)}if(i.url){if(i.url.indexOf("#")===0){i.url=i.url.replace("#","")}if(i.url!==n.url()){n.url(i.url)}}});e.$on("viewState.viewEnter",function(e,t){if(t&&t.title){r[0].title=t.title}});s.registerBackButtonAction(u,d)}]).factory("$ionicViewService",["$rootScope","$state","$location","$window","$injector","$animate","$ionicNavViewConfig","$ionicClickBlock",function(e,t,n,r,i,s,o,u){function f(e){return ionic.Utils.nextUid()}var a=function(){};a.prototype.initialize=function(e){if(e){for(var t in e)this[t]=e[t];return this}return null};a.prototype.go=function(){if(this.stateName){return t.go(this.stateName,this.stateParams)}if(this.url&&this.url!==n.url()){if(e.$viewHistory.backView===this){return r.history.go(-1)}else if(e.$viewHistory.forwardView===this){return r.history.go(1)}n.url(this.url);return}return null};a.prototype.destroy=function(){if(this.scope){this.scope.$destroy&&this.scope.$destroy();this.scope=null}};return{register:function(t,r){var i=e.$viewHistory,s=this.getCurrentStateId(),o=this._getHistory(t),u=i.currentView,a=i.backView,l=i.forwardView,c=this.nextViewOptions(),h={viewId:null,navAction:null,navDirection:null,historyId:o.historyId};if(r&&!this.isTagNameRegistrable(r)){h.navAction="disabledByTagName";return h}if(u&&u.stateId===s&&u.historyId===o.historyId){h.navAction="noChange";return h}if(i.forcedNav){ionic.Utils.extend(h,i.forcedNav);e.$viewHistory.forcedNav=null}else if(a&&a.stateId===s){h.viewId=a.viewId;h.navAction="moveBack";h.viewId=a.viewId;if(a.historyId===u.historyId){h.navDirection="back"}}else if(l&&l.stateId===s){h.viewId=l.viewId;h.navAction="moveForward";if(l.historyId===u.historyId){h.navDirection="forward"}var p=this._getParentHistoryObj(t);if(l.historyId&&p.scope){p.scope.$historyId=l.historyId;h.historyId=l.historyId}}else if(u&&u.historyId!==o.historyId&&o.cursor>-1&&o.stack.length>0&&o.cursor<o.stack.length&&o.stack[o.cursor].stateId===s){var d=o.stack[o.cursor];h.viewId=d.viewId;h.navAction="moveBack";var v=this._getViewById(d.backViewId);if(v&&d.historyId!==v.historyId){o.stack[o.cursor].backViewId=u.viewId}}else{h.viewId=f(s);if(u){u.forwardViewId=h.viewId;if(o.historyId===u.historyId){h.navDirection="forward"}h.navAction="newView";if(l&&u.stateId!==l.stateId&&u.historyId===l.historyId){var m=this._getHistoryById(l.historyId);if(m){for(var g=m.stack.length-1;g>=l.index;g--){m.stack[g].destroy();m.stack.splice(g)}}}}else{h.navAction="initialView"}i.views[h.viewId]=this.createView({viewId:h.viewId,index:o.stack.length,historyId:o.historyId,backViewId:u&&u.viewId?u.viewId:null,forwardViewId:null,stateId:s,stateName:this.getCurrentStateName(),stateParams:this.getCurrentStateParams(),url:n.url()});if(h.navAction=="moveBack"){e.$emit("$viewHistory.viewBack",u.viewId,h.viewId)}o.stack.push(i.views[h.viewId])}if(c){if(c.disableAnimate)h.navDirection=null;if(c.disableBack)i.views[h.viewId].backViewId=null;this.nextViewOptions(null)}this.setNavViews(h.viewId);o.cursor=i.currentView.index;return h},setNavViews:function(t){var n=e.$viewHistory;n.currentView=this._getViewById(t);n.backView=this._getBackView(n.currentView);n.forwardView=this._getForwardView(n.currentView);e.$broadcast("$viewHistory.historyChange",{showBack:n.backView&&n.backView.historyId===n.currentView.historyId})},registerHistory:function(e){e.$historyId=ionic.Utils.nextUid()},createView:function(e){var t=new a;return t.initialize(e)},getCurrentView:function(){return e.$viewHistory.currentView},getBackView:function(){return e.$viewHistory.backView},getForwardView:function(){return e.$viewHistory.forwardView},getNavDirection:function(){return e.$viewHistory.navDirection},getCurrentStateName:function(){return t&&t.current?t.current.name:null},isCurrentStateNavView:function(e){return t&&t.current&&t.current.views&&t.current.views[e]?true:false},getCurrentStateParams:function(){var e;if(t&&t.params){for(var n in t.params){if(t.params.hasOwnProperty(n)){e=e||{};e[n]=t.params[n]}}}return e},getCurrentStateId:function(){var e;if(t&&t.current&&t.current.name){e=t.current.name;if(t.params){for(var n in t.params){if(t.params.hasOwnProperty(n)&&t.params[n]){e+="_"+n+"="+t.params[n]}}}return e}return ionic.Utils.nextUid()},goToHistoryRoot:function(t){if(t){var n=e.$viewHistory.histories[t];if(n&&n.stack.length){if(e.$viewHistory.currentView&&e.$viewHistory.currentView.viewId===n.stack[0].viewId){return}e.$viewHistory.forcedNav={viewId:n.stack[0].viewId,navAction:"moveBack",navDirection:"back"};n.stack[0].go()}}},_getViewById:function(t){return t?e.$viewHistory.views[t]:null},_getBackView:function(e){return e?this._getViewById(e.backViewId):null},_getForwardView:function(e){return e?this._getViewById(e.forwardViewId):null},_getHistoryById:function(t){return t?e.$viewHistory.histories[t]:null},_getHistory:function(t){var n=this._getParentHistoryObj(t);if(!e.$viewHistory.histories[n.historyId]){e.$viewHistory.histories[n.historyId]={historyId:n.historyId,parentHistoryId:this._getParentHistoryObj(n.scope.$parent).historyId,stack:[],cursor:-1}}return e.$viewHistory.histories[n.historyId]},_getParentHistoryObj:function(t){var n=t;while(n){if(n.hasOwnProperty("$historyId")){return{historyId:n.$historyId,scope:n}}n=n.$parent}return{historyId:"root",scope:e}},nextViewOptions:function(e){if(arguments.length){this._nextOpts=e}else{return this._nextOpts}},getRenderer:function(e,t,n){function l(e){var t="";while(!t&&e){t=e.getAttribute("animation");e=e.parentElement}if(!t){return o.transition}return t}function c(){if(f){e[0].classList.add(f)}if(i.navDirection==="back"){e[0].classList.add("reverse")}else{e[0].classList.remove("reverse")}}var r=this;var i;var a;var f=l(e[0]);return function(t){return{enter:function(n){if(a&&t){c();n.addClass("ng-enter");u.show();s.enter(n,e,null,function(){u.hide();if(f){e[0].classList.remove(f)}});return}else if(!a){u.hide()}e.append(n)},leave:function(){var n=e.contents();if(a&&t){c();s.leave(n,function(){n.remove()});return}n.remove()},register:function(e){i=r.register(n,e);a=f!==null&&i.navDirection!==null;return i}}}},disableRegisterByTagName:function(t){e.$viewHistory.disabledRegistrableTagNames.push(t.toUpperCase())},isTagNameRegistrable:function(t){var n,r,i=e.$viewHistory.disabledRegistrableTagNames;for(n=0;n<t.length;n++){if(t[n].nodeType!==1)continue;for(r=0;r<i.length;r++){if(t[n].tagName===i[r]){return false}}}return true},clearHistory:function(){var t=e.$viewHistory.histories,n=e.$viewHistory.currentView;if(t){for(var r in t){if(t[r].stack){t[r].stack=[];t[r].cursor=-1}if(n&&n.historyId===r){n.backViewId=null;n.forwardViewId=null;t[r].stack.push(n)}else if(t[r].destroy){t[r].destroy()}}}for(var i in e.$viewHistory.views){if(i!==n.viewId){delete e.$viewHistory.views[i]}}if(n){this.setNavViews(n.viewId)}}}}]);t.config(["$provide",function(e){function t(e,t){e.__hash=e.hash;e.hash=function(n){if(angular.isDefined(n)){t(function(){var e=document.querySelector(".scroll-content");if(e)e.scrollTop=0},0,false)}return e.__hash(n)};return e}e.decorator("$location",["$delegate","$timeout",t])}]);t.service("$ionicListDelegate",f(["showReorder","showDelete","canSwipeItems","closeOptionButtons"])).controller("$ionicList",["$scope","$attrs","$parse","$ionicListDelegate",function(e,t,n,r){var i=true;var s=false;var o=false;var u=r._registerInstance(this,t.delegateHandle);e.$on("$destroy",u);this.showReorder=function(e){if(arguments.length){s=!!e}return s};this.showDelete=function(e){if(arguments.length){o=!!e}return o};this.canSwipeItems=function(e){if(arguments.length){i=!!e}return i};this.closeOptionButtons=function(){this.listView&&this.listView.clearDragEffects()}}]);t.controller("$ionicNavBar",["$scope","$element","$attrs","$ionicViewService","$animate","$compile","$ionicNavBarDelegate",function(e,t,n,i,s,u,a){t.parent().data("$ionNavBarController",this);var f=a._registerInstance(this,n.delegateHandle);e.$on("$destroy",f);e.$on("$viewHistory.historyChange",function(e,t){backIsShown=!!t.showBack});var l=this;this.leftButtonsElement=o(t[0].querySelector(".buttons.left-buttons"));this.rightButtonsElement=o(t[0].querySelector(".buttons.right-buttons"));this.back=function(){var e=i.getBackView();e&&e.go();return false};this.align=function(e){this._headerBarView.align(e)};this.showBackButton=function(t){if(arguments.length){e.backButtonShown=!!t}return!!(e.hasBackButton&&e.backButtonShown)};this.showBar=function(t){if(arguments.length){e.isInvisible=!t;e.$parent.$hasHeader=!!t}return!e.isInvisible};this.setTitle=function(t){if(e.title===t){return}e.oldTitle=e.title;e.title=t||""};this.changeTitle=function(n,r){if(e.title===n){if(typeof backIsShown!="undefined"&&!backIsShown&&e.backButtonShown){o(t[0].querySelector(".back-button")).addClass("ng-hide")}return false}this.setTitle(n);e.isReverse=r=="back";e.shouldAnimate=!!r;if(!e.shouldAnimate){this._headerBarView.align()}else{this._animateTitles()}return true};this.getTitle=function(){return e.title||""};this.getPreviousTitle=function(){return e.oldTitle||""};this._animateTitles=function(){var n,i,a;a=t[0].querySelectorAll(".title");if(a.length){n=u('<h1 class="title" ng-bind-html="oldTitle"></h1>')(e);o(a[a.length-1]).replaceWith(n)}i=u('<h1 class="title invisible" ng-bind-html="title"></h1>')(e);ionic.requestAnimationFrame(function(){n&&s.leave(o(n));var u=n&&o(n)||null;s.enter(i,t,u,function(){l._headerBarView.align()});r(a,function(e){if(e&&e.parentNode){o(e).remove()}});e.$digest();ionic.requestAnimationFrame(function(){i[0].classList.remove("invisible")})})}}]);t.factory("$$scrollValueCache",function(){return{}}).controller("$ionicScroll",["$scope","scrollViewOptions","$timeout","$window","$$scrollValueCache","$location","$rootScope","$document","$ionicScrollDelegate",function(e,t,n,r,i,s,u,a,f){var l=this;this.__timeout=n;this._scrollViewOptions=t;var c=this.element=t.el;var h=this.$element=o(c);var p=this.scrollView=new ionic.views.Scroll(t);(h.parent().length?h.parent():h).data("$$ionicScrollController",this);var d=f._registerInstance(this,t.delegateHandle);if(!angular.isDefined(t.bouncing)){ionic.Platform.ready(function(){p.options.bouncing=true;if(ionic.Platform.isAndroid()){p.options.bouncing=false;p.options.deceleration=.95}else{}})}var v=angular.bind(p,p.resize);ionic.on("resize",v,r);var m=angular.noop;var g=angular.noop;var y=function(t){var n=(t.originalEvent||t).detail||{};e.$onScroll&&e.$onScroll({event:t,scrollTop:n.scrollTop||0,scrollLeft:n.scrollLeft||0})};h.on("scroll",y);e.$on("$destroy",function(){d();p.__cleanup();ionic.off("resize",v,r);r.removeEventListener("resize",v);g();m();if(l._rememberScrollId){i[l._rememberScrollId]=p.getValues()}t=null;l._scrollViewOptions=null;l.element=null;h.off("scroll",y);h=null;l.$element=null;l.scrollView=null;p=null});g=e.$on("$viewContentLoaded",function(t,r){if(t.defaultPrevented){return}t.preventDefault();var i=r&&r.viewId||e.$historyId;if(i){n(function(){l.rememberScrollPosition(i);l.scrollToRememberedPosition();m=u.$on("$viewHistory.viewBack",function(e,t,n){if(i===t){l.forgetScrollPosition()}})},0,false)}});n(function(){p&&p.run&&p.run()});this._rememberScrollId=null;this.getScrollView=function(){return this.scrollView};this.getScrollPosition=function(){return this.scrollView.getValues()};this.resize=function(){return n(v).then(function(){h&&h.triggerHandler("scroll.resize")})};this.scrollTop=function(e){this.resize().then(function(){p.scrollTo(0,0,!!e)})};this.scrollBottom=function(e){this.resize().then(function(){var t=p.getScrollMax();p.scrollTo(t.left,t.top,!!e)})};this.scrollTo=function(e,t,n){this.resize().then(function(){p.scrollTo(e,t,!!n)})};this.zoomTo=function(e,t,n,r){this.resize().then(function(){p.zoomTo(e,!!t,n,r)})};this.zoomBy=function(e,t,n,r){this.resize().then(function(){p.zoomBy(e,!!t,n,r)})};this.scrollBy=function(e,t,n){this.resize().then(function(){p.scrollBy(e,t,!!n)})};this.anchorScroll=function(e){this.resize().then(function(){var t=s.hash();var n=t&&a[0].getElementById(t);if(!(t&&n)){p.scrollTo(0,0,!!e);return}var r=n;var i=0,o=0,u=0;do{if(r!==null)i+=r.offsetLeft;if(r!==null)o+=r.offsetTop;r=r.offsetParent;u++}while(r.attributes!=l.element.attributes&&r.offsetParent);p.scrollTo(i,o,!!e)})};this.rememberScrollPosition=function(e){if(!e){throw new Error("Must supply an id to remember the scroll by!")}this._rememberScrollId=e};this.forgetScrollPosition=function(){delete i[this._rememberScrollId];this._rememberScrollId=null};this.scrollToRememberedPosition=function(e){var t=i[this._rememberScrollId];if(t){this.resize().then(function(){p&&p.scrollTo&&p.scrollTo(+t.left,+t.top,e)})}};this._setRefresher=function(e,t){var r=this.refresher=t;var i=l.refresher.clientHeight||60;p.activatePullToRefresh(i,function(){r.classList.add("active");e.$onPulling()},function(){n(function(){r.classList.remove("active");r.classList.remove("refreshing");r.classList.remove("refreshing-tail");r.classList.add("invisible")},300)},function(){r.classList.add("refreshing");e.$onRefresh()},function(){r.classList.remove("invisible")},function(){r.classList.add("invisible")},function(){r.classList.add("refreshing-tail")})}}]);t.controller("$ionicSideMenus",["$scope","$attrs","$ionicSideMenuDelegate","$ionicPlatform","$ionicBody",function(e,t,n,r,i){var s=this;var o,u,a;var f,l,c,h;s.$scope=e;s.initialize=function(e){s.left=e.left;s.right=e.right;s.setContent(e.content);s.dragThresholdX=e.dragThresholdX||10};s.setContent=function(e){if(e){s.content=e;s.content.onDrag=function(e){s._handleDrag(e)};s.content.endDrag=function(e){s._endDrag(e)}}};s.isOpenLeft=function(){return s.getOpenAmount()>0};s.isOpenRight=function(){return s.getOpenAmount()<0};s.toggleLeft=function(e){if(h||!s.left.isEnabled)return;var t=s.getOpenAmount();if(arguments.length===0){e=t<=0}s.content.enableAnimation();if(!e){s.openPercentage(0)}else{s.openPercentage(100)}};s.toggleRight=function(e){if(h||!s.right.isEnabled)return;var t=s.getOpenAmount();if(arguments.length===0){e=t>=0}s.content.enableAnimation();if(!e){s.openPercentage(0)}else{s.openPercentage(-100)}};s.close=function(){s.openPercentage(0)};s.getOpenAmount=function(){return s.content&&s.content.getTranslateX()||0};s.getOpenRatio=function(){var e=s.getOpenAmount();if(e>=0){return e/s.left.width}return e/s.right.width};s.isOpen=function(){return s.getOpenAmount()!==0};s.getOpenPercentage=function(){return s.getOpenRatio()*100};s.openPercentage=function(e){var t=e/100;if(s.left&&e>=0){s.openAmount(s.left.width*t)}else if(s.right&&e<0){var n=s.right.width;s.openAmount(s.right.width*t)}i.enableClass(e!==0,"menu-open")};s.openAmount=function(e){var t=s.left&&s.left.width||0;var n=s.right&&s.right.width||0;if(!(s.left&&s.left.isEnabled)&&e>0){s.content.setTranslateX(0);return}if(!(s.right&&s.right.isEnabled)&&e<0){s.content.setTranslateX(0);return}if(u&&e>t){s.content.setTranslateX(t);return}if(o&&e<-n){s.content.setTranslateX(-n);return}s.content.setTranslateX(e);if(e>=0){u=true;o=false;if(e>0){s.right&&s.right.pushDown&&s.right.pushDown();s.left&&s.left.bringUp&&s.left.bringUp()}}else{o=true;u=false;s.right&&s.right.bringUp&&s.right.bringUp();s.left&&s.left.pushDown&&s.left.pushDown()}};s.snapToRest=function(e){s.content.enableAnimation();a=false;var t=s.getOpenRatio();if(t===0){s.openPercentage(0);return}var n=.3;var r=e.gesture.velocityX;var i=e.gesture.direction;if(t>0&&t<.5&&i=="right"&&r<n){s.openPercentage(0)}else if(t>.5&&i=="left"&&r<n){s.openPercentage(100)}else if(t<0&&t>-.5&&i=="left"&&r<n){s.openPercentage(0)}else if(t<.5&&i=="right"&&r<n){s.openPercentage(-100)}else if(i=="right"&&t>=0&&(t>=.5||r>n)){s.openPercentage(100)}else if(i=="left"&&t<=0&&(t<=-.5||r>n)){s.openPercentage(-100)}else{s.openPercentage(0)}};s.isAsideExposed=function(){return!!h};s.exposeAside=function(e){if(!s.left||!s.left.isEnabled)return;s.close();h=e;s.content.setMarginLeft(h?s.left.width:0);s.$scope.$emit("$ionicExposeAside",h)};s.activeAsideResizing=function(e){i.enableClass(e,"aside-resizing")};s._endDrag=function(e){if(h)return;if(a){s.snapToRest(e)}f=null;l=null;c=null};s._handleDrag=function(e){if(h)return;if(!f){f=e.gesture.touches[0].pageX;l=f}else{l=e.gesture.touches[0].pageX}if(!a&&Math.abs(l-f)>s.dragThresholdX){f=l;a=true;s.content.disableAnimation();c=s.getOpenAmount()}if(a){s.openAmount(c+(l-f))}};s.canDragContent=function(t){if(arguments.length){e.dragContent=!!t}return e.dragContent};s.edgeThreshold=25;s.edgeThresholdEnabled=false;s.edgeDragThreshold=function(e){if(arguments.length){if(angular.isNumber(e)&&e>0){s.edgeThreshold=e;s.edgeThresholdEnabled=true}else{s.edgeThresholdEnabled=!!e}}return s.edgeThresholdEnabled};s.isDraggableTarget=function(t){var n=s.edgeThresholdEnabled&&!s.isOpen();var r=t.gesture.startEvent&&t.gesture.startEvent.center&&t.gesture.startEvent.center.pageX;var i=!n||r<=s.edgeThreshold||r>=s.content.element.offsetWidth-s.edgeThreshold;return(e.dragContent||s.isOpen())&&i&&!t.gesture.srcEvent.defaultPrevented&&!t.target.tagName.match(/input|textarea|select|object|embed/i)&&!t.target.isContentEditable&&!(t.target.dataset?t.target.dataset.preventScroll:t.target.getAttribute("data-prevent-scroll")=="true")};e.sideMenuContentTranslateX=0;var p=angular.noop;var d=angular.bind(s,s.close);e.$watch(function(){return s.getOpenAmount()!==0},function(e){p();if(e){p=r.registerBackButtonAction(d,v)}});var m=n._registerInstance(s,t.delegateHandle);e.$on("$destroy",function(){m();p()});s.initialize({left:{width:275},right:{width:275}})}]);t.controller("$ionicTab",["$scope","$ionicViewService","$attrs","$location","$state",function(e,t,n,r,i){this.$scope=e;this.hrefMatchesState=function(){return n.href&&r.path().indexOf(n.href.replace(/^#/,"").replace(/\/$/,""))===0};this.srefMatchesState=function(){return n.uiSref&&i.includes(n.uiSref.split("(")[0])};this.navNameMatchesState=function(){return this.navViewName&&t.isCurrentStateNavView(this.navViewName)};this.tabMatchesState=function(){return this.hrefMatchesState()||this.srefMatchesState()||this.navNameMatchesState()}}]);t.controller("$ionicTabs",["$scope","$ionicViewService","$element",function(e,t,n){var i=null;var s=this;s.tabs=[];s.selectedIndex=function(){return s.tabs.indexOf(i)};s.selectedTab=function(){return i};s.add=function(e){t.registerHistory(e);s.tabs.push(e);if(s.tabs.length===1){s.select(e)}};s.remove=function(e){var t=s.tabs.indexOf(e);if(t===-1){return}if(e.$tabSelected){s.deselect(e);if(s.tabs.length===1){}else{var n=t===s.tabs.length-1?t-1:t+1;s.select(s.tabs[n])}}s.tabs.splice(t,1)};s.deselect=function(e){if(e.$tabSelected){i=null;e.$tabSelected=false;(e.onDeselect||angular.noop)()}};s.select=function(n,o){var u;if(angular.isNumber(n)){u=n;n=s.tabs[u]}else{u=s.tabs.indexOf(n)}if(arguments.length===1){o=!!(n.navViewName||n.uiSref)}if(i&&i.$historyId==n.$historyId){if(o){t.goToHistoryRoot(n.$historyId)}}else{r(s.tabs,function(e){s.deselect(e)});i=n;n.$tabSelected=true;(n.onSelect||angular.noop)();if(o){var a={type:"tab",tabIndex:u,historyId:n.$historyId,navViewName:n.navViewName,hasNavView:!!n.navViewName,title:n.title,url:n.href,uiSref:n.uiSref};e.$emit("viewState.changeHistory",a)}}}}]);t.directive("ionActionSheet",["$document",function(e){return{restrict:"E",scope:true,replace:true,link:function(t,n){var r=function(e){if(e.which==27){t.cancel();t.$apply()}};var i=function(e){if(e.target==n[0]){t.cancel();t.$apply()}};t.$on("$destroy",function(){n.remove();e.unbind("keyup",r)});e.bind("keyup",r);n.bind("click",i)},template:'<div class="action-sheet-backdrop">'+'<div class="action-sheet-wrapper">'+'<div class="action-sheet">'+'<div class="action-sheet-group">'+'<div class="action-sheet-title" ng-if="titleText" ng-bind-html="titleText"></div>'+'<button class="button" ng-click="buttonClicked($index)" ng-repeat="button in buttons" ng-bind-html="button.text"></button>'+"</div>"+'<div class="action-sheet-group" ng-if="destructiveText">'+'<button class="button destructive" ng-click="destructiveButtonClicked()" ng-bind-html="destructiveText"></button>'+"</div>"+'<div class="action-sheet-group" ng-if="cancelText">'+'<button class="button" ng-click="cancel()" ng-bind-html="cancelText"></button>'+"</div>"+"</div>"+"</div>"+"</div>"}}]);t.directive("ionCheckbox",function(){return{restrict:"E",replace:true,require:"?ngModel",transclude:true,template:'<label class="item item-checkbox">'+'<div class="checkbox checkbox-input-hidden disable-pointer-events">'+'<input type="checkbox">'+'<i class="checkbox-icon"></i>'+"</div>"+'<div class="item-content disable-pointer-events" ng-transclude></div>'+"</label>",compile:function(e,t){var n=e.find("input");r({name:t.name,"ng-value":t.ngValue,"ng-model":t.ngModel,"ng-checked":t.ngChecked,"ng-disabled":t.ngDisabled,"ng-true-value":t.ngTrueValue,"ng-false-value":t.ngFalseValue,"ng-change":t.ngChange},function(e,t){if(i(e)){n.attr(t,e)}})}}});var S="Cannot create a collection-repeat within a scrollView that is scrollable on both x and y axis. Choose either x direction or y direction.";var x="collection-repeat expected attribute collection-item-height to be a an expression that returns a number (in pixels) or percentage.";var T="collection-repeat expected attribute collection-item-width to be a an expression that returns a number (in pixels) or percentage.";var N="collection-repeat expected expression in form of '_item_ in _collection_[ track by _id_]' but got '%'";t.directive("collectionRepeat",["$collectionRepeatManager","$collectionDataSource","$parse",function(e,t,n){return{priority:1e3,transclude:"element",terminal:true,$$tlb:true,require:"^$ionicScroll",controller:[function(){}],link:function(i,u,a,f,l){function A(e){var t=[];var n=[];var i=true;r(L.children,function(e,r){if(ionic.DomUtil.elementIsDescendant(u[0],e,L)){i=false}else{if(e.hasAttribute("collection-repeat-ignore"))return;var s=e.offsetWidth;var a=e.offsetHeight;if(s&&a){var f=o(e);(i?t:n).push({width:e.offsetWidth,height:e.offsetHeight,element:f,scope:f.isolateScope()||f.scope(),isOutside:true})}}});h.resize();C.setData(e,t,n);k.resize()}function O(){A(i.$eval(w))}var c=o('<div style="position:relative;">');u.parent()[0].insertBefore(c[0],u[0]);c.append(u);var h=f.scrollView;if(h.options.scrollingX&&h.options.scrollingY){throw new Error(S)}var p=!!h.options.scrollingY;if(p&&!a.collectionItemHeight){throw new Error(x)}else if(!p&&!a.collectionItemWidth){throw new Error(T)}var d=n(a.collectionItemHeight||'"100%"');var v=n(a.collectionItemWidth||'"100%"');var m=function(e,t){var n=d(e,t);if(s(n)&&n.indexOf("%")>-1){return Math.floor(parseInt(n,10)/100*h.__clientHeight)}return n};var g=function(e,t){var n=v(e,t);if(s(n)&&n.indexOf("%")>-1){return Math.floor(parseInt(n,10)/100*h.__clientWidth)}return n};var y=a.collectionRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!y){throw new Error(N.replace("%",a.collectionRepeat))}var b=y[1];var w=y[2];var E=y[3];var C=new t({scope:i,transcludeFn:l,transcludeParent:u.parent(),keyExpr:b,listExpr:w,trackByExpr:E,heightGetter:m,widthGetter:g});var k=new e({dataSource:C,element:f.$element,scrollView:f.scrollView});i.$watchCollection(w,function(e){if(e&&!angular.isArray(e)){throw new Error("collection-repeat expects an array to repeat over, but instead got '"+typeof e+"'.")}A(e)});var L=f.scrollView.__content;f.$element.on("scroll.resize",O);ionic.on("resize",O,window);i.$on("$destroy",function(){k.destroy();C.destroy();ionic.off("resize",O,window)})}}}]).directive({ngSrc:C("ngSrc","src"),ngSrcset:C("ngSrcset","srcset"),ngHref:C("ngHref","href")});t.directive("ionContent",["$timeout","$controller","$ionicBind",function(e,t,n){return{restrict:"E",require:"^?ionNavView",scope:true,priority:800,compile:function(e,r){function s(e,s,o,u){var a=e.$parent;e.$watch(function(){return(a.$hasHeader?" has-header":"")+(a.$hasSubheader?" has-subheader":"")+(a.$hasFooter?" has-footer":"")+(a.$hasSubfooter?" has-subfooter":"")+(a.$hasTabs?" has-tabs":"")+(a.$hasTabsTop?" has-tabs-top":"")},function(e,t){s.removeClass(t);s.addClass(e)});e.$hasHeader=e.$hasSubheader=e.$hasFooter=e.$hasSubfooter=e.$hasTabs=e.$hasTabsTop=false;n(e,o,{$onScroll:"&onScroll",$onScrollComplete:"&onScrollComplete",hasBouncing:"@",padding:"@",direction:"@",scrollbarX:"@",scrollbarY:"@",startX:"@",startY:"@",scrollEventInterval:"@"});e.direction=e.direction||"y";if(angular.isDefined(o.padding)){e.$watch(o.padding,function(e){(i||s).toggleClass("padding",!!e)})}if(o.scroll==="false"){}else if(r.overflowScroll==="true"){s.addClass("overflow-scroll")}else{var f={el:s[0],delegateHandle:r.delegateHandle,locking:(r.locking||"true")==="true",bouncing:e.$eval(e.hasBouncing),startX:e.$eval(e.startX)||0,startY:e.$eval(e.startY)||0,scrollbarX:e.$eval(e.scrollbarX)!==false,scrollbarY:e.$eval(e.scrollbarY)!==false,scrollingX:e.direction.indexOf("x")>=0,scrollingY:e.direction.indexOf("y")>=0,scrollEventInterval:parseInt(e.scrollEventInterval,10)||10,scrollingComplete:function(){e.$onScrollComplete({scrollTop:this.__scrollTop,scrollLeft:this.__scrollLeft})}};t("$ionicScroll",{$scope:e,scrollViewOptions:f});e.$on("$destroy",function(){f.scrollingComplete=angular.noop;delete f.el;i=null;s=null;r.$$element=null})}}var i;e.addClass("scroll-content ionic-scroll");if(r.scroll!="false"){i=o('<div class="scroll"></div>');i.append(e.contents());e.append(i)}else{e.addClass("scroll-content-false")}return{pre:s}}}}]);t.directive("exposeAsideWhen",["$window",function(e){return{restrict:"A",require:"^ionSideMenus",link:function(t,n,r,i){function s(){var t=r.exposeAsideWhen=="large"?"(min-width:768px)":r.exposeAsideWhen;i.exposeAside(e.matchMedia(t).matches);i.activeAsideResizing(false)}function o(){i.activeAsideResizing(true);u()}var u=ionic.debounce(function(){t.$apply(function(){s()})},300,false);s();ionic.on("resize",o,e);t.$on("$destroy",function(){ionic.off("resize",o,e)})}}}]);var k="onHold onTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft".split(" ");k.forEach(function(e){t.directive(e,L(e))});t.directive("ionNavBar",A()).directive("ionHeaderBar",A()).directive("ionHeaderBar",O(true)).directive("ionFooterBar",O(false));t.directive("ionInfiniteScroll",["$timeout",function(e){function t(e,t,n){return n?t*(1-parseFloat(e,10)/100):t-parseFloat(e,10)}return{restrict:"E",require:["^$ionicScroll","ionInfiniteScroll"],template:'<i class="icon {{icon()}} icon-refreshing"></i>',scope:true,controller:["$scope","$attrs",function(e,n){this.isLoading=false;this.scrollView=null;this.getMaxScroll=function(){var e=(n.distance||"2.5%").trim();var r=e.indexOf("%")!==-1;var i=this.scrollView.getScrollMax();return{left:this.scrollView.options.scrollingX?t(e,i.left,r):-1,top:this.scrollView.options.scrollingY?t(e,i.top,r):-1}}}],link:function(t,n,r,i){function c(){if(o.isLoading)return;var e=u.getValues();var t=o.getMaxScroll();if(t.left!==-1&&e.left>=t.left||t.top!==-1&&e.top>=t.top){a()}}var s=i[0];var o=i[1];var u=o.scrollView=s.scrollView;t.icon=function(){return angular.isDefined(r.icon)?r.icon:"ion-loading-d"};var a=function(){n[0].classList.add("active");o.isLoading=true;t.$parent&&t.$parent.$apply(r.onInfinite||"")};var f=function(){n[0].classList.remove("active");e(function(){u.resize();l()},0,false);o.isLoading=false};t.$on("scroll.infiniteScrollComplete",function(){f()});t.$on("$destroy",function(){void 0;if(s&&s.$element)s.$element.off("scroll",l)});var l=ionic.animationFrameThrottle(c);setTimeout(l);s.$element.on("scroll",l)}}}]);var M='<a class="item-content" ng-href="{{$href()}}" target="{{$target()}}"></a>';var _='<div class="item-content"></div>';t.directive("ionItem",["$animate","$compile",function(e,t){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e;this.$element=t}],scope:true,compile:function(e,t){var n=angular.isDefined(t.href)||angular.isDefined(t.ngHref)||angular.isDefined(t.uiSref);var r=n||/ion-(delete|option|reorder)-button/i.test(e.html());if(r){var i=o(n?M:_);i.append(e.contents());e.append(i);e.addClass("item item-complex")}else{e.addClass("item")}return function(t,n,r){t.$href=function(){return r.href||r.ngHref};t.$target=function(){return r.target||"_self"}}}}}]);var D='<div class="item-left-edit item-delete enable-pointer-events">'+"</div>";t.directive("ionDeleteButton",["$animate",function(e){return{restrict:"E",require:["^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(e,t){t.$set("class",(t["class"]||"")+" button icon button-icon",true);return function(e,t,n,r){var i=r[0];var s=r[1];var u=o(D);u.append(t);i.$element.append(u).addClass("item-left-editable");if(s&&s.showDelete()){u.addClass("visible active")}}}}}]);t.directive("itemFloatingLabel",function(){return{restrict:"C",link:function(e,t){var n=t[0];var r=n.querySelector("input, textarea");var i=n.querySelector(".input-label");if(!r||!i)return;var s=function(){if(r.value){i.classList.add("has-input")}else{i.classList.remove("has-input")}};r.addEventListener("input",s);var o=angular.element(r).controller("ngModel");if(o){o.$render=function(){r.value=o.$viewValue||"";s()}}e.$on("$destroy",function(){r.removeEventListener("input",s)})}}});var P='<div class="item-options invisible">'+"</div>";t.directive("ionOptionButton",["$compile",function(e){function t(e){e.stopPropagation()}return{restrict:"E",require:"^ionItem",priority:Number.MAX_VALUE,compile:function(e,n){n.$set("class",(n["class"]||"")+" button",true);return function(e,n,r,i){if(!i.optionsContainer){i.optionsContainer=o(P);i.$element.append(i.optionsContainer)}i.optionsContainer.append(n);n.on("click",t)}}}}]);var H='<div data-prevent-scroll="true" class="item-right-edit item-reorder enable-pointer-events">'+"</div>";t.directive("ionReorderButton",["$animate","$parse",function(e,t){return{restrict:"E",require:["^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(e,n){n.$set("class",(n["class"]||"")+" button icon button-icon",true);e[0].setAttribute("data-prevent-scroll",true);return function(e,n,r,i){var s=i[0];var u=i[1];var a=t(r.onReorder);e.$onReorder=function(t,n){a(e,{$fromIndex:t,$toIndex:n})};if(!r.ngClick&&!r.onClick&&!r.onclick){n[0].onclick=function(e){e.stopPropagation();return false}}var f=o(H);f.append(n);s.$element.append(f).addClass("item-right-editable");if(u&&u.showReorder()){f.addClass("visible active")}}}}}]);t.directive("keyboardAttach",function(){return function(e,t,n){function i(e){if(ionic.Platform.isAndroid()&&!ionic.Platform.isFullScreen){return}var n=e.keyboardHeight||e.detail.keyboardHeight;t.css("bottom",n+"px");r=t.controller("$ionicScroll");if(r){r.scrollView.__container.style.bottom=n+B(t[0])+"px"}}function s(){if(ionic.Platform.isAndroid()&&!ionic.Platform.isFullScreen){return}t.css("bottom","");if(r){r.scrollView.__container.style.bottom=""}}ionic.on("native.keyboardshow",i,window);ionic.on("native.keyboardhide",s,window);ionic.on("native.showkeyboard",i,window);ionic.on("native.hidekeyboard",s,window);var r;e.$on("$destroy",function(){ionic.off("native.keyboardshow",i,window);ionic.off("native.keyboardhide",s,window);ionic.off("native.showkeyboard",i,window);ionic.off("native.hidekeyboard",s,window)})}});t.directive("ionList",["$animate","$timeout",function(e,t){return{restrict:"E",require:["ionList","^?$ionicScroll"],controller:"$ionicList",compile:function(e,n){var r=o('<div class="list">').append(e.contents()).addClass(n.type);e.append(r);return function(e,r,s,u){function l(){function u(e,t){t()&&e.addClass("visible")||e.removeClass("active");ionic.requestAnimationFrame(function(){t()&&e.addClass("active")||e.removeClass("visible")})}var s=a.listView=new ionic.views.ListView({el:r[0],listEl:r.children()[0],scrollEl:f&&f.element,scrollView:f&&f.scrollView,onReorder:function(e,n,r){var i=o(e).scope();if(i&&i.$onReorder){t(function(){i.$onReorder(n,r)})}},canSwipe:function(){return a.canSwipeItems()}});if(i(n.canSwipe)){e.$watch("!!("+n.canSwipe+")",function(e){a.canSwipeItems(e)})}if(i(n.showDelete)){e.$watch("!!("+n.showDelete+")",function(e){a.showDelete(e)})}if(i(n.showReorder)){e.$watch("!!("+n.showReorder+")",function(e){a.showReorder(e)})}e.$watch(function(){return a.showDelete()},function(e,t){if(!e&&!t){return}if(e)a.closeOptionButtons();a.canSwipeItems(!e);r.children().toggleClass("list-left-editing",e);r.toggleClass("disable-pointer-events",e);var n=o(r[0].getElementsByClassName("item-delete"));u(n,a.showDelete)});e.$watch(function(){return a.showReorder()},function(e,t){if(!e&&!t){return}if(e)a.closeOptionButtons();a.canSwipeItems(!e);r.children().toggleClass("list-right-editing",e);r.toggleClass("disable-pointer-events",e);var n=o(r[0].getElementsByClassName("item-reorder"));u(n,a.showReorder)})}var a=u[0];var f=u[1];t(l)}}}}]);t.directive("menuClose",["$ionicViewService",function(e){return{restrict:"AC",require:"^ionSideMenus",link:function(e,t,n,r){t.bind("click",function(){r.close()})}}}]);t.directive("menuToggle",["$ionicViewService",function(e){return{restrict:"AC",require:"^ionSideMenus",link:function(e,t,n,r){var i=n.menuToggle||"left";t.bind("click",function(){if(i==="left"){r.toggleLeft()}else if(i==="right"){r.toggleRight()}})}}}]);t.directive("ionModal",[function(){return{restrict:"E",transclude:true,replace:true,controller:[function(){}],template:'<div class="modal-backdrop">'+'<div class="modal-wrapper" ng-transclude></div>'+"</div>"}}]);t.directive("ionModalView",function(){return{restrict:"E",compile:function(e,t){e.addClass("modal")}}});t.directive("ionNavBackButton",["$animate","$rootScope","$sanitize","$ionicNavBarConfig","$ionicNgClick",function(e,t,n,r,s){var o=false;t.$on("$viewHistory.historyChange",function(e,t){o=!!t.showBack});return{restrict:"E",require:"^ionNavBar",compile:function(t,u){t.addClass("button back-button ng-hide");var a=!!(t.html()||"").match(/class=.*?ion-/);return function(t,u,f,l){if(!a&&u[0].className.indexOf("ion-")===-1){u.addClass(r.backButtonIcon)}if(!i(f.ngClick)){s(t,u,l.back)}t.$watch(function(){if(i(f.fromTitle)){u[0].innerHTML='<span class="back-button-title">'+n(t.oldTitle)+"</span>"}return!!(o&&t.backButtonShown)},ionic.animationFrameThrottle(function(t){if(t)e.removeClass(u,"ng-hide");else e.addClass(u,"ng-hide")}))}}}}]);t.constant("$ionicNavBarConfig",{transition:"nav-title-slide-ios7",alignTitle:"center",backButtonIcon:"ion-ios7-arrow-back"});t.directive("ionNavBar",["$ionicViewService","$rootScope","$animate","$compile","$ionicNavBarConfig",function(e,t,n,r,s){return{restrict:"E",controller:"$ionicNavBar",scope:true,compile:function(e,t){function n(e,t,n,r){r._headerBarView=new ionic.views.HeaderBar({el:t[0],alignTitle:n.alignTitle||s.alignTitle||"center"});e.backButtonShown=false;e.shouldAnimate=true;e.isReverse=false;e.isInvisible=true;e.$on("$destroy",function(){e.$parent.$hasHeader=false});e.$watch(function(){return(e.isReverse?" reverse":"")+(e.isInvisible?" invisible":"")+(!e.shouldAnimate?" no-animation":"")},function(e,n){t.removeClass(n);t.addClass(e)})}e.addClass("bar bar-header nav-bar").append('<div class="buttons left-buttons"> '+"</div>"+'<h1 ng-bind-html="title" class="title"></h1>'+'<div class="buttons right-buttons"> '+"</div>");if(i(t.animation)){e.addClass(t.animation)}else{e.addClass(s.transition)}return{pre:n}}}}]);t.directive("ionNavButtons",["$compile","$animate",function(e,t){return{require:"^ionNavBar",restrict:"E",compile:function(n,r){var i=n.contents().remove();return function(n,r,s,u){var a=s.side==="right"?u.rightButtonsElement:u.leftButtonsElement;var f=o("<span>").append(i);r.append(f);e(f)(n);ionic.requestAnimationFrame(function(){if(!n.$$destroyed){t.enter(f,a)}});n.$on("$destroy",function(){t.leave(f)});r.css("display","none")}}}}]);t.directive("navClear",["$ionicViewService","$state","$location","$window","$rootScope",function(e,t,n,r,i){i.$on("$stateChangeError",function(){e.nextViewOptions(null)});return{priority:100,restrict:"AC",compile:function(t){function n(t,n,i){function o(){s=t.$on("$stateChangeStart",function(){e.nextViewOptions({disableAnimate:true,disableBack:true});s()});r.setTimeout(s,300)}var s;n.on("click",o)}return{pre:n}}}}]);t.constant("$ionicNavViewConfig",{transition:"slide-left-right-ios7"});t.directive("ionNavView",["$ionicViewService","$state","$compile","$controller","$animate",function(e,t,n,r,i){var s=false;var u={restrict:"E",terminal:true,priority:2e3,transclude:true,controller:function(){},compile:function(a,f,l){return function(a,f,c,h){function E(s){if(i.enabled()===false){s=false}var u=t.$current&&t.$current.locals[v];if(u===d)return;var l=e.getRenderer(f,c,a);if(p){p.$destroy();p=null}if(!u){d=null;b.state=null;return f.append(g)}var h=o("<div></div>").html(u.$template).contents();var y=l().register(h);l(s).leave();d=u;b.state=u.$$state;l(s).enter(h);var w=n(h);p=a.$new();p.$navDirection=y.navDirection;if(u.$$controller){u.$scope=p;var E=r(u.$$controller,u);f.children().data("$ngControllerController",E)}w(p);var S=e._getViewById(y.viewId)||{};p.$broadcast("$viewContentLoaded",S);if(m)p.$eval(m);h=null}var p,d,v=c[u.name]||c.name||"",m=c.onload||"",g=l(a);f.append(g);var y=f.parent().inheritedData("$uiView");if(v.indexOf("@")<0)v=v+"@"+(y&&y.state?y.state.name:"");var b={name:v,state:null};f.data("$uiView",b);var w=function(){if(s)return;s=true;try{E(true)}catch(e){s=false;throw e}s=false};a.$on("$stateChangeSuccess",w);E(false)}}};return u}]);t.config(["$provide",function(e){e.decorator("ngClickDirective",["$delegate",function(e){e.shift();return e}])}]).factory("$ionicNgClick",["$parse",function(e){return function(t,n,r){var i=angular.isFunction(r)?r:e(r);n.on("click",function(e){t.$apply(function(){i(t,{$event:e})})});n.onclick=function(e){}}}]).directive("ngClick",["$ionicNgClick",function(e){return function(t,n,r){e(t,n,r.ngClick)}}]).directive("ionStopEvent",function(){return{restrict:"A",link:function(e,t,n){t.bind(n.ionStopEvent,j)}}});t.directive("ionPane",function(){return{restrict:"E",link:function(e,t,n){t.addClass("pane")}}});t.directive("ionPopover",[function(){return{restrict:"E",transclude:true,replace:true,controller:[function(){}],template:'<div class="popover-backdrop">'+'<div class="popover-wrapper" ng-transclude></div>'+"</div>"}}]);t.directive("ionPopoverView",function(){return{restrict:"E",compile:function(e){e.append(angular.element('<div class="popover-arrow"></div>'));e.addClass("popover")}}});t.directive("ionRadio",function(){return{restrict:"E",replace:true,require:"?ngModel",transclude:true,template:'<label class="item item-radio">'+'<input type="radio" name="radio-group">'+'<div class="item-content disable-pointer-events" ng-transclude></div>'+'<i class="radio-icon disable-pointer-events icon ion-checkmark"></i>'+"</label>",compile:function(e,t){if(t.icon)e.children().eq(2).removeClass("ion-checkmark").addClass(t.icon);var n=e.find("input");r({name:t.name,value:t.value,disabled:t.disabled,"ng-value":t.ngValue,"ng-model":t.ngModel,"ng-disabled":t.ngDisabled,"ng-change":t.ngChange},function(e,t){if(i(e)){n.attr(t,e)}});return function(e,t,n){e.getValue=function(){return e.ngValue||n.value}}}}});t.directive("ionRefresher",["$ionicBind",function(e){return{restrict:"E",replace:true,require:"^$ionicScroll",template:'<div class="scroll-refresher" collection-repeat-ignore>'+'<div class="ionic-refresher-content" '+"ng-class=\"{'ionic-refresher-with-text': pullingText || refreshingText}\">"+'<div class="icon-pulling" ng-class="{\'pulling-rotation-disabled\':disablePullingRotation}">'+'<i class="icon {{pullingIcon}}"></i>'+"</div>"+'<div class="text-pulling" ng-bind-html="pullingText"></div>'+'<i class="icon {{refreshingIcon}} icon-refreshing"></i>'+'<div class="text-refreshing" ng-bind-html="refreshingText"></div>'+"</div>"+"</div>",compile:function(t,n){if(angular.isUndefined(n.pullingIcon)){n.$set("pullingIcon","ion-ios7-arrow-down")}if(angular.isUndefined(n.refreshingIcon)){n.$set("refreshingIcon","ion-loading-d")}return function(t,n,r,i){e(t,r,{pullingIcon:"@",pullingText:"@",refreshingIcon:"@",refreshingText:"@",disablePullingRotation:"@",$onRefresh:"&onRefresh",$onPulling:"&onPulling"});i._setRefresher(t,n[0]);t.$on("scroll.refreshComplete",function(){t.$evalAsync(function(){i.scrollView.finishPullToRefresh()})})}}}}]);t.directive("ionScroll",["$timeout","$controller","$ionicBind",function(e,t,n){return{restrict:"E",scope:true,controller:function(){},compile:function(e,r){function s(e,r,s){var o,u;n(e,s,{direction:"@",paging:"@",$onScroll:"&onScroll",scroll:"@",scrollbarX:"@",scrollbarY:"@",zooming:"@",minZoom:"@",maxZoom:"@"});e.direction=e.direction||"y";if(angular.isDefined(s.padding)){e.$watch(s.padding,function(e){i.toggleClass("padding",!!e)})}if(e.$eval(e.paging)===true){i.addClass("scroll-paging")}if(!e.direction){e.direction="y"}var a=e.$eval(e.paging)===true;var f={el:r[0],delegateHandle:s.delegateHandle,locking:(s.locking||"true")==="true",bouncing:e.$eval(s.hasBouncing),paging:a,scrollbarX:e.$eval(e.scrollbarX)!==false,scrollbarY:e.$eval(e.scrollbarY)!==false,scrollingX:e.direction.indexOf("x")>=0,scrollingY:e.direction.indexOf("y")>=0,zooming:e.$eval(e.zooming)===true,maxZoom:e.$eval(e.maxZoom)||3,minZoom:e.$eval(e.minZoom)||.5};if(a){f.speedMultiplier=.8;f.bouncing=false}u=t("$ionicScroll",{$scope:e,scrollViewOptions:f});o=e.$parent.scrollView=u.scrollView}e.addClass("scroll-view ionic-scroll");var i=o('<div class="scroll"></div>');i.append(e.contents());e.append(i);return{pre:s}}}}]);t.directive("ionSideMenu",function(){return{restrict:"E",require:"^ionSideMenus",scope:true,compile:function(e,t){angular.isUndefined(t.isEnabled)&&t.$set("isEnabled","true");angular.isUndefined(t.width)&&t.$set("width","275");e.addClass("menu menu-"+t.side);return function(e,n,r,i){e.side=r.side||"left";var s=i[e.side]=new ionic.views.SideMenu({width:t.width,el:n[0],isEnabled:true});e.$watch(r.width,function(e){var t=+e;if(t&&t==e){s.setWidth(+e)}});e.$watch(r.isEnabled,function(e){s.setIsEnabled(!!e)})}}}});t.directive("ionSideMenuContent",["$timeout","$ionicGesture","$window",function(e,t,n){return{restrict:"EA",require:"^ionSideMenus",scope:true,compile:function(r,s){function o(o,u,a,f){function h(e){if(f.getOpenAmount()!==0){f.close();e.gesture.srcEvent.preventDefault();l=null;c=null}else if(!l){l=ionic.tap.pointerCoord(e.gesture.srcEvent)}}function p(e){if(!f.isDraggableTarget(e))return;if(m(e)=="x"){f._handleDrag(e);e.gesture.srcEvent.preventDefault()}}function d(e){if(m(e)=="x"){e.gesture.srcEvent.preventDefault()}}function v(e){f._endDrag(e);l=null;c=null}function m(e){if(c){return c}if(e&&e.gesture){if(!l){l=ionic.tap.pointerCoord(e.gesture.srcEvent)}else{var t=ionic.tap.pointerCoord(e.gesture.srcEvent);var n=Math.abs(t.x-l.x);var r=Math.abs(t.y-l.y);var i=n<r?"y":"x";if(Math.max(n,r)>30){c=i}return i}}return"x"}var l=null;var c=null;u.addClass("menu-content pane");if(i(s.dragContent)){o.$watch(s.dragContent,function(e){f.canDragContent(e)})}else{f.canDragContent(true)}if(i(s.edgeDragThreshold)){o.$watch(s.edgeDragThreshold,function(e){f.edgeDragThreshold(e)})}var g={element:r[0],onDrag:function(e){},endDrag:function(e){},getTranslateX:function(){return o.sideMenuContentTranslateX||0},setTranslateX:ionic.animationFrameThrottle(function(t){var n=g.offsetX+t;u[0].style[ionic.CSS.TRANSFORM]="translate3d("+n+"px,0,0)";e(function(){o.sideMenuContentTranslateX=t})}),setMarginLeft:ionic.animationFrameThrottle(function(e){if(e){e=parseInt(e,10);u[0].style[ionic.CSS.TRANSFORM]="translate3d("+e+"px,0,0)";u[0].style.width=n.innerWidth-e+"px";g.offsetX=e}else{u[0].style[ionic.CSS.TRANSFORM]="translate3d(0,0,0)";u[0].style.width="";g.offsetX=0}}),enableAnimation:function(){o.animationEnabled=true;u[0].classList.add("menu-animated")},disableAnimation:function(){o.animationEnabled=false;u[0].classList.remove("menu-animated")},offsetX:0};f.setContent(g);var y={stop_browser_behavior:false};var b=t.on("tap",h,u,y);var w=t.on("dragright",p,u,y);var E=t.on("dragleft",p,u,y);var S=t.on("dragup",d,u,y);var x=t.on("dragdown",d,u,y);var T=t.on("release",v,u,y);o.$on("$destroy",function(){t.off(E,"dragleft",p);t.off(w,"dragright",p);t.off(S,"dragup",d);t.off(x,"dragdown",d);t.off(T,"release",v);t.off(b,"tap",h)})}return{pre:o}}}}]);t.directive("ionSideMenus",["$ionicBody",function(e){return{restrict:"ECA",controller:"$ionicSideMenus",compile:function(t,n){function r(t){t.$on("$ionicExposeAside",function(n,r){if(!t.$exposeAside)t.$exposeAside={};t.$exposeAside.active=r;e.enableClass(r,"aside-open")});t.$on("$destroy",function(){e.removeClass("menu-open","aside-open")})}n.$set("class",(n["class"]||"")+" view");return{pre:r}}}}]);t.directive("ionSlideBox",["$timeout","$compile","$ionicSlideBoxDelegate",function(e,t,n){return{restrict:"E",replace:true,transclude:true,scope:{autoPlay:"=",doesContinue:"@",slideInterval:"@",showPager:"@",pagerClick:"&",disableScroll:"@",onSlideChanged:"&",activeSlide:"=?"},controller:["$scope","$element","$attrs",function(t,r,s){var o=this;var u=t.$eval(t.doesContinue)===true;var a=i(s.autoPlay)?!!t.autoPlay:false;var f=a?t.$eval(t.slideInterval)||4e3:0;var l=new ionic.views.Slider({el:r[0],auto:f,continuous:u,startSlide:t.activeSlide,slidesChanged:function(){t.currentSlide=l.currentIndex();e(function(){})},callback:function(n){t.currentSlide=n;t.onSlideChanged({index:t.currentSlide,$index:t.currentSlide});t.$parent.$broadcast("slideBox.slideChanged",n);t.activeSlide=n;e(function(){})}});l.enableSlide(t.$eval(s.disableScroll)!==true);t.$watch("activeSlide",function(e){if(angular.isDefined(e)){l.slide(e)}});t.$on("slideBox.nextSlide",function(){l.next()});t.$on("slideBox.prevSlide",function(){l.prev()});t.$on("slideBox.setSlide",function(e,t){l.slide(t)});this.__slider=l;var c=n._registerInstance(l,s.delegateHandle);t.$on("$destroy",c);this.slidesCount=function(){return l.slidesCount()};this.onPagerClick=function(e){void 0;t.pagerClick({index:e})};e(function(){l.load()})}],template:'<div class="slider">'+'<div class="slider-slides" ng-transclude>'+"</div>"+"</div>",link:function(e,n,r,i){if(e.$eval(e.showPager)!==false){var s=e.$new();var u=o("<ion-pager></ion-pager>");n.append(u);t(u)(s)}}}}]).directive("ionSlide",function(){return{restrict:"E",require:"^ionSlideBox",compile:function(e,t){e.addClass("slider-slide");return function(e,t,n){}}}}).directive("ionPager",function(){return{restrict:"E",replace:true,require:"^ionSlideBox",template:'<div class="slider-pager"><span class="slider-pager-page" ng-repeat="slide in numSlides() track by $index" ng-class="{active: $index == currentSlide}" ng-click="pagerClick($index)"><i class="icon ion-record"></i></span></div>',link:function(e,t,n,r){var i=function(e){var n=t[0].children;var r=n.length;for(var i=0;i<r;i++){if(i==e){n[i].classList.add("active")}else{n[i].classList.remove("active")}}};e.pagerClick=function(e){r.onPagerClick(e)};e.numSlides=function(){return new Array(r.slidesCount())};e.$watch("currentSlide",function(e){i(e)})}}});t.constant("$ionicTabConfig",{type:""});t.directive("ionTab",["$rootScope","$animate","$ionicBind","$compile",function(e,t,n,r){function i(e,t){return angular.isDefined(t)?" "+e+'="'+t+'"':""}return{restrict:"E",require:["^ionTabs","ionTab"],replace:true,controller:"$ionicTab",scope:true,compile:function(e,s){var u="<ion-tab-nav"+i("ng-click",s.ngClick)+i("title",s.title)+i("icon",s.icon)+i("icon-on",s.iconOn)+i("icon-off",s.iconOff)+i("badge",s.badge)+i("badge-style",s.badgeStyle)+i("hidden",s.hidden)+i("class",s["class"])+"></ion-tab-nav>";var a=o('<div class="pane">').append(e.contents().remove());return function(i,s,f,l){function g(){if(d.tabMatchesState()){p.select(i,false)}}var c;var h;var p=l[0];var d=l[1];var v=a[0].querySelector("ion-nav-view")||a[0].querySelector("data-ion-nav-view");var m=v&&v.getAttribute("name");n(i,f,{animate:"=",onSelect:"&",onDeselect:"&",title:"@",uiSref:"@",href:"@"});p.add(i);i.$on("$destroy",function(){if(!i.$tabsDestroy){p.remove(i)}y.isolateScope().$destroy();y.remove()});s[0].removeAttribute("title");if(m){d.navViewName=i.navViewName=m}i.$on("$stateChangeSuccess",g);g();var y=o(u);y.data("$ionTabsController",p);y.data("$ionTabController",d);p.$tabsElement.append(r(y)(i));i.$watch("$tabSelected",function(e){c&&c.$destroy();c=null;h&&t.leave(h);h=null;if(e){c=i.$new();h=a.clone();t.enter(h,p.$element);r(h)(c)}})}}}}]);t.directive("ionTabNav",[function(){return{restrict:"E",replace:true,require:["^ionTabs","^ionTab"],template:"<a ng-class=\"{'tab-item-active': isTabActive(), 'has-badge':badge, 'tab-hidden':isHidden()}\" "+' class="tab-item">'+'<span class="badge {{badgeStyle}}" ng-if="badge">{{badge}}</span>'+'<i class="icon {{getIconOn()}}" ng-if="getIconOn() && isTabActive()"></i>'+'<i class="icon {{getIconOff()}}" ng-if="getIconOff() && !isTabActive()"></i>'+'<span class="tab-title" ng-bind-html="title"></span>'+"</a>",scope:{title:"@",icon:"@",iconOn:"@",iconOff:"@",badge:"=",hidden:"@",badgeStyle:"@","class":"@"},compile:function(e,t,n){return function(t,n,r,i){var s=i[0],o=i[1];n[0].removeAttribute("title");t.selectTab=function(e){e.preventDefault();s.select(o.$scope,true)};if(!r.ngClick){n.on("click",function(e){t.$apply(function(){t.selectTab(e)})})}t.isHidden=function(){if(r.hidden==="true"||r.hidden===true)return true;return false};t.getIconOn=function(){return t.iconOn||t.icon};t.getIconOff=function(){return t.iconOff||t.icon};t.isTabActive=function(){return s.selectedTab()===o.$scope}}}}}]);t.constant("$ionicTabsConfig",{position:"",type:""});t.directive("ionTabs",["$ionicViewService","$ionicTabsDelegate","$ionicTabsConfig",function(e,t,n){return{restrict:"E",scope:true,controller:"$ionicTabs",compile:function(e,r){function s(e,n,r,i){var s=t._registerInstance(i,r.delegateHandle);e.$on("$destroy",function(){e.$tabsDestroy=true;s()});i.$scope=e;i.$element=n;i.$tabsElement=o(n[0].querySelector(".tabs"));var u=n[0];e.$watch(function(){return u.className},function(t){var n=t.indexOf("tabs-top")!==-1;var r=t.indexOf("tabs-item-hide")!==-1;e.$hasTabs=!n&&!r;e.$hasTabsTop=n&&!r});e.$on("$destroy",function(){delete e.$hasTabs;delete e.$hasTabsTop})}e.addClass("view");var i=o('<div class="tabs"></div>');i.append(e.contents());e.append(i);e.addClass(n.position);e.addClass(n.type);return{pre:s}}}}]);t.directive("ionToggle",["$ionicGesture","$timeout",function(e,t){return{restrict:"E",replace:true,require:"?ngModel",transclude:true,template:'<div class="item item-toggle">'+"<div ng-transclude></div>"+'<label class="toggle">'+'<input type="checkbox">'+'<div class="track">'+'<div class="handle"></div>'+"</div>"+"</label>"+"</div>",compile:function(e,t){var n=e.find("input");r({name:t.name,"ng-value":t.ngValue,"ng-model":t.ngModel,"ng-checked":t.ngChecked,"ng-disabled":t.ngDisabled,"ng-true-value":t.ngTrueValue,"ng-false-value":t.ngFalseValue,"ng-change":t.ngChange},function(e,t){if(i(e)){n.attr(t,e)}});if(t.toggleClass){e[0].getElementsByTagName("label")[0].classList.add(t.toggleClass)}return function(e,t,n){var r,i,s,u;r=t[0].getElementsByTagName("label")[0];i=r.children[0];s=r.children[1];u=s.children[0];var a=o(i).controller("ngModel");e.toggle=new ionic.views.Toggle({el:r,track:s,checkbox:i,handle:u,onChange:function(){if(i.checked){a.$setViewValue(true)}else{a.$setViewValue(false)}e.$apply()}});e.$on("$destroy",function(){e.toggle.destroy()})}}}}]);t.directive("ionView",["$ionicViewService","$rootScope","$animate",function(e,t,n){return{restrict:"EA",priority:1e3,require:["^?ionNavBar","^?ionModal"],compile:function(e,t,n){e.addClass("pane");e[0].removeAttribute("title");return function(t,n,r,i){var s=i[0];var o=i[1];if(!s||o){return}if(angular.isDefined(r.title)){var u=r.title;s.changeTitle(u,t.$navDirection);r.$observe("title",function(e,t){s.setTitle(e)})}var a=angular.isDefined(r.hideBackButton)?r.hideBackButton:"false";t.$watch(a,function(e){s.showBackButton(!e)});var f=angular.isDefined(r.hideNavBar)?r.hideNavBar:"false";t.$watch(f,function(e){s.showBar(!e)})}}}}])})()