1import{c as e}from"./BXKBYBul.js";var t={production:`quero-cms-prod`,staging:`quero-cms-homolog`,default:`quero-cms-prod`},n=`https://media-hub.quero.space`;function r(e){let t=e.bareKey?e.fileName:`uploads/${e.fileName}`;return`${n}/img/${e.modifiers}/${e.backend}/${t}`}function i({operation:e,width:t,height:n,dpr:r,quality:i=80,format:a=`webp`}){let o=typeof t==`number`?Math.round(t*r):void 0,s=typeof n==`number`?Math.round(n*r):void 0;switch(e){case`width`:return`w_${o??2e3},f_${a},q_${i}`;case`height`:return`h_${s??2e3},f_${a},q_${i}`;case`cdn`:return`_`;default:return`s_${o??2e3}x${s??2e3},fit_cover,f_${a},q_${i}`}}var a=[`assets.querobolsa.com.br`,`qb-assets.querobolsa.com.br`];function o(e){return a.some(t=>e.includes(`://${t}/`)||e.startsWith(`//${t}/`))}function s(e,t){let r=e.startsWith(`//`)?`https:${e}`:e,{dpr:i=1,operation:a=`cover`,width:o,height:s,quality:c=80,format:l=`webp`}=t,u=typeof o==`number`?Math.round(o*i):void 0,d=typeof s==`number`?Math.round(s*i):void 0,f=new URLSearchParams({url:r,f:l,q:String(c),fit:a===`cover`?`cover`:`inside`});return typeof u==`number`&&f.set(`w`,String(u)),typeof d==`number`&&f.set(`h`,String(d)),`${n}/proxy?${f.toString()}`}function c(t){let n=e().public.cmsCdn;return n?`${n}/uploads/${t}`:``}function l(){return t[e().public.environment]??t.default}function u(e,t={}){if(!e)return``;if(typeof e==`string`){if(o(e))return s(e,t);if(e.startsWith(`http://`)||e.startsWith(`https://`))return e;let n=e.includes(`.`)?e:`${e}.jpg`,{dpr:a=1,operation:c=`cover`,width:u,height:d,quality:f,format:p}=t;return r({backend:l(),modifiers:i({operation:c,width:u,height:d,dpr:a,quality:f,format:p}),fileName:n})}let n=e.filename_disk??e.filenameDisk;if(!n)return e.id?u(e.id,t):``;if(e.storage&&e.storage!==`aws`)return c(n);let[,a]=n.split(`.`);if(a===`svg`)return c(n);let{dpr:d=1,operation:f=`cover`,width:p,height:m,quality:h,format:g}=t,_=p??e.width,v=m??e.height;return r({backend:l(),modifiers:i({operation:f,width:_,height:v,dpr:d,quality:h,format:g}),fileName:n})}export{u as t};
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.