!function(){const e=document.querySelectorAll(".wp-block-riovizual-tablebuilder.rv_tb-responsive-table"),t=document.querySelectorAll(".wp-block-riovizual-tablebuilder table.empty-cells-hide");e&&[...e].forEach((function(e){const t=parseInt(e.getAttribute("rv-tb-responsive-breakpoint")),r=e.querySelector("table"),l=e.querySelector("figcaption")?e.querySelector("figcaption"):null,o=l?l.getAttribute("rv-tb-caption-position"):"",c=r.cloneNode(!0);e.querySelector("table.empty-cells-hide");let n=r.querySelector("thead tr");const i=r.querySelector("tfoot tr"),a=r.querySelector("tbody").cloneNode(!0);let d=a.querySelectorAll("tr");function s(){window.innerWidth{e.querySelectorAll(".rv_tb-cell").forEach(((e,t)=>{const r=document.createElement("tr");if(n){const e=n.querySelectorAll(".rv_tb-cell")[t].cloneNode(!0);r.appendChild(e)}if(r.appendChild(e),a.appendChild(r),i){const e=i.querySelectorAll(".rv_tb-cell")[t].cloneNode(!0);r.appendChild(e)}}))})),r.innerHTML="",r.appendChild(a),e.innerHTML="",e.appendChild(r),l&&e.appendChild(l)):(e.innerHTML="",l&&"top"===o&&e.appendChild(l),e.appendChild(c),l&&"bottom"===o&&e.appendChild(l))}d.forEach(((e,t)=>{e.querySelectorAll(".rv_tb-cell").forEach(((e,r)=>{const l=e.colSpan,o=e.rowSpan;if(e.setAttribute("colSpan","1"),e.setAttribute("rowSpan","1"),l>1){d[t].querySelectorAll(".rv_tb-cell")[r].setAttribute("colSpan","1");for(var c=1;c1)for(d[t].querySelectorAll(".rv_tb-cell")[r].setAttribute("rowSpan","1"),c=1;c1)for(let t=1;t{const r=e.colSpan;if(e.setAttribute("colSpan","1"),r>1)for(var l=1;l{const r=e.colSpan;if(e.setAttribute("colSpan","1"),r>1)for(var l=1;l{s()})),window.addEventListener("resize",(()=>{s()}))}));var r=document.querySelectorAll(".wp-block-riovizual-tablebuilder"),l=[];if(r.forEach((function(e){e.querySelector(".is-sticky-row")&&l.push(e)})),l.length>0){function o(){l.forEach((function(e){var t=e.querySelector(".is-sticky-row");if(t){var r=t.getBoundingClientRect().top,l=getComputedStyle(t).getPropertyValue("top");r<=parseInt(l)?t.classList.add("active-sticky-row"):t.classList.remove("active-sticky-row")}}))}window.addEventListener("scroll",o),window.addEventListener("load",o)}var c=document.querySelectorAll(".is-sticky-first-column");c.length>0&&c.forEach((function(e){e.addEventListener("scroll",(function(){e.scrollLeft>0?e.classList.add("active-sticky-column"):e.classList.remove("active-sticky-column")}))})),t&&[...t].forEach((function(e){e.querySelectorAll("td, th").forEach((e=>{!function(e){const t=e.querySelectorAll(".rv_tb-element");Array.from(t).every((e=>!(null!==e.querySelector("svg"))&&""===e.innerHTML.trim()))&&e.classList.add("empty-cells")}(e)}))}))}();