You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
247 KiB

!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){function r(t){t.html5Mode({enabled:!0,requireBase:!1})}n(2),n(4),n(6),n(8);var i=window.angular;i.module("BrowserSync",["bsHistory","bsClients","bsDisconnect","bsNotify","bsSocket","bsStore","ngRoute","ngTouch","ngSanitize"]).config(["$locationProvider",r]);n(10),n(12),n(13),n(14),n(15),n(63),n(65),n(66),n(69),n(70),n(72)},function(t,e,n){n(3),t.exports=angular},function(t,e){/**
* @license AngularJS v1.4.14
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,s=o[0],a="["+(t?t+":":"")+s+"] ",c=o[1];for(a+=c.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<o.length?yt(o[n]):t}),a+="\nhttp://errors.angularjs.org/1.4.14/"+(t?t+"/":"")+s,r=i,n="?";r<o.length;r++,n="&")a+=n+"p"+(r-i)+"="+encodeURIComponent(yt(o[r]));return new e(a)}}function i(t){if(null==t||O(t))return!1;if(Hr(t)||k(t)||jr&&t instanceof jr)return!0;var e="length"in Object(t)&&t.length;return S(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function o(t,e,n){var r,s;if(t)if(C(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(Hr(t)||i(t)){var a="object"!=typeof t;for(r=0,s=t.length;r<s;r++)(a||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(x(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)Ar.call(t,r)&&e.call(n,t[r],r,t);return t}function s(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function a(t){return function(e,n){t(n,e)}}function c(){return++Lr}function u(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function l(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var s=e[i];if(w(s)||C(s))for(var a=Object.keys(s),c=0,f=a.length;c<f;c++){var h=a[c],p=s[h];n&&w(p)?E(p)?t[h]=new Date(p.valueOf()):A(p)?t[h]=new RegExp(p):p.nodeName?t[h]=p.cloneNode(!0):R(p)?t[h]=p.clone():(w(t[h])||(t[h]=Hr(p)?[]:{}),l(t[h],[p],!0)):t[h]=p}}return u(t,r),t}function f(t){return l(t,Br.call(arguments,1),!1)}function h(t){return l(t,Br.call(arguments,1),!0)}function p(t){return parseInt(t,10)}function d(t,e){return f(Object.create(t),e)}function m(){}function v(t){return t}function g(t){return function(){return t}}function $(t){return C(t.toString)&&t.toString!==Ir}function y(t){return"undefined"==typeof t}function b(t){return"undefined"!=typeof t}function w(t){return null!==t&&"object"==typeof t}function x(t){return null!==t&&"object"==typeof t&&!Vr(t)}function k(t){return"string"==typeof t}function S(t){return"number"==typeof t}function E(t){return"[object Date]"===Ir.call(t)}function C(t){return"function"==typeof t}function A(t){return"[object RegExp]"===Ir.call(t)}function O(t){return t&&t.window===t}function T(t){return t&&t.$evalAsync&&t.$watch}function N(t){return"[object File]"===Ir.call(t)}function M(t){return"[object FormData]"===Ir.call(t)}function j(t){return"[object Blob]"===Ir.call(t)}function P(t){return"boolean"==typeof t}function D(t){return t&&C(t.then)}function B(t){return t&&S(t.length)&&zr.test(Ir.call(t))}function R(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function _(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function I(t){return Cr(t.nodeName||t[0]&&t[0].nodeName)}function V(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function q(t,e){function n(t,e){var n,i=e.$$hashKey;if(Hr(t))for(var o=0,s=t.length;o<s;o++)e.push(r(t[o]));else if(x(t))for(n in t)e[n]=r(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));else for(n in t)Ar.call(t,n)&&(e[n]=r(t[n]));return u(e,i),e}function r(t){if(!w(t))return t;var e=i.indexOf(t);if(e!==-1)return s[e];if(O(t)||T(t))throw qr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r,o=!1;return Hr(t)?(r=[],o=!0):B(t)?r=new t.constructor(t):E(t)?r=new Date(t.getTime()):A(t)?(r=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),r.lastIndex=t.lastIndex):j(t)?r=new t.constructor([t],{type:t.type}):C(t.cloneNode)?r=t.cloneNode(!0):(r=Object.create(Vr(t)),o=!0),i.push(t),s.push(r),o?n(t,r):r}var i=[],s=[];if(e){if(B(e))throw qr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw qr("cpi","Can't copy! Source and destination are identical.");return Hr(e)?e.length=0:o(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),i.push(t),s.push(e),n(t,e)}return r(t)}function U(t,e){if(Hr(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(w(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function L(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t,s=typeof e;if(o==s&&"object"==o){if(!Hr(t)){if(E(t))return!!E(e)&&L(t.getTime(),e.getTime());if(A(t))return!!A(e)&&t.toString()==e.toString();if(T(t)||T(e)||O(t)||O(e)||Hr(e)||E(e)||A(e))return!1;i=vt();for(r in t)if("$"!==r.charAt(0)&&!C(t[r])){if(!L(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&b(e[r])&&!C(e[r]))return!1;return!0}if(!Hr(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!L(t[r],e[r]))return!1;return!0}}return!1}function F(t,e,n){return t.concat(Br.call(e,n))}function H(t,e){return Br.call(t,e||0)}function z(t,e){var n=arguments.length>2?H(arguments,2):[];return!C(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,F(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function W(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:O(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":T(r)&&(i="$SCOPE"),i}function J(t,e){return y(t)?n:(S(e)||(e=e?2:null),JSON.stringify(t,W,e))}function X(t){return k(t)?JSON.parse(t):t}function Y(t,e){t=t.replace(Gr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function K(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset(),i=Y(e,r);return G(t,n*(i-r))}function Z(t){t=jr(t).clone();try{t.empty()}catch(t){}var e=jr("<div>").append(t).html();try{return t[0].nodeType===ni?Cr(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Cr(e)})}catch(t){return Cr(e)}}function Q(t){try{return decodeURIComponent(t)}catch(t){}}function tt(t){var e={};return o((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),n!==-1&&(r=t.substring(0,n),i=t.substring(n+1)),r=Q(r),b(r)&&(i=!b(i)||Q(i),Ar.call(e,r)?Hr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function et(t){var e=[];return o(t,function(t,n){Hr(t)?o(t,function(t){e.push(rt(n,!0)+(t===!0?"":"="+rt(t,!0)))}):e.push(rt(n,!0)+(t===!0?"":"="+rt(t,!0)))}),e.length?e.join("&"):""}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function it(t,e){var n,r,i=Kr.length;for(r=0;r<i;++r)if(n=Kr[r]+e,k(n=t.getAttribute(n)))return n;return null}function ot(t,e){var n,r,i={};o(Kr,function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))}),o(Kr,function(e){var i,o=e+"app";!n&&(i=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==it(n,"strict-di"),e(n,r?[r]:[],i))}function st(n,r,i){w(i)||(i={});var s={strictDi:!1};i=f(s,i);var a=function(){if(n=jr(n),n.injector()){var t=n[0]===e?"document":Z(n);throw qr("btstrpd","App already bootstrapped with this element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var o=ee(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},c=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return t&&c.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(c,"")),t&&!u.test(t.name)?a():(t.name=t.name.replace(u,""),Ur.resumeBootstrap=function(t){return o(t,function(t){r.push(t)}),a()},void(C(Ur.resumeDeferredBootstrap)&&Ur.resumeDeferredBootstrap()))}function at(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ct(t){var e=Ur.element(t).injector();if(!e)throw qr("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ut(t,e){return e=e||"_",t.replace(Zr,function(t,n){return(n?e:"")+t.toLowerCase()})}function lt(){var e;if(!Qr){var r=Yr();Pr=y(r)?t.jQuery:r?t[r]:n,Pr&&Pr.fn.on?(jr=Pr,f(Pr.fn,{scope:wi.scope,isolateScope:wi.isolateScope,controller:wi.controller,injector:wi.injector,inheritedData:wi.inheritedData}),e=Pr.cleanData,Pr.cleanData=function(t){var n;if(Fr)Fr=!1;else for(var r,i=0;null!=(r=t[i]);i++)n=Pr._data(r,"events"),n&&n.$destroy&&Pr(r).triggerHandler("$destroy");e(t)}):jr=Tt,Ur.element=jr,Qr=!0}}function ft(t,e,n){if(!t)throw qr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ht(t,e,n){return n&&Hr(t)&&(t=t[t.length-1]),ft(C(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function pt(t,e){if("hasOwnProperty"===t)throw qr("badname","hasOwnProperty is not a valid {0} name",e)}function dt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,s=i.length,a=0;a<s;a++)r=i[a],t&&(t=(o=t)[r]);return!n&&C(t)?z(o,t):t}function mt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=jr(Br.call(t,0,i))),e.push(n));return e||t}function vt(){return Object.create(null)}function gt(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng"),o=e(t,"angular",Object);return o.$$minErr=o.$$minErr||r,e(o,"module",function(){var t={};return function(r,o,s){var a=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return a(r,"module"),o&&t.hasOwnProperty(r)&&(t[r]=null),e(t,r,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),l}}function e(t,e){return function(n,o){return o&&C(o)&&(o.$$moduleName=r),i.push([t,e,arguments]),l}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var i=[],a=[],c=[],u=t("$injector","invoke","push",a),l={_invokeQueue:i,_configBlocks:a,_runBlocks:c,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:u,run:function(t){return c.push(t),this}};return s&&u(s),l})}})}function $t(t){var e=[];return JSON.stringify(t,function(t,n){if(n=W(t,n),w(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function yt(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):y(t)?"undefined":"string"!=typeof t?$t(t):t}function bt(e){f(e,{bootstrap:st,copy:q,extend:f,merge:h,equals:L,element:jr,forEach:o,injector:ee,noop:m,bind:z,toJson:J,fromJson:X,identity:v,isUndefined:y,isDefined:b,isString:k,isFunction:C,isObject:w,isNumber:S,isElement:R,isArray:Hr,version:si,isDate:E,lowercase:Cr,uppercase:Or,callbacks:{counter:0},getTestability:ct,$$minErr:r,$$csp:Xr,reloadWithDebugInfo:at}),(Dr=gt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:bn}),t.provider("$compile",fe).directive({a:Co,input:zo,textarea:zo,form:Mo,script:_s,select:qs,style:Ls,option:Us,ngBind:Xo,ngBindHtml:Go,ngBindTemplate:Yo,ngClass:Zo,ngClassEven:ts,ngClassOdd:Qo,ngCloak:es,ngController:ns,ngForm:jo,ngHide:Ms,ngIf:os,ngInclude:ss,ngInit:cs,ngNonBindable:xs,ngPluralize:Cs,ngRepeat:As,ngShow:Ns,ngStyle:js,ngSwitch:Ps,ngSwitchWhen:Ds,ngSwitchDefault:Bs,ngOptions:Es,ngTransclude:Rs,ngModel:ys,ngList:us,ngChange:Ko,pattern:Hs,ngPattern:Hs,required:Fs,ngRequired:Fs,minlength:Ws,ngMinlength:Ws,maxlength:zs,ngMaxlength:zs,ngValue:Jo,ngModelOptions:ws}).directive({ngInclude:as}).directive(Ao).directive(rs),t.provider({$anchorScroll:ne,$animate:Ri,$animateCss:Vi,$$animateJs:Di,$$animateQueue:Bi,$$AnimateRunner:Ii,$$animateAsyncRun:_i,$browser:ce,$cacheFactory:ue,$controller:ve,$document:ge,$exceptionHandler:$e,$filter:Dn,$$forceReflow:Hi,$interpolate:je,$interval:Pe,$http:Oe,$httpParamSerializer:be,$httpParamSerializerJQLike:we,$httpBackend:Ne,$xhrFactory:Te,$location:Je,$log:Xe,$parse:dn,$rootScope:yn,$q:mn,$$q:vn,$sce:Sn,$sceDelegate:kn,$sniffer:En,$templateCache:le,$templateRequest:Cn,$$testability:An,$timeout:On,$window:Mn,$$rAF:$n,$$jqLite:Gt,$$HashMap:Ei,$$cookieReader:Pn})}])}function wt(){return++ci}function xt(t){return t.replace(fi,function(t,e,n,r){return r?n.toUpperCase():n}).replace(hi,"Moz$1")}function kt(t){return!vi.test(t)}function St(t){var e=t.nodeType;return e===ti||!e||e===ii}function Et(t){for(var e in ai[t.ng339])return!0;return!1}function Ct(t,e){var n,r,i,s,a=e.createDocumentFragment(),c=[];if(kt(t))c.push(e.createTextNode(t));else{for(n=n||a.appendChild(e.createElement("div")),r=(gi.exec(t)||["",""])[1].toLowerCase(),i=yi[r]||yi._default,n.innerHTML=i[1]+t.replace($i,"<$1></$2>")+i[2],s=i[0];s--;)n=n.lastChild;c=F(c,n.childNodes),n=a.firstChild,n.textContent=""}return a.textContent="",a.innerHTML="",o(c,function(t){a.appendChild(t)}),a}function At(t,n){n=n||e;var r;return(r=mi.exec(t))?[n.createElement(r[1])]:(r=Ct(t,n))?r.childNodes:[]}function Ot(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function Tt(t){if(t instanceof Tt)return t;var e;if(k(t)&&(t=Wr(t),e=!0),!(this instanceof Tt)){if(e&&"<"!=t.charAt(0))throw di("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Tt(t)}e?Vt(this,At(t)):Vt(this,t)}function Nt(t){return t.cloneNode(!0)}function Mt(t,e){if(e||Pt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Pt(n[r])}function jt(t,e,n,r){if(b(r))throw di("offargs","jqLite#off() does not support the `selector` argument");var i=Dt(t),s=i&&i.events,a=i&&i.handle;if(a)if(e){var c=function(e){var r=s[e];b(n)&&V(r||[],n),b(n)&&r&&r.length>0||(li(t,e,a),delete s[e])};o(e.split(" "),function(t){c(t),pi[t]&&c(pi[t])})}else for(e in s)"$destroy"!==e&&li(t,e,a),delete s[e]}function Pt(t,e){var r=t.ng339,i=r&&ai[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),jt(t)),delete ai[r],t.ng339=n}}function Dt(t,e){var r=t.ng339,i=r&&ai[r];return e&&!i&&(t.ng339=r=wt(),i=ai[r]={events:{},data:{},handle:n}),i}function Bt(t,e,n){if(St(t)){var r=b(n),i=!r&&e&&!w(e),o=!e,s=Dt(t,!i),a=s&&s.data;if(r)a[e]=n;else{if(o)return a;if(i)return a&&a[e];f(a,e)}}}function Rt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function _t(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",Wr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Wr(e)+" "," ")))})}function It(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=Wr(t),n.indexOf(" "+t+" ")===-1&&(n+=t+" ")}),t.setAttribute("class",Wr(n))}}function Vt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function qt(t,e){return Ut(t,"$"+(e||"ngController")+"Controller")}function Ut(t,e,n){t.nodeType==ii&&(t=t.documentElement);for(var r=Hr(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(b(n=jr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===oi&&t.host}}function Lt(t){for(Mt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ft(t,e){e||Mt(t);var n=t.parentNode;n&&n.removeChild(t)}function Ht(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):jr(n).on("load",e)}function zt(t,e){var n=xi[e.toLowerCase()];return n&&ki[I(t)]&&n}function Wt(t){return Si[t]}function Jt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(y(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var a=i.specialHandlerWrapper||Xt;o>1&&(i=U(i));for(var c=0;c<o;c++)n.isImmediatePropagationStopped()||a(t,n,i[c])}};return n.elem=t,n}function Xt(t,e,n){n.call(t,e)}function Yt(t,e,n){var r=e.relatedTarget;r&&(r===t||bi.call(t,r))||n.call(t,e)}function Gt(){this.$get=function(){return f(Tt,{hasClass:function(t,e){return t.attr&&(t=t[0]),Rt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),It(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),_t(t,e)}})}}function Kt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||c)():r+":"+t}function Zt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}o(t,this.put,this)}function Qt(t){var e=t.toString().replace(Ti,""),n=e.match(Ci);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function te(t,e,n){var r,i,s,a;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw k(n)&&n||(n=t.name||Qt(t)),Ni("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=t.toString().replace(Ti,""),s=i.match(Ci),o(s[1].split(Ai),function(t){t.replace(Oi,function(t,e,n){r.push(n)})})}t.$inject=r}}else Hr(t)?(a=t.length-1,ht(t[a],"fn"),r=t.slice(0,a)):ht(t,"fn",!0);return r}function ee(t,e){function r(t){return function(e,n){return w(e)?void o(e,a(t)):t(e,n)}}function i(t,e){if(pt(t,"service"),(C(e)||Hr(e))&&(e=S.instantiate(e)),!e.$get)throw Ni("pget","Provider '{0}' must define $get factory method.",t);return x[t+v]=e}function s(t,e){return function(){var n=A.invoke(e,this);if(y(n))throw Ni("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function c(t,e,n){return i(t,{$get:n!==!1?s(t,e):e})}function u(t,e){return c(t,["$injector",function(t){return t.instantiate(e)}])}function l(t,e){return c(t,g(e),!1)}function f(t,e){pt(t,"constant"),x[t]=e,E[t]=e}function h(t,e){var n=S.get(t+v),r=n.$get;n.$get=function(){var t=A.invoke(r,n);return A.invoke(e,null,{$delegate:t})}}function p(t){ft(y(t)||Hr(t),"modulesToLoad","not an array");var e,n=[];return o(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=S.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(t)){b.put(t,!0);try{k(t)?(e=Dr(t),n=n.concat(p(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):C(t)?n.push(S.invoke(t)):Hr(t)?n.push(S.invoke(t)):ht(t,"module")}catch(e){throw Hr(t)&&(t=t[t.length-1]),e.message&&e.stack&&e.stack.indexOf(e.message)==-1&&(e=e.message+"\n"+e.stack),Ni("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}}),n}function d(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===m)throw Ni("cdep","Circular dependency found: {0}",e+" <- "+$.join(" <- "));return t[e]}try{return $.unshift(e),t[e]=m,t[e]=n(e,r)}catch(n){throw t[e]===m&&delete t[e],n}finally{$.shift()}}function i(t,n,i,o){"string"==typeof i&&(o=i,i=null);var s,a,c,u=[],l=ee.$$annotate(t,e,o);for(a=0,s=l.length;a<s;a++){if(c=l[a],"string"!=typeof c)throw Ni("itkn","Incorrect injection token! Expected service name as string, got {0}",c);u.push(i&&i.hasOwnProperty(c)?i[c]:r(c,o))}return Hr(t)&&(t=t[s]),t.apply(n,u)}function o(t,e,n){var r=Object.create((Hr(t)?t[t.length-1]:t).prototype||null),o=i(t,r,e,n);return w(o)||C(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:ee.$$annotate,has:function(e){return x.hasOwnProperty(e+v)||t.hasOwnProperty(e)}}}e=e===!0;var m={},v="Provider",$=[],b=new Zt([],!0),x={$provide:{provider:r(i),factory:r(c),service:r(u),value:r(l),constant:r(f),decorator:h}},S=x.$injector=d(x,function(t,e){throw Ur.isString(e)&&$.push(e),Ni("unpr","Unknown provider: {0}",$.join(" <- "))}),E={},A=E.$injector=d(E,function(t,e){var r=S.get(t+v,e);return A.invoke(r.$get,r,n,t)});return o(p(t),function(t){t&&A.invoke(t)}),A}function ne(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===I(t))return e=t,!0}),e}function o(){var t=a.yOffset;if(C(t))t=t();else if(R(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else S(t)||(t=0);return t}function s(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function a(t){t=k(t)?t:n.hash();var e;t?(e=c.getElementById(t))?s(e):(e=i(c.getElementsByName(t)))?s(e):"top"===t&&s(null):s(null)}var c=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||Ht(function(){r.$evalAsync(a)})}),a}]}function re(t,e){return t||e?t?e?(Hr(t)&&(t=t.join(" ")),Hr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function ie(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===ji)return n}}function oe(t){k(t)&&(t=t.split(" "));var e=vt();return o(t,function(t){t.length&&(e[t]=!0)}),e}function se(t){return w(t)?t:{}}function ae(t,e,n,r){function i(t){try{t.apply(null,H(arguments,1))}finally{if($--,0===$)for(;b.length;)try{b.pop()()}catch(t){n.error(t)}}}function s(t){var e=t.indexOf("#");return e===-1?"":t.substr(e)}function a(){E=null,u(),l()}function c(){try{return p.state}catch(t){}}function u(){w=c(),w=y(w)?null:w,L(w,O)&&(w=O),O=w}function l(){k===f.url()&&x===w||(k=f.url(),x=w,o(C,function(t){t(f.url(),w)}))}var f=this,h=(e[0],t.location),p=t.history,d=t.setTimeout,v=t.clearTimeout,g={};f.isMock=!1;var $=0,b=[];f.$$completeOutstandingRequest=i,f.$$incOutstandingRequestCount=function(){$++},f.notifyWhenNoOutstandingRequests=function(t){0===$?t():b.push(t)};var w,x,k=h.href,S=e.find("base"),E=null;u(),x=w,f.url=function(e,n,i){if(y(i)&&(i=null),h!==t.location&&(h=t.location),p!==t.history&&(p=t.history),e){var o=x===i;if(k===e&&(!r.history||o))return f;var a=k&&Ie(k)===Ie(e);return k=e,x=i,!r.history||a&&o?(a&&!E||(E=e),n?h.replace(e):a?h.hash=s(e):h.href=e,h.href!==e&&(E=e)):(p[n?"replaceState":"pushState"](i,"",e),u(),x=w),f}return E||h.href.replace(/%27/g,"'")},f.state=function(){return w};var C=[],A=!1,O=null;f.onUrlChange=function(e){return A||(r.history&&jr(t).on("popstate",a),jr(t).on("hashchange",a),A=!0),C.push(e),e},f.$$applicationDestroyed=function(){jr(t).off("hashchange popstate",a)},f.$$checkUrlChange=l,f.baseHref=function(){var t=S.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},f.defer=function(t,e){var n;return $++,n=d(function(){delete g[n],i(t)},e||0),g[n]=!0,n},f.defer.cancel=function(t){return!!g[t]&&(delete g[t],v(t),i(m),!0)}}function ce(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new ae(t,r,e,n)}]}function ue(){this.$get=function(){function t(t,n){function i(t){t!=h&&(p?p==t&&(p=t.n):p=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=f({},n,{id:t}),c=vt(),u=n&&n.capacity||Number.MAX_VALUE,l=vt(),h=null,p=null;return e[t]={put:function(t,e){if(!y(e)){if(u<Number.MAX_VALUE){var n=l[t]||(l[t]={key:t});i(n)}return t in c||s++,c[t]=e,s>u&&this.remove(p.key),e}},get:function(t){if(u<Number.MAX_VALUE){var e=l[t];if(!e)return;i(e)}return c[t]},remove:function(t){if(u<Number.MAX_VALUE){var e=l[t];if(!e)return;e==h&&(h=e.p),e==p&&(p=e.n),o(e.n,e.p),delete l[t]}t in c&&(delete c[t],s--)},removeAll:function(){c=vt(),s=0,l=vt(),h=p=null},destroy:function(){c=null,a=null,l=null,delete e[t]},info:function(){return f({},a,{size:s})}}}var e={};return t.info=function(){var t={};return o(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function le(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function fe(t,r){function i(t,e,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i=vt();return o(t,function(t,o){if(t in E)return void(i[o]=E[t]);var s=t.match(r);if(!s)throw qi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,n?"controller bindings definition":"isolate scope definition");i[o]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||o},s[4]&&(E[t]=i[o])}),i}function s(t,e){var n={isolateScope:null,bindToController:null};if(w(t.scope)&&(t.bindToController===!0?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),w(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),w(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw qi("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!me(r,o))throw qi("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function c(t){var e=t.charAt(0);if(!e||e!==Cr(e))throw qi("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw qi("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}var u={},l="Directive",h=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,p=/(([\w\-]+)(?:\:([^;]+))?;?)/,$=_("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,S=/^(on[a-z]+|formaction)$/,E=vt();this.directive=function e(n,r){return pt(n,"directive"),k(n)?(c(n),ft(r,"directiveFactory"),u.hasOwnProperty(n)||(u[n]=[],t.factory(n+l,["$injector","$exceptionHandler",function(t,e){var r=[];return o(u[n],function(i,o){try{var s=t.invoke(i);C(s)?s={compile:g(s)}:!s.compile&&s.link&&(s.compile=g(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA",s.$$moduleName=i.$$moduleName,r.push(s)}catch(t){e(t)}}),r}])),u[n].push(r)):o(n,a(e)),this},this.aHrefSanitizationWhitelist=function(t){return b(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()};var A=!0;this.debugInfoEnabled=function(t){return b(t)?(A=t,this):A},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,r,i,a,c,g,E,O,N,M){function j(t,e){try{t.addClass(e)}catch(t){}}function D(t,n,r,i,o){t instanceof jr||(t=jr(t));for(var s=/\S+/,a=0,c=t.length;a<c;a++){var u=t[a];u.nodeType===ni&&u.nodeValue.match(s)&&Ot(u,t[a]=e.createElement("span"))}var l=R(t,n,t,r,i,o);D.$$addScopeClass(t);var f=null;return function(e,n,r){ft(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,s=r.transcludeControllers,a=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=B(a));var c;if(c="html"!==f?jr(et(f,jr("<div>").append(t).html())):n?wi.clone.call(t):t,s)for(var u in s)c.data("$"+u+"Controller",s[u].instance);return D.$$addScopeInfo(c,e),n&&n(c,e),l&&l(e,c,c,i),c}}function B(t){var e=t&&t[0];return e&&"foreignobject"!==I(e)&&e.toString().match(/SVG/)?"svg":"html"}function R(t,e,r,i,o,s){function a(t,r,i,o){var s,a,c,u,l,f,h,p,v;if(d){var g=r.length;for(v=new Array(g),l=0;l<m.length;l+=3)h=m[l],v[h]=r[h]}else v=r;for(l=0,f=m.length;l<f;)c=v[m[l++]],s=m[l++],a=m[l++],s?(s.scope?(u=t.$new(),D.$$addScopeInfo(jr(c),u)):u=t,p=s.transcludeOnThisElement?_(t,s.transclude,o):!s.templateOnThisElement&&o?o:!o&&e?_(t,e):null,s(a,u,c,i,p)):a&&a(t,c.childNodes,n,o)}for(var c,u,l,f,h,p,d,m=[],v=0;v<t.length;v++)c=new ct,u=q(t[v],[],c,0===v?i:n,o),l=u.length?z(u,t[v],c,e,r,null,[],[],s):null,l&&l.scope&&D.$$addScopeClass(c.$$element),h=l&&l.terminal||!(f=t[v].childNodes)||!f.length?null:R(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(m.push(v,l,h),p=!0,d=d||l),s=null;return p?a:null}function _(t,e,n){var r=function(r,i,o,s,a){return r||(r=t.$new(!1,a),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})};return r}function q(t,e,n,r,i){var o,s,a,c=t.nodeType,u=n.$attr;switch(c){case ti:s=I(t),J(e,he(s),"E",r,i);for(var l,f,d,m,v,g,$=t.attributes,y=0,b=$&&$.length;y<b;y++){var x=!1,S=!1;l=$[y],f=l.name,v=Wr(l.value),m=he(f),(g=dt.test(m))&&(f=f.replace(Ui,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var E=m.match(mt);E&&X(E[1])&&(x=f,S=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),d=he(f.toLowerCase()),u[d]=f,!g&&n.hasOwnProperty(d)||(n[d]=v,zt(t,d)&&(n[d]=!0)),rt(t,e,v,d,g),J(e,d,"A",r,i,x,S)}if("input"===s&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),a=t.className,w(a)&&(a=a.animVal),k(a)&&""!==a)for(;o=p.exec(a);)d=he(o[2]),J(e,d,"C",r,i)&&(n[d]=Wr(o[3])),a=a.substr(o.index+o[0].length);break;case ni:if(11===Mr)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===ni;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);tt(e,t.nodeValue);break;case ri:try{o=h.exec(t.nodeValue),o&&(d=he(o[1]),J(e,d,"M",r,i)&&(n[d]=Wr(o[2])))}catch(t){}}return e.sort(K),e}function U(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw qi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==ti&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return jr(r)}function F(t,e,n){return function(r,i,o,s,a){return i=U(i[0],e,n),t(r,i,o,s,a)}}function z(t,r,o,s,a,c,u,l,f){function h(t,e,n,r){t&&(n&&(t=F(t,n,r)),t.require=v.require,t.directiveName=$,(N===v||v.$$isolateScope)&&(t=ot(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=F(e,n,r)),e.require=v.require,e.directiveName=$,(N===v||v.$$isolateScope)&&(e=ot(e,{isolateScope:!0})),l.push(e))}function p(t,e,n,r){var i;if(k(e)){var o=e.match(x),s=e.substring(o[0].length),a=o[1]||o[3],c="?"===o[2];if("^^"===a?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var u="$"+s+"Controller";i=a?n.inheritedData(u):n.data(u)}if(!i&&!c)throw qi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(Hr(e)){i=[];for(var l=0,f=e.length;l<f;l++)i[l]=p(t,e[l],n,r)}return i||null}function d(t,e,n,r,i,o){var s=vt();for(var a in r){var c=r[a],u={$scope:c===N||c.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},l=c.controller;"@"==l&&(l=e[c.name]);var f=g(l,u,!0,c.controllerAs);s[c.name]=f,t.data("$"+c.name+"Controller",f.instance)}return s}function m(t,e,i,s,a){function c(t,e,r){var i;return T(t)||(r=e,e=t,t=n),R&&(i=v),r||(r=R?$.parent():$),a(t,e,i,r,j)}var f,h,m,v,g,$,y,b,w;r===i?(y=o,$=o.$$element):($=jr(i),y=new ct($,o)),m=e,N?h=e.$new(!0):A&&(m=e.$parent),a&&(g=c,g.$$boundTransclude=a),O&&(v=d($,y,g,O,h,e)),N&&(D.$$addScopeInfo($,h,!0,!(M&&(M===N||M===N.$$originalDirective))),D.$$addScopeClass($,!0),h.$$isolateBindings=N.$$isolateBindings,b=at(e,y,h,h.$$isolateBindings,N),b&&h.$on("$destroy",b));for(var x in v){var k=O[x],S=v[x],E=k.$$bindings.bindToController;S.identifier&&E&&(w=at(m,y,S.instance,E,k));var C=S();C!==S.instance&&(S.instance=C,$.data("$"+k.name+"Controller",C),w&&w(),w=at(m,y,S.instance,E,k))}for(L=0,z=u.length;L<z;L++)f=u[L],st(f,f.isolateScope?h:e,$,y,f.require&&p(f.directiveName,f.require,$,v),g);var j=e;for(N&&(N.template||null===N.templateUrl)&&(j=h),t&&t(j,i.childNodes,n,a),L=l.length-1;L>=0;L--)f=l[L],st(f,f.isolateScope?h:e,$,y,f.require&&p(f.directiveName,f.require,$,v),g)}f=f||{};for(var v,$,y,b,S,E=-Number.MAX_VALUE,A=f.newScopeDirective,O=f.controllerDirectives,N=f.newIsolateScopeDirective,M=f.templateDirective,j=f.nonTlbTranscludeDirective,P=!1,B=!1,R=f.hasElementTranscludeDirective,_=o.$$element=jr(r),I=c,V=s,L=0,z=t.length;L<z;L++){
v=t[L];var J=v.$$start,X=v.$$end;if(J&&(_=U(r,J,X)),y=n,E>v.priority)break;if((S=v.scope)&&(v.templateUrl||(w(S)?(Q("new/isolated scope",N||A,v,_),N=v):Q("new/isolated scope",N,v,_)),A=A||v),$=v.name,!v.templateUrl&&v.controller&&(S=v.controller,O=O||vt(),Q("'"+$+"' controller",O[$],v,_),O[$]=v),(S=v.transclude)&&(P=!0,v.$$tlb||(Q("transclusion",j,v,_),j=v),"element"==S?(R=!0,E=v.priority,y=_,_=o.$$element=jr(e.createComment(" "+$+": "+o[$]+" ")),r=_[0],it(a,H(y),r),V=D(y,s,E,I&&I.name,{nonTlbTranscludeDirective:j})):(y=jr(Nt(r)).contents(),_.empty(),V=D(y,s,n,n,{needsNewScope:v.$$isolateScope||v.$$newScope}))),v.template)if(B=!0,Q("template",M,v,_),M=v,S=C(v.template)?v.template(_,o):v.template,S=pt(S),v.replace){if(I=v,y=kt(S)?[]:de(et(v.templateNamespace,Wr(S))),r=y[0],1!=y.length||r.nodeType!==ti)throw qi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$,"");it(a,_,r);var K={$attr:{}},tt=q(r,[],K),nt=t.splice(L+1,t.length-(L+1));(N||A)&&W(tt,N,A),t=t.concat(tt).concat(nt),Y(o,K),z=t.length}else _.html(S);if(v.templateUrl)B=!0,Q("template",M,v,_),M=v,v.replace&&(I=v),m=G(t.splice(L,t.length-L),_,o,a,P&&V,u,l,{controllerDirectives:O,newScopeDirective:A!==v&&A,newIsolateScopeDirective:N,templateDirective:M,nonTlbTranscludeDirective:j}),z=t.length;else if(v.compile)try{b=v.compile(_,o,V),C(b)?h(null,b,J,X):b&&h(b.pre,b.post,J,X)}catch(t){i(t,Z(_))}v.terminal&&(m.terminal=!0,E=Math.max(E,v.priority))}return m.scope=A&&A.scope===!0,m.transcludeOnThisElement=P,m.templateOnThisElement=B,m.transclude=V,f.hasElementTranscludeDirective=R,m}function W(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=d(t[r],{$$isolateScope:e,$$newScope:n})}function J(e,n,r,o,a,c,f){if(n===a)return null;var h=null;if(u.hasOwnProperty(n))for(var p,m=t.get(n+l),v=0,g=m.length;v<g;v++)try{if(p=m[v],(y(o)||o>p.priority)&&p.restrict.indexOf(r)!=-1){if(c&&(p=d(p,{$$start:c,$$end:f})),!p.$$bindings){var $=p.$$bindings=s(p,p.name);w($.isolateScope)&&(p.$$isolateBindings=$.isolateScope)}e.push(p),h=p}}catch(t){i(t)}return h}function X(e){if(u.hasOwnProperty(e))for(var n,r=t.get(e+l),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function Y(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;o(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),o(e,function(e,o){"class"==o?(j(i,e),t.class=(t.class?t.class+" ":"")+e):"style"==o?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,r[o]=n[o])})}function G(t,e,n,r,i,s,c,u){var l,f,h=[],p=e[0],m=t.shift(),v=d(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),g=C(m.templateUrl)?m.templateUrl(e,n):m.templateUrl,$=m.templateNamespace;return e.empty(),a(g).then(function(a){var d,y,b,x;if(a=pt(a),m.replace){if(b=kt(a)?[]:de(et($,Wr(a))),d=b[0],1!=b.length||d.nodeType!==ti)throw qi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,g);y={$attr:{}},it(r,e,d);var k=q(d,[],y);w(m.scope)&&W(k,!0),t=k.concat(t),Y(n,y)}else d=p,e.html(a);for(t.unshift(v),l=z(t,d,n,i,e,m,s,c,u),o(r,function(t,n){t==d&&(r[n]=e[0])}),f=R(e[0].childNodes,i);h.length;){var S=h.shift(),E=h.shift(),C=h.shift(),A=h.shift(),O=e[0];if(!S.$$destroyed){if(E!==p){var T=E.className;u.hasElementTranscludeDirective&&m.replace||(O=Nt(d)),it(C,jr(E),O),j(jr(O),T)}x=l.transcludeOnThisElement?_(S,l.transclude,A):A,l(f,S,O,r,x)}}h=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(h?h.push(e,n,r,o):(l.transcludeOnThisElement&&(o=_(e,l.transclude,i)),l(f,e,n,r,o)))}}function K(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Q(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw qi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Z(r))}function tt(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),r=!!e.length;return r&&D.$$addBindingClass(e),function(t,e){var i=e.parent();r||D.$$addBindingClass(i),D.$$addBindingInfo(i,n.expressions),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function et(t,n){switch(t=Cr(t||"html")){case"svg":case"math":var r=e.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function nt(t,e){if("srcdoc"==e)return O.HTML;var n=I(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?O.RESOURCE_URL:void 0}function rt(t,e,n,i,o){var s=nt(t,i);o=$[i]||o;var a=r(n,!0,s,o);if(a){if("multiple"===i&&"select"===I(t))throw qi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(t));e.push({priority:100,compile:function(){return{pre:function(t,e,c){var u=c.$$observers||(c.$$observers=vt());if(S.test(i))throw qi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=c[i];l!==n&&(a=l&&r(l,!0,s,o),n=l),a&&(c[i]=a(t),(u[i]||(u[i]=[])).$$inter=!0,(c.$$observers&&c.$$observers[i].$$scope||t).$watch(a,function(t,e){"class"===i&&t!=e?c.$updateClass(t,e):c.$set(i,t)}))}}}})}}function it(t,n,r){var i,o,s=n[0],a=n.length,c=s.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]==s){t[i++]=r;for(var u=i,l=u+a-1,f=t.length;u<f;u++,l++)l<f?t[u]=t[l]:delete t[u];t.length-=a-1,t.context===s&&(t.context=r);break}c&&c.replaceChild(r,s);var h=e.createDocumentFragment();h.appendChild(s),jr.hasData(s)&&(jr.data(r,jr.data(s)),Pr?(Fr=!0,Pr.cleanData([s])):delete jr.cache[s[jr.expando]]);for(var p=1,d=n.length;p<d;p++){var m=n[p];jr(m).remove(),h.appendChild(m),delete n[p]}n[0]=r,n.length=1}function ot(t,e){return f(function(){return t.apply(null,arguments)},t,e)}function st(t,e,n,r,o,s){try{t(e,n,r,o,s)}catch(t){i(t,Z(n))}}function at(t,e,n,i,s){var a=[];return o(i,function(i,o){var u,l,f,h,p=i.attrName,d=i.optional,v=i.mode;switch(v){case"@":d||Ar.call(e,p)||(n[o]=e[p]=void 0),e.$observe(p,function(t){k(t)&&(n[o]=t)}),e.$$observers[p].$$scope=t,u=e[p],k(u)?n[o]=r(u)(t):P(u)&&(n[o]=u);break;case"=":if(!Ar.call(e,p)){if(d)break;e[p]=void 0}if(d&&!e[p])break;l=c(e[p]),h=l.literal?L:function(t,e){return t===e||t!==t&&e!==e},f=l.assign||function(){throw u=n[o]=l(t),qi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[p],p,s.name)},u=n[o]=l(t);var g=function(e){return h(e,n[o])||(h(e,u)?f(t,e=n[o]):n[o]=e),u=e};g.$stateful=!0;var $;$=i.collection?t.$watchCollection(e[p],g):t.$watch(c(e[p],g),null,l.literal),a.push($);break;case"&":if(l=e.hasOwnProperty(p)?c(e[p]):m,l===m&&d)break;n[o]=function(e){return l(t,e)}}}),a.length&&function(){for(var t=0,e=a.length;t<e;++t)a[t]()}}var ct=function(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t};ct.prototype={$normalize:he,$addClass:function(t){t&&t.length>0&&N.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&N.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=pe(t,e);n&&n.length&&N.addClass(this.$$element,n);var r=pe(e,t);r&&r.length&&N.removeClass(this.$$element,r)},$set:function(t,e,n,r){var s,a=this.$$element[0],c=zt(a,t),u=Wt(t),l=t;if(c?(this.$$element.prop(t,e),r=c):u&&(this[u]=e,l=u),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t],r||(this.$attr[t]=r=ut(t,"-"))),s=I(this.$$element),"a"===s&&"href"===t||"img"===s&&"src"===t)this[t]=e=M(e,"src"===t);else if("img"===s&&"srcset"===t&&b(e)){for(var f="",h=Wr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(h)?p:/(,)/,m=h.split(d),v=Math.floor(m.length/2),g=0;g<v;g++){var $=2*g;f+=M(Wr(m[$]),!0),f+=" "+Wr(m[$+1])}var w=Wr(m[2*g]).split(/\s/);f+=M(Wr(w[0]),!0),2===w.length&&(f+=" "+Wr(w[1])),this[t]=e=f}n!==!1&&(null===e||y(e)?this.$$element.removeAttr(r):this.$$element.attr(r,e));var x=this.$$observers;x&&o(x[l],function(t){try{t(e)}catch(t){i(t)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=vt()),i=r[t]||(r[t]=[]);return i.push(e),E.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||y(n[t])||e(n[t])}),function(){V(i,e)}}};var lt=r.startSymbol(),ht=r.endSymbol(),pt="{{"==lt&&"}}"==ht?v:function(t){return t.replace(/\{\{/g,lt).replace(/}}/g,ht)},dt=/^ngAttr[A-Z]/,mt=/^(.+)Start$/;return D.$$addBindingInfo=A?function(t,e){var n=t.data("$binding")||[];Hr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:m,D.$$addBindingClass=A?function(t){j(t,"ng-binding")}:m,D.$$addScopeInfo=A?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:m,D.$$addScopeClass=A?function(t,e){j(t,e?"ng-isolate-scope":"ng-scope")}:m,D}]}function he(t){return xt(t.replace(Ui,""))}function pe(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var s=r[o],a=0;a<i.length;a++)if(s==i[a])continue t;n+=(n.length>0?" ":"")+s}return n}function de(t){t=jr(t);var e=t.length;if(e<=1)return t;for(;e--;){var n=t[e];n.nodeType===ri&&Rr.call(t,e,1)}return t}function me(t,e){if(e&&k(e))return e;if(k(t)){var n=Fi.exec(t);if(n)return n[3]}}function ve(){var t={},e=!1;this.register=function(e,n){pt(e,"controller"),w(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){function s(t,e,n,i){if(!t||!w(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,a,c,u){var l,h,p,d;if(c=c===!0,u&&k(u)&&(d=u),k(r)){if(h=r.match(Fi),!h)throw Li("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=h[1],d=d||h[3],r=t.hasOwnProperty(p)?t[p]:dt(a.$scope,p,!0)||(e?dt(o,p,!0):n),ht(r,p,!0)}if(c){var m=(Hr(r)?r[r.length-1]:r).prototype;l=Object.create(m||null),d&&s(a,d,l,p||r.name);var v;return v=f(function(){var t=i.invoke(r,l,a,p);return t!==l&&(w(t)||C(t))&&(l=t,d&&s(a,d,l,p||r.name)),l},{instance:l,identifier:d})}return l=i.instantiate(r,a,p),d&&s(a,d,l,p||r.name),l}}]}function ge(){this.$get=["$window",function(t){return jr(t.document)}]}function $e(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function ye(t){return w(t)?E(t)?t.toISOString():J(t):t}function be(){this.$get=function(){return function(t){if(!t)return"";var e=[];return s(t,function(t,n){null===t||y(t)||(Hr(t)?o(t,function(t,r){e.push(rt(n)+"="+rt(ye(t)))}):e.push(rt(n)+"="+rt(ye(t))))}),e.join("&")}}}function we(){this.$get=function(){return function(t){function e(t,r,i){null===t||y(t)||(Hr(t)?o(t,function(t,n){e(t,r+"["+(w(t)?n:"")+"]")}):w(t)&&!E(t)?s(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(rt(r)+"="+rt(ye(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function xe(t,e){if(k(t)){var n=t.replace(Yi,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(zi)||ke(n))&&(t=X(n))}}return t}function ke(t){var e=t.match(Ji);return e&&Xi[e[0]].test(t)}function Se(t){function e(t,e){t&&(r[t]=r[t]?r[t]+", "+e:e)}var n,r=vt();return k(t)?o(t.split("\n"),function(t){n=t.indexOf(":"),e(Cr(Wr(t.substr(0,n))),Wr(t.substr(n+1)))}):w(t)&&o(t,function(t,n){e(Cr(n),Wr(t))}),r}function Ee(t){var e;return function(n){if(e||(e=Se(t)),n){var r=e[Cr(n)];return void 0===r&&(r=null),r}return e}}function Ce(t,e,n,r){return C(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function Ae(t){return 200<=t&&t<300}function Oe(){var t=this.defaults={transformResponse:[xe],transformRequest:[function(t){return!w(t)||N(t)||j(t)||M(t)?t:J(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:U(Wi),put:U(Wi),patch:U(Wi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return b(t)?(i=!!t,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,c,u,l,h,p){function d(e){function s(t){var e=f({},t);return e.data=Ce(t.data,t.headers,t.status,u.transformResponse),Ae(t.status)?e:h.reject(e)}function a(t,e){var n,r={};return o(t,function(t,i){C(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t}),r}function c(e){var n,r,i,o=t.headers,s=f({},e.headers);o=f({},o.common,o[Cr(e.method)]);t:for(n in o){r=Cr(n);for(i in s)if(Cr(i)===r)continue t;s[n]=o[n]}return a(s,U(e))}if(!Ur.isObject(e))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",e);if(!k(e.url))throw r("$http")("badreq","Http request configuration url must be a string. Received: {0}",e.url);var u=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);u.headers=c(e),u.method=Or(u.method),u.paramSerializer=k(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer;var l=function(e){var r=e.headers,i=Ce(e.data,Ee(r),n,e.transformRequest);return y(i)&&o(r,function(t,e){"content-type"===Cr(e)&&delete r[e]}),y(e.withCredentials)&&!y(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,i).then(s,s)},d=[l,n],m=h.when(u);for(o(S,function(t){(t.request||t.requestError)&&d.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)});d.length;){var v=d.shift(),$=d.shift();m=m.then(v,$)}return i?(m.success=function(t){return ht(t,"fn"),m.then(function(e){t(e.data,e.status,e.headers,u)}),m},m.error=function(t){return ht(t,"fn"),m.then(null,function(e){t(e.data,e.status,e.headers,u)}),m}):(m.success=Ki("success"),m.error=Ki("error")),m}function m(t){o(arguments,function(t){d[t]=function(e,n){return d(f({},n||{},{method:t,url:e}))}})}function v(t){o(arguments,function(t){d[t]=function(e,n,r){return d(f({},r||{},{method:t,url:e,data:n}))}})}function g(r,i){function o(t,n,r,i){function o(){s(n,t,r,i)}p&&(Ae(t)?p.put(S,[t,n,Se(r),i]):p.remove(S)),e?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function s(t,e,n,i){e=e>=-1?e:0,(Ae(e)?v.resolve:v.reject)({data:t,status:e,headers:Ee(n),config:r,statusText:i})}function u(t){s(t.data,t.status,U(t.headers()),t.statusText)}function f(){var t=d.pendingRequests.indexOf(r);t!==-1&&d.pendingRequests.splice(t,1)}var p,m,v=h.defer(),g=v.promise,k=r.headers,S=$(r.url,r.paramSerializer(r.params));if(d.pendingRequests.push(r),g.then(f,f),!r.cache&&!t.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(p=w(r.cache)?r.cache:w(t.cache)?t.cache:x),p&&(m=p.get(S),b(m)?D(m)?m.then(u,u):Hr(m)?s(m[1],m[0],U(m[2]),m[3]):s(m,200,{},"OK"):p.put(S,g)),y(m)){var E=Nn(r.url)?c()[r.xsrfCookieName||t.xsrfCookieName]:n;E&&(k[r.xsrfHeaderName||t.xsrfHeaderName]=E),a(r.method,S,i,o,k,r.timeout,r.withCredentials,r.responseType)}return g}function $(t,e){return e.length>0&&(t+=(t.indexOf("?")==-1?"?":"&")+e),t}var x=u("$http");t.paramSerializer=k(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var S=[];return o(s,function(t){S.unshift(k(t)?p.get(t):p.invoke(t))}),d.pendingRequests=[],m("get","delete","head","jsonp"),v("post","put","patch"),d.defaults=t,d}]}function Te(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Ne(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return Me(t,r,t.defer,e.angular.callbacks,n[0])}]}function Me(t,e,n,r,i){function s(t,e,n){var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){li(o,"load",s),li(o,"error",s),i.body.removeChild(o),o=null;var a=-1,c="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),c=t.type,a="error"===t.type?404:200),n&&n(a,c)},ui(o,"load",s),ui(o,"error",s),i.body.appendChild(o),s}return function(i,a,c,u,l,f,h,p){function d(){$&&$(),w&&w.abort()}function v(e,r,i,o,s){b(k)&&n.cancel(k),$=w=null,e(r,i,o,s),t.$$completeOutstandingRequest(m)}if(t.$$incOutstandingRequestCount(),a=a||t.url(),"jsonp"==Cr(i)){var g="_"+(r.counter++).toString(36);r[g]=function(t){r[g].data=t,r[g].called=!0};var $=s(a.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(t,e){v(u,t,r[g].data,"",e),r[g]=m})}else{var w=e(i,a);w.open(i,a,!0),o(l,function(t,e){b(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"==Tn(a).protocol?404:0),v(u,n,e,w.getAllResponseHeaders(),t)};var x=function(){v(u,-1,null,null,"")};if(w.onerror=x,w.onabort=x,h&&(w.withCredentials=!0),p)try{w.responseType=p}catch(t){if("json"!==p)throw t}w.send(y(c)?null:c)}if(f>0)var k=n(d,f);else D(f)&&f.then(d)}}function je(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function s(n){return n.replace(h,t).replace(p,e)}function a(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=J(t)}return t}function c(o,c,h,p){function d(t){try{return t=O(t),p&&!b(t)?t:a(t)}catch(t){r(Zi.interr(o,t))}}p=!!p;for(var m,v,g,$=0,w=[],x=[],k=o.length,S=[],E=[];$<k;){if((m=o.indexOf(t,$))==-1||(v=o.indexOf(e,m+u))==-1){$!==k&&S.push(s(o.substring($)));break}$!==m&&S.push(s(o.substring($,m))),g=o.substring(m+u,v),w.push(g),x.push(n(g,d)),$=v+l,E.push(S.length),S.push("")}if(h&&S.length>1&&Zi.throwNoconcat(o),!c||w.length){var A=function(t){for(var e=0,n=w.length;e<n;e++){if(p&&y(t[e]))return;S[E[e]]=t[e]}return S.join("")},O=function(t){return h?i.getTrusted(h,t):i.valueOf(t)};return f(function(t){var e=0,n=w.length,i=new Array(n);try{for(;e<n;e++)i[e]=x[e](t);return A(i)}catch(t){r(Zi.interr(o,t))}},{exp:o,expressions:w,$$watchDelegate:function(t,e){var n;return t.$watchGroup(x,function(r,i){var o=A(r);C(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var u=t.length,l=e.length,h=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return c.startSymbol=function(){return t},c.endSymbol=function(){return e},c}]}function Pe(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){function i(i,s,a,c){var u=arguments.length>4,l=u?H(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,d=b(c)&&!c,m=(d?r:n).defer(),v=m.promise;return a=b(a)?a:0,v.then(null,null,u?function(){i.apply(null,l)}:i),v.$$intervalId=f(function(){m.notify(p++),a>0&&p>=a&&(m.resolve(p),h(v.$$intervalId),delete o[v.$$intervalId]),d||t.$apply()},s),o[v.$$intervalId]=m,v}var o={};return i.cancel=function(t){return!!(t&&t.$$intervalId in o)&&(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},i}]}function De(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=nt(e[n]);return e.join("/")}function Be(t,e){var n=Tn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=p(n.port)||to[n.protocol]||null}function Re(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=Tn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=tt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function _e(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function Ie(t){var e=t.indexOf("#");return e==-1?t:t.substr(0,e)}function Ve(t){return t.replace(/(#.+)|#$/,"$1")}function qe(t){return t.substr(0,Ie(t).lastIndexOf("/")+1)}function Ue(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Le(t,e,n){this.$$html5=!0,n=n||"",Be(t,this),this.$$parse=function(t){var n=_e(e,t);if(!k(n))throw eo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Re(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=et(this.$$search),n=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=De(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s,a;return b(o=_e(t,r))?(s=o,a=b(o=_e(n,o))?e+(_e("/",o)||o):t+s):b(o=_e(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a}}function Fe(t,e,n){Be(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var o,s=_e(t,r)||_e(e,r);y(s)||"#"!==s.charAt(0)?this.$$html5?o=s:(o="",y(s)&&(t=r,this.replace())):(o=_e(n,s),y(o)&&(o=s)),Re(o,this),this.$$path=i(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=De(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Ie(t)==Ie(e)&&(this.$$parse(e),!0)}}function He(t,e,n){this.$$html5=!0,Fe.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s;return t==Ie(r)?o=r:(s=_e(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=De(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function ze(t){return function(){return this[t]}}function We(t,e){return function(n){return y(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Je(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return b(e)?(t=e,this):t},this.html5Mode=function(t){return P(t)?(e.enabled=t,this):w(t)?(P(t.enabled)&&(e.enabled=t.enabled),P(t.requireBase)&&(e.requireBase=t.requireBase),P(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){function a(t,e,n){var i=u.url(),o=u.$$state;try{r.url(t,e,n),u.$$state=r.state()}catch(t){throw u.url(i),u.$$state=o,t}}function c(t,e){n.$broadcast("$locationChangeSuccess",u.absUrl(),t,u.$$state,e)}var u,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw eo("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Ue(p)+(h||"/"),l=i.history?Le:He}else f=Ie(p),l=Fe;var d=qe(f);u=new l(f,d,"#"+t),u.$$parseLinkUrl(p,p),u.$$state=r.state();var m=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=jr(t.target);"a"!==I(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var a=i.prop("href"),c=i.attr("href")||i.attr("xlink:href");w(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Tn(a.animVal).href),m.test(a)||!a||i.attr("target")||t.isDefaultPrevented()||u.$$parseLinkUrl(a,c)&&(t.preventDefault(),u.absUrl()!=r.url()&&(n.$apply(),s.angular["ff-684208-preventDefault"]=!0))}}),Ve(u.absUrl())!=Ve(p)&&r.url(u.absUrl(),!0);var v=!0;return r.onUrlChange(function(t,e){return y(_e(d,t))?void(s.location.href=t):(n.$evalAsync(function(){var r,i=u.absUrl(),o=u.$$state;t=Ve(t),u.$$parse(t),u.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,u.absUrl()===t&&(r?(u.$$parse(i),u.$$state=o,a(i,!1,o)):(v=!1,c(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var t=Ve(r.url()),e=Ve(u.absUrl()),o=r.state(),s=u.$$replace,l=t!==e||u.$$html5&&i.history&&o!==u.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var e=u.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,u.$$state,o).defaultPrevented;u.absUrl()===e&&(r?(u.$$parse(t),u.$$state=o):(l&&a(e,s,o===u.$$state?null:u.$$state),c(t,o)))})),u.$$replace=!1}),u}]}function Xe(){var t=!0,e=this;this.debugEnabled=function(e){return b(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack?t=t.message&&t.stack.indexOf(t.message)===-1?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function i(t){var e=n.console||{},i=e[t]||e.log||m,s=!1;try{s=!!i.apply}catch(t){}return s?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Ye(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw ro("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Ge(t,e){if(t+="",!k(t))throw ro("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Ke(t,e){if(t){if(t.constructor===t)throw ro("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw ro("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw ro("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw ro("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function Ze(t,e){if(t){if(t.constructor===t)throw ro("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===io||t===oo||t===so)throw ro("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function Qe(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw ro("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function tn(t,e){return"undefined"!=typeof t?t:e}function en(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function nn(t,e){var n=t(e);return!n.$stateful}function rn(t,e){var n,r;switch(t.type){case lo.Program:n=!0,o(t.body,function(t){rn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case lo.Literal:t.constant=!0,t.toWatch=[];break;case lo.UnaryExpression:rn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case lo.BinaryExpression:rn(t.left,e),rn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case lo.LogicalExpression:rn(t.left,e),rn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case lo.ConditionalExpression:rn(t.test,e),rn(t.alternate,e),rn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case lo.Identifier:t.constant=!1,t.toWatch=[t];break;case lo.MemberExpression:rn(t.object,e),t.computed&&rn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case lo.CallExpression:n=!!t.filter&&nn(e,t.callee.name),r=[],o(t.arguments,function(t){rn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&nn(e,t.callee.name)?r:[t];break;case lo.AssignmentExpression:rn(t.left,e),rn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case lo.ArrayExpression:n=!0,r=[],o(t.elements,function(t){rn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case lo.ObjectExpression:n=!0,r=[],o(t.properties,function(t){rn(t.value,e),n=n&&t.value.constant,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case lo.ThisExpression:t.constant=!1,t.toWatch=[]}}function on(t){if(1==t.length){var e=t[0].expression,r=e.toWatch;return 1!==r.length?r:r[0]!==e?r:n}}function sn(t){return t.type===lo.Identifier||t.type===lo.MemberExpression}function an(t){if(1===t.body.length&&sn(t.body[0].expression))return{type:lo.AssignmentExpression,left:t.body[0].expression,right:{type:lo.NGValueParameter},operator:"="}}function cn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===lo.Literal||t.body[0].expression.type===lo.ArrayExpression||t.body[0].expression.type===lo.ObjectExpression)}function un(t){return t.constant}function ln(t,e){this.astBuilder=t,this.$filter=e}function fn(t,e){this.astBuilder=t,this.$filter=e}function hn(t){return"constructor"==t}function pn(t){return C(t.valueOf)?t.valueOf():ho.call(t)}function dn(){var t=vt(),e=vt();this.$get=["$filter",function(r){function i(n,i,o){var a,p,$;switch(o=o||g,typeof n){case"string":n=n.trim(),$=n;var y=o?e:t;if(a=y[$],!a){":"===n.charAt(0)&&":"===n.charAt(1)&&(p=!0,n=n.substring(2));var b=o?v:d,w=new uo(b),x=new fo(w,r,b);a=x.parse(n),a.constant?a.$$watchDelegate=f:p?a.$$watchDelegate=a.literal?l:u:a.inputs&&(a.$$watchDelegate=c),o&&(a=s(a)),y[$]=a}return h(a,i);case"function":return h(n,i);default:return h(m,i)}}function s(t){function e(e,n,r,i){var o=g;g=!0;try{return t(e,n,r,i)}finally{g=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=s(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=s(t.inputs[n]);return e.inputs=t.inputs,e}function a(t,e){return null==t||null==e?t===e:("object"!=typeof t||(t=pn(t),"object"!=typeof t))&&(t===e||t!==t&&e!==e)}function c(t,e,r,i,o){var s,c=i.inputs;if(1===c.length){var u=a;return c=c[0],t.$watch(function(t){var e=c(t);return a(e,u)||(s=i(t,n,n,[e]),u=e&&pn(e)),s},e,r,o)}for(var l=[],f=[],h=0,p=c.length;h<p;h++)l[h]=a,f[h]=null;return t.$watch(function(t){for(var e=!1,r=0,o=c.length;r<o;r++){var u=c[r](t);(e||(e=!a(u,l[r])))&&(f[r]=u,l[r]=u&&pn(u))}return e&&(s=i(t,n,n,f)),s},e,r,o)}function u(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,C(e)&&e.apply(this,arguments),b(t)&&r.$$postDigest(function(){b(o)&&i()})},n)}function l(t,e,n,r){function i(t){var e=!0;return o(t,function(t){b(t)||(e=!1)}),e}var s,a;return s=t.$watch(function(t){return r(t)},function(t,n,r){a=t,C(e)&&e.call(this,t,n,r),i(t)&&r.$$postDigest(function(){i(a)&&s()})},n)}function f(t,e,n,r){var i;return i=t.$watch(function(t){return r(t)},function(t,n,r){C(e)&&e.apply(this,arguments),i()},n)}function h(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==l&&n!==u,o=i?function(n,i,o,s){var a=r&&s?s[0]:t(n,i,o,s);return e(a,n,i)}:function(n,r,i,o){var s=t(n,r,i,o),a=e(s,n,r);return b(s)?a:s};return t.$$watchDelegate&&t.$$watchDelegate!==c?o.$$watchDelegate=t.$$watchDelegate:e.$stateful||(o.$$watchDelegate=c,r=!t.inputs,o.inputs=t.inputs?t.inputs:[t]),o}var p=Xr().noUnsafeEval,d={csp:p,expensiveChecks:!1},v={csp:p,expensiveChecks:!0},g=!1;return i.$$runningExpensiveChecks=function(){return g},i}]}function mn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return gn(function(e){t.$evalAsync(e)},e)}]}function vn(){this.$get=["$browser","$exceptionHandler",function(t,e){return gn(function(e){t.defer(e)},e)}]}function gn(t,e){function i(t,e,n){function r(e){return function(n){i||(i=!0,e.call(t,n))}}var i=!1;return[r(e),r(n)]}function s(){this.$$state={status:0}}function a(t,e){return function(n){e.call(t,n)}}function c(t){var r,i,o;o=t.pending,t.processScheduled=!1,t.pending=n;for(var s=0,a=o.length;s<a;++s){i=o[s][0],r=o[s][t.status];try{C(r)?i.resolve(r(t.value)):1===t.status?i.resolve(t.value):i.reject(t.value)}catch(t){i.reject(t),e(t)}}}function u(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){c(e)}))}function l(){this.promise=new s,this.resolve=a(this,this.resolve),this.reject=a(this,this.reject),this.notify=a(this,this.notify)}function h(t){var e=new l,n=0,r=Hr(t)?[]:{};return o(t,function(t,i){n++,$(t).then(function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))},function(t){r.hasOwnProperty(i)||e.reject(t)})}),0===n&&e.resolve(r),e.promise}var p=r("$q",TypeError),d=function(){return new l};f(s.prototype,{then:function(t,e,n){if(y(t)&&y(e)&&y(n))return this;var r=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&u(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return g(e,!0,t)},function(e){return g(e,!1,t)},e)}}),f(l.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t));
},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(w(t)||C(t))&&(n=t&&t.then),C(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,u(this.promise.$$state))}catch(t){r[1](t),e(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,u(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,s=r.length;o<s;o++){i=r[o][0],t=r[o][3];try{i.notify(C(t)?t(n):n)}catch(t){e(t)}}})}});var m=function(t){var e=new l;return e.reject(t),e.promise},v=function(t,e){var n=new l;return e?n.resolve(t):n.reject(t),n.promise},g=function(t,e,n){var r=null;try{C(n)&&(r=n())}catch(t){return v(t,!1)}return D(r)?r.then(function(){return v(t,e)},function(t){return v(t,!1)}):v(t,e)},$=function(t,e,n,r){var i=new l;return i.resolve(t),i.promise.then(e,n,r)},b=$,x=function t(e){function n(t){i.resolve(t)}function r(t){i.reject(t)}if(!C(e))throw p("norslvr","Expected resolverFn, got '{0}'",e);if(!(this instanceof t))return new t(e);var i=new l;return e(n,r),i.promise};return x.defer=d,x.reject=m,x.when=$,x.resolve=b,x.all=h,x}function $n(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function yn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=c(),this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=r("$rootScope"),s=null,a=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,u,l,f){function h(t){t.currentScope.$$destroyed=!0}function p(t){9===Mr&&(t.$$childHead&&p(t.$$childHead),t.$$nextSibling&&p(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function d(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function v(t){if(E.$$phase)throw n("inprog","{0} already in progress",E.$$phase);E.$$phase=t}function g(){E.$$phase=null}function $(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function b(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function x(){}function k(){for(;T.length;)try{T.shift()()}catch(t){u(t)}a=null}function S(){null===a&&(a=f.defer(function(){E.$apply(k)}))}d.prototype={constructor:d,$new:function(e,n){var r;return n=n||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",h),r},$watch:function(t,e,n,r){var i=l(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,a=o.$$watchers,c={fn:e,last:x,get:i,exp:r||t,eq:!!n};return s=null,C(e)||(c.fn=m),a||(a=o.$$watchers=[]),a.unshift(c),$(this,1),function(){V(a,c)>=0&&$(o,-1),s=null}},$watchGroup:function(t,e){function n(){c=!1,u?(u=!1,e(i,i,a)):e(i,r,a)}var r=new Array(t.length),i=new Array(t.length),s=[],a=this,c=!1,u=!0;if(!t.length){var l=!0;return a.$evalAsync(function(){l&&e(i,i,a)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){i[0]=t,r[0]=n,e(i,t===n?i:r,o)}):(o(t,function(t,e){var o=a.$watch(t,function(t,o){i[e]=t,r[e]=o,c||(c=!0,a.$evalAsync(n))});s.push(o)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(t,e){function n(t){o=t;var e,n,r,a,c;if(!y(o)){if(w(o))if(i(o)){s!==p&&(s=p,v=s.length=0,f++),e=o.length,v!==e&&(f++,s.length=v=e);for(var u=0;u<e;u++)c=s[u],a=o[u],r=c!==c&&a!==a,r||c===a||(f++,s[u]=a)}else{s!==d&&(s=d={},v=0,f++),e=0;for(n in o)Ar.call(o,n)&&(e++,a=o[n],c=s[n],n in s?(r=c!==c&&a!==a,r||c===a||(f++,s[n]=a)):(v++,s[n]=a,f++));if(v>e){f++;for(n in s)Ar.call(o,n)||(v--,delete s[n])}}else s!==o&&(s=o,f++);return f}}function r(){if(m?(m=!1,e(o,o,c)):e(o,a,c),u)if(w(o))if(i(o)){a=new Array(o.length);for(var t=0;t<o.length;t++)a[t]=o[t]}else{a={};for(var n in o)Ar.call(o,n)&&(a[n]=o[n])}else a=o}n.$stateful=!0;var o,s,a,c=this,u=e.length>1,f=0,h=l(t,n),p=[],d={},m=!0,v=0;return this.$watch(h,r)},$digest:function(){var t,r,i,o,c,l,h,p,d,m,$,y,b=e,w=this,S=[];v("$digest"),f.$$checkUrlChange(),this===E&&null!==a&&(f.defer.cancel(a),k()),s=null;do{for(p=!1,m=w;A.length;){try{y=A.shift(),y.scope.$eval(y.expression,y.locals)}catch(t){u(t)}s=null}t:do{if(l=m.$$watchers)for(h=l.length;h--;)try{if(t=l[h])if(c=t.get,(r=c(m))===(i=t.last)||(t.eq?L(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(t===s){p=!1;break t}}else p=!0,s=t,t.last=t.eq?q(r,null):r,o=t.fn,o(r,i===x?r:i,m),b<5&&($=4-b,S[$]||(S[$]=[]),S[$].push({msg:C(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch(t){u(t)}if(!(d=m.$$watchersCount&&m.$$childHead||m!==w&&m.$$nextSibling))for(;m!==w&&!(d=m.$$nextSibling);)m=m.$parent}while(m=d);if((p||A.length)&&!b--)throw g(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,S)}while(p||A.length);for(g();O.length;)try{O.shift()()}catch(t){u(t)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===E&&f.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var e in this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$$nextSibling=null,p(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){E.$$phase||A.length||f.defer(function(){A.length&&E.$digest()}),A.push({scope:this,expression:l(t),locals:e})},$$postDigest:function(t){O.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{g()}}catch(t){u(t)}finally{try{E.$digest()}catch(t){throw u(t),t}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&T.push(e),t=l(t),S()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);r!==-1&&(n[r]=null,b(i,1,t))}},$emit:function(t,e){var n,r,i,o=[],s=this,a=!1,c={name:t,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=F([c],arguments,1);do{for(n=s.$$listeners[t]||o,c.currentScope=s,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,l)}catch(t){u(t)}else n.splice(r,1),r--,i--;if(a)return c.currentScope=null,c;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(t,e){var n=this,r=n,i=n,o={name:t,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return o;for(var s,a,c,l=F([o],arguments,1);r=i;){for(o.currentScope=r,s=r.$$listeners[t]||[],a=0,c=s.length;a<c;a++)if(s[a])try{s[a].apply(null,l)}catch(t){u(t)}else s.splice(a,1),a--,c--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var E=new d,A=E.$$asyncQueue=[],O=E.$$postDigestQueue=[],T=E.$$applyAsyncQueue=[];return E}]}function bn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=Tn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function wn(t){if("self"===t)return t;if(k(t)){if(t.indexOf("***")>-1)throw po("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Jr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(A(t))return new RegExp("^"+t.source+"$");throw po("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function xn(t){var e=[];return b(t)&&o(t,function(t){e.push(wn(t))}),e}function kn(){this.SCE_CONTEXTS=mo;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=xn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=xn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Nn(e):!!t.exec(e.href)}function i(n){var i,o,s=Tn(n.toString()),a=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],s)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(r(e[i],s)){a=!1;break}return a}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function s(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw po("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||y(e)||""===e)return e;if("string"!=typeof e)throw po("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function a(t){return t instanceof l?t.$$unwrapTrustedValue():t}function c(t,e){if(null===e||y(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===mo.RESOURCE_URL){if(i(e))return e;throw po("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===mo.HTML)return u(e);throw po("unsafe","Attempting to use an unsafe value in a safe context.")}var u=function(t){throw po("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(u=n.get("$sanitize"));var l=o(),f={};return f[mo.HTML]=o(l),f[mo.CSS]=o(l),f[mo.URL]=o(l),f[mo.JS]=o(l),f[mo.RESOURCE_URL]=o(f[mo.URL]),{trustAs:s,getTrusted:c,valueOf:a}}]}function Sn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Mr<8)throw po("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=U(mo);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=v),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return o(mo,function(t,e){var n=Cr(e);r[xt("parse_as_"+n)]=function(e){return i(t,e)},r[xt("get_trusted_"+n)]=function(e){return s(t,e)},r[xt("trust_as_"+n)]=function(e){return a(t,e)}}),r}]}function En(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=p((/android (\d+)/.exec(Cr((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,u=a.body&&a.body.style,l=!1,f=!1;if(u){for(var h in u)if(r=c.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in u&&"webkit"),l=!!("transition"in u||n+"Transition"in u),f=!!("animation"in u||n+"Animation"in u),!o||l&&f||(l=k(u.webkitTransition),f=k(u.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||o<4||s),hasEvent:function(t){if("input"===t&&Mr<=11)return!1;if(y(i[t])){var e=a.createElement("div");i[t]="on"+t in e}return i[t]},csp:Xr(),vendorPrefix:n,transitions:l,animations:f,android:o}}]}function Cn(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,s){function a(t){if(!s)throw qi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText);return n.reject(t)}i.totalPendingRequests++,k(o)&&!y(t.get(o))||(o=r.getTrustedResourceUrl(o));var c=e.defaults&&e.defaults.transformResponse;Hr(c)?c=c.filter(function(t){return t!==xe}):c===xe&&(c=null);var u={cache:t,transformResponse:c};return e.get(o,u).finally(function(){i.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},a)}return i.totalPendingRequests=0,i}]}function An(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return o(r,function(t){var r=Ur.element(t).data("$binding");r&&o(r,function(r){if(n){var o=new RegExp("(^|\\s)"+Jr(e)+"(\\s|\\||$)");o.test(r)&&i.push(t)}else r.indexOf(e)!=-1&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",s="["+r[i]+"model"+o+'"'+e+'"]',a=t.querySelectorAll(s);if(a.length)return a}},r.getLocation=function(){return n.url()},r.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},r.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},r}]}function On(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,a,c){C(o)||(c=a,a=o,o=m);var u,l=H(arguments,3),f=b(c)&&!c,h=(f?r:n).defer(),p=h.promise;return u=e.defer(function(){try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[p.$$timeoutId]}f||t.$apply()},a),p.$$timeoutId=u,s[u]=h,p}var s={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in s)&&(s[t.$$timeoutId].reject("canceled"),delete s[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function Tn(t){var e=t;return Mr&&(vo.setAttribute("href",e),e=vo.href),vo.setAttribute("href",e),{href:vo.href,protocol:vo.protocol?vo.protocol.replace(/:$/,""):"",host:vo.host,search:vo.search?vo.search.replace(/^\?/,""):"",hash:vo.hash?vo.hash.replace(/^#/,""):"",hostname:vo.hostname,port:vo.port,pathname:"/"===vo.pathname.charAt(0)?vo.pathname:"/"+vo.pathname}}function Nn(t){var e=k(t)?Tn(t):t;return e.protocol===go.protocol&&e.host===go.host}function Mn(){this.$get=g(t)}function jn(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,s,a,c,u=n.cookie||"";if(u!==i)for(i=u,t=i.split("; "),r={},s=0;s<t.length;s++)o=t[s],a=o.indexOf("="),a>0&&(c=e(o.substring(0,a)),y(r[c])&&(r[c]=e(o.substring(a+1))));return r}}function Pn(){this.$get=jn}function Dn(t){function e(r,i){if(w(r)){var s={};return o(r,function(t,n){s[n]=e(n,t)}),s}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Vn),e("date",tr),e("filter",Bn),e("json",er),e("limitTo",nr),e("lowercase",So),e("number",qn),e("orderBy",rr),e("uppercase",Eo)}function Bn(){return function(t,e,n){if(!i(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var o,s,a=In(e);switch(a){case"function":o=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=Rn(e,n,s);break;default:return t}return Array.prototype.filter.call(t,o)}}function Rn(t,e,n){var r,i=w(t)&&"$"in t;return e===!0?e=L:C(e)||(e=function(t,e){return!y(t)&&(null===t||null===e?t===e:!(w(e)||w(t)&&!$(t))&&(t=Cr(""+t),e=Cr(""+e),t.indexOf(e)!==-1))}),r=function(r){return i&&!w(r)?_n(r,t.$,e,!1):_n(r,t,e,n)}}function _n(t,e,n,r,i){var o=In(t),s=In(e);if("string"===s&&"!"===e.charAt(0))return!_n(t,e.substring(1),n,r);if(Hr(t))return t.some(function(t){return _n(t,e,n,r)});switch(o){case"object":var a;if(r){for(a in t)if("$"!==a.charAt(0)&&_n(t[a],e,n,!0))return!0;return!i&&_n(t,e,n,!1)}if("object"===s){for(a in e){var c=e[a];if(!C(c)&&!y(c)){var u="$"===a,l=u?t:t[a];if(!_n(l,c,n,u,u))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function In(t){return null===t?"null":typeof t}function Vn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return y(n)&&(n=e.CURRENCY_SYM),y(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Fn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function qn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Fn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Un(t){var e,n,r,i,o,s=0;for((n=t.indexOf(yo))>-1&&(t=t.replace(yo,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==bo;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==bo;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>$o&&(e=e.splice(0,$o-1),s=n-1,n=1),{d:e,e:s,i:n}}function Ln(t,e,n,r){var i=t.d,o=i.length-t.i;e=y(e)?Math.min(Math.max(n,o),r):+e;var s=e+t.i,a=i[s];if(s>0)i.splice(s);else{t.i=1,i.length=s=e+1;for(var c=0;c<s;c++)i[c]=0}for(a>=5&&i[s-1]++;o<e;o++)i.push(0);var u=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);u&&(i.unshift(u),t.i++)}function Fn(t,e,n,r,i){if(!k(t)&&!S(t)||isNaN(t))return"";var o,s=!isFinite(t),a=!1,c=Math.abs(t)+"",u="";if(s)u="∞";else{o=Un(c),Ln(o,i,e.minFrac,e.maxFrac);var l=o.d,f=o.i,h=o.e,p=[];for(a=l.reduce(function(t,e){return t&&!e},!0);f<0;)l.unshift(0),f++;f>0?p=l.splice(f,l.length):(p=l,l=[0]);var d=[];for(l.length>=e.lgSize&&d.unshift(l.splice(-e.lgSize,l.length).join(""));l.length>e.gSize;)d.unshift(l.splice(-e.gSize,l.length).join(""));l.length&&d.unshift(l.join("")),u=d.join(n),p.length&&(u+=r+p.join("")),h&&(u+="e+"+h)}return t<0&&!a?e.negPre+u+e.negSuf:e.posPre+u+e.posSuf}function Hn(t,e,n){var r="";for(t<0&&(r="-",t=-t),t=""+t;t.length<e;)t=bo+t;return n&&(t=t.substr(t.length-e)),r+t}function zn(t,e,n,r){return n=n||0,function(i){var o=i["get"+t]();return(n>0||o>-n)&&(o+=n),0===o&&n==-12&&(o=12),Hn(o,e,r)}}function Wn(t,e){return function(n,r){var i=n["get"+t](),o=Or(e?"SHORT"+t:t);return r[o][i]}}function Jn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Hn(Math[r>0?"floor":"ceil"](r/60),2)+Hn(Math.abs(r%60),2)}function Xn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Yn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Gn(t){return function(e){var n=Xn(e.getFullYear()),r=Yn(e),i=+r-+n,o=1+Math.round(i/6048e5);return Hn(o,t)}}function Kn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Zn(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function Qn(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function tr(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,s=e[8]?r.setUTCFullYear:r.setFullYear,a=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=p(e[9]+e[10]),o=p(e[9]+e[11])),s.call(r,p(e[1]),p(e[2])-1,p(e[3]));var c=p(e[4]||0)-i,u=p(e[5]||0)-o,l=p(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return a.call(r,c,u,l,f),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var s,a,c="",u=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,k(n)&&(n=ko.test(n)?p(n):e(n)),S(n)&&(n=new Date(n)),!E(n)||!isFinite(n.getTime()))return n;for(;r;)a=xo.exec(r),a?(u=F(u,a,1),r=u.pop()):(u.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=Y(i,l),n=K(n,i,!0)),o(u,function(e){s=wo[e],c+=s?s(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function er(){return function(t,e){return y(e)&&(e=2),J(t,e)}}function nr(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):p(e),isNaN(e)?t:(S(t)&&(t=t.toString()),Hr(t)||k(t)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function rr(t){function e(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=v;if(C(e))i=e;else if(k(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function r(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),n(t))?t:$(t)&&(t=t.toString(),n(t))?t:e}function o(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=r(t,e)),{value:t,type:n}}function s(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value<e.value?-1:1):n=t.type<e.type?-1:1,n}return function(t,n,r){function a(t,e){return{value:t,predicateValues:u.map(function(n){return o(n.get(t),e)})}}function c(t,e){for(var n=0,r=0,i=u.length;r<i&&!(n=s(t.predicateValues[r],e.predicateValues[r])*u[r].descending);++r);return n}if(!i(t))return t;Hr(n)||(n=[n]),0===n.length&&(n=["+"]);var u=e(n,r);u.push({get:function(){return{}},descending:r?-1:1});var l=Array.prototype.map.call(t,a);return l.sort(c),t=l.map(function(t){return t.value})}}function ir(t){return C(t)&&(t={link:t}),t.restrict=t.restrict||"AC",g(t)}function or(t,e){t.$name=e}function sr(t,e,r,i,s){var a=this,c=[];a.$error={},a.$$success={},a.$pending=n,a.$name=s(e.name||e.ngForm||"")(r),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Oo,a.$rollbackViewValue=function(){o(c,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){o(c,function(t){t.$commitViewValue()})},a.$addControl=function(t){pt(t.$name,"input"),c.push(t),t.$name&&(a[t.$name]=t),t.$$parentForm=a},a.$$renameControl=function(t,e){var n=t.$name;a[n]===t&&delete a[n],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],o(a.$pending,function(e,n){a.$setValidity(n,null,t)}),o(a.$error,function(e,n){a.$setValidity(n,null,t)}),o(a.$$success,function(e,n){a.$setValidity(n,null,t)}),V(c,t),t.$$parentForm=Oo},wr({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(V(r,n),0===r.length&&delete t[e])},$animate:i}),a.$setDirty=function(){i.removeClass(t,hs),i.addClass(t,ps),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(t,hs,ps+" "+To),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,o(c,function(t){t.$setPristine()})},a.$setUntouched=function(){o(c,function(t){t.$setUntouched()})},a.$setSubmitted=function(){i.addClass(t,To),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function ar(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function cr(t,e,n,r,i,o){ur(t,e,n,r,i,o),ar(r)}function ur(t,e,n,r,i,o){var s=Cr(e[0].type);if(!i.android){var a=!1;e.on("compositionstart",function(t){a=!0}),e.on("compositionend",function(){a=!1,u()})}var c,u=function(t){if(c&&(o.defer.cancel(c),c=null),!a){var i=e.val(),u=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Wr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))e.on("input",u);else{var l=function(t,e,n){c||(c=o.defer(function(){c=null,e&&e.value===n||u(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",l)}e.on("change",u),Fo[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(Lo,function(t){if(!c){var e=this[Er],n=e.badInput,r=e.typeMismatch;c=o.defer(function(){c=null,e.badInput===n&&e.typeMismatch===r||u(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function lr(t,e){if(E(t))return t;if(k(t)){Vo.lastIndex=0;var n=Vo.exec(t);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,c=0,u=Xn(r),l=7*(i-1);return e&&(o=e.getHours(),s=e.getMinutes(),a=e.getSeconds(),c=e.getMilliseconds()),new Date(r,0,u.getDate()+l,o,s,a,c)}}return NaN}function fr(t,e){return function(n,r){var i,s;if(E(n))return n;if(k(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Po.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(t,n){n<e.length&&(s[e[n]]=+t)}),new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0)}return NaN}}function hr(t,e,r,i){return function(o,s,a,c,u,l,f){function h(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function p(t){return b(t)&&!E(t)?r(t)||n:t}pr(o,s,a,c),ur(o,s,a,c,u,l);var d,m=c&&c.$options&&c.$options.timezone;if(c.$$parserName=t,c.$parsers.push(function(t){if(c.$isEmpty(t))return null;if(e.test(t)){var i=r(t,d);return m&&(i=K(i,m)),i}return n}),c.$formatters.push(function(t){if(t&&!E(t))throw gs("datefmt","Expected `{0}` to be a date",t);return h(t)?(d=t,d&&m&&(d=K(d,m,!0)),f("date")(t,i,m)):(d=null,"")}),b(a.min)||a.ngMin){var v;c.$validators.min=function(t){return!h(t)||y(v)||r(t)>=v},a.$observe("min",function(t){v=p(t),c.$validate()})}if(b(a.max)||a.ngMax){var g;c.$validators.max=function(t){return!h(t)||y(g)||r(t)<=g},a.$observe("max",function(t){g=p(t),c.$validate()})}}}function pr(t,e,r,i){var o=e[0],s=i.$$hasNativeValidators=w(o.validity);s&&i.$parsers.push(function(t){var r=e.prop(Er)||{};return r.badInput&&!r.typeMismatch?n:t})}function dr(t,e,r,i,o,s){if(pr(t,e,r,i),ur(t,e,r,i,o,s),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:Ro.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!S(t))throw gs("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),b(r.min)||r.ngMin){var a;i.$validators.min=function(t){return i.$isEmpty(t)||y(a)||t>=a},r.$observe("min",function(t){b(t)&&!S(t)&&(t=parseFloat(t,10)),a=S(t)&&!isNaN(t)?t:n,i.$validate()})}if(b(r.max)||r.ngMax){var c;i.$validators.max=function(t){return i.$isEmpty(t)||y(c)||t<=c},r.$observe("max",function(t){b(t)&&!S(t)&&(t=parseFloat(t,10)),c=S(t)&&!isNaN(t)?t:n,i.$validate()})}}function mr(t,e,n,r,i,o){ur(t,e,n,r,i,o),ar(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Do.test(n)}}function vr(t,e,n,r,i,o){ur(t,e,n,r,i,o),ar(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Bo.test(n)}}function gr(t,e,n,r){y(n.name)&&e.attr("name",c());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function $r(t,e,n,r,i){var o;if(b(r)){if(o=t(r),!o.constant)throw gs("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function yr(t,e,n,r,i,o,s,a){var c=$r(a,t,"ngTrueValue",n.ngTrueValue,!0),u=$r(a,t,"ngFalseValue",n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return L(t,c)}),r.$parsers.push(function(t){return t?c:u})}function br(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function i(t){var e=[];return Hr(t)?(o(t,function(t){e=e.concat(i(t))}),e):k(t)?t.split(" "):w(t)?(o(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(s,a,c){function u(t){var e=f(t,1);c.$addClass(e)}function l(t){var e=f(t,-1);c.$removeClass(e)}function f(t,e){var n=a.data("$classCounts")||vt(),r=[];return o(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),a.data("$classCounts",n),r.join(" ")}function h(t,e){var i=r(e,t),o=r(t,e);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(a,i),o&&o.length&&n.removeClass(a,o)}function p(t){if(e===!0||s.$index%2===e){var n=i(t||[]);if(d){if(!L(t,d)){var r=i(d);h(r,n)}}else u(n)}d=Hr(t)?t.map(function(t){return U(t)}):U(t)}var d;s.$watch(c[t],p,!0),c.$observe("class",function(e){p(s.$eval(c[t]))}),"ngClass"!==t&&s.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var a=i(s.$eval(c[t]));o===e?u(a):l(a)}})}}}]}function wr(t){function e(t,e,c){y(e)?r("$pending",t,c):i("$pending",t,c),P(e)?e?(f(a.$error,t,c),l(a.$$success,t,c)):(l(a.$error,t,c),f(a.$$success,t,c)):(f(a.$error,t,c),f(a.$$success,t,c)),a.$pending?(o(vs,!0),a.$valid=a.$invalid=n,s("",null)):(o(vs,!1),a.$valid=xr(a.$error),a.$invalid=!a.$valid,s("",a.$valid));var u;u=a.$pending&&a.$pending[t]?n:!a.$error[t]&&(!!a.$$success[t]||null),s(t,u),a.$$parentForm.$setValidity(t,u,a)}function r(t,e,n){a[t]||(a[t]={}),l(a[t],e,n)}function i(t,e,r){a[t]&&f(a[t],e,r),xr(a[t])&&(a[t]=n)}function o(t,e){e&&!u[t]?(h.addClass(c,t),u[t]=!0):!e&&u[t]&&(h.removeClass(c,t),u[t]=!1)}function s(t,e){t=t?"-"+ut(t,"-"):"",o(ls+t,e===!0),o(fs+t,e===!1)}var a=t.ctrl,c=t.$element,u={},l=t.set,f=t.unset,h=t.$animate;u[fs]=!(u[ls]=c.hasClass(ls)),a.$setValidity=e}function xr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function kr(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var Sr=/^\/(.+)\/([a-z]*)$/,Er="validity",Cr=function(t){return k(t)?t.toLowerCase():t},Ar=Object.prototype.hasOwnProperty,Or=function(t){return k(t)?t.toUpperCase():t},Tr=function(t){return k(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Nr=function(t){return k(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)&-33)}):t};"i"!=="I".toLowerCase()&&(Cr=Tr,Or=Nr);var Mr,jr,Pr,Dr,Br=[].slice,Rr=[].splice,_r=[].push,Ir=Object.prototype.toString,Vr=Object.getPrototypeOf,qr=r("ng"),Ur=t.angular||(t.angular={}),Lr=0;Mr=e.documentMode,m.$inject=[],v.$inject=[];var Fr,Hr=Array.isArray,zr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Wr=function(t){return k(t)?t.trim():t},Jr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Xr=function(){function t(){try{return new Function(""),!1}catch(t){return!0}}if(!b(Xr.rules)){var n=e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Xr.rules={noUnsafeEval:!r||r.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!r||r.indexOf("no-inline-style")!==-1}}else Xr.rules={noUnsafeEval:t(),noInlineStyle:!1}}return Xr.rules},Yr=function(){if(b(Yr.name_))return Yr.name_;var t,n,r,i,o=Kr.length;for(n=0;n<o;++n)if(r=Kr[n],t=e.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Yr.name_=i},Gr=/:/g,Kr=["ng-","data-ng-","ng:","x-ng-"],Zr=/[A-Z]/g,Qr=!1,ti=1,ei=2,ni=3,ri=8,ii=9,oi=11,si={full:"1.4.14",major:1,minor:4,dot:14,codeName:"material-distinction"};Tt.expando="ng339";var ai=Tt.cache={},ci=1,ui=function(t,e,n){t.addEventListener(e,n,!1)},li=function(t,e,n){t.removeEventListener(e,n,!1)};Tt._data=function(t){return this.cache[t[this.expando]]||{}};var fi=/([\:\-\_]+(.))/g,hi=/^moz([A-Z])/,pi={mouseleave:"mouseout",mouseenter:"mouseover"},di=r("jqLite"),mi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,vi=/<|&#?\w+;/,gi=/<([\w:-]+)/,$i=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,yi={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,"",""]};yi.optgroup=yi.option,yi.tbody=yi.tfoot=yi.colgroup=yi.caption=yi.thead,yi.th=yi.td;var bi=Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},wi=Tt.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),Tt(t).on("load",r))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return jr(t>=0?this[t]:this[this.length+t])},length:0,push:_r,sort:[].sort,splice:[].splice},xi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){xi[Cr(t)]=t});var ki={};o("input,select,option,textarea,button,form,details".split(","),function(t){ki[t]=!0});var Si={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Bt,removeData:Pt,hasData:Et},function(t,e){Tt[e]=t}),o({data:Bt,inheritedData:Ut,scope:function(t){return jr.data(t,"$scope")||Ut(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return jr.data(t,"$isolateScope")||jr.data(t,"$isolateScopeNoTemplate")},controller:qt,injector:function(t){return Ut(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Rt,css:function(t,e,n){return e=xt(e),b(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,r){var i=t.nodeType;if(i!==ni&&i!==ei&&i!==ri){var o=Cr(e);if(xi[o]){if(!b(r))return t[e]||(t.attributes.getNamedItem(e)||m).specified?o:n;r?(t[e]=!0,t.setAttribute(e,o)):(t[e]=!1,t.removeAttribute(o))}else if(b(r))t.setAttribute(e,r);else if(t.getAttribute){var s=t.getAttribute(e,2);return null===s?n:s}}},prop:function(t,e,n){return b(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(y(e)){var n=t.nodeType;return n===ti||n===ni?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(y(e)){if(t.multiple&&"select"===I(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return y(e)?t.innerHTML:(Mt(t,!0),void(t.innerHTML=e))},empty:Lt},function(t,e){Tt.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Lt&&y(2==t.length&&t!==Rt&&t!==qt?e:n)){if(w(e)){for(r=0;r<o;r++)if(t===Bt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var s=t.$dv,a=y(s)?Math.min(o,1):o,c=0;c<a;c++){var u=t(this[c],e,n);s=s?s+u:u}return s}for(r=0;r<o;r++)t(this[r],e,n);return this}}),o({removeData:Pt,on:function(t,e,r,i){if(b(i))throw di("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(St(t)){var o=Dt(t,!0),s=o.events,a=o.handle;a||(a=o.handle=Jt(t,s));for(var c=e.indexOf(" ")>=0?e.split(" "):[e],u=c.length,l=function(e,n,i){var o=s[e];o||(o=s[e]=[],o.specialHandlerWrapper=n,"$destroy"===e||i||ui(t,e,a)),o.push(r)};u--;)e=c[u],pi[e]?(l(pi[e],Yt),l(e,n,!0)):l(e)}},off:jt,one:function(t,e,n){t=jr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;Mt(t),o(new Tt(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===ti&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===ti||n===oi){e=new Tt(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===ti){var n=t.firstChild;o(new Tt(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){Ot(t,jr(e).eq(0).clone()[0])},remove:Ft,detach:function(t){Ft(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new Tt(e);for(var i=0,o=e.length;i<o;i++){var s=e[i];r.insertBefore(s,n.nextSibling),n=s}},addClass:It,removeClass:_t,toggleClass:function(t,e,n){e&&o(e.split(" "),function(e){var r=n;y(r)&&(r=!Rt(t,e)),(r?It:_t)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==oi?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Nt,triggerHandler:function(t,e,n){var r,i,s,a=e.type||e,c=Dt(t),u=c&&c.events,l=u&&u[a];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:m,type:a,target:t},e.type&&(r=f(r,e)),i=U(l),s=n?[r].concat(n):[r],o(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,s)}))}},function(t,e){Tt.prototype[e]=function(e,n,r){for(var i,o=0,s=this.length;o<s;o++)y(i)?(i=t(this[o],e,n,r),b(i)&&(i=jr(i))):Vt(i,t(this[o],e,n,r));return b(i)?i:this},Tt.prototype.bind=Tt.prototype.on,Tt.prototype.unbind=Tt.prototype.off}),Zt.prototype={put:function(t,e){this[Kt(t,this.nextUid)]=e},get:function(t){return this[Kt(t,this.nextUid)]},remove:function(t){var e=this[t=Kt(t,this.nextUid)];return delete this[t],e}};var Ei=[function(){this.$get=[function(){return Zt}]}],Ci=/^[^\(]*\(\s*([^\)]*)\)/m,Ai=/,/,Oi=/^\s*(_?)(\S+?)\1\s*$/,Ti=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ni=r("$injector");ee.$$annotate=te;var Mi=r("$animate"),ji=1,Pi="ng-animate",Di=function(){this.$get=function(){}},Bi=function(){var t=new Zt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(t,e,n){var r=!1;return e&&(e=k(e)?e.split(" "):Hr(e)?e:[],o(e,function(e){e&&(r=!0,t[e]=n)})),r}function s(){o(e,function(e){var n=t.get(e);if(n){var r=oe(e.attr("class")),i="",s="";o(n,function(t,e){var n=!!r[e];t!==n&&(t?i+=(i.length?" ":"")+e:s+=(s.length?" ":"")+e)}),o(e,function(t){i&&It(t,i),s&&_t(t,s)}),t.remove(e)}}),e.length=0}function a(n,o,a){var c=t.get(n)||{},u=i(c,o,!0),l=i(c,a,!1);(u||l)&&(t.put(n,c),e.push(n),1===e.length&&r.$$postDigest(s))}return{enabled:m,on:m,off:m,pin:m,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&a(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Ri=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Mi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+Pi+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Mi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Pi)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=ie(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&jr(r),i=i&&jr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",se(o))},move:function(n,r,i,o){return r=r&&jr(r),i=i&&jr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",se(o))},leave:function(e,n){return t.push(e,"leave",se(n),function(){e.remove()})},addClass:function(e,n,r){return r=se(r),r.addClass=re(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=se(r),r.removeClass=re(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=se(i),i.addClass=re(i.addClass,n),i.removeClass=re(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=se(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=re(o.tempClasses,i),t.push(e,"animate",o)}}}]}],_i=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},Ii=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,r,i){function s(t){this.setHost(t);var e=n(),o=function(t){i(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){var n=r[0];n&&n.hidden?o(t):e(t)},this._state=0}var a=0,c=1,u=2;return s.chain=function(t,e){function n(){return r===t.length?void e(!0):void t[r](function(t){return t===!1?void e(!1):(r++,void n())})}var r=0;n()},s.all=function(t,e){function n(n){i=i&&n,++r===t.length&&e(i)}var r=0,i=!0;o(t,function(t){t.done(n)})},s.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===u?t():this._doneCallbacks.push(t)},progress:m,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){e===!1?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;e._state===a&&(e._state=c,e._tick(function(){e._resolve(t)}))},_resolve:function(t){this._state!==u&&(o(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=u)}},s}]},Vi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),a||c.complete(),a=!0}),c}function o(){s.addClass&&(e.addClass(s.addClass),s.addClass=null),s.removeClass&&(e.removeClass(s.removeClass),s.removeClass=null),s.to&&(e.css(s.to),s.to=null)}var s=r||{};s.$$prepared||(s=q(s)),s.cleanupStyles&&(s.from=s.to=null),s.from&&(e.css(s.from),s.from=null);var a,c=new n;return{start:i,end:i}}}]},qi=r("$compile");fe.$inject=["$provide","$$sanitizeUriProvider"];var Ui=/^((?:x|data)[\:\-_])/i,Li=r("$controller"),Fi=/^(\S+)(\s+as\s+([\w$]+))?$/,Hi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof jr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},zi="application/json",Wi={"Content-Type":zi+";charset=utf-8"},Ji=/^\[|^\{(?!\{)/,Xi={"[":/]$/,"{":/}$/},Yi=/^\)\]\}',?\n/,Gi=r("$http"),Ki=function(t){return function(){throw Gi("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},Zi=Ur.$interpolateMinErr=r("$interpolate");Zi.throwNoconcat=function(t){throw Zi("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",t)},Zi.interr=function(t,e){return Zi("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Qi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,to={http:80,https:443,ftp:21},eo=r("$location"),no={$$html5:!1,$$replace:!1,absUrl:ze("$$absUrl"),url:function(t){if(y(t))return this.$$url;var e=Qi.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:ze("$$protocol"),host:ze("$$host"),port:ze("$$port"),path:We("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(k(t)||S(t))t=t.toString(),this.$$search=tt(t);else{if(!w(t))throw eo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=q(t,{}),o(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:y(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:We("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};o([He,Fe,Le],function(t){t.prototype=Object.create(no),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Le||!this.$$html5)throw eo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=y(e)?null:e,this}});var ro=r("$parse"),io=Function.prototype.call,oo=Function.prototype.apply,so=Function.prototype.bind,ao=vt();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){ao[t]=!0});var co={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},uo=function(t){this.options=t};uo.prototype={constructor:uo,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(e))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=ao[e],o=ao[n],s=ao[r];if(i||o||s){var a=s?r:o?n:e;this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return e.indexOf(t)!==-1},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdent:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=b(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw ro("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Cr(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var s=this.text.substring(this.index+1,this.index+5);s.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+s+"]"),this.index+=4,n+=String.fromCharCode(parseInt(s,16))}else{var a=co[o];n+=a||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var lo=function(t,e){this.lexer=t,this.options=e};lo.Program="Program",lo.ExpressionStatement="ExpressionStatement",lo.AssignmentExpression="AssignmentExpression",lo.ConditionalExpression="ConditionalExpression",lo.LogicalExpression="LogicalExpression",lo.BinaryExpression="BinaryExpression",lo.UnaryExpression="UnaryExpression",lo.CallExpression="CallExpression",lo.MemberExpression="MemberExpression",lo.Identifier="Identifier",lo.Literal="Literal",lo.ArrayExpression="ArrayExpression",lo.Property="Property",lo.ObjectExpression="ObjectExpression",lo.ThisExpression="ThisExpression",lo.NGValueParameter="NGValueParameter",lo.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:lo.Program,body:t}},expressionStatement:function(){return{type:lo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:lo.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:lo.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:lo.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:lo.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:lo.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:lo.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:lo.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:lo.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:lo.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=q(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:lo.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:lo.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:lo.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:lo.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.expression());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:lo.Identifier,name:t.text}},constant:function(){return{type:lo.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:lo.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:lo.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:lo.ObjectExpression,properties:e}},throwError:function(t,e){throw ro("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw ro("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw ro("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],s=o.text;if(s===e||s===n||s===r||s===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},constants:{true:{type:lo.Literal,value:!0},false:{type:lo.Literal,value:!1},null:{type:lo.Literal,value:null},undefined:{type:lo.Literal,value:n},this:{type:lo.ThisExpression}}},ln.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},rn(i,r.$filter);var s,a="";if(this.stage="assign",s=an(i)){this.state.computing="assign";var c=this.nextId();this.recurse(s,c),this.return_(c),a="fn.assign="+this.generateFunction("assign","s,v,l")}var u=on(i.body);r.stage="inputs",o(u,function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,Ye,Ke,Ze,Ge,Qe,tn,en,t);return this.state=this.stage=n,f.literal=cn(i),f.constant=un(i),f},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,r,i,s,a){var c,u,l,f,h=this;if(i=i||m,!a&&b(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,s,!0));switch(t.type){case lo.Program:o(t.body,function(e,r){h.recurse(e.expression,n,n,function(t){u=t}),r!==t.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case lo.Literal:f=this.escape(t.value),this.assign(e,f),i(f);break;case lo.UnaryExpression:this.recurse(t.argument,n,n,function(t){u=t}),f=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,f),i(f);break;case lo.BinaryExpression:this.recurse(t.left,n,n,function(t){c=t}),this.recurse(t.right,n,n,function(t){u=t}),f="+"===t.operator?this.plus(c,u):"-"===t.operator?this.ifDefined(c,0)+t.operator+this.ifDefined(u,0):"("+c+")"+t.operator+"("+u+")",this.assign(e,f),i(f);break;case lo.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case lo.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case lo.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),Ye(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){s&&1!==s&&h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||hn(t.name))&&h.addEnsureSafeObject(e),i(e);break;case lo.MemberExpression:c=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,c,n,function(){h.if_(h.notNull(c),function(){s&&1!==s&&h.addEnsureSafeAssignContext(c),t.computed?(u=h.nextId(),h.recurse(t.property,u),h.getStringValue(u),h.addEnsureSafeMemberName(u),s&&1!==s&&h.if_(h.not(h.computedMember(c,u)),h.lazyAssign(h.computedMember(c,u),"{}")),f=h.ensureSafeObject(h.computedMember(c,u)),h.assign(e,f),r&&(r.computed=!0,r.name=u)):(Ye(t.property.name),s&&1!==s&&h.if_(h.not(h.nonComputedMember(c,t.property.name)),h.lazyAssign(h.nonComputedMember(c,t.property.name),"{}")),f=h.nonComputedMember(c,t.property.name),(h.state.expensiveChecks||hn(t.property.name))&&(f=h.ensureSafeObject(f)),h.assign(e,f),r&&(r.computed=!1,r.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!s);break;case lo.CallExpression:e=e||this.nextId(),t.filter?(u=h.filter(t.callee.name),l=[],o(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),l.push(e)}),f=u+"("+l.join(",")+")",h.assign(e,f),i(e)):(u=h.nextId(),c={},l=[],h.recurse(t.callee,u,c,function(){h.if_(h.notNull(u),function(){h.addEnsureSafeFunction(u),o(t.arguments,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(h.ensureSafeObject(t))})}),c.name?(h.state.expensiveChecks||h.addEnsureSafeObject(c.context),f=h.member(c.context,c.name,c.computed)+"("+l.join(",")+")"):f=u+"("+l.join(",")+")",f=h.ensureSafeObject(f),h.assign(e,f)},function(){h.assign(e,"undefined")}),i(e)}));break;case lo.AssignmentExpression:if(u=this.nextId(),c={},!sn(t.left))throw ro("lval","Trying to assign a value to a non l-value");this.recurse(t.left,n,c,function(){h.if_(h.notNull(c.context),function(){h.recurse(t.right,u),h.addEnsureSafeObject(h.member(c.context,c.name,c.computed)),h.addEnsureSafeAssignContext(c.context),f=h.member(c.context,c.name,c.computed)+t.operator+u,h.assign(e,f),i(e||f)})},1);break;case lo.ArrayExpression:l=[],o(t.elements,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(t)})}),f="["+l.join(",")+"]",this.assign(e,f),i(f);break;case lo.ObjectExpression:l=[],o(t.properties,function(t){h.recurse(t.value,h.nextId(),n,function(e){l.push(h.escape(t.key.type===lo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),f="{"+l.join(",")+"}",this.assign(e,f),i(f);break;case lo.ThisExpression:this.assign(e,"s"),i("s");break;case lo.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(t===!0)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var s=this;return function(){s.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(k(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw ro("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},fn.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,rn(r,n.$filter);var i,s;(i=an(r))&&(s=this.recurse(i));var a,c=on(r.body);c&&(a=[],o(c,function(t,e){var r=n.recurse(t);t.input=r,a.push(r),t.watchId=e}));var u=[];o(r.body,function(t){u.push(n.recurse(t.expression))});var l=0===r.body.length?function(){}:1===r.body.length?u[0]:function(t,e){var n;return o(u,function(r){n=r(t,e)}),n};return s&&(l.assign=function(t,e,n){return s(t,n,e)}),a&&(l.inputs=a),l.literal=cn(r),l.constant=un(r),l},recurse:function(t,e,r){var i,s,a,c=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case lo.Literal:return this.value(t.value,e);case lo.UnaryExpression:return s=this.recurse(t.argument),this["unary"+t.operator](s,e);case lo.BinaryExpression:return i=this.recurse(t.left),s=this.recurse(t.right),this["binary"+t.operator](i,s,e);case lo.LogicalExpression:return i=this.recurse(t.left),s=this.recurse(t.right),this["binary"+t.operator](i,s,e);case lo.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case lo.Identifier:return Ye(t.name,c.expression),c.identifier(t.name,c.expensiveChecks||hn(t.name),e,r,c.expression);case lo.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(Ye(t.property.name,c.expression),s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(i,s,e,r,c.expression):this.nonComputedMember(i,s,c.expensiveChecks,e,r,c.expression);case lo.CallExpression:return a=[],o(t.arguments,function(t){a.push(c.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?function(t,r,i,o){for(var c=[],u=0;u<a.length;++u)c.push(a[u](t,r,i,o));var l=s.apply(n,c,o);return e?{context:n,name:n,value:l}:l}:function(t,n,r,i){var o,u=s(t,n,r,i);if(null!=u.value){Ke(u.context,c.expression),Ze(u.value,c.expression);for(var l=[],f=0;f<a.length;++f)l.push(Ke(a[f](t,n,r,i),c.expression));o=Ke(u.value.apply(u.context,l),c.expression)}return e?{value:o}:o};case lo.AssignmentExpression:return i=this.recurse(t.left,!0,1),s=this.recurse(t.right),function(t,n,r,o){var a=i(t,n,r,o),u=s(t,n,r,o);return Ke(a.value,c.expression),Qe(a.context),a.context[a.name]=u,e?{value:u}:u};case lo.ArrayExpression:return a=[],o(t.elements,function(t){a.push(c.recurse(t))}),function(t,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,r,i));return e?{value:o}:o};case lo.ObjectExpression:return a=[],o(t.properties,function(t){a.push({key:t.key.type===lo.Identifier?t.key.name:""+t.key.value,value:c.recurse(t.value)})}),function(t,n,r,i){for(var o={},s=0;s<a.length;++s)o[a[s].key]=a[s].value(t,n,r,i);return e?{value:o}:o};case lo.ThisExpression:return function(t){return e?{value:t}:t};case lo.NGValueParameter:return function(t,n,r,i){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=b(s)?+s:0,e?{value:s}:s}},"unary-":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=b(s)?-s:0,e?{value:s}:s}},"unary!":function(t,e){return function(n,r,i,o){
var s=!t(n,r,i,o);return e?{value:s}:s}},"binary+":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s),c=e(r,i,o,s),u=en(a,c);return n?{value:u}:u}},"binary-":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s),c=e(r,i,o,s),u=(b(a)?a:0)-(b(c)?c:0);return n?{value:u}:u}},"binary*":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)*e(r,i,o,s);return n?{value:a}:a}},"binary/":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)/e(r,i,o,s);return n?{value:a}:a}},"binary%":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)%e(r,i,o,s);return n?{value:a}:a}},"binary===":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)===e(r,i,o,s);return n?{value:a}:a}},"binary!==":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)!==e(r,i,o,s);return n?{value:a}:a}},"binary==":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)==e(r,i,o,s);return n?{value:a}:a}},"binary!=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)!=e(r,i,o,s);return n?{value:a}:a}},"binary<":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)<e(r,i,o,s);return n?{value:a}:a}},"binary>":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>e(r,i,o,s);return n?{value:a}:a}},"binary<=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)<=e(r,i,o,s);return n?{value:a}:a}},"binary>=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>=e(r,i,o,s);return n?{value:a}:a}},"binary&&":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)&&e(r,i,o,s);return n?{value:a}:a}},"binary||":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)||e(r,i,o,s);return n?{value:a}:a}},"ternary?:":function(t,e,n,r){return function(i,o,s,a){var c=t(i,o,s,a)?e(i,o,s,a):n(i,o,s,a);return r?{value:c}:c}},value:function(t,e){return function(){return e?{context:n,name:n,value:t}:t}},identifier:function(t,e,r,i,o){return function(s,a,c,u){var l=a&&t in a?a:s;i&&1!==i&&l&&!l[t]&&(l[t]={});var f=l?l[t]:n;return e&&Ke(f,o),r?{context:l,name:t,value:f}:f}},computedMember:function(t,e,n,r,i){return function(o,s,a,c){var u,l,f=t(o,s,a,c);return null!=f&&(u=e(o,s,a,c),u=Ge(u),Ye(u,i),r&&1!==r&&(Qe(f),f&&!f[u]&&(f[u]={})),l=f[u],Ke(l,i)),n?{context:f,name:u,value:l}:l}},nonComputedMember:function(t,e,r,i,o,s){return function(a,c,u,l){var f=t(a,c,u,l);o&&1!==o&&(Qe(f),f&&!f[e]&&(f[e]={}));var h=null!=f?f[e]:n;return(r||hn(e))&&Ke(h,s),i?{context:f,name:e,value:h}:h}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var fo=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new lo(this.lexer),this.astCompiler=n.csp?new fn(this.ast,e):new ln(this.ast,e)};fo.prototype={constructor:fo,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var ho=Object.prototype.valueOf,po=r("$sce"),mo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},qi=r("$compile"),vo=e.createElement("a"),go=Tn(t.location.href);jn.$inject=["$document"],Dn.$inject=["$provide"];var $o=22,yo=".",bo="0";Vn.$inject=["$locale"],qn.$inject=["$locale"];var wo={yyyy:zn("FullYear",4),yy:zn("FullYear",2,0,!0),y:zn("FullYear",1),MMMM:Wn("Month"),MMM:Wn("Month",!0),MM:zn("Month",2,1),M:zn("Month",1,1),dd:zn("Date",2),d:zn("Date",1),HH:zn("Hours",2),H:zn("Hours",1),hh:zn("Hours",2,-12),h:zn("Hours",1,-12),mm:zn("Minutes",2),m:zn("Minutes",1),ss:zn("Seconds",2),s:zn("Seconds",1),sss:zn("Milliseconds",3),EEEE:Wn("Day"),EEE:Wn("Day",!0),a:Kn,Z:Jn,ww:Gn(2),w:Gn(1),G:Zn,GG:Zn,GGG:Zn,GGGG:Qn},xo=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ko=/^\-?\d+$/;tr.$inject=["$locale"];var So=g(Cr),Eo=g(Or);rr.$inject=["$parse"];var Co=g({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Ir.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Ao={};o(xi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=he("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Ao[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(Si,function(t,e){Ao[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Sr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=he("ng-"+t);Ao[e]=function(){return{priority:99,link:function(n,r,i){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===Ir.call(r.prop("href"))&&(s="xlinkHref",i.$attr[s]="xlink:href",o=null),i.$observe(e,function(e){return e?(i.$set(s,e),void(Mr&&o&&r.prop(o,i[s]))):void("href"===t&&i.$set(s,null))})}}}});var Oo={$addControl:m,$$renameControl:or,$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m},To="ng-submitted";sr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var No=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||m}var o={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:sr,compile:function(r,o){r.addClass(hs).addClass(ls);var s=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,r,o,a){var c=a[0];if(!("action"in o)){var u=function(e){t.$apply(function(){c.$commitViewValue(),c.$setSubmitted()}),e.preventDefault()};ui(r[0],"submit",u),r.on("$destroy",function(){e(function(){li(r[0],"submit",u)},0,!1)})}var l=a[1]||c.$$parentForm;l.$addControl(c);var h=s?i(c.$name):m;s&&(h(t,c),o.$observe(s,function(e){c.$name!==e&&(h(t,n),c.$$parentForm.$$renameControl(c,e),(h=i(c.$name))(t,c))})),r.on("$destroy",function(){c.$$parentForm.$removeControl(c),h(t,n),f(c,Oo)})}}}};return o}]},Mo=No(),jo=No(!0),Po=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Do=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Bo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ro=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,_o=/^(\d{4})-(\d{2})-(\d{2})$/,Io=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Vo=/^(\d{4})-W(\d\d)$/,qo=/^(\d{4})-(\d\d)$/,Uo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Lo="keydown wheel mousedown",Fo=vt();o("date,datetime-local,month,time,week".split(","),function(t){Fo[t]=!0});var Ho={text:cr,date:hr("date",_o,fr(_o,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":hr("datetimelocal",Io,fr(Io,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:hr("time",Uo,fr(Uo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:hr("week",Vo,lr,"yyyy-Www"),month:hr("month",qo,fr(qo,["yyyy","MM"]),"yyyy-MM"),number:dr,url:mr,email:vr,radio:gr,checkbox:yr,hidden:m,button:m,submit:m,reset:m,file:m},zo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(Ho[Cr(s.type)]||Ho.text)(i,o,s,a[0],e,t,n,r)}}}}],Wo=/^(true|false|\d+)$/,Jo=function(){return{restrict:"A",priority:100,compile:function(t,e){return Wo.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Xo=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=y(t)?"":t})}}}}],Yo=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=y(t)?"":t})}}}}],Go=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),s=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(s,function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")})}}}}],Ko=g({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Zo=br("",!0),Qo=br("Odd",0),ts=br("Even",1),es=ir({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),ns=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],rs={},is={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=he("ng-"+t);rs[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var s=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){s(e,{$event:n})};is[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var os=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,c,u;n.$watch(i.ngIf,function(n){n?c||s(function(n,o){c=o,n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),a={clone:n},t.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),c&&(c.$destroy(),c=null),a&&(u=mt(a.clone),t.leave(u).then(function(){u=null}),a=null))})}}}],ss=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ur.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,c,u,l){var f,h,p,d=0,m=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var c=function(){!b(a)||a&&!r.$eval(a)||e()},h=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===d){var e=r.$new();u.template=t;var a=l(e,function(t){m(),n.enter(t,null,i).then(c)});f=e,p=a,f.$emit("$includeContentLoaded",o),r.$eval(s)}},function(){r.$$destroyed||h===d&&(m(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(m(),u.template=null)})}}}}],as=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return/SVG/.test(r[0].toString())?(r.empty(),void t(Ct(o.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),void t(r.contents())(n))}}}],cs=ir({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),us=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var s=e.attr(r.$attr.ngList)||", ",a="false"!==r.ngTrim,c=a?Wr(s):s,u=function(t){if(!y(t)){var e=[];return t&&o(t.split(c),function(t){t&&e.push(a?Wr(t):t)}),e}};i.$parsers.push(u),i.$formatters.push(function(t){return Hr(t)?t.join(s):n}),i.$isEmpty=function(t){return!t||!t.length}}}},ls="ng-valid",fs="ng-invalid",hs="ng-pristine",ps="ng-dirty",ds="ng-untouched",ms="ng-touched",vs="ng-pending",gs=r("ngModel"),$s=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,s,a,c,u,l,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(t),this.$$parentForm=Oo;var h,p=s(r.ngModel),d=p.assign,v=p,g=d,$=null,w=this;this.$$setOptions=function(t){if(w.$options=t,t&&t.getterSetter){var e=s(r.ngModel+"()"),n=s(r.ngModel+"($$$p)");v=function(t){var n=p(t);return C(n)&&(n=e(t)),n},g=function(t,e){C(p(t))?n(t,{$$$p:w.$modelValue}):d(t,w.$modelValue)}}else if(!p.assign)throw gs("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Z(i))},this.$render=m,this.$isEmpty=function(t){return y(t)||""===t||null===t||t!==t};var x=0;wr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,a.removeClass(i,ps),a.addClass(i,hs)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,a.removeClass(i,hs),a.addClass(i,ps),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,a.setClass(i,ds,ms)},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,a.setClass(i,ms,ds)},this.$rollbackViewValue=function(){c.cancel($),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!S(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$lastCommittedViewValue,e=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(e,t,function(t){o||r===t||(w.$modelValue=t?e:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(){var t=w.$$parserName||"parse";return y(h)?(c(t,null),!0):(h||(o(w.$validators,function(t,e){c(e,null)}),o(w.$asyncValidators,function(t,e){c(e,null)})),c(t,h),h)}function s(){var n=!0;return o(w.$validators,function(r,i){var o=r(t,e);n=n&&o,c(i,o)}),!!n||(o(w.$asyncValidators,function(t,e){c(e,null)}),!1)}function a(){var r=[],i=!0;o(w.$asyncValidators,function(o,s){var a=o(t,e);if(!D(a))throw gs("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);c(s,n),r.push(a.then(function(){c(s,!0)},function(t){i=!1,c(s,!1)}))}),r.length?l.all(r).then(function(){u(i)},m):u(!0)}function c(t,e){f===x&&w.$setValidity(t,e)}function u(t){f===x&&r(t)}x++;var f=x;return i()&&s()?void a():void u(!1)},this.$commitViewValue=function(){var t=w.$viewValue;c.cancel($),(w.$$lastCommittedViewValue!==t||""===t&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=t,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){w.$modelValue!==s&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(h=!y(i)||n)for(var o=0;o<w.$parsers.length;o++)if(i=w.$parsers[o](i),y(i)){h=!1;break}S(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=v(t));var s=w.$modelValue,a=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=i,a&&(w.$modelValue=i,e()),w.$$runValidators(i,w.$$lastCommittedViewValue,function(t){a||(w.$modelValue=t?i:n,e())})},this.$$writeModelToScope=function(){g(t,w.$modelValue),o(w.$viewChangeListeners,function(t){try{t()}catch(t){e(t)}})},this.$setViewValue=function(t,e){w.$viewValue=t,w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=w.$options;i&&b(i.debounce)&&(n=i.debounce,S(n)?r=n:S(n[e])?r=n[e]:S(n.default)&&(r=n.default)),c.cancel($),r?$=c(function(){w.$commitViewValue()},r):u.$$phase?w.$commitViewValue():t.$apply(function(){w.$commitViewValue()})},t.$watch(function(){var e=v(t);if(e!==w.$modelValue&&(w.$modelValue===w.$modelValue||e===e)){w.$modelValue=w.$$rawModelValue=e,h=n;for(var r=w.$formatters,i=r.length,o=e;i--;)o=r[i](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(e,o,m))}return e})}],ys=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:$s,priority:1,compile:function(e){return e.addClass(hs).addClass(ds).addClass(ls),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(n){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],bs=/(\s+|^)default(\s+|$)/,ws=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=q(t.$eval(e.ngModelOptions)),b(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Wr(this.$options.updateOn.replace(bs,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},xs=ir({terminal:!0,priority:1e3}),ks=r("ngOptions"),Ss=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Es=["$compile","$parse",function(t,n){function r(t,e,r){function o(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function s(t){var e;if(!u&&i(t))e=t;else{e=[];for(var n in t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n)}return e}var a=t.match(Ss);if(!a)throw ks("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Z(e));var c=a[5]||a[7],u=a[6],l=/ as /.test(a[0])&&a[1],f=a[9],h=n(a[2]?a[1]:c),p=l&&n(l),d=p||h,m=f&&n(f),v=f?function(t,e){return m(r,e)}:function(t){return Kt(t)},g=function(t,e){return v(t,k(t,e))},$=n(a[2]||a[1]),y=n(a[3]||""),b=n(a[4]||""),w=n(a[8]),x={},k=u?function(t,e){return x[u]=e,x[c]=t,x}:function(t){return x[c]=t,x};return{trackBy:f,getTrackByValue:g,getWatchables:n(w,function(t){var e=[];t=t||[];for(var n=s(t),i=n.length,o=0;o<i;o++){var c=t===n?o:n[o],u=(t[c],k(t[c],c)),l=v(t[c],u);if(e.push(l),a[2]||a[1]){var f=$(r,u);e.push(f)}if(a[4]){var h=b(r,u);e.push(h)}}return e}),getOptions:function(){for(var t=[],e={},n=w(r)||[],i=s(n),a=i.length,c=0;c<a;c++){var u=n===i?c:i[c],l=n[u],h=k(l,u),p=d(r,h),m=v(p,h),x=$(r,h),S=y(r,h),E=b(r,h),C=new o(m,p,x,S,E);t.push(C),e[m]=C}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[g(t)]},getViewValueFromOption:function(t){return f?Ur.copy(t.viewValue):t.viewValue}}}}}function s(e,n,i,s){function u(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function l(t,e,n,r){var i;return e&&Cr(e.nodeName)===n?i=e:(i=r.cloneNode(!1),e?t.insertBefore(i,e):t.appendChild(i)),i}function f(t){for(var e;t;)e=t.nextSibling,Ft(t),t=e}function h(t){var e=m&&m[0],n=x&&x[0];if(e||n)for(;t&&(t===e||t===n||t.nodeType===ri||"option"===I(t)&&""===t.value);)t=t.nextSibling;return t}function p(){var t=k&&v.readValue();k=S.getOptions();var e={},r=n[0].firstChild;if(w&&n.prepend(m),r=h(r),k.items.forEach(function(t){var i,o,s;t.group?(i=e[t.group],i||(o=l(n[0],r,"optgroup",c),r=o.nextSibling,o.label=t.group,i=e[t.group]={groupElement:o,currentOptionElement:o.firstChild}),s=l(i.groupElement,i.currentOptionElement,"option",a),u(t,s),i.currentOptionElement=s.nextSibling):(s=l(n[0],r,"option",a),u(t,s),r=s.nextSibling)}),Object.keys(e).forEach(function(t){f(e[t].currentOptionElement)}),f(r),d.$render(),!d.$isEmpty(t)){var i=v.readValue(),o=S.trackBy||g;(o?L(t,i):t===i)||(d.$setViewValue(i),d.$render())}}var d=s[1];if(d){for(var m,v=s[0],g=i.multiple,$=0,y=n.children(),b=y.length;$<b;$++)if(""===y[$].value){m=y.eq($);break}var w=!!m,x=jr(a.cloneNode(!1));x.val("?");var k,S=r(i.ngOptions,n,e),E=function(){w||n.prepend(m),n.val(""),m.prop("selected",!0),m.attr("selected",!0)},C=function(){w||m.remove()},A=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},O=function(){x.remove()};g?(d.$isEmpty=function(t){return!t||0===t.length},v.writeValue=function(t){k.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=k.getOptionFromViewValue(t);e&&!e.disabled&&(e.element.selected=!0)})},v.readValue=function(){var t=n.val()||[],e=[];return o(t,function(t){var n=k.selectValueMap[t];n&&!n.disabled&&e.push(k.getViewValueFromOption(n))}),e},S.trackBy&&e.$watchCollection(function(){if(Hr(d.$viewValue))return d.$viewValue.map(function(t){return S.getTrackByValue(t)})},function(){d.$render()})):(v.writeValue=function(t){var e=k.getOptionFromViewValue(t);e&&!e.disabled?(n[0].value!==e.selectValue&&(O(),C(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||w?(O(),E()):(C(),A())},v.readValue=function(){var t=k.selectValueMap[n.val()];return t&&!t.disabled?(C(),O(),k.getViewValueFromOption(t)):null},S.trackBy&&e.$watch(function(){return S.getTrackByValue(d.$viewValue)},function(){d.$render()})),w?(m.remove(),t(m)(e),m.removeClass("ng-scope")):m=jr(a.cloneNode(!1)),p(),e.$watchCollection(S.getWatchables,p)}}var a=e.createElement("option"),c=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=m},post:s}}}],Cs=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(s,a,c){function u(t){a.text(t||"")}var l,f=c.count,h=c.$attr.when&&a.attr(c.$attr.when),p=c.offset||0,d=s.$eval(h)||{},v={},g=e.startSymbol(),$=e.endSymbol(),b=g+f+"-"+p+$,w=Ur.noop;o(c,function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+Cr(n[2]);d[r]=a.attr(c.$attr[e])}}),o(d,function(t,n){v[n]=e(t.replace(r,b))}),s.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in d||(r=t.pluralCat(r-p)),r!==l&&!(i&&S(l)&&isNaN(l))){w();var o=v[r];y(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=m,u()):w=s.$watch(o,u),l=r}})}}}],As=["$parse","$animate",function(t,s){var a="$$NG_REMOVED",c=r("ngRepeat"),u=function(t,e,n,r,i,o,s){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===s-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},l=function(t){return t.clone[0]},f=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,h){var p=h.ngRepeat,d=e.createComment(" end ngRepeat: "+p+" "),m=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw c("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var v=m[1],g=m[2],$=m[3],y=m[4];if(m=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!m)throw c("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var b=m[3]||m[1],w=m[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw c("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);var x,k,S,E,C={$id:Kt};return y?x=t(y):(S=function(t,e){return Kt(e)},E=function(t){return t}),function(t,e,r,h,m){x&&(k=function(e,n,r){return w&&(C[w]=e),C[b]=n,C.$index=r,x(t,C)});var v=vt();t.$watchCollection(g,function(r){var h,g,y,x,C,A,O,T,N,M,j,P,D=e[0],B=vt();if($&&(t[$]=r),i(r))N=r,T=k||S;else{T=k||E,N=[];for(var R in r)Ar.call(r,R)&&"$"!==R.charAt(0)&&N.push(R)}for(x=N.length,j=new Array(x),h=0;h<x;h++)if(C=r===N?h:N[h],A=r[C],O=T(C,A,h),v[O])M=v[O],delete v[O],B[O]=M,j[h]=M;else{if(B[O])throw o(j,function(t){t&&t.scope&&(v[t.id]=t)}),c("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,O,A);j[h]={id:O,scope:n,clone:n},B[O]=!0}for(var _ in v){if(M=v[_],P=mt(M.clone),s.leave(P),P[0].parentNode)for(h=0,g=P.length;h<g;h++)P[h][a]=!0;M.scope.$destroy()}for(h=0;h<x;h++)if(C=r===N?h:N[h],A=r[C],M=j[h],M.scope){y=D;do y=y.nextSibling;while(y&&y[a]);l(M)!=y&&s.move(mt(M.clone),null,D),D=f(M),u(M.scope,h,b,A,w,C,x)}else m(function(t,e){M.scope=e;var n=d.cloneNode(!1);t[t.length++]=n,s.enter(t,null,D),D=n,M.clone=t,B[M.id]=M,u(M.scope,h,b,A,w,C,x)});v=B})}}}}],Os="ng-hide",Ts="ng-hide-animate",Ns=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,Os,{tempClasses:Ts})})}}}],Ms=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,Os,{tempClasses:Ts})})}}}],js=ir(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&o(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),Ps=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,s){var a=i.ngSwitch||i.on,c=[],u=[],l=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(a,function(n){var r,i;for(r=0,i=l.length;r<i;++r)t.cancel(l[r]);for(l.length=0,r=0,i=f.length;r<i;++r){var a=mt(u[r].clone);f[r].$destroy();var p=l[r]=t.leave(a);p.then(h(l,r))}u.length=0,f.length=0,(c=s.cases["!"+n]||s.cases["?"])&&o(c,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.createComment(" end ngSwitchWhen: ");var s={clone:r};u.push(s),t.enter(r,o.parent(),o)})})})}}}],Ds=ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Bs=ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Rs=ir({restrict:"EAC",link:function(t,e,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Z(e));o(function(t){e.empty(),e.append(t)})}}),_s=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Is={$setViewValue:m,$render:m},Vs=["$element","$scope","$attrs",function(t,r,i){var o=this,s=new Zt;o.ngModelCtrl=Is,o.unknownOption=jr(e.createElement("option")),o.renderUnknownOption=function(e){var n="? "+Kt(e)+" ?";o.unknownOption.val(n),t.prepend(o.unknownOption),t.val(n)},r.$on("$destroy",function(){o.renderUnknownOption=m}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),t.val()},o.writeValue=function(e){o.hasOption(e)?(o.removeUnknownOption(),t.val(e),""===e&&o.emptyOption.prop("selected",!0)):null==e&&o.emptyOption?(o.removeUnknownOption(),t.val("")):o.renderUnknownOption(e)},o.addOption=function(t,e){if(e[0].nodeType!==ri){pt(t,'"option value"'),""===t&&(o.emptyOption=e);var n=s.get(t)||0;s.put(t,n+1),o.ngModelCtrl.$render(),kr(e)}},o.removeOption=function(t){var e=s.get(t);e&&(1===e?(s.remove(t),""===t&&(o.emptyOption=n)):s.put(t,e-1))},o.hasOption=function(t){return!!s.get(t)},o.registerOption=function(t,e,n,r,i){if(r){var s;n.$observe("value",function(t){b(s)&&o.removeOption(s),s=t,o.addOption(t,e)})}else i?t.$watch(i,function(t,r){n.$set("value",t),r!==t&&o.removeOption(r),o.addOption(t,e)}):o.addOption(n.value,e);e.on("$destroy",function(){o.removeOption(n.value),o.ngModelCtrl.$render()})}}],qs=function(){function t(t,e,n,r){var i=r[1];if(i){var s=r[0];if(s.ngModelCtrl=i,e.on("change",function(){t.$apply(function(){i.$setViewValue(s.readValue())})}),n.multiple){s.readValue=function(){var t=[];return o(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},s.writeValue=function(t){var n=new Zt(t);o(e.find("option"),function(t){t.selected=b(n.get(t.value))})};var a,c=NaN;t.$watch(function(){c!==i.$viewValue||L(a,i.$viewValue)||(a=U(i.$viewValue),i.$render()),c=i.$viewValue}),i.$isEmpty=function(t){return!t||0===t.length}}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Vs,priority:1,link:{pre:t,post:e}}},Us=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(b(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o="$selectController",s=e.parent(),a=s.data(o)||s.parent().data(o);a&&a.registerOption(t,e,n,r,i)}}}}],Ls=g({restrict:"E",terminal:!1}),Fs=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Hs=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,o){if(o){var s,a=i.ngPattern||i.pattern;i.$observe("pattern",function(t){if(k(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,Z(e));s=t||n,o.$validate()}),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||y(s)||s.test(e)}}}}},zs=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=p(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Ws=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=p(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void(t.console&&console.log("WARNING: Tried to load angular more than once.")):(lt(),bt(Ur),Ur.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return e==-1?0:t.length-e-1}function r(t,r){var i=r;n===i&&(i=Math.min(e(t),3));var o=Math.pow(10,i),s=(t*o|0)%o;return{v:i,f:s}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n=0|t,o=r(t,e);return 1==n&&0==o.v?i.ONE:i.OTHER}})}]),void jr(e).ready(function(){ot(e,st)}))}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>')},function(t,e,n){n(5),t.exports="ngRoute"},function(t,e){/**
* @license AngularJS v1.4.14
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(t,e,n){"use strict";function r(){function t(t,n){return e.extend(Object.create(t),n)}function n(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(t,e,n,r){var o="?"===r||"*?"===r?"?":null,s="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),e=e||"",""+(o?"":e)+"(?:"+(o?e:"")+(s&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}var r={};this.when=function(t,i){var o=e.copy(i);if(e.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),e.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[t]=e.extend(o,t&&n(t,o)),t){var s="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";r[s]=e.extend({redirectTo:t},n(s,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,s,a,u,l){function f(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,s=i.length;o<s;++o){var a=n[o-1],c=i[o];a&&c&&(r[a.name]=c)}return r}function h(t){var r=y.current;v=d(),g=v&&r&&v.$$route===r.$$route&&e.equals(v.pathParams,r.pathParams)&&!v.reloadOnSearch&&!$,g||!r&&!v||n.$broadcast("$routeChangeStart",v,r).defaultPrevented&&t&&t.preventDefault()}function p(){var t=y.current,r=v;g?(t.params=r.params,e.copy(t.params,o),n.$broadcast("$routeUpdate",t)):(r||t)&&($=!1,y.current=r,r&&r.redirectTo&&(e.isString(r.redirectTo)?i.path(m(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),s.when(r).then(function(){if(r){var t,n,i=e.extend({},r.resolve);return e.forEach(i,function(t,n){i[n]=e.isString(t)?a.get(t):a.invoke(t,null,null,n)}),e.isDefined(t=r.template)?e.isFunction(t)&&(t=t(r.params)):e.isDefined(n=r.templateUrl)&&(e.isFunction(n)&&(n=n(r.params)),e.isDefined(n)&&(r.loadedTemplateUrl=l.valueOf(n),t=u(n))),e.isDefined(t)&&(i.$template=t),s.all(i)}}).then(function(i){r==y.current&&(r&&(r.locals=i,e.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,t))},function(e){r==y.current&&n.$broadcast("$routeChangeError",r,t,e)}))}function d(){var n,o;return e.forEach(r,function(r,s){!o&&(n=f(i.path(),r))&&(o=t(r,{params:e.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&t(r[null],{params:{},pathParams:{}})}function m(t,n){var r=[];return e.forEach((t||"").split(":"),function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var v,g,$=!1,y={routes:r,reload:function(){$=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,$=!1}};n.$evalAsync(function(){h(t),t.defaultPrevented||p()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw c("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),i.path(m(this.current.$$route.originalPath,t)),i.search(t)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),y}]}function i(){this.$get=function(){return{}}}function o(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,c){function u(){p&&(r.cancel(p),p=null),f&&(f.$destroy(),f=null),h&&(p=r.leave(h),p.then(function(){p=null}),h=null)}function l(){var s=t.current&&t.current.locals,a=s&&s.$template;if(e.isDefined(a)){var l=i.$new(),p=t.current,v=c(l,function(t){r.enter(t,null,h||o).then(function(){!e.isDefined(d)||d&&!i.$eval(d)||n()}),u()});h=v,f=p.scope=l,f.$emit("$viewContentLoaded"),f.$eval(m)}else u()}var f,h,p,d=s.autoscroll,m=s.onload||"";i.$on("$routeChangeSuccess",l),l()}}}function s(t,e,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,s=o.locals;i.html(s.$template);var a=t(i.contents());if(o.controller){s.$scope=r;var c=e(o.controller,s);o.controllerAs&&(r[o.controllerAs]=c),i.data("$ngControllerController",c),i.children().data("$ngControllerController",c)}a(r)}}}var a=e.module("ngRoute",["ng"]).provider("$route",r),c=e.$$minErr("ngRoute");a.provider("$routeParams",i),a.directive("ngView",o),a.directive("ngView",s),o.$inject=["$route","$anchorScroll","$animate"],s.$inject=["$compile","$controller","$route"]}(window,window.angular)},function(t,e,n){n(7),t.exports="ngSanitize"},function(t,e){/**
* @license AngularJS v1.4.14
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(t,e,n){"use strict";function r(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return s(e,u(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function i(t){var n=[],r=u(n,e.noop);return r.chars(t),n.join("")}function o(t,n){var r,i={},o=t.split(",");for(r=0;r<o.length;r++)i[n?e.lowercase(o[r]):o[r]]=!0;return i}function s(t,n){function r(t,r,o,s){if(r=e.lowercase(r),E[r])for(;y.last()&&C[y.last()];)i("",y.last());S[r]&&y.last()==r&&i("",r),s=w[r]||!!s,s||y.push(r);var c={};o.replace(p,function(t,e,n,r,i){var o=n||r||i||"";c[e]=a(o)}),n.start&&n.start(r,c,s)}function i(t,r){var i,o=0;if(r=e.lowercase(r))for(o=y.length-1;o>=0&&y[o]!=r;o--);if(o>=0){for(i=y.length-1;i>=o;i--)n.end&&n.end(y[i]);y.length=o}}"string"!=typeof t&&(t=null===t||"undefined"==typeof t?"":""+t);var o,s,c,u,y=[],b=t;for(y.last=function(){return y[y.length-1]};t;){if(u="",s=!0,y.last()&&O[y.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+y.last()+"[^>]*>","i"),function(t,e){return e=e.replace(v,"$1").replace($,"$1"),n.chars&&n.chars(a(e)),""}),i("",y.last())):(0===t.indexOf("<!--")?(o=t.indexOf("--",4),o>=0&&t.lastIndexOf("-->",o)===o&&(n.comment&&n.comment(t.substring(4,o)),t=t.substring(o+3),s=!1)):g.test(t)?(c=t.match(g),c&&(t=t.replace(c[0],""),s=!1)):m.test(t)?(c=t.match(h),c&&(t=t.substring(c[0].length),c[0].replace(h,i),s=!1)):d.test(t)&&(c=t.match(f),c?(c[4]&&(t=t.substring(c[0].length),c[0].replace(f,r)),s=!1):(u+="<",t=t.substring(1))),s&&(o=t.indexOf("<"),u+=o<0?t:t.substring(0,o),t=o<0?"":t.substring(o),n.chars&&n.chars(a(u)))),t==b)throw l("badparse","The sanitizer was unable to parse the following block of html: {0}",t);b=t}i()}function a(t){return t?(D.innerHTML=t.replace(/</g,"&lt;"),D.textContent):""}function c(t){return t.replace(/&/g,"&amp;").replace(y,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(b,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function u(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o,s){t=e.lowercase(t),!r&&O[t]&&(r=t),r||T[t]!==!0||(i("<"),i(t),e.forEach(o,function(r,o){var s=e.lowercase(o),a="img"===t&&"src"===s||"background"===s;P[s]!==!0||N[s]===!0&&!n(r,a)||(i(" "),i(o),i('="'),i(c(r)),i('"'))}),i(s?"/>":">"))},end:function(t){t=e.lowercase(t),r||T[t]!==!0||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(c(t))}}}var l=e.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,d=/^</,m=/^<\//,v=/<!--(.*?)-->/g,g=/<!DOCTYPE([^>]*?)>/i,$=/<!\[CDATA\[(.*?)]]>/g,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^\#-~| |!])/g,w=o("area,br,col,hr,img,wbr"),x=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),k=o("rp,rt"),S=e.extend({},k,x),E=e.extend({},x,o("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),C=e.extend({},k,o("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),A=o("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),O=o("script,style"),T=e.extend({},w,E,C,S,A),N=o("background,cite,href,longdesc,src,usemap,xlink:href"),M=o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),j=o("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),P=e.extend({},N,j,M),D=document.createElement("pre");e.module("ngSanitize",[]).provider("$sanitize",r),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(o,s){function a(t){t&&p.push(i(t))}function c(t,n){p.push("<a "),e.isDefined(s)&&p.push('target="',s,'" '),p.push('href="',t.replace(/"/g,"&quot;"),'">'),a(n),p.push("</a>")}if(!o)return o;for(var u,l,f,h=o,p=[];u=h.match(n);)l=u[0],u[2]||u[4]||(l=(u[3]?"http://":"mailto:")+l),f=u.index,a(h.substr(0,f)),c(l,u[0].replace(r,"")),h=h.substring(f+u[0].length);return a(h),t(p.join(""))}}])}(window,window.angular)},function(t,e,n){n(9),t.exports="ngTouch"},function(t,e){/**
* @license AngularJS v1.4.14
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(t,e,n){"use strict";function r(t){return e.lowercase(t.nodeName||t[0]&&t[0].nodeName)}function i(t,n,r){o.directive(t,["$parse","$swipe",function(i,o){var s=75,a=.3,c=30;return function(u,l,f){function h(t){if(!p)return!1;var e=Math.abs(t.y-p.y),r=(t.x-p.x)*n;return d&&e<s&&r>0&&r>c&&e/r<a}var p,d,m=i(f[t]),v=["touch"];e.isDefined(f.ngSwipeDisableMouse)||v.push("mouse"),o.bind(l,{start:function(t,e){p=t,d=!0},cancel:function(t){d=!1},end:function(t,e){h(t)&&u.$apply(function(){l.triggerHandler(r),m(u,{$event:e})})}},v)}}])}var o=e.module("ngTouch",[]);o.factory("$swipe",[function(){function t(t){var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],r=e.changedTouches&&e.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function n(t,n){var r=[];return e.forEach(t,function(t){var e=i[t][n];e&&r.push(e)}),r.join(" ")}var r=10,i={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};return{bind:function(e,i,o){var s,a,c,u,l=!1;o=o||["mouse","touch"],e.on(n(o,"start"),function(e){c=t(e),l=!0,s=0,a=0,u=c,i.start&&i.start(c,e)});var f=n(o,"cancel");f&&e.on(f,function(t){l=!1,i.cancel&&i.cancel(t)}),e.on(n(o,"move"),function(e){if(l&&c){var n=t(e);if(s+=Math.abs(n.x-u.x),a+=Math.abs(n.y-u.y),u=n,!(s<r&&a<r))return a>s?(l=!1,void(i.cancel&&i.cancel(e))):(e.preventDefault(),void(i.move&&i.move(n,e)))}}),e.on(n(o,"end"),function(e){l&&(l=!1,i.end&&i.end(t(e),e))})}}}]),o.config(["$provide",function(t){t.decorator("ngClickDirective",["$delegate",function(t){return t.shift(),t}])}]),o.directive("ngClick",["$parse","$timeout","$rootElement",function(t,n,i){function o(t,e,n,r){return Math.abs(t-n)<v&&Math.abs(e-r)<v}function s(t,e,n){for(var r=0;r<t.length;r+=2)if(o(t[r],t[r+1],e,n))return t.splice(r,r+2),!0;return!1}function a(t){if(!(Date.now()-l>m)){var e=t.touches&&t.touches.length?t.touches:[t],n=e[0].clientX,i=e[0].clientY;n<1&&i<1||h&&h[0]===n&&h[1]===i||(h&&(h=null),"label"===r(t.target)&&(h=[n,i]),s(f,n,i)||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur&&t.target.blur()))}}function c(t){var e=t.touches&&t.touches.length?t.touches:[t],r=e[0].clientX,i=e[0].clientY;f.push(r,i),n(function(){for(var t=0;t<f.length;t+=2)if(f[t]==r&&f[t+1]==i)return void f.splice(t,t+2)},m,!1)}function u(t,e){f||(i[0].addEventListener("click",a,!0),i[0].addEventListener("touchstart",c,!0),f=[]),l=Date.now(),s(f,t,e)}var l,f,h,p=750,d=12,m=2500,v=25,g="ng-click-active";return function(n,r,i){function o(){h=!1,r.removeClass(g)}var s,a,c,l,f=t(i.ngClick),h=!1;r.on("touchstart",function(t){h=!0,s=t.target?t.target:t.srcElement,3==s.nodeType&&(s=s.parentNode),r.addClass(g),a=Date.now();var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],i=n[0];c=i.clientX,l=i.clientY}),r.on("touchcancel",function(t){o()}),r.on("touchend",function(t){var n=Date.now()-a,f=t.originalEvent||t,m=f.changedTouches&&f.changedTouches.length?f.changedTouches:f.touches&&f.touches.length?f.touches:[f],v=m[0],g=v.clientX,$=v.clientY,y=Math.sqrt(Math.pow(g-c,2)+Math.pow($-l,2));h&&n<p&&y<d&&(u(g,$),s&&s.blur(),e.isDefined(i.disabled)&&i.disabled!==!1||r.triggerHandler("click",[t])),o()}),r.onclick=function(t){},r.on("click",function(t,e){n.$apply(function(){f(n,{$event:e||t})})}),r.on("mousedown",function(t){r.addClass(g)}),r.on("mousemove mouseup",function(t){r.removeClass(g)})}}]),i("ngSwipeLeft",-1,"swipeleft"),i("ngSwipeRight",1,"swiperight")}(window,window.angular)},function(t,e,n){function r(t,e,n){const r="Browsersync",i="Disconnected";t._disconnected=!1,t.ui={visible:!1,heading:r,message:i},t.socketEvents={connection:function(){t._disconnected&&n.location.reload(!0),t.ui.visible=!1,t.$digest()},disconnect:function(){t._disconnected=!0,t.ui.visible=!0,t.$digest()}},e.$on("ui:connection",t.socketEvents.connection),e.$on("ui:disconnect",t.socketEvents.disconnect)}var i=n(11);i.module("bsDisconnect",[]).directive("disconnectElem",function(){return{restrict:"E",scope:{},template:'<section bs-overlay ng-class="{\'active\': ui.visible}">\n <p><icon icon="block"></icon></p>\n <h1>{{ui.heading}} {{ui.message}}</h1>\n <p>Possible reasons are:</p>\n <ul bs-list>\n <li>1. Your process was exited by another tool</li>\n </ul>\n <p>You should check your terminal window to see what happened. <br/>(Or simply try reloading this page.)</p>\n</section>',controller:["$scope","$rootScope","$window",r]}})},function(t,e){t.exports=window.angular},function(t,e,n){function r(t,e){var n="info",r="Browsersync:",i="Welcome to Browsersync",o=2e3;t.ui={status:n,heading:r,message:i},t.show=function(e,i){i=i||{},t._timer&&clearTimeout(t._timer),t._timer=window.setTimeout(t.reset,i.timeout||o),t.ui.visible=!0,t.ui.status=i.status||n,t.ui.heading=i.heading||r,t.ui.message=i.message||r},t.reset=function(){t.ui.visible=!1,t.$digest()},e.$on("notify:flash",t.show)}var i=n(11);i.module("bsNotify",[]).directive("notifyElem",function(){return{restrict:"E",scope:{},template:'<div bs-notify ng-class="{\'active\': ui.visible}">\n <p class="notification__text">{{ui.heading}} <span class="color--lime">{{ui.message}}</span></p>\n</div>',controller:["$scope","$rootScope",r]}})},function(t,e,n){function r(t){var e=[],n=[];return t.on("ui:history:update",function(t){n.forEach(function(e){e(t)})}),{visited:e,updateHistory:function(t){e=t},get:function(){return t.getData("visited")},remove:function(e){t.emit("ui",{namespace:"history",event:"remove",data:e})},clear:function(){t.emit("ui",{namespace:"history",event:"clear"})},on:function(t,e){n.push(e)},off:function(t){var e=n.indexOf(t);e>-1&&(n=n.splice(e,1))}}}var i=n(11);i.module("bsHistory",["bsSocket"]).service("History",["Socket",r])},function(t,e,n){function r(t){var e={reloadAll:function(){t.clientEvent("browser:reload")},sendAllTo:function(e){t.emit("ui",{namespace:"history",event:"sendAllTo",data:{path:e}})},scrollAllTo:function(){t.clientEvent("scroll",{position:{raw:0,proportional:0},override:!0})},highlight:function(e){t.emit("ui:highlight",e)}};return e}var i=n(11);i.module("bsClients",["bsSocket"]).service("Clients",["Socket",r])},function(t,e,n){function r(t,e){var n,r=t.defer();c.on("connection",function(t){if(n=t.session,e.$emit("ui:connection",t),r.resolve(t,this),""===window.name)window.name=JSON.stringify({id:o.id});else{var i=JSON.parse(window.name);i.id!==o.id}}),c.on("disconnect",function(){e.$emit("ui:disconnect")});var i={on:function(t,e){c.on(t,e)},off:function(t,e){c.off(t,e)},removeEvent:function(t,e){c.removeListener(t,e)},emit:function(t,e){c.emit(t,e||{})},clientEvent:function(t,e){c.emit("ui:client:proxy",{event:t,data:e})},options:function(){return r.promise},getData:function(e){var n=t.defer();return c.on("ui:receive:"+e,function(t){n.resolve(t)}),c.emit("ui:get:"+e),n.promise},uiEvent:function(t){c.emit("ui",t)},newSession:function(){}};return Object.defineProperty(i,"sessionId",{get:function(){return n}}),i}var i=n(11),o=n(16),s=window.___browserSync___.socketConfig,a=window.___browserSync___.socketUrl,c=o(a,s);i.module("bsSocket",[]).service("Socket",["$q","$rootScope",r])},function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=i(t),o=r.source,u=r.id,l=r.path,f=c[u]&&l in c[u].nsps,h=e.forceNew||e["force new connection"]||!1===e.multiplex||f;return h?(a("ignoring socket cache for %s",o),n=s(o,e)):(c[u]||(a("new io instance for %s",o),c[u]=s(o,e)),n=c[u]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var i=n(17),o=n(23),s=n(30),a=n(19)("socket.io-client");t.exports=e=r;var c=e.managers={};e.protocol=o.protocol,e.connect=r,e.Manager=n(30),e.Socket=n(58)},function(t,e,n){(function(e){function r(t,n){var r=t;n=n||e.location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(o("protocol-less url %s",t),t="undefined"!=typeof n?n.protocol+"//"+t:"https://"+t),o("parse %s",t),r=i(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var s=r.host.indexOf(":")!==-1,a=s?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}var i=n(18),o=n(19)("socket.io-client:url");t.exports=r}).call(e,function(){return this}())},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");i!=-1&&o!=-1&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return i!=-1&&o!=-1&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function c(){var t;try{t=e.storage.debug}catch(t){}return!t&&"undefined"!=typeof r&&"env"in r&&(t=r.env.DEBUG),t}function u(){try{return window.localStorage}catch(t){}}e=t.exports=n(21),e.log=s,e.formatArgs=o,e.save=a,e.load=c,e.useColors=i,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(c())}).call(e,n(20))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){m&&p&&(m=!1,p.length?d=p.concat(d):v=-1,d.length&&a())}function a(){if(!m){var t=i(s);m=!0;for(var e=d.length;e;){for(p=d,d=[];++v<e;)p&&p[v].run();v=-1,e=d.length}p=null,m=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var l,f,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var p,d=[],m=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new c(t,e)),1!==d.length||m||i(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=u,h.addListener=u,h.once=u,h.off=u,h.removeListener=u,h.removeAllListeners=u,h.emit=u,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function i(t){function n(){if(n.enabled){var t=n,r=+new Date,i=r-(u||r);t.diff=i,t.prev=u,t.curr=r,u=r;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=e.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;a++;var i=e.formatters[r];if("function"==typeof i){var s=o[a];n=i.call(t,s),o.splice(a,1),a--}return n}),e.formatArgs.call(t,o);var c=n.log||e.log||console.log.bind(console);c.apply(t,o)}}return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=r(t),"function"==typeof e.init&&e.init(n),n}function o(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&(t=n[i].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function s(){e.enable("")}function a(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=i.debug=i.default=i,e.coerce=c,e.disable=s,e.enable=o,e.enabled=a,e.humanize=n(22),e.names=[],e.skips=[],e.formatters={};var u},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=u?Math.round(t/u)+"d":t>=c?Math.round(t/c)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return o(t,u,"day")||o(t,c,"hour")||o(t,a,"minute")||o(t,s,"second")||t+" ms"}function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,c=60*a,u=24*c,l=365.25*u;t.exports=function(t,e){e=e||{};var o=typeof t;if("string"===o&&t.length>0)return n(t);if("number"===o&&isNaN(t)===!1)return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(){}function i(t){var n=""+t.type;return e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data&&(n+=JSON.stringify(t.data)),f("encoded %j as %s",t,n),n}function o(t,e){function n(t){var n=d.deconstructPacket(t),r=i(n.packet),o=n.buffers;o.unshift(r),e(o)}d.removeBlobs(t,n)}function s(){this.reconstructor=null}function a(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return l();if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var i="";"-"!==t.charAt(++n)&&(i+=t.charAt(n),n!=t.length););if(i!=Number(i)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(i)}if("/"===t.charAt(n+1))for(r.nsp="";++n;){var o=t.charAt(n);if(","===o)break;if(r.nsp+=o,n===t.length)break}else r.nsp="/";var s=t.charAt(n+1);if(""!==s&&Number(s)==s){for(r.id="";++n;){var o=t.charAt(n);if(null==o||Number(o)!=o){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}return t.charAt(++n)&&(r=c(r,t.substr(n))),f("decoded %s as %j",t,r),r}function c(t,e){try{t.data=JSON.parse(e)}catch(t){return l()}return t}function u(t){this.reconPack=t,this.buffers=[]}function l(){return{type:e.ERROR,data:"parser error"}}var f=n(19)("socket.io-parser"),h=n(24),p=n(25),d=n(27),m=n(29);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=s,r.prototype.encode=function(t,n){if(t.type!==e.EVENT&&t.type!==e.ACK||!p(t.data)||(t.type=t.type===e.EVENT?e.BINARY_EVENT:e.BINARY_ACK),f("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type)o(t,n);else{var r=i(t);n([r])}},h(s.prototype),s.prototype.add=function(t){var n;if("string"==typeof t)n=a(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new u(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!m(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,this.emit("decoded",n))}},s.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},u.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},u.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){(function(e){function r(t){if(!t||"object"!=typeof t)return!1;if(i(t)){for(var n=0,o=t.length;n<o;n++)if(r(t[n]))return!0;return!1}if("function"==typeof e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(t)||"function"==typeof e.ArrayBuffer&&t instanceof ArrayBuffer||s&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return r(t.toJSON(),!0);for(var c in t)if(Object.prototype.hasOwnProperty.call(t,c)&&r(t[c]))return!0;return!1}var i=n(26),o=Object.prototype.toString,s="function"==typeof e.Blob||"[object BlobConstructor]"===o.call(e.Blob),a="function"==typeof e.File||"[object FileConstructor]"===o.call(e.File);t.exports=r}).call(e,function(){return this}())},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){function r(t,e){if(!t)return t;if(s(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(o(t)){for(var i=new Array(t.length),a=0;a<t.length;a++)i[a]=r(t[a],e);return i}if("object"==typeof t&&!(t instanceof Date)){var i={};for(var c in t)i[c]=r(t[c],e);return i}return t}function i(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(o(t))for(var n=0;n<t.length;n++)t[n]=i(t[n],e);else if("object"==typeof t)for(var r in t)t[r]=i(t[r],e);return t}var o=n(28),s=n(29),a=Object.prototype.toString,c="function"==typeof t.Blob||"[object BlobConstructor]"===a.call(t.Blob),u="function"==typeof t.File||"[object FileConstructor]"===a.call(t.File);e.deconstructPacket=function(t){var e=[],n=t.data,i=t;return i.data=r(n,e),i.attachments=e.length,{packet:i,buffers:e}},e.reconstructPacket=function(t,e){return t.data=i(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function n(t,a,l){if(!t)return t;if(c&&t instanceof Blob||u&&t instanceof File){r++;var f=new FileReader;f.onload=function(){l?l[a]=this.result:i=this.result,--r||e(i)},f.readAsArrayBuffer(t)}else if(o(t))for(var h=0;h<t.length;h++)n(t[h],h,t);else if("object"==typeof t&&!s(t))for(var p in t)n(t[p],p,t)}var r=0,i=t;n(i),r||e(i)}}).call(e,function(){return this}())},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){(function(e){function n(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t,e){if(!(this instanceof r))return new r(t,e);t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=e.autoConnect!==!1,this.autoConnect&&this.open()}var i=n(31),o=n(58),s=n(24),a=n(23),c=n(60),u=n(61),l=n(19)("socket.io-client:manager"),f=n(56),h=n(62),p=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)p.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)p.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},r.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},s(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t,e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=i(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var o=c(n,"open",function(){r.onopen(),t&&t()}),s=c(n,"error",function(e){if(l("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;l("connect attempt will timeout after %d",a);var u=setTimeout(function(){l("connect attempt timed out after %d",a),o.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(o),this.subs.push(s),this},r.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(c(t,"data",u(this,"ondata"))),this.subs.push(c(t,"ping",u(this,"onping"))),this.subs.push(c(t,"pong",u(this,"onpong"))),this.subs.push(c(t,"error",u(this,"onerror"))),this.subs.push(c(t,"close",u(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",u(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~f(i.connecting,r)||i.connecting.push(r)}var r=this.nsps[t];if(!r){r=new o(this,t,e),this.nsps[t]=r;var i=this;r.on("connecting",n),r.on("connect",function(){r.id=i.generateId(t)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=f(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){l("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++){var n=this.subs.shift();n.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(32),t.exports.parser=n(39)},function(t,e,n){(function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=l(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=l(n.host).host),this.secure=null!=n.secure?n.secure:e.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(e.location?location.hostname:"localhost"),this.port=n.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=f.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var i="object"==typeof e&&e;i.global===i&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function i(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var o=n(33),s=n(24),a=n(50)("engine.io-client:socket"),c=n(56),u=n(39),l=n(57),f=n(47);t.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=u.protocol,r.Socket=r,r.Transport=n(38),r.transports=n(33),r.parser=n(39),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=i(this.query);e.EIO=u.protocol,e.transport=t;var n=this.transportOptions[t]||{};this.id&&(e.sid=this.id);var r=new o[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0});return r},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t);
}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(h.onlyBinaryUpgrades){var e=!this.supportsBinary&&h.transport.supportsBinary;f=f||e}f||(a('probe transport "%s" opened',t),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(e){if(!f)if("pong"===e.type&&"probe"===e.data){if(a('probe transport "%s" pong',t),h.upgrading=!0,h.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"===l.name,a('pausing current transport "%s"',h.transport.name),h.transport.pause(function(){f||"closed"!==h.readyState&&(a("changing transport and sending upgrade packet"),u(),h.setTransport(l),l.send([{type:"upgrade"}]),h.emit("upgrade",l),l=null,h.upgrading=!1,h.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=l.name,h.emit("upgradeError",n)}}))}function n(){f||(f=!0,u(),l.close(),l=null)}function i(e){var r=new Error("probe error: "+e);r.transport=l.name,n(),a('probe transport "%s" failed because of error: %s',t,e),h.emit("upgradeError",r)}function o(){i("transport closed")}function s(){i("socket closed")}function c(t){l&&t.name!==l.name&&(a('"%s" works - aborting "%s"',t.name,l.name),n())}function u(){l.removeListener("open",e),l.removeListener("error",i),l.removeListener("close",o),h.removeListener("close",s),h.removeListener("upgrading",c)}a('probing transport "%s"',t);var l=this.createTransport(t,{probe:1}),f=!1,h=this;r.priorWebsocketSuccess=!1,l.once("open",e),l.once("error",i),l.once("close",o),this.once("close",s),this.once("upgrading",c),l.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(a('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else a('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){n=n||{},n.compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),a("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){a("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){a('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~c(this.transports,t[n])&&e.push(t[n]);return e}}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(e){var n,r=!1,a=!1,c=!1!==e.jsonp;if(t.location){var u="https:"===location.protocol,l=location.port;l||(l=u?443:80),r=e.hostname!==location.hostname||l!==e.port,a=e.secure!==u}if(e.xdomain=r,e.xscheme=a,n=new i(e),"open"in n&&!e.forceJSONP)return new o(e);if(!c)throw new Error("JSONP disabled");return new s(e)}var i=n(34),o=n(36),s=n(53),a=n(54);e.polling=r,e.websocket=a}).call(e,function(){return this}())},function(t,e,n){(function(e){var r=n(35);t.exports=function(t){var n=t.xdomain,i=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!i&&o)return new XDomainRequest}catch(t){}if(!n)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(e,function(){return this}())},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){(function(e){function r(){}function i(t){if(c.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,e.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=t.hostname!==e.location.hostname||r!==t.port,this.xs=t.secure!==n}}function o(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function s(){for(var t in o.requests)o.requests.hasOwnProperty(t)&&o.requests[t].abort()}var a=n(34),c=n(37),u=n(24),l=n(48),f=n(50)("engine.io-client:polling-xhr");t.exports=i,t.exports.Request=o,l(i,c),i.prototype.supportsBinary=!0,i.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new o(t)},i.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=r},i.prototype.doPoll=function(){f("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},u(o.prototype),o.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new a(t),r=this;try{f("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}}catch(t){}if("POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState){var t;try{t=n.getResponseHeader("Content-Type")}catch(t){}"application/octet-stream"===t&&(n.responseType="arraybuffer")}4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},f("xhr data %s",this.data),n.send(this.data)}catch(t){return void setTimeout(function(){r.onError(t)},0)}e.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},o.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},o.prototype.cleanup=function(t){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(t){}e.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},o.prototype.hasXDR=function(){return"undefined"!=typeof e.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},e.document&&(e.attachEvent?e.attachEvent("onunload",s):e.addEventListener&&e.addEventListener("beforeunload",s,!1))}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=n(38),o=n(47),s=n(39),a=n(48),c=n(49),u=n(50)("engine.io-client:polling");t.exports=r;var l=function(){var t=n(34),e=new t({xdomain:!1});return null!=e.responseType}();a(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){u("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){u("pre-pause polling complete"),--r||e()})),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",function(){u("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;u("polling got data %s",t);var n=function(t,n,r){return"opening"===e.readyState&&e.onOpen(),"close"===t.type?(e.onClose(),!1):void e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){u("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var i=n(39),o=n(24);t.exports=r,o(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){(function(t){function r(t,n){var r="b"+e.packets[t.type]+t.data.data;return n(r)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=t.data,o=new Uint8Array(i),s=new Uint8Array(1+i.byteLength);s[0]=$[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return r(s.buffer)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){t.data=i.result,e.encodePacket(t,n,!0,r)},i.readAsArrayBuffer(t.data)}function s(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(g)return o(t,n,r);var i=new Uint8Array(1);i[0]=$[t.type];var s=new w([i.buffer,t.data]);return r(s)}function a(t){try{t=d.decode(t,{strict:!1})}catch(t){return!1}return t}function c(t,e,n){for(var r=new Array(t.length),i=p(t.length,n),o=function(t,n,i){e(n,function(e,n){r[t]=n,i(e,r)})},s=0;s<t.length;s++)o(s,t[s],i)}var u,l=n(40),f=n(25),h=n(41),p=n(42),d=n(43);t&&t.ArrayBuffer&&(u=n(45));var m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),v="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),g=m||v;e.protocol=3;var $=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},y=l($),b={type:"error",data:"parser error"},w=n(46);e.encodePacket=function(e,n,o,a){"function"==typeof n&&(a=n,n=!1),"function"==typeof o&&(a=o,o=null);var c=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&c instanceof ArrayBuffer)return i(e,n,a);if(w&&c instanceof t.Blob)return s(e,n,a);if(c&&c.base64)return r(e,a);var u=$[e.type];return void 0!==e.data&&(u+=o?d.encode(String(e.data),{strict:!1}):String(e.data)),a(""+u)},e.encodeBase64Packet=function(n,r){var i="b"+e.packets[n.type];if(w&&n.data instanceof t.Blob){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];r(i+t)},o.readAsDataURL(n.data)}var s;try{s=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(t){for(var a=new Uint8Array(n.data),c=new Array(a.length),u=0;u<a.length;u++)c[u]=a[u];s=String.fromCharCode.apply(null,c)}return i+=t.btoa(s),r(i)},e.decodePacket=function(t,n,r){if(void 0===t)return b;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&(t=a(t),t===!1))return b;var i=t.charAt(0);return Number(i)==i&&y[i]?t.length>1?{type:y[i],data:t.substring(1)}:{type:y[i]}:b}var o=new Uint8Array(t),i=o[0],s=h(t,1);return w&&"blob"===n&&(s=new w([s])),{type:y[i],data:s}},e.decodeBase64Packet=function(t,e){var n=y[t.charAt(0)];if(!u)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=u.decode(t.substr(1));return"blob"===e&&w&&(r=new w([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function i(t){return t.length+":"+t}function o(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,i(t))})}"function"==typeof n&&(r=n,n=null);var s=f(t);return n&&s?w&&!g?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void c(t,o,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""===t)return r(b,0,1);for(var o,s,a="",c=0,u=t.length;c<u;c++){var l=t.charAt(c);if(":"===l){if(""===a||a!=(o=Number(a)))return r(b,0,1);if(s=t.substr(c+1,o),a!=s.length)return r(b,0,1);if(s.length){if(i=e.decodePacket(s,n,!1),b.type===i.type&&b.data===i.data)return r(b,0,1);var f=r(i,c+o,u);if(!1===f)return}c+=o,a=""}else a+=l}return""!==a?r(b,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})}return t.length?void c(t,r,function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),i=new Uint8Array(r),o=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}e?i[o++]=0:i[o++]=1;for(var a=n.byteLength.toString(),s=0;s<a.length;s++)i[o++]=parseInt(a[s]);i[o++]=255;for(var r=new Uint8Array(n),s=0;s<r.length;s++)i[o++]=r[s]}),n(i.buffer)}):n(new ArrayBuffer(0))},e.encodePayloadAsBlob=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);t=r.buffer,e[0]=0}for(var o=t instanceof ArrayBuffer?t.byteLength:t.size,s=o.toString(),a=new Uint8Array(s.length+1),i=0;i<s.length;i++)a[i]=parseInt(s[i]);if(a[s.length]=255,w){var c=new w([e.buffer,a.buffer,t]);n(null,c)}})}c(t,r,function(t,e){return n(new w(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[];i.byteLength>0;){for(var s=new Uint8Array(i),a=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(b,0,1);c+=s[u]}i=h(i,2+c.length),c=parseInt(c);var l=h(i,0,c);if(a)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(t){var f=new Uint8Array(l);l="";for(var u=0;u<f.length;u++)l+=String.fromCharCode(f[u])}o.push(l),i=h(i,c)}var p=o.length;o.forEach(function(t,i){r(e.decodePacket(t,n,!0),i,p)})}}).call(e,function(){return this}())},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)o[a]=i[s];return o.buffer}},function(t,e){function n(t,e,n){function i(t,r){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(o=!0,e(t),e=n):0!==i.count||o||e(null,r)}var o=!1;return n=n||r,i.count=t,0===t?e():i}function r(){}t.exports=n},function(t,e,n){var r;(function(t,i){!function(o){function s(t){for(var e,n,r=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function a(t){for(var e,n=t.length,r=-1,i="";++r<n;)e=t[r],e>65535&&(e-=65536,i+=b(e>>>10&1023|55296),e=56320|1023&e),i+=b(e);return i}function c(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function u(t,e){return b(t>>e&63|128)}function l(t,e){if(0==(4294967168&t))return b(t);var n="";return 0==(4294965248&t)?n=b(t>>6&31|192):0==(4294901760&t)?(c(t,e)||(t=65533),n=b(t>>12&15|224),n+=u(t,6)):0==(4292870144&t)&&(n=b(t>>18&7|240),n+=u(t,12),n+=u(t,6)),n+=b(63&t|128)}function f(t,e){e=e||{};for(var n,r=!1!==e.strict,i=s(t),o=i.length,a=-1,c="";++a<o;)n=i[a],c+=l(n,r);return c}function h(){if(y>=$)throw Error("Invalid byte index");var t=255&g[y];if(y++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function p(t){var e,n,r,i,o;if(y>$)throw Error("Invalid byte index");if(y==$)return!1;if(e=255&g[y],y++,0==(128&e))return e;if(192==(224&e)){if(n=h(),o=(31&e)<<6|n,o>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=h(),r=h(),o=(15&e)<<12|n<<6|r,o>=2048)return c(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=h(),r=h(),i=h(),o=(7&e)<<18|n<<12|r<<6|i,o>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}function d(t,e){e=e||{};var n=!1!==e.strict;g=s(t),$=g.length,y=0;for(var r,i=[];(r=p(n))!==!1;)i.push(r);return a(i)}var m="object"==typeof e&&e,v=("object"==typeof t&&t&&t.exports==m&&t,"object"==typeof i&&i);v.global!==v&&v.window!==v||(o=v);var g,$,y,b=String.fromCharCode,w={version:"2.1.2",encode:f,decode:d};r=function(){return w}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(44)(t),function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;n<i;n+=3)o+=t[r[n]>>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,s,a=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(e=0;e<c;e+=4)r=n[t.charCodeAt(e)],i=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],f[u++]=r<<2|i>>4,f[u++]=(15&i)<<4|o>>2,f[u++]=(3&o)<<6|63&s;return l}}()},function(t,e){(function(e){function n(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=i.buffer}t[e]=r}}}function r(t,e){e=e||{};var r=new o;n(t);for(var i=0;i<t.length;i++)r.append(t[i]);return e.type?r.getBlob(e.type):r.getBlob()}function i(t,e){return n(t),new Blob(t,e||{})}var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,s=function(){try{var t=new Blob(["hi"]);return 2===t.size}catch(t){return!1}}(),a=s&&function(){try{var t=new Blob([new Uint8Array([1,2])]);return 2===t.size}catch(t){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;t.exports=function(){return s?a?e.Blob:i:c?r:void 0}()}).call(e,function(){return this}())},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){"use strict";function n(t){var e="";do e=s[t%a]+e,t=Math.floor(t/a);while(t>0);return e}function r(t){var e=0;for(l=0;l<t.length;l++)e=e*a+c[t.charAt(l)];return e}function i(){var t=n(+new Date);return t!==o?(u=0,o=t):t+"."+n(u++)}for(var o,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,c={},u=0,l=0;l<a;l++)c[s[l]]=l;i.encode=n,i.decode=r,t.exports=i},function(t,e,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function c(){var t;try{t=e.storage.debug}catch(t){}return!t&&"undefined"!=typeof r&&"env"in r&&(t=r.env.DEBUG),t}function u(){try{return window.localStorage}catch(t){}}e=t.exports=n(51),e.log=s,e.formatArgs=o,e.save=a,e.load=c,e.useColors=i,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(c())}).call(e,n(20))},function(t,e,n){function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function i(t){function n(){if(n.enabled){var t=n,r=+new Date,i=r-(u||r);t.diff=i,t.prev=u,t.curr=r,u=r;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=e.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;a++;var i=e.formatters[r];if("function"==typeof i){var s=o[a];n=i.call(t,s),o.splice(a,1),a--}return n}),e.formatArgs.call(t,o);var c=n.log||e.log||console.log.bind(console);c.apply(t,o)}}return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=r(t),"function"==typeof e.init&&e.init(n),n}function o(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&(t=n[i].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function s(){e.enable("")}function a(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=i.debug=i.default=i,e.coerce=c,e.disable=s,e.enable=o,e.enabled=a,e.humanize=n(52),e.names=[],e.skips=[],e.formatters={};var u},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=u?Math.round(t/u)+"d":t>=c?Math.round(t/c)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return o(t,u,"day")||o(t,c,"hour")||o(t,a,"minute")||o(t,s,"second")||t+" ms"}function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,c=60*a,u=24*c,l=365.25*u;t.exports=function(t,e){e=e||{};var o=typeof t;if("string"===o&&t.length>0)return n(t);if("number"===o&&isNaN(t)===!1)return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){(function(e){function r(){}function i(t){o.call(this,t),this.query=this.query||{},a||(e.___eio||(e.___eio=[]),a=e.___eio),this.index=a.length;var n=this;a.push(function(t){n.onData(t)}),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var o=n(37),s=n(48);t.exports=i;var a,c=/\n/g,u=/\\n/g;s(i,o),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(t)}catch(t){o=document.createElement("iframe"),o.name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,s=document.createElement("form"),a=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=l,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),r(),t=t.replace(u,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=f&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(h=i),o.call(this,t)}var i,o=n(38),s=n(39),a=n(47),c=n(48),u=n(49),l=n(50)("engine.io-client:websocket"),f=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{i=n(55)}catch(t){}var h=f;h||"undefined"!=typeof window||(h=i),t.exports=r,c(r,o),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){
var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?e?new h(t,e):new h(t):new h(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var i=t.length,o=0,a=i;o<a;o++)!function(t){s.encodePacket(t,r.supportsBinary,function(o){if(!r.usingBrowserWebSocket){var s={};if(t.options&&(s.compress=t.options.compress),r.perMessageDeflate){var a="string"==typeof o?e.Buffer.byteLength(o):o.length;a<r.perMessageDeflate.threshold&&(s.compress=!1)}}try{r.usingBrowserWebSocket?r.ws.send(o):r.ws.send(o,s)}catch(t){l("websocket closed before onclose event")}--i||n()})}(t[o])},r.prototype.onClose=function(){o.prototype.onClose.call(this)},r.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||(t.b64=1),t=a.encode(t),t.length&&(t="?"+t);var r=this.hostname.indexOf(":")!==-1;return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===r.prototype.name)}}).call(e,function(){return this}())},function(t,e){},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");i!=-1&&o!=-1&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return i!=-1&&o!=-1&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){function r(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var i=n(23),o=n(24),s=n(59),a=n(60),c=n(61),u=n(19)("socket.io-client:socket"),l=n(47);t.exports=e=r;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=o.prototype.emit;o(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[a(t,"open",c(this,"onopen")),a(t,"packet",c(this,"onpacket")),a(t,"close",c(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(f.hasOwnProperty(t))return h.apply(this,arguments),this;var e=s(arguments),n={type:i.EVENT,data:e};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),delete this.flags,this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?l.encode(this.query):this.query;u("sending connect packet with query %s",t),this.packet({type:i.CONNECT,query:t})}else this.packet({type:i.CONNECT})},r.prototype.onclose=function(t){u("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(t);break;case i.BINARY_EVENT:this.onevent(t);break;case i.ACK:this.onack(t);break;case i.BINARY_ACK:this.onack(t);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];u("emitting event %j",e),null!=t.id&&(u("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);u("sending ack %j",r),e.packet({type:i.ACK,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(u("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):u("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)h.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}t.exports=n},function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}t.exports=n},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){function r(t,e){return{enable:function(e){return angular.forEach(t,function(t){t.active=!1}),e.active=!0,t},transform:function(t,e){if("function"==typeof e)return t=e(t);throw new TypeError("Noooo")},current:function(){if("/"===e.path())return t.overview;var n;return angular.forEach(t,function(t){t.path===e.path()&&(n=t)}),n}}}var i=n(64);i.service("Pages",["pagesConfig","$location",r])},function(t,e){t.exports=window.angular.module("BrowserSync")},function(t,e,n){function r(t){return{all:function(){return t.getData("options")}}}var i=n(64);i.factory("Options",["Socket",r])},function(t,e,n){function r(t){var e=s.get("bs",{});Object.keys(e).length||s.set("bs",{}),this.ns=t,this.get=function(e){var n=s.get("bs",{});return Object.keys(n).length||s.set("bs",{}),a.get(n,[t].concat(e).join("."))},this.set=function(e,n){var r=s.get("bs",{});Object.keys(r).length||s.set("bs",{}),r[t]||(r[t]={}),r[t][e]=n,s.set("bs",r)},this.remove=function(e){var n=s.get("bs",{});Object.keys(n).length||s.set("bs",{}),n[t]||(n[t]={}),n[t][e]&&delete n[t][e],s.set("bs",n)}}function i(){return{create:function(t){var e=new r(t);return e}}}var o=n(11),s=n(67),a=n(68);o.module("bsStore",[]).service("Store",["$q","$rootScope",i])},function(t,e,n){var r,i,o;(function(n){"use strict";!function(n,s){i=[],r=s,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(this,function(){function t(){try{return s in i&&i[s]}catch(t){return!1}}var e,r={},i="undefined"!=typeof window?window:n,o=i.document,s="localStorage",a="script";if(r.disabled=!1,r.version="1.3.20",r.set=function(t,e){},r.get=function(t,e){},r.has=function(t){return void 0!==r.get(t)},r.remove=function(t){},r.clear=function(){},r.transact=function(t,e,n){null==n&&(n=e,e=null),null==e&&(e={});var i=r.get(t,e);n(i),r.set(t,i)},r.getAll=function(){},r.forEach=function(){},r.serialize=function(t){return JSON.stringify(t)},r.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},t())e=i[s],r.set=function(t,n){return void 0===n?r.remove(t):(e.setItem(t,r.serialize(n)),n)},r.get=function(t,n){var i=r.deserialize(e.getItem(t));return void 0===i?n:i},r.remove=function(t){e.removeItem(t)},r.clear=function(){e.clear()},r.getAll=function(){var t={};return r.forEach(function(e,n){t[e]=n}),t},r.forEach=function(t){for(var n=0;n<e.length;n++){var i=e.key(n);t(i,r.get(i))}};else if(o&&o.documentElement.addBehavior){var c,u;try{u=new ActiveXObject("htmlfile"),u.open(),u.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),u.close(),c=u.w.frames[0].document,e=c.createElement("div")}catch(t){e=o.createElement("div"),c=o.body}var l=function(t){return function(){var n=Array.prototype.slice.call(arguments,0);n.unshift(e),c.appendChild(e),e.addBehavior("#default#userData"),e.load(s);var i=t.apply(r,n);return c.removeChild(e),i}},f=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),h=function(t){return t.replace(/^d/,"___$&").replace(f,"___")};r.set=l(function(t,e,n){return e=h(e),void 0===n?r.remove(e):(t.setAttribute(e,r.serialize(n)),t.save(s),n)}),r.get=l(function(t,e,n){e=h(e);var i=r.deserialize(t.getAttribute(e));return void 0===i?n:i}),r.remove=l(function(t,e){e=h(e),t.removeAttribute(e),t.save(s)}),r.clear=l(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(s);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(s)}),r.getAll=function(t){var e={};return r.forEach(function(t,n){e[t]=n}),e},r.forEach=l(function(t,e){for(var n,i=t.XMLDocument.documentElement.attributes,o=0;n=i[o];++o)e(n.name,r.deserialize(t.getAttribute(n.name)))})}try{var p="__storejs__";r.set(p,p),r.get(p)!=p&&(r.disabled=!0),r.remove(p)}catch(t){r.disabled=!0}return r.enabled=!r.disabled,r})}).call(e,function(){return this}())},function(t,e,n){var r,i,o;!function(n,s){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=s():(i=[],r=s,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o)))}(this,function(){"use strict";function t(t){if(!t)return!0;if(o(t)&&0===t.length)return!0;if(!r(t)){for(var e in t)if(f.call(t,e))return!1;return!0}return!1}function e(t){return l.call(t)}function n(t){return"number"==typeof t||"[object Number]"===e(t)}function r(t){return"string"==typeof t||"[object String]"===e(t)}function i(t){return"object"==typeof t&&"[object Object]"===e(t)}function o(t){return"object"==typeof t&&"number"==typeof t.length&&"[object Array]"===e(t)}function s(t){return"boolean"==typeof t||"[object Boolean]"===e(t)}function a(t){var e=parseInt(t);return e.toString()===t?e:t}function c(e,i,o,s){if(n(i)&&(i=[i]),t(i))return e;if(r(i))return c(e,i.split(".").map(a),o,s);var u=i[0];if(1===i.length){var l=e[u];return void 0!==l&&s||(e[u]=o),l}return void 0===e[u]&&(n(i[1])?e[u]=[]:e[u]={}),c(e[u],i.slice(1),o,s)}function u(e,i){if(n(i)&&(i=[i]),!t(e)){if(t(i))return e;if(r(i))return u(e,i.split("."));var s=a(i[0]),c=e[s];if(1===i.length)void 0!==c&&(o(e)?e.splice(s,1):delete e[s]);else if(void 0!==e[s])return u(e[s],i.slice(1));return e}}var l=Object.prototype.toString,f=Object.prototype.hasOwnProperty,h=function(t){return Object.keys(h).reduce(function(e,n){return"function"==typeof h[n]&&(e[n]=h[n].bind(h,t)),e},{})};return h.has=function(e,s){if(t(e))return!1;if(n(s)?s=[s]:r(s)&&(s=s.split(".")),t(s)||0===s.length)return!1;for(var a=0;a<s.length;a++){var c=s[a];if(!i(e)&&!o(e)||!f.call(e,c))return!1;e=e[c]}return!0},h.ensureExists=function(t,e,n){return c(t,e,n,!0)},h.set=function(t,e,n,r){return c(t,e,n,r)},h.insert=function(t,e,n,r){var i=h.get(t,e);r=~~r,o(i)||(i=[],h.set(t,e,i)),i.splice(r,0,n)},h.empty=function(e,a){if(t(a))return e;if(!t(e)){var c,u;if(!(c=h.get(e,a)))return e;if(r(c))return h.set(e,a,"");if(s(c))return h.set(e,a,!1);if(n(c))return h.set(e,a,0);if(o(c))c.length=0;else{if(!i(c))return h.set(e,a,null);for(u in c)f.call(c,u)&&delete c[u]}}},h.push=function(t,e){var n=h.get(t,e);o(n)||(n=[],h.set(t,e,n)),n.push.apply(n,Array.prototype.slice.call(arguments,2))},h.coalesce=function(t,e,n){for(var r,i=0,o=e.length;i<o;i++)if(void 0!==(r=h.get(t,e[i])))return r;return n},h.get=function(e,i,o){if(n(i)&&(i=[i]),t(i))return e;if(t(e))return o;if(r(i))return h.get(e,i.split("."),o);var s=a(i[0]);return 1===i.length?void 0===e[s]?o:e[s]:h.get(e[s],i.slice(1),o)},h.del=function(t,e){return u(t,e)},h})},function(t,e,n){function r(t,e,n,r){var o=this;o.options=!1,o.browsers=[],o.socketId="";var s=r.get("pagesConfig"),a=r.get("Pages"),c=r.get("Socket"),u=r.get("Clients");o.ui={menu:s,sectionMenu:!1,disconnected:!1},o.setActiveSection=function(t){a.enable(t),n.path(t.path),o.ui.sectionMenu=!1},o.reloadAll=function(){u.reloadAll(),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reload All Browsers ✔"})},o.scrollAllTo=function(){u.scrollAllTo(0),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Scroll all browsers to Y=0 ✔"})},o.sendAllTo=function(t){u.sendAllTo(t),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reset all Browsers to /"})},o.toggleMenu=function(){o.ui.sectionMenu=!o.ui.sectionMenu},o.socketEvents={connection:function(t){o.update(t)},disconnect:function(){o.ui.disconnected=!0}},o.update=function(t){o.options=i(t),o.ui.disconnected=!1,a.transform(s.overview,function(t){return t})},o.setActiveSection(a.current()),c.options().then(o.socketEvents.connection),e.$on("ui:disconnect",o.socketEvents.disconnect),e.$on("ui:connection",function(e,n){o.socketEvents.connection(n),t.$digest()})}function i(t){return t.displayUrl=o(t.urls),t}function o(t){return!!t&&(t.external||t.local)}var s=n(64);s.controller("MainController",["$scope","$rootScope","$location","$injector",r])},function(t,e,n){var t=n(64),r=n(71);t.filter("ucfirst",function(){return r.ucfirst}).filter("localRootUrl",function(){return r.localRootUrl}).filter("localUrl",function(){return r.localRootUrl}).filter("orderObjectBy",function(){return r.orderObjectBy})},function(t,e){t.exports={ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},localRootUrl:function(t,e){return[e,"://",window.location.hostname,":",t].join("")},localUrl:function(t,e,n){return"snippet"===n?t:["//",window.location.hostname,":",e,t].join("")},orderObjectBy:function(t,e,n){var r=[];return Object.keys(t).forEach(function(e){r.push(t[e])}),r.sort(function(t,n){return t[e]>n[e]?1:-1}),n&&r.reverse(),r}}},function(t,e,n){var t=n(64);t.directive("icon",n(73)),t.directive("linkTo",n(74)),t.directive("switch",n(75)),t.directive("newTab",n(76))},function(t,e){t.exports=function(){return{scope:{icon:"@"},restrict:"E",replace:!0,template:'<svg bs-svg-icon><use xlink:href="{{iconName}}"></use></svg>',link:function(t,e,n){return t.iconName="#svg-"+t.icon,t}}}},function(t,e){t.exports=function(){return{restrict:"E",replace:!1,transclude:!0,scope:{path:"@"},template:"<a href='#' ng-click='navi(path)' ng-transclude=''>as</a>",controller:["$scope","$location","$injector",function(t,e,n){var r=n.get("pagesConfig"),i=n.get("Pages");t.navi=function(t){var n=r[t];i.enable(n),e.path(t)}}]}}},function(t,e){t.exports=function(){return{scope:{toggle:"&",item:"=",switchid:"@",title:"@",tagline:"@",active:"=",prop:"@"},restrict:"E",replace:!0,transclude:!0,templateUrl:"bs-switch.html",controllerAs:"ctrl",controller:["$scope",function(t){var e=this;e.item=t.item}]}}},function(t,e){t.exports=function(){return{scope:{url:"@",mode:"@"},restrict:"E",replace:!0,template:'<a href="{{url}}" bs-button="subtle-alt icon" target="_blank" title="Open a new tab" ng-show="mode !== \'snippet\'"><icon icon="newtab"></icon> New Tab </a>'}}}]);
//# sourceMappingURL=app.js.map