!function(){if(!window.__tmWebkitMessageHandlersShim){window.__tmWebkitMessageHandlersShim=!0;var e=r(window,"webkit");if(e&&"object"==typeof e||(e={},n(window,"webkit",e))){var t=r(e,"messageHandlers");if((t&&"object"==typeof t||n(e,"messageHandlers",t={}))&&!t.__tmWebkitProxy&&"function"==typeof Proxy)try{n(e,"messageHandlers",new Proxy(t,{get:function(e,t){if("__tmWebkitProxy"===t)return!0;if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if("symbol"==typeof t)return e[t];var r={postMessage:function(){}};return e[t]=r,r}}))}catch(r){n(e,"messageHandlers",t)}}}function r(e,t){try{if(null==e||"object"!=typeof e&&"function"!=typeof e)return;return e[t]}catch(e){return}}function n(e,t,r){try{return e[t]=r,!0}catch(e){return!1}}}();
!function(){if(!window.__tmWebkitMessageHandlersShim){window.__tmWebkitMessageHandlersShim=!0;var e=n(window,"webkit");if(e&&"object"==typeof e||(e={},o(window,"webkit",e))){var t=n(e,"messageHandlers");if((t&&"object"==typeof t||o(e,"messageHandlers",t={}))&&!t.__tmWebkitProxy&&"function"==typeof Proxy)try{o(e,"messageHandlers",new Proxy(t,{get:function(e,t){if("__tmWebkitProxy"===t)return!0;if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if("symbol"==typeof t)return e[t];var n={postMessage:function(){}};return e[t]=n,n}}))}catch(n){o(e,"messageHandlers",t)}}}function n(e,t){try{if(null==e||"object"!=typeof e&&"function"!=typeof e)return;return e[t]}catch(e){return}}function o(e,t,n){try{return e[t]=n,!0}catch(e){return!1}}}(),function(){function e(e){return!!(e&&e.fn&&e.fn.jquery&&"tm-stub"!==e.fn.jquery&&"function"==typeof e.fn.val)}function t(){var t=window.__tmJQueryRef;if(e(t))return t;var n=window.jQuery;return e(n)?(window.__tmJQueryRef=n,n):null}function n(e,t){return!t||e.fn&&"function"==typeof e.fn[t]}function o(t,n){n(function(){e(n)&&"function"==typeof t&&t(n)})}function r(){var t=document.body;t&&(e(window.jQuery)?t.removeAttribute("data-bs-no-jquery"):t.hasAttribute("data-bs-no-jquery")||t.setAttribute("data-bs-no-jquery",""))}if(window.tmResolveJQuery=t,window.tmEnsureGlobalJQuery=function(){var n=t();return n?(e(window.jQuery)||(window.jQuery=n,window.$=n),r(),n):null},window.tmRefreshJQueryPin=function(){e(window.jQuery)&&(window.__tmJQueryRef=window.jQuery,r())},window.tmHasRealJQuery=function(){return!!t()},window.tmUpdateBootstrapJQueryBridge=r,window.tmWhenJQueryReady||(window.tmWhenJQueryReady=function(e,n){var r="number"==typeof n?n:200,i=0;!function n(){var a=t();a?o(e,a):i>=r||(i+=1,setTimeout(n,25))}()}),window.tmWhenJQueryPluginReady||(window.tmWhenJQueryPluginReady=function(e,r,i){var a="number"==typeof i?i:200,u=0,d="string"==typeof r?r:"";!function r(){var i=t();i&&n(i,d)?o(function(t){n(t,d)?"function"==typeof e&&e(t):u<a&&(u+=1,setTimeout(r,25))},i):u>=a||(u+=1,setTimeout(r,25))}()}),!window.__tmJQueryReadyGuard){window.__tmJQueryReadyGuard=!0,window.__tmPendingJQueryReady=window.__tmPendingJQueryReady||[];var i=window.__tmPendingJQueryReady;function a(e){if("function"==typeof e){var n=t();n?n(e):i.push(e)}}function u(e){if("function"==typeof e)return a(e),u;var t=[];if("string"==typeof e)try{t=Array.prototype.slice.call(document.querySelectorAll(e))}catch(e){t=[]}else e&&1===e.nodeType&&(t=[e]);return{length:t.length,ready:function(e){return a(e),this},trigger:function(e,n){return function(e,n){var o=u.Event(e,n);return t.forEach(function(e){e&&"function"==typeof e.dispatchEvent&&e.dispatchEvent(o)}),u}(e,n)},on:function(){return this},off:function(){return this}}}window.tmGetHiddenInputInt=function(e,t){var n=parseInt(t,10);isFinite(n)||(n=0);var o=document.getElementById(e);if(!o||"string"!=typeof o.value||""===o.value)return n;var r=parseInt(o.value,10);return isFinite(r)?r:n},u.ready=a,u.fn={jquery:"tm-stub"},u.Event=function(e,t){var n;if("function"==typeof window.Event)try{n=new window.Event(e,{bubbles:!0,cancelable:!0})}catch(t){(n=document.createEvent("Event")).initEvent(e,!0,!0)}else document.createEvent?(n=document.createEvent("Event")).initEvent(e,!0,!0):n={type:e};return t&&"object"==typeof t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n},window.tmQueueJQueryReady=a,e(window.jQuery)&&(window.__tmJQueryRef=window.jQuery),window.tmWhenJQueryReady(function(){!function(){var e=t();if(e&&i.length)for(;i.length;){var n=i.shift();try{e(n)}catch(e){}}}(),r()}),window.tmWhenBodyReady(function(){r()})}if(window.tmWhenBodyReady=function(e){"function"==typeof e&&(document.getElementsByTagName("body")[0]?e():document.addEventListener("DOMContentLoaded",e,{once:!0}))},"function"!=typeof window.closeFullScreen&&(window.closeFullScreen=function(){try{var e=document;if(e.fullscreenElement||e.webkitFullscreenElement||e.msFullscreenElement){var t=e.exitFullscreen||e.webkitExitFullscreen||e.msExitFullscreen;if(t){var n=t.call(e);n&&"function"==typeof n.catch&&n.catch(function(){})}}var o=e.getElementById("tm-video-fullscreen-overlay");o&&o.remove();var r=e.getElementById("modal-massagens");r&&(r.style.display="none");var i=e.getElementById("modal-beneficios");i&&(i.style.display="none"),e.querySelectorAll(".modal-overlay, .modal-overlay-massagens").forEach(function(e){e.style.display="none"}),"function"==typeof window.fecharModalBeneficios&&window.fecharModalBeneficios(),"function"==typeof window.fecharModalCidadesInclude&&window.fecharModalCidadesInclude();var a=e.getElementById("modal-18-plus");a&&"none"!==a.style.display&&null!==a.offsetParent||(e.body.style.overflow="",e.body.classList.remove("age-locked"))}catch(e){}}),function(){if(!window.__tmTurnstileFailureGuard){window.__tmTurnstileFailureGuard=!0;if(window.tmTurnstileIsKnownFailure=function(e){var t=function(e){var t=[];return e&&"object"==typeof e?(e.message&&t.push(String(e.message)),e.name&&t.push(String(e.name)),e.stack&&t.push(String(e.stack))):null!=e&&t.push(String(e)),t.join(" ").toLowerCase()}(e);return!!t&&(-1!==t.indexOf("turnstile")||-1!==t.indexOf("challenges.cloudflare")||-1!==t.indexOf("cloudflare.com/turnstile")||(-1!==t.indexOf("unreachable")||-1!==t.indexOf("did not contain")||-1!==t.indexOf("turnstile widget seem to have hung")||-1!==t.indexOf("hung")&&-1!==t.indexOf("widget")||(!(-1===t.indexOf("success")&&-1===t.indexOf("data")||-1===t.indexOf("undefined")&&-1===t.indexOf("null")&&-1===t.indexOf("is not an object")&&-1===t.indexOf("cannot read propert")&&-1===t.indexOf("can't find variable")&&-1===t.indexOf("reading"))||(-1!==t.indexOf("failed to fetch")||-1!==t.indexOf("networkerror")||-1!==t.indexOf("network request failed")||-1!==t.indexOf("load failed")||-1!==t.indexOf("err_blocked")||-1!==t.indexOf("blocked by client")||-1!==t.indexOf("blocked"))&&(-1!==t.indexOf("cloudflare")||-1!==t.indexOf("turnstile")||-1!==t.indexOf("captcha")||-1!==t.indexOf("challenges")))))},window.tmTurnstileNotifyUser=function(e,t){e=e||"Não foi possível carregar a verificação de segurança. Desative bloqueadores de anúncios ou rastreadores e recarregue a página.";var n=t||document.querySelector("[data-tm-turnstile-status]")||document.getElementById("tm-captcha-status")||document.querySelector(".cf-turnstile-wrap")||document.querySelector(".cf-turnstile");if(n){var o=n.parentNode||n;if(!o.querySelector(".tm-turnstile-notice")){var r=document.createElement("div");r.className="tm-turnstile-notice",r.setAttribute("role","alert"),r.textContent=e,r.style.cssText="margin-top:8px;padding:10px 12px;border-radius:8px;background:#fff3f3;color:#8b0038;font-size:14px;line-height:1.4;",o.appendChild(r)}}},window.tmTurnstileErrorCallback=function(){window.tmTurnstileNotifyUser()},window.tmTurnstileTimeoutCallback=function(){window.tmTurnstileNotifyUser("A verificação de segurança demorou demais. Desative bloqueadores de anúncios ou recarregue a página.")},t(document),window.tmWhenBodyReady(function(){t(document)}),"function"==typeof MutationObserver&&document.documentElement)new MutationObserver(function(n){n.forEach(function(n){n.addedNodes.forEach(function(n){n&&1===n.nodeType&&(n.matches&&(n.matches(".cf-turnstile")||n.matches(".cf-turnstile-wrap"))&&e(n),t(n))})})}).observe(document.documentElement,{childList:!0,subtree:!0});window.addEventListener("unhandledrejection",function(e){window.tmTurnstileIsKnownFailure(e.reason)&&(e.preventDefault(),window.tmTurnstileNotifyUser())}),window.addEventListener("error",function(e){var t=e&&e.target,n=t&&(t.src||t.href);n&&-1!==String(n).indexOf("challenges.cloudflare.com/turnstile")&&window.tmTurnstileNotifyUser()},!0)}function e(e){e&&1===e.nodeType&&(e.getAttribute("data-error-callback")||e.setAttribute("data-error-callback","tmTurnstileErrorCallback"),e.getAttribute("data-timeout-callback")||e.setAttribute("data-timeout-callback","tmTurnstileTimeoutCallback"))}function t(t){(t&&t.querySelectorAll?t:document).querySelectorAll(".cf-turnstile, .cf-turnstile-wrap").forEach(e)}}(),!document.getElementsByTagName("body")[0])try{Object.defineProperty(document,"body",{get:function(){return document.getElementsByTagName("body")[0]||document.documentElement},configurable:!0})}catch(d){}}(),function(){function e(e){return e&&"function"==typeof e.getItem?e:null}window.__tmSharedGuardsInit||(window.__tmSharedGuardsInit=!0,window.tmGetLocalStorage=function(){try{return e(window.localStorage)}catch(e){return null}},window.tmGetSessionStorage=function(){try{return e(window.sessionStorage)}catch(e){return null}},window.tmStorageGet=function(e,t){var n="session"===t?window.tmGetSessionStorage():window.tmGetLocalStorage();if(!n)return null;try{return n.getItem(e)}catch(e){return null}},window.tmStorageSet=function(e,t,n){var o="session"===n?window.tmGetSessionStorage():window.tmGetLocalStorage();if(!o)return!1;try{return o.setItem(e,t),!0}catch(e){return!1}},window.tmStorageRemove=function(e,t){var n="session"===t?window.tmGetSessionStorage():window.tmGetLocalStorage();if(!n||"function"!=typeof n.removeItem)return!1;try{return n.removeItem(e),!0}catch(e){return!1}},window.tmPararMapaLeaflet=function(e){if(e)try{"function"==typeof e.closePopup&&e.closePopup();var t=e.dragging;if(t){var n=t._draggable;n&&(n._moving||n._moved)&&"function"==typeof n.finishDrag&&n.finishDrag(!0)}"function"==typeof e.stop&&e.stop(),e._panAnim&&e._panAnim._inProgress&&"function"==typeof e._panAnim.stop&&e._panAnim.stop();var o=e._mapPane;o&&o.classList&&o.classList.remove("leaflet-pan-anim")}catch(e){}},window.tmLeafletMapOptions={fadeAnimation:!1,zoomAnimation:!1,inertia:!1})}();