/*!
 * ionic.bundle.js is a concatenation of:
 * ionic.js, angular.js, angular-animate.js,
 * angular-sanitize.js, angular-ui-router.js,
 * and ionic-angular.js
 */
/*!
 * Copyright 2014 Drifty Co.
 * http://drifty.com/
 *
 * Ionic, v1.1.0
 * A powerful HTML5 mobile app framework.
 * http://ionicframework.com/
 *
 * By @maxlynch, @benjsperry, @adamdbradley <3
 *
 * Licensed under the MIT license. Please see LICENSE for more information.
 *
 */
!function(){function e(e,t,n){t!==!1?H.addEventListener(e,J[e],n):H.removeEventListener(e,J[e])}function t(e){var t=y(e.target),r=w(t);if(ionic.tap.requiresNativeClick(r)||U)return!1;var i=ionic.tap.pointerCoord(e);n("click",r,i.x,i.y),h(r)}function n(e,t,n,r){var i=document.createEvent("MouseEvents");i.initMouseEvent(e,!0,!0,window,1,0,0,n,r,!1,!1,!1,!1,0,null),i.isIonicTap=!0,t.dispatchEvent(i)}function r(e){return"submit"==e.target.type&&0===e.detail?null:ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(e.target)||!e.isIonicTap&&!ionic.tap.requiresNativeClick(e.target)?(e.stopPropagation(),ionic.tap.isLabelWithTextInput(e.target)||e.preventDefault(),!1):void 0}function i(t){return t.isIonicTap||d(t)?null:j?(t.stopPropagation(),ionic.tap.isTextInput(t.target)&&Y===t.target||/^(option)$/i.test(t.target.tagName)||t.preventDefault(),!1):(U=!1,G=ionic.tap.pointerCoord(t),e("mousemove"),void ionic.activator.start(t))}function o(n){return j?(n.stopPropagation(),n.preventDefault(),!1):!d(n)&&!/^(select|option)$/i.test(n.target.tagName)&&($(n)||t(n),e("mousemove",!1),ionic.activator.end(),void(U=!1))}function a(t){if($(t))return e("mousemove",!1),ionic.activator.end(),U=!0,!1}function s(t){if(!d(t)&&(U=!1,f(),G=ionic.tap.pointerCoord(t),e(X),ionic.activator.start(t),ionic.Platform.isIOS()&&ionic.tap.isLabelWithTextInput(t.target))){var n=w(y(t.target));n!==F&&t.preventDefault()}}function c(e){d(e)||(f(),$(e)||t(e),Y=e.target,u())}function l(t){if($(t))return U=!0,e(X,!1),ionic.activator.end(),!1}function u(){e(X,!1),ionic.activator.end(),U=!1}function f(){j=!0,clearTimeout(q),q=setTimeout(function(){j=!1},600)}function d(e){return!!e.isTapHandled||(e.isTapHandled=!0,ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(e.target)?(e.preventDefault(),!0):void 0)}function h(e){W=null;var t=!1;"SELECT"==e.tagName?(n("mousedown",e,0,0),e.focus&&e.focus(),t=!0):g()===e?t=!0:/^(input|textarea)$/i.test(e.tagName)||e.isContentEditable?(t=!0,e.focus&&e.focus(),e.value&&(e.value=e.value),j&&(W=e)):p(),t&&(g(e),ionic.trigger("ionic.focusin",{target:e},!0))}function p(){var e=g();e&&(/^(input|textarea|select)$/i.test(e.tagName)||e.isContentEditable)&&e.blur(),g(null)}function m(e){j&&ionic.tap.isTextInput(g())&&ionic.tap.isTextInput(W)&&W!==e.target&&(W.focus(),W=null),ionic.scroll.isScrolling=!1}function v(){g(null)}function g(e){return arguments.length&&(F=e),F||document.activeElement}function $(e){if(!e||1!==e.target.nodeType||!G||0===G.x&&0===G.y)return!1;var t=ionic.tap.pointerCoord(e),n=!(!e.target.classList||!e.target.classList.contains||"function"!=typeof e.target.classList.contains),r=n&&e.target.classList.contains("button")?Z:K;return Math.abs(G.x-t.x)>r||Math.abs(G.y-t.y)>r}function y(e,t){for(var n=e,r=0;r<6&&n;r++){if("LABEL"===n.tagName)return n;n=n.parentElement}if(t!==!1)return e}function w(e){if(e&&"LABEL"===e.tagName){if(e.control)return e.control;if(e.querySelector){var t=e.querySelector("input,textarea,select");if(t)return t}}return e}function b(){ionic.keyboard.isInitialized||(V()?(window.addEventListener("native.keyboardshow",ue),window.addEventListener("native.keyboardhide",x)):document.body.addEventListener("focusout",x),document.body.addEventListener("ionic.focusin",le),document.body.addEventListener("focusin",le),window.navigator.msPointerEnabled?document.removeEventListener("MSPointerDown",b):document.removeEventListener("touchstart",b),ionic.keyboard.isInitialized=!0)}function _(e){clearTimeout(ne),ionic.keyboard.isOpen&&!ionic.keyboard.isClosing||(ionic.keyboard.isOpening=!0,ionic.keyboard.isClosing=!1),ionic.keyboard.height=e.keyboardHeight,ae?k(L,!0):k(D,!0)}function S(e){return clearTimeout(ne),e.target&&!e.target.readOnly&&ionic.tap.isKeyboardElement(e.target)&&(ee=ionic.DomUtil.getParentWithClass(e.target,ce))?(Q=e.target,ee.classList.contains("overflow-scroll")||(document.body.scrollTop=0,ee.scrollTop=0,ionic.requestAnimationFrame(function(){document.body.scrollTop=0,ee.scrollTop=0}),window.navigator.msPointerEnabled?document.addEventListener("MSPointerMove",C,!1):document.addEventListener("touchmove",C,!1)),ionic.keyboard.isOpen&&!ionic.keyboard.isClosing||(ionic.keyboard.isOpening=!0,ionic.keyboard.isClosing=!1),document.addEventListener("keydown",T,!1),void(ionic.keyboard.isOpen||V()?ionic.keyboard.isOpen&&D():k(D,!0))):void(Q=null)}function x(){clearTimeout(ne),(ionic.keyboard.isOpen||ionic.keyboard.isOpening)&&(ionic.keyboard.isClosing=!0,ionic.keyboard.isOpening=!1),ne=setTimeout(function(){ionic.requestAnimationFrame(function(){ae?k(function(){L(),A()},!1):k(A,!1)})},50)}function E(){ionic.keyboard.isLandscape=!ionic.keyboard.isLandscape,ionic.Platform.isIOS()&&L(),ionic.Platform.isAndroid()&&(ionic.keyboard.isOpen&&V()?ae=!0:k(L,!1))}function T(e){ionic.scroll.isScrolling&&C(e)}function C(e){"TEXTAREA"!==e.target.tagName&&e.preventDefault()}function k(e,t){clearInterval(te);var n,r=0,i=N(),o=i;return n=ionic.Platform.isAndroid()&&ionic.Platform.version()<4.4?30:ionic.Platform.isAndroid()?10:1,te=setInterval(function(){o=N(),++r<n&&(!M(o)&&!O(o)||!ionic.keyboard.height)||(V()||(ionic.keyboard.height=Math.abs(i-window.innerHeight)),ionic.keyboard.isOpen=t,clearInterval(te),e())},50),n}function A(){clearTimeout(ne),ionic.keyboard.isOpen=!1,ionic.keyboard.isClosing=!1,Q&&ionic.trigger("resetScrollView",{target:Q},!0),ionic.requestAnimationFrame(function(){document.body.classList.remove(se)}),window.navigator.msPointerEnabled?document.removeEventListener("MSPointerMove",C):document.removeEventListener("touchmove",C),document.removeEventListener("keydown",T),ionic.Platform.isAndroid()&&(V()&&cordova.plugins.Keyboard.close(),Q&&Q.blur()),Q=null}function D(){ionic.keyboard.isOpen=!0,ionic.keyboard.isOpening=!1;var e={keyboardHeight:I(),viewportHeight:re};if(Q){e.target=Q;var t=Q.getBoundingClientRect();e.elementTop=Math.round(t.top),e.elementBottom=Math.round(t.bottom),e.windowHeight=e.viewportHeight-e.keyboardHeight,e.isElementUnderKeyboard=e.elementBottom>e.windowHeight,ionic.trigger("scrollChildIntoView",e,!0)}return setTimeout(function(){document.body.classList.add(se)},400),e}function I(){if(ionic.keyboard.height)return ionic.keyboard.height;if(ionic.Platform.isAndroid()){if(ionic.Platform.isFullScreen)return 275;var e=window.innerHeight;return e<re?re-e:0}return ionic.Platform.isIOS()?ionic.keyboard.isLandscape?206:ionic.Platform.isWebView()?260:216:275}function M(e){return!!(!ionic.keyboard.isLandscape&&ie&&Math.abs(ie-e)<2)}function O(e){return!!(ionic.keyboard.isLandscape&&oe&&Math.abs(oe-e)<2)}function L(){ae=!1,re=N(),ionic.keyboard.isLandscape&&!oe?oe=re:ionic.keyboard.isLandscape||ie||(ie=re),Q&&ionic.trigger("resetScrollView",{target:Q},!0),ionic.keyboard.isOpen&&ionic.tap.isTextInput(Q)&&D()}function P(){var e=N();e/window.innerWidth<1&&(ionic.keyboard.isLandscape=!0),re=e,ionic.keyboard.isLandscape&&!oe?oe=re:ionic.keyboard.isLandscape||ie||(ie=re)}function N(){var e=window.innerHeight;return ionic.Platform.isAndroid()&&ionic.Platform.isFullScreen||!ionic.keyboard.isOpen&&!ionic.keyboard.isOpening||ionic.keyboard.isClosing?e:e+I()}function V(){return!!(window.cordova&&cordova.plugins&&cordova.plugins.Keyboard)}function B(){var e;for(e=0;e<document.head.children.length;e++)if("viewport"==document.head.children[e].name){fe=document.head.children[e];break}if(fe){var t,n=fe.content.toLowerCase().replace(/\s+/g,"").split(",");for(e=0;e<n.length;e++)n[e]&&(t=n[e].split("="),de[t[0]]=t.length>1?t[1]:"_");R()}}function R(){var e=de.width,t=de.height,n=ionic.Platform,r=n.version(),i="device-width",o="device-height",a=ionic.viewport.orientation();delete de.height,de.width=i,n.isIPad()?r>7?delete de.width:n.isWebView()?90==a?de.height="0":7==r&&(de.height=o):r<7&&(de.height="0"):n.isIOS()&&(n.isWebView()?r>7?delete de.width:r<7?t&&(de.height="0"):7==r&&(de.height=o):r<7&&t&&(de.height="0")),e===de.width&&t===de.height||z()}function z(){var e,t=[];for(e in de)de[e]&&t.push(e+("_"==de[e]?"":"="+de[e]));fe.content=t.join(", ")}window.ionic=window.ionic||{},window.ionic.views={},window.ionic.version="1.1.0",function(e){e.DelegateService=function(e){function t(){return!0}if(e.indexOf("$getByHandle")>-1)throw new Error("Method '$getByHandle' is implicitly added to each delegate service. Do not list it as a method.");return["$log",function(n){function r(e,t){this._instances=e,this.handle=t}function i(){this._instances=[]}function o(e){return function(){var t,r=this.handle,i=arguments,o=0;return this._instances.forEach(function(n){if((!r||r==n.$$delegateHandle)&&n.$$filterFn(n)){o++;var a=n[e].apply(n,i);1===o&&(t=a)}}),!o&&r?n.warn('Delegate for handle "'+r+'" could not find a corresponding element with delegate-handle="'+r+'"! '+e+"() was not called!\nPossible cause: If you are calling "+e+'() immediately, and your element with delegate-handle="'+r+'" 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."):t}}return e.forEach(function(e){r.prototype[e]=o(e)}),i.prototype=r.prototype,i.prototype._registerInstance=function(e,n,r){var i=this._instances;return e.$$delegateHandle=n,e.$$filterFn=r||t,i.push(e),function(){var t=i.indexOf(e);t!==-1&&i.splice(t,1)}},i.prototype.$getByHandle=function(e){return new r(this._instances,e)},new i}]}}(window.ionic),function(e,t,n){function r(){o=!0;for(var e=0;e<i.length;e++)n.requestAnimationFrame(i[e]);i=[],t.removeEventListener("DOMContentLoaded",r)}var i=[],o="complete"===t.readyState||"interactive"===t.readyState;o||t.addEventListener("DOMContentLoaded",r),e._rAF=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(t){e.setTimeout(t,16)}}();var a=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelRequestAnimationFrame;n.DomUtil={requestAnimationFrame:function(t){return e._rAF(t)},cancelAnimationFrame:function(e){a(e)},animationFrameThrottle:function(e){var t,r,i;return function(){t=arguments,i=this,r||(r=!0,n.requestAnimationFrame(function(){e.apply(i,t),r=!1}))}},contains:function(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}},getPositionInParent:function(e){return{left:e.offsetLeft,top:e.offsetTop}},ready:function(e){o?n.requestAnimationFrame(e):i.push(e)},getTextBounds:function(n){if(t.createRange){var r=t.createRange();if(r.selectNodeContents(n),r.getBoundingClientRect){var i=r.getBoundingClientRect();if(i){var o=e.scrollX,a=e.scrollY;return{top:i.top+a,left:i.left+o,right:i.left+o+i.width,bottom:i.top+a+i.height,width:i.width,height:i.height}}}}return null},getChildIndex:function(e,t){if(t)for(var n,r=e.parentNode.children,i=0,o=0,a=r.length;i<a;i++)if(n=r[i],n.nodeName&&n.nodeName.toLowerCase()==t){if(n==e)return o;o++}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!0;r=r.parentNode}while(r&&r!==n);return!1},getParentWithClass:function(e,t,n){for(n=n||10;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){for(n=n||10;e&&n--;){if(e.classList&&e.classList.contains(t))return e;e=e.parentNode}return null},rectContains:function(e,t,n,r,i,o){return!(e<n||e>i)&&!(t<r||t>o)},blurAll:function(){return t.activeElement&&t.activeElement!=t.body?(t.activeElement.blur(),t.activeElement):null},cachedAttr:function(e,t,n){if(e=e&&e.length&&e[0]||e,e&&e.setAttribute){var r="$attr-"+t;return arguments.length>2?e[r]!==n&&(e.setAttribute(t,n),e[r]=n):"undefined"==typeof e[r]&&(e[r]=e.getAttribute(t)),e[r]}},cachedStyles:function(e,t){if(e=e&&e.length&&e[0]||e,e&&e.style)for(var n in t)e["$style-"+n]!==t[n]&&(e.style[n]=e["$style-"+n]=t[n])}},n.requestAnimationFrame=n.DomUtil.requestAnimationFrame,n.cancelAnimationFrame=n.DomUtil.cancelAnimationFrame,n.animationFrameThrottle=n.DomUtil.animationFrameThrottle}(window,document,ionic),function(e){e.CustomEvent=function(){if("function"==typeof window.CustomEvent)return CustomEvent;var e=function(e,t){var n;t=t||{bubbles:!1,cancelable:!1,detail:void 0};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};return e.prototype=window.Event.prototype,e}(),e.EventController={VIRTUALIZED_EVENTS:["tap","swipe","swiperight","swipeleft","drag","hold","release"],trigger:function(t,n,r,i){var o=new e.CustomEvent(t,{detail:n,bubbles:!!r,cancelable:!!i});n&&n.target&&n.target.dispatchEvent&&n.target.dispatchEvent(o)||window.dispatchEvent(o)},on:function(t,n,r){for(var i=r||window,o=0,a=this.VIRTUALIZED_EVENTS.length;o<a;o++)if(t==this.VIRTUALIZED_EVENTS[o]){var s=new e.Gesture(r);return s.on(t,n),s}i.addEventListener(t,n)},off:function(e,t,n){n.removeEventListener(e,t)},onGesture:function(t,n,r,i){var o=new e.Gesture(r,i);return o.on(t,n),o},offGesture:function(e,t,n){e&&e.off(t,n)},handlePopState:function(){}},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){e.Gestures.event.determineEventTypes();for(var t in e.Gestures.gestures)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=!0}}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=!1,e.Gestures.Instance=function(n,r){var i=this;return null===n?this:(t(),this.element=n,this.enabled=!0,this.options=e.Gestures.utils.extend(e.Gestures.utils.extend({},e.Gestures.defaults),r||{}),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){i.enabled&&e.Gestures.detection.startDetect(i,t)}),this)},e.Gestures.Instance.prototype={on:function(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)this.element.addEventListener(n[r],t,!1);return this},off:function(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)this.element.removeEventListener(n[r],t,!1);return this},trigger:function(t,n){var r=e.Gestures.DOCUMENT.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=n;var i=this.element;return e.Gestures.utils.hasParent(n.target,i)&&(i=n.target),i.dispatchEvent(r),this},enable:function(e){return this.enabled=e,this}};var n=null,r=!1,i=!1;e.Gestures.event={bindDom:function(e,t,n){for(var r=t.split(" "),i=0;i<r.length;i++)e.addEventListener(r[i],n,!1)},onTouch:function(t,o,a){var s=this;this.bindDom(t,e.Gestures.EVENT_TYPES[o],function(c){var l=c.type.toLowerCase();if(!l.match(/mouse/)||!i){l.match(/touch/)||l.match(/pointerdown/)||l.match(/mouse/)&&1===c.which?r=!0:l.match(/mouse/)&&1!==c.which&&(r=!1),l.match(/touch|pointer/)&&(i=!0);var u=0;r&&(e.Gestures.HAS_POINTEREVENTS&&o!=e.Gestures.EVENT_END?u=e.Gestures.PointerEvent.updatePointer(o,c):l.match(/touch/)?u=c.touches.length:i||(u=l.match(/up/)?0:1),u>0&&o==e.Gestures.EVENT_END?o=e.Gestures.EVENT_MOVE:u||(o=e.Gestures.EVENT_END),(u||null===n)&&(n=c),a.call(e.Gestures.detection,s.collectEventData(t,o,s.getTouchList(n,o),c)),e.Gestures.HAS_POINTEREVENTS&&o==e.Gestures.EVENT_END&&(u=e.Gestures.PointerEvent.updatePointer(o,c))),u||(n=null,r=!1,i=!1,e.Gestures.PointerEvent.reset())}})},determineEventTypes:function(){var t;t=e.Gestures.HAS_POINTEREVENTS?e.Gestures.PointerEvent.getEvents():e.Gestures.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],e.Gestures.EVENT_TYPES[e.Gestures.EVENT_START]=t[0],e.Gestures.EVENT_TYPES[e.Gestures.EVENT_MOVE]=t[1],e.Gestures.EVENT_TYPES[e.Gestures.EVENT_END]=t[2]},getTouchList:function(t){return e.Gestures.HAS_POINTEREVENTS?e.Gestures.PointerEvent.getTouchList():t.touches?t.touches:(t.identifier=1,[t])},collectEventData:function(t,n,r,i){var o=e.Gestures.POINTER_TOUCH;return(i.type.match(/mouse/)||e.Gestures.PointerEvent.matchType(e.Gestures.POINTER_MOUSE,i))&&(o=e.Gestures.POINTER_MOUSE),{center:e.Gestures.utils.getCenter(r),timeStamp:(new Date).getTime(),target:i.target,touches:r,eventType:n,pointerType:o,srcEvent:i,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return e.Gestures.detection.stopDetect()}}}},e.Gestures.PointerEvent={pointers:{},getTouchList:function(){var e=this,t=[];return Object.keys(e.pointers).sort().forEach(function(n){t.push(e.pointers[n])}),t},updatePointer:function(t,n){return t==e.Gestures.EVENT_END?this.pointers={}:(n.identifier=n.pointerId,this.pointers[n.pointerId]=n),Object.keys(this.pointers).length},matchType:function(t,n){if(!n.pointerType)return!1;var r={};return 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,r[t]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},e.Gestures.utils={extend:function(e,t,n){for(var r in t)void 0!==e[r]&&n||(e[r]=t[r]);return e},hasParent:function(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1},getCenter:function(e){for(var t=[],n=[],r=0,i=e.length;r<i;r++)t.push(e[r].pageX),n.push(e[r].pageY);return{pageX:(Math.min.apply(Math,t)+Math.max.apply(Math,t))/2,pageY:(Math.min.apply(Math,n)+Math.max.apply(Math,n))/2}},getVelocity:function(e,t,n){return{x:Math.abs(t/e)||0,y:Math.abs(n/e)||0}},getAngle:function(e,t){var n=t.pageY-e.pageY,r=t.pageX-e.pageX;return 180*Math.atan2(n,r)/Math.PI},getDirection:function(t,n){var r=Math.abs(t.pageX-n.pageX),i=Math.abs(t.pageY-n.pageY);return r>=i?t.pageX-n.pageX>0?e.Gestures.DIRECTION_LEFT:e.Gestures.DIRECTION_RIGHT:t.pageY-n.pageY>0?e.Gestures.DIRECTION_UP:e.Gestures.DIRECTION_DOWN},getDistance:function(e,t){var n=t.pageX-e.pageX,r=t.pageY-e.pageY;return Math.sqrt(n*n+r*r)},getScale:function(e,t){return e.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(e[0],e[1]):1},getRotation:function(e,t){return e.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(e[1],e[0]):0},isVertical:function(t){return t==e.Gestures.DIRECTION_UP||t==e.Gestures.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(e,t){e&&e.classList&&(e.classList.add(t),e.onselectstart=function(){return!1})}},e.Gestures.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,n){this.current||(this.stopped=!1,this.current={inst:t,startEvent:e.Gestures.utils.extend({},n),lastEvent:!1,name:""},this.detect(n))},detect:function(t){if(!this.current||this.stopped)return null;t=this.extendEventData(t);for(var n=this.current.inst.options,r=0,i=this.gestures.length;r<i;r++){var o=this.gestures[r];if(!this.stopped&&n[o.name]!==!1&&o.handler.call(o,t,this.current.inst)===!1){this.stopDetect();break}}return this.current&&(this.current.lastEvent=t),t.eventType==e.Gestures.EVENT_END&&!t.touches.length-1&&this.stopDetect(),t},stopDetect:function(){this.previous=e.Gestures.utils.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(t){var n=this.current.startEvent;if(n&&(t.touches.length!=n.touches.length||t.touches===n.touches)){n.touches=[];for(var r=0,i=t.touches.length;r<i;r++)n.touches.push(e.Gestures.utils.extend({},t.touches[r]))}var o=t.timeStamp-n.timeStamp,a=t.center.pageX-n.center.pageX,s=t.center.pageY-n.center.pageY,c=e.Gestures.utils.getVelocity(o,a,s);return e.Gestures.utils.extend(t,{deltaTime:o,deltaX:a,deltaY:s,velocityX:c.x,velocityY:c.y,distance:e.Gestures.utils.getDistance(n.center,t.center),angle:e.Gestures.utils.getAngle(n.center,t.center),direction:e.Gestures.utils.getDirection(n.center,t.center),scale:e.Gestures.utils.getScale(n.touches,t.touches),rotation:e.Gestures.utils.getRotation(n.touches,t.touches),startEvent:n}),t},register:function(t){var n=t.defaults||{};return void 0===n[t.name]&&(n[t.name]=!0),e.Gestures.utils.extend(e.Gestures.defaults,n,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(e,t){return e.index<t.index?-1:e.index>t.index?1:0}),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(t,n){switch(t.eventType){case e.Gestures.EVENT_START:clearTimeout(this.timer),e.Gestures.detection.current.name=this.name,this.timer=setTimeout(function(){"hold"==e.Gestures.detection.current.name&&(e.tap.cancelClick(),n.trigger("hold",t))},n.options.hold_timeout);break;case e.Gestures.EVENT_MOVE:t.distance>n.options.hold_threshold&&clearTimeout(this.timer);break;case e.Gestures.EVENT_END:clearTimeout(this.timer)}}},e.Gestures.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(t,n){if(t.eventType==e.Gestures.EVENT_END&&"touchcancel"!=t.srcEvent.type){var r=e.Gestures.detection.previous,i=!1;if(t.deltaTime>n.options.tap_max_touchtime||t.distance>n.options.tap_max_distance)return;r&&"tap"==r.name&&t.timeStamp-r.lastEvent.timeStamp<n.options.doubletap_interval&&t.distance<n.options.doubletap_distance&&(n.trigger("doubletap",t),i=!0),i&&!n.options.tap_always||(e.Gestures.detection.current.name="tap",n.trigger("tap",t))}}},e.Gestures.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.4},handler:function(t,n){if(t.eventType==e.Gestures.EVENT_END){if(n.options.swipe_max_touches>0&&t.touches.length>n.options.swipe_max_touches)return;(t.velocityX>n.options.swipe_velocity||t.velocityY>n.options.swipe_velocity)&&(n.trigger(this.name,t),n.trigger(this.name+t.direction,t))}}},e.Gestures.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!0,drag_block_vertical:!0,drag_lock_to_axis:!1,drag_lock_min_distance:25,prevent_default_directions:[]},triggered:!1,handler:function(t,n){if("touchstart"==t.srcEvent.type||"touchend"==t.srcEvent.type?this.preventedFirstMove=!1:this.preventedFirstMove||"touchmove"!=t.srcEvent.type||(n.options.prevent_default_directions.length>0&&n.options.prevent_default_directions.indexOf(t.direction)!=-1&&t.srcEvent.preventDefault(),this.preventedFirstMove=!0),e.Gestures.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),void(this.triggered=!1);if(!(n.options.drag_max_touches>0&&t.touches.length>n.options.drag_max_touches))switch(t.eventType){case e.Gestures.EVENT_START:this.triggered=!1;break;case e.Gestures.EVENT_MOVE:if(t.distance<n.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,n.options.correct_for_drag_min_distance)){var r=Math.abs(n.options.drag_min_distance/t.distance);e.Gestures.detection.current.startEvent.center.pageX+=t.deltaX*r,e.Gestures.detection.current.startEvent.center.pageY+=t.deltaY*r,t=e.Gestures.detection.extendEventData(t)}(e.Gestures.detection.current.lastEvent.drag_locked_to_axis||n.options.drag_lock_to_axis&&n.options.drag_lock_min_distance<=t.distance)&&(t.drag_locked_to_axis=!0);var i=e.Gestures.detection.current.lastEvent.direction;t.drag_locked_to_axis&&i!==t.direction&&(e.Gestures.utils.isVertical(i)?t.direction=t.deltaY<0?e.Gestures.DIRECTION_UP:e.Gestures.DIRECTION_DOWN:t.direction=t.deltaX<0?e.Gestures.DIRECTION_LEFT:e.Gestures.DIRECTION_RIGHT),this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),n.trigger(this.name+t.direction,t),(n.options.drag_block_vertical&&e.Gestures.utils.isVertical(t.direction)||n.options.drag_block_horizontal&&!e.Gestures.utils.isVertical(t.direction))&&t.preventDefault();break;case e.Gestures.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},e.Gestures.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(t,n){if(e.Gestures.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),void(this.triggered=!1);if(!(t.touches.length<2))switch(n.options.transform_always_block&&t.preventDefault(),t.eventType){case e.Gestures.EVENT_START:this.triggered=!1;break;case e.Gestures.EVENT_MOVE:var r=Math.abs(1-t.scale),i=Math.abs(t.rotation);if(r<n.options.transform_min_scale&&i<n.options.transform_min_rotation)return;e.Gestures.detection.current.name=this.name,this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),i>n.options.transform_min_rotation&&n.trigger("rotate",t),r>n.options.transform_min_scale&&(n.trigger("pinch",t),n.trigger("pinch"+(t.scale<1?"in":"out"),t));break;case e.Gestures.EVENT_END:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},e.Gestures.gestures.Touch={name:"touch",index:-(1/0),defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(t,n){return n.options.prevent_mouseevents&&t.pointerType==e.Gestures.POINTER_MOUSE?void t.stopDetect():(n.options.prevent_default&&t.preventDefault(),void(t.eventType==e.Gestures.EVENT_START&&n.trigger(this.name,t)))}},e.Gestures.gestures.Release={name:"release",index:1/0,handler:function(t,n){t.eventType==e.Gestures.EVENT_END&&n.trigger(this.name,t)}}}(window.ionic),function(e,t,n){function r(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))}function i(){f.isWebView()?t.addEventListener("deviceready",o,!1):o(),a&&e.removeEventListener("load",i,!1)}function o(){f.isReady=!0,f.detect();for(var e=0;e<p.length;e++)p[e]();p=[],n.trigger("platformready",{target:t}),u(function(){t.body.classList.add("platform-ready")})}var a,s="ios",c="android",l="windowsphone",u=n.requestAnimationFrame,f=n.Platform={navigator:e.navigator,isReady:!1,isFullScreen:!1,platforms:null,grade:null,ua:navigator.userAgent,ready:function(e){f.isReady?e():p.push(e)},detect:function(){f._checkPlatforms(),u(function(){for(var e=0;e<f.platforms.length;e++)t.body.classList.add("platform-"+f.platforms[e])})},setGrade:function(e){var n=f.grade;f.grade=e,u(function(){n&&t.body.classList.remove("grade-"+n),t.body.classList.add("grade-"+e)})},device:function(){return e.device||{}},_checkPlatforms:function(){f.platforms=[];var t="a";f.isWebView()?(f.platforms.push("webview"),e.cordova||e.PhoneGap||e.phonegap?f.platforms.push("cordova"):e.forge&&f.platforms.push("trigger")):f.platforms.push("browser"),f.isIPad()&&f.platforms.push("ipad");var n=f.platform();if(n){f.platforms.push(n);var r=f.version();if(r){var i=r.toString();i.indexOf(".")>0?i=i.replace(".","_"):i+="_0",f.platforms.push(n+i.split("_")[0]),f.platforms.push(n+i),f.isAndroid()&&r<4.4?t=r<4?"c":"b":f.isWindowsPhone()&&(t="b")}}f.setGrade(t)},isWebView:function(){return!!(e.cordova||e.PhoneGap||e.phonegap||e.forge)},isIPad:function(){return!!/iPad/i.test(f.navigator.platform)||/iPad/i.test(f.ua)},isIOS:function(){return f.is(s)},isAndroid:function(){return f.is(c)},isWindowsPhone:function(){return f.is(l)},platform:function(){return null===d&&f.setPlatform(f.device().platform),d},setPlatform:function(e){d="undefined"!=typeof e&&null!==e&&e.length?e.toLowerCase():r("ionicplatform")?r("ionicplatform"):f.ua.indexOf("Android")>0?c:/iPhone|iPad|iPod/.test(f.ua)?s:f.ua.indexOf("Windows Phone")>-1?l:f.navigator.platform&&navigator.platform.toLowerCase().split(" ")[0]||""},version:function(){return null===h&&f.setVersion(f.device().version),h},setVersion:function(e){if("undefined"!=typeof e&&null!==e&&(e=e.split("."),e=parseFloat(e[0]+"."+(e.length>1?e[1]:0)),!isNaN(e)))return void(h=e);h=0;var t=f.platform(),n={android:/Android (\d+).(\d+)?/,ios:/OS (\d+)_(\d+)?/,windowsphone:/Windows Phone (\d+).(\d+)?/};n[t]&&(e=f.ua.match(n[t]),e&&e.length>2&&(h=parseFloat(e[1]+"."+e[2])))},is:function(e){if(e=e.toLowerCase(),f.platforms)for(var t=0;t<f.platforms.length;t++)if(f.platforms[t]===e)return!0;var n=f.platform();return n?n===e.toLowerCase():f.ua.toLowerCase().indexOf(e)>=0},exitApp:function(){f.ready(function(){navigator.app&&navigator.app.exitApp&&navigator.app.exitApp()})},showStatusBar:function(n){f._showStatusBar=n,f.ready(function(){u(function(){f._showStatusBar?(e.StatusBar&&e.StatusBar.show(),t.body.classList.remove("status-bar-hide")):(e.StatusBar&&e.StatusBar.hide(),t.body.classList.add("status-bar-hide"))})})},fullScreen:function(e,r){f.isFullScreen=e!==!1,n.DomUtil.ready(function(){u(function(){f.isFullScreen?t.body.classList.add("fullscreen"):t.body.classList.remove("fullscreen")}),f.showStatusBar(r===!0)})}},d=null,h=null,p=[];"complete"===t.readyState?i():(a=!0,e.addEventListener("load",i,!1))}(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(void 0!==e.documentElement.style[r[n]]){t.CSS.TRANSFORM=r[n];break}for(r=["webkitTransition","mozTransition","msTransition","transition"],n=0;n<r.length;n++)if(void 0!==e.documentElement.style[r[n]]){t.CSS.TRANSITION=r[n];break}var i=t.CSS.TRANSITION.indexOf("webkit")>-1;t.CSS.TRANSITION_DURATION=(i?"-webkit-":"")+"transition-duration",t.CSS.TRANSITIONEND=(i?"webkitTransitionEnd ":"")+"transitionend"}(),"classList"in e.documentElement||!Object.defineProperty||"undefined"==typeof HTMLElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function e(e){return function(){var n,r=t.className.split(/\s+/);for(n=0;n<arguments.length;n++)e(r,r.indexOf(arguments[n]),arguments[n]);t.className=r.join(" ")}}var t=this;return{add:e(function(e,t,n){~t||e.push(n)}),remove:e(function(e,t){~t&&e.splice(t,1)}),toggle:e(function(e,t,n){~t?e.splice(t,1):e.push(n)}),contains:function(e){return!!~t.className.split(/\s+/).indexOf(e)},item:function(e){return t.className.split(/\s+/)[e]||null}}}})}(document,ionic);var H,F,j,q,U,G,W,Y,X="touchmove",K=12,Z=50,J={click:r,mousedown:i,mouseup:o,mousemove:a,touchstart:s,touchend:c,
touchcancel:u,touchmove:l,pointerdown:s,pointerup:c,pointercancel:u,pointermove:l,MSPointerDown:s,MSPointerUp:c,MSPointerCancel:u,MSPointerMove:l,focusin:m,focusout:v};ionic.tap={register:function(t){return H=t,e("click",!0,!0),e("mouseup"),e("mousedown"),window.navigator.pointerEnabled?(e("pointerdown"),e("pointerup"),e("pointcancel"),X="pointermove"):window.navigator.msPointerEnabled?(e("MSPointerDown"),e("MSPointerUp"),e("MSPointerCancel"),X="MSPointerMove"):(e("touchstart"),e("touchend"),e("touchcancel")),e("focusin"),e("focusout"),function(){for(var t in J)e(t,!1);H=null,F=null,j=!1,U=!1,G=null}},ignoreScrollStart:function(e){return e.defaultPrevented||/^(file|range)$/i.test(e.target.type)||"true"==(e.target.dataset?e.target.dataset.preventScroll:e.target.getAttribute("data-prevent-scroll"))||!!/^(object|embed)$/i.test(e.target.tagName)||ionic.tap.isElementTapDisabled(e.target)},isTextInput:function(e){return!!e&&("TEXTAREA"==e.tagName||"true"===e.contentEditable||"INPUT"==e.tagName&&!/^(radio|checkbox|range|file|submit|reset|color|image|button)$/i.test(e.type))},isDateInput:function(e){return!!e&&"INPUT"==e.tagName&&/^(date|time|datetime-local|month|week)$/i.test(e.type)},isKeyboardElement:function(e){return!ionic.Platform.isIOS()||ionic.Platform.isIPad()?ionic.tap.isTextInput(e)&&!ionic.tap.isDateInput(e):ionic.tap.isTextInput(e)||!!e&&"SELECT"==e.tagName},isLabelWithTextInput:function(e){var t=y(e,!1);return!!t&&ionic.tap.isTextInput(w(t))},containsOrIsTextInput:function(e){return ionic.tap.isTextInput(e)||ionic.tap.isLabelWithTextInput(e)},cloneFocusedInput:function(e){ionic.tap.hasCheckedClone||(ionic.tap.hasCheckedClone=!0,ionic.requestAnimationFrame(function(){var t=e.querySelector(":focus");if(ionic.tap.isTextInput(t)&&!ionic.tap.isDateInput(t)){var n=t.cloneNode(!0);t.value&&(n.value=t.value),n.classList.add("cloned-text-input"),n.readOnly=!0,t.isContentEditable&&(n.contentEditable=t.contentEditable,n.innerHTML=t.innerHTML),t.parentElement.insertBefore(n,t),t.classList.add("previous-input-focus"),n.scrollTop=t.scrollTop}}))},hasCheckedClone:!1,removeClonedInputs:function(e){ionic.tap.hasCheckedClone=!1,ionic.requestAnimationFrame(function(){var t,n=e.querySelectorAll(".cloned-text-input"),r=e.querySelectorAll(".previous-input-focus");for(t=0;t<n.length;t++)n[t].parentElement.removeChild(n[t]);for(t=0;t<r.length;t++)r[t].classList.remove("previous-input-focus"),r[t].style.top="",ionic.keyboard.isOpen&&!ionic.keyboard.isClosing&&r[t].focus()})},requiresNativeClick:function(e){return!!(!e||e.disabled||/^(file|range)$/i.test(e.type)||/^(object|video)$/i.test(e.tagName)||ionic.tap.isLabelContainingFileInput(e))||ionic.tap.isElementTapDisabled(e)},isLabelContainingFileInput:function(e){var t=y(e);if("LABEL"!==t.tagName)return!1;var n=t.querySelector("input[type=file]");return!(!n||n.disabled!==!1)},isElementTapDisabled:function(e){if(e&&1===e.nodeType)for(var t=e;t;){if("true"==(t.dataset?t.dataset.tapDisabled:t.getAttribute("data-tap-disabled")))return!0;t=t.parentElement}return!1},setTolerance:function(e,t){K=e,Z=t},cancelClick:function(){U=!0},pointerCoord:function(e){var t={x:0,y:0};if(e){var n=e.touches&&e.touches.length?e.touches:[e],r=e.changedTouches&&e.changedTouches[0]||n[0];r&&(t.x=r.clientX||r.pageX||0,t.y=r.clientY||r.pageY||0)}return t}},ionic.DomUtil.ready(function(){var e="undefined"!=typeof angular?angular:null;(!e||e&&!e.scenario)&&ionic.tap.register(document)}),function(e,t){"use strict";function n(){o={},t.requestAnimationFrame(i)}function r(){for(var e in o)o[e]&&(o[e].classList.add(c),a[e]=o[e]);o={}}function i(){if(t.transition&&t.transition.isActive)return void setTimeout(i,400);for(var e in a)a[e]&&(a[e].classList.remove(c),delete a[e])}var o={},a={},s=0,c="activated";t.activator={start:function(e){var n=t.tap.pointerCoord(e).x;n>0&&n<30||t.requestAnimationFrame(function(){if(!(t.scroll&&t.scroll.isScrolling||t.tap.requiresNativeClick(e.target))){for(var n,i=e.target,a=0;a<6&&(i&&1===i.nodeType);a++){if(n&&i.classList&&i.classList.contains("item")){n=i;break}if("A"==i.tagName||"BUTTON"==i.tagName||i.hasAttribute("ng-click")){n=i;break}if(i.classList.contains("button")){n=i;break}if("ION-CONTENT"==i.tagName||i.classList&&i.classList.contains("pane")||"BODY"==i.tagName)break;i=i.parentElement}n&&(o[s]=n,t.requestAnimationFrame(r),s=s>29?0:s+1)}})},end:function(){setTimeout(n,200)}}}(document,ionic),function(e){var t=0;e.Utils={arrayMove:function(e,t,n){if(n>=e.length)for(var r=n-e.length;r--+1;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),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,o,a,s;return function(){o=this,i=arguments,a=new Date;var c=function(){var l=new Date-a;l<t?r=setTimeout(c,t-l):(r=null,n||(s=e.apply(o,i)))},l=n&&!r;return r||(r=setTimeout(c,t)),l&&(s=e.apply(o,i)),s}},throttle:function(e,t,n){var r,i,o,a=null,s=0;n||(n={});var c=function(){s=n.leading===!1?0:Date.now(),a=null,o=e.apply(r,i)};return function(){var l=Date.now();s||n.leading!==!1||(s=l);var u=t-(l-s);return r=this,i=arguments,u<=0?(clearTimeout(a),a=null,s=l,o=e.apply(r,i)):a||n.trailing===!1||(a=setTimeout(c,u)),o}},inherit:function(t,n){var r,i=this;r=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return i.apply(this,arguments)},e.extend(r,i,n);var o=function(){this.constructor=r};return o.prototype=i.prototype,r.prototype=new o,t&&e.extend(r.prototype,t),r.__super__=i.prototype,r},extend:function(e){for(var t=Array.prototype.slice.call(arguments,1),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(){return"ion"+t++},disconnectScope:function(e){if(e&&e.$root!==e){var t=e.$parent;e.$$disconnected=!0,e.$broadcast("$ionic.disconnectScope",e),t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e.$parent;e.$$disconnected=!1,e.$broadcast("$ionic.reconnectScope",e),e.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=e,t.$$childTail=e):t.$$childHead=t.$$childTail=e}},isScopeDisconnected:function(e){for(var t=e;t;){if(t.$$disconnected)return!0;t=t.$parent}return!1}},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 Q,ee,te,ne,re=0,ie=0,oe=0,ae=!1,se="keyboard-open",ce="scroll-content",le=ionic.debounce(S,200,!0),ue=ionic.debounce(_,100,!0);ionic.keyboard={isOpen:!1,isClosing:!1,isOpening:!1,height:0,isLandscape:!1,isInitialized:!1,hide:function(){V()&&cordova.plugins.Keyboard.close(),Q&&Q.blur()},show:function(){V()&&cordova.plugins.Keyboard.show()},disable:function(){V()?(window.removeEventListener("native.keyboardshow",ue),window.removeEventListener("native.keyboardhide",x)):document.body.removeEventListener("focusout",x),document.body.removeEventListener("ionic.focusin",le),document.body.removeEventListener("focusin",le),window.removeEventListener("orientationchange",E),window.navigator.msPointerEnabled?document.removeEventListener("MSPointerDown",b):document.removeEventListener("touchstart",b),ionic.keyboard.isInitialized=!1},enable:function(){b()}},re=N(),ionic.Platform.ready(function(){P(),window.addEventListener("orientationchange",E),setTimeout(P,999),window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b,!1):document.addEventListener("touchstart",b,!1)});var fe,de={};ionic.viewport={orientation:function(){return window.innerWidth>window.innerHeight?90:0}},ionic.Platform.ready(function(){B(),window.addEventListener("orientationchange",function(){setTimeout(R,1e3)},!1)}),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 he={effect:{}};!function(e){var t=Date.now||function(){return+new Date},n=60,r=1e3,i={},o=1;he.effect.Animate={requestAnimationFrame:function(){var t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,n=!!t;if(t&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(t.toString())&&(n=!1),n)return function(e,n){t(e,n)};var r=60,i={},o=0,a=1,s=null,c=+new Date;return function(e){var t=a++;return i[t]=e,o++,null===s&&(s=setInterval(function(){var e=+new Date,t=i;i={},o=0;for(var n in t)t.hasOwnProperty(n)&&(t[n](e),c=e);e-c>2500&&(clearInterval(s),s=null)},1e3/r)),t}}(),stop:function(e){var t=null!=i[e];return t&&(i[e]=null),t},isRunning:function(e){return null!=i[e]},start:function(e,a,s,c,l,u){var f=t(),d=f,h=0,p=0,m=o++;if(u||(u=document.body),m%20===0){var v={};for(var g in i)v[g]=!0;i=v}var $=function(o){var v=o!==!0,g=t();if(!i[m]||a&&!a(m))return i[m]=null,void(s&&s(n-p/((g-f)/r),m,!1));if(v)for(var y=Math.round((g-d)/(r/n))-1,w=0;w<Math.min(y,4);w++)$(!0),p++;c&&(h=(g-f)/c,h>1&&(h=1));var b=l?l(h):h;e(b,g,v)!==!1&&1!==h||!v?v&&(d=g,he.effect.Animate.requestAnimationFrame($,u)):(i[m]=null,s&&s(n-p/((g-f)/r),m,1===h||null==c))};return i[m]=!0,he.effect.Animate.requestAnimationFrame($,u),m}}}(this),function(e){var t=function(){},n=function(e){return Math.pow(e-1,3)+1},r=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};e.views.Scroll=e.views.View.inherit({initialize:function(n){var r=this;r.__container=n.el,r.__content=n.el.firstElementChild,setTimeout(function(){r.__container&&r.__content&&(r.__container.scrollTop=0,r.__content.scrollTop=0)}),r.options={scrollingX:!1,scrollbarX:!0,scrollingY:!0,scrollbarY:!0,startX:0,startY:0,wheelDampen:6,minScrollbarSizeX:5,minScrollbarSizeY:5,scrollbarsFade:!0,scrollbarFadeDelay:300,scrollbarResizeFadeDelay:1e3,animating:!0,animationDuration:250,decelVelocityThreshold:4,decelVelocityThresholdPaging:4,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,deceleration:.97,preventDefault:!1,scrollingComplete:t,penetrationDeceleration:.03,penetrationAcceleration:.08,scrollEventInterval:10,freeze:!1,getContentWidth:function(){return Math.max(r.__content.scrollWidth,r.__content.offsetWidth)},getContentHeight:function(){return Math.max(r.__content.scrollHeight,r.__content.offsetHeight+2*r.__content.offsetTop)}};for(var i in n)r.options[i]=n[i];r.hintResize=e.debounce(function(){r.resize()},1e3,!0),r.onScroll=function(){e.scroll.isScrolling?(clearTimeout(r.scrollTimer),r.scrollTimer=setTimeout(r.setScrollStop,80)):setTimeout(r.setScrollStart,50)},r.freeze=function(e){return arguments.length&&(r.options.freeze=e),r.options.freeze},r.setScrollStart=function(){e.scroll.isScrolling=Math.abs(e.scroll.lastTop-r.__scrollTop)>1,clearTimeout(r.scrollTimer),r.scrollTimer=setTimeout(r.setScrollStop,80)},r.setScrollStop=function(){e.scroll.isScrolling=!1,e.scroll.lastTop=r.__scrollTop},r.triggerScrollEvent=e.throttle(function(){r.onScroll(),e.trigger("scroll",{scrollTop:r.__scrollTop,scrollLeft:r.__scrollLeft,target:r.__container})},r.options.scrollEventInterval),r.triggerScrollEndEvent=function(){e.trigger("scrollend",{scrollTop:r.__scrollTop,scrollLeft:r.__scrollLeft,target:r.__container})},r.__scrollLeft=r.options.startX,r.__scrollTop=r.options.startY,r.__callback=r.getRenderFn(),r.__initEventHandlers(),r.__createScrollbars()},run:function(){this.resize(),this.__fadeScrollbars("out",this.options.scrollbarResizeFadeDelay)},__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:!1,__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 t(e){return e.touches&&e.touches.length?e.touches:[{pageX:e.pageX,pageY:e.pageY}]}var n,r=this,i=r.__container;if(r.scrollChildIntoView=function(t){var o=i.getBoundingClientRect().bottom;n=i.offsetHeight;var a=r.isShrunkForKeyboard,s=i.parentNode.classList.contains("modal"),c=s&&window.innerWidth>=680;if(!a){if(e.Platform.isIOS()||e.Platform.isFullScreen||c){var l=t.detail.viewportHeight-o,u=Math.max(0,t.detail.keyboardHeight-l);e.requestAnimationFrame(function(){n-=u,i.style.height=n+"px",i.style.overflow="visible",r.resize()})}r.isShrunkForKeyboard=!0}t.detail.isElementUnderKeyboard&&e.requestAnimationFrame(function(){i.scrollTop=0,r.isShrunkForKeyboard&&!a&&(o=i.getBoundingClientRect().bottom);var s=.5*n,c=(t.detail.elementBottom+t.detail.elementTop)/2,l=c-o,u=l+s;u>0&&(e.Platform.isIOS()&&e.tap.cloneFocusedInput(i,r),r.scrollBy(0,u,!0),r.onScroll())}),t.stopPropagation()},r.resetScrollView=function(){r.isShrunkForKeyboard&&(r.isShrunkForKeyboard=!1,i.style.height="",i.style.overflow=""),r.resize()},i.addEventListener("scrollChildIntoView",r.scrollChildIntoView),document.addEventListener("resetScrollView",r.resetScrollView),r.touchStart=function(n){if(r.startCoordinates=e.tap.pointerCoord(n),!e.tap.ignoreScrollStart(n)){if(r.__isDown=!0,e.tap.containsOrIsTextInput(n.target)||"SELECT"===n.target.tagName)return void(r.__hasStarted=!1);r.__isSelectable=!0,r.__enableScrollY=!0,r.__hasStarted=!0,r.doTouchStart(t(n),n.timeStamp),n.preventDefault()}},r.touchMove=function(n){if(!(r.options.freeze||!r.__isDown||!r.__isDown&&n.defaultPrevented||"TEXTAREA"===n.target.tagName&&n.target.parentElement.querySelector(":focus"))){if(!r.__hasStarted&&(e.tap.containsOrIsTextInput(n.target)||"SELECT"===n.target.tagName))return r.__hasStarted=!0,r.doTouchStart(t(n),n.timeStamp),void n.preventDefault();if(r.startCoordinates){var o=e.tap.pointerCoord(n);r.__isSelectable&&e.tap.isTextInput(n.target)&&Math.abs(r.startCoordinates.x-o.x)>20&&(r.__enableScrollY=!1,r.__isSelectable=!0),r.__enableScrollY&&Math.abs(r.startCoordinates.y-o.y)>10&&(r.__isSelectable=!1,e.tap.cloneFocusedInput(i,r))}r.doTouchMove(t(n),n.timeStamp,n.scale),r.__isDown=!0}},r.touchMoveBubble=function(e){r.__isDown&&r.options.preventDefault&&e.preventDefault()},r.touchEnd=function(t){r.__isDown&&(r.doTouchEnd(t,t.timeStamp),r.__isDown=!1,r.__hasStarted=!1,r.__isSelectable=!0,r.__enableScrollY=!0,r.__isDragging||r.__isDecelerating||r.__isAnimating||e.tap.removeClonedInputs(i,r))},r.mouseWheel=e.animationFrameThrottle(function(t){var n=e.DomUtil.getParentOrSelfWithClass(t.target,"ionic-scroll");r.options.freeze||n!==r.__container||(r.hintResize(),r.scrollBy((t.wheelDeltaX||t.deltaX||0)/r.options.wheelDampen,(-t.wheelDeltaY||t.deltaY||0)/r.options.wheelDampen),r.__fadeScrollbars("in"),clearTimeout(r.__wheelHideBarTimeout),r.__wheelHideBarTimeout=setTimeout(function(){r.__fadeScrollbars("out")},100))}),"ontouchstart"in window)i.addEventListener("touchstart",r.touchStart,!1),r.options.preventDefault&&i.addEventListener("touchmove",r.touchMoveBubble,!1),document.addEventListener("touchmove",r.touchMove,!1),document.addEventListener("touchend",r.touchEnd,!1),document.addEventListener("touchcancel",r.touchEnd,!1);else if(window.navigator.pointerEnabled)i.addEventListener("pointerdown",r.touchStart,!1),r.options.preventDefault&&i.addEventListener("pointermove",r.touchMoveBubble,!1),document.addEventListener("pointermove",r.touchMove,!1),document.addEventListener("pointerup",r.touchEnd,!1),document.addEventListener("pointercancel",r.touchEnd,!1),document.addEventListener("wheel",r.mouseWheel,!1);else if(window.navigator.msPointerEnabled)i.addEventListener("MSPointerDown",r.touchStart,!1),r.options.preventDefault&&i.addEventListener("MSPointerMove",r.touchMoveBubble,!1),document.addEventListener("MSPointerMove",r.touchMove,!1),document.addEventListener("MSPointerUp",r.touchEnd,!1),document.addEventListener("MSPointerCancel",r.touchEnd,!1),document.addEventListener("wheel",r.mouseWheel,!1);else{var o=!1;r.mouseDown=function(n){e.tap.ignoreScrollStart(n)||"SELECT"===n.target.tagName||(r.doTouchStart(t(n),n.timeStamp),e.tap.isTextInput(n.target)||n.preventDefault(),o=!0)},r.mouseMove=function(e){r.options.freeze||!o||!o&&e.defaultPrevented||(r.doTouchMove(t(e),e.timeStamp),o=!0)},r.mouseMoveBubble=function(e){o&&r.options.preventDefault&&e.preventDefault()},r.mouseUp=function(e){o&&(r.doTouchEnd(e,e.timeStamp),o=!1)},i.addEventListener("mousedown",r.mouseDown,!1),r.options.preventDefault&&i.addEventListener("mousemove",r.mouseMoveBubble,!1),document.addEventListener("mousemove",r.mouseMove,!1),document.addEventListener("mouseup",r.mouseUp,!1),document.addEventListener("mousewheel",r.mouseWheel,!1),document.addEventListener("wheel",r.mouseWheel,!1)}},__cleanup:function(){var n=this,r=n.__container;r.removeEventListener("touchstart",n.touchStart),r.removeEventListener("touchmove",n.touchMoveBubble),document.removeEventListener("touchmove",n.touchMove),document.removeEventListener("touchend",n.touchEnd),document.removeEventListener("touchcancel",n.touchEnd),r.removeEventListener("pointerdown",n.touchStart),r.removeEventListener("pointermove",n.touchMoveBubble),document.removeEventListener("pointermove",n.touchMove),document.removeEventListener("pointerup",n.touchEnd),document.removeEventListener("pointercancel",n.touchEnd),r.removeEventListener("MSPointerDown",n.touchStart),r.removeEventListener("MSPointerMove",n.touchMoveBubble),document.removeEventListener("MSPointerMove",n.touchMove),document.removeEventListener("MSPointerUp",n.touchEnd),document.removeEventListener("MSPointerCancel",n.touchEnd),r.removeEventListener("mousedown",n.mouseDown),r.removeEventListener("mousemove",n.mouseMoveBubble),document.removeEventListener("mousemove",n.mouseMove),document.removeEventListener("mouseup",n.mouseUp),document.removeEventListener("mousewheel",n.mouseWheel),document.removeEventListener("wheel",n.mouseWheel),r.removeEventListener("scrollChildIntoView",n.scrollChildIntoView),document.removeEventListener("resetScrollView",n.resetScrollView),e.tap.removeClonedInputs(r,n),delete n.__container,delete n.__content,delete n.__indicatorX,delete n.__indicatorY,delete n.options.el,n.__callback=n.scrollChildIntoView=n.resetScrollView=t,n.mouseMove=n.mouseDown=n.mouseUp=n.mouseWheel=n.touchStart=n.touchMove=n.touchEnd=n.touchCancel=t,n.resize=n.scrollTo=n.zoomTo=n.__scrollingComplete=t,r=null},__createScrollbar:function(e){var t=document.createElement("div"),n=document.createElement("div");return n.className="scroll-bar-indicator scroll-bar-fade-out","h"==e?t.className="scroll-bar scroll-bar-h":t.className="scroll-bar scroll-bar-v",t.appendChild(n),t},__createScrollbars:function(){var e,t,n=this;n.options.scrollingX&&(e={el:n.__createScrollbar("h"),sizeRatio:1},e.indicator=e.el.children[0],n.options.scrollbarX&&n.__container.appendChild(e.el),n.__indicatorX=e),n.options.scrollingY&&(t={el:n.__createScrollbar("v"),sizeRatio:1},t.indicator=t.el.children[0],n.options.scrollbarY&&n.__container.appendChild(t.el),n.__indicatorY=t)},__resizeScrollbars:function(){var t=this;if(t.__indicatorX){var n=Math.max(Math.round(t.__clientWidth*t.__clientWidth/t.__contentWidth),20);n>t.__contentWidth&&(n=0),n!==t.__indicatorX.size&&e.requestAnimationFrame(function(){t.__indicatorX.indicator.style.width=n+"px"}),t.__indicatorX.size=n,t.__indicatorX.minScale=t.options.minScrollbarSizeX/n,t.__indicatorX.maxPos=t.__clientWidth-n,t.__indicatorX.sizeRatio=t.__maxScrollLeft?t.__indicatorX.maxPos/t.__maxScrollLeft:1}if(t.__indicatorY){var r=Math.max(Math.round(t.__clientHeight*t.__clientHeight/t.__contentHeight),20);r>t.__contentHeight&&(r=0),r!==t.__indicatorY.size&&e.requestAnimationFrame(function(){t.__indicatorY&&(t.__indicatorY.indicator.style.height=r+"px")}),t.__indicatorY.size=r,t.__indicatorY.minScale=t.options.minScrollbarSizeY/r,t.__indicatorY.maxPos=t.__clientHeight-r,t.__indicatorY.sizeRatio=t.__maxScrollTop?t.__indicatorY.maxPos/t.__maxScrollTop:1}},__repositionScrollbars:function(){var e,t,n,r,i,o,a=this,s=0,c=0;if(a.__indicatorX){a.__indicatorY&&(s=10),i=Math.round(a.__indicatorX.sizeRatio*a.__scrollLeft)||0,n=a.__scrollLeft-(a.__maxScrollLeft-s),a.__scrollLeft<0?(t=Math.max(a.__indicatorX.minScale,(a.__indicatorX.size-Math.abs(a.__scrollLeft))/a.__indicatorX.size),i=0,a.__indicatorX.indicator.style[a.__transformOriginProperty]="left center"):n>0?(t=Math.max(a.__indicatorX.minScale,(a.__indicatorX.size-n)/a.__indicatorX.size),i=a.__indicatorX.maxPos-s,a.__indicatorX.indicator.style[a.__transformOriginProperty]="right center"):(i=Math.min(a.__maxScrollLeft,Math.max(0,i)),t=1);var l="translate3d("+i+"px, 0, 0) scaleX("+t+")";a.__indicatorX.transformProp!==l&&(a.__indicatorX.indicator.style[a.__transformProperty]=l,a.__indicatorX.transformProp=l)}if(a.__indicatorY){o=Math.round(a.__indicatorY.sizeRatio*a.__scrollTop)||0,a.__indicatorX&&(c=10),r=a.__scrollTop-(a.__maxScrollTop-c),a.__scrollTop<0?(e=Math.max(a.__indicatorY.minScale,(a.__indicatorY.size-Math.abs(a.__scrollTop))/a.__indicatorY.size),o=0,"center top"!==a.__indicatorY.originProp&&(a.__indicatorY.indicator.style[a.__transformOriginProperty]="center top",a.__indicatorY.originProp="center top")):r>0?(e=Math.max(a.__indicatorY.minScale,(a.__indicatorY.size-r)/a.__indicatorY.size),o=a.__indicatorY.maxPos-c,"center bottom"!==a.__indicatorY.originProp&&(a.__indicatorY.indicator.style[a.__transformOriginProperty]="center bottom",a.__indicatorY.originProp="center bottom")):(o=Math.min(a.__maxScrollTop,Math.max(0,o)),e=1);var u="translate3d(0,"+o+"px, 0) scaleY("+e+")";a.__indicatorY.transformProp!==u&&(a.__indicatorY.indicator.style[a.__transformProperty]=u,a.__indicatorY.transformProp=u)}},__fadeScrollbars:function(e,t){var n=this;if(n.options.scrollbarsFade){var r="scroll-bar-fade-out";n.options.scrollbarsFade===!0&&(clearTimeout(n.__scrollbarFadeTimeout),"in"==e?(n.__indicatorX&&n.__indicatorX.indicator.classList.remove(r),n.__indicatorY&&n.__indicatorY.indicator.classList.remove(r)):n.__scrollbarFadeTimeout=setTimeout(function(){n.__indicatorX&&n.__indicatorX.indicator.classList.add(r),n.__indicatorY&&n.__indicatorY.indicator.classList.add(r)},t||n.options.scrollbarFadeDelay))}},__scrollingComplete:function(){this.options.scrollingComplete(),e.tap.removeClonedInputs(this.__container,this),this.__fadeScrollbars("out")},resize:function(e){var t=this;t.__container&&t.options&&t.setDimensions(t.__container.clientWidth,t.__container.clientHeight,t.options.getContentWidth(),t.options.getContentHeight(),e)},getRenderFn:function(){var e,t=this,n=t.__content,r=document.documentElement.style;"MozAppearance"in r?e="gecko":"WebkitAppearance"in r?e="webkit":"string"==typeof navigator.cpuClass&&(e="trident");var i,o={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[e],a=document.createElement("div"),s=o+"Perspective",c=o+"Transform",l=o+"TransformOrigin";return t.__perspectiveProperty=c,t.__transformProperty=c,t.__transformOriginProperty=l,a.style[s]!==i?function(e,r,i,o){var a="translate3d("+-e+"px,"+-r+"px,0) scale("+i+")";a!==t.contentTransform&&(n.style[c]=a,t.contentTransform=a),t.__repositionScrollbars(),o||t.triggerScrollEvent()}:a.style[c]!==i?function(e,r,i,o){n.style[c]="translate("+-e+"px,"+-r+"px) scale("+i+")",t.__repositionScrollbars(),o||t.triggerScrollEvent()}:function(e,r,i,o){n.style.marginLeft=e?-e/i+"px":"",n.style.marginTop=r?-r/i+"px":"",n.style.zoom=i||"",t.__repositionScrollbars(),o||t.triggerScrollEvent()}},setDimensions:function(e,t,n,r,i){var o=this;(e||t||n||r)&&(e===+e&&(o.__clientWidth=e),t===+t&&(o.__clientHeight=t),n===+n&&(o.__contentWidth=n),r===+r&&(o.__contentHeight=r),o.__computeScrollMax(),o.__resizeScrollbars(),i||o.scrollTo(o.__scrollLeft,o.__scrollTop,!0,null,!0))},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},activatePullToRefresh:function(t,n){var r=this;r.__refreshHeight=t,r.__refreshActivate=function(){e.requestAnimationFrame(n.activate)},r.__refreshDeactivate=function(){e.requestAnimationFrame(n.deactivate)},r.__refreshStart=function(){e.requestAnimationFrame(n.start)},r.__refreshShow=function(){e.requestAnimationFrame(n.show)},r.__refreshHide=function(){e.requestAnimationFrame(n.hide)},r.__refreshTail=function(){e.requestAnimationFrame(n.tail)},r.__refreshTailTime=100,r.__minSpinTime=600},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0);var e=new Date;this.refreshStartTime=e.getTime(),this.__refreshStart&&this.__refreshStart()},finishPullToRefresh:function(){var e=this,t=new Date,n=0;e.refreshStartTime+e.__minSpinTime>t.getTime()&&(n=e.refreshStartTime+e.__minSpinTime-t.getTime()),setTimeout(function(){e.__refreshTail&&e.__refreshTail(),setTimeout(function(){e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate(),e.__refreshHide&&e.__refreshHide(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)},e.__refreshTailTime)},n)},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,zoom:this.__zoomLevel}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,n,r){var i=this;if(!i.options.zooming)throw new Error("Zooming is not enabled!");i.__isDecelerating&&(he.effect.Animate.stop(i.__isDecelerating),i.__isDecelerating=!1);var o=i.__zoomLevel;null==n&&(n=i.__clientWidth/2),null==r&&(r=i.__clientHeight/2),e=Math.max(Math.min(e,i.options.maxZoom),i.options.minZoom),i.__computeScrollMax(e);var a=(n+i.__scrollLeft)*e/o-n,s=(r+i.__scrollTop)*e/o-r;a>i.__maxScrollLeft?a=i.__maxScrollLeft:a<0&&(a=0),s>i.__maxScrollTop?s=i.__maxScrollTop:s<0&&(s=0),i.__publish(a,s,e,t)},zoomBy:function(e,t,n,r){this.zoomTo(this.__zoomLevel*e,t,n,r)},scrollTo:function(e,t,n,r,i){var o=this;if(o.__isDecelerating&&(he.effect.Animate.stop(o.__isDecelerating),o.__isDecelerating=!1),null!=r&&r!==o.__zoomLevel){if(!o.options.zooming)throw new Error("Zooming is not enabled!");e*=r,t*=r,o.__computeScrollMax(r)}else r=o.__zoomLevel;o.options.scrollingX?o.options.paging?e=Math.round(e/o.__clientWidth)*o.__clientWidth:o.options.snapping&&(e=Math.round(e/o.__snapWidth)*o.__snapWidth):e=o.__scrollLeft,o.options.scrollingY?o.options.paging?t=Math.round(t/o.__clientHeight)*o.__clientHeight:o.options.snapping&&(t=Math.round(t/o.__snapHeight)*o.__snapHeight):t=o.__scrollTop,e=Math.max(Math.min(o.__maxScrollLeft,e),0),t=Math.max(Math.min(o.__maxScrollTop,t),0),e===o.__scrollLeft&&t===o.__scrollTop&&(n=!1),o.__publish(e,t,r,n,i)},scrollBy:function(e,t,n){var r=this,i=r.__isAnimating?r.__scheduledLeft:r.__scrollLeft,o=r.__isAnimating?r.__scheduledTop:r.__scrollTop;r.scrollTo(i+(e||0),o+(t||0),n)},doMouseZoom:function(e,t,n,r){var i=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*i,!1,n-this.__clientLeft,r-this.__clientTop)},doTouchStart:function(e,t){var n=this;n.__decStopped=!(!n.__isDecelerating&&!n.__isAnimating),n.hintResize(),t instanceof Date&&(t=t.valueOf()),"number"!=typeof t&&(t=Date.now()),n.__interruptedAnimation=!0,n.__isDecelerating&&(he.effect.Animate.stop(n.__isDecelerating),n.__isDecelerating=!1,n.__interruptedAnimation=!0),n.__isAnimating&&(he.effect.Animate.stop(n.__isAnimating),n.__isAnimating=!1,n.__interruptedAnimation=!0);var r,i,o=1===e.length;o?(r=e[0].pageX,i=e[0].pageY):(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=!o&&n.options.scrollingX,n.__enableScrollY=!o&&n.options.scrollingY,n.__isTracking=!0,n.__didDecelerationComplete=!1,n.__isDragging=!o,n.__isSingleTouch=o,n.__positions=[]},doTouchMove:function(e,t,n){t instanceof Date&&(t=t.valueOf()),"number"!=typeof t&&(t=Date.now());var r=this;if(r.__isTracking){var i,o;2===e.length?(i=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2,!n&&r.options.zooming&&(n=r.__getScale(r.__initialTouches,e))):(i=e[0].pageX,o=e[0].pageY);var a=r.__positions;if(r.__isDragging){r.__decStopped=!1;var s=i-r.__lastTouchLeft,c=o-r.__lastTouchTop,l=r.__scrollLeft,u=r.__scrollTop,f=r.__zoomLevel;if(null!=n&&r.options.zooming){var d=f;if(f=f/r.__lastScale*n,f=Math.max(Math.min(f,r.options.maxZoom),r.options.minZoom),d!==f){var h=i-r.__clientLeft,p=o-r.__clientTop;l=(h+l)*f/d-h,u=(p+u)*f/d-p,r.__computeScrollMax(f)}}if(r.__enableScrollX){l-=s*r.options.speedMultiplier;var m=r.__maxScrollLeft;(l>m||l<0)&&(r.options.bouncing?l+=s/2*r.options.speedMultiplier:l=l>m?m:0)}if(r.__enableScrollY){u-=c*r.options.speedMultiplier;var v=r.__maxScrollTop;u>v||u<0?r.options.bouncing||r.__refreshHeight&&u<0?(u+=c/2*r.options.speedMultiplier,r.__enableScrollX||null==r.__refreshHeight||(u<0?(r.__refreshHidden=!1,r.__refreshShow()):(r.__refreshHide(),r.__refreshHidden=!0),!r.__refreshActive&&u<=-r.__refreshHeight?(r.__refreshActive=!0,r.__refreshActivate&&r.__refreshActivate()):r.__refreshActive&&u>-r.__refreshHeight&&(r.__refreshActive=!1,r.__refreshDeactivate&&r.__refreshDeactivate()))):u=u>v?v:0:r.__refreshHeight&&!r.__refreshHidden&&(r.__refreshHide(),r.__refreshHidden=!0)}a.length>60&&a.splice(0,30),a.push(l,u,t),r.__publish(l,u,f)}else{var g=r.options.locking?3:0,$=5,y=Math.abs(i-r.__initialTouchLeft),w=Math.abs(o-r.__initialTouchTop);r.__enableScrollX=r.options.scrollingX&&y>=g,r.__enableScrollY=r.options.scrollingY&&w>=g,a.push(r.__scrollLeft,r.__scrollTop,t),r.__isDragging=(r.__enableScrollX||r.__enableScrollY)&&(y>=$||w>=$),r.__isDragging&&(r.__interruptedAnimation=!1,r.__fadeScrollbars("in"))}r.__lastTouchLeft=i,r.__lastTouchTop=o,r.__lastTouchMove=t,r.__lastScale=n}},doTouchEnd:function(t,n){n instanceof Date&&(n=n.valueOf()),"number"!=typeof n&&(n=Date.now());var r=this;if(r.__isTracking){if(r.__isTracking=!1,r.__isDragging)if(r.__isDragging=!1,r.__isSingleTouch&&r.options.animating&&n-r.__lastTouchMove<=100){for(var i=r.__positions,o=i.length-1,a=o,s=o;s>0&&i[s]>r.__lastTouchMove-100;s-=3)a=s;if(a!==o){var c=i[o]-i[a],l=r.__scrollLeft-i[a-2],u=r.__scrollTop-i[a-1];r.__decelerationVelocityX=l/c*(1e3/60),r.__decelerationVelocityY=u/c*(1e3/60);var f=r.options.paging||r.options.snapping?r.options.decelVelocityThresholdPaging:r.options.decelVelocityThreshold;(Math.abs(r.__decelerationVelocityX)>f||Math.abs(r.__decelerationVelocityY)>f)&&(r.__refreshActive||r.__startDeceleration(n))}else r.__scrollingComplete()}else n-r.__lastTouchMove>100&&r.__scrollingComplete();else r.__decStopped&&(t.isTapHandled=!0,r.__decStopped=!1);if(!r.__isDecelerating)if(r.__refreshActive&&r.__refreshStart){r.__publish(r.__scrollLeft,-r.__refreshHeight,r.__zoomLevel,!0);var d=new Date;r.refreshStartTime=d.getTime(),r.__refreshStart&&r.__refreshStart(),e.Platform.isAndroid()||r.__startDeceleration()}else(r.__interruptedAnimation||r.__isDragging)&&r.__scrollingComplete(),r.scrollTo(r.__scrollLeft,r.__scrollTop,!0,r.__zoomLevel),r.__refreshActive&&(r.__refreshActive=!1,r.__refreshDeactivate&&r.__refreshDeactivate());r.__positions.length=0}},__publish:function(e,t,i,o,a){var s=this,c=s.__isAnimating;if(c&&(he.effect.Animate.stop(c),s.__isAnimating=!1),o&&s.options.animating){s.__scheduledLeft=e,s.__scheduledTop=t,s.__scheduledZoom=i;var l=s.__scrollLeft,u=s.__scrollTop,f=s.__zoomLevel,d=e-l,h=t-u,p=i-f,m=function(e,t,n){
n&&(s.__scrollLeft=l+d*e,s.__scrollTop=u+h*e,s.__zoomLevel=f+p*e,s.__callback&&s.__callback(s.__scrollLeft,s.__scrollTop,s.__zoomLevel,a))},v=function(e){return s.__isAnimating===e},g=function(e,t,n){t===s.__isAnimating&&(s.__isAnimating=!1),(s.__didDecelerationComplete||n)&&s.__scrollingComplete(),s.options.zooming&&s.__computeScrollMax()};s.__isAnimating=he.effect.Animate.start(m,v,g,s.options.animationDuration,c?n:r)}else s.__scheduledLeft=s.__scrollLeft=e,s.__scheduledTop=s.__scrollTop=t,s.__scheduledZoom=s.__zoomLevel=i,s.__callback&&s.__callback(e,t,i,a),s.options.zooming&&s.__computeScrollMax()},__computeScrollMax:function(e){var t=this;null==e&&(e=t.__zoomLevel),t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0),t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0),t.__didWaitForSize||t.__maxScrollLeft||t.__maxScrollTop||(t.__didWaitForSize=!0,t.__waitForSize())},__waitForSize:function(){var e=this;clearTimeout(e.__sizerTimeout);var t=function(){e.resize(!0)};t(),e.__sizerTimeout=setTimeout(t,500)},__startDeceleration:function(){var e=this;if(e.options.paging){var t=Math.max(Math.min(e.__scrollLeft,e.__maxScrollLeft),0),n=Math.max(Math.min(e.__scrollTop,e.__maxScrollTop),0),r=e.__clientWidth,i=e.__clientHeight;e.__minDecelerationScrollLeft=Math.floor(t/r)*r,e.__minDecelerationScrollTop=Math.floor(n/i)*i,e.__maxDecelerationScrollLeft=Math.ceil(t/r)*r,e.__maxDecelerationScrollTop=Math.ceil(n/i)*i}else e.__minDecelerationScrollLeft=0,e.__minDecelerationScrollTop=0,e.__maxDecelerationScrollLeft=e.__maxScrollLeft,e.__maxDecelerationScrollTop=e.__maxScrollTop,e.__refreshActive&&(e.__minDecelerationScrollTop=e.__refreshHeight*-1);var o=function(t,n,r){e.__stepThroughDeceleration(r)};e.__minVelocityToKeepDecelerating=e.options.snapping?4:.1;var a=function(){var t=Math.abs(e.__decelerationVelocityX)>=e.__minVelocityToKeepDecelerating||Math.abs(e.__decelerationVelocityY)>=e.__minVelocityToKeepDecelerating;return t||(e.__didDecelerationComplete=!0,e.options.bouncing&&!e.__refreshActive&&e.scrollTo(Math.min(Math.max(e.__scrollLeft,0),e.__maxScrollLeft),Math.min(Math.max(e.__scrollTop,0),e.__maxScrollTop),e.__refreshActive)),t},s=function(){e.__isDecelerating=!1,e.__didDecelerationComplete&&e.__scrollingComplete(),e.options.paging&&e.scrollTo(e.__scrollLeft,e.__scrollTop,e.options.snapping)};e.__isDecelerating=he.effect.Animate.start(o,a,s)},__stepThroughDeceleration:function(e){var t=this,n=t.__scrollLeft+t.__decelerationVelocityX,r=t.__scrollTop+t.__decelerationVelocityY;if(!t.options.bouncing){var i=Math.max(Math.min(t.__maxDecelerationScrollLeft,n),t.__minDecelerationScrollLeft);i!==n&&(n=i,t.__decelerationVelocityX=0);var o=Math.max(Math.min(t.__maxDecelerationScrollTop,r),t.__minDecelerationScrollTop);o!==r&&(r=o,t.__decelerationVelocityY=0)}if(e?t.__publish(n,r,t.__zoomLevel):(t.__scrollLeft=n,t.__scrollTop=r),!t.options.paging){var a=t.options.deceleration;t.__decelerationVelocityX*=a,t.__decelerationVelocityY*=a}if(t.options.bouncing){var s=0,c=0,l=t.options.penetrationDeceleration,u=t.options.penetrationAcceleration;if(n<t.__minDecelerationScrollLeft?s=t.__minDecelerationScrollLeft-n:n>t.__maxDecelerationScrollLeft&&(s=t.__maxDecelerationScrollLeft-n),r<t.__minDecelerationScrollTop?c=t.__minDecelerationScrollTop-r:r>t.__maxDecelerationScrollTop&&(c=t.__maxDecelerationScrollTop-r),0!==s){var f=s*t.__decelerationVelocityX<=t.__minDecelerationScrollLeft;f&&(t.__decelerationVelocityX+=s*l);var d=Math.abs(t.__decelerationVelocityX)<=t.__minVelocityToKeepDecelerating;f&&!d||(t.__decelerationVelocityX=s*u)}if(0!==c){var h=c*t.__decelerationVelocityY<=t.__minDecelerationScrollTop;h&&(t.__decelerationVelocityY+=c*l);var p=Math.abs(t.__decelerationVelocityY)<=t.__minVelocityToKeepDecelerating;h&&!p||(t.__decelerationVelocityY=c*u)}}},__getDistance:function(e,t){var n=t.pageX-e.pageX,r=t.pageY-e.pageY;return Math.sqrt(n*n+r*r)},__getScale:function(e,t){return e.length>=2&&t.length>=2?this.__getDistance(t[0],t[1])/this.__getDistance(e[0],e[1]):1}}),e.scroll={isScrolling:!1,lastTop:0}}(ionic),function(e){var t=function(){},n=function(e){};e.views.ScrollNative=e.views.View.inherit({initialize:function(n){var r=this;r.__container=r.el=n.el,r.__content=n.el.firstElementChild,r.isNative=!0,r.__scrollTop=r.el.scrollTop,r.__scrollLeft=r.el.scrollLeft,r.__clientHeight=r.__content.clientHeight,r.__clientWidth=r.__content.clientWidth,r.__maxScrollTop=Math.max(r.__contentHeight-r.__clientHeight,0),r.__maxScrollLeft=Math.max(r.__contentWidth-r.__clientWidth,0),r.options={freeze:!1,getContentWidth:function(){return Math.max(r.__content.scrollWidth,r.__content.offsetWidth)},getContentHeight:function(){return Math.max(r.__content.scrollHeight,r.__content.offsetHeight+2*r.__content.offsetTop)}};for(var i in n)r.options[i]=n[i];r.onScroll=function(){e.scroll.isScrolling||(e.scroll.isScrolling=!0),clearTimeout(r.scrollTimer),r.scrollTimer=setTimeout(function(){e.scroll.isScrolling=!1},80)},r.freeze=t,r.__initEventHandlers()},__callback:function(){n("__callback")},zoomTo:function(){n("zoomTo")},zoomBy:function(){n("zoomBy")},activatePullToRefresh:function(){n("activatePullToRefresh")},resize:function(e){var t=this;t.__container&&t.options&&t.setDimensions(t.__container.clientWidth,t.__container.clientHeight,t.options.getContentWidth(),t.options.getContentHeight(),e)},run:function(){this.resize()},getValues:function(){var e=this;return e.update(),{left:e.__scrollLeft,top:e.__scrollTop,zoom:1}},update:function(){var e=this;e.__scrollLeft=e.el.scrollLeft,e.__scrollTop=e.el.scrollTop},setDimensions:function(e,t,n,r){var i=this;(e||t||n||r)&&(e===+e&&(i.__clientWidth=e),t===+t&&(i.__clientHeight=t),n===+n&&(i.__contentWidth=n),r===+r&&(i.__contentHeight=r),i.__computeScrollMax())},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},scrollBy:function(e,t,n){var r=this;r.update();var i=r.__isAnimating?r.__scheduledLeft:r.__scrollLeft,o=r.__isAnimating?r.__scheduledTop:r.__scrollTop;r.scrollTo(i+(e||0),o+(t||0),n)},scrollTo:function(t,n,r){function i(t,n){function r(e){return--e*e*e+1}function i(){var u=Date.now(),f=Math.min(1,(u-a)/s),d=r(f);c!=t&&(o.el.scrollTop=parseInt(d*(t-c)+c,10)),l!=n&&(o.el.scrollLeft=parseInt(d*(n-l)+l,10)),f<1?e.requestAnimationFrame(i):(e.tap.removeClonedInputs(o.__container,o),o.resize())}var a=Date.now(),s=250,c=o.el.scrollTop,l=o.el.scrollLeft;return c===t&&l===n?void o.resize():void e.requestAnimationFrame(i)}var o=this;return r?void i(n,t):(o.el.scrollTop=n,o.el.scrollLeft=t,void o.resize())},__waitForSize:function(){var e=this;clearTimeout(e.__sizerTimeout);var t=function(){e.resize(!0)};t(),e.__sizerTimeout=setTimeout(t,500)},__computeScrollMax:function(){var e=this;e.__maxScrollLeft=Math.max(e.__contentWidth-e.__clientWidth,0),e.__maxScrollTop=Math.max(e.__contentHeight-e.__clientHeight,0),e.__didWaitForSize||e.__maxScrollLeft||e.__maxScrollTop||(e.__didWaitForSize=!0,e.__waitForSize())},__initEventHandlers:function(){var t,n=this,r=n.__container;n.scrollChildIntoView=function(i){var o=r.getBoundingClientRect().bottom;t=r.offsetHeight;var a=n.isShrunkForKeyboard,s=r.parentNode.classList.contains("modal"),c=s&&window.innerWidth>=680;if(!a){if(e.Platform.isIOS()||e.Platform.isFullScreen||c){var l=i.detail.viewportHeight-o,u=Math.max(0,i.detail.keyboardHeight-l);e.requestAnimationFrame(function(){t-=u,r.style.height=t+"px",n.resize()})}n.isShrunkForKeyboard=!0}i.detail.isElementUnderKeyboard&&e.requestAnimationFrame(function(){n.isShrunkForKeyboard&&!a&&(o=r.getBoundingClientRect().bottom);var s=.5*t,c=(i.detail.elementBottom+i.detail.elementTop)/2,l=c-o,u=l+s;u>0&&(e.Platform.isIOS()?setTimeout(function(){e.tap.cloneFocusedInput(r,n),n.scrollBy(0,u,!0),n.onScroll()},32):(n.scrollBy(0,u,!0),n.onScroll()))}),i.stopPropagation()},n.resetScrollView=function(){n.isShrunkForKeyboard&&(n.isShrunkForKeyboard=!1,r.style.height=""),n.resize()},r.addEventListener("scroll",n.onScroll),r.addEventListener("scrollChildIntoView",n.scrollChildIntoView),document.addEventListener("resetScrollView",n.resetScrollView)},__cleanup:function(){var n=this,r=n.__container;r.removeEventListener("resetScrollView",n.resetScrollView),r.removeEventListener("scroll",n.onScroll),r.removeEventListener("scrollChildIntoView",n.scrollChildIntoView),r.removeEventListener("resetScrollView",n.resetScrollView),e.tap.removeClonedInputs(r,n),delete n.__container,delete n.__content,delete n.__indicatorX,delete n.__indicatorY,delete n.options.el,n.resize=n.scrollTo=n.onScroll=n.resetScrollView=t,n.scrollChildIntoView=t,r=null}})}(ionic),function(e){"use strict";var t="item",n="item-content",r="item-sliding",i="item-options",o="item-placeholder",a="item-reordering",s="item-reorder",c=function(){};c.prototype={start:function(){},drag:function(){},end:function(){},isSameItem:function(){return!1}};var l=function(e){this.dragThresholdX=e.dragThresholdX||10,this.el=e.el,this.item=e.item,this.canSwipe=e.canSwipe};l.prototype=new c,l.prototype.start=function(o){var a,s,c,l;this.canSwipe()&&(a=o.target.classList.contains(n)?o.target:o.target.classList.contains(t)?o.target.querySelector("."+n):e.DomUtil.getParentWithClass(o.target,n),a&&(a.classList.remove(r),c=parseFloat(a.style[e.CSS.TRANSFORM].replace("translate3d(","").split(",")[0])||0,s=a.parentNode.querySelector("."+i),s&&(s.classList.remove("invisible"),l=s.offsetWidth,this._currentDrag={buttons:s,buttonsWidth:l,content:a,startOffsetX:c})))},l.prototype.isSameItem=function(e){return!(!e._lastDrag||!this._currentDrag)&&this._currentDrag.content==e._lastDrag.content},l.prototype.clean=function(t){function n(){r.buttons&&r.buttons.classList.add("invisible")}var r=this._lastDrag;r&&r.content&&(r.content.style[e.CSS.TRANSITION]="",r.content.style[e.CSS.TRANSFORM]="",t?(r.content.style[e.CSS.TRANSITION]="none",n(),e.requestAnimationFrame(function(){r.content.style[e.CSS.TRANSITION]=""})):e.requestAnimationFrame(function(){setTimeout(n,250)}))},l.prototype.drag=e.animationFrameThrottle(function(t){var n;if(this._currentDrag&&(!this._isDragging&&(Math.abs(t.gesture.deltaX)>this.dragThresholdX||Math.abs(this._currentDrag.startOffsetX)>0)&&(this._isDragging=!0),this._isDragging)){n=this._currentDrag.buttonsWidth;var r=Math.min(0,this._currentDrag.startOffsetX+t.gesture.deltaX);r<-n&&(r=Math.min(-n,-n+.4*(t.gesture.deltaX+n))),this._currentDrag.content.$$ionicOptionsOpen=0!==r,this._currentDrag.content.style[e.CSS.TRANSFORM]="translate3d("+r+"px, 0, 0)",this._currentDrag.content.style[e.CSS.TRANSITION]="none"}}),l.prototype.end=function(t,n){var r=this;if(!r._currentDrag)return void(n&&n());var i=-r._currentDrag.buttonsWidth;t.gesture.deltaX>-(r._currentDrag.buttonsWidth/2)&&("left"==t.gesture.direction&&Math.abs(t.gesture.velocityX)<.3?i=0:"right"==t.gesture.direction&&(i=0)),e.requestAnimationFrame(function(){if(0===i){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._lastDrag={}),e.extend(r._lastDrag,r._currentDrag),r._currentDrag&&(r._currentDrag.buttons=null,r._currentDrag.content=null),r._currentDrag=null,n&&n()})};var u=function(e){var t=this;if(t.dragThresholdY=e.dragThresholdY||0,t.onReorder=e.onReorder,t.listEl=e.listEl,t.el=t.item=e.el,t.scrollEl=e.scrollEl,t.scrollView=e.scrollView,t.listElTrueTop=0,t.listEl.offsetParent){var n=t.listEl;do t.listElTrueTop+=n.offsetTop,n=n.offsetParent;while(n)}};u.prototype=new c,u.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)"},u.prototype.deregister=function(){this.listEl=this.el=this.scrollEl=this.scrollView=null},u.prototype.start=function(t){var n=e.DomUtil.getChildIndex(this.el,this.el.nodeName.toLowerCase()),r=this.el.scrollHeight,i=this.el.cloneNode(!0);i.classList.add(o),this.el.parentNode.insertBefore(i,this.el),this.el.classList.add(a),this._currentDrag={elementHeight:r,startIndex:n,placeholder:i,scrollHeight:scroll,list:i.parentNode},this._moveElement(t)},u.prototype.drag=e.animationFrameThrottle(function(t){var n=this;if(this._currentDrag){var r=0,i=t.gesture.center.pageY,o=this.listElTrueTop;if(this.scrollView){var a=this.scrollView.__container;r=this.scrollView.getValues().top;var s=a.offsetTop,c=s-i+this._currentDrag.elementHeight/2,l=i+this._currentDrag.elementHeight/2-s-a.offsetHeight;t.gesture.deltaY<0&&c>0&&r>0&&(this.scrollView.scrollBy(null,-c),e.requestAnimationFrame(function(){n.drag(t)})),t.gesture.deltaY>0&&l>0&&r<this.scrollView.getScrollMax().top&&(this.scrollView.scrollBy(null,l),e.requestAnimationFrame(function(){n.drag(t)}))}!this._isDragging&&Math.abs(t.gesture.deltaY)>this.dragThresholdY&&(this._isDragging=!0),this._isDragging&&(this._moveElement(t),this._currentDrag.currentY=r+i-o)}}),u.prototype._getReorderIndex=function(){for(var e,t=this,n=Array.prototype.slice.call(t._currentDrag.placeholder.parentNode.children).filter(function(e){return e.nodeName===t.el.nodeName&&e!==t.el}),r=t._currentDrag.currentY,i=0,o=n.length;i<o;i++)if(e=n[i],i===o-1){if(r>e.offsetTop)return i}else if(0===i){if(r<e.offsetTop+e.offsetHeight)return i}else if(r>e.offsetTop-e.offsetHeight/2&&r<e.offsetTop+e.offsetHeight)return i;return t._currentDrag.startIndex},u.prototype.end=function(t,n){if(!this._currentDrag)return void(n&&n());var r=this._currentDrag.placeholder,i=this._getReorderIndex();this.el.classList.remove(a),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={placeholder:null,content:null},this._currentDrag=null,n&&n()},e.views.ListView=e.views.View.inherit({initialize:function(t){var n=this;t=e.extend({onReorder:function(){},virtualRemoveThreshold:-200,virtualAddThreshold:200,canSwipe:function(){return!0}},t),e.extend(n,t),!n.itemHeight&&n.listEl&&(n.itemHeight=n.listEl.children[0]&&parseInt(n.listEl.children[0].style.height,10)),n.onRefresh=t.onRefresh||function(){},n.onRefreshOpening=t.onRefreshOpening||function(){},n.onRefreshHolding=t.onRefreshHolding||function(){};var r={};e.DomUtil.getParentOrSelfWithClass(n.el,"overflow-scroll")&&(r.prevent_default_directions=["left","right"]),window.ionic.onGesture("release",function(e){n._handleEndDrag(e)},n.el,r),window.ionic.onGesture("drag",function(e){n._handleDrag(e)},n.el,r),n._initDrag()},deregister:function(){this.el=this.listEl=this.scrollEl=this.scrollView=null,this.isScrollFreeze&&self.scrollView.freeze(!1)},stopRefreshing:function(){var e=this.el.querySelector(".list-refresher");e.style.height="0"},didScroll:function(e){var t=this;if(t.isVirtual){var n=t.itemHeight,r=e.target.scrollHeight,i=t.el.parentNode.offsetHeight,o=Math.max(0,e.scrollTop+t.virtualRemoveThreshold),a=Math.min(r,Math.abs(e.scrollTop)+i+t.virtualAddThreshold),s=parseInt(Math.abs(o/n),10),c=parseInt(Math.abs(a/n),10);t._virtualItemsToRemove=Array.prototype.slice.call(t.listEl.children,0,s),t.renderViewport&&t.renderViewport(o,a,s,c)}},didStopScrolling:function(){if(this.isVirtual)for(var e=0;e<this._virtualItemsToRemove.length;e++)this.didHideItem&&this.didHideItem(e)},clearDragEffects:function(e){this._lastDragOp&&(this._lastDragOp.clean&&this._lastDragOp.clean(e),this._lastDragOp.deregister&&this._lastDragOp.deregister(),this._lastDragOp=null)},_initDrag:function(){this._lastDragOp&&this._lastDragOp.deregister&&this._lastDragOp.deregister(),this._lastDragOp=this._dragOp,this._dragOp=null},_getItem:function(e){for(;e;){if(e.classList&&e.classList.contains(t))return e;e=e.parentNode}return null},_startDrag:function(t){var n=this;n._isDragging=!1;var r,i=n._lastDragOp;n._didDragUpOrDown&&i instanceof l&&i.clean&&i.clean(),!e.DomUtil.getParentOrSelfWithClass(t.target,s)||"up"!=t.gesture.direction&&"down"!=t.gesture.direction?!n._didDragUpOrDown&&("left"==t.gesture.direction||"right"==t.gesture.direction)&&Math.abs(t.gesture.deltaX)>5&&(r=n._getItem(t.target),r&&r.querySelector(".item-options")&&(n._dragOp=new l({el:n.el,item:r,canSwipe:n.canSwipe}),n._dragOp.start(t),t.preventDefault(),n.isScrollFreeze=n.scrollView.freeze(!0))):(r=n._getItem(t.target),r&&(n._dragOp=new u({listEl:n.el,el:r,scrollEl:n.scrollEl,scrollView:n.scrollView,onReorder:function(e,t,r){n.onReorder&&n.onReorder(e,t,r)}}),n._dragOp.start(t),t.preventDefault())),i&&n._dragOp&&!n._dragOp.isSameItem(i)&&t.defaultPrevented&&i.clean&&i.clean()},_handleEndDrag:function(e){var t=this;t.scrollView&&(t.isScrollFreeze=t.scrollView.freeze(!1)),t._didDragUpOrDown=!1,t._dragOp&&t._dragOp.end(e,function(){t._initDrag()})},_handleDrag:function(e){var t=this;Math.abs(e.gesture.deltaY)>5&&(t._didDragUpOrDown=!0),t.isDragging||t._dragOp||t._startDrag(e),t._dragOp&&(e.gesture.srcEvent.preventDefault(),t._dragOp.drag(e))}})}(ionic),function(e){"use strict";e.views.Modal=e.views.View.inherit({initialize:function(t){t=e.extend({focusFirstInput:!1,unfocusOnHide:!0,focusFirstDelay:600,backdropClickToClose:!0,hardwareBackButtonClose:!0},t),e.extend(this,t),this.el=t.el},show:function(){var e=this;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="undefined"==typeof e.isEnabled||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(){"0"!==this.el.style.zIndex&&(this.el.style.zIndex="0")},pushDown:function(){"-1"!==this.el.style.zIndex&&(this.el.style.zIndex="-1")}}),e.views.SideMenuContent=e.views.View.inherit({initialize:function(t){e.extend(this,{animationClass:"menu-animated",onDrag:function(){},onEndDrag:function(){}},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 t(){if(m.offsetWidth){v=w.children,y=v.length,v.length<2&&(e.continuous=!1),p.transitions&&e.continuous&&v.length<3&&(w.appendChild(v[0].cloneNode(!0)),w.appendChild(w.children[1].cloneNode(!0)),v=w.children),g=new Array(v.length),$=m.offsetWidth||m.getBoundingClientRect().width,w.style.width=v.length*$+"px";for(var t=v.length;t--;){var n=v[t];n.style.width=$+"px",n.setAttribute("data-index",t),p.transitions&&(n.style.left=t*-$+"px",a(t,b>t?-$:b<t?$:0,0))}e.continuous&&p.transitions&&(a(i(b-1),-$,0),a(i(b+1),$,0)),p.transitions||(w.style.left=b*-$+"px"),m.style.visibility="visible",e.slidesChanged&&e.slidesChanged()}}function n(t){e.continuous?o(b-1,t):b&&o(b-1,t)}function r(t){e.continuous?o(b+1,t):b<v.length-1&&o(b+1,t)}function i(e){return(v.length+e%v.length)%v.length}function o(t,n){if(b!=t){if(p.transitions){var r=Math.abs(b-t)/(b-t);if(e.continuous){var o=r;r=-g[i(t)]/$,r!==o&&(t=-r*v.length+t)}for(var s=Math.abs(b-t)-1;s--;)a(i((t>b?t:b)-s-1),$*r,0);t=i(t),a(b,$*r,n||_),a(t,0,n||_),e.continuous&&a(i(t-r),-($*r),0)}else t=i(t),c(b*-$,t*-$,n||_);b=t,h(e.callback&&e.callback(b,v[b]))}}function a(e,t,n){s(e,t,n),g[e]=t}function s(e,t,n){var r=v[e],i=r&&r.style;i&&(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 c(t,n,r){if(!r)return void(w.style.left=n+"px");var i=+new Date,o=setInterval(function(){var a=+new Date-i;return a>r?(w.style.left=n+"px",E&&l(),e.transitionEnd&&e.transitionEnd.call(event,b,v[b]),void clearInterval(o)):void(w.style.left=(n-t)*(Math.floor(a/r*100)/100)+t+"px")},4)}function l(){S=setTimeout(r,E)}function u(){E=e.auto||0,clearTimeout(S)}var f=this,d=function(){},h=function(e){setTimeout(e||d,0)},p={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(void 0!==e.style[t[n]])return!0;return!1}(document.createElement("swipe"))},m=e.el;if(m){var v,g,$,y,w=m.children[0];e=e||{};var b=parseInt(e.startSlide,10)||0,_=e.speed||300;e.continuous=void 0===e.continuous||e.continuous;var S,x,E=e.auto||0,T={},C={},k={handleEvent:function(n){switch("mousedown"!=n.type&&"mouseup"!=n.type&&"mousemove"!=n.type||(n.touches=[{pageX:n.pageX,pageY:n.pageY}]),n.type){case"mousedown":this.start(n);break;case"touchstart":this.start(n);break;case"touchmove":this.touchmove(n);break;case"mousemove":this.touchmove(n);break;case"touchend":h(this.end(n));break;case"mouseup":h(this.end(n));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":h(this.transitionEnd(n));break;case"resize":h(t)}e.stopPropagation&&n.stopPropagation()},start:function(e){var t=e.touches[0];T={x:t.pageX,y:t.pageY,time:+new Date},x=void 0,C={},p.touch?(w.addEventListener("touchmove",this,!1),w.addEventListener("touchend",this,!1)):(w.addEventListener("mousemove",this,!1),w.addEventListener("mouseup",this,!1),document.addEventListener("mouseup",this,!1))},touchmove:function(t){if(!(t.touches.length>1||t.scale&&1!==t.scale||f.slideIsDisabled)){e.disableScroll&&t.preventDefault();var n=t.touches[0];C={x:n.pageX-T.x,y:n.pageY-T.y},"undefined"==typeof x&&(x=!!(x||Math.abs(C.x)<Math.abs(C.y))),x||(t.preventDefault(),u(),e.continuous?(s(i(b-1),C.x+g[i(b-1)],0),s(b,C.x+g[b],0),s(i(b+1),C.x+g[i(b+1)],0)):(C.x=C.x/(!b&&C.x>0||b==v.length-1&&C.x<0?Math.abs(C.x)/$+1:1),s(b-1,C.x+g[b-1],0),s(b,C.x+g[b],0),s(b+1,C.x+g[b+1],0)),e.onDrag&&e.onDrag())}},end:function(){var t=+new Date-T.time,n=Number(t)<250&&Math.abs(C.x)>20||Math.abs(C.x)>$/2,r=!b&&C.x>0||b==v.length-1&&C.x<0;e.continuous&&(r=!1);var o=C.x<0;x||(n&&!r?(o?(e.continuous?(a(i(b-1),-$,0),a(i(b+2),$,0)):a(b-1,-$,0),a(b,g[b]-$,_),a(i(b+1),g[i(b+1)]-$,_),b=i(b+1)):(e.continuous?(a(i(b+1),$,0),a(i(b-2),-$,0)):a(b+1,$,0),a(b,g[b]+$,_),a(i(b-1),g[i(b-1)]+$,_),b=i(b-1)),e.callback&&e.callback(b,v[b])):e.continuous?(a(i(b-1),-$,_),a(b,0,_),a(i(b+1),$,_)):(a(b-1,-$,_),a(b,0,_),a(b+1,$,_))),p.touch?(w.removeEventListener("touchmove",k,!1),w.removeEventListener("touchend",k,!1)):(w.removeEventListener("mousemove",k,!1),w.removeEventListener("mouseup",k,!1),document.removeEventListener("mouseup",k,!1)),e.onDragEnd&&e.onDragEnd()},transitionEnd:function(t){parseInt(t.target.getAttribute("data-index"),10)==b&&(E&&l(),e.transitionEnd&&e.transitionEnd.call(t,b,v[b]))}};this.update=function(){setTimeout(t)},this.setup=function(){t()},this.loop=function(t){return arguments.length&&(e.continuous=!!t),e.continuous},this.enableSlide=function(e){return arguments.length&&(this.slideIsDisabled=!e),!this.slideIsDisabled},this.slide=this.select=function(e,t){u(),o(e,t)},this.prev=this.previous=function(){u(),n()},this.next=function(){u(),r()},this.stop=function(){u()},this.start=function(){l()},this.autoPlay=function(e){!E||E<0?u():(E=e,l())},this.currentIndex=this.selected=function(){return b},this.slidesCount=this.count=function(){return y},this.kill=function(){u(),w.style.width="",w.style.left="",v&&(v=[]),p.addEventListener?(w.removeEventListener("touchstart",k,!1),w.removeEventListener("webkitTransitionEnd",k,!1),w.removeEventListener("msTransitionEnd",k,!1),w.removeEventListener("oTransitionEnd",k,!1),w.removeEventListener("otransitionend",k,!1),w.removeEventListener("transitionend",k,!1),window.removeEventListener("resize",k,!1)):window.onresize=null},this.load=function(){t(),E&&l(),p.addEventListener?(p.touch?w.addEventListener("touchstart",k,!1):w.addEventListener("mousedown",k,!1),p.transitions&&(w.addEventListener("webkitTransitionEnd",k,!1),w.addEventListener("msTransitionEnd",k,!1),w.addEventListener("oTransitionEnd",k,!1),w.addEventListener("otransitionend",k,!1),w.addEventListener("transitionend",k,!1)),window.addEventListener("resize",k,!1)):window.onresize=function(){t()}}}}})}(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(){"disabled"!==this.el.getAttribute("disabled")&&this.val(!this.checkbox.checked)},dragStart:function(e){this.checkbox.disabled||(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;this._dragInfo&&(t.gesture.srcEvent.preventDefault(),e.requestAnimationFrame(function(){if(n._dragInfo){var e=t.gesture.touches[0].pageX-n._dragInfo.left,r=n._dragInfo.width-n.triggerThreshold;n._dragInfo.initialState?e<n.triggerThreshold?n.setOpenPercent(0):e>n._dragInfo.triggerX&&n.setOpenPercent(100):e<n._dragInfo.triggerX?n.setOpenPercent(0):e>r&&n.setOpenPercent(100)}}))},endDrag:function(){this._dragInfo=null},hold:function(){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)if(this.openPercent=t,0===t)this.val(!1);else if(100===t)this.val(!0);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){return t!==!0&&t!==!1||(""!==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()),this.checkbox.checked}})}(ionic)}(),/*!
 * ionic.bundle.js is a concatenation of:
 * ionic.js, angular.js, angular-animate.js,
 * angular-sanitize.js, angular-ui-router.js,
 * and ionic-angular.js
 */
/**
 * @license AngularJS v1.4.3
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(e,t,n){"use strict";function r(e,t){return t=t||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(e?e+":":"")+a+"] ",c=o[1];for(s+=c.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+i;return n<o.length?ye(o[n]):e}),s+="\nhttp://errors.angularjs.org/1.4.3/"+(e?e+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(ye(o[r]));return new t(s)}}function i(e){if(null==e||k(e))return!1;var t="length"in Object(e)&&e.length;return!(e.nodeType!==Wr||!t)||(S(e)||Br(e)||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t,n){var r,a;if(e)if(T(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(Br(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(_(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)br.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function c(){return++Nr}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function u(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(b(a)||T(a))for(var s=Object.keys(a),c=0,f=s.length;c<f;c++){var d=s[c],h=a[d];n&&b(h)?E(h)?e[d]=new Date(h.valueOf()):(b(e[d])||(e[d]=Br(h)?[]:{}),u(e[d],[h],!0)):e[d]=h}}return l(e,r),e}function f(e){return u(e,Ar.call(arguments,1),!1)}function d(e){return u(e,Ar.call(arguments,1),!0)}function h(e){return parseInt(e,10)}function p(e,t){return f(Object.create(e),t)}function m(){}function v(e){return e}function g(e){return function(){return e}}function $(e){return T(e.toString)&&e.toString!==Object.prototype.toString}function y(e){return"undefined"==typeof e}function w(e){return"undefined"!=typeof e}function b(e){return null!==e&&"object"==typeof e}function _(e){return null!==e&&"object"==typeof e&&!Or(e)}function S(e){return"string"==typeof e}function x(e){return"number"==typeof e}function E(e){return"[object Date]"===Mr.call(e)}function T(e){return"function"==typeof e}function C(e){return"[object RegExp]"===Mr.call(e)}function k(e){return e&&e.window===e}function A(e){return e&&e.$evalAsync&&e.$watch}function D(e){return"[object File]"===Mr.call(e)}function I(e){return"[object FormData]"===Mr.call(e)}function M(e){return"[object Blob]"===Mr.call(e)}function O(e){return"boolean"==typeof e}function L(e){return e&&T(e.then)}function P(e){return Rr.test(Mr.call(e))}function N(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function V(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function B(e){return wr(e.nodeName||e[0]&&e[0].nodeName)}function R(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function z(e,t,n,r){if(k(e)||A(e))throw Lr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(P(t))throw Lr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t){if(e===t)throw Lr("cpi","Can't copy! Source and destination are identical.");n=n||[],r=r||[],b(e)&&(n.push(e),r.push(t));var i;if(Br(e)){t.length=0;for(var a=0;a<e.length;a++)t.push(z(e[a],null,n,r))}else{var s=t.$$hashKey;if(Br(t)?t.length=0:o(t,function(e,n){delete t[n]}),_(e))for(i in e)t[i]=z(e[i],null,n,r);else if(e&&"function"==typeof e.hasOwnProperty)for(i in e)e.hasOwnProperty(i)&&(t[i]=z(e[i],null,n,r));else for(i in e)br.call(e,i)&&(t[i]=z(e[i],null,n,r));l(t,s)}}else if(t=e,b(e)){var c;if(n&&(c=n.indexOf(e))!==-1)return r[c];if(Br(e))return z(e,[],n,r);if(P(e))t=new e.constructor(e);else if(E(e))t=new Date(e.getTime());else{if(!C(e)){var u=Object.create(Or(e));return z(e,u,n,r)}t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]),t.lastIndex=e.lastIndex}r&&(n.push(e),r.push(t))}return t}function H(e,t){if(Br(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(b(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function F(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!Br(e)){if(E(e))return!!E(t)&&F(e.getTime(),t.getTime());if(C(e))return!!C(t)&&e.toString()==t.toString();if(A(e)||A(t)||k(e)||k(t)||Br(t)||E(t)||C(t))return!1;o=ve();for(i in e)if("$"!==i.charAt(0)&&!T(e[i])){if(!F(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!(i in o||"$"===i.charAt(0)||t[i]===n||T(t[i])))return!1;return!0}if(!Br(t))return!1;if((r=e.length)==t.length){for(i=0;i<r;i++)if(!F(e[i],t[i]))return!1;return!0}}return!1}function j(e,t,n){return e.concat(Ar.call(t,n))}function q(e,t){return Ar.call(e,t||0)}function U(e,t){var n=arguments.length>2?q(arguments,2):[];return!T(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,j(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function G(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=n:k(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":A(r)&&(i="$SCOPE"),i}function W(e,t){return"undefined"==typeof e?n:(x(t)||(t=t?2:null),JSON.stringify(e,G,t))}function Y(e){return S(e)?JSON.parse(e):e}function X(e,t){var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function K(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Z(e,t,n){n=n?-1:1;var r=X(t,e.getTimezoneOffset());return K(e,n*(r-e.getTimezoneOffset()))}function J(e){e=Tr(e).clone();try{e.empty()}catch(t){}var n=Tr("<div>").append(e).html();try{return e[0].nodeType===Xr?wr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+wr(t)})}catch(t){return wr(n)}}function Q(e){try{return decodeURIComponent(e)}catch(t){}}function ee(e){var t,n,r={};return o((e||"").split("&"),function(e){if(e&&(t=e.replace(/\+/g,"%20").split("="),n=Q(t[0]),w(n))){var i=!w(t[1])||Q(t[1]);br.call(r,n)?Br(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function te(e){var t=[];return o(e,function(e,n){Br(e)?o(e,function(e){t.push(re(n,!0)+(e===!0?"":"="+re(e,!0)))}):t.push(re(n,!0)+(e===!0?"":"="+re(e,!0)))}),t.length?t.join("&"):""}function ne(e){return re(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function re(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ie(e,t){var n,r,i=qr.length;for(r=0;r<i;++r)if(n=qr[r]+t,S(n=e.getAttribute(n)))return n;return null}function oe(e,t){var n,r,i={};o(qr,function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))}),o(qr,function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==ie(n,"strict-di"),t(n,r?[r]:[],i))}function ae(n,r,i){b(i)||(i={});var a={strictDi:!1};i=f(a,i);var s=function(){if(n=Tr(n),n.injector()){var e=n[0]===t?"document":J(n);throw Lr("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Je(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},c=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return e&&c.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(c,"")),e&&!l.test(e.name)?s():(e.name=e.name.replace(l,""),Pr.resumeBootstrap=function(e){return o(e,function(e){r.push(e)}),s()},void(T(Pr.resumeDeferredBootstrap)&&Pr.resumeDeferredBootstrap()))}function se(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ce(e){var t=Pr.element(e).injector();if(!t)throw Lr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function le(e,t){return t=t||"_",e.replace(Ur,function(e,n){return(n?t:"")+e.toLowerCase()})}function ue(){var t;if(!Gr){var r=jr();Cr=e.jQuery,w(r)&&(Cr=null===r?n:e[r]),Cr&&Cr.fn.on?(Tr=Cr,f(Cr.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData}),t=Cr.cleanData,Cr.cleanData=function(e){var n;if(Vr)Vr=!1;else for(var r,i=0;null!=(r=e[i]);i++)n=Cr._data(r,"events"),n&&n.$destroy&&Cr(r).triggerHandler("$destroy");t(e)}):Tr=ke,Pr.element=Tr,Gr=!0}}function fe(e,t,n){if(!e)throw Lr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function de(e,t,n){return n&&Br(e)&&(e=e[e.length-1]),fe(T(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function he(e,t){if("hasOwnProperty"===e)throw Lr("badname","hasOwnProperty is not a valid {0} name",t)}function pe(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&T(e)?U(o,e):e}function me(e){var t=e[0],n=e[e.length-1],r=[t];do{if(t=t.nextSibling,!t)break;r.push(t)}while(t!==n);return Tr(r)}function ve(){return Object.create(null)}function ge(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),u}}function t(e,t){return function(n,o){return o&&T(o)&&(o.$$moduleName=r),i.push([e,t,arguments]),u}}if(!o)throw n("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.",r);var i=[],s=[],c=[],l=e("$injector","invoke","push",s),u={_invokeQueue:i,_configBlocks:s,_runBlocks:c,requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:l,run:function(e){return c.push(e),this}};return a&&l(a),u})}})}function $e(e){var t=[];return JSON.stringify(e,function(e,n){if(n=G(e,n),b(n)){if(t.indexOf(n)>=0)return"<<already seen>>";t.push(n)}return n})}function ye(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?$e(e):e}function we(t){f(t,{bootstrap:ae,copy:z,extend:f,merge:d,equals:F,element:Tr,forEach:o,injector:Je,noop:m,bind:U,toJson:W,fromJson:Y,identity:v,isUndefined:y,isDefined:w,isString:S,isFunction:T,isObject:b,isNumber:x,isElement:N,isArray:Br,version:Qr,isDate:E,lowercase:wr,uppercase:_r,callbacks:{counter:0},getTestability:ce,$$minErr:r,$$csp:Fr,reloadWithDebugInfo:se}),kr=ge(e);try{kr("ngLocale")}catch(n){kr("ngLocale",[]).provider("$locale",It)}kr("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:gn}),e.provider("$compile",ct).directive({a:lo,input:Co,textarea:Co,form:mo,script:ya,select:_a,style:xa,option:Sa,ngBind:Do,ngBindHtml:Mo,ngBindTemplate:Io,ngClass:Lo,ngClassEven:No,ngClassOdd:Po,ngCloak:Vo,ngController:Bo,ngForm:vo,ngHide:ha,ngIf:Ho,ngInclude:Fo,ngInit:qo,ngNonBindable:ia,ngPluralize:ca,ngRepeat:la,ngShow:da,ngStyle:pa,ngSwitch:ma,ngSwitchWhen:va,ngSwitchDefault:ga,ngOptions:sa,ngTransclude:$a,ngModel:ta,ngList:Uo,ngChange:Oo,pattern:Ta,ngPattern:Ta,required:Ea,ngRequired:Ea,minlength:ka,ngMinlength:ka,maxlength:Ca,ngMaxlength:Ca,ngValue:Ao,ngModelOptions:ra}).directive({ngInclude:jo}).directive(uo).directive(Ro),e.provider({$anchorScroll:Qe,$animate:ki,$$animateQueue:Ci,$$AnimateRunner:Ti,$browser:ot,$cacheFactory:at,$controller:ht,$document:pt,$exceptionHandler:mt,$filter:In,$interpolate:At,$interval:Dt,$http:Et,$httpParamSerializer:gt,$httpParamSerializerJQLike:$t,$httpBackend:Ct,$location:Ut,$log:Gt,$parse:fn,$rootScope:vn,$q:dn,$$q:hn,$sce:bn,$sceDelegate:wn,$sniffer:_n,$templateCache:st,$templateRequest:Sn,$$testability:xn,$timeout:En,$window:kn,$$rAF:mn,$$jqLite:We,$$HashMap:gi,$$cookieReader:Dn})}])}function be(){return++ti}function _e(e){return e.replace(ii,function(e,t,n,r){return r?n.toUpperCase():n}).replace(oi,"Moz$1")}function Se(e){return!li.test(e)}function xe(e){var t=e.nodeType;return t===Wr||!t||t===Zr}function Ee(e){for(var t in ei[e.ng339])return!0;return!1}function Te(e,t){var n,r,i,a,s=t.createDocumentFragment(),c=[];if(Se(e))c.push(t.createTextNode(e));else{for(n=n||s.appendChild(t.createElement("div")),r=(ui.exec(e)||["",""])[1].toLowerCase(),i=di[r]||di._default,n.innerHTML=i[1]+e.replace(fi,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;c=j(c,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(c,function(e){s.appendChild(e)}),s}function Ce(e,n){n=n||t;var r;return(r=ci.exec(e))?[n.createElement(r[1])]:(r=Te(e,n))?r.childNodes:[]}function ke(e){if(e instanceof ke)return e;var t;if(S(e)&&(e=zr(e),t=!0),!(this instanceof ke)){if(t&&"<"!=e.charAt(0))throw si("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ke(e)}t?Be(this,Ce(e)):Be(this,e)}function Ae(e){return e.cloneNode(!0)}function De(e,t){if(t||Me(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Me(n[r])}function Ie(e,t,n,r){if(w(r))throw si("offargs","jqLite#off() does not support the `selector` argument");var i=Oe(e),a=i&&i.events,s=i&&i.handle;if(s)if(t)o(t.split(" "),function(t){if(w(n)){var r=a[t];if(R(r||[],n),r&&r.length>0)return}ri(e,t,s),delete a[t]});else for(t in a)"$destroy"!==t&&ri(e,t,s),delete a[t]}function Me(e,t){var r=e.ng339,i=r&&ei[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Ie(e)),delete ei[r],e.ng339=n}}function Oe(e,t){var r=e.ng339,i=r&&ei[r];return t&&!i&&(e.ng339=r=be(),i=ei[r]={events:{},data:{},handle:n}),i}function Le(e,t,n){if(xe(e)){var r=w(n),i=!r&&t&&!b(t),o=!t,a=Oe(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];f(s,t)}}}function Pe(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Ne(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",zr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+zr(t)+" "," ")))})}function Ve(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=zr(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",zr(n))}}function Be(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Re(e,t){return ze(e,"$"+(t||"ngController")+"Controller")}function ze(e,t,r){e.nodeType==Zr&&(e=e.documentElement);for(var i=Br(t)?t:[t];e;){for(var o=0,a=i.length;o<a;o++)if((r=Tr.data(e,i[o]))!==n)return r;e=e.parentNode||e.nodeType===Jr&&e.host}}function He(e){for(De(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Fe(e,t){t||De(e);var n=e.parentNode;n&&n.removeChild(e)}function je(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Tr(n).on("load",t)}function qe(e,t){var n=pi[t.toLowerCase()];return n&&mi[B(e)]&&n}function Ue(e,t){var n=e.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&vi[t]}function Ge(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(y(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0},o>1&&(i=H(i));for(var s=0;s<o;s++)n.isImmediatePropagationStopped()||i[s].call(e,n)}};return n.elem=e,n}function We(){this.$get=function(){return f(ke,{hasClass:function(e,t){return e.attr&&(e=e[0]),Pe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ve(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ne(e,t)}})}}function Ye(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||c)():r+":"+e}function Xe(e,t){if(t){var n=0;this.nextUid=function(){return++n}}o(e,this.put,this)}function Ke(e){var t=e.toString().replace(bi,""),n=t.match($i);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Ze(e,t,n){var r,i,a,s;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw S(n)&&n||(n=e.name||Ke(e)),_i("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=e.toString().replace(bi,""),a=i.match($i),o(a[1].split(yi),function(e){e.replace(wi,function(e,t,n){r.push(n)})})}e.$inject=r}}else Br(e)?(s=e.length-1,de(e[s],"fn"),r=e.slice(0,s)):de(e,"fn",!0);return r}function Je(e,t){function r(e){return function(t,n){return b(t)?void o(t,s(e)):e(t,n)}}function i(e,t){if(he(e,"service"),(T(t)||Br(t))&&(t=x.instantiate(t)),!t.$get)throw _i("pget","Provider '{0}' must define $get factory method.",e);return _[e+v]=t}function a(e,t){return function(){var n=C.invoke(t,this);if(y(n))throw _i("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function c(e,t,n){return i(e,{$get:n!==!1?a(e,t):t})}function l(e,t){return c(e,["$injector",function(e){return e.instantiate(t)}])}function u(e,t){return c(e,g(t),!1)}function f(e,t){he(e,"constant"),_[e]=t,E[e]=t}function d(e,t){var n=x.get(e+v),r=n.$get;n.$get=function(){var e=C.invoke(r,n);return C.invoke(t,null,{$delegate:e})}}function h(e){var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=x.get(r[0]);i[r[1]].apply(i,r[2])}}if(!w.get(e)){w.put(e,!0);try{S(e)?(t=kr(e),n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):T(e)?n.push(x.invoke(e)):Br(e)?n.push(x.invoke(e)):de(e,"module")}catch(i){throw Br(e)&&(e=e[e.length-1]),i.message&&i.stack&&i.stack.indexOf(i.message)==-1&&(i=i.message+"\n"+i.stack),_i("modulerr","Failed to instantiate module {0} due to:\n{1}",e,i.stack||i.message||i)}}}),n}function p(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===m)throw _i("cdep","Circular dependency found: {0}",t+" <- "+$.join(" <- "));return e[t]}try{return $.unshift(t),e[t]=m,e[t]=n(t,r)}catch(i){throw e[t]===m&&delete e[t],i}finally{$.shift()}}function i(e,n,i,o){"string"==typeof i&&(o=i,i=null);var a,s,c,l=[],u=Je.$$annotate(e,t,o);for(s=0,a=u.length;s<a;s++){if(c=u[s],"string"!=typeof c)throw _i("itkn","Incorrect injection token! Expected service name as string, got {0}",c);l.push(i&&i.hasOwnProperty(c)?i[c]:r(c,o))}return Br(e)&&(e=e[a]),e.apply(n,l)}function o(e,t,n){var r=Object.create((Br(e)?e[e.length-1]:e).prototype||null),o=i(e,r,t,n);return b(o)||T(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:Je.$$annotate,has:function(t){return _.hasOwnProperty(t+v)||e.hasOwnProperty(t)}}}t=t===!0;var m={},v="Provider",$=[],w=new Xe([],(!0)),_={$provide:{provider:r(i),factory:r(c),service:r(l),value:r(u),constant:r(f),decorator:d}},x=_.$injector=p(_,function(e,t){throw Pr.isString(t)&&$.push(t),_i("unpr","Unknown provider: {0}",$.join(" <- "))}),E={},C=E.$injector=p(E,function(e,t){var r=x.get(e+v,t);return C.invoke(r.$get,r,n,e)});return o(h(e),function(e){e&&C.invoke(e)}),C}function Qe(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===B(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(T(e))e=e();else if(N(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else x(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=S(e)?e:n.hash();var t;e?(t=c.getElementById(e))?a(t):(t=i(c.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var c=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||je(function(){r.$evalAsync(s)})}),s}]}function et(e,t){return e||t?e?t?(Br(e)&&(e=e.join(" ")),Br(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function tt(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===xi)return n}}function nt(e){S(e)&&(e=e.split(" "));var t=ve();return o(e,function(e){e.length&&(t[e]=!0)}),t}function rt(e){return b(e)?e:{}}function it(e,t,n,r){function i(e){try{e.apply(null,q(arguments,1))}finally{if($--,0===$)for(;w.length;)try{w.pop()()}catch(t){n.error(t)}}}function a(e){var t=e.indexOf("#");return t===-1?"":e.substr(t)}function s(){l(),u()}function c(){try{return h.state}catch(e){}}function l(){b=c(),b=y(b)?null:b,F(b,k)&&(b=k),k=b}function u(){S===f.url()&&_===b||(S=f.url(),_=b,o(T,function(e){e(f.url(),b)}))}var f=this,d=(t[0],e.location),h=e.history,p=e.setTimeout,v=e.clearTimeout,g={};f.isMock=!1;var $=0,w=[];f.$$completeOutstandingRequest=i,f.$$incOutstandingRequestCount=function(){$++},f.notifyWhenNoOutstandingRequests=function(e){0===$?e():w.push(e)};var b,_,S=d.href,x=t.find("base"),E=null;l(),_=b,f.url=function(t,n,i){if(y(i)&&(i=null),d!==e.location&&(d=e.location),h!==e.history&&(h=e.history),t){var o=_===i;if(S===t&&(!r.history||o))return f;var s=S&&Nt(S)===Nt(t);return S=t,_=i,!r.history||s&&o?(s&&!E||(E=t),n?d.replace(t):s?d.hash=a(t):d.href=t):(h[n?"replaceState":"pushState"](i,"",t),l(),_=b),f}return E||d.href.replace(/%27/g,"'")},f.state=function(){return b};var T=[],C=!1,k=null;f.onUrlChange=function(t){return C||(r.history&&Tr(e).on("popstate",s),Tr(e).on("hashchange",s),C=!0),T.push(t),t},f.$$applicationDestroyed=function(){Tr(e).off("hashchange popstate",s)},f.$$checkUrlChange=u,f.baseHref=function(){var e=x.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},f.defer=function(e,t){var n;return $++,n=p(function(){delete g[n],i(e)},t||0),g[n]=!0,n},f.defer.cancel=function(e){return!!g[e]&&(delete g[e],v(e),i(m),!0)}}function ot(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new it(e,r,t,n)}]}function at(){this.$get=function(){function e(e,n){function i(e){e!=d&&(h?h==e&&(h=e.n):h=e,o(e.n,e.p),o(e,d),d=e,d.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),c={},l=n&&n.capacity||Number.MAX_VALUE,u={},d=null,h=null;return t[e]={put:function(e,t){if(!y(t)){if(l<Number.MAX_VALUE){var n=u[e]||(u[e]={key:e});i(n)}return e in c||a++,c[e]=t,a>l&&this.remove(h.key),t}},get:function(e){if(l<Number.MAX_VALUE){var t=u[e];if(!t)return;i(t)}return c[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=u[e];if(!t)return;t==d&&(d=t.p),t==h&&(h=t.n),o(t.n,t.p),delete u[e]}delete c[e],a--},removeAll:function(){c={},a=0,u={},d=h=null},destroy:function(){c=null,s=null,u=null,delete t[e]},info:function(){return f({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function st(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function ct(e,r){function i(e,t,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return o(e,function(e,o){var a=e.match(r);if(!a)throw Ai("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o}}),i}function a(e,t){var n={isolateScope:null,bindToController:null};if(b(e.scope)&&(e.bindToController===!0?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),b(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),b(n.bindToController)){var r=e.controller,o=e.controllerAs;if(!r)throw Ai("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);if(!dt(r,o))throw Ai("noident","Cannot bind to controller without identifier for directive '{0}'.",t)}return n}function c(e){var t=e.charAt(0);if(!t||t!==wr(t))throw Ai("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Ai("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}var l={},u="Directive",d=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,h=/(([\w\-]+)(?:\:([^;]+))?;?)/,$=V("ngSrc,ngSrcset,src,srcset"),y=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,_=/^(on[a-z]+|formaction)$/;this.directive=function E(t,n){return he(t,"directive"),S(t)?(c(t),fe(n,"directiveFactory"),l.hasOwnProperty(t)||(l[t]=[],e.factory(t+u,["$injector","$exceptionHandler",function(e,n){var r=[];return o(l[t],function(i,o){try{var s=e.invoke(i);T(s)?s={compile:g(s)}:!s.compile&&s.link&&(s.compile=g(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||t,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA";var c=s.$$bindings=a(s,s.name);b(c.isolateScope)&&(s.$$isolateBindings=c.isolateScope),s.$$moduleName=i.$$moduleName,r.push(s)}catch(l){n(l)}}),r}])),l[t].push(n)):o(t,s(E)),this},this.aHrefSanitizationWhitelist=function(e){return w(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return w(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()};var x=!0;this.debugInfoEnabled=function(e){return w(e)?(x=e,this):x},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,i,a,s,c,g,w,E,C,k){function D(e,t){try{e.addClass(t)}catch(n){}}function I(e,t,n,r,i){e instanceof Tr||(e=Tr(e)),o(e,function(t,n){t.nodeType==Xr&&t.nodeValue.match(/\S+/)&&(e[n]=Tr(t).wrap("<span></span>").parent()[0])});var a=O(e,t,e,n,r,i);I.$$addScopeClass(e);var s=null;return function(t,n,r){fe(t,"scope"),r=r||{};var i=r.parentBoundTranscludeFn,o=r.transcludeControllers,c=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),s||(s=M(c));var l;if(l="html"!==s?Tr(Z(s,Tr("<div>").append(e).html())):n?hi.clone.call(e):e,o)for(var u in o)l.data("$"+u+"Controller",o[u].instance);return I.$$addScopeInfo(l,t),n&&n(l,t),a&&a(t,l,l,i),l}}function M(e){var t=e&&e[0];return t&&"foreignobject"!==B(t)&&t.toString().match(/SVG/)?"svg":"html"}function O(e,t,r,i,o,a){function s(e,r,i,o){var a,s,c,l,u,f,d,h,v;if(p){var g=r.length;for(v=new Array(g),u=0;u<m.length;u+=3)d=m[u],v[d]=r[d]}else v=r;for(u=0,f=m.length;u<f;)if(c=v[m[u++]],a=m[u++],s=m[u++],a){if(a.scope){l=e.$new(),I.$$addScopeInfo(Tr(c),l);var $=a.$$destroyBindings;$&&(a.$$destroyBindings=null,l.$on("$destroyed",$))}else l=e;h=a.transcludeOnThisElement?L(e,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&t?L(e,t):null,a(s,l,c,i,h,a)}else s&&s(e,c.childNodes,n,o)}for(var c,l,u,f,d,h,p,m=[],v=0;v<e.length;v++)c=new oe,l=P(e[v],[],c,0===v?i:n,o),u=l.length?z(l,e[v],c,t,r,null,[],[],a):null,u&&u.scope&&I.$$addScopeClass(c.$$element),d=u&&u.terminal||!(f=e[v].childNodes)||!f.length?null:O(f,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:t),(u||d)&&(m.push(v,u,d),h=!0,p=p||u),a=null;return h?s:null}function L(e,t,n){var r=function(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})};return r}function P(e,t,n,r,i){var o,a,s=e.nodeType,c=n.$attr;switch(s){case Wr:j(t,lt(B(e)),"E",r,i);for(var l,u,f,p,m,v,g=e.attributes,$=0,y=g&&g.length;$<y;$++){var w=!1,_=!1;l=g[$],u=l.name,m=zr(l.value),p=lt(u),(v=ue.test(p))&&(u=u.replace(Di,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var x=p.replace(/(Start|End)$/,"");U(x)&&p===x+"Start"&&(w=u,_=u.substr(0,u.length-5)+"end",u=u.substr(0,u.length-6)),f=lt(u.toLowerCase()),c[f]=u,!v&&n.hasOwnProperty(f)||(n[f]=m,qe(e,f)&&(n[f]=!0)),ee(e,t,m,f,v),j(t,f,"A",r,i,w,_)}if(a=e.className,b(a)&&(a=a.animVal),S(a)&&""!==a)for(;o=h.exec(a);)f=lt(o[2]),j(t,f,"C",r,i)&&(n[f]=zr(o[3])),a=a.substr(o.index+o[0].length);break;case Xr:if(11===Er)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===Xr;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);K(t,e.nodeValue);break;case Kr:try{o=d.exec(e.nodeValue),o&&(f=lt(o[1]),j(t,f,"M",r,i)&&(n[f]=zr(o[2])))}catch(E){}}return t.sort(Y),t}function N(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Ai("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==Wr&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return Tr(r)}function V(e,t,n){return function(r,i,o,a,s){return i=N(i[0],t,n),e(r,i,o,a,s)}}function z(e,r,o,a,s,l,u,f,d){function h(e,t,n,r){e&&(n&&(e=V(e,n,r)),e.require=g.require,e.directiveName=$,(D===g||g.$$isolateScope)&&(e=ne(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=V(t,n,r)),t.require=g.require,t.directiveName=$,(D===g||g.$$isolateScope)&&(t=ne(t,{isolateScope:!0})),f.push(t))}function p(e,t,n,r){var i;if(S(t)){var o=t.match(y),a=t.substring(o[0].length),s=o[1]||o[3],c="?"===o[2];if("^^"===s?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){var l="$"+a+"Controller";i=s?n.inheritedData(l):n.data(l)}if(!i&&!c)throw Ai("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(Br(t)){i=[];for(var u=0,f=t.length;u<f;u++)i[u]=p(e,t[u],n,r)}return i||null}function m(e,t,n,r,i,o){var a=ve();for(var s in r){var l=r[s],u={$scope:l===D||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=l.controller;"@"==f&&(f=t[l.name]);var d=c(f,u,!0,l.controllerAs);a[l.name]=d,R||e.data("$"+l.name+"Controller",d.instance)}return a}function v(e,t,i,a,s,c){function l(e,t,r){var i;return A(e)||(r=t,t=e,e=n),R&&(i=y),r||(r=R?b.parent():b),s(e,t,i,r,O)}var d,h,v,g,$,y,w,b,_;if(r===i?(_=o,b=o.$$element):(b=Tr(i),_=new oe(b,o)),D&&($=t.$new(!0)),s&&(w=l,w.$$boundTransclude=s),k&&(y=m(b,_,w,k,$,t)),D&&(I.$$addScopeInfo(b,$,!0,!(M&&(M===D||M===D.$$originalDirective))),I.$$addScopeClass(b,!0),$.$$isolateBindings=D.$$isolateBindings,ie(t,_,$,$.$$isolateBindings,D,$)),y){var S,x,E=D||C;E&&y[E.name]&&(S=E.$$bindings.bindToController,g=y[E.name],g&&g.identifier&&S&&(x=g,c.$$destroyBindings=ie(t,_,g.instance,S,E)));for(d in y){g=y[d];var T=g();T!==g.instance&&(g.instance=T,b.data("$"+d+"Controller",T),g===x&&(c.$$destroyBindings(),c.$$destroyBindings=ie(t,_,T,S,E)))}}for(d=0,h=u.length;d<h;d++)v=u[d],re(v,v.isolateScope?$:t,b,_,v.require&&p(v.directiveName,v.require,b,y),w);var O=t;for(D&&(D.template||null===D.templateUrl)&&(O=$),e&&e(O,i.childNodes,n,s),d=f.length-1;d>=0;d--)v=f[d],re(v,v.isolateScope?$:t,b,_,v.require&&p(v.directiveName,v.require,b,y),w)}d=d||{};for(var g,$,w,_,x,E=-Number.MAX_VALUE,C=d.newScopeDirective,k=d.controllerDirectives,D=d.newIsolateScopeDirective,M=d.templateDirective,O=d.nonTlbTranscludeDirective,L=!1,B=!1,R=d.hasElementTranscludeDirective,z=o.$$element=Tr(r),F=l,j=a,U=0,Y=e.length;U<Y;U++){g=e[U];var K=g.$$start,Q=g.$$end;if(K&&(z=N(r,K,Q)),w=n,E>g.priority)break;if((x=g.scope)&&(g.templateUrl||(b(x)?(X("new/isolated scope",D||C,g,z),D=g):X("new/isolated scope",D,g,z)),C=C||g),$=g.name,!g.templateUrl&&g.controller&&(x=g.controller,k=k||ve(),X("'"+$+"' controller",k[$],g,z),k[$]=g),(x=g.transclude)&&(L=!0,g.$$tlb||(X("transclusion",O,g,z),O=g),"element"==x?(R=!0,E=g.priority,
w=z,z=o.$$element=Tr(t.createComment(" "+$+": "+o[$]+" ")),r=z[0],te(s,q(w),r),j=I(w,a,E,F&&F.name,{nonTlbTranscludeDirective:O})):(w=Tr(Ae(r)).contents(),z.empty(),j=I(w,a))),g.template)if(B=!0,X("template",M,g,z),M=g,x=T(g.template)?g.template(z,o):g.template,x=ce(x),g.replace){if(F=g,w=Se(x)?[]:ft(Z(g.templateNamespace,zr(x))),r=w[0],1!=w.length||r.nodeType!==Wr)throw Ai("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$,"");te(s,z,r);var ee={$attr:{}},ae=P(r,[],ee),se=e.splice(U+1,e.length-(U+1));D&&H(ae),e=e.concat(ae).concat(se),G(o,ee),Y=e.length}else z.html(x);if(g.templateUrl)B=!0,X("template",M,g,z),M=g,g.replace&&(F=g),v=W(e.splice(U,e.length-U),z,o,s,L&&j,u,f,{controllerDirectives:k,newScopeDirective:C!==g&&C,newIsolateScopeDirective:D,templateDirective:M,nonTlbTranscludeDirective:O}),Y=e.length;else if(g.compile)try{_=g.compile(z,o,j),T(_)?h(null,_,K,Q):_&&h(_.pre,_.post,K,Q)}catch(le){i(le,J(z))}g.terminal&&(v.terminal=!0,E=Math.max(E,g.priority))}return v.scope=C&&C.scope===!0,v.transcludeOnThisElement=L,v.templateOnThisElement=B,v.transclude=j,d.hasElementTranscludeDirective=R,v}function H(e){for(var t=0,n=e.length;t<n;t++)e[t]=p(e[t],{$$isolateScope:!0})}function j(t,r,o,a,s,c,f){if(r===s)return null;var d=null;if(l.hasOwnProperty(r))for(var h,m=e.get(r+u),v=0,g=m.length;v<g;v++)try{h=m[v],(a===n||a>h.priority)&&h.restrict.indexOf(o)!=-1&&(c&&(h=p(h,{$$start:c,$$end:f})),t.push(h),d=h)}catch($){i($)}return d}function U(t){if(l.hasOwnProperty(t))for(var n,r=e.get(t+u),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function G(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(D(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function W(e,t,n,r,i,s,c,l){var u,f,d=[],h=t[0],m=e.shift(),v=p(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),g=T(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,$=m.templateNamespace;return t.empty(),a(g).then(function(a){var p,y,w,_;if(a=ce(a),m.replace){if(w=Se(a)?[]:ft(Z($,zr(a))),p=w[0],1!=w.length||p.nodeType!==Wr)throw Ai("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,g);y={$attr:{}},te(r,t,p);var S=P(p,[],y);b(m.scope)&&H(S),e=S.concat(e),G(n,y)}else p=h,t.html(a);for(e.unshift(v),u=z(e,p,n,i,t,m,s,c,l),o(r,function(e,n){e==p&&(r[n]=t[0])}),f=O(t[0].childNodes,i);d.length;){var x=d.shift(),E=d.shift(),T=d.shift(),C=d.shift(),k=t[0];if(!x.$$destroyed){if(E!==h){var A=E.className;l.hasElementTranscludeDirective&&m.replace||(k=Ae(p)),te(T,Tr(E),k),D(Tr(k),A)}_=u.transcludeOnThisElement?L(x,u.transclude,C):C,u(f,x,k,r,_,u)}}d=null}),function(e,t,n,r,i){var o=i;t.$$destroyed||(d?d.push(t,n,r,o):(u.transcludeOnThisElement&&(o=L(t,u.transclude,i)),u(f,t,n,r,o,u)))}}function Y(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function X(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Ai("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,J(r))}function K(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=!!t.length;return r&&I.$$addBindingClass(t),function(e,t){var i=t.parent();r||I.$$addBindingClass(i),I.$$addBindingInfo(i,n.expressions),e.$watch(n,function(e){t[0].nodeValue=e})}}})}function Z(e,n){switch(e=wr(e||"html")){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function Q(e,t){if("srcdoc"==t)return E.HTML;var n=B(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?E.RESOURCE_URL:void 0}function ee(e,t,n,i,o){var a=Q(e,i);o=$[i]||o;var s=r(n,!0,a,o);if(s){if("multiple"===i&&"select"===B(e))throw Ai("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(e));t.push({priority:100,compile:function(){return{pre:function(e,t,c){var l=c.$$observers||(c.$$observers={});if(_.test(i))throw Ai("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var u=c[i];u!==n&&(s=u&&r(u,!0,a,o),n=u),s&&(c[i]=s(e),(l[i]||(l[i]=[])).$$inter=!0,(c.$$observers&&c.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?c.$updateClass(e,t):c.$set(i,e)}))}}}})}}function te(e,n,r){var i,o,a=n[0],s=n.length,c=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var l=i,u=l+s-1,f=e.length;l<f;l++,u++)u<f?e[l]=e[u]:delete e[l];e.length-=s-1,e.context===a&&(e.context=r);break}c&&c.replaceChild(r,a);var d=t.createDocumentFragment();d.appendChild(a),Tr.hasData(a)&&(Tr(r).data(Tr(a).data()),Cr?(Vr=!0,Cr.cleanData([a])):delete Tr.cache[a[Tr.expando]]);for(var h=1,p=n.length;h<p;h++){var m=n[h];Tr(m).remove(),d.appendChild(m),delete n[h]}n[0]=r,n.length=1}function ne(e,t){return f(function(){return e.apply(null,arguments)},e,t)}function re(e,t,n,r,o,a){try{e(t,n,r,o,a)}catch(s){i(s,J(n))}}function ie(e,t,i,a,c,l){var u;o(a,function(o,a){var l,f,d,h,p=o.attrName,v=o.optional,g=o.mode;switch(br.call(t,p)||(t[p]=n),g){case"@":t[p]||v||(i[a]=n),t.$observe(p,function(e){i[a]=e}),t.$$observers[p].$$scope=e,t[p]&&(i[a]=r(t[p])(e));break;case"=":if(v&&!t[p])return;f=s(t[p]),h=f.literal?F:function(e,t){return e===t||e!==e&&t!==t},d=f.assign||function(){throw l=i[a]=f(e),Ai("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",t[p],c.name)},l=i[a]=f(e);var $=function(t){return h(t,i[a])||(h(t,l)?d(e,t=i[a]):i[a]=t),l=t};$.$stateful=!0;var y;y=o.collection?e.$watchCollection(t[p],$):e.$watch(s(t[p],$),null,f.literal),u=u||[],u.push(y);break;case"&":if(f=s(t[p]),f===m&&v)break;i[a]=function(t){return f(e,t)}}});var f=u?function(){for(var e=0,t=u.length;e<t;++e)u[e]()}:m;return l&&f!==m?(l.$on("$destroy",f),m):f}var oe=function(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e};oe.prototype={$normalize:lt,$addClass:function(e){e&&e.length>0&&C.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&C.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=ut(e,t);n&&n.length&&C.addClass(this.$$element,n);var r=ut(t,e);r&&r.length&&C.removeClass(this.$$element,r)},$set:function(e,t,r,a){var s,c=this.$$element[0],l=qe(c,e),u=Ue(c,e),f=e;if(l?(this.$$element.prop(e,t),a=l):u&&(this[u]=t,f=u),this[e]=t,a?this.$attr[e]=a:(a=this.$attr[e],a||(this.$attr[e]=a=le(e,"-"))),s=B(this.$$element),"a"===s&&"href"===e||"img"===s&&"src"===e)this[e]=t=k(t,"src"===e);else if("img"===s&&"srcset"===e){for(var d="",h=zr(t),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,m=/\s/.test(h)?p:/(,)/,v=h.split(m),g=Math.floor(v.length/2),$=0;$<g;$++){var y=2*$;d+=k(zr(v[y]),!0),d+=" "+zr(v[y+1])}var w=zr(v[2*$]).split(/\s/);d+=k(zr(w[0]),!0),2===w.length&&(d+=" "+zr(w[1])),this[e]=t=d}r!==!1&&(null===t||t===n?this.$$element.removeAttr(a):this.$$element.attr(a,t));var b=this.$$observers;b&&o(b[f],function(e){try{e(t)}catch(n){i(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=ve()),i=r[e]||(r[e]=[]);return i.push(t),g.$evalAsync(function(){!i.$$inter&&n.hasOwnProperty(e)&&t(n[e])}),function(){R(i,t)}}};var ae=r.startSymbol(),se=r.endSymbol(),ce="{{"==ae||"}}"==se?v:function(e){return e.replace(/\{\{/g,ae).replace(/}}/g,se)},ue=/^ngAttr[A-Z]/;return I.$$addBindingInfo=x?function(e,t){var n=e.data("$binding")||[];Br(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:m,I.$$addBindingClass=x?function(e){D(e,"ng-binding")}:m,I.$$addScopeInfo=x?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:m,I.$$addScopeClass=x?function(e,t){D(e,t?"ng-isolate-scope":"ng-scope")}:m,I}]}function lt(e){return _e(e.replace(Di,""))}function ut(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function ft(e){e=Tr(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];n.nodeType===Kr&&Dr.call(e,t,1)}return e}function dt(e,t){if(t&&S(t))return t;if(S(e)){var n=Mi.exec(e);if(n)return n[3]}}function ht(){var e={},t=!1;this.register=function(t,n){he(t,"controller"),b(t)?f(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(i,o){function a(e,t,n,i){if(!e||!b(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,s,c,l){var u,d,h,p;if(c=c===!0,l&&S(l)&&(p=l),S(r)){if(d=r.match(Mi),!d)throw Ii("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);h=d[1],p=p||d[3],r=e.hasOwnProperty(h)?e[h]:pe(s.$scope,h,!0)||(t?pe(o,h,!0):n),de(r,h,!0)}if(c){var m=(Br(r)?r[r.length-1]:r).prototype;u=Object.create(m||null),p&&a(s,p,u,h||r.name);var v;return v=f(function(){var e=i.invoke(r,u,s,h);return e!==u&&(b(e)||T(e))&&(u=e,p&&a(s,p,u,h||r.name)),u},{instance:u,identifier:p})}return u=i.instantiate(r,s,h),p&&a(s,p,u,h||r.name),u}}]}function pt(){this.$get=["$window",function(e){return Tr(e.document)}]}function mt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function vt(e){return b(e)?E(e)?e.toISOString():W(e):e}function gt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||y(e)||(Br(e)?o(e,function(e,r){t.push(re(n)+"="+re(vt(e)))}):t.push(re(n)+"="+re(vt(e))))}),t.join("&")}}}function $t(){this.$get=function(){return function(e){function t(e,r,i){null===e||y(e)||(Br(e)?o(e,function(e){t(e,r+"[]")}):b(e)&&!E(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(re(r)+"="+re(vt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function yt(e,t){if(S(e)){var n=e.replace(Vi,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Oi)||wt(n))&&(e=Y(n))}}return e}function wt(e){var t=e.match(Pi);return t&&Ni[t[0]].test(e)}function bt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=ve();return S(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(wr(zr(e.substr(0,n))),zr(e.substr(n+1)))}):b(e)&&o(e,function(e,n){t(wr(n),zr(e))}),r}function _t(e){var t;return function(n){if(t||(t=bt(e)),n){var r=t[wr(n)];return void 0===r&&(r=null),r}return t}}function St(e,t,n,r){return T(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function xt(e){return 200<=e&&e<300}function Et(){var e=this.defaults={transformResponse:[yt],transformRequest:[function(e){return!b(e)||D(e)||M(e)||I(e)?e:W(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:H(Li),put:H(Li),patch:H(Li)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1;this.useApplyAsync=function(e){return w(e)?(t=!!e,this):t};var i=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,c,l,u,d){function h(t){function i(e){var t=f({},e);return e.data?t.data=St(e.data,e.headers,e.status,c.transformResponse):t.data=e.data,xt(e.status)?t:u.reject(t)}function a(e,t){var n,r={};return o(e,function(e,i){T(e)?(n=e(t),null!=n&&(r[i]=n)):r[i]=e}),r}function s(t){var n,r,i,o=e.headers,s=f({},t.headers);o=f({},o.common,o[wr(t.method)]);e:for(n in o){r=wr(n);for(i in s)if(wr(i)===r)continue e;s[n]=o[n]}return a(s,H(t))}if(!Pr.isObject(t))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);var c=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},t);c.headers=s(t),c.method=_r(c.method),c.paramSerializer=S(c.paramSerializer)?d.get(c.paramSerializer):c.paramSerializer;var l=function(t){var r=t.headers,a=St(t.data,_t(r),n,t.transformRequest);return y(a)&&o(r,function(e,t){"content-type"===wr(t)&&delete r[t]}),y(t.withCredentials)&&!y(e.withCredentials)&&(t.withCredentials=e.withCredentials),v(t,a).then(i,i)},h=[l,n],p=u.when(c);for(o(_,function(e){(e.request||e.requestError)&&h.unshift(e.request,e.requestError),(e.response||e.responseError)&&h.push(e.response,e.responseError)});h.length;){var m=h.shift(),g=h.shift();p=p.then(m,g)}return p.success=function(e){return de(e,"fn"),p.then(function(t){e(t.data,t.status,t.headers,c)}),p},p.error=function(e){return de(e,"fn"),p.then(null,function(t){e(t.data,t.status,t.headers,c)}),p},p}function p(e){o(arguments,function(e){h[e]=function(t,n){return h(f({},n||{},{method:e,url:t}))}})}function m(e){o(arguments,function(e){h[e]=function(t,n,r){return h(f({},r||{},{method:e,url:t,data:n}))}})}function v(r,i){function o(e,n,r,i){function o(){c(n,e,r,i)}p&&(xt(e)?p.put(x,[e,n,bt(r),i]):p.remove(x)),t?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function c(e,t,n,i){t=Math.max(t,0),(xt(t)?v.resolve:v.reject)({data:e,status:t,headers:_t(n),config:r,statusText:i})}function f(e){c(e.data,e.status,H(e.headers()),e.statusText)}function d(){var e=h.pendingRequests.indexOf(r);e!==-1&&h.pendingRequests.splice(e,1)}var p,m,v=u.defer(),_=v.promise,S=r.headers,x=g(r.url,r.paramSerializer(r.params));if(h.pendingRequests.push(r),_.then(d,d),!r.cache&&!e.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(p=b(r.cache)?r.cache:b(e.cache)?e.cache:$),p&&(m=p.get(x),w(m)?L(m)?m.then(f,f):Br(m)?c(m[1],m[0],H(m[2]),m[3]):c(m,200,{},"OK"):p.put(x,_)),y(m)){var E=Cn(r.url)?s()[r.xsrfCookieName||e.xsrfCookieName]:n;E&&(S[r.xsrfHeaderName||e.xsrfHeaderName]=E),a(r.method,x,i,o,S,r.timeout,r.withCredentials,r.responseType)}return _}function g(e,t){return t.length>0&&(e+=(e.indexOf("?")==-1?"?":"&")+t),e}var $=c("$http");e.paramSerializer=S(e.paramSerializer)?d.get(e.paramSerializer):e.paramSerializer;var _=[];return o(i,function(e){_.unshift(S(e)?d.get(e):d.invoke(e))}),h.pendingRequests=[],p("get","delete","head","jsonp"),m("post","put","patch"),h.defaults=e,h}]}function Tt(){return new e.XMLHttpRequest}function Ct(){this.$get=["$browser","$window","$document",function(e,t,n){return kt(e,Tt,e.defer,t.angular.callbacks,n[0])}]}function kt(e,t,r,i,a){function s(e,t,n){var r=a.createElement("script"),o=null;return r.type="text/javascript",r.src=e,r.async=!0,o=function(e){ri(r,"load",o),ri(r,"error",o),a.body.removeChild(r),r=null;var s=-1,c="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),c=e.type,s="error"===e.type?404:200),n&&n(s,c)},ni(r,"load",o),ni(r,"error",o),a.body.appendChild(r),o}return function(a,c,l,u,f,d,h,p){function v(){y&&y(),b&&b.abort()}function g(t,i,o,a,s){x!==n&&r.cancel(x),y=b=null,t(i,o,a,s),e.$$completeOutstandingRequest(m)}if(e.$$incOutstandingRequestCount(),c=c||e.url(),"jsonp"==wr(a)){var $="_"+(i.counter++).toString(36);i[$]=function(e){i[$].data=e,i[$].called=!0};var y=s(c.replace("JSON_CALLBACK","angular.callbacks."+$),$,function(e,t){g(u,e,i[$].data,"",t),i[$]=m})}else{var b=t();b.open(a,c,!0),o(f,function(e,t){w(e)&&b.setRequestHeader(t,e)}),b.onload=function(){var e=b.statusText||"",t="response"in b?b.response:b.responseText,n=1223===b.status?204:b.status;0===n&&(n=t?200:"file"==Tn(c).protocol?404:0),g(u,n,t,b.getAllResponseHeaders(),e)};var _=function(){g(u,-1,null,null,"")};if(b.onerror=_,b.onabort=_,h&&(b.withCredentials=!0),p)try{b.responseType=p}catch(S){if("json"!==p)throw S}b.send(l)}if(d>0)var x=r(v,d);else L(d)&&d.then(v)}}function At(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(d,e).replace(h,t)}function s(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=W(e)}return e}function c(o,c,d,h){function p(e){try{return e=k(e),h&&!w(e)?e:s(e)}catch(t){r(Bi.interr(o,t))}}h=!!h;for(var m,v,g,$=0,b=[],_=[],S=o.length,x=[],E=[];$<S;){if((m=o.indexOf(e,$))==-1||(v=o.indexOf(t,m+l))==-1){$!==S&&x.push(a(o.substring($)));break}$!==m&&x.push(a(o.substring($,m))),g=o.substring(m+l,v),b.push(g),_.push(n(g,p)),$=v+u,E.push(x.length),x.push("")}if(d&&x.length>1&&Bi.throwNoconcat(o),!c||b.length){var C=function(e){for(var t=0,n=b.length;t<n;t++){if(h&&y(e[t]))return;x[E[t]]=e[t]}return x.join("")},k=function(e){return d?i.getTrusted(d,e):i.valueOf(e)};return f(function(e){var t=0,n=b.length,i=new Array(n);try{for(;t<n;t++)i[t]=_[t](e);return C(i)}catch(a){r(Bi.interr(o,a))}},{exp:o,expressions:b,$$watchDelegate:function(e,t){var n;return e.$watchGroup(_,function(r,i){var o=C(r);T(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var l=e.length,u=t.length,d=new RegExp(e.replace(/./g,o),"g"),h=new RegExp(t.replace(/./g,o),"g");return c.startSymbol=function(){return e},c.endSymbol=function(){return t},c}]}function Dt(){this.$get=["$rootScope","$window","$q","$$q",function(e,t,n,r){function i(i,a,s,c){var l=arguments.length>4,u=l?q(arguments,4):[],f=t.setInterval,d=t.clearInterval,h=0,p=w(c)&&!c,m=(p?r:n).defer(),v=m.promise;return s=w(s)?s:0,v.then(null,null,l?function(){i.apply(null,u)}:i),v.$$intervalId=f(function(){m.notify(h++),s>0&&h>=s&&(m.resolve(h),d(v.$$intervalId),delete o[v.$$intervalId]),p||e.$apply()},a),o[v.$$intervalId]=m,v}var o={};return i.cancel=function(e){return!!(e&&e.$$intervalId in o)&&(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0)},i}]}function It(){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",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(e){return 1===e?"one":"other"}}}}function Mt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ne(t[n]);return t.join("/")}function Ot(e,t){var n=Tn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=h(n.port)||zi[n.protocol]||null}function Lt(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=Tn(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=ee(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Pt(e,t){if(0===t.indexOf(e))return t.substr(e.length)}function Nt(e){var t=e.indexOf("#");return t==-1?e:e.substr(0,t)}function Vt(e){return e.replace(/(#.+)|#$/,"$1")}function Bt(e){return e.substr(0,Nt(e).lastIndexOf("/")+1)}function Rt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function zt(e,t){this.$$html5=!0,t=t||"";var r=Bt(e);Ot(e,this),this.$$parse=function(e){var t=Pt(r,e);if(!S(t))throw Hi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,r);Lt(t,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=te(this.$$search),t=this.$$hash?"#"+ne(this.$$hash):"";this.$$url=Mt(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,o){if(o&&"#"===o[0])return this.hash(o.slice(1)),!0;var a,s,c;return(a=Pt(e,i))!==n?(s=a,c=(a=Pt(t,a))!==n?r+(Pt("/",a)||a):e+s):(a=Pt(r,i))!==n?c=r+a:r==i+"/"&&(c=r),c&&this.$$parse(c),!!c}}function Ht(e,t){var n=Bt(e);Ot(e,this),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o,a=Pt(e,r)||Pt(n,r);y(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",y(a)&&(e=r,this.replace())):(o=Pt(t,a),y(o)&&(o=a)),Lt(o,this),this.$$path=i(this.$$path,o,e),this.$$compose()},this.$$compose=function(){var n=te(this.$$search),r=this.$$hash?"#"+ne(this.$$hash):"";this.$$url=Mt(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Nt(e)==Nt(t)&&(this.$$parse(t),!0)}}function Ft(e,t){this.$$html5=!0,Ht.apply(this,arguments);var n=Bt(e);this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e==Nt(r)?o=r:(a=Pt(n,r))?o=e+t+a:n===r+"/"&&(o=n),o&&this.$$parse(o),!!o},this.$$compose=function(){var n=te(this.$$search),r=this.$$hash?"#"+ne(this.$$hash):"";this.$$url=Mt(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+t+this.$$url}}function jt(e){return function(){return this[e]}}function qt(e,t){return function(n){return y(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Ut(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return w(t)?(e=t,this):e},this.html5Mode=function(e){return O(e)?(t.enabled=e,this):b(e)?(O(e.enabled)&&(t.enabled=e.enabled),O(e.requireBase)&&(t.requireBase=e.requireBase),O(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=l.url(),o=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(a){throw l.url(i),l.$$state=o,a}}function c(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,u,f,d=r.baseHref(),h=r.url();if(t.enabled){if(!d&&t.requireBase)throw Hi("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Rt(h)+(d||"/"),u=i.history?zt:Ft}else f=Nt(h),u=Ht;l=new u(f,"#"+e),l.$$parseLinkUrl(h,h),l.$$state=r.state();var p=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=Tr(e.target);"a"!==B(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),c=i.attr("href")||i.attr("xlink:href");b(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Tn(s.animVal).href),p.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(s,c)&&(e.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Vt(l.absUrl())!=Vt(h)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,c(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var e=Vt(r.url()),t=Vt(l.absUrl()),o=r.state(),a=l.$$replace,u=e!==t||l.$$html5&&i.history&&o!==l.$$state;(m||u)&&(m=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,o).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=o):(u&&s(t,a,o===l.$$state?null:l.$$state),c(e,o)))})),l.$$replace=!1}),l}]}function Gt(){var e=!0,t=this;this.debugEnabled=function(t){return w(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||m,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Wt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ji("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Yt(e,t){if(e){if(e.constructor===e)throw ji("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw ji("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ji("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ji("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function Xt(e,t){if(e){if(e.constructor===e)throw ji("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===qi||e===Ui||e===Gi)throw ji("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function Kt(e,t){return"undefined"!=typeof e?e:t}function Zt(e,t){return"undefined"==typeof e?t:"undefined"==typeof t?e:e+t}function Jt(e,t){var n=e(t);return!n.$stateful}function Qt(e,t){var n,r;switch(e.type){case Ki.Program:n=!0,o(e.body,function(e){Qt(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case Ki.Literal:e.constant=!0,e.toWatch=[];break;case Ki.UnaryExpression:Qt(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ki.BinaryExpression:Qt(e.left,t),Qt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ki.LogicalExpression:Qt(e.left,t),Qt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ki.ConditionalExpression:Qt(e.test,t),Qt(e.alternate,t),Qt(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ki.Identifier:e.constant=!1,e.toWatch=[e];break;case Ki.MemberExpression:Qt(e.object,t),e.computed&&Qt(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case Ki.CallExpression:n=!!e.filter&&Jt(t,e.callee.name),r=[],o(e.arguments,function(e){Qt(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&Jt(t,e.callee.name)?r:[e];break;case Ki.AssignmentExpression:Qt(e.left,t),Qt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ki.ArrayExpression:n=!0,r=[],o(e.elements,function(e){Qt(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case Ki.ObjectExpression:n=!0,r=[],o(e.properties,function(e){Qt(e.value,t),n=n&&e.value.constant,e.value.constant||r.push.apply(r,e.value.toWatch)}),e.constant=n,e.toWatch=r;break;case Ki.ThisExpression:e.constant=!1,e.toWatch=[]}}function en(e){if(1==e.length){var t=e[0].expression,r=t.toWatch;return 1!==r.length?r:r[0]!==t?r:n}}function tn(e){return e.type===Ki.Identifier||e.type===Ki.MemberExpression}function nn(e){if(1===e.body.length&&tn(e.body[0].expression))return{type:Ki.AssignmentExpression,left:e.body[0].expression,right:{type:Ki.NGValueParameter},operator:"="}}function rn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Ki.Literal||e.body[0].expression.type===Ki.ArrayExpression||e.body[0].expression.type===Ki.ObjectExpression)}function on(e){return e.constant}function an(e,t){this.astBuilder=e,this.$filter=t}function sn(e,t){this.astBuilder=e,this.$filter=t}function cn(e,t,n,r){Yt(e,r);for(var i,o=t.split("."),a=0;o.length>1;a++){i=Wt(o.shift(),r);var s=Yt(e[i],r);s||(s={},e[i]=s),e=s}return i=Wt(o.shift(),r),Yt(e[i],r),e[i]=n,n}function ln(e){return"constructor"==e}function un(e){return T(e.valueOf)?e.valueOf():Ji.call(e)}function fn(){var e=ve(),t=ve();this.$get=["$filter","$sniffer",function(r,i){function a(e,t){return null==e||null==t?e===t:("object"!=typeof e||(e=un(e),"object"!=typeof e))&&(e===t||e!==e&&t!==t)}function s(e,t,r,i,o){var s,c=i.inputs;if(1===c.length){var l=a;return c=c[0],e.$watch(function(e){var t=c(e);return a(t,l)||(s=i(e,n,n,[t]),l=t&&un(t)),s},t,r,o)}for(var u=[],f=[],d=0,h=c.length;d<h;d++)u[d]=a,f[d]=null;return e.$watch(function(e){for(var t=!1,r=0,o=c.length;r<o;r++){var l=c[r](e);(t||(t=!a(l,u[r])))&&(f[r]=l,u[r]=l&&un(l))}return t&&(s=i(e,n,n,f)),s},t,r,o)}function c(e,t,n,r){var i,o;return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,T(t)&&t.apply(this,arguments),w(e)&&r.$$postDigest(function(){w(o)&&i()})},n)}function l(e,t,n,r){function i(e){var t=!0;return o(e,function(e){w(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return r(e)},function(e,n,r){s=e,T(t)&&t.call(this,e,n,r),i(e)&&r.$$postDigest(function(){i(s)&&a()})},n)}function u(e,t,n,r){var i;return i=e.$watch(function(e){return r(e)},function(e,n,r){T(t)&&t.apply(this,arguments),i()},n)}function f(e,t){if(!t)return e;var n=e.$$watchDelegate,r=n!==l&&n!==c,i=r?function(n,r,i,o){var a=e(n,r,i,o);return t(a,n,r)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return w(a)?s:a};return e.$$watchDelegate&&e.$$watchDelegate!==s?i.$$watchDelegate=e.$$watchDelegate:t.$stateful||(i.$$watchDelegate=s,i.inputs=e.inputs?e.inputs:[e]),i}var d={csp:i.csp,expensiveChecks:!1},h={csp:i.csp,expensiveChecks:!0};return function(n,i,o){var a,p,v;switch(typeof n){case"string":n=n.trim(),v=n;var g=o?t:e;if(a=g[v],!a){":"===n.charAt(0)&&":"===n.charAt(1)&&(p=!0,n=n.substring(2));var $=o?h:d,y=new Xi($),w=new Zi(y,r,$);a=w.parse(n),a.constant?a.$$watchDelegate=u:p?a.$$watchDelegate=a.literal?l:c:a.inputs&&(a.$$watchDelegate=s),g[v]=a}return f(a,i);case"function":return f(n,i);default:return m}}}]}function dn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return pn(function(t){e.$evalAsync(t)},t)}]}function hn(){this.$get=["$browser","$exceptionHandler",function(e,t){return pn(function(t){e.defer(t)},t)}]}function pn(e,t){function i(e,t,n){function r(t){return function(n){i||(i=!0,t.call(e,n))}}var i=!1;return[r(t),r(n)]}function a(){this.$$state={status:0}}function s(e,t){return function(n){t.call(e,n)}}function c(e){var r,i,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,s=o.length;a<s;++a){i=o[a][0],r=o[a][e.status];try{T(r)?i.resolve(r(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(c){i.reject(c),t(c)}}}function l(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){c(t)}))}function u(){this.promise=new a,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function f(e){var t=new u,n=0,r=Br(e)?[]:{};return o(e,function(e,i){n++,g(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var d=r("$q",TypeError),h=function(){return new u};a.prototype={then:function(e,t,n){var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&l(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return v(t,!0,e)},function(t){return v(t,!1,e)},t)}},u.prototype={resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(d("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(b(e)||T(e))&&(n=e&&e.then),T(n)?(this.promise.$$state.status=-1,n.call(e,r[0],r[1],this.notify)):(this.promise.$$state.value=e,this.promise.$$state.status=1,l(this.promise.$$state))}catch(o){r[1](o),t(o)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;
this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;o<a;o++){i=r[o][0],e=r[o][3];try{i.notify(T(e)?e(n):n)}catch(s){t(s)}}})}};var p=function(e){var t=new u;return t.reject(e),t.promise},m=function(e,t){var n=new u;return t?n.resolve(e):n.reject(e),n.promise},v=function(e,t,n){var r=null;try{T(n)&&(r=n())}catch(i){return m(i,!1)}return L(r)?r.then(function(){return m(e,t)},function(e){return m(e,!1)}):m(e,t)},g=function(e,t,n,r){var i=new u;return i.resolve(e),i.promise.then(t,n,r)},$=g,y=function w(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!T(e))throw d("norslvr","Expected resolverFn, got '{0}'",e);if(!(this instanceof w))return new w(e);var r=new u;return e(t,n),r.promise};return y.defer=h,y.reject=p,y.when=g,y.resolve=$,y.all=f,y}function mn(){this.$get=["$window","$timeout",function(e,t){function n(){for(var e=0;e<u.length;e++){var t=u[e];t&&(u[e]=null,t())}l=u.length=0}function r(e){var t=u.length;return l++,u.push(e),0===t&&(c=s(n)),function(){t>=0&&(u[t]=null,t=null,0===--l&&c&&(c(),c=null,u.length=0))}}var i=e.requestAnimationFrame||e.webkitRequestAnimationFrame,o=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,a=!!i,s=a?function(e){var t=i(e);return function(){o(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};r.supported=a;var c,l=0,u=[];return r}]}function vn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=c(),this.$$ChildScope=null}return t.prototype=e,t}var t=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,l,u,f){function d(e){e.currentScope.$$destroyed=!0}function h(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(x.$$phase)throw n("inprog","{0} already in progress",x.$$phase);x.$$phase=e}function v(){x.$$phase=null}function g(e,t){do e.$$watchersCount+=t;while(e=e.$parent)}function $(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function w(){}function _(){for(;k.length;)try{k.shift()()}catch(e){l(e)}s=null}function S(){null===s&&(s=f.defer(function(){x.$apply(_)}))}h.prototype={constructor:h,$new:function(t,n){var r;return n=n||this,t?(r=new h,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!=this)&&r.$on("$destroy",d),r},$watch:function(e,t,n,r){var i=u(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,s=o.$$watchers,c={fn:t,last:w,get:i,exp:r||e,eq:!!n};return a=null,T(t)||(c.fn=m),s||(s=o.$$watchers=[]),s.unshift(c),g(this,1),function(){R(s,c)>=0&&g(o,-1),a=null}},$watchGroup:function(e,t){function n(){c=!1,l?(l=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,c=!1,l=!0;if(!e.length){var u=!0;return s.$evalAsync(function(){u&&t(i,i,s)}),function(){u=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,c||(c=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s,c;if(!y(o)){if(b(o))if(i(o)){a!==h&&(a=h,v=a.length=0,f++),t=o.length,v!==t&&(f++,a.length=v=t);for(var l=0;l<t;l++)c=a[l],s=o[l],r=c!==c&&s!==s,r||c===s||(f++,a[l]=s)}else{a!==p&&(a=p={},v=0,f++),t=0;for(n in o)o.hasOwnProperty(n)&&(t++,s=o[n],c=a[n],n in a?(r=c!==c&&s!==s,r||c===s||(f++,a[n]=s)):(v++,a[n]=s,f++));if(v>t){f++;for(n in a)o.hasOwnProperty(n)||(v--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if(m?(m=!1,t(o,o,c)):t(o,s,c),l)if(b(o))if(i(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)br.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,c=this,l=t.length>1,f=0,d=u(e,n),h=[],p={},m=!0,v=0;return this.$watch(d,r)},$digest:function(){var e,r,i,o,c,u,d,h,m,g,$=t,y=this,b=[];p("$digest"),f.$$checkUrlChange(),this===x&&null!==s&&(f.defer.cancel(s),_()),a=null;do{for(u=!1,h=y;E.length;){try{g=E.shift(),g.scope.$eval(g.expression,g.locals)}catch(S){l(S)}a=null}e:do{if(o=h.$$watchers)for(c=o.length;c--;)try{if(e=o[c])if((r=e.get(h))===(i=e.last)||(e.eq?F(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(e===a){u=!1;break e}}else u=!0,a=e,e.last=e.eq?z(r,null):r,e.fn(r,i===w?r:i,h),$<5&&(m=4-$,b[m]||(b[m]=[]),b[m].push({msg:T(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:r,oldVal:i}))}catch(S){l(S)}if(!(d=h.$$watchersCount&&h.$$childHead||h!==y&&h.$$nextSibling))for(;h!==y&&!(d=h.$$nextSibling);)h=h.$parent}while(h=d);if((u||E.length)&&!$--)throw v(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,b)}while(u||E.length);for(v();C.length;)try{C.shift()()}catch(S){l(S)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===x&&f.$$applicationDestroyed(),g(this,-this.$$watchersCount);for(var t in this.$$listenerCount)$(this,this.$$listenerCount[t],t);e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(e,t){return u(e)(this,t)},$evalAsync:function(e,t){x.$$phase||E.length||f.defer(function(){E.length&&x.$digest()}),E.push({scope:this,expression:e,locals:t})},$$postDigest:function(e){C.push(e)},$apply:function(e){try{return p("$apply"),this.$eval(e)}catch(t){l(t)}finally{v();try{x.$digest()}catch(t){throw l(t),t}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&k.push(t),S()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);r!==-1&&(n[r]=null,$(i,1,e))}},$emit:function(e,t){var n,r,i,o=[],a=this,s=!1,c={name:e,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},u=j([c],arguments,1);do{for(n=a.$$listeners[e]||o,c.currentScope=a,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,u)}catch(f){l(f)}else n.splice(r,1),r--,i--;if(s)return c.currentScope=null,c;a=a.$parent}while(a);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,r=n,i=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;for(var a,s,c,u=j([o],arguments,1);r=i;){for(o.currentScope=r,a=r.$$listeners[e]||[],s=0,c=a.length;s<c;s++)if(a[s])try{a[s].apply(null,u)}catch(f){l(f)}else a.splice(s,1),s--,c--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var x=new h,E=x.$$asyncQueue=[],C=x.$$postDigestQueue=[],k=x.$$applyAsyncQueue=[];return x}]}function gn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return w(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return w(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=Tn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function $n(e){if("self"===e)return e;if(S(e)){if(e.indexOf("***")>-1)throw Qi("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=Hr(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(C(e))return new RegExp("^"+e.source+"$");throw Qi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function yn(e){var t=[];return w(e)&&o(e,function(e){t.push($n(e))}),t}function wn(){this.SCE_CONTEXTS=eo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=yn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=yn(e)),t},this.$get=["$injector",function(r){function i(e,t){return"self"===e?Cn(t):!!e.exec(t.href)}function o(n){var r,o,a=Tn(n.toString()),s=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var r=d.hasOwnProperty(e)?d[e]:null;if(!r)throw Qi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw Qi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function c(e){return e instanceof f?e.$$unwrapTrustedValue():e}function l(e,t){if(null===t||t===n||""===t)return t;var r=d.hasOwnProperty(e)?d[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===eo.RESOURCE_URL){if(o(t))return t;throw Qi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===eo.HTML)return u(t);throw Qi("unsafe","Attempting to use an unsafe value in a safe context.")}var u=function(e){throw Qi("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(u=r.get("$sanitize"));var f=a(),d={};return d[eo.HTML]=a(f),d[eo.CSS]=a(f),d[eo.URL]=a(f),d[eo.JS]=a(f),d[eo.RESOURCE_URL]=a(d[eo.URL]),{trustAs:s,getTrusted:l,valueOf:c}}]}function bn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Er<8)throw Qi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 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 r=H(eo);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=v),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(eo,function(e,t){var n=wr(t);r[_e("parse_as_"+n)]=function(t){return i(e,t)},r[_e("get_trusted_"+n)]=function(t){return a(e,t)},r[_e("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function _n(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=h((/android (\d+)/.exec(wr((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,l=s.body&&s.body.style,u=!1,f=!1;if(l){for(var d in l)if(r=c.exec(d)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),u=!!("transition"in l||n+"Transition"in l),f=!!("animation"in l||n+"Animation"in l),!o||u&&f||(u=S(l.webkitTransition),f=S(l.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||o<4||a),hasEvent:function(e){if("input"===e&&Er<=11)return!1;if(y(i[e])){var t=s.createElement("div");i[e]="on"+e in t}return i[e]},csp:Fr(),vendorPrefix:n,transitions:u,animations:f,android:o}}]}function Sn(){this.$get=["$templateCache","$http","$q","$sce",function(e,t,n,r){function i(o,a){function s(e){if(!a)throw Ai("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,e.status,e.statusText);return n.reject(e)}i.totalPendingRequests++,S(o)&&e.get(o)||(o=r.getTrustedResourceUrl(o));var c=t.defaults&&t.defaults.transformResponse;Br(c)?c=c.filter(function(e){return e!==yt}):c===yt&&(c=null);var l={cache:e,transformResponse:c};return t.get(o,l)["finally"](function(){i.totalPendingRequests--}).then(function(t){return e.put(o,t.data),t.data},s)}return i.totalPendingRequests=0,i}]}function xn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=Pr.element(e).data("$binding");r&&o(r,function(r){if(n){var o=new RegExp("(^|\\s)"+Hr(t)+"(\\s|\\||$)");o.test(r)&&i.push(e)}else r.indexOf(t)!=-1&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function En(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,c){T(o)||(c=s,s=o,o=m);var l,u=q(arguments,3),f=w(c)&&!c,d=(f?r:n).defer(),h=d.promise;return l=t.defer(function(){try{d.resolve(o.apply(null,u))}catch(t){d.reject(t),i(t)}finally{delete a[h.$$timeoutId]}f||e.$apply()},s),h.$$timeoutId=l,a[l]=d,h}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function Tn(e){var t=e;return Er&&(to.setAttribute("href",t),t=to.href),to.setAttribute("href",t),{href:to.href,protocol:to.protocol?to.protocol.replace(/:$/,""):"",host:to.host,search:to.search?to.search.replace(/^\?/,""):"",hash:to.hash?to.hash.replace(/^#/,""):"",hostname:to.hostname,port:to.port,pathname:"/"===to.pathname.charAt(0)?to.pathname:"/"+to.pathname}}function Cn(e){var t=S(e)?Tn(e):e;return t.protocol===no.protocol&&t.host===no.host}function kn(){this.$get=g(e)}function An(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,a,s,c,l,u=r.cookie||"";if(u!==o)for(o=u,e=o.split("; "),i={},s=0;s<e.length;s++)a=e[s],c=a.indexOf("="),c>0&&(l=t(a.substring(0,c)),i[l]===n&&(i[l]=t(a.substring(c+1))));return i}}function Dn(){this.$get=An}function In(e){function t(r,i){if(b(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Nn),t("date",Xn),t("filter",Mn),t("json",Kn),t("limitTo",Zn),t("lowercase",so),t("number",Vn),t("orderBy",Jn),t("uppercase",co)}function Mn(){return function(e,t,n){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var o,a,s=Pn(t);switch(s){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=On(t,n,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function On(e,t,n){var r,i=b(e)&&"$"in e;return t===!0?t=F:T(t)||(t=function(e,t){return!y(e)&&(null===e||null===t?e===t:!(b(t)||b(e)&&!$(e))&&(e=wr(""+e),t=wr(""+t),e.indexOf(t)!==-1))}),r=function(r){return i&&!b(r)?Ln(r,e.$,t,!1):Ln(r,e,t,n)}}function Ln(e,t,n,r,i){var o=Pn(e),a=Pn(t);if("string"===a&&"!"===t.charAt(0))return!Ln(e,t.substring(1),n,r);if(Br(e))return e.some(function(e){return Ln(e,t,n,r)});switch(o){case"object":var s;if(r){for(s in e)if("$"!==s.charAt(0)&&Ln(e[s],t,n,!0))return!0;return!i&&Ln(e,t,n,!1)}if("object"===a){for(s in t){var c=t[s];if(!T(c)&&!y(c)){var l="$"===s,u=l?e:e[s];if(!Ln(u,c,n,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Pn(e){return null===e?"null":typeof e}function Nn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return y(n)&&(n=t.CURRENCY_SYM),y(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Bn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Vn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Bn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Bn(e,t,n,r,i){if(b(e))return"";var o=e<0;e=Math.abs(e);var a=e===1/0;if(!a&&!isFinite(e))return"";var s=e+"",c="",l=!1,u=[];if(a&&(c="∞"),!a&&s.indexOf("e")!==-1){var f=s.match(/([\d\.]+)e(-?)(\d+)/);f&&"-"==f[2]&&f[3]>i+1?e=0:(c=s,l=!0)}if(a||l)i>0&&e<1&&(c=e.toFixed(i),e=parseFloat(c));else{var d=(s.split(ro)[1]||"").length;y(i)&&(i=Math.min(Math.max(t.minFrac,d),t.maxFrac)),e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i);var h=(""+e).split(ro),p=h[0];h=h[1]||"";var m,v=0,g=t.lgSize,$=t.gSize;if(p.length>=g+$)for(v=p.length-g,m=0;m<v;m++)(v-m)%$===0&&0!==m&&(c+=n),c+=p.charAt(m);for(m=v;m<p.length;m++)(p.length-m)%g===0&&0!==m&&(c+=n),c+=p.charAt(m);for(;h.length<i;)h+="0";i&&"0"!==i&&(c+=r+h.substr(0,i))}return 0===e&&(o=!1),u.push(o?t.negPre:t.posPre,c,o?t.negSuf:t.posSuf),u.join("")}function Rn(e,t,n){var r="";for(e<0&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function zn(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&n==-12&&(o=12),Rn(o,t,r)}}function Hn(e,t){return function(n,r){var i=n["get"+e](),o=_r(t?"SHORT"+e:e);return r[o][i]}}function Fn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Rn(Math[r>0?"floor":"ceil"](r/60),2)+Rn(Math.abs(r%60),2)}function jn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function qn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Un(e){return function(t){var n=jn(t.getFullYear()),r=qn(t),i=+r-+n,o=1+Math.round(i/6048e5);return Rn(o,e)}}function Gn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Wn(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Yn(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function Xn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=h(t[9]+t[10]),o=h(t[9]+t[11])),a.call(r,h(t[1]),h(t[2])-1,h(t[3]));var c=h(t[4]||0)-i,l=h(t[5]||0)-o,u=h(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,c,l,u,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,c="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,S(n)&&(n=ao.test(n)?h(n):t(n)),x(n)&&(n=new Date(n)),!E(n)||!isFinite(n.getTime()))return n;for(;r;)s=oo.exec(r),s?(l=j(l,s,1),r=l.pop()):(l.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=X(i,n.getTimezoneOffset()),n=Z(n,i,!0)),o(l,function(t){a=io[t],c+=a?a(n,e.DATETIME_FORMATS,u):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function Kn(){return function(e,t){return y(t)&&(t=2),W(e,t)}}function Zn(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):h(t),isNaN(t)?e:(x(e)&&(e=e.toString()),Br(e)||S(e)?(n=!n||isNaN(n)?0:h(n),n=n<0&&n>=-e.length?e.length+n:n,t>=0?e.slice(n,n+t):0===n?e.slice(t,e.length):e.slice(Math.max(0,n+t),n)):e)}}function Jn(e){function t(t,n){return n=n?-1:1,t.map(function(t){var r=1,i=v;if(T(t))i=t;else if(S(t)&&("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(r="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t),i.constant))){var o=i();i=function(e){return e[o]}}return{get:i,descending:r*n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function r(e,t){return"function"==typeof e.valueOf&&(e=e.valueOf(),n(e))?e:$(e)&&(e=e.toString(),n(e))?e:t}function o(e,t){var n=typeof e;return null===e?(n="string",e="null"):"string"===n?e=e.toLowerCase():"object"===n&&(e=r(e,t)),{value:e,type:n}}function a(e,t){var n=0;return e.type===t.type?e.value!==t.value&&(n=e.value<t.value?-1:1):n=e.type<t.type?-1:1,n}return function(e,n,r){function s(e,t){return{value:e,predicateValues:l.map(function(n){return o(n.get(e),t)})}}function c(e,t){for(var n=0,r=0,i=l.length;r<i&&!(n=a(e.predicateValues[r],t.predicateValues[r])*l[r].descending);++r);return n}if(!i(e))return e;Br(n)||(n=[n]),0===n.length&&(n=["+"]);var l=t(n,r),u=Array.prototype.map.call(e,s);return u.sort(c),e=u.map(function(e){return e.value})}}function Qn(e){return T(e)&&(e={link:e}),e.restrict=e.restrict||"AC",g(e)}function er(e,t){e.$name=t}function tr(e,t,r,i,a){var s=this,c=[],l=s.$$parentForm=e.parent().controller("form")||fo;s.$error={},s.$$success={},s.$pending=n,s.$name=a(t.name||t.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,l.$addControl(s),s.$rollbackViewValue=function(){o(c,function(e){e.$rollbackViewValue()})},s.$commitViewValue=function(){o(c,function(e){e.$commitViewValue()})},s.$addControl=function(e){he(e.$name,"input"),c.push(e),e.$name&&(s[e.$name]=e)},s.$$renameControl=function(e,t){var n=e.$name;s[n]===e&&delete s[n],s[t]=e,e.$name=t},s.$removeControl=function(e){e.$name&&s[e.$name]===e&&delete s[e.$name],o(s.$pending,function(t,n){s.$setValidity(n,null,e)}),o(s.$error,function(t,n){s.$setValidity(n,null,e)}),o(s.$$success,function(t,n){s.$setValidity(n,null,e)}),R(c,e)},vr({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(R(r,n),0===r.length&&delete e[t])},parentForm:l,$animate:i}),s.$setDirty=function(){i.removeClass(e,Yo),i.addClass(e,Xo),s.$dirty=!0,s.$pristine=!1,l.$setDirty()},s.$setPristine=function(){i.setClass(e,Yo,Xo+" "+ho),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(c,function(e){e.$setPristine()})},s.$setUntouched=function(){o(c,function(e){e.$setUntouched()})},s.$setSubmitted=function(){i.addClass(e,ho),s.$submitted=!0,l.$setSubmitted()}}function nr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function rr(e,t,n,r,i,o){ir(e,t,n,r,i,o),nr(r)}function ir(e,t,n,r,i,o){var a=wr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(e){s=!0}),t.on("compositionend",function(){s=!1,c()})}var c=function(e){if(l&&(o.defer.cancel(l),l=null),!s){var i=t.val(),c=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=zr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))t.on("input",c);else{var l,u=function(e,t,n){l||(l=o.defer(function(){l=null,t&&t.value===n||c(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||u(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",u)}t.on("change",c),r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function or(e,t){if(E(e))return e;if(S(e)){So.lastIndex=0;var n=So.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,l=jn(r),u=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,l.getDate()+u,o,a,s,c)}}return NaN}function ar(e,t){return function(n,r){var i,a;if(E(n))return n;if(S(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),go.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function sr(e,t,r,i){return function(o,a,s,c,l,u,f){function d(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function h(e){return w(e)?E(e)?e:r(e):n}cr(o,a,s,c),ir(o,a,s,c,l,u);var p,m=c&&c.$options&&c.$options.timezone;if(c.$$parserName=e,c.$parsers.push(function(e){if(c.$isEmpty(e))return null;if(t.test(e)){var i=r(e,p);return m&&(i=Z(i,m)),i}return n}),c.$formatters.push(function(e){if(e&&!E(e))throw Qo("datefmt","Expected `{0}` to be a date",e);return d(e)?(p=e,p&&m&&(p=Z(p,m,!0)),f("date")(e,i,m)):(p=null,"")}),w(s.min)||s.ngMin){var v;c.$validators.min=function(e){return!d(e)||y(v)||r(e)>=v},s.$observe("min",function(e){v=h(e),c.$validate()})}if(w(s.max)||s.ngMax){var g;c.$validators.max=function(e){return!d(e)||y(g)||r(e)<=g},s.$observe("max",function(e){g=h(e),c.$validate()})}}}function cr(e,t,r,i){var o=t[0],a=i.$$hasNativeValidators=b(o.validity);a&&i.$parsers.push(function(e){var r=t.prop(yr)||{};return r.badInput&&!r.typeMismatch?n:e})}function lr(e,t,r,i,o,a){if(cr(e,t,r,i),ir(e,t,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(e){return i.$isEmpty(e)?null:wo.test(e)?parseFloat(e):n}),i.$formatters.push(function(e){if(!i.$isEmpty(e)){if(!x(e))throw Qo("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}),w(r.min)||r.ngMin){var s;i.$validators.min=function(e){return i.$isEmpty(e)||y(s)||e>=s},r.$observe("min",function(e){w(e)&&!x(e)&&(e=parseFloat(e,10)),s=x(e)&&!isNaN(e)?e:n,i.$validate()})}if(w(r.max)||r.ngMax){var c;i.$validators.max=function(e){return i.$isEmpty(e)||y(c)||e<=c},r.$observe("max",function(e){w(e)&&!x(e)&&(e=parseFloat(e,10)),c=x(e)&&!isNaN(e)?e:n,i.$validate()})}}function ur(e,t,n,r,i,o){ir(e,t,n,r,i,o),nr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||$o.test(n)}}function fr(e,t,n,r,i,o){ir(e,t,n,r,i,o),nr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||yo.test(n)}}function dr(e,t,n,r){y(n.name)&&t.attr("name",c());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function hr(e,t,n,i,o){var a;if(w(i)){if(a=e(i),!a.constant)throw r("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return a(t)}return o}function pr(e,t,n,r,i,o,a,s){var c=hr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=hr(s,e,"ngFalseValue",n.ngFalseValue,!1),u=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",u),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return F(e,c)}),r.$parsers.push(function(e){return e?c:l})}function mr(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){var t=[];return Br(e)?(o(e,function(e){t=t.concat(i(e))}),t):S(e)?e.split(" "):b(e)?(o(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,c){function l(e){var t=f(e,1);c.$addClass(t)}function u(e){var t=f(e,-1);c.$removeClass(t)}function f(e,t){var n=s.data("$classCounts")||ve(),r=[];return o(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function d(e,t){var i=r(t,e),o=r(e,t);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}function h(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(p){if(!F(e,p)){var r=i(p);d(r,n)}}else l(n)}p=H(e)}var p;a.$watch(c[e],h,!0),c.$observe("class",function(t){h(a.$eval(c[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(c[e]));o===t?l(s):u(s)}})}}}]}function vr(e){function t(e,t,c){t===n?r("$pending",e,c):i("$pending",e,c),O(t)?t?(f(s.$error,e,c),u(s.$$success,e,c)):(u(s.$error,e,c),f(s.$$success,e,c)):(f(s.$error,e,c),f(s.$$success,e,c)),s.$pending?(o(Jo,!0),s.$valid=s.$invalid=n,a("",null)):(o(Jo,!1),s.$valid=gr(s.$error),s.$invalid=!s.$valid,a("",s.$valid));var l;l=s.$pending&&s.$pending[e]?n:!s.$error[e]&&(!!s.$$success[e]||null),a(e,l),d.$setValidity(e,l,s)}function r(e,t,n){s[e]||(s[e]={}),u(s[e],t,n)}function i(e,t,r){s[e]&&f(s[e],t,r),gr(s[e])&&(s[e]=n)}function o(e,t){t&&!l[e]?(h.addClass(c,e),l[e]=!0):!t&&l[e]&&(h.removeClass(c,e),l[e]=!1)}function a(e,t){e=e?"-"+le(e,"-"):"",o(Go+e,t===!0),o(Wo+e,t===!1)}var s=e.ctrl,c=e.$element,l={},u=e.set,f=e.unset,d=e.parentForm,h=e.$animate;l[Wo]=!(l[Go]=c.hasClass(Go)),s.$setValidity=t}function gr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var $r=/^\/(.+)\/([a-z]*)$/,yr="validity",wr=function(e){return S(e)?e.toLowerCase():e},br=Object.prototype.hasOwnProperty,_r=function(e){return S(e)?e.toUpperCase():e},Sr=function(e){return S(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},xr=function(e){return S(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&-33)}):e};"i"!=="I".toLowerCase()&&(wr=Sr,_r=xr);var Er,Tr,Cr,kr,Ar=[].slice,Dr=[].splice,Ir=[].push,Mr=Object.prototype.toString,Or=Object.getPrototypeOf,Lr=r("ng"),Pr=e.angular||(e.angular={}),Nr=0;Er=t.documentMode,m.$inject=[],v.$inject=[];var Vr,Br=Array.isArray,Rr=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,zr=function(e){return S(e)?e.trim():e},Hr=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Fr=function(){if(w(Fr.isActive_))return Fr.isActive_;var e=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!e)try{new Function("")}catch(n){e=!0}return Fr.isActive_=e},jr=function(){if(w(jr.name_))return jr.name_;var e,n,r,i,o=qr.length;for(n=0;n<o;++n)if(r=qr[n],e=t.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return jr.name_=i},qr=["ng-","data-ng-","ng:","x-ng-"],Ur=/[A-Z]/g,Gr=!1,Wr=1,Yr=2,Xr=3,Kr=8,Zr=9,Jr=11,Qr={full:"1.4.3",major:1,minor:4,dot:3,codeName:"foam-acceleration"};ke.expando="ng339";var ei=ke.cache={},ti=1,ni=function(e,t,n){e.addEventListener(t,n,!1)},ri=function(e,t,n){e.removeEventListener(t,n,!1)};ke._data=function(e){return this.cache[e[this.expando]]||{}};var ii=/([\:\-\_]+(.))/g,oi=/^moz([A-Z])/,ai={mouseleave:"mouseout",mouseenter:"mouseover"},si=r("jqLite"),ci=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,li=/<|&#?\w+;/,ui=/<([\w:]+)/,fi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,di={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,"",""]};di.optgroup=di.option,di.tbody=di.tfoot=di.colgroup=di.caption=di.thead,di.th=di.td;var hi=ke.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),ke(e).on("load",r))},toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Tr(e>=0?this[e]:this[this.length+e])},length:0,push:Ir,sort:[].sort,splice:[].splice},pi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){pi[wr(e)]=e});var mi={};o("input,select,option,textarea,button,form,details".split(","),function(e){mi[e]=!0});var vi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Le,removeData:Me,hasData:Ee},function(e,t){ke[t]=e}),o({data:Le,inheritedData:ze,scope:function(e){return Tr.data(e,"$scope")||ze(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Tr.data(e,"$isolateScope")||Tr.data(e,"$isolateScopeNoTemplate")},controller:Re,injector:function(e){return ze(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Pe,css:function(e,t,n){return t=_e(t),w(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,r){var i=e.nodeType;if(i!==Xr&&i!==Yr&&i!==Kr){var o=wr(t);if(pi[o]){if(!w(r))return e[t]||(e.attributes.getNamedItem(t)||m).specified?o:n;r?(e[t]=!0,
e.setAttribute(t,o)):(e[t]=!1,e.removeAttribute(o))}else if(w(r))e.setAttribute(t,r);else if(e.getAttribute){var a=e.getAttribute(t,2);return null===a?n:a}}},prop:function(e,t,n){return w(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(y(t)){var n=e.nodeType;return n===Wr||n===Xr?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(y(t)){if(e.multiple&&"select"===B(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return y(t)?e.innerHTML:(De(e,!0),void(e.innerHTML=t))},empty:He},function(e,t){ke.prototype[t]=function(t,r){var i,o,a=this.length;if(e!==He&&(2==e.length&&e!==Pe&&e!==Re?t:r)===n){if(b(t)){for(i=0;i<a;i++)if(e===Le)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}for(var s=e.$dv,c=s===n?Math.min(a,1):a,l=0;l<c;l++){var u=e(this[l],t,r);s=s?s+u:u}return s}for(i=0;i<a;i++)e(this[i],t,r);return this}}),o({removeData:Me,on:function Aa(e,t,n,r){if(w(r))throw si("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(xe(e)){var i=Oe(e,!0),o=i.events,a=i.handle;a||(a=i.handle=Ge(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],c=s.length;c--;){t=s[c];var l=o[t];l||(o[t]=[],"mouseenter"===t||"mouseleave"===t?Aa(e,ai[t],function(e){var n=this,r=e.relatedTarget;r&&(r===n||n.contains(r))||a(e,t)}):"$destroy"!==t&&ni(e,t,a),l=o[t]),l.push(n)}}},off:Ie,one:function(e,t,n){e=Tr(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;De(e),o(new ke(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===Wr&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Wr||n===Jr){t=new ke(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===Wr){var n=e.firstChild;o(new ke(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){t=Tr(t).eq(0).clone()[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:Fe,detach:function(e){Fe(e,!0)},after:function(e,t){var n=e,r=e.parentNode;t=new ke(t);for(var i=0,o=t.length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Ve,removeClass:Ne,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;y(r)&&(r=!Pe(e,t)),(r?Ve:Ne)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==Jr?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Ae,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,c=Oe(e),l=c&&c.events,u=l&&l[s];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:m,type:s,target:e},t.type&&(r=f(r,t)),i=H(u),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){ke.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)y(i)?(i=e(this[o],t,n,r),w(i)&&(i=Tr(i))):Be(i,e(this[o],t,n,r));return w(i)?i:this},ke.prototype.bind=ke.prototype.on,ke.prototype.unbind=ke.prototype.off}),Xe.prototype={put:function(e,t){this[Ye(e,this.nextUid)]=t},get:function(e){return this[Ye(e,this.nextUid)]},remove:function(e){var t=this[e=Ye(e,this.nextUid)];return delete this[e],t}};var gi=[function(){this.$get=[function(){return Xe}]}],$i=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,yi=/,/,wi=/^\s*(_?)(\S+?)\1\s*$/,bi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,_i=r("$injector");Je.$$annotate=Ze;var Si=r("$animate"),xi=1,Ei="ng-animate",Ti=function(){this.$get=["$q","$$rAF",function(e,t){function n(){}return n.all=m,n.chain=m,n.prototype={end:m,cancel:m,resume:m,pause:m,complete:m,then:function(n,r){return e(function(e){t(function(){e()})}).then(n,r)}},n}]},Ci=function(){var e=new Xe,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(n,i,a){var s=e.get(n);s||(e.put(n,s={}),t.push(n)),i&&o(i.split(" "),function(e){e&&(s[e]=!0)}),a&&o(a.split(" "),function(e){e&&(s[e]=!1)}),t.length>1||r.$$postDigest(function(){o(t,function(t){var n=e.get(t);if(n){var r=nt(t.attr("class")),i="",a="";o(n,function(e,t){var n=!!r[t];e!==n&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Ve(e,i),a&&Ne(e,a)}),e.remove(t)}}),t.length=0})}return{enabled:m,on:m,off:m,pin:m,push:function(e,t,r,o){return o&&o(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&i(e,r.addClass,r.removeClass),new n}}}]},ki=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Si("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+Ei+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw Si("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Ei)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=tt(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Tr(r),i=i&&Tr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",rt(o))},move:function(n,r,i,o){return r=r&&Tr(r),i=i&&Tr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",rt(o))},leave:function(t,n){return e.push(t,"leave",rt(n),function(){t.remove()})},addClass:function(t,n,r){return r=rt(r),r.addClass=et(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=rt(r),r.removeClass=et(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=rt(i),i.addClass=et(i.addClass,n),i.removeClass=et(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=rt(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=et(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Ai=r("$compile");ct.$inject=["$provide","$$sanitizeUriProvider"];var Di=/^((?:x|data)[\:\-_])/i,Ii=r("$controller"),Mi=/^(\S+)(\s+as\s+(\w+))?$/,Oi="application/json",Li={"Content-Type":Oi+";charset=utf-8"},Pi=/^\[|^\{(?!\{)/,Ni={"[":/]$/,"{":/}$/},Vi=/^\)\]\}',?\n/,Bi=Pr.$interpolateMinErr=r("$interpolate");Bi.throwNoconcat=function(e){throw Bi("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",e)},Bi.interr=function(e,t){return Bi("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Ri=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,zi={http:80,https:443,ftp:21},Hi=r("$location"),Fi={$$html5:!1,$$replace:!1,absUrl:jt("$$absUrl"),url:function(e){if(y(e))return this.$$url;var t=Ri.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:jt("$$protocol"),host:jt("$$host"),port:jt("$$port"),path:qt("$$path",function(e){return e=null!==e?e.toString():"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(S(e)||x(e))e=e.toString(),this.$$search=ee(e);else{if(!b(e))throw Hi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=z(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:y(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:qt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([Ft,Ht,zt],function(e){e.prototype=Object.create(Fi),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==zt||!this.$$html5)throw Hi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=y(t)?null:t,this}});var ji=r("$parse"),qi=Function.prototype.call,Ui=Function.prototype.apply,Gi=Function.prototype.bind,Wi=ve();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Wi[e]=!0});var Yi={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},Xi=function(e){this.options=e};Xi.prototype={constructor:Xi,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=Wi[t],o=Wi[n],a=Wi[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return t.indexOf(e)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\x0B"===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=w(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw ji("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=wr(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){for(var e=this.index;this.index<this.text.length;){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=Yi[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Ki=function(e,t){this.lexer=e,this.options=t};Ki.Program="Program",Ki.ExpressionStatement="ExpressionStatement",Ki.AssignmentExpression="AssignmentExpression",Ki.ConditionalExpression="ConditionalExpression",Ki.LogicalExpression="LogicalExpression",Ki.BinaryExpression="BinaryExpression",Ki.UnaryExpression="UnaryExpression",Ki.CallExpression="CallExpression",Ki.MemberExpression="MemberExpression",Ki.Identifier="Identifier",Ki.Literal="Literal",Ki.ArrayExpression="ArrayExpression",Ki.Property="Property",Ki.ObjectExpression="ObjectExpression",Ki.ThisExpression="ThisExpression",Ki.NGValueParameter="NGValueParameter",Ki.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Ki.Program,body:e}},expressionStatement:function(){return{type:Ki.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e,t=this.expression();e=this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();return this.expect("=")&&(e={type:Ki.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Ki.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ki.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ki.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ki.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ki.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.constants.hasOwnProperty(this.peek().text)?e=z(this.constants[this.consume().text]):this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Ki.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ki.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ki.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Ki.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do e.push(this.expression());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Ki.Identifier,name:e.text}},constant:function(){return{type:Ki.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Ki.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ki.Property,kind:"init"},this.peek().constant?e.key=this.constant():this.peek().identifier?e.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),e.value=this.expression(),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Ki.ObjectExpression,properties:t}},throwError:function(e,t){throw ji("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))},consume:function(e){if(0===this.tokens.length)throw ji("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw ji("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},constants:{"true":{type:Ki.Literal,value:!0},"false":{type:Ki.Literal,value:!1},"null":{type:Ki.Literal,value:null},undefined:{type:Ki.Literal,value:n},"this":{type:Ki.ThisExpression}}},an.prototype={compile:function(e,t){var r=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Qt(i,r.$filter);var a,s="";if(this.stage="assign",a=nn(i)){this.state.computing="assign";var c=this.nextId();this.recurse(a,c),s="fn.assign="+this.generateFunction("assign","s,v,l")}var l=en(i.body);r.stage="inputs",o(l,function(e,t){var n="fn"+t;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(e,i),r.return_(i),r.state.inputs.push(n),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",u)(this.$filter,Wt,Yt,Xt,Kt,Zt,e);return this.state=this.stage=n,f.literal=rn(i),f.constant=on(i),f},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,i,a,s){var c,l,u,f,d=this;if(i=i||m,!s&&w(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,r,i,a,!0));switch(e.type){case Ki.Program:o(e.body,function(t,r){d.recurse(t.expression,n,n,function(e){l=e}),r!==e.body.length-1?d.current().body.push(l,";"):d.return_(l)});break;case Ki.Literal:f=this.escape(e.value),this.assign(t,f),i(f);break;case Ki.UnaryExpression:this.recurse(e.argument,n,n,function(e){l=e}),f=e.operator+"("+this.ifDefined(l,0)+")",this.assign(t,f),i(f);break;case Ki.BinaryExpression:this.recurse(e.left,n,n,function(e){c=e}),this.recurse(e.right,n,n,function(e){l=e}),f="+"===e.operator?this.plus(c,l):"-"===e.operator?this.ifDefined(c,0)+e.operator+this.ifDefined(l,0):"("+c+")"+e.operator+"("+l+")",this.assign(t,f),i(f);break;case Ki.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),i(t);break;case Ki.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),i(t);break;case Ki.Identifier:t=t||this.nextId(),r&&(r.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),Wt(e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){a&&1!==a&&d.if_(d.not(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),(d.state.expensiveChecks||ln(e.name))&&d.addEnsureSafeObject(t),i(t);break;case Ki.MemberExpression:c=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,c,n,function(){d.if_(d.notNull(c),function(){e.computed?(l=d.nextId(),d.recurse(e.property,l),d.addEnsureSafeMemberName(l),a&&1!==a&&d.if_(d.not(d.computedMember(c,l)),d.lazyAssign(d.computedMember(c,l),"{}")),f=d.ensureSafeObject(d.computedMember(c,l)),d.assign(t,f),r&&(r.computed=!0,r.name=l)):(Wt(e.property.name),a&&1!==a&&d.if_(d.not(d.nonComputedMember(c,e.property.name)),d.lazyAssign(d.nonComputedMember(c,e.property.name),"{}")),f=d.nonComputedMember(c,e.property.name),(d.state.expensiveChecks||ln(e.property.name))&&(f=d.ensureSafeObject(f)),d.assign(t,f),r&&(r.computed=!1,r.name=e.property.name))},function(){d.assign(t,"undefined")}),i(t)},!!a);break;case Ki.CallExpression:t=t||this.nextId(),e.filter?(l=d.filter(e.callee.name),u=[],o(e.arguments,function(e){var t=d.nextId();d.recurse(e,t),u.push(t)}),f=l+"("+u.join(",")+")",d.assign(t,f),i(t)):(l=d.nextId(),c={},u=[],d.recurse(e.callee,l,c,function(){d.if_(d.notNull(l),function(){d.addEnsureSafeFunction(l),o(e.arguments,function(e){d.recurse(e,d.nextId(),n,function(e){u.push(d.ensureSafeObject(e))})}),c.name?(d.state.expensiveChecks||d.addEnsureSafeObject(c.context),f=d.member(c.context,c.name,c.computed)+"("+u.join(",")+")"):f=l+"("+u.join(",")+")",f=d.ensureSafeObject(f),d.assign(t,f)},function(){d.assign(t,"undefined")}),i(t)}));break;case Ki.AssignmentExpression:if(l=this.nextId(),c={},!tn(e.left))throw ji("lval","Trying to assing a value to a non l-value");this.recurse(e.left,n,c,function(){d.if_(d.notNull(c.context),function(){d.recurse(e.right,l),d.addEnsureSafeObject(d.member(c.context,c.name,c.computed)),f=d.member(c.context,c.name,c.computed)+e.operator+l,d.assign(t,f),i(t||f)})},1);break;case Ki.ArrayExpression:u=[],o(e.elements,function(e){d.recurse(e,d.nextId(),n,function(e){u.push(e)})}),f="["+u.join(",")+"]",this.assign(t,f),i(f);break;case Ki.ObjectExpression:u=[],o(e.properties,function(e){d.recurse(e.value,d.nextId(),n,function(t){u.push(d.escape(e.key.type===Ki.Identifier?e.key.name:""+e.key.value)+":"+t)})}),f="{"+u.join(",")+"}",this.assign(t,f),i(f);break;case Ki.ThisExpression:this.assign(t,"s"),i("s");break;case Ki.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return e+"."+t},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(S(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if("undefined"==typeof e)return"undefined";throw ji("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},sn.prototype={compile:function(e,t){var n=this,r=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,Qt(r,n.$filter);var i,a;(i=nn(r))&&(a=this.recurse(i));var s,c=en(r.body);c&&(s=[],o(c,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var l=[];o(r.body,function(e){l.push(n.recurse(e.expression))});var u=0===r.body.length?function(){}:1===r.body.length?l[0]:function(e,t){var n;return o(l,function(r){n=r(e,t)}),n};return a&&(u.assign=function(e,t,n){return a(e,n,t)}),s&&(u.inputs=s),u.literal=rn(r),u.constant=on(r),u},recurse:function(e,t,r){var i,a,s,c=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ki.Literal:return this.value(e.value,t);case Ki.UnaryExpression:return a=this.recurse(e.argument),this["unary"+e.operator](a,t);case Ki.BinaryExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case Ki.LogicalExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case Ki.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Ki.Identifier:return Wt(e.name,c.expression),c.identifier(e.name,c.expensiveChecks||ln(e.name),t,r,c.expression);case Ki.MemberExpression:return i=this.recurse(e.object,!1,!!r),e.computed||(Wt(e.property.name,c.expression),a=e.property.name),e.computed&&(a=this.recurse(e.property)),e.computed?this.computedMember(i,a,t,r,c.expression):this.nonComputedMember(i,a,c.expensiveChecks,t,r,c.expression);case Ki.CallExpression:return s=[],o(e.arguments,function(e){s.push(c.recurse(e))}),e.filter&&(a=this.$filter(e.callee.name)),e.filter||(a=this.recurse(e.callee,!0)),e.filter?function(e,r,i,o){for(var c=[],l=0;l<s.length;++l)c.push(s[l](e,r,i,o));var u=a.apply(n,c,o);return t?{context:n,name:n,value:u}:u}:function(e,n,r,i){var o,l=a(e,n,r,i);if(null!=l.value){Yt(l.context,c.expression),Xt(l.value,c.expression);for(var u=[],f=0;f<s.length;++f)u.push(Yt(s[f](e,n,r,i),c.expression));o=Yt(l.value.apply(l.context,u),c.expression)}return t?{value:o}:o};case Ki.AssignmentExpression:return i=this.recurse(e.left,!0,1),a=this.recurse(e.right),function(e,n,r,o){var s=i(e,n,r,o),l=a(e,n,r,o);return Yt(s.value,c.expression),s.context[s.name]=l,t?{value:l}:l};case Ki.ArrayExpression:return s=[],o(e.elements,function(e){s.push(c.recurse(e))}),function(e,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](e,n,r,i));return t?{value:o}:o};case Ki.ObjectExpression:return s=[],o(e.properties,function(e){s.push({key:e.key.type===Ki.Identifier?e.key.name:""+e.key.value,value:c.recurse(e.value)})}),function(e,n,r,i){for(var o={},a=0;a<s.length;++a)o[s[a].key]=s[a].value(e,n,r,i);return t?{value:o}:o};case Ki.ThisExpression:return function(e){return t?{value:e}:e};case Ki.NGValueParameter:return function(e,n,r,i){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=w(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=w(a)?-a:0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),c=t(r,i,o,a),l=Zt(s,c);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),c=t(r,i,o,a),l=(w(s)?s:0)-(w(c)?c:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var c=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:c}:c}},value:function(e,t){return function(){return t?{context:n,name:n,value:e}:e}},identifier:function(e,t,r,i,o){return function(a,s,c,l){var u=s&&e in s?s:a;i&&1!==i&&u&&!u[e]&&(u[e]={});var f=u?u[e]:n;return t&&Yt(f,o),r?{context:u,name:e,value:f}:f}},computedMember:function(e,t,n,r,i){return function(o,a,s,c){var l,u,f=e(o,a,s,c);return null!=f&&(l=t(o,a,s,c),Wt(l,i),r&&1!==r&&f&&!f[l]&&(f[l]={}),u=f[l],Yt(u,i)),n?{context:f,name:l,value:u}:u}},nonComputedMember:function(e,t,r,i,o,a){return function(s,c,l,u){var f=e(s,c,l,u);o&&1!==o&&f&&!f[t]&&(f[t]={});var d=null!=f?f[t]:n;return(r||ln(t))&&Yt(d,a),i?{context:f,name:t,value:d}:d}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var Zi=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new Ki(this.lexer),this.astCompiler=n.csp?new sn(this.ast,t):new an(this.ast,t)};Zi.prototype={constructor:Zi,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var Ji=(ve(),ve(),Object.prototype.valueOf),Qi=r("$sce"),eo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ai=r("$compile"),to=t.createElement("a"),no=Tn(e.location.href);An.$inject=["$document"],In.$inject=["$provide"],Nn.$inject=["$locale"],Vn.$inject=["$locale"];var ro=".",io={yyyy:zn("FullYear",4),yy:zn("FullYear",2,0,!0),y:zn("FullYear",1),MMMM:Hn("Month"),MMM:Hn("Month",!0),MM:zn("Month",2,1),M:zn("Month",1,1),dd:zn("Date",2),d:zn("Date",1),HH:zn("Hours",2),H:zn("Hours",1),hh:zn("Hours",2,-12),h:zn("Hours",1,-12),mm:zn("Minutes",2),m:zn("Minutes",1),ss:zn("Seconds",2),s:zn("Seconds",1),sss:zn("Milliseconds",3),EEEE:Hn("Day"),EEE:Hn("Day",!0),a:Gn,Z:Fn,ww:Un(2),w:Un(1),G:Wn,GG:Wn,GGG:Wn,GGGG:Yn},oo=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ao=/^\-?\d+$/;Xn.$inject=["$locale"];var so=g(wr),co=g(_r);Jn.$inject=["$parse"];var lo=g({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Mr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),uo={};o(pi,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=lt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),uo[r]=function(){
return{restrict:"A",priority:100,link:i}}}}),o(vi,function(e,t){uo[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match($r);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=lt("ng-"+e);uo[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===Mr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){return t?(i.$set(a,t),void(Er&&o&&r.prop(o,i[a]))):void("href"===e&&i.$set(a,null))})}}}});var fo={$addControl:m,$$renameControl:er,$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m},ho="ng-submitted";tr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var po=function(e){return["$timeout",function(t){var r={name:"form",restrict:e?"EAC":"E",controller:tr,compile:function(r,i){r.addClass(Yo).addClass(Go);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,r,i,a){if(!("action"in i)){var s=function(t){e.$apply(function(){a.$commitViewValue(),a.$setSubmitted()}),t.preventDefault()};ni(r[0],"submit",s),r.on("$destroy",function(){t(function(){ri(r[0],"submit",s)},0,!1)})}var c=a.$$parentForm;o&&(cn(e,a.$name,a,a.$name),i.$observe(o,function(t){a.$name!==t&&(cn(e,a.$name,n,a.$name),c.$$renameControl(a,t),cn(e,a.$name,a,a.$name))})),r.on("$destroy",function(){c.$removeControl(a),o&&cn(e,i[o],n,a.$name),f(a,fo)})}}}};return r}]},mo=po(),vo=po(!0),go=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,$o=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,yo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,wo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,bo=/^(\d{4})-(\d{2})-(\d{2})$/,_o=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,So=/^(\d{4})-W(\d\d)$/,xo=/^(\d{4})-(\d\d)$/,Eo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,To={text:rr,date:sr("date",bo,ar(bo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":sr("datetimelocal",_o,ar(_o,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:sr("time",Eo,ar(Eo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:sr("week",So,or,"yyyy-Www"),month:sr("month",xo,ar(xo,["yyyy","MM"]),"yyyy-MM"),number:lr,url:ur,email:fr,radio:dr,checkbox:pr,hidden:m,button:m,submit:m,reset:m,file:m},Co=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(To[wr(a.type)]||To.text)(i,o,a,s[0],t,e,n,r)}}}}],ko=/^(true|false|\d+)$/,Ao=function(){return{restrict:"A",priority:100,compile:function(e,t){return ko.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},Do=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,r,i){e.$$addBindingInfo(r,i.ngBind),r=r[0],t.$watch(i.ngBind,function(e){r.textContent=e===n?"":e})}}}}],Io=["$interpolate","$compile",function(e,t){return{compile:function(r){return t.$$addBindingClass(r),function(r,i,o){var a=e(i.attr(o.$attr.ngBindTemplate));t.$$addBindingInfo(i,a.expressions),i=i[0],o.$observe("ngBindTemplate",function(e){i.textContent=e===n?"":e})}}}}],Mo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(e){return(e||"").toString()});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){r.html(e.getTrustedHtml(o(t))||"")})}}}}],Oo=g({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Lo=mr("",!0),Po=mr("Odd",0),No=mr("Even",1),Vo=Qn({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),Bo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ro={},zo={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=lt("ng-"+e);Ro[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};zo[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Ho=["$animate",function(e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,c,l;n.$watch(i.ngIf,function(n){n?c||a(function(n,o){c=o,n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),c&&(c.$destroy(),c=null),s&&(l=me(s.clone),e.leave(l).then(function(){l=null}),s=null))})}}}],Fo=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Pr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,c,l,u){var f,d,h,p=0,m=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).then(function(){d=null}),d=h,h=null)};r.$watch(o,function(o){var c=function(){!w(s)||s&&!r.$eval(s)||t()},d=++p;o?(e(o,!0).then(function(e){if(d===p){var t=r.$new();l.template=e;var s=u(t,function(e){m(),n.enter(e,null,i).then(c)});f=t,h=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){d===p&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),l.template=null)})}}}}],jo=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return/SVG/.test(r[0].toString())?(r.empty(),void e(Te(o.template,t).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],qo=Qn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Uo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var a=t.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,c=s?zr(a):a,l=function(e){if(!y(e)){var t=[];return e&&o(e.split(c),function(e){e&&t.push(s?zr(e):e)}),t}};i.$parsers.push(l),i.$formatters.push(function(e){return Br(e)?e.join(a):n}),i.$isEmpty=function(e){return!e||!e.length}}}},Go="ng-valid",Wo="ng-invalid",Yo="ng-pristine",Xo="ng-dirty",Ko="ng-untouched",Zo="ng-touched",Jo="ng-pending",Qo=new r("ngModel"),ea=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,a,s,c,l,u,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(e);var d,h=a(r.ngModel),p=h.assign,v=h,g=p,$=null,b=this;this.$$setOptions=function(e){if(b.$options=e,e&&e.getterSetter){var t=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");v=function(e){var n=h(e);return T(n)&&(n=t(e)),n},g=function(e,t){T(h(e))?n(e,{$$$p:b.$modelValue}):p(e,b.$modelValue)}}else if(!h.assign)throw Qo("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,J(i))},this.$render=m,this.$isEmpty=function(e){return y(e)||""===e||null===e||e!==e};var _=i.inheritedData("$formController")||fo,S=0;vr({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},parentForm:_,$animate:s}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,s.removeClass(i,Xo),s.addClass(i,Yo)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,s.removeClass(i,Yo),s.addClass(i,Xo),_.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,s.setClass(i,Ko,Zo)},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,s.setClass(i,Zo,Ko)},this.$rollbackViewValue=function(){c.cancel($),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var e=b.$$lastCommittedViewValue,t=b.$$rawModelValue,r=b.$valid,i=b.$modelValue,o=b.$options&&b.$options.allowInvalid;b.$$runValidators(t,e,function(e){o||r===e||(b.$modelValue=e?t:n,b.$modelValue!==i&&b.$$writeModelToScope())})}},this.$$runValidators=function(e,t,r){function i(){var e=b.$$parserName||"parse";return d!==n?(d||(o(b.$validators,function(e,t){c(t,null)}),o(b.$asyncValidators,function(e,t){c(t,null)})),c(e,d),d):(c(e,null),!0)}function a(){var n=!0;return o(b.$validators,function(r,i){var o=r(e,t);n=n&&o,c(i,o)}),!!n||(o(b.$asyncValidators,function(e,t){c(t,null)}),!1)}function s(){var r=[],i=!0;o(b.$asyncValidators,function(o,a){var s=o(e,t);if(!L(s))throw Qo("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s);c(a,n),r.push(s.then(function(){c(a,!0)},function(e){i=!1,c(a,!1)}))}),r.length?u.all(r).then(function(){l(i)},m):l(!0)}function c(e,t){f===S&&b.$setValidity(e,t)}function l(e){f===S&&r(e)}S++;var f=S;return i()&&a()?void s():void l(!1)},this.$commitViewValue=function(){var e=b.$viewValue;c.cancel($),(b.$$lastCommittedViewValue!==e||""===e&&b.$$hasNativeValidators)&&(b.$$lastCommittedViewValue=e,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){b.$modelValue!==a&&b.$$writeModelToScope()}var r=b.$$lastCommittedViewValue,i=r;if(d=!y(i)||n)for(var o=0;o<b.$parsers.length;o++)if(i=b.$parsers[o](i),y(i)){d=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=v(e));var a=b.$modelValue,s=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=i,s&&(b.$modelValue=i,t()),b.$$runValidators(i,b.$$lastCommittedViewValue,function(e){s||(b.$modelValue=e?i:n,t())})},this.$$writeModelToScope=function(){g(e,b.$modelValue),o(b.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){b.$viewValue=e,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=b.$options;i&&w(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[t])?r=n[t]:x(n["default"])&&(r=n["default"])),c.cancel($),r?$=c(function(){b.$commitViewValue()},r):l.$$phase?b.$commitViewValue():e.$apply(function(){b.$commitViewValue()})},e.$watch(function(){var t=v(e);if(t!==b.$modelValue&&(b.$modelValue===b.$modelValue||t===t)){b.$modelValue=b.$$rawModelValue=t,d=n;for(var r=b.$formatters,i=r.length,o=t;i--;)o=r[i](o);b.$viewValue!==o&&(b.$viewValue=b.$$lastCommittedViewValue=o,b.$render(),b.$$runValidators(t,o,m))}return t})}],ta=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ea,priority:1,compile:function(t){return t.addClass(Yo).addClass(Ko).addClass(Go),{pre:function(e,t,n,r){var i=r[0],o=r[1]||fo;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&o.$$renameControl(i,e)}),e.$on("$destroy",function(){o.$removeControl(i)})},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(n){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],na=/(\s+|^)default(\s+|$)/,ra=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var r=this;this.$options=z(e.$eval(t.ngModelOptions)),this.$options.updateOn!==n?(this.$options.updateOnDefault=!1,this.$options.updateOn=zr(this.$options.updateOn.replace(na,function(){return r.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},ia=Qn({terminal:!0,priority:1e3}),oa=r("ngOptions"),aa=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\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]+?))?$/,sa=["$compile","$parse",function(e,n){function r(e,t,r){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(aa);if(!s)throw oa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,J(t));var c=s[5]||s[7],l=s[6],u=/ as /.test(s[0])&&s[1],f=s[9],d=n(s[2]?s[1]:c),h=u&&n(u),p=h||d,m=f&&n(f),v=f?function(e,t){return m(r,t)}:function(e){return Ye(e)},g=function(e,t){return v(e,S(e,t))},$=n(s[2]||s[1]),y=n(s[3]||""),w=n(s[4]||""),b=n(s[8]),_={},S=l?function(e,t){return _[l]=t,_[c]=e,_}:function(e){return _[c]=e,_};return{trackBy:f,getTrackByValue:g,getWatchables:n(b,function(e){var t=[];e=e||[];for(var n=a(e),i=n.length,o=0;o<i;o++){var c=e===n?o:n[o],l=(e[c],S(e[c],c)),u=v(e[c],l);if(t.push(u),s[2]||s[1]){var f=$(r,l);t.push(f)}if(s[4]){var d=w(r,l);t.push(d)}}return t}),getOptions:function(){for(var e=[],t={},n=b(r)||[],i=a(n),s=i.length,c=0;c<s;c++){var l=n===i?c:i[c],u=n[l],d=S(u,l),h=p(r,d),m=v(h,d),_=$(r,d),x=y(r,d),E=w(r,d),T=new o(m,h,_,x,E);e.push(T),t[m]=T}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[g(e)]},getViewValueFromOption:function(e){return f?Pr.copy(e.viewValue):e.viewValue}}}}}var a=t.createElement("option"),s=t.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(t,n,i,c){function l(e,t){e.element=t,t.disabled=e.disabled,e.value!==t.value&&(t.value=e.selectValue),e.label!==t.label&&(t.label=e.label,t.textContent=e.label)}function u(e,t,n,r){var i;return t&&wr(t.nodeName)===n?i=t:(i=r.cloneNode(!1),t?e.insertBefore(i,t):e.appendChild(i)),i}function f(e){for(var t;e;)t=e.nextSibling,Fe(e),e=t}function d(e){var t=m&&m[0],n=_&&_[0];if(t||n)for(;e&&(e===t||e===n);)e=e.nextSibling;return e}function h(){var e=S&&v.readValue();S=x.getOptions();var t={},r=n[0].firstChild;if(b&&n.prepend(m),r=d(r),S.items.forEach(function(e){var i,o,c;e.group?(i=t[e.group],i||(o=u(n[0],r,"optgroup",s),r=o.nextSibling,o.label=e.group,i=t[e.group]={groupElement:o,currentOptionElement:o.firstChild}),c=u(i.groupElement,i.currentOptionElement,"option",a),l(e,c),i.currentOptionElement=c.nextSibling):(c=u(n[0],r,"option",a),l(e,c),r=c.nextSibling)}),Object.keys(t).forEach(function(e){f(t[e].currentOptionElement)}),f(r),p.$render(),!p.$isEmpty(e)){var i=v.readValue();(x.trackBy?F(e,i):e===i)||(p.$setViewValue(i),p.$render())}}var p=c[1];if(p){for(var m,v=c[0],g=i.multiple,$=0,y=n.children(),w=y.length;$<w;$++)if(""===y[$].value){m=y.eq($);break}var b=!!m,_=Tr(a.cloneNode(!1));_.val("?");var S,x=r(i.ngOptions,n,t),E=function(){b||n.prepend(m),n.val(""),m.prop("selected",!0),m.attr("selected",!0)},T=function(){b||m.remove()},C=function(){n.prepend(_),n.val("?"),_.prop("selected",!0),_.attr("selected",!0)},k=function(){_.remove()};g?(p.$isEmpty=function(e){return!e||0===e.length},v.writeValue=function(e){S.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=S.getOptionFromViewValue(e);t&&!t.disabled&&(t.element.selected=!0)})},v.readValue=function(){var e=n.val()||[],t=[];return o(e,function(e){var n=S.selectValueMap[e];n.disabled||t.push(S.getViewValueFromOption(n))}),t},x.trackBy&&t.$watchCollection(function(){if(Br(p.$viewValue))return p.$viewValue.map(function(e){return x.getTrackByValue(e)})},function(){p.$render()})):(v.writeValue=function(e){var t=S.getOptionFromViewValue(e);t&&!t.disabled?n[0].value!==t.selectValue&&(k(),T(),n[0].value=t.selectValue,t.element.selected=!0,t.element.setAttribute("selected","selected")):null===e||b?(k(),E()):(T(),C())},v.readValue=function(){var e=S.selectValueMap[n.val()];return e&&!e.disabled?(T(),k(),S.getViewValueFromOption(e)):null},x.trackBy&&t.$watch(function(){return x.getTrackByValue(p.$viewValue)},function(){p.$render()})),b?(m.remove(),e(m)(t),m.removeClass("ng-scope")):m=Tr(a.cloneNode(!1)),h(),t.$watchCollection(x.getWatchables,h)}}}}],ca=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,c){function l(e){s.text(e||"")}var u,f=c.count,d=c.$attr.when&&s.attr(c.$attr.when),h=c.offset||0,p=a.$eval(d)||{},v={},g=t.startSymbol(),$=t.endSymbol(),w=g+f+"-"+h+$,b=Pr.noop;o(c,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+wr(n[2]);p[r]=s.attr(c.$attr[t])}}),o(p,function(e,n){v[n]=t(e.replace(r,w))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r);if(i||r in p||(r=e.pluralCat(r-h)),r!==u&&!(i&&x(u)&&isNaN(u))){b();var o=v[r];y(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),b=m,l()):b=a.$watch(o,l),u=r}})}}}],la=["$parse","$animate",function(e,a){var s="$$NG_REMOVED",c=r("ngRepeat"),l=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))},u=function(e){return e.clone[0]},f=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,d){var h=d.ngRepeat,p=t.createComment(" end ngRepeat: "+h+" "),m=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw c("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var v=m[1],g=m[2],$=m[3],y=m[4];if(m=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!m)throw c("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var w=m[3]||m[1],b=m[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw c("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);var _,S,x,E,T={$id:Ye};return y?_=e(y):(x=function(e,t){return Ye(t)},E=function(e){return e}),function(e,t,r,d,m){_&&(S=function(t,n,r){return b&&(T[b]=t),T[w]=n,T.$index=r,_(e,T)});var v=ve();e.$watchCollection(g,function(r){var d,g,y,_,T,C,k,A,D,I,M,O,L=t[0],P=ve();if($&&(e[$]=r),i(r))D=r,A=S||x;else{A=S||E,D=[];for(var N in r)r.hasOwnProperty(N)&&"$"!==N.charAt(0)&&D.push(N)}for(_=D.length,M=new Array(_),d=0;d<_;d++)if(T=r===D?d:D[d],C=r[T],k=A(T,C,d),v[k])I=v[k],delete v[k],P[k]=I,M[d]=I;else{if(P[k])throw o(M,function(e){e&&e.scope&&(v[e.id]=e)}),c("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,k,C);M[d]={id:k,scope:n,clone:n},P[k]=!0}for(var V in v){if(I=v[V],O=me(I.clone),a.leave(O),O[0].parentNode)for(d=0,g=O.length;d<g;d++)O[d][s]=!0;I.scope.$destroy()}for(d=0;d<_;d++)if(T=r===D?d:D[d],C=r[T],I=M[d],I.scope){y=L;do y=y.nextSibling;while(y&&y[s]);u(I)!=y&&a.move(me(I.clone),null,Tr(L)),L=f(I),l(I.scope,d,w,C,b,T,_)}else m(function(e,t){I.scope=t;var n=p.cloneNode(!1);e[e.length++]=n,a.enter(e,null,Tr(L)),L=n,I.clone=e,P[I.id]=I,l(I.scope,d,w,C,b,T,_)});v=P})}}}}],ua="ng-hide",fa="ng-hide-animate",da=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,ua,{tempClasses:fa})})}}}],ha=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,ua,{tempClasses:fa})})}}}],pa=Qn(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),ma=["$animate",function(e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,c=[],l=[],u=[],f=[],d=function(e,t){return function(){e.splice(t,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=u.length;r<i;++r)e.cancel(u[r]);for(u.length=0,r=0,i=f.length;r<i;++r){var s=me(l[r].clone);f[r].$destroy();var h=u[r]=e.leave(s);h.then(d(u,r))}l.length=0,f.length=0,(c=a.cases["!"+n]||a.cases["?"])&&o(c,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],va=Qn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),ga=Qn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),$a=Qn({restrict:"EAC",link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",J(t));o(function(e){t.empty(),t.append(e)})}}),ya=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],wa={$setViewValue:m,$render:m},ba=["$element","$scope","$attrs",function(e,r,i){var o=this,a=new Xe;o.ngModelCtrl=wa,o.unknownOption=Tr(t.createElement("option")),o.renderUnknownOption=function(t){var n="? "+Ye(t)+" ?";o.unknownOption.val(n),e.prepend(o.unknownOption),e.val(n)},r.$on("$destroy",function(){o.renderUnknownOption=m}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),e.val()},o.writeValue=function(t){o.hasOption(t)?(o.removeUnknownOption(),e.val(t),""===t&&o.emptyOption.prop("selected",!0)):null==t&&o.emptyOption?(o.removeUnknownOption(),e.val("")):o.renderUnknownOption(t)},o.addOption=function(e,t){he(e,'"option value"'),""===e&&(o.emptyOption=t);var n=a.get(e)||0;a.put(e,n+1)},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.remove(e),""===e&&(o.emptyOption=n)):a.put(e,t-1))},o.hasOption=function(e){return!!a.get(e)}}],_a=function(){return{restrict:"E",require:["select","?ngModel"],controller:ba,link:function(e,t,n,r){var i=r[1];if(i){var a=r[0];if(a.ngModelCtrl=i,i.$render=function(){a.writeValue(i.$viewValue)},t.on("change",function(){e.$apply(function(){i.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[];return o(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Xe(e);o(t.find("option"),function(e){e.selected=w(n.get(e.value))})};var s,c=NaN;e.$watch(function(){c!==i.$viewValue||F(s,i.$viewValue)||(s=H(i.$viewValue),i.$render()),c=i.$viewValue}),i.$isEmpty=function(e){return!e||0===e.length}}}}}},Sa=["$interpolate",function(e){function t(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}return{restrict:"E",priority:100,compile:function(n,r){if(y(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.ngModelCtrl&&(i?e.$watch(i,function(e,i){r.$set("value",e),i!==e&&s.removeOption(i),s.addOption(e,n),s.ngModelCtrl.$render(),t(n)}):(s.addOption(r.value,n),s.ngModelCtrl.$render(),t(n)),n.on("$destroy",function(){s.removeOption(r.value),s.ngModelCtrl.$render()}))}}}}],xa=g({restrict:"E",terminal:!1}),Ea=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Ta=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",function(e){if(S(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,J(t));a=e||n,o.$validate()}),o.$validators.pattern=function(e){return o.$isEmpty(e)||y(a)||a.test(e)}}}}},Ca=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=h(e);i=isNaN(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},ka=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=h(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};return e.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ue(),we(Pr),void Tr(t).ready(function(){oe(t,ae)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document.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:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),/*!
 * ionic.bundle.js is a concatenation of:
 * ionic.js, angular.js, angular-animate.js,
 * angular-sanitize.js, angular-ui-router.js,
 * and ionic-angular.js
 */
/**
 * @license AngularJS v1.4.3
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(e,t,n){"use strict";function r(e,t,n){if(!e)throw ngMinErr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function i(e,t){return e||t?e?t?(B(e)&&(e=e.join(" ")),B(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function o(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function a(e,t,n){var r="";return e=B(e)?e:e&&R(e)&&e.length?e.split(/\s+/):[],V(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function s(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function c(e){if(e instanceof N)switch(e.length){case 0:return[];case 1:if(e[0].nodeType===U)return e;break;default:return N(l(e))}if(e.nodeType===U)return N(e)}function l(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType==U)return n}}function u(e,t,n){V(t,function(t){e.addClass(t,n)})}function f(e,t,n){V(t,function(t){e.removeClass(t,n)})}function d(e){return function(t,n){n.addClass&&(u(e,t,n.addClass),n.addClass=null),n.removeClass&&(f(e,t,n.removeClass),n.removeClass=null)}}function h(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||L;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=L},e.$$prepared=!0}return e}function p(e,t){m(e,t),v(e,t)}function m(e,t){t.from&&(e.css(t.from),t.from=null)}function v(e,t){t.to&&(e.css(t.to),t.to=null)}function g(e,t,n){var r=(t.addClass||"")+" "+(n.addClass||""),i=(t.removeClass||"")+" "+(n.removeClass||""),o=$(e.attr("class"),r,i);return P(t,n),o.addClass?t.addClass=o.addClass:t.addClass=null,o.removeClass?t.removeClass=o.removeClass:t.removeClass=null,t}function $(e,t,n){function r(e){R(e)&&(e=e.split(" "));var t={};return V(e,function(e){e.length&&(t[e]=!0)}),t}var i=1,o=-1,a={};e=r(e),t=r(t),V(t,function(e,t){a[t]=i}),n=r(n),V(n,function(e,t){a[t]=a[t]===i?null:o});var s={addClass:"",removeClass:""};return V(a,function(t,n){var r,a;t===i?(r="addClass",a=!e[n]):t===o&&(r="removeClass",a=e[n]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function y(e){return e instanceof t.element?e[0]:e}function w(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return V(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=b(n)),0===n&&(n=null),r[t]=n}}),r}function b(e){var t=0,n=e.split(/\s*,\s*/);return V(n,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function _(e){return 0===e||null!=e}function S(e,t){var n=D,r=e+"s";return t?n+=Z:r+=" linear all",[n,r]}function x(e){return[ce,e+"s"]}function E(e,t){var n=t?se:le;return[n,e+"s"]}function T(e,t){var n=t?"-"+t+"s":"";return k(e,[le,n]),[le,n]}function C(e,t){var n=t?"paused":"",r=M+ne;return k(e,[r,n]),[r,n]}function k(e,t){var n=t[0],r=t[1];e.style[n]=r}function A(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}var D,I,M,O,L=t.noop,P=t.extend,N=t.element,V=t.forEach,B=t.isArray,R=t.isString,z=t.isObject,H=t.isUndefined,F=t.isDefined,j=t.isFunction,q=t.isElement,U=1,G="ng-animate",W="$$ngAnimateChildren",Y=["$$rAF",function(e){function t(e){o.push([].concat(e)),n()}function n(){if(o.length){for(var t=[],a=0;a<o.length;a++){var s=o[a];r(s),s.length&&t.push(s)}o=t,i||e(function(){i||n()})}}function r(e){var t=e.shift();t()}var i,o=[];return t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],X=[function(){return function(e,n,r){var i=r.ngAnimateChildren;t.isString(i)&&0===i.length?n.data(W,!0):r.$observe("ngAnimateChildren",function(e){e="on"===e||"true"===e,n.data(W,e)})}}],K="";e.ontransitionend===n&&e.onwebkittransitionend!==n?(K="-webkit-",D="WebkitTransition",I="webkitTransitionEnd transitionend"):(D="transition",I="transitionend"),e.onanimationend===n&&e.onwebkitanimationend!==n?(K="-webkit-",M="WebkitAnimation",O="webkitAnimationEnd animationend"):(M="animation",O="animationend");var Z="Duration",J="Property",Q="Delay",ee="TimingFunction",te="IterationCount",ne="PlayState",re=3,ie=1.5,oe=1e3,ae=9999,se=M+Q,ce=M+Z,le=D+Q,ue=D+Z,fe={transitionDuration:ue,transitionDelay:le,transitionProperty:D+J,animationDuration:ce,animationDelay:se,animationIterationCount:M+te},de={transitionDuration:ue,transitionDelay:le,animationDuration:ce,animationDelay:se},he=["$animateProvider",function(e){var t=A(),n=A();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$document","$sniffer","$$rAFScheduler",function(e,r,i,c,l,u,f){function g(e,t){var n="$$ngAnimateParentKey",r=e.parentNode,i=r[n]||(r[n]=++R);return i+"-"+e.getAttribute("class")+"-"+t}function $(n,r,i,o){var a=t.get(i);return a||(a=w(e,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),t.put(i,a),a}function b(i,o,s,c){var l;if(t.count(s)>0&&(l=n.get(s),!l)){var u=a(o,"-stagger");r.addClass(i,u),l=w(e,i,c),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,u),n.put(s,l)}return l||{}}function A(e){H.push(e),f.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=z.offsetWidth+1,r=0;r<H.length;r++)H[r](e);H.length=0})}function L(e,t,n){var r=$(e,t,n,fe),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}function P(e,n){function l(){d()}function f(){d(!0)}function d(t){z||F&&H||(z=!0,H=!1,r.removeClass(e,ce),r.removeClass(e,ue),C(R,!1),T(R,!1),V(X,function(e){R.style[e[0]]=""}),N(e,n),p(e,n),n.onDone&&n.onDone(),j&&j.complete(!t))}function $(e){Ee.blockTransition&&T(R,e),Ee.blockKeyframeAnimation&&C(R,!!e)}function w(){return j=new i({end:l,cancel:f}),d(),{$$willAnimate:!1,start:function(){return j},end:l}}function P(){function t(){if(!z){if($(!1),V(X,function(e){var t=e[0],n=e[1];R.style[t]=n}),N(e,n),r.addClass(e,ue),Ee.recalculateTimingStyles){if(le=R.className+" "+ce,pe=g(R,le),Se=L(R,le,pe),xe=Se.maxDelay,U=Math.max(xe,0),W=Se.maxDuration,0===W)return void d();Ee.hasTransitions=Se.transitionDuration>0,Ee.hasAnimations=Se.animationDuration>0}if(Ee.applyTransitionDelay||Ee.applyAnimationDelay){xe="boolean"!=typeof n.delay&&_(n.delay)?parseFloat(n.delay):xe,U=Math.max(xe,0);var t;Ee.applyTransitionDelay&&(Se.transitionDelay=xe,t=E(xe),X.push(t),R.style[t[0]]=t[1]),Ee.applyAnimationDelay&&(Se.animationDelay=xe,t=E(xe,!0),X.push(t),R.style[t[0]]=t[1])}if(G=U*oe,Y=W*oe,n.easing){var s,u=n.easing;Ee.hasTransitions&&(s=D+ee,X.push([s,u]),R.style[s]=u),Ee.hasAnimations&&(s=M+ee,X.push([s,u]),R.style[s]=u)}Se.transitionDuration&&l.push(I),Se.animationDuration&&l.push(O),a=Date.now(),e.on(l.join(" "),o),c(i,G+ie*Y),v(e,n)}}function i(){d()}function o(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||t.timeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(re));Math.max(n-a,0)>=G&&r>=W&&(F=!0,d())}if(!z){if(!R.parentNode)return void d();var a,l=[],u=function(e){if(F)H&&e&&(H=!1,d());else if(H=!e,Se.animationDuration){var t=C(R,H);H?X.push(t):s(X,t)}},f=be>0&&(Se.transitionDuration&&0===me.transitionDuration||Se.animationDuration&&0===me.animationDuration)&&Math.max(me.animationDelay,me.transitionDelay);f?c(t,Math.floor(f*be*oe),!1):t(),q.resume=function(){u(!0)},q.pause=function(){u(!1)}}}var R=y(e);if(!R||!R.parentNode)return w();n=h(n);var z,H,F,j,q,U,G,W,Y,X=[],K=e.attr("class"),Z=o(n);if(0===n.duration||!u.animations&&!u.transitions)return w();var Q=n.event&&B(n.event)?n.event.join(" "):n.event,te=Q&&n.structural,ne="",se="";te?ne=a(Q,"ng-",!0):Q&&(ne=Q),n.addClass&&(se+=a(n.addClass,"-add")),n.removeClass&&(se.length&&(se+=" "),se+=a(n.removeClass,"-remove")),n.applyClassesEarly&&se.length&&(N(e,n),se="");var ce=[ne,se].join(" ").trim(),le=K+" "+ce,ue=a(ce,"-active"),fe=Z.to&&Object.keys(Z.to).length>0,he=(n.keyframeStyle||"").length>0;if(!he&&!fe&&!ce)return w();var pe,me;if(n.stagger>0){var ve=parseFloat(n.stagger);me={transitionDelay:ve,animationDelay:ve,transitionDuration:0,animationDuration:0}}else pe=g(R,le),me=b(R,ce,pe,de);r.addClass(e,ce);var ge;if(n.transitionStyle){var $e=[D,n.transitionStyle];k(R,$e),X.push($e)}if(n.duration>=0){ge=R.style[D].length>0;var ye=S(n.duration,ge);k(R,ye),X.push(ye)}if(n.keyframeStyle){var we=[M,n.keyframeStyle];k(R,we),X.push(we)}var be=me?n.staggerIndex>=0?n.staggerIndex:t.count(pe):0,_e=0===be;_e&&T(R,ae);var Se=L(R,le,pe),xe=Se.maxDelay;U=Math.max(xe,0),W=Se.maxDuration;var Ee={};return Ee.hasTransitions=Se.transitionDuration>0,Ee.hasAnimations=Se.animationDuration>0,Ee.hasTransitionAll=Ee.hasTransitions&&"all"==Se.transitionProperty,Ee.applyTransitionDuration=fe&&(Ee.hasTransitions&&!Ee.hasTransitionAll||Ee.hasAnimations&&!Ee.hasTransitions),Ee.applyAnimationDuration=n.duration&&Ee.hasAnimations,Ee.applyTransitionDelay=_(n.delay)&&(Ee.applyTransitionDuration||Ee.hasTransitions),Ee.applyAnimationDelay=_(n.delay)&&Ee.hasAnimations,Ee.recalculateTimingStyles=se.length>0,(Ee.applyTransitionDuration||Ee.applyAnimationDuration)&&(W=n.duration?parseFloat(n.duration):W,Ee.applyTransitionDuration&&(Ee.hasTransitions=!0,Se.transitionDuration=W,ge=R.style[D+J].length>0,X.push(S(W,ge))),Ee.applyAnimationDuration&&(Ee.hasAnimations=!0,Se.animationDuration=W,X.push(x(W)))),0!==W||Ee.recalculateTimingStyles?(null==n.duration&&Se.transitionDuration>0&&(Ee.recalculateTimingStyles=Ee.recalculateTimingStyles||_e),G=U*oe,Y=W*oe,n.skipBlocking||(Ee.blockTransition=Se.transitionDuration>0,Ee.blockKeyframeAnimation=Se.animationDuration>0&&me.animationDelay>0&&0===me.animationDuration),m(e,n),Ee.blockTransition||T(R,!1),$(W),{$$willAnimate:!0,end:l,start:function(){if(!z)return q={end:l,cancel:f,resume:null,pause:null},j=new i(q),A(P),j}}):w()}var N=d(r),R=0,z=y(l).body,H=[];return P}]}],pe=["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver");var t="ng-animate-shim",n="ng-anchor",r="ng-anchor-out",i="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document","$sniffer",function(e,o,a,s,c,l){function u(e){return e.replace(/\bng-\S+\b/g,"")}function f(e,t){return R(e)&&(e=e.split(" ")),R(t)&&(t=t.split(" ")),e.filter(function(e){return t.indexOf(e)===-1}).join(" ")}function d(o,s,c){function l(e){var t={},n=y(e).getBoundingClientRect();return V(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=m.scrollTop;break;case"left":r+=m.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function d(){var t=e($,{addClass:r,delay:!0,from:l(s)});return t.$$willAnimate?t:null}function h(e){return e.attr("class")||""}function p(){var t=u(h(c)),n=f(t,w),o=f(w,t),a=e($,{to:l(c),addClass:i+" "+n,removeClass:r+" "+o,delay:!0});return a.$$willAnimate?a:null}function v(){$.remove(),s.removeClass(t),c.removeClass(t)}var $=N(y(s).cloneNode(!0)),w=u(h($));s.addClass(t),c.addClass(t),$.addClass(n),g.append($);var b,_=d();if(!_&&(b=p(),!b))return v();var S=_||b;return{start:function(){function e(){n&&n.end()}var t,n=S.start();return n.done(function(){return n=null,!b&&(b=p())?(n=b.start(),n.done(function(){n=null,v(),t.complete()}),n):(v(),void t.complete())}),t=new a({end:e,cancel:e})}}}function h(e,t,n,r){var i=p(e),o=p(t),s=[];if(V(r,function(e){var t=e.out,r=e["in"],i=d(n,t,r);i&&s.push(i)}),i||o||0!==s.length)return{start:function(){function e(){V(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),V(s,function(e){t.push(e.start())});var n=new a({end:e,cancel:e});return a.all(t,function(e){n.complete(e)}),n}}}function p(t){var n=t.element,r=t.options||{};t.structural?(r.structural=r.applyClassesEarly=!0,r.event=t.event,"leave"===r.event&&(r.onDone=r.domOperation)):r.event=null;var i=e(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return L;var m=y(c).body,v=y(s),g=N(m.parentNode===v?m:v);return function(e){return e.from&&e.to?h(e.from,e.to,e.classes,e.anchors):p(e)}}]}],me=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$rAFMutex","$$jqLite",function(t,n,r,i){function o(n){n=B(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!i[a]&&(r.push(t.get(s)),i[a]=!0)}return r}var a=d(i);return function(e,t,r,i){function s(){i.domOperation(),a(e,i)}function c(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,m,v,o];break;case"addClass":a=[t,m,o];break;case"removeClass":a=[t,v,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(j(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(j(s))return s;return L}function l(e,t,r,i,o){var a=[];return V(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,l=function(e){a||(a=!0,(o||L)(e),i.complete(!e))};return i=new n({end:function(){l()},cancel:function(){l(!0)}}),o=c(s,e,t,r,function(e){var t=e===!1;l(t)}),i})}),a}function u(e,t,r,i,o){var a=l(e,t,r,i,o);if(0===a.length){var s,c;"beforeSetClass"===o?(s=l(e,"removeClass",r,i,"beforeRemoveClass"),c=l(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=l(e,"removeClass",r,i,"removeClass"),c=l(e,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),c&&(a=a.concat(c))}if(0!==a.length)return function(e){var t=[];return a.length&&V(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){V(t,function(t){e?t.cancel():t.end()})}}}3===arguments.length&&z(r)&&(i=r,r=null),i=h(i),r||(r=e.attr("class")||"",i.addClass&&(r+=" "+i.addClass),i.removeClass&&(r+=" "+i.removeClass));var f,d,m=i.addClass,v=i.removeClass,g=o(r);if(g.length){var $,y;"leave"==t?(y="leave",$="afterLeave"):(y="before"+t.charAt(0).toUpperCase()+t.substr(1),$=t),"enter"!==t&&"move"!==t&&(f=u(e,t,i,g,y)),d=u(e,t,i,g,$)}if(f||d)return{start:function(){function t(t){c=!0,s(),p(e,i),l.complete(t)}function r(e){c||((o||L)(e),t(e))}var o,a=[];f&&a.push(function(e){o=f(e)}),a.length?a.push(function(e){s(),e(!0)}):s(),d&&a.push(function(e){o=d(e)});var c=!1,l=new n({end:function(){r()},cancel:function(){r(!0)}});return n.chain(a,t),l}}}}]}],ve=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){V(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),t.all(o,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],ge="data-ng-animate",$e="$ngAnimatePin",ye=["$animateProvider",function(e){function t(e,t,n,r){return a[e].some(function(e){return e(t,n,r)})}function n(e,t){e=e||{};var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var i=1,o=2,a=this.rules={skip:[],cancel:[],join:[]};a.join.push(function(e,t,r){return!t.structural&&n(t.options)}),a.skip.push(function(e,t,r){return!t.structural&&!n(t.options)}),a.skip.push(function(e,t,n){return"leave"==n.event&&t.structural}),a.skip.push(function(e,t,n){return n.structural&&!t.structural}),a.cancel.push(function(e,t,n){return n.structural&&t.structural}),a.cancel.push(function(e,t,n){return n.state===o&&t.structural}),a.cancel.push(function(e,t,n){var r=t.options,i=n.options;return r.addClass&&r.addClass===i.removeClass||r.removeClass&&r.removeClass===i.addClass}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite",function(a,s,u,f,m,v,$,w,b){function _(e,t){return g(e,t,{})}function S(e,t){var n=y(e),r=[],i=G[t];return i&&V(i,function(e){e.node.contains(n)&&r.push(e.callback)}),r}function x(e,t,n,r){a(function(){V(S(t,e),function(e){e(t,n,r)})})}function E(e,r,a){function l(t,n,r,i){x(n,e,r,i),t.progress(n,r,i)}function u(t){K(e,a),p(e,a),a.domOperation(),m.complete(!t)}var f,d;e=c(e),e&&(f=y(e),d=e.parent()),a=h(a);var m=new $;if(!f)return u(),m;B(a.addClass)&&(a.addClass=a.addClass.join(" ")),B(a.removeClass)&&(a.removeClass=a.removeClass.join(" ")),a.from&&!z(a.from)&&(a.from=null),a.to&&!z(a.to)&&(a.to=null);var w=[f.className,a.addClass,a.removeClass].join(" ");if(!X(w))return u(),m;var b=["enter","move","leave"].indexOf(r)>=0,S=!L||O.get(f),E=!S&&M.get(f)||{},k=!!E.state;if(S||k&&E.state==i||(S=!D(e,d,r)),S)return u(),m;b&&T(e);var P={structural:b,element:e,event:r,close:u,options:a,runner:m};if(k){var N=t("skip",e,P,E);if(N)return E.state===o?(u(),m):(g(e,E.options,a),E.runner);var V=t("cancel",e,P,E);if(V)E.state===o?E.runner.end():E.structural?E.close():g(e,P.options,E.options);else{var R=t("join",e,P,E);if(R){if(E.state!==o)return r=P.event=E.event,a=g(e,E.options,P.options),m;_(e,a)}}}else _(e,a);var H=P.structural;if(H||(H="animate"===P.event&&Object.keys(P.options.to||{}).length>0||n(P.options)),!H)return u(),C(e),m;b&&A(d);var F=(E.counter||0)+1;return P.counter=F,I(e,i,P),s.$$postDigest(function(){var t=M.get(f),i=!t;t=t||{};var s=e.parent()||[],c=s.length>0&&("animate"===t.event||t.structural||n(t.options));if(i||t.counter!==F||!c)return i&&(K(e,a),p(e,a)),(i||b&&t.event!==r)&&(a.domOperation(),m.end()),void(c||C(e));r=!t.structural&&n(t.options,!0)?"setClass":t.event,t.structural&&A(s),I(e,o);var d=v(e,r,t.options);d.done(function(t){u(!t);var n=M.get(f);n&&n.counter===F&&C(y(e)),l(m,r,"close",{})}),m.setHost(d),l(m,r,"start",{})}),m}function T(e){var t=y(e),n=t.querySelectorAll("["+ge+"]");V(n,function(e){var t=parseInt(e.getAttribute(ge)),n=M.get(e);switch(t){case o:n.runner.end();case i:n&&M.remove(e)}})}function C(e){var t=y(e);t.removeAttribute(ge),M.remove(t)}function k(e,t){return y(e)===y(t)}function A(e){function t(e,t){!t.structural&&n(t.options)&&(t.state===o&&t.runner.end(),C(e))}for(var r=y(e);;){if(!r||r.nodeType!==U)break;var i=M.get(r);i&&t(r,i),r=r.parentNode}}function D(e,t,n){var r,i=!1,o=!1,a=!1,s=e.data($e);for(s&&(t=s);t&&t.length;){o||(o=k(t,u));var c=t[0];if(c.nodeType!==U)break;var l=M.get(c)||{};if(a||(a=l.structural||O.get(c)),H(r)||r===!0){var f=t.data(W);F(f)&&(r=f)}if(a&&r===!1)break;o||(o=k(t,u),o||(s=t.data($e),s&&(t=s))),i||(i=k(t,j)),t=t.parent()}var d=!a||r;return d&&o&&i}function I(e,t,n){n=n||{},n.state=t;var r=y(e);r.setAttribute(ge,t);var i=M.get(r),o=i?P(i,n):n;M.put(r,o)}var M=new m,O=new m,L=null,R=s.$watch(function(){return 0===w.totalPendingRequests},function(e){e&&(R(),s.$$postDigest(function(){s.$$postDigest(function(){null===L&&(L=!0)})}))}),j=N(f[0].body),G={},Y=e.classNameFilter(),X=Y?function(e){return Y.test(e)}:function(){return!0},K=d(b);return{on:function(e,t,n){var r=l(t);G[e]=G[e]||[],G[e].push({node:r,callback:n})},off:function(e,t,n){function r(e,t,n){var r=l(t);return e.filter(function(e){var t=e.node===r&&(!n||e.callback===n);return!t})}var i=G[e];i&&(G[e]=1===arguments.length?null:r(i,t,n))},pin:function(e,t){r(q(e),"element","not an element"),r(q(t),"parentElement","not an element"),e.data($e,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,E(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!L;else{var r=q(e);if(r){var i=y(e),o=O.get(i);1===n?t=!o:(t=!!t,t?o&&O.remove(i):O.put(i,!0))}else t=L=!!e}return t}}}]}],we=["$$rAF",function(e){return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],be=["$q","$$rAFMutex",function(e,t){function n(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=t(),this._state=0}var r=0,i=1,o=2;return n.chain=function(e,t){function n(){return r===e.length?void t(!0):void e[r](function(e){return e===!1?void t(!1):(r++,void n())})}var r=0;n()},n.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;V(e,function(e){e.done(n)})},n.prototype={setHost:function(e){this.host=e||{}},done:function(e){this._state===o?e():this._doneCallbacks.push(e)},progress:L,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise()["finally"](e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;t._state===r&&(t._state=i,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(e){this._state!==o&&(V(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=o)}},n}],_e=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function r(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$rAFScheduler",function(e,s,c,l,u){var f=[],m=d(e),v=0,g=0,$=[];return function(d,w,b){function _(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),r=[];return V(n,function(e){var t=e.getAttribute(o);t&&t.length&&r.push(e)}),r}function S(e){var t=[],n={};V(e,function(e,r){var i=e.element,a=y(i),s=e.event,c=["enter","move"].indexOf(s)>=0,l=e.structural?_(a):[];if(l.length){var u=c?"to":"from";V(l,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][u]={animationID:r,element:N(e)}})}else t.push(e)});var r={},i={};return V(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var c=a?a.animationID:s.animationID,l=c.toString();return void(r[l]||(r[l]=!0,t.push(e[c])))}var u=e[a.animationID],f=e[s.animationID],d=a.animationID.toString();if(!i[d]){var h=i[d]={structural:!0,beforeStart:function(){u.beforeStart(),f.beforeStart()},close:function(){u.close(),f.close()},classes:x(u.classes,f.classes),from:u,to:f,anchors:[]};h.classes.length?t.push(h):(t.push(u),t.push(f))}i[d].anchors.push({out:a.element,"in":s.element})}),t}function x(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function E(e){for(var t=a.length-1;t>=0;t--){var n=a[t];if(c.has(n)){var r=c.get(n),i=r(e);if(i)return i}}}function T(){d.addClass(G),O&&e.addClass(d,O)}function C(e,t){function n(e){r(e).setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function k(){var e=r(d);!e||"leave"===w&&b.$$domOperationFired||e.end()}function A(t){d.off("$destroy",k),n(d),m(d,b),p(d,b),b.domOperation(),O&&e.removeClass(d,O),d.removeClass(G),I.complete(!t)}b=h(b);var D=["enter","move","leave"].indexOf(w)>=0,I=new l({end:function(){A()},cancel:function(){A(!0)}});if(!a.length)return A(),I;t(d,I);var M=i(d.attr("class"),i(b.addClass,b.removeClass)),O=b.tempClasses;O&&(M+=" "+O,b.tempClasses=null);var L;return D||(L=v,v+=1),f.push({element:d,classes:M,event:w,classBasedIndex:L,structural:D,options:b,beforeStart:T,close:A}),d.on("$destroy",k),f.length>1?I:(s.$$postDigest(function(){g=v,v=0,$.length=0;var e=[];V(f,function(t){r(t.element)&&e.push(t)}),f.length=0,V(S(e),function(e){function t(){e.beforeStart();var t,n=e.close,i=e.anchors?e.from.element||e.to.element:e.element;if(r(i)&&y(i).parentNode){var o=E(e);o&&(t=o.start)}if(t){var a=t();a.done(function(e){n(!e)}),C(e,a)}else n()}e.structural?t():($.push({node:y(e.element),fn:t}),e.classBasedIndex===g-1&&($=$.sort(function(e,t){return t.node.contains(e.node)}).map(function(e){return e.fn}),u($)))})}),I)}}]}];t.module("ngAnimate",[]).directive("ngAnimateChildren",X).factory("$$rAFMutex",we).factory("$$rAFScheduler",Y).factory("$$AnimateRunner",be).provider("$$animateQueue",ye).provider("$$animation",_e).provider("$animateCss",he).provider("$$animateCssDriver",pe).provider("$$animateJs",me).provider("$$animateJsDriver",ve)}(window,window.angular),/*!
 * ionic.bundle.js is a concatenation of:
 * ionic.js, angular.js, angular-animate.js,
 * angular-sanitize.js, angular-ui-router.js,
 * and ionic-angular.js
 */
/**
 * @license AngularJS v1.4.3
 * (c) 2010-2015 Google, Inc. http://angularjs.org
 * License: MIT
 */
function(e,t,n){"use strict";function r(){this.$get=["$$sanitizeUri",function(e){return function(t){var n=[];return a(t,l(n,function(t,n){return!/^unsafe/.test(e(t,n))})),n.join("")}}]}function i(e){var n=[],r=l(n,t.noop);return r.chars(e),n.join("")}function o(e,n){var r,i={},o=e.split(",");for(r=0;r<o.length;r++)i[n?t.lowercase(o[r]):o[r]]=!0;return i}function a(e,n){function r(e,r,o,a){if(r=t.lowercase(r),E[r])for(;y.last()&&T[y.last()];)i("",y.last());x[r]&&y.last()==r&&i("",r),a=b[r]||!!a,a||y.push(r);var c={};o.replace(h,function(e,t,n,r,i){var o=n||r||i||"";c[t]=s(o)}),n.start&&n.start(r,c,a)}function i(e,r){var i,o=0;if(r=t.lowercase(r))for(o=y.length-1;o>=0&&y[o]!=r;o--);if(o>=0){for(i=y.length-1;i>=o;i--)n.end&&n.end(y[i]);y.length=o}}"string"!=typeof e&&(e=null===e||"undefined"==typeof e?"":""+e);var o,a,c,l,y=[],w=e;for(y.last=function(){return y[y.length-1]};e;){if(l="",a=!0,y.last()&&k[y.last()]?(e=e.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+y.last()+"[^>]*>","i"),function(e,t){return t=t.replace(v,"$1").replace($,"$1"),n.chars&&n.chars(s(t)),""}),i("",y.last())):(0===e.indexOf("<!--")?(o=e.indexOf("--",4),o>=0&&e.lastIndexOf("-->",o)===o&&(n.comment&&n.comment(e.substring(4,o)),e=e.substring(o+3),a=!1)):g.test(e)?(c=e.match(g),c&&(e=e.replace(c[0],""),a=!1)):m.test(e)?(c=e.match(d),c&&(e=e.substring(c[0].length),c[0].replace(d,i),a=!1)):p.test(e)&&(c=e.match(f),c?(c[4]&&(e=e.substring(c[0].length),c[0].replace(f,r)),a=!1):(l+="<",e=e.substring(1))),a&&(o=e.indexOf("<"),l+=o<0?e:e.substring(0,o),e=o<0?"":e.substring(o),n.chars&&n.chars(s(l)))),e==w)throw u("badparse","The sanitizer was unable to parse the following block of html: {0}",e);w=e}i()}function s(e){return e?(L.innerHTML=e.replace(/</g,"&lt;"),L.textContent):""}function c(e){return e.replace(/&/g,"&amp;").replace(y,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(n-56320)+65536)+";"}).replace(w,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,o,a){e=t.lowercase(e),!r&&k[e]&&(r=e),r||A[e]!==!0||(i("<"),i(e),t.forEach(o,function(r,o){var a=t.lowercase(o),s="img"===e&&"src"===a||"background"===a;O[a]!==!0||D[a]===!0&&!n(r,s)||(i(" "),i(o),i('="'),i(c(r)),i('"'))}),i(a?"/>":">"))},end:function(e){e=t.lowercase(e),r||A[e]!==!0||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(c(e))}}}var u=t.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,d=/^<\/\s*([\w:-]+)[^>]*>/,h=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,p=/^</,m=/^<\//,v=/<!--(.*?)-->/g,g=/<!DOCTYPE([^>]*?)>/i,$=/<!\[CDATA\[(.*?)]]>/g,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,w=/([^\#-~| |!])/g,b=o("area,br,col,hr,img,wbr"),_=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),S=o("rp,rt"),x=t.extend({},S,_),E=t.extend({},_,o("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")),T=t.extend({},S,o("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")),C=o("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),k=o("script,style"),A=t.extend({},b,E,T,x,C),D=o("background,cite,href,longdesc,src,usemap,xlink:href"),I=o("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,tabindex,target,title,type,valign,value,vspace,width"),M=o("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),O=t.extend({},D,M,I),L=document.createElement("pre");t.module("ngSanitize",[]).provider("$sanitize",r),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"”’]/i,r=/^mailto:/i;return function(o,a){function s(e){e&&h.push(i(e))}function c(e,n){h.push("<a "),t.isDefined(a)&&h.push('target="',a,'" '),h.push('href="',e.replace(/"/g,"&quot;"),'">'),s(n),h.push("</a>")}if(!o)return o;for(var l,u,f,d=o,h=[];l=d.match(n);)u=l[0],l[2]||l[4]||(u=(l[3]?"http://":"mailto:")+u),f=l.index,s(d.substr(0,f)),c(u,l[0].replace(r,"")),d=d.substring(f+l[0].length);return s(d),e(h.join(""))}}])}(window,window.angular),/*!
 * ionic.bundle.js is a concatenation of:
 * ionic.js, angular.js, angular-animate.js,
 * angular-sanitize.js, angular-ui-router.js,
 * and ionic-angular.js
 */
/**
 * State-based routing for AngularJS
 * @version v0.2.13
 * @link http://angular-ui.github.com/
 * @license MIT License, http://www.opensource.org/licenses/MIT
 */
"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(e,t,n){"use strict";function r(e,t){return B(new(B(function(){},{prototype:e})),t)}function i(e){return V(arguments,function(t){t!==e&&V(t,function(t,n){e.hasOwnProperty(n)||(e[n]=t)})}),e}function o(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 a(e){if(Object.keys)return Object.keys(e);var n=[];return t.forEach(e,function(e,t){n.push(t)}),n}function s(e,t){if(Array.prototype.indexOf)return e.indexOf(t,Number(arguments[2])||0);var n=e.length>>>0,r=Number(arguments[2])||0;for(r=r<0?Math.ceil(r):Math.floor(r),r<0&&(r+=n);r<n;r++)if(r in e&&e[r]===t)return r;return-1}function c(e,t,n,r){var i,c=o(n,r),l={},u=[];for(var f in c)if(c[f].params&&(i=a(c[f].params),i.length))for(var d in i)s(u,i[d])>=0||(u.push(i[d]),l[i[d]]=e[i[d]]);return B({},l,t)}function l(e,t,n){if(!n){n=[];for(var r in e)n.push(r)}for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!=t[o])return!1}return!0}function u(e,t){var n={};return V(e,function(e){n[e]=t[e]}),n}function f(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in e)s(n,r)==-1&&(t[r]=e[r]);return t}function d(e,t){var n=N(e),r=n?[]:{};return V(e,function(e,i){t(e,i)&&(r[n?r.length:i]=e)}),r}function h(e,t){var n=N(e)?[]:{};return V(e,function(e,r){n[r]=t(e,r)}),n}function p(e,t){var r=1,o=2,c={},l=[],u=c,d=B(e.when(c),{$$promises:c,$$values:c});this.study=function(c){function h(e,n){if($[n]!==o){if(g.push(n),$[n]===r)throw g.splice(0,s(g,n)),new Error("Cyclic dependency: "+g.join(" -> "));if($[n]=r,L(e))v.push(n,[function(){return t.get(e)}],l);else{var i=t.annotate(e);V(i,function(e){e!==n&&c.hasOwnProperty(e)&&h(c[e],e)}),v.push(n,e,i)}g.pop(),$[n]=o}}function p(e){return P(e)&&e.then&&e.$$promises}if(!P(c))throw new Error("'invocables' must be an object");var m=a(c||{}),v=[],g=[],$={};return V(c,h),c=g=$=null,function(r,o,a){function s(){--w||(b||i(y,o.$$values),g.$$values=y,g.$$promises=g.$$promises||!0,delete g.$$inheritedValues,h.resolve(y))}function c(e){g.$$failure=e,h.reject(e)}function l(n,i,o){function l(e){f.reject(e),c(e)}function u(){if(!M(g.$$failure))try{f.resolve(t.invoke(i,a,y)),f.promise.then(function(e){y[n]=e,s()},l)}catch(e){l(e)}}var f=e.defer(),d=0;V(o,function(e){$.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&(d++,$[e].then(function(t){y[e]=t,--d||u()},l))}),d||u(),$[n]=f.promise}if(p(r)&&a===n&&(a=o,o=r,r=null),r){if(!P(r))throw new Error("'locals' must be an object")}else r=u;if(o){if(!p(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=d;var h=e.defer(),g=h.promise,$=g.$$promises={},y=B({},r),w=1+v.length/3,b=!1;if(M(o.$$failure))return c(o.$$failure),g;o.$$inheritedValues&&i(y,f(o.$$inheritedValues,m)),B($,o.$$promises),o.$$values?(b=i(y,f(o.$$values,m)),g.$$inheritedValues=f(o.$$values,m),s()):(o.$$inheritedValues&&(g.$$inheritedValues=f(o.$$inheritedValues,m)),o.then(s,c));for(var _=0,S=v.length;_<S;_+=3)r.hasOwnProperty(v[_])?s():l(v[_],v[_+1],v[_+2]);return g}},this.resolve=function(e,t,n,r){return this.study(e)(t,n,r)}}function m(e,t,n){this.fromConfig=function(e,t,n){return M(e.template)?this.fromString(e.template,t):M(e.templateUrl)?this.fromUrl(e.templateUrl,t):M(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},this.fromString=function(e,t){return O(e)?e(t):e},this.fromUrl=function(n,r){return O(n)&&(n=n(r)),null==n?null:e.get(n,{cache:t,headers:{Accept:"text/html"}}).then(function(e){return e.data})},this.fromProvider=function(e,t,r){return n.invoke(e,null,r||{params:t})}}function v(e,t,i){function o(t,n,r,i){if(v.push(t),p[t])return p[t];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+e+"'");if(m[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+e+"'");return m[t]=new z.Param(t,n,r,i),m[t]}function a(e,t,n){var r=["",""],i=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return i;switch(n){case!1:r=["(",")"];break;case!0:r=["?(",")?"];break;default:r=["("+n+"|",")?"]}return i+r[0]+t+r[1]}function s(n,i){var o,a,s,c,l;return o=n[2]||n[3],l=t.params[o],s=e.substring(d,n.index),a=i?n[4]:n[4]||("*"==n[1]?".*":null),c=z.type(a||"string")||r(z.type("string"),{pattern:new RegExp(a)}),{id:o,regexp:a,segment:s,type:c,cfg:l}}t=B({params:{}},P(t)?t:{});var c,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,u=/([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f="^",d=0,h=this.segments=[],p=i?i.params:{},m=this.params=i?i.params.$$new():new z.ParamSet,v=[];this.source=e;for(var g,$,y;(c=l.exec(e))&&(g=s(c,!1),!(g.segment.indexOf("?")>=0));)$=o(g.id,g.type,g.cfg,"path"),f+=a(g.segment,$.type.pattern.source,$.squash),h.push(g.segment),d=l.lastIndex;y=e.substring(d);var w=y.indexOf("?");if(w>=0){var b=this.sourceSearch=y.substring(w);if(y=y.substring(0,w),this.sourcePath=e.substring(0,d+w),b.length>0)for(d=0;c=u.exec(b);)g=s(c,!0),$=o(g.id,g.type,g.cfg,"search"),d=l.lastIndex}else this.sourcePath=e,this.sourceSearch="";f+=a(y)+(t.strict===!1?"/?":"")+"$",h.push(y),this.regexp=new RegExp(f,t.caseInsensitive?"i":n),this.prefix=h[0],this.$$paramNames=v}function g(e){B(this,e)}function $(){function e(e){return null!=e?e.toString().replace(/\//g,"%2F"):e}function i(e){return null!=e?e.toString().replace(/%2F/g,"/"):e}function o(e){return this.pattern.test(e)}function c(){return{strict:y,caseInsensitive:m}}function l(e){return O(e)||N(e)&&O(e[e.length-1])}function u(){for(;S.length;){var e=S.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(b[e.name],p.invoke(e.def))}}function f(e){B(this,e||{})}z=this;var p,m=!1,y=!0,w=!1,b={},_=!0,S=[],x={string:{encode:e,decode:i,is:o,pattern:/[^\/]*/},"int":{encode:e,decode:function(e){return parseInt(e,10)},is:function(e){return M(e)&&this.decode(e.toString())===e},pattern:/\d+/},bool:{encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:function(e){return e===!0||e===!1},pattern:/0|1/},date:{encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):n},decode:function(e){if(this.is(e))return e;var t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):n},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(e,t){return this.is(e)&&this.is(t)&&e.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^\/]*/},any:{encode:t.identity,decode:t.identity,is:t.identity,equals:t.equals,pattern:/.*/}};$.$$getDefaultValue=function(e){if(!l(e.value))return e.value;if(!p)throw new Error("Injectable functions cannot be called at configuration time");return p.invoke(e.value)},this.caseInsensitive=function(e){return M(e)&&(m=e),m},this.strictMode=function(e){return M(e)&&(y=e),y},this.defaultSquashPolicy=function(e){if(!M(e))return w;if(e!==!0&&e!==!1&&!L(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return w=e,e},this.compile=function(e,t){return new v(e,B(c(),t))},this.isMatcher=function(e){if(!P(e))return!1;var t=!0;return V(v.prototype,function(n,r){O(n)&&(t=t&&M(e[r])&&O(e[r]))}),t},this.type=function(e,t,n){if(!M(t))return b[e];if(b.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return b[e]=new g(B({name:e},t)),n&&(S.push({name:e,def:n}),_||u()),this},V(x,function(e,t){b[t]=new g(B({name:t},e))}),b=r(b,{}),this.$get=["$injector",function(e){return p=e,_=!1,u(),V(x,function(e,t){b[t]||(b[t]=new g(e))}),this}],this.Param=function(e,t,r,i){function o(e){var t=P(e)?a(e):[],n=s(t,"value")===-1&&s(t,"type")===-1&&s(t,"squash")===-1&&s(t,"array")===-1;return n&&(e={value:e}),e.$$fn=l(e.value)?e.value:function(){return e.value},e}function c(t,n,r){if(t.type&&n)throw new Error("Param '"+e+"' has two type configurations.");return n?n:t.type?t.type instanceof g?t.type:new g(t.type):"config"===r?b.any:b.string}function u(){var t={array:"search"===i&&"auto"},n=e.match(/\[\]$/)?{array:!0}:{};return B(t,n,r).array}function f(e,t){var n=e.squash;if(!t||n===!1)return!1;if(!M(n)||null==n)return w;if(n===!0||L(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}function m(e,t,r,i){var o,a,c=[{from:"",to:r||t?n:""},{from:null,to:r||t?n:""}];return o=N(e.replace)?e.replace:[],L(i)&&o.push({from:i,to:n}),a=h(o,function(e){return e.from}),d(c,function(e){return s(a,e.from)===-1}).concat(o)}function v(){if(!p)throw new Error("Injectable functions cannot be called at configuration time");return p.invoke(r.$$fn)}function $(e){function t(e){return function(t){return t.from===e}}function n(e){var n=h(d(_.replace,t(e)),function(e){return e.to});return n.length?n[0]:e}return e=n(e),M(e)?_.type.decode(e):v()}function y(){return"{Param:"+e+" "+t+" squash: '"+E+"' optional: "+x+"}"}var _=this;r=o(r),t=c(r,t,i);var S=u();t=S?t.$asArray(S,"search"===i):t,"string"!==t.name||S||"path"!==i||r.value!==n||(r.value="");var x=r.value!==n,E=f(r,x),T=m(r,S,x,E);B(this,{id:e,type:t,location:i,array:S,squash:E,replace:T,isOptional:x,value:$,dynamic:n,config:r,toString:y})},f.prototype={$$new:function(){return r(this,B(new f,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,r=a(f.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),V(t,function(t){V(a(t),function(t){s(e,t)===-1&&s(r,t)===-1&&e.push(t)})}),e},$$values:function(e){var t={},n=this;return V(n.$$keys(),function(r){t[r]=n[r].value(e&&e[r])}),t},$$equals:function(e,t){var n=!0,r=this;return V(r.$$keys(),function(i){var o=e&&e[i],a=t&&t[i];r[i].type.equals(o,a)||(n=!1)}),n},$$validates:function(e){var t,n,r,i=!0,o=this;return V(this.$$keys(),function(a){r=o[a],n=e[a],t=!n&&r.isOptional,i=i&&(t||!!r.type.is(n))}),i},$$parent:n},this.ParamSet=f}function y(e,r){function i(e){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}function o(e,t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t["$"===n?0:Number(n)]})}function a(e,t,n){if(!n)return!1;var r=e.invoke(t,t,{$match:n});return!M(r)||r}function s(r,i,o,a){function s(e,t,n){return"/"===m?e:t?m.slice(0,-1)+e:n?m.slice(1)+e:e}function d(e){function t(e){var t=e(o,r);return!!t&&(L(t)&&r.replace().url(t),!0)}if(!e||!e.defaultPrevented){var i=p&&r.url()===p;if(p=n,i)return!0;var a,s=l.length;for(a=0;a<s;a++)if(t(l[a]))return;u&&t(u)}}function h(){return c=c||i.$on("$locationChangeSuccess",d)}var p,m=a.baseHref(),v=r.url();return f||h(),{sync:function(){d()},listen:function(){return h()},update:function(e){return e?void(v=r.url()):void(r.url()!==v&&(r.url(v),r.replace()))},push:function(e,t,i){r.url(e.format(t||{})),p=i&&i.$$avoidResync?r.url():n,i&&i.replace&&r.replace()},href:function(n,i,o){if(!n.validates(i))return null;var a=e.html5Mode();t.isObject(a)&&(a=a.enabled);var c=n.format(i);if(o=o||{},a||null===c||(c="#"+e.hashPrefix()+c),c=s(c,a,o.absolute),!o.absolute||!c)return c;var l=!a&&c?"/":"",u=r.port();return u=80===u||443===u?"":":"+u,[r.protocol(),"://",r.host(),u,l,c].join("")}}}var c,l=[],u=null,f=!1;this.rule=function(e){if(!O(e))throw new Error("'rule' must be a function");return l.push(e),this},this.otherwise=function(e){if(L(e)){var t=e;e=function(){return t}}else if(!O(e))throw new Error("'rule' must be a function");return u=e,this},this.when=function(e,t){var n,s=L(t);if(L(e)&&(e=r.compile(e)),!s&&!O(t)&&!N(t))throw new Error("invalid 'handler' in when()");var c={matcher:function(e,t){return s&&(n=r.compile(t),t=["$match",function(e){return n.format(e)}]),B(function(n,r){return a(n,t,e.exec(r.path(),r.search()))},{prefix:L(e.prefix)?e.prefix:""})},regex:function(e,t){if(e.global||e.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(n=t,t=["$match",function(e){return o(n,e)}]),B(function(n,r){return a(n,t,e.exec(r.path()))},{prefix:i(e)})}},l={matcher:r.isMatcher(e),regex:e instanceof RegExp};for(var u in l)if(l[u])return this.rule(c[u](e,t));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(e){e===n&&(e=!0),f=e},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser"]}function w(e,i){function o(e){return 0===e.indexOf(".")||0===e.indexOf("^")}function f(e,t){if(!e)return n;var r=L(e),i=r?e:e.name,a=o(i);if(a){if(!t)throw new Error("No reference point given for path '"+i+"'");t=f(t);for(var s=i.split("."),c=0,l=s.length,u=t;c<l;c++)if(""!==s[c]||0!==c){if("^"!==s[c])break;if(!u.parent)throw new Error("Path '"+i+"' not valid for state '"+t.name+"'");u=u.parent}else u=t;s=s.slice(c).join("."),i=u.name+(u.name&&s?".":"")+s}var d=x[i];return!d||!r&&(r||d!==e&&d.self!==e)?n:d}function d(e,t){E[e]||(E[e]=[]),E[e].push(t)}function p(e){for(var t=E[e]||[];t.length;)m(t.shift())}function m(t){t=r(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}});var n=t.name;if(!L(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(x.hasOwnProperty(n))throw new Error("State '"+n+"'' is already defined");var i=n.indexOf(".")!==-1?n.substring(0,n.lastIndexOf(".")):L(t.parent)?t.parent:P(t.parent)&&L(t.parent.name)?t.parent.name:"";if(i&&!x[i])return d(i,t.self);for(var o in C)O(C[o])&&(t[o]=C[o](t,C.$delegates[o]));return x[n]=t,!t[T]&&t.url&&e.when(t.url,["$match","$stateParams",function(e,n){S.$current.navigable==t&&l(e,n)||S.transitionTo(t,e,{inherit:!0,location:!1})}]),p(n),t}function v(e){return e.indexOf("*")>-1}function g(e){var t=e.split("."),n=S.$current.name.split(".");if("**"===t[0]&&(n=n.slice(s(n,t[1])),n.unshift("**")),"**"===t[t.length-1]&&(n.splice(s(n,t[t.length-2])+1,Number.MAX_VALUE),n.push("**")),t.length!=n.length)return!1;for(var r=0,i=t.length;r<i;r++)"*"===t[r]&&(n[r]="*");return n.join("")===t.join("")}function $(e,t){return L(e)&&!M(t)?C[e]:O(t)&&L(e)?(C[e]&&!C.$delegates[e]&&(C.$delegates[e]=C[e]),C[e]=t,this):this}function y(e,t){return P(e)?t=e:t.name=e,m(t),this}function w(e,i,o,s,d,p,m,$,y){function w(t,n,r,o){var a=e.$broadcast("$stateNotFound",t,n,r);if(a.defaultPrevented)return m.update(),A;if(!a.retry)return null;if(o.$retry)return m.update(),D;var s=S.transition=i.when(a.retry);return s.then(function(){return s!==S.transition?C:(t.options.$retry=!0,S.transitionTo(t.to,t.toParams,t.options))},function(){return A}),m.update(),s}function E(e,n,r,a,c,l){var f=r?n:u(e.params.$$keys(),n),h={$stateParams:f};c.resolve=d.resolve(e.resolve,h,c.resolve,e);var p=[c.resolve.then(function(e){c.globals=e})];return a&&p.push(a),V(e.views,function(n,r){var i=n.resolve&&n.resolve!==e.resolve?n.resolve:{};i.$template=[function(){return o.load(r,{view:n,locals:h,params:f,notify:l.notify})||""}],p.push(d.resolve(i,h,c.resolve,e).then(function(o){if(O(n.controllerProvider)||N(n.controllerProvider)){var a=t.extend({},i,h);o.$$controller=s.invoke(n.controllerProvider,null,a)}else o.$$controller=n.controller;o.$$state=e,o.$$controllerAs=n.controllerAs,c[r]=o}))}),i.all(p).then(function(e){return c})}var C=i.reject(new Error("transition superseded")),k=i.reject(new Error("transition prevented")),A=i.reject(new Error("transition aborted")),D=i.reject(new Error("transition failed"));return _.locals={resolve:null,globals:{$stateParams:{}}},S={params:{},current:_.self,$current:_,transition:null},S.reload=function(){return S.transitionTo(S.current,p,{reload:!0,inherit:!1,notify:!0})},S.go=function(e,t,n){return S.transitionTo(e,t,B({inherit:!0,relative:S.$current},n))},S.transitionTo=function(t,n,o){n=n||{},o=B({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a,l=S.$current,d=S.params,h=l.path,v=f(t,o.relative);if(!M(v)){var g={to:t,toParams:n,options:o},$=w(g,l.self,d,o);if($)return $;if(t=g.to,n=g.toParams,o=g.options,v=f(t,o.relative),!M(v)){if(!o.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+o.relative+"'")}}if(v[T])throw new Error("Cannot transition to abstract state '"+t+"'");if(o.inherit&&(n=c(p,n||{},S.$current,v)),!v.params.$$validates(n))return D;n=v.params.$$values(n),t=v;var y=t.path,x=0,A=y[x],I=_.locals,O=[];if(!o.reload)for(;A&&A===h[x]&&A.ownParams.$$equals(n,d);)I=O[x]=A.locals,x++,A=y[x];if(b(t,l,I,o))return t.self.reloadOnSearch!==!1&&m.update(),S.transition=null,i.when(S.current);if(n=u(t.params.$$keys(),n||{}),o.notify&&e.$broadcast("$stateChangeStart",t.self,n,l.self,d).defaultPrevented)return m.update(),k;for(var L=i.when(I),P=x;P<y.length;P++,A=y[P])I=O[P]=r(I),L=E(A,n,A===t,L,I,o);var N=S.transition=L.then(function(){var r,i,a;if(S.transition!==N)return C;for(r=h.length-1;r>=x;r--)a=h[r],a.self.onExit&&s.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(r=x;r<y.length;r++)i=y[r],i.locals=O[r],i.self.onEnter&&s.invoke(i.self.onEnter,i.self,i.locals.globals);return S.transition!==N?C:(S.$current=t,S.current=t.self,S.params=n,R(S.params,p),S.transition=null,o.location&&t.navigable&&m.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&e.$broadcast("$stateChangeSuccess",t.self,n,l.self,d),m.update(!0),S.current)},function(r){return S.transition!==N?C:(S.transition=null,a=e.$broadcast("$stateChangeError",t.self,n,l.self,d,r),a.defaultPrevented||m.update(),i.reject(r))});return N},S.is=function(e,t,r){r=B({relative:S.$current},r||{});var i=f(e,r.relative);return M(i)?S.$current===i&&(!t||l(i.params.$$values(t),p)):n},S.includes=function(e,t,r){if(r=B({relative:S.$current},r||{}),L(e)&&v(e)){if(!g(e))return!1;e=S.$current.name}var i=f(e,r.relative);return M(i)?!!M(S.$current.includes[i.name])&&(!t||l(i.params.$$values(t),p,a(t))):n},S.href=function(e,t,r){r=B({lossy:!0,inherit:!0,absolute:!1,relative:S.$current},r||{});var i=f(e,r.relative);if(!M(i))return null;r.inherit&&(t=c(p,t||{},S.$current,i));var o=i&&r.lossy?i.navigable:i;return o&&o.url!==n&&null!==o.url?m.href(o.url,u(i.params.$$keys(),t||{}),{absolute:r.absolute}):null},S.get=function(e,t){if(0===arguments.length)return h(a(x),function(e){return x[e].self});var n=f(e,t||S.$current);return n&&n.self?n.self:null},S}function b(e,t,n,r){if(e===t&&(n===t.locals&&!r.reload||e.self.reloadOnSearch===!1))return!0}var _,S,x={},E={},T="abstract",C={parent:function(e){if(M(e.parent)&&e.parent)return f(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?f(t[1]):_},data:function(e){return e.parent&&e.parent.data&&(e.data=e.self.data=B({},e.parent.data,e.data)),e.data},url:function(e){var t=e.url,n={params:e.params||{}};if(L(t))return"^"==t.charAt(0)?i.compile(t.substring(1),n):(e.parent.navigable||_).url.concat(t,n);if(!t||i.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+e+"'")},navigable:function(e){return e.url?e:e.parent?e.parent.navigable:null},ownParams:function(e){var t=e.url&&e.url.params||new z.ParamSet;return V(e.params||{},function(e,n){t[n]||(t[n]=new z.Param(n,null,e,"config"))}),t},params:function(e){return e.parent&&e.parent.params?B(e.parent.params.$$new(),e.ownParams):new z.ParamSet},views:function(e){var t={};return V(M(e.views)?e.views:{"":e},function(n,r){r.indexOf("@")<0&&(r+="@"+e.parent.name),t[r]=n}),t},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?B({},e.parent.includes):{};return t[e.name]=!0,t},$delegates:{}};_=m({name:"",url:"^",views:null,"abstract":!0}),_.navigable=null,this.decorator=$,this.state=y,this.$get=w,w.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function b(){function e(e,t){return{load:function(n,r){var i,o={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return r=B(o,r),r.view&&(i=t.fromConfig(r.view,r.params,r.locals)),i&&r.notify&&e.$broadcast("$viewContentLoading",r),i}}}this.$get=e,e.$inject=["$rootScope","$templateFactory"]}function _(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){n(function(){e[0].scrollIntoView()},0,!1)}}]}function S(e,n,r,i){function o(){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(l)return{enter:function(e,t,n){var r=l.enter(e,null,t,n);r&&r.then&&r.then(n)},leave:function(e,t){var n=l.leave(e,t);n&&n.then&&n.then(t)}};if(c){var r=c&&c(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=o(),c=s("$animator"),l=s("$animate"),u={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,o,s){return function(n,o,c){function l(){f&&(f.remove(),f=null),h&&(h.$destroy(),h=null),d&&(g.leave(d,function(){f=null}),f=d,d=null)}function u(a){var u,f=E(n,c,o,i),$=f&&e.$current&&e.$current.locals[f];if(a||$!==p){u=n.$new(),p=e.$current.locals[f];var y=s(u,function(e){g.enter(e,o,function(){h&&h.$emit("$viewContentAnimationEnded"),(t.isDefined(v)&&!v||n.$eval(v))&&r(e)}),l()});d=y,h=u,h.$emit("$viewContentLoaded"),h.$eval(m)}}var f,d,h,p,m=c.onload||"",v=c.autoscroll,g=a(c,n);n.$on("$stateChangeSuccess",function(){u(!1)}),n.$on("$viewContentLoading",function(){u(!1)}),u(!0)}}};return u}function x(e,t,n,r){return{restrict:"ECA",priority:-400,compile:function(i){var o=i.html();return function(i,a,s){var c=n.$current,l=E(i,s,a,r),u=c&&c.locals[l];if(u){a.data("$uiView",{name:l,state:u.$$state}),a.html(u.$template?u.$template:o);var f=e(a.contents());if(u.$$controller){u.$scope=i;var d=t(u.$$controller,u);u.$$controllerAs&&(i[u.$$controllerAs]=d),a.data("$ngControllerController",d),a.children().data("$ngControllerController",d)}f(i)}}}}}function E(e,t,n,r){var i=r(t.uiView||t.name||"")(e),o=n.inheritedData("$uiView");return i.indexOf("@")>=0?i:i+"@"+(o?o.state.name:"")}function T(e,t){var n,r=e.match(/^\s*({[^}]*})\s*$/);if(r&&(e=t+"("+r[1]+")"),n=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!n||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1],paramExpr:n[3]||null}}function C(e){var t=e.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function k(e,n){var r=["location","inherit","reload"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,o,a,s){var c=T(a.uiSref,e.current.name),l=null,u=C(o)||e.$current,f=null,d="A"===o.prop("tagName"),h="FORM"===o[0].nodeName,p=h?"action":"href",m=!0,v={relative:u,inherit:!0},g=i.$eval(a.uiSrefOpts)||{};t.forEach(r,function(e){e in g&&(v[e]=g[e])});var $=function(n){if(n&&(l=t.copy(n)),m){f=e.href(c.state,l,v);var r=s[1]||s[0];return r&&r.$$setStateInfo(c.state,l),null===f?(m=!1,!1):void a.$set(p,f)}};c.paramExpr&&(i.$watch(c.paramExpr,function(e,t){e!==l&&$(e)},!0),l=t.copy(i.$eval(c.paramExpr))),$(),h||o.bind("click",function(t){var r=t.which||t.button;if(!(r>1||t.ctrlKey||t.metaKey||t.shiftKey||o.attr("target"))){var i=n(function(){e.go(c.state,l,v)});t.preventDefault();var a=d&&!f?1:0;t.preventDefault=function(){a--<=0&&n.cancel(i)}}})}}}function A(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs",function(t,r,i){function o(){a()?r.addClass(l):r.removeClass(l)}function a(){return"undefined"!=typeof i.uiSrefActiveEq?s&&e.is(s.name,c):s&&e.includes(s.name,c)}var s,c,l;l=n(i.uiSrefActiveEq||i.uiSrefActive||"",!1)(t),this.$$setStateInfo=function(t,n){s=e.get(t,C(r)),c=n,o()},t.$on("$stateChangeSuccess",o)}]}}function D(e){var t=function(t){return e.is(t)};return t.$stateful=!0,t}function I(e){var t=function(t){return e.includes(t)};return t.$stateful=!0,t}var M=t.isDefined,O=t.isFunction,L=t.isString,P=t.isObject,N=t.isArray,V=t.forEach,B=t.extend,R=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"]),p.$inject=["$q","$injector"],t.module("ui.router.util").service("$resolve",p),m.$inject=["$http","$templateCache","$injector"],t.module("ui.router.util").service("$templateFactory",m);var z;v.prototype.concat=function(e,t){var n={caseInsensitive:z.caseInsensitive(),strict:z.strictMode(),squash:z.defaultSquashPolicy()};return new v(this.sourcePath+e+this.sourceSearch,B(n,t),this)},v.prototype.toString=function(){return this.source},v.prototype.exec=function(e,t){function n(e){function t(e){return e.split("").reverse().join("")}function n(e){return e.replace(/\\-/,"-")}var r=t(e).split(/-(?!\\)/),i=h(r,t);return h(i,n).reverse()}var r=this.regexp.exec(e);if(!r)return null;t=t||{};var i,o,a,s=this.parameters(),c=s.length,l=this.segments.length-1,u={};if(l!==r.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(i=0;i<l;i++){a=s[i];var f=this.params[a],d=r[i+1];for(o=0;o<f.replace;o++)f.replace[o].from===d&&(d=f.replace[o].to);d&&f.array===!0&&(d=n(d)),u[a]=f.value(d)}for(;i<c;i++)a=s[i],u[a]=this.params[a].value(t[a]);return u},v.prototype.parameters=function(e){return M(e)?this.params[e]||null:this.$$paramNames},v.prototype.validates=function(e){return this.params.$$validates(e)},v.prototype.format=function(e){function t(e){return encodeURIComponent(e).replace(/-/g,function(e){return"%5C%"+e.charCodeAt(0).toString(16).toUpperCase()})}e=e||{};var n=this.segments,r=this.parameters(),i=this.params;if(!this.validates(e))return null;var o,a=!1,s=n.length-1,c=r.length,l=n[0];for(o=0;o<c;o++){var u=o<s,f=r[o],d=i[f],p=d.value(e[f]),m=d.isOptional&&d.type.equals(d.value(),p),v=!!m&&d.squash,g=d.type.encode(p);if(u){var $=n[o+1];if(v===!1)null!=g&&(l+=N(g)?h(g,t).join("-"):encodeURIComponent(g)),l+=$;else if(v===!0){var y=l.match(/\/$/)?/\/?(.*)/:/(.*)/;l+=$.match(y)[1]}else L(v)&&(l+=v+$)}else{if(null==g||m&&v!==!1)continue;N(g)||(g=[g]),g=h(g,encodeURIComponent).join("&"+f+"="),l+=(a?"&":"?")+(f+"="+g),a=!0}}return l},g.prototype.is=function(e,t){return!0},g.prototype.encode=function(e,t){return e},g.prototype.decode=function(e,t){return e},g.prototype.equals=function(e,t){return e==t},g.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},g.prototype.pattern=/.*/,g.prototype.toString=function(){return"{Type:"+this.name+"}"},g.prototype.$asArray=function(e,t){function r(e,t){function r(e,t){return function(){return e[t].apply(e,arguments)}}function i(e){return N(e)?e:M(e)?[e]:[]}function o(e){switch(e.length){case 0:return n;case 1:return"auto"===t?e[0]:e;default:return e}}function a(e){return!e}function s(e,t){return function(n){n=i(n);var r=h(n,e);return t===!0?0===d(r,a).length:o(r)}}function c(e){return function(t,n){var r=i(t),o=i(n);if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if(!e(r[a],o[a]))return!1;return!0}}this.encode=s(r(e,"encode")),this.decode=s(r(e,"decode")),this.is=s(r(e,"is"),!0),this.equals=c(r(e,"equals")),this.pattern=e.pattern,this.$arrayMode=t}if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new r(this,e)},t.module("ui.router.util").provider("$urlMatcherFactory",$),t.module("ui.router.util").run(["$urlMatcherFactory",function(e){}]),y.$inject=["$locationProvider","$urlMatcherFactoryProvider"],t.module("ui.router.router").provider("$urlRouter",y),w.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],t.module("ui.router.state").value("$stateParams",{}).provider("$state",w),b.$inject=[],t.module("ui.router.state").provider("$view",b),t.module("ui.router.state").provider("$uiViewScroll",_),S.$inject=["$state","$injector","$uiViewScroll","$interpolate"],x.$inject=["$compile","$controller","$state","$interpolate"],t.module("ui.router.state").directive("uiView",S),t.module("ui.router.state").directive("uiView",x),k.$inject=["$state","$timeout"],A.$inject=["$state","$stateParams","$interpolate"],t.module("ui.router.state").directive("uiSref",k).directive("uiSrefActive",A).directive("uiSrefActiveEq",A),D.$inject=["$state"],I.$inject=["$state"],t.module("ui.router.state").filter("isState",D).filter("includedByState",I)}(window,window.angular),/*!
 * ionic.bundle.js is a concatenation of:
 * ionic.js, angular.js, angular-animate.js,
 * angular-sanitize.js, angular-ui-router.js,
 * and ionic-angular.js
 */
/*!
 * Copyright 2014 Drifty Co.
 * http://drifty.com/
 *
 * Ionic, v1.1.0
 * A powerful HTML5 mobile app framework.
 * http://ionicframework.com/
 *
 * By @maxlynch, @benjsperry, @adamdbradley <3
 *
 * Licensed under the MIT license. Please see LICENSE for more information.
 *
 */
function(){function e(e,t,n,r,i,o){function a(r,a,s,c,l){function f(){B.resizeRequiresRefresh(y.__clientWidth,y.__clientHeight)&&v()}function d(){var e;return e={dataLength:0,width:0,height:0,resizeRequiresRefresh:function(t,n){var r=e.dataLength&&t&&n&&(t!==e.width||n!==e.height);return e.width=t,e.height=n,!!r},dataChangeRequiresRefresh:function(t){var n=t.length>0||t.length<e.dataLength;return e.dataLength=t.length,!!n}}}function h(){return E||(E=new e({afterItemsNode:V[0],containerNode:b,heightData:A,widthData:D,forceRefreshImages:!(!u(s.forceRefreshImages)||"false"===s.forceRefreshImages),keyExpression:T,renderBuffer:L,scope:r,scrollView:c.scrollView,transclude:l}))}function p(){var e=angular.element(y.__content.querySelector(".collection-repeat-after-container"));if(!e.length){var t=!1,n=[].filter.call(y.__content.childNodes,function(e){return ionic.DomUtil.contains(e,b)?(t=!0,!1):t});e=angular.element('<span class="collection-repeat-after-container">'),y.options.scrollingX&&e.addClass("horizontal"),e.append(n),y.__content.appendChild(e[0])}return e}function m(){P?g(P,A):A.computed=!0,N?g(N,D):D.computed=!0}function v(){var e=M.length>0;if(e&&(A.computed||D.computed)&&$(),e&&A.computed){if(A.value=I.height,!A.value)throw new Error('collection-repeat tried to compute the height of repeated elements "'+S+'", but was unable to. Please provide the "item-height" attribute. http://ionicframework.com/docs/api/directive/collectionRepeat/')}else!A.dynamic&&A.getValue&&(A.value=A.getValue());if(e&&D.computed){if(D.value=I.width,!D.value)throw new Error('collection-repeat tried to compute the width of repeated elements "'+S+'", but was unable to. Please provide the "item-width" attribute. http://ionicframework.com/docs/api/directive/collectionRepeat/')}else!D.dynamic&&D.getValue&&(D.value=D.getValue());h().refreshLayout()}function g(e,n){if(e){var r;try{r=t(e)}catch(i){e.trim().match(/\d+(px|%)$/)&&(e='"'+e+'"'),r=t(e)}var o=e.replace(/(\'|\"|px|%)/g,"").trim(),a=o.length&&!/([a-zA-Z]|\$|:|\?)/.test(o);if(n.attrValue=e,a){var s=parseInt(r());if(e.indexOf("%")>-1){var c=s/100;n.getValue=n===A?function(){return Math.floor(c*y.__clientHeight)}:function(){return Math.floor(c*y.__clientWidth)}}else n.value=s}else n.dynamic=!0,n.getValue=n===A?function(e,t){var n=r(e,t);return n.charAt&&"%"===n.charAt(n.length-1)?Math.floor(parseInt(n)/100*y.__clientHeight):parseInt(n)}:function(e,t){var n=r(e,t);return n.charAt&&"%"===n.charAt(n.length-1)?Math.floor(parseInt(n)/100*y.__clientWidth):parseInt(n)}}}function $(){z||l(H=r.$new(),function(e){e[0].removeAttribute("collection-repeat"),z=e[0]}),H[T]=(k(r)||[])[0],i.$$phase||H.$digest(),b.appendChild(z);var e=n.getComputedStyle(z);I.width=parseInt(e.width),I.height=parseInt(e.height),b.removeChild(z)}var y=c.scrollView,w=a[0],b=angular.element('<div class="collection-repeat-container">')[0];if(w.parentNode.replaceChild(b,w),y.options.scrollingX&&y.options.scrollingY)throw new Error("collection-repeat expected a parent x or y scrollView, not an xy scrollView.");var S=s.collectionRepeat,x=S.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!x)throw new Error("collection-repeat expected expression in form of '_item_ in _collection_[ track by _id_]' but got '"+s.collectionRepeat+"'.");var E,T=x[1],C=x[2],k=t(C),A={},D={},I={},M=[],O=s.itemRenderBuffer||s.collectionBufferSize,L=angular.isDefined(O)?parseInt(O):_,P=s.itemHeight||s.collectionItemHeight,N=s.itemWidth||s.collectionItemWidth,V=p(),B=d();m(),c.$element.on("scroll-resize",v),angular.element(n).on("resize",f);var R=i.$on("$ionicExposeAside",ionic.animationFrameThrottle(function(){c.scrollView.resize(),f()}));o(v,0,!1),r.$watchCollection(k,function(e){if(M=e||(e=[]),!angular.isArray(e))throw new Error("collection-repeat expected an array for '"+C+"', but got a "+typeof value);r.$$postDigest(function(){h().setData(M),B.dataChangeRequiresRefresh(M)&&v()})}),r.$on("$destroy",function(){angular.element(n).off("resize",f),R(),c.$element&&c.$element.off("scroll-resize",v),z&&z.parentNode&&z.parentNode.removeChild(z),H&&H.$destroy(),H=z=null,E&&E.destroy(),E=null});var z,H}return{restrict:"A",priority:1e3,transclude:"element",$$tlb:!0,require:"^^$ionicScroll",link:a}}function t(e,t,n){var r={primaryPos:0,secondaryPos:0,primarySize:0,secondarySize:0,rowPrimarySize:0};return function(i){function o(){return a(!0)}function a(t){if(!a.destroyed){var n,i,o,l,u,f=ee.getScrollValue(),d=f+ee.scrollPrimarySize;ee.updateRenderRange(f,d),q=Math.max(0,q-E),U=Math.min(A.length-1,U+E);for(n in Z)(n<q||n>U)&&(o=Z[n],delete Z[n],X.push(o),o.isShown=!1);for(n=q;n<=U;n++)n>=A.length||Z[n]&&!t||(o=Z[n]||(Z[n]=X.length?X.pop():Y.length?Y.shift():new c),K.push(o),o.isShown=!0,u=o.scope,u.$index=n,u[x]=A[n],u.$first=0===n,u.$last=n===A.length-1,u.$middle=!(u.$first||u.$last),u.$odd=!(u.$even=0===(1&n)),u.$$disconnected&&ionic.Utils.reconnectScope(o.scope),l=ee.getDimensions(n),o.secondaryPos===l.secondaryPos&&o.primaryPos===l.primaryPos||(o.node.style[ionic.CSS.TRANSFORM]=z.replace(B,o.primaryPos=l.primaryPos).replace(R,o.secondaryPos=l.secondaryPos)),o.secondarySize===l.secondarySize&&o.primarySize===l.primarySize||(o.node.style.cssText=o.node.style.cssText.replace(b,H.replace(B,(o.primarySize=l.primarySize)+1).replace(R,o.secondarySize=l.secondarySize))));for(U===A.length-1&&(l=ee.getDimensions(A.length-1)||r,g.style[ionic.CSS.TRANSFORM]=z.replace(B,l.primaryPos+l.primarySize).replace(R,0));X.length;)o=X.pop(),o.scope.$broadcast("$collectionRepeatLeave"),ionic.Utils.disconnectScope(o.scope),Y.push(o),o.node.style[ionic.CSS.TRANSFORM]="translate3d(-9999px,-9999px,0)",o.primaryPos=o.secondaryPos=null;if(y)for(n=0,i=K.length;n<i&&(o=K[n]);n++)if(o.images)for(var h,p=0,m=o.images.length;p<m&&(h=o.images[p]);p++){var v=h.src;h.src=w,h.src=v}if(t)for(var $=e.$$phase;K.length;)o=K.pop(),$||o.scope.$digest();else s()}}function s(){var t;s.running||(s.running=!0,n(function(){for(var n=e.$$phase;K.length;)t=K.pop(),t.isShown&&(n||t.scope.$digest());s.running=!1}))}function c(){var e=this;this.scope=T.$new(),this.id="item"+J++,k(this.scope,function(t){e.element=t,e.element.data("$$collectionRepeatItem",e),e.node=t[0],e.node.style[ionic.CSS.TRANSFORM]="translate3d(-9999px,-9999px,0)",e.node.style.cssText+=" height: 0px; width: 0px;",ionic.Utils.disconnectScope(e.scope),$.appendChild(e.node),e.images=t[0].getElementsByTagName("img")})}function l(){this.getItemPrimarySize=M,this.getItemSecondarySize=L,this.getScrollValue=function(){return Math.max(0,Math.min(C.__scrollTop-F,C.__maxScrollTop-F-j))},this.refreshDirection=function(){this.scrollPrimarySize=C.__clientHeight,this.scrollSecondarySize=C.__clientWidth,this.estimatedPrimarySize=m,this.estimatedSecondarySize=v,this.estimatedItemsAcross=N&&Math.floor(C.__clientWidth/v)||1}}function u(){this.getItemPrimarySize=L,this.getItemSecondarySize=M,this.getScrollValue=function(){return Math.max(0,Math.min(C.__scrollLeft-F,C.__maxScrollLeft-F-j))},this.refreshDirection=function(){this.scrollPrimarySize=C.__clientWidth,this.scrollSecondarySize=C.__clientHeight,this.estimatedPrimarySize=v,this.estimatedSecondarySize=m,this.estimatedItemsAcross=N&&Math.floor(C.__clientHeight/m)||1}}function f(){this.getEstimatedSecondaryPos=function(e){return e%this.estimatedItemsAcross*this.estimatedSecondarySize},this.getEstimatedPrimaryPos=function(e){return Math.floor(e/this.estimatedItemsAcross)*this.estimatedPrimarySize},this.getEstimatedIndex=function(e){return Math.floor(e/this.estimatedPrimarySize)*this.estimatedItemsAcross}}function d(){this.getEstimatedSecondaryPos=function(){return 0},this.getEstimatedPrimaryPos=function(e){return e*this.estimatedPrimarySize},this.getEstimatedIndex=function(e){return Math.floor(e/this.estimatedPrimarySize)}}function h(){this.getContentSize=function(){return this.getEstimatedPrimaryPos(A.length-1)+this.estimatedPrimarySize+F+j};var e={};this.getDimensions=function(t){return e.primaryPos=this.getEstimatedPrimaryPos(t),e.secondaryPos=this.getEstimatedSecondaryPos(t),e.primarySize=this.estimatedPrimarySize,e.secondarySize=this.estimatedSecondarySize,e},this.updateRenderRange=function(e,t){q=Math.max(0,this.getEstimatedIndex(e)),U=Math.min(A.length-1,this.getEstimatedIndex(t)+this.estimatedItemsAcross-1),W=Math.max(0,this.getEstimatedPrimaryPos(q)),G=this.getEstimatedPrimaryPos(U)+this.estimatedPrimarySize}}function p(){function e(e){var t,o,a;for(t=Math.max(0,n);t<=e&&(a=s[t]);t++)o=s[t-1]||r,a.primarySize=i.getItemPrimarySize(t,A[t]),a.secondarySize=i.scrollSecondarySize,a.primaryPos=o.primaryPos+o.primarySize,a.secondaryPos=0}function t(e){var t,o,a;for(t=Math.max(n,0);t<=e&&(a=s[t]);t++)o=s[t-1]||r,a.secondarySize=Math.min(i.getItemSecondarySize(t,A[t]),i.scrollSecondarySize),a.secondaryPos=o.secondaryPos+o.secondarySize,0===t||a.secondaryPos+a.secondarySize>i.scrollSecondarySize?(a.secondaryPos=0,a.primarySize=i.getItemPrimarySize(t,A[t]),a.primaryPos=o.primaryPos+o.rowPrimarySize,a.rowStartIndex=t,a.rowPrimarySize=a.primarySize):(a.primarySize=i.getItemPrimarySize(t,A[t]),a.primaryPos=o.primaryPos,a.rowStartIndex=o.rowStartIndex,s[a.rowStartIndex].rowPrimarySize=a.rowPrimarySize=Math.max(s[a.rowStartIndex].rowPrimarySize,a.primarySize),a.rowPrimarySize=Math.max(a.primarySize,a.rowPrimarySize))}var n,i=this,o=ionic.debounce(Q,25,!0),a=N?t:e,s=[];this.getContentSize=function(){var e=s[n]||r;return(e.primaryPos+e.primarySize||0)+this.getEstimatedPrimaryPos(A.length-n-1)+F+j},this.onDestroy=function(){s.length=0},this.onRefreshData=function(){var e,t;for(e=s.length,t=A.length;e<t;e++)s.push({});n=-1},this.onRefreshLayout=function(){n=-1},this.getDimensions=function(e){return e=Math.min(e,A.length-1),n<e&&(e>.9*A.length?(a(A.length-1),n=A.length-1,Q()):(a(e),n=e,o())),s[e]};var c=-1,l=-1;this.updateRenderRange=function(e,t){var n,r,i;if(this.getDimensions(2*this.getEstimatedIndex(t)),c===-1||0===e)n=0;else if(e>=l)for(n=c,r=A.length;n<r&&!((i=this.getDimensions(n))&&i.primaryPos+i.rowPrimarySize>=e);n++);else for(n=c;n>=0;n--)if((i=this.getDimensions(n))&&i.primaryPos<=e){n=N?i.rowStartIndex:n;break}q=Math.min(Math.max(0,n),A.length-1),W=q!==-1?this.getDimensions(q).primaryPos:-1;var o;for(n=q+1,r=A.length;n<r;n++)if((i=this.getDimensions(n))&&i.primaryPos+i.rowPrimarySize>t){if(N)for(o=i;n<r-1&&(i=this.getDimensions(n+1)).primaryPos===o.primaryPos;)n++;break}U=Math.min(n,A.length-1),G=U!==-1?(i=this.getDimensions(U)).primaryPos+(i.rowPrimarySize||i.primarySize):-1,l=e,c=q}}var m,v,g=i.afterItemsNode,$=i.containerNode,y=i.forceRefreshImages,_=i.heightData,S=i.widthData,x=i.keyExpression,E=i.renderBuffer,T=i.scope,C=i.scrollView,k=i.transclude,A=[],D={},I=_.getValue||function(){return _.value},M=function(e,t){return D[x]=t,D.$index=e,I(T,D)},O=S.getValue||function(){return S.value},L=function(e,t){return D[x]=t,D.$index=e,O(T,D)},P=!!C.options.scrollingY,N=P?S.dynamic||S.value!==C.__clientWidth:_.dynamic||_.value!==C.__clientHeight,V=!_.dynamic&&!S.dynamic,B="PRIMARY",R="SECONDARY",z=P?"translate3d(SECONDARYpx,PRIMARYpx,0)":"translate3d(PRIMARYpx,SECONDARYpx,0)",H=P?"height: PRIMARYpx; width: SECONDARYpx;":"height: SECONDARYpx; width: PRIMARYpx;",F=0,j=0,q=-1,U=-1,G=-1,W=-1,Y=[],X=[],K=[],Z={},J=0,Q=P?function(){C.setDimensions(null,null,null,ee.getContentSize(),!0)}:function(){C.setDimensions(null,null,ee.getContentSize(),null,!0)},ee=P?new l:new u;(N?f:d).call(ee),(V?h:p).call(ee);var te=P?"getContentHeight":"getContentWidth",ne=C.options[te];C.options[te]=angular.bind(ee,ee.getContentSize),C.__$callback=C.__callback,C.__callback=function(e,t,n,r){var i=ee.getScrollValue();(q===-1||i+ee.scrollPrimarySize>G||i<W)&&a(),C.__$callback(e,t,n,r)};var re=!1,ie=!1;this.refreshLayout=function(){A.length?(m=M(0,A[0]),v=L(0,A[0])):(m=100,v=100);var e=getComputedStyle(g)||{},n=g.firstElementChild&&getComputedStyle(g.firstElementChild)||{},r=g.lastElementChild&&getComputedStyle(g.lastElementChild)||{};j=(parseInt(e[P?"height":"width"])||0)+(n&&parseInt(n[P?"marginTop":"marginLeft"])||0)+(r&&parseInt(r[P?"marginBottom":"marginRight"])||0),F=0;var i=$;do F+=i[P?"offsetTop":"offsetLeft"];while(ionic.DomUtil.contains(C.__content,i=i.offsetParent));var a=$.previousElementSibling,s=a?t.getComputedStyle(a):{},l=parseInt(s[P?"marginBottom":"marginRight"]||0);if($.style[ionic.CSS.TRANSFORM]=z.replace(B,-l).replace(R,0),F-=l,C.__clientHeight&&C.__clientWidth||(C.__clientWidth=C.__container.clientWidth,C.__clientHeight=C.__container.clientHeight),(ee.onRefreshLayout||angular.noop)(),ee.refreshDirection(),Q(),!re)for(var u=Math.max(20,3*E),f=0;f<u;f++)Y.push(new c);re=!0,re&&ie&&((C.__scrollLeft>C.__maxScrollLeft||C.__scrollTop>C.__maxScrollTop)&&C.resize(),o(!0))},this.setData=function(e){A=e,(ee.onRefreshData||angular.noop)(),ie=!0},this.destroy=function(){a.destroyed=!0,Y.forEach(function(e){e.scope.$destroy(),e.scope=e.element=e.node=e.images=null}),Y.length=K.length=X.length=0,Z={},C.options[te]=ne,C.__callback=C.__$callback,C.resize(),(ee.onDestroy||angular.noop)()}}}function n(e){return["$ionicGesture","$parse",function(t,n){var r=e.substr(2).toLowerCase();return function(i,o,a){var s=n(a[e]),c=function(e){i.$apply(function(){s(i,{$event:e})})},l=t.on(r,c,o);i.$on("$destroy",function(){t.off(l,r,c)})}}]}function r(){return["$ionicScrollDelegate",function(e){return{restrict:"E",link:function(t,n,r){function i(t){for(var r=3,i=t.target;r--&&i;){if(i.classList.contains("button")||i.tagName.match(/input|textarea|select/i)||i.isContentEditable)return;i=i.parentNode}var o=t.gesture&&t.gesture.touches[0]||t.detail.touches[0],a=n[0].getBoundingClientRect();ionic.DomUtil.rectContains(o.pageX,o.pageY,a.left,a.top-20,a.left+a.width,a.top+a.height)&&e.scrollTop(!0)}"true"!=r.noTapScroll&&(ionic.on("tap",i,n[0]),t.$on("$destroy",function(){ionic.off("tap",i,n[0])}))}}}]}function i(e){return["$document","$timeout",function(t,n){return{restrict:"E",controller:"$ionicHeaderBar",compile:function(r){function i(t,n,r,i){e?(t.$watch(function(){return n[0].className},function(e){var n=e.indexOf("ng-hide")===-1,r=e.indexOf("bar-subheader")!==-1;t.$hasHeader=n&&!r,t.$hasSubheader=n&&r,t.$emit("$ionicSubheader",t.$hasSubheader)}),t.$on("$destroy",function(){delete t.$hasHeader,delete t.$hasSubheader}),i.align(),t.$on("$ionicHeader.align",function(){ionic.requestAnimationFrame(function(){i.align()})})):(t.$watch(function(){return n[0].className},function(e){var n=e.indexOf("ng-hide")===-1,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)}))}return r.addClass(e?"bar bar-header":"bar bar-footer"),n(function(){e&&t[0].getElementsByClassName("tabs-top").length&&r.addClass("has-tabs-top")}),{pre:i}}}}]}function o(e){return e.clientHeight}function a(e){e.stopPropagation()}var s=angular.module("ionic",["ngAnimate","ngSanitize","ui.router"]),c=angular.extend,l=angular.forEach,u=angular.isDefined,f=angular.isNumber,d=angular.isString,h=angular.element,p=angular.noop;s.factory("$ionicActionSheet",["$rootScope","$compile","$animate","$timeout","$ionicTemplateLoader","$ionicPlatform","$ionicBody","IONIC_BACK_PRIORITY",function(e,t,n,r,i,o,a,s){function l(i){function l(e){e&&/icon/.test(e)&&(u.$actionSheetHasIcon=!0)}var u=e.$new(!0);c(u,{cancel:p,destructiveButtonClicked:p,buttonClicked:p,$deregisterBackButton:p,buttons:[],cancelOnStateChange:!0},i||{});for(var f=0;f<u.buttons.length;f++)l(u.buttons[f].text);l(u.cancelText),l(u.destructiveText);var d=u.element=t('<ion-action-sheet ng-class="cssClass" buttons="buttons"></ion-action-sheet>')(u),m=h(d[0].querySelector(".action-sheet-wrapper")),v=u.cancelOnStateChange?e.$on("$stateChangeSuccess",function(){u.cancel()}):p;return u.removeSheet=function(e){u.removed||(u.removed=!0,m.removeClass("action-sheet-up"),r(function(){a.removeClass("action-sheet-open")},400),u.$deregisterBackButton(),v(),n.removeClass(d,"active").then(function(){u.$destroy(),d.remove(),u.cancel.$scope=m=null,(e||p)()}))},u.showSheet=function(e){u.removed||(a.append(d).addClass("action-sheet-open"),n.addClass(d,"active").then(function(){u.removed||(e||p)()}),r(function(){u.removed||m.addClass("action-sheet-up")},20,!1))},u.$deregisterBackButton=o.registerBackButtonAction(function(){r(u.cancel)},s.actionSheet),u.cancel=function(){u.removeSheet(i.cancel)},u.buttonClicked=function(e){i.buttonClicked(e,i.buttons[e])===!0&&u.removeSheet()},u.destructiveButtonClicked=function(){i.destructiveButtonClicked()===!0&&u.removeSheet()},u.showSheet(),u.cancel.$scope=u,u.cancel}return{show:l}}]),h.prototype.addClass=function(e){var t,n,r,i,o,a;if(e&&"ng-scope"!=e&&"ng-isolate-scope"!=e)for(t=0;t<this.length;t++)if(i=this[t],i.setAttribute)if(e.indexOf(" ")<0&&i.classList.add)i.classList.add(e);else{for(a=(" "+(i.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),o=e.split(" "),n=0;n<o.length;n++)r=o[n].trim(),a.indexOf(" "+r+" ")===-1&&(a+=r+" ");i.setAttribute("class",a.trim())}return this},h.prototype.removeClass=function(e){var t,n,r,i,o;if(e)for(t=0;t<this.length;t++)if(o=this[t],o.getAttribute)if(e.indexOf(" ")<0&&o.classList.remove)o.classList.remove(e);else for(r=e.split(" "),n=0;n<r.length;n++)i=r[n],o.setAttribute("class",(" "+(o.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+i.trim()+" "," ").trim());return this},s.factory("$ionicBackdrop",["$document","$timeout","$$rAF",function(e,t,n){function r(){s++,1===s&&(a.addClass("visible"),n(function(){s>=1&&a.addClass("active")}))}function i(){1===s&&(a.removeClass("active"),t(function(){0===s&&a.removeClass("visible")},400,!1)),s=Math.max(0,s-1)}function o(){return a}var a=h('<div class="backdrop">'),s=0;return e[0].body.appendChild(a[0]),{retain:r,release:i,getElement:o,_element:a}}]),s.factory("$ionicBind",["$parse","$interpolate",function(e,t){var n=/^\s*([@=&])(\??)\s*(\w*)\s*$/;return function(r,i,o){l(o||{},function(o,a){var s,c,l=o.match(n)||[],u=l[3]||a,f=l[1];switch(f){case"@":if(!i[u])return;i.$observe(u,function(e){r[a]=e}),i[u]&&(r[a]=t(i[u])(r));break;case"=":if(!i[u])return;c=r.$watch(i[u],function(e){r[a]=e}),r.$on("$destroy",c);break;case"&":if(i[u]&&i[u].match(RegExp(a+"(.*?)")))throw new Error('& expression binding "'+a+'" looks like it will recursively call "'+i[u]+'" and cause a stack overflow! Please choose a different scopeName.');s=e(i[u]),r[a]=function(e){return s(r,e)}}})}}]),s.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);return e?this.addClass.apply(this,t):this.removeClass.apply(this,t),this},append:function(t){return e[0].body.appendChild(t.length?t[0]:t),this},get:function(){return e[0].body}}}]),s.factory("$ionicClickBlock",["$document","$ionicBody","$timeout",function(e,t,n){function r(e){e.preventDefault(),e.stopPropagation()}function i(){c&&(a?a.classList.remove(l):(a=e[0].createElement("div"),a.className="click-block",t.append(a),a.addEventListener("touchstart",r),a.addEventListener("mousedown",r)),c=!1)}function o(){a&&a.classList.add(l)}var a,s,c,l="click-block-hide";return{show:function(e){c=!0,n.cancel(s),s=n(this.hide,e||310,!1),i()},hide:function(){c=!1,n.cancel(s),o()}}}]),s.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)}}}]),s.factory("$ionicHistory",["$rootScope","$state","$location","$window","$timeout","$ionicViewSwitcher","$ionicNavViewDelegate",function(e,t,n,r,i,o,a){function s(e){return e?N.views[e]:null}function l(e){return e?s(e.backViewId):null}function f(e){return e?s(e.forwardViewId):null}function d(e){return e?N.histories[e]:null}function h(e){var t=p(e);return N.histories[t.historyId]||(N.histories[t.historyId]={historyId:t.historyId,parentHistoryId:p(t.scope.$parent).historyId,stack:[],cursor:-1}),d(t.historyId)}function p(t){for(var n=t;n;){if(n.hasOwnProperty("$historyId"))return{historyId:n.$historyId,scope:n};n=n.$parent}return{historyId:"root",scope:e}}function m(e){N.currentView=s(e),N.backView=l(N.currentView),N.forwardView=f(N.currentView)}function v(){var e;if(t&&t.current&&t.current.name){if(e=t.current.name,t.params)for(var n in t.params)t.params.hasOwnProperty(n)&&t.params[n]&&(e+="_"+n+"="+t.params[n]);return e}return ionic.Utils.nextUid()}function g(){var e;if(t&&t.params)for(var n in t.params)t.params.hasOwnProperty(n)&&(e=e||{},e[n]=t.params[n]);return e}function $(e){return e&&e.length&&/ion-side-menus|ion-tabs/i.test(e[0].tagName)}function y(e,t){return(!t||!t.$$state||t.$$state.self.canSwipeBack!==!1)&&(!e||"false"!==e.attr("can-swipe-back"))}var w,b,_,S,x,E="initialView",T="newView",C="moveBack",k="moveForward",A="back",D="forward",I="enter",M="exit",O="swap",L="none",P=0,N={histories:{root:{historyId:"root",parentHistoryId:null,stack:[],cursor:-1}},views:{},backView:null,forwardView:null,currentView:null},V=function(){};return V.prototype.initialize=function(e){if(e){for(var t in e)this[t]=e[t];return this}return null},V.prototype.go=function(){if(this.stateName)return t.go(this.stateName,this.stateParams);if(this.url&&this.url!==n.url()){if(N.backView===this)return r.history.go(-1);if(N.forwardView===this)return r.history.go(1);n.url(this.url)}return null},V.prototype.destroy=function(){this.scope&&(this.scope.$destroy&&this.scope.$destroy(),this.scope=null)},{register:function(e,t){var r,a,c,u=v(),f=h(e),$=N.currentView,V=N.backView,B=N.forwardView,R=null,z=null,H=L,F=f.historyId,j=n.url();if(w!==u&&(w=u,P++),x)R=x.viewId,z=x.action,H=x.direction,x=null;else if(V&&V.stateId===u)R=V.viewId,F=V.historyId,z=C,V.historyId===$.historyId?H=A:$&&(H=M,r=d(V.historyId),r&&r.parentHistoryId===$.historyId?H=I:(r=d($.historyId),r&&r.parentHistoryId===f.parentHistoryId&&(H=O)));else if(B&&B.stateId===u)R=B.viewId,F=B.historyId,z=k,B.historyId===$.historyId?H=D:$&&(H=M,$.historyId===f.parentHistoryId?H=I:(r=d($.historyId),r&&r.parentHistoryId===f.parentHistoryId&&(H=O))),r=p(e),B.historyId&&r.scope&&(r.scope.$historyId=B.historyId,F=B.historyId);else if($&&$.historyId!==F&&f.cursor>-1&&f.stack.length>0&&f.cursor<f.stack.length&&f.stack[f.cursor].stateId===u){var q=f.stack[f.cursor];R=q.viewId,F=q.historyId,z=C,H=O,r=d($.historyId),r&&r.parentHistoryId===F?H=M:(r=d(F),r&&r.parentHistoryId===$.historyId&&(H=I)),r=s(q.backViewId),r&&q.historyId!==r.historyId&&(f.stack[f.cursor].backViewId=$.viewId)}else{if(c=o.createViewEle(t),this.isAbstractEle(c,t))return{action:"abstractView",direction:L,ele:c};if(R=ionic.Utils.nextUid(),$){if($.forwardViewId=R,z=T,B&&$.stateId!==B.stateId&&$.historyId===B.historyId&&(r=d(B.historyId))){for(a=r.stack.length-1;a>=B.index;a--){var U=r.stack[a];U&&U.destroy&&U.destroy(),r.stack.splice(a)}F=B.historyId}f.historyId===$.historyId?H=D:$.historyId!==f.historyId&&(H=I,r=d($.historyId),r&&r.parentHistoryId===f.parentHistoryId?H=O:(r=d(r.parentHistoryId),r&&r.historyId===f.historyId&&(H=M)))}else z=E;P<2&&(H=L),N.views[R]=this.createView({viewId:R,index:f.stack.length,historyId:f.historyId,backViewId:$&&$.viewId?$.viewId:null,forwardViewId:null,stateId:u,stateName:this.currentStateName(),stateParams:g(),url:j,canSwipeBack:y(c,t)}),f.stack.push(N.views[R])}if(_&&_(),i.cancel(S),b){if(b.disableAnimate&&(H=L),b.disableBack&&(N.views[R].backViewId=null),b.historyRoot){for(a=0;a<f.stack.length;a++)f.stack[a].viewId===R?(f.stack[a].index=0,f.stack[a].backViewId=f.stack[a].forwardViewId=null):delete N.views[f.stack[a].viewId];f.stack=[N.views[R]]}b=null}if(m(R),N.backView&&F==N.backView.historyId&&u==N.backView.stateId&&j==N.backView.url)for(a=0;a<f.stack.length;a++)if(f.stack[a].viewId==R){z="dupNav",H=L,a>0&&(f.stack[a-1].forwardViewId=null),N.forwardView=null,N.currentView.index=N.backView.index,N.currentView.backViewId=N.backView.backViewId,N.backView=l(N.backView),f.stack.splice(a,1);break}return f.cursor=N.currentView.index,{viewId:R,action:z,direction:H,historyId:F,enableBack:this.enabledBack(N.currentView),isHistoryRoot:0===N.currentView.index,ele:c}},registerHistory:function(e){e.$historyId=ionic.Utils.nextUid()},createView:function(e){var t=new V;return t.initialize(e)},getViewById:s,viewHistory:function(){return N},currentView:function(e){return arguments.length&&(N.currentView=e),N.currentView},currentHistoryId:function(){return N.currentView?N.currentView.historyId:null},currentTitle:function(e){if(N.currentView)return arguments.length&&(N.currentView.title=e),N.currentView.title},backView:function(e){return arguments.length&&(N.backView=e),N.backView},backTitle:function(e){var t=e&&s(e.backViewId)||N.backView;return t&&t.title},forwardView:function(e){return arguments.length&&(N.forwardView=e),N.forwardView},currentStateName:function(){return t&&t.current?t.current.name:null},isCurrentStateNavView:function(e){return!!(t&&t.current&&t.current.views&&t.current.views[e])},goToHistoryRoot:function(e){if(e){var t=d(e);if(t&&t.stack.length){if(N.currentView&&N.currentView.viewId===t.stack[0].viewId)return;x={viewId:t.stack[0].viewId,action:C,direction:A},t.stack[0].go()}}},goBack:function(e){if(u(e)&&e!==-1){if(e>-1)return;var t=N.histories[this.currentHistoryId()],n=t.cursor+e+1;n<1&&(n=1),t.cursor=n,m(t.stack[n].viewId);for(var r=n-1,o=[],a=s(t.stack[r].forwardViewId);a&&(o.push(a.stateId||a.viewId),r++,!(r>=t.stack.length));)a=s(t.stack[r].forwardViewId);var c=this;o.length&&i(function(){c.clearCache(o)},600)}N.backView&&N.backView.go()},enabledBack:function(e){var t=l(e);return!(!t||t.historyId!==e.historyId)},clearHistory:function(){var e=N.histories,t=N.currentView;if(e)for(var n in e)e[n].stack&&(e[n].stack=[],e[n].cursor=-1),t&&t.historyId===n?(t.backViewId=t.forwardViewId=null,e[n].stack.push(t)):e[n].destroy&&e[n].destroy();for(var r in N.views)r!==t.viewId&&delete N.views[r];t&&m(t.viewId)},clearCache:function(e){return i(function(){a._instances.forEach(function(t){t.clearCache(e)})})},nextViewOptions:function(t){return _&&_(),arguments.length&&(i.cancel(S),null===t?b=t:(b=b||{},c(b,t),b.expire&&(_=e.$on("$stateChangeSuccess",function(){S=i(function(){b=null},b.expire)})))),b},isAbstractEle:function(e,t){return!!(t&&t.$$state&&t.$$state.self["abstract"])||!(!e||!$(e)&&!$(e.children()))},isActiveScope:function(e){if(!e)return!1;for(var t,n=e,r=this.currentHistoryId();n;){if(n.$$disconnected)return!1;if(!t&&n.hasOwnProperty("$historyId")&&(t=!0),r){if(n.hasOwnProperty("$historyId")&&r==n.$historyId)return!0;if(n.hasOwnProperty("$activeHistoryId")&&r==n.$activeHistoryId){if(n.hasOwnProperty("$historyId"))return!0;if(!t)return!0}}t&&n.hasOwnProperty("$activeHistoryId")&&(t=!1),n=n.$parent}return!r||"root"==r}}}]).run(["$rootScope","$state","$location","$document","$ionicPlatform","$ionicHistory","IONIC_BACK_PRIORITY",function(e,t,n,r,i,o,a){function s(e){var t=o.backView();return t?t.go():ionic.Platform.exitApp(),e.preventDefault(),!1}e.$on("$ionicView.beforeEnter",function(){ionic.keyboard&&ionic.keyboard.hide&&ionic.keyboard.hide()}),e.$on("$ionicHistory.change",function(e,r){if(!r)return null;var i=o.viewHistory(),a=r.historyId?i.histories[r.historyId]:null;if(a&&a.cursor>-1&&a.cursor<a.stack.length){var s=a.stack[a.cursor];return s.go(r)}!r.url&&r.uiSref&&(r.url=t.href(r.uiSref)),r.url&&(0===r.url.indexOf("#")&&(r.url=r.url.replace("#","")),r.url!==n.url()&&n.url(r.url))}),e.$ionicGoBack=function(e){o.goBack(e)},e.$on("$ionicView.afterEnter",function(e,t){t&&t.title&&(r[0].title=t.title)}),i.registerBackButtonAction(s,a.view)}]),s.provider("$ionicConfig",function(){function e(e,r){a.platform[e]=r,i.platform[e]={},t(a,a.platform[e]),n(a.platform[e],i.platform[e],"")}function t(e,n){for(var r in e)r!=o&&e.hasOwnProperty(r)&&(angular.isObject(e[r])?(u(n[r])||(n[r]={}),t(e[r],n[r])):u(n[r])||(n[r]=null))}function n(e,t,i){l(e,function(s,c){angular.isObject(e[c])?(t[c]={},n(e[c],t[c],i+"."+c)):t[c]=function(n){if(arguments.length)return e[c]=n,t;if(e[c]==o){var s=r(a.platform,ionic.Platform.platform()+i+"."+c);return s||s===!1?s:r(a.platform,"default"+i+"."+c)}return e[c]}})}function r(e,t){t=t.split(".");for(var n=0;n<t.length;n++){if(!e||!u(e[t[n]]))return null;e=e[t[n]]}return e}var i=this;i.platform={};var o="platform",a={views:{maxCache:o,forwardCache:o,transition:o,swipeBackEnabled:o,swipeBackHitWidth:o},navBar:{alignTitle:o,positionPrimaryButtons:o,positionSecondaryButtons:o,transition:o},backButton:{icon:o,text:o,previousTitleText:o},form:{checkbox:o,toggle:o},scrolling:{jsScrolling:o},spinner:{icon:o},tabs:{style:o,position:o},templates:{maxPrefetch:o},platform:{}};n(a,i,""),e("default",{views:{maxCache:10,forwardCache:!1,transition:"ios",swipeBackEnabled:!0,swipeBackHitWidth:45},navBar:{alignTitle:"center",positionPrimaryButtons:"left",positionSecondaryButtons:"right",transition:"view"},backButton:{icon:"ion-ios-arrow-back",text:"Back",previousTitleText:!0},form:{checkbox:"circle",toggle:"large"},scrolling:{jsScrolling:!0},spinner:{icon:"ios"},tabs:{style:"standard",position:"bottom"},templates:{maxPrefetch:30}}),e("ios",{}),e("android",{views:{transition:"android",swipeBackEnabled:!1},navBar:{alignTitle:"left",positionPrimaryButtons:"right",positionSecondaryButtons:"right"},backButton:{icon:"ion-android-arrow-back",text:!1,previousTitleText:!1},form:{checkbox:"square",toggle:"small"},spinner:{icon:"android"},tabs:{style:"striped",position:"top"}}),e("windowsphone",{spinner:{icon:"android"}}),i.transitions={views:{},navBar:{}},i.transitions.views.ios=function(e,t,n,r){function i(e,t,n,r){var i={};i[ionic.CSS.TRANSITION_DURATION]=o.shouldAnimate?"":0,i.opacity=t,r>-1&&(i.boxShadow="0 0 10px rgba(0,0,0,"+(o.shouldAnimate?.45*r:.3)+")"),i[ionic.CSS.TRANSFORM]="translate3d("+n+"%,0,0)",ionic.DomUtil.cachedStyles(e,i)}var o={run:function(r){"forward"==n?(i(e,1,99*(1-r),1-r),i(t,1-.1*r,r*-33,-1)):"back"==n?(i(e,1-.1*(1-r),(1-r)*-33,-1),i(t,1,100*r,1-r)):(i(e,1,0,-1),i(t,0,0,-1))},shouldAnimate:r&&("forward"==n||"back"==n)};return o},i.transitions.navBar.ios=function(e,t,n,r){function i(e,t,n,r){var i={};i[ionic.CSS.TRANSITION_DURATION]=s.shouldAnimate?"":"0ms",i.opacity=1===t?"":t,e.setCss("buttons-left",i),e.setCss("buttons-right",i),e.setCss("back-button",i),i[ionic.CSS.TRANSFORM]="translate3d("+r+"px,0,0)",e.setCss("back-text",i),i[ionic.CSS.TRANSFORM]="translate3d("+n+"px,0,0)",e.setCss("title",i)}function o(e,t,n){if(e&&t){var r=(e.titleTextX()+e.titleWidth())*(1-n),o=t&&(t.titleTextX()-e.backButtonTextLeft())*(1-n)||0;i(e,n,r,o)}}function a(e,t,n){if(e&&t){var r=(-(e.titleTextX()-t.backButtonTextLeft())-e.titleLeftRight())*n;i(e,1-n,r,0)}}var s={run:function(n){var r=e.controller(),i=t&&t.controller();"back"==s.direction?(a(r,i,1-n),o(i,r,1-n)):(o(r,i,n),a(i,r,n))},direction:n,shouldAnimate:r&&("forward"==n||"back"==n)};return s},i.transitions.views.android=function(e,t,n,r){function i(e,t){var n={};n[ionic.CSS.TRANSITION_DURATION]=o.shouldAnimate?"":0,n[ionic.CSS.TRANSFORM]="translate3d("+t+"%,0,0)",ionic.DomUtil.cachedStyles(e,n)}r=r&&("forward"==n||"back"==n);var o={run:function(r){"forward"==n?(i(e,99*(1-r)),i(t,r*-100)):"back"==n?(i(e,(1-r)*-100),i(t,100*r)):(i(e,0),i(t,0))},shouldAnimate:r};return o},i.transitions.navBar.android=function(e,t,n,r){function i(e,t){if(e){var n={};n.opacity=1===t?"":t,e.setCss("buttons-left",n),e.setCss("buttons-right",n),e.setCss("back-button",n),e.setCss("back-text",n),e.setCss("title",n)}}return{run:function(n){i(e.controller(),n),i(t&&t.controller(),1-n)},shouldAnimate:r&&("forward"==n||"back"==n)}},i.transitions.views.none=function(e,t){return{run:function(n){i.transitions.views.android(e,t,!1,!1).run(n)},shouldAnimate:!1}},i.transitions.navBar.none=function(e,t){return{run:function(n){i.transitions.navBar.ios(e,t,!1,!1).run(n),
i.transitions.navBar.android(e,t,!1,!1).run(n)},shouldAnimate:!1}},i.setPlatformConfig=e,i.$get=function(){return i}}).config(["$compileProvider",function(e){e.aHrefSanitizationWhitelist(/^\s*(https?|tel|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/),e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|x-wmapp0):|data:image\//)}]);var m='<div class="loading-container"><div class="loading"></div></div>',v="$ionicLoading instance.hide() has been deprecated. Use $ionicLoading.hide().",g="$ionicLoading instance.show() has been deprecated. Use $ionicLoading.show().",$="$ionicLoading instance.setContent() has been deprecated. Use $ionicLoading.show({ template: 'my content' }).";s.constant("$ionicLoadingConfig",{template:"<ion-spinner></ion-spinner>"}).factory("$ionicLoading",["$ionicLoadingConfig","$ionicBody","$ionicTemplateLoader","$ionicBackdrop","$timeout","$q","$log","$compile","$ionicPlatform","$rootScope","IONIC_BACK_PRIORITY",function(e,t,n,r,i,o,a,s,l,u,f){function d(){return w||(w=n.compile({template:m,appendTo:t.get()}).then(function(e){return e.show=function(a){var c=a.templateUrl?n.load(a.templateUrl):o.when(a.template||a.content||"");e.scope=a.scope||e.scope,e.isShown||(e.hasBackdrop=!a.noBackdrop&&a.showBackdrop!==!1,e.hasBackdrop&&(r.retain(),r.getElement().addClass("backdrop-loading"))),a.duration&&(i.cancel(e.durationTimeout),e.durationTimeout=i(angular.bind(e,e.hide),+a.duration)),b(),b=l.registerBackButtonAction(p,f.loading),c.then(function(n){if(n){var r=e.element.children();r.html(n),s(r.contents())(e.scope)}e.isShown&&(e.element.addClass("visible"),ionic.requestAnimationFrame(function(){e.isShown&&(e.element.addClass("active"),t.addClass("loading-active"))}))}),e.isShown=!0},e.hide=function(){b(),e.isShown&&(e.hasBackdrop&&(r.release(),r.getElement().removeClass("backdrop-loading")),e.element.removeClass("active"),t.removeClass("loading-active"),setTimeout(function(){!e.isShown&&e.element.removeClass("visible")},200)),i.cancel(e.durationTimeout),e.isShown=!1},e})),w}function h(t){t=c({},e||{},t||{});var n=t.delay||t.showDelay||0;return _(),S(),t.hideOnStateChange&&(_=u.$on("$stateChangeSuccess",y),S=u.$on("$stateChangeError",y)),i.cancel(x),x=i(p,n),x.then(d).then(function(e){return e.show(t)}),{hide:function(){return a.error(v),y.apply(this,arguments)},show:function(){return a.error(g),h.apply(this,arguments)},setContent:function(e){return a.error($),d().then(function(t){t.show({template:e})})}}}function y(){_(),S(),i.cancel(x),d().then(function(e){e.hide()})}var w,b=p,_=p,S=p,x=o.when();return{show:h,hide:y,_getLoader:d}}]),s.factory("$ionicModal",["$rootScope","$ionicBody","$compile","$timeout","$ionicPlatform","$ionicTemplateLoader","$$q","$log","$ionicClickBlock","$window","IONIC_BACK_PRIORITY",function(e,t,n,r,i,o,a,s,l,u,f){var d=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)return s.error("Cannot call "+n.viewType+".show() after remove(). Please create a new "+n.viewType+" instance."),a.when();l.show(600),g.add(n);var o=h(n.modalEl);n.el.classList.remove("hide"),r(function(){n._isShown&&t.addClass(n.viewType+"-open")},400,!1),n.el.parentElement||(o.addClass(n.animation),t.append(n.el));var c=o.data("$$ionicScrollController");return c&&c.resize(),e&&n.positionView&&(n.positionView(e,o),n._onWindowResize=function(){n._isShown&&n.positionView(e,o)},ionic.on("resize",n._onWindowResize,window)),o.addClass("ng-enter active").removeClass("ng-leave ng-leave-active"),n._isShown=!0,n._deregisterBackButton=i.registerBackButtonAction(n.hardwareBackButtonClose?angular.bind(n,n.hide):p,f.modal),ionic.views.Modal.prototype.show.call(n),r(function(){n._isShown&&(o.addClass("ng-enter-active"),ionic.trigger("resize"),n.scope.$parent&&n.scope.$parent.$broadcast(n.viewType+".shown",n),n.el.classList.add("active"),n.scope.$broadcast("$ionicHeader.align"))},20),r(function(){n._isShown&&n.$el.on("click",function(e){n.backdropClickToClose&&e.target===n.el&&g.isHighest(n)&&n.hide()})},400)},hide:function(){var e=this,n=h(e.modalEl);return l.show(600),g.remove(e),e.el.classList.remove("active"),n.addClass("ng-leave"),r(function(){e._isShown||n.addClass("ng-leave-active").removeClass("ng-enter ng-enter-active active")},20,!1),e.$el.off("click"),e._isShown=!1,e.scope.$parent&&e.scope.$parent.$broadcast(e.viewType+".hidden",e),e._deregisterBackButton&&e._deregisterBackButton(),ionic.views.Modal.prototype.hide.call(e),e.positionView&&ionic.off("resize",e._onWindowResize,window),r(function(){t.removeClass(e.viewType+"-open"),e.el.classList.add("hide")},e.hideDelay||320)},remove:function(){var e=this;return e.scope.$parent&&e.scope.$parent.$broadcast(e.viewType+".removed",e),e.hide().then(function(){e.scope.$destroy(),e.$el.remove()})},isShown:function(){return!!this._isShown}}),m=function(t,r){var i=r.scope&&r.scope.$new()||e.$new(!0);r.viewType=r.viewType||"modal",c(i,{$hasHeader:!1,$hasSubheader:!1,$hasFooter:!1,$hasSubfooter:!1,$hasTabs:!1,$hasTabsTop:!1});var o=n("<ion-"+r.viewType+">"+t+"</ion-"+r.viewType+">")(i);r.$el=o,r.el=o[0],r.modalEl=r.el.querySelector("."+r.viewType);var a=new d(r);return a.scope=i,r.scope||(i[r.viewType]=a),a},v=[],g={add:function(e){v.push(e)},remove:function(e){var t=v.indexOf(e);t>-1&&t<v.length&&v.splice(t,1)},isHighest:function(e){var t=v.indexOf(e);return t>-1&&t===v.length-1}};return{fromTemplate:function(e,t){var n=m(e,t||{});return n},fromTemplateUrl:function(e,t,n){var r;return angular.isFunction(t)&&(r=t,t=n),o.load(e).then(function(e){var n=m(e,t||{});return r&&r(n),n})},stack:g}}]),s.service("$ionicNavBarDelegate",ionic.DelegateService(["align","showBackButton","showBar","title","changeTitle","setTitle","getTitle","back","getPreviousTitle"])),s.service("$ionicNavViewDelegate",ionic.DelegateService(["clearCache"])),s.constant("IONIC_BACK_PRIORITY",{view:100,sideMenu:150,modal:200,actionSheet:300,popup:400,loading:500}).provider("$ionicPlatform",function(){return{$get:["$q",function(e){var t={onHardwareBackButton:function(e){ionic.Platform.ready(function(){document.addEventListener("backbutton",e,!1)})},offHardwareBackButton:function(e){ionic.Platform.ready(function(){document.removeEventListener("backbutton",e)})},$backButtonActions:{},registerBackButtonAction:function(e,n,r){t._hasBackButtonHandler||(t.$backButtonActions={},t.onHardwareBackButton(t.hardwareBackButtonClick),t._hasBackButtonHandler=!0);var i={id:r?r:ionic.Utils.nextUid(),priority:n?n:0,fn:e};return t.$backButtonActions[i.id]=i,function(){delete t.$backButtonActions[i.id]}},hardwareBackButtonClick:function(e){var n,r;for(r in t.$backButtonActions)(!n||t.$backButtonActions[r].priority>=n.priority)&&(n=t.$backButtonActions[r]);if(n)return n.fn(e),n},is:function(e){return ionic.Platform.is(e)},on:function(e,t){return ionic.Platform.ready(function(){document.addEventListener(e,t,!1)}),function(){ionic.Platform.ready(function(){document.removeEventListener(e,t)})}},ready:function(t){var n=e.defer();return ionic.Platform.ready(function(){n.resolve(),t&&t()}),n.promise}};return t}]}}),s.factory("$ionicPopover",["$ionicModal","$ionicPosition","$document","$window",function(e,t,n,r){function i(e,n){var i=h(e.target||e),a=t.offset(i),s=n.prop("offsetWidth"),c=n.prop("offsetHeight"),l=r.innerWidth,u=r.innerHeight,f={left:a.left+a.width/2-s/2},d=h(n[0].querySelector(".popover-arrow"));f.left<o?f.left=o:f.left+s+o>l&&(f.left=l-s-o),a.top+a.height+c>u&&a.top-c>0?(f.top=a.top-c,n.addClass("popover-bottom")):(f.top=a.top+a.height,n.removeClass("popover-bottom")),d.css({left:a.left+a.width/2-d.prop("offsetWidth")/2-f.left+"px"}),n.css({top:f.top+"px",left:f.left+"px",marginLeft:"0",opacity:"1"})}var o=6,a={viewType:"popover",hideDelay:1,animation:"none",positionView:i};return{fromTemplate:function(t,n){return e.fromTemplate(t,ionic.Utils.extend(a,n||{}))},fromTemplateUrl:function(t,n){return e.fromTemplateUrl(t,ionic.Utils.extend(a,n||{}))}}}]);var y='<div class="popup-container" ng-class="cssClass"><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" ng-show="buttons.length"><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>';s.factory("$ionicPopup",["$ionicTemplateLoader","$ionicBackdrop","$q","$timeout","$rootScope","$ionicBody","$compile","$ionicPlatform","$ionicModal","IONIC_BACK_PRIORITY",function(e,t,n,r,i,o,a,s,l,u){function f(t){t=c({scope:null,title:"",buttons:[]},t||{});var s={};return s.scope=(t.scope||i).$new(),s.element=h(y),s.responseDeferred=n.defer(),o.get().appendChild(s.element[0]),a(s.element)(s.scope),c(s.scope,{title:t.title,buttons:t.buttons,subTitle:t.subTitle,cssClass:t.cssClass,$buttonTapped:function(e,t){var n=(e.onTap||p)(t);t=t.originalEvent||t,t.defaultPrevented||s.responseDeferred.resolve(n)}}),n.when(t.templateUrl?e.load(t.templateUrl):t.template||t.content||"").then(function(e){var t=h(s.element[0].querySelector(".popup-body"));e?(t.html(e),a(t.contents())(s.scope)):t.remove()}),s.show=function(){s.isShown||s.removed||(l.stack.add(s),s.isShown=!0,ionic.requestAnimationFrame(function(){s.isShown&&(s.element.removeClass("popup-hidden"),s.element.addClass("popup-showing active"),v(s.element))}))},s.hide=function(e){return e=e||p,s.isShown?(l.stack.remove(s),s.isShown=!1,s.element.removeClass("active"),s.element.addClass("popup-hidden"),void r(e,250,!1)):e()},s.remove=function(){!s.removed&&l.stack.isHighest(s)&&(s.hide(function(){s.element.remove(),s.scope.$destroy()}),s.removed=!0)},s}function d(){var e=_[_.length-1];e&&e.responseDeferred.resolve()}function m(e){function n(){_.push(i),r(i.show,a,!1),i.responseDeferred.promise.then(function(e){var n=_.indexOf(i);return n!==-1&&_.splice(n,1),_.length>0?_[_.length-1].show():(t.release(),r(function(){_.length||o.removeClass("popup-open")},400,!1),(S._backButtonActionDone||p)()),i.remove(),e})}var i=S._createPopup(e),a=0;return _.length>0?(_[_.length-1].hide(),a=b.stackPushDelay):(o.addClass("popup-open"),t.retain(),S._backButtonActionDone=s.registerBackButtonAction(d,u.popup)),i.responseDeferred.promise.close=function(e){i.removed||i.responseDeferred.resolve(e)},i.responseDeferred.notify({close:i.responseDeferred.close}),n(),i.responseDeferred.promise}function v(e){var t=e[0].querySelector("[autofocus]");t&&t.focus()}function g(e){return m(c({buttons:[{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(){return!0}}]},e||{}))}function $(e){return m(c({buttons:[{text:e.cancelText||"Cancel",type:e.cancelType||"button-default",onTap:function(){return!1}},{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(){return!0}}]},e||{}))}function w(e){var t=i.$new(!0);t.data={};var n="";return e.template&&/<[a-z][\s\S]*>/i.test(e.template)===!1&&(n="<span>"+e.template+"</span>",delete e.template),m(c({template:n+'<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(){}},{text:e.okText||"OK",type:e.okType||"button-positive",onTap:function(){return t.data.response||""}}]},e||{}))}var b={stackPushDelay:75},_=[],S={show:m,alert:g,confirm:$,prompt:w,_createPopup:f,_popupStack:_};return S}]),s.factory("$ionicPosition",["$document","$window",function(e,t){function n(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}function r(e){return"static"===(n(e,"position")||"static")}var i=function(t){for(var n=e[0],i=t.offsetParent||n;i&&i!==n&&r(i);)i=i.offsetParent;return i||n};return{position:function(t){var n=this.offset(t),r={top:0,left:0},o=i(t[0]);o!=e[0]&&(r=this.offset(h(o)),r.top+=o.clientTop-o.scrollTop,r.left+=o.clientLeft-o.scrollLeft);var a=t[0].getBoundingClientRect();return{width:a.width||t.prop("offsetWidth"),height:a.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)}}}}]),s.service("$ionicScrollDelegate",ionic.DelegateService(["resize","scrollTop","scrollBottom","scrollTo","scrollBy","zoomTo","zoomBy","getScrollPosition","anchorScroll","freezeScroll","freezeAllScrolls","getScrollView"])),s.service("$ionicSideMenuDelegate",ionic.DelegateService(["toggleLeft","toggleRight","getOpenRatio","isOpen","isOpenLeft","isOpenRight","canDragContent","edgeDragThreshold"])),s.service("$ionicSlideBoxDelegate",ionic.DelegateService(["update","slide","select","enableSlide","previous","next","stop","autoPlay","start","currentIndex","selected","slidesCount","count","loop"])),s.service("$ionicTabsDelegate",ionic.DelegateService(["select","selectedIndex"])),function(){var e=[];s.factory("$ionicTemplateCache",["$http","$templateCache","$timeout",function(t,n,r){function i(e){return"undefined"==typeof e?o():(d(e)&&(e=[e]),l(e,function(e){s.push(e)}),void(a&&o()))}function o(){var e;if(i._runCount++,a=!0,0!==s.length){for(var c=0;c<4&&(e=s.pop());)d(e)&&t.get(e,{cache:n}),c++;s.length&&r(o,1e3)}}var a,s=e;return i._runCount=0,i}]).config(["$stateProvider","$ionicConfigProvider",function(t,n){var r=t.state;t.state=function(i,o){if("object"==typeof o){var a=o.prefetchTemplate!==!1&&e.length<n.templates.maxPrefetch();if(a&&d(o.templateUrl)&&e.push(o.templateUrl),angular.isObject(o.views))for(var s in o.views)a=o.views[s].prefetchTemplate!==!1&&e.length<n.templates.maxPrefetch(),a&&d(o.views[s].templateUrl)&&e.push(o.views[s].templateUrl)}return r.call(t,i,o)}}]).run(["$ionicTemplateCache",function(e){e()}])}(),s.factory("$ionicTemplateLoader",["$compile","$controller","$http","$q","$rootScope","$templateCache",function(e,t,n,r,i,o){function a(e){return n.get(e,{cache:o}).then(function(e){return e.data&&e.data.trim()})}function s(n){n=c({template:"",templateUrl:"",scope:null,controller:null,locals:{},appendTo:null},n||{});var o=n.templateUrl?this.load(n.templateUrl):r.when(n.template);return o.then(function(r){var o,a=n.scope||i.$new(),s=h("<div>").html(r).contents();return n.controller&&(o=t(n.controller,c(n.locals,{$scope:a})),s.children().data("$ngControllerController",o)),n.appendTo&&h(n.appendTo).append(s),e(s)(a),{element:s,scope:a}})}return{load:a,compile:s}}]),s.factory("$ionicViewService",["$ionicHistory","$log",function(e,t){function n(e,n){t.warn("$ionicViewService"+e+" is deprecated, please use $ionicHistory"+n+" instead: http://ionicframework.com/docs/nightly/api/service/$ionicHistory/")}n("","");var r={getCurrentView:"currentView",getBackView:"backView",getForwardView:"forwardView",getCurrentStateName:"currentStateName",nextViewOptions:"nextViewOptions",clearHistory:"clearHistory"};return l(r,function(t,i){r[i]=function(){return n("."+i,"."+t),e[t].apply(this,arguments)}}),r}]),s.factory("$ionicViewSwitcher",["$timeout","$document","$q","$ionicClickBlock","$ionicConfig","$ionicNavBarDelegate",function(e,t,n,r,i,o){function a(e,t){return s(e)["abstract"]?s(e).name:t?t.stateId||t.viewId:ionic.Utils.nextUid()}function s(e){return e&&e.$$state&&e.$$state.self||{}}function f(e,t,n,r){var o=s(e),a=v||I(t,"view-transition")||o.viewTransition||i.views.transition()||"ios",l=i.navBar.transition();return n=g||I(t,"view-direction")||o.viewDirection||n||"none",c(d(r),{transition:a,navBarTransition:"view"===l?a:l,direction:n,shouldAnimate:"none"!==a&&"none"!==n})}function d(e){return e=e||{},{viewId:e.viewId,historyId:e.historyId,stateId:e.stateId,stateName:e.stateName,stateParams:e.stateParams}}function p(e,t){return arguments.length>1?void I(e,E,t):I(e,E)}function m(e){if(e&&e.length){var t=e.scope();t&&(t.$emit("$ionicView.unloaded",e.data(x)),t.$destroy()),e.remove()}}var v,g,$="webkitTransitionEnd transitionend",y="$noCache",w="$destroyEle",b="$eleId",_="$accessed",S="$fallbackTimer",x="$viewData",E="nav-view",T="active",C="cached",k="stage",A=0;ionic.transition=ionic.transition||{},ionic.transition.isActive=!1;var D,I=ionic.DomUtil.cachedAttr,M=[],O=1100,L={create:function(t,l,h,E,D,P){var N,V,B,R=++A,z={init:function(e,t){L.isTransitioning(!0),z.loadViewElements(e),z.render(e,function(){t&&t()})},loadViewElements:function(e){var n,r,i,o=t.getViewElements(),s=a(l,h),c=t.activeEleId();for(n=0,r=o.length;n<r&&(i=o.eq(n),i.data(b)===s?i.data(y)?(i.data(b,s+ionic.Utils.nextUid()),i.data(w,!0)):N=i:u(c)&&i.data(b)===c&&(V=i),!N||!V);n++);B=!!N,B||(N=e.ele||L.createViewEle(l),N.data(b,s)),P&&t.activeEleId(s),e.ele=null},render:function(e,n){if(B)ionic.Utils.reconnectScope(N.scope());else{p(N,k);var r=f(l,N,e.direction,h),o=i.transitions.views[r.transition]||i.transitions.views.none;o(N,null,r.direction,!0).run(0),N.data(x,{viewId:r.viewId,historyId:r.historyId,stateName:r.stateName,stateParams:r.stateParams}),s(l).cache!==!1&&"false"!==s(l).cache&&"false"!=N.attr("cache-view")&&0!==i.views.maxCache()||N.data(y,!0);var a=t.appendViewElement(N,l);delete r.direction,delete r.transition,a.$emit("$ionicView.loaded",r)}N.data(_,Date.now()),n&&n()},transition:function(a,s,u){function m(){p(N,q.shouldAnimate?"entering":T),p(V,q.shouldAnimate?"leaving":C),q.run(1),o._instances.forEach(function(e){e.triggerTransitionStart(R)}),q.shouldAnimate||w()}function y(e){e.target===this&&w()}function w(){w.x||(w.x=!0,N.off($,y),e.cancel(N.data(S)),V&&e.cancel(V.data(S)),z.emit("after",H,F),x&&x.resolve(t),R===A&&(n.all(M).then(L.transitionEnd),z.cleanup(H)),o._instances.forEach(function(e){e.triggerTransitionEnd()}),v=g=h=E=N=V=null)}function b(e){e.target===this&&_()}function _(){p(N,C),p(V,T),N.off($,b),e.cancel(N.data(S)),L.transitionEnd([t])}var x,H=f(l,N,a,h),F=c(c({},H),d(E));H.transitionId=F.transitionId=R,H.fromCache=!!B,H.enableBack=!!s,H.renderStart=D,H.renderEnd=P,I(N.parent(),"nav-view-transition",H.transition),I(N.parent(),"nav-view-direction",H.direction),e.cancel(N.data(S));var j=i.transitions.views[H.transition]||i.transitions.views.none,q=j(N,V,H.direction,H.shouldAnimate&&u&&P);if(q.shouldAnimate&&(N.on($,y),N.data(S,e(w,O)),r.show(O)),D&&(z.emit("before",H,F),p(N,k),q.run(0)),P&&(x=n.defer(),M.push(x.promise)),D&&P)e(m,16);else{if(!P)return p(N,"entering"),p(V,"leaving"),{run:q.run,cancel:function(t){t?(N.on($,b),N.data(S,e(_,O)),r.show(O)):_(),q.shouldAnimate=t,q.run(0),q=null}};P&&m()}},emit:function(e,t,n){var r=N.scope(),i=V&&V.scope();"after"==e&&(r&&r.$emit("$ionicView.enter",t),i?i.$emit("$ionicView.leave",n):r&&n&&n.viewId&&r.$emit("$ionicNavView.leave",n)),r&&r.$emit("$ionicView."+e+"Enter",t),i?i.$emit("$ionicView."+e+"Leave",n):r&&n&&n.viewId&&r.$emit("$ionicNavView."+e+"Leave",n)},cleanup:function(e){V&&"back"==e.direction&&!i.views.forwardCache()&&m(V);var n,r,o,a=t.getViewElements(),s=a.length,c=s-1>i.views.maxCache(),l=Date.now();for(n=0;n<s;n++)r=a.eq(n),c&&r.data(_)<l?(l=r.data(_),o=a.eq(n)):r.data(w)&&p(r)!=T&&m(r);m(o),N.data(y)&&N.data(w,!0)},enteringEle:function(){return N},leavingEle:function(){return V}};return z},transitionEnd:function(e){l(e,function(e){e.transitionEnd()}),L.isTransitioning(!1),r.hide(),M=[]},nextTransition:function(e){v=e},nextDirection:function(e){g=e},isTransitioning:function(t){return arguments.length&&(ionic.transition.isActive=!!t,e.cancel(D),t&&(D=e(function(){L.isTransitioning(!1)},999))),ionic.transition.isActive},createViewEle:function(e){var n=t[0].createElement("div");return e&&e.$template&&(n.innerHTML=e.$template,1===n.children.length)?(n.children[0].classList.add("pane"),h(n.children[0])):(n.className="pane",h(n))},viewEleIsActive:function(e,t){p(e,t?T:C)},getTransitionData:f,navViewAttr:p,destroyViewEle:m};return L}]),s.config(["$provide",function(e){e.decorator("$compile",["$delegate",function(e){return e.$$addScopeInfo=function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)},e}])}]),s.config(["$provide",function(e){function t(e,t){return e.__hash=e.hash,e.hash=function(n){return u(n)&&n.length>0&&t(function(){var e=document.querySelector(".scroll-content");e&&(e.scrollTop=0)},0,!1),e.__hash(n)},e}e.decorator("$location",["$delegate","$timeout",t])}]),s.controller("$ionicHeaderBar",["$scope","$element","$attrs","$q","$ionicConfig","$ionicHistory",function(e,t,n,r,i,o){function a(e){return x[e]||(x[e]=t[0].querySelector("."+e)),x[e]}var s="title",c="back-text",l="back-button",u="default-title",f="previous-title",d="hide",h=this,p="",m="",v=0,g=0,$="",y=!1,w=!0,b=!0,_=!1,S=0;h.beforeEnter=function(t){e.$broadcast("$ionicView.beforeEnter",t)},h.title=function(e){return arguments.length&&e!==p&&(a(s).innerHTML=e,p=e,S=0),p},h.enableBack=function(e,t){return arguments.length&&(y=e,t||h.updateBackButton()),y},h.showBack=function(e,t){return arguments.length&&(w=e,t||h.updateBackButton()),w},h.showNavBack=function(e){b=e,h.updateBackButton()},h.updateBackButton=function(){var e;(w&&b&&y)!==_&&(_=w&&b&&y,e=a(l),e&&e.classList[_?"remove":"add"](d)),y&&(e=e||a(l),e&&(h.backButtonIcon!==i.backButton.icon()&&(e=a(l+" .icon"),e&&(h.backButtonIcon=i.backButton.icon(),e.className="icon "+h.backButtonIcon)),h.backButtonText!==i.backButton.text()&&(e=a(l+" .back-text"),e&&(e.textContent=h.backButtonText=i.backButton.text()))))},h.titleTextWidth=function(){if(!S){var e=ionic.DomUtil.getTextBounds(a(s));S=Math.min(e&&e.width||30)}return S},h.titleWidth=function(){var e=h.titleTextWidth(),t=a(s).offsetWidth;return t<e&&(e=t+(v-g-5)),e},h.titleTextX=function(){return t[0].offsetWidth/2-h.titleWidth()/2},h.titleLeftRight=function(){return v-g},h.backButtonTextLeft=function(){for(var e=0,t=a(c);t;)e+=t.offsetLeft,t=t.parentElement;return e},h.resetBackButton=function(e){if(i.backButton.previousTitleText()){var t=a(f);if(t){t.classList.remove(d);var n=e&&o.getViewById(e.viewId),r=o.backTitle(n);r!==m&&(m=t.innerHTML=r)}var s=a(u);s&&s.classList.remove(d)}},h.align=function(e){var r=a(s);e=e||n.alignTitle||i.navBar.alignTitle();var o=h.calcWidths(e,!1);if(w&&m&&i.backButton.previousTitleText()){var c=h.calcWidths(e,!0),l=t[0].offsetWidth-c.titleLeft-c.titleRight;h.titleTextWidth()<=l&&(o=c)}return h.updatePositions(r,o.titleLeft,o.titleRight,o.buttonsLeft,o.buttonsRight,o.css,o.showPrevTitle)},h.calcWidths=function(e,n){var r,i,o,h,p,m,v,g,$,y=a(s),b=a(l),_=t[0].childNodes,S=0,x=0,E=0,T=0,C="",k=0;for(r=0;r<_.length;r++){if(p=_[r],v=0,1==p.nodeType){if(p===y){$=!0;continue}if(p.classList.contains(d))continue;if(w&&p===b){for(i=0;i<p.childNodes.length;i++)if(h=p.childNodes[i],1==h.nodeType)if(h.classList.contains(c))for(o=0;o<h.children.length;o++)if(m=h.children[o],n){if(m.classList.contains(u))continue;k+=m.offsetWidth}else{if(m.classList.contains(f))continue;k+=m.offsetWidth}else k+=h.offsetWidth;else 3==h.nodeType&&h.nodeValue.trim()&&(g=ionic.DomUtil.getTextBounds(h),k+=g&&g.width||0);v=k||p.offsetWidth}else v=p.offsetWidth}else 3==p.nodeType&&p.nodeValue.trim()&&(g=ionic.DomUtil.getTextBounds(p),v=g&&g.width||0);$?x+=v:S+=v}if("left"==e)C="title-left",S&&(E=S+15),x&&(T=x+15);else if("right"==e)C="title-right",S&&(E=S+15),x&&(T=x+15);else{var A=Math.max(S,x)+10;A>10&&(E=T=A)}return{backButtonWidth:k,buttonsLeft:S,buttonsRight:x,titleLeft:E,titleRight:T,showPrevTitle:n,css:C}},h.updatePositions=function(e,n,o,s,c,l,p){var m=r.defer();if(e&&(n!==v&&(e.style.left=n?n+"px":"",v=n),o!==g&&(e.style.right=o?o+"px":"",g=o),l!==$&&(l&&e.classList.add(l),$&&e.classList.remove($),$=l)),i.backButton.previousTitleText()){var y=a(f),w=a(u);y&&y.classList[p?"remove":"add"](d),w&&w.classList[p?"add":"remove"](d)}return ionic.requestAnimationFrame(function(){if(e&&e.offsetWidth+10<e.scrollWidth){var n=c+5,r=t[0].offsetWidth-v-h.titleTextWidth()-20;o=r<n?n:r,o!==g&&(e.style.right=o+"px",g=o)}m.resolve()}),m.promise},h.setCss=function(e,t){ionic.DomUtil.cachedStyles(a(e),t)};var x={};e.$on("$destroy",function(){for(var e in x)x[e]=null})}]),s.controller("$ionInfiniteScroll",["$scope","$attrs","$element","$timeout",function(e,t,n,r){function i(){ionic.requestAnimationFrame(function(){n[0].classList.add("active")}),c.isLoading=!0,e.$parent&&e.$parent.$apply(t.onInfinite||"")}function o(){ionic.requestAnimationFrame(function(){n[0].classList.remove("active")}),r(function(){c.jsScrolling&&c.scrollView.resize(),(c.jsScrolling&&c.scrollView.__container&&c.scrollView.__container.offsetHeight>0||!c.jsScrolling)&&c.checkBounds()},30,!1),c.isLoading=!1}function a(){if(!c.isLoading){var e={};if(c.jsScrolling){e=c.getJSMaxScroll();var t=c.scrollView.getValues();(e.left!==-1&&t.left>=e.left||e.top!==-1&&t.top>=e.top)&&i()}else e=c.getNativeMaxScroll(),(e.left!==-1&&c.scrollEl.scrollLeft>=e.left-c.scrollEl.clientWidth||e.top!==-1&&c.scrollEl.scrollTop>=e.top-c.scrollEl.clientHeight)&&i()}}function s(e){var n=(t.distance||"2.5%").trim(),r=n.indexOf("%")!==-1;return r?e*(1-parseFloat(n)/100):e-parseFloat(n)}var c=this;c.isLoading=!1,e.icon=function(){return u(t.icon)?t.icon:"ion-load-d"},e.spinner=function(){return u(t.spinner)?t.spinner:""},e.$on("scroll.infiniteScrollComplete",function(){o()}),e.$on("$destroy",function(){c.scrollCtrl&&c.scrollCtrl.$element&&c.scrollCtrl.$element.off("scroll",c.checkBounds),c.scrollEl&&c.scrollEl.removeEventListener&&c.scrollEl.removeEventListener("scroll",c.checkBounds)}),c.checkBounds=ionic.Utils.throttle(a,300),c.getJSMaxScroll=function(){var e=c.scrollView.getScrollMax();return{left:c.scrollView.options.scrollingX?s(e.left):-1,top:c.scrollView.options.scrollingY?s(e.top):-1}},c.getNativeMaxScroll=function(){var e={left:c.scrollEl.scrollWidth,top:c.scrollEl.scrollHeight},t=window.getComputedStyle(c.scrollEl)||{};return{left:"scroll"===t.overflowX||"auto"===t.overflowX||"scroll"===c.scrollEl.style["overflow-x"]?s(e.left):-1,top:"scroll"===t.overflowY||"auto"===t.overflowY||"scroll"===c.scrollEl.style["overflow-y"]?s(e.top):-1}},c.__finishInfiniteScroll=o}]),s.service("$ionicListDelegate",ionic.DelegateService(["showReorder","showDelete","canSwipeItems","closeOptionButtons"])).controller("$ionicList",["$scope","$attrs","$ionicListDelegate","$ionicHistory",function(e,t,n,r){var i=this,o=!0,a=!1,s=!1,c=n._registerInstance(i,t.delegateHandle,function(){return r.isActiveScope(e)});e.$on("$destroy",c),i.showReorder=function(e){return arguments.length&&(a=!!e),a},i.showDelete=function(e){return arguments.length&&(s=!!e),s},i.canSwipeItems=function(e){return arguments.length&&(o=!!e),o},i.closeOptionButtons=function(){i.listView&&i.listView.clearDragEffects()}}]),s.controller("$ionicNavBar",["$scope","$element","$attrs","$compile","$timeout","$ionicNavBarDelegate","$ionicConfig","$ionicHistory",function(e,t,n,r,i,o,a,s){function c(e,t){var n=console.warn||console.log;n&&n.call(console,"navBarController."+e+" is deprecated, please use "+t+" instead")}function f(e){if(k[e])return h(k[e])}function d(){for(var e=0;e<C.length;e++)if(C[e].isActive)return C[e]}function p(){for(var e=0;e<C.length;e++)if(!C[e].isActive)return C[e]}function m(e,t){e&&ionic.DomUtil.cachedAttr(e.containerEle(),"nav-bar",t)}function v(e){ionic.DomUtil.cachedAttr(t,"nav-swipe",e)}var g,$,y,w="hide",b="$ionNavBarController",_="primaryButtons",S="secondaryButtons",x="backButton",E="primaryButtons secondaryButtons leftButtons rightButtons title".split(" "),T=this,C=[],k={},A=!0;t.parent().data(b,T);var D=n.delegateHandle||"navBar"+ionic.Utils.nextUid(),I=o._registerInstance(T,D);T.init=function(){t.addClass("nav-bar-container"),ionic.DomUtil.cachedAttr(t,"nav-bar-transition",a.views.transition()),T.createHeaderBar(!1),T.createHeaderBar(!0),e.$emit("ionNavBar.init",D)},T.createHeaderBar=function(i){function o(e,t){e&&("title"===t?v.append(e):"rightButtons"==t||t==S&&"left"!=a.navBar.positionSecondaryButtons()||t==_&&"right"==a.navBar.positionPrimaryButtons()?(m||(m=h('<div class="buttons buttons-right">'),d.append(m)),t==S?m.append(e):m.prepend(e)):(p||(p=h('<div class="buttons buttons-left">'),g[x]?g[x].after(p):d.prepend(p)),t==S?p.append(e):p.prepend(e)))}var s=h('<div class="nav-bar-block">');ionic.DomUtil.cachedAttr(s,"nav-bar",i?"active":"cached");var c=n.alignTitle||a.navBar.alignTitle(),d=h("<ion-header-bar>").addClass(n["class"]).attr("align-title",c);u(n.noTapScroll)&&d.attr("no-tap-scroll",n.noTapScroll);var p,m,v=h('<div class="title title-'+c+'">'),g={},$={};g[x]=f(x),g[x]&&d.append(g[x]),d.append(v),l(E,function(e){g[e]=f(e),o(g[e],e)});for(var y=0;y<d[0].children.length;y++)d[0].children[y].classList.add("header-item");s.append(d),t.append(r(s)(e.$new()));var b=d.data("$ionHeaderBarController");b.backButtonIcon=a.backButton.icon(),b.backButtonText=a.backButton.text();var T={isActive:i,title:function(e){b.title(e)},setItem:function(e,t){T.removeItem(t),e?("title"===t&&T.title(""),o(e,t),g[t]&&g[t].addClass(w),$[t]=e):g[t]&&g[t].removeClass(w)},removeItem:function(e){$[e]&&($[e].scope().$destroy(),$[e].remove(),$[e]=null)},containerEle:function(){return s},headerBarEle:function(){return d},afterLeave:function(){l(E,function(e){T.removeItem(e)}),b.resetBackButton()},controller:function(){return b},destroy:function(){l(E,function(e){T.removeItem(e)}),s.scope().$destroy();for(var e in g)g[e]&&(g[e].removeData(),g[e]=null);p&&p.removeData(),m&&m.removeData(),v.removeData(),d.removeData(),s.remove(),s=d=v=p=m=null}};return C.push(T),T},T.navElement=function(e,t){return u(t)&&(k[e]=t),k[e]},T.update=function(e){var t=!e.hasHeaderBar&&e.showNavBar;e.transition=a.views.transition(),t||(e.direction="none"),T.enable(t);var n=T.isInitialized?p():d(),r=T.isInitialized?d():null,i=n.controller();i.enableBack(e.enableBack,!0),i.showBack(e.showBack,!0),i.updateBackButton(),T.title(e.title,n),T.showBar(t),e.navBarItems&&l(E,function(t){n.setItem(e.navBarItems[t],t)}),T.transition(n,r,e),T.isInitialized=!0,v("")},T.transition=function(n,r,o){function s(){for(var e=0;e<C.length;e++)C[e].isActive=!1;n.isActive=!0,m(n,"active"),m(r,"cached"),T.activeTransition=f=$=null}var c=n.controller(),l=a.transitions.navBar[o.navBarTransition]||a.transitions.navBar.none,u=o.transitionId;c.beforeEnter(o);var f=l(n,r,o.direction,o.shouldAnimate&&T.isInitialized);ionic.DomUtil.cachedAttr(t,"nav-bar-transition",o.navBarTransition),ionic.DomUtil.cachedAttr(t,"nav-bar-direction",o.direction),f.shouldAnimate&&o.renderEnd?m(n,"stage"):(m(n,"entering"),m(r,"leaving")),c.resetBackButton(o),f.run(0),T.activeTransition={run:function(e){f.shouldAnimate=!1,f.direction="back",f.run(e)},cancel:function(t,i,o){v(i),m(r,"active"),m(n,"cached"),f.shouldAnimate=t,f.run(0),T.activeTransition=f=null;var a;o.showBar!==T.showBar()&&T.showBar(o.showBar),o.showBackButton!==T.showBackButton()&&T.showBackButton(o.showBackButton),a&&e.$apply()},complete:function(e,t){v(t),f.shouldAnimate=e,f.run(1),$=s}},i(c.align,16),(g=function(){y===u&&(m(n,"entering"),m(r,"leaving"),f.run(1),$=function(){y!=u&&f.shouldAnimate||s()},g=null)})()},T.triggerTransitionStart=function(e){y=e,g&&g()},T.triggerTransitionEnd=function(){$&&$()},T.showBar=function(t){return arguments.length&&(T.visibleBar(t),e.$parent.$hasHeader=!!t),!!e.$parent.$hasHeader},T.visibleBar=function(e){e&&!A?(t.removeClass(w),T.align()):!e&&A&&t.addClass(w),A=e},T.enable=function(e){T.visibleBar(e);for(var t=0;t<o._instances.length;t++)o._instances[t]!==T&&o._instances[t].visibleBar(!1)},T.showBackButton=function(t){if(arguments.length){for(var n=0;n<C.length;n++)C[n].controller().showNavBack(!!t);e.$isBackButtonShown=!!t}return e.$isBackButtonShown},T.showActiveBackButton=function(e){var t=d();if(t)return arguments.length?t.controller().showBack(e):t.controller().showBack()},T.title=function(t,n){return u(t)&&(t=t||"",n=n||d(),n&&n.title(t),
e.$title=t,s.currentTitle(t)),e.$title},T.align=function(e,t){t=t||d(),t&&t.controller().align(e)},T.hasTabsTop=function(e){t[e?"addClass":"removeClass"]("nav-bar-tabs-top")},T.hasBarSubheader=function(e){t[e?"addClass":"removeClass"]("nav-bar-has-subheader")},T.changeTitle=function(e){c("changeTitle(val)","title(val)"),T.title(e)},T.setTitle=function(e){c("setTitle(val)","title(val)"),T.title(e)},T.getTitle=function(){return c("getTitle()","title()"),T.title()},T.back=function(){c("back()","$ionicHistory.goBack()"),s.goBack()},T.getPreviousTitle=function(){c("getPreviousTitle()","$ionicHistory.backTitle()"),s.goBack()},e.$on("$destroy",function(){e.$parent.$hasHeader=!1,t.parent().removeData(b);for(var n=0;n<C.length;n++)C[n].destroy();t.remove(),t=C=null,I()})}]),s.controller("$ionicNavView",["$scope","$element","$attrs","$compile","$controller","$ionicNavBarDelegate","$ionicNavViewDelegate","$ionicHistory","$ionicViewSwitcher","$ionicConfig","$ionicScrollDelegate",function(e,t,n,r,i,o,a,s,l,u,f){function d(e,n){for(var r,i,o=t.children(),a=0,s=o.length;a<s;a++)if(r=o.eq(a),A(r)==E){i=r.scope(),i&&i.$emit(e.name.replace("Tabs","View"),n);break}}function h(e){ionic.DomUtil.cachedAttr(t,"nav-swipe",e)}function p(e,t){var n=v();n&&n.hasTabsTop(t)}function m(e,t){var n=v();n&&n.hasBarSubheader(t)}function v(){if($)for(var e=0;e<o._instances.length;e++)if(o._instances[e].$$delegateHandle==$)return o._instances[e];return t.inheritedData("$ionNavBarController")}var g,$,y,w,b,_="$eleId",S="$destroyEle",x="$noCache",E="active",T="cached",C=this,k=!1,A=l.navViewAttr;C.scope=e,C.element=t,C.init=function(){var r=n.name||"",i=t.parent().inheritedData("$uiView"),o=i&&i.state?i.state.name:"";r.indexOf("@")<0&&(r=r+"@"+o);var s={name:r,state:null};t.data("$uiView",s);var c=a._registerInstance(C,n.delegateHandle);return e.$on("$destroy",function(){c(),C.isSwipeFreeze&&f.freezeAllScrolls(!1)}),e.$on("$ionicHistory.deselect",C.cacheCleanup),e.$on("$ionicTabs.top",p),e.$on("$ionicSubheader",m),e.$on("$ionicTabs.beforeLeave",d),e.$on("$ionicTabs.afterLeave",d),e.$on("$ionicTabs.leave",d),ionic.Platform.ready(function(){ionic.Platform.isWebView()&&u.views.swipeBackEnabled()&&C.initSwipeBack()}),s},C.register=function(t){var n=c({},s.currentView()),r=s.register(e,t);C.update(r);var i=s.getViewById(r.viewId)||{},o=w!==r.viewId;C.render(r,t,i,n,o,!0)},C.update=function(e){k=!0,g=e.direction;var n=t.parent().inheritedData("$ionNavViewController");n&&(n.isPrimary(!1),"enter"!==g&&"exit"!==g||(n.direction(g),"enter"===g&&(g="none")))},C.render=function(e,t,n,r,i,o){var a=l.create(C,t,n,r,i,o);a.init(e,function(){a.transition(C.direction(),e.enableBack,!b),w=b=null})},C.beforeEnter=function(e){if(k){$=e.navBarDelegate;var t=v();t&&t.update(e),h("")}},C.activeEleId=function(e){return arguments.length&&(y=e),y},C.transitionEnd=function(){var e,n,r,i=t.children();for(e=0,n=i.length;e<n;e++)r=i.eq(e),r.data(_)===y?A(r,E):"leaving"!==A(r)&&A(r)!==E&&A(r)!==T||(r.data(S)||r.data(x)?l.destroyViewEle(r):(A(r,T),ionic.Utils.disconnectScope(r.scope())));h(""),C.isSwipeFreeze&&f.freezeAllScrolls(!1)},C.cacheCleanup=function(){for(var e=t.children(),n=0,r=e.length;n<r;n++)e.eq(n).data(S)&&l.destroyViewEle(e.eq(n))},C.clearCache=function(e){var n,r,i,o,a,s,c=t.children();for(i=0,o=c.length;i<o;i++)if(n=c.eq(i),e)for(s=n.data(_),a=0;a<e.length;a++)s===e[a]&&l.destroyViewEle(n);else A(n)==T?l.destroyViewEle(n):A(n)==E&&(r=n.scope(),r&&r.$broadcast("$ionicView.clearCache"))},C.getViewElements=function(){return t.children()},C.appendViewElement=function(n,o){var a=r(n);t.append(n);var s=e.$new();if(o&&o.$$controller){o.$scope=s;var c=i(o.$$controller,o);t.children().data("$ngControllerController",c)}return a(s),s},C.title=function(e){var t=v();t&&t.title(e)},C.enableBackButton=function(e){var t=v();t&&t.enableBackButton(e)},C.showBackButton=function(e){var t=v();return!t||(arguments.length?t.showActiveBackButton(e):t.showActiveBackButton())},C.showBar=function(e){var t=v();return!t||(arguments.length?t.showBar(e):t.showBar())},C.isPrimary=function(e){return arguments.length&&(k=e),k},C.direction=function(e){return arguments.length&&(g=e),g},C.initSwipeBack=function(){function n(e){if(k&&(_=o(e),!(_>x))){p=s.backView();var n=s.currentView();if(p&&p.historyId===n.historyId&&n.canSwipeBack!==!1){y||(y=window.innerWidth),C.isSwipeFreeze=f.freezeAllScrolls(!0);var a={direction:"back"};S=[],E={showBar:C.showBar(),showBackButton:C.showBackButton()};var u=l.create(C,a,p,n,!0,!1);u.loadViewElements(a),u.render(a),c=u.transition("back",s.enabledBack(p),!0),d=v(),g=ionic.onGesture("drag",r,t[0]),$=ionic.onGesture("release",i,t[0])}}}function r(e){if(k&&c){var t=o(e);if(S.push({t:Date.now(),x:t}),t>=y-15)i(e);else{var n=Math.min(Math.max(a(t),0),1);c.run(n),d&&d.activeTransition&&d.activeTransition.run(n)}}}function i(e){if(k&&c&&S&&S.length>1){for(var t=Date.now(),n=o(e),s=S[S.length-1],l=S.length-2;l>=0&&!(t-s.t>200);l--)s=S[l];var u=n>=S[S.length-2].x,m=a(n),v=Math.abs(s.x-n)/(t-s.t);if(w=p.viewId,b=m<.03||m>.97,u&&(m>.5||v>.1)){var _=v>.5||v<.05||n>y-45?"fast":"slow";h(b?"":_),p.go(),d&&d.activeTransition&&d.activeTransition.complete(!b,_)}else h(b?"":"fast"),w=null,c.cancel(!b),d&&d.activeTransition&&d.activeTransition.cancel(!b,"fast",E),b=null}ionic.offGesture(g,"drag",r),ionic.offGesture($,"release",i),y=c=S=null,C.isSwipeFreeze=f.freezeAllScrolls(!1)}function o(e){return ionic.tap.pointerCoord(e.gesture.srcEvent).x}function a(e){return(e-_)/y}var c,d,p,m,g,$,y,_,S,x=u.views.swipeBackHitWidth(),E={};m=ionic.onGesture("dragstart",n,t[0]),e.$on("$destroy",function(){ionic.offGesture(m,"dragstart",n),ionic.offGesture(g,"drag",r),ionic.offGesture($,"release",i),C.element=c=d=null})}}]),s.controller("$ionicRefresher",["$scope","$attrs","$element","$ionicBind","$timeout",function(e,t,n,r,i){function o(){(M||S)&&(D=null,S?(S=!1,E=0,T>C?(v(),d(C,A)):(d(0,A,m),x=!1)):(E=0,x=!1,f(!1)))}function a(e){if(M&&!(e.touches.length>1)){if(null===D&&(D=parseInt(e.touches[0].screenY,10)),ionic.Platform.isAndroid()&&4.4===ionic.Platform.version()&&0===w.scrollTop&&(S=!0,e.preventDefault()),I=parseInt(e.touches[0].screenY,10)-D,I-E<=0||0!==w.scrollTop)return x&&(x=!1,f(!1)),S&&l(w,parseInt(I-E,10)*-1),void(0!==T&&c(0));I>0&&0===w.scrollTop&&!x&&(E=I),e.preventDefault(),x||(x=!0,f(!0)),S=!0,c(parseInt((I-E)/3,10)),!k&&T>C?(k=!0,ionic.requestAnimationFrame(p)):k&&T<C&&(k=!1,ionic.requestAnimationFrame(m))}}function s(e){M=0===e.target.scrollTop||S}function c(e){b.style[ionic.CSS.TRANSFORM]="translateY("+e+"px)",T=e}function l(e,t){e.scrollTop=t;var n=document.createEvent("UIEvents");n.initUIEvent("scroll",!0,!0,window,1),e.dispatchEvent(n)}function f(e){e?ionic.requestAnimationFrame(function(){b.classList.add("overscroll"),g()}):ionic.requestAnimationFrame(function(){b.classList.remove("overscroll"),$(),m()})}function d(e,t,n){function r(e){return--e*e*e+1}function i(){var s=Date.now(),l=Math.min(1,(s-o)/t),u=r(l);c(parseInt(u*(e-a)+a,10)),l<1?ionic.requestAnimationFrame(i):(e<5&&e>-5&&(x=!1,f(!1)),n&&n())}var o=Date.now(),a=T;return a===e?void n():void ionic.requestAnimationFrame(i)}function h(){ionic.off("touchmove",a,b),ionic.off("touchend",o,b),ionic.off("scroll",s,w),w=null,b=null}function p(){n[0].classList.add("active"),e.$onPulling()}function m(){i(function(){n.removeClass("active refreshing refreshing-tail"),k&&(k=!1)},150)}function v(){n[0].classList.add("refreshing"),e.$onRefresh()}function g(){n[0].classList.remove("invisible")}function $(){n[0].classList.add("invisible")}function y(){n[0].classList.add("refreshing-tail")}var w,b,_=this,S=!1,x=!1,E=0,T=0,C=60,k=!1,A=500,D=null,I=null,M=!0;u(t.pullingIcon)||t.$set("pullingIcon","ion-android-arrow-down"),e.showSpinner=!u(t.refreshingIcon)&&"none"!=t.spinner,e.showIcon=u(t.refreshingIcon),r(e,t,{pullingIcon:"@",pullingText:"@",refreshingIcon:"@",refreshingText:"@",spinner:"@",disablePullingRotation:"@",$onRefresh:"&onRefresh",$onPulling:"&onPulling"}),e.$on("scroll.refreshComplete",function(){i(function(){ionic.requestAnimationFrame(y),d(0,A,m),i(function(){x&&(x=!1,f(!1))},A)},A)}),_.init=function(){if(w=n.parent().parent()[0],b=n.parent()[0],!(w&&w.classList.contains("ionic-scroll")&&b&&b.classList.contains("scroll")))throw new Error("Refresher must be immediate child of ion-content or ion-scroll");ionic.on("touchmove",a,b),ionic.on("touchend",o,b),ionic.on("scroll",s,w),e.$on("$destroy",h)},_.getRefresherDomMethods=function(){return{activate:p,deactivate:m,start:v,show:g,hide:$,tail:y}},_.__handleTouchmove=a,_.__getScrollChild=function(){return b},_.__getScrollParent=function(){return w}}]),s.controller("$ionicScroll",["$scope","scrollViewOptions","$timeout","$window","$location","$document","$ionicScrollDelegate","$ionicHistory",function(e,t,n,r,i,o,a,s){var c=this;c.__timeout=n,c._scrollViewOptions=t,c.isNative=function(){return!!t.nativeScrolling};var l,f=c.element=t.el,d=c.$element=h(f);l=c.isNative()?c.scrollView=new ionic.views.ScrollNative(t):c.scrollView=new ionic.views.Scroll(t),(d.parent().length?d.parent():d).data("$$ionicScrollController",c);var p=a._registerInstance(c,t.delegateHandle,function(){return s.isActiveScope(e)});u(t.bouncing)||ionic.Platform.ready(function(){l.options&&(l.options.bouncing=!0,ionic.Platform.isAndroid()&&(l.options.bouncing=!1,l.options.deceleration=.95))});var m=angular.bind(l,l.resize);angular.element(r).on("resize",m);var v=function(t){var n=(t.originalEvent||t).detail||{};e.$onScroll&&e.$onScroll({event:t,scrollTop:n.scrollTop||0,scrollLeft:n.scrollLeft||0})};d.on("scroll",v),e.$on("$destroy",function(){p(),l&&l.__cleanup&&l.__cleanup(),angular.element(r).off("resize",m),d.off("scroll",v),l=c.scrollView=t=c._scrollViewOptions=t.el=c._scrollViewOptions.el=d=c.$element=f=null}),n(function(){l&&l.run&&l.run()}),c.getScrollView=function(){return l},c.getScrollPosition=function(){return l.getValues()},c.resize=function(){return n(m,0,!1).then(function(){d&&d.triggerHandler("scroll-resize")})},c.scrollTop=function(e){c.resize().then(function(){l.scrollTo(0,0,!!e)})},c.scrollBottom=function(e){c.resize().then(function(){var t=l.getScrollMax();l.scrollTo(t.left,t.top,!!e)})},c.scrollTo=function(e,t,n){c.resize().then(function(){l.scrollTo(e,t,!!n)})},c.zoomTo=function(e,t,n,r){c.resize().then(function(){l.zoomTo(e,!!t,n,r)})},c.zoomBy=function(e,t,n,r){c.resize().then(function(){l.zoomBy(e,!!t,n,r)})},c.scrollBy=function(e,t,n){c.resize().then(function(){l.scrollBy(e,t,!!n)})},c.anchorScroll=function(e){c.resize().then(function(){var t=i.hash(),n=t&&o[0].getElementById(t);if(!t||!n)return void l.scrollTo(0,0,!!e);var r=n,a=0,s=0;do null!==r&&(a+=r.offsetLeft),null!==r&&(s+=r.offsetTop),r=r.offsetParent;while(r.attributes!=c.element.attributes&&r.offsetParent);l.scrollTo(a,s,!!e)})},c.freezeScroll=l.freeze,c.freezeAllScrolls=function(e){for(var t=0;t<a._instances.length;t++)a._instances[t].freezeScroll(e)},c._setRefresher=function(e,t,n){c.refresher=t;var r=c.refresher.clientHeight||60;l.activatePullToRefresh(r,n)}}]),s.controller("$ionicSideMenus",["$scope","$attrs","$ionicSideMenuDelegate","$ionicPlatform","$ionicBody","$ionicHistory","$ionicScrollDelegate","IONIC_BACK_PRIORITY","$rootScope",function(e,t,n,r,i,o,a,s,c){function l(e){e&&!y.isScrollFreeze?a.freezeAllScrolls(e):!e&&y.isScrollFreeze&&a.freezeAllScrolls(!1),y.isScrollFreeze=e}var u,d,h,m,v,g,$,y=this,w=!0;y.$scope=e,y.initialize=function(e){y.left=e.left,y.right=e.right,y.setContent(e.content),y.dragThresholdX=e.dragThresholdX||10,o.registerHistory(y.$scope)},y.setContent=function(e){e&&(y.content=e,y.content.onDrag=function(e){y._handleDrag(e)},y.content.endDrag=function(e){y._endDrag(e)})},y.isOpenLeft=function(){return y.getOpenAmount()>0},y.isOpenRight=function(){return y.getOpenAmount()<0},y.toggleLeft=function(e){if(!$&&y.left.isEnabled){var t=y.getOpenAmount();0===arguments.length&&(e=t<=0),y.content.enableAnimation(),e?(y.openPercentage(100),c.$emit("$ionicSideMenuOpen","left")):(y.openPercentage(0),c.$emit("$ionicSideMenuClose","left"))}},y.toggleRight=function(e){if(!$&&y.right.isEnabled){var t=y.getOpenAmount();0===arguments.length&&(e=t>=0),y.content.enableAnimation(),e?(y.openPercentage(-100),c.$emit("$ionicSideMenuOpen","right")):(y.openPercentage(0),c.$emit("$ionicSideMenuClose","right"))}},y.toggle=function(e){"right"==e?y.toggleRight():y.toggleLeft()},y.close=function(){y.openPercentage(0),c.$emit("$ionicSideMenuClose","left"),c.$emit("$ionicSideMenuClose","right")},y.getOpenAmount=function(){return y.content&&y.content.getTranslateX()||0},y.getOpenRatio=function(){var e=y.getOpenAmount();return e>=0?e/y.left.width:e/y.right.width},y.isOpen=function(){return 0!==y.getOpenAmount()},y.getOpenPercentage=function(){return 100*y.getOpenRatio()},y.openPercentage=function(e){var t=e/100;y.left&&e>=0?y.openAmount(y.left.width*t):y.right&&e<0&&y.openAmount(y.right.width*t),i.enableClass(0!==e,"menu-open"),l(!1)},y.openAmount=function(e){var t=y.left&&y.left.width||0,n=y.right&&y.right.width||0;return(y.left&&y.left.isEnabled||!(e>0))&&(y.right&&y.right.isEnabled||!(e<0))?d&&e>t?void y.content.setTranslateX(t):u&&e<-n?void y.content.setTranslateX(-n):(y.content.setTranslateX(e),void(e>=0?(d=!0,u=!1,e>0&&(y.right&&y.right.pushDown&&y.right.pushDown(),y.left&&y.left.bringUp&&y.left.bringUp())):(u=!0,d=!1,y.right&&y.right.bringUp&&y.right.bringUp(),y.left&&y.left.pushDown&&y.left.pushDown()))):void y.content.setTranslateX(0)},y.snapToRest=function(e){y.content.enableAnimation(),h=!1;var t=y.getOpenRatio();if(0===t)return void y.openPercentage(0);var n=.3,r=e.gesture.velocityX,i=e.gesture.direction;t>0&&t<.5&&"right"==i&&r<n?y.openPercentage(0):t>.5&&"left"==i&&r<n?y.openPercentage(100):t<0&&t>-.5&&"left"==i&&r<n?y.openPercentage(0):t<.5&&"right"==i&&r<n?y.openPercentage(-100):"right"==i&&t>=0&&(t>=.5||r>n)?y.openPercentage(100):"left"==i&&t<=0&&(t<=-.5||r>n)?y.openPercentage(-100):y.openPercentage(0)},y.enableMenuWithBackViews=function(e){return arguments.length&&(w=!!e),w},y.isAsideExposed=function(){return!!$},y.exposeAside=function(e){(y.left&&y.left.isEnabled||y.right&&y.right.isEnabled)&&(y.close(),$=e,y.left&&y.left.isEnabled?y.content.setMarginLeft($?y.left.width:0):y.right&&y.right.isEnabled&&y.content.setMarginRight($?y.right.width:0),y.$scope.$emit("$ionicExposeAside",$))},y.activeAsideResizing=function(e){i.enableClass(e,"aside-resizing")},y._endDrag=function(e){l(!1),$||(h&&y.snapToRest(e),m=null,v=null,g=null)},y._handleDrag=function(t){!$&&e.dragContent&&(m?v=t.gesture.touches[0].pageX:(m=t.gesture.touches[0].pageX,v=m),!h&&Math.abs(v-m)>y.dragThresholdX&&(m=v,h=!0,y.content.disableAnimation(),g=y.getOpenAmount()),h&&(y.openAmount(g+(v-m)),l(!0)))},y.canDragContent=function(t){return arguments.length&&(e.dragContent=!!t),e.dragContent},y.edgeThreshold=25,y.edgeThresholdEnabled=!1,y.edgeDragThreshold=function(e){return arguments.length&&(f(e)&&e>0?(y.edgeThreshold=e,y.edgeThresholdEnabled=!0):y.edgeThresholdEnabled=!!e),y.edgeThresholdEnabled},y.isDraggableTarget=function(t){var n=y.edgeThresholdEnabled&&!y.isOpen(),r=t.gesture.startEvent&&t.gesture.startEvent.center&&t.gesture.startEvent.center.pageX,i=!n||r<=y.edgeThreshold||r>=y.content.element.offsetWidth-y.edgeThreshold,a=o.backView(),s=!!w||!a;if(!s){var c=o.currentView()||{};return a.historyId!==c.historyId}return(e.dragContent||y.isOpen())&&i&&!t.gesture.srcEvent.defaultPrevented&&s&&!t.target.tagName.match(/input|textarea|select|object|embed/i)&&!t.target.isContentEditable&&!(t.target.dataset?t.target.dataset.preventScroll:"true"==t.target.getAttribute("data-prevent-scroll"))},e.sideMenuContentTranslateX=0;var b=p,_=angular.bind(y,y.close);e.$watch(function(){return 0!==y.getOpenAmount()},function(e){b(),e&&(b=r.registerBackButtonAction(_,s.sideMenu))});var S=n._registerInstance(y,t.delegateHandle,function(){return o.isActiveScope(e)});e.$on("$destroy",function(){S(),b(),y.$scope=null,y.content&&(y.content.element=null,y.content=null),l(!1)}),y.initialize({left:{width:275},right:{width:275}})}]),function(e){function t(e,r,i,o){var a,s,c,l=document.createElement(d[e]||e);for(a in r)if(angular.isArray(r[a]))for(s=0;s<r[a].length;s++)if(r[a][s].fn)for(c=0;c<r[a][s].t;c++)t(a,r[a][s].fn(c,o),l,o);else t(a,r[a][s],l,o);else n(l,a,r[a]);i.appendChild(l)}function n(e,t,n){e.setAttribute(d[t]||t,n)}function r(e,t){var n=e.split(";"),r=n.slice(t),i=n.slice(0,n.length-r.length);return n=r.concat(i).reverse(),n.join(";")+";"+n[0]}function i(e,t){return e/=t/2,e<1?.5*e*e*e:(e-=2,.5*(e*e*e+2))}var o="translate(32,32)",a="stroke-opacity",c="round",l="indefinite",u="750ms",f="none",d={a:"animate",an:"attributeName",at:"animateTransform",c:"circle",da:"stroke-dasharray",os:"stroke-dashoffset",f:"fill",lc:"stroke-linecap",rc:"repeatCount",sw:"stroke-width",t:"transform",v:"values"},h={v:"0,32,32;360,32,32",an:"transform",type:"rotate",rc:l,dur:u},p={sw:4,lc:c,line:[{fn:function(e,t){return{y1:"ios"==t?17:12,y2:"ios"==t?29:20,t:o+" rotate("+(30*e+(e<6?180:-180))+")",a:[{fn:function(){return{an:a,dur:u,v:r("0;.1;.15;.25;.35;.45;.55;.65;.7;.85;1",e),rc:l}},t:1}]}},t:12}]},m={android:{c:[{sw:6,da:128,os:82,r:26,cx:32,cy:32,f:f}]},ios:p,"ios-small":p,bubbles:{sw:0,c:[{fn:function(e){return{cx:24*Math.cos(2*Math.PI*e/8),cy:24*Math.sin(2*Math.PI*e/8),t:o,a:[{fn:function(){return{an:"r",dur:u,v:r("1;2;3;4;5;6;7;8",e),rc:l}},t:1}]}},t:8}]},circles:{c:[{fn:function(e){return{r:5,cx:24*Math.cos(2*Math.PI*e/8),cy:24*Math.sin(2*Math.PI*e/8),t:o,sw:0,a:[{fn:function(){return{an:"fill-opacity",dur:u,v:r(".3;.3;.3;.4;.7;.85;.9;1",e),rc:l}},t:1}]}},t:8}]},crescent:{c:[{sw:4,da:128,os:82,r:26,cx:32,cy:32,f:f,at:[h]}]},dots:{c:[{fn:function(e){return{cx:16+16*e,cy:32,sw:0,a:[{fn:function(){return{an:"fill-opacity",dur:u,v:r(".5;.6;.8;1;.8;.6;.5",e),rc:l}},t:1},{fn:function(){return{an:"r",dur:u,v:r("4;5;6;5;4;3;3",e),rc:l}},t:1}]}},t:3}]},lines:{sw:7,lc:c,line:[{fn:function(e){return{x1:10+14*e,x2:10+14*e,a:[{fn:function(){return{an:"y1",dur:u,v:r("16;18;28;18;16",e),rc:l}},t:1},{fn:function(){return{an:"y2",dur:u,v:r("48;44;36;46;48",e),rc:l}},t:1},{fn:function(){return{an:a,dur:u,v:r("1;.8;.5;.4;1",e),rc:l}},t:1}]}},t:4}]},ripple:{f:f,"fill-rule":"evenodd",sw:3,circle:[{fn:function(e){return{cx:32,cy:32,a:[{fn:function(){return{an:"r",begin:e*-1+"s",dur:"2s",v:"0;24",keyTimes:"0;1",keySplines:"0.1,0.2,0.3,1",calcMode:"spline",rc:l}},t:1},{fn:function(){return{an:a,begin:e*-1+"s",dur:"2s",v:".2;1;.2;0",rc:l}},t:1}]}},t:2}]},spiral:{defs:[{linearGradient:[{id:"sGD",gradientUnits:"userSpaceOnUse",x1:55,y1:46,x2:2,y2:46,stop:[{offset:.1,"class":"stop1"},{offset:1,"class":"stop2"}]}]}],g:[{sw:4,lc:c,f:f,path:[{stroke:"url(#sGD)",d:"M4,32 c0,15,12,28,28,28c8,0,16-4,21-9"},{d:"M60,32 C60,16,47.464,4,32,4S4,16,4,32"}],at:[h]}]}},v={android:function(t){function r(){var t=i(Date.now()-o,650),u=1,f=0,d=188-58*t,h=182-182*t;a%2&&(u=-1,f=-64,d=128- -58*t,h=182*t);var p=[0,-101,-90,-11,-180,79,-270,-191][a];n(l,"da",Math.max(Math.min(d,188),128)),n(l,"os",Math.max(Math.min(h,182),0)),n(l,"t","scale("+u+",1) translate("+f+",0) rotate("+p+",32,32)"),s+=4.1,s>359&&(s=0),n(c,"t","rotate("+s+",32,32)"),t>=1&&(a++,a>7&&(a=0),o=Date.now()),e.requestAnimationFrame(r)}var o,a=0,s=0,c=t.querySelector("g"),l=t.querySelector("circle");return function(){o=Date.now(),r()}}};s.controller("$ionicSpinner",["$element","$attrs","$ionicConfig",function(e,n,r){var i;this.init=function(){i=n.icon||r.spinner.icon();var o=document.createElement("div");return t("svg",{viewBox:"0 0 64 64",g:[m[i]]},o,i),e.html(o.innerHTML),this.start(),i},this.start=function(){v[i]&&v[i](e[0])()}}])}(ionic),s.controller("$ionicTab",["$scope","$ionicHistory","$attrs","$location","$state",function(e,t,n,r,i){this.$scope=e,this.hrefMatchesState=function(){return n.href&&0===r.path().indexOf(n.href.replace(/^#/,"").replace(/\/$/,""))},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()}}]),s.controller("$ionicTabs",["$scope","$element","$ionicHistory",function(e,t,n){var r,i=this,o=null,a=null;i.tabs=[],i.selectedIndex=function(){return i.tabs.indexOf(o)},i.selectedTab=function(){return o},i.previousSelectedTab=function(){return a},i.add=function(e){n.registerHistory(e),i.tabs.push(e)},i.remove=function(e){var t=i.tabs.indexOf(e);if(t!==-1){if(e.$tabSelected)if(i.deselect(e),1===i.tabs.length);else{var n=t===i.tabs.length-1?t-1:t+1;i.select(i.tabs[n])}i.tabs.splice(t,1)}},i.deselect=function(e){e.$tabSelected&&(a=o,o=r=null,e.$tabSelected=!1,(e.onDeselect||p)(),e.$broadcast&&e.$broadcast("$ionicHistory.deselect"))},i.select=function(t,a){var s;if(f(t)){if(s=t,s>=i.tabs.length)return;t=i.tabs[s]}else s=i.tabs.indexOf(t);1===arguments.length&&(a=!(!t.navViewName&&!t.uiSref)),o&&o.$historyId==t.$historyId?a&&n.goToHistoryRoot(t.$historyId):r!==s&&(l(i.tabs,function(e){i.deselect(e)}),o=t,r=s,i.$scope&&i.$scope.$parent&&(i.$scope.$parent.$activeHistoryId=t.$historyId),t.$tabSelected=!0,(t.onSelect||p)(),a&&e.$emit("$ionicHistory.change",{type:"tab",tabIndex:s,historyId:t.$historyId,navViewName:t.navViewName,hasNavView:!!t.navViewName,title:t.title,url:t.href,uiSref:t.uiSref}))},i.hasActiveScope=function(){for(var e=0;e<i.tabs.length;e++)if(n.isActiveScope(i.tabs[e]))return!0;return!1}}]),s.controller("$ionicView",["$scope","$element","$attrs","$compile","$rootScope",function(e,t,n,r,i){function o(){var t=u(n.viewTitle)&&"viewTitle"||u(n.title)&&"title";t&&(a(n[t]),$.push(n.$observe(t,a))),u(n.hideBackButton)&&$.push(e.$watch(n.hideBackButton,function(e){d.showBackButton(!e)})),u(n.hideNavBar)&&$.push(e.$watch(n.hideNavBar,function(e){d.showBar(!e)}))}function a(e){u(e)&&e!==m&&(m=e,d.title(m))}function s(){for(var e=0;e<$.length;e++)$[e]();$=[]}function l(t){if(t)return r(t)(e.$new())}function f(t){return!!e.$eval(n[t])}var d,h,p,m,v=this,g={},$=[],y=e.$on("ionNavBar.init",function(e,t){e.stopPropagation(),h=t});v.init=function(){y();var n=t.inheritedData("$ionModalController");d=t.inheritedData("$ionNavViewController"),d&&!n&&(e.$on("$ionicView.beforeEnter",v.beforeEnter),e.$on("$ionicView.afterEnter",o),e.$on("$ionicView.beforeLeave",s))},v.beforeEnter=function(t,r){if(r&&!r.viewNotified){r.viewNotified=!0,i.$$phase||e.$digest(),m=u(n.viewTitle)?n.viewTitle:n.title;var o={};for(var a in g)o[a]=l(g[a]);d.beforeEnter(c(r,{title:m,showBack:!f("hideBackButton"),navBarItems:o,navBarDelegate:h||null,showNavBar:!f("hideNavBar"),hasHeaderBar:!!p})),s()}},v.navElement=function(e,t){g[e]=t}}]),s.directive("ionActionSheet",["$document",function(e){return{restrict:"E",scope:!0,replace:!0,link:function(t,n){var r=function(e){27==e.which&&(t.cancel(),t.$apply())},i=function(e){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" ng-class="{\'action-sheet-has-icons\': $actionSheetHasIcon}"><div class="action-sheet-group action-sheet-options"><div class="action-sheet-title" ng-if="titleText" ng-bind-html="titleText"></div><button class="button action-sheet-option" ng-click="buttonClicked($index)" ng-repeat="b in buttons" ng-bind-html="b.text"></button><button class="button destructive action-sheet-destructive" ng-if="destructiveText" ng-click="destructiveButtonClicked()" ng-bind-html="destructiveText"></button></div><div class="action-sheet-group action-sheet-cancel" ng-if="cancelText"><button class="button" ng-click="cancel()" ng-bind-html="cancelText"></button></div></div></div></div>'}}]),s.directive("ionCheckbox",["$ionicConfig",function(e){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,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(t,n){var r=t.find("input");l({name:n.name,"ng-value":n.ngValue,"ng-model":n.ngModel,"ng-checked":n.ngChecked,"ng-disabled":n.ngDisabled,"ng-true-value":n.ngTrueValue,"ng-false-value":n.ngFalseValue,"ng-change":n.ngChange,"ng-required":n.ngRequired,required:n.required},function(e,t){u(e)&&r.attr(t,e)});var i=t[0].querySelector(".checkbox");i.classList.add("checkbox-"+e.form.checkbox())}}}]),s.directive("collectionRepeat",e).factory("$ionicCollectionManager",t);var w="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",b=/height:.*?px;\s*width:.*?px/,_=3;e.$inject=["$ionicCollectionManager","$parse","$window","$$rAF","$rootScope","$timeout"],t.$inject=["$rootScope","$window","$$rAF"],s.directive("ionContent",["$timeout","$controller","$ionicBind","$ionicConfig",function(e,t,n,r){return{restrict:"E",require:"^?ionNavView",scope:!0,priority:800,compile:function(e,i){function o(e,r,o){function l(){e.$onScrollComplete({scrollTop:s.scrollView.__scrollTop,scrollLeft:s.scrollView.__scrollLeft})}var f=e.$parent;if(e.$watch(function(){return(f.$hasHeader?" has-header":"")+(f.$hasSubheader?" has-subheader":"")+(f.$hasFooter?" has-footer":"")+(f.$hasSubfooter?" has-subfooter":"")+(f.$hasTabs?" has-tabs":"")+(f.$hasTabsTop?" has-tabs-top":"")},function(e,t){r.removeClass(t),r.addClass(e)}),e.$hasHeader=e.$hasSubheader=e.$hasFooter=e.$hasSubfooter=e.$hasTabs=e.$hasTabsTop=!1,n(e,o,{$onScroll:"&onScroll",$onScrollComplete:"&onScrollComplete",hasBouncing:"@",padding:"@",direction:"@",scrollbarX:"@",scrollbarY:"@",startX:"@",startY:"@",scrollEventInterval:"@"}),e.direction=e.direction||"y",u(o.padding)&&e.$watch(o.padding,function(e){(a||r).toggleClass("padding",!!e)}),"false"===o.scroll);else{var d={};c?(r.addClass("overflow-scroll"),d={el:r[0],delegateHandle:i.delegateHandle,startX:e.$eval(e.startX)||0,startY:e.$eval(e.startY)||0,nativeScrolling:!0}):d={el:r[0],delegateHandle:i.delegateHandle,locking:"true"===(i.locking||"true"),bouncing:e.$eval(e.hasBouncing),startX:e.$eval(e.startX)||0,startY:e.$eval(e.startY)||0,scrollbarX:e.$eval(e.scrollbarX)!==!1,scrollbarY:e.$eval(e.scrollbarY)!==!1,scrollingX:e.direction.indexOf("x")>=0,scrollingY:e.direction.indexOf("y")>=0,scrollEventInterval:parseInt(e.scrollEventInterval,10)||10,scrollingComplete:l},s=t("$ionicScroll",{$scope:e,scrollViewOptions:d}),e.$on("$destroy",function(){d&&(d.scrollingComplete=p,delete d.el),a=null,r=null,i.$$element=null})}}var a,s;e.addClass("scroll-content ionic-scroll"),"false"!=i.scroll?(a=h('<div class="scroll"></div>'),a.append(e.contents()),e.append(a)):e.addClass("scroll-content-false");var c="true"===i.overflowScroll||!r.scrolling.jsScrolling();return c&&(c=!e[0].querySelector("[collection-repeat]")),{pre:o}}}}]),s.directive("exposeAsideWhen",["$window",function(e){return{restrict:"A",require:"^ionSideMenus",link:function(t,n,r,i){function o(){var t="large"==r.exposeAsideWhen?"(min-width:768px)":r.exposeAsideWhen;i.exposeAside(e.matchMedia(t).matches),i.activeAsideResizing(!1)}function a(){i.activeAsideResizing(!0),s()}var s=ionic.debounce(function(){t.$apply(o)},300,!1);t.$evalAsync(o),ionic.on("resize",a,e),t.$on("$destroy",function(){ionic.off("resize",a,e)})}}}]);var S="onHold onTap onDoubleTap onTouch onRelease onDragStart onDrag onDragEnd onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft".split(" ");S.forEach(function(e){s.directive(e,n(e))}),s.directive("ionHeaderBar",r()).directive("ionHeaderBar",i(!0)).directive("ionFooterBar",i(!1)),s.directive("ionInfiniteScroll",["$timeout",function(e){return{restrict:"E",require:["?^$ionicScroll","ionInfiniteScroll"],template:function(e,t){return t.icon?'<i class="icon {{icon()}} icon-refreshing {{scrollingType}}"></i>':'<ion-spinner icon="{{spinner()}}"></ion-spinner>'},scope:!0,controller:"$ionInfiniteScroll",link:function(t,n,r,i){var o=i[1],a=o.scrollCtrl=i[0],s=o.jsScrolling=!a.isNative();if(s)o.scrollView=a.scrollView,t.scrollingType="js-scrolling",a.$element.on("scroll",o.checkBounds);else{var c=ionic.DomUtil.getParentOrSelfWithClass(n[0].parentNode,"overflow-scroll");if(o.scrollEl=c,!c)throw"Infinite scroll must be used inside a scrollable div";o.scrollEl.addEventListener("scroll",o.checkBounds)}var l=!u(r.immediateCheck)||t.$eval(r.immediateCheck);l&&e(function(){o.checkBounds()})}}}]),s.directive("ionItem",["$$rAF",function(e){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],scope:!0,compile:function(t,n){var r=u(n.href)||u(n.ngHref)||u(n.uiSref),i=r||/ion-(delete|option|reorder)-button/i.test(t.html());if(i){var o=h(r?"<a></a>":"<div></div>");o.addClass("item-content"),(u(n.href)||u(n.ngHref))&&(o.attr("ng-href","{{$href()}}"),u(n.target)&&o.attr("target","{{$target()}}")),o.append(t.contents()),t.addClass("item item-complex").append(o)}else t.addClass("item");return function(t,n,r){t.$href=function(){return r.href||r.ngHref},t.$target=function(){return r.target};var i=n[0].querySelector(".item-content");i&&t.$on("$collectionRepeatLeave",function(){i&&i.$$ionicOptionsOpen&&(i.style[ionic.CSS.TRANSFORM]="",i.style[ionic.CSS.TRANSITION]="none",e(function(){i.style[ionic.CSS.TRANSITION]=""}),i.$$ionicOptionsOpen=!1)})}}}}]);var x='<div class="item-left-edit item-delete enable-pointer-events"></div>';s.directive("ionDeleteButton",function(){function e(e){e.stopPropagation()}return{restrict:"E",require:["^^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(t,n){return n.$set("class",(n["class"]||"")+" button icon button-icon",!0),function(t,n,r,i){function o(){s=s||n.controller("ionList"),s&&s.showDelete()&&c.addClass("visible active")}var a=i[0],s=i[1],c=h(x);c.append(n),a.$element.append(c).addClass("item-left-editable"),n.on("click",e),o(),t.$on("$ionic.reconnectScope",o)}}}}),s.directive("itemFloatingLabel",function(){return{restrict:"C",link:function(e,t){var n=t[0],r=n.querySelector("input, textarea"),i=n.querySelector(".input-label");if(r&&i){var o=function(){r.value?i.classList.add("has-input"):i.classList.remove("has-input")};r.addEventListener("input",o);var a=h(r).controller("ngModel");a&&(a.$render=function(){r.value=a.$viewValue||"",o()}),e.$on("$destroy",function(){r.removeEventListener("input",o)})}}}});var E='<div class="item-options invisible"></div>';s.directive("ionOptionButton",[function(){function e(e){e.stopPropagation()}return{restrict:"E",require:"^ionItem",priority:Number.MAX_VALUE,compile:function(t,n){return n.$set("class",(n["class"]||"")+" button",!0),function(t,n,r,i){i.optionsContainer||(i.optionsContainer=h(E),i.$element.append(i.optionsContainer)),i.optionsContainer.append(n),i.$element.addClass("item-right-editable"),n.on("click",e)}}}}]);var T='<div data-prevent-scroll="true" class="item-right-edit item-reorder enable-pointer-events"></div>';s.directive("ionReorderButton",["$parse",function(e){return{restrict:"E",require:["^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(t,n){return n.$set("class",(n["class"]||"")+" button icon button-icon",!0),t[0].setAttribute("data-prevent-scroll",!0),function(t,n,r,i){var o=i[0],a=i[1],s=e(r.onReorder);t.$onReorder=function(e,n){s(t,{$fromIndex:e,$toIndex:n})},r.ngClick||r.onClick||r.onclick||(n[0].onclick=function(e){return e.stopPropagation(),!1});var c=h(T);c.append(n),o.$element.append(c).addClass("item-right-editable"),a&&a.showReorder()&&c.addClass("visible active")}}}}]),s.directive("keyboardAttach",function(){return function(e,t){function n(e){if(!ionic.Platform.isAndroid()||ionic.Platform.isFullScreen){var n=e.keyboardHeight||e.detail.keyboardHeight;t.css("bottom",n+"px"),i=t.controller("$ionicScroll"),i&&(i.scrollView.__container.style.bottom=n+o(t[0])+"px")}}function r(){ionic.Platform.isAndroid()&&!ionic.Platform.isFullScreen||(t.css("bottom",""),
i&&(i.scrollView.__container.style.bottom=""))}ionic.on("native.keyboardshow",n,window),ionic.on("native.keyboardhide",r,window),ionic.on("native.showkeyboard",n,window),ionic.on("native.hidekeyboard",r,window);var i;e.$on("$destroy",function(){ionic.off("native.keyboardshow",n,window),ionic.off("native.keyboardhide",r,window),ionic.off("native.showkeyboard",n,window),ionic.off("native.hidekeyboard",r,window)})}}),s.directive("ionList",["$timeout",function(e){return{restrict:"E",require:["ionList","^?$ionicScroll"],controller:"$ionicList",compile:function(t,n){var r=h('<div class="list">').append(t.contents()).addClass(n.type);return t.append(r),function(t,r,i,o){function a(){function i(e,t){t()&&e.addClass("visible")||e.removeClass("active"),ionic.requestAnimationFrame(function(){t()&&e.addClass("active")||e.removeClass("visible")})}var o=s.listView=new ionic.views.ListView({el:r[0],listEl:r.children()[0],scrollEl:c&&c.element,scrollView:c&&c.scrollView,onReorder:function(t,n,r){var i=h(t).scope();i&&i.$onReorder&&e(function(){i.$onReorder(n,r)})},canSwipe:function(){return s.canSwipeItems()}});t.$on("$destroy",function(){o&&(o.deregister&&o.deregister(),o=null)}),u(n.canSwipe)&&t.$watch("!!("+n.canSwipe+")",function(e){s.canSwipeItems(e)}),u(n.showDelete)&&t.$watch("!!("+n.showDelete+")",function(e){s.showDelete(e)}),u(n.showReorder)&&t.$watch("!!("+n.showReorder+")",function(e){s.showReorder(e)}),t.$watch(function(){return s.showDelete()},function(e,t){if(e||t){e&&s.closeOptionButtons(),s.canSwipeItems(!e),r.children().toggleClass("list-left-editing",e),r.toggleClass("disable-pointer-events",e);var n=h(r[0].getElementsByClassName("item-delete"));i(n,s.showDelete)}}),t.$watch(function(){return s.showReorder()},function(e,t){if(e||t){e&&s.closeOptionButtons(),s.canSwipeItems(!e),r.children().toggleClass("list-right-editing",e),r.toggleClass("disable-pointer-events",e);var n=h(r[0].getElementsByClassName("item-reorder"));i(n,s.showReorder)}})}var s=o[0],c=o[1];e(a)}}}}]),s.directive("menuClose",["$ionicHistory","$timeout",function(e,t){return{restrict:"AC",link:function(n,r){r.bind("click",function(){var n=r.inheritedData("$ionSideMenusController");n&&(e.nextViewOptions({historyRoot:!0,disableAnimate:!0,expire:300}),t(function(){e.nextViewOptions({historyRoot:!1,disableAnimate:!1})},300),n.close())})}}}]),s.directive("menuToggle",function(){return{restrict:"AC",link:function(e,t,n){e.$on("$ionicView.beforeEnter",function(e,n){if(n.enableBack){var r=t.inheritedData("$ionSideMenusController");r.enableMenuWithBackViews()||t.addClass("hide")}else t.removeClass("hide")}),t.bind("click",function(){var e=t.inheritedData("$ionSideMenusController");e&&e.toggle(n.menuToggle)})}}}),s.directive("ionModal",[function(){return{restrict:"E",transclude:!0,replace:!0,controller:[function(){}],template:'<div class="modal-backdrop"><div class="modal-backdrop-bg"></div><div class="modal-wrapper" ng-transclude></div></div>'}}]),s.directive("ionModalView",function(){return{restrict:"E",compile:function(e){e.addClass("modal")}}}),s.directive("ionNavBackButton",["$ionicConfig","$document",function(e,t){return{restrict:"E",require:"^ionNavBar",compile:function(n,r){function i(e){return/ion-|icon/.test(e.className)}var o=t[0].createElement("button");for(var a in r.$attr)o.setAttribute(r.$attr[a],r[a]);r.ngClick||o.setAttribute("ng-click","$ionicGoBack()"),o.className="button back-button hide buttons "+(n.attr("class")||""),o.innerHTML=n.html()||"";for(var s,c,l,u,f=i(n[0]),d=0;d<n[0].childNodes.length;d++)s=n[0].childNodes[d],1===s.nodeType?i(s)?f=!0:s.classList.contains("default-title")?l=!0:s.classList.contains("previous-title")&&(u=!0):c||3!==s.nodeType||(c=!!s.nodeValue.trim());var h=e.backButton.icon();if(!f&&h&&"none"!==h&&(o.innerHTML='<i class="icon '+h+'"></i> '+o.innerHTML,o.className+=" button-clear"),!c){var p=t[0].createElement("span");p.className="back-text",!l&&e.backButton.text()&&(p.innerHTML+='<span class="default-title">'+e.backButton.text()+"</span>"),!u&&e.backButton.previousTitleText()&&(p.innerHTML+='<span class="previous-title"></span>'),o.appendChild(p)}return n.attr("class","hide"),n.empty(),{pre:function(e,t,n,r){r.navElement("backButton",o.outerHTML),o=null}}}}}]),s.directive("ionNavBar",function(){return{restrict:"E",controller:"$ionicNavBar",scope:!0,link:function(e,t,n,r){r.init()}}}),s.directive("ionNavButtons",["$document",function(e){return{require:"^ionNavBar",restrict:"E",compile:function(t,n){var r="left";/^primary|secondary|right$/i.test(n.side||"")&&(r=n.side.toLowerCase());var i=e[0].createElement("span");i.className=r+"-buttons",i.innerHTML=t.html();var o=r+"Buttons";return t.attr("class","hide"),t.empty(),{pre:function(e,t,n,r){var a=t.parent().data("$ionViewController");a?a.navElement(o,i.outerHTML):r.navElement(o,i.outerHTML),i=null}}}}}]),s.directive("navDirection",["$ionicViewSwitcher",function(e){return{restrict:"A",priority:1e3,link:function(t,n,r){n.bind("click",function(){e.nextDirection(r.navDirection)})}}}]),s.directive("ionNavTitle",["$document",function(e){return{require:"^ionNavBar",restrict:"E",compile:function(t,n){var r="title",i=e[0].createElement("span");for(var o in n.$attr)i.setAttribute(n.$attr[o],n[o]);return i.classList.add("nav-bar-title"),i.innerHTML=t.html(),t.attr("class","hide"),t.empty(),{pre:function(e,t,n,o){var a=t.parent().data("$ionViewController");a?a.navElement(r,i.outerHTML):o.navElement(r,i.outerHTML),i=null}}}}}]),s.directive("navTransition",["$ionicViewSwitcher",function(e){return{restrict:"A",priority:1e3,link:function(t,n,r){n.bind("click",function(){e.nextTransition(r.navTransition)})}}}]),s.directive("ionNavView",["$state","$ionicConfig",function(e,t){return{restrict:"E",terminal:!0,priority:2e3,transclude:!0,controller:"$ionicNavView",compile:function(n,r,i){return n.addClass("view-container"),ionic.DomUtil.cachedAttr(n,"nav-view-transition",t.views.transition()),function(t,n,r,o){function a(t){var n=e.$current&&e.$current.locals[c.name];n&&(t||n!==s)&&(s=n,c.state=n.$$state,o.register(n))}var s;i(t,function(e){n.append(e)});var c=o.init();t.$on("$stateChangeSuccess",function(){a(!1)}),t.$on("$viewContentLoading",function(){a(!1)}),a(!0)}}}}]),s.config(["$provide",function(e){e.decorator("ngClickDirective",["$delegate",function(e){return e.shift(),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=p}}]).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,a)}}}),s.directive("ionPane",function(){return{restrict:"E",link:function(e,t){t.addClass("pane")}}}),s.directive("ionPopover",[function(){return{restrict:"E",transclude:!0,replace:!0,controller:[function(){}],template:'<div class="popover-backdrop"><div class="popover-wrapper" ng-transclude></div></div>'}}]),s.directive("ionPopoverView",function(){return{restrict:"E",compile:function(e){e.append(h('<div class="popover-arrow">')),e.addClass("popover")}}}),s.directive("ionRadio",function(){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,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){t.icon&&e.children().eq(2).removeClass("ion-checkmark").addClass(t.icon);var n=e.find("input");return l({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,"ng-required":t.ngRequired,required:t.required},function(e,t){u(e)&&n.attr(t,e)}),function(e,t,n){e.getValue=function(){return e.ngValue||n.value}}}}}),s.directive("ionRefresher",[function(){return{restrict:"E",replace:!0,require:["?^$ionicScroll","ionRefresher"],controller:"$ionicRefresher",template:'<div class="scroll-refresher invisible" 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><div class="icon-refreshing"><ion-spinner ng-if="showSpinner" icon="{{spinner}}"></ion-spinner><i ng-if="showIcon" class="icon {{refreshingIcon}}"></i></div><div class="text-refreshing" ng-bind-html="refreshingText"></div></div></div>',link:function(e,t,n,r){var i=r[0],o=r[1];!i||i.isNative()?o.init():(t[0].classList.add("js-scrolling"),i._setRefresher(e,t[0],o.getRefresherDomMethods()),e.$on("scroll.refreshComplete",function(){e.$evalAsync(function(){i.scrollView.finishPullToRefresh()})}))}}}]),s.directive("ionScroll",["$timeout","$controller","$ionicBind",function(e,t,n){return{restrict:"E",scope:!0,controller:function(){},compile:function(e){function r(e,r,o){n(e,o,{direction:"@",paging:"@",$onScroll:"&onScroll",scroll:"@",scrollbarX:"@",scrollbarY:"@",zooming:"@",minZoom:"@",maxZoom:"@"}),e.direction=e.direction||"y",u(o.padding)&&e.$watch(o.padding,function(e){i.toggleClass("padding",!!e)}),e.$eval(e.paging)===!0&&i.addClass("scroll-paging"),e.direction||(e.direction="y");var a=e.$eval(e.paging)===!0,s={el:r[0],delegateHandle:o.delegateHandle,locking:"true"===(o.locking||"true"),bouncing:e.$eval(o.hasBouncing),paging:a,scrollbarX:e.$eval(e.scrollbarX)!==!1,scrollbarY:e.$eval(e.scrollbarY)!==!1,scrollingX:e.direction.indexOf("x")>=0,scrollingY:e.direction.indexOf("y")>=0,zooming:e.$eval(e.zooming)===!0,maxZoom:e.$eval(e.maxZoom)||3,minZoom:e.$eval(e.minZoom)||.5,preventDefault:!0};a&&(s.speedMultiplier=.8,s.bouncing=!1),t("$ionicScroll",{$scope:e,scrollViewOptions:s})}e.addClass("scroll-view ionic-scroll");var i=h('<div class="scroll"></div>');return i.append(e.contents()),e.append(i),{pre:r}}}}]),s.directive("ionSideMenu",function(){return{restrict:"E",require:"^ionSideMenus",scope:!0,compile:function(e,t){return angular.isUndefined(t.isEnabled)&&t.$set("isEnabled","true"),angular.isUndefined(t.width)&&t.$set("width","275"),e.addClass("menu menu-"+t.side),function(e,n,r,i){e.side=r.side||"left";var o=i[e.side]=new ionic.views.SideMenu({width:t.width,el:n[0],isEnabled:!0});e.$watch(r.width,function(e){var t=+e;t&&t==e&&o.setWidth(+e)}),e.$watch(r.isEnabled,function(e){o.setIsEnabled(!!e)})}}}}),s.directive("ionSideMenuContent",["$timeout","$ionicGesture","$window",function(e,t,n){return{restrict:"EA",require:"^ionSideMenus",scope:!0,compile:function(r,i){function o(o,a,s,c){function l(e){0!==c.getOpenAmount()?(c.close(),e.gesture.srcEvent.preventDefault(),m=null,v=null):m||(m=ionic.tap.pointerCoord(e.gesture.srcEvent))}function f(e){c.isDraggableTarget(e)&&"x"==p(e)&&(c._handleDrag(e),e.gesture.srcEvent.preventDefault())}function d(e){"x"==p(e)&&e.gesture.srcEvent.preventDefault()}function h(e){c._endDrag(e),m=null,v=null}function p(e){if(v)return v;if(e&&e.gesture){if(m){var t=ionic.tap.pointerCoord(e.gesture.srcEvent),n=Math.abs(t.x-m.x),r=Math.abs(t.y-m.y),i=n<r?"y":"x";return Math.max(n,r)>30&&(v=i),i}m=ionic.tap.pointerCoord(e.gesture.srcEvent)}return"y"}var m=null,v=null;u(i.dragContent)?o.$watch(i.dragContent,function(e){c.canDragContent(e)}):c.canDragContent(!0),u(i.edgeDragThreshold)&&o.$watch(i.edgeDragThreshold,function(e){c.edgeDragThreshold(e)});var g={element:r[0],onDrag:function(){},endDrag:function(){},getTranslateX:function(){return o.sideMenuContentTranslateX||0},setTranslateX:ionic.animationFrameThrottle(function(t){var n=g.offsetX+t;a[0].style[ionic.CSS.TRANSFORM]="translate3d("+n+"px,0,0)",e(function(){o.sideMenuContentTranslateX=t})}),setMarginLeft:ionic.animationFrameThrottle(function(e){e?(e=parseInt(e,10),a[0].style[ionic.CSS.TRANSFORM]="translate3d("+e+"px,0,0)",a[0].style.width=n.innerWidth-e+"px",g.offsetX=e):(a[0].style[ionic.CSS.TRANSFORM]="translate3d(0,0,0)",a[0].style.width="",g.offsetX=0)}),setMarginRight:ionic.animationFrameThrottle(function(e){e?(e=parseInt(e,10),a[0].style.width=n.innerWidth-e+"px",g.offsetX=e):(a[0].style.width="",g.offsetX=0),a[0].style[ionic.CSS.TRANSFORM]="translate3d(0,0,0)"}),enableAnimation:function(){o.animationEnabled=!0,a[0].classList.add("menu-animated")},disableAnimation:function(){o.animationEnabled=!1,a[0].classList.remove("menu-animated")},offsetX:0};c.setContent(g);var $={stop_browser_behavior:!1};ionic.DomUtil.getParentOrSelfWithClass(a[0],"overflow-scroll")&&($.prevent_default_directions=["left","right"]);var y=t.on("tap",l,a,$),w=t.on("dragright",f,a,$),b=t.on("dragleft",f,a,$),_=t.on("dragup",d,a,$),S=t.on("dragdown",d,a,$),x=t.on("release",h,a,$);o.$on("$destroy",function(){g&&(g.element=null,g=null),t.off(b,"dragleft",f),t.off(w,"dragright",f),t.off(_,"dragup",d),t.off(S,"dragdown",d),t.off(x,"release",h),t.off(y,"tap",l)})}return r.addClass("menu-content pane"),{pre:o}}}}]),s.directive("ionSideMenus",["$ionicBody",function(e){return{restrict:"ECA",controller:"$ionicSideMenus",compile:function(t,n){function r(t,n,r,i){i.enableMenuWithBackViews(t.$eval(r.enableMenuWithBackViews)),t.$on("$ionicExposeAside",function(n,r){t.$exposeAside||(t.$exposeAside={}),t.$exposeAside.active=r,e.enableClass(r,"aside-open")}),t.$on("$ionicView.beforeEnter",function(e,n){n.historyId&&(t.$activeHistoryId=n.historyId)}),t.$on("$destroy",function(){e.removeClass("menu-open","aside-open")})}return n.$set("class",(n["class"]||"")+" view"),{pre:r}}}}]),s.directive("ionSlideBox",["$timeout","$compile","$ionicSlideBoxDelegate","$ionicHistory","$ionicScrollDelegate",function(e,t,n,r,i){return{restrict:"E",replace:!0,transclude:!0,scope:{autoPlay:"=",doesContinue:"@",slideInterval:"@",showPager:"@",pagerClick:"&",disableScroll:"@",onSlideChanged:"&",activeSlide:"=?"},controller:["$scope","$element","$attrs",function(t,o,a){function s(e){e&&!c.isScrollFreeze?i.freezeAllScrolls(e):!e&&c.isScrollFreeze&&i.freezeAllScrolls(!1),c.isScrollFreeze=e}var c=this,l=t.$eval(t.doesContinue)===!0,f=!!u(a.autoPlay)&&!!t.autoPlay,d=f?t.$eval(t.slideInterval)||4e3:0,h=new ionic.views.Slider({el:o[0],auto:d,continuous:l,startSlide:t.activeSlide,slidesChanged:function(){t.currentSlide=h.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(){})},onDrag:function(){s(!0)},onDragEnd:function(){s(!1)}});h.enableSlide(t.$eval(a.disableScroll)!==!0),t.$watch("activeSlide",function(e){u(e)&&h.slide(e)}),t.$on("slideBox.nextSlide",function(){h.next()}),t.$on("slideBox.prevSlide",function(){h.prev()}),t.$on("slideBox.setSlide",function(e,t){h.slide(t)}),this.__slider=h;var p=n._registerInstance(h,a.delegateHandle,function(){return r.isActiveScope(t)});t.$on("$destroy",function(){p(),h.kill()}),this.slidesCount=function(){return h.slidesCount()},this.onPagerClick=function(e){t.pagerClick({index:e})},e(function(){h.load()})}],template:'<div class="slider"><div class="slider-slides" ng-transclude></div></div>',link:function(e,n,r){function i(){if(!o){var r=e.$new();o=h("<ion-pager></ion-pager>"),n.append(o),o=t(o)(r)}return o}u(r.showPager)||(e.showPager=!0,i().toggleClass("hide",!1)),r.$observe("showPager",function(t){void 0!==t&&(t=e.$eval(t),i().toggleClass("hide",!t))});var o}}}]).directive("ionSlide",function(){return{restrict:"E",require:"^ionSlideBox",compile:function(e){e.addClass("slider-slide")}}}).directive("ionPager",function(){return{restrict:"E",replace:!0,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){for(var n=t[0].children,r=n.length,i=0;i<r;i++)i==e?n[i].classList.add("active"):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)})}}}),s.directive("ionSpinner",function(){return{restrict:"E",controller:"$ionicSpinner",link:function(e,t,n,r){var i=r.init();t.addClass("spinner spinner-"+i)}}}),s.directive("ionTab",["$compile","$ionicConfig","$ionicBind","$ionicViewSwitcher",function(e,t,n,r){function i(e,t){return u(t)?" "+e+'="'+t+'"':""}return{restrict:"E",require:["^ionTabs","ionTab"],controller:"$ionicTab",scope:!0,compile:function(o,a){for(var s="<ion-tab-nav"+i("ng-click",a.ngClick)+i("title",a.title)+i("icon",a.icon)+i("icon-on",a.iconOn)+i("icon-off",a.iconOff)+i("badge",a.badge)+i("badge-style",a.badgeStyle)+i("hidden",a.hidden)+i("disabled",a.disabled)+i("class",a["class"])+"></ion-tab-nav>",c=document.createElement("div"),l=0;l<o[0].children.length;l++)c.appendChild(o[0].children[l].cloneNode(!0));var u=c.childElementCount;o.empty();var f,d;return u&&("ION-NAV-VIEW"===c.children[0].tagName&&(f=c.children[0].getAttribute("name"),c.children[0].classList.add("view-container"),d=!0),1===u&&(c=c.children[0]),d||c.classList.add("pane"),c.classList.add("tab-content")),function(i,o,a,l){function d(){y.tabMatchesState()&&$.select(i,!1)}function p(n){n&&u?(w||(v=i.$new(),g=h(c),r.viewEleIsActive(g,!0),$.$element.append(g),e(g)(v),w=!0),r.viewEleIsActive(g,!0)):w&&g&&(t.views.maxCache()>0?r.viewEleIsActive(g,!1):m())}function m(){v&&v.$destroy(),w&&g&&g.remove(),c.innerHTML="",w=v=g=null}var v,g,$=l[0],y=l[1],w=!1;i.$tabSelected=!1,n(i,a,{onSelect:"&",onDeselect:"&",title:"@",uiSref:"@",href:"@"}),$.add(i),i.$on("$destroy",function(){i.$tabsDestroy||$.remove(i),b.isolateScope().$destroy(),b.remove(),b=c=g=null}),o[0].removeAttribute("title"),f&&(y.navViewName=i.navViewName=f),i.$on("$stateChangeSuccess",d),d();var b=h(s);b.data("$ionTabsController",$),b.data("$ionTabController",y),$.$tabsElement.append(e(b)(i)),i.$watch("$tabSelected",p),i.$on("$ionicView.afterEnter",function(){r.viewEleIsActive(g,i.$tabSelected)}),i.$on("$ionicView.clearCache",function(){i.$tabSelected||m()})}}}}]),s.directive("ionTabNav",[function(){return{restrict:"E",replace:!0,require:["^ionTabs","^ionTab"],template:"<a ng-class=\"{'tab-item-active': isTabActive(), 'has-badge':badge, 'tab-hidden':isHidden()}\" "+' ng-disabled="disabled()" 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:"@",disabled:"&",badgeStyle:"@","class":"@"},link:function(e,t,n,r){var i=r[0],o=r[1];t[0].removeAttribute("title"),e.selectTab=function(e){e.preventDefault(),i.select(o.$scope,!0)},n.ngClick||t.on("click",function(t){e.$apply(function(){e.selectTab(t)})}),e.isHidden=function(){return"true"===n.hidden||n.hidden===!0},e.getIconOn=function(){return e.iconOn||e.icon},e.getIconOff=function(){return e.iconOff||e.icon},e.isTabActive=function(){return i.selectedTab()===o.$scope}}}}]),s.directive("ionTabs",["$ionicTabsDelegate","$ionicConfig",function(e,t){return{restrict:"E",scope:!0,controller:"$ionicTabs",compile:function(n){function r(t,n,r,i){function a(e,t){e.stopPropagation();var n=i.previousSelectedTab();n&&n.$broadcast(e.name.replace("NavView","Tabs"),t)}var s=e._registerInstance(i,r.delegateHandle,i.hasActiveScope);i.$scope=t,i.$element=n,i.$tabsElement=h(n[0].querySelector(".tabs")),t.$watch(function(){return n[0].className},function(e){var n=e.indexOf("tabs-top")!==-1,r=e.indexOf("tabs-item-hide")!==-1;t.$hasTabs=!n&&!r,t.$hasTabsTop=n&&!r,t.$emit("$ionicTabs.top",t.$hasTabsTop)}),t.$on("$ionicNavView.beforeLeave",a),t.$on("$ionicNavView.afterLeave",a),t.$on("$ionicNavView.leave",a),t.$on("$destroy",function(){t.$tabsDestroy=!0,s(),i.$tabsElement=i.$element=i.$scope=o=null,delete t.$hasTabs,delete t.$hasTabsTop})}function i(e,t,n,r){r.selectedTab()||r.select(0)}var o=h('<div class="tab-nav tabs">');return o.append(n.contents()),n.append(o).addClass("tabs-"+t.tabs.position()+" tabs-"+t.tabs.style()),{pre:r,post:i}}}}]),s.directive("ionToggle",["$timeout","$ionicConfig",function(e,t){return{restrict:"E",replace:!0,require:"?ngModel",transclude:!0,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,n){var r=e.find("input");return l({name:n.name,"ng-value":n.ngValue,"ng-model":n.ngModel,"ng-checked":n.ngChecked,"ng-disabled":n.ngDisabled,"ng-true-value":n.ngTrueValue,"ng-false-value":n.ngFalseValue,"ng-change":n.ngChange,"ng-required":n.ngRequired,required:n.required},function(e,t){u(e)&&r.attr(t,e)}),n.toggleClass&&e[0].getElementsByTagName("label")[0].classList.add(n.toggleClass),e.addClass("toggle-"+t.form.toggle()),function(e,t){var n=t[0].getElementsByTagName("label")[0],r=n.children[0],i=n.children[1],o=i.children[0],a=h(r).controller("ngModel");e.toggle=new ionic.views.Toggle({el:n,track:i,checkbox:r,handle:o,onChange:function(){a&&(a.$setViewValue(r.checked),e.$apply())}}),e.$on("$destroy",function(){e.toggle.destroy()})}}}}]),s.directive("ionView",function(){return{restrict:"EA",priority:1e3,controller:"$ionicView",compile:function(e){return e.addClass("pane"),e[0].removeAttribute("title"),function(e,t,n,r){r.init()}}}})}(),angular.module("ngLocale",[],["$provide",function(e){var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["上午","下午"],DAY:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],MONTH:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],SHORTDAY:["周日","周一","周二","周三","周四","周五","周六"],SHORTMONTH:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],fullDate:"y年M月d日EEEE",longDate:"y年M月d日",medium:"yyyy-M-d ah:mm:ss",mediumDate:"yyyy-M-d",mediumTime:"ah:mm:ss","short":"yy-M-d ah:mm",shortDate:"yy-M-d",shortTime:"ah:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"¥",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,macFrac:0,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,macFrac:0,maxFrac:2,minFrac:2,minInt:1,negPre:"(¤",negSuf:")",posPre:"¤",posSuf:""}]},id:"zh-cn",pluralCat:function(e){return t.OTHER}})}]),/**
 * Bunch of useful filters for angularJS(with no external dependencies!)
 * @version v0.5.16 - 2017-04-07 * @link https://github.com/a8m/angular-filter
 * @author Ariel Mashraki <ariel@mashraki.co.il>
 * @license MIT License, http://www.opensource.org/licenses/MIT
 */
function(e,t,n){"use strict";function r(e){return D(e)?e:Object.keys(e).map(function(t){return e[t]})}function i(e){return null===e}function o(e,t){var r=Object.keys(e);return r.map(function(r){return t[r]!==n&&t[r]==e[r]}).indexOf(!1)==-1}function a(e,t){function n(e,t,n){for(var r=0;t+r<=e.length;){if(e.charAt(t+r)==n)return r;r++}return-1}for(var r=0,i=0;i<=t.length;i++){var o=n(e,r,t.charAt(i));if(o==-1)return!1;r+=o+1}return!0}function s(e,t,n){var r=0;return e.filter(function(e){var i=x(n)?r<t&&n(e):r<t;return r=i?r+1:r,i})}function c(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}function l(e,t,n){t=t||[];var r=Object.keys(e);return r.forEach(function(r){if(A(e[r])&&!D(e[r])){var i=n?n+"."+r:n;l(e[r],t,i||r)}else{var o=n?n+"."+r:r;t.push(o)}}),t}function u(e){return e&&e.$evalAsync&&e.$watch}function f(){return function(e,t){return e>t}}function d(){return function(e,t){return e>=t}}function h(){return function(e,t){return e<t}}function p(){return function(e,t){return e<=t}}function m(){return function(e,t){return e==t}}function v(){return function(e,t){return e!=t}}function g(){return function(e,t){return e===t}}function $(){return function(e,t){return e!==t}}function y(e){return function(t,n){return t=A(t)?r(t):t,!(!D(t)||E(n))&&t.some(function(t){return C(n)&&A(t)||T(n)?e(n)(t):t===n})}}function w(e,t){return t=t||0,t>=e.length?e:D(e[t])?w(e.slice(0,t).concat(e[t],e.slice(t+1)),t):w(e,t+1)}function b(e){return function(t,n){function i(e,t){return!E(t)&&e.some(function(e){return L(e,t)})}if(t=A(t)?r(t):t,!D(t))return t;var o=[],a=e(n);return E(n)?t.filter(function(e,t,n){return n.indexOf(e)===t}):t.filter(function(e){var t=a(e);return!i(o,t)&&(o.push(t),!0)})}}function _(e,t,n){return t?e+n+_(e,--t,n):e}function S(){return function(e){return C(e)?e.split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.substring(1)}).join(" "):e}}var x=t.isDefined,E=t.isUndefined,T=t.isFunction,C=t.isString,k=t.isNumber,A=t.isObject,D=t.isArray,I=t.forEach,M=t.extend,O=t.copy,L=t.equals;String.prototype.contains||(String.prototype.contains=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),t.module("a8m.angular",[]).filter("isUndefined",function(){return function(e){return t.isUndefined(e)}}).filter("isDefined",function(){return function(e){return t.isDefined(e)}}).filter("isFunction",function(){return function(e){return t.isFunction(e)}}).filter("isString",function(){return function(e){return t.isString(e)}}).filter("isNumber",function(){return function(e){return t.isNumber(e)}}).filter("isArray",function(){return function(e){return t.isArray(e)}}).filter("isObject",function(){return function(e){return t.isObject(e)}}).filter("isEqual",function(){return function(e,n){return t.equals(e,n)}}),t.module("a8m.conditions",[]).filter({isGreaterThan:f,">":f,isGreaterThanOrEqualTo:d,">=":d,isLessThan:h,"<":h,isLessThanOrEqualTo:p,"<=":p,isEqualTo:m,"==":m,isNotEqualTo:v,"!=":v,isIdenticalTo:g,"===":g,isNotIdenticalTo:$,"!==":$}),t.module("a8m.is-null",[]).filter("isNull",function(){return function(e){return i(e)}}),t.module("a8m.after-where",[]).filter("afterWhere",function(){return function(e,t){if(e=A(e)?r(e):e,!D(e)||E(t))return e;var n=e.map(function(e){return o(t,e)}).indexOf(!0);return e.slice(n===-1?0:n)}}),t.module("a8m.after",[]).filter("after",function(){return function(e,t){return e=A(e)?r(e):e,D(e)?e.slice(t):e}}),t.module("a8m.before-where",[]).filter("beforeWhere",function(){return function(e,t){if(e=A(e)?r(e):e,!D(e)||E(t))return e;var n=e.map(function(e){return o(t,e)}).indexOf(!0);return e.slice(0,n===-1?e.length:++n)}}),t.module("a8m.before",[]).filter("before",function(){return function(e,t){return e=A(e)?r(e):e,D(e)?e.slice(0,t?--t:t):e}}),t.module("a8m.chunk-by",["a8m.filter-watcher"]).filter("chunkBy",["filterWatcher",function(e){return function(t,n,r){function i(e,t){for(var n=[];e--;)n[e]=t;return n}function o(e,t,n){return D(e)?e.map(function(e,r,o){return r*=t,e=o.slice(r,r+t),!E(n)&&e.length<t?e.concat(i(t-e.length,n)):e}).slice(0,Math.ceil(e.length/t)):e}return e.isMemoized("chunkBy",arguments)||e.memoize("chunkBy",arguments,this,o(t,n,r))}}]),t.module("a8m.concat",[]).filter("concat",[function(){return function(e,t){if(E(t))return e;if(D(e))return A(t)?e.concat(r(t)):e.concat(t);if(A(e)){var n=r(e);return A(t)?n.concat(r(t)):n.concat(t)}return e}}]),t.module("a8m.contains",[]).filter({contains:["$parse",y],some:["$parse",y]}),t.module("a8m.count-by",[]).filter("countBy",["$parse",function(e){return function(t,n){var i,o={},a=e(n);return t=A(t)?r(t):t,!D(t)||E(n)?t:(t.forEach(function(e){i=a(e),o[i]||(o[i]=0),o[i]++}),o)}}]),t.module("a8m.defaults",[]).filter("defaults",["$parse",function(e){return function(t,n){if(t=A(t)?r(t):t,!D(t)||!A(n))return t;var i=l(n);return t.forEach(function(t){i.forEach(function(r){var i=e(r),o=i.assign;E(i(t))&&o(t,i(n))})}),t}}]),t.module("a8m.every",[]).filter("every",["$parse",function(e){return function(t,n){return t=A(t)?r(t):t,!(D(t)&&!E(n))||t.every(function(t){return A(t)||T(n)?e(n)(t):t===n})}}]),t.module("a8m.filter-by",[]).filter("filterBy",["$parse",function(e){return function(t,i,o,a){var s;return o=C(o)||k(o)?String(o).toLowerCase():n,t=A(t)?r(t):t,!D(t)||E(o)?t:t.filter(function(t){return i.some(function(n){if(~n.indexOf("+")){var r=n.replace(/\s+/g,"").split("+");s=r.map(function(n){return e(n)(t)}).join(" ")}else s=e(n)(t);return!(!C(s)&&!k(s))&&(s=String(s).toLowerCase(),a?s===o:s.contains(o))})})}}]),t.module("a8m.first",[]).filter("first",["$parse",function(e){return function(t){var i,o,a;return t=A(t)?r(t):t,D(t)?(a=Array.prototype.slice.call(arguments,1),i=k(a[0])?a[0]:1,o=k(a[0])?k(a[1])?n:a[1]:a[0],a.length?s(t,i,o?e(o):o):t[0]):t}}]),t.module("a8m.flatten",[]).filter("flatten",function(){return function(e,t){return t=t||!1,e=A(e)?r(e):e,D(e)?t?[].concat.apply([],e):w(e,0):e}}),t.module("a8m.fuzzy-by",[]).filter("fuzzyBy",["$parse",function(e){return function(t,n,i,o){var s,c,l=o||!1;return t=A(t)?r(t):t,!D(t)||E(n)||E(i)?t:(c=e(n),t.filter(function(e){return s=c(e),!!C(s)&&(s=l?s:s.toLowerCase(),i=l?i:i.toLowerCase(),a(s,i)!==!1)}))}}]),t.module("a8m.fuzzy",[]).filter("fuzzy",function(){return function(e,t,n){function i(e,t){var n,r,i=Object.keys(e);return 0<i.filter(function(i){return n=e[i],!!r||!!C(n)&&(n=o?n:n.toLowerCase(),r=a(n,t)!==!1)}).length}var o=n||!1;return e=A(e)?r(e):e,!D(e)||E(t)?e:(t=o?t:t.toLowerCase(),e.filter(function(e){return C(e)?(e=o?e:e.toLowerCase(),a(e,t)!==!1):!!A(e)&&i(e,t)}))}}),t.module("a8m.group-by",["a8m.filter-watcher"]).filter("groupBy",["$parse","filterWatcher",function(e,t){return function(n,r){function i(e,t){var n,r={};return I(e,function(e){n=t(e),r[n]||(r[n]=[]),r[n].push(e)}),r}return!A(n)||E(r)?n:t.isMemoized("groupBy",arguments)||t.memoize("groupBy",arguments,this,i(n,e(r)))}}]),t.module("a8m.is-empty",[]).filter("isEmpty",function(){return function(e){return A(e)?!r(e).length:!e.length}}),t.module("a8m.join",[]).filter("join",function(){return function(e,t){return E(e)||!D(e)?e:(E(t)&&(t=" "),e.join(t))}}),t.module("a8m.last",[]).filter("last",["$parse",function(e){return function(t){var i,o,a,c=O(t);return c=A(c)?r(c):c,D(c)?(a=Array.prototype.slice.call(arguments,1),i=k(a[0])?a[0]:1,o=k(a[0])?k(a[1])?n:a[1]:a[0],a.length?s(c.reverse(),i,o?e(o):o).reverse():c[c.length-1]):c}}]),t.module("a8m.map",[]).filter("map",["$parse",function(e){return function(t,n){return t=A(t)?r(t):t,!D(t)||E(n)?t:t.map(function(t){return e(n)(t)})}}]),t.module("a8m.omit",[]).filter("omit",["$parse",function(e){return function(t,n){return t=A(t)?r(t):t,!D(t)||E(n)?t:t.filter(function(t){return!e(n)(t)})}}]),t.module("a8m.pick",[]).filter("pick",["$parse",function(e){return function(t,n){return t=A(t)?r(t):t,!D(t)||E(n)?t:t.filter(function(t){return e(n)(t)})}}]),t.module("a8m.range",[]).filter("range",function(){return function(e,t,n,r,i){n=n||0,r=r||1;for(var o=0;o<parseInt(t);o++){var a=n+o*r;e.push(T(i)?i(a):a)}return e}}),t.module("a8m.remove-with",[]).filter("removeWith",function(){return function(e,t){return E(t)?e:(e=A(e)?r(e):e,e.filter(function(e){return!o(t,e)}))}}),t.module("a8m.remove",[]).filter("remove",function(){return function(e){e=A(e)?r(e):e;var t=Array.prototype.slice.call(arguments,1);return D(e)?e.filter(function(e){return!t.some(function(t){return L(t,e)})}):e}}),t.module("a8m.reverse",[]).filter("reverse",[function(){return function(e){return e=A(e)?r(e):e,C(e)?e.split("").reverse().join(""):D(e)?e.slice().reverse():e}}]),t.module("a8m.search-field",[]).filter("searchField",["$parse",function(e){return function(t){var n,i;t=A(t)?r(t):t;var o=Array.prototype.slice.call(arguments,1);return D(t)&&o.length?t.map(function(t){return i=o.map(function(r){return(n=e(r))(t)}).join(" "),M(t,{searchField:i})}):t}}]),t.module("a8m.to-array",[]).filter("toArray",function(){return function(e,t){return A(e)?t?Object.keys(e).map(function(t){return M(e[t],{$key:t})}):r(e):e}}),t.module("a8m.unique",[]).filter({unique:["$parse",b],uniq:["$parse",b]}),t.module("a8m.where",[]).filter("where",function(){return function(e,t){return E(t)?e:(e=A(e)?r(e):e,e.filter(function(e){return o(t,e)}))}}),t.module("a8m.xor",[]).filter("xor",["$parse",function(e){return function(t,n,i){function o(t,n){var r=e(i);return n.some(function(e){return i?L(r(e),r(t)):L(e,t)})}return i=i||!1,t=A(t)?r(t):t,n=A(n)?r(n):n,D(t)&&D(n)?t.concat(n).filter(function(e){return!(o(e,t)&&o(e,n))}):t}}]),t.module("a8m.math.abs",[]).filter("abs",function(){return function(e){return Math.abs(e)}}),t.module("a8m.math.byteFmt",[]).filter("byteFmt",function(){var e=[{str:"B",val:1024}];return["KB","MB","GB","TB","PB","EB","ZB","YB"].forEach(function(t,n){e.push({str:t,val:1024*e[n].val})}),function(t,n){if(k(n)&&isFinite(n)&&n%1===0&&n>=0&&k(t)&&isFinite(t)){for(var r=0;r<e.length-1&&t>=e[r].val;)r++;return t/=r>0?e[r-1].val:1,c(t,n)+" "+e[r].str}return"NaN"}}),t.module("a8m.math.degrees",[]).filter("degrees",function(){return function(e,t){if(k(t)&&isFinite(t)&&t%1===0&&t>=0&&k(e)&&isFinite(e)){var n=180*e/Math.PI;return Math.round(n*Math.pow(10,t))/Math.pow(10,t)}return"NaN"}}),t.module("a8m.math.kbFmt",[]).filter("kbFmt",function(){var e=[{str:"KB",val:1024}];return["MB","GB","TB","PB","EB","ZB","YB"].forEach(function(t,n){e.push({str:t,val:1024*e[n].val})}),function(t,n){if(k(n)&&isFinite(n)&&n%1===0&&n>=0&&k(t)&&isFinite(t)){for(var r=0;r<e.length-1&&t>=e[r].val;)r++;return t/=r>0?e[r-1].val:1,c(t,n)+" "+e[r].str}return"NaN"}}),t.module("a8m.math.max",[]).filter("max",["$parse",function(e){function t(t,n){var r=t.map(function(t){return e(n)(t)});return r.indexOf(Math.max.apply(Math,r))}return function(e,n){return D(e)?E(n)?Math.max.apply(Math,e):e[t(e,n)]:e}}]),t.module("a8m.math.min",[]).filter("min",["$parse",function(e){function t(t,n){var r=t.map(function(t){return e(n)(t)});return r.indexOf(Math.min.apply(Math,r))}return function(e,n){return D(e)?E(n)?Math.min.apply(Math,e):e[t(e,n)]:e}}]),t.module("a8m.math.percent",[]).filter("percent",function(){return function(e,t,n){var r=C(e)?Number(e):e;return t=t||100,n=n||!1,!k(r)||isNaN(r)?e:n?Math.round(r/t*100):r/t*100}}),t.module("a8m.math.radians",[]).filter("radians",function(){return function(e,t){if(k(t)&&isFinite(t)&&t%1===0&&t>=0&&k(e)&&isFinite(e)){var n=3.14159265359*e/180;return Math.round(n*Math.pow(10,t))/Math.pow(10,t)}return"NaN"}}),t.module("a8m.math.radix",[]).filter("radix",function(){return function(e,t){var n=/^[2-9]$|^[1-2]\d$|^3[0-6]$/;return k(e)&&n.test(t)?e.toString(t).toUpperCase():e}}),t.module("a8m.math.shortFmt",[]).filter("shortFmt",function(){return function(e,t){return k(t)&&isFinite(t)&&t%1===0&&t>=0&&k(e)&&isFinite(e)?e<1e3?""+e:e<1e6?c(e/1e3,t)+" K":e<1e9?c(e/1e6,t)+" M":c(e/1e9,t)+" B":"NaN"}}),t.module("a8m.math.sum",[]).filter("sum",function(){return function(e,t){return D(e)?e.reduce(function(e,t){return e+t},t||0):e}}),t.module("a8m.ends-with",[]).filter("endsWith",function(){return function(e,t,n){var r,i=n||!1;return!C(e)||E(t)?e:(e=i?e:e.toLowerCase(),r=e.length-t.length,e.indexOf(i?t:t.toLowerCase(),r)!==-1)}}),t.module("a8m.latinize",[]).filter("latinize",[function(){function e(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return n[e]||e})}for(var t=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],n={},r=0;r<t.length;r++)for(var i=t[r].letters.split(""),o=0;o<i.length;o++)n[i[o]]=t[r].base;return function(t){return C(t)?e(t):t}}]),t.module("a8m.ltrim",[]).filter("ltrim",function(){return function(e,t){var n=t||"\\s";return C(e)?e.replace(new RegExp("^"+n+"+"),""):e}}),t.module("a8m.match",[]).filter("match",function(){return function(e,t,n){var r=new RegExp(t,n);return C(e)?e.match(r):null}}),t.module("a8m.phoneUS",[]).filter("phoneUS",function(){return function(e){return e+="","("+e.slice(0,3)+") "+e.slice(3,6)+"-"+e.slice(6)}}),t.module("a8m.repeat",[]).filter("repeat",[function(){return function(e,t,n){var r=~~t;return C(e)&&r?_(e,--t,n||""):e}}]),t.module("a8m.rtrim",[]).filter("rtrim",function(){return function(e,t){var n=t||"\\s";return C(e)?e.replace(new RegExp(n+"+$"),""):e}}),t.module("a8m.slugify",[]).filter("slugify",[function(){return function(e,t){var n=E(t)?"-":t;return C(e)?e.toLowerCase().replace(/\s+/g,n):e}}]),t.module("a8m.split",[]).filter("split",function(){function e(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}return function(t,n,r){var o,a,s,c;return E(t)||!C(t)?null:(E(n)&&(n=""),isNaN(r)&&(r=0),o=new RegExp(e(n),"g"),a=t.match(o),i(a)||r>=a.length?[t]:0===r?t.split(n):(s=t.split(n),c=s.splice(0,r+1),s.unshift(c.join(n)),s))}}),t.module("a8m.starts-with",[]).filter("startsWith",function(){return function(e,t,n){var r=n||!1;return!C(e)||E(t)?e:(e=r?e:e.toLowerCase(),!e.indexOf(r?t:t.toLowerCase()))}}),t.module("a8m.stringular",[]).filter("stringular",function(){return function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,n){return E(t[n])?e:t[n]})}}),t.module("a8m.strip-tags",[]).filter("stripTags",function(){return function(e){return C(e)?e.replace(/<\S[^><]*>/g,""):e}}),t.module("a8m.test",[]).filter("test",function(){return function(e,t,n){var r=new RegExp(t,n);return C(e)?r.test(e):e}}),t.module("a8m.trim",[]).filter("trim",function(){return function(e,t){var n=t||"\\s";return C(e)?e.replace(new RegExp("^"+n+"+|"+n+"+$","g"),""):e}}),t.module("a8m.truncate",[]).filter("truncate",function(){return function(e,t,n,r){return t=E(t)?e.length:t,r=r||!1,n=n||"",!C(e)||e.length<=t?e:e.substring(0,r?e.indexOf(" ",t)===-1?e.length:e.indexOf(" ",t):t)+n}}),t.module("a8m.ucfirst",[]).filter({ucfirst:S,titleize:S}),t.module("a8m.uri-component-encode",[]).filter("uriComponentEncode",["$window",function(e){return function(t){return C(t)?e.encodeURIComponent(t):t}}]),t.module("a8m.uri-encode",[]).filter("uriEncode",["$window",function(e){return function(t){return C(t)?e.encodeURI(t):t}}]),t.module("a8m.wrap",[]).filter("wrap",function(){return function(e,t,n){return C(e)&&x(t)?[t,e,n||t].join(""):e}}),t.module("a8m.filter-watcher",[]).provider("filterWatcher",function(){this.$get=["$window","$rootScope",function(e,t){function n(t,n){function r(){var t=[];return function(n,r){if(A(r)&&!i(r)){if(~t.indexOf(r))return"[Circular]";t.push(r)}return e==r?"$WINDOW":e.document==r?"$DOCUMENT":u(r)?"$SCOPE":r}}return[t,JSON.stringify(n,r())].join("#").replace(/"/g,"")}function r(e){var t=e.targetScope.$id;I(f[t],function(e){delete l[e]}),delete f[t]}function o(){d(function(){t.$$phase||(l={})},2e3)}function a(e,t){var n=e.$id;return E(f[n])&&(e.$on("$destroy",r),f[n]=[]),f[n].push(t)}function s(e,t){var r=n(e,t);return l[r]}function c(e,t,r,i){var s=n(e,t);return l[s]=i,u(r)?a(r,s):o(),i}var l={},f={},d=e.setTimeout;return{isMemoized:s,memoize:c}}]}),t.module("angular.filter",["a8m.ucfirst","a8m.uri-encode","a8m.uri-component-encode","a8m.slugify","a8m.latinize","a8m.strip-tags","a8m.stringular","a8m.truncate","a8m.starts-with","a8m.ends-with","a8m.wrap","a8m.trim","a8m.ltrim","a8m.rtrim","a8m.repeat","a8m.test","a8m.match","a8m.split","a8m.phoneUS","a8m.to-array","a8m.concat","a8m.contains","a8m.unique","a8m.is-empty","a8m.after","a8m.after-where","a8m.before","a8m.before-where","a8m.defaults","a8m.where","a8m.reverse","a8m.remove","a8m.remove-with","a8m.group-by","a8m.count-by","a8m.chunk-by","a8m.search-field","a8m.fuzzy-by","a8m.fuzzy","a8m.omit","a8m.pick","a8m.every","a8m.filter-by","a8m.xor","a8m.map","a8m.first","a8m.last","a8m.flatten","a8m.join","a8m.range","a8m.math.max","a8m.math.min","a8m.math.abs","a8m.math.percent","a8m.math.radix","a8m.math.sum","a8m.math.degrees","a8m.math.radians","a8m.math.byteFmt","a8m.math.kbFmt","a8m.math.shortFmt","a8m.angular","a8m.conditions","a8m.is-null","a8m.filter-watcher"])}(window,window.angular),/**
 * oclazyload - Load modules on demand (lazy load) with angularJS
 * @version v1.0.10
 * @link https://github.com/ocombe/ocLazyLoad
 * @license MIT
 * @author Olivier Combe <olivier.combe@gmail.com>
 */
!function(e,t){"use strict";var n=["ng","oc.lazyLoad"],r={},i=[],o=[],a=[],s=[],c=e.noop,l={},u=[],f=e.module("oc.lazyLoad",["ng"]);f.provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(f,d,m,v,g,$){function y(t,r,i){if(r){var o,s,f,d=[];for(o=r.length-1;o>=0;o--)if(s=r[o],e.isString(s)||(s=_(s)),s&&-1===u.indexOf(s)&&(!x[s]||-1!==a.indexOf(s))){var h=-1===n.indexOf(s);if(f=p(s),h&&(n.push(s),y(t,f.requires,i)),f._runBlocks.length>0)for(l[s]=[];f._runBlocks.length>0;)l[s].push(f._runBlocks.shift());e.isDefined(l[s])&&(h||i.rerun)&&(d=d.concat(l[s])),b(t,f._invokeQueue,s,i.reconfig),b(t,f._configBlocks,s,i.reconfig),c(h?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",s),r.pop(),u.push(s)}var m=t.getInstanceInjector();e.forEach(d,function(e){m.invoke(e)})}}function w(t,n){function i(t,n){var r,i=!0;return n.length&&(r=o(t),e.forEach(n,function(e){i=i&&o(e)!==r})),i}function o(t){return e.isArray(t)?I(t.toString()):e.isObject(t)?I(D(t)):e.isDefined(t)&&null!==t?I(t.toString()):t}var a=t[2][0],s=t[1],l=!1;e.isUndefined(r[n])&&(r[n]={}),e.isUndefined(r[n][s])&&(r[n][s]={});var u=function(e,t){r[n][s].hasOwnProperty(e)||(r[n][s][e]=[]),i(t,r[n][s][e])&&(l=!0,r[n][s][e].push(t),c("ocLazyLoad.componentLoaded",[n,s,e]))};if(e.isString(a))u(a,t[2][1]);else{if(!e.isObject(a))return!1;e.forEach(a,function(t,n){e.isString(t)?u(t,a[1]):u(n,t)})}return l}function b(t,n,r,o){if(n){var a,s,c,l;for(a=0,s=n.length;s>a;a++)if(c=n[a],e.isArray(c)){if(null!==t){if(!t.hasOwnProperty(c[0]))throw new Error("unsupported provider "+c[0]);l=t[c[0]]}var u=w(c,r);if("invoke"!==c[1])u&&e.isDefined(l)&&l[c[1]].apply(l,c[2]);else{var f=function(t){var n=i.indexOf(r+"-"+t);(-1===n||o)&&(-1===n&&i.push(r+"-"+t),e.isDefined(l)&&l[c[1]].apply(l,c[2]))};if(e.isFunction(c[2][0]))f(c[2][0]);else if(e.isArray(c[2][0]))for(var d=0,h=c[2][0].length;h>d;d++)e.isFunction(c[2][0][d])&&f(c[2][0][d])}}}}function _(t){var n=null;return e.isString(t)?n=t:e.isObject(t)&&t.hasOwnProperty("name")&&e.isString(t.name)&&(n=t.name),n}function S(t){if(!e.isString(t))return!1;try{return p(t)}catch(n){if(/No module/.test(n)||n.message.indexOf("$injector:nomod")>-1)return!1}}var x={},E={$controllerProvider:f,$compileProvider:m,$filterProvider:v,$provide:d,$injector:g,$animateProvider:$},T=!1,C=!1,k=[],A={};k.push=function(e){-1===this.indexOf(e)&&Array.prototype.push.apply(this,arguments)},this.config=function(t){e.isDefined(t.modules)&&(e.isArray(t.modules)?e.forEach(t.modules,function(e){x[e.name]=e}):x[t.modules.name]=t.modules),e.isDefined(t.debug)&&(T=t.debug),e.isDefined(t.events)&&(C=t.events)},this._init=function(r){if(0===o.length){var i=[r],a=["ng:app","ng-app","x-ng-app","data-ng-app"],c=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,l=function(e){return e&&i.push(e)};e.forEach(a,function(t){a[t]=!0,l(document.getElementById(t)),t=t.replace(":","\\:"),"undefined"!=typeof r[0]&&r[0].querySelectorAll&&(e.forEach(r[0].querySelectorAll("."+t),l),e.forEach(r[0].querySelectorAll("."+t+"\\:"),l),e.forEach(r[0].querySelectorAll("["+t+"]"),l))}),e.forEach(i,function(t){if(0===o.length){var n=" "+r.className+" ",i=c.exec(n);i?o.push((i[2]||"").replace(/\s+/g,",")):e.forEach(t.attributes,function(e){0===o.length&&a[e.name]&&o.push(e.value)})}})}0!==o.length||(t.jasmine||t.mocha)&&e.isDefined(e.mock)||console.error("No module found during bootstrap, unable to init ocLazyLoad. You should always use the ng-app directive or angular.boostrap when you use ocLazyLoad.");var u=function f(t){if(-1===n.indexOf(t)){n.push(t);var r=e.module(t);b(null,r._invokeQueue,t),b(null,r._configBlocks,t),e.forEach(r.requires,f)}};e.forEach(o,function(e){u(e)}),o=[],s.pop()};var D=function(t){try{return JSON.stringify(t)}catch(n){var r=[];return JSON.stringify(t,function(t,n){if(e.isObject(n)&&null!==n){if(-1!==r.indexOf(n))return;r.push(n)}return n})}},I=function(e){var t,n,r,i=0;if(0==e.length)return i;for(t=0,r=e.length;r>t;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i|=0;return i};this.$get=["$log","$rootElement","$rootScope","$cacheFactory","$q",function(t,i,a,l,f){function d(e){var n=f.defer();return t.error(e.message),n.reject(e),n.promise}var m,v=l("ocLazyLoad");return T||(t={},t.error=e.noop,t.warn=e.noop,t.info=e.noop),E.getInstanceInjector=function(){return m?m:m=i.data("$injector")||e.injector()},c=function(e,n){C&&a.$broadcast(e,n),T&&t.info(e,n)},{_broadcast:c,_$log:t,_getFilesCache:function(){return v},toggleWatch:function(e){e?s.push(!0):s.pop()},getModuleConfig:function(t){if(!e.isString(t))throw new Error("You need to give the name of the module to get");return x[t]?e.copy(x[t]):null},setModuleConfig:function(t){if(!e.isObject(t))throw new Error("You need to give the module config object to set");return x[t.name]=t,t},getModules:function(){return n},isLoaded:function(t){var r=function(e){var t=n.indexOf(e)>-1;return t||(t=!!S(e)),t};if(e.isString(t)&&(t=[t]),e.isArray(t)){var i,o;for(i=0,o=t.length;o>i;i++)if(!r(t[i]))return!1;return!0}throw new Error("You need to define the module(s) name(s)")},_getModuleName:_,_getModule:function(e){try{return p(e)}catch(t){throw(/No module/.test(t)||t.message.indexOf("$injector:nomod")>-1)&&(t.message='The module "'+D(e)+'" that you are trying to load does not exist. '+t.message),t}},moduleExists:S,_loadDependencies:function(t,n){var r,i,o,a=[],s=this;if(t=s._getModuleName(t),null===t)return f.when();try{r=s._getModule(t)}catch(c){return d(c)}return i=s.getRequires(r),e.forEach(i,function(r){if(e.isString(r)){var i=s.getModuleConfig(r);if(null===i)return void k.push(r);r=i,i.name=void 0}if(s.moduleExists(r.name))return o=r.files.filter(function(e){return s.getModuleConfig(r.name).files.indexOf(e)<0}),0!==o.length&&s._$log.warn('Module "',t,'" attempted to redefine configuration for dependency. "',r.name,'"\n Additional Files Loaded:',o),e.isDefined(s.filesLoader)?void a.push(s.filesLoader(r,n).then(function(){return s._loadDependencies(r)})):d(new Error("Error: New dependencies need to be loaded from external files ("+r.files+"), but no loader has been defined."));if(e.isArray(r)){var c=[];e.forEach(r,function(e){var t=s.getModuleConfig(e);null===t?c.push(e):t.files&&(c=c.concat(t.files))}),c.length>0&&(r={files:c})}else e.isObject(r)&&r.hasOwnProperty("name")&&r.name&&(s.setModuleConfig(r),k.push(r.name));if(e.isDefined(r.files)&&0!==r.files.length){if(!e.isDefined(s.filesLoader))return d(new Error('Error: the module "'+r.name+'" is defined in external files ('+r.files+"), but no loader has been defined."));a.push(s.filesLoader(r,n).then(function(){return s._loadDependencies(r)}))}}),f.all(a)},inject:function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],i=this,a=f.defer();if(e.isDefined(t)&&null!==t){if(e.isArray(t)){var s=[];return e.forEach(t,function(e){s.push(i.inject(e,n,r))}),f.all(s)}i._addToLoadList(i._getModuleName(t),!0,r)}if(o.length>0){var c=o.slice(),l=function d(e){k.push(e),A[e]=a.promise,i._loadDependencies(e,n).then(function(){try{u=[],y(E,k,n)}catch(e){return i._$log.error(e.message),void a.reject(e)}o.length>0?d(o.shift()):a.resolve(c)},function(e){a.reject(e)})};l(o.shift())}else{if(n&&n.name&&A[n.name])return A[n.name];a.resolve()}return a.promise},getRequires:function(t){var r=[];return e.forEach(t.requires,function(e){-1===n.indexOf(e)&&r.push(e)}),r},_invokeQueue:b,_registerInvokeList:w,_register:y,_addToLoadList:h,_unregister:function(t){e.isDefined(t)&&e.isArray(t)&&e.forEach(t,function(e){r[e]=void 0})}}}],this._init(e.element(t.document))}]);var d=e.bootstrap;e.bootstrap=function(t,f,p){return n=["ng","oc.lazyLoad"],r={},i=[],o=[],a=[],s=[],c=e.noop,l={},u=[],e.forEach(f.slice(),function(e){h(e,!0,!0)}),d(t,f,p)};var h=function(t,n,r){(s.length>0||n)&&e.isString(t)&&-1===o.indexOf(t)&&(o.push(t),r&&a.push(t))},p=e.module;e.module=function(e,t,n){return h(e,!1,!0),p(e,t,n)},"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="oc.lazyLoad")}(angular,window),function(e){"use strict";e.module("oc.lazyLoad").directive("ocLazyLoad",["$ocLazyLoad","$compile","$animate","$parse","$timeout",function(t,n,r,i,o){return{restrict:"A",terminal:!0,priority:1e3,compile:function(o,a){var s=o[0].innerHTML;return o.html(""),function(o,a,c){var l=i(c.ocLazyLoad);o.$watch(function(){return l(o)||c.ocLazyLoad},function(i){e.isDefined(i)&&t.load(i).then(function(){r.enter(s,a),n(a.contents())(o)})},!0)}}}}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q","$window","$interval",function(t,n,r,i){var o=!1,a=!1,s=r.document.getElementsByTagName("head")[0]||r.document.getElementsByTagName("body")[0];return t.buildElement=function(c,l,u){var f,d,h=n.defer(),p=t._getFilesCache(),m=function(e){var t=(new Date).getTime();return e.indexOf("?")>=0?"&"===e.substring(0,e.length-1)?e+"_dc="+t:e+"&_dc="+t:e+"?_dc="+t};switch(e.isUndefined(p.get(l))&&p.put(l,h.promise),c){case"css":f=r.document.createElement("link"),f.type="text/css",f.rel="stylesheet",f.href=u.cache===!1?m(l):l;break;case"js":f=r.document.createElement("script"),f.src=u.cache===!1?m(l):l;break;default:p.remove(l),h.reject(new Error('Requested type "'+c+'" is not known. Could not inject "'+l+'"'))}f.onload=f.onreadystatechange=function(e){f.readyState&&!/^c|loade/.test(f.readyState)||d||(f.onload=f.onreadystatechange=null,d=1,t._broadcast("ocLazyLoad.fileLoaded",l),h.resolve(f))},f.onerror=function(){p.remove(l),h.reject(new Error("Unable to load "+l))},f.async=u.serie?0:1;var v=s.lastChild;if(u.insertBefore){var g=e.element(e.isDefined(window.jQuery)?u.insertBefore:document.querySelector(u.insertBefore));g&&g.length>0&&(v=g[0])}if(v.parentNode.insertBefore(f,v),"css"==c){if(!o){var $=r.navigator.userAgent.toLowerCase();if($.indexOf("phantomjs/1.9")>-1)a=!0;else if(/iP(hone|od|ad)/.test(r.navigator.platform)){var y=r.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),w=parseFloat([parseInt(y[1],10),parseInt(y[2],10),parseInt(y[3]||0,10)].join("."));a=6>w}else if($.indexOf("android")>-1){var b=parseFloat($.slice($.indexOf("android")+8));a=4.4>b}else if($.indexOf("safari")>-1){var _=$.match(/version\/([\.\d]+)/i);a=_&&_[1]&&parseFloat(_[1])<6}}if(a)var S=1e3,x=i(function(){try{f.sheet.cssRules,i.cancel(x),f.onload()}catch(e){--S<=0&&f.onerror()}},20)}return h.promise},t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.filesLoader=function(r){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=[],a=[],s=[],c=[],l=null,u=t._getFilesCache();t.toggleWatch(!0),e.extend(i,r);var f=function(n){var r,f=null;if(e.isObject(n)&&(f=n.type,n=n.path),l=u.get(n),e.isUndefined(l)||i.cache===!1){if(null!==(r=/^(css|less|html|htm|js)?(?=!)/.exec(n))&&(f=r[1],n=n.substr(r[1].length+1,n.length)),!f)if(null!==(r=/[.](css|less|html|htm|js)?((\?|#).*)?$/.exec(n)))f=r[1];else{if(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||!t.jsLoader.hasOwnProperty("requirejs"))return void t._$log.error("File type could not be determined. "+n);f="js"}"css"!==f&&"less"!==f||-1!==o.indexOf(n)?"html"!==f&&"htm"!==f||-1!==a.indexOf(n)?"js"===f||-1===s.indexOf(n)?s.push(n):t._$log.error("File type is not valid. "+n):a.push(n):o.push(n)}else l&&c.push(l)};if(i.serie?f(i.files.shift()):e.forEach(i.files,function(e){f(e)}),o.length>0){var d=n.defer();t.cssLoader(o,function(n){e.isDefined(n)&&t.cssLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),d.reject(n)):d.resolve()},i),c.push(d.promise)}if(a.length>0){var h=n.defer();t.templatesLoader(a,function(n){e.isDefined(n)&&t.templatesLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),h.reject(n)):h.resolve()},i),c.push(h.promise)}if(s.length>0){var p=n.defer();t.jsLoader(s,function(n){e.isDefined(n)&&(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||t.jsLoader.hasOwnProperty("requirejs"))?(t._$log.error(n),p.reject(n)):p.resolve()},i),c.push(p.promise)}if(0===c.length){var m=n.defer(),v="Error: no file to load has been found, if you're trying to load an existing module you should use the 'inject' method instead of 'load'.";return t._$log.error(v),m.reject(v),m.promise}return i.serie&&i.files.length>0?n.all(c).then(function(){return t.filesLoader(r,i)}):n.all(c)["finally"](function(e){return t.toggleWatch(!1),e})},t.load=function(r){var i,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=this,s=null,c=[],l=n.defer(),u=e.copy(r),f=e.copy(o);if(e.isArray(u))return e.forEach(u,function(e){c.push(a.load(e,f))}),n.all(c).then(function(e){l.resolve(e)},function(e){l.reject(e)}),l.promise;if(e.isString(u)?(s=a.getModuleConfig(u),s||(s={files:[u]})):e.isObject(u)&&(s=e.isDefined(u.path)&&e.isDefined(u.type)?{files:[u]}:a.setModuleConfig(u)),null===s){var d=a._getModuleName(u);return i='Module "'+(d||"unknown")+'" is not configured, cannot load.',t._$log.error(i),l.reject(new Error(i)),l.promise}e.isDefined(s.template)&&(e.isUndefined(s.files)&&(s.files=[]),e.isString(s.template)?s.files.push(s.template):e.isArray(s.template)&&s.files.concat(s.template));var h=e.extend({},f,s);return e.isUndefined(s.files)&&e.isDefined(s.name)&&t.moduleExists(s.name)?t.inject(s.name,h,!0):(t.filesLoader(s,h).then(function(){t.inject(null,h).then(function(e){l.resolve(e)},function(e){l.reject(e)})},function(e){l.reject(e)}),l.promise)},t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.cssLoader=function(r,i,o){var a=[];e.forEach(r,function(e){a.push(t.buildElement("css",e,o))}),n.all(a).then(function(){i()},function(e){i(e)})},t.cssLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.jsLoader=function(r,i,o){var a=[];e.forEach(r,function(e){a.push(t.buildElement("js",e,o))}),n.all(a).then(function(){i()},function(e){i(e)})},t.jsLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$templateCache","$q","$http",function(t,n,r,i){return t.templatesLoader=function(o,a,s){var c=[],l=t._getFilesCache();return e.forEach(o,function(t){var o=r.defer();c.push(o.promise),i.get(t,s).then(function(r){var i=r.data;e.isString(i)&&i.length>0&&e.forEach(e.element(i),function(e){"SCRIPT"===e.nodeName&&"text/ng-template"===e.type&&n.put(e.id,e.innerHTML)}),e.isUndefined(l.get(t))&&l.put(t,!0),o.resolve()})["catch"](function(e){o.reject(new Error('Unable to load template file "'+t+'": '+e.data))})}),r.all(c).then(function(){a()},function(e){a(e)})},t.templatesLoader.ocLazyLoadLoader=!0,t}])}])}(angular),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0===i)return-1;var o=+t||0;if(Math.abs(o)===1/0&&(o=0),o>=i)return-1;for(n=Math.max(o>=0?o:i-Math.abs(o),0);i>n;){if(n in r&&r[n]===e)return n;n++}return-1});