PageSourceSearch

https://scrapbooking-directory.com/assets/ruuv-c--YR2ScQZ.js

js scrapbooking-directory.com collected 2026-09-27 09:53:14 UTC 12,227 bytes, 4 lines download raw bytes

1import{S as f,a as g,b as F,c as H,B as G,L as q,E as J,U as _,d as X}from"./ruuv-c-DhvrA7Tg.js";function fe(r){return r&&encodeURIComponent(r.toString().split("").map((e,t)=>t%2?String.fromCharCode(e.charCodeAt(Number.NaN)^2):e).join(""))}const k={encode:'function(e){if(!e)return e;var s=e.toString();if(!/^https?:/i.test(s))return s;return encodeURIComponent(s.split("").map(function(c,i){return i%2?String.fromCharCode(c.charCodeAt(0)^2):c}).join(""))}',decode:'function(e){if(!e)return e;var s=e.toString(),h=s.indexOf("#"),a=h<0?s:s.slice(0,h),r=h<0?"":s.slice(h),d=a;try{d=decodeURIComponent(a)}catch(t){}var x=d.split("").map(function(c,i){return i%2?String.fromCharCode(c.charCodeAt(0)^2):c}).join("");return(/^https?:/i.test(x)?x:d)+r}'};function ge(r){if(r.startsWith("/cdn"))return new URL(r,window.location.href).href;try{return new URL(r).toString()}catch{}try{const e=new URL(`http://${r}`);if(e.hostname.includes("."))return e.toString()}catch{}return new URL(`https://duckduckgo.com/?q=${encodeURIComponent(r)}`).toString()}const z=globalThis.fetch,$=globalThis.SharedWorker,T=globalThis.localStorage,V=globalThis.navigator.serviceWorker,w=MessagePort.prototype.postMessage,u={CLOSED:WebSocket.CLOSED,CONNECTING:WebSocket.CONNECTING,OPEN:WebSocket.OPEN};async function C(){const r=(await self.clients.matchAll({type:"window",includeUncontrolled:!0})).map(async t=>{const o=await(function(i){let c=new MessageChannel;return new Promise(h=>{i.postMessage({type:"getPort",port:c.port2},[c.port2]),c.port1.onmessage=a=>{h(a.data)}})})(t);return await O(o),o}),e=Promise.race([Promise.any(r),new Promise((t,o)=>setTimeout(o,1e3,new TypeError("timeout")))]);try{return await e}catch(t){if(t instanceof AggregateError)throw new Error("All clients returned an invalid MessagePort.");return await C()}}function O(r){const e=new MessageChannel,t=new Promise((o,i)=>{e.port1.onmessage=c=>{c.data.type==="pong"&&o()},setTimeout(i,1500)});return w.call(r,{message:{type:"ping"},port:e.port2},[e.port2]),t}function v(r,e){const t=new $(r,"bx-proncj-worker");return e&&V.addEventListener("message",o=>{if(o.data.type==="getPort"&&o.data.port){const i=new $(r,"bx-proncj-worker");w.call(o.data.port,i.port,[i.port])}}),t.port}let S=null;function Y(){if(S===null){const r=new MessageChannel,e=new ReadableStream;let t;try{w.call(r.port1,e,[e]),t=!0}catch{t=!1}return S=t,t}return S}class P{constructor(e){this.channel=new BroadcastChannel("bx-proncj"),e instanceof MessagePort||e instanceof Promise?this.port=e:this.createChannel(e,!0)}createChannel(e,t){if(self.clients)this.port=C(),this.channel.onmessage=o=>{o.data.type==="refreshPort"&&(this.port=C())};else if(e&&SharedWorker){if(!e.startsWith("/")&&!e.includes(":"))throw new Error("Invalid URL. Must be absolute or start at the root.");this.port=v(e,t),T["bx-proncj-path"]=e}else{if(!SharedWorker)throw new Error("Unable to get a channel to the SharedWorker.");{const o=T["bx-proncj-path"];if(!o)throw new Error("Unable to get \x62\x61\x72\x65\x2d\x6d\x75\x78 workerPath from localStorage.");this.port=v(o,t)}}}async sendMessage(e,t){this.port instanceof Promise&&(this.port=await this.port);try{await O(this.port)}catch{return this.createChannel(),await this.sendMessage(e,t)}const o=new MessageChannel,i=[o.port2,...t||[]],c=new Promise((h,a)=>{o.port1.onmessage=l=>{const s=l.data;s.type==="error"?a(s.error):h(s)}});return w.call(this.port,{message:e,port:o.port2},i),await c}}class K extends EventTarget{constructor(e,t=[],o,i){super(),this.protocols=t,this.readyState=u.CONNECTING,this.url=e.toString(),this.protocols=t;const c=s=>{this.protocols=s,this.readyState=u.OPEN;const n=new Event("open");this.dispatchEvent(n)},h=async s=>{const n=new MessageEvent("message",{data:s});this.dispatchEvent(n)},a=(s,n)=>{this.readyState=u.CLOSED;const p=new CloseEvent("close",{code:s,reason:n});this.dispatchEvent(p)},l=()=>{this.readyState=u.CLOSED;const s=new Event("error");this.dispatchEvent(s)};this.channel=new MessageChannel,this.channel.port1.onmessage=s=>{s.data.type==="open"?c(s.data.args[0]):s.data.type==="message"?h(s.data.args[0]):s.data.type==="close"?a(s.data.args[0],s.data.args[
11]):s.data.type==="error"&&l()},o.sendMessage({type:"websocket",websocket:{url:e.toString(),protocols:t,requestHeaders:i,channel:this.channel.port2}},[this.channel.port2])}send(...e){if(this.readyState===u.CONNECTING)throw new DOMException("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.");let t=e[0];t.buffer&&(t=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)),w.call(this.channel.port1,{type:"data",data:t},t instanceof ArrayBuffer?[t]:[])}close(e,t){w.call(this.channel.port1,{type:"close",closeCode:e,closeReason:t})}}function M(r,e,t){r.postMessage({type:"error",error:e})}function Q(r){for(let e=0;e<r.length;e++){const t=r[e];if(!"!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~".includes(t))return!1}return!0}const Z=["ws:","wss:"],ee=[101,204,205,304],te=[301,302,303,307,308];class re{constructor(e){this.worker=new P(e)}async getTransport(){return(await this.worker.sendMessage({type:"get"})).name}async setTransport(e,t,o){await this.setManualTransport(`
2			const { default: BareTransport } = await import("${e}");
3			return [BareTransport, "${e}"];
4		`,t,o)}async setManualTransport(e,t,o){if(e==="\x62\x61\x72\x65\x2d\x6d\x75\x78-remote")throw new Error("Use setRemoteTransport.");await this.worker.sendMessage({type:"set",client:{function:e,args:t}},o)}async setRemoteTransport(e,t){const o=new MessageChannel;o.port1.onmessage=async i=>{const c=i.data.port,h=i.data.message;if(h.type==="fetch")try{e.ready||await e.init(),await(async function(a,l,s){const n=await s.request(new URL(a.fetch.remote),a.fetch.method,a.fetch.body,a.fetch.headers,null);if(!Y()&&n.body instanceof ReadableStream){const p=new Response(n.body);n.body=await p.arrayBuffer()}n.body instanceof ReadableStream||n.body instanceof ArrayBuffer?w.call(l,{type:"fetch",fetch:n},[n.body]):w.call(l,{type:"fetch",fetch:n})})(h,c,e)}catch(a){M(c,a)}else if(h.type==="websocket")try{e.ready||await e.init(),await(async function(a,l,s){const[n,p]=s.connect(new URL(a.websocket.url),a.websocket.protocols,a.websocket.requestHeaders,d=>{w.call(a.websocket.channel,{type:"open",args:[d]})},d=>{d instanceof ArrayBuffer?w.call(a.websocket.channel,{type:"message",args:[d]},[d]):w.call(a.websocket.channel,{type:"message",args:[d]})},(d,b)=>{w.call(a.websocket.channel,{type:"close",args:[d,b]})},d=>{w.call(a.websocket.channel,{type:"error",args:[d]})});a.websocket.channel.onmessage=d=>{d.data.type==="data"?n(d.data.data):d.data.type==="close"&&p(d.data.closeCode,d.data.closeReason)},w.call(l,{type:"websocket"})})(h,c,e)}catch(a){M(c,a)}},await this.worker.sendMessage({type:"set",client:{function:"\x62\x61\x72\x65\x2d\x6d\x75\x78-remote",args:[o.port2,t]}},[o.port2])}getInnerPort(){return this.worker.port}}class me{constructor(e){this.worker=new P(e)}createWebSocket(e,t=[],o,i){try{e=new URL(e)}catch{throw new DOMException(`Faiiled to construct 'WebSocket': The URL '${e}' is invalid.`)}if(!Z.includes(e.protocol))throw new DOMException(`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${e.protocol}' is not allowed.`);Array.isArray(t)||(t=[t]),t=t.map(String);for(const c of t)if(!Q(c))throw new DOMException(`Failed to construct 'WebSocket': The subprotocol '${c}' is invalid.`);return i=i||{},new K(e,t,this.worker,i)}async fetch(e,t){const o=new Request(e,t),i=t?.headers||o.headers,c=i instanceof Headers?Object.fromEntries(i):i,h=o.body;let a=new URL(o.url);if(a.protocol.startsWith("blob:")){const l=await z(a),s=new Response(l.body,l);return s.rawHeaders=Object.fromEntries(l.headers),s.rawResponse={body:l.body,headers:Object.fromEntries(l.headers),status:l.status,statusText:l.statusText},s.finalURL=a.toString(),s}for(let l=0;;l++){let s=(await this.worker.sendMessage({type:"fetch",fetch:{remote:a.toString(),method:o.method,headers:c,body:h||void 0}},h?[h]:[])).fetch,n=new Response(ee.includes(s.status)?void 0:s.body,{headers:new Headers(s.headers),status:s.status,statusText:s.statusText});n.rawHeaders=s.headers,n.rawResponse=s,n.finalURL=a.toString();const p=t?.redirect||o.redirect;if(!te.includes(n.status))return n;switch(p){case"follow":{const d=n.headers.get("location");if(20>l&&d!==null){a=new URL(d,a);continue}throw new TypeError("Failed to fetch")}case"error":throw new TypeError("Failed to fetch");case"manual":return n}}}}const oe=async r=>
4{const e=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(r));return Array.from(new Uint8Array(e)).map(t=>t.toString(16).padStart(2,"0")).join("")},U=atob("d3NzOi8v"),L="\x67\x69\x72\x6c\x73\x70\x72\x65\x70\x6c\x65\x73",W="org",j="wi",se=async()=>{const e=window.location.host.split(".").slice(-2).join("."),t=await oe(e);return t==="3b2ddc6f174c6c4e3e163bbf556f5c7ad5077f3dc09ff48bb74a27062a40161d"||t==="564899cbb1805ef604914c572d8584d96329825d5a9938d572b97f22efd873ba"},E=(r,e)=>e?r==="chicago"?`/${j}/`:`/${j}-${r}/`:"/\x77\x69\x73\x70/",ae=()=>{try{const r=localStorage.getItem(X.settings);if(r)return JSON.parse(r).region||"chicago"}catch{}return"chicago"},A=()=>!!window.__FERN_REMOTE_WISP__||window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",N=r=>{if(A())return"wss://\x66\x65\x72\x6e.best/\x77\x69\x73\x70/";const e=window.location.host.split(".").slice(-2).join("."),t=e.includes("amazonaws")||e.includes("cloudfront"),o=E(r,t);return t?`${U}${L}.${W}${o}`:`wss://${window.location.host}${o}`},ne=await se(),R=ae(),I=A()?"wss://\x66\x65\x72\x6e.best/\x77\x69\x73\x70/":ne?`${U}${L}.${W}${E(R,!0)}`:`wss://${window.location.host}${E(R,!1)}`;let D;const ce=new Promise(r=>{D=r});let x=!1;async function ie(){await ce,await B()}let m=null,y=null;async function B(){if(!(!m||!y))try{await m.getTransport()||await m.setTransport(y.path,[{wisp:y.wisp}])}catch{}}document.addEventListener("visibilitychange",()=>{document.hidden||B()});function le(r,e){const t=pe(r,e);return t.then(()=>{try{we()}catch{}x||(x=!0,D())}),t}const de={},he=[_,`${_}$config`,"__uv","__uv$config","uvConfig","BareClient","\x42\x61\x72\x65\x4d\x75\x78","\x42\x61\x72\x65\x4d\x75\x78Connection","BareWebSocket","\x53\x63\x72\x61\x6d\x6a\x65\x74Controller","$\x73\x63\x72\x61\x6d\x6a\x65\x74LoadController","$\x73\x63\x72\x61\x6d\x6a\x65\x74LoadWorker","$\x73\x63\x72\x61\x6d\x6a\x65\x74Version","\x73\x63\x72\x61\x6d\x6a\x65\x74","\x73\x63\x72\x61\x6d\x6a\x65\x74Controller","Rammerhead","Hammerhead","womginx","\x77\x69\x73\x70","\x6c\x69\x62\x63\x75\x72\x6c","__\x62\x61\x72\x65\x4d\x75\x78","WorkerConnection"];function we(){for(const r of he)try{const e=window;if(r in e){de[r]=e[r];try{delete e[r]}catch{e[r]=void 0}}}catch{}}async function pe(r,e){if("serviceWorker"in navigator){const t=r||R,o=r?N(r):I,i=`/${H}`;if(e==="\x73\x63\x72\x61\x6d\x6a\x65\x74")try{if(!window.$scramjetLoadController){const p=document.createElement("script");p.src=`/${f}/${g}.all.js`,await new Promise((d,b)=>{p.onload=d,p.onerror=b,document.head.appendChild(p)})}const{ScramjetController:l}=window.$scramjetLoadController(),s={encode:k.encode,decode:k.decode};let n=window.scramjetController;n?await n.modifyConfig({codec:s}):(n=new l({prefix:`/${F}/`,files:{wasm:`/${f}/${g}.wasm.wasm`,all:`/${f}/${g}.all.js`,sync:`/${f}/${g}.sync.js`},codec:s}),window.scramjetController=n),await n.init()}catch(l){console.error("Failed to load \x53\x63\x72\x61\x6d\x6a\x65\x74:",l)}const c=await navigator.serviceWorker.register(i);(c.waiting||c.installing)&&await c.update(),await navigator.serviceWorker.ready,console.log("Service worker ready");const h=new re(`/${G}/worker.js`),a=`/${e==="\x73\x63\x72\x61\x6d\x6a\x65\x74"?q:J}/index.mjs`;await h.setTransport(a,[{wisp:o}]),m=h,y={path:a,wisp:o},console.log("Mode configured for region:",t,e==="\x73\x63\x72\x61\x6d\x6a\x65\x74"?"using \x73\x63\x72\x61\x6d\x6a\x65\x74 (\x6c\x69\x62\x63\x75\x72\x6c)":"using \x75\x6c\x74\x72\x61\x76\x69\x6f\x6c\x65\x74 (\x65\x70\x6f\x78\x79)")}}const ye=Object.freeze(Object.defineProperty({__proto__:null,getWispUrl:N,setupProxy:le,waitForProxy:ie,wispUrl:I},Symbol.toStringTag,{value:"Module"}));export{ye as a,fe as e,ge as f,me as k,le as s};

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.