1import{r as m}from"./index-BlmOqGMO.js";import"./index-yBjzXJbu.js";function b(e){return e.replace(/ /g,"Â ").replace(/&#(\d+);/g,(t,r)=>String.fromCharCode(Number(r))).replace(/&#x([0-9a-fA-F]+);/g,(t,r)=>String.fromCharCode(parseInt(r,16))).replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function d(e){if(typeof e=="string"){if(/<[a-z][\s\S]*>/i.test(e))return b(e);const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}if(Array.isArray(e))return e.map(t=>d(t));if(e&&typeof e=="object"){const t={};for(const[r,s]of Object.entries(e))t[r]=d(s);return t}return e}function g({blockId:e,sectionId:t,componentName:r,useIdOnly:s=!1,hotReloadKey:f=0}){const[c,u]=m.useState(null),p=m.useCallback(()=>{const a=e||t;if(!a){console.warn("useData: either blockId or sectionId is required");return}let n;if(s)n=a;else{if(!r){console.warn("useData: componentName is required when useIdOnly is false");return}n=`${r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}--${a}`}const i=document.getElementById(n);if(i)try{const o=JSON.parse(i.textContent),l=d(o);u(l)}catch(o){console.error(`Error parsing JSON from script tag #${n}:`,o),console.log("Raw script content:",i.textContent),u(null)}else console.warn(`Script tag with id "${n}" not found`),u(null)},[e,t,r,s]);return m.useEffect(()=>{p();const a=e||t;if(!a)return;let n;if(s)n=a;else{if(!r)return;n=`${r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}-${a}`}const i=document.getElementById(n);if(i){const o=new MutationObserver(()=>{i.textContent.trim()&&(p(),o.disconnect())});return o.observe(i,{childList:!0,characterData:!0,subtree:!0}),()=>o.disconnect()}},[p,f,e,t,r,s]),c}function E(e,{componentName:t,useIdOnly:r=!0,hotReloadKey:s=0}={}){return g({sectionId:e,componentName:t,useIdOnly:r,hotReloadKey:s})}function S(e,t,r=0){const s=g({blockId:e,componentName:t,hotReloadKey:r}),f=c=>(!c||typeof c!="object"||Object.keys(c).forEach(u=>{if(u.endsWith("__block_ids")){const p=u.split("__")[0],a=c[u];c[p]=a.map(n=>{const i=document.querySelectorAll('script[type="application/json"]');let o=null;for(const l of i)if(l.id.endsWith(`--${n}`)){o=l;break}if(o)try{const l=JSON.parse(o.textContent),C=d(l);return f(C)}catch(l){return console.error(`Error parsing JSON for block ${n}:`,l),null}return console.warn(`No script tag found for block ID: ${n}`),null}).filter(Boolean)}}),c);return f(s)}export{E as a,g as b,S as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.