!function(){"use strict";var e=function(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e,{once:!0}):e()};!function(t){const{component:o,load:n,name:r,querySelector:c={},querySelectorAll:a={},options:i={}}=t;if("function"!=typeof o)return;const l=()=>{(()=>{const e=void 0===r?null==t?void 0:t.root:`[data-component='${r}']`;let o;try{o=document.querySelectorAll(e)}catch(e){return console.error(e),[]}return o.length<1?(console.log(`No elements found for ${e}`),[]):Array.from(o).map(e=>{const t={};return Object.keys(c).forEach(o=>{t[o]=e.querySelector(c[o])}),Object.keys(a).forEach(o=>{const n=e.querySelectorAll(a[o]);t[o]=Array.from(n)}),{element:e,children:t,options:i}})})().forEach(e=>new o(e))};if(!1===n)return l;!0!==n?function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t)if("function"==typeof o)o(t);else if(Array.isArray(o)){const[e,n]=o;null==e||e.addEventListener(n,t)}}(l,n):l()}({root:".wp-block-the-wrap-connatix",component:function({children:{playerEl:e}}){const{dataset:t}=e;if(void 0!==t.initialized)return;if(t.initialized=!0,"string"!=typeof t.matchmedia||!window.matchMedia(t.matchmedia).matches)return;const o=window.setInterval(()=>{let o=0;if("string"==typeof t.scrolldepth){try{const e=document.querySelector(t.scrolldepth);e&&(o=e.offsetTop+e.offsetHeight)}catch(e){}0===o&&t.scrolldepth.match(/^\d+$/)&&(o=Number(t.scrolldepth))}window.scrollY>=o&&e.dispatchEvent(new Event("shouldLoad"))},500);e.addEventListener("shouldLoad",()=>{window.clearInterval(o),(new Image).src="https://capi.connatix.com/tr/si?token=82b705fe-17aa-40a7-98b4-3f42aebc6016&cid=8759484e-bb96-415e-9d33-167af5d155f0",window.cnx.cmd.push(()=>{window.cnx({playerId:"82b705fe-17aa-40a7-98b4-3f42aebc6016"}).render(e.id)})},{once:!0})},querySelector:{playerEl:".wp-block-the-wrap-connatix__player-container"}})}();