PageSourceSearch

https://elm-pages-todos.netlify.app/assets/index-BBsd977V.js

js elm-pages-todos.netlify.app collected 2026-10-03 10:41:36 UTC 3,822 bytes, 1 lines download raw bytes

1(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))i(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(t){if(t.ep)return;t.ep=!0;const o=r(t);fetch(t.href,o)}})();const f={load:function(e){},flags:function(){return null}};function p(e){const r=new DataView(e).getUint32(0,!1),i=new Uint8Array(e,4,r),t=new TextDecoder().decode(i),o=JSON.parse(t),s=new Uint8Array(e,4+r);return{frozenViews:o,pageData:s}}async function h(e,n=null,r={}){let i=e.replace(/(\w)$/,"$1/");i.endsWith("/")||(i=i+"/");let t=`${window.location.origin}${i}content.dat`;r.body?t+="/":n&&(t+=`?${n}`);const o={};r.body&&(o.method="POST",o.headers={"content-type":"application/x-www-form-urlencoded"},o.body=r.body);try{const s=await fetch(t,o);if(s.ok){const l=await s.arrayBuffer(),{frozenViews:u,pageData:d}=p(l);return window.__ELM_PAGES_FROZEN_VIEWS__=u,{frozenViews:u,pageData:d,rawBytes:new Uint8Array(l)}}else return s.status===404?(window.__ELM_PAGES_FROZEN_VIEWS__={},null):(console.warn(`Failed to fetch content.dat: ${s.status}`),window.__ELM_PAGES_FROZEN_VIEWS__={},null)}catch(s){return console.warn("Error fetching content.dat:",s),window.__ELM_PAGES_FROZEN_VIEWS__={},null}}function w(){const e={};document.querySelectorAll("[data-static]").forEach(n=>{const r=n.getAttribute("data-static");r!==null&&(e[r]=n.outerHTML)}),window.__ELM_PAGES_FROZEN_VIEWS__=e}let a,c;function m(){w();let e=window.location.pathname.replace(/(\w)$/,"$1/");e.endsWith("/")||(e=e+"/");const n=Elm.Main.init({flags:{secrets:null,isPrerendering:!1,isDevServer:!1,isElmDebugMode:!1,contentJson:{},pageDataBase64:document.getElementById("__ELM_PAGES_BYTES_DATA__").innerHTML,userFlags:f.flags()}});return n.ports.toJsPort.subscribe(async r=>{if(r.tag==="FetchFrozenViews"){const i=r.body?{body:r.body}:{},t=await h(r.path,r.query,i);if(t&&t.rawBytes){const o=b(t.rawBytes);n.ports.fromJsPort.send({tag:"FrozenViewsReady",pageDataBase64:o})}else n.ports.fromJsPort.send({tag:"FrozenViewsReady",pageDataBase64:null})}else _()}),n}function _(){if(c!==""){const e=document.querySelector(`[name=${c}]`);e&&e.scrollIntoView()}}function y(e){if(e.host===window.location.host&&!a.includes(e.pathname)){a.push(e.pathname);const n=document.createElement("link");n.setAttribute("as","fetch"),n.setAttribute("rel","prefetch"),n.setAttribute("href",origin+e.pathname+"/content.dat"),document.head.appendChild(n)}}function g(){a=[window.location.pathname],c=document.location.hash.replace(/^#/,"");const e=new Promise(function(t,o){document.addEventListener("DOMContentLoaded",s=>{t(m())})});typeof connect=="function"&&connect(function(t){e.then(o=>{o.ports.hotReloadData.send(t)})});const n=t=>{const o=E(t.target);o&&o.href&&o.hasAttribute("elm-pages:prefetch")&&y(o)};let r;const i=t=>{clearTimeout(r),r=setTimeout(()=>{n(t)},20)};addEventListener("touchstart",n),addEventListener("mousemove",i)}function E(e){for(;e&&e.nodeName.toUpperCase()!=="A";)e=e.parentNode;return e}function b(e){let n="";for(let r=0;r<e.byteLength;r++)n+=String.fromCharCode(e[r]);return btoa(n)}"SubmitEvent"in window&&Object.defineProperty(SubmitEvent.prototype,"fields",{get:function(){let n=new FormData(this.currentTarget);return this.submitter&&this.submitter.name&&n.append(this.submitter.name,this.submitter.value),[...n.entries()]}});g();

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.