local na rede Internet:Plataforma de negociação on-line @sola124; Forex, commodities, índices sintéticos, ações e índices de ações @sola124; Derivcontente
Tradeforex,stocks,crypto,gold&commodities|Deriv//Version1.0.6constcacheTrackEvents={interval:null,responses:[],isTrackingResponses:false,hash:(inputString,desiredLength=32)=>{constfnv1aHash=(string)=>{lethash=0x811c9dc5;for(leti=0;i>>0;}returnhash.toString(16);};constbase64Encode=(string)=>btoa(string);lethash=fnv1aHash(inputString);letcombined=base64Encode(hash);while(combined.length{constvalue=`;${document.cookie}`;constparts=value.split(`;${name}=`);if(parts.length===2){constcookieValue=decodeURIComponent(parts.pop().split(";").shift());try{returnJSON.parse(cookieValue);}catch(e){returncookieValue;}}returnnull;},trackPeUnload:()=>{window.addEventListener("beforeunload",(event)=>{if(!cacheTrackEvents.isPeViewSent()){cacheTrackEvents.push("cached_analytics_pe_views",{name:window.location.href,properties:{url:window.location.href,},});}});},trackResponses:()=>{constoriginalXhrOpen=XML;constoriginalXhrSend=XML;XML=function(method,url){this._url=url;this._method=method;returnoriginalXhrOpen.apply(this,arguments);};XML=function(body){this.addEventListener("load",function(){letparsedPayload=null;if(typeofbody==="string"){try{parsedPayload=JSON.parse(body);}catch(e){parsedPayload=body;}}constresponseData={url:this._url,method:this._method,status:this.status,headers:this.getAllResponseHeaders(),data:this.responseText,payload:parsedPayload,};cacheTrackEvents.responses.push(responseData);});returnoriginalXhrSend.apply(this,arguments);};},isReady:()=>{if(typeofAnalytics==="undefined"||Analytics===null){returnfalse;}constinstances=Analytics.Analytics.getInstances();return!!instances?.tracking;},parseCookies:(cookieName)=>{constcookies=document.cookie.split(";").reduce((acc,cookie)=>{const[key,value]=cookie.split("=");acc[decodeURIComponent(key)]=decodeURIComponent(value);returnacc;},{});try{returncookies[cookieName]?JSON.parse(cookies[cookieName]):null;}catch(error){returnnull;}},isPeViewSent:()=>!!cacheTrackEvents.responses.find((e)=>e.payload?.type==="pe"&&e.payload?.anonymousId),set:(event)=>{cacheTrackEvents.push("cached_analytics_events",event);},push:(cookieName,data)=>{letstoredCookies=[];constcacheCookie=cacheTrackEvents.parseCookies(cookieName);if(cacheCookie)storedCookies=cacheCookie;storedCookies.push(data);document.cookie=`${cookieName}=${JSON.stringify(storedCookies)};path=/;Domain=.deriv.com`;},processEvent:(event)=>{constclientInfo=cacheTrackEvents.getCookies("client_information");if(clientInfo){const{email=null}=clientInfo;if(email){event.properties.email_hash=cacheTrackEvents.hash(email);}}if(event?.properties?.email){constemail=event.properties.email;deleteevent.properties.email;event.properties.email_hash=cacheTrackEvents.hash(email);}returnevent;},track:(originalEvent,cache)=>{constevent=cacheTrackEvents.processEvent(originalEvent);if(cacheTrackEvents.isReady()&&!cache){Analytics.Analytics.trackEvent(event.name,event.properties);}else{cacheTrackEvents.set(event);}},peView:()=>{if(!cacheTrackEvents.isTrackingResponses){cacheTrackEvents.trackResponses();cacheTrackEvents.trackPeUnload();}letpeViewInterval=null;peViewInterval=setInterval(()=>{constclientInfo=cacheTrackEvents.parseCookies("client_information");constsignupDevice=cacheTrackEvents.parseCookies("signup_device")?.signup_device;if(typeofwindow.Analytics!=="undefined"&&typeofwindow.Analytics.Analytics?.peView==="function"&&cacheTrackEvents.isReady()){window.Analytics?.Analytics?.peView(window.location.href,{loggedIn:!!clientInfo,device_type:signupDevice,});}if(cacheTrackEvents.isPeViewSent()){clearInterval(peViewInterval);}},1000);},listen:(element,{name="",properties={}},cache=false,callback=null)=>{constaddClickListener=(el)=>{if(!el.dataset.clickEventTracking){el.addEventListener("click",function(e){letevent={name,properties,cache,};if(typeofcallback==="function"){event=callback(e);}cacheTrackEvents.track(event);});el.dataset.clickEventTracking="true";}};constelements=elementinstanceofNodeList?Array.from(element):[element];elements.forEach(addClickListener);},addEventhandler:(items)=>{cacheTrackEvents.interval=setInterval(()=>{letallListenersApplied=true;items.forEach(({element,event={},cache=false,callback=null})=>{constelem=elementinstanceofElement?element:document.querySelectorAll(element);constelements=eleminstanceofNodeList?Array.from(elem):[elem];if(!elements.length){allListenersApplied=false;}elements.forEach((el)=>{if(!el.dataset.clickEventTracking){cacheTrackEvents.listen(el,event,cache,callback);allListenersApplied=false;}});});if(allListenersApplied){clearInterval(cacheTrackEvents.interval);}},1);returncacheTrackEvents;},loadEvent:(items)=>{items.forEach(({event})=>{const{name,properties}=event;cacheTrackEvents.track({name,properties,});});returncacheTrackEvents;},peLoadEvent:(items)=>{constpathname=window.location.pathname.slice(1);items.forEach(({pes=[],excludedPes=[],event,callback=null})=>{letdispatch=false;if(pes.length){if(pes.includes(pathname)){dispatch=true;}}elseif(excludedPes.length){if(!excludedPes.includes(pathname)){dispatch=true;}}else{dispatch=true;}if(dispatch){consteventData=callback?callback():event;cacheTrackEvents.loadEvent([{event:eventData}]);}});returncacheTrackEvents;},};cacheTrackEvents.peLoadEvent([{pes:["signup","eu/signup"],event:{name:"ce_virtual_signup_form",properties:{action:"open",form_source:window.location.hostname,form_name:"default_diel_deriv",url:window.location.href,},},},{pes:["signup-success","eu/signup-success"],callback:()=>{consturl=newURL(window.location.href);constemail=url.searchParams.get("email");constformattedEmail=decodeURIComponent(email).replace(//g,"+");return{name:"ce_virtual_signup_form",properties:{action:"email_confirmation_sent",form_source:window.location.hostname,form_name:"default_diel_deriv",url:window.location.href,email:formattedEmail,},};},},]).addEventhandler([{element:".livechatbtn",event:{name:"ce_widget_use_form",properties:{action:"click",widget_name:"livechat",},},},{element:".whatsapp_chat",event:{name:"ce_widget_use_form",properties:{action:"click",widget_name:"whatsapp",},},},{element:"#create",callback:(e)=>{constemailElement=document.getElementById("Email");constemail=emailElement?emailElement.value:"";return{name:"ce_virtual_signup_form",properties:{action:"started",signup_provider:"email",form_source:window.location.hostname,form_name:"default_diel_deriv",email,},};},cache:true,},{element:"#signup_login",event:{name:"ce_virtual_signup_form",properties:{action:"go_to_login",signup_provider:"email",form_source:window.location.hostname,form_name:"default_diel_deriv",},},},{element:".sign-up_banner-badges-wrappera",callback:(e)=>{constprovider=e.currentTarget.getAttribute("data-provider");return{name:"ce_virtual_signup_form",properties:{signup_provider:provider,action:"started",form_source:window.location.hostname,form_name:"default_diel_deriv",},};},},]).peView();//Analyticsblockforcta_clicksmethodstartshere//Analyticsblockforcta_clicksmethodstartshere(function(){consttrackCTAEvents=(event)=>{constanchor=event.target.closest("a");letidentifier="";if(anchor){consthref=anchor.getAttribute("href");identifier=href&&href!=="#"&&!href.startsWith("#")?href.split("/").pop().toLowerCase():anchor.getAttribute("data-href")||"";}constsection=anchor?.closest("section");constsectionName=section?section.className.split("")[0]:"";if(identifier&§ionName){consteventName="ce_cta_clicks";consteventProperties={action:"click",component_type:"btn",component_name:identifier,section_name:sectionName,cta_name:anchor.textContent?.replace(/\s+/g,"").trim(),};cacheTrackEvents.track({name:eventName,properties:eventProperties,});}};constinterval=setInterval(()=>{if(document.body){document.body.addEventListener("click",trackCTAEvents);clearInterval(interval);}},10);})();//Analyticsblockforcta_clicksmethodendsheredocument.addEventListener("DOMContentLoaded",()=>{constRUDDERSTACK_STING_KEY="2mmmTCZy9LNia85JObhPez0koy0";constRUDDERSTACK_PRODUCTION_KEY="2hrePojvWH0mpU7La2XfDgYivgC";constGB_STING_CLIENT_KEY="sdk-9wuqJ1mlcQsSyZQ";constGB_STING_DECRYPTION_KEY="";constGB_PROD_CLIENT_KEY="sdk-UhZV3cNEg5nLNLNS";constGB_PROD_DECRYPTION_KEY="nre64BV0dNIa44zW4tz5ow==";varGB_CLIENT_KEY,RUDDERSTACK_KEY,GB_DECRYPTION_KEY;if(window.location.hostname==="deriv.com"||window.location.hostname==="deriv.be"||window.location.hostname==="deriv.me"){GB_CLIENT_KEY=GB_PROD_CLIENT_KEY;GB_DECRYPTION_KEY=GB_PROD_DECRYPTION_KEY;RUDDERSTACK_KEY=RUDDERSTACK_PRODUCTION_KEY;}else{GB_CLIENT_KEY=GB_STING_CLIENT_KEY;GB_DECRYPTION_KEY=GB_STING_DECRYPTION_KEY;RUDDERSTACK_KEY=RUDDERSTACK_STING_KEY;}constclient_information=window.parseCookies(document.cookie,"client_information");constclientInfo=client_information?JSON.parse(client_information):null;constutm_data_string=window.parseCookies(document.cookie,"utm_data");constutm_data=utm_data_string?JSON.parse(utm_data_string):{};const{utm_source,utm_medium,utm_campaign}=utm_data;constcookies=window.parseCookies(document.cookie,"signup_device");letsignupDevice=null;constisBrowser=()=>typeofwindow!=="undefined";constgetLangue=()=>isBrowser()?localStore.getItem("i18n")||nigator.langue:null;if(cookies){signupDevice=JSON.parse(cookies)?.signup_device||null;}constinitialiseConfig={growthbookKey:typeof_growthbook!=="undefined"?null:GB_CLIENT_KEY,growthbookDecryptionKey:typeof_growthbook!=="undefined"?null:GB_DECRYPTION_KEY,rudderstackKey:RUDDERSTACK_KEY,growthbookOptions:{nigate:(url)=>window.location.replace(url),antiFlicker:false,nigateDelay:0,attributes:{country:window.parseCookies(document.cookie,"clients_country")||window.parseCookies(document.cookie,"website_status"),user_langue:window.parseCookies(document.cookie,"user_langue")||getLangue(),device_langue:window.parseCookies(document.cookie,"langue")||"",device_type:signupDevice,utm_source:utm_data?.["utm_source"],utm_medium:utm_data?.["utm_medium"],utm_campaign:utm_data?.["utm_campaign"],is_authorised:!!window.parseCookies(document.cookie,"client_information"),loggedIn:!!window.parseCookies(document.cookie,"client_information"),url:window.location.href,network_type:nigator.connection?.effectiveType,network_rtt:nigator.connection?.rtt,network_downlink:nigator.connection?.downlink,},},};try{window.Analytics?.Analytics.initialise(initialiseConfig);constuserId=clientInfo?.user_id?clientInfo?.user_id:window.Analytics?.Analytics?.getInstances?.().tracking?.getAnonymousId();window.Analytics?.Analytics?.identifyEvent(userId);}catch(error){console.error("Errorduringinitialisation:",error);}window.Analytics?.Analytics?.peView(location.pathname,"Deriv.com");window.getGrowthbookInstance=function(){if(typeof_growthbook!=="undefined"){return_growthbook;}else{returnwindow.Analytics?.Analytics?.getInstances?.().ab?.GrowthBook;}};window.useGrowthbookFeatureFl=function({featureFl}){constgrowthBookInstance=window?.getGrowthbookInstance?.();if(!growthBookInstance)returnnull;letfeatureFlValue=growthBookInstance.getFeatureValue(featureFl);functionupdateFeatureFlValue(){constvalue=growthBookInstance.getFeatureValue(featureFl);featureFlValue=value;}growthBookInstance.setRenderer(updateFeatureFlValue);returnfeatureFlValue;};});(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({"gtm.start":newDate().getTime(),event:"gtm.js"});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!="dataLayer"?"&l="+l:"";j.async=true;j.src="/gtm.js?id="+i+dl;f.parentNode.insertBefore(j,f);})(window,document,"script","dataLayer","GTM-NF7884S");(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments);};h._hjSettings={hjid:,hjsv:6};a=o.getElementsByTName("head")[0];r=o.createElement("script");r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,"static.hotjar.com/c/hotjar-",".js?sv=");window.growthbook_config=window.growthbook_config||{};window.growthbook_config.attributes={deviceId:"foo",company:"foo",loggedIn:true,employee:true,country:"foo",user_langue:"foo",device_type:"foo",device_langue:"foo",user_ip:"foo",};functionloadScript(url,callback){varscript=document.createElement("script");script.onload=function(){if(callback)callback();};script.src=url;document.head.appendChild(script);}//Usetoloadthejs-cookiescriptloadScript("static.deriv.com/scripts/cookie.js",function(){console.log("js-cookieloadedsuccessfully!");});(function(){//Functiontodynamicallyloadjs-cookiefunctionloadJSCookie(callback){varscript=document.createElement("script");script.onload=function(){if(callback)callback();};script.src="cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js";document.head.appendChild(script);}//DefineyourcookiestoreandmanipulationfunctionsfunctionsetupCookies(){varderiv_cookie_domain="deriv.com";//ModifyasperyouractualusevarCookieStore=function(cookie_name,cookie_domain=""){varhostname=window.location.hostname;varis_deriv_com=hostname.includes("deriv.com");this.initialized=false;this.cookie_name=cookie_name;this.domain=is_deriv_com?deriv_cookie_domain:cookie_domain||hostname;this.path="/";this.same_site="None";this.is_secure=true;this.expires=newDate("Thu,1Jan203712:00:00GMT");this.value={};};CookieStore.prototype={initialize:function(){varcookie_value=Cookies.get(this.cookie_name);try{this.value=cookie_value?JSON.parse(cookie_value):{};}catch(e){this.value={};}this.initialized=true;},write:function(val,expiry_date,is_secure,sameSite){if(!this.initialized)this.initialize();this.value=val;this.expires=expiry_date||this.expires;Cookies.set(this.cookie_name,JSON.stringify(this.value),{expires:this.expires,path:this.path,domain:this.domain,secure:is_secure!==undefined?is_secure:this.is_secure,sameSite:sameSite||this.same_site,});},get:function(key){if(!this.initialized)this.initialize();returnthis.value[key];},set:function(key,val,options){if(!this.initialized)this.initialize();this.value[key]=val;Cookies.set(this.cookie_name,JSON.stringify(this.value),{expires:this.expires,path:this.path,domain:this.domain,secure:options&&options.secure!==undefined?options.secure:this.is_secure,sameSite:(options&&options.sameSite)||this.same_site,...options,});},remove:function(){Cookies.remove(this.cookie_name,{path:this.path,domain:this.domain,});},};functiongetCookiesObject(cookies){varcookies_objects={};cookies.forEach(function(cookie_name){varcookie_object=newCookieStore(cookie_name.includes("utm")?"utm_data":cookie_name);cookies_objects[cookie_name]=cookie_object;});returncookies_objects;}functiongetDataObjFromCookies(cookies,fields){vardata={};fields.forEach(function(elem){if(cookies[elem]&&cookies[elem].get(elem)){data[elem]=cookies[elem].get(elem);}});returndata;}functiongetDataLink(data){vardata_link="";Object.keys(data).forEach(function(elem){data_link+="&"+elem+"="+encodeURIComponent(data[elem]);});returndata_link;}functiongetCookiesFields(){return["date_first_contact","signup_device","gclid","utm_source","utm_ad_id","utm_adgroup_id","utm_adrollclk_id","utm_campaign","utm_campaign_id","utm_content","utm_fbcl_id","utm_gl_client_id","utm_medium","utm_msclk_id","utm_term","sidc",];}//Exampleuse:varexampleCookies=getCookiesObject(["utm_source","utm_campaign"]);vardataObj=getDataObjFromCookies(exampleCookies,getCookiesFields());vardataLink=getDataLink(dataObj);}//Loadjs-cookieandsetupcookiesafterit'sloadedloadJSCookie(setupCookies);})();window.growthbook_config={"uuidCookieName":"gbuuid","uuidKey":"id","uuid":"21b9d8fb-da1d-4790-b145-b4f0","persistUuidOnLoad":true,"attributes":{"id":"21b9d8fb-da1d-4790-b145-b4f0","browser":"unknown","deviceType":"desktop","url":"deriv.com/?fromWorker=true","path":"/","host":"deriv.com","query":"?fromWorker=true","is_authorised":false,"loggedIn":false,"country":"us"},"payload":{"features":{"test-feature-fl":{"defaultValue":true},"test-webflow":{"defaultValue":true},"trigger_os_signup_wf":{"defaultValue":false},"enable_freshworks_live_chat_wf":{"defaultValue":false,"rules":[{"condition":{"url":{"$regex":"[?&]freshchat=1(&|$)"}},"force":true},{"condition":{"country":{"$in":["bw","ke","jm","zw","ng","za"]}},"force":true}]}},"experiments":[{"key":"test-webflow","changeId":"e5afae9f9357fb0f759a7e5162e4b0792a35e824ea6112ac3baec7","status":"draft","variations":[{"css":"","js":"","domMutations":[]},{"css":"","js":"","domMutations":[{"selector":"#cta-home-btn>.max-width-medium>.text-color-white","action":"set","attribute":"html","value":"TradeCFDsandOptionsonglobalfinancialmarkets,allinoneplacewith24/7tradingandworldwidesupportailable."}]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","urlPatterns":[{"include":true,"type":"simple","pattern":"sting.deriv.com/"}],"weights":[0,1],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation1"}],"filters":[],"seed":"f3d-a982-46fb-affd-41c3bf0a6dfe","name":"test-webflow","phase":"0","covere":1},{"key":"test_experiment_css_ime_001","changeId":"5c6404cfcf758b1dbfa4df0197b15c981b15cecf48eca7b6f34cf709b361b3ac","status":"draft","variations":[{"css":"","js":"","domMutations":[]},{"css":"","js":"","domMutations":[{"selector":".section_hero-home.header_person-ime","action":"set","attribute":"src","value":"cdn.prod.website-files.com/fe0e1dc7e70cc75d440/66fbb1b6d0d67ec2_Colombia%20(2).if"},{"selector":".section_hero-home.header_person-ime","action":"set","attribute":"srcset","value":"cdn.prod.website-files.com/fe0e1dc7e70cc75d440/66fbb1b6d0d67ec2_Colombia%20(2).if"}]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","urlPatterns":[{"include":true,"type":"simple","pattern":"sting.deriv.com/"}],"weights":[0.5,0.5],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation1"}],"filters":[],"seed":"cdb8d326-2ee7-46a3-bca1-f9461d09e658","name":"test_experiment_CSS_ime_001","phase":"0","covere":1},{"key":"sting_sanity_localised_human_exp_001","changeId":"dd63bfc456dae714a6ae962c6fa2997c31cd7cbc885b2b2a6f1","status":"running","variations":[{"css":"","js":"","domMutations":[]},{"css":"","js":"","domMutations":[{"selector":".section_hero-home.header_person-ime","action":"set","attribute":"src","value":"cdn.prod.website-files.com/fe0e1dc7e70cc75d440/6708eae0e6abd17cb1f_Mexico.if"},{"selector":".section_hero-home.header_person-ime","action":"set","attribute":"srcset","value":"cdn.prod.website-files.com/fe0e1dc7e70cc75d440/6708eae0e6abd17cb1f_Mexico.if"}]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"bucketVersion":1,"minBucketVersion":0,"urlPatterns":[{"include":true,"type":"simple","pattern":"sting.deriv.com"}],"weights":[0,1],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation1"}],"filters":[],"seed":"e444ea21-be33-4941-8ffc-1bc892c2c0c9","name":"sting_sanity_localised_human_exp_001","phase":"0","condition":{"loggedIn":false,"country":{"$in":["mx","gt","bz","sv","hn","ni","cr","pa","cu","do","ht","pr","co","ve","ec","pe","bo","py","cl","ar","uy","gy","sr","gf"]}},"covere":1},{"key":"exp_wf_sting_scrolling_homepe_a_a_14_nov","changeId":"0d35eedd728f382b7f685e5b5ab5bfd2555a0d4b9f8e2a8e4cc3","status":"running","variations":[{"css":"","js":"","domMutations":[{"selector":"#cta-home-btn>.max-width-medium>.text-color-white","action":"set","attribute":"html","value":"TradeCFDsandOptionsonglobalfinancialmarkets,allinoneplacewith24/7tradingandworldwidesupport"}]},{"css":"","js":"","domMutations":[{"selector":"#cta-home-btn>.max-width-medium>.text-color-white","action":"set","attribute":"html","value":"TradeCFDsandOptionsonglobalfinancialmarkets,allinoneplacewith24/7tradingandworldwidesupport"}]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"urlPatterns":[{"include":true,"type":"simple","pattern":"sting.deriv.com/"}],"weights":[0.5,0.5],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation1"}],"filters":[],"seed":"d-d3eb-45b6-8beeb23e6","name":"exp_wf_sting_scrolling_homepe_a_a_14_nov","phasPlataforma de negociação on-line @sola124; Forex, commodities, índices sintéticos, ações e índices de ações @sola124; Derive":"0","covere":1},{"key":"exp_wf_sting_scrolling_homepe_a_a_14_nov_es","changeId":"c9fa598dfc711cfdea516fd8abebd630bab08f2673cbadd41b","status":"running","variations":[{"css":"","js":"","domMutations":[{"selector":"#cta-home-btn>.max-width-medium>.text-color-white","action":"set","attribute":"html","value":"OpereCFDyOpcionesenlosmercadosfinancierosglobales,todoenunsololugarconoperaciones24/7ysoporteentodoelmundo"}]},{"css":"","js":"","domMutations":[{"selector":"#cta-home-btn>.max-width-medium>.text-color-white","action":"set","attribute":"html","value":"OpereCFDyOpcionesenlosmercadosfinancierosglobales,todoenunsololugarconoperaciones24/7ysoporteentodoelmundo"}]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"urlPatterns":[{"include":true,"type":"simple","pattern":"sting.deriv.com/es"}],"weights":[0.5,0.5],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation1"}],"filters":[],"seed":"82db1715-d1ec-448e-8490-c7773b8c1f60","name":"exp_wf_sting_scrolling_homepe_a_a_14_nov_es","phase":"0","covere":1}],"dateUpdated":"2024-11-14T12:46:27.477Z"},"disableVisualExperiments":false,"disableJsInjection":false,"disableUrlRedirectExperiments":false,"disableCrossOriginUrlRedirectExperiments":false,"noStreaming":false,"stickyBucketAssignmentDocs":{}};var_growthbook=function(){"usestrict";functiont(t){for(vare=1;es(t))).catch((()=>s()))}))}constp={staleTTL:6e4,maxe:144e5,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},v=n,m={fetchFeaturesCall:t=>{let{host:e,clientKey:n,headers:i}=t;returnv.fetch("".concat(e,"/api/features/").concat(n),{headers:i})},fetchRemoteEvalCall:t=>{let{host:e,clientKey:n,payload:i,headers:r}=t;consts={method:"POST",headers:{"Content-Type":"application/json",...r},body:JSON.stringify(i)};returnv.fetch("".concat(e,"/api/eval/").concat(n),s)},eventSourceCall:t=>{let{host:e,clientKey:n,headers:i}=t;returni?newv.EventSource("".concat(e,"/sub/").concat(n),{headers:i}):newv.EventSource("".concat(e,"/sub/").concat(n))},startIdleListener:()=>{lett;if("undefined"==typeofwindow||"undefined"==typeofdocument)return;conste=()=>{"visible"===document.visibilityState?(window.clearTimeout(t),A.forEach((t=>{t&&"idle"===t.state&&U(t)}))):"hidden"===document.visibilityState&&(t=window.setTimeout(C,p.idleStreamInterval))};returndocument.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},stopIdleListener:()=>{}};try{globalThis.localStore&&(v.localStore=globalThis.localStore)}catch(t){}constg=newMap;letb=!1;constk=newMap,S=newMap,A=newMap,_=newSet;functionx(t){conste=E(t),n=g.get(e)||newSet;n.add(t),g.set(e,n)}functionC(){A.forEach((t=>{t&&(t.state="idle",M(t))}))}asyncfunctionO(){try{if(!v.localStore)return;awaitv.localStore.setItem(p.cacheKey,JSON.stringify(Array.from(k.entries())))}catch(t){}}functionE(t){const[e,n]=t.getApiInfo();return"".concat(e,"||").concat(n)}function$(t){conste=E(t);if(!t.isRemoteEval())returne;constn=t.getAttributes(),i=t.getCacheKeyAttributes()||Object.keys(t.getAttributes()),r={};i.forEach((t=>{r[t]=n[t]}));consts=t.getForcedVariations(),o=t.getUrl();return"".concat(e,"||").concat(JSON.stringify({ca:r,fv:s,url:o}))}functionR(){constt=Array.from(k.entries()).map((t=>{let[e,n]=t;return{key:e,staleAt:n.staleAt.getTime()}})).sort(((t,e)=>t.staleAt-e.staleAt)),e=Math.min(Math.max(0,k.size-p.maxEntries),k.size);for(letn=0;nasyncfunction(t,e){awaitt.setPayload(e||t.getPayload())}(t,n)))}asyncfunctionF(t){const{apiHost:e,apiRequestHeaders:n}=t.getApiHosts(),i=t.getClientKey(),r=t.isRemoteEval(),s=E(t),o=$(t);letu=S.get(o);returnu||(u=(r?m.fetchRemoteEvalCall({host:e,clientKey:i,payload:{attributes:t.getAttributes(),forcedVariations:t.getForcedVariations(),forcedFeatures:Array.from(t.getForcedFeatures().entries()),url:t.getUrl()},headers:n}):m.fetchFeaturesCall({host:e,clientKey:i,headers:n})).then((t=>{if(!t.ok)thrownewError("HTTPerror:".concat(t.status));return"enabled"===t.headers.get("x-sse-support")&&_.add(s),t.json()})).then((e=>(B(s,o,e),N(t),S.delete(o),{data:e,success:!0,source:"network"}))).catch((t=>(S.delete(o),{data:null,source:"error",success:!1,error:t}))),S.set(o,u)),u}functionN(t){lete=arguments.length>1&&void0!==arguments[1]&&arguments[1];constn=E(t),i=$(t),{streamingHost:r,streamingHostRequestHeaders:s}=t.getApiHosts(),o=t.getClientKey();if(e&&_.add(n),p.backgroundSync&&_.has(n)&&v.EventSource){if(A.has(n))return;constt={src:null,host:r,clientKey:o,headers:s,cb:e=>{try{if("features-updated"===e.type){constt=g.get(n);t&&t.forEach((t=>{F(t)}))}elseif("features"===e.type){constt=JSON.parse(e.data);B(n,i,t)}t.errors=0}catch(e){T(t)}},errors:0,state:"active"};A.set(n,t),U(t)}}functionT(t){if("idle"!==t.state&&(t.errors++,t.errors>3||t.src&&2===t.src.readyState)){conste=Math.pow(3,t.errors-3)*(1e3+1e3*Math.random());M(t),setTimeout((()=>{["idle","active"].includes(t.state)||U(t)}),Math.min(e,3e5))}}functionM(t){t.src&&(t.src.onopen=null,t.src.onerror=null,t.src.close(),t.src=null,"active"===t.state&&(t.state="disabled"))}functionU(t){t.src=m.eventSourceCall({host:t.host,clientKey:t.clientKey,headers:t.headers}),t.state="active",t.src.addEventListener("features",t.cb),t.src.addEventListener("features-updated",t.cb),t.src.onerror=()=>T(t),t.src.onopen=()=>{t.errors=0}}functionI(t,e){M(t),A.delete(e)}varV=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,J={revert:function(){}},j=newMap,D=newSet;functionP(t){vare=j.get(t);returne||j.set(t,e={element:t,attributes:{}}),e}functionK(t,e,n,i,r){vars=n(t),o={isDirty:!1,originalValue:s,virtualValue:s,mutations:[],el:t,t:null,observer:newMutationObserver((function(){if("position"!==e||!o.t){"position"===e&&(o.t=setTimeout((function(){o.t=null}),1e3));vari=n(t);"position"===e&&i.parentNode===o.virtualValue.parentNode&&i.insertBeforeNode===o.virtualValue.insertBeforeNode||i!==o.virtualValue&&(o.originalValue=i,r(o))}})),mutationRunner:r,setValue:i,getCurrentValue:n};return"position"===e&&t.parentNode?o.observer.observe(t.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):o.observer.observe(t,function(t){return"html"===t?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[t]}}(e)),o}functionL(t,e){varn=e.getCurrentValue(e.el);e.virtualValue=t,t&&"string"!=typeoft?n&&t.parentNode===n.parentNode&&t.insertBeforeNode===n.insertBeforeNode||(e.isDirty=!0,at()):t!==n&&(e.isDirty=!0,at())}functionH(t){vare=t.originalValue;t.mutations.forEach((function(t){returne=t.mutate(e)})),L(function(t){returnet||(et=document.createElement("div")),et.innerHTML=t,et.innerHTML}(e),t)}functionq(t){vare=newSet(t.originalValue.split(/\s+/).filter(Boolean));t.mutations.forEach((function(t){returnt.mutate(e)})),L(Array.from(e).filter(Boolean).join(""),t)}functionG(t){vare=t.originalValue;t.mutations.forEach((function(t){returne=t.mutate(e)})),L(e,t)}functionz(t){vare=t.originalValue;t.mutations.forEach((function(t){varn=function(t){vare=t.insertBeforeSelector,n=document.querySelector(t.parentSelector);if(!n)returnnull;vari=e?document.querySelector(e):null;returne&&!i?null:{parentNode:n,insertBeforeNode:i}}(t.mutate());e=n||e})),L(e,t)}varZ=function(t){returnt.innerHTML},Q=function(t,e){returnt.innerHTML=e};functionW(t){vare=P(t);returne.html||(e.html=K(t,"html",Z,Q,H)),e.html}varX=function(t){return{parentNode:t.parentElement,insertBeforeNode:t.nextElementSibling}},Y=function(t,e){e.insertBeforeNode&&!e.parentNode.contains(e.insertBeforeNode)||e.parentNode.insertBefore(t,e.insertBeforeNode)};functiontt(t){vare=P(t);returne.position||(e.position=K(t,"position",X,Y,z)),e.position}varet,nt,it=function(t,e){returne?t.className=e:t.removeAttribute("class")},rt=function(t){returnt.className};functionst(t){vare=P(t);returne.classes||(e.classes=K(t,"class",rt,it,q)),e.classes}functionot(t,e){varn,i=P(t);returni.attributes[e]||(i.attributes[e]=K(t,e,(n=e,function(t){vare;returnnull!=(e=t.getAttribute(n))?e:null}),function(t){returnfunction(e,n){returnnull!==n?e.setAttribute(t,n):e.removeAttribute(t)}}(e),G)),i.attributes[e]}functionut(t,e,n){if(n.isDirty){n.isDirty=!1;vari=n.virtualValue;n.mutations.length||function(t,e){varn,i,r=j.get(t);if(r)if("html"===e)null==(n=r.html)||null==(i=n.observer)||i.disconnect(),deleter.html;elseif("class"===e){vars,o;null==(s=r.classes)||null==(o=s.observer)||o.disconnect(),deleter.classes}elseif("position"===e){varu,c;null==(u=r.position)||null==(c=u.observer)||c.disconnect(),deleter.position}else{vara,h,l;null==(a=r.attributes)||null==(h=a[e])||null==(l=h.observer)||l.disconnect(),deleter.attributes[e]}}(t,e),n.setValue(t,i)}}functionct(t,e){t.html&&ut(e,"html",t.html),t.classes&&ut(e,"class",t.classes),t.position&&ut(e,"position",t.position),Object.keys(t.attributes).forEach((function(n){ut(e,n,t.attributes[n])}))}functionat(){j.forEach(ct)}functionht(t){if("position"!==t.kind||1!==t.elements.size){vare=newSet(t.elements);document.querySelectorAll(t.selector).forEach((function(n){e.has(n)||(t.elements.add(n),function(t,e){varn=null;"html"===t.kind?n=W(e):"class"===t.kind?n=st(e):"attribute"===t.kind?n=ot(e,t.attribute):"position"===t.kind&&(n=tt(e)),n&&(n.mutations.push(t),n.mutationRunner(n))}(t,n))}))}}functionlt(){D.forEach(ht)}functionft(t){return"undefined"==typeofdocument?J:(D.add(t),ht(t),{revert:function(){vare;(e=t).elements.forEach((function(t){returnfunction(t,e){varn=null;if("html"===t.kind?n=W(e):"class"===t.kind?n=st(e):"attribute"===t.kind?n=ot(e,t.attribute):"position"===t.kind&&(n=tt(e)),n){vari=n.mutations.indexOf(t);-1!==i&&n.mutations.splice(i,1),n.mutationRunner(n)}}(e,t)})),e.elements.clear(),D.delete(e)}})}functiondt(t,e){returnft({kind:"html",elements:newSet,mutate:e,selector:t})}functionwt(t,e){returnft({kind:"class",elements:newSet,mutate:e,selector:t})}functionyt(t,e,n){returnV.test(e)?"class"===e||"className"===e?wt(t,(function(t){vare=n(Array.from(t).join(""));t.clear(),e&&e.split(/\s+/g).filter(Boolean).forEach((function(e){returnt.add(e)}))})):ft({kind:"attribute",attribute:e,elements:newSet,mutate:n,selector:t}):J}"undefined"!=typeofdocument&&(nt||(nt=newMutationObserver((function(){lt()}))),lt(),nt.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));constpt={};functionvt(t,e,n){n=n||{};for(const[i,r]ofObject.entries(e))switch(i){case"$or":if(!At(t,r,n))return!1;break;case"$nor":if(At(t,r,n))return!1;break;case"$and":if(!_t(t,r,n))return!1;break;case"$not":if(vt(t,r,n))return!1;break;default:if(!gt(r,mt(t,i),n))return!1}return!0}functionmt(t,e){constn=e.split(".");leti=t;for(lett=0;t0&&e.filter((t=>"$"===t[0])).length===e.length}functionkt(t,e){returnArray.isArray(t)?t.some((t=>e.includes(t))):e.includes(t)}functionSt(t,e,n,i){switch(t){case"$veq":returnf(e)===f(n);case"$vne":returnf(e)!==f(n);case"$vgt":returnf(e)>f(n);case"$vgte":returnf(e)>=f(n);case"$vlt":returnf(e)vt(t,e,n);for(lete=0;et/4).toString(16)))}constNt=Rt.uuidCookieName||$t.uuidCookieName||"gbuuid",Tt=Rt.uuidKey||$t.uuidKey||"id";letMt,Ut,It=Rt.uuid||$t.uuid||"";functionVt(){!function(t,e){constn=newDate;n.setTime(n.getTime()+3456e7),document.cookie=t+"="+e+";path=/;expires="+n.toUTCString()}(Nt,It)}functionJt(){lett={};try{conste=sessionStore.getItem("utm_params");if(e&&(t=JSON.parse(e)),location.search){conste=newURLSearchParams(location.search);letn=!1;["source","medium","campaign","term","content"].forEach((i=>{constr="utm_".concat(i),s="utm"+i[0].toUpperCase()+i.slice(1);e.has(r)&&(t[s]=e.get(r)||"",n=!0)})),n&&sessionStore.setItem("utm_params",JSON.stringify(t))}}catch(t){}returnt}functionjt(){if(!window.dataLayer||!window.dataLayer.forEach)return{};constt={};returnwindow.dataLayer.forEach((e=>{e&&"object"==typeofe&&!("length"ine)&&("event"ine||Object.keys(e).forEach((n=>{if("string"!=typeofn||n.match(/^(gtm)/))return;consti=e[n];["string","number","boolean"].includes(typeofi)&&(t[n]=i)})))})),t}functionDt(){constt=$t.noAutoAttributes?{}:function(t,e){constn=null==t.noAutoCookies,i=nigator.userent,r=i.match(/Edg/)?"edge":i.match(/Chrome/)?"chrome":i.match(/Firefox/)?"firefox":i.match(/Safari/)?"safari":"unknown",s=function(){lett=!(arguments.length>0&&void0!==arguments[0])||arguments[0];returnIt||(It=Bt(Nt),It||(It=Ft(),t&&Vt(),It))}(n);return(e.persistUuidOnLoad||t.persistUuidOnLoad)&&n&&Vt(),{...jt(),[Tt]:s,url:location.href,path:location.pathname,host:location.host,query:location.search,peTitle:document&&,deviceType:i.match(/Mobi/)?"mobile":"desktop",browser:r,...Jt()}}($t,Rt);returnRt.attributes&&Object.assign(t,Rt.attributes),t}functionPt(){vart,e;window.clearTimeout(Mt);letn=null!==(t=null!==(e=Rt.antiFlickerTimeout)&&void0!==e?e:$t.antiFlickerTimeout?parseInt($t.antiFlickerTimeout):null)&&void0!==t?t:3500;isFinite(n)||(n=3500);try{if(!document.getElementById("gb-anti-flicker-style")){constt=document.createElement("style");t.setAttribute("id","gb-anti-flicker-style"),t.innerHTML=".gb-anti-flicker{opacity:0!important;pointer-events:none;}",document.head.appendChild(t)}document.documentElement.classList.add("gb-anti-flicker"),Mt=window.setTimeout(Kt,n)}catch(t){console.error(t)}}functionKt(){window.clearTimeout(Mt);try{document.documentElement.classList.remove("gb-anti-flicker")}catch(t){console.error(t)}}(Rt.antiFlicker||$t.antiFlicker)&&Pt(),"cookie"===Rt.useStickyBucketService||"cookie"===$t.useStickyBucketService?Ut=newclassextendsOt{constructor(t){let{prefix:e="gbStickyBuckets__",jsCookie:n,cookieAttributes:i={expires:180}}=t;super(),this.prefix=e,this.jsCookie=n,this.cookieAttributes=i}asyncgetAssignments(t,e){constn=this.getKey(t,e);leti=null;if(!this.jsCookie)returni;try{constt=this.jsCookie.get(n),e=JSON.parse(t||"{}");e.attributeName&&e.attributeValue&&e.assignments&&(i=e)}catch(t){}returni}asyncseAssignments(t){conste=this.getKey(t.attributeName,t.attributeValue);if(!this.jsCookie)return;constn=JSON.stringify(t);this.jsCookie.set(e,n,this.cookieAttributes)}}({prefix:Rt.stickyBucketPrefix||$t.stickyBucketPrefix||void0,jsCookie:e}):"localStore"!==Rt.useStickyBucketService&&"localStore"!==$t.useStickyBucketService||(Ut=newclassextendsOt{constructor(t){t=t||{},super(),this.prefix=t.prefix||"gbStickyBuckets__";try{this.localStore=t.localStore||globalThis.localStore}catch(t){}}asyncgetAssignments(t,e){constn=this.getKey(t,e);leti=null;if(!this.localStore)returni;try{constt=awaitthis.localStore.getItem(n)||"{}",e=JSON.parse(t);e.attributeName&&e.attributeValue&&e.assignments&&(i=e)}catch(t){}returni}asyncseAssignments(t){conste=this.getKey(t.attributeName,t.attributeValue);if(this.localStore)try{awaitthis.localStore.setItem(e,JSON.stringify(t))}catch(t){}}}({prefix:Rt.stickyBucketPrefix||$t.stickyBucketPrefix||void0}));constLt=newclass{constructor(t){if(t=t||{},this.version=Ct,this.i=this.context=t,this.o=t.renderer||null,this.u=newSet,this.h=newSet,this.l={},this.debug=!!t.debug,this.p=newSet,this.v=[],this.m=0,this.ready=!1,this.g=newMap,this.k=newMap,this.S={},this.A=newMap,this._=newSet,this.C=!1,this.O="",this.$=newMap,this.R=!t.disableExperimentsOnLoad,t.remoteEval){if(t.decryptionKey)thrownewError("EncryptionisnotailableforremoteEval");if(!t.clientKey)thrownewError("MissingclientKey");lete=!1;try{e=!!newURL(t.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(t){}if(e)thrownewError("CannotuseremoteEvalonGrowthBookCloud")}elseif(t.cacheKeyAttributes)thrownewError("cacheKeyAttributesareonlyusedforremoteEval");if(t.features&&(this.ready=!0),xt&&t.enableDevMode&&(window._growthbook=this,document.dispatchEvent(newEvent("gbloaded"))),t.experiments&&(this.ready=!0,this.B()),this.i.stickyBucketService&&this.i.stickyBucketAssignmentDocs)for(consttinthis.i.stickyBucketAssignmentDocs){conste=this.i.stickyBucketAssignmentDocs[t];e&&this.i.stickyBucketService.seAssignments(e).catch((()=>{}))}this.ready&&this.refreshStickyBuckets(this.getPayload())}asyncsetPayload(t){this.F=t;conste=awaitthis.decryptPayload(t);this.N=e,awaitthis.refreshStickyBuckets(e),e.features&&(this.i.features=e.features),e.sedGroups&&(this.i.sedGroups=e.sedGroups),e.experiments&&(this.i.experiments=e.experiments,this.B()),this.ready=!0,this.T()}initSync(t){this.C=!0;conste=t.payload;if(e.encryptedExperiments||e.encryptedFeatures)thrownewError("initSyncdoesnotsupportencryptedpayloads");if(this.i.stickyBucketService&&!this.i.stickyBucketAssignmentDocs)thrownewError("initSyncrequiresyoutopassstickyBucketAssignmentDocsintotheGrowthBookconstructor");if(this.F=e,this.N=e,e.features&&(this.i.features=e.features),e.experiments&&(this.i.experiments=e.experiments,this.B()),this.ready=!0,t.streaming){if(!this.i.clientKey)thrownewError("MustspecifyclientKeytoenablestreaming");N(this,!0),x(this)}returnthis}asyncinit(t){if(this.C=!0,(t=t||{}).cacheSettings&&(Object.assign(p,t.cacheSettings),p.backgroundSync||(_.clear(),A.forEach(I),g.clear(),m.stopIdleListener())),t.payload){if(awaitthis.setPayload(t.payload),t.streaming){if(!this.i.clientKey)thrownewError("MustspecifyclientKeytoenablestreaming");N(this,!0),x(this)}return{success:!0,source:"init"}}{const{data:e,...n}=awaitthis.M({...t,allowStale:!0});returnt.streaming&&x(this),awaitthis.setPayload(e||{}),n}}asyncloadFeatures(t){this.C=!0,(t=t||{}).autoRefresh&&(this.i.subscribeToChanges=!0);const{data:e}=awaitthis.M({...t,allowStale:!0});awaitthis.setPayload(e||{}),this.U()&&x(this)}asyncrefreshFeatures(t){conste=awaitthis.M({...t||{},allowStale:!1});e.data&&awaitthis.setPayload(e.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){constt=this.i.apiHost||"cdn.growthbook.io";return{apiHost:t.replace(/\/*$/,""),streamingHost:(this.i.streamingHost||t).replace(/\/*$/,""),apiRequestHeaders:this.i.apiHostRequestHeaders,streamingHostRequestHeaders:this.i.streamingHostRequestHeaders}}getClientKey(){returnthis.i.clientKey||""}getPayload(){returnthis.F||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){returnthis.N||this.getPayload()}isRemoteEval(){returnthis.i.remoteEval||!1}getCacheKeyAttributes(){returnthis.i.cacheKeyAttributes}asyncM(t){vare;let{timeout:n,skipCache:i,allowStale:r,streaming:s}=t;if(!this.i.clientKey)thrownewError("MissingclientKey");returnasyncfunction(t){let{instance:e,timeout:n,skipCache:i,allowStale:r,backgroundSync:s}=t;returns||(p.backgroundSync=!1),asyncfunction(t){let{instance:e,allowStale:n,timeout:i,skipCache:r}=t;consts=E(e),o=$(e),u=newDate,c=newDate(u.getTime()-p.maxe+p.staleTTL);awaitasyncfunction(){if(!b){b=!0;try{if(v.localStore){constt=awaitv.localStore.getItem(p.cacheKey);if(!p.disableCache&&t){conste=JSON.parse(t);e&&Array.isArray(e)&&e.forEach((t=>{let[e,n]=t;k.set(e,{...n,staleAt:newDate(n.staleAt)})})),R()}}}catch(t){}if(!p.disableIdleStreams){constt=m.startIdleListener();t&&(m.stopIdleListener=t)}}}();consta=p.disableCache||r?void0:k.get(o);returna&&(n||a.staleAt>u)&&a.staleAt>c?(a.sse&&_.add(s),a.staleAt{this.p.delete(t)}}U(){vart;return(null===(t=this.i.backgroundSync)||void0===t||t)&&this.i.subscribeToChanges}asyncI(){if(!this.i.remoteEval)return;if(!this.C)return;constt=awaitthis.M({allowStale:!1});t.data&&awaitthis.setPayload(t.data)}getAllResults(){returnnewMap(this.g)}destroy(){vart;this.p.clear(),this.g.clear(),this.u.clear(),this.h.clear(),this.$.clear(),this.l={},this.v=[],this.F=void0,this.m&&clearTimeout(this.m),t=this,g.forEach((e=>e.delete(t))),xt&&window._growthbook===this&&deletewindow._growthbook,this.A.forEach((t=>{t.undo()})),this.A.clear(),this._.clear()}setRenderer(t){this.o=t}forceVariation(t,e){this.i.forcedVariations=this.i.forcedVariations||{},this.i.forcedVariations[t]=e,this.i.remoteEval?this.I():(this.B(),this.T())}run(t){const{result:e}=this.V(t,null);returnthis.J(t,e),e}triggerExperiment(t){returnthis._.add(t),this.i.experiments?this.i.experiments.filter((e=>e.key===t)).map((t=>this.j(t))).filter((t=>null!==t)):null}triggerAutoExperiments(){this.R=!0,this.B(!0)}j(t,e){constn=this.A.get(t);if(t.manual&&!this._.has(t.key)&&!n)returnnull;leti,r;this.D(t)?i=this.P(t,-1,!1,""):(({result:i,trackingCall:r}=this.V(t,null)),this.J(t,i));consts=JSON.stringify(i.value);if(!e&&i.inExperiment&&n&&n.valueHash===s)returni;if(n&&this.K(t),i.inExperiment){conste=w(t);if("redirect"===e&&i.value.urlRedirect&&t.urlPatterns){conste=t.persistQueryString?function(t,e){letn,i;try{n=newURL(t),i=newURL(e)}catch(t){returnconsole.error("Unabletomergequerystrings:".concat(t)),e}returnn.searchParams.forEach(((t,e)=>{i.searchParams.has(e)||i.searchParams.set(e,t)})),i.toString()}(this.L(),i.value.urlRedirect):i.value.urlRedirect;if(u(e,t.urlPatterns))returnthis.log("SkippingredirectbecauseoriginalURLmatchesredirectURL",{id:t.key}),i;this.O=e;const{nigate:n,delay:s}=this.H();varo;if(n)if(xt)Promise.all([...r?[y(r,null!==(o=this.i.maxNigateDelay)&&void0!==o?o:1e3)]:[],newPromise((t=>{vare;returnwindow.setTimeout(t,null!==(e=this.i.nigateDelay)&&void0!==e?e:s)}))]).then((()=>{try{n(e)}catch(t){console.error(t)}}));elsetry{n(e)}catch(t){console.error(t)}}elseif("visual"===e){conste=this.i.applyDomChangesCallback?this.i.applyDomChangesCallback(i.value):this.q(i.value);e&&this.A.set(t,{undo:e,valueHash:s})}}returni}K(t){conste=this.A.get(t);e&&(e.undo(),this.A.delete(t))}B(t){if(!this.R)return;conste=this.i.experiments||[],n=newSet(e);this.A.forEach(((t,e)=>{n.has(e)||(t.undo(),this.A.delete(e))}));for(constnofe){conste=this.j(n,t);if(null!=e&&e.inExperiment&&"redirect"===w(n))break}}J(t,e){constn=t.key,i=this.g.get(n);i&&i.result.inExperiment===e.inExperiment&&i.result.variationId===e.variationId||(this.g.set(n,{experiment:t,result:e}),this.p.forEach((n=>{try{n(t,e)}catch(t){console.error(t)}})))}G(t,e){if("override"===e.source)return;constn=JSON.stringify(e.value);if(this.l[t]!==n){if(this.l[t]=n,this.i.onFeatureUse)try{this.i.onFeatureUse(t,e)}catch(t){}xt&&window.fetch&&(this.v.push({key:t,on:e.on}),this.m||(this.m=window.setTimeout((()=>{this.m=0;constt=[...this.v];this.v=[],this.i.realtimeKey&&window.fetch("rt.growthbook.io/?key=".concat(this.i.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(t))),{cache:"no-cache",mode:"no-cors"}).catch((()=>{}))}),this.i.realtimeInterval||2e3)))}}Z(t,e,n,i,r,s){consto={value:e,on:!!e,off:!e,source:n,ruleId:i||""};returnr&&(o.experiment=r),s&&(o.experimentResult=s),this.G(t,o),o}isOn(t){returnthis.evalFeature(t).on}isOff(t){returnthis.evalFeature(t).off}getFeatureValue(t,e){constn=this.evalFeature(t).value;returnnull===n?e:n}feature(t){returnthis.evalFeature(t)}evalFeature(t){returnthis.W(t)}W(t,e){if((e=e||{evaluatedFeatures:newSet}).evaluatedFeatures.has(t))returnthis.Z(t,null,"cyclicPrerequisite");if(e.evaluatedFeatures.add(t),e.id=t,this.k.has(t))returnthis.Z(t,this.k.get(t),"override");if(!this.i.features||!this.i.features[t])returnthis.Z(t,null,"unknownFeature");constn=this.i.features[t];if(n.rules)t:for(constiofn.rules){if(i.parentConditions)for(constnofi.parentConditions){consti=this.W(n.id,e);if("cyclicPrerequisite"===i.source)returnthis.Z(t,null,"cyclicPrerequisite");if(!vt({value:i.value},n.condition||{})){if(n.gate)returnthis.Z(t,null,"prerequisite");continuet}}if(i.filters&&this.X(i.filters))continue;if("force"ini){if(i.condition&&!this.Y(i.condition))continue;if(!this.tt(i.seed||t,i.hashAttribute,this.i.stickyBucketService&&!i.disableStickyBucketing?i.fallbackAttribute:void0,i.range,i.covere,i.hashVersion))continue;returni.tracks&&i.tracks.forEach((t=>{this.et(t.experiment,t.result)})),this.Z(t,i.force,"force",i.id)}if(!i.variations)continue;constn={variations:i.variations,key:i.key||t};"covere"ini&&(n.covere=i.covere),i.weights&&(n.weights=i.weights),i.hashAttribute&&(n.hashAttribute=i.hashAttribute),i.fallbackAttribute&&(n.fallbackAttribute=i.fallbackAttribute),i.disableStickyBucketing&&(n.disableStickyBucketing=i.disableStickyBucketing),void0!==i.bucketVersion&&(n.bucketVersion=i.bucketVersion),void0!==i.minBucketVersion&&(n.minBucketVersion=i.minBucketVersion),i.namespace&&(n.namespace=i.namespace),i.meta&&(n.meta=i.meta),i.ranges&&(n.ranges=i.ranges),i.name&&(n.name=i.name),i.phase&&(n.phase=i.phase),i.seed&&(n.seed=i.seed),i.hashVersion&&(n.hashVersion=i.hashVersion),i.filters&&(n.filters=i.filters),i.condition&&(n.condition=i.condition);const{result:r}=this.V(n,t);if(this.J(n,r),r.inExperiment&&!r.passthrough)returnthis.Z(t,r.value,"experiment",i.id,n,r)}returnthis.Z(t,void0===n.defaultValue?null:n.defaultValue,"defaultValue")}tt(t,e,n,i,o,u){if(!i&&void0===o)return!0;if(!i&&0===o)return!1;const{hashValue:c}=this.nt(e,n);if(!c)return!1;consta=r(t,c,u||1);returnnull!==a&&(i?s(a,i):void0===o||a{const{hashValue:e}=this.nt(t.attribute);if(!e)return!0;constn=r(t.seed,e,t.hashVersion||2);returnnull===n||!t.ranges.some((t=>s(n,t)))}))}V(t,e){constn=t.key,i=t.variations.length;if(it.split("=",2))).filter((e=>{let[n]=e;returnn===t})).map((t=>{let[,e]=t;returnparseInt(e)}));returnr.length>0&&r[0]>=0&&r[0]=0,h=e,d=!!n}if(!f){if(t.filters){if(this.X(t.filters))return{result:this.P(t,-1,!1,e)}}elseif(t.namespace&&!function(t,e){constn=r("__"+e[0],t,1);returnnull!==n&&n>=e[1]&&n[this.ht(t.experiment,t.result),t])))}asyncfireDeferredTrackingCalls(){if(!this.i.trackingCallback)return;constt=[];this.$.forEach((e=>{e&&e.experiment&&e.result?t.push(this.et(e.experiment,e.result)):console.error("Invaliddeferredtrackingcall",{call:e})})),this.$.clear(),awaitPromise.all(t)}setTrackingCallback(t){this.i.trackingCallback=t,this.fireDeferredTrackingCalls()}ht(t,e){returne.hashAttribute+e.hashValue+t.key+e.variationId}asyncet(t,e){constn=this.ht(t,e);if(this.i.trackingCallback){if(!this.u.has(n)){this.u.add(n);try{awaitthis.i.trackingCallback(t,e)}catch(t){console.error(t)}}}elsethis.$.has(n)||this.$.set(n,{experiment:t,result:e})}it(t){conste=t.key,n=this.i.overrides;returnn&&n[e]&&"string"==typeof(t=Object.assign({},t,n[e])).url&&(t.url=o(t.url)),t}nt(t,e){letn=t||"id",i="";returnthis.S[n]?i=this.S[n]:this.i.attributes?i=this.i.attributes[n]||"":this.i.user&&(i=this.i.user[n]||""),!i&&e&&(this.S[e]?i=this.S[e]:this.i.attributes?i=this.i.attributes[e]||"":this.i.user&&(i=this.i.user[e]||""),i&&(n=e)),{hashAttribute:n,hashValue:i}}P(t,e,n,i,r,s){leto=!0;(e=t.variations.length)&&(e=0,o=!1);const{hashAttribute:u,hashValue:c}=this.nt(t.hashAttribute,this.i.stickyBucketService&&!t.disableStickyBucketing?t.fallbackAttribute:void0),a=t.meta?t.meta[e]:{},h={key:a.key||""+e,featureId:i,inExperiment:o,hashUsed:n,variationId:e,value:t.variations[e],hashAttribute:u,hashValue:c,stickyBucketUsed:!!s};returna.name&&(h.name=a.name),void0!==r&&(h.bucket=r),a.passthrough&&(h.passthrough=a.passthrough),h}L(){returnthis.i.url||(xt?window.location.href:"")}ot(t){conste=this.L();if(!e)return!1;constn=e.replace(/^?:\/\//,"").replace(/^[^/]*\//,"/");return!!t.test(e)||!!t.test(n)}st(t){conste=this.i.groups||{};for(letn=0;nt.js)))return!0}else{if("redirect"!==e)return!0;if(this.i.disableUrlRedirectExperiments)return!0;try{conste=newURL(this.L());for(constnoft.variations){if(!n||!n.urlRedirect)continue;constt=newURL(n.urlRedirect);if(this.i.disableCrossOriginUrlRedirectExperiments){if(t.protocol!==e.protocol)return!0;if(t.host!==e.host)return!0}}}catch(e){returnthis.log("ErrorparsingcurrentorredirectURL",{id:t.key,error:e}),!0}}return!(!t.changeId||!(this.i.blockedChangeIds||[]).includes(t.changeId))}getRedirectUrl(){returnthis.O}H(){returnthis.i.nigate?{nigate:this.i.nigate,delay:0}:xt?{nigate:t=>{window.location.replace(t)},delay:100}:{nigate:null,delay:0}}q(t){if(!xt)return;conste=[];if(t.css){constn=document.createElement("style");n.innerHTML=t.css,document.head.appendChild(n),e.push((()=>n.remove()))}if(t.js){constn=document.createElement("script");n.innerHTML=t.js,this.i.jsInjectionNonce&&(n.nonce=this.i.jsInjectionNonce),document.head.appendChild(n),e.push((()=>n.remove()))}returnt.domMutations&&t.domMutations.forEach((t=>{e.push(function(t){vare=t.selector,n=t.action,i=t.value,r=t.attribute,s=t.parentSelector,o=t.insertBeforeSelector;if("html"===r){if("append"===n)returndt(e,(function(t){returnt+(null!=i?i:"")}));if("set"===n)returndt(e,(function(){returnnull!=i?i:""}))}elseif("class"===r){if("append"===n)returnwt(e,(function(t){i&&t.add(i)}));if("remove"===n)returnwt(e,(function(t){i&&t.delete(i)}));if("set"===n)returnwt(e,(function(t){t.clear(),i&&t.add(i)}))}elseif("position"===r){if("set"===n&&s)returnfunction(t,e){returnft({kind:"position",elements:newSet,mutate:function(){return{insertBeforeSelector:o,parentSelector:s}},selector:t})}(e)}else{if("append"===n)returnyt(e,r,(function(t){returnnull!==t?t+(null!=i?i:""):null!=i?i:""}));if("set"===n)returnyt(e,r,(function(){returnnull!=i?i:""}));if("remove"===n)returnyt(e,r,(function(){returnnull}))}returnJ}(t).revert)})),()=>{e.forEach((t=>t()))}}lt(t){conste=newSet,n=t&&t.features?t.features:this.getFeatures(),i=t&&t.experiments?t.experiments:this.getExperiments();returnObject.keys(n).forEach((t=>{consti=n[t];if(i.rules)for(consttofi.rules)t.variations&&(e.add(t.hashAttribute||"id"),t.fallbackAttribute&&e.add(t.fallbackAttribute))})),i.map((t=>{e.add(t.hashAttribute||"id"),t.fallbackAttribute&&e.add(t.fallbackAttribute)})),Array.from(e)}asyncrefreshStickyBuckets(t){if(this.i.stickyBucketService){conste=this.ft(t);this.i.stickyBucketAssignmentDocs=awaitthis.i.stickyBucketService.getAllAssignments(e)}}dt(t,e){if(!this.i.stickyBucketAssignmentDocs)return{};const{hashAttribute:n,hashValue:i}=this.nt(t),r="".concat(n,"||").concat(l(i)),{hashAttribute:s,hashValue:o}=this.nt(e),u=o?"".concat(s,"||").concat(l(o)):null,c={};returnu&&this.i.stickyBucketAssignmentDocs[u]&&Object.assign(c,this.i.stickyBucketAssignmentDocs[u].assignments||{}),this.i.stickyBucketAssignmentDocs[r]&&Object.assign(c,this.i.stickyBucketAssignmentDocs[r].assignments||{}),c}rt(t){let{expKey:e,expBucketVersion:n,expHashAttribute:i,expFallbackAttribute:r,expMinBucketVersion:s,expMeta:o}=t;n=n||0,s=s||0,i=i||"id",o=o||[];constu=this.ct(e,n),c=this.dt(i,r);if(s>0)for(lett=0;tt.key===a));returnh{const{hashValue:n}=this.nt(t);e[t]=l(n)})),e}ut(t,e,n){consti="".concat(t,"||").concat(e),r=this.i.stickyBucketAssignmentDocs&&this.i.stickyBucketAssignmentDocs[i]&&this.i.stickyBucketAssignmentDocs[i].assignments||{},s={...r,...n};return{key:i,doc:{attributeName:t,attributeValue:e,assignments:s},changed:JSON.stringify(r)!==JSON.stringify(s)}}}({...$t,remoteEval:!!$t.remoteEval,trackingCallback:async(t,e)=>{constn=[],i={experiment_id:t.key,variation_id:e.key};if(Rt.additionalTrackingCallback&&n.push(Promise.resolve(Rt.additionalTrackingCallback(t,e))),window.gt){lett;conste=newPromise((e=>{t=e}));n.push(e),window.gt("event","experiment_viewed",{...i,event_callback:t})}if(window.dataLayer){lett;conste=newPromise((e=>{t=e}));n.push(e),window.dataLayer.push({event:"experiment_viewed",...i,eventCallback:t})}if(window.analytics&&window.analytics.track){window.analytics.track("ExperimentViewed",i);constt=newPromise((t=>window.setTimeout(t,300)));n.push(t)}awaitPromise.all(n)},...Rt,attributes:Dt(),stickyBucketService:Ut});Lt.setRenderer((()=>{document.dispatchEvent(newCustomEvent("growthbookdata"))})),Lt.init({payload:Rt.payload,streaming:!(Rt.noStreaming||$t.noStreaming||!1===Rt.backgroundSync),cacheSettings:Rt.cacheSettings}).then((()=>{(Rt.antiFlicker||$t.antiFlicker)&&(Lt.getRedirectUrl()?Pt():Kt())}));letHt=location.href;setInterval((()=>{location.href!==Ht&&(Ht=location.href,Lt.setURL(Ht),Lt.updateAttributes(Dt()))}),500),document.addEventListener("growthbookrefresh",(()=>{location.href!==Ht&&(Ht=location.href,Lt.setURL(Ht)),Lt.updateAttributes(Dt())})),document.addEventListener("growthbookpersist",(()=>{Vt()}));constqt=t=>{try{t&&t(Lt)}catch(t){console.error("Uncaughtgrowthbook_queueerror",t)}};returnwindow.growthbook_queue&&Array.isArray(window.growthbook_queue)&&window.growthbook_queue.forEach((t=>{qt(t)})),window.growthbook_queue={push:t=>{qt(t)}},Lt}();//#sourceMappingURL=auto.min.js.mapTryfreedemoTraderx27;sHubEnglishFrançaisالعربيةPortuguêsEspañolРусскийไทยTiếngViệtবাংলাසිංහලTürkçeKiswahili简体中文繁體中文한국어ItalianoDeutschPolskiTradingTradeCFDsOptionsMarketsForexDerivedIndicesStocksStockIndicesCommoditiesCryptocurrenciesETFsTacticalIndicesToolsTradingViewMT5signalsPlatformsCFDsDerivMT5DerivcTraderDerivXOptionsDerivTraderDerivBotDerivGOSmartTraderLearning&supportLearnDerivAcademyDerivBlogGlossaryGetsupportHelpcentreCommunityContactusResourcesPaymentmethodsAboutWhoweareWhychooseusRegulatoryinformationSecure&responsibletradingCareersPartnersENTradingTradeCFDsOptionsMarketsForexDerivedIndicesStocksStockIndicesCommoditiesCryptocurrenciesETFsTacticalIndicesToolsTradingViewMT5signalsPlatformsCFDsDerivMT5DerivcTraderDerivXOptionsDerivTraderDerivBotDerivGOSmartTraderLearning&supportLearnDerivAcademyDerivBlogGlossaryGetsupportHelpcentreCommunityContactusResourcesPaymentmethodsAboutWhoweareWhychooseusRegulatoryinformationSecure&responsibletradingCareersPartnersTraderx27;sHubLoginTryfreedemoTryfreedemoENEnglishFrançaisالعربيةPortuguêsEspañolРусскийไทยTiếngViệtবাংলাසිංහලTürkçeKiswahili简体中文繁體中文한국어ItalianoDeutschPolskiSignupLoginLoginTradingPlatformsLearning&supportAboutPartnersTraderx27;sHubLoginTryfreedemoENSignupLoginLoginTradingforanyone.
Anywhere.Anytime.TradeCFDsandOptionsonglobalfinancialmarkets,allinoneplacewith24/7tradingandworldwidesupport.TryfreedemoTraderx27;sHubMostTrustedBrokerUFAwards2024BestCustomerService-GlobalGlobalForexAwards2024BrokeroftheYear-GlobalFinanceMnates2024MostInnovativeBrokerUFAwards2023Trustpilot2.5M+Usersworldwide$650B+Monthlyvolume1999Establishedsince168M+MonthlydealsWe’re25yearsstrongDependableOur99.97%uptimeensuresyouruninterruptedaccesstothemarkets.SafeandsecureWekeepyourpersonaldataandfundssafe.
RegulatedWe’reregulatedandlicensedbyglobalfinancialauthorities.24/7supportOurprofessionalmultilingualteamishereforyouanytime.User-friendlytradingplatforms,onanydeviceCFDsOptionsBotsSocialDerivMT5ThemostpopularandcomprehensiveCFDsplatform.LearnmoreDerivcTraderFastCFDsplatformwithinbuiltcopytrading.LearnmoreDerivXUser-friendlyandcustomisableCFDsplatform.LearnmoreDerivGOMobileappformultiplierstradingonthego.LearnmoreDerivTraderFlshipoptions,accumulators,andmultiplierstradingplatform.LearnmoreDerivBotAutomatedtrading.Nocodingrequired.LearnmoreDerivBotAutomatedtrading.Nocodingrequired.LearnmoreDerivcTraderFastCFDsplatformwithinbuiltcopytrading.LearnmoreTradeCFDsandOptionsCFDsTradewithlevere,unbeatablespreads,andfastexecutiononthewidestrangeofmarkets.LearnmoreOptionsTradediverseVanillaandExoticOptionsacrossplatformsandmarketswithoutriskingmorethanyourinitialstake.LearnmoreStarttradingin3steps1.SignupandexploreSignupinminutesandexploreTrader’sHub—allyourtradingneeds,inoneplace.2.TrywithzeroriskTryanytrade,onanyplatformwithazero-risk,demotradingaccount.3.TradewithconfidenceFundyouraccountandstarttradingwithround-the-clocksupport.TryfreedemoTraderx27;sHubFast,hassle-freedepositsandwithdrawals60+globalpaymentmethods.DepositinstantlystartingfromjustUSD5.Withdrawinminutes.*Learnmore*ailabilityofpaymentmethodsandprocessingspeedsmayvarybasedonlocationandselectedpaymentoption.Joinover2.5million
onlinetradersTryfreedemoTraderx27;sHubAboutWhoweareWhychooseusOurprinciplesContactusCareersDerivTechDerivLifeTradeCFDsOptionsMarketsForexDerivedIndicesStocksStockIndicesCommoditiesCryptocurrenciesETFsTacticalIndicesPlatformsDerivMT5DerivcTraderDerivXDerivTraderDerivGODerivBotSmartTraderSupportHelpcentreDerivAcademyDerivBlogCommunityStatuspePartnersPartnershipprogrammesDerivAPILegalRegulatoryinformationTerms&conditionsSecure&responsibletradingFraudpreventionAboutWhoweareWhychooseusOurprinciplesContactusCareersDerivTechDerivLifeTradeCFDsOptionsSupportHelpcentreDerivAcademyDerivBlogCommunityStatuspeMarketsForexDerivedIndicesStocksStockIndicesCommoditiesCryptocurrenciesETFsTacticalIndicesPlatformsDerivMT5DerivcTraderDerivXDerivTraderDerivGODerivBotSmartTraderLegalRegulatoryinformationTerms&conditionsSecure&responsibletradingFraudpreventionPartnersPartnershipprogrammesDerivAPIDerivGOTradeMultipliersandAccumulatorOptionsonourmobileapp.Scantodownload*TheailabilityofDerivGOdependsonyourcountryofresidence.DerivInvestments(Europe)LimitedislicensedandregulatedbytheMaltaFinancialServicesAuthorityundertheInvestmentServicesAct.Deriv(FX)LtdislicensedbytheLabuanFinancialServicesAuthority.
Deriv(BVI)LtdislicensedbytheBritishVirginIslandsFinancialServicesCommission.
Deriv(V)LtdislicensedandregulatedbytheVanuatuFinancialServicesCommission.Deriv(Mauritius)LtdislicensedbytheFinancialServicesCommission,Mauritius.Deriv(SVG)LLChasaregisteredofficeatFirstFloor,SVGTeachersCreditUnionUptownBuilding,CornerofJamesandMiddleStreet,KingstownP.O.,StVincentandtheGrenadines.
Deriv.comLimited,acompanyregisteredinGuernsey,istheholdingcompanyfortheseentities.MakesuretoreadourTermsandConditions,RiskDisclosure,andSecureandResponsibleTradingtofullyunderstandtherisksinvolvedbeforeusingourservices.Pleasealsonotethattheinformationonthiswebsitedoesnotconstituteinvestmentadvice.DerivInvestments(Europe)LimitedislicensedandregulatedbytheMaltaFinancialServicesAuthorityundertheInvestmentServicesAct.Deriv(FX)LtdislicensedbytheLabuanFinancialServicesAuthority.
Deriv(BVI)LtdislicensedbytheBritishVirginIslandsFinancialServicesCommission.
Deriv(V)LtdislicensedandregulatedbytheVanuatuFinancialServicesCommission.Deriv(Mauritius)LtdislicensedbytheFinancialServicesCommission,Mauritius.Deriv(SVG)LLChasaregisteredofficeatFirstFloor,SVGTeachersCreditUnionUptownBuilding,CornerofJamesandMiddleStreet,KingstownP.O.,StVincentandtheGrenadines.Deriv.comLimited,acompanyregisteredinGuernsey,istheholdingcompanyfortheseentities.MakesuretoreadourTermsandConditions,RiskDisclosure,andSecureandResponsibleTradingtofullyunderstandtherisksinvolvedbeforeusingourservices.Pleasealsonotethattheinformationonthiswebsitedoesnotconstituteinvestmentadvice.Theproductsofferedonourwebsitearecomplexderivativeproductsthatcarryasignificantriskofpotentialloss.CFDsarecomplexinstrumentswithahighriskoflosingmoneyrapidlyduetolevere.Youshouldconsiderwhetheryouunderstandhowtheseproductsworkandwhetheryoucanaffordtotakethehighriskoflosingyourmoney.varWebflow=Webflow||[];Webflow.push(function(){if(document.querySelector(".new-nbar_component")){//Findthe.new-nbar_componentelementconstnbarComponent=document.querySelector(".new-nbar_component");//AddeventlistenersforhovernbarComponent.addEventListener("mouseenter",()=>{if(window.innerWidth>991){disableScroll();}});nbarComponent.addEventListener("mouselee",()=>{if(window.innerWidth>991){enableScroll();}});//FunctiontodisablescrollfunctiondisableScroll(){document.body.classList.add("disable-scroll");}//FunctiontoenablescrollfunctionenableScroll(){document.body.classList.remove("disable-scroll");}}});(function(){varscript=document.createElement("script");script.src="/us1/v5/datadog-rum.js";script.type="text/jascript";script.onload=function(){if(window.DD_RUM){window.DD_RUM.init({clientToken:"pubabafbfb0fa923",applicationId:"5c8975a3-ec86-4a64-8a3a-e6888fdde082",site:"datadoghq.com",service:"deriv.com-v2",env:window.location.hostname==="deriv.com"?"production":"sting",sessionSampleRate:10,sessionReplaySampleRate:0,trackUserInteractions:true,trackResources:true,trackLongTasks:true,defaultPrivacyLevel:"mask-user-input",});}};document.body.appendChild(script);})();window.parseCookies=function(cookieString,value){constcookies={};cookieString.split(";").forEach((cookie)=>{const[key,val]=cookie.split("=").map((c)=>c.trim());cookies[key]=decodeURIComponent(val);});returncookies[value];};//ListenforDOMContentLoadedeventconstlicenceKey="";constloadLiveChatScript=()=>{window.__lc=window.__lc||{};window.__lc.license=licenceKey;window.LC_API=window.LC_API||{loaded:false};if(!window.LC_API.loaded){constlcScript=document.createElement("script");lcScript.async=true;lcScript.src="cdn.livechatinc.com/tracking.js";lcScript.onload=()=>{window.LC_API.loaded=true;//Markasloadedwindow.LC_API.on_after_load=function(){performLiveChatAction(!!window.parseCookies(document.cookie,"client_information"));checkUrlForLiveChat();};if(typeofLiveChatWidget!=="undefined"&&LiveChatWidget.init){LiveChatWidget.init();}};document.body.appendChild(lcScript);}else{checkUrlForLiveChat();}};constopenLiveChat=()=>{if(window.isFreshChat==true&&window.fcWidget){window.fcWidget.open();}else{if(window.LC_API&&window.LC_API.open_chat_window){window.LC_API.open_chat_window();}}};constcheckUrlForLiveChat=()=>{consturlParams=newURLSearchParams(window.location.search);if(urlParams.get("is_livechat_open")==="true"){openLiveChat();}};//dashboardsenddataconstperformLiveChatAction=(is_logged_in)=>{window?.LiveChatWidget?.on("ready",()=>{//weopenandclosethewindowtotriggerthewidgettolistenforneweventswindow.LC_API.open_chat_winPlataforma de negociação on-line @sola124; Forex, commodities, índices sintéticos, ações e índices de ações @sola124; Derivdow();window.LC_API.hide_chat_window();checkUrlForLiveChat();constutm_data_string=window.parseCookies(document.cookie,"utm_data");constutm_data=utm_data_string?JSON.parse(utm_data_string):{};const{utm_source,utm_medium,utm_campaign}=utm_data;constclient_information=window.parseCookies(document.cookie,"client_information");consturl_params=newURLSearchParams(window.location.search);const{loginid,email,landing_company_shortcode,currency,residence,first_name,last_name,}=client_information?JSON.parse(client_information):{};/*thesessionvariablesaresenttoCSteamdashboardtonotifyuserhasloggedinandalsoactsascustomvariablestotriggertargetedengement*/constsession_variables={is_logged_in:is_logged_in,loginid:loginid??"",landing_company_shortcode:landing_company_shortcode??"",currency:currency??"",residence:residence??"",email:email??"",platform:url_params.get("platform")??"",utm_source:utm_source??"",utm_medium:utm_medium??"",utm_campaign:utm_campaign??"",};window.LiveChatWidget.call("set_session_variables",session_variables);if(is_logged_in){if(email){window.LiveChatWidget.call("set_customer_email",email);}if(first_name&&last_name){window.LiveChatWidget.call("set_customer_name",`${first_name}${last_name}`);}}else{//clearnameandemailfieldsafterchathasendedwindow.LC_API.on_chat_ended=()=>{window.LiveChatWidget.call("set_customer_email","");window.LiveChatWidget.call("set_customer_name","");};}checkUrlForLiveChat();//openchatwidgetwhenthereisanincominggreeting/announcementwindow.LiveChatWidget.on("new_event",(event)=>{if(event.greeting){window.LC_API.open_chat_window();}});});};letis_logged_in=false;letcheckCookieInterval;constisLoggedIn=()=>{return!!window.parseCookies(document.cookie,"client_information");};constcheckLoggedIn=()=>{constnew_login_status=isLoggedIn();if(new_login_status!==is_logged_in){performLiveChatAction(new_login_status);is_logged_in=new_login_status;}};//PerforminitialauthenticationcheckcheckLoggedIn();//SetintervaltoperiodicallycheckauthenticationstatuscheckCookieInterval=setInterval(checkLoggedIn,2000);//endofdashboardsenddata//Start:FreshChatloadfunctionconstloadFreshChatScript=(callback)=>{constscript=document.createElement("script");script.src="static.deriv.com/scripts/freshchat.js?v=1";script.async=true;//Callbackwhenthescriptisloadedscript.onload=()=>{if(typeofcallback==="function"){callback();}};script.onerror=()=>{console.error("FailedtoloadFreshchatscript");};document.head.appendChild(script);};//End:FreshChatloadfunctiondocument.addEventListener("DOMContentLoaded",()=>{//Start:CheckfeatureflforfreshchatandloadscriptfunctioncheckFreshChatEnabled(){constintervalId=setInterval(()=>{if(typeofwindow.useGrowthbookFeatureFl==="function"){window.isFreshChat=window.useGrowthbookFeatureFl({featureFl:"enable_freshworks_live_chat_wf",});if(typeofwindow.isFreshChat==="boolean"){clearInterval(intervalId);if(window.isFreshChat){loadFreshChatScript(()=>{window.FreshChat.initialize({hideButton:true,});});}}}elseif(window.useGrowthbookFeatureFl===undefined){console.log("Growthbookfunctionnotailable,retrying...");}else{clearInterval(intervalId);console.error("Growthbookfunctionnotailableaftermultipleretries.");}},500);}checkFreshChatEnabled();//End:CheckfeatureflforfreshchatandloadscriptloadLiveChatScript();constliveChatIcons=document.querySelectorAll(".livechatbtn");if(liveChatIcons.length>0){liveChatIcons.forEach((liveChatIcon)=>{liveChatIcon.addEventListener("click",(event)=>{event.preventDefault();openLiveChat();});});}constliveChatIconById=document.getElementById("liveChatBtn");if(liveChatIconById){liveChatIconById.addEventListener("click",(event)=>{event.preventDefault();openLiveChat();});}constliveChatIconsByrel=document.querySelectorAll('a[rel="liveChatBtn"]');liveChatIconsByrel.forEach((liveChatIcon)=>{liveChatIcon?.addEventListener("click",(event)=>{event.preventDefault();openLiveChat();});});});window.__lc=window.__lc||{};window.__lc.license=;window.__lc.integration_name="manual_onboarding";(function(n,t,c){functioni(n){returne._h?e._h.apply(null,n):e._q.push(n);}vare={_q:[],_h:null,_v:"2.0",on:function(){i(["on",c.call(arguments)]);},once:function(){i(["once",c.call(arguments)]);},off:function(){i(["off",c.call(arguments)]);},get:function(){if(!e._h)thrownewError("[LiveChatWidget]Youcan'tusegettersbeforeload.");returni(["get",c.call(arguments)]);},call:function(){i(["call",c.call(arguments)]);},init:function(){varn=t.createElement("script");(n.async=!0),(n.type="text/jascript"),(n.src="cdn.livechatinc.com/tracking.js"),t.head.appendChild(n);},};!n.__lc.asyncInit&&e.init(),(n.LiveChatWidget=n.LiveChatWidget||e);})(window,document,[].slice);Chatwithus,poweredbyLiveChat(function(){varscript=document.createElement("script");script.src="cdn.trackjs.com/ent/v3/latest/t.js";script.onload=function(){//InstallTrackJSafterthescriptloadsTrackJS.install({token:"e7ffef497dfff3bbf8",application:"derivcom-v2",dedupe:true,});};document.body.appendChild(script);})();document.addEventListener('DOMContentLoaded',function(){varscrollContainer=document.querySelector('.scroll-content');varisDrging=false;varstartPosition=0;varscrollLeft=0;scrollContainer.addEventListener('mouPlataforma de negociação on-line @sola124; Forex, commodities, índices sintéticos, ações e índices de ações @sola124; Derivsedown',function(e){isDrging=true;startPosition=e.clientX;scrollLeft=scrollContainer.scrollLeft;});scrollContainer.addEventListener('mouseup',function(){isDrging=false;});scrollContainer.addEventListener('mouselee',function(){isDrging=false;});scrollContainer.addEventListener('mousemove',function(e){if(!isDrging)return;vardelta=e.clientX-startPosition;scrollContainer.scrollLeft=scrollLeft-delta;});//floatingCTAaddmarginbottomtolivechatconstfloatingCtaElement=document.getElementById('floating_cta');constliveChatWrapperElement=document.getElementById('live_chat-wrapper');functionadjustMargin(){if(floatingCtaElement&&liveChatWrapperElement){if(floatingCtaElement.getBoundingClientRect().top0&&floatingCtaElement.offsetHeight>0){liveChatWrapperElement.style.marginBottom='60px';}else{liveChatWrapperElement.style.marginBottom='0';}}}functionrunOnTabletsAndPhones(){if(window.matchMedia("(max-width:1024px)").matches&&floatingCtaElement){adjustMargin();}}runOnTabletsAndPhones();setInterval(runOnTabletsAndPhones,500);});