(async function(){function e(){return new Promise((e=>{function t(n){if(n.source!==window)return;const a=n.data;a&&!0===a.__RESP_BG_VALUE&&(window.removeEventListener("message",t),e(a.value))}window.addEventListener("message",t),window.postMessage({__REQ_BG_VALUE:!0},"*")}))}var t="";async function n(){const n=await e();if(t=n,n.includes("react_goods_")){const s=new URL(n).searchParams.get("orig"),r=new URL(s).searchParams.get("orig");try{new URL(location.href).searchParams.get("orig");const c=await fetch(r);let i=await c.text();function a(e,t){let n=e.replace(t,`${t} window.pluginData = JSON.stringify(this.props.store);`);return n}const d='serializeBottombar}))}},{key:"render",value:function(){';i=a(i,d);const u=document.createElement("script");u.type="text/javascript",u.textContent=i+"\n//# sourceURL=intercepted-target-script.js",(document.documentElement||document.head||document.body).appendChild(u)}catch(o){console.error("patched_script fetch/exec error:",o)}}else try{const p=await fetch(n);let w=await p.text();function a(e,t){let n=e.replace(t,`${t} if(!window.pluginData){ window.pluginData = []};if(JSON.parse(i.data)['goods_list']){window.pluginData.push(...JSON.parse(i.data)['goods_list'])}; `);return n}const g="status:g.status,statusText:g.statusText,headers:r,config:e,request:g};";w=a(w,g);const l=document.createElement("script");l.type="text/javascript",l.textContent=w+"\n//# sourceURL=intercepted-target-script.js",(document.documentElement||document.head||document.body).appendChild(l)}catch(o){console.error("patched_script fetch/exec error:",o)}}setTimeout((()=>{n(),t.includes("react_goods_")?setTimeout((()=>{window.postMessage({goodsData:window.pluginData},"*")}),2e3):setInterval((()=>{window.postMessage({goodsData:window.pluginData},"*")}),3e3)}),3e3)})();