PageSourceSearch

https://www.eadensbar.co.uk/_next/static/chunks/d4acc0148baf0726.js?dpl=dpl_F4arz8FPtwfzFT2TfY6MYP82CLQZ

js eadensbar.co.uk collected 2026-10-05 19:20:01 UTC 57,775 bytes, 12 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,945736,e=>{"use strict";var t,r=e.i(271011),n=e.i(708228),i=e.i(394426),s=e.i(172441),o=e.i(245281),a=e.i(245912),u=e.i(484973),c=e.i(330823),l=e.i(305753),h=e.i(827341),d=e.i(992481),p=e.i(602400),f=e.i(254201),g=e.i(817312),m=e.i(218692),y=e.i(128068),v=e.i(277497),b=e.i(993817),w=e.i(94059),R=e.i(839338),q=e.i(247984),E=e.i(524888),$=e.i(722249);let I="drafts.",j="versions.";function T(e){return e.startsWith(I)}function C(e){return e.startsWith(j)}function P(e){return C(e)?I+S(e):T(e)?e:I+e}function A(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${j}${t}.${S(e)}`}function O(e){if(!C(e))return;let[t,r,...n]=e.split(".");return r}function S(e){return C(e)?e.split(".").slice(2).join("."):T(e)?e.slice(I.length):e}var x=e.i(148077);let V=/\r\n|[\n\r\u2028\u2029]/;function _(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;if(r+i>e)return{line:n+1,column:e-r};r+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class D extends Error{response;statusCode=400;responseBody;details;constructor(e,t){const r=F(e,t);super(r.message),Object.assign(this,r)}}class M extends Error{response;statusCode=500;responseBody;details;constructor(e){const t=F(e);super(t.message),Object.assign(this,t)}}function F(e,t){var r,n,i;let s=e.body,o={response:e,statusCode:e.statusCode,responseBody:(r=s,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),message:"",details:void 0};if(!(0,q.isRecord)(s))return o.message=k(e,s),o;let a=s.error;if("string"==typeof a&&"string"==typeof s.message)return o.message=`${a} - ${s.message}`,o;if("object"!=typeof a||null===a)return"string"==typeof a?o.message=a:"string"==typeof s.message?o.message=s.message:o.message=k(e,s),o;if("type"in(n=a)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=a)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=a.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`:
2- ${t.join(`
3- `)}`:"";return e.length>5&&(r+=`
4...and ${e.length-5} more`),o.message=`${a.description}${r}`,o.details=s.error,o}return L(a)?(o.message=U(a,t?.options?.query?.tag),o.details=s.error):"description"in a&&"string"==typeof a.description?(o.message=a.description,o.details=a):o.message=k(e,s),o}function L(e){return(0,q.isRecord)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function U(e,t){let{query:r,start:n,end:i,description:s}=e;if(!r||typeof n>"u")return`GROQ query parse error: ${s}`;let o=t?`
5
6Tag: ${t}`:"";return`GROQ query parse error:
7${function(e,t,r){let n=e.split(V),{start:i,end:s,markerLines:o}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,s=r.column??0,o=n.line,a=n.column,u=Math.max(i-3,0),c=Math.min(t.length,o+3);-1===i&&(u=0),-1===o&&(c=t.length);let l=o-i,h={};if(l)for(let e=0;e<=l;e++){let r=e+i;if(s)if(0===e){let e=t[r-1].length;h[r]=[s,e-s+1]}else if(e===l)h[r]=[0,a];else{let n=t[r-e].length;h[r]=[0,n]}else h[r]=!0}else s===a?s?h[i]=[s,0]:h[i]=!0:h[i]=[s,a-s];return{start:u,end:c,markerLines:h}}({start:_(t.start,n),end:t.end?_(t.end,n):void 0},n),a=`${s}`.length;return e.split(V,s).slice(i,s).map((e,t)=>{let n=i+1+t,s=` ${` ${n}`.slice(-a)} |`,u=o[n],c=!o[n+1];if(!u)return` ${s}${e.length>0?` ${e}`:""}`;let l="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),n=u[1]||1;l=`
8 `+s.replace(/\d/g," ")+" "+t+"^".repeat(n),c&&r&&(l+=" "+r)}return">"+s+(e.length>0?` ${e}`:"")+l}).join(`
9`)}(r,{start:n,end:i},s)}${o}`}function k(e,t){var r;let n="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}\u2026`:r})`:"",i=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${i}${n}`}class N extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;const t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){const{origin:e}=location;t.searchParams.set("cors","add"),t.searchParams.set("origin",e),this.addOriginUrl=t,this.message=`The current origin 
9is not allowed to connect to the Live Content API. Add it here: ${t}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${t}`}}let z={onResponse:(e,t)=>{if(e.statusCode>=500)throw new M(e);if(e.statusCode>=400)throw new D(e,t);return e}};function W(e,t={}){return(0,r.getIt)([(0,n.retry)({shouldRetry:B}),...e,function(e={}){let t={},r=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let n=e.headers["x-sanity-warning"];for(let e of Array.isArray(n)?n:[n])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),(0,n.jsonRequest)(),(0,n.jsonResponse)(),(0,n.progress)(),z,(0,n.observable)({implementation:i.Observable})])}function B(e,t,r){if(0===r.maxRetries)return!1;let i="GET"===r.method||"HEAD"===r.method,s=(r.uri||r.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!i||!!s)&&!!o||n.retry.shouldRetry(e,t,r)}function H(e){return"https://www.sanity.io/help/"+e}let G=["image","file"],K=["before","after","replace"],Q=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")},J=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},Y=(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`)},X=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);Y(e,t._id)},Z=(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`)},ee=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")},et=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},er=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":if(2!==n.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${r.toString()}`)}},en=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},ei=e=>{var t;let r,n;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(n=t(...e),r=!0),n)},es=ei(["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"]),eo=ei(["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."]),ea=ei(["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."]),eu=ei(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),ec=ei(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${H("js-client-browser-token")} for more information and how to hide this warning.`]),el=ei(["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`."]),eh=ei(["Using the Sanity client without specifying an API version is deprecated.",`See ${H("js-cl
9ient-api-version")}`]),ed=(ei(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),ei(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),ep=ei(["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."]),ef={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},eg=["localhost","127.0.0.1","0.0.0.0"];function em(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')}let ey=(e,t)=>{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||ef.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||eh();let i={...ef,...n};i["~experimental_resource"]&&!i.resource&&(ep(),i.resource=i["~experimental_resource"]);let s=i.resource,o=i.useProjectHostname&&!s;if(typeof Promise>"u"){let e=H("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(o&&!i.projectId)throw Error("Configuration must contain `projectId`");if(s&&er(i),"u">typeof i.perspective&&em(i.perspective),"encodeSourceMap"in i)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 i)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 i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let a="u">typeof window&&window.location&&window.location.hostname,u=a&&(r=window.location.hostname,-1!==eg.indexOf(r)),c=!!i.token;i.withCredentials&&c&&(el(),i.withCredentials=!1),a&&u&&c&&!0!==i.ignoreBrowserTokenWarning?ec():typeof i.useCdn>"u"&&eo(),o&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&Q(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?et(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===ef.apiHost,!0===i.useCdn&&i.withCredentials&&es(),i.useCdn=!1!==i.useCdn&&!i.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`")}(i.apiVersion);let l=i.apiHost.split("://",2),h=l[0],d=l[1],p=i.isDefaultApi?"apicdn.sanity.io":d;return o?(i.url=`${h}://${i.projectId}.${d}/v${i.apiVersion}`,i.cdnUrl=`${h}://${i.projectId}.${p}/v${i.apiVersion}
9`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class ev extends Error{name="ConnectionFailedError"}class eb extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class ew extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class eR extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class eq extends Error{name="MessageParseError"}let eE=["channelError","disconnect"];function e$(e,t){return(0,s.defer)(()=>{let t=e();return(0,a.isObservable)(t)?t:(0,o.of)(t)}).pipe((0,u.mergeMap)(e=>{var r,n;return r=e,n=t,new i.Observable(e=>{let t=n.includes("open"),i=n.includes("reconnect");function s(t){if("data"in t){let[r,n]=eI(t);e.error(r?new eq("Unable to parse EventSource error message",{cause:n}):new eR((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new ev("EventSource connection failed")):i&&e.next({type:"reconnect"})}function o(){e.next({type:"open"})}function a(t){let[n,i]=eI(t);if(n)return void e.error(new eq("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){var s,o;let t,n=new URL(r.url).searchParams.get("tag");e.error(new ew((s=i?.data,o=n,(t=s.error)?L(t)?U(t,o):t.description?t.description:"string"==typeof t?t:JSON.stringify(t,null,2):s.message||"Unknown listener error"),i.data));return}"disconnect"===t.type?e.error(new eb(`Server disconnected client: ${i.data?.reason||"unknown error"}`)):e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",s),t&&r.addEventListener("open",o);let u=[...new Set([...eE,...n])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(e=>r.addEventListener(e,a)),()=>{r.removeEventListener("error",s),t&&r.removeEventListener("open",o),u.forEach(e=>r.removeEventListener(e,a)),r.close()}})}))}function eI(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function ej(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
10`);throw Error(`Unknown selection - must be one of:
11
12${t}`)}class eT{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return J("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,r){return((e,t,r)=>{let n="insert(at, selector, items)";if(-1===K.indexOf(e)){let e=K.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)})(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let i=t<0?t-1:t,s=typeof r>"u"||-1===r?-1:Math.max(0,t+r),o=`${e}[${i}:${i<0&&s>=0?"":s}]`;return this.insert("replace",o,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...ej(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return J(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class eC extends eT{#e;constructor(e,t,r){super(e,t),this.#e=r}clone(){return new eC(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#e.mutate({patch:this.serialize()},t)}}class eP extends eT{#e;
12constructor(e,t,r){super(e,t),this.#e=r}clone(){return new eP(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#e.mutate({patch:this.serialize()},t)}}let eA={returnDocuments:!1};class eO{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return J("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return J(t,e),X(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return J(t,e),X(t,e),this._add({[t]:e})}delete(e){return Y("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class eS extends eO{#e;constructor(e,t,r){super(e,r),this.#e=t}clone(){return new eS([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},eA,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof eP,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new eP(e,{},this.#e));if(!(r instanceof eP))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new eP(e,t||{},this.#e);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class ex extends eO{#e;constructor(e,t,r){super(e,r),this.#e=t}clone(){return new ex([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},eA,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof eC)return this._add({patch:e.serialize()});if(r){let r=t(new eC(e,{},this.#e));if(!(r instanceof eC))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let eV=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:s,returnQuery:o,...a}=r;for(let[r,s]of(i&&n.append("tag",i),n.append("query",e),Object.entries(t)))void 0!==s&&n.append(`$${r}`,JSON.stringify(s));for(let[e,t]of Object.entries(a))t&&n.append(e,`${t}`);return!1===o&&n.append("returnQuery","false"),!1===s&&n.append("includeMutations","false"),`?${n}`},e_=e=>"response"===e.type,eD=e=>e.body;function eM(t,r,n,i,s={},o={}){let a="stega"in o?{...n||{},..."boolean"==typeof o.stega?{enabled:o.stega}:o.stega||{}}:n,u=a.enabled?(0,q.stegaClean)(s):s,l=!1===o.filterResponse?e=>e:e=>e.result,{cache:h,next:d,...p}={useAbortSignal:"u">typeof o.signal,resultSourceMap:a.enabled?"withKeyArraySelector":o.resultSourceMap,...o,returnQuery:!1===o.filterResponse&&!1!==o.returnQuery},f=eY(t,r,"query",{query:i,params:u},"u">typeof h||"u">typeof d?{...p,fetch:{cache:h,next:d}}:p);return a.enabled?f.pipe((0,E.combineLatestWith)((0,c.from)(e.A(684927).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,w.map)(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return l({...e,result:r})})):f.pipe((0,w.map)(l))}function eF(e,t,r,n={}){let i={uri:e2(e,"doc",(()=>{if(!n.releaseId)return r;let e=O(r);if(!e){if(T(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return A(r,n.releaseId)}if(e!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return e1(e,t,i).pipe((0,$.filter)(e_),(0,w.map)(e=>{let t=e.body.documents;return t?n.includeAllVersions?t:t[0]:n.includeAllVersions?[]:void 0}))}function eL(e,t,r,n={}){let i={uri:e2(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return e1(e,t,i).pipe((0,$.filter)(e_),(0,w.map)(e=>{let t,n,i=(t=e.body.documents||[],n=e=>e._id,t.reduce((e,t)=>
12(e[n(t)]=t,e),Object.create(null)));return r.map(e=>i[e]||null)}))}function eU(e,t,r,n={}){return eY(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function ek(e,t,r,n){return X("createIfNotExists",r),eX(e,t,r,"createIfNotExists",n)}function eN(e,t,r,n){return X("createOrReplace",r),eX(e,t,r,"createOrReplace",n)}function ez(e,t,r,n,i){return X("createVersion",r),Z("createVersion",r),ed(),eJ(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function eW(e,t,r,n,i,s,o){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return Y("createVersion",n),Y("createVersion",r),eJ(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?A(r,i):P(r),ifBaseRevisionId:s},o)}function eB(e,t,r,n){return eY(e,t,"mutate",{mutations:[{delete:ej(r)}]},n)}function eH(e,t,r,n=!1,i){return eJ(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function eG(e,t,r,n){return X("replaceVersion",r),Z("replaceVersion",r),eJ(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function eK(e,t,r,n,i){return eJ(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function eQ(e,t,r,n){let i;return eY(e,t,"mutate",{mutations:Array.isArray(i=r instanceof eP||r instanceof eC?{patch:r.serialize()}:r instanceof eS||r instanceof ex?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function eJ(e,t,r,n){let i=Array.isArray(r)?r:[r],s=n&&n.transactionId||void 0;return eY(e,t,"actions",{actions:i,transactionId:s,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function eY(e,t,r,n,i={}){let s="mutate"===r,o="actions"===r,a=s||o?"":eV(n),u=!s&&!o&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:h,token:d,tag:p,headers:f,returnQuery:g,lastLiveEventId:m,cacheMode:y}=i,v={method:u?"GET":"POST",uri:e2(e,r,c),json:!0,body:u?void 0:n,query:s&&((e={})=>{let t;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,!1===t?void 0:!!(typeof t>"u")||t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:h,headers:f,token:d,tag:p,returnQuery:g,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(m)?m[0]:m,cacheMode:y,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return e1(e,t,v).pipe((0,$.filter)(e_),(0,w.map)(eD),(0,w.map)(e=>{if(!s)return e;let t=e.results||[];if(i.returnDocuments)return l?t[0]&&t[0].document:t.map(e=>e.document);let r=l?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[l?"documentId":"documentIds"]:r}}))}function eX(e,t,r,n,i={}){return eY(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let eZ=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},e0=(e,t)=>eZ(e)&&t.startsWith(e2(e,"query"));function e1(e,t,r){var n;let s=r.url||r.uri,o=e.config(),a=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(s.startsWith("/data/")||e0(e,s)||eZ(e)&&s.startsWith(e2(e,"mutate"))||eZ(e)&&s.startsWith(e2(e,"doc",""))||eZ(e)&&s.startsWith(e2(e,"listen"))||eZ(e)&&s.startsWith(e2(e,"history",""))):r.canUseCdn,u=(r.useCdn??o.useCdn)&&a,c=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(c&&null!==r.tag&&(r.query={tag:et(c),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&e0(e,s)){let e=r.resultSourceMap??o.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||o.perspective;"u">typeof t&&("previewDrafts"===t&&eu(),em(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&u&&(u=!1,ea())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),u&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let l=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),s=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof s>"u"?3e5:s,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(o,Object.assign({},r,{url:e3(e,s,u)})),h=new i.Observable(e=>t(l,o.requester).subscribe(e));
12return r.signal?h.pipe((n=r.signal,e=>new i.Observable(t=>{let r=()=>t.error(function(e){if(e9)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted)return void r();let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):h}function e7(e,t,r){return e1(e,t,r).pipe((0,$.filter)(e=>"response"===e.type),(0,w.map)(e=>e.body))}function e2(e,t,r){let n=e.config();if(n.resource){er(n);let e=e8(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=ee(n),s=`/${t}/${i}`;return`/data${void 0!==r?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function e3(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let e9=!!globalThis.DOMException,e8=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":{let e=n.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${n}`;case"media-library":return`/media-libraries/${n}`;case"dashboard":return`/dashboards/${n}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function e6(e,t,r){let n=ee(e.config());return e7(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function e4(e,t,r){let n=ee(e.config());return e7(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function e5(e,t,r){let n=ee(e.config());return e7(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class te{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return e6(this.#e,this.#t,e)}transform(e){return e4(this.#e,this.#t,e)}translate(e){return e5(this.#e,this.#t,e)}}class tt{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return(0,l.lastValueFrom)(e6(this.#e,this.#t,e))}transform(e){return(0,l.lastValueFrom)(e4(this.#e,this.#t,e))}translate(e){return(0,l.lastValueFrom)(e5(this.#e,this.#t,e))}prompt(e){var t,r;let n;return(0,l.lastValueFrom)((t=this.#e,r=this.#t,n=ee(t.config()),e7(t,r,{method:"POST",uri:`/agent/action/prompt/${n}`,body:e})))}patch(e){var t,r;let n;return(0,l.lastValueFrom)((t=this.#e,r=this.#t,n=ee(t.config()),e7(t,r,{method:"POST",uri:`/agent/action/patch/${n}`,body:e})))}}class tr{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){return ti(this.#e,this.#t,e,t,r)}}class tn{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){let n=ti(this.#e,this.#t,e,t,r);return(0,l.lastValueFrom)(n.pipe((0,$.filter)(e=>"response"===e.type),(0,w.map)(e=>e.body.document)))}}function ti(e,t,r,n,i={}){var s,o;if(-1===G.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${G.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let u=e.config(),c=(s=i,o=n,!(typeof File>"u")&&o instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:o.name,contentType:o.type},s):s),{tag:l,label:h,title:d,description:p,creditLine:f,filename:g,source:m}=c,y=u.resource?.type==="media-library",v=y?{title:d,filename:g}:{label:h,title:d,description:p,filename:g,meta:a,creditLine:f};return m&&!y&&(v.sourceId=m.id,v.sourceName=m.name,v.sourceUrl=m.url),e1(e,t,{tag:l,method:"POST",timeout:c.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",n=e.resource;if(n){let{type:e,id:t}=n;switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${t}/assets/${r}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let i=ee(e);return`assets/${r}/${i}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:v,body:n})}let ts=(0,s.defer)(()=>e.A(627649)).pipe((0,w.map)(({default:e})=>e),(0,h.shareReplay)(1));function to(){return function(e){return e.pipe((0,d.catchError)((e,t)=>e instanceof ev?(0,p.concat)((0,o.of)({type:"reconnect"}),(0,g.timer)(1e3).pipe((0,u.mergeMap)(()=>t))):(0,f.throwError)(()=>e)))}}let ta=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],tu={includeResult:!0};function tc(e,t,r={}){let{url:n,token:i,withCredentials:s,requestTagPrefix:a,headers:u}=this.config(),c=r.tag&&a?[a,r.tag].join("."):r.tag,l={...Object.keys(tu).concat(Object.keys(r)).reduce((e,t)=>
12(e[t]=typeof r[t]>"u"?tu[t]:r[t],e),{}),tag:c},h=eV({query:e,params:t,options:{tag:c,...ta.reduce((e,t)=>(typeof l[t]>"u"||(e[t]=l[t]),e),{})}}),d=`${n}${e2(this,"listen",h)}`;if(d.length>14800)return(0,f.throwError)(()=>Error("Query too large for listener"));let p=l.events?l.events:["mutation"],g={};return s&&(g.withCredentials=!0),(i||u)&&(g.headers={},i&&(g.headers.Authorization=`Bearer ${i}`),u&&Object.assign(g.headers,u)),e$(()=>(typeof EventSource>"u"||g.headers?ts:(0,o.of)(EventSource)).pipe((0,w.map)(e=>new e(d,g))),p).pipe(to(),(0,$.filter)(e=>p.includes(e.type)),(0,w.map)(e=>({type:e.type,..."data"in e?e.data:{}})))}let tl="2021-03-25";class th{#e;constructor(e){this.#e=e}events({includeDrafts:e=!1,tag:t}={}){var r,n,s,a;en("live",this.#e.config());let{projectId:c,apiVersion:l,token:h,withCredentials:p,requestTagPrefix:f,headers:g}=this.#e.config(),R=l.replace(/^v/,"");if("X"!==R&&R<tl)throw Error(`The live events API requires API version ${tl} or later. The current API version is ${R}. Please update your API version to use this feature.`);if(e&&!h&&!p)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let q=e2(this.#e,"live/events"),E=new URL(this.#e.getUrl(q,!1)),$=t&&f?[f,t].join("."):t;$&&E.searchParams.set("tag",$),e&&E.searchParams.set("includeDrafts","true");let I={};e&&p&&(I.withCredentials=!0),(e&&h||g)&&(I.headers={},e&&h&&(I.headers.Authorization=`Bearer ${h}`),g&&Object.assign(I.headers,g));let j=`${E.href}::${JSON.stringify(I)}`,T=td.get(j);if(T)return T;let C=e$(()=>(typeof EventSource>"u"||I.headers?ts:(0,o.of)(EventSource)).pipe((0,w.map)(e=>new e(E.href,I))),["message","restart","welcome","reconnect","goaway"]),P=(n=E,s={method:"OPTIONS",mode:"cors",credentials:I.withCredentials?"include":"omit",headers:I.headers},new i.Observable(e=>{let t=new AbortController,r=t.signal;return fetch(n,{...s,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{r.aborted||e.error(t)}),()=>t.abort()})).pipe((0,d.catchError)(()=>{throw new N({projectId:c})})),A=C.pipe(to(),(0,u.mergeMap)(e=>"reconnect"===e.type?P.pipe((0,u.mergeMap)(()=>(0,o.of)(e))):(0,o.of)(e)),(0,d.catchError)(e=>P.pipe((0,u.mergeMap)(()=>{throw e}))),(0,w.map)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe((0,y.finalize)(()=>td.delete(j)),(a="function"==typeof(r={predicate:e=>"welcome"===e.type})?{predicate:r,...void 0}:r,e=>{let t,r=!1,{predicate:n,...s}=a,o=e.pipe((0,m.tap)(e=>{a.predicate(e)&&(r=!0,t=e)}),(0,y.finalize)(()=>{r=!1,t=void 0}),(0,v.share)(s)),u=new i.Observable(e=>{r&&e.next(t),e.complete()});return(0,b.merge)(o,u)}));return td.set(j,A),A}}let td=new Map;class tp{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return tg(this.#e,this.#t,"PUT",e,t)}edit(e,t){return tg(this.#e,this.#t,"PATCH",e,t)}delete(e){return tg(this.#e,this.#t,"DELETE",e)}list(){en("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),e7(this.#e,this.#t,{uri:r,tag:null})}}class tf{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return en("dataset",this.#e.config()),(0,l.lastValueFrom)(tg(this.#e,this.#t,"PUT",e,t))}edit(e,t){return en("dataset",this.#e.config()),(0,l.lastValueFrom)(tg(this.#e,this.#t,"PATCH",e,t))}delete(e){return en("dataset",this.#e.config()),(0,l.lastValueFrom)(tg(this.#e,this.#t,"DELETE",e))}list(){en("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),(0,l.lastValueFrom)(e7(this.#e,this.#t,{uri:r,tag:null}))}}function tg(e,t,r,n,i){return en("dataset",e.config()),Q(n),e7(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class tm{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){var r,n;let i=this.#e.config(),s=(i.resource||i["~experimental_resource"])?.id,{instanceId:o,libraryId:a}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=tv.exec(t);if(r){let[,e,t]=r;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),u=a||s;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let c=(r=o,n=u,`/media-libraries/${n}/video/${r}/playback-info`),l=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:n,storyboard:i}=e.transformations;r&&(r.width&&(t.thumbnailWidth=r.width),r.height&&(t.thumbnailHeight=r.height),void 0!==r.time&&(t.thumbnailTime=r.time),r.f
12it&&(t.thumbnailFit=r.fit),r.format&&(t.thumbnailFormat=r.format)),n&&(n.width&&(t.animatedWidth=n.width),n.height&&(t.animatedHeight=n.height),void 0!==n.start&&(t.animatedStart=n.start),void 0!==n.end&&(t.animatedEnd=n.end),n.fps&&(t.animatedFps=n.fps),n.format&&(t.animatedFormat=n.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return e7(this.#e,this.#t,{method:"GET",uri:c,query:l})}}class ty{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){return(0,l.lastValueFrom)(new tm(this.#e.observable,this.#t).getPlaybackInfo(e,t))}}let tv=/^media-library:(ml[^:]+):([^:]+)$/;class tb{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.organizationId&&(t.organizationId=e.organizationId),e7(this.#e,this.#t,{uri:"/projects",query:t})}getById(e){return e7(this.#e,this.#t,{uri:`/projects/${e}`})}}class tw{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.organizationId&&(t.organizationId=e.organizationId),(0,l.lastValueFrom)(e7(this.#e,this.#t,{uri:"/projects",query:t}))}getById(e){return(0,l.lastValueFrom)(e7(this.#e,this.#t,{uri:`/projects/${e}`}))}}let tR=(0,x.customAlphabet)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),tq=(e,t)=>t?A(e,t):P(e);function tE(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=tq(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=T(n._id),i=C(n._id);if(!r&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(r)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=O(n._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return tq(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let t$=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=tR(),metadata:n={}}=e;return[r,n,t]}return[tR(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class tI{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return eF(this.#e,this.#t,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=t$(e,t),{releaseId:i,metadata:s}=r;return eJ(this.#e,this.#t,r,n).pipe((0,w.map)(e=>({...e,releaseId:i,metadata:s})))}edit({releaseId:e,patch:t},r){return eJ(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return eJ(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return eJ(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return eJ(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return eJ(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return eJ(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return eJ(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return eU(this.#e,this.#t,e,t)}}class tj{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return(0,l.lastValueFrom)(eF(this.#e,this.#t,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=t$(e,t),{releaseId:i,metadata:s}=r;return{...await (0,l.lastValueFrom)(eJ(this.#e,this.#t,r,n)),releaseId:i,metadata:s}}edit({releaseId:e,patch:t},r){return(0,l.lastValueFrom)(eJ(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return(0,l.lastValueFrom)(eJ(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return(0,l.lastValueFrom)(eJ(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return(0,l.lastValueFrom)(eJ(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return(0,l.lastValueFrom)(eJ(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return(0,l.lastValueFrom)(eJ(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return(0,l.lastValueFrom)(eJ(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return(0,l.lastValueFrom)(eU(this.#e,this.#t,e,t))}}class tT{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return e7(this.#e,this.#t,{uri:`/users/${e}`})}}class tC{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return(0,l.lastValueFrom)(e7(this.#e,this.#t,{uri:`/users/${e}`}))}}class tP{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#r;#t;listen=tc;constructor(e,t=ef){this.config(t),this.#t=e,this.assets=new tr(this,this.#t),this.datasets=new tp(this,this.#t),this.live=new th(this),this.mediaLibrary={video:new tm(this,this.#t)},this.projects=new tb(this,this.#t),this.users=new tT(this,this.#t),this.agent={action:new te(this,this.#t)},this.releases=new tI(this,this.#t)}clone(){return new tP(this.#t,this.config())}config(e){if(void 0===e)return{...this.#r};if(this.#r&&!1===this.#r.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#r=ey(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tP(this.#t,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return eM(this,this.#t,this.#r.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return eF(this,this.#t,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return eF(this,this.#t,e,r)}getDocuments(e,t){return eL(this,this.#t,e,t)}create(e,t){return eX(this,this.#t,e,"create",t)}createIfNotExists(e,t){return ek(this,this.#t,e,t)}createOrReplace(e,t){return eN(this,this.#t,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return eW(this,this.#t,t,n,r,i,s);let o=tE("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||S(e._id);return ez(this,this.#t,a,u,s)}delete(e,t){return eB(this,this.#t,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=tq(t,e);return eH(this,this.#t,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tE("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return eG(this,this.#t,s,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=A(t,e);return eK(this,this.#t,n,t,r)}mutate(e,t){return eQ(this,this.#t,e,t)}patch(e,t){return new eC(e,t,this)}transaction(e){return new ex(e,this)}action(e,t){return eJ(this,this.#t,e,t)}request(e){return e7(this,this.#t,e)}getUrl(e,t){return e3(this,e,t)}getDataUrl(e,t){return e2(this,e,t)}}class tA{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#r;#t;listen=tc;constructor(e,t=ef){this.config(t),this.#t=e,this.assets=new tn(this,this.#t),this.datasets=new tf(this,this.#t),this.live=new th(this),this.mediaLibrary={video:new ty(this,this.#t)},this.projects=new tw(this,this.#t),this.users=new tC(this,this.#t),this.agent={action:new tt(this,this.#t)},this.releases=new tj(this,this.#t),this.observable=new tP(e,t)}clone(){return new tA(this.#t,this.config())}config(e){if(void 0===e)return{...this.#r};if(this.#r&&!1===this.#r.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#r=ey(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tA(this.#t,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return(0,l.lastValueFrom)(eM(this,this.#t,this.#r.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return(0,l.lastValueFrom)(eF(this,this.#t,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return(0,l.lastValueFrom)(eF(this,this.#t,e,r))}getDocuments(e,t){return(0,l.lastValueFrom)(eL(this,this.#t,e,t))}create(e,t){return(0,l.lastValueFrom)(eX(this,this.#t,e,"create",t))}createIfNotExists(e,t){return(0,l.lastValueFrom)(ek(this,this.#t,e,t))}createOrReplace(e,t){return(0,l.lastValueFrom)(eN(this,this.#t,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return(0,R.firstValueFrom)(eW(this,this.#t,t,n,r,i,s));let o=tE("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||S(e._id);return(0,R.firstValueFrom)(ez(this,this.#t,a,u,s))}delete(e,t){return(0,l.lastValueFrom)(eB(this,this.#t,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=tq(t,e);return(0,l.lastValueFrom)(eH(this,this.#t,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tE("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return(0,R.firstValueFrom)(eG(this,this.#t,s,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=A(t,e);return(0,l.lastValueFrom)(eK(this,this.#t,n,t,r))}mutate(e,t){return(0,l.lastValueFrom)(eQ(this,this.#t,e,t))}patch(e,t){return new eP(e,t,this)}transaction(e){return new eS(e,this)}action(e,t){return(0,l.lastValueFrom)(eJ(this,this.#t,e,t))}request(e){return(0,l.lastValueFrom)(e7(this,this.#t,e))}dataRequest(e,t,r){return(0,l.lastValueFrom)(eY(this,this.#t,e,t,r))}getUrl(e,t){return e3(this,e,t)}getDataUrl(e,t){return e2(this,e,t)}}let tO={requester:W(t=[]),createClient:e=>{let r=W(t,{ignoreWarnings:e.ignoreWarnings});return new tA((t,n)=>(n||r)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,lineage:e.lineage,...t}),e)}},tS=(tO.requester,tO.createClient);e.s(["createClient",()=>tS],945736)},709733,e=>{"use strict";e.i(247167);var t=e.i(303756),r=e.i(618566),n=e.i(271645),i=e.i(636536),s=e.i(843476),o=e.i(945736),a=e.i(770703),u=e.i(95187),c=(0,u.createServerReference)("7f56de13969e3f919f8f1b570c1a213162e4697862",u.callServer,void 0,u.findSourceMapURL,"revalidateSyncTags");let l=(0,a.default)(()=>e.A(604448),{ssr:!1}),h=(0,a.default)(()=>e.A(360650),{ssr:!1}),d=(0,a.default)(()=>e.A(864564),{ssr:!1}),p=(0,a.default)(()=>e.A(378671),{ssr:!1});function f(e){e instanceof Error&&"CorsOriginError"===e.name?console.warn(`Sanity Live is unable to connect to the Sanity API as the current origin - ${window.origin} - is not in the list of allowed CORS origins for this Sanity Project.`,e.addOriginUrl&&"Add it here:",e.addOriginUrl?.toString()):console.error(e)}
12function g(e,t){t?console.warn("Sanity Live connection closed, switching to long polling set to a interval of",t/1e3,"seconds and the server gave this reason:",e.reason):console.error("Sanity Live connection closed, automatic revalidation is disabled, the server gave this reason:",e.reason)}function m(e){let{projectId:a,dataset:u,apiHost:m,apiVersion:y,useProjectHostname:v,token:b,requestTagPrefix:w,draftModeEnabled:R,draftModePerspective:q,refreshOnMount:E=!1,refreshOnFocus:$=!R&&("undefined"==typeof window||window.self===window.top),refreshOnReconnect:I=!0,intervalOnGoAway:j=3e4,requestTag:T="next-loader.live",onError:C=f,onGoAway:P=g,revalidateSyncTags:A=c}=e,O=(0,n.useMemo)(()=>(0,o.createClient)({projectId:a,dataset:u,apiHost:m,apiVersion:y,useProjectHostname:v,ignoreBrowserTokenWarning:!0,token:b,useCdn:!1,requestTagPrefix:w}),[m,y,u,a,w,b,v]),[S,x]=(0,n.useState)(!1),V=(0,r.useRouter)(),_=(0,n.useEffectEvent)(e=>{"message"===e.type?A(e.tags).then(e=>{"refresh"===e&&V.refresh()}):"restart"===e.type||"reconnect"===e.type?V.refresh():"goaway"===e.type&&(P(e,j),x(j))});(0,n.useEffect)(()=>{let e=O.live.events({includeDrafts:!!b,tag:T}).subscribe({next:_,error:e=>{C(e)}});return()=>e.unsubscribe()},[O.live,C,T,b]),(0,n.useEffect)(()=>{R&&q?(0,t.f)(q):(0,t.f)("unknown")},[R,q]);let[D,M]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!(0,i.isMaybePresentation)()){if(R&&b)return void(0,t.d)("live");if(R)return void(0,t.d)("static");(0,t.d)("unknown")}},[R,b]),(0,n.useEffect)(()=>{if(!(0,i.isMaybePresentation)())return;let e=new AbortController,r=setTimeout(()=>(0,t.d)("live"),3e3);return window.addEventListener("message",({data:n})=>{n&&"object"==typeof n&&"domain"in n&&"sanity/channels"===n.domain&&"from"in n&&"presentation"===n.from&&(clearTimeout(r),(0,t.d)((0,i.isMaybePreviewWindow)()?"presentation-window":"presentation-iframe"),M(!0),e.abort())},{signal:e.signal}),()=>{clearTimeout(r),e.abort()}},[]);let F=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{if(R)return clearTimeout(F.current),()=>{F.current=setTimeout(()=>{console.warn("Sanity Live: Draft mode was enabled, but is now being disabled")})}},[R]),(0,n.useEffect)(()=>{if(!S)return;let e=setInterval(()=>V.refresh(),S);return()=>clearInterval(e)},[S,V]),(0,s.jsxs)(s.Fragment,{children:[R&&D&&(0,s.jsx)(l,{projectId:a,dataset:u,draftModeEnabled:R,draftModePerspective:q}),!R&&E&&(0,s.jsx)(h,{}),!R&&$&&(0,s.jsx)(d,{}),!R&&I&&(0,s.jsx)(p,{})]})}e.s(["default",()=>m],709733)},7707,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(770703).default)(()=>e.A(364081),{ssr:!1});function n(e){return(0,t.jsx)(r,{...e})}e.s(["default",()=>n])},271737,e=>{"use strict";var t=e.i(207670),r=e.i(919056);function n(...e){return(0,r.twMerge)((0,t.clsx)(e))}e.s(["cn",()=>n])},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function s(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},195057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(190809)._(e.r(998183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",a=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(s.urlQueryToSearchParams(u)));let l=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),l&&"?"!==l[0]&&(l="?"+l),i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${n}${c}${i}${l}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},718967,(e,t,r)=>{"use strict";
12Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return R},MissingStaticPage:function(){return w},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return h},getLocationOrigin:function(){return c},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return q}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>a.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=c();return e.substring(t.length)}function h(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${h(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let g="undefined"!=typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class R extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function q(e){return JSON.stringify({message:e.message,stack:e.stack})}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(718967),i=e.r(652817);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(190809),o=e.r(843476),a=s._(e.r(271645)),u=e.r(195057),c=e.r(8372),l=e.r(818581),h=e.r(718967),d=e.r(405550);e.r(233525);let p=e.r(91949),f=e.r(573668),g=e.r(509396);function m(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}function y(t){var r;let n,i,s,[u,y]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,a.useRef)(null),{href:w,as:R,children:q,prefetch:E=null,passHref:$,replace:I,shallow:j,scroll:T,onClick:C,onMouseEnter:P,onTouchStart:A,legacyBehavior:O=!1,onNavigate:S,ref:x,unstable_dynamicOnHover:V,..._}=t;n=q,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let D=a.default.useContext(c.AppRouterContext),M=!1!==E,F=!1!==E?null===(r=E)||"auto"===r?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,{href:L,as:U}=a.default.useMemo(()=>{let e=m(w);return{href:e,as:R?m(R):e}},[w,R]);if(O){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
12` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=a.default.Children.only(n)}let k=O?i&&"object"==typeof i&&i.ref:x,N=a.default.useCallback(e=>(null!==D&&(b.current=(0,p.mountLinkInstance)(e,L,D,F,M,y)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[M,L,D,F,y]),z={ref:(0,l.useMergedRef)(N,k),onClick(t){O||"function"!=typeof C||C(t),O&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!D||t.defaultPrevented||function(t,r,n,i,s,o,u){if("undefined"!=typeof window){let c,{nodeName:l}=t.currentTarget;if("A"===l.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(699781);a.default.startTransition(()=>{h(n||r,s?"replace":"push",o??!0,i.current)})}}(t,L,U,b,I,T,S)},onMouseEnter(e){O||"function"!=typeof P||P(e),O&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),D&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===V)},onTouchStart:function(e){O||"function"!=typeof A||A(e),O&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),D&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===V)}};return(0,h.isAbsoluteUrl)(U)?z.href=U:O&&!$&&("a"!==i.type||"href"in i.props)||(z.href=(0,d.addBasePath)(U)),s=O?a.default.cloneElement(i,z):(0,o.jsx)("a",{..._,...z,children:n}),(0,o.jsx)(v.Provider,{value:u,children:s})}e.r(284508);let v=(0,a.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]);

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.