!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)-l((t-1901+e)/100)+l((t-1601+e)/400)};e=function(t){for(o=l(t/864e5),n=l(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=l((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),s=l((i=(t%864e5+864e5)%864e5)/36e5)%24,a=l(i/6e4)%60,c=l(i/1e3)%60,u=i%1e3}}return(S=function(t){return t>-1/0&&t<1/0?(e(t),t=(n<=0||n>=1e4?(n<0?"-":"+")+E(6,n<0?-n:n):E(4,n))+"-"+E(2,r+1)+"-"+E(2,o)+"T"+E(2,s)+":"+E(2,a)+":"+E(2,c)+"."+E(3,u)+"Z",n=r=o=s=a=c=u=null):t=null,t})(t)};if(g("json-stringify")&&!g("date-serialization")){function T(t){return S(this)}var O=e.stringify;e.stringify=function(t,e,n){var r=i.prototype.toJSON;i.prototype.toJSON=T;var o=O(t,e,n);return i.prototype.toJSON=r,o}}else{var j=function(t){var e=t.charCodeAt(0),n=_[e];return n||"\\u00"+E(2,e.toString(16))},C=/[\x00-\x1f\x22\x5c]/g,N=function(t){return C.lastIndex=0,'"'+(C.test(t)?t.replace(C,j):t)+'"'},A=function(t,e,n,r,o,s,a){var c,l,f,h,d,v,b,g,w;if(y((function(){c=e[t]})),"object"==typeof c&&c&&(c.getUTCFullYear&&"[object Date]"==m.call(c)&&c.toJSON===i.prototype.toJSON?c=S(c):"function"==typeof c.toJSON&&(c=c.toJSON(t))),n&&(c=n.call(e,t,c)),c==p)return c===p?c:"null";switch("object"==(l=typeof c)&&(f=m.call(c)),f||l){case"boolean":case"[object Boolean]":return""+c;case"number":case"[object Number]":return c>-1/0&&c<1/0?""+c:"null";case"string":case"[object String]":return N(""+c)}if("object"==typeof c){for(b=a.length;b--;)if(a[b]===c)throw u();if(a.push(c),h=[],g=s,s+=o,"[object Array]"==f){for(v=0,b=c.length;v0)for(n>10&&(n=10),r="";r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||R();t+=P("0x"+i.slice(e,k));break;default:R()}else{if(34==o)break;for(o=i.charCodeAt(k),e=k;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++k);t+=i.slice(e,k)}if(34==i.charCodeAt(k))return k++,t;R();default:if(e=k,45==o&&(r=!0,o=i.charCodeAt(++k)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(k+1))>=48&&o<=57)&&R(),r=!1;k=48&&o<=57);k++);if(46==i.charCodeAt(k)){for(n=++k;n57);n++);n==k&&R(),k=n}if(101==(o=i.charCodeAt(k))||69==o){for(43!=(o=i.charCodeAt(++k))&&45!=o||k++,n=k;n57);n++);n==k&&R(),k=n}return+i.slice(e,k)}r&&R();var a=i.slice(k,k+4);if("true"==a)return k+=4,!0;if("fals"==a&&101==i.charCodeAt(k+4))return k+=5,!1;if("null"==a)return k+=4,null;R()}return"$"},U=function(t){var e,n;if("$"==t&&R(),"string"==typeof t){if("@"==(w?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=M());)n?","==t?"]"==(t=M())&&R():R():n=!0,","==t&&R(),e.push(U(t));return e}if("{"==t){for(e={};"}"!=(t=M());)n?","==t?"}"==(t=M())&&R():R():n=!0,","!=t&&"string"==typeof t&&"@"==(w?t.charAt(0):t[0])&&":"==M()||R(),e[t.slice(1)]=U(M());return e}R()}return t},q=function(t,e,n){var r=D(t,e,n);r===p?delete t[e]:t[e]=r},D=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if("[object Array]"==m.call(o))for(r=o.length;r--;)q(m,x,o);else x(o,(function(t){q(o,t,n)}));return n.call(t,e,o)};e.parse=function(t,e){var n,r;return k=0,I=""+t,n=U(M()),"$"!=M()&&R(),k=I=null,e&&"[object Function]"==m.call(e)?D(((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