t(e)}),a=a.replace("#","%23"),t+o+r+a+n},n.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(s.isString(e)){var t=new n;t.parse(e,!1,!0),e=t}for(var r=new n,o=Object.keys(this),i=0;i<o.length;i++){var a=o[i];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),h=0;h<f.length;h++){var p=f[h];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||b[e.protocol])r.pathname=e.pathname;else{for(_=(e.pathname||"").split("/");_.length&&!(e.host=_.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==_[0]&&_.unshift(""),_.length<2&&_.unshift(""),r.pathname=_.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",m=r.search||"";r.path=d+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||g||r.host&&e.pathname,x=w,E=r.pathname&&r.pathname.split("/")||[],_=e.pathname&&e.pathname.split("/")||[],S=r.protocol&&!y[r.protocol];if(S&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===_[0]?_[0]=e.host:_.unshift(e.host)),e.host=null),w=w&&(""===_[0]||""===E[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=_;else if(_.length)E||(E=[]),E.pop(),E=E.concat(_),r.search=e.search,r.query=e.query;else if(!s.isNullOrUndefined(e.search))return S&&(r.hostname=r.host=E.shift(),(k=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=k.shift(),r.host=r.hostname=k.shift())),r.search=e.search,r.query=e.query,s.isNull(r.pathname)&&s.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=E.slice(-1)[0],q=(r.host||e.host||E.length>1)&&("."===A||".."===A)||""===A,C=0,N=E.length;N>=0;N--)"."===(A=E[N])?E.splice(N,1):".."===A?(E.splice(N,1),C++):C&&(E.splice(N,1),C--);if(!w&&!x)for(;C--;C)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),q&&"/"!==E.join("/").substr(-1)&&E.push("");var j=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(S){r.hostname=r.host=j?"":E.length?E.shift():"";var k=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");k&&(r.auth=k.shift(),r.host=r.hostname=k.shift())}return(w=w||r.host&&E.length)&&!j&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),s.isNull(r.pathname)&&s.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var o;!function(i){function s(e){throw new RangeError(k[e])}function a(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function c(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+a((e=e.replace(j,".")).split("."),t).join(".")}function l(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function u(e){return a(e,function(e){var t="";return e>65535&&(t+=L((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=L(e)}).join("")}function f(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:y}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function p(e,t,r){var n=0;for(e=r?T(e/_):e>>1,e+=T(e/t);e>O*x>>1;n+=y)e=T(e/O);return T(n+(O+1)*e/(e+E))}function d(e){var t,r,n,o,i,a,c,l,h,d,m=[],g=e.length,v=0,E=A,_=S;for((r=e.lastIndexOf(q))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&s("not-basic"),m.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,c=y;o>=g&&s("invalid-input"),((l=f(e.charCodeAt(o++)))>=y||l>T((b-v)/a))&&s("overflow"),v+=l*a,h=c<=_?w:c>=_+x?x:c-_,!(l<h);c+=y)a>T(b/(d=y-h))&&s("overflow"),a*=d;_=p(v-i,t=m.length+1,0==i),T(v/t)>b-E&&s("overflow"),E+=T(v/t),v%=t,m.splice(v++,0,E)}return u(m)}function m(e){var t,r,n,o,i,a,c,u,f,d,m,g,v,E,_,C=[];for(g=(e=l(e)).length,t=A,r=0,i=S,a=0;a<g;++a)(m=e[a])<128&&C.push(L(m));for(n=o=C.length,o&&C.push(q);n<g;){for(c=b,a=0;a<g;++a)(m=e[a])>=t&&m<c&&(c=m);for(c-t>T((b-r)/(v=n+1))&&s("overflow"),r+=(c-t)*v,t=c,a=0;a<g;++a)if((m=e[a])<t&&++r>b&&s("overflow"),m==t){for(u=r,f=y;d=f<=i?w:f>=i+x?x:f-i,!(u<d);f+=y)_=u-d,E=y-d,C.push(L(h(d+_%E,0))),u=T(_/E);C.push(L(h(u,0))),i=p(r,v,n==o),r=0,++n}++r,++t}return C.join("")}"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var g="object"==typeof n&&n;var v,b=2147483647,y=36,w=1,x=26,E=38,_=700,S=72,A=128,q="-",C=/^xn--/,N=/[^\x20-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=y-w,T=Math.floor,L=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:l,encode:u},decode:d,encode:m,toASCII:function(e){return c(e,function(e){return N.test(e)?"xn--"+m(e):e})},toUnicode:function(e){return c(e,function(e){return C.test(e)?d(e.slice(4).toLowerCase()):e})}},void 0!==(o=function(){return v}.call(t,r,t,e))&&(e.exports=o)}()}).call(t,r(5)(e),r(0))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(8),t.encode=t.stringify=r(9)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var f,h,p,d,m=e[u].replace(a,"%20"),g=m.indexOf(r);g>=0?(f=m.substr(0,g),h=m.substr(g+1)):(f=m,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(s,p)?o(s[p])?s[p].push(d):s[p]=[s[p],d]:s[p]=d}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?n(s(e),function(s){var a=encodeURIComponent(o(s))+r;return i(e[s])?n(e[s],function(e){return a+encodeURIComponent(o(e))}).join(t):a+encodeURIComponent(o(e[s]))}).join(t):a?encodeURIComponent(o(a))+r+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){"use strict";var n=r(11)();e.exports=function(e){return"string"==typeof e?e.replace(n,""):e}},function(e,t,r){"use strict";e.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},function(e,t,r){var n,o;!function(i,s){"use strict";void 0!==(o="function"==typeof(n=s)?n.call(t,r,t,e):n)&&(e.exports=o)}(0,function(){"use strict";function e(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function t(t){return"debug"===t&&(t="log"),typeof console!==a&&(void 0!==console[t]?e(console,t):void 0!==console.log?e(console,"log"):s)}function r(e,t){for(var r=0;r<c.length;r++){var n=c[r];this[n]=r<e?s:this.methodFactory(n,e,t)}this.log=this.debug}function n(e,t,n){return function(){typeof console!==a&&(r.call(this,t,n),this[e].apply(this,arguments))}}function o(e,r,o){return t(e)||n.apply(this,arguments)}function i(e,t,n){function i(e){var t=(c[e]||"silent").toUpperCase();if(typeof window!==a){try{return void(window.localStorage[f]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+t+";"}catch(e){}}}function s(){var e;if(typeof window!==a){try{e=window.localStorage[f]}catch(e){}if(typeof e===a)try{var t=window.document.cookie,r=t.indexOf(encodeURIComponent(f)+"=");r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}catch(e){}return void 0===u.levels[e]&&(e=void 0),e}}var l,u=this,f="loglevel";e&&(f+=":"+e),u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=n||o,u.getLevel=function(){return l},u.setLevel=function(t,n){if("string"==typeof t&&void 0!==u.levels[t.toUpperCase()]&&(t=u.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=u.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(l=t,!1!==n&&i(t),r.call(u,t,e),typeof console===a&&t<u.levels.SILENT)return"No console available for logging"},u.setDefaultLevel=function(e){s()||u.setLevel(e,!1)},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)};var h=s();null==h&&(h=null==t?"WARN":t),u.setLevel(h,!1)}var s=function(){},a="undefined",c=["trace","debug","info","warn","error"],l=new i,u={};l.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=u[e];return t||(t=u[e]=new i(e,l.getLevel(),l.methodFactory)),t};var f=typeof window!==a?window.log:void 0;return l.noConflict=function(){return typeof window!==a&&window.log===l&&(window.log=f),l},l})},function(e,t,r){"use strict";var n=r(14),o=0,i=null,s=function(e,t){(i=new n(e)).onopen=function(){o=0},i.onclose=function(){if(0===o&&t.close(),i=null,o<=10){var r=1e3*Math.pow(2,o)+100*Math.random();o+=1,setTimeout(function(){s(e,t)},r)}},i.onmessage=function(e){var r=JSON.parse(e.data);t[r.type]&&t[r.type](r.data)}};e.exports=s},function(e,t,r){(function(t){var r;!function(t){e.exports=t()}(function(){return function e(t,n,o){function i(a,c){if(!n[a]){if(!t[a]){var l="function"==typeof r&&r;if(!c&&l)return r(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[a]={exports:{}};t[a][0].call(f.exports,function(e){var r=t[a][1][e];return i(r||e)},f,f.exports,e,t,n,o)}return n[a].exports}for(var s="function"==typeof r&&r,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(e,r,n){(function(t){"use strict";var n=e("./transport-list");r.exports=e("./main")(n),"_sockjs_onload"in t&&setTimeout(t._sockjs_onload,1)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./main":14,"./transport-list":16}],2:[function(e,t,r){"use strict";function n(){i.call(this),this.initEvent("close",!1,!1),this.wasClean=!1,this.code=0,this.reason=""}var o=e("inherits"),i=e("./event");o(n,i),t.exports=n},{"./event":4,inherits:57}],3:[function(e,t,r){"use strict";function n(){i.call(this)}var o=e("inherits"),i=e("./eventtarget");o(n,i),n.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},n.prototype.once=function(e,t){function r(){n.removeListener(e,r),o||(o=!0,t.apply(this,arguments))}var n=this,o=!1;this.on(e,r)},n.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var r=arguments.length,n=new Array(r-1),o=1;o<r;o++)n[o-1]=arguments[o];for(var i=0;i<t.length;i++)t[i].apply(this,n)}},n.prototype.on=n.prototype.addListener=i.prototype.addEventListener,n.prototype.removeListener=i.prototype.removeEventListener,t.exports.EventEmitter=n},{"./eventtarget":5,inherits:57}],4:[function(e,t,r){"use strict";function n(e){this.type=e}n.prototype.initEvent=function(e,t,r){return this.type=e,this.bubbles=t,this.cancelable=r,this.timeStamp=+new Date,this},n.prototype.stopPropagation=function(){},n.prototype.preventDefault=function(){},n.CAPTURING_PHASE=1,n.AT_TARGET=2,n.BUBBLING_PHASE=3,t.exports=n},{}],5:[function(e,t,r){"use strict";function n(){this._listeners={}}n.prototype.addEventListener=function(e,t){e in this._listeners||(this._listeners[e]=[]);var r=this._listeners[e];-1===r.indexOf(t)&&(r=r.concat([t])),this._listeners[e]=r},n.prototype.removeEventListener=function(e,t){var r=this._listeners[e];if(r){var n=r.indexOf(t);-1===n||(r.length>1?this._listeners[e]=r.slice(0,n).concat(r.slice(n+1)):delete this._listeners[e])}},n.prototype.dispatchEvent=function(){var e=arguments[0],t=e.type,r=1===arguments.length?[e]:Array.apply(null,arguments);if(this["on"+t]&&this["on"+t].apply(this,r),t in this._listeners)for(var n=this._listeners[t],o=0;o<n.length;o++)n[o].apply(this,r)},t.exports=n},{}],6:[function(e,t,r){"use strict";function n(e){i.call(this),this.initEvent("message",!1,!1),this.data=e}var o=e("inherits"),i=e("./event");o(n,i),t.exports=n},{"./event":4,inherits:57}],7:[function(e,t,r){"use strict";function n(e){this._transport=e,e.on("message",this._transportMessage.bind(this)),e.on("close",this._transportClose.bind(this))}var o=e("json3"),i=e("./utils/iframe");n.prototype._transportClose=function(e,t){i.postMessage("c",o.stringify([e,t]))},n.prototype._transportMessage=function(e){i.postMessage("t",e)},n.prototype._send=function(e){this._transport.send(e)},n.prototype._close=function(){this._transport.close(),this._transport.removeAllListeners()},t.exports=n},{"./utils/iframe":47,json3:58}],8:[function(e,t,r){(function(r){"use strict";var n=e("./utils/url"),o=e("./utils/event"),i=e("json3"),s=e("./facade"),a=e("./info-iframe-receiver"),c=e("./utils/iframe"),l=e("./location"),u=function(){};"production"!==r.env.NODE_ENV&&(u=e("debug")("sockjs-client:iframe-bootstrap")),t.exports=function(e,t){var r={};t.forEach(function(e){e.facadeTransport&&(r[e.facadeTransport.transportName]=e.facadeTransport)}),r[a.transportName]=a;var f;e.bootstrap_iframe=function(){var t;c.currentWindowId=l.hash.slice(1);o.attachEvent("message",function(o){if(o.source===parent&&(void 0===f&&(f=o.origin),o.origin===f)){var a;try{a=i.parse(o.data)}catch(e){return void u("bad json",o.data)}if(a.windowId===c.currentWindowId)switch(a.type){case"s":var h;try{h=i.parse(a.data)}catch(e){u("bad json",a.data);break}var p=h[0],d=h[1],m=h[2],g=h[3];if(u(p,d,m,g),p!==e.version)throw new Error('Incompatible SockJS! Main site uses: "'+p+'", the iframe: "'+e.version+'".');if(!n.isOriginEqual(m,l.href)||!n.isOriginEqual(g,l.href))throw new Error("Can't connect to different domain from within an iframe. ("+l.href+", "+m+", "+g+")");t=new s(new r[d](m,g));break;case"m":t._send(a.data);break;case"c":t&&t._close(),t=null}}}),c.postMessage("s")}}}).call(this,{env:{}})},{"./facade":7,"./info-iframe-receiver":10,"./location":13,"./utils/event":46,"./utils/iframe":47,"./utils/url":52,debug:55,json3:58}],9:[function(e,t,r){(function(r){"use strict";function n(e,t){o.call(this);var r=this,n=+new Date;this.xo=new t("GET",e),this.xo.once("finish",function(e,t){var o,i;if(200===e){if(i=+new Date-n,t)try{o=s.parse(t)}catch(e){c("bad json",t)}a.isObject(o)||(o={})}r.emit("finish",o,i),r.removeAllListeners()})}var o=e("events").EventEmitter,i=e("inherits"),s=e("json3"),a=e("./utils/object"),c=function(){};"production"!==r.env.NODE_ENV&&(c=e("debug")("sockjs-client:info-ajax")),i(n,o),n.prototype.close=function(){this.removeAllListeners(),this.xo.close()},t.exports=n}).call(this,{env:{}})},{"./utils/object":49,debug:55,events:3,inherits:57,json3:58}],10:[function(e,t,r){"use strict";function n(e){var t=this;i.call(this),this.ir=new c(e,a),this.ir.once("finish",function(e,r){t.ir=null,t.emit("message",s.stringify([e,r]))})}var o=e("inherits"),i=e("events").EventEmitter,s=e("json3"),a=e("./transport/sender/xhr-local"),c=e("./info-ajax");o(n,i),n.transportName="iframe-info-receiver",n.prototype.close=function(){this.ir&&(this.ir.close(),this.ir=null),this.removeAllListeners()},t.exports=n},{"./info-ajax":9,"./transport/sender/xhr-local":37,events:3,inherits:57,json3:58}],11:[function(e,r,n){(function(t,n){"use strict";function o(e,t){var r=this;i.call(this);var o=function(){var n=r.ifr=new l(u.transportName,t,e);n.once("message",function(e){if(e){var t;try{t=a.parse(e)}catch(t){return f("bad json",e),r.emit("finish"),void r.close()}var n=t[0],o=t[1];r.emit("finish",n,o)}r.close()}),n.once("close",function(){r.emit("finish"),r.close()})};n.document.body?o():c.attachEvent("load",o)}var i=e("events").EventEmitter,s=e("inherits"),a=e("json3"),c=e("./utils/event"),l=e("./transport/iframe"),u=e("./info-iframe-receiver"),f=function(){};"production"!==t.env.NODE_ENV&&(f=e("debug")("sockjs-client:info-iframe")),s(o,i),o.enabled=function(){return l.enabled()},o.prototype.close=function(){this.ifr&&this.ifr.close(),this.removeAllListeners(),this.ifr=null},r.exports=o}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./info-iframe-receiver":10,"./transport/iframe":22,"./utils/event":46,debug:55,events:3,inherits:57,json3:58}],12:[function(e,t,r){(function(r){"use strict";function n(e,t){p(e);var r=this;o.call(this),setTimeout(function(){r.doXhr(e,t)},0)}var o=e("events").EventEmitter,i=e("inherits"),s=e("./utils/url"),a=e("./transport/sender/xdr"),c=e("./transport/sender/xhr-cors"),l=e("./transport/sender/xhr-local"),u=e("./transport/sender/xhr-fake"),f=e("./info-iframe"),h=e("./info-ajax"),p=function(){};"production"!==r.env.NODE_ENV&&(p=e("debug")("sockjs-client:info-receiver")),i(n,o),n._getReceiver=function(e,t,r){return r.sameOrigin?new h(t,l):c.enabled?new h(t,c):a.enabled&&r.sameScheme?new h(t,a):f.enabled()?new f(e,t):new h(t,u)},n.prototype.doXhr=function(e,t){var r=this,o=s.addPath(e,"/info");p("doXhr",o),this.xo=n._getReceiver(e,o,t),this.timeoutRef=setTimeout(function(){p("timeout"),r._cleanup(!1),r.emit("finish")},n.timeout),this.xo.once("finish",function(e,t){p("finish",e,t),r._cleanup(!0),r.emit("finish",e,t)})},n.prototype._cleanup=function(e){p("_cleanup"),clearTimeout(this.timeoutRef),this.timeoutRef=null,!e&&this.xo&&this.xo.close(),this.xo=null},n.prototype.close=function(){p("close"),this.removeAllListeners(),this._cleanup(!1)},n.timeout=8e3,t.exports=n}).call(this,{env:{}})},{"./info-ajax":9,"./info-iframe":11,"./transport/sender/xdr":34,"./transport/sender/xhr-cors":35,"./transport/sender/xhr-fake":36,"./transport/sender/xhr-local":37,"./utils/url":52,debug:55,events:3,inherits:57}],13:[function(e,r,n){(function(e){"use strict";r.exports=e.location||{origin:"http://localhost:80",protocol:"http",host:"localhost",port:80,href:"http://localhost/",hash:""}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],14:[function(e,r,n){(function(t,n){"use strict";function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);if(arguments.length<1)throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");b.call(this),this.readyState=o.CONNECTING,this.extensions="",this.protocol="",(r=r||{}).protocols_whitelist&&g.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead."),this._transportsWhitelist=r.transports,this._transportOptions=r.transportOptions||{};var n=r.sessionId||8;if("function"==typeof n)this._generateSessionId=n;else{if("number"!=typeof n)throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");this._generateSessionId=function(){return l.string(n)}}this._server=r.server||l.numberString(1e3);var i=new s(e);if(!i.host||!i.protocol)throw new SyntaxError("The URL '"+e+"' is invalid");if(i.hash)throw new SyntaxError("The URL must not contain a fragment");if("http:"!==i.protocol&&"https:"!==i.protocol)throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '"+i.protocol+"' is not allowed.");var a="https:"===i.protocol;if("https"===y.protocol&&!a)throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");t?Array.isArray(t)||(t=[t]):t=[];var c=t.sort();c.forEach(function(e,t){if(!e)throw new SyntaxError("The protocols entry '"+e+"' is invalid.");if(t<c.length-1&&e===c[t+1])throw new SyntaxError("The protocols entry '"+e+"' is duplicated.")});var u=f.getOrigin(y.href);this._origin=u?u.toLowerCase():null,i.set("pathname",i.pathname.replace(/\/+$/,"")),this.url=i.href,_("using url",this.url),this._urlInfo={nullOrigin:!m.hasDomain(),sameOrigin:f.isOriginEqual(this.url,y.href),sameScheme:f.isSchemeEqual(this.url,y.href)},this._ir=new E(this.url,this._urlInfo),this._ir.once("finish",this._receiveInfo.bind(this))}function i(e){return 1e3===e||e>=3e3&&e<=4999}e("./shims");var s=e("url-parse"),a=e("inherits"),c=e("json3"),l=e("./utils/random"),u=e("./utils/escape"),f=e("./utils/url"),h=e("./utils/event"),p=e("./utils/transport"),d=e("./utils/object"),m=e("./utils/browser"),g=e("./utils/log"),v=e("./event/event"),b=e("./event/eventtarget"),y=e("./location"),w=e("./event/close"),x=e("./event/trans-message"),E=e("./info-receiver"),_=function(){};"production"!==t.env.NODE_ENV&&(_=e("debug")("sockjs-client:main"));var S;a(o,b),o.prototype.close=function(e,t){if(e&&!i(e))throw new Error("InvalidAccessError: Invalid code");if(t&&t.length>123)throw new SyntaxError("reason argument has an invalid length");if(this.readyState!==o.CLOSING&&this.readyState!==o.CLOSED){this._close(e||1e3,t||"Normal closure",!0)}},o.prototype.send=function(e){if("string"!=typeof e&&(e=""+e),this.readyState===o.CONNECTING)throw new Error("InvalidStateError: The connection has not been established yet");this.readyState===o.OPEN&&this._transport.send(u.quote(e))},o.version=e("./version"),o.CONNECTING=0,o.OPEN=1,o.CLOSING=2,o.CLOSED=3,o.prototype._receiveInfo=function(e,t){if(_("_receiveInfo",t),this._ir=null,e){this._rto=this.countRTO(t),this._transUrl=e.base_url?e.base_url:this.url,e=d.extend(e,this._urlInfo),_("info",e);var r=S.filterToEnabled(this._transportsWhitelist,e);this._transports=r.main,_(this._transports.length+" enabled transports"),this._connect()}else this._close(1002,"Cannot connect to server")},o.prototype._connect=function(){for(var e=this._transports.shift();e;e=this._transports.shift()){if(_("attempt",e.transportName),e.needBody&&(!n.document.body||void 0!==n.document.readyState&&"complete"!==n.document.readyState&&"interactive"!==n.document.readyState))return _("waiting for body"),this._transports.unshift(e),void h.attachEvent("load",this._connect.bind(this));var t=this._rto*e.roundTrips||5e3;this._transportTimeoutId=setTimeout(this._transportTimeout.bind(this),t),_("using timeout",t);var r=f.addPath(this._transUrl,"/"+this._server+"/"+this._generateSessionId()),o=this._transportOptions[e.transportName];_("transport url",r);var i=new e(r,this._transUrl,o);return i.on("message",this._transportMessage.bind(this)),i.once("close",this._transportClose.bind(this)),i.transportName=e.transportName,void(this._transport=i)}this._close(2e3,"All transports failed",!1)},o.prototype._transportTimeout=function(){_("_transportTimeout"),this.readyState===o.CONNECTING&&this._transportClose(2007,"Transport timed out")},o.prototype._transportMessage=function(e){_("_transportMessage",e);var t,r=this,n=e.slice(0,1),o=e.slice(1);switch(n){case"o":return void this._open();case"h":return this.dispatchEvent(new v("heartbeat")),void _("heartbeat",this.transport)}if(o)try{t=c.parse(o)}catch(e){_("bad json",o)}if(void 0!==t)switch(n){case"a":Array.isArray(t)&&t.forEach(function(e){_("message",r.transport,e),r.dispatchEvent(new x(e))});break;case"m":_("message",this.transport,t),this.dispatchEvent(new x(t));break;case"c":Array.isArray(t)&&2===t.length&&this._close(t[0],t[1],!0)}else _("empty payload",o)},o.prototype._transportClose=function(e,t){_("_transportClose",this.transport,e,t),this._transport&&(this._transport.removeAllListeners(),this._transport=null,this.transport=null),i(e)||2e3===e||this.readyState!==o.CONNECTING?this._close(e,t):this._connect()},o.prototype._open=function(){_("_open",this._transport.transportName,this.readyState),this.readyState===o.CONNECTING?(this._transportTimeoutId&&(clearTimeout(this._transportTimeoutId),this._transportTimeoutId=null),this.readyState=o.OPEN,this.transport=this._transport.transportName,this.dispatchEvent(new v("open")),_("connected",this.transport)):this._close(1006,"Server lost session")},o.prototype._close=function(e,t,r){_("_close",this.transport,e,t,r,this.readyState);var n=!1;if(this._ir&&(n=!0,this._ir.close(),this._ir=null),this._transport&&(this._transport.close(),this._transport=null,this.transport=null),this.readyState===o.CLOSED)throw new Error("InvalidStateError: SockJS has already been closed");this.readyState=o.CLOSING,setTimeout(function(){this.readyState=o.CLOSED,n&&this.dispatchEvent(new v("error"));var i=new w("close");i.wasClean=r||!1,i.code=e||1e3,i.reason=t,this.dispatchEvent(i),this.onmessage=this.onclose=this.onerror=null,_("disconnected")}.bind(this),0)},o.prototype.countRTO=function(e){return e>100?4*e:300+e},r.exports=function(t){return S=p(t),e("./iframe-bootstrap")(o,t),o}}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./event/close":2,"./event/event":4,"./event/eventtarget":5,"./event/trans-message":6,"./iframe-bootstrap":8,"./info-receiver":12,"./location":13,"./shims":15,"./utils/browser":44,"./utils/escape":45,"./utils/event":46,"./utils/log":48,"./utils/object":49,"./utils/random":50,"./utils/transport":51,"./utils/url":52,"./version":53,debug:55,inherits:57,json3:58,"url-parse":61}],15:[function(e,t,r){"use strict";function n(e){var t=+e;return t!==t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}function o(e){return e>>>0}function i(){}var s,a=Array.prototype,c=Object.prototype,l=Function.prototype,u=String.prototype,f=a.slice,h=c.toString,p=function(e){return"[object Function]"===c.toString.call(e)},d=function(e){return"[object String]"===h.call(e)},m=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}();s=m?function(e,t,r,n){!n&&t in e||Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r})}:function(e,t,r,n){!n&&t in e||(e[t]=r)};var g=function(e,t,r){for(var n in t)c.hasOwnProperty.call(t,n)&&s(e,n,t[n],r)},v=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)};g(l,{bind:function(e){var t=this;if(!p(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r=f.call(arguments,1),n=Math.max(0,t.length-r.length),o=[],s=0;s<n;s++)o.push("$"+s);var a=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof a){var n=t.apply(this,r.concat(f.call(arguments)));return Object(n)===n?n:this}return t.apply(e,r.concat(f.call(arguments)))});return t.prototype&&(i.prototype=t.prototype,a.prototype=new i,i.prototype=null),a}}),g(Array,{isArray:function(e){return"[object Array]"===h.call(e)}});var b=Object("a"),y="a"!==b[0]||!(0 in b);g(a,{forEach:function(e){var t=v(this),r=y&&d(this)?this.split(""):t,n=arguments[1],o=-1,i=r.length>>>0;if(!p(e))throw new TypeError;for(;++o<i;)o in r&&e.call(n,r[o],o,t)}},!function(e){var t=!0,r=!0;return e&&(e.call("foo",function(e,r,n){"object"!=typeof n&&(t=!1)}),e.call([1],function(){r="string"==typeof this},"x")),!!e&&t&&r}(a.forEach));var w=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);g(a,{indexOf:function(e){var t=y&&d(this)?this.split(""):v(this),r=t.length>>>0;if(!r)return-1;var o=0;for(arguments.length>1&&(o=n(arguments[1])),o=o>=0?o:Math.max(0,r+o);o<r;o++)if(o in t&&t[o]===e)return o;return-1}},w);var x=u.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?function(){var e=void 0===/()??/.exec("")[1];u.split=function(t,r){var n=this;if(void 0===t&&0===r)return[];if("[object RegExp]"!==h.call(t))return x.call(this,t,r);var i,s,c,l,u=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),p=0;for(t=new RegExp(t.source,f+"g"),n+="",e||(i=new RegExp("^"+t.source+"$(?!\\s)",f)),r=void 0===r?-1>>>0:o(r);(s=t.exec(n))&&!((c=s.index+s[0].length)>p&&(u.push(n.slice(p,s.index)),!e&&s.length>1&&s[0].replace(i,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(s[e]=void 0)}),s.length>1&&s.index<n.length&&a.push.apply(u,s.slice(1)),l=s[0].length,p=c,u.length>=r));)t.lastIndex===s.index&&t.lastIndex++;return p===n.length?!l&&t.test("")||u.push(""):u.push(n.slice(p)),u.length>r?u.slice(0,r):u}}():"0".split(void 0,0).length&&(u.split=function(e,t){return void 0===e&&0===t?[]:x.call(this,e,t)});var E=u.substr,_="".substr&&"b"!=="0b".substr(-1);g(u,{substr:function(e,t){return E.call(this,e<0&&(e=this.length+e)<0?0:e,t)}},_)},{}],16:[function(e,t,r){"use strict";t.exports=[e("./transport/websocket"),e("./transport/xhr-streaming"),e("./transport/xdr-streaming"),e("./transport/eventsource"),e("./transport/lib/iframe-wrap")(e("./transport/eventsource")),e("./transport/htmlfile"),e("./transport/lib/iframe-wrap")(e("./transport/htmlfile")),e("./transport/xhr-polling"),e("./transport/xdr-polling"),e("./transport/lib/iframe-wrap")(e("./transport/xhr-polling")),e("./transport/jsonp-polling")]},{"./transport/eventsource":20,"./transport/htmlfile":21,"./transport/jsonp-polling":23,"./transport/lib/iframe-wrap":26,"./transport/websocket":38,"./transport/xdr-polling":39,"./transport/xdr-streaming":40,"./transport/xhr-polling":41,"./transport/xhr-streaming":42}],17:[function(e,r,n){(function(t,n){"use strict";function o(e,t,r,n){u(e,t);var o=this;i.call(this),setTimeout(function(){o._start(e,t,r,n)},0)}var i=e("events").EventEmitter,s=e("inherits"),a=e("../../utils/event"),c=e("../../utils/url"),l=n.XMLHttpRequest,u=function(){};"production"!==t.env.NODE_ENV&&(u=e("debug")("sockjs-client:browser:xhr")),s(o,i),o.prototype._start=function(e,t,r,n){var i=this;try{this.xhr=new l}catch(e){}if(!this.xhr)return u("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();t=c.addQuery(t,"t="+ +new Date),this.unloadRef=a.unloadAdd(function(){u("unload cleanup"),i._cleanup(!0)});try{this.xhr.open(e,t,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){u("xhr timeout"),i.emit("finish",0,""),i._cleanup(!1)})}catch(e){return u("exception",e),this.emit("finish",0,""),void this._cleanup(!1)}if(n&&n.noCredentials||!o.supportsCORS||(u("withCredentials"),this.xhr.withCredentials="true"),n&&n.headers)for(var s in n.headers)this.xhr.setRequestHeader(s,n.headers[s]);this.xhr.onreadystatechange=function(){if(i.xhr){var e,t,r=i.xhr;switch(u("readyState",r.readyState),r.readyState){case 3:try{t=r.status,e=r.responseText}catch(e){}u("status",t),1223===t&&(t=204),200===t&&e&&e.length>0&&(u("chunk"),i.emit("chunk",t,e));break;case 4:t=r.status,u("status",t),1223===t&&(t=204),12005!==t&&12029!==t||(t=0),u("finish",t,r.responseText),i.emit("finish",t,r.responseText),i._cleanup(!1)}}};try{i.xhr.send(r)}catch(e){i.emit("finish",0,""),i._cleanup(!1)}},o.prototype._cleanup=function(e){if(u("cleanup"),this.xhr){if(this.removeAllListeners(),a.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),e)try{this.xhr.abort()}catch(e){}this.unloadRef=this.xhr=null}},o.prototype.close=function(){u("close"),this._cleanup(!0)},o.enabled=!!l;var f=["Active"].concat("Object").join("X");!o.enabled&&f in n&&(u("overriding xmlhttprequest"),l=function(){try{return new n[f]("Microsoft.XMLHTTP")}catch(e){return null}},o.enabled=!!new l);var h=!1;try{h="withCredentials"in new l}catch(e){}o.supportsCORS=h,r.exports=o}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/event":46,"../../utils/url":52,debug:55,events:3,inherits:57}],18:[function(e,r,n){(function(e){r.exports=e.EventSource}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],19:[function(e,r,n){(function(e){"use strict";var t=e.WebSocket||e.MozWebSocket;r.exports=t?function(e){return new t(e)}:void 0}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,t,r){"use strict";function n(e){if(!n.enabled())throw new Error("Transport created when disabled");i.call(this,e,"/eventsource",s,a)}var o=e("inherits"),i=e("./lib/ajax-based"),s=e("./receiver/eventsource"),a=e("./sender/xhr-cors"),c=e("eventsource");o(n,i),n.enabled=function(){return!!c},n.transportName="eventsource",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/eventsource":29,"./sender/xhr-cors":35,eventsource:18,inherits:57}],21:[function(e,t,r){"use strict";function n(e){if(!i.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/htmlfile",i,s)}var o=e("inherits"),i=e("./receiver/htmlfile"),s=e("./sender/xhr-local"),a=e("./lib/ajax-based");o(n,a),n.enabled=function(e){return i.enabled&&e.sameOrigin},n.transportName="htmlfile",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/htmlfile":30,"./sender/xhr-local":37,inherits:57}],22:[function(e,t,r){(function(r){"use strict";function n(e,t,r){if(!n.enabled())throw new Error("Transport created when disabled");s.call(this);var o=this;this.origin=c.getOrigin(r),this.baseUrl=r,this.transUrl=t,this.transport=e,this.windowId=f.string(8);var i=c.addPath(r,"/iframe.html")+"#"+this.windowId;h(e,t,i),this.iframeObj=l.createIframe(i,function(e){h("err callback"),o.emit("close",1006,"Unable to load an iframe ("+e+")"),o.close()}),this.onmessageCallback=this._message.bind(this),u.attachEvent("message",this.onmessageCallback)}var o=e("inherits"),i=e("json3"),s=e("events").EventEmitter,a=e("../version"),c=e("../utils/url"),l=e("../utils/iframe"),u=e("../utils/event"),f=e("../utils/random"),h=function(){};"production"!==r.env.NODE_ENV&&(h=e("debug")("sockjs-client:transport:iframe")),o(n,s),n.prototype.close=function(){if(h("close"),this.removeAllListeners(),this.iframeObj){u.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(e){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},n.prototype._message=function(e){if(h("message",e.data),c.isOriginEqual(e.origin,this.origin)){var t;try{t=i.parse(e.data)}catch(t){return void h("bad json",e.data)}if(t.windowId===this.windowId)switch(t.type){case"s":this.iframeObj.loaded(),this.postMessage("s",i.stringify([a,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",t.data);break;case"c":var r;try{r=i.parse(t.data)}catch(e){return void h("bad json",t.data)}this.emit("close",r[0],r[1]),this.close()}else h("mismatched window id",t.windowId,this.windowId)}else h("not same origin",e.origin,this.origin)},n.prototype.postMessage=function(e,t){h("postMessage",e,t),this.iframeObj.post(i.stringify({windowId:this.windowId,type:e,data:t||""}),this.origin)},n.prototype.send=function(e){h("send",e),this.postMessage("m",e)},n.enabled=function(){return l.iframeEnabled},n.transportName="iframe",n.roundTrips=2,t.exports=n}).call(this,{env:{}})},{"../utils/event":46,"../utils/iframe":47,"../utils/random":50,"../utils/url":52,"../version":53,debug:55,events:3,inherits:57,json3:58}],23:[function(e,r,n){(function(t){"use strict";function n(e){if(!n.enabled())throw new Error("Transport created when disabled");i.call(this,e,"/jsonp",a,s)}var o=e("inherits"),i=e("./lib/sender-receiver"),s=e("./receiver/jsonp"),a=e("./sender/jsonp");o(n,i),n.enabled=function(){return!!t.document},n.transportName="jsonp-polling",n.roundTrips=1,n.needBody=!0,r.exports=n}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/sender-receiver":28,"./receiver/jsonp":31,"./sender/jsonp":33,inherits:57}],24:[function(e,t,r){(function(r){"use strict";function n(e){return function(t,r,n){c("create ajax sender",t,r);var o={};"string"==typeof r&&(o.headers={"Content-type":"text/plain"});var i=s.addPath(t,"/xhr_send"),a=new e("POST",i,r,o);return a.once("finish",function(e){if(c("finish",e),a=null,200!==e&&204!==e)return n(new Error("http status "+e));n()}),function(){c("abort"),a.close(),a=null;var e=new Error("Aborted");e.code=1e3,n(e)}}}function o(e,t,r,o){a.call(this,e,t,n(o),r,o)}var i=e("inherits"),s=e("../../utils/url"),a=e("./sender-receiver"),c=function(){};"production"!==r.env.NODE_ENV&&(c=e("debug")("sockjs-client:ajax-based")),i(o,a),t.exports=o}).call(this,{env:{}})},{"../../utils/url":52,"./sender-receiver":28,debug:55,inherits:57}],25:[function(e,t,r){(function(r){"use strict";function n(e,t){s(e),i.call(this),this.sendBuffer=[],this.sender=t,this.url=e}var o=e("inherits"),i=e("events").EventEmitter,s=function(){};"production"!==r.env.NODE_ENV&&(s=e("debug")("sockjs-client:buffered-sender")),o(n,i),n.prototype.send=function(e){s("send",e),this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},n.prototype.sendScheduleWait=function(){s("sendScheduleWait");var e,t=this;this.sendStop=function(){s("sendStop"),t.sendStop=null,clearTimeout(e)},e=setTimeout(function(){s("timeout"),t.sendStop=null,t.sendSchedule()},25)},n.prototype.sendSchedule=function(){s("sendSchedule",this.sendBuffer.length);var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,function(t){e.sendStop=null,t?(s("error",t),e.emit("close",t.code||1006,"Sending error: "+t),e.close()):e.sendScheduleWait()}),this.sendBuffer=[]}},n.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},n.prototype.close=function(){s("close"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},t.exports=n}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],26:[function(e,r,n){(function(t){"use strict";var n=e("inherits"),o=e("../iframe"),i=e("../../utils/object");r.exports=function(e){function r(t,r){o.call(this,e.transportName,t,r)}return n(r,o),r.enabled=function(r,n){if(!t.document)return!1;var s=i.extend({},n);return s.sameOrigin=!0,e.enabled(s)&&o.enabled()},r.transportName="iframe-"+e.transportName,r.needBody=!0,r.roundTrips=o.roundTrips+e.roundTrips-1,r.facadeTransport=e,r}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/object":49,"../iframe":22,inherits:57}],27:[function(e,t,r){(function(r){"use strict";function n(e,t,r){s(t),i.call(this),this.Receiver=e,this.receiveUrl=t,this.AjaxObject=r,this._scheduleReceiver()}var o=e("inherits"),i=e("events").EventEmitter,s=function(){};"production"!==r.env.NODE_ENV&&(s=e("debug")("sockjs-client:polling")),o(n,i),n.prototype._scheduleReceiver=function(){s("_scheduleReceiver");var e=this,t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",function(t){s("message",t),e.emit("message",t)}),t.once("close",function(r,n){s("close",r,n,e.pollIsClosing),e.poll=t=null,e.pollIsClosing||("network"===n?e._scheduleReceiver():(e.emit("close",r||1006,n),e.removeAllListeners()))})},n.prototype.abort=function(){s("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},t.exports=n}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],28:[function(e,t,r){(function(r){"use strict";function n(e,t,r,n,o){var l=i.addPath(e,t);c(l);var u=this;s.call(this,e,r),this.poll=new a(n,l,o),this.poll.on("message",function(e){c("poll message",e),u.emit("message",e)}),this.poll.once("close",function(e,t){c("poll close",e,t),u.poll=null,u.emit("close",e,t),u.close()})}var o=e("inherits"),i=e("../../utils/url"),s=e("./buffered-sender"),a=e("./polling"),c=function(){};"production"!==r.env.NODE_ENV&&(c=e("debug")("sockjs-client:sender-receiver")),o(n,s),n.prototype.close=function(){s.prototype.close.call(this),c("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null)},t.exports=n}).call(this,{env:{}})},{"../../utils/url":52,"./buffered-sender":25,"./polling":27,debug:55,inherits:57}],29:[function(e,t,r){(function(r){"use strict";function n(e){a(e),i.call(this);var t=this,r=this.es=new s(e);r.onmessage=function(e){a("message",e.data),t.emit("message",decodeURI(e.data))},r.onerror=function(e){a("error",r.readyState,e);var n=2!==r.readyState?"network":"permanent";t._cleanup(),t._close(n)}}var o=e("inherits"),i=e("events").EventEmitter,s=e("eventsource"),a=function(){};"production"!==r.env.NODE_ENV&&(a=e("debug")("sockjs-client:receiver:eventsource")),o(n,i),n.prototype.abort=function(){a("abort"),this._cleanup(),this._close("user")},n.prototype._cleanup=function(){a("cleanup");var e=this.es;e&&(e.onmessage=e.onerror=null,e.close(),this.es=null)},n.prototype._close=function(e){a("close",e);var t=this;setTimeout(function(){t.emit("close",null,e),t.removeAllListeners()},200)},t.exports=n}).call(this,{env:{}})},{debug:55,events:3,eventsource:18,inherits:57}],30:[function(e,r,n){(function(t,n){"use strict";function o(e){u(e),c.call(this);var t=this;s.polluteGlobalNamespace(),this.id="a"+l.string(6),e=a.addQuery(e,"c="+decodeURIComponent(s.WPrefix+"."+this.id)),u("using htmlfile",o.htmlfileEnabled);var r=o.htmlfileEnabled?s.createHtmlfile:s.createIframe;n[s.WPrefix][this.id]={start:function(){u("start"),t.iframeObj.loaded()},message:function(e){u("message",e),t.emit("message",e)},stop:function(){u("stop"),t._cleanup(),t._close("network")}},this.iframeObj=r(e,function(){u("callback"),t._cleanup(),t._close("permanent")})}var i=e("inherits"),s=e("../../utils/iframe"),a=e("../../utils/url"),c=e("events").EventEmitter,l=e("../../utils/random"),u=function(){};"production"!==t.env.NODE_ENV&&(u=e("debug")("sockjs-client:receiver:htmlfile")),i(o,c),o.prototype.abort=function(){u("abort"),this._cleanup(),this._close("user")},o.prototype._cleanup=function(){u("_cleanup"),this.iframeObj&&(this.iframeObj.cleanup(),this.iframeObj=null),delete n[s.WPrefix][this.id]},o.prototype._close=function(e){u("_close",e),this.emit("close",null,e),this.removeAllListeners()},o.htmlfileEnabled=!1;var f=["Active"].concat("Object").join("X");if(f in n)try{o.htmlfileEnabled=!!new n[f]("htmlfile")}catch(e){}o.enabled=o.htmlfileEnabled||s.iframeEnabled,r.exports=o}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:55,events:3,inherits:57}],31:[function(e,r,n){(function(t,n){"use strict";function o(e){f(e);var t=this;u.call(this),i.polluteGlobalNamespace(),this.id="a"+s.string(6);var r=c.addQuery(e,"c="+encodeURIComponent(i.WPrefix+"."+this.id));n[i.WPrefix][this.id]=this._callback.bind(this),this._createScript(r),this.timeoutId=setTimeout(function(){f("timeout"),t._abort(new Error("JSONP script loaded abnormally (timeout)"))},o.timeout)}var i=e("../../utils/iframe"),s=e("../../utils/random"),a=e("../../utils/browser"),c=e("../../utils/url"),l=e("inherits"),u=e("events").EventEmitter,f=function(){};"production"!==t.env.NODE_ENV&&(f=e("debug")("sockjs-client:receiver:jsonp")),l(o,u),o.prototype.abort=function(){if(f("abort"),n[i.WPrefix][this.id]){var e=new Error("JSONP user aborted read");e.code=1e3,this._abort(e)}},o.timeout=35e3,o.scriptErrorTimeout=1e3,o.prototype._callback=function(e){f("_callback",e),this._cleanup(),this.aborting||(e&&(f("message",e),this.emit("message",e)),this.emit("close",null,"network"),this.removeAllListeners())},o.prototype._abort=function(e){f("_abort",e),this._cleanup(),this.aborting=!0,this.emit("close",e.code,e.message),this.removeAllListeners()},o.prototype._cleanup=function(){if(f("_cleanup"),clearTimeout(this.timeoutId),this.script2&&(this.script2.parentNode.removeChild(this.script2),this.script2=null),this.script){var e=this.script;e.parentNode.removeChild(e),e.onreadystatechange=e.onerror=e.onload=e.onclick=null,this.script=null}delete n[i.WPrefix][this.id]},o.prototype._scriptError=function(){f("_scriptError");var e=this;this.errorTimer||(this.errorTimer=setTimeout(function(){e.loadedOkay||e._abort(new Error("JSONP script loaded abnormally (onerror)"))},o.scriptErrorTimeout))},o.prototype._createScript=function(e){f("_createScript",e);var t,r=this,o=this.script=n.document.createElement("script");if(o.id="a"+s.string(8),o.src=e,o.type="text/javascript",o.charset="UTF-8",o.onerror=this._scriptError.bind(this),o.onload=function(){f("onload"),r._abort(new Error("JSONP script loaded abnormally (onload)"))},o.onreadystatechange=function(){if(f("onreadystatechange",o.readyState),/loaded|closed/.test(o.readyState)){if(o&&o.htmlFor&&o.onclick){r.loadedOkay=!0;try{o.onclick()}catch(e){}}o&&r._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"))}},void 0===o.async&&n.document.attachEvent)if(a.isOpera())(t=this.script2=n.document.createElement("script")).text="try{var a = document.getElementById('"+o.id+"'); if(a)a.onerror();}catch(x){};",o.async=t.async=!1;else{try{o.htmlFor=o.id,o.event="onclick"}catch(e){}o.async=!0}void 0!==o.async&&(o.async=!0);var i=n.document.getElementsByTagName("head")[0];i.insertBefore(o,i.firstChild),t&&i.insertBefore(t,i.firstChild)},r.exports=o}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/browser":44,"../../utils/iframe":47,"../../utils/random":50,"../../utils/url":52,debug:55,events:3,inherits:57}],32:[function(e,t,r){(function(r){"use strict";function n(e,t){s(e),i.call(this);var r=this;this.bufferPosition=0,this.xo=new t("POST",e,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(e,t){s("finish",e,t),r._chunkHandler(e,t),r.xo=null;var n=200===e?"network":"permanent";s("close",n),r.emit("close",null,n),r._cleanup()})}var o=e("inherits"),i=e("events").EventEmitter,s=function(){};"production"!==r.env.NODE_ENV&&(s=e("debug")("sockjs-client:receiver:xhr")),o(n,i),n.prototype._chunkHandler=function(e,t){if(s("_chunkHandler",e),200===e&&t)for(var r=-1;;this.bufferPosition+=r+1){var n=t.slice(this.bufferPosition);if(-1===(r=n.indexOf("\n")))break;var o=n.slice(0,r);o&&(s("message",o),this.emit("message",o))}},n.prototype._cleanup=function(){s("_cleanup"),this.removeAllListeners()},n.prototype.abort=function(){s("abort"),this.xo&&(this.xo.close(),s("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},t.exports=n}).call(this,{env:{}})},{debug:55,events:3,inherits:57}],33:[function(e,r,n){(function(t,n){"use strict";function o(e){c("createIframe",e);try{return n.document.createElement('<iframe name="'+e+'">')}catch(r){var t=n.document.createElement("iframe");return t.name=e,t}}function i(){c("createForm"),(l=n.document.createElement("form")).style.display="none",l.style.position="absolute",l.method="POST",l.enctype="application/x-www-form-urlencoded",l.acceptCharset="UTF-8",(u=n.document.createElement("textarea")).name="d",l.appendChild(u),n.document.body.appendChild(l)}var s=e("../../utils/random"),a=e("../../utils/url"),c=function(){};"production"!==t.env.NODE_ENV&&(c=e("debug")("sockjs-client:sender:jsonp"));var l,u;r.exports=function(e,t,r){c(e,t),l||i();var n="a"+s.string(8);l.target=n,l.action=a.addQuery(a.addPath(e,"/jsonp_send"),"i="+n);var f=o(n);f.id=n,f.style.display="none",l.appendChild(f);try{u.value=t}catch(e){}l.submit();var h=function(e){c("completed",n,e),f.onerror&&(f.onreadystatechange=f.onerror=f.onload=null,setTimeout(function(){c("cleaning up",n),f.parentNode.removeChild(f),f=null},500),u.value="",r(e))};return f.onerror=function(){c("onerror",n),h()},f.onload=function(){c("onload",n),h()},f.onreadystatechange=function(e){c("onreadystatechange",n,f.readyState,e),"complete"===f.readyState&&h()},function(){c("aborted",n),h(new Error("Aborted"))}}}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/random":50,"../../utils/url":52,debug:55}],34:[function(e,r,n){(function(t,n){"use strict";function o(e,t,r){u(e,t);var n=this;i.call(this),setTimeout(function(){n._start(e,t,r)},0)}var i=e("events").EventEmitter,s=e("inherits"),a=e("../../utils/event"),c=e("../../utils/browser"),l=e("../../utils/url"),u=function(){};"production"!==t.env.NODE_ENV&&(u=e("debug")("sockjs-client:sender:xdr")),s(o,i),o.prototype._start=function(e,t,r){u("_start");var o=this,i=new n.XDomainRequest;t=l.addQuery(t,"t="+ +new Date),i.onerror=function(){u("onerror"),o._error()},i.ontimeout=function(){u("ontimeout"),o._error()},i.onprogress=function(){u("progress",i.responseText),o.emit("chunk",200,i.responseText)},i.onload=function(){u("load"),o.emit("finish",200,i.responseText),o._cleanup(!1)},this.xdr=i,this.unloadRef=a.unloadAdd(function(){o._cleanup(!0)});try{this.xdr.open(e,t),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(r)}catch(e){this._error()}},o.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},o.prototype._cleanup=function(e){if(u("cleanup",e),this.xdr){if(this.removeAllListeners(),a.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,e)try{this.xdr.abort()}catch(e){}this.unloadRef=this.xdr=null}},o.prototype.close=function(){u("close"),this._cleanup(!0)},o.enabled=!(!n.XDomainRequest||!c.hasDomain()),r.exports=o}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../utils/browser":44,"../../utils/event":46,"../../utils/url":52,debug:55,events:3,inherits:57}],35:[function(e,t,r){"use strict";function n(e,t,r,n){i.call(this,e,t,r,n)}var o=e("inherits"),i=e("../driver/xhr");o(n,i),n.enabled=i.enabled&&i.supportsCORS,t.exports=n},{"../driver/xhr":17,inherits:57}],36:[function(e,t,r){"use strict";function n(){var e=this;o.call(this),this.to=setTimeout(function(){e.emit("finish",200,"{}")},n.timeout)}var o=e("events").EventEmitter;e("inherits")(n,o),n.prototype.close=function(){clearTimeout(this.to)},n.timeout=2e3,t.exports=n},{events:3,inherits:57}],37:[function(e,t,r){"use strict";function n(e,t,r){i.call(this,e,t,r,{noCredentials:!0})}var o=e("inherits"),i=e("../driver/xhr");o(n,i),n.enabled=i.enabled,t.exports=n},{"../driver/xhr":17,inherits:57}],38:[function(e,t,r){(function(r){"use strict";function n(e,t,r){if(!n.enabled())throw new Error("Transport created when disabled");a.call(this),l("constructor",e);var s=this,u=i.addPath(e,"/websocket");u="https"===u.slice(0,5)?"wss"+u.slice(5):"ws"+u.slice(4),this.url=u,this.ws=new c(this.url,[],r),this.ws.onmessage=function(e){l("message event",e.data),s.emit("message",e.data)},this.unloadRef=o.unloadAdd(function(){l("unload"),s.ws.close()}),this.ws.onclose=function(e){l("close event",e.code,e.reason),s.emit("close",e.code,e.reason),s._cleanup()},this.ws.onerror=function(e){l("error event",e),s.emit("close",1006,"WebSocket connection broken"),s._cleanup()}}var o=e("../utils/event"),i=e("../utils/url"),s=e("inherits"),a=e("events").EventEmitter,c=e("./driver/websocket"),l=function(){};"production"!==r.env.NODE_ENV&&(l=e("debug")("sockjs-client:websocket")),s(n,a),n.prototype.send=function(e){var t="["+e+"]";l("send",t),this.ws.send(t)},n.prototype.close=function(){l("close");var e=this.ws;this._cleanup(),e&&e.close()},n.prototype._cleanup=function(){l("_cleanup");var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),o.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},n.enabled=function(){return l("enabled"),!!c},n.transportName="websocket",n.roundTrips=2,t.exports=n}).call(this,{env:{}})},{"../utils/event":46,"../utils/url":52,"./driver/websocket":19,debug:55,events:3,inherits:57}],39:[function(e,t,r){"use strict";function n(e){if(!c.enabled)throw new Error("Transport created when disabled");i.call(this,e,"/xhr",a,c)}var o=e("inherits"),i=e("./lib/ajax-based"),s=e("./xdr-streaming"),a=e("./receiver/xhr"),c=e("./sender/xdr");o(n,i),n.enabled=s.enabled,n.transportName="xdr-polling",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,"./xdr-streaming":40,inherits:57}],40:[function(e,t,r){"use strict";function n(e){if(!a.enabled)throw new Error("Transport created when disabled");i.call(this,e,"/xhr_streaming",s,a)}var o=e("inherits"),i=e("./lib/ajax-based"),s=e("./receiver/xhr"),a=e("./sender/xdr");o(n,i),n.enabled=function(e){return!e.cookie_needed&&!e.nullOrigin&&(a.enabled&&e.sameScheme)},n.transportName="xdr-streaming",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xdr":34,inherits:57}],41:[function(e,t,r){"use strict";function n(e){if(!c.enabled&&!a.enabled)throw new Error("Transport created when disabled");i.call(this,e,"/xhr",s,a)}var o=e("inherits"),i=e("./lib/ajax-based"),s=e("./receiver/xhr"),a=e("./sender/xhr-cors"),c=e("./sender/xhr-local");o(n,i),n.enabled=function(e){return!e.nullOrigin&&(!(!c.enabled||!e.sameOrigin)||a.enabled)},n.transportName="xhr-polling",n.roundTrips=2,t.exports=n},{"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],42:[function(e,r,n){(function(t){"use strict";function n(e){if(!c.enabled&&!a.enabled)throw new Error("Transport created when disabled");i.call(this,e,"/xhr_streaming",s,a)}var o=e("inherits"),i=e("./lib/ajax-based"),s=e("./receiver/xhr"),a=e("./sender/xhr-cors"),c=e("./sender/xhr-local"),l=e("../utils/browser");o(n,i),n.enabled=function(e){return!e.nullOrigin&&(!l.isOpera()&&a.enabled)},n.transportName="xhr-streaming",n.roundTrips=2,n.needBody=!!t.document,r.exports=n}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils/browser":44,"./lib/ajax-based":24,"./receiver/xhr":32,"./sender/xhr-cors":35,"./sender/xhr-local":37,inherits:57}],43:[function(e,r,n){(function(e){"use strict";e.crypto&&e.crypto.getRandomValues?r.exports.randomBytes=function(t){var r=new Uint8Array(t);return e.crypto.getRandomValues(r),r}:r.exports.randomBytes=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=Math.floor(256*Math.random());return t}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],44:[function(e,r,n){(function(e){"use strict";r.exports={isOpera:function(){return e.navigator&&/opera/i.test(e.navigator.userAgent)},isKonqueror:function(){return e.navigator&&/konqueror/i.test(e.navigator.userAgent)},hasDomain:function(){if(!e.document)return!0;try{return!!e.document.domain}catch(e){return!1}}}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(e,t,r){"use strict";var n,o=e("json3"),i=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,s=function(e){var t,r={},n=[];for(t=0;t<65536;t++)n.push(String.fromCharCode(t));return e.lastIndex=0,n.join("").replace(e,function(e){return r[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""}),e.lastIndex=0,r};t.exports={quote:function(e){var t=o.stringify(e);return i.lastIndex=0,i.test(t)?(n||(n=s(i)),t.replace(i,function(e){return n[e]})):t}}},{json3:58}],46:[function(e,r,n){(function(t){"use strict";var n=e("./random"),o={},i=!1,s=t.chrome&&t.chrome.app&&t.chrome.app.runtime;r.exports={attachEvent:function(e,r){void 0!==t.addEventListener?t.addEventListener(e,r,!1):t.document&&t.attachEvent&&(t.document.attachEvent("on"+e,r),t.attachEvent("on"+e,r))},detachEvent:function(e,r){void 0!==t.addEventListener?t.removeEventListener(e,r,!1):t.document&&t.detachEvent&&(t.document.detachEvent("on"+e,r),t.detachEvent("on"+e,r))},unloadAdd:function(e){if(s)return null;var t=n.string(8);return o[t]=e,i&&setTimeout(this.triggerUnloadCallbacks,0),t},unloadDel:function(e){e in o&&delete o[e]},triggerUnloadCallbacks:function(){for(var e in o)o[e](),delete o[e]}};s||r.exports.attachEvent("unload",function(){i||(i=!0,r.exports.triggerUnloadCallbacks())})}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./random":50}],47:[function(e,r,n){(function(t,n){"use strict";var o=e("./event"),i=e("json3"),s=e("./browser"),a=function(){};"production"!==t.env.NODE_ENV&&(a=e("debug")("sockjs-client:utils:iframe")),r.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){r.exports.WPrefix in n||(n[r.exports.WPrefix]={})},postMessage:function(e,t){n.parent!==n?n.parent.postMessage(i.stringify({windowId:r.exports.currentWindowId,type:e,data:t||""}),"*"):a("Cannot postMessage, no parent window.",e,t)},createIframe:function(e,t){var r,i,s=n.document.createElement("iframe"),c=function(){a("unattach"),clearTimeout(r);try{s.onload=null}catch(e){}s.onerror=null},l=function(){a("cleanup"),s&&(c(),setTimeout(function(){s&&s.parentNode.removeChild(s),s=null},0),o.unloadDel(i))},u=function(e){a("onerror",e),s&&(l(),t(e))};return s.src=e,s.style.display="none",s.style.position="absolute",s.onerror=function(){u("onerror")},s.onload=function(){a("onload"),clearTimeout(r),r=setTimeout(function(){u("onload timeout")},2e3)},n.document.body.appendChild(s),r=setTimeout(function(){u("timeout")},15e3),i=o.unloadAdd(l),{post:function(e,t){a("post",e,t);try{setTimeout(function(){s&&s.contentWindow&&s.contentWindow.postMessage(e,t)},0)}catch(e){}},cleanup:l,loaded:c}},createHtmlfile:function(e,t){var i,s,c,l=["Active"].concat("Object").join("X"),u=new n[l]("htmlfile"),f=function(){clearTimeout(i),c.onerror=null},h=function(){u&&(f(),o.unloadDel(s),c.parentNode.removeChild(c),c=u=null,CollectGarbage())},p=function(e){a("onerror",e),u&&(h(),t(e))};u.open(),u.write('<html><script>document.domain="'+n.document.domain+'";<\/script></html>'),u.close(),u.parentWindow[r.exports.WPrefix]=n[r.exports.WPrefix];var d=u.createElement("div");return u.body.appendChild(d),c=u.createElement("iframe"),d.appendChild(c),c.src=e,c.onerror=function(){p("onerror")},i=setTimeout(function(){p("timeout")},15e3),s=o.unloadAdd(h),{post:function(e,t){try{setTimeout(function(){c&&c.contentWindow&&c.contentWindow.postMessage(e,t)},0)}catch(e){}},cleanup:h,loaded:f}}},r.exports.iframeEnabled=!1,n.document&&(r.exports.iframeEnabled=("function"==typeof n.postMessage||"object"==typeof n.postMessage)&&!s.isKonqueror())}).call(this,{env:{}},void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./browser":44,"./event":46,debug:55,json3:58}],48:[function(e,r,n){(function(e){"use strict";var t={};["log","debug","warn"].forEach(function(r){var n;try{n=e.console&&e.console[r]&&e.console[r].apply}catch(e){}t[r]=n?function(){return e.console[r].apply(e.console,arguments)}:"log"===r?function(){}:t.log}),r.exports=t}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],49:[function(e,t,r){"use strict";t.exports={isObject:function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},extend:function(e){if(!this.isObject(e))return e;for(var t,r,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}}},{}],50:[function(e,t,r){"use strict";var n=e("crypto");t.exports={string:function(e){for(var t="abcdefghijklmnopqrstuvwxyz012345".length,r=n.randomBytes(e),o=[],i=0;i<e;i++)o.push("abcdefghijklmnopqrstuvwxyz012345".substr(r[i]%t,1));return o.join("")},number:function(e){return Math.floor(Math.random()*e)},numberString:function(e){var t=(""+(e-1)).length;return(new Array(t+1).join("0")+this.number(e)).slice(-t)}}},{crypto:43}],51:[function(e,t,r){(function(r){"use strict";var n=function(){};"production"!==r.env.NODE_ENV&&(n=e("debug")("sockjs-client:utils:transport")),t.exports=function(e){return{filterToEnabled:function(t,r){var o={main:[],facade:[]};return t?"string"==typeof t&&(t=[t]):t=[],e.forEach(function(e){e&&("websocket"!==e.transportName||!1!==r.websocket?t.length&&-1===t.indexOf(e.transportName)?n("not in whitelist",e.transportName):e.enabled(r)?(n("enabled",e.transportName),o.main.push(e),e.facadeTransport&&o.facade.push(e.facadeTransport)):n("disabled",e.transportName):n("disabled from server","websocket"))}),o}}}}).call(this,{env:{}})},{debug:55}],52:[function(e,t,r){(function(r){"use strict";var n=e("url-parse"),o=function(){};"production"!==r.env.NODE_ENV&&(o=e("debug")("sockjs-client:utils:url")),t.exports={getOrigin:function(e){if(!e)return null;var t=new n(e);if("file:"===t.protocol)return null;var r=t.port;return r||(r="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+r},isOriginEqual:function(e,t){var r=this.getOrigin(e)===this.getOrigin(t);return o("same",e,t,r),r},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var r=e.split("?");return r[0]+t+(r[1]?"?"+r[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)}}}).call(this,{env:{}})},{debug:55,"url-parse":61}],53:[function(e,t,r){t.exports="1.1.4"},{}],54:[function(e,t,r){function n(e){if(!((e=String(e)).length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*f;case"days":case"day":case"d":return r*u;case"hours":case"hour":case"hrs":case"hr":case"h":return r*l;case"minutes":case"minute":case"mins":case"min":case"m":return r*c;case"seconds":case"second":case"secs":case"sec":case"s":return r*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function o(e){return e>=u?Math.round(e/u)+"d":e>=l?Math.round(e/l)+"h":e>=c?Math.round(e/c)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return s(e,u,"day")||s(e,l,"hour")||s(e,c,"minute")||s(e,a,"second")||e+" ms"}function s(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var a=1e3,c=60*a,l=60*c,u=24*l,f=365.25*u;t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return n(e);if("number"===r&&!1===isNaN(e))return t.long?i(e):o(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],55:[function(e,t,r){(function(n){function o(){var e;try{e=r.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(r=t.exports=e("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,n)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=o,r.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(o())}).call(this,{env:{}})},{"./debug":56}],56:[function(e,t,r){function n(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return r.colors[Math.abs(n)%r.colors.length]}function o(e){function t(){if(t.enabled){var e=t,n=+new Date,o=n-(i||n);e.diff=o,e.prev=i,e.curr=n,i=n;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=r.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(t,n){if("%%"===t)return t;c++;var o=r.formatters[n];if("function"==typeof o){var i=s[c];t=o.call(e,i),s.splice(c,1),c--}return t}),r.formatArgs.call(e,s),(t.log||r.log||console.log.bind(console)).apply(e,s)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=n(e),"function"==typeof r.init&&r.init(t),t}(r=t.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,o=0;o<n;o++)t[o]&&("-"===(e=t[o].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")))},r.enabled=function(e){var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=e("ms"),r.names=[],r.skips=[],r.formatters={};var i},{ms:54}],57:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],58:[function(e,r,n){(function(e){(function(){function t(e,r){function n(e){if(n[e]!==g)return n[e];var t;if("bug-string-char-index"==e)t="a"!="a"[0];else if("json"==e)t=n("json-stringify")&&n("json-parse");else{var o,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var c=r.stringify,u="function"==typeof c&&y;if(u){(o=function(){return 1}).toJSON=o;try{u="0"===c(0)&&"0"===c(new i)&&'""'==c(new a)&&c(b)===g&&c(g)===g&&c()===g&&"1"===c(o)&&"[1]"==c([o])&&"[null]"==c([g])&&"null"==c(null)&&"[null,null,null]"==c([g,b,null])&&c({a:[o,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===c(null,o)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new l(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new l(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new l(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new l(-1))}catch(e){u=!1}}t=u}if("json-parse"==e){var f=r.parse;if("function"==typeof f)try{if(0===f("0")&&!f(!1)){var h=5==(o=f(s)).a.length&&1===o.a[0];if(h){try{h=!f('"\t"')}catch(e){}if(h)try{h=1!==f("01")}catch(e){}if(h)try{h=1!==f("1.")}catch(e){}}}}catch(e){h=!1}t=h}}return n[e]=!!t}e||(e=s.Object()),r||(r=s.Object());var i=e.Number||s.Number,a=e.String||s.String,c=e.Object||s.Object,l=e.Date||s.Date,u=e.SyntaxError||s.SyntaxError,f=e.TypeError||s.TypeError,h=e.Math||s.Math,p=e.JSON||s.JSON;"object"==typeof p&&p&&(r.stringify=p.stringify,r.parse=p.parse);var d,m,g,v=c.prototype,b=v.toString,y=new l(-0xc782b5b800cec);try{y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()}catch(e){}if(!n("json")){var w=n("bug-string-char-index");if(!y)var x=h.floor,E=[0,31,59,90,120,151,181,212,243,273,304,334],_=function(e,t){return E[t]+365*(e-1970)+x((e-1969+(t=+(t>1)))/4)-x((e-1901+t)/100)+x((e-1601+t)/400)};if((d=v.hasOwnProperty)||(d=function(e){var t,r={};return(r.__proto__=null,r.__proto__={toString:1},r).toString!=b?d=function(e){var t=this.__proto__,r=e in(this.__proto__=null,this);return this.__proto__=t,r}:(t=r.constructor,d=function(e){var r=(this.constructor||t).prototype;return e in this&&!(e in r&&this[e]===r[e])}),r=null,d.call(this,e)}),m=function(e,t){var r,n,i,s=0;(r=function(){this.valueOf=0}).prototype.valueOf=0,n=new r;for(i in n)d.call(n,i)&&s++;return r=n=null,s?m=2==s?function(e,t){var r,n={},o="[object Function]"==b.call(e);for(r in e)o&&"prototype"==r||d.call(n,r)||!(n[r]=1)||!d.call(e,r)||t(r)}:function(e,t){var r,n,o="[object Function]"==b.call(e);for(r in e)o&&"prototype"==r||!d.call(e,r)||(n="constructor"===r)||t(r);(n||d.call(e,r="constructor"))&&t(r)}:(n=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],m=function(e,t){var r,i,s="[object Function]"==b.call(e),a=!s&&"function"!=typeof e.constructor&&o[typeof e.hasOwnProperty]&&e.hasOwnProperty||d;for(r in e)s&&"prototype"==r||!a.call(e,r)||t(r);for(i=n.length;r=n[--i];a.call(e,r)&&t(r));}),m(e,t)},!n("json-stringify")){var S={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},A=function(e,t){return("000000"+(t||0)).slice(-e)},q=function(e){for(var t='"',r=0,n=e.length,o=!w||n>10,i=o&&(w?e.split(""):e);r<n;r++){var s=e.charCodeAt(r);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=S[s];break;default:if(s<32){t+="\\u00"+A(2,s.toString(16));break}t+=o?i[r]:e.charAt(r)}}return t+'"'},C=function(e,t,r,n,o,i,s){var a,c,l,u,h,p,v,y,w,E,S,N,j,k,O,T;try{a=t[e]}catch(e){}if("object"==typeof a&&a)if("[object Date]"!=(c=b.call(a))||d.call(a,"toJSON"))"function"==typeof a.toJSON&&("[object Number]"!=c&&"[object String]"!=c&&"[object Array]"!=c||d.call(a,"toJSON"))&&(a=a.toJSON(e));else if(a>-1/0&&a<1/0){if(_){for(h=x(a/864e5),l=x(h/365.2425)+1970-1;_(l+1,0)<=h;l++);for(u=x((h-_(l,0))/30.42);_(l,u+1)<=h;u++);h=1+h-_(l,u),v=x((p=(a%864e5+864e5)%864e5)/36e5)%24,y=x(p/6e4)%60,w=x(p/1e3)%60,E=p%1e3}else l=a.getUTCFullYear(),u=a.getUTCMonth(),h=a.getUTCDate(),v=a.getUTCHours(),y=a.getUTCMinutes(),w=a.getUTCSeconds(),E=a.getUTCMilliseconds();a=(l<=0||l>=1e4?(l<0?"-":"+")+A(6,l<0?-l:l):A(4,l))+"-"+A(2,u+1)+"-"+A(2,h)+"T"+A(2,v)+":"+A(2,y)+":"+A(2,w)+"."+A(3,E)+"Z"}else a=null;if(r&&(a=r.call(t,e,a)),null===a)return"null";if("[object Boolean]"==(c=b.call(a)))return""+a;if("[object Number]"==c)return a>-1/0&&a<1/0?""+a:"null";if("[object String]"==c)return q(""+a);if("object"==typeof a){for(k=s.length;k--;)if(s[k]===a)throw f();if(s.push(a),S=[],O=i,i+=o,"[object Array]"==c){for(j=0,k=a.length;j<k;j++)N=C(j,a,r,n,o,i,s),S.push(N===g?"null":N);T=S.length?o?"[\n"+i+S.join(",\n"+i)+"\n"+O+"]":"["+S.join(",")+"]":"[]"}else m(n||a,function(e){var t=C(e,a,r,n,o,i,s);t!==g&&S.push(q(e)+":"+(o?" ":"")+t)}),T=S.length?o?"{\n"+i+S.join(",\n"+i)+"\n"+O+"}":"{"+S.join(",")+"}":"{}";return s.pop(),T}};r.stringify=function(e,t,r){var n,i,s,a;if(o[typeof t]&&t)if("[object Function]"==(a=b.call(t)))i=t;else if("[object Array]"==a){s={};for(var c,l=0,u=t.length;l<u;c=t[l++],("[object String]"==(a=b.call(c))||"[object Number]"==a)&&(s[c]=1));}if(r)if("[object Number]"==(a=b.call(r))){if((r-=r%1)>0)for(n="",r>10&&(r=10);n.length<r;n+=" ");}else"[object String]"==a&&(n=r.length<=10?r:r.slice(0,10));return C("",(c={},c[""]=e,c),i,s,n,"",[])}}if(!n("json-parse")){var N,j,k=a.fromCharCode,O={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},T=function(){throw N=j=null,u()},L=function(){for(var e,t,r,n,o,i=j,s=i.length;N<s;)switch(o=i.charCodeAt(N)){case 9:case 10:case 13:case 32:N++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=w?i.charAt(N):i[N],N++,e;case 34:for(e="@",N++;N<s;)if((o=i.charCodeAt(N))<32)T();else if(92==o)switch(o=i.charCodeAt(++N)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=O[o],N++;break;case 117:for(t=++N,r=N+4;N<r;N++)(o=i.charCodeAt(N))>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||T();e+=k("0x"+i.slice(t,N));break;default:T()}else{if(34==o)break;for(o=i.charCodeAt(N),t=N;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++N);e+=i.slice(t,N)}if(34==i.charCodeAt(N))return N++,e;T();default:if(t=N,45==o&&(n=!0,o=i.charCodeAt(++N)),o>=48&&o<=57){for(48==o&&(o=i.charCodeAt(N+1))>=48&&o<=57&&T(),n=!1;N<s&&(o=i.charCodeAt(N))>=48&&o<=57;N++);if(46==i.charCodeAt(N)){for(r=++N;r<s&&(o=i.charCodeAt(r))>=48&&o<=57;r++);r==N&&T(),N=r}if(101==(o=i.charCodeAt(N))||69==o){for(43!=(o=i.charCodeAt(++N))&&45!=o||N++,r=N;r<s&&(o=i.charCodeAt(r))>=48&&o<=57;r++);r==N&&T(),N=r}return+i.slice(t,N)}if(n&&T(),"true"==i.slice(N,N+4))return N+=4,!0;if("false"==i.slice(N,N+5))return N+=5,!1;if("null"==i.slice(N,N+4))return N+=4,null;T()}return"$"},D=function(e){var t,r;if("$"==e&&T(),"string"==typeof e){if("@"==(w?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=L());r||(r=!0))r&&(","==e?"]"==(e=L())&&T():T()),","==e&&T(),t.push(D(e));return t}if("{"==e){for(t={};"}"!=(e=L());r||(r=!0))r&&(","==e?"}"==(e=L())&&T():T()),","!=e&&"string"==typeof e&&"@"==(w?e.charAt(0):e[0])&&":"==L()||T(),t[e.slice(1)]=D(L());return t}T()}return e},I=function(e,t,r){var n=R(e,t,r);n===g?delete e[t]:e[t]=n},R=function(e,t,r){var n,o=e[t];if("object"==typeof o&&o)if("[object Array]"==b.call(o))for(n=o.length;n--;)I(o,n,r);else m(o,function(e){I(o,e,r)});return r.call(e,t,o)};r.parse=function(e,t){var r,n;return N=0,j=""+e,r=D(L()),"$"!=L()&&T(),N=j=null,t&&"[object Function]"==b.call(t)?R((n={},n[""]=r,n),"",t):r}}}return r.runInContext=t,r}var o={function:!0,object:!0},i=o[typeof n]&&n&&!n.nodeType&&n,s=o[typeof window]&&window||this,a=i&&o[typeof r]&&r&&!r.nodeType&&"object"==typeof e&&e;if(!a||a.global!==a&&a.window!==a&&a.self!==a||(s=a),i)t(s,i);else{var c=s.JSON,l=s.JSON3,u=!1,f=t(s,s.JSON3={noConflict:function(){return u||(u=!0,s.JSON=c,s.JSON3=l,c=l=null),f}});s.JSON={parse:f.parse,stringify:f.stringify}}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],59:[function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;r.stringify=function(e,t){var r=[];"string"!=typeof(t=t||"")&&(t="?");for(var o in e)n.call(e,o)&&r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?t+r.join("&"):""},r.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,n={};t=r.exec(e);n[decodeURIComponent(t[1])]=decodeURIComponent(t[2]));return n}},{}],60:[function(e,t,r){"use strict";t.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},{}],61:[function(e,t,r){"use strict";function n(e){var t=l.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function o(e,t){for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(i=!0),r.splice(n,1),s--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);var l,f,h,p,d,m,g=u.slice(),v=typeof t,b=this,y=0;for("object"!==v&&"string"!==v&&(r=t,t=null),r&&"function"!=typeof r&&(r=c.parse),t=a(t),l=!(f=n(e||"")).protocol&&!f.slashes,b.slashes=f.slashes||l&&t.slashes,b.protocol=f.protocol||t.protocol||"",e=f.rest,f.slashes||(g[2]=[/(.*)/,"pathname"]);y<g.length;y++)h=(p=g[y])[0],m=p[1],h!==h?b[m]=e:"string"==typeof h?~(d=e.indexOf(h))&&("number"==typeof p[2]?(b[m]=e.slice(0,d),e=e.slice(d+p[2])):(b[m]=e.slice(d),e=e.slice(0,d))):(d=h.exec(e))&&(b[m]=d[1],e=e.slice(0,d.index)),b[m]=b[m]||(l&&p[3]?t[m]||"":""),p[4]&&(b[m]=b[m].toLowerCase());r&&(b.query=r(b.query)),l&&t.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==t.pathname)&&(b.pathname=o(b.pathname,t.pathname)),s(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(p=b.auth.split(":"),b.username=p[0]||"",b.password=p[1]||""),b.origin=b.protocol&&b.host&&"file:"!==b.protocol?b.protocol+"//"+b.host:"null",b.href=b.toString()}var s=e("requires-port"),a=e("./lolcation"),c=e("querystringify"),l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,u=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]];i.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||c.parse)(t)),n[e]=t;break;case"port":n[e]=t,s(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,/:\d+$/.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":n.pathname=t.length&&"/"!==t.charAt(0)?"/"+t:t;break;default:n[e]=t}for(var o=0;o<u.length;o++){var i=u[o];i[4]&&(n[i[1]]=n[i[1]].toLowerCase())}return n.origin=n.protocol&&n.host&&"file:"!==n.protocol?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=c.stringify);var t,r=this,n=r.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var o=n+(r.slashes?"//":"");return r.username&&(o+=r.username,r.password&&(o+=":"+r.password),o+="@"),o+=r.host+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(o+=r.hash),o}},i.extractProtocol=n,i.location=a,i.qs=c,t.exports=i},{"./lolcation":62,querystringify:59,"requires-port":60}],62:[function(e,r,n){(function(t){"use strict";var n,o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i={hash:1,query:1};r.exports=function(r){r=r||t.location||{},n=n||e("./");var s,a={},c=typeof r;if("blob:"===r.protocol)a=new n(unescape(r.pathname),{});else if("string"===c){a=new n(r,{});for(s in i)delete a[s]}else if("object"===c){for(s in r)s in i||(a[s]=r[s]);void 0===a.slashes&&(a.slashes=o.test(r.href))}return a}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./":61}]},{},[1])(1)})}).call(t,r(0))},function(e,t,r){"use strict";function n(e){var t=document.createElement("iframe");return t.id="webpack-dev-server-client-overlay",t.src="about:blank",t.style.position="fixed",t.style.left=0,t.style.top=0,t.style.right=0,t.style.bottom=0,t.style.width="100vw",t.style.height="100vh",t.style.border="none",t.style.zIndex=9999999999,t.onload=e,t}function o(e){var t=e.contentDocument.createElement("div");return t.id="webpack-dev-server-client-overlay-div",t.style.position="fixed",t.style.boxSizing="border-box",t.style.left=0,t.style.top=0,t.style.right=0,t.style.bottom=0,t.style.width="100vw",t.style.height="100vh",t.style.backgroundColor="rgba(0, 0, 0, 0.85)",t.style.color="#E8E8E8",t.style.fontFamily="Menlo, Consolas, monospace",t.style.fontSize="large",t.style.padding="2rem",t.style.lineHeight="1.2",t.style.whiteSpace="pre-wrap",t.style.overflow="auto",e.contentDocument.body.appendChild(t),t}function i(e){h?e(h):(p=e,f||(f=n(function(){h=o(f),p(h)}),document.body.appendChild(f)))}function s(e){i(function(t){t.innerHTML='<span style="color: #'+u.red+'">Failed to compile.</span><br><br>'+c(l.encode(e))})}function a(){h&&(document.body.removeChild(f),h=null,f=null,p=null)}var c=r(16),l=new(0,r(17).AllHtmlEntities),u={reset:["transparent","transparent"],black:"181818",red:"E36049",green:"B3CB74",yellow:"FFD080",blue:"7CAFC2",magenta:"7FACCA",cyan:"C3C2EF",lightgrey:"EBE7E3",darkgrey:"6D7891"};c.setColors(u);var f=null,h=null,p=null;t.clear=function(){a()},t.showMessage=function(e){s(e[0])}},function(e,t,r){"use strict";function n(e){if(!i.test(e))return e;var t=[],r=e.replace(/\033\[(\d+)*m/g,function(e,r){var n=c[r];if(n)return~t.indexOf(r)?(t.pop(),"</span>"):(t.push(r),"<"===n[0]?n:'<span style="'+n+';">');var o=l[r];return o?(t.pop(),o):""}),n=t.length;return n>0&&(r+=Array(n+1).join("</span>")),r}function o(e){c[0]="font-weight:normal;opacity:1;color:#"+e.reset[0]+";background:#"+e.reset[1],c[7]="color:#"+e.reset[1]+";background:#"+e.reset[0],c[90]="color:#"+e.darkgrey;for(var t in a){var r=e[a[t]]||"000";c[t]="color:#"+r,t=parseInt(t),c[(t+10).toString()]="background:#"+r}}e.exports=n;var i=/(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/,s={reset:["fff","000"],black:"000",red:"ff0000",green:"209805",yellow:"e8bf03",blue:"0000ff",magenta:"ff00ff",cyan:"00ffee",lightgrey:"f0f0f0",darkgrey:"888"},a={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"lightgrey"},c={1:"font-weight:bold",2:"opacity:0.5",3:"<i>",4:"<u>",8:"display:none",9:"<del>"},l={23:"</i>",24:"</u>",29:"</del>"};[0,21,22,27,28,39,49].forEach(function(e){l[e]="</span>"}),n.setColors=function(e){if("object"!=typeof e)throw new Error("`colors` parameter must be an Object.");var t={};for(var r in s){var n=e.hasOwnProperty(r)?e[r]:null;if(n){if("reset"===r){if("string"==typeof n&&(n=[n]),!Array.isArray(n)||0===n.length||n.some(function(e){return"string"!=typeof e}))throw new Error("The value of `"+r+"` property must be an Array and each item could only be a hex string, e.g.: FF0000");var i=s[r];n[0]||(n[0]=i[0]),1!==n.length&&n[1]||(n=[n[0]]).push(i[1]),n=n.slice(0,2)}else if("string"!=typeof n)throw new Error("The value of `"+r+"` property must be a hex string, e.g.: FF0000");t[r]=n}else t[r]=s[r]}o(t)},n.reset=function(){o(s)},n.tags={},Object.defineProperty?(Object.defineProperty(n.tags,"open",{get:function(){return c}}),Object.defineProperty(n.tags,"close",{get:function(){return l}})):(n.tags.open=c,n.tags.close=l),n.reset()},function(e,t,r){e.exports={XmlEntities:r(18),Html4Entities:r(19),Html5Entities:r(1),AllHtmlEntities:r(1)}},function(e,t){function r(){}var n={"&lt":"<","&gt":">","&quot":'"',"&apos":"'","&amp":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&amp;":"&"},o={60:"lt",62:"gt",34:"quot",39:"apos",38:"amp"},i={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","&":"&amp;"};r.prototype.encode=function(e){return e&&e.length?e.replace(/<|>|"|'|&/g,function(e){return i[e]}):""},r.encode=function(e){return(new r).encode(e)},r.prototype.decode=function(e){return e&&e.length?e.replace(/&#?[0-9a-zA-Z]+;?/g,function(e){if("#"===e.charAt(1)){var t="x"===e.charAt(2).toLowerCase()?parseInt(e.substr(3),16):parseInt(e.substr(2));return isNaN(t)||t<-32768||t>65535?"":String.fromCharCode(t)}return n[e]||e}):""},r.decode=function(e){return(new r).decode(e)},r.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var i=e.charCodeAt(n),s=o[i];s?(r+="&"+s+";",n++):(r+=i<32||i>126?"&#"+i+";":e.charAt(n),n++)}return r},r.encodeNonUTF=function(e){return(new r).encodeNonUTF(e)},r.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},r.encodeNonASCII=function(e){return(new r).encodeNonASCII(e)},e.exports=r},function(e,t){function r(){}for(var n=["apos","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","copy","ordf","laquo","not","shy","reg","macr","deg","plusmn","sup2","sup3","acute","micro","para","middot","cedil","sup1","ordm","raquo","frac14","frac12","frac34","iquest","Agrave","Aacute","Acirc","Atilde","Auml","Aring","Aelig","Ccedil","Egrave","Eacute","Ecirc","Euml","Igrave","Iacute","Icirc","Iuml","ETH","Ntilde","Ograve","Oacute","Ocirc","Otilde","Ouml","times","Oslash","Ugrave","Uacute","Ucirc","Uuml","Yacute","THORN","szlig","agrave","aacute","acirc","atilde","auml","aring","aelig","ccedil","egrave","eacute","ecirc","euml","igrave","iacute","icirc","iuml","eth","ntilde","ograve","oacute","ocirc","otilde","ouml","divide","oslash","ugrave","uacute","ucirc","uuml","yacute","thorn","yuml","quot","amp","lt","gt","OElig","oelig","Scaron","scaron","Yuml","circ","tilde","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","permil","lsaquo","rsaquo","euro","fnof","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","bull","hellip","prime","Prime","oline","frasl","weierp","image","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","part","exist","empty","nabla","isin","notin","ni","prod","sum","minus","lowast","radic","prop","infin","ang","and","or","cap","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sub","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams"],o=[39,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,34,38,60,62,338,339,352,353,376,710,732,8194,8195,8201,8204,8205,8206,8207,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8240,8249,8250,8364,402,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,977,978,982,8226,8230,8242,8243,8254,8260,8472,8465,8476,8482,8501,8592,8593,8594,8595,8596,8629,8656,8657,8658,8659,8660,8704,8706,8707,8709,8711,8712,8713,8715,8719,8721,8722,8727,8730,8733,8734,8736,8743,8744,8745,8746,8747,8756,8764,8773,8776,8800,8801,8804,8805,8834,8835,8836,8838,8839,8853,8855,8869,8901,8968,8969,8970,8971,9001,9002,9674,9824,9827,9829,9830],i={},s={},a=0,c=n.length;a<c;){var l=n[a],u=o[a];i[l]=String.fromCharCode(u),s[u]=l,a++}r.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,function(e,t){var r;if("#"===t.charAt(0)){var n="x"===t.charAt(1).toLowerCase()?parseInt(t.substr(2),16):parseInt(t.substr(1));isNaN(n)||n<-32768||n>65535||(r=String.fromCharCode(n))}else r=i[t];return r||e}):""},r.decode=function(e){return(new r).decode(e)},r.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=s[e.charCodeAt(n)];r+=o?"&"+o+";":e.charAt(n),n++}return r},r.encode=function(e){return(new r).encode(e)},r.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n),i=s[o];r+=i?"&"+i+";":o<32||o>126?"&#"+o+";":e.charAt(n),n++}return r},r.encodeNonUTF=function(e){return(new r).encodeNonUTF(e)},r.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},r.encodeNonASCII=function(e){return(new r).encodeNonASCII(e)},e.exports=r},function(e,t,r){function n(e){return r(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}var i={"./log":21};n.keys=function(){return Object.keys(i)},n.resolve=o,e.exports=n,n.id=20},function(e,t){function r(){}function n(e){return"info"===i&&"info"===e||["info","warning"].indexOf(i)>=0&&"warning"===e||["info","warning","error"].indexOf(i)>=0&&"error"===e}function o(e){return function(t,r){n(t)&&e(r)}}var i="info";e.exports=function(e,t){n(e)&&("info"===e?console.log(t):"warning"===e?console.warn(t):"error"===e&&console.error(t))};var s=console.group||r,a=console.groupCollapsed||r,c=console.groupEnd||r;e.exports.group=o(s),e.exports.groupCollapsed=o(a),e.exports.groupEnd=o(c),e.exports.setLogLevel=function(e){i=e}},function(e,t,r){var n=r(23);e.exports=new n},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,o,a,c,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(r=this._events[e],s(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(i(r))for(a=Array.prototype.slice.call(arguments,1),o=(l=r.slice()).length,c=0;c<o;c++)l[c].apply(this,a);return!0},r.prototype.addListener=function(e,t){var o;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),o||(o=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var o=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,o,s,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,o=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(a=s;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}}]); Kodo/kodo - Gogs: Go Git Service

3 次代码提交 (b2155e32296b6767e56989aafdc79b2e9d523db2)

作者 SHA1 备注 提交日期
  Brightcells 597ee33ba6 Pai2 => Kodo 7 年之前
  Brightcells a7b59d4389 Redis' set/setex/get => RedisExtensions' setjson/setexjson/getjson 8 年之前
  Brightcells 4f87058e1c Add patch_api 8 年之前