(()=>{var e;(e=window.wp).domReady((()=>{const{subscribe:t,select:o,dispatch:c}=e.data;let i=!1,n=null;function r(){const e=o("core/block-editor"),t=o("core/editor");if(!e||!t)return;const n=e.getBlocks(),r=t.getEditedPostContent()||"",s=(e,t)=>{let o=0;return e.forEach((e=>{e.name===t&&o++,e.innerBlocks&&e.innerBlocks.length>0&&(o+=s(e.innerBlocks,t))})),o},l=s(n,"ti-blocks/three-importer"),d=r.includes("[ti3d_scene")||r.includes("[ti3d_sceneinject]");l>1||l>=1&&d?i||(i=!0,c("core/notices").createNotice("error","Three Importer Conflict: Multiple scene methods detected. Please use only one (Block or Shortcode) to avoid rendering errors.",{id:"ti3d-conflict-notice",isDismissible:!0})):i&&(i=!1,c("core/notices").removeNotice("ti3d-conflict-notice"))}const s=()=>{n&&clearTimeout(n),n=setTimeout(r,500)};t(s),s()}))})();