<!DOCTYPE html>
<html lang="pt-BR">
<head>
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Teste AB</title>
<style id="wpr-lazyload-bg"></style><style id="wpr-lazyload-bg-exclusion"></style>
<noscript>
<style id="wpr-lazyload-bg-nostyle">:root{--wpr-bg-4ba97792-eb1e-4bba-b5a3-415541b90bf1: url('../../../../../../../../plugins/royal-elementor-addons/assets/css/');}:root{--wpr-bg-ccf260a0-9a11-4ccc-8787-2633c93e8b9b: url('https://mentoriapower.com.br/wp-content/plugins/wp-rocket/assets/img/youtube.png');}</style>
</noscript>
<script type="application/javascript">const rocket_pairs = [{"selector":".story-with-background","style":":root{--wpr-bg-4ba97792-eb1e-4bba-b5a3-415541b90bf1: url('..\/..\/..\/..\/..\/..\/..\/..\/plugins\/royal-elementor-addons\/assets\/css\/');}"},{"selector":".rll-youtube-player .play","style":":root{--wpr-bg-ccf260a0-9a11-4ccc-8787-2633c93e8b9b: url('https:\/\/mentoriapower.com.br\/wp-content\/plugins\/wp-rocket\/assets\/img\/youtube.png');}"}];</script></head>
<body data-rsssl=1>

<script>
  function testeAB() {
    // Define as URLs de destino
    const pageA = "https://mentoriapower.com.br/c07-convite-v1/";
    const pageB = "https://mentoriapower.com.br/c07-convite-v2/";
    const pageC = "https://mentoriapower.com.br/c07-convite-v3/";
    const pageD = "https://mentoriapower.com.br/c07-convite-v4/";

    // Obtém os parâmetros UTM da URL atual
    const urlParams = new URLSearchParams(window.location.search);
    const utmParams = {};
    for (const [key, value] of urlParams.entries()) {
      if (key.startsWith("utm_")) {
        utmParams[key] = value;
      }
    }

    // Cria uma nova URL com os parâmetros UTM
    function createUrl(targetUrl) {
      const newUrl = new URL(targetUrl);
      for (const [key, value] of Object.entries(utmParams)) {
        newUrl.searchParams.append(key, value);
      }
      return newUrl.toString();
    }

    // Redireciona aleatoriamente para uma das quatro páginas
    function redirect() {
      const pages = [pageA, pageB, pageC, pageD];
      const randomPage = pages[Math.floor(Math.random() * pages.length)];
      window.location.href = createUrl(randomPage);
    }

    // Chama a função de redirecionamento imediatamente
    redirect();
  }

  // Chama a função testeAB quando a página carregar
  window.onload = testeAB;
</script>

<script>class RocketElementorAnimation{constructor(){this.deviceMode=document.createElement("span"),this.deviceMode.id="elementor-device-mode-wpr",this.deviceMode.setAttribute("class","elementor-screen-only"),document.body.appendChild(this.deviceMode)}_detectAnimations(){let t=getComputedStyle(this.deviceMode,":after").content.replace(/"/g,"");this.animationSettingKeys=this._listAnimationSettingsKeys(t),document.querySelectorAll(".elementor-invisible[data-settings]").forEach(t=>{const e=t.getBoundingClientRect();if(e.bottom>=0&&e.top<=window.innerHeight)try{this._animateElement(t)}catch(t){}})}_animateElement(t){const e=JSON.parse(t.dataset.settings),i=e._animation_delay||e.animation_delay||0,n=e[this.animationSettingKeys.find(t=>e[t])];if("none"===n)return void t.classList.remove("elementor-invisible");t.classList.remove(n),this.currentAnimation&&t.classList.remove(this.currentAnimation),this.currentAnimation=n;let s=setTimeout(()=>{t.classList.remove("elementor-invisible"),t.classList.add("animated",n),this._removeAnimationSettings(t,e)},i);window.addEventListener("rocket-startLoading",function(){clearTimeout(s)})}_listAnimationSettingsKeys(t="mobile"){const e=[""];switch(t){case"mobile":e.unshift("_mobile");case"tablet":e.unshift("_tablet");case"desktop":e.unshift("_desktop")}const i=[];return["animation","_animation"].forEach(t=>{e.forEach(e=>{i.push(t+e)})}),i}_removeAnimationSettings(t,e){this._listAnimationSettingsKeys().forEach(t=>delete e[t]),t.dataset.settings=JSON.stringify(e)}static run(){const t=new RocketElementorAnimation;requestAnimationFrame(t._detectAnimations.bind(t))}}document.addEventListener("DOMContentLoaded",RocketElementorAnimation.run);</script></body>
</html>