PageSourceSearch

https://il.marieclaire.com.tw/build/assets/workerNav-262895b7.js

js marieclaire.com.tw collected 2026-10-02 04:42:36 UTC 1,959 bytes, 32 lines download raw bytes

1import{_ as i}from"./preload-helper-82a6cace.js";const l=`const requests = (url, data, token) => {
2    return new Promise((resolve) => {
3        const headers = new Headers()
4
5        headers.set('Content-Type', 'application/json')
6        headers.set('Authorization', \`BEARER \${token}\`)
7        headers.set('X-CSRF-TOKEN', token)
8
9        fetch(\`\${url}?\${new URLSearchParams(data).toString()}\`, {
10            cache: 'no-cache',
11            withCredentials: true,
12            credentials: 'same-origin',
13            headers: headers,
14            method: 'GET',
15            mode: 'cors',
16        }).then((res) => {
17            if (res.status == 200) {
18                return res.json()
19            }
20        }).then((res) => resolve(res))
21    })
22}
23const getValue = (r) => {
24    return new Promise((resolve) => {
25        requests(\`https://\${r.host}api/\${r.cmd}\`, r.data, r.token).then((result) => {
26            resolve(result)
27        })
28    })
29}
30self.addEventListener('message', (e) => {
31    getValue(e.data).then((r) => self.postMessage({ cmd: \`\${e.data.cmd}Callback\`, msg: r }))
32}, false)`,u=async(e,n)=>new Promise(t=>{const a=new Blob([l],{type:"application/javascript"}),r=window.URL.createObjectURL(a),s=window.location,d=document.querySelector('meta[name="csrf-token"]').getAttribute("content");let o=new Worker(r);s.search.indexOf("noCache")!=-1&&(n.noCache=s.search.indexOf("noCache")),o.postMessage({token:d,cmd:e,data:n,host:s.host+"/"});function h(c){c.data.cmd==`${e}Callback`&&t(c.data)}o.addEventListener("message",h)}),m=async e=>await i(()=>import("./leftMenu-12bf4feb.js"),[]).then(({default:n})=>n(e)),w=async e=>await i(()=>import("./nav-bb004ae6.js"),["assets/nav-bb004ae6.js","assets/picture-289b7cf2.js"]).then(({default:n})=>n(e)),k=(e,n)=>new Promise(t=>{u(e,n).then(a=>{switch(e){case"leftMenu":m(a.msg).then(r=>t(r));break;case"nav":w(a.msg).then(r=>t(r));break;case"category":t(a.msg);break}})});export{k as default};

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.