text: !function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=28)}([function(t,e,n){(function(r){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))}),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"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=function(){try{return 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"],t.exports=n(45)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n(16))},function(t,e){t.exports=window.angular},function(t,e,n){var r,i=n(58),o=n(22),s=n(59),a=n(60),u=n(61);"undefined"!=typeof ArrayBuffer&&(r=n(62));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),l="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),f=c||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(63);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);i[0]=h[t.type];var o=new g([i.buffer,t.data]);return r(o)}(t,n,i);if(o&&o.base64)return function(t,n){var r="b"+e.packets[t.type]+t.data.data;return n(r)}(t,i);var s=h[t.type];return void 0!==t.data&&(s+=r?u.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),u=0;u<s.length;u++)a[u]=s[u];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=u.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);if(n&&i)return g&&!f?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r);if(!t.length)return r("0:");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(""))}))},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="",u=0,c=t.length;u<c;u++){var l=t.charAt(u);if(":"===l){if(""===a||a!=(o=Number(a)))return r(d,0,1);if(a!=(s=t.substr(u+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,u+o,c))return}u+=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]);i[o++]=255;for(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),u=0===a[0],c="",l=1;255!==a[l];l++){if(c.length>310)return r(d,0,1);c+=a[l]}i=s(i,2+c.length),c=parseInt(c);var f=s(i,0,c);if(u)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(t){var h=new Uint8Array(f);f="";for(l=0;l<h.length;l++)f+=String.fromCharCode(h[l])}o.push(f),i=s(i,c)}var p=o.length;o.forEach((function(t,i){r(e.decodePacket(t,n,!0),i,p)}))}},function(t,e,n){(function(e){var n=Object.assign?Object.assign:function(t,e,n,r){for(var i=1;i<arguments.length;i++)a(Object(arguments[i]),(function(e,n){t[n]=e}));return t},r=function(){if(Object.create)return function(t,e,r,i){var o=s(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,r,i,o){var a=s(arguments,1);return t.prototype=e,n.apply(this,[new t].concat(a))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function s(t,e){return Array.prototype.slice.call(t,e||0)}function a(t,e){u(t,(function(t,n){return e(t,n),!1}))}function u(t,e){if(c(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function c(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:r,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:s,each:a,map:function(t,e){var n=c(t)?[]:{};return u(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:u,isList:c,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n(18))},function(t,e){t.exports=window.angular.module("BrowserSync")},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){var r=n(47)("socket.io-parser"),i=n(8),o=n(50),s=n(9),a=n(17);function u(){}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=u,e.Decoder=f;var c=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 c;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}}u.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="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(o)}if("/"===t.charAt(n+1))for(i.nsp="";++n;){if(","===(u=t.charAt(n)))break;if(i.nsp+=u,n===t.length)break}else i.nsp="/";var a=t.charAt(n+1);if(""!==a&&Number(a)==a){for(i.id="";++n;){var u;if(null==(u=t.charAt(n))||Number(u)!=u){--n;break}if(i.id+=t.charAt(n),n===t.length)break}i.id=Number(i.id)}if(t.charAt(++n)){var c=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(n));if(!(!1!==c&&(i.type===e.ERROR||s(c))))return p("invalid payload");i.data=c}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=[]}},function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,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 this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";(function(t){
  /*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <http://feross.org>
   * @license  MIT
   */
  var r=n(51),i=n(52),o=n(53);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(e,n),i=(t=a(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|p(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=a(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|p(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return k(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:$(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):$(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function $(t,e,n,r,i){var o,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=n;o<a;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return V(U(e,t.length-n),t,n,r)}function w(t,e,n,r){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return w(t,e,n,r)}function C(t,e,n,r){return V(L(e),t,n,r)}function E(t,e,n,r){return V(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function k(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),c=this.slice(r,i),l=t.slice(e,n),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function T(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=D(t[o]);return i}function _(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function M(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function N(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function j(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,r,o){return o||j(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function I(t,e,n,r,o){return o||j(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return I(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return I(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=u.isBuffer(t)?t:U(new u(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function D(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(18))},function(t,e,n){var r=n(56),i=n(12);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){}}},function(t,e){t.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(t,e,n){var r=n(2),i=n(14);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")}},function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,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},r.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},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");-1!=i&&-1!=o&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},u=14;u--;)a[r[u]]=s[u]||"";return-1!=i&&-1!=o&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=a(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){(function(e){t.exports=function(t){return n&&e.isBuffer(t)||r&&(t instanceof ArrayBuffer||function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}(t))};var n="function"==typeof e&&"function"==typeof e.isBuffer,r="function"==typeof ArrayBuffer}).call(this,n(10).Buffer)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(54),i=n(25),o=n(8),s=n(7),a=n(26),u=n(27),c=n(0)("socket.io-client:manager"),l=n(24),f=n(68),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(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("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(c("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 u=this._timeout;c("connect attempt will timeout after %d",u);var l=setTimeout((function(){c("connect attempt timed out after %d",u),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",u)}),u);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(o),this.subs.push(s),this},p.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",u(this,"ondata"))),this.subs.push(a(t,"ping",u(this,"onping"))),this.subs.push(a(t,"pong",u(this,"onpong"))),this.subs.push(a(t,"error",u(this,"onerror"))),this.subs.push(a(t,"close",u(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",u(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){c("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){c("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(){c("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(){c("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){c("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)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();c("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(c("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(c("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(c("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)}},function(t,e,n){var r=n(11),i=n(57),o=n(64),s=n(65);e.polling=function(t){var e=!1,n=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,u=location.port;u||(u=a?443:80),e=t.hostname!==location.hostname||u!==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},function(t,e,n){var r=n(13),i=n(5),o=n(2),s=n(6),a=n(23),u=n(0)("engine.io-client:polling");t.exports=l;var c=null!=new(n(11))({xdomain:!1}).responseType;function l(t){var e=t&&t.forceBase64;c&&!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(){u("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){u("pre-pause polling complete"),--r||n()}))),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){u("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(t){var e=this;u("polling got data %s",t);o.decodePayload(t,this.socket.binaryType,(function(t,n,r){if("opening"===e.readyState&&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():u('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var t=this;function e(){u("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(u("transport open - closing"),e()):(u("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}},function(t,e,n){(function(e){var r=n(9),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(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var i=0,a=n.length;i<a;i++)if(t(n[i]))return!0;return!1}if("function"==typeof e&&e.isBuffer&&e.isBuffer(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||o&&n instanceof Blob||s&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return t(n.toJSON(),!0);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&t(n[u]))return!0;return!1}}).call(this,n(10).Buffer)},function(t,e,n){"use strict";var r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},s=0,a=0;function u(t){var e="";do{e=i[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function c(){var t=u(+new Date);return t!==r?(s=0,r=t):t+"."+u(s++)}for(;a<64;a++)o[i[a]]=a;c.encode=u,c.decode=function(t){var e=0;for(a=0;a<t.length;a++)e=64*e+o[t.charAt(a)];return e},t.exports=c},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(7),i=n(8),o=n(67),s=n(26),a=n(27),u=n(0)("socket.io-client:socket"),c=n(5),l=n(22);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.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]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},p.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},p.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?c.encode(this.query):this.query;u("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){u("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||[];u("emitting event %j",e),null!=t.id&&(u("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},p.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);u("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?(u("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):u("bad ack %s",t.id)},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(){u("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&&(u("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}},function(t,e){t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e,n){t.exports=n(29)},function(t,e,n){n(30),n(32),n(34),n(36),window.angular.module("BrowserSync",["bsHistory","bsClients","bsDisconnect","bsNotify","bsSocket","bsStore","ngRoute","ngTouch","ngSanitize"]).config(["$locationProvider",function(t){t.html5Mode({enabled:!0,requireBase:!1})}]);n(38),n(39),n(40),n(41),n(42),n(69),n(70),n(71),n(84),n(85),n(87)},function(t,e,n){n(31),t.exports=angular},function(t,e){
  /**
   * @license AngularJS v1.8.0
   * (c) 2010-2020 Google, Inc. http://angularjs.org
   * License: MIT
   */
  !function(t){"use strict";var e={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(t){if(!D(t))return e;F(t.objectMaxDepth)&&(e.objectMaxDepth=r(t.objectMaxDepth)?t.objectMaxDepth:NaN),F(t.urlErrorParamsEnabled)&&X(t.urlErrorParamsEnabled)&&(e.urlErrorParamsEnabled=t.urlErrorParamsEnabled)}function r(t){return V(t)&&t>0}function i(t,n){n=n||Error;var r="https://errors.angularjs.org/1.8.0/",i=r.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(i,"g");return function(){var i,s,a=arguments[0],u=arguments[1],c="["+(t?t+":":"")+a+"] ",l=ft(arguments,2).map((function(t){return qt(t,e.objectMaxDepth)}));if(c+=u.replace(/\{\d+\}/g,(function(t){var e=+t.slice(1,-1);return e<l.length?l[e].replace(o,""):t})),c+="\n"+r+(t?t+"/":"")+a,e.urlErrorParamsEnabled)for(s=0,i="?";s<l.length;s++,i="&")c+=i+"p"+s+"="+encodeURIComponent(l[s]);return new n(c)}}var o,s,a,u,c=/^\/(.+)\/([a-z]*)$/,l=Object.prototype.hasOwnProperty,f=function(t){return L(t)?t.toLowerCase():t},h=function(t){return L(t)?t.toUpperCase():t},p=[].slice,d=[].splice,g=[].push,m=Object.prototype.toString,v=Object.getPrototypeOf,$=i("ng"),y=t.angular||(t.angular={}),b=0;function w(t){if(null==t||J(t))return!1;if(H(t)||L(t)||s&&t instanceof s)return!0;var e="length"in Object(t)&&t.length;return V(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function x(t,e,n){var r,i;if(t)if(W(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else if(H(t)||w(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!==x)t.forEach(e,n,t);else if(U(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)l.call(t,r)&&e.call(n,t[r],r,t);return t}function C(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 E(t){return function(e,n){t(n,e)}}function k(){return++b}function S(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function A(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var s=e[i];if(D(s)||W(s))for(var a=Object.keys(s),u=0,c=a.length;u<c;u++){var l=a[u],f=s[l];n&&D(f)?q(f)?t[l]=new Date(f.valueOf()):Y(f)?t[l]=new RegExp(f):f.nodeName?t[l]=f.cloneNode(!0):et(f)?t[l]=f.clone():"__proto__"!==l&&(D(t[l])||(t[l]=H(f)?[]:{}),A(t[l],[f],!0)):t[l]=f}}return S(t,r),t}function O(t){return A(t,p.call(arguments,1),!1)}function T(t){return A(t,p.call(arguments,1),!0)}function _(t){return parseInt(t,10)}o=t.document.documentMode;var M=Number.isNaN||function(t){return t!=t};function R(t,e){return O(Object.create(t),e)}function P(){}function N(t){return t}function j(t){return function(){return t}}function B(t){return W(t.toString)&&t.toString!==m}function I(t){return void 0===t}function F(t){return void 0!==t}function D(t){return null!==t&&"object"==typeof t}function U(t){return null!==t&&"object"==typeof t&&!v(t)}function L(t){return"string"==typeof t}function V(t){return"number"==typeof t}function q(t){return"[object Date]"===m.call(t)}function H(t){return Array.isArray(t)||t instanceof Array}function z(t){switch(m.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function W(t){return"function"==typeof t}function Y(t){return"[object RegExp]"===m.call(t)}function J(t){return t&&t.window===t}function G(t){return t&&t.$evalAsync&&t.$watch}function X(t){return"boolean"==typeof t}function K(t){return t&&W(t.then)}P.$inject=[],N.$inject=[];var Z=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Q=function(t){return L(t)?t.trim():t},tt=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function et(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function nt(t){return f(t.nodeName||t[0]&&t[0].nodeName)}function rt(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function it(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function ot(t,e,n){var i,o,s=[],a=[];if(n=r(n)?n:NaN,e){if((o=e)&&V(o.length)&&Z.test(m.call(o))||(i=e,"[object ArrayBuffer]"===m.call(i)))throw $("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw $("cpi","Can't copy! Source and destination are identical.");return H(e)?e.length=0:x(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),s.push(t),a.push(e),u(t,e,n)}return c(t,n);function u(t,e,n){if(--n<0)return"...";var r,i=e.$$hashKey;if(H(t))for(var o=0,s=t.length;o<s;o++)e.push(c(t[o],n));else if(U(t))for(r in t)e[r]=c(t[r],n);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=c(t[r],n));else for(r in t)l.call(t,r)&&(e[r]=c(t[r],n));return S(e,i),e}function c(t,e){if(!D(t))return t;var n=s.indexOf(t);if(-1!==n)return a[n];if(J(t)||G(t))throw $("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(t){switch(m.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(c(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(W(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===i&&(i=H(t)?[]:Object.create(v(t)),r=!0),s.push(t),a.push(i),r?u(t,i,e):i}}function st(t,e){return t===e||t!=t&&e!=e}function at(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(!H(t)){if(q(t))return!!q(e)&&st(t.getTime(),e.getTime());if(Y(t))return!!Y(e)&&t.toString()===e.toString();if(G(t)||G(e)||J(t)||J(e)||H(e)||q(e)||Y(e))return!1;for(r in i=Dt(),t)if("$"!==r.charAt(0)&&!W(t[r])){if(!at(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&F(e[r])&&!W(e[r]))return!1;return!0}if(!H(e))return!1;if((n=t.length)===e.length){for(r=0;r<n;r++)if(!at(t[r],e[r]))return!1;return!0}}return!1}var ut=function(){if(!F(ut.rules)){var e=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");ut.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ut.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return ut.rules},ct=function(){if(F(ct.name_))return ct.name_;var e,n,r,i,o=kt.length;for(n=0;n<o;++n)if(r=kt[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return ct.name_=i};function lt(t,e,n){return t.concat(p.call(e,n))}function ft(t,e){return p.call(t,e||0)}function ht(t,e){var n=arguments.length>2?ft(arguments,2):[];return!W(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,lt(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function pt(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:J(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":G(n)&&(r="$SCOPE"),r}function dt(t,e){if(!I(t))return V(e)||(e=e?2:null),JSON.stringify(t,pt,e)}function gt(t){return L(t)?JSON.parse(t):t}var mt=/:/g;function vt(t,e){t=t.replace(mt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return M(n)?e:n}function $t(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function yt(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return $t(t,n*(vt(e,r)-r))}function bt(t){t=s(t).clone().empty();var e=s("<div></div>").append(t).html();try{return t[0].nodeType===Lt?f(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+f(e)}))}catch(t){return f(e)}}function wt(t){try{return decodeURIComponent(t)}catch(t){}}function xt(t){var e={};return x((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)),F(r=wt(r))&&(i=!F(i)||wt(i),l.call(e,r)?H(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function Ct(t){return Et(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Et(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 kt=["ng-","data-ng-","ng:","x-ng-"];var St=function(e){var n=e.currentScript;if(!n)return!0;if(!(n instanceof t.HTMLScriptElement||n instanceof t.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(t){if(!t)return!0;if(!t.value)return!1;var n=e.createElement("a");if(n.href=t.value,e.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(t.document);function At(e,n){var r,i,o={};if(x(kt,(function(t){var n=t+"app";!r&&e.hasAttribute&&e.hasAttribute(n)&&(r=e,i=e.getAttribute(n))})),x(kt,(function(t){var n,o=t+"app";!r&&(n=e.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!St)return void t.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(t,e){var n,r,i=kt.length;for(r=0;r<i;++r)if(n=kt[r]+e,L(n=t.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],o)}}function Ot(e,n,r){D(r)||(r={});r=O({strictDi:!1},r);var i=function(){if((e=s(e)).injector()){var i=e[0]===t.document?"document":bt(e);throw $("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Ke(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((function(){e.data("$injector",r),n(e)(t)}))}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&o.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(o,"")),t&&!a.test(t.name))return i();t.name=t.name.replace(a,""),y.resumeBootstrap=function(t){return x(t,(function(t){n.push(t)})),i()},W(y.resumeDeferredBootstrap)&&y.resumeDeferredBootstrap()}function Tt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function _t(t){var e=y.element(t).injector();if(!e)throw $("test","no injector found for element argument to getTestability");return e.get("$$testability")}var Mt=/[A-Z]/g;function Rt(t,e){return e=e||"_",t.replace(Mt,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var Pt=!1;function Nt(){he.legacyXHTMLReplacement=!0}function jt(t,e,n){if(!t)throw $("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function Bt(t,e,n){return n&&H(t)&&(t=t[t.length-1]),jt(W(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function It(t,e){if("hasOwnProperty"===t)throw $("badname","hasOwnProperty is not a valid {0} name",e)}function Ft(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=s(p.call(t,0,i))),e.push(n));return e||t}function Dt(){return Object.create(null)}function Ut(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!B(t)||H(t)||q(t)?dt(t):t.toString()}return t}var Lt=3;function Vt(t,e){if(H(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(D(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function qt(t,e){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):I(t)?"undefined":"string"!=typeof t?function(t,e){var n=[];return r(e)&&(t=y.copy(t,null,e)),JSON.stringify(t,(function(t,e){if(D(e=pt(t,e))){if(n.indexOf(e)>=0)return"...";n.push(e)}return e}))}(t,e):t}var Ht={full:"1.8.0",major:1,minor:8,dot:0,codeName:"nested-vaccination"};he.expando="ng339";var zt=he.cache={},Wt=1;he._data=function(t){return this.cache[t[this.expando]]||{}};var Yt=/-([a-z])/g,Jt=/^-ms-/,Gt={mouseleave:"mouseout",mouseenter:"mouseover"},Xt=i("jqLite");function Kt(t,e){return e.toUpperCase()}function Zt(t){return t.replace(Yt,Kt)}var Qt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,te=/<|&#?\w+;/,ee=/<([\w:-]+)/,ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,re={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};re.tbody=re.tfoot=re.colgroup=re.caption=re.thead,re.th=re.td;var ie={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var oe in re){var se=re[oe],ae=se.slice().reverse();ie[oe]=[ae.length,"<"+ae.join("><")+">","</"+se.join("></")+">"]}function ue(t){return!te.test(t)}function ce(t){var e=t.nodeType;return 1===e||!e||9===e}function le(e,n){var r,i,s,a,u,c=n.createDocumentFragment(),l=[];if(ue(e))l.push(n.createTextNode(e));else{if(r=c.appendChild(n.createElement("div")),i=(ee.exec(e)||["",""])[1].toLowerCase(),a=he.legacyXHTMLReplacement?e.replace(ne,"<$1></$2>"):e,o<10)for(s=ie[i]||ie._default,r.innerHTML=s[1]+a+s[2],u=s[0];u--;)r=r.firstChild;else{for(u=(s=re[i]||[]).length;--u>-1;)r.appendChild(t.document.createElement(s[u])),r=r.firstChild;r.innerHTML=a}l=lt(l,r.childNodes),(r=c.firstChild).textContent=""}return c.textContent="",c.innerHTML="",x(l,(function(t){c.appendChild(t)})),c}ie.optgroup=ie.option;var fe=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function he(e){if(e instanceof he)return e;var n,r,i,o;if(L(e)&&(e=Q(e),n=!0),!(this instanceof he)){if(n&&"<"!==e.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 he(e)}n?Ee(this,(r=e,i=i||t.document,(o=Qt.exec(r))?[i.createElement(o[1])]:(o=le(r,i))?o.childNodes:[])):W(e)?Te(e):Ee(this,e)}function pe(t){return t.cloneNode(!0)}function de(t,e){!e&&ce(t)&&s.cleanData([t]),t.querySelectorAll&&s.cleanData(t.querySelectorAll("*"))}function ge(t){var e;for(e in t)return!1;return!0}function me(t){var e=t.ng339,n=e&&zt[e],r=n&&n.events,i=n&&n.data;i&&!ge(i)||r&&!ge(r)||(delete zt[e],t.ng339=void 0)}function ve(t,e,n,r){if(F(r))throw Xt("offargs","jqLite#off() does not support the `selector` argument");var i=ye(t),o=i&&i.events,s=i&&i.handle;if(s){if(e){var a=function(e){var r=o[e];F(n)&&it(r||[],n),F(n)&&r&&r.length>0||(t.removeEventListener(e,s),delete o[e])};x(e.split(" "),(function(t){a(t),Gt[t]&&a(Gt[t])}))}else for(e in o)"$destroy"!==e&&t.removeEventListener(e,s),delete o[e];me(t)}}function $e(t,e){var n=t.ng339,r=n&&zt[n];r&&(e?delete r.data[e]:r.data={},me(t))}function ye(t,e){var n=t.ng339,r=n&&zt[n];return e&&!r&&(t.ng339=n=++Wt,r=zt[n]={events:{},data:{},handle:void 0}),r}function be(t,e,n){if(ce(t)){var r,i=F(n),o=!i&&e&&!D(e),s=!e,a=ye(t,!o),u=a&&a.data;if(i)u[Zt(e)]=n;else{if(s)return u;if(o)return u&&u[Zt(e)];for(r in e)u[Zt(r)]=e[r]}}}function we(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function xe(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(e.split(" "),(function(t){t=Q(t),r=r.replace(" "+t+" "," ")})),r!==n&&t.setAttribute("class",Q(r))}}function Ce(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(e.split(" "),(function(t){t=Q(t),-1===r.indexOf(" "+t+" ")&&(r+=t+" ")})),r!==n&&t.setAttribute("class",Q(r))}}function Ee(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 ke(t,e){return Se(t,"$"+(e||"ngController")+"Controller")}function Se(t,e,n){9===t.nodeType&&(t=t.documentElement);for(var r=H(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(F(n=s.data(t,r[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function Ae(t){for(de(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Oe(t,e){e||de(t);var n=t.parentNode;n&&n.removeChild(t)}function Te(e){function n(){t.document.removeEventListener("DOMContentLoaded",n),t.removeEventListener("load",n),e()}"complete"===t.document.readyState?t.setTimeout(e):(t.document.addEventListener("DOMContentLoaded",n),t.addEventListener("load",n))}var _e=he.prototype={ready:Te,toString:function(){var t=[];return x(this,(function(e){t.push(""+e)})),"["+t.join(", ")+"]"},eq:function(t){return s(t>=0?this[t]:this[this.length+t])},length:0,push:g,sort:[].sort,splice:[].splice},Me={};x("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){Me[f(t)]=t}));var Re={};x("input,select,option,textarea,button,form,details".split(","),(function(t){Re[t]=!0}));var Pe={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Ne(t,e){var n=Me[e.toLowerCase()];return n&&Re[nt(t)]&&n}function je(t,e,n){n.call(t,e)}function Be(t,e,n){var r=e.relatedTarget;r&&(r===t||fe.call(t,r))||n.call(t,e)}function Ie(){this.$get=function(){return O(he,{hasClass:function(t,e){return t.attr&&(t=t[0]),we(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Ce(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),xe(t,e)}})}}function Fe(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"===r||"object"===r&&null!==t?t.$$hashKey=r+":"+(e||k)():r+":"+t}x({data:be,removeData:$e,hasData:function(t){for(var e in zt[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)$e(t[e]),ve(t[e])}},(function(t,e){he[e]=t})),x({data:be,inheritedData:Se,scope:function(t){return s.data(t,"$scope")||Se(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return s.data(t,"$isolateScope")||s.data(t,"$isolateScopeNoTemplate")},controller:ke,injector:function(t){return Se(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:we,css:function(t,e,n){if(e=function(t){return Zt(t.replace(Jt,"ms-"))}(e),!F(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r,i=t.nodeType;if(i!==Lt&&2!==i&&8!==i&&t.getAttribute){var o=f(e),s=Me[o];if(!F(n))return r=t.getAttribute(e),s&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&s?t.removeAttribute(e):t.setAttribute(e,s?o:n)}},prop:function(t,e,n){if(!F(n))return t[e];t[e]=n},text:function(){return t.$dv="",t;function t(t,e){if(I(e)){var n=t.nodeType;return 1===n||n===Lt?t.textContent:""}t.textContent=e}}(),val:function(t,e){if(I(e)){if(t.multiple&&"select"===nt(t)){var n=[];return x(t.options,(function(t){t.selected&&n.push(t.value||t.text)})),n}return t.value}t.value=e},html:function(t,e){if(I(e))return t.innerHTML;de(t,!0),t.innerHTML=e},empty:Ae},(function(t,e){he.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ae&&I(2===t.length&&t!==we&&t!==ke?e:n)){if(D(e)){for(r=0;r<o;r++)if(t===be)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var s=t.$dv,a=I(s)?Math.min(o,1):o,u=0;u<a;u++){var c=t(this[u],e,n);s=s?s+c:c}return s}for(r=0;r<o;r++)t(this[r],e,n);return this}})),x({removeData:$e,on:function(t,e,n,r){if(F(r))throw Xt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ce(t)){var i=ye(t,!0),o=i.events,s=i.handle;s||(s=i.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(I(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||je;o>1&&(i=Vt(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||a(t,n,i[u])}};return n.elem=t,n}(t,o));for(var a=e.indexOf(" ")>=0?e.split(" "):[e],u=a.length,c=function(e,r,i){var a=o[e];a||((a=o[e]=[]).specialHandlerWrapper=r,"$destroy"===e||i||t.addEventListener(e,s)),a.push(n)};u--;)e=a[u],Gt[e]?(c(Gt[e],Be),c(e,void 0,!0)):c(e)}},off:ve,one:function(t,e,n){(t=s(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;de(t),x(new he(e),(function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:function(t){var e=[];return x(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 he(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;x(new he(e),(function(e){t.insertBefore(e,n)}))}},wrap:function(t,e){var n,r,i;n=t,r=s(e).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:Oe,detach:function(t){Oe(t,!0)},after:function(t,e){var n=t,r=t.parentNode;if(r)for(var i=0,o=(e=new he(e)).length;i<o;i++){var s=e[i];r.insertBefore(s,n.nextSibling),n=s}},addClass:Ce,removeClass:xe,toggleClass:function(t,e,n){e&&x(e.split(" "),(function(e){var r=n;I(r)&&(r=!we(t,e)),(r?Ce:xe)(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:pe,triggerHandler:function(t,e,n){var r,i,o,s=e.type||e,a=ye(t),u=a&&a.events,c=u&&u[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:P,type:s,target:t},e.type&&(r=O(r,e)),i=Vt(c),o=n?[r].concat(n):[r],x(i,(function(e){r.isImmediatePropagationStopped()||e.apply(t,o)})))}},(function(t,e){he.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)I(i)?F(i=t(this[o],e,n,r))&&(i=s(i)):Ee(i,t(this[o],e,n,r));return F(i)?i:this}})),he.prototype.bind=he.prototype.on,he.prototype.unbind=he.prototype.off;var De=Object.create(null);function Ue(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Ue.prototype={_idx:function(t){return t!==this._lastKey&&(this._lastKey=t,this._lastIndex=this._keys.indexOf(t)),this._lastIndex},_transformKey:function(t){return M(t)?De:t},get:function(t){t=this._transformKey(t);var e=this._idx(t);if(-1!==e)return this._values[e]},has:function(t){return t=this._transformKey(t),-1!==this._idx(t)},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);var e=this._idx(t);return-1!==e&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Le=Ue,Ve=[function(){this.$get=[function(){return Le}]}],qe=/^([^(]+?)=>/,He=/^[^(]*\(\s*([^)]*)\)/m,ze=/,/,We=/^\s*(_?)(\S+?)\1\s*$/,Ye=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Je=i("$injector");function Ge(t){return Function.prototype.toString.call(t)}function Xe(t){var e=Ge(t).replace(Ye,"");return e.match(qe)||e.match(He)}function Ke(t,e){e=!0===e;var n={},r=[],i=new Le,s={$provide:{provider:p(d),factory:p(m),service:p((function(t,e){return m(t,["$injector",function(t){return t.instantiate(e)}])})),value:p((function(t,e){return m(t,j(e),!1)})),constant:p((function(t,e){It(t,"constant"),s[t]=e,c[t]=e})),decorator:function(t,e){var n=a.get(t+"Provider"),r=n.$get;n.$get=function(){var t=f.invoke(r,n);return f.invoke(e,null,{$delegate:t})}}}},a=s.$injector=$(s,(function(t,e){throw y.isString(e)&&r.push(e),Je("unpr","Unknown provider: {0}",r.join(" <- "))})),c={},l=$(c,(function(t,e){var n=a.get(t+"Provider",e);return f.invoke(n.$get,n,void 0,t)})),f=l;s.$injectorProvider={$get:j(l)},f.modules=a.modules=Dt();var h=v(t);return(f=l.get("$injector")).strictDi=e,x(h,(function(t){t&&f.invoke(t)})),f.loadNewModules=function(t){x(v(t),(function(t){t&&f.invoke(t)}))},f;function p(t){return function(e,n){if(!D(e))return t(e,n);x(e,E(t))}}function d(t,e){if(It(t,"service"),(W(e)||H(e))&&(e=a.instantiate(e)),!e.$get)throw Je("pget","Provider '{0}' must define $get factory method.",t);return s[t+"Provider"]=e}function g(t,e){return function(){var n=f.invoke(e,this);if(I(n))throw Je("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function m(t,e,n){return d(t,{$get:!1!==n?g(t,e):e})}function v(t){jt(I(t)||H(t),"modulesToLoad","not an array");var e,n=[];return x(t,(function(t){if(!i.get(t)){i.set(t,!0);try{L(t)?(e=u(t),f.modules[t]=e,n=n.concat(v(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):W(t)||H(t)?n.push(a.invoke(t)):Bt(t,"module")}catch(e){throw H(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Je("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=a.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function $(t,i){function a(e,o){if(t.hasOwnProperty(e)){if(t[e]===n)throw Je("cdep","Circular dependency found: {0}",e+" <- "+r.join(" <- "));return t[e]}try{return r.unshift(e),t[e]=n,t[e]=i(e,o),t[e]}catch(r){throw t[e]===n&&delete t[e],r}finally{r.shift()}}function u(t,n,r){for(var i=[],o=Ke.$$annotate(t,e,r),s=0,u=o.length;s<u;s++){var c=o[s];if("string"!=typeof c)throw Je("itkn","Incorrect injection token! Expected service name as string, got {0}",c);i.push(n&&n.hasOwnProperty(c)?n[c]:a(c,r))}return i}return{invoke:function(t,e,n,r){"string"==typeof n&&(r=n,n=null);var i=u(t,n,r);return H(t)&&(t=t[t.length-1]),function(t){if(o||"function"!=typeof t)return!1;var e=t.$$ngIsClass;return X(e)||(e=t.$$ngIsClass=/^class\b/.test(Ge(t))),e}(t)?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)},instantiate:function(t,e,n){var r=H(t)?t[t.length-1]:t,i=u(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:a,annotate:Ke.$$annotate,has:function(e){return s.hasOwnProperty(e+"Provider")||t.hasOwnProperty(e)}}}}function Ze(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function a(t){if(t){t.scrollIntoView();var e=function(){var t=u.yOffset;if(W(t))t=t();else if(et(t)){var e=t[0];t="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else V(t)||(t=0);return t}();if(e){var r=t.getBoundingClientRect().top;n.scrollBy(0,r-e)}}else n.scrollTo(0,0)}function u(t){var e,n,i;(t=L(t)?t:V(t)?t.toString():r.hash())?(e=o.getElementById(t))?a(e):(n=o.getElementsByName(t),i=null,Array.prototype.some.call(n,(function(t){if("a"===nt(t))return i=t,!0})),(e=i)?a(e):"top"===t&&a(null)):a(null)}return e&&i.$watch((function(){return r.hash()}),(function(e,n){var r,o;e===n&&""===e||(r=function(){i.$evalAsync(u)},"complete"===(o=o||t).document.readyState?o.setTimeout(r):s(o).on("load",r))})),u}]}Ke.$$annotate=function(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw L(n)&&n||(n=t.name||function(t){var e=Xe(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),Je("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);x(Xe(t)[1].split(ze),(function(t){t.replace(We,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else H(t)?(Bt(t[i=t.length-1],"fn"),r=t.slice(0,i)):Bt(t,"fn",!0);return r};var Qe=i("$animate");function tn(t,e){return t||e?t?e?(H(t)&&(t=t.join(" ")),H(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function en(t){return D(t)?t:{}}var nn=function(){this.$get=P},rn=function(){var t=new Le,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:P,on:P,off:P,pin:P,push:function(s,a,u,c){c&&c(),(u=u||{}).from&&s.css(u.from),u.to&&s.css(u.to),(u.addClass||u.removeClass)&&function(n,s,a){var u=t.get(n)||{},c=i(u,s,!0),l=i(u,a,!1);(c||l)&&(t.set(n,u),e.push(n),1===e.length&&r.$$postDigest(o))}(s,u.addClass,u.removeClass);var l=new n;return l.complete(),l}};function i(t,e,n){var r=!1;return e&&x(e=L(e)?e.split(" "):H(e)?e:[],(function(e){e&&(r=!0,t[e]=n)})),r}function o(){x(e,(function(e){var n=t.get(e);if(n){var r=function(t){L(t)&&(t=t.split(" "));var e=Dt();return x(t,(function(t){t.length&&(e[t]=!0)})),e}(e.attr("class")),i="",o="";x(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:o+=(o.length?" ":"")+e)})),x(e,(function(t){i&&Ce(t,i),o&&xe(t,o)})),t.delete(e)}})),e.length=0}}]},on=["$provide",function(t){var e=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Qe("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=W(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null)){var e=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(e.test(n.toString()))throw n=null,Qe("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},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.cancel&&t.cancel()},enter:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),e(n,r=r||i.parent(),i),t.push(n,"enter",en(o))},move:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),e(n,r=r||i.parent(),i),t.push(n,"move",en(o))},leave:function(e,n){return t.push(e,"leave",en(n),(function(){e.remove()}))},addClass:function(e,n,r){return(r=en(r)).addClass=tn(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return(r=en(r)).removeClass=tn(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return(i=en(i)).addClass=tn(i.addClass,n),i.removeClass=tn(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return(o=en(o)).from=o.from?O(o.from,n):n,o.to=o.to?O(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=tn(o.tempClasses,i),t.push(e,"animate",o)}}}]}],sn=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)}}}]},an=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,r,i){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){r()?function(t){i(t,0,!1)}(t):e(t)},this._state=0}return o.chain=function(t,e){var n=0;!function r(){if(n===t.length)return void e(!0);t[n]((function(t){!1!==t?(n++,r()):e(!1)}))}()},o.all=function(t,e){var n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}x(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:P,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&&(x(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},o}]},un=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){var i=r||{};i.$$prepared||(i=ot(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(){!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 cn(t,e,n,r,i){var o=this,a=t.location,u=t.history,c=t.setTimeout,l=t.clearTimeout,f={},h=i(n);o.isMock=!1,o.$$completeOutstandingRequest=h.completeTask,o.$$incOutstandingRequestCount=h.incTaskCount,o.notifyWhenNoOutstandingRequests=h.notifyWhenNoPendingTasks;var p,d,g=a.href,m=e.find("base"),v=null,$=r.history?function(){try{return u.state}catch(t){}}:P;E(),o.url=function(e,n,i){if(I(i)&&(i=null),a!==t.location&&(a=t.location),u!==t.history&&(u=t.history),e){var s=d===i;if(e=ui(e).href,g===e&&(!r.history||s))return o;var c=g&&ar(g)===ar(e);return g=e,d=i,!r.history||c&&s?(c||(v=e),n?a.replace(e):c?a.hash=function(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}(e):a.href=e,a.href!==e&&(v=e)):(u[n?"replaceState":"pushState"](i,"",e),E()),v&&(v=e),o}return function(t){return t.replace(/#$/,"")}(v||a.href)},o.state=function(){return p};var y=[],b=!1;function w(){v=null,k()}var C=null;function E(){at(p=I(p=$())?null:p,C)&&(p=C),C=p,d=p}function k(){var t=d;E(),g===o.url()&&t===p||(g=o.url(),d=p,x(y,(function(t){t(o.url(),p)})))}o.onUrlChange=function(e){return b||(r.history&&s(t).on("popstate",w),s(t).on("hashchange",w),b=!0),y.push(e),e},o.$$applicationDestroyed=function(){s(t).off("hashchange popstate",w)},o.$$checkUrlChange=k,o.baseHref=function(){var t=m.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},o.defer=function(t,e,n){var r;return e=e||0,n=n||h.DEFAULT_TASK_TYPE,h.incTaskCount(n),r=c((function(){delete f[r],h.completeTask(t,n)}),e),f[r]=n,r},o.defer.cancel=function(t){if(f.hasOwnProperty(t)){var e=f[t];return delete f[t],l(t),h.completeTask(P,e),!0}return!1}}function ln(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(t,e,n,r,i){return new cn(t,r,e,n,i)}]}function fn(){this.$get=function(){var t={};function e(e,n){if(e in t)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var r=0,o=O({},n,{id:e}),s=Dt(),a=n&&n.capacity||Number.MAX_VALUE,u=Dt(),c=null,l=null;return t[e]={put:function(t,e){if(!I(e)){if(a<Number.MAX_VALUE)f(u[t]||(u[t]={key:t}));return t in s||r++,s[t]=e,r>a&&this.remove(l.key),e}},get:function(t){if(a<Number.MAX_VALUE){var e=u[t];if(!e)return;f(e)}return s[t]},remove:function(t){if(a<Number.MAX_VALUE){var e=u[t];if(!e)return;e===c&&(c=e.p),e===l&&(l=e.n),h(e.n,e.p),delete u[t]}t in s&&(delete s[t],r--)},removeAll:function(){s=Dt(),r=0,u=Dt(),c=l=null},destroy:function(){s=null,o=null,u=null,delete t[e]},info:function(){return O({},o,{size:r})}};function f(t){t!==c&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,c),(c=t).n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){var e={};return x(t,(function(t,n){e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function hn(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var pn=i("$compile");var dn=new function(){};function gn(e,n){var r={},i=/^\s*directive:\s*([\w-]+)\s+(.*)$/,a=/(([\w-]+)(?::([^;]+))?;?)/,u=function(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),c=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,h=/^(on[a-z]+|formaction)$/,p=Dt();function d(t,e,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Dt();return x(t,(function(t,o){if((t=t.trim())in p)i[o]=p[t];else{var s=t.match(r);if(!s)throw pn("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]&&(p[t]=i[o])}})),i}function g(t,e){var n={isolateScope:null,bindToController:null};if(D(t.scope)&&(!0===t.bindToController?(n.bindToController=d(t.scope,e,!0),n.isolateScope={}):n.isolateScope=d(t.scope,e,!1)),D(t.bindToController)&&(n.bindToController=d(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw pn("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function t(n,i){return jt(n,"name"),It(n,"directive"),L(n)?(!function(t){var e=t.charAt(0);if(!e||e!==f(e))throw pn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw pn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(n),jt(i,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],e.factory(n+"Directive",["$injector","$exceptionHandler",function(t,e){var i=[];return x(r[n],(function(r,o){try{var s=t.invoke(r);W(s)?s={compile:j(s)}:!s.compile&&s.link&&(s.compile=j(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=function(t){var e=t.require||t.controller&&t.name;return!H(e)&&D(e)&&x(e,(function(t,n){var r=t.match(c);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(s),s.restrict=function(t,e){if(t&&(!L(t)||!/[EACM]/.test(t)))throw pn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(s.restrict,n),s.$$moduleName=r.$$moduleName,i.push(s)}catch(t){e(t)}})),i}])),r[n].push(i)):x(n,E(t)),this},this.component=function t(e,n){if(!L(e))return x(e,E(ht(this,t))),this;var r=n.controller||function(){};function i(t){function e(e){return W(e)||H(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var i=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:En(n.controller)||n.controllerAs||"$ctrl",template:e(i),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return x(n,(function(t,e){"$"===e.charAt(0)&&(o[e]=t)})),o}return x(n,(function(t,e){"$"===e.charAt(0)&&(i[e]=t,W(r)&&(r[e]=t))})),i.$inject=["$injector"],this.directive(e,i)},this.aHrefSanitizationWhitelist=function(t){return F(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return F(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var v=!0;this.debugInfoEnabled=function(t){return F(t)?(v=t,this):v};var $=!1;this.strictComponentBindingsEnabled=function(t){return F(t)?($=t,this):$};var y=10;this.onChangesTtl=function(t){return arguments.length?(y=t,this):y};var b=!0;this.commentDirectivesEnabled=function(t){return arguments.length?(b=t,this):b};var w=!0;this.cssClassDirectivesEnabled=function(t){return arguments.length?(w=t,this):w};var C=Dt();this.addPropertySecurityContext=function(t,e,n){var r=t.toLowerCase()+"|"+e.toLowerCase();if(r in C&&C[r]!==n)throw pn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,C[r],n);return C[r]=n,this},function(){function t(t,e){x(e,(function(e){C[e.toLowerCase()]=t}))}t(Hr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Hr.CSS,["*|style"]),t(Hr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Hr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Hr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(e,n,p,d,E,k,S,A,T){var _,M=/^\w/,j=t.document.createElement("div"),B=b,F=w,U=y;function V(){try{if(!--U)throw _=void 0,pn("infchng","{0} $onChanges() iterations reached. Aborting!\n",y);S.$apply((function(){for(var t=0,e=_.length;t<e;++t)try{_[t]()}catch(t){p(t)}_=void 0}))}finally{U++}}function q(t,e){if(!t)return t;if(!L(t))throw pn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=Q(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),s=Math.floor(o.length/2),a=0;a<s;a++){var u=2*a;n+=A.getTrustedMediaUrl(Q(o[u])),n+=" "+Q(o[u+1])}var c=Q(o[2*a]).split(/\s/);return n+=A.getTrustedMediaUrl(Q(c[0])),2===c.length&&(n+=" "+Q(c[1])),n}function Y(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 J(t,e){try{t.addClass(e)}catch(t){}}Y.prototype={$normalize:yn,$addClass:function(t){t&&t.length>0&&T.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&T.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=bn(t,e);n&&n.length&&T.addClass(this.$$element,n);var r=bn(e,t);r&&r.length&&T.removeClass(this.$$element,r)},$set:function(t,e,n,r){var i=Ne(this.$$element[0],t),o=Pe[t],s=t;i?(this.$$element.prop(t,e),r=i):o&&(this[o]=e,s=o),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=Rt(t,"-")),"img"===nt(this.$$element)&&"srcset"===t&&(this[t]=e=q(e,"$set('srcset', value)")),!1!==n&&(null===e||I(e)?this.$$element.removeAttr(r):M.test(r)?i&&!1===e?this.$$element.removeAttr(r):this.$$element.attr(r,e):function(t,e,n){j.innerHTML="<span "+e+">";var r=j.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));var a=this.$$observers;a&&x(a[s],(function(t){try{t(e)}catch(t){p(t)}}))},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=Dt()),i=r[t]||(r[t]=[]);return i.push(e),S.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(t)||I(n[t])||e(n[t])})),function(){it(i,e)}}};var K=n.startSymbol(),Z=n.endSymbol(),tt="{{"===K&&"}}"===Z?N:function(t){return t.replace(/\{\{/g,K).replace(/}}/g,Z)},et=/^ng(Attr|Prop|On)([A-Z].*)$/,rt=/^(.+)Start$/;return ot.$$addBindingInfo=v?function(t,e){var n=t.data("$binding")||[];H(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:P,ot.$$addBindingClass=v?function(t){J(t,"ng-binding")}:P,ot.$$addScopeInfo=v?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:P,ot.$$addScopeClass=v?function(t,e){J(t,e?"ng-isolate-scope":"ng-scope")}:P,ot.$$createComment=function(e,n){var r="";return v&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},ot;function ot(t,e,n,r,i){t instanceof s||(t=s(t));var o=ut(t,e,t,n,r,i);ot.$$addScopeClass(t);var a=null;return function(e,n,r){if(!t)throw pn("multilink","This element has already been linked.");jt(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new());var u,c,l,f=(r=r||{}).parentBoundTranscludeFn,h=r.transcludeControllers,p=r.futureParentElement;if(f&&f.$$boundTransclude&&(f=f.$$boundTransclude),a||(c=(u=p)&&u[0],a=c&&"foreignobject"!==nt(c)&&m.call(c).match(/SVG/)?"svg":"html"),l="html"!==a?s(At(a,s("<div></div>").append(t).html())):n?_e.clone.call(t):t,h)for(var d in h)l.data("$"+d+"Controller",h[d].instance);return ot.$$addScopeInfo(l,e),n&&n(l,e),o&&o(e,l,l,f),n||(t=o=null),l}}function ut(t,e,n,r,i,a){for(var u,c,l,f,h,p,d,g=[],m=H(t)||t instanceof s,v=0;v<t.length;v++)u=new Y,11===o&&ct(t,v,m),(l=(c=pt(t[v],[],u,0===v?r:void 0,i)).length?vt(c,t[v],u,e,n,null,[],[],a):null)&&l.scope&&ot.$$addScopeClass(u.$$element),h=l&&l.terminal||!(f=t[v].childNodes)||!f.length?null:ut(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(g.push(v,l,h),p=!0,d=d||l),a=null;return p?function(t,n,r,i){var o,a,u,c,l,f,h,p,m;if(d){var v=n.length;for(m=new Array(v),l=0;l<g.length;l+=3)h=g[l],m[h]=n[h]}else m=n;for(l=0,f=g.length;l<f;)u=m[g[l++]],o=g[l++],a=g[l++],o?(o.scope?(c=t.$new(),ot.$$addScopeInfo(s(u),c)):c=t,p=o.transcludeOnThisElement?lt(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?lt(t,e):null,o(a,c,u,r,p)):a&&a(t,u.childNodes,void 0,i)}:null}function ct(t,e,n){var r,i=t[e],o=i.parentNode;if(i.nodeType===Lt)for(;(r=o?i.nextSibling:t[e+1])&&r.nodeType===Lt;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===t[e+1]&&t.splice(e+1,1)}function lt(t,e,n){function r(r,i,o,s,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}var i=r.$$slots=Dt();for(var o in e.$$slots)e.$$slots[o]?i[o]=lt(t,e.$$slots[o],n):i[o]=null;return r}function pt(t,e,r,o,s){var u,c,l,f=t.nodeType,h=r.$attr;switch(f){case 1:wt(e,yn(c=nt(t)),"E",o,s);for(var p,d,g,m,v,$=t.attributes,y=0,b=$&&$.length;y<b;y++){var w,x=!1,C=!1,E=!1,k=!1,S=!1;d=(p=$[y]).name,m=p.value,(v=(g=yn(d.toLowerCase())).match(et))?(E="Attr"===v[1],k="Prop"===v[1],S="On"===v[1],d=d.replace(vn,"").toLowerCase().substr(4+v[1].length).replace(/_(.)/g,(function(t,e){return e.toUpperCase()}))):(w=g.match(rt))&&xt(w[1])&&(x=d,C=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),k||S?(r[g]=m,h[g]=p.name,k?Tt(t,e,g,d):_t(e,g,d)):(h[g=yn(d.toLowerCase())]=d,!E&&r.hasOwnProperty(g)||(r[g]=m,Ne(t,g)&&(r[g]=!0)),Mt(t,e,m,g,E),wt(e,g,"A",o,s,x,C))}if("input"===c&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),!F)break;if(D(l=t.className)&&(l=l.animVal),L(l)&&""!==l)for(;u=a.exec(l);)wt(e,g=yn(u[2]),"C",o,s)&&(r[g]=Q(u[3])),l=l.substr(u.index+u[0].length);break;case Lt:!function(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&ot.$$addBindingClass(e),function(t,e){var i=e.parent();n||ot.$$addBindingClass(i),ot.$$addBindingInfo(i,r.expressions),t.$watch(r,(function(t){e[0].nodeValue=t}))}}})}(e,t.nodeValue);break;case 8:if(!B)break;!function(t,e,n,r,o){try{var s=i.exec(t.nodeValue);if(s){var a=yn(s[1]);wt(e,a,"M",r,o)&&(n[a]=Q(s[2]))}}catch(t){}}(t,e,r,o,s)}return e.sort(kt),e}function dt(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw pn("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 s(r)}function gt(t,e,n){return function(r,i,o,s,a){return i=dt(i[0],e,n),t(r,i,o,s,a)}}function mt(t,e,n,r,i,o){var s;return t?ot(e,n,r,i,o):function(){return s||(s=ot(e,n,r,i,o),e=n=o=null),s.apply(this,arguments)}}function vt(e,n,r,i,o,a,u,c,l){l=l||{};for(var f,h,d,g,m,v=-Number.MAX_VALUE,$=l.newScopeDirective,y=l.controllerDirectives,b=l.newIsolateScopeDirective,w=l.templateDirective,C=l.nonTlbTranscludeDirective,E=!1,S=!1,A=l.hasElementTranscludeDirective,T=r.$$element=s(n),_=a,M=i,R=!1,P=!1,N=0,j=e.length;N<j;N++){var B=(f=e[N]).$$start,F=f.$$end;if(B&&(T=dt(n,B,F)),d=void 0,v>f.priority)break;if((m=f.scope)&&(f.templateUrl||(D(m)?(St("new/isolated scope",b||$,f,T),b=f):St("new/isolated scope",b,f,T)),$=$||f),h=f.name,!R&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var U,L=N+1;U=e[L++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){P=!0;break}R=!0}if(!f.templateUrl&&f.controller&&(y=y||Dt(),St("'"+h+"' controller",y[h],f,T),y[h]=f),m=f.transclude)if(E=!0,f.$$tlb||(St("transclusion",C,f,T),C=f),"element"===m)A=!0,v=f.priority,d=T,T=r.$$element=s(ot.$$createComment(h,r[h])),n=T[0],Pt(o,ft(d),n),M=mt(P,d,i,v,_&&_.name,{nonTlbTranscludeDirective:C});else{var V=Dt();if(D(m)){d=t.document.createDocumentFragment();var q=Dt(),z=Dt();for(var J in x(m,(function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,q[t]=e,V[e]=null,z[e]=n})),x(T.contents(),(function(e){var n=q[yn(nt(e))];n?(z[n]=!0,V[n]=V[n]||t.document.createDocumentFragment(),V[n].appendChild(e)):d.appendChild(e)})),x(z,(function(t,e){if(!t)throw pn("reqslot","Required transclusion slot `{0}` was not filled.",e)})),V)if(V[J]){var X=s(V[J].childNodes);V[J]=mt(P,X,i)}d=s(d.childNodes)}else d=s(pe(n)).contents();T.empty(),(M=mt(P,d,i,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope})).$$slots=V}if(f.template)if(S=!0,St("template",w,f,T),w=f,m=W(f.template)?f.template(T,r):f.template,m=tt(m),f.replace){if(_=f,d=ue(m)?[]:wn(At(f.templateNamespace,Q(m))),n=d[0],1!==d.length||1!==n.nodeType)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");Pt(o,T,n);var K={$attr:{}},Z=pt(n,[],K),et=e.splice(N+1,e.length-(N+1));(b||$)&&yt(Z,b,$),e=e.concat(Z).concat(et),Ct(r,K),j=e.length}else T.html(m);if(f.templateUrl)S=!0,St("template",w,f,T),w=f,f.replace&&(_=f),st=Et(e.splice(N,e.length-N),T,r,o,E&&M,u,c,{controllerDirectives:y,newScopeDirective:$!==f&&$,newIsolateScopeDirective:b,templateDirective:w,nonTlbTranscludeDirective:C}),j=e.length;else if(f.compile)try{g=f.compile(T,r,M);var rt=f.$$originalDirective||f;W(g)?it(null,ht(rt,g),B,F):g&&it(ht(rt,g.pre),ht(rt,g.post),B,F)}catch(t){p(t,bt(T))}f.terminal&&(st.terminal=!0,v=Math.max(v,f.priority))}return st.scope=$&&!0===$.scope,st.transcludeOnThisElement=E,st.templateOnThisElement=S,st.transclude=M,l.hasElementTranscludeDirective=A,st;function it(t,e,n,r){t&&(n&&(t=gt(t,n,r)),t.require=f.require,t.directiveName=h,(b===f||f.$$isolateScope)&&(t=Nt(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=gt(e,n,r)),e.require=f.require,e.directiveName=h,(b===f||f.$$isolateScope)&&(e=Nt(e,{isolateScope:!0})),c.push(e))}function st(t,e,i,o,a){var l,f,h,d,g,m,v,C,E,S;for(var T in n===i?(E=r,C=r.$$element):E=new Y(C=s(i),r),g=e,b?d=e.$new(!0):$&&(g=e.$parent),a&&((v=function(t,e,n,r){var i;G(t)||(r=n,n=e,e=t,t=void 0);A&&(i=m);n||(n=A?C.parent():C);if(!r)return a(t,e,i,n,P);var o=a.$$slots[r];if(o)return o(t,e,i,n,P);if(I(o))throw pn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,bt(C))}).$$boundTransclude=a,v.isSlotFilled=function(t){return!!a.$$slots[t]}),y&&(m=function(t,e,n,r,i,o,s){var a=Dt();for(var u in r){var c=r[u],l={$scope:c===s||c.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=c.controller;"@"===f&&(f=e[c.name]);var h=k(f,l,!0,c.controllerAs);a[c.name]=h,t.data("$"+c.name+"Controller",h.instance)}return a}(C,E,v,y,d,e,b)),b&&(ot.$$addScopeInfo(C,d,!0,!(w&&(w===b||w===b.$$originalDirective))),ot.$$addScopeClass(C,!0),d.$$isolateBindings=b.$$isolateBindings,(S=Ft(e,E,d,d.$$isolateBindings,b)).removeWatches&&d.$on("$destroy",S.removeWatches)),m){var _=y[T],M=m[T],R=_.$$bindings.bindToController;M.instance=M(),C.data("$"+_.name+"Controller",M.instance),M.bindingInfo=Ft(g,E,M.instance,R,_)}for(x(y,(function(t,e){var n=t.require;t.bindToController&&!H(n)&&D(n)&&O(m[e].instance,$t(e,n,C,m))})),x(m,(function(t){var e=t.instance;if(W(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){p(t)}if(W(e.$onInit))try{e.$onInit()}catch(t){p(t)}W(e.$doCheck)&&(g.$watch((function(){e.$doCheck()})),e.$doCheck()),W(e.$onDestroy)&&g.$on("$destroy",(function(){e.$onDestroy()}))})),l=0,f=u.length;l<f;l++)Bt(h=u[l],h.isolateScope?d:e,C,E,h.require&&$t(h.directiveName,h.require,C,m),v);var P=e;for(b&&(b.template||null===b.templateUrl)&&(P=d),t&&t(P,i.childNodes,void 0,a),l=c.length-1;l>=0;l--)Bt(h=c[l],h.isolateScope?d:e,C,E,h.require&&$t(h.directiveName,h.require,C,m),v);x(m,(function(t){var e=t.instance;W(e.$postLink)&&e.$postLink()}))}}function $t(t,e,n,r){var i;if(L(e)){var o=e.match(c),s=e.substring(o[0].length),a=o[1]||o[3],u="?"===o[2];if("^^"===a?n=n.parent():i=(i=r&&r[s])&&i.instance,!i){var l="$"+s+"Controller";i="^^"===a&&n[0]&&9===n[0].nodeType?null:a?n.inheritedData(l):n.data(l)}if(!i&&!u)throw pn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(H(e)){i=[];for(var f=0,h=e.length;f<h;f++)i[f]=$t(t,e[f],n,r)}else D(e)&&(i={},x(e,(function(e,o){i[o]=$t(t,e,n,r)})));return i||null}function yt(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=R(t[r],{$$isolateScope:e,$$newScope:n})}function wt(t,n,i,o,s,a,u){if(n===s)return null;var c=null;if(r.hasOwnProperty(n))for(var l,f=e.get(n+"Directive"),h=0,p=f.length;h<p;h++)if(l=f[h],(I(o)||o>l.priority)&&-1!==l.restrict.indexOf(i)){if(a&&(l=R(l,{$$start:a,$$end:u})),!l.$$bindings){var d=l.$$bindings=g(l,l.name);D(d.isolateScope)&&(l.$$isolateBindings=d.isolateScope)}t.push(l),c=l}return c}function xt(t){if(r.hasOwnProperty(t))for(var n=e.get(t+"Directive"),i=0,o=n.length;i<o;i++)if(n[i].multiElement)return!0;return!1}function Ct(t,e){var n=e.$attr,r=t.$attr;x(t,(function(r,i){"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),x(e,(function(e,i){t.hasOwnProperty(i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function Et(t,e,n,r,i,o,a,u){var c,l,f=[],h=e[0],g=t.shift(),m=R(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=W(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,$=g.templateNamespace;return e.empty(),d(v).then((function(p){var d,y,b,w;if(p=tt(p),g.replace){if(b=ue(p)?[]:wn(At($,Q(p))),d=b[0],1!==b.length||1!==d.nodeType)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);y={$attr:{}},Pt(r,e,d);var C=pt(d,[],y);D(g.scope)&&yt(C,!0),t=C.concat(t),Ct(n,y)}else d=h,e.html(p);for(t.unshift(m),c=vt(t,d,n,i,e,g,o,a,u),x(r,(function(t,n){t===d&&(r[n]=e[0])})),l=ut(e[0].childNodes,i);f.length;){var E=f.shift(),k=f.shift(),S=f.shift(),A=f.shift(),O=e[0];if(!E.$$destroyed){if(k!==h){var T=k.className;u.hasElementTranscludeDirective&&g.replace||(O=pe(d)),Pt(S,s(k),O),J(s(O),T)}w=c.transcludeOnThisElement?lt(E,c.transclude,A):A,c(l,E,O,r,w)}}f=null})).catch((function(t){z(t)&&p(t)})),function(t,e,n,r,i){var o=i;e.$$destroyed||(f?f.push(e,n,r,o):(c.transcludeOnThisElement&&(o=lt(e,c.transclude,i)),c(l,e,n,r,o)))}}function kt(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 St(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw pn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,bt(r))}function At(e,n){switch(e=f(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function Ot(t){return q(A.valueOf(t),"ng-prop-srcset")}function Tt(t,e,n,r){if(h.test(r))throw pn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=nt(t),o=function(t,e){var n=e.toLowerCase();return C[t+"|"+n]||C["*|"+n]}(i,r),s=N;"srcset"!==r||"img"!==i&&"source"!==i?o&&(s=A.getTrusted.bind(A,o)):s=Ot,e.push({priority:100,compile:function(t,e){var i=E(e[n]),o=E(e[n],(function(t){return A.valueOf(t)}));return{pre:function(t,e){function n(){var n=i(t);e[0][r]=s(n)}n(),t.$watch(o,n)}}}})}function _t(t,e,n){t.push(Ro(E,S,p,e,n,!1))}function Mt(t,e,r,i,o){var s=nt(t),a=function(t,e){return"srcdoc"===e?A.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?A.RESOURCE_URL:A.MEDIA_URL:"xlinkHref"===e?"image"===t?A.MEDIA_URL:"a"===t?A.URL:A.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?A.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:A.URL}(s,i),c=!o,l=u[i]||o,f=n(r,c,a,l);if(f){if("multiple"===i&&"select"===s)throw pn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",bt(t));if(h.test(i))throw pn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:function(){return{pre:function(t,e,o){var s=o.$$observers||(o.$$observers=Dt()),u=o[i];u!==r&&(f=u&&n(u,!0,a,l),r=u),f&&(o[i]=f(t),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||t).$watch(f,(function(t,e){"class"===i&&t!==e?o.$updateClass(t,e):o.$set(i,t)})))}}}})}}function Pt(e,n,r){var i,o,a=n[0],u=n.length,c=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]===a){e[i++]=r;for(var l=i,f=l+u-1,h=e.length;l<h;l++,f++)f<h?e[l]=e[f]:delete e[l];e.length-=u-1,e.context===a&&(e.context=r);break}c&&c.replaceChild(r,a);var p=t.document.createDocumentFragment();for(i=0;i<u;i++)p.appendChild(n[i]);for(s.hasData(a)&&(s.data(r,s.data(a)),s(a).off("$destroy")),s.cleanData(p.querySelectorAll("*")),i=1;i<u;i++)delete n[i];n[0]=r,n.length=1}function Nt(t,e){return O((function(){return t.apply(null,arguments)}),t,e)}function Bt(t,e,n,r,i,o){try{t(e,n,r,i,o)}catch(t){p(t,bt(n))}}function It(t,e){if($)throw pn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function Ft(t,e,r,i,o){var s,a=[],u={};function c(e,n,i){W(r.$onChanges)&&!st(n,i)&&(_||(t.$$postDigest(V),_=[]),s||(s={},_.push(f)),s[e]&&(i=s[e].previousValue),s[e]=new mn(i,n))}function f(){r.$onChanges(s),s=void 0}return x(i,(function(i,s){var f,h,p,d,g,m=i.attrName,v=i.optional;switch(i.mode){case"@":v||l.call(e,m)||(It(m,o.name),r[s]=e[m]=void 0),g=e.$observe(m,(function(t){if(L(t)||X(t)){var e=r[s];c(s,t,e),r[s]=t}})),e.$$observers[m].$$scope=t,L(f=e[m])?r[s]=n(f)(t):X(f)&&(r[s]=f),u[s]=new mn(dn,r[s]),a.push(g);break;case"=":if(!l.call(e,m)){if(v)break;It(m,o.name),e[m]=void 0}if(v&&!e[m])break;h=E(e[m]),d=h.literal?at:st,p=h.assign||function(){throw f=r[s]=h(t),pn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[m],m,o.name)},f=r[s]=h(t);var $=function(e){return d(e,r[s])||(d(e,f)?p(t,e=r[s]):r[s]=e),f=e};$.$stateful=!0,g=i.collection?t.$watchCollection(e[m],$):t.$watch(E(e[m],$),null,h.literal),a.push(g);break;case"<":if(!l.call(e,m)){if(v)break;It(m,o.name),e[m]=void 0}if(v&&!e[m])break;var y=(h=E(e[m])).literal,b=r[s]=h(t);u[s]=new mn(dn,r[s]),g=t[i.collection?"$watchCollection":"$watch"](h,(function(t,e){if(e===t){if(e===b||y&&at(e,b))return;e=b}c(s,t,e),r[s]=t})),a.push(g);break;case"&":if(v||l.call(e,m)||It(m,o.name),(h=e.hasOwnProperty(m)?E(e[m]):P)===P&&v)break;r[s]=function(e){return h(t,e)}}})),{initialChanges:u,removeWatches:a.length&&function(){for(var t=0,e=a.length;t<e;++t)a[t]()}}}}]}function mn(t,e){this.previousValue=t,this.currentValue=e}gn.$inject=["$provide","$$sanitizeUriProvider"],mn.prototype.isFirstChange=function(){return this.previousValue===dn};var vn=/^((?:x|data)[:\-_])/i,$n=/[:\-_]+(.)/g;function yn(t){return t.replace(vn,"").replace($n,(function(t,e,n){return n?e.toUpperCase():e}))}function bn(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 wn(t){var e=(t=s(t)).length;if(e<=1)return t;for(;e--;){var n=t[e];(8===n.nodeType||n.nodeType===Lt&&""===n.nodeValue.trim())&&d.call(t,e,1)}return t}var xn=i("$controller"),Cn=/^(\S+)(\s+as\s+([\w$]+))?$/;function En(t,e){if(e&&L(e))return e;if(L(t)){var n=Cn.exec(t);if(n)return n[3]}}function kn(){var t={};this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){It(e,"controller"),D(e)?O(t,e):t[e]=n},this.$get=["$injector",function(e){return function(r,i,o,s){var a,u,c,l;if(o=!0===o,s&&L(s)&&(l=s),L(r)){if(!(u=r.match(Cn)))throw xn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(c=u[1],l=l||u[3],!(r=t.hasOwnProperty(c)?t[c]:function(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&&W(t)?ht(o,t):t}(i.$scope,c,!0)))throw xn("ctrlreg","The controller with the name '{0}' is not registered.",c);Bt(r,c,!0)}if(o){var f=(H(r)?r[r.length-1]:r).prototype;return a=Object.create(f||null),l&&n(i,l,a,c||r.name),O((function(){var t=e.invoke(r,a,i,c);return t!==a&&(D(t)||W(t))&&(a=t,l&&n(i,l,a,c||r.name)),a}),{instance:a,identifier:l})}return a=e.instantiate(r,i,c),l&&n(i,l,a,c||r.name),a};function n(t,e,n,r){if(!t||!D(t.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}function Sn(){this.$get=["$window",function(t){return s(t.document)}]}function An(){this.$get=["$document","$rootScope",function(t,e){var n=t[0],r=n&&n.hidden;function i(){r=n.hidden}return t.on("visibilitychange",i),e.$on("$destroy",(function(){t.off("visibilitychange",i)})),function(){return r}}]}function On(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}var Tn=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof s&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},_n={"Content-Type":"application/json;charset=utf-8"},Mn=/^\[|^\{(?!\{)/,Rn={"[":/]$/,"{":/}$/},Pn=/^\)]\}',?\n/,Nn=i("$http");function jn(t){return D(t)?q(t)?t.toISOString():dt(t):t}function Bn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return C(t,(function(t,n){null===t||I(t)||W(t)||(H(t)?x(t,(function(t){e.push(Et(n)+"="+Et(jn(t)))})):e.push(Et(n)+"="+Et(jn(t))))})),e.join("&")}}}function In(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,r,i){H(n)?x(n,(function(e,n){t(e,r+"["+(D(e)?n:"")+"]")})):D(n)&&!q(n)?C(n,(function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))})):(W(n)&&(n=n()),e.push(Et(r)+"="+(null==n?"":Et(jn(n)))))}(t,"",!0),e.join("&")}}}function Fn(t,e){if(L(t)){var n=t.replace(Pn,"").trim();if(n){var r=e("Content-Type"),i=r&&0===r.indexOf("application/json");if(i||(s=(o=n).match(Mn))&&Rn[s[0]].test(o))try{t=gt(n)}catch(e){if(!i)return t;throw Nn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var o,s;return t}function Dn(t){var e,n=Dt();function r(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return L(t)?x(t.split("\n"),(function(t){e=t.indexOf(":"),r(f(Q(t.substr(0,e))),Q(t.substr(e+1)))})):D(t)&&x(t,(function(t,e){r(f(e),Q(t))})),n}function Un(t){var e;return function(n){if(e||(e=Dn(t)),n){var r=e[f(n)];return void 0===r&&(r=null),r}return e}}function Ln(t,e,n,r){return W(r)?r(t,e,n):(x(r,(function(r){t=r(t,e,n)})),t)}function Vn(t){return 200<=t&&t<300}function qn(){var t=this.defaults={transformResponse:[Fn],transformRequest:[function(t){return!D(t)||(e=t,"[object File]"===m.call(e))||function(t){return"[object Blob]"===m.call(t)}(t)||function(t){return"[object FormData]"===m.call(t)}(t)?t:dt(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Vt(_n),put:Vt(_n),patch:Vt(_n)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},e=!1;this.useApplyAsync=function(t){return F(t)?(e=!!t,this):e};var n=this.interceptors=[],r=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,s,a,u,c,l,p,d){var g=u("$http");t.paramSerializer=L(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var m=[];x(n,(function(t){m.unshift(L(t)?p.get(t):p.invoke(t))}));var v,$=(v=[si].concat(r.map(ui)),function(t){var e=ui(t);return v.some(ci.bind(null,e))});function y(n){if(!D(n))throw i("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!L(d.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",n.url);var r=O({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer,jsonpCallbackParam:t.jsonpCallbackParam},n);r.headers=function(e){var n,r,i,o=t.headers,s=O({},e.headers);o=O({},o.common,o[f(e.method)]);t:for(n in o){for(i in r=f(n),s)if(f(i)===r)continue t;s[n]=o[n]}return function(t,e){var n,r={};return x(t,(function(t,i){W(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t})),r}(s,Vt(e))}(n),r.method=h(r.method),r.paramSerializer=L(r.paramSerializer)?p.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var u=[],v=[],b=l.resolve(r);return x(m,(function(t){(t.request||t.requestError)&&u.unshift(t.request,t.requestError),(t.response||t.responseError)&&v.push(t.response,t.responseError)})),b=w(b,u),b=(b=w(b=b.then((function(n){var r=n.headers,i=Ln(n.data,Un(r),void 0,n.transformRequest);I(i)&&x(r,(function(t,e){"content-type"===f(e)&&delete r[e]}));I(n.withCredentials)&&!I(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){var i,o,u=l.defer(),h=u.promise,p=n.headers,m="jsonp"===f(n.method),v=n.url;m?v=d.getTrustedResourceUrl(v):L(v)||(v=d.valueOf(v));v=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(v,n.paramSerializer(n.params)),m&&(v=function(t,e){var n=t.split("?");if(n.length>2)throw Nn("badjsonp",'Illegal use more than one "?", in url, "{1}"',t);return x(xt(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw Nn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);if(r===e)throw Nn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t)})),t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}(v,n.jsonpCallbackParam));y.pendingRequests.push(n),h.then(k,k),!n.cache&&!t.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=D(n.cache)?n.cache:D(t.cache)?t.cache:g);i&&(F(o=i.get(v))?K(o)?o.then(E,E):H(o)?C(o[1],o[0],Vt(o[2]),o[3],o[4]):C(o,200,{},"OK","complete"):i.put(v,h));if(I(o)){var b=$(n.url)?a()[n.xsrfCookieName||t.xsrfCookieName]:void 0;b&&(p[n.xsrfHeaderName||t.xsrfHeaderName]=b),s(n.method,v,r,(function(t,n,r,o,s){i&&(Vn(t)?i.put(v,[t,n,Dn(r),o,s]):i.remove(v));function a(){C(n,t,r,o,s)}e?c.$applyAsync(a):(a(),c.$$phase||c.$apply())}),p,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return h;function w(t){if(t){var n={};return x(t,(function(t,r){n[r]=function(n){function r(){t(n)}e?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}})),n}}function C(t,e,r,i,o){(Vn(e=e>=-1?e:0)?u.resolve:u.reject)({data:t,status:e,headers:Un(r),config:n,statusText:i,xhrStatus:o})}function E(t){C(t.data,t.status,Vt(t.headers()),t.statusText,t.xhrStatus)}function k(){var t=y.pendingRequests.indexOf(n);-1!==t&&y.pendingRequests.splice(t,1)}}(n,i).then(C,C)})),v)).finally((function(){o.$$completeOutstandingRequest(P,"$http")}));function w(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function C(t){var e=O({},t);return e.data=Ln(t.data,t.headers,t.status,r.transformResponse),Vn(t.status)?e:l.reject(e)}}return y.pendingRequests=[],function(t){x(arguments,(function(t){y[t]=function(e,n){return y(O({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){x(arguments,(function(t){y[t]=function(e,n,r){return y(O({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),y.defaults=t,y}]}function Hn(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return function(t,e,n,r,i){return function(o,s,a,u,c,l,h,p,d,g){if(s=s||t.url(),"jsonp"===f(o))var m=r.createCallback(s),v=function(t,e,n){t=t.replace("JSON_CALLBACK",e);var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){o.removeEventListener("load",s),o.removeEventListener("error",s),i.body.removeChild(o),o=null;var a=-1,u="unknown";t&&("load"!==t.type||r.wasCalled(e)||(t={type:"error"}),u=t.type,a="error"===t.type?404:200),n&&n(a,u)},o.addEventListener("load",s),o.addEventListener("error",s),i.body.appendChild(o),s}(s,m,(function(t,e){var n=200===t&&r.getResponse(m);C(u,t,n,"",e,"complete"),r.removeCallback(m)}));else{var $=e(o,s),y=!1;$.open(o,s,!0),x(c,(function(t,e){F(t)&&$.setRequestHeader(e,t)})),$.onload=function(){var t=$.statusText||"",e="response"in $?$.response:$.responseText,n=1223===$.status?204:$.status;0===n&&(n=e?200:"file"===ui(s).protocol?404:0),C(u,n,e,$.getAllResponseHeaders(),t,"complete")};if($.onerror=function(){C(u,-1,null,null,"","error")},$.ontimeout=function(){C(u,-1,null,null,"","timeout")},$.onabort=function(){C(u,-1,null,null,"",y?"timeout":"abort")},x(d,(function(t,e){$.addEventListener(e,t)})),x(g,(function(t,e){$.upload.addEventListener(e,t)})),h&&($.withCredentials=!0),p)try{$.responseType=p}catch(t){if("json"!==p)throw t}$.send(I(a)?null:a)}if(l>0)var b=n((function(){w("timeout")}),l);else K(l)&&l.then((function(){w(F(l.$$timeoutId)?"timeout":"abort")}));function w(t){y="timeout"===t,v&&v(),$&&$.abort()}function C(t,e,r,i,o,s){F(b)&&n.cancel(b),v=$=null,t(e,r,i,o,s)}}}(t,r,t.defer,e,n[0])}]}var Wn=y.$interpolateMinErr=i("$interpolate");function Yn(){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,c),"g"),u=new RegExp(e.replace(/./g,c),"g");function c(t){return"\\\\\\"+t}function l(n){return n.replace(a,t).replace(u,e)}function f(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function h(a,u,c,h){var p=c===i.URL||c===i.MEDIA_URL;if(!a.length||-1===a.indexOf(t)){if(u)return;var d=l(a);p&&(d=i.getTrusted(c,d));var g=j(d);return g.exp=a,g.expressions=[],g.$$watchDelegate=f,g}h=!!h;for(var m,v,$,y,b,w=0,x=[],C=a.length,E=[],k=[];w<C;){if(-1===(m=a.indexOf(t,w))||-1===(v=a.indexOf(e,m+o))){w!==C&&E.push(l(a.substring(w)));break}w!==m&&E.push(l(a.substring(w,m))),y=a.substring(m+o,v),x.push(y),w=v+s,k.push(E.length),E.push("")}b=1===E.length&&1===k.length;var S=p&&b?void 0:function(t){try{return t=c&&!p?i.getTrusted(c,t):i.valueOf(t),h&&!F(t)?t:Ut(t)}catch(t){r(Wn.interr(a,t))}};if($=x.map((function(t){return n(t,S)})),!u||x.length){var A=function(t){for(var e=0,n=x.length;e<n;e++){if(h&&I(t[e]))return;E[k[e]]=t[e]}return p?i.getTrusted(c,b?E[0]:E.join("")):(c&&E.length>1&&Wn.throwNoconcat(a),E.join(""))};return O((function(t){var e=0,n=x.length,i=new Array(n);try{for(;e<n;e++)i[e]=$[e](t);return A(i)}catch(t){r(Wn.interr(a,t))}}),{exp:a,expressions:x,$$watchDelegate:function(t,e){var n;return t.$watchGroup($,(function(r,i){var o=A(r);e.call(this,o,r!==i?n:o,t),n=o}))}})}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}Wn.throwNoconcat=function(t){throw Wn("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)},Wn.interr=function(t,e){return Wn("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Jn=i("$interval");function Gn(){this.$get=["$$intervalFactory","$window",function(t,e){var n={},r=function(t){e.clearInterval(t),delete n[t]},i=t((function(t,r,i){var o=e.setInterval(t,r);return n[o]=i,o}),r);return i.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$intervalId"))throw Jn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(t.$$intervalId))return!1;var e=t.$$intervalId,i=n[e];return Dr(i.promise),i.reject("canceled"),r(e),!0},i}]}function Xn(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,o){return function(s,a,u,c){var l=arguments.length>4,f=l?ft(arguments,4):[],h=0,p=F(c)&&!c,d=(p?n:e).defer(),g=d.promise;function m(){l?s.apply(null,f):s(h)}function v(){p?t.defer(m):r.$evalAsync(m),d.notify(h++),u>0&&h>=u&&(d.resolve(h),o(g.$$intervalId)),p||r.$apply()}return u=F(u)?u:0,g.$$intervalId=i(v,a,d,p),g}}}]}var Kn=function(){this.$get=function(){var t=y.callbacks,e={};return{createCallback:function(n){var r="_"+(t.$$counter++).toString(36),i="angular.callbacks."+r,o=function(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}(r);return e[i]=t[r]=o,i},wasCalled:function(t){return e[t].called},getResponse:function(t){return e[t].data},removeCallback:function(n){var r=e[n];delete t[r.id],delete e[n]}}}},Zn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Qn={http:80,https:443,ftp:21},tr=i("$location");function er(t,e,n){var r,i=(r=[],x(e,(function(t,e){H(t)?x(t,(function(t){r.push(Et(e,!0)+(!0===t?"":"="+Et(t,!0)))})):r.push(Et(e,!0)+(!0===t?"":"="+Et(t,!0)))})),r.length?r.join("&"):""),o=n?"#"+Ct(n):"";return function(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=Ct(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(i?"?"+i:"")+o}function nr(t,e){var n=ui(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=_(n.port)||Qn[n.protocol]||null}var rr=/^\s*[\\/]{2,}/;function ir(t,e,n){if(rr.test(t))throw tr("badpath",'Invalid url "{0}".',t);var r="/"!==t.charAt(0);r&&(t="/"+t);var i=ui(t),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){for(var n=t.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),e.$$search=xt(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function or(t,e){return t.slice(0,e.length)===e}function sr(t,e){if(or(e,t))return e.substr(t.length)}function ar(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function ur(t,e,n){this.$$html5=!0,n=n||"",nr(t,this),this.$$parse=function(t){var n=sr(e,t);if(!L(n))throw tr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);ir(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(F(o=sr(t,r))?(s=o,a=n&&F(o=sr(n,o))?e+(sr("/",o)||o):t+s):F(o=sr(e,r))?a=e+o:e===r+"/"&&(a=e),a&&this.$$parse(a),!!a);var o,s,a}}function cr(t,e,n){nr(t,this),this.$$parse=function(r){var i,o=sr(t,r)||sr(e,r);I(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",I(o)&&(t=r,this.replace())):I(i=sr(n,o))&&(i=o),ir(i,this,!1),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;or(e,n)&&(e=e.replace(n,""));if(i.exec(e))return t;return(r=i.exec(t))?r[1]:t}(this.$$path,i,t),this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e,n){return ar(t)===ar(e)&&(this.$$parse(e),!0)}}function lr(t,e,n){this.$$html5=!0,cr.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(t===ar(r)?o=r:(s=sr(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,s},this.$$normalizeUrl=function(e){return t+n+e}}var fr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=er(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:hr("$$absUrl"),url:function(t){if(I(t))return this.$$url;var e=Zn.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:hr("$$protocol"),host:hr("$$host"),port:hr("$$port"),path:pr("$$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(L(t)||V(t))t=t.toString(),this.$$search=xt(t);else{if(!D(t))throw tr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");x(t=ot(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:I(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:pr("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function hr(t){return function(){return this[t]}}function pr(t,e){return function(n){return I(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function dr(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return F(e)?(t=e,this):t},this.html5Mode=function(t){return X(t)?(e.enabled=t,this):D(t)?(X(t.enabled)&&(e.enabled=t.enabled),X(t.requireBase)&&(e.requireBase=t.requireBase),(X(t.rewriteLinks)||L(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){var u,c,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw tr("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?ur:lr}else l=ar(p),c=cr;var d=function(t){return t.substr(0,ar(t).lastIndexOf("/")+1)}(l);(u=new c(l,d,"#"+t)).$$parseLinkUrl(p,p),u.$$state=r.state();var g=/^\s*(javascript|mailto):/i;function m(t,e,n){var i=u.url(),o=u.$$state;try{r.url(t,e,n),u.$$state=r.state()}catch(t){throw u.url(i),u.$$state=o,t}}o.on("click",(function(t){var i=e.rewriteLinks;if(i&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var a=s(t.target);"a"!==nt(a[0]);)if(a[0]===o[0]||!(a=a.parent())[0])return;if(!L(i)||!I(a.attr(i))){var c=a.prop("href"),l=a.attr("href")||a.attr("xlink:href");D(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=ui(c.animVal).href),g.test(c)||!c||a.attr("target")||t.isDefaultPrevented()||u.$$parseLinkUrl(c,l)&&(t.preventDefault(),u.absUrl()!==r.url()&&n.$apply())}}})),u.absUrl()!==p&&r.url(u.absUrl(),!0);var v=!0;return r.onUrlChange((function(t,e){or(t,d)?(n.$evalAsync((function(){var r,i=u.absUrl(),o=u.$$state;u.$$parse(t),u.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,u.absUrl()===t&&(r?(u.$$parse(i),u.$$state=o,m(i,!1,o)):(v=!1,$(i,o)))})),n.$$phase||n.$digest()):a.location.href=t})),n.$watch((function(){if(v||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var t=r.url(),e=u.absUrl(),o=r.state(),s=u.$$replace,a=!((c=t)===(l=e)||ui(c).href===ui(l).href)||u.$$html5&&i.history&&o!==u.$$state;(v||a)&&(v=!1,n.$evalAsync((function(){var e=u.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,u.$$state,o).defaultPrevented;u.absUrl()===e&&(r?(u.$$parse(t),u.$$state=o):(a&&m(e,s,o===u.$$state?null:u.$$state),$(t,o)))})))}var c,l;u.$$replace=!1})),u;function $(t,e){n.$broadcast("$locationChangeSuccess",u.absUrl(),t,u.$$state,e)}}]}function gr(){var t=!0,e=this;this.debugEnabled=function(e){return F(e)?(t=e,this):t},this.$get=["$window",function(n){var r,i=o||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:a("log"),info:a("info"),warn:a("warn"),error:a("error"),debug:(r=a("debug"),function(){t&&r.apply(e,arguments)})};function s(t){return z(t)&&(t.stack&&i?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 a(t){var e=n.console||{},r=e[t]||e.log||P;return function(){var t=[];return x(arguments,(function(e){t.push(s(e))})),Function.prototype.apply.call(r,e,t)}}}]}x([lr,cr,ur],(function(t){t.prototype=Object.create(fr),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==ur||!this.$$html5)throw tr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=I(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));var mr=i("$parse"),vr={}.constructor.prototype.valueOf;function $r(t){return t+""}var yr=Dt();x("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){yr[t]=!0}));var br={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},wr=function(t){this.options=t};wr.prototype={constructor:wr,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.isIdentifierStart(this.peekMultichar()))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=yr[e],o=yr[n],s=yr[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},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=F(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw mr("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=f(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(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}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+=br[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 xr=function(t,e){this.lexer=t,this.options=e};function Cr(t,e){return void 0!==t?t:e}function Er(t,e){return void 0===t?e:void 0===e?t:t+e}xr.Program="Program",xr.ExpressionStatement="ExpressionStatement",xr.AssignmentExpression="AssignmentExpression",xr.ConditionalExpression="ConditionalExpression",xr.LogicalExpression="LogicalExpression",xr.BinaryExpression="BinaryExpression",xr.UnaryExpression="UnaryExpression",xr.CallExpression="CallExpression",xr.MemberExpression="MemberExpression",xr.Identifier="Identifier",xr.Literal="Literal",xr.ArrayExpression="ArrayExpression",xr.Property="Property",xr.ObjectExpression="ObjectExpression",xr.ThisExpression="ThisExpression",xr.LocalsExpression="LocalsExpression",xr.NGValueParameter="NGValueParameter",xr.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:xr.Program,body:t}},expressionStatement:function(){return{type:xr.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();if(this.expect("=")){if(!Ar(t))throw mr("lval","Trying to assign a value to a non l-value");t={type:xr.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:xr.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:xr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:xr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:xr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:xr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:xr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:xr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:xr.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.selfReferential.hasOwnProperty(this.peek().text)?t=ot(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:xr.Literal,value:this.options.literals[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:xr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:xr.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:xr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:xr.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.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:xr.Identifier,name:t.text}},constant:function(){return{type:xr.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:xr.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:xr.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:xr.ObjectExpression,properties:e}},throwError:function(t,e){throw mr("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 mr("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 mr("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)},selfReferential:{this:{type:xr.ThisExpression},$locals:{type:xr.LocalsExpression}}};function kr(t,e,n){var r,i,o,s=t.isPure=function(t,e){switch(t.type){case xr.MemberExpression:if(t.computed)return!1;break;case xr.UnaryExpression:return 1;case xr.BinaryExpression:return"+"!==t.operator&&1;case xr.CallExpression:return!1}return void 0===e?2:e}(t,n);switch(t.type){case xr.Program:r=!0,x(t.body,(function(t){kr(t.expression,e,s),r=r&&t.expression.constant})),t.constant=r;break;case xr.Literal:t.constant=!0,t.toWatch=[];break;case xr.UnaryExpression:kr(t.argument,e,s),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case xr.BinaryExpression:kr(t.left,e,s),kr(t.right,e,s),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case xr.LogicalExpression:kr(t.left,e,s),kr(t.right,e,s),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case xr.ConditionalExpression:kr(t.test,e,s),kr(t.alternate,e,s),kr(t.consequent,e,s),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case xr.Identifier:t.constant=!1,t.toWatch=[t];break;case xr.MemberExpression:kr(t.object,e,s),t.computed&&kr(t.property,e,s),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case xr.CallExpression:o=!!t.filter&&function(t,e){return!t(e).$stateful}(e,t.callee.name),r=o,i=[],x(t.arguments,(function(t){kr(t,e,s),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=o?i:[t];break;case xr.AssignmentExpression:kr(t.left,e,s),kr(t.right,e,s),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case xr.ArrayExpression:r=!0,i=[],x(t.elements,(function(t){kr(t,e,s),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=i;break;case xr.ObjectExpression:r=!0,i=[],x(t.properties,(function(t){kr(t.value,e,s),r=r&&t.value.constant,i.push.apply(i,t.value.toWatch),t.computed&&(kr(t.key,e,!1),r=r&&t.key.constant,i.push.apply(i,t.key.toWatch))})),t.constant=r,t.toWatch=i;break;case xr.ThisExpression:case xr.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Sr(t){if(1===t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}}function Ar(t){return t.type===xr.Identifier||t.type===xr.MemberExpression}function Or(t){if(1===t.body.length&&Ar(t.body[0].expression))return{type:xr.AssignmentExpression,left:t.body[0].expression,right:{type:xr.NGValueParameter},operator:"="}}function Tr(t){this.$filter=t}function _r(t){this.$filter=t}function Mr(t,e,n){this.ast=new xr(t,n),this.astCompiler=n.csp?new _r(e):new Tr(e)}function Rr(t){return W(t.valueOf)?t.valueOf():vr.call(t)}function Pr(){var t,e,n=Dt(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){r[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(i){var o={csp:ut().noUnsafeEval,literals:ot(r),isIdentifierStart:W(t)&&t,isIdentifierContinue:W(e)&&e};return s.$$getAst=function(t){return new Mr(new wr(o),i,o).getAst(t).ast},s;function s(t,e){var r,s;switch(typeof t){case"string":if(t=t.trim(),!(r=n[s=t]))r=new Mr(new wr(o),i,o).parse(t),n[s]=h(r);return p(r,e);case"function":return p(t,e);default:return p(P,e)}}function a(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Rr(t))&&!n)&&(t===e||t!=t&&e!=e)}function u(t,e,n,r,i){var o,s=r.inputs;if(1===s.length){var u=a;return s=s[0],t.$watch((function(t){var e=s(t);return a(e,u,s.isPure)||(o=r(t,void 0,void 0,[e]),u=e&&Rr(e)),o}),e,n,i)}for(var c=[],l=[],f=0,h=s.length;f<h;f++)c[f]=a,l[f]=null;return t.$watch((function(t){for(var e=!1,n=0,i=s.length;n<i;n++){var u=s[n](t);(e||(e=!a(u,c[n],s[n].isPure)))&&(l[n]=u,c[n]=u&&Rr(u))}return e&&(o=r(t,void 0,void 0,l)),o}),e,n,i)}function c(t,e,n,r,i){var o,s,a=r.literal?l:F,u=r.$$intercepted||r,c=r.$$interceptor||N,f=r.inputs&&!u.inputs;return d.literal=r.literal,d.constant=r.constant,d.inputs=r.inputs,h(d),o=t.$watch(d,e,n,i);function p(){a(s)&&o()}function d(t,e,n,r){return s=f&&r?r[0]:u(t,e,n,r),a(s)&&t.$$postDigest(p),c(s)}}function l(t){var e=!0;return x(t,(function(t){F(t)||(e=!1)})),e}function f(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function h(t){return t.constant?t.$$watchDelegate=f:t.oneTime?t.$$watchDelegate=c:t.inputs&&(t.$$watchDelegate=u),t}function p(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,o,s){var a=n&&s?s[0]:t(r,i,o,s);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return 2===t.isPure?function(e){return t(e)}:t})))),h(r)}}]}function Nr(){var t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return Br((function(t){e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return F(e)?(t=e,this):t}}function jr(){var t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return Br((function(t){e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return F(e)?(t=e,this):t}}function Br(t,e,n){var r=i("$q",TypeError),o=0,s=[];function a(){return new u}function u(){var t=this.promise=new c;this.resolve=function(e){h(t,e)},this.reject=function(e){p(t,e)},this.notify=function(e){g(t,e)}}function c(){this.$$state={status:0}}function l(){for(;!o&&s.length;){var t=s.shift();if(!Ir(t)){Fr(t);var n="Possibly unhandled rejection: "+qt(t.value);z(t.value)?e(t.value,n):e(n)}}}function f(r){!n||r.pending||2!==r.status||Ir(r)||(0===o&&0===s.length&&t(l),s.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++o,t((function(){!function(r){var i,s,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var u=0,c=a.length;u<c;++u){Fr(r),s=a[u][0],i=a[u][r.status];try{W(i)?h(s,i(r.value)):1===r.status?h(s,r.value):p(s,r.value)}catch(t){p(s,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--o,n&&0===o&&t(l)}}(r)})))}function h(t,e){t.$$state.status||(e===t?d(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):function t(e,n){var r,i=!1;try{(D(n)||W(n))&&(r=n.then),W(r)?(e.$$state.status=-1,r.call(n,o,s,(function(t){g(e,t)}))):(e.$$state.value=n,e.$$state.status=1,f(e.$$state))}catch(t){s(t)}function o(n){i||(i=!0,t(e,n))}function s(t){i||(i=!0,d(e,t))}}(t,e))}function p(t,e){t.$$state.status||d(t,e)}function d(t,e){t.$$state.value=e,t.$$state.status=2,f(t.$$state)}function g(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&t((function(){for(var t,n,o=0,s=i.length;o<s;o++){n=i[o][0],t=i[o][3];try{g(n,W(t)?t(r):r)}catch(t){e(t)}}}))}function m(t){var e=new c;return p(e,t),e}function v(t,e,n){var r=null;try{W(n)&&(r=n())}catch(t){return m(t)}return K(r)?r.then((function(){return e(t)}),m):e(t)}function $(t,e,n,r){var i=new c;return h(i,t),i.then(e,n,r)}O(c.prototype,{then:function(t,e,n){if(I(t)&&I(e)&&I(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&&f(this.$$state),r},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return v(e,y,t)}),(function(e){return v(e,m,t)}),e)}});var y=$;function b(t){if(!W(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);var e=new c;return t((function(t){h(e,t)}),(function(t){p(e,t)})),e}return b.prototype=c.prototype,b.defer=a,b.reject=m,b.when=$,b.resolve=y,b.all=function(t){var e=new c,n=0,r=H(t)?[]:{};return x(t,(function(t,i){n++,$(t).then((function(t){r[i]=t,--n||h(e,r)}),(function(t){p(e,t)}))})),0===n&&h(e,r),e},b.race=function(t){var e=a();return x(t,(function(t){$(t).then(e.resolve,e.reject)})),e.promise},b}function Ir(t){return!!t.pur}function Fr(t){t.pur=!0}function Dr(t){t.$$state&&Fr(t.$$state)}function Ur(){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 Lr(){var t=10,e=i("$rootScope"),n=null,r=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(i,s,a){function u(t){t.currentScope.$$destroyed=!0}function c(){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.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}c.prototype={constructor:c,$new:function(t,e){var n;return e=e||this,t?(n=new c).$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,this.$$suspended=!1}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",u),n},$watch:function(t,e,r,i){var o=s(t),a=W(e)?e:P;if(o.$$watchDelegate)return o.$$watchDelegate(this,a,r,o,t);var u=this,c=u.$$watchers,l={fn:a,last:b,get:o,exp:i||t,eq:!!r};return n=null,c||((c=u.$$watchers=[]).$$digestWatchIndex=-1),c.unshift(l),c.$$digestWatchIndex++,$(this,1),function(){var t=it(c,l);t>=0&&($(u,-1),t<c.$$digestWatchIndex&&c.$$digestWatchIndex--),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 u=!0;return o.$evalAsync((function(){u&&e(r,r,o)})),function(){u=!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 c(){s=!1;try{a?(a=!1,e(r,r,o)):e(r,n,o)}finally{for(var i=0;i<t.length;i++)n[i]=r[i]}}return x(t,(function(t,e){var n=o.$watch(t,(function(t){r[e]=t,s||(s=!0,o.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(t,e){g.$$pure=s(t).literal,g.$stateful=!g.$$pure;var n,r,i,o=this,a=e.length>1,u=0,c=s(t,g),f=[],h={},p=!0,d=0;function g(t){var e,i,o,s;if(!I(n=t)){if(D(n))if(w(n)){r!==f&&(d=(r=f).length=0,u++),e=n.length,d!==e&&(u++,r.length=d=e);for(var a=0;a<e;a++)s=r[a],o=n[a],s!=s&&o!=o||s===o||(u++,r[a]=o)}else{for(i in r!==h&&(r=h={},d=0,u++),e=0,n)l.call(n,i)&&(e++,o=n[i],s=r[i],i in r?s!=s&&o!=o||s===o||(u++,r[i]=o):(d++,r[i]=o,u++));if(d>e)for(i in u++,r)l.call(n,i)||(d--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(c,(function(){if(p?(p=!1,e(n,n,o)):e(n,i,o),a)if(D(n))if(w(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)l.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var o,s,u,c,l,d,$,y,w,x=t,E=h.length?f:this,k=[];m("$digest"),a.$$checkUrlChange(),this===f&&null!==r&&(a.defer.cancel(r),C()),n=null;do{l=!1,$=E;for(var S=0;S<h.length;S++){try{(0,(w=h[S]).fn)(w.scope,w.locals)}catch(t){i(t)}n=null}h.length=0;t:do{if(c=!$.$$suspended&&$.$$watchers)for(c.$$digestWatchIndex=c.length;c.$$digestWatchIndex--;)try{if(o=c[c.$$digestWatchIndex])if((s=(0,o.get)($))===(u=o.last)||(o.eq?at(s,u):M(s)&&M(u))){if(o===n){l=!1;break t}}else l=!0,n=o,o.last=o.eq?ot(s,null):s,(0,o.fn)(s,u===b?s:u,$),x<5&&(k[y=4-x]||(k[y]=[]),k[y].push({msg:W(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:s,oldVal:u}))}catch(t){i(t)}if(!(d=!$.$$suspended&&$.$$watchersCount&&$.$$childHead||$!==E&&$.$$nextSibling))for(;$!==E&&!(d=$.$$nextSibling);)$=$.$parent}while($=d);if((l||h.length)&&!x--)throw v(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,k)}while(l||h.length);for(v();g<p.length;)try{p[g++]()}catch(t){i(t)}p.length=g=0,a.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===f&&a.$$applicationDestroyed(),$(this,-this.$$watchersCount),this.$$listenerCount)y(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=P,this.$on=this.$watch=this.$watchGroup=function(){return P},this.$$listeners={},this.$$nextSibling=null,function t(e){9===o&&(e.$$childHead&&t(e.$$childHead),e.$$nextSibling&&t(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}(this)}},$eval:function(t,e){return s(t)(this,e)},$evalAsync:function(t,e){f.$$phase||h.length||a.defer((function(){h.length&&f.$digest()}),null,"$evalAsync"),h.push({scope:this,fn:s(t),locals:e})},$$postDigest:function(t){p.push(t)},$apply:function(t){try{m("$apply");try{return this.$eval(t)}finally{v()}}catch(t){i(t)}finally{try{f.$digest()}catch(t){throw i(t),t}}},$applyAsync:function(t){var e=this;t&&d.push((function(){e.$eval(t)})),t=s(t),null===r&&(r=a.defer((function(){f.$apply(C)}),null,"$applyAsync"))},$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&&(delete n[r],y(i,1,t))}},$emit:function(t,e){var n,r,o,s=[],a=this,u=!1,c={name:t,targetScope:a,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=lt([c],arguments,1);do{for(n=a.$$listeners[t]||s,c.currentScope=a,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,l)}catch(t){i(t)}else n.splice(r,1),r--,o--;if(u)break;a=a.$parent}while(a);return c.currentScope=null,c},$broadcast:function(t,e){var n=this,r=n,o=n,s={name:t,targetScope:n,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;for(var a,u,c,l=lt([s],arguments,1);r=o;){for(s.currentScope=r,u=0,c=(a=r.$$listeners[t]||[]).length;u<c;u++)if(a[u])try{a[u].apply(null,l)}catch(t){i(t)}else a.splice(u,1),u--,c--;if(!(o=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}};var f=new c,h=f.$$asyncQueue=[],p=f.$$postDigestQueue=[],d=f.$$applyAsyncQueue=[],g=0;return f;function m(t){if(f.$$phase)throw e("inprog","{0} already in progress",f.$$phase);f.$$phase=t}function v(){f.$$phase=null}function $(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function y(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function b(){}function C(){for(;d.length;)try{d.shift()()}catch(t){i(t)}r=null}}]}function Vr(){var t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return F(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return F(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i=r?e:t,o=ui(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}Tr.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},kr(t,e.$filter);var n,r="";if(this.stage="assign",n=Or(t)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Sr(t.body);e.stage="inputs",x(o,(function(t,n){var r="fn"+n;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;var i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push({name:r,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",a=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,$r,Cr,Er);return this.state=this.stage=void 0,a},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return x(e,(function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")})),e.length&&t.push("fn.inputs=["+e.map((function(t){return t.name})).join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return x(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,n,r,i,o){var s,a,u,c,l,f=this;if(r=r||P,!o&&F(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case xr.Program:x(t.body,(function(e,n){f.recurse(e.expression,void 0,void 0,(function(t){a=t})),n!==t.body.length-1?f.current().body.push(a,";"):f.return_(a)}));break;case xr.Literal:c=this.escape(t.value),this.assign(e,c),r(e||c);break;case xr.UnaryExpression:this.recurse(t.argument,void 0,void 0,(function(t){a=t})),c=t.operator+"("+this.ifDefined(a,0)+")",this.assign(e,c),r(c);break;case xr.BinaryExpression:this.recurse(t.left,void 0,void 0,(function(t){s=t})),this.recurse(t.right,void 0,void 0,(function(t){a=t})),c="+"===t.operator?this.plus(s,a):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(a,0):"("+s+")"+t.operator+"("+a+")",this.assign(e,c),r(c);break;case xr.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),r(e);break;case xr.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),r(e);break;case xr.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){i&&1!==i&&f.if_(f.isNull(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))),r(e);break;case xr.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,s,void 0,(function(){f.if_(f.notNull(s),(function(){t.computed?(a=f.nextId(),f.recurse(t.property,a),f.getStringValue(a),i&&1!==i&&f.if_(f.not(f.computedMember(s,a)),f.lazyAssign(f.computedMember(s,a),"{}")),c=f.computedMember(s,a),f.assign(e,c),n&&(n.computed=!0,n.name=a)):(i&&1!==i&&f.if_(f.isNull(f.nonComputedMember(s,t.property.name)),f.lazyAssign(f.nonComputedMember(s,t.property.name),"{}")),c=f.nonComputedMember(s,t.property.name),f.assign(e,c),n&&(n.computed=!1,n.name=t.property.name))}),(function(){f.assign(e,"undefined")})),r(e)}),!!i);break;case xr.CallExpression:e=e||this.nextId(),t.filter?(a=f.filter(t.callee.name),u=[],x(t.arguments,(function(t){var e=f.nextId();f.recurse(t,e),u.push(e)})),c=a+"("+u.join(",")+")",f.assign(e,c),r(e)):(a=f.nextId(),s={},u=[],f.recurse(t.callee,a,s,(function(){f.if_(f.notNull(a),(function(){x(t.arguments,(function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,(function(t){u.push(t)}))})),c=s.name?f.member(s.context,s.name,s.computed)+"("+u.join(",")+")":a+"("+u.join(",")+")",f.assign(e,c)}),(function(){f.assign(e,"undefined")})),r(e)})));break;case xr.AssignmentExpression:a=this.nextId(),s={},this.recurse(t.left,void 0,s,(function(){f.if_(f.notNull(s.context),(function(){f.recurse(t.right,a),c=f.member(s.context,s.name,s.computed)+t.operator+a,f.assign(e,c),r(e||c)}))}),1);break;case xr.ArrayExpression:u=[],x(t.elements,(function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,(function(t){u.push(t)}))})),c="["+u.join(",")+"]",this.assign(e,c),r(e||c);break;case xr.ObjectExpression:u=[],l=!1,x(t.properties,(function(t){t.computed&&(l=!0)})),l?(e=e||this.nextId(),this.assign(e,"{}"),x(t.properties,(function(t){t.computed?(s=f.nextId(),f.recurse(t.key,s)):s=t.key.type===xr.Identifier?t.key.name:""+t.key.value,a=f.nextId(),f.recurse(t.value,a),f.assign(f.member(e,s,t.computed),a)}))):(x(t.properties,(function(e){f.recurse(e.value,t.constant?void 0:f.nextId(),void 0,(function(t){u.push(f.escape(e.key.type===xr.Identifier?e.key.name:""+e.key.value)+":"+t)}))})),c="{"+u.join(",")+"}",this.assign(e,c)),r(e||c);break;case xr.ThisExpression:this.assign(e,"s"),r(e||"s");break;case xr.LocalsExpression:this.assign(e,"l"),r(e||"l");break;case xr.NGValueParameter:this.assign(e,"v"),r(e||"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+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},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(L(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(V(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 mr("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]}},_r.prototype={compile:function(t){var e,n,r=this;kr(t,r.$filter),(e=Or(t))&&(n=this.recurse(e));var i,o=Sr(t.body);o&&(i=[],x(o,(function(t,e){var n=r.recurse(t);n.isPure=t.isPure,t.input=n,i.push(n),t.watchId=e})));var s=[];x(t.body,(function(t){s.push(r.recurse(t.expression))}));var a=0===t.body.length?P:1===t.body.length?s[0]:function(t,e){var n;return x(s,(function(r){n=r(t,e)})),n};return n&&(a.assign=function(t,e,r){return n(t,r,e)}),i&&(a.inputs=i),a},recurse:function(t,e,n){var r,i,o,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case xr.Literal:return this.value(t.value,e);case xr.UnaryExpression:return i=this.recurse(t.argument),this["unary"+t.operator](i,e);case xr.BinaryExpression:case xr.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this["binary"+t.operator](r,i,e);case xr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case xr.Identifier:return s.identifier(t.name,e,n);case xr.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case xr.CallExpression:return o=[],x(t.arguments,(function(t){o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,s){for(var a=[],u=0;u<o.length;++u)a.push(o[u](t,n,r,s));var c=i.apply(void 0,a,s);return e?{context:void 0,name:void 0,value:c}:c}:function(t,n,r,s){var a,u=i(t,n,r,s);if(null!=u.value){for(var c=[],l=0;l<o.length;++l)c.push(o[l](t,n,r,s));a=u.value.apply(u.context,c)}return e?{value:a}:a};case xr.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,o,s){var a=r(t,n,o,s),u=i(t,n,o,s);return a.context[a.name]=u,e?{value:u}:u};case xr.ArrayExpression:return o=[],x(t.elements,(function(t){o.push(s.recurse(t))})),function(t,n,r,i){for(var s=[],a=0;a<o.length;++a)s.push(o[a](t,n,r,i));return e?{value:s}:s};case xr.ObjectExpression:return o=[],x(t.properties,(function(t){t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===xr.Identifier?t.key.name:""+t.key.value,computed:!1,value:s.recurse(t.value)})})),function(t,n,r,i){for(var s={},a=0;a<o.length;++a)o[a].computed?s[o[a].key(t,n,r,i)]=o[a].value(t,n,r,i):s[o[a].key]=o[a].value(t,n,r,i);return e?{value:s}:s};case xr.ThisExpression:return function(t){return e?{value:t}:t};case xr.LocalsExpression:return function(t,n){return e?{value:n}:n};case xr.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=F(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=F(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=Er(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),u=e(r,i,o,s),c=(F(a)?a:0)-(F(u)?u:0);return n?{value:c}:c}},"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 u=t(i,o,s,a)?e(i,o,s,a):n(i,o,s,a);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(r,i,o,s){var a=i&&t in i?i:r;n&&1!==n&&a&&null==a[t]&&(a[t]={});var u=a?a[t]:void 0;return e?{context:a,name:t,value:u}:u}},computedMember:function(t,e,n,r){return function(i,o,s,a){var u,c,l=t(i,o,s,a);return null!=l&&(u=$r(u=e(i,o,s,a)),r&&1!==r&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(t,e,n,r){return function(i,o,s,a){var u=t(i,o,s,a);r&&1!==r&&u&&null==u[e]&&(u[e]={});var c=null!=u?u[e]:void 0;return n?{context:u,name:e,value:c}:c}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}},Mr.prototype={constructor:Mr,parse:function(t){var e=this.getAst(t),n=this.astCompiler.compile(e.ast);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===xr.Literal||t.body[0].expression.type===xr.ArrayExpression||t.body[0].expression.type===xr.ObjectExpression)}(e.ast),n.constant=function(t){return t.constant}(e.ast),n.oneTime=e.oneTime,n},getAst:function(t){var e=!1;return":"===(t=t.trim()).charAt(0)&&":"===t.charAt(1)&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}};var qr=i("$sce"),Hr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},zr=/_([a-z])/g;function Wr(t){return t.replace(zr,Kt)}function Yr(t){var e=[];return F(t)&&x(t,(function(t){e.push(function(t){if("self"===t)return t;if(L(t)){if(t.indexOf("***")>-1)throw qr("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=tt(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(Y(t))return new RegExp("^"+t.source+"$");throw qr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function Jr(){this.SCE_CONTEXTS=Hr;var e=["self"],n=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Yr(t)),e},this.resourceUrlBlacklist=function(t){return arguments.length&&(n=Yr(t)),n},this.$get=["$injector","$$sanitizeUri",function(r,i){var o=function(t){throw qr("unsafe","Attempting to use an unsafe value in a safe context.")};function s(e,n){return"self"===e?ci(n,si)||function(e){return ci(e,function(){if(t.document.baseURI)return t.document.baseURI;ii||((ii=t.document.createElement("a")).href=".",ii=ii.cloneNode(!1));return ii.href}())}(n):!!e.exec(n.href)}function a(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}r.has("$sanitize")&&(o=r.get("$sanitize"));var u=a(),c={};return c[Hr.HTML]=a(u),c[Hr.CSS]=a(u),c[Hr.MEDIA_URL]=a(u),c[Hr.URL]=a(c[Hr.MEDIA_URL]),c[Hr.JS]=a(u),c[Hr.RESOURCE_URL]=a(c[Hr.URL]),{trustAs:function(t,e){var n=c.hasOwnProperty(t)?c[t]:null;if(!n)throw qr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||I(e)||""===e)return e;if("string"!=typeof e)throw qr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,r){if(null===r||I(r)||""===r)return r;var a=c.hasOwnProperty(t)?c[t]:null;if(a&&r instanceof a)return r.$$unwrapTrustedValue();if(W(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),t===Hr.MEDIA_URL||t===Hr.URL)return i(r.toString(),t===Hr.MEDIA_URL);if(t===Hr.RESOURCE_URL){if(function(t){var r,i,o=ui(t.toString()),a=!1;for(r=0,i=e.length;r<i;r++)if(s(e[r],o)){a=!0;break}if(a)for(r=0,i=n.length;r<i;r++)if(s(n[r],o)){a=!1;break}return a}(r))return r;throw qr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",r.toString())}if(t===Hr.HTML)return o(r);throw qr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof u?t.$$unwrapTrustedValue():t}}}]}function Gr(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&o<8)throw qr("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=Vt(Hr);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=N),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 x(Hr,(function(t,e){var n=f(e);r[Wr("parse_as_"+n)]=function(e){return i(t,e)},r[Wr("get_trusted_"+n)]=function(e){return s(t,e)},r[Wr("trust_as_"+n)]=function(e){return a(t,e)}})),r}]}function Xr(){this.$get=["$window","$document",function(t,e){var n={},r=!(!(t.nw&&t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,i=_((/android (\d+)/.exec(f((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},u=a.body&&a.body.style,c=!1,l=!1;return u&&(c=!(!("transition"in u)&&!("webkitTransition"in u)),l=!(!("animation"in u)&&!("webkitAnimation"in u))),{history:!(!r||i<4||s),hasEvent:function(t){if("input"===t&&o)return!1;if(I(n[t])){var e=a.createElement("div");n[t]="on"+t in e}return n[t]},csp:ut(),transitions:c,animations:l,android:i}}]}function Kr(){this.$get=j((function(t){return new Zr(t)}))}function Zr(t){var e={},n=[],r=this.ALL_TASKS_TYPE="$$all$$",i=this.DEFAULT_TASK_TYPE="$$default$$";function o(){var t=n.pop();return t&&t.cb}function s(t){for(var e=n.length-1;e>=0;--e){var r=n[e];if(r.type===t)return n.splice(e,1),r.cb}}this.completeTask=function(n,a){a=a||i;try{n()}finally{!function(t){e[t=t||i]&&(e[t]--,e[r]--)}(a);var u=e[a],c=e[r];if(!c||!u)for(var l,f=c?s:o;l=f(a);)try{l()}catch(e){t.error(e)}}},this.incTaskCount=function(t){e[t=t||i]=(e[t]||0)+1,e[r]=(e[r]||0)+1},this.notifyWhenNoPendingTasks=function(t,i){e[i=i||r]?n.push({type:i,cb:t}):t()}}var Qr=i("$templateRequest");function ti(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,o){function s(a,u){s.totalPendingRequests++,L(a)&&!I(n.get(a))||(a=o.getTrustedResourceUrl(a));var c=r.defaults&&r.defaults.transformResponse;return H(c)?c=c.filter((function(t){return t!==Fn})):c===Fn&&(c=null),r.get(a,O({cache:n,transformResponse:c},t)).finally((function(){s.totalPendingRequests--})).then((function(t){return n.put(a,t.data)}),(function(t){u||(t=Qr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t));return i.reject(t)}))}return s.totalPendingRequests=0,s}]}function ei(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={findBindings:function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return x(r,(function(t){var r=y.element(t).data("$binding");r&&x(r,(function(r){n?new RegExp("(^|\\s)"+tt(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)}};return r}]}var ni=i("$timeout");function ri(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){var o={};function s(s,a,u){W(s)||(u=a,a=s,s=P);var c,l=ft(arguments,3),f=F(u)&&!u,h=(f?r:n).defer(),p=h.promise;return c=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,"$timeout"),p.$$timeoutId=c,o[c]=h,p}return s.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$timeoutId"))throw ni("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(t.$$timeoutId))return!1;var n=t.$$timeoutId,r=o[n];return Dr(r.promise),r.reject("canceled"),delete o[n],e.defer.cancel(n)},s}]}var ii,oi=t.document.createElement("a"),si=ui(t.location.href);oi.href="http://[::1]";var ai="[::1]"===oi.hostname;function ui(t){if(!L(t))return t;var e=t;o&&(oi.setAttribute("href",e),e=oi.href),oi.setAttribute("href",e);var n=oi.hostname;return!ai&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:oi.href,protocol:oi.protocol?oi.protocol.replace(/:$/,""):"",host:oi.host,search:oi.search?oi.search.replace(/^\?/,""):"",hash:oi.hash?oi.hash.replace(/^#/,""):"",hostname:n,port:oi.port,pathname:"/"===oi.pathname.charAt(0)?oi.pathname:"/"+oi.pathname}}function ci(t,e){return t=ui(t),e=ui(e),t.protocol===e.protocol&&t.host===e.host}function li(){this.$get=j(t)}function fi(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,u,c=function(t){try{return t.cookie||""}catch(t){return""}}(e);if(c!==r)for(t=(r=c).split("; "),n={},s=0;s<t.length;s++)(a=(o=t[s]).indexOf("="))>0&&(u=i(o.substring(0,a)),I(n[u])&&(n[u]=i(o.substring(a+1))));return n}}function hi(){this.$get=fi}function pi(t){function e(n,r){if(D(n)){var i={};return x(n,(function(t,n){i[n]=e(n,t)})),i}return t.factory(n+"Filter",r)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",vi),e("date",Ti),e("filter",di),e("json",_i),e("limitTo",Pi),e("lowercase",Mi),e("number",$i),e("orderBy",ji),e("uppercase",Ri)}function di(){return function(t,e,n,r){if(!w(t)){if(null==t)return t;throw i("filter")("notarray","Expected array but received: {0}",t)}var o,s;switch(r=r||"$",mi(e)){case"function":o=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=function(t,e,n,r){var i=D(t)&&n in t;!0===e?e=at:W(e)||(e=function(t,e){return!I(t)&&(null===t||null===e?t===e:!(D(e)||D(t)&&!B(t))&&(t=f(""+t),e=f(""+e),-1!==t.indexOf(e)))});return function(o){return i&&!D(o)?gi(o,t[n],e,n,!1):gi(o,t,e,n,r)}}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,o)}}function gi(t,e,n,r,i,o){var s=mi(t),a=mi(e);if("string"===a&&"!"===e.charAt(0))return!gi(t,e.substring(1),n,r,i);if(H(t))return t.some((function(t){return gi(t,e,n,r,i)}));switch(s){case"object":var u;if(i){for(u in t)if(u.charAt&&"$"!==u.charAt(0)&&gi(t[u],e,n,r,!0))return!0;return!o&&gi(t,e,n,r,!1)}if("object"===a){for(u in e){var c=e[u];if(!W(c)&&!I(c)){var l=u===r;if(!gi(l?t:t[u],c,n,r,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function mi(t){return null===t?"null":typeof t}fi.$inject=["$document"],pi.$inject=["$provide"];function vi(t){var e=t.NUMBER_FORMATS;return function(t,n,r){I(n)&&(n=e.CURRENCY_SYM),I(r)&&(r=e.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==t?t:yi(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(i,n)}}function $i(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:yi(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function yi(t,e,n,r,i){if(!L(t)&&!V(t)||isNaN(t))return"";var o,s=!isFinite(t),a=!1,u=Math.abs(t)+"",c="";if(s)c="∞";else{(function(t,e,n,r){var i=t.d,o=i.length-t.i,s=(e=I(e)?Math.min(Math.max(n,o),r):+e)+t.i,a=i[s];if(s>0){i.splice(Math.max(t.i,s));for(var u=s;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,s=e+1),i[0]=0;for(var c=1;c<s;c++)i[c]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[s-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight((function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)}),0);f&&(i.unshift(f),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}}(u),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("")),c=d.join(n),p.length&&(c+=r+p.join("")),h&&(c+="e+"+h)}return t<0&&!a?e.negPre+c+e.negSuf:e.posPre+c+e.posSuf}function bi(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),i+t}function wi(t,e,n,r,i){return n=n||0,function(o){var s=o["get"+t]();return(n>0||s>-n)&&(s+=n),0===s&&-12===n&&(s=12),bi(s,e,r,i)}}function xi(t,e,n){return function(r,i){var o=r["get"+t]();return i[h((n?"STANDALONE":"")+(e?"SHORT":"")+t)][o]}}function Ci(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Ei(t){return function(e){var n,r=Ci(e.getFullYear()),i=+(n=e,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return bi(1+Math.round(i/6048e5),t)}}function ki(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}vi.$inject=["$locale"],$i.$inject=["$locale"];var Si={yyyy:wi("FullYear",4,0,!1,!0),yy:wi("FullYear",2,0,!0,!0),y:wi("FullYear",1,0,!1,!0),MMMM:xi("Month"),MMM:xi("Month",!0),MM:wi("Month",2,1),M:wi("Month",1,1),LLLL:xi("Month",!1,!0),dd:wi("Date",2),d:wi("Date",1),HH:wi("Hours",2),H:wi("Hours",1),hh:wi("Hours",2,-12),h:wi("Hours",1,-12),mm:wi("Minutes",2),m:wi("Minutes",1),ss:wi("Seconds",2),s:wi("Seconds",1),sss:wi("Milliseconds",3),EEEE:xi("Day"),EEE:xi("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,i=r>=0?"+":"";return i+=bi(Math[r>0?"floor":"ceil"](r/60),2)+bi(Math.abs(r%60),2)},ww:Ei(2),w:Ei(1),G:ki,GG:ki,GGG:ki,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},Ai=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Oi=/^-?\d+$/;function Ti(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="",u=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,L(n)&&(n=Oi.test(n)?_(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=_(n[9]+n[10]),o=_(n[9]+n[11])),s.call(r,_(n[1]),_(n[2])-1,_(n[3]));var u=_(n[4]||0)-i,c=_(n[5]||0)-o,l=_(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return a.call(r,u,c,l,f),r}return t}(n)),V(n)&&(n=new Date(n)),!q(n)||!isFinite(n.getTime()))return n;for(;r;)(s=Ai.exec(r))?r=(u=lt(u,s,1)).pop():(u.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=vt(i,c),n=yt(n,i,!0)),x(u,(function(e){a+=(o=Si[e])?o(n,t.DATETIME_FORMATS,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),a}}function _i(){return function(t,e){return I(e)&&(e=2),dt(t,e)}}Ti.$inject=["$locale"];var Mi=j(f),Ri=j(h);function Pi(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):_(e),M(e)?t:(V(t)&&(t=t.toString()),w(t)?(n=(n=!n||isNaN(n)?0:_(n))<0?Math.max(0,t.length+n):n,e>=0?Ni(t,n,n+e):0===n?Ni(t,e,t.length):Ni(t,Math.max(0,n+e),n)):t)}}function Ni(t,e,n){return L(t)?t.slice(e,n):p.call(t,e,n)}function ji(t){return function(r,o,s,a){if(null==r)return r;if(!w(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);H(o)||(o=[o]),0===o.length&&(o=["+"]);var u=o.map((function(e){var n=1,r=N;if(W(e))r=e;else if(L(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e)).constant)){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})),c=s?-1:1,l=W(a)?a:n,f=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:u.map((function(r){return function(t,n){var r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(W(t.valueOf)&&e(t=t.valueOf()))return t;if(B(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n)}))}}));return f.sort((function(t,e){for(var r=0,i=u.length;r<i;r++){var o=l(t.predicateValues[r],e.predicateValues[r]);if(o)return o*u[r].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=f.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,r=t.type,i=e.type;if(r===i){var o=t.value,s=e.value;"string"===r?(o=o.toLowerCase(),s=s.toLowerCase()):"object"===r&&(D(o)&&(o=t.index),D(s)&&(s=e.index)),o!==s&&(n=o<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function Bi(t){return W(t)&&(t={link:t}),t.restrict=t.restrict||"AC",j(t)}ji.$inject=["$parse"];var Ii=j({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]"===m.call(e.prop("href"))?"xlink:href":"href";e.on("click",(function(t){e.attr(n)||t.preventDefault()}))}}}}),Fi={};x(Me,(function(t,e){if("multiple"!==t){var n=yn("ng-"+e),r=i;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[n]&&i(t,0,r)}),Fi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(t,r,i){t.$watch(i[n],(function(t){i.$set(e,!!t)}))}})),x(Pe,(function(t,e){Fi[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(c);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],(function(t){r.$set(e,t)}))}}}})),x(["src","srcset","href"],(function(t){var e=yn("ng-"+t);Fi[e]=["$sce",function(n){return{priority:99,link:function(r,i,s){var a=t,u=t;"href"===t&&"[object SVGAnimatedString]"===m.call(i.prop("href"))&&(u="xlinkHref",s.$attr[u]="xlink:href",a=null),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(function(e){e?(s.$set(u,e),o&&a&&i.prop(a,s[u])):"href"===t&&s.$set(u,null)}))}}}]}));var Di={$addControl:P,$getControls:j([]),$$renameControl:function(t,e){t.$name=e},$removeControl:P,$setValidity:P,$setDirty:P,$setPristine:P,$setSubmitted:P,$$setSubmitted:P};function Ui(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Di,this.$$element=t,this.$$animate=r,Hi(this)}Ui.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Ui.prototype={$rollbackViewValue:function(){x(this.$$controls,(function(t){t.$rollbackViewValue()}))},$commitViewValue:function(){x(this.$$controls,(function(t){t.$commitViewValue()}))},$addControl:function(t){It(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls:function(){return Vt(this.$$controls)},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],x(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),x(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),x(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),it(this.$$controls,t),t.$$parentForm=Di},$setDirty:function(){this.$$animate.removeClass(this.$$element,Uo),this.$$animate.addClass(this.$$element,Lo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Uo,Lo+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,x(this.$$controls,(function(t){t.$setPristine()}))},$setUntouched:function(){x(this.$$controls,(function(t){t.$setUntouched()}))},$setSubmitted:function(){for(var t=this;t.$$parentForm&&t.$$parentForm!==Di;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,x(this.$$controls,(function(t){t.$$setSubmitted&&t.$$setSubmitted()}))}},zi({clazz:Ui,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&&(it(r,n),0===r.length&&delete t[e])}});var Li=function(t){return["$timeout","$parse",function(e,n){return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:Ui,compile:function(n,i){n.addClass(Uo).addClass(Fo);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,s){var a=s[0];if(!("action"in i)){var u=function(e){t.$apply((function(){a.$commitViewValue(),a.$setSubmitted()})),e.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",(function(){e((function(){n[0].removeEventListener("submit",u)}),0,!1)}))}(s[1]||a.$$parentForm).$addControl(a);var c=o?r(a.$name):P;o&&(c(t,a),i.$observe(o,(function(e){a.$name!==e&&(c(t,void 0),a.$$parentForm.$$renameControl(a,e),(c=r(a.$name))(t,a))}))),n.on("$destroy",(function(){a.$$parentForm.$removeControl(a),c(t,void 0),O(a,Di)}))}}}};function r(t){return""===t?n('this[""]').assign:n(t).assign||P}}]},Vi=Li(),qi=Li(!0);function Hi(t){t.$$classCache={},t.$$classCache[Do]=!(t.$$classCache[Fo]=t.$$element.hasClass(Fo))}function zi(t){var e=t.clazz,n=t.set,r=t.unset;function i(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function o(t,e,n){e=e?"-"+Rt(e,"-"):"",i(t,Fo+e,!0===n),i(t,Do+e,!1===n)}e.prototype.$setValidity=function(t,e,s){var a;I(e)?function(t,e,r,i){t[e]||(t[e]={});n(t[e],r,i)}(this,"$pending",t,s):function(t,e,n,i){t[e]&&r(t[e],n,i);Wi(t[e])&&(t[e]=void 0)}(this,"$pending",t,s),X(e)?e?(r(this.$error,t,s),n(this.$$success,t,s)):(n(this.$error,t,s),r(this.$$success,t,s)):(r(this.$error,t,s),r(this.$$success,t,s)),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(i(this,"ng-pending",!1),this.$valid=Wi(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,t,a=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,a,this)}}function Wi(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var Yi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Ji=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Gi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Xi=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ki=/^(\d{4,})-(\d{2})-(\d{2})$/,Zi=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Qi=/^(\d{4,})-W(\d\d)$/,to=/^(\d{4,})-(\d\d)$/,eo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,no=Dt();x("date,datetime-local,month,time,week".split(","),(function(t){no[t]=!0}));var ro={text:function(t,e,n,r,i,o){oo(t,e,n,r,i,o),io(r)},date:ao("date",Ki,so(Ki,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ao("datetimelocal",Zi,so(Zi,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ao("time",eo,so(eo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ao("week",Qi,(function(t,e){if(q(t))return t;if(L(t)){Qi.lastIndex=0;var n=Qi.exec(t);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,u=0,c=Ci(r),l=7*(i-1);return e&&(o=e.getHours(),s=e.getMinutes(),a=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,c.getDate()+l,o,s,a,u)}}return NaN}),"yyyy-Www"),month:ao("month",to,so(to,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o,s,a){var u;if(uo(t,e,n,r,"number"),co(r),oo(t,e,n,r,i,o),F(n.min)||n.ngMin){var c=n.min||a(n.ngMin)(t);u=lo(c),r.$validators.min=function(t,e){return r.$isEmpty(e)||I(u)||e>=u},n.$observe("min",(function(t){t!==c&&(u=lo(t),c=t,r.$validate())}))}if(F(n.max)||n.ngMax){var l=n.max||a(n.ngMax)(t),f=lo(l);r.$validators.max=function(t,e){return r.$isEmpty(e)||I(f)||e<=f},n.$observe("max",(function(t){t!==l&&(f=lo(t),l=t,r.$validate())}))}if(F(n.step)||n.ngStep){var h=n.step||a(n.ngStep)(t),p=lo(h);r.$validators.step=function(t,e){return r.$isEmpty(e)||I(p)||po(e,u||0,p)},n.$observe("step",(function(t){t!==h&&(p=lo(t),h=t,r.$validate())}))}},url:function(t,e,n,r,i,o){oo(t,e,n,r,i,o),io(r),r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ji.test(n)}},email:function(t,e,n,r,i,o){oo(t,e,n,r,i,o),io(r),r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Gi.test(n)}},radio:function(t,e,n,r){var i=!n.ngTrim||"false"!==Q(n.ngTrim);I(n.name)&&e.attr("name",k());e.on("change",(function(t){var o;e[0].checked&&(o=n.value,i&&(o=Q(o)),r.$setViewValue(o,t&&t.type))})),r.$render=function(){var t=n.value;i&&(t=Q(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i,o){uo(t,e,n,r,"range"),co(r),oo(t,e,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===e[0].type,a=s?0:void 0,u=s?100:void 0,c=s?1:void 0,l=e[0].validity,f=F(n.min),h=F(n.max),p=F(n.step),d=r.$render;r.$render=s&&F(l.rangeUnderflow)&&F(l.rangeOverflow)?function(){d(),r.$setViewValue(e.val())}:d,f&&(a=lo(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||I(a)||e>=a},g("min",(function(t){if(a=lo(t),M(r.$modelValue))return;if(s){var n=e.val();a>n&&(n=a,e.val(n)),r.$setViewValue(n)}else r.$validate()})));h&&(u=lo(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||I(u)||e<=u},g("max",(function(t){if(u=lo(t),M(r.$modelValue))return;if(s){var n=e.val();u<n&&(e.val(u),n=u<a?a:u),r.$setViewValue(n)}else r.$validate()})));p&&(c=lo(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||I(c)||po(e,a||0,c)},g("step",(function(t){if(c=lo(t),M(r.$modelValue))return;s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate()})));function g(t,r){e.attr(t,n[t]);var i=n[t];n.$observe(t,(function(t){t!==i&&(i=t,r(t))}))}},checkbox:function(t,e,n,r,i,o,s,a){var u=go(a,t,"ngTrueValue",n.ngTrueValue,!0),c=go(a,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(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 at(t,u)})),r.$parsers.push((function(t){return t?u:c}))},hidden:P,button:P,submit:P,reset:P,file:P};function io(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function oo(t,e,n,r,i,o){var s,a=f(e[0].type);if(!i.android){var u=!1;e.on("compositionstart",(function(){u=!0})),e.on("compositionupdate",(function(t){(I(t.data)||""===t.data)&&(u=!1)})),e.on("compositionend",(function(){u=!1,c()}))}var c=function(t){if(s&&(o.defer.cancel(s),s=null),!u){var i=e.val(),c=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Q(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))e.on("input",c);else{var l=function(t,e,n){s||(s=o.defer((function(){s=null,e&&e.value===n||c(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)})),i.hasEvent("paste")&&e.on("paste cut drop",l)}e.on("change",c),no[a]&&r.$$hasNativeValidators&&a===n.type&&e.on("keydown wheel mousedown",(function(t){if(!s){var e=this.validity,n=e.badInput,r=e.typeMismatch;s=o.defer((function(){s=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function so(t,e){return function(n,r){var i,o;if(q(n))return n;if(L(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Yi.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n)){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},x(i,(function(t,n){n<e.length&&(o[e[n]]=+t)}));var s=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&s.setFullYear(o.yyyy),s}}return NaN}}function ao(t,e,n,r){return function(i,o,s,a,u,c,l,f){uo(i,o,s,a,t),oo(0,o,s,a,u,c);var h,p,d="time"===t||"datetimelocal"===t;if(a.$parsers.push((function(n){return a.$isEmpty(n)?null:e.test(n)?w(n,h):void(a.$$parserName=t)})),a.$formatters.push((function(t){if(t&&!q(t))throw Vo("datefmt","Expected `{0}` to be a date",t);if(y(t)){h=t;var e=a.$options.getOption("timezone");return e&&(p=e,h=yt(h,e,!0)),function(t,e){var n=r;d&&L(a.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",a.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=l("date")(t,n,e);d&&a.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,""));return i}(t,e)}return h=null,p=null,""})),F(s.min)||s.ngMin){var g=s.min||f(s.ngMin)(i),m=b(g);a.$validators.min=function(t){return!y(t)||I(m)||n(t)>=m},s.$observe("min",(function(t){t!==g&&(m=b(t),g=t,a.$validate())}))}if(F(s.max)||s.ngMax){var v=s.max||f(s.ngMax)(i),$=b(v);a.$validators.max=function(t){return!y(t)||I($)||n(t)<=$},s.$observe("max",(function(t){t!==v&&($=b(t),v=t,a.$validate())}))}function y(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function b(t){return F(t)&&!q(t)?w(t)||void 0:t}function w(t,e){var r=a.$options.getOption("timezone");p&&p!==r&&(e=$t(e,vt(p)));var i=n(t,e);return!isNaN(i)&&r&&(i=yt(i,r)),i}}}function uo(t,e,n,r,i){var o=e[0];(r.$$hasNativeValidators=D(o.validity))&&r.$parsers.push((function(t){var n=e.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function co(t){t.$parsers.push((function(e){return t.$isEmpty(e)?null:Xi.test(e)?parseFloat(e):void(t.$$parserName="number")})),t.$formatters.push((function(e){if(!t.$isEmpty(e)){if(!V(e))throw Vo("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function lo(t){return F(t)&&!V(t)&&(t=parseFloat(t)),M(t)?void 0:t}function fo(t){return(0|t)===t}function ho(t){var e=t.toString(),n=e.indexOf(".");if(-1===n){if(-1<t&&t<1){var r=/e-(\d+)$/.exec(e);if(r)return Number(r[1])}return 0}return e.length-n-1}function po(t,e,n){var r=Number(t),i=!fo(r),o=!fo(e),s=!fo(n);if(i||o||s){var a=i?ho(r):0,u=o?ho(e):0,c=s?ho(n):0,l=Math.max(a,u,c),f=Math.pow(10,l);r*=f,e*=f,n*=f,i&&(r=Math.round(r)),o&&(e=Math.round(e)),s&&(n=Math.round(n))}return(r-e)%n==0}function go(t,e,n,r,i){var o;if(F(r)){if(!(o=t(r)).constant)throw Vo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}var mo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(ro[f(s.type)]||ro.text)(i,o,s,a[0],e,t,n,r)}}}}],vo=function(){var t={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile:function(e,n){if("hidden"===f(n.type))return{pre:function(e,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",t)}}}}},$o=/^(true|false|\d+)$/,yo=function(){function t(t,e,n){var r=F(n)?n:9===o?"":null;t.prop("value",r),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,n){return $o.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(function(e){t(n,r,e)}))}}}},bo=["$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=Ut(t)}))}}}}],wo=["$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=I(t)?"":t}))}}}}],xo=["$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)||"")}))}}}}],Co=j({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}});function Eo(t,e){var n;return t="ngClass"+t,["$parse",function(s){return{restrict:"AC",link:function(a,u,c){var l,f=u.data("$classCounts"),h=!0;function p(t,e){var n=[];return x(t,(function(t){(e>0||f[t])&&(f[t]=(f[t]||0)+e,f[t]===+(e>0)&&n.push(t))})),n.join(" ")}f||(f=Dt(),u.data("$classCounts",f)),"ngClass"!==t&&(n||(n=s("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=l),1),c.$addClass(n)):function(t){t=p(i(t),-1),c.$removeClass(t)}(l);var n;h=t}))),a.$watch(s(c[t],o),(function(t){h===e&&function(t,e){var n=i(t),o=i(e),s=r(n,o),a=r(o,n),u=p(s,-1),l=p(a,1);c.$addClass(l),c.$removeClass(u)}(l,t);l=t}))}}}];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;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){return t&&t.split(" ")}function o(t){if(!t)return t;var e=t;return H(t)?e=t.map(o).join(" "):D(t)?e=Object.keys(t).filter((function(e){return t[e]})).join(" "):L(t)||(e=t+""),e}}var ko=Eo("",!0),So=Eo("Odd",0),Ao=Eo("Even",1),Oo=Bi({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),To=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],_o={},Mo={blur:!0,focus:!0};function Ro(t,e,n,r,i,o){return{restrict:"A",compile:function(s,a){var u=t(a[r]);return function(t,r){r.on(i,(function(r){var i=function(){u(t,{$event:r})};if(e.$$phase)if(o)t.$evalAsync(i);else try{i()}catch(t){n(t)}else t.$apply(i)}))}}}}x("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(t){var e=yn("ng-"+t);_o[e]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return Ro(n,r,i,e,t,Mo[t])}]}));var Po=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,u,c;n.$watch(i.ngIf,(function(n){n?u||s((function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),a={clone:n},t.enter(n,r.parent(),r)})):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),a&&(c=Ft(a.clone),t.leave(c).done((function(t){!1!==t&&(c=null)})),a=null))}))}}}],No=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:y.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,u,c,l){var f,h,p,d=0,g=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done((function(t){!1!==t&&(h=null)})),h=p,p=null)};r.$watch(o,(function(o){var u=function(t){!1===t||!F(a)||a&&!r.$eval(a)||e()},h=++d;o?(t(o,!0).then((function(t){if(!r.$$destroyed&&h===d){var e=r.$new();c.template=t;var a=l(e,(function(t){g(),n.enter(t,null,i).done(u)}));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(),c.template=null)}))}}}}],jo=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(m.call(r[0]).match(/SVG/))return r.empty(),void e(le(o.template,t.document).childNodes)(n,(function(t){r.append(t)}),{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],Bo=Bi({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,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,s=o?Q(i):i;r.$parsers.push((function(t){if(!I(t)){var e=[];return t&&x(t.split(s),(function(t){t&&e.push(o?Q(t):t)})),e}})),r.$formatters.push((function(t){if(H(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}},Fo="ng-valid",Do="ng-invalid",Uo="ng-pristine",Lo="ng-dirty",Vo=i("ngModel");function qo(t,e,n,r,i,o,s,a,u){var c;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,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=void 0,this.$name=u(n.name||"",!1)(t),this.$$parentForm=Di,this.$options=Ho,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=s,this.$$parse=i,this.$$q=a,this.$$exceptionHandler=e,Hi(this),(c=this).$$scope.$watch((function(t){var e=c.$$ngModelGet(t);return e===c.$modelValue||c.$modelValue!=c.$modelValue&&e!=e||c.$$setModelValue(e),e}))}qo.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],qo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var t=this.$$parse(this.$$attr.ngModel+"()"),e=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return W(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){W(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw Vo("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,bt(this.$$element))},$render:P,$isEmpty:function(t){return I(t)||""===t||null===t||t!=t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Lo),this.$$animate.addClass(this.$$element,Uo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Uo),this.$$animate.addClass(this.$$element,Lo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!M(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(e,t,(function(t){i||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))}},$$runValidators:function(t,e,n){this.$$currentValidationRunId++;var r,i,o=this.$$currentValidationRunId,s=this;(function(){var t=s.$$parserName;if(!I(s.$$parserValid))return s.$$parserValid||(x(s.$validators,(function(t,e){a(e,null)})),x(s.$asyncValidators,(function(t,e){a(e,null)}))),a(t,s.$$parserValid),s.$$parserValid;a(t,null);return!0})()?!function(){var n=!0;if(x(s.$validators,(function(r,i){var o=Boolean(r(t,e));n=n&&o,a(i,o)})),!n)return x(s.$asyncValidators,(function(t,e){a(e,null)})),!1;return!0}()?u(!1):(r=[],i=!0,x(s.$asyncValidators,(function(n,o){var s=n(t,e);if(!K(s))throw Vo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);a(o,void 0),r.push(s.then((function(){a(o,!0)}),(function(){i=!1,a(o,!1)})))})),r.length?s.$$q.all(r).then((function(){u(i)}),P):u(!0)):u(!1);function a(t,e){o===s.$$currentValidationRunId&&s.$setValidity(t,e)}function u(t){o===s.$$currentValidationRunId&&n(t)}},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,e=this;if(this.$$parserValid=!I(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(I(t=this.$parsers[n](t))){this.$$parserValid=!1;break}M(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){e.$modelValue!==r&&e.$$writeModelToScope()}this.$$rawModelValue=t,i&&(this.$modelValue=t,o()),this.$$runValidators(t,this.$$lastCommittedViewValue,(function(n){i||(e.$modelValue=n?t:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),x(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption("debounce");V(e[t])?e=e[t]:V(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:V(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;e>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue:function(){var t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,P))},$$format:function(){for(var t=this.$formatters,e=t.length,n=this.$modelValue;e--;)n=t[e](n);return n},$$setModelValue:function(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(t){this.$$debounceViewValueCommit(t&&t.type)}},zi({clazz:qo,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Ho,zo=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:qo,priority:1,compile:function(e){return e.addClass(Uo).addClass("ng-untouched").addClass(Fo),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm,s=r[2];s&&(i.$options=s.$options),i.$$initGetterSetters(),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];function s(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(t.$$phase?e.$evalAsync(s):e.$apply(s))}))}}}}}],Wo=/(\s+|^)default(\s+|$)/;function Yo(t){this.$$options=t}Yo.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return x(t=O({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=Q(n.replace(Wo,(function(){return t.updateOnDefault=!0," "}))))}),this),e&&(delete t["*"],Go(t,this.$$options)),Go(t,Ho.$$options),new Yo(t)}},Ho=new Yo({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Jo=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Ho,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}};function Go(t,e){x(e,(function(e,n){F(t[n])||(t[n]=e)}))}var Xo=Bi({terminal:!0,priority:1e3}),Ko=i("ngOptions"),Zo=/^\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]+?))?$/,Qo=["$compile","$document","$parse",function(e,n,r){var i=t.document.createElement("option"),o=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=P},post:function(t,a,u,c){for(var l=c[0],f=c[1],h=u.multiple,p=0,d=a.children(),g=d.length;p<g;p++)if(""===d[p].value){l.hasEmptyOption=!0,l.emptyOption=d.eq(p);break}a.empty();var m,v=!!l.emptyOption;s(i.cloneNode(!1)).val("?");var $=function(t,e,n){var i=t.match(Zo);if(!i)throw Ko("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,bt(e));var o=i[5]||i[7],s=i[6],a=/ as /.test(i[0])&&i[1],u=i[9],c=r(i[2]?i[1]:o),l=a&&r(a)||c,f=u&&r(u),h=u?function(t,e){return f(n,e)}:function(t){return Fe(t)},p=function(t,e){return h(t,y(t,e))},d=r(i[2]||i[1]),g=r(i[3]||""),m=r(i[4]||""),v=r(i[8]),$={},y=s?function(t,e){return $[s]=e,$[o]=t,$}:function(t){return $[o]=t,$};function b(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function x(t){var e;if(!s&&w(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}return{trackBy:u,getTrackByValue:p,getWatchables:r(v,(function(t){for(var e=[],r=x(t=t||[]),o=r.length,s=0;s<o;s++){var a=t===r?s:r[s],u=t[a],c=y(u,a),l=h(u,c);if(e.push(l),i[2]||i[1]){var f=d(n,c);e.push(f)}if(i[4]){var p=m(n,c);e.push(p)}}return e})),getOptions:function(){for(var t=[],e={},r=v(n)||[],i=x(r),o=i.length,s=0;s<o;s++){var a=r===i?s:i[s],c=r[a],f=y(c,a),$=l(n,f),w=h($,f),C=new b(w,$,d(n,f),g(n,f),m(n,f));t.push(C),e[w]=C}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return u?ot(t.viewValue):t.viewValue}}}}}(u.ngOptions,a,t),y=n[0].createDocumentFragment();function b(t,e){var n=i.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,n)}function C(t){var e=m.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}l.generateUnknownOptionValue=function(t){return"?"},h?(l.writeValue=function(t){if(m){var e=t&&t.map(C)||[];m.items.forEach((function(t){t.element.selected&&!rt(e,t)&&(t.element.selected=!1)}))}},l.readValue=function(){var t=a.val()||[],e=[];return x(t,(function(t){var n=m.selectValueMap[t];n&&!n.disabled&&e.push(m.getViewValueFromOption(n))})),e},$.trackBy&&t.$watchCollection((function(){if(H(f.$viewValue))return f.$viewValue.map((function(t){return $.getTrackByValue(t)}))}),(function(){f.$render()}))):(l.writeValue=function(t){if(m){var e=a[0].options[a[0].selectedIndex],n=m.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(a[0].value!==n.selectValue&&(l.removeUnknownOption(),a[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(t)}},l.readValue=function(){var t=m.selectValueMap[a.val()];return t&&!t.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),m.getViewValueFromOption(t)):null},$.trackBy&&t.$watch((function(){return $.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),v&&(e(l.emptyOption)(t),a.prepend(l.emptyOption),8===l.emptyOption[0].nodeType?(l.hasEmptyOption=!1,l.registerOption=function(t,e){""===e.val()&&(l.hasEmptyOption=!0,l.emptyOption=e,l.emptyOption.removeClass("ng-scope"),f.$render(),e.on("$destroy",(function(){var t=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,t&&f.$render()})))}):l.emptyOption.removeClass("ng-scope")),t.$watchCollection($.getWatchables,(function(){var t=m&&l.readValue();if(m)for(var e=m.items.length-1;e>=0;e--){var n=m.items[e];F(n.group)?Oe(n.element.parentNode):Oe(n.element)}m=$.getOptions();var r={};if(m.items.forEach((function(t){var e;F(t.group)?((e=r[t.group])||(e=o.cloneNode(!1),y.appendChild(e),e.label=null===t.group?"null":t.group,r[t.group]=e),b(t,e)):b(t,y)})),a[0].appendChild(y),f.$render(),!f.$isEmpty(t)){var i=l.readValue();($.trackBy||h?at(t,i):t===i)||(f.$setViewValue(i),f.$render())}}))}}}}],ts=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,s,a){var u,c=a.count,l=a.$attr.when&&s.attr(a.$attr.when),h=a.offset||0,p=o.$eval(l)||{},d={},g=e.startSymbol(),m=e.endSymbol(),v=g+c+"-"+h+m,$=y.noop;function b(t){s.text(t||"")}x(a,(function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+f(n[2]);p[r]=s.attr(a.$attr[e])}})),x(p,(function(t,n){d[n]=e(t.replace(r,v))})),o.$watch(c,(function(e){var r=parseFloat(e),i=M(r);if(i||r in p||(r=t.pluralCat(r-h)),!(r===u||i&&M(u))){$();var s=d[r];I(s)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+l),$=P,b()):$=o.$watch(s,b),u=r}}))}}}],es=i("ngRef"),ns=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,n){var r=yn(nt(e)),i=t(n.ngRef),o=i.assign||function(){throw es("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,s){var a;if(s.hasOwnProperty("ngRefRead")){if("$element"===s.ngRefRead)a=e;else if(!(a=e.data("$"+s.ngRefRead+"Controller")))throw es("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',s.ngRefRead,n.ngRef)}else a=e.data("$"+r+"Controller");o(t,a=a||e),e.on("$destroy",(function(){i(t)===a&&o(t,null)}))}}}}],rs=["$parse","$animate","$compile",function(t,e,n){var r=i("ngRepeat"),o=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))},s=function(t){return t.clone[0]},a=function(t){return t.clone[t.clone.length-1]},u=function(t,e,n){return Fe(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,f){var h=f.ngRepeat,p=n.$$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 r("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 r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var y,b=d[3]||d[1],C=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 r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);if($){var E={$id:Fe},k=t($);y=function(t,e,n,r){return C&&(E[C]=e),E[b]=n,E.$index=r,k(t,E)}}return function(t,n,i,f,d){var g=Dt();t.$watchCollection(m,(function(i){var f,m,$,k,S,A,O,T,_,M,R,P,N=n[0],j=Dt();if(v&&(t[v]=i),w(i))_=i,T=y||u;else for(var B in T=y||c,_=[],i)l.call(i,B)&&"$"!==B.charAt(0)&&_.push(B);for(k=_.length,R=new Array(k),f=0;f<k;f++)if(S=i===_?f:_[f],A=i[S],O=T(t,S,A,f),g[O])M=g[O],delete g[O],j[O]=M,R[f]=M;else{if(j[O])throw x(R,(function(t){t&&t.scope&&(g[t.id]=t)})),r("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,O,A);R[f]={id:O,scope:void 0,clone:void 0},j[O]=!0}for(var I in E&&(E[b]=void 0),g){if(P=Ft((M=g[I]).clone),e.leave(P),P[0].parentNode)for(f=0,m=P.length;f<m;f++)P[f].$$NG_REMOVED=!0;M.scope.$destroy()}for(f=0;f<k;f++)if(S=i===_?f:_[f],A=i[S],(M=R[f]).scope){$=N;do{$=$.nextSibling}while($&&$.$$NG_REMOVED);s(M)!==$&&e.move(Ft(M.clone),null,N),N=a(M),o(M.scope,f,b,A,C,S,k)}else d((function(t,n){M.scope=n;var r=p.cloneNode(!1);t[t.length++]=r,e.enter(t,null,N),N=r,M.clone=t,j[M.id]=M,o(M.scope,f,b,A,C,S,k)}));g=j}))}}}}],is=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,(function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],os=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,(function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],ss=Bi((function(t,e,n){t.$watchCollection(n.ngStyle,(function(t,n){n&&t!==n&&x(n,(function(t,n){e.css(n,"")})),t&&e.css(t)}))})),as=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var s=i.ngSwitch||i.on,a=[],u=[],c=[],l=[],f=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};n.$watch(s,(function(n){for(var r,i;c.length;)t.cancel(c.pop());for(r=0,i=l.length;r<i;++r){var s=Ft(u[r].clone);l[r].$destroy(),(c[r]=t.leave(s)).done(f(c,r))}u.length=0,l.length=0,(a=o.cases["!"+n]||o.cases["?"])&&x(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};u.push(s),t.enter(r,o.parent(),o)}))}))}))}}}],us=Bi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){x(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(t,e,n){return n[e-1]!==t})),(function(t){r.cases["!"+t]=r.cases["!"+t]||[],r.cases["!"+t].push({transclude:i,element:e})}))}}),cs=Bi({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})}}),ls=i("ngTransclude"),fs=["$compile",function(t){return{restrict:"EAC",compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){if(!o)throw ls("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",bt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var s=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(function(t){e.append(t)}))}o((function(t,n){t.length&&function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e];if(r.nodeType!==Lt||r.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,s),s&&!o.isSlotFilled(s)&&a()}}}}],hs=["$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)}}}}],ps={$setViewValue:P,$render:P};function ds(t,e){t.prop("selected",e),t.attr("selected",e)}var gs=["$element","$scope",function(e,n){var r=this,i=new Le;r.selectValueMap={},r.ngModelCtrl=ps,r.multiple=!1,r.unknownOption=s(t.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(t){var n=r.generateUnknownOptionValue(t);r.unknownOption.val(n),e.prepend(r.unknownOption),ds(r.unknownOption,!0),e.val(n)},r.updateUnknownOption=function(t){var n=r.generateUnknownOptionValue(t);r.unknownOption.val(n),ds(r.unknownOption,!0),e.val(n)},r.generateUnknownOptionValue=function(t){return"? "+Fe(t)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(e.val(""),ds(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&ds(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=P})),r.readValue=function(){var t=e.val(),n=t in r.selectValueMap?r.selectValueMap[t]:t;return r.hasOption(n)?n:null},r.writeValue=function(t){var n=e[0].options[e[0].selectedIndex];if(n&&ds(s(n),!1),r.hasOption(t)){r.removeUnknownOption();var i=Fe(t);e.val(i in r.selectValueMap?i:t);var o=e[0].options[e[0].selectedIndex];ds(s(o),!0)}else r.selectUnknownOrEmptyOption(t)},r.addOption=function(t,e){if(8!==e[0].nodeType){It(t,'"option value"'),""===t&&(r.hasEmptyOption=!0,r.emptyOption=e);var n=i.get(t)||0;i.set(t,n+1),a()}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.delete(t),""===t&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return e[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&e[0].options[e[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(t){null==t&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(t):r.renderUnknownOption(t)};var o=!1;function a(){o||(o=!0,n.$$postDigest((function(){o=!1,r.ngModelCtrl.$render()})))}var u=!1;function c(t){u||(u=!0,n.$$postDigest((function(){n.$$destroyed||(u=!1,r.ngModelCtrl.$setViewValue(r.readValue()),t&&r.ngModelCtrl.$render())})))}r.registerOption=function(t,e,n,i,o){var s,u;n.$attr.ngValue?n.$observe("value",(function(t){var n,i=e.prop("selected");F(u)&&(r.removeOption(s),delete r.selectValueMap[u],n=!0),u=Fe(t),s=t,r.selectValueMap[u]=t,r.addOption(t,e),e.attr("value",u),n&&i&&c()})):i?n.$observe("value",(function(t){var n;r.readValue();var i=e.prop("selected");F(s)&&(r.removeOption(s),n=!0),s=t,r.addOption(t,e),n&&i&&c()})):o?t.$watch(o,(function(t,i){n.$set("value",t);var o=e.prop("selected");i!==t&&r.removeOption(i),r.addOption(t,e),i&&o&&c()})):r.addOption(n.value,e);n.$observe("disabled",(function(t){("true"===t||t&&e.prop("selected"))&&(r.multiple?c(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),e.on("$destroy",(function(){var t=r.readValue(),e=n.value;r.removeOption(e),a(),(r.multiple&&t&&-1!==t.indexOf(e)||t===e)&&c(!0)}))}}],ms=function(){return{restrict:"E",require:["select","?ngModel"],controller:gs,priority:1,link:{pre:function(t,e,n,r){var i=r[0],o=r[1];if(!o)return void(i.registerOption=P);if(i.ngModelCtrl=o,e.on("change",(function(){i.removeUnknownOption(),t.$apply((function(){o.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var t=[];return x(e.find("option"),(function(e){if(e.selected&&!e.disabled){var n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){x(e.find("option"),(function(e){var n=!!t&&(rt(t,e.value)||rt(t,i.selectValueMap[e.value]));n!==e.selected&&ds(s(e),n)}))};var a,u=NaN;t.$watch((function(){u!==o.$viewValue||at(a,o.$viewValue)||(a=Vt(o.$viewValue),o.$render()),u=o.$viewValue})),o.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},vs=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){var r,i;return F(n.ngValue)||(F(n.value)?r=t(n.value,!0):(i=t(e.text(),!0))||n.$set("value",e.text())),function(t,e,n){var o=e.parent(),s=o.data("$selectController")||o.parent().data("$selectController");s&&s.registerOption(t,e,n,r,i)}}}}],$s=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.hasOwnProperty("required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=function(t,e){return!o||!i.$isEmpty(e)},r.$observe("required",(function(t){o!==t&&(o=t,i.$validate())}))}}}}],ys=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&c.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,o){if(o){var s=n.pattern;n.ngPattern?s=i(t):r=n.pattern;var a=xs(s,r,e);n.$observe("pattern",(function(t){var n=a;a=xs(t,r,e),(n&&n.toString())!==(a&&a.toString())&&o.$validate()})),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||I(a)||a.test(e)}}}}}}],bs=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.maxlength||t(r.ngMaxlength)(e),s=Cs(o);r.$observe("maxlength",(function(t){o!==t&&(s=Cs(t),o=t,i.$validate())})),i.$validators.maxlength=function(t,e){return s<0||i.$isEmpty(e)||e.length<=s}}}}}],ws=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.minlength||t(r.ngMinlength)(e),s=Cs(o)||-1;r.$observe("minlength",(function(t){o!==t&&(s=Cs(t)||-1,o=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=s}}}}}];function xs(t,e,n){if(t){if(L(t)&&(t=new RegExp("^"+t+"$")),!t.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,bt(n));return t}}function Cs(t){var e=_(t);return M(e)?-1:e}t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var e;if(!Pt){var n=ct();(a=I(n)?t.jQuery:n?t[n]:void 0)&&a.fn.on?(s=a,O(a.fn,{scope:_e.scope,isolateScope:_e.isolateScope,controller:_e.controller,injector:_e.injector,inheritedData:_e.inheritedData})):s=he,e=s.cleanData,s.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)(n=(s._data(r)||{}).events)&&n.$destroy&&s(r).triggerHandler("$destroy");e(t)},y.element=s,Pt=!0}}(),function(e){O(e,{errorHandlingConfig:n,bootstrap:Ot,copy:ot,extend:O,merge:T,equals:at,element:s,forEach:x,injector:Ke,noop:P,bind:ht,toJson:dt,fromJson:gt,identity:N,isUndefined:I,isDefined:F,isString:L,isFunction:W,isObject:D,isNumber:V,isElement:et,isArray:H,version:Ht,isDate:q,callbacks:{$$counter:0},getTestability:_t,reloadWithDebugInfo:Tt,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Nt,$$minErr:i,$$csp:ut,$$encodeUriSegment:Ct,$$encodeUriQuery:Et,$$lowercase:f,$$stringify:Ut,$$uppercase:h}),(u=function(t){var e=i("$injector"),n=i("ng");function r(t,e,n){return t[e]||(t[e]=n())}var o=r(t,"angular",Object);return o.$$minErr=o.$$minErr||i,r(o,"module",(function(){var t={};return function(i,o,s){var a={};return function(t,e){if("hasOwnProperty"===t)throw n("badname","hasOwnProperty is not a valid {0} name",e)}(i,"module"),o&&t.hasOwnProperty(i)&&(t[i]=null),r(t,i,(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.",i);var t=[],r=[],u=[],c=f("$injector","invoke","push",r),l={_invokeQueue:t,_configBlocks:r,_runBlocks:u,info:function(t){if(F(t)){if(!D(t))throw n("aobj","Argument '{0}' must be an object","value");return a=t,this}return a},requires:o,name:i,provider:h("$provide","provider"),factory:h("$provide","factory"),service:h("$provide","service"),value:f("$provide","value"),constant:f("$provide","constant","unshift"),decorator:h("$provide","decorator",r),animation:h("$animateProvider","register"),filter:h("$filterProvider","register"),controller:h("$controllerProvider","register"),directive:h("$compileProvider","directive"),component:h("$compileProvider","component"),config:c,run:function(t){return u.push(t),this}};return s&&c(s),l;function f(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),l}}function h(e,n,r){return r||(r=t),function(t,o){return o&&W(o)&&(o.$$moduleName=i),r.push([e,n,arguments]),l}}}))}}))}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Vr}),t.provider("$compile",gn).directive({a:Ii,input:mo,textarea:mo,form:Vi,script:hs,select:ms,option:vs,ngBind:bo,ngBindHtml:xo,ngBindTemplate:wo,ngClass:ko,ngClassEven:Ao,ngClassOdd:So,ngCloak:Oo,ngController:To,ngForm:qi,ngHide:os,ngIf:Po,ngInclude:No,ngInit:Bo,ngNonBindable:Xo,ngPluralize:ts,ngRef:ns,ngRepeat:rs,ngShow:is,ngStyle:ss,ngSwitch:as,ngSwitchWhen:us,ngSwitchDefault:cs,ngOptions:Qo,ngTransclude:fs,ngModel:zo,ngList:Io,ngChange:Co,pattern:ys,ngPattern:ys,required:$s,ngRequired:$s,minlength:ws,ngMinlength:ws,maxlength:bs,ngMaxlength:bs,ngValue:yo,ngModelOptions:Jo}).directive({ngInclude:jo,input:vo}).directive(Fi).directive(_o),t.provider({$anchorScroll:Ze,$animate:on,$animateCss:un,$$animateJs:nn,$$animateQueue:rn,$$AnimateRunner:an,$$animateAsyncRun:sn,$browser:ln,$cacheFactory:fn,$controller:kn,$document:Sn,$$isDocumentHidden:An,$exceptionHandler:On,$filter:pi,$$forceReflow:Tn,$interpolate:Yn,$interval:Gn,$$intervalFactory:Xn,$http:qn,$httpParamSerializer:Bn,$httpParamSerializerJQLike:In,$httpBackend:zn,$xhrFactory:Hn,$jsonpCallbacks:Kn,$location:dr,$log:gr,$parse:Pr,$rootScope:Lr,$q:Nr,$$q:jr,$sce:Gr,$sceDelegate:Jr,$sniffer:Xr,$$taskTrackerFactory:Kr,$templateCache:hn,$templateRequest:ti,$$testability:ei,$timeout:ri,$window:li,$$rAF:Ur,$$jqLite:Ie,$$Map:Ve,$$cookieReader:hi})}]).info({angularVersion:"1.8.0"})}(y),y.module("ngLocale",[],["$provide",function(t){var e="one",n="other";t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,r){var i=0|t,o=function(t,e){var n=e;void 0===n&&(n=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var r=Math.pow(10,n);return{v:n,f:(t*r|0)%r}}(t,r);return 1==i&&0==o.v?e:n}})}]),s((function(){At(t.document,Ot)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@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;}'))},function(t,e,n){n(33),t.exports="ngRoute"},function(t,e){
  /**
   * @license AngularJS v1.8.0
   * (c) 2010-2020 Google, Inc. http://angularjs.org
   * License: MIT
   */
  !function(t,e){"use strict";function n(t,e){var n=[],r=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,(function(t,e,r,i){var o="?"===i||"*?"===i,s="*"===i||"*?"===i;return n.push({name:r,optional:o}),e=e||"",(o?"(?:"+e:e+"(?:")+(s?"(.+?)":"([^/]+)")+(o?"?)?":")")})).replace(/([/$*])/g,"\\$1");return e.ignoreTrailingSlashes&&(r=r.replace(/\/+$/,"")+"/*"),{keys:n,regexp:new RegExp("^"+r+"(?:[?#]|$)",e.caseInsensitiveMatch?"i":"")}}var r,i,o,s,a,u=e.module("ngRoute",[]).info({angularVersion:"1.8.0"}).provider("$route",(function(){function t(t,n){return e.extend(Object.create(t),n)}r=e.isArray,i=e.isObject,o=e.isDefined,s=e.noop;var u={};this.when=function(t,o){var s=function(t,e){if(r(t)){e=e||[];for(var n=0,o=t.length;n<o;n++)e[n]=t[n]}else if(i(t))for(var s in e=e||{},t)"$"===s.charAt(0)&&"$"===s.charAt(1)||(e[s]=t[s]);return e||t}(o);if(e.isUndefined(s.reloadOnUrl)&&(s.reloadOnUrl=!0),e.isUndefined(s.reloadOnSearch)&&(s.reloadOnSearch=!0),e.isUndefined(s.caseInsensitiveMatch)&&(s.caseInsensitiveMatch=this.caseInsensitiveMatch),u[t]=e.extend(s,{originalPath:t},t&&n(t,s)),t){var a="/"===t[t.length-1]?t.substr(0,t.length-1):t+"/";u[a]=e.extend({originalPath:t,redirectTo:t},n(a,s))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},a=!0,this.eagerInstantiationEnabled=function(t){return o(t)?(a=t,this):a},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(n,r,i,o,a,l,f,h){var p,d,g=!1,m={routes:u,reload:function(){g=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,g=!1}};n.$evalAsync((function(){v(t),t.defaultPrevented||$()}))},updateParams:function(t){if(!this.current||!this.current.$$route)throw c("norout","Tried updating route with no current route");t=e.extend({},this.current.params,t),r.path(x(this.current.$$route.originalPath,t)),r.search(t)}};return n.$on("$locationChangeStart",v),n.$on("$locationChangeSuccess",$),m;function v(i){var o,s,a,c,l=m.current;e.forEach(u,(function(n,i){!s&&(o=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],u=i[o];a&&u&&(r[a.name]=u)}return r}(r.path(),n))&&((s=t(n,{params:e.extend({},r.search(),o),pathParams:o})).$$route=n)})),p=s||u.null&&t(u.null,{params:{},pathParams:{}}),a=p,c=l,(d=!g&&a&&c&&a.$$route===c.$$route&&(!a.reloadOnUrl||!a.reloadOnSearch&&e.equals(a.pathParams,c.pathParams)))||!l&&!p||n.$broadcast("$routeChangeStart",p,l).defaultPrevented&&i&&i.preventDefault()}function $(){var t=m.current,r=p;if(d)t.params=r.params,e.copy(t.params,i),n.$broadcast("$routeUpdate",t);else if(r||t){g=!1,m.current=r;var a=o.resolve(r);h.$$incOutstandingRequestCount("$route"),a.then(y).then(b).then((function(o){return o&&a.then(w).then((function(o){r===m.current&&(r&&(r.locals=o,e.copy(r.params,i)),n.$broadcast("$routeChangeSuccess",r,t))}))})).catch((function(e){r===m.current&&n.$broadcast("$routeChangeError",r,t,e)})).finally((function(){h.$$completeOutstandingRequest(s,"$route")}))}}function y(t){var n={route:t,hasRedirection:!1};if(t)if(t.redirectTo)if(e.isString(t.redirectTo))n.path=x(t.redirectTo,t.params),n.search=t.params,n.hasRedirection=!0;else{var i=r.path(),s=r.search(),u=t.redirectTo(t.pathParams,i,s);e.isDefined(u)&&(n.url=u,n.hasRedirection=!0)}else if(t.resolveRedirectTo)return o.resolve(a.invoke(t.resolveRedirectTo)).then((function(t){return e.isDefined(t)&&(n.url=t,n.hasRedirection=!0),n}));return n}function b(t){var e=!0;if(t.route!==m.current)e=!1;else if(t.hasRedirection){var n=r.url(),i=t.url;i?r.url(i).replace():i=r.path(t.path).search(t.search).replace().url(),i!==n&&(e=!1)}return e}function w(t){if(t){var n=e.extend({},t.resolve);e.forEach(n,(function(t,r){n[r]=e.isString(t)?a.get(t):a.invoke(t,null,null,r)}));var r=function(t){var n,r;e.isDefined(n=t.template)?e.isFunction(n)&&(n=n(t.params)):e.isDefined(r=t.templateUrl)&&(e.isFunction(r)&&(r=r(t.params)),e.isDefined(r)&&(t.loadedTemplateUrl=f.valueOf(r),n=l(r)));return n}(t);return e.isDefined(r)&&(n.$template=r),o.all(n)}}function x(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("")}}]})).run(l),c=e.$$minErr("ngRoute");function l(t){a&&t.get("$route")}function f(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,u){var c,l,f,h=s.autoscroll,p=s.onload||"";function d(){f&&(r.cancel(f),f=null),c&&(c.$destroy(),c=null),l&&((f=r.leave(l)).done((function(t){!1!==t&&(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=u(f,(function(t){r.enter(t,null,l||o).done((function(t){!1===t||!e.isDefined(h)||h&&!i.$eval(h)||n()})),d()}));l=m,(c=g.scope=f).$emit("$viewContentLoaded"),c.$eval(p)}else d()}i.$on("$routeChangeSuccess",g),g()}}}function h(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 u=e(o.controller,s);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=s,a(r)}}}l.$inject=["$injector"],u.provider("$routeParams",(function(){this.$get=function(){return{}}})),u.directive("ngView",f),u.directive("ngView",h),f.$inject=["$route","$anchorScroll","$animate"],h.$inject=["$compile","$controller","$route"]}(window,window.angular)},function(t,e,n){n(35),t.exports="ngSanitize"},function(t,e){
  /**
   * @license AngularJS v1.8.0
   * (c) 2010-2020 Google, Inc. http://angularjs.org
   * License: MIT
   */
  !function(t,e){"use strict";var n,r,i,o,s,a,u,c,l,f,h=e.$$minErr("$sanitize");e.module("ngSanitize",[]).provider("$sanitize",(function(){var p=!1,d=!1;this.$get=["$$sanitizeUri",function(t){return p=!0,d&&r(k,C),function(e){var n=[];return l(e,f(n,(function(e,n){return!/^unsafe:/.test(t(e,n))}))),n.join("")}}],this.enableSvg=function(t){return s(t)?(d=t,this):d},this.addValidElements=function(t){return p||(o(t)&&(t={htmlElements:t}),R(C,t.svgElements),R(v,t.htmlVoidElements),R(k,t.htmlVoidElements),R(k,t.htmlElements)),this},this.addValidAttrs=function(t){return p||r(T,M(t,!0)),this},n=e.bind,r=e.extend,i=e.forEach,o=e.isArray,s=e.isDefined,a=e.$$lowercase,u=e.noop,l=function(t,e){null==t?t="":"string"!=typeof t&&(t=""+t);var n=P(t);if(!n)return"";var r=5;do{if(0===r)throw h("uinput","Failed to sanitize html because the input is unstable");r--,t=n.innerHTML,n=P(t)}while(t!==n.innerHTML);var i=n.firstChild;for(;i;){switch(i.nodeType){case 1:e.start(i.nodeName.toLowerCase(),N(i.attributes));break;case 3:e.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&e.end(i.nodeName.toLowerCase()),o=I("nextSibling",i))))for(;null==o&&(i=I("parentNode",i))!==n;)o=I("nextSibling",i),1===i.nodeType&&e.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)},f=function(t,e){var r=!1,o=n(t,t.push);return{start:function(t,n){t=a(t),!r&&E[t]&&(r=t),r||!0!==k[t]||(o("<"),o(t),i(n,(function(n,r){var i=a(r),s="img"===t&&"src"===i||"background"===i;!0!==T[i]||!0===S[i]&&!e(n,s)||(o(" "),o(r),o('="'),o(j(n)),o('"'))})),o(">"))},end:function(t){t=a(t),r||!0!==k[t]||!0===v[t]||(o("</"),o(t),o(">")),t==r&&(r=!1)},chars:function(t){r||o(j(t))}}},c=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};var g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=/([^#-~ |!])/g,v=_("area,br,col,hr,img,wbr"),$=_("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y=_("rp,rt"),b=r({},y,$),w=r({},$,_("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,section,table,ul")),x=r({},y,_("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),C=_("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"),E=_("script,style"),k=r({},v,w,x,b),S=_("background,cite,href,longdesc,src,xlink:href,xml:base"),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"),O=_("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),T=r({},S,O,A);function _(t,e){return M(t.split(","),e)}function M(t,e){var n,r={};for(n=0;n<t.length;n++)r[e?a(t[n]):t[n]]=!0;return r}function R(t,e){e&&e.length&&r(t,M(e))}var P=function(t,e){var n;if(!e||!e.implementation)throw h("noinert","Can't create an inert html document");var r=((n=e.implementation.createHTMLDocument("inert")).documentElement||n.getDocumentElement()).querySelector("body");return r.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',r.querySelector("svg")?(r.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',r.querySelector("svg img")?function(e){e="<remove></remove>"+e;try{var n=(new t.DOMParser).parseFromString(e,"text/html").body;return n.firstChild.remove(),n}catch(t){return}}:function(t){r.innerHTML=t,e.documentMode&&B(r);return r}):function(e){e="<remove></remove>"+e;try{e=encodeURI(e)}catch(t){return}var n=new t.XMLHttpRequest;n.responseType="document",n.open("GET","data:text/html;charset=utf-8,"+e,!1),n.send(null);var r=n.response.body;return r.firstChild.remove(),r}}(t,t.document);function N(t){for(var e={},n=0,r=t.length;n<r;n++){var i=t[n];e[i.name]=i.value}return e}function j(t){return t.replace(/&/g,"&amp;").replace(g,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(m,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function B(e){for(;e;){if(e.nodeType===t.Node.ELEMENT_NODE)for(var n=e.attributes,r=0,i=n.length;r<i;r++){var o=n[r],s=o.name.toLowerCase();"xmlns:ns1"!==s&&0!==s.lastIndexOf("ns1:",0)||(e.removeAttributeNode(o),r--,i--)}var a=e.firstChild;a&&B(a),e=I("nextSibling",e)}}function I(t,e){var n=e[t];if(n&&c.call(e,n))throw h("elclob","Failed to sanitize html because the element is clobbered: {0}",e.outerHTML||e.outerText);return n}})).info({angularVersion:"1.8.0"}),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,i=e.$$minErr("linky"),o=e.isDefined,s=e.isFunction,a=e.isObject,c=e.isString;return function(e,l,h){if(null==e||""===e)return e;if(!c(e))throw i("notstring","Expected string but received: {0}",e);for(var p,d,g,m=s(h)?h:a(h)?function(){return h}:function(){return{}},v=e,$=[];p=v.match(n);)d=p[0],p[2]||p[4]||(d=(p[3]?"http://":"mailto:")+d),g=p.index,y(v.substr(0,g)),b(d,p[0].replace(r,"")),v=v.substring(g+p[0].length);return y(v),t($.join(""));function y(t){var e,n;t&&$.push((e=t,f(n=[],u).chars(e),n.join("")))}function b(t,e){var n,r=m(t);for(n in $.push("<a "),r)$.push(n+'="'+r[n]+'" ');o(l)&&!("target"in r)&&$.push('target="',l,'" '),$.push('href="',t.replace(/"/g,"&quot;"),'">'),y(e),$.push("</a>")}}}])}(window,window.angular)},function(t,e,n){n(37),t.exports="ngTouch"},function(t,e){
  /**
   * @license AngularJS v1.8.0
   * (c) 2010-2020 Google, Inc. http://angularjs.org
   * License: MIT
   */
  !function(t,e){"use strict";var n=e.module("ngTouch",[]);function r(t,r,i){n.directive(t,["$parse","$swipe",function(n,o){return function(s,a,u){var c,l,f=n(u[t]);var h=["touch"];e.isDefined(u.ngSwipeDisableMouse)||h.push("mouse"),o.bind(a,{start:function(t,e){c=t,l=!0},cancel:function(t){l=!1},end:function(t,e){(function(t){if(!c)return!1;var e=Math.abs(t.y-c.y),n=(t.x-c.x)*r;return l&&e<75&&n>0&&n>30&&e/n<.3})(t)&&s.$apply((function(){a.triggerHandler(i),f(s,{$event:e})}))}},h)}}])}n.info({angularVersion:"1.8.0"}),n.factory("$swipe",[function(){var t={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};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,u,c=!1;i=i||["mouse","touch","pointer"],t.on(r(i,"start"),(function(t){a=n(t),c=!0,o=0,s=0,u=a,e.start&&e.start(a,t)}));var l=r(i,"cancel");l&&t.on(l,(function(t){c=!1,e.cancel&&e.cancel(t)})),t.on(r(i,"move"),(function(t){if(c&&a){var r=n(t);if(o+=Math.abs(r.x-u.x),s+=Math.abs(r.y-u.y),u=r,!(o<10&&s<10))return s>o?(c=!1,void(e.cancel&&e.cancel(t))):(t.preventDefault(),void(e.move&&e.move(r,t)))}})),t.on(r(i,"end"),(function(t){c&&(c=!1,e.end&&e.end(n(t),t))}))}}}]),r("ngSwipeLeft",-1,"swipeleft"),r("ngSwipeRight",1,"swiperight")}(window,window.angular)},function(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(1).module("bsDisconnect",[]).directive("disconnectElem",(function(){return{restrict:"E",scope:{},template:'<section bs-overlay ng-class="{\'active\': ui.visible}">\n    <p><icon icon="block"></icon></p>\n    <h1>{{ui.heading}} {{ui.message}}</h1>\n    <p>Possible reasons are:</p>\n    <ul bs-list>\n        <li>1. Your process was exited by another tool</li>\n    </ul>\n    <p>You should check your terminal window to see what happened. <br/>(Or simply try reloading this page.)</p>\n</section>',controller:["$scope","$rootScope","$window",r]}}))},function(t,e,n){function r(t,e){t.ui={status:"info",heading:"Browsersync:",message:"Welcome to Browsersync"},t.show=function(e,n){n=n||{},t._timer&&clearTimeout(t._timer),t._timer=window.setTimeout(t.reset,n.timeout||2e3),t.ui.visible=!0,t.ui.status=n.status||"info",t.ui.heading=n.heading||"Browsersync:",t.ui.message=n.message||"Browsersync:"},t.reset=function(){t.ui.visible=!1,t.$digest()},e.$on("notify:flash",t.show)}n(1).module("bsNotify",[]).directive("notifyElem",(function(){return{restrict:"E",scope:{},template:'<div bs-notify ng-class="{\'active\': ui.visible}">\n    <p class="notification__text">{{ui.heading}} <span class="color--lime">{{ui.message}}</span></p>\n</div>',controller:["$scope","$rootScope",r]}}))},function(t,e,n){n(1).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))}}}])},function(t,e,n){n(1).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)}}}])},function(t,e,n){var r=n(1),i=n(43),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}])},function(t,e,n){var r=n(44),i=n(7),o=n(19),s=n(0)("socket.io-client");t.exports=e=u;var a=e.managers={};function u(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i=r(t),u=i.source,c=i.id,l=i.path,f=a[c]&&l in a[c].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||f?(s("ignoring socket cache for %s",u),n=o(u,e)):(a[c]||(s("new io instance for %s",u),a[c]=o(u,e)),n=a[c]),i.query&&!e.query&&(e.query=i.query),n.socket(i.path,e)}e.protocol=i.protocol,e.connect=u,e.Manager=n(19),e.Socket=n(25)},function(t,e,n){var r=n(15),i=n(0)("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}},function(t,e,n){t.exports=function(t){function e(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return r.colors[Math.abs(e)%r.colors.length]}function r(t){let n;function s(...t){if(!s.enabled)return;const e=s,i=Number(new Date),o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let a=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return n;a++;const o=r.formatters[i];if("function"==typeof o){const r=t[a];n=o.call(e,r),t.splice(a,1),a--}return n}),r.formatArgs.call(e,t);(e.log||r.log).apply(e,t)}return s.namespace=t,s.enabled=r.enabled(t),s.useColors=r.useColors(),s.color=e(t),s.destroy=i,s.extend=o,"function"==typeof r.init&&r.init(s),r.instances.push(s),s}function i(){const t=r.instances.indexOf(this);return-1!==t&&(r.instances.splice(t,1),!0)}function o(t,e){const n=r(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function s(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},r.disable=function(){const t=[...r.names.map(s),...r.skips.map(s).map(t=>"-"+t)].join(",");return r.enable(""),t},r.enable=function(t){let e;r.save(t),r.names=[],r.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(e=0;e<i;e++)n[e]&&("-"===(t=n[e].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+t.substr(1)+"$")):r.names.push(new RegExp("^"+t+"$")));for(e=0;e<r.instances.length;e++){const t=r.instances[e];t.enabled=r.enabled(t.namespace)}},r.enabled=function(t){if("*"===t[t.length-1])return!0;let e,n;for(e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e<n;e++)if(r.names[e].test(t))return!0;return!1},r.humanize=n(46),Object.keys(t).forEach(e=>{r[e]=t[e]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r}},function(t,e){var n=1e3,r=6e4,i=60*r,o=24*i;function s(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,e){e=e||{};var a=typeof t;if("string"===a&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===a&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=o)return s(t,e,o,"day");if(e>=i)return s(t,e,i,"hour");if(e>=r)return s(t,e,r,"minute");if(e>=n)return s(t,e,n,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=o)return Math.round(t/o)+"d";if(e>=i)return Math.round(t/i)+"h";if(e>=r)return Math.round(t/r)+"m";if(e>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){(function(r){function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}(e=t.exports=n(48)).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)return;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=i,e.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"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(i())}).call(this,n(16))},function(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 u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;u++;var i=e.formatters[r];if("function"==typeof i){var o=s[u];n=i.call(t,o),s.splice(u,1),u--}return n})),e.formatArgs.call(t,s);var c=r.log||e.log||console.log.bind(console);c.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(49),e.instances=[],e.names=[],e.skips=[],e.formatters={}},function(t,e){var n=1e3,r=6e4,i=60*r,o=24*i;function s(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,e){e=e||{};var a,u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===u&&!1===isNaN(t))return e.long?s(a=t,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(t){if(t>=o)return Math.round(t/o)+"d";if(t>=i)return Math.round(t/i)+"h";if(t>=r)return Math.round(t/r)+"m";if(t>=n)return Math.round(t/n)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var r=n(9),i=n(17),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);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=function t(e,n){if(!e)return e;if(i(e)){var o={_placeholder:!0,num:n.length};return n.push(e),o}if(r(e)){for(var s=new Array(e.length),a=0;a<e.length;a++)s[a]=t(e[a],n);return s}if("object"==typeof e&&!(e instanceof Date)){s={};for(var u in e)s[u]=t(e[u],n);return s}return e}(n,e),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(e,n){if(!e)return e;if(e&&e._placeholder)return n[e.num];if(r(e))for(var i=0;i<e.length;i++)e[i]=t(e[i],n);else if("object"==typeof e)for(var o in e)e[o]=t(e[o],n);return e}(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){var n=0,o=t;!function t(u,c,l){if(!u)return u;if(s&&u instanceof Blob||a&&u instanceof File){n++;var f=new FileReader;f.onload=function(){l?l[c]=this.result:o=this.result,--n||e(o)},f.readAsArrayBuffer(u)}else if(r(u))for(var h=0;h<u.length;h++)t(u[h],h,u);else if("object"==typeof u&&!i(u))for(var p in u)t(u[p],p,u)}(o),n||e(o)}},function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),s=r[0],a=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),l=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(l(t,s,s+16383>a?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){t.exports=n(55),t.exports.parser=n(2)},function(t,e,n){var r=n(20),i=n(14),o=n(0)("engine.io-client:socket"),s=n(24),a=n(2),u=n(15),c=n(5);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=u(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=u(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=c.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(13),l.transports=n(20),l.parser=n(2),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 u(){a("transport closed")}function c(){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",u),r.removeListener("close",c),r.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,e.once("open",i),e.once("error",a),e.once("close",u),this.once("close",c),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){if("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}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){var r=n(11),i=n(21),o=n(14),s=n(6),a=n(0)("engine.io-client:polling-xhr"),u=n(12);function c(){}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()}if(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=c:this.xhr.onreadystatechange=c,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)if("function"==typeof attachEvent)attachEvent("onunload",h);else if("function"==typeof addEventListener){addEventListener("onpagehide"in u?"pagehide":"unload",h,!1)}function h(){for(var t in f.requests)f.requests.hasOwnProperty(t)&&f.requests[t].abort()}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)o[a]=i[s];return o.buffer}},function(t,e){function n(){}t.exports=function(t,e,r){var i=!1;return r=r||n,o.count=t,0===t?e():o;function o(t,n){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=r):0!==o.count||i||e(null,n)}}},function(t,e){
  /*! https://mths.be/utf8js v2.1.2 by @mathias */
  var n,r,i,o=String.fromCharCode;function s(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 a(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function u(t,e){return o(t>>e&63|128)}function c(t,e){if(0==(4294967168&t))return o(t);var n="";return 0==(4294965248&t)?n=o(t>>6&31|192):0==(4294901760&t)?(a(t,e)||(t=65533),n=o(t>>12&15|224),n+=u(t,6)):0==(4292870144&t)&&(n=o(t>>18&7|240),n+=u(t,12),n+=u(t,6)),n+=o(63&t|128)}function l(){if(i>=r)throw Error("Invalid byte index");var t=255&n[i];if(i++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(t){var e,o;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(e=255&n[i],i++,0==(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|l())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|l()<<6|l())>=2048)return a(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|l()<<12|l()<<6|l())>=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=s(t),i=r.length,o=-1,a="";++o<i;)a+=c(r[o],n);return a},decode:function(t,e){var a=!1!==(e=e||{}).strict;n=s(t),r=n.length,i=0;for(var u,c=[];!1!==(u=f(a));)c.push(u);return function(t){for(var e,n=t.length,r=-1,i="";++r<n;)(e=t[r])>65535&&(i+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=o(e);return i}(c)}}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;n<i;n+=3)o+=t[r[n]>>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,s,a=.75*t.length,u=t.length,c=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(e=0;e<u;e+=4)r=n[t.charCodeAt(e)],i=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],f[c++]=r<<2|i>>4,f[c++]=(15&i)<<4|o>>2,f[c++]=(3&o)<<6|63&s;return l}}()},function(t,e){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),i=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function s(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 a(t,e){e=e||{};var r=new n;return s(t).forEach((function(t){r.append(t)})),e.type?r.getBlob(e.type):r.getBlob()}function u(t,e){return new Blob(s(t),e||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,u.prototype=Blob.prototype),t.exports=r?i?Blob:u:o?a:void 0},function(t,e,n){var r=n(21),i=n(6),o=n(12);t.exports=l;var s,a=/\n/g,u=/\\n/g;function c(){}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=c)}),!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 c(){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(u,"\\\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&&c()}:this.iframe.onload=c}},function(t,e,n){(function(e){var r,i,o=n(13),s=n(2),a=n(5),u=n(6),c=n(23),l=n(0)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(66)}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,u(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 n=this;this.writable=!1;for(var r=t.length,i=0,o=r;i<o;i++)!function(t){s.encodePacket(t,n.supportsBinary,(function(i){if(!n.usingBrowserWebSocket){var o={};if(t.options&&(o.compress=t.options.compress),n.perMessageDeflate)("string"==typeof i?e.byteLength(i):i.length)<n.perMessageDeflate.threshold&&(o.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(i):n.ws.send(i,o)}catch(t){l("websocket closed before onclose event")}--r||a()}))}(t[i]);function a(){n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0)}},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]=c()),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)}}).call(this,n(10).Buffer)},function(t,e){},function(t,e){t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r<t.length;r++)n[r-e]=t[r];return n}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){n(4).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}}}])},function(t,e,n){n(4).factory("Options",["Socket",function(t){return{all:function(){return t.getData("options")}}}])},function(t,e,n){var r=n(1),i=n(72),o=n(83);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)}}}])},function(t,e,n){var r=n(73),i=n(74),o=[n(81)];t.exports=r.createStore(i,o)},function(t,e,n){var r=n(3),i=r.slice,o=r.pluck,s=r.each,a=r.bind,u=r.create,c=r.isList,l=r.isFunction,f=r.isObject;t.exports={createStore:p};var h={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(n,r){t.call(e,e._deserialize(n),(r||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return p.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return p(this.storage,this.plugins,t)}};function p(t,e,n){n||(n=""),t&&!c(t)&&(t=[t]),e&&!c(e)&&(e=[e]);var r=n?"__storejs_"+n+"_":"",p=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var d=u({_namespacePrefix:r,_namespaceRegexp:p,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=i(arguments,0),r=this;function o(){if(n)return s(arguments,(function(t,n){e[n]=t})),n.apply(r,e)}var a=[o].concat(e);return t.apply(r,a)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(c(t))s(t,(function(t){e._addPlugin(t)}));else if(!o(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!l(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!f(n))throw new Error("Plugins must return an object of function properties");s(n,(function(n,r){if(!l(n))throw new Error("Bad plugin property: "+r+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,r)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},h,{plugins:[]});return d.raw={},s(d,(function(t,e){l(t)&&(d.raw[e]=a(d,t))})),s(t,(function(t){d._addStorage(t)})),s(e,(function(t){d._addPlugin(t)})),d}},function(t,e,n){t.exports=[n(75),n(76),n(77),n(78),n(79),n(80)]},function(t,e,n){var r=n(3).Global;function i(){return r.localStorage}function o(t){return i().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){var r=n(3).Global;t.exports={name:"oldFF-globalStorage",read:function(t){return i[t]},write:function(t,e){i[t]=e},each:o,remove:function(t){return i.removeItem(t)},clearAll:function(){o((function(t,e){delete i[t]}))}};var i=r.globalStorage;function o(t){for(var e=i.length-1;e>=0;e--){var n=i.key(e);t(i[n],n)}}},function(t,e,n){var r=n(3).Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(s)return;var n=u(t);o((function(t){t.setAttribute(n,e),t.save("storejs")}))},read:function(t){if(s)return;var e=u(t),n=null;return o((function(t){n=t.getAttribute(e)})),n},each:function(t){o((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))},remove:function(t){var e=u(t);o((function(t){t.removeAttribute(e),t.save("storejs")}))},clearAll:function(){o((function(t){var e=t.XMLDocument.documentElement.attributes;t.load("storejs");for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save("storejs")}))}};var i=r.document,o=function(){if(!i||!i.documentElement||!i.documentElement.addBehavior)return null;var t,e,n;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=i.createElement("div"),t=i.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load("storejs"),e.apply(this,r),t.removeChild(n)}}(),s=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(t){return t.replace(/^\d/,"___$&").replace(a,"___")}},function(t,e,n){var r=n(3),i=r.Global,o=r.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!c(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;s.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:u,clearAll:function(){a((function(t,e){u(e)}))}};var s=i.document;function a(t){for(var e=s.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(o(e[n])){var r=e[n].split("="),i=unescape(r[0]);t(unescape(r[1]),i)}}function u(t){t&&c(t)&&(s.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function c(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},function(t,e,n){var r=n(3).Global;function i(){return r.sessionStorage}function o(t){return i().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e){t.exports={name:"memoryStorage",read:function(t){return n[t]},write:function(t,e){n[t]=e},each:function(t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)},remove:function(t){delete n[t]},clearAll:function(t){n={}}};var n={}},function(t,e,n){t.exports=function(){return n(82),{}}},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var n,r,i,o,s,a=gap,u=e[t];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(t)),"function"==typeof rep&&(u=rep.call(e,t,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,n=0;n<o;n+=1)s[n]=str(n,u)||"null";return i=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,i}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(i=str(r=rep[n],u))&&s.push(quote(r)+(gap?": ":":")+i);else for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(i=str(r,u))&&s.push(quote(r)+(gap?": ":":")+i);return i=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,e){var n,r,i=t[e];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(r=walk(i,n))?i[n]=r:delete i[n]);return reviver.call(t,e,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},function(t,e,n){var r,i,o;!function(n,s){"use strict";"object"==typeof t.exports?t.exports=s():(i=[],void 0===(o="function"==typeof(r=s)?r.apply(e,i):r)||(t.exports=o))}(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){t=t||{};var s=function(t){return Object.keys(s).reduce((function(e,n){return"create"===n||"function"==typeof s[n]&&(e[n]=s[n].bind(s,t)),e}),{})};function a(n,r){return t.includeInheritedProps||"number"==typeof r&&Array.isArray(n)||e(n,r)}function u(t,e){if(a(t,e))return t[e]}function c(t,e,n,r){if("number"==typeof e&&(e=[e]),!e||0===e.length)return t;if("string"==typeof e)return c(t,e.split(".").map(o),n,r);var i=e[0],s=u(t,i);return 1===e.length?(void 0!==s&&r||(t[i]=n),s):(void 0===s&&("number"==typeof e[1]?t[i]=[]:t[i]={}),c(t[i],e.slice(1),n,r))}return s.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},s.ensureExists=function(t,e,n){return c(t,e,n,!0)},s.set=function(t,e,n,r){return c(t,e,n,r)},s.insert=function(t,e,n,r){var o=s.get(t,e);r=~~r,i(o)||(o=[],s.set(t,e,o)),o.splice(r,0,n)},s.empty=function(t,e){var o,u;if(!n(e)&&(null!=t&&(o=s.get(t,e)))){if("string"==typeof o)return s.set(t,e,"");if(function(t){return"boolean"==typeof t||"[object Boolean]"===r(t)}(o))return s.set(t,e,!1);if("number"==typeof o)return s.set(t,e,0);if(i(o))o.length=0;else{if(!function(t){return"object"==typeof t&&"[object Object]"===r(t)}(o))return s.set(t,e,null);for(u in o)a(o,u)&&delete o[u]}}},s.push=function(t,e){var n=s.get(t,e);i(n)||(n=[],s.set(t,e,n)),n.push.apply(n,Array.prototype.slice.call(arguments,2))},s.coalesce=function(t,e,n){for(var r,i=0,o=e.length;i<o;i++)if(void 0!==(r=s.get(t,e[i])))return r;return n},s.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 s.get(t,e.split("."),n);var r=o(e[0]),i=u(t,r);return void 0===i?n:1===e.length?i:s.get(t[r],e.slice(1),n)},s.del=function(t,e){if("number"==typeof e&&(e=[e]),null==t)return t;if(n(e))return t;if("string"==typeof e)return s.del(t,e.split("."));var r=o(e[0]);return a(t,r)?1!==e.length?s.del(t[r],e.slice(1)):(i(t)?t.splice(r,1):delete t[r],t):t},s}var a=s();return a.create=s,a.withInheritedProps=s({includeInheritedProps:!0}),a}))},function(t,e,n){n(4).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"),u=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(){u.reloadAll(),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reload All Browsers  ✔"})},i.scrollAllTo=function(){u.scrollAllTo(0),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Scroll all browsers to Y=0  ✔"})},i.sendAllTo=function(t){u.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=function(t){if(!t)return!1;return t.external||t.local}(t.urls),t}(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()}))}])},function(t,e,n){t=n(4);var r=n(86);t.filter("ucfirst",(function(){return r.ucfirst})).filter("localRootUrl",(function(){return r.localRootUrl})).filter("localUrl",(function(){return r.localRootUrl})).filter("orderObjectBy",(function(){return r.orderObjectBy}))},function(t,e){t.exports={ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},localRootUrl:function(t,e){return[e,"://",window.location.hostname,":",t].join("")},localUrl:function(t,e,n){return"snippet"===n?t:["//",window.location.hostname,":",e,t].join("")},orderObjectBy:function(t,e,n){var r=[];return Object.keys(t).forEach((function(e){r.push(t[e])})),r.sort((function(t,n){return t[e]>n[e]?1:-1})),n&&r.reverse(),r}}},function(t,e,n){(t=n(4)).directive("icon",n(88)),t.directive("linkTo",n(89)),t.directive("switch",n(90)),t.directive("newTab",n(91))},function(t,e){t.exports=function(){return{scope:{icon:"@"},restrict:"E",replace:!0,template:'<svg bs-svg-icon><use xlink:href="{{iconName}}"></use></svg>',link:function(t,e,n){return t.iconName="#svg-"+t.icon,t}}}},function(t,e){t.exports=function(){return{restrict:"E",replace:!1,transclude:!0,scope:{path:"@"},template:"<a href='#' ng-click='navi(path)' ng-transclude=''>as</a>",controller:["$scope","$location","$injector",function(t,e,n){var r=n.get("pagesConfig"),i=n.get("Pages");t.navi=function(t){var n=r[t];i.enable(n),e.path(t)}}]}}},function(t,e){t.exports=function(){return{scope:{toggle:"&",item:"=",switchid:"@",title:"@",tagline:"@",active:"=",prop:"@"},restrict:"E",replace:!0,transclude:!0,templateUrl:"bs-switch.html",controllerAs:"ctrl",controller:["$scope",function(t){this.item=t.item}]}}},function(t,e){t.exports=function(){return{scope:{url:"@",mode:"@"},restrict:"E",replace:!0,template:'<a href="{{url}}" bs-button="subtle-alt icon" target="_blank" title="Open a new tab" ng-show="mode !== \'snippet\'"><icon icon="newtab"></icon> New Tab </a>'}}}]);
  //# sourceMappingURL=app.js.map