!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SockJS=e():t.SockJS=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(0),o=n(18);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(t){t?delete this._listeners[t]:this._listeners={}},i.prototype.once=function(t,e){var n=this,r=!1;this.on(t,function o(){n.removeListener(t,o),r||(r=!0,e.apply(this,arguments))})},i.prototype.emit=function(){var t=arguments[0],e=this._listeners[t];if(e){for(var n=arguments.length,r=new Array(n-1),o=1;o1)))/4)-_((t-1901+e)/100)+_((t-1601+e)/400)};if((p=v.hasOwnProperty)||(p=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=y?p=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,p=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,p.call(this,t)}),d=function(t,e){var n,r,o,i=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)p.call(r,o)&&i++;return n=r=null,i?d=2==i?function(t,e){var n,r={},o="[object Function]"==y.call(t);for(n in t)o&&"prototype"==n||p.call(r,n)||!(r[n]=1)||!p.call(t,n)||e(n)}:function(t,e){var n,r,o="[object Function]"==y.call(t);for(n in t)o&&"prototype"==n||!p.call(t,n)||(r="constructor"===n)||e(n);(r||p.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],d=function(t,e){var n,o,i="[object Function]"==y.call(t),a=!i&&"function"!=typeof t.constructor&&s[typeof t.hasOwnProperty]&&t.hasOwnProperty||p;for(n in t)i&&"prototype"==n||!a.call(t,n)||e(n);for(o=r.length;n=r[--o];a.call(t,n)&&e(n));}),d(t,e)},!g("json-stringify")){var S={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},T=function(t,e){return("000000"+(e||0)).slice(-t)},O=function(t){for(var e='"',n=0,r=t.length,o=!w||r>10,i=o&&(w?t.split(""):t);n-1/0&&a<1/0){if(E){for(h=_(a/864e5),l=_(h/365.2425)+1970-1;E(l+1,0)<=h;l++);for(f=_((h-E(l,0))/30.42);E(l,f+1)<=h;f++);h=1+h-E(l,f),b=_((v=(a%864e5+864e5)%864e5)/36e5)%24,g=_(v/6e4)%60,w=_(v/1e3)%60,x=v%1e3}else l=a.getUTCFullYear(),f=a.getUTCMonth(),h=a.getUTCDate(),b=a.getUTCHours(),g=a.getUTCMinutes(),w=a.getUTCSeconds(),x=a.getUTCMilliseconds();a=(l<=0||l>=1e4?(l<0?"-":"+")+T(6,l<0?-l:l):T(4,l))+"-"+T(2,f+1)+"-"+T(2,h)+"T"+T(2,b)+":"+T(2,g)+":"+T(2,w)+"."+T(3,x)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if("[object Boolean]"==(c=y.call(a)))return""+a;if("[object Number]"==c)return a>-1/0&&a<1/0?""+a:"null";if("[object String]"==c)return O(""+a);if("object"==typeof a){for(N=s.length;N--;)if(s[N]===a)throw u();if(s.push(a),S=[],k=i,i+=o,"[object Array]"==c){for(A=0,N=a.length;A0)for(r="",n>10&&(n=10);r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||I();t+=N("0x"+i.slice(e,C));break;default:I()}else{if(34==o)break;for(o=i.charCodeAt(C),e=C;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++C);t+=i.slice(e,C)}if(34==i.charCodeAt(C))return C++,t;I();default:if(e=C,45==o&&(r=!0,o=i.charCodeAt(++C)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(C+1))>=48&&o<=57)&&I(),r=!1;C=48&&o<=57);C++);if(46==i.charCodeAt(C)){for(n=++C;n=48&&o<=57);n++);n==C&&I(),C=n}if(101==(o=i.charCodeAt(C))||69==o){for(43!=(o=i.charCodeAt(++C))&&45!=o||C++,n=C;n=48&&o<=57);n++);n==C&&I(),C=n}return+i.slice(e,C)}if(r&&I(),"true"==i.slice(C,C+4))return C+=4,!0;if("false"==i.slice(C,C+5))return C+=5,!1;if("null"==i.slice(C,C+4))return C+=4,null;I()}return"$"},L=function(t){var e,n;if("$"==t&&I(),"string"==typeof t){if("@"==(w?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=P());n||(n=!0))n&&(","==t?"]"==(t=P())&&I():I()),","==t&&I(),e.push(L(t));return e}if("{"==t){for(e={};"}"!=(t=P());n||(n=!0))n&&(","==t?"}"==(t=P())&&I():I()),","!=t&&"string"==typeof t&&"@"==(w?t.charAt(0):t[0])&&":"==P()||I(),e[t.slice(1)]=L(P());return e}I()}return t},R=function(t,e,n){var r=M(t,e,n);r===m?delete t[e]:t[e]=r},M=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if("[object Array]"==y.call(o))for(r=o.length;r--;)R(o,r,n);else d(o,function(t){R(o,t,n)});return n.call(t,e,o)};e.parse=function(t,e){var n,r;return C=0,A=""+t,n=L(P()),"$"!=P()&&I(),C=A=null,e&&"[object Function]"==y.call(e)?M(((r={})[""]=n,r),"",e):n}}}return e.runInContext=l,e}if(!u||u.global!==u&&u.window!==u&&u.self!==u||(c=u),a&&!i)l(c,a);else{var f=c.JSON,h=c.JSON3,p=!1,d=l(c,c.JSON3={noConflict:function(){return p||(p=!0,c.JSON=f,c.JSON3=h,f=h=null),d}});c.JSON={parse:d.parse,stringify:d.stringify}}i&&(void 0===(o=function(){return d}.call(e,n,e,t))||(t.exports=o))}).call(this)}).call(this,n(43)(t),n(1))},function(t,e,n){"use strict";(function(e){var r=n(6),o={},i=!1,s=e.chrome&&e.chrome.app&&e.chrome.app.runtime;t.exports={attachEvent:function(t,n){void 0!==e.addEventListener?e.addEventListener(t,n,!1):e.document&&e.attachEvent&&(e.document.attachEvent("on"+t,n),e.attachEvent("on"+t,n))},detachEvent:function(t,n){void 0!==e.addEventListener?e.removeEventListener(t,n,!1):e.document&&e.detachEvent&&(e.document.detachEvent("on"+t,n),e.detachEvent("on"+t,n))},unloadAdd:function(t){if(s)return null;var e=r.string(8);return o[e]=t,i&&setTimeout(this.triggerUnloadCallbacks,0),e},unloadDel:function(t){t in o&&delete o[t]},triggerUnloadCallbacks:function(){for(var t in o)o[t](),delete o[t]}};s||t.exports.attachEvent("unload",function(){i||(i=!0,t.exports.triggerUnloadCallbacks())})}).call(this,n(1))},function(t,e,n){"use strict";var r=n(35);t.exports={string:function(t){for(var e="abcdefghijklmnopqrstuvwxyz012345".length,n=r.randomBytes(t),o=[],i=0;i