1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,273299,t=>{"use strict";var e;let i="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function r(t){return`image-${t.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/,"-$1")}let n=[["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"]],a=["clip","crop","fill","fillmax","max","scale","min"],o=["top","bottom","left","right","center","focalpoint","entropy"],s=["format"];function l(t){let{apiHost:e,projectId:i,dataset:r}=t,n={baseUrl:(e||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn.")},a=t.resource??t["~experimental_resource"];if(a?.type==="media-library"){if("string"!=typeof a.id||0===a.id.length)throw Error('Media library clients must include an id in "resource"');return{...n,mediaLibraryId:a.id}}if(a?.type==="canvas"){if("string"!=typeof a.id||0===a.id.length)throw Error('Canvas clients must include an id in "resource"');return{...n,canvasId:a.id}}if(a?.type==="dataset"){if("string"!=typeof a.id||0===a.id.length)throw Error('Dataset clients must include an id in "resource"');let[t,e]=a.id.split(".");if(!t||!e)throw Error('Dataset resource id must be in the format "projectId.dataset", got: '+a.id);return{...n,projectId:t,dataset:e}}return{...n,projectId:i,dataset:r}}function h(t){return t&&"config"in t&&"function"==typeof t.config?l(t.config()):t&&"clientConfig"in t&&"object"==typeof t.clientConfig?l(t.clientConfig):t||{}}class u{options;constructor(t,e){this.options=t?{...t.options||{},...e||{}}:{...e||{}}}withOptions(t){return new u(this,function(t,e){let i=e.baseUrl||t.baseUrl,r={baseUrl:i};for(let t in e)e.hasOwnProperty(t)&&(r[function(t){for(let e of n){let[i,r]=e;if(t===i||t===r)return i}return t}(t)]=e[t]);return{baseUrl:i,...r}}(this.options,t))}image(t){return this.withOptions({source:t})}dataset(t){return this.withOptions({dataset:t})}projectId(t){return this.withOptions({projectId:t})}withClient(t){let e=h(t),i={...this.options};return delete i.baseUrl,delete i.projectId,delete i.dataset,delete i.mediaLibraryId,delete i.canvasId,new u(null,{...e,...i})}bg(t){return this.withOptions({bg:t})}dpr(t){return this.withOptions(t&&1!==t?{dpr:t}:{})}width(t){return this.withOptions({width:t})}height(t){return this.withOptions({height:t})}focalPoint(t,e){return this.withOptions({focalPoint:{x:t,y:e}})}maxWidth(t){return this.withOptions({maxWidth:t})}minWidth(t){return this.withOptions({minWidth:t})}maxHeight(t){return this.withOptions({maxHeight:t})}minHeight(t){return this.withOptions({minHeight:t})}size(t,e){return this.withOptions({width:t,height:e})}blur(t){return this.withOptions({blur:t})}sharpen(t){return this.withOptions({sharpen:t})}rect(t,e,i,r){return this.withOptions({rect:{left:t,top:e,width:i,height:r}})}format(t){return this.withOptions({format:t})}invert(t){return this.withOptions({invert:t})}orientation(t){return this.withOptions({orientation:t})}quality(t){return this.withOptions({quality:t})}forceDownload(t){return this.withOptions({download:t})}flipHorizontal(){return this.withOptions({flipHorizontal:!0})}flipVertical(){return this.withOptions({flipVertical:!0})}ignoreImageParams(){return this.withOptions({ignoreImageParams:!0})}fit(t){if(-1===a.indexOf(t))throw Error(`Invalid fit mode "${t}"`);return this.withOptions({fit:t})}crop(t){if(-1===o.indexOf(t))throw Error(`Invalid crop mode "${t}"`);return this.withOptions({crop:t})}saturation(t){return this.withOptions({saturation:t})}auto(t){if(-1===s.indexOf(t))throw Error(`Invalid auto mode "${t}"`);return this.withOptions({auto:t})}pad(t){return this.withOptions({pad:t})}vanityName(t){return this.withOptions({vanityName:t})}frame(t){if(1!==t)throw Error(`Invalid frame value "${t}"`);return this.withOptions({frame:t})}url(){return function(t){let e={...t||{}},a=e.source;delete e.source;let o=function(t){var e;let i;if(!t)return null;if("string"==typeof t&&(e=t,/^https?:\/\//.test(`${e}`)))i={asset:{_ref:r(t)}};else if("string"==typeof t)i={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)i={asset:t};else if(t&&"string"==typeof t._id)i={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)i={asset:{_ref:r(t.asset.url)}};else{if("object"!=typeof t.asset)return null;i={...t}}return t.crop&&(i.crop=t.crop),t.hotspot&&(i.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;let e={...t};return e.crop||(e.crop={left:0,top:0,bottom:0,right:0}),e.hotspot||(e.hotspot={x:.5,y:.5,height:1,width:1}),e}(i)}(a);if(!o){if(a&&"object"==typeof a&&null!==a&&a._upload&&(!a.asset||!a.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error(`Unable to resolve image URL from source (${JSON.stringify(a)})`)}let s=function(t){let[,e,r,n]=t.split("-");if(!e||!r||!n)throw Error(`Malformed asset _ref '${t}'. Expected an id like "${i}".`);let[a,o]=r.split("x"),s=+a,l=+o;if(!(isFinite(s)&&isFinite(l)))throw Error(`Malformed asset _ref '${t}'. Expected an id like "${i}".`);return{id:e,width:s,height:l,format:n}}(o.asset._ref||o.asset._id||""),l=Math.round(o.crop.left*s.width),h=Math.round(o.crop.top*s.height),u={left:l,top:h,width:Math.round(s.width-o.crop.right*s.width-l),height:Math.round(s.height-o.crop.bottom*s.height-h)},f=o.hotspot.height*s.height/2,p=o.hotspot.width*s.width/2,d=o.hotspot.x*s.width,c=o.hotspot.y*s.height;return e.rect||e.focalPoint||e.ignoreImageParams||e.crop||(e={...e,...function(t,e){let i,r=e.width,n=e.he
1ight;if(!(r&&n))return{width:r,height:n,rect:t.crop};let a=t.crop,o=t.hotspot,s=r/n;if(a.width/a.height>s){let t=Math.round(a.height),e=Math.round(t*s),r=Math.max(0,Math.round(a.top)),n=Math.max(0,Math.round(Math.round((o.right-o.left)/2+o.left)-e/2));n<a.left?n=a.left:n+e>a.left+a.width&&(n=a.left+a.width-e),i={left:n,top:r,width:e,height:t}}else{let t=a.width,e=Math.round(t/s),r=Math.max(0,Math.round(a.left)),n=Math.max(0,Math.round(Math.round((o.bottom-o.top)/2+o.top)-e/2));n<a.top?n=a.top:n+e>a.top+a.height&&(n=a.top+a.height-e),i={left:r,top:n,width:t,height:e}}return{width:r,height:n,rect:i}}({crop:u,hotspot:{left:d-p,top:c-f,right:d+p,bottom:c+f}},e)}),function(t){let e,i=(t.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=t.vanityName?`/${t.vanityName}`:"",a=`${t.asset.id}-${t.asset.width}x${t.asset.height}.${t.asset.format}${r}`;e=t.mediaLibraryId?`${i}/media-libraries/${t.mediaLibraryId}/images/${a}`:t.canvasId?`${i}/images/canvases/${t.canvasId}/${a}`:`${i}/images/${t.projectId}/${t.dataset}/${a}`;let o=[];if(t.rect){let{left:e,top:i,width:r,height:n}=t.rect;(0!==e||0!==i||n!==t.asset.height||r!==t.asset.width)&&o.push(`rect=${e},${i},${r},${n}`)}t.bg&&o.push(`bg=${t.bg}`),t.focalPoint&&(o.push(`fp-x=${t.focalPoint.x}`),o.push(`fp-y=${t.focalPoint.y}`));let s=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return s&&o.push(`flip=${s}`),n.forEach(e=>{let[i,r]=e;"u">typeof t[i]?o.push(`${r}=${encodeURIComponent(t[i])}`):"u">typeof t[r]&&o.push(`${r}=${encodeURIComponent(t[r])}`)}),0===o.length?e:`${e}?${o.join("&")}`}({...e,asset:s})}(this.options)}toString(){return this.url()}}e=["The default export of @sanity/image-url has been deprecated. Use the named export `createImageUrlBuilder` instead."],t.s(["createImageUrlBuilder",0,function(t){return new u(null,h(t))}])},210810,t=>{"use strict";let e="https://cdn.sanity.io",i=/^https:\/\/cdn\.sanity\./,r=/^https:\/\/cdn\.[^/]+\/(images|files)\/[^/]+\/.*?[a-zA-Z0-9_]{24,40}.*$/,n=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+\.[a-z0-9]+$/,a=/^file-([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+$/,o=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})-\d+x\d+\.[a-z0-9]+$/,s=/^image-([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-\d+x\d+-[a-z0-9]+$/,l=/^(images|files)\/([a-z0-9]+)\/([a-z0-9][-\w]*)\//,h=/^(?:image-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-\d+x\d+-[a-z0-9]+|file-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+)$/,u="sanity.fileAsset",f={projectId:"a",dataset:"b"},p="upload-in-progress-placeholder",d="upload-in-progress";class c extends Error{constructor(t,e="Failed to resolve asset ID from source"){super(e),this.unresolvable=!0,this.input=t}}function m(t){return(...e)=>{try{return t(...e)}catch(t){if(t.unresolvable&&"input"in t)return;throw t}}}function g(t){return null!==t&&!Array.isArray(t)&&"object"==typeof t}function w(t){return g(t)&&"string"==typeof t._ref}function $(t){return g(t)&&"string"==typeof t.path}function y(t){return g(t)&&"string"==typeof t.url}function b(t){return g(t)&&!!t.asset&&"object"==typeof t.asset}function I(t){return g(t)&&!!t._upload&&!("asset"in t)}function A(t){return i.test(t)||r.test(t)}let v=Object.freeze({left:0,top:0,bottom:0,right:0}),x=Object.freeze({x:.5,y:.5,height:1,width:1}),O=()=>({...v}),_=()=>({...x});function U(t,e){let i=e?.projectId||t.projectId,r=e?.dataset||t.dataset;if(!i||!r)throw Error("Project details (projectId and dataset) required to resolve path for image");let n="metadata"in t?t.metadata.dimensions:{width:t.width,height:t.height},a="originalFilename"in t?t.originalFilename:void 0,{assetId:o,extension:s,vanityFilename:l}=t,{width:h,height:u}=n,f=C(a,l,e);return`images/${i}/${r}/${o}-${h}x${u}.${s}${f}`}function j(t,e){let i=e?.projectId||t.projectId,r=e?.dataset||t.dataset;if(!i||!r)throw Error("Project details (projectId and dataset) required to resolve path for file");let n="originalFilename"in t?t.originalFilename:void 0,{assetId:a,extension:o,vanityFilename:s}=t,l=C(n,s,e);return`files/${i}/${r}/${a}.${o}${l}`}function E(t){if(l.test(t))return t;if(!A(t))throw new c(`Failed to resolve path from URL "${t}"`);return new URL(t).pathname.replace(/^\/+/,"")}let R=m(E),z=m(function(t){let e=(R(t)||t).replace(/^(images|files)\/[a-z0-9]+\/[a-z0-9][-\w]\/*/,"");if(!M(e))throw new c(`Failed to resolve filename from URL "${t}"`);return e});function M(t){return n.test(t)||o.test(t)}function C(t,e,i){let r=e||t;return i?.useVanityName!==!1&&r?`/${r}`:""}function L(t){if(!a.test(t))throw Error(`Malformed file asset ID '${t}'. Expected an id like "file-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-pdf"`);let[,e,i]=t.split("-");return{type:"file",assetId:e,extension:i}}function P(t){let[,e,i,r]=t.split("-"),[n,a]=(i||"").split("x").map(Number);if(!e||!i||!r||!(n>0)||!(a>0))throw Error(`Malformed asset ID '${t}'. Expected an id like "image-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-2000x3000-jpg".`);return{type:"image",assetId:e,width:n,height:a,extension:r}}function D(t){if(!A(t))throw Error(`URL is not a valid Sanity asset URL: ${t}`);let e=new URL(t).pathname.replace(/^\/+/,""),[i,,r,n]=e.match(l)||[];if(!i||!r||!n)throw Error(`URL is not a valid Sanity asset URL: ${t}`);let[h,u]=e.slice(i.length).split("/");return{...function(t){let e=z(t)||"";if(!M(e))throw Error(`Invalid image/file asset filename: ${t}`);
1try{let t=o.test(e)?"image":"file",r=e.replace(/\.([a-z0-9+]+)$/i,"-$1");var i=`${t}-${r}`;if(s.test(i))return P(i);if(a.test(i))return L(i);throw Error(`Invalid image/file asset ID: ${i}`)}catch{throw Error(`Invalid image/file asset filename: ${t}`)}}(h),projectId:r,dataset:n,vanityFilename:u}}function F(t){if(I(t))return{width:0,height:0,aspectRatio:0};let{width:e,height:i}=P(k(t));return{width:e,height:i,aspectRatio:e/i}}let S=m(F);function H(t,e){if(I(t))return{asset:{_id:p,_type:"sanity.imageAsset",assetId:d,extension:"tmp",url:"",path:"",metadata:{dimensions:{width:1,height:1,aspectRatio:1}}},crop:O(),hotspot:_()};let i=e||K(t);return{asset:N(t,i),crop:t.crop||O(),hotspot:t.hotspot||_()}}function N(t,i){let r={...i||q(t),useVanityName:!1},n=k(t),a=(t.asset||t).metadata||{},{assetId:o,width:s,height:l,extension:h}=P(n),u={...g(t)&&"sanity.imageAsset"===t._type?t:{},_id:n,_type:"sanity.imageAsset",assetId:o,extension:h,metadata:{...a,dimensions:{width:s,height:l,aspectRatio:s/l}},url:"",path:""};return{...u,path:U(u,r),url:`${r?.baseUrl||e}/${U(u,r)}`}}function V(t,e){if(I(t))return{asset:{_id:p,_type:u,assetId:d,extension:"tmp",url:"",path:"",metadata:{}}};let i=e||K(t);return{asset:Z(t,i)}}function Z(t,i){if(I(t))return{assetId:d,_id:p,_type:u,extension:"tmp",metadata:{},url:"",path:""};let r={...i||q(t),useVanityName:!1},n=k(t),a=t.asset||t,{assetId:o,extension:s}=L(n),l={...g(t)&&"sanity.fileAsset"===t._type?t:{},_id:n,_type:"sanity.fileAsset",assetId:o,extension:s,metadata:a.metadata||{},url:"",path:""};return{...l,path:j(l,r),url:`${r?.baseUrl||e}/${j(l,r)}`}}function k(t){if(I(t))return p;let i=b(t)?t.asset:t,r="";if("string"==typeof i?r=T(i):w(i)?r=i._ref:g(i)&&"string"==typeof i._id?r=i._id:$(i)?r=W(`${e}/${i.path}`):y(i)&&(r=W(i.url)),!(r&&h.test(r)))throw new c(t);return r}m(function(t){return I(t)?"tmp":Q(t)?V(t,f).asset.extension:H(t,f).asset.extension}),m(H),m(N),m(V),m(Z);let B=m(k);function T(t){var i,r;if(h.test(t))return t;let a=A(t)?new URL(t).pathname:t;if(0===a.indexOf("/images")||0===a.indexOf("/files"))return W(t);if(l.test(t))return W(`${e}/${t}`);if(i=t,n.test(i))return W(`${e}/files/a/b/${t}`);if(r=t,o.test(r))return W(`${e}/images/a/b/${t}`);throw new c(t)}function W(t){let[e,,,i]=E(t).split("/");return`${e.replace(/s$/,"")}-${i.replace(/\./g,"-")}`}function q(t){let e=function t(e){if(b(e))return t(e.asset);if(!w(e)){if("string"==typeof e)return l.test(R(e)||"")?E(e):void 0;if($(e))return e.path;if(y(e))return E(e.url)}}(t);if(!e)throw new c(t,"Failed to resolve project ID and dataset from source");let[,,i,r]=e.match(l)||[];if(!i||!r)throw new c(t,"Failed to resolve project ID and dataset from source");return{projectId:i,dataset:r}}m(T);let K=m(q);function Q(t){let e=B(t);return!!e&&e.startsWith("file-")}t.s(["getFileAsset",0,Z,"getImageDimensions",0,F,"isAssetObjectStub",0,b,"isDefaultCrop",0,t=>{let{top:e,bottom:i,left:r,right:n}=t,{top:a,bottom:o,left:s,right:l}=v;return e===a&&i===o&&r===s&&n===l},"isDefaultHotspot",0,t=>{let{x:e,y:i,width:r,height:n}=t,{x:a,y:o,width:s,height:l}=x;return e===a&&i===o&&r===s&&n===l},"isFileAssetId",0,function(t){return a.test(t)},"isFileSource",0,Q,"isImageAssetId",0,function(t){return s.test(t)},"isImageSource",0,function(t){let e=B(t);return!!e&&e.startsWith("image-")},"isSanityImageUrl",0,function(t){return"image"===function(t){try{return D(t).type}catch{return!1}}(t)},"parseImageAssetUrl",0,function(t){let e=D(t);if("image"!==e.type)throw Error(`URL is not a valid Sanity image asset URL: ${t}`);return e},"tryGetImageDimensions",0,S])},77148,t=>{t.v(e=>Promise.all(["static/chunks/0ocshmtlmhvx1.js"].map(e=>t.l(e))).then(()=>e(845682)))}]);
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.