PageSourceSearch

https://www.tekika.io/_next/static/chunks/4235.d14bb5a31ac77a01.js

js tekika.io collected 2026-10-06 20:58:06 UTC 7,179 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4235],{84235:function(e,t,r){r.r(t),r.d(t,{encodeIntoResult:function(){return encodeIntoResult},stegaEncodeSourceMap:function(){return stegaEncodeSourceMap},stegaEncodeSourceMap$1:function(){return u}});var n=r(23259);let i=/_key\s*==\s*['"](.*)['"]/;function toString(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let n=typeof t;if("number"===n)return`${e}[${t}]`;if("string"===n)return`${e}${0===r?"":"."}${t}`;if(("string"==typeof t?i.test(t.trim()):"object"==typeof t&&"_key"in t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,n]=t;return`${e}[${r}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}let o={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},l={"\\f":"\f","\\n":`
2`,"\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function parseJsonPath(e){let t;let r=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;for(;null!==(t=n.exec(e));){if(void 0!==t[1]){let e=t[1].replace(/\\(\\|f|n|r|t|')/g,e=>l[e]);r.push(e);continue}if(void 0!==t[2]){r.push(parseInt(t[2],10));continue}if(void 0!==t[3]){let e=t[3].replace(/\\(\\')/g,e=>l[e]);r.push({_key:e,_index:-1});continue}}return r}function jsonPathToStudioPath(e){return e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})}function isRecord(e){return"object"==typeof e&&null!==e}function encodeIntoResult(e,t,r){return function walkMap(e,t,r=[]){return null!==e&&Array.isArray(e)?e.map((e,n)=>{if(isRecord(e)){let i=e._key;if("string"==typeof i)return walkMap(e,t,r.concat({_key:i,_index:n}))}return walkMap(e,t,r.concat(n))}):isRecord(e)?Object.fromEntries(Object.entries(e).map(([e,n])=>[e,walkMap(n,t,r.concat(e))])):t(e,r)}(e,(e,n)=>{if("string"!=typeof e)return e;let i=function(e,t){var r;if(!(null!=t&&t.mappings))return;let n=(r=e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)}),`$${r.map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>o[e])}']`:"number"==typeof e?`[${e}]`:""!==e._key?`[?(@._key=='${e._key.replace(/['\\]/g,e=>o[e])}')]`:`[${e._index}]`).join("")}`);if(void 0!==t.mappings[n])return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};let i=Object.entries(t.mappings).filter(([e])=>n.startsWith(e)).sort(([e],[t])=>t.length-e.length);if(0==i.length)return;let[l,a]=i[0],s=n.substring(l.length);return{mapping:a,matchedPath:l,pathSuffix:s}}(n,t);if(!i)return e;let{mapping:l,matchedPath:a}=i;if("value"!==l.type||"documentValue"!==l.source.type)return e;let s=t.documents[l.source.document],u=t.paths[l.source.path],p=parseJsonPath(a),c=parseJsonPath(u).concat(n.slice(p.length));return r({sourcePath:c,sourceDocument:s,resultPath:n,value:e})})}let a="drafts.",filterDefault=({sourcePath:e,resultPath:t,value:r})=>{if(/^\d{4}-\d{2}-\d{2}/.test(r)&&Date.parse(r)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(r))return!1;let n=e.at(-1);return!("slug"===e.at(-2)&&"current"===n||"string"==typeof n&&n.startsWith("_")||"number"==typeof n&&"marks"===e.at(-2)||"href"===n&&"number"==typeof e.at(-2)&&"markDefs"===e.at(-3)||"style"===n||"listItem"===n||e.some(e=>"meta"===e||"metadata"===e||"openGraph"===e||"seo"===e)||hasTypeLike(e)||hasTypeLike(t)||"string"==typeof n&&s.has(n))},s=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","unit","url","username","variant","website"]);function hasTypeLike(e){return e.some(e=>"string"==typeof e&&null!==e.match(/type/i))}function stegaEncodeSourceMap(e,t,r){var o,l,s,u,p,c,f,d,h;let{filter:g,logger:y,enabled:m}=r;if(!m){let n="config.enabled must be true, don't call this function otherwise";throw null==(o=null==y?void 0:y.error)||o.call(y,`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),TypeError(n)}if(!t)return null==(l=null==y?void 0:y.error)||l.call(y,"[@sanity/client]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:r}),e;if(!r.studioUrl){let n="config.studioUrl must be defined";throw null==(s=null==y?void 0:y.error)||s.call(y,`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),TypeError(n)}let k={encoded:[],skipped:[]},$=encodeIntoResult(e,t,({sourcePath:e,sourceDocument:t,resultPath:i,value:o})=>{var l;let s;if(("function"==typeof g?g({sourcePath:e,resultPath:i,filterDefault,sourceDocument:t,value:o}):filterDefault({sourcePath:e,resultPath:i,filterDefault,sourceDocument:t,value:o}))===!1)return y&&k.skipped.push({path:toString(jsonPathToStudioPath(e)),value:`${o.slice(0,20)}${o.length>20?"...":""}`,length:o.length}),o;y&&k.encoded.push({path:toString(jsonPathToStudioPath(e)),value:`${o.slice(0,20)}${o.length>20?"...":""}`,length:o.length});let{baseUrl:u,workspace:p,tool:c}
2=("/"!==(s="string"==typeof(l="function"==typeof r.studioUrl?r.studioUrl(t):r.studioUrl)?l:l.baseUrl)&&(s=s.replace(/\/$/,"")),"string"==typeof l?{baseUrl:s}:{...l,baseUrl:s});if(!u)return o;let{_id:f,_type:d,_projectId:h,_dataset:m}=t;return(0,n.C)(o,{origin:"sanity.io",href:function(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:o,path:l,projectId:s,dataset:u}=e;if(!t)throw Error("baseUrl is required");if(!l)throw Error("path is required");if(!i)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let p="default"===r?void 0:r,c="default"===n?void 0:n,f=i.startsWith(a)?i.slice(a.length):i,d=Array.isArray(l)?toString(jsonPathToStudioPath(l)):l,h=new URLSearchParams({baseUrl:t,id:f,type:o,path:d});p&&h.set("workspace",p),c&&h.set("tool",c),s&&h.set("projectId",s),u&&h.set("dataset",u),i.startsWith(a)&&h.set("isDraft","");let g=["/"===t?"":t];p&&g.push(p);let y=["mode=presentation",`id=${f}`,`type=${o}`,`path=${encodeURIComponent(d)}`];return c&&y.push(`tool=${c}`),g.push("intent","edit",`${y.join(";")}?${h}`),g.join("/")}({baseUrl:u,workspace:p,tool:c,id:f,type:d,path:e,...!r.omitCrossDatasetReferenceData&&{dataset:m,projectId:h}})},!1)});if(y){let e=k.skipped.length,t=k.encoded.length;if((e||t)&&(null==(u=(null==y?void 0:y.groupCollapsed)||y.log)||u("[@sanity/client]: Encoding source map into result"),null==(p=y.log)||p.call(y,`[@sanity/client]: Paths encoded: ${k.encoded.length}, skipped: ${k.skipped.length}`)),k.encoded.length>0&&(null==(c=null==y?void 0:y.log)||c.call(y,"[@sanity/client]: Table of encoded paths"),null==(f=(null==y?void 0:y.table)||y.log)||f(k.encoded)),k.skipped.length>0){let e=new Set;for(let{path:t}of k.skipped)e.add(t.replace(i,"0").replace(/\[\d+\]/g,"[]"));null==(d=null==y?void 0:y.log)||d.call(y,"[@sanity/client]: List of skipped paths",[...e.values()])}(e||t)&&(null==(h=null==y?void 0:y.groupEnd)||h.call(y))}return $}var u=Object.freeze({__proto__:null,stegaEncodeSourceMap})}}]);

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.