lightstreamer-jms-web-client
Version:
JavaScript library for the development of Lightstreamer JMS Extender clients running inside the web browser
129 lines (126 loc) • 265 kB
JavaScript
/*
LIGHTSTREAMER - www.lightstreamer.com
Lightstreamer JMS Extender Web Client
Version 3.0.1 build 191
Copyright (c) Lightstreamer Srl. All Rights Reserved.
Contains: LightstreamerClient, Subscription, SimpleLoggerProvider,
ConsoleAppender, LightstreamerJMS, BytesMessage, CompletionListener,
Connection, ConnectionFactory, ConnectionListener, Destination,
ExceptionListener, JMSConsumer, JMSContext, JMSContextListener,
JMSException, JMSProducer, MapMessage, Message,
MessageConsumer, MessageListener, MessageProducer, ObjectMessage,
Queue, QueueConnection, QueueConnectionFactory, QueueReceiver,
QueueSender, QueueSession, Session, TemporaryQueue,
TemporaryTopic, TextMessage, Topic, TopicConnection,
TopicConnectionFactory, TopicPublisher, TopicSession, TopicSubscriber
UMD
LIGHTSTREAMER - www.lightstreamer.com
Lightstreamer Web Client
Version 8.0.9 build 1811
Copyright (c) Lightstreamer Srl. All Rights Reserved.
Licensed under the Apache License, Version 2.0
See http://www.apache.org/licenses/LICENSE-2.0
Contains: LightstreamerClient, Subscription, ConnectionSharing, LogMessages,
ConsoleAppender, SimpleLoggerProvider, PromisePolyfill
@overview es6-promise - a tiny implementation of Promises/A+.
@copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
@license Licensed under MIT license
See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
@version 3.0.2
@private
*/
var lightstreamerJMSExports=function(){function C(){}function xb(a,b,c){this._callSuperConstructor(xb,[a,b,c])}function cb(a,b,c){this._callSuperConstructor(cb,[a,b,c])}function yb(a,b,c,d,e){this._callSuperConstructor(yb,[a,b,c,d,e])}function zb(){}function Ab(a,b,c){this._callSuperConstructor(Ab,[a,b,c])}function db(a,b,c){this._callSuperConstructor(db,[a,b,c])}function zc(a,b,c,d,e){this._callSuperConstructor(zc,[a,b,c,d,e])}function Ac(a,b,c,d){this._callSuperConstructor(Ac,[a,b,null,!1,!1,!1,
c]);this.h=d}function Kd(){}function Ld(){}function Md(){}function eb(){}function x(a,b){this.connection=a;this.i=b;this.h=!1;this.l=!0}function J(a){this.i=a;this.Ca={};this.h=a.hc(null);this.l=this.Ua=this.kb=this.type=null}function wa(a){this.h=a}function Nd(){}function ia(a,b,c){this.ma=a;this.Ba=b;this.hc=null!=c?c:!1;this.B=this.clientId=null;this.l=!1;this.open=!0;this.ca=!1;this.h=[];this.T={};this.ec={dataAdapterName:this.Ba,localClientId:null,localSessionGuid:"-",destinationType:"EXCEPTIONS"};
this.H=new hc("RAW",JSON.stringify(this.ec),["dataAdapterName","localSessionGuid","exceptionType","exceptionReason","exceptionErrorCode"]);this.H.setDataAdapter(this.Ba);this.H.setRequestedSnapshot("no");var d=this;this.H.addListener({onItemUpdate:function(e){if(null!=d.B)try{var f=e.getValue("localSessionGuid");if(null!=f){for(var k=!1,g=0;g<d.h.length;g++)if(d.h[g].Y==f){k=!0;break}if(!k)return}var l=e.getValue("exceptionType"),n=e.getValue("exceptionReason"),t=e.getValue("exceptionErrorCode");
e=null;switch(l){case "GENERIC_EXCEPTION":e=new V(n,t)}if(null!=e)try{d.B.onException(e)}catch(q){try{console.log("Connection: exception while forwarding asynchronous exception: "+q)}catch(H){}}}catch(q){try{console.log("Connection: exception while processing asynchronous exception: "+q)}catch(H){}}}});this.ma.subscribe(this.H);this.fc={dataAdapterName:this.Ba,localClientId:null,localSessionGuid:"-",destinationType:"OUTCOMES"};this.G=new hc("RAW",JSON.stringify(this.fc),"dataAdapterName localSessionGuid operationId operationOutcome exceptionType exceptionReason exceptionErrorCode".split(" "));
this.G.setDataAdapter(this.Ba);this.G.setRequestedSnapshot("no");this.G.addListener({onItemUpdate:function(e){try{var f=e.getValue("localSessionGuid");if(null!=f){for(var k=!1,g=0;g<d.h.length;g++)if(d.h[g].Y==f){k=!0;break}if(!k)return}var l=e.getValue("operationId"),n=e.getValue("operationOutcome"),t=e.getValue("exceptionType"),q=e.getValue("exceptionReason"),H=e.getValue("exceptionErrorCode"),F=d.T[l];if(null!=F){d.T[l]=null;try{null!=t?F.Hi(t,q,H):F.Xe(n)}catch(D){try{console.log("Connection: exception while forwarding operation outcome: "+
D)}catch(R){}}}}catch(D){try{console.log("Connection: exception while processing operation outcome: "+D)}catch(R){}}}});this.ma.subscribe(this.G)}function K(a,b,c){this.connection=a;this.l=(this.G=b)?"TRANSACTED":c;this.Y="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=16*Math.random()|0;return("x"==d?e:e&3|8).toString(16)});this.sb=null;this.B=[];this.open=!0;this.ca=!1;this.H=[];this.h=[]}function ic(a,b,c,d,e,f,k,g){this._callSuperConstructor(ic,[a,b,c,d,e,f,k]);this.h=
g}function sa(a,b,c,d,e,f,k){this.i=a;this.destination=b;this.rj=c;this.kk=d;this.el=e;this.$l=f;this.B=k;this.h=null;this.qd=[];this.open=!0;this.H={dataAdapterName:this.i.connection.Ba,localClientId:this.i.connection.clientId,localSessionGuid:this.i.Y,destinationType:this.destination.qg,destinationName:this.destination.Lc,subscriptionName:this.rj,durable:this.kk,noLocal:this.el,shared:this.$l,ackMode:this.i.l};null!=this.B&&(this.H.selector=encodeURIComponent(this.B));this.R=new hc("RAW",JSON.stringify(this.H),
"dataAdapterName destinationType destinationName replyDestinationType replyDestinationName messageRedelivered messageId messageKind type priority expiration deliveryMode correlationId messageProperties classFQN payload timestamp deliveryTime".split(" "));this.R.setDataAdapter(this.i.connection.Ba);this.R.setRequestedSnapshot("no");var g=this;this.R.addListener({onItemUpdate:function(l){try{var n=l.getValue("replyDestinationType"),t=l.getValue("replyDestinationName"),q=l.getValue("messageId"),H=l.getValue("messageKind"),
F="true"==l.getValue("messageRedelivered"),D=l.getValue("messageProperties"),R=l.getValue("classFQN"),w=l.getValue("payload"),Z=l.getValue("timestamp"),ma=l.getValue("type"),Ra=l.getValue("expiration"),Na=l.getValue("priority"),ja=l.getValue("correlationId"),Wa=l.getValue("deliveryMode");l.getValue("deliveryTime");l=null;switch(H){case "TEXT_MSG":l=new Xa(g.i);l.body=w;break;case "OBJECT_MSG":l=new Ia(g.i);l.body=JSON.parse(w);l.Nh=R;break;case "MAP_MSG":l=new Oa(g.i);l.body=JSON.parse(w);break;case "BYTES_MSG":l=
new Q(g.i),l.body=jc.at(w),l.h=!0}if(null!=l)if(l.pd=q,l.Ca=0<D.length?JSON.parse(D):{},l.destination=g.destination,l.l=g,l.timestamp=Z,l.oa=F,l.Jc=Wa,l.priority=Na,l.type=ma,l.T=Ra,l.kb=ja,null!=n&&("TOPIC"==n?l.Ua=new fb(t):"QUEUE"==n&&(l.Ua=new gb(t))),null!=g.h){try{g.h.onMessage(l)}catch(Ob){try{console.log("MessageConsumer: exception while forwarding message to the listener: "+Ob)}catch(nb){}}g.oa(l)}else g.qd.push(l)}catch(Ob){try{console.log("MessageConsumer: exception while processing message: "+
Ob)}catch(nb){}}}})}function fa(a,b,c,d,e){this.i=a;this.destination=b;this.Jc=c;this.l=0;this.priority=d;this.h=e;this.open=!0}function jc(){this.buffer=[]}function Bb(a,b){this.i=b;this._callSuperConstructor(Bb,[a])}function Cb(a,b){this.i=b;this._callSuperConstructor(Cb,[a])}function gb(a){this._callSuperConstructor(gb,["QUEUE",a])}function fb(a){this._callSuperConstructor(fb,["TOPIC",a])}function cd(a,b){this.qg=a;this.Lc=b}function Oa(a){this._callSuperConstructor(Oa,[a,"MAP_MSG"]);this.body=
{}}function Ia(a){this._callSuperConstructor(Ia,[a,"OBJECT_MSG"])}function Xa(a){this._callSuperConstructor(Xa,[a,"TEXT_MSG"])}function Od(){}function Q(a){this._callSuperConstructor(Q,[a,"BYTES_MSG"]);this.body=[];this.h=!1;this.position=0}function V(a,b){this.reason=a;this.h=b}function A(a,b){this.i=a;this.Zk=b;this.kb=this.T=this.type=this.priority=this.Jc=null;this.Ca={};this.timestamp=this.pd=this.l=this.destination=this.Ua=this.body=this.Nh=null;this.oa=!1}function Pd(){}function Qd(a,b){this.R=
a;this.Ss=b}function Rd(a){this.R=a;this.al=new Pb(null)}function Sd(a){this.R=a}function Pb(a){this.frequency=a}function Qb(a){this._callSuperConstructor(Qb);this.name=a}function Rb(a){this._callSuperConstructor(Rb);this.list=a;for(var b={},c=0;c<a.length;c++)b[a[c]]=c+1;this.Op=b;this.Hb=a.length}function dd(){this.cc=null;this.Hb=0}function xa(a,b,c,d,e){this.xu=b;this.wu=a;this.ir=d;this.Ga=c;this.De=e}function ob(a,b,c){this.Ff=a;this.Jo=b;this.Vi=c}function Db(a,b){this._callSuperConstructor(Db,
[a]);this.Un="remote";this.Nk(b,m.vh);this.Vx(b)}function hb(a,b){this.N=a;this.I=b;this.la=this.id=null;this.ta=Qe}function kc(a){this._callSuperConstructor(kc);this.ta=a;this.ij=null}function Td(a,b,c,d,e,f,k){this.va=new lc(a);this.va.Nf(this,!0);this.Qb=new aa(c);this.Qb.Nf(this,!0);this.Cb=new p(b);this.Cb.Nf(this,!0);this.Xk=null;this.W=new Ya(this,this.va,this.Qb,this.Cb);if(d&&d.ni())this.xc=d.ks(this,u.vb(this.X,this),f),a=this.xc.fi(),null!=a&&(this.channels=d.js(this,a),this.channels.addListener(this.W)),
this.id=this.xc.id;else{this.xc=null;do this.id="NS"+Ud++;while(Y.ii(this.id,"lsEngine"))}Y.sa(this.id,"lsEngine",this);this.v=new Bc(this,this.W,k);this.nn(e,m.Hm);this.va.og&&this.Sn()}function Bc(a,b,c){this.ja=Re++;ha.u()&&ha.g(h.resolve(732),this.ja);this.status=1;this.V=0;this.Yj=this.i=null;this.Pc="";this.Ja=a;this.ua=b;this.o=a.Cb;this.Xa=a.Qb;this.Za=a.Zd();this.Mb=new Vd(this.o,this.Za);this.Qv=new Cc(this.Za,b);W.Ue(this);this.Js();this.sg=null;this.ea=new Wd(this,a.Cb,this.Za,!1);this.xd=
new Xd(this.ea,this.ua,this.o);this.cb=c;this.cl=0}function Yd(a){this.gf=[];this.ro=!1;this.lsc={};this.lsc.LS_window=Y["_"+a];this.Nb=this.lsc.window=this.lsc.LS_window;this.Gm=this.Nb.LS_u;this.Ie=this.Nb.LS_w;this.Vf=this.Nb.LS_e;this.Fq=this.Nb.LS_svrname;this.Dq=this.Nb.LS_n;this.Fm=this.Nb.LS_s;this.Eq=this.Nb.LS_o;this.Wf=this.Nb.LS_l;this.Cq=this.Nb.LS_MPNREG;this.Bq=this.Nb.LS_MPNOK;this.Aq=this.Nb.LS_MPNDEL;this.ts=this.dt(this.lsc)}function Zd(a){this.Lg=a;this.vk=a.split(",")}function Xd(a,
b,c){this.active=!1;this.yi=0;this.yd={};this.Ce={};this.lq=0;this.ea=a;this.ua=b;this.af=c}function Sb(a,b,c,d,e,f,k){this._callSuperConstructor(Sb,[b]);this.Tl=d;this.Og=e;this.aj=f;this.j=c;this.Ac=a;this.$x=k}function $d(){this.j=this.request=this.Mc=this.Pa=null}function Wd(a,b,c,d){this.$k=this.Kk=this.Th=this.wi=this.dk=this.qd=this.Wa=this.nc=null;this.dh=this.nd=this.Ub=0;this.j=this.status=this.V=1;this.qh=0;this.L=null;this.Ps=!1;this.Ac=a;this.o=b;this.fa=null;this.Ml={};this.If(d);this.Bc()}
function Vd(a){this.Ui=0;this.bb=null;this.Fg=!1;this.o=a;this.i=null}function ya(a,b,c,d,e,f,k){this._callSuperConstructor(ya,arguments);this.fa=null;this.dc=1;this.Ef=null;this.hf=!1}function Sa(a,b,c,d,e,f,k){this._callSuperConstructor(Sa,arguments);this.Se=this.Bi=this.nc=this.Fa=this.Ln=null;this.If(f)}function ae(){this.Ci=!1}function za(a,b,c){this.Yk=a;this.Lr=b;this.on=c;this.Pi=-1}function ib(){this._callSuperConstructor(ib);this.Jb=null;this.Aa=ib}function Za(){this._callSuperConstructor(Za);
this.error=this.response=this.lc=this.sender=this.U=null;this.J=!1;this.j=0;this.LS_x=this.jv;this.Tc=null;this.Aa=Za}function mc(a){this.path=a;this.gg=S.wc();this.status=M.ia()&&(window.ActiveXObject||"undefined"!=typeof XMLHttpRequest)?2:-1;this.Hh=++Se;this.lb="LS_AJAXFRAME_"+this.Hh;this.Qk();this.Hr()}function pb(a){this._callSuperConstructor(pb);this.target=z.Pl(a);this.Fc=0;this.J=!1;this.ei=null;qb.$d(this.target,!0);this.Aa=pb}function Eb(a){this._callSuperConstructor(Eb);a&&(this.target=
z.Pl(a),qb.$d(a,!0));this.J=!1;this.Aa=Eb;this.ui=0}function Dc(){}function ed(){}function Tb(){this._callSuperConstructor(Tb)}function La(){this._callSuperConstructor(La);this.J=!1;this.Na=this.Jb=this.U=null;this.Qi=0;this.Aa=La}function Ec(){this.progress=0}function X(a,b,c,d,e,f,k,g){this.ja=Te++;B.u()&&B.g(h.resolve(522),"oid="+this.ja);this.Sj=u.vb(this.Gv,this);this.Rj=u.vb(this.sl,this);this.Qj=u.vb(this.rl,this);this.ba=a;this.Yb=b;this.Vb=0;this.j=1;this.Ka=0;this.La=100*S.wc(100);this.A=
c;this.O=d;this.Mb=c.Mb;this.o=c.o;this.Xa=c.Xa;this.$a=null;this.ea=c.ea;this.Za=c.Zd();this.Ko=this.Sf=this.ih=0;this.ue=this.vd=this.Wk=null;this.reset();this.gh=this.ri=this.ud=!1;e?(this.Ve=e.Ve,this.Vb=e.Vb,B.g(h.resolve(523),this.Vb),this.sessionId=e.sessionId,this.zd=e.zd,this.La=e.La,this.ih=e.ih,this.Ul=e.Ul,this.Lk=e.Lk,this.xb=new fd(k,e.xb)):(ba.assert(!k,"Recovery unexpected"),this.xb=new fd);this.cb=g;if(M.nb()){var l=this;this.vl=function(){0>=l.xb.jj(l.o.Mf)&&l.Qa("recovery.timeout.elapsed",
!0,!1);l.xa("online.again",0)};try{window.addEventListener("online",this.vl,!1)}catch(n){}}}function fd(){0==arguments.length?this.ms():(ba.assert(2==arguments.length,"Recovery error (1)"),this.os(arguments[0],arguments[1]));ba.assert(this.$t(),"Recovery error (2)")}function Fc(a,b,c,d){this._callSuperConstructor(Fc,[d]);this.$q=a;this.lr=c;this.i=b}function Ub(a){this.dy=a}function Ya(a,b,c,d){this.I=a;this.configuration=b;this.details=c;this.options=d;this.yb=0;this.Lb=!1;this.W={};this.jd=0;this.K=
{};this.sd={};this.Zr=u.fg(this.Bn,5E3,this);W.Hj(this);W.Ue(this)}function Gc(a,b,c,d,e,f,k){this._callSuperConstructor(Gc,[a,k]);this.zc=b;this.op=c;this.Ja=d;this.Qr=e;this.tg=f}function nc(a,b,c,d,e){this._callSuperConstructor(nc,[a,e]);this.zc=b;this.Ja=c;this.tg=d}function Hc(a,b,c,d,e){this._callSuperConstructor(Hc,[a,e]);this.zc=b;this.Ja=c;this.tg=d}function Vb(a,b){this.Rn=!1;this.af=a;this.kj=this.pt?this.af.bi:b?2*b:4E3}function Cc(a){this.Ks(a)}function be(a){this.Su=0;this.zb={};this.Be=
{};this.gt=1;this.wb={};this.vc={};this.ub=null;this.o=a;this.j=0}function ce(a){this.wf=-1;this.Vg={};this.Ni={};this.Wg={};this.Mi=0;this.$=a;this.Yg=new oc}function qa(){for(var a in{Oa:!0})this.Cj=a;this.Aa=qa}function jb(){}function gd(){}function Da(a,b,c,d,e,f){this.cx(a);this.ve(b);this.setData(c);this.dj(d);this.jh(e);this.kh(f)}function Fb(a){this.client=a;this.Lb=!1;this.yb=-1;this.Za=null;this.Un="local"}function aa(){this.fh=de;this.sessionId=this.Wp=this.Vp=this.password=this.nj=this.Fh=
null;this.Rf=hd;this._callSuperConstructor(aa,arguments);this.Aa="ConnectionDetails"}function p(){this.ck=4E6;this.ki=19E3;this.vf=0;this.Wc=-1;this.qe=0;this.vd=3E3;this.gj=2E3;this.Jf=4E3;this.Pk(this.Jf);this.Ok(this.Jf);this.$h=100;this.cm=!1;this.di=null;this.Jn=this.Vl=!1;this.Kf=0;this.lk=!1;this.dm=5E3;this.Eg=this.fj=null;this.ji=!1;this.Mf=15E3;this.Qh=this.vm=!0;this.bi=2E3;this.lm=4E3;this.ah={};this.Rf=id;this._callSuperConstructor(p,arguments);this.Aa="ConnectionOptions"}function ee(a){this.Ok(a)}
function fe(a){this.Pk(a)}function lc(a){this.og=!1;this.jd=0;this.So=Ue;this.Rf=jd;this._callSuperConstructor(lc,arguments);this.Aa="Configuration"}function pc(a){this.Aa="Bean";this.parent=null;this.pn=!1;a&&this.hs(a)}function Aa(a,b,c){this.sm=a;this.Kj=b;this.Mp=c||!1}function y(a,b,c,d,e){this.request=a;this.Cw=b;this.zp=d;this.Eh=c;this.re=e}function Ve(){return!1}function We(){return!0}function Xe(a,b,c){this.zl=this.Tp=this.Al=!1;this.Ug=0;this.Oi=!1;this.rs=c;this.wr=b;this.td=a}function na(a){this._callSuperConstructor(na);
this.ja=Ye++;ka.u()&&ka.g(h.resolve(504),this.ja);this.J=!1;this.hb=this.Li=this.fb=this.Yh=null;this.sc=this.Df=!1;this.hh=null;this.wl=!1;this.Nn=null;this.oj=a;this.Aa=na;this.ey=new Ub(this)}function Ze(a){a=0==a.indexOf("http://")?a.replace("http://","ws://"):a.replace("https://","wss://");if(Ic){var b="";(void 0).forEach(function(d){""!==b&&(b+="; ");b+=d.name+"="+d.value});var c={};0<b.length&&(c.headers={Cookie:b});return new Ic(a,kd,c)}if("undefined"!=typeof WebSocket)return new WebSocket(a,
kd);if("undefined"!=typeof MozWebSocket)return new MozWebSocket(a,kd);na.rg();return null}function Pa(){this._callSuperConstructor(Pa);this.ja=$e++;Ea.u()&&Ea.g(h.resolve(575),this.ja);this.J=!1;this.Jb=this.ga=this.lc=this.U=null;this.fm=!1;this.Aa=Pa}function af(a){return function(){u.ha(a)}}function Jc(a){return function(){u.ha(a)}}function ge(a){a&&a!=ld||(ld++,Kc=1)}function rb(a){this.Ma=[];this.keys={};this.Sd=a;this.Ku=0}function md(a,b){a=parseInt(a,10);if(isNaN(a))throw Error(b);return a}
function Ta(a){switch(a){case 1:return"No session";case 2:return"WS Streaming";case 3:return"prepare WS Streaming";case 4:return"WS Polling";case 5:return"prepare WS Polling";case 6:return"HTTP Streaming";case 7:return"prepare HTTP Streaming";case 8:return"HTTP Polling";case 9:return"prepare HTTP Polling";case 10:return"Shutting down"}}function he(a){var b="{",c;for(c in a)b+=c+"="+a[c]+" ";return b+"}"}function Wb(a,b){this.I=a;this.id=b}function ie(a,b,c){this.id=a;this.N=b;this.status=c}function Gb(){this._callSuperConstructor(Gb);
this.senderId=this.Id=null}function qc(){this._callSuperConstructor(qc);this.Vd={};this.senderId=null;this.Pv=1}function $a(a,b,c){this.B=a;this.target=c;this.id=bf++;this.buffer=[];this.ready=!1;this.h={};this.T=0;b&&this.pa(b)}function Xb(a,b){this.Nk(a,b)}function Hb(a,b,c){this._callSuperConstructor(Hb,[a,c]);this.Nk(b,c)}function sb(a,b){this._callSuperConstructor(sb);this.la=b;this.I=a;this.la.addListener(this)}function je(a){this.lb=a}function ke(a,b){var c=hb.mo();c.Xj(b,a);c.bh(b,a)}function kb(a,
b,c,d,e,f,k){this.N=b;this.Bu=e;this.Bl=c;this.pp=d;this.Dd=f;this.Ag=0;this.mg={};this.te=0;this.client=a;this.Nl=!1;this.hg=k||m.tq;this.Di=this.ok=null;this.Ei=!1}function cf(a){return{enableSharing:function(b,c,d,e,f){c==d&&"ABORT"==c?a.mk(null):a.mk(new df(b,c,d,e,f))},isMaster:function(){return a.xo()}}}function ef(){this.vg={ac:Pd,Ki:Pd}}function Yb(a,b,c){this.$e=a;this.connection=b;this.ma=c}"undefined"==typeof Promise&&function(){function a(r,v){Zb[nb]=r;Zb[nb+1]=v;nb+=2;2===nb&&ff()}function b(r){return"function"===
typeof r}function c(){return function(){process.nextTick(k)}}function d(){var r=0,v=new le(k),E=document.createTextNode("");v.observe(E,{characterData:!0});return function(){E.data=r=++r%2}}function e(){var r=new MessageChannel;r.port1.onmessage=k;return function(){r.port2.postMessage(0)}}function f(){return function(){setTimeout(k,1)}}function k(){for(var r=0;r<nb;r+=2)(0,Zb[r])(Zb[r+1]),Zb[r]=void 0,Zb[r+1]=void 0;nb=0}function g(){}function l(r,v,E,O){try{r.call(v,E,O)}catch(ea){return ea}}function n(r,
v,E){a(function(O){var ea=!1,ca=l(E,v,function(Ba){ea||(ea=!0,v!==Ba?q(O,Ba):F(O,Ba))},function(Ba){ea||(ea=!0,D(O,Ba))},"Settle: "+(O.jy||" unknown promise"));!ea&&ca&&(ea=!0,D(O,ca))},r)}function t(r,v){1===v.Va?F(r,v.ib):2===v.Va?D(r,v.ib):R(v,void 0,function(E){q(r,E)},function(E){D(r,E)})}function q(r,v){if(r===v)D(r,new TypeError("You cannot resolve a promise with itself"));else if("function"===typeof v||"object"===typeof v&&null!==v)if(v.constructor===r.constructor)t(r,v);else{try{var E=v.then}catch(O){Lc.error=
O,E=Lc}E===Lc?D(r,Lc.error):void 0===E?F(r,v):b(E)?n(r,v,E):F(r,v)}else F(r,v)}function H(r){r.Ej&&r.Ej(r.ib);w(r)}function F(r,v){void 0===r.Va&&(r.ib=v,r.Va=1,0!==r.Dh.length&&a(w,r))}function D(r,v){void 0===r.Va&&(r.Va=2,r.ib=v,a(H,r))}function R(r,v,E,O){var ea=r.Dh,ca=ea.length;r.Ej=null;ea[ca]=v;ea[ca+1]=E;ea[ca+2]=O;0===ca&&r.Va&&a(w,r)}function w(r){var v=r.Dh,E=r.Va;if(0!==v.length){for(var O,ea,ca=r.ib,Ba=0;Ba<v.length;Ba+=3)O=v[Ba],ea=v[Ba+E],O?ma(E,O,ea,ca):ea(ca);r.Dh.length=0}}function Z(){this.error=
null}function ma(r,v,E,O){var ea=b(E);if(ea){try{var ca=E(O)}catch(gf){nd.error=gf,ca=nd}if(ca===nd){var Ba=!0;var hf=ca.error;ca=null}else var me=!0;if(v===ca){D(v,new TypeError("A promises callback cannot return that same promise."));return}}else ca=O,me=!0;void 0===v.Va&&(ea&&me?q(v,ca):Ba?D(v,hf):1===r?F(v,ca):2===r&&D(v,ca))}function Ra(r,v){try{v(function(E){q(r,E)},function(E){D(r,E)})}catch(E){D(r,E)}}function Na(r,v){this.hr=r;this.promise=new r(g);this.nr(v)?(this.gr=v,this.Bh=this.length=
v.length,this.fr(),0===this.length?F(this.promise,this.ib):(this.length=this.length||0,this.er(),0===this.Bh&&F(this.promise,this.ib))):D(this.promise,this.pr())}function ja(r){this.fd=jf++;this.ib=this.Va=void 0;this.Dh=[];if(g!==r){if(!b(r))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof ja))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
Ra(this,r)}}var Wa;Array.isArray?Wa=Array.isArray:Wa=function(r){return"[object Array]"===Object.prototype.toString.call(r)};var Ob=Wa,nb=0;Wa=("undefined"!==typeof window?window:void 0)||{};var le=Wa.MutationObserver||Wa.WebKitMutationObserver;Wa="undefined"!==typeof process&&"[object process]"==={}.toString.call(process);var kf="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,Zb=Array(1E3);var ff=Wa?c():le?d():kf?e():f();var Lc=new Z,
nd=new Z;Na.prototype.nr=function(r){return Ob(r)};Na.prototype.pr=function(){return Error("Array Methods must be provided an Array")};Na.prototype.fr=function(){this.ib=Array(this.length)};Na.prototype.er=function(){for(var r=this.length,v=this.promise,E=this.gr,O=0;void 0===v.Va&&O<r;O++)this.dr(E[O],O)};Na.prototype.dr=function(r,v){var E=this.hr;"object"===typeof r&&null!==r?r.constructor===E&&void 0!==r.Va?(r.Ej=null,this.Fj(r.Va,v,r.ib)):this.qr(E.resolve(r),v):(this.Bh--,this.ib[v]=r)};Na.prototype.Fj=
function(r,v,E){var O=this.promise;void 0===O.Va&&(this.Bh--,2===r?D(O,E):this.ib[v]=E);0===this.Bh&&F(O,this.ib)};Na.prototype.qr=function(r,v){var E=this;R(r,void 0,function(O){E.Fj(1,v,O)},function(O){E.Fj(2,v,O)})};var jf=0;ja.all=function(r){return(new Na(this,r)).promise};ja.race=function(r){function v(Ba){q(O,Ba)}function E(Ba){D(O,Ba)}var O=new this(g);if(!Ob(r))return D(O,new TypeError("You must pass an array to race.")),O;for(var ea=r.length,ca=0;void 0===O.Va&&ca<ea;ca++)R(this.resolve(r[ca]),
void 0,v,E);return O};ja.resolve=function(r){if(r&&"object"===typeof r&&r.constructor===this)return r;var v=new this(g);q(v,r);return v};ja.reject=function(r){var v=new this(g);D(v,r);return v};ja.prototype={constructor:ja,then:function(r,v){var E=this.Va;if(1===E&&!r||2===E&&!v)return this;var O=new this.constructor(g),ea=this.ib;if(E){var ca=arguments[E-1];a(function(){ma(E,O,ca,ea)})}else R(this,O,r,v);return O},"catch":function(r){return this.then(null,r)}};(function(){if("undefined"!==typeof global)var r=
global;else if("undefined"!==typeof self)r=self;else try{r=Function("return this")()}catch(E){throw Error("polyfill failed because global object is unavailable in this environment");}var v=r.Promise;if(!v||"[object Promise]"!==Object.prototype.toString.call(v.resolve())||v.ny)ja.all=ja.all,ja.race=ja.race,ja.reject=ja.reject,ja.resolve=ja.resolve,ja.prototype.constructor=ja.prototype.constructor,ja.prototype.then=ja.prototype.then,r.Promise=ja})()}.call(window);var U=function(){function a(b){this.name=
"IllegalStateException";this.message=b}a.prototype={toString:function(){return["[",this.name,this.message,"]"].join("|")}};return a}(),M=function(){var a="undefined"!==typeof window&&"undefined"!==typeof navigator&&"undefined"!==typeof document,b="undefined"!==typeof importScripts,c="object"==typeof process&&(/node(\.exe)?$/.test(process.execPath)||process.node&&process.v8||process.versions&&process.versions.node&&process.versions.v8);if(a&&!document.getElementById)throw new U("Not supported browser");
var d={ia:function(){return a},nb:function(){return!c&&(a||b)},de:function(){return!a&&c},si:function(){return!a&&!c&&b},iu:function(){return!a&&!c&&!b},Mr:function(){if(!this.ia())throw new U("Trying to load a browser-only module on non-browser environment");}};d.isBrowserDocument=d.ia;d.isBrowser=d.nb;d.isNodeJS=d.de;d.isWebWorker=d.si;d.browserDocumentOrDie=d.Mr;return d}(),S=function(){var a=/^\s*([\s\S]*?)\s*$/,b=/,/g,c=/\./g,d={Ha:function(){return(new Date).getTime()},wc:function(e){return Math.round(Math.random()*
(e||1E3))},trim:function(e){return e.replace(a,"$1")},wt:function(e,f){if(e){if(!e.replace)return e;f?(e=e.replace(c,""),e=e.replace(b,".")):e=e.replace(b,"");return new Number(e)}return 0},isArray:function(e){return e&&e.join&&"function"==typeof e.join},Te:function(e,f,k){if(!M.ia())return!1;"undefined"!=typeof e.addEventListener?e.addEventListener(f,k,!1):"undefined"!=typeof e.attachEvent&&e.attachEvent("on"+f,k);return!0},Dp:function(e,f,k){if(!M.ia())return!1;"undefined"!=typeof e.removeEventListener?
e.removeEventListener(f,k,!1):"undefined"!=typeof e.detachEvent&&e.detachEvent("on"+f,k);return!0}};d.getTimeStamp=d.Ha;d.randomG=d.wc;d.trim=d.trim;d.getNumber=d.wt;d.isArray=d.isArray;d.addEvent=d.Te;d.removeEvent=d.Dp;return d}(),m=function(){return{Qt:!1,Pe:1E3,Pm:200,Sq:1E4,wq:1,wh:0,gy:2,xm:3,Om:4,wm:5,jc:"N",tq:200,Hm:"MAIN",xh:"wbridge",th:"fbridge",Oq:1,Nq:2,Fe:"1811",Em:"8.0.9",xq:"javascript",yq:"javascript_client",zq:"pcYgxn8m8%20feOojyA1U661o3g2.pz47Ag7s",Xf:!M.ia()||"http:"!=document.location.protocol&&
"https:"!=document.location.protocol?"file:":document.location.protocol,Pb:"lightstreamer.stream",Ne:"lightstreamer.protocol",kc:"lightstreamer.session",vj:"lightstreamer.requests",Sm:"lightstreamer.subscriptions",Iq:"lightstreamer.messages",pj:"lightstreamer.actions",Ob:"lightstreamer.sharing",fy:"lightstreamer.crosstab",hy:"lightstreamer.stats",Je:"lightstreamer.mpn",Md:"Lightstreamer_",tj:"lightstreamer",Bb:"UNORDERED_MESSAGES",ag:{length:-1,toString:function(){return"[UNCHANGED]"}},CONNECTING:"CONNECTING",
zm:"CONNECTED:",Qm:"STREAM-SENSING",Vm:"WS-STREAMING",uh:"HTTP-STREAMING",Rq:"STALLED",yh:"WS-POLLING",Ld:"HTTP-POLLING",He:"DISCONNECTED",xj:"DISCONNECTED:WILL-RETRY",Um:"DISCONNECTED:TRYING-RECOVERY",yj:"WS",Uf:"HTTP",Pq:"RAW",Bm:"DISTINCT",Tf:"COMMAND",Im:"MERGE",vh:"MASTER",Tm:"TLCP-2.1.0"}}(),oa=function(){function a(n){var t=f;return function(){null===t&&(t=-1<k.indexOf(n));return t}}function b(n){var t=f;return function(){if(null===t){t=!0;for(var q=0;q<n.length;q++)t=t&&n[q]()}return t}}function c(n,
t){var q=f,H=f;return function(F,D){null===q&&(H=(q=n())?t():null);return q?F&&H?!0===D?H<=F:!1===D?H>=F:H==F:!0:!1}}function d(n){var t=f;return function(){if(null===t){var q=n.exec(k);if(q&&2<=q.length)return q[1]}return null}}function e(n){return function(){return!n()}}var f=M.nb()?null:!1,k=M.nb()?navigator.userAgent.toLowerCase():null,g=f,l={Eo:a("rekonq"),Sk:a("webkit"),Do:a("playstation 3"),pi:c(a("chrome/"),d(/chrome\/([0-9]+)/g)),zo:function(){null===g&&(g=document.childNodes&&!document.all&&
!navigator.taintEnabled&&!navigator.h);return g},mu:c(a("konqueror"),d(/konqueror\/([0-9.]+)/g)),qf:function(n,t){return c(a("msie"),d(/msie\s([0-9]+)[.;]/g))(n,t)||c(a("rv:11.0"),function(){return"11"})(n,t)?!0:!1},Bo:a("edge"),Co:c(a("firefox"),d(/firefox\/(\d+\.?\d*)/)),ee:c(function(){return"undefined"!=typeof opera},function(){if(opera.version){var n=opera.version();n=n.replace(/[^0-9.]+/g,"");return parseInt(n)}return 7})};l.oi=b([a("android"),l.Sk,e(l.pi)]);l.nu=b([l.ee,a("opera mobi")]);l.Ao=
c(b([a("safari"),function(n){var t=f;return function(){if(null===t){t=!1;for(var q=0;q<n.length;q++)t=t||n[q]()}return t}}([a("ipad"),a("iphone"),a("ipod"),b([e(l.oi),e(l.pi),e(l.Eo)])])]),d(/version\/(\d+\.?\d*)/));l.isProbablyRekonq=l.Eo;l.isProbablyChrome=l.pi;l.isProbablyAWebkit=l.Sk;l.isProbablyPlaystation=l.Do;l.isProbablyAndroidBrowser=l.oi;l.isProbablyOperaMobile=l.nu;l.isProbablyApple=l.Ao;l.isProbablyAKhtml=l.zo;l.isProbablyKonqueror=l.mu;l.isProbablyIE=l.qf;l.isProbablyEdge=l.Bo;l.isProbablyFX=
l.Co;l.isProbablyOldOpera=l.ee;return l}(),oc=function(){function a(){this.data=[]}a.prototype={add:function(b){this.data.push(b)},remove:function(b){b=this.find(b);if(0>b)return!1;this.data.splice(b,1);return!0},contains:function(b){return 0<=this.find(b)},find:function(b){for(var c=0;c<this.data.length;c++)if(this.data[c]===b)return c;return-1},forEach:function(b){for(var c=0;c<this.data.length;c++)b(this.data[c])},Lj:function(){return[].concat(this.data)},Z:function(){this.data=[]}};a.prototype.add=
a.prototype.add;a.prototype.remove=a.prototype.remove;a.prototype.forEach=a.prototype.forEach;a.prototype.asArray=a.prototype.Lj;a.prototype.clean=a.prototype.Z;return a}(),W=function(){function a(q,H,F,D,R){return function(){q[H]||(q[F]=!0,D.forEach(function(w){try{if(w[R])w[R]();else w()}catch(Z){}}),"preunloading"!=H&&D.Z(),q[H]=!0,q[F]=!1)}}function b(q,H){setTimeout(function(){if(q[H])q[H]();else q()},0)}function c(q,H,F,D){setTimeout(function(){F?D?q.apply(F,D):q.apply(F):D?q.apply(null,D):
q()},H)}function d(){g=!0}var e=new oc,f=new oc,k=new oc,g=!1,l={Tg:"onloadDone",mp:"onloadInprogress",rh:"unloaded",rm:"unloading",tp:"preunloading"},n={},t;for(t in l)n[l[t]]=t;l={Tg:!1,mp:!1,rh:!1,rm:!1,tp:!1,wo:function(){return this.Tg},Ia:function(){return this.rh},Vk:function(){return this.rm},hn:function(q){this.ku()?f.add(q):b(q,"onloadEvent")},Ue:function(q){this.lu()?e.add(q):b(q,"unloadEvent")},Hj:function(q){k.add(q);this.tp&&b(q,"preUnloadEvent")},Fw:function(q){f.remove(q)},Wi:function(q){e.remove(q)},
Il:function(q){k.remove(q)},ku:function(){return!(this.Tg||this.mp)},lu:function(){return!(this.rh||this.rm)},Ir:function(){S.Te(window,"unload",this.cs);S.Te(window,"beforeunload",this.Kr);if(document&&"undefined"!=typeof document.readyState){if("COMPLETE"==document.readyState.toUpperCase()){this.Jh();return}c(this.Hn,1E3,this)}else if(this.vo()){this.Jh();return}if(!S.Te(window,"load",this.Ti))this.Jh();else if(oa.ee()){var q=!1;oa.ee(9,!1)&&(q=!0,S.Te(document,"DOMContentLoaded",d));c(this.Gn,
1E3,this,[q])}},Jh:function(){c(this.Ti,0)},Hn:function(){this.Tg||("COMPLETE"==document.readyState.toUpperCase()?this.Ti():c(this.Hn,1E3,this))},Gn:function(q){this.Tg||(g||!q&&this.vo()?this.Ti():c(this.Gn,1E3,this,[q]))},vo:function(){return"undefined"!=typeof document.getElementsByTagName&&"undefined"!=typeof document.getElementById&&(null!=document.getElementsByTagName("body")[0]||null!=document.body)}};l.Ti=a(l,n.onloadDone,n.onloadInprogress,f,"onloadEvent");l.cs=a(l,n.unloaded,n.unloading,
e,"unloadEvent");l.Kr=a(l,n.preunloading,n.preunloading,k,"preUnloadEvent");M.ia()?l.Ir():l.Jh();l.addOnloadHandler=l.hn;l.addUnloadHandler=l.Ue;l.addBeforeUnloadHandler=l.Hj;l.removeOnloadHandler=l.Fw;l.removeUnloadHandler=l.Wi;l.removeBeforeUnloadHandler=l.Il;l.isLoaded=l.wo;l.isUnloaded=l.Ia;l.isUnloading=l.Vk;return l}(),Y={rq:W,toString:function(){return"[Lightstreamer "+this.library+" client version "+this.version+" build "+this.build+"]"},sa:function(a,b,c,d){a=(d||"_")+a;this[a]||(this[a]=
{});this[a][b]=c;return"Lightstreamer."+a+"."+b},ii:function(a,b,c){a=(c||"_")+a;return this[a]&&this[a][b]},lo:function(a,b,c){a=(c||"_")+a;return this[a]?this[a][b]:null},Wj:function(a,b,c){a=(c||"_")+a;if(this[a]&&this[a][b]){delete this[a][b];for(var d in this[a])return;delete this[a]}},Xr:function(a,b){a=(b||"_")+a;this[a]&&delete this[a]},vi:{},Ar:function(a,b){var c=this.vi;c[a]||(c[a]=[]);c[a].push(b)},Hw:function(a,b){var c=this.vi[a];if(c){for(var d=0;d<c.length;d++)c[d]==b&&c.splice(d,
1);0==c.length&&delete c[a]}},Ht:function(a){return this.vi[a]&&(a=this.vi[a])&&0<a.length?a[0]:null}};M.ia()&&(window.OpenAjax&&window.OpenAjax.hub&&window.OpenAjax.hub.registerLibrary("Lightstreamer","http://www.lightstreamer.com/",Y.version),window.Lightstreamer=Y);Y.library=m.xq;Y.version=m.Em;Y.build=m.Fe;var u=function(){function a(){}function b(w,Z){return w.time===Z.time?w.yl-Z.yl:w.time-Z.time}function c(){D=!1;e()}function d(){if(t)clearInterval(t);else if(M.ia()&&"undefined"!=typeof postMessage){F=
function(){try{window.postMessage("Lightstreamer.run",H)}catch(Z){try{window.postMessage("Lightstreamer.run",H)}catch(ma){}}};var w=function(Z){("Lightstreamer.run"==Z.data&&"*"==H||Z.origin==H)&&c()};S.Te(window,"message",w);D||(D=!0,F());0==D&&(S.Dp(window,"message",w),F=a)}else M.de()&&"undefined"!=typeof process&&process.nextTick&&(F=function(){process.nextTick(c)});t=setInterval(e,50)}function e(){if(W.rh)clearInterval(t);else{var w=g;g=S.Ha();g<w&&(g=w);if(0<k.length)for(f&&(k.sort(b),f=!1);0<
k.length&&k[0].time<=g&&!W.rh;)w=k.shift(),w.jf&&(R.ha(w),w.step&&n.push(w));for(0>=k.length&&(q=0);0<n.length;)w=n.shift(),w.step&&(w.yl=q++,R.Gh(w,w.step,!0));g>=l&&(l=g+108E5,k=[].concat(k))}}var f=!1,k=[],g=S.Ha(),l=g+108E5,n=[],t=null,q=0,H=!M.ia()||"http:"!=document.location.protocol&&"https:"!=document.location.protocol?"*":document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""),F=a,D=!1,R={toString:function(){return["[","Executor",
50,k.length,"]"].join("|")},zt:function(){return k.length},vb:function(w,Z,ma){return{jf:w,context:Z||null,tc:ma||null,yl:q++}},Gh:function(w,Z,ma){w.step=ma?Z:null;w.time=g+parseInt(Z);if(isNaN(w.time))try{throw Error();}catch(Ra){throw w="Executor error for time: "+Z,Ra.stack&&(w+=" "+Ra.stack),w;}k.push(w);f=!0},fg:function(w,Z,ma,Ra){return this.D(w,Z,ma,Ra,!0)},ze:function(w){w&&(w.jf=null,w.step=null)},D:function(w,Z,ma,Ra,Na){w=this.vb(w,ma,Ra);this.Gh(w,Z,Na);0!=Z||D||(D=!0,F());return w},
Qo:function(w,Z,ma){w.tc[Z]=ma},Po:function(w,Z){w.tc=Z},qs:function(w,Z){w.time+=Z;f=!0},ha:function(w,Z){try{var ma=Z||w.tc;w.context?ma?w.jf.apply(w.context,ma):w.jf.apply(w.context):ma?w.jf.apply(null,ma):w.jf()}catch(Ra){}}};M.si()?setTimeout(d,1):d();R.getQueueLength=R.zt;R.packTask=R.vb;R.addPackedTimedTask=R.Gh;R.addRepetitiveTask=R.fg;R.stopRepetitiveTask=R.ze;R.addTimedTask=R.D;R.modifyTaskParam=R.Qo;R.modifyAllTaskParams=R.Po;R.delayTask=R.qs;R.executeTask=R.ha;return R}(),ne=function(){function a(d){this.Yl(d)}
function b(){return!1}var c={error:b,warn:b,info:b,debug:b,fatal:b,isDebugEnabled:b,isInfoEnabled:b,isWarnEnabled:b,isErrorEnabled:b,isFatalEnabled:b};a.prototype={Yl:function(d){this.h=d||c},T:function(d){this.G()&&(d+=this.l(arguments,1),this.fatal(d))},fatal:function(d,e){this.h.fatal(d,e)},G:function(){return!this.h.isFatalEnabled||this.h.isFatalEnabled()},m:function(d){this.B()&&(d+=this.l(arguments,1),this.error(d))},Ig:function(d,e){this.B()&&(e+=this.l(arguments,2),this.error(e,d))},error:function(d,
e){this.h.error(d,e)},B:function(){return!this.h.isErrorEnabled||this.h.isErrorEnabled()},Ta:function(d){this.Io()&&(d+=this.l(arguments,1),this.warn(d))},warn:function(d,e){this.h.warn(d,e)},Io:function(){return!this.h.isWarnEnabled||this.h.isWarnEnabled()},s:function(d){this.H()&&(d+=this.l(arguments,1),this.info(d))},info:function(d,e){this.h.info(d,e)},H:function(){return!this.h.isInfoEnabled||this.h.isInfoEnabled()},g:function(d){this.u()&&(d+=this.l(arguments,1),this.debug(d))},debug:function(d,
e){this.h.debug(d,e)},u:function(){return!this.h.isDebugEnabled||this.h.isDebugEnabled()},l:function(d,e){var f=" {";for(e=e?e:0;e<d.length;e++)try{var k=d[e];null===k?f+="NULL":0>k.length?f+="*":null!=k.charAt?f+=k:k.message?(f+=k.message,k.stack&&(f+="\n"+k.stack+"\n")):k[0]==k?f+=k:S.isArray(k)?(f+="(",f+=this.l(k),f+=")"):f+=k;f+=" "}catch(g){f+="??? "}return f+"}"}};a.prototype.debug=a.prototype.debug;a.prototype.isDebugLogEnabled=a.prototype.u;a.prototype.logDebug=a.prototype.g;a.prototype.info=
a.prototype.info;a.prototype.isInfoLogEnabled=a.prototype.H;a.prototype.logInfo=a.prototype.s;a.prototype.warn=a.prototype.warn;a.prototype.isWarnEnabled=a.prototype.isWarnEnabled;a.prototype.logWarn=a.prototype.Ta;a.prototype.error=a.prototype.error;a.prototype.isErrorEnabled=a.prototype.isErrorEnabled;a.prototype.logError=a.prototype.m;a.prototype.logErrorExc=a.prototype.Ig;a.prototype.fatal=a.prototype.fatal;a.prototype.isFatalEnabled=a.prototype.isFatalEnabled;a.prototype.logFatal=a.prototype.T;
return a}(),L=function(){function a(b){this.name="IllegalArgumentException";this.message=b}a.prototype={toString:function(){return["[",this.name,this.message,"]"].join("|")}};return a}(),h=function(){var a={},b=null,c={setLoggerProvider:function(d){if(d&&!d.getLogger)throw new L("The given object is not a LoggerProvider");b=d;for(var e in a)b?a[e].Yl(b.getLogger(e)):a[e].Yl(null)},F:function(d){a[d]||(a[d]=b?new ne(b.getLogger(d)):new ne);return a[d]},resolve:function(d){return d}};c.setLoggerProvider=
c.setLoggerProvider;c.getLoggerProxy=c.F;c.resolve=c.resolve;return c}(),z=function(){var a=/\./g,b=/-/g,c=1,d=1,e={yo:function(){return M.nb()?!1===navigator.onLine:!1},vn:function(){try{return"undefined"!=typeof localStorage&&null!==localStorage&&localStorage.getItem&&localStorage.setItem?(localStorage.setItem("__canUseLocalStorage_test__","true"),localStorage.removeItem("__canUseLocalStorage_test__"),!0):!1}catch(f){return!1}},Xd:function(){try{return document.domain}catch(f){return""}},Ik:function(){if(!M.ia())return!0;
try{return-1<document.location.host.indexOf("[")?!0:e.Xd()==document.location.hostname}catch(f){return!1}},oc:function(f){if("undefined"!=typeof f){if(!0===f||!1===f)return!0===f;if(null!=f){if("number"==typeof f||f instanceof Number)return Number(f);if(S.isArray(f)){for(var k=[],g=0;g<f.length;g++)k[g]=this.oc(f[g]);return k}if("string"==typeof f||f instanceof String)return String(f);if(-1===f.length)return m.ag;if(isNaN(f)&&"number"==typeof f)return NaN;k={};for(g in f)k[this.oc(g)]=this.oc(f[g]);
return k}}return null},ab:function(f,k){f=f||{};if(k)for(var g in k)f[g]=k[g];return f},Pl:function(f){return f.replace(a,"_").replace(b,"__")},be:function(f){var k={},g;for(g in f)k[f[g]]=g;return k},Ih:function(f){if(f&&!f.pop){for(var k=[],g=0;g<f.length;g++)k.push(f[g]);return k}return f},Rv:function(f){if(!f)return[];for(var k={Ut:0,next:function(){return f.charAt(this.Ut++)}},g=/^\s*Expires/i,l=[],n=k.next();n;){for(var t="",q="";n&&";"!=n&&","!=n;)q+=n,n=k.next();q=q.trim();t+=q;";"==n&&(t+=
"; ",n=k.next());for(;n&&","!=n;){for(q="";n&&";"!=n&&","!=n;)q+=n,n=k.next();if(q.match(g))for(console.assert(","==n),q+=n,n=k.next();n&&";"!=n&&","!=n;)q+=n,n=k.next();q=q.trim();t+=q;";"==n&&(t+="; ",n=k.next())}l.push(t);n=k.next()}return l},rd:function(){return c++},Tu:function(){return d++},defer:function(){var f,k,g=new Promise(function(l,n){f=l;k=n});g.resolve=f;g.reject=k;return g}};return e}(),N=function(){function a(c,d,e){if(d)return e?d.apply(c,e):d.apply(c)}var b={Inheritance:function(c,
d,e,f){for(var k in d.prototype)if(!c.prototype[k])c.prototype[k]=d.prototype[k];else if(f){a:{var g=void 0;var l=d.prototype;for(g in l)if(l[k]==l[g]&&k!=g)break a;g=null}if(g){if(c.prototype[g]&&c.prototype[g]!==c.prototype[k]&&d.prototype[g]!==d.prototype[g])throw new U("Can't solve alias collision, try to minify the classes again ("+g+", "+k+")");c.prototype[g]=c.prototype[k]}}e||(c.prototype._super_=d,c.prototype._callSuperConstructor=b._callSuperConstructor,c.prototype._callSuperMethod=b._callSuperMethod);
return c},_callSuperMethod:function(c,d,e){return a(this,c.prototype._super_.prototype[d],e)},_callSuperConstructor:function(c,d){a(this,c.prototype._super_,d)}};return b.Inheritance}(),Mc=function(){function a(){}function b(d,e,f){var k=new Number(d);if(isNaN(k))throw new L("The given value is not valid. Use a number");if(!f&&k!=Math.round(k))throw new L("The given value is not valid. Use an integer");if(e){if(0>d)throw new L("The given value is not valid. Use a positive number or 0");}else if(0>=
d)throw new L("The given value is not valid. Use a positive number");return k}function c(d,e){if(!0===d||!1===d||e&&!d)return!0===d;throw new L("The given value is not valid. Use true or false");}a.prototype.za=b;a.prototype.mc=c;a.prototype.checkPositiveNumber=b;a.prototype.checkBool=c;return a}();h.F(m.pj);h.F(m.Ob);pc.prototype={hi:function(a){return this.Rf[a]},da:function(a,b){var c=this.hi(a),d=this[c];this[c]=z.oc(b);this.parent&&this.pn&&this.We(a);d!=this[c]&&this.To(a)},P:function(a,b){var c=
this.hi(a);b!=this[c]&&(this[c]=b,this.We(a),this.To(a))},Nf:function(a,b){this.parent=a;this.pn=b},We:function(a){var b=this.hi(a);return this.parent&&this.parent.We&&!this.parent.We(this.Aa,a,z.oc(this[b]))?!1:!0},To:function(a){var b=this.hi(a);!this.parent||!this.parent.Vo||this.So&&this.So[b]||this.parent.Vo(a,this)},hs:function(a){var b=this.Rf,c;for(c in b)this.da(c,a[b[c]])},xk:function(a){for(var b in this.Rf)a(b,this[this.Rf[b]])}};N(pc,Mc,!1,!0);var Ue={},jd={og:"connectionRequested",jd:"clientsCount"};
jd=z.be(jd);lc.prototype={};N(lc,pc);var Nc=h.F(m.kc);fe.prototype={Kp:function(a){this.Pk(a);Nc.u()&&Nc.debug("Reset currentRetryDelay: "+this.Ic)},to:function(){9<=this.Ol&&this.Ic<this.xi&&(this.Ic*=2,this.Ic>this.xi&&(this.Ic=this.xi),Nc.u()&&Nc.debug("Increase currentRetryDelay: "+this.Ic));this.Ol++},Pk:function(a){this.Ou=this.Ic=a;this.xi=Math.max(6E4,a);this.Ol=0}};var $b=h.F(m.kc);ee.prototype={Ip:function(a){this.Ok(a);$b.u()&&$b.debug("Reset currentConnectTimeout: "+this.Db)},Mk:function(){9<=
this.ak&&this.Db<this.Kg&&(this.Db*=2,this.Db>this.Kg&&(this.Db=this.Kg),$b.u()&&$b.debug("Increase currentConnectTimeout: "+this.Db));this.ak++},Xt:function(){this.Db=this.Kg;$b.u()&&$b.debug("Increase currentConnectTimeout to max: "+this.Db)},Ok:function(a){this.Nu=this.Db=a;this.Kg=Math.max(6E4,a);this.ak=0}};var Ib={};Ib[m.uh]=!0;Ib[m.yh]=!0;Ib[m.Ld]=!0;Ib[m.Vm]=!0;Ib[m.yj]=!0;Ib[m.Uf]=!0;var id={ck:"contentLength",ki:"idleTimeout",vf:"keepaliveInterval",Wc:"requestedMaxBandwidth",zw:"realMaxBandwidth",
qe:"pollingInterval",vd:"reconnectTimeout",gj:"stalledTimeout",Jf:"retryDelay",$h:"firstRetryMaxDelay",cm:"slowingEnabled",di:"forcedTransport",Vl:"serverInstanceAddressIgnored",Jn:"cookieHandlingRequired",Kf:"reverseHeartbeatInterval",lk:"earlyWSOpenEnabled",Mf:"sessionRecoveryTimeout",dm:"spinFixTimeout",fj:"spinFixEnabled",vm:"xDomainStreamingEnabled",Qh:"corsXHREnabled",bi:"forceBindTimeout",lm:"switchCheckTimeout",Eg:"httpExtraHeaders",ji:"httpExtraHeadersOnSessionCreationOnly",ah:"remoteAdapterStatusObserver",
Ic:"currentRetryDelay",Ou:"minRetryDelay",xi:"maxRetryDelay",Ol:"retryAttempt",Db:"currentConnectTimeout",Nu:"minConnectTimeout",Kg:"maxConnectTimeout",ak:"connectAttempt"};id=z.be(id);p.prototype={setContentLength:function(a){this.P("contentLength",this.za(a))},getContentLength:function(){return this.ck},setIdleTimeout:function(a){this.P("idleTimeout",this.za(a,!0))},getIdleTimeout:function(){return this.ki},setKeepaliveInterval:function(a){this.P("keepaliveInterval",this.za(a,!0))},getKeepaliveInterval:function(){return this.vf},
gx:function(a){"unlimited"==(new String(a)).toLowerCase()?a=0:a=this.za(a,!1,!0);this.P("requestedMaxBandwidth",a)},Gt:function(){return 0>=this.Wc?"unlimited":this.Wc},At:function(){return this.zw},setPollingInterval:function(a){this.P("pollingInterval",this.za(a,!0))},getPollingInterval:function(){return this.qe},setReconnectTimeout:function(a){this.P("reconnectTimeout",this.za(a))},getReconnectTimeout:function(){return this.vd},setStalledTimeout:function(a){this.P("stalledTimeout",this.za(a))},
getStalledTimeout:function(){return this.gj},setConnectTimeout:function(){},getConnectTimeout:function(){return String(this.getRetryDelay())},setCurrentConnectTimeout:function(){},getCurrentConnectTimeout:function(){return this.Db},setRetryDelay:function(a){a=this.za(a);this.P("retryDelay",a);this.Kp(a);this.Ip(a)},getRetryDelay:function(){return this.Jf},setFirstRetryMaxDelay:function(a){this.P("firstRetryMaxDelay",this.za(a))},getFirstRetryMaxDelay:function(){return this.$h},setSlowingEnabled:function(a){this.P("slowingEnabled",
this.mc(a))},isSlowingEnabled:function(){return this.cm},setForcedTransport:function(a){if(null!==a&&!Ib[a])throw new L("The given value is not valid. Use one of: HTTP-STREAMING, HTTP-POLLING, WS-STREAMING, WS-POLLING, WS, HTTP or null");this.P("forcedTransport",a)},getForcedTransport:function(){return this.di},setServerInstanceAddressIgnored:function(a){this.P("serverInstanceAddressIgnored",this.mc(a))},isServerInstanceAddressIgnored:function(){return this.Vl},setCookieHandlingRequired:function(a){this.P("cookieHandlingRequired",
this.mc(a))},isCookieHandlingRequired:function(){return this.Jn},setEarlyWSOpenEnabled:function(a){this.P("earlyWSOpenEnabled",this.mc(a))},isEarlyWSOpenEnabled:function(){return this.lk},setReverseHeartbeatInterval:function(a){this.P("reverseHeartbeatInterval",this.za(a,!0))},getReverseHeartbeatInterval:function(){return this.Kf},setHttpExtraHeaders:function(a){if(a){var b="",c;for(c in a)b+=c+"\n"+a[c]+"\n";this.P("httpExtraHeaders",b)}else this.P("httpExtraHeaders",null)},getHttpExtraHeaders:function(){if(!this.Eg)return this.Eg;
for(var a={},b=this.Eg.split("\n"),c=0;c<b.length-1;c+=2)a[b[c]]=b[c+1];return a},setHttpExtraHeadersOnSessionCreationOnly:function(a){this.P("httpExtraHeadersOnSessionCreationOnly",this.mc(a))},isHttpExtraHeadersOnSessionCreationOnly:function(){return this.ji},setSessionRecoveryTimeout:function(a){this.P("sessionRecoveryTimeout",this.za(a,!0))},getSessionRecoveryTimeout:function(){return this.Mf},Dg:function(a){return this.Eg?a?!0:!this.ji:!1},wg:function(a){return!a&&this.ji?null:this.getHttpExtraHeaders()},
ox:function(a){this.P("xDomainStreamingEnabled",this.mc(a))},vu:function(){return this.vm},$w:function(a){this.P("corsXHREnabled",this.mc(a))},du:function(){return this.Qh},bx:function(a){this.P("forceBindTimeout",this.za(a))},qt:function(){return this.bi},nx:function(a){this.P("switchCheckTimeout",this.za(a))},Kt:function(){return this.lm},mx:function(a){this.P("spinFixTimeout",this.za(a))},Jt:function(){return this.dm},lx:function(a){this.P("spinFixTimeout",null===this.iy?null:this.mc(a))},It:function(){return this.fj},
Zt:function(a,b,c,d){this.ah={Mu:a,Ba:b,By:c,Zg:d}}};p.prototype.setContentLength=p.prototype.setContentLength;p.prototype.getContentLength=p.prototype.getContentLength;p.prototype.setIdleTimeout=p.prototype.setIdleTimeout;p.prototype.getIdleTimeout=p.prototype.getIdleTimeout;p.prototype.setKeepaliveInterval=p.prototype.setKeepaliveInterval;p.prototype.getKeepaliveInterval=p.prototype.getKeepaliveInterval;p.prototype.setRequestedMaxBandwidth=p.prototype.gx;p.prototype.getRequestedMaxBandwidth=p.prototype.Gt;
p.prototype.getRealMaxBandwidth=p.prototype.At;p.prototype.setPollingInterval=p.prototype.setPollingInterval;p.prototype.getPollingInterval=p.prototype.getPollingInterval;p.prototype.setReconnectTimeout=p.prototype.setReconnectTimeout;p.prototype.getReconnectTimeout=p.prototype.getReconnectTimeout;p.prototype.setStalledTimeout=p.prototype.setStalledTimeout;p.prototype.getStalledTimeout=p.prototype.getStalledTimeout;p.prototype.setConnectTimeout=p.prototype.setConnectTimeout;p.prototype.getConnectTimeout=
p.prototype.getConnectTimeout;p.prototype.setCurrentConnectTimeout=p.prototype.setCurrentConnectTimeout;p.prototype.getCurrentConnectTimeout=p.prototype.getCurrentConnectTimeout;p.prototype.setRetryDelay=p.prototype.setRetryDelay;p.prototype.getRetryDelay=p.prototype.getRetryDelay;p.prototype.setFirstRetryMaxDelay=p.prototype.setFirstRetryMaxDelay;p.prototype.getFirstRetryMaxDelay=p.prototype.getFirstRetryMaxDelay;p.prototype.setSlowingEnabled=p.prototype.setSlowingEnabled;p.prototype.isSlowingEnabled=
p.prototype.isSlowingEnabled;p.prototype.setForcedTransport=p.prototype.setForcedTransport;p.prototype.getForcedTransport=p.prototype.getForcedTransport;p.prototype.setServerInstanceAddressIgnored=p.prototype.setServerInstanceAddressIgnored;p.prototype.isServerInstanceAddressIgnored=p.prototype.isServerInstanceAddressIgnored;p.prototype.setCookieHandlingRequired=p.prototype.setCookieHandlingRequired;p.prototype.isCookieHandlingRequired=p.prototype.isCookieHandlingRequired;p.prototype.setEarlyWSOpenEnabled=
p.prototype.setEarlyWSOpenEnabled;p.prototype.isEarlyWSOpenEnabled=p.prototype.isEarlyWSOpenEnabled;p.prototype.setReverseHeartbeatInterval=p.prototype.setReverseHeartbeatInterval;p.prototype.getReverseHeartbeatInterval=p.prototype.getReverseHeartbeatInterval;p.prototype.setHttpExtraHeaders=p.prototype.setHttpExtraHeaders;p.prototype.getHttpExtraHeaders=p.prototype.getHttpExtraHeaders;p.prototype.setHttpExtraHeadersOnSessionCreationOnly=p.prototype.setHttpExtraHeadersOnSessionCreationOnly;p.prototype.isHttpExtraHeadersOnSessionCreationOnly=
p.prototype.isHttpExtraHeadersOnSessionCreationOnly;p.prototype.setSessionRecoveryTimeout=p.prototype.setSessionRecoveryTimeout;p.prototype.getSessionRecoveryTimeout=p.prototype.getSessionRecoveryTimeout;p.prototype.setXDomainStreamingEnabled=p.prototype.ox;p.prototype.isXDomainStreamingEnabled=p.prototype.vu;p.prototype.setCorsXHREnabled=p.prototype.$w;p.prototype.isCorsXHREnabled=p.prototype.du;p.prototype.setForceBindTimeout=p.prototype.bx;p.prototype.getForceBindTimeout=p.prototype.qt;p.prototype.setSwitchCheckTimeout=
p.prototype.nx;p.prototype.getSwitchCheckTimeout=p.prototype.Kt;p.prototype.setSpinFixTimeout=p.prototype.mx;p.prototype.getSpinFixTimeout=p.prototype.Jt;p.prototype.setSpinFixEnabled=p.prototype.lx;p.prototype.getSpinFixEnabled=p.prototype.It;p.prototype.setRetryTimeout=p.prototype.setRetryDelay;p.prototype.getRetryTimeout=p.prototype.getRetryDelay;p.prototype.setIdleMillis=p.prototype.setIdleTimeout;p.prototype.getIdleMillis=p.prototype.getIdleTimeout;p.prototype.setKeepaliveMillis=p.prototype.setKeepaliveInterval;
p.prototype.getKeepaliveMillis=p.prototype.getKeepaliveInterval;p.prototype.setPollingMillis=p.prototype.setPollingInterval;p.prototype.getPollingMillis=p.prototype.getPollingInterval;p.prototype.setReverseHeartbeatMillis=p.prototype.setReverseHeartbeatInterval;p.prototype.getReverseHeartbeatMillis=p.prototype.getReverseHeartbeatInterval;N(p,pc);N(p,fe,!0);N(p,ee,!0);var G=function(){var a=h.F("weswit.test"),b=0,c={},d={VOID:c,ot:function(){return b},ds:function(e,f,k){if(e.length!=f.length)return this.Wb(),
a.m(h.resolve(444),e,f),!1;if(k)for(g=0;g<e.length;g++){if(e[g]!=f[g])return a.m(h.resolve(447),e[g],f[g]),this.Wb(),!1}else{k={};for(var g=0;g<e.length;g++)k[e[g]]=1;for(g=0;g<f.length;g++)if(k[f[g]])k[f[g]]++;else return a.m(h.resolve(445),f[g]),this.Wb(),!1;for(g in k)if(1==k[g])return a.m(h.resolve(446),k[g]),this.Wb(),!1}return!0},Hd:function(e,f,k,g,l){return this.verify(e,f,k,g,!1,l)},Wx:function(e,f,k){return this.verify(e,f,k,null,!0)},Xx:function(e){return null===e?(this.Wb(),a.m(h.resolve(448),
e),!1):!0},qa:function(e,f,k){if(!0===k)k=e==