From 8ee49b199628ab2fab95c24ebf1d41f2b25d2d43 Mon Sep 17 00:00:00 2001 From: Shane Osbourne Date: Sat, 23 Jan 2021 14:54:18 +0000 Subject: [PATCH] fix: socket.io had a breaking change related to cors which broken the UI --- packages/browser-sync-ui/lib/server.js | 4 +- packages/browser-sync-ui/public/js/app.js | 10 +- packages/browser-sync/lib/sockets.js | 5 + packages/browser-sync/package-lock.json | 254 +++++++++++++++------- 4 files changed, 188 insertions(+), 85 deletions(-) diff --git a/packages/browser-sync-ui/lib/server.js b/packages/browser-sync-ui/lib/server.js index 00cbd03e0..e17fa4f01 100644 --- a/packages/browser-sync-ui/lib/server.js +++ b/packages/browser-sync-ui/lib/server.js @@ -97,7 +97,7 @@ function insertPageMarkupFromHooks(app, pages, markup) { if (req.url === "/" || pages[req.url.slice(1)]) { res.writeHead(200, {"Content-Type": "text/html", "Content-Encoding": "gzip"}); if (!cached) { - var buf = new Buffer(markup, "utf-8"); + var buf = Buffer.from(markup, "utf-8"); zlib.gzip(buf, function (_, result) { cached = result; res.end(result); @@ -138,7 +138,7 @@ function serveFile(path, type, string) { if (gzipCache[path]) { return res.end(gzipCache[path]); } - var buf = new Buffer(string, "utf-8"); + var buf = Buffer.from(string, "utf-8"); zlib.gzip(buf, function (_, result) { gzipCache[path] = result; res.end(result); diff --git a/packages/browser-sync-ui/public/js/app.js b/packages/browser-sync-ui/public/js/app.js index 4a86e1bf1..1bfbdbbb5 100644 --- a/packages/browser-sync-ui/public/js/app.js +++ b/packages/browser-sync-ui/public/js/app.js @@ -1,15 +1,15 @@ -!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=24)}([function(t,e,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function u(){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(42),e.log=s,e.formatArgs=o,e.save=a,e.load=u,e.useColors=i,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(u())}).call(e,n(41))},function(t,e){t.exports=window.angular},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i1?{type:y[i],data:t.substring(1)}:{type:y[i]}:b}var o=new Uint8Array(t),i=o[0],s=h(t,1);return w&&"blob"===n&&(s=new w([s])),{type:y[i],data:s}},e.decodeBase64Packet=function(t,e){var n=y[t.charAt(0)];if(!c)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=c.decode(t.substr(1));return"blob"===e&&w&&(r=new w([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function i(t){return t.length+":"+t}function o(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,i(t))})}"function"==typeof n&&(r=n,n=null);var s=f(t);return n&&s?w&&!m?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void u(t,o,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""===t)return r(b,0,1);for(var o,s,a="",u=0,c=t.length;u0;){for(var s=new Uint8Array(i),a=0===s[0],u="",c=1;255!==s[c];c++){if(u.length>310)return r(b,0,1);u+=s[c]}i=h(i,2+u.length),u=parseInt(u);var l=h(i,0,u);if(a)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(t){var f=new Uint8Array(l);l="";for(var c=0;c=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.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 H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function m(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,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function $(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(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=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var 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}var c;if(i){var l=-1;for(c=n;ca&&(n=a-u),c=n;c>=0;c--){for(var f=!0,h=0;hi&&(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;s239?4:o>223?3:o>191?2:1;if(i+a<=n){var u,c,l,f;switch(a){case 1:o<128&&(s=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(s=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return O(r)}function O(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function j(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function I(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 U(t,e,n,r,i){return i||I(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||I(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function V(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function L(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s55295&&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 z(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function W(t){return G.toByteArray(V(t))}function X(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function J(t){return t!==t}/*! +!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=24)}([function(t,e,n){(function(r){function i(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function u(){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(42),e.log=s,e.formatArgs=o,e.save=a,e.load=u,e.useColors=i,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(u())}).call(e,n(41))},function(t,e){t.exports=window.angular},function(t,e,n){function r(t){if(t)return i(t)}function i(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i1?{type:y[i],data:t.substring(1)}:{type:y[i]}:b}var o=new Uint8Array(t),i=o[0],s=h(t,1);return w&&"blob"===n&&(s=new w([s])),{type:y[i],data:s}},e.decodeBase64Packet=function(t,e){var n=y[t.charAt(0)];if(!c)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=c.decode(t.substr(1));return"blob"===e&&w&&(r=new w([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function i(t){return t.length+":"+t}function o(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,i(t))})}"function"==typeof n&&(r=n,n=null);var s=f(t);return n&&s?w&&!m?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void u(t,o,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""===t)return r(b,0,1);for(var o,s,a="",u=0,c=t.length;u0;){for(var s=new Uint8Array(i),a=0===s[0],u="",c=1;255!==s[c];c++){if(u.length>310)return r(b,0,1);u+=s[c]}i=h(i,2+u.length),u=parseInt(u);var l=h(i,0,u);if(a)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(t){var f=new Uint8Array(l);l="";for(var c=0;c=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.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 H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function m(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,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function $(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(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=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var 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}var c;if(i){var l=-1;for(c=n;ca&&(n=a-u),c=n;c>=0;c--){for(var f=!0,h=0;hi&&(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;s239?4:o>223?3:o>191?2:1;if(i+a<=n){var u,c,l,f;switch(a){case 1:o<128&&(s=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(s=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return O(r)}function O(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function j(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function I(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 U(t,e,n,r,i){return i||I(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||I(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function V(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function L(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s55295&&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 z(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function W(t){return G.toByteArray(V(t))}function X(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function J(t){return t!==t}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var G=n(45),K=n(46),Z=n(47);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.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=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return s(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,s=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,r,i){if(!o.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(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var s=i-r,a=n-e,u=Math.min(s,a),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(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 w(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){B(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(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},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.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=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=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){function r(t){var e=!1,n=!1,r=!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 i(t)&&!t.forceJSONP)return new o(t);if(!r)throw new Error("JSONP disabled");return new s(t)}var i=n(11),o=n(51),s=n(58),a=n(59);e.polling=r,e.websocket=a},function(t,e,n){function r(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=n(12),o=n(5),s=n(3),a=n(6),u=n(19),c=n(0)("engine.io-client:polling");t.exports=r;var l=function(){return null!=new(n(11))({xdomain:!1}).responseType}();a(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){c("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){c("pre-pause polling complete"),--r||e()})),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",function(){c("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;c("polling got data %s",t);var n=function(t,n,r){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){c("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){(function(e){function r(t){if(!t||"object"!=typeof t)return!1;if(i(t)){for(var n=0,o=t.length;n0);return e}function i(t){var e=0;for(f=0;f0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,r,i){if(!o.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(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var s=i-r,a=n-e,u=Math.min(s,a),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(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 w(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||N(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){B(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(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},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.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=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=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){function r(t){var e=!1,n=!1,r=!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 i(t)&&!t.forceJSONP)return new o(t);if(!r)throw new Error("JSONP disabled");return new s(t)}var i=n(11),o=n(51),s=n(58),a=n(59);e.polling=r,e.websocket=a},function(t,e,n){function r(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=n(12),o=n(5),s=n(3),a=n(6),u=n(19),c=n(0)("engine.io-client:polling");t.exports=r;var l=function(){return null!=new(n(11))({xdomain:!1}).responseType}();a(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){c("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){c("pre-pause polling complete"),--r||e()})),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",function(){c("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;c("polling got data %s",t);var n=function(t,n,r){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){c("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){(function(e){function r(t){if(!t||"object"!=typeof t)return!1;if(i(t)){for(var n=0,o=t.length;n0);return e}function i(t){var e=0;for(f=0;f=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function o(t,e,n){var r,s;if(t)if(S(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(qr(t)||i(t)){var a="object"!=typeof t;for(r=0,s=t.length;r=0&&t.splice(n,1),n}function F(t,e){function n(t,e){var n,i=e.$$hashKey;if(qr(t))for(var o=0,s=t.length;o2?H(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,L(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Y(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:T(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":O(r)&&(i="$SCOPE"),i}function W(t,e){return y(t)?n:(E(e)||(e=e?2:null),JSON.stringify(t,Y,e))}function X(t){return C(t)?JSON.parse(t):t}function J(t,e){t=t.replace(Xr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function K(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return G(t,n*(J(e,r)-r))}function Z(t){t=Rr(t).clone();try{t.empty()}catch(t){}var e=Rr("
").append(t).html();try{return t[0].nodeType===Qr?Er(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Er(e)})}catch(t){return Er(e)}}function Q(t){try{return decodeURIComponent(t)}catch(t){}}function tt(t){var e={};return o((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=Q(r),b(r)&&(i=!b(i)||Q(i),kr.call(e,r)?qr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function et(t){var e=[];return o(t,function(t,n){qr(t)?o(t,function(t){e.push(rt(n,!0)+(!0===t?"":"="+rt(t,!0)))}):e.push(rt(n,!0)+(!0===t?"":"="+rt(t,!0)))}),e.length?e.join("&"):""}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function it(t,e){var n,r,i=Jr.length;for(r=0;r/,">"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Qt(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;if(t&&a.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(a,"")),t&&!u.test(t.name))return s();t.name=t.name.replace(u,""),Ur.resumeBootstrap=function(t){return o(t,function(t){r.push(t)}),s()},S(Ur.resumeDeferredBootstrap)&&Ur.resumeDeferredBootstrap()}function at(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ut(t){var e=Ur.element(t).injector();if(!e)throw Ir("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ct(t,e){return e=e||"_",t.replace(Gr,function(t,n){return(n?e:"")+t.toLowerCase()})}function lt(t,e,n){if(!t)throw Ir("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ft(t,e,n){return n&&qr(t)&&(t=t[t.length-1]),lt(S(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ht(t,e){if("hasOwnProperty"===t)throw Ir("badname","hasOwnProperty is not a valid {0} name",e)}function pt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,s=i.length,a=0;a=0)return"...";e.push(n)}return n})}function $t(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):y(t)?"undefined":"string"!=typeof t?mt(t):t}function yt(){return++oi}function bt(t){return t.replace(ui,function(t,e,n,r){return r?n.toUpperCase():n}).replace(ci,"Moz$1")}function wt(t){return!pi.test(t)}function xt(t){var e=t.nodeType;return e===Zr||!e||e===ei}function Ct(t){for(var e in ii[t.ng339])return!0;return!1}function Et(t,e){var n,r,i,s,a=e.createDocumentFragment(),u=[];if(wt(t))u.push(e.createTextNode(t));else{for(n=n||a.appendChild(e.createElement("div")),r=(di.exec(t)||["",""])[1].toLowerCase(),i=vi[r]||vi._default,n.innerHTML=i[1]+t.replace(gi,"<$1>")+i[2],s=i[0];s--;)n=n.lastChild;u=L(u,n.childNodes),n=a.firstChild,n.textContent=""}return a.textContent="",a.innerHTML="",o(u,function(t){a.appendChild(t)}),a}function kt(t,n){n=n||e;var r;return(r=hi.exec(t))?[n.createElement(r[1])]:(r=Et(t,n))?r.childNodes:[]}function St(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function At(t){if(t instanceof At)return t;var e;if(C(t)&&(t=Hr(t),e=!0),!(this instanceof At)){if(e&&"<"!=t.charAt(0))throw fi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new At(t)}e?Dt(this,kt(t)):Dt(this,t)}function Tt(t){return t.cloneNode(!0)}function Ot(t,e){if(e||Mt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r0||(ai(t,e,a),delete s[e])};o(e.split(" "),function(t){u(t),li[t]&&u(li[t])})}else for(e in s)"$destroy"!==e&&ai(t,e,a),delete s[e]}function Mt(t,e){var r=t.ng339,i=r&&ii[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Rt(t)),delete ii[r],t.ng339=n}}function _t(t,e){var r=t.ng339,i=r&&ii[r];return e&&!i&&(t.ng339=r=yt(),i=ii[r]={events:{},data:{},handle:n}),i}function Nt(t,e,n){if(xt(t)){var r=b(n),i=!r&&e&&!w(e),o=!e,s=_t(t,!i),a=s&&s.data;if(r)a[e]=n;else{if(o)return a;if(i)return a&&a[e];f(a,e)}}}function Pt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Bt(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",Hr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Hr(e)+" "," ")))})}function jt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=Hr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",Hr(n))}}function Dt(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;r1&&(i=V(i));for(var u=0;uc&&this.remove(p.key),e}},get:function(t){if(c").append(t).html())):n?$i.clone.call(t):t,s)for(var c in s)u.data("$"+c+"Controller",s[c].instance);return P.$$addScopeInfo(u,e),n&&n(u,e),l&&l(e,u,u,i),u}}function B(t){var e=t&&t[0];return e&&"foreignobject"!==I(e)&&e.toString().match(/SVG/)?"svg":"html"}function j(t,e,r,i,o,s){function a(t,r,i,o){var s,a,u,c,l,f,h,p,v;if(d){var m=r.length;for(v=new Array(m),l=0;l0);else r.push(t);return Rr(r)}function L(t,e,n){return function(r,i,o,s,a){return i=V(i[0],e,n),t(r,i,o,s,a)}}function z(t,r,o,s,a,u,c,l,f){function h(t,e,n,r){t&&(n&&(t=L(t,n,r)),t.require=v.require,t.directiveName=$,(R===v||v.$$isolateScope)&&(t=ot(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=L(e,n,r)),e.require=v.require,e.directiveName=$,(R===v||v.$$isolateScope)&&(e=ot(e,{isolateScope:!0})),l.push(e))}function p(t,e,n,r){var i;if(C(e)){var o=e.match(x),s=e.substring(o[0].length),a=o[1]||o[3],u="?"===o[2];if("^^"===a?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var c="$"+s+"Controller";i=a?n.inheritedData(c):n.data(c)}if(!i&&!u)throw ji("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(qr(e)){i=[];for(var l=0,f=e.length;l=0;q--)f=l[q],st(f,f.isolateScope?h:e,$,y,f.require&&p(f.directiveName,f.require,$,v),m)}f=f||{};for(var v,$,y,b,E,k=-Number.MAX_VALUE,A=f.newScopeDirective,T=f.controllerDirectives,R=f.newIsolateScopeDirective,M=f.templateDirective,_=f.nonTlbTranscludeDirective,N=!1,B=!1,j=f.hasElementTranscludeDirective,D=o.$$element=Rr(r),I=u,U=s,q=0,z=t.length;qv.priority)break;if((E=v.scope)&&(v.templateUrl||(w(E)?(Q("new/isolated scope",R||A,v,D),R=v):Q("new/isolated scope",R,v,D)),A=A||v),$=v.name,!v.templateUrl&&v.controller&&(E=v.controller,T=T||gt(),Q("'"+$+"' controller",T[$],v,D),T[$]=v),(E=v.transclude)&&(N=!0,v.$$tlb||(Q("transclusion",_,v,D),_=v),"element"==E?(j=!0,k=v.priority,y=D,D=o.$$element=Rr(e.createComment(" "+$+": "+o[$]+" ")),r=D[0],it(a,H(y),r),U=P(y,s,k,I&&I.name,{nonTlbTranscludeDirective:_})):(y=Rr(Tt(r)).contents(),D.empty(),U=P(y,s,n,n,{needsNewScope:v.$$isolateScope||v.$$newScope}))),v.template)if(B=!0,Q("template",M,v,D),M=v,E=S(v.template)?v.template(D,o):v.template,E=pt(E),v.replace){if(I=v,y=wt(E)?[]:he(et(v.templateNamespace,Hr(E))),r=y[0],1!=y.length||r.nodeType!==Zr)throw ji("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$,"");it(a,D,r);var K={$attr:{}},tt=F(r,[],K),nt=t.splice(q+1,t.length-(q+1));(R||A)&&Y(tt,R,A),t=t.concat(tt).concat(nt),J(o,K),z=t.length}else D.html(E);if(v.templateUrl)B=!0,Q("template",M,v,D),M=v,v.replace&&(I=v),g=G(t.splice(q,t.length-q),D,o,a,N&&U,c,l,{controllerDirectives:T,newScopeDirective:A!==v&&A,newIsolateScopeDirective:R,templateDirective:M,nonTlbTranscludeDirective:_}),z=t.length;else if(v.compile)try{b=v.compile(D,o,U),S(b)?h(null,b,W,X):b&&h(b.pre,b.post,W,X)}catch(t){i(t,Z(D))}v.terminal&&(g.terminal=!0,k=Math.max(k,v.priority))}return g.scope=A&&!0===A.scope,g.transcludeOnThisElement=N,g.templateOnThisElement=B,g.transclude=U,f.hasElementTranscludeDirective=j,g}function Y(t,e,n){for(var r=0,i=t.length;rp.priority)&&-1!=p.restrict.indexOf(r)){if(u&&(p=d(p,{$$start:u,$$end:f})),!p.$$bindings){var $=p.$$bindings=s(p,p.name);w($.isolateScope)&&(p.$$isolateBindings=$.isolateScope)}e.push(p),h=p}}catch(t){i(t)}return h}function X(e){if(c.hasOwnProperty(e))for(var n,r=t.get(e+l),i=0,o=r.length;i"+n+"",r.childNodes[0].childNodes;default:return n}}function nt(t,e){if("srcdoc"==e)return T.HTML;var n=I(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?T.RESOURCE_URL:void 0}function rt(t,e,n,i,o){var s=nt(t,i);o=$[i]||o;var a=r(n,!0,s,o);if(a){if("multiple"===i&&"select"===I(t))throw ji("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var c=u.$$observers||(u.$$observers=gt());if(E.test(i))throw ji("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=u[i];l!==n&&(a=l&&r(l,!0,s,o),n=l),a&&(u[i]=a(t),(c[i]||(c[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(a,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function it(t,n,r){var i,o,s=n[0],a=n.length,u=s.parentNode;if(t)for(i=0,o=t.length;i0&&R.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&R.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=fe(t,e);n&&n.length&&R.addClass(this.$$element,n);var r=fe(e,t);r&&r.length&&R.removeClass(this.$$element,r)},$set:function(t,e,n,r){var s,a=this.$$element[0],u=Lt(a,t),c=Ht(t),l=t;if(u?(this.$$element.prop(t,e),r=u):c&&(this[c]=e,l=c),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=ct(t,"-")),"a"===(s=I(this.$$element))&&"href"===t||"img"===s&&"src"===t)this[t]=e=M(e,"src"===t);else if("img"===s&&"srcset"===t&&b(e)){for(var f="",h=Hr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(h)?p:/(,)/,g=h.split(d),v=Math.floor(g.length/2),m=0;m0?" ":"")+s}return n}function he(t){t=Rr(t);var e=t.length;if(e<=1)return t;for(;e--;){t[e].nodeType===ti&&Pr.call(t,e,1)}return t}function pe(t,e){if(e&&C(e))return e;if(C(t)){var n=Ui.exec(t);if(n)return n[3]}}function de(){var t={},e=!1;this.register=function(e,n){ht(e,"controller"),w(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){function s(t,e,n,i){if(!t||!w(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,a,u,c){var l,h,p,d;if(u=!0===u,c&&C(c)&&(d=c),C(r)){if(!(h=r.match(Ui)))throw Ii("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=h[1],d=d||h[3],r=t.hasOwnProperty(p)?t[p]:pt(a.$scope,p,!0)||(e?pt(o,p,!0):n),ft(r,p,!0)}if(u){var g=(qr(r)?r[r.length-1]:r).prototype;l=Object.create(g||null),d&&s(a,d,l,p||r.name);return f(function(){var t=i.invoke(r,l,a,p);return t!==l&&(w(t)||S(t))&&(l=t,d&&s(a,d,l,p||r.name)),l},{instance:l,identifier:d})}return l=i.instantiate(r,a,p),d&&s(a,d,l,p||r.name),l}}]}function ge(){this.$get=["$window",function(t){return Rr(t.document)}]}function ve(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function me(t){return w(t)?k(t)?t.toISOString():W(t):t}function $e(){this.$get=function(){return function(t){if(!t)return"";var e=[];return s(t,function(t,n){null===t||y(t)||(qr(t)?o(t,function(t,r){e.push(rt(n)+"="+rt(me(t)))}):e.push(rt(n)+"="+rt(me(t))))}),e.join("&")}}}function ye(){this.$get=function(){return function(t){function e(t,r,i){null===t||y(t)||(qr(t)?o(t,function(t,n){e(t,r+"["+(w(t)?n:"")+"]")}):w(t)&&!k(t)?s(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(rt(r)+"="+rt(me(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function be(t,e){if(C(t)){var n=t.replace(zi,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Vi)||we(n))&&(t=X(n))}}return t}function we(t){var e=t.match(Li);return e&&Hi[e[0]].test(t)}function xe(t){function e(t,e){t&&(r[t]=r[t]?r[t]+", "+e:e)}var n,r=gt();return C(t)?o(t.split("\n"),function(t){n=t.indexOf(":"),e(Er(Hr(t.substr(0,n))),Hr(t.substr(n+1)))}):w(t)&&o(t,function(t,n){e(Er(n),Hr(t))}),r}function Ce(t){var e;return function(n){if(e||(e=xe(t)),n){var r=e[Er(n)];return void 0===r&&(r=null),r}return e}}function Ee(t,e,n,r){return S(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function ke(t){return 200<=t&&t<300}function Se(){var t=this.defaults={transformResponse:[be],transformRequest:[function(t){return!w(t)||R(t)||_(t)||M(t)?t:W(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:V(qi),put:V(qi),patch:V(qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return b(t)?(i=!!t,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,u,c,l,h,p){function d(e){function s(t){var e=f({},t);return e.data=Ee(t.data,t.headers,t.status,u.transformResponse),ke(t.status)?e:h.reject(e)}function a(t,e){var n,r={};return o(t,function(t,i){S(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t}),r}if(!Ur.isObject(e))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",e);if(!C(e.url))throw r("$http")("badreq","Http request configuration url must be a string. Received: {0}",e.url);var u=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);u.headers=function(e){var n,r,i,o=t.headers,s=f({},e.headers);o=f({},o.common,o[Er(e.method)]);t:for(n in o){r=Er(n);for(i in s)if(Er(i)===r)continue t;s[n]=o[n]}return a(s,V(e))}(e),u.method=Sr(u.method),u.paramSerializer=C(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer;var c=function(e){var r=e.headers,i=Ee(e.data,Ce(r),n,e.transformRequest);return y(i)&&o(r,function(t,e){"content-type"===Er(e)&&delete r[e]}),y(e.withCredentials)&&!y(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,i).then(s,s)},l=[c,n],d=h.when(u);for(o($,function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&l.push(t.response,t.responseError)});l.length;){var v=l.shift(),m=l.shift();d=d.then(v,m)}return i?(d.success=function(t){return ft(t,"fn"),d.then(function(e){t(e.data,e.status,e.headers,u)}),d},d.error=function(t){return ft(t,"fn"),d.then(null,function(e){t(e.data,e.status,e.headers,u)}),d}):(d.success=Wi("success"),d.error=Wi("error")),d}function g(r,i){function o(t,n,r,i){function o(){s(n,t,r,i)}p&&(ke(t)?p.put(E,[t,n,xe(r),i]):p.remove(E)),e?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function s(t,e,n,i){e=e>=-1?e:0,(ke(e)?$.resolve:$.reject)({data:t,status:e,headers:Ce(n),config:r,statusText:i})}function c(t){s(t.data,t.status,V(t.headers()),t.statusText)}function f(){var t=d.pendingRequests.indexOf(r);-1!==t&&d.pendingRequests.splice(t,1)}var p,g,$=h.defer(),x=$.promise,C=r.headers,E=v(r.url,r.paramSerializer(r.params));if(d.pendingRequests.push(r),x.then(f,f),!r.cache&&!t.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(p=w(r.cache)?r.cache:w(t.cache)?t.cache:m),p&&(g=p.get(E),b(g)?P(g)?g.then(c,c):qr(g)?s(g[1],g[0],V(g[2]),g[3]):s(g,200,{},"OK"):p.put(E,x)),y(g)){var k=Tn(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n;k&&(C[r.xsrfHeaderName||t.xsrfHeaderName]=k),a(r.method,E,i,o,C,r.timeout,r.withCredentials,r.responseType)}return x}function v(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}var m=c("$http");t.paramSerializer=C(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var $=[];return o(s,function(t){$.unshift(C(t)?p.get(t):p.invoke(t))}),d.pendingRequests=[],function(t){o(arguments,function(t){d[t]=function(e,n){return d(f({},n||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){d[t]=function(e,n,r){return d(f({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),d.defaults=t,d}]}function Ae(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Te(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return Oe(t,r,t.defer,e.angular.callbacks,n[0])}]}function Oe(t,e,n,r,i){function s(t,e,n){var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){ai(o,"load",s),ai(o,"error",s),i.body.removeChild(o),o=null;var a=-1,u="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),u=t.type,a="error"===t.type?404:200),n&&n(a,u)},si(o,"load",s),si(o,"error",s),i.body.appendChild(o),s}return function(i,a,u,c,l,f,h,p){function d(){$&&$(),w&&w.abort()}function v(e,r,i,o,s){b(C)&&n.cancel(C),$=w=null,e(r,i,o,s),t.$$completeOutstandingRequest(g)}if(t.$$incOutstandingRequestCount(),a=a||t.url(),"jsonp"==Er(i)){var m="_"+(r.counter++).toString(36);r[m]=function(t){r[m].data=t,r[m].called=!0};var $=s(a.replace("JSON_CALLBACK","angular.callbacks."+m),m,function(t,e){v(c,t,r[m].data,"",e),r[m]=g})}else{var w=e(i,a);w.open(i,a,!0),o(l,function(t,e){b(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"==An(a).protocol?404:0),v(c,n,e,w.getAllResponseHeaders(),t)};var x=function(){v(c,-1,null,null,"")};if(w.onerror=x,w.onabort=x,h&&(w.withCredentials=!0),p)try{w.responseType=p}catch(t){if("json"!==p)throw t}w.send(y(u)?null:u)}if(f>0)var C=n(d,f);else P(f)&&f.then(d)}}function Re(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function s(n){return n.replace(h,t).replace(p,e)}function a(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=W(t)}return t}function u(o,u,h,p){function d(t){try{return t=T(t),p&&!b(t)?t:a(t)}catch(t){r(Xi.interr(o,t))}}p=!!p;for(var g,v,m,$=0,w=[],x=[],C=o.length,E=[],k=[];$1&&Xi.throwNoconcat(o),!u||w.length){var A=function(t){for(var e=0,n=w.length;e4,l=c?H(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,d=b(u)&&!u,g=(d?r:n).defer(),v=g.promise;return a=b(a)?a:0,v.then(null,null,c?function(){i.apply(null,l)}:i),v.$$intervalId=f(function(){g.notify(p++),a>0&&p>=a&&(g.resolve(p),h(v.$$intervalId),delete o[v.$$intervalId]),d||t.$apply()},s),o[v.$$intervalId]=g,v}var o={};return i.cancel=function(t){return!!(t&&t.$$intervalId in o)&&(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},i}]}function _e(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=nt(e[n]);return e.join("/")}function Ne(t,e){var n=An(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=p(n.port)||Gi[n.protocol]||null}function Pe(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=An(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=tt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Be(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function je(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function De(t){return t.replace(/(#.+)|#$/,"$1")}function Ie(t){return t.substr(0,je(t).lastIndexOf("/")+1)}function Ue(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Fe(t,e,n){this.$$html5=!0,n=n||"",Ne(t,this),this.$$parse=function(t){var n=Be(e,t);if(!C(n))throw Ki("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Pe(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=et(this.$$search),n=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s,a;return b(o=Be(t,r))?(s=o,a=b(o=Be(n,o))?e+(Be("/",o)||o):t+s):b(o=Be(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a}}function Ve(t,e,n){Ne(t,this),this.$$parse=function(r){var i,o=Be(t,r)||Be(e,r);y(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",y(o)&&(t=r,this.replace())):(i=Be(n,o),y(i)&&(i=o)),Pe(i,this),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return je(t)==je(e)&&(this.$$parse(e),!0)}}function qe(t,e,n){this.$$html5=!0,Ve.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s;return t==je(r)?o=r:(s=Be(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Le(t){return function(){return this[t]}}function He(t,e){return function(n){return y(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function ze(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return b(e)?(t=e,this):t},this.html5Mode=function(t){return N(t)?(e.enabled=t,this):w(t)?(N(t.enabled)&&(e.enabled=t.enabled),N(t.requireBase)&&(e.requireBase=t.requireBase),N(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){function a(t,e,n){var i=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(t){throw c.url(i),c.$$state=o,t}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw Ki("nobase","$location in HTML5 mode requires a tag to be present!");f=Ue(p)+(h||"/"),l=i.history?Fe:qe}else f=je(p),l=Ve;var d=Ie(f);c=new l(f,d,"#"+t),c.$$parseLinkUrl(p,p),c.$$state=r.state();var g=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Rr(t.target);"a"!==I(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var a=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");w(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=An(a.animVal).href),g.test(a)||!a||i.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(a,u)&&(t.preventDefault(),c.absUrl()!=r.url()&&(n.$apply(),s.angular["ff-684208-preventDefault"]=!0))}}),De(c.absUrl())!=De(p)&&r.url(c.absUrl(),!0);var v=!0;return r.onUrlChange(function(t,e){if(y(Be(d,t)))return void(s.location.href=t);n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;t=De(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=o,a(i,!1,o)):(v=!1,u(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var t=De(r.url()),e=De(c.absUrl()),o=r.state(),s=c.$$replace,l=t!==e||c.$$html5&&i.history&&o!==c.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=o):(l&&a(e,s,o===c.$$state?null:c.$$state),u(t,o)))})),c.$$replace=!1}),c}]}function Ye(){var t=!0,e=this;this.debugEnabled=function(e){return b(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack?t=t.message&&-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 i(t){var e=n.console||{},i=e[t]||e.log||g,s=!1;try{s=!!i.apply}catch(t){}return s?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function We(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Qi("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Xe(t,e){if(t+="",!C(t))throw Qi("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Je(t,e){if(t){if(t.constructor===t)throw Qi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Qi("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Qi("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Qi("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function Ge(t,e){if(t){if(t.constructor===t)throw Qi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===to||t===eo||t===no)throw Qi("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function Ke(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Qi("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function Ze(t,e){return void 0!==t?t:e}function Qe(t,e){return void 0===t?e:void 0===e?t:t+e}function tn(t,e){return!t(e).$stateful}function en(t,e){var n,r;switch(t.type){case so.Program:n=!0,o(t.body,function(t){en(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case so.Literal:t.constant=!0,t.toWatch=[];break;case so.UnaryExpression:en(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case so.BinaryExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case so.LogicalExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case so.ConditionalExpression:en(t.test,e),en(t.alternate,e),en(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case so.Identifier:t.constant=!1,t.toWatch=[t];break;case so.MemberExpression:en(t.object,e),t.computed&&en(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case so.CallExpression:n=!!t.filter&&tn(e,t.callee.name),r=[],o(t.arguments,function(t){en(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&tn(e,t.callee.name)?r:[t];break;case so.AssignmentExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case so.ArrayExpression:n=!0,r=[],o(t.elements,function(t){en(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case so.ObjectExpression:n=!0,r=[],o(t.properties,function(t){en(t.value,e),n=n&&t.value.constant,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case so.ThisExpression:t.constant=!1,t.toWatch=[]}}function nn(t){if(1==t.length){var e=t[0].expression,r=e.toWatch;return 1!==r.length?r:r[0]!==e?r:n}}function rn(t){return t.type===so.Identifier||t.type===so.MemberExpression}function on(t){if(1===t.body.length&&rn(t.body[0].expression))return{type:so.AssignmentExpression,left:t.body[0].expression,right:{type:so.NGValueParameter},operator:"="}}function sn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===so.Literal||t.body[0].expression.type===so.ArrayExpression||t.body[0].expression.type===so.ObjectExpression)}function an(t){return t.constant}function un(t,e){this.astBuilder=t,this.$filter=e}function cn(t,e){this.astBuilder=t,this.$filter=e}function ln(t){return"constructor"==t}function fn(t){return S(t.valueOf)?t.valueOf():uo.call(t)}function hn(){var t=gt(),e=gt();this.$get=["$filter",function(r){function i(n,i,o){var a,p,$;switch(o=o||m,typeof n){case"string":n=n.trim(),$=n;var y=o?e:t;if(!(a=y[$])){":"===n.charAt(0)&&":"===n.charAt(1)&&(p=!0,n=n.substring(2));var b=o?v:d,w=new oo(b);a=new ao(w,r,b).parse(n),a.constant?a.$$watchDelegate=f:p?a.$$watchDelegate=a.literal?l:c:a.inputs&&(a.$$watchDelegate=u),o&&(a=s(a)),y[$]=a}return h(a,i);case"function":return h(n,i);default:return h(g,i)}}function s(t){function e(e,n,r,i){var o=m;m=!0;try{return t(e,n,r,i)}finally{m=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=s(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n0&&c(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return m(e,!0,t)},function(e){return m(e,!1,t)},e)}}),f(l.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(w(t)||S(t))&&(n=t&&t.then),S(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,c(this.promise.$$state))}catch(t){r[1](t),e(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,c(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,s=r.length;o=0&&$(o,-1),s=null}},$watchGroup:function(t,e){function n(){u=!1,c?(c=!1,e(i,i,a)):e(i,r,a)}var r=new Array(t.length),i=new Array(t.length),s=[],a=this,u=!1,c=!0;if(!t.length){var l=!0;return a.$evalAsync(function(){l&&e(i,i,a)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){i[0]=t,r[0]=n,e(i,t===n?i:r,o)}):(o(t,function(t,e){var o=a.$watch(t,function(t,o){i[e]=t,r[e]=o,u||(u=!0,a.$evalAsync(n))});s.push(o)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(t,e){function n(t){o=t;var e,n,r,a;if(!y(o)){if(w(o))if(i(o)){s!==p&&(s=p,v=s.length=0,f++),e=o.length,v!==e&&(f++,s.length=v=e);for(var u=0;ue){f++;for(n in s)kr.call(o,n)||(v--,delete s[n])}}else s!==o&&(s=o,f++);return f}}function r(){if(g?(g=!1,e(o,o,u)):e(o,a,u),c)if(w(o))if(i(o)){a=new Array(o.length);for(var t=0;t1,f=0,h=l(t,n),p=[],d={},g=!0,v=0;return this.$watch(h,r)},$digest:function(){var t,r,i,o,u,l,h,p,d,g,$,y,b=e,w=this,E=[];v("$digest"),f.$$checkUrlChange(),this===k&&null!==a&&(f.defer.cancel(a),C()),s=null;do{for(p=!1,g=w;A.length;){try{y=A.shift(),y.scope.$eval(y.expression,y.locals)}catch(t){c(t)}s=null}t:do{if(l=g.$$watchers)for(h=l.length;h--;)try{if(t=l[h])if(u=t.get,(r=u(g))===(i=t.last)||(t.eq?q(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(t===s){p=!1;break t}}else p=!0,s=t,t.last=t.eq?F(r,null):r,o=t.fn,o(r,i===x?r:i,g),b<5&&($=4-b,E[$]||(E[$]=[]),E[$].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch(t){c(t)}if(!(d=g.$$watchersCount&&g.$$childHead||g!==w&&g.$$nextSibling))for(;g!==w&&!(d=g.$$nextSibling);)g=g.$parent}while(g=d);if((p||A.length)&&!b--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,E)}while(p||A.length);for(m();T.length;)try{T.shift()()}catch(t){c(t)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===k&&f.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var e in this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,p(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){k.$$phase||A.length||f.defer(function(){A.length&&k.$digest()}),A.push({scope:this,expression:l(t),locals:e})},$$postDigest:function(t){T.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{m()}}catch(t){c(t)}finally{try{k.$digest()}catch(t){throw c(t),t}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&O.push(e),t=l(t),E()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,b(i,1,t))}},$emit:function(t,e){var n,r,i,o=[],s=this,a=!1,u={name:t,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=L([u],arguments,1);do{for(n=s.$$listeners[t]||o,u.currentScope=s,r=0,i=n.length;r-1)throw co("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=zr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(A(t))return new RegExp("^"+t.source+"$");throw co("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function bn(t){var e=[];return b(t)&&o(t,function(t){e.push(yn(t))}),e}function wn(){this.SCE_CONTEXTS=lo;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=bn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=bn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Tn(e):!!t.exec(e.href)}function i(n){var i,o,s=An(n.toString()),a=!1;for(i=0,o=t.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=V(lo);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=v),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return o(lo,function(t,e){var n=Er(e);r[bt("parse_as_"+n)]=function(e){return i(t,e)},r[bt("get_trusted_"+n)]=function(e){return s(t,e)},r[bt("trust_as_"+n)]=function(e){return a(t,e)}}),r}]}function Cn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=p((/android (\d+)/.exec(Er((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,c=a.body&&a.body.style,l=!1,f=!1;if(c){for(var h in c)if(r=u.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),l=!!("transition"in c||n+"Transition"in c),f=!!("animation"in c||n+"Animation"in c),!o||l&&f||(l=C(c.webkitTransition),f=C(c.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||o<4||s),hasEvent:function(t){if("input"===t&&Or<=11)return!1;if(y(i[t])){var e=a.createElement("div");i[t]="on"+t in e}return i[t]},csp:Yr(),vendorPrefix:n,transitions:l,animations:f,android:o}}]}function En(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,s){function a(t){if(!s)throw ji("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText);return n.reject(t)}i.totalPendingRequests++,C(o)&&!y(t.get(o))||(o=r.getTrustedResourceUrl(o));var u=e.defaults&&e.defaults.transformResponse;qr(u)?u=u.filter(function(t){return t!==be}):u===be&&(u=null);var c={cache:t,transformResponse:u};return e.get(o,c).finally(function(){i.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},a)}return i.totalPendingRequests=0,i}]}function kn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return o(r,function(t){var r=Ur.element(t).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+zr(e)+"(\\s|\\||$)").test(r)&&i.push(t)}else-1!=r.indexOf(e)&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(u=e(o.substring(0,a)),y(r[u])&&(r[u]=e(o.substring(a+1))));return r}}function Mn(){this.$get=Rn}function _n(t){function e(r,i){if(w(r)){var s={};return o(r,function(t,n){s[n]=e(n,t)}),s}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Dn),e("date",Zn),e("filter",Nn),e("json",Qn),e("limitTo",tr),e("lowercase",bo),e("number",In),e("orderBy",er),e("uppercase",wo)}function Nn(){return function(t,e,n){if(!i(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var o,s,a=jn(e);switch(a){case"function":o=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=Pn(e,n,s);break;default:return t}return Array.prototype.filter.call(t,o)}}function Pn(t,e,n){var r=w(t)&&"$"in t;return!0===e?e=q:S(e)||(e=function(t,e){return!y(t)&&(null===t||null===e?t===e:!(w(e)||w(t)&&!$(t))&&(t=Er(""+t),e=Er(""+e),-1!==t.indexOf(e)))}),function(i){return r&&!w(i)?Bn(i,t.$,e,!1):Bn(i,t,e,n)}}function Bn(t,e,n,r,i){var o=jn(t),s=jn(e);if("string"===s&&"!"===e.charAt(0))return!Bn(t,e.substring(1),n,r);if(qr(t))return t.some(function(t){return Bn(t,e,n,r)});switch(o){case"object":var a;if(r){for(a in t)if("$"!==a.charAt(0)&&Bn(t[a],e,n,!0))return!0;return!i&&Bn(t,e,n,!1)}if("object"===s){for(a in e){var u=e[a];if(!S(u)&&!y(u)){var c="$"===a;if(!Bn(c?t:t[a],u,n,c,c))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function jn(t){return null===t?"null":typeof t}function Dn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return y(n)&&(n=e.CURRENCY_SYM),y(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Vn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function In(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Vn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Un(t){var e,n,r,i,o,s=0;for((n=t.indexOf(go))>-1&&(t=t.replace(go,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==vo;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==vo;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>po&&(e=e.splice(0,po-1),s=n-1,n=1),{d:e,e:s,i:n}}function Fn(t,e,n,r){var i=t.d,o=i.length-t.i;e=y(e)?Math.min(Math.max(n,o),r):+e;var s=e+t.i,a=i[s];if(s>0)i.splice(s);else{t.i=1,i.length=s=e+1;for(var u=0;u=5&&i[s-1]++;o0?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 qn(t,e,n){var r="";for(t<0&&(r="-",t=-t),t=""+t;t.length0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),qn(o,e,r)}}function Hn(t,e){return function(n,r){var i=n["get"+t]();return r[Sr(e?"SHORT"+t:t)][i]}}function zn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=qn(Math[r>0?"floor":"ceil"](r/60),2)+qn(Math.abs(r%60),2)}function Yn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Wn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Xn(t){return function(e){var n=Yn(e.getFullYear()),r=Wn(e),i=+r-+n;return qn(1+Math.round(i/6048e5),t)}}function Jn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Gn(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function Kn(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function Zn(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,s=e[8]?r.setUTCFullYear:r.setFullYear,a=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=p(e[9]+e[10]),o=p(e[9]+e[11])),s.call(r,p(e[1]),p(e[2])-1,p(e[3]));var u=p(e[4]||0)-i,c=p(e[5]||0)-o,l=p(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return a.call(r,u,c,l,f),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var s,a,u="",c=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,C(n)&&(n=yo.test(n)?p(n):e(n)),E(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)a=$o.exec(r),a?(c=L(c,a,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=J(i,l),n=K(n,i,!0)),o(c,function(e){s=mo[e],u+=s?s(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Qn(){return function(t,e){return y(e)&&(e=2),W(t,e)}}function tr(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):p(e),isNaN(e)?t:(E(t)&&(t=t.toString()),qr(t)||C(t)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function er(t){function e(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=v;if(S(e))i=e;else if(C(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function r(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),n(t))?t:$(t)&&(t=t.toString(),n(t))?t:e}function o(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=r(t,e)),{value:t,type:n}}function s(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value=v},a.$observe("min",function(t){v=p(t),u.$validate()})}if(b(a.max)||a.ngMax){var m;u.$validators.max=function(t){return!h(t)||y(m)||r(t)<=m},a.$observe("max",function(t){m=p(t),u.$validate()})}}}function fr(t,e,r,i){var o=e[0];(i.$$hasNativeValidators=w(o.validity))&&i.$parsers.push(function(t){var r=e.prop(Cr)||{};return r.badInput&&!r.typeMismatch?n:t})}function hr(t,e,r,i,o,s){if(fr(t,e,r,i),ar(t,e,r,i,o,s),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:_o.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!E(t))throw fs("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),b(r.min)||r.ngMin){var a;i.$validators.min=function(t){return i.$isEmpty(t)||y(a)||t>=a},r.$observe("min",function(t){b(t)&&!E(t)&&(t=parseFloat(t,10)),a=E(t)&&!isNaN(t)?t:n,i.$validate()})}if(b(r.max)||r.ngMax){var u;i.$validators.max=function(t){return i.$isEmpty(t)||y(u)||t<=u},r.$observe("max",function(t){b(t)&&!E(t)&&(t=parseFloat(t,10)),u=E(t)&&!isNaN(t)?t:n,i.$validate()})}}function pr(t,e,n,r,i,o){ar(t,e,n,r,i,o),or(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ro.test(n)}}function dr(t,e,n,r,i,o){ar(t,e,n,r,i,o),or(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Mo.test(n)}}function gr(t,e,n,r){y(n.name)&&e.attr("name",u());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function vr(t,e,n,r,i){var o;if(b(r)){if(o=t(r),!o.constant)throw fs("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function mr(t,e,n,r,i,o,s,a){var u=vr(a,t,"ngTrueValue",n.ngTrueValue,!0),c=vr(a,t,"ngFalseValue",n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return q(t,u)}),r.$parsers.push(function(t){return t?u:c})}function $r(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[];t:for(var r=0;r0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),a.data("$classCounts",n),r.join(" ")}function h(t,e){var i=r(e,t),o=r(t,e);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(a,i),o&&o.length&&n.removeClass(a,o)}function p(t){if(!0===e||s.$index%2===e){var n=i(t||[]);if(d){if(!q(t,d)){var r=i(d);h(r,n)}}else c(n)}d=qr(t)?t.map(function(t){return V(t)}):V(t)}var d;s.$watch(u[t],p,!0),u.$observe("class",function(e){p(s.$eval(u[t]))}),"ngClass"!==t&&s.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var a=i(s.$eval(u[t]));o===e?c(a):l(a)}})}}}]}function yr(t){function e(t,e,u){y(e)?r("$pending",t,u):i("$pending",t,u),N(e)?e?(f(a.$error,t,u),l(a.$$success,t,u)):(l(a.$error,t,u),f(a.$$success,t,u)):(f(a.$error,t,u),f(a.$$success,t,u)),a.$pending?(o(ls,!0),a.$valid=a.$invalid=n,s("",null)):(o(ls,!1),a.$valid=br(a.$error),a.$invalid=!a.$valid,s("",a.$valid));var c;c=a.$pending&&a.$pending[t]?n:!a.$error[t]&&(!!a.$$success[t]||null),s(t,c),a.$$parentForm.$setValidity(t,c,a)}function r(t,e,n){a[t]||(a[t]={}),l(a[t],e,n)}function i(t,e,r){a[t]&&f(a[t],e,r),br(a[t])&&(a[t]=n)}function o(t,e){e&&!c[t]?(h.addClass(u,t),c[t]=!0):!e&&c[t]&&(h.removeClass(u,t),c[t]=!1)}function s(t,e){t=t?"-"+ct(t,"-"):"",o(ss+t,!0===e),o(as+t,!1===e)}var a=t.ctrl,u=t.$element,c={},l=t.set,f=t.unset,h=t.$animate;c[as]=!(c[ss]=u.hasClass(ss)),a.$setValidity=e}function br(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function wr(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var xr=/^\/(.+)\/([a-z]*)$/,Cr="validity",Er=function(t){return C(t)?t.toLowerCase():t},kr=Object.prototype.hasOwnProperty,Sr=function(t){return C(t)?t.toUpperCase():t},Ar=function(t){return C(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Tr=function(t){return C(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(Er=Ar,Sr=Tr);var Or,Rr,Mr,_r,Nr=[].slice,Pr=[].splice,Br=[].push,jr=Object.prototype.toString,Dr=Object.getPrototypeOf,Ir=r("ng"),Ur=t.angular||(t.angular={}),Fr=0;Or=e.documentMode,g.$inject=[],v.$inject=[];var Vr,qr=Array.isArray,Lr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Hr=function(t){return C(t)?t.trim():t},zr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#(?:<\/\1>|)$/,pi=/<|&#?\w+;/,di=/<([\w:-]+)/,gi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,vi={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};vi.optgroup=vi.option,vi.tbody=vi.tfoot=vi.colgroup=vi.caption=vi.thead,vi.th=vi.td;var mi=Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},$i=At.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),At(t).on("load",r))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Rr(t>=0?this[t]:this[this.length+t])},length:0,push:Br,sort:[].sort,splice:[].splice},yi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){yi[Er(t)]=t});var bi={};o("input,select,option,textarea,button,form,details".split(","),function(t){bi[t]=!0});var wi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Nt,removeData:Mt,hasData:Ct},function(t,e){At[e]=t}),o({data:Nt,inheritedData:Ut,scope:function(t){return Rr.data(t,"$scope")||Ut(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Rr.data(t,"$isolateScope")||Rr.data(t,"$isolateScopeNoTemplate")},controller:It,injector:function(t){return Ut(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Pt,css:function(t,e,n){if(e=bt(e),!b(n))return t.style[e];t.style[e]=n},attr:function(t,e,r){var i=t.nodeType;if(i!==Qr&&2!==i&&i!==ti){var o=Er(e);if(yi[o]){if(!b(r))return t[e]||(t.attributes.getNamedItem(e)||g).specified?o:n;r?(t[e]=!0,t.setAttribute(e,o)):(t[e]=!1,t.removeAttribute(o))}else if(b(r))t.setAttribute(e,r);else if(t.getAttribute){var s=t.getAttribute(e,2);return null===s?n:s}}},prop:function(t,e,n){if(!b(n))return t[e];t[e]=n},text:function(){function t(t,e){if(y(e)){var n=t.nodeType;return n===Zr||n===Qr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(y(e)){if(t.multiple&&"select"===I(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(y(e))return t.innerHTML;Ot(t,!0),t.innerHTML=e},empty:Ft},function(t,e){At.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ft&&y(2==t.length&&t!==Pt&&t!==It?e:n)){if(w(e)){for(r=0;r=0?e.split(" "):[e],c=u.length,l=function(e,n,i){var o=s[e];o||(o=s[e]=[],o.specialHandlerWrapper=n,"$destroy"===e||i||si(t,e,a)),o.push(r)};c--;)e=u[c],li[e]?(l(li[e],Wt),l(e,n,!0)):l(e)}},off:Rt,one:function(t,e,n){t=Rr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;Ot(t),o(new At(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===Zr&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Zr||n===ni){e=new At(e);for(var r=0,i=e.length;r1||t(function(){for(var t=0;t <= >= && || ! = |".split(" "),function(t){ro[t]=!0});var io={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},oo=function(t){this.options=t};oo.prototype={constructor:oo,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:so.Program,body:t}},expressionStatement:function(){return{type:so.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:so.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:so.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:so.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:so.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:so.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=F(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:so.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:so.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:so.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:so.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.expression())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:so.Identifier,name:t.text}},constant:function(){return{type:so.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:so.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:so.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:so.ObjectExpression,properties:e}},throwError:function(t,e){throw Qi("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 Qi("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 Qi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],s=o.text;if(s===e||s===n||s===r||s===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},constants:{true:{type:so.Literal,value:!0},false:{type:so.Literal,value:!1},null:{type:so.Literal,value:null},undefined:{type:so.Literal,value:n},this:{type:so.ThisExpression}}},un.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},en(i,r.$filter);var s,a="";if(this.stage="assign",s=on(i)){this.state.computing="assign";var u=this.nextId();this.recurse(s,u),this.return_(u),a="fn.assign="+this.generateFunction("assign","s,v,l")}var c=nn(i.body);r.stage="inputs",o(c,function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,We,Je,Ge,Xe,Ke,Ze,Qe,t);return this.state=this.stage=n,f.literal=sn(i),f.constant=an(i),f},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,r,i,s,a){var u,c,l,f,h=this;if(i=i||g,!a&&b(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,s,!0));switch(t.type){case so.Program:o(t.body,function(e,r){h.recurse(e.expression,n,n,function(t){c=t}),r!==t.body.length-1?h.current().body.push(c,";"):h.return_(c)});break;case so.Literal:f=this.escape(t.value),this.assign(e,f),i(f);break;case so.UnaryExpression:this.recurse(t.argument,n,n,function(t){c=t}),f=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,f),i(f);break;case so.BinaryExpression:this.recurse(t.left,n,n,function(t){u=t}),this.recurse(t.right,n,n,function(t){c=t}),f="+"===t.operator?this.plus(u,c):"-"===t.operator?this.ifDefined(u,0)+t.operator+this.ifDefined(c,0):"("+u+")"+t.operator+"("+c+")",this.assign(e,f),i(f);break;case so.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case so.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case so.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),We(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){s&&1!==s&&h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||ln(t.name))&&h.addEnsureSafeObject(e),i(e);break;case so.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,u,n,function(){h.if_(h.notNull(u),function(){s&&1!==s&&h.addEnsureSafeAssignContext(u),t.computed?(c=h.nextId(),h.recurse(t.property,c),h.getStringValue(c),h.addEnsureSafeMemberName(c),s&&1!==s&&h.if_(h.not(h.computedMember(u,c)),h.lazyAssign(h.computedMember(u,c),"{}")),f=h.ensureSafeObject(h.computedMember(u,c)),h.assign(e,f),r&&(r.computed=!0,r.name=c)):(We(t.property.name),s&&1!==s&&h.if_(h.not(h.nonComputedMember(u,t.property.name)),h.lazyAssign(h.nonComputedMember(u,t.property.name),"{}")),f=h.nonComputedMember(u,t.property.name),(h.state.expensiveChecks||ln(t.property.name))&&(f=h.ensureSafeObject(f)),h.assign(e,f),r&&(r.computed=!1,r.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!s);break;case so.CallExpression:e=e||this.nextId(),t.filter?(c=h.filter(t.callee.name),l=[],o(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),l.push(e)}),f=c+"("+l.join(",")+")",h.assign(e,f),i(e)):(c=h.nextId(),u={},l=[],h.recurse(t.callee,c,u,function(){h.if_(h.notNull(c),function(){h.addEnsureSafeFunction(c),o(t.arguments,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(h.ensureSafeObject(t))})}),u.name?(h.state.expensiveChecks||h.addEnsureSafeObject(u.context),f=h.member(u.context,u.name,u.computed)+"("+l.join(",")+")"):f=c+"("+l.join(",")+")",f=h.ensureSafeObject(f),h.assign(e,f)},function(){h.assign(e,"undefined")}),i(e)}));break;case so.AssignmentExpression:if(c=this.nextId(),u={},!rn(t.left))throw Qi("lval","Trying to assign a value to a non l-value");this.recurse(t.left,n,u,function(){h.if_(h.notNull(u.context),function(){h.recurse(t.right,c),h.addEnsureSafeObject(h.member(u.context,u.name,u.computed)),h.addEnsureSafeAssignContext(u.context),f=h.member(u.context,u.name,u.computed)+t.operator+c,h.assign(e,f),i(e||f)})},1);break;case so.ArrayExpression:l=[],o(t.elements,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(t)})}),f="["+l.join(",")+"]",this.assign(e,f),i(f);break;case so.ObjectExpression:l=[],o(t.properties,function(t){h.recurse(t.value,h.nextId(),n,function(e){l.push(h.escape(t.key.type===so.Identifier?t.key.name:""+t.key.value)+":"+e)})}),f="{"+l.join(",")+"}",this.assign(e,f),i(f);break;case so.ThisExpression:this.assign(e,"s"),i("s");break;case so.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var s=this;return function(){s.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(C(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(E(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 Qi("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]}},cn.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,en(r,n.$filter);var i,s;(i=on(r))&&(s=this.recurse(i));var a,u=nn(r.body);u&&(a=[],o(u,function(t,e){var r=n.recurse(t);t.input=r,a.push(r),t.watchId=e}));var c=[];o(r.body,function(t){c.push(n.recurse(t.expression))});var l=0===r.body.length?function(){}:1===r.body.length?c[0]:function(t,e){var n;return o(c,function(r){n=r(t,e)}),n};return s&&(l.assign=function(t,e,n){return s(t,n,e)}),a&&(l.inputs=a),l.literal=sn(r),l.constant=an(r),l},recurse:function(t,e,r){var i,s,a,u=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case so.Literal:return this.value(t.value,e);case so.UnaryExpression:return s=this.recurse(t.argument),this["unary"+t.operator](s,e);case so.BinaryExpression:case so.LogicalExpression:return i=this.recurse(t.left),s=this.recurse(t.right),this["binary"+t.operator](i,s,e);case so.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case so.Identifier:return We(t.name,u.expression),u.identifier(t.name,u.expensiveChecks||ln(t.name),e,r,u.expression);case so.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(We(t.property.name,u.expression),s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(i,s,e,r,u.expression):this.nonComputedMember(i,s,u.expensiveChecks,e,r,u.expression);case so.CallExpression:return a=[],o(t.arguments,function(t){a.push(u.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?function(t,r,i,o){for(var u=[],c=0;c":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:n,name:n,value:t}:t}},identifier:function(t,e,r,i,o){return function(s,a,u,c){var l=a&&t in a?a:s;i&&1!==i&&l&&!l[t]&&(l[t]={});var f=l?l[t]:n;return e&&Je(f,o),r?{context:l,name:t,value:f}:f}},computedMember:function(t,e,n,r,i){return function(o,s,a,u){var c,l,f=t(o,s,a,u);return null!=f&&(c=e(o,s,a,u),c=Xe(c),We(c,i),r&&1!==r&&(Ke(f),f&&!f[c]&&(f[c]={})),l=f[c],Je(l,i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(t,e,r,i,o,s){return function(a,u,c,l){var f=t(a,u,c,l);o&&1!==o&&(Ke(f),f&&!f[e]&&(f[e]={}));var h=null!=f?f[e]:n;return(r||ln(e))&&Je(h,s),i?{context:f,name:e,value:h}:h}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var ao=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new so(this.lexer),this.astCompiler=n.csp?new cn(this.ast,e):new un(this.ast,e)};ao.prototype={constructor:ao,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var uo=Object.prototype.valueOf,co=r("$sce"),lo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ji=r("$compile"),fo=e.createElement("a"),ho=An(t.location.href);Rn.$inject=["$document"],_n.$inject=["$provide"];var po=22,go=".",vo="0";Dn.$inject=["$locale"],In.$inject=["$locale"];var mo={yyyy:Ln("FullYear",4),yy:Ln("FullYear",2,0,!0),y:Ln("FullYear",1),MMMM:Hn("Month"),MMM:Hn("Month",!0),MM:Ln("Month",2,1),M:Ln("Month",1,1),dd:Ln("Date",2),d:Ln("Date",1),HH:Ln("Hours",2),H:Ln("Hours",1),hh:Ln("Hours",2,-12),h:Ln("Hours",1,-12),mm:Ln("Minutes",2),m:Ln("Minutes",1),ss:Ln("Seconds",2),s:Ln("Seconds",1),sss:Ln("Milliseconds",3),EEEE:Hn("Day"),EEE:Hn("Day",!0),a:Jn,Z:zn,ww:Xn(2),w:Xn(1),G:Gn,GG:Gn,GGG:Gn,GGGG:Kn},$o=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,yo=/^\-?\d+$/;Zn.$inject=["$locale"];var bo=m(Er),wo=m(Sr);er.$inject=["$parse"];var xo=m({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]"===jr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Co={};o(yi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=le("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Co[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(wi,function(t,e){Co[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(xr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=le("ng-"+t);Co[e]=function(){return{priority:99,link:function(n,r,i){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===jr.call(r.prop("href"))&&(s="xlinkHref",i.$attr[s]="xlink:href",o=null),i.$observe(e,function(e){if(!e)return void("href"===t&&i.$set(s,null));i.$set(s,e),Or&&o&&r.prop(o,i[s])})}}}});var Eo={$addControl:g,$$renameControl:rr,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},ko="ng-submitted";ir.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var So=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||g}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:ir,compile:function(r,o){r.addClass(us).addClass(ss);var s=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,r,o,a){var u=a[0];if(!("action"in o)){var c=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};si(r[0],"submit",c),r.on("$destroy",function(){e(function(){ai(r[0],"submit",c)},0,!1)})}(a[1]||u.$$parentForm).$addControl(u);var l=s?i(u.$name):g;s&&(l(t,u),o.$observe(s,function(e){u.$name!==e&&(l(t,n),u.$$parentForm.$$renameControl(u,e),(l=i(u.$name))(t,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),l(t,n),f(u,Eo)})}}}}}]},Ao=So(),To=So(!0),Oo=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ro=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Mo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,_o=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,No=/^(\d{4})-(\d{2})-(\d{2})$/,Po=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Bo=/^(\d{4})-W(\d\d)$/,jo=/^(\d{4})-(\d\d)$/,Do=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Io="keydown wheel mousedown",Uo=gt();o("date,datetime-local,month,time,week".split(","),function(t){Uo[t]=!0});var Fo={text:sr,date:lr("date",No,cr(No,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":lr("datetimelocal",Po,cr(Po,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:lr("time",Do,cr(Do,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:lr("week",Bo,ur,"yyyy-Www"),month:lr("month",jo,cr(jo,["yyyy","MM"]),"yyyy-MM"),number:hr,url:pr,email:dr,radio:gr,checkbox:mr,hidden:g,button:g,submit:g,reset:g,file:g},Vo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(Fo[Er(s.type)]||Fo.text)(i,o,s,a[0],e,t,n,r)}}}}],qo=/^(true|false|\d+)$/,Lo=function(){return{restrict:"A",priority:100,compile:function(t,e){return qo.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Ho=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=y(t)?"":t})}}}}],zo=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=y(t)?"":t})}}}}],Yo=["$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)||"")})}}}}],Wo=m({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Xo=$r("",!0),Jo=$r("Odd",0),Go=$r("Even",1),Ko=nr({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Zo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Qo={},ts={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=le("ng-"+t);Qo[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var s=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){s(e,{$event:n})};ts[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var es=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,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=dt(a.clone),t.leave(c).then(function(){c=null}),a=null))})}}}],ns=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ur.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,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).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!b(a)||a&&!r.$eval(a)||e()},h=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===d){var e=r.$new();c.template=t;var a=l(e,function(t){g(),n.enter(t,null,i).then(u)});f=e,p=a,f.$emit("$includeContentLoaded",o),r.$eval(s)}},function(){r.$$destroyed||h===d&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),c.template=null)})}}}}],rs=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(/SVG/.test(r[0].toString()))return r.empty(),void t(Et(o.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],is=nr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),os=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var s=e.attr(r.$attr.ngList)||", ",a="false"!==r.ngTrim,u=a?Hr(s):s,c=function(t){if(!y(t)){var e=[];return t&&o(t.split(u),function(t){t&&e.push(a?Hr(t):t)}),e}};i.$parsers.push(c),i.$formatters.push(function(t){return qr(t)?t.join(s):n}),i.$isEmpty=function(t){return!t||!t.length}}}},ss="ng-valid",as="ng-invalid",us="ng-pristine",cs="ng-dirty",ls="ng-pending",fs=r("ngModel"),hs=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,s,a,u,c,l,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(t),this.$$parentForm=Eo;var h,p=s(r.ngModel),d=p.assign,v=p,m=d,$=null,w=this;this.$$setOptions=function(t){if(w.$options=t,t&&t.getterSetter){var e=s(r.ngModel+"()"),n=s(r.ngModel+"($$$p)");v=function(t){var n=p(t);return S(n)&&(n=e(t)),n},m=function(t,e){S(p(t))?n(t,{$$$p:w.$modelValue}):d(t,w.$modelValue)}}else if(!p.assign)throw fs("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Z(i))},this.$render=g,this.$isEmpty=function(t){return y(t)||""===t||null===t||t!==t};var x=0;yr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,a.removeClass(i,cs),a.addClass(i,us)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,a.removeClass(i,us),a.addClass(i,cs),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,a.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,a.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){u.cancel($),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!E(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$lastCommittedViewValue,e=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(e,t,function(t){o||r===t||(w.$modelValue=t?e:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(t,e){a===x&&w.$setValidity(t,e)}function s(t){a===x&&r(t)}x++;var a=x;return function(){var t=w.$$parserName||"parse";return y(h)?(i(t,null),!0):(h||(o(w.$validators,function(t,e){i(e,null)}),o(w.$asyncValidators,function(t,e){i(e,null)})),i(t,h),h)}()&&function(){var n=!0;return o(w.$validators,function(r,o){var s=r(t,e);n=n&&s,i(o,s)}),!!n||(o(w.$asyncValidators,function(t,e){i(e,null)}),!1)}()?void function(){var r=[],a=!0;o(w.$asyncValidators,function(o,s){var u=o(t,e);if(!P(u))throw fs("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",u);i(s,n),r.push(u.then(function(){i(s,!0)},function(t){a=!1,i(s,!1)}))}),r.length?l.all(r).then(function(){s(a)},g):s(!0)}():void s(!1)},this.$commitViewValue=function(){var t=w.$viewValue;u.cancel($),(w.$$lastCommittedViewValue!==t||""===t&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=t,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){w.$modelValue!==s&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(h=!y(i)||n)for(var o=0;o0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,Z(e));s=t||n,o.$validate()}),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||y(s)||s.test(e)}}}}},Ds=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=p(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Is=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=p(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};if(t.angular.bootstrap)return void(t.console&&console.log("WARNING: Tried to load angular more than once."));!function(){var e;if(!Kr){var r=Wr();Mr=y(r)?t.jQuery:r?t[r]:n,Mr&&Mr.fn.on?(Rr=Mr,f(Mr.fn,{scope:$i.scope,isolateScope:$i.isolateScope,controller:$i.controller,injector:$i.injector,inheritedData:$i.inheritedData}),e=Mr.cleanData,Mr.cleanData=function(t){var n;if(Vr)Vr=!1;else for(var r,i=0;null!=(r=t[i]);i++)(n=Mr._data(r,"events"))&&n.$destroy&&Mr(r).triggerHandler("$destroy");e(t)}):Rr=At,Ur.element=Rr,Kr=!0}}(),function(e){f(e,{bootstrap:st,copy:F,extend:f,merge:h,equals:q,element:Rr,forEach:o,injector:Qt,noop:g,bind:z,toJson:W,fromJson:X,identity:v,isUndefined:y,isDefined:b,isString:C,isFunction:S,isObject:w,isNumber:E,isElement:j,isArray:qr,version:ri,isDate:k,lowercase:Er,uppercase:Sr,callbacks:{counter:0},getTestability:ut,$$minErr:r,$$csp:Yr,reloadWithDebugInfo:at}),(_r=vt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:$n}),t.provider("$compile",ce).directive({a:xo,input:Vo,textarea:Vo,form:Ao,script:Os,select:_s,style:Ps,option:Ns,ngBind:Ho,ngBindHtml:Yo,ngBindTemplate:zo,ngClass:Xo,ngClassEven:Go,ngClassOdd:Jo,ngCloak:Ko,ngController:Zo,ngForm:To,ngHide:Cs,ngIf:es,ngInclude:ns,ngInit:is,ngNonBindable:vs,ngPluralize:bs,ngRepeat:ws,ngShow:xs,ngStyle:Es,ngSwitch:ks,ngSwitchWhen:Ss,ngSwitchDefault:As,ngOptions:ys,ngTransclude:Ts,ngModel:ps,ngList:os,ngChange:Wo,pattern:js,ngPattern:js,required:Bs,ngRequired:Bs,minlength:Is,ngMinlength:Is,maxlength:Ds,ngMaxlength:Ds,ngValue:Lo,ngModelOptions:gs}).directive({ngInclude:rs}).directive(Co).directive(Qo),t.provider({$anchorScroll:te,$animate:_i,$animateCss:Bi,$$animateJs:Ri,$$animateQueue:Mi,$$AnimateRunner:Pi,$$animateAsyncRun:Ni,$browser:se,$cacheFactory:ae,$controller:de,$document:ge,$exceptionHandler:ve,$filter:_n,$$forceReflow:Fi,$interpolate:Re,$interval:Me,$http:Se,$httpParamSerializer:$e,$httpParamSerializerJQLike:ye,$httpBackend:Te,$xhrFactory:Ae,$location:ze,$log:Ye,$parse:hn,$rootScope:mn,$q:pn,$$q:dn,$sce:xn,$sceDelegate:wn,$sniffer:Cn,$templateCache:ue,$templateRequest:En,$$testability:kn,$timeout:Sn,$window:On,$$rAF:vn,$$jqLite:Xt,$$HashMap:xi,$$cookieReader:Mn})}])}(Ur),Ur.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return-1==e?0:t.length-e-1}function r(t,r){var i=r;n===i&&(i=Math.min(e(t),3));var o=Math.pow(10,i);return{v:i,f:(t*o|0)%o}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n=0|t,o=r(t,e);return 1==n&&0==o.v?i.ONE:i.OTHER}})}]),Rr(e).ready(function(){ot(e,st)})}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('')},function(t,e,n){n(29),t.exports="ngRoute"},function(t,e){/** +!function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=arguments,o=i[0],s="["+(t?t+":":"")+o+"] ",a=i[1];for(s+=a.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+2;return n=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function o(t,e,n){var r,s;if(t)if(S(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(qr(t)||i(t)){var a="object"!=typeof t;for(r=0,s=t.length;r=0&&t.splice(n,1),n}function F(t,e){function n(t,e){var n,i=e.$$hashKey;if(qr(t))for(var o=0,s=t.length;o2?H(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,L(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Y(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:T(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":O(r)&&(i="$SCOPE"),i}function W(t,e){return y(t)?n:(E(e)||(e=e?2:null),JSON.stringify(t,Y,e))}function X(t){return C(t)?JSON.parse(t):t}function J(t,e){t=t.replace(Xr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function K(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return G(t,n*(J(e,r)-r))}function Z(t){t=Rr(t).clone();try{t.empty()}catch(t){}var e=Rr("
").append(t).html();try{return t[0].nodeType===Qr?Er(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Er(e)})}catch(t){return Er(e)}}function Q(t){try{return decodeURIComponent(t)}catch(t){}}function tt(t){var e={};return o((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=Q(r),b(r)&&(i=!b(i)||Q(i),kr.call(e,r)?qr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function et(t){var e=[];return o(t,function(t,n){qr(t)?o(t,function(t){e.push(rt(n,!0)+(!0===t?"":"="+rt(t,!0)))}):e.push(rt(n,!0)+(!0===t?"":"="+rt(t,!0)))}),e.length?e.join("&"):""}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function it(t,e){var n,r,i=Jr.length;for(r=0;r/,">"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Qt(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;if(t&&a.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(a,"")),t&&!u.test(t.name))return s();t.name=t.name.replace(u,""),Ur.resumeBootstrap=function(t){return o(t,function(t){r.push(t)}),s()},S(Ur.resumeDeferredBootstrap)&&Ur.resumeDeferredBootstrap()}function at(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ut(t){var e=Ur.element(t).injector();if(!e)throw Ir("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ct(t,e){return e=e||"_",t.replace(Gr,function(t,n){return(n?e:"")+t.toLowerCase()})}function lt(t,e,n){if(!t)throw Ir("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ft(t,e,n){return n&&qr(t)&&(t=t[t.length-1]),lt(S(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ht(t,e){if("hasOwnProperty"===t)throw Ir("badname","hasOwnProperty is not a valid {0} name",e)}function pt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,s=i.length,a=0;a=0)return"...";e.push(n)}return n})}function $t(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):y(t)?"undefined":"string"!=typeof t?mt(t):t}function yt(){return++oi}function bt(t){return t.replace(ui,function(t,e,n,r){return r?n.toUpperCase():n}).replace(ci,"Moz$1")}function wt(t){return!pi.test(t)}function xt(t){var e=t.nodeType;return e===Zr||!e||e===ei}function Ct(t){for(var e in ii[t.ng339])return!0;return!1}function Et(t,e){var n,r,i,s,a=e.createDocumentFragment(),u=[];if(wt(t))u.push(e.createTextNode(t));else{for(n=n||a.appendChild(e.createElement("div")),r=(di.exec(t)||["",""])[1].toLowerCase(),i=vi[r]||vi._default,n.innerHTML=i[1]+t.replace(gi,"<$1>")+i[2],s=i[0];s--;)n=n.lastChild;u=L(u,n.childNodes),n=a.firstChild,n.textContent=""}return a.textContent="",a.innerHTML="",o(u,function(t){a.appendChild(t)}),a}function kt(t,n){n=n||e;var r;return(r=hi.exec(t))?[n.createElement(r[1])]:(r=Et(t,n))?r.childNodes:[]}function St(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function At(t){if(t instanceof At)return t;var e;if(C(t)&&(t=Hr(t),e=!0),!(this instanceof At)){if(e&&"<"!=t.charAt(0))throw fi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new At(t)}e?Dt(this,kt(t)):Dt(this,t)}function Tt(t){return t.cloneNode(!0)}function Ot(t,e){if(e||Mt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r0||(ai(t,e,a),delete s[e])};o(e.split(" "),function(t){u(t),li[t]&&u(li[t])})}else for(e in s)"$destroy"!==e&&ai(t,e,a),delete s[e]}function Mt(t,e){var r=t.ng339,i=r&&ii[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Rt(t)),delete ii[r],t.ng339=n}}function _t(t,e){var r=t.ng339,i=r&&ii[r];return e&&!i&&(t.ng339=r=yt(),i=ii[r]={events:{},data:{},handle:n}),i}function Pt(t,e,n){if(xt(t)){var r=b(n),i=!r&&e&&!w(e),o=!e,s=_t(t,!i),a=s&&s.data;if(r)a[e]=n;else{if(o)return a;if(i)return a&&a[e];f(a,e)}}}function Nt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Bt(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",Hr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Hr(e)+" "," ")))})}function jt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=Hr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",Hr(n))}}function Dt(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;r1&&(i=V(i));for(var u=0;uc&&this.remove(p.key),e}},get:function(t){if(c").append(t).html())):n?$i.clone.call(t):t,s)for(var c in s)u.data("$"+c+"Controller",s[c].instance);return N.$$addScopeInfo(u,e),n&&n(u,e),l&&l(e,u,u,i),u}}function B(t){var e=t&&t[0];return e&&"foreignobject"!==I(e)&&e.toString().match(/SVG/)?"svg":"html"}function j(t,e,r,i,o,s){function a(t,r,i,o){var s,a,u,c,l,f,h,p,v;if(d){var m=r.length;for(v=new Array(m),l=0;l0);else r.push(t);return Rr(r)}function L(t,e,n){return function(r,i,o,s,a){return i=V(i[0],e,n),t(r,i,o,s,a)}}function z(t,r,o,s,a,u,c,l,f){function h(t,e,n,r){t&&(n&&(t=L(t,n,r)),t.require=v.require,t.directiveName=$,(R===v||v.$$isolateScope)&&(t=ot(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=L(e,n,r)),e.require=v.require,e.directiveName=$,(R===v||v.$$isolateScope)&&(e=ot(e,{isolateScope:!0})),l.push(e))}function p(t,e,n,r){var i;if(C(e)){var o=e.match(x),s=e.substring(o[0].length),a=o[1]||o[3],u="?"===o[2];if("^^"===a?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var c="$"+s+"Controller";i=a?n.inheritedData(c):n.data(c)}if(!i&&!u)throw ji("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(qr(e)){i=[];for(var l=0,f=e.length;l=0;q--)f=l[q],st(f,f.isolateScope?h:e,$,y,f.require&&p(f.directiveName,f.require,$,v),m)}f=f||{};for(var v,$,y,b,E,k=-Number.MAX_VALUE,A=f.newScopeDirective,T=f.controllerDirectives,R=f.newIsolateScopeDirective,M=f.templateDirective,_=f.nonTlbTranscludeDirective,P=!1,B=!1,j=f.hasElementTranscludeDirective,D=o.$$element=Rr(r),I=u,U=s,q=0,z=t.length;qv.priority)break;if((E=v.scope)&&(v.templateUrl||(w(E)?(Q("new/isolated scope",R||A,v,D),R=v):Q("new/isolated scope",R,v,D)),A=A||v),$=v.name,!v.templateUrl&&v.controller&&(E=v.controller,T=T||gt(),Q("'"+$+"' controller",T[$],v,D),T[$]=v),(E=v.transclude)&&(P=!0,v.$$tlb||(Q("transclusion",_,v,D),_=v),"element"==E?(j=!0,k=v.priority,y=D,D=o.$$element=Rr(e.createComment(" "+$+": "+o[$]+" ")),r=D[0],it(a,H(y),r),U=N(y,s,k,I&&I.name,{nonTlbTranscludeDirective:_})):(y=Rr(Tt(r)).contents(),D.empty(),U=N(y,s,n,n,{needsNewScope:v.$$isolateScope||v.$$newScope}))),v.template)if(B=!0,Q("template",M,v,D),M=v,E=S(v.template)?v.template(D,o):v.template,E=pt(E),v.replace){if(I=v,y=wt(E)?[]:he(et(v.templateNamespace,Hr(E))),r=y[0],1!=y.length||r.nodeType!==Zr)throw ji("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$,"");it(a,D,r);var K={$attr:{}},tt=F(r,[],K),nt=t.splice(q+1,t.length-(q+1));(R||A)&&Y(tt,R,A),t=t.concat(tt).concat(nt),J(o,K),z=t.length}else D.html(E);if(v.templateUrl)B=!0,Q("template",M,v,D),M=v,v.replace&&(I=v),g=G(t.splice(q,t.length-q),D,o,a,P&&U,c,l,{controllerDirectives:T,newScopeDirective:A!==v&&A,newIsolateScopeDirective:R,templateDirective:M,nonTlbTranscludeDirective:_}),z=t.length;else if(v.compile)try{b=v.compile(D,o,U),S(b)?h(null,b,W,X):b&&h(b.pre,b.post,W,X)}catch(t){i(t,Z(D))}v.terminal&&(g.terminal=!0,k=Math.max(k,v.priority))}return g.scope=A&&!0===A.scope,g.transcludeOnThisElement=P,g.templateOnThisElement=B,g.transclude=U,f.hasElementTranscludeDirective=j,g}function Y(t,e,n){for(var r=0,i=t.length;rp.priority)&&-1!=p.restrict.indexOf(r)){if(u&&(p=d(p,{$$start:u,$$end:f})),!p.$$bindings){var $=p.$$bindings=s(p,p.name);w($.isolateScope)&&(p.$$isolateBindings=$.isolateScope)}e.push(p),h=p}}catch(t){i(t)}return h}function X(e){if(c.hasOwnProperty(e))for(var n,r=t.get(e+l),i=0,o=r.length;i"+n+"",r.childNodes[0].childNodes;default:return n}}function nt(t,e){if("srcdoc"==e)return T.HTML;var n=I(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?T.RESOURCE_URL:void 0}function rt(t,e,n,i,o){var s=nt(t,i);o=$[i]||o;var a=r(n,!0,s,o);if(a){if("multiple"===i&&"select"===I(t))throw ji("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var c=u.$$observers||(u.$$observers=gt());if(E.test(i))throw ji("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=u[i];l!==n&&(a=l&&r(l,!0,s,o),n=l),a&&(u[i]=a(t),(c[i]||(c[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(a,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function it(t,n,r){var i,o,s=n[0],a=n.length,u=s.parentNode;if(t)for(i=0,o=t.length;i0&&R.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&R.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=fe(t,e);n&&n.length&&R.addClass(this.$$element,n);var r=fe(e,t);r&&r.length&&R.removeClass(this.$$element,r)},$set:function(t,e,n,r){var s,a=this.$$element[0],u=Lt(a,t),c=Ht(t),l=t;if(u?(this.$$element.prop(t,e),r=u):c&&(this[c]=e,l=c),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=ct(t,"-")),"a"===(s=I(this.$$element))&&"href"===t||"img"===s&&"src"===t)this[t]=e=M(e,"src"===t);else if("img"===s&&"srcset"===t&&b(e)){for(var f="",h=Hr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(h)?p:/(,)/,g=h.split(d),v=Math.floor(g.length/2),m=0;m0?" ":"")+s}return n}function he(t){t=Rr(t);var e=t.length;if(e<=1)return t;for(;e--;){t[e].nodeType===ti&&Nr.call(t,e,1)}return t}function pe(t,e){if(e&&C(e))return e;if(C(t)){var n=Ui.exec(t);if(n)return n[3]}}function de(){var t={},e=!1;this.register=function(e,n){ht(e,"controller"),w(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){function s(t,e,n,i){if(!t||!w(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,a,u,c){var l,h,p,d;if(u=!0===u,c&&C(c)&&(d=c),C(r)){if(!(h=r.match(Ui)))throw Ii("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=h[1],d=d||h[3],r=t.hasOwnProperty(p)?t[p]:pt(a.$scope,p,!0)||(e?pt(o,p,!0):n),ft(r,p,!0)}if(u){var g=(qr(r)?r[r.length-1]:r).prototype;l=Object.create(g||null),d&&s(a,d,l,p||r.name);return f(function(){var t=i.invoke(r,l,a,p);return t!==l&&(w(t)||S(t))&&(l=t,d&&s(a,d,l,p||r.name)),l},{instance:l,identifier:d})}return l=i.instantiate(r,a,p),d&&s(a,d,l,p||r.name),l}}]}function ge(){this.$get=["$window",function(t){return Rr(t.document)}]}function ve(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function me(t){return w(t)?k(t)?t.toISOString():W(t):t}function $e(){this.$get=function(){return function(t){if(!t)return"";var e=[];return s(t,function(t,n){null===t||y(t)||(qr(t)?o(t,function(t,r){e.push(rt(n)+"="+rt(me(t)))}):e.push(rt(n)+"="+rt(me(t))))}),e.join("&")}}}function ye(){this.$get=function(){return function(t){function e(t,r,i){null===t||y(t)||(qr(t)?o(t,function(t,n){e(t,r+"["+(w(t)?n:"")+"]")}):w(t)&&!k(t)?s(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(rt(r)+"="+rt(me(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function be(t,e){if(C(t)){var n=t.replace(zi,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Vi)||we(n))&&(t=X(n))}}return t}function we(t){var e=t.match(Li);return e&&Hi[e[0]].test(t)}function xe(t){function e(t,e){t&&(r[t]=r[t]?r[t]+", "+e:e)}var n,r=gt();return C(t)?o(t.split("\n"),function(t){n=t.indexOf(":"),e(Er(Hr(t.substr(0,n))),Hr(t.substr(n+1)))}):w(t)&&o(t,function(t,n){e(Er(n),Hr(t))}),r}function Ce(t){var e;return function(n){if(e||(e=xe(t)),n){var r=e[Er(n)];return void 0===r&&(r=null),r}return e}}function Ee(t,e,n,r){return S(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function ke(t){return 200<=t&&t<300}function Se(){var t=this.defaults={transformResponse:[be],transformRequest:[function(t){return!w(t)||R(t)||_(t)||M(t)?t:W(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:V(qi),put:V(qi),patch:V(qi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return b(t)?(i=!!t,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,u,c,l,h,p){function d(e){function s(t){var e=f({},t);return e.data=Ee(t.data,t.headers,t.status,u.transformResponse),ke(t.status)?e:h.reject(e)}function a(t,e){var n,r={};return o(t,function(t,i){S(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t}),r}if(!Ur.isObject(e))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",e);if(!C(e.url))throw r("$http")("badreq","Http request configuration url must be a string. Received: {0}",e.url);var u=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);u.headers=function(e){var n,r,i,o=t.headers,s=f({},e.headers);o=f({},o.common,o[Er(e.method)]);t:for(n in o){r=Er(n);for(i in s)if(Er(i)===r)continue t;s[n]=o[n]}return a(s,V(e))}(e),u.method=Sr(u.method),u.paramSerializer=C(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer;var c=function(e){var r=e.headers,i=Ee(e.data,Ce(r),n,e.transformRequest);return y(i)&&o(r,function(t,e){"content-type"===Er(e)&&delete r[e]}),y(e.withCredentials)&&!y(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,i).then(s,s)},l=[c,n],d=h.when(u);for(o($,function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&l.push(t.response,t.responseError)});l.length;){var v=l.shift(),m=l.shift();d=d.then(v,m)}return i?(d.success=function(t){return ft(t,"fn"),d.then(function(e){t(e.data,e.status,e.headers,u)}),d},d.error=function(t){return ft(t,"fn"),d.then(null,function(e){t(e.data,e.status,e.headers,u)}),d}):(d.success=Wi("success"),d.error=Wi("error")),d}function g(r,i){function o(t,n,r,i){function o(){s(n,t,r,i)}p&&(ke(t)?p.put(E,[t,n,xe(r),i]):p.remove(E)),e?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function s(t,e,n,i){e=e>=-1?e:0,(ke(e)?$.resolve:$.reject)({data:t,status:e,headers:Ce(n),config:r,statusText:i})}function c(t){s(t.data,t.status,V(t.headers()),t.statusText)}function f(){var t=d.pendingRequests.indexOf(r);-1!==t&&d.pendingRequests.splice(t,1)}var p,g,$=h.defer(),x=$.promise,C=r.headers,E=v(r.url,r.paramSerializer(r.params));if(d.pendingRequests.push(r),x.then(f,f),!r.cache&&!t.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(p=w(r.cache)?r.cache:w(t.cache)?t.cache:m),p&&(g=p.get(E),b(g)?N(g)?g.then(c,c):qr(g)?s(g[1],g[0],V(g[2]),g[3]):s(g,200,{},"OK"):p.put(E,x)),y(g)){var k=Tn(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n;k&&(C[r.xsrfHeaderName||t.xsrfHeaderName]=k),a(r.method,E,i,o,C,r.timeout,r.withCredentials,r.responseType)}return x}function v(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}var m=c("$http");t.paramSerializer=C(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var $=[];return o(s,function(t){$.unshift(C(t)?p.get(t):p.invoke(t))}),d.pendingRequests=[],function(t){o(arguments,function(t){d[t]=function(e,n){return d(f({},n||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){d[t]=function(e,n,r){return d(f({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),d.defaults=t,d}]}function Ae(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Te(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return Oe(t,r,t.defer,e.angular.callbacks,n[0])}]}function Oe(t,e,n,r,i){function s(t,e,n){var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){ai(o,"load",s),ai(o,"error",s),i.body.removeChild(o),o=null;var a=-1,u="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),u=t.type,a="error"===t.type?404:200),n&&n(a,u)},si(o,"load",s),si(o,"error",s),i.body.appendChild(o),s}return function(i,a,u,c,l,f,h,p){function d(){$&&$(),w&&w.abort()}function v(e,r,i,o,s){b(C)&&n.cancel(C),$=w=null,e(r,i,o,s),t.$$completeOutstandingRequest(g)}if(t.$$incOutstandingRequestCount(),a=a||t.url(),"jsonp"==Er(i)){var m="_"+(r.counter++).toString(36);r[m]=function(t){r[m].data=t,r[m].called=!0};var $=s(a.replace("JSON_CALLBACK","angular.callbacks."+m),m,function(t,e){v(c,t,r[m].data,"",e),r[m]=g})}else{var w=e(i,a);w.open(i,a,!0),o(l,function(t,e){b(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"==An(a).protocol?404:0),v(c,n,e,w.getAllResponseHeaders(),t)};var x=function(){v(c,-1,null,null,"")};if(w.onerror=x,w.onabort=x,h&&(w.withCredentials=!0),p)try{w.responseType=p}catch(t){if("json"!==p)throw t}w.send(y(u)?null:u)}if(f>0)var C=n(d,f);else N(f)&&f.then(d)}}function Re(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function s(n){return n.replace(h,t).replace(p,e)}function a(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=W(t)}return t}function u(o,u,h,p){function d(t){try{return t=T(t),p&&!b(t)?t:a(t)}catch(t){r(Xi.interr(o,t))}}p=!!p;for(var g,v,m,$=0,w=[],x=[],C=o.length,E=[],k=[];$1&&Xi.throwNoconcat(o),!u||w.length){var A=function(t){for(var e=0,n=w.length;e4,l=c?H(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,d=b(u)&&!u,g=(d?r:n).defer(),v=g.promise;return a=b(a)?a:0,v.then(null,null,c?function(){i.apply(null,l)}:i),v.$$intervalId=f(function(){g.notify(p++),a>0&&p>=a&&(g.resolve(p),h(v.$$intervalId),delete o[v.$$intervalId]),d||t.$apply()},s),o[v.$$intervalId]=g,v}var o={};return i.cancel=function(t){return!!(t&&t.$$intervalId in o)&&(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0)},i}]}function _e(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=nt(e[n]);return e.join("/")}function Pe(t,e){var n=An(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=p(n.port)||Gi[n.protocol]||null}function Ne(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=An(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=tt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Be(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function je(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function De(t){return t.replace(/(#.+)|#$/,"$1")}function Ie(t){return t.substr(0,je(t).lastIndexOf("/")+1)}function Ue(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Fe(t,e,n){this.$$html5=!0,n=n||"",Pe(t,this),this.$$parse=function(t){var n=Be(e,t);if(!C(n))throw Ki("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Ne(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=et(this.$$search),n=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s,a;return b(o=Be(t,r))?(s=o,a=b(o=Be(n,o))?e+(Be("/",o)||o):t+s):b(o=Be(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a}}function Ve(t,e,n){Pe(t,this),this.$$parse=function(r){var i,o=Be(t,r)||Be(e,r);y(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",y(o)&&(t=r,this.replace())):(i=Be(n,o),y(i)&&(i=o)),Ne(i,this),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return je(t)==je(e)&&(this.$$parse(e),!0)}}function qe(t,e,n){this.$$html5=!0,Ve.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,s;return t==je(r)?o=r:(s=Be(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=_e(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Le(t){return function(){return this[t]}}function He(t,e){return function(n){return y(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function ze(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return b(e)?(t=e,this):t},this.html5Mode=function(t){return P(t)?(e.enabled=t,this):w(t)?(P(t.enabled)&&(e.enabled=t.enabled),P(t.requireBase)&&(e.requireBase=t.requireBase),P(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){function a(t,e,n){var i=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(t){throw c.url(i),c.$$state=o,t}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw Ki("nobase","$location in HTML5 mode requires a tag to be present!");f=Ue(p)+(h||"/"),l=i.history?Fe:qe}else f=je(p),l=Ve;var d=Ie(f);c=new l(f,d,"#"+t),c.$$parseLinkUrl(p,p),c.$$state=r.state();var g=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Rr(t.target);"a"!==I(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var a=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");w(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=An(a.animVal).href),g.test(a)||!a||i.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(a,u)&&(t.preventDefault(),c.absUrl()!=r.url()&&(n.$apply(),s.angular["ff-684208-preventDefault"]=!0))}}),De(c.absUrl())!=De(p)&&r.url(c.absUrl(),!0);var v=!0;return r.onUrlChange(function(t,e){if(y(Be(d,t)))return void(s.location.href=t);n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;t=De(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=o,a(i,!1,o)):(v=!1,u(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var t=De(r.url()),e=De(c.absUrl()),o=r.state(),s=c.$$replace,l=t!==e||c.$$html5&&i.history&&o!==c.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=o):(l&&a(e,s,o===c.$$state?null:c.$$state),u(t,o)))})),c.$$replace=!1}),c}]}function Ye(){var t=!0,e=this;this.debugEnabled=function(e){return b(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack?t=t.message&&-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 i(t){var e=n.console||{},i=e[t]||e.log||g,s=!1;try{s=!!i.apply}catch(t){}return s?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function We(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Qi("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Xe(t,e){if(t+="",!C(t))throw Qi("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Je(t,e){if(t){if(t.constructor===t)throw Qi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Qi("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Qi("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Qi("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function Ge(t,e){if(t){if(t.constructor===t)throw Qi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===to||t===eo||t===no)throw Qi("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function Ke(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Qi("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function Ze(t,e){return void 0!==t?t:e}function Qe(t,e){return void 0===t?e:void 0===e?t:t+e}function tn(t,e){return!t(e).$stateful}function en(t,e){var n,r;switch(t.type){case so.Program:n=!0,o(t.body,function(t){en(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case so.Literal:t.constant=!0,t.toWatch=[];break;case so.UnaryExpression:en(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case so.BinaryExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case so.LogicalExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case so.ConditionalExpression:en(t.test,e),en(t.alternate,e),en(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case so.Identifier:t.constant=!1,t.toWatch=[t];break;case so.MemberExpression:en(t.object,e),t.computed&&en(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case so.CallExpression:n=!!t.filter&&tn(e,t.callee.name),r=[],o(t.arguments,function(t){en(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&tn(e,t.callee.name)?r:[t];break;case so.AssignmentExpression:en(t.left,e),en(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case so.ArrayExpression:n=!0,r=[],o(t.elements,function(t){en(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case so.ObjectExpression:n=!0,r=[],o(t.properties,function(t){en(t.value,e),n=n&&t.value.constant,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case so.ThisExpression:t.constant=!1,t.toWatch=[]}}function nn(t){if(1==t.length){var e=t[0].expression,r=e.toWatch;return 1!==r.length?r:r[0]!==e?r:n}}function rn(t){return t.type===so.Identifier||t.type===so.MemberExpression}function on(t){if(1===t.body.length&&rn(t.body[0].expression))return{type:so.AssignmentExpression,left:t.body[0].expression,right:{type:so.NGValueParameter},operator:"="}}function sn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===so.Literal||t.body[0].expression.type===so.ArrayExpression||t.body[0].expression.type===so.ObjectExpression)}function an(t){return t.constant}function un(t,e){this.astBuilder=t,this.$filter=e}function cn(t,e){this.astBuilder=t,this.$filter=e}function ln(t){return"constructor"==t}function fn(t){return S(t.valueOf)?t.valueOf():uo.call(t)}function hn(){var t=gt(),e=gt();this.$get=["$filter",function(r){function i(n,i,o){var a,p,$;switch(o=o||m,typeof n){case"string":n=n.trim(),$=n;var y=o?e:t;if(!(a=y[$])){":"===n.charAt(0)&&":"===n.charAt(1)&&(p=!0,n=n.substring(2));var b=o?v:d,w=new oo(b);a=new ao(w,r,b).parse(n),a.constant?a.$$watchDelegate=f:p?a.$$watchDelegate=a.literal?l:c:a.inputs&&(a.$$watchDelegate=u),o&&(a=s(a)),y[$]=a}return h(a,i);case"function":return h(n,i);default:return h(g,i)}}function s(t){function e(e,n,r,i){var o=m;m=!0;try{return t(e,n,r,i)}finally{m=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=s(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n0&&c(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return m(e,!0,t)},function(e){return m(e,!1,t)},e)}}),f(l.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(w(t)||S(t))&&(n=t&&t.then),S(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,c(this.promise.$$state))}catch(t){r[1](t),e(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,c(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,s=r.length;o=0&&$(o,-1),s=null}},$watchGroup:function(t,e){function n(){u=!1,c?(c=!1,e(i,i,a)):e(i,r,a)}var r=new Array(t.length),i=new Array(t.length),s=[],a=this,u=!1,c=!0;if(!t.length){var l=!0;return a.$evalAsync(function(){l&&e(i,i,a)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){i[0]=t,r[0]=n,e(i,t===n?i:r,o)}):(o(t,function(t,e){var o=a.$watch(t,function(t,o){i[e]=t,r[e]=o,u||(u=!0,a.$evalAsync(n))});s.push(o)}),function(){for(;s.length;)s.shift()()})},$watchCollection:function(t,e){function n(t){o=t;var e,n,r,a;if(!y(o)){if(w(o))if(i(o)){s!==p&&(s=p,v=s.length=0,f++),e=o.length,v!==e&&(f++,s.length=v=e);for(var u=0;ue){f++;for(n in s)kr.call(o,n)||(v--,delete s[n])}}else s!==o&&(s=o,f++);return f}}function r(){if(g?(g=!1,e(o,o,u)):e(o,a,u),c)if(w(o))if(i(o)){a=new Array(o.length);for(var t=0;t1,f=0,h=l(t,n),p=[],d={},g=!0,v=0;return this.$watch(h,r)},$digest:function(){var t,r,i,o,u,l,h,p,d,g,$,y,b=e,w=this,E=[];v("$digest"),f.$$checkUrlChange(),this===k&&null!==a&&(f.defer.cancel(a),C()),s=null;do{for(p=!1,g=w;A.length;){try{y=A.shift(),y.scope.$eval(y.expression,y.locals)}catch(t){c(t)}s=null}t:do{if(l=g.$$watchers)for(h=l.length;h--;)try{if(t=l[h])if(u=t.get,(r=u(g))===(i=t.last)||(t.eq?q(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(t===s){p=!1;break t}}else p=!0,s=t,t.last=t.eq?F(r,null):r,o=t.fn,o(r,i===x?r:i,g),b<5&&($=4-b,E[$]||(E[$]=[]),E[$].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch(t){c(t)}if(!(d=g.$$watchersCount&&g.$$childHead||g!==w&&g.$$nextSibling))for(;g!==w&&!(d=g.$$nextSibling);)g=g.$parent}while(g=d);if((p||A.length)&&!b--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,E)}while(p||A.length);for(m();T.length;)try{T.shift()()}catch(t){c(t)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===k&&f.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var e in this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,p(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){k.$$phase||A.length||f.defer(function(){A.length&&k.$digest()}),A.push({scope:this,expression:l(t),locals:e})},$$postDigest:function(t){T.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{m()}}catch(t){c(t)}finally{try{k.$digest()}catch(t){throw c(t),t}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&O.push(e),t=l(t),E()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,b(i,1,t))}},$emit:function(t,e){var n,r,i,o=[],s=this,a=!1,u={name:t,targetScope:s,stopPropagation:function(){a=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=L([u],arguments,1);do{for(n=s.$$listeners[t]||o,u.currentScope=s,r=0,i=n.length;r-1)throw co("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=zr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(A(t))return new RegExp("^"+t.source+"$");throw co("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function bn(t){var e=[];return b(t)&&o(t,function(t){e.push(yn(t))}),e}function wn(){this.SCE_CONTEXTS=lo;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=bn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=bn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Tn(e):!!t.exec(e.href)}function i(n){var i,o,s=An(n.toString()),a=!1;for(i=0,o=t.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=V(lo);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=v),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return o(lo,function(t,e){var n=Er(e);r[bt("parse_as_"+n)]=function(e){return i(t,e)},r[bt("get_trusted_"+n)]=function(e){return s(t,e)},r[bt("trust_as_"+n)]=function(e){return a(t,e)}}),r}]}function Cn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=p((/android (\d+)/.exec(Er((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,c=a.body&&a.body.style,l=!1,f=!1;if(c){for(var h in c)if(r=u.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),l=!!("transition"in c||n+"Transition"in c),f=!!("animation"in c||n+"Animation"in c),!o||l&&f||(l=C(c.webkitTransition),f=C(c.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||o<4||s),hasEvent:function(t){if("input"===t&&Or<=11)return!1;if(y(i[t])){var e=a.createElement("div");i[t]="on"+t in e}return i[t]},csp:Yr(),vendorPrefix:n,transitions:l,animations:f,android:o}}]}function En(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,s){function a(t){if(!s)throw ji("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText);return n.reject(t)}i.totalPendingRequests++,C(o)&&!y(t.get(o))||(o=r.getTrustedResourceUrl(o));var u=e.defaults&&e.defaults.transformResponse;qr(u)?u=u.filter(function(t){return t!==be}):u===be&&(u=null);var c={cache:t,transformResponse:u};return e.get(o,c).finally(function(){i.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},a)}return i.totalPendingRequests=0,i}]}function kn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return o(r,function(t){var r=Ur.element(t).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+zr(e)+"(\\s|\\||$)").test(r)&&i.push(t)}else-1!=r.indexOf(e)&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(u=e(o.substring(0,a)),y(r[u])&&(r[u]=e(o.substring(a+1))));return r}}function Mn(){this.$get=Rn}function _n(t){function e(r,i){if(w(r)){var s={};return o(r,function(t,n){s[n]=e(n,t)}),s}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Dn),e("date",Zn),e("filter",Pn),e("json",Qn),e("limitTo",tr),e("lowercase",bo),e("number",In),e("orderBy",er),e("uppercase",wo)}function Pn(){return function(t,e,n){if(!i(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var o,s,a=jn(e);switch(a){case"function":o=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=Nn(e,n,s);break;default:return t}return Array.prototype.filter.call(t,o)}}function Nn(t,e,n){var r=w(t)&&"$"in t;return!0===e?e=q:S(e)||(e=function(t,e){return!y(t)&&(null===t||null===e?t===e:!(w(e)||w(t)&&!$(t))&&(t=Er(""+t),e=Er(""+e),-1!==t.indexOf(e)))}),function(i){return r&&!w(i)?Bn(i,t.$,e,!1):Bn(i,t,e,n)}}function Bn(t,e,n,r,i){var o=jn(t),s=jn(e);if("string"===s&&"!"===e.charAt(0))return!Bn(t,e.substring(1),n,r);if(qr(t))return t.some(function(t){return Bn(t,e,n,r)});switch(o){case"object":var a;if(r){for(a in t)if("$"!==a.charAt(0)&&Bn(t[a],e,n,!0))return!0;return!i&&Bn(t,e,n,!1)}if("object"===s){for(a in e){var u=e[a];if(!S(u)&&!y(u)){var c="$"===a;if(!Bn(c?t:t[a],u,n,c,c))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function jn(t){return null===t?"null":typeof t}function Dn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return y(n)&&(n=e.CURRENCY_SYM),y(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Vn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function In(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Vn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Un(t){var e,n,r,i,o,s=0;for((n=t.indexOf(go))>-1&&(t=t.replace(go,"")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)==vo;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==vo;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>po&&(e=e.splice(0,po-1),s=n-1,n=1),{d:e,e:s,i:n}}function Fn(t,e,n,r){var i=t.d,o=i.length-t.i;e=y(e)?Math.min(Math.max(n,o),r):+e;var s=e+t.i,a=i[s];if(s>0)i.splice(s);else{t.i=1,i.length=s=e+1;for(var u=0;u=5&&i[s-1]++;o0?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 qn(t,e,n){var r="";for(t<0&&(r="-",t=-t),t=""+t;t.length0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),qn(o,e,r)}}function Hn(t,e){return function(n,r){var i=n["get"+t]();return r[Sr(e?"SHORT"+t:t)][i]}}function zn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=qn(Math[r>0?"floor":"ceil"](r/60),2)+qn(Math.abs(r%60),2)}function Yn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Wn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Xn(t){return function(e){var n=Yn(e.getFullYear()),r=Wn(e),i=+r-+n;return qn(1+Math.round(i/6048e5),t)}}function Jn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Gn(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function Kn(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function Zn(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,s=e[8]?r.setUTCFullYear:r.setFullYear,a=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=p(e[9]+e[10]),o=p(e[9]+e[11])),s.call(r,p(e[1]),p(e[2])-1,p(e[3]));var u=p(e[4]||0)-i,c=p(e[5]||0)-o,l=p(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return a.call(r,u,c,l,f),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var s,a,u="",c=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,C(n)&&(n=yo.test(n)?p(n):e(n)),E(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)a=$o.exec(r),a?(c=L(c,a,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=J(i,l),n=K(n,i,!0)),o(c,function(e){s=mo[e],u+=s?s(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Qn(){return function(t,e){return y(e)&&(e=2),W(t,e)}}function tr(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):p(e),isNaN(e)?t:(E(t)&&(t=t.toString()),qr(t)||C(t)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function er(t){function e(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=v;if(S(e))i=e;else if(C(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function r(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),n(t))?t:$(t)&&(t=t.toString(),n(t))?t:e}function o(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=r(t,e)),{value:t,type:n}}function s(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value=v},a.$observe("min",function(t){v=p(t),u.$validate()})}if(b(a.max)||a.ngMax){var m;u.$validators.max=function(t){return!h(t)||y(m)||r(t)<=m},a.$observe("max",function(t){m=p(t),u.$validate()})}}}function fr(t,e,r,i){var o=e[0];(i.$$hasNativeValidators=w(o.validity))&&i.$parsers.push(function(t){var r=e.prop(Cr)||{};return r.badInput&&!r.typeMismatch?n:t})}function hr(t,e,r,i,o,s){if(fr(t,e,r,i),ar(t,e,r,i,o,s),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:_o.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!E(t))throw fs("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),b(r.min)||r.ngMin){var a;i.$validators.min=function(t){return i.$isEmpty(t)||y(a)||t>=a},r.$observe("min",function(t){b(t)&&!E(t)&&(t=parseFloat(t,10)),a=E(t)&&!isNaN(t)?t:n,i.$validate()})}if(b(r.max)||r.ngMax){var u;i.$validators.max=function(t){return i.$isEmpty(t)||y(u)||t<=u},r.$observe("max",function(t){b(t)&&!E(t)&&(t=parseFloat(t,10)),u=E(t)&&!isNaN(t)?t:n,i.$validate()})}}function pr(t,e,n,r,i,o){ar(t,e,n,r,i,o),or(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ro.test(n)}}function dr(t,e,n,r,i,o){ar(t,e,n,r,i,o),or(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Mo.test(n)}}function gr(t,e,n,r){y(n.name)&&e.attr("name",u());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function vr(t,e,n,r,i){var o;if(b(r)){if(o=t(r),!o.constant)throw fs("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function mr(t,e,n,r,i,o,s,a){var u=vr(a,t,"ngTrueValue",n.ngTrueValue,!0),c=vr(a,t,"ngFalseValue",n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return q(t,u)}),r.$parsers.push(function(t){return t?u:c})}function $r(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[];t:for(var r=0;r0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),a.data("$classCounts",n),r.join(" ")}function h(t,e){var i=r(e,t),o=r(t,e);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(a,i),o&&o.length&&n.removeClass(a,o)}function p(t){if(!0===e||s.$index%2===e){var n=i(t||[]);if(d){if(!q(t,d)){var r=i(d);h(r,n)}}else c(n)}d=qr(t)?t.map(function(t){return V(t)}):V(t)}var d;s.$watch(u[t],p,!0),u.$observe("class",function(e){p(s.$eval(u[t]))}),"ngClass"!==t&&s.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var a=i(s.$eval(u[t]));o===e?c(a):l(a)}})}}}]}function yr(t){function e(t,e,u){y(e)?r("$pending",t,u):i("$pending",t,u),P(e)?e?(f(a.$error,t,u),l(a.$$success,t,u)):(l(a.$error,t,u),f(a.$$success,t,u)):(f(a.$error,t,u),f(a.$$success,t,u)),a.$pending?(o(ls,!0),a.$valid=a.$invalid=n,s("",null)):(o(ls,!1),a.$valid=br(a.$error),a.$invalid=!a.$valid,s("",a.$valid));var c;c=a.$pending&&a.$pending[t]?n:!a.$error[t]&&(!!a.$$success[t]||null),s(t,c),a.$$parentForm.$setValidity(t,c,a)}function r(t,e,n){a[t]||(a[t]={}),l(a[t],e,n)}function i(t,e,r){a[t]&&f(a[t],e,r),br(a[t])&&(a[t]=n)}function o(t,e){e&&!c[t]?(h.addClass(u,t),c[t]=!0):!e&&c[t]&&(h.removeClass(u,t),c[t]=!1)}function s(t,e){t=t?"-"+ct(t,"-"):"",o(ss+t,!0===e),o(as+t,!1===e)}var a=t.ctrl,u=t.$element,c={},l=t.set,f=t.unset,h=t.$animate;c[as]=!(c[ss]=u.hasClass(ss)),a.$setValidity=e}function br(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function wr(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var xr=/^\/(.+)\/([a-z]*)$/,Cr="validity",Er=function(t){return C(t)?t.toLowerCase():t},kr=Object.prototype.hasOwnProperty,Sr=function(t){return C(t)?t.toUpperCase():t},Ar=function(t){return C(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Tr=function(t){return C(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(Er=Ar,Sr=Tr);var Or,Rr,Mr,_r,Pr=[].slice,Nr=[].splice,Br=[].push,jr=Object.prototype.toString,Dr=Object.getPrototypeOf,Ir=r("ng"),Ur=t.angular||(t.angular={}),Fr=0;Or=e.documentMode,g.$inject=[],v.$inject=[];var Vr,qr=Array.isArray,Lr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Hr=function(t){return C(t)?t.trim():t},zr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#(?:<\/\1>|)$/,pi=/<|&#?\w+;/,di=/<([\w:-]+)/,gi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,vi={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};vi.optgroup=vi.option,vi.tbody=vi.tfoot=vi.colgroup=vi.caption=vi.thead,vi.th=vi.td;var mi=Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},$i=At.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),At(t).on("load",r))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Rr(t>=0?this[t]:this[this.length+t])},length:0,push:Br,sort:[].sort,splice:[].splice},yi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){yi[Er(t)]=t});var bi={};o("input,select,option,textarea,button,form,details".split(","),function(t){bi[t]=!0});var wi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Pt,removeData:Mt,hasData:Ct},function(t,e){At[e]=t}),o({data:Pt,inheritedData:Ut,scope:function(t){return Rr.data(t,"$scope")||Ut(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Rr.data(t,"$isolateScope")||Rr.data(t,"$isolateScopeNoTemplate")},controller:It,injector:function(t){return Ut(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Nt,css:function(t,e,n){if(e=bt(e),!b(n))return t.style[e];t.style[e]=n},attr:function(t,e,r){var i=t.nodeType;if(i!==Qr&&2!==i&&i!==ti){var o=Er(e);if(yi[o]){if(!b(r))return t[e]||(t.attributes.getNamedItem(e)||g).specified?o:n;r?(t[e]=!0,t.setAttribute(e,o)):(t[e]=!1,t.removeAttribute(o))}else if(b(r))t.setAttribute(e,r);else if(t.getAttribute){var s=t.getAttribute(e,2);return null===s?n:s}}},prop:function(t,e,n){if(!b(n))return t[e];t[e]=n},text:function(){function t(t,e){if(y(e)){var n=t.nodeType;return n===Zr||n===Qr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(y(e)){if(t.multiple&&"select"===I(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(y(e))return t.innerHTML;Ot(t,!0),t.innerHTML=e},empty:Ft},function(t,e){At.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ft&&y(2==t.length&&t!==Nt&&t!==It?e:n)){if(w(e)){for(r=0;r=0?e.split(" "):[e],c=u.length,l=function(e,n,i){var o=s[e];o||(o=s[e]=[],o.specialHandlerWrapper=n,"$destroy"===e||i||si(t,e,a)),o.push(r)};c--;)e=u[c],li[e]?(l(li[e],Wt),l(e,n,!0)):l(e)}},off:Rt,one:function(t,e,n){t=Rr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;Ot(t),o(new At(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===Zr&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Zr||n===ni){e=new At(e);for(var r=0,i=e.length;r1||t(function(){for(var t=0;t <= >= && || ! = |".split(" "),function(t){ro[t]=!0});var io={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},oo=function(t){this.options=t};oo.prototype={constructor:oo,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:so.Program,body:t}},expressionStatement:function(){return{type:so.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:so.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:so.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:so.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:so.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:so.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:so.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=F(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:so.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:so.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:so.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:so.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.expression())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:so.Identifier,name:t.text}},constant:function(){return{type:so.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:so.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:so.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:so.ObjectExpression,properties:e}},throwError:function(t,e){throw Qi("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 Qi("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 Qi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],s=o.text;if(s===e||s===n||s===r||s===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},constants:{true:{type:so.Literal,value:!0},false:{type:so.Literal,value:!1},null:{type:so.Literal,value:null},undefined:{type:so.Literal,value:n},this:{type:so.ThisExpression}}},un.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},en(i,r.$filter);var s,a="";if(this.stage="assign",s=on(i)){this.state.computing="assign";var u=this.nextId();this.recurse(s,u),this.return_(u),a="fn.assign="+this.generateFunction("assign","s,v,l")}var c=nn(i.body);r.stage="inputs",o(c,function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,We,Je,Ge,Xe,Ke,Ze,Qe,t);return this.state=this.stage=n,f.literal=sn(i),f.constant=an(i),f},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,r,i,s,a){var u,c,l,f,h=this;if(i=i||g,!a&&b(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,s,!0));switch(t.type){case so.Program:o(t.body,function(e,r){h.recurse(e.expression,n,n,function(t){c=t}),r!==t.body.length-1?h.current().body.push(c,";"):h.return_(c)});break;case so.Literal:f=this.escape(t.value),this.assign(e,f),i(f);break;case so.UnaryExpression:this.recurse(t.argument,n,n,function(t){c=t}),f=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,f),i(f);break;case so.BinaryExpression:this.recurse(t.left,n,n,function(t){u=t}),this.recurse(t.right,n,n,function(t){c=t}),f="+"===t.operator?this.plus(u,c):"-"===t.operator?this.ifDefined(u,0)+t.operator+this.ifDefined(c,0):"("+u+")"+t.operator+"("+c+")",this.assign(e,f),i(f);break;case so.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case so.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case so.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),We(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){s&&1!==s&&h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||ln(t.name))&&h.addEnsureSafeObject(e),i(e);break;case so.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,u,n,function(){h.if_(h.notNull(u),function(){s&&1!==s&&h.addEnsureSafeAssignContext(u),t.computed?(c=h.nextId(),h.recurse(t.property,c),h.getStringValue(c),h.addEnsureSafeMemberName(c),s&&1!==s&&h.if_(h.not(h.computedMember(u,c)),h.lazyAssign(h.computedMember(u,c),"{}")),f=h.ensureSafeObject(h.computedMember(u,c)),h.assign(e,f),r&&(r.computed=!0,r.name=c)):(We(t.property.name),s&&1!==s&&h.if_(h.not(h.nonComputedMember(u,t.property.name)),h.lazyAssign(h.nonComputedMember(u,t.property.name),"{}")),f=h.nonComputedMember(u,t.property.name),(h.state.expensiveChecks||ln(t.property.name))&&(f=h.ensureSafeObject(f)),h.assign(e,f),r&&(r.computed=!1,r.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!s);break;case so.CallExpression:e=e||this.nextId(),t.filter?(c=h.filter(t.callee.name),l=[],o(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),l.push(e)}),f=c+"("+l.join(",")+")",h.assign(e,f),i(e)):(c=h.nextId(),u={},l=[],h.recurse(t.callee,c,u,function(){h.if_(h.notNull(c),function(){h.addEnsureSafeFunction(c),o(t.arguments,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(h.ensureSafeObject(t))})}),u.name?(h.state.expensiveChecks||h.addEnsureSafeObject(u.context),f=h.member(u.context,u.name,u.computed)+"("+l.join(",")+")"):f=c+"("+l.join(",")+")",f=h.ensureSafeObject(f),h.assign(e,f)},function(){h.assign(e,"undefined")}),i(e)}));break;case so.AssignmentExpression:if(c=this.nextId(),u={},!rn(t.left))throw Qi("lval","Trying to assign a value to a non l-value");this.recurse(t.left,n,u,function(){h.if_(h.notNull(u.context),function(){h.recurse(t.right,c),h.addEnsureSafeObject(h.member(u.context,u.name,u.computed)),h.addEnsureSafeAssignContext(u.context),f=h.member(u.context,u.name,u.computed)+t.operator+c,h.assign(e,f),i(e||f)})},1);break;case so.ArrayExpression:l=[],o(t.elements,function(t){h.recurse(t,h.nextId(),n,function(t){l.push(t)})}),f="["+l.join(",")+"]",this.assign(e,f),i(f);break;case so.ObjectExpression:l=[],o(t.properties,function(t){h.recurse(t.value,h.nextId(),n,function(e){l.push(h.escape(t.key.type===so.Identifier?t.key.name:""+t.key.value)+":"+e)})}),f="{"+l.join(",")+"}",this.assign(e,f),i(f);break;case so.ThisExpression:this.assign(e,"s"),i("s");break;case so.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var s=this;return function(){s.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(C(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(E(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 Qi("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]}},cn.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,en(r,n.$filter);var i,s;(i=on(r))&&(s=this.recurse(i));var a,u=nn(r.body);u&&(a=[],o(u,function(t,e){var r=n.recurse(t);t.input=r,a.push(r),t.watchId=e}));var c=[];o(r.body,function(t){c.push(n.recurse(t.expression))});var l=0===r.body.length?function(){}:1===r.body.length?c[0]:function(t,e){var n;return o(c,function(r){n=r(t,e)}),n};return s&&(l.assign=function(t,e,n){return s(t,n,e)}),a&&(l.inputs=a),l.literal=sn(r),l.constant=an(r),l},recurse:function(t,e,r){var i,s,a,u=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case so.Literal:return this.value(t.value,e);case so.UnaryExpression:return s=this.recurse(t.argument),this["unary"+t.operator](s,e);case so.BinaryExpression:case so.LogicalExpression:return i=this.recurse(t.left),s=this.recurse(t.right),this["binary"+t.operator](i,s,e);case so.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case so.Identifier:return We(t.name,u.expression),u.identifier(t.name,u.expensiveChecks||ln(t.name),e,r,u.expression);case so.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(We(t.property.name,u.expression),s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(i,s,e,r,u.expression):this.nonComputedMember(i,s,u.expensiveChecks,e,r,u.expression);case so.CallExpression:return a=[],o(t.arguments,function(t){a.push(u.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?function(t,r,i,o){for(var u=[],c=0;c":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:n,name:n,value:t}:t}},identifier:function(t,e,r,i,o){return function(s,a,u,c){var l=a&&t in a?a:s;i&&1!==i&&l&&!l[t]&&(l[t]={});var f=l?l[t]:n;return e&&Je(f,o),r?{context:l,name:t,value:f}:f}},computedMember:function(t,e,n,r,i){return function(o,s,a,u){var c,l,f=t(o,s,a,u);return null!=f&&(c=e(o,s,a,u),c=Xe(c),We(c,i),r&&1!==r&&(Ke(f),f&&!f[c]&&(f[c]={})),l=f[c],Je(l,i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(t,e,r,i,o,s){return function(a,u,c,l){var f=t(a,u,c,l);o&&1!==o&&(Ke(f),f&&!f[e]&&(f[e]={}));var h=null!=f?f[e]:n;return(r||ln(e))&&Je(h,s),i?{context:f,name:e,value:h}:h}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var ao=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new so(this.lexer),this.astCompiler=n.csp?new cn(this.ast,e):new un(this.ast,e)};ao.prototype={constructor:ao,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var uo=Object.prototype.valueOf,co=r("$sce"),lo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ji=r("$compile"),fo=e.createElement("a"),ho=An(t.location.href);Rn.$inject=["$document"],_n.$inject=["$provide"];var po=22,go=".",vo="0";Dn.$inject=["$locale"],In.$inject=["$locale"];var mo={yyyy:Ln("FullYear",4),yy:Ln("FullYear",2,0,!0),y:Ln("FullYear",1),MMMM:Hn("Month"),MMM:Hn("Month",!0),MM:Ln("Month",2,1),M:Ln("Month",1,1),dd:Ln("Date",2),d:Ln("Date",1),HH:Ln("Hours",2),H:Ln("Hours",1),hh:Ln("Hours",2,-12),h:Ln("Hours",1,-12),mm:Ln("Minutes",2),m:Ln("Minutes",1),ss:Ln("Seconds",2),s:Ln("Seconds",1),sss:Ln("Milliseconds",3),EEEE:Hn("Day"),EEE:Hn("Day",!0),a:Jn,Z:zn,ww:Xn(2),w:Xn(1),G:Gn,GG:Gn,GGG:Gn,GGGG:Kn},$o=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,yo=/^\-?\d+$/;Zn.$inject=["$locale"];var bo=m(Er),wo=m(Sr);er.$inject=["$parse"];var xo=m({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]"===jr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Co={};o(yi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=le("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Co[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(wi,function(t,e){Co[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(xr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=le("ng-"+t);Co[e]=function(){return{priority:99,link:function(n,r,i){var o=t,s=t;"href"===t&&"[object SVGAnimatedString]"===jr.call(r.prop("href"))&&(s="xlinkHref",i.$attr[s]="xlink:href",o=null),i.$observe(e,function(e){if(!e)return void("href"===t&&i.$set(s,null));i.$set(s,e),Or&&o&&r.prop(o,i[s])})}}}});var Eo={$addControl:g,$$renameControl:rr,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},ko="ng-submitted";ir.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var So=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||g}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:ir,compile:function(r,o){r.addClass(us).addClass(ss);var s=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,r,o,a){var u=a[0];if(!("action"in o)){var c=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};si(r[0],"submit",c),r.on("$destroy",function(){e(function(){ai(r[0],"submit",c)},0,!1)})}(a[1]||u.$$parentForm).$addControl(u);var l=s?i(u.$name):g;s&&(l(t,u),o.$observe(s,function(e){u.$name!==e&&(l(t,n),u.$$parentForm.$$renameControl(u,e),(l=i(u.$name))(t,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),l(t,n),f(u,Eo)})}}}}}]},Ao=So(),To=So(!0),Oo=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ro=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Mo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,_o=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Po=/^(\d{4})-(\d{2})-(\d{2})$/,No=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Bo=/^(\d{4})-W(\d\d)$/,jo=/^(\d{4})-(\d\d)$/,Do=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Io="keydown wheel mousedown",Uo=gt();o("date,datetime-local,month,time,week".split(","),function(t){Uo[t]=!0});var Fo={text:sr,date:lr("date",Po,cr(Po,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":lr("datetimelocal",No,cr(No,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:lr("time",Do,cr(Do,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:lr("week",Bo,ur,"yyyy-Www"),month:lr("month",jo,cr(jo,["yyyy","MM"]),"yyyy-MM"),number:hr,url:pr,email:dr,radio:gr,checkbox:mr,hidden:g,button:g,submit:g,reset:g,file:g},Vo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(Fo[Er(s.type)]||Fo.text)(i,o,s,a[0],e,t,n,r)}}}}],qo=/^(true|false|\d+)$/,Lo=function(){return{restrict:"A",priority:100,compile:function(t,e){return qo.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Ho=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=y(t)?"":t})}}}}],zo=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=y(t)?"":t})}}}}],Yo=["$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)||"")})}}}}],Wo=m({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Xo=$r("",!0),Jo=$r("Odd",0),Go=$r("Even",1),Ko=nr({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Zo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Qo={},ts={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=le("ng-"+t);Qo[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var s=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){s(e,{$event:n})};ts[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var es=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,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=dt(a.clone),t.leave(c).then(function(){c=null}),a=null))})}}}],ns=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ur.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,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).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!b(a)||a&&!r.$eval(a)||e()},h=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===d){var e=r.$new();c.template=t;var a=l(e,function(t){g(),n.enter(t,null,i).then(u)});f=e,p=a,f.$emit("$includeContentLoaded",o),r.$eval(s)}},function(){r.$$destroyed||h===d&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),c.template=null)})}}}}],rs=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(/SVG/.test(r[0].toString()))return r.empty(),void t(Et(o.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],is=nr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),os=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var s=e.attr(r.$attr.ngList)||", ",a="false"!==r.ngTrim,u=a?Hr(s):s,c=function(t){if(!y(t)){var e=[];return t&&o(t.split(u),function(t){t&&e.push(a?Hr(t):t)}),e}};i.$parsers.push(c),i.$formatters.push(function(t){return qr(t)?t.join(s):n}),i.$isEmpty=function(t){return!t||!t.length}}}},ss="ng-valid",as="ng-invalid",us="ng-pristine",cs="ng-dirty",ls="ng-pending",fs=r("ngModel"),hs=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,s,a,u,c,l,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(t),this.$$parentForm=Eo;var h,p=s(r.ngModel),d=p.assign,v=p,m=d,$=null,w=this;this.$$setOptions=function(t){if(w.$options=t,t&&t.getterSetter){var e=s(r.ngModel+"()"),n=s(r.ngModel+"($$$p)");v=function(t){var n=p(t);return S(n)&&(n=e(t)),n},m=function(t,e){S(p(t))?n(t,{$$$p:w.$modelValue}):d(t,w.$modelValue)}}else if(!p.assign)throw fs("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Z(i))},this.$render=g,this.$isEmpty=function(t){return y(t)||""===t||null===t||t!==t};var x=0;yr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,a.removeClass(i,cs),a.addClass(i,us)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,a.removeClass(i,us),a.addClass(i,cs),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,a.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,a.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){u.cancel($),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!E(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$lastCommittedViewValue,e=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(e,t,function(t){o||r===t||(w.$modelValue=t?e:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(t,e){a===x&&w.$setValidity(t,e)}function s(t){a===x&&r(t)}x++;var a=x;return function(){var t=w.$$parserName||"parse";return y(h)?(i(t,null),!0):(h||(o(w.$validators,function(t,e){i(e,null)}),o(w.$asyncValidators,function(t,e){i(e,null)})),i(t,h),h)}()&&function(){var n=!0;return o(w.$validators,function(r,o){var s=r(t,e);n=n&&s,i(o,s)}),!!n||(o(w.$asyncValidators,function(t,e){i(e,null)}),!1)}()?void function(){var r=[],a=!0;o(w.$asyncValidators,function(o,s){var u=o(t,e);if(!N(u))throw fs("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",u);i(s,n),r.push(u.then(function(){i(s,!0)},function(t){a=!1,i(s,!1)}))}),r.length?l.all(r).then(function(){s(a)},g):s(!0)}():void s(!1)},this.$commitViewValue=function(){var t=w.$viewValue;u.cancel($),(w.$$lastCommittedViewValue!==t||""===t&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=t,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){w.$modelValue!==s&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(h=!y(i)||n)for(var o=0;o0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,Z(e));s=t||n,o.$validate()}),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||y(s)||s.test(e)}}}}},Ds=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=p(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Is=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=p(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};if(t.angular.bootstrap)return void(t.console&&console.log("WARNING: Tried to load angular more than once."));!function(){var e;if(!Kr){var r=Wr();Mr=y(r)?t.jQuery:r?t[r]:n,Mr&&Mr.fn.on?(Rr=Mr,f(Mr.fn,{scope:$i.scope,isolateScope:$i.isolateScope,controller:$i.controller,injector:$i.injector,inheritedData:$i.inheritedData}),e=Mr.cleanData,Mr.cleanData=function(t){var n;if(Vr)Vr=!1;else for(var r,i=0;null!=(r=t[i]);i++)(n=Mr._data(r,"events"))&&n.$destroy&&Mr(r).triggerHandler("$destroy");e(t)}):Rr=At,Ur.element=Rr,Kr=!0}}(),function(e){f(e,{bootstrap:st,copy:F,extend:f,merge:h,equals:q,element:Rr,forEach:o,injector:Qt,noop:g,bind:z,toJson:W,fromJson:X,identity:v,isUndefined:y,isDefined:b,isString:C,isFunction:S,isObject:w,isNumber:E,isElement:j,isArray:qr,version:ri,isDate:k,lowercase:Er,uppercase:Sr,callbacks:{counter:0},getTestability:ut,$$minErr:r,$$csp:Yr,reloadWithDebugInfo:at}),(_r=vt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:$n}),t.provider("$compile",ce).directive({a:xo,input:Vo,textarea:Vo,form:Ao,script:Os,select:_s,style:Ns,option:Ps,ngBind:Ho,ngBindHtml:Yo,ngBindTemplate:zo,ngClass:Xo,ngClassEven:Go,ngClassOdd:Jo,ngCloak:Ko,ngController:Zo,ngForm:To,ngHide:Cs,ngIf:es,ngInclude:ns,ngInit:is,ngNonBindable:vs,ngPluralize:bs,ngRepeat:ws,ngShow:xs,ngStyle:Es,ngSwitch:ks,ngSwitchWhen:Ss,ngSwitchDefault:As,ngOptions:ys,ngTransclude:Ts,ngModel:ps,ngList:os,ngChange:Wo,pattern:js,ngPattern:js,required:Bs,ngRequired:Bs,minlength:Is,ngMinlength:Is,maxlength:Ds,ngMaxlength:Ds,ngValue:Lo,ngModelOptions:gs}).directive({ngInclude:rs}).directive(Co).directive(Qo),t.provider({$anchorScroll:te,$animate:_i,$animateCss:Bi,$$animateJs:Ri,$$animateQueue:Mi,$$AnimateRunner:Ni,$$animateAsyncRun:Pi,$browser:se,$cacheFactory:ae,$controller:de,$document:ge,$exceptionHandler:ve,$filter:_n,$$forceReflow:Fi,$interpolate:Re,$interval:Me,$http:Se,$httpParamSerializer:$e,$httpParamSerializerJQLike:ye,$httpBackend:Te,$xhrFactory:Ae,$location:ze,$log:Ye,$parse:hn,$rootScope:mn,$q:pn,$$q:dn,$sce:xn,$sceDelegate:wn,$sniffer:Cn,$templateCache:ue,$templateRequest:En,$$testability:kn,$timeout:Sn,$window:On,$$rAF:vn,$$jqLite:Xt,$$HashMap:xi,$$cookieReader:Mn})}])}(Ur),Ur.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return-1==e?0:t.length-e-1}function r(t,r){var i=r;n===i&&(i=Math.min(e(t),3));var o=Math.pow(10,i);return{v:i,f:(t*o|0)%o}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n=0|t,o=r(t,e);return 1==n&&0==o.v?i.ONE:i.OTHER}})}]),Rr(e).ready(function(){ot(e,st)})}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('')},function(t,e,n){n(29),t.exports="ngRoute"},function(t,e){/** * @license AngularJS v1.4.14 * (c) 2010-2015 Google, Inc. http://angularjs.org * License: MIT @@ -19,10 +19,10 @@ var G=n(45),K=n(46),Z=n(47);e.Buffer=o,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,o.T * (c) 2010-2015 Google, Inc. http://angularjs.org * License: MIT */ -!function(t,e,n){"use strict";function r(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return s(e,c(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function i(t){var n=[];return c(n,e.noop).chars(t),n.join("")}function o(t,n){var r,i={},o=t.split(",");for(r=0;r=0&&y[o]!=r;o--);if(o>=0){for(i=y.length-1;i>=o;i--)n.end&&n.end(y[i]);y.length=o}}"string"!=typeof t&&(t=null===t||void 0===t?"":""+t);var o,s,u,c,y=[],b=t;for(y.last=function(){return y[y.length-1]};t;){if(c="",s=!0,y.last()&&T[y.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+y.last()+"[^>]*>","i"),function(t,e){return e=e.replace(v,"$1").replace($,"$1"),n.chars&&n.chars(a(e)),""}),i("",y.last())):(0===t.indexOf("\x3c!--")?(o=t.indexOf("--",4))>=0&&t.lastIndexOf("--\x3e",o)===o&&(n.comment&&n.comment(t.substring(4,o)),t=t.substring(o+3),s=!1):m.test(t)?(u=t.match(m))&&(t=t.replace(u[0],""),s=!1):g.test(t)?(u=t.match(h))&&(t=t.substring(u[0].length),u[0].replace(h,i),s=!1):d.test(t)&&(u=t.match(f),u?(u[4]&&(t=t.substring(u[0].length),u[0].replace(f,r)),s=!1):(c+="<",t=t.substring(1))),s&&(o=t.indexOf("<"),c+=o<0?t:t.substring(0,o),t=o<0?"":t.substring(o),n.chars&&n.chars(a(c)))),t==b)throw l("badparse","The sanitizer was unable to parse the following block of html: {0}",t);b=t}i()}function a(t){return t?(P.innerHTML=t.replace(//g,">")}function c(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o,s){t=e.lowercase(t),!r&&T[t]&&(r=t),r||!0!==O[t]||(i("<"),i(t),e.forEach(o,function(r,o){var s=e.lowercase(o),a="img"===t&&"src"===s||"background"===s;!0!==N[s]||!0===R[s]&&!n(r,a)||(i(" "),i(o),i('="'),i(u(r)),i('"'))}),i(s?"/>":">"))},end:function(t){t=e.lowercase(t),r||!0!==O[t]||(i("")),t==r&&(r=!1)},chars:function(t){r||i(u(t))}}}var l=e.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,d=/^/g,m=/]*?)>/i,$=//g,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^\#-~| |!])/g,w=o("area,br,col,hr,img,wbr"),x=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C=o("rp,rt"),E=e.extend({},C,x),k=e.extend({},x,o("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),S=e.extend({},C,o("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),A=o("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),T=o("script,style"),O=e.extend({},w,k,S,E,A),R=o("background,cite,href,longdesc,src,usemap,xlink:href"),M=o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),_=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),N=e.extend({},R,_,M),P=document.createElement("pre");e.module("ngSanitize",[]).provider("$sanitize",r),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(o,s){function a(t){t&&h.push(i(t))}if(!o)return o;for(var u,c,l,f=o,h=[];u=f.match(n);)c=u[0],u[2]||u[4]||(c=(u[3]?"http://":"mailto:")+c),l=u.index,a(f.substr(0,l)),function(t,n){h.push("'),a(n),h.push("")}(c,u[0].replace(r,"")),f=f.substring(l+u[0].length);return a(f),t(h.join(""))}}])}(window,window.angular)},function(t,e,n){n(33),t.exports="ngTouch"},function(t,e){/** +!function(t,e,n){"use strict";function r(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return s(e,c(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function i(t){var n=[];return c(n,e.noop).chars(t),n.join("")}function o(t,n){var r,i={},o=t.split(",");for(r=0;r=0&&y[o]!=r;o--);if(o>=0){for(i=y.length-1;i>=o;i--)n.end&&n.end(y[i]);y.length=o}}"string"!=typeof t&&(t=null===t||void 0===t?"":""+t);var o,s,u,c,y=[],b=t;for(y.last=function(){return y[y.length-1]};t;){if(c="",s=!0,y.last()&&T[y.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+y.last()+"[^>]*>","i"),function(t,e){return e=e.replace(v,"$1").replace($,"$1"),n.chars&&n.chars(a(e)),""}),i("",y.last())):(0===t.indexOf("\x3c!--")?(o=t.indexOf("--",4))>=0&&t.lastIndexOf("--\x3e",o)===o&&(n.comment&&n.comment(t.substring(4,o)),t=t.substring(o+3),s=!1):m.test(t)?(u=t.match(m))&&(t=t.replace(u[0],""),s=!1):g.test(t)?(u=t.match(h))&&(t=t.substring(u[0].length),u[0].replace(h,i),s=!1):d.test(t)&&(u=t.match(f),u?(u[4]&&(t=t.substring(u[0].length),u[0].replace(f,r)),s=!1):(c+="<",t=t.substring(1))),s&&(o=t.indexOf("<"),c+=o<0?t:t.substring(0,o),t=o<0?"":t.substring(o),n.chars&&n.chars(a(c)))),t==b)throw l("badparse","The sanitizer was unable to parse the following block of html: {0}",t);b=t}i()}function a(t){return t?(N.innerHTML=t.replace(//g,">")}function c(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o,s){t=e.lowercase(t),!r&&T[t]&&(r=t),r||!0!==O[t]||(i("<"),i(t),e.forEach(o,function(r,o){var s=e.lowercase(o),a="img"===t&&"src"===s||"background"===s;!0!==P[s]||!0===R[s]&&!n(r,a)||(i(" "),i(o),i('="'),i(u(r)),i('"'))}),i(s?"/>":">"))},end:function(t){t=e.lowercase(t),r||!0!==O[t]||(i("")),t==r&&(r=!1)},chars:function(t){r||i(u(t))}}}var l=e.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,d=/^/g,m=/]*?)>/i,$=//g,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^\#-~| |!])/g,w=o("area,br,col,hr,img,wbr"),x=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C=o("rp,rt"),E=e.extend({},C,x),k=e.extend({},x,o("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),S=e.extend({},C,o("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),A=o("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),T=o("script,style"),O=e.extend({},w,k,S,E,A),R=o("background,cite,href,longdesc,src,usemap,xlink:href"),M=o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),_=o("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),P=e.extend({},R,_,M),N=document.createElement("pre");e.module("ngSanitize",[]).provider("$sanitize",r),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(o,s){function a(t){t&&h.push(i(t))}if(!o)return o;for(var u,c,l,f=o,h=[];u=f.match(n);)c=u[0],u[2]||u[4]||(c=(u[3]?"http://":"mailto:")+c),l=u.index,a(f.substr(0,l)),function(t,n){h.push("'),a(n),h.push("")}(c,u[0].replace(r,"")),f=f.substring(l+u[0].length);return a(f),t(h.join(""))}}])}(window,window.angular)},function(t,e,n){n(33),t.exports="ngTouch"},function(t,e){/** * @license AngularJS v1.4.14 * (c) 2010-2015 Google, Inc. http://angularjs.org * License: MIT */ !function(t,e,n){"use strict";function r(t){return e.lowercase(t.nodeName||t[0]&&t[0].nodeName)}function i(t,n,r){o.directive(t,["$parse","$swipe",function(i,o){return function(s,a,u){function c(t){if(!l)return!1;var e=Math.abs(t.y-l.y),r=(t.x-l.x)*n;return f&&e<75&&r>0&&r>30&&e/r<.3}var l,f,h=i(u[t]),p=["touch"];e.isDefined(u.ngSwipeDisableMouse)||p.push("mouse"),o.bind(a,{start:function(t,e){l=t,f=!0},cancel:function(t){f=!1},end:function(t,e){c(t)&&s.$apply(function(){a.triggerHandler(r),h(s,{$event:e})})}},p)}}])}var o=e.module("ngTouch",[]);o.factory("$swipe",[function(){function t(t){var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],r=e.changedTouches&&e.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function n(t,n){var i=[];return e.forEach(t,function(t){var e=r[t][n];e&&i.push(e)}),i.join(" ")}var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};return{bind:function(e,r,i){var o,s,a,u,c=!1;i=i||["mouse","touch"],e.on(n(i,"start"),function(e){a=t(e),c=!0,o=0,s=0,u=a,r.start&&r.start(a,e)});var l=n(i,"cancel");l&&e.on(l,function(t){c=!1,r.cancel&&r.cancel(t)}),e.on(n(i,"move"),function(e){if(c&&a){var n=t(e);if(o+=Math.abs(n.x-u.x),s+=Math.abs(n.y-u.y),u=n,!(o<10&&s<10))return s>o?(c=!1,void(r.cancel&&r.cancel(e))):(e.preventDefault(),void(r.move&&r.move(n,e)))}}),e.on(n(i,"end"),function(e){c&&(c=!1,r.end&&r.end(t(e),e))})}}}]),o.config(["$provide",function(t){t.decorator("ngClickDirective",["$delegate",function(t){return t.shift(),t}])}]),o.directive("ngClick",["$parse","$timeout","$rootElement",function(t,n,i){function o(t,e,n,r){return Math.abs(t-n)p)){var e=t.touches&&t.touches.length?t.touches:[t],n=e[0].clientX,i=e[0].clientY;n<1&&i<1||h&&h[0]===n&&h[1]===i||(h&&(h=null),"label"===r(t.target)&&(h=[n,i]),s(f,n,i)||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur&&t.target.blur()))}}function u(t){var e=t.touches&&t.touches.length?t.touches:[t],r=e[0].clientX,i=e[0].clientY;f.push(r,i),n(function(){for(var t=0;t\n

\n

{{ui.heading}} {{ui.message}}

\n

Possible reasons are:

\n
    \n
  • 1. Your process was exited by another tool
  • \n
\n

You should check your terminal window to see what happened.
(Or simply try reloading this page.)

\n',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:'
\n

{{ui.heading}} {{ui.message}}

\n
',controller:["$scope","$rootScope",r]}})},function(t,e,n){function r(t){var e=[],n=[];return t.on("ui:history:update",function(t){n.forEach(function(e){e(t)})}),{visited:e,updateHistory:function(t){e=t},get:function(){return t.getData("visited")},remove:function(e){t.emit("ui",{namespace:"history",event:"remove",data:e})},clear:function(){t.emit("ui",{namespace:"history",event:"clear"})},on:function(t,e){n.push(e)},off:function(t){var e=n.indexOf(t);e>-1&&(n=n.splice(e,1))}}}n(1).module("bsHistory",["bsSocket"]).service("History",["Socket",r])},function(t,e,n){function r(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)}}}n(1).module("bsClients",["bsSocket"]).service("Clients",["Socket",r])},function(t,e,n){function r(t,e){var n,r=t.defer();u.on("connection",function(t){if(n=t.session,e.$emit("ui:connection",t),r.resolve(t,this),""===window.name)window.name=JSON.stringify({id:o.id});else{JSON.parse(window.name).id,o.id}}),u.on("disconnect",function(){e.$emit("ui:disconnect")});var i={on:function(t,e){u.on(t,e)},off:function(t,e){u.off(t,e)},removeEvent:function(t,e){u.removeListener(t,e)},emit:function(t,e){u.emit(t,e||{})},clientEvent:function(t,e){u.emit("ui:client:proxy",{event:t,data:e})},options:function(){return r.promise},getData:function(e){var n=t.defer();return u.on("ui:receive:"+e,function(t){n.resolve(t)}),u.emit("ui:get:"+e),n.promise},uiEvent:function(t){u.emit("ui",t)},newSession:function(){}};return Object.defineProperty(i,"sessionId",{get:function(){return n}}),i}var i=n(1),o=n(39),s=window.___browserSync___.socketConfig,a=window.___browserSync___.socketUrl,u=o(a,s);i.module("bsSocket",[]).service("Socket",["$q","$rootScope",r])},function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=i(t),o=r.source,c=r.id,l=r.path,f=u[c]&&l in u[c].nsps,h=e.forceNew||e["force new connection"]||!1===e.multiplex||f;return h?(a("ignoring socket cache for %s",o),n=s(o,e)):(u[c]||(a("new io instance for %s",o),u[c]=s(o,e)),n=u[c]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var i=n(40),o=n(7),s=n(15),a=n(0)("socket.io-client");t.exports=e=r;var u=e.managers={};e.protocol=o.protocol,e.connect=r,e.Manager=n(15),e.Socket=n(21)},function(t,e,n){function r(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)||(o("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),o("parse %s",t),n=i(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 r=-1!==n.host.indexOf(":"),s=r?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port,n.href=n.protocol+"://"+s+(e&&e.port===n.port?"":":"+n.port),n}var i=n(13),o=n(0)("socket.io-client:url");t.exports=r},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){g&&p&&(g=!1,p.length?d=p.concat(d):v=-1,d.length&&a())}function a(){if(!g){var t=i(s);g=!0;for(var e=d.length;e;){for(p=d,d=[];++v1)for(var n=1;n100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,a,"minute")||o(t,s,"second")||t+" ms"}function o(t,e,n){if(!(t0)return n(t);if("number"===o&&!1===isNaN(t))return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(t,e){if(!t)return t;if(s(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(o(t)){for(var i=new Array(t.length),a=0;a0)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 i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function s(t){for(var e,n=r(t),i=n[0],s=n[1],a=new h(o(t,i,s)),u=0,c=s>0?i-4:i,l=0;l>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===s&&(e=f[t.charCodeAt(l)]<<2|f[t.charCodeAt(l+1)]>>4,a[u++]=255&e),1===s&&(e=f[t.charCodeAt(l)]<<10|f[t.charCodeAt(l+1)]<<4|f[t.charCodeAt(l+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a}function a(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function u(t,e,n){for(var r,i=[],o=e;os?s:o+16383));return 1===r?(e=t[n-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=s,e.fromByteArray=c;for(var l=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,g=p.length;d>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<>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),e*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<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(49),t.exports.parser=n(3)},function(t,e,n){function r(t,e){if(!(this instanceof r))return new r(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=l(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=l(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=f.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.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()}function i(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var o=n(16),s=n(2),a=n(0)("engine.io-client:socket"),u=n(20),c=n(3),l=n(13),f=n(5);t.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=c.protocol,r.Socket=r,r.Transport=n(12),r.transports=n(16),r.parser=n(3),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=i(this.query);e.EIO=c.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new o[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.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)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(h.onlyBinaryUpgrades){var e=!this.supportsBinary&&h.transport.supportsBinary;f=f||e}f||(a('probe transport "%s" opened',t),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(e){if(!f)if("pong"===e.type&&"probe"===e.data){if(a('probe transport "%s" pong',t),h.upgrading=!0,h.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"===l.name,a('pausing current transport "%s"',h.transport.name),h.transport.pause(function(){f||"closed"!==h.readyState&&(a("changing transport and sending upgrade packet"),c(),h.setTransport(l),l.send([{type:"upgrade"}]),h.emit("upgrade",l),l=null,h.upgrading=!1,h.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=l.name,h.emit("upgradeError",n)}}))}function n(){f||(f=!0,c(),l.close(),l=null)}function i(e){var r=new Error("probe error: "+e);r.transport=l.name,n(),a('probe transport "%s" failed because of error: %s',t,e),h.emit("upgradeError",r)}function o(){i("transport closed")}function s(){i("socket closed")}function u(t){l&&t.name!==l.name&&(a('"%s" works - aborting "%s"',t.name,l.name),n())}function c(){l.removeListener("open",e),l.removeListener("error",i),l.removeListener("close",o),h.removeListener("close",s),h.removeListener("upgrading",u)}a('probing transport "%s"',t);var l=this.createTransport(t,{probe:1}),f=!1,h=this;r.priorWebsocketSuccess=!1,l.once("open",e),l.once("error",i),l.once("close",o),this.once("close",s),this.once("upgrading",u),l.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;tr&&(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=55296&&e<=56319&&i65535&&(e-=65536,i+=d(e>>>10&1023|55296),e=56320|1023&e),i+=d(e);return i}function i(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 o(t,e){return d(t>>e&63|128)}function s(t,e){if(0==(4294967168&t))return d(t);var n="";return 0==(4294965248&t)?n=d(t>>6&31|192):0==(4294901760&t)?(i(t,e)||(t=65533),n=d(t>>12&15|224),n+=o(t,6)):0==(4292870144&t)&&(n=d(t>>18&7|240),n+=o(t,12),n+=o(t,6)),n+=d(63&t|128)}function a(t,e){e=e||{};for(var r,i=!1!==e.strict,o=n(t),a=o.length,u=-1,c="";++u=h)throw Error("Invalid byte index");var t=255&f[p];if(p++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function c(t){var e,n,r,o,s;if(p>h)throw Error("Invalid byte index");if(p==h)return!1;if(e=255&f[p],p++,0==(128&e))return e;if(192==(224&e)){if(n=u(),(s=(31&e)<<6|n)>=128)return s;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=u(),r=u(),(s=(15&e)<<12|n<<6|r)>=2048)return i(s,t)?s:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=u(),r=u(),o=u(),(s=(7&e)<<18|n<<12|r<<6|o)>=65536&&s<=1114111))return s;throw Error("Invalid UTF-8 detected")}function l(t,e){e=e||{};var i=!1!==e.strict;f=n(t),h=f.length,p=0;for(var o,s=[];!1!==(o=c(i));)s.push(o);return r(s)}/*! https://mths.be/utf8js v2.1.2 by @mathias */ -var f,h,p,d=String.fromCharCode;t.exports={version:"2.1.2",encode:a,decode:l}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>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>4,f[c++]=(15&i)<<4|o>>2,f[c++]=(3&o)<<6|63&s;return l}}()},function(t,e){function n(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 r(t,e){e=e||{};var r=new o;return n(t).forEach(function(t){r.append(t)}),e.type?r.getBlob(e.type):r.getBlob()}function i(t,e){return new Blob(n(t),e||{})}var o=void 0!==o?o:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,s=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),a=s&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),u=o&&o.prototype.append&&o.prototype.getBlob;"undefined"!=typeof Blob&&(r.prototype=Blob.prototype,i.prototype=Blob.prototype),t.exports=function(){return s?a?Blob:i:u?r:void 0}()},function(t,e,n){(function(e){function r(){}function i(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function o(t){if(s.call(this,t),this.query=this.query||{},!u){var e=i();u=e.___eio=e.___eio||[]}this.index=u.length;var n=this;u.push(function(t){n.onData(t)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var s=n(17),a=n(6);t.exports=o;var u,c=/\n/g,l=/\\n/g;a(o,s),o.prototype.supportsBinary=!1,o.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),s.prototype.doClose.call(this)},o.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)},o.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var t=''),a.close(),s=a.w.frames[0].document,t=s.createElement("div")}catch(e){t=i.createElement("div"),s=i.body}var u=function(n){return function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(t),s.appendChild(t),t.addBehavior("#default#userData"),t.load(o);var i=n.apply(e,r);return s.removeChild(t),i}},c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),l=function(t){return t.replace(/^d/,"___$&").replace(c,"___")};e.set=u(function(t,n,r){return n=l(n),void 0===r?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(o),r)}),e.get=u(function(t,n,r){n=l(n);var i=e.deserialize(t.getAttribute(n));return void 0===i?r:i}),e.remove=u(function(t,e){e=l(e),t.removeAttribute(e),t.save(o)}),e.clear=u(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)}),e.getAll=function(t){var n={};return e.forEach(function(t,e){n[t]=e}),n},e.forEach=u(function(t,n){for(var r,i=t.XMLDocument.documentElement.attributes,o=0;r=i[o];++o)n(r.name,e.deserialize(t.getAttribute(r.name)))})}try{var f="__storejs__";e.set(f,f),e.get(f)!=f&&(e.disabled=!0),e.remove(f)}catch(t){e.disabled=!0}return e.enabled=!e.disabled,e})}).call(e,n(10))},function(t,e,n){var r,i,o;!function(n,s){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=s():(i=[],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o))}(0,function(){"use strict";function t(t){if(!t)return!0;if(o(t)&&0===t.length)return!0;if(!r(t)){for(var e in t)if(f.call(t,e))return!1;return!0}return!1}function e(t){return l.call(t)}function n(t){return"number"==typeof t||"[object Number]"===e(t)}function r(t){return"string"==typeof t||"[object String]"===e(t)}function i(t){return"object"==typeof t&&"[object Object]"===e(t)}function o(t){return"object"==typeof t&&"number"==typeof t.length&&"[object Array]"===e(t)}function s(t){return"boolean"==typeof t||"[object Boolean]"===e(t)}function a(t){var e=parseInt(t);return e.toString()===t?e:t}function u(e,i,o,s){if(n(i)&&(i=[i]),t(i))return e;if(r(i))return u(e,i.split(".").map(a),o,s);var c=i[0];if(1===i.length){var l=e[c];return void 0!==l&&s||(e[c]=o),l}return void 0===e[c]&&(n(i[1])?e[c]=[]:e[c]={}),u(e[c],i.slice(1),o,s)}function c(e,i){if(n(i)&&(i=[i]),!t(e)){if(t(i))return e;if(r(i))return c(e,i.split("."));var s=a(i[0]),u=e[s];if(1===i.length)void 0!==u&&(o(e)?e.splice(s,1):delete e[s]);else if(void 0!==e[s])return c(e[s],i.slice(1));return e}}var l=Object.prototype.toString,f=Object.prototype.hasOwnProperty,h=function(t){return Object.keys(h).reduce(function(e,n){return"function"==typeof h[n]&&(e[n]=h[n].bind(h,t)),e},{})};return h.has=function(e,s){if(t(e))return!1;if(n(s)?s=[s]:r(s)&&(s=s.split(".")),t(s)||0===s.length)return!1;for(var a=0;an[e]?1:-1}),n&&r.reverse(),r}}},function(t,e,n){var t=n(4);t.directive("icon",n(72)),t.directive("linkTo",n(73)),t.directive("switch",n(74)),t.directive("newTab",n(75))},function(t,e){t.exports=function(){return{scope:{icon:"@"},restrict:"E",replace:!0,template:'',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:"as",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:' New Tab '}}}]); \ No newline at end of file +var f,h,p,d=String.fromCharCode;t.exports={version:"2.1.2",encode:a,decode:l}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>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>4,f[c++]=(15&i)<<4|o>>2,f[c++]=(3&o)<<6|63&s;return l}}()},function(t,e){function n(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 r(t,e){e=e||{};var r=new o;return n(t).forEach(function(t){r.append(t)}),e.type?r.getBlob(e.type):r.getBlob()}function i(t,e){return new Blob(n(t),e||{})}var o=void 0!==o?o:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,s=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),a=s&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),u=o&&o.prototype.append&&o.prototype.getBlob;"undefined"!=typeof Blob&&(r.prototype=Blob.prototype,i.prototype=Blob.prototype),t.exports=function(){return s?a?Blob:i:u?r:void 0}()},function(t,e,n){(function(e){function r(){}function i(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function o(t){if(s.call(this,t),this.query=this.query||{},!u){var e=i();u=e.___eio=e.___eio||[]}this.index=u.length;var n=this;u.push(function(t){n.onData(t)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var s=n(17),a=n(6);t.exports=o;var u,c=/\n/g,l=/\\n/g;a(o,s),o.prototype.supportsBinary=!1,o.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),s.prototype.doClose.call(this)},o.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)},o.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var t=''),a.close(),s=a.w.frames[0].document,t=s.createElement("div")}catch(e){t=i.createElement("div"),s=i.body}var u=function(n){return function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(t),s.appendChild(t),t.addBehavior("#default#userData"),t.load(o);var i=n.apply(e,r);return s.removeChild(t),i}},c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),l=function(t){return t.replace(/^d/,"___$&").replace(c,"___")};e.set=u(function(t,n,r){return n=l(n),void 0===r?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(o),r)}),e.get=u(function(t,n,r){n=l(n);var i=e.deserialize(t.getAttribute(n));return void 0===i?r:i}),e.remove=u(function(t,e){e=l(e),t.removeAttribute(e),t.save(o)}),e.clear=u(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)}),e.getAll=function(t){var n={};return e.forEach(function(t,e){n[t]=e}),n},e.forEach=u(function(t,n){for(var r,i=t.XMLDocument.documentElement.attributes,o=0;r=i[o];++o)n(r.name,e.deserialize(t.getAttribute(r.name)))})}try{var f="__storejs__";e.set(f,f),e.get(f)!=f&&(e.disabled=!0),e.remove(f)}catch(t){e.disabled=!0}return e.enabled=!e.disabled,e})}).call(e,n(10))},function(t,e,n){var r,i,o;!function(n,s){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=s():(i=[],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o))}(0,function(){"use strict";function t(t,e){return null!=t&&Object.prototype.hasOwnProperty.call(t,e)}function e(e){if(!e)return!0;if(u(e)&&0===e.length)return!0;if("string"!=typeof e){for(var n in e)if(t(e,n))return!1;return!0}return!1}function n(t){return a.call(t)}function r(t){return"object"==typeof t&&"[object Object]"===n(t)}function i(t){return"boolean"==typeof t||"[object Boolean]"===n(t)}function o(t){var e=parseInt(t);return e.toString()===t?e:t}function s(n){function s(t,e){if(c(t,e))return t[e]}function a(t,e,r,i){if("number"==typeof e&&(e=[e]),!e||0===e.length)return t;if("string"==typeof e)return a(t,e.split(".").map(o),r,i);var u=e[0],c=s(t,u);if(n.includeInheritedProps&&("__proto__"===u||"constructor"===u&&"function"==typeof c))throw new Error("For security reasons, object's magic properties cannot be set");return 1===e.length?(void 0!==c&&i||(t[u]=r),c):(void 0===c&&("number"==typeof e[1]?t[u]=[]:t[u]={}),a(t[u],e.slice(1),r,i))}n=n||{};var c,l=function(t){return Object.keys(l).reduce(function(e,n){return"create"===n?e:("function"==typeof l[n]&&(e[n]=l[n].bind(l,t)),e)},{})};return c=n.includeInheritedProps?function(){return!0}:function(e,n){return"number"==typeof n&&Array.isArray(e)||t(e,n)},l.has=function(e,r){if("number"==typeof r?r=[r]:"string"==typeof r&&(r=r.split(".")),!r||0===r.length)return!!e;for(var i=0;in[e]?1:-1}),n&&r.reverse(),r}}},function(t,e,n){var t=n(4);t.directive("icon",n(72)),t.directive("linkTo",n(73)),t.directive("switch",n(74)),t.directive("newTab",n(75))},function(t,e){t.exports=function(){return{scope:{icon:"@"},restrict:"E",replace:!0,template:'',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:"as",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:' New Tab '}}}]); \ No newline at end of file diff --git a/packages/browser-sync/lib/sockets.js b/packages/browser-sync/lib/sockets.js index ede59aece..930fd361e 100644 --- a/packages/browser-sync/lib/sockets.js +++ b/packages/browser-sync/lib/sockets.js @@ -42,6 +42,11 @@ module.exports.init = function(server, clientEvents, bs) { io.set("heartbeat interval", socketConfig.clients.heartbeatTimeout); + // Breaking change was introduced https://socket.io/blog/socket-io-2-4-0/ + io.origins((_, callback) => { + callback(null, true); + }); + /** * Listen for new connections */ diff --git a/packages/browser-sync/package-lock.json b/packages/browser-sync/package-lock.json index 62202f559..e0795bdb1 100644 --- a/packages/browser-sync/package-lock.json +++ b/packages/browser-sync/package-lock.json @@ -121,7 +121,8 @@ "async-limiter": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", - "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", + "dev": true }, "asynckit": { "version": "0.4.0", @@ -163,12 +164,13 @@ "base64-arraybuffer": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", - "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=" + "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=", + "dev": true }, "base64id": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/base64id/-/base64id-1.0.0.tgz", - "integrity": "sha1-R2iMuZu2gE8OBtPnY7HDLlfY5rY=" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", + "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==" }, "batch": { "version": "0.6.1", @@ -189,6 +191,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", "integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=", + "dev": true, "requires": { "callsite": "1.0.0" } @@ -256,7 +259,8 @@ "callsite": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", - "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=" + "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=", + "dev": true }, "camelcase": { "version": "5.3.1", @@ -435,7 +439,8 @@ "component-emitter": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true }, "component-inherit": { "version": "0.0.3", @@ -464,9 +469,9 @@ "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==" }, "cookie": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", - "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" }, "cookiejar": { "version": "2.1.2", @@ -828,35 +833,52 @@ "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" }, "engine.io": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.2.1.tgz", - "integrity": "sha512-+VlKzHzMhaU+GsCIg4AoXF1UdDFjHHwMmMKqMJNDNLlUlejz58FCy4LBqB2YVJskHGYl06BatYWKP2TVdVXE5w==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.5.0.tgz", + "integrity": "sha512-21HlvPUKaitDGE4GXNtQ7PLP0Sz4aWLddMPw2VTyFz1FVZqu/kZsJUO8WNpKuE/OCL7nkfRaOui2ZCJloGznGA==", "requires": { "accepts": "~1.3.4", - "base64id": "1.0.0", - "cookie": "0.3.1", - "debug": "~3.1.0", - "engine.io-parser": "~2.1.0", - "ws": "~3.3.1" + "base64id": "2.0.0", + "cookie": "~0.4.1", + "debug": "~4.1.0", + "engine.io-parser": "~2.2.0", + "ws": "~7.4.2" }, "dependencies": { + "base64-arraybuffer": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", + "integrity": "sha1-mBjHngWbE1X5fgQooBfIOOkLqBI=" + }, "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "requires": { - "ms": "2.0.0" + "ms": "^2.1.1" } }, - "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", + "engine.io-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.2.1.tgz", + "integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==", "requires": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0", - "ultron": "~1.1.0" + "after": "0.8.2", + "arraybuffer.slice": "~0.0.7", + "base64-arraybuffer": "0.1.4", + "blob": "0.0.5", + "has-binary2": "~1.0.2" } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "ws": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.2.tgz", + "integrity": "sha512-T4tewALS3+qsrpGI/8dqNMLIVdq/g/85U98HPMa6F0m6xTbvhXU6RCQLqPH3+SlomNV/LdY6RXEbBpMH6EOJnA==" } } }, @@ -894,6 +916,7 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.3.tgz", "integrity": "sha512-6HXPre2O4Houl7c4g7Ic/XzPnHBvaEmN90vtRO9uLmwtRqQmTOw0QMevL1TOfL2Cpu1VzsaTmMotQgMdkzGkVA==", + "dev": true, "requires": { "after": "0.8.2", "arraybuffer.slice": "~0.0.7", @@ -1937,7 +1960,8 @@ "object-component": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", - "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=" + "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=", + "dev": true }, "on-finished": { "version": "2.3.0", @@ -2000,6 +2024,7 @@ "version": "0.0.5", "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", + "dev": true, "requires": { "better-assert": "~1.0.0" } @@ -2008,6 +2033,7 @@ "version": "0.0.5", "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", + "dev": true, "requires": { "better-assert": "~1.0.0" } @@ -2287,7 +2313,8 @@ "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -2428,42 +2455,79 @@ } }, "socket.io": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.1.1.tgz", - "integrity": "sha512-rORqq9c+7W0DAK3cleWNSyfv/qKXV99hV4tZe+gGLfBECw3XEhBy7x85F3wypA9688LKjtwO9pX9L33/xQI8yA==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.4.0.tgz", + "integrity": "sha512-9UPJ1UTvKayuQfVv2IQ3k7tCQC/fboDyIK62i99dAQIyHKaBsNdTpwHLgKJ6guRWxRtC9H+138UwpaGuQO9uWQ==", "requires": { - "debug": "~3.1.0", - "engine.io": "~3.2.0", + "debug": "~4.1.0", + "engine.io": "~3.5.0", "has-binary2": "~1.0.2", "socket.io-adapter": "~1.1.0", - "socket.io-client": "2.1.1", - "socket.io-parser": "~3.2.0" + "socket.io-client": "2.4.0", + "socket.io-parser": "~3.4.0" }, "dependencies": { + "base64-arraybuffer": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", + "integrity": "sha1-mBjHngWbE1X5fgQooBfIOOkLqBI=" + }, + "component-emitter": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", + "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + }, "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "requires": { - "ms": "2.0.0" + "ms": "^2.1.1" } }, "engine.io-client": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.2.1.tgz", - "integrity": "sha512-y5AbkytWeM4jQr7m/koQLc5AxpRKC1hEVUb/s1FUAWEJq5AzJJ4NLvzuKPuxtDi5Mq755WuDvZ6Iv2rXj4PTzw==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.5.0.tgz", + "integrity": "sha512-12wPRfMrugVw/DNyJk34GQ5vIVArEcVMXWugQGGuw2XxUSztFNmJggZmv8IZlLyEdnpO1QB9LkcjeWewO2vxtA==", "requires": { - "component-emitter": "1.2.1", + "component-emitter": "~1.3.0", "component-inherit": "0.0.3", "debug": "~3.1.0", - "engine.io-parser": "~2.1.1", + "engine.io-parser": "~2.2.0", "has-cors": "1.1.0", "indexof": "0.0.1", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "ws": "~3.3.1", + "parseqs": "0.0.6", + "parseuri": "0.0.6", + "ws": "~7.4.2", "xmlhttprequest-ssl": "~1.5.4", "yeast": "0.1.2" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "engine.io-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.2.1.tgz", + "integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==", + "requires": { + "after": "0.8.2", + "arraybuffer.slice": "~0.0.7", + "base64-arraybuffer": "0.1.4", + "blob": "0.0.5", + "has-binary2": "~1.0.2" } }, "isarray": { @@ -2471,46 +2535,85 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=" }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "parseqs": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.6.tgz", + "integrity": "sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w==" + }, + "parseuri": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.6.tgz", + "integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow==" + }, "socket.io-client": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.1.1.tgz", - "integrity": "sha512-jxnFyhAuFxYfjqIgduQlhzqTcOEQSn+OHKVfAxWaNWa7ecP7xSNk2Dx/3UEsDcY7NcFafxvNvKPmmO7HTwTxGQ==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.4.0.tgz", + "integrity": "sha512-M6xhnKQHuuZd4Ba9vltCLT9oa+YvTsP8j9NcEiLElfIg8KeYPyhWOes6x4t+LTAC8enQbE/995AdTem2uNyKKQ==", "requires": { "backo2": "1.0.2", - "base64-arraybuffer": "0.1.5", "component-bind": "1.0.0", - "component-emitter": "1.2.1", + "component-emitter": "~1.3.0", "debug": "~3.1.0", - "engine.io-client": "~3.2.0", + "engine.io-client": "~3.5.0", "has-binary2": "~1.0.2", - "has-cors": "1.1.0", "indexof": "0.0.1", - "object-component": "0.0.3", - "parseqs": "0.0.5", - "parseuri": "0.0.5", - "socket.io-parser": "~3.2.0", + "parseqs": "0.0.6", + "parseuri": "0.0.6", + "socket.io-parser": "~3.3.0", "to-array": "0.1.4" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "socket.io-parser": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.2.tgz", + "integrity": "sha512-FJvDBuOALxdCI9qwRrO/Rfp9yfndRtc1jSgVgV8FDraihmSP/MLGD5PEuJrNfjALvcQ+vMDM/33AWOYP/JSjDg==", + "requires": { + "component-emitter": "~1.3.0", + "debug": "~3.1.0", + "isarray": "2.0.1" + } + } } }, "socket.io-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.2.0.tgz", - "integrity": "sha512-FYiBx7rc/KORMJlgsXysflWx/RIvtqZbyGLlHZvjfmPTPeuD/I8MaW7cfFrj5tRltICJdgwflhfZ3NVVbVLFQA==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.4.1.tgz", + "integrity": "sha512-11hMgzL+WCLWf1uFtHSNvliI++tcRUWdoeYuwIl+Axvwy9z2gQM+7nJyN3STj1tLj5JyIUH8/gpDGxzAlDdi0A==", "requires": { "component-emitter": "1.2.1", - "debug": "~3.1.0", + "debug": "~4.1.0", "isarray": "2.0.1" + }, + "dependencies": { + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" + } } }, "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", - "requires": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0", - "ultron": "~1.1.0" - } + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.2.tgz", + "integrity": "sha512-T4tewALS3+qsrpGI/8dqNMLIVdq/g/85U98HPMa6F0m6xTbvhXU6RCQLqPH3+SlomNV/LdY6RXEbBpMH6EOJnA==" } } }, @@ -2782,11 +2885,6 @@ "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.21.tgz", "integrity": "sha512-+O8/qh/Qj8CgC6eYBVBykMrNtp5Gebn4dlGD/kKXVkJNDwyrAwSIqwz8CDf+tsAIWVycKcku6gIXJ0qwx/ZXaQ==" }, - "ultron": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", - "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" - }, "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",