1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a6fafdec27`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7fb2df1b-9325-40ba-87b9-ae861256b685`,e._sentryDebugIdIdentifier=`sentry-dbid-7fb2df1b-9325-40ba-87b9-ae861256b685`)}catch{}})();import{t as e}from"./C3PmtMUf2.js";function t(t,r=``){if(r.includes(`svg`)){let r=n(e(t));return{width:r.width,height:r.height}}{let e=document.createElement(`img`);return new Promise(n=>{e.addEventListener(`load`,e=>{n({width:e.target.naturalWidth,height:e.target.naturalHeight})}),e.src=t})}}function n(e){let t=e.viewBox.baseVal&&e.viewBox.baseVal.width?`${e.viewBox.baseVal.x} ${e.viewBox.baseVal.y} ${e.viewBox.baseVal.width} ${e.viewBox.baseVal.height}`:`0 0 ${e.width.baseVal.value} ${e.height.baseVal.value}`;return e.setAttribute(`viewBox`,t),e.setAttribute(`width`,`100%`),e.setAttribute(`height`,`100%`),{width:e.viewBox.baseVal.width||e.width.baseVal.value,height:e.viewBox.baseVal.height||e.height.baseVal.value}}function r(e){let t=e.indexOf(`/image-uploaded/`);return t===-1?e:e.slice(t)}var i=1200;function a(e){return new Promise((t,n)=>{let i=document.createElement(`img`);i.crossOrigin=`anonymous`,i.onload=()=>t(i),i.onerror=n,i.src=r(e)})}async function o(e,{brightness:t=1}={}){if(typeof document>`u`)return null;let n=await a(e),r=n.naturalWidth,o=n.naturalHeight;(!r||!o)&&(r=i,o=i);let s=Math.max(r,o);if(s<i){let e=i/s;r=Math.round(r*e),o=Math.round(o*e)}let c=document.createElement(`canvas`);c.width=r,c.height=o;let l=c.getContext(`2d`),u=`filter`in l;u?(l.filter=`brightness(${t}) grayscale(1) contrast(999999%)`,l.drawImage(n,0,0,r,o),l.filter=`none`):l.drawImage(n,0,0,r,o);let d=l.getImageData(0,0,c.width,c.height),f=d.data;for(let e=0;e<f.length;e+=4){let n=(255-(u?f[e]:(.2126*f[e]+.7152*f[e+1]+.0722*f[e+2])*t>=127.5?255:0))*(f[e+3]/255);f[e]=0,f[e+1]=0,f[e+2]=0,f[e+3]=Math.round(n)}return l.putImageData(d,0,0),c.toDataURL(`image/png`)}var s=64,c=.95;async function l(e){if(typeof document>`u`)return!1;try{let t=await a(e),n=document.createElement(`canvas`);n.width=s,n.height=s;let r=n.getContext(`2d`);r.drawImage(t,0,0,s,s);let{data:i}=r.getImageData(0,0,s,s),o=0,l=i.length/4;for(let e=3;e<i.length;e+=4)i[e]>200&&o++;return o/l>=c}catch{return!1}}var u=8;async function d(e,{alphaMin:t=u}={}){if(typeof document>`u`||!e)return null;try{let n=await a(e),r=n.naturalWidth,o=n.naturalHeight;(!r||!o)&&(r=i,o=i);let s=i/Math.max(r,o),c=Math.max(1,Math.round(r*s)),l=Math.max(1,Math.round(o*s)),u=document.createElement(`canvas`);u.width=c,u.height=l;let d=u.getContext(`2d`);d.drawImage(n,0,0,c,l);let{data:f}=d.getImageData(0,0,c,l),p=c,m=l,h=-1,g=-1;for(let e=0;e<l;e++){let n=e*c*4;for(let r=0;r<c;r++)f[n+r*4+3]>=t&&(r<p&&(p=r),r>h&&(h=r),e<m&&(m=e),g=e)}return h<0?null:(p=Math.max(0,p-1),m=Math.max(0,m-1),h=Math.min(c-1,h+1),g=Math.min(l-1,g+1),{left:p/c,top:m/l,width:(h-p+1)/c,height:(g-m+1)/l})}catch{return null}}export{l as i,t as n,o as r,d 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.