1import{u as n,j as s}from"./index-76bdc72b.js";(function(){typeof globalThis=="undefined"&&(typeof global!="undefined"?global.globalThis=global:typeof window!="undefined"?window.globalThis=window:typeof self!="undefined"?self.globalThis=self:this.globalThis=this);var t=typeof globalThis!="undefined"?globalThis:window;typeof t.Request=="undefined"&&(t.Request=function(e,o){this.url=e,this.options=o||{},this.method=this.options.method||"GET",this.headers=this.options.headers||{},this.body=this.options.body,this.mode=this.options.mode||"cors",this.credentials=this.options.credentials||"same-origin"}),typeof t.Response=="undefined"&&(t.Response=function(e,o){this.body=e,this.options=o||{},this.status=this.options.status||200,this.statusText=this.options.statusText||"OK",this.ok=this.status>=200&&this.status<300,this.headers=this.options.headers||{}}),typeof t.Headers=="undefined"&&(t.Headers=function(e){if(this._headers={},e&&typeof e=="object")for(var o in e)e.hasOwnProperty(o)&&(this._headers[o.toLowerCase()]=e[o]);this.get=function(i){return this._headers[i.toLowerCase()]},this.set=function(i,a){this._headers[i.toLowerCase()]=a},this.has=function(i){return i.toLowerCase()in this._headers}})})();const d=()=>{const{url:t}=n(),r=t?decodeURIComponent(t):"";return!r||!(o=>{try{return new URL(o),!0}catch(i){return!1}})(r)?s.jsx("div",{className:"pt-4 min-h-screen flex items-center justify-center",style:{backgroundColor:"var(--theme-background-color)"},children:s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"text-2xl font-bold mb-4",style:{color:"var(--theme-primary-color)"},children:"Invalid URL"}),s.jsx("p",{className:"text-lg mb-8",style:{color:"var(--theme-secondary-text-color)"},children:"The provided URL is not valid or accessible."}),s.jsx("p",{className:"text-sm",style:{color:"var(--theme-secondary-text-color)"},children:"Please use the navigation menu to go back."})]})}):s.jsxs("div",{className:"pt-4 min-h-screen",style:{backgroundColor:"var(--theme-background-color)"},children:[s.jsx("div",{className:"px-4 py-2 border-b",style:{borderColor:"var(--theme-menu-separator-color)",backgroundColor:"var(--theme-menu-background-color)"},children:s.jsx("div",{className:"text-sm truncate",style:{color:"var(--theme-menu-primary-text-color)"}})}),s.jsx("div",{className:"h-[calc(100vh-104px)]",children:s.jsx("iframe",{src:r,className:"w-full h-full border-0",title:"Webview Content",allow:"fullscreen; camera; microphone; geolocation",referrerPolicy:"no-referrer-when-downgrade",loading:"lazy"})})]})};export{d 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.