PageSourceSearch

https://www.noereh.no/_next/static/chunks/5490.5455523cbd40adb3.js

js noereh.no collected 2026-10-08 04:31:36 UTC 7,829 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5490],{5490:(t,e,n)=>{n.r(e),n.d(e,{encodeIntoResult:()=>p,stegaEncodeSourceMap:()=>b,stegaEncodeSourceMap$1:()=>v});var r=n(24396);let o=/_key\s*==\s*['"](.*)['"]/;function i(t){if(!Array.isArray(t))throw Error("Path is not an array");return t.reduce((t,e,n)=>{let r=typeof e;if("number"===r)return"".concat(t,"[").concat(e,"]");if("string"===r)return"".concat(t).concat(0===n?"":".").concat(e);if(("string"==typeof e?o.test(e.trim()):"object"==typeof e&&"_key"in e)&&e._key)return"".concat(t,'[_key=="').concat(e._key,'"]');if(Array.isArray(e)){let[n,r]=e;return"".concat(t,"[").concat(n,":").concat(r,"]")}throw Error("Unsupported path segment `".concat(JSON.stringify(e),"`"))},"")}let a={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},l={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function c(t){let e,n=[],r=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;for(;null!==(e=r.exec(t));){if(void 0!==e[1]){let t=e[1].replace(/\\(\\|f|n|r|t|')/g,t=>l[t]);n.push(t);continue}if(void 0!==e[2]){n.push(parseInt(e[2],10));continue}if(void 0!==e[3]){let t=e[3].replace(/\\(\\')/g,t=>l[t]);n.push({_key:t,_index:-1});continue}}return n}function s(t){return t.map(t=>{if("string"==typeof t||"number"==typeof t)return t;if(""!==t._key)return{_key:t._key};if(-1!==t._index)return t._index;throw Error("invalid segment:".concat(JSON.stringify(t)))})}function u(t){return t.map(t=>{if("string"==typeof t||"number"==typeof t)return t;if(-1!==t._index)return t._index;throw Error("invalid segment:".concat(JSON.stringify(t)))})}function p(t,e,n){return function t(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null!==e&&Array.isArray(e))return e.map((e,i)=>{if((0,r.u4)(e)){let r=e._key;if("string"==typeof r)return t(e,n,o.concat({_key:r,_index:i}))}return t(e,n,o.concat(i))});if((0,r.u4)(e)){if("block"===e._type||"span"===e._type){let r={...e};return"block"===e._type?r.children=t(e.children,n,o.concat("children")):"span"===e._type&&(r.text=t(e.text,n,o.concat("text"))),r}return Object.fromEntries(Object.entries(e).map(e=>{let[r,i]=e;return[r,t(i,n,o.concat(r))]}))}return n(e,o)}(t,(t,r)=>{if("string"!=typeof t)return t;let o=function(t,e){var n;if(!(null==e?void 0:e.mappings))return;let r=(n=u(t),"$".concat(n.map(t=>"string"==typeof t?"['".concat(t.replace(/[\f\n\r\t'\\]/g,t=>a[t]),"']"):"number"==typeof t?"[".concat(t,"]"):""!==t._key?"[?(@._key=='".concat(t._key.replace(/['\\]/g,t=>a[t]),"')]"):"[".concat(t._index,"]")).join("")));if(void 0!==e.mappings[r])return{mapping:e.mappings[r],matchedPath:r,pathSuffix:""};let o=u(t).map(t=>"string"==typeof t?"['".concat(t.replace(/[\f\n\r\t'\\]/g,t=>a[t]),"']"):"number"==typeof t?"[".concat(t,"]"):""!==t._key?"[?(@._key=='".concat(t._key.replace(/['\\]/g,t=>a[t]),"')]"):"[".concat(t._index,"]"));for(let t=o.length-1;t>=0;t--){let n="$".concat(o.slice(0,t).join("")),i=e.mappings[n];if(i){let t=r.substring(n.length);return{mapping:i,matchedPath:n,pathSuffix:t}}}}(r,e);if(!o)return t;let{mapping:i,matchedPath:l}=o;if("value"!==i.type||"documentValue"!==i.source.type)return t;let s=e.documents[i.source.document],p=e.paths[i.source.path],f=c(l);return n({sourcePath:c(p).concat(r.slice(f.length)),sourceDocument:s,resultPath:r,value:t})})}let f="".concat("drafts","."),d="".concat("versions",".");function h(t){return t.startsWith(f)}function g(t){return t.startsWith(d)}let y=t=>{let{sourcePath:e,resultPath:n,value:r}=t;if(function(t){return!!/^\d{4}-\d{2}-\d{2}/.test(t)&&!!Date.parse(t)}(r)||function(t){try{let{protocol:e}=new URL(t,t.startsWith("/")?"https://acme.com":void 0);return _.has(e)||e.startsWith("web+")}catch(t){return!1}}(r))return!1;let o=e.at(-1);return!("slug"===e.at(-2)&&"current"===o||"string"==typeof o&&(o.startsWith("_")||o.endsWith("Id"))||e.some(t=>"meta"===t||"metadata"===t||"openGraph"===t||"seo"===t)||k(e)||k(n)||"string"==typeof o&&m.has(o))},m=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","textTheme","unit","url","username","variant","website"]),_=new Set(["app:","data:","discord:","file:","ftp:","ftps:","geo:","http:","https:","imap:","javascript:","magnet:","mailto:","maps:","ms-excel:","ms-powerpoint:","ms-word:","slack:","sms:","spotify:","steam:","teams:","tel:","vscode:","zoom:"]);function k(t){return t.some(t=>"string"==typeof t&&null!==t.match(/type/i))}function b(t,e,n){var a,l,c,u,d,m,_,k,b;let{filter:v,logger:w,enabled:x}=n;if(!x){let r="config.enabled must be true, don't call this function otherwise";throw null==w||null==(l=w.error)||l.call(w,"[@sanity/client]: ".concat(r),{result:t,resultSourceMap:e,config:n}),TypeError(r)}if(!e)return null==w||null==(a=w.error)||a.call(w,"[@sanity/client]: Missing Content Source Map from response body",{result:t,resultSourceMap:e,config:n}),t;if(!n.studioUrl){let r="config.studioUrl must be defined";
1throw null==w||null==(c=w.error)||c.call(w,"[@sanity/client]: ".concat(r),{result:t,resultSourceMap:e,config:n}),TypeError(r)}let E=[],j=[],U=p(t,e,t=>{var e;let o,{sourcePath:a,sourceDocument:l,resultPath:c,value:u}=t;if(("function"==typeof v?v({sourcePath:a,resultPath:c,filterDefault:y,sourceDocument:l,value:u}):y({sourcePath:a,resultPath:c,value:u}))===!1)return w&&j.push({path:i(s(a)),value:"".concat(u.slice(0,20)).concat(u.length>20?"...":""),length:u.length}),u;w&&E.push({path:i(s(a)),value:"".concat(u.slice(0,20)).concat(u.length>20?"...":""),length:u.length});let{baseUrl:p,workspace:d,tool:m}=("/"!==(o="string"==typeof(e="function"==typeof n.studioUrl?n.studioUrl(l):n.studioUrl)?e:e.baseUrl)&&(o=o.replace(/\/$/,"")),"string"==typeof e?{baseUrl:o}:{...e,baseUrl:o});if(!p)return u;let{_id:_,_type:k,_projectId:b,_dataset:x}=l;return(0,r.y)(u,{origin:"sanity.io",href:function(t){let{baseUrl:e,workspace:n="default",tool:r="default",id:o,type:a,path:l,projectId:c,dataset:u}=t;if(!e)throw Error("baseUrl is required");if(!l)throw Error("path is required");if(!o)throw Error("id is required");if("/"!==e&&e.endsWith("/"))throw Error("baseUrl must not end with a slash");let p="default"===n?void 0:n,d="default"===r?void 0:r,y=g(o)?o.split(".").slice(2).join("."):h(o)?o.slice(f.length):o,m=Array.isArray(l)?i(s(l)):l,_=new URLSearchParams({baseUrl:e,id:y,type:a,path:m});if(p&&_.set("workspace",p),d&&_.set("tool",d),c&&_.set("projectId",c),u&&_.set("dataset",u),h(o)||g(o)){if(g(o)){let t=function(t){if(!g(t))return;let[e,n]=t.split(".");return n}(o);_.set("perspective",t)}}else _.set("perspective","published");let k=["/"===e?"":e];p&&k.push(p);let b=["mode=presentation","id=".concat(y),"type=".concat(a),"path=".concat(encodeURIComponent(m))];return d&&b.push("tool=".concat(d)),k.push("intent","edit","".concat(b.join(";"),"?").concat(_)),k.join("/")}({baseUrl:p,workspace:d,tool:m,id:_,type:k,path:a,...!n.omitCrossDatasetReferenceData&&{dataset:x,projectId:b}})},!1)});if(w){let t=j.length,e=E.length;if((t||e)&&(null==(u=(null==w?void 0:w.groupCollapsed)||w.log)||u("[@sanity/client]: Encoding source map into result"),null==(d=w.log)||d.call(w,"[@sanity/client]: Paths encoded: ".concat(E.length,", skipped: ").concat(j.length))),E.length>0&&(null==w||null==(m=w.log)||m.call(w,"[@sanity/client]: Table of encoded paths"),null==(_=(null==w?void 0:w.table)||w.log)||_(E)),j.length>0){let t=new Set;for(let{path:e}of j)t.add(e.replace(o,"0").replace(/\[\d+\]/g,"[]"));null==w||null==(b=w.log)||b.call(w,"[@sanity/client]: List of skipped paths",[...t.values()])}(t||e)&&(null==w||null==(k=w.groupEnd)||k.call(w))}return U}var v=Object.freeze({__proto__:null,stegaEncodeSourceMap:b})}}]);

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.