/*EBLoader.js - v_2_40_0_0 - 2020-10-05*/ function ebGetParamValue(queryString,paramName){var res="";if((queryString.length>0)&&(paramName.length>0)){var begin=queryString.search("[?|&]" + paramName + "=");if(begin!=-1){begin+=paramName.length+2;var end=(queryString.indexOf("&", begin) == -1) ? queryString.length : queryString.indexOf("&",begin);res=unescape(queryString.substring(begin,end));}}return res;}ebQueryString=window.ebQueryString||document.location.search||"";ebHtml5Ver=ebGetParamValue(ebQueryString,'v');ebInstreamVer=ebGetParamValue(ebQueryString,'vpaidV');ebPreview=ebGetParamValue(ebQueryString,'isPreview');ebDivAd=ebGetParamValue(ebQueryString,'divAd') || ebGetParamValue(ebQueryString, 'd');ebScriptsHost=ebGetParamValue(ebQueryString,"sHost") || "ds.serving-sys.com";ebNonCachedPath=ebGetParamValue(ebQueryString,"nonCached") || '';ebStrProtocol=getScriptProtocol();strScriptPrefix="";function getScriptProtocol(){try{if(location.ancestorOrigins){if(location.ancestorOrigins[0]&&location.ancestorOrigins[0]==location.origin&&window.parent&&window.parent.ebPtcl){return window.parent.ebPtcl;}}else if(window.parent&&window.parent.ebPtcl){return window.parent.ebPtcl;}}catch(e){}if(document.location.protocol=="http:"){return "http://";}return "https://";}if(document.location.protocol=="data:"){window.EBModulesConfig=window.EBModulesConfig?window.EBModulesConfig:{};EBModulesConfig.localMode=true;ebStrProtocol="https://";}if(ebStrProtocol=="https://" && ebScriptsHost.indexOf("ds.serving-sys.com")==0){ebScriptsHost="secure-"+ebScriptsHost;}ebCachePath=ebStrProtocol+ebScriptsHost+"/" + strScriptPrefix + "BurstingCachedScripts/";VpaidHTML5=(ebInstreamVer?ebInstreamVer:'VPAID/HTML5_1_13_0_33');EBModules={basePath:ebCachePath,relPath:'HTML5Res',version:(ebHtml5Ver?ebHtml5Ver:'_2_119_1_0'),modules:{EB:{scriptName:'EB.js'},Video:{scriptName:'EBV.js'},MRAID:{scriptName:'EBCMD.js'},EBCMD:{scriptName:'EBCMD.js'},SV:{scriptName:'EBSV.js'},SVCAT:{scriptName:'EBCat.js'},EBAPI:{scriptName:'EB_api.js'},Comm:{scriptName:'EBComm.js'},VPAID:{basePath:ebCachePath,relPath:'',scriptName:'EBVPAID.js',version:VpaidHTML5||''}}};ebArrModulesToTrigger=[];(function (){function createPreloadedModules(){EBG=window.EBG||{};EBG.EventName=EBG.EventName||{EB_INITIALIZED:"ebinitialized"};EB=window.EB||(EBG.EBC?new EBG.EBC:{_subscriptions:{},addEventListener:function (eventName,callback,callbackBinding){try{if(!this._subscriptions[eventName])this._subscriptions[eventName]=[];var subscription={eventName:eventName,callback:callback,callbackBinding:callbackBinding};this._subscriptions[eventName].push(subscription);return subscription;}catch(e){}},isInitialized:function(){return false;}});}function buildModulesList(list){if(!list||!list.length){return ["EB"];}var res=[];for(var i=0;i