((t,e,o,i)=>{"use strict";let l,n,r=null;const f=o.createElement("div"),s=e=>{requestAnimationFrame((()=>{let o=e.clientX,i=e.clientY;l===o&&n===i||(l=o,n=i,f.style.left=o+"px",f.style.top=i+"px",f.classList.toggle("left",o>t.w/2),f.classList.toggle("top",i>t.h/2))}))},m=(e,i)=>{i.tfOn("pointerenter",(function(l){!0===r&&(e.classList.remove("tf_hide"),s(l),this.tfOn("pointermove",s,{passive:!0}),(t.isTouch?o.body:this).tfOn("pointerleave",(()=>{i.tfOff("pointermove",s),e.classList.add("tf_hide")}),{once:!0,passive:!0}))}),{passive:!0})},p=()=>{null===r&&t.loadCss("tooltip").then((()=>{r=!0}));const e=i.builder_tooltips,l=o.createDocumentFragment();if(e)for(let t in e){let i=o.tfClass("themify_builder_content-"+t),n=e[t];for(let t=i.length-1;t>-1;--t)for(let e in n){const r=i[t].tfClass("tb_"+e);if(!(r.length<1))for(let t=r.length-1;t>-1;--t){let i=o.createElement("div"),f=r[t].classList,s=1;f.contains("module_row")?s=5:f.contains("tb-column")?s=4:f.contains("module_subrow")?s=3:f.contains("sub_column")&&(s=2),i.className="tf_tooltip tf_hide order-"+s,n[e].c&&(i.style.color=n[e].c),n[e].bg&&(i.style.backgroundColor=n[e].bg),n[e].w&&(i.style.width=n[e].w),i.insertAdjacentHTML("beforeend",n[e].t),m(i,r[t]),l.appendChild(i)}}}const n=i.menu_tooltips;if(n?.length>0)for(let t=n.length-1;t>-1;--t){let e=o.querySelector(n[t]);if(e)for(let t=e.querySelectorAll(".menu-item a[title]"),i=t.length-1;i>-1;--i){let e=o.createElement("div");e.className="tf_tooltip tf_hide",e.textContent=t[i].title||"",m(e,t[i]),t[i].removeAttribute("title"),l.appendChild(e)}}f.className="tf_tooltip_wrap",f.appendChild(l),requestAnimationFrame((()=>{o.body.appendChild(f)}))};!0===e.loaded?t.requestIdleCallback(p,200):e.tfOn("load",p,{once:!0,passive:!0})})(Themify,window,document,themify_vars);