text: window.google=window.google||{},google.maps=google.maps||{},function(){function a(a){document.write('<script src="'+a+'" type="text/javascript"></script>')}var b=google.maps.modules={};google.maps.__gjsload__=function(a,c){b[a]=c},google.maps.Load=function(a){delete google.maps.Load,a([.009999999776482582,[[["https://mts0.googleapis.com/vt?lyrs=m@276000000&src=api&hl=en-US&","https://mts1.googleapis.com/vt?lyrs=m@276000000&src=api&hl=en-US&"],null,null,null,null,"m@276000000",["https://mts0.google.com/vt?lyrs=m@276000000&src=api&hl=en-US&","https://mts1.google.com/vt?lyrs=m@276000000&src=api&hl=en-US&"]],[["https://khms0.googleapis.com/kh?v=158&hl=en-US&","https://khms1.googleapis.com/kh?v=158&hl=en-US&"],null,null,null,1,"158",["https://khms0.google.com/kh?v=158&hl=en-US&","https://khms1.google.com/kh?v=158&hl=en-US&"]],[["https://mts0.googleapis.com/vt?lyrs=h@276000000&src=api&hl=en-US&","https://mts1.googleapis.com/vt?lyrs=h@276000000&src=api&hl=en-US&"],null,null,null,null,"h@276000000",["https://mts0.google.com/vt?lyrs=h@276000000&src=api&hl=en-US&","https://mts1.google.com/vt?lyrs=h@276000000&src=api&hl=en-US&"]],[["https://mts0.googleapis.com/vt?lyrs=t@132,r@276000000&src=api&hl=en-US&","https://mts1.googleapis.com/vt?lyrs=t@132,r@276000000&src=api&hl=en-US&"],null,null,null,null,"t@132,r@276000000",["https://mts0.google.com/vt?lyrs=t@132,r@276000000&src=api&hl=en-US&","https://mts1.google.com/vt?lyrs=t@132,r@276000000&src=api&hl=en-US&"]],null,null,[["https://cbks0.googleapis.com/cbk?","https://cbks1.googleapis.com/cbk?"]],[["https://khms0.googleapis.com/kh?v=84&hl=en-US&","https://khms1.googleapis.com/kh?v=84&hl=en-US&"],null,null,null,null,"84",["https://khms0.google.com/kh?v=84&hl=en-US&","https://khms1.google.com/kh?v=84&hl=en-US&"]],[["https://mts0.googleapis.com/mapslt?hl=en-US&","https://mts1.googleapis.com/mapslt?hl=en-US&"]],[["https://mts0.googleapis.com/mapslt/ft?hl=en-US&","https://mts1.googleapis.com/mapslt/ft?hl=en-US&"]],[["https://mts0.googleapis.com/vt?hl=en-US&","https://mts1.googleapis.com/vt?hl=en-US&"]],[["https://mts0.googleapis.com/mapslt/loom?hl=en-US&","https://mts1.googleapis.com/mapslt/loom?hl=en-US&"]],[["https://mts0.googleapis.com/mapslt?hl=en-US&","https://mts1.googleapis.com/mapslt?hl=en-US&"]],[["https://mts0.googleapis.com/mapslt/ft?hl=en-US&","https://mts1.googleapis.com/mapslt/ft?hl=en-US&"]],[["https://mts0.googleapis.com/mapslt/loom?hl=en-US&","https://mts1.googleapis.com/mapslt/loom?hl=en-US&"]]],["en-US","US",null,0,null,null,"https://maps.gstatic.com/mapfiles/","https://csi.gstatic.com","https://maps.googleapis.com","https://maps.googleapis.com",null,"https://maps.google.com"],["https://maps.gstatic.com/maps-api-v3/api/js/18/6","3.18.6"],[2392367129],1,null,null,null,null,null,"",null,null,1,"https://khms.googleapis.com/mz?v=158&","AIzaSyBKsMQJkUOyaeRcDYlcu6vzIK5sXVE-LMY","https://earthbuilder.googleapis.com","https://earthbuilder.googleapis.com",null,"https://mts.googleapis.com/vt/icon",[["https://mts0.googleapis.com/vt","https://mts1.googleapis.com/vt"],["https://mts0.googleapis.com/vt","https://mts1.googleapis.com/vt"],[null,[[0,"m",276e6]],[null,"en-US","US",null,18,null,null,null,null,null,null,[[47],[37,[["smartmaps"]]]]],0],[null,[[0,"m",276e6]],[null,"en-US","US",null,18,null,null,null,null,null,null,[[47],[37,[["smartmaps"]]]]],3],[null,[[0,"m",276e6]],[null,"en-US","US",null,18,null,null,null,null,null,null,[[50],[37,[["smartmaps"]]]]],0],[null,[[0,"m",276e6]],[null,"en-US","US",null,18,null,null,null,null,null,null,[[50],[37,[["smartmaps"]]]]],3],[null,[[4,"t",132],[0,"r",132e6]],[null,"en-US","US",null,18,null,null,null,null,null,null,[[63],[37,[["smartmaps"]]]]],0],[null,[[4,"t",132],[0,"r",132e6]],[null,"en-US","US",null,18,null,null,null,null,null,null,[[63],[37,[["smartmaps"]]]]],3],[null,null,[null,"en-US","US",null,18],0],[null,null,[null,"en-US","US",null,18],3],[null,null,[null,"en-US","US",null,18],6],[null,null,[null,"en-US","US",null,18],0],["https://mts0.google.com/vt","https://mts1.google.com/vt"],"/maps/vt",276e6,132],2,500,["https://geo0.ggpht.com/cbk","https://g0.gstatic.com/landmark/tour","https://g0.gstatic.com/landmark/config","","https://www.google.com/maps/preview/log204","","https://static.panoramio.com.storage.googleapis.com/photos/"],["https://www.google.com/maps/api/js/master?pb=!1m2!1u18!2s6!2sen-US!3sUS!4s18/6","https://www.google.com/maps/api/js/widget?pb=!1m2!1u18!2s6!2sen-US"],1,0],c)};var c=(new Date).getTime();a("https://maps.gstatic.com/maps-api-v3/api/js/18/6/main.js")}(),function(a,b,c){"use strict";function d(a){return function(){var b,c,d=arguments[0],e="["+(a?a+":":"")+d+"] ",f=arguments[1],g=arguments,h=function(a){return"function"==typeof a?a.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof a?"undefined":"string"!=typeof a?JSON.stringify(a):a};for(b=e+f.replace(/\{\d+\}/g,function(a){var b,c=+a.slice(1,-1);return c+2<g.length?(b=g[c+2],"function"==typeof b?b.toString().replace(/ ?\{[\s\S]*$/,""):"undefined"==typeof b?"undefined":"string"!=typeof b?Q(b):b):a}),b=b+"\nhttp://errors.angularjs.org/1.2.25/"+(a?a+"/":"")+d,c=2;c<arguments.length;c++)b=b+(2==c?"?":"&")+"p"+(c-2)+"="+encodeURIComponent(h(arguments[c]));return new Error(b)}}function e(a){if(null==a||z(a))return!1;var b=a.length;return 1===a.nodeType&&b?!0:u(a)||Cd(a)||0===b||"number"==typeof b&&b>0&&b-1 in a}function f(a,b,c){var d;if(a)if(x(a))for(d in a)"prototype"==d||"length"==d||"name"==d||a.hasOwnProperty&&!a.hasOwnProperty(d)||b.call(c,a[d],d);else if(Cd(a)||e(a))for(d=0;d<a.length;d++)b.call(c,a[d],d);else if(a.forEach&&a.forEach!==f)a.forEach(b,c);else for(d in a)a.hasOwnProperty(d)&&b.call(c,a[d],d);return a}function g(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b.sort()}function h(a,b,c){for(var d=g(a),e=0;e<d.length;e++)b.call(c,a[d[e]],d[e]);return d}function i(a){return function(b,c){a(c,b)}}function j(){for(var a,b=Bd.length;b;){if(b--,a=Bd[b].charCodeAt(0),57==a)return Bd[b]="A",Bd.join("");if(90!=a)return Bd[b]=String.fromCharCode(a+1),Bd.join("");Bd[b]="0"}return Bd.unshift("0"),Bd.join("")}function k(a,b){b?a.$$hashKey=b:delete a.$$hashKey}function l(a){var b=a.$$hashKey;return f(arguments,function(b){b!==a&&f(b,function(b,c){a[c]=b})}),k(a,b),a}function m(a){return parseInt(a,10)}function n(a,b){return l(new(l(function(){},{prototype:a})),b)}function o(){}function p(a){return a}function q(a){return function(){return a}}function r(a){return"undefined"==typeof a}function s(a){return"undefined"!=typeof a}function t(a){return null!=a&&"object"==typeof a}function u(a){return"string"==typeof a}function v(a){return"number"==typeof a}function w(a){return"[object Date]"===yd.call(a)}function x(a){return"function"==typeof a}function y(a){return"[object RegExp]"===yd.call(a)}function z(a){return a&&a.document&&a.location&&a.alert&&a.setInterval}function A(a){return a&&a.$evalAsync&&a.$watch}function B(a){return"[object File]"===yd.call(a)}function C(a){return"[object Blob]"===yd.call(a)}function D(a){return a&&x(a.then)}function E(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function F(a,b,c){var d=[];return f(a,function(a,e,f){d.push(b.call(c,a,e,f))}),d}function G(a,b){return-1!=H(a,b)}function H(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0;c<a.length;c++)if(b===a[c])return c;return-1}function I(a,b){var c=H(a,b);return c>=0&&a.splice(c,1),b}function J(a,b,c,d){if(z(a)||A(a))throw zd("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(b){if(a===b)throw zd("cpi","Can't copy! Source and destination are identical.");if(c=c||[],d=d||[],t(a)){var e=H(c,a);if(-1!==e)return d[e];c.push(a),d.push(b)}var g;if(Cd(a)){b.length=0;for(var h=0;h<a.length;h++)g=J(a[h],null,c,d),t(a[h])&&(c.push(a[h]),d.push(g)),b.push(g)}else{var i=b.$$hashKey;Cd(b)?b.length=0:f(b,function(a,c){delete b[c]});for(var j in a)g=J(a[j],null,c,d),t(a[j])&&(c.push(a[j]),d.push(g)),b[j]=g;k(b,i)}}else b=a,a&&(Cd(a)?b=J(a,[],c,d):w(a)?b=new Date(a.getTime()):y(a)?(b=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]),b.lastIndex=a.lastIndex):t(a)&&(b=J(a,{},c,d)));return b}function K(a,b){if(Cd(a)){b=b||[];for(var c=0;c<a.length;c++)b[c]=a[c]}else if(t(a)){b=b||{};for(var d in a)!nd.call(a,d)||"$"===d.charAt(0)&&"$"===d.charAt(1)||(b[d]=a[d])}return b||a}function L(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d,e,f,g=typeof a,h=typeof b;if(g==h&&"object"==g){if(!Cd(a)){if(w(a))return w(b)?isNaN(a.getTime())&&isNaN(b.getTime())||a.getTime()===b.getTime():!1;if(y(a)&&y(b))return a.toString()==b.toString();if(A(a)||A(b)||z(a)||z(b)||Cd(b))return!1;f={};for(e in a)if("$"!==e.charAt(0)&&!x(a[e])){if(!L(a[e],b[e]))return!1;f[e]=!0}for(e in b)if(!f.hasOwnProperty(e)&&"$"!==e.charAt(0)&&b[e]!==c&&!x(b[e]))return!1;return!0}if(!Cd(b))return!1;if((d=a.length)==b.length){for(e=0;d>e;e++)if(!L(a[e],b[e]))return!1;return!0}}return!1}function M(a,b,c){return a.concat(wd.call(b,c))}function N(a,b){return wd.call(a,b||0)}function O(a,b){var c=arguments.length>2?N(arguments,2):[];return!x(b)||b instanceof RegExp?b:c.length?function(){return arguments.length?b.apply(a,c.concat(wd.call(arguments,0))):b.apply(a,c)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function P(a,d){var e=d;return"string"==typeof a&&"$"===a.charAt(0)?e=c:z(d)?e="$WINDOW":d&&b===d?e="$DOCUMENT":A(d)&&(e="$SCOPE"),e}function Q(a,b){return"undefined"==typeof a?c:JSON.stringify(a,P,b?"  ":null)}function R(a){return u(a)?JSON.parse(a):a}function S(a){if("function"==typeof a)a=!0;else if(a&&0!==a.length){var b=md(""+a);a=!("f"==b||"0"==b||"false"==b||"no"==b||"n"==b||"[]"==b)}else a=!1;return a}function T(a){a=sd(a).clone();try{a.empty()}catch(b){}var c=3,d=sd("<div>").append(a).html();try{return a[0].nodeType===c?md(d):d.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+md(b)})}catch(b){return md(d)}}function U(a){try{return decodeURIComponent(a)}catch(b){}}function V(a){var b,c,d={};return f((a||"").split("&"),function(a){if(a&&(b=a.replace(/\+/g,"%20").split("="),c=U(b[0]),s(c))){var e=s(b[1])?U(b[1]):!0;nd.call(d,c)?Cd(d[c])?d[c].push(e):d[c]=[d[c],e]:d[c]=e}}),d}function W(a){var b=[];return f(a,function(a,c){Cd(a)?f(a,function(a){b.push(Y(c,!0)+(a===!0?"":"="+Y(a,!0)))}):b.push(Y(c,!0)+(a===!0?"":"="+Y(a,!0)))}),b.length?b.join("&"):""}function X(a){return Y(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Y(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,b?"%20":"+")}function Z(a,c){function d(a){a&&h.push(a)}var e,g,h=[a],i=["ng:app","ng-app","x-ng-app","data-ng-app"],j=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;f(i,function(c){i[c]=!0,d(b.getElementById(c)),c=c.replace(":","\\:"),a.querySelectorAll&&(f(a.querySelectorAll("."+c),d),f(a.querySelectorAll("."+c+"\\:"),d),f(a.querySelectorAll("["+c+"]"),d))}),f(h,function(a){if(!e){var b=" "+a.className+" ",c=j.exec(b);c?(e=a,g=(c[2]||"").replace(/\s+/g,",")):f(a.attributes,function(b){!e&&i[b.name]&&(e=a,g=b.value)})}}),e&&c(e,g?[g]:[])}function $(c,d){var e=function(){if(c=sd(c),c.injector()){var a=c[0]===b?"document":T(c);throw zd("btstrpd","App Already Bootstrapped with this Element '{0}'",a.replace(/</,"&lt;").replace(/>/,"&gt;"))}d=d||[],d.unshift(["$provide",function(a){a.value("$rootElement",c)}]),d.unshift("ng");var e=Hb(d);return e.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(a,b,c,d){a.$apply(function(){b.data("$injector",d),c(b)(a)})}]),e},g=/^NG_DEFER_BOOTSTRAP!/;return a&&!g.test(a.name)?e():(a.name=a.name.replace(g,""),void(Ad.resumeBootstrap=function(a){f(a,function(a){d.push(a)}),e()}))}function _(a,b){return b=b||"_",a.replace(Fd,function(a,c){return(c?b:"")+a.toLowerCase()})}function ab(){td=a.jQuery,td&&td.fn.on?(sd=td,l(td.fn,{scope:Td.scope,isolateScope:Td.isolateScope,controller:Td.controller,injector:Td.injector,inheritedData:Td.inheritedData}),kb("remove",!0,!0,!1),kb("empty",!1,!1,!1),kb("html",!1,!1,!0)):sd=ob,Ad.element=sd}function bb(a,b,c){if(!a)throw zd("areq","Argument '{0}' is {1}",b||"?",c||"required");return a}function cb(a,b,c){return c&&Cd(a)&&(a=a[a.length-1]),bb(x(a),b,"not a function, got "+(a&&"object"==typeof a?a.constructor.name||"Object":typeof a)),a}function db(a,b){if("hasOwnProperty"===a)throw zd("badname","hasOwnProperty is not a valid {0} name",b)}function eb(a,b,c){if(!b)return a;for(var d,e=b.split("."),f=a,g=e.length,h=0;g>h;h++)d=e[h],a&&(a=(f=a)[d]);return!c&&x(a)?O(f,a):a}function fb(a){var b=a[0],c=a[a.length-1];if(b===c)return sd(b);var d=b,e=[d];do{if(d=d.nextSibling,!d)break;e.push(d)}while(d!==c);return sd(e)}function gb(a){function b(a,b,c){return a[b]||(a[b]=c())}var c=d("$injector"),e=d("ng"),f=b(a,"angular",Object);return f.$$minErr=f.$$minErr||d,b(f,"module",function(){var a={};return function(d,f,g){var h=function(a,b){if("hasOwnProperty"===a)throw e("badname","hasOwnProperty is not a valid {0} name",b)};return h(d,"module"),f&&a.hasOwnProperty(d)&&(a[d]=null),b(a,d,function(){function a(a,c,d){return function(){return b[d||"push"]([a,c,arguments]),i}}if(!f)throw c("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.",d);var b=[],e=[],h=a("$injector","invoke"),i={_invokeQueue:b,_runBlocks:e,requires:f,name:d,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:h,run:function(a){return e.push(a),this}};return g&&h(g),i})}})}function hb(b){l(b,{bootstrap:$,copy:J,extend:l,equals:L,element:sd,forEach:f,injector:Hb,noop:o,bind:O,toJson:Q,fromJson:R,identity:p,isUndefined:r,isDefined:s,isString:u,isFunction:x,isObject:t,isNumber:v,isElement:E,isArray:Cd,version:Gd,isDate:w,lowercase:md,uppercase:od,callbacks:{counter:0},$$minErr:d,$$csp:Ed}),ud=gb(a);try{ud("ngLocale")}catch(c){ud("ngLocale",[]).provider("$locale",cc)}ud("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:Cc}),a.provider("$compile",Ob).directive({a:Ce,input:Ne,textarea:Ne,form:Ge,script:wf,select:zf,style:Bf,option:Af,ngBind:Ze,ngBindHtml:_e,ngBindTemplate:$e,ngClass:af,ngClassEven:cf,ngClassOdd:bf,ngCloak:df,ngController:ef,ngForm:He,ngHide:qf,ngIf:hf,ngInclude:jf,ngInit:lf,ngNonBindable:mf,ngPluralize:nf,ngRepeat:of,ngShow:pf,ngStyle:rf,ngSwitch:sf,ngSwitchWhen:tf,ngSwitchDefault:uf,ngOptions:yf,ngTransclude:vf,ngModel:Te,ngList:We,ngChange:Ue,required:Ve,ngRequired:Ve,ngValue:Ye}).directive({ngInclude:kf}).directive(De).directive(ff),a.provider({$anchorScroll:Ib,$animate:ae,$browser:Lb,$cacheFactory:Mb,$controller:Rb,$document:Sb,$exceptionHandler:Tb,$filter:Nc,$interpolate:ac,$interval:bc,$http:Yb,$httpBackend:$b,$location:pc,$log:qc,$parse:xc,$rootScope:Bc,$q:yc,$sce:Hc,$sceDelegate:Gc,$sniffer:Ic,$templateCache:Nb,$timeout:Jc,$window:Mc,$$rAF:Ac,$$asyncCallback:Jb})}])}function ib(){return++Id}function jb(a){return a.replace(Ld,function(a,b,c,d){return d?c.toUpperCase():c}).replace(Md,"Moz$1")}function kb(a,b,c,d){function e(a){var e,g,h,i,j,k,l,m=c&&a?[this.filter(a)]:[this],n=b;if(!d||null!=a)for(;m.length;)for(e=m.shift(),g=0,h=e.length;h>g;g++)for(i=sd(e[g]),n?i.triggerHandler("$destroy"):n=!n,j=0,k=(l=i.children()).length;k>j;j++)m.push(td(l[j]));return f.apply(this,arguments)}var f=td.fn[a];f=f.$original||f,e.$original=f,td.fn[a]=e}function lb(a){return!Pd.test(a)}function mb(a,b){var c,d,e,f,g,h,i=b.createDocumentFragment(),j=[];if(lb(a))j.push(b.createTextNode(a));else{for(c=i.appendChild(b.createElement("div")),d=(Qd.exec(a)||["",""])[1].toLowerCase(),e=Sd[d]||Sd._default,c.innerHTML="<div>&#160;</div>"+e[1]+a.replace(Rd,"<$1></$2>")+e[2],c.removeChild(c.firstChild),f=e[0];f--;)c=c.lastChild;for(g=0,h=c.childNodes.length;h>g;++g)j.push(c.childNodes[g]);c=i.firstChild,c.textContent=""}return i.textContent="",i.innerHTML="",j}function nb(a,c){c=c||b;var d;return(d=Od.exec(a))?[c.createElement(d[1])]:mb(a,c)}function ob(a){if(a instanceof ob)return a;if(u(a)&&(a=Dd(a)),!(this instanceof ob)){if(u(a)&&"<"!=a.charAt(0))throw Nd("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ob(a)}if(u(a)){yb(this,nb(a));var c=sd(b.createDocumentFragment());c.append(this)}else yb(this,a)}function pb(a){return a.cloneNode(!0)}function qb(a){sb(a);for(var b=0,c=a.childNodes||[];b<c.length;b++)qb(c[b])}function rb(a,b,c,d){if(s(d))throw Nd("offargs","jqLite#off() does not support the `selector` argument");var e=tb(a,"events"),g=tb(a,"handle");g&&(r(b)?f(e,function(b,c){Kd(a,c,b),delete e[c]}):f(b.split(" "),function(b){r(c)?(Kd(a,b,e[b]),delete e[b]):I(e[b]||[],c)}))}function sb(a,b){var d=a.ng339,e=Hd[d];if(e){if(b)return void delete Hd[d].data[b];e.handle&&(e.events.$destroy&&e.handle({},"$destroy"),rb(a)),delete Hd[d],a.ng339=c}}function tb(a,b,c){var d=a.ng339,e=Hd[d||-1];return s(c)?(e||(a.ng339=d=ib(),e=Hd[d]={}),void(e[b]=c)):e&&e[b]}function ub(a,b,c){var d=tb(a,"data"),e=s(c),f=!e&&s(b),g=f&&!t(b);if(d||g||tb(a,"data",d={}),e)d[b]=c;else{if(!f)return d;if(g)return d&&d[b];l(d,b)}}function vb(a,b){return a.getAttribute?(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" ")>-1:!1}function wb(a,b){b&&a.setAttribute&&f(b.split(" "),function(b){a.setAttribute("class",Dd((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Dd(b)+" "," ")))})}function xb(a,b){if(b&&a.setAttribute){var c=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");f(b.split(" "),function(a){a=Dd(a),-1===c.indexOf(" "+a+" ")&&(c+=a+" ")}),a.setAttribute("class",Dd(c))}}function yb(a,b){if(b){b=b.nodeName||!s(b.length)||z(b)?[b]:b;for(var c=0;c<b.length;c++)a.push(b[c])}}function zb(a,b){return Ab(a,"$"+(b||"ngController")+"Controller")}function Ab(a,b,d){9==a.nodeType&&(a=a.documentElement);for(var e=Cd(b)?b:[b];a;){for(var f=0,g=e.length;g>f;f++)if((d=sd.data(a,e[f]))!==c)return d;a=a.parentNode||11===a.nodeType&&a.host}}function Bb(a){for(var b=0,c=a.childNodes;b<c.length;b++)qb(c[b]);for(;a.firstChild;)a.removeChild(a.firstChild)}function Cb(a,b){var c=Ud[b.toLowerCase()];return c&&Vd[a.nodeName]&&c}function Db(a,c){var d=function(d,e){if(d.preventDefault||(d.preventDefault=function(){d.returnValue=!1}),d.stopPropagation||(d.stopPropagation=function(){d.cancelBubble=!0}),d.target||(d.target=d.srcElement||b),r(d.defaultPrevented)){var g=d.preventDefault;d.preventDefault=function(){d.defaultPrevented=!0,g.call(d)},d.defaultPrevented=!1}d.isDefaultPrevented=function(){return d.defaultPrevented||d.returnValue===!1};var h=K(c[e||d.type]||[]);f(h,function(b){b.call(a,d)}),8>=rd?(d.preventDefault=null,d.stopPropagation=null,d.isDefaultPrevented=null):(delete d.preventDefault,delete d.stopPropagation,delete d.isDefaultPrevented)};return d.elem=a,d}function Eb(a,b){var d,e=typeof a;return"function"==e||"object"==e&&null!==a?"function"==typeof(d=a.$$hashKey)?d=a.$$hashKey():d===c&&(d=a.$$hashKey=(b||j)()):d=a,e+":"+d}function Fb(a,b){if(b){var c=0;this.nextUid=function(){return++c}}f(a,this.put,this)}function Gb(a){var b,c,d,e;return"function"==typeof a?(b=a.$inject)||(b=[],a.length&&(c=a.toString().replace(Zd,""),d=c.match(Wd),f(d[1].split(Xd),function(a){a.replace(Yd,function(a,c,d){b.push(d)})})),a.$inject=b):Cd(a)?(e=a.length-1,cb(a[e],"fn"),b=a.slice(0,e)):cb(a,"fn",!0),b}function Hb(a){function b(a){return function(b,c){return t(b)?void f(b,i(a)):a(b,c)}}function c(a,b){if(db(a,"service"),(x(b)||Cd(b))&&(b=v.instantiate(b)),!b.$get)throw $d("pget","Provider '{0}' must define $get factory method.",a);return s[a+n]=b}function d(a,b){return c(a,{$get:b})}function e(a,b){return d(a,["$injector",function(a){return a.instantiate(b)}])}function g(a,b){return d(a,q(b))}function h(a,b){db(a,"constant"),s[a]=b,w[a]=b}function j(a,b){var c=v.get(a+n),d=c.$get;c.$get=function(){var a=y.invoke(d,c);return y.invoke(b,null,{$delegate:a})}}function k(a){var b,c,d,e,g=[];return f(a,function(a){if(!r.get(a)){r.put(a,!0);try{if(u(a))for(b=ud(a),g=g.concat(k(b.requires)).concat(b._runBlocks),c=b._invokeQueue,d=0,e=c.length;e>d;d++){var f=c[d],h=v.get(f[0]);h[f[1]].apply(h,f[2])}else x(a)?g.push(v.invoke(a)):Cd(a)?g.push(v.invoke(a)):cb(a,"module")}catch(i){throw Cd(a)&&(a=a[a.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),$d("modulerr","Failed to instantiate module {0} due to:\n{1}",a,i.stack||i.message||i)}}}),g}function l(a,b){function c(c){if(a.hasOwnProperty(c)){if(a[c]===m)throw $d("cdep","Circular dependency found: {0}",c+" <- "+p.join(" <- "));return a[c]}try{return p.unshift(c),a[c]=m,a[c]=b(c)}catch(d){throw a[c]===m&&delete a[c],d}finally{p.shift()}}function d(a,b,d){var e,f,g,h=[],i=Gb(a);for(f=0,e=i.length;e>f;f++){if(g=i[f],"string"!=typeof g)throw $d("itkn","Incorrect injection token! Expected service name as string, got {0}",g);h.push(d&&d.hasOwnProperty(g)?d[g]:c(g))}return Cd(a)&&(a=a[e]),a.apply(b,h)}function e(a,b){var c,e,f=function(){};return f.prototype=(Cd(a)?a[a.length-1]:a).prototype,c=new f,e=d(a,c,b),t(e)||x(e)?e:c}return{invoke:d,instantiate:e,get:c,annotate:Gb,has:function(b){return s.hasOwnProperty(b+n)||a.hasOwnProperty(b)}}}var m={},n="Provider",p=[],r=new Fb([],!0),s={$provide:{provider:b(c),factory:b(d),service:b(e),value:b(g),constant:b(h),decorator:j}},v=s.$injector=l(s,function(){throw $d("unpr","Unknown provider: {0}",p.join(" <- "))}),w={},y=w.$injector=l(w,function(a){var b=v.get(a+n);return y.invoke(b.$get,b)});return f(k(a),function(a){y.invoke(a||o)}),y}function Ib(){var a=!0;this.disableAutoScrolling=function(){a=!1},this.$get=["$window","$location","$rootScope",function(b,c,d){function e(a){var b=null;return f(a,function(a){b||"a"!==md(a.nodeName)||(b=a)}),b}function g(){var a,d=c.hash();d?(a=h.getElementById(d))?a.scrollIntoView():(a=e(h.getElementsByName(d)))?a.scrollIntoView():"top"===d&&b.scrollTo(0,0):b.scrollTo(0,0)}var h=b.document;return a&&d.$watch(function(){return c.hash()},function(){d.$evalAsync(g)}),g}]}function Jb(){this.$get=["$$rAF","$timeout",function(a,b){return a.supported?function(b){return a(b)}:function(a){return b(a,0,!1)}}]}function Kb(a,b,d,e){function g(a){try{a.apply(null,N(arguments,1))}finally{if(s--,0===s)for(;t.length;)try{t.pop()()}catch(b){d.error(b)}}}function h(a,b){!function c(){f(w,function(a){a()}),v=b(c,a)}()}function i(){z=null,x!=j.url()&&(x=j.url(),f(A,function(a){a(j.url())}))}var j=this,k=b[0],l=a.location,m=a.history,n=a.setTimeout,p=a.clearTimeout,q={};j.isMock=!1;var s=0,t=[];j.$$completeOutstandingRequest=g,j.$$incOutstandingRequestCount=function(){s++},j.notifyWhenNoOutstandingRequests=function(a){f(w,function(a){a()}),0===s?a():t.push(a)};var v,w=[];j.addPollFn=function(a){return r(v)&&h(100,n),w.push(a),a};var x=l.href,y=b.find("base"),z=null;j.url=function(b,c){if(l!==a.location&&(l=a.location),m!==a.history&&(m=a.history),b){if(x==b)return;return x=b,e.history?c?m.replaceState(null,"",b):(m.pushState(null,"",b),y.attr("href",y.attr("href"))):(z=b,c?l.replace(b):l.href=b),j}return z||l.href.replace(/%27/g,"'")};var A=[],B=!1;j.onUrlChange=function(b){return B||(e.history&&sd(a).on("popstate",i),e.hashchange?sd(a).on("hashchange",i):j.addPollFn(i),B=!0),A.push(b),b},j.$$checkUrlChange=i,j.baseHref=function(){var a=y.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var C={},D="",E=j.baseHref();j.cookies=function(a,b){var e,f,g,h,i;if(!a){if(k.cookie!==D)for(D=k.cookie,f=D.split("; "),C={},h=0;h<f.length;h++)g=f[h],i=g.indexOf("="),i>0&&(a=unescape(g.substring(0,i)),C[a]===c&&(C[a]=unescape(g.substring(i+1))));return C}b===c?k.cookie=escape(a)+"=;path="+E+";expires=Thu, 01 Jan 1970 00:00:00 GMT":u(b)&&(e=(k.cookie=escape(a)+"="+escape(b)+";path="+E).length+1,e>4096&&d.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+e+" > 4096 bytes)!"))},j.defer=function(a,b){var c;return s++,c=n(function(){delete q[c],g(a)},b||0),q[c]=!0,c},j.defer.cancel=function(a){return q[a]?(delete q[a],p(a),g(o),!0):!1}}function Lb(){this.$get=["$window","$log","$sniffer","$document",function(a,b,c,d){return new Kb(a,d,b,c)}]}function Mb(){this.$get=function(){function a(a,c){function e(a){a!=m&&(n?n==a&&(n=a.n):n=a,f(a.n,a.p),f(a,m),m=a,m.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw d("$cacheFactory")("iid","CacheId '{0}' is already taken!",a);var g=0,h=l({},c,{id:a}),i={},j=c&&c.capacity||Number.MAX_VALUE,k={},m=null,n=null;return b[a]={put:function(a,b){if(j<Number.MAX_VALUE){var c=k[a]||(k[a]={key:a});e(c)}if(!r(b))return a in i||g++,i[a]=b,g>j&&this.remove(n.key),b},get:function(a){if(j<Number.MAX_VALUE){var b=k[a];if(!b)return;e(b)}return i[a]},remove:function(a){if(j<Number.MAX_VALUE){var b=k[a];if(!b)return;b==m&&(m=b.p),b==n&&(n=b.n),f(b.n,b.p),delete k[a]}delete i[a],g--},removeAll:function(){i={},g=0,k={},m=n=null},destroy:function(){i=null,h=null,k=null,delete b[a]},info:function(){return l({},h,{size:g})}}}var b={};return a.info=function(){var a={};return f(b,function(b,c){a[c]=b.info()}),a},a.get=function(a){return b[a]},a}}function Nb(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function Ob(a,d){var e={},g="Directive",h=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,j=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,k=/^(on[a-z]+|formaction)$/;this.directive=function m(b,c){return db(b,"directive"),u(b)?(bb(c,"directiveFactory"),e.hasOwnProperty(b)||(e[b]=[],a.factory(b+g,["$injector","$exceptionHandler",function(a,c){var d=[];return f(e[b],function(e,f){try{var g=a.invoke(e);x(g)?g={compile:q(g)}:!g.compile&&g.link&&(g.compile=q(g.link)),g.priority=g.priority||0,g.index=f,g.name=g.name||b,g.require=g.require||g.controller&&g.name,g.restrict=g.restrict||"A",d.push(g)}catch(h){c(h)}}),d}])),e[b].push(c)):f(b,i(m)),this},this.aHrefSanitizationWhitelist=function(a){return s(a)?(d.aHrefSanitizationWhitelist(a),this):d.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(a){return s(a)?(d.imgSrcSanitizationWhitelist(a),this):d.imgSrcSanitizationWhitelist()},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,d,i,m,o,q,r,s,v,w,y,z){function A(a,b,c,d,e){a instanceof sd||(a=sd(a)),f(a,function(b,c){3==b.nodeType&&b.nodeValue.match(/\S+/)&&(a[c]=b=sd(b).wrap("<span></span>").parent()[0])});var g=C(a,b,a,c,d,e);return B(a,"ng-scope"),function(b,c,d,e){bb(b,"scope");var h=c?Td.clone.call(a):a;f(d,function(a,b){h.data("$"+b+"Controller",a)});for(var i=0,j=h.length;j>i;i++){var k=h[i],l=k.nodeType;(1===l||9===l)&&h.eq(i).data("$scope",b)}return c&&c(h,b),g&&g(b,h,h,e),h}}function B(a,b){try{a.addClass(b)}catch(c){}}function C(a,b,d,e,f,g){function h(a,d,e,f){var g,h,i,j,k,l,m,n,p=d.length,q=new Array(p);for(k=0;p>k;k++)q[k]=d[k];for(k=0,m=0,l=o.length;l>k;m++)i=q[m],g=o[k++],h=o[k++],g?(g.scope?(j=a.$new(),sd.data(i,"$scope",j)):j=a,n=g.transcludeOnThisElement?D(a,g.transclude,f):!g.templateOnThisElement&&f?f:!f&&b?D(a,b):null,g(h,j,i,e,n)):h&&h(a,i.childNodes,c,f)}for(var i,j,k,l,m,n,o=[],p=0;p<a.length;p++)i=new X,j=E(a[p],[],i,0===p?e:c,f),k=j.length?H(j,a[p],i,b,d,null,[],[],g):null,k&&k.scope&&B(i.$$element,"ng-scope"),m=k&&k.terminal||!(l=a[p].childNodes)||!l.length?null:C(l,k?(k.transcludeOnThisElement||!k.templateOnThisElement)&&k.transclude:b),o.push(k,m),n=n||k||m,g=null;return n?h:null}function D(a,b,c){var d=function(d,e,f){var g=!1;d||(d=a.$new(),d.$$transcluded=!0,g=!0);var h=b(d,e,f,c);return g&&h.on("$destroy",function(){d.$destroy()}),h};return d}function E(a,b,c,d,e){var f,g,i=a.nodeType,k=c.$attr;switch(i){case 1:J(b,Pb(vd(a).toLowerCase()),"E",d,e);for(var l,m,n,o,p,q,r=a.attributes,s=0,t=r&&r.length;t>s;s++){var v=!1,w=!1;if(l=r[s],!rd||rd>=8||l.specified){m=l.name,p=Dd(l.value),o=Pb(m),(q=ab.test(o))&&(m=_(o.substr(6),"-"));var x=o.replace(/(Start|End)$/,"");o===x+"Start"&&(v=m,w=m.substr(0,m.length-5)+"end",m=m.substr(0,m.length-6)),n=Pb(m.toLowerCase()),k[n]=m,(q||!c.hasOwnProperty(n))&&(c[n]=p,Cb(a,n)&&(c[n]=!0)),U(a,b,p,n),J(b,n,"A",d,e,v,w)}}if(g=a.className,u(g)&&""!==g)for(;f=j.exec(g);)n=Pb(f[2]),J(b,n,"C",d,e)&&(c[n]=Dd(f[3])),g=g.substr(f.index+f[0].length);break;case 3:R(b,a.nodeValue);break;case 8:try{f=h.exec(a.nodeValue),f&&(n=Pb(f[1]),J(b,n,"M",d,e)&&(c[n]=Dd(f[2])))}catch(y){}}return b.sort(P),b}function F(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw be("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--),d.push(a),a=a.nextSibling}while(e>0)}else d.push(a);return sd(d)}function G(a,b,c){return function(d,e,f,g,h){return e=F(e[0],b,c),a(d,e,f,g,h)}}function H(a,e,g,h,j,k,l,m,n){function o(a,b,c,d){a&&(c&&(a=G(a,c,d)),a.require=w.require,a.directiveName=y,(P===w||w.$$isolateScope)&&(a=W(a,{isolateScope:!0})),l.push(a)),b&&(c&&(b=G(b,c,d)),b.require=w.require,b.directiveName=y,(P===w||w.$$isolateScope)&&(b=W(b,{isolateScope:!0})),m.push(b))}function p(a,b,c,d){var e,g="data",h=!1;if(u(b)){for(;"^"==(e=b.charAt(0))||"?"==e;)b=b.substr(1),"^"==e&&(g="inheritedData"),h=h||"?"==e;if(e=null,d&&"data"===g&&(e=d[b]),e=e||c[g]("$"+b+"Controller"),!e&&!h)throw be("ctreq","Controller '{0}', required by directive '{1}', can't be found!",b,a);return e}return Cd(b)&&(e=[],f(b,function(b){e.push(p(a,b,c,d))})),e}function s(a,b,h,j,k){function n(a,b){var d;return arguments.length<2&&(b=a,a=c),Z&&(d=z),k(a,b,d)}var o,s,t,u,v,w,x,y,z={};if(o=e===h?g:K(g,new X(sd(h),g.$attr)),s=o.$$element,P){var A=/^\s*([@=&])(\??)\s*(\w*)\s*$/;x=b.$new(!0),!R||R!==P&&R!==P.$$originalDirective?s.data("$isolateScopeNoTemplate",x):s.data("$isolateScope",x),B(s,"ng-isolate-scope"),f(P.scope,function(a,c){var e,f,g,h,i=a.match(A)||[],j=i[3]||c,k="?"==i[2],l=i[1];switch(x.$$isolateBindings[c]=l+j,l){case"@":o.$observe(j,function(a){x[c]=a}),o.$$observers[j].$$scope=b,o[j]&&(x[c]=d(o[j])(b));break;case"=":if(k&&!o[j])return;f=q(o[j]),h=f.literal?L:function(a,b){return a===b||a!==a&&b!==b},g=f.assign||function(){throw e=x[c]=f(b),be("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",o[j],P.name)},e=x[c]=f(b),x.$watch(function(){var a=f(b);return h(a,x[c])||(h(a,e)?g(b,a=x[c]):x[c]=a),e=a},null,f.literal);break;case"&":f=q(o[j]),x[c]=function(a){return f(b,a)};break;default:throw be("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",P.name,c,a)}})}for(y=k&&n,J&&f(J,function(a){var c,d={$scope:a===P||a.$$isolateScope?x:b,$element:s,$attrs:o,$transclude:y};w=a.controller,"@"==w&&(w=o[a.name]),c=r(w,d),z[a.name]=c,Z||s.data("$"+a.name+"Controller",c),a.controllerAs&&(d.$scope[a.controllerAs]=c)}),t=0,u=l.length;u>t;t++)try{v=l[t],v(v.isolateScope?x:b,s,o,v.require&&p(v.directiveName,v.require,s,z),y)}catch(C){i(C,T(s))}var D=b;for(P&&(P.template||null===P.templateUrl)&&(D=x),a&&a(D,h.childNodes,c,k),t=m.length-1;t>=0;t--)try{v=m[t],v(v.isolateScope?x:b,s,o,v.require&&p(v.directiveName,v.require,s,z),y)}catch(C){i(C,T(s))}}n=n||{};for(var v,w,y,z,C,D,H=-Number.MAX_VALUE,J=n.controllerDirectives,P=n.newIsolateScopeDirective,R=n.templateDirective,S=n.nonTlbTranscludeDirective,U=!1,Y=!1,Z=n.hasElementTranscludeDirective,_=g.$$element=sd(e),ab=k,bb=h,cb=0,db=a.length;db>cb;cb++){w=a[cb];var eb=w.$$start,fb=w.$$end;if(eb&&(_=F(e,eb,fb)),z=c,H>w.priority)break;if((D=w.scope)&&(v=v||w,w.templateUrl||(Q("new/isolated scope",P,w,_),t(D)&&(P=w))),y=w.name,!w.templateUrl&&w.controller&&(D=w.controller,J=J||{},Q("'"+y+"' controller",J[y],w,_),J[y]=w),(D=w.transclude)&&(U=!0,w.$$tlb||(Q("transclusion",S,w,_),S=w),"element"==D?(Z=!0,H=w.priority,z=_,_=g.$$element=sd(b.createComment(" "+y+": "+g[y]+" ")),e=_[0],V(j,N(z),e),bb=A(z,h,H,ab&&ab.name,{nonTlbTranscludeDirective:S})):(z=sd(pb(e)).contents(),_.empty(),bb=A(z,h))),w.template)if(Y=!0,Q("template",R,w,_),R=w,D=x(w.template)?w.template(_,g):w.template,D=$(D),w.replace){if(ab=w,z=lb(D)?[]:sd(Dd(D)),e=z[0],1!=z.length||1!==e.nodeType)throw be("tplrt","Template for directive '{0}' must have exactly one root element. {1}",y,"");
  V(j,_,e);var gb={$attr:{}},hb=E(e,[],gb),ib=a.splice(cb+1,a.length-(cb+1));P&&I(hb),a=a.concat(hb).concat(ib),M(g,gb),db=a.length}else _.html(D);if(w.templateUrl)Y=!0,Q("template",R,w,_),R=w,w.replace&&(ab=w),s=O(a.splice(cb,a.length-cb),_,g,j,U&&bb,l,m,{controllerDirectives:J,newIsolateScopeDirective:P,templateDirective:R,nonTlbTranscludeDirective:S}),db=a.length;else if(w.compile)try{C=w.compile(_,g,bb),x(C)?o(null,C,eb,fb):C&&o(C.pre,C.post,eb,fb)}catch(jb){i(jb,T(_))}w.terminal&&(s.terminal=!0,H=Math.max(H,w.priority))}return s.scope=v&&v.scope===!0,s.transcludeOnThisElement=U,s.templateOnThisElement=Y,s.transclude=bb,n.hasElementTranscludeDirective=Z,s}function I(a){for(var b=0,c=a.length;c>b;b++)a[b]=n(a[b],{$$isolateScope:!0})}function J(b,d,f,h,j,k,l){if(d===j)return null;var m=null;if(e.hasOwnProperty(d))for(var o,p=a.get(d+g),q=0,r=p.length;r>q;q++)try{o=p[q],(h===c||h>o.priority)&&-1!=o.restrict.indexOf(f)&&(k&&(o=n(o,{$$start:k,$$end:l})),b.push(o),m=o)}catch(s){i(s)}return m}function M(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;f(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))}),f(b,function(b,f){"class"==f?(B(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function O(a,b,c,d,e,g,h,i){var j,k,n=[],p=b[0],q=a.shift(),r=l({},q,{templateUrl:null,transclude:null,replace:null,$$originalDirective:q}),s=x(q.templateUrl)?q.templateUrl(b,c):q.templateUrl;return b.empty(),m.get(w.getTrustedResourceUrl(s),{cache:o}).success(function(l){var m,o,u,v;if(l=$(l),q.replace){if(u=lb(l)?[]:sd(Dd(l)),m=u[0],1!=u.length||1!==m.nodeType)throw be("tplrt","Template for directive '{0}' must have exactly one root element. {1}",q.name,s);o={$attr:{}},V(d,b,m);var w=E(m,[],o);t(q.scope)&&I(w),a=w.concat(a),M(c,o)}else m=p,b.html(l);for(a.unshift(r),j=H(a,m,c,e,b,q,g,h,i),f(d,function(a,c){a==m&&(d[c]=b[0])}),k=C(b[0].childNodes,e);n.length;){var x=n.shift(),y=n.shift(),z=n.shift(),A=n.shift(),F=b[0];if(y!==p){var G=y.className;i.hasElementTranscludeDirective&&q.replace||(F=pb(m)),V(z,sd(y),F),B(sd(F),G)}v=j.transcludeOnThisElement?D(x,j.transclude,A):A,j(k,x,F,d,v)}n=null}).error(function(a,b,c,d){throw be("tpload","Failed to load template: {0}",d.url)}),function(a,b,c,d,e){var f=e;n?(n.push(b),n.push(c),n.push(d),n.push(f)):(j.transcludeOnThisElement&&(f=D(b,j.transclude,e)),j(k,b,c,d,f))}}function P(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function Q(a,b,c,d){if(b)throw be("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",b.name,c.name,a,T(d))}function R(a,b){var c=d(b,!0);c&&a.push({priority:0,compile:function(a){var b=a.parent(),d=b.length;return d&&B(a.parent(),"ng-binding"),function(a,b){var e=b.parent(),f=e.data("$binding")||[];f.push(c),e.data("$binding",f),d||B(e,"ng-binding"),a.$watch(c,function(a){b[0].nodeValue=a})}}})}function S(a,b){if("srcdoc"==b)return w.HTML;var c=vd(a);return"xlinkHref"==b||"FORM"==c&&"action"==b||"IMG"!=c&&("src"==b||"ngSrc"==b)?w.RESOURCE_URL:void 0}function U(a,b,c,e){var f=d(c,!0);if(f){if("multiple"===e&&"SELECT"===vd(a))throw be("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",T(a));b.push({priority:100,compile:function(){return{pre:function(b,c,g){var h=g.$$observers||(g.$$observers={});if(k.test(e))throw be("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");f=d(g[e],!0,S(a,e)),f&&(g[e]=f(b),(h[e]||(h[e]=[])).$$inter=!0,(g.$$observers&&g.$$observers[e].$$scope||b).$watch(f,function(a,b){"class"===e&&a!=b?g.$updateClass(a,b):g.$set(e,a)}))}}}})}}function V(a,c,d){var e,f,g=c[0],h=c.length,i=g.parentNode;if(a)for(e=0,f=a.length;f>e;e++)if(a[e]==g){a[e++]=d;for(var j=e,k=j+h-1,l=a.length;l>j;j++,k++)l>k?a[j]=a[k]:delete a[j];a.length-=h-1;break}i&&i.replaceChild(d,g);var m=b.createDocumentFragment();m.appendChild(g),d[sd.expando]=g[sd.expando];for(var n=1,o=c.length;o>n;n++){var p=c[n];sd(p).remove(),m.appendChild(p),delete c[n]}c[0]=d,c.length=1}function W(a,b){return l(function(){return a.apply(null,arguments)},a,b)}var X=function(a,b){this.$$element=a,this.$attr=b||{}};X.prototype={$normalize:Pb,$addClass:function(a){a&&a.length>0&&y.addClass(this.$$element,a)},$removeClass:function(a){a&&a.length>0&&y.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=Qb(a,b),d=Qb(b,a);0===c.length?y.removeClass(this.$$element,d):0===d.length?y.addClass(this.$$element,c):y.setClass(this.$$element,c,d)},$set:function(a,b,d,e){var g,h=Cb(this.$$element[0],a);h&&(this.$$element.prop(a,b),e=h),this[a]=b,e?this.$attr[a]=e:(e=this.$attr[a],e||(this.$attr[a]=e=_(a,"-"))),g=vd(this.$$element),("A"===g&&"href"===a||"IMG"===g&&"src"===a)&&(this[a]=b=z(b,"src"===a)),d!==!1&&(null===b||b===c?this.$$element.removeAttr(e):this.$$element.attr(e,b));var j=this.$$observers;j&&f(j[a],function(a){try{a(b)}catch(c){i(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers={}),e=d[a]||(d[a]=[]);return e.push(b),s.$evalAsync(function(){e.$$inter||b(c[a])}),b}};var Y=d.startSymbol(),Z=d.endSymbol(),$="{{"==Y||"}}"==Z?p:function(a){return a.replace(/\{\{/g,Y).replace(/}}/g,Z)},ab=/^ngAttr[A-Z]/;return A}]}function Pb(a){return jb(a.replace(ce,""))}function Qb(a,b){var c="",d=a.split(/\s+/),e=b.split(/\s+/);a:for(var f=0;f<d.length;f++){for(var g=d[f],h=0;h<e.length;h++)if(g==e[h])continue a;c+=(c.length>0?" ":"")+g}return c}function Rb(){var a={},b=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(b,c){db(b,"controller"),t(b)?l(a,b):a[b]=c},this.$get=["$injector","$window",function(c,e){return function(f,g){var h,i,j,k;if(u(f)&&(i=f.match(b),j=i[1],k=i[3],f=a.hasOwnProperty(j)?a[j]:eb(g.$scope,j,!0)||eb(e,j,!0),cb(f,j,!0)),h=c.instantiate(f,g),k){if(!g||"object"!=typeof g.$scope)throw d("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",j||f.name,k);g.$scope[k]=h}return h}}]}function Sb(){this.$get=["$window",function(a){return sd(a.document)}]}function Tb(){this.$get=["$log",function(a){return function(){a.error.apply(a,arguments)}}]}function Ub(a){var b,c,d,e={};return a?(f(a.split("\n"),function(a){d=a.indexOf(":"),b=md(Dd(a.substr(0,d))),c=Dd(a.substr(d+1)),b&&(e[b]=e[b]?e[b]+", "+c:c)}),e):e}function Vb(a){var b=t(a)?a:c;return function(c){return b||(b=Ub(a)),c?b[md(c)]||null:b}}function Wb(a,b,c){return x(c)?c(a,b):(f(c,function(c){a=c(a,b)}),a)}function Xb(a){return a>=200&&300>a}function Yb(){var a=/^\s*(\[|\{[^\{])/,b=/[\}\]]\s*$/,d=/^\)\]\}',?\n/,e={"Content-Type":"application/json;charset=utf-8"},g=this.defaults={transformResponse:[function(c){return u(c)&&(c=c.replace(d,""),a.test(c)&&b.test(c)&&(c=R(c))),c}],transformRequest:[function(a){return!t(a)||B(a)||C(a)?a:Q(a)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:K(e),put:K(e),patch:K(e)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},i=this.interceptors=[],j=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,d,e,k,m){function n(a){function b(a){var b=l({},a,{data:Wb(a.data,a.headers,e.transformResponse)});return Xb(a.status)?b:k.reject(b)}function d(a){function b(a){var b;f(a,function(c,d){x(c)&&(b=c(),null!=b?a[d]=b:delete a[d])})}var c,d,e,h=g.headers,i=l({},a.headers);h=l({},h.common,h[md(a.method)]);a:for(c in h){d=md(c);for(e in i)if(md(e)===d)continue a;i[c]=h[c]}return b(i),i}var e={method:"get",transformRequest:g.transformRequest,transformResponse:g.transformResponse},h=d(a);l(e,a),e.headers=h,e.method=od(e.method);var i=function(a){h=a.headers;var c=Wb(a.data,Vb(h),a.transformRequest);return r(c)&&f(h,function(a,b){"content-type"===md(b)&&delete h[b]}),r(a.withCredentials)&&!r(g.withCredentials)&&(a.withCredentials=g.withCredentials),q(a,c,h).then(b,b)},j=[i,c],m=k.when(e);for(f(z,function(a){(a.request||a.requestError)&&j.unshift(a.request,a.requestError),(a.response||a.responseError)&&j.push(a.response,a.responseError)});j.length;){var n=j.shift(),o=j.shift();m=m.then(n,o)}return m.success=function(a){return m.then(function(b){a(b.data,b.status,b.headers,e)}),m},m.error=function(a){return m.then(null,function(b){a(b.data,b.status,b.headers,e)}),m},m}function o(){f(arguments,function(a){n[a]=function(b,c){return n(l(c||{},{method:a,url:b}))}})}function p(){f(arguments,function(a){n[a]=function(b,c,d){return n(l(d||{},{method:a,url:b,data:c}))}})}function q(d,f,h){function i(a,b,c,d){m&&(Xb(a)?m.put(u,[a,b,Ub(c),d]):m.remove(u)),j(b,a,c,d),e.$$phase||e.$apply()}function j(a,b,c,e){b=Math.max(b,0),(Xb(b)?p.resolve:p.reject)({data:a,status:b,headers:Vb(c),config:d,statusText:e})}function l(){var a=H(n.pendingRequests,d);-1!==a&&n.pendingRequests.splice(a,1)}var m,o,p=k.defer(),q=p.promise,u=v(d.url,d.params);if(n.pendingRequests.push(d),q.then(l,l),!d.cache&&!g.cache||d.cache===!1||"GET"!==d.method&&"JSONP"!==d.method||(m=t(d.cache)?d.cache:t(g.cache)?g.cache:y),m)if(o=m.get(u),s(o)){if(D(o))return o.then(l,l),o;Cd(o)?j(o[1],o[0],K(o[2]),o[3]):j(o,200,{},"OK")}else m.put(u,q);if(r(o)){var w=Lc(d.url)?b.cookies()[d.xsrfCookieName||g.xsrfCookieName]:c;w&&(h[d.xsrfHeaderName||g.xsrfHeaderName]=w),a(d.method,u,f,i,h,d.timeout,d.withCredentials,d.responseType)}return q}function v(a,b){if(!b)return a;var c=[];return h(b,function(a,b){null===a||r(a)||(Cd(a)||(a=[a]),f(a,function(a){t(a)&&(a=w(a)?a.toISOString():Q(a)),c.push(Y(b)+"="+Y(a))}))}),c.length>0&&(a+=(-1==a.indexOf("?")?"?":"&")+c.join("&")),a}var y=d("$http"),z=[];return f(i,function(a){z.unshift(u(a)?m.get(a):m.invoke(a))}),f(j,function(a,b){var c=u(a)?m.get(a):m.invoke(a);z.splice(b,0,{response:function(a){return c(k.when(a))},responseError:function(a){return c(k.reject(a))}})}),n.pendingRequests=[],o("get","delete","head","jsonp"),p("post","put"),n.defaults=g,n}]}function Zb(b){if(8>=rd&&(!b.match(/^(get|post|head|put|delete|options)$/i)||!a.XMLHttpRequest))return new a.ActiveXObject("Microsoft.XMLHTTP");if(a.XMLHttpRequest)return new a.XMLHttpRequest;throw d("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function $b(){this.$get=["$browser","$window","$document",function(a,b,c){return _b(a,Zb,a.defer,b.angular.callbacks,c[0])}]}function _b(a,b,c,d,e){function g(a,b,c){var f=e.createElement("script"),g=null;return f.type="text/javascript",f.src=a,f.async=!0,g=function(a){Kd(f,"load",g),Kd(f,"error",g),e.body.removeChild(f),f=null;var h=-1,i="unknown";a&&("load"!==a.type||d[b].called||(a={type:"error"}),i=a.type,h="error"===a.type?404:200),c&&c(h,i)},Jd(f,"load",g),Jd(f,"error",g),8>=rd&&(f.onreadystatechange=function(){u(f.readyState)&&/loaded|complete/.test(f.readyState)&&(f.onreadystatechange=null,g({type:"load"}))}),e.body.appendChild(f),g}var h=-1;return function(e,i,j,k,l,m,n,p){function q(){t=h,v&&v(),w&&w.abort()}function r(b,d,e,f,g){y&&c.cancel(y),v=w=null,0===d&&(d=e?200:"file"==Kc(i).protocol?404:0),d=1223===d?204:d,g=g||"",b(d,e,f,g),a.$$completeOutstandingRequest(o)}var t;if(a.$$incOutstandingRequestCount(),i=i||a.url(),"jsonp"==md(e)){var u="_"+(d.counter++).toString(36);d[u]=function(a){d[u].data=a,d[u].called=!0};var v=g(i.replace("JSON_CALLBACK","angular.callbacks."+u),u,function(a,b){r(k,a,d[u].data,"",b),d[u]=o})}else{var w=b(e);if(w.open(e,i,!0),f(l,function(a,b){s(a)&&w.setRequestHeader(b,a)}),w.onreadystatechange=function(){if(w&&4==w.readyState){var a=null,b=null,c="";t!==h&&(a=w.getAllResponseHeaders(),b="response"in w?w.response:w.responseText),t===h&&10>rd||(c=w.statusText),r(k,t||w.status,b,a,c)}},n&&(w.withCredentials=!0),p)try{w.responseType=p}catch(x){if("json"!==p)throw x}w.send(j||null)}if(m>0)var y=c(q,m);else D(m)&&m.then(q)}}function ac(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a},this.endSymbol=function(a){return a?(b=a,this):b},this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(f,i,j){for(var k,l,m,n,o=0,p=[],q=f.length,r=!1,s=[];q>o;)-1!=(k=f.indexOf(a,o))&&-1!=(l=f.indexOf(b,k+g))?(o!=k&&p.push(f.substring(o,k)),p.push(m=c(n=f.substring(k+g,l))),m.exp=n,o=l+h,r=!0):(o!=q&&p.push(f.substring(o)),o=q);if((q=p.length)||(p.push(""),q=1),j&&p.length>1)throw de("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",f);return!i||r?(s.length=q,m=function(a){try{for(var b,c=0,g=q;g>c;c++){if("function"==typeof(b=p[c]))if(b=b(a),b=j?e.getTrusted(j,b):e.valueOf(b),null==b)b="";else switch(typeof b){case"string":break;case"number":b=""+b;break;default:b=Q(b)}s[c]=b}return s.join("")}catch(h){var i=de("interr","Can't interpolate: {0}\n{1}",f,h.toString());d(i)}},m.exp=f,m.parts=p,m):void 0}var g=a.length,h=b.length;return f.startSymbol=function(){return a},f.endSymbol=function(){return b},f}]}function bc(){this.$get=["$rootScope","$window","$q",function(a,b,c){function d(d,f,g,h){var i=b.setInterval,j=b.clearInterval,k=c.defer(),l=k.promise,m=0,n=s(h)&&!h;return g=s(g)?g:0,l.then(null,null,d),l.$$intervalId=i(function(){k.notify(m++),g>0&&m>=g&&(k.resolve(m),j(l.$$intervalId),delete e[l.$$intervalId]),n||a.$apply()},f),e[l.$$intervalId]=k,l}var e={};return d.cancel=function(a){return a&&a.$$intervalId in e?(e[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete e[a.$$intervalId],!0):!1},d}]}function cc(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(a){return 1===a?"one":"other"}}}}function dc(a){for(var b=a.split("/"),c=b.length;c--;)b[c]=X(b[c]);return b.join("/")}function ec(a,b,c){var d=Kc(a,c);b.$$protocol=d.protocol,b.$$host=d.hostname,b.$$port=m(d.port)||fe[d.protocol]||null}function fc(a,b,c){var d="/"!==a.charAt(0);d&&(a="/"+a);var e=Kc(a,c);b.$$path=decodeURIComponent(d&&"/"===e.pathname.charAt(0)?e.pathname.substring(1):e.pathname),b.$$search=V(e.search),b.$$hash=decodeURIComponent(e.hash),b.$$path&&"/"!=b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function gc(a,b){return 0===b.indexOf(a)?b.substr(a.length):void 0}function hc(a){var b=a.indexOf("#");return-1==b?a:a.substr(0,b)}function ic(a){return a.substr(0,hc(a).lastIndexOf("/")+1)}function jc(a){return a.substring(0,a.indexOf("/",a.indexOf("//")+2))}function kc(a,b){this.$$html5=!0,b=b||"";var d=ic(a);ec(a,this,a),this.$$parse=function(b){var c=gc(d,b);if(!u(c))throw ge("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',b,d);fc(c,this,a),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var a=W(this.$$search),b=this.$$hash?"#"+X(this.$$hash):"";this.$$url=dc(this.$$path)+(a?"?"+a:"")+b,this.$$absUrl=d+this.$$url.substr(1)},this.$$rewrite=function(e){var f,g;return(f=gc(a,e))!==c?(g=f,(f=gc(b,f))!==c?d+(gc("/",f)||f):a+g):(f=gc(d,e))!==c?d+f:d==e+"/"?d:void 0}}function lc(a,b){var c=ic(a);ec(a,this,a),this.$$parse=function(d){function e(a,b,c){var d,e=/^\/[A-Z]:(\/.*)/;return 0===b.indexOf(c)&&(b=b.replace(c,"")),e.exec(b)?a:(d=e.exec(a),d?d[1]:a)}var f=gc(a,d)||gc(c,d),g="#"==f.charAt(0)?gc(b,f):this.$$html5?f:"";if(!u(g))throw ge("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',d,b);fc(g,this,a),this.$$path=e(this.$$path,g,a),this.$$compose()},this.$$compose=function(){var c=W(this.$$search),d=this.$$hash?"#"+X(this.$$hash):"";this.$$url=dc(this.$$path)+(c?"?"+c:"")+d,this.$$absUrl=a+(this.$$url?b+this.$$url:"")},this.$$rewrite=function(b){return hc(a)==hc(b)?b:void 0}}function mc(a,b){this.$$html5=!0,lc.apply(this,arguments);var c=ic(a);this.$$rewrite=function(d){var e;return a==hc(d)?d:(e=gc(c,d))?a+b+e:c===d+"/"?c:void 0},this.$$compose=function(){var c=W(this.$$search),d=this.$$hash?"#"+X(this.$$hash):"";this.$$url=dc(this.$$path)+(c?"?"+c:"")+d,this.$$absUrl=a+b+this.$$url}}function nc(a){return function(){return this[a]}}function oc(a,b){return function(c){return r(c)?this[a]:(this[a]=b(c),this.$$compose(),this)}}function pc(){var b="",c=!1;this.hashPrefix=function(a){return s(a)?(b=a,this):b},this.html5Mode=function(a){return s(a)?(c=a,this):c},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(d,e,f,g){function h(a){d.$broadcast("$locationChangeSuccess",i.absUrl(),a)}var i,j,k,l=e.baseHref(),m=e.url();c?(k=jc(m)+(l||"/"),j=f.history?kc:mc):(k=hc(m),j=lc),i=new j(k,"#"+b),i.$$parse(i.$$rewrite(m));var n=/^\s*(javascript|mailto):/i;g.on("click",function(c){if(!c.ctrlKey&&!c.metaKey&&2!=c.which){for(var f=sd(c.target);"a"!==md(f[0].nodeName);)if(f[0]===g[0]||!(f=f.parent())[0])return;var h=f.prop("href");if(t(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=Kc(h.animVal).href),!n.test(h)){if(j===mc){var l=f.attr("href")||f.attr("xlink:href");if(l&&l.indexOf("://")<0){var m="#"+b;if("/"==l[0])h=k+m+l;else if("#"==l[0])h=k+m+(i.path()||"/")+l;else{var o=i.path().split("/"),p=l.split("/");2!==o.length||o[1]||(o.length=1);for(var q=0;q<p.length;q++)"."!=p[q]&&(".."==p[q]?o.pop():p[q].length&&o.push(p[q]));h=k+m+o.join("/")}}}var r=i.$$rewrite(h);h&&!f.attr("target")&&r&&!c.isDefaultPrevented()&&(c.preventDefault(),r!=e.url()&&(i.$$parse(r),d.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),i.absUrl()!=m&&e.url(i.absUrl(),!0),e.onUrlChange(function(a){i.absUrl()!=a&&(d.$evalAsync(function(){var b=i.absUrl();i.$$parse(a),d.$broadcast("$locationChangeStart",a,b).defaultPrevented?(i.$$parse(b),e.url(b)):h(b)}),d.$$phase||d.$digest())});var o=0;return d.$watch(function(){var a=e.url(),b=i.$$replace;return o&&a==i.absUrl()||(o++,d.$evalAsync(function(){d.$broadcast("$locationChangeStart",i.absUrl(),a).defaultPrevented?i.$$parse(a):(e.url(i.absUrl(),b),h(a))})),i.$$replace=!1,o}),i}]}function qc(){var a=!0,b=this;this.debugEnabled=function(b){return s(b)?(a=b,this):a},this.$get=["$window",function(c){function d(a){return a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line)),a}function e(a){var b=c.console||{},e=b[a]||b.log||o,g=!1;try{g=!!e.apply}catch(h){}return g?function(){var a=[];return f(arguments,function(b){a.push(d(b))}),e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function rc(a,b){if("__defineGetter__"===a||"__defineSetter__"===a||"__lookupGetter__"===a||"__lookupSetter__"===a||"__proto__"===a)throw ie("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",b);return a}function sc(a,b){if(a){if(a.constructor===a)throw ie("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a.document&&a.location&&a.alert&&a.setInterval)throw ie("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",b);if(a.children&&(a.nodeName||a.prop&&a.attr&&a.find))throw ie("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",b);if(a===Object)throw ie("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",b)}return a}function tc(a,b){if(a){if(a.constructor===a)throw ie("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a===ke||a===le||me&&a===me)throw ie("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",b)}}function uc(a,b,d,e,f){sc(a,e),f=f||{};for(var g,h=b.split("."),i=0;h.length>1;i++){g=rc(h.shift(),e);var j=sc(a[g],e);j||(j={},a[g]=j),a=j,a.then&&f.unwrapPromises&&(he(e),"$$v"in a||!function(a){a.then(function(b){a.$$v=b})}(a),a.$$v===c&&(a.$$v={}),a=a.$$v)}return g=rc(h.shift(),e),sc(a[g],e),a[g]=d,d}function vc(a,b,d,e,f,g,h){return rc(a,g),rc(b,g),rc(d,g),rc(e,g),rc(f,g),h.unwrapPromises?function(h,i){var j,k=i&&i.hasOwnProperty(a)?i:h;return null==k?k:(k=k[a],k&&k.then&&(he(g),"$$v"in k||(j=k,j.$$v=c,j.then(function(a){j.$$v=a})),k=k.$$v),b?null==k?c:(k=k[b],k&&k.then&&(he(g),"$$v"in k||(j=k,j.$$v=c,j.then(function(a){j.$$v=a})),k=k.$$v),d?null==k?c:(k=k[d],k&&k.then&&(he(g),"$$v"in k||(j=k,j.$$v=c,j.then(function(a){j.$$v=a})),k=k.$$v),e?null==k?c:(k=k[e],k&&k.then&&(he(g),"$$v"in k||(j=k,j.$$v=c,j.then(function(a){j.$$v=a})),k=k.$$v),f?null==k?c:(k=k[f],k&&k.then&&(he(g),"$$v"in k||(j=k,j.$$v=c,j.then(function(a){j.$$v=a})),k=k.$$v),k):k):k):k):k)}:function(g,h){var i=h&&h.hasOwnProperty(a)?h:g;return null==i?i:(i=i[a],b?null==i?c:(i=i[b],d?null==i?c:(i=i[d],e?null==i?c:(i=i[e],f?null==i?c:i=i[f]:i):i):i):i)}}function wc(a,b,d){if(re.hasOwnProperty(a))return re[a];var e,g=a.split("."),h=g.length;if(b.csp)e=6>h?vc(g[0],g[1],g[2],g[3],g[4],d,b):function(a,e){var f,i=0;do f=vc(g[i++],g[i++],g[i++],g[i++],g[i++],d,b)(a,e),e=c,a=f;while(h>i);return f};else{var i="var p;\n";f(g,function(a,c){rc(a,d),i+="if(s == null) return undefined;\ns="+(c?"s":'((k&&k.hasOwnProperty("'+a+'"))?k:s)')+'["'+a+'"];\n'+(b.unwrapPromises?'if (s && s.then) {\n pw("'+d.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")}),i+="return s;";var j=new Function("s","k","pw",i);j.toString=q(i),e=b.unwrapPromises?function(a,b){return j(a,b,he)}:j}return"hasOwnProperty"!==a&&(re[a]=e),e}function xc(){var a={},b={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(a){return s(a)?(b.unwrapPromises=!!a,this):b.unwrapPromises},this.logPromiseWarnings=function(a){return s(a)?(b.logPromiseWarnings=a,this):b.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(c,d,e){return b.csp=d.csp,he=function(a){b.logPromiseWarnings&&!je.hasOwnProperty(a)&&(je[a]=!0,e.warn("[$parse] Promise found in the expression `"+a+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(d){var e;switch(typeof d){case"string":if(a.hasOwnProperty(d))return a[d];var f=new pe(b),g=new qe(f,c,b);return e=g.parse(d),"hasOwnProperty"!==d&&(a[d]=e),e;case"function":return d;default:return o}}}]}function yc(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return zc(function(b){a.$evalAsync(b)},b)}]}function zc(a,b){function d(a){return a}function e(a){return j(a)}function g(a){var b=h(),c=0,d=Cd(a)?[]:{};return f(a,function(a,e){c++,i(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})}),0===c&&b.resolve(d),b.promise}var h=function(){var f,g,j=[];return g={resolve:function(b){if(j){var d=j;j=c,f=i(b),d.length&&a(function(){for(var a,b=0,c=d.length;c>b;b++)a=d[b],f.then(a[0],a[1],a[2])})}},reject:function(a){g.resolve(k(a))},notify:function(b){if(j){var c=j;j.length&&a(function(){for(var a,d=0,e=c.length;e>d;d++)a=c[d],a[2](b)})}},promise:{then:function(a,c,g){var i=h(),k=function(c){try{i.resolve((x(a)?a:d)(c))}catch(e){i.reject(e),b(e)}},l=function(a){try{i.resolve((x(c)?c:e)(a))}catch(d){i.reject(d),b(d)}},m=function(a){try{i.notify((x(g)?g:d)(a))}catch(c){b(c)}};return j?j.push([k,l,m]):f.then(k,l,m),i.promise},"catch":function(a){return this.then(null,a)},"finally":function(a){function b(a,b){var c=h();return b?c.resolve(a):c.reject(a),c.promise}function c(c,e){var f=null;try{f=(a||d)()}catch(g){return b(g,!1)}return D(f)?f.then(function(){return b(c,e)},function(a){return b(a,!1)}):b(c,e)}return this.then(function(a){return c(a,!0)},function(a){return c(a,!1)})}}}},i=function(b){return D(b)?b:{then:function(c){var d=h();return a(function(){d.resolve(c(b))}),d.promise}}},j=function(a){var b=h();return b.reject(a),b.promise},k=function(c){return{then:function(d,f){var g=h();return a(function(){try{g.resolve((x(f)?f:e)(c))}catch(a){g.reject(a),b(a)}}),g.promise}}},l=function(c,f,g,k){var l,m=h(),n=function(a){try{return(x(f)?f:d)(a)}catch(c){return b(c),j(c)}},o=function(a){try{return(x(g)?g:e)(a)}catch(c){return b(c),j(c)}},p=function(a){try{return(x(k)?k:d)(a)}catch(c){b(c)}};return a(function(){i(c).then(function(a){l||(l=!0,m.resolve(i(a).then(n,o,p)))},function(a){l||(l=!0,m.resolve(o(a)))},function(a){l||m.notify(p(a))})}),m.promise};return{defer:h,reject:j,when:l,all:g}}function Ac(){this.$get=["$window","$timeout",function(a,b){var c=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame,d=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!c,f=e?function(a){var b=c(a);return function(){d(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};return f.supported=e,f}]}function Bc(){var a=10,b=d("$rootScope"),c=null;this.digestTtl=function(b){return arguments.length&&(a=b),a},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(d,g,h,i){function k(){this.$id=j(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$postDigestQueue=[],this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings={}}function l(a){if(r.$$phase)throw b("inprog","{0} already in progress",r.$$phase);r.$$phase=a}function m(){r.$$phase=null}function n(a,b){var c=h(a);return cb(c,b),c}function p(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function q(){}k.prototype={constructor:k,$new:function(a){var b;return a?(b=new k,b.$root=this.$root,b.$$asyncQueue=this.$$asyncQueue,b.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=j(),this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),b=new this.$$childScopeClass),b["this"]=b,b.$parent=this,b.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=b,this.$$childTail=b):this.$$childHead=this.$$childTail=b,b},$watch:function(a,b,d){var e=this,f=n(a,"watch"),g=e.$$watchers,h={fn:b,last:q,get:f,exp:a,eq:!!d};if(c=null,!x(b)){var i=n(b||o,"listener");h.fn=function(a,b,c){i(c)}}if("string"==typeof a&&f.constant){var j=h.fn;h.fn=function(a,b,c){j.call(this,a,b,c),I(g,h)}}return g||(g=e.$$watchers=[]),g.unshift(h),function(){I(g,h),c=null}},$watchCollection:function(a,b){function c(){f=m(j);var a,b,c;if(t(f))if(e(f)){g!==n&&(g=n,q=g.length=0,l++),a=f.length,q!==a&&(l++,g.length=q=a);for(var d=0;a>d;d++)c=g[d]!==g[d]&&f[d]!==f[d],c||g[d]===f[d]||(l++,g[d]=f[d])}else{g!==o&&(g=o={},q=0,l++),a=0;for(b in f)f.hasOwnProperty(b)&&(a++,g.hasOwnProperty(b)?(c=g[b]!==g[b]&&f[b]!==f[b],c||g[b]===f[b]||(l++,g[b]=f[b])):(q++,g[b]=f[b],l++));if(q>a){l++;for(b in g)g.hasOwnProperty(b)&&!f.hasOwnProperty(b)&&(q--,delete g[b])}}else g!==f&&(g=f,l++);return l}function d(){if(p?(p=!1,b(f,f,j)):b(f,i,j),k)if(t(f))if(e(f)){i=new Array(f.length);for(var a=0;a<f.length;a++)i[a]=f[a]}else{i={};for(var c in f)nd.call(f,c)&&(i[c]=f[c])}else i=f}var f,g,i,j=this,k=b.length>1,l=0,m=h(a),n=[],o={},p=!0,q=0;return this.$watch(c,d)},$digest:function(){var d,e,f,h,j,k,n,o,p,r,s,t=this.$$asyncQueue,u=this.$$postDigestQueue,v=a,w=this,y=[];l("$digest"),i.$$checkUrlChange(),c=null;do{for(k=!1,o=w;t.length;){try{s=t.shift(),s.scope.$eval(s.expression)}catch(z){m(),g(z)}c=null}a:do{if(h=o.$$watchers)for(j=h.length;j--;)try{if(d=h[j])if((e=d.get(o))===(f=d.last)||(d.eq?L(e,f):"number"==typeof e&&"number"==typeof f&&isNaN(e)&&isNaN(f))){if(d===c){k=!1;break a}}else k=!0,c=d,d.last=d.eq?J(e,null):e,d.fn(e,f===q?e:f,o),5>v&&(p=4-v,y[p]||(y[p]=[]),r=x(d.exp)?"fn: "+(d.exp.name||d.exp.toString()):d.exp,r+="; newVal: "+Q(e)+"; oldVal: "+Q(f),y[p].push(r))}catch(z){m(),g(z)}if(!(n=o.$$childHead||o!==w&&o.$$nextSibling))for(;o!==w&&!(n=o.$$nextSibling);)o=o.$parent}while(o=n);if((k||t.length)&&!v--)throw m(),b("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",a,Q(y))}while(k||t.length);for(m();u.length;)try{u.shift()()}catch(z){g(z)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==r&&(f(this.$$listenerCount,O(null,p,this)),a.$$childHead==this&&(a.$$childHead=this.$$nextSibling),a.$$childTail==this&&(a.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=o,this.$on=this.$watch=function(){return o})}},$eval:function(a,b){return h(a)(this,b)},$evalAsync:function(a){r.$$phase||r.$$asyncQueue.length||i.defer(function(){r.$$asyncQueue.length&&r.$digest()}),this.$$asyncQueue.push({scope:this,expression:a})},$$postDigest:function(a){this.$$postDigestQueue.push(a)},$apply:function(a){try{return l("$apply"),this.$eval(a)}catch(b){g(b)}finally{m();try{r.$digest()}catch(b){throw g(b),b}}},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]),c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){c[H(c,b)]=null,p(e,1,a)}},$emit:function(a){var b,c,d,e=[],f=this,h=!1,i={name:a,targetScope:f,stopPropagation:function(){h=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},j=M([i],arguments,1);do{for(b=f.$$listeners[a]||e,i.currentScope=f,c=0,d=b.length;d>c;c++)if(b[c])try{b[c].apply(null,j)}catch(k){g(k)}else b.splice(c,1),c--,d--;if(h)return i;f=f.$parent}while(f);return i},$broadcast:function(a){for(var b,c,d,e=this,f=e,h=e,i={name:a,targetScope:e,preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},j=M([i],arguments,1);f=h;){for(i.currentScope=f,b=f.$$listeners[a]||[],c=0,d=b.length;d>c;c++)if(b[c])try{b[c].apply(null,j)}catch(k){g(k)}else b.splice(c,1),c--,d--;if(!(h=f.$$listenerCount[a]&&f.$$childHead||f!==e&&f.$$nextSibling))for(;f!==e&&!(h=f.$$nextSibling);)f=f.$parent}return i}};var r=new k;return r}]}function Cc(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return s(b)?(a=b,this):a},this.imgSrcSanitizationWhitelist=function(a){return s(a)?(b=a,this):b},this.$get=function(){return function(c,d){var e,f=d?b:a;return rd&&!(rd>=8)||(e=Kc(c).href,""===e||e.match(f))?c:"unsafe:"+e}}}function Dc(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Ec(a){if("self"===a)return a;if(u(a)){if(a.indexOf("***")>-1)throw se("iwcard","Illegal sequence *** in string matcher.  String: {0}",a);return a=Dc(a).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+a+"$")}if(y(a))return new RegExp("^"+a.source+"$");throw se("imatcher",'Matchers may only be "self", string patterns or RegExp objects')
  }function Fc(a){var b=[];return s(a)&&f(a,function(a){b.push(Ec(a))}),b}function Gc(){this.SCE_CONTEXTS=te;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){return arguments.length&&(a=Fc(b)),a},this.resourceUrlBlacklist=function(a){return arguments.length&&(b=Fc(a)),b},this.$get=["$injector",function(d){function e(a,b){return"self"===a?Lc(b):!!a.exec(b.href)}function f(c){var d,f,g=Kc(c.toString()),h=!1;for(d=0,f=a.length;f>d;d++)if(e(a[d],g)){h=!0;break}if(h)for(d=0,f=b.length;f>d;d++)if(e(b[d],g)){h=!1;break}return h}function g(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};return a&&(b.prototype=new a),b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},b}function h(a,b){var d=m.hasOwnProperty(a)?m[a]:null;if(!d)throw se("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",a,b);if(null===b||b===c||""===b)return b;if("string"!=typeof b)throw se("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",a);return new d(b)}function i(a){return a instanceof l?a.$$unwrapTrustedValue():a}function j(a,b){if(null===b||b===c||""===b)return b;var d=m.hasOwnProperty(a)?m[a]:null;if(d&&b instanceof d)return b.$$unwrapTrustedValue();if(a===te.RESOURCE_URL){if(f(b))return b;throw se("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",b.toString())}if(a===te.HTML)return k(b);throw se("unsafe","Attempting to use an unsafe value in a safe context.")}var k=function(){throw se("unsafe","Attempting to use an unsafe value in a safe context.")};d.has("$sanitize")&&(k=d.get("$sanitize"));var l=g(),m={};return m[te.HTML]=g(l),m[te.CSS]=g(l),m[te.URL]=g(l),m[te.JS]=g(l),m[te.RESOURCE_URL]=g(m[te.URL]),{trustAs:h,getTrusted:j,valueOf:i}}]}function Hc(){var a=!0;this.enabled=function(b){return arguments.length&&(a=!!b),a},this.$get=["$parse","$sniffer","$sceDelegate",function(b,c,d){if(a&&c.msie&&c.msieDocumentMode<8)throw se("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var e=K(te);e.isEnabled=function(){return a},e.trustAs=d.trustAs,e.getTrusted=d.getTrusted,e.valueOf=d.valueOf,a||(e.trustAs=e.getTrusted=function(a,b){return b},e.valueOf=p),e.parseAs=function(a,c){var d=b(c);return d.literal&&d.constant?d:function(b,c){return e.getTrusted(a,d(b,c))}};var g=e.parseAs,h=e.getTrusted,i=e.trustAs;return f(te,function(a,b){var c=md(b);e[jb("parse_as_"+c)]=function(b){return g(a,b)},e[jb("get_trusted_"+c)]=function(b){return h(a,b)},e[jb("trust_as_"+c)]=function(b){return i(a,b)}}),e}]}function Ic(){this.$get=["$window","$document",function(a,b){var c,d,e={},f=m((/android (\d+)/.exec(md((a.navigator||{}).userAgent))||[])[1]),g=/Boxee/i.test((a.navigator||{}).userAgent),h=b[0]||{},i=h.documentMode,j=/^(Moz|webkit|O|ms)(?=[A-Z])/,k=h.body&&h.body.style,l=!1,n=!1;if(k){for(var o in k)if(d=j.exec(o)){c=d[0],c=c.substr(0,1).toUpperCase()+c.substr(1);break}c||(c="WebkitOpacity"in k&&"webkit"),l=!!("transition"in k||c+"Transition"in k),n=!!("animation"in k||c+"Animation"in k),!f||l&&n||(l=u(h.body.style.webkitTransition),n=u(h.body.style.webkitAnimation))}return{history:!(!a.history||!a.history.pushState||4>f||g),hashchange:"onhashchange"in a&&(!i||i>7),hasEvent:function(a){if("input"==a&&9==rd)return!1;if(r(e[a])){var b=h.createElement("div");e[a]="on"+a in b}return e[a]},csp:Ed(),vendorPrefix:c,transitions:l,animations:n,android:f,msie:rd,msieDocumentMode:i}}]}function Jc(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(a,b,c,d){function e(e,g,h){var i,j=c.defer(),k=j.promise,l=s(h)&&!h;return i=b.defer(function(){try{j.resolve(e())}catch(b){j.reject(b),d(b)}finally{delete f[k.$$timeoutId]}l||a.$apply()},g),k.$$timeoutId=i,f[i]=j,k}var f={};return e.cancel=function(a){return a&&a.$$timeoutId in f?(f[a.$$timeoutId].reject("canceled"),delete f[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1},e}]}function Kc(a){var b=a;return rd&&(ue.setAttribute("href",b),b=ue.href),ue.setAttribute("href",b),{href:ue.href,protocol:ue.protocol?ue.protocol.replace(/:$/,""):"",host:ue.host,search:ue.search?ue.search.replace(/^\?/,""):"",hash:ue.hash?ue.hash.replace(/^#/,""):"",hostname:ue.hostname,port:ue.port,pathname:"/"===ue.pathname.charAt(0)?ue.pathname:"/"+ue.pathname}}function Lc(a){var b=u(a)?Kc(a):a;return b.protocol===ve.protocol&&b.host===ve.host}function Mc(){this.$get=q(a)}function Nc(a){function b(d,e){if(t(d)){var g={};return f(d,function(a,c){g[c]=b(c,a)}),g}return a.factory(d+c,e)}var c="Filter";this.register=b,this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}],b("currency",Pc),b("date",Xc),b("filter",Oc),b("json",Yc),b("limitTo",Zc),b("lowercase",Ae),b("number",Qc),b("orderBy",$c),b("uppercase",Be)}function Oc(){return function(a,b,c){if(!Cd(a))return a;var d=typeof c,e=[];e.check=function(a){for(var b=0;b<e.length;b++)if(!e[b](a))return!1;return!0},"function"!==d&&(c="boolean"===d&&c?function(a,b){return Ad.equals(a,b)}:function(a,b){if(a&&b&&"object"==typeof a&&"object"==typeof b){for(var d in a)if("$"!==d.charAt(0)&&nd.call(a,d)&&c(a[d],b[d]))return!0;return!1}return b=(""+b).toLowerCase(),(""+a).toLowerCase().indexOf(b)>-1});var f=function(a,b){if("string"==typeof b&&"!"===b.charAt(0))return!f(a,b.substr(1));switch(typeof a){case"boolean":case"number":case"string":return c(a,b);case"object":switch(typeof b){case"object":return c(a,b);default:for(var d in a)if("$"!==d.charAt(0)&&f(a[d],b))return!0}return!1;case"array":for(var e=0;e<a.length;e++)if(f(a[e],b))return!0;return!1;default:return!1}};switch(typeof b){case"boolean":case"number":case"string":b={$:b};case"object":for(var g in b)!function(a){"undefined"!=typeof b[a]&&e.push(function(c){return f("$"==a?c:c&&c[a],b[a])})}(g);break;case"function":e.push(b);break;default:return a}for(var h=[],i=0;i<a.length;i++){var j=a[i];e.check(j)&&h.push(j)}return h}}function Pc(a){var b=a.NUMBER_FORMATS;return function(a,c){return r(c)&&(c=b.CURRENCY_SYM),Rc(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,2).replace(/\u00A4/g,c)}}function Qc(a){var b=a.NUMBER_FORMATS;return function(a,c){return Rc(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function Rc(a,b,c,d,e){if(null==a||!isFinite(a)||t(a))return"";var f=0>a;a=Math.abs(a);var g=a+"",h="",i=[],j=!1;if(-1!==g.indexOf("e")){var k=g.match(/([\d\.]+)e(-?)(\d+)/);k&&"-"==k[2]&&k[3]>e+1?(g="0",a=0):(h=g,j=!0)}if(j)e>0&&a>-1&&1>a&&(h=a.toFixed(e));else{var l=(g.split(we)[1]||"").length;r(e)&&(e=Math.min(Math.max(b.minFrac,l),b.maxFrac)),a=+(Math.round(+(a.toString()+"e"+e)).toString()+"e"+-e),0===a&&(f=!1);var m=(""+a).split(we),n=m[0];m=m[1]||"";var o,p=0,q=b.lgSize,s=b.gSize;if(n.length>=q+s)for(p=n.length-q,o=0;p>o;o++)(p-o)%s===0&&0!==o&&(h+=c),h+=n.charAt(o);for(o=p;o<n.length;o++)(n.length-o)%q===0&&0!==o&&(h+=c),h+=n.charAt(o);for(;m.length<e;)m+="0";e&&"0"!==e&&(h+=d+m.substr(0,e))}return i.push(f?b.negPre:b.posPre),i.push(h),i.push(f?b.negSuf:b.posSuf),i.join("")}function Sc(a,b,c){var d="";for(0>a&&(d="-",a=-a),a=""+a;a.length<b;)a="0"+a;return c&&(a=a.substr(a.length-b)),d+a}function Tc(a,b,c,d){return c=c||0,function(e){var f=e["get"+a]();return(c>0||f>-c)&&(f+=c),0===f&&-12==c&&(f=12),Sc(f,b,d)}}function Uc(a,b){return function(c,d){var e=c["get"+a](),f=od(b?"SHORT"+a:a);return d[f][e]}}function Vc(a){var b=-1*a.getTimezoneOffset(),c=b>=0?"+":"";return c+=Sc(Math[b>0?"floor":"ceil"](b/60),2)+Sc(Math.abs(b%60),2)}function Wc(a,b){return a.getHours()<12?b.AMPMS[0]:b.AMPMS[1]}function Xc(a){function b(a){var b;if(b=a.match(c)){var d=new Date(0),e=0,f=0,g=b[8]?d.setUTCFullYear:d.setFullYear,h=b[8]?d.setUTCHours:d.setHours;b[9]&&(e=m(b[9]+b[10]),f=m(b[9]+b[11])),g.call(d,m(b[1]),m(b[2])-1,m(b[3]));var i=m(b[4]||0)-e,j=m(b[5]||0)-f,k=m(b[6]||0),l=Math.round(1e3*parseFloat("0."+(b[7]||0)));return h.call(d,i,j,k,l),d}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d){var e,g,h="",i=[];if(d=d||"mediumDate",d=a.DATETIME_FORMATS[d]||d,u(c)&&(c=ze.test(c)?m(c):b(c)),v(c)&&(c=new Date(c)),!w(c))return c;for(;d;)g=ye.exec(d),g?(i=M(i,g,1),d=i.pop()):(i.push(d),d=null);return f(i,function(b){e=xe[b],h+=e?e(c,a.DATETIME_FORMATS):b.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}}function Yc(){return function(a){return Q(a,!0)}}function Zc(){return function(a,b){if(!Cd(a)&&!u(a))return a;if(b=1/0===Math.abs(Number(b))?Number(b):m(b),u(a))return b?b>=0?a.slice(0,b):a.slice(b,a.length):"";var c,d,e=[];for(b>a.length?b=a.length:b<-a.length&&(b=-a.length),b>0?(c=0,d=b):(c=a.length+b,d=a.length);d>c;c++)e.push(a[c]);return e}}function $c(a){return function(b,c,d){function f(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0}function g(a,b){return S(b)?function(b,c){return a(c,b)}:a}function h(a,b){var c=typeof a,d=typeof b;return c==d?(w(a)&&w(b)&&(a=a.valueOf(),b=b.valueOf()),"string"==c&&(a=a.toLowerCase(),b=b.toLowerCase()),a===b?0:b>a?-1:1):d>c?-1:1}if(!e(b))return b;if(!c)return b;c=Cd(c)?c:[c],c=F(c,function(b){var c=!1,d=b||p;if(u(b)&&(("+"==b.charAt(0)||"-"==b.charAt(0))&&(c="-"==b.charAt(0),b=b.substring(1)),d=a(b),d.constant)){var e=d();return g(function(a,b){return h(a[e],b[e])},c)}return g(function(a,b){return h(d(a),d(b))},c)});for(var i=[],j=0;j<b.length;j++)i.push(b[j]);return i.sort(g(f,d))}}function _c(a){return x(a)&&(a={link:a}),a.restrict=a.restrict||"AC",q(a)}function ad(a,b,c,d){function e(b,c){c=c?"-"+_(c,"-"):"",d.setClass(a,(b?Oe:Pe)+c,(b?Pe:Oe)+c)}var g=this,h=a.parent().controller("form")||Ee,i=0,j=g.$error={},k=[];g.$name=b.name||b.ngForm,g.$dirty=!1,g.$pristine=!0,g.$valid=!0,g.$invalid=!1,h.$addControl(g),a.addClass(Qe),e(!0),g.$addControl=function(a){db(a.$name,"input"),k.push(a),a.$name&&(g[a.$name]=a)},g.$removeControl=function(a){a.$name&&g[a.$name]===a&&delete g[a.$name],f(j,function(b,c){g.$setValidity(c,!0,a)}),I(k,a)},g.$setValidity=function(a,b,c){var d=j[a];if(b)d&&(I(d,c),d.length||(i--,i||(e(b),g.$valid=!0,g.$invalid=!1),j[a]=!1,e(!0,a),h.$setValidity(a,!0,g)));else{if(i||e(b),d){if(G(d,c))return}else j[a]=d=[],i++,e(!1,a),h.$setValidity(a,!1,g);d.push(c),g.$valid=!1,g.$invalid=!0}},g.$setDirty=function(){d.removeClass(a,Qe),d.addClass(a,Re),g.$dirty=!0,g.$pristine=!1,h.$setDirty()},g.$setPristine=function(){d.removeClass(a,Re),d.addClass(a,Qe),g.$dirty=!1,g.$pristine=!0,f(k,function(a){a.$setPristine()})}}function bd(a,b,d,e){return a.$setValidity(b,d),d?e:c}function cd(a,b){var c,d;if(b)for(c=0;c<b.length;++c)if(d=b[c],a[d])return!0;return!1}function dd(a,b,c,d,e){if(t(e)){a.$$hasNativeValidators=!0;var f=function(f){return a.$error[b]||cd(e,d)||!cd(e,c)?f:void a.$setValidity(b,!1)};a.$parsers.push(f)}}function ed(a,b,c,e,f,g){var h=b.prop(ld),i=b[0].placeholder,j={},k=md(b[0].type);if(e.$$validityState=h,!f.android){var l=!1;b.on("compositionstart",function(){l=!0}),b.on("compositionend",function(){l=!1,n()})}var n=function(d){if(!l){var f=b.val();if(rd&&"input"===(d||j).type&&b[0].placeholder!==i)return void(i=b[0].placeholder);"password"!==k&&S(c.ngTrim||"T")&&(f=Dd(f));var g=h&&e.$$hasNativeValidators;(e.$viewValue!==f||""===f&&g)&&(a.$root.$$phase?e.$setViewValue(f):a.$apply(function(){e.$setViewValue(f)}))}};if(f.hasEvent("input"))b.on("input",n);else{var o,p=function(){o||(o=g.defer(function(){n(),o=null}))};b.on("keydown",function(a){var b=a.keyCode;91===b||b>15&&19>b||b>=37&&40>=b||p()}),f.hasEvent("paste")&&b.on("paste cut",p)}b.on("change",n),e.$render=function(){b.val(e.$isEmpty(e.$viewValue)?"":e.$viewValue)};var q,r,s=c.ngPattern;if(s){var t=function(a,b){return bd(e,"pattern",e.$isEmpty(b)||a.test(b),b)};r=s.match(/^\/(.*)\/([gim]*)$/),r?(s=new RegExp(r[1],r[2]),q=function(a){return t(s,a)}):q=function(c){var e=a.$eval(s);if(!e||!e.test)throw d("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,T(b));return t(e,c)},e.$formatters.push(q),e.$parsers.push(q)}if(c.ngMinlength){var u=m(c.ngMinlength),v=function(a){return bd(e,"minlength",e.$isEmpty(a)||a.length>=u,a)};e.$parsers.push(v),e.$formatters.push(v)}if(c.ngMaxlength){var w=m(c.ngMaxlength),x=function(a){return bd(e,"maxlength",e.$isEmpty(a)||a.length<=w,a)};e.$parsers.push(x),e.$formatters.push(x)}}function fd(a,b,d,e,f,g){if(ed(a,b,d,e,f,g),e.$parsers.push(function(a){var b=e.$isEmpty(a);return b||Ke.test(a)?(e.$setValidity("number",!0),""===a?null:b?a:parseFloat(a)):(e.$setValidity("number",!1),c)}),dd(e,"number",Me,null,e.$$validityState),e.$formatters.push(function(a){return e.$isEmpty(a)?"":""+a}),d.min){var h=function(a){var b=parseFloat(d.min);return bd(e,"min",e.$isEmpty(a)||a>=b,a)};e.$parsers.push(h),e.$formatters.push(h)}if(d.max){var i=function(a){var b=parseFloat(d.max);return bd(e,"max",e.$isEmpty(a)||b>=a,a)};e.$parsers.push(i),e.$formatters.push(i)}e.$formatters.push(function(a){return bd(e,"number",e.$isEmpty(a)||v(a),a)})}function gd(a,b,c,d,e,f){ed(a,b,c,d,e,f);var g=function(a){return bd(d,"url",d.$isEmpty(a)||Ie.test(a),a)};d.$formatters.push(g),d.$parsers.push(g)}function hd(a,b,c,d,e,f){ed(a,b,c,d,e,f);var g=function(a){return bd(d,"email",d.$isEmpty(a)||Je.test(a),a)};d.$formatters.push(g),d.$parsers.push(g)}function id(a,b,c,d){r(c.name)&&b.attr("name",j()),b.on("click",function(){b[0].checked&&a.$apply(function(){d.$setViewValue(c.value)})}),d.$render=function(){var a=c.value;b[0].checked=a==d.$viewValue},c.$observe("value",d.$render)}function jd(a,b,c,d){var e=c.ngTrueValue,f=c.ngFalseValue;u(e)||(e=!0),u(f)||(f=!1),b.on("click",function(){a.$apply(function(){d.$setViewValue(b[0].checked)})}),d.$render=function(){b[0].checked=d.$viewValue},d.$isEmpty=function(a){return a!==e},d.$formatters.push(function(a){return a===e}),d.$parsers.push(function(a){return a?e:f})}function kd(a,b){return a="ngClass"+a,["$animate",function(c){function d(a,b){var c=[];a:for(var d=0;d<a.length;d++){for(var e=a[d],f=0;f<b.length;f++)if(e==b[f])continue a;c.push(e)}return c}function e(a){if(Cd(a))return a;if(u(a))return a.split(" ");if(t(a)){var b=[];return f(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b}return a}return{restrict:"AC",link:function(g,h,i){function j(a){var b=l(a,1);i.$addClass(b)}function k(a){var b=l(a,-1);i.$removeClass(b)}function l(a,b){var c=h.data("$classCounts")||{},d=[];return f(a,function(a){(b>0||c[a])&&(c[a]=(c[a]||0)+b,c[a]===+(b>0)&&d.push(a))}),h.data("$classCounts",c),d.join(" ")}function m(a,b){var e=d(b,a),f=d(a,b);f=l(f,-1),e=l(e,1),0===e.length?c.removeClass(h,f):0===f.length?c.addClass(h,e):c.setClass(h,e,f)}function n(a){if(b===!0||g.$index%2===b){var c=e(a||[]);if(o){if(!L(a,o)){var d=e(o);m(d,c)}}else j(c)}o=K(a)}var o;g.$watch(i[a],n,!0),i.$observe("class",function(){n(g.$eval(i[a]))}),"ngClass"!==a&&g.$watch("$index",function(c,d){var f=1&c;if(f!==(1&d)){var h=e(g.$eval(i[a]));f===b?j(h):k(h)}})}}}]}var ld="validity",md=function(a){return u(a)?a.toLowerCase():a},nd=Object.prototype.hasOwnProperty,od=function(a){return u(a)?a.toUpperCase():a},pd=function(a){return u(a)?a.replace(/[A-Z]/g,function(a){return String.fromCharCode(32|a.charCodeAt(0))}):a},qd=function(a){return u(a)?a.replace(/[a-z]/g,function(a){return String.fromCharCode(-33&a.charCodeAt(0))}):a};"i"!=="I".toLowerCase()&&(md=pd,od=qd);var rd,sd,td,ud,vd,wd=[].slice,xd=[].push,yd=Object.prototype.toString,zd=d("ng"),Ad=a.angular||(a.angular={}),Bd=["0","0","0"];rd=m((/msie (\d+)/.exec(md(navigator.userAgent))||[])[1]),isNaN(rd)&&(rd=m((/trident\/.*; rv:(\d+)/.exec(md(navigator.userAgent))||[])[1])),o.$inject=[],p.$inject=[];var Cd=function(){return x(Array.isArray)?Array.isArray:function(a){return"[object Array]"===yd.call(a)}}(),Dd=function(){return String.prototype.trim?function(a){return u(a)?a.trim():a}:function(a){return u(a)?a.replace(/^\s\s*/,"").replace(/\s\s*$/,""):a}}();vd=9>rd?function(a){return a=a.nodeName?a:a[0],a.scopeName&&"HTML"!=a.scopeName?od(a.scopeName+":"+a.nodeName):a.nodeName}:function(a){return a.nodeName?a.nodeName:a[0].nodeName};var Ed=function(){if(s(Ed.isActive_))return Ed.isActive_;var a=!(!b.querySelector("[ng-csp]")&&!b.querySelector("[data-ng-csp]"));if(!a)try{new Function("")}catch(c){a=!0}return Ed.isActive_=a},Fd=/[A-Z]/g,Gd={full:"1.2.25",major:1,minor:2,dot:25,codeName:"hypnotic-gesticulation"};ob.expando="ng339";var Hd=ob.cache={},Id=1,Jd=a.document.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},Kd=a.document.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)},Ld=(ob._data=function(a){return this.cache[a[this.expando]]||{}},/([\:\-\_]+(.))/g),Md=/^moz([A-Z])/,Nd=d("jqLite"),Od=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Pd=/<|&#?\w+;/,Qd=/<([\w:]+)/,Rd=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Sd={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,"",""]};Sd.optgroup=Sd.option,Sd.tbody=Sd.tfoot=Sd.colgroup=Sd.caption=Sd.thead,Sd.th=Sd.td;var Td=ob.prototype={ready:function(c){function d(){e||(e=!0,c())}var e=!1;"complete"===b.readyState?setTimeout(d):(this.on("DOMContentLoaded",d),ob(a).on("load",d))},toString:function(){var a=[];return f(this,function(b){a.push(""+b)}),"["+a.join(", ")+"]"},eq:function(a){return sd(a>=0?this[a]:this[this.length+a])},length:0,push:xd,sort:[].sort,splice:[].splice},Ud={};f("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(a){Ud[md(a)]=a});var Vd={};f("input,select,option,textarea,button,form,details".split(","),function(a){Vd[od(a)]=!0}),f({data:ub,removeData:sb},function(a,b){ob[b]=a}),f({data:ub,inheritedData:Ab,scope:function(a){return sd.data(a,"$scope")||Ab(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return sd.data(a,"$isolateScope")||sd.data(a,"$isolateScopeNoTemplate")},controller:zb,injector:function(a){return Ab(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:vb,css:function(a,b,d){if(b=jb(b),!s(d)){var e;return 8>=rd&&(e=a.currentStyle&&a.currentStyle[b],""===e&&(e="auto")),e=e||a.style[b],8>=rd&&(e=""===e?c:e),e}a.style[b]=d},attr:function(a,b,d){var e=md(b);if(Ud[e]){if(!s(d))return a[b]||(a.attributes.getNamedItem(b)||o).specified?e:c;d?(a[b]=!0,a.setAttribute(b,e)):(a[b]=!1,a.removeAttribute(e))}else if(s(d))a.setAttribute(b,d);else if(a.getAttribute){var f=a.getAttribute(b,2);return null===f?c:f}},prop:function(a,b,c){return s(c)?void(a[b]=c):a[b]},text:function(){function a(a,c){var d=b[a.nodeType];return r(c)?d?a[d]:"":void(a[d]=c)}var b=[];return 9>rd?(b[1]="innerText",b[3]="nodeValue"):b[1]=b[3]="textContent",a.$dv="",a}(),val:function(a,b){if(r(b)){if("SELECT"===vd(a)&&a.multiple){var c=[];return f(a.options,function(a){a.selected&&c.push(a.value||a.text)}),0===c.length?null:c}return a.value}a.value=b},html:function(a,b){if(r(b))return a.innerHTML;for(var c=0,d=a.childNodes;c<d.length;c++)qb(d[c]);a.innerHTML=b},empty:Bb},function(a,b){ob.prototype[b]=function(b,d){var e,f,g=this.length;if(a!==Bb&&(2==a.length&&a!==vb&&a!==zb?b:d)===c){if(t(b)){for(e=0;g>e;e++)if(a===ub)a(this[e],b);else for(f in b)a(this[e],f,b[f]);return this}for(var h=a.$dv,i=h===c?Math.min(g,1):g,j=0;i>j;j++){var k=a(this[j],b,d);h=h?h+k:k}return h}for(e=0;g>e;e++)a(this[e],b,d);return this}}),f({removeData:sb,dealoc:qb,on:function Cf(a,c,d,e){if(s(e))throw Nd("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var g=tb(a,"events"),h=tb(a,"handle");g||tb(a,"events",g={}),h||tb(a,"handle",h=Db(a,g)),f(c.split(" "),function(c){var e=g[c];if(!e){if("mouseenter"==c||"mouseleave"==c){var f=b.body.contains||b.body.compareDocumentPosition?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};g[c]=[];var i={mouseleave:"mouseout",mouseenter:"mouseover"};Cf(a,i[c],function(a){var b=this,d=a.relatedTarget;(!d||d!==b&&!f(b,d))&&h(a,c)})}else Jd(a,c,h),g[c]=[];e=g[c]}e.push(d)})},off:rb,one:function(a,b,c){a=sd(a),a.on(b,function d(){a.off(b,c),a.off(b,d)}),a.on(b,c)},replaceWith:function(a,b){var c,d=a.parentNode;qb(a),f(new ob(b),function(b){c?d.insertBefore(b,c.nextSibling):d.replaceChild(b,a),c=b})},children:function(a){var b=[];return f(a.childNodes,function(a){1===a.nodeType&&b.push(a)}),b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){f(new ob(b),function(b){(1===a.nodeType||11===a.nodeType)&&a.appendChild(b)})},prepend:function(a,b){if(1===a.nodeType){var c=a.firstChild;f(new ob(b),function(b){a.insertBefore(b,c)})}},wrap:function(a,b){b=sd(b)[0];var c=a.parentNode;c&&c.replaceChild(b,a),b.appendChild(a)},remove:function(a){qb(a);var b=a.parentNode;b&&b.removeChild(a)},after:function(a,b){var c=a,d=a.parentNode;f(new ob(b),function(a){d.insertBefore(a,c.nextSibling),c=a})},addClass:xb,removeClass:wb,toggleClass:function(a,b,c){b&&f(b.split(" "),function(b){var d=c;r(d)&&(d=!vb(a,b)),(d?xb:wb)(a,b)})},parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},next:function(a){if(a.nextElementSibling)return a.nextElementSibling;for(var b=a.nextSibling;null!=b&&1!==b.nodeType;)b=b.nextSibling;return b},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:pb,triggerHandler:function(a,b,c){var d,e,g,h=b.type||b,i=(tb(a,"events")||{})[h];i&&(d={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopPropagation:o,type:h,target:a},b.type&&(d=l(d,b)),e=K(i),g=c?[d].concat(c):[d],f(e,function(b){b.apply(a,g)}))}},function(a,b){ob.prototype[b]=function(b,c,d){for(var e,f=0;f<this.length;f++)r(e)?(e=a(this[f],b,c,d),s(e)&&(e=sd(e))):yb(e,a(this[f],b,c,d));return s(e)?e:this},ob.prototype.bind=ob.prototype.on,ob.prototype.unbind=ob.prototype.off}),Fb.prototype={put:function(a,b){this[Eb(a,this.nextUid)]=b},get:function(a){return this[Eb(a,this.nextUid)]},remove:function(a){var b=this[a=Eb(a,this.nextUid)];return delete this[a],b}};var Wd=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Xd=/,/,Yd=/^\s*(_?)(\S+?)\1\s*$/,Zd=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,$d=d("$injector"),_d=d("$animate"),ae=["$provide",function(a){this.$$selectors={},this.register=function(b,c){var d=b+"-animation";if(b&&"."!=b.charAt(0))throw _d("notcsel","Expecting class selector starting with '.' got '{0}'.",b);this.$$selectors[b.substr(1)]=d,a.factory(d,c)},this.classNameFilter=function(a){return 1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null),this.$$classNameFilter},this.$get=["$timeout","$$asyncCallback",function(a,b){function c(a){a&&b(a)}return{enter:function(a,b,d,e){d?d.after(a):(b&&b[0]||(b=d.parent()),b.append(a)),c(e)},leave:function(a,b){a.remove(),c(b)},move:function(a,b,c,d){this.enter(a,b,c,d)},addClass:function(a,b,d){b=u(b)?b:Cd(b)?b.join(" "):"",f(a,function(a){xb(a,b)}),c(d)},removeClass:function(a,b,d){b=u(b)?b:Cd(b)?b.join(" "):"",f(a,function(a){wb(a,b)}),c(d)},setClass:function(a,b,d,e){f(a,function(a){xb(a,b),wb(a,d)}),c(e)},enabled:o}}]}],be=d("$compile");Ob.$inject=["$provide","$$sanitizeUriProvider"];var ce=/^(x[\:\-_]|data[\:\-_])/i,de=d("$interpolate"),ee=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,fe={http:80,https:443,ftp:21},ge=d("$location");mc.prototype=lc.prototype=kc.prototype={$$html5:!1,$$replace:!1,absUrl:nc("$$absUrl"),url:function(a){if(r(a))return this.$$url;var b=ee.exec(a);return b[1]&&this.path(decodeURIComponent(b[1])),(b[2]||b[1])&&this.search(b[3]||""),this.hash(b[5]||""),this},protocol:nc("$$protocol"),host:nc("$$host"),port:nc("$$port"),path:oc("$$path",function(a){return a=a?a.toString():"","/"==a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(u(a)||v(a))a=a.toString(),this.$$search=V(a);else{if(!t(a))throw ge("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");f(a,function(b,c){null==b&&delete a[c]}),this.$$search=a}break;default:r(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}return this.$$compose(),this},hash:oc("$$hash",function(a){return a?a.toString():""}),replace:function(){return this.$$replace=!0,this}};var he,ie=d("$parse"),je={},ke=Function.prototype.call,le=Function.prototype.apply,me=Function.prototype.bind,ne={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:o,"+":function(a,b,d,e){return d=d(a,b),e=e(a,b),s(d)?s(e)?d+e:d:s(e)?e:c},"-":function(a,b,c,d){return c=c(a,b),d=d(a,b),(s(c)?c:0)-(s(d)?d:0)},"*":function(a,b,c,d){return c(a,b)*d(a,b)},"/":function(a,b,c,d){return c(a,b)/d(a,b)},"%":function(a,b,c,d){return c(a,b)%d(a,b)},"^":function(a,b,c,d){return c(a,b)^d(a,b)},"=":o,"===":function(a,b,c,d){return c(a,b)===d(a,b)},"!==":function(a,b,c,d){return c(a,b)!==d(a,b)},"==":function(a,b,c,d){return c(a,b)==d(a,b)},"!=":function(a,b,c,d){return c(a,b)!=d(a,b)},"<":function(a,b,c,d){return c(a,b)<d(a,b)},">":function(a,b,c,d){return c(a,b)>d(a,b)},"<=":function(a,b,c,d){return c(a,b)<=d(a,b)},">=":function(a,b,c,d){return c(a,b)>=d(a,b)},"&&":function(a,b,c,d){return c(a,b)&&d(a,b)},"||":function(a,b,c,d){return c(a,b)||d(a,b)},"&":function(a,b,c,d){return c(a,b)&d(a,b)},"|":function(a,b,c,d){return d(a,b)(a,b,c(a,b))},"!":function(a,b,c){return!c(a,b)}},oe={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},pe=function(a){this.options=a};pe.prototype={constructor:pe,lex:function(a){for(this.text=a,this.index=0,this.ch=c,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else{if(this.isWhitespace(this.ch)){this.index++;continue}var b=this.ch+this.peek(),d=b+this.peek(2),e=ne[this.ch],f=ne[b],g=ne[d];g?(this.tokens.push({index:this.index,text:d,fn:g}),this.index+=3):f?(this.tokens.push({index:this.index,text:b,fn:f}),this.index+=2):e?(this.tokens.push({index:this.index,text:this.ch,fn:e}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(a){return-1!==a.indexOf(this.ch)},was:function(a){return-1!==a.indexOf(this.lastCh)},peek:function(a){var b=a||1;return this.index+b<this.text.length?this.text.charAt(this.index+b):!1},isNumber:function(a){return a>="0"&&"9">=a},isWhitespace:function(a){return" "===a||"\r"===a||"	"===a||"\n"===a||""===a||" "===a},isIdent:function(a){return a>="a"&&"z">=a||a>="A"&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,c){c=c||this.index;var d=s(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,c)+"]":" "+c;throw ie("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",a,d,this.text)},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var c=md(this.text.charAt(this.index));if("."==c||this.isNumber(c))a+=c;else{var d=this.peek();if("e"==c&&this.isExpOperator(d))a+=c;else if(this.isExpOperator(c)&&d&&this.isNumber(d)&&"e"==a.charAt(a.length-1))a+=c;else{if(!this.isExpOperator(c)||d&&this.isNumber(d)||"e"!=a.charAt(a.length-1))break;this.throwError("Invalid exponent")}}this.index++}a=1*a,this.tokens.push({index:b,text:a,literal:!0,constant:!0,fn:function(){return a}})},readIdent:function(){for(var a,b,c,d,e=this,f="",g=this.index;this.index<this.text.length&&(d=this.text.charAt(this.index),"."===d||this.isIdent(d)||this.isNumber(d));)"."===d&&(a=this.index),f+=d,this.index++;if(a)for(b=this.index;b<this.text.length;){if(d=this.text.charAt(b),"("===d){c=f.substr(a-g+1),f=f.substr(0,a-g),this.index=b;break}if(!this.isWhitespace(d))break;b++}var h={index:g,text:f};if(ne.hasOwnProperty(f))h.fn=ne[f],h.literal=!0,h.constant=!0;else{var i=wc(f,this.options,this.text);h.fn=l(function(a,b){return i(a,b)},{assign:function(a,b){return uc(a,f,b,e.text,e.options)}})}this.tokens.push(h),c&&(this.tokens.push({index:a,text:"."}),this.tokens.push({index:a+1,text:c}))},readString:function(a){var b=this.index;this.index++;for(var c="",d=a,e=!1;this.index<this.text.length;){var f=this.text.charAt(this.index);if(d+=f,e){if("u"===f){var g=this.text.substring(this.index+1,this.index+5);g.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+g+"]"),this.index+=4,c+=String.fromCharCode(parseInt(g,16))}else{var h=oe[f];c+=h||f}e=!1}else if("\\"===f)e=!0;else{if(f===a)return this.index++,void this.tokens.push({index:b,text:d,string:c,literal:!0,constant:!0,fn:function(){return c}});c+=f}this.index++}this.throwError("Unterminated quote",b)}};var qe=function(a,b,c){this.lexer=a,this.$filter=b,this.options=c};qe.ZERO=l(function(){return 0},{constant:!0}),qe.prototype={constructor:qe,parse:function(a){this.text=a,this.tokens=this.lexer.lex(a);var b=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),b.literal=!!b.literal,b.constant=!!b.constant,b},primary:function(){var a;if(this.expect("("))a=this.filterChain(),this.consume(")");else if(this.expect("["))a=this.arrayDeclaration();else if(this.expect("{"))a=this.object();else{var b=this.expect();a=b.fn,a||this.throwError("not a primary expression",b),a.literal=!!b.literal,a.constant=!!b.constant}for(var c,d;c=this.expect("(","[",".");)"("===c.text?(a=this.functionCall(a,d),d=null):"["===c.text?(d=a,a=this.objectIndex(a)):"."===c.text?(d=a,a=this.fieldAccess(a)):this.throwError("IMPOSSIBLE");return a},throwError:function(a,b){throw ie("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",b.text,a,b.index+1,this.text,this.text.substring(b.index))},peekToken:function(){if(0===this.tokens.length)throw ie("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(a,b,c,d){if(this.tokens.length>0){var e=this.tokens[0],f=e.text;if(f===a||f===b||f===c||f===d||!a&&!b&&!c&&!d)return e}return!1},expect:function(a,b,c,d){var e=this.peek(a,b,c,d);return e?(this.tokens.shift(),e):!1},consume:function(a){this.expect(a)||this.throwError("is unexpected, expecting ["+a+"]",this.peek())},unaryFn:function(a,b){return l(function(c,d){return a(c,d,b)},{constant:b.constant})},ternaryFn:function(a,b,c){return l(function(d,e){return a(d,e)?b(d,e):c(d,e)},{constant:a.constant&&b.constant&&c.constant})},binaryFn:function(a,b,c){return l(function(d,e){return b(d,e,a,c)},{constant:a.constant&&c.constant})},statements:function(){for(var a=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&a.push(this.filterChain()),!this.expect(";"))return 1===a.length?a[0]:function(b,c){for(var d,e=0;e<a.length;e++){var f=a[e];f&&(d=f(b,c))}return d}},filterChain:function(){for(var a,b=this.expression();;){if(!(a=this.expect("|")))return b;b=this.binaryFn(b,a.fn,this.filter())}},filter:function(){for(var a=this.expect(),b=this.$filter(a.text),c=[];;){if(!(a=this.expect(":"))){var d=function(a,d,e){for(var f=[e],g=0;g<c.length;g++)f.push(c[g](a,d));return b.apply(a,f)};return function(){return d}}c.push(this.expression())}},expression:function(){return this.assignment()},assignment:function(){var a,b,c=this.ternary();return(b=this.expect("="))?(c.assign||this.throwError("implies assignment but ["+this.text.substring(0,b.index)+"] can not be assigned to",b),a=this.ternary(),function(b,d){return c.assign(b,a(b,d),d)
  }):c},ternary:function(){var a,b,c=this.logicalOR();return(b=this.expect("?"))?(a=this.assignment(),(b=this.expect(":"))?this.ternaryFn(c,a,this.assignment()):void this.throwError("expected :",b)):c},logicalOR:function(){for(var a,b=this.logicalAND();;){if(!(a=this.expect("||")))return b;b=this.binaryFn(b,a.fn,this.logicalAND())}},logicalAND:function(){var a,b=this.equality();return(a=this.expect("&&"))&&(b=this.binaryFn(b,a.fn,this.logicalAND())),b},equality:function(){var a,b=this.relational();return(a=this.expect("==","!=","===","!=="))&&(b=this.binaryFn(b,a.fn,this.equality())),b},relational:function(){var a,b=this.additive();return(a=this.expect("<",">","<=",">="))&&(b=this.binaryFn(b,a.fn,this.relational())),b},additive:function(){for(var a,b=this.multiplicative();a=this.expect("+","-");)b=this.binaryFn(b,a.fn,this.multiplicative());return b},multiplicative:function(){for(var a,b=this.unary();a=this.expect("*","/","%");)b=this.binaryFn(b,a.fn,this.unary());return b},unary:function(){var a;return this.expect("+")?this.primary():(a=this.expect("-"))?this.binaryFn(qe.ZERO,a.fn,this.unary()):(a=this.expect("!"))?this.unaryFn(a.fn,this.unary()):this.primary()},fieldAccess:function(a){var b=this,c=this.expect().text,d=wc(c,this.options,this.text);return l(function(b,c,e){return d(e||a(b,c))},{assign:function(d,e,f){var g=a(d,f);return g||a.assign(d,g={}),uc(g,c,e,b.text,b.options)}})},objectIndex:function(a){var b=this,d=this.expression();return this.consume("]"),l(function(e,f){var g,h,i=a(e,f),j=d(e,f);return rc(j,b.text),i?(g=sc(i[j],b.text),g&&g.then&&b.options.unwrapPromises&&(h=g,"$$v"in g||(h.$$v=c,h.then(function(a){h.$$v=a})),g=g.$$v),g):c},{assign:function(c,e,f){var g=rc(d(c,f),b.text),h=sc(a(c,f),b.text);return h||a.assign(c,h={}),h[g]=e}})},functionCall:function(a,b){var c=[];if(")"!==this.peekToken().text)do c.push(this.expression());while(this.expect(","));this.consume(")");var d=this;return function(e,f){for(var g=[],h=b?b(e,f):e,i=0;i<c.length;i++)g.push(sc(c[i](e,f),d.text));var j=a(e,f,h)||o;sc(h,d.text),tc(j,d.text);var k=j.apply?j.apply(h,g):j(g[0],g[1],g[2],g[3],g[4]);return sc(k,d.text)}},arrayDeclaration:function(){var a=[],b=!0;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;var c=this.expression();a.push(c),c.constant||(b=!1)}while(this.expect(","));return this.consume("]"),l(function(b,c){for(var d=[],e=0;e<a.length;e++)d.push(a[e](b,c));return d},{literal:!0,constant:b})},object:function(){var a=[],b=!0;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var c=this.expect(),d=c.string||c.text;this.consume(":");var e=this.expression();a.push({key:d,value:e}),e.constant||(b=!1)}while(this.expect(","));return this.consume("}"),l(function(b,c){for(var d={},e=0;e<a.length;e++){var f=a[e];d[f.key]=f.value(b,c)}return d},{literal:!0,constant:b})}};var re={},se=d("$sce"),te={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ue=b.createElement("a"),ve=Kc(a.location.href,!0);Nc.$inject=["$provide"],Pc.$inject=["$locale"],Qc.$inject=["$locale"];var we=".",xe={yyyy:Tc("FullYear",4),yy:Tc("FullYear",2,0,!0),y:Tc("FullYear",1),MMMM:Uc("Month"),MMM:Uc("Month",!0),MM:Tc("Month",2,1),M:Tc("Month",1,1),dd:Tc("Date",2),d:Tc("Date",1),HH:Tc("Hours",2),H:Tc("Hours",1),hh:Tc("Hours",2,-12),h:Tc("Hours",1,-12),mm:Tc("Minutes",2),m:Tc("Minutes",1),ss:Tc("Seconds",2),s:Tc("Seconds",1),sss:Tc("Milliseconds",3),EEEE:Uc("Day"),EEE:Uc("Day",!0),a:Wc,Z:Vc},ye=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,ze=/^\-?\d+$/;Xc.$inject=["$locale"];var Ae=q(md),Be=q(od);$c.$inject=["$parse"];var Ce=q({restrict:"E",compile:function(a,c){return 8>=rd&&(c.href||c.name||c.$set("href",""),a.append(b.createComment("IE fix"))),c.href||c.xlinkHref||c.name?void 0:function(a,b){var c="[object SVGAnimatedString]"===yd.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(c)||a.preventDefault()})}}}),De={};f(Ud,function(a,b){if("multiple"!=a){var c=Pb("ng-"+b);De[c]=function(){return{priority:100,link:function(a,d,e){a.$watch(e[c],function(a){e.$set(b,!!a)})}}}}}),f(["src","srcset","href"],function(a){var b=Pb("ng-"+a);De[b]=function(){return{priority:99,link:function(c,d,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===yd.call(d.prop("href"))&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null),e.$observe(b,function(b){return b?(e.$set(g,b),void(rd&&f&&d.prop(f,e[g]))):void("href"===a&&e.$set(g,null))})}}}});var Ee={$addControl:o,$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o};ad.$inject=["$element","$attrs","$scope","$animate"];var Fe=function(a){return["$timeout",function(b){var d={name:"form",restrict:a?"EAC":"E",controller:ad,compile:function(){return{pre:function(a,d,e,f){if(!e.action){var g=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1};Jd(d[0],"submit",g),d.on("$destroy",function(){b(function(){Kd(d[0],"submit",g)},0,!1)})}var h=d.parent().controller("form"),i=e.name||e.ngForm;i&&uc(a,i,f,i),h&&d.on("$destroy",function(){h.$removeControl(f),i&&uc(a,i,c,i),l(f,Ee)})}}}};return d}]},Ge=Fe(),He=Fe(!0),Ie=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Je=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ke=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Le={text:ed,number:fd,url:gd,email:hd,radio:id,checkbox:jd,hidden:o,button:o,submit:o,reset:o,file:o},Me=["badInput"],Ne=["$browser","$sniffer",function(a,b){return{restrict:"E",require:"?ngModel",link:function(c,d,e,f){f&&(Le[md(e.type)]||Le.text)(c,d,e,f,b,a)}}}],Oe="ng-valid",Pe="ng-invalid",Qe="ng-pristine",Re="ng-dirty",Se=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(a,b,c,e,g,h){function i(a,b){b=b?"-"+_(b,"-"):"",h.removeClass(e,(a?Pe:Oe)+b),h.addClass(e,(a?Oe:Pe)+b)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=c.name;var j=g(c.ngModel),k=j.assign;if(!k)throw d("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",c.ngModel,T(e));this.$render=o,this.$isEmpty=function(a){return r(a)||""===a||null===a||a!==a};var l=e.inheritedData("$formController")||Ee,m=0,n=this.$error={};e.addClass(Qe),i(!0),this.$setValidity=function(a,b){n[a]!==!b&&(b?(n[a]&&m--,m||(i(!0),this.$valid=!0,this.$invalid=!1)):(i(!1),this.$invalid=!0,this.$valid=!1,m++),n[a]=!b,i(b,a),l.$setValidity(a,b,this))},this.$setPristine=function(){this.$dirty=!1,this.$pristine=!0,h.removeClass(e,Re),h.addClass(e,Qe)},this.$setViewValue=function(c){this.$viewValue=c,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,h.removeClass(e,Qe),h.addClass(e,Re),l.$setDirty()),f(this.$parsers,function(a){c=a(c)}),this.$modelValue!==c&&(this.$modelValue=c,k(a,c),f(this.$viewChangeListeners,function(a){try{a()}catch(c){b(c)}}))};var p=this;a.$watch(function(){var b=j(a);if(p.$modelValue!==b){var c=p.$formatters,d=c.length;for(p.$modelValue=b;d--;)b=c[d](b);p.$viewValue!==b&&(p.$viewValue=b,p.$render())}return b})}],Te=function(){return{require:["ngModel","^?form"],controller:Se,link:function(a,b,c,d){var e=d[0],f=d[1]||Ee;f.$addControl(e),a.$on("$destroy",function(){f.$removeControl(e)})}}},Ue=q({require:"ngModel",link:function(a,b,c,d){d.$viewChangeListeners.push(function(){a.$eval(c.ngChange)})}}),Ve=function(){return{require:"?ngModel",link:function(a,b,c,d){if(d){c.required=!0;var e=function(a){return c.required&&d.$isEmpty(a)?void d.$setValidity("required",!1):(d.$setValidity("required",!0),a)};d.$formatters.push(e),d.$parsers.unshift(e),c.$observe("required",function(){e(d.$viewValue)})}}}},We=function(){return{require:"ngModel",link:function(a,b,d,e){var g=/\/(.*)\//.exec(d.ngList),h=g&&new RegExp(g[1])||d.ngList||",",i=function(a){if(!r(a)){var b=[];return a&&f(a.split(h),function(a){a&&b.push(Dd(a))}),b}};e.$parsers.push(i),e.$formatters.push(function(a){return Cd(a)?a.join(", "):c}),e.$isEmpty=function(a){return!a||!a.length}}}},Xe=/^(true|false|\d+)$/,Ye=function(){return{priority:100,compile:function(a,b){return Xe.test(b.ngValue)?function(a,b,c){c.$set("value",a.$eval(c.ngValue))}:function(a,b,c){a.$watch(c.ngValue,function(a){c.$set("value",a)})}}}},Ze=_c({compile:function(a){return a.addClass("ng-binding"),function(a,b,d){b.data("$binding",d.ngBind),a.$watch(d.ngBind,function(a){b.text(a==c?"":a)})}}}),$e=["$interpolate",function(a){return function(b,c,d){var e=a(c.attr(d.$attr.ngBindTemplate));c.addClass("ng-binding").data("$binding",e),d.$observe("ngBindTemplate",function(a){c.text(a)})}}],_e=["$sce","$parse",function(a,b){return{compile:function(c){return c.addClass("ng-binding"),function(c,d,e){function f(){return(g(c)||"").toString()}d.data("$binding",e.ngBindHtml);var g=b(e.ngBindHtml);c.$watch(f,function(){d.html(a.getTrustedHtml(g(c))||"")})}}}}],af=kd("",!0),bf=kd("Odd",0),cf=kd("Even",1),df=_c({compile:function(a,b){b.$set("ngCloak",c),a.removeClass("ng-cloak")}}),ef=[function(){return{scope:!0,controller:"@",priority:500}}],ff={},gf={blur:!0,focus:!0};f("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=Pb("ng-"+a);ff[b]=["$parse","$rootScope",function(c,d){return{compile:function(e,f){var g=c(f[b]);return function(b,c){c.on(a,function(c){var e=function(){g(b,{$event:c})};gf[a]&&d.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var hf=["$animate",function(a){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,g){var h,i,j;c.$watch(e.ngIf,function(f){S(f)?i||(i=c.$new(),g(i,function(c){c[c.length++]=b.createComment(" end ngIf: "+e.ngIf+" "),h={clone:c},a.enter(c,d.parent(),d)})):(j&&(j.remove(),j=null),i&&(i.$destroy(),i=null),h&&(j=fb(h.clone),a.leave(j,function(){j=null}),h=null))})}}}],jf=["$http","$templateCache","$anchorScroll","$animate","$sce",function(a,b,c,d,e){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ad.noop,compile:function(f,g){var h=g.ngInclude||g.src,i=g.onload||"",j=g.autoscroll;return function(f,g,k,l,m){var n,o,p,q=0,r=function(){o&&(o.remove(),o=null),n&&(n.$destroy(),n=null),p&&(d.leave(p,function(){o=null}),o=p,p=null)};f.$watch(e.parseAsResourceUrl(h),function(e){var h=function(){!s(j)||j&&!f.$eval(j)||c()},k=++q;e?(a.get(e,{cache:b}).success(function(a){if(k===q){var b=f.$new();l.template=a;var c=m(b,function(a){r(),d.enter(a,null,g,h)});n=b,p=c,n.$emit("$includeContentLoaded"),f.$eval(i)}}).error(function(){k===q&&r()}),f.$emit("$includeContentRequested")):(r(),l.template=null)})}}}}],kf=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(b,c,d,e){c.html(e.template),a(c.contents())(b)}}}],lf=_c({priority:450,compile:function(){return{pre:function(a,b,c){a.$eval(c.ngInit)}}}}),mf=_c({terminal:!0,priority:1e3}),nf=["$locale","$interpolate",function(a,b){var c=/{}/g;return{restrict:"EA",link:function(d,e,g){var h=g.count,i=g.$attr.when&&e.attr(g.$attr.when),j=g.offset||0,k=d.$eval(i)||{},l={},m=b.startSymbol(),n=b.endSymbol(),o=/^when(Minus)?(.+)$/;f(g,function(a,b){o.test(b)&&(k[md(b.replace("when","").replace("Minus","-"))]=e.attr(g.$attr[b]))}),f(k,function(a,d){l[d]=b(a.replace(c,m+h+"-"+j+n))}),d.$watch(function(){var b=parseFloat(d.$eval(h));return isNaN(b)?"":(b in k||(b=a.pluralCat(b-j)),l[b](d,e,!0))},function(a){e.text(a)})}}}],of=["$parse","$animate",function(a,c){function g(a){return a.clone[0]}function h(a){return a.clone[a.clone.length-1]}var i="$$NG_REMOVED",j=d("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(d,k,l,m,n){var o,p,q,r,s,t,u,v,w,x=l.ngRepeat,y=x.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),z={$id:Eb};if(!y)throw j("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",x);if(t=y[1],u=y[2],o=y[3],o?(p=a(o),q=function(a,b,c){return w&&(z[w]=a),z[v]=b,z.$index=c,p(d,z)}):(r=function(a,b){return Eb(b)},s=function(a){return a}),y=t.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!y)throw j("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",t);v=y[3]||y[1],w=y[2];var A={};d.$watchCollection(u,function(a){var l,m,o,p,t,u,y,z,B,C,D,E,F=k[0],G={},H=[];if(e(a))C=a,B=q||r;else{B=q||s,C=[];for(u in a)a.hasOwnProperty(u)&&"$"!=u.charAt(0)&&C.push(u);C.sort()}for(p=C.length,m=H.length=C.length,l=0;m>l;l++)if(u=a===C?l:C[l],y=a[u],z=B(u,y,l),db(z,"`track by` id"),A.hasOwnProperty(z))D=A[z],delete A[z],G[z]=D,H[l]=D;else{if(G.hasOwnProperty(z))throw f(H,function(a){a&&a.scope&&(A[a.id]=a)}),j("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",x,z,Q(y));H[l]={id:z},G[z]=!1}for(u in A)A.hasOwnProperty(u)&&(D=A[u],E=fb(D.clone),c.leave(E),f(E,function(a){a[i]=!0}),D.scope.$destroy());for(l=0,m=C.length;m>l;l++){if(u=a===C?l:C[l],y=a[u],D=H[l],H[l-1]&&(F=h(H[l-1])),D.scope){t=D.scope,o=F;do o=o.nextSibling;while(o&&o[i]);g(D)!=o&&c.move(fb(D.clone),null,sd(F)),F=h(D)}else t=d.$new();t[v]=y,w&&(t[w]=u),t.$index=l,t.$first=0===l,t.$last=l===p-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&l)),D.scope||n(t,function(a){a[a.length++]=b.createComment(" end ngRepeat: "+x+" "),c.enter(a,null,sd(F)),F=a,D.scope=t,D.clone=a,G[D.id]=D})}A=G})}}}],pf=["$animate",function(a){return function(b,c,d){b.$watch(d.ngShow,function(b){a[S(b)?"removeClass":"addClass"](c,"ng-hide")})}}],qf=["$animate",function(a){return function(b,c,d){b.$watch(d.ngHide,function(b){a[S(b)?"addClass":"removeClass"](c,"ng-hide")})}}],rf=_c(function(a,b,c){a.$watch(c.ngStyle,function(a,c){c&&a!==c&&f(c,function(a,c){b.css(c,"")}),a&&b.css(a)},!0)}),sf=["$animate",function(a){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(b,c,d,e){var g=d.ngSwitch||d.on,h=[],i=[],j=[],k=[];b.$watch(g,function(c){var g,l;for(g=0,l=j.length;l>g;++g)j[g].remove();for(j.length=0,g=0,l=k.length;l>g;++g){var m=i[g];k[g].$destroy(),j[g]=m,a.leave(m,function(){j.splice(g,1)})}i.length=0,k.length=0,(h=e.cases["!"+c]||e.cases["?"])&&(b.$eval(d.change),f(h,function(c){var d=b.$new();k.push(d),c.transclude(d,function(b){var d=c.element;i.push(b),a.enter(b,d.parent(),d)})}))})}}}],tf=_c({transclude:"element",priority:800,require:"^ngSwitch",link:function(a,b,c,d,e){d.cases["!"+c.ngSwitchWhen]=d.cases["!"+c.ngSwitchWhen]||[],d.cases["!"+c.ngSwitchWhen].push({transclude:e,element:b})}}),uf=_c({transclude:"element",priority:800,require:"^ngSwitch",link:function(a,b,c,d,e){d.cases["?"]=d.cases["?"]||[],d.cases["?"].push({transclude:e,element:b})}}),vf=_c({link:function(a,b,c,e,f){if(!f)throw d("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",T(b));f(function(a){b.empty(),b.append(a)})}}),wf=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,c){if("text/ng-template"==c.type){var d=c.id,e=b[0].text;a.put(d,e)}}}}],xf=d("ngOptions"),yf=q({terminal:!0}),zf=["$compile","$parse",function(a,d){var e=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,h={$setViewValue:o};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(a,b,c){var d,e,f=this,g={},i=h;f.databound=c.ngModel,f.init=function(a,b,c){i=a,d=b,e=c},f.addOption=function(b){db(b,'"option value"'),g[b]=!0,i.$viewValue==b&&(a.val(b),e.parent()&&e.remove())},f.removeOption=function(a){this.hasOption(a)&&(delete g[a],i.$viewValue==a&&this.renderUnknownOption(a))},f.renderUnknownOption=function(b){var c="? "+Eb(b)+" ?";e.val(c),a.prepend(e),a.val(c),e.prop("selected",!0)},f.hasOption=function(a){return g.hasOwnProperty(a)},b.$on("$destroy",function(){f.renderUnknownOption=o})}],link:function(h,i,j,k){function l(a,b,c,d){c.$render=function(){var a=c.$viewValue;d.hasOption(a)?(y.parent()&&y.remove(),b.val(a),""===a&&o.prop("selected",!0)):r(a)&&o?b.val(""):d.renderUnknownOption(a)},b.on("change",function(){a.$apply(function(){y.parent()&&y.remove(),c.$setViewValue(b.val())})})}function m(a,b,c){var d;c.$render=function(){var a=new Fb(c.$viewValue);f(b.find("option"),function(b){b.selected=s(a.get(b.value))})},a.$watch(function(){L(d,c.$viewValue)||(d=K(c.$viewValue),c.$render())}),b.on("change",function(){a.$apply(function(){var a=[];f(b.find("option"),function(b){b.selected&&a.push(b.value)}),c.$setViewValue(a)})})}function n(b,f,h){function i(){var a=!1;if(t){var c=h.$modelValue;if(y&&Cd(c)){a=new Fb([]);for(var d={},e=0;e<c.length;e++)d[m]=c[e],a.put(y(b,d),c[e])}else a=new Fb(c)}return a}function j(){var a,c,d,e,j,k,r,u,A,B,C,D,E,F,G,H={"":[]},I=[""],J=h.$modelValue,K=q(b)||[],L=n?g(K):K,M={},N=i();for(C=0;A=L.length,A>C;C++){if(r=C,n){if(r=L[C],"$"===r.charAt(0))continue;M[n]=r}if(M[m]=K[r],a=o(b,M)||"",(c=H[a])||(c=H[a]=[],I.push(a)),t)D=s(N.remove(y?y(b,M):p(b,M)));else{if(y){var O={};O[m]=J,D=y(b,O)===y(b,M)}else D=J===p(b,M);N=N||D}G=l(b,M),G=s(G)?G:"",c.push({id:y?y(b,M):n?L[C]:C,label:G,selected:D})}for(t||(v||null===J?H[""].unshift({id:"",label:"",selected:!N}):N||H[""].unshift({id:"?",label:"",selected:!0})),B=0,u=I.length;u>B;B++){for(a=I[B],c=H[a],z.length<=B?(e={element:x.clone().attr("label",a),label:c.label},j=[e],z.push(j),f.append(e.element)):(j=z[B],e=j[0],e.label!=a&&e.element.attr("label",e.label=a)),E=null,C=0,A=c.length;A>C;C++)d=c[C],(k=j[C+1])?(E=k.element,k.label!==d.label&&E.text(k.label=d.label),k.id!==d.id&&E.val(k.id=d.id),E[0].selected!==d.selected&&(E.prop("selected",k.selected=d.selected),rd&&E.prop("selected",k.selected))):(""===d.id&&v?F=v:(F=w.clone()).val(d.id).prop("selected",d.selected).attr("selected",d.selected).text(d.label),j.push(k={element:F,label:d.label,id:d.id,selected:d.selected}),E?E.after(F):e.element.append(F),E=F);for(C++;j.length>C;)j.pop().element.remove()}for(;z.length>B;)z.pop()[0].element.remove()}var k;if(!(k=u.match(e)))throw xf("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",u,T(f));var l=d(k[2]||k[1]),m=k[4]||k[6],n=k[5],o=d(k[3]||""),p=d(k[2]?k[1]:m),q=d(k[7]),r=k[8],y=r?d(k[8]):null,z=[[{element:f,label:""}]];v&&(a(v)(b),v.removeClass("ng-scope"),v.remove()),f.empty(),f.on("change",function(){b.$apply(function(){var a,d,e,g,i,k,l,o,r,s=q(b)||[],u={};if(t){for(e=[],k=0,o=z.length;o>k;k++)for(a=z[k],i=1,l=a.length;l>i;i++)if((g=a[i].element)[0].selected){if(d=g.val(),n&&(u[n]=d),y)for(r=0;r<s.length&&(u[m]=s[r],y(b,u)!=d);r++);else u[m]=s[d];e.push(p(b,u))}}else if(d=f.val(),"?"==d)e=c;else if(""===d)e=null;else if(y){for(r=0;r<s.length;r++)if(u[m]=s[r],y(b,u)==d){e=p(b,u);break}}else u[m]=s[d],n&&(u[n]=d),e=p(b,u);h.$setViewValue(e),j()})}),h.$render=j,b.$watchCollection(q,j),b.$watchCollection(function(){var a={},c=q(b);if(c){for(var d=new Array(c.length),e=0,f=c.length;f>e;e++)a[m]=c[e],d[e]=l(b,a);return d}},j),t&&b.$watchCollection(function(){return h.$modelValue},j)}if(k[1]){for(var o,p=k[0],q=k[1],t=j.multiple,u=j.ngOptions,v=!1,w=sd(b.createElement("option")),x=sd(b.createElement("optgroup")),y=w.clone(),z=0,A=i.children(),B=A.length;B>z;z++)if(""===A[z].value){o=v=A.eq(z);break}p.init(q,v,y),t&&(q.$isEmpty=function(a){return!a||0===a.length}),u?n(h,i,q):t?m(h,i,q):l(h,i,q,p)}}}}],Af=["$interpolate",function(a){var b={addOption:o,removeOption:o};return{restrict:"E",priority:100,compile:function(c,d){if(r(d.value)){var e=a(c.text(),!0);e||d.$set("value",c.text())}return function(a,c,d){var f="$selectController",g=c.parent(),h=g.data(f)||g.parent().data(f);h&&h.databound?c.prop("selected",!1):h=b,e?a.$watch(e,function(a,b){d.$set("value",a),a!==b&&h.removeOption(b),h.addOption(a)}):h.addOption(d.value),c.on("$destroy",function(){h.removeOption(d.value)})}}}}],Bf=q({restrict:"E",terminal:!0});return a.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ab(),hb(Ad),void sd(b).ready(function(){Z(b,$)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>'),function(a,b,c){"use strict";b.module("ngAnimate",["ng"]).directive("ngAnimateChildren",function(){var a="$$ngAnimateChildren";return function(c,d,e){var f=e.ngAnimateChildren;b.isString(f)&&0===f.length?d.data(a,!0):c.$watch(f,function(b){d.data(a,!!b)})}}).factory("$$animateReflow",["$$rAF","$document",function(a,b){var c=b[0].body;return function(b){return a(function(){c.offsetWidth+1;b()})}}]).config(["$provide","$animateProvider",function(d,e){function f(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.nodeType==m)return c}}function g(a){return a&&b.element(a)}function h(a){return b.element(f(a))}function i(a,b){return f(a)==f(b)}var j=b.noop,k=b.forEach,l=e.$$selectors,m=1,n="$$ngAnimateState",o="$$ngAnimateChildren",p="ng-animate",q={running:!0};d.decorator("$animate",["$delegate","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document",function(a,c,d,m,r,s){function t(a){var b=a.data(n)||{};b.running=!0,a.data(n,b)}function u(a){if(a){var b=[],e={},f=a.substr(1).split(".");(d.transitions||d.animations)&&b.push(c.get(l[""]));for(var g=0;g<f.length;g++){var h=f[g],i=l[h];i&&!e[h]&&(b.push(c.get(i)),e[h]=!0)}return b}}function v(a,c,d){function e(a,b){var c=a[b],d=a["before"+b.charAt(0).toUpperCase()+b.substr(1)];return c||d?("leave"==b&&(d=c,c=null),v.push({event:b,fn:c}),r.push({event:b,fn:d}),!0):void 0}function f(b,c,e){function f(a){if(c){if((c[a]||j)(),++l<g.length)return;c=null}e()}var g=[];k(b,function(a){a.fn&&g.push(a)});var l=0;k(g,function(b,e){var g=function(){f(e)};switch(b.event){case"setClass":c.push(b.fn(a,h,i,g));break;case"addClass":c.push(b.fn(a,h||d,g));break;case"removeClass":c.push(b.fn(a,i||d,g));break;default:c.push(b.fn(a,g))}}),c&&0===c.length&&e()}var g=a[0];if(g){var h,i,l="setClass"==c,m=l||"addClass"==c||"removeClass"==c;b.isArray(d)&&(h=d[0],i=d[1],d=h+" "+i);var n=a.attr("class"),o=n+" "+d;if(C(o)){var p=j,q=[],r=[],s=j,t=[],v=[],w=(" "+o).replace(/\s+/g,".");return k(u(w),function(a){var b=e(a,c);!b&&l&&(e(a,"addClass"),e(a,"removeClass"))}),{node:g,event:c,className:d,isClassBased:m,isSetClassOperation:l,before:function(a){p=a,f(r,q,function(){p=j,a()})},after:function(a){s=a,f(v,t,function(){s=j,a()})},cancel:function(){q&&(k(q,function(a){(a||j)(!0)}),p(!0)),t&&(k(t,function(a){(a||j)(!0)}),s(!0))}}}}}function w(a,c,d,e,f,g,h){function i(b){var e="$animate:"+b;t&&t[e]&&t[e].length>0&&r(function(){d.triggerHandler(e,{event:a,className:c})})}function j(){i("before")}function l(){i("after")}function m(){i("close"),h&&r(function(){h()})}function o(){o.hasBeenRun||(o.hasBeenRun=!0,g())}function q(){if(!q.hasBeenRun){q.hasBeenRun=!0;var b=d.data(n);b&&(s&&s.isClassBased?y(d,c):(r(function(){var b=d.data(n)||{};H==b.index&&y(d,c,a)}),d.data(n,b))),m()}}var s=v(d,a,c);if(!s)return o(),j(),l(),void q();c=s.className;var t=b.element._data(s.node);t=t&&t.events,e||(e=f?f.parent():d.parent());var u,w=d.data(n)||{},x=w.active||{},B=w.totalActive||0,C=w.last;if(s.isClassBased&&(u=w.running||w.disabled||C&&!C.isClassBased),u||z(d,e))return o(),j(),l(),void q();var D=!1;if(B>0){var E=[];if(s.isClassBased){if("setClass"==C.event)E.push(C),y(d,c);else if(x[c]){var F=x[c];F.event==a?D=!0:(E.push(F),y(d,c))}}else if("leave"==a&&x["ng-leave"])D=!0;else{for(var G in x)E.push(x[G]),y(d,G);x={},B=0}E.length>0&&k(E,function(a){a.cancel()})}if(!s.isClassBased||s.isSetClassOperation||D||(D="addClass"==a==d.hasClass(c)),D)return o(),j(),l(),void m();"leave"==a&&d.one("$destroy",function(){var a=b.element(this),c=a.data(n);if(c){var d=c.active["ng-leave"];d&&(d.cancel(),y(a,"ng-leave"))}}),d.addClass(p);var H=A++;B++,x[c]=s,d.data(n,{last:s,active:x,index:H,totalActive:B}),j(),s.before(function(b){var e=d.data(n);b=b||!e||!e.active[c]||s.isClassBased&&e.active[c].event!=a,o(),b===!0?q():(l(),s.after(q))})}function x(a){var c=f(a);if(c){var d=b.isFunction(c.getElementsByClassName)?c.getElementsByClassName(p):c.querySelectorAll("."+p);k(d,function(a){a=b.element(a);var c=a.data(n);c&&c.active&&k(c.active,function(a){a.cancel()})})}}function y(a,b){if(i(a,m))q.disabled||(q.running=!1,q.structural=!1);else if(b){var c=a.data(n)||{},d=b===!0;!d&&c.active&&c.active[b]&&(c.totalActive--,delete c.active[b]),(d||!c.totalActive)&&(a.removeClass(p),a.removeData(n))}}function z(a,c){if(q.disabled)return!0;if(i(a,m))return q.running;var d,e,f;do{if(0===c.length)break;var g=i(c,m),h=g?q:c.data(n)||{};if(h.disabled)return!0;if(g&&(f=!0),d!==!1){var j=c.data(o);b.isDefined(j)&&(d=j)}e=e||h.running||h.last&&!h.last.isClassBased}while(c=c.parent());return!f||!d&&e}var A=0;m.data(n,q),s.$$postDigest(function(){s.$$postDigest(function(){q.running=!1})});var B=e.classNameFilter(),C=B?function(a){return B.test(a)}:function(){return!0};return{enter:function(c,d,e,f){c=b.element(c),d=g(d),e=g(e),t(c),a.enter(c,d,e),s.$$postDigest(function(){c=h(c),w("enter","ng-enter",c,d,e,j,f)})},leave:function(c,d){c=b.element(c),x(c),t(c),s.$$postDigest(function(){w("leave","ng-leave",h(c),null,null,function(){a.leave(c)},d)})},move:function(c,d,e,f){c=b.element(c),d=g(d),e=g(e),x(c),t(c),a.move(c,d,e),s.$$postDigest(function(){c=h(c),w("move","ng-move",c,d,e,j,f)})},addClass:function(c,d,e){c=b.element(c),c=h(c),w("addClass",d,c,null,null,function(){a.addClass(c,d)},e)},removeClass:function(c,d,e){c=b.element(c),c=h(c),w("removeClass",d,c,null,null,function(){a.removeClass(c,d)},e)},setClass:function(c,d,e,f){c=b.element(c),c=h(c),w("setClass",[d,e],c,null,null,function(){a.setClass(c,d,e)},f)},enabled:function(a,b){switch(arguments.length){case 2:if(a)y(b);else{var c=b.data(n)||{};c.disabled=!0,b.data(n,c)}break;case 1:q.disabled=!a;break;default:a=!q.disabled}return!!a}}}]),e.register("",["$window","$sniffer","$timeout","$$animateReflow",function(d,e,g,h){function i(a,b){J&&J(),W.push(b),J=h(function(){k(W,function(a){a()}),W=[],J=null,U={}})}function l(a,c){var d=f(a);a=b.element(d),Z.push(a);var e=Date.now()+c;Y>=e||(g.cancel(X),Y=e,X=g(function(){n(Z),Z=[]},c,!1))}function n(a){k(a,function(a){var b=a.data(P);b&&(b.closeAnimationFn||j)()})}function o(a,b){var c=b?U[b]:null;if(!c){var e,f,g,h,i=0,j=0,l=0,n=0;k(a,function(a){if(a.nodeType==m){var b=d.getComputedStyle(a)||{};g=b[E+K],i=Math.max(p(g),i),h=b[E+L],e=b[E+M],j=Math.max(p(e),j),f=b[G+M],n=Math.max(p(f),n);var c=p(b[G+K]);c>0&&(c*=parseInt(b[G+N],10)||1),l=Math.max(c,l)}}),c={total:0,transitionPropertyStyle:h,transitionDurationStyle:g,transitionDelayStyle:e,transitionDelay:j,transitionDuration:i,animationDelayStyle:f,animationDelay:n,animationDuration:l},b&&(U[b]=c)}return c}function p(a){var c=0,d=b.isString(a)?a.split(/\s*,\s*/):[];return k(d,function(a){c=Math.max(parseFloat(a)||0,c)}),c}function q(a){var b=a.parent(),c=b.data(O);return c||(b.data(O,++V),c=V),c+"-"+f(a).getAttribute("class")}function r(a,b,c,d){var e=q(b),f=e+" "+c,g=U[f]?++U[f].total:0,h={};if(g>0){var i=c+"-stagger",k=e+" "+i,l=!U[k];l&&b.addClass(i),h=o(b,k),l&&b.removeClass(i)}d=d||function(a){return a()},b.addClass(c);var m=b.data(P)||{},n=d(function(){return o(b,f)}),p=n.transitionDuration,r=n.animationDuration;if(0===p&&0===r)return b.removeClass(c),!1;b.data(P,{running:m.running||0,itemIndex:g,stagger:h,timings:n,closeAnimationFn:j});var s=m.running>0||"setClass"==a;return p>0&&t(b,c,s),r>0&&h.animationDelay>0&&0===h.animationDuration&&u(b),!0}function s(a){return"ng-enter"==a||"ng-move"==a||"ng-leave"==a}function t(a,b,c){s(b)||!c?f(a).style[E+L]="none":a.addClass(Q)}function u(a){f(a).style[G]="none 0s"}function v(a){var b=E+L,c=f(a);c.style[b]&&c.style[b].length>0&&(c.style[b]=""),a.removeClass(Q)}function w(a){var b=G,c=f(a);c.style[b]&&c.style[b].length>0&&(c.style[b]="")}function x(a,b,c,d){function e(){b.off(t,g),b.removeClass(j),C(b,c);var a=f(b);for(var d in v)a.style.removeProperty(v[d])}function g(a){a.stopPropagation();var b=a.originalEvent||a,c=b.$manualTimeStamp||b.timeStamp||Date.now(),e=parseFloat(b.elapsedTime.toFixed(R));Math.max(c-s,0)>=r&&e>=p&&d()}var h=f(b),i=b.data(P);if(-1==h.getAttribute("class").indexOf(c)||!i)return void d();var j="";k(c.split(" "),function(a,b){j+=(b>0?" ":"")+a+"-active"});var m=i.stagger,n=i.timings,o=i.itemIndex,p=Math.max(n.transitionDuration,n.animationDuration),q=Math.max(n.transitionDelay,n.animationDelay),r=q*T,s=Date.now(),t=H+" "+F,u="",v=[];if(n.transitionDuration>0){var w=n.transitionPropertyStyle;-1==w.indexOf("all")&&(u+=I+"transition-property: "+w+";",u+=I+"transition-duration: "+n.transitionDurationStyle+";",v.push(I+"transition-property"),v.push(I+"transition-duration"))}if(o>0){if(m.transitionDelay>0&&0===m.transitionDuration){var x=n.transitionDelayStyle;u+=I+"transition-delay: "+y(x,m.transitionDelay,o)+"; ",v.push(I+"transition-delay")}m.animationDelay>0&&0===m.animationDuration&&(u+=I+"animation-delay: "+y(n.animationDelayStyle,m.animationDelay,o)+"; ",v.push(I+"animation-delay"))}if(v.length>0){var z=h.getAttribute("style")||"";h.setAttribute("style",z+"; "+u)}b.on(t,g),b.addClass(j),i.closeAnimationFn=function(){e(),d()};var A=o*(Math.max(m.animationDelay,m.transitionDelay)||0),B=(q+p)*S,D=(A+B)*T;return i.running++,l(b,D),e}function y(a,b,c){var d="";return k(a.split(","),function(a,e){d+=(e>0?",":"")+(c*b+parseInt(a,10))+"s"}),d}function z(a,b,c,d){return r(a,b,c,d)?function(a){a&&C(b,c)}:void 0}function A(a,b,c,d){return b.data(P)?x(a,b,c,d):(C(b,c),void d())}function B(a,b,c,d){var e=z(a,b,c);if(!e)return void d();var f=e;return i(b,function(){v(b,c),w(b),f=A(a,b,c,d)}),function(a){(f||j)(a)}}function C(a,b){a.removeClass(b);var c=a.data(P);c&&(c.running&&c.running--,c.running&&0!==c.running||a.removeData(P))}function D(a,c){var d="";return a=b.isArray(a)?a:a.split(/\s+/),k(a,function(a,b){a&&a.length>0&&(d+=(b>0?" ":"")+a+c)}),d}var E,F,G,H,I="";a.ontransitionend===c&&a.onwebkittransitionend!==c?(I="-webkit-",E="WebkitTransition",F="webkitTransitionEnd transitionend"):(E="transition",F="transitionend"),a.onanimationend===c&&a.onwebkitanimationend!==c?(I="-webkit-",G="WebkitAnimation",H="webkitAnimationEnd animationend"):(G="animation",H="animationend");var J,K="Duration",L="Property",M="Delay",N="IterationCount",O="$$ngAnimateKey",P="$$ngAnimateCSS3Data",Q="ng-animate-block-transitions",R=3,S=1.5,T=1e3,U={},V=0,W=[],X=null,Y=0,Z=[];return{enter:function(a,b){return B("enter",a,"ng-enter",b)},leave:function(a,b){return B("leave",a,"ng-leave",b)},move:function(a,b){return B("move",a,"ng-move",b)},beforeSetClass:function(a,b,c,d){var e=D(c,"-remove")+" "+D(b,"-add"),f=z("setClass",a,e,function(d){var e=a.attr("class");a.removeClass(c),a.addClass(b);var f=d();return a.attr("class",e),f});return f?(i(a,function(){v(a,e),w(a),d()}),f):void d()},beforeAddClass:function(a,b,c){var d=z("addClass",a,D(b,"-add"),function(c){a.addClass(b);var d=c();return a.removeClass(b),d});return d?(i(a,function(){v(a,b),w(a),c()}),d):void c()},setClass:function(a,b,c,d){c=D(c,"-remove"),b=D(b,"-add");var e=c+" "+b;return A("setClass",a,e,d)},addClass:function(a,b,c){return A("addClass",a,D(b,"-add"),c)},beforeRemoveClass:function(a,b,c){var d=z("removeClass",a,D(b,"-remove"),function(c){var d=a.attr("class");a.removeClass(b);var e=c();return a.attr("class",d),e});return d?(i(a,function(){v(a,b),w(a),c()
  }),d):void c()},removeClass:function(a,b,c){return A("removeClass",a,D(b,"-remove"),c)}}}])}])}(window,window.angular),function(a,b){"use strict";function c(){this.$get=["$$sanitizeUri",function(a){return function(b){var c=[];return f(b,i(c,function(b,c){return!/^unsafe/.test(a(b,c))})),c.join("")}}]}function d(a){var c=[],d=i(c,b.noop);return d.chars(a),c.join("")}function e(a){var b,c={},d=a.split(",");for(b=0;b<d.length;b++)c[d[b]]=!0;return c}function f(a,c){function d(a,d,f,h){if(d=b.lowercase(d),y[d])for(;t.last()&&z[t.last()];)e("",t.last());x[d]&&t.last()==d&&e("",d),h=u[d]||!!h,h||t.push(d);var i={};f.replace(m,function(a,b,c,d,e){var f=c||d||e||"";i[b]=g(f)}),c.start&&c.start(d,i,h)}function e(a,d){var e,f=0;if(d=b.lowercase(d))for(f=t.length-1;f>=0&&t[f]!=d;f--);if(f>=0){for(e=t.length-1;e>=f;e--)c.end&&c.end(t[e]);t.length=f}}"string"!=typeof a&&(a=null===a||"undefined"==typeof a?"":""+a);var f,h,i,s,t=[],v=a;for(t.last=function(){return t[t.length-1]};a;){if(s="",h=!0,t.last()&&A[t.last()]?(a=a.replace(new RegExp("(.*)<\\s*\\/\\s*"+t.last()+"[^>]*>","i"),function(a,b){return b=b.replace(p,"$1").replace(r,"$1"),c.chars&&c.chars(g(b)),""}),e("",t.last())):(0===a.indexOf("<!--")?(f=a.indexOf("--",4),f>=0&&a.lastIndexOf("-->",f)===f&&(c.comment&&c.comment(a.substring(4,f)),a=a.substring(f+3),h=!1)):q.test(a)?(i=a.match(q),i&&(a=a.replace(i[0],""),h=!1)):o.test(a)?(i=a.match(l),i&&(a=a.substring(i[0].length),i[0].replace(l,e),h=!1)):n.test(a)&&(i=a.match(k),i?(i[4]&&(a=a.substring(i[0].length),i[0].replace(k,d)),h=!1):(s+="<",a=a.substring(1))),h&&(f=a.indexOf("<"),s+=0>f?a:a.substring(0,f),a=0>f?"":a.substring(f),c.chars&&c.chars(g(s)))),a==v)throw j("badparse","The sanitizer was unable to parse the following block of html: {0}",a);v=a}e()}function g(a){if(!a)return"";var b=F.exec(a),c=b[1],d=b[3],e=b[2];return e&&(E.innerHTML=e.replace(/</g,"&lt;"),e="textContent"in E?E.textContent:E.innerText),c+e+d}function h(a){return a.replace(/&/g,"&amp;").replace(s,function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1);return"&#"+(1024*(b-55296)+(c-56320)+65536)+";"}).replace(t,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function i(a,c){var d=!1,e=b.bind(a,a.push);return{start:function(a,f,g){a=b.lowercase(a),!d&&A[a]&&(d=a),d||B[a]!==!0||(e("<"),e(a),b.forEach(f,function(d,f){var g=b.lowercase(f),i="img"===a&&"src"===g||"background"===g;D[g]!==!0||C[g]===!0&&!c(d,i)||(e(" "),e(f),e('="'),e(h(d)),e('"'))}),e(g?"/>":">"))},end:function(a){a=b.lowercase(a),d||B[a]!==!0||(e("</"),e(a),e(">")),a==d&&(d=!1)},chars:function(a){d||e(h(a))}}}var j=b.$$minErr("$sanitize"),k=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,l=/^<\/\s*([\w:-]+)[^>]*>/,m=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,n=/^</,o=/^<\//,p=/<!--(.*?)-->/g,q=/<!DOCTYPE([^>]*?)>/i,r=/<!\[CDATA\[(.*?)]]>/g,s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t=/([^\#-~| |!])/g,u=e("area,br,col,hr,img,wbr"),v=e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),w=e("rp,rt"),x=b.extend({},w,v),y=b.extend({},v,e("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")),z=b.extend({},w,e("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")),A=e("script,style"),B=b.extend({},u,y,z,x),C=e("background,cite,href,longdesc,src,usemap"),D=b.extend({},C,e("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width")),E=document.createElement("pre"),F=/^(\s*)([\s\S]*?)(\s*)$/;b.module("ngSanitize",[]).provider("$sanitize",c),b.module("ngSanitize").filter("linky",["$sanitize",function(a){var c=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,e=/^mailto:/;return function(f,g){function h(a){a&&n.push(d(a))}function i(a,c){n.push("<a "),b.isDefined(g)&&(n.push('target="'),n.push(g),n.push('" ')),n.push('href="'),n.push(a),n.push('">'),h(c),n.push("</a>")}if(!f)return f;for(var j,k,l,m=f,n=[];j=m.match(c);)k=j[0],j[2]==j[3]&&(k="mailto:"+k),l=j.index,h(m.substr(0,l)),i(k,j[0].replace(e,"")),m=m.substring(l+j[0].length);return h(m),a(n.join(""))}}])}(window,window.angular),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(a,b,c){"use strict";function d(a,b){return I(new(I(function(){},{prototype:a})),b)}function e(a){return H(arguments,function(b){b!==a&&H(b,function(b,c){a.hasOwnProperty(c)||(a[c]=b)})}),a}function f(a,b){var c=[];for(var d in a.path){if(a.path[d]!==b.path[d])break;c.push(a.path[d])}return c}function g(a,b){if(Array.prototype.indexOf)return a.indexOf(b,Number(arguments[2])||0);var c=a.length>>>0,d=Number(arguments[2])||0;for(d=0>d?Math.ceil(d):Math.floor(d),0>d&&(d+=c);c>d;d++)if(d in a&&a[d]===b)return d;return-1}function h(a,b,c,d){var e,h=f(c,d),i={},j=[];for(var k in h)if(h[k].params&&h[k].params.length){e=h[k].params;for(var l in e)g(j,e[l])>=0||(j.push(e[l]),i[e[l]]=a[e[l]])}return I({},i,b)}function i(a,b){var c={};return H(a,function(a){var d=b[a];c[a]=null!=d?String(d):null}),c}function j(a,b,c){if(!c){c=[];for(var d in a)c.push(d)}for(var e=0;e<c.length;e++){var f=c[e];if(a[f]!=b[f])return!1}return!0}function k(a,b){var c={};return H(a,function(a){c[a]=b[a]}),c}function l(a,b){var d=1,f=2,g={},h=[],i=g,j=I(a.when(g),{$$promises:g,$$values:g});this.study=function(g){function k(a,c){if(o[c]!==f){if(n.push(c),o[c]===d)throw n.splice(0,n.indexOf(c)),new Error("Cyclic dependency: "+n.join(" -> "));if(o[c]=d,E(a))m.push(c,[function(){return b.get(a)}],h);else{var e=b.annotate(a);H(e,function(a){a!==c&&g.hasOwnProperty(a)&&k(g[a],a)}),m.push(c,a,e)}n.pop(),o[c]=f}}function l(a){return F(a)&&a.then&&a.$$promises}if(!F(g))throw new Error("'invocables' must be an object");var m=[],n=[],o={};return H(g,k),g=n=o=null,function(d,f,g){function h(){--s||(t||e(r,f.$$values),p.$$values=r,p.$$promises=!0,o.resolve(r))}function k(a){p.$$failure=a,o.reject(a)}function n(c,e,f){function i(a){l.reject(a),k(a)}function j(){if(!C(p.$$failure))try{l.resolve(b.invoke(e,g,r)),l.promise.then(function(a){r[c]=a,h()},i)}catch(a){i(a)}}var l=a.defer(),m=0;H(f,function(a){q.hasOwnProperty(a)&&!d.hasOwnProperty(a)&&(m++,q[a].then(function(b){r[a]=b,--m||j()},i))}),m||j(),q[c]=l.promise}if(l(d)&&g===c&&(g=f,f=d,d=null),d){if(!F(d))throw new Error("'locals' must be an object")}else d=i;if(f){if(!l(f))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else f=j;var o=a.defer(),p=o.promise,q=p.$$promises={},r=I({},d),s=1+m.length/3,t=!1;if(C(f.$$failure))return k(f.$$failure),p;f.$$values?(t=e(r,f.$$values),h()):(I(q,f.$$promises),f.then(h,k));for(var u=0,v=m.length;v>u;u+=3)d.hasOwnProperty(m[u])?h():n(m[u],m[u+1],m[u+2]);return p}},this.resolve=function(a,b,c,d){return this.study(a)(b,c,d)}}function m(a,b,c){this.fromConfig=function(a,b,c){return C(a.template)?this.fromString(a.template,b):C(a.templateUrl)?this.fromUrl(a.templateUrl,b):C(a.templateProvider)?this.fromProvider(a.templateProvider,b,c):null},this.fromString=function(a,b){return D(a)?a(b):a},this.fromUrl=function(c,d){return D(c)&&(c=c(d)),null==c?null:a.get(c,{cache:b}).then(function(a){return a.data})},this.fromProvider=function(a,b,d){return c.invoke(a,null,d||{params:b})}}function n(a){function b(b){if(!/^\w+(-+\w+)*$/.test(b))throw new Error("Invalid parameter name '"+b+"' in pattern '"+a+"'");if(f[b])throw new Error("Duplicate parameter name '"+b+"' in pattern '"+a+"'");f[b]=!0,j.push(b)}function c(a){return a.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&")}var d,e=/([:*])(\w+)|\{(\w+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f={},g="^",h=0,i=this.segments=[],j=this.params=[];this.source=a;for(var k,l,m;(d=e.exec(a))&&(k=d[2]||d[3],l=d[4]||("*"==d[1]?".*":"[^/]*"),m=a.substring(h,d.index),!(m.indexOf("?")>=0));)g+=c(m)+"("+l+")",b(k),i.push(m),h=e.lastIndex;m=a.substring(h);var n=m.indexOf("?");if(n>=0){var o=this.sourceSearch=m.substring(n);m=m.substring(0,n),this.sourcePath=a.substring(0,h+n),H(o.substring(1).split(/[&?]/),b)}else this.sourcePath=a,this.sourceSearch="";g+=c(m)+"$",i.push(m),this.regexp=new RegExp(g),this.prefix=i[0]}function o(){this.compile=function(a){return new n(a)},this.isMatcher=function(a){return F(a)&&D(a.exec)&&D(a.format)&&D(a.concat)},this.$get=function(){return this}}function p(a){function b(a){var b=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(a.source);return null!=b?b[1].replace(/\\(.)/g,"$1"):""}function c(a,b){return a.replace(/\$(\$|\d{1,2})/,function(a,c){return b["$"===c?0:Number(c)]})}function d(a,b,c){if(!c)return!1;var d=a.invoke(b,b,{$match:c});return C(d)?d:!0}var e=[],f=null;this.rule=function(a){if(!D(a))throw new Error("'rule' must be a function");return e.push(a),this},this.otherwise=function(a){if(E(a)){var b=a;a=function(){return b}}else if(!D(a))throw new Error("'rule' must be a function");return f=a,this},this.when=function(e,f){var g,h=E(f);if(E(e)&&(e=a.compile(e)),!h&&!D(f)&&!G(f))throw new Error("invalid 'handler' in when()");var i={matcher:function(b,c){return h&&(g=a.compile(c),c=["$match",function(a){return g.format(a)}]),I(function(a,e){return d(a,c,b.exec(e.path(),e.search()))},{prefix:E(b.prefix)?b.prefix:""})},regex:function(a,e){if(a.global||a.sticky)throw new Error("when() RegExp must not be global or sticky");return h&&(g=e,e=["$match",function(a){return c(g,a)}]),I(function(b,c){return d(b,e,a.exec(c.path()))},{prefix:b(a)})}},j={matcher:a.isMatcher(e),regex:e instanceof RegExp};for(var k in j)if(j[k])return this.rule(i[k](e,f));throw new Error("invalid 'what' in when()")},this.$get=["$location","$rootScope","$injector",function(a,b,c){function d(b){function d(b){var d=b(c,a);return d?(E(d)&&a.replace().url(d),!0):!1}if(!b||!b.defaultPrevented){var g,h=e.length;for(g=0;h>g;g++)if(d(e[g]))return;f&&d(f)}}return b.$on("$locationChangeSuccess",d),{sync:function(){d()}}}]}function q(a,e,f){function g(a){return 0===a.indexOf(".")||0===a.indexOf("^")}function l(a,b){var d=E(a),e=d?a:a.name,f=g(e);if(f){if(!b)throw new Error("No reference point given for path '"+e+"'");for(var h=e.split("."),i=0,j=h.length,k=b;j>i;i++)if(""!==h[i]||0!==i){if("^"!==h[i])break;if(!k.parent)throw new Error("Path '"+e+"' not valid for state '"+b.name+"'");k=k.parent}else k=b;h=h.slice(i).join("."),e=k.name+(k.name&&h?".":"")+h}var l=w[e];return!l||!d&&(d||l!==a&&l.self!==a)?c:l}function m(a,b){x[a]||(x[a]=[]),x[a].push(b)}function n(b){b=d(b,{self:b,resolve:b.resolve||{},toString:function(){return this.name}});var c=b.name;if(!E(c)||c.indexOf("@")>=0)throw new Error("State must have a valid name");if(w.hasOwnProperty(c))throw new Error("State '"+c+"'' is already defined");var e=-1!==c.indexOf(".")?c.substring(0,c.lastIndexOf(".")):E(b.parent)?b.parent:"";if(e&&!w[e])return m(e,b.self);for(var f in z)D(z[f])&&(b[f]=z[f](b,z.$delegates[f]));if(w[c]=b,!b[y]&&b.url&&a.when(b.url,["$match","$stateParams",function(a,c){v.$current.navigable==b&&j(a,c)||v.transitionTo(b,a,{location:!1})}]),x[c])for(var g=0;g<x[c].length;g++)n(x[c][g]);return b}function o(a){return a.indexOf("*")>-1}function p(a){var b=a.split("."),c=v.$current.name.split(".");if("**"===b[0]&&(c=c.slice(c.indexOf(b[1])),c.unshift("**")),"**"===b[b.length-1]&&(c.splice(c.indexOf(b[b.length-2])+1,Number.MAX_VALUE),c.push("**")),b.length!=c.length)return!1;for(var d=0,e=b.length;e>d;d++)"*"===b[d]&&(c[d]="*");return c.join("")===b.join("")}function q(a,b){return E(a)&&!C(b)?z[a]:D(b)&&E(a)?(z[a]&&!z.$delegates[a]&&(z.$delegates[a]=z[a]),z[a]=b,this):this}function r(a,b){return F(a)?b=a:b.name=a,n(b),this}function s(a,e,g,m,n,q,r,s,x){function z(){r.url()!==M&&(r.url(M),r.replace())}function A(a,c,d,f,h){var i=d?c:k(a.params,c),j={$stateParams:i};h.resolve=n.resolve(a.resolve,j,h.resolve,a);var l=[h.resolve.then(function(a){h.globals=a})];return f&&l.push(f),H(a.views,function(c,d){var e=c.resolve&&c.resolve!==a.resolve?c.resolve:{};e.$template=[function(){return g.load(d,{view:c,locals:j,params:i,notify:!1})||""}],l.push(n.resolve(e,j,h.resolve,a).then(function(f){if(D(c.controllerProvider)||G(c.controllerProvider)){var g=b.extend({},e,j);f.$$controller=m.invoke(c.controllerProvider,null,g)}else f.$$controller=c.controller;f.$$state=a,f.$$controllerAs=c.controllerAs,h[d]=f}))}),e.all(l).then(function(){return h})}var B=e.reject(new Error("transition superseded")),F=e.reject(new Error("transition prevented")),K=e.reject(new Error("transition aborted")),L=e.reject(new Error("transition failed")),M=r.url(),N=x.baseHref();return u.locals={resolve:null,globals:{$stateParams:{}}},v={params:{},current:u.self,$current:u,transition:null},v.reload=function(){v.transitionTo(v.current,q,{reload:!0,inherit:!1,notify:!1})},v.go=function(a,b,c){return this.transitionTo(a,b,I({inherit:!0,relative:v.$current},c))},v.transitionTo=function(b,c,f){c=c||{},f=I({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},f||{});var g,k=v.$current,n=v.params,o=k.path,p=l(b,f.relative);if(!C(p)){var s={to:b,toParams:c,options:f};if(g=a.$broadcast("$stateNotFound",s,k.self,n),g.defaultPrevented)return z(),K;if(g.retry){if(f.$retry)return z(),L;var w=v.transition=e.when(g.retry);return w.then(function(){return w!==v.transition?B:(s.options.$retry=!0,v.transitionTo(s.to,s.toParams,s.options))},function(){return K}),z(),w}if(b=s.to,c=s.toParams,f=s.options,p=l(b,f.relative),!C(p)){if(f.relative)throw new Error("Could not resolve '"+b+"' from state '"+f.relative+"'");throw new Error("No such state '"+b+"'")}}if(p[y])throw new Error("Cannot transition to abstract state '"+b+"'");f.inherit&&(c=h(q,c||{},v.$current,p)),b=p;var x,D,E=b.path,G=u.locals,H=[];for(x=0,D=E[x];D&&D===o[x]&&j(c,n,D.ownParams)&&!f.reload;x++,D=E[x])G=H[x]=D.locals;if(t(b,k,G,f))return b.self.reloadOnSearch!==!1&&z(),v.transition=null,e.when(v.current);if(c=i(b.params,c||{}),f.notify&&(g=a.$broadcast("$stateChangeStart",b.self,c,k.self,n),g.defaultPrevented))return z(),F;for(var N=e.when(G),O=x;O<E.length;O++,D=E[O])G=H[O]=d(G),N=A(D,c,D===b,N,G);var P=v.transition=N.then(function(){var d,e,g;if(v.transition!==P)return B;for(d=o.length-1;d>=x;d--)g=o[d],g.self.onExit&&m.invoke(g.self.onExit,g.self,g.locals.globals),g.locals=null;for(d=x;d<E.length;d++)e=E[d],e.locals=H[d],e.self.onEnter&&m.invoke(e.self.onEnter,e.self,e.locals.globals);if(v.transition!==P)return B;v.$current=b,v.current=b.self,v.params=c,J(v.params,q),v.transition=null;var h=b.navigable;return f.location&&h&&(r.url(h.url.format(h.locals.globals.$stateParams)),"replace"===f.location&&r.replace()),f.notify&&a.$broadcast("$stateChangeSuccess",b.self,c,k.self,n),M=r.url(),v.current},function(d){return v.transition!==P?B:(v.transition=null,a.$broadcast("$stateChangeError",b.self,c,k.self,n,d),z(),e.reject(d))});return P},v.is=function(a,d){var e=l(a);return C(e)?v.$current!==e?!1:C(d)&&null!==d?b.equals(q,d):!0:c},v.includes=function(a,d){if(E(a)&&o(a)){if(!p(a))return!1;a=v.$current.name}var e=l(a);if(!C(e))return c;if(!C(v.$current.includes[e.name]))return!1;var f=!0;return b.forEach(d,function(a,b){C(q[b])&&q[b]===a||(f=!1)}),f},v.href=function(a,b,c){c=I({lossy:!0,inherit:!1,absolute:!1,relative:v.$current},c||{});var d=l(a,c.relative);if(!C(d))return null;b=h(q,b||{},v.$current,d);var e=d&&c.lossy?d.navigable:d,g=e&&e.url?e.url.format(i(d.params,b||{})):null;return!f.html5Mode()&&g&&(g="#"+f.hashPrefix()+g),"/"!==N&&(f.html5Mode()?g=N.slice(0,-1)+g:c.absolute&&(g=N.slice(1)+g)),c.absolute&&g&&(g=r.protocol()+"://"+r.host()+(80==r.port()||443==r.port()?"":":"+r.port())+(!f.html5Mode()&&g?"/":"")+g),g},v.get=function(a,b){if(!C(a)){var c=[];return H(w,function(a){c.push(a.self)}),c}var d=l(a,b);return d&&d.self?d.self:null},v}function t(a,b,c,d){return a!==b||(c!==b.locals||d.reload)&&a.self.reloadOnSearch!==!1?void 0:!0}var u,v,w={},x={},y="abstract",z={parent:function(a){if(C(a.parent)&&a.parent)return l(a.parent);var b=/^(.+)\.[^.]+$/.exec(a.name);return b?l(b[1]):u},data:function(a){return a.parent&&a.parent.data&&(a.data=a.self.data=I({},a.parent.data,a.data)),a.data},url:function(a){var b=a.url;if(E(b))return"^"==b.charAt(0)?e.compile(b.substring(1)):(a.parent.navigable||u).url.concat(b);if(e.isMatcher(b)||null==b)return b;throw new Error("Invalid url '"+b+"' in state '"+a+"'")},navigable:function(a){return a.url?a:a.parent?a.parent.navigable:null},params:function(a){if(!a.params)return a.url?a.url.parameters():a.parent.params;if(!G(a.params))throw new Error("Invalid params in state '"+a+"'");if(a.url)throw new Error("Both params and url specicified in state '"+a+"'");return a.params},views:function(a){var b={};return H(C(a.views)?a.views:{"":a},function(c,d){d.indexOf("@")<0&&(d+="@"+a.parent.name),b[d]=c}),b},ownParams:function(a){if(!a.parent)return a.params;var b={};H(a.params,function(a){b[a]=!0}),H(a.parent.params,function(c){if(!b[c])throw new Error("Missing required parameter '"+c+"' in state '"+a.name+"'");b[c]=!1});var c=[];return H(b,function(a,b){a&&c.push(b)}),c},path:function(a){return a.parent?a.parent.path.concat(a):[]},includes:function(a){var b=a.parent?I({},a.parent.includes):{};return b[a.name]=!0,b},$delegates:{}};u=n({name:"",url:"^",views:null,"abstract":!0}),u.navigable=null,this.decorator=q,this.state=r,this.$get=s,s.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$location","$urlRouter","$browser"]}function r(){function a(a,b){return{load:function(c,d){var e,f={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return d=I(f,d),d.view&&(e=b.fromConfig(d.view,d.params,d.locals)),e&&d.notify&&a.$broadcast("$viewContentLoading",d),e}}}this.$get=a,a.$inject=["$rootScope","$templateFactory"]}function s(){var a=!1;this.useAnchorScroll=function(){a=!0},this.$get=["$anchorScroll","$timeout",function(b,c){return a?b:function(a){c(function(){a[0].scrollIntoView()},0,!1)}}]}function t(a,c,d){function e(){return c.has?function(a){return c.has(a)?c.get(a):null}:function(a){try{return c.get(a)}catch(b){return null}}}function f(a,b){var c=function(){return{enter:function(a,b,c){b.after(a),c()},leave:function(a,b){a.remove(),b()}}};if(i)return{enter:function(a,b,c){i.enter(a,null,b,c)},leave:function(a,b){i.leave(a,b)}};if(h){var d=h&&h(b,a);return{enter:function(a,b,c){d.enter(a,null,b),c()},leave:function(a,b){d.leave(a),b()}}}return c()}var g=e(),h=g("$animator"),i=g("$animate"),j={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(c,e,g){return function(c,e,h){function i(){k&&(k.remove(),k=null),m&&(m.$destroy(),m=null),l&&(q.leave(l,function(){k=null}),k=l,l=null)}function j(f){var h=c.$new(),j=l&&l.data("$uiViewName"),k=j&&a.$current&&a.$current.locals[j];if(f||k!==n){var r=g(h,function(a){q.enter(a,e,function(){(b.isDefined(p)&&!p||c.$eval(p))&&d(a)}),i()});n=a.$current.locals[r.data("$uiViewName")],l=r,m=h,m.$emit("$viewContentLoaded"),m.$eval(o)}}var k,l,m,n,o=h.onload||"",p=h.autoscroll,q=f(h,c);c.$on("$stateChangeSuccess",function(){j(!1)}),c.$on("$viewContentLoading",function(){j(!1)}),j(!0)}}};return j}function u(a,b,c){return{restrict:"ECA",priority:-400,compile:function(d){var e=d.html();return function(d,f,g){var h=g.uiView||g.name||"",i=f.inheritedData("$uiView");h.indexOf("@")<0&&(h=h+"@"+(i?i.state.name:"")),f.data("$uiViewName",h);var j=c.$current,k=j&&j.locals[h];if(k){f.data("$uiView",{name:h,state:k.$$state}),f.html(k.$template?k.$template:e);var l=a(f.contents());if(k.$$controller){k.$scope=d;var m=b(k.$$controller,k);k.$$controllerAs&&(d[k.$$controllerAs]=m),f.data("$ngControllerController",m),f.children().data("$ngControllerController",m)}l(d)}}}}}function v(a){var b=a.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/);if(!b||4!==b.length)throw new Error("Invalid state ref '"+a+"'");return{state:b[1],paramExpr:b[3]||null}}function w(a){var b=a.parent().inheritedData("$uiView");return b&&b.state&&b.state.name?b.state:void 0}function x(a,c){var d=["location","inherit","reload"];return{restrict:"A",require:"?^uiSrefActive",link:function(e,f,g,h){var i=v(g.uiSref),j=null,k=w(f)||a.$current,l="FORM"===f[0].nodeName,m=l?"action":"href",n=!0,o={relative:k},p=e.$eval(g.uiSrefOpts)||{};b.forEach(d,function(a){a in p&&(o[a]=p[a])});var q=function(b){if(b&&(j=b),n){var c=a.href(i.state,j,o);return h&&h.$$setStateInfo(i.state,j),c?void(f[0][m]=c):(n=!1,!1)}};i.paramExpr&&(e.$watch(i.paramExpr,function(a){a!==j&&q(a)},!0),j=e.$eval(i.paramExpr)),q(),l||f.bind("click",function(b){var d=b.which||b.button;d>1||b.ctrlKey||b.metaKey||b.shiftKey||f.attr("target")||(c(function(){a.go(i.state,j,o)}),b.preventDefault())})}}}function y(a,b,c){return{restrict:"A",controller:["$scope","$element","$attrs",function(d,e,f){function g(){a.$current.self===i&&h()?e.addClass(l):e.removeClass(l)}function h(){return!k||j(k,b)}var i,k,l;l=c(f.uiSrefActive||"",!1)(d),this.$$setStateInfo=function(b,c){i=a.get(b,w(e)),k=c,g()},d.$on("$stateChangeSuccess",g)}]}}function z(a){return function(b){return a.is(b)}}function A(a){return function(b){return a.includes(b)}}function B(a,b){function e(a){this.locals=a.locals.globals,this.params=this.locals.$stateParams}function f(){this.locals=null,this.params=null}function g(c,g){if(null!=g.redirectTo){var h,j=g.redirectTo;if(E(j))h=j;else{if(!D(j))throw new Error("Invalid 'redirectTo' in when()");h=function(a,b){return j(a,b.path(),b.search())}}b.when(c,h)}else a.state(d(g,{parent:null,name:"route:"+encodeURIComponent(c),url:c,onEnter:e,onExit:f}));return i.push(g),this}function h(a,b,d){function e(a){return""!==a.name?a:c}var f={routes:i,params:d,current:c};return b.$on("$stateChangeStart",function(a,c,d,f){b.$broadcast("$routeChangeStart",e(c),e(f))}),b.$on("$stateChangeSuccess",function(a,c,d,g){f.current=e(c),b.$broadcast("$routeChangeSuccess",e(c),e(g)),J(d,f.params)}),b.$on("$stateChangeError",function(a,c,d,f,g,h){b.$broadcast("$routeChangeError",e(c),e(f),h)}),f}var i=[];e.$inject=["$$state"],this.when=g,this.$get=h,h.$inject=["$state","$rootScope","$routeParams"]}var C=b.isDefined,D=b.isFunction,E=b.isString,F=b.isObject,G=b.isArray,H=b.forEach,I=b.extend,J=b.copy;b.module("ui.router.util",["ng"]),b.module("ui.router.router",["ui.router.util"]),b.module("ui.router.state",["ui.router.router","ui.router.util"]),b.module("ui.router",["ui.router.state"]),b.module("ui.router.compat",["ui.router"]),l.$inject=["$q","$injector"],b.module("ui.router.util").service("$resolve",l),m.$inject=["$http","$templateCache","$injector"],b.module("ui.router.util").service("$templateFactory",m),n.prototype.concat=function(a){return new n(this.sourcePath+a+this.sourceSearch)},n.prototype.toString=function(){return this.source},n.prototype.exec=function(a,b){var c=this.regexp.exec(a);if(!c)return null;var d,e=this.params,f=e.length,g=this.segments.length-1,h={};if(g!==c.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(d=0;g>d;d++)h[e[d]]=c[d+1];for(;f>d;d++)h[e[d]]=b[e[d]];return h},n.prototype.parameters=function(){return this.params},n.prototype.format=function(a){var b=this.segments,c=this.params;if(!a)return b.join("");var d,e,f,g=b.length-1,h=c.length,i=b[0];for(d=0;g>d;d++)f=a[c[d]],null!=f&&(i+=encodeURIComponent(f)),i+=b[d+1];for(;h>d;d++)f=a[c[d]],null!=f&&(i+=(e?"&":"?")+c[d]+"="+encodeURIComponent(f),e=!0);return i},b.module("ui.router.util").provider("$urlMatcherFactory",o),p.$inject=["$urlMatcherFactoryProvider"],b.module("ui.router.router").provider("$urlRouter",p),q.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider","$locationProvider"],b.module("ui.router.state").value("$stateParams",{}).provider("$state",q),r.$inject=[],b.module("ui.router.state").provider("$view",r),b.module("ui.router.state").provider("$uiViewScroll",s),t.$inject=["$state","$injector","$uiViewScroll"],u.$inject=["$compile","$controller","$state"],b.module("ui.router.state").directive("uiView",t),b.module("ui.router.state").directive("uiView",u),x.$inject=["$state","$timeout"],y.$inject=["$state","$stateParams","$interpolate"],b.module("ui.router.state").directive("uiSref",x).directive("uiSrefActive",y),z.$inject=["$state"],A.$inject=["$state"],b.module("ui.router.state").filter("isState",z).filter("includedByState",A),B.$inject=["$stateProvider","$urlRouterProvider"],b.module("ui.router.compat").provider("$route",B).directive("ngView",t)}(window,window.angular),!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.collide=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){(function(a){(function(){var c,d,e;"undefined"!=typeof performance&&null!==performance&&performance.now?b.exports=function(){return performance.now()}:"undefined"!=typeof a&&null!==a&&a.hrtime?(b.exports=function(){return(c()-e)/1e6},d=a.hrtime,c=function(){var a;return a=d(),1e9*a[0]+a[1]},e=c()):Date.now?(b.exports=function(){return Date.now()-e},e=Date.now()):(b.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(this)}).call(this,a("qhDIRT"))},{qhDIRT:13}],2:[function(a,b){for(var c=a("performance-now"),d="undefined"==typeof window?{}:window,e=["moz","webkit"],f="AnimationFrame",g=d["request"+f],h=d["cancel"+f]||d["cancelRequest"+f],i=0;i<e.length&&!g;i++)g=d[e[i]+"Request"+f],h=d[e[i]+"Cancel"+f]||d[e[i]+"CancelRequest"+f];if(!g||!h){var j=0,k=0,l=[],m=1e3/60;g=function(a){if(0===l.length){var b=c(),d=Math.max(0,m-(b-j));j=d+b,setTimeout(function(){var a=l.slice(0);l.length=0;for(var b=0;b<a.length;b++)a[b].cancelled||a[b].callback(j)},d)}return l.push({handle:++k,callback:a,cancelled:!1}),k},h=function(a){for(var b=0;b<l.length;b++)l[b].handle===a&&(l[b].cancelled=!0)}}b.exports=function(){return g.apply(d,arguments)},b.exports.cancel=function(){h.apply(d,arguments)}},{"performance-now":3}],3:[function(a,b){b.exports=a(1)},{qhDIRT:13}],4:[function(a,b){function c(a,b,c){return Math.max(a,Math.min(b,c))}function d(a){if(!(this instanceof d))return new d(a);a=a||{},this._={id:i(),percent:0,duration:500,isReverse:!1};var b=this._.emitter=new j;this._.onDestroy=function(){b.emit("destroy")},this._.onStop=function(a){b.emit("stop",a),a&&b.emit("complete")},this._.onStart=function(){b.emit("start")},this._.onStep=function(a){b.emit("step",a)},a.duration&&this.duration(a.duration),a.percent&&this.percent(a.percent),a.easing&&this.easing(a.easing),a.reverse&&this.reverse(a.reverse)}function e(a){if("object"==typeof a){var b="string"==typeof a.type&&a.type.toLowerCase().trim();if(!g[b])throw new Error('Invalid easing dynamics object type "'+a.type+'". Available dynamics types: '+Object.keys(g).join(", ")+".");return g[b](a)}if("string"==typeof a){if(a=a.toLowerCase().trim(),0===a.indexOf("cubic-bezier(")){var c=a.replace("cubic-bezier(","").replace(")","").split(",").map(function(a){return a.trim()});return h["cubic-bezier"](c[0],c[1],c[2],c[3])}var d=h[a];if(!d)throw new Error('Invalid easing function "'+a+'". Available easing functions: '+Object.keys(h).join(", ")+".");return h[a]()}return"function"==typeof a?a:void 0}var f=a("./core/timeline"),g=a("./core/dynamics"),h=a("./core/easing-functions"),i=a("./util/uid"),j=a("./util/simple-emitter");b.exports=d,d.prototype={reverse:function(a){return arguments.length?(this._.isReverse=!!a,this):this._.isReverse},easing:function(a){var b=typeof a;return arguments.length?(("function"===b||"string"===b||"object"===b)&&(this._.easing=e(a)),this):this._.easing},percent:function(a){return arguments.length?("number"==typeof a&&(this._.percent=c(0,a,1)),this.isRunning()||this._.onStep(this._getValueForPercent(this._.percent)),this):this._.percent},duration:function(a){return arguments.length?("number"==typeof a&&a>0&&(this._.duration=a),this):this._.duration},isRunning:function(){return!!this._.isRunning},promise:function(){var a=this;return{then:function(b){a.once("stop",b)}}},on:function(a,b){return this._.emitter.on(a,b),this},once:function(a,b){return this._.emitter.once(a,b),this},off:function(a,b){return this._.emitter.off(a,b),this},destroy:function(){return this.stop(),this._.onDestroy(),this.off(),this},stop:function(){return this._.isRunning?(this._.isRunning=!1,f.animationStopped(this),this._.onStop(this._isComplete()),this):void 0},restart:function(a){return this._.isRunning?void 0:(this._.percent=this._getStartPercent(),this.start(!!a))},start:function(a){return this._.isRunning?void 0:(a?this._.onStep(this._getValueForPercent(this._.percent)):this._.isStarting=!0,this._.isRunning=!0,f.animationStarted(this),this._.onStart(),this)},_isComplete:function(){return!this._.isRunning&&this._.percent===this._getEndPercent()},_getEndPercent:function(){return this._.isReverse?0:1},_getStartPercent:function(){return this._.isReverse?1:0},_getValueForPercent:function(a){return this._.easing?this._.easing(a,this._.duration):a},_tick:function(a){var b=this._;b.isStarting?b.isStarting=!1:b.percent=b.isReverse?Math.max(0,b.percent-a/b.duration):Math.min(1,b.percent+a/b.duration),b.onStep(this._getValueForPercent(b.percent)),b.percent===this._getEndPercent()&&this.stop()}}},{"./core/dynamics":6,"./core/easing-functions":7,"./core/timeline":8,"./util/simple-emitter":11,"./util/uid":12}],5:[function(a,b){function c(a){return 1/(200*a)}function d(a,b,d,f){var g=3*a,h=3*(d-a)-g,i=1-g-h,j=3*b,k=3*(f-b)-j,l=1-j-k,m=function(a){return((i*a+h)*a+g)*a},n=function(a){return((l*a+k)*a+j)*a},o=function(a){return(3*i*a+2*h)*a+g},p=function(a,b){var c,d,e,f,g,h;for(e=a,h=0;8>h;h++){if(f=m(e)-a,Math.abs(f)<b)return e;if(g=o(e),Math.abs(g)<1e-6)break;e-=f/g}if(c=0,d=1,e=a,c>e)return c;if(e>d)return d;for(;d>c;){if(f=m(e),Math.abs(f-a)<b)return e;a>f?c=e:d=e,e=.5*(d-c)+c}return e},q=function(a,b){return n(p(a,b))};return function(a,b){return q(a,c(+b||e))}}b.exports={linear:d(0,0,1,1),ease:d(.25,.1,.25,1),easeIn:d(.42,0,1,1),easeOut:d(0,0,.58,1),easeInOut:d(.42,0,.58,1),cubicBezier:function(a,b,c,e){return d(a,b,c,e)}};var e=400},{}],6:[function(a,b){function c(a){return a=e({},f,a||{}),function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p=a;return i=Math.max(1,a.frequency),j=Math.pow(20,a.friction/100),l=a.anticipationSize/100,h=Math.max(0,l),k=b/(1-l)-l/(1-l),l>b?(c=function(a){var b,c,d,e,f;return b=.8,e=l/(1-l),f=0,d=(e-b*f)/(e-f),c=(b-d)/e,c*a*p.anticipationStrength/100+d},o=l/(1-l)-l/(1-l),n=0/(1-l)-l/(1-l),g=Math.acos(1/c(o)),e=(Math.acos(1/c(n))-g)/(i*-l)):(c=function(a){return Math.pow(j/10,-a)*(1-a)},g=0,e=1),d=c(k),f=i*(b-l)*e+g,m=1-d*Math.cos(f)}}function d(a){function b(){var b,c,d,e,f;for(d=Math.min(a.bounce/100,80),f=a.gravity/100,c=Math.sqrt(2/f),e={a:-c,b:c,H:1},a.initialForce&&(e.a=0,e.b=2*e.b);e.H>.001;)b=e.b-e.a,e={a:e.b,b:e.b+b*d,H:e.H*d*d};return e.b}function c(){var c,d,e,f,g,i;for(c=b(),g=a.gravity/100*c*c,e=Math.min(a.bounce/100,80),d=Math.sqrt(2/g),h=[],f={a:-d,b:d,H:1},a.initialForce&&(f.a=0,f.b=2*f.b),h.push(f),i=[];f.b<1&&f.H>.001;)c=f.b-f.a,f={a:f.b,b:f.b+c*e,H:f.H*e*e},i.push(h.push(f));return i}function d(b,c,d,e){var f,g,h;return f=c-b,h=2/f*e-1-2*b/f,g=h*h*d-d+1,a.initialForce&&(g=1-g),g}function f(b){var c,e,f,g,i;for(c=a.bounce/100,f=a.gravity,g=0,e=h[g];!(b>=e.a&&b<=e.b)&&(g+=1,e=h[g]););return i=e?d(e.a,e.b,e.H,b):a.initialForce?0:1
  }a=e({},g,a||{});var h=[];return c(),f}var e=a("../util/extend");b.exports={spring:c,gravity:d};var f={frequency:15,friction:200,anticipationStrength:0,anticipationSize:0},g={bounce:40,gravity:1e3,initialForce:!1}},{"../util/extend":10}],7:[function(a,b){var c=(a("./dynamics"),a("./bezier"));b.exports={linear:function(){return function(a,b){return c.linear(a,b)}},ease:function(){return function(a,b){return c.ease(a,b)}},"ease-in":function(){return function(a,b){return c.easeIn(a,b)}},"ease-out":function(){return function(a,b){return c.easeOut(a,b)}},"ease-in-out":function(){return function(a,b){return c.easeInOut(a,b)}},"cubic-bezier":function(a,b,d,e){var f=c.cubicBezier(a,b,d,e);return function(a,b){return f(a,b)}}}},{"./bezier":5,"./dynamics":6}],8:[function(a,b){var c=a("raf"),d=a("performance-now"),e=b.exports={_running:{},animationStarted:function(a){e._running[a._.id]=a,e.isTicking||e.tick()},animationStopped:function(a){delete e._running[a._.id],e.maybeStopTicking()},tick:function(){function a(){e._rafId=c(a);var f=d(),g=f-b;for(var h in e._running)e._running[h]._tick(g);b=f}var b=d();e.isTicking=!0,e._rafId=c(a)},maybeStopTicking:function(){e.isTicking&&!Object.keys(e._running).length&&(c.cancel(e._rafId),e.isTicking=!1)}}},{"performance-now":1,raf:2}],9:[function(a,b){b.exports={animator:a("./animator")}},{"./animator":4}],10:[function(a,b){b.exports=function(a){for(var b=Array.prototype.slice.call(arguments,1),c=0;c<b.length;c++){var d=b[c];if(d)for(var e in d)a[e]=d[e]}return a}},{}],11:[function(a,b){function c(){}b.exports=c,c.prototype={listeners:[],on:function(a,b){"function"==typeof b&&(this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(b))},once:function(a,b){function c(){d.off(a,b),d.off(a,c)}var d=this;this.on(a,b),this.on(a,c)},emit:function(a,b){var c=this.listeners[a]||[],d=0,e=c.length;if(2===arguments.length)for(d;e>d;d++)c[d]&&c[d](b);else for(d;e>d;d++)c[d]&&c[d]()},off:function(a,b){if(a){var c=this.listeners[a];if(c)if(b){var d=c.indexOf(b);c.splice(d,1)}else c.length=0}else for(var e in this.listeners)this.off(e)}}},{}],12:[function(a,b){var c=[];b.exports=function(){for(var a,b=c.length;b;){if(b--,a=c[b].charCodeAt(0),57==a)return c[b]="A",c.join("");if(90!=a)return c[b]=String.fromCharCode(a+1),c.join("");c[b]="0"}return c.unshift("0"),c.join("")}},{}],13:[function(a,b){function c(){}var d=b.exports={};d.nextTick=function(){var a="undefined"!=typeof window&&window.setImmediate,b="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(a)return function(a){return window.setImmediate(a)};if(b){var c=[];return window.addEventListener("message",function(a){var b=a.source;if((b===window||null===b)&&"process-tick"===a.data&&(a.stopPropagation(),c.length>0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}(),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(){throw new Error("process.chdir is not supported")}},{}]},{},[9])(9)}),function(){function a(a,b,c){b!==!1?N.addEventListener(a,Y[a],c):N.removeEventListener(a,Y[a])}function b(a){var b=u(a.target),d=v(b);if(ionic.tap.requiresNativeClick(d)||R)return!1;var e=t(a);c("click",d,e.x,e.y),n(d)}function c(a,b,c,d){var e=document.createEvent("MouseEvents");e.initMouseEvent(a,!0,!0,window,1,0,0,c,d,!1,!1,!1,!1,0,null),e.isIonicTap=!0,b.dispatchEvent(e)}function d(a){return("submit"!=a.target.type||0!==a.detail)&&(ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(a.target)||!a.isIonicTap&&!ionic.tap.requiresNativeClick(a.target))?(a.stopPropagation(),ionic.tap.isLabelWithTextInput(a.target)||a.preventDefault(),!1):void 0}function e(b){if(!b.isIonicTap&&!m(b)){if(P)return b.stopPropagation(),ionic.tap.isTextInput(b.target)&&U===b.target||/^(select|option)$/i.test(b.target.tagName)||b.preventDefault(),!1;R=!1,S=t(b),a("mousemove"),ionic.activator.start(b)}}function f(c){return P?(c.stopPropagation(),c.preventDefault(),!1):m(c)||/^(select|option)$/i.test(c.target.tagName)?!1:(s(c)||b(c),a("mousemove",!1),ionic.activator.end(),void(R=!1))}function g(b){return s(b)?(a("mousemove",!1),ionic.activator.end(),R=!0,!1):void 0}function h(b){if(!m(b)&&(R=!1,l(),S=t(b),a(V),ionic.activator.start(b),ionic.Platform.isIOS()&&ionic.tap.isLabelWithTextInput(b.target))){var c=v(u(b.target));c!==O&&b.preventDefault()}}function i(a){m(a)||(l(),s(a)||(b(a),/^(select|option)$/i.test(a.target.tagName)&&a.preventDefault()),U=a.target,k())}function j(b){return s(b)?(R=!0,a(V,!1),ionic.activator.end(),!1):void 0}function k(){a(V,!1),ionic.activator.end(),R=!1}function l(){P=!0,clearTimeout(Q),Q=setTimeout(function(){P=!1},2e3)}function m(a){return a.isTapHandled?!0:(a.isTapHandled=!0,ionic.scroll.isScrolling&&ionic.tap.containsOrIsTextInput(a.target)?(a.preventDefault(),!0):void 0)}function n(a){T=null;var b=!1;"SELECT"==a.tagName?(c("mousedown",a,0,0),a.focus&&a.focus(),b=!0):r()===a?b=!0:/^(input|textarea)$/i.test(a.tagName)?(b=!0,a.focus&&a.focus(),a.value=a.value,P&&(T=a)):o(),b&&(r(a),ionic.trigger("ionic.focusin",{target:a},!0))}function o(){var a=r();a&&/^(input|textarea|select)$/i.test(a.tagName)&&a.blur(),r(null)}function p(a){P&&ionic.tap.isTextInput(r())&&ionic.tap.isTextInput(T)&&T!==a.target&&(T.focus(),T=null),ionic.scroll.isScrolling=!1}function q(){r(null)}function r(a){return arguments.length&&(O=a),O||document.activeElement}function s(a){if(!a||1!==a.target.nodeType||!S||0===S.x&&0===S.y)return!1;var b=t(a),c=!(!a.target.classList||!a.target.classList.contains),d=c&a.target.classList.contains("button")?X:W;return Math.abs(S.x-b.x)>d||Math.abs(S.y-b.y)>d}function t(a){var b={x:0,y:0};if(a){var c=a.touches&&a.touches.length?a.touches:[a],d=a.changedTouches&&a.changedTouches[0]||c[0];d&&(b.x=d.clientX||d.pageX||0,b.y=d.clientY||d.pageY||0)}return b}function u(a,b){for(var c=a,d=0;6>d&&c;d++){if("LABEL"===c.tagName)return c;c=c.parentElement}return b!==!1?a:void 0}function v(a){if(a&&"LABEL"===a.tagName){if(a.control)return a.control;if(a.querySelector){var b=a.querySelector("input,textarea,select");if(b)return b}}return a}function w(){J()?(window.addEventListener("native.keyboardshow",x),window.addEventListener("native.keyboardhide",B),window.addEventListener("native.showkeyboard",x),window.addEventListener("native.hidekeyboard",B)):document.body.addEventListener("focusout",B),document.body.addEventListener("ionic.focusin",y),document.body.addEventListener("focusin",y),document.body.addEventListener("orientationchange",G),document.removeEventListener("touchstart",w)}function x(a){clearTimeout($),ionic.keyboard.height=a.keyboardHeight}function y(a){a.target&&ionic.tap.isTextInput(a.target)&&!ionic.tap.isDateInput(a.target)&&I(a.target)&&(document.addEventListener("keydown",E,!1),document.body.scrollTop=0,document.body.querySelector(".scroll-content").scrollTop=0,Z=a.target,z(a))}function z(a){clearTimeout(_),clearTimeout($),_=setTimeout(function(){if(!(bb+350>Date.now())){bb=Date.now();var b,c=Z.getBoundingClientRect(),d=0,e=setInterval(function(){b=H(),d>10&&(clearInterval(e),b=275),b&&(A(a.target,c.top,c.bottom,ab,b),clearInterval(e)),d++},100)}},32)}function A(a,b,c,d,e){var f={target:a,elementTop:Math.round(b),elementBottom:Math.round(c),keyboardHeight:e,viewportHeight:d};return f.hasPlugin=J(),f.contentHeight=d-e,f.isElementUnderKeyboard=f.elementBottom>f.contentHeight,ionic.keyboard.isOpen=!0,Z=a,ionic.trigger("scrollChildIntoView",f,!0),ionic.requestAnimationFrame(function(){document.body.classList.add(cb)}),document.addEventListener("touchmove",F,!1),f}function B(){clearTimeout($),$=setTimeout(C,350)}function C(){ionic.keyboard.isOpen=!1,ionic.trigger("resetScrollView",{target:Z},!0),ionic.requestAnimationFrame(function(){document.body.classList.remove(cb)}),document.removeEventListener("touchmove",F),document.removeEventListener("keydown",E)}function D(){window.innerHeight>ab&&(ab=window.innerHeight)}function E(a){ionic.scroll.isScrolling&&F(a)}function F(a){"TEXTAREA"!==a.target.tagName&&a.preventDefault()}function G(){var a=window.innerHeight;if(a===ab)var b=0,c=setInterval(function(){b>10&&clearInterval(c),a=window.innerHeight,a!==ab&&(ionic.keyboard.landscape=ab>a?!0:!1,ab=a,clearInterval(c)),b++},50);else ab=a}function H(){return ionic.keyboard.height?ionic.keyboard.height:ionic.Platform.isAndroid()?ionic.Platform.isFullScreen?275:window.innerHeight<ab?ab-window.innerHeight:0:ionic.Platform.isIOS()?ionic.keyboard.landscape?206:ionic.Platform.isWebView()?260:216:275}function I(a){for(;a;){if(a.classList.contains(db))return!0;a=a.parentElement}return!1}function J(){return!!(window.cordova&&cordova.plugins&&cordova.plugins.Keyboard)}function K(){var a;for(a=0;a<document.head.children.length;a++)if("viewport"==document.head.children[a].name){eb=document.head.children[a];break}if(eb){var b,c=eb.content.toLowerCase().replace(/\s+/g,"").split(",");for(a=0;a<c.length;a++)c[a]&&(b=c[a].split("="),fb[b[0]]=b.length>1?b[1]:"_");L()}}function L(){var a=fb.width,b=fb.height,c=ionic.Platform,d=c.version(),e="device-width",f="device-height",g=ionic.viewport.orientation();delete fb.height,fb.width=e,c.isIPad()?d>7?delete fb.width:c.isWebView()?90==g?fb.height="0":7==d&&(fb.height=f):7>d&&(fb.height="0"):c.isIOS()&&(c.isWebView()?d>7?delete fb.width:7>d?b&&(fb.height="0"):7==d&&(fb.height=f):7>d&&b&&(fb.height="0")),(a!==fb.width||b!==fb.height)&&M()}function M(){var a,b=[];for(a in fb)fb[a]&&b.push(a+("_"==fb[a]?"":"="+fb[a]));eb.content=b.join(", ")}window.ionic={controllers:{},views:{},version:"1.0.0-beta.11"},function(a,b,c){function d(){f=!0;for(var a=0;a<e.length;a++)c.requestAnimationFrame(e[a]);e=[],b.removeEventListener("DOMContentLoaded",d)}var e=[],f=!1;b.addEventListener("DOMContentLoaded",d),a._rAF=function(){return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||function(b){a.setTimeout(b,16)}}();var g=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelRequestAnimationFrame;c.DomUtil={requestAnimationFrame:function(b){return a._rAF(b)},cancelAnimationFrame:function(a){g(a)},animationFrameThrottle:function(a){var b,d,e;return function(){b=arguments,e=this,d||(d=!0,c.requestAnimationFrame(function(){a.apply(e,b),d=!1}))}},getPositionInParent:function(a){return{left:a.offsetLeft,top:a.offsetTop}},ready:function(a){f||"complete"===b.readyState?c.requestAnimationFrame(a):e.push(a)},getTextBounds:function(c){if(b.createRange){var d=b.createRange();if(d.selectNodeContents(c),d.getBoundingClientRect){var e=d.getBoundingClientRect();if(e){var f=a.scrollX,g=a.scrollY;return{top:e.top+g,left:e.left+f,right:e.left+f+e.width,bottom:e.top+g+e.height,width:e.width,height:e.height}}}}return null},getChildIndex:function(a,b){if(b)for(var c,d=a.parentNode.children,e=0,f=0,g=d.length;g>e;e++)if(c=d[e],c.nodeName&&c.nodeName.toLowerCase()==b){if(c==a)return f;f++}return Array.prototype.slice.call(a.parentNode.children).indexOf(a)},swapNodes:function(a,b){b.parentNode.insertBefore(a,b)},centerElementByMargin:function(a){a.style.marginLeft=-a.offsetWidth/2+"px",a.style.marginTop=-a.offsetHeight/2+"px"},centerElementByMarginTwice:function(a){c.requestAnimationFrame(function(){c.DomUtil.centerElementByMargin(a),setTimeout(function(){c.DomUtil.centerElementByMargin(a),setTimeout(function(){c.DomUtil.centerElementByMargin(a)})})})},elementIsDescendant:function(a,b,c){var d=a;do{if(d===b)return!0;d=d.parentNode}while(d&&d!==c);return!1},getParentWithClass:function(a,b,c){for(c=c||10;a.parentNode&&c--;){if(a.parentNode.classList&&a.parentNode.classList.contains(b))return a.parentNode;a=a.parentNode}return null},getParentOrSelfWithClass:function(a,b,c){for(c=c||10;a&&c--;){if(a.classList&&a.classList.contains(b))return a;a=a.parentNode}return null},rectContains:function(a,b,c,d,e,f){return c>a||a>e?!1:d>b||b>f?!1:!0}},c.requestAnimationFrame=c.DomUtil.requestAnimationFrame,c.cancelAnimationFrame=c.DomUtil.cancelAnimationFrame,c.animationFrameThrottle=c.DomUtil.animationFrameThrottle}(window,document,ionic),function(a){a.CustomEvent=function(){if("function"==typeof window.CustomEvent)return CustomEvent;var a=function(a,b){var c;b=b||{bubbles:!1,cancelable:!1,detail:void 0};try{c=document.createEvent("CustomEvent"),c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail)}catch(d){c=document.createEvent("Event");for(var e in b)c[e]=b[e];c.initEvent(a,b.bubbles,b.cancelable)}return c};return a.prototype=window.Event.prototype,a}(),a.EventController={VIRTUALIZED_EVENTS:["tap","swipe","swiperight","swipeleft","drag","hold","release"],trigger:function(b,c,d,e){var f=new a.CustomEvent(b,{detail:c,bubbles:!!d,cancelable:!!e});c&&c.target&&c.target.dispatchEvent&&c.target.dispatchEvent(f)||window.dispatchEvent(f)},on:function(b,c,d){for(var e=d||window,f=0,g=this.VIRTUALIZED_EVENTS.length;g>f;f++)if(b==this.VIRTUALIZED_EVENTS[f]){var h=new a.Gesture(d);return h.on(b,c),h}e.addEventListener(b,c)},off:function(a,b,c){c.removeEventListener(a,b)},onGesture:function(b,c,d){var e=new a.Gesture(d);return e.on(b,c),e},offGesture:function(a,b,c){a.off(b,c)},handlePopState:function(){}},a.on=function(){a.EventController.on.apply(a.EventController,arguments)},a.off=function(){a.EventController.off.apply(a.EventController,arguments)},a.trigger=a.EventController.trigger,a.onGesture=function(){return a.EventController.onGesture.apply(a.EventController.onGesture,arguments)},a.offGesture=function(){return a.EventController.offGesture.apply(a.EventController.offGesture,arguments)}}(window.ionic),function(a){function b(){if(!a.Gestures.READY){a.Gestures.event.determineEventTypes();for(var b in a.Gestures.gestures)a.Gestures.gestures.hasOwnProperty(b)&&a.Gestures.detection.register(a.Gestures.gestures[b]);a.Gestures.event.onTouch(a.Gestures.DOCUMENT,a.Gestures.EVENT_MOVE,a.Gestures.detection.detect),a.Gestures.event.onTouch(a.Gestures.DOCUMENT,a.Gestures.EVENT_END,a.Gestures.detection.detect),a.Gestures.READY=!0}}a.Gesture=function(b,c){return new a.Gestures.Instance(b,c||{})},a.Gestures={},a.Gestures.defaults={stop_browser_behavior:"disable-user-behavior"},a.Gestures.HAS_POINTEREVENTS=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,a.Gestures.HAS_TOUCHEVENTS="ontouchstart"in window,a.Gestures.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i,a.Gestures.NO_MOUSEEVENTS=a.Gestures.HAS_TOUCHEVENTS&&window.navigator.userAgent.match(a.Gestures.MOBILE_REGEX),a.Gestures.EVENT_TYPES={},a.Gestures.DIRECTION_DOWN="down",a.Gestures.DIRECTION_LEFT="left",a.Gestures.DIRECTION_UP="up",a.Gestures.DIRECTION_RIGHT="right",a.Gestures.POINTER_MOUSE="mouse",a.Gestures.POINTER_TOUCH="touch",a.Gestures.POINTER_PEN="pen",a.Gestures.EVENT_START="start",a.Gestures.EVENT_MOVE="move",a.Gestures.EVENT_END="end",a.Gestures.DOCUMENT=window.document,a.Gestures.plugins={},a.Gestures.READY=!1,a.Gestures.Instance=function(c,d){var e=this;if(null!==c)return b(),this.element=c,this.enabled=!0,this.options=a.Gestures.utils.extend(a.Gestures.utils.extend({},a.Gestures.defaults),d||{}),this.options.stop_browser_behavior&&a.Gestures.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior),a.Gestures.event.onTouch(c,a.Gestures.EVENT_START,function(b){e.enabled&&a.Gestures.detection.startDetect(e,b)}),this},a.Gestures.Instance.prototype={on:function(a,b){for(var c=a.split(" "),d=0;d<c.length;d++)this.element.addEventListener(c[d],b,!1);return this},off:function(a,b){for(var c=a.split(" "),d=0;d<c.length;d++)this.element.removeEventListener(c[d],b,!1);return this},trigger:function(b,c){var d=a.Gestures.DOCUMENT.createEvent("Event");d.initEvent(b,!0,!0),d.gesture=c;var e=this.element;return a.Gestures.utils.hasParent(c.target,e)&&(e=c.target),e.dispatchEvent(d),this},enable:function(a){return this.enabled=a,this}};var c=null,d=!1,e=!1;a.Gestures.event={bindDom:function(a,b,c){for(var d=b.split(" "),e=0;e<d.length;e++)a.addEventListener(d[e],c,!1)},onTouch:function(b,f,g){var h=this;this.bindDom(b,a.Gestures.EVENT_TYPES[f],function(i){var j=i.type.toLowerCase();if(!j.match(/mouse/)||!e){j.match(/touch/)||j.match(/pointerdown/)||j.match(/mouse/)&&1===i.which?d=!0:j.match(/mouse/)&&1!==i.which&&(d=!1),j.match(/touch|pointer/)&&(e=!0);var k=0;d&&(a.Gestures.HAS_POINTEREVENTS&&f!=a.Gestures.EVENT_END?k=a.Gestures.PointerEvent.updatePointer(f,i):j.match(/touch/)?k=i.touches.length:e||(k=j.match(/up/)?0:1),k>0&&f==a.Gestures.EVENT_END?f=a.Gestures.EVENT_MOVE:k||(f=a.Gestures.EVENT_END),(k||null===c)&&(c=i),g.call(a.Gestures.detection,h.collectEventData(b,f,h.getTouchList(c,f),i)),a.Gestures.HAS_POINTEREVENTS&&f==a.Gestures.EVENT_END&&(k=a.Gestures.PointerEvent.updatePointer(f,i))),k||(c=null,d=!1,e=!1,a.Gestures.PointerEvent.reset())}})},determineEventTypes:function(){var b;b=a.Gestures.HAS_POINTEREVENTS?a.Gestures.PointerEvent.getEvents():a.Gestures.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],a.Gestures.EVENT_TYPES[a.Gestures.EVENT_START]=b[0],a.Gestures.EVENT_TYPES[a.Gestures.EVENT_MOVE]=b[1],a.Gestures.EVENT_TYPES[a.Gestures.EVENT_END]=b[2]},getTouchList:function(b){return a.Gestures.HAS_POINTEREVENTS?a.Gestures.PointerEvent.getTouchList():b.touches?b.touches:(b.identifier=1,[b])},collectEventData:function(b,c,d,e){var f=a.Gestures.POINTER_TOUCH;return(e.type.match(/mouse/)||a.Gestures.PointerEvent.matchType(a.Gestures.POINTER_MOUSE,e))&&(f=a.Gestures.POINTER_MOUSE),{center:a.Gestures.utils.getCenter(d),timeStamp:(new Date).getTime(),target:e.target,touches:d,eventType:c,pointerType:f,srcEvent:e,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return a.Gestures.detection.stopDetect()}}}},a.Gestures.PointerEvent={pointers:{},getTouchList:function(){var a=this,b=[];return Object.keys(a.pointers).sort().forEach(function(c){b.push(a.pointers[c])}),b},updatePointer:function(b,c){return b==a.Gestures.EVENT_END?this.pointers={}:(c.identifier=c.pointerId,this.pointers[c.pointerId]=c),Object.keys(this.pointers).length},matchType:function(b,c){if(!c.pointerType)return!1;var d={};return d[a.Gestures.POINTER_MOUSE]=c.pointerType==c.MSPOINTER_TYPE_MOUSE||c.pointerType==a.Gestures.POINTER_MOUSE,d[a.Gestures.POINTER_TOUCH]=c.pointerType==c.MSPOINTER_TYPE_TOUCH||c.pointerType==a.Gestures.POINTER_TOUCH,d[a.Gestures.POINTER_PEN]=c.pointerType==c.MSPOINTER_TYPE_PEN||c.pointerType==a.Gestures.POINTER_PEN,d[b]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},a.Gestures.utils={extend:function(a,b,c){for(var d in b)void 0!==a[d]&&c||(a[d]=b[d]);return a},hasParent:function(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1},getCenter:function(a){for(var b=[],c=[],d=0,e=a.length;e>d;d++)b.push(a[d].pageX),c.push(a[d].pageY);return{pageX:(Math.min.apply(Math,b)+Math.max.apply(Math,b))/2,pageY:(Math.min.apply(Math,c)+Math.max.apply(Math,c))/2}},getVelocity:function(a,b,c){return{x:Math.abs(b/a)||0,y:Math.abs(c/a)||0}},getAngle:function(a,b){var c=b.pageY-a.pageY,d=b.pageX-a.pageX;return 180*Math.atan2(c,d)/Math.PI},getDirection:function(b,c){var d=Math.abs(b.pageX-c.pageX),e=Math.abs(b.pageY-c.pageY);return d>=e?b.pageX-c.pageX>0?a.Gestures.DIRECTION_LEFT:a.Gestures.DIRECTION_RIGHT:b.pageY-c.pageY>0?a.Gestures.DIRECTION_UP:a.Gestures.DIRECTION_DOWN},getDistance:function(a,b){var c=b.pageX-a.pageX,d=b.pageY-a.pageY;return Math.sqrt(c*c+d*d)},getScale:function(a,b){return a.length>=2&&b.length>=2?this.getDistance(b[0],b[1])/this.getDistance(a[0],a[1]):1},getRotation:function(a,b){return a.length>=2&&b.length>=2?this.getAngle(b[1],b[0])-this.getAngle(a[1],a[0]):0},isVertical:function(b){return b==a.Gestures.DIRECTION_UP||b==a.Gestures.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(a,b){a&&a.classList&&(a.classList.add(b),a.onselectstart=function(){return!1})}},a.Gestures.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(b,c){this.current||(this.stopped=!1,this.current={inst:b,startEvent:a.Gestures.utils.extend({},c),lastEvent:!1,name:""},this.detect(c))},detect:function(b){if(this.current&&!this.stopped){b=this.extendEventData(b);for(var c=this.current.inst.options,d=0,e=this.gestures.length;e>d;d++){var f=this.gestures[d];if(!this.stopped&&c[f.name]!==!1&&f.handler.call(f,b,this.current.inst)===!1){this.stopDetect();break}}return this.current&&(this.current.lastEvent=b),b.eventType==a.Gestures.EVENT_END&&!b.touches.length-1&&this.stopDetect(),b}},stopDetect:function(){this.previous=a.Gestures.utils.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(b){var c=this.current.startEvent;if(c&&(b.touches.length!=c.touches.length||b.touches===c.touches)){c.touches=[];for(var d=0,e=b.touches.length;e>d;d++)c.touches.push(a.Gestures.utils.extend({},b.touches[d]))}var f=b.timeStamp-c.timeStamp,g=b.center.pageX-c.center.pageX,h=b.center.pageY-c.center.pageY,i=a.Gestures.utils.getVelocity(f,g,h);return a.Gestures.utils.extend(b,{deltaTime:f,deltaX:g,deltaY:h,velocityX:i.x,velocityY:i.y,distance:a.Gestures.utils.getDistance(c.center,b.center),angle:a.Gestures.utils.getAngle(c.center,b.center),direction:a.Gestures.utils.getDirection(c.center,b.center),scale:a.Gestures.utils.getScale(c.touches,b.touches),rotation:a.Gestures.utils.getRotation(c.touches,b.touches),startEvent:c}),b},register:function(b){var c=b.defaults||{};return void 0===c[b.name]&&(c[b.name]=!0),a.Gestures.utils.extend(a.Gestures.defaults,c,!0),b.index=b.index||1e3,this.gestures.push(b),this.gestures.sort(function(a,b){return a.index<b.index?-1:a.index>b.index?1:0}),this.gestures}},a.Gestures.gestures=a.Gestures.gestures||{},a.Gestures.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(b,c){switch(b.eventType){case a.Gestures.EVENT_START:clearTimeout(this.timer),a.Gestures.detection.current.name=this.name,this.timer=setTimeout(function(){"hold"==a.Gestures.detection.current.name&&(a.tap.cancelClick(),c.trigger("hold",b))},c.options.hold_timeout);break;case a.Gestures.EVENT_MOVE:b.distance>c.options.hold_threshold&&clearTimeout(this.timer);break;case a.Gestures.EVENT_END:clearTimeout(this.timer)}}},a.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(b,c){if(b.eventType==a.Gestures.EVENT_END&&"touchcancel"!=b.srcEvent.type){var d=a.Gestures.detection.previous,e=!1;if(b.deltaTime>c.options.tap_max_touchtime||b.distance>c.options.tap_max_distance)return;d&&"tap"==d.name&&b.timeStamp-d.lastEvent.timeStamp<c.options.doubletap_interval&&b.distance<c.options.doubletap_distance&&(c.trigger("doubletap",b),e=!0),(!e||c.options.tap_always)&&(a.Gestures.detection.current.name="tap",c.trigger("tap",b))}}},a.Gestures.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.7},handler:function(b,c){if(b.eventType==a.Gestures.EVENT_END){if(c.options.swipe_max_touches>0&&b.touches.length>c.options.swipe_max_touches)return;(b.velocityX>c.options.swipe_velocity||b.velocityY>c.options.swipe_velocity)&&(c.trigger(this.name,b),c.trigger(this.name+b.direction,b))}}},a.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},triggered:!1,handler:function(b,c){if(a.Gestures.detection.current.name!=this.name&&this.triggered)return c.trigger(this.name+"end",b),void(this.triggered=!1);if(!(c.options.drag_max_touches>0&&b.touches.length>c.options.drag_max_touches))switch(b.eventType){case a.Gestures.EVENT_START:this.triggered=!1;break;case a.Gestures.EVENT_MOVE:if(b.distance<c.options.drag_min_distance&&a.Gestures.detection.current.name!=this.name)return;if(a.Gestures.detection.current.name!=this.name&&(a.Gestures.detection.current.name=this.name,c.options.correct_for_drag_min_distance)){var d=Math.abs(c.options.drag_min_distance/b.distance);a.Gestures.detection.current.startEvent.center.pageX+=b.deltaX*d,a.Gestures.detection.current.startEvent.center.pageY+=b.deltaY*d,b=a.Gestures.detection.extendEventData(b)}(a.Gestures.detection.current.lastEvent.drag_locked_to_axis||c.options.drag_lock_to_axis&&c.options.drag_lock_min_distance<=b.distance)&&(b.drag_locked_to_axis=!0);var e=a.Gestures.detection.current.lastEvent.direction;b.drag_locked_to_axis&&e!==b.direction&&(b.direction=a.Gestures.utils.isVertical(e)?b.deltaY<0?a.Gestures.DIRECTION_UP:a.Gestures.DIRECTION_DOWN:b.deltaX<0?a.Gestures.DIRECTION_LEFT:a.Gestures.DIRECTION_RIGHT),this.triggered||(c.trigger(this.name+"start",b),this.triggered=!0),c.trigger(this.name,b),c.trigger(this.name+b.direction,b),(c.options.drag_block_vertical&&a.Gestures.utils.isVertical(b.direction)||c.options.drag_block_horizontal&&!a.Gestures.utils.isVertical(b.direction))&&b.preventDefault();break;case a.Gestures.EVENT_END:this.triggered&&c.trigger(this.name+"end",b),this.triggered=!1}}},a.Gestures.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(b,c){if(a.Gestures.detection.current.name!=this.name&&this.triggered)return c.trigger(this.name+"end",b),void(this.triggered=!1);if(!(b.touches.length<2))switch(c.options.transform_always_block&&b.preventDefault(),b.eventType){case a.Gestures.EVENT_START:this.triggered=!1;break;case a.Gestures.EVENT_MOVE:var d=Math.abs(1-b.scale),e=Math.abs(b.rotation);if(d<c.options.transform_min_scale&&e<c.options.transform_min_rotation)return;a.Gestures.detection.current.name=this.name,this.triggered||(c.trigger(this.name+"start",b),this.triggered=!0),c.trigger(this.name,b),e>c.options.transform_min_rotation&&c.trigger("rotate",b),d>c.options.transform_min_scale&&(c.trigger("pinch",b),c.trigger("pinch"+(b.scale<1?"in":"out"),b));break;case a.Gestures.EVENT_END:this.triggered&&c.trigger(this.name+"end",b),this.triggered=!1}}},a.Gestures.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(b,c){return c.options.prevent_mouseevents&&b.pointerType==a.Gestures.POINTER_MOUSE?void b.stopDetect():(c.options.prevent_default&&b.preventDefault(),void(b.eventType==a.Gestures.EVENT_START&&c.trigger(this.name,b)))}},a.Gestures.gestures.Release={name:"release",index:1/0,handler:function(b,c){b.eventType==a.Gestures.EVENT_END&&c.trigger(this.name,b)}}}(window.ionic),function(a,b,c){function d(){c.Platform.isWebView()?b.addEventListener("deviceready",e,!1):e(),a.removeEventListener("load",d,!1)}function e(){c.Platform.isReady=!0,c.Platform.detect();for(var a=0;a<k.length;a++)k[a]();k=[],c.trigger("platformready",{target:b}),c.requestAnimationFrame(function(){b.body.classList.add("platform-ready")})}var f="ios",g="android",h="windowsphone";c.Platform={navigator:a.navigator,isReady:!1,isFullScreen:!1,platforms:null,grade:null,ua:navigator.userAgent,ready:function(a){this.isReady?a():k.push(a)},detect:function(){c.Platform._checkPlatforms(),c.requestAnimationFrame(function(){for(var a=0;a<c.Platform.platforms.length;a++)b.body.classList.add("platform-"+c.Platform.platforms[a])})},setGrade:function(a){var d=this.grade;this.grade=a,c.requestAnimationFrame(function(){d&&b.body.classList.remove("grade-"+d),b.body.classList.add("grade-"+a)})},device:function(){return a.device?a.device:(this.isWebView(),{})},_checkPlatforms:function(){this.platforms=[];var a="a";this.isWebView()?(this.platforms.push("webview"),this.platforms.push("cordova")):this.platforms.push("browser"),this.isIPad()&&this.platforms.push("ipad");var b=this.platform();if(b){this.platforms.push(b);var c=this.version();if(c){var d=c.toString();d.indexOf(".")>0?d=d.replace(".","_"):d+="_0",this.platforms.push(b+d.split("_")[0]),this.platforms.push(b+d),this.isAndroid()&&4.4>c?a=4>c?"c":"b":this.isWindowsPhone()&&(a="b")}}this.setGrade(a)},isWebView:function(){return!(!a.cordova&&!a.PhoneGap&&!a.phonegap)},isIPad:function(){return/iPad/i.test(c.Platform.navigator.platform)?!0:/iPad/i.test(this.ua)},isIOS:function(){return this.is(f)},isAndroid:function(){return this.is(g)},isWindowsPhone:function(){return this.is(h)},platform:function(){return null===i&&this.setPlatform(this.device().platform),i},setPlatform:function(a){i="undefined"!=typeof a&&null!==a&&a.length?a.toLowerCase():this.ua.indexOf("Android")>0?g:this.ua.indexOf("iPhone")>-1||this.ua.indexOf("iPad")>-1||this.ua.indexOf("iPod")>-1?f:this.ua.indexOf("Windows Phone")>-1?h:c.Platform.navigator.platform&&navigator.platform.toLowerCase().split(" ")[0]||""},version:function(){return null===j&&this.setVersion(this.device().version),j},setVersion:function(a){if("undefined"!=typeof a&&null!==a&&(a=a.split("."),a=parseFloat(a[0]+"."+(a.length>1?a[1]:0)),!isNaN(a)))return void(j=a);j=0;var b=this.platform(),c={android:/Android (\d+).(\d+)?/,ios:/OS (\d+)_(\d+)?/,windowsphone:/Windows Phone (\d+).(\d+)?/};c[b]&&(a=this.ua.match(c[b]),a&&a.length>2&&(j=parseFloat(a[1]+"."+a[2])))},is:function(a){if(a=a.toLowerCase(),this.platforms)for(var b=0;b<this.platforms.length;b++)if(this.platforms[b]===a)return!0;var c=this.platform();return c?c===a.toLowerCase():this.ua.toLowerCase().indexOf(a)>=0},exitApp:function(){this.ready(function(){navigator.app&&navigator.app.exitApp&&navigator.app.exitApp()})},showStatusBar:function(d){this._showStatusBar=d,this.ready(function(){c.requestAnimationFrame(function(){c.Platform._showStatusBar?(a.StatusBar&&a.StatusBar.show(),b.body.classList.remove("status-bar-hide")):(a.StatusBar&&a.StatusBar.hide(),b.body.classList.add("status-bar-hide"))})})},fullScreen:function(a,d){this.isFullScreen=a!==!1,c.DomUtil.ready(function(){c.requestAnimationFrame(function(){c.Platform.isFullScreen?b.body.classList.add("fullscreen"):b.body.classList.remove("fullscreen")}),c.Platform.showStatusBar(d===!0)})}};var i=null,j=null,k=[];a.addEventListener("load",d,!1)}(this,document,ionic),function(a,b){"use strict";b.CSS={},function(){var c,d=["webkitTransform","transform","-webkit-transform","webkit-transform","-moz-transform","moz-transform","MozTransform","mozTransform","msTransform"];for(c=0;c<d.length;c++)if(void 0!==a.documentElement.style[d[c]]){b.CSS.TRANSFORM=d[c];break}for(d=["webkitTransition","mozTransition","msTransition","transition"],c=0;c<d.length;c++)if(void 0!==a.documentElement.style[d[c]]){b.CSS.TRANSITION=d[c];break}}(),"classList"in a.documentElement||!Object.defineProperty||"undefined"==typeof HTMLElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function a(a){return function(){var c,d=b.className.split(/\s+/);for(c=0;c<arguments.length;c++)a(d,d.indexOf(arguments[c]),arguments[c]);b.className=d.join(" ")}}var b=this;return{add:a(function(a,b,c){~b||a.push(c)}),remove:a(function(a,b){~b&&a.splice(b,1)}),toggle:a(function(a,b,c){~b?a.splice(b,1):a.push(c)}),contains:function(a){return!!~b.className.split(/\s+/).indexOf(a)},item:function(a){return b.className.split(/\s+/)[a]||null}}}})}(document,ionic);var N,O,P,Q,R,S,T,U,V="touchmove",W=6,X=50,Y={click:d,mousedown:e,mouseup:f,mousemove:g,touchstart:h,touchend:i,touchcancel:k,touchmove:j,pointerdown:h,pointerup:i,pointercancel:k,pointermove:j,MSPointerDown:h,MSPointerUp:i,MSPointerCancel:k,MSPointerMove:j,focusin:p,focusout:q};ionic.tap={register:function(b){return N=b,a("click",!0,!0),a("mouseup"),a("mousedown"),window.navigator.pointerEnabled?(a("pointerdown"),a("pointerup"),a("pointcancel"),V="pointermove"):window.navigator.msPointerEnabled?(a("MSPointerDown"),a("MSPointerUp"),a("MSPointerCancel"),V="MSPointerMove"):(a("touchstart"),a("touchend"),a("touchcancel")),a("focusin"),a("focusout"),function(){for(var b in Y)a(b,!1);
  N=null,O=null,P=!1,R=!1,S=null}},ignoreScrollStart:function(a){return a.defaultPrevented||a.target.isContentEditable||/^(file|range)$/i.test(a.target.type)||"true"==(a.target.dataset?a.target.dataset.preventScroll:a.target.getAttribute("data-prevent-default"))||!!/^(object|embed)$/i.test(a.target.tagName)||ionic.tap.isElementTapDisabled(a.target)},isTextInput:function(a){return!!a&&("TEXTAREA"==a.tagName||"true"===a.contentEditable||"INPUT"==a.tagName&&!/^(radio|checkbox|range|file|submit|reset)$/i.test(a.type))},isDateInput:function(a){return!!a&&"INPUT"==a.tagName&&/^(date|time|datetime-local|month|week)$/i.test(a.type)},isLabelWithTextInput:function(a){var b=u(a,!1);return!!b&&ionic.tap.isTextInput(v(b))},containsOrIsTextInput:function(a){return ionic.tap.isTextInput(a)||ionic.tap.isLabelWithTextInput(a)},cloneFocusedInput:function(a){ionic.tap.hasCheckedClone||(ionic.tap.hasCheckedClone=!0,ionic.requestAnimationFrame(function(){var b=a.querySelector(":focus");if(ionic.tap.isTextInput(b)){var c=b.parentElement.querySelector(".cloned-text-input");c||(c=document.createElement(b.tagName),c.placeholder=b.placeholder,c.type=b.type,c.value=b.value,c.style=b.style,c.className=b.className,c.classList.add("cloned-text-input"),c.readOnly=!0,b.parentElement.insertBefore(c,b),b.style.top=b.offsetTop,b.classList.add("previous-input-focus"))}}))},hasCheckedClone:!1,removeClonedInputs:function(a){ionic.tap.hasCheckedClone=!1,ionic.requestAnimationFrame(function(){var b,c=a.querySelectorAll(".cloned-text-input"),d=a.querySelectorAll(".previous-input-focus");for(b=0;b<c.length;b++)c[b].parentElement.removeChild(c[b]);for(b=0;b<d.length;b++)d[b].classList.remove("previous-input-focus"),d[b].style.top="",d[b].focus()})},requiresNativeClick:function(a){return!a||a.disabled||/^(file|range)$/i.test(a.type)||/^(object|video)$/i.test(a.tagName)||ionic.tap.isLabelContainingFileInput(a)?!0:ionic.tap.isElementTapDisabled(a)},isLabelContainingFileInput:function(a){var b=u(a);if("LABEL"!==b.tagName)return!1;var c=b.querySelector("input[type=file]");return c&&c.disabled===!1?!0:!1},isElementTapDisabled:function(a){if(a&&1===a.nodeType)for(var b=a;b;){if("true"==(b.dataset?b.dataset.tapDisabled:b.getAttribute("data-tap-disabled")))return!0;b=b.parentElement}return!1},setTolerance:function(a,b){W=a,X=b},cancelClick:function(){R=!0}},ionic.DomUtil.ready(function(){var a="undefined"!=typeof angular?angular:null;(!a||a&&!a.scenario)&&ionic.tap.register(document)}),function(a,b){"use strict";function c(){f={},b.requestAnimationFrame(e)}function d(){for(var a in f)f[a]&&(f[a].classList.add(i),g[a]=f[a]);f={}}function e(){for(var a in g)g[a]&&(g[a].classList.remove(i),delete g[a])}var f={},g={},h=0,i="activated";b.activator={start:function(a){var c=this;b.requestAnimationFrame(function(){if(!b.tap.requiresNativeClick(a.target)){for(var e,g=a.target,i=0;4>i&&(g&&1===g.nodeType);i++){if(e&&g.classList.contains("item")){e=g;break}if("A"==g.tagName||"BUTTON"==g.tagName||g.hasAttribute("ng-click")){e=g;break}if(g.classList.contains("button")){e=g;break}g=g.parentElement}e&&(f[h]=e,"touchstart"===a.type?c._activateTimeout=setTimeout(d,80):b.requestAnimationFrame(d),h=h>19?0:h+1)}})},end:function(){clearTimeout(this._activateTimeout),setTimeout(c,200)}}}(document,ionic),function(a){var b=["0","0","0"];a.Utils={arrayMove:function(a,b,c){if(c>=a.length)for(var d=c-a.length;d--+1;)a.push(void 0);return a.splice(c,0,a.splice(b,1)[0]),a},proxy:function(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){return a.apply(b,c.concat(Array.prototype.slice.call(arguments)))}},debounce:function(a,b,c){var d,e,f,g,h;return function(){f=this,e=arguments,g=new Date;var i=function(){var j=new Date-g;b>j?d=setTimeout(i,b-j):(d=null,c||(h=a.apply(f,e)))},j=c&&!d;return d||(d=setTimeout(i,b)),j&&(h=a.apply(f,e)),h}},throttle:function(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:Date.now(),g=null,f=a.apply(d,e)};return function(){var j=Date.now();h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k?(clearTimeout(g),g=null,h=j,f=a.apply(d,e)):g||c.trailing===!1||(g=setTimeout(i,k)),f}},inherit:function(b,c){var d,e=this;d=b&&b.hasOwnProperty("constructor")?b.constructor:function(){return e.apply(this,arguments)},a.extend(d,e,c);var f=function(){this.constructor=d};return f.prototype=e.prototype,d.prototype=new f,b&&a.extend(d.prototype,b),d.__super__=e.prototype,d},extend:function(a){for(var b=Array.prototype.slice.call(arguments,1),c=0;c<b.length;c++){var d=b[c];if(d)for(var e in d)a[e]=d[e]}return a},nextUid:function(){for(var a,c=b.length;c;){if(c--,a=b[c].charCodeAt(0),57==a)return b[c]="A",b.join("");if(90!=a)return b[c]=String.fromCharCode(a+1),b.join("");b[c]="0"}return b.unshift("0"),b.join("")}},a.inherit=a.Utils.inherit,a.extend=a.Utils.extend,a.throttle=a.Utils.throttle,a.proxy=a.Utils.proxy,a.debounce=a.Utils.debounce}(window.ionic);var Z,$,_,ab=window.innerHeight,bb=0,cb="keyboard-open",db="scroll";ionic.keyboard={isOpen:!1,height:null,landscape:!1},ionic.Platform.ready(function(){D(),setTimeout(D,999),document.addEventListener("touchstart",w,!1)});var eb,fb={};ionic.viewport={orientation:function(){return window.innerWidth>window.innerHeight?90:0}},ionic.Platform.ready(function(){K(),window.addEventListener("orientationchange",function(){setTimeout(L,1e3)},!1)}),function(a){"use strict";a.views.View=function(){this.initialize.apply(this,arguments)},a.views.View.inherit=a.inherit,a.extend(a.views.View.prototype,{initialize:function(){}})}(window.ionic);var gb={effect:{}};!function(a){var b=Date.now||function(){return+new Date},c=60,d=1e3,e={},f=1;gb.effect.Animate={requestAnimationFrame:function(){var b=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame,c=!!b;if(b&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(b.toString())&&(c=!1),c)return function(a,c){b(a,c)};var d=60,e={},f=0,g=1,h=null,i=+new Date;return function(a){var b=g++;return e[b]=a,f++,null===h&&(h=setInterval(function(){var a=+new Date,b=e;e={},f=0;for(var c in b)b.hasOwnProperty(c)&&(b[c](a),i=a);a-i>2500&&(clearInterval(h),h=null)},1e3/d)),b}}(),stop:function(a){var b=null!=e[a];return b&&(e[a]=null),b},isRunning:function(a){return null!=e[a]},start:function(a,g,h,i,j,k){var l=b(),m=l,n=0,o=0,p=f++;if(k||(k=document.body),p%20===0){var q={};for(var r in e)q[r]=!0;e=q}var s=function(f){var q=f!==!0,r=b();if(!e[p]||g&&!g(p))return e[p]=null,void(h&&h(c-o/((r-l)/d),p,!1));if(q)for(var t=Math.round((r-m)/(d/c))-1,u=0;u<Math.min(t,4);u++)s(!0),o++;i&&(n=(r-l)/i,n>1&&(n=1));var v=j?j(n):n;a(v,r,q)!==!1&&1!==n||!q?q&&(m=r,gb.effect.Animate.requestAnimationFrame(s,k)):(e[p]=null,h&&h(c-o/((r-l)/d),p,1===n||null==i))};return e[p]=!0,gb.effect.Animate.requestAnimationFrame(s,k),p}}}(this);!function(a){var b=function(){},c=function(a){return Math.pow(a-1,3)+1},d=function(a){return(a/=.5)<1?.5*Math.pow(a,3):.5*(Math.pow(a-2,3)+2)};a.views.Scroll=a.views.View.inherit({initialize:function(c){var d=this;this.__container=c.el,this.__content=c.el.firstElementChild,setTimeout(function(){d.__container&&d.__content&&(d.__container.scrollTop=0,d.__content.scrollTop=0)}),this.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,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,deceleration:.97,scrollingComplete:b,penetrationDeceleration:.03,penetrationAcceleration:.08,scrollEventInterval:10,getContentWidth:function(){return Math.max(d.__content.scrollWidth,d.__content.offsetWidth)},getContentHeight:function(){return Math.max(d.__content.scrollHeight,d.__content.offsetHeight+d.__content.offsetTop)}};for(var e in c)this.options[e]=c[e];this.hintResize=a.debounce(function(){d.resize()},1e3,!0),this.onScroll=function(){a.scroll.isScrolling?(clearTimeout(d.scrollTimer),d.scrollTimer=setTimeout(d.setScrollStop,80)):setTimeout(d.setScrollStart,50)},this.setScrollStart=function(){a.scroll.isScrolling=Math.abs(a.scroll.lastTop-d.__scrollTop)>1,clearTimeout(d.scrollTimer),d.scrollTimer=setTimeout(d.setScrollStop,80)},this.setScrollStop=function(){a.scroll.isScrolling=!1,a.scroll.lastTop=d.__scrollTop},this.triggerScrollEvent=a.throttle(function(){d.onScroll(),a.trigger("scroll",{scrollTop:d.__scrollTop,scrollLeft:d.__scrollLeft,target:d.__container})},this.options.scrollEventInterval),this.triggerScrollEndEvent=function(){a.trigger("scrollend",{scrollTop:d.__scrollTop,scrollLeft:d.__scrollLeft,target:d.__container})},this.__scrollLeft=this.options.startX,this.__scrollTop=this.options.startY,this.__callback=this.getRenderFn(),this.__initEventHandlers(),this.__createScrollbars()},run:function(){this.resize(),this.__fadeScrollbars("out",this.options.scrollbarResizeFadeDelay)},__isSingleTouch:!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 b(a){return a.touches&&a.touches.length?a.touches:[{pageX:a.pageX,pageY:a.pageY}]}var c=this,d=this.__container;if(d.addEventListener("scrollChildIntoView",function(b){var e;if(!c.isScrolledIntoView){if(a.Platform.isIOS()||a.Platform.isFullScreen){e=d.getBoundingClientRect().bottom;var f=b.detail.viewportHeight-e,g=Math.max(0,b.detail.keyboardHeight-f);d.style.height=d.clientHeight-g+"px",d.style.overflow="visible",c.resize()}c.isScrolledIntoView=!0}if(b.detail.isElementUnderKeyboard){var h;h=a.Platform.isAndroid()&&!a.Platform.isFullScreen?a.Platform.version()<4.4?500:350:80,a.scroll.isScrolling=!0,setTimeout(function(){var f=.5*d.clientHeight;e=d.getBoundingClientRect().bottom;var g=b.detail.elementTop-e,h=g+f;h>0&&(a.tap.cloneFocusedInput(d,c),c.scrollBy(0,h,!0),c.onScroll())},h)}b.stopPropagation()}),d.addEventListener("resetScrollView",function(){c.isScrolledIntoView=!1,d.style.height="",d.style.overflow="",c.resize(),a.scroll.isScrolling=!1}),c.touchStart=function(d){if(c.startCoordinates=t(d),!a.tap.ignoreScrollStart(d)){if(c.__isDown=!0,a.tap.containsOrIsTextInput(d.target)||"SELECT"===d.target.tagName)return void(c.__hasStarted=!1);c.__isSelectable=!0,c.__enableScrollY=!0,c.__hasStarted=!0,c.doTouchStart(b(d),d.timeStamp),d.preventDefault()}},c.touchMove=function(e){if(!(!c.__isDown||e.defaultPrevented||"TEXTAREA"===e.target.tagName&&e.target.parentElement.querySelector(":focus"))){if(!c.__hasStarted&&(a.tap.containsOrIsTextInput(e.target)||"SELECT"===e.target.tagName))return c.__hasStarted=!0,c.doTouchStart(b(e),e.timeStamp),void e.preventDefault();if(c.startCoordinates){var f=t(e);c.__isSelectable&&a.tap.isTextInput(e.target)&&Math.abs(c.startCoordinates.x-f.x)>20&&(c.__enableScrollY=!1,c.__isSelectable=!0),c.__enableScrollY&&Math.abs(c.startCoordinates.y-f.y)>10&&(c.__isSelectable=!1,a.tap.cloneFocusedInput(d,c))}c.doTouchMove(b(e),e.timeStamp,e.scale),c.__isDown=!0}},c.touchEnd=function(b){c.__isDown&&(c.doTouchEnd(b.timeStamp),c.__isDown=!1,c.__hasStarted=!1,c.__isSelectable=!0,c.__enableScrollY=!0,c.__isDragging||c.__isDecelerating||c.__isAnimating||a.tap.removeClonedInputs(d,c))},c.options.orgScrollingComplete=c.options.scrollingComplete,c.options.scrollingComplete=function(){a.tap.removeClonedInputs(d,c),c.options.orgScrollingComplete()},"ontouchstart"in window)d.addEventListener("touchstart",c.touchStart,!1),document.addEventListener("touchmove",c.touchMove,!1),document.addEventListener("touchend",c.touchEnd,!1),document.addEventListener("touchcancel",c.touchEnd,!1);else if(window.navigator.pointerEnabled)d.addEventListener("pointerdown",c.touchStart,!1),document.addEventListener("pointermove",c.touchMove,!1),document.addEventListener("pointerup",c.touchEnd,!1),document.addEventListener("pointercancel",c.touchEnd,!1);else if(window.navigator.msPointerEnabled)d.addEventListener("MSPointerDown",c.touchStart,!1),document.addEventListener("MSPointerMove",c.touchMove,!1),document.addEventListener("MSPointerUp",c.touchEnd,!1),document.addEventListener("MSPointerCancel",c.touchEnd,!1);else{var e=!1;c.mouseDown=function(d){a.tap.ignoreScrollStart(d)||"SELECT"===d.target.tagName||(c.doTouchStart(b(d),d.timeStamp),a.tap.isTextInput(d.target)||d.preventDefault(),e=!0)},c.mouseMove=function(a){e&&!a.defaultPrevented&&(c.doTouchMove(b(a),a.timeStamp),e=!0)},c.mouseUp=function(a){e&&(c.doTouchEnd(a.timeStamp),e=!1)},c.mouseWheel=a.animationFrameThrottle(function(b){var d=a.DomUtil.getParentOrSelfWithClass(b.target,"ionic-scroll");d===c.__container&&(c.hintResize(),c.scrollBy(b.wheelDeltaX/c.options.wheelDampen,-b.wheelDeltaY/c.options.wheelDampen),c.__fadeScrollbars("in"),clearTimeout(c.__wheelHideBarTimeout),c.__wheelHideBarTimeout=setTimeout(function(){c.__fadeScrollbars("out")},100))}),d.addEventListener("mousedown",c.mouseDown,!1),document.addEventListener("mousemove",c.mouseMove,!1),document.addEventListener("mouseup",c.mouseUp,!1),document.addEventListener("mousewheel",c.mouseWheel,!1)}},__removeEventHandlers:function(){var a=this.__container;a.removeEventListener("touchstart",self.touchStart),document.removeEventListener("touchmove",self.touchMove),document.removeEventListener("touchend",self.touchEnd),document.removeEventListener("touchcancel",self.touchCancel),a.removeEventListener("pointerdown",self.touchStart),document.removeEventListener("pointermove",self.touchMove),document.removeEventListener("pointerup",self.touchEnd),document.removeEventListener("pointercancel",self.touchEnd),a.removeEventListener("MSPointerDown",self.touchStart),document.removeEventListener("MSPointerMove",self.touchMove),document.removeEventListener("MSPointerUp",self.touchEnd),document.removeEventListener("MSPointerCancel",self.touchEnd),a.removeEventListener("mousedown",self.mouseDown),document.removeEventListener("mousemove",self.mouseMove),document.removeEventListener("mouseup",self.mouseUp),document.removeEventListener("mousewheel",self.mouseWheel)},__createScrollbar:function(a){var b=document.createElement("div"),c=document.createElement("div");return c.className="scroll-bar-indicator",b.className="h"==a?"scroll-bar scroll-bar-h":"scroll-bar scroll-bar-v",b.appendChild(c),b},__createScrollbars:function(){var a,b;this.options.scrollingX&&(a={el:this.__createScrollbar("h"),sizeRatio:1},a.indicator=a.el.children[0],this.options.scrollbarX&&this.__container.appendChild(a.el),this.__indicatorX=a),this.options.scrollingY&&(b={el:this.__createScrollbar("v"),sizeRatio:1},b.indicator=b.el.children[0],this.options.scrollbarY&&this.__container.appendChild(b.el),this.__indicatorY=b)},__resizeScrollbars:function(){var a=this;if(a.__indicatorX){var b=Math.max(Math.round(a.__clientWidth*a.__clientWidth/a.__contentWidth),20);b>a.__contentWidth&&(b=0),a.__indicatorX.size=b,a.__indicatorX.minScale=this.options.minScrollbarSizeX/b,a.__indicatorX.indicator.style.width=b+"px",a.__indicatorX.maxPos=a.__clientWidth-b,a.__indicatorX.sizeRatio=a.__maxScrollLeft?a.__indicatorX.maxPos/a.__maxScrollLeft:1}if(a.__indicatorY){var c=Math.max(Math.round(a.__clientHeight*a.__clientHeight/a.__contentHeight),20);c>a.__contentHeight&&(c=0),a.__indicatorY.size=c,a.__indicatorY.minScale=this.options.minScrollbarSizeY/c,a.__indicatorY.maxPos=a.__clientHeight-c,a.__indicatorY.indicator.style.height=c+"px",a.__indicatorY.sizeRatio=a.__maxScrollTop?a.__indicatorY.maxPos/a.__maxScrollTop:1}},__repositionScrollbars:function(){var a,b,c,d,e,f=this,g=0,h=0;f.__indicatorX&&(f.__indicatorY&&(g=10),d=Math.round(f.__indicatorX.sizeRatio*f.__scrollLeft)||0,b=f.__scrollLeft-(f.__maxScrollLeft-g),f.__scrollLeft<0?(widthScale=Math.max(f.__indicatorX.minScale,(f.__indicatorX.size-Math.abs(f.__scrollLeft))/f.__indicatorX.size),d=0,f.__indicatorX.indicator.style[f.__transformOriginProperty]="left center"):b>0?(widthScale=Math.max(f.__indicatorX.minScale,(f.__indicatorX.size-b)/f.__indicatorX.size),d=f.__indicatorX.maxPos-g,f.__indicatorX.indicator.style[f.__transformOriginProperty]="right center"):(d=Math.min(f.__maxScrollLeft,Math.max(0,d)),widthScale=1),f.__indicatorX.indicator.style[f.__transformProperty]="translate3d("+d+"px, 0, 0) scaleX("+widthScale+")"),f.__indicatorY&&(e=Math.round(f.__indicatorY.sizeRatio*f.__scrollTop)||0,f.__indicatorX&&(h=10),c=f.__scrollTop-(f.__maxScrollTop-h),f.__scrollTop<0?(a=Math.max(f.__indicatorY.minScale,(f.__indicatorY.size-Math.abs(f.__scrollTop))/f.__indicatorY.size),e=0,f.__indicatorY.indicator.style[f.__transformOriginProperty]="center top"):c>0?(a=Math.max(f.__indicatorY.minScale,(f.__indicatorY.size-c)/f.__indicatorY.size),e=f.__indicatorY.maxPos-h,f.__indicatorY.indicator.style[f.__transformOriginProperty]="center bottom"):(e=Math.min(f.__maxScrollTop,Math.max(0,e)),a=1),f.__indicatorY.indicator.style[f.__transformProperty]="translate3d(0,"+e+"px, 0) scaleY("+a+")")},__fadeScrollbars:function(a,b){var c=this;if(this.options.scrollbarsFade){var d="scroll-bar-fade-out";c.options.scrollbarsFade===!0&&(clearTimeout(c.__scrollbarFadeTimeout),"in"==a?(c.__indicatorX&&c.__indicatorX.indicator.classList.remove(d),c.__indicatorY&&c.__indicatorY.indicator.classList.remove(d)):c.__scrollbarFadeTimeout=setTimeout(function(){c.__indicatorX&&c.__indicatorX.indicator.classList.add(d),c.__indicatorY&&c.__indicatorY.indicator.classList.add(d)},b||c.options.scrollbarFadeDelay))}},__scrollingComplete:function(){var a=this;a.options.scrollingComplete(),a.__fadeScrollbars("out")},resize:function(){this.setDimensions(this.__container.clientWidth,this.__container.clientHeight,this.options.getContentWidth(),this.options.getContentHeight())},getRenderFn:function(){var a,b=this,c=this.__content,d=document.documentElement.style;"MozAppearance"in d?a="gecko":"WebkitAppearance"in d?a="webkit":"string"==typeof navigator.cpuClass&&(a="trident");var e,f={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[a],g=document.createElement("div"),h=f+"Perspective",i=f+"Transform",j=f+"TransformOrigin";return b.__perspectiveProperty=i,b.__transformProperty=i,b.__transformOriginProperty=j,g.style[h]!==e?function(a,d,e,f){c.style[i]="translate3d("+-a+"px,"+-d+"px,0) scale("+e+")",b.__repositionScrollbars(),f||b.triggerScrollEvent()}:g.style[i]!==e?function(a,d,e,f){c.style[i]="translate("+-a+"px,"+-d+"px) scale("+e+")",b.__repositionScrollbars(),f||b.triggerScrollEvent()}:function(a,d,e,f){c.style.marginLeft=a?-a/e+"px":"",c.style.marginTop=d?-d/e+"px":"",c.style.zoom=e||"",b.__repositionScrollbars(),f||b.triggerScrollEvent()}},setDimensions:function(a,b,c,d){var e=this;a===+a&&(e.__clientWidth=a),b===+b&&(e.__clientHeight=b),c===+c&&(e.__contentWidth=c),d===+d&&(e.__contentHeight=d),e.__computeScrollMax(),e.__resizeScrollbars(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0,null,!0)},setPosition:function(a,b){var c=this;c.__clientLeft=a||0,c.__clientTop=b||0},setSnapSize:function(a,b){var c=this;c.__snapWidth=a,c.__snapHeight=b},activatePullToRefresh:function(a,b,c,d){var e=this;e.__refreshHeight=a,e.__refreshActivate=b,e.__refreshDeactivate=c,e.__refreshStart=d},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&this.__refreshStart()},finishPullToRefresh:function(){var a=this;a.__refreshActive=!1,a.__refreshDeactivate&&a.__refreshDeactivate(),a.scrollTo(a.__scrollLeft,a.__scrollTop,!0)},getValues:function(){var a=this;return{left:a.__scrollLeft,top:a.__scrollTop,zoom:a.__zoomLevel}},getScrollMax:function(){var a=this;return{left:a.__maxScrollLeft,top:a.__maxScrollTop}},zoomTo:function(a,b,c,d){var e=this;if(!e.options.zooming)throw new Error("Zooming is not enabled!");e.__isDecelerating&&(gb.effect.Animate.stop(e.__isDecelerating),e.__isDecelerating=!1);var f=e.__zoomLevel;null==c&&(c=e.__clientWidth/2),null==d&&(d=e.__clientHeight/2),a=Math.max(Math.min(a,e.options.maxZoom),e.options.minZoom),e.__computeScrollMax(a);var g=(c+e.__scrollLeft)*a/f-c,h=(d+e.__scrollTop)*a/f-d;g>e.__maxScrollLeft?g=e.__maxScrollLeft:0>g&&(g=0),h>e.__maxScrollTop?h=e.__maxScrollTop:0>h&&(h=0),e.__publish(g,h,a,b)},zoomBy:function(a,b,c,d){var e=this;e.zoomTo(e.__zoomLevel*a,b,c,d)},scrollTo:function(a,b,c,d,e){var f=this;if(f.__isDecelerating&&(gb.effect.Animate.stop(f.__isDecelerating),f.__isDecelerating=!1),null!=d&&d!==f.__zoomLevel){if(!f.options.zooming)throw new Error("Zooming is not enabled!");a*=d,b*=d,f.__computeScrollMax(d)}else d=f.__zoomLevel;f.options.scrollingX?f.options.paging?a=Math.round(a/f.__clientWidth)*f.__clientWidth:f.options.snapping&&(a=Math.round(a/f.__snapWidth)*f.__snapWidth):a=f.__scrollLeft,f.options.scrollingY?f.options.paging?b=Math.round(b/f.__clientHeight)*f.__clientHeight:f.options.snapping&&(b=Math.round(b/f.__snapHeight)*f.__snapHeight):b=f.__scrollTop,a=Math.max(Math.min(f.__maxScrollLeft,a),0),b=Math.max(Math.min(f.__maxScrollTop,b),0),a===f.__scrollLeft&&b===f.__scrollTop&&(c=!1),f.__publish(a,b,d,c,e)},scrollBy:function(a,b,c){var d=this,e=d.__isAnimating?d.__scheduledLeft:d.__scrollLeft,f=d.__isAnimating?d.__scheduledTop:d.__scrollTop;d.scrollTo(e+(a||0),f+(b||0),c)},doMouseZoom:function(a,b,c,d){var e=this,f=a>0?.97:1.03;return e.zoomTo(e.__zoomLevel*f,!1,c-e.__clientLeft,d-e.__clientTop)},doTouchStart:function(a,b){this.hintResize(),b instanceof Date&&(b=b.valueOf()),"number"!=typeof b&&(b=Date.now());var c=this;c.__interruptedAnimation=!0,c.__isDecelerating&&(gb.effect.Animate.stop(c.__isDecelerating),c.__isDecelerating=!1,c.__interruptedAnimation=!0),c.__isAnimating&&(gb.effect.Animate.stop(c.__isAnimating),c.__isAnimating=!1,c.__interruptedAnimation=!0);var d,e,f=1===a.length;f?(d=a[0].pageX,e=a[0].pageY):(d=Math.abs(a[0].pageX+a[1].pageX)/2,e=Math.abs(a[0].pageY+a[1].pageY)/2),c.__initialTouchLeft=d,c.__initialTouchTop=e,c.__initialTouches=a,c.__zoomLevelStart=c.__zoomLevel,c.__lastTouchLeft=d,c.__lastTouchTop=e,c.__lastTouchMove=b,c.__lastScale=1,c.__enableScrollX=!f&&c.options.scrollingX,c.__enableScrollY=!f&&c.options.scrollingY,c.__isTracking=!0,c.__didDecelerationComplete=!1,c.__isDragging=!f,c.__isSingleTouch=f,c.__positions=[]},doTouchMove:function(a,b,c){b instanceof Date&&(b=b.valueOf()),"number"!=typeof b&&(b=Date.now());var d=this;if(d.__isTracking){var e,f;2===a.length?(e=Math.abs(a[0].pageX+a[1].pageX)/2,f=Math.abs(a[0].pageY+a[1].pageY)/2,!c&&d.options.zooming&&(c=d.__getScale(d.__initialTouches,a))):(e=a[0].pageX,f=a[0].pageY);var g=d.__positions;if(d.__isDragging){var h=e-d.__lastTouchLeft,i=f-d.__lastTouchTop,j=d.__scrollLeft,k=d.__scrollTop,l=d.__zoomLevel;if(null!=c&&d.options.zooming){var m=l;if(l=l/d.__lastScale*c,l=Math.max(Math.min(l,d.options.maxZoom),d.options.minZoom),m!==l){var n=e-d.__clientLeft,o=f-d.__clientTop;j=(n+j)*l/m-n,k=(o+k)*l/m-o,d.__computeScrollMax(l)}}if(d.__enableScrollX){j-=h*this.options.speedMultiplier;var p=d.__maxScrollLeft;(j>p||0>j)&&(d.options.bouncing?j+=h/2*this.options.speedMultiplier:j=j>p?p:0)}if(d.__enableScrollY){k-=i*this.options.speedMultiplier;var q=d.__maxScrollTop;(k>q||0>k)&&(d.options.bouncing||d.__refreshHeight&&0>k?(k+=i/2*this.options.speedMultiplier,d.__enableScrollX||null==d.__refreshHeight||(!d.__refreshActive&&k<=-d.__refreshHeight?(d.__refreshActive=!0,d.__refreshActivate&&d.__refreshActivate()):d.__refreshActive&&k>-d.__refreshHeight&&(d.__refreshActive=!1,d.__refreshDeactivate&&d.__refreshDeactivate()))):k=k>q?q:0)}g.length>60&&g.splice(0,30),g.push(j,k,b),d.__publish(j,k,l)}else{var r=d.options.locking?3:0,s=5,t=Math.abs(e-d.__initialTouchLeft),u=Math.abs(f-d.__initialTouchTop);d.__enableScrollX=d.options.scrollingX&&t>=r,d.__enableScrollY=d.options.scrollingY&&u>=r,g.push(d.__scrollLeft,d.__scrollTop,b),d.__isDragging=(d.__enableScrollX||d.__enableScrollY)&&(t>=s||u>=s),d.__isDragging&&(d.__interruptedAnimation=!1,d.__fadeScrollbars("in"))}d.__lastTouchLeft=e,d.__lastTouchTop=f,d.__lastTouchMove=b,d.__lastScale=c}},doTouchEnd:function(a){a instanceof Date&&(a=a.valueOf()),"number"!=typeof a&&(a=Date.now());var b=this;if(b.__isTracking){if(b.__isTracking=!1,b.__isDragging)if(b.__isDragging=!1,b.__isSingleTouch&&b.options.animating&&a-b.__lastTouchMove<=100){for(var c=b.__positions,d=c.length-1,e=d,f=d;f>0&&c[f]>b.__lastTouchMove-100;f-=3)e=f;if(e!==d){var g=c[d]-c[e],h=b.__scrollLeft-c[e-2],i=b.__scrollTop-c[e-1];b.__decelerationVelocityX=h/g*(1e3/60),b.__decelerationVelocityY=i/g*(1e3/60);var j=b.options.paging||b.options.snapping?4:1;(Math.abs(b.__decelerationVelocityX)>j||Math.abs(b.__decelerationVelocityY)>j)&&(b.__refreshActive||b.__startDeceleration(a))}else b.__scrollingComplete()}else a-b.__lastTouchMove>100&&b.__scrollingComplete();b.__isDecelerating||(b.__refreshActive&&b.__refreshStart?(b.__publish(b.__scrollLeft,-b.__refreshHeight,b.__zoomLevel,!0),b.__refreshStart&&b.__refreshStart()):((b.__interruptedAnimation||b.__isDragging)&&b.__scrollingComplete(),b.scrollTo(b.__scrollLeft,b.__scrollTop,!0,b.__zoomLevel),b.__refreshActive&&(b.__refreshActive=!1,b.__refreshDeactivate&&b.__refreshDeactivate()))),b.__positions.length=0}},__publish:function(a,b,e,f,g){var h=this,i=h.__isAnimating;if(i&&(gb.effect.Animate.stop(i),h.__isAnimating=!1),f&&h.options.animating){h.__scheduledLeft=a,h.__scheduledTop=b,h.__scheduledZoom=e;var j=h.__scrollLeft,k=h.__scrollTop,l=h.__zoomLevel,m=a-j,n=b-k,o=e-l,p=function(a,b,c){c&&(h.__scrollLeft=j+m*a,h.__scrollTop=k+n*a,h.__zoomLevel=l+o*a,h.__callback&&h.__callback(h.__scrollLeft,h.__scrollTop,h.__zoomLevel,g))},q=function(a){return h.__isAnimating===a},r=function(a,b,c){b===h.__isAnimating&&(h.__isAnimating=!1),(h.__didDecelerationComplete||c)&&h.__scrollingComplete(),h.options.zooming&&h.__computeScrollMax()};h.__isAnimating=gb.effect.Animate.start(p,q,r,h.options.animationDuration,i?c:d)}else h.__scheduledLeft=h.__scrollLeft=a,h.__scheduledTop=h.__scrollTop=b,h.__scheduledZoom=h.__zoomLevel=e,h.__callback&&h.__callback(a,b,e,g),h.options.zooming&&h.__computeScrollMax()},__computeScrollMax:function(a){var b=this;null==a&&(a=b.__zoomLevel),b.__maxScrollLeft=Math.max(b.__contentWidth*a-b.__clientWidth,0),b.__maxScrollTop=Math.max(b.__contentHeight*a-b.__clientHeight,0),b.__didWaitForSize||b.__maxScrollLeft||b.__maxScrollTop||(b.__didWaitForSize=!0,b.__waitForSize())},__waitForSize:function(){var a=this;clearTimeout(a.__sizerTimeout);var b=function(){a.resize(),a.options.scrollingX&&!a.__maxScrollLeft||a.options.scrollingY&&!a.__maxScrollTop};b(),a.__sizerTimeout=setTimeout(b,1e3)},__startDeceleration:function(){var a=this;if(a.options.paging){var b=Math.max(Math.min(a.__scrollLeft,a.__maxScrollLeft),0),c=Math.max(Math.min(a.__scrollTop,a.__maxScrollTop),0),d=a.__clientWidth,e=a.__clientHeight;a.__minDecelerationScrollLeft=Math.floor(b/d)*d,a.__minDecelerationScrollTop=Math.floor(c/e)*e,a.__maxDecelerationScrollLeft=Math.ceil(b/d)*d,a.__maxDecelerationScrollTop=Math.ceil(c/e)*e}else a.__minDecelerationScrollLeft=0,a.__minDecelerationScrollTop=0,a.__maxDecelerationScrollLeft=a.__maxScrollLeft,a.__maxDecelerationScrollTop=a.__maxScrollTop;var f=function(b,c,d){a.__stepThroughDeceleration(d)};a.__minVelocityToKeepDecelerating=a.options.snapping?4:.1;var g=function(){var b=Math.abs(a.__decelerationVelocityX)>=a.__minVelocityToKeepDecelerating||Math.abs(a.__decelerationVelocityY)>=a.__minVelocityToKeepDecelerating;return b||(a.__didDecelerationComplete=!0,a.options.bouncing&&a.scrollTo(Math.min(Math.max(a.__scrollLeft,0),a.__maxScrollLeft),Math.min(Math.max(a.__scrollTop,0),a.__maxScrollTop),!1)),b},h=function(){a.__isDecelerating=!1,a.__didDecelerationComplete&&a.__scrollingComplete(),a.options.paging&&a.scrollTo(a.__scrollLeft,a.__scrollTop,a.options.snapping)};a.__isDecelerating=gb.effect.Animate.start(f,g,h)},__stepThroughDeceleration:function(a){var b=this,c=b.__scrollLeft+b.__decelerationVelocityX,d=b.__scrollTop+b.__decelerationVelocityY;if(!b.options.bouncing){var e=Math.max(Math.min(b.__maxDecelerationScrollLeft,c),b.__minDecelerationScrollLeft);e!==c&&(c=e,b.__decelerationVelocityX=0);var f=Math.max(Math.min(b.__maxDecelerationScrollTop,d),b.__minDecelerationScrollTop);f!==d&&(d=f,b.__decelerationVelocityY=0)}if(a?b.__publish(c,d,b.__zoomLevel):(b.__scrollLeft=c,b.__scrollTop=d),!b.options.paging){var g=b.options.deceleration;b.__decelerationVelocityX*=g,b.__decelerationVelocityY*=g}if(b.options.bouncing){var h=0,i=0,j=b.options.penetrationDeceleration,k=b.options.penetrationAcceleration;if(c<b.__minDecelerationScrollLeft?h=b.__minDecelerationScrollLeft-c:c>b.__maxDecelerationScrollLeft&&(h=b.__maxDecelerationScrollLeft-c),d<b.__minDecelerationScrollTop?i=b.__minDecelerationScrollTop-d:d>b.__maxDecelerationScrollTop&&(i=b.__maxDecelerationScrollTop-d),0!==h){var l=h*b.__decelerationVelocityX<=b.__minDecelerationScrollLeft;l&&(b.__decelerationVelocityX+=h*j);var m=Math.abs(b.__decelerationVelocityX)<=b.__minVelocityToKeepDecelerating;(!l||m)&&(b.__decelerationVelocityX=h*k)}if(0!==i){var n=i*b.__decelerationVelocityY<=b.__minDecelerationScrollTop;n&&(b.__decelerationVelocityY+=i*j);var o=Math.abs(b.__decelerationVelocityY)<=b.__minVelocityToKeepDecelerating;(!n||o)&&(b.__decelerationVelocityY=i*k)}}},__getDistance:function(a,b){var c=b.pageX-a.pageX,d=b.pageY-a.pageY;return Math.sqrt(c*c+d*d)},__getScale:function(a,b){var c=this;return a.length>=2&&b.length>=2?c.__getDistance(b[0],b[1])/c.__getDistance(a[0],a[1]):1}}),a.scroll={isScrolling:!1,lastTop:0}}(ionic),function(a){"use strict";a.views.HeaderBar=a.views.View.inherit({initialize:function(b){this.el=b.el,a.extend(this,{alignTitle:"center"},b),this.align()},align:function(b){b||(b=this.alignTitle);var c=this.el.querySelector(".title");if(c){var d=this;a.requestAnimationFrame(function(){var e,f,g,h=d.el.childNodes,i=0,j=0,k=!1;for(e=0;e<h.length;e++)if(f=h[e],f.tagName&&"h1"==f.tagName.toLowerCase())k=!0;else{if(g=null,3==f.nodeType){var l=a.DomUtil.getTextBounds(f);l&&(g=l.width)}else 1==f.nodeType&&(g=f.offsetWidth);g&&(k?j+=g:i+=g)}var m=Math.max(i,j)+10;c.style.left=c.style.right="","center"==b?(m>10&&(c.style.left=m+"px",c.style.right=m+"px"),c.offsetWidth<c.scrollWidth&&j>0&&(c.style.right=j+5+"px")):"left"==b?(c.classList.add("title-left"),i>0&&(c.style.left=i+15+"px")):"right"==b&&(c.classList.add("title-right"),j>0&&(c.style.right=j+15+"px"))})}}})}(ionic),function(a){"use strict";var b="item",c="item-content",d="item-sliding",e="item-options",f="item-placeholder",g="item-reordering",h="item-reorder",i=function(){};i.prototype={start:function(){},drag:function(){},end:function(){},isSameItem:function(){return!1}};var j=function(a){this.dragThresholdX=a.dragThresholdX||10,this.el=a.el,this.canSwipe=a.canSwipe};j.prototype=new i,j.prototype.start=function(f){var g,h,i,j;this.canSwipe()&&(g=f.target.classList.contains(c)?f.target:f.target.classList.contains(b)?f.target.querySelector("."+c):a.DomUtil.getParentWithClass(f.target,c),g&&(g.classList.remove(d),i=parseFloat(g.style[a.CSS.TRANSFORM].replace("translate3d(","").split(",")[0])||0,h=g.parentNode.querySelector("."+e),h&&(h.classList.remove("invisible"),j=h.offsetWidth,this._currentDrag={buttons:h,buttonsWidth:j,content:g,startOffsetX:i})))
  },j.prototype.isSameItem=function(a){return a._lastDrag&&this._currentDrag?this._currentDrag.content==a._lastDrag.content:!1},j.prototype.clean=function(){var b=this._lastDrag;b&&(b.content.style[a.CSS.TRANSITION]="",b.content.style[a.CSS.TRANSFORM]="",a.requestAnimationFrame(function(){setTimeout(function(){b.buttons&&b.buttons.classList.add("invisible")},250)}))},j.prototype.drag=a.animationFrameThrottle(function(b){var c;if(this._currentDrag&&(!this._isDragging&&(Math.abs(b.gesture.deltaX)>this.dragThresholdX||Math.abs(this._currentDrag.startOffsetX)>0)&&(this._isDragging=!0),this._isDragging)){c=this._currentDrag.buttonsWidth;var d=Math.min(0,this._currentDrag.startOffsetX+b.gesture.deltaX);-c>d&&(d=Math.min(-c,-c+.4*(b.gesture.deltaX+c))),this._currentDrag.content.style[a.CSS.TRANSFORM]="translate3d("+d+"px, 0, 0)",this._currentDrag.content.style[a.CSS.TRANSITION]="none"}}),j.prototype.end=function(b,c){var d=this;if(!this._currentDrag)return void(c&&c());var e=-this._currentDrag.buttonsWidth;b.gesture.deltaX>-(this._currentDrag.buttonsWidth/2)&&("left"==b.gesture.direction&&Math.abs(b.gesture.velocityX)<.3?e=0:"right"==b.gesture.direction&&(e=0)),a.requestAnimationFrame(function(){if(0===e){d._currentDrag.content.style[a.CSS.TRANSFORM]="";var b=d._currentDrag.buttons;setTimeout(function(){b&&b.classList.add("invisible")},250)}else d._currentDrag.content.style[a.CSS.TRANSFORM]="translate3d("+e+"px, 0, 0)";d._currentDrag.content.style[a.CSS.TRANSITION]="",d._lastDrag=d._currentDrag,d._currentDrag=null,c&&c()})};var k=function(a){if(this.dragThresholdY=a.dragThresholdY||0,this.onReorder=a.onReorder,this.listEl=a.listEl,this.el=a.el,this.scrollEl=a.scrollEl,this.scrollView=a.scrollView,this.listElTrueTop=0,this.listEl.offsetParent){var b=this.listEl;do this.listElTrueTop+=b.offsetTop,b=b.offsetParent;while(b)}};k.prototype=new i,k.prototype._moveElement=function(b){var c=b.gesture.center.pageY+this.scrollView.getValues().top-this._currentDrag.elementHeight/2-this.listElTrueTop;this.el.style[a.CSS.TRANSFORM]="translate3d(0, "+c+"px, 0)"},k.prototype.start=function(b){var c=a.DomUtil.getChildIndex(this.el,this.el.nodeName.toLowerCase()),d=this.el.scrollHeight,e=this.el.cloneNode(!0);e.classList.add(f),this.el.parentNode.insertBefore(e,this.el),this.el.classList.add(g),this._currentDrag={elementHeight:d,startIndex:c,placeholder:e,scrollHeight:scroll,list:e.parentNode},this._moveElement(b)},k.prototype.drag=a.animationFrameThrottle(function(b){var c=this;if(this._currentDrag){var d=0,e=b.gesture.center.pageY,f=this.listElTrueTop;if(this.scrollView){var g=this.scrollView.__container;d=this.scrollView.getValues().top;var h=g.offsetTop,i=h-e+this._currentDrag.elementHeight/2,j=e+this._currentDrag.elementHeight/2-h-g.offsetHeight;b.gesture.deltaY<0&&i>0&&d>0&&(this.scrollView.scrollBy(null,-i),a.requestAnimationFrame(function(){c.drag(b)})),b.gesture.deltaY>0&&j>0&&d<this.scrollView.getScrollMax().top&&(this.scrollView.scrollBy(null,j),a.requestAnimationFrame(function(){c.drag(b)}))}!this._isDragging&&Math.abs(b.gesture.deltaY)>this.dragThresholdY&&(this._isDragging=!0),this._isDragging&&(this._moveElement(b),this._currentDrag.currentY=d+e-f)}}),k.prototype._getReorderIndex=function(){for(var a,b=this,c=(this._currentDrag.placeholder,Array.prototype.slice.call(this._currentDrag.placeholder.parentNode.children).filter(function(a){return a.nodeName===b.el.nodeName&&a!==b.el})),d=this._currentDrag.currentY,e=0,f=c.length;f>e;e++)if(a=c[e],e===f-1){if(d>a.offsetTop)return e}else if(0===e){if(d<a.offsetTop+a.offsetHeight)return e}else if(d>a.offsetTop-a.offsetHeight/2&&d<a.offsetTop+1.5*a.offsetHeight)return e;return this._currentDrag.startIndex},k.prototype.end=function(b,c){if(!this._currentDrag)return void(c&&c());var d=this._currentDrag.placeholder,e=this._getReorderIndex();this.el.classList.remove(g),this.el.style[a.CSS.TRANSFORM]="",d.parentNode.insertBefore(this.el,d),d.parentNode.removeChild(d),this.onReorder&&this.onReorder(this.el,this._currentDrag.startIndex,e),this._currentDrag=null,c&&c()},a.views.ListView=a.views.View.inherit({initialize:function(b){var c=this;b=a.extend({onReorder:function(){},virtualRemoveThreshold:-200,virtualAddThreshold:200,canSwipe:function(){return!0}},b),a.extend(this,b),!this.itemHeight&&this.listEl&&(this.itemHeight=this.listEl.children[0]&&parseInt(this.listEl.children[0].style.height,10)),this.onRefresh=b.onRefresh||function(){},this.onRefreshOpening=b.onRefreshOpening||function(){},this.onRefreshHolding=b.onRefreshHolding||function(){},window.ionic.onGesture("release",function(a){c._handleEndDrag(a)},this.el),window.ionic.onGesture("drag",function(a){c._handleDrag(a)},this.el),this._initDrag()},stopRefreshing:function(){var a=this.el.querySelector(".list-refresher");a.style.height="0px"},didScroll:function(a){if(this.isVirtual){var b=this.itemHeight,c=(this.listEl.children.length,a.target.scrollHeight),d=this.el.parentNode.offsetHeight,e=(a.scrollTop,Math.max(0,a.scrollTop+this.virtualRemoveThreshold)),f=Math.min(c,Math.abs(a.scrollTop)+d+this.virtualAddThreshold),g=Math.floor((f-e)/b),h=parseInt(Math.abs(e/b),10),i=parseInt(Math.abs(f/b),10);this._virtualItemsToRemove=Array.prototype.slice.call(this.listEl.children,0,h);{Array.prototype.slice.call(this.listEl.children,h,h+g)}this.renderViewport&&this.renderViewport(e,f,h,i)}},didStopScrolling:function(){if(this.isVirtual)for(var a=0;a<this._virtualItemsToRemove.length;a++){{this._virtualItemsToRemove[a]}this.didHideItem&&this.didHideItem(a)}},clearDragEffects:function(){this._lastDragOp&&(this._lastDragOp.clean&&this._lastDragOp.clean(),this._lastDragOp=null)},_initDrag:function(){this._lastDragOp=this._dragOp,this._dragOp=null},_getItem:function(a){for(;a;){if(a.classList&&a.classList.contains(b))return a;a=a.parentNode}return null},_startDrag:function(b){var c=this;this._isDragging=!1;var d,e=this._lastDragOp;!a.DomUtil.getParentOrSelfWithClass(b.target,h)||"up"!=b.gesture.direction&&"down"!=b.gesture.direction?!this._didDragUpOrDown&&("left"==b.gesture.direction||"right"==b.gesture.direction)&&Math.abs(b.gesture.deltaX)>5&&(d=this._getItem(b.target),d&&d.querySelector(".item-options")&&(this._dragOp=new j({el:this.el,canSwipe:this.canSwipe}),this._dragOp.start(b),b.preventDefault())):(d=this._getItem(b.target),d&&(this._dragOp=new k({listEl:this.el,el:d,scrollEl:this.scrollEl,scrollView:this.scrollView,onReorder:function(a,b,d){c.onReorder&&c.onReorder(a,b,d)}}),this._dragOp.start(b),b.preventDefault())),e&&this._dragOp&&!this._dragOp.isSameItem(e)&&b.defaultPrevented&&e.clean&&e.clean()},_handleEndDrag:function(a){var b=this;this._didDragUpOrDown=!1,this._dragOp&&this._dragOp.end(a,function(){b._initDrag()})},_handleDrag:function(a){Math.abs(a.gesture.deltaY)>5&&(this._didDragUpOrDown=!0),this.isDragging||this._dragOp||this._startDrag(a),this._dragOp&&(a.gesture.srcEvent.preventDefault(),this._dragOp.drag(a))}})}(ionic),function(a){"use strict";a.views.Modal=a.views.View.inherit({initialize:function(b){b=a.extend({focusFirstInput:!1,unfocusOnHide:!0,focusFirstDelay:600,backdropClickToClose:!0,hardwareBackButtonClose:!0},b),a.extend(this,b),this.el=b.el},show:function(){var a=this;a.focusFirstInput&&window.setTimeout(function(){var b=a.el.querySelector("input, textarea");b&&b.focus&&b.focus()},a.focusFirstDelay)},hide:function(){if(this.unfocusOnHide){var a=this.el.querySelectorAll("input, textarea");window.setTimeout(function(){for(var b=0;b<a.length;b++)a[b].blur&&a[b].blur()})}}})}(ionic),function(a){"use strict";a.views.SideMenu=a.views.View.inherit({initialize:function(a){this.el=a.el,this.isEnabled="undefined"==typeof a.isEnabled?!0:a.isEnabled,this.setWidth(a.width)},getFullWidth:function(){return this.width},setWidth:function(a){this.width=a,this.el.style.width=a+"px"},setIsEnabled:function(a){this.isEnabled=a},bringUp:function(){"0"!==this.el.style.zIndex&&(this.el.style.zIndex="0")},pushDown:function(){"-1"!==this.el.style.zIndex&&(this.el.style.zIndex="-1")}}),a.views.SideMenuContent=a.views.View.inherit({initialize:function(b){a.extend(this,{animationClass:"menu-animated",onDrag:function(){},onEndDrag:function(){}},b),a.onGesture("drag",a.proxy(this._onDrag,this),this.el),a.onGesture("release",a.proxy(this._onEndDrag,this),this.el)},_onDrag:function(a){this.onDrag&&this.onDrag(a)},_onEndDrag:function(a){this.onEndDrag&&this.onEndDrag(a)},disableAnimation:function(){this.el.classList.remove(this.animationClass)},enableAnimation:function(){this.el.classList.add(this.animationClass)},getTranslateX:function(){return parseFloat(this.el.style[a.CSS.TRANSFORM].replace("translate3d(","").split(",")[0])},setTranslateX:a.animationFrameThrottle(function(b){this.el.style[a.CSS.TRANSFORM]="translate3d("+b+"px, 0, 0)"})})}(ionic),function(a){"use strict";a.views.Slider=a.views.View.inherit({initialize:function(a){function b(){q=u.children,t=q.length,q.length<2&&(a.continuous=!1),o.transitions&&a.continuous&&q.length<3&&(u.appendChild(q[0].cloneNode(!0)),u.appendChild(u.children[1].cloneNode(!0)),q=u.children),r=new Array(q.length),s=p.offsetWidth||p.getBoundingClientRect().width,u.style.width=q.length*s+"px";for(var b=q.length;b--;){var c=q[b];c.style.width=s+"px",c.setAttribute("data-index",b),o.transitions&&(c.style.left=b*-s+"px",g(b,v>b?-s:b>v?s:0,0))}a.continuous&&o.transitions&&(g(e(v-1),-s,0),g(e(v+1),s,0)),o.transitions||(u.style.left=v*-s+"px"),p.style.visibility="visible",a.slidesChanged&&a.slidesChanged()}function c(){a.continuous?f(v-1):v&&f(v-1)}function d(){a.continuous?f(v+1):v<q.length-1&&f(v+1)}function e(a){return(q.length+a%q.length)%q.length}function f(b,c){if(v!=b){if(o.transitions){var d=Math.abs(v-b)/(v-b);if(a.continuous){var f=d;d=-r[e(b)]/s,d!==f&&(b=-d*q.length+b)}for(var h=Math.abs(v-b)-1;h--;)g(e((b>v?b:v)-h-1),s*d,0);b=e(b),g(v,s*d,c||w),g(b,0,c||w),a.continuous&&g(e(b-d),-(s*d),0)}else b=e(b),i(v*-s,b*-s,c||w);v=b,n(a.callback&&a.callback(v,q[v]))}}function g(a,b,c){h(a,b,c),r[a]=b}function h(a,b,c){var d=q[a],e=d&&d.style;e&&(e.webkitTransitionDuration=e.MozTransitionDuration=e.msTransitionDuration=e.OTransitionDuration=e.transitionDuration=c+"ms",e.webkitTransform="translate("+b+"px,0)translateZ(0)",e.msTransform=e.MozTransform=e.OTransform="translateX("+b+"px)")}function i(b,c,d){if(!d)return void(u.style.left=c+"px");var e=+new Date,f=setInterval(function(){var g=+new Date-e;return g>d?(u.style.left=c+"px",z&&j(),a.transitionEnd&&a.transitionEnd.call(event,v,q[v]),void clearInterval(f)):void(u.style.left=(c-b)*(Math.floor(g/d*100)/100)+b+"px")},4)}function j(){x=setTimeout(d,z)}function k(){z=a.auto||0,clearTimeout(x)}var l=this,m=function(){},n=function(a){setTimeout(a||m,0)},o={addEventListener:!!window.addEventListener,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,transitions:function(a){var b=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(var c in b)if(void 0!==a.style[b[c]])return!0;return!1}(document.createElement("swipe"))},p=a.el;if(p){var q,r,s,t,u=p.children[0];a=a||{};var v=parseInt(a.startSlide,10)||0,w=a.speed||300;a.continuous=void 0!==a.continuous?a.continuous:!0;var x,y,z=a.auto||0,A={},B={},C={handleEvent:function(c){switch(("mousedown"==c.type||"mouseup"==c.type||"mousemove"==c.type)&&(c.touches=[{pageX:c.pageX,pageY:c.pageY}]),c.type){case"mousedown":this.start(c);break;case"touchstart":this.start(c);break;case"touchmove":this.touchmove(c);break;case"mousemove":this.touchmove(c);break;case"touchend":n(this.end(c));break;case"mouseup":n(this.end(c));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":n(this.transitionEnd(c));break;case"resize":n(b)}a.stopPropagation&&c.stopPropagation()},start:function(a){var b=a.touches[0];A={x:b.pageX,y:b.pageY,time:+new Date},y=void 0,B={},o.touch?(u.addEventListener("touchmove",this,!1),u.addEventListener("touchend",this,!1)):(u.addEventListener("mousemove",this,!1),u.addEventListener("mouseup",this,!1),document.addEventListener("mouseup",this,!1))},touchmove:function(b){if(!(b.touches.length>1||b.scale&&1!==b.scale||l.slideIsDisabled)){a.disableScroll&&b.preventDefault();var c=b.touches[0];B={x:c.pageX-A.x,y:c.pageY-A.y},"undefined"==typeof y&&(y=!!(y||Math.abs(B.x)<Math.abs(B.y))),y||(b.preventDefault(),k(),a.continuous?(h(e(v-1),B.x+r[e(v-1)],0),h(v,B.x+r[v],0),h(e(v+1),B.x+r[e(v+1)],0)):(B.x=B.x/(!v&&B.x>0||v==q.length-1&&B.x<0?Math.abs(B.x)/s+1:1),h(v-1,B.x+r[v-1],0),h(v,B.x+r[v],0),h(v+1,B.x+r[v+1],0)))}},end:function(){var b=+new Date-A.time,c=Number(b)<250&&Math.abs(B.x)>20||Math.abs(B.x)>s/2,d=!v&&B.x>0||v==q.length-1&&B.x<0;a.continuous&&(d=!1);var f=B.x<0;y||(c&&!d?(f?(a.continuous?(g(e(v-1),-s,0),g(e(v+2),s,0)):g(v-1,-s,0),g(v,r[v]-s,w),g(e(v+1),r[e(v+1)]-s,w),v=e(v+1)):(a.continuous?(g(e(v+1),s,0),g(e(v-2),-s,0)):g(v+1,s,0),g(v,r[v]+s,w),g(e(v-1),r[e(v-1)]+s,w),v=e(v-1)),a.callback&&a.callback(v,q[v])):a.continuous?(g(e(v-1),-s,w),g(v,0,w),g(e(v+1),s,w)):(g(v-1,-s,w),g(v,0,w),g(v+1,s,w))),o.touch?(u.removeEventListener("touchmove",C,!1),u.removeEventListener("touchend",C,!1)):(u.removeEventListener("mousemove",C,!1),u.removeEventListener("mouseup",C,!1),document.removeEventListener("mouseup",C,!1))},transitionEnd:function(b){parseInt(b.target.getAttribute("data-index"),10)==v&&(z&&j(),a.transitionEnd&&a.transitionEnd.call(b,v,q[v]))}};this.update=function(){setTimeout(b)},this.setup=function(){b()},this.enableSlide=function(a){return arguments.length&&(this.slideIsDisabled=!a),!this.slideIsDisabled},this.slide=function(a,b){k(),f(a,b)},this.prev=this.previous=function(){k(),c()},this.next=function(){k(),d()},this.stop=function(){k()},this.start=function(){j()},this.currentIndex=function(){return v},this.slidesCount=function(){return t},this.kill=function(){k(),u.style.width="",u.style.left="";for(var a=q.length;a--;){var b=q[a];b.style.width="",b.style.left="",o.transitions&&h(a,0,0)}o.addEventListener?(u.removeEventListener("touchstart",C,!1),u.removeEventListener("webkitTransitionEnd",C,!1),u.removeEventListener("msTransitionEnd",C,!1),u.removeEventListener("oTransitionEnd",C,!1),u.removeEventListener("otransitionend",C,!1),u.removeEventListener("transitionend",C,!1),window.removeEventListener("resize",C,!1)):window.onresize=null},this.load=function(){b(),z&&j(),o.addEventListener?(o.touch?u.addEventListener("touchstart",C,!1):u.addEventListener("mousedown",C,!1),o.transitions&&(u.addEventListener("webkitTransitionEnd",C,!1),u.addEventListener("msTransitionEnd",C,!1),u.addEventListener("oTransitionEnd",C,!1),u.addEventListener("otransitionend",C,!1),u.addEventListener("transitionend",C,!1)),window.addEventListener("resize",C,!1)):window.onresize=function(){b()}}}}})}(ionic),function(a){"use strict";a.views.Toggle=a.views.View.inherit({initialize:function(b){var c=this;this.el=b.el,this.checkbox=b.checkbox,this.track=b.track,this.handle=b.handle,this.openPercent=-1,this.onChange=b.onChange||function(){},this.triggerThreshold=b.triggerThreshold||20,this.dragStartHandler=function(a){c.dragStart(a)},this.dragHandler=function(a){c.drag(a)},this.holdHandler=function(a){c.hold(a)},this.releaseHandler=function(a){c.release(a)},this.dragStartGesture=a.onGesture("dragstart",this.dragStartHandler,this.el),this.dragGesture=a.onGesture("drag",this.dragHandler,this.el),this.dragHoldGesture=a.onGesture("hold",this.holdHandler,this.el),this.dragReleaseGesture=a.onGesture("release",this.releaseHandler,this.el)},destroy:function(){a.offGesture(this.dragStartGesture,"dragstart",this.dragStartGesture),a.offGesture(this.dragGesture,"drag",this.dragGesture),a.offGesture(this.dragHoldGesture,"hold",this.holdHandler),a.offGesture(this.dragReleaseGesture,"release",this.releaseHandler)},tap:function(){"disabled"!==this.el.getAttribute("disabled")&&this.val(!this.checkbox.checked)},dragStart:function(a){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},a.gesture.srcEvent.preventDefault(),this.hold(a))},drag:function(b){var c=this;this._dragInfo&&(b.gesture.srcEvent.preventDefault(),a.requestAnimationFrame(function(){if(c._dragInfo){var a=(c.track.offsetLeft+c.handle.offsetWidth/2,c.track.offsetLeft+c.track.offsetWidth-c.handle.offsetWidth/2,b.gesture.deltaX,b.gesture.touches[0].pageX-c._dragInfo.left),d=c._dragInfo.width-c.triggerThreshold;c._dragInfo.initialState?a<c.triggerThreshold?c.setOpenPercent(0):a>c._dragInfo.triggerX&&c.setOpenPercent(100):a<c._dragInfo.triggerX?c.setOpenPercent(0):a>d&&c.setOpenPercent(100)}}))},endDrag:function(){this._dragInfo=null},hold:function(){this.el.classList.add("dragging")},release:function(a){this.el.classList.remove("dragging"),this.endDrag(a)},setOpenPercent:function(b){if(this.openPercent<0||b<this.openPercent-3||b>this.openPercent+3)if(this.openPercent=b,0===b)this.val(!1);else if(100===b)this.val(!0);else{var c=Math.round(b/100*this.track.offsetWidth-this.handle.offsetWidth);c=1>c?0:c,this.handle.style[a.CSS.TRANSFORM]="translate3d("+c+"px,0,0)"}},val:function(b){return(b===!0||b===!1)&&(""!==this.handle.style[a.CSS.TRANSFORM]&&(this.handle.style[a.CSS.TRANSFORM]=""),this.checkbox.checked=b,this.openPercent=b?100:0,this.onChange&&this.onChange()),this.checkbox.checked}})}(ionic),function(a){"use strict";a.controllers.ViewController=function(){this.initialize.apply(this,arguments)},a.controllers.ViewController.inherit=a.inherit,a.extend(a.controllers.ViewController.prototype,{initialize:function(){},destroy:function(){}})}(window.ionic),function(a){"use strict";a.controllers.SideMenuController=a.controllers.ViewController.inherit({initialize:function(a){var b=this;this.left=a.left,this.right=a.right,this.content=a.content,this.dragThresholdX=a.dragThresholdX||10,this._rightShowing=!1,this._leftShowing=!1,this._isDragging=!1,this.content&&(this.content.onDrag=function(a){b._handleDrag(a)},this.content.onEndDrag=function(a){b._endDrag(a)})},setContent:function(a){var b=this;this.content=a,this.content.onDrag=function(a){b._handleDrag(a)},this.content.endDrag=function(a){b._endDrag(a)}},isOpenLeft:function(){return this.getOpenAmount()>0},isOpenRight:function(){return this.getOpenAmount()<0},toggleLeft:function(a){var b=this.getOpenAmount();0===arguments.length&&(a=0>=b),this.content.enableAnimation(),this.openPercentage(a?100:0)},toggleRight:function(a){var b=this.getOpenAmount();0===arguments.length&&(a=b>=0),this.content.enableAnimation(),this.openPercentage(a?-100:0)},close:function(){this.openPercentage(0)},getOpenAmount:function(){return this.content&&this.content.getTranslateX()||0},getOpenRatio:function(){var a=this.getOpenAmount();return a>=0?a/this.left.width:a/this.right.width},isOpen:function(){return 0!==this.getOpenAmount()},getOpenPercentage:function(){return 100*this.getOpenRatio()},openPercentage:function(a){var b=a/100;if(this.left&&a>=0)this.openAmount(this.left.width*b);else if(this.right&&0>a){{this.right.width}this.openAmount(this.right.width*b)}0!==a?document.body.classList.add("menu-open"):document.body.classList.remove("menu-open")},openAmount:function(a){var b=this.left&&this.left.width||0,c=this.right&&this.right.width||0;return(this.left&&this.left.isEnabled||!(a>0))&&(this.right&&this.right.isEnabled||!(0>a))?this._leftShowing&&a>b?void this.content.setTranslateX(b):this._rightShowing&&-c>a?void this.content.setTranslateX(-c):(this.content.setTranslateX(a),void(a>=0?(this._leftShowing=!0,this._rightShowing=!1,a>0&&(this.right&&this.right.pushDown&&this.right.pushDown(),this.left&&this.left.bringUp&&this.left.bringUp())):(this._rightShowing=!0,this._leftShowing=!1,this.right&&this.right.bringUp&&this.right.bringUp(),this.left&&this.left.pushDown&&this.left.pushDown()))):void this.content.setTranslateX(0)},snapToRest:function(a){this.content.enableAnimation(),this._isDragging=!1;var b=this.getOpenRatio();if(0===b)return void this.openPercentage(0);var c=.3,d=a.gesture.velocityX,e=a.gesture.direction;this.openPercentage(b>0&&.5>b&&"right"==e&&c>d?0:b>.5&&"left"==e&&c>d?100:0>b&&b>-.5&&"left"==e&&c>d?0:.5>b&&"right"==e&&c>d?-100:"right"==e&&b>=0&&(b>=.5||d>c)?100:"left"==e&&0>=b&&(-.5>=b||d>c)?-100:0)},_endDrag:function(a){this._isDragging&&this.snapToRest(a),this._startX=null,this._lastX=null,this._offsetX=null},_handleDrag:function(a){this._startX?this._lastX=a.gesture.touches[0].pageX:(this._startX=a.gesture.touches[0].pageX,this._lastX=this._startX),!this._isDragging&&Math.abs(this._lastX-this._startX)>this.dragThresholdX&&(this._startX=this._lastX,this._isDragging=!0,this.content.disableAnimation(),this._offsetX=this.getOpenAmount()),this._isDragging&&this.openAmount(this._offsetX+(this._lastX-this._startX))}})}(ionic)}(),function(){function a(a){var b,c=typeof a;return"object"==c&&null!==a?"function"==typeof(b=a.$$hashKey)?b=a.$$hashKey():void 0===b&&(b=a.$$hashKey=ionic.Utils.nextUid()):b=a,c+":"+b}function b(a){if(a.$root!==a){var b=a.$parent;a.$$disconnected=!0,b.$$childHead===a&&(b.$$childHead=a.$$nextSibling),b.$$childTail===a&&(b.$$childTail=a.$$prevSibling),a.$$prevSibling&&(a.$$prevSibling.$$nextSibling=a.$$nextSibling),a.$$nextSibling&&(a.$$nextSibling.$$prevSibling=a.$$prevSibling),a.$$nextSibling=a.$$prevSibling=null}}function c(a){if(a.$root!==a&&a.$$disconnected){var b=a.$parent;a.$$disconnected=!1,a.$$prevSibling=b.$$childTail,b.$$childHead?(b.$$childTail.$$nextSibling=a,b.$$childTail=a):b.$$childHead=b.$$childTail=a}}function d(a){return["$log",function(b){function c(a){this.handle=a}var d=this,e=this._instances=[];this._registerInstance=function(a,b){return a.$$delegateHandle=b,e.push(a),function(){var b=e.indexOf(a);-1!==b&&e.splice(b,1)}},this.$getByHandle=function(a){return a?new c(a):d},a.forEach(function(a){c.prototype[a]=function(){var c,d,f=this.handle,g=arguments,h=0;return e.forEach(function(b){b.$$delegateHandle===f&&(h++,d=b[a].apply(b,g),1===h&&(c=d))}),h?c:b.warn('Delegate for handle "'+this.handle+'" could not find a corresponding element with delegate-handle="'+this.handle+'"! '+a+"() was not called!\nPossible cause: If you are calling "+a+'() immediately, and your element with delegate-handle="'+this.handle+'" is a child of your controller, then your element may not be compiled yet. Put a $timeout around your call to '+a+"() and try again.")},d[a]=function(){var b,c,d=arguments;return e.forEach(function(e,f){c=e[a].apply(e,d),0===f&&(b=c)}),b}})}]}function e(a){return[function(){return{priority:"99",link:function(b,c,d,e){e&&d.$observe(a,function(a){c[0][d]="",setTimeout(function(){c[0][d]=a})})}}}]}function f(a){return["$ionicGesture","$parse",function(b,c){var d=a.substr(2).toLowerCase();return function(e,f,g){var h=c(g[a]),i=function(a){e.$apply(function(){h(e,{$event:a})})},j=b.on(d,i,f);e.$on("$destroy",function(){b.off(j,d,i)})}}]}function g(){return["$ionicScrollDelegate",function(a){return{restrict:"E",link:function(b,c,d){function e(b){for(var d=3,e=b.target;d--&&e;){if(e.classList.contains("button")||e.tagName.match(/input|textarea|select/i)||e.isContentEditable)return;e=e.parentNode}var f=b.gesture&&b.gesture.touches[0]||b.detail.touches[0],g=c[0].getBoundingClientRect();ionic.DomUtil.rectContains(f.pageX,f.pageY,g.left,g.top-20,g.left+g.width,g.top+g.height)&&a.scrollTop(!0)}"true"!=d.noTapScroll&&(ionic.on("tap",e,c[0]),b.$on("$destroy",function(){ionic.off("tap",e,c[0])}))}}}]}function h(a){return[function(){return{restrict:"E",compile:function(b){function c(b,c,d){var e=(new ionic.views.HeaderBar({el:c[0],alignTitle:d.alignTitle||"center"}),c[0]);a?(b.$watch(function(){return e.className},function(a){var c=-1===a.indexOf("ng-hide"),d=-1!==a.indexOf("bar-subheader");b.$hasHeader=c&&!d,b.$hasSubheader=c&&d}),b.$on("$destroy",function(){delete b.$hasHeader,delete b.$hasSubheader})):(b.$watch(function(){return e.className},function(a){var c=-1===a.indexOf("ng-hide"),d=-1!==a.indexOf("bar-subfooter");b.$hasFooter=c&&!d,b.$hasSubfooter=c&&d}),b.$on("$destroy",function(){delete b.$hasFooter,delete b.$hasSubfooter}),b.$watch("$hasTabs",function(a){c.toggleClass("has-tabs",!!a)}))}b.addClass(a?"bar bar-header":"bar bar-footer");var d=b[0].parentNode;return d.querySelector(".tabs-top")&&b.addClass("has-tabs-top"),{pre:c}}}}]}function i(a){return a.clientHeight}function j(a){a.stopPropagation()}var k={method:function(a,b,c){var d=!1;return function(){return d||(d=!0,b(a)),c.apply(this,arguments)}},field:function(a,b,c,d,e){var f=!1,g=function(){return f||(f=!0,b(a)),e},h=function(c){return f||(f=!0,b(a)),e=c,c};Object.defineProperty(c,d,{get:g,set:h,enumerable:!0})}},l=angular.module("ionic",["ngAnimate","ngSanitize","ui.router"]),m=angular.extend,n=angular.forEach,o=angular.isDefined,p=angular.isString,q=angular.element;l.factory("$ionicActionSheet",["$rootScope","$document","$compile","$animate","$timeout","$ionicTemplateLoader","$ionicPlatform",function(a,b,c,d,e,f,g){function h(f){var h=a.$new(!0);angular.extend(h,{cancel:angular.noop,destructiveButtonClicked:angular.noop,buttonClicked:angular.noop,$deregisterBackButton:angular.noop,buttons:[],cancelOnStateChange:!0},f||{});var i=h.element=c('<ion-action-sheet buttons="buttons"></ion-action-sheet>')(h),j=q(i[0].querySelector(".action-sheet-wrapper")),k=h.cancelOnStateChange?a.$on("$stateChangeSuccess",function(){h.cancel()}):angular.noop;return h.removeSheet=function(a){h.removed||(h.removed=!0,j.removeClass("action-sheet-up"),b[0].body.classList.remove("action-sheet-open"),h.$deregisterBackButton(),k(),d.removeClass(i,"active",function(){h.$destroy(),i.remove(),h.cancel.$scope=null,(a||angular.noop)()}))},h.showSheet=function(a){h.removed||(b[0].body.appendChild(i[0]),b[0].body.classList.add("action-sheet-open"),d.addClass(i,"active",function(){h.removed||(a||angular.noop)()}),e(function(){h.removed||j.addClass("action-sheet-up")},20,!1))},h.$deregisterBackButton=g.registerBackButtonAction(function(){e(h.cancel)},y),h.cancel=function(){h.removeSheet(f.cancel)},h.buttonClicked=function(a){f.buttonClicked(a,f.buttons[a])===!0&&h.removeSheet()},h.destructiveButtonClicked=function(){f.destructiveButtonClicked()===!0&&h.removeSheet()},h.showSheet(),h.cancel.$scope=h,h.cancel}return{show:h}}]),q.prototype.addClass=function(a){var b,c,d,e,f,g;if(a&&"ng-scope"!=a&&"ng-isolate-scope"!=a)for(b=0;b<this.length;b++)if(e=this[b],e.setAttribute)if(a.indexOf(" ")<0)e.classList.add(a);else{for(g=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),f=a.split(" "),c=0;c<f.length;c++)d=f[c].trim(),-1===g.indexOf(" "+d+" ")&&(g+=d+" ");e.setAttribute("class",g.trim())}return this},q.prototype.removeClass=function(a){var b,c,d,e,f;if(a)for(b=0;b<this.length;b++)if(f=this[b],f.getAttribute)if(a.indexOf(" ")<0)f.classList.remove(a);else for(d=a.split(" "),c=0;c<d.length;c++)e=d[c],f.setAttribute("class",(" "+(f.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+e.trim()+" "," ").trim());return this},l.factory("$ionicBackdrop",["$document","$timeout",function(a,b){function c(){1===++g&&(f.addClass("visible"),ionic.requestAnimationFrame(function(){g&&f.addClass("active")}))}function d(){0===--g&&(f.removeClass("active"),b(function(){!g&&f.removeClass("visible")},400,!1))}function e(){return f}var f=q('<div class="backdrop">'),g=0;return a[0].body.appendChild(f[0]),{retain:c,release:d,getElement:e,_element:f}}]),l.factory("$ionicBind",["$parse","$interpolate",function(a,b){var c=/^\s*([@=&])(\??)\s*(\w*)\s*$/;return function(d,e,f){n(f||{},function(f,g){var h,i,j=f.match(c)||[],k=j[3]||g,l=j[1];switch(l){case"@":if(!e[k])return;e.$observe(k,function(a){d[g]=a}),e[k]&&(d[g]=b(e[k])(d));break;case"=":if(!e[k])return;i=d.$watch(e[k],function(a){d[g]=a}),d.$on("$destroy",i);break;case"&":if(e[k]&&e[k].match(RegExp(g+"(.*?)")))throw new Error('& expression binding "'+g+'" looks like it will recursively call "'+e[k]+'" and cause a stack overflow! Please choose a different scopeName.');h=a(e[k]),d[g]=function(a){return h(d,a)}}})}}]),l.factory("$collectionDataSource",["$cacheFactory","$parse","$rootScope",function(d,e,f){function g(a){a.css(ionic.CSS.TRANSFORM,"translate3d(-2000px,-2000px,0)")}function h(b){var c=this;if(this.scope=b.scope,this.transcludeFn=b.transcludeFn,this.transcludeParent=b.transcludeParent,this.element=b.element,this.keyExpr=b.keyExpr,this.listExpr=b.listExpr,this.trackByExpr=b.trackByExpr,this.heightGetter=b.heightGetter,this.widthGetter=b.widthGetter,this.dimensions=[],this.data=[],this.trackByExpr){var d=e(this.trackByExpr),f={$id:a};this.itemHashGetter=function(a,b){return f[c.keyExpr]=b,f.$index=a,d(c.scope,f)}}else this.itemHashGetter=function(b,c){return a(c)};this.attachedItems={},this.BACKUP_ITEMS_LENGTH=10,this.backupItemsArray=[]}return h.prototype={setup:function(){for(var a=0;a<this.BACKUP_ITEMS_LENGTH;a++)this.detachItem(this.createItem())},destroy:function(){this.dimensions.length=0,this.data=null,this.backupItemsArray.length=0,this.attachedItems={}},calculateDataDimensions:function(){var a={};this.dimensions=this.data.map(function(b,c){return a[this.keyExpr]=b,a.$index=c,{width:this.widthGetter(this.scope,a),height:this.heightGetter(this.scope,a)}},this),this.dimensions=this.beforeSiblings.concat(this.dimensions).concat(this.afterSiblings),this.dataStartIndex=this.beforeSiblings.length},createItem:function(){var a={};return a.scope=this.scope.$new(),this.transcludeFn(a.scope,function(b){b.css("position","absolute"),a.element=b}),this.transcludeParent.append(a.element),a},getItem:function(a){return(item=this.attachedItems[a])||((item=this.backupItemsArray.pop())?c(item.scope):item=this.createItem()),item},attachItemAtIndex:function(a){var b=this.data[a];if(a<this.dataStartIndex)return this.beforeSiblings[a];if(a>this.data.length)return this.afterSiblings[a-this.data.length-this.dataStartIndex];var c=this.itemHashGetter(a,b),d=this.getItem(c);return(d.scope.$index!==a||d.scope[this.keyExpr]!==b)&&(d.scope[this.keyExpr]=b,d.scope.$index=a,d.scope.$first=0===a,d.scope.$last=a===this.getLength()-1,d.scope.$middle=!(d.scope.$first||d.scope.$last),d.scope.$odd=!(d.scope.$even=0===(1&a)),f.$$phase||d.scope.$digest()),d.hash=c,this.attachedItems[c]=d,d},destroyItem:function(a){a.element.remove(),a.scope.$destroy(),a.scope=null,a.element=null},detachItem:function(a){delete this.attachedItems[a.hash],a.isOutside?g(a.element):this.backupItemsArray.length>=this.BACKUP_ITEMS_LENGTH?this.destroyItem(a):(this.backupItemsArray.push(a),g(a.element),b(a.scope))},getLength:function(){return this.dimensions&&this.dimensions.length||0},setData:function(a,b,c){this.data=a||[],this.beforeSiblings=b||[],this.afterSiblings=c||[],this.calculateDataDimensions(),this.afterSiblings.forEach(function(a){a.element.css({position:"absolute",top:"0",left:"0"}),g(a.element)})}},h}]),l.factory("$collectionRepeatManager",["$rootScope","$timeout",function(){function a(a){function b(){return c.viewportSize}var c=this;this.dataSource=a.dataSource,this.element=a.element,this.scrollView=a.scrollView,this.isVertical=!!this.scrollView.options.scrollingY,this.renderedItems={},this.dimensions=[],this.setCurrentIndex(0),this.scrollView.__$callback=this.scrollView.__callback,this.scrollView.__callback=angular.bind(this,this.renderScroll),this.isVertical?(this.scrollView.options.getContentHeight=b,this.scrollValue=function(){return this.scrollView.__scrollTop},this.scrollMaxValue=function(){return this.scrollView.__maxScrollTop},this.scrollSize=function(){return this.scrollView.__clientHeight},this.secondaryScrollSize=function(){return this.scrollView.__clientWidth},this.transformString=function(a,b){return"translate3d("+b+"px,"+a+"px,0)"},this.primaryDimension=function(a){return a.height},this.secondaryDimension=function(a){return a.width}):(this.scrollView.options.getContentWidth=b,this.scrollValue=function(){return this.scrollView.__scrollLeft},this.scrollMaxValue=function(){return this.scrollView.__maxScrollLeft
  },this.scrollSize=function(){return this.scrollView.__clientWidth},this.secondaryScrollSize=function(){return this.scrollView.__clientHeight},this.transformString=function(a,b){return"translate3d("+a+"px,"+b+"px,0)"},this.primaryDimension=function(a){return a.width},this.secondaryDimension=function(a){return a.height})}a.prototype={destroy:function(){this.renderedItems={},this.render=angular.noop,this.calculateDimensions=angular.noop,this.dimensions=[]},calculateDimensions:function(){function a(a){var f={primarySize:this.primaryDimension(a),secondarySize:Math.min(this.secondaryDimension(a),e)};return b&&(d+=b.secondarySize,b.primaryPos===c&&d+f.secondarySize>e&&(d=0,c+=b.primarySize)),f.primaryPos=c,f.secondaryPos=d,b=f,f}var b,c=0,d=0,e=this.secondaryScrollSize();this.dataSource.beforeSiblings&&this.dataSource.beforeSiblings.forEach(a,this);var f=c+(b?b.primarySize:0);c=d=0,b=null;var g=this.dataSource.dimensions.map(a,this),h=c+(b?b.primarySize:0);return{beforeSize:f,totalSize:h,dimensions:g}},resize:function(){var a=this.calculateDimensions();this.dimensions=a.dimensions,this.viewportSize=a.totalSize,this.beforeSize=a.beforeSize,this.setCurrentIndex(0),this.render(!0),this.dataSource.backupItemsArray.length||this.dataSource.setup()},setCurrentIndex:function(a){var b=(this.dimensions[a]||{}).primaryPos||0;this.currentIndex=a,this.hasPrevIndex=a>0,this.hasPrevIndex&&(this.previousPos=Math.max(b-this.dimensions[a-1].primarySize,this.dimensions[a-1].primaryPos)),this.hasNextIndex=a+1<this.dataSource.getLength(),this.hasNextIndex&&(this.nextPos=Math.min(b+this.dimensions[a+1].primarySize,this.dimensions[a+1].primaryPos))},renderScroll:ionic.animationFrameThrottle(function(a,b,c,d){return this.renderIfNeeded(this.isVertical?b:a),this.scrollView.__$callback(a,b,c,d)}),renderIfNeeded:function(a){(this.hasNextIndex&&a>=this.nextPos||this.hasPrevIndex&&a<this.previousPos)&&this.render()},getIndexForScrollValue:function(a,b){var c;if(b<=this.dimensions[a].primaryPos)for(;(c=this.dimensions[a-1])&&c.primaryPos>b;)a--;else for(;(c=this.dimensions[a+1])&&c.primaryPos<b;)a++;return a},render:function(a){function b(a){var b=d.dimensions[a];b&&(a<d.dataSource.dataStartIndex||d.renderItem(a,b.primaryPos-d.beforeSize,b.secondaryPos))}var c,d=this,e=this.currentIndex>=this.dataSource.getLength();if(e||a){for(c in this.renderedItems)this.removeItem(c);if(e)return}for(var f,g=this.scrollValue(),h=this.scrollSize(),i=h+g,j=this.getIndexForScrollValue(this.currentIndex,g),k=Math.max(j-1,0);k>0&&(f=this.dimensions[k])&&f.primaryPos===this.dimensions[j-1].primaryPos;)k--;for(c=k;(f=this.dimensions[c])&&f.primaryPos-f.primarySize<i;)b(c++);b(c++),b(c);var l=c;for(c in this.renderedItems)(k>c||c>l)&&this.removeItem(c);this.setCurrentIndex(j)},renderItem:function(a,b,c){var d=this.dataSource.attachItemAtIndex(a);d&&d.element?((d.primaryPos!==b||d.secondaryPos!==c)&&(d.element.css(ionic.CSS.TRANSFORM,this.transformString(b,c)),d.primaryPos=b,d.secondaryPos=c),this.renderedItems[a]=d):delete this.renderedItems[a]},removeItem:function(a){var b=this.renderedItems[a];b&&(b.primaryPos=b.secondaryPos=null,this.dataSource.detachItem(b),delete this.renderedItems[a])}};var b={renderScroll:1,renderIfNeeded:1};return n(a.prototype,function(c,d){b[d]||(a.prototype[d]=function(){return c.apply(this,arguments)})}),a}]),l.factory("$ionicGesture",[function(){return{on:function(a,b,c){return window.ionic.onGesture(a,b,c[0])},off:function(a,b,c){return window.ionic.offGesture(a,b,c)}}}]);var r='<div class="loading-container"><div class="loading"></div></div>',s="$ionicLoading instance.hide() has been deprecated. Use $ionicLoading.hide().",t="$ionicLoading instance.show() has been deprecated. Use $ionicLoading.show().",u="$ionicLoading instance.setContent() has been deprecated. Use $ionicLoading.show({ template: 'my content' }).";l.constant("$ionicLoadingConfig",{template:'<i class="ion-loading-d"></i>'}).factory("$ionicLoading",["$ionicLoadingConfig","$document","$ionicTemplateLoader","$ionicBackdrop","$timeout","$q","$log","$compile","$ionicPlatform",function(a,b,c,d,e,f,g,h,i){function j(){return o||(o=c.compile({template:r,appendTo:b[0].body}).then(function(a){var g=a;return a.show=function(a){var i=a.templateUrl?c.load(a.templateUrl):f.when(a.template||a.content||"");this.isShown||(this.hasBackdrop=!a.noBackdrop&&a.showBackdrop!==!1,this.hasBackdrop&&(d.retain(),d.getElement().addClass("backdrop-loading"))),a.duration&&(e.cancel(this.durationTimeout),this.durationTimeout=e(angular.bind(this,this.hide),+a.duration)),i.then(function(a){if(a){var c=g.element.children();c.html(a),h(c.contents())(g.scope)}g.isShown&&(g.element.addClass("visible"),ionic.requestAnimationFrame(function(){g.isShown&&g.element.addClass("active"),b[0].body.classList.add("loading-active")}))}),this.isShown=!0},a.hide=function(){this.isShown&&(this.hasBackdrop&&(d.release(),d.getElement().removeClass("backdrop-loading")),g.element.removeClass("active"),b[0].body.classList.remove("loading-active"),setTimeout(function(){!g.isShown&&g.element.removeClass("visible")},200)),e.cancel(this.durationTimeout),this.isShown=!1},a})),o}function l(b){b=m(a||{},b||{});var c=b.delay||b.showDelay||0;return q&&e.cancel(q),q=e(angular.noop,c),q.then(j).then(function(a){return p(),p=i.registerBackButtonAction(angular.noop,A),a.show(b)}),{hide:k.method(s,g.error,n),show:k.method(t,g.error,function(){l(b)}),setContent:k.method(u,g.error,function(a){j().then(function(b){b.show({template:a})})})}}function n(){p(),e.cancel(q),j().then(function(a){a.hide()})}var o,p=angular.noop,q=f.when();return{show:l,hide:n,_getLoader:j}}]),l.factory("$ionicModal",["$rootScope","$document","$compile","$timeout","$ionicPlatform","$ionicTemplateLoader","$q","$log",function(a,b,c,d,e,f,g,h){var i=ionic.views.Modal.inherit({initialize:function(a){ionic.views.Modal.prototype.initialize.call(this,a),this.animation=a.animation||"slide-in-up"},show:function(a){var c=this;if(c.scope.$$destroyed)return void h.error("Cannot call "+c.viewType+".show() after remove(). Please create a new "+c.viewType+" instance.");var f=q(c.modalEl);return c.el.classList.remove("hide"),d(function(){b[0].body.classList.add(c.viewType+"-open")},400),c.el.parentElement||(f.addClass(c.animation),b[0].body.appendChild(c.el)),a&&c.positionView&&c.positionView(a,f),f.addClass("ng-enter active").removeClass("ng-leave ng-leave-active"),c._isShown=!0,c._deregisterBackButton=e.registerBackButtonAction(c.hardwareBackButtonClose?angular.bind(c,c.hide):angular.noop,x),c._isOpenPromise=g.defer(),ionic.views.Modal.prototype.show.call(c),d(function(){f.addClass("ng-enter-active"),ionic.trigger("resize"),c.scope.$parent&&c.scope.$parent.$broadcast(c.viewType+".shown",c),c.el.classList.add("active")},20),d(function(){c.$el.on("click",function(a){c.backdropClickToClose&&a.target===c.el&&c.hide()})},400)},hide:function(){var a=this,c=q(a.modalEl);return a.el.classList.remove("active"),c.addClass("ng-leave"),d(function(){c.addClass("ng-leave-active").removeClass("ng-enter ng-enter-active active")},20),a.$el.off("click"),a._isShown=!1,a.scope.$parent&&a.scope.$parent.$broadcast(a.viewType+".hidden",a),a._deregisterBackButton&&a._deregisterBackButton(),ionic.views.Modal.prototype.hide.call(a),d(function(){b[0].body.classList.remove(a.viewType+"-open"),a.el.classList.add("hide")},a.hideDelay||500)},remove:function(){var a=this;return a.scope.$parent&&a.scope.$parent.$broadcast(a.viewType+".removed",a),a.hide().then(function(){a.scope.$destroy(),a.$el.remove()})},isShown:function(){return!!this._isShown}}),j=function(b,d){var e=d.scope&&d.scope.$new()||a.$new(!0);d.viewType=d.viewType||"modal",m(e,{$hasHeader:!1,$hasSubheader:!1,$hasFooter:!1,$hasSubfooter:!1,$hasTabs:!1,$hasTabsTop:!1});var f=c("<ion-"+d.viewType+">"+b+"</ion-"+d.viewType+">")(e);d.$el=f,d.el=f[0],d.modalEl=d.el.querySelector("."+d.viewType);var g=new i(d);return g.scope=e,d.scope||(e[d.viewType]=g),g};return{fromTemplate:function(a,b){var c=j(a,b||{});return c},fromTemplateUrl:function(a,b,c){var d;return angular.isFunction(b)&&(d=b,b=c),f.load(a).then(function(a){var c=j(a,b||{});return d&&d(c),c})}}}]),l.service("$ionicNavBarDelegate",d(["back","align","showBackButton","showBar","setTitle","changeTitle","getTitle","getPreviousTitle"]));var v=100,w=150,x=200,y=300,z=400,A=500;l.constant("$ionicPlatformDefaults",{ios:{$ionicNavBarConfig:{transition:"nav-title-slide-ios7",alignTitle:"center",backButtonIcon:"ion-ios7-arrow-back"},$ionicNavViewConfig:{transition:"slide-left-right-ios7"},$ionicTabsConfig:{type:"",position:""}},android:{$ionicNavBarConfig:{transition:"nav-title-slide-ios7",alignTitle:"center",backButtonIcon:"ion-ios7-arrow-back"},$ionicNavViewConfig:{transition:"slide-left-right-ios7"},$ionicTabsConfig:{type:"tabs-striped",position:""}}}),l.config(["$ionicPlatformDefaults","$injector",function(a,b){var c=ionic.Platform.platform(),d=function(a){n(a,function(a,c){m(b.get(c),a)})};switch(c){case"ios":d(a.ios);break;case"android":d(a.android)}}]),l.provider("$ionicPlatform",function(){return{$get:["$q","$rootScope",function(a){var b={onHardwareBackButton:function(a){ionic.Platform.ready(function(){document.addEventListener("backbutton",a,!1)})},offHardwareBackButton:function(a){ionic.Platform.ready(function(){document.removeEventListener("backbutton",a)})},$backButtonActions:{},registerBackButtonAction:function(a,c,d){b._hasBackButtonHandler||(b.$backButtonActions={},b.onHardwareBackButton(b.hardwareBackButtonClick),b._hasBackButtonHandler=!0);var e={id:d?d:ionic.Utils.nextUid(),priority:c?c:0,fn:a};return b.$backButtonActions[e.id]=e,function(){delete b.$backButtonActions[e.id]}},hardwareBackButtonClick:function(a){var c,d;for(d in b.$backButtonActions)(!c||b.$backButtonActions[d].priority>=c.priority)&&(c=b.$backButtonActions[d]);return c?(c.fn(a),c):void 0},is:function(a){return ionic.Platform.is(a)},ready:function(b){var c=a.defer();return ionic.Platform.ready(function(){c.resolve(),b&&b()}),c.promise}};return b}]}}),l.factory("$ionicPopover",["$ionicModal","$ionicPosition","$document",function(a,b,c){function d(a,d){var f=angular.element(a.target||a),g=b.offset(f),h=d.prop("offsetWidth"),i=c[0].body.clientWidth,j=(c[0].body.clientHeight,{top:g.top+g.height,left:g.left+g.width/2-h/2});j.left<e?j.left=e:j.left+h+e>i&&(j.left=i-h-e);var k=d[0].querySelector(".popover-arrow");angular.element(k).css({left:g.left-j.left+g.width/2-k.offsetWidth/2+"px"}),d.css({top:j.top+"px",left:j.left+"px",marginLeft:"0",opacity:"1"})}var e=6,f={viewType:"popover",hideDelay:1,animation:"none",positionView:d};return{fromTemplate:function(b,c){return a.fromTemplate(b,ionic.Utils.extend(c||{},f))},fromTemplateUrl:function(b,c){return a.fromTemplateUrl(b,c,ionic.Utils.extend(c||{},f))}}}]);var B='<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 row"><button ng-repeat="button in buttons" ng-click="$buttonTapped(button, $event)" class="button col" ng-class="button.type || \'button-default\'" ng-bind-html="button.text"></button></div></div>';l.factory("$ionicPopup",["$ionicTemplateLoader","$ionicBackdrop","$q","$timeout","$rootScope","$document","$compile","$ionicPlatform",function(a,b,c,d,e,f,g,h){function i(b){b=m({scope:null,title:"",buttons:[]},b||{});var e=a.compile({template:B,scope:b.scope&&b.scope.$new(),appendTo:f[0].body}),h=b.templateUrl?a.load(b.templateUrl):c.when(b.template||b.content||"");return c.all([e,h]).then(function(a){var e=a[0],f=a[1],h=c.defer();e.responseDeferred=h;var i=q(e.element[0].querySelector(".popup-body"));return f?(i.html(f),g(i.contents())(e.scope)):i.remove(),m(e.scope,{title:b.title,buttons:b.buttons,subTitle:b.subTitle,$buttonTapped:function(a,b){var c=(a.onTap||angular.noop)(b);b=b.originalEvent||b,b.defaultPrevented||h.resolve(c)}}),e.show=function(){e.isShown||(e.isShown=!0,ionic.requestAnimationFrame(function(){e.isShown&&(e.element[0].offsetHeight>window.innerHeight-20&&(e.element[0].style.height=window.innerHeight-20+"px",popupBody=e.element[0].querySelectorAll(".popup-body"),popupHead=e.element[0].querySelectorAll(".popup-head"),popupButtons=e.element[0].querySelectorAll(".popup-buttons"),e.element.addClass("popup-tall"),newHeight=window.innerHeight-popupHead[0].offsetHeight-popupButtons[0].offsetHeight-20,popupBody[0].style.height=newHeight+"px"),e.element.removeClass("popup-hidden"),e.element.addClass("popup-showing active"),ionic.DomUtil.centerElementByMarginTwice(e.element[0]),l(e.element))}))},e.hide=function(a){return a=a||angular.noop,e.isShown?(e.isShown=!1,e.element.removeClass("active"),e.element.addClass("popup-hidden"),void d(a,250)):a()},e.remove=function(){e.removed||(e.hide(function(){e.element.remove(),e.scope.$destroy()}),e.removed=!0)},e})}function j(){s[0]&&s[0].responseDeferred.resolve()}function k(a){function c(a){e.then(function(b){b.removed||b.responseDeferred.resolve(a)})}var e=t._createPopup(a),f=s[0];f&&f.hide();var g=d(angular.noop,f?r.stackPushDelay:0).then(function(){return e}).then(function(a){return f||(document.body.classList.add("popup-open"),b.retain(),t._backButtonActionDone=h.registerBackButtonAction(j,z)),s.unshift(a),a.show(),a.responseDeferred.notify({close:g.close}),a.responseDeferred.promise.then(function(c){var d=s.indexOf(a);-1!==d&&s.splice(d,1),a.remove();var e=s[0];return e?e.show():(document.body.classList.remove("popup-open"),(t._backButtonActionDone||angular.noop)()),b.release(),c})});return g.close=c,g}function l(a){var b=a[0].querySelector("[autofocus]");b&&b.focus()}function n(a){return k(m({buttons:[{text:a.okText||"OK",type:a.okType||"button-positive",onTap:function(){return!0}}]},a||{}))}function o(a){return k(m({buttons:[{text:a.cancelText||"Cancel",type:a.cancelType||"button-default",onTap:function(){return!1}},{text:a.okText||"OK",type:a.okType||"button-positive",onTap:function(){return!0}}]},a||{}))}function p(a){var b=e.$new(!0);return b.data={},k(m({template:'<input ng-model="data.response" type="'+(a.inputType||"text")+'" placeholder="'+(a.inputPlaceholder||"")+'">',scope:b,buttons:[{text:a.cancelText||"Cancel",type:a.cancelType||"button-default",onTap:function(){}},{text:a.okText||"OK",type:a.okType||"button-positive",onTap:function(){return b.data.response||""}}]},a||{}))}var r={stackPushDelay:50},s=[],t={show:k,alert:n,confirm:o,prompt:p,_createPopup:i,_popupStack:s};return t}]),l.factory("$ionicPosition",["$document","$window",function(a,b){function c(a,c){return a.currentStyle?a.currentStyle[c]:b.getComputedStyle?b.getComputedStyle(a)[c]:a.style[c]}function d(a){return"static"===(c(a,"position")||"static")}var e=function(b){for(var c=a[0],e=b.offsetParent||c;e&&e!==c&&d(e);)e=e.offsetParent;return e||c};return{position:function(b){var c=this.offset(b),d={top:0,left:0},f=e(b[0]);f!=a[0]&&(d=this.offset(angular.element(f)),d.top+=f.clientTop-f.scrollTop,d.left+=f.clientLeft-f.scrollLeft);var g=b[0].getBoundingClientRect();return{width:g.width||b.prop("offsetWidth"),height:g.height||b.prop("offsetHeight"),top:c.top-d.top,left:c.left-d.left}},offset:function(c){var d=c[0].getBoundingClientRect();return{width:d.width||c.prop("offsetWidth"),height:d.height||c.prop("offsetHeight"),top:d.top+(b.pageYOffset||a[0].documentElement.scrollTop),left:d.left+(b.pageXOffset||a[0].documentElement.scrollLeft)}}}}]),l.service("$ionicScrollDelegate",d(["resize","scrollTop","scrollBottom","scrollTo","scrollBy","getScrollPosition","anchorScroll","getScrollView","rememberScrollPosition","forgetScrollPosition","scrollToRememberedPosition"])),l.service("$ionicSideMenuDelegate",d(["toggleLeft","toggleRight","getOpenRatio","isOpen","isOpenLeft","isOpenRight","canDragContent","edgeDragThreshold"])),l.service("$ionicSlideBoxDelegate",d(["update","slide","enableSlide","previous","next","stop","start","currentIndex","slidesCount"])),l.service("$ionicTabsDelegate",d(["select","selectedIndex"])),l.factory("$ionicTemplateLoader",["$compile","$controller","$http","$q","$rootScope","$templateCache",function(a,b,c,d,e,f){function g(a){return c.get(a,{cache:f}).then(function(a){return a.data&&a.data.trim()})}function h(c){c=m({template:"",templateUrl:"",scope:null,controller:null,locals:{},appendTo:null},c||{});var f=c.templateUrl?this.load(c.templateUrl):d.when(c.template);return f.then(function(d){var f,g=c.scope||e.$new(),h=q("<div>").html(d).contents();return c.controller&&(f=b(c.controller,m(c.locals,{$scope:g})),h.children().data("$ngControllerController",f)),c.appendTo&&q(c.appendTo).append(h),a(h)(g),{element:h,scope:g}})}return{load:g,compile:h}}]),l.run(["$rootScope","$state","$location","$document","$animate","$ionicPlatform","$ionicViewService",function(a,b,c,d,e,f,g){function h(b){return a.$viewHistory.backView?a.$viewHistory.backView.go():ionic.Platform.exitApp(),b.preventDefault(),!1}a.$viewHistory={histories:{root:{historyId:"root",parentHistoryId:null,stack:[],cursor:-1}},views:{},backView:null,forwardView:null,currentView:null,disabledRegistrableTagNames:[]},g.disableRegisterByTagName&&(g.disableRegisterByTagName("ion-tabs"),g.disableRegisterByTagName("ion-side-menus")),a.$on("viewState.changeHistory",function(d,e){if(e){var f=e.historyId?a.$viewHistory.histories[e.historyId]:null;if(f&&f.cursor>-1&&f.cursor<f.stack.length){var g=f.stack[f.cursor];return g.go(e)}!e.url&&e.uiSref&&(e.url=b.href(e.uiSref)),e.url&&(0===e.url.indexOf("#")&&(e.url=e.url.replace("#","")),e.url!==c.url()&&c.url(e.url))}}),a.$on("viewState.viewEnter",function(a,b){b&&b.title&&(d[0].title=b.title)}),f.registerBackButtonAction(h,v)}]).factory("$ionicViewService",["$rootScope","$state","$location","$window","$injector","$animate","$ionicNavViewConfig",function(a,b,c,d,e,f,g){function h(){return ionic.Utils.nextUid()}var i=function(){};return i.prototype.initialize=function(a){if(a){for(var b in a)this[b]=a[b];return this}return null},i.prototype.go=function(){return this.stateName?b.go(this.stateName,this.stateParams):this.url&&this.url!==c.url()?a.$viewHistory.backView===this?d.history.go(-1):a.$viewHistory.forwardView===this?d.history.go(1):void c.url(this.url):null},i.prototype.destroy=function(){this.scope&&(this.scope.$destroy&&this.scope.$destroy(),this.scope=null)},{register:function(b,d){var e=a.$viewHistory,f=this.getCurrentStateId(),g=this._getHistory(b),i=e.currentView,j=e.backView,k=e.forwardView,l=this.nextViewOptions(),m={viewId:null,navAction:null,navDirection:null,historyId:g.historyId};if(d&&!this.isTagNameRegistrable(d))return m.navAction="disabledByTagName",m;if(i&&i.stateId===f&&i.historyId===g.historyId)return m.navAction="noChange",m;if(e.forcedNav)ionic.Utils.extend(m,e.forcedNav),a.$viewHistory.forcedNav=null;else if(j&&j.stateId===f)m.viewId=j.viewId,m.navAction="moveBack",m.viewId=j.viewId,j.historyId===i.historyId&&(m.navDirection="back");else if(k&&k.stateId===f){m.viewId=k.viewId,m.navAction="moveForward",k.historyId===i.historyId&&(m.navDirection="forward");var n=this._getParentHistoryObj(b);k.historyId&&n.scope&&(n.scope.$historyId=k.historyId,m.historyId=k.historyId)}else if(i&&i.historyId!==g.historyId&&g.cursor>-1&&g.stack.length>0&&g.cursor<g.stack.length&&g.stack[g.cursor].stateId===f)m.viewId=g.stack[g.cursor].viewId,m.navAction="moveBack";else{if(m.viewId=h(f),i){if(i.forwardViewId=m.viewId,g.historyId===i.historyId&&(m.navDirection="forward"),m.navAction="newView",k&&i.stateId!==k.stateId){var o=this._getHistoryById(k.historyId);if(o)for(var p=o.stack.length-1;p>=k.index;p--)o.stack[p].destroy(),o.stack.splice(p)}}else m.navAction="initialView";e.views[m.viewId]=this.createView({viewId:m.viewId,index:g.stack.length,historyId:g.historyId,backViewId:i&&i.viewId?i.viewId:null,forwardViewId:null,stateId:f,stateName:this.getCurrentStateName(),stateParams:this.getCurrentStateParams(),url:c.url()}),"moveBack"==m.navAction&&a.$emit("$viewHistory.viewBack",i.viewId,m.viewId),g.stack.push(e.views[m.viewId])}return l&&(l.disableAnimate&&(m.navDirection=null),l.disableBack&&(e.views[m.viewId].backViewId=null),this.nextViewOptions(null)),this.setNavViews(m.viewId),g.cursor=e.currentView.index,m},setNavViews:function(b){var c=a.$viewHistory;c.currentView=this._getViewById(b),c.backView=this._getBackView(c.currentView),c.forwardView=this._getForwardView(c.currentView),a.$broadcast("$viewHistory.historyChange",{showBack:c.backView&&c.backView.historyId===c.currentView.historyId})},registerHistory:function(a){a.$historyId=ionic.Utils.nextUid()},createView:function(a){var b=new i;return b.initialize(a)},getCurrentView:function(){return a.$viewHistory.currentView},getBackView:function(){return a.$viewHistory.backView},getForwardView:function(){return a.$viewHistory.forwardView},getNavDirection:function(){return a.$viewHistory.navDirection},getCurrentStateName:function(){return b&&b.current?b.current.name:null},isCurrentStateNavView:function(a){return b&&b.current&&b.current.views&&b.current.views[a]?!0:!1},getCurrentStateParams:function(){var a;if(b&&b.params)for(var c in b.params)b.params.hasOwnProperty(c)&&(a=a||{},a[c]=b.params[c]);return a},getCurrentStateId:function(){var a;if(b&&b.current&&b.current.name){if(a=b.current.name,b.params)for(var c in b.params)b.params.hasOwnProperty(c)&&b.params[c]&&(a+="_"+c+"="+b.params[c]);return a}return ionic.Utils.nextUid()},goToHistoryRoot:function(b){if(b){var c=a.$viewHistory.histories[b];if(c&&c.stack.length){if(a.$viewHistory.currentView&&a.$viewHistory.currentView.viewId===c.stack[0].viewId)return;a.$viewHistory.forcedNav={viewId:c.stack[0].viewId,navAction:"moveBack",navDirection:"back"},c.stack[0].go()}}},_getViewById:function(b){return b?a.$viewHistory.views[b]:null},_getBackView:function(a){return a?this._getViewById(a.backViewId):null},_getForwardView:function(a){return a?this._getViewById(a.forwardViewId):null},_getHistoryById:function(b){return b?a.$viewHistory.histories[b]:null},_getHistory:function(b){var c=this._getParentHistoryObj(b);return a.$viewHistory.histories[c.historyId]||(a.$viewHistory.histories[c.historyId]={historyId:c.historyId,parentHistoryId:this._getParentHistoryObj(c.scope.$parent).historyId,stack:[],cursor:-1}),a.$viewHistory.histories[c.historyId]},_getParentHistoryObj:function(b){for(var c=b;c;){if(c.hasOwnProperty("$historyId"))return{historyId:c.$historyId,scope:c};c=c.$parent}return{historyId:"root",scope:a}},nextViewOptions:function(a){return arguments.length?void(this._nextOpts=a):this._nextOpts},getRenderer:function(a,b,c){function d(a){for(var b="";!b&&a;)b=a.getAttribute("animation"),a=a.parentElement;return b?b:g.transition}function e(){k&&a[0].classList.add(k),"back"===h.navDirection?a[0].classList.add("reverse"):a[0].classList.remove("reverse")}var h,i,j=this,k=d(a[0]);return function(b){return{enter:function(c){return i&&b?(e(),c.addClass("ng-enter"),document.body.classList.add("disable-pointer-events"),void f.enter(c,a,null,function(){document.body.classList.remove("disable-pointer-events"),k&&a[0].classList.remove(k)})):(i||document.body.classList.remove("disable-pointer-events"),void a.append(c))},leave:function(){var c=a.contents();return i&&b?(e(),void f.leave(c,function(){c.remove()})):void c.remove()},register:function(a){return h=j.register(c,a),i=null!==k&&null!==h.navDirection,h}}}},disableRegisterByTagName:function(b){a.$viewHistory.disabledRegistrableTagNames.push(b.toUpperCase())},isTagNameRegistrable:function(b){var c,d,e=a.$viewHistory.disabledRegistrableTagNames;for(c=0;c<b.length;c++)if(1===b[c].nodeType)for(d=0;d<e.length;d++)if(b[c].tagName===e[d])return!1;return!0},clearHistory:function(){var b=a.$viewHistory.histories,c=a.$viewHistory.currentView;if(b)for(var d in b)b[d].stack&&(b[d].stack=[],b[d].cursor=-1),c&&c.historyId===d?(c.backViewId=null,c.forwardViewId=null,b[d].stack.push(c)):b[d].destroy&&b[d].destroy();for(var e in a.$viewHistory.views)e!==c.viewId&&delete a.$viewHistory.views[e];c&&this.setNavViews(c.viewId)}}}]),l.config(["$provide",function(a){function b(a,b){return a.__hash=a.hash,a.hash=function(c){return angular.isDefined(c)&&b(function(){var a=document.querySelector(".scroll-content");a&&(a.scrollTop=0)},0,!1),a.__hash(c)},a}a.decorator("$location",["$delegate","$timeout",b])}]),l.service("$ionicListDelegate",d(["showReorder","showDelete","canSwipeItems","closeOptionButtons"])).controller("$ionicList",["$scope","$attrs","$parse","$ionicListDelegate",function(a,b,c,d){var e=!0,f=!1,g=!1,h=d._registerInstance(this,b.delegateHandle);a.$on("$destroy",h),this.showReorder=function(a){return arguments.length&&(f=!!a),f},this.showDelete=function(a){return arguments.length&&(g=!!a),g},this.canSwipeItems=function(a){return arguments.length&&(e=!!a),e},this.closeOptionButtons=function(){this.listView&&this.listView.clearDragEffects()}}]),l.controller("$ionicNavBar",["$scope","$element","$attrs","$ionicViewService","$animate","$compile","$ionicNavBarDelegate",function(a,b,c,d,e,f,g){b.parent().data("$ionNavBarController",this);var h=g._registerInstance(this,c.delegateHandle);a.$on("$destroy",h);var i=this;this.leftButtonsElement=q(b[0].querySelector(".buttons.left-buttons")),this.rightButtonsElement=q(b[0].querySelector(".buttons.right-buttons")),this.back=function(){var a=d.getBackView();return a&&a.go(),!1},this.align=function(a){this._headerBarView.align(a)},this.showBackButton=function(b){return arguments.length&&(a.backButtonShown=!!b),!(!a.hasBackButton||!a.backButtonShown)},this.showBar=function(b){return arguments.length&&(a.isInvisible=!b,a.$parent.$hasHeader=!!b),!a.isInvisible},this.setTitle=function(b){a.title!==b&&(a.oldTitle=a.title,a.title=b||"")},this.changeTitle=function(b,c){return a.title===b?!1:(this.setTitle(b),a.isReverse="back"==c,a.shouldAnimate=!!c,a.shouldAnimate?this._animateTitles():this._headerBarView.align(),!0)},this.getTitle=function(){return a.title||""},this.getPreviousTitle=function(){return a.oldTitle||""},this._animateTitles=function(){var c,d,g;g=b[0].querySelectorAll(".title"),g.length&&(c=f('<h1 class="title" ng-bind-html="oldTitle"></h1>')(a),q(g[0]).replaceWith(c)),d=f('<h1 class="title invisible" ng-bind-html="title"></h1>')(a),ionic.requestAnimationFrame(function(){c&&e.leave(q(c));var f=c&&q(c)||null;e.enter(d,b,f,function(){i._headerBarView.align()}),n(g,function(a){a&&a.parentNode&&q(a).remove()}),a.$digest(),ionic.requestAnimationFrame(function(){d[0].classList.remove("invisible")})})}}]),l.factory("$$scrollValueCache",function(){return{}}).controller("$ionicScroll",["$scope","scrollViewOptions","$timeout","$window","$$scrollValueCache","$location","$rootScope","$document","$ionicScrollDelegate",function(a,b,c,d,e,f,g,h,i){var j=this;this._scrollViewOptions=b;var k=this.element=b.el,l=this.$element=q(k),m=this.scrollView=new ionic.views.Scroll(b);(l.parent().length?l.parent():l).data("$$ionicScrollController",this);var n=i._registerInstance(this,b.delegateHandle);angular.isDefined(b.bouncing)||ionic.Platform.ready(function(){m.options.bouncing=!0,ionic.Platform.isAndroid()&&(m.options.bouncing=!1,m.options.deceleration=.95)});var o=angular.bind(m,m.resize);ionic.on("resize",o,d);var p=angular.noop;a.$on("$destroy",function(){n(),m.__removeEventHandlers(),ionic.off("resize",o,d),d.removeEventListener("resize",o),p(),j._rememberScrollId&&(e[j._rememberScrollId]=m.getValues())}),l.on("scroll",function(b){var c=(b.originalEvent||b).detail||{};a.$onScroll&&a.$onScroll({event:b,scrollTop:c.scrollTop||0,scrollLeft:c.scrollLeft||0})}),a.$on("$viewContentLoaded",function(b,d){if(!b.defaultPrevented){b.preventDefault();var e=d&&d.viewId||a.$historyId;e&&c(function(){j.rememberScrollPosition(e),j.scrollToRememberedPosition(),p=g.$on("$viewHistory.viewBack",function(a,b){e===b&&j.forgetScrollPosition()})},0,!1)}}),c(function(){m.run()}),this._rememberScrollId=null,this.getScrollView=function(){return this.scrollView},this.getScrollPosition=function(){return this.scrollView.getValues()},this.resize=function(){return c(o)},this.scrollTop=function(a){this.resize().then(function(){m.scrollTo(0,0,!!a)})},this.scrollBottom=function(a){this.resize().then(function(){var b=m.getScrollMax();m.scrollTo(b.left,b.top,!!a)})},this.scrollTo=function(a,b,c){this.resize().then(function(){m.scrollTo(a,b,!!c)})},this.scrollBy=function(a,b,c){this.resize().then(function(){m.scrollBy(a,b,!!c)})},this.anchorScroll=function(a){this.resize().then(function(){var b=f.hash(),c=b&&h[0].getElementById(b);if(!b||!c)return void m.scrollTo(0,0,!!a);var d=c,e=0,g=0,i=0;do null!==d&&(e+=d.offsetLeft),null!==d&&(g+=d.offsetTop),d=d.offsetParent,i++;while(d.attributes!=j.element.attributes&&d.offsetParent);m.scrollTo(e,g,!!a)})},this.rememberScrollPosition=function(a){if(!a)throw new Error("Must supply an id to remember the scroll by!");this._rememberScrollId=a},this.forgetScrollPosition=function(){delete e[this._rememberScrollId],this._rememberScrollId=null},this.scrollToRememberedPosition=function(a){var b=e[this._rememberScrollId];b&&this.resize().then(function(){m.scrollTo(+b.left,+b.top,a)})},this._setRefresher=function(a,b){var c=this.refresher=b,d=j.refresher.clientHeight||0;m.activatePullToRefresh(d,function(){c.classList.add("active"),a.$onPulling()},function(){c.classList.remove("refreshing"),c.classList.remove("active")},function(){c.classList.add("refreshing"),a.$onRefresh()})}}]),l.controller("$ionicSideMenus",["$scope","$attrs","$ionicSideMenuDelegate","$ionicPlatform",function(a,b,c,d){var e=this;m(this,ionic.controllers.SideMenuController.prototype),this.$scope=a,ionic.controllers.SideMenuController.call(this,{left:{width:275},right:{width:275}}),this.canDragContent=function(b){return arguments.length&&(a.dragContent=!!b),a.dragContent},this.edgeThreshold=25,this.edgeThresholdEnabled=!1,this.edgeDragThreshold=function(a){return arguments.length&&(angular.isNumber(a)&&a>0?(this.edgeThreshold=a,this.edgeThresholdEnabled=!0):this.edgeThresholdEnabled=!!a),this.edgeThresholdEnabled},this.isDraggableTarget=function(b){var c=e.edgeThresholdEnabled&&!e.isOpen(),d=b.gesture.startEvent&&b.gesture.startEvent.center&&b.gesture.startEvent.center.pageX,f=!c||d<=e.edgeThreshold||d>=e.content.offsetWidth-e.edgeThreshold;return(a.dragContent||e.isOpen())&&f&&!b.gesture.srcEvent.defaultPrevented&&!b.target.tagName.match(/input|textarea|select|object|embed/i)&&!b.target.isContentEditable&&!(b.target.dataset?b.target.dataset.preventScroll:"true"==b.target.getAttribute("data-prevent-default"))},a.sideMenuContentTranslateX=0;var f=angular.noop,g=angular.bind(this,this.close);a.$watch(function(){return 0!==e.getOpenAmount()},function(a){f(),a&&(f=d.registerBackButtonAction(g,w))});var h=c._registerInstance(this,b.delegateHandle);a.$on("$destroy",function(){h(),f()})}]),l.controller("$ionicTab",["$scope","$ionicViewService","$attrs","$location","$state",function(a,b,c,d,e){this.$scope=a,this.hrefMatchesState=function(){return c.href&&0===d.path().indexOf(c.href.replace(/^#/,"").replace(/\/$/,""))},this.srefMatchesState=function(){return c.uiSref&&e.includes(c.uiSref.split("(")[0])},this.navNameMatchesState=function(){return this.navViewName&&b.isCurrentStateNavView(this.navViewName)},this.tabMatchesState=function(){return this.hrefMatchesState()||this.srefMatchesState()||this.navNameMatchesState()}}]),l.controller("$ionicTabs",["$scope","$ionicViewService","$element",function(a,b){var c=null,d=this;d.tabs=[],d.selectedIndex=function(){return d.tabs.indexOf(c)},d.selectedTab=function(){return c},d.add=function(a){b.registerHistory(a),d.tabs.push(a),1===d.tabs.length&&d.select(a)},d.remove=function(a){var b=d.tabs.indexOf(a);if(-1!==b){if(a.$tabSelected)if(d.deselect(a),1===d.tabs.length);else{var c=b===d.tabs.length-1?b-1:b+1;d.select(d.tabs[c])}d.tabs.splice(b,1)}},d.deselect=function(a){a.$tabSelected&&(c=null,a.$tabSelected=!1,(a.onDeselect||angular.noop)())},d.select=function(e,f){var g;if(angular.isNumber(e)?(g=e,e=d.tabs[g]):g=d.tabs.indexOf(e),!e||-1==g)throw new Error('Cannot select tab "'+g+'"!');
  if(c&&c.$historyId==e.$historyId)f&&b.goToHistoryRoot(e.$historyId);else if(n(d.tabs,function(a){d.deselect(a)}),c=e,e.$tabSelected=!0,(e.onSelect||angular.noop)(),f){var h={type:"tab",tabIndex:g,historyId:e.$historyId,navViewName:e.navViewName,hasNavView:!!e.navViewName,title:e.title,url:e.href,uiSref:e.uiSref};a.$emit("viewState.changeHistory",h)}}}]),l.directive("ionActionSheet",["$document",function(a){return{restrict:"E",scope:!0,replace:!0,link:function(b,c){var d=function(a){27==a.which&&(b.cancel(),b.$apply())},e=function(a){a.target==c[0]&&(b.cancel(),b.$apply())};b.$on("$destroy",function(){c.remove(),a.unbind("keyup",d)}),a.bind("keyup",d),c.bind("click",e)},template:'<div class="action-sheet-backdrop"><div class="action-sheet-wrapper"><div class="action-sheet"><div class="action-sheet-group"><div class="action-sheet-title" ng-if="titleText" ng-bind-html="titleText"></div><button class="button" ng-click="buttonClicked($index)" ng-repeat="button in buttons" ng-bind-html="button.text"></button></div><div class="action-sheet-group" ng-if="destructiveText"><button class="button destructive" ng-click="destructiveButtonClicked()" ng-bind-html="destructiveText"></button></div><div class="action-sheet-group" ng-if="cancelText"><button class="button" ng-click="cancel()" ng-bind-html="cancelText"></button></div></div></div></div>'}}]),l.directive("ionCheckbox",function(){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(a,b){var c=a.find("input");n({name:b.name,"ng-value":b.ngValue,"ng-model":b.ngModel,"ng-checked":b.ngChecked,"ng-disabled":b.ngDisabled,"ng-true-value":b.ngTrueValue,"ng-false-value":b.ngFalseValue,"ng-change":b.ngChange},function(a,b){o(a)&&c.attr(b,a)})}}});var C="Cannot create a collection-repeat within a scrollView that is scrollable on both x and y axis.  Choose either x direction or y direction.",D="collection-repeat expected attribute collection-item-height to be a an expression that returns a number (in pixels) or percentage.",E="collection-repeat expected attribute collection-item-width to be a an expression that returns a number (in pixels) or percentage.",F="collection-repeat expected expression in form of '_item_ in _collection_[ track by _id_]' but got '%'";l.directive({ngSrc:e("ngSrc","src"),ngSrcset:e("ngSrcset","srcset"),ngHref:e("ngHref","href")}).directive("collectionRepeat",["$collectionRepeatManager","$collectionDataSource","$parse",function(a,b,c){return{priority:1e3,transclude:"element",terminal:!0,$$tlb:!0,require:"^$ionicScroll",controller:[function(){}],link:function(d,e,f,g,h){function i(a){var b=[],c=[],d=!0;n(A.children,function(a){if(ionic.DomUtil.elementIsDescendant(e[0],a,A))d=!1;else{var f=a.offsetWidth,g=a.offsetHeight;if(f&&g){var h=q(a);(d?b:c).push({width:a.offsetWidth,height:a.offsetHeight,element:h,scope:h.isolateScope()||h.scope(),isOutside:!0})}}}),l.resize(),y.setData(a,b,c),z.resize()}function j(){i(d.$eval(w))}var k=q('<div style="position:relative;">');e.parent()[0].insertBefore(k[0],e[0]),k.append(e);var l=g.scrollView;if(l.options.scrollingX&&l.options.scrollingY)throw new Error(C);var m=!!l.options.scrollingY;if(m&&!f.collectionItemHeight)throw new Error(D);if(!m&&!f.collectionItemWidth)throw new Error(E);var o=c(f.collectionItemHeight||'"100%"'),r=c(f.collectionItemWidth||'"100%"'),s=function(a,b){var c=o(a,b);return p(c)&&c.indexOf("%")>-1?Math.floor(parseInt(c,10)/100*l.__clientHeight):c},t=function(a,b){var c=r(a,b);return p(c)&&c.indexOf("%")>-1?Math.floor(parseInt(c,10)/100*l.__clientWidth):c},u=f.collectionRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!u)throw new Error(F.replace("%",f.collectionRepeat));var v=u[1],w=u[2],x=u[3],y=new b({scope:d,transcludeFn:h,transcludeParent:e.parent(),keyExpr:v,listExpr:w,trackByExpr:x,heightGetter:s,widthGetter:t}),z=new a({dataSource:y,element:g.$element,scrollView:g.scrollView});d.$watchCollection(w,function(a){if(a&&!angular.isArray(a))throw new Error("collection-repeat expects an array to repeat over, but instead got '"+typeof a+"'.");i(a)});var A=g.scrollView.__content;ionic.on("resize",j,window),d.$on("$destroy",function(){z.destroy(),y.destroy(),ionic.off("resize",j,window)})}}}]),l.directive("ionContent",["$timeout","$controller","$ionicBind",function(a,b,c){return{restrict:"E",require:"^?ionNavView",scope:!0,priority:800,compile:function(a,d){function e(a,e,g){var h=a.$parent;a.$watch(function(){return(h.$hasHeader?" has-header":"")+(h.$hasSubheader?" has-subheader":"")+(h.$hasFooter?" has-footer":"")+(h.$hasSubfooter?" has-subfooter":"")+(h.$hasTabs?" has-tabs":"")+(h.$hasTabsTop?" has-tabs-top":"")},function(a,b){e.removeClass(b),e.addClass(a)}),a.$hasHeader=a.$hasSubheader=a.$hasFooter=a.$hasSubfooter=a.$hasTabs=a.$hasTabsTop=!1,c(a,g,{$onScroll:"&onScroll",$onScrollComplete:"&onScrollComplete",hasBouncing:"@",padding:"@",direction:"@",scrollbarX:"@",scrollbarY:"@",startX:"@",startY:"@",scrollEventInterval:"@"}),a.direction=a.direction||"y",angular.isDefined(g.padding)&&a.$watch(g.padding,function(a){(f||e).toggleClass("padding",!!a)}),"false"===g.scroll||("true"===d.overflowScroll?e.addClass("overflow-scroll"):b("$ionicScroll",{$scope:a,scrollViewOptions:{el:e[0],delegateHandle:d.delegateHandle,bouncing:a.$eval(a.hasBouncing),startX:a.$eval(a.startX)||0,startY:a.$eval(a.startY)||0,scrollbarX:a.$eval(a.scrollbarX)!==!1,scrollbarY:a.$eval(a.scrollbarY)!==!1,scrollingX:a.direction.indexOf("x")>=0,scrollingY:a.direction.indexOf("y")>=0,scrollEventInterval:parseInt(a.scrollEventInterval,10)||10,scrollingComplete:function(){a.$onScrollComplete({scrollTop:this.__scrollTop,scrollLeft:this.__scrollLeft})}}}))}var f;return a.addClass("scroll-content ionic-scroll"),"false"!=d.scroll?(f=q('<div class="scroll"></div>'),f.append(a.contents()),a.append(f)):a.addClass("scroll-content-false"),{pre:e}}}}]);var G="onHold onTap onTouch onRelease onDrag onDragUp onDragRight onDragDown onDragLeft onSwipe onSwipeUp onSwipeRight onSwipeDown onSwipeLeft".split(" ");G.forEach(function(a){l.directive(a,f(a))}),l.directive("ionNavBar",g()).directive("ionHeaderBar",g()).directive("ionHeaderBar",h(!0)).directive("ionFooterBar",h(!1)),l.directive("ionInfiniteScroll",["$timeout",function(a){function b(a,b,c){return c?b*(1-parseFloat(a,10)/100):b-parseFloat(a,10)}return{restrict:"E",require:["^$ionicScroll","ionInfiniteScroll"],template:'<i class="icon {{icon()}} icon-refreshing"></i>',scope:!0,controller:["$scope","$attrs",function(a,c){this.isLoading=!1,this.scrollView=null,this.getMaxScroll=function(){var a=(c.distance||"2.5%").trim(),d=-1!==a.indexOf("%"),e=this.scrollView.getScrollMax();return{left:this.scrollView.options.scrollingX?b(a,e.left,d):-1,top:this.scrollView.options.scrollingY?b(a,e.top,d):-1}}}],link:function(b,c,d,e){function f(){if(!h.isLoading){var a=i.getValues(),b=h.getMaxScroll();(-1!==b.left&&a.left>=b.left||-1!==b.top&&a.top>=b.top)&&j()}}var g=e[0],h=e[1],i=h.scrollView=g.scrollView;b.icon=function(){return angular.isDefined(d.icon)?d.icon:"ion-loading-d"};var j=function(){c[0].classList.add("active"),h.isLoading=!0,b.$parent&&b.$parent.$apply(d.onInfinite||"")},k=function(){c[0].classList.remove("active"),a(function(){i.resize(),l()},0,!1),h.isLoading=!1};b.$on("scroll.infiniteScrollComplete",function(){k()}),b.$on("$destroy",function(){g.$element.off("scroll",l)});var l=ionic.animationFrameThrottle(f);setTimeout(l),g.$element.on("scroll",l)}}}]);var H='<a class="item-content" ng-href="{{$href()}}" target="{{$target()}}"></a>',I='<div class="item-content"></div>';l.directive("ionItem",["$animate","$compile",function(){return{restrict:"E",controller:["$scope","$element",function(a,b){this.$scope=a,this.$element=b}],scope:!0,compile:function(a,b){var c=angular.isDefined(b.href)||angular.isDefined(b.ngHref)||angular.isDefined(b.uiSref),d=c||/ion-(delete|option|reorder)-button/i.test(a.html());if(d){var e=q(c?H:I);e.append(a.contents()),a.append(e),a.addClass("item item-complex")}else a.addClass("item");return function(a,b,c){a.$href=function(){return c.href||c.ngHref},a.$target=function(){return c.target||"_self"}}}}}]);var J='<div class="item-left-edit item-delete enable-pointer-events"></div>';l.directive("ionDeleteButton",["$animate",function(){return{restrict:"E",require:["^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(a,b){return b.$set("class",(b["class"]||"")+" button icon button-icon",!0),function(a,b,c,d){var e=d[0],f=d[1],g=q(J);g.append(b),e.$element.append(g).addClass("item-left-editable"),f&&f.showDelete()&&g.addClass("visible active")}}}}]),l.directive("itemFloatingLabel",function(){return{restrict:"C",link:function(a,b){var c=b[0],d=c.querySelector("input, textarea"),e=c.querySelector(".input-label");if(d&&e){var f=function(){d.value?e.classList.add("has-input"):e.classList.remove("has-input")};d.addEventListener("input",f);var g=angular.element(d).controller("ngModel");g&&(g.$render=function(){d.value=g.$viewValue||"",f()}),a.$on("$destroy",function(){d.removeEventListener("input",f)})}}}});var K='<div class="item-options invisible"></div>';l.directive("ionOptionButton",["$compile",function(){function a(a){a.stopPropagation()}return{restrict:"E",require:"^ionItem",priority:Number.MAX_VALUE,compile:function(b,c){return c.$set("class",(c["class"]||"")+" button",!0),function(b,c,d,e){e.optionsContainer||(e.optionsContainer=q(K),e.$element.append(e.optionsContainer)),e.optionsContainer.append(c),c.on("click",a)}}}}]);var L='<div data-prevent-scroll="true" class="item-right-edit item-reorder enable-pointer-events"></div>';l.directive("ionReorderButton",["$animate","$parse",function(a,b){return{restrict:"E",require:["^ionItem","^?ionList"],priority:Number.MAX_VALUE,compile:function(a,c){return c.$set("class",(c["class"]||"")+" button icon button-icon",!0),a[0].setAttribute("data-prevent-scroll",!0),function(a,c,d,e){var f=e[0],g=e[1],h=b(d.onReorder);a.$onReorder=function(b,c){h(a,{$fromIndex:b,$toIndex:c})};var i=q(L);i.append(c),f.$element.append(i).addClass("item-right-editable"),g&&g.showReorder()&&i.addClass("visible active")}}}}]),l.directive("keyboardAttach",function(){return function(a,b){function c(a){if(!ionic.Platform.isAndroid()||ionic.Platform.isFullScreen){var c=a.keyboardHeight||a.detail.keyboardHeight;b.css("bottom",c+"px"),e=b.controller("$ionicScroll"),e&&(e.scrollView.__container.style.bottom=c+i(b[0])+"px")}}function d(){(!ionic.Platform.isAndroid()||ionic.Platform.isFullScreen)&&(b.css("bottom",""),e&&(e.scrollView.__container.style.bottom=""))}ionic.on("native.keyboardshow",c,window),ionic.on("native.keyboardhide",d,window),ionic.on("native.showkeyboard",c,window),ionic.on("native.hidekeyboard",d,window);var e;a.$on("$destroy",function(){ionic.off("native.keyboardshow",c,window),ionic.off("native.keyboardhide",d,window),ionic.off("native.showkeyboard",c,window),ionic.off("native.hidekeyboard",d,window)})}}),l.directive("ionList",["$animate","$timeout",function(a,b){return{restrict:"E",require:["ionList","^?$ionicScroll"],controller:"$ionicList",compile:function(a,c){var d=q('<div class="list">').append(a.contents()).addClass(c.type);return a.append(d),function(a,d,e,f){function g(){function e(a,b){b()&&a.addClass("visible")||a.removeClass("active"),ionic.requestAnimationFrame(function(){b()&&a.addClass("active")||a.removeClass("invisible")})}h.listView=new ionic.views.ListView({el:d[0],listEl:d.children()[0],scrollEl:i&&i.element,scrollView:i&&i.scrollView,onReorder:function(a,c,d){var e=q(a).scope();e&&e.$onReorder&&b(function(){e.$onReorder(c,d)})},canSwipe:function(){return h.canSwipeItems()}});o(c.canSwipe)&&a.$watch("!!("+c.canSwipe+")",function(a){h.canSwipeItems(a)}),o(c.showDelete)&&a.$watch("!!("+c.showDelete+")",function(a){h.showDelete(a)}),o(c.showReorder)&&a.$watch("!!("+c.showReorder+")",function(a){h.showReorder(a)}),a.$watch(function(){return h.showDelete()},function(a,b){if(a||b){a&&h.closeOptionButtons(),h.canSwipeItems(!a),d.children().toggleClass("list-left-editing",a),d.toggleClass("disable-pointer-events",a);var c=q(d[0].getElementsByClassName("item-delete"));e(c,h.showDelete)}}),a.$watch(function(){return h.showReorder()},function(a,b){if(a||b){a&&h.closeOptionButtons(),h.canSwipeItems(!a),d.children().toggleClass("list-right-editing",a),d.toggleClass("disable-pointer-events",a);var c=q(d[0].getElementsByClassName("item-reorder"));e(c,h.showReorder)}})}var h=f[0],i=f[1];b(g)}}}}]),l.directive("menuClose",["$ionicViewService",function(){return{restrict:"AC",require:"^ionSideMenus",link:function(a,b,c,d){b.bind("click",function(){d.close()})}}}]),l.directive("menuToggle",["$ionicViewService",function(){return{restrict:"AC",require:"^ionSideMenus",link:function(a,b,c,d){var e=c.menuToggle||"left";b.bind("click",function(){"left"===e?d.toggleLeft():"right"===e&&d.toggleRight()})}}}]),l.directive("ionModal",[function(){return{restrict:"E",transclude:!0,replace:!0,controller:[function(){}],template:'<div class="modal-backdrop"><div class="modal-wrapper" ng-transclude></div></div>'}}]),l.directive("ionModalView",function(){return{restrict:"E",compile:function(a){a.addClass("modal")}}}),l.directive("ionNavBackButton",["$animate","$rootScope","$sanitize","$ionicNavBarConfig","$ionicNgClick",function(a,b,c,d,e){var f=!1;return b.$on("$viewHistory.historyChange",function(a,b){f=!!b.showBack}),{restrict:"E",require:"^ionNavBar",compile:function(b){b.addClass("button back-button ng-hide");var g=!!(b.html()||"").match(/class=.*?ion-/);return function(b,h,i,j){g||-1!==h[0].className.indexOf("ion-")||h.addClass(d.backButtonIcon),o(i.ngClick)||e(b,h,j.back),b.$watch(function(){return o(i.fromTitle)&&(h[0].innerHTML='<span class="back-button-title">'+c(b.oldTitle)+"</span>"),!(!f||!b.backButtonShown)},ionic.animationFrameThrottle(function(b){b?a.removeClass(h,"ng-hide"):a.addClass(h,"ng-hide")}))}}}}]),l.constant("$ionicNavBarConfig",{transition:"nav-title-slide-ios7",alignTitle:"center",backButtonIcon:"ion-ios7-arrow-back"}),l.directive("ionNavBar",["$ionicViewService","$rootScope","$animate","$compile","$ionicNavBarConfig",function(a,b,c,d,e){return{restrict:"E",controller:"$ionicNavBar",scope:!0,compile:function(a,b){function c(a,b,c,d){d._headerBarView=new ionic.views.HeaderBar({el:b[0],alignTitle:c.alignTitle||e.alignTitle||"center"}),a.backButtonShown=!1,a.shouldAnimate=!0,a.isReverse=!1,a.isInvisible=!0,a.$on("$destroy",function(){a.$parent.$hasHeader=!1}),a.$watch(function(){return(a.isReverse?" reverse":"")+(a.isInvisible?" invisible":"")+(a.shouldAnimate?"":" no-animation")},function(a,c){b.removeClass(c),b.addClass(a)})}return a.addClass("bar bar-header nav-bar").append('<div class="buttons left-buttons"> </div><h1 ng-bind-html="title" class="title"></h1><div class="buttons right-buttons"> </div>'),a.addClass(o(b.animation)?b.animation:e.transition),{pre:c}}}}]),l.directive("ionNavButtons",["$compile","$animate",function(a,b){return{require:"^ionNavBar",restrict:"E",compile:function(c){var d=c.contents().remove();return function(c,e,f,g){var h="right"===f.side?g.rightButtonsElement:g.leftButtonsElement,i=q("<span>").append(d);e.append(i),a(i)(c),ionic.requestAnimationFrame(function(){c.$$destroyed||b.enter(i,h)}),c.$on("$destroy",function(){b.leave(i)}),e.css("display","none")}}}}]),l.directive("navClear",["$ionicViewService","$state","$location","$window","$rootScope",function(a,b,c,d,e){return e.$on("$stateChangeError",function(){a.nextViewOptions(null)}),{priority:100,restrict:"AC",compile:function(){function b(b,c){function e(){f=b.$on("$stateChangeStart",function(){a.nextViewOptions({disableAnimate:!0,disableBack:!0}),f()}),d.setTimeout(f,300)}var f;c.on("click",e)}return{pre:b}}}}]),l.constant("$ionicNavViewConfig",{transition:"slide-left-right-ios7"}),l.directive("ionNavView",["$ionicViewService","$state","$compile","$controller","$animate",function(a,b,c,d,e){var f=!1,g={restrict:"E",terminal:!0,priority:2e3,transclude:!0,controller:function(){},compile:function(h,i,j){return function(h,i,k){function l(f){e.enabled()===!1&&(f=!1);var g=b.$current&&b.$current.locals[o];if(g!==n){var j=a.getRenderer(i,k,h);if(m&&(m.$destroy(),m=null),!g)return n=null,t.state=null,i.append(r);var l=q("<div></div>").html(g.$template).contents(),s=j().register(l);j(f).leave(),n=g,t.state=g.$$state,j(f).enter(l);var u=c(l);if(m=h.$new(),m.$navDirection=s.navDirection,g.$$controller){g.$scope=m;var v=d(g.$$controller,g);i.children().data("$ngControllerController",v)}u(m);var w=a._getViewById(s.viewId)||{};m.$broadcast("$viewContentLoaded",w),p&&m.$eval(p),l=null}}var m,n,o=k[g.name]||k.name||"",p=k.onload||"",r=j(h);i.append(r);var s=i.parent().inheritedData("$uiView");o.indexOf("@")<0&&(o=o+"@"+(s&&s.state?s.state.name:""));var t={name:o,state:null};i.data("$uiView",t);var u=function(){if(!f){f=!0;try{l(!0)}catch(a){throw f=!1,a}f=!1}};h.$on("$stateChangeSuccess",u),l(!1)}}};return g}]),l.config(["$provide",function(a){a.decorator("ngClickDirective",["$delegate",function(a){return a.shift(),a}])}]).factory("$ionicNgClick",["$parse",function(a){return function(b,c,d){var e=angular.isFunction(d)?d:a(d);c.on("click",function(a){b.$apply(function(){e(b,{$event:a})})}),c.onclick=function(){}}}]).directive("ngClick",["$ionicNgClick",function(a){return function(b,c,d){a(b,c,d.ngClick)}}]).directive("ionStopEvent",function(){return{restrict:"A",link:function(a,b,c){b.bind(c.ionStopEvent,j)}}}),l.directive("ionPane",function(){return{restrict:"E",link:function(a,b){b.addClass("pane")}}}),l.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>'}}]),l.directive("ionPopoverView",function(){return{restrict:"E",compile:function(a){a.append(angular.element('<div class="popover-arrow"></div>')),a.addClass("popover")}}}),l.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(a,b){b.icon&&a.children().eq(2).removeClass("ion-checkmark").addClass(b.icon);var c=a.find("input");return n({name:b.name,value:b.value,disabled:b.disabled,"ng-value":b.ngValue,"ng-model":b.ngModel,"ng-disabled":b.ngDisabled,"ng-change":b.ngChange},function(a,b){o(a)&&c.attr(b,a)}),function(a,b,c){a.getValue=function(){return a.ngValue||c.value}}}}}),l.directive("ionRefresher",["$ionicBind",function(a){return{restrict:"E",replace:!0,require:"^$ionicScroll",template:'<div class="scroll-refresher"><div class="ionic-refresher-content" ng-class="{\'ionic-refresher-with-text\': pullingText || refreshingText}"><div class="icon-pulling"><i class="icon {{pullingIcon}}"></i></div><div class="text-pulling" ng-bind-html="pullingText"></div><i class="icon {{refreshingIcon}} icon-refreshing"></i><div class="text-refreshing" ng-bind-html="refreshingText"></div></div></div>',compile:function(b,c){return angular.isUndefined(c.pullingIcon)&&c.$set("pullingIcon","ion-arrow-down-c"),angular.isUndefined(c.refreshingIcon)&&c.$set("refreshingIcon","ion-loading-d"),function(b,c,d,e){a(b,d,{pullingIcon:"@",pullingText:"@",refreshingIcon:"@",refreshingText:"@",$onRefresh:"&onRefresh",$onPulling:"&onPulling"}),e._setRefresher(b,c[0]),b.$on("scroll.refreshComplete",function(){b.$evalAsync(function(){c[0].classList.remove("active"),e.scrollView.finishPullToRefresh()})})}}}}]),l.directive("ionScroll",["$timeout","$controller","$ionicBind",function(a,b,c){return{restrict:"E",scope:!0,controller:function(){},compile:function(a){function d(a,d,f){var g,h;c(a,f,{direction:"@",paging:"@",$onScroll:"&onScroll",scroll:"@",scrollbarX:"@",scrollbarY:"@",zooming:"@",minZoom:"@",maxZoom:"@"}),a.direction=a.direction||"y",angular.isDefined(f.padding)&&a.$watch(f.padding,function(a){e.toggleClass("padding",!!a)}),a.$eval(a.paging)===!0&&e.addClass("scroll-paging"),a.direction||(a.direction="y");var i=a.$eval(a.paging)===!0,j={el:d[0],delegateHandle:f.delegateHandle,bouncing:a.$eval(f.hasBouncing),paging:i,scrollbarX:a.$eval(a.scrollbarX)!==!1,scrollbarY:a.$eval(a.scrollbarY)!==!1,scrollingX:a.direction.indexOf("x")>=0,scrollingY:a.direction.indexOf("y")>=0,zooming:a.$eval(a.zooming)===!0,maxZoom:a.$eval(a.maxZoom)||3,minZoom:a.$eval(a.minZoom)||.5};i&&(j.speedMultiplier=.8,j.bouncing=!1),h=b("$ionicScroll",{$scope:a,scrollViewOptions:j}),g=a.$parent.scrollView=h.scrollView}a.addClass("scroll-view ionic-scroll");var e=q('<div class="scroll"></div>');return e.append(a.contents()),a.append(e),{pre:d}}}}]),l.directive("ionSideMenu",function(){return{restrict:"E",require:"^ionSideMenus",scope:!0,compile:function(a,b){return angular.isUndefined(b.isEnabled)&&b.$set("isEnabled","true"),angular.isUndefined(b.width)&&b.$set("width","275"),a.addClass("menu menu-"+b.side),function(a,b,c,d){a.side=c.side||"left";var e=d[a.side]=new ionic.views.SideMenu({width:275,el:b[0],isEnabled:!0});a.$watch(c.width,function(a){var b=+a;b&&b==a&&e.setWidth(+a)}),a.$watch(c.isEnabled,function(a){e.setIsEnabled(!!a)})}}}}),l.directive("ionSideMenuContent",["$timeout","$ionicGesture",function(a,b){return{restrict:"EA",require:"^ionSideMenus",scope:!0,compile:function(c,d){function e(e,f,g,h){function i(a){0!==h.getOpenAmount()&&(h.close(),a.gesture.srcEvent.preventDefault())}f.addClass("menu-content pane"),o(d.dragContent)?e.$watch(d.dragContent,function(a){h.canDragContent(a)}):h.canDragContent(!0),o(d.edgeDragThreshold)&&e.$watch(d.edgeDragThreshold,function(a){h.edgeDragThreshold(a)});var j=!1,k=!1;ionic.on("tap",i,f[0]);var l=function(a){!j&&h.isDraggableTarget(a)&&(k=!0,h._handleDrag(a),a.gesture.srcEvent.preventDefault())},m=function(a){k&&a.gesture.srcEvent.preventDefault()},n=b.on("dragright",l,f),p=b.on("dragleft",l,f),q=b.on("dragup",m,f),r=b.on("dragdown",m,f),s=function(a){k=!1,j||h._endDrag(a),j=!1},t=b.on("release",s,f);h.setContent({element:c[0],onDrag:function(){},endDrag:function(){},getTranslateX:function(){return e.sideMenuContentTranslateX||0},setTranslateX:ionic.animationFrameThrottle(function(b){f[0].style[ionic.CSS.TRANSFORM]="translate3d("+b+"px, 0, 0)",a(function(){e.sideMenuContentTranslateX=b})}),enableAnimation:function(){e.animationEnabled=!0,f[0].classList.add("menu-animated")},disableAnimation:function(){e.animationEnabled=!1,f[0].classList.remove("menu-animated")}}),e.$on("$destroy",function(){b.off(p,"dragleft",l),b.off(n,"dragright",l),b.off(q,"dragup",l),b.off(r,"dragdown",l),b.off(t,"release",s),ionic.off("tap",i,f[0])})}return{pre:e}}}}]),l.directive("ionSideMenus",["$document",function(a){return{restrict:"ECA",controller:"$ionicSideMenus",compile:function(b,c){return c.$set("class",(c["class"]||"")+" view"),function(b){b.$on("$destroy",function(){a[0].body.classList.remove("menu-open")})}}}}]),l.directive("ionSlideBox",["$timeout","$compile","$ionicSlideBoxDelegate",function(a,b,c){return{restrict:"E",replace:!0,transclude:!0,scope:{autoPlay:"=",doesContinue:"@",slideInterval:"@",showPager:"@",pagerClick:"&",disableScroll:"@",onSlideChanged:"&",activeSlide:"=?"},controller:["$scope","$element","$attrs",function(b,d,e){var f=b.$eval(b.doesContinue)===!0,g=o(e.autoPlay)?!!b.autoPlay:!1,h=g?b.$eval(b.slideInterval)||4e3:0,i=new ionic.views.Slider({el:d[0],auto:h,continuous:f,startSlide:b.activeSlide,slidesChanged:function(){b.currentSlide=i.currentIndex(),a(function(){})},callback:function(c){b.currentSlide=c,b.onSlideChanged({index:b.currentSlide,$index:b.currentSlide}),b.$parent.$broadcast("slideBox.slideChanged",c),b.activeSlide=c,a(function(){})}});i.enableSlide(b.$eval(e.disableScroll)!==!0),b.$watch("activeSlide",function(a){angular.isDefined(a)&&i.slide(a)}),b.$on("slideBox.nextSlide",function(){i.next()}),b.$on("slideBox.prevSlide",function(){i.prev()}),b.$on("slideBox.setSlide",function(a,b){i.slide(b)}),this.__slider=i;var j=c._registerInstance(i,e.delegateHandle);b.$on("$destroy",j),this.slidesCount=function(){return i.slidesCount()},this.onPagerClick=function(a){b.pagerClick({index:a})},a(function(){i.load()})}],template:'<div class="slider"><div class="slider-slides" ng-transclude></div></div>',link:function(a,c){if(a.$eval(a.showPager)!==!1){var d=a.$new(),e=q("<ion-pager></ion-pager>");c.append(e),b(e)(d)}}}}]).directive("ionSlide",function(){return{restrict:"E",require:"^ionSlideBox",compile:function(a){return a.addClass("slider-slide"),function(){}}}}).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(a,b,c,d){var e=function(a){for(var c=b[0].children,d=c.length,e=0;d>e;e++)e==a?c[e].classList.add("active"):c[e].classList.remove("active")};a.pagerClick=function(a){d.onPagerClick(a)},a.numSlides=function(){return new Array(d.slidesCount())},a.$watch("currentSlide",function(a){e(a)})}}}),l.constant("$ionicTabConfig",{type:""}),l.directive("ionTab",["$rootScope","$animate","$ionicBind","$compile",function(a,b,c,d){function e(a,b){return angular.isDefined(b)?" "+a+'="'+b+'"':""}return{restrict:"E",require:["^ionTabs","ionTab"],replace:!0,controller:"$ionicTab",scope:!0,compile:function(a,f){var g="<ion-tab-nav"+e("ng-click",f.ngClick)+e("title",f.title)+e("icon",f.icon)+e("icon-on",f.iconOn)+e("icon-off",f.iconOff)+e("badge",f.badge)+e("badge-style",f.badgeStyle)+e("hidden",f.hidden)+e("class",f["class"])+"></ion-tab-nav>",h=q('<div class="pane">').append(a.contents().remove());return function(a,e,f,i){function j(){n.tabMatchesState()&&m.select(a)}var k,l,m=i[0],n=i[1],o=h[0].querySelector("ion-nav-view")||h[0].querySelector("data-ion-nav-view"),p=o&&o.getAttribute("name");c(a,f,{animate:"=",onSelect:"&",onDeselect:"&",title:"@",uiSref:"@",href:"@"}),m.add(a),a.$on("$destroy",function(){m.remove(a),r.isolateScope().$destroy(),r.remove()}),e[0].removeAttribute("title"),p&&(n.navViewName=p),a.$on("$stateChangeSuccess",j),j();var r=q(g);r.data("$ionTabsController",m),r.data("$ionTabController",n),m.$tabsElement.append(d(r)(a)),a.$watch("$tabSelected",function(c){k&&k.$destroy(),k=null,l&&b.leave(l),l=null,c&&(k=a.$new(),l=h.clone(),b.enter(l,m.$element),d(l)(k))})}}}}]),l.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()}"  class="tab-item"><span class="badge {{badgeStyle}}" ng-if="badge">{{badge}}</span><i class="icon {{getIconOn()}}" ng-if="getIconOn() && isTabActive()"></i><i class="icon {{getIconOff()}}" ng-if="getIconOff() && !isTabActive()"></i><span class="tab-title" ng-bind-html="title"></span></a>',scope:{title:"@",icon:"@",iconOn:"@",iconOff:"@",badge:"=",hidden:"@",badgeStyle:"@","class":"@"},compile:function(){return function(a,b,c,d){var e=d[0],f=d[1];b[0].removeAttribute("title"),a.selectTab=function(a){a.preventDefault(),e.select(f.$scope,!0)},c.ngClick||b.on("click",function(b){a.$apply(function(){a.selectTab(b)})}),a.isHidden=function(){return"true"===c.hidden||c.hidden===!0?!0:!1},a.getIconOn=function(){return a.iconOn||a.icon},a.getIconOff=function(){return a.iconOff||a.icon},a.isTabActive=function(){return e.selectedTab()===f.$scope}}}}}]),l.constant("$ionicTabsConfig",{position:"",type:""}),l.directive("ionTabs",["$ionicViewService","$ionicTabsDelegate","$ionicTabsConfig",function(a,b,c){return{restrict:"E",scope:!0,controller:"$ionicTabs",compile:function(a){function d(a,c,d,e){var f=b._registerInstance(e,d.delegateHandle);a.$on("$destroy",f),e.$scope=a,e.$element=c,e.$tabsElement=q(c[0].querySelector(".tabs"));var g=c[0];a.$watch(function(){return g.className},function(b){var c=-1!==b.indexOf("tabs-top"),d=-1!==b.indexOf("tabs-item-hide");a.$hasTabs=!c&&!d,a.$hasTabsTop=c&&!d}),a.$on("$destroy",function(){delete a.$hasTabs,delete a.$hasTabsTop})}a.addClass("view");var e=q('<div class="tabs"></div>');return e.append(a.contents()),a.append(e),a.addClass(c.position),a.addClass(c.type),{pre:d}}}}]),l.directive("ionToggle",["$ionicGesture","$timeout",function(){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(a,b){var c=a.find("input");return n({name:b.name,"ng-value":b.ngValue,"ng-model":b.ngModel,"ng-checked":b.ngChecked,"ng-disabled":b.ngDisabled,"ng-true-value":b.ngTrueValue,"ng-false-value":b.ngFalseValue,"ng-change":b.ngChange},function(a,b){o(a)&&c.attr(b,a)}),b.toggleClass&&a[0].getElementsByTagName("label")[0].classList.add(b.toggleClass),function(a,b){var c,d,e,f;c=b[0].getElementsByTagName("label")[0],d=c.children[0],e=c.children[1],f=e.children[0];var g=q(d).controller("ngModel");a.toggle=new ionic.views.Toggle({el:c,track:e,checkbox:d,handle:f,onChange:function(){g.$setViewValue(d.checked?!0:!1),a.$apply()}}),a.$on("$destroy",function(){a.toggle.destroy()})}}}}]),l.directive("ionView",["$ionicViewService","$rootScope","$animate",function(){return{restrict:"EA",priority:1e3,require:["^?ionNavBar","^?ionModal"],compile:function(a){return a.addClass("pane"),a[0].removeAttribute("title"),function(a,b,c,d){var e=d[0],f=d[1];if(e&&!f){if(angular.isDefined(c.title)){var g=c.title;e.changeTitle(g,a.$navDirection),c.$observe("title",function(a){e.setTitle(a)})}var h=angular.isDefined(c.hideBackButton)?c.hideBackButton:"false";a.$watch(h,function(a){e.showBackButton(!a)});var i=angular.isDefined(c.hideNavBar)?c.hideNavBar:"false";a.$watch(i,function(a){e.showBar(!a)})}}}}}])}(),function(a,b){"use strict";function c(){function a(a,c){return b.extend(new(b.extend(function(){},{prototype:a})),c)}function c(a,b){var c=b.caseInsensitiveMatch,d={originalPath:a,regexp:a},e=d.keys=[];return a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,b,c,d){var f="?"===d?d:null,g="*"===d?d:null;return e.push({name:c,optional:!!f}),b=b||"",""+(f?"":b)+"(?:"+(f?b:"")+(g&&"(.+?)"||"([^/]+)")+(f||"")+")"+(f||"")}).replace(/([\/$\*])/g,"\\$1"),d.regexp=new RegExp("^"+a+"$",c?"i":""),d}var d={};this.when=function(a,e){if(d[a]=b.extend({reloadOnSearch:!0},e,a&&c(a,e)),a){var f="/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";d[f]=b.extend({redirectTo:a},c(f,e))}return this},this.otherwise=function(a){return this.when(null,a),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache","$sce",function(c,e,f,g,h,i,j,k){function l(a,b){var c=b.keys,d={};if(!b.regexp)return null;var e=b.regexp.exec(a);if(!e)return null;for(var f=1,g=e.length;g>f;++f){var h=c[f-1],i=e[f];h&&i&&(d[h.name]=i)}return d}function m(){var a=n(),d=q.current;a&&d&&a.$$route===d.$$route&&b.equals(a.pathParams,d.pathParams)&&!a.reloadOnSearch&&!p?(d.params=a.params,b.copy(d.params,f),c.$broadcast("$routeUpdate",d)):(a||d)&&(p=!1,c.$broadcast("$routeChangeStart",a,d),q.current=a,a&&a.redirectTo&&(b.isString(a.redirectTo)?e.path(o(a.redirectTo,a.params)).search(a.params).replace():e.url(a.redirectTo(a.pathParams,e.path(),e.search())).replace()),g.when(a).then(function(){if(a){var c,d,e=b.extend({},a.resolve);return b.forEach(e,function(a,c){e[c]=b.isString(a)?h.get(a):h.invoke(a)}),b.isDefined(c=a.template)?b.isFunction(c)&&(c=c(a.params)):b.isDefined(d=a.templateUrl)&&(b.isFunction(d)&&(d=d(a.params)),d=k.getTrustedResourceUrl(d),b.isDefined(d)&&(a.loadedTemplateUrl=d,c=i.get(d,{cache:j}).then(function(a){return a.data
  }))),b.isDefined(c)&&(e.$template=c),g.all(e)}}).then(function(e){a==q.current&&(a&&(a.locals=e,b.copy(a.params,f)),c.$broadcast("$routeChangeSuccess",a,d))},function(b){a==q.current&&c.$broadcast("$routeChangeError",a,d,b)}))}function n(){var c,f;return b.forEach(d,function(d){!f&&(c=l(e.path(),d))&&(f=a(d,{params:b.extend({},e.search(),c),pathParams:c}),f.$$route=d)}),f||d[null]&&a(d[null],{params:{},pathParams:{}})}function o(a,c){var d=[];return b.forEach((a||"").split(":"),function(a,b){if(0===b)d.push(a);else{var e=a.match(/(\w+)(.*)/),f=e[1];d.push(c[f]),d.push(e[2]||""),delete c[f]}}),d.join("")}var p=!1,q={routes:d,reload:function(){p=!0,c.$evalAsync(m)}};return c.$on("$locationChangeSuccess",m),q}]}function d(){this.$get=function(){return{}}}function e(a,c,d){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(e,f,g,h,i){function j(){n&&(n.remove(),n=null),l&&(l.$destroy(),l=null),m&&(d.leave(m,function(){n=null}),n=m,m=null)}function k(){var g=a.current&&a.current.locals,h=g&&g.$template;if(b.isDefined(h)){var k=e.$new(),n=a.current,q=i(k,function(a){d.enter(a,null,m||f,function(){!b.isDefined(o)||o&&!e.$eval(o)||c()}),j()});m=q,l=n.scope=k,l.$emit("$viewContentLoaded"),l.$eval(p)}else j()}var l,m,n,o=g.autoscroll,p=g.onload||"";e.$on("$routeChangeSuccess",k),k()}}}function f(a,b,c){return{restrict:"ECA",priority:-400,link:function(d,e){var f=c.current,g=f.locals;e.html(g.$template);var h=a(e.contents());if(f.controller){g.$scope=d;var i=b(f.controller,g);f.controllerAs&&(d[f.controllerAs]=i),e.data("$ngControllerController",i),e.children().data("$ngControllerController",i)}h(d)}}}var g=b.module("ngRoute",["ng"]).provider("$route",c);g.provider("$routeParams",d),g.directive("ngView",e),g.directive("ngView",f),e.$inject=["$route","$anchorScroll","$animate"],f.$inject=["$compile","$controller","$route"]}(window,window.angular),function(a,b,c){"use strict";function d(a){return null!=a&&""!==a&&"hasOwnProperty"!==a&&h.test("."+a)}function e(a,b){if(!d(b))throw g("badmember",'Dotted member path "@{0}" is invalid.',b);for(var e=b.split("."),f=0,h=e.length;h>f&&a!==c;f++){var i=e[f];a=null!==a?a[i]:c}return a}function f(a,c){c=c||{},b.forEach(c,function(a,b){delete c[b]});for(var d in a)!a.hasOwnProperty(d)||"$"===d.charAt(0)&&"$"===d.charAt(1)||(c[d]=a[d]);return c}var g=b.$$minErr("$resource"),h=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;b.module("ngResource",["ng"]).factory("$resource",["$http","$q",function(a,d){function h(a){return i(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function i(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,b?"%20":"+")}function j(a,b){this.template=a,this.defaults=b||{},this.urlParams={}}function k(h,i,r){function s(a,b){var c={};return b=o({},i,b),n(b,function(b,d){q(b)&&(b=b()),c[d]=b&&b.charAt&&"@"==b.charAt(0)?e(a,b.substr(1)):b}),c}function t(a){return a.resource}function u(a){f(a||{},this)}var v=new j(h);return r=o({},l,r),n(r,function(e,h){var i=/^(POST|PUT|PATCH)$/i.test(e.method);u[h]=function(h,j,k,l){var r,w,x,y={};switch(arguments.length){case 4:x=l,w=k;case 3:case 2:if(!q(j)){y=h,r=j,w=k;break}if(q(h)){w=h,x=j;break}w=j,x=k;case 1:q(h)?w=h:i?r=h:y=h;break;case 0:break;default:throw g("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var z=this instanceof u,A=z?r:e.isArray?[]:new u(r),B={},C=e.interceptor&&e.interceptor.response||t,D=e.interceptor&&e.interceptor.responseError||c;n(e,function(a,b){"params"!=b&&"isArray"!=b&&"interceptor"!=b&&(B[b]=p(a))}),i&&(B.data=r),v.setUrlParams(B,o({},s(r,e.params||{}),y),e.url);var E=a(B).then(function(a){var c=a.data,d=A.$promise;if(c){if(b.isArray(c)!==!!e.isArray)throw g("badcfg","Error in resource configuration. Expected response to contain an {0} but got an {1}",e.isArray?"array":"object",b.isArray(c)?"array":"object");e.isArray?(A.length=0,n(c,function(a){A.push("object"==typeof a?new u(a):a)})):(f(c,A),A.$promise=d)}return A.$resolved=!0,a.resource=A,a},function(a){return A.$resolved=!0,(x||m)(a),d.reject(a)});return E=E.then(function(a){var b=C(a);return(w||m)(b,a.headers),b},D),z?E:(A.$promise=E,A.$resolved=!1,A)},u.prototype["$"+h]=function(a,b,c){q(a)&&(c=b,b=a,a={});var d=u[h].call(this,a,this,b,c);return d.$promise||d}}),u.bind=function(a){return k(h,o({},i,a),r)},u}var l={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}},m=b.noop,n=b.forEach,o=b.extend,p=b.copy,q=b.isFunction;return j.prototype={setUrlParams:function(a,c,d){var e,f,i=this,j=d||i.template,k=i.urlParams={};n(j.split(/\W/),function(a){if("hasOwnProperty"===a)throw g("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(a)&&a&&new RegExp("(^|[^\\\\]):"+a+"(\\W|$)").test(j)&&(k[a]=!0)}),j=j.replace(/\\:/g,":"),c=c||{},n(i.urlParams,function(a,d){e=c.hasOwnProperty(d)?c[d]:i.defaults[d],b.isDefined(e)&&null!==e?(f=h(e),j=j.replace(new RegExp(":"+d+"(\\W|$)","g"),function(a,b){return f+b})):j=j.replace(new RegExp("(/?):"+d+"(\\W|$)","g"),function(a,b,c){return"/"==c.charAt(0)?c:b+c})}),j=j.replace(/\/+$/,"")||"/",j=j.replace(/\/\.(?=\w+($|\?))/,"."),a.url=j.replace(/\/\\\./,"/."),n(c,function(b,c){i.urlParams[c]||(a.params=a.params||{},a.params[c]=b)})}},k}])}(window,window.angular);