var gfpSpot=function(){"use strict";var r="//fpc.detecas.com/api",t="//fpp.detecas.com/api",f="202406211000",s="wFKfVDGZqRbyYCBi6IveMaQAh1ntWcP8ujT/U7r2xXs+J0L=4d3zEHSo5glN9kOpm",i="143051cbf90c3ec2e4988461cbc61bf47e1dfffba7c2bf6eca07e6780b64de12",h="5",u="",c="202404261600",e="__fdi",o="gfp",n;return typeof window!="undefined"&&window!==null&&window.location&&(r=window.location.protocol+r),n={requireJS:function(i){return new Promise(function(r,u){try{var f=document.createElement("script");f.type="text/javascript";f.src=i;f.async=!0;f.defer=!0;f.onload=function(){r(f)};f.onerror=function(n){var t={message:"Load Script requireJS: "+i,url:i,event:n};u(t)};document.head.appendChild(f)}catch(e){n.log(t,"Load Script requireJS",e.message)}})},checkServerAvailability:function(i){var r=new XMLHttpRequest;r.onerror=function(){n.log(t,"CheckServerAvailability",i)};r.open("GET",i,!0);r.send()},get:function(n){return fetch(n,{method:"GET",headers:{"Content-Type":"application/json","Cache-Control":"no-cache"}})},getByXHR:function(n,t){return new Promise(function(i,r){var u=new XMLHttpRequest,f;if(u.open("GET",n,!0),u.setRequestHeader("Content-Type","application/json"),t)for(f in t)t.hasOwnProperty(f)&&u.setRequestHeader(f,t[f]);u.onload=function(){u.status>=200&&u.status<300?i(u.responseText):r(new Error(u.statusText))};u.onerror=function(){r(new Error("Network error"))};u.send()})},getPlatform:function(){var n=navigator.platform;return n==="MacIntel"&&typeof isWebKit=="function"&&typeof isDesktopWebKit=="function"&&typeof isIPad=="function"&&isWebKit()&&!isDesktopWebKit()?isIPad()?"iPad":"iPhone":n.length>45?"Android":n},getCookie:function(n){for(var r=document.cookie.split("; "),t=0;t<r.length;t++){var u=r[t].split("="),i=u[0],f=u[1];if(i=i.trim(),i===n)return decodeURIComponent(f)}return""},getDeviceCode:function(){var t=document.getElementById("__di"),i,n;if(!t||!t.value||typeof Detecas!="object"||typeof Detecas.Base64!="object"||typeof Detecas.Base64.decode!="function")return"";try{return(i=Detecas.Base64.decode(t.value),n=JSON.parse(i),n&&typeof n=="object")?n.deviceId||"":""}catch({}){""}},getWithCache:function(n){return fetch(n,{method:"GET",headers:{"Content-Type":"text/plain","Cache-Control":"max-age=31536000, immutable"}})},createHiddenElement:function(n,t,i,r){let u=document.createElement("INPUT");u.id=i;u.name=r;u.setAttribute("type","hidden");u.value=t;n.appendChild(u)},inject:function(t,i){let r=document.getElementsByName(t);if(r!=null&&r.length!=0)for(let n=0;n<r.length;n++)r[n].value=i;else{let r=document.forms;if(r!=null&&r.length!=0)for(let u=0;u<r.length;u++)n.createHiddenElement(document.forms[u],i,u==0?t:t+u,t);else n.createHiddenElement(document.body,i,t,t)}},post:function(t,i){n.sendXHRWithCallback("POST",t,JSON.stringify(i),null)},log:function(t,u,e){var s="";typeof window!="undefined"&&window!==null&&window.location&&(s=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""));var h=n.getCookie(o),c=n.getDeviceCode(),l={sv:f,fn:u,ex:e,au:r,hn:s,sk:i,dc:c,nc:h};n.post(t+"/c/l/e",l)},getEverTagging:function(){var u=function(r){try{var u=r?r.split(","):[],f=[i!=null?String(i):""].concat(u),e=f.filter(function(n,t,i){return n&&i.indexOf(n)===t}),o=e.join(",");return{"Res-Ec-X":o,"Res-Ec-Y":i}}catch(s){return n.log(t,"GetHdEt",s.message),{}}},f=function(r,u){try{var f=typeof r=="string"&&r.trim()!==""?r:i;u(f);gfpCandy&&typeof gfpCandy.setStorage=="function"?gfpCandy.setStorage(o,f):n.log(t,"gCd",err.message)}catch(err){n.log(t,"rpEt",err.message)}},r=function(i,r){var e=u(r);n.getByXHR(t+"/e/t",e).then(function(n){f(n,i)}).catch(function(i){n.log(t,"rqEt",i.message)})};return new Promise(function(n,t){try{if(gfpCandy&&typeof gfpCandy.getStorages=="function")gfpCandy.getStorages().then(function(t){return r(n,t)}).catch(function(n){t(n.message)});else return r(n)}catch(i){t(i.message)}})},getValueByHiddenField:function(n){let t=document.getElementsByName(n);return t.length>0?t[0].value:null},postFpData:function(){n.getEverTagging();n.requireJS(r+"/s/f/p").then(function(){return gfpCode&&typeof gfpCode.getResult=="function"&&gfpMask&&typeof gfpMask.hashMD5=="function"?gfpCode.getResult(gfpMask.hashMD5):(n.log(t,"/s/f/p","fn is undefined!"),Promise.resolve())}).then(function(i){var r={Platform:n.getPlatform()},u,o;i&&(r.Attributes=i.Properties);u=gfpMask.encode(JSON.stringify(r),s);o={dt:u,sk:n.getValueByHiddenField(e),sv:f};n.post(t+"/f/p",o)}).catch(function(i){return n.log(t,"/s/f/p",i.message),Promise.resolve()})},sendXHRWithPromise:function(n,t,i){return new Promise((r,u)=>{var f=new XMLHttpRequest;f.open(n,t,!0);f.onreadystatechange=function(){f.readyState===4&&(f.status>=200&&f.status<300?r(f.responseText):u(new Error(f.statusText)))};n==="POST"&&i?(f.setRequestHeader("Content-Type","application/json"),f.send(JSON.stringify(i))):f.send()})},sendXHRWithCallback:function(n,t,i,r){var u=new XMLHttpRequest;u.open(n,t,!0);u.onreadystatechange=function(){u.readyState===4&&r&&typeof r=="function"&&(u.status>=200&&u.status<300?r(null,u.responseText):r(new Error(u.statusText)))};n==="POST"&&i?(u.setRequestHeader("Content-Type","application/json"),u.send(i)):u.send()},getSessionKeyWithDbIndex:function(n,t){return t?n+":"+t:n},injectFdi:function(){n.inject(e,n.getSessionKeyWithDbIndex(i,h))},start:function(){try{typeof u=="string"&&u.length>0&&n.requireJS(u+"/f/p/i/orchestrate_chl/"+c).catch(function(i){n.log(t,"Orchestrate",i.message)});n.injectFdi();n.requireJS(r+"/s/c/r/t").then(function(){n.postFpData(i)}).catch(function(i){n.log(t,"s/c/r/t",i.message)});n.checkServerAvailability(r+"/hc");(typeof Promise=="undefined"||Promise.toString().indexOf("[native code]")===-1)&&n.log(t,"Browser","Promise is unavailable!")}catch(f){n.log(t,"js start",f.toString())}}},{start:n.start,injectFdi:n.injectFdi}}()
var Detecas={};Detecas.Config={host:"//sc.detecas.com/di",cdn:"//sc.detecas.com/di",ip:"18.97.14.84",encodedIp:"308350548",cookieStorage:"(global.c3)",version:"2.1.7",ep:"!@#$%^",sep:"@",na:"N/A",storages:"localStorage,webSql,indexedDb,userData,fileStorage",cachedDeviceId:"",defaultDeviceId:"143051cbf90c3ec2e4988461cbc61bf47e1dfffba7c2bf6eca07e6780b64de12",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",headers:"zstd, br, gzip",capturedDate:"639173208802958780"},function(n,t,i){"use strict";function u(){try{var n=new RegExp("loaded|complete|interactive");typeof t.readyState=="undefined"||n.test(t.readyState)?(r&&(clearTimeout(r),r=null),e||(e=!0,Detecas.Core.start())):(f++,f<100&&(r=setTimeout(u,100)))}catch(i){console.error(i)}}function o(n){var i=t.createElement("SCRIPT");i.type="text/javascript";i.src=n;i.async=!0;i.defer=!0;i.onload=function(){try{t.addEventListener&&t.addEventListener("DOMContentLoaded",u,!1);u()}catch(n){console.log(n)}};t.getElementsByTagName("head")[0].appendChild(i)}function s(n){var i=t.createElement("SCRIPT");i.type="text/javascript";i.src=n;i.async=!0;i.defer=!0;i.onload=function(){try{ConfigJWT!=null&&typeof ConfigJWT=="object"&&typeof ConfigJWT.injectToken=="function"&&ConfigJWT.injectToken()}catch(n){console.log(n)}o(Detecas.Config.cdn+"/comm.ashx")};t.getElementsByTagName("head")[0].appendChild(i)}var f=0,r=null,e=!1;console.log("v"+i.version);s(Detecas.Config.cdn+"/tkexp.ashx")}(window,document,Detecas.Config)
;
;
