1var ___d2c_route1Handlerjs_c_on="2025-05-23 17:11:58";'use strict';var ___d2c_route1Handlerjs_c_on="2024-08-13 18:30:04";"use strict";var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; 2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 3$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}; 4$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}; 5$jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var g=e[f];if(!(g in d))return;d=d[g]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE? 6$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1}; 7$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}}; 8$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}; 9$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1}; 10$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_}; 11$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)}; 12$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0}; 13$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0}; 14$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)}; 15$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a}; 16$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; 17$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(c){return{value:c,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()}; 18$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; 19$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var e=d.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);return this.nextStep_()}; 20$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}}; 21$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b}; 22$jscomp.asyncExecutePromiseGenerator=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))}; 23class ClassEventsES6{constructor(){this.listeners=new Map;this.onceListeners=new Map;this.triggerdLabels=new Map}_fCheckPast(a,b){return this.triggerdLabels.has(a)?(b(this.triggerdLabels.get(a)),!0):!1}on(a,b,c){c=void 0===c?!1:c;let d=[a];-1<a.indexOf(" ")&&(d=a.split(" "));for(a=0;a<d.length;a++){let e=d[a];this.listeners.has(e)||this.listeners.set(e,[]);this.listeners.get(e).push(b);c&&this._fCheckPast(e,b)}}onReady(a,b){this.on(a,b,!0)}once(a,b,c){c=void 0===c?!1:c;this.onceListeners.has(a)|| 24this.onceListeners.set(a,[]);c&&this._fCheckPast(a,b)||this.onceListeners.get(a).push(b)}onceReady(a,b){this.once(a,b,!0)}off(a,b){b=void 0===b?!0:b;if(!0===b)this.listeners.delete(a),this.onceListeners.delete(a);else{let c=d=>{let e=d.get(a);e&&d.set(a,e.filter(f=>f!==b))};c(this.listeners);c(this.onceListeners)}}trigger(a,...b){let c=!1;this.triggerdLabels.set(a,...b);let d=(e,f,...g)=>{(e=e.get(f))&&e.length&&(e.forEach(h=>{h(...g)}),c=!0)};d(this.onceListeners,a,...b);d(this.listeners,a,...b); 25this.onceListeners.delete(a);return c}}
26class route1EventHandler extends ClassEventsES6{constructor(a){super();this.stagingURL="wss://liorrouteone.d2cmedia.ca/";this.liveURL="wss://routeone.d2cmedia.ca/";this.active=!0;this.activeURL=(this.mode=a)?this.stagingURL:this.liveURL;this.replayCheck=null;this.messages=[];this.__id=this.socket=this.ipAddress=this.__lastMsgID=null;this.connectionErrorCounter=this.isClosingCounter=this.isConnectingCounter=0;this.lastMessage=null;this.unprocessedMessages=[{action:"hello",message:"",clientid:this.getID()}]; 27this.pingPongTimer=null;this.init().then(()=>{console.log("Initialization completed")})}close(){try{this.active=!1,this.socket.close(),this.socket=null}catch(a){}}init(){const a=this;return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){try{let b=!1;setInterval(()=>$jscomp.asyncExecutePromiseGeneratorFunction(function*(){if(0!=a.active&&!b){b=!0;try{0==a.isConnected()?yield a.connect():(a.socket.send("ping"),a.__processUnhandled())}catch(c){console.log("Unexpected error handling connection timer -- %s", 28c.message)}finally{b=!1}}}),5E3);a.connect()}catch(b){console.log("Unexpected error in __doStartup -- %s",b.message)}return!0})}getID(){let a=!1;try{if(null!=this.__id)a=this.__id;else{const b=function(){let c=null;try{c="undefined"==typeof crypto?999999999*(new Date).getTime()*Math.random():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,d=>(d^crypto.getRandomValues(new Uint8Array(1))[0]&15>>d/4).toString(16))}catch(d){c=999999999*(new Date).getTime()*Math.random()}return c};"undefined"== 29typeof sessionStorage&&(window.sessionStorage={});"undefined"==typeof sessionStorage.route1conn&&(sessionStorage.route1conn=b());this.__id=a=sessionStorage.route1conn}}catch(b){console.log("Unexpected error in getID -- %s",b.message)}return a}isConnected(){let a=!0;try{if(null==this.socket||"undefined"==typeof this.socket||"undefined"==typeof this.socket.readyState||isNaN(this.socket.readyState))a=!1,console.log("Socket is NULL -- "+(null==this.socket?"TRUE":"FALSE")),console.log("Socket is ready "+ 30(null==this.socket?"UNKNOWN":this.socket.readyState));else switch(this.socket.readyState){case 0:console.log("Connecting...");this.isClosingCounter=0;this.isConnectingCounter++;10<this.isConnectingCounter?(this.isConnectingCounter=0,console.log("CLOSING 1"),this.socket.close(),console.log("SETTING SOCKET TO NULL 1"),this.socket=null,a=!1):a=!0;break;case 1:this.isConnectingCounter=this.isClosingCounter=0;a=!0;break;case 2:console.log("Closing :(");this.isClosingCounter++;this.isConnectingCounter= 310;10<this.isClosingCounter&&(this.isClosingCounter=0,console.log("CLOSING 2"),this.socket.close(),console.log("SETTING SOCKET TO NULL 2"),this.socket=null);a=!0;break;case 3:console.log("Closed :{"),this.isConnectingCounter=this.isClosingCounter=0,console.log("SETTING SOCKET TO NULL 3"),this.socket=null,a=!1}}catch(b){console.log("Unexpected error handling isConnected: %s",b.message);try{console.log("CLOSING 3"),this.socket.close()}catch(c){}console.log("SETTING SOCKET TO NULL 4");this.socket=null}return a}isReady(){let a= 32!0;try{a=null==this.socket||1!=this.socket.readyState?!1:!0}catch(b){console.log("Unexpected error handling isReady method in listener: %s",b.message)}return a}
32addSocketListeners(a){const b=this;let c=a;try{if(null==this.socket)return console.log("Request to add socket listeners failed as socket is set to NULL"),!1;this.socket.onerror=function(d){try{if(null!=c)return c(!1),c=null,console.log("SETTING SOCKET TO NULL 5"),b.socket=null,console.log("Event data: %o",d),!1;b.connectionErrorCounter++;console.log("A communication error has occurred between client and server: %o", 33d);null!=b.socket&&10<b.connectionErrorCounter&&(console.log("CLOSING 4"),b.socket.close(),console.log("SETTING SOCKET TO NULL 6"),b.socket=null)}catch(e){console.log("Unexpected error handling socket error - %s",e.message)}};this.socket.onopen=function(d){try{b.connectionErrorCounter=0,b.isConnectingCounter=0,b.isClosingCounter=0,null!=c&&(c(!0),c=null),b.__onopen(d)}catch(e){console.log("Unexpected error handling connection open event: %s",e.message)}};this.socket.onmessage=function(d){try{b.connectionErrorCounter= 340,b.isConnectingCounter=0,b.isClosingCounter=0,b.__onmessage(d)}catch(e){console.log("Unexpected error handling socket message: %s",e.message),console.log(d)}};this.socket.onclose=function(){try{b.connectionErrorCounter=0,b.isConnectingCounter=0,b.isClosingCounter=0,console.log("SETTING SOCKET TO NULL 7"),b.socket=null}catch(d){console.log("Unexpected error handling socket close event: %s",d.message)}}}catch(d){console.log("Unexpected error handling socket listeners: %s",d.message)}}connect(){const a= 35this;return new Promise((b,c)=>{try{null!=a.socket&&"undefined"!=typeof a.socket.readyState&&(console.log("SETTING SOCKET TO NULL 8"),console.log("CLOSING 5"),a.socket.close(),a.socket=null),a.lastMessage=a.__getCurrentTime(),a.socket=new WebSocket(a.activeURL),a.addSocketListeners(d=>{d?b():c(Error("Unable to establish connection"))})}catch(d){a.__log("ERROR: CONNECT => "+d.message),c(d)}})}__processUnhandled(){try{if(0!=this.unprocessedMessages.length&&0!=this.isReady()){var a=[...this.unprocessedMessages]; 36this.unprocessedMessages=[];for(let b=0;b<a.length;b++)this.__transmit(a[b])}}catch(b){console.log("Unexpected error handling unprocessed messages: %s",b.message)}}send(a,b){try{if(null==b||"undefined"==typeof b)b="";let c={action:a,message:b,clientid:this.getID()};this.__transmit(JSON.stringify(c))}catch(c){this.__log("ERROR: SEND => "+c.message)}}__transmit(a){try{1==this.isReady(!1)?this.socket.send(a):(console.log("Unable to transmit message %o as connection is not established",a),this.unprocessedMessages.push(a))}catch(b){this.__log("ERROR: SEND => "+ 37b.message)}}__log(a){this.debugMode&&console&&console.log&&console.log(a)}__onopen(a){this.__raiseEvent("connected",{});this.send("hello")}__startMonitor(){let a=this;setInterval(function(){try{0!=a.messages.length&&console.log("Monitoring %s messages",a.messages.length)}catch(b){console.log("MONITOR FAILED: %s",b.message)}},1E3)}__onmessage(a){try{if(null==a||"undefined"==typeof a.data||"pong"==a.data)return;this.lastMessage=this.__getCurrentTime();var b=null;"undefined"!=typeof a&&"string"==typeof a.data&& 38(b=JSON.parse(a.data));null==this.replayCheck&&(this.replayCheck=new Map);switch(b.action){case "serverEvent":this.__raiseEvent(b.event,b.data);break;case "raiseError":this.__raiseEvent("error",b);break;default:console.log("Unknown server action received: %o",b)}}catch(c){console.log("Unexpected error while processing push message: "+c.message)}this.lastMessage=this.__getCurrentTime()}__removeMsg(a){let b=-1;for(let c=0;c<this.messages.length;c++)if(this.messages[c].msgid==a){b=c;break}-1<b&&this.messages.splice(b, 391);this.__lastMsgID==a&&(this.__lastMsgID=null)}requestCreditCheck(a){try{this.send("getCredit",a)}catch(b){console.log("Unexpected error getting credit: %s",b.message)}}__raiseEvent(a,b){try{this.trigger(a,b)}catch(c){}}__getCurrentTime(){return(new Date).getTime()}__getTimeDiff(a,b){return parseInt((b-a)/1E3)}__getTimeDiffMS(a,b){return b-a}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.