(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();const u={};function W(e){u.context=e}function $e(){return{...u.context,id:`${u.context.id}${u.context.count++}-`,count:0}}const Ne=(e,t)=>e===t,H=Symbol("solid-proxy"),Se=Symbol("solid-track"),q={equals:Ne};let fe=ge;const C=1,U=2,ue={owned:null,cleanups:null,context:null,owner:null};var h=null;let M=null,d=null,p=null,$=null,ne=0;function z(e,t){const n=d,s=h,i=e.length===0,l=i?ue:{owned:null,cleanups:null,context:null,owner:t===void 0?s:t},o=i?e:()=>e(()=>N(()=>X(l)));h=l,d=null;try{return j(o,!0)}finally{d=n,h=s}}function Y(e,t){t=t?Object.assign({},q,t):q;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=i=>(typeof i=="function"&&(i=i(n.value)),he(n,i));return[de.bind(n),s]}function P(e,t,n){const s=se(e,t,!1,C);B(s)}function Ce(e,t,n){fe=Pe;const s=se(e,t,!1,C);s.user=!0,$?$.push(s):B(s)}function S(e,t,n){n=n?Object.assign({},q,n):q;const s=se(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,B(s),de.bind(s)}function Ct(e){return j(e,!1)}function N(e){if(d===null)return e();const t=d;d=null;try{return e()}finally{d=t}}function Et(e){Ce(()=>N(e))}function J(e){return h===null||(h.cleanups===null?h.cleanups=[e]:h.cleanups.push(e)),e}function Lt(e,t){const n=Symbol("context");return{id:n,Provider:_e(n),defaultValue:e}}function Mt(e){let t;return(t=ye(h,e.id))!==void 0?t:e.defaultValue}function Ee(e){const t=S(e),n=S(()=>Z(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}function de(){const e=M;if(this.sources&&(this.state||e))if(this.state===C||e)B(this);else{const t=p;p=null,j(()=>R(this),!1),p=t}if(d){const t=this.observers?this.observers.length:0;d.sources?(d.sources.push(this),d.sourceSlots.push(t)):(d.sources=[this],d.sourceSlots=[t]),this.observers?(this.observers.push(d),this.observerSlots.push(d.sources.length-1)):(this.observers=[d],this.observerSlots=[d.sources.length-1])}return this.value}function he(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&j(()=>{for(let i=0;i1e6)throw p=[],new Error},!1)),t}function B(e){if(!e.fn)return;X(e);const t=h,n=d,s=ne;d=h=e,Le(e,e.value,s),d=n,h=t}function Le(e,t,n){let s;try{s=e.fn(t)}catch(i){e.pure&&(e.state=C,e.owned&&e.owned.forEach(X),e.owned=null),pe(i)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?he(e,s):e.value=s,e.updatedAt=n)}function se(e,t,n,s=C,i){const l={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:h,context:null,pure:n};return h===null||h!==ue&&(h.owned?h.owned.push(l):h.owned=[l]),l}function K(e){const t=M;if(e.state===0||t)return;if(e.state===U||t)return R(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;s--)if(e=n[s],e.state===C||t)B(e);else if(e.state===U||t){const i=p;p=null,j(()=>R(e,n[0]),!1),p=i}}function j(e,t){if(p)return e();let n=!1;t||(p=[]),$?n=!0:$=[],ne++;try{const s=e();return Me(n),s}catch(s){n||($=null),p=null,pe(s)}}function Me(e){if(p&&(ge(p),p=null),e)return;const t=$;$=null,t.length&&j(()=>fe(t),!1)}function ge(e){for(let t=0;ti=N(()=>(h.context={[e]:s.value},Ee(()=>s.children))),void 0),i}}const Oe=Symbol("fallback");function ie(e){for(let t=0;t1?[]:null;return J(()=>ie(l)),()=>{let f=e()||[],a,c;return f[Se],N(()=>{let m=f.length,b,E,D,V,F,x,v,A,k;if(m===0)o!==0&&(ie(l),l=[],s=[],i=[],o=0,r&&(r=[])),n.fallback&&(s=[Oe],i[0]=z(Ae=>(l[0]=Ae,n.fallback())),o=1);else if(o===0){for(i=new Array(m),c=0;c=x&&A>=x&&s[v]===f[A];v--,A--)D[A]=i[v],V[A]=l[v],r&&(F[A]=r[v]);for(b=new Map,E=new Array(A+1),c=A;c>=x;c--)k=f[c],a=b.get(k),E[c]=a===void 0?-1:a,b.set(k,c);for(a=x;a<=v;a++)k=s[a],c=b.get(k),c!==void 0&&c!==-1?(D[c]=i[a],V[c]=l[a],r&&(F[c]=r[a]),c=E[c],b.set(k,c)):l[a]();for(c=x;ce(t||{}));return W(n),s}return N(()=>e(t||{}))}function I(){return!0}const ee={get(e,t,n){return t===H?n:e.get(t)},has(e,t){return t===H?!0:e.has(t)},set:I,deleteProperty:I,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:I,deleteProperty:I}},ownKeys(e){return e.keys()}};function Q(e){return(e=typeof e=="function"?e():e)?e:{}}function De(...e){let t=!1;for(let s=0;s=0;i--){const l=Q(e[i])[s];if(l!==void 0)return l}},has(s){for(let i=e.length-1;i>=0;i--)if(s in Q(e[i]))return!0;return!1},keys(){const s=[];for(let i=0;i=0;s--)if(e[s]){const i=Object.getOwnPropertyDescriptors(e[s]);for(const l in i)l in n||Object.defineProperty(n,l,{enumerable:!0,get(){for(let o=e.length-1;o>=0;o--){const r=(e[o]||{})[l];if(r!==void 0)return r}}})}return n}function we(e,...t){const n=new Set(t.flat());if(H in e){const i=t.map(l=>new Proxy({get(o){return l.includes(o)?e[o]:void 0},has(o){return l.includes(o)&&o in e},keys(){return l.filter(o=>o in e)}},ee));return i.push(new Proxy({get(l){return n.has(l)?void 0:e[l]},has(l){return n.has(l)?!1:l in e},keys(){return Object.keys(e).filter(l=>!n.has(l))}},ee)),i}const s=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(s).filter(i=>!n.has(i))),t.map(i=>{const l={};for(let o=0;oe.fallback};return S(Te(()=>e.each,e.children,t||void 0))}function Be(e){let t=!1;const n=e.keyed,s=S(()=>e.when,void 0,{equals:(i,l)=>t?i===l:!i==!l});return S(()=>{const i=s();if(i){const l=e.children,o=typeof l=="function"&&l.length>0;return t=n||o,o?N(()=>l(i)):l}return e.fallback},void 0,void 0)}const Ge=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ve=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ge]),Fe=new Set(["innerHTML","textContent","innerText","children"]),Ie=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),le=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),He=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),qe=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Ue={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Ke(e,t,n){let s=n.length,i=t.length,l=s,o=0,r=0,f=t[i-1].nextSibling,a=null;for(;oc-r){const E=t[o];for(;r{i=l,t===document?e():w(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{i(),t.textContent=""}}function g(e,t,n){const s=document.createElement("template");s.innerHTML=e;let i=s.content.firstChild;return n&&(i=i.firstChild),i}function Re(e,t=window.document){const n=t[re]||(t[re]=new Set);for(let s=0,i=e.length;si.call(e,n[1],l))}else e.addEventListener(t,n)}function We(e,t,n={}){const s=Object.keys(t||{}),i=Object.keys(n);let l,o;for(l=0,o=i.length;li.children=T(e,t.children,i.children)),P(()=>t.ref&&t.ref(e)),P(()=>Je(e,t,n,!0,i,!0)),i}function w(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return T(e,t,s,n);P(i=>T(e,t(),i,n),s)}function Je(e,t,n,s,i={},l=!1){t||(t={});for(const o in i)if(!(o in t)){if(o==="children")continue;i[o]=ce(e,o,null,i[o],n,l)}for(const o in t){if(o==="children"){s||T(e,t.children);continue}const r=t[o];i[o]=ce(e,o,r,i[o],n,l)}}function Ze(e){let t,n;return!u.context||!(t=u.registry.get(n=nt()))?e.cloneNode(!0):(u.completed&&u.completed.add(t),u.registry.delete(n),t)}function et(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function oe(e,t,n){const s=t.trim().split(/\s+/);for(let i=0,l=s.length;i-1&&Ue[t.split(":")[0]];a?Xe(e,a,t,n):L(e,Ie[t]||t,n)}return n}function tt(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),u.registry&&!u.done&&(u.done=!0,document.querySelectorAll("[id^=pl-]").forEach(s=>{for(;s&&s.nodeType!==8&&s.nodeValue!=="pl-"+e;){let i=s.nextSibling;s.remove(),s=i}s&&s.remove()}));n;){const s=n[t];if(s&&!n.disabled){const i=n[`${t}Data`];if(i!==void 0?s.call(n,i,e):s.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function T(e,t,n,s,i){for(u.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const l=typeof t,o=s!==void 0;if(e=o&&n[0]&&n[0].parentNode||e,l==="string"||l==="number"){if(u.context)return n;if(l==="number"&&(t=t.toString()),o){let r=n[0];r&&r.nodeType===3?r.data=t:r=document.createTextNode(t),n=_(e,n,s,r)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||l==="boolean"){if(u.context)return n;n=_(e,n,s)}else{if(l==="function")return P(()=>{let r=t();for(;typeof r=="function";)r=r();n=T(e,r,n,s)}),()=>n;if(Array.isArray(t)){const r=[],f=n&&Array.isArray(n);if(te(r,t,n,i))return P(()=>n=T(e,r,n,s,!0)),()=>n;if(u.context){if(!r.length)return n;for(let a=0;a=0;o--){const r=t[o];if(i!==r){const f=r.parentNode===e;!l&&!o?f?e.replaceChild(i,r):e.insertBefore(i,n):f&&r.remove()}else l=!0}}else e.insertBefore(i,n);return[i]}function nt(){const e=u.context;return`${e.id}${e.count++}`}const st="http://www.w3.org/2000/svg";function xe(e,t=!1){return t?document.createElementNS(st,e):document.createElement(e)}function Ot(e){const{useShadow:t}=e,n=document.createTextNode(""),s=e.mount||document.body;function i(){if(u.context){const[l,o]=Y(!1);return queueMicrotask(()=>o(!0)),()=>l()&&e.children}else return()=>e.children}if(s instanceof HTMLHeadElement){const[l,o]=Y(!1),r=()=>o(!0);z(f=>w(s,()=>l()?f():i()(),null)),J(()=>{u.context?queueMicrotask(r):r()})}else{const l=xe(e.isSVG?"g":"div",e.isSVG),o=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),w(o,i()),s.appendChild(l),e.ref&&e.ref(l),J(()=>s.removeChild(l))}return n}function Tt(e){const[t,n]=we(e,["component"]),s=S(()=>t.component);return S(()=>{const i=s();switch(typeof i){case"function":return N(()=>i(n));case"string":const l=qe.has(i),o=u.context?Ze():xe(i,l);return be(o,n,l),o}})}const it=g(""),lt=e=>{const[t,n]=we(e,["path"]);return(()=>{const s=it.cloneNode(!0);return be(s,De({get viewBox(){return t.path.mini?"0 0 20 20":"0 0 24 24"},get fill(){return t.path.outline?"none":"currentColor"},get stroke(){return t.path.outline?"currentColor":"none"},get["stroke-width"](){return t.path.outline?1.5:void 0}},n),!0,!0),w(s,()=>t.path.path),s})()},rt=g('',4,!0),ot=g('',4,!0),ct=g('',4,!0),at=g('',4,!0),ft=g('',4,!0),ut=g('',4,!0),dt=g('',4,!0),ht=g('',4,!0),gt=g('',4,!0),mt=g('',4,!0),pt=g('',4,!0),yt=g('',4,!0),wt=g('',4,!0),jt={path:()=>rt.cloneNode(!0),outline:!1,mini:!1},Dt={path:()=>ot.cloneNode(!0),outline:!1,mini:!1},zt={path:()=>ct.cloneNode(!0),outline:!1,mini:!1},bt={path:()=>at.cloneNode(!0),outline:!1,mini:!1},Bt={path:()=>ft.cloneNode(!0),outline:!1,mini:!1},Gt={path:()=>[ut.cloneNode(!0),dt.cloneNode(!0),ht.cloneNode(!0)],outline:!1,mini:!1},Vt={path:()=>[gt.cloneNode(!0),mt.cloneNode(!0)],outline:!1,mini:!1},Ft={path:()=>pt.cloneNode(!0),outline:!1,mini:!1},It={path:()=>yt.cloneNode(!0),outline:!1,mini:!1},Ht={path:()=>wt.cloneNode(!0),outline:!1,mini:!1},xt=g(""),ve=({to:e,rel:t,children:n,className:s,id:i,newTab:l=!0,title:o})=>(()=>{const r=xt.cloneNode(!0);return L(r,"href",e),L(r,"id",i),L(r,"title",o),L(r,"rel",`${t} ${l?"noreferrer":void 0}`),L(r,"target",l?"_blank":void 0),G(r,`link ${s}`),w(r,n),r})(),vt=g('

Av Martin Berg Alstad

'),At=({className:e,title:t})=>(()=>{const n=vt.cloneNode(!0),s=n.firstChild,i=s.firstChild;return G(n,e),w(s,O(Be,{get when(){return typeof location<"u"&&location.pathname!=="/"},keyed:!0,get children(){return O(ve,{to:"/",newTab:!1,title:"Back to homepage",get children(){return O(lt,{path:bt,class:"text-cyan-500"})}})}}),i),w(i,t),n})(),$t=g("

Kildekode på

"),Nt=({className:e})=>(()=>{const t=$t.cloneNode(!0),n=t.firstChild;return n.firstChild,G(t,`text-center py-5 absolute bottom-0 container ${e}`),w(n,O(ve,{to:"https://github.com/h600878/martials.no",children:"GitHub"}),null),t})(),St=g('
'),qt=({children:e,title:t,className:n})=>(()=>{const s=St.cloneNode(!0),i=s.firstChild,l=i.firstChild,o=l.firstChild;return G(s,`bg-default-bg text-white min-h-screen relative font-mono ${n}`),w(i,O(At,{className:"py-3",title:t}),l),w(o,e),w(l,O(Nt,{}),null),s})();export{Vt as A,Ft as B,jt as C,Tt as D,Dt as E,kt as F,zt as G,lt as I,ve as L,Ot as P,Be as S,qt as a,G as b,O as c,Re as d,Y as e,P as f,Ye as g,Ce as h,w as i,Pt as j,we as k,S as l,De as m,Lt as n,J as o,Ct as p,Bt as q,_t as r,L as s,g as t,Mt as u,Qe as v,Et as w,It as x,Ht as y,Gt as z};