PageSourceSearch

https://www.hbrtaiwan.com/_nuxt/19x6Zq2q.js

js hbrtaiwan.com collected 2026-09-24 08:55:20 UTC 13,923 bytes, 1 lines download raw bytes

1var Z=Object.defineProperty;var q=(e,t,o)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var E=(e,t,o)=>q(e,typeof t!="symbol"?t+"":t,o);import{af as M,f as $,ag as I,ah as Y,ai as tt,x as z,aj as et,ak as nt,R as H,u as W,ae as F,al as V}from"./ZjLcrLUj.js";const ot=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],it=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",T=[];class rt{constructor(){E(this,"_data",new x);E(this,"_hash",new x([...ot]));E(this,"_nDataBytes",0);E(this,"_minBufferSize",0)}finalize(t){t&&this._append(t);const o=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(o/4294967296),this._data.words[(n+64>>>9<<4)+15]=o,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,o){const n=this._hash.words;let i=n[0],s=n[1],a=n[2],c=n[3],f=n[4],d=n[5],h=n[6],w=n[7];for(let g=0;g<64;g++){if(g<16)T[g]=t[o+g]|0;else{const l=T[g-15],m=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,A=T[g-2],_=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;T[g]=m+T[g-7]+_+T[g-16]}const b=f&d^~f&h,k=i&s^i&a^s&a,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),v=(f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25),B=w+v+b+it[g]+T[g],r=y+k;w=h,h=d,d=f,f=c+B|0,c=a,a=s,s=i,i=B+r|0}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+a|0,n[3]=n[3]+c|0,n[4]=n[4]+f|0,n[5]=n[5]+d|0,n[6]=n[6]+h|0,n[7]=n[7]+w|0}_append(t){typeof t=="string"&&(t=x.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let o,n=this._data.sigBytes/64;t?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const i=n*16,s=Math.min(i*4,this._data.sigBytes);if(i){for(let a=0;a<i;a+=16)this._doProcessBlock(this._data.words,a);o=this._data.words.splice(0,i),this._data.sigBytes-=s}return new x(o,s)}}class x{constructor(t,o){E(this,"words");E(this,"sigBytes");t=this.words=t||[],this.sigBytes=o===void 0?t.length*4:o}static fromUtf8(t){const o=unescape(encodeURIComponent(t)),n=o.length,i=[];for(let s=0;s<n;s++)i[s>>>2]|=(o.charCodeAt(s)&255)<<24-s%4*8;return new x(i,n)}toBase64(){const t=[];for(let o=0;o<this.sigBytes;o+=3){const n=this.words[o>>>2]>>>24-o%4*8&255,i=this.words[o+1>>>2]>>>24-(o+1)%4*8&255,s=this.words[o+2>>>2]>>>24-(o+2)%4*8&255,a=n<<16|i<<8|s;for(let c=0;c<4&&o*8+c*6<this.sigBytes*8;c++)t.push(st.charAt(a>>>6*(3-c)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let o=0;o<t.sigBytes;o++){const n=t.words[o>>>2]>>>24-o%4*8&255;this.words[this.sigBytes+o>>>2]|=n<<24-(this.sigBytes+o)%4*8}else for(let o=0;o<t.sigBytes;o+=4)this.words[this.sigBytes+o>>>2]=t.words[o>>>2];this.sigBytes+=t.sigBytes}}function at(e){return new rt().finalize(e).toBase64()}function D(e){return at(M(e))}function ct(e,t,o){const[n={},i]=typeof t=="string"?[{},t]:[t,o],s=$(()=>I(e)),a=$(()=>I(n.key)||"$f"+D([i,typeof s.value=="string"?s.value:"",...ut(n)]));if(!n.baseURL&&typeof s.value=="string"&&s.value[0]==="/"&&s.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:c,lazy:f,default:d,transform:h,pick:w,watch:g,immediate:b,getCachedData:k,deep:y,dedupe:v,...B}=n,r=Y({...tt,...B,cache:typeof n.cache=="boolean"?void 0:n.cache}),l={server:c,lazy:f,default:d,transform:h,pick:w,immediate:b,getCachedData:k,deep:y,dedupe:v,watch:g===!1?[]:[...g||[],r]};if(!b){let _=function(){l.immediate=!0};z(a,_,{flush:"sync",once:!0}),z([...g||[],r],_,{flush:"sync",once:!0})}let m;return et(g===!1?a.value:a,()=>{var u;(u=m==null?void 0:m.abort)==null||u.call(m,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),m=typeof AbortController<"u"?new AbortController:{};const _=I(n.timeout);let U;return _&&(U=setTimeout(()=>m.abort(new DOMException("Request aborted due to timeout.","AbortError")),_),m.signal.onabort=()=>clearTimeout(U)),(n.$fetch||globalThis.$fetch)(s.value,{signal:m.signal,...r}).finally(()=>{clearTimeout(U)})},l)}function ut(e){var o;const t=[((o=I(e.method))==null?void 0:o.toUpperCase())||"GET",I(e.baseURL)];for(const n of[e.params||e.query]){const i=I(n);if(!i)continue;const s={};for(const[a,c]of Object.entries(i))s[I(a)]=I(c);t.push(s)}if(e.body){const n=I(e.body);if(!n)t.push(D(n));else if(n instanceof ArrayBuffer)t.push(D(Object.fromEntries([...new Uint8Array(n).entries()].map(([i,s])=>[i,s.toString()]))));else if(n instanceof FormData){const i={};for(const s of n.entries()){const[a,c]=s;i[a]=c instanceof File?c.name:c}t.push(D(i))}else if(nt(n))t.push(D(Y(n)));else try{t.push(D(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const ft=[[/Safari LINE/i,"Safari LINE",/Safari LINE\/([\d.]+)/i],[/LINE/i,"LINE",/LINE\/([\d.]+)/i],[/firefox|fxios/i,"Firefox",/firefox\/([\d.]+)/i],[/edg/i,"Edge",/edg\/([\d.]+)/i],[/opr\//i,"Opera",/opr\/([\d.]+)/i],[/chrome|chromium|crios/i,"Chrome",/chrome\/([\d.]+)/i],[/safari/i,"Safari",/version\/([\d.]+)/i],[/msie|trident/i,"IE",/(?:msie (\d+)|rv:(\d+))/i]],gt=[[/android/i,"Android",/android\s([\d.]+)/i],[/iphone|ipad|ipod/i,"iOS",/os (\d+_\d+)/i],[/windows nt/i,"Windows",/windows nt (\d+\.\d+)/i],[/macintosh|mac os x/i,"macOS",/mac os x (\d+_\d+)/i],[/linux/i,"Linux"]];function N(e,t,o=""){const n=e.match(t);return n?(n[1]??n[2]??"").replace("_","."):o}function lt(e){const t={name:"Unknown",version:"Unknown"};let o=t,n=t;
1for(const[i,s,a]of ft)if(i.test(e)){o={name:s,version:a?N(e,a,e):e};break}for(const[i,s,a]of gt)if(i.test(e)){n={name:s,version:a?N(e,a,""):"Unknown"};break}return{browser:o,os:n}}function yt(){return typeof navigator>"u"?null:lt(navigator.userAgent)}function dt(){return new Date().toISOString()}function Q(){const e=H();e.public.saveLog;function t(){let n="";try{n=W().fullPath}catch{n=""}const i={timestamp:dt(),environment:e.public.envName||"dev",release:e.public.release||"unknown",route:n};try{const s=yt();s&&(i.ua=s)}catch{}return i}async function o(n){const i={...t(),...n};await $fetch("/api/log",{method:"POST",headers:e.public.logSecret?{"x-log-secret":String(e.public.logSecret)}:void 0,body:i}).catch(()=>{})}return{write:o}}const ht=["title","robots","description","ogTitle","ogDescription","ogUrl","ogImage","ogType","site_name","canonical"],mt="1200",pt="675",wt=["og:image:secure_url","og:image:width","og:image:height","og:image:type"],p=-5,K=new Map,S=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),G=e=>{if(!S(e))return e;const t={...e};return!t.key&&typeof t.hid=="string"&&(t.key=t.hid),typeof t.property=="string"&&t.tagPriority===void 0&&(t.tagPriority=p),t},_t=e=>!S(e)||Array.isArray(e.meta)||Array.isArray(e.link)||Array.isArray(e.script)?!1:ht.some(o=>o in e),bt=e=>{var o,n;const t=((n=(o=e.split("?")[0])==null?void 0:o.split("#")[0])==null?void 0:n.toLowerCase())??"";if(t.endsWith(".png"))return"image/png";if(t.endsWith(".jpg")||t.endsWith(".jpeg"))return"image/jpeg";if(t.endsWith(".webp"))return"image/webp";if(t.endsWith(".gif"))return"image/gif"},J=async e=>{const t=K.get(e);if(t)return t;let o;return o??(o=bt(e)),o&&K.set(e,o),o},X=(e,t)=>[{key:"og:image:secure_url",property:"og:image:secure_url",content:e,tagPriority:p},{key:"og:image:width",property:"og:image:width",content:mt,tagPriority:p},{key:"og:image:height",property:"og:image:height",content:pt,tagPriority:p},t?{key:"og:image:type",property:"og:image:type",content:t,tagPriority:p}:null].filter(Boolean),R=e=>{if(typeof e.key=="string")return e.key;if(typeof e.property=="string")return e.property},kt=async e=>{const t=e.map(G),o=t.findIndex(d=>S(d)?R(d)==="og:image":!1);if(o<0)return t;const n=t[o];if(!S(n)||typeof n.content!="string")return t;const i=n.content,s=await J(i),a=X(i,s),c=t.filter(d=>{if(!S(d))return!0;const h=R(d);return!h||!wt.includes(h)}),f=c.findIndex(d=>S(d)?R(d)==="og:image":!1);return f<0?c:[...c.slice(0,f+1),...a,...c.slice(f+1)]},vt=async e=>{const t=typeof e.title=="string"?e.title:void 0,o=typeof e.robots=="string"?e.robots:void 0,n=typeof e.description=="string"?e.description:void 0,i=typeof e.ogTitle=="string"?e.ogTitle:void 0,s=typeof e.ogDescription=="string"?e.ogDescription:void 0,a=typeof e.ogUrl=="string"?e.ogUrl:void 0,c=typeof e.ogImage=="string"?e.ogImage:void 0,f=typeof e.ogType=="string"?e.ogType:void 0,d=typeof e.site_name=="string"?e.site_name:void 0,h=typeof e.canonical=="string"?e.canonical:void 0,w=c?await J(c):void 0;return{title:t,meta:[o?{key:"robots",name:"robots",content:o}:null,n?{key:"description",name:"description",content:n}:null,i?{key:"og:title",property:"og:title",content:i,tagPriority:p}:null,s?{key:"og:description",property:"og:description",content:s,tagPriority:p}:null,a?{key:"og:url",property:"og:url",content:a,tagPriority:p}:null,c?{key:"og:image",property:"og:image",content:c,tagPriority:p}:null,...c?X(c,w):[],f?{key:"og:type",property:"og:type",content:f,tagPriority:p}:null,d?{key:"og:site_name",property:"og:site_name",content:d,tagPriority:p}:null,{key:"msnbot",name:"msnbot",content:"nocache, noarchive"}].filter(Boolean),link:[h?{key:"canonical",rel:"canonical",href:h}:null].filter(Boolean)}},At=async e=>{if(!S(e))return e;if(_t(e))return vt(e);const t=Object.assign({},e);return Array.isArray(t.meta)&&(t.meta=await kt(t.meta)),Array.isArray(t.link)&&(t.link=t.link.map(G)),Array.isArray(t.script)&&(t.script=t.script.map(G)),t},It=async e=>{if(e==null)return e;const t=new WeakSet,o=async n=>{if(!(!S(n)&&!Array.isArray(n))&&!(typeof n!="object"||n===null)&&!t.has(n)){if(t.add(n),S(n)&&"headMeta"in n&&(n.headMeta=await At(n.headMeta)),Array.isArray(n)){for(const i of n)await o(i);return}for(const i of Object.values(n))await o(i)}};return await o(e),e};function Tt(e,t="GET",o=null){const{write:n}=Q(),i=F("hbr_jwt").value,a=H().public.API_HOST;let c="GET",f=null;t&&typeof t=="object"&&!Array.isArray(t)?f=t:(c=t||"GET",f=o);const d=String(c).toUpperCase(),h=d==="GET"||d==="HEAD";let g={...{method:d,headers:{"Content-Type":"application/json",...i?{Authorization:`Bearer ${i}`}:{}}},opts:f};if(f&&typeof f=="object"){const{body:r,...l}=f;!h&&r!==void 0&&r!==null&&(g.body=r),g={...g,...l}}const b=async(r,l={})=>{var A,_,U,C;const m=Date.now();try{const u=await $fetch(r,l),j=Date.now()-m,O=typeof r=="string"?r:((A=r==null?void 0:r.toString)==null?void 0:A.call(r))||"unknown",P=String((l==null?void 0:l.method)||"GET").toUpperCase(),L=(u==null?void 0:u.statusCode)||(u==null?void 0:u.status)||null;return n({level:"info",type:"info",name:"usefetch_info",severity:"info",message:String((u==null?void 0:u.message)||"useFetch success"),stack:"",http:{url:O,method:P,status:L,duration_ms:j},payload:{key:(l==null?void 0:l.key)||null}}).catch(()=>{}),u}catch(u){const j=Date.now()-m,O=typeof r=="string"?r:((_=r==null?void 0:r.toString)==null?void 0:_.call(r))||"unknown",P=String((l==null?void 0:l.method)||"GET").toUpperCase(),L=(u==null?void 0:u.statusCode)||(u==null?void 0:u.status)||null;throw n({level:"warn",type:"error",name:"usefetch_error",severity:"warn",message:String((u==null?void 0:u.message)||"useFetch failed"),stack:String((u==null?void 0:u.stack)||""),http:{url:O,method:P,status:L,duration_ms:j,request_id:((U=u==null?void 0:u.data)==null?void 0:U.request_id)||((C=u==null?void 0:u.data)==null?void 0:C.requestId)||null},payload:{key:(l==null?void 0:l.key)||null}}).catch(()=>{}),u}},k=g==null?void 0:g.transform;g.transform=async r=>{const l=typeof k=="function"?await k(r):r;return It(l)};
1const y=W(),v=typeof e=="string"&&e.startsWith("/api")?e:a+e,B=V(v,y.query);return ct(B,{...g,$fetch:b},"$P1cH6EWFq7")}async function St(e,t={}){var b,k;const{write:o}=Q(),n=F("hbr_jwt").value,s=H().public.API_HOST,a=W(),c=typeof e=="string"&&e.startsWith("/api")?e:s+e,f=V(c,a.query),d=String((t==null?void 0:t.method)||"GET").toUpperCase(),h={"Content-Type":"application/json",...n?{Authorization:`Bearer ${n}`}:{},...(t==null?void 0:t.headers)||{}},w={method:d,...t,headers:h},g=Date.now();try{const y=await $fetch(f,w);return o({level:"info",type:"info",name:"usefetch_info",severity:"info",message:"useFetch success",stack:"",http:{url:f,method:d,status:null,duration_ms:Date.now()-g},payload:{key:(t==null?void 0:t.key)||null}}).catch(()=>{}),y}catch(y){const v=(y==null?void 0:y.statusCode)??(y==null?void 0:y.status)??null;if(!t._authRetried&&(v===401||v===403)&&typeof e=="string"&&e.startsWith("/api")&&!e.startsWith("/api/auth/"))try{const r=await $fetch("/api/auth/sync",{credentials:"include"});if((r==null?void 0:r.status)!=="logged_out"&&(r==null?void 0:r.status)!=="guest"){const l=F("hbr_jwt").value;return await St(e,{...t,_authRetried:!0,headers:{...t.headers||{},Authorization:`Bearer ${l}`}})}}catch{}throw o({level:"warn",type:"error",name:"usefetch_error",severity:"warn",message:String((y==null?void 0:y.message)||"useFetch failed"),stack:String((y==null?void 0:y.stack)||""),http:{url:f,method:d,status:v,duration_ms:Date.now()-g,request_id:((b=y==null?void 0:y.data)==null?void 0:b.request_id)??((k=y==null?void 0:y.data)==null?void 0:k.requestId)??null},payload:{key:(t==null?void 0:t.key)||null}}).catch(()=>{}),y}}export{Q as a,ct as b,St as l,It as n,Tt 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.