';const darkTheme="dark"===new URLSearchParams(window.location.search.toLowerCase()).get("theme");if(darkTheme&&(loader.globalAreaTag.style.background="#121416",loader.loadMessageTag.style.background="#121416"),loader.initialize(),loader.show(),!renderScript.isRendertron){const e=document.querySelector(".global-message-hide");e&&(e.innerText="ab cd".repeat(1e3))}const DOMAIN_REPLACE_VARIABLE="%current_domain%",currentDomain=window.location.hostname.replace("www.",""),handleUrlVariable=e=>e.replace("%current_domain%",currentDomain),replaceSettingVar=e=>({...e,common:e.common.map((e=>handleUrlVariable(e))),line:e.line.map((e=>handleUrlVariable(e))),line_rendertron:(e.line_rendertron||[]).map((e=>handleUrlVariable(e))),static:handleUrlVariable(e.static),mapOfAdditionalOriginURIs:Object.keys(e.mapOfAdditionalOriginURIs||{}).reduce(((r,a)=>{const t=e.mapOfAdditionalOriginURIs[a];return r[a]=handleUrlVariable(t),r}),{})}),initSettings=e=>{const r=replaceSettingVar(e);if(window._buildInfo=r,renderScript.isRendertron&&r){const e=(r.line_rendertron||[])[0]||(r.line||[])[0];renderScript.runWindowLoadDelay(e)}},urlsPreloadRaw='{ "common": [ "//clientsapi01.by0e87-resources.by", "//clientsapi02.by0e87-resources.by" ], "line": [ "//line01.by0e87-resources.by", "//line02.by0e87-resources.by" ], "lineByScopeMarket": {}, "static": "//origin-s3.by0e87-resources.by", "commonApi": "//fastviewdata.by0e87-resources.by", "staticSiteDir": "/webStaticBY/website", "mapOfAdditionalOriginURIs": {}, "updateUtcDate": "Tue, 29 Oct 2024 08:29:47 GMT", "site": { "version": "1.40.63", "forceUpdateVersion": 0, "environment": "production", "ref": "bWFzdGVy", "configHash": "08e4b350bcd9f7a6da7b358157d346c0" }, "enableClickStream": true, "defaultFracSize": 0, "betRoundAccuracy": 1}';if(urlsPreloadRaw){const e=JSON.parse(urlsPreloadRaw);initSettings(e),appLoad.loadBootstrap(!1)}else{renderScript.isRendertron&&console.log("render: load script wont work!");const e=renderScript.isRendertron?6e5*Math.trunc(Date.now()/6e5):Date.now();fetch(`/urls.json?hash=${e}`).then((e=>e.json())).then((e=>{initSettings(e),appLoad.loadBootstrap(!1)})).catch((()=>{appLoad&&!appLoad.restartTimer&&(appLoad.restartTimer=setTimeout((()=>{appLoad.restartTimer=void 0,appLoad.restart()}),appLoad.restartTimeout),loader.printMsg(appLoad.newLine(appLoad.msgDownloadFailed)+appLoad.newLine(`The application will be restarted in ${Math.floor(appLoad.restartTimeout/1e3)} seconds.`)+appLoad.btnCancelRestart))}))}