PageSourceSearch

https://chrismacarifilms.com/_nuxt/CCkUW_u0.js

js chrismacarifilms.com collected 2026-10-06 13:14:09 UTC 10,237 bytes, 1 lines download raw bytes

1import{a5 as j,a6 as B,a7 as q,a8 as I,a9 as H,aa as M,ab as O,c as w,z as P,ac as k,r as x,l as L,a as C,N as U,o as A,ad as _,f as b,ae as R,e as F}from"#entry";async function D(t,e){return await Q(e).catch(i=>(console.error("Failed to get image meta for "+e,i+""),{width:0,height:0,ratio:0}))}async function Q(t){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((e,r)=>{const i=new Image;i.onload=()=>{const s={width:i.width,height:i.height,ratio:i.width/i.height};e(s)},i.onerror=s=>r(s),i.src=t})}function z(t){return e=>e?t[e]||e:t.missingValue}function T({formatter:t,keyMap:e,joinWith:r="/",valueMap:i}={}){t||(t=(n,o)=>`${n}=${o}`),e&&typeof e!="function"&&(e=z(e));const s=i||{};return Object.keys(s).forEach(n=>{typeof s[n]!="function"&&(s[n]=z(s[n]))}),(n={})=>Object.entries(n).filter(([a,l])=>typeof l<"u").map(([a,l])=>{const d=s[a];return typeof d=="function"&&(l=d(n[a])),a=typeof e=="function"?e(a):a,t(a,l)}).join(r)}function h(t=""){if(typeof t=="number")return t;if(typeof t=="string"&&t.replace("px","").match(/^\d+$/g))return Number.parseInt(t,10)}function V(t=""){if(t===void 0||!t.length)return[];const e=new Set;for(const r of t.split(" ")){const i=Number.parseInt(r.replace("x",""));i&&e.add(i)}return Array.from(e)}function G(t){if(t.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function J(t){const e={};if(typeof t=="string")for(const r of t.split(/[\s,]+/).filter(i=>i)){const i=r.split(":");i.length!==2?e["1px"]=i[0].trim():e[i[0].trim()]=i[1].trim()}else Object.assign(e,t);return e}function Z(t){const e={options:t},r=(s,n={})=>N(e,s,n),i=(s,n={},o={})=>r(s,{...o,modifiers:j(n,o.modifiers||{})}).url;for(const s in t.presets)i[s]=(n,o,a)=>i(n,o,{...t.presets[s],...a});return i.options=t,i.getImage=r,i.getMeta=(s,n)=>Y(e,s,n),i.getSizes=(s,n)=>ee(e,s,n),e.$img=i,i}async function Y(t,e,r){const i=N(t,e,{...r});return typeof i.getMeta=="function"?await i.getMeta():await D(t,i.url)}function N(t,e,r){if(e&&typeof e!="string")throw new TypeError(`input must be a string (received ${typeof e}: ${JSON.stringify(e)})`);if(!e||e.startsWith("data:"))return{url:e};const{provider:i,defaults:s}=X(t,r.provider||t.options.provider),n=K(t,r.preset);if(e=q(e)?e:B(e),!i.supportsAlias){for(const d in t.options.alias)if(e.startsWith(d)){const f=t.options.alias[d];f&&(e=I(f,e.slice(d.length)))}}if(i.validateDomains&&q(e)){const d=H(e).host;if(!t.options.domains.find(f=>f===d))return{url:e}}const o=j(r,n,s);o.modifiers={...o.modifiers};const a=o.modifiers.format;o.modifiers?.width&&(o.modifiers.width=h(o.modifiers.width)),o.modifiers?.height&&(o.modifiers.height=h(o.modifiers.height));const l=i.getImage(e,o,t);return l.format=l.format||a||"",l}function X(t,e){const r=t.options.providers[e];if(!r)throw new Error("Unknown provider: "+e);return r}function K(t,e){if(!e)return{};if(!t.options.presets[e])throw new Error("Unknown preset: "+e);return t.options.presets[e]}function ee(t,e,r){const i=h(r.modifiers?.width),s=h(r.modifiers?.height),n=J(r.sizes),o=r.densities?.trim()?V(r.densities.trim()):t.options.densities;G(o);const a=i&&s?s/i:0,l=[],d=[];if(Object.keys(n).length>=1){for(const u in n){const g=$(u,String(n[u]),s,a,t);if(g!==void 0){l.push({size:g.size,screenMaxWidth:g.screenMaxWidth,media:`(max-width: ${g.screenMaxWidth}px)`});for(const v of o)d.push({width:g._cWidth*v,src:W(t,e,r,g,v)})}}te(l)}else for(const u of o){const g=Object.keys(n)[0];let v=g?$(g,String(n[g]),s,a,t):void 0;v===void 0&&(v={size:"",screenMaxWidth:0,_cWidth:r.modifiers?.width,_cHeight:r.modifiers?.height}),d.push({width:u,src:W(t,e,r,v,u)})}re(d);const f=d[d.length-1],p=l.length?l.map(u=>`${u.media?u.media+" ":""}${u.size}`).join(", "):void 0,y=p?"w":"x",S=d.map(u=>`${u.src} ${u.width}${y}`).join(", ");return{sizes:p,srcset:S,src:f?.src}}function $(t,e,r,i,s){const n=s.options.screens&&s.options.screens[t]||Number.parseInt(t),o=e.endsWith("vw");if(!o&&/^\d+$/.test(e)&&(e=e+"px"),!o&&!e.endsWith("px"))return;let a=Number.parseInt(e);if(!n||!a)return;o&&(a=Math.round(a/100*n));const l=i?Math.round(a*i):r;return{size:e,screenMaxWidth:n,_cWidth:a,_cHeight:l}}function W(t,e,r,i,s){return t.$img(e,{...r.modifiers,width:i._cWidth?i._cWidth*s:void 0,height:i._cHeight?i._cHeight*s:void 0},r)}function te(t){t.sort((r,i)=>r.screenMaxWidth-i.screenMaxWidth);let e=null;for(let r=t.length-1;r>=0;r--){const i=t[r];
1i.media===e&&t.splice(r,1),e=i.media}for(let r=0;r<t.length;r++)t[r].media=t[r+1]?.media||""}function re(t){t.sort((r,i)=>r.width-i.width);let e=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.width===e&&t.splice(r,1),e=i.width}}const ie="https://cdn.sanity.io/images",se=T({keyMap:{format:"fm",height:"h",quality:"q",width:"w",background:"bg",download:"dl",dpr:"dpr",sharpen:"sharp",orientation:"or","min-height":"min-h","max-height":"max-h","min-width":"min-w","max-width":"max-w",minHeight:"min-h",maxHeight:"max-h",minWidth:"min-w",maxWidth:"max-w",saturation:"sat"},valueMap:{format:{jpeg:"jpg"},fit:{cover:"crop",contain:"fill",fill:"scale",inside:"min",outside:"max"}},joinWith:"&",formatter:(t,e)=>String(e)==="true"?t:`${t}=${e}`}),ne=t=>{const e=t.match(/-(?<width>\d*)x(?<height>\d*)-(?<format>.*)$/);if(!e||!e.groups)return{width:void 0,height:void 0,format:void 0};const r=Number(e.groups.width),i=Number(e.groups.height);return{width:r,height:i,format:e.groups.format}},oe=(t,{modifiers:e={},projectId:r,dataset:i="production"}={})=>{const{height:s,width:n}=ne(t);if(e.crop&&typeof e.crop!="string"&&n&&s){const f=e.crop.left*n,p=e.crop.top*s,y=n-e.crop.right*n,S=s-e.crop.bottom*s;e.rect=[f,p,y-f,S-p].map(u=>u.toFixed(0)).join(","),delete e.crop}e.hotspot&&typeof e.hotspot!="string"&&(e["fp-x"]=e.hotspot.x,e["fp-y"]=e.hotspot.y,delete e.hotspot),(!e.format||e.format==="auto")&&(e.format==="auto"&&delete e.format,e.auto="format"),e.fit==="contain"&&!e.bg&&(e.bg="ffffff");const o=se(e),a=t.split("-").slice(1),l=a.pop(),d=a.join("-")+"."+l+(o?"?"+o:"");return{url:I(ie,r,i,d)}},ae=Object.freeze(Object.defineProperty({__proto__:null,getImage:oe},Symbol.toStringTag,{value:"Module"})),ce={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"sanity",domains:[],alias:{},densities:[1,2],format:["webp"],providers:{sanity:{provider:ae,defaults:{projectId:"l7xif8eq"}}}},E=t=>{const e=O(),r=M();return r.$img||r._img||(r._img=Z({...ce,event:r.ssrContext?.event,nuxt:{baseURL:e.app.baseURL},runtimeConfig:e}))};function de(t){performance?.mark?.("mark_feature_usage",{detail:{feature:t}})}const le={src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[Number,String],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:String,required:!1},sizes:{type:[Object,String],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},alt:{type:String,required:!1},referrerpolicy:{type:String,required:!1},usemap:{type:String,required:!1},longdesc:{type:String,required:!1},ismap:{type:Boolean,required:!1},loading:{type:String,required:!1,validator:t=>["lazy","eager"].includes(t)},crossorigin:{type:[Boolean,String],required:!1,validator:t=>["anonymous","use-credentials","",!0,!1].includes(t)},decoding:{type:String,required:!1,validator:t=>["async","auto","sync"].includes(t)},nonce:{type:[String],required:!1}},ue=t=>{const e=w(()=>({provider:t.provider,preset:t.preset})),r=w(()=>({width:h(t.width),height:h(t.height),alt:t.alt,referrerpolicy:t.referrerpolicy,usemap:t.usemap,longdesc:t.longdesc,ismap:t.
1ismap,crossorigin:t.crossorigin===!0?"anonymous":t.crossorigin||void 0,loading:t.loading,decoding:t.decoding,nonce:t.nonce})),i=E(),s=w(()=>({...t.modifiers,width:h(t.width),height:h(t.height),format:t.format,quality:t.quality||i.options.quality,background:t.background,fit:t.fit}));return{options:e,attrs:r,modifiers:s}},fe={...le,placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},custom:{type:Boolean,required:!1}},ge=["src"],he=P({__name:"NuxtImg",props:fe,emits:["load","error"],setup(t,{emit:e}){const r=t,i=k(),s=e,n=!1,o=E(),a=ue(r),l=x(!1),d=x(),f=w(()=>o.getSizes(r.src,{...a.options.value,sizes:r.sizes,densities:r.densities,modifiers:{...a.modifiers.value,width:h(r.width),height:h(r.height)}})),p=w(()=>{const c={...a.attrs.value,"data-nuxt-img":""};return(!r.placeholder||l.value)&&(c.sizes=f.value.sizes,c.srcset=f.value.srcset),c}),y=w(()=>{let c=r.placeholder;if(c===""&&(c=!0),!c||l.value)return!1;if(typeof c=="string")return c;const m=Array.isArray(c)?c:typeof c=="number"?[c,c]:[10,10];return o(r.src,{...a.modifiers.value,width:m[0],height:m[1],quality:m[2]||50,blur:m[3]||3},a.options.value)}),S=w(()=>r.sizes?f.value.src:o(r.src,a.modifiers.value,a.options.value)),u=w(()=>y.value?y.value:S.value),v=M().isHydrating;return L(()=>{if(y.value||r.custom){const c=new Image;S.value&&(c.src=S.value),r.sizes&&(c.sizes=f.value.sizes||"",c.srcset=f.value.srcset),c.onload=m=>{l.value=!0,s("load",m)},c.onerror=m=>{s("error",m)},de("nuxt-image");return}d.value&&(d.value.complete&&v&&(d.value.getAttribute("data-error")?s("error",new Event("error")):s("load",new Event("load"))),d.value.onload=c=>{s("load",c)},d.value.onerror=c=>{s("error",c)})}),(c,m)=>c.custom?U(c.$slots,"default",R(_({key:1},{...b(n)?{onerror:"this.setAttribute('data-error', 1)"}:{},imgAttrs:{...p.value,...b(i)},isLoaded:l.value,src:u.value}))):(A(),C("img",_({key:0,ref_key:"imgEl",ref:d,class:y.value&&!l.value?c.placeholderClass:void 0},{...b(n)?{onerror:"this.setAttribute('data-error', 1)"}:{},...p.value,...b(i)},{src:u.value}),null,16,ge))}}),pe={__name:"Image",props:{src:String,width:{type:String,default:"800"},loading:{type:String,default:"lazy"},alt:String,crossorigin:String},setup(t){return(e,r)=>{const i=he;return A(),F(i,{provider:"sanity",src:t.src,width:t.width,alt:t.alt,loading:t.loading,crossorigin:t.crossorigin,format:"webp",quality:"75"},null,8,["src","width","alt","loading","crossorigin"])}}};export{pe as 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.