PageSourceSearch

https://mostlyright.md/_next/static/chunks/app/layout-8f3f13207c1b65c9.js

js mostlyright.md collected 2026-09-24 14:24:21 UTC 8,436 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2415:(e,t,r)=>{"use strict";var n=r(22231);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},5700:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,23465,23)),Promise.resolve().then(r.t.bind(r,16346,23)),Promise.resolve().then(r.t.bind(r,88794,23)),Promise.resolve().then(r.t.bind(r,50190,23)),Promise.resolve().then(r.bind(r,38371)),Promise.resolve().then(r.t.bind(r,23850,23)),Promise.resolve().then(r.t.bind(r,92945,23)),Promise.resolve().then(r.bind(r,50639))},14511:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});let n=["preview","v"];function a(e){let t=new URLSearchParams(e);for(let e of n)t.delete(e);let r=t.toString();return r?`?${r}`:""}},16346:()=>{},23465:()=>{},23850:()=>{},38371:(e,t,r)=>{"use strict";r.d(t,{AnalyticsProvider:()=>v,sI:()=>b,Jh:()=>w});var n=r(14675),a=r(2415),o=r(41523),i=r(92115);function l(){let e="phc_t3mG6qMxyfvWGUXA9hQoo5qwTraPK7LeEGsfAJ4gMHuK".trim(),t="https://us.i.posthog.com".trim();return e&&t?{key:e,host:t}:null}let s=["$current_url","$referrer","$initial_current_url","$initial_referrer","$session_entry_url","$session_entry_referrer","$pathname"];function u(e){if(e&&"object"==typeof e)for(let t of s)t in e&&(e[t]=(0,i.o)(e[t]))}function d(e){if(!e?.properties)return e;let t=e.properties;u(t),u(t.$set),u(t.$set_once);let r=t.$snapshot_data;if(Array.isArray(r))for(let e of r){let t=e?.data;t&&"object"==typeof t&&"string"==typeof t.href&&(t.href=(0,i.o)(t.href))}return e}var c=r(14511);let f=null,p=!1,h=!1,m=[];function w(e){f?e(f):!h&&l()&&m.push(e)}function g(){if(f||p||h)return;let e=l();if(!e){h=!0,m.length=0;return}p=!0,r.e(7919).then(r.bind(r,99454)).then(({default:t})=>{for(let r of(t.init(e.key,{defaults:"2026-01-30",api_host:e.host,autocapture:!0,capture_pageview:!1,capture_pageleave:!0,person_profiles:"identified_only",disable_surveys:!0,before_send:d,session_recording:{maskAllInputs:!0,maskTextSelector:".ph-no-capture, [data-ph-mask], .key-box, .key-box-reveal, .key-snippet, .dataset-share-link"}}),f=t,m.splice(0)))r(t)}).catch(()=>{h=!0,m.length=0}).finally(()=>{p=!1})}function b(){w(e=>e.reset())}function k(){let e=(0,a.usePathname)(),t=(0,a.useSearchParams)(),r=(0,o.useRef)(null),n=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e,t,r,n;return e=!1,t=()=>{e||(e=!0,g())},r=window.setTimeout(t,2e3),n="function"==typeof window.requestIdleCallback?window.requestIdleCallback(t,{timeout:2e3}):null,()=>{e=!0,window.clearTimeout(r),null!==n&&window.cancelIdleCallback(n)}},[]),(0,o.useEffect)(()=>{let a=(0,c.S)(t.toString()),o=`${window.location.origin}${e}${a}`,i=r.current!==e;r.current=e;let l=()=>{n.current!==o&&(n.current=o,w(e=>e.capture("$pageview",{$current_url:o})))};if(i)return void l();let s=window.setTimeout(l,1e3);return()=>window.clearTimeout(s)},[e,t]),null}function v(){return(0,n.jsx)(o.Suspense,{fallback:null,children:(0,n.jsx)(k,{})})}},50190:()=>{},50639:(e,t,r)=>{"use strict";r.d(t,{DownloadManagerProvider:()=>l,g:()=>s});var n=r(14675),a=r(41523);let o=(0,a.createContext)(null);function i(e){switch(e){case"too_large":return"This file is too large for a browser download. Use the download command instead.";case"gone":return"This table version is no longer available.";case"not_authorized":return"You no longer have permission to download this table.";case"timeout":return"File preparation timed out. Try again.";default:return"Couldn’t prepare the file. Try again."}}function l({children:e}){let[t,r]=(0,a.useState)({kind:"idle"}),[s,u]=(0,a.useState)(0),d=(0,a.useRef)(t),c=(0,a.useRef)(null),f=(0,a.useRef)(null),p=(0,a.useRef)(!1);(0,a.useEffect)(()=>{d.current=t},[t]);let h=(0,a.useCallback)(()=>{c.current?.remove(),c.current=null},[]),m=(0,a.useCallback)(()=>{"preparing"===d.current.kind&&f.current?.abort(),f.current=null,"requested"!==d.current.kind&&h(),p.current=!1,r({kind:"idle"})},[h]);(0,a.useEffect)(()=>()=>m(),[m]),(0,a.useEffect)(()=>
1{if("preparing"!==t.kind)return;let e=window.setInterval(()=>u(Date.now()),1e3);return()=>window.clearInterval(e)},[t.kind]);let w=(0,a.useCallback)(async e=>{if(p.current)return;p.current=!0,f.current?.abort(),h();let t=new AbortController;f.current=t,r({kind:"preparing",href:e,startedAt:Date.now()});let n=!1,a=window.setTimeout(()=>{n=!0,t.abort()},12e4);try{let n=await Promise.race([fetch(e,{method:"POST",headers:{"x-mr-download":"1"},signal:t.signal}),new Promise((e,r)=>t.signal.addEventListener("abort",()=>r(new DOMException("Aborted","AbortError")),{once:!0}))]),o=await n.json();if(window.clearTimeout(a),t.signal.aborted)return;if("sign_in"===o.status){p.current=!1,window.location.assign(o.href);return}if("ready"!==o.status||!o.href){p.current=!1,r({kind:"failed",href:e,message:i(o.status),retry:"unavailable"===o.status,..."too_large"===o.status&&o.command?{command:o.command}:{}});return}let l=o.href;r({kind:"preparing",href:l,startedAt:Date.now()});let s=crypto.randomUUID(),u=`mr_download_${s}`,d=document.createElement("iframe");d.hidden=!0,d.title="Parquet download",d.setAttribute("sandbox","allow-downloads allow-same-origin"),d.src=function(e,t){let r=new URL(e,window.location.origin);if(r.origin!==window.location.origin)throw Error("Download address is not same-origin.");return r.searchParams.set("request",t),`${r.pathname}${r.search}${r.hash}`}(o.href,s),document.body.append(d),c.current=d;let f=Date.now(),m=window.setInterval(()=>{let e,n;if(t.signal.aborted)return void window.clearInterval(m);let a=(e=`${encodeURIComponent(u)}=`,(n=document.cookie.split("; ").find(t=>t.startsWith(e)))?decodeURIComponent(n.slice(e.length)):null);"requested"===a?(window.clearInterval(m),p.current=!1,c.current=null,r({kind:"requested",href:l})):"timeout"===a||"unavailable"===a||"too_large"===a||"gone"===a||"not_authorized"===a?(window.clearInterval(m),document.cookie=`${u}=; Path=/; Max-Age=0; SameSite=Strict`,p.current=!1,h(),r({kind:"failed",href:l,message:i(a),retry:"unavailable"===a||"timeout"===a})):Date.now()-f>=12e4&&(window.clearInterval(m),p.current=!1,h(),r({kind:"failed",href:l,message:"File preparation is taking too long. Try again.",retry:!0}))},500)}catch{window.clearTimeout(a),f.current===t&&(!t.signal.aborted||n)&&(p.current=!1,h(),r({kind:"failed",href:e,message:n?"File preparation is taking too long. Try again.":"Couldn’t prepare the file. Try again.",retry:!0}))}},[h]),g="preparing"===t.kind?Math.floor((s-t.startedAt)/1e3):0,b=(0,a.useMemo)(()=>({state:t,start:w,dismiss:m}),[m,w,t]);return(0,n.jsxs)(o.Provider,{value:b,children:[e,"idle"!==t.kind?(0,n.jsxs)("div",{role:"status","aria-live":"polite",className:"fixed bottom-4 right-4 z-[110] flex max-w-[min(28rem,calc(100vw-2rem))] items-center gap-3 rounded-[10px] border border-line bg-surface-card px-3.5 py-3 text-[13px] text-ink shadow-lg","data-download-status":t.kind,children:[(0,n.jsxs)("span",{children:["preparing"===t.kind?"Preparing file…":"requested"===t.kind?"Download requested. Check your browser’s downloads.":t.message,"preparing"===t.kind&&g>=15?(0,n.jsxs)("span",{"aria-hidden":"true",children:[" Still preparing \xb7 ",g,"s elapsed."]}):null,"failed"===t.kind&&t.command?(0,n.jsx)("code",{className:"mt-1 block max-w-full overflow-x-auto rounded bg-paper-deep px-1 py-0.5 text-[11px]",children:t.command}):null]}),"failed"===t.kind&&t.retry?(0,n.jsx)("button",{type:"button",className:"font-medium text-cobalt hover:underline",onClick:()=>void w(t.href),children:"Retry"}):null,"failed"===t.kind&&t.href.includes("/tables/")?(0,n.jsx)("a",{className:"font-medium text-cobalt hover:underline",href:`${t.href.split("?")[0]?.replace(/\/download$/,"")}#use`,children:"Download options"}):null,(0,n.jsx)("button",{type:"button",className:"text-muted hover:text-ink",onClick:m,"aria-label":"preparing"===t.kind?"Cancel file preparation":"Dismiss download status",children:"preparing"===t.kind?"Cancel":"Close"})]}):null]})}function s({href:e,onClick:t,onDownloadStart:r,signedOut:i=!1,...l}){let u=(0,a.useContext)(o);return(0,n.jsx)("a",{...l,href:e,onClick:n=>{t?.(n),n.defaultPrevented||i||!u||!e||0!==n.button||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||(n.preventDefault(),r?.(),u.start(e))}})}},88794:()=>{},92945:()=>{}},e=>{e.O(0,[968,874,2435,602,6269,7358],()=>e(e.s=5700)),_N_E=e.O()}]);

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.