(()=>{function e(){if(window.TEMPLATE_LIBRARY_VIEW_FN&&(window.VIEWS=window.VIEWS||{},window.VIEWS.templateLibrary=window.TEMPLATE_LIBRARY_VIEW_FN),!window.STREAMS)return!1;window.STREAMS.templateLibrary||(window.STREAMS.templateLibrary={id:"templateLibrary",label:"Template Library",icon:"grid_view",tagline:"Tokenized design templates \u2014 preview them re-skinned to your brand",subPages:[]});const r=window.STREAMS.templateLibrary;return r.subPages.some(i=>i&&i.id==="templateLibrary")||r.subPages.push({id:"templateLibrary",label:"Template Library",kind:"templateLibrary"}),Array.isArray(window.OPS_STREAMS)&&!window.OPS_STREAMS.includes("templateLibrary")&&window.OPS_STREAMS.push("templateLibrary"),!0}window.__ensureTemplateLibraryStream=e,e()||console.warn("[streams-template-library.patch] window.STREAMS not ready \u2014 will retry via window.__ensureTemplateLibraryStream() after mount.")})();
