Last active
April 3, 2018 14:08
-
-
Save indatawetrust/d9f61d9eda291045ecf7c106ce560b4c to your computer and use it in GitHub Desktop.
Lightstreamer web client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* LIGHTSTREAMER - www.lightstreamer.com | |
* Lightstreamer Web Client | |
* Version 7.1.2 build 1749 | |
* Copyright (c) Lightstreamer Srl. All Rights Reserved. | |
* Contains: LightstreamerClient, Subscription, StaticGrid, Promise | |
* Globals | |
*/ | |
(function(){function define(a,c,e){define.a[a]={e:c,d:e}}define.a={};define.b=function(a,c,e){for(var g=[],f=0;f<a.length;f++){var d=define.a[a[f]];if(!d)throw"All the modules must already be 'defined' Async load not supported: use a full-featured AMD loader like requirejs";d.c||define.b(d.e,d.d,a[f]);g.push(d.c)}a=c.apply(null,g);if(e)define.a[e].c=a};function require(a,c){define.b(a,c,null)};define("IllegalStateException",[],function(){function e(e){this.name="IllegalStateException";this.message=e}e.prototype={toString:function(){return["[",this.name,this.message,"]"].join("|")}};return e}); | |
define("Environment",["IllegalStateException"],function(e){var g="undefined"!==typeof window&&"undefined"!==typeof navigator&&"undefined"!==typeof document,c="undefined"!==typeof importScripts,b="object"==typeof process&&(/node(\.exe)?$/.test(process.execPath)||process.node&&process.v8||process.versions&&process.versions.node&&process.versions.v8);if(g&&!document.getElementById)throw new e("Not supported browser");var f={isBrowserDocument:function(){return g},isBrowser:function(){return!b&&(g||c)}, | |
isNodeJS:function(){return!g&&b},isWebWorker:function(){return!g&&!b&&c},Jx:function(){return!g&&!b&&!c},browserDocumentOrDie:function(){if(!this.isBrowserDocument())throw new e("Trying to load a browser-only module on non-browser environment");}};f.isBrowserDocument=f.isBrowserDocument;f.isBrowser=f.isBrowser;f.isNodeJS=f.isNodeJS;f.isWebWorker=f.isWebWorker;f.browserDocumentOrDie=f.browserDocumentOrDie;return f}); | |
define("Helpers",["Environment"],function(e){var g=/^\s*([\s\S]*?)\s*$/,c=RegExp(",","g"),b=RegExp("\\.","g"),f={getTimeStamp:function(){return(new Date).getTime()},randomG:function(b){return Math.round(Math.random()*(b||1E3))},trim:function(b){return b.replace(g,"$1")},getNumber:function(f,d){if(f){if(!f.replace)return f;d?(f=f.replace(b,""),f=f.replace(c,".")):f=f.replace(c,"");return new Number(f)}return 0},isArray:function(b){return b&&b.join&&"function"==typeof b.join},addEvent:function(b,d, | |
a){if(!e.isBrowserDocument())return!1;"undefined"!=typeof b.addEventListener?b.addEventListener(d,a,!1):"undefined"!=typeof b.attachEvent&&b.attachEvent("on"+d,a);return!0},removeEvent:function(b,d,a){if(!e.isBrowserDocument())return!1;"undefined"!=typeof b.removeEventListener?b.removeEventListener(d,a,!1):"undefined"!=typeof b.detachEvent&&b.detachEvent("on"+d,a);return!0}};f.getTimeStamp=f.getTimeStamp;f.randomG=f.randomG;f.trim=f.trim;f.getNumber=f.getNumber;f.isArray=f.isArray;f.addEvent=f.addEvent; | |
f.removeEvent=f.removeEvent;return f}); | |
define("BrowserDetection",["Environment"],function(e){function g(b){var c=d;return function(){null===c&&(c=-1<a.indexOf(b));return c}}function c(a){var b=d;return function(){if(null===b){b=!0;for(var d=0;d<a.length;d++)b=b&&a[d]()}return b}}function b(a,b){var c=d,f=d;return function(d,e){null===c&&(f=(c=a())?b():null);return c?d&&f?!0===e?f<=d:!1===e?f>=d:f==d:!0:!1}}function f(b){var c=d;return function(){if(null===c){var d=b.exec(a);if(d&&2<=d.length)return d[1]}return null}}function h(a){return function(){return!a()}} | |
var d=e.isBrowser()?null:!1,a=e.isBrowser()?navigator.userAgent.toLowerCase():null,k=d;e={isProbablyRekonq:g("rekonq"),isProbablyAWebkit:g("webkit"),isProbablyPlaystation:g("playstation 3"),isProbablyChrome:b(g("chrome/"),f(RegExp("chrome/([0-9]+)","g"))),isProbablyAKhtml:function(){null===k&&(k=document.childNodes&&!document.all&&!navigator.sC&&!navigator.cC);return k},isProbablyKonqueror:b(g("konqueror"),f(RegExp("konqueror/([0-9.]+)","g"))),isProbablyIE:function(a,d){return b(g("msie"),f(RegExp("msie\\s([0-9]+)[.;]", | |
"g")))(a,d)||b(g("rv:11.0"),function(){return"11"})(a,d)?!0:!1},fr:g("edge"),isProbablyFX:b(g("firefox"),f(/firefox\/(\d+\.?\d*)/)),isProbablyOldOpera:b(function(){return"undefined"!=typeof opera},function(){if(opera.version){var a=opera.version(),a=a.replace(RegExp("[^0-9.]+","g"),"");return parseInt(a)}return 7})};e.isProbablyAndroidBrowser=c([g("android"),e.isProbablyAWebkit,h(e.isProbablyChrome)]);e.isProbablyOperaMobile=c([e.isProbablyOldOpera,g("opera mobi")]);e.isProbablyApple=b(c([g("safari"), | |
function(a){var b=d;return function(){if(null===b){b=!1;for(var d=0;d<a.length;d++)b=b||a[d]()}return b}}([g("ipad"),g("iphone"),g("ipod"),c([h(e.isProbablyAndroidBrowser),h(e.isProbablyChrome),h(e.isProbablyRekonq)])])]),f(/version\/(\d+\.?\d*)/));e.isProbablyRekonq=e.isProbablyRekonq;e.isProbablyChrome=e.isProbablyChrome;e.isProbablyAWebkit=e.isProbablyAWebkit;e.isProbablyPlaystation=e.isProbablyPlaystation;e.isProbablyAndroidBrowser=e.isProbablyAndroidBrowser;e.isProbablyOperaMobile=e.isProbablyOperaMobile; | |
e.isProbablyApple=e.isProbablyApple;e.isProbablyAKhtml=e.isProbablyAKhtml;e.isProbablyKonqueror=e.isProbablyKonqueror;e.isProbablyIE=e.isProbablyIE;e.isProbablyEdge=e.fr;e.isProbablyFX=e.isProbablyFX;e.isProbablyOldOpera=e.isProbablyOldOpera;return e}); | |
define("List",[],function(){function e(){this.data=[]}e.prototype={add:function(e){this.data.push(e)},remove:function(e){e=this.find(e);if(0>e)return!1;this.data.splice(e,1);return!0},contains:function(e){return 0<=this.find(e)},find:function(e){for(var c=0;c<this.data.length;c++)if(this.data[c]===e)return c;return-1},forEach:function(e){for(var c=0;c<this.data.length;c++)e(this.data[c])},asArray:function(){return[].concat(this.data)},clean:function(){this.data=[]}};e.prototype.add=e.prototype.add; | |
e.prototype.remove=e.prototype.remove;e.prototype.forEach=e.prototype.forEach;e.prototype.asArray=e.prototype.asArray;e.prototype.clean=e.prototype.clean;return e}); | |
define("EnvironmentStatus",["Helpers","BrowserDetection","Environment","List"],function(e,g,c,b){function f(a,b,d,c,f){return function(){a[b]||(a[d]=!0,c.forEach(function(a){try{if(a[f])a[f]();else a()}catch(b){}}),"preunloading"!=b&&c.clean(),a[b]=!0,a[d]=!1)}}function h(a,b){setTimeout(function(){if(a[b])a[b]();else a()},0)}function d(a,b,d,c){setTimeout(function(){d?c?a.apply(d,c):a.apply(d):c?a.apply(null,c):a()},b)}function a(){m=!0}var k=new b,p=new b,l=new b,m=!1,q={qh:"onloadDone",Zr:"onloadInprogress", | |
Yh:"unloaded",lo:"unloading",js:"preunloading"};b={};for(var n in q)b[q[n]]=n;n={qh:!1,Zr:!1,Yh:!1,lo:!1,js:!1,isLoaded:function(){return this.qh},isUnloaded:function(){return this.Yh},isUnloading:function(){return this.lo},addOnloadHandler:function(a){this.Lx()?p.add(a):h(a,"onloadEvent")},addUnloadHandler:function(a){this.Mx()?k.add(a):h(a,"unloadEvent")},addBeforeUnloadHandler:function(a){l.add(a);this.js&&h(a,"preUnloadEvent")},removeOnloadHandler:function(a){p.remove(a)},removeUnloadHandler:function(a){k.remove(a)}, | |
removeBeforeUnloadHandler:function(a){l.remove(a)},Lx:function(){return!(this.qh||this.Zr)},Mx:function(){return!(this.Yh||this.lo)},zu:function(){e.addEvent(window,"unload",this.Vu);e.addEvent(window,"beforeunload",this.Bu);if(document&&"undefined"!=typeof document.readyState){if("COMPLETE"==document.readyState.toUpperCase()){this.ti();return}d(this.Jp,1E3,this)}else if(this.dr()){this.ti();return}if(!e.addEvent(window,"load",this.Tj))this.ti();else if(g.isProbablyOldOpera()){var b=!1;g.isProbablyOldOpera(9, | |
!1)&&(b=!0,e.addEvent(document,"DOMContentLoaded",a));d(this.Ip,1E3,this,[b])}},ti:function(){d(this.Tj,0)},Jp:function(){this.qh||("COMPLETE"==document.readyState.toUpperCase()?this.Tj():d(this.Jp,1E3,this))},Ip:function(a){this.qh||(m||!a&&this.dr()?this.Tj():d(this.Ip,1E3,this,[a]))},dr:function(){return"undefined"!=typeof document.getElementsByTagName&&"undefined"!=typeof document.getElementById&&(null!=document.getElementsByTagName("body")[0]||null!=document.body)}};n.Tj=f(n,b.onloadDone,b.onloadInprogress, | |
p,"onloadEvent");n.Vu=f(n,b.unloaded,b.unloading,k,"unloadEvent");n.Bu=f(n,b.preunloading,b.preunloading,l,"preUnloadEvent");c.isBrowserDocument()?n.zu():n.ti();n.addOnloadHandler=n.addOnloadHandler;n.addUnloadHandler=n.addUnloadHandler;n.addBeforeUnloadHandler=n.addBeforeUnloadHandler;n.removeOnloadHandler=n.removeOnloadHandler;n.removeUnloadHandler=n.removeUnloadHandler;n.removeBeforeUnloadHandler=n.removeBeforeUnloadHandler;n.isLoaded=n.isLoaded;n.isUnloaded=n.isUnloaded;n.isUnloading=n.isUnloading; | |
return n}); | |
define("Promise",[],function(){"undefined"==typeof Promise&&function(){function e(d,b){J[E]=d;J[E+1]=b;E+=2;2===E&&(x?x(a):M())}function g(a){return"function"===typeof a}function c(){return function(){process.nextTick(a)}}function b(){return function(){I(a)}}function f(){var d=0,b=new F(a),f=document.createTextNode("");b.observe(f,{characterData:!0});return function(){f.data=d=++d%2}}function h(){var d=new MessageChannel;d.port1.onmessage=a;return function(){d.port2.postMessage(0)}}function d(){return function(){setTimeout(a, | |
1)}}function a(){for(var a=0;a<E;a+=2)(0,J[a])(J[a+1]),J[a]=void 0,J[a+1]=void 0;E=0}function k(){try{var a=require("vertx");I=a.oC||a.nC;return b()}catch(f){return d()}}function p(){}function l(a,d,b,f){try{a.call(d,b,f)}catch(c){return c}}function m(a,d,b){e(function(a){var f=!1,c=l(b,d,function(b){f||(f=!0,d!==b?n(a,b):u(a,b))},function(d){f||(f=!0,r(a,d))});!f&&c&&(f=!0,r(a,c))},a)}function q(a,d){1===d.Ga?u(a,d.Oa):2===d.Ga?r(a,d.Oa):w(d,void 0,function(d){n(a,d)},function(d){r(a,d)})}function n(a, | |
d){if(a===d)r(a,new TypeError("You cannot resolve a promise with itself"));else if("function"===typeof d||"object"===typeof d&&null!==d)if(d.constructor===a.constructor)q(a,d);else{var b;try{b=d.then}catch(f){L.error=f,b=L}b===L?r(a,L.error):void 0===b?u(a,d):g(b)?m(a,d,b):u(a,d)}else u(a,d)}function t(a){a.Sk&&a.Sk(a.Oa);A(a)}function u(a,d){void 0===a.Ga&&(a.Oa=d,a.Ga=1,0!==a.ni.length&&e(A,a))}function r(a,d){void 0===a.Ga&&(a.Ga=2,a.Oa=d,e(t,a))}function w(a,d,b,f){var c=a.ni,k=c.length;a.Sk= | |
null;c[k]=d;c[k+1]=b;c[k+2]=f;0===k&&a.Ga&&e(A,a)}function A(a){var d=a.ni,b=a.Ga;if(0!==d.length){for(var f,c,k=a.Oa,h=0;h<d.length;h+=3)f=d[h],c=d[h+b],f?B(b,f,c,k):c(k);a.ni.length=0}}function C(){this.error=null}function B(a,d,b,f){var c=g(b),k,h,l,e;if(c){try{k=b(f)}catch(m){N.error=m,k=N}k===N?(e=!0,h=k.error,k=null):l=!0;if(d===k){r(d,new TypeError("A promises callback cannot return that same promise."));return}}else k=f,l=!0;void 0===d.Ga&&(c&&l?n(d,k):e?r(d,h):1===a?u(d,k):2===a&&r(d,k))} | |
function v(a,d){try{d(function(d){n(a,d)},function(d){r(a,d)})}catch(b){r(a,b)}}function H(a,d){this.Xt=a;this.Tf=new a(p);this.eu(d)?(this.Wt=d,this.li=this.length=d.length,this.Vt(),0===this.length?u(this.Tf,this.Oa):(this.length=this.length||0,this.Tt(),0===this.li&&u(this.Tf,this.Oa))):r(this.Tf,this.fu())}function D(a){this.ed=K++;this.Oa=this.Ga=void 0;this.ni=[];if(p!==a){if(!g(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof | |
D))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");v(this,a)}}var y=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},E=0,I,x,z="undefined"!==typeof window?window:void 0,G=z||{},F=G.MutationObserver||G.WebKitMutationObserver,G="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,J=Array(1E3),M;M="undefined"!== | |
typeof process&&"[object process]"==={}.toString.call(process)?c():F?f():G?h():void 0===z&&"function"===typeof require?k():d();var L=new C,N=new C;H.prototype.eu=function(a){return y(a)};H.prototype.fu=function(){return Error("Array Methods must be provided an Array")};H.prototype.Vt=function(){this.Oa=Array(this.length)};H.prototype.Tt=function(){for(var a=this.length,d=this.Tf,b=this.Wt,f=0;void 0===d.Ga&&f<a;f++)this.St(b[f],f)};H.prototype.St=function(a,d){var b=this.Xt;"object"===typeof a&&null!== | |
a?a.constructor===b&&void 0!==a.Ga?(a.Sk=null,this.Tk(a.Ga,d,a.Oa)):this.gu(b.resolve(a),d):(this.li--,this.Oa[d]=a)};H.prototype.Tk=function(a,d,b){var f=this.Tf;void 0===f.Ga&&(this.li--,2===a?r(f,b):this.Oa[d]=b);0===this.li&&u(f,this.Oa)};H.prototype.gu=function(a,d){var b=this;w(a,void 0,function(a){b.Tk(1,d,a)},function(a){b.Tk(2,d,a)})};var K=0;D.all=function(a){return(new H(this,a)).Tf};D.race=function(a){function d(a){n(f,a)}function b(a){r(f,a)}var f=new this(p);if(!y(a))return r(f,new TypeError("You must pass an array to race.")), | |
f;for(var c=a.length,k=0;void 0===f.Ga&&k<c;k++)w(this.resolve(a[k]),void 0,d,b);return f};D.resolve=function(a){if(a&&"object"===typeof a&&a.constructor===this)return a;var d=new this(p);n(d,a);return d};D.reject=function(a){var d=new this(p);r(d,a);return d};D.bC=function(a){x=a};D.aC=function(a){e=a};D.ZB=e;D.prototype={constructor:D,then:function(a,d){var b=this.Ga;if(1===b&&!a||2===b&&!d)return this;var f=new this.constructor(p),c=this.Oa;if(b){var k=arguments[b-1];e(function(){B(b,f,k,c)})}else w(this, | |
f,a,d);return f},"catch":function(a){return this.then(null,a)}};(function(){var a;if("undefined"!==typeof global)a=global;else if("undefined"!==typeof self)a=self;else try{a=Function("return this")()}catch(d){throw Error("polyfill failed because global object is unavailable in this environment");}var b=a.Promise;if(!b||"[object Promise]"!==Object.prototype.toString.call(b.resolve())||b.eC)D.all=D.all,D.race=D.race,D.reject=D.reject,D.resolve=D.resolve,D.prototype.constructor=D.prototype.constructor, | |
D.prototype.then=D.prototype.then,a.Promise=D})()}.call(this);return Promise}); | |
define("Global",["EnvironmentStatus","Environment","Promise"],function(e,g){var c={tt:e,toString:function(){return"[Lightstreamer "+this.library+" client version "+this.version+" build "+this.build+"]"},qa:function(b,f,c,d){b=(d||"_")+b;this[b]||(this[b]={});this[b][f]=c;return"Lightstreamer."+b+"."+f},ij:function(b,f,c){b=(c||"_")+b;return this[b]&&this[b][f]},Bq:function(b,f,c){b=(c||"_")+b;return this[b]?this[b][f]:null},Bi:function(b,f,c){b=(c||"_")+b;if(this[b]&&this[b][f]){delete this[b][f]; | |
for(var d in this[b])return;delete this[b]}},Pu:function(b,f){var c=(f||"_")+b;this[c]&&delete this[c]},tj:{},ou:function(b,f){var c=this.tj;c[b]||(c[b]=[]);c[b].push(f)},Oz:function(b,f){var c=this.tj[b];if(c){for(var d=0;d<c.length;d++)c[d]==f&&c.splice(d,1);0==c.length&&delete c[b]}},Qq:function(b){return this.tj[b]&&(b=this.tj[b])&&0<b.length?b[0]:null}};g.isBrowserDocument()&&(window.OpenAjax&&OpenAjax.hub&&OpenAjax.hub.registerLibrary("Lightstreamer","http://www.lightstreamer.com/",c.version), | |
window.Lightstreamer=c);c.library="javascript";c.version="7.1.2";c.build="1749";return c});define("Executor",["Helpers","EnvironmentStatus","Environment"],function(e,g,c){function b(){}function f(a,b){return a.time===b.time?a.gn-b.gn:a.time-b.time}function h(){w=!1;a()}function d(){if(n)clearInterval(n);else if(c.isBrowserDocument()&&"undefined"!=typeof postMessage){r=function(){window.postMessage("Lightstreamer.run",u)};var d=function(a){("Lightstreamer.run"==a.data&&"*"==u||a.origin==u)&&h()};e.addEvent(window,"message",d);w||(w=!0,r());0==w&&(e.removeEvent(window,"message",d),r=b)}else c.isNodeJS()&& | |
"undefined"!=typeof process&&process.nextTick&&(r=function(){process.nextTick(h)});n=setInterval(a,50)}function a(){if(g.Yh)clearInterval(n);else{var a=l;l=e.getTimeStamp();l<a&&(l=a);if(0<p.length)for(k&&(p.sort(f),k=!1);0<p.length&&p[0].time<=l&&!g.Yh;)a=p.shift(),a.df&&(A.executeTask(a),a.step&&q.push(a));for(0>=p.length&&(t=0);0<q.length;)a=q.shift(),a.step&&(a.gn=t++,A.addPackedTimedTask(a,a.step,!0));l>=m&&(m=l+108E5,p=[].concat(p))}}var k=!1,p=[],l=e.getTimeStamp(),m=l+108E5,q=[],n=null,t= | |
0,u=!c.isBrowserDocument()||"http:"!=document.location.protocol&&"https:"!=document.location.protocol?"*":document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""),r=b,w=!1,A={toString:function(){return["[","Executor",50,p.length,"]"].join("|")},getQueueLength:function(){return p.length},packTask:function(a,b,d){return{df:a,context:b||null,Rb:d||null,gn:t++}},addPackedTimedTask:function(a,b,d){a.step=d?b:null;a.time=l+parseInt(b);if(isNaN(a.time))try{throw Error(); | |
}catch(c){throw a="Executor error for time: "+b,c.stack&&(a+=" "+c.stack),a;}p.push(a);k=!0},addRepetitiveTask:function(a,b,d,c){return this.addTimedTask(a,b,d,c,!0)},stopRepetitiveTask:function(a){a&&(a.df=null,a.step=null)},addTimedTask:function(a,b,d,c,f){a=this.packTask(a,d,c);this.addPackedTimedTask(a,b,f);0!=b||w||(w=!0,r());return a},modifyTaskParam:function(a,b,d){a.Rb[b]=d},modifyAllTaskParams:function(a,b){a.Rb=b},delayTask:function(a,b){a.time+=b;k=!0},executeTask:function(a,b){try{var d= | |
b||a.Rb;a.context?d?a.df.apply(a.context,d):a.df.apply(a.context):d?a.df.apply(null,d):a.df()}catch(c){}}};c.isWebWorker()?setTimeout(d,1):d();A.getQueueLength=A.getQueueLength;A.packTask=A.packTask;A.addPackedTimedTask=A.addPackedTimedTask;A.addRepetitiveTask=A.addRepetitiveTask;A.stopRepetitiveTask=A.stopRepetitiveTask;A.addTimedTask=A.addTimedTask;A.modifyTaskParam=A.modifyTaskParam;A.modifyAllTaskParams=A.modifyAllTaskParams;A.delayTask=A.delayTask;A.executeTask=A.executeTask;return A}); | |
define("LoggerProxy",["Helpers"],function(e){function g(b){this.Kn(b)}function c(){return!1}var b={error:c,warn:c,info:c,debug:c,fatal:c,isDebugEnabled:c,isInfoEnabled:c,isWarnEnabled:c,isErrorEnabled:c,isFatalEnabled:c};g.prototype={Kn:function(c){this.Na=c||b},logFatal:function(b){this.Ex()&&(b+=this.ie(arguments,1),this.fatal(b))},fatal:function(b,c){this.Na.fatal(b,c)},Ex:function(){return!this.Na.isFatalEnabled||this.Na.isFatalEnabled()},logError:function(b){this.cr()&&(b+=this.ie(arguments, | |
1),this.error(b))},logErrorExc:function(b,c){this.cr()&&(c+=this.ie(arguments,2),this.error(c,b))},error:function(b,c){this.Na.error(b,c)},cr:function(){return!this.Na.isErrorEnabled||this.Na.isErrorEnabled()},logWarn:function(b){this.Yx()&&(b+=this.ie(arguments,1),this.warn(b))},warn:function(b,c){this.Na.warn(b,c)},Yx:function(){return!this.Na.isWarnEnabled||this.Na.isWarnEnabled()},logInfo:function(b){this.isInfoLogEnabled()&&(b+=this.ie(arguments,1),this.info(b))},info:function(b,c){this.Na.info(b, | |
c)},isInfoLogEnabled:function(){return!this.Na.isInfoEnabled||this.Na.isInfoEnabled()},logDebug:function(b){this.isDebugLogEnabled()&&(b+=this.ie(arguments,1),this.debug(b))},debug:function(b,c){this.Na.debug(b,c)},isDebugLogEnabled:function(){return!this.Na.isDebugEnabled||this.Na.isDebugEnabled()},ie:function(b,c){for(var d=" {",a=c?c:0;a<b.length;a++)try{var g=b[a];null===g?d+="NULL":0>g.length?d+="*":null!=g.charAt?d+=g:g.message?(d+=g.message,g.stack&&(d+="\n"+g.stack+"\n")):g[0]==g?d+=g:e.isArray(g)? | |
(d+="(",d+=this.ie(g),d+=")"):d+=g;d+=" "}catch(p){d+="missing-parameter "}return d+"}"}};g.prototype.debug=g.prototype.debug;g.prototype.isDebugLogEnabled=g.prototype.isDebugLogEnabled;g.prototype.logDebug=g.prototype.logDebug;g.prototype.info=g.prototype.info;g.prototype.isInfoLogEnabled=g.prototype.isInfoLogEnabled;g.prototype.logInfo=g.prototype.logInfo;g.prototype.warn=g.prototype.warn;g.prototype.isWarnEnabled=g.prototype.isWarnEnabled;g.prototype.logWarn=g.prototype.logWarn;g.prototype.error= | |
g.prototype.error;g.prototype.isErrorEnabled=g.prototype.isErrorEnabled;g.prototype.logError=g.prototype.logError;g.prototype.logErrorExc=g.prototype.logErrorExc;g.prototype.fatal=g.prototype.fatal;g.prototype.isFatalEnabled=g.prototype.isFatalEnabled;g.prototype.logFatal=g.prototype.logFatal;return g}); | |
define("IllegalArgumentException",[],function(){function e(e){this.name="IllegalArgumentException";this.message=e}e.prototype={toString:function(){return["[",this.name,this.message,"]"].join("|")}};return e}); | |
define("LoggerManager",["LoggerProxy","IllegalArgumentException"],function(e,g){var c={},b=null,f={setLoggerProvider:function(f){if(f&&!f.getLogger)throw new g("The given object is not a LoggerProvider");b=f;for(var d in c)b?c[d].Kn(b.getLogger(d)):c[d].Kn(null)},getLoggerProxy:function(f){c[f]||(c[f]=b?new e(b.getLogger(f)):new e);return c[f]},resolve:function(b){return b}};f.setLoggerProvider=f.setLoggerProvider;f.getLoggerProxy=f.getLoggerProxy;f.resolve=f.resolve;return f}); | |
define("lscAe",["Environment"],function(e){return{Ie:1E3,Ho:200,Kt:1E4,zt:1,fi:0,UB:2,xo:3,Go:4,wo:5,Yb:"N",vt:200,Fo:"MAIN",gi:"wbridge",ci:"fbridge",Ht:1,Gt:2,Fk:"1749",mg:!e.isBrowserDocument()||"http:"!=document.location.protocol&&"https:"!=document.location.protocol?"file:":document.location.protocol,Ya:"lightstreamer.stream",He:"lightstreamer.protocol",Od:"lightstreamer.session",Io:"lightstreamer.requests",Ko:"lightstreamer.subscriptions",Dt:"lightstreamer.messages",Dk:"lightstreamer.actions", | |
dd:"lightstreamer.sharing",TB:"lightstreamer.crosstab",Do:"lightstreamer.flash",XB:"lightstreamer.stats",Pd:"Lightstreamer_",Jk:"lightstreamer",vc:"UNORDERED_MESSAGES",Ke:{length:-1,toString:function(){return"[UNCHANGED]"}},CONNECTING:"CONNECTING",Fa:"CONNECTED:",og:"STREAM-SENSING",rg:"WS-STREAMING",Fe:"HTTP-STREAMING",Je:"STALLED",Le:"WS-POLLING",bd:"HTTP-POLLING",Xb:"DISCONNECTED",qg:"DISCONNECTED:WILL-RETRY",pg:"DISCONNECTED:TRYING-RECOVERY",Ok:"WS",di:"HTTP",Lk:"RAW",Hk:"DISTINCT",kg:"COMMAND", | |
Kk:"MERGE",ei:"MASTER"}}); | |
define("lscAj",["Environment","lscAe","Helpers"],function(e,g,c){var b=RegExp("\\.","g"),f=RegExp("-","g"),h={".":!0," ":!0,0:!0},d={er:function(){return e.isBrowser()?!1===navigator.onLine:!1},qp:function(){try{return"undefined"!=typeof localStorage&&null!==localStorage&&localStorage.getItem&&localStorage.setItem?(localStorage.setItem("__canUseLocalStorage_test__","true"),localStorage.removeItem("__canUseLocalStorage_test__"),!0):!1}catch(a){return!1}},ic:function(){try{return document.domain}catch(a){return""}},hj:function(){if(!e.isBrowserDocument())return!0; | |
try{return-1<document.location.host.indexOf("[")?!0:d.ic()==document.location.hostname}catch(a){return!1}},fc:function(a){if("undefined"!=typeof a){if(!0===a||!1===a)return!0===a;if(null!=a){if(isNaN(a)||""===a){if(c.isArray(a)){for(var d=[],b=0;b<a.length;b++)d[b]=this.fc(a[b]);return d}if((a||""==a)&&("string"===typeof a||a instanceof String))return a.toString();if(-1===a.length)return g.Ke;if(isNaN(a)&&"number"===typeof a)return NaN;d={};for(b in a)d[this.fc(b)]=this.fc(a[b]);return d}return(b= | |
a.charAt?a.charAt(0)in h:!1)&&a.toString?"0"===b&&1==a.length?"0":a.toString():a==Math.round(a)?parseInt(a):parseFloat(a,10)}}return null},ra:function(a,d){a=a||{};if(d)for(var b in d)a[b]=d[b];return a},ak:function(a){return a.replace(b,"_").replace(f,"__")},getReverse:function(a){var d={},b;for(b in a)d[a[b]]=b;return d},si:function(a){if(a&&!a.pop){for(var d=[],b=0;b<a.length;b++)d.push(a[b]);return d}return a},wz:function(a){if(!a)return[];for(var d={mx:0,next:function(){return a.charAt(this.mx++)}}, | |
b=/^\s*Expires/i,f=[],c=d.next();c;){for(var h="",e="";c&&";"!=c&&","!=c;)e+=c,c=d.next();e=e.trim();h+=e;";"==c&&(h+="; ",c=d.next());for(;c&&","!=c;){for(e="";c&&";"!=c&&","!=c;)e+=c,c=d.next();if(e.match(b))for(console.assert(","==c),e+=c,c=d.next();c&&";"!=c&&","!=c;)e+=c,c=d.next();e=e.trim();h+=e;";"==c&&(h+="; ",c=d.next())}f.push(h);c=d.next()}return f}};return d}); | |
define("Inheritance",["IllegalStateException"],function(e){function g(b,c,e){if(c)return e?c.apply(b,e):c.apply(b)}var c={At:function(b,f,h,d){for(var a in f.prototype)if(!b.prototype[a])b.prototype[a]=f.prototype[a];else if(d){var g;a:{g=f.prototype;var p=void 0;for(p in g)if(g[a]==g[p]&&a!=p){g=p;break a}g=null}if(g){if(b.prototype[g]&&b.prototype[g]!==b.prototype[a]&&f.prototype[g]!==f.prototype[g])throw new e("Can't solve alias collision, try to minify the classes again ("+g+", "+a+")");b.prototype[g]= | |
b.prototype[a]}}h||(b.prototype._super_=f,b.prototype._callSuperConstructor=c._callSuperConstructor,b.prototype._callSuperMethod=c._callSuperMethod);return b},_callSuperMethod:function(b,c,e){return g(this,b.prototype._super_.prototype[c],e)},_callSuperConstructor:function(b,c){g(this,b.prototype._super_,c)}};return c.At}); | |
define("Setter",["IllegalArgumentException"],function(e){function g(){}g.prototype.checkPositiveNumber=function(c,b,f){var g=new Number(c);if(isNaN(g))throw new e("The given value is not valid. Use a number");if(!f&&g!=Math.round(g))throw new e("The given value is not valid. Use an integer");if(b){if(0>c)throw new e("The given value is not valid. Use a positive number or 0");}else if(0>=c)throw new e("The given value is not valid. Use a positive number");return g};g.prototype.checkBool=function(c, | |
b){if(!0===c||!1===c||b&&!c)return!0===c;throw new e("The given value is not valid. Use true or false");};return g});define("lscA",["LoggerManager","lscAj","Inheritance","Setter","lscAe"],function(e,g,c,b,f){function h(d){this.X="lscA";this.parent=null;this.lp=!1;d&&this.bv(d)}e.getLoggerProxy(f.Dk);e.getLoggerProxy(f.dd);h.prototype={ej:function(d){return this.hg[d]},S:function(d,a){var b=this.ej(d),f=this[b];this[b]=g.fc(a);this.parent&&this.lp&&this.Re(d);f!=this[b]&&this.Cr(d)},w:function(d,a){var b=this.ej(d);a!=this[b]&&(this[b]=a,this.Re(d),this.Cr(d))},ag:function(d,a){this.parent=d;this.lp=a},Re:function(d){var a= | |
this.ej(d);return this.parent&&this.parent.Re&&!this.parent.Re(this.X,d,g.fc(this[a]))?!1:!0},Cr:function(d){var a=this.ej(d);!this.parent||!this.parent.Er||this.Ar&&this.Ar[a]||this.parent.Er(d,this)},bv:function(d){var a=this.hg,b;for(b in a)this.S(b,d[a[b]])},dm:function(d){for(var a in this.hg)d(a,this[this.hg[a]])}};c(h,b,!1,!0);return h}); | |
define("lscC",["lscA","Inheritance","lscAj"],function(e,g,c){function b(d){this.Hg=!1;this.jd=0;this.Ar=f;this.hg=h;this._callSuperConstructor(b,arguments);this.X="lscC"}var f={},h={Hg:"connectionRequested",jd:"clientsCount"},h=c.getReverse(h);b.prototype={};g(b,e);return b}); | |
define("lscE","IllegalArgumentException lscAe lscA Inheritance Global Environment lscAj".split(" "),function(e,g,c,b,f,h,d){function a(){this.Hl=4E6;this.lj=19E3;this.te=this.Pb=this.wf=0;this.yd=3E3;this.rk=2E3;this.Ue=0;this.Xe=4E3;this.Yj=2E3;this.Ui=100;this.On=!0;this.fm=null;this.Lp=this.Fn=!1;this.Xf=0;this.Rl=!0;this.Pn=5E3;this.eh=this.qk=null;this.kj=!1;this.Ei=this.ro=!0;this.Vi=2E3;this.Zn=4E3;this.hg=p;this._callSuperConstructor(a,arguments);this.X="lscE"} | |
var k={};k[g.Fe]=!0;k[g.Le]=!0;k[g.bd]=!0;k[g.rg]=!0;k[g.Ok]=!0;k[g.di]=!0;var p={Hl:"contentLength",lj:"idleTimeout",wf:"keepaliveInterval",Pb:"maxBandwidth",te:"pollingInterval",yd:"reconnectTimeout",rk:"stalledTimeout",Xe:"currentConnectTimeout",Ue:"connectTimeout",Yj:"retryDelay",Ui:"firstRetryMaxDelay",On:"slowingEnabled",fm:"forcedTransport",Fn:"serverInstanceAddressIgnored",Lp:"cookieHandlingRequired",Xf:"reverseHeartbeatInterval",Rl:"earlyWSOpenEnabled",Pn:"spinFixTimeout",qk:"spinFixEnabled", | |
ro:"xDomainStreamingEnabled",Ei:"corsXHREnabled",Vi:"forceBindTimeout",Zn:"switchCheckTimeout",eh:"httpExtraHeaders",kj:"httpExtraHeadersOnSessionCreationOnly"},p=d.getReverse(p);a.prototype={oA:function(a){this.w("contentLength",this.checkPositiveNumber(a))},hw:function(){return this.Hl},Ts:function(a){this.w("idleTimeout",this.checkPositiveNumber(a,!0))},Eq:function(){return this.lj},Vs:function(a){this.w("keepaliveInterval",this.checkPositiveNumber(a,!0))},Fq:function(){return this.wf},AA:function(a){a= | |
"unlimited"==(new String(a)).toLowerCase()?0:this.checkPositiveNumber(a,!1,!0);this.w("maxBandwidth",a)},zw:function(){return 0>=this.Pb?"unlimited":this.Pb},Ws:function(a){this.w("pollingInterval",this.checkPositiveNumber(a,!0))},Lq:function(){return this.te},GA:function(a){this.w("reconnectTimeout",this.checkPositiveNumber(a))},Kw:function(){return this.yd},RA:function(a){this.w("stalledTimeout",this.checkPositiveNumber(a))},Yw:function(){return this.rk},mA:function(a){"auto"==a?(this.w("connectTimeout", | |
0),a=4E3):this.w("connectTimeout",this.checkPositiveNumber(a));this.Ps(a)},ew:function(){return 0==this.Ue?"auto":this.Ue},Ps:function(a){0!=this.Ue&&a!=this.Ue||this.w("currentConnectTimeout",this.checkPositiveNumber(a))},sq:function(){return this.Xe},Xs:function(a){this.w("retryDelay",this.checkPositiveNumber(a))},Nq:function(){return this.Yj},tA:function(a){this.w("firstRetryMaxDelay",this.checkPositiveNumber(a))},pw:function(){return this.Ui},NA:function(a){this.w("slowingEnabled",this.checkBool(a))}, | |
Qx:function(){return this.On},vA:function(a){if(null!==a&&!k[a])throw new e("The given value is not valid. Use one of: HTTP-STREAMING, HTTP-POLLING, WS-STREAMING, WS-POLLING, WS, HTTP or null");this.w("forcedTransport",a)},uw:function(){return this.fm},KA:function(a){this.w("serverInstanceAddressIgnored",this.checkBool(a))},Px:function(){return this.Fn},pA:function(a){if(a&&!h.isBrowser()&&!h.isNodeJS())throw new e("cookieHandlingRequired is only supported on Browsers");this.w("cookieHandlingRequired", | |
this.checkBool(a))},Mb:function(){return this.Lp},sA:function(a){this.w("earlyWSOpenEnabled",this.checkBool(a))},Dx:function(){return this.Rl},Ys:function(a){this.w("reverseHeartbeatInterval",this.checkPositiveNumber(a,!0))},Oq:function(){return this.Xf},wA:function(a){if(a){var d="",b;for(b in a)d+=b+"\n"+a[b]+"\n";this.w("httpExtraHeaders",d)}else this.w("httpExtraHeaders",null)},Dq:function(){if(!this.eh)return this.eh;for(var a={},d=this.eh.split("\n"),b=0;b<d.length-1;b+=2)a[d[b]]=d[b+1];return a}, | |
xA:function(a){this.w("httpExtraHeadersOnSessionCreationOnly",this.checkBool(a))},Gx:function(){return this.kj},dh:function(a){return this.eh?a?!0:!this.kj:!1},Sg:function(a){return!a&&this.kj?null:this.Dq()},VA:function(a){this.w("xDomainStreamingEnabled",this.checkBool(a))},Zx:function(){return this.ro},qA:function(a){this.w("corsXHREnabled",this.checkBool(a))},Bx:function(){return this.Ei},uA:function(a){this.w("forceBindTimeout",this.checkPositiveNumber(a))},sw:function(){return this.Vi},SA:function(a){this.w("switchCheckTimeout", | |
this.checkPositiveNumber(a))},$w:function(){return this.Zn},QA:function(a){this.w("spinFixTimeout",this.checkPositiveNumber(a))},Xw:function(){return this.Pn},PA:function(a){this.w("spinFixTimeout",null===this.$B?null:this.checkBool(a))},Ww:function(){return this.qk},ar:function(){return 0==this.Ue},ox:function(){if(this.ar()){var a=this.sq()+2E3;14E3<a?this.xs():this.S("currentConnectTimeout",a)}},xs:function(){this.ar()&&this.S("currentConnectTimeout",4E3)}};a.prototype.setContentLength=a.prototype.oA; | |
a.prototype.getContentLength=a.prototype.hw;a.prototype.setIdleTimeout=a.prototype.Ts;a.prototype.getIdleTimeout=a.prototype.Eq;a.prototype.setKeepaliveInterval=a.prototype.Vs;a.prototype.getKeepaliveInterval=a.prototype.Fq;a.prototype.setMaxBandwidth=a.prototype.AA;a.prototype.getMaxBandwidth=a.prototype.zw;a.prototype.setPollingInterval=a.prototype.Ws;a.prototype.getPollingInterval=a.prototype.Lq;a.prototype.setReconnectTimeout=a.prototype.GA;a.prototype.getReconnectTimeout=a.prototype.Kw;a.prototype.setStalledTimeout= | |
a.prototype.RA;a.prototype.getStalledTimeout=a.prototype.Yw;a.prototype.setConnectTimeout=a.prototype.mA;a.prototype.getConnectTimeout=a.prototype.ew;a.prototype.setCurrentConnectTimeout=a.prototype.Ps;a.prototype.getCurrentConnectTimeout=a.prototype.sq;a.prototype.setRetryDelay=a.prototype.Xs;a.prototype.getRetryDelay=a.prototype.Nq;a.prototype.setFirstRetryMaxDelay=a.prototype.tA;a.prototype.getFirstRetryMaxDelay=a.prototype.pw;a.prototype.setSlowingEnabled=a.prototype.NA;a.prototype.isSlowingEnabled= | |
a.prototype.Qx;a.prototype.setForcedTransport=a.prototype.vA;a.prototype.getForcedTransport=a.prototype.uw;a.prototype.setServerInstanceAddressIgnored=a.prototype.KA;a.prototype.isServerInstanceAddressIgnored=a.prototype.Px;a.prototype.setCookieHandlingRequired=a.prototype.pA;a.prototype.isCookieHandlingRequired=a.prototype.Mb;a.prototype.setEarlyWSOpenEnabled=a.prototype.sA;a.prototype.isEarlyWSOpenEnabled=a.prototype.Dx;a.prototype.setReverseHeartbeatInterval=a.prototype.Ys;a.prototype.getReverseHeartbeatInterval= | |
a.prototype.Oq;a.prototype.setHttpExtraHeaders=a.prototype.wA;a.prototype.getHttpExtraHeaders=a.prototype.Dq;a.prototype.setHttpExtraHeadersOnSessionCreationOnly=a.prototype.xA;a.prototype.isHttpExtraHeadersOnSessionCreationOnly=a.prototype.Gx;a.prototype.setXDomainStreamingEnabled=a.prototype.VA;a.prototype.isXDomainStreamingEnabled=a.prototype.Zx;a.prototype.setCorsXHREnabled=a.prototype.qA;a.prototype.isCorsXHREnabled=a.prototype.Bx;a.prototype.setForceBindTimeout=a.prototype.uA;a.prototype.getForceBindTimeout= | |
a.prototype.sw;a.prototype.setSwitchCheckTimeout=a.prototype.SA;a.prototype.getSwitchCheckTimeout=a.prototype.$w;a.prototype.setSpinFixTimeout=a.prototype.QA;a.prototype.getSpinFixTimeout=a.prototype.Xw;a.prototype.setSpinFixEnabled=a.prototype.PA;a.prototype.getSpinFixEnabled=a.prototype.Ww;a.prototype.setRetryTimeout=a.prototype.Xs;a.prototype.getRetryTimeout=a.prototype.Nq;a.prototype.setIdleMillis=a.prototype.Ts;a.prototype.getIdleMillis=a.prototype.Eq;a.prototype.setKeepaliveMillis=a.prototype.Vs; | |
a.prototype.getKeepaliveMillis=a.prototype.Fq;a.prototype.setPollingMillis=a.prototype.Ws;a.prototype.getPollingMillis=a.prototype.Lq;a.prototype.setReverseHeartbeatMillis=a.prototype.Ys;a.prototype.getReverseHeartbeatMillis=a.prototype.Oq;b(a,c);return a}); | |
define("lscAf",[],function(){return{jC:function(){var e=3,g,c=6,b="",f;f="document".toString();var h=0;g=f.length;for(var d=0;d<g;d++)h+=f.charCodeAt(d);f=parseInt(h);if(0<f)for(h=0;184>=c+e-h;h+=3)g=h,g=parseInt("2844232422362353182342452312352492633183053182412392513042362492412532492362342352342462472452423042312312313182482393182292342362492382392362383182422532332342512492422422492342402770".substring(h,e-1))-parseInt("2844232422362353182342452312352492633183053182412392513042362492412532492362342352342462472452423042312312313182482393182292342362492382392362383182422532332342512492422422492342402770".substring(g, | |
g+2))+350-parseInt("2844232422362353182342452312352492633183053182412392513042362492412532492362342352342462472452423042312312313182482393182292342362492382392362383182422532332342512492422422492342402770".substring(c,c+e-h)),b=unescape("%"+g.toString(16))+b,e+=3,c+=3,f+=g;return b}}}); | |
define("ASSERT",["LoggerManager"],function(e){var g=e.getLoggerProxy("weswit.test"),c=0,b={},f={VOID:b,getFailures:function(){return c},compareArrays:function(b,d,a){if(b.length!=d.length)return this.Fb(),g.logError(e.resolve(417),b,d),!1;if(a)for(c=0;c<b.length;c++){if(b[c]!=d[c])return g.logError(e.resolve(420),b[c],d[c]),this.Fb(),!1}else{a={};for(var c=0;c<b.length;c++)a[b[c]]=1;for(c=0;c<d.length;c++)if(a[d[c]])a[d[c]]++;else return g.logError(e.resolve(418),d[c]),this.Fb(),!1;for(c in a)if(1== | |
a[c])return g.logError(e.resolve(419),a[c]),this.Fb(),!1}return!0},verifySuccess:function(b,d,a,c,f){return this.verify(b,d,a,c,!1,f)},verifyException:function(b,d,a){return this.verify(b,d,a,null,!0)},verifyNotNull:function(b){return null===b?(this.Fb(),g.logError(e.resolve(421),b),!1):!0},verifyValue:function(b,d,a){var c=!1;!0===a?c=b===d:a?c=a(b,d):isNaN(b)?c=b==d:(a=b&&b.charAt?b.charAt(0):null,c=d&&d.charAt?d.charAt(0):null,c="."==a||" "==a||"0"==a||"."==c||" "==c||"0"==c?String(b)==String(d): | |
b==d);return c?!0:(this.Fb(),g.logError(e.resolve(422),b,d),!1)},verifyDiffValue:function(b,d,a){return(a?b===d:b==d)?(this.Fb(),g.logError(e.resolve(423),b,d),!1):!0},verifyOk:function(b){return b?!0:(this.Fb(),g.logError(e.resolve(424)),!1)},verifyNotOk:function(b){return b?(this.Fb(),g.logError(e.resolve(425)),!1):!0},fail:function(){g.logError(e.resolve(426));this.Fb();return!1},Fb:function(){c++},verify:function(c,d,a,f,p,l){var m=!1,q=null,n=null;try{q=a!==b?c[d].apply(c,a):c[d]()}catch(t){m= | |
!0,n=t}c=p?"succes":"failure";return p!=m?(this.Fb(),g.logError(e.resolve(427),c,"for",d,a,f,n),!1):p||f===b?!0:this.verifyValue(q,f,l)}};f.getFailures=f.getFailures;f.fail=f.fail;f.verifyNotOk=f.verifyNotOk;f.verifyOk=f.verifyOk;f.verifyDiffValue=f.verifyDiffValue;f.verifyNotNull=f.verifyNotNull;f.verifyValue=f.verifyValue;f.verifyException=f.verifyException;f.verifySuccess=f.verifySuccess;f.compareArrays=f.compareArrays;return f}); | |
define("lscq","LoggerManager lscAj lscAf Environment ASSERT lscAe".split(" "),function(e,g,c,b,f,h){var d=e.getLoggerProxy(h.He),a="LS_cid\x3dpcYgxn8m8 feOojyA1T671h3g2.pz479jFv\x26",k=/^[a-z][a-z0-9-]+$/,p=/^((?:[a-z][a-z.0-9-]+).(?:[a-z][a-z-]+))(?![\w.])/,l=/^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))(?![d])/,m=/^[a-f0-9:]+$/;return{IB:function(a){a=a.toLowerCase();var d=0==a.indexOf("http://")?7:0==a.indexOf("https://")?8:-1;if(-1== | |
d)return"The given server address has not a valid scheme";var b=a.lastIndexOf(":"),b=b>d?b:a.length,f=this.cq(a,a.indexOf("://"));if(null!=f&&isNaN(f.substring(1)))return"The given server address has not a valid port";f=a.indexOf("/",d);f=f<b?f:b;if("["==a.charAt(d)){if(a=a.substring(d+1,a.lastIndexOf("]")),!m.test(a))return"The given server address is not a valid IPv6"}else if(a=a.substring(d,f),-1<a.indexOf(".")){if(!p.test(a)&&!l.test(a))return"The given server address is not a valid URL"}else if(!k.test(a))return"The given server address is not a valid machine name"; | |
return!0},cq:function(a,d){var b=a.indexOf(":",d+1);if(-1>=b)return null;if(-1<a.indexOf("]")){b=a.indexOf("]:");if(-1>=b)return null;b+=1}else if(b!=a.lastIndexOf(":"))return null;var f=a.indexOf("/",d+3);return-1<f?a.substring(b,f):a.substring(b)},Wu:function(a,d){var b=this.cq(a,a.indexOf("://"));if(b){var f=d.indexOf("/");d=-1>=f?d+b:d.substring(0,f)+b+d.substring(f)}d=0==a.toLowerCase().indexOf("https://")?"https://"+d:"http://"+d;"/"!=d.substr(d.length-1)&&(d+="/");return d},Iw:function(c,k, | |
h,l,r,w,m,p,B,v,H){H=H&&b.isBrowserDocument()&&!g.hj()?"LS_domain\x3d"+g.ic()+"\x26":"";c="LS_phase\x3d"+c+"\x26"+H+(p?"LS_cause\x3d"+p+"\x26":"");r||w?(c+="LS_polling\x3dtrue\x26",p=v=0,w&&(v=Number(h.te),null==B||isNaN(B)||(v+=B),p=h.lj),isNaN(v)||(c+="LS_polling_millis\x3d"+v+"\x26"),isNaN(p)||(c+="LS_idle_millis\x3d"+p+"\x26")):(0<h.wf&&(c+="LS_keepalive_millis\x3d"+h.wf+"\x26"),0<h.Xf&&(c+="LS_inactivity_millis\x3d"+h.Xf+"\x26"),v&&(c+="LS_content_length\x3d"+h.Hl+"\x26"));if(r)return k="",0< | |
h.Pb&&(k+="LS_requested_max_bandwidth\x3d"+h.Pb+"\x26"),null!=l.pi&&(k+="LS_adapter_set\x3d"+encodeURIComponent(l.pi)+"\x26"),null!=l.zk&&(k+="LS_user\x3d"+encodeURIComponent(l.zk)+"\x26"),h="LS_op2\x3dcreate\x26"+c+a+k,m&&(h+="LS_old_session\x3d"+m+"\x26"),d.logDebug(e.resolve(6),h),null!=l.password&&(h+="LS_password\x3d"+encodeURIComponent(l.password)+"\x26"),h;f.verifyOk(k)||d.logError(e.resolve(4));l="LS_session\x3d"+k+"\x26"+c;d.logDebug(e.resolve(5),l);return l},Lw:function(a,f,c,h,k,l,m){l= | |
l&&b.isBrowserDocument()&&!g.hj()?"LS_domain\x3d"+g.ic()+"\x26":"";a="LS_phase\x3d"+a+"\x26"+l+(h?"LS_cause\x3d"+h+"\x26":"")+"LS_polling\x3dtrue\x26";h=0;null==k||isNaN(k)||(h+=k);a+="LS_polling_millis\x3d"+h+"\x26";a+="LS_idle_millis\x3d0\x26";0<c.Pb&&(a+="LS_requested_max_bandwidth\x3d"+c.Pb+"\x26");a+="LS_session\x3d"+f+"\x26";a+="LS_recovery_from\x3d"+m+"\x26";d.logDebug(e.resolve(7),a);return a},mw:function(a,b){var f={LS_op:"destroy",LS_session:a};b&&(f.LS_cause=b);d.logDebug(e.resolve(8)); | |
return f},tw:function(a,b){var f={LS_op:"force_rebind"};a&&(f.LS_cause=a);null==b||isNaN(b)||(f.LS_polling_millis=b);d.logDebug(e.resolve(9));return f},yw:function(a,d,b){d.LS_build=b;d.LS_phase=a;return d},fw:function(a){return{LS_op:"constrain",LS_requested_max_bandwidth:0<a.Pb?a.Pb:0}},Mq:function(a,b,f){a=b||".js"==f||""==f?(a?this.jm()+"create_session":"bind_session")+f:(a?this.jm():"")+"STREAMING_IN_PROGRESS";d.logDebug(e.resolve(10),a);return a},Mw:function(a){return"bind_session"+a},jm:function(){return""}, | |
qC:function(d){a=d}}}); | |
define("lscD","IllegalArgumentException lscA Inheritance Environment Global lscq lscAj".split(" "),function(e,g,c,b,f,h,d){function a(){this.Hh=p;this.sessionId=this.Ms=this.Ls=this.password=this.zk=this.pi=null;this.hg=k;this._callSuperConstructor(a,arguments);this.X="lscD"}var k={Hh:"serverAddress",pi:"adapterSet",zk:"user",password:"password",Ls:"serverInstanceAddress",Ms:"serverSocketName",sessionId:"sessionId"},k=d.getReverse(k),p=!b.isBrowser()||"http:"!= | |
location.protocol&&"https:"!=location.protocol?null:location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/";a.prototype={Zs:function(a){if(null===a)a=p;else{"/"!=a.substr(a.length-1)&&(a+="/");var d=h.IB(a);if(!0!==d)throw new e(d);}this.w("serverAddress",a)},Pq:function(){return this.Hh},Ns:function(a){this.w("adapterSet",a)},Vv:function(){return this.pi},UA:function(a){this.w("user",a)},ex:function(){return this.zk},CA:function(a){this.w("password",a)},Tw:function(){return this.Ls}, | |
Uw:function(){return this.Ms},fe:function(){return this.sessionId}};a.prototype.setServerAddress=a.prototype.Zs;a.prototype.getServerAddress=a.prototype.Pq;a.prototype.setAdapterSet=a.prototype.Ns;a.prototype.getAdapterSet=a.prototype.Vv;a.prototype.setUser=a.prototype.UA;a.prototype.getUser=a.prototype.ex;a.prototype.setPassword=a.prototype.CA;a.prototype.getServerInstanceAddress=a.prototype.Tw;a.prototype.getServerSocketName=a.prototype.Uw;a.prototype.getSessionId=a.prototype.fe;c(a,g);return a}); | |
define("lscAi",[],function(){function e(e){this.jn=[];this.bound=this.xk=!1;this.value=null;this.Si=!1;var c=this;e(function(){return c.fz.apply(c,arguments)},function(){return c.Wr.apply(c,arguments)})}e.resolve=function(g){return new e(function(c){c(g)})};e.reject=function(g){return new e(function(c,b){b(g)})};e.prototype={then:function(e,c){this.xk?this.Ds(e,c):this.jn.push({Zy:e,Xy:c});return this},fz:function(e){if(this.xk||this.bound)return null;if(e&&e.then&&e.constructor===this.constructor){this.bound= | |
!0;var c=this;e.then(function(b){c.io(b,!0);return c.value},function(b){c.Wr(b,!1)});return e}this.io(e,!0);return this},io:function(e,c){this.value=e;for(this.Si=!c;0<this.jn.length;){var b=this.jn.shift();this.Ds(b.Zy,b.Xy)}this.xk=!0;this.bound=!1},Wr:function(e){if(this.xk||this.bound)return null;this.io(e,!1);return this},Ds:function(e,c){try{this.Si?c&&c.apply(null,[this.value]):e.apply(null,[this.value])}catch(b){this.Si||(this.Si=!0,this.value=b)}}};return e}); | |
define("lscY",["Promise","lscAj","lscAi"],function(e,g){return{Jg:function(c,b){return b.po?b.Zk?function(){try{var b=this.target[c].apply(this.target,[this.Va].concat(g.si(arguments)));return e.resolve(b)}catch(h){return e.reject(h)}}:function(){try{var b=this.target[c].apply(this.target,arguments);return e.resolve(b)}catch(h){return e.reject(h)}}:b.Zk?function(){try{this.target[c].apply(this.target,[this.Va].concat(g.si(arguments)))}catch(b){}}:function(){try{this.target[c].apply(this.target, | |
arguments)}catch(b){}}}}});define("lscP",[],function(){function e(e,c,b){this.po=e;this.Zk=c;this.As=b||!1}e.at=new e(!1,!1);e.rC=new e(!0,!1);e.bt=new e(!0,!1,2E3);e.f=new e(!1,!0);e.gA=new e(!0,!0);e.pC=new e(!0,!0,4E3);return e}); | |
define("lscAP",["lscY","lscP"],function(e,g){function c(d){this.client=d;this.tb=!1;this.Va=-1;this.Ra=null}var b=g.at,f=g.f,b={Ir:b,mp:f,np:f,es:g.bt,Be:g.gA,Hd:f,ad:f,Vg:f,mq:b,Cp:b};c.methods=b;c.prototype={FA:function(d){this.target=d},Rs:function(d){this.Ra=d},pd:function(){return this.Ra},H:function(){this.client=null},MA:function(d){this.Va=d},mh:function(d,a,b){("lscD"==d?this.client.xb:"lscE"==d?this.client.zb:this.client.ja).S(a, | |
b)},qe:function(d){this.tb&&this.dk(d)},dk:function(d){this.Va=d;this.tb=!1;this.client.dk()},Tc:function(d){this.Va=d;this.tb=!0;this.client.fA()},nh:function(d){this.dk(-1);this.client.wv(d)},pl:function(){var d=this;this.es().then(function(){},function(){d.client&&d.nh()})},Lr:function(){this.pl();Executor.addTimedTask(this.pl,1E3,this)},Lf:function(d,a){this.client.eA(d,a)},onStatusChange:function(d){this.client.cl(d)},onSubscription:function(d,a,b,f,c){this.client.u.nB(d,a,b,f,c)},Mf:function(d, | |
a,b){this.client.u.yv(d,a,b)},onUnsubscription:function(d){this.client.u.DB(d)},onEndOfSnapshot:function(d,a){this.client.u.ne(d,a)},ph:function(d,a){this.client.u.EB(d,a)},onLostUpdates:function(d,a,b){this.client.u.oe(d,a,b)},onClearSnapshot:function(d,a){this.client.u.me(d,a)},pe:function(d){this.client.J.ny(d)},Qr:function(d,a,b){this.client.J.my(d,a,b)},Kf:function(d,a,b){this.client.J.oy(d,a,b)},Pr:function(d){this.client.J.ly(d)},Rr:function(d){this.client.J.qy(d)},ping:function(){if(null=== | |
this.client)throw"net";return!0},nc:function(){this.client.nc()}};for(var h in b)c.prototype[h]=e.Jg(h,b[h]);return c}); | |
define("lscAH",["Environment","lscAj"],function(e,g){function c(b,f,c,d,a,k){this.DA(b);this.ye(f);this.setData(c);this.ik(d);this.Jh(a);this.Lh(k)}c.Nt="GET";c.hi="POST";c.prototype={toString:function(){return["[",this.yb,this.sg,this.lb,this.Ne,"]"].join("|")},DA:function(b){for(;b&&"/"==b.substring(b.length-1);)b=b.substring(0,b.length-1);this.yb=b},ye:function(b){for(;b&&"/"==b.substring(0,1);)b=b.substring(1);this.sg=b},ik:function(b){this.Ne=b||c.hi},Jh:function(b){this.Kp=b||!1},Lh:function(b){this.Zl= | |
b||null},setData:function(b){this.lb=b},Oi:function(b){this.lb?this.Zu(b)||(this.lb+=b):this.setData(b)},Zu:function(b){return this.lb&&-1<this.lb.indexOf(b)},getFile:function(){return this.sg},qd:function(){return this.sg?this.yb+"/"+this.sg:this.yb},getData:function(){return this.lb},dx:function(){return this.lb?this.qd()+"?"+this.lb:this.qd()},clone:function(){return new c(this.yb,this.sg,this.lb,this.Ne,this.Kp,this.Zl)},hr:function(){return!(0==this.yb.indexOf("http://")||0==this.yb.indexOf("https://")|| | |
0==this.yb.indexOf("file:///"))},Ox:function(b,f){if(!e.isBrowser())return!1;if(this.hr())return e.isWebWorker()?location.hostname==b:g.ic()==b;if(f){if(!this.jr(f))return!1;if("file:"==f)return""==b}b=b.replace(".",".");return(new RegExp("^https?://(?:[a-z][a-z0-9-]+.)*"+b+"(?:/|$|:)","i")).test(this.yb)},jr:function(b){return e.isBrowser()&&b.indexOf(":")==b.length-1?this.hr()?location.protocol==b:0==this.yb.indexOf(b):!1},ua:function(){if(!e.isBrowser())return!0;var b=e.isWebWorker()?location.hostname: | |
g.ic();return!this.Ox(b,location.protocol)},ta:function(){return e.isBrowser()?!this.jr(location.protocol):!0}};c.iu=new c("about:blank");return c}); | |
define("lscG",[],function(){function e(e,c,b,f,h){this.request=e;this.Jz=c;this.os=f;this.vg=b;this.ve=h}e.Zh=1;e.Mk=2;e.Gk=3;e.Ge=4;e.cd=5;e.Md=6;e.Ik=7;e.Nd=8;e.yo=9;e.prototype={toString:function(){return["[|ControlRequest",this.os,this.vg,this.ve,this.request,"]"].join("|")},$i:function(){return this.Jz},getKey:function(){return this.os}};return e}); | |
define("lscc",["lscAH","lscG","lscAj"],function(e,g,c){function b(){}b.prototype={toString:function(){return"[Encoder]"},sx:function(b,c,d){var a=new e;b=b.ef();a.ye((b==g.Ge?"msg":b==g.cd?"send_log":b==g.Nd?"heartbeat":"control")+this.gf());a.ik(e.hi);a.Jh(c);a.Lh(d);return a},encode:function(b,c,d){for(d=d?"":"\r\n";0<b.getLength();){var a=b.Ug(),k=a.$i(),e=a.vg;if(k&&k.verifySuccess())k.kh(),b.shift();else return b=a.request,e==g.Ge?d+this.Wl(b,k,c):e==g.Md?d+this.Tl(b,k,c):e==g.Nd? | |
d+this.Ul(b,k,c):e==g.cd?d+this.Vl(b,k,c):d+this.Pg(b,k,c)}return null},expand:function(b,c){var d="";if(b)for(var a in b)a!==c&&(d+=a+"\x3d"+b[a]+"\x26");return d},Qg:function(b,c){var d=this.expand(b);return d+=this.expand(c)},Yp:function(b,c,d){var a=this.expand(b,d),a=a+this.expand(c,d);b[d]?a+=d+"\x3d"+b[d]:c&&(a+=d+"\x3d"+c[d]);return"LS_unq\x3d"+a.length+"\x26"+a},qo:function(b){return b},gf:function(){return".js"},lm:function(){return 0},om:function(){return 2},Pg:function(b,c,d,a){return this.Qg(b, | |
a)},Tl:function(b,c,d,a){return this.Qg(b,a)},Ul:function(b,c,d,a){return this.Qg(b,a)},Vl:function(b,h,d,a){return d?(a=c.ra(a,{LS_session:d}),this.Qg(b,a)):this.Qg(b)},Wl:function(b,c,d,a){return this.Yp(b,a,"LS_message")}};return b}); | |
define("lscd",["lscc","Inheritance","lscAj"],function(e,g,c){function b(){}var f=1,h={Wl:"encodeMessageRequest",Pg:"encodeControlRequest",Tl:"encodeDestroyRequest",Ul:"encodeHeartbeatRequest",Vl:"encodeLogRequest"},h=c.getReverse(h);b.prototype={Wl:function(d,a,f,e){e=c.ra(e,{LS_session:f});return this._callSuperMethod(b,h.encodeMessageRequest,[d,a,f,e])},Pg:function(d,a,k,e){e=c.ra(e,{LS_session:k});e=c.ra(e,{LS_unique:f++});return this._callSuperMethod(b,h.encodeControlRequest,[d,a,k, | |
e])},Tl:function(d,a,k,e){e=c.ra(e,{LS_unique:f++});return this._callSuperMethod(b,h.encodeDestroyRequest,[d,a,k,e])},Ul:function(d,a,k,e){k&&(e=c.ra(e,{LS_session:k}));e=c.ra(e,{LS_unique:f++});return this._callSuperMethod(b,h.encodeHeartbeatRequest,[d,a,k,e])},Vl:function(d,a,k,e){e=c.ra(e,{LS_unique:f++});return this._callSuperMethod(b,h.encodeLogRequest,[d,a,k,e])},expand:function(b,a){var c="";if(b)for(var f in b)c=f!==a?c+(f+"\x3d"+b[f]+"\x26"):c+(f+"\x3d"+encodeURIComponent(b[f])+"\x26");return c}, | |
Yp:function(b,a,c){b=this.expand(b,c);return b+=this.expand(a,c)}};g(b,e);return b});define("req",["Environment"],function(e){var g=e.isNodeJS()?require:null;return function(c){return g(c)}}); | |
define("lscAI",["lscd","lscAj","req"],function(e,g,c){function b(){for(var a in{oa:!0})this.ji=a;this.X=b}function f(){return!1}function h(){return!0}var d=new e;b.zo="LS_container\x3dlsc\x26";b.ac=function(a,b){for(var d in b)a[d]=!0===b[d]?h:!1===b[d]?f:b[d]};b.ac(b,{sa:!1,ua:!1,ta:!1,Zb:!1,$b:!1,tf:!1,cc:!1});b.prototype={da:function(){},ek:function(a,d,c,f,h,e){this.X.$b()?a.Oi("LS_eng\x3d"+e+"\x26"):a.Oi(b.zo);return this.oa(a,d,c,f,h)},oa:function(){return!1},od:function(){return d}}; | |
b.Cq=function(a){var b=[],d=c("xmlhttprequest-cookie");if(d)if(null==a)d.CookieJar.save().split("\r\n").forEach(function(a){""!=a&&b.push(a)});else{a=c("url").parse(a);for(var d=d.CookieJar.findFuzzy(a.hostname,a.pathname),f=0;f<d.length;f++)d[f].secure&&"https:"!==a.protocol||d[f].httponly&&null===a.protocol.match(/^https?:$/i)||b.push(d[f])}return b};b.Zo=function(a){var b=c("xmlhttprequest-cookie");if(b){var d="";a.forEach(function(a){d+="\r\n"+a});0<d.length&&(a=b.CookieJar.save(),b.CookieJar.load(a+ | |
d))}};return b}); | |
define("lscAO",["ASSERT","Executor","List"],function(e,g,c){function b(b){this.yf=-1;this.uh={};this.Nj={};this.vh={};this.Mj=0;this.T=b;this.zh=new c}b.prototype={Sh:function(b){this.T=b},Bw:function(b,c){this.yf++;this.uh[this.yf]=c;this.Nj[this.yf]=b;this.vh[this.yf]=!1;this.Mj++;return this.yf},ob:function(b){return this.uh[b]},$g:function(b){return this.Nj[b]},LB:function(b){return this.vh[b]},Qu:function(){this.Su();var b=[],c;for(c in this.uh)b.push(c);b.sort(function(b,a){return b- | |
a});for(c=0;c<b.length;c++)this.ky(b[c]);e.verifyValue(this.Mj,0);this.yf=-1;this.uh={};this.Nj={};this.vh={};this.Mj=0},clean:function(b){delete this.uh[b];delete this.Nj[b];delete this.vh[b];this.Mj--},qy:function(b){this.ob(b)&&(this.vh[b]=!0)},xv:function(b,c,d,a){this.zh.add({ur:b,bk:c,listener:d,timeout:a})},Su:function(){var b=this;this.zh.forEach(function(c){b.fireEvent("onAbort",c.listener,[c.ur,!1])});this.zh.clean()},ix:function(){var b=this;this.zh.forEach(function(c){b.Vg(c.ur,c.bk,c.listener, | |
c.timeout)});this.zh.clean()},Vg:function(b,c,d,a){var k=null;d&&(k=this.Bw(b,d));this.T.Vg(b,c,k,a)},fireEvent:function(b,c,d){c&&c[b]&&g.addTimedTask(c[b],0,c,d)},ly:function(b){this.fireEvent("onProcessed",this.ob(b),[this.$g(b)]);this.clean(b)},oy:function(b){this.fireEvent("onError",this.ob(b),[this.$g(b)]);this.clean(b)},my:function(b,c,d){this.fireEvent("onDeny",this.ob(b),[this.$g(b),c,d]);this.clean(b)},ny:function(b){this.fireEvent("onDiscarded",this.ob(b),[this.$g(b)]);this.clean(b)},ky:function(b){this.fireEvent("onAbort", | |
this.ob(b),[this.$g(b),this.LB(b)]);this.clean(b)}};return b});define("lscAd",["lscAe"],function(e){return function(g,c){var b=c?g:[];b.Cc=[];c||(b[0]=parseInt(g[0]),b[1]=parseInt(g[1]));for(var f=2,h=g.length;f<h;f++)g[f]?-1==g[f].length?b[f]=e.Ke:(c||(b[f]=g[f].toString()),b.Cc.push(f-1)):(c||(b[f]=""===g[f]?"":null),b.Cc.push(f-1));return b}}); | |
define("lscAc",["Executor","LoggerManager","ASSERT","lscAe","lscAd"],function(e,g,c,b,f){function h(a){this.wy=0;this.jb={};this.Ce={};this.Uv=1;this.rc={};this.qc={};this.ab=null;this.b=a}var d=g.getLoggerProxy(b.Ko);h.prototype={toString:function(){return"[SubscriptionsHandler]"},Sh:function(a){this.ab=a},Yo:function(a){var b=++this.wy;d.logInfo(g.resolve(11),a);a.Ky(b,++this.Uv,this);this.jb[b]=a;this.as(a)},qs:function(a){if(this.ab&&this.ab.tb){var b=a.Zc;(a.kr()||a.sf())&& | |
b&&(this.ab.Hd(b),delete this.Ce[b])}d.logInfo(g.resolve(12),a);b=a.ed;a.ez();delete this.jb[b];return a},ad:function(a,b){if(this.ab&&this.ab.tb&&a.nf()){c.verifyOk(a.nf());var f=a.ed;if(this.rc[f]){d.logDebug(g.resolve(13),a);var h=this;this.Ki(f,function(c){d.logDebug(g.resolve(14),a);h.ab.ad(c,b)})}else d.logDebug(g.resolve(15),a),this.ab.ad(a.Zc,b)}},as:function(a){if(this.ab&&this.ab.tb&&a.Kx()){var b=a.ed;d.logDebug(g.resolve(16));var f=this.ab.Be(a.Ow());c.verifyNotOk(this.rc[b]);c.verifyNotOk(this.qc[b]); | |
this.rc[b]=f;this.qc[b]=0;a.lz();d.logDebug(g.resolve(17),a);var h=this;this.Ki(b,function(c){d.logDebug(g.resolve(18),a);h.jb[b]?(a.oz(c),h.Ce[c]=b):h.ab&&h.ab.Hd(c)})}},Ki:function(a,b){c.verifyOk(this.rc[a]);0!==this.qc[a]&&c.verifyOk(this.qc[a]);var d=this.rc[a];this.qc[a]++;var f=this;d.then(function(d){c.verifyOk(f.rc[a]);c.verifyOk(f.qc[a]);1<f.qc[a]?f.qc[a]--:(delete f.rc[a],delete f.qc[a]);null!=d&&b(d)},function(){delete f.rc[a];delete f.qc[a]})},jx:function(){d.logDebug(g.resolve(19)); | |
for(var a in this.jb)this.as(this.jb[a])},zz:function(a){c.verifyNotOk(a.Ix());d.logDebug(g.resolve(20),a);delete this.Ce[a.Zc];a.az();a.dt&&delete this.jb[a.ed]},yz:function(){d.logDebug(g.resolve(21));for(var a in this.jb)this.zz(this.jb[a]);this.Ce={}},Vd:function(a,b){var f=this.Ce[a];if(f){var h=this.jb[f];if(this.rc[f]){d.logDebug(g.resolve(22),h);var e=this;this.Ki(f,function(h){d.logDebug(g.resolve(23),r);c.verifyValue(h,a);if(e.Ce[a]==f){var r=e.jb[f];r&&b.apply(r)}})}else h&&b.apply(h)}else{h= | |
function(c){e.Ki(c,function(f){f==a&&(d.logDebug(g.resolve(26),a),e.Ce[a]==c&&(f=e.jb[c])&&b.apply(f))})};d.logDebug(g.resolve(25),a);var e=this,q=0,n;for(n in this.rc){var t=this.jb[n];t&&(t.Zc?c.verifyDiffValue(t.Zc,a):(h(n),q++))}d.logDebug(g.resolve(27),q)}},EB:function(a,b){this.Vd(a[0],function(){this.update(f(a,!0),b,!1)})},oe:function(a,b,d){this.Vd(a,function(){this.gy(b,d)})},ne:function(a,b){this.Vd(a,function(){this.vv(b)})},me:function(a,b){this.Vd(a,function(){this.Tu(b)})},yv:function(a, | |
b,d){this.Vd(a,function(){this.dA(b,d)})},nB:function(a,b,d,c,f){this.Vd(a,function(){this.jz(b,d,c,f)})},DB:function(a){this.Vd(a,function(){})}};return h}); | |
define("EventDispatcher",["Executor","List","Inheritance"],function(e,g,c){function b(){this._callSuperConstructor(b)}function f(){this.initDispatcher()}f.prototype={initDispatcher:function(){this.Uh=new b;this.et=!1},addListener:function(b){b&&!this.Uh.contains(b)&&(b={c:b,sr:!0},this.Uh.add(b),this.Ml("onListenStart",[this],b,!0))},removeListener:function(b){b&&(b=this.Uh.remove(b))&&this.Ml("onListenEnd",[this],b,!0)},getListeners:function(){return this.Uh.asArray()},useSynchEvents:function(b){this.et= | |
!0===b},Ml:function(b,d,a,c){this.et?this.Tp(b,d,a,!0):e.addTimedTask(this.Tp,0,this,[b,d,a,c])},Tp:function(b,d,a,c){if(a&&a.c[b]&&(c||a.sr))try{d?a.c[b].apply(a.c,d):a.c[b].apply(a.c)}catch(f){}},dispatchEvent:function(b,d){var a=this;this.Uh.forEach(function(c){a.Ml(b,d,c,!1)})}};f.prototype.initDispatcher=f.prototype.initDispatcher;f.prototype.addListener=f.prototype.addListener;f.prototype.removeListener=f.prototype.removeListener;f.prototype.getListeners=f.prototype.getListeners;f.prototype.useSynchEvents= | |
f.prototype.useSynchEvents;f.prototype.dispatchEvent=f.prototype.dispatchEvent;b.prototype={remove:function(b){b=this.find(b);if(0>b)return!1;var d=this.data[b];d.sr=!1;this.data.splice(b,1);return d},find:function(b){for(var d=0;d<this.data.length;d++)if(this.data[d].c==b)return d;return-1},asArray:function(){var b=[];this.forEach(function(d){b.push(d.c)});return b}};c(b,g);return f}); | |
define("lsco",["Global","LoggerManager","EnvironmentStatus","ASSERT","lscAe"],function(e,g,c,b,f){function h(a,b){this.tB=b;this.Cv(a)}var d=g.getLoggerProxy(f.He),a=!1;h.$A=function(b){a=b};h.prototype={Wd:function(a){d.logDebug(g.resolve(31),a);this.g=a;this.Cb=null},Cv:function(a){var b=this;e.qa(a,"LS_e",function(a,d,c,f,h,e,k,w){b.Tr(a,d,c,f,h,e,k,w)});e.qa(a,"LS_t",function(){});e.qa(a,"LS_u",function(a,d,c){b.ph(a,d,c)});e.qa(a,"LS_v",function(a,d){b.ph(a,d,!0)});e.qa(a,"LS_o",function(a, | |
d){b.oe(a,d)});e.qa(a,"LS_n",function(a,d){b.ne(a,d)});e.qa(a,"LS_s",function(a,d){d.length?b.me(a,d):b.Tr(6,a,d)});e.qa(a,"LS_l",function(a,d,c,f){b.ha(a,d,c,f)});e.qa(a,"LS_w",function(a,d,c,f,h,e,k){b.Ny(a,d,c,f,h,e,k)});e.qa(a,"setTimeout",function(a,b){setTimeout(a,b)});e.qa(a,"alert",function(a){"undefined"!=typeof alert?alert(a):"undefined"!=typeof console&&console.log(a)})},pc:function(b,f,h,e){var q=!a&&!c.isUnloaded()&&null!=this.g;q&&b&&(q&=this.g.Dc(b));q&&f&&(q&=this.tB.Dc(f));q&&!e&& | |
(q=h?q&this.g.Ux():q&this.g.gr());d.isDebugLogEnabled()&&d.logDebug(g.resolve(32),q);return q},Sf:function(){if(null!=this.Cb){var a=this.g.Ec;b.verifyOk(this.Cb<=a)||d.logError(g.resolve(28),this.Cb);this.Cb++;if(this.Cb<=a)return!1;this.g.Jr();a=this.g.Ec;b.verifyValue(this.Cb,a)||d.logError(g.resolve(29),this.Cb);return!0}this.g.Jr();return!0},Tr:function(a,b,d,c,f,h,e,g){if(this.pc(b,null,1==a,3==a||4==a))if(1==a)this.g.Yy(d,c,h,f,e,g);else if(2==a)this.g.Uy(d);else if(3==a)this.g.Ij("syncerror"); | |
else if(4==a){a=30;if(null!=d){a=d;if(41==a){this.g.Py();return}if(48==a){this.g.Ij("expired");return}if(0<a&&30>a||39<a)a=39}this.ha(a,b,null,"The session has been forcibly closed by the Server")}else 5==a?this.g.gz(d):6==a?this.g.mz(d):7==a?this.bz(d):this.g.lh("Unsupported Server version")},bz:function(a){null==this.Cb?(this.Cb=a,this.Cb>this.g.Ec&&this.g.lh("Message prog higher than expected: "+a)):(this.Cb!=a&&this.g.lh("Message prog different than expected: "+a),a!=this.g.Ec&&this.g.lh("lscr prog different than expected: "+ | |
a))},ph:function(a,b,d){2>b.length?this.pc(a)&&this.g.Ty():this.pc(null,a)&&this.Sf()&&this.g.dn(b,d||!1)},ne:function(a,b){this.pc(null,a)&&this.Sf()&&this.g.ne(b)},me:function(a,b){this.pc(null,a)&&this.Sf()&&this.g.me(b)},oe:function(a,b){this.pc(null,a)&&this.Sf()&&this.g.oe(b)},Vy:function(a,c,f,h){if(this.pc()&&this.Sf())if(b.verifyValue(f.substring(0,3),"MSG")||d.logError(g.resolve(30),f),f=f.substr(3),39==a)for(a=parseInt(h),c=parseInt(c),a=c-a+1;a<=c;a++)this.g.pe(f,a);else 38==a?this.g.pe(f, | |
c):0>=a?this.g.Wm(f,a,h,c):this.g.Kf(f,a,h,c)},ha:function(a,b,d,c){null!=d&&isNaN(d)?this.Vy(a,b,d,c):null!=d?this.pc(null,b)&&this.g.cn(d,a,c):this.pc(b,null,null,!0)&&(4==a?this.g.Ij("recovery.error"):this.g.Lf(a,c))},Ny:function(a,b,c,f,h,e,t){if(this.pc(null,4==a||5==a||9==a?null:b)&&this.Sf())if(4==a)this.g.Vm(c,b);else if(5==a)this.g.Ym(c,b);else if(8==a)this.g.onUnsubscription(c);else if(6==a)this.g.onSubscription(c,f,h,e+1,t+1);else 9==a?this.g.Nf(c,b):d.logDebug(g.resolve(33),a)}};return h}); | |
define("lscN",["Executor"],function(e){function g(c,b){this.Te=c;this.wk=this.qw?this.Te.Vi:b?2*b:4E3}g.prototype={Qc:function(c){c?this.Ze():e.addTimedTask(this.ud,this.wk+Number(this.Te.te),this)},ud:function(){this.verifySuccess()||this.Ze()}};return g}); | |
define("lscO",["Inheritance","lscN"],function(e,g){function c(b,f,h,d,a){this._callSuperConstructor(c,[b,a]);this.tc=f;this.va=h;this.hc=d}c.prototype={verifySuccess:function(){return!this.va.Xx(this.tc)},Ze:function(){this.va.Hd(this.tc,this.hc+1,this.wk)},kh:function(){this.va.onUnsubscription(this.tc)}};e(c,g);return c}); | |
define("lscL",["Inheritance","lscN","ASSERT"],function(e,g){function c(b,d,a,f,e){this._callSuperConstructor(c,[b,e]);this.tc=d;this.va=a;this.hc=f}var b,f;for(f in{Qc:!0})b=f;c.prototype={verifySuccess:function(){return!this.va.Vx(this.tc)},Ze:function(){this.va.Be(this.tc,this.hc+1,this.wk)},Qc:function(f){f||this.va.oB(this.tc);this._callSuperMethod(c,b,arguments)},kh:function(){}};e(c,g);return c}); | |
define("lscM",["Inheritance","lscN","ASSERT"],function(e,g,c){function b(c,h,d,a,e,g,l){this._callSuperConstructor(b,[c,l]);this.tc=h;this.bs=d;this.va=a;this.Gu=e;this.hc=g}b.prototype={verifySuccess:function(){return!this.va.Wx(this.tc,this.bs)},Ze:function(){this.va.Js(this.tc,this.bs,this.Gu,this.hc+1,this.wk)},kh:function(){c.fail()}};e(b,g);return b}); | |
define("lscp","LoggerManager lscAe Executor EnvironmentStatus lscAj lscO lscL lscM".split(" "),function(e,g,c,b,f,h,d,a){function k(a,d,f,h){this.vs=1;this.o=a;this.El=d;this.lv=f;this.options=h;this.Va=0;this.tb=!1;this.yy=1;this.M={};this.jd=0;this.m={};this.vd={};this.Ru=c.addRepetitiveTask(this.Ap,5E3,this);b.addBeforeUnloadHandler(this);b.addUnloadHandler(this)}function p(a,b,d){this.kn=this.Ks=this.ln=!1;this.th=0;this.Oj=!1; | |
this.gv=d;this.ku=b;this.wd=a}var l=e.getLoggerProxy(g.dd);k.prototype={toString:function(){return"[|PushPageCollectionHandler|]"},Mc:function(){return this.Va},Dc:function(a){return a==this.Va},ol:function(a){var b=this.o.sc;b&&b.Hw(this.o.g.bb())>a&&l.logWarn(e.resolve(35))},wp:function(){this.m={};for(var a in this.vd)this.vd[a]={}},nd:function(a){for(var b in this.M)a(this.M[b],b)},Sr:function(a,b){this.M[a]=b;this.vd[a]={};this.jd++;this.El.S("clientsCount",this.jd);l.logDebug(e.resolve(36), | |
this);a!==g.Fo&&(this.lv.dm(function(a,d){b.mh("lscD",a,d)}),this.options.dm(function(a,d){b.mh("lscE",a,d)}),this.El.dm(function(a,d){b.mh("lscC",a,d)}),b.onStatusChange(this.o.Kb()),this.tb?b.Tc(this.Va):b.qe(this.Va))},Ur:function(a){l.logDebug(e.resolve(37),this,a);if(this.M[a]){var b=this.vd[a],d;for(d in b)this.ts(d);this.M[a].H();delete this.M[a];delete this.vd[a];this.jd--;this.El.S("clientsCount",this.jd)}},ee:function(a){a=this.m[a];return a?this.jf(a.wd): | |
(l.logDebug(e.resolve(38)),null)},jf:function(a){return this.M[a]?this.M[a]:(l.logDebug(e.resolve(39)),null)},Fy:function(a){this.nd(function(b){b.onStatusChange(a)});return!0},Tc:function(){this.wp();this.tb=!0;var a=++this.Va;this.nd(function(b){b.Tc(a)})},qe:function(){this.wp();this.tb=!1;var a=++this.Va;this.nd(function(b){b.qe(a)})},onSubscription:function(a){this.m[a]&&(this.m[a].ln=!1)},Mf:function(a){this.onUnsubscription(a)},Vx:function(a){return this.m[a]?this.m[a].ln&&!this.m[a].Oj:!1}, | |
oB:function(a){this.m[a]&&(this.m[a].Ks=!0)},onUnsubscription:function(a){if(this.m[a]){var b=this.m[a].wd;delete this.m[a];this.vd[b]&&delete this.vd[b][a]}},Xx:function(a){return this.m[a]?this.m[a].Ks&&this.m[a].Oj:!1},Wx:function(a,b){return this.m[a]?this.m[a].kn&&this.m[a].th==b:!1},Nf:function(a,b){this.m[a]&&b==this.m[a].th&&(this.m[a].kn=!1)},lx:function(a,b){if(this.M[a]&&this.o.zm()){var d=this.yy++;this.vd[a][d]=!0;var c=this.jw(b,d);this.m[d]=new p(a,c.add,c.remove);l.logDebug(e.resolve(40)); | |
this.Be(d,1);return d}l.logError(e.resolve(34),this,a);ASSERT.fail()},Be:function(a,b,c){this.m[a]&&(3<=b&&this.ol(1),this.m[a].ln=!0,c=new d(this.options,a,this,b,c),this.o.g.Zz(a,this.m[a].ku,this,2<=b,c))},ts:function(a){this.m[a]&&!this.m[a].Oj&&this.Hd(a,1)},Hd:function(a,b,d){this.m[a]&&(3<=b&&this.ol(1),this.m[a].Oj=!0,d=new h(this.options,a,this,b,d),this.o.g.aA(a,this.m[a].gv,this,2<=b,d))},ad:function(a,b){if(this.m[a]){var d=++this.m[a].th;this.Js(a,d,b,1)}},Js:function(b,d,c,h,e){if(this.m[b]&& | |
this.m[b].th==d){3<=h&&this.ol(1);this.m[b].kn=!0;var r=this.m[b].th;d=f.ra({LS_table:b,LS_op:"reconf",LS_win_phase:r},c);c=new a(this.options,b,r,this,c,h,e);this.o.g.$z(b,d,c)}},Cy:function(){this.nd(function(a){a.Lr()})},Dr:function(a){var b=this.M;this.M={};for(var d in b)b[d].nh(a)},Gy:function(a,b){this.nd(function(d){d.Lf(a,b)})},H:function(){c.stopRepetitiveTask(this.Ru);b.removeBeforeUnloadHandler(this);b.removeUnloadHandler(this)},unloadEvent:function(){this.Dr(!1)},preUnloadEvent:function(){this.Cy()}, | |
Ap:function(){var a=this;this.nd(function(b,d){b.ping().then(function(){},function(){a.Ur(d)})})},jw:function(a,b){this.vs++;var d={LS_table:b,LS_req_phase:this.vs,LS_win_phase:this.Va};f.ra(a,d);return{add:f.ra(a,{LS_op:"add"}),remove:f.ra(d,{LS_op:"delete"})}},nc:function(){this.nd(function(a){a.nc()})}};k.prototype.onPushPageLost=k.prototype.Ur;k.prototype.onNewPushPage=k.prototype.Sr;k.prototype.unloadEvent=k.prototype.unloadEvent;k.prototype.preUnloadEvent=k.prototype.preUnloadEvent;return k}); | |
define("lscl",["LoggerManager","BrowserDetection","Helpers","lscAe"],function(e,g,c,b){var f=g.isProbablyFX(1.5,!0)?10:50,h=f,d=0,a=0,k=0,p=null,l=null,m=null,q=e.getLoggerProxy(b.Od);return{Nc:function(){h=f;k=a=d=0;m=l=p=null},nx:function(){p=d;l=a;m=k;var b=c.getTimeStamp();k||(k=b);6E4<=b-k&&(d=0,k=b);a&&1E3>b-a&&d++;a=b},Zj:function(){l!=a&&(d=p,a=l,k=m)},pp:function(){if(0!=a){if(!h)return!1;if(d>=h)return q.logError(e.resolve(41)),h=0,!1}return!0}}}); | |
define("lsch",["lscc","Inheritance","lscAj","ASSERT"],function(e,g,c,b){function f(b){this.OB=b}var h={Pg:"encodeControlRequest"},h=c.getReverse(h);f.prototype={toString:function(){return"[WSEncoder]"},lm:function(b){return b.length+2},gf:function(){return""},Pg:function(d,a,e,g){var l=this.OB.Op;null==l?g=c.ra(g,{LS_session:e}):b.verifyValue(l,e);return this._callSuperMethod(f,h.encodeControlRequest,[d,a,e,g])}};g(f,e);return f}); | |
define("lscAK","lscAI Inheritance EnvironmentStatus Executor Environment LoggerManager lscAj ASSERT lsch lscAe req".split(" "),function(e,g,c,b,f,h,d,a,k,p,l){function m(a){this._callSuperConstructor(m);this.i=!1;this.Ma=this.Kj=this.La=this.Ni=null;this.oc=this.Of=!1;this.Ih=null;this.en=!1;this.Op=null;this.QB=a;this.X=m;this.PB=new k(this)}function q(a){a=a.toLowerCase();a=0==a.indexOf("http://")?a.replace("http://","ws://"):a.replace("https://","wss://");if(t){var b= | |
"";e.Cq(a).forEach(function(a){""!==b&&(b+="; ");b+=a.name+"\x3d"+a.value});var d={};0<b.length&&(d.headers={Cookie:b});return new t(a,"js.lightstreamer.com",d)}if("undefined"!=typeof WebSocket)return new WebSocket(a,"js.lightstreamer.com");if("undefined"!=typeof MozWebSocket)return new MozWebSocket(a,"js.lightstreamer.com");m.Ji();return null}var n=h.getLoggerProxy(p.Ya),t=null;f.isNodeJS()&&(t=l("faye-websocket").Client);var u=!1,r={};m.Ji=function(a){a?r[a]=!0:u=!0};m.Vz=function(){u=!1;r={}}; | |
m.Cx=function(){for(var a in r)return!0;return u};e.ac(m,{sa:function(a){if(u||a&&r[a])return!1;a=null;"undefined"!=typeof WebSocket?a=WebSocket:"undefined"!=typeof MozWebSocket&&(a=MozWebSocket);return a&&2==a.prototype.CLOSED?!1:t||a},ua:!0,ta:function(){return!f.isBrowser()||"https:"!=location.protocol},Zb:function(){return!0},$b:!1,tf:!0,cc:!1});m.prototype={toString:function(){return["[|WebSocketConnection",this.i,this.La,this.Ni,this.ym(),"]"].join("|")},da:function(){if(this.Ma){n.logDebug(h.resolve(48)); | |
this.La=null;if(this.Ma)try{this.Ma.close(1E3)}catch(a){n.logDebug(h.resolve(49),a)}this.Ka()}},pz:function(a,c,r,k,g){if(this.i)n.logError(h.resolve(42));else if(u)return!1;this.oc=!1;this.Ih=a.yb;this.La=c;try{this.Ma=q(this.Ih)}catch(l){return n.logDebug(h.resolve(50),l),!1}b.addTimedTask(this.qz,6E3,this,[this.La]);var p=this;this.Ma.onmessage=function(a){p.$m(a,c,r)};this.Ma.onerror=function(){p.Ry(c,k)};this.Ma.onclose=function(a){p.My(a,c,g,k)};this.Ma.onopen=function(){if(f.isNodeJS()){var a= | |
p.Ma.headers;a["set-cookie"]&&(a=d.wz(a["set-cookie"]),e.Zo(a))}p.$y(c)};return!0},qz:function(a){if(a==this.La&&this.Ma&&!this.en)try{n.logDebug(h.resolve(51)),this.Ma.close(1E3)}catch(b){n.logDebug(h.resolve(52))}},oa:function(a,b){if(this.i)return n.logError(h.resolve(43)),null;if(u)return!1;this.Kj=a;this.Ni=b;n.logDebug(h.resolve(53),a.qd());this.ym()&&this.Hs(b);return!0},zx:function(b){return a.verifyOk(this.Ih)?0==this.Ih.indexOf(b):(n.logError(h.resolve(44)),!1)},ym:function(){return null!= | |
this.Ma&&1==this.Ma.readyState},tg:function(a,b){if(!this.ym())return null;b&&(this.lt(b),a.Oi(e.zo));n.isDebugLogEnabled()&&n.logDebug(h.resolve(54),a.getFile(),a.getData());try{this.Ma.send(a.getFile()+"\r\n"+a.getData())}catch(d){return n.logError(h.resolve(45),d),!1}return!0},Hs:function(b){var d=this.tg(this.Kj,b);a.verifyOk(null!==d)||n.logError(h.resolve(46),b);d&&(this.i=!0,this.QB.Jv(this.La))},lt:function(a){this.Ni=a},$m:function(a,d,f){this.La!=d||c.isUnloaded()||(n.isDebugLogEnabled()&& | |
n.logDebug(h.resolve(55),a.data),this.Of=!0,b.executeTask(f,[a.data,this.Ni]))},Ry:function(a,d){this.La!=a||c.isUnloaded()||(n.logError(h.resolve(47)),this.oc|=!this.Of,b.executeTask(d,["wsc.unknown",this.La,!0,this.oc,!1]))},$y:function(a){this.La!=a||c.isUnloaded()||(this.en=!0,n.logDebug(h.resolve(56)),this.Kj&&this.Hs())},My:function(a,d,f,e){this.La!=d||c.isUnloaded()||(a=a?a.code:-1,n.logDebug(h.resolve(57),a,this.Of),1E3==a||1001==a?(b.modifyAllTaskParams(f,[this.La,!0]),b.addPackedTimedTask(f, | |
300),this.Ka()):1011==a?(this.oc|=!this.Of,f=this.La,this.Ka(),b.executeTask(e,["wsc.server",f,!0,this.oc,!0])):(this.oc|=!this.Of,f=this.La,this.Ka(),b.executeTask(e,["wsc."+a,f,!0,this.oc,!1])))},Ka:function(){this.en=this.i=!1;this.Kj=this.La=null;this.Of=!1;this.Ih=this.Ma=null},od:function(){return this.PB},rA:function(a){this.Op=a}};g(m,e);return m}); | |
define("lscI",["Inheritance","lscN"],function(e,g){function c(b,f,h,d){this._callSuperConstructor(c,[d]);this.Ot=b;this.cu=h;this.f=f}c.prototype={verifySuccess:function(){return!this.f.Dc(this.cu)},Ze:function(){this.f.Wi(this.Ot)},qw:function(){return this.Te.Vi},kh:function(){}};e(c,g);return c}); | |
define("lscr","EnvironmentStatus Helpers LoggerManager Executor lscl lscAe lscI lscG lscq ASSERT BrowserDetection lscAK".split(" "),function(e,g,c,b,f,h,d,a,k,p,l){function m(a,d,c,f,h,e,k){this.kl=b.packTask(this.kz,this);this.jl=b.packTask(this.bn,this);this.il=b.packTask(this.an,this);this.R=a;this.be=d;this.Ec=0;this.a=1;this.na=0;this.Ca=100*g.randomG(100);this.c=c;this.I=f;this.ub=c.ub;this.b=c.b;this.Qa=c.Qa;this.fa=null;this.Y=c.Y; | |
this.Ra=c.pd();this.or=this.ig=this.Zf=0;this.xe=this.yd=this.Dm=null;this.reset();this.$f=k;h&&(this.Qe=h.Qe,this.Ec=h.Ec,this.sessionId=h.sessionId,this.Bd=h.Bd,this.Ca=h.Ca,this.Zf=h.Zf,this.ck=h.ck,this.vm=h.vm)}var q=[,"OFF","CREATING","CREATED","FIRST_PAUSE","FIRST_BINDING","PAUSE","BINDING","RECEIVING","STALLING","STALLED","SLEEP"],n=c.getLoggerProxy(h.Od),t=c.getLoggerProxy(h.He);m.Pk=1;m.Ld=2;m.Ao=3;m.Co=4;m.Bo=5;m.wt=7;m.It=8;m.WB=9;m.YB=10;m.Ft=6;m.Nk=11;m.prototype={reset:function(){this.Qe= | |
0;this.sessionId=this.Bd=null;this.Zf=this.Ec=0;this.Gd=this.Yc=this.dl=!1;this.Yn="";this.Xc=!1},Vf:function(){},Ab:function(a,b){n.isDebugLogEnabled()&&n.logDebug(c.resolve(74),q[this.a],"-\x3e",q[a]);var d=this.a;this.a=a;this.na++;var f=this.na;this.a!=d&&this.c.fB(this.I,b);return f==this.na},gh:function(){this.Ca++},Dc:function(a){return this.Ca==a},nm:function(a){var b=this.a;return 1==b?h.Xb:11==b?a?h.pg:h.qg:2==b?this.$f?h.pg:h.CONNECTING:3==b||4==b||5==b?h.Fa+this.wq():10==b?h.Je:h.Fa+this.rq()}, | |
i:function(){return 1!=this.a&&2!=this.a&&11!=this.a},Ux:function(){return 2==this.a||7==this.a||5==this.a},gr:function(){return 3==this.a||8==this.a||9==this.a||10==this.a},Sx:function(){return!this.R},bb:function(){return this.i()?this.Bd:this.ck},fe:function(){return this.sessionId},Bb:function(a,b){var d=1!=this.a&&11!=this.a?!1:!0;if(!f.pp())return n.logDebug(c.resolve(75),this),this.pa("mad",d,!0),!1;0==d&&(n.logDebug(c.resolve(76),this),this.pa("new."+(b||""),!1,!1));n.logInfo(c.resolve(69), | |
this);this.reset();this.hs();this.Qa.S("sessionId",null);this.Qa.S("serverSocketName",null);this.Qa.S("serverInstanceAddress",null);this.ck=this.Qa.Hh;this.vm=this.b.Fn;this.gh();return!0},Ud:function(){if(!f.pp())return this.pa("madb",!1,!0),!1;this.Qe++;p.verifyOk(6==this.a||4==this.a||1==this.a)||n.logError(c.resolve(58));if(1==this.a){if(!this.Ab(4))return!1;this.hs()}this.bh(!0);this.gh();this.R?n.logDebug(c.resolve(77),this):n.logInfo(c.resolve(70),this);return!0},ws:function(a,b,d){this.I= | |
a;this.Yc||(n.logDebug(c.resolve(78),this),this.Xc=!1,2==this.a||11==this.a||1==this.a?this.c.We(this.I,b,d):6==this.a||4==this.a?this.c.$n(this.I,b,d):(this.Yc=!0,this.Gd=d,this.Yn=b,this.Wi(b)))},Sz:function(a){this.I=a;this.Xc||(n.logDebug(c.resolve(79),this),p.verifyOk(2!=this.a&&11!=this.a&&1!=this.a)||n.logError(c.resolve(59)),6==this.a||4==this.a?this.c.ct(this.I):(this.Xc=!0,this.Wi("slow")))},hs:function(){1!=this.a&&11!=this.a||this.ub.Dz();this.R&&this.be&&this.ub.zs()},bh:function(a){this.a!= | |
m.Pk&&this.a!=m.Ld&&this.a!=m.Nk&&(0<this.b.Xf?this.Y.dB(this.b.Xf,a):this.Y.kB(a))},pa:function(a,b,d){1!=this.a&&2!=this.a&&11!=this.a?(this.c.Hj(this.bb()),b||this.Xz(a),this.I=this.c.Xr(this.I,d),this.Qa.S("sessionId",null),this.Qa.S("serverSocketName",null),this.Qa.S("serverInstanceAddress",null),this.b.xs(),n.logInfo(c.resolve(71),this,a)):this.$f&&(this.$f=!1,this.I=this.c.Xr(this.I,d));this.cg(!d)},cg:function(a){this.gh();this.reset();this.Ab(a?11:1);n.logDebug(c.resolve(80),this)},rv:function(a){if(this.Ab(3== | |
this.a?4:6)){this.gh();var b=a;this.R&&(a>=this.b.te||this.b.S("pollingInterval",a),b=this.Jw());4!=this.a&&b&&0<b?(n.logDebug(c.resolve(81)),this.Ua("pause",b)):this.ud(this.na)}},ud:function(a,b,d,f){a==this.na&&(n.isDebugLogEnabled()&&n.logDebug(c.resolve(82),q[this.a],d),a="timeout."+this.a+"."+this.Qe,11==this.a&&d&&(a=d),2==this.a?this.$f?this.c.Ah(this.I,a,this.Gd):(this.pa("create.timeout",!0,!1),this.b.ox(),this.Ua("retryDelay",this.Cg(),"create.timeout")):3==this.a||7==this.a||10==this.a|| | |
11==this.a?this.Xc||this.Yc?this.c.We(this.I,a+".switch",this.Gd):!this.R||this.be?f?(n.logDebug(c.resolve(83)),this.c.Ah(this.I,a,this.Gd)):(n.logDebug(c.resolve(84)),this.Bb(this.sessionId,a,f)):this.c.We(this.I,a,!1):5==this.a?(this.ig--,this.Xc||this.Yc?this.c.We(this.I,a+".switch",this.Gd):0<this.ig||this.be?this.Bb(this.sessionId,a):this.R?this.c.We(this.I,a+".switch",this.Gd):this.Qb(this.I,a)):6==this.a?(this.R&&this.ub.vB(b),this.Ud("loop")):4==this.a?this.Ud("loop1"):8==this.a?this.zB(): | |
9==this.a?this.yB():(n.logError(c.resolve(60),this),p.fail()))},Nn:function(){return this.be||this.c.Nn()},Qb:function(a,b){var d=this.Nn();d&&this.pa("giveup",1!=this.a&&11!=this.a?!1:!0,!0);this.c.Qb(a,b,d)},ha:function(a,b,d,f,h,e,k){n.isDebugLogEnabled()&&n.logDebug(c.resolve(85),q[this.a],a,h,f,k);h?(this.pa(a,b,!1),this.Ua("retryDelay",this.Cg(),a)):f&&!k?(this.pa(a,b,!1),this.ud(this.na,0,"openfail")):8==this.a||10==this.a||9==this.a||7==this.a||6==this.a?k?(n.logDebug(c.resolve(86)),this.Ab(11, | |
!0),this.Ua("firstRetryMaxDelay",g.randomG(this.b.Ui),a,k)):(this.pa(a,b,!1),e?this.Ua("retryDelay",this.Cg(),a,k):this.Ua("firstRetryMaxDelay",g.randomG(this.b.Ui),a,k)):2==this.a||3==this.a||5==this.a?this.$f&&!b?(n.logDebug(c.resolve(87)),this.Ab(11,!0),this.Ua("retryDelay",this.Cg(),a,k)):this.Yc&&!this.be||l.isProbablyAndroidBrowser()?this.c.We(this.I,this.Yn+".error",this.Gd):(n.logDebug(c.resolve(88)),this.pa(a,b,!1),this.Ua("retryDelay",this.Cg(),a)):(n.logError(c.resolve(61),a,this),p.fail())}, | |
Um:function(a){this.fa&&this.fa.nq&&this.fa.nq();8==this.a||9==this.a||10==this.a||3==this.a?this.Yc?this.c.$n(this.I,this.Yn,this.Gd):this.Xc?this.c.ct(this.I):this.rv(a):(n.logError(c.resolve(62),this),p.fail())},ia:function(){2==this.a?this.Ab(3)&&this.xB():3!=this.a&&(7==this.a||5==this.a||9==this.a||10==this.a||8==this.a?this.Ab(8)&&this.AB():(n.logError(c.resolve(63),this),p.fail()))},Fi:function(){f.nx();this.xe=g.getTimeStamp();p.verifyOk(1==this.a||11==this.a)||n.logError(c.resolve(64)); | |
if(!this.Ab(2))return!1;this.Ua("currentConnectTimeout",this.b.Xe);this.fa=this.c.tq()},Ag:function(){this.xe=g.getTimeStamp();p.verifyOk(6==this.a||4==this.a)||n.logError(c.resolve(65),this);if(!this.Ab(6==this.a?7:5))return!1;this.Ua("bindTimeout",this.Yv());this.fa=this.c.tq()},Ua:function(a,d,f,h){n.isDebugLogEnabled()&&n.logDebug(c.resolve(89)+d+" ["+a+"]");return b.addTimedTask(this.ud,d,this,[this.na,d,f,h])},AB:function(){if(0<this.b.wf){var a=g.getTimeStamp();50>a-this.or&&this.Dm?b.modifyTaskParam(this.Dm, | |
0,this.na):(this.or=a,this.Dm=this.Ua("keepaliveInterval",this.b.wf))}},zB:function(){this.Ab(9)&&this.Ua("stalledTimeout",this.b.rk)},yB:function(){this.Ab(10)&&this.Ua("reconnectTimeout",this.b.yd,null,!0)},xB:function(){p.verifyValue(this.a,3)||n.logError(c.resolve(66));this.Ua("stalledTimeout",this.b.rk)},Yv:function(){return this.R?this.b.Xe+this.b.lj:0<this.ig&&null!=this.yd?this.yd:this.b.Xe},Jw:function(){if(4==this.a)return this.b.te;var a=this.b.te;if(this.xe)var b=g.getTimeStamp()-this.xe, | |
a=a>b?a-b:0;return a},Cg:function(){var a=g.getTimeStamp()-this.xe;return a>this.b.Yj?0:this.b.Yj-a},Du:function(){this.xe||(n.logError(c.resolve(67),this),p.fail(),this.yd=null);var a=g.getTimeStamp()-this.xe,b=this.b.Xe;this.yd=(a>b?b:a)+b},kz:function(a,b){!e.isUnloaded()&&this.Dc(b)&&""!==a&&(null==a?(f.Zj(),this.ha("nullresp")):this.fa.Po(b,a))},bn:function(a,b,d,c,h){!e.isUnloaded()&&this.Dc(b)&&(f.Zj(),this.ha("failure."+a,!1,d,c,null,h,!0))},an:function(a,b){this.Dc(a)&&(f.Zj(),this.ha("wrongend", | |
null,b,null,null,null,!0))},Zp:function(){this.ha("eval")},hz:function(){this.Yc||this.Xc||this.c.iz(this.I)},nz:function(){t.isDebugLogEnabled()&&t.logDebug(c.resolve(90));this.ia();8==this.a&&(this.ig=1)},gz:function(a){t.isDebugLogEnabled()&&t.logDebug(c.resolve(91),a);this.Zf=a;this.b.S("maxBandwidth",a)},Py:function(){t.isDebugLogEnabled()&&t.logDebug(c.resolve(92));this.ha("error41",!0)},Ty:function(){t.isDebugLogEnabled()&&t.logDebug(c.resolve(93));this.ia();this.c.nc()},Yy:function(a,b,d, | |
f,h,e){t.isDebugLogEnabled()&&t.logDebug(c.resolve(94));var g=this.ck;null==b||this.vm||(g=b=k.Wu(g,b));g!=this.Bd&&(this.c.Hj(this.Bd),this.Bd=g,this.c.Zm(this.Bd));f&&(this.R?this.b.S("idleTimeout",f):this.b.S("keepaliveInterval",f));2==this.a?(null!=this.sessionId&&this.sessionId!=a&&this.reset(),this.sessionId=a):(p.verifyValue(this.sessionId,a)||n.logError(c.resolve(68)),this.Du());this.ub.eB(this.R);this.ia();3==this.a?this.$f||(this.c.Tc(d),this.Qa.S("sessionId",a),this.Qa.S("serverSocketName", | |
h),this.Qa.S("serverInstanceAddress",this.Bd),this.dl&&(this.yi(),this.dl=!1)):(this.c.oh(d),this.oh());e&&this.c.Sy(e)},mz:function(a){t.isDebugLogEnabled()&&t.logDebug(c.resolve(95));this.ub.qB(a);this.ia()},Uy:function(a){t.isDebugLogEnabled()&&t.logDebug(c.resolve(96));this.Um(a)},Ij:function(a){f.Zj();this.ha(a,!0)},lh:function(a){t.isDebugLogEnabled()&&t.logDebug(c.resolve(97),a);this.pa("end",!0,!0)},dn:function(a,b){this.ia();this.c.dn(a,b)},ne:function(a){this.ia();this.c.ne(a)},me:function(a){this.ia(); | |
this.c.me(a)},oe:function(a){this.ia();this.c.oe(a)},Vm:function(a,b){this.ia();this.c.Vm(a,b)},Ym:function(a,b){this.ia();this.c.Ym(a,b)},Wm:function(a,b,d,c){this.ia();this.c.Wm(a,b,c,d)},pe:function(a,b){this.ia();this.c.pe(a,b)},Kf:function(a,b,d,c){this.ia();this.c.Kf(a,b,c,d)},cn:function(a,b,d){this.ia();this.c.cn(a,b,d)},Lf:function(a,b){this.lh(b);this.c.Lf(a,b)},onUnsubscription:function(a){this.ia();this.c.onUnsubscription(a)},onSubscription:function(a,b,d,c,f){this.ia();this.c.onSubscription(a, | |
b,d,c,f)},Nf:function(a,b){this.ia();this.c.Nf(a,b)},Jr:function(){this.Ec++},Wi:function(b){n.logInfo(c.resolve(72),this);var f=k.tw(b,this.ub.aj());b=new d(b,this,this.Ca,this.b);this.Y.zc(this.sessionId,f,a.Ik,b)},Xz:function(b){n.logInfo(c.resolve(73),this);b=k.mw(this.sessionId,b);this.gm(this.sessionId,b,a.Md,null,this.bb())},yi:function(){1!=this.a&&11!=this.a&&(2==this.a?this.dl=!0:0>=this.Zf&&0>=this.b.Pb||this.Zf!=this.b.Pb&&this.Y.zc(null,k.fw(this.b),a.Gk,null))},oh:function(){},gm:function(){throw Error("abstract method"); | |
}};return m}); | |
define("lscAJ",[],function(){function e(){this.pn=!1;this.Qj=0;this.to=!1}e.prototype={bq:function(e,c){if(!c&&!this.Nx(e))return null;0==this.Qj&&"/*"==e.substring(0,2)&&(this.to=!0);var b=-1;if(c&&!this.to)b=e.length;else{b=e.lastIndexOf(";\n");if(0>b)return null;b+=2}var f=e.substring(this.Qj,b);0==this.Qj&&this.to&&(f=f.substring(2,f.length));this.Qj=b;return f},Vn:function(e){return this.bq(e,!1)},Un:function(e){return this.bq(e,!0)},Nx:function(e){if(this.pn)return!0;var c=e.indexOf("setPhase("), | |
b=e.indexOf("setPhase(ph)");if(-1<c){if(-1>=b)return this.pn=!0;c=e.indexOf("setPhase(",c+1);if(-1<c&&e.lastIndexOf(";\n")>c)return this.pn=!0}return!1}};return e}); | |
define("lscAN","lscAI Inheritance Executor BrowserDetection EnvironmentStatus lscAJ Environment LoggerManager lscAj lscAe req".split(" "),function(e,g,c,b,f,h,d,a,k,p,l){function m(){this._callSuperConstructor(m);this.i=!1;this.rb=this.W=this.bc=this.K=null;this.Tn=!1;this.X=m}function q(a){return function(){c.executeTask(a)}}var n=a.getLoggerProxy(p.Ya),t=d.isBrowser()?2:3,u=!0,r;d.isNodeJS()&&(r=l("xmlhttprequest-cookie").XMLHttpRequest);var w=null;e.ac(m, | |
{sa:function(){if(null!==w)return w;b.isProbablyIE(9,!0)?w=!1:"undefined"!=typeof XMLHttpRequest?"undefined"!=typeof(new XMLHttpRequest).withCredentials?w=!0:d.Jx()&&(w=!0):!d.isBrowser()&&r&&(w=!0);null===w&&(w=!1);return w},tf:function(){return!b.isProbablyOldOpera()&&!b.isProbablyPlaystation()},ua:!0,ta:!0,Zb:function(){return d.isNodeJS()?!0:"file:"!=p.mg?!0:d.isBrowserDocument()?!1:!0},$b:!1,cc:!0});m.prototype={toString:function(){return["[|XSXHRConnection",this.i,this.K,this.bc,"]"].join("|")}, | |
da:function(){if(this.i){n.logDebug(a.resolve(99));this.K=null;if(this.W)try{this.W.abort()}catch(b){n.logDebug(a.resolve(100))}this.Ka()}},oa:function(b,d,f,e,k){if(this.i)return null;this.W=r?new r:new XMLHttpRequest;this.rb=new h;f=c.packTask(this.$m,this,[d,f,k,e]);this.W.onreadystatechange=q(f);this.K=d;this.bc=null;n.isDebugLogEnabled()&&n.logDebug(a.resolve(101),b.getFile(),b.getData());try{this.W.open(b.Ne,b.qd(),!0);this.W.withCredentials=b.Kp;var g=b.Zl;if(g)for(var l in g)this.W.setRequestHeader(l, | |
g[l]);this.W.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.W.send(b.getData());this.i=!0}catch(w){return n.logError(a.resolve(98),w),!1}return!0},$m:function(b,d,h,e){this.K!=b||f.isUnloaded()||(b=null,this.qf()&&d&&(3==this.W.readyState?b=this.rb.Vn(this.W.responseText):4==this.W.readyState&&(b=this.rb.Un(this.W.responseText)),n.isDebugLogEnabled()&&b&&n.logDebug(a.resolve(102),b),null!=b&&c.executeTask(d,[b,this.K])),4==this.W.readyState&&(this.qf()||(this.Tn?(e&&c.executeTask(e, | |
["status0",this.K,!1,u,!1]),u=!u,this.Tn=!1):e&&c.executeTask(e,["status"+this.W.status,this.K,!1,u,!1])),n.logDebug(a.resolve(103)),4!=this.W.readyState&&""!=b||!h||c.addTimedTask(this.Gf,100,this,[this.K,h]),this.Ka()))},Gf:function(a,b){c.executeTask(b,[a])},Ka:function(){this.i=!1;this.K=null;this.W&&(delete this.W.onreadystatechange,delete this.W)},qf:function(){try{if(null===this.bc){if(this.W.readyState<t)return!1;this.bc=200<=this.W.status&&299>=this.W.status;0==this.W.status&&(this.Tn=!0)}return this.bc}catch(b){return n.logDebug(a.resolve(104), | |
b),!1}}};g(m,e);return m}); | |
define("lscAE","lscAI Inheritance Executor EnvironmentStatus lscAJ LoggerManager lscAe".split(" "),function(e,g,c,b,f,h,d){function a(){this._callSuperConstructor(a);this.i=!1;this.xa=this.rb=this.K=null;this.Rj=0;this.X=a}function k(a){return function(){c.executeTask(a)}}var p=h.getLoggerProxy(d.Ya),l=null;e.ac(a,{sa:function(){return null!==l?l:l="undefined"!=typeof XDomainRequest?!0:!1},tf:!0,ua:!0,ta:!1,Zb:!1,$b:!1,cc:!1});a.prototype={toString:function(){return["[|IEXSXHRConnection", | |
this.i,this.K,"]"].join("|")},da:function(){if(this.i){p.logDebug(h.resolve(106));this.K=null;if(this.xa)try{this.xa.abort()}catch(a){p.logDebug(h.resolve(107))}this.Ka()}},oa:function(a,b,d,e,g){if(this.i)return null;this.Rj=0;this.xa=new XDomainRequest;this.rb=new f;g=c.packTask(this.Uz,this,[b,d,g]);var l=c.packTask(this.ip,this,[b,e,"xdr.err"]);e=c.packTask(this.ip,this,[b,e,"xdr.timeout"]);d=c.packTask(this.ks,this,[b,d,!1]);this.xa.onload=k(g);this.xa.onerror=k(l);this.xa.ontimeout=k(e);this.xa.onprogress= | |
k(d);this.K=b;p.isDebugLogEnabled()&&p.logDebug(h.resolve(108),a.getFile(),a.getData());try{this.xa.open(a.Ne,a.qd()),this.xa.send(a.getData()),this.i=!0}catch(w){return p.logError(h.resolve(105),w),!1}return!0},ip:function(a,d,f){this.K!=a||b.isUnloaded()||(p.logDebug(h.resolve(109)),c.executeTask(d,[f,a,!1,0==this.Rj,!1]))},ks:function(a,d,f){this.K!=a||b.isUnloaded()||(this.Rj++,d&&(a=f?this.rb.Un(String(this.xa.responseText)):this.rb.Vn(String(this.xa.responseText)),p.isDebugLogEnabled()&&p.logDebug(h.resolve(110), | |
a),null!=a&&c.executeTask(d,[a,this.K])))},Uz:function(a,d,f){this.K!=a||b.isUnloaded()||(this.ks(a,d,!0),this.Ka(),p.logDebug(h.resolve(111)),f&&c.addTimedTask(this.Gf,100,this,[f,a]))},Gf:function(a,b){c.executeTask(a,[b])},Ka:function(){this.i=!1;this.rb=this.K=null;this.Rj=0;this.xa&&(this.xa.onload=null,this.xa.onerror=null,this.xa.ontimeout=null,this.xa=this.xa.onprogress=null)}};g(a,e);return a}); | |
define("lscAA",["lscAI","Inheritance","Executor"],function(e,g,c){function b(){this._callSuperConstructor(b)}e.ac(b,{sa:!1,ua:!1,ta:!1,Zb:!1,$b:!1,cc:!1});b.prototype={oa:function(b,h,d){d&&c.addTimedTask(this.Qc,1E3,this,[d,h]);return!0},Qc:function(b,h){c.executeTask(b,["",h])}};g(b,e);return b}); | |
define("IFrameHandler",["BrowserDetection","EnvironmentStatus","Environment"],function(e,g,c){var b=e.isProbablyAWebkit()&&e.isProbablyChrome(32,!0)?null:"about:blank",f={},h={createFrame:function(d,a){if(!c.isBrowserDocument())return null;var g=document.getElementsByTagName("BODY")[0];if(!g)return null;a=a||b;var h=document.createElement("iframe");h.style.visibility="hidden";h.style.height="0px";h.style.width="0px";h.style.display="none";h.name=d;h.id=d;e.isProbablyIE()||e.isProbablyOldOpera()?(h.src= | |
a,g.appendChild(h)):(g.appendChild(h),h.src=a);try{if(h.contentWindow){try{h.contentWindow.name=d}catch(l){}f[d]=h.contentWindow;return f[d]}return document.frames&&document.frames[d]?(f[d]=document.frames[d],f[d]):null}catch(l){return null}},getFrameWindow:function(b,a,c){a&&!f[b]&&this.createFrame(b,c);return f[b]||null},disposeFrame:function(b){if(f[b]){try{document.getElementsByTagName("BODY")[0].removeChild(document.getElementById(b))}catch(a){}delete f[b]}},removeFrames:function(){for(var b in f)try{document.getElementsByTagName("BODY")[0].removeChild(document.getElementById(b))}catch(a){}f= | |
{}}};h.createFrame=h.createFrame;h.getFrameWindow=h.getFrameWindow;h.disposeFrame=h.disposeFrame;h.removeFrames=h.removeFrames;g.addUnloadHandler(h.removeFrames);return h}); | |
define("lscg",["lscd","Inheritance"],function(e,g){function c(){}c.prototype={lm:function(){return 15},om:function(b){return b?encodeURIComponent(b).length-b.length:0},qo:function(b){return"LS_querystring\x3d"+encodeURIComponent(b)}};g(c,e);return c});define("lscf",["lscg","Inheritance"],function(e,g){function c(){}c.prototype={toString:function(){return"[LegacyEncoder]"},gf:function(){return".html"},qo:function(b){return b}};g(c,e);return c}); | |
define("lscAB","lscAI lscAA Inheritance IFrameHandler Executor Environment LoggerManager lscf lscAe lscAj".split(" "),function(e,g,c,b,f,h,d,a,k,p){function l(a){this._callSuperConstructor(l);a&&(this.target=p.ak(a),b.getFrameWindow(a,!0));this.i=!1;this.X=l;this.sj=0}var m=new a,q=d.getLoggerProxy(k.Ya);e.ac(l,{sa:function(){return h.isBrowserDocument()},ua:!0,ta:!0,Zb:!0,$b:!0,cc:!1});l.prototype={toString:function(){return["[|FormConnection",this.target, | |
"]"].join("|")},da:function(){q.logDebug(d.resolve(113));this.i=!1;this.sj++},oa:function(a,b,c,h){if(this.i)return null;this._callSuperMethod(l,this.ji,[a,b,c,h]);try{this.sj++;var e=this.Sv();if(!e)return!1;q.isDebugLogEnabled()&&q.logDebug(d.resolve(114),a.getFile(),a.getData());e.Kc.method=a.Ne;e.Kc.target=this.target;e.Kc.action=a.qd();e.Sj.value=a.getData();e.Kc.submit();f.addTimedTask(this.hv,1E3,this,[e.Kc,this.sj]);this.i=!0}catch(k){return q.logError(d.resolve(112),k),!1}return!0},Sv:function(){var a= | |
document.getElementsByTagName("BODY")[0];if(!a)return null;var b={};b.Kc=document.createElement("FORM");try{b.Kc.acceptCharset="utf-8"}catch(d){}b.Kc.style.display="none";b.Sj=document.createElement("INPUT");b.Sj.type="hidden";b.Sj.name="LS_querystring";b.Kc.appendChild(b.Sj);a.appendChild(b.Kc);return b},hv:function(a,b){a.parentNode.removeChild(a);b==this.sj&&(this.i=!1)},od:function(){return m}};c(l,g);return l}); | |
define("lscAC","lscAI lscAA lscAH Inheritance IFrameHandler Executor EnvironmentStatus Environment lscAB LoggerManager lscf lscAe lscAj".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m,q){function n(a){this._callSuperConstructor(n);this.target=q.ak(a);this.Ac=0;this.i=!1;this.Xi=null;f.getFrameWindow(this.target,!0);this.X=n}var t=new l,u=p.getLoggerProxy(m.Ya);e.ac(n,{sa:function(){return a.isBrowserDocument()},ua:!1,ta:!1,Zb:!0,$b:!0,tf:!0, | |
cc:!1});n.prototype={toString:function(){return["[|FrameConnection",this.i,this.target,this.Ac,this.Xi,"]"].join("|")},Pt:function(a){a==this.Ac&&(this.Ac++,this.i&&(this.Ro(this.Ac,c.iu),this.i=!1))},da:function(){u.logDebug(p.resolve(116));var a=++this.Ac;h.addTimedTask(this.Pt,0,this,[a])},Ro:function(a,b,c,h,e){if(a==this.Ac&&!d.isUnloading()){this._callSuperMethod(n,this.ji,[b,c,h,e]);this.Ac++;u.isDebugLogEnabled()&&u.logDebug(p.resolve(117),b.getFile(),b.getData());try{f.getFrameWindow(this.target).location.replace(b.dx()), | |
this.i=!0}catch(k){return u.logError(p.resolve(115),k),!1}return!0}},ey:function(a,b,d,c){this.Xi||(this.Xi=new k(this.target));this.Ac++;if(a=this.Xi.oa(a,b,d,c))this.i=!0;return a},oa:function(a,b,d,f){if(a.method==c.hi)return this.ey(a,b,d,f);var e=++this.Ac;h.addTimedTask(this.Ro,0,this,[e,a,b,d,f]);return!0},od:function(){return t}};b(n,g);return n}); | |
define("Dismissable",["Executor"],function(e){function g(){this.initTouches()}g.prototype={clean:function(){},initTouches:function(c){this.fo=this.mf=0;this.timeout=c||5E3},JB:function(c){c==this.fo&&0>=this.mf&&this.clean()},dismiss:function(){this.mf--;0>=this.mf&&e.addTimedTask(this.JB,this.timeout,this,[this.fo])},touch:function(){this.fo++;0>this.mf&&(this.mf=0);this.mf++}};g.prototype.touch=g.prototype.touch;g.prototype.dismiss=g.prototype.dismiss;g.prototype.clean=g.prototype.clean;g.prototype.initTouches= | |
g.prototype.initTouches;return g});define("lscy","LoggerManager lscAC lscAH lscAj Executor EnvironmentStatus IFrameHandler Global Environment Inheritance Dismissable lscAe Helpers".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m,q){function n(a){this.path=a;this.xg=q.randomG();this.status=k.isBrowserDocument()&&(window.ActiveXObject||"undefined"!=typeof XMLHttpRequest)?2:-1;this.ri=++u;this.Sa="LS_AJAXFRAME_"+this.ri;this.initTouches();this.yu()}var t=e.getLoggerProxy(m.Ya),u=0,r={};n.Wv=function(a){r[a]||(r[a]= | |
new n(a),r[a].oa(!1));return r[a]};n.prototype={toString:function(){return["[|AjaxFrameHandler",this.status,"]"].join("|")},yu:function(){var b=this;a.qa(this.ri,"LS_a",function(a){b.Ly(a)},"A")},clean:function(){this.status=-1;a.Bi(this.ri,"LS_a","A");var b=this.path;r[b]&&delete r[b];d.disposeFrame(this.Sa)},Nc:function(a){this.xg++;this.status=a?3:0},oa:function(a){if(-1!=this.status&&(t.logDebug(e.resolve(118)),!this.Ba())){this.Nc(a);a=this.xg;b.er()&&t.logDebug(e.resolve(119));var d="id\x3d"+ | |
this.ri+"\x26";b.hj()||(d+="domain\x3d"+b.ic()+"\x26");d=new c(this.path,"xhr.html",d);(new g(this.Sa)).oa(d);f.addTimedTask(this.Pv,1E4,this,[a]);f.addTimedTask(this.hx,2E3,this,[a])}},Ly:function(){h.isUnloaded()||1==this.status||(t.logDebug(e.resolve(120)),this.status=1)},Pv:function(a){-1==this.status||this.xg!=a||this.Ba()||(t.logDebug(e.resolve(121)),this.oa(!0))},hx:function(a){-1==this.status||this.xg!=a||this.Ba()||(t.logDebug(e.resolve(122)),this.status=4)},disable:function(){this.status= | |
-1;this.xg++},Ba:function(){return 1===this.status},br:function(){return-1===this.status||3===this.status||4===this.status},bA:function(a,b,c,f){if(this.br())return!1;if(1!==this.status)return null;t.logDebug(e.resolve(123),a);var h;try{h=!1!==d.getFrameWindow(this.Sa).sendRequest(a,b,c,f)}catch(k){h=!1,t.logDebug(e.resolve(124),k)}!1===h&&this.disable();return h}};p(n,l,!0,!0);return n}); | |
define("lscAL","lscAI Inheritance lscy EnvironmentStatus Executor Environment LoggerManager lscAe".split(" "),function(e,g,c,b,f,h,d,a){function k(){this._callSuperConstructor(k);this.error=this.response=this.bc=this.sender=this.K=null;this.i=!1;this.a=0;this.LS_x=this.Qy;this.Pc=null;this.X=k}var p=d.getLoggerProxy(a.Ya);e.ac(k,{sa:function(){return h.isBrowserDocument()&&(window.ActiveXObject||"undefined"!=typeof XMLHttpRequest)},ua:!1,ta:!1,Zb:!0,$b:!1,cc:!0}); | |
k.prototype={toString:function(){return["[|XHRConnection",this.i,this.a,this.K,"]"].join("|")},oa:function(a,b,f,h,e){this.Pc=c.Wv(a.yb);if(this.Pc.br())return this.Pc.dismiss(),!1;if(!this.Pc.Ba()||this.i)return null;this.Pc.touch();this.K=b;this.bc=null;this.response=f;this.error=h;this.Gp=e;this.a++;var k=this,g=this.a;this.LS_h=function(){k.Vr(g)};this.i=!0;p.isDebugLogEnabled()&&p.logDebug(d.resolve(126),a.getFile(),a.getData());return this.Pc.bA(a.qd(),a.getData(),this,a.Zl)},da:function(){if(this.i){this.Ka(); | |
p.logDebug(d.resolve(127));try{this.sender&&this.sender.abort&&this.sender.abort()}catch(a){p.logError(d.resolve(125),a)}this.Ci()}},qf:function(){try{if(null===this.bc){if(2>this.sender.readyState)return!1;this.bc=200<=this.sender.status&&299>=this.sender.status}return this.bc}catch(a){return p.logDebug(d.resolve(128),a),!1}},Vr:function(a){b.isUnloaded()||a!=this.a||!this.sender||4!=this.sender.readyState&&"complete"!=this.sender.readyState||(a=null,this.qf()&&(a=this.sender.responseText,a=a.toString(), | |
"/*"==a.substring(0,2)&&(a=a.substring(2,a.length-2))),p.isDebugLogEnabled()&&p.logDebug(d.resolve(129),a),this.response&&f.executeTask(this.response,[a,this.K]),f.addTimedTask(this.Gf,100,this,[this.K]),this.Ka(),this.Ci())},Gf:function(a){f.executeTask(this.Gp,[a])},Qy:function(){b.isUnloaded()||(this.Pc.disable(),p.logDebug(d.resolve(130)),this.Ka(),this.error&&f.executeTask(this.error,["xhr.unknown",this.K,!1,!1,!1]),this.Ci())},Ci:function(){try{delete this.sender.onreadystatechange}catch(a){p.logDebug(d.resolve(131), | |
a)}try{delete this.sender}catch(a){p.logDebug(d.resolve(132),a)}this.response=this.error=null;this.Pc&&this.Pc.dismiss()},Ka:function(){this.i=!1;this.a++}};g(k,e);return k}); | |
define("lscAM","lscAI lscAL Inheritance EnvironmentStatus Executor BrowserDetection lscAJ Environment LoggerManager lscAe".split(" "),function(e,g,c,b,f,h,d,a,k,p){function l(){this._callSuperConstructor(l);this.rb=null;this.X=l}var m=k.getLoggerProxy(p.Ya),q=null;e.ac(l,{sa:function(){return null!==q?q:q=a.isBrowserDocument()?h.isProbablyIE()?!1:"undefined"!=typeof XMLHttpRequest?"undefined"!=typeof(new XMLHttpRequest).addEventListener:!1:!1}, | |
tf:function(){return!h.isProbablyOldOpera()},ua:!1,ta:!1,Zb:!0,$b:!1,cc:!0});l.prototype={toString:function(){return["[|XHRStreamingConnection",this.i,this.a,this.K,"]"].join("|")},oa:function(a,b,c,f,h){a=this._callSuperMethod(l,this.ji,[a,b,c,f,h]);m.logDebug(k.resolve(133));a&&(this.rb=new d);return a},Vr:function(a){!b.isUnloaded()&&a==this.a&&this.sender&&(a=null,this.qf()&&this.response&&(3==this.sender.readyState?a=this.rb.Vn(this.sender.responseText):4==this.sender.readyState&&(a=this.rb.Un(this.sender.responseText)), | |
m.isDebugLogEnabled()&&m.logDebug(k.resolve(134),a),null!=a&&f.executeTask(this.response,[a,this.K])),4==this.sender.readyState&&(!this.qf()&&this.response&&f.executeTask(this.response,[null,this.K]),m.isDebugLogEnabled()&&m.logDebug(k.resolve(135)),4!=this.sender.readyState&&""!=a||!this.Gp||f.addTimedTask(this.Gf,100,this,[this.K]),this.Ka(),this.Ci()))}};c(l,g);return l}); | |
define("lscAg",["Executor","IFrameHandler","Global","BrowserDetection","lscAj"],function(e,g,c,b,f){function h(a){this.$l=a;this.ready=!1;this.Jm=f.ic();this.Up=this.Ri=!1;this.yj=-1;this.Wp=a=f.ak(this.zq()+"_"+this.Jm);e.addTimedTask(this.Ou,3E3,this);var b="about:blank";this.Bj()&&(this.yj=++d,b=c.qa(this.yj,"EQCallback_"+a,this.fx(),"Q"),b="javascript:(function(){document.open();"+("document.domain\x3d'"+f.ic()+"';")+("parent."+b+"(window);")+"document.close();})()");try{this.gc=g.getFrameWindow(a, | |
!0,b),this.ty()?e.addTimedTask(this.Pl,1,this):this.Bj()||this.Pl()}catch(h){}}var d=0;h.prototype={yq:function(){return null},verify:function(){return!0},H:function(){e.addTimedTask(g.disposeFrame,0,g,[this.Wp]);null!==this.yj&&c.Bi(this.yj,"EQCallback_"+this.Wp,"Q");this.Up=!0},eg:function(){return this.Ri||this.Up?!1:f.ic()==this.Jm?!0:this.Rm()?!1:!0},Ba:function(){return this.ready},Pl:function(){var a=this.yq();this.Bj()?this.gc.document.write("\x3cscript\x3edocument.domain\x3d'"+this.Jm+"';\x3c/script\x3e"): | |
b.isProbablyOldOpera()&&!a||this.gc.document.open();a&&this.gc.document.write(a);this.Bj()||b.isProbablyOldOpera()&&!a||this.gc.document.close();this.ready=this.verify()},fx:function(){var a=this;return function(b){a.gc=b;a.Pl()}},Bj:function(){return b.isProbablyIE()&&!f.hj()},Rm:function(){return b.isProbablyIE()||b.isProbablyOldOpera()||b.isProbablyKonqueror(4.4,!0)},ty:function(){return b.isProbablyKonqueror()},Ut:function(a,b){this.Ri=!0;this.$l&&(this.$l.Rb=[a,b],e.executeTask(this.$l))},Ou:function(){this.ready|| | |
this.Ut(5)}};return h}); | |
define("lscAG","LoggerManager Executor lscAg Inheritance Dismissable lscAe Helpers".split(" "),function(e,g,c,b,f,h,d){function a(b,d){this.$t=b;this._callSuperConstructor(a,[d]);this.Ig=null;this.initTouches()}function k(a,b,d){try{a.appendChild(b),b.src=d}catch(c){}}var p=e.getLoggerProxy(h.Ya);a.prototype={toString:function(){return"[JSONPFrame]"},xu:function(a,b){try{var d=this.gw();if(!d)return d;var c=this.gc.document.createElement("script");c.id=a;c.type="text/javascript";g.addTimedTask(k, | |
50,null,[d,c,b])}catch(f){return p.logDebug(e.resolve(136),f),!1}return!0},kv:function(a){var b=this.gc.document.getElementById(a);g.addTimedTask(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},4E3)},clean:function(){this.H()},gw:function(){if(this.Ig)return this.Ig;this.Ig=this.gc.document.getElementsByTagName("BODY")[0];if(!this.Ig){if(this.hc)return 2E3<d.getTimeStamp()-this.hc?!1:null;this.hc=d.getTimeStamp();return null}return this.Ig},zq:function(){return"LS6__JF_"+this.$t}};b(a,c); | |
b(a,f,!0,!0);return a});define("lsce",["lscg","Inheritance"],function(e,g){function c(){}c.prototype={toString:function(){return"[JSONPEncoder]"}};g(c,e);return c}); | |
define("lscAF","lscAI lscAA Inheritance Helpers Environment lscAG Executor LoggerManager lsce lscAe".split(" "),function(e,g,c,b,f,h,d,a,k,p){function l(a){this._callSuperConstructor(l);this.originalTarget=a;this.target=a+b.randomG();this.Eb=new h(this.target,d.packTask(this.yr,this));this.Mi=0;this.zn="script_"+b.randomG();this.hc=null;this.fp=!1;this.hq=!0;this.X=l}var m,q;for(q in{ek:!0})m=q;var n=a.getLoggerProxy(p.Ya),t=/(^|&)LS_domain=[^&]*/, | |
u=new k;e.ac(l,{sa:function(){return f.isBrowserDocument()},ua:!0,ta:!0,Zb:!0,$b:!0,cc:!1});l.prototype={toString:function(){return["[|JSONPConnection",this.target,this.zn,this.hc,"]"].join("|")},yr:function(){this.fp=!0},ek:function(a,b,d,c,f,h){(this.hq||10==this.Mi)&&a.Oi("LS_force_head\x3dtrue\x26");this.hq=!1;var e=a.getData(),e=e.replace(t,"");0==e.indexOf("\x26")&&(e=e.substring(1));a.setData(e);return this._callSuperMethod(l,m,[a,b,d,c,f,h])},oa:function(c,f,e,k){this.da();if(this.fp)return!1; | |
if(!this.Eb.eg()&&this.Eb.Rm()||10==this.Mi)this.Eb.H(),this.Mi=0,this.target=this.originalTarget+b.randomG(),this.Eb=new h(this.target,d.packTask(this.yr,this));if(!this.Eb.Ba())return null;this.Mi++;n.isDebugLogEnabled()&&n.logDebug(a.resolve(137),c.getFile(),c.getData());var g=c.qd(),p=c.getData(),g=this.Eb.xu(this.zn,g+"?"+p);if(!g)return g;this.Eb.touch();this._callSuperMethod(l,this.ji,[c,f,e,k]);return!0},da:function(){this.Eb.dismiss();if(this.Eb.eg()||!this.Eb.Rm()){n.logDebug(a.resolve(138)); | |
try{this.Eb.kv(this.zn)}catch(b){}}},od:function(){return u}};c(l,g);return l}); | |
define("lscz","LoggerManager lscAN lscAE lscAM lscAL lscAC lscAF lscAB lscAA lscAK lscAe".split(" "),function(e,g,c,b,f,h,d,a,k,p,l){function m(a,b,d){this.Km=a;this.Cu=b;this.kp=d;this.Pj=-1}function q(){return!1}var n=e.getLoggerProxy(l.Ya);m.hC=function(){p.sa=q};m.iC=function(){g.sa=q;c.sa=q;b.sa=q;f.sa=q};m.gC=function(){a.sa=q;h.sa=q};m.Jo=[];l=[g,c,b,h];for(var t=0;t<l.length;t++)l[t].tf()&& | |
m.Jo.push(l[t]);m.xt=[g,c,f,d,a];m.ng=[g,c,f,d,h];m.Fx=function(a){return a.X===h};m.tC=function(a){return a.X.prototype.Qc!=k.prototype.Qc};m.pf=function(a,b,d,c,f,h,k){n.isDebugLogEnabled()&&n.logDebug(e.resolve(139),b.name||b.toString().match(u)[1]);if(!b.sa(a))return n.logDebug(e.resolve(140)),!1;if(d&&!b.ua())return n.logDebug(e.resolve(141)),!1;if(c&&!b.Zb())return n.logDebug(e.resolve(142)),!1;if(f&&!b.ta())return n.logDebug(e.resolve(143)),!1;if(h&&!b.cc())return n.logDebug(e.resolve(144)), | |
!1;if(a=k){a:{for(a=0;a<k.length;a++)if(k[a]==b){k=!0;break a}k=!1}a=!k}if(a)return n.logDebug(e.resolve(145)),!1;n.isDebugLogEnabled()&&n.logDebug(e.resolve(146),b.name||b.toString().match(u)[1]);return!0};m.prototype={tm:function(){return this.Pj<this.Km.length-1},Jq:function(a,b,d,f,h){for(n.isDebugLogEnabled()&&n.logDebug(e.resolve(147),"serverToUse",a,"isCrossSite",b,"areCookiesRequired",d,"isCrossProtocol",f,"hasExtraHeaders",h);this.tm();){this.Pj++;var k=this.Km[this.Pj];if(!((this.kp||this.Cu)&& | |
k===c||this.kp&&k===g)&&this.pf(a,k,b,d,f,h))return k}return null},pf:function(a,b,d,c,f,h){return m.pf(a,b,d,c,f,h,this.Km)},xc:function(){n.logDebug(e.resolve(148));this.Pj=-1}};var u=/^function\s?([^\s(]*)/;return m}); | |
define("lscAD",["lscAC","BrowserDetection","IFrameHandler","Executor"],function(e,g,c,b){function f(){this.Aj=!1}f.prototype={Bz:function(b){(this.Aj=b===e)&&c.getFrameWindow("LS6__HOURGLASS",!0)},hB:function(){b.addTimedTask(this.iB,900,this)},iB:function(){if(this.Aj&&(this.Aj=!1,!g.isProbablyAKhtml()&&!g.isProbablyIE(6,!0)&&!g.isProbablyIE(9,!1)))try{window.open("about:blank","LS6__HOURGLASS",null,!0)}catch(b){}}};return f}); | |
define("lsct","lscAe Inheritance lscr lscz lscAD lscAH lscAj lscq Executor LoggerManager BrowserDetection EnvironmentStatus lscAE lscAN".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m,q,n){function t(a,b,d,c,f,h,e){this._callSuperConstructor(t,arguments);this.Oe=this.zj=this.ec=this.ka=this.Mp=null;this.Vf(h)}function u(a){a&&a!=A||(A++,w=1)}var r={Bb:"createSession",Ud:"bindSession",cg:"shutdown",Ag:"bindSent",ia:"onEvent",ha:"onErrorEvent"}, | |
r=d.getReverse(r),w=1,A=1,C=p.getLoggerProxy(e.Od);p.getLoggerProxy(e.He);t.prototype={Vf:function(a){a=a||!this.b.Ei;this.Mp=new b(b.ng,!1,a);this.ec=this.R?new b(b.ng,!1,a):new b(b.Jo,!this.b.ro,a);this.ka=null},rq:function(){return this.R?e.bd:e.Fe},wq:function(){return this.R?e.bd:e.og},toString:function(){return["[|SessionHTTP",this.R,this.be,this.a,this.na,this.Ca,this.ig,this.sessionId,this.Yc,this.Xc,"]"].join("|")},Bb:function(a,b){if(!this._callSuperMethod(t,r.createSession,[a,b]))return!1; | |
this.Jl(this.na,b,a);return!0},Jl:function(a,b,c){if(a==this.na){this.c.Sp();if(d.er()){if(0>=w){C.logDebug(p.resolve(151));k.addTimedTask(this.Jl,3E3,this,[a,c,"offline"]);return}w--;0==w&&k.addTimedTask(u,2E4,null,[A])}a=this.Yl(c,this.Jl,b,!1);null!==a&&(a?this.Fi():!1===a&&(C.logWarn(p.resolve(150)),this.ha("no_impl_available",!0,!1,!1,!0)))}},Ud:function(a){if(!this._callSuperMethod(t,r.bindSession,[a]))return!1;this.Oe&&this.Oe.da();this.Kv();this.vi(this.na,a);return!0},Kv:function(){if(!m.isLoaded()&& | |
(null===this.b.qk&&(l.isProbablyAndroidBrowser()||l.isProbablyApple())||!0===this.b.qk)){var a=this.Qe,b=this;m.addOnloadHandler(function(){k.addTimedTask(function(){a==b.Qe&&b.a==c.It&&b.Wi("spinfix")},b.b.Pn)})}},vi:function(a,b){if(a==this.na){this.zj||this.R||(this.zj=new f);var d=this.Yl(null,this.vi,b,!1);null!==d&&(d?this.Ag():!1!==d||this.R||this.Qb(this.I,"streaming.unavailable"))}},Ah:function(){this.gh();var a=this.Yl(null,this.Ah,"network.error",!0);null!==a&&(a?this.Fi():!1===a&&(C.logError(p.resolve(149)), | |
this.ha("no_impl_available",!0,!1,!1,!0)))},cg:function(a){this._callSuperMethod(t,r.shutdown,[a]);this.Oe&&this.Oe.da()},Zi:function(b,d,f,k){var g=this.a==c.Pk||this.a==c.Nk,l=this.bb(),l=new h(l+e.Jk);l.Jh(this.b.Mb());l.Lh(this.b.Sg(g));var r=!l.ta()&&!l.ua();b=k?a.Lw(this.Ca,this.sessionId,this.b,d,this.ub.aj(),r,this.Ec):a.Iw(this.Ca,this.sessionId,this.b,this.Qa,g,this.R,b,d,this.ub.aj(),f,r);l.setData(b);return l},Yl:function(d,f,e,g){var l=this.a==c.Pk||this.a==c.Nk,r=!l,w=this.Zi(d,e,!0, | |
g),t=this.bb();this.Y.$k(null);this.ka&&this.ka.X==q&&(this.ka=null);var n=l?this.Mp:this.ec;this.ka&&!n.pf(t,this.ka.X,w.ua(),this.b.Mb(),w.ta(),this.b.dh(l))&&(n.xc(),this.ka=null);for(var m=!1,u=(this.R?"LS6__POLLFRAME":"LS6__PUSHFRAME")+"_"+this.Ra;(this.ka||n.tm())&&!1===m;){if(!this.ka){m=n.Jq(t,w.ua(),this.b.Mb(),w.ta(),this.b.dh(l));if(!m)return n.xc(),!1;this.ka=new m(u)}w.ik(b.Fx(this.ka)&&r?h.Nt:h.hi);g?w.ye(a.Mw(this.ka.od().gf())):w.ye(a.Mq(l,this.R,this.ka.od().gf()));m=this.ka.ek(w, | |
this.Ca,this.kl,this.jl,this.il,this.Ra);if(null===m)return C.logDebug(p.resolve(153)),k.addTimedTask(f,50,this,[this.na,e,d]),null;!1===m?this.ka=null:(C.logDebug(p.resolve(154)),n.xc(),this.Oe=this.ka)}return m},Ag:function(){this._callSuperMethod(t,r.bindSent);this.Qm()&&this.zj.Bz(this.Oe.X)},Qm:function(){return!this.R},ha:function(a,b,d,c,f,h){!c||this.ka.X!=n&&this.ka.X!=q||this.c.Oy(this.I);this._callSuperMethod(t,r.onErrorEvent,arguments)},ia:function(){this.a==c.Bo&&u();!this.Qm()||this.a!= | |
c.wt&&this.a!=c.Bo||this.zj.hB();this._callSuperMethod(t,r.onEvent)},gm:function(a,b,d,c,f){this.Y.zc(a,b,d,c,f)}};g(t,c);return t}); | |
define("lscu","lscAe lscr lsct Inheritance lscAK lscz lscq Executor LoggerManager ASSERT lscAH lscAj".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m){function q(a,b,d,c,f,h,e){this._callSuperConstructor(q,arguments);this.V=null;this.Vb=1;this.Pf=null;this.cf=!1}var n={Fi:"createSent",ud:"onTimeout",Um:"onLoop",bn:"onStreamError",an:"onStreamEnd",ha:"onErrorEvent",cg:"shutdown",Qb:"onSessionGivesUp"},n=m.getReverse(n),t=k.getLoggerProxy(e.Od); | |
q.prototype={toString:function(){return["[|SessionWS",this.R,this.be,this.a,this.na,this.Ca,this.Vb,this.ig,this.sessionId,this.V,this.Yc,this.Xc,"]"].join("|")},Xd:function(a){this.Vb=a},rq:function(){return this.R?e.Le:e.rg},wq:function(){return e.og},fn:function(){p.verifyValue(this.Vb,1)||t.logError(k.resolve(155));this.Pf=this.Ca;this.V=new f(this);var a=this.bb(),b=new l(a+e.Jk);b.Jh(this.b.Mb());b.Lh(this.b.Sg(!1));if(h.pf(a,f,b.ua(),this.b.Mb(),b.ta(),this.b.dh(!1))&&(t.logDebug(k.resolve(162)), | |
this.V.pz(b,this.Pf,this.kl,this.jl,this.il)))return this.Y.$k(this.V),this.Xd(2),!0;this.Xd(5);return!1},Fi:function(){this._callSuperMethod(q,n.createSent);this.b.Rl&&!this.cf&&this.fn()},vi:function(b,c){if(b==this.na)if(this.cf=!1,1==this.Vb?this.fn():2!=this.Vb||this.V.zx(this.bb())||(t.logWarn(k.resolve(160)),this.V.da(),this.Xd(1),this.fn()),6==this.Vb)this.Qb(this.I,"ws.early.closed");else if(5==this.Vb)this.Qb(this.I,"ws.notgood");else if(3==this.Vb)f.Ji(this.bb()),this.Qb(this.I,"ws.early.openfail"); | |
else{var h=this.Zi(null,c,!1,!1),e=!1;h.ye(d.Mq(!1,this.R,this.V.od().gf()));var g=!1;2==this.Vb?(e=this.V.ek(h,this.Ca,this.kl,this.jl,this.il,this.Ra),g=!0):4==this.Vb?e=this.V.tg(h,this.Ca):(p.fail(),t.logError(k.resolve(156),this));null===e?(t.logDebug(k.resolve(163)),a.addTimedTask(this.vi,50,this,[b,c])):!1===e?(t.logWarn(k.resolve(161)),this.Qb(this.I,"ws.false")):g||(t.logDebug(k.resolve(164)),this.Ag())}},Jv:function(a){this.Pf==a&&(t.logDebug(k.resolve(165)),this.Ag(),this.Xd(4))},ud:function(a, | |
b,d,c){a==this.na&&(this.a==g.Ld&&(this.cf=!0),this._callSuperMethod(q,n.onTimeout,[a,b,d,c]))},Um:function(a){this._callSuperMethod(q,n.onLoop,[a]);this.V&&this.V.lt(this.Ca)},bn:function(a,b,d,c,f){d?b==this.Pf&&this._callSuperMethod(q,n.onStreamError,[a,this.Ca,d,c,f]):(this.a==g.Ld&&(this.cf=!0),this._callSuperMethod(q,n.onStreamError,arguments))},an:function(a,b){b?a==this.Pf&&(this.a==g.Et||this.a==g.Ld||this.a==g.Ao?this.ha("ws.early.end",!1,!0):(p.verifyDiffValue(this.a,g.Co)||t.logError(k.resolve(157), | |
this),this._callSuperMethod(q,n.onStreamEnd,[this.Ca,b]))):(this.a==g.Ld&&(this.cf=!0),this._callSuperMethod(q,n.onStreamEnd,arguments))},ha:function(a,b,d,c,h,e){d?(p.verifyDiffValue(this.Vb,1)||t.logError(k.resolve(158),this),c?this.Xd(3):this.Xd(6),this.a==g.Et||this.a==g.Ld||this.a==g.Ao?t.logDebug(k.resolve(166),this):this.a==g.Co?(t.logDebug(k.resolve(167),this),c&&f.Ji(this.bb()),this.Qb(this.I,"ws.error."+a)):this.R&&this.a==g.Ft?(p.verifyNotOk(c)||t.logError(k.resolve(159),this),t.logDebug(k.resolve(168), | |
this),this.pa(a,b,!1),this.ud(this.na,0,"ws.broken.wait")):this._callSuperMethod(q,n.onErrorEvent,arguments)):(this.a==g.Ld&&(this.cf=!0),this._callSuperMethod(q,n.onErrorEvent,arguments))},cg:function(a){this._callSuperMethod(q,n.shutdown,[a]);this.V&&(this.Pf=null,this.V.da(),this.V=null,this.Y.$k(null));this.Xd(1)},Qm:function(){return!1},Qb:function(a,b){f.Ji(this.bb());this._callSuperMethod(q,n.onSessionGivesUp,[a,b])},oh:function(){this.V.rA(this.sessionId)},gm:function(a,b,d,c,f){this.Y.qu(a, | |
b,d,c,f)}};b(q,c);return q}); | |
define("lscv",["LoggerManager","Global","Helpers","ASSERT","lscAe"],function(e,g,c,b,f){function h(a){this.Uj=0;this.Ja=null;this.fh=!1;this.b=a;this.f=null}var d=e.getLoggerProxy(f.He),a=e.getLoggerProxy(f.Od);h.prototype={toString:function(){return["[","lscv",this.Ja,this.Uj,.5,7E3,"]"].join("|")},Hx:function(a){return null!=this.Ja&&this.Ja>a},Wd:function(a){this.f=a},aj:function(){return null!=this.Ja&&0<this.Ja?Math.round(this.Ja):null},zs:function(){this.Ja=null;this.fh= | |
!1},Dz:function(){this.fh=!1},vB:function(a){this.gt(a)},qB:function(a){b.verifyOk(this.f.gr())||d.logError(e.resolve(169));this.f.Sx()&&(this.gt(1E3*a)?this.b.On&&this.f.hz():this.f.nz())},eB:function(a){a||this.zs();this.Uj=c.getTimeStamp()},gt:function(b){var d=c.getTimeStamp();if(!this.Uj)return!0;b=d-this.Uj-b;if(null==this.Ja)return this.Ja=b,a.logDebug(e.resolve(172)),!1;if(2E4<b&&b>2*this.Ja&&(this.fh=!this.fh))return a.logInfo(e.resolve(170)),7E3<this.Ja;this.Ja=.5*this.Ja+.5*b;if(60>this.Ja)return this.Ja= | |
0,a.logDebug(e.resolve(173)),!1;if(this.Hx(7E3))return a.logInfo(e.resolve(171)),!0;a.logDebug(e.resolve(174));return!1}};return h}); | |
define("lscH",["LoggerManager","lscG","ASSERT","lscAe"],function(e,g,c,b){function f(b){this.sb=[];this.keys={};this.ui=b;this.py=0}var h=e.getLoggerProxy(b.Io);f.prototype={toString:function(){return["[|ControlRequestBatch",this.ui,this.sb.length,"]"].join("|")},Yk:function(b,a){this.keys[b]=a;this.sb.push(b)},ru:function(b,a){this.keys[b]?this.keys[b]=a:this.Yk(b,a)},Pe:function(b,a){var f=b.vg;if(f==g.Ge||f==g.cd||f==g.Nd){if(this.ui!=f)return h.logError(e.resolve(175), | |
this),c.fail(),!1;f==g.Nd?this.ru("H",b):this.Yk(this.py++,b);return!0}if(this.ui!=g.Zh)return h.logError(e.resolve(176),this),c.fail(),!1;var p;switch(f){case g.Gk:p="C";break;case g.Ik:p="F";break;case g.yo:p="X"+b.getKey();break;default:p=b.getKey()}var l=this.keys[p];h.logDebug(e.resolve(180),this,p,b);if(l){if(f==g.Gk||f==g.Ik){a||(h.logDebug(e.resolve(181)),this.Wn(p,b));return}if(f==g.Mk){l.ve?(h.logDebug(e.resolve(182)),a||this.Wn(p,b)):l.vg==g.Mk?h.logDebug(e.resolve(183)):(h.logDebug(e.resolve(184)), | |
c.verifyNotOk(a)||h.logError(e.resolve(177),this),a||this.Nz(p));return}if(f==g.Md){for(;l&&b.ve!=l.ve;)h.logDebug(e.resolve(185)),p+="_",l=this.keys[p];if(l){h.logDebug(e.resolve(186));return}}else{a||(h.logDebug(e.resolve(187)),this.Wn(p,b));return}}h.logDebug(e.resolve(188));this.Yk(p,b)},getLength:function(){return this.sb.length},Wn:function(b,a){this.keys[b]=a},vn:function(b){if(this.sb.length<=b)return h.logError(e.resolve(178)),null;var a=this.sb[b];this.sb.splice(b,1);b=this.keys[a];delete this.keys[a]; | |
return b},Nz:function(b){if(!this.keys[b])return h.logError(e.resolve(179)),null;for(var a=0;a<this.sb.length;a++)if(this.sb[a]==b)return this.vn(a)},shift:function(){return this.vn(0)},pop:function(){return this.vn(this.sb.length-1)},xf:function(){return this.rm(this.sb.length-1)},Ug:function(){return this.rm(0)},rm:function(b){return 0>=this.sb.length?null:this.keys[this.sb[b]]},ef:function(){return this.ui}};return f}); | |
define("lscF","lscG lscH LoggerManager lscAH Executor lscz lscAe ASSERT".split(" "),function(e,g,c,b,f,h,d,a){function k(){this.a=this.request=this.Gc=this.za=null}function p(a,b,d,c){this.um=this.Ii=this.uj=this.Il=this.Mm=this.Ha=this.ec=null;this.Ch=this.rd=this.Db=0;this.a=this.status=this.N=1;this.Xh=0;this.s=null;this.Gv=!1;this.wc=a;this.b=b;this.Xl=d;this.V=null;this.Vf(c);this.xc()}var l=c.getLoggerProxy(d.Io),m={1:"IDLE",2:"STAND BY", | |
3:"WAITING RESP"};p.prototype={toString:function(){return["[|ControlConnectionHandler",m[this.status],this.s,this.Ch,this.Db,"]"].join("|")},HA:function(a){this.Ch=a;l.logDebug(c.resolve(210),this)},dB:function(a,b){b?(this.rd=this.Db=a,l.logInfo(c.resolve(196),this)):0==this.rd||a<this.rd?(this.Db=a,l.logInfo(c.resolve(197),this)):(this.Db=this.rd,l.logInfo(c.resolve(198),this));1==this.status&&this.Is(this.N)},Is:function(a){1==this.status&&this.N==a&&0!=this.Db&&(l.logDebug(c.resolve(211),this), | |
this.zc(null,"",e.Nd))},kB:function(a){a?(l.logInfo(c.resolve(199),this),this.rd=this.Db=0):0==this.rd?(l.logInfo(c.resolve(200),this),this.Db=0):(l.logInfo(c.resolve(201),this),this.Db=this.rd)},Vf:function(a){this.ec=new h(h.xt,!1,!this.b.Ei||a);this.Ha=null},da:function(){l.logDebug(c.resolve(212));this.Ha&&this.Ha.da()},ea:function(a){this.N++;1==a&&0<this.Db&&f.addTimedTask(this.Is,this.Db,this,[this.N]);l.isDebugLogEnabled()&&l.logDebug(c.resolve(213)+m[this.status]+" -\x3e "+m[a]);this.status= | |
a},xc:function(){l.logDebug(c.resolve(214),this);this.Ch=0;this.Mm=new g(e.Ge);this.Il=new g(e.Zh);this.um=new g(e.Nd);this.V=null;this.rd=this.Db=0;this.uj||(this.uj=new g(e.cd));this.Ii||(this.Ii=new g(e.Zh));this.Wj=[this.Mm,this.Il,this.uj,this.Ii,this.um];this.a++;var b=this.s?this.s.ef():null;null!==b&&b!==e.Md&&b!==e.cd?(a.verifyDiffValue(this.status,1)||l.logError(c.resolve(189)),this.da(),this.s=null,this.ea(1,"_reset"),this.Fc(!1,"reset1")):null===b&&(a.verifyValue(this.status,1)||l.logError(c.resolve(190)), | |
a.verifyValue(this.s,null)||l.logError(c.resolve(191)),this.Fc(!1,"reset2"))},$k:function(a){a?l.logDebug(c.resolve(215),this):this.V&&l.logDebug(c.resolve(216),this);this.V=a},zc:function(a,b,d,c,h){f.addTimedTask(this.ap,0,this,[this.a,a,b,d,c,h])},qu:function(a,b,d,c,f){this.ap(this.a,a,b,d,c,f)},Nu:function(a,b){return b==e.Md||b==e.cd?!0:this.a===a},cp:function(a,b){a==e.Ge?this.Mm.Pe(b):a==e.cd?this.uj.Pe(b):a==e.Md?this.Ii.Pe(b):a==e.Nd?this.um.Pe(b):this.Il.Pe(b)},ap:function(a,b,d,f,h,k){this.Nu(a, | |
f)&&(l.logInfo(c.resolve(202),this,d),a=new e(d,h,f,b,k),this.cp(f,a),1==this.status?this.Fc(!0,"add"):l.logDebug(c.resolve(217),this))},Fc:function(a,b){!0===a?(l.logDebug(c.resolve(218),a,this),this.Qp(this.N,b)):f.addTimedTask(this.Qp,!1===a?0:a,this,[this.N,"async."+b])},Qp:function(a,b){if(a==this.N){for(var d=0;1>d;){d++;this.ea(2,"dequeueControlRequests");l.logDebug(c.resolve(219),b,this);var f=null;null!=this.s?(l.logDebug(c.resolve(220)),f=this.Gs(this.s)):(l.logDebug(c.resolve(221)),f=this.Wz()); | |
if(1==f)l.logInfo(c.resolve(203)),this.s=null;else{if(2==f){l.logInfo(c.resolve(204));this.Fc(200,"later");return}if(3==f){l.logWarn(c.resolve(193));this.s&&this.s.Tm(!0);this.s=null;this.Fc(!1,"no");return}if(4==f){l.logInfo(c.resolve(205));this.ea(3,"dequeueControlRequests");this.s&&this.s.Tm();this.Fc(4E3,"http");return}if(5==f)l.logInfo(c.resolve(206)),this.ea(3,"dequeueControlRequests"),this.s&&this.s.Tm(),this.s=null,this.ea(1,"dequeueControlRequests");else{l.logInfo(c.resolve(207));this.da(); | |
this.ea(1,"dequeueControlRequests");return}}}this.Fc(!1,"limit")}},Wz:function(){for(var a=0;a<this.Wj.length;){this.Xh=this.Xh<this.Wj.length-1?this.Xh+1:0;if(0<this.Wj[this.Xh].getLength())return this.Gs(this.Wj[this.Xh]);a++}return null},Gs:function(h){var e=this.wc.bb(),k;k=this.b.Mb();var g=this.b.Sg(!1),r=h.Ug();r?(r=new b((r.ve&&!0!==r.ve?r.ve:e)+d.Jk),r.Jh(k),r.Lh(g),k=r):k=null;if(null==k)return l.logDebug(c.resolve(222)),1;l.logDebug(c.resolve(223));g=!1;if(this.V){l.logDebug(c.resolve(224)); | |
g=this.Np(h,this.V);if(null==g)return l.logDebug(c.resolve(225)),1;k.ye(g.getFile());k.setData(g.getData());g=this.V.tg(k);if(!1===g)this.V=null;else return null===g?2:5}this.Ha&&!this.ec.pf(e,this.Ha.X,k.ua(),this.b.Mb(),k.ta(),this.b.dh(!1))&&(this.ec.xc(),this.Ha=null);for(;this.Ha||this.ec.tm();){if(!this.Ha){g=this.ec.Jq(e,k.ua(),this.b.Mb(),k.ta(),this.b.dh(!1));if(!g)return l.logWarn(c.resolve(194),this.Ha),this.ec.xc(),3;this.Ha=new g("LS6__CONTROLFRAME");l.logDebug(c.resolve(226),this.Ha)}g= | |
this.Np(h,this.Ha);if(null==g)return l.logDebug(c.resolve(227)),1;k.ye(g.getFile());k.setData(g.getData());k.ik(g.Ne);this.s.EA(this.N);this.Ha.da();this.Gv&&(k.lb=k.lb.replace(/LS_session=.*&/g,"LS_session\x3dFAKE\x26"));g=this.Ha.oa(k,this.s.a,f.packTask(this.cz,this),f.packTask(this.ha,this));if(!1===g)l.logDebug(c.resolve(228)),this.Ha=null;else{if(null===g)return l.logDebug(c.resolve(229)),2;this.ec.xc();return 4}}!1!==g&&(l.logError(c.resolve(192)),a.fail());return 3},Np:function(a,b){var d= | |
b.od();if(null==this.s)this.s=new k,this.s.Qs(d),this.s.fill(a,this.Ch,this.wc.fe(),this.b.Mb(),this.b.Sg(!1));else if(this.s.uy(d)&&(this.s.Qs(d),d=this.s.Hz(this.Ch,this.wc.fe(),this.b.Mb(),this.b.Sg(!1))))for(var c=d.ef();0<d.getLength();)this.cp(c,d.shift());return this.s.isEmpty()?this.s=null:this.s.request},cz:function(a,b){if(this.s&&b==this.s.a){l.logInfo(c.resolve(208),b);this.ea(1,"onReadyForNextRequest");var d=this.s.Ug().vg;this.s=null;d==e.Md||this.Ax(a)?this.Fc(!1,"ready4next"):this.wc.rB()}}, | |
Ax:function(a){return""===a?!0:null===a.match(/^window.LS_lastError\[\d+] = "sync error";$/m)},ha:function(a,b){this.s&&b==this.s.a&&(l.logInfo(c.resolve(209),this,a),this.ea(1,"onErrorEvent"),this.s=null,this.Fc(!1,"error"))}};k.prototype={toString:function(){return this.za?this.za.toString():null},ef:function(){return this.za?this.za.ef():null},Ug:function(){return this.za?this.za.Ug():null},getLength:function(){return this.za?this.za.getLength():0},shift:function(){return this.za?this.za.shift(): | |
null},uy:function(a){return a!=this.Gc},Qs:function(a){this.Gc=a},fill:function(a,b,d,f,h){if(!(0>=a.getLength()))if(this.za=new g(a.ef()),this.request=this.Gc.sx(a,f,h),f="",h=this.Gc.encode(a,d,!0),null===h)this.request=this.za=null;else{var e=this.Gc.lm(this.request.getFile()),k=this.Gc.om(h)+h.length;0<b&&k+e>b&&l.logWarn(c.resolve(195),f);do f+=h,this.za.Pe(a.shift()),e+=k,0<a.getLength()&&(h=this.Gc.encode(a,d))&&(k=this.Gc.om(h)+h.length);while(h&&(0==b||e+k<b)&&0<a.getLength());this.request.setData(this.Gc.qo(f))}}, | |
Hz:function(a,b,d,c){var f=this.za;this.za=null;this.fill(f,a,b,d,c);return 0<f.getLength()?f:null},EA:function(a){this.a=a},isEmpty:function(){return 0>=this.getLength()},Tm:function(a){for(var b=0,d=null;d=this.za.rm(b);)(d=d.$i())&&f.addTimedTask(d.Qc,0,d,[a]),b++}};return p}); | |
define("lscJ",["Inheritance","lscN","lscAj"],function(e,g){function c(b,d,a,f,e,g,m){this._callSuperConstructor(c,[d]);this.En=f;this.Rc=e;this.bk=g;this.a=a;this.wc=b;this.KB=m}var b,f;for(f in{Qc:!0})b=f;c.prototype={Qc:function(f){this._callSuperMethod(c,b,[f]);f||(this.wc.cA(this.bk,this.Rc),this.KB||this.wc.zy(this.bk,this.Rc))},verifySuccess:function(){return this.wc.Mu(this.a)&&this.En.J[this.Rc]&&null!=this.En.J[this.Rc].yh?!1:!0},Ze:function(){this.wc.Tz(this.Rc,this)},kh:function(){}}; | |
e(c,g);return c}); | |
define("lscK",["lscJ","lscG","LoggerManager","lscAe"],function(e,g,c,b){function f(b,a,c){this.active=!1;this.wj=0;this.Ad={};this.Ee={};this.jt=0;this.Y=b;this.ca=a;this.Te=c}var h=c.getLoggerProxy(b.Dt);f.prototype={da:function(){this.active=!1;this.Ad={};this.jt=0;this.Ee={};this.wj++;h.logDebug(c.resolve(236))},Vk:function(){h.logDebug(c.resolve(237));if(!this.active){for(var b in this.Ad){var a=this.Ad[b],f;for(f in a.J){var g=a.J[f].yh;if(null!=g){var l= | |
new e(this,this.Te,this.wj,a,f);this.Dn(f,g,l)}}}this.active=!0}},tg:function(d,a,f,g){h.logDebug(c.resolve(238));var l=this.Ad[a];null==l&&(l={Cf:0,J:{}},this.Ad[a]=l);l.Cf++;d={LS_message:d};var m=!1;f&&(d.LS_outcome="",m=!0);a!=b.vc&&(d.LS_sequence=encodeURIComponent(a),m=!0,g&&(d.LS_max_wait=g));m&&(d.LS_ack="",d.LS_msg_prog=a==b.vc?this.iy(l.Cf):l.Cf);g={};g.yh=d;g.listener=f;l.J[l.Cf]=g;this.active&&(h.logInfo(c.resolve(230),d),a=new e(this,this.Te,this.wj,l,l.Cf,a,m),this.Dn(l.Cf,d,a))},iy:function(b){var a= | |
++this.jt;this.Ee[a]=b;return a},Dh:function(b){return this.Ee[b]?this.Ee[b]:b},Kz:function(b){for(var a in this.Ee)if(this.Ee[a]==b){delete this.Ee[a];break}},Mu:function(b){return b==this.wj},Tz:function(b,a){var f=a.En.J[b].yh;h.logDebug(c.resolve(239),f);this.Dn(b,f,a)},Dn:function(b,a,c){this.Y.zc(b,a,g.Ge,c)},ju:function(d,a){a=d==b.vc?this.Dh(a):a;h.logInfo(c.resolve(231),d,a);var f=this.Ad[d];f.J[a]&&(null!=f.J[a].yh&&(h.logDebug(c.resolve(240)),f.J[a].yh=null),null==f.J[a].listener&&(h.logDebug(c.resolve(241)), | |
this.Me(d,a)))},zy:function(b,a){h.logDebug(c.resolve(242),b,a);this.Me(b,a)},Me:function(d,a){h.logDebug(c.resolve(243));var f=this.Ad[d];f&&f.J[a]&&(delete f.J[a],d==b.vc&&this.Kz(a))},ob:function(b,a){var c=this.Ad[b];return c&&c.J[a]&&c.J[a].listener?c.J[a].listener:null},cA:function(b,a){h.logDebug(c.resolve(244),b,a);var f=this.ob(b,a);if(f){var e=this.ca.jf(f.wd);e&&e.Rr(f.xh)}},Qt:function(d,a){a=d==b.vc?this.Dh(a):a;h.logInfo(c.resolve(232),d,a);var f=this.ob(d,a);if(f){var e=this.ca.jf(f.wd); | |
e&&e.Pr(f.xh)}this.Me(d,a)},By:function(d,a){a=d==b.vc?this.Dh(a):a;h.logInfo(c.resolve(233),d,a);var f=this.ob(d,a);if(f){var e=this.ca.jf(f.wd);e&&e.pe(f.xh)}this.Me(d,a)},Ay:function(d,a,f,e){e=d==b.vc?this.Dh(e):e;h.logInfo(c.resolve(234),d,e);var g=this.ob(d,e);if(g){var m=this.ca.jf(g.wd);m&&m.Qr(g.xh,a,f)}this.Me(d,e)},Dy:function(d,a,f,e){e=d==b.vc?this.Dh(e):e;h.logInfo(c.resolve(235),d,e);var g=this.ob(d,e);if(g){var m=this.ca.jf(g.wd);m&&m.Kf(g.xh,a,f)}this.Me(d,e)}};return f}); | |
define("lscj",["LoggerManager","Executor","Global","ASSERT","lscAe"],function(e,g,c,b,f){function h(a){this.Xl=a;this.nb=[];this.Uq=!1;this.lsc={};this.lsc.LS_window=c["_"+a];this.lsc.window=this.lsc.LS_window;this.jv=this.Rv(this.lsc)}var d=e.getLoggerProxy(f.Ya);h.prototype={toString:function(){return"[EvalQueue|"+this.nb.length+"]"},Rv:function(){eval("var lsc \x3d arguments[0]");return function(a){with(lsc)eval(a)}},Po:function(a,b){this.eg()&&(this.nb.push({p:a,d:b}),d.isDebugLogEnabled()&& | |
d.logDebug(e.resolve(246)),g.addTimedTask(this.Hi,0,this))},Wd:function(a){this.f=a},Hi:function(){for(d.isDebugLogEnabled()&&d.logDebug(e.resolve(247),this.nb.length);0<this.nb.length;){var a=this.nb.shift();if(this.f&&this.f.Dc(a.p))try{this.jv(a.d)}catch(c){this.Uq=!0,this.nb=[],b.fail(),console.log(c),d.logError(e.resolve(245),c,a.d),this.f.Zp()}else d.isDebugLogEnabled()&&d.logDebug(e.resolve(248),a.p,this.f)}},eg:function(){return!this.Uq},H:function(){}};return h}); | |
define("lsci",[],function(){function e(e){this.lsc={};this.lsc.LS_window=e;this.ready=!1}e.prototype={Ba:function(){return this.ready},iw:function(){return this.lsc},zv:function(e){eval("var lsc \x3d this.lsc");with(lsc)eval(e);this.ready=!0}};return e}); | |
define("lscw","LoggerManager Executor lscAg Inheritance Global lsci lscAe".split(" "),function(e,g,c,b,f,h,d){function a(b,d){this.Xl=b;this._callSuperConstructor(a,[g.packTask(this.Mr,this)]);this.nb=[];this.Li=d?d:new h(f["_"+b])}var k=e.getLoggerProxy(d.Ya),p=0;a.prototype={toString:function(){return"[WrappedEvalQueue|"+this.nb.length+"]"},Po:function(a,b){this.eg()&&(this.nb.push({p:a,d:b}),k.isDebugLogEnabled()&&k.logDebug(e.resolve(250)),g.addTimedTask(this.Hi, | |
0,this))},nq:function(){this.Ri=!0},Wd:function(a){this.f=a},yq:function(){return"\x3cscript\x3ewindow.evalProxy \x3d function(lsc,_p){with(lsc){eval(_p);}};\x3c/script\x3e"},verify:function(){return this.gc.evalProxy?!0:!1},zq:function(){return"LS6__EQ_"+this.Xl+"_"+ ++p},Hi:function(){if(this.ready)for(k.isDebugLogEnabled()&&k.logDebug(e.resolve(251));0<this.nb.length;){var a=this.nb.shift();if(this.f&&this.f.Dc(a.p)){var b=null,d=null;if(!this.Li.Ba()&&(-1<(b=a.d.indexOf("// END OF HEADER"))|| | |
-1<(d=a.d.indexOf("myEnv.LS_window \x3d LS_window;")))){var c;-1<b?(c=a.d.substring(0,b),b=a.d.substring(b)):(c=a.d.substring(0,d+28),b=a.d.substring(d+28));a.d=b;this.Li.zv(c)}try{this.gc.evalProxy(this.Li.iw(),a.d)}catch(f){this.Mr(a.d,f);break}}}else g.addTimedTask(this.Hi,100,this)},Mr:function(a,b){this.Ri=!0;this.nb=[];k.logError(e.resolve(249),b,a);this.f&&this.f.Zp()}};b(a,c);return a}); | |
define("lscs","Executor BrowserDetection ASSERT LoggerManager Helpers lscq lscl lscAK lsct lscu EnvironmentStatus Global lsco lscG lscAe lscv lscF lscK lscj lscw".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m,q,n,t,u,r,w,A,C){function B(a,b){this.status=1;this.N=0;this.wl=this.f=null;this.ce="";this.va=a;this.ca=b;this.b=a.zb;this.Qa=a.xb;this.Ra=a.pd();this.ub=new u(this.b, | |
this.Ra);this.uz=new q(this.Ra,b);l.addUnloadHandler(this);this.Bv();this.Ye=null;this.Y=new r(this,a.zb,this.Ra,!1);this.zd=new w(this.Y,this.ca,this.b)}function v(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"}}var H={2:7, | |
6:9,4:3,8:3,_2:3,_6:9,_4:3,_8:7},D={2:7,6:9,4:3,8:3,_2:3,_6:9,_4:3,_8:9},y={2:3,6:7,4:5,8:9},E={2:5,6:9,7:9,9:9},I={3:!0,5:!0,7:!0,9:!0},x=b.getLoggerProxy(t.He),z=b.getLoggerProxy(t.Od);B.prototype={Bv:function(){var a=this;m.qa(this.Ra,"LS_forceReload",function(){a.f&&a.f.ha("server.exit",!0)})},ea:function(a){z.isDebugLogEnabled()&&z.logDebug(b.resolve(265),v(this.status),"-\x3e",v(a));this.status=a;this.N++},pa:function(a,b,d){1!=this.status&&10!=this.status&&this.f&&this.f.pa(a?"api":b,!1,d)}, | |
rB:function(){1!=this.status&&10!=this.status&&this.f&&this.f.Ij("control.syncerror")},xx:function(){return 1!=this.status&&10!=this.status},Bb:function(a,b,c,f,h,e,g){a&&d.Nc();this.Sp();a=a?"api":e;this.ce=b?"_":"";!g&&this.xx()?(this.ea(f?h?9:5:h?7:3),this.Sn(a),this.f.ws(this.N,a,c)):(this.ys(),b=this.f?this.f.fe():null,a="new."+a,this.pa(!1,a,!1),this.ea(f?h?8:4:h?6:2),this.rn(f,c,h),this.f.Bb(b,a))},rn:function(a,b,d,c,f){var h=null!==this.Ye;d=d?k:p;f&&(h=!1);this.f=new d(a,b,this,this.N,c, | |
h,f);c&&c.cg();this.ub.Wd(this.f);this.fa&&this.fa.Wd(this.f);this.uz.Wd(this.f)},Ud:function(a,b,d,c){this.ea(b?d?8:4:d?6:2);this.rn(b,a,d,this.f);this.f.Ud(c)},Ah:function(a,d,c){z.logDebug(b.resolve(266),d);a!=this.N?z.logDebug(b.resolve(267)):(d=y[this.status]||this.status,a=3==d||7==d?!1:!0,d=3==d||5==d?!1:!0,this.ea(a?d?8:4:d?6:2),this.rn(a,c,d,this.f,!0),this.f.Ah())},Nn:function(){return"_"==this.ce&&y[this.status]==D[this.ce+this.status]},Qb:function(a,d,f){a==this.N&&(f?(z.logInfo(b.resolve(257)), | |
this.ea(1)):(a=D[this.status]||this.status,z.logInfo(b.resolve(258),v(this.status),v(a)),1==a||10==a?(z.logError(b.resolve(252)),c.fail()):(this.ea(a),this.Sn(d),this.f.ws(this.N,d,!1))))},iz:function(a){a==this.N&&(a=E[this.status],z.logInfo(b.resolve(259),v(this.status),v(a)),a?(this.ea(a),this.Sn("slow"),this.f.Sz(this.N)):(z.logError(b.resolve(253),v(this.status),this.f),c.fail()))},We:function(a,d,f){a==this.N&&(a=H[this.ce+this.status]||this.status,z.logInfo(b.resolve(260),v(this.status),v(a)), | |
1==a||10==a?(z.logError(b.resolve(254)),c.fail()):this.Bb(!1,"_"==this.ce,f,3==a||7==a?!1:!0,3==a||5==a?!1:!0,d,!0))},$n:function(a,d,f){a==this.N&&(a=this.status,z.logInfo(b.resolve(261),v(this.status)),I[a]?this.Ud(f,3==a||7==a?!1:!0,3==a||5==a?!1:!0,d):(z.logError(b.resolve(255)),c.fail()))},ct:function(a){z.logInfo(b.resolve(262));this.$n(a,"slow",!1)},pB:function(a,d){if(a==this.N){var f=this.status;z.logInfo(b.resolve(263),v(this.status));I[f]?this.Bb(!1,"_"==this.ce,!1,3==f||7==f?!1:!0,3== | |
f||5==f?!1:!0,"switch.timeout."+d,!0):(z.logError(b.resolve(256)),c.fail())}},Sn:function(a){e.addTimedTask(this.pB,this.b.Zn+(this.ub.aj()||0),this,[this.N,a])},ys:function(){this.Y.xc();this.zd.da()},Gl:function(){var a=null!==this.Ye;this.f&&this.f.Vf(a);this.Y&&this.Y.Vf(a)},Oy:function(a){a==this.N&&(this.Ye=f.getTimeStamp(),this.Gl())},Sp:function(){null!==this.Ye&&1E3<f.getTimeStamp()-this.Ye&&(this.Ye=null,this.Gl())},zm:function(){return this.f?this.f.i():null},nm:function(a){return this.f? | |
this.f.nm(a):t.Xb},bb:function(){return this.f?this.f.bb():this.Qa.Hh},fe:function(){return this.f?this.f.fe():null},tq:function(){if(!this.fa||!this.fa.eg()){if(g.isProbablyIE(9,!0)){var a=null;this.fa&&(a=this.fa.Li,this.fa.H());this.fa=new C(this.Ra,a)}else this.fa=new A(this.Ra);this.fa.Wd(this.f)}return this.fa},H:function(){this.fa&&this.fa.H();l.removeUnloadHandler(this)},unloadEvent:function(){this.pa(!1,"unload",!0);this.ea(10)},pd:function(){return this.Ra},fB:function(a,b){a==this.N&&this.va.Ey(b)}, | |
Tc:function(a){z.logInfo(b.resolve(264),this);this.oh(a);this.zd.Vk();this.va.Tc();this.bh(!1)},oh:function(a){z.logDebug(b.resolve(268),this);a&&this.Y.HA(a)},Xr:function(a,d){if(a!=this.N)return null;z.logDebug(b.resolve(269),this);this.ys();this.va.qe();d?this.ea(1):this.ea(this.status);return this.N},dn:function(a,d){var c=this.ca.ee(a[0]);c?(x.isDebugLogEnabled()&&x.logDebug(b.resolve(271),a),c.ph(a,d)):x.logDebug(b.resolve(270),this)},oe:function(a){var d=this.ca.ee(a[0]);d?(x.isDebugLogEnabled()&& | |
x.logDebug(b.resolve(273),a),d.onLostUpdates(a[0],a[1],a[2])):x.logDebug(b.resolve(272),this)},ne:function(a){var d=this.ca.ee(a[0]);d?(x.isDebugLogEnabled()&&x.logDebug(b.resolve(275),a),d.onEndOfSnapshot(a[0],a[1])):x.logDebug(b.resolve(274),this)},me:function(a){var d=this.ca.ee(a[0]);d?(x.isDebugLogEnabled()&&x.logDebug(b.resolve(277),a),d.onClearSnapshot(a[0],a[1])):x.logDebug(b.resolve(276),this)},Lf:function(a,d){x.isDebugLogEnabled()&&x.logDebug(b.resolve(278),a,d);this.ca.Gy(a,d)},cn:function(a, | |
d,c){var f=this.ca.ee(a);f?(x.isDebugLogEnabled()&&x.logDebug(b.resolve(279),a,d,c),f.Mf(a,d,c)):x.logDebug(b.resolve(280),this);this.ca.Mf(a)},onUnsubscription:function(a){var d=this.ca.ee(a);d?(x.isDebugLogEnabled()&&x.logDebug(b.resolve(281),a),d.onUnsubscription(a)):x.logDebug(b.resolve(282),this);this.ca.onUnsubscription(a)},Nf:function(a,d){this.ca.Nf(a,d);x.isDebugLogEnabled()&&x.logDebug(b.resolve(283),a,d);this.ca.Nf(a,d)},onSubscription:function(a,d,c,f,h){this.ca.onSubscription(a);var e= | |
this.ca.ee(a);e?(x.isDebugLogEnabled()&&x.logDebug(b.resolve(285),a,d,c,f,h),e.onSubscription(a,f,h,d,c)):x.logDebug(b.resolve(284),this)},Vm:function(a,d){x.isDebugLogEnabled()&&x.logDebug(b.resolve(286),a,d);this.zd.ju(a,d)},Ym:function(a,d){x.isDebugLogEnabled()&&x.logDebug(b.resolve(287),a,d);this.zd.Qt(a,d)},Wm:function(a,d,c,f){x.isDebugLogEnabled()&&x.logDebug(b.resolve(288),a,f,d,c);this.zd.Ay(a,d,f,c)},pe:function(a,d){x.isDebugLogEnabled()&&x.logDebug(b.resolve(289),a,d);this.zd.By(a,d)}, | |
Kf:function(a,d,c,f){x.isDebugLogEnabled()&&x.logDebug(b.resolve(290),a,f,d,c);this.zd.Dy(a,d,f,c)},Hj:function(a){this.va.Hj(a)},Zm:function(a){x.isDebugLogEnabled()&&x.logDebug(b.resolve(291),a);this.va.Zm(a)},Sy:function(b){this.wl&&b!=this.wl&&a.Cx()&&(a.Vz(),this.Bb(!1,"_"==this.ce,!1,!1,!1,"ip",!1));this.wl=b},nc:function(){this.va.nc()},Cn:function(a,b,d,c){this.zd.tg(a,b,d,c)},Gh:function(a,b){var d=h.yw(this.N,a,b);this.Y.zc(null,d,n.cd,null)},yi:function(){this.f&&this.f.yi()},Zz:function(a, | |
b,d,c,f){this.Y.zc(a,b,n.Zh,f,c)},aA:function(a,b,d,c,f){this.Y.zc(a,b,n.Mk,f,c)},$z:function(a,b,d){this.Y.zc(a,b,n.yo,d)},bh:function(a){this.f&&this.f.bh(a)}};B.prototype.unloadEvent=B.prototype.unloadEvent;return B}); | |
define("lscm",["lscY","lscP","Executor"],function(e,g,c){function b(b,a){this.o=b;this.id=a}var f=g.at;g={mh:f,nh:f,onStatusChange:f,Tc:f,qe:f,Lr:f,Lf:f,nc:f,ping:g.bt,onSubscription:f,onUnsubscription:f,onEndOfSnapshot:f,ph:f,onLostUpdates:f,onClearSnapshot:f,Mf:f,pe:f,Qr:f,Kf:f,Pr:f,Rr:f};b.methods=g;b.prototype={gk:function(b){this.target=b},Ir:function(b,a,c){("lscD"==b?this.o.xb:"lscE"==b?this.o.zb:this.o.ja).S(a,c)},mp:function(b){b== | |
this.o.Mc()&&this.o.Ol()},np:function(b){b==this.o.Mc()&&this.o.pv()},es:function(){if(null===this.o)throw"net";return!0},Cp:function(){c.addTimedTask(this.o.up,0,this.o);c.addTimedTask(this.o.up,1E3,this.o)},Be:function(b,a){return b!=this.o.Mc()?null:this.o.subscribe(this.id,a)},Hd:function(b,a){return b!=this.o.Mc()?null:this.o.unsubscribe(a)},ad:function(b,a,c){return b!=this.o.Mc()?null:this.o.ad(a,c)},Vg:function(b,a,c,f,h){if(b!=this.o.Mc())return null;this.o.Cn(a,c,null==f?null:{xh:f,wd:this.id}, | |
h)},mq:function(b){this.o.Gh(b)},H:function(){this.o=null}};for(var h in g)b.prototype[h]=e.Jg(h,g[h]);return b}); | |
define("lsck","Global lscAe LoggerManager lscC lscD lscE lscp lscs lscG Executor lscm Helpers".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m){function q(c,k,l,m,t,u){this.ja=new b(c);this.ja.ag(this,!0);this.xb=new f(l);this.xb.ag(this,!0);this.zb=new h(k);this.zb.ag(this,!0);this.Em=null;this.M=new d(this,this.ja,this.xb,this.zb);if(m)this.sc=m.dv(this,p.packTask(this.H,this),u),c=this.sc.$i(), | |
null!=c&&(this.nl=m.cv(this,c),this.nl.addListener(this.M)),this.id=this.sc.ga();else{this.sc=null;do this.id="NS"+n++;while(e.ij(this.id,"lsEngine"))}e.qa(this.id,"lsEngine",this);this.g=new a(this,this.M);this.jp(t,g.Fo);this.ja.Hg&&this.Ol()}var n=m.randomG(),t="1749";isNaN(t)&&(t=0);var u=c.getLoggerProxy(g.Od);q.prototype={toString:function(){return"[LightstreamerEngine "+this.id+"]"},jp:function(a,b){b||(b="LOCAL"+n++);var d=new l(this,b);d.gk(a);a.FA(d);this.M.Sr(b,d)},pd:function(){return this.id}, | |
zm:function(){return this.g.zm()},Mc:function(){return this.M.Mc()},qe:function(){this.M.qe()},Tc:function(){this.M.Tc()},H:function(){this.g.pa(!1,"suicide",!0);this.g.H();e.Pu(this.id);this.sc&&this.sc.H();this.M.Dr(!0);this.M.H();this.nl&&this.nl.H()},pv:function(){u.logInfo(c.resolve(292));this.ja.S("connectionRequested",!1);this.g.pa(!0,"api",!0)},Ol:function(){u.logInfo(c.resolve(293));this.ja.S("connectionRequested",!0);var a=this.zb.fm;null===a?this.g.Bb(!0,!1,!1,!1,!1):this.ov(a)},ov:function(a){var b= | |
a==g.Ok||a==g.di;this.g.Bb(!0,b,!b,a==g.Le||a==g.bd,a==g.bd||a==g.Fe||a==g.di)},Re:function(a,b,d){this.M.nd(function(c){c.mh(a,b,d)});"maxBandwidth"==b?this.g.yi(d):"forcedTransport"==b?this.ja.Hg&&this.Ol():"reverseHeartbeatInterval"==b?this.g.bh(!1):"corsXHREnabled"!=b&&"xDomainStreamingEnabled"!=b||this.g.Gl();return!0},Hj:function(a){this.sc&&this.sc.rs(a)},Zm:function(a){this.sc&&this.sc.lu(a)},Kb:function(a){return this.g.nm(a)},Ey:function(a){a=this.Kb(a);if(this.Em!=a){var b=this.Em;this.Em= | |
a;this.M.Fy(a,b);if(this.onStatusChange)this.onStatusChange(a)}},Cn:function(a,b,d,c){var f=this.Kb();if(f==g.Xb||f==g.qg)return!1;this.g.Cn(a,b,d,c);return!0},Gh:function(a){this.g.Gh(a,t);return!0},subscribe:function(a,b){return this.M.lx(a,b)},unsubscribe:function(a){this.M.ts(a)},ad:function(a,b){this.M.ad(a,b)},up:function(){this.M.Ap()},nc:function(){this.M.nc()}};return q}); | |
define("ls_sbc",["IllegalStateException"],function(e){return function(g){return{enableSharing:function(){throw new e("ConnectionSharing is not included in the Lightstreamer library");},isMaster:function(){return g.rf()}}}}); | |
define("LightstreamerClient","Helpers Global Executor lscC lscE lscD lscAP lscAI lscAO lscAc Inheritance Setter EventDispatcher lscAe EnvironmentStatus IllegalArgumentException Environment LoggerManager IllegalStateException ASSERT lsco lsck ls_sbc BrowserDetection".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m,q,n,t,u,r,w,A,C,B,v,H,D){function y(a,d){this.C=y;this._callSuperConstructor(y);this.Hp= | |
new f;this.Fl=new h;this.connectionOptions=this.Hp;this.connectionDetails=this.Fl;this.connectionSharing=H(this);this.ja=new b;this.zb=this.Hp;this.xb=this.Fl;a&&this.xb.Zs(a);d&&this.xb.Ns(d);this.ja.ag(this);this.zb.ag(this);this.xb.ag(this);this.u=new p(this.zb);this.bg=this.T=null;this.Og=this.Oh=0;this.CB=++I;this.J=new k;this.he=n.Xb;this.Ai=null;this.ot={};t.addUnloadHandler(this)}var E=w.getLoggerProxy(n.Dk),I=0,x=/^[a-zA-Z0-9_]*$/;y.mu=function(b,d){r.isNodeJS()&&a.Zo(d)};y.kw=function(b){if(r.isNodeJS()){var d= | |
[];a.Cq(b).forEach(function(a){d.push(a.toString())});return d}};y.setLoggerProvider=function(a){w.setLoggerProvider(a)};y.Bt="javascript_client";y.Ct="7.1.2 build 1749";y.simulateSilence=function(a){B.$A(a)};y.prototype={toString:function(){return["[|LightstreamerClient",this.CB,this.N,this.lC,"]"].join("|")},gk:function(a){this.T=a;this.u.Sh(a);this.J.Sh(a);this.Ss=this.Og;this.Ai=c.addRepetitiveTask(a.pl,5E3,a)},Bp:function(){this.T&&(this.ot[this.T.pd()]=!0,this.u.Sh(null),this.J.Sh(null),this.Ai&& | |
(c.stopRepetitiveTask(this.Ai),this.Ai=null),this.T.H(),this.T=null,this.je&&(this.je.H(),this.je=null),this.ja.Hg?this.cl(n.qg):this.cl(n.Xb));this.search&&(this.search.stop(),this.search=null)},Re:function(a,b,d){this.T&&this.T.Ir(a,b,d);return!0},Er:function(a,b){b!=this.ja&&this.dispatchEvent("onPropertyChange",[a])},Sl:function(a){D.isProbablyApple()||D.fr()||(this.Og++,c.addTimedTask(this.Xp,0,this,[a,this.Og]))},Xp:function(a,b){if(b==this.Og)if(this.Oh++,this.Bp(),this.bg=a){b=this.Oh;var d= | |
this,c=a.Iv(this);this.search=c;this.search.find(this.ot).then(function(a){b==d.Oh&&(1==d.search.Dj&&d.bg.Dj(),null===a?d.Ln(b,c.hm()):d.gk(a))},function(){b==d.Oh&&d.dispatchEvent("onShareAbort")})}else this.ja.Hg&&this.Ln()},wv:function(a){if(this.Ss==this.Og)if(this.Bp(),t.isUnloading()||t.isUnloaded())E.logInfo(w.resolve(363));else if(this.bg){E.logInfo(w.resolve(364));var b=null;2>=this.ja.jd||(a?b=1E4:(b=200+500*e.randomG(this.ja.jd),5E3<b&&(b=5E3)));a=this.bg.av(b);this.Xp(a,this.Ss)}else C.fail(), | |
E.logError(w.resolve(362))},unloadEvent:function(){this.disconnect();this.T&&this.T.Cp()},Ln:function(a,b){if(!a||a==this.Oh)return this.gk(new d(this)),this.je=new v(this.ja,this.zb,this.xb,this.bg,this.T,b),this.T.Rs(this.je.pd()),this.T.MA(this.je.Mc()),this.T},rf:function(){return null!=this.je},connect:function(){if(!this.xb.Hh)throw new A("Configure the server address before trying to connect");E.logInfo(w.resolve(365));c.addTimedTask(this.vu,0,this)},vu:function(){if(!this.he||this.he!=n.CONNECTING&& | |
this.he!=n.Je&&0!=this.he.indexOf(n.Fa)){this.bg||this.je||this.Ln();E.logDebug(w.resolve(367));this.ja.S("connectionRequested",!0);var a=this.T;a&&a.mp()}},disconnect:function(){E.logInfo(w.resolve(366));c.addTimedTask(this.wu,0,this)},wu:function(){E.logDebug(w.resolve(368));this.ja.S("connectionRequested",!1);var a=this.T;a&&a.np()},Kb:function(){return this.he},sendMessage:function(a,b,d,f,e){if(!b)b=n.vc;else if(!x.test(b))throw new u("The given sequence name is not valid, use only alphanumeric characters plus underscore, or null"); | |
d=d||0==d?this.checkPositiveNumber(d,!0):null;e=this.checkBool(e,!0);c.addTimedTask(this.uu,0,this,[a,b,f,d,e])},uu:function(a,b,d,c,f){this.T&&this.T.tb?this.J.Vg(a,b,d,c):f?this.J.xv(a,b,d,c):d&&this.J.fireEvent("onAbort",d,[a,!1])},eA:function(a,b){this.dispatchEvent("onServerError",[a,b])},dk:function(){this.u.yz();this.J.Qu()},fA:function(){this.u.jx();this.J.ix()},cl:function(a){a!=this.he&&(this.he=a,this.dispatchEvent("onStatusChange",[a]))},Gh:function(a){return this.T&&this.T.tb?(this.T.mq(a), | |
!0):!1},nc:function(){this.dispatchEvent("onServerKeepalive")},Zw:function(){var a=[],b=this.u.jb,d;for(d in b)b[d].dt||a.push(b[d]);return a},subscribe:function(a){this.u.Yo(a)},unsubscribe:function(a){this.u.qs(a)},addListener:function(a){this._callSuperMethod(y,"addListener",[a])},removeListener:function(a){this._callSuperMethod(y,"removeListener",[a])},getListeners:function(){return this._callSuperMethod(y,"getListeners")}};y.addCookies=y.mu;y.getCookies=y.kw;y.setLoggerProvider=y.setLoggerProvider; | |
y.LIB_NAME=y.Bt;y.LIB_VERSION=y.Ct;y.prototype.connect=y.prototype.connect;y.prototype.disconnect=y.prototype.disconnect;y.prototype.getStatus=y.prototype.Kb;y.prototype.sendMessage=y.prototype.sendMessage;y.prototype.getSubscriptions=y.prototype.Zw;y.prototype.subscribe=y.prototype.subscribe;y.prototype.unsubscribe=y.prototype.unsubscribe;y.prototype.addListener=y.prototype.addListener;y.prototype.removeListener=y.prototype.removeListener;y.prototype.getListeners=y.prototype.getListeners;y.prototype.enableSharing= | |
y.prototype.Sl;y.prototype.isMaster=y.prototype.rf;y.prototype.unloadEvent=y.prototype.unloadEvent;y.prototype.preUnloadEvent=y.prototype.unloadEvent;l(y,q,!1,!0);l(y,m,!0,!0);return y});define("lscAa",["lscAe","ASSERT"],function(e,g){function c(b,c,e){this.Qf=b;this.mr=c;this.Vj=e}c.prototype={Nr:function(b,c,e){this.Mn()&&(g.verifyValue(c,1),this.Qf.aB(this.Vj,e))},Mf:function(b,c){this.Mn()&&this.Qf.bB(b,c,this.Vj)},onItemUpdate:function(b){if(this.Mn())return g.verifyValue(b.bj(),1),b=b.Jd,this.Qf.JA(b.length-2),b=this.$u(b),this.Qf.update(b,!1,!0)},Mn:function(){return this.Qf.Vq(this.mr,this.Vj)},$u:function(b){var c=this.Qf,h=this.mr,d=[];d[0]= | |
c.Zc;d[1]=h;d.Cc=[];for(var h=c.Aq()+2,a=2,g=2;g<h;g++)g==c.keyCode+1?d[g]=this.Vj:g==c.$a+1?d[g]="UPDATE":g<=c.la.pb+1?d[g]=e.Ke:(d[g]=b[a],b.jo[a]?d[g]=e.Ke:d.Cc.push(g-1),a++);return d}};c.prototype.onSubscriptionError=c.prototype.Mf;c.prototype.onItemUpdate=c.prototype.onItemUpdate;c.prototype.onItemLostUpdates=c.prototype.Nr;return c}); | |
define("lscAZ",["LoggerManager","IllegalArgumentException","lscAe"],function(e,g,c){function b(b,d,a,c,f){this.by=d;this.ay=b;this.Yt=c;this.la=a;this.Jd=f}var f=e.getLoggerProxy(c.Dk);b.prototype={pm:function(){return this.ay},bj:function(){return this.by},getValue:function(b){b=this.Wh(b);return(b=this.Jd[b])&&b.mC?b.value:b},lr:function(b){b=this.Wh(b);return!this.Jd.jo[b]},Rx:function(){return this.Yt},forEachChangedField:function(b){for(var d=this.Jd.Cc,a=0;a<d.length;a++){var c=this.la.getName(d[a]), | |
g=this.Jd[d[a]+1];try{b(c,d[a],g)}catch(l){f.logErrorExc(l,e.resolve(369))}}},kq:function(b){for(var d=2;d<this.Jd.length;d++){var a=d-1,c=this.la.getName(a),g=this.Jd[d];try{b(c,a,g)}catch(l){f.logErrorExc(l,e.resolve(370))}}},Wh:function(b){b=isNaN(b)?this.la.de(b):b;if(null==b)throw new g("the specified field does not exist");if(0>=b||b>this.la.mm()+1)throw new g("the specified field position is out of bounds");return b+1},Gw:function(){return this.Jd.length-2},nw:function(b){return this.la.getName(b)}}; | |
b.prototype.getItemName=b.prototype.pm;b.prototype.getItemPos=b.prototype.bj;b.prototype.getValue=b.prototype.getValue;b.prototype.isValueChanged=b.prototype.lr;b.prototype.isSnapshot=b.prototype.Rx;b.prototype.forEachChangedField=b.prototype.forEachChangedField;b.prototype.forEachField=b.prototype.kq;return b}); | |
define("lscZ",[],function(){function e(){this.Tb=null;this.pb=0}e.prototype={$s:function(e){this.Tb=e},mm:function(){return this.Tb?this.pb+this.Tb.pb:this.pb},Cd:function(e){this.pb=e}};return e}); | |
define("lsca",["Inheritance","lscZ"],function(e,g){function c(b){this._callSuperConstructor(c);this.list=b;for(var f={},e=0;e<b.length;e++)f[b[e]]=e+1;this.Bs=f;this.pb=b.length}c.prototype={Cd:function(){},im:function(){return this.list.join(" ")},de:function(b){return this.Bs[b]?this.Bs[b]:this.Tb?(b=this.Tb.de(b),null!==b?b+this.pb:null):null},getName:function(b){return b>this.pb&&this.Tb?this.Tb.getName(b-this.pb):this.list[b-1]||null},Lc:function(){return this.list}};e(c,g);return c}); | |
define("lscb",["Inheritance","lscZ"],function(e,g){function c(b){this._callSuperConstructor(c);this.name=b}c.prototype={im:function(){return this.name},de:function(b){return this.Tb?(b=this.Tb.de(b),null!==b?b+this.pb:null):null},getName:function(b){return this.Tb?this.Tb.getName(b-this.pb):null},Lc:function(){return this.name}};e(c,g);return c}); | |
define("Matrix",[],function(){function e(e){this.$=e||{}}e.prototype={insert:function(e,c,b){c in this.$||(this.$[c]={});this.$[c][b]=e},get:function(e,c){return e in this.$&&c in this.$[e]?this.$[e][c]:null},del:function(e,c){if(!(!e in this.$)){c in this.$[e]&&delete this.$[e][c];for(var b in this.$[e])return;delete this.$[e]}},insertRow:function(e,c){this.$[c]=e},getRow:function(e){return e in this.$?this.$[e]:null},delRow:function(e){e in this.$&&delete this.$[e]},getEntireMatrix:function(){return this.$}, | |
isEmpty:function(){for(var e in this.$)return!1;return!0},forEachElement:function(e){for(var c in this.$)this.forEachElementInRow(c,e)},forEachRow:function(e){for(var c in this.$)e(c)},forEachElementInRow:function(e,c){var b=this.$[e],f;for(f in b)c(b[f],e,f)}};e.prototype.insert=e.prototype.insert;e.prototype.get=e.prototype.get;e.prototype.del=e.prototype.del;e.prototype.insertRow=e.prototype.insertRow;e.prototype.getRow=e.prototype.getRow;e.prototype.delRow=e.prototype.delRow;e.prototype.getEntireMatrix= | |
e.prototype.getEntireMatrix;e.prototype.forEachElement=e.prototype.forEachElement;e.prototype.forEachElementInRow=e.prototype.forEachElementInRow;e.prototype.forEachRow=e.prototype.forEachRow;e.prototype.isEmpty=e.prototype.isEmpty;return e}); | |
define("Subscription","lscAa lscAZ lsca lscb Inheritance Setter Matrix Executor lscAe EventDispatcher IllegalArgumentException IllegalStateException LoggerManager lscAj ASSERT Helpers".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m,q,n,t,u){function r(a,b,c){this._callSuperConstructor(r);a=(new String(a)).toUpperCase();if(!a||!C[a])throw new l("The given value is not a valid subscription mode. Admitted values are MERGE, DISTINCT, RAW, COMMAND"); | |
this.fd=a;this.la=this.Ic=this.Gb=this.Nb=this.uf=this.vf=null;this.jc="RAW"===a?null:"yes";this.Xj=this.Zc=this.Gi=this.mi=this.Oo=this.ug=this.ue=this.gb=null;this.le=new d;this.Sc=new d;this.c=null;this.Wa=1;this.sB=0;this.ed=null;this.bo=0;this.Pm=null;this.$j=this.Fj=0;this.behavior=this.fd==k.kg?2:1;this.ko=this.keyCode=this.$a=null;this.Fd=new d;this.Qh=this.Ae=this.Ed=null;this.mB=k.Kk;if(b){if(!c||!u.isArray(c))throw new l("Please specify a valid field list");u.isArray(b)?this.Mh(b):this.Mh([b]); | |
this.hk(c)}else if(c)throw new l("Please specify a valid item or item list");}function w(a){for(var b=0;b<a.length;b++){if(!a[b])throw new l("A field name cannot be empty");if(-1<a[b].indexOf(" "))throw new l("A field name cannot contain spaces");}}function A(a,b){return a-b}var C={COMMAND:!0,RAW:!0,MERGE:!0,DISTINCT:!0},B=k.Ke,v=q.getLoggerProxy(k.Ko);r.prototype={toString:function(){return["[|Subscription",this.Wa,this.sB,this.ed,this.bo,this.Zc,this.Pm,"]"].join("|")},xp:function(){this.Zc=null; | |
this.le=new d;this.Sc=new d;this.la.Cd(0);this.Nb.Cd(0);3==this.behavior&&(this.la.$s(null),this.Fd=new d);v.logDebug(q.resolve(375),this)},Ky:function(a,b,d){this.qb();if(!this.Nb)throw new l("Invalid Subscription, please specify an item list or item group");if(!this.la)throw new l("Invalid Subscription, please specify a field list or field schema");this.Wa=5;this.Pm=b;this.ed=a;this.c=d;this.bo++;this.Fj++;t.verifyValue(this.Fj,1);v.logInfo(q.resolve(372),this);return!0},lz:function(){this.bo++; | |
this.Wa=2;v.logDebug(q.resolve(376),this)},oz:function(a){this.Zc=a;this.Wa=3;v.logDebug(q.resolve(377),this)},az:function(){var a=this.sf();this.Wa=5;this.xp();a&&this.Kr();v.logDebug(q.resolve(378),this)},ez:function(){this.yx();var a=this.sf();this.Wa=1;this.ed=this.Pm=null;delete this.Xj;3==this.behavior&&this.Pz();this.xp();this.Fj--;t.verifyValue(this.Fj,0);a&&this.Kr();this.c=null;v.logDebug(q.resolve(379),this)},jz:function(a,b,d,c){this.Wa=4;this.$j++;t.verifyValue(this.$j,1);v.logInfo(q.resolve(373), | |
this);3==this.behavior&&this.la.$s(this.Qh);this.Ic&&1!=this.behavior&&this.LA(b,a);this.Nb.Cd(d);this.la.Cd(c);this.dispatchEvent("onSubscription")},Kr:function(){this.$j--;t.verifyValue(this.$j,0);v.logInfo(q.resolve(374),this);this.dispatchEvent("onUnsubscription")},Pz:function(){var a=this;this.Fd.forEachElement(function(b,d,c){a.wn(d,c)})},Lz:function(){var a=this;this.Fd.forEachElementInRow(function(b,d,c){a.wn(d,c)})},Ow:function(){this.Zi();return this.Xj},pq:function(){if(null!=this.gb){var a= | |
this.gb;return{LS_requested_max_frequency:"unlimited"==a?0:a}}return{}},Zi:function(){var a={LS_mode:this.fd,LS_id:encodeURIComponent(this.Nb.im()),LS_schema:encodeURIComponent(this.la.im())};null!=this.Gi&&(a.LS_data_adapter=encodeURIComponent(this.Gi));null!=this.mi&&(a.LS_selector=encodeURIComponent(this.mi));null!=this.ug&&(a.LS_start=this.ug);null!=this.Oo&&(a.LS_end=this.Oo);null!=this.jc&&(a.LS_snapshot="yes"===this.jc?"true":"no"===this.jc?"false":this.jc);n.ra(a,this.pq());if(null!=this.ue){var b= | |
this.ue;if("unlimited"==b||0<b)a.LS_requested_buffer_size=b}v.logDebug(q.resolve(380),this);return this.Xj=a},IA:function(){if(this.fd==k.kg&&null!=this.Gb&&(this.$a=this.Gb.de("command"),this.keyCode=this.Gb.de("key"),!this.$a||!this.keyCode))throw new l("A field list for a COMMAND subscription must contain the key and command fields");},LA:function(a,b){v.logDebug(q.resolve(381),this,a,b);this.$a=a;this.keyCode=b},qb:function(){if(this.nf())throw new m("Cannot modify an active Subscription, please unsubscribe before applying any change"); | |
},yx:function(){if(!this.nf())throw new m("Subscription is not active");},Bn:function(){if(this.fd!=k.kg)throw new m("Second level field list is only available on COMMAND Subscriptions");},Bl:function(){if(this.fd!=k.kg)throw new m("This method can only be used on COMMAND subscriptions");},Ix:function(){return 1==this.Wa},Tx:function(){return 2==this.Wa},kr:function(){return 3==this.Wa},sf:function(){return 4==this.Wa},Kx:function(){return 5==this.Wa},nf:function(){return 1!=this.Wa},Am:function(){return this.sf()}, | |
Mh:function(a){this.qb();if(!u.isArray(a))throw new l(" Please specifiy a valid array");for(var b=0;b<a.length;b++)if(a[b]){if(-1<a[b].indexOf(" "))throw new l("An item name cannot contain spaces");if(!isNaN(a[b]))throw new l("An item name cannot be a number");}else throw new l("An item name cannot be empty");this.vf=null==a?null:new c(a);this.uf=null;this.Nb=this.vf},xw:function(){if(!this.vf){if(this.uf)throw new m("This Subscription was initiated using an item group, use getItemGroup instead of using getItems"); | |
throw new m("The item list/item group of this Subscription was not initiated");}return this.vf.Lc()},Us:function(a){this.qb();this.vf=null;this.Nb=this.uf=null==a?null:new b(a)},ww:function(){if(!this.uf){if(this.vf)throw new m("This Subscription was initiated using an item list, use getItems instead of using getItemGroup");throw new m("The item list/item group of this Subscription was not initiated");}return this.uf.Lc()},hk:function(a){this.qb();if(!u.isArray(a))throw new l(" Please specifiy a valid array"); | |
w(a);this.Gb=null==a?null:new c(a);this.Ic=null;this.la=this.Gb;this.IA()},vq:function(){if(!this.Gb){if(this.Ic)throw new m("This Subscription was initiated using a field schema, use getFieldSchema instead of using getFields");throw new m("The field list/field schema of this Subscription was not initiated");}return this.Gb.Lc()},Gn:function(a){this.qb();this.Gb=null;this.la=this.Ic=null==a?null:new b(a)},ow:function(){if(!this.Ic){if(this.Gb)throw new m("This Subscription was initiated using a field list, use getFields instead of using getFieldSchema"); | |
throw new m("The field list/field schema of this Subscription was not initiated");}return this.Ic.Lc()},dj:function(){return this.fd},Kh:function(a){this.qb();this.Gi=a;v.logDebug(q.resolve(382),this,a)},lw:function(){return this.Gi},lk:function(a){this.qb();this.mi=a;v.logDebug(q.resolve(383),this,a)},Sw:function(){return this.mi},Nh:function(a){a&&(a=new String(a),a=a.toLowerCase());var b=this.gb;if(this.nf()){if(!a&&0!=a)throw new m("Can't change the frequency from/to 'unfiltered' or to null while the Subscription is active"); | |
if("unfiltered"==a||"unfiltered"==this.gb)throw new m("Can't change the frequency from/to 'unfiltered' or to null while the Subscription is active");}if(a||0==a)if("unfiltered"==a||"unlimited"==a)this.gb=a;else try{this.gb=this.checkPositiveNumber(a,!1,!0)}catch(d){throw new l("The given value is not valid for this setting; use null, 'unlimited', 'unfiltered' or a positive number instead");}else this.gb=null;if((this.Tx()||this.kr()||this.sf())&&String(b)!=String(this.gb)&&(this.c.ad(this,this.pq()), | |
3==this.behavior)){var c=this;this.Fd.forEachElement(function(a){t.verifyOk(c.sf());a.Nh(c.gb)})}v.logDebug(q.resolve(384),this,this.gb)},Qw:function(){return this.gb},kk:function(a){this.qb();if(a||0==a)if(a=new String(a),a=a.toLowerCase(),"unlimited"==a)this.ue=a;else try{this.ue=this.checkPositiveNumber(a)}catch(b){throw new l("The given value is not valid for this setting; use null, 'unlimited' or a positive number instead");}else this.ue=null;v.logDebug(q.resolve(385),this,this.ue)},Pw:function(){return this.ue}, | |
Jn:function(a){this.qb();if(a||0==a)if(a=new String(a),a=a.toLowerCase(),"no"==a)this.jc=a;else{if(this.fd==k.Lk)throw new m("Snapshot is not permitted if RAW was specified as mode");if("yes"==a)this.jc=a;else{if(isNaN(a))throw new l("The given value is not valid for this setting; use null, 'yes', 'no' or a positive number instead");if(this.fd!=k.Hk)throw new m("Numeric values are only allowed when the subscription mode is DISTINCT");try{this.jc=this.checkPositiveNumber(a)}catch(b){throw new l("The given value is not valid for this setting; use null, 'yes', 'no' or a positive number instead"); | |
}}}else this.jc=null;v.logDebug(q.resolve(386),this,this.jc)},Rw:function(){return this.jc},lA:function(a){this.qb();this.Bn();if(!u.isArray(a))throw new l(" Please specifiy a valid array");w(a);this.Ed=null==a?null:new c(a);this.Ae=null;this.Qh=this.Ed;this.gs()},cw:function(){if(!this.Ed){if(this.Ae)throw new m("The second level of this Subscription was initiated using a field schema, use getCommandSecondLevelFieldSchema instead of using getCommandSecondLevelFields");throw new m("The second level of this Subscription was not initiated"); | |
}return this.Ed.Lc()},kA:function(a){this.qb();this.Bn();this.Ed=null;this.Qh=this.Ae=null==a?null:new b(a);this.gs()},bw:function(){if(!this.Ae){if(this.Ed)throw new m("The second level of this Subscription was initiated using a field list, use getCommandSecondLevelFields instead of using getCommandSecondLevelFieldSchema");throw new m("The second level of this Subscription was not initiated");}return this.Ae.Lc()},jA:function(a){this.qb();this.Bn();this.ko=a;v.logDebug(q.resolve(387),this,a)},aw:function(){return this.ko}, | |
getValue:function(a,b){return this.le.get(this.it(a),this.ht(b))},dw:function(a,b,d){this.Bl();return this.Sc.get(this.it(a)+" "+b,this.ht(d,!0))},Gq:function(){this.Bl();if(!this.Ic&&this.Gb)throw new m("This Subscription was initiated using a field list, key field is always 'key'");if(null==this.keyCode)throw new m("The position of the key field is currently unknown");return this.keyCode},qq:function(){this.Bl();if(!this.Ic&&this.Gb)throw new m("This Subscription was initiated using a field list, command field is always 'command'"); | |
if(null==this.$a)throw new m("The position of the command field is currently unknown");return this.$a},ht:function(a,b){var d=this.Wh(a,this.la,b);if(null===d)throw new l("the specified field does not exist");if(!1===d)throw new l("the specified field position is out of bounds");return d},it:function(a){a=this.Wh(a,this.Nb);if(null===a)throw new l("the specified item does not exist");if(!1===a)throw new l("the specified item position is out of bounds");return a},Wh:function(a,b,d){a=isNaN(a)?b.de(a): | |
a;return null==a?null:0>=a||a>(d?b.mm():b.pb)?!1:a},gs:function(){this.behavior=null==this.Qh?2:3},vv:function(a){this.dispatchEvent("onEndOfSnapshot",[this.Nb.getName(a),a])},Tu:function(a){var b=this.Nb.getName(a);2==this.behavior?this.Sc=new d:3==this.behavior&&(this.Sc=new d,this.Lz(a));this.dispatchEvent("onClearSnapshot",[b,a])},gy:function(a,b){this.dispatchEvent("onItemLostUpdates",[this.Nb.getName(a),a,b])},aB:function(a,b){this.dispatchEvent("onCommandSecondLevelItemLostUpdates",[b,a])}, | |
dA:function(a,b){this.dispatchEvent("onSubscriptionError",[a,b])},bB:function(a,b,d){this.dispatchEvent("onCommandSecondLevelSubscriptionError",[a,b,d])},update:function(a,b,d){t.verifyValue(4,this.Wa);var c=a[1],f=new String(c);1!=this.behavior&&(f=this.rz(a,c,d));3!=this.behavior||d||this.kx(a);1==this.behavior?this.mt(this.le,c,a,!0):this.mt(this.Sc,f,a,!0);a=new g(this.Nb.getName(c),c,this.la,b,a);this.dispatchEvent("onItemUpdate",[a]);"DELETE"==this.Sc.get(f,this.$a)&&this.Sc.delRow(f)},mt:function(a, | |
b,d,c){var f=d.length-2,e=1,h=2;for(d.jo={};e<=f;e++,h++)d[h]!==B?a.insert(d[h],b,e):c&&(d[h]=a.get(b,e),d.jo[h]=!0)},rz:function(a,b,d){var c;if("undefined"==typeof a[this.keyCode+1]||"undefined"==typeof a[this.$a+1])return v.logWarn(q.resolve(371)),null;c=a[this.keyCode+1]==B?b+" "+this.le.get(b,this.keyCode):b+" "+a[this.keyCode+1];if(d)a[this.keyCode+1]=B,a[this.$a+1]==this.Sc.get(c,this.$a)?a[this.$a+1]=B:(a.Cc.push(this.$a),a.Cc.sort(A));else{a.Cc=[];for(d=2;d<a.length;d++)a[d]&&a[d]==B?a[d]= | |
this.le.get(b,d-1):this.le.insert(a[d],b,d-1),a[d]==this.Sc.get(c,d-1)?a[d]=B:a.Cc.push(d-1);if(3==this.behavior&&(b=this.Aq()+2,b>a.length))for(d=a.length;d<b;d++)a[d]=B}return c},kx:function(a){var b=a[1],d=a[this.keyCode+1]==B?this.le.get(b,this.keyCode):a[this.keyCode+1];a=a[this.$a+1];var c=this.Vq(b,d);"DELETE"==a?c&&this.wn(b,d):c||this.pu(b,d)},hy:function(){this.dt=!0},Vq:function(a,b){return null!==this.Fd.get(a,b)},wn:function(a,b){this.c.qs(this.Fd.get(a,b));this.Fd.del(a,b)},pu:function(a, | |
b){var d=new r(this.mB);d.hy();this.Fd.insert(d,a,b);try{d.Mh([b])}catch(c){this.dispatchEvent("onCommandSecondLevelSubscriptionError",[14,"The received key value is not a valid name for an Item",b]);return}this.Ed?d.hk(this.Ed.Lc()):d.Gn(this.Ae.Lc());d.Kh(this.ko);d.Jn("yes");d.gb=this.gb;var f=new e(this,a,b);d.addListener(f);this.c.Yo(d)},JA:function(a){this.Qh.Cd(a)},Aq:function(){return this.la.mm()},addListener:function(a){this._callSuperMethod(r,"addListener",[a])},removeListener:function(a){this._callSuperMethod(r, | |
"removeListener",[a])},getListeners:function(){return this._callSuperMethod(r,"getListeners")}};r.prototype.isActive=r.prototype.nf;r.prototype.isSubscribed=r.prototype.Am;r.prototype.setItems=r.prototype.Mh;r.prototype.getItems=r.prototype.xw;r.prototype.setItemGroup=r.prototype.Us;r.prototype.getItemGroup=r.prototype.ww;r.prototype.setFields=r.prototype.hk;r.prototype.getFields=r.prototype.vq;r.prototype.setFieldSchema=r.prototype.Gn;r.prototype.getFieldSchema=r.prototype.ow;r.prototype.getMode= | |
r.prototype.dj;r.prototype.setDataAdapter=r.prototype.Kh;r.prototype.getDataAdapter=r.prototype.lw;r.prototype.setSelector=r.prototype.lk;r.prototype.getSelector=r.prototype.Sw;r.prototype.setRequestedMaxFrequency=r.prototype.Nh;r.prototype.getRequestedMaxFrequency=r.prototype.Qw;r.prototype.setRequestedBufferSize=r.prototype.kk;r.prototype.getRequestedBufferSize=r.prototype.Pw;r.prototype.setRequestedSnapshot=r.prototype.Jn;r.prototype.getRequestedSnapshot=r.prototype.Rw;r.prototype.setCommandSecondLevelFields= | |
r.prototype.lA;r.prototype.getCommandSecondLevelFields=r.prototype.cw;r.prototype.setCommandSecondLevelFieldSchema=r.prototype.kA;r.prototype.getCommandSecondLevelFieldSchema=r.prototype.bw;r.prototype.setCommandSecondLevelDataAdapter=r.prototype.jA;r.prototype.getCommandSecondLevelDataAdapter=r.prototype.aw;r.prototype.getValue=r.prototype.getValue;r.prototype.getCommandValue=r.prototype.dw;r.prototype.getKeyPosition=r.prototype.Gq;r.prototype.getCommandPosition=r.prototype.qq;r.prototype.addListener= | |
r.prototype.addListener;r.prototype.removeListener=r.prototype.removeListener;r.prototype.getListeners=r.prototype.getListeners;f(r,p,!1,!0);f(r,h,!0,!0);return r}); | |
define("Cell",["Environment"],function(e){function g(b,c){this.h=b;this.ma=!0;this.Pi=0;c||(c=this.cx());if(c)if(0==c.toLowerCase().indexOf("style.")){var f=c.slice(6);this.gg=d(f);this.Wf=a(f)}else this.gg=q(c),this.Wf=n(c);else b.nodeName.toLowerCase()in u?(this.gg=k,this.Wf=p):(this.gg=l,this.Wf=m);this.Eg=r++;this.$c=0;this.kc=this.lc=this.ke=null;this.vx=this.Wf(!0);this.tx=this.h.className;this.ux=this.eq()}function c(a,d){if(!1===g.yk)return b(a,d);if(!0===g.yk)return a.getAttribute(d);var c= | |
b(a,d);if(c)return g.yk=!1,c;if(c=a.getAttribute(d))g.yk=!0;return c}function b(a,b){return a.dataset?a.dataset[b]?a.dataset[b]:a.getAttribute("data-"+b):a.getAttribute("data-"+b)}function f(a,b){if(!a)return b;for(var d in b)a[d]||null===a[d]||""===a[d]||(a[d]=b[d]);return a}function h(a){return(a=c(a,"source"))&&"lightstreamer"==a.toLowerCase()}function d(a){return function(b){this.h.style[a]="\u00a0"===b?null:b}}function a(a){return function(){return this.h.style[a]||""}}function k(a){this.h.value= | |
a&&"\u00a0"!==a?a:""}function p(){return this.h.value}function l(a,b){b?this.h.innerHTML=a:1!=this.h.childNodes.length||3!=this.h.firstChild.nodeType?(null!=this.h.firstChild&&(this.h.innerHTML=""),this.h.appendChild(document.createTextNode(a))):this.h.firstChild.nodeValue=a}function m(a){return a?this.h.innerHTML:this.h.firstChild?this.h.firstChild.nodeValue:""}function q(a){return"value"===a?k:function(b){b&&"\u00a0"!==b?this.h.setAttribute(a,b):this.h.removeAttribute(a)}}function n(a){return"value"=== | |
a?p:function(){return this.h.getAttribute(a)}}e.browserDocumentOrDie();var t={extra:!0,"first-level":!0,"second-level":!0},u={input:!0,textarea:!0},r=0;g.VB=1;g.$h=2;g.yt="first-level";g.Jt="second-level";g.yk=null;g.cj=function(a,b){var d=[];b||(b=["*"]);for(var c=0;c<b.length;c++)for(var f=a.getElementsByTagName(b[c]),e=0;e<f.length;e++)h(f[e])&&d.push(new g(f[e]));return d};g.pt=h;g.sd=function(a){for(var b=null;null!=a&&a!=document;)b=a,a=a.parentNode;return null==a?null!=b&&"HTML"==b.nodeName? | |
!0:!1:!0};g.prototype={An:function(a,b){this.gg(a.Wf(),b);this.ke=a.ke;this.lc=a.lc;this.kc=a.kc;this.$c=a.$c;this.fk(a.eq());this.mo(a.h.className);this.Pi=a.Pi},Xg:function(){return this.h},eq:function(){var a={},b;for(b in this.h.style)a[b]=this.h.style[b];return a},mo:function(a){null!==a&&this.h.className!=a&&(this.h.className=a)},fk:function(a){if(a)for(var b in a){"CLASS"==b&&this.mo(a[b]);try{null!==a[b]&&(this.h.style[b]=a[b])}catch(d){}}},Rd:function(a,b){a==this.$c&&(1==b?(this.fk(this.lc), | |
this.lc=null):(this.fk(this.kc),this.kc=null))},Sd:function(a,b){a==this.$c&&(this.gg(this.ke,b),this.ke=null,this.Rd(a,1))},TA:function(){this.$c++;return this.$c},hf:function(){var a=c(this.h,"field");return a?a:null},Jb:function(){var a=c(this.h,"replica");return a?a:null},uq:function(){var a=c(this.h,"fieldtype");if(!a)return"first-level";a=a.toLowerCase();return t[a]?a:"first-level"},Sq:function(){return c(this.h,"grid")},getRow:function(){var a=c(this.h,"item");a||(a=c(this.h,"row"));return a}, | |
cx:function(){return c(this.h,"update")},wm:function(){return++this.Pi},km:function(){return this.Pi},ir:function(a){return a.h===this.h},sd:function(){return g.sd(this.h)},$q:function(){return this.h.id?document.getElementById(this.h.id)===this.h:this.sd(this.h)},In:function(a){this.ke=""===a?"\u00a0":a},wg:function(a,b,d){this.lc||(this.lc={});this.kc||(this.kc={});this.lc[d]=a||"";this.kc[d]=b||""},Fw:function(a){a&&(this.lc=f(this.lc,a));return this.lc},Ew:function(a){a&&(this.kc=f(this.kc,a)); | |
return this.kc},clean:function(){this.gg(this.vx,!0);this.mo(this.tx);this.fk(this.ux)}};return g}); | |
define("CellMatrix",["Matrix","Inheritance","Cell"],function(e,g,c){function b(d){this._callSuperConstructor(b,[d])}function f(b,a){var f=new c(document.createElement("p"));f.An(b,a);var e=b.Jb();f.Jb=function(){return e};return f}function h(b){if(b.ma)b.clean();else for(var a=0;a<b.length;a++)b[a].clean()}b.Yf=function(b,a,c){var e={},g;for(g in b)e[g]=!0;if(a)for(g in a)e[g]=!0;else a={};for(var m in e)if(b[m])if(a[m])if(a[m].ma&&b[m].ma)a[m].An(b[m],c);else{e=b[m].ma?[b[m]]:b[m];a[m].ma&&(a[m]= | |
[a[m]]);g=[].concat(a[m]);for(var q=0;q<e.length;q++){for(var n=!1,t=0;t<g.length;t++)if(g[t].Jb()===e[q].Jb()){g[t].An(e[q],c);n=!0;g.splice(t,1);break}n||a[m].push(f(e[q],c))}h(g)}else{e=a;g=m;q=b[m];n=c;if(q.ma)q=f(q,n);else{for(var t=[],u=0;u<q.length;u++)t[u]=f(q[u],n);q=t}e[g]=q}else h(a[m]);return a};b.prototype={su:function(b){var a=this.ff(b.getRow(),b.hf());if(!a)return!1;if(a.ma)return a.ir(b);for(var c=0;c<a.length;c++)if(a[c].ir(b))return!0;return!1},addCell:function(b,a,c){a=a||b.getRow(); | |
c=c||b.hf();var f=this.ff(a,c);f?f.ma?this.insert([f,b],a,c):f.push(b):this.insert(b,a,c)},Lv:function(b){var a=this;this.forEachElement(function(c,f,e){a.cm(c,f,e,b)})},jq:function(b,a){var c=this;this.forEachElementInRow(b,function(b,d,f){c.cm(b,d,f,a)})},Mv:function(b,a,c){var f=this.get(b,a);f&&this.cm(f,b,a,c)},cm:function(b,a,c,f){if(b.ma)f(b,a,c);else for(var e=0;e<b.length;e++)f(b[e],a,c,b[e].Jb())},ff:function(b,a,c){if(c){if(b=this.get(b,a))if(!b.ma)for(a=0;a<b.length;a++){if(b[a].Jb()== | |
c)return b[a]}else if(b.Jb()==c)return b;return null}return this.get(b,a)},Fu:function(){var b=this.getEntireMatrix(),a;for(a in b){var c=b[a],f=!1,e=void 0;for(e in c){var g;g=c[e];if(g.ma)g=g.$q();else{for(var h=!1,n=0;n<g.length;)g[n].$q()?(h=!0,n++):g.splice(n,1);g=h}g?f=!0:delete c[e]}f||delete b[a]}}};g(b,e,!1,!0);return b}); | |
define("ColorConverter",["Environment","LoggerManager","BrowserDetection","IFrameHandler"],function(e,g,c,b){function f(a){0==a.indexOf("#")&&(a=a.substring(1,a.length));if(3==a.length)a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2);else if(6!=a.length)return m.warn("A hexadecimal color value must be 3 or 6 character long. An invalid value was specified, will be ignored"),null;var b=a.substring(2,4),c=a.substring(4,6);a=d(a.substring(0,2));b=d(b);c=d(c);return null==a||null== | |
b||null==c?null:[a,b,c]}function h(a){if(0<=a&&9>=a)return new Number(a);a=a.toUpperCase();if(q[a])return q[a];m.warn("A hexadecimal number must contain numbers between 0 and 9 and letters between A and F. An invalid value was specified, will be ignored");return null}function d(a){var b=0,c=0,d;for(d=a.length;1<=d;d--){var f=h(a.substring(d-1,d));if(null==f)return null;var e;for(e=1;e<=c;e++)f*=16;c++;b+=f}return b}function a(a){if(a.indexOf("%")==a.length-1){a=parseFloat(a.substring(0,a.length-1)); | |
if(100<a||0>a)return m.warn("A RGB element must be a number \x3e\x3d0 and \x3c\x3d255 or a percentile \x3e\x3d0 and \x3c\x3d100. An invalid value was specified, will be ignored"),null;a*=2.55}return a}function k(a,b){return a&&""!=a?b?a!=b?!0:!1:!0:!1}function p(a){var b=document.createElement("DIV");b.style.backgroundColor=a;var c=r.ah(b,n,a);if(null==c)return null;if(255==c[0]&&255==c[1]&&255==c[2]&&"WHITE"!=a.toUpperCase()){var d=document.getElementsByTagName("BODY")[0];d&&(d.appendChild(b),c= | |
r.ah(b,n,a),d.removeChild(b))}t[a]=c;return t[a]}function l(a){var d="";if(t[a])return t[a];if(c.isProbablyIE())try{if(u=b.getFrameWindow("weswit__ColorFrame",!0))u.document.bgColor=a,d=u.document.bgColor}catch(e){d=null}else return p(a);if(!d||d==a){var g=document.bgColor;document.bgColor=a;d=document.bgColor;document.bgColor=g}if(!d||d==a)return p(a);t[a]=f(d);return t[a]}e.browserDocumentOrDie();var m=g.getLoggerProxy("lightstreamer.grids"),q={A:10,B:11,C:12,D:13,E:14,F:15},n="backgroundColor", | |
t={},u=null,r={ho:function(b){if(0==b.indexOf("rgb"))a:{var c,d;if(0==b.indexOf("rgb("))c=4,d=")";else if(0==b.indexOf("rgba("))c=5,d=",";else{m.warn("A RGB color value must be in the form 'rgb(x, y, z)' or 'rgba(x, y, z, a)'. An invalid value was specified, will be ignored");b=null;break a}b=b.substring(c,b.length);var e=b.indexOf(",");c=a(b.substring(0,e));var g=b.indexOf(",",e+1),e=a(b.substring(e+1,g));b=a(b.substring(g+1,b.indexOf(d,g+1)));b=null==c||null==e||null==b?null:[c,e,b]}else b=0==b.indexOf("#")? | |
f(b):l(b);return b},ah:function(a,b,c){if(null==a)return[255,255,255];var d="";try{if(window.getComputedStyle||document.defaultView&&document.defaultView.getComputedStyle){var f=document.defaultView.getComputedStyle(a,null);if(f)var e=b==n?"background-color":b,d=f.getPropertyValue(e)}}catch(g){}try{!k(d,c)&&a.currentStyle&&(e="background-color"==b?n:b,d=a.currentStyle[e])}catch(g){}try{if(!k(d,c))if(f="background-color"==b?n:b,""!=a.style[f])d=a.style[f];else return[255,255,255]}catch(g){}return"transparent"== | |
d&&a.parentNode?this.ah(a.parentNode,b):"transparent"==d?[255,255,255]:k(d,c)?this.ho(d):[255,255,255]}};return r}); | |
define("FadersHandler",["ColorConverter","Executor","Helpers","Cell","Environment"],function(e,g,c,b,f){function h(a,b,c,d,f,e,g){this.Nc(a,b,c,d,f,e,g)}function d(){this.length=0;this.cs={}}function a(a){this.ld=a;this.Yi=new d;this.gq=0;this.bf={};this.Qi=!1;this.Vc={}}function k(a){return function(){a.style.backgroundColor="transparent"}}f.browserDocumentOrDie();a.prototype={qm:function(a,b,c,d,f,e){f=this.vw(f);var g=a.wm();if(g){var k=this.Yi.get();if(null==k)return this.bf[this.gq]=new h(a, | |
b,c,d,f,g,e),this.gq++;this.bf[k].Nc(a,b,c,d,f,g,e);return k}},vw:function(a){a/=this.ld;return 1<a?a:1},Fm:function(a){var b=this.bf[a],c=b.Bc.km();if(!c)this.tk(b.Bc);else if(!(b.a<c)){var c=this.Vc[b.Bc.Eg],d=this.bf[c];d&&(d.Tq||(b.Tq?d.af&&g.executeTask(d.af):(b.ya=d.ya,b.Da<d.Da&&(b.Da=d.Da))),this.Yi.put(c));this.Vc[b.Bc.Eg]=a;b.$e&&(b.dg=e.ah(b.Bc.Xg(),"backgroundColor"));b.Rg&&(b.Rn=e.ah(b.Bc.Xg(),"color"));this.Qi||this.Ev(this.ld)}},tk:function(a){var b=this.Vc[a.Eg];if(b||0==b)delete this.Vc[a.Eg], | |
this.Yi.put(b)},qv:function(a){var b=c.getTimeStamp(),d=0;a&&(d=b-(a+this.ld));a=!1;for(var f in this.Vc){var e=this.Vc[f],h=this.bf[e];if(h.ya>h.Da)this.Yi.put(e),delete this.Vc[f],h.af&&g.addPackedTimedTask(h.af,0);else{e=h.Bc.Xg();if(!e){this.tk(h.Bc);continue}if("transparent"==h.$e)try{e.style.backgroundColor="rgba("+h.dg[0]+","+h.dg[1]+","+h.dg[2]+","+this.ae(100,0,h.Da,h.ya)/100+")"}catch(r){var u=(h.Da-h.ya)*this.ld;g.addTimedTask(k(e),u);h.af&&g.addPackedTimedTask(h.af,u);this.tk(h.Bc);continue}else h.$e&& | |
(e.style.backgroundColor="rgb("+this.ae(h.dg[0],h.$e[0],h.Da,h.ya)+","+this.ae(h.dg[1],h.$e[1],h.Da,h.ya)+","+this.ae(h.dg[2],h.$e[2],h.Da,h.ya)+")");h.Rg&&(e.style.color="rgb("+this.ae(h.Rn[0],h.Rg[0],h.Da,h.ya)+","+this.ae(h.Rn[1],h.Rg[1],h.Da,h.ya)+","+this.ae(h.Rn[2],h.Rg[2],h.Da,h.ya)+")");a=!0}h.ya++}a?(f=c.getTimeStamp(),b=f-b+d,b>this.ld&&(d=b/this.ld,b=Math.floor(d),d-=b,this.Gz(b),b=this.ld*d),this.wr(this.ld-b,f)):this.Qi=!1},wr:function(a,b){g.addTimedTask(this.qv,a,this,[b])},Gz:function(a){for(var b in this.Vc){var c= | |
this.bf[this.Vc[b]];c.ya>c.Da||(c.ya=c.ya+a<c.Da?c.ya+a:c.Da)}},Ev:function(a){1!=this.Qi&&(this.Qi=!0,this.wr(a))},ae:function(a,b,c,d){a=new Number(a);b=new Number(b);return Math.ceil(a+1/c*d*(b-a))}};d.prototype={put:function(a){this.cs[this.length]=a;this.length++},get:function(){if(0>=this.length)return null;this.length--;return this.cs[this.length]}};h.prototype={Nc:function(a,b,c,d,f,g,h){this.af=h?h:null;this.Tq=b;this.Bc=a;this.$e=""===c||"transparent"==c?"transparent":c?e.ho(c):null;this.Rg= | |
d?e.ho(d):null;this.Da=f;this.a=g;this.ya=0}};return a});define("LightstreamerConstants",[],function(){return{CONNECTING:"CONNECTING",Fa:"CONNECTED:",og:"STREAM-SENSING",rg:"WS-STREAMING",Fe:"HTTP-STREAMING",Je:"STALLED",Le:"WS-POLLING",bd:"HTTP-POLLING",Xb:"DISCONNECTED",qg:"DISCONNECTED:WILL-RETRY",pg:"DISCONNECTED:TRYING-RECOVERY",Ok:"WS",di:"HTTP",Lk:"RAW",Hk:"DISTINCT",kg:"COMMAND",Kk:"MERGE"}}); | |
define("DoubleKeyMatrix",["Inheritance","Matrix"],function(e,g){function c(){this._callSuperConstructor(c);this.Eh={}}c.prototype={insert:function(b,f,e){"undefined"==typeof this.Eh[e]&&(this.Eh[e]=f,this._callSuperMethod(c,"insert",[b,f,e]))},del:function(b,f){this._callSuperMethod(c,"del",[b,f]);delete this.Eh[f]},delReverse:function(b){var c=this.Eh[b];"undefined"!=typeof c&&this.del(c,b)},delRow:function(b){var f=this.getRow(b),e;for(e in f)delete this.Eh[e];this._callSuperMethod(c,"delRow",[b])}}; | |
c.prototype.insert=c.prototype.insert;c.prototype.del=c.prototype.del;c.prototype.delReverse=c.prototype.delReverse;c.prototype.delRow=c.prototype.delRow;e(c,g);return c}); | |
define("AbstractWidget","Inheritance Matrix LoggerManager Setter EventDispatcher IllegalStateException LightstreamerConstants DoubleKeyMatrix".split(" "),function(e,g,c,b,f,h,d,a){function k(b){this._callSuperConstructor(k);this.kind="ITEM_IS_KEY";this.Cl=this.pj=null;this.$c=0;this.am=null;this.values=new g;this.parsed=!1;this.id=b;this.useSynchEvents(!0);this.zp=this.yp=!1;this.oi=0;this.Af=null;this.em=!1;this.Id=null;this.uk=[];this.Hb=[];this.Tg={};this.Jc=this.Ti=0;this.oj=new a}var p=c.getLoggerProxy("lightstreamer.grids"); | |
k.Eo="ITEM_IS_KEY";k.Lt="UPDATE_IS_KEY";k.prototype={ga:function(){return this.id},rl:function(){if(!this.parsed)throw new h("Please parse html before calling this method");},onItemUpdate:function(a){var b=a.pm(),c=a.bj();this.$c++;var c=null==b?c:b,b=this.$x()?c:this.wa()?this.$c:c+" "+a.getValue(this.pj),d={};this.wa()?a.kq(this.xq(d)):a.forEachChangedField(this.xq(d));this.nr()&&"DELETE"==d[this.Cl]?this.removeRow(b):(this.updateRow(b,d),this.oj.insert(!0,c,b))},onClearSnapshot:function(a,b){var c= | |
null==a?b:a,d=this.oj.getRow(c);this.oj.delRow(c);for(var f in d)this.removeRow(f)},onSubscription:function(){0==this.oi&&this.yp&&this.clean();this.nr()&&!this.pj&&(this.pj=this.Af.Gq(),this.Cl=this.Af.qq());this.oi++},onUnsubscription:function(){this.oi--;0==this.oi&&this.zp&&this.clean()},onListenStart:function(a){this.Af||(this.Af=a,this.em||this.vp());if(a.Am())this.onSubscription()},onListenEnd:function(a){if(a.Am())this.onUnsubscription()},vp:function(){if(this.Af){var a=this.Af;if(a.dj()== | |
d.Kk||a.dj()==d.Lk)this.kind="ITEM_IS_KEY";else if(a.dj()==d.Hk)this.kind="UPDATE_IS_KEY";else{this.kind="KEY_IS_KEY";try{a.vq(),this.pj="key",this.Cl="command"}catch(b){}}}else this.kind="ITEM_IS_KEY"},xq:function(a){var b=this;return function(c,d,f){null===b.am&&(b.am=null==c);a[b.am?d:c]=f}},$x:function(){return"ITEM_IS_KEY"==this.kind},wa:function(){return"UPDATE_IS_KEY"==this.kind},nr:function(){return"KEY_IS_KEY"==this.kind},Kq:function(){return this.Jc>=this.Hb.length?null:this.Hb[this.Jc]}, | |
ss:function(a){var b=this.Tg[a];delete this.Tg[a];this.Hb[b]=null;this.Ti++;if(b==this.Jc){for(;null===this.Hb[this.Jc]&&this.Jc<this.Hb.length;)this.Jc++;if(this.Jc>=this.Hb.length){this.Hb=[];this.Tg={};this.Jc=this.Ti=0;return}}if(100<=this.Ti)for(this.Tg={},a=this.Hb,this.Hb=[],b=this.Ti=this.Jc=0;b<a.length;b++)null!==a[b]&&this.vr(a[b])},vr:function(a){this.Tg[a]=this.Hb.length;this.Hb.push(a)},removeRow:function(a){this.rl();if(this.Id)this.iv(a);else if(this.values.getRow(a)){p.isDebugLogEnabled()&& | |
p.logDebug(c.resolve(432),a,this);this.Id={};var b=null;try{this.removeRowExecution(a),this.values.delRow(a),this.oj.delReverse(a),this.wa()&&this.ss(a)}catch(d){b=d}this.Id=null;this.Rp();if(null!==b)throw b;}else p.logWarn(c.resolve(430),a,this)},kt:function(a,b){p.isDebugLogEnabled()&&p.logDebug(c.resolve(433),this);this.uk.push({type:2,key:a,Hy:b})},iv:function(a){p.isDebugLogEnabled()&&p.logDebug(c.resolve(434),this);this.uk.push({type:1,key:a})},Rp:function(){for(;0<this.uk.length;){var a=this.uk.shift(); | |
1==a.type?this.removeRow(a.key):this.updateRow(a.key,a.Hy)}},updateRow:function(a,b){this.rl();if(this.Id)a==this.Id?this.mergeUpdate(a,b):this.kt(a,b);else{this.Id=a;var d=null;try{if(this.updateRowExecution(a,b),this.values.getRow(a)){p.isDebugLogEnabled()&&p.logDebug(c.resolve(436),a,this);for(var f in b)this.values.insert(b[f],a,f)}else p.isDebugLogEnabled()&&p.logDebug(c.resolve(435),a,this),this.wa()&&this.vr(a),this.values.insertRow(b,a)}catch(e){d=e}this.Id=null;this.Rp();if(null!==d)throw d; | |
}},clean:function(){p.logInfo(c.resolve(431),this);var a=[];this.values.forEachRow(function(b){a.push(b)});for(var b=0;b<a.length;b++)this.removeRow(a[b])},getValue:function(a,b){return this.values.get(a,b)},setAutoCleanBehavior:function(a,b){this.yp=this.checkBool(a);this.zp=this.checkBool(b)},parseHtml:function(){},updateRowExecution:function(){},removeRowExecution:function(){},mergeUpdate:function(){}};k.prototype.onItemUpdate=k.prototype.onItemUpdate;k.prototype.onClearSnapshot=k.prototype.onClearSnapshot; | |
k.prototype.onSubscription=k.prototype.onSubscription;k.prototype.onUnsubscription=k.prototype.onUnsubscription;k.prototype.onListenStart=k.prototype.onListenStart;k.prototype.onListenEnd=k.prototype.onListenEnd;k.prototype.removeRow=k.prototype.removeRow;k.prototype.updateRow=k.prototype.updateRow;k.prototype.clean=k.prototype.clean;k.prototype.getValue=k.prototype.getValue;k.prototype.setAutoCleanBehavior=k.prototype.setAutoCleanBehavior;k.prototype.parseHtml=k.prototype.parseHtml;k.prototype.updateRowExecution= | |
k.prototype.updateRowExecution;k.prototype.removeRowExecution=k.prototype.removeRowExecution;k.prototype.mergeUpdate=k.prototype.mergeUpdate;e(k,f,!1,!0);e(k,b,!0,!0);return k}); | |
define("AbstractGrid","Inheritance CellMatrix Executor Cell Helpers FadersHandler AbstractWidget IllegalArgumentException IllegalStateException LoggerManager Environment".split(" "),function(e,g,c,b,f,h,d,a,k,p,l){function m(){this._callSuperConstructor(m,arguments);this.Ea=!1;this.Th=q;this.yc=!1;this.v=null;this.Al=this.Ej=this.Ng=!1;this.Hc=new h(50);this.Mg=this.Lg=null;this.j=this.l=0;this.P=new g}l.browserDocumentOrDie();var q=["div","span","input"],n=p.getLoggerProxy("lightstreamer.grids"); | |
m.prototype={mergeUpdate:function(a,b){n.isDebugLogEnabled()&&n.logDebug(p.resolve(438),this);for(var c in b)this.Mg[c]=b[c];this.bm(this.Lg,b)},bm:function(a,b){for(var c in b)this.P.Mv(a,c,function(d){n.isDebugLogEnabled()&&n.logDebug(p.resolve(439),a,c);var f=b[c];d.In(null===f?"":f)})},ge:function(a,b){return null!=a&&null!=b||a==b?this.Ng?a>b:a<b:null==a?!this.Ng:this.Ng},setHtmlInterpretationEnabled:function(a){this.Ea=this.checkBool(a)},isHtmlInterpretationEnabled:function(){return this.Ea}, | |
setNodeTypes:function(b){if(b&&0<b.length)this.Th=b;else throw new a("The given array is not valid or empty");},getNodeTypes:function(){return this.Th},setAddOnTop:function(a){null!=this.v&&n.logWarn(p.resolve(437));this.yc=this.checkBool(a)},isAddOnTop:function(){return this.yc},setSort:function(a,b,c,d){a?(this.v=a,this.Ng=this.checkBool(b,!0),this.Ej=this.checkBool(c,!0),this.Al=this.checkBool(d,!0),this.pk()):this.v=null},getSortField:function(){return this.v},isDescendingSort:function(){return null=== | |
this.v?null:this.Ng},isNumericSort:function(){return null===this.v?null:this.Ej},isCommaAsDecimalSeparator:function(){return null!==this.v&&this.Ej?this.Al:null},extractFieldList:function(){return this.fq(b.yt)},extractCommandSecondLevelFieldList:function(){return this.fq(b.Jt)},parseHtml:function(){},forceSubscriptionInterpretation:function(b){if(0<this.l)throw new k("This method can only be called while the grid is empty.");if(b){if(b!=d.Lt&&b!=d.Eo)throw new a("The given value is not valid, use UPDATE_IS_KEY or ITEM_IS_KEY."); | |
this.kind=b;this.em=!0}else this.em=!1,this.vp()},fq:function(a){a=this.Dl(a);var b=[],c;for(c in a)b.push(c);return b},eb:function(a){return this.Ej?f.getNumber(a,this.Al):null===a?a:(new String(a)).toUpperCase()},qt:function(a,d,f){f=f||a;var e=d.Dp,g=e+d.Xq,h=g+d.lf,k=d.jj,l=d.zl,n=[];a=this.P.getRow(a);for(var p in a)for(var m=-1,q=a[p],I=0;q&&(q.ma||I<q.length);I++){var x=q.ma?q:q[I],q=q.ma?null:q;null===x.Jb()&&m++;var z=this.Rq?this.Rq(x,f,p,x.Jb(),m):x;if(null!=x.ke){var G=x.TA(),F=x.Ew(l), | |
J=x.Fw(k);if(J){var M=!1,L=!1,x=!1,N=null,K=null,P=null,O=null;J&&(J.backgroundColor&&(M=!0,N=J.backgroundColor,K=F.backgroundColor),J.color&&(M=!0,P=J.color,O=F.color));M&&(0<e?(F=c.packTask(z.Sd,z,[G,this.Ea]),F=this.Hc.qm(z,!1,N,P,e,F),this.Hc.Fm(F),L=!0):this.Hc.tk(z),0<d.lf&&(x=c.packTask(z.Rd,z,[G,b.$h]),F=this.Hc.qm(z,!0,K,O,d.lf,x),c.addTimedTask(this.Hc.Fm,g,this.Hc,[F]),x=!0));L||(0<e?c.addTimedTask(z.Sd,e,z,[G,this.Ea]):(K=c.packTask(z.Sd,z,[G,this.Ea]),n.push(K)));x||c.addTimedTask(z.Rd, | |
h,z,[G,b.$h])}else 0<e?c.addTimedTask(z.Sd,e,z,[G,this.Ea]):(K=c.packTask(z.Sd,z,[G,this.Ea]),n.push(K)),F&&(0<d.lf?(K=F.backgroundColor,O=F.color,x=c.packTask(z.Rd,z,[G,b.$h]),F=this.Hc.qm(z,!0,K,O,d.lf,x),c.addTimedTask(this.Hc.Fm,g,this.Hc,[F])):c.addTimedTask(z.Rd,h,z,[G,b.$h]))}}for(d=0;d<n.length;d++)c.executeTask(n[d])},updateRowExecution:function(){},removeRowExecution:function(){},pk:function(){},Dl:function(){}};m.prototype.setHtmlInterpretationEnabled=m.prototype.setHtmlInterpretationEnabled; | |
m.prototype.isHtmlInterpretationEnabled=m.prototype.isHtmlInterpretationEnabled;m.prototype.setNodeTypes=m.prototype.setNodeTypes;m.prototype.getNodeTypes=m.prototype.getNodeTypes;m.prototype.setAddOnTop=m.prototype.setAddOnTop;m.prototype.isAddOnTop=m.prototype.isAddOnTop;m.prototype.setSort=m.prototype.setSort;m.prototype.getSortField=m.prototype.getSortField;m.prototype.isDescendingSort=m.prototype.isDescendingSort;m.prototype.isNumericSort=m.prototype.isNumericSort;m.prototype.isCommaAsDecimalSeparator= | |
m.prototype.isCommaAsDecimalSeparator;m.prototype.extractFieldList=m.prototype.extractFieldList;m.prototype.extractCommandSecondLevelFieldList=m.prototype.extractCommandSecondLevelFieldList;m.prototype.parseHtml=m.prototype.parseHtml;m.prototype.forceSubscriptionInterpretation=m.prototype.forceSubscriptionInterpretation;m.prototype.updateRowExecution=m.prototype.updateRowExecution;m.prototype.removeRowExecution=m.prototype.removeRowExecution;e(m,d);return m}); | |
define("VisualUpdate",["LoggerManager","Inheritance","Setter","IllegalArgumentException"],function(e,g,c,b){function f(b,a,c){this.ll=b;this.oo=a;this.key=c;this.lf=this.Dp=0;this.Xq=1200;this.zl=this.jj=null}var h=e.getLoggerProxy("lightstreamer.grids");f.prototype={getCellValue:function(c,a){var e=this.ll.ff(this.key,c,a);if(!e)throw new b("No cell defined for this field");e.ma||(e=e[0]);return e.ke||e.Wf()},setCellValue:function(c,a,e){c=this.ll.ff(this.key,c,e);if(!c)throw new b("No cell defined for this field"); | |
if(c.ma)c.In(a);else for(e=0;e<c.length;e++)c[e].In(a)},getChangedFieldValue:function(b){return this.oo[b]||null},setHotTime:function(b){this.Xq=this.checkPositiveNumber(b,!0)},setColdToHotTime:function(b){this.Dp=this.checkPositiveNumber(b,!0)},setHotToColdTime:function(b){this.lf=this.checkPositiveNumber(b,!0)},wg:function(c,a,e,f,g){c=this.ll.ff(this.key,c,g);if(!c)throw new b("No cell defined for this field");if(c.ma)c.wg(a,e,f);else for(g=0;g<c.length;g++)c[g].wg(a,e,f)},bp:function(b,a,c){this.jj|| | |
(this.jj={},this.zl={});this.jj[c]=b||"";this.zl[c]=a||""},setAttribute:function(b,a,c){this.bp(b,a,c)},setStyle:function(b,a){this.bp(b,a,"CLASS")},setCellAttribute:function(b,a,c,e,f){this.wg(b,a,c,e,f)},setCellStyle:function(b,a,c,e){this.wg(b,a,c,"CLASS",e)},forEachChangedField:function(b){for(var a in this.oo)try{b(a,this.oo[a])}catch(c){h.logError(e.resolve(474),c)}}};f.prototype.getCellValue=f.prototype.getCellValue;f.prototype.setCellValue=f.prototype.setCellValue;f.prototype.getChangedFieldValue= | |
f.prototype.getChangedFieldValue;f.prototype.setHotTime=f.prototype.setHotTime;f.prototype.setColdToHotTime=f.prototype.setColdToHotTime;f.prototype.setHotToColdTime=f.prototype.setHotToColdTime;f.prototype.setAttribute=f.prototype.setAttribute;f.prototype.setStyle=f.prototype.setStyle;f.prototype.setCellAttribute=f.prototype.setCellAttribute;f.prototype.setCellStyle=f.prototype.setCellStyle;f.prototype.forEachChangedField=f.prototype.forEachChangedField;g(f,c,!0,!0);return f}); | |
define("SlidingCell",[],function(){function e(c,b,e,h,d){this.tz=c;this.key=b;this.Hv=e;this.Rc=h||null;this.Br=d;this.Eg="s"+g++}var g=0;e.prototype={Wg:function(){var c=this.tz.Zv(this.key,this.Hv,this.Rc);if(!c)return null;if(c.ma){if(this.Rc===c.Jb()&&0>=this.Br)return c}else for(var b=-1,e=0;e<c.length;e++){var g=c[e].Jb();null===g&&b++;if(this.Rc===g&&this.Br==b)return c[e]}return null},wm:function(){var c=this.Wg();return c?c.wm():null},km:function(){var c=this.Wg();return c?c.km():null},Xg:function(){var c= | |
this.Wg();return c?c.Xg():null},Rd:function(c,b){var e=this.Wg();e&&e.Rd(c,b)},Sd:function(c,b){var e=this.Wg();e&&e.Sd(c,b)}};return e}); | |
define("DoubleKeyMap",["IllegalArgumentException"],function(e){function g(){this.map={};this.Fh={}}function c(b){return null!==b&&"undefined"!=typeof b}function b(b,d,a){var f=b[a];c(f)&&(delete b[a],delete d[f])}function f(b,d){for(var a in b)d(a,b[a])}g.prototype={set:function(b,d){var a=this.map,f=this.Fh;if(!c(b)||!c(d))throw new e("values can't be null nor missing");var g=a[b],l=f[d];c(g)?g!==d&&(c(l)?(a[l]=g,a[b]=d,f[d]=b,f[g]=l):(delete f[a[b]],a[b]=d,f[d]=b)):c(l)?(delete a[f[d]],f[d]=b,a[b]= | |
d):(a[b]=d,f[d]=b)},remove:function(c){b(this.map,this.Fh,c)},removeReverse:function(c){b(this.Fh,this.map,c)},get:function(b){return this.map[b]},getReverse:function(b){return this.Fh[b]},exist:function(b){return"undefined"!=typeof this.get(b)},existReverse:function(b){return"undefined"!=typeof this.getReverse(b)},forEach:function(b){f(this.map,b)},forEachReverse:function(b){f(this.Fh,b)}};g.prototype.set=g.prototype.set;g.prototype.remove=g.prototype.remove;g.prototype.removeReverse=g.prototype.removeReverse; | |
g.prototype.get=g.prototype.get;g.prototype.getReverse=g.prototype.getReverse;g.prototype.exist=g.prototype.exist;g.prototype.existReverse=g.prototype.existReverse;g.prototype.forEach=g.prototype.forEach;g.prototype.forEachReverse=g.prototype.forEachReverse;return g}); | |
define("StaticGrid","Inheritance AbstractGrid VisualUpdate Cell SlidingCell CellMatrix IllegalArgumentException IllegalStateException Helpers ASSERT LoggerManager DoubleKeyMap Environment".split(" "),function(e,g,c,b,f,h,d,a,k,p,l,m,q){function n(a,b,c,d){this._callSuperConstructor(n,[a]);this.aq=!1;this.Cs=null;this.setRootNode(c||document);this.ao=[];d&&this.addCell(d);this.U=new m;this.Ub=null;(b=this.checkBool(b,!0))&&this.parseHtml()}function t(a,b,c){var d=a[b];a[b]=a[c];a[c]=d}q.browserDocumentOrDie(); | |
var u=l.getLoggerProxy("lightstreamer.grids");n.prototype={toString:function(){return["[",this.id,"]"].join("|")},addCell:function(a){if(!a)throw new d("The given cell is null or undefined");if(k.isArray(a))for(var c=0;c<a.length;c++)this.addCell(a[c]);else{a=new b(a);c=a.Sq();if(!c||c!=this.id)throw new d("The cell does not belong to the Grid");this.aq=!0;this.ao.push(a)}},setRootNode:function(a){if(a&&a.getElementsByTagName)this.Cs=a;else throw new d("The given root element is not valid");},extractItemList:function(){this.rl(); | |
if(!1===this.Ub)throw new a("Can\u0092t extract schema from cells declared with the data-row property; use data-item instead.");var b=this.Xu(),c=[],d;for(d in b)c.push(d);return c},parseHtml:function(){this.parsed=!0;this.P.Fu();var c;this.aq?(c=this.ao,this.ao=[]):c=b.cj(this.Cs,this.Th);for(var d=0;d<c.length;d++){var e=c[d].Sq();if(e&&e==this.id&&(e=c[d].getRow())){isNaN(e)||(e=Number(e));if(null===this.Ub)this.Ub=isNaN(e);else if(this.Ub!=isNaN(e))throw a("Can\u0092t mix data-item and data-row declarations on the same grid"); | |
this.Ub||(this.j=e>this.j?e:this.j);c[d].hf()&&(this.P.su(c[d])||this.P.addCell(c[d]))}}if(this.P.isEmpty())throw new a("Please specify at least one cell");},Dl:function(a){var b={};this.P.Lv(function(c,d,e){c.uq()==a&&(b[e]=!0)});return b},Xu:function(){var a={};this.P.forEachRow(function(b){a[b]=!0});return a},updateRowExecution:function(a,b){var c=!this.values.getRow(a),d;if(this.Ub)d=a;else{d=null!=this.v?this.eb(this.values.get(a,this.v)):null;var e=null!=this.v?this.eb(b[this.v]):null,f=d== | |
e||"undefined"==typeof b[this.v];d=null!=this.v&&0==f?this.hl(a,d,e):c?this.yc?1:this.wa()?this.l==this.j?this.l:this.l+1:this.l+1:this.U.get(a);this.wa()&&this.j==this.l&&c&&null!=this.v&&(c=this.Fs(this.Kq()),c<d&&d--,this.U.set(a,c),this.l++,c=!1);this.U.existReverse(d)&&this.U.getReverse(d)!=a&&this.tr(d,a);this.U.set(a,d)}c&&this.l++;!this.wa()&&d>this.j&&!this.P.getRow(d)&&(c=this.P.getRow(d-1),c=h.Yf(c,null,this.Ea),this.P.insertRow(c,d));this.bm(d,b);c=this.Nl(a,d,b);this.qt(d,c,a)},Nl:function(a, | |
b,d){this.Lg=b;this.Mg=d;d=new c(this.P,d,b);this.dispatchEvent("onVisualUpdate",[a,d,b]);this.Mg=this.Lg=null;return d},Rq:function(a,b,c,d,e){return this.Ub?a:new f(this,b,c,d,e)},Zv:function(a,b,c){a=this.U.get(a);return this.P.ff(a,b,c)},removeRowExecution:function(a){var b=this.Ub?a:this.U.get(a);this.dispatchEvent("onVisualUpdate",[a,null,b]);this.Ub||(b!=this.l&&(this.tr(this.l,a),b=this.U.get(a)),p.verifyValue(this.l,b)||u.logError(l.resolve(479)));this.P.jq(b,function(a){a.clean()});this.l--; | |
this.Ub||this.U.remove(a)},Fs:function(a){var b=this.U.get(a);this.U.remove(a);this.l--;this.values.delRow(a);this.wa()&&this.ss(a);return b},tr:function(a,b){var c=this.U.get(b);if(a!=c){var d=c?h.Yf(this.P.getRow(c),null,this.Ea):null,e=c?this.U.getReverse(c):null,f,g,k;c?c>a?(g=c-1,k=a,f=-1):(g=c+1,k=a,f=1):null!=this.v||this.yc?(k=a,g=this.l,f=-1):(g=1,k=a,f=1);for(var l=g;l-f!=k;l+=f){var m=l-f,n=this.P.getRow(l),q=this.P.getRow(m);q||this.wa()||(q={},this.P.insertRow(q,m),p.verifyNotOk(c)); | |
q?(h.Yf(n,q,this.Ea),n=this.U.getReverse(l),this.U.set(n,m)):(p.verifyOk(this.wa()),p.verifyValue(l,g),n=this.U.getReverse(l),this.Fs(n))}d?(h.Yf(d,this.P.getRow(a),this.Ea),this.U.set(e,a)):this.P.jq(a,function(a){a.clean()})}},hl:function(a,b,c){for(var d=1,e=this.l,f=-1;d<e;){var f=Math.floor((d+e)/2),g=null;f<=this.l&&(g=this.U.getReverse(f),g=g==a?b:this.eb(this.values.get(g,this.v)));this.ge(c,g)?e=f-1:d=f+1}return d==e?(g=this.U.getReverse(d),a=this.eb(this.values.get(g,this.v)),this.ge(c, | |
a)?d:d+1):d},xz:function(a,b,c,d){var e=this.eb(this.values.get(a[d],this.v));t(a,c,d);for(d=b;b<c;b++){var f=this.eb(this.values.get(a[b],this.v));this.ge(e,f)||(t(a,b,d),d++)}t(a,d,c);return d},sn:function(a,b,c){if(b<c){var d=this.xz(a,b,c,Math.round(b+(c-b)/2));this.sn(a,b,d-1);this.sn(a,d+1,c)}},pk:function(){if(!this.Ub){var a={};this.U.forEachReverse(function(b,c){a[b]=c});this.sn(a,1,this.l);var b={},c=new m,d;for(d in a){c.set(a[d],d);var e=this.U.getReverse(d);if(a[d]!=e){var f=this.P.getRow(d); | |
b[e]=h.Yf(f,null,this.Ea);e=a[d];e=b[e]?b[e]:this.P.getRow(this.U.get(e));h.Yf(e,f,this.Ea)}}this.U=c}},addListener:function(a){this._callSuperMethod(n,"addListener",[a])},removeListener:function(a){this._callSuperMethod(n,"removeListener",[a])},getListeners:function(){return this._callSuperMethod(n,"getListeners")}};n.prototype.addCell=n.prototype.addCell;n.prototype.setRootNode=n.prototype.setRootNode;n.prototype.extractItemList=n.prototype.extractItemList;n.prototype.parseHtml=n.prototype.parseHtml; | |
n.prototype.addListener=n.prototype.addListener;n.prototype.removeListener=n.prototype.removeListener;n.prototype.getListeners=n.prototype.getListeners;n.prototype.updateRowExecution=n.prototype.updateRowExecution;n.prototype.removeRowExecution=n.prototype.removeRowExecution;e(n,g);return n}); | |
var classes=['LightstreamerClient','Subscription','StaticGrid','Promise'];require(classes,function(){for (var i=0;i<classes.length;i++)window[classes[i]]=arguments[i];});})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment