(() => { window.ShopbySkin?.EventManager?.on('PAGE_LOAD_COMPLETED',()=>{window.cmShopbyReady=true}); const addCSS=href=>{if(!document.querySelector('link[href="'+href+'"]')){const l=document.createElement('link');l.rel='stylesheet';l.href=href;document.head.append(l)}}; addCSS('/cyclemoa-home.css');addCSS('/cyclemoa-storefront.css?v=20261115-category-nav-v2'); const load=src=>new Promise((resolve,reject)=>{const s=document.createElement('script');s.src=src;s.onload=resolve;s.onerror=reject;document.head.append(s)}); const start=async()=>{document.body.classList.add('cm-shell');if(location.pathname==='/pages/product/product-list.html'||location.pathname==='/cyclemoa-list.html'){const q=new URLSearchParams(location.search),legacy=location.pathname==='/pages/product/product-list.html';if(q.has('categoryNo'))q.set('mode','category');else if(legacy)q.set('mode','search');if(legacy||q.get('cmrev')!=='20261115-category-nav-v2'){q.set('cmrev','20261115-category-nav-v2');if(legacy){location.replace('/cyclemoa-list.html?'+q);return}else history.replaceState(null,'','/cyclemoa-list.html?'+q)}}try{if(!window.CYCLEMOA_CONFIG)await load('/cyclemoa-config.js?v=20261115-category-nav-v2');await load('/cyclemoa-storefront.js?v=20261115-category-nav-v2')}catch(e){console.error('CYCLEMOA storefront could not load',e)}}; if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',start,{once:true});else start(); })();