C)}}};g.prototype._autoreconnect_reset_timer=function(){this._retry_timer&&clearTimeout(this._retry_timer);this._retry_timer=null};g.prototype._autoreconnect_reset=function(){this._autoreconnect_reset_timer();this._retry_count=0;this._retry_delay=this._initial_retry_delay;this._is_retrying=!1};g.prototype._autoreconnect_advance=function(){this._retry_delay_jitter&&(this._retry_delay=b.rand_normal(this._retry_delay,this._retry_delay*this._retry_delay_jitter));this._retry_delay>this._max_retry_delay&& function(a){this.join()._report(a)};k.prototype._unreport=function(){this.join()._unreport()};x(y,p);x(z,I);I.prototype._state=1;I.prototype.fold=function(a,b,c,e){if("function"!==typeof a)e.become(this);else{d.enterContext(this);try{a.call(c,b,this.value,e)}catch(ha){e.become(new Q(ha))}d.exitContext()}};I.prototype.when=function(a){Y(a.fulfilled,this,a.receiver,a.resolver)};var pa=0;x(z,Q);Q.prototype._state=-1;Q.prototype.fold=function(a,b,c,d){d.become(this)};Q.prototype.when=function(a){"function"=== b){this.args=a||[];this.kwargs=b||{}},C=function(a,b,c){this.error=a;this.args=b||[];this.kwargs=c||{}},q=function(a,b,c,d,e){this.topic=a;this.handler=b;this.options=c||{};this.session=d;this.id=e;this.active=!0;this._on_unsubscribe=d._defer();this.on_unsubscribe=this._on_unsubscribe.promise.then?this._on_unsubscribe.promise:this._on_unsubscribe};q.prototype.unsubscribe=function(){return this.session.unsubscribe(this)};var u=function(a,b,c,d,e){this.procedure=a;this.endpoint=b;this.options=c||{}; {count:this._retry_count,delay:this._retry_delay,will_retry:!0}:{count:null,delay:null,will_retry:!1};this._retry_delay_growth&&(this._retry_delay*=this._retry_delay_growth);return a};g.prototype.open=function(){function d(){try{c._transport=c._create_transport()}catch(r){b.handle_error(c._options.on_internal_error,r)}if(c._transport)c._session=new a.Session(c._transport, }function f(a){return a}return function(b){function d(a,b){return function(c){return(b===Error||null!=b&&b.prototype instanceof Error?c instanceof b:b(c))?a.call(this,c):l(c)}}function c(a,b,c,d){a=a.call(b);return"object"!==typeof a&&"function"!==typeof a||null===a?c(d):g(a,c,d)}function g(a,b,c){return h(a).then(function(){return b(c)})}var h=b.resolve,l=b.reject,q=b.prototype["catch"];b.prototype.done=function(a,b){this._handler.visit(this._handler.receiver,a,b)};b.prototype["catch"]=b.prototype.otherwise=
h.Subscription=q;h.Registration=u;h.Publication=w}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./log.js":7,"./util.js":20,when:119,"when/function":95}],18:[function(g,l,h){function a(a){b.assert(void 0!==a.url,"options.url missing");b.assert("string"===typeof a.url,"options.url must be a string");this._options=a}g("when");var b=g("../util.js"),f=g("../log.js"),d=g("../serializer.js");a.prototype.type="longpoll";a.prototype.create=
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var g=$jscomp.global.Symbol.iterator;g||(g=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[g]&&$jscomp.defineProperty(Array.prototype,g,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}}; !b.writing););null===c&&(b.lastBufferedRequest=null)}b.bufferedRequest=c;b.bufferProcessing=!1}function u(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function w(a,b){a._final(function(c){b.pendingcb--;c&&a.emit("error",c);b.prefinished=!0;a.emit("prefinish");z(a,b)})}function z(a,b){var c=u(b);c&&(b.prefinished||b.finalCalled||("function"===typeof a._final? return this._process()},finalize:function(a){a&&this._append(a);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(a){return{encrypt:function(b,c,d){return("string"==typeof c?y:n).encrypt(a,b,c,d)},decrypt:function(b,c,d){return("string"==typeof c?y:n).decrypt(a,b,c,d)}}}}()});f.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var q=a.mode={},u=f.BlockCipherMode=d.extend({createEncryptor:function(a, "getUint32",{value:m(a.Uint32Array)});Object.defineProperty(b.prototype,"getInt32",{value:m(a.Int32Array)});Object.defineProperty(b.prototype,"getFloat32",{value:m(a.Float32Array)});Object.defineProperty(b.prototype,"getFloat64",{value:m(a.Float64Array)});Object.defineProperty(b.prototype,"setUint8",{value:t(a.Uint8Array)});Object.defineProperty(b.prototype,"setInt8",{value:t(a.Int8Array)});Object.defineProperty(b.prototype,"setUint16",{value:t(a.Uint16Array)});Object.defineProperty(b.prototype,"setInt16", b,c,d){a=+a;b>>>=0;c>>>=0;d||k(this,a,b,c,Math.pow(2,8*c)-1,0);d=1;var e=0;for(this[b]=a&255;++e .