PageSourceSearch

https://www.skog.no/_astro/FrontpageHeader.astro_astro_type_script…?dpl=6ab279c537a2160008faab7d

js skog.no collected 2026-09-24 19:40:52 UTC 8,636 bytes, 1 lines download raw bytes

1import{$ as e,Ct as t,F as n,Ft as r,H as i,J as a,L as o,M as s,Mt as c,P as l,Q as u,R as d,S as f,X as p,Y as ee,Z as te,et as m,ft as h,j as g,jt as _,n as v,o as y,t as b,vt as x,xt as S}from"./single-value.CpJmbYf3.js?dpl=6ab279c537a2160008faab7d";var C=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function w(e,t){return h(e)?e[C(0,e.length,t)]:e}var T=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return E(this.animations,`duration`)}get iterationDuration(){return E(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function E(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var D=class extends T{then(e,t){return this.finished.finally(e).then(()=>{})}};function O(e,t){return e in t}var k=class extends f{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(O(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return s()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function A(e){return typeof e==`object`&&!Array.isArray(e)}function j(e,t,n,r){return e==null?[]:typeof e==`string`&&A(t)?o(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function M(e,t,n){return e*(t+1)+n*t}function N(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function P(e,t,n){for(let i=0;i<e.length;i++){let a=e[i];a.at>t&&a.at<n&&(r(e,a),i--)}}function F(e,t,n,r,i,a){P(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:m(i,a,r[o]),easing:w(n,o)})}function ne(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function re(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var ie=`easeInOut`,I=20;function L(n,{defaultTransition:r={},...a}={},o,s){let l=r.duration||.3,u=new Map,d=new Map,f={},m=new Map,h=0,g=0,_=0;for(let t=0;t<n.length;t++){let a=n[t];if(typeof a==`string`){m.set(a,g);continue}else if(!Array.isArray(a)){m.set(a.name,N(g,a.at,h,m));continue}let[u,v,y={}]=a;y.at!==void 0&&(g=N(g,y.at,h,m));let b=0,C=(t,n,i,a=0,o=0)=>{let u=B(t),{delay:d=0,times:f=p(u),type:m=r.type||`keyframes`,repeat:h,repeatType:v,repeatDelay:y=0,...C}=n,{ease:T=r.ease||`easeOut`,duration:E}=n,D=typeof d==`function`?d(a,o):d,O=u.length,k=ee(m)?m:s?.[m||`keyframes`];if(O<=2&&k){let t=100;if(O===2&&U(u)){let e=u[1]-u[0];t=Math.abs(e)}let n={...r,...C};E!==void 0&&(n.duration=S(E));let i=e(n,t,k);T=i.ease,E=i.duration}E??=l;let A=g+D;f.length===1&&f[0]===0&&(f[1]=1);let j=f.length-u.length;if(j>0&&te(f,j),u.length===1&&u.unshift(null),h&&c(h<I,`Sequence segments can't repeat ${h} times — ignoring repeat option. Use a value below ${I} or apply repeat at the sequence level instead.`),h&&h<I){let e=E>0?y/E:0;E=M(E,h,y);let t=[...u],n=[...f];T=Array.isArray(T)?[...T]:[T];let r=[...T],i=v===`reverse`||v===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),v===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?x(e):e)));for(let s=0;s<h;s++){let c=i&&s%2==0,l=c?a:t,d=c?o:r,p=(s+1)*(1+e);e>0&&(u.push(u[u.length-1]),f.push(p),T.push(`linear`)),u.push(...l);for(let e=0;e<l.length;e++)f.push(n[e]+p),T.push(e===0?`linear`:w(d,e-1))}ne(f,h,e)}let N=A+E;F(i,u,T,f,A,N),b=Math.max(D+E,b),_=Math.max(N,_)};if(i(u)){let e=R(u,d);C(v,y,z(`default`,e))}else{let e=j(u,v,o,f),t=e.length;for(let n=0;n<t;n++){v=v,y=y;let r=e[n],i=R(r,d);for(let e in v)C(v[e],V(y,e),z(e,i),n,t)}}h=g,g+=b}return d.forEach((e,n)=>{for(let i in e){let o=e[i];o.sort(re);let s=[],c=[],l=[];for(let e=0;e<o.length;e++){let{at:n,value:r,easing:i}=o[e];s.push(r),c.push(t(0,_,n)),l.push(i||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(ie)),c[c.length-1]!==1&&(c.push(1),s.push(null)),u.has(n)||u.set(n,{keyframes:{},transition:{}});let d=u.get(n);d.keyframes[i]=s;let{type:f,...p}=r;d.transition[i]={...p,duration:_,ease:l,times:c,...a}}}),u}function R(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function z(e,t){return t[e]||(t[e]=[]),t[e]}function B(e){return Array.isArray(e)?e:[e]}function V(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var H=e=>typeof e==`number`,U=e=>e.every(H);function W(e){let t={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=n(e)&&!l(e)?new v(t):new y(t);r.mount(e),g.set(e,r)}function G(e){let t=new k({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),g.set(e,t)}function K(e,t){return i(e)||typeof e==`number`||typeof e==`string`&&!A(t)}function q(e,t,n,r){let i=[];if(K(e,t))i.push(b(e,A(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=j(e,t,r),o=a.length;_(!!o,`No valid elements provided.`,`no-valid-elements`);for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?W:G;g.has(r)||s(r);let c=g.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...d(c,{...t,transition:l},{}))}}return i}function J(e,t,n){let r=[];return L(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=a(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:u}).forEach(({keyframes:e,transition:t},n)=>{r.push(...q(n,e,t))}),r}function ae(e){return Array.isArray(e)&&e.some(Array.isArray)}function oe(e={}){let{scope:t,reduceMotion:n,skipAnimations:i}=e;function a(e,a,o){let s=[],c,l={};if(n!==void 0&&(l.reduceMotion=n),i!==void 0&&(l.skipAnimations=i),ae(e)){let{onComplete:n,...r}=a||{};typeof n==`function`&&(c=n),s=J(e,{...l,...r},t)}else{let{onComplete:n,...r}=o||{};typeof n==`function`&&(c=n),s=q(e,a,{...l,...r},t)}let u=new D(s);return c&&u.finished.then(c),t&&(t.animations.push(u),u.finished.then(()=>{r(t.animations,u)})),u}return a}var se=oe(),ce=window.matchMedia(`(prefers-reduced-motion: reduce)`);function le(e={}){return ce.matches?{...e,duration:.01}:e}var Y=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,X=[],Z=!1;function ue(e){let t=[...e.querySelectorAll(`.slide`)],n=[...e.querySelectorAll(`.dot`)];if(t.length<2)return null;let r=new AbortController,{signal:i}=r,a=0,o=null,s=e=>{Y||e.querySelectorAll(`[data-anim]`).forEach((e,t)=>{se(e,{opacity:[0,1],transform:[`translateY(8px)`,`translateY(0)`]},le({duration:.3,delay:t*.055}))})},c=e=>{if(e===a)return;let r=t[a];r.removeAttribute(`data-active`),r.inert=!0,n[a]?.removeAttribute(`data-active`),a=e;let i=t[a];i.setAttribute(`data-active`,``),i.inert=!1,n[a]?.setAttribute(`data-active`,``),s(i)},l=e=>c((a+e+t.length)%t.length),u=()=>{Y||o||(o=setInterval(()=>l(1),5e3))},d=()=>{o&&clearInterval(o),o=null},f=()=>{d(),u()};return n.forEach((e,t)=>e.addEventListener(`click`,()=>{c(t),f()},{signal:i})),e.querySelector(`[data-dir="prev"]`)?.addEventListener(`click`,()=>{l(-1),f()},{signal:i}),e.querySelector(`[data-dir="next"]`)?.addEventListener(`click`,()=>{l(1),f()},{signal:i}),e.addEventListener(`mouseenter`,d,{signal:i}),e.addEventListener(`mouseleave`,u,{signal:i}),e.addEventListener(`focusin`,d,{signal:i}),e.addEventListener(`focusout`,u,{signal:i}),u(),()=>{d(),r.abort()}}var Q=window.matchMedia(`(min-width: 768px)`);function de(e){let t=Q.matches?`.shape-d`:`.shape-m`;e.querySelectorAll(`${t} image[data-href]`).forEach(e=>{e.setAttribute(`href`,e.dataset.href),delete e.dataset.href})}function $(){document.querySelectorAll(`.frontpage-header`).forEach(de)}function fe(){$(),document.querySelectorAll(`.frontpage-header`).forEach(e=>{let t=ue(e);t&&X.push(t)})}function pe(){for(let e of X)e();X=[]}Z||(Z=!0,document.addEventListener(`astro:page-load`,fe),document.addEventListener(`astro:before-swap`,pe),Q.addEventListener(`change`,$));

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.