1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,989955,e=>{"use strict";let t,r,s,n;var a,i=e.i(216024);function u(e){return{lang:e?.lang??t?.lang,message:e?.message,abortEarly:e?.abortEarly??t?.abortEarly,abortPipeEarly:e?.abortPipeEarly??t?.abortPipeEarly}}function o(e,t,a,i,u){var o,l,p,c;let d,f=u&&"input"in u?u.input:a.value,y=u?.expected??e.expects??null,h=u?.received??("string"==(d=typeof f)?`"${f}"`:"number"===d||"bigint"===d||"boolean"===d?`${f}`:"object"===d||"function"===d?(f&&Object.getPrototypeOf(f)?.constructor?.name)??"null":d),b={kind:e.kind,type:e.type,input:f,expected:y,received:h,message:`Invalid ${t}: ${y?`Expected ${y} but r`:"R"}eceived ${h}`,requirement:e.requirement,path:u?.path,issues:u?.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},v="schema"===e.kind,g=u?.message??e.message??(o=e.reference,l=b.lang,n?.get(o)?.get(l))??(v?(p=b.lang,s?.get(p)):null)??i.message??(c=b.lang,r?.get(c));void 0!==g&&(b.message="function"==typeof g?g(b):g),v&&(
1a.typed=!1),a.issues?a.issues.push(b):a.issues=[b]}function l(e){return{version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},u())}}var p=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function c(e,t){return{kind:"validation",type:"min_length",reference:c,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&e.value.length<this.requirement&&o(this,"length",e,t,{received:`${e.value.length}`}),e}}}function d(e,t,r){return"function"==typeof e.fallback?e.fallback(t,r):e.fallback}function f(e,t,r){return"function"==typeof e.default?e.default(t,r):e.default}function y(e,t){return{kind:"schema",type:"object",reference:y,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return l(this)},"~run"(e,t){let r=e.value;if(r&&"object"==typeof r)for(let s in e.typed=!0,e.value={},this.entries){let n=this.entries[s];if(s in r||("exact_optional"===n.type||"optional"===n.type||"nullish"===n.type)&&void 0!==n.default){let a=s in r?r[s]:f(n),i=n["~run"]({value:a},t);if(i.issues){let n={type:"object",origin:"value",input:r,key:s,value:a};for(let t of i.issues)t.path?t.path.unshift(n):t.path=[n],e.issues?.push(t);if(e.issues||(e.issues=i.issues),t.abortEarly){e.typed=!1;break}}i.typed||(e.typed=!1),e.value[s]=i.value}else if(void 0!==n.fallback)e.value[s]=d(n);else if("exact_optional"!==n.type&&"optional"!==n.type&&"nullish"!==n.type&&(o(this,"key",e,t,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:r,key:s,value:r[s]}]}),t.abortEarly))break}else o(this,"type",e,t);return e}}}function h(e,t){return{kind:"schema",type:"optional",reference:h,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return l(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=f(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function b(e){return{kind:"schema",type:"string",reference:b,expects:"string",async:!1,message:e,get"~standard"(){return l(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:o(this,"type",e,t),e}}}function v(...e){return{...e[0],pipe:e,get"~standard"(){return l(this)},"~run"(t,r){for(let s of e)if("metadata"!==s.kind){if(t.issues&&("schema"===s.kind||"transformation"===s.kind)){t.typed=!1;break}t.issues&&(r.abortEarly||r.abortPipeEarly)||(t=s["~run"](t,r))}return t}}}function g(e,t,r){let s=e["~run"]({value:t},u(r));return{typed:s.typed,success:!s.issues,output:s.value,issues:s.issues}}let k=v(b(),c(1)),m=h(k),E=y({baseUrl:k,dataset:m,id:k,path:k,projectId:m,tool:m,type:m,workspace:m,perspective:{...a=b(),fallback:"drafts",get"~standard"(){return l(this)},"~run"(e,t){let r=a["~run"](e,t);return r.issues?{typed:!0,value:d(this,r,t)}:r}}});function j(e){return!E["~run"]({value:e},{abortEarly:!0}).issues}function w(e){let t="";for(let r of e){if("string"==typeof r){t&&(t+="."),t+=r;continue}if("number"==typeof r){t&&(t+=":"),t+=`${r}`;continue}if(null!==r&&Array.isArray(r)){t&&(t+=":"),t+=`${r.join(",")}}`;continue}if(r._key){t&&(t+=":"),t+=`${r._key}`;continue}}return t}let x=/^([\w-]+):(0|[1-9][0-9]*)$/,P=/^([\w-]+):([0-9]+),([0-9]+)$/,$=/^([\w-]+):([\w-]+)$/,O=v(b(),c(1)),U=y({origin:O,href:O,data:h(function e(t,r,s){return{kind:"schema",type:"record",reference:e,expects:"Object",async:!1,key:t,value:r,message:s,get"~standard"(){return l(this)},"~run"(e,t){let r=e.value;if(r&&"object"==typeof r){for(let s in e.typed=!0,e.value={},r)if(Object.hasOwn(r,s)&&"__proto__"!==s&&"prototype"!==s&&"constructor"!==s){let n=r[s],a=this.key["~run"]({value:s},t);if(a.issues){let i={type:"object",origin:"key",input:r,key:s,value:n};for(let t of a.issues)t.path=[i],e.issues?.push(t);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}let i=this.value["~run"]({value:n},t);if(i.issues){let a={type:"object",origin:"value",input:r,key:s,value:n};for(let t of i.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||(e.issues=i.issues),t.abortEarly){e.typed=!1;break}}a.typed&&i.typed||(e.typed=!1),a.typed&&(e.value[a.value]=i.value)}}else o(this,"type",e,t);return e}}}(b(),function e(){return{kind:"schema",type:"unknown",reference:e,expects:"unknown",async:!1,get"~standard"(){return l(this)},"~run":e=>(e.typed=!0,e)}}()))});function _(e){let t=g(E,e);if(t.success)return t.output;let r=g(U,e);if(r.success)try{let e=new URL(r.output.href,typeof document>"u"?"https://example.com":location.origin);return e.searchParams.size>0?function(e,t,r){let s=e["~run"]({value:t},u(void 0));if(s.issues)throw new p(s.issues);return s.value}
1(E,Object.fromEntries(e.searchParams.entries())):r.output}catch(e){return console.error("Failed to parse sanity node",e),r.output}}function S(e){if("object"==typeof e&&null!==e)return _(e);try{let t=JSON.parse(e);return _(t)}catch{let t=e.split(";").reduce((e,t)=>{let[r,s]=t.split("=");if(!r||t.includes("=")&&!s)return e;switch(r){case"id":e.id=s;break;case"type":e.type=s;break;case"path":e.path=i.studioPath.toString(function(e){let t=[];for(let r of e.split(".")){let e=x.exec(r);if(e){t.push(e[1],Number(e[2]));continue}let s=P.exec(r);if(s){t.push(s[1],[Number(s[2]),Number(s[3])]);continue}let n=$.exec(r);if(n){t.push(n[1],{_key:n[2]});continue}t.push(r)}return t}(s));break;case"base":e.baseUrl=decodeURIComponent(s);break;case"perspective":e.perspective=s;break;case"tool":e.tool=s;break;case"workspace":e.workspace=s;break;case"projectId":e.projectId=s;break;case"dataset":e.dataset=s}return e},{});if(j(t))return t;return}}e.s(["createDataAttribute",()=>function e(t){function r(e){return e?"string"==typeof e?i.studioPath.fromString(e):e:[]}function s(e){if(!e.id)throw Error("`id` is required to create a data attribute");if(!e.type)throw Error("`type` is required to create a data attribute");if(!e.path||!e.path.length)throw Error("`path` is required to create a data attribute");return function(e){let{id:t,path:r,baseUrl:s,tool:n,workspace:a,type:u}=e;return j(e)?[["id",(0,i.getPublishedId)(t)],["type",u],["path",w(i.studioPath.fromString(r))],["base",encodeURIComponent(s)],["workspace",a],["tool",n]].filter(([,e])=>!!e).map(e=>e.join("=")).join(";"):void 0}({baseUrl:e.baseUrl||"/",workspace:e.workspace,tool:e.tool,type:e.type,id:e.id,path:"string"==typeof e.path?e.path:i.studioPath.toString(e.path),perspective:e.perspective})}let n=e=>s({...t,path:[...r(t.path),...r(e)]});return n.toString=function(){return s(t)},n.combine=function(r){return e({...t,...r})},n.scope=function(s){return e({...t,path:[...r(t.path),...r(s)]})},n},"decodeSanityNodeData",()=>S,"pathToUrlString",()=>w],989955)}]);
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.