1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,97552,e=>{"use strict";var t=e.i(886867),r=e.i(69855),i=e.i(693363),o=e.i(778415),n=e.i(235658);let s="217hjbx8",a="production",u=(0,i.createClient)({projectId:s,dataset:a,apiVersion:"2025-02-19",useCdn:"phase-production-build"===t.default.env.NEXT_PHASE,perspective:"published",stega:!1,token:void 0}),l=(0,o.createImageUrlBuilder)({projectId:s,dataset:a});async function d(e,t,r){try{let i={lang:"en",...t??{}},o=await u.fetch(e,i,r);return function e(t){if(null==t)return t;let r=typeof t;if("string"===r)return(0,n.stegaClean)(t);if(Array.isArray(t))return t.map(e);if("object"===r){let r={};for(let i in t)r[i]=e(t[i]);return r}return t}(o)}catch(e){throw console.error("[sanityFetch] ERROR:",e),e}}let c=(0,r.cache)(async(t,r)=>{let{getSiteSettingsQuery:i}=await e.A(952058),{getPreviewOptions:o}=await e.A(253911),n=t?await o(t):{next:{revalidate:86400,tags:["siteSettings"]}};return await d(i,r?{lang:r}:{},n)});e.s(["client",0,u,"getCachedSiteSettings",0,c,"sanityFetch",0,d,"urlForImage",0,function(e){let t=!!(e?.hotspot||e?.crop),r=!!(e?.asset?._ref||e?._ref||e?.asset?._id||e?._id);if(t&&r)try{return l.image(e)}catch{}let i=e?.asset?.url||("string"==typeof e&&e.startsWith("http")?e:void 0);if(i&&!t){let e={width:()=>e,height:()=>e,auto:()=>e,quality:()=>e,fit:()=>e,url:()=>i};return e}if(r)try{return l.image(e)}catch{}let o={width:()=>o,height:()=>o,auto:()=>o,quality:()=>o,fit:()=>o,url:()=>i||""};return o}])},833670,e=>{"use strict";function t(e){return"https://www.sanity.io/help/"+e}let r=["image","file"],i=["before","after","replace"],o=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},n=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},s=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},a=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:i}=t;switch(r){case"dataset":if(2!==i.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"knowledge-base":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${r.toString()}`)}},u=e=>{var t;let r,i;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(i=t(...e),r=!0),i)},l=u(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),d=u(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),c=u(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),h=u(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),f=u(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${t("js-client-browser-token")} for more information and how to hide this warning.`]),p=u(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),m=u(["Using the Sanity client without specifying an API version is deprecated.",`See ${t("js-client-api-version")}`]),y=u(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),g=u(["You have called `createVersion()` with a defined `document`.","If you are creating a version of a document that already exists, prefer providing `baseId` and `releaseId` instead."]),w=u(["The `uri` request option has been renamed to `url`.","Please update your co
1de to use `url` instead. Support for `uri` will be removed in a future version."]),b=u(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),v={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},$=["localhost","127.0.0.1","0.0.0.0"];function E(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}e.s(["_",0,n,"a",0,g,"b",0,(e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)},"c",0,h,"d",0,s,"f",0,(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);n(e,t._id)},"g",0,e=>{if(-1===r.indexOf(e))throw Error(`Invalid asset type: ${e}. Must be one of ${r.join(", ")}`)},"h",0,(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},"i",0,c,"l",0,o,"m",0,a,"n",0,(e,r)=>{let i,n={...r,...e,stega:{..."boolean"==typeof r.stega?{enabled:r.stega}:r.stega||v.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||m();let u={...v,...n,apiHost:n.apiHost??v.apiHost};u["~experimental_resource"]&&!u.resource&&(b(),u.resource=u["~experimental_resource"]);let c=u.resource,h=u.useProjectHostname&&!c;if(typeof Promise>"u"){let e=t("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(h&&!u.projectId)throw Error("Configuration must contain `projectId`");if(c&&a(u),void 0!==u.perspective&&E(u.perspective),"encodeSourceMap"in u)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in u)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if("boolean"!=typeof u.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${u.stega.enabled}`);if(u.stega.enabled&&void 0===u.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(u.stega.enabled&&"string"!=typeof u.stega.studioUrl&&"function"!=typeof u.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${u.stega.studioUrl}`);let y="u">typeof window&&window.location&&window.location.hostname,g=y&&(i=window.location.hostname,-1!==$.indexOf(i)),w=!!u.token;u.withCredentials&&w&&(p(),u.withCredentials=!1),y&&g&&w&&!0!==u.ignoreBrowserTokenWarning?f():void 0===u.useCdn&&d(),h&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(u.projectId),u.dataset&&o(u.dataset),"requestTagPrefix"in u&&(u.requestTagPrefix=u.requestTagPrefix?s(u.requestTagPrefix).replace(/\.+$/,""):void 0),u.apiVersion=`${u.apiVersion}`.replace(/^v/,""),u.isDefaultApi=u.apiHost===v.apiHost,!0===u.useCdn&&u.withCredentials&&l(),u.useCdn=!1!==u.useCdn&&!u.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(u.apiVersion);let T=u.apiHost.split("://",2),O=T[0],I=T[1],x=u.isDefaultApi?"apicdn.sanity.io":I;return h?(u.url=`${O}://${u.projectId}.${I}/v${u.apiVersion}`,u.cdnUrl=`${O}://${u.projectId}.${x}/v${u.apiVersion}`):(u.url=`${u.apiHost}/v${u.apiVersion}`,u.cdnUrl=u.url),u},"o",0,w,"p",0,(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);var r=t._type;if("string"!=typeof r)throw Error(`\`${e}()\`: \`${r}\` is not a valid document type`)},"r",0,E,"s",0,y,"t",0,v,"u",0,e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},"v",0,(e,t,r)=>{let o="insert(at, selector, items)";if(-1===i.indexOf(e)){let e=i.map(e=>`"${e}"`).join(", ");throw Error(`${o} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${o} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${o} takes an "items"-argument which must be an array`)},"y",0,(e,t)=>{if("object"!=typeof t||!t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)}])},345260,697384,414518,e=>{"use strict";let t;var r=e.i(205224);function i(e){if("function"==typeof AbortSignal.any)return AbortSignal.any(e);let t=new AbortController;for(let r of e)if(r.aborted)return t.abort(r.reason),t.signal;let r=()=>{for(let i of(t.abort(e.find(e=>e.aborted)?.reason),e))i.removeEventListener("abort",r)};for(let t of e)t.addEventListener("abort",r);return t.signal}
1var o=class extends Error{constructor(e){let t=e.url.length>400?e.url.slice(0,399)+"â¦":e.url;super(`${e.method}-request to ${t} resulted in HTTP ${e.status} ${e.statusText}`),this.name="HttpError",this.url=e.url,this.method=e.method,this.status=e.status,this.statusText=e.statusText,this.headers=e.headers,this.body=e.body,this.response=e.response}},n=class extends Error{constructor(e){let t=e.url.length>400?e.url.slice(0,399)+"â¦":e.url;super(`Request timed out after ${e.timeoutMs}ms waiting for response headers: ${e.method} ${t}`),this.name="TimeoutError",this.url=e.url,this.method=e.method,this.timeoutMs=e.timeoutMs,this.phase=e.phase,this.code="ETIMEDOUT"}};function s(e,r,i,o,n,s){let a,u;return{status:e,statusText:r,headers:i,url:n,redirected:s,body:o,text:()=>a??=(t??=new TextDecoder).decode(o),json(){return(u??={value:JSON.parse(this.text())}).value},bytes:()=>o}}function a(e){let t=e?.fetch,r=e?.base,o=e?.httpErrors,a=e?.timeout,w=e?.credentials,b=e?.middleware??[],v=[],$=[];for(let e of b)"object"==typeof e?v.push(e):$.push(e);async function E(e,t){var r,o,s;let d,c,{totalMs:h,headersMs:f,attachSignal:p}="number"==typeof(r=void 0===t.timeout?a:t.timeout)||!1===r?{totalMs:u(r),headersMs:void 0,attachSignal:!0}:{totalMs:r?.total===void 0?12e4:u(r.total),headersMs:u(r?.headers),attachSignal:r?.signal!==!1},{url:m,init:y,clearTotalTimer:g}=function(e,t,r){let o=e.url;if(e.query){let t=e.query instanceof URLSearchParams?e.query.entries():Object.entries(e.query),r=new URLSearchParams;for(let[e,i]of t)void 0!==i&&r.append(e,`${i}`);let i=r.toString();if(i){let e=o.indexOf("#"),t=-1===e?o:o.slice(0,e),r=-1===e?"":o.slice(e);o=`${t}${t.includes("?")?"&":"?"}${i}${r}`}}let n=new Headers(e.headers),s={};if(e.method&&(s.method=e.method),e.method||void 0===e.body||null===e.body||(s.method="POST"),void 0!==e.body&&null!==e.body)if("string"==typeof e.body)s.body=e.body;else if(function(e){if("object"!=typeof e||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e.body)||Array.isArray(e.body))s.body=JSON.stringify(e.body),n.has("content-type")||n.set("content-type","application/json");else{var a;if((a=e.body)instanceof Blob||a instanceof ArrayBuffer||a instanceof ReadableStream||ArrayBuffer.isView(a)||a instanceof FormData||a instanceof URLSearchParams)s.body=e.body;else throw TypeError(`Unsupported body type: ${typeof e.body}`)}s.headers=n;let u=e.signal,d;if(void 0!==t){let e=new AbortController,r=setTimeout(()=>e.abort(new DOMException("The operation was aborted due to timeout","TimeoutError")),t);l(r),d=()=>clearTimeout(r),u=u?i([u,e.signal]):e.signal}u&&(s.signal=u);let c=e.credentials??r;return void 0!==c&&(s.credentials=c),e.redirect&&(s.redirect=e.redirect),{url:o,init:s,clearTotalTimer:d}}(t,p?h:void 0,w),b=y.method??"GET",v=p||void 0===h?void 0:(o=h,s=new DOMException("The operation was aborted due to timeout","TimeoutError"),(c=new Promise((e,t)=>{l(d=setTimeout(()=>t(s),o))})).catch(()=>{}),{deadline:c,clear:()=>clearTimeout(d)}),$=v?.deadline,E=()=>{g?.(),v?.clear()};if(void 0===f&&void 0===$)try{return{response:await e(m,y),url:m,method:b,totalDeadline:$,clearDeadline:E}}catch(e){throw E(),e}let T=void 0===$?[]:[$],O,I;if(void 0!==f){let e=new n({url:m,method:b,timeoutMs:f,phase:"headers"});I=p?new AbortController:void 0,T.push(new Promise((t,r)=>{O=setTimeout(()=>{r(e),I?.abort(e)},f)}))}let x=I&&y.signal?i([y.signal,I.signal]):I?.signal??y.signal,A;try{return A=Promise.resolve(e(m,I?{...y,signal:x}:y)),{response:await Promise.race([A,...T]),url:m,method:b,totalDeadline:$,clearDeadline:E}}catch(e){throw A?.then(e=>e.body?.cancel()).catch(()=>{}),E(),e}finally{clearTimeout(O)}}async function T(e){let{response:r,url:i,method:n,totalDeadline:s,clearDeadline:a}=await E(e.fetch??t??globalThis.fetch,e),u=e.httpErrors??o??!0;try{return await d(h(r,u,i,n),s)}finally{a()}}let O=f(T,$);async function I(e){let t=p(e,v),r=m(await O(t),t,v);try{return y(r,JSON.parse(r.text()))}catch(t){throw TypeError(`Failed to parse JSON response from ${e.url}: ${t instanceof Error?t.message:t}`,{cause:t})}}async function x(e){let t=p(e,v),r=m(await O(t),t,v);return y(r,r.text())}async function A(e){let r=p(e,v),i;async function n(e){let{response:r,url:n,method:a,totalDeadline:u,clearDeadline:l}=await E(e.fetch??t??globalThis.fetch,e),c=e.httpErrors??o??!0;if(c&&r.status>=400)try{return await d(h(r,c,n,a),u)}finally{l()}return void 0!==u&&l(),i=r,s(r.status,r.statusText,r.headers,new Uint8Array,r.url,r.redirected)}if(g(n,"getItStreamed"),await f(n,$)(r),!i)throw Error("Stream response was not captured");let a=i.body??new ReadableStream({start(e){e.close()}});return y(i,a)}async function C(t){var i,o;let n,s,a="string"==typeof t?{url:t}:t,u=a.url;r&&!/^https?:\/\//.test(u)&&(u=r.replace(/\/$/,"")+"/"+u.replace(/^\//,""));let l={...a,url:u,headers:(i=e?.headers,o=a.headers,n=new Headers(i?c(i):void 0),o&&new Headers(c(o)).forEac
1h((e,t)=>{n.set(t,e)}),s={},n.forEach((e,t)=>{s[t]=e}),s)};switch(l.as??e?.as){case"json":return await I(l);case"text":return await x(l);case"stream":return await A(l);default:{let e=p(l,v);return m(await O(e),e,v)}}}return g(E,"performFetch"),g(T,"getItBuffered"),g(A,"requestStream"),g(I,"requestJson"),g(x,"requestText"),g(C,"request"),C}function u(e){if(!(void 0===e||!1===e||e<=0))return e}function l(e){"object"==typeof e&&e&&"unref"in e&&"function"==typeof e.unref&&e.unref()}async function d(e,t){if(void 0===t)return e;try{return await Promise.race([e,t])}catch(t){throw e.catch(()=>{}),t}}function c(e){if(e instanceof Headers||Array.isArray(e))return e;let t={};for(let[r,i]of Object.entries(e))void 0!==i&&(t[r]=i);return t}async function h(e,t,r,i){let n=new Uint8Array(await e.arrayBuffer()),a=s(e.status,e.statusText,e.headers,n,e.url,e.redirected);if(t&&e.status>=400){let t=new o({url:r,method:i,status:e.status,statusText:e.statusText,headers:e.headers,body:a.text(),response:a});throw"captureStackTrace"in Error&&Error.captureStackTrace(t,h),t}return a}function f(e,t){let r=e;for(let e=t.length-1;e>=0;e--){let i=t[e],o=r;r=e=>i(e,o)}return r}function p(e,t){let r=e;for(let e of t)e.beforeRequest&&(r=e.beforeRequest(r));return r}function m(e,t,r){let i=e;for(let e of r)e.afterResponse&&(i=e.afterResponse(i,t));return i}function y(e,t){return{status:e.status,statusText:e.statusText,headers:e.headers,url:e.url,redirected:e.redirected,body:t}}function g(e,t){Object.defineProperty(e,"name",{value:t})}function w(e){if(!b(e)||"HttpError"!==e.name||"string"!=typeof e.message||"string"!=typeof e.url||"string"!=typeof e.method||"number"!=typeof e.status||"string"!=typeof e.statusText||!v(e.headers)||!("body"in e)||!b(e.response))return!1;let t=e.response;return t.status===e.status&&"string"==typeof t.statusText&&v(t.headers)&&"body"in t&&(void 0===t.url||"string"==typeof t.url)&&(void 0===t.redirected||"boolean"==typeof t.redirected)}function b(e){return"object"==typeof e&&!!e}function v(e){return b(e)&&"function"==typeof e.get}function $(e){return 100*2**e+100*Math.random()}function E(e,t,r){let i=(r.method??"GET").toUpperCase();return("GET"===i||"HEAD"===i)&&(!(e instanceof Error)||!("name"in e)||"HttpError"!==e.name)&&function(e){if(!(e instanceof Error))return!1;let t=O(e)??O(e.cause);return t?T.has(t):"TimeoutError"!==e.name&&"AbortError"!==e.name&&("retryable"in e&&"boolean"==typeof e.retryable?e.retryable:e instanceof TypeError)}(e)}e.s(["n",0,function(e){return!!b(e)&&"TimeoutError"===e.name&&"string"==typeof e.message&&(void 0===e.code||"number"==typeof e.code||"ETIMEDOUT"===e.code&&"string"==typeof e.url&&"string"==typeof e.method&&"number"==typeof e.timeoutMs&&"headers"===e.phase)},"r",0,a,"t",0,w],697384),e.s(["anySignal",0,i],414518);let T=new Set(["ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE","ENOTFOUND","ENETDOWN","EHOSTUNREACH","EAI_AGAIN","UND_ERR_CONNECT_TIMEOUT","UND_ERR_SOCKET"]);function O(e){if(e instanceof Error)return"code"in e&&"string"==typeof e.code?e.code:void 0}var I=e.i(516165),x=e.i(187636);let A=/\r\n|[\n\r\u2028\u2029]/;function C(e,t){let r=0;for(let i=0;i<t.length;i++){let o=t[i].length+1;if(r+o>e)return{line:i+1,column:e-r};r+=o}return{line:t.length,column:t[t.length-1]?.length??0}}function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,r){var i;return(i=function(e,t){if("object"!=j(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=j(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==j(i)?i:i+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t,r){var i;let o;return{statusCode:e.status,statusMessage:e.statusText||null,headers:(i=e.headers,o={},i.forEach((e,t)=>{o[t]=e}),o),body:e.body,url:e.url||t,method:r}}
1var M=class extends Error{constructor(e,t){let r=R(e,t);super(r.message),S(this,"response",void 0),S(this,"statusCode",400),S(this,"responseBody",void 0),S(this,"traceId",void 0),S(this,"details",void 0),Object.assign(this,r)}},U=class extends Error{constructor(e){let t=R(e);super(t.message),S(this,"response",void 0),S(this,"statusCode",500),S(this,"responseBody",void 0),S(this,"traceId",void 0),S(this,"details",void 0),Object.assign(this,t)}};function R(e,t){var i,o,n;let s=e.body,a={response:e,statusCode:e.statusCode,responseBody:(i=s,-1===(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?i:JSON.stringify(i,null,2)),traceId:function(e){let t=e?.headers?.traceparent;if(t)return t.split("-")[1]}(e),message:"",details:void 0};if(!(0,r.t)(s))return a.message=`${N(e,s)}${q(a.traceId)}`,a;let u=s.error;if("string"==typeof u&&"string"==typeof s.message)return a.message=`${u} - ${s.message}${q(a.traceId)}`,a;if("object"!=typeof u||!u)return a.message="string"==typeof u?`${u}${q(a.traceId)}`:"string"==typeof s.message?`${s.message}${q(a.traceId)}`:`${N(e,s)}${q(a.traceId)}`,a;if("type"in(o=u)&&"mutationError"===o.type&&"description"in o&&"string"==typeof o.description||"type"in(n=u)&&"actionError"===n.type&&"description"in n&&"string"==typeof n.description){let e=u.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`: 2- ${t.join("\n- ")}`:"";return e.length>5&&(r+=` 3...and ${e.length-5} more`),a.message=`${u.description}${q(a.traceId)}${r}`,a.details=s.error,a}return D(u)?(a.message=_(u,t,a.traceId),a.details=s.error):"description"in u&&"string"==typeof u.description?(a.message=`${u.description}${q(a.traceId)}`,a.details=u):a.message=`${N(e,s)}${q(a.traceId)}`,a}function D(e){return(0,r.t)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function _(e,t,r){let{query:i,start:o,end:n,description:s}=e,a=r?` 4(traceId: ${r})`:"";if(!i||void 0===o)return`GROQ query parse error: ${s}${a}`;let u=t?` 5 6Tag: ${t}`:"";return`GROQ query parse error: 7${function(e,t,r){let i=e.split(A),{start:o,end:n,markerLines:s}=function(e,t){let r={...e.start},i={...r,...e.end},o=r.line??-1,n=r.column??0,s=i.line,a=i.column,u=Math.max(o-3,0),l=Math.min(t.length,s+3);-1===o&&(u=0),-1===s&&(l=t.length);let d=s-o,c={};if(d)for(let e=0;e<=d;e++){let r=e+o;c[r]=!n||(0===e?[n,t[r-1].length-n+1]:e===d?[0,a]:[0,t[r-e].length])}else c[o]=n===a?!n||[n,0]:[n,a-n];return{start:u,end:l,markerLines:c}}({start:C(t.start,i),end:t.end?C(t.end,i):void 0},i),a=`${n}`.length;return e.split(A,n).slice(o,n).map((e,t)=>{let i=o+1+t,n=` ${` ${i}`.slice(-a)} |`,u=s[i],l=!s[i+1];if(!u)return` ${n}${e.length>0?` ${e}`:""}`;let d="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),i=u[1]||1;d=["\n ",n.replace(/\d/g," ")," ",t,"^".repeat(i)].join(""),l&&r&&(d+=" "+r)}return[">",n,e.length>0?` ${e}`:"",d].join("")}).join("\n")}(i,{start:o,end:n},s)}${u}${a}`}function N(e,t){var r;let i="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}â¦`:r})`:"",o=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${o}${i}`}function q(e){return e?` (traceId: ${e})`:""}var H=class extends Error{constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),S(this,"projectId",void 0),S(this,"addOriginUrl",void 0),this.name="CorsOriginError",this.projectId=e,e&&"u">typeof location){let r=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:i}=location;r.searchParams.set("cors","add"),r.searchParams.set("origin",i),t&&r.searchParams.set("credentials",""),this.addOriginUrl=r,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${r}`}else this.message=e?`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:"The current origin is not allowed to connect to the Live Content API."}};async function k(e,t){var r,i;let o,n=t.url,s=(t.method??"GET").toUpperCase(),a;try{a=await e(t)}catch(e){if(w(e)){let r=L("string"==typeof e.body?e.body:"",e.headers),i=P({status:e.status,statusText:e.statusText,headers:e.headers,body:r,url:e.response.url??e.url},n,s),o=function(e){if(!e)return;if(e instanceof URLSearchParams)return e.get("tag")??void 0;let t=e.tag;return"string"==typeof t?t:void 0}(t.query);throw i.statusCode>=500?new U(i):new M(i,o)}throw e}return{type:"response",body:L((r=a).text(),r.headers),statusCode:a.status,statusMessage:a.statusText||null,headers:(i=a.headers,o={}
7,i.forEach((e,t)=>{o[t]=e}),o),url:a.url||n,method:s}}function L(e,t){let r=(t.get("content-type")??"").toLowerCase();if(e){if(r.includes("application/json"))try{return JSON.parse(e)}catch{}return e}}function B(e,t,r){if(w(e)){let t=(r.method??"GET")==="GET"||"HEAD"===r.method,i=(r.url??"").includes("/data/query"),o=e.status;return!!((t||i)&&(429===o||502===o||503===o))}return E(e,t,r)}e.s(["a",0,U,"c",0,function(e){if(!(0,r.t)(e))return!1;let t=e.response;return!("number"!=typeof e.statusCode||"string"!=typeof e.message||!(0,r.t)(t)||void 0===t.body||"string"!=typeof t.url||"string"!=typeof t.method||"object"!=typeof t.headers||"number"!=typeof t.statusCode)},"i",0,H,"l",0,D,"n",0,L,"o",0,_,"r",0,M,"s",0,P,"t",0,function(e,t={}){var r,o;let n,s,u,l,d,c=a({...e.fetch?{fetch:e.fetch}:{},headers:e.headers,httpErrors:!0,middleware:[(r={shouldRetry:B,maxRetries:t.maxRetries??5,...t.retryDelay?{retryDelay:t.retryDelay}:{}},u=r?.maxRetries??5,l=r?.retryDelay??$,d=r?.shouldRetry??E,async function(e,t){let r="number"==typeof e.maxRetries?e.maxRetries:u,i;for(let o=0;o<=r;o++)try{return await t(e)}catch(t){if(i=t,o>=r||!d(t,o,e))throw t;await function(e,t){return new Promise((r,i)=>{if(t?.aborted)return void i(t.reason);let o=setTimeout(r,e);t?.addEventListener("abort",()=>{clearTimeout(o),i(t.reason)},{once:!0})})}(l(o),e.signal)}throw i}),...e.middleware,(t,r)=>{let i=t.meta?.fetchInit;if("object"!=typeof i||!i)return r(t);let o=t.fetch??e.fetch??globalThis.fetch;return r({...t,fetch:(e,t)=>o(e,{...i,...t})})},(o=t,n={},s=e=>void 0!==o.ignoreWarnings&&(Array.isArray(o.ignoreWarnings)?o.ignoreWarnings:[o.ignoreWarnings]).some(t=>"string"==typeof t?e.includes(t):t.test(e)),{afterResponse(e){let t=e.headers.get("x-sanity-warning");if(!t)return e;for(let e of t.split(",").map(e=>e.trim()))!e||n[e]||s(e)||(n[e]=!0,console.warn(e));return e}})]}),h=e=>{if("string"!=typeof e.url)throw TypeError("Request options must include a `url`");return k(c,e)};return{promise:h,observable:e=>new I.Observable(t=>{let r=new AbortController,o=e.signal,n=o?i([o,r.signal]):r.signal,s=(0,x.from)(h({...e,signal:n})).subscribe(t);return()=>{s.unsubscribe(),r.abort()}})}},"u",0,S],345260)},764752,e=>{"use strict";var t={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},r={0:8203,1:8204,2:8205,3:65279},i={0:String.fromCodePoint(r[0]),1:String.fromCodePoint(r[1]),2:String.fromCodePoint(r[2]),3:String.fromCodePoint(r[3])},o=[,,,,].fill(String.fromCodePoint(r[0])).join("");Object.fromEntries(Object.entries(i).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(t).map(e=>e.reverse()));var n=`${Object.values(t).map(e=>`\\u{${e.toString(16)}}`).join("")}`,s=RegExp(`[${n}]{4,}`,"gu");e.s(["r",0,function(e,t,r="auto"){return!0===r||"auto"===r&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e),r=new TextEncoder().encode(t),n="";for(let e=0;e<r.length;e++){let t=r[e];n+=i[t>>6&3]+i[t>>4&3]+i[t>>2&3]+i[3&t]}return o+n}(t)}`},"t",0,function(e){var t;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(s,""),encoded:t.match(s)?.[0]||""}.cleaned)}])},235658,e=>{"use strict";var t=e.i(764752);e.s(["stegaClean",()=>t.t])},778415,e=>{"use strict";var t;let r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function i(e){return`image-${e.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}let o=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],n=["clip","crop","fill","fillmax","max","scale","min"],s=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"];function u(e){let{apiHost:t,projectId:r,dataset:i}=e,o={baseUrl:(t||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},n=e.resource??e["~experimental_resource"];if(n?.type==="media-library"){if("string"!=typeof n.id||0===n.id.length)throw Error('Media library clients must include an id in "resource"');return{...o,mediaLibraryId:n.id}}if(n?.type==="canvas"){if("string"!=typeof n.id||0===n.id.length)throw Error('Canvas clients must include an id in "resource"');return{...o,canvasId:n.id}}if(n?.type==="dataset"){if("string"!=typeof n.id||0===n.id.length)throw Error('Dataset clients must include an id in "resource"');let[e,t]=n.id.split(".");if(!e||!t)throw Error('Dataset resource id must be in the format "projectId.dataset", got: '+n.id);return{...o,projectId:e,dataset:t}}return{...o,projectId:r,dataset:i}}function l(e){return e&&"config"in e&&"function"==typeof e.config?u(e.config()):e&&"clientConfig"in e&&"object"==typeof e.clientConfig?u(e.clientConfig):e||{}}class d{options;constructor(e,t){this.options=e?{...e.options||{},...t||{}}:{...t||{}}}withOptions(e){return new d(this,function(e,t){let r=t.baseUrl||e.baseUrl,i={baseUrl:r};for(let e in t)t.hasOwnProperty(e)&&(i[function(e){for(let t of o){let[r,i]=t;if(e===r||e===i)return r}return e}(e)]=t[e]);return{baseUrl:r,...i}}(this.options,e))}image(e){return this.withOptions({source:e})}dataset(e){return this.withOptions({dataset:e})}projectId(e){return this.withOptions({projectId:e})}withClient(e){let t=l(e),r={...this.options};return delete r.baseUrl,delete r.projectId,delete r.dataset,delete r.mediaLibraryId,delete r.canvasId,new d(null,{...t,...r})}bg(e){return this.withOptions({bg:e})}dpr(e){return this.withOptions(e&&1!==e?{dpr:e}:{})}width(e){return this.withOptions({width:e})}height(e){return this.withOptions({height:e})}focalPoint(e,t){return this.withOptions({focalPoint:{x:e,y:t}})}maxWidth(e){return this.withOptions({maxWidth:e})}minWidth(e){return this.withOptions({minWidth:e})}maxHeight(e){return this.withOptions({maxHeight:e})}minHeight(e){return this.withOptions({minHeight:e})}size(e,t){return this.withOptions({width:e,height:t})}blur(e){return this.withOptions({blur:e})}
7sharpen(e){return this.withOptions({sharpen:e})}rect(e,t,r,i){return this.withOptions({rect:{left:e,top:t,width:r,height:i}})}format(e){return this.withOptions({format:e})}invert(e){return this.withOptions({invert:e})}orientation(e){return this.withOptions({orientation:e})}quality(e){return this.withOptions({quality:e})}forceDownload(e){return this.withOptions({download:e})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(e){if(-1===n.indexOf(e))throw Error(`Invalid fit mode "${e}"`);return this.withOptions({fit:e})}crop(e){if(-1===s.indexOf(e))throw Error(`Invalid crop mode "${e}"`);return this.withOptions({crop:e})}saturation(e){return this.withOptions({saturation:e})}auto(e){if(-1===a.indexOf(e))throw Error(`Invalid auto mode "${e}"`);return this.withOptions({auto:e})}pad(e){return this.withOptions({pad:e})}vanityName(e){return this.withOptions({vanityName:e})}frame(e){if(1!==e)throw Error(`Invalid frame value "${e}"`);return this.withOptions({frame:e})}url(){return function(e){let t={...e||{}},n=t.source;delete t.source;let s=function(e){var t;let r;if(!e)return null;if("string"==typeof e&&(t=e,/^https?:\/\//.test(`${t}`)))r={asset:{_ref:i(e)}};else if("string"==typeof e)r={asset:{_ref:e}};else if(e&&"string"==typeof e._ref)r={asset:e};else if(e&&"string"==typeof e._id)r={asset:{_ref:e._id||""}};else if(e&&e.asset&&"string"==typeof e.asset.url)r={asset:{_ref:i(e.asset.url)}};else{if("object"!=typeof e.asset)return null;r={...e}}return e.crop&&(r.crop=e.crop),e.hotspot&&(r.hotspot=e.hotspot),function(e){if(e.crop&&e.hotspot)return e;let t={...e};return t.crop||(t.crop={left:0,top:0,bottom:0,right:0}),t.hotspot||(t.hotspot={x:.5,y:.5,height:1,width:1}),t}(r)}(n);if(!s){if(n&&"object"==typeof n&&null!==n&&n._upload&&(!n.asset||!n.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error(`Unable to resolve image URL from source (${JSON.stringify(n)})`)}let a=function(e){let[,t,i,o]=e.split("-");if(!t||!i||!o)throw Error(`Malformed asset _ref '${e}'. Expected an id like "${r}".`);let[n,s]=i.split("x"),a=+n,u=+s;if(!(isFinite(a)&&isFinite(u)))throw Error(`Malformed asset _ref '${e}'. Expected an id like "${r}".`);return{id:t,width:a,height:u,format:o}}(s.asset._ref||s.asset._id||""),u=Math.round(s.crop.left*a.width),l=Math.round(s.crop.top*a.height),d={left:u,top:l,width:Math.round(a.width-s.crop.right*a.width-u),height:Math.round(a.height-s.crop.bottom*a.height-l)},c=s.hotspot.height*a.height/2,h=s.hotspot.width*a.width/2,f=s.hotspot.x*a.width,p=s.hotspot.y*a.height;return t.rect||t.focalPoint||t.ignoreImageParams||t.crop||(t={...t,...function(e,t){let r,i=t.width,o=t.height;if(!(i&&o))return{width:i,height:o,rect:e.crop};let n=e.crop,s=e.hotspot,a=i/o;if(n.width/n.height>a){let e=Math.round(n.height),t=Math.round(e*a),i=Math.max(0,Math.round(n.top)),o=Math.max(0,Math.round(Math.round((s.right-s.left)/2+s.left)-t/2));o<n.left?o=n.left:o+t>n.left+n.width&&(o=n.left+n.width-t),r={left:o,top:i,width:t,height:e}}else{let e=n.width,t=Math.round(e/a),i=Math.max(0,Math.round(n.left)),o=Math.max(0,Math.round(Math.round((s.bottom-s.top)/2+s.top)-t/2));o<n.top?o=n.top:o+t>n.top+n.height&&(o=n.top+n.height-t),r={left:i,top:o,width:e,height:t}}return{width:i,height:o,rect:r}}({crop:d,hotspot:{left:f-h,top:p-c,right:f+h,bottom:p+c}},t)}),function(e){let t,r=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),i=e.vanityName?`/${e.vanityName}`:"",n=`${e.asset.id}-${e.asset.width}x${e.asset.height}.${e.asset.format}${i}`;t=e.mediaLibraryId?`${r}/media-libraries/${e.mediaLibraryId}/images/${n}`:e.canvasId?`${r}/images/canvases/${e.canvasId}/${n}`:`${r}/images/${e.projectId}/${e.dataset}/${n}`;let s=[];if(e.rect){let{left:t,top:r,width:i,height:o}=e.rect;(0!==t||0!==r||o!==e.asset.height||i!==e.asset.width)&&s.push(`rect=${t},${r},${i},${o}`)}e.bg&&s.push(`bg=${e.bg}`),e.focalPoint&&(s.push(`fp-x=${e.focalPoint.x}`),s.push(`fp-y=${e.focalPoint.y}`));
7let a=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return a&&s.push(`flip=${a}`),o.forEach(t=>{let[r,i]=t;"u">typeof e[r]?s.push(`${i}=${encodeURIComponent(e[r])}`):"u">typeof e[i]&&s.push(`${i}=${encodeURIComponent(e[i])}`)}),0===s.length?t:`${t}?${s.join("&")}`}({...t,asset:a})}(this.options)}toString(){return this.url()}}t=["The default export of @sanity/image-url has been deprecated. Use the named export `createImageUrlBuilder` instead."],e.s(["createImageUrlBuilder",0,function(e){return new d(null,l(e))}])}]); 8 9//# sourceMappingURL=2wlrtad3w9o6e.js.map
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.