PageSourceSearch

https://www.tribute.co/static/v3/dist/creator/filepond-plugin-image-transform-bwwz6mrc.js

js tribute.co collected 2026-09-24 20:01:36 UTC 45,096 bytes, 24 lines download raw bytes

1import{Dj as O8}from"./main-creator-kydzhv9p.js";var T8=O8((z0,C0)=>{/*!
2 * FilePondPluginImageTransform 3.8.7
3 * Licensed under MIT, https://opensource.org/licenses/MIT/
4 * Please visit https://pqina.nl/filepond/ for details.
5 */(function(Y0,U0){typeof z0==="object"&&typeof C0<"u"?C0.exports=U0():typeof define==="function"&&define.amd?define(U0):(Y0=Y0||self,Y0.FilePondPluginImageTransform=U0())})(z0,function(){var Y0=function(J){return/^image/.test(J.type)},U0=function(J){return J.substr(0,J.lastIndexOf("."))||J},t0={jpeg:"jpg","svg+xml":"svg"},e0=function(J,Q){var X=U0(J),Y=Q.split("/")[1],U=t0[Y]||Y;return"".concat(X,".").concat(U)},J7=function(J){return/jpeg|png|svg\+xml/.test(J)?J:"image/jpeg"},Q7=function(J){return/^image/.test(J.type)},X7={1:function(){return[1,0,0,1,0,0]},2:function(J){return[-1,0,0,1,J,0]},3:function(J,Q){return[-1,0,0,-1,J,Q]},4:function(J,Q){return[1,0,0,-1,0,Q]},5:function(){return[0,1,1,0,0,0]},6:function(J,Q){return[0,1,-1,0,Q,0]},7:function(J,Q){return[0,-1,-1,0,Q,J]},8:function(J){return[0,-1,1,0,0,J]}},Z7=function(J,Q,X){if(X===-1)X=1;return X7[X](J,Q)},$0=function(J,Q){return{x:J,y:Q}},Y7=function(J,Q){return J.x*Q.x+J.y*Q.y},_0=function(J,Q){return $0(J.x-Q.x,J.y-Q.y)},U7=function(J,Q){return Y7(_0(J,Q),_0(J,Q))},j0=function(J,Q){return Math.sqrt(U7(J,Q))},w0=function(J,Q){var X=J,Y=1.5707963267948966,U=Q,G=1.5707963267948966-Q,$=Math.sin(Y),K=Math.sin(U),N=Math.sin(G),V=Math.cos(G),H=X/$,q=H*K,I=H*N;return $0(V*q,V*I)},$7=function(J,Q){var{width:X,height:Y}=J,U=w0(X,Q),G=w0(Y,Q),$=$0(J.x+Math.abs(U.x),J.y-Math.abs(U.y)),K=$0(J.x+J.width+Math.abs(G.y),J.y+Math.abs(G.x)),N=$0(J.x-Math.abs(G.y),J.y+J.height-Math.abs(G.x));return{width:j0($,K),height:j0($,N)}},k0=function(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{x:0.5,y:0.5},U=Y.x>0.5?1-Y.x:Y.x,G=Y.y>0.5?1-Y.y:Y.y,$=U*2*J.width,K=G*2*J.height,N=$7(Q,X);return Math.max(N.width/$,N.height/K)},x0=function(J,Q){var X=J.width,Y=X*Q;if(Y>J.height)Y=J.height,X=Y/Q;var U=(J.width-X)*0.5,G=(J.height-Y)*0.5;return{x:U,y:G,width:X,height:Y}},b0=function(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=J.height/J.width,U=1,G=Q,$=1,K=Y;if(K>G)K=G,$=K/Y;var N=Math.max(U/$,G/K),V=J.width/(X*N*$),H=V*Q;return{width:V,height:H}},v0=function(J){J.width=1,J.height=1;var Q=J.getContext("2d");Q.clearRect(0,0,1,1)},y0=function(J){return J&&(J.horizontal||J.vertical)},G7=function(J,Q,X){if(Q<=1&&!y0(X))return J.width=J.naturalWidth,J.height=J.naturalHeight,J;var Y=document.createElement("canvas"),U=J.naturalWidth,G=J.naturalHeight,$=Q>=5&&Q<=8;if($)Y.width=G,Y.height=U;else Y.width=U,Y.height=G;var K=Y.getContext("2d");if(Q)K.transform.apply(K,Z7(U,G,Q));if(y0(X)){var N=[1,0,0,1,0,0];if(!$&&X.horizontal||$&X.vertical)N[0]=-1,N[4]=U;if(!$&&X.vertical||$&&X.horizontal)N[3]=-1,N[5]=G;K.transform.apply(K,N)}return K.drawImage(J,0,0,U,G),Y},K7=function(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},U=Y.canvasMemoryLimit,G=Y.background,$=G===void 0?null:G,K=X.zoom||1,N=G7(J,Q,X.flip),V={width:N.width,height:N.height},H=X.aspectRatio||V.height/V.width,q=b0(V,H,K);if(U){var I=q.width*q.height;if(I>U){var L=Math.sqrt(U)/Math.sqrt(I);V.width=Math.floor(V.width*L),V.height=Math.floor(V.height*L),q=b0(V,H,K)}}var F=document.createElement("canvas"),W={x:q.width*0.5,y:q.height*0.5},O={x:0,y:0,width:q.width,height:q.height,center:W},P=typeof X.scaleToFit>"u"||X.scaleToFit,R=K*k0(V,x0(O,H),X.rotation,P?X.center:{x:0.5,y:0.5});F.width=Math.round(q.width/R),F.height=Math.round(q.height/R),W.x/=R,W.y/=R;var M={x:W.x-V.width*(X.center?X.center.x:0.5),y:W.y-V.height*(X.center?X.center.y:0.5)},A=F.getContext("2d");if($)A.fillStyle=$,A.fillRect(0,0,F.width,F.height);A.translate(W.x,W.y),A.rotate(X.rotation||0),A.drawImage(N,M.x-W.x,M.y-W.y,V.width,V.height);var _=A.getImageData(0,0,F.width,F.height);return v0(F),_},N7=function(){return typeof window<"u"&&typeof window.document<"u"}();if(N7){if(!HTMLCanvasElement.prototype.toBlob)Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(J,Q,X){var Y=this.toDataURL(Q,X).split(",")[1];setTimeout(function(){var U=atob(Y),G=U.length,$=new Uint8Array(G);for(var K=0;K<G;K++)$[K]=U.charCodeAt(K);J(new Blob([$],{type:Q||"image/png"}))})}})}var I7=function(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new Promise(function(Y){var U=X?X(J):J;Promise.resolve(U).then(function(G){G.toBlob(Y,Q.type,Q.quality)})})},L0=function(J,Q){return G0(J.x*Q,J.y*Q)},V0=function(J,Q){return G0(J.x+Q.x,J.y+Q.y)},f0=function(J){var Q=Math.sqrt(J.x*J.x+J.y*J.y);if(Q===0)return{x:0,y:0};return G0(J.x/Q,J.y/Q)},i=function(J,Q,X){var Y=Math.cos(Q),U=Math.sin(Q),G=G0(J.x-X.x,J.y-X.y);return G0(X.x+Y*G.x-U*G.y,X.y+U*G.x+Y*G.y)},G0=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{x:J,y:Q}},y=function(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=arguments.length>3?arguments[3]:void 0;if(typeof J==="string")return parseFloat(J)*X;if(typeof J==="number")return J*(Y?Q[Y]:Math.min(Q.width,Q.height));return},a=function(J,Q,X){var Y=J.borderStyle||J.lineStyle||"solid",U=J.backgroundColor||J.fontColor||"transparent",G=J.borderColor||J.lineColor||"transparent",$=y(J.borderWidth||J.lineWidth,Q,X),K=J.lineCap||"round",N=J.lineJoin||"round",V=typeof Y==="string"?"":Y.map(function(q){return y(q,Q,X)}).join(","),H=J.opacity||1;return{"stroke-linecap":K,"stroke-linejoin":N,"stroke-width":$||0,"stroke-dasharray":V,stroke:G,fill:U,opacity:H}},c=function(J){return J!=null},J0=function(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=y(J.x,Q,X,"width")||y(J.left,Q,X,"width"),U=y(J.y,Q,X,"height")||y(J.top,Q,X,"height"),G=y(J.width,Q,X,"width"),$=y(J.height,Q,X,"height"),K=y(J.right,Q,X,"width"),N=y(J.bottom,Q,X,"height");if(!c(U))if(c($)&&c(N))U=Q.height-$-N;else U=N;if(!c(Y))if(c(G)&&c(K))Y=Q.width-G-K;else Y=K;if(!c(G))if(c(Y)&&c(K))G=Q.width-Y-K;else G=0;if(!c($))if(c(U)&&c(N))$=Q.height-U-N;else $=0;return{x:Y||0,y:U||0,width:G||0,height:$||0}},L7=function(J){return J.map(function(Q,X){return"".concat(X===0?"M":"L"," ").concat(Q.x," ").concat(Q.y)}).join(" ")}
5,l=function(J,Q){return Object.keys(Q).forEach(function(X){return J.setAttribute(X,Q[X])})},V7="http://www.w3.org/2000/svg",Q0=function(J,Q){var X=document.createElementNS(V7,J);if(Q)l(X,Q);return X},q7=function(J){return l(J,Object.assign({},J.rect,J.styles))},H7=function(J){var Q=J.rect.x+J.rect.width*0.5,X=J.rect.y+J.rect.height*0.5,Y=J.rect.width*0.5,U=J.rect.height*0.5;return l(J,Object.assign({cx:Q,cy:X,rx:Y,ry:U},J.styles))},F7={contain:"xMidYMid meet",cover:"xMidYMid slice"},W7=function(J,Q){l(J,Object.assign({},J.rect,J.styles,{preserveAspectRatio:F7[Q.fit]||"none"}))},P7={left:"start",center:"middle",right:"end"},O7=function(J,Q,X,Y){var U=y(Q.fontSize,X,Y),G=Q.fontFamily||"sans-serif",$=Q.fontWeight||"normal",K=P7[Q.textAlign]||"start";if(l(J,Object.assign({},J.rect,J.styles,{"stroke-width":0,"font-weight":$,"font-size":U,"font-family":G,"text-anchor":K})),J.text!==Q.text)J.text=Q.text,J.textContent=Q.text.length?Q.text:" "},T7=function(J,Q,X,Y){l(J,Object.assign({},J.rect,J.styles,{fill:"none"}));var U=J.childNodes[0],G=J.childNodes[1],$=J.childNodes[2],K=J.rect,N={x:J.rect.x+J.rect.width,y:J.rect.y+J.rect.height};if(l(U,{x1:K.x,y1:K.y,x2:N.x,y2:N.y}),!Q.lineDecoration)return;G.style.display="none",$.style.display="none";var V=f0({x:N.x-K.x,y:N.y-K.y}),H=y(0.05,X,Y);if(Q.lineDecoration.indexOf("arrow-begin")!==-1){var q=L0(V,H),I=V0(K,q),L=i(K,2,I),F=i(K,-2,I);l(G,{style:"display:block;",d:"M".concat(L.x,",").concat(L.y," L").concat(K.x,",").concat(K.y," L").concat(F.x,",").concat(F.y)})}if(Q.lineDecoration.indexOf("arrow-end")!==-1){var W=L0(V,-H),O=V0(N,W),P=i(N,2,O),R=i(N,-2,O);l($,{style:"display:block;",d:"M".concat(P.x,",").concat(P.y," L").concat(N.x,",").concat(N.y," L").concat(R.x,",").concat(R.y)})}},D7=function(J,Q,X,Y){l(J,Object.assign({},J.styles,{fill:"none",d:L7(Q.points.map(function(U){return{x:y(U.x,X,Y,"width"),y:y(U.y,X,Y,"height")}}))}))},q0=function(J){return function(Q){return Q0(J,{id:Q.id})}},R7=function(J){var Q=Q0("image",{id:J.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return Q.onload=function(){Q.setAttribute("opacity",J.opacity||1)},Q.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",J.src),Q},B7=function(J){var Q=Q0("g",{id:J.id,"stroke-linecap":"round","stroke-linejoin":"round"}),X=Q0("line");Q.appendChild(X);var Y=Q0("path");Q.appendChild(Y);var U=Q0("path");return Q.appendChild(U),Q},M7={image:R7,rect:q0("rect"),ellipse:q0("ellipse"),text:q0("text"),path:q0("path"),line:B7},A7={rect:q7,ellipse:H7,image:W7,text:O7,path:D7,line:T7},S7=function(J,Q){return M7[J](Q)},E7=function(J,Q,X,Y,U){if(Q!=="path")J.rect=J0(X,Y,U);J.styles=a(X,Y,U),A7[Q](J,X,Y,U)},h0=function(J,Q){if(J[1].zIndex>Q[1].zIndex)return 1;if(J[1].zIndex<Q[1].zIndex)return-1;return 0},z7=function(J){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2?arguments[2]:void 0,Y=arguments.length>3?arguments[3]:void 0;return new Promise(function(U){var G=Y.background,$=G===void 0?null:G,K=new FileReader;K.onloadend=function(){var N=K.result,V=document.createElement("div");V.style.cssText="position:absolute;pointer-events:none;width:0;height:0;visibility:hidden;",V.innerHTML=N;var H=V.querySelector("svg");document.body.appendChild(V);var q=H.getBBox();V.parentNode.removeChild(V);var I=V.querySelector("title"),L=H.getAttribute("viewBox")||"",F=H.getAttribute("width")||"",W=H.getAttribute("height")||"",O=parseFloat(F)||null,P=parseFloat(W)||null,R=(F.match(/[a-z]+/)||[])[0]||"",M=(W.match(/[a-z]+/)||[])[0]||"",A=L.split(" ").map(parseFloat),_=A.length?{x:A[0],y:A[1],width:A[2],height:A[3]}:q,S=O!=null?O:_.width,E=P!=null?P:_.height;H.style.overflow="visible",H.setAttribute("width",S),H.setAttribute("height",E);var j="";if(X&&X.length){var b={width:S,height:E};j=X.sort(h0).reduce(function(s,g){var x=S7(g[0],g[1]);if(E7(x,g[0],g[1],b),x.removeAttribute("id"),x.getAttribute("opacity")===1)x.removeAttribute("opacity");return s+`
6`+x.outerHTML+`
7`},""),j=`
8
9<g>`.concat(j.replace(/&nbsp;/g," "),`</g>
10
11`)}var T=Q.aspectRatio||E/S,B=S,z=B*T,w=typeof Q.scaleToFit>"u"||Q.scaleToFit,v=Q.center?Q.center.x:0.5,f=Q.center?Q.center.y:0.5,p=k0({width:S,height:E},x0({width:B,height:z},T),Q.rotation,w?{x:v,y:f}:{x:0.5,y:0.5}
11),u=Q.zoom*p,C=Q.rotation*(180/Math.PI),D={x:B*0.5,y:z*0.5},k={x:D.x-S*v,y:D.y-E*f},d=["rotate(".concat(C," ").concat(D.x," ").concat(D.y,")"),"translate(".concat(D.x," ").concat(D.y,")"),"scale(".concat(u,")"),"translate(".concat(-D.x," ").concat(-D.y,")"),"translate(".concat(k.x," ").concat(k.y,")")],h=Q.flip&&Q.flip.horizontal,m=Q.flip&&Q.flip.vertical,n=["scale(".concat(h?-1:1," ").concat(m?-1:1,")"),"translate(".concat(h?-S:0," ").concat(m?-E:0,")")],o=`<?xml version="1.0" encoding="UTF-8"?>
12<svg width="`.concat(B).concat(R,'" height="').concat(z).concat(M,`" 
13viewBox="0 0 `).concat(B," ").concat(z,'" ').concat($?'style="background:'+$+'" ':"",`
14preserveAspectRatio="xMinYMin"
15xmlns:xlink="http://www.w3.org/1999/xlink"
16xmlns="http://www.w3.org/2000/svg">
17<!-- Generated by PQINA - https://pqina.nl/ -->
18<title>`).concat(I?I.textContent:"",`</title>
19<g transform="`).concat(d.join(" "),`">
20<g transform="`).concat(n.join(" "),`">
21`).concat(H.outerHTML).concat(j,`
22</g>
23</g>
24</svg>`);U(o)},K.readAsText(J)})},C7=function(J){var Q;try{Q=new ImageData(J.width,J.height)}catch(Y){var X=document.createElement("canvas");Q=X.getContext("2d").createImageData(J.width,J.height)}return Q.data.set(J.data),Q},_7=function(){var J={resize:H,filter:V},Q=function(I,L){return I.forEach(function(F){L=J[F.type](L,F.data)}),L},X=function(I,L){var F=I.transforms,W=null;
24if(F.forEach(function(P){if(P.type==="filter")W=P}),W){var O=null;if(F.forEach(function(P){if(P.type==="resize")O=P}),O)O.data.matrix=W.data,F=F.filter(function(P){return P.type!=="filter"})}L(Q(F,I.imageData))};self.onmessage=function(q){X(q.data.message,function(I){self.postMessage({id:q.data.id,message:I},[I.data.buffer])})};var Y=1,U=1,G=1;function $(q,I,L){var F=I[q]/255,W=I[q+1]/255,O=I[q+2]/255,P=I[q+3]/255,R=F*L[0]+W*L[1]+O*L[2]+P*L[3]+L[4],M=F*L[5]+W*L[6]+O*L[7]+P*L[8]+L[9],A=F*L[10]+W*L[11]+O*L[12]+P*L[13]+L[14],_=F*L[15]+W*L[16]+O*L[17]+P*L[18]+L[19],S=Math.max(0,R*_)+Y*(1-_),E=Math.max(0,M*_)+U*(1-_),j=Math.max(0,A*_)+G*(1-_);I[q]=Math.max(0,Math.min(1,S))*255,I[q+1]=Math.max(0,Math.min(1,E))*255,I[q+2]=Math.max(0,Math.min(1,j))*255}var K=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function N(q){return self.JSON.stringify(q||[])===K}function V(q,I){if(!I||N(I))return q;var L=q.data,F=L.length,W=I[0],O=I[1],P=I[2],R=I[3],M=I[4],A=I[5],_=I[6],S=I[7],E=I[8],j=I[9],b=I[10],T=I[11],B=I[12],z=I[13],w=I[14],v=I[15],f=I[16],p=I[17],u=I[18],C=I[19],D=0,k=0,d=0,h=0,m=0,n=0,o=0,s=0,g=0,x=0,r=0,P0=0;for(;D<F;D+=4)k=L[D]/255,d=L[D+1]/255,h=L[D+2]/255,m=L[D+3]/255,n=k*W+d*O+h*P+m*R+M,o=k*A+d*_+h*S+m*E+j,s=k*b+d*T+h*B+m*z+w,g=k*v+d*f+h*p+m*u+C,x=Math.max(0,n*g)+Y*(1-g),r=Math.max(0,o*g)+U*(1-g),P0=Math.max(0,s*g)+G*(1-g),L[D]=Math.max(0,Math.min(1,x))*255,L[D+1]=Math.max(0,Math.min(1,r))*255,L[D+2]=Math.max(0,Math.min(1,P0))*255;return q}function H(q,I){var L=I.mode,F=L===void 0?"contain":L,W=I.upscale,O=W===void 0?!1:W,P=I.width,R=I.height,M=I.matrix;if(M=!M||N(M)?null:M,!P&&!R)return V(q,M);if(P===null)P=R;else if(R===null)R=P;if(F!=="force"){var A=P/q.width,_=R/q.height,S=1;if(F==="cover")S=Math.max(A,_);else if(F==="contain")S=Math.min(A,_);if(S>1&&O===!1)return V(q,M);P=q.width*S,R=q.height*S}var{width:E,height:j}=q,b=Math.round(P),T=Math.round(R),B=q.data,z=new Uint8ClampedArray(b*T*4),w=E/b,v=j/T,f=Math.ceil(w*0.5),p=Math.ceil(v*0.5);for(var u=0;u<T;u++)for(var C=0;C<b;C++){var D=(C+u*b)*4,k=0,d=0,h=0,m=0,n=0,o=0,s=0,g=(u+0.5)*v;for(var x=Math.floor(u*v);x<(u+1)*v;x++){var r=Math.abs(g-(x+0.5))/p,P0=(C+0.5)*w,P8=r*r;for(var O0=Math.floor(C*w);O0<(C+1)*w;O0++){var t=Math.abs(P0-(O0+0.5))/f,e=Math.sqrt(P8+t*t);if(e>=-1&&e<=1){if(k=2*e*e*e-3*e*e+1,k>0){t=4*(O0+x*E);var E0=B[t+3];if(s+=k*E0,h+=k,E0<255)k=k*E0/250;m+=k*B[t],n+=k*B[t+1],o+=k*B[t+2],d+=k}}}}z[D]=m/d,z[D+1]=n/d,z[D+2]=o/d,z[D+3]=s/h,M&&$(D,z,M)}return{data:z,width:b,height:T}}},j7=function(J,Q){if(J.getUint32(Q+4,!1)!==1165519206)return;Q+=4;var X=J.getUint16(Q+=6,!1)===18761;Q+=J.getUint32(Q+4,X);var Y=J.getUint16(Q,X);Q+=2;for(var U=0;U<Y;U++)if(J.getUint16(Q+U*12,X)===274)return J.setUint16(Q+U*12+8,1,X),!0;return!1},w7=function(J){var Q=new DataView(J);if(Q.getUint16(0)!==65496)return null;var X=2,Y,U,G=!1;while(X<Q.byteLength){Y=Q.getUint16(X,!1),U=Q.getUint16(X+2,!1)+2;var $=Y>=65504&&Y<=65519||Y===65534;if(!$)break;if(!G)G=j7(Q,X,U);if(X+U>Q.byteLength)break;X+=U}return J.slice(0,X)},k7=function(J){return new Promise(function(Q){var X=new FileReader;X.onload=function(){return Q(w7(X.result)||null)},X.readAsArrayBuffer(J.slice(0,262144))})},x7=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},b7=function(J,Q){var X=x7();if(X){var Y=new X;return Y.append(J),Y.getBlob(Q)}return new Blob([J],{type:Q})},v7=function(){return Math.random().toString(36).substr(2,9)},y7=function(J){var Q=new Blob(["(",J.toString(),")()"],{type:"application/javascript"}),X=URL.createObjectURL(Q),Y=new Worker(X),U=[];return{transfer:function(){},post:function($,K,N){var V=v7();U[V]=K,Y.onmessage=function(H){var q=U[H.data.id];if(!q)return;q(H.data.message),delete U[H.data.id]},Y.postMessage({id:V,message:$},N)},terminate:function(){Y.terminate(),URL.revokeObjectURL(X)}}},f7=function(J){return new Promise(function(Q,X){var Y=new Image;Y.onload=function(){Q(Y)},Y.onerror=function(U){X(U)},Y.src=J})},h7=function(J){return J.reduce(function(Q,X){return Q.then(function(Y){return X().then(Array.prototype.concat.bind(Y))})},Promise.resolve([]))},d7=function(J,Q){return new Promise(function(X){var Y={width:J.width,height:J.height},U=J.getContext("2d"),G=Q.sort(h0).map(function($){return function(){return new Promise(function(K){var N=n7[$[0]](U,Y,$[1],K);if(N)K()})}});h7(G).then(function(){return X(J)})})},X0=function(J,Q){if(J.beginPath(),J.lineCap=Q["stroke-linecap"],J.lineJoin=Q["stroke-linejoin"],J.lineWidth=Q["stroke-width"],Q["stroke-dasharray"].length)J.setLineDash(Q["stroke-dasharray"].split(","));J.fillStyle=Q.fill,J.strokeStyle=Q.stroke,J.globalAlpha=Q.opacity||1},Z0=function(J){J.fill(),J.stroke(),J.globalAlpha=1},g7=function(J,Q,X){var Y=J0(X,Q),U=a(X,Q);return X0(J,U),J.rect(Y.x,Y.y,Y.width,Y.height),Z0(J,U),!0},u7=function(J,Q,X){var Y=J0(X,Q),U=a(X,Q);X0(J,U);var{x:G,y:$,width:K,height:N}
24=Y,V=0.5522848,H=K/2*V,q=N/2*V,I=G+K,L=$+N,F=G+K/2,W=$+N/2;return J.moveTo(G,W),J.bezierCurveTo(G,W-q,F-H,$,F,$),J.bezierCurveTo(F+H,$,I,W-q,I,W),J.bezierCurveTo(I,W+q,F+H,L,F,L),J.bezierCurveTo(F-H,L,G,W+q,G,W),Z0(J,U),!0},p7=function(J,Q,X,Y){var U=J0(X,Q),G=a(X,Q);X0(J,G);var $=new Image,K=new URL(X.src,window.location.href).origin!==window.location.origin;if(K)$.crossOrigin="";$.onload=function(){if(X.fit==="cover"){var N=U.width/U.height,V=N>1?$.width:$.height*N,H=N>1?$.width/N:$.height,q=$.width*0.5-V*0.5,I=$.height*0.5-H*0.5;J.drawImage($,q,I,V,H,U.x,U.y,U.width,U.height)}else if(X.fit==="contain"){var L=Math.min(U.width/$.width,U.height/$.height),F=L*$.width,W=L*$.height,O=U.x+U.width*0.5-F*0.5,P=U.y+U.height*0.5-W*0.5;J.drawImage($,0,0,$.width,$.height,O,P,F,W)}else J.drawImage($,0,0,$.width,$.height,U.x,U.y,U.width,U.height);Z0(J,G),Y()},$.src=X.src},m7=function(J,Q,X){var Y=J0(X,Q),U=a(X,Q);X0(J,U);var G=y(X.fontSize,Q),$=X.fontFamily||"sans-serif",K=X.fontWeight||"normal",N=X.textAlign||"left";return J.font="".concat(K," ").concat(G,"px ").concat($),J.textAlign=N,J.fillText(X.text,Y.x,Y.y),Z0(J,U),!0},c7=function(J,Q,X){var Y=a(X,Q);X0(J,Y),J.beginPath();var U=X.points.map(function(K){return{x:y(K.x,Q,1,"width"),y:y(K.y,Q,1,"height")}});J.moveTo(U[0].x,U[0].y);var G=U.length;for(var $=1;$<G;$++)J.lineTo(U[$].x,U[$].y);return Z0(J,Y),!0},l7=function(J,Q,X){var Y=J0(X,Q),U=a(X,Q);X0(J,U),J.beginPath();var G={x:Y.x,y:Y.y},$={x:Y.x+Y.width,y:Y.y+Y.height};J.moveTo(G.x,G.y),J.lineTo($.x,$.y);var K=f0({x:$.x-G.x,y:$.y-G.y}),N=0.04*Math.min(Q.width,Q.height);if(X.lineDecoration.indexOf("arrow-begin")!==-1){var V=L0(K,N),H=V0(G,V),q=i(G,2,H),I=i(G,-2,H);J.moveTo(q.x,q.y),J.lineTo(G.x,G.y),J.lineTo(I.x,I.y)}if(X.lineDecoration.indexOf("arrow-end")!==-1){var L=L0(K,-N),F=V0($,L),W=i($,2,F),O=i($,-2,F);J.moveTo(W.x,W.y),J.lineTo($.x,$.y),J.lineTo(O.x,O.y)}return Z0(J,U),!0},n7={rect:g7,ellipse:u7,image:p7,text:m7,line:l7,path:c7},o7=function(J){var Q=document.createElement("canvas");Q.width=J.width,Q.height=J.height;var X=Q.getContext("2d");return X.putImageData(J,0,0),Q},s7=function(J,Q){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new Promise(function(Y,U){if(!J||!Q7(J))return U({status:"not an image file",file:J});var{stripImageHead:G,beforeCreateBlob:$,afterCreateBlob:K,canvasMemoryLimit:N}=X,V=Q.crop,H=Q.size,q=Q.filter,I=Q.markup,L=Q.output,F=Q.image&&Q.image.orientation?Math.max(1,Math.min(8,Q.image.orientation)):null,W=L&&L.quality,O=W===null?null:W/100,P=L&&L.type||null,R=L&&L.background||null,M=[];if(H&&(typeof H.width==="number"||typeof H.height==="number"))M.push({type:"resize",data:H});if(q&&q.length===20)M.push({type:"filter",data:q});var A=function(j){var b=K?K(j):j;Promise.resolve(b).then(Y)},_=function(j,b){var T=o7(j),B=I.length?d7(T,I):T;Promise.resolve(B).then(function(z){I7(z,b,$).then(function(w){if(v0(z),G)return A(w);k7(J).then(function(v){if(v!==null)w=new Blob([v,w.slice(20)],{type:w.type});A(w)})}).catch(U)})};if(/svg/.test(J.type)&&P===null)return z7(J,V,I,{background:R}).then(function(E){Y(b7(E,"image/svg+xml"))});var S=URL.createObjectURL(J);f7(S).then(function(E){URL.revokeObjectURL(S);var j=K7(E,F,V,{canvasMemoryLimit:N,background:R}),b={quality:O,type:P||J.type};if(!M.length)return _(j,b);var T=y7(_7);T.post({transforms:M,imageData:j},function(B){_(C7(B),b),T.terminate()},[j.data.buffer])}).catch(U)})};function T0(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")T0=function(J){return typeof J};else T0=function(J){return J&&typeof Symbol==="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J};return T0(Z)}var D0;function D8(Z,J,Q,X){if(!D0)D0=typeof Symbol==="function"&&Symbol.for&&Symbol.for("react.element")||60103;var Y=Z&&Z.defaultProps,U=arguments.length-3;if(!J&&U!==0)J={children:void 0};if(J&&Y){for(var G in Y)if(J[G]===void 0)J[G]=Y[G]}else if(!J)J=Y||{};if(U===1)J.children=X;else if(U>1){var $=Array(U);for(var K=0;K<U;K++)$[K]=arguments[K+3];J.children=$}return{$$typeof:D0,type:Z,key:Q===void 0?null:""+Q,ref:null,props:J,_owner:null}}function R8(Z){var J;if(typeof Symbol==="function"){if(Symbol.asyncIterator){if(J=Z[Symbol.asyncIterator],J!=null)return J.call(Z)}if(Symbol.iterator){if(J=Z[Symbol.iterator],J!=null)return J.call(Z)}}throw TypeError("Object is not async iterable")}function d0(Z){this.wrapped=Z}function K0(Z){var J,Q;function X(G,$){return new Promise(function(K,N){var V={key:G,arg:$,resolve:K,reject:N,next:null};if(Q)Q=Q.next=V;else J=Q=V,Y(G,$)})}function Y(G,$){try{var K=Z[G]($),N=K.value,V=N instanceof d0;Promise.resolve(V?N.wrapped:N).then(function(H){if(V){Y("next",H);return}U(K.done?"return":"normal",H)},function(H){Y("throw",H)})}catch(H){U("throw",H)}}function U(G,$){switch(G){case"return":J.resolve({value:$,done:!0});break;case"throw":J.reject($);break;default:J.resolve({value:$,done:!1});break}if(J=J.next,J)Y(J.key,J.arg);else Q=null}if(this._invoke=X,typeof Z.return!=="function")this.return=void 0}if(typeof Symbol==="function"&&Symbol.asyncIterator)K0.prototype[Symbol.asyncIterator]=function(){return this};K0.prototype.next=function(Z){return this._invoke("next",Z)},K0.prototype.throw=function(Z){return this._invoke("throw",Z)},K0.prototype.return=function(Z){return this._invoke("return",Z)};function B8(Z){return function(){return new K0(Z.apply(this,arguments))}}function M8(Z){return new d0(Z)}function A8(Z,J){var Q={},X=!1;function Y(U,G){return X=!0,G=new Promise(function($){$(Z[U](G))}),{done:!1,value:J(G)}}if(typeof Symbol==="function"&&Symbol.iterator)Q[Symbol.iterator]=function(){return this};
24if(Q.next=function(U){if(X)return X=!1,U;return Y("next",U)},typeof Z.throw==="function")Q.throw=function(U){if(X)throw X=!1,U;return Y("throw",U)};if(typeof Z.return==="function")Q.return=function(U){return Y("return",U)};return Q}function g0(Z,J,Q,X,Y,U,G){try{var $=Z[U](G),K=$.value}catch(N){Q(N);return}if($.done)J(K);else Promise.resolve(K).then(X,Y)}function S8(Z){return function(){var J=this,Q=arguments;return new Promise(function(X,Y){var U=Z.apply(J,Q);function G(K){g0(U,X,Y,G,$,"next",K)}function $(K){g0(U,X,Y,G,$,"throw",K)}G(void 0)})}}function E8(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function u0(Z,J){for(var Q=0;Q<J.length;Q++){var X=J[Q];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(Z,X.key,X)}}function z8(Z,J,Q){if(J)u0(Z.prototype,J);if(Q)u0(Z,Q);return Z}function C8(Z,J){for(var Q in J){var X=J[Q];if(X.configurable=X.enumerable=!0,"value"in X)X.writable=!0;Object.defineProperty(Z,Q,X)}if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(J);for(var U=0;U<Y.length;U++){var G=Y[U],X=J[G];if(X.configurable=X.enumerable=!0,"value"in X)X.writable=!0;Object.defineProperty(Z,G,X)}}return Z}function _8(Z,J){var Q=Object.getOwnPropertyNames(J);for(var X=0;X<Q.length;X++){var Y=Q[X],U=Object.getOwnPropertyDescriptor(J,Y);if(U&&U.configurable&&Z[Y]===void 0)Object.defineProperty(Z,Y,U)}return Z}function p0(Z,J,Q){if(J in Z)Object.defineProperty(Z,J,{value:Q,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Q;return Z}function m0(){return m0=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var Q=arguments[J];for(var X in Q)if(Object.prototype.hasOwnProperty.call(Q,X))Z[X]=Q[X]}return Z},m0.apply(this,arguments)}function j8(Z){for(var J=1;J<arguments.length;J++){var Q=arguments[J]!=null?arguments[J]:{},X=Object.keys(Q);if(typeof Object.getOwnPropertySymbols==="function")X=X.concat(Object.getOwnPropertySymbols(Q).filter(function(Y){return Object.getOwnPropertyDescriptor(Q,Y).enumerable}));X.forEach(function(Y){p0(Z,Y,Q[Y])})}return Z}function i7(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)N0(Z,J)}function w8(Z,J){Z.prototype=Object.create(J.prototype),Z.prototype.constructor=Z,Z.__proto__=J}function H0(Z){return H0=Object.setPrototypeOf?Object.getPrototypeOf:function(Q){return Q.__proto__||Object.getPrototypeOf(Q)},H0(Z)}function N0(Z,J){return N0=Object.setPrototypeOf||function(X,Y){return X.__proto__=Y,X},N0(Z,J)}function a7(){if(typeof Reflect>"u"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy==="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Z){return!1}}function F0(Z,J,Q){if(a7())F0=Reflect.construct;else F0=function(Y,U,G){var $=[null];$.push.apply($,U);var K=Function.bind.apply(Y,$),N=new K;if(G)N0(N,G.prototype);return N};return F0.apply(null,arguments)}function r7(Z){return Function.toString.call(Z).indexOf("[native code]")!==-1}function R0(Z){var J=typeof Map==="function"?new Map:void 0;return R0=function(X){if(X===null||!r7(X))return X;if(typeof X!=="function")throw TypeError("Super expression must either be null or a function");if(typeof J<"u"){if(J.has(X))return J.get(X);J.set(X,Y)}function Y(){return F0(X,arguments,H0(this).constructor)}return Y.prototype=Object.create(X.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),N0(Y,X)},R0(Z)}function k8(Z,J){if(J!=null&&typeof Symbol<"u"&&J[Symbol.hasInstance])return J[Symbol.hasInstance](Z);else return Z instanceof J}function x8(Z){return Z&&Z.__esModule?Z:{default:Z}}function b8(Z){if(Z&&Z.__esModule)return Z;else{var J={};if(Z!=null){for(var Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q)){var X=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(Z,Q):{};if(X.get||X.set)Object.defineProperty(J,Q,X);else J[Q]=Z[Q]}}return J.default=Z,J}}function v8(Z,J){if(Z!==J)throw TypeError("Cannot instantiate an arrow function")}function y8(Z){if(Z==null)throw TypeError("Cannot destructure undefined")}function t7(Z,J){if(Z==null)return{};var Q={},X=Object.keys(Z),Y,U;for(U=0;U<X.length;U++){if(Y=X[U],J.indexOf(Y)>=0)continue;Q[Y]=Z[Y]}return Q}function f8(Z,J){if(Z==null)return{};var Q=t7(Z,J),X,Y;if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(Z);for(Y=0;Y<U.length;Y++){if(X=U[Y],J.indexOf(X)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,X))continue;Q[X]=Z[X]}}return Q}function e7(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function h8(Z,J){if(J&&(typeof J==="object"||typeof J==="function"))return J;return e7(Z)}function c0(Z,J){while(!Object.prototype.hasOwnProperty.call(Z,J))if(Z=H0(Z),Z===null)break;return Z}function B0(Z,J,Q){if(typeof Reflect<"u"&&Reflect.get)B0=Reflect.get;else B0=function(Y,U,G){var $=c0(Y,U);if(!$)return;var K=Object.getOwnPropertyDescriptor($,U);if(K.get)return K.get.call(G);return K.value};return B0(Z,J,Q||Z)}function W0(Z,J,Q,X){if(typeof Reflect<"u"&&Reflect.set)W0=Reflect.set;else W0=function(U,G,$,K){var N=c0(U,G),V;if(N){if(V=Object.getOwnPropertyDescriptor(N,G),V.set)return V.set.call(K,$),!0;else if(!V.writable)return!1}if(V=Object.getOwnPropertyDescriptor(K,G),V){if(!V.writable)return!1;V.value=$,Object.defineProperty(K,G,V)}else p0(K,G,$);return!0};return W0(Z,J,Q,X)}function d8(Z,J,Q,X,Y){var U=W0(Z,J,Q,X||Z);if(!U&&Y)throw Error("failed to set property");return Q}function g8(Z,J){if(!J)J=Z.slice(0);return Object.freeze(Object.defineProperties(Z,{raw:{value:Object.freeze(J)}}))}function u8(Z,J){if(!J)J=Z.slice(0);return Z.raw=J,Z}function p8(Z,J){if(Z===J8)throw ReferenceError(J+" is not defined - temporal dead zone");else return Z}function m8(Z){throw Error('"'+Z+'" is read-only')}function c8(Z){throw Error('Class "'+Z+'" cannot be referenced in computed property keys.')}var J8={};function Q8(Z,J){return M0(Z)||Y8(Z,J)||A0()}function l8(Z,J){return M0(Z)||U8(Z,J)||A0()}function X8(Z){return M0(Z)||l0(Z)||A0()}function n8(Z){return Z8(Z)||l0(Z)||$8()}function Z8(Z){if(Array.isArray(Z)){for(var J=0,Q=Array(Z.length);J<Z.length;J++)Q[J]=Z[J];return Q}}function M0(Z){if(Array.isArray(Z))return Z}function l0(Z){if(Symbol.iterator in Object(Z)||Object.prototype.toString.call(Z)==="[object Arguments]")return Array.from(Z)}function Y8(Z,J){var Q=[],X=!0,Y=!1,U=void 0;try{for(var G=Z[Symbol.iterator](),$;!(X=($=G.next()).done);X=!0)if(Q.push($.value),J&&Q.length===J)break}catch(K){Y=!0,U=K}finally{try{if(!X&&G.return!=null)G.return()}finally{if(Y)throw U}}return Q}function U8(Z,J){var Q=[];for(var X=Z[Symbol.iterator](),Y;!(Y=X.next()).done;)if(Q.push(Y.value),J&&Q.length===J)break;return Q}function $8(){throw TypeError("Invalid attempt to spread non-iterable instance")}
24function A0(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function o8(Z){return function(){var J=Z.apply(this,arguments);return J.next(),J}}function G8(Z,J){if(typeof Z!=="object"||Z===null)return Z;var Q=Z[Symbol.toPrimitive];if(Q!==void 0){var X=Q.call(Z,J||"default");if(typeof X!=="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Z)}function n0(Z){var J=G8(Z,"string");return typeof J==="symbol"?J:String(J)}function s8(Z,J){throw Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function i8(Z,J,Q,X){if(!Q)return;Object.defineProperty(Z,J,{enumerable:Q.enumerable,configurable:Q.configurable,writable:Q.writable,value:Q.initializer?Q.initializer.call(X):void 0})}function a8(Z,J,Q,X,Y){var U={};if(Object.keys(X).forEach(function(G){U[G]=X[G]}),U.enumerable=!!U.enumerable,U.configurable=!!U.configurable,"value"in U||U.initializer)U.writable=!0;if(U=Q.slice().reverse().reduce(function(G,$){return $(Z,J,G)||G},U),Y&&U.initializer!==void 0)U.value=U.initializer?U.initializer.call(Y):void 0,U.initializer=void 0;if(U.initializer===void 0)Object.defineProperty(Z,J,U),U=null;return U}var K8=0;function r8(Z){return"__private_"+K8+++"_"+Z}function t8(Z,J){if(!Object.prototype.hasOwnProperty.call(Z,J))throw TypeError("attempted to use private field on non-instance");return Z}function e8(Z,J){if(!J.has(Z))throw TypeError("attempted to get private field on non-instance");var Q=J.get(Z);if(Q.get)return Q.get.call(Z);return Q.value}function J9(Z,J,Q){if(!J.has(Z))throw TypeError("attempted to set private field on non-instance");var X=J.get(Z);if(X.set)X.set.call(Z,Q);else{if(!X.writable)throw TypeError("attempted to set read only private field");X.value=Q}return Q}function Q9(Z,J,Q){if(Z!==J)throw TypeError("Private static access of wrong provenance");return Q.value}function X9(Z,J,Q,X){if(Z!==J)throw TypeError("Private static access of wrong provenance");if(!Q.writable)throw TypeError("attempted to set read only private field");return Q.value=X,X}function Z9(Z,J,Q){if(Z!==J)throw TypeError("Private static access of wrong provenance");return Q}function Y9(){throw TypeError("attempted to set read only static private field")}function U9(Z,J,Q,X){var Y=o0();if(X)for(var U=0;U<X.length;U++)Y=X[U](Y);var G=J(function(N){Y.initializeInstanceElements(N,$.elements)},Q),$=Y.decorateClass(L8(G.d.map(N8)),Z);return Y.initializeClassElements(G.F,$.elements),Y.runClassFinishers(G.F,$.finishers)}function o0(){o0=function(){return Z};var Z={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(J,Q){["method","field"].forEach(function(X){Q.forEach(function(Y){if(Y.kind===X&&Y.placement==="own")this.defineClassElement(J,Y)},this)},this)},initializeClassElements:function(J,Q){var X=J.prototype;["method","field"].forEach(function(Y){Q.forEach(function(U){var G=U.placement;if(U.kind===Y&&(G==="static"||G==="prototype")){var $=G==="static"?J:X;this.defineClassElement($,U)}},this)},this)},defineClassElement:function(J,Q){var X=Q.descriptor;if(Q.kind==="field"){var Y=Q.initializer;X={enumerable:X.enumerable,writable:X.writable,configurable:X.configurable,value:Y===void 0?void 0:Y.call(J)}}Object.defineProperty(J,Q.key,X)},decorateClass:function(J,Q){var X=[],Y=[],U={static:[],prototype:[],own:[]};if(J.forEach(function($){this.addElementPlacement($,U)},this),J.forEach(function($){if(!I0($))return X.push($);var K=this.decorateElement($,U);X.push(K.element),X.push.apply(X,K.extras),Y.push.apply(Y,K.finishers)},this),!Q)return{elements:X,finishers:Y};var G=this.decorateConstructor(X,Q);return Y.push.apply(Y,G.finishers),G.finishers=Y,G},addElementPlacement:function(J,Q,X){var Y=Q[J.placement];if(!X&&Y.indexOf(J.key)!==-1)throw TypeError("Duplicated element ("+J.key+")");Y.push(J.key)},decorateElement:function(J,Q){var X=[],Y=[];for(var U=J.decorators,G=U.length-1;G>=0;G--){var $=Q[J.placement];$.splice($.indexOf(J.key),1);var K=this.fromElementDescriptor(J),N=this.toElementFinisherExtras((0,U[G])(K)||K);if(J=N.element,this.addElementPlacement(J,Q),N.finisher)Y.push(N.finisher);var V=N.extras;if(V){for(var H=0;H<V.length;H++)this.addElementPlacement(V[H],Q);X.push.apply(X,V)}}return{element:J,finishers:Y,extras:X}},decorateConstructor:function(J,Q){var X=[];for(var Y=Q.length-1;Y>=0;Y--){var U=this.fromClassDescriptor(J),G=this.toClassDescriptor((0,Q[Y])(U)||U);if(G.finisher!==void 0)X.push(G.finisher);if(G.elements!==void 0){J=G.elements;for(var $=0;$<J.length-1;$++)for(var K=$+1;K<J.length;K++)if(J[$].key===J[K].key&&J[$].placement===J[K].placement)throw TypeError("Duplicated element ("+J[$].key+")")}}return{elements:J,finishers:X}},fromElementDescriptor:function(J){var Q={kind:J.kind,key:J.key,placement:J.placement,descriptor:J.descriptor},X={value:"Descriptor",configurable:!0};if(Object.defineProperty(Q,Symbol.toStringTag,X),J.kind==="field")Q.initializer=J.initializer;return Q},toElementDescriptors:function(J){if(J===void 0)return;return X8(J).map(function(Q){var X=this.toElementDescriptor(Q);return this.disallowProperty(Q,"finisher","An element descriptor"),this.disallowProperty(Q,"extras","An element descriptor"),X},this)},toElementDescriptor:function(J){var Q=String(J.kind);if(Q!=="method"&&Q!=="field")throw TypeError(`An element descriptor's .kind property must be either "method" or "f
24ield", but a decorator created an element descriptor with .kind "`+Q+'"');var X=n0(J.key),Y=String(J.placement);if(Y!=="static"&&Y!=="prototype"&&Y!=="own")throw TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+Y+'"');var U=J.descriptor;this.disallowProperty(J,"elements","An element descriptor");var G={kind:Q,key:X,placement:Y,descriptor:Object.assign({},U)};if(Q!=="field")this.disallowProperty(J,"initializer","A method descriptor");else this.disallowProperty(U,"get","The property descriptor of a field descriptor"),this.disallowProperty(U,"set","The property descriptor of a field descriptor"),this.disallowProperty(U,"value","The property descriptor of a field descriptor"),G.initializer=J.initializer;return G},toElementFinisherExtras:function(J){var Q=this.toElementDescriptor(J),X=i0(J,"finisher"),Y=this.toElementDescriptors(J.extras);return{element:Q,finisher:X,extras:Y}},fromClassDescriptor:function(J){var Q={kind:"class",elements:J.map(this.fromElementDescriptor,this)},X={value:"Descriptor",configurable:!0};return Object.defineProperty(Q,Symbol.toStringTag,X),Q},toClassDescriptor:function(J){var Q=String(J.kind);if(Q!=="class")throw TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+Q+'"');this.disallowProperty(J,"key","A class descriptor"),this.disallowProperty(J,"placement","A class descriptor"),this.disallowProperty(J,"descriptor","A class descriptor"),this.disallowProperty(J,"initializer","A class descriptor"),this.disallowProperty(J,"extras","A class descriptor");var X=i0(J,"finisher"),Y=this.toElementDescriptors(J.elements);return{elements:Y,finisher:X}},runClassFinishers:function(J,Q){for(var X=0;X<Q.length;X++){var Y=(0,Q[X])(J);if(Y!==void 0){if(typeof Y!=="function")throw TypeError("Finishers must return a constructor.");J=Y}}return J},disallowProperty:function(J,Q,X){if(J[Q]!==void 0)throw TypeError(X+" can't have a ."+Q+" property.")}};return Z}function N8(Z){var J=n0(Z.key),Q;if(Z.kind==="method")Q={value:Z.value,writable:!0,configurable:!0,enumerable:!1};else if(Z.kind==="get")Q={get:Z.value,configurable:!0,enumerable:!1};else if(Z.kind==="set")Q={set:Z.value,configurable:!0,enumerable:!1};else if(Z.kind==="field")Q={configurable:!0,writable:!0,enumerable:!0};var X={kind:Z.kind==="field"?"field":"method",key:J,placement:Z.static?"static":Z.kind==="field"?"own":"prototype",descriptor:Q};if(Z.decorators)X.decorators=Z.decorators;if(Z.kind==="field")X.initializer=Z.value;return X}function I8(Z,J){if(Z.descriptor.get!==void 0)J.descriptor.get=Z.descriptor.get;else J.descriptor.set=Z.descriptor.set}function L8(Z){var J=[],Q=function(G){return G.kind==="method"&&G.key===Y.key&&G.placement===Y.placement};for(var X=0;X<Z.length;X++){var Y=Z[X],U;if(Y.kind==="method"&&(U=J.find(Q)))if(s0(Y.descriptor)||s0(U.descriptor)){if(I0(Y)||I0(U))throw ReferenceError("Duplicated methods ("+Y.key+") can't be decorated.");U.descriptor=Y.descriptor}else{if(I0(Y)){if(I0(U))throw ReferenceError("Decorators can't be placed on different accessors with for the same property ("+Y.key+").");U.decorators=Y.decorators}I8(Y,U)}else J.push(Y)}return J}function I0(Z){return Z.decorators&&Z.decorators.length}function s0(Z){return Z!==void 0&&!(Z.value===void 0&&Z.writable===void 0)}function i0(Z,J){var Q=Z[J];if(Q!==void 0&&typeof Q!=="function")throw TypeError("Expected '"+J+"' to be a function");return Q}function $9(Z,J,Q){if(!J.has(Z))throw TypeError("attempted to get private field on non-instance");return Q}function G9(){throw TypeError("attempted to reassign private method")}function a0(Z,J){a0=function($,K){return new U($,K)};var Q=R0(RegExp),X=RegExp.prototype,Y=new WeakMap;function U($,K){var N=Q.call(this,$);return Y.set(N,K),N}i7(U,Q),U.prototype.exec=function($){var K=X.exec.call(this,$);if(K)K.groups=G(K,this);return K},U.prototype[Symbol.replace]=function($,K){if(typeof K==="string"){var N=Y.get(this);return X[Symbol.replace].call(this,$,K.replace(/\$<([^>]+)>/g,function(H,q){return"$"+N[q]}))}else if(typeof K==="function"){var V=this;return X[Symbol.replace].call(this,$,function(){var H=[];if(H.push.apply(H,arguments),typeof H[H.length-1]!=="object")H.push(G(H,V));return K.apply(this,H)})}else return X[Symbol.replace].call(this,$,K)};function G($,K){var N=Y.get(K);
24return Object.keys(N).reduce(function(V,H){return V[H]=$[N[H]],V},Object.create(null))}return a0.apply(this,arguments)}var V8=["x","y","left","top","right","bottom","width","height"],q8=function(J){return typeof J==="string"&&/%/.test(J)?parseFloat(J)/100:J},H8=function(J){var Q=Q8(J,2),X=Q[0],Y=Q[1],U=Y.points?{}:V8.reduce(function(G,$){return G[$]=q8(Y[$]),G},{});return[X,Object.assign({zIndex:0},Y,U)]},F8=function(J){return new Promise(function(Q,X){var Y=new Image;Y.src=URL.createObjectURL(J);var U=function(){var{naturalWidth:K,naturalHeight:N}=Y,V=K&&N;if(!V)return;URL.revokeObjectURL(Y.src),clearInterval(G),Q({width:K,height:N})};Y.onerror=function($){URL.revokeObjectURL(Y.src),clearInterval(G),X($)};var G=setInterval(U,1);U()})};if(typeof window<"u"&&typeof window.document<"u"){if(!HTMLCanvasElement.prototype.toBlob)Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(J,Q,X){var Y=this;setTimeout(function(){var U=Y.toDataURL(Q,X).split(",")[1],G=atob(U),$=G.length,K=new Uint8Array($);while($--)K[$]=G.charCodeAt($);J(new Blob([K],{type:Q||"image/png"}))})}})}var S0=typeof window<"u"&&typeof window.document<"u",W8=S0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,r0=function(J){var{addFilter:Q,utils:X}=J,Y=X.Type,U=X.forin,G=X.getFileFromBlob,$=X.isFile,K=["crop","resize","filter","markup","output"],N=function(I){return function(L,F,W){return L(F,I?I(W):W)}},V=function(I){return I.aspectRatio===null&&I.rotation===0&&I.zoom===1&&I.center&&I.center.x===0.5&&I.center.y===0.5&&I.flip&&I.flip.horizontal===!1&&I.flip.vertical===!1};Q("SHOULD_PREPARE_OUTPUT",function(q,I){var L=I.query;return new Promise(function(F){F(!L("IS_ASYNC"))})});var H=function(I,L,F){return new Promise(function(W){if(!I("GET_ALLOW_IMAGE_TRANSFORM")||F.archived||!$(L)||!Y0(L))return W(!1);F8(L).then(function(){var O=I("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(O){var P=O(L);if(P==null)return handleRevert(!0);if(typeof P==="boolean")return W(P);if(typeof P.then==="function")return P.then(W)}W(!0)}).catch(function(O){W(!1)})})};return Q("DID_CREATE_ITEM",function(q,I){var{query:L,dispatch:F}=I;if(!L("GET_ALLOW_IMAGE_TRANSFORM"))return;q.extend("requestPrepare",function(){return new Promise(function(W,O){F("REQUEST_PREPARE_OUTPUT",{query:q.id,item:q,success:W,failure:O},!0)})})}),Q("PREPARE_OUTPUT",function(q,I){var{query:L,item:F}=I;return new Promise(function(W){H(L,q,F).then(function(O){if(!O)return W(q);var P=[];if(L("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL"))P.push(function(){return new Promise(function(T){T({name:L("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:q})})});if(L("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT"))P.push(function(T,B,z){return new Promise(function(w){T(B,z).then(function(v){return w({name:L("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:v})})})});var R=L("GET_IMAGE_TRANSFORM_VARIANTS")||{};U(R,function(T,B){var z=N(B);P.push(function(w,v,f){return new Promise(function(p){z(w,v,f).then(function(u){return p({name:T,file:u})})})})});var M=L("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),A=L("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),_=M===null?null:M/100,S=L("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),E=L("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||K;F.setMetadata("output",{type:S,quality:_,client:E},!0);var j=function(B,z){return new Promise(function(w,v){var f=Object.assign({},z);Object.keys(f).filter(function(x){return x!=="exif"}).forEach(function(x){if(E.indexOf(x)===-1)delete f[x]});var{resize:p,exif:u,output:C,crop:D,filter:k,markup:d}=f,h={image:{orientation:u?u.orientation:null},output:C&&(C.type||typeof C.quality==="number"||C.background)?{type:C.type,quality:typeof C.quality==="number"?C.quality*100:null,background:C.background||L("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:p&&(p.size.width||p.size.height)?Object.assign({mode:p.mode,upscale:p.upscale},p.size):void 0,crop:D&&!V(D)?Object.assign({},D):void 0,markup:d&&d.length?d.map(H8):[],filter:k};if(h.output){var m=C.type?C.type!==B.type:!1,n=/\/jpe?g$/.test(B.type),o=C.quality!==null?n&&A==="always":!1,s=!!(h.size||h.crop||h.filter||m||o);if(!s)return w(B)}var g={beforeCreateBlob:L("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:L("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:L("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:L("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};s7(B,h,g).then(function(x){var r=G(x,e0(B.name,J7(x.type)));w(r)}).catch(v)})},b=P.map(function(T){return T(j,q,F.getMetadata())});Promise.all(b).then(function(T){W(T.length===1&&T[0].name===null?T[0].file:T)})})})}),{options:{allowImageTransform:[!0,Y.BOOLEAN],imageTransformImageFilter:[null,Y.FUNCTION],imageTransformOutputMimeType:[null,Y.STRING],imageTransformOutputQuality:[null,Y.INT],imageTransformOutputStripImageHead:[!0,Y.BOOLEAN],imageTransformClientTransforms:[null,Y.ARRAY],imageTransformOutputQualityMode:["always",Y.STRING],imageTransformVariants:[null,Y.OBJECT],imageTransformVariantsIncludeDefault:[!0,Y.BOOLEAN],imageTransformVariantsDefaultName:[null,Y.STRING],imageTransformVariantsIncludeOriginal:[!1,Y.BOOLEAN],imageTransformVariantsOriginalName:["original_",Y.STRING],imageTransformBeforeCreateBlob:[null,Y.FUNCTION],imageTransformAfterCreateBlob:[null,Y.FUNCTION],imageTransformCanvasMemoryLimit:[S0&&W8?16777216:null,Y.INT],imageTransformCanvasBackgroun
24dColor:[null,Y.STRING]}}};if(S0)document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:r0}));return r0})});export default T8();

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.