biofriction-wp-theme/node_modules/browser-sync-ui/public/js/app.js

3 lines
241 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see app.js.LICENSE.txt */
(()=>{var t={540:t=>{function e(){}t.exports=function(t,n,r){var i=!1;return r=r||e,o.count=t,0===t?n():o;function o(t,e){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,n(t),n=r):0!==o.count||i||n(null,e)}}},8537:()=>{!function(t,e,n){"use strict";var r=e.module("ngRoute",["ng"]).provider("$route",(function(){function t(t,n){return e.extend(Object.create(t),n)}var n={};function r(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}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),n[t]=e.extend(o,t&&r(t,o)),t){var s="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";n[s]=e.extend({redirectTo:t},r(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(r,o,s,a,c,u,l){var f,h,p=!1,d={routes:n,reload:function(){p=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,p=!1}};r.$evalAsync((function(){g(t),t.defaultPrevented||m()}))},updateParams:function(t){if(!this.current||!this.current.$$route)throw i("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),o.path(v(this.current.$$route.originalPath,t)),o.search(t)}};return r.$on("$locationChangeStart",g),r.$on("$locationChangeSuccess",m),d;function g(i){var s,a,c=d.current;e.forEach(n,(function(n,r){!a&&(s=function(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}(o.path(),n))&&((a=t(n,{params:e.extend({},o.search(),s),pathParams:s})).$$route=n)})),f=a||n.null&&t(n.null,{params:{},pathParams:{}}),(h=f&&c&&f.$$route===c.$$route&&e.equals(f.pathParams,c.pathParams)&&!f.reloadOnSearch&&!p)||!c&&!f||r.$broadcast("$routeChangeStart",f,c).defaultPrevented&&i&&i.preventDefault()}function m(){var t=d.current,n=f;h?(t.params=n.params,e.copy(t.params,s),r.$broadcast("$routeUpdate",t)):(n||t)&&(p=!1,d.current=n,n&&n.redirectTo&&(e.isString(n.redirectTo)?o.path(v(n.redirectTo,n.params)).search(n.params).replace():o.url(n.redirectTo(n.pathParams,o.path(),o.search())).replace()),a.when(n).then((function(){if(n){var t,r,i=e.extend({},n.resolve);return e.forEach(i,(function(t,n){i[n]=e.isString(t)?c.get(t):c.invoke(t,null,null,n)})),e.isDefined(t=n.template)?e.isFunction(t)&&(t=t(n.params)):e.isDefined(r=n.templateUrl)&&(e.isFunction(r)&&(r=r(n.params)),e.isDefined(r)&&(n.loadedTemplateUrl=l.valueOf(r),t=u(r))),e.isDefined(t)&&(i.$template=t),a.all(i)}})).then((function(i){n==d.current&&(n&&(n.locals=i,e.copy(n.params,s)),r.$broadcast("$routeChangeSuccess",n,t))}),(function(e){n==d.current&&r.$broadcast("$routeChangeError",n,t,e)})))}function v(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("")}}]})),i=e.$$minErr("ngRoute");function o(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,c){var u,l,f,h=s.autoscroll,p=s.onload||"";function d(){f&&(r.cancel(f),f=null),u&&(u.$destroy(),u=null),l&&((f=r.leave(l)).then((function(){f=null})),l=null)}function g(){var s=t.current&&t.current.locals,a=s&&s.$template;if(e.isDefined(a)){var f=i.$new(),g=t.current,m=c(f,(function(t){r.enter(t,null,l||o).then((function(){!e.isDefined(h)||h&&!i.$eval(h)||n()})),d()}));l=m,(u=g.scope=f).$emit("$viewContentLoaded"),u.$eval(p)}else d()}i.$on("$routeChangeSuccess",g),g()}}}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)}}}r.provider("$routeParams",(function(){this.$get=function(){return{}}})),r.directive("ngView",o),r.directive("ngView",s),o.$inject=["$route","$anchorScroll","$animate"],s.$inject=["$compile","$controller","$route"]}(window,window.angular)},2339:(t,e,n)=>{n(8537),t.exports="ngRoute"},8952:()=>{!function(t,e,n){"use strict";var r=e.$$minErr("$sanitize"),i=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,o=/^<\/\s*([\w:-]+)[^>]*>/,s=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,a=/^</,c=/^<\//,u=/<!--(.*?)-->/g,l=/<!DOCTYPE([^>]*?)>/i,f=/<!\[CDATA\[(.*?)]]>/g,h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~| |!])/g,d=A("area,br,col,hr,img,wbr"),g=A("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m=A("rp,rt"),v=e.extend({},m,g),$=e.extend({},g,A("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")),y=e.extend({},m,A("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")),b=A("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"),w=A("script,style"),x=e.extend({},d,$,y,v,b),C=A("background,cite,href,longdesc,src,usemap,xlink:href"),k=A("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"),S=A("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),E=e.extend({},C,S,k);function A(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}var O=document.createElement("pre");function T(t){return t?(O.innerHTML=t.replace(/</g,"&lt;"),O.textContent):""}function N(t){return t.replace(/&/g,"&amp;").replace(h,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(p,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function M(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o,s){t=e.lowercase(t),!r&&w[t]&&(r=t),r||!0!==x[t]||(i("<"),i(t),e.forEach(o,(function(r,o){var s=e.lowercase(o),a="img"===t&&"src"===s||"background"===s;!0!==E[s]||!0===C[s]&&!n(r,a)||(i(" "),i(o),i('="'),i(N(r)),i('"'))})),i(s?"/>":">"))},end:function(t){t=e.lowercase(t),r||!0!==x[t]||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(N(t))}}}e.module("ngSanitize",[]).provider("$sanitize",(function(){this.$get=["$$sanitizeUri",function(t){return function(n){var h=[];return function(t,n){"string"!=typeof t&&(t=null==t?"":""+t);var h,p,g,m,b=[],x=t;for(b.last=function(){return b[b.length-1]};t;){if(m="",p=!0,b.last()&&w[b.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+b.last()+"[^>]*>","i"),(function(t,e){return e=e.replace(u,"$1").replace(f,"$1"),n.chars&&n.chars(T(e)),""})),k(0,b.last())):(0===t.indexOf("\x3c!--")?(h=t.indexOf("--",4))>=0&&t.lastIndexOf("--\x3e",h)===h&&(n.comment&&n.comment(t.substring(4,h)),t=t.substring(h+3),p=!1):l.test(t)?(g=t.match(l))&&(t=t.replace(g[0],""),p=!1):c.test(t)?(g=t.match(o))&&(t=t.substring(g[0].length),g[0].replace(o,k),p=!1):a.test(t)&&((g=t.match(i))?(g[4]&&(t=t.substring(g[0].length),g[0].replace(i,C)),p=!1):(m+="<",t=t.substring(1))),p&&(m+=(h=t.indexOf("<"))<0?t:t.substring(0,h),t=h<0?"":t.substring(h),n.chars&&n.chars(T(m)))),t==x)throw r("badparse","The sanitizer was unable to parse the following block of html: {0}",t);x=t}function C(t,r,i,o){if(r=e.lowercase(r),$[r])for(;b.last()&&y[b.last()];)k(0,b.last());v[r]&&b.last()==r&&k(0,r),(o=d[r]||!!o)||b.push(r);var a={};i.replace(s,(function(t,e,n,r,i){var o=n||r||i||"";a[e]=T(o)})),n.start&&n.start(r,a,o)}function k(t,r){var i,o=0;if(r=e.lowercase(r))for(o=b.length-1;o>=0&&b[o]!=r;o--);if(o>=0){for(i=b.length-1;i>=o;i--)n.end&&n.end(b[i]);b.length=o}}k()}(n,M(h,(function(e,n){return!/^unsafe/.test(t(e,n))}))),h.join("")}}]})),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(i,o){if(!i)return i;for(var s,a,c,u=i,l=[];s=u.match(n);)a=s[0],s[2]||s[4]||(a=(s[3]?"http://":"mailto:")+a),c=s.index,f(u.substr(0,c)),h(a,s[0].replace(r,"")),u=u.substring(c+s[0].length);return f(u),t(l.join(""));function f(t){var n,r;t&&l.push((n=t,M(r=[],e.noop).chars(n),r.join("")))}function h(t,n){l.push("<a "),e.isDefined(o)&&l.push('target="',o,'" '),l.push('href="',t.replace(/"/g,"&quot;"),'">'),f(n),l.push("</a>")}}}])}(window,window.angular)},9326:(t,e,n)=>{n(8952),t.exports="ngSanitize"},6916:()=>{!function(t,e,n){"use strict";var r=e.module("ngTouch",[]);function i(t,n,i){r.directive(t,["$parse","$swipe",function(r,o){return function(s,a,c){var u,l,f=r(c[t]),h=["touch"];e.isDefined(c.ngSwipeDisableMouse)||h.push("mouse"),o.bind(a,{start:function(t,e){u=t,l=!0},cancel:function(t){l=!1},end:function(t,e){(function(t){if(!u)return!1;var e=Math.abs(t.y-u.y),r=(t.x-u.x)*n;return l&&e<75&&r>0&&r>30&&e/r<.3})(t)&&s.$apply((function(){a.triggerHandler(i),f(s,{$event:e})}))}},h)}}])}r.factory("$swipe",[function(){var t={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};function n(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 r(n,r){var i=[];return e.forEach(n,(function(e){var n=t[e][r];n&&i.push(n)})),i.join(" ")}return{bind:function(t,e,i){var o,s,a,c,u=!1;i=i||["mouse","touch"],t.on(r(i,"start"),(function(t){a=n(t),u=!0,o=0,s=0,c=a,e.start&&e.start(a,t)}));var l=r(i,"cancel");l&&t.on(l,(function(t){u=!1,e.cancel&&e.cancel(t)})),t.on(r(i,"move"),(function(t){if(u&&a){var r=n(t);if(o+=Math.abs(r.x-c.x),s+=Math.abs(r.y-c.y),c=r,!(o<10&&s<10))return s>o?(u=!1,void(e.cancel&&e.cancel(t))):(t.preventDefault(),void(e.move&&e.move(r,t)))}})),t.on(r(i,"end"),(function(t){u&&(u=!1,e.end&&e.end(n(t),t))}))}}}]),r.config(["$provide",function(t){t.decorator("ngClickDirective",["$delegate",function(t){return t.shift(),t}])}]),r.directive("ngClick",["$parse","$timeout","$rootElement",function(t,n,r){var i,o,s,a="ng-click-active";function c(t,e,n){for(var r=0;r<t.length;r+=2)if(i=t[r],o=t[r+1],s=e,a=n,Math.abs(i-s)<25&&Math.abs(o-a)<25)return t.splice(r,r+2),!0;var i,o,s,a;return!1}function u(t){if(!(Date.now()-i>2500)){var n,r=t.touches&&t.touches.length?t.touches:[t],a=r[0].clientX,u=r[0].clientY;a<1&&u<1||s&&s[0]===a&&s[1]===u||(s&&(s=null),"label"===(n=t.target,e.lowercase(n.nodeName||n[0]&&n[0].nodeName))&&(s=[a,u]),c(o,a,u)||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur&&t.target.blur()))}}function l(t){var e=t.touches&&t.touches.length?t.touches:[t],r=e[0].clientX,i=e[0].clientY;o.push(r,i),n((function(){for(var t=0;t<o.length;t+=2)if(o[t]==r&&o[t+1]==i)return void o.splice(t,t+2)}),2500,!1)}return function(n,s,f){var h,p,d,g,m=t(f.ngClick),v=!1;function $(){v=!1,s.removeClass(a)}s.on("touchstart",(function(t){v=!0,3==(h=t.target?t.target:t.srcElement).nodeType&&(h=h.parentNode),s.addClass(a),p=Date.now();var e=t.originalEvent||t,n=(e.touches&&e.touches.length?e.touches:[e])[0];d=n.clientX,g=n.clientY})),s.on("touchcancel",(function(t){$()})),s.on("touchend",(function(t){var n=Date.now()-p,a=t.originalEvent||t,m=(a.changedTouches&&a.changedTouches.length?a.changedTouches:a.touches&&a.touches.length?a.touches:[a])[0],y=m.clientX,b=m.clientY,w=Math.sqrt(Math.pow(y-d,2)+Math.pow(b-g,2));v&&n<750&&w<12&&(function(t,e){o||(r[0].addEventListener("click",u,!0),r[0].addEventListener("touchstart",l,!0),o=[]),i=Date.now(),c(o,t,e)}(y,b),h&&h.blur(),e.isDefined(f.disabled)&&!1!==f.disabled||s.triggerHandler("click",[t])),$()})),s.onclick=function(t){},s.on("click",(function(t,e){n.$apply((function(){m(n,{$event:e||t})}))})),s.on("mousedown",(function(t){s.addClass(a)})),s.on("mousemove mouseup",(function(t){s.removeClass(a)}))}}]),i("ngSwipeLeft",-1,"swipeleft"),i("ngSwipeRight",1,"swiperight")}(window,window.angular)},5746:(t,e,n)=>{n(6916),t.exports="ngTouch"},7808:()=>{!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)+i;return e<o.length?Ft(o[e]):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(Ft(o[r]));return new e(a)}}var i=/^\/(.+)\/([a-z]*)$/,o=function(t){return I(t)?t.toLowerCase():t},s=Object.prototype.hasOwnProperty,a=function(t){return I(t)?t.toUpperCase():t};"i"!=="I".toLowerCase()&&(o=function(t){return I(t)?t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(32|t.charCodeAt(0))})):t},a=function(t){return I(t)?t.replace(/[a-z]/g,(function(t){return String.fromCharCode(-33&t.charCodeAt(0))})):t});var c,u,l,f,h=[].slice,p=[].splice,d=[].push,g=Object.prototype.toString,m=Object.getPrototypeOf,v=r("ng"),$=t.angular||(t.angular={}),y=0;function b(t){if(null==t||z(t))return!1;if(U(t)||I(t)||u&&t instanceof u)return!0;var e="length"in Object(t)&&t.length;return q(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function w(t,e,n){var r,i;if(t)if(L(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(U(t)||b(t)){var o="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(o||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==w)t.forEach(e,n,t);else if(F(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)s.call(t,r)&&e.call(n,t[r],r,t);return t}function x(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 C(t){return function(e,n){t(n,e)}}function k(){return++y}function S(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function E(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var s=e[i];if(_(s)||L(s))for(var a=Object.keys(s),c=0,u=a.length;c<u;c++){var l=a[c],f=s[l];n&&_(f)?V(f)?t[l]=new Date(f.valueOf()):H(f)?t[l]=new RegExp(f):f.nodeName?t[l]=f.cloneNode(!0):tt(f)?t[l]=f.clone():(_(t[l])||(t[l]=U(f)?[]:{}),E(t[l],[f],!0)):t[l]=f}}return S(t,r),t}function A(t){return E(t,h.call(arguments,1),!1)}function O(t){return E(t,h.call(arguments,1),!0)}function T(t){return parseInt(t,10)}function N(t,e){return A(Object.create(t),e)}function M(){}function j(t){return t}function B(t){return function(){return t}}function P(t){return L(t.toString)&&t.toString!==g}function R(t){return void 0===t}function D(t){return void 0!==t}function _(t){return null!==t&&"object"==typeof t}function F(t){return null!==t&&"object"==typeof t&&!m(t)}function I(t){return"string"==typeof t}function q(t){return"number"==typeof t}function V(t){return"[object Date]"===g.call(t)}c=e.documentMode,M.$inject=[],j.$inject=[];var U=Array.isArray;function L(t){return"function"==typeof t}function H(t){return"[object RegExp]"===g.call(t)}function z(t){return t&&t.window===t}function W(t){return t&&t.$evalAsync&&t.$watch}function X(t){return"[object Blob]"===g.call(t)}function J(t){return"boolean"==typeof t}function Y(t){return t&&L(t.then)}var G=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;function K(t){return t&&q(t.length)&&G.test(g.call(t))}var Z=function(t){return I(t)?t.trim():t},Q=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function tt(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function et(t){return o(t.nodeName||t[0]&&t[0].nodeName)}function nt(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function rt(t,e){var n=[],r=[];if(e){if(K(e))throw v("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw v("cpi","Can't copy! Source and destination are identical.");return U(e)?e.length=0:w(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),n.push(t),r.push(e),i(t,e)}return o(t);function i(t,e){var n,r=e.$$hashKey;if(U(t))for(var i=0,a=t.length;i<a;i++)e.push(o(t[i]));else if(F(t))for(n in t)e[n]=o(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=o(t[n]));else for(n in t)s.call(t,n)&&(e[n]=o(t[n]));return S(e,r),e}function o(t){if(!_(t))return t;var e=n.indexOf(t);if(-1!==e)return r[e];if(z(t)||W(t))throw v("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var o,s=!1;return U(t)?(o=[],s=!0):K(t)?o=new t.constructor(t):V(t)?o=new Date(t.getTime()):H(t)?(o=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0])).lastIndex=t.lastIndex:X(t)?o=new t.constructor([t],{type:t.type}):L(t.cloneNode)?o=t.cloneNode(!0):(o=Object.create(m(t)),s=!0),n.push(t),r.push(o),s?i(t,o):o}}function it(t,e){if(U(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(_(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function ot(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;if(o==typeof e&&"object"==o){if(!U(t)){if(V(t))return!!V(e)&&ot(t.getTime(),e.getTime());if(H(t))return!!H(e)&&t.toString()==e.toString();if(W(t)||W(e)||z(t)||z(e)||U(e)||V(e)||H(e))return!1;for(r in i=Dt(),t)if("$"!==r.charAt(0)&&!L(t[r])){if(!ot(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&D(e[r])&&!L(e[r]))return!1;return!0}if(!U(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!ot(t[r],e[r]))return!1;return!0}}return!1}var st=function(){if(!D(st.rules)){var t=e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");st.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else st.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return st.rules},at=function(){if(D(at.name_))return at.name_;var t,n,r,i,o=Ct.length;for(n=0;n<o;++n)if(r=Ct[n],t=e.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return at.name_=i};function ct(t,e,n){return t.concat(h.call(e,n))}function ut(t,e){return h.call(t,e||0)}function lt(t,e){var n=arguments.length>2?ut(arguments,2):[];return!L(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,ct(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function ft(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:z(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":W(r)&&(i="$SCOPE"),i}function ht(t,e){return R(t)?n:(q(e)||(e=e?2:null),JSON.stringify(t,ft,e))}function pt(t){return I(t)?JSON.parse(t):t}var dt=/:/g;function gt(t,e){t=t.replace(dt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function mt(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,n*(gt(e,r)-r))}function vt(t){t=u(t).clone();try{t.empty()}catch(t){}var e=u("<div>").append(t).html();try{return t[0].nodeType===_t?o(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,(function(t,e){return"<"+o(e)}))}catch(t){return o(e)}}function $t(t){try{return decodeURIComponent(t)}catch(t){}}function yt(t){var e={};return w((t||"").split("&"),(function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(r=t.substring(0,n),i=t.substring(n+1)),D(r=$t(r))&&(i=!D(i)||$t(i),s.call(e,r)?U(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function bt(t){var e=[];return w(t,(function(t,n){U(t)?w(t,(function(t){e.push(xt(n,!0)+(!0===t?"":"="+xt(t,!0)))})):e.push(xt(n,!0)+(!0===t?"":"="+xt(t,!0)))})),e.length?e.join("&"):""}function wt(t){return xt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function xt(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":"+")}var Ct=["ng-","data-ng-","ng:","x-ng-"];function kt(n,r,i){_(i)||(i={}),i=A({strictDi:!1},i);var o=function(){if((n=u(n)).injector()){var t=n[0]===e?"document":vt(n);throw v("btstrpd","App already bootstrapped with this element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}(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=De(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},s=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&s.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!a.test(t.name))return o();t.name=t.name.replace(a,""),$.resumeBootstrap=function(t){return w(t,(function(t){r.push(t)})),o()},L($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function St(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function Et(t){var e=$.element(t).injector();if(!e)throw v("test","no injector found for element argument to getTestability");return e.get("$$testability")}var At=/[A-Z]/g;function Ot(t,e){return e=e||"_",t.replace(At,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var Tt,Nt=!1;function Mt(t,e,n){if(!t)throw v("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function jt(t,e,n){return n&&U(t)&&(t=t[t.length-1]),Mt(L(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function Bt(t,e){if("hasOwnProperty"===t)throw v("badname","hasOwnProperty is not a valid {0} name",e)}function Pt(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&&L(t)?lt(o,t):t}function Rt(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=u(h.call(t,0,i))),e.push(n));return e||t}function Dt(){return Object.create(null)}var _t=3;function Ft(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):R(t)?"undefined":"string"!=typeof t?function(t){var e=[];return JSON.stringify(t,(function(t,n){if(_(n=ft(t,n))){if(e.indexOf(n)>=0)return"...";e.push(n)}return n}))}(t):t}var It={full:"1.4.14",major:1,minor:4,dot:14,codeName:"material-distinction"};oe.expando="ng339";var qt=oe.cache={},Vt=1,Ut=function(t,e,n){t.addEventListener(e,n,!1)},Lt=function(t,e,n){t.removeEventListener(e,n,!1)};oe._data=function(t){return this.cache[t[this.expando]]||{}};var Ht=/([\:\-\_]+(.))/g,zt=/^moz([A-Z])/,Wt={mouseleave:"mouseout",mouseenter:"mouseover"},Xt=r("jqLite");function Jt(t){return t.replace(Ht,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(zt,"Moz$1")}var Yt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Gt=/<|&#?\w+;/,Kt=/<([\w:-]+)/,Zt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Qt={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,"",""]};function te(t){return!Gt.test(t)}function ee(t){var e=t.nodeType;return 1===e||!e||9===e}function ne(t,e){var n,r,i,o,s=e.createDocumentFragment(),a=[];if(te(t))a.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),r=(Kt.exec(t)||["",""])[1].toLowerCase(),i=Qt[r]||Qt._default,n.innerHTML=i[1]+t.replace(Zt,"<$1></$2>")+i[2],o=i[0];o--;)n=n.lastChild;a=ct(a,n.childNodes),(n=s.firstChild).textContent=""}return s.textContent="",s.innerHTML="",w(a,(function(t){s.appendChild(t)})),s}function re(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}Qt.optgroup=Qt.option,Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td;var ie=Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function oe(t){if(t instanceof oe)return t;var n,r,i,o;if(I(t)&&(t=Z(t),n=!0),!(this instanceof oe)){if(n&&"<"!=t.charAt(0))throw Xt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new oe(t)}ge(this,n?(r=t,i=i||e,(o=Yt.exec(r))?[i.createElement(o[1])]:(o=ne(r,i))?o.childNodes:[]):t)}function se(t){return t.cloneNode(!0)}function ae(t,e){if(e||ue(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)ue(n[r])}function ce(t,e,n,r){if(D(r))throw Xt("offargs","jqLite#off() does not support the `selector` argument");var i=le(t),o=i&&i.events,s=i&&i.handle;if(s)if(e){var a=function(e){var r=o[e];D(n)&&nt(r||[],n),D(n)&&r&&r.length>0||(Lt(t,e,s),delete o[e])};w(e.split(" "),(function(t){a(t),Wt[t]&&a(Wt[t])}))}else for(e in o)"$destroy"!==e&&Lt(t,e,s),delete o[e]}function ue(t,e){var r=t.ng339,i=r&&qt[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),ce(t)),delete qt[r],t.ng339=n}}function le(t,e){var r=t.ng339,i=r&&qt[r];return e&&!i&&(t.ng339=r=++Vt,i=qt[r]={events:{},data:{},handle:n}),i}function fe(t,e,n){if(ee(t)){var r=D(n),i=!r&&e&&!_(e),o=!e,s=le(t,!i),a=s&&s.data;if(r)a[e]=n;else{if(o)return a;if(i)return a&&a[e];A(a,e)}}}function he(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function pe(t,e){e&&t.setAttribute&&w(e.split(" "),(function(e){t.setAttribute("class",Z((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Z(e)+" "," ")))}))}function de(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");w(e.split(" "),(function(t){t=Z(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")})),t.setAttribute("class",Z(n))}}function ge(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 me(t,e){return ve(t,"$"+(e||"ngController")+"Controller")}function ve(t,e,n){9==t.nodeType&&(t=t.documentElement);for(var r=U(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(D(n=u.data(t,r[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function $e(t){for(ae(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function ye(t,e){e||ae(t);var n=t.parentNode;n&&n.removeChild(t)}var be=oe.prototype={ready:function(n){var r=!1;function i(){r||(r=!0,n())}"complete"===e.readyState?setTimeout(i):(this.on("DOMContentLoaded",i),oe(t).on("load",i))},toString:function(){var t=[];return w(this,(function(e){t.push(""+e)})),"["+t.join(", ")+"]"},eq:function(t){return u(t>=0?this[t]:this[this.length+t])},length:0,push:d,sort:[].sort,splice:[].splice},we={};w("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){we[o(t)]=t}));var xe={};w("input,select,option,textarea,button,form,details".split(","),(function(t){xe[t]=!0}));var Ce={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function ke(t,e){var n=we[e.toLowerCase()];return n&&xe[et(t)]&&n}function Se(t,e,n){n.call(t,e)}function Ee(t,e,n){var r=e.relatedTarget;r&&(r===t||ie.call(t,r))||n.call(t,e)}function Ae(){this.$get=function(){return A(oe,{hasClass:function(t,e){return t.attr&&(t=t[0]),he(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),de(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),pe(t,e)}})}}function Oe(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return"function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||k)():r+":"+t}function Te(t,e){if(e){var n=0;this.nextUid=function(){return++n}}w(t,this.put,this)}w({data:fe,removeData:ue,hasData:function(t){for(var e in qt[t.ng339])return!0;return!1}},(function(t,e){oe[e]=t})),w({data:fe,inheritedData:ve,scope:function(t){return u.data(t,"$scope")||ve(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return u.data(t,"$isolateScope")||u.data(t,"$isolateScopeNoTemplate")},controller:me,injector:function(t){return ve(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:he,css:function(t,e,n){if(e=Jt(e),!D(n))return t.style[e];t.style[e]=n},attr:function(t,e,r){var i=t.nodeType;if(i!==_t&&2!==i&&8!==i){var s=o(e);if(we[s]){if(!D(r))return t[e]||(t.attributes.getNamedItem(e)||M).specified?s:n;r?(t[e]=!0,t.setAttribute(e,s)):(t[e]=!1,t.removeAttribute(s))}else if(D(r))t.setAttribute(e,r);else if(t.getAttribute){var a=t.getAttribute(e,2);return null===a?n:a}}},prop:function(t,e,n){if(!D(n))return t[e];t[e]=n},text:function(){return t.$dv="",t;function t(t,e){if(R(e)){var n=t.nodeType;return 1===n||n===_t?t.textContent:""}t.textContent=e}}(),val:function(t,e){if(R(e)){if(t.multiple&&"select"===et(t)){var n=[];return w(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){if(R(e))return t.innerHTML;ae(t,!0),t.innerHTML=e},empty:$e},(function(t,e){oe.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==$e&&R(2==t.length&&t!==he&&t!==me?e:n)){if(_(e)){for(r=0;r<o;r++)if(t===fe)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var s=t.$dv,a=R(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}})),w({removeData:ue,on:function(t,e,r,i){if(D(i))throw Xt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ee(t)){var o=le(t,!0),s=o.events,a=o.handle;a||(a=o.handle=function(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(R(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var a=i.specialHandlerWrapper||Se;o>1&&(i=it(i));for(var c=0;c<o;c++)n.isImmediatePropagationStopped()||a(t,n,i[c])}};return n.elem=t,n}(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]=[]).specialHandlerWrapper=n,"$destroy"===e||i||Ut(t,e,a)),o.push(r)};u--;)e=c[u],Wt[e]?(l(Wt[e],Ee),l(e,n,!0)):l(e)}},off:ce,one:function(t,e,n){(t=u(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;ae(t),w(new oe(e),(function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:function(t){var e=[];return w(t.childNodes,(function(t){1===t.nodeType&&e.push(t)})),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n)for(var r=0,i=(e=new oe(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;w(new oe(e),(function(e){t.insertBefore(e,n)}))}},wrap:function(t,e){re(t,u(e).eq(0).clone()[0])},remove:ye,detach:function(t){ye(t,!0)},after:function(t,e){for(var n=t,r=t.parentNode,i=0,o=(e=new oe(e)).length;i<o;i++){var s=e[i];r.insertBefore(s,n.nextSibling),n=s}},addClass:de,removeClass:pe,toggleClass:function(t,e,n){e&&w(e.split(" "),(function(e){var r=n;R(r)&&(r=!he(t,e)),(r?de:pe)(t,e)}))},parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:se,triggerHandler:function(t,e,n){var r,i,o,s=e.type||e,a=le(t),c=a&&a.events,u=c&&c[s];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:M,type:s,target:t},e.type&&(r=A(r,e)),i=it(u),o=n?[r].concat(n):[r],w(i,(function(e){r.isImmediatePropagationStopped()||e.apply(t,o)})))}},(function(t,e){oe.prototype[e]=function(e,n,r){for(var i,o=0,s=this.length;o<s;o++)R(i)?D(i=t(this[o],e,n,r))&&(i=u(i)):ge(i,t(this[o],e,n,r));return D(i)?i:this},oe.prototype.bind=oe.prototype.on,oe.prototype.unbind=oe.prototype.off})),Te.prototype={put:function(t,e){this[Oe(t,this.nextUid)]=e},get:function(t){return this[Oe(t,this.nextUid)]},remove:function(t){var e=this[t=Oe(t,this.nextUid)];return delete this[t],e}};var Ne=[function(){this.$get=[function(){return Te}]}],Me=/^[^\(]*\(\s*([^\)]*)\)/m,je=/,/,Be=/^\s*(_?)(\S+?)\1\s*$/,Pe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Re=r("$injector");function De(t,e){e=!0===e;var r={},i="Provider",o=[],s=new Te([],!0),a={$provide:{provider:h(p),factory:h(g),service:h((function(t,e){return g(t,["$injector",function(t){return t.instantiate(e)}])})),value:h((function(t,e){return g(t,B(e),!1)})),constant:h((function(t,e){Bt(t,"constant"),a[t]=e,u[t]=e})),decorator:function(t,e){var n=c.get(t+i),r=n.$get;n.$get=function(){var t=l.invoke(r,n);return l.invoke(e,null,{$delegate:t})}}}},c=a.$injector=m(a,(function(t,e){throw $.isString(e)&&o.push(e),Re("unpr","Unknown provider: {0}",o.join(" <- "))})),u={},l=u.$injector=m(u,(function(t,e){var r=c.get(t+i,e);return l.invoke(r.$get,r,n,t)}));return w(function t(e){Mt(R(e)||U(e),"modulesToLoad","not an array");var n,r=[];return w(e,(function(e){if(!s.get(e)){s.put(e,!0);try{I(e)?(n=f(e),r=r.concat(t(n.requires)).concat(n._runBlocks),i(n._invokeQueue),i(n._configBlocks)):L(e)||U(e)?r.push(c.invoke(e)):jt(e,"module")}catch(t){throw U(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Re("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function i(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=c.get(r[0]);i[r[1]].apply(i,r[2])}}})),r}(t),(function(t){t&&l.invoke(t)})),l;function h(t){return function(e,n){if(!_(e))return t(e,n);w(e,C(t))}}function p(t,e){if(Bt(t,"service"),(L(e)||U(e))&&(e=c.instantiate(e)),!e.$get)throw Re("pget","Provider '{0}' must define $get factory method.",t);return a[t+i]=e}function d(t,e){return function(){var n=l.invoke(e,this);if(R(n))throw Re("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function g(t,e,n){return p(t,{$get:!1!==n?d(t,e):e})}function m(t,n){function s(e,i){if(t.hasOwnProperty(e)){if(t[e]===r)throw Re("cdep","Circular dependency found: {0}",e+" <- "+o.join(" <- "));return t[e]}try{return o.unshift(e),t[e]=r,t[e]=n(e,i)}catch(n){throw t[e]===r&&delete t[e],n}finally{o.shift()}}function c(t,n,r,i){"string"==typeof r&&(i=r,r=null);var o,a,c,u=[],l=De.$$annotate(t,e,i);for(a=0,o=l.length;a<o;a++){if("string"!=typeof(c=l[a]))throw Re("itkn","Incorrect injection token! Expected service name as string, got {0}",c);u.push(r&&r.hasOwnProperty(c)?r[c]:s(c,i))}return U(t)&&(t=t[o]),t.apply(n,u)}return{invoke:c,instantiate:function(t,e,n){var r=Object.create((U(t)?t[t.length-1]:t).prototype||null),i=c(t,r,e,n);return _(i)||L(i)?i:r},get:s,annotate:De.$$annotate,has:function(e){return a.hasOwnProperty(e+i)||t.hasOwnProperty(e)}}}}function _e(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function s(t){if(t){t.scrollIntoView();var e=function(){var t=a.yOffset;if(L(t))t=t();else if(tt(t)){var e=t[0];t="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else q(t)||(t=0);return t}();if(e){var r=t.getBoundingClientRect().top;n.scrollBy(0,r-e)}}else n.scrollTo(0,0)}function a(t){var e,n,i;(t=I(t)?t:r.hash())?(e=o.getElementById(t))?s(e):(n=o.getElementsByName(t),i=null,Array.prototype.some.call(n,(function(t){if("a"===et(t))return i=t,!0})),(e=i)?s(e):"top"===t&&s(null)):s(null)}return e&&i.$watch((function(){return r.hash()}),(function(e,n){var r,o;e===n&&""===e||(r=function(){i.$evalAsync(a)},"complete"===(o=o||t).document.readyState?o.setTimeout(r):u(o).on("load",r))})),a}]}De.$$annotate=function(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw I(n)&&n||(n=t.name||function(t){var e=t.toString().replace(Pe,"").match(Me);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),Re("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);w(t.toString().replace(Pe,"").match(Me)[1].split(je),(function(t){t.replace(Be,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else U(t)?(jt(t[i=t.length-1],"fn"),r=t.slice(0,i)):jt(t,"fn",!0);return r};var Fe=r("$animate"),Ie="ng-animate";function qe(t,e){return t||e?t?e?(U(t)&&(t=t.join(" ")),U(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function Ve(t){return _(t)?t:{}}var Ue=function(){this.$get=function(){}},Le=function(){var t=new Te,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:M,on:M,off:M,pin:M,push:function(s,a,c,u){u&&u(),(c=c||{}).from&&s.css(c.from),c.to&&s.css(c.to),(c.addClass||c.removeClass)&&function(n,s,a){var c=t.get(n)||{},u=i(c,s,!0),l=i(c,a,!1);(u||l)&&(t.put(n,c),e.push(n),1===e.length&&r.$$postDigest(o))}(s,c.addClass,c.removeClass);var l=new n;return l.complete(),l}};function i(t,e,n){var r=!1;return e&&w(e=I(e)?e.split(" "):U(e)?e:[],(function(e){e&&(r=!0,t[e]=n)})),r}function o(){w(e,(function(e){var n=t.get(e);if(n){var r=function(t){I(t)&&(t=t.split(" "));var e=Dt();return w(t,(function(t){t.length&&(e[t]=!0)})),e}(e.attr("class")),i="",o="";w(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:o+=(o.length?" ":"")+e)})),w(e,(function(t){i&&de(t,i),o&&pe(t,o)})),t.remove(e)}})),e.length=0}}]},He=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Fe("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+|\\/)ng-animate(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Fe("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Ie)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(1===n.nodeType)return n}}(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&&u(r),i=i&&u(i),e(n,r=r||i.parent(),i),t.push(n,"enter",Ve(o))},move:function(n,r,i,o){return r=r&&u(r),i=i&&u(i),e(n,r=r||i.parent(),i),t.push(n,"move",Ve(o))},leave:function(e,n){return t.push(e,"leave",Ve(n),(function(){e.remove()}))},addClass:function(e,n,r){return(r=Ve(r)).addClass=qe(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return(r=Ve(r)).removeClass=qe(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return(i=Ve(i)).addClass=qe(i.addClass,n),i.removeClass=qe(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return(o=Ve(o)).from=o.from?A(o.from,n):n,o.to=o.to?A(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=qe(o.tempClasses,i),t.push(e,"animate",o)}}}]}],ze=function(){this.$get=["$$rAF",function(t){var e=[];function n(n){e.push(n),e.length>1||t((function(){for(var t=0;t<e.length;t++)e[t]();e=[]}))}return function(){var t=!1;return n((function(){t=!0})),function(e){t?e():n(e)}}}]},We=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,r,i){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){var n=r[0];n&&n.hidden?function(t){i(t,0,!1)}(t):e(t)},this._state=0}return o.chain=function(t,e){var n=0;!function r(){n!==t.length?t[n]((function(t){!1!==t?(n++,r()):e(!1)})):e(!0)}()},o.all=function(t,e){var n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}w(t,(function(t){t.done(i)}))},o.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?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){!1===e?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;0===e._state&&(e._state=1,e._tick((function(){e._resolve(t)})))},_resolve:function(t){2!==this._state&&(w(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},o}]},Xe=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){var i=r||{};i.$$prepared||(i=rt(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(e.css(i.from),i.from=null);var o,s=new n;return{start:a,end:a};function a(){return t((function(){i.addClass&&(e.addClass(i.addClass),i.addClass=null),i.removeClass&&(e.removeClass(i.removeClass),i.removeClass=null),i.to&&(e.css(i.to),i.to=null),o||s.complete(),o=!0})),s}}}]};function Je(t,e,n,r){var i=this,o=(e[0],t.location),s=t.history,a=t.setTimeout,c=t.clearTimeout,l={};i.isMock=!1;var f=0,h=[];function p(t){try{t.apply(null,ut(arguments,1))}finally{if(0==--f)for(;h.length;)try{h.pop()()}catch(t){n.error(t)}}}i.$$completeOutstandingRequest=p,i.$$incOutstandingRequestCount=function(){f++},i.notifyWhenNoOutstandingRequests=function(t){0===f?t():h.push(t)};var d,g,m=o.href,v=e.find("base"),$=null;k(),g=d,i.url=function(e,n,a){if(R(a)&&(a=null),o!==t.location&&(o=t.location),s!==t.history&&(s=t.history),e){var c=g===a;if(m===e&&(!r.history||c))return i;var u=m&&Fn(m)===Fn(e);return m=e,g=a,!r.history||u&&c?(u&&!$||($=e),n?o.replace(e):u?o.hash=function(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}(e):o.href=e,o.href!==e&&($=e)):(s[n?"replaceState":"pushState"](a,"",e),k(),g=d),i}return $||o.href.replace(/%27/g,"'")},i.state=function(){return d};var y=[],b=!1;function x(){$=null,k(),S()}var C=null;function k(){ot(d=R(d=function(){try{return s.state}catch(t){}}())?null:d,C)&&(d=C),C=d}function S(){m===i.url()&&g===d||(m=i.url(),g=d,w(y,(function(t){t(i.url(),d)})))}i.onUrlChange=function(e){return b||(r.history&&u(t).on("popstate",x),u(t).on("hashchange",x),b=!0),y.push(e),e},i.$$applicationDestroyed=function(){u(t).off("hashchange popstate",x)},i.$$checkUrlChange=S,i.baseHref=function(){var t=v.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},i.defer=function(t,e){var n;return f++,n=a((function(){delete l[n],p(t)}),e||0),l[n]=!0,n},i.defer.cancel=function(t){return!!l[t]&&(delete l[t],c(t),p(M),!0)}}function Ye(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new Je(t,r,e,n)}]}function Ge(){this.$get=function(){var t={};function e(e,n){if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var i=0,o=A({},n,{id:e}),s=Dt(),a=n&&n.capacity||Number.MAX_VALUE,c=Dt(),u=null,l=null;return t[e]={put:function(t,e){if(!R(e))return a<Number.MAX_VALUE&&f(c[t]||(c[t]={key:t})),t in s||i++,s[t]=e,i>a&&this.remove(l.key),e},get:function(t){if(a<Number.MAX_VALUE){var e=c[t];if(!e)return;f(e)}return s[t]},remove:function(t){if(a<Number.MAX_VALUE){var e=c[t];if(!e)return;e==u&&(u=e.p),e==l&&(l=e.n),h(e.n,e.p),delete c[t]}t in s&&(delete s[t],i--)},removeAll:function(){s=Dt(),i=0,c=Dt(),u=l=null},destroy:function(){s=null,o=null,c=null,delete t[e]},info:function(){return A({},o,{size:i})}};function f(t){t!=u&&(l?l==t&&(l=t.n):l=t,h(t.n,t.p),h(t,u),(u=t).n=null)}function h(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){var e={};return w(t,(function(t,n){e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function Ke(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var Ze=r("$compile");function Qe(t,r){var i={},a="Directive",f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,h=/(([\w\-]+)(?:\:([^;]+))?;?)/,p=function(t){var e,n={},r="ngSrc,ngSrcset,src,srcset".split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}(),d=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,g=/^(on[a-z]+|formaction)$/,m=Dt();function v(t,e,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i=Dt();return w(t,(function(t,o){if(t in m)i[o]=m[t];else{var s=t.match(r);if(!s)throw Ze("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]&&(m[t]=i[o])}})),i}function $(t,e){var n={isolateScope:null,bindToController:null};if(_(t.scope)&&(!0===t.bindToController?(n.bindToController=v(t.scope,e,!0),n.isolateScope={}):n.isolateScope=v(t.scope,e,!1)),_(t.bindToController)&&(n.bindToController=v(t.bindToController,e,!0)),_(n.bindToController)){var r=t.controller,i=t.controllerAs;if(!r)throw Ze("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!function(t,e){if(e&&I(e))return e;if(I(t)){var n=sn.exec(t);if(n)return n[3]}}(r,i))throw Ze("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}this.directive=function e(n,r){return Bt(n,"directive"),I(n)?(function(t){var e=t.charAt(0);if(!e||e!==o(e))throw Ze("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Ze("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(n),Mt(r,"directiveFactory"),i.hasOwnProperty(n)||(i[n]=[],t.factory(n+a,["$injector","$exceptionHandler",function(t,e){var r=[];return w(i[n],(function(i,o){try{var s=t.invoke(i);L(s)?s={compile:B(s)}:!s.compile&&s.link&&(s.compile=B(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}])),i[n].push(r)):w(n,C(e)),this},this.aHrefSanitizationWhitelist=function(t){return D(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return D(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()};var y=!0;this.debugInfoEnabled=function(t){return D(t)?(y=t,this):y},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,r,m,v,b,x,C,k,S,E){var O=function(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=e[i]}else this.$attr={};this.$$element=t};function T(t,e){try{t.addClass(e)}catch(t){}}O.prototype={$normalize:en,$addClass:function(t){t&&t.length>0&&S.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&S.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=nn(t,e);n&&n.length&&S.addClass(this.$$element,n);var r=nn(e,t);r&&r.length&&S.removeClass(this.$$element,r)},$set:function(t,e,n,r){var i,o=ke(this.$$element[0],t),s=Ce[t],a=t;if(o?(this.$$element.prop(t,e),r=o):s&&(this[s]=e,a=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=Ot(t,"-")),"a"===(i=et(this.$$element))&&"href"===t||"img"===i&&"src"===t)this[t]=e=E(e,"src"===t);else if("img"===i&&"srcset"===t&&D(e)){for(var c="",u=Z(e),l=/\s/.test(u)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,f=u.split(l),h=Math.floor(f.length/2),p=0;p<h;p++){var d=2*p;c+=E(Z(f[d]),!0),c+=" "+Z(f[d+1])}var g=Z(f[2*p]).split(/\s/);c+=E(Z(g[0]),!0),2===g.length&&(c+=" "+Z(g[1])),this[t]=e=c}!1!==n&&(null===e||R(e)?this.$$element.removeAttr(r):this.$$element.attr(r,e));var v=this.$$observers;v&&w(v[a],(function(t){try{t(e)}catch(t){m(t)}}))},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=Dt()),i=r[t]||(r[t]=[]);return i.push(e),C.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(t)||R(n[t])||e(n[t])})),function(){nt(i,e)}}};var B=r.startSymbol(),P=r.endSymbol(),F="{{"==B&&"}}"==P?j:function(t){return t.replace(/\{\{/g,B).replace(/}}/g,P)},q=/^ngAttr[A-Z]/,V=/^(.+)Start$/;return H.$$addBindingInfo=y?function(t,e){var n=t.data("$binding")||[];U(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:M,H.$$addBindingClass=y?function(t){T(t,"ng-binding")}:M,H.$$addScopeInfo=y?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:M,H.$$addScopeClass=y?function(t,e){T(t,e?"ng-isolate-scope":"ng-scope")}:M,H;function H(t,n,r,i,o){t instanceof u||(t=u(t));for(var s=/\S+/,a=0,c=t.length;a<c;a++){var l=t[a];l.nodeType===_t&&l.nodeValue.match(s)&&re(l,t[a]=e.createElement("span"))}var f=z(t,n,t,r,i,o);H.$$addScopeClass(t);var h=null;return function(e,n,r){Mt(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new());var i,s,a,c=(r=r||{}).parentBoundTranscludeFn,l=r.transcludeControllers,p=r.futureParentElement;if(c&&c.$$boundTransclude&&(c=c.$$boundTransclude),h||(s=(i=p)&&i[0],h=s&&"foreignobject"!==et(s)&&s.toString().match(/SVG/)?"svg":"html"),a="html"!==h?u(ft(h,u("<div>").append(t).html())):n?be.clone.call(t):t,l)for(var d in l)a.data("$"+d+"Controller",l[d].instance);return H.$$addScopeInfo(a,e),n&&n(a,e),f&&f(e,a,a,c),a}}function z(t,e,r,i,o,s){for(var a,c,l,f,h,p,d,g=[],m=0;m<t.length;m++)a=new O,(l=(c=Y(t[m],[],a,0===m?i:n,o)).length?Q(c,t[m],a,e,r,null,[],[],s):null)&&l.scope&&H.$$addScopeClass(a.$$element),h=l&&l.terminal||!(f=t[m].childNodes)||!f.length?null:z(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(g.push(m,l,h),p=!0,d=d||l),s=null;return p?function(t,r,i,o){var s,a,c,l,f,h,p,m;if(d){var v=r.length;for(m=new Array(v),f=0;f<g.length;f+=3)m[p=g[f]]=r[p]}else m=r;for(f=0,h=g.length;f<h;)c=m[g[f++]],s=g[f++],a=g[f++],s?(s.scope?(l=t.$new(),H.$$addScopeInfo(u(c),l)):l=t,s(a,l,c,i,s.transcludeOnThisElement?X(t,s.transclude,o):!s.templateOnThisElement&&o?o:!o&&e?X(t,e):null)):a&&a(t,c.childNodes,n,o)}:null}function X(t,e,n){return function(r,i,o,s,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}}function Y(t,e,n,i,o){var s,a,u,l=t.nodeType,p=n.$attr;switch(l){case 1:rt(e,en(a=et(t)),"E",i,o);for(var d,g,m,v,$,y,b=t.attributes,w=0,x=b&&b.length;w<x;w++){var C=!1,k=!1;g=(d=b[w]).name,$=Z(d.value),v=en(g),(y=q.test(v))&&(g=g.replace(tn,"").substr(8).replace(/_(.)/g,(function(t,e){return e.toUpperCase()})));var S=v.match(V);S&&it(S[1])&&(C=g,k=g.substr(0,g.length-5)+"end",g=g.substr(0,g.length-6)),p[m=en(g.toLowerCase())]=g,!y&&n.hasOwnProperty(m)||(n[m]=$,ke(t,m)&&(n[m]=!0)),ht(t,e,$,m,y),rt(e,m,"A",i,o,C,k)}if("input"===a&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),_(u=t.className)&&(u=u.animVal),I(u)&&""!==u)for(;s=h.exec(u);)rt(e,m=en(s[2]),"C",i,o)&&(n[m]=Z(s[3])),u=u.substr(s.index+s[0].length);break;case _t:if(11===c)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===_t;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);!function(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),r=!!e.length;return r&&H.$$addBindingClass(e),function(t,e){var i=e.parent();r||H.$$addBindingClass(i),H.$$addBindingInfo(i,n.expressions),t.$watch(n,(function(t){e[0].nodeValue=t}))}}})}(e,t.nodeValue);break;case 8:try{(s=f.exec(t.nodeValue))&&rt(e,m=en(s[1]),"M",i,o)&&(n[m]=Z(s[2]))}catch(t){}}return e.sort(ct),e}function G(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw Ze("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);1==t.nodeType&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return u(r)}function K(t,e,n){return function(r,i,o,s,a){return i=G(i[0],e,n),t(r,i,o,s,a)}}function Q(t,r,i,o,s,a,c,l,f){f=f||{};for(var h,p,g,v,$,y=-Number.MAX_VALUE,b=f.newScopeDirective,w=f.controllerDirectives,C=f.newIsolateScopeDirective,k=f.templateDirective,S=f.nonTlbTranscludeDirective,E=!1,A=!1,T=f.hasElementTranscludeDirective,N=i.$$element=u(r),M=a,j=o,B=0,P=t.length;B<P;B++){var R=(h=t[B]).$$start,D=h.$$end;if(R&&(N=G(r,R,D)),g=n,y>h.priority)break;if(($=h.scope)&&(h.templateUrl||(_($)?(lt("new/isolated scope",C||b,h,N),C=h):lt("new/isolated scope",C,h,N)),b=b||h),p=h.name,!h.templateUrl&&h.controller&&($=h.controller,w=w||Dt(),lt("'"+p+"' controller",w[p],h,N),w[p]=h),($=h.transclude)&&(E=!0,h.$$tlb||(lt("transclusion",S,h,N),S=h),"element"==$?(T=!0,y=h.priority,g=N,N=i.$$element=u(e.createComment(" "+p+": "+i[p]+" ")),r=N[0],pt(s,ut(g),r),j=H(g,o,y,M&&M.name,{nonTlbTranscludeDirective:S})):(g=u(se(r)).contents(),N.empty(),j=H(g,o,n,n,{needsNewScope:h.$$isolateScope||h.$$newScope}))),h.template)if(A=!0,lt("template",k,h,N),k=h,$=L(h.template)?h.template(N,i):h.template,$=F($),h.replace){if(M=h,g=te($)?[]:rn(ft(h.templateNamespace,Z($))),r=g[0],1!=g.length||1!==r.nodeType)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p,"");pt(s,N,r);var q={$attr:{}},V=Y(r,[],q),z=t.splice(B+1,t.length-(B+1));(C||b)&&tt(V,C,b),t=t.concat(V).concat(z),st(i,q),P=t.length}else N.html($);if(h.templateUrl)A=!0,lt("template",k,h,N),k=h,h.replace&&(M=h),Q=at(t.splice(B,t.length-B),N,i,s,E&&j,c,l,{controllerDirectives:w,newScopeDirective:b!==h&&b,newIsolateScopeDirective:C,templateDirective:k,nonTlbTranscludeDirective:S}),P=t.length;else if(h.compile)try{L(v=h.compile(N,i,j))?X(null,v,R,D):v&&X(v.pre,v.post,R,D)}catch(t){m(t,vt(N))}h.terminal&&(Q.terminal=!0,y=Math.max(y,h.priority))}return Q.scope=b&&!0===b.scope,Q.transcludeOnThisElement=E,Q.templateOnThisElement=A,Q.transclude=j,f.hasElementTranscludeDirective=T,Q;function X(t,e,n,r){t&&(n&&(t=K(t,n,r)),t.require=h.require,t.directiveName=p,(C===h||h.$$isolateScope)&&(t=dt(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=K(e,n,r)),e.require=h.require,e.directiveName=p,(C===h||h.$$isolateScope)&&(e=dt(e,{isolateScope:!0})),l.push(e))}function J(t,e,n,r){var i;if(I(e)){var o=e.match(d),s=e.substring(o[0].length),a=o[1]||o[3],c="?"===o[2];if("^^"===a?n=n.parent():i=(i=r&&r[s])&&i.instance,!i){var u="$"+s+"Controller";i=a?n.inheritedData(u):n.data(u)}if(!i&&!c)throw Ze("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(U(e)){i=[];for(var l=0,f=e.length;l<f;l++)i[l]=J(t,e[l],n,r)}return i||null}function Q(t,e,o,s,a){var f,h,p,d,g,m,v,$,y;for(var S in r===o?(v=i,m=i.$$element):(m=u(o),v=new O(m,i)),p=e,C?h=e.$new(!0):b&&(p=e.$parent),a&&((g=function(t,e,r){var i;return W(t)||(r=e,e=t,t=n),T&&(i=d),r||(r=T?m.parent():m),a(t,e,i,r,j)}).$$boundTransclude=a),w&&(d=function(t,e,n,r,i,o){var s=Dt();for(var a in r){var c=r[a],u={$scope:c===C||c.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},l=c.controller;"@"==l&&(l=e[c.name]);var f=x(l,u,!0,c.controllerAs);s[c.name]=f,t.data("$"+c.name+"Controller",f.instance)}return s}(m,v,g,w,h,e)),C&&(H.$$addScopeInfo(m,h,!0,!(k&&(k===C||k===C.$$originalDirective))),H.$$addScopeClass(m,!0),h.$$isolateBindings=C.$$isolateBindings,($=mt(e,v,h,h.$$isolateBindings,C))&&h.$on("$destroy",$)),d){var E=w[S],A=d[S],N=E.$$bindings.bindToController;A.identifier&&N&&(y=mt(p,v,A.instance,N,E));var M=A();M!==A.instance&&(A.instance=M,m.data("$"+E.name+"Controller",M),y&&y(),y=mt(p,v,A.instance,N,E))}for(B=0,P=c.length;B<P;B++)gt(f=c[B],f.isolateScope?h:e,m,v,f.require&&J(f.directiveName,f.require,m,d),g);var j=e;for(C&&(C.template||null===C.templateUrl)&&(j=h),t&&t(j,o.childNodes,n,a),B=l.length-1;B>=0;B--)gt(f=l[B],f.isolateScope?h:e,m,v,f.require&&J(f.directiveName,f.require,m,d),g)}}function tt(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=N(t[r],{$$isolateScope:e,$$newScope:n})}function rt(e,n,r,o,s,c,u){if(n===s)return null;var l=null;if(i.hasOwnProperty(n))for(var f,h=t.get(n+a),p=0,d=h.length;p<d;p++)try{if(f=h[p],(R(o)||o>f.priority)&&-1!=f.restrict.indexOf(r)){if(c&&(f=N(f,{$$start:c,$$end:u})),!f.$$bindings){var g=f.$$bindings=$(f,f.name);_(g.isolateScope)&&(f.$$isolateBindings=g.isolateScope)}e.push(f),l=f}}catch(t){m(t)}return l}function it(e){if(i.hasOwnProperty(e))for(var n=t.get(e+a),r=0,o=n.length;r<o;r++)if(n[r].multiElement)return!0;return!1}function st(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;w(t,(function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))})),w(e,(function(e,o){"class"==o?(T(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 at(t,e,n,r,i,o,s,a){var c,l,f=[],h=e[0],p=t.shift(),d=N(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),g=L(p.templateUrl)?p.templateUrl(e,n):p.templateUrl,m=p.templateNamespace;return e.empty(),v(g).then((function(v){var $,y,b,x;if(v=F(v),p.replace){if(b=te(v)?[]:rn(ft(m,Z(v))),$=b[0],1!=b.length||1!==$.nodeType)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,g);y={$attr:{}},pt(r,e,$);var C=Y($,[],y);_(p.scope)&&tt(C,!0),t=C.concat(t),st(n,y)}else $=h,e.html(v);for(t.unshift(d),c=Q(t,$,n,i,e,p,o,s,a),w(r,(function(t,n){t==$&&(r[n]=e[0])})),l=z(e[0].childNodes,i);f.length;){var k=f.shift(),S=f.shift(),E=f.shift(),A=f.shift(),O=e[0];if(!k.$$destroyed){if(S!==h){var N=S.className;a.hasElementTranscludeDirective&&p.replace||(O=se($)),pt(E,u(S),O),T(u(O),N)}x=c.transcludeOnThisElement?X(k,c.transclude,A):A,c(l,k,O,r,x)}}f=null})),function(t,e,n,r,i){var o=i;e.$$destroyed||(f?f.push(e,n,r,o):(c.transcludeOnThisElement&&(o=X(e,c.transclude,i)),c(l,e,n,r,o)))}}function ct(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 lt(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Ze("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,vt(r))}function ft(t,n){switch(t=o(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 ht(t,e,n,i,o){var s=function(t,e){if("srcdoc"==e)return k.HTML;var n=et(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?k.RESOURCE_URL:void 0}(t,i);o=p[i]||o;var a=r(n,!0,s,o);if(a){if("multiple"===i&&"select"===et(t))throw Ze("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",vt(t));e.push({priority:100,compile:function(){return{pre:function(t,e,c){var u=c.$$observers||(c.$$observers=Dt());if(g.test(i))throw Ze("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 pt(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 f=i,h=f+a-1,p=t.length;f<p;f++,h++)h<p?t[f]=t[h]:delete t[f];t.length-=a-1,t.context===s&&(t.context=r);break}c&&c.replaceChild(r,s);var d=e.createDocumentFragment();d.appendChild(s),u.hasData(s)&&(u.data(r,u.data(s)),l?(Tt=!0,l.cleanData([s])):delete u.cache[s[u.expando]]);for(var g=1,m=n.length;g<m;g++){var v=n[g];u(v).remove(),d.appendChild(v),delete n[g]}n[0]=r,n.length=1}function dt(t,e){return A((function(){return t.apply(null,arguments)}),t,e)}function gt(t,e,n,r,i,o){try{t(e,n,r,i,o)}catch(t){m(t,vt(n))}}function mt(t,e,n,i,o){var a=[];return w(i,(function(i,c){var u,l,f,h,p=i.attrName,d=i.optional;switch(i.mode){case"@":d||s.call(e,p)||(n[c]=e[p]=void 0),e.$observe(p,(function(t){I(t)&&(n[c]=t)})),e.$$observers[p].$$scope=t,I(u=e[p])?n[c]=r(u)(t):J(u)&&(n[c]=u);break;case"=":if(!s.call(e,p)){if(d)break;e[p]=void 0}if(d&&!e[p])break;l=b(e[p]),h=l.literal?ot:function(t,e){return t===e||t!=t&&e!=e},f=l.assign||function(){throw u=n[c]=l(t),Ze("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[p],p,o.name)},u=n[c]=l(t);var g,m=function(e){return h(e,n[c])||(h(e,u)?f(t,e=n[c]):n[c]=e),u=e};m.$stateful=!0,g=i.collection?t.$watchCollection(e[p],m):t.$watch(b(e[p],m),null,l.literal),a.push(g);break;case"&":if((l=e.hasOwnProperty(p)?b(e[p]):M)===M&&d)break;n[c]=function(e){return l(t,e)}}})),a.length&&function(){for(var t=0,e=a.length;t<e;++t)a[t]()}}}]}Qe.$inject=["$provide","$$sanitizeUriProvider"];var tn=/^((?:x|data)[\:\-_])/i;function en(t){return Jt(t.replace(tn,""))}function nn(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 rn(t){var e=(t=u(t)).length;if(e<=1)return t;for(;e--;)8===t[e].nodeType&&p.call(t,e,1);return t}var on=r("$controller"),sn=/^(\S+)(\s+as\s+([\w$]+))?$/;function an(){var t={},e=!1;this.register=function(e,n){Bt(e,"controller"),_(e)?A(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){return function(r,a,c,u){var l,f,h,p;if(c=!0===c,u&&I(u)&&(p=u),I(r)){if(!(f=r.match(sn)))throw on("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);h=f[1],p=p||f[3],jt(r=t.hasOwnProperty(h)?t[h]:Pt(a.$scope,h,!0)||(e?Pt(o,h,!0):n),h,!0)}if(c){var d=(U(r)?r[r.length-1]:r).prototype;return l=Object.create(d||null),p&&s(a,p,l,h||r.name),A((function(){var t=i.invoke(r,l,a,h);return t!==l&&(_(t)||L(t))&&(l=t,p&&s(a,p,l,h||r.name)),l}),{instance:l,identifier:p})}return l=i.instantiate(r,a,h),p&&s(a,p,l,h||r.name),l};function s(t,e,n,i){if(!t||!_(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}}]}function cn(){this.$get=["$window",function(t){return u(t.document)}]}function un(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}var ln=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof u&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},fn={"Content-Type":"application/json;charset=utf-8"},hn=/^\[|^\{(?!\{)/,pn={"[":/]$/,"{":/}$/},dn=/^\)\]\}',?\n/,gn=r("$http"),mn=function(t){return function(){throw gn("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}};function vn(t){return _(t)?V(t)?t.toISOString():ht(t):t}function $n(){this.$get=function(){return function(t){if(!t)return"";var e=[];return x(t,(function(t,n){null===t||R(t)||(U(t)?w(t,(function(t,r){e.push(xt(n)+"="+xt(vn(t)))})):e.push(xt(n)+"="+xt(vn(t))))})),e.join("&")}}}function yn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,r,i){null===n||R(n)||(U(n)?w(n,(function(e,n){t(e,r+"["+(_(e)?n:"")+"]")})):_(n)&&!V(n)?x(n,(function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))})):e.push(xt(r)+"="+xt(vn(n))))}(t,"",!0),e.join("&")}}}function bn(t,e){if(I(t)){var n=t.replace(dn,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf("application/json")||(o=(i=n).match(hn))&&pn[o[0]].test(i))&&(t=pt(n))}}var i,o;return t}function wn(t){var e,n=Dt();function r(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return I(t)?w(t.split("\n"),(function(t){e=t.indexOf(":"),r(o(Z(t.substr(0,e))),Z(t.substr(e+1)))})):_(t)&&w(t,(function(t,e){r(o(e),Z(t))})),n}function xn(t){var e;return function(n){if(e||(e=wn(t)),n){var r=e[o(n)];return void 0===r&&(r=null),r}return e}}function Cn(t,e,n,r){return L(r)?r(t,e,n):(w(r,(function(r){t=r(t,e,n)})),t)}function kn(t){return 200<=t&&t<300}function Sn(){var t=this.defaults={transformResponse:[bn],transformRequest:[function(t){return!_(t)||(e=t,"[object File]"===g.call(e))||X(t)||function(t){return"[object FormData]"===g.call(t)}(t)?t:ht(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:it(fn),put:it(fn),patch:it(fn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return D(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return D(t)?(i=!!t,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(c,u,l,f,h,p){var d=l("$http");t.paramSerializer=I(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var g=[];function m(s){if(!$.isObject(s))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",s);if(!I(s.url))throw r("$http")("badreq","Http request configuration url must be a string. Received: {0}",s.url);var l=A({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},s);l.headers=function(e){var n,r,i,s=t.headers,a=A({},e.headers);s=A({},s.common,s[o(e.method)]);t:for(n in s){for(i in r=o(n),a)if(o(i)===r)continue t;a[n]=s[n]}return function(t,e){var n,r={};return w(t,(function(t,i){L(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t})),r}(a,it(e))}(s),l.method=a(l.method),l.paramSerializer=I(l.paramSerializer)?p.get(l.paramSerializer):l.paramSerializer;var v=[function(r){var i=r.headers,s=Cn(r.data,xn(i),n,r.transformRequest);return R(s)&&w(i,(function(t,e){"content-type"===o(e)&&delete i[e]})),R(r.withCredentials)&&!R(t.withCredentials)&&(r.withCredentials=t.withCredentials),function(r,i){var o,s,a=h.defer(),l=a.promise,p=r.headers,g=function(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}(r.url,r.paramSerializer(r.params));if(m.pendingRequests.push(r),l.then(b,b),!r.cache&&!t.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(o=_(r.cache)?r.cache:_(t.cache)?t.cache:d),o&&(D(s=o.get(g))?Y(s)?s.then(y,y):U(s)?$(s[1],s[0],it(s[2]),s[3]):$(s,200,{},"OK"):o.put(g,l)),R(s)){var v=Vr(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n;v&&(p[r.xsrfHeaderName||t.xsrfHeaderName]=v),c(r.method,g,i,(function(t,n,r,i){function s(){$(n,t,r,i)}o&&(kn(t)?o.put(g,[t,n,wn(r),i]):o.remove(g)),e?f.$applyAsync(s):(s(),f.$$phase||f.$apply())}),p,r.timeout,r.withCredentials,r.responseType)}return l;function $(t,e,n,i){(kn(e=e>=-1?e:0)?a.resolve:a.reject)({data:t,status:e,headers:xn(n),config:r,statusText:i})}function y(t){$(t.data,t.status,it(t.headers()),t.statusText)}function b(){var t=m.pendingRequests.indexOf(r);-1!==t&&m.pendingRequests.splice(t,1)}}(r,s).then(C,C)},n],y=h.when(l);for(w(g,(function(t){(t.request||t.requestError)&&v.unshift(t.request,t.requestError),(t.response||t.responseError)&&v.push(t.response,t.responseError)}));v.length;){var b=v.shift(),x=v.shift();y=y.then(b,x)}return i?(y.success=function(t){return jt(t,"fn"),y.then((function(e){t(e.data,e.status,e.headers,l)})),y},y.error=function(t){return jt(t,"fn"),y.then(null,(function(e){t(e.data,e.status,e.headers,l)})),y}):(y.success=mn("success"),y.error=mn("error")),y;function C(t){var e=A({},t);return e.data=Cn(t.data,t.headers,t.status,l.transformResponse),kn(t.status)?e:h.reject(e)}}return w(s,(function(t){g.unshift(I(t)?p.get(t):p.invoke(t))})),m.pendingRequests=[],function(t){w(arguments,(function(t){m[t]=function(e,n){return m(A({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){w(arguments,(function(t){m[t]=function(e,n,r){return m(A({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),m.defaults=t,m}]}function En(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function An(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return function(t,e,n,r,i){return function(s,a,c,u,l,f,h,p){if(t.$$incOutstandingRequestCount(),a=a||t.url(),"jsonp"==o(s)){var d="_"+(r.counter++).toString(36);r[d]=function(t){r[d].data=t,r[d].called=!0};var g=function(t,e,n){var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){Lt(o,"load",s),Lt(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)},Ut(o,"load",s),Ut(o,"error",s),i.body.appendChild(o),s}(a.replace("JSON_CALLBACK","angular.callbacks."+d),d,(function(t,e){b(u,t,r[d].data,"",e),r[d]=M}))}else{var m=e(s,a);m.open(s,a,!0),w(l,(function(t,e){D(t)&&m.setRequestHeader(e,t)})),m.onload=function(){var t=m.statusText||"",e="response"in m?m.response:m.responseText,n=1223===m.status?204:m.status;0===n&&(n=e?200:"file"==qr(a).protocol?404:0),b(u,n,e,m.getAllResponseHeaders(),t)};var v=function(){b(u,-1,null,null,"")};if(m.onerror=v,m.onabort=v,h&&(m.withCredentials=!0),p)try{m.responseType=p}catch(t){if("json"!==p)throw t}m.send(R(c)?null:c)}if(f>0)var $=n(y,f);else Y(f)&&f.then(y);function y(){g&&g(),m&&m.abort()}function b(e,r,i,o,s){D($)&&n.cancel($),g=m=null,e(r,i,o,s),t.$$completeOutstandingRequest(M)}}}(t,r,t.defer,e.angular.callbacks,n[0])}]}var On=$.$interpolateMinErr=r("$interpolate");function Tn(){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){var o=t.length,s=e.length,a=new RegExp(t.replace(/./g,u),"g"),c=new RegExp(e.replace(/./g,u),"g");function u(t){return"\\\\\\"+t}function l(n){return n.replace(a,t).replace(c,e)}function f(a,c,u,f){f=!!f;for(var h,p,d,g=0,m=[],v=[],$=a.length,y=[],b=[];g<$;){if(-1==(h=a.indexOf(t,g))||-1==(p=a.indexOf(e,h+o))){g!==$&&y.push(l(a.substring(g)));break}g!==h&&y.push(l(a.substring(g,h))),d=a.substring(h+o,p),m.push(d),v.push(n(d,C)),g=p+s,b.push(y.length),y.push("")}if(u&&y.length>1&&On.throwNoconcat(a),!c||m.length){var w=function(t){for(var e=0,n=m.length;e<n;e++){if(f&&R(t[e]))return;y[b[e]]=t[e]}return y.join("")},x=function(t){return u?i.getTrusted(u,t):i.valueOf(t)};return A((function(t){var e=0,n=m.length,i=new Array(n);try{for(;e<n;e++)i[e]=v[e](t);return w(i)}catch(t){r(On.interr(a,t))}}),{exp:a,expressions:m,$$watchDelegate:function(t,e){var n;return t.$watchGroup(v,(function(r,i){var o=w(r);L(e)&&e.call(this,o,r!==i?n:o,t),n=o}))}})}function C(t){try{return t=x(t),f&&!D(t)?t:function(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=ht(t)}return t}(t)}catch(t){r(On.interr(a,t))}}}return f.startSymbol=function(){return t},f.endSymbol=function(){return e},f}]}function Nn(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){var i={};function o(o,s,a,c){var u=arguments.length>4,l=u?ut(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,d=D(c)&&!c,g=(d?r:n).defer(),m=g.promise;return a=D(a)?a:0,m.then(null,null,u?function(){o.apply(null,l)}:o),m.$$intervalId=f((function(){g.notify(p++),a>0&&p>=a&&(g.resolve(p),h(m.$$intervalId),delete i[m.$$intervalId]),d||t.$apply()}),s),i[m.$$intervalId]=g,m}return o.cancel=function(t){return!(!t||!(t.$$intervalId in i)||(i[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete i[t.$$intervalId],0))},o}]}On.throwNoconcat=function(t){throw On("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)},On.interr=function(t,e){return On("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Mn=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,jn={http:80,https:443,ftp:21},Bn=r("$location");function Pn(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=wt(e[n]);return e.join("/")}function Rn(t,e){var n=qr(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=T(n.port)||jn[n.protocol]||null}function Dn(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=qr(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=yt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function _n(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function Fn(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function In(t){return t.replace(/(#.+)|#$/,"$1")}function qn(t,e,n){this.$$html5=!0,n=n||"",Rn(t,this),this.$$parse=function(t){var n=_n(e,t);if(!I(n))throw Bn("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Dn(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=bt(this.$$search),n=this.$$hash?"#"+wt(this.$$hash):"";this.$$url=Pn(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(D(o=_n(t,r))?(s=o,a=D(o=_n(n,o))?e+(_n("/",o)||o):t+s):D(o=_n(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a);var o,s,a}}function Vn(t,e,n){Rn(t,this),this.$$parse=function(r){var i,o=_n(t,r)||_n(e,r);R(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",R(o)&&(t=r,this.replace())):R(i=_n(n,o))&&(i=o),Dn(i,this),this.$$path=function(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[1]:t}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=bt(this.$$search),r=this.$$hash?"#"+wt(this.$$hash):"";this.$$url=Pn(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Fn(t)==Fn(e)&&(this.$$parse(e),!0)}}function Un(t,e,n){this.$$html5=!0,Vn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(t==Fn(r)?o=r:(s=_n(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,s},this.$$compose=function(){var e=bt(this.$$search),r=this.$$hash?"#"+wt(this.$$hash):"";this.$$url=Pn(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}var Ln={$$html5:!1,$$replace:!1,absUrl:Hn("$$absUrl"),url:function(t){if(R(t))return this.$$url;var e=Mn.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:Hn("$$protocol"),host:Hn("$$host"),port:Hn("$$port"),path:zn("$$path",(function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t})),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(I(t)||q(t))t=t.toString(),this.$$search=yt(t);else{if(!_(t))throw Bn("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");w(t=rt(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:R(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:zn("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function Hn(t){return function(){return this[t]}}function zn(t,e){return function(n){return R(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Wn(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return D(e)?(t=e,this):t},this.html5Mode=function(t){return J(t)?(e.enabled=t,this):_(t)?(J(t.enabled)&&(e.enabled=t.enabled),J(t.requireBase)&&(e.requireBase=t.requireBase),J(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){var a,c,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw Bn("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(h||"/"),c=i.history?qn:Un}else l=Fn(p),c=Vn;var d=function(t){return t.substr(0,Fn(t).lastIndexOf("/")+1)}(l);(a=new c(l,d,"#"+t)).$$parseLinkUrl(p,p),a.$$state=r.state();var g=/^\s*(javascript|mailto):/i;function m(t,e,n){var i=a.url(),o=a.$$state;try{r.url(t,e,n),a.$$state=r.state()}catch(t){throw a.url(i),a.$$state=o,t}}o.on("click",(function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=u(t.target);"a"!==et(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var c=i.prop("href"),l=i.attr("href")||i.attr("xlink:href");_(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=qr(c.animVal).href),g.test(c)||!c||i.attr("target")||t.isDefaultPrevented()||a.$$parseLinkUrl(c,l)&&(t.preventDefault(),a.absUrl()!=r.url()&&(n.$apply(),s.angular["ff-684208-preventDefault"]=!0))}})),In(a.absUrl())!=In(p)&&r.url(a.absUrl(),!0);var v=!0;return r.onUrlChange((function(t,e){R(_n(d,t))?s.location.href=t:(n.$evalAsync((function(){var r,i=a.absUrl(),o=a.$$state;t=In(t),a.$$parse(t),a.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,a.absUrl()===t&&(r?(a.$$parse(i),a.$$state=o,m(i,!1,o)):(v=!1,$(i,o)))})),n.$$phase||n.$digest())})),n.$watch((function(){var t=In(r.url()),e=In(a.absUrl()),o=r.state(),s=a.$$replace,c=t!==e||a.$$html5&&i.history&&o!==a.$$state;(v||c)&&(v=!1,n.$evalAsync((function(){var e=a.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,a.$$state,o).defaultPrevented;a.absUrl()===e&&(r?(a.$$parse(t),a.$$state=o):(c&&m(e,s,o===a.$$state?null:a.$$state),$(t,o)))}))),a.$$replace=!1})),a;function $(t,e){n.$broadcast("$locationChangeSuccess",a.absUrl(),t,a.$$state,e)}}]}function Xn(){var t=!0,e=this;this.debugEnabled=function(e){return D(e)?(t=e,this):t},this.$get=["$window",function(n){return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:(r=o("debug"),function(){t&&r.apply(e,arguments)})};var r;function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},r=e[t]||e.log||M,o=!1;try{o=!!r.apply}catch(t){}return o?function(){var t=[];return w(arguments,(function(e){t.push(i(e))})),r.apply(e,t)}:function(t,e){r(t,null==e?"":e)}}}]}w([Un,Vn,qn],(function(t){t.prototype=Object.create(Ln),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==qn||!this.$$html5)throw Bn("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=R(e)?null:e,this}}));var Jn=r("$parse");function Yn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Jn("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Gn(t,e){if(!I(t+=""))throw Jn("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Kn(t,e){if(t){if(t.constructor===t)throw Jn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Jn("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Jn("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Jn("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}var Zn=Function.prototype.call,Qn=Function.prototype.apply,tr=Function.prototype.bind;function er(t,e){if(t){if(t.constructor===t)throw Jn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===Zn||t===Qn||t===tr)throw Jn("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function nr(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Jn("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}var rr=Dt();w("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){rr[t]=!0}));var ir={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},or=function(t){this.options=t};or.prototype={constructor:or,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=rr[e],o=rr[n],s=rr[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-1!==e.indexOf(t)},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=D(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Jn("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=o(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 n+=ir[o]||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 sr=function(t,e){this.lexer=t,this.options=e};function ar(t,e){return void 0!==t?t:e}function cr(t,e){return void 0===t?e:void 0===e?t:t+e}function ur(t,e){return!t(e).$stateful}function lr(t,e){var n,r;switch(t.type){case sr.Program:n=!0,w(t.body,(function(t){lr(t.expression,e),n=n&&t.expression.constant})),t.constant=n;break;case sr.Literal:t.constant=!0,t.toWatch=[];break;case sr.UnaryExpression:lr(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case sr.BinaryExpression:lr(t.left,e),lr(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case sr.LogicalExpression:lr(t.left,e),lr(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case sr.ConditionalExpression:lr(t.test,e),lr(t.alternate,e),lr(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case sr.Identifier:t.constant=!1,t.toWatch=[t];break;case sr.MemberExpression:lr(t.object,e),t.computed&&lr(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case sr.CallExpression:n=!!t.filter&&ur(e,t.callee.name),r=[],w(t.arguments,(function(t){lr(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)})),t.constant=n,t.toWatch=t.filter&&ur(e,t.callee.name)?r:[t];break;case sr.AssignmentExpression:lr(t.left,e),lr(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case sr.ArrayExpression:n=!0,r=[],w(t.elements,(function(t){lr(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)})),t.constant=n,t.toWatch=r;break;case sr.ObjectExpression:n=!0,r=[],w(t.properties,(function(t){lr(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 sr.ThisExpression:t.constant=!1,t.toWatch=[]}}function fr(t){if(1==t.length){var e=t[0].expression,r=e.toWatch;return 1!==r.length||r[0]!==e?r:n}}function hr(t){return t.type===sr.Identifier||t.type===sr.MemberExpression}function pr(t){if(1===t.body.length&&hr(t.body[0].expression))return{type:sr.AssignmentExpression,left:t.body[0].expression,right:{type:sr.NGValueParameter},operator:"="}}function dr(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===sr.Literal||t.body[0].expression.type===sr.ArrayExpression||t.body[0].expression.type===sr.ObjectExpression)}function gr(t){return t.constant}function mr(t,e){this.astBuilder=t,this.$filter=e}function vr(t,e){this.astBuilder=t,this.$filter=e}sr.Program="Program",sr.ExpressionStatement="ExpressionStatement",sr.AssignmentExpression="AssignmentExpression",sr.ConditionalExpression="ConditionalExpression",sr.LogicalExpression="LogicalExpression",sr.BinaryExpression="BinaryExpression",sr.UnaryExpression="UnaryExpression",sr.CallExpression="CallExpression",sr.MemberExpression="MemberExpression",sr.Identifier="Identifier",sr.Literal="Literal",sr.ArrayExpression="ArrayExpression",sr.Property="Property",sr.ObjectExpression="ObjectExpression",sr.ThisExpression="ThisExpression",sr.NGValueParameter="NGValueParameter",sr.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:sr.Program,body:t}},expressionStatement:function(){return{type:sr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:sr.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:sr.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:sr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:sr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:sr.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=rt(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());e=this.expect("(","[",".");)"("===e.text?(t={type:sr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:sr.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:sr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:sr.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:sr.Identifier,name:t.text}},constant:function(){return{type:sr.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:sr.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:sr.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:sr.ObjectExpression,properties:e}},throwError:function(t,e){throw Jn("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 Jn("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 Jn("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:sr.Literal,value:!0},false:{type:sr.Literal,value:!1},null:{type:sr.Literal,value:null},undefined:{type:sr.Literal,value:n},this:{type:sr.ThisExpression}}},mr.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:[]},lr(i,r.$filter);var o,s="";if(this.stage="assign",o=pr(i)){this.state.computing="assign";var a=this.nextId();this.recurse(o,a),this.return_(a),s="fn.assign="+this.generateFunction("assign","s,v,l")}var c=fr(i.body);r.stage="inputs",w(c,(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 u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",u)(this.$filter,Yn,Kn,er,Gn,nr,ar,cr,t);return this.state=this.stage=n,l.literal=dr(i),l.constant=gr(i),l},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return w(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 w(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,o,s){var a,c,u,l,f=this;if(i=i||M,!s&&D(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,o,!0));switch(t.type){case sr.Program:w(t.body,(function(e,r){f.recurse(e.expression,n,n,(function(t){c=t})),r!==t.body.length-1?f.current().body.push(c,";"):f.return_(c)}));break;case sr.Literal:l=this.escape(t.value),this.assign(e,l),i(l);break;case sr.UnaryExpression:this.recurse(t.argument,n,n,(function(t){c=t})),l=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,l),i(l);break;case sr.BinaryExpression:this.recurse(t.left,n,n,(function(t){a=t})),this.recurse(t.right,n,n,(function(t){c=t})),l="+"===t.operator?this.plus(a,c):"-"===t.operator?this.ifDefined(a,0)+t.operator+this.ifDefined(c,0):"("+a+")"+t.operator+"("+c+")",this.assign(e,l),i(l);break;case sr.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),i(e);break;case sr.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),i(e);break;case sr.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),Yn(t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){o&&1!==o&&f.if_(f.not(f.nonComputedMember("s",t.name)),f.lazyAssign(f.nonComputedMember("s",t.name),"{}")),f.assign(e,f.nonComputedMember("s",t.name))}))}),e&&f.lazyAssign(e,f.nonComputedMember("l",t.name))),(f.state.expensiveChecks||yr(t.name))&&f.addEnsureSafeObject(e),i(e);break;case sr.MemberExpression:a=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,a,n,(function(){f.if_(f.notNull(a),(function(){o&&1!==o&&f.addEnsureSafeAssignContext(a),t.computed?(c=f.nextId(),f.recurse(t.property,c),f.getStringValue(c),f.addEnsureSafeMemberName(c),o&&1!==o&&f.if_(f.not(f.computedMember(a,c)),f.lazyAssign(f.computedMember(a,c),"{}")),l=f.ensureSafeObject(f.computedMember(a,c)),f.assign(e,l),r&&(r.computed=!0,r.name=c)):(Yn(t.property.name),o&&1!==o&&f.if_(f.not(f.nonComputedMember(a,t.property.name)),f.lazyAssign(f.nonComputedMember(a,t.property.name),"{}")),l=f.nonComputedMember(a,t.property.name),(f.state.expensiveChecks||yr(t.property.name))&&(l=f.ensureSafeObject(l)),f.assign(e,l),r&&(r.computed=!1,r.name=t.property.name))}),(function(){f.assign(e,"undefined")})),i(e)}),!!o);break;case sr.CallExpression:e=e||this.nextId(),t.filter?(c=f.filter(t.callee.name),u=[],w(t.arguments,(function(t){var e=f.nextId();f.recurse(t,e),u.push(e)})),l=c+"("+u.join(",")+")",f.assign(e,l),i(e)):(c=f.nextId(),a={},u=[],f.recurse(t.callee,c,a,(function(){f.if_(f.notNull(c),(function(){f.addEnsureSafeFunction(c),w(t.arguments,(function(t){f.recurse(t,f.nextId(),n,(function(t){u.push(f.ensureSafeObject(t))}))})),a.name?(f.state.expensiveChecks||f.addEnsureSafeObject(a.context),l=f.member(a.context,a.name,a.computed)+"("+u.join(",")+")"):l=c+"("+u.join(",")+")",l=f.ensureSafeObject(l),f.assign(e,l)}),(function(){f.assign(e,"undefined")})),i(e)})));break;case sr.AssignmentExpression:if(c=this.nextId(),a={},!hr(t.left))throw Jn("lval","Trying to assign a value to a non l-value");this.recurse(t.left,n,a,(function(){f.if_(f.notNull(a.context),(function(){f.recurse(t.right,c),f.addEnsureSafeObject(f.member(a.context,a.name,a.computed)),f.addEnsureSafeAssignContext(a.context),l=f.member(a.context,a.name,a.computed)+t.operator+c,f.assign(e,l),i(e||l)}))}),1);break;case sr.ArrayExpression:u=[],w(t.elements,(function(t){f.recurse(t,f.nextId(),n,(function(t){u.push(t)}))})),l="["+u.join(",")+"]",this.assign(e,l),i(l);break;case sr.ObjectExpression:u=[],w(t.properties,(function(t){f.recurse(t.value,f.nextId(),n,(function(e){u.push(f.escape(t.key.type===sr.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),l="{"+u.join(",")+"}",this.assign(e,l),i(l);break;case sr.ThisExpression:this.assign(e,"s"),i("s");break;case sr.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(!0===t)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(I(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(q(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw Jn("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]}},vr.prototype={compile:function(t,e){var n,r,i=this,o=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,lr(o,i.$filter),(n=pr(o))&&(r=this.recurse(n));var s,a=fr(o.body);a&&(s=[],w(a,(function(t,e){var n=i.recurse(t);t.input=n,s.push(n),t.watchId=e})));var c=[];w(o.body,(function(t){c.push(i.recurse(t.expression))}));var u=0===o.body.length?function(){}:1===o.body.length?c[0]:function(t,e){var n;return w(c,(function(r){n=r(t,e)})),n};return r&&(u.assign=function(t,e,n){return r(t,n,e)}),s&&(u.inputs=s),u.literal=dr(o),u.constant=gr(o),u},recurse:function(t,e,r){var i,o,s,a=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case sr.Literal:return this.value(t.value,e);case sr.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case sr.BinaryExpression:case sr.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case sr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case sr.Identifier:return Yn(t.name,a.expression),a.identifier(t.name,a.expensiveChecks||yr(t.name),e,r,a.expression);case sr.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(Yn(t.property.name,a.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,r,a.expression):this.nonComputedMember(i,o,a.expensiveChecks,e,r,a.expression);case sr.CallExpression:return s=[],w(t.arguments,(function(t){s.push(a.recurse(t))})),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,r,i,a){for(var c=[],u=0;u<s.length;++u)c.push(s[u](t,r,i,a));var l=o.apply(n,c,a);return e?{context:n,name:n,value:l}:l}:function(t,n,r,i){var c,u=o(t,n,r,i);if(null!=u.value){Kn(u.context,a.expression),er(u.value,a.expression);for(var l=[],f=0;f<s.length;++f)l.push(Kn(s[f](t,n,r,i),a.expression));c=Kn(u.value.apply(u.context,l),a.expression)}return e?{value:c}:c};case sr.AssignmentExpression:return i=this.recurse(t.left,!0,1),o=this.recurse(t.right),function(t,n,r,s){var c=i(t,n,r,s),u=o(t,n,r,s);return Kn(c.value,a.expression),nr(c.context),c.context[c.name]=u,e?{value:u}:u};case sr.ArrayExpression:return s=[],w(t.elements,(function(t){s.push(a.recurse(t))})),function(t,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](t,n,r,i));return e?{value:o}:o};case sr.ObjectExpression:return s=[],w(t.properties,(function(t){s.push({key:t.key.type===sr.Identifier?t.key.name:""+t.key.value,value:a.recurse(t.value)})})),function(t,n,r,i){for(var o={},a=0;a<s.length;++a)o[s[a].key]=s[a].value(t,n,r,i);return e?{value:o}:o};case sr.ThisExpression:return function(t){return e?{value:t}:t};case sr.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=D(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=D(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=cr(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),c=e(r,i,o,s),u=(D(a)?a:0)-(D(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&&Kn(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&&(Yn(u=Gn(u=e(o,s,a,c)),i),r&&1!==r&&(nr(f),f&&!f[u]&&(f[u]={})),Kn(l=f[u],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&&(nr(f),f&&!f[e]&&(f[e]={}));var h=null!=f?f[e]:n;return(r||yr(e))&&Kn(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 $r=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new sr(this.lexer),this.astCompiler=n.csp?new vr(this.ast,e):new mr(this.ast,e)};function yr(t){return"constructor"==t}$r.prototype={constructor:$r,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var br=Object.prototype.valueOf;function wr(t){return L(t.valueOf)?t.valueOf():br.call(t)}function xr(){var t=Dt(),e=Dt();this.$get=["$filter",function(r){var i=st().noUnsafeEval,o={csp:i,expensiveChecks:!1},s={csp:i,expensiveChecks:!0},a=!1;return c.$$runningExpensiveChecks=function(){return a},c;function c(n,i,c){var l,m,v;switch(c=c||a,typeof n){case"string":n=n.trim();var $=c?e:t;if(!(l=$[v=n])){":"===n.charAt(0)&&":"===n.charAt(1)&&(m=!0,n=n.substring(2));var y=c?s:o,b=new or(y);(l=new $r(b,r,y).parse(n)).constant?l.$$watchDelegate=d:m?l.$$watchDelegate=l.literal?p:h:l.inputs&&(l.$$watchDelegate=f),c&&(l=u(l)),$[v]=l}return g(l,i);case"function":return g(n,i);default:return g(M,i)}}function u(t){if(!t)return t;n.$$watchDelegate=t.$$watchDelegate,n.assign=u(t.assign),n.constant=t.constant,n.literal=t.literal;for(var e=0;t.inputs&&e<t.inputs.length;++e)t.inputs[e]=u(t.inputs[e]);return n.inputs=t.inputs,n;function n(e,n,r,i){var o=a;a=!0;try{return t(e,n,r,i)}finally{a=o}}}function l(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=wr(t)))&&(t===e||t!=t&&e!=e)}function f(t,e,r,i,o){var s,a=i.inputs;if(1===a.length){var c=l;return a=a[0],t.$watch((function(t){var e=a(t);return l(e,c)||(s=i(t,n,n,[e]),c=e&&wr(e)),s}),e,r,o)}for(var u=[],f=[],h=0,p=a.length;h<p;h++)u[h]=l,f[h]=null;return t.$watch((function(t){for(var e=!1,r=0,o=a.length;r<o;r++){var c=a[r](t);(e||(e=!l(c,u[r])))&&(f[r]=c,u[r]=c&&wr(c))}return e&&(s=i(t,n,n,f)),s}),e,r,o)}function h(t,e,n,r){var i,o;return i=t.$watch((function(t){return r(t)}),(function(t,n,r){o=t,L(e)&&e.apply(this,arguments),D(t)&&r.$$postDigest((function(){D(o)&&i()}))}),n)}function p(t,e,n,r){var i,o;return i=t.$watch((function(t){return r(t)}),(function(t,n,r){o=t,L(e)&&e.call(this,t,n,r),s(t)&&r.$$postDigest((function(){s(o)&&i()}))}),n);function s(t){var e=!0;return w(t,(function(t){D(t)||(e=!1)})),e}}function d(t,e,n,r){var i;return i=t.$watch((function(t){return r(t)}),(function(t,n,r){L(e)&&e.apply(this,arguments),i()}),n)}function g(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==p&&n!==h?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 D(s)?a:s};return t.$$watchDelegate&&t.$$watchDelegate!==f?i.$$watchDelegate=t.$$watchDelegate:e.$stateful||(i.$$watchDelegate=f,r=!t.inputs,i.inputs=t.inputs?t.inputs:[t]),i}}]}function Cr(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return Sr((function(e){t.$evalAsync(e)}),e)}]}function kr(){this.$get=["$browser","$exceptionHandler",function(t,e){return Sr((function(e){t.defer(e)}),e)}]}function Sr(t,e){var i=r("$q",TypeError);function o(){this.$$state={status:0}}function s(t,e){return function(n){e.call(t,n)}}function a(r){!r.processScheduled&&r.pending&&(r.processScheduled=!0,t((function(){!function(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{L(r)?i.resolve(r(t.value)):1===t.status?i.resolve(t.value):i.reject(t.value)}catch(t){i.reject(t),e(t)}}}(r)})))}function c(){this.promise=new o,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}A(o.prototype,{then:function(t,e,n){if(R(t)&&R(e)&&R(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&a(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return l(e,!0,t)}),(function(e){return l(e,!1,t)}),e)}}),A(c.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(i("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=function(t,e,n){var r=!1;function i(e){return function(n){r||(r=!0,e.call(t,n))}}return[i(e),i(n)]}(this,this.$$resolve,this.$$reject);try{(_(t)||L(t))&&(n=t&&t.then),L(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,a(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,a(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(L(t)?t(n):n)}catch(t){e(t)}}}))}});var u=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},l=function(t,e,n){var r=null;try{L(n)&&(r=n())}catch(t){return u(t,!1)}return Y(r)?r.then((function(){return u(t,e)}),(function(t){return u(t,!1)})):u(t,e)},f=function(t,e,n,r){var i=new c;return i.resolve(t),i.promise.then(e,n,r)},h=f,p=function t(e){if(!L(e))throw i("norslvr","Expected resolverFn, got '{0}'",e);if(!(this instanceof t))return new t(e);var n=new c;return e((function(t){n.resolve(t)}),(function(t){n.reject(t)})),n.promise};return p.defer=function(){return new c},p.reject=function(t){var e=new c;return e.reject(t),e.promise},p.when=f,p.resolve=h,p.all=function(t){var e=new c,n=0,r=U(t)?[]:{};return w(t,(function(t,i){n++,f(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},p}function Er(){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 Ar(){var t=10,e=r("$rootScope"),n=null,i=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,o,a,u){function l(t){t.currentScope.$$destroyed=!0}function f(t){9===c&&(t.$$childHead&&f(t.$$childHead),t.$$nextSibling&&f(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function h(){this.$id=k(),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}h.prototype={constructor:h,$new:function(t,e){var n;return e=e||this,t?(n=new h).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=k(),this.$$ChildScope=null}return e.prototype=t,e}(this)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,(t||e!=this)&&n.$on("$destroy",l),n},$watch:function(t,e,r,i){var o=a(t);if(o.$$watchDelegate)return o.$$watchDelegate(this,e,r,o,t);var s=this,c=s.$$watchers,u={fn:e,last:C,get:o,exp:i||t,eq:!!r};return n=null,L(e)||(u.fn=M),c||(c=s.$$watchers=[]),c.unshift(u),y(this,1),function(){nt(c,u)>=0&&y(s,-1),n=null}},$watchGroup:function(t,e){var n=new Array(t.length),r=new Array(t.length),i=[],o=this,s=!1,a=!0;if(!t.length){var c=!0;return o.$evalAsync((function(){c&&e(r,r,o)})),function(){c=!1}}if(1===t.length)return this.$watch(t[0],(function(t,i,o){r[0]=t,n[0]=i,e(r,t===i?r:n,o)}));function u(){s=!1,a?(a=!1,e(r,r,o)):e(r,n,o)}return w(t,(function(t,e){var a=o.$watch(t,(function(t,i){r[e]=t,n[e]=i,s||(s=!0,o.$evalAsync(u))}));i.push(a)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(t,e){g.$stateful=!0;var n,r,i,o=this,c=e.length>1,u=0,l=a(t,g),f=[],h={},p=!0,d=0;function g(t){var e,i,o,a;if(!R(n=t)){if(_(n))if(b(n)){r!==f&&(d=(r=f).length=0,u++),e=n.length,d!==e&&(u++,r.length=d=e);for(var c=0;c<e;c++)a=r[c],o=n[c],a!=a&&o!=o||a===o||(u++,r[c]=o)}else{for(i in r!==h&&(r=h={},d=0,u++),e=0,n)s.call(n,i)&&(e++,o=n[i],a=r[i],i in r?a!=a&&o!=o||a===o||(u++,r[i]=o):(d++,r[i]=o,u++));if(d>e)for(i in u++,r)s.call(n,i)||(d--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(l,(function(){if(p?(p=!1,e(n,n,o)):e(n,i,o),c)if(_(n))if(b(n)){i=new Array(n.length);for(var t=0;t<n.length;t++)i[t]=n[t]}else for(var r in i={},n)s.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var r,s,a,c,l,f,h,m,y,b,w=t,x=this,k=[];v("$digest"),u.$$checkUrlChange(),this===p&&null!==i&&(u.defer.cancel(i),S()),n=null;do{for(f=!1,m=x;d.length;){try{(b=d.shift()).scope.$eval(b.expression,b.locals)}catch(t){o(t)}n=null}t:do{if(c=m.$$watchers)for(l=c.length;l--;)try{if(r=c[l])if((s=(0,r.get)(m))===(a=r.last)||(r.eq?ot(s,a):"number"==typeof s&&"number"==typeof a&&isNaN(s)&&isNaN(a))){if(r===n){f=!1;break t}}else f=!0,n=r,r.last=r.eq?rt(s,null):s,(0,r.fn)(s,a===C?s:a,m),w<5&&(k[y=4-w]||(k[y]=[]),k[y].push({msg:L(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:s,oldVal:a}))}catch(t){o(t)}if(!(h=m.$$watchersCount&&m.$$childHead||m!==x&&m.$$nextSibling))for(;m!==x&&!(h=m.$$nextSibling);)m=m.$parent}while(m=h);if((f||d.length)&&!w--)throw $(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,k)}while(f||d.length);for($();g.length;)try{g.shift()()}catch(t){o(t)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===p&&u.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)x(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,f(this)}},$eval:function(t,e){return a(t)(this,e)},$evalAsync:function(t,e){p.$$phase||d.length||u.defer((function(){d.length&&p.$digest()})),d.push({scope:this,expression:a(t),locals:e})},$$postDigest:function(t){g.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{$()}}catch(t){o(t)}finally{try{p.$digest()}catch(t){throw o(t),t}}},$applyAsync:function(t){var e=this;t&&m.push((function(){e.$eval(t)})),t=a(t),null===i&&(i=u.defer((function(){p.$apply(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);-1!==r&&(n[r]=null,x(i,1,t))}},$emit:function(t,e){var n,r,i,s=[],a=this,c=!1,u={name:t,targetScope:a,stopPropagation:function(){c=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=ct([u],arguments,1);do{for(n=a.$$listeners[t]||s,u.currentScope=a,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,l)}catch(t){o(t)}else n.splice(r,1),r--,i--;if(c)return u.currentScope=null,u;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(t,e){var n=this,r=n,i=n,s={name:t,targetScope:n,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;for(var a,c,u,l=ct([s],arguments,1);r=i;){for(s.currentScope=r,c=0,u=(a=r.$$listeners[t]||[]).length;c<u;c++)if(a[c])try{a[c].apply(null,l)}catch(t){o(t)}else a.splice(c,1),c--,u--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}};var p=new h,d=p.$$asyncQueue=[],g=p.$$postDigestQueue=[],m=p.$$applyAsyncQueue=[];return p;function v(t){if(p.$$phase)throw e("inprog","{0} already in progress",p.$$phase);p.$$phase=t}function $(){p.$$phase=null}function y(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function x(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function C(){}function S(){for(;m.length;)try{m.shift()()}catch(t){o(t)}i=null}}]}function Or(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return D(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return D(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return""===(i=qr(n).href)||i.match(o)?n:"unsafe:"+i}}}var Tr=r("$sce"),Nr={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Mr(t){var e=[];return D(t)&&w(t,(function(t){e.push(function(t){if("self"===t)return t;if(I(t)){if(t.indexOf("***")>-1)throw Tr("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Q(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(H(t))return new RegExp("^"+t.source+"$");throw Tr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function jr(){this.SCE_CONTEXTS=Nr;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Mr(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Mr(t)),e},this.$get=["$injector",function(n){var r=function(t){throw Tr("unsafe","Attempting to use an unsafe value in a safe context.")};function i(t,e){return"self"===t?Vr(e):!!t.exec(e.href)}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}n.has("$sanitize")&&(r=n.get("$sanitize"));var s=o(),a={};return a[Nr.HTML]=o(s),a[Nr.CSS]=o(s),a[Nr.URL]=o(s),a[Nr.JS]=o(s),a[Nr.RESOURCE_URL]=o(a[Nr.URL]),{trustAs:function(t,e){var n=a.hasOwnProperty(t)?a[t]:null;if(!n)throw Tr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||R(e)||""===e)return e;if("string"!=typeof e)throw Tr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||R(o)||""===o)return o;var s=a.hasOwnProperty(n)?a[n]:null;if(s&&o instanceof s)return o.$$unwrapTrustedValue();if(n===Nr.RESOURCE_URL){if(function(n){var r,o,s=qr(n.toString()),a=!1;for(r=0,o=t.length;r<o;r++)if(i(t[r],s)){a=!0;break}if(a)for(r=0,o=e.length;r<o;r++)if(i(e[r],s)){a=!1;break}return a}(o))return o;throw Tr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Nr.HTML)return r(o);throw Tr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof s?t.$$unwrapTrustedValue():t}}}]}function Br(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&c<8)throw Tr("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=it(Nr);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=j),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 w(Nr,(function(t,e){var n=o(e);r[Jt("parse_as_"+n)]=function(e){return i(t,e)},r[Jt("get_trusted_"+n)]=function(e){return s(t,e)},r[Jt("trust_as_"+n)]=function(e){return a(t,e)}})),r}]}function Pr(){this.$get=["$window","$document",function(t,e){var n,r,i={},s=T((/android (\d+)/.exec(o((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),u=e[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,f=u.body&&u.body.style,h=!1,p=!1;if(f){for(var d in f)if(r=l.exec(d)){n=(n=r[0]).substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in f&&"webkit"),h=!(!("transition"in f)&&!(n+"Transition"in f)),p=!(!("animation"in f)&&!(n+"Animation"in f)),!s||h&&p||(h=I(f.webkitTransition),p=I(f.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||s<4||a),hasEvent:function(t){if("input"===t&&c<=11)return!1;if(R(i[t])){var e=u.createElement("div");i[t]="on"+t in e}return i[t]},csp:st(),vendorPrefix:n,transitions:h,animations:p,android:s}}]}function Rr(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,s){i.totalPendingRequests++,I(o)&&!R(t.get(o))||(o=r.getTrustedResourceUrl(o));var a=e.defaults&&e.defaults.transformResponse;U(a)?a=a.filter((function(t){return t!==bn})):a===bn&&(a=null);var c={cache:t,transformResponse:a};return e.get(o,c).finally((function(){i.totalPendingRequests--})).then((function(e){return t.put(o,e.data),e.data}),(function(t){if(!s)throw Ze("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText);return n.reject(t)}))}return i.totalPendingRequests=0,i}]}function Dr(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return w(r,(function(t){var r=$.element(t).data("$binding");r&&w(r,(function(r){n?new RegExp("(^|\\s)"+Q(e)+"(\\s|\\||$)").test(r)&&i.push(t):-1!=r.indexOf(e)&&i.push(t)}))})),i},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+e+'"]',s=t.querySelectorAll(o);if(s.length)return s}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}}}]}function _r(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){var o={};function s(s,a,c){L(s)||(c=a,a=s,s=M);var u,l=ut(arguments,3),f=D(c)&&!c,h=(f?r:n).defer(),p=h.promise;return u=e.defer((function(){try{h.resolve(s.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete o[p.$$timeoutId]}f||t.$apply()}),a),p.$$timeoutId=u,o[u]=h,p}return s.cancel=function(t){return!(!t||!(t.$$timeoutId in o))&&(o[t.$$timeoutId].reject("canceled"),delete o[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},s}]}Ze=r("$compile");var Fr=e.createElement("a"),Ir=qr(t.location.href);function qr(t){var e=t;return c&&(Fr.setAttribute("href",e),e=Fr.href),Fr.setAttribute("href",e),{href:Fr.href,protocol:Fr.protocol?Fr.protocol.replace(/:$/,""):"",host:Fr.host,search:Fr.search?Fr.search.replace(/^\?/,""):"",hash:Fr.hash?Fr.hash.replace(/^#/,""):"",hostname:Fr.hostname,port:Fr.port,pathname:"/"===Fr.pathname.charAt(0)?Fr.pathname:"/"+Fr.pathname}}function Vr(t){var e=I(t)?qr(t):t;return e.protocol===Ir.protocol&&e.host===Ir.host}function Ur(){this.$get=B(t)}function Lr(t){var e=t[0]||{},n={},r="";function i(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){var t,o,s,a,c,u=e.cookie||"";if(u!==r)for(t=(r=u).split("; "),n={},s=0;s<t.length;s++)(a=(o=t[s]).indexOf("="))>0&&(c=i(o.substring(0,a)),R(n[c])&&(n[c]=i(o.substring(a+1))));return n}}function Hr(){this.$get=Lr}function zr(t){var e="Filter";function n(r,i){if(_(r)){var o={};return w(r,(function(t,e){o[e]=n(e,t)})),o}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("currency",Yr),n("date",ai),n("filter",Wr),n("json",ci),n("limitTo",fi),n("lowercase",ui),n("number",Gr),n("orderBy",hi),n("uppercase",li)}function Wr(){return function(t,e,n){if(!b(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var i,s;switch(Jr(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n){var r=_(t)&&"$"in t;return!0===e?e=ot:L(e)||(e=function(t,e){return!(R(t)||(null===t||null===e?t!==e:_(e)||_(t)&&!P(t)||(t=o(""+t),e=o(""+e),-1===t.indexOf(e))))}),function(i){return r&&!_(i)?Xr(i,t.$,e,!1):Xr(i,t,e,n)}}(e,n,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function Xr(t,e,n,r,i){var o=Jr(t),s=Jr(e);if("string"===s&&"!"===e.charAt(0))return!Xr(t,e.substring(1),n,r);if(U(t))return t.some((function(t){return Xr(t,e,n,r)}));switch(o){case"object":var a;if(r){for(a in t)if("$"!==a.charAt(0)&&Xr(t[a],e,n,!0))return!0;return!i&&Xr(t,e,n,!1)}if("object"===s){for(a in e){var c=e[a];if(!L(c)&&!R(c)){var u="$"===a;if(!Xr(u?t:t[a],c,n,u,u))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Jr(t){return null===t?"null":typeof t}function Yr(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return R(n)&&(n=e.CURRENCY_SYM),R(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Kr(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Gr(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Kr(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Kr(t,e,n,r,i){if(!I(t)&&!q(t)||isNaN(t))return"";var o,s=!isFinite(t),a=!1,c=Math.abs(t)+"",u="";if(s)u="∞";else{!function(t,e,n,r){var i=t.d,o=i.length-t.i,s=(e=R(e)?Math.min(Math.max(n,o),r):+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++)}(o=function(t){var e,n,r,i,o,s=0;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(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;"0"==t.charAt(r);r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;"0"==t.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{d:e,e:s,i:n}}(c),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 Zr(t,e,n){var r="";for(t<0&&(r="-",t=-t),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),r+t}function Qr(t,e,n,r){return n=n||0,function(i){var o=i["get"+t]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Zr(o,e,r)}}function ti(t,e){return function(n,r){var i=n["get"+t]();return r[a(e?"SHORT"+t:t)][i]}}function ei(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function ni(t){return function(e){var n,r=ei(e.getFullYear()),i=(n=e,+new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))-+r);return Zr(1+Math.round(i/6048e5),t)}}function ri(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}Lr.$inject=["$document"],zr.$inject=["$provide"],Yr.$inject=["$locale"],Gr.$inject=["$locale"];var ii={yyyy:Qr("FullYear",4),yy:Qr("FullYear",2,0,!0),y:Qr("FullYear",1),MMMM:ti("Month"),MMM:ti("Month",!0),MM:Qr("Month",2,1),M:Qr("Month",1,1),dd:Qr("Date",2),d:Qr("Date",1),HH:Qr("Hours",2),H:Qr("Hours",1),hh:Qr("Hours",2,-12),h:Qr("Hours",1,-12),mm:Qr("Minutes",2),m:Qr("Minutes",1),ss:Qr("Seconds",2),s:Qr("Seconds",1),sss:Qr("Milliseconds",3),EEEE:ti("Day"),EEE:ti("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var r=-1*n;return(r>=0?"+":"")+(Zr(Math[r>0?"floor":"ceil"](r/60),2)+Zr(Math.abs(r%60),2))},ww:ni(2),w:ni(1),G:ri,GG:ri,GGG:ri,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},oi=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,si=/^\-?\d+$/;function ai(t){var e=/^(\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 o,s,a="",c=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,I(n)&&(n=si.test(n)?T(n):function(t){var n;if(n=t.match(e)){var r=new Date(0),i=0,o=0,s=n[8]?r.setUTCFullYear:r.setFullYear,a=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=T(n[9]+n[10]),o=T(n[9]+n[11])),s.call(r,T(n[1]),T(n[2])-1,T(n[3]));var c=T(n[4]||0)-i,u=T(n[5]||0)-o,l=T(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return a.call(r,c,u,l,f),r}return t}(n)),q(n)&&(n=new Date(n)),!V(n)||!isFinite(n.getTime()))return n;for(;r;)(s=oi.exec(r))?r=(c=ct(c,s,1)).pop():(c.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=gt(i,u),n=mt(n,i,!0)),w(c,(function(e){a+=(o=ii[e])?o(n,t.DATETIME_FORMATS,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),a}}function ci(){return function(t,e){return R(e)&&(e=2),ht(t,e)}}ai.$inject=["$locale"];var ui=B(o),li=B(a);function fi(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):T(e),isNaN(e)?t:(q(t)&&(t=t.toString()),U(t)||I(t)?(n=(n=!n||isNaN(n)?0:T(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 hi(t){return function(r,i,o){if(!b(r))return r;U(i)||(i=[i]),0===i.length&&(i=["+"]);var s=function(e,n){return n=n?-1:1,e.map((function(e){var r=1,i=j;if(L(e))i=e;else if(I(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e)).constant)){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}}))}(i,o);s.push({get:function(){return{}},descending:o?-1:1});var a=Array.prototype.map.call(r,(function(t,n){return{value:t,predicateValues:s.map((function(r){return function(t,n){var r=typeof t;return null===t?(r="string",t="null"):"string"===r?t=t.toLowerCase():"object"===r&&(t=function(t,n){return"function"==typeof t.valueOf&&e(t=t.valueOf())||P(t)&&e(t=t.toString())?t:n}(t,n)),{value:t,type:r}}(r.get(t),n)}))}}));return a.sort((function(t,e){for(var r=0,i=0,o=s.length;i<o&&!(r=n(t.predicateValues[i],e.predicateValues[i])*s[i].descending);++i);return r})),a.map((function(t){return t.value}))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(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}}function pi(t){return L(t)&&(t={link:t}),t.restrict=t.restrict||"AC",B(t)}hi.$inject=["$parse"];var di=B({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]"===g.call(e.prop("href"))?"xlink:href":"href";e.on("click",(function(t){e.attr(n)||t.preventDefault()}))}}}}),gi={};w(we,(function(t,e){if("multiple"!=t){var n=en("ng-"+e),r=i;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[n]&&i(t,0,r)}),gi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(t,r,i){t.$watch(i[n],(function(t){i.$set(e,!!t)}))}})),w(Ce,(function(t,e){gi[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var o=r.ngPattern.match(i);if(o)return void r.$set("ngPattern",new RegExp(o[1],o[2]))}t.$watch(r[e],(function(t){r.$set(e,t)}))}}}})),w(["src","srcset","href"],(function(t){var e=en("ng-"+t);gi[e]=function(){return{priority:99,link:function(n,r,i){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===g.call(r.prop("href"))&&(s="xlinkHref",i.$attr[s]="xlink:href",o=null),i.$observe(e,(function(e){e?(i.$set(s,e),c&&o&&r.prop(o,i[s])):"href"===t&&i.$set(s,null)}))}}}}));var mi={$addControl:M,$$renameControl:function(t,e){t.$name=e},$removeControl:M,$setValidity:M,$setDirty:M,$setPristine:M,$setSubmitted:M},vi="ng-submitted";function $i(t,e,r,i,o){var s=this,a=[];s.$error={},s.$$success={},s.$pending=n,s.$name=o(e.name||e.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,s.$$parentForm=mi,s.$rollbackViewValue=function(){w(a,(function(t){t.$rollbackViewValue()}))},s.$commitViewValue=function(){w(a,(function(t){t.$commitViewValue()}))},s.$addControl=function(t){Bt(t.$name,"input"),a.push(t),t.$name&&(s[t.$name]=t),t.$$parentForm=s},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&&delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&&s[t.$name]===t&&delete s[t.$name],w(s.$pending,(function(e,n){s.$setValidity(n,null,t)})),w(s.$error,(function(e,n){s.$setValidity(n,null,t)})),w(s.$$success,(function(e,n){s.$setValidity(n,null,t)})),nt(a,t),t.$$parentForm=mi},vo({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(nt(r,n),0===r.length&&delete t[e])},$animate:i}),s.$setDirty=function(){i.removeClass(t,so),i.addClass(t,ao),s.$dirty=!0,s.$pristine=!1,s.$$parentForm.$setDirty()},s.$setPristine=function(){i.setClass(t,so,ao+" "+vi),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,w(a,(function(t){t.$setPristine()}))},s.$setUntouched=function(){w(a,(function(t){t.$setUntouched()}))},s.$setSubmitted=function(){i.addClass(t,vi),s.$submitted=!0,s.$$parentForm.$setSubmitted()}}$i.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var yi=function(t){return["$timeout","$parse",function(e,r){return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:$i,compile:function(r,o){r.addClass(so).addClass(oo);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()};Ut(r[0],"submit",u),r.on("$destroy",(function(){e((function(){Lt(r[0],"submit",u)}),0,!1)}))}(a[1]||c.$$parentForm).$addControl(c);var l=s?i(c.$name):M;s&&(l(t,c),o.$observe(s,(function(e){c.$name!==e&&(l(t,n),c.$$parentForm.$$renameControl(c,e),(l=i(c.$name))(t,c))}))),r.on("$destroy",(function(){c.$$parentForm.$removeControl(c),l(t,n),A(c,mi)}))}}}};function i(t){return""===t?r('this[""]').assign:r(t).assign||M}}]},bi=yi(),wi=yi(!0),xi=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ci=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ki=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Si=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ei=/^(\d{4})-(\d{2})-(\d{2})$/,Ai=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Oi=/^(\d{4})-W(\d\d)$/,Ti=/^(\d{4})-(\d\d)$/,Ni=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Mi=Dt();w("date,datetime-local,month,time,week".split(","),(function(t){Mi[t]=!0}));var ji={text:function(t,e,n,r,i,o){Pi(0,e,n,r,i,o),Bi(r)},date:Di("date",Ei,Ri(Ei,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Di("datetimelocal",Ai,Ri(Ai,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Di("time",Ni,Ri(Ni,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Di("week",Oi,(function(t,e){if(V(t))return t;if(I(t)){Oi.lastIndex=0;var n=Oi.exec(t);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,c=0,u=ei(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}),"yyyy-Www"),month:Di("month",Ti,Ri(Ti,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,r,i,o,s){var a,c;(_i(0,e,0,i),Pi(0,e,r,i,o,s),i.$$parserName="number",i.$parsers.push((function(t){return i.$isEmpty(t)?null:Si.test(t)?parseFloat(t):n})),i.$formatters.push((function(t){if(!i.$isEmpty(t)){if(!q(t))throw fo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})),D(r.min)||r.ngMin)&&(i.$validators.min=function(t){return i.$isEmpty(t)||R(a)||t>=a},r.$observe("min",(function(t){D(t)&&!q(t)&&(t=parseFloat(t,10)),a=q(t)&&!isNaN(t)?t:n,i.$validate()})));(D(r.max)||r.ngMax)&&(i.$validators.max=function(t){return i.$isEmpty(t)||R(c)||t<=c},r.$observe("max",(function(t){D(t)&&!q(t)&&(t=parseFloat(t,10)),c=q(t)&&!isNaN(t)?t:n,i.$validate()})))},url:function(t,e,n,r,i,o){Pi(0,e,n,r,i,o),Bi(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ci.test(n)}},email:function(t,e,n,r,i,o){Pi(0,e,n,r,i,o),Bi(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||ki.test(n)}},radio:function(t,e,n,r){R(n.name)&&e.attr("name",k()),e.on("click",(function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)})),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(t,e,n,r,i,o,s,a){var c=Fi(a,t,"ngTrueValue",n.ngTrueValue,!0),u=Fi(a,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((function(t){return ot(t,c)})),r.$parsers.push((function(t){return t?c:u}))},hidden:M,button:M,submit:M,reset:M,file:M};function Bi(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function Pi(t,e,n,r,i,s){var a,c=o(e[0].type);if(!i.android){var u=!1;e.on("compositionstart",(function(t){u=!0})),e.on("compositionend",(function(){u=!1,l()}))}var l=function(t){if(a&&(s.defer.cancel(a),a=null),!u){var i=e.val(),o=t&&t.type;"password"===c||n.ngTrim&&"false"===n.ngTrim||(i=Z(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,o)}};if(i.hasEvent("input"))e.on("input",l);else{var f=function(t,e,n){a||(a=s.defer((function(){a=null,e&&e.value===n||l(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||f(t,this,this.value)})),i.hasEvent("paste")&&e.on("paste cut",f)}e.on("change",l),Mi[c]&&r.$$hasNativeValidators&&c===n.type&&e.on("keydown wheel mousedown",(function(t){if(!a){var e=this.validity,n=e.badInput,r=e.typeMismatch;a=s.defer((function(){a=null,e.badInput===n&&e.typeMismatch===r||l(t)}))}})),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function Ri(t,e){return function(n,r){var i,o;if(V(n))return n;if(I(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),xi.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),o=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},w(i,(function(t,n){n<e.length&&(o[e[n]]=+t)})),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return NaN}}function Di(t,e,r,i){return function(o,s,a,c,u,l,f){_i(0,s,0,c),Pi(0,s,a,c,u,l);var h,p,d,g=c&&c.$options&&c.$options.timezone;function m(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function v(t){return D(t)&&!V(t)?r(t)||n:t}c.$$parserName=t,c.$parsers.push((function(t){if(c.$isEmpty(t))return null;if(e.test(t)){var i=r(t,h);return g&&(i=mt(i,g)),i}return n})),c.$formatters.push((function(t){if(t&&!V(t))throw fo("datefmt","Expected `{0}` to be a date",t);return m(t)?((h=t)&&g&&(h=mt(h,g,!0)),f("date")(t,i,g)):(h=null,"")})),(D(a.min)||a.ngMin)&&(c.$validators.min=function(t){return!m(t)||R(p)||r(t)>=p},a.$observe("min",(function(t){p=v(t),c.$validate()}))),(D(a.max)||a.ngMax)&&(c.$validators.max=function(t){return!m(t)||R(d)||r(t)<=d},a.$observe("max",(function(t){d=v(t),c.$validate()})))}}function _i(t,e,r,i){var o=e[0];(i.$$hasNativeValidators=_(o.validity))&&i.$parsers.push((function(t){var r=e.prop("validity")||{};return r.badInput&&!r.typeMismatch?n:t}))}function Fi(t,e,n,r,i){var o;if(D(r)){if(!(o=t(r)).constant)throw fo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}var Ii=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,s,a,c){c[0]&&(ji[o(a.type)]||ji.text)(i,s,a,c[0],e,t,n,r)}}}}],qi=/^(true|false|\d+)$/,Vi=function(){return{restrict:"A",priority:100,compile:function(t,e){return qi.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)}))}}}},Ui=["$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=R(t)?"":t}))}}}}],Li=["$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=R(t)?"":t}))}}}}],Hi=["$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)||"")}))}}}}],zi=B({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}});function Wi(t,e){return t="ngClass"+t,["$animate",function(n){return{restrict:"AC",link:function(o,s,a){var c;function u(t){var e=l(t,1);a.$addClass(e)}function l(t,e){var n=s.data("$classCounts")||Dt(),r=[];return w(t,(function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))})),s.data("$classCounts",n),r.join(" ")}function f(t){if(!0===e||o.$index%2===e){var a=i(t||[]);c?ot(t,c)||function(t,e){var i=r(e,t),o=r(t,e);i=l(i,1),o=l(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}(i(c),a):u(a)}c=U(t)?t.map((function(t){return it(t)})):it(t)}o.$watch(a[t],f,!0),a.$observe("class",(function(e){f(o.$eval(a[t]))})),"ngClass"!==t&&o.$watch("$index",(function(n,r){var s=1&n;if(s!==(1&r)){var c=i(o.$eval(a[t]));s===e?u(c):function(t){var e=l(t,-1);a.$removeClass(e)}(c)}}))}};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 U(t)?(w(t,(function(t){e=e.concat(i(t))})),e):I(t)?t.split(" "):_(t)?(w(t,(function(t,n){t&&(e=e.concat(n.split(" ")))})),e):t}}]}var Xi=Wi("",!0),Ji=Wi("Odd",0),Yi=Wi("Even",1),Gi=pi({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Ki=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Zi={},Qi={blur:!0,focus:!0};w("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(t){var e=en("ng-"+t);Zi[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})};Qi[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)}))}}}}]}));var to=["$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=Rt(a.clone),t.leave(u).then((function(){u=null})),a=null))}))}}}],eo=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:$.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,g=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(){!D(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){g(),n.enter(t,null,i).then(c)}));p=a,(f=e).$emit("$includeContentLoaded",o),r.$eval(s)}}),(function(){r.$$destroyed||h===d&&(g(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(g(),u.template=null)}))}}}}],no=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(/SVG/.test(r[0].toString()))return r.empty(),void t(ne(o.template,e).childNodes)(n,(function(t){r.append(t)}),{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],ro=pi({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),io=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var o=e.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,a=s?Z(o):o;i.$parsers.push((function(t){if(!R(t)){var e=[];return t&&w(t.split(a),(function(t){t&&e.push(s?Z(t):t)})),e}})),i.$formatters.push((function(t){return U(t)?t.join(o):n})),i.$isEmpty=function(t){return!t||!t.length}}}},oo="ng-valid",so="ng-pristine",ao="ng-dirty",co="ng-untouched",uo="ng-touched",lo="ng-pending",fo=r("ngModel"),ho=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,o,s,a,c,u,l){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=l(r.name||"",!1)(t),this.$$parentForm=mi;var f,h=o(r.ngModel),p=h.assign,d=h,g=p,m=null,v=this;this.$$setOptions=function(t){if(v.$options=t,t&&t.getterSetter){var e=o(r.ngModel+"()"),n=o(r.ngModel+"($$$p)");d=function(t){var n=h(t);return L(n)&&(n=e(t)),n},g=function(t,e){L(h(t))?n(t,{$$$p:v.$modelValue}):p(t,v.$modelValue)}}else if(!h.assign)throw fo("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,vt(i))},this.$render=M,this.$isEmpty=function(t){return R(t)||""===t||null===t||t!=t};var $=0;vo({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:s}),this.$setPristine=function(){v.$dirty=!1,v.$pristine=!0,s.removeClass(i,ao),s.addClass(i,so)},this.$setDirty=function(){v.$dirty=!0,v.$pristine=!1,s.removeClass(i,so),s.addClass(i,ao),v.$$parentForm.$setDirty()},this.$setUntouched=function(){v.$touched=!1,v.$untouched=!0,s.setClass(i,co,uo)},this.$setTouched=function(){v.$touched=!0,v.$untouched=!1,s.setClass(i,uo,co)},this.$rollbackViewValue=function(){a.cancel(m),v.$viewValue=v.$$lastCommittedViewValue,v.$render()},this.$validate=function(){if(!q(v.$modelValue)||!isNaN(v.$modelValue)){var t=v.$$lastCommittedViewValue,e=v.$$rawModelValue,r=v.$valid,i=v.$modelValue,o=v.$options&&v.$options.allowInvalid;v.$$runValidators(e,t,(function(t){o||r===t||(v.$modelValue=t?e:n,v.$modelValue!==i&&v.$$writeModelToScope())}))}},this.$$runValidators=function(t,e,r){var i,o,s,a,c=++$;function l(t,e){c===$&&v.$setValidity(t,e)}function h(t){c===$&&r(t)}a=v.$$parserName||"parse",(R(f)?(l(a,null),1):(f||(w(v.$validators,(function(t,e){l(e,null)})),w(v.$asyncValidators,(function(t,e){l(e,null)}))),l(a,f),f))?(s=!0,w(v.$validators,(function(n,r){var i=n(t,e);s=s&&i,l(r,i)})),!s&&(w(v.$asyncValidators,(function(t,e){l(e,null)})),1)?h(!1):(i=[],o=!0,w(v.$asyncValidators,(function(r,s){var a=r(t,e);if(!Y(a))throw fo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);l(s,n),i.push(a.then((function(){l(s,!0)}),(function(t){o=!1,l(s,!1)})))})),i.length?u.all(i).then((function(){h(o)}),M):h(!0))):h(!1)},this.$commitViewValue=function(){var t=v.$viewValue;a.cancel(m),(v.$$lastCommittedViewValue!==t||""===t&&v.$$hasNativeValidators)&&(v.$$lastCommittedViewValue=t,v.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=v.$$lastCommittedViewValue;if(f=!R(e)||n)for(var r=0;r<v.$parsers.length;r++)if(R(e=v.$parsers[r](e))){f=!1;break}q(v.$modelValue)&&isNaN(v.$modelValue)&&(v.$modelValue=d(t));var i=v.$modelValue,o=v.$options&&v.$options.allowInvalid;function s(){v.$modelValue!==i&&v.$$writeModelToScope()}v.$$rawModelValue=e,o&&(v.$modelValue=e,s()),v.$$runValidators(e,v.$$lastCommittedViewValue,(function(t){o||(v.$modelValue=t?e:n,s())}))},this.$$writeModelToScope=function(){g(t,v.$modelValue),w(v.$viewChangeListeners,(function(t){try{t()}catch(t){e(t)}}))},this.$setViewValue=function(t,e){v.$viewValue=t,v.$options&&!v.$options.updateOnDefault||v.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=v.$options;i&&D(i.debounce)&&(q(n=i.debounce)?r=n:q(n[e])?r=n[e]:q(n.default)&&(r=n.default)),a.cancel(m),r?m=a((function(){v.$commitViewValue()}),r):c.$$phase?v.$commitViewValue():t.$apply((function(){v.$commitViewValue()}))},t.$watch((function(){var e=d(t);if(e!==v.$modelValue&&(v.$modelValue==v.$modelValue||e==e)){v.$modelValue=v.$$rawModelValue=e,f=n;for(var r=v.$formatters,i=r.length,o=e;i--;)o=r[i](o);v.$viewValue!==o&&(v.$viewValue=v.$$lastCommittedViewValue=o,v.$render(),v.$$runValidators(e,o,M))}return e}))}],po=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ho,priority:1,compile:function(e){return e.addClass(so).addClass(co).addClass(oo),{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))}))}}}}}],go=/(\s+|^)default(\s+|$)/,mo=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=rt(t.$eval(e.ngModelOptions)),D(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Z(this.$options.updateOn.replace(go,(function(){return n.$options.updateOnDefault=!0," "})))):this.$options.updateOnDefault=!0}]}};function vo(t){var e=t.ctrl,r=t.$element,i={},o=t.set,s=t.unset,a=t.$animate;function c(t,e){e&&!i[t]?(a.addClass(r,t),i[t]=!0):!e&&i[t]&&(a.removeClass(r,t),i[t]=!1)}function u(t,e){t=t?"-"+Ot(t,"-"):"",c(oo+t,!0===e),c("ng-invalid"+t,!1===e)}i["ng-invalid"]=!(i[oo]=r.hasClass(oo)),e.$setValidity=function(t,r,i){var a;R(r)?function(t,n,r){e[t]||(e[t]={}),o(e[t],n,r)}("$pending",t,i):function(t,r,i){e[t]&&s(e[t],r,i),$o(e[t])&&(e[t]=n)}("$pending",t,i),J(r)?r?(s(e.$error,t,i),o(e.$$success,t,i)):(o(e.$error,t,i),s(e.$$success,t,i)):(s(e.$error,t,i),s(e.$$success,t,i)),e.$pending?(c(lo,!0),e.$valid=e.$invalid=n,u("",null)):(c(lo,!1),e.$valid=$o(e.$error),e.$invalid=!e.$valid,u("",e.$valid)),u(t,a=e.$pending&&e.$pending[t]?n:!e.$error[t]&&(!!e.$$success[t]||null)),e.$$parentForm.$setValidity(t,a,e)}}function $o(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var yo=pi({terminal:!0,priority:1e3}),bo=r("ngOptions"),wo=/^\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]+?))?$/,xo=["$compile","$parse",function(t,n){var r=e.createElement("option"),i=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=M},post:function(e,s,a,c){var l=c[1];if(l){for(var f,h=c[0],p=a.multiple,d=0,g=s.children(),m=g.length;d<m;d++)if(""===g[d].value){f=g.eq(d);break}var v,y=!!f,x=u(r.cloneNode(!1));x.val("?");var C=function(t,e,r){var i=t.match(wo);if(!i)throw bo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,vt(e));var o=i[5]||i[7],s=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],u=n(i[2]?i[1]:o),l=a&&n(a)||u,f=c&&n(c),h=c?function(t,e){return f(r,e)}:function(t){return Oe(t)},p=function(t,e){return h(t,w(t,e))},d=n(i[2]||i[1]),g=n(i[3]||""),m=n(i[4]||""),v=n(i[8]),y={},w=s?function(t,e){return y[s]=e,y[o]=t,y}:function(t){return y[o]=t,y};function x(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function C(t){var e;if(!s&&b(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}return{trackBy:c,getTrackByValue:p,getWatchables:n(v,(function(t){for(var e=[],n=C(t=t||[]),o=n.length,s=0;s<o;s++){var a=t===n?s:n[s],c=(t[a],w(t[a],a)),u=h(t[a],c);if(e.push(u),i[2]||i[1]){var l=d(r,c);e.push(l)}if(i[4]){var f=m(r,c);e.push(f)}}return e})),getOptions:function(){for(var t=[],e={},n=v(r)||[],i=C(n),o=i.length,s=0;s<o;s++){var a=n===i?s:i[s],u=n[a],f=w(u,a),y=l(r,f),b=h(y,f),k=new x(b,y,d(r,f),g(r,f),m(r,f));t.push(k),e[b]=k}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return c?$.copy(t.viewValue):t.viewValue}}}}}(a.ngOptions,s,e),k=function(){y||f.remove()},S=function(){x.remove()};p?(l.$isEmpty=function(t){return!t||0===t.length},h.writeValue=function(t){v.items.forEach((function(t){t.element.selected=!1})),t&&t.forEach((function(t){var e=v.getOptionFromViewValue(t);e&&!e.disabled&&(e.element.selected=!0)}))},h.readValue=function(){var t=s.val()||[],e=[];return w(t,(function(t){var n=v.selectValueMap[t];n&&!n.disabled&&e.push(v.getViewValueFromOption(n))})),e},C.trackBy&&e.$watchCollection((function(){if(U(l.$viewValue))return l.$viewValue.map((function(t){return C.getTrackByValue(t)}))}),(function(){l.$render()}))):(h.writeValue=function(t){var e=v.getOptionFromViewValue(t);e&&!e.disabled?(s[0].value!==e.selectValue&&(S(),k(),s[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||y?(S(),y||s.prepend(f),s.val(""),f.prop("selected",!0),f.attr("selected",!0)):(k(),s.prepend(x),s.val("?"),x.prop("selected",!0),x.attr("selected",!0))},h.readValue=function(){var t=v.selectValueMap[s.val()];return t&&!t.disabled?(k(),S(),v.getViewValueFromOption(t)):null},C.trackBy&&e.$watch((function(){return C.getTrackByValue(l.$viewValue)}),(function(){l.$render()}))),y?(f.remove(),t(f)(e),f.removeClass("ng-scope")):f=u(r.cloneNode(!1)),T(),e.$watchCollection(C.getWatchables,T)}function E(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 A(t,e,n,r){var i;return e&&o(e.nodeName)===n?i=e:(i=r.cloneNode(!1),e?t.insertBefore(i,e):t.appendChild(i)),i}function O(t){for(var e;t;)e=t.nextSibling,ye(t),t=e}function T(){var t=v&&h.readValue();v=C.getOptions();var e={},n=s[0].firstChild;if(y&&s.prepend(f),n=function(t){var e=f&&f[0],n=x&&x[0];if(e||n)for(;t&&(t===e||t===n||8===t.nodeType||"option"===et(t)&&""===t.value);)t=t.nextSibling;return t}(n),v.items.forEach((function(t){var o,a,c;t.group?((o=e[t.group])||(a=A(s[0],n,"optgroup",i),n=a.nextSibling,a.label=t.group,o=e[t.group]={groupElement:a,currentOptionElement:a.firstChild}),E(t,c=A(o.groupElement,o.currentOptionElement,"option",r)),o.currentOptionElement=c.nextSibling):(E(t,c=A(s[0],n,"option",r)),n=c.nextSibling)})),Object.keys(e).forEach((function(t){O(e[t].currentOptionElement)})),O(n),l.$render(),!l.$isEmpty(t)){var o=h.readValue();(C.trackBy||p?ot(t,o):t===o)||(l.$setViewValue(o),l.$render())}}}}}}],Co=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(s,a,c){var u,l=c.count,f=c.$attr.when&&a.attr(c.$attr.when),h=c.offset||0,p=s.$eval(f)||{},d={},g=e.startSymbol(),m=e.endSymbol(),v=g+l+"-"+h+m,y=$.noop;function b(t){a.text(t||"")}w(c,(function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+o(n[2]);p[r]=a.attr(c.$attr[e])}})),w(p,(function(t,n){d[n]=e(t.replace(r,v))})),s.$watch(l,(function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in p||(r=t.pluralCat(r-h)),r!==u&&!(i&&q(u)&&isNaN(u))){y();var o=d[r];R(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+f),y=M,b()):y=s.$watch(o,b),u=r}}))}}}],ko=["$parse","$animate",function(t,i){var o="$$NG_REMOVED",a=r("ngRepeat"),c=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))},u=function(t){return t.clone[0]},l=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,f){var h=f.ngRepeat,p=e.createComment(" end ngRepeat: "+h+" "),d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var g=d[1],m=d[2],v=d[3],$=d[4];if(!(d=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var y,x,C,k,S=d[3]||d[1],E=d[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);var A={$id:Oe};return $?y=t($):(C=function(t,e){return Oe(e)},k=function(t){return t}),function(t,e,r,f,d){y&&(x=function(e,n,r){return E&&(A[E]=e),A[S]=n,A.$index=r,y(t,A)});var g=Dt();t.$watchCollection(m,(function(r){var f,m,$,y,A,O,T,N,M,j,B,P,R=e[0],D=Dt();if(v&&(t[v]=r),b(r))M=r,N=x||C;else for(var _ in N=x||k,M=[],r)s.call(r,_)&&"$"!==_.charAt(0)&&M.push(_);for(y=M.length,B=new Array(y),f=0;f<y;f++)if(A=r===M?f:M[f],O=r[A],T=N(A,O,f),g[T])j=g[T],delete g[T],D[T]=j,B[f]=j;else{if(D[T])throw w(B,(function(t){t&&t.scope&&(g[t.id]=t)})),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,T,O);B[f]={id:T,scope:n,clone:n},D[T]=!0}for(var F in g){if(P=Rt((j=g[F]).clone),i.leave(P),P[0].parentNode)for(f=0,m=P.length;f<m;f++)P[f][o]=!0;j.scope.$destroy()}for(f=0;f<y;f++)if(A=r===M?f:M[f],O=r[A],(j=B[f]).scope){$=R;do{$=$.nextSibling}while($&&$[o]);u(j)!=$&&i.move(Rt(j.clone),null,R),R=l(j),c(j.scope,f,S,O,E,A,y)}else d((function(t,e){j.scope=e;var n=p.cloneNode(!1);t[t.length++]=n,i.enter(t,null,R),R=n,j.clone=t,D[j.id]=j,c(j.scope,f,S,O,E,A,y)}));g=D}))}}}}],So="ng-hide",Eo="ng-hide-animate",Ao=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,(function(e){t[e?"removeClass":"addClass"](n,So,{tempClasses:Eo})}))}}}],Oo=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,(function(e){t[e?"addClass":"removeClass"](n,So,{tempClasses:Eo})}))}}}],To=pi((function(t,e,n){t.$watch(n.ngStyle,(function(t,n){n&&t!==n&&w(n,(function(t,n){e.css(n,"")})),t&&e.css(t)}),!0)})),No=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var s=i.ngSwitch||i.on,a=[],c=[],u=[],l=[],f=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,(function(n){var r,i;for(r=0,i=u.length;r<i;++r)t.cancel(u[r]);for(u.length=0,r=0,i=l.length;r<i;++r){var s=Rt(c[r].clone);l[r].$destroy(),(u[r]=t.leave(s)).then(f(u,r))}c.length=0,l.length=0,(a=o.cases["!"+n]||o.cases["?"])&&w(a,(function(n){n.transclude((function(r,i){l.push(i);var o=n.element;r[r.length++]=e.createComment(" end ngSwitchWhen: ");var s={clone:r};c.push(s),t.enter(r,o.parent(),o)}))}))}))}}}],Mo=pi({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})}}),jo=pi({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})}}),Bo=pi({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}",vt(e));o((function(t){e.empty(),e.append(t)}))}}),Po=["$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)}}}}],Ro={$setViewValue:M,$render:M},Do=["$element","$scope","$attrs",function(t,r,i){var o=this,s=new Te;o.ngModelCtrl=Ro,o.unknownOption=u(e.createElement("option")),o.renderUnknownOption=function(e){var n="? "+Oe(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(8!==e[0].nodeType){Bt(t,'"option value"'),""===t&&(o.emptyOption=e);var n,r=s.get(t)||0;s.put(t,r+1),o.ngModelCtrl.$render(),(n=e)[0].hasAttribute("selected")&&(n[0].selected=!0)}},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){var s;r?n.$observe("value",(function(t){D(s)&&o.removeOption(s),s=t,o.addOption(t,e)})):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()}))}}],_o=function(){return{restrict:"E",require:["select","?ngModel"],controller:Do,priority:1,link:{pre:function(t,e,n,r){var i=r[1];if(i){var o=r[0];if(o.ngModelCtrl=i,e.on("change",(function(){t.$apply((function(){i.$setViewValue(o.readValue())}))})),n.multiple){o.readValue=function(){var t=[];return w(e.find("option"),(function(e){e.selected&&t.push(e.value)})),t},o.writeValue=function(t){var n=new Te(t);w(e.find("option"),(function(t){t.selected=D(n.get(t.value))}))};var s,a=NaN;t.$watch((function(){a!==i.$viewValue||ot(s,i.$viewValue)||(s=it(i.$viewValue),i.$render()),a=i.$viewValue})),i.$isEmpty=function(t){return!t||0===t.length}}}},post:function(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},Fo=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(D(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)}}}}],Io=B({restrict:"E",terminal:!1}),qo=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()})))}}},Vo=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(I(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,vt(e));s=t||n,o.$validate()})),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||R(s)||s.test(e)}}}}},Uo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",(function(t){var e=T(t);i=isNaN(e)?-1:e,r.$validate()})),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Lo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",(function(t){i=T(t)||0,r.$validate()})),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load angular more than once."):(function(){var e;if(!Nt){var r=at();(l=R(r)?t.jQuery:r?t[r]:n)&&l.fn.on?(u=l,A(l.fn,{scope:be.scope,isolateScope:be.isolateScope,controller:be.controller,injector:be.injector,inheritedData:be.inheritedData}),e=l.cleanData,l.cleanData=function(t){var n;if(Tt)Tt=!1;else for(var r,i=0;null!=(r=t[i]);i++)(n=l._data(r,"events"))&&n.$destroy&&l(r).triggerHandler("$destroy");e(t)}):u=oe,$.element=u,Nt=!0}}(),function(e){A(e,{bootstrap:kt,copy:rt,extend:A,merge:O,equals:ot,element:u,forEach:w,injector:De,noop:M,bind:lt,toJson:ht,fromJson:pt,identity:j,isUndefined:R,isDefined:D,isString:I,isFunction:L,isObject:_,isNumber:q,isElement:tt,isArray:U,version:It,isDate:V,lowercase:o,uppercase:a,callbacks:{counter:0},getTestability:Et,$$minErr:r,$$csp:st,reloadWithDebugInfo:St}),(f=function(t){var e=r("$injector"),n=r("ng");function i(t,e,n){return t[e]||(t[e]=n())}var o=i(t,"angular",Object);return o.$$minErr=o.$$minErr||r,i(o,"module",(function(){var t={};return function(r,o,s){return function(t,e){if("hasOwnProperty"===t)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(r),o&&t.hasOwnProperty(r)&&(t[r]=null),i(t,r,(function(){if(!o)throw e("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 t=[],n=[],i=[],a=u("$injector","invoke","push",n),c={_invokeQueue:t,_configBlocks:n,_runBlocks:i,requires:o,name:r,provider:l("$provide","provider"),factory:l("$provide","factory"),service:l("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),decorator:l("$provide","decorator"),animation:l("$animateProvider","register"),filter:l("$filterProvider","register"),controller:l("$controllerProvider","register"),directive:l("$compileProvider","directive"),config:a,run:function(t){return i.push(t),this}};return s&&a(s),c;function u(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),c}}function l(e,n){return function(i,o){return o&&L(o)&&(o.$$moduleName=r),t.push([e,n,arguments]),c}}}))}}))}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Or}),t.provider("$compile",Qe).directive({a:di,input:Ii,textarea:Ii,form:bi,script:Po,select:_o,style:Io,option:Fo,ngBind:Ui,ngBindHtml:Hi,ngBindTemplate:Li,ngClass:Xi,ngClassEven:Yi,ngClassOdd:Ji,ngCloak:Gi,ngController:Ki,ngForm:wi,ngHide:Oo,ngIf:to,ngInclude:eo,ngInit:ro,ngNonBindable:yo,ngPluralize:Co,ngRepeat:ko,ngShow:Ao,ngStyle:To,ngSwitch:No,ngSwitchWhen:Mo,ngSwitchDefault:jo,ngOptions:xo,ngTransclude:Bo,ngModel:po,ngList:io,ngChange:zi,pattern:Vo,ngPattern:Vo,required:qo,ngRequired:qo,minlength:Lo,ngMinlength:Lo,maxlength:Uo,ngMaxlength:Uo,ngValue:Vi,ngModelOptions:mo}).directive({ngInclude:no}).directive(gi).directive(Zi),t.provider({$anchorScroll:_e,$animate:He,$animateCss:Xe,$$animateJs:Ue,$$animateQueue:Le,$$AnimateRunner:We,$$animateAsyncRun:ze,$browser:Ye,$cacheFactory:Ge,$controller:an,$document:cn,$exceptionHandler:un,$filter:zr,$$forceReflow:ln,$interpolate:Tn,$interval:Nn,$http:Sn,$httpParamSerializer:$n,$httpParamSerializerJQLike:yn,$httpBackend:An,$xhrFactory:En,$location:Wn,$log:Xn,$parse:xr,$rootScope:Ar,$q:Cr,$$q:kr,$sce:Br,$sceDelegate:jr,$sniffer:Pr,$templateCache:Ke,$templateRequest:Rr,$$testability:Dr,$timeout:_r,$window:Ur,$$rAF:Er,$$jqLite:Ae,$$HashMap:Ne,$$cookieReader:Hr})}])}($),$.module("ngLocale",[],["$provide",function(t){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 r=0|t,i=function(t,e){var r=e;n===r&&(r=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var i=Math.pow(10,r);return{v:r,f:(t*i|0)%i}}(t,e);return 1==r&&0==i.v?"one":"other"}})}]),u(e).ready((function(){!function(t,e){var n,r,i={};w(Ct,(function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))})),w(Ct,(function(e){var i,o=e+"app";!n&&(i=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))})),n&&(i.strictDi=null!==function(t,e){var n,r,i=Ct.length;for(r=0;r<i;++r)if(n=Ct[r]+"strict-di",I(n=t.getAttribute(n)))return n;return null}(n),e(n,r?[r]:[],i))}(e,kt)})))}(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>')},4027:(t,e,n)=>{n(7808),t.exports=angular},696:t=>{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}},7911:t=>{function e(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=e,e.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)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},8328:(t,e)=>{!function(t){"use strict";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(e){var n,r,i,o,s,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(n=0;n<c;n+=4)r=t.indexOf(e[n]),i=t.indexOf(e[n+1]),o=t.indexOf(e[n+2]),s=t.indexOf(e[n+3]),f[u++]=r<<2|i>>4,f[u++]=(15&i)<<4|o>>2,f[u++]=(3&o)<<6|63&s;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},3055:t=>{var e=void 0!==e?e:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),i=e&&e.prototype.append&&e.prototype.getBlob;function o(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function s(t,n){n=n||{};var r=new e;return o(t).forEach((function(t){r.append(t)})),n.type?r.getBlob(n.type):r.getBlob()}function a(t,e){return new Blob(o(t),e||{})}"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,a.prototype=Blob.prototype),t.exports=n?r?Blob:a:i?s:void 0},2150:t=>{var e=[].slice;t.exports=function(t,n){if("string"==typeof n&&(n=t[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=e.call(arguments,2);return function(){return n.apply(t,r.concat(e.call(arguments)))}}},7582:t=>{function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},9238:t=>{t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},5130:(t,e,n)=>{function r(){var t;try{t=e.storage.debug}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=n(4161)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(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)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=r,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("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+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},4161:(t,e,n)=>{function r(t){var n;function r(){if(r.enabled){var t=r,i=+new Date,o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=e.formatters[r];if("function"==typeof i){var o=s[c];n=i.call(t,o),s.splice(c,1),c--}return n})),e.formatArgs.call(t,s);var u=r.log||e.log||console.log.bind(console);u.apply(t,s)}}return r.namespace=t,r.enabled=e.enabled(t),r.useColors=e.useColors(),r.color=function(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]}(t),r.destroy=i,"function"==typeof e.init&&e.init(r),e.instances.push(r),r}function i(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=r.debug=r.default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var n;e.save(t),e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var o=e.instances[n];o.enabled=e.enabled(o.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;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},e.humanize=n(1378),e.instances=[],e.names=[],e.skips=[],e.formatters={}},1438:t=>{t.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},4065:(t,e,n)=>{t.exports=n(4980),t.exports.parser=n(820)},4980:(t,e,n)=>{var r=n(8113),i=n(7582),o=n(5130)("engine.io-client:socket"),s=n(2543),a=n(820),c=n(4243),u=n(4355);function l(t,e){if(!(this instanceof l))return new l(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=c(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=c(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=l,l.priorWebsocketSuccess=!1,i(l.prototype),l.protocol=a.protocol,l.Socket=l,l.Transport=n(5344),l.transports=n(8113),l.parser=n(820),l.prototype.createTransport=function(t){o('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new r[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,withCredentials:n.withCredentials||this.withCredentials,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,isReactNative:this.isReactNative})},l.prototype.open=function(){var t;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))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)},l.prototype.setTransport=function(t){o("setting transport %s",t.name);var e=this;this.transport&&(o("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")}))},l.prototype.probe=function(t){o('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,r=this;function i(){if(r.onlyBinaryUpgrades){var i=!this.supportsBinary&&r.transport.supportsBinary;n=n||i}n||(o('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",e),!e)return;l.priorWebsocketSuccess="websocket"===e.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),h(),r.setTransport(e),e.send([{type:"upgrade"}]),r.emit("upgrade",e),e=null,r.upgrading=!1,r.flush())}))}else{o('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,r.emit("upgradeError",s)}})))}function s(){n||(n=!0,h(),e.close(),e=null)}function a(n){var i=new Error("probe error: "+n);i.transport=e.name,s(),o('probe transport "%s" failed because of error: %s',t,n),r.emit("upgradeError",i)}function c(){a("transport closed")}function u(){a("socket closed")}function f(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),s())}function h(){e.removeListener("open",i),e.removeListener("error",a),e.removeListener("close",c),r.removeListener("close",u),r.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,e.once("open",i),e.once("error",a),e.once("close",c),this.once("close",u),this.once("upgrading",f),e.open()},l.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},l.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('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 o('packet received with socket readyState "%s"',this.readyState)},l.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))},l.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)},l.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)}),t.pingInterval)},l.prototype.ping=function(){var t=this;this.sendPacket("ping",(function(){t.emit("ping")}))},l.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},l.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},l.prototype.write=l.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},l.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||{}).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()}},l.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():e()})):this.upgrading?r():e()}function e(){t.onClose("forced close"),o("socket closing - telling transport to close"),t.transport.close()}function n(){t.removeListener("upgrade",n),t.removeListener("upgradeError",n),e()}function r(){t.once("upgrade",n),t.once("upgradeError",n)}return this},l.prototype.onError=function(t){o("socket error %j",t),l.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},l.prototype.onClose=function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',t),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),this.writeBuffer=[],this.prevBufferLen=0)},l.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~s(this.transports,t[n])&&e.push(t[n]);return e}},5344:(t,e,n)=>{var r=n(820),i=n(7582);function o(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.withCredentials=t.withCredentials,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.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=o,i(o.prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=r.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},8113:(t,e,n)=>{var r=n(6891),i=n(1962),o=n(8320),s=n(8479);e.polling=function(t){var e=!1,n=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),e=t.hostname!==location.hostname||c!==t.port,n=t.secure!==a}if(t.xdomain=e,t.xscheme=n,"open"in new r(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new o(t)},e.websocket=s},8320:(t,e,n)=>{var r=n(5869),i=n(9238),o=n(1438);t.exports=l;var s,a=/\n/g,c=/\\n/g;function u(){}function l(t){r.call(this,t),this.query=this.query||{},s||(s=o.___eio=o.___eio||[]),this.index=s.length;var e=this;s.push((function(t){e.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){e.script&&(e.script.onerror=u)}),!1)}i(l,r),l.prototype.supportsBinary=!1,l.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),r.prototype.doClose.call(this)},l.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,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},l.prototype.doWrite=function(t,e){var n=this;if(!this.form){var r,i=document.createElement("form"),o=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=s,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function u(){l(),e()}function l(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(t)}catch(t){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),l(),t=t.replace(c,"\\\n"),this.area.value=t.replace(a,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&u()}:this.iframe.onload=u}},1962:(t,e,n)=>{var r=n(6891),i=n(5869),o=n(7582),s=n(9238),a=n(5130)("engine.io-client:polling-xhr"),c=n(1438);function u(){}function l(t){if(i.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function f(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.withCredentials=t.withCredentials,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 h(){for(var t in f.requests)f.requests.hasOwnProperty(t)&&f.requests[t].abort()}t.exports=l,t.exports.Request=f,s(l,i),l.prototype.supportsBinary=!0,l.prototype.request=function(t){return(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.withCredentials=this.withCredentials,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 f(t)},l.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},l.prototype.doPoll=function(){a("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},o(f.prototype),f.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 e=this.xhr=new r(t),n=this;try{a("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&e.setRequestHeader(i,this.extraHeaders[i])}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof e.status?e.status:0)}),0))},a("xhr data %s",this.data),e.send(this.data)}catch(t){return void setTimeout((function(){n.onError(t)}),0)}"undefined"!=typeof document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},f.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},f.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t=("application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},f.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},f.prototype.abort=function(){this.cleanup()},f.requestsCount=0,f.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",h):"function"==typeof addEventListener&&addEventListener("onpagehide"in c?"pagehide":"unload",h,!1))},5869:(t,e,n)=>{var r=n(5344),i=n(4355),o=n(820),s=n(9238),a=n(4973),c=n(5130)("engine.io-client:polling");t.exports=l;var u=null!=new(n(6891))({xdomain:!1}).responseType;function l(t){var e=t&&t.forceBase64;u&&!e||(this.supportsBinary=!1),r.call(this,t)}s(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(t){var e=this;function n(){c("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--r||n()}))),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){c("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(t){var e=this;c("polling got data %s",t),o.decodePayload(t,this.socket.binaryType,(function(t,n,r){if("opening"===e.readyState&&"open"===t.type&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var t=this;function e(){c("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),e()):(c("transport not open - deferring close"),this.once("open",e))},l.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};o.encodePayload(t,this.supportsBinary,(function(t){e.doWrite(t,n)}))},l.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=a()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},8479:(t,e,n)=>{var r,i,o=n(5344),s=n(820),a=n(4355),c=n(9238),u=n(4973),l=n(5130)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(418)}catch(t){}var f=r||i;function h(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=r&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(f=i),o.call(this,t)}t.exports=h,c(h,o),h.prototype.name="websocket",h.prototype.supportsBinary=!0,h.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.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&&!this.isReactNative?e?new f(t,e):new f(t):new f(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()}},h.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)}},h.prototype.write=function(t){var e=this;this.writable=!1;for(var n=t.length,r=0,i=n;r<i;r++)!function(t){s.encodePacket(t,e.supportsBinary,(function(r){if(!e.usingBrowserWebSocket){var i={};t.options&&(i.compress=t.options.compress),e.perMessageDeflate&&("string"==typeof r?Buffer.byteLength(r):r.length)<e.perMessageDeflate.threshold&&(i.compress=!1)}try{e.usingBrowserWebSocket?e.ws.send(r):e.ws.send(r,i)}catch(t){l("websocket closed before onclose event")}--n||(e.emit("flush"),setTimeout((function(){e.writable=!0,e.emit("drain")}),0))}))}(t[r])},h.prototype.onClose=function(){o.prototype.onClose.call(this)},h.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},h.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return 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)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},h.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===h.prototype.name)}},6891:(t,e,n)=>{var r=n(9166),i=n(1438);t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(t){}if(!e)try{return new(i[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},820:(t,e,n)=>{var r,i=n(2298),o=n(4632),s=n(696),a=n(540),c=n(8544);"undefined"!=typeof ArrayBuffer&&(r=n(8328));var u="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),l="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),f=u||l;e.protocol=3;var h=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=i(h),d={type:"error",data:"parser error"},g=n(3055);function m(t,e,n){for(var r=new Array(t.length),i=a(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)}e.encodePacket=function(t,n,r,i){"function"==typeof n&&(i=n,n=!1),"function"==typeof r&&(i=r,r=null);var o=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(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]=h[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return r(s.buffer)}(t,n,i);if(void 0!==g&&o instanceof g)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(f)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){e.encodePacket({type:t.type,data:i.result},n,!0,r)},i.readAsArrayBuffer(t.data)}(t,n,r);var i=new Uint8Array(1);return i[0]=h[t.type],r(new g([i.buffer,t.data]))}(t,n,i);if(o&&o.base64)return function(t,n){return n("b"+e.packets[t.type]+t.data.data)}(t,i);var s=h[t.type];return void 0!==t.data&&(s+=r?c.encode(String(t.data),{strict:!1}):String(t.data)),i(""+s)},e.encodeBase64Packet=function(t,n){var r,i="b"+e.packets[t.type];if(void 0!==g&&t.data instanceof g){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(i+t)},o.readAsDataURL(t.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(e){for(var s=new Uint8Array(t.data),a=new Array(s.length),c=0;c<s.length;c++)a[c]=s[c];r=String.fromCharCode.apply(null,a)}return i+=btoa(r),n(i)},e.decodePacket=function(t,n,r){if(void 0===t)return d;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&!1===(t=function(t){try{t=c.decode(t,{strict:!1})}catch(t){return!1}return t}(t)))return d;var i=t.charAt(0);return Number(i)==i&&p[i]?t.length>1?{type:p[i],data:t.substring(1)}:{type:p[i]}:d}i=new Uint8Array(t)[0];var o=s(t,1);return g&&"blob"===n&&(o=new g([o])),{type:p[i],data:o}},e.decodeBase64Packet=function(t,e){var n=p[t.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:t.substr(1)}};var i=r.decode(t.substr(1));return"blob"===e&&g&&(i=new g([i])),{type:n,data:i}},e.encodePayload=function(t,n,r){"function"==typeof n&&(r=n,n=null);var i=o(t);return n&&i?g&&!f?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void m(t,(function(t,r){e.encodePacket(t,!!i&&n,!1,(function(t){r(null,function(t){return t.length+":"+t}(t))}))}),(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);var i;if("function"==typeof n&&(r=n,n=null),""===t)return r(d,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(d,0,1);if(a!=(s=t.substr(c+1,o)).length)return r(d,0,1);if(s.length){if(i=e.decodePacket(s,n,!1),d.type===i.type&&d.data===i.data)return r(d,0,1);if(!1===r(i,c+o,u))return}c+=o,a=""}else a+=l}return""!==a?r(d,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){if(!t.length)return n(new ArrayBuffer(0));m(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){return n(null,t)}))}),(function(t,e){var r=e.reduce((function(t,e){var n;return t+(n="string"==typeof e?e.length:e.byteLength).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}i[o++]=e?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)i[o++]=parseInt(a[s]);for(i[o++]=255,r=new Uint8Array(n),s=0;s<r.length;s++)i[o++]=r[s]})),n(i.buffer)}))},e.encodePayloadAsBlob=function(t,n){m(t,(function(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}var o=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),s=new Uint8Array(o.length+1);for(i=0;i<o.length;i++)s[i]=parseInt(o[i]);if(s[o.length]=255,g){var a=new g([e.buffer,s.buffer,t]);n(null,a)}}))}),(function(t,e){return n(new g(e))}))},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[];i.byteLength>0;){for(var a=new Uint8Array(i),c=0===a[0],u="",l=1;255!==a[l];l++){if(u.length>310)return r(d,0,1);u+=a[l]}i=s(i,2+u.length),u=parseInt(u);var f=s(i,0,u);if(c)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(t){var h=new Uint8Array(f);for(f="",l=0;l<h.length;l++)f+=String.fromCharCode(h[l])}o.push(f),i=s(i,u)}var p=o.length;o.forEach((function(t,i){r(e.decodePacket(t,n,!0),i,p)}))}},2298:t=>{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}},8544:t=>{var e,n,r,i=String.fromCharCode;function o(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function s(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 a(t,e){return i(t>>e&63|128)}function c(t,e){if(0==(4294967168&t))return i(t);var n="";return 0==(4294965248&t)?n=i(t>>6&31|192):0==(4294901760&t)?(s(t,e)||(t=65533),n=i(t>>12&15|224),n+=a(t,6)):0==(4292870144&t)&&(n=i(t>>18&7|240),n+=a(t,12),n+=a(t,6)),n+i(63&t|128)}function u(){if(r>=n)throw Error("Invalid byte index");var t=255&e[r];if(r++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function l(t){var i,o;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(i=255&e[r],r++,0==(128&i))return i;if(192==(224&i)){if((o=(31&i)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&i)){if((o=(15&i)<<12|u()<<6|u())>=2048)return s(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&i)&&(o=(7&i)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,r=o(t),i=r.length,s=-1,a="";++s<i;)a+=c(r[s],n);return a},decode:function(t,s){var a=!1!==(s=s||{}).strict;e=o(t),n=e.length,r=0;for(var c,u=[];!1!==(c=l(a));)u.push(c);return function(t){for(var e,n=t.length,r=-1,o="";++r<n;)(e=t[r])>65535&&(o+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=i(e);return o}(u)}}},4632:(t,e,n)=>{var r=n(7906),i=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.exports=function t(e){if(!e||"object"!=typeof e)return!1;if(r(e)){for(var n=0,i=e.length;n<i;n++)if(t(e[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(e)||"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||o&&e instanceof Blob||s&&e instanceof File)return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return!0;return!1}},9166:t=>{try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},2543:t=>{var e=[].indexOf;t.exports=function(t,n){if(e)return t.indexOf(n);for(var r=0;r<t.length;++r)if(t[r]===n)return r;return-1}},7906:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},1378:t=>{var e=1e3,n=60*e,r=60*n,i=24*r;function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,s){s=s||{};var a,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===c&&!1===isNaN(t))return s.long?o(a=t,i,"day")||o(a,r,"hour")||o(a,n,"minute")||o(a,e,"second")||a+" ms":function(t){return t>=i?Math.round(t/i)+"d":t>=r?Math.round(t/r)+"h":t>=n?Math.round(t/n)+"m":t>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},7655:function(t,e){var n,r,i;!function(o,s){"use strict";"object"==typeof t.exports?t.exports=s():(r=[],void 0===(i="function"==typeof(n=s)?n.apply(e,r):n)||(t.exports=i))}(0,(function(){"use strict";var t=Object.prototype.toString;function e(t,e){return null!=t&&Object.prototype.hasOwnProperty.call(t,e)}function n(t){if(!t)return!0;if(i(t)&&0===t.length)return!0;if("string"!=typeof t){for(var n in t)if(e(t,n))return!1;return!0}return!1}function r(e){return t.call(e)}var i=Array.isArray||function(e){return"[object Array]"===t.call(e)};function o(t){var e=parseInt(t);return e.toString()===t?e:t}function s(t){var s,a=function(t){return Object.keys(a).reduce((function(e,n){return"create"===n||"function"==typeof a[n]&&(e[n]=a[n].bind(a,t)),e}),{})};function c(t,e){if(s(t,e))return t[e]}function u(e,n,r,i){if("number"==typeof n&&(n=[n]),!n||0===n.length)return e;if("string"==typeof n)return u(e,n.split(".").map(o),r,i);var s=n[0],a=c(e,s);if(t.includeInheritedProps&&("__proto__"===s||"constructor"===s&&"function"==typeof a))throw new Error("For security reasons, object's magic properties cannot be set");return 1===n.length?(void 0!==a&&i||(e[s]=r),a):(void 0===a&&("number"==typeof n[1]?e[s]=[]:e[s]={}),u(e[s],n.slice(1),r,i))}return s=(t=t||{}).includeInheritedProps?function(){return!0}:function(t,n){return"number"==typeof n&&Array.isArray(t)||e(t,n)},a.has=function(n,r){if("number"==typeof r?r=[r]:"string"==typeof r&&(r=r.split(".")),!r||0===r.length)return!!n;for(var s=0;s<r.length;s++){var a=o(r[s]);if(!("number"==typeof a&&i(n)&&a<n.length||(t.includeInheritedProps?a in Object(n):e(n,a))))return!1;n=n[a]}return!0},a.ensureExists=function(t,e,n){return u(t,e,n,!0)},a.set=function(t,e,n,r){return u(t,e,n,r)},a.insert=function(t,e,n,r){var o=a.get(t,e);r=~~r,i(o)||(o=[],a.set(t,e,o)),o.splice(r,0,n)},a.empty=function(t,e){var o,c;if(!n(e)&&null!=t&&(o=a.get(t,e))){if("string"==typeof o)return a.set(t,e,"");if(function(t){return"boolean"==typeof t||"[object Boolean]"===r(t)}(o))return a.set(t,e,!1);if("number"==typeof o)return a.set(t,e,0);if(i(o))o.length=0;else{if(!function(t){return"object"==typeof t&&"[object Object]"===r(t)}(o))return a.set(t,e,null);for(c in o)s(o,c)&&delete o[c]}}},a.push=function(t,e){var n=a.get(t,e);i(n)||(n=[],a.set(t,e,n)),n.push.apply(n,Array.prototype.slice.call(arguments,2))},a.coalesce=function(t,e,n){for(var r,i=0,o=e.length;i<o;i++)if(void 0!==(r=a.get(t,e[i])))return r;return n},a.get=function(t,e,n){if("number"==typeof e&&(e=[e]),!e||0===e.length)return t;if(null==t)return n;if("string"==typeof e)return a.get(t,e.split("."),n);var r=o(e[0]),i=c(t,r);return void 0===i?n:1===e.length?i:a.get(t[r],e.slice(1),n)},a.del=function(t,e){if("number"==typeof e&&(e=[e]),null==t)return t;if(n(e))return t;if("string"==typeof e)return a.del(t,e.split("."));var r=o(e[0]);return s(t,r)?1!==e.length?a.del(t[r],e.slice(1)):(i(t)?t.splice(r,1):delete t[r],t):t},a}var a=s();return a.create=s,a.withInheritedProps=s({includeInheritedProps:!0}),a}))},4355:(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}},4243:t=>{var e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var r,i,o=t,s=t.indexOf("["),a=t.indexOf("]");-1!=s&&-1!=a&&(t=t.substring(0,s)+t.substring(s,a).replace(/:/g,";")+t.substring(a,t.length));for(var c,u,l=e.exec(t||""),f={},h=14;h--;)f[n[h]]=l[h]||"";return-1!=s&&-1!=a&&(f.source=o,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=(r=f.path,i=r.replace(/\/{2,9}/g,"/").split("/"),"/"!=r.substr(0,1)&&0!==r.length||i.splice(0,1),"/"==r.substr(r.length-1,1)&&i.splice(i.length-1,1),i),f.queryKey=(c=f.query,u={},c.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,n){e&&(u[e]=n)})),u),f}},7768:(t,e,n)=>{var r=n(8749),i=n(7170),o=n(9431),s=n(5130)("socket.io-client");t.exports=e=c;var a=e.managers={};function c(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i=r(t),c=i.source,u=i.id,l=i.path,f=a[u]&&l in a[u].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||f?(s("ignoring socket cache for %s",c),n=o(c,e)):(a[u]||(s("new io instance for %s",c),a[u]=o(c,e)),n=a[u]),i.query&&!e.query&&(e.query=i.query),n.socket(i.path,e)}e.protocol=i.protocol,e.connect=c,e.Manager=n(9431),e.Socket=n(2243)},9431:(t,e,n)=>{var r=n(4065),i=n(2243),o=n(7582),s=n(7170),a=n(3073),c=n(2150),u=n(5130)("socket.io-client:manager"),l=n(2543),f=n(7911),h=Object.prototype.hasOwnProperty;function p(t,e){if(!(this instanceof p))return new p(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({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||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}t.exports=p,p.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},p.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},p.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},o(p.prototype),p.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},p.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},p.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(t,e){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",(function(){i.onopen(),t&&t()})),s=a(n,"error",(function(e){if(u("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else i.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;u("connect attempt will timeout after %d",c),0===c&&o.destroy();var l=setTimeout((function(){u("connect attempt timed out after %d",c),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(o),this.subs.push(s),this},p.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(t,"ping",c(this,"onping"))),this.subs.push(a(t,"pong",c(this,"onpong"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(t){this.decoder.add(t)},p.prototype.ondecoded=function(t){this.emit("packet",t)},p.prototype.onerror=function(t){u("error",t),this.emitAll("error",t)},p.prototype.socket=function(t,e){var n=this.nsps[t];if(!n){n=new i(this,t,e),this.nsps[t]=n;var r=this;n.on("connecting",o),n.on("connect",(function(){n.id=r.generateId(t)})),this.autoConnect&&o()}function o(){~l(r.connecting,n)||r.connecting.push(n)}return n},p.prototype.destroy=function(t){var e=l(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},p.prototype.packet=function(t){u("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()})))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},p.prototype.cleanup=function(){u("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(t){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();u("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(u("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(u("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(u("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},3073:t=>{t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},2243:(t,e,n)=>{var r=n(7170),i=n(7582),o=n(1396),s=n(3073),a=n(2150),c=n(5130)("socket.io-client:socket"),u=n(4355),l=n(4632);t.exports=p;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=i.prototype.emit;function p(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,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}i(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",a(this,"onopen")),s(t,"packet",a(this,"onpacket")),s(t,"close",a(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},p.prototype.send=function(){var t=o(arguments);return t.unshift("message"),this.emit.apply(this,t),this},p.prototype.emit=function(t){if(f.hasOwnProperty(t))return h.apply(this,arguments),this;var e=o(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:l(e))?r.BINARY_EVENT:r.EVENT,data:e,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("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),this.flags={},this},p.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},p.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?u.encode(this.query):this.query;c("sending connect packet with query %s",t),this.packet({type:r.CONNECT,query:t})}else this.packet({type:r.CONNECT})},p.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},p.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===r.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(t);break;case r.ACK:case r.BINARY_ACK:this.onack(t);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",t.data)}},p.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},p.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);c("sending ack %j",i),e.packet({type:l(i)?r.BINARY_ACK:r.ACK,id:t,data:i})}}},p.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.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=[]},p.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.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)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(t){return this.flags.compress=t,this},p.prototype.binary=function(t){return this.flags.binary=t,this}},8749:(t,e,n)=>{var r=n(4243),i=n(5130)("socket.io-client:url");t.exports=function(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),n=r(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(e&&e.port===n.port?"":":"+n.port),n}},4146:(t,e,n)=>{var r=n(7906),i=n(4787),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function c(t,e){if(!t)return t;if(i(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(r(t)){for(var o=new Array(t.length),s=0;s<t.length;s++)o[s]=c(t[s],e);return o}if("object"==typeof t&&!(t instanceof Date)){for(var a in o={},t)o[a]=c(t[a],e);return o}return t}function u(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(r(t))for(var n=0;n<t.length;n++)t[n]=u(t[n],e);else if("object"==typeof t)for(var i in t)t[i]=u(t[i],e);return t}e.deconstructPacket=function(t){var e=[],n=t.data,r=t;return r.data=c(n,e),r.attachments=e.length,{packet:r,buffers:e}},e.reconstructPacket=function(t,e){return t.data=u(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){var n=0,o=t;!function t(c,u,l){if(!c)return c;if(s&&c instanceof Blob||a&&c instanceof File){n++;var f=new FileReader;f.onload=function(){l?l[u]=this.result:o=this.result,--n||e(o)},f.readAsArrayBuffer(c)}else if(r(c))for(var h=0;h<c.length;h++)t(c[h],h,c);else if("object"==typeof c&&!i(c))for(var p in c)t(c[p],p,c)}(o),n||e(o)}},7170:(t,e,n)=>{var r=n(5130)("socket.io-parser"),i=n(7582),o=n(4146),s=n(7906),a=n(4787);function c(){}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=c,e.Decoder=f;var u=e.ERROR+'"encode error"';function l(t){var n=""+t.type;if(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){var i=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===i)return u;n+=i}return r("encoded %j as %s",t,n),n}function f(){this.reconstructor=null}function h(t){this.reconPack=t,this.buffers=[]}function p(t){return{type:e.ERROR,data:"parser error: "+t}}c.prototype.encode=function(t,n){r("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type?function(t,e){o.removeBlobs(t,(function(t){var n=o.deconstructPacket(t),r=l(n.packet),i=n.buffers;i.unshift(r),e(i)}))}(t,n):n([l(t)])},i(f.prototype),f.prototype.add=function(t){var n;if("string"==typeof t)n=function(t){var n=0,i={type:Number(t.charAt(0))};if(null==e.types[i.type])return p("unknown packet type "+i.type);if(e.BINARY_EVENT===i.type||e.BINARY_ACK===i.type){for(var o=n+1;"-"!==t.charAt(++n)&&n!=t.length;);var a=t.substring(o,n);if(a!=Number(a)||"-"!==t.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(a)}if("/"===t.charAt(n+1)){for(o=n+1;++n&&","!==(u=t.charAt(n))&&n!==t.length;);i.nsp=t.substring(o,n)}else i.nsp="/";var c=t.charAt(n+1);if(""!==c&&Number(c)==c){for(o=n+1;++n;){var u;if(null==(u=t.charAt(n))||Number(u)!=u){--n;break}if(n===t.length)break}i.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){var l=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(n));if(!1===l||i.type!==e.ERROR&&!s(l))return p("invalid payload");i.data=l}return r("decoded %s as %j",t,i),i}(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new h(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!a(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))&&(this.reconstructor=null,this.emit("decoded",n))}},f.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},h.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},h.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},4787:t=>{t.exports=function(t){return e&&Buffer.isBuffer(t)||n&&(t instanceof ArrayBuffer||function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}(t))};var e="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,n="function"==typeof ArrayBuffer},778:function(t,e,n){"use strict";var r,i;void 0===(i="function"==typeof(r=function(){var t,e={},r="undefined"!=typeof window?window:n.g,i=r.document,o="localStorage";if(e.disabled=!1,e.version="1.3.20",e.set=function(t,e){},e.get=function(t,e){},e.has=function(t){return void 0!==e.get(t)},e.remove=function(t){},e.clear=function(){},e.transact=function(t,n,r){null==r&&(r=n,n=null),null==n&&(n={});var i=e.get(t,n);r(i),e.set(t,i)},e.getAll=function(){},e.forEach=function(){},e.serialize=function(t){return JSON.stringify(t)},e.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},function(){try{return o in r&&r.localStorage}catch(t){return!1}}())t=r.localStorage,e.set=function(n,r){return void 0===r?e.remove(n):(t.setItem(n,e.serialize(r)),r)},e.get=function(n,r){var i=e.deserialize(t.getItem(n));return void 0===i?r:i},e.remove=function(e){t.removeItem(e)},e.clear=function(){t.clear()},e.getAll=function(){var t={};return e.forEach((function(e,n){t[e]=n})),t},e.forEach=function(n){for(var r=0;r<t.length;r++){var i=t.key(r);n(i,e.get(i))}};else if(i&&i.documentElement.addBehavior){var s,a;try{(a=new ActiveXObject("htmlfile")).open(),a.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),a.close(),s=a.w.frames[0].document,t=s.createElement("div")}catch(e){t=i.createElement("div"),s=i.body}var c=function(n){return function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(t),s.appendChild(t),t.addBehavior("#default#userData"),t.load(o);var i=n.apply(e,r);return s.removeChild(t),i}},u=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),l=function(t){return t.replace(/^d/,"___$&").replace(u,"___")};e.set=c((function(t,n,r){return n=l(n),void 0===r?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(o),r)})),e.get=c((function(t,n,r){n=l(n);var i=e.deserialize(t.getAttribute(n));return void 0===i?r:i})),e.remove=c((function(t,e){e=l(e),t.removeAttribute(e),t.save(o)})),e.clear=c((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)})),e.getAll=function(t){var n={};return e.forEach((function(t,e){n[t]=e})),n},e.forEach=c((function(t,n){for(var r,i=t.XMLDocument.documentElement.attributes,o=0;r=i[o];++o)n(r.name,e.deserialize(t.getAttribute(r.name)))}))}try{var f="__storejs__";e.set(f,f),e.get(f)!=f&&(e.disabled=!0),e.remove(f)}catch(t){e.disabled=!0}return e.enabled=!e.disabled,e})?r.apply(e,[]):r)||(t.exports=i)},1396:t=>{t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r<t.length;r++)n[r-e]=t[r];return n}},4973:t=>{"use strict";var e,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},i=0,o=0;function s(t){var e="";do{e=n[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function a(){var t=s(+new Date);return t!==e?(i=0,e=t):t+"."+s(i++)}for(;o<64;o++)r[n[o]]=o;a.encode=s,a.decode=function(t){var e=0;for(o=0;o<t.length;o++)e=64*e+r[t.charAt(o)];return e},t.exports=a},8680:t=>{t.exports=window.angular},7122:(t,e,n)=>{var r=n(9662);r.directive("icon",n(6566)),r.directive("linkTo",n(7120)),r.directive("switch",n(5411)),r.directive("newTab",n(7233))},6566:t=>{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}}}},7120:t=>{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)}}]}}},7233:t=>{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>'}}},5411:t=>{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){this.item=t.item}]}}},6709:(t,e,n)=>{var r=n(9662),i=n(4288);r.filter("ucfirst",(function(){return i.ucfirst})).filter("localRootUrl",(function(){return i.localRootUrl})).filter("localUrl",(function(){return i.localRootUrl})).filter("orderObjectBy",(function(){return i.orderObjectBy}))},9051:(t,e,n)=>{n(9662).controller("MainController",["$scope","$rootScope","$location","$injector",function(t,e,n,r){var i=this;i.options=!1,i.browsers=[],i.socketId="";var o=r.get("pagesConfig"),s=r.get("Pages"),a=r.get("Socket"),c=r.get("Clients");i.ui={menu:o,sectionMenu:!1,disconnected:!1},i.setActiveSection=function(t){s.enable(t),n.path(t.path),i.ui.sectionMenu=!1},i.reloadAll=function(){c.reloadAll(),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reload All Browsers ✔"})},i.scrollAllTo=function(){c.scrollAllTo(0),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Scroll all browsers to Y=0 ✔"})},i.sendAllTo=function(t){c.sendAllTo(t),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reset all Browsers to /"})},i.toggleMenu=function(){i.ui.sectionMenu=!i.ui.sectionMenu},i.socketEvents={connection:function(t){i.update(t)},disconnect:function(){i.ui.disconnected=!0}},i.update=function(t){i.options=function(t){return t.displayUrl=!!(e=t.urls)&&(e.external||e.local),t;var e}(t),i.ui.disconnected=!1,s.transform(o.overview,(function(t){return t}))},i.setActiveSection(s.current()),a.options().then(i.socketEvents.connection),e.$on("ui:disconnect",i.socketEvents.disconnect),e.$on("ui:connection",(function(e,n){i.socketEvents.connection(n),t.$digest()}))}])},9662:t=>{t.exports=window.angular.module("BrowserSync")},6987:(t,e,n)=>{n(8680).module("bsClients",["bsSocket"]).service("Clients",["Socket",function(t){return{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)}}}])},1252:(t,e,n)=>{function r(t,e,n){t._disconnected=!1,t.ui={visible:!1,heading:"Browsersync",message:"Disconnected"},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)}n(8680).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]}}))},7488:(t,e,n)=>{n(8680).module("bsHistory",["bsSocket"]).service("History",["Socket",function(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))}}}])},8704:(t,e,n)=>{function r(t,e){var n="info",r="Browsersync:";t.ui={status:n,heading:r,message:"Welcome to Browsersync"},t.show=function(e,i){i=i||{},t._timer&&clearTimeout(t._timer),t._timer=window.setTimeout(t.reset,i.timeout||2e3),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)}n(8680).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]}}))},1891:(t,e,n)=>{var r=n(8680),i=n(7768),o=window.___browserSync___.socketConfig,s=window.___browserSync___.socketUrl,a=i(s,o);r.module("bsSocket",[]).service("Socket",["$q","$rootScope",function(t,e){var n,r=t.defer();a.on("connection",(function(t){n=t.session,e.$emit("ui:connection",t),r.resolve(t,this),""===window.name?window.name=JSON.stringify({id:i.id}):(JSON.parse(window.name).id,i.id)})),a.on("disconnect",(function(){e.$emit("ui:disconnect")}));var o={on:function(t,e){a.on(t,e)},off:function(t,e){a.off(t,e)},removeEvent:function(t,e){a.removeListener(t,e)},emit:function(t,e){a.emit(t,e||{})},clientEvent:function(t,e){a.emit("ui:client:proxy",{event:t,data:e})},options:function(){return r.promise},getData:function(e){var n=t.defer();return a.on("ui:receive:"+e,(function(t){n.resolve(t)})),a.emit("ui:get:"+e),n.promise},uiEvent:function(t){a.emit("ui",t)},newSession:function(){}};return Object.defineProperty(o,"sessionId",{get:function(){return n}}),o}])},5949:(t,e,n)=>{var r=n(8680),i=n(778),o=n(7655);function s(t){var e=i.get("bs",{});Object.keys(e).length||i.set("bs",{}),this.ns=t,this.get=function(e){var n=i.get("bs",{});return Object.keys(n).length||i.set("bs",{}),o.get(n,[t].concat(e).join("."))},this.set=function(e,n){var r=i.get("bs",{});Object.keys(r).length||i.set("bs",{}),r[t]||(r[t]={}),r[t][e]=n,i.set("bs",r)},this.remove=function(e){var n=i.get("bs",{});Object.keys(n).length||i.set("bs",{}),n[t]||(n[t]={}),n[t][e]&&delete n[t][e],i.set("bs",n)}}r.module("bsStore",[]).service("Store",["$q","$rootScope",function(){return{create:function(t){return new s(t)}}}])},7607:(t,e,n)=>{n(9662).factory("Options",["Socket",function(t){return{all:function(){return t.getData("options")}}}])},2323:(t,e,n)=>{n(9662).service("Pages",["pagesConfig","$location",function(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 e(t);throw new TypeError("Noooo")},current:function(){return"/"===e.path()?t.overview:(angular.forEach(t,(function(t){t.path===e.path()&&(n=t)})),n);var n}}}])},4288:t=>{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}}},418:()=>{}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n(4027),n(2339),n(9326),n(5746),window.angular.module("BrowserSync",["bsHistory","bsClients","bsDisconnect","bsNotify","bsSocket","bsStore","ngRoute","ngTouch","ngSanitize"]).config(["$locationProvider",function(t){t.html5Mode({enabled:!0,requireBase:!1})}]),n(1252),n(8704),n(7488),n(6987),n(1891),n(2323),n(7607),n(5949),n(9051),n(6709),n(7122)})();
//# sourceMappingURL=app.js.map