1const i=new Set(["r2.wei.city","weicity.blob.core.windows.net"]);function a(e,t){const r=String(t||"").trim().toLowerCase().replace(/^\./,"");if(r)return r==="pdf";try{return new URL(e,"https://wei.city").pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}function o(e){try{const t=new URL(e);return t.protocol==="https:"&&i.has(t.hostname.toLowerCase())}catch{return!1}}function s(e,t=""){const r=new URLSearchParams({src:e});return t&&r.set("title",t),`/pdf-viewer?${r.toString()}`}function c(e,t,r,n){return n&&a(e,t)&&o(e)?{href:s(e,r),inAppViewer:!0}:{href:e,inAppViewer:!1}}export{c as a,o as i};
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.