mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
170 lines
914 KiB
JavaScript
170 lines
914 KiB
JavaScript
|
import{t as _v,r as fR,i as Pv,a as Nc,b as P_,S as j_,c as I_,d as E_,e as jv,f as O_,g as Iv,h as pR,j as hR,k as mR,l as gR,m as R_,n as vR,o as bR,p as yR,q as M_,s as xR,u as wR,v as SR,w as CR,x as kR,y as _R,z as PR,A as f,B as a,C as fm,D as Bp,E as jR,F as D_,G as A_,H as IR,P as wd,I as J1,J as ER,K as OR,L as RR,M as MR,N as DR,O as AR,Q as TR,R as K2,T as NR,U as Ae,V as je,W as Ct,X as et,Y as Sd,Z as mo,_ as Er,$ as Hr,a0 as qn,a1 as hl,a2 as fa,a3 as Ft,a4 as rs,a5 as rc,a6 as Va,a7 as pm,a8 as Z1,a9 as Cd,aa as sr,ab as $R,ac as W,ad as X2,ae as LR,af as Ev,ag as $c,ah as zR,ai as T_,aj as N_,ak as Lc,al as BR,am as be,an as Ke,ao as Zt,ap as B,aq as FR,ar as Y2,as as HR,at as WR,au as Q2,av as te,aw as VR,ax as On,ay as Mn,az as Oe,aA as H,aB as Ys,aC as at,aD as Kn,aE as $_,aF as UR,aG as GR,aH as qR,aI as KR,aJ as _i,aK as eb,aL as Ds,aM as Io,aN as hm,aO as XR,aP as YR,aQ as J2,aR as tb,aS as Pa,aT as QR,aU as L_,aV as z_,aW as Z2,aX as JR,aY as ZR,aZ as B_,a_ as F_,a$ as nb,b0 as e7,b1 as t7,b2 as n7,b3 as Tl,b4 as r7,b5 as o7,b6 as s7,b7 as a7,b8 as ew,b9 as vi,ba as rb,bb as Fp,bc as mm,bd as H_,be as W_,bf as Is,bg as V_,bh as i7,bi as zc,bj as U_,bk as G_,bl as Es,bm as Mu,bn as Hp,bo as l7,bp as c7,bq as u7,br as d7,bs as Bf,bt as Ff,bu as vu,bv as y0,bw as Hu,bx as Wu,by as Vu,bz as Uu,bA as tw,bB as Wp,bC as x0,bD as Vp,bE as nw,bF as Ov,bG as w0,bH as Rv,bI as S0,bJ as Up,bK as rw,bL as bc,bM as ow,bN as yc,bO as sw,bP as Gp,bQ as ob,bR as f7,bS as q_,bT as Mv,bU as Dv,bV as K_,bW as p7,bX as Av,bY as h7,bZ as Tv,b_ as m7,b$ as Nv,c0 as sb,c1 as ab,c2 as gm,c3 as g7,c4 as vm,c5 as Ql,c6 as X_,c7 as v7,c8 as Ep,c9 as ib,ca as Y_,cb as b7,cc as bu,cd as Q_,ce as J_,cf as aw,cg as Ua,ch as y7,ci as $v,cj as x7,ck as w7,cl as S7,cm as C7,cn as lb,co as cb,cp as k7,cq as Bn,cr as iw,cs as Z_,ct as _7,cu as P7,cv as j7,cw as I7,cx as E7,cy as O7,cz as R7,cA as M7,cB as D7,cC as e5,cD as A7,cE as T7,cF as N7,cG as $7,cH as L7,cI as z7,cJ as B7,cK as F7,cL as H7,cM as W7,cN as V7,cO as U7,cP as bm,cQ as oo,cR as Qn,cS as G7,cT as t5,cU as kd,cV as q7,cW as ub,cX as n5,cY as K7,cZ as X7,c_ as Y7,c$ as ls,d0 as Q7,d1 as J7,d2 as Z7,d3 as eM,d4 as tM,d5 as nM,d6 as rM,d7 as oM,d8 as sM,d9 as aM,da as iM,db as lM,dc as cM,dd as uM,de as lw,df as dM,dg as cw,dh as fM,di as pM,dj as hM,dk as mM,dl as td,dm as _d,dn as Pd,dp as gM,dq as vM,dr as na,ds as db,dt as bM,du as yM,dv as xM,dw as uw,dx as wM,dy as qp,dz as SM,dA as r5,dB as dw,dC as CM,dD as kM,dE as ws,dF as _M,dG as PM,dH as o5,dI as s5,dJ as jM,dK as fw,dL as IM,dM as EM,dN as a5,dO as OM,dP as RM,dQ as pw,dR as MM,dS as hw,dT as DM,dU as mw,dV as Hf,dW as AM,dX as TM,dY as gw,dZ as vw,d_ as NM,d$ as i5,e0 as l5,e1 as jd,e2 as c5,e3 as Gi,e4 as u5,e5 as bw,e6 as $M,e7 as LM,e8 as d5,e9 as zM,ea as BM,eb as FM,ec as HM,ed as WM,ee as fb,ef as yw,eg as f5,eh as VM,ei as xw,ej as p5,ek as As,el as UM,em as h5,en as ww,eo as GM,ep as qM,eq as KM,er as XM,es as YM,et as QM,eu as JM,ev as ZM,ew as eD,ex as tD,ey as nD,ez as rD,eA as oD,eB as sD,eC as aD,eD as iD,eE as lD,eF as cD,eG as uD,eH as dD,eI as fD,eJ as Sw,eK as pD,eL as hD,eM as Kp,eN as Cw,eO as mD,eP as Js,eQ as gD,eR as kw,eS as Op,eT as vD,eU as Xp,eV as m5,eW as nd,eX as bD,eY as yD,eZ as ea,e_ as g5,e$ as pb,f0 as Id,f1 as xD,f2 as wD,f3 as SD,f4 as Ta,f5 as v5,f6 as CD,f7 as kD,f8 as b5,f9 as _D,fa as PD,fb as jD,fc as ID,fd as ED,fe as OD,ff as RD,fg as MD,fh as DD,fi as AD,fj as _w,fk as TD,fl as ND,fm as $D,fn as LD,fo as zD,fp as BD,fq as FD,fr as HD,fs as C0,ft as k0,fu as _0,fv as Wf,fw as Pw,fx as Lv,fy as WD,fz as VD,fA as UD,fB as GD,fC as Yp,fD as y5,fE as x5,fF as qD,fG as KD,fH as w5,fI as S5,fJ as C5,fK as k5,fL as _5,fM as P5,fN as j5,fO as I5,fP as oc,fQ as sc,fR as E5,fS as O5,fT as XD,fU as R5,fV as M5,fW as D5,fX as A5,fY as T5,fZ as N5,f_ as hb,f$ as YD,g0 as QD,g1 as JD,g2 as ZD,g3 as e9,g4 as t9,g5 as n9,g6 as r9}from"./index-2c171c8f.js";import{u as o9,c as s9,a as Dn,b as or,I as fo,d as Ga,P as rd,C as a9,e as ye,f as $5,g as qa,h as i9,r as Ue,i as l9,j as j
|
||
|
M${O.x},${O.y}h${O.width}v${O.height}h${-O.width}z`,fill:d,fillRule:"evenodd",stroke:p,strokeWidth:h,pointerEvents:"none"})]})})}z5.displayName="MiniMap";var G9=f.memo(z5),Ss;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Ss||(Ss={}));function q9({color:e,dimensions:t,lineWidth:n}){return a.jsx("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function K9({color:e,radius:t}){return a.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const X9={[Ss.Dots]:"#91919a",[Ss.Lines]:"#eee",[Ss.Cross]:"#e2e2e2"},Y9={[Ss.Dots]:1,[Ss.Lines]:1,[Ss.Cross]:6},Q9=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function B5({id:e,variant:t=Ss.Dots,gap:n=20,size:r,lineWidth:o=1,offset:s=2,color:i,style:c,className:d}){const p=f.useRef(null),{transform:h,patternId:m}=Bp(Q9,J1),v=i||X9[t],b=r||Y9[t],w=t===Ss.Dots,y=t===Ss.Cross,S=Array.isArray(n)?n:[n,n],k=[S[0]*h[2]||1,S[1]*h[2]||1],_=b*h[2],P=y?[_,_]:k,I=w?[_/s,_/s]:[P[0]/s,P[1]/s];return a.jsxs("svg",{className:fm(["react-flow__background",d]),style:{...c,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:p,"data-testid":"rf__background",children:[a.jsx("pattern",{id:m+e,x:h[0]%k[0],y:h[1]%k[1],width:k[0],height:k[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${I[0]},-${I[1]})`,children:w?a.jsx(K9,{color:v,radius:_/s}):a.jsx(q9,{dimensions:P,color:v,lineWidth:o})}),a.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${m+e})`})]})}B5.displayName="Background";var J9=f.memo(B5),Gu;(function(e){e.Line="line",e.Handle="handle"})(Gu||(Gu={}));function Z9({width:e,prevWidth:t,height:n,prevHeight:r,invertX:o,invertY:s}){const i=e-t,c=n-r,d=[i>0?1:i<0?-1:0,c>0?1:c<0?-1:0];return i&&o&&(d[0]=d[0]*-1),c&&s&&(d[1]=d[1]*-1),d}const F5={width:0,height:0,x:0,y:0},eA={...F5,pointerX:0,pointerY:0,aspectRatio:1};function tA({nodeId:e,position:t,variant:n=Gu.Handle,className:r,style:o={},children:s,color:i,minWidth:c=10,minHeight:d=10,maxWidth:p=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:m=!1,shouldResize:v,onResizeStart:b,onResize:w,onResizeEnd:y}){const S=DR(),k=typeof e=="string"?e:S,_=D_(),P=f.useRef(null),I=f.useRef(eA),E=f.useRef(F5),O=AR(),R=n===Gu.Line?"right":"bottom-right",M=t??R;f.useEffect(()=>{if(!P.current||!k)return;const Q=A_(P.current),F=M.includes("right")||M.includes("left"),V=M.includes("bottom")||M.includes("top"),q=M.includes("left"),G=M.includes("top"),T=TR().on("start",z=>{const $=_.getState().nodeInternals.get(k),{xSnapped:Y,ySnapped:ae}=O(z);E.current={width:($==null?void 0:$.width)??0,height:($==null?void 0:$.height)??0,x:($==null?void 0:$.position.x)??0,y:($==null?void 0:$.position.y)??0},I.current={...E.current,pointerX:Y,pointerY:ae,aspectRatio:E.current.width/E.current.height},b==null||b(z,{...E.current})}).on("drag",z=>{const{nodeInternals:$,triggerNodeChanges:Y}=_.getState(),{xSnapped:ae,ySnapped:fe}=O(z),ie=$.get(k);if(ie){const X=[],{pointerX:K,pointerY:U,width:se,height:re,x:oe,y:pe,aspectRatio:le}=I.current,{x:ge,y:ke,width:xe,height:de}=E.current,Te=Math.floor(F?ae-K:0),Ee=Math.floor(V?fe-U:0);let $e=K2(se+(q?-Te:Te),c,p),kt=K2(re+(G?-Ee:Ee),d,h);if(m){const Me=$e/kt,_t=F&&V,Tt=F&&!V,we=V&&!F;$e=Me<=le&&_t||we?kt*le:$e,kt=Me>le&&_t||Tt?$e/le:kt,$e>=p?($e=p,kt=p/le):$e<=c&&($e=c,kt=c/le),kt>=h?(kt=h,$e=h*le):kt<=d&&(kt=d,$e=d*le)}const ct=$e!==xe,on=kt!==de;if(q||G){const Me=q?oe-($e-se):oe,_t=G?pe-(kt-re):pe,Tt=Me!==ge&&ct,we=_t!==ke&&on;if(Tt||we){const ht={id:ie.id,type:"position",position:{x:Tt?Me:ge,y:we?_t:ke}};X.push(ht),E.current.x=ht.position.x,E.current.y=ht.position.y}}if(ct||on){const Me={id:k,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:$e,height:kt}};X.push(Me),E.current.width=$e,E.current.height=kt}if(X.length===0)return;const vt=Z9({width:E.current.width,prevWidth:xe,height:E.current.height,prevHeight:de,invertX:q,invertY:G}),bt={...E.current,direction:vt};if((v==null?void 0:v(z,bt))===!1)return;w==null||w(z,bt),Y(X)}}).on("end",z=>{const $={id:k,type:"dimensions",resizing:!1};y==null||y(z,{...E.current}),_.getState().triggerNo
|
||
|
`})}function AA(e){Sd({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Au(e){const{isOpen:t,isDisabled:n}=vb(),{reduceMotion:r}=bb(),o=Ct("chakra-accordion__icon",e.className),s=xm(),i={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return a.jsx(fo,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:i,...e,children:a.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Au.displayName="AccordionIcon";var Tu=Ae(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...i}=OA(t),d={...xm().container,overflowAnchor:"none"},p=f.useMemo(()=>i,[i]);return a.jsx(kA,{value:p,children:a.jsx(je.div,{ref:n,...s,className:Ct("chakra-accordion__item",o),__css:d,children:typeof r=="function"?r({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):r})})});Tu.displayName="AccordionItem";var qi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},yu={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Hv(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return yu.slideRight;case"left":return yu.slideLeft;case"bottom":return yu.slideDown;case"top":return yu.slideUp;default:return yu.slideRight}}var Xi={enter:{duration:.2,ease:qi.easeOut},exit:{duration:.1,ease:qi.easeIn}},Cs={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},TA=e=>e!=null&&parseInt(e.toString(),10)>0,Nw={exit:{height:{duration:.2,ease:qi.ease},opacity:{duration:.3,ease:qi.ease}},enter:{height:{duration:.3,ease:qi.ease},opacity:{duration:.4,ease:qi.ease}}},NA={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:TA(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:Cs.exit(Nw.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(s=n==null?void 0:n.enter)!=null?s:Cs.enter(Nw.enter,o)}}},wm=f.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:s=0,endingHeight:i="auto",style:c,className:d,transition:p,transitionEnd:h,...m}=e,[v,b]=f.useState(!1);f.useEffect(()=>{const _=setTimeout(()=>{b(!0)});return()=>clearTimeout(_)},[]),Sd({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const w=parseFloat(s.toString())>0,y={startingHeight:s,endingHeight:i,animateOpacity:o,transition:v?p:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:r?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:w?"block":"none"}}},S=r?n:!0,k=n||r?"enter":"exit";return a.jsx(mo,{initial:!1,custom:y,children:S&&a.jsx(Er.div,{ref:t,...m,className:Ct("chakra-collapse",d),style:{overflow:"hidden",display:"block",...c},custom:y,variants:NA,initial:r?"exit":!1,animate:k,exit:"exit"})})});wm.displayName="Collapse";var $A={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Cs.enter(Xi.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Cs.exit(Xi.exit,n),transitionEnd:t==null?void 0:t.exi
|
||
|
.`.concat(yz,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(c,"px ").concat(r,`;
|
||
|
}
|
||
|
body {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
overscroll-behavior: contain;
|
||
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
|
padding-left: `.concat(o,`px;
|
||
|
padding-top: `).concat(s,`px;
|
||
|
padding-right: `).concat(i,`px;
|
||
|
margin-left:0;
|
||
|
margin-top:0;
|
||
|
margin-right: `).concat(c,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(Mp,` {
|
||
|
right: `).concat(c,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Dp,` {
|
||
|
margin-right: `).concat(c,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Mp," .").concat(Mp,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Dp," .").concat(Dp,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(xz,": ").concat(c,`px;
|
||
|
}
|
||
|
`)},Mz=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=f.useMemo(function(){return Ez(o)},[o]);return f.createElement(Oz,{styles:Rz(s,!t,o,n?"":"!important")})},s1=!1;if(typeof window<"u")try{var qf=Object.defineProperty({},"passive",{get:function(){return s1=!0,!0}});window.addEventListener("test",qf,qf),window.removeEventListener("test",qf,qf)}catch{s1=!1}var Bl=s1?{passive:!1}:!1,Dz=function(e){return e.tagName==="TEXTAREA"},I6=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Dz(e)&&n[t]==="visible")},Az=function(e){return I6(e,"overflowY")},Tz=function(e){return I6(e,"overflowX")},fS=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=E6(e,r);if(o){var s=O6(e,r),i=s[1],c=s[2];if(i>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Nz=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$z=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},E6=function(e,t){return e==="v"?Az(t):Tz(t)},O6=function(e,t){return e==="v"?Nz(t):$z(t)},Lz=function(e,t){return e==="h"&&t==="rtl"?-1:1},zz=function(e,t,n,r,o){var s=Lz(e,window.getComputedStyle(t).direction),i=s*r,c=n.target,d=t.contains(c),p=!1,h=i>0,m=0,v=0;do{var b=O6(e,c),w=b[0],y=b[1],S=b[2],k=y-S-s*w;(w||k)&&E6(e,c)&&(m+=k,v+=w),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(o&&m===0||!o&&i>m)||!h&&(o&&v===0||!o&&-i>v))&&(p=!0),p},Kf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pS=function(e){return[e.deltaX,e.deltaY]},hS=function(e){return e&&"current"in e?e.current:e},Bz=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Fz=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},Hz=0,Fl=[];function Wz(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Hz++)[0],s=f.useState(j6)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Yv([e.lockRef.current],(e.shards||[]).map(hS),!0).filter(Boolean);return y.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(y,S){if("touches"in y&&y.touches.length===2)return!i.current.allowPinchZoom;var k=Kf(y),_=n.current,P="deltaX"in y?y.deltaX:_[0]-k[0],I="deltaY"in y?y.deltaY:_[1]-k[1],E,O=y.target,R=Math.abs(P)>Math.abs(I)?"h":"v";if("touches"in y&&R==="h"&&O.type==="range")return!1;var M=fS(R,O);if(!M)return!0;if(M?E=R:(E=R==="v"?"h":"v",M=fS(R,O)),!M)return!1;if(!r.current&&"changedTouches"in y&&(P||I)&&(r.current=E),!E)return!0;var D=r.current||E;return zz(D,S,y,D==="h"?P:I,!0)},[]),d=f.useCallback(function(y){var S=y;if(!(!Fl.length||Fl[Fl.length-1]!==s)){var k="deltaY"in S?pS(S):Kf(S),_=t.current.filter(function(E){return E.name===S.type&&E.target===S.target&&Bz(E.delta,k)})[0];if(_&&_.should){S.cancelable&&S.preventDefault();return}if(!_){var P=(i.current.shards||[]).map(hS).filter(Boolean).filter(function(E){return E.contains(S.target)}),I=P.length>0?c(S,P[0]):!i.current.noIsolation;I&&S.cancelable&&S.preventDefault()}}},[]),p=f.useCallback(function(y,S,k,_){var P={name:y,delta:S,target:k,should:_};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(I){return I!==P})},1)},[]),h=f.useCallback(function(y){n.current=Kf(y),r.current=void 0},[]),m=f.useCallback(function(y){p(y.type,pS(y),y.target,c(y,e.lockRef.current))},[]),v=f.useCallback(function(y){p(y.type,Kf(y),y.target,c(y,e.lockRef.current))},[]);f.useEffect(function(){return Fl.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Bl),document.addEventListener("touchmove",d,Bl),document.addEventListener("touchstart",h,Bl),function(){Fl=Fl.filter(function(y){return y!==s}),document.removeEventListener("wheel",d,Bl),document.removeEventListener("touchmove",d,Bl),document.removeEventListener("touchstart",h,Bl)}},[]);var b=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(s,{styles:Fz(o)}):null,b?f.createElement(Mz,{gapMode:e.gapMode}):null)}const Vz=FT(P6,Wz);var R6=f.forwardRef(function(e,t){return f.createElement(_m,Qs({},e,{ref:t,sideCar:Vz}))});R6.classNames=_m.classNames;const Uz=R6;function Gz(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:i,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:m}=ll(),[v,b]=zR();f.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const w=k6(r,m);return a.jsx(J3,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:c,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:h,children:a.jsx(Uz,{removeScrollBar:!p,allowPinchZoom:i,enabled:w===1&&s,forwardProps:!0,children:e.children})})}var fd=Ae((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...i}=e,{getDialogProps:c,getDialogContainerProps:d}=ll(),p=c(i,t),h=d(o),m=Ct("chakra-modal__content",n),v=Vc(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},w={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:y}=ll();return a.jsx(Gz,{children:a.jsx(je.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:a.jsx(C6,{preset:y,motionProps:s,className:m,...p,__css:b,children:r})})})});fd.displayName="ModalContent";function zd(e){const{leastDestructiveRef:t,...n}=e;return a.jsx(dd,{...n,initialFocusRef:t})}var Bd=Ae((e,t)=>a.jsx(fd,{ref:t,role:"alertdialog",...e})),$a=Ae((e,t)=>{const{className:
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YF(e){if(Array.isArray(e))return d1(e)}function CS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CS(Object(n),!0).forEach(function(r){aP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pd(e,t){return ZF(e)||JF(e,t)||iP(e,t)||QF()}function QF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iP(e,t){if(e){if(typeof e=="string")return d1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d1(e,t)}}function d1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,i,c;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw c}}return r}}function ZF(e){if(Array.isArray(e))return e}var eH="file-invalid-type",tH="file-too-large",nH="file-too-small",rH="too-many-files",oH=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:eH,message:"File type must be ".concat(n)}},_S=function(t){return{code:tH,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},PS=function(t){return{code:nH,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},sH={code:rH,message:"Too many files"};function lP(e,t){var n=e.type==="application/x-moz-file"||qF(e,t);return[n,n?null:oH(t)]}function cP(e,t,n){if(Vi(e.size))if(Vi(t)&&Vi(n)){if(e.size>n)return[!1,_S(n)];if(e.size<t)return[!1,PS(t)]}else{if(Vi(t)&&e.size<t)return[!1,PS(t)];if(Vi(n)&&e.size>n)return[!1,_S(n)]}return[!0,null]}function Vi(e){return e!=null}function aH(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,s=e.multiple,i=e.maxFiles,c=e.validator;return!s&&t.length>1||s&&i>=1&&t.length>i?!1:t.every(function(d){var p=lP(d,n),h=pd(p,1),m=h[0],v=cP(d,r,o),b=pd(v,1),w=b[0],y=c?c(d):null;return m&&w&&!y})}function lh(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Yf(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function jS(e){e.preventDefault()}function iH(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function lH(e){return e.indexOf("Edge/")!==-1}function cH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return iH(e)||lH(e)}function Gs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return t.some(function(c){return!lh(r)&&c&&c.apply(void 0,[r].concat(s)),lh(r)})}}function uH(){return"showOpenFilePicker"in window}function dH(e){if(Vi(e)){var t=Object.entries(e).filter(function(n){var r=pd(n,2),o=r[0],s=r[1],i=!0;return uP(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),(!Array.isArray(s)||!s.every(dP))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(n,r){var o=pd(r,2),s=o[0],i=o[1];return kS(kS({},n),{},aP({},s,i))},{});return[{description:"Files",accept:t}]}return e}function fH(e){if(Vi(e))return Object.entries(e).reduce(function(t,n){var r=pd(n,2),o=r[0],s=r[1];return[].concat(SS(t),[o],SS(s))},[]).filter(function(t){return uP(t)||dP(t)}).join(",")}function pH(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function hH(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function uP(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function dP(e){return/^.*\.[\w]+$/.test(e)}var mH=["children"],gH=["open"],vH=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDr
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SH(e){if(Array.isArray(e))return f1(e)}function U0(e,t){return _H(e)||kH(e,t)||fP(e,t)||CH()}function CH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fP(e,t){if(e){if(typeof e=="string")return f1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f1(e,t)}}function f1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,i,c;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw c}}return r}}function _H(e){if(Array.isArray(e))return e}function IS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IS(Object(n),!0).forEach(function(r){p1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ch(e,t){if(e==null)return{};var n=PH(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PH(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var oy=f.forwardRef(function(e,t){var n=e.children,r=ch(e,mH),o=sy(r),s=o.open,i=ch(o,gH);return f.useImperativeHandle(t,function(){return{open:s}},[s]),W.createElement(f.Fragment,null,n(fr(fr({},i),{},{open:s})))});oy.displayName="Dropzone";var pP={disabled:!1,getFilesFromEvent:LF,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};oy.defaultProps=pP;oy.propTypes={children:zn.func,accept:zn.objectOf(zn.arrayOf(zn.string)),multiple:zn.bool,preventDropOnDocument:zn.bool,noClick:zn.bool,noKeyboard:zn.bool,noDrag:zn.bool,noDragEventsBubbling:zn.bool,minSize:zn.number,maxSize:zn.number,maxFiles:zn.number,disabled:zn.bool,getFilesFromEvent:zn.func,onFileDialogCancel:zn.func,onFileDialogOpen:zn.func,useFsAccessApi:zn.bool,autoFocus:zn.bool,onDragEnter:zn.func,onDragLeave:zn.func,onDragOver:zn.func,onDrop:zn.func,onDropAccepted:zn.func,onDropRejected:zn.func,onError:zn.func,validator:zn.func};var h1={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function sy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=fr(fr({},pP),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,i=t.minSize,c=t.multiple,d=t.maxFiles,p=t.onDragEnter,h=t.onDragLeave,m=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,w=t.onDropRejected,y=t.onFileDialogCancel,S=t.onFileDialogOpen,k=t.useFsAccessApi,_=t.autoFocus,P=t.preventDropOnDocument,I=t.noClick,E=t.noKeyboard,O=t.noDrag,R=t.noDragEventsBubbling,M=t.onError,D=t.validator,A=f.useMemo(function(){return fH(n)},[n]),L=f.useMemo(function(){return dH(n)},[n]),Q=f.useMemo(function(){return typeof S=="function"?S:ES},[S]),F=f.useMemo(function(){return typeof y=="function"?y:ES},[y]),V=f.useRef(null),q=f.useRef(null),G=f.useReducer(jH,h1),T=U0(G,2),z=T[0],$=T[1],Y=z.isFocused,ae=z.isFileDialogActive,fe=f.useRef(typeof window<"u"&&window.isSecureContext&&k&&uH()),ie=function(){!fe.current&&ae&&setTimeout(function(){if(q.current){var Me=q.current.files;Me.length||($({type:"closeDialog"}),F())}},300)};f.useEffect(functi
|
||
|
`),status:"error"})},[i,s]),m=f.useCallback(async P=>{p({file:P,image_category:"user",is_intermediate:!1,postUploadAction:r,board_id:n==="none"?void 0:n})},[n,r,p]),v=f.useCallback((P,I)=>{if(I.length>1){s({title:i("toast.uploadFailed"),description:i("toast.uploadFailedInvalidUploadDesc"),status:"error"});return}I.forEach(E=>{h(E)}),P.forEach(E=>{m(E)})},[i,s,m,h]),{getRootProps:b,getInputProps:w,isDragAccept:y,isDragReject:S,isDragActive:k,inputRef:_}=sy({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:v,onDragOver:()=>d(!0),disabled:o,multiple:!1});return f.useEffect(()=>{const P=async I=>{var E,O;_.current&&(E=I.clipboardData)!=null&&E.files&&(_.current.files=I.clipboardData.files,(O=_.current)==null||O.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",P),()=>{document.removeEventListener("paste",P)}},[_]),a.jsxs(Oe,{...b({style:{}}),onKeyDown:P=>{P.key},children:[a.jsx("input",{...w()}),t,a.jsx(mo,{children:k&&c&&a.jsx(Er.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.1}},exit:{opacity:0,transition:{duration:.1}},children:a.jsx(FH,{isDragAccept:y,isDragReject:S,setIsHandlingUpload:d})},"image-upload-overlay")})]})},VH=f.memo(WH),UH=Ae((e,t)=>{const{children:n,tooltip:r="",tooltipProps:{placement:o="top",hasArrow:s=!0,...i}={},isChecked:c,...d}=e;return a.jsx(vn,{label:r,placement:o,hasArrow:s,...i,children:a.jsx(xc,{ref:t,colorScheme:c?"accent":"base",...d,children:n})})}),Yt=f.memo(UH);function GH(e){const t=f.createContext(null);return[({children:o,value:s})=>W.createElement(t.Provider,{value:s},o),()=>{const o=f.useContext(t);if(o===null)throw new Error(e);return o}]}function xP(e){return Array.isArray(e)?e:[e]}const qH=()=>{};function KH(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||qH:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function wP({data:e}){const t=[],n=[],r=e.reduce((o,s,i)=>(s.group?o[s.group]?o[s.group].push(i):o[s.group]=[i]:n.push(i),o),{});return Object.keys(r).forEach(o=>{t.push(...r[o].map(s=>e[s]))}),t.push(...n.map(o=>e[o])),t}function SP(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==W.Fragment:!1}function CP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=CP(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function kP(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=CP(t))&&(r&&(r+=" "),r+=n);return r}const XH={app:100,modal:200,popover:300,overlay:400,max:9999};function ay(e){return XH[e]}function YH(e,t){const n=f.useRef();return(!n.current||t.length!==n.current.prevDeps.length||n.current.prevDeps.map((r,o)=>r===t[o]).indexOf(!1)>=0)&&(n.current={v:e(),prevDeps:[...t]}),n.current.v}const QH=UR({key:"mantine",prepend:!0});function JH(){return $5()||QH}var ZH=Object.defineProperty,RS=Object.getOwnPropertySymbols,eW=Object.prototype.hasOwnProperty,tW=Object.prototype.propertyIsEnumerable,MS=(e,t,n)=>t in e?ZH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nW=(e,t)=>{for(var n in t||(t={}))eW.call(t,n)&&MS(e,n,t[n]);if(RS)for(var n of RS(t))tW.call(t,n)&&MS(e,n,t[n]);return e};const K0="ref";function rW(e){let t;if(e.length!==1)return{args:e,ref:t};const[n]=e;if(!(n instanceof Object))return{args:e,ref:t};if(!(K0 in n))return{args:e,ref:t};t=n[K0];const r=nW({},n);return delete r[K0],{args:[r],ref:t}}const{cssFactory:oW}=(()=>{function e(n,r,o){const s=[],i=KR(n,s,o);return s.length<2?o:i+r(s)}function t(n){const{cache:r}=n,o=(...i)=>{const{ref:c,args:d}=rW(i),p=GR(d,r.registered);return qR(r,p,!1),`${r.key}-${p.name}${c===void 0?"":` ${c}`}`};return{css:o,cx:(...i)=>e(r.registered,o,kP(i))}}return{cssFactory:t}})();function _P(){const e=JH();return YH(()=>oW({cache:e}),[e])}function sW({cx:e,classes:t,context:n,classNames:r,name:o,cache:s}){const i=n.reduce((c,d)=>(Object.keys(d.classNames).forEach(p=>{typeof c[p]!="string"?c[p]=`${d.classNames[p]}`:c[p]=`${c[p]} ${d.classNam
|
||
|
* OverlayScrollbars
|
||
|
* Version: 2.2.1
|
||
|
*
|
||
|
* Copyright (c) Rene Haas | KingSora.
|
||
|
* https://github.com/KingSora
|
||
|
*
|
||
|
* Released under the MIT license.
|
||
|
*/function _n(e,t){if(Ym(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&_n(Object.keys(e),n=>t(e[n],n,e));return e}function no(e,t){const n=Ei(t);if(Ms(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?B4(e,s,t):t.reduce((i,c)=>(i[c]=B4(e,s,c),i),o)}return o}e&&_n(Ho(t),o=>_Q(e,o,t[o]))}const ys=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,i;const c=(h,m)=>{const v=s,b=h,w=m||(r?!r(v,b):v!==b);return(w||o)&&(s=b,i=v),[s,w,i]};return[t?h=>c(t(s,i),h):c,h=>[s,!!h,i]]},Xd=()=>typeof window<"u",uE=Xd()&&Node.ELEMENT_NODE,{toString:uQ,hasOwnProperty:rv}=Object.prototype,Ya=e=>e===void 0,Xm=e=>e===null,dQ=e=>Ya(e)||Xm(e)?`${e}`:uQ.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),wi=e=>typeof e=="number",Ei=e=>typeof e=="string",jy=e=>typeof e=="boolean",Rs=e=>typeof e=="function",Ms=e=>Array.isArray(e),gd=e=>typeof e=="object"&&!Ms(e)&&!Xm(e),Ym=e=>{const t=!!e&&e.length,n=wi(t)&&t>-1&&t%1==0;return Ms(e)||!Rs(e)&&n?t>0&&gd(e)?t-1 in e:!0:!1},j1=e=>{if(!e||!gd(e)||dQ(e)!=="object")return!1;let t;const n="constructor",r=e[n],o=r&&r.prototype,s=rv.call(e,n),i=o&&rv.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(t in e);return Ya(t)||rv.call(e,t)},Xh=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===uE:!1},Qm=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===uE:!1},Iy=(e,t,n)=>e.indexOf(t,n),An=(e,t,n)=>(!n&&!Ei(t)&&Ym(t)?Array.prototype.push.apply(e,t):e.push(t),e),ul=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{An(n,r)}):_n(e,r=>{An(n,r)}),n)},Ey=e=>!!e&&e.length===0,ha=(e,t,n)=>{_n(e,o=>o&&o.apply(void 0,t||[])),!n&&(e.length=0)},Jm=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ho=e=>e?Object.keys(e):[],hr=(e,t,n,r,o,s,i)=>{const c=[t,n,r,o,s,i];return(typeof e!="object"||Xm(e))&&!Rs(e)&&(e={}),_n(c,d=>{_n(Ho(d),p=>{const h=d[p];if(e===h)return!0;const m=Ms(h);if(h&&(j1(h)||m)){const v=e[p];let b=v;m&&!Ms(v)?b=[]:!m&&!j1(v)&&(b={}),e[p]=hr(b,h)}else e[p]=h})}),e},Oy=e=>{for(const t in e)return!1;return!0},dE=(e,t,n,r)=>{if(Ya(r))return n?n[e]:t;n&&(Ei(r)||wi(r))&&(n[e]=r)},to=(e,t,n)=>{if(Ya(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},Co=(e,t)=>{e&&e.removeAttribute(t)},Zi=(e,t,n,r)=>{if(n){const o=to(e,t)||"",s=new Set(o.split(" "));s[r?"add":"delete"](n);const i=ul(s).join(" ").trim();to(e,t,i)}},fQ=(e,t,n)=>{const r=to(e,t)||"";return new Set(r.split(" ")).has(n)},Ps=(e,t)=>dE("scrollLeft",0,e,t),Ma=(e,t)=>dE("scrollTop",0,e,t),I1=Xd()&&Element.prototype,fE=(e,t)=>{const n=[],r=t?Qm(t)?t:null:document;return r?An(n,r.querySelectorAll(e)):n},pQ=(e,t)=>{const n=t?Qm(t)?t:null:document;return n?n.querySelector(e):null},Yh=(e,t)=>Qm(e)?(I1.matches||I1.msMatchesSelector).call(e,t):!1,Ry=e=>e?ul(e.childNodes):[],Ha=e=>e?e.parentElement:null,Zl=(e,t)=>{if(Qm(e)){const n=I1.closest;if(n)return n.call(e,t);do{if(Yh(e,t))return e;e=Ha(e)}while(e)}return null},hQ=(e,t,n)=>{const r=e&&Zl(e,t),o=e&&pQ(n,r),s=Zl(o,t)===r;return r&&o?r===e||o===e||s&&Zl(Zl(e,n),t)!==r:!1},My=(e,t,n)=>{if(n&&e){let r=t,o;Ym(n)?(o=document.createDocumentFragment(),_n(n,s=>{s===r&&(r=s.previousSibling),o.appendChild(s)})):o=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(o,r||null)}},ns=(e,t)=>{My(e,null,t)},mQ=(e,t)=>{My(Ha(e),e,t)},$4=(e,t)=>{My(Ha(e),e&&e.nextSibling,t)},sa=e=>{if(Ym(e))_n(ul(e),t=>sa(t));else if(e){const t=Ha(e);t&&t.removeChild(e)}},el=e=>{const t=document.createElement("div");return e&&to(t,"class",e),t},pE=e=>{const t=el();return t.innerHTML=e.trim(),_n(Ry(t),n=>sa(n))},E1=e=>e.charAt(0).toUpperCase()+e.slice(1),gQ=()=>el().style,vQ=["-webkit-","-moz-","-o-","-ms-"],bQ=["WebKit","Moz","O","MS","webkit","moz","o","ms"],ov={},sv={},yQ=e=>{let t=sv[e];if(Jm(sv,e))return t;const n=E1(e),r=gQ();return _n(vQ,o=>{const s=o.replace(/-/g,"");return!(t=[e,o+e,s+n,E1(s)+n].find(c=>r[c]!==void 0))}),sv[e]=t||""},Yd=e=>{if(Xd()){let t=ov[e]||window[e];return Jm(ov,e)||(_n(bQ,n=>(t=t||window[n+E1(e)],!t)),ov[e]=t),t}},xQ=Yd("MutationObserver"),L4=Yd("IntersectionObserver"),ec=Yd("ResizeObserver"),hE=Yd("cancelAnimationFrame"),m
|
||
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
||
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}}({queryThunk:Ye,mutationThunk:Pt,api:J,serializeQueryArgs:ut,context:he}),Or=sn.buildInitiateQuery,Jn=sn.buildInitiateMutation;return $r(J.util,{getRunningOperationPromises:sn.getRunningOperationPromises,getRunningOperationPromise:sn.removalWarning,getRunningMutationThunk:sn.getRunningMutationThunk,getRunningMutationsThunk:sn.getRunningMutationsThunk,getRunningQueryThunk:sn.getRunningQueryThunk,getRunningQueriesThunk:sn.getRunningQueriesThunk}),{name:fs,injectEndpoint:function(It,In){var Rn,Zn=J;(Rn=Zn.endpoints)[It]!=null||(Rn[It]={}),oe(In)?$r(Zn.endpoints[It],{name:It,select:Gt(It,In),initiate:Or(It,In)},en(Ye,It)):In.type===U.mutation&&$r(Zn.endpoints[It],{name:It,select:un(),initiate:Jn(It)},en(Pt,It))}}}}},Ls=Xe(ga())})(FE);BE.exports=FE;var ro=BE.exports;const RJ=e=>{const{boardToDelete:t,setBoardToDelete:n}=e,{t:r}=ye(),o=B(_=>_.config.canRestoreDeletedImagesFromBin),{currentData:s,isFetching:i}=r7((t==null?void 0:t.board_id)??ro.skipToken),c=f.useMemo(()=>be([at],_=>{const P=(s??[]).map(E=>L_(_,E));return{imageUsageSummary:{isInitialImage:Pa(P,E=>E.isInitialImage),isCanvasImage:Pa(P,E=>E.isCanvasImage),isNodesImage:Pa(P,E=>E.isNodesImage),isControlNetImage:Pa(P,E=>E.isControlNetImage)}}}),[s]),[d,{isLoading:p}]=o7(),[h,{isLoading:m}]=s7(),{imageUsageSummary:v}=B(c),b=f.useCallback(()=>{t&&(d(t.board_id),n(void 0))},[t,d,n]),w=f.useCallback(()=>{t&&(h(t.board_id),n(void 0))},[t,h,n]),y=f.useCallback(()=>{n(void 0)},[n]),S=f.useRef(null),k=f.useMemo(()=>m||p||i,[m,p,i]);return t?a.jsx(zd,{isOpen:!!t,onClose:y,leastDestructiveRef:S,isCentered:!0,children:a.jsx(za,{children:a.jsxs(Bd,{children:[a.jsxs(La,{fontSize:"lg",fontWeight:"bold",children:["Delete ",t.board_name]}),a.jsx(Ba,{children:a.jsxs(H,{direction:"column",gap:3,children:[i?a.jsx(Mm,{children:a.jsx(H,{sx:{w:"full",h:32}})}):a.jsx(UI,{imageUsage:v,topMessage:"This board contains images used in the following features:",bottomMessage:"Deleting this board and its images will reset any features currently using them."}),a.jsx(Je,{children:"Deleted boards cannot be restored."}),a.jsx(Je,{children:r(o?"gallery.deleteImageBin":"gallery.deleteImagePermanent")})]})}),a.jsx($a,{children:a.jsxs(H,{sx:{justifyContent:"space-between",width:"full",gap:2},children:[a.jsx(Yt,{ref:S,onClick:y,children:"Cancel"}),a.jsx(Yt,{colorScheme:"warning",isLoading:k,onClick:b,children:"Delete Board Only"}),a.jsx(Yt,{colorScheme:"error",isLoading:k,onClick:w,children:"Delete Board and Images"})]})})]})})}):null},MJ=f.memo(RJ),HE=Ae((e,t)=>{const{role:n,tooltip:r="",tooltipProps:o,isChecked:s,...i}=e;return a.jsx(vn,{label:r,hasArrow:!0,...o,...o!=null&&o.placement?{placement:o.placement}:{placement:"top"},children:a.jsx(Ea,{ref:t,role:n,colorScheme:s?"accent":"base",...i})})});HE.displayName="IAIIconButton";const ze=f.memo(HE),DJ="My Board",AJ=()=>{const[e,{isLoading:t}]=a7(),n=f.useCallback(()=>{e(DJ)},[e]);return a.jsx(ze,{icon:a.jsx(yl,{}),isLoading:t,tooltip:"Add Board","aria-label":"Add Board",onClick:n,size:"sm"})};var ck={path:a.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[a.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),a.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),a.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},WE=Ae((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:s=!1,children:i,className:c,__css:d,...p}=e,h=Ct("chakra-icon",c),m=fa("Icon",e),v={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...d,...m},b={ref:t,focusable:s,className:h,__css:v},w=r??ck.viewBox;if(n&&typeof n!="string")return a.jsx(je.svg,{as:n,...b,...p});const y=i??ck.path;return a.jsx(je.svg,{verticalAlign:"middle",viewBox:w,...b,...p,children:y})});WE.displayName="Icon";function Qd(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,s=f.Chil
|
||
|
* @license React
|
||
|
* react-reconciler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var Vle=function(t){var n={},r=f,o=Op,s=Object.assign;function i(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,g=1;g<arguments.length;g++)u+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,d=Symbol.for("react.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),w=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),E=Symbol.iterator;function O(l){return l===null||typeof l!="object"?null:(l=E&&l[E]||l["@@iterator"],typeof l=="function"?l:null)}function R(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case h:return"Fragment";case p:return"Portal";case v:return"Profiler";case m:return"StrictMode";case S:return"Suspense";case k:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case w:return(l.displayName||"Context")+".Consumer";case b:return(l._context.displayName||"Context")+".Provider";case y:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case _:return u=l.displayName||null,u!==null?u:R(l.type)||"Memo";case P:u=l._payload,l=l._init;try{return R(l(u))}catch{}}return null}function M(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R(u);case 8:return u===m?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function D(l){var u=l,g=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,u.flags&4098&&(g=u.return),l=u.return;while(l)}return u.tag===3?g:null}function A(l){if(D(l)!==l)throw Error(i(188))}function L(l){var u=l.alternate;if(!u){if(u=D(l),u===null)throw Error(i(188));return u!==l?null:l}for(var g=l,x=u;;){var C=g.return;if(C===null)break;var j=C.alternate;if(j===null){if(x=C.return,x!==null){g=x;continue}break}if(C.child===j.child){for(j=C.child;j;){if(j===g)return A(C),l;if(j===x)return A(C),u;j=j.sibling}throw Error(i(188))}if(g.return!==x.return)g=C,x=j;else{for(var N=!1,Z=C.child;Z;){if(Z===g){N=!0,g=C,x=j;break}if(Z===x){N=!0,x=C,g=j;break}Z=Z.sibling}if(!N){for(Z=j.child;Z;){if(Z===g){N=!0,g=j,x=C;break}if(Z===x){N=!0,x=j,g=C;break}Z=Z.sibling}if(!N)throw Error(i(189))}}if(g.alternate!==x)throw Error(i(190))}if(g.tag!==3)throw Error(i(188));return g.stateNode.current===g?l:u}function Q(l){return l=L(l),l!==null?F(l):null}function F(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=F(l);if(u!==null)return u;l=l.sibling}return null}function V(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var u=V(l);if(u!==null)return u}l=l.sibling}return null}var q=Array.isArray,G=t.getPublicInstance,T=t.getRootHostContext,z=t.getChildHostContext,$=t.prepareForCommit,Y=t.resetAfterCommit,ae=t.createInstance,fe=t.appendInitialChild,ie=t.finalizeInitialChildren,X=t.prepareUpdate,K=t.shouldSetTextContent,U=t.createTextInstance,se=t.scheduleTimeout,re=t.cancelTimeout,oe=t.noTimeout,pe=t.isPrimaryRenderer,le=t.supportsMutation,ge=t.supportsPersistence,ke=t.supportsHydration,xe=t.ge
|
||
|
`+Et+l}var qt=!1;function tn(l,u){if(!l||qt)return"";qt=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(Ne){var x=Ne}Reflect.construct(l,[],u)}else{try{u.call()}catch(Ne){x=Ne}l.call(u.prototype)}else{try{throw Error()}catch(Ne){x=Ne}l()}}catch(Ne){if(Ne&&x&&typeof Ne.stack=="string"){for(var C=Ne.stack.split(`
|
||
|
`),j=x.stack.split(`
|
||
|
`),N=C.length-1,Z=j.length-1;1<=N&&0<=Z&&C[N]!==j[Z];)Z--;for(;1<=N&&0<=Z;N--,Z--)if(C[N]!==j[Z]){if(N!==1||Z!==1)do if(N--,Z--,0>Z||C[N]!==j[Z]){var ue=`
|
||
|
`+C[N].replace(" at new "," at ");return l.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",l.displayName)),ue}while(1<=N&&0<=Z);break}}}finally{qt=!1,Error.prepareStackTrace=g}return(l=l?l.displayName||l.name:"")?Nt(l):""}var en=Object.prototype.hasOwnProperty,Ut=[],Be=-1;function yt(l){return{current:l}}function Mt(l){0>Be||(l.current=Ut[Be],Ut[Be]=null,Be--)}function Wt(l,u){Be++,Ut[Be]=l.current,l.current=u}var jn={},Gt=yt(jn),un=yt(!1),sn=jn;function Or(l,u){var g=l.type.contextTypes;if(!g)return jn;var x=l.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===u)return x.__reactInternalMemoizedMaskedChildContext;var C={},j;for(j in g)C[j]=u[j];return x&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=C),C}function Jn(l){return l=l.childContextTypes,l!=null}function It(){Mt(un),Mt(Gt)}function In(l,u,g){if(Gt.current!==jn)throw Error(i(168));Wt(Gt,u),Wt(un,g)}function Rn(l,u,g){var x=l.stateNode;if(u=u.childContextTypes,typeof x.getChildContext!="function")return g;x=x.getChildContext();for(var C in x)if(!(C in u))throw Error(i(108,M(l)||"Unknown",C));return s({},g,x)}function Zn(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||jn,sn=Gt.current,Wt(Gt,l),Wt(un,un.current),!0}function mr(l,u,g){var x=l.stateNode;if(!x)throw Error(i(169));g?(l=Rn(l,u,sn),x.__reactInternalMemoizedMergedChildContext=l,Mt(un),Mt(Gt),Wt(Gt,l)):Mt(un),Wt(un,g)}var Tn=Math.clz32?Math.clz32:Sn,Nn=Math.log,dn=Math.LN2;function Sn(l){return l>>>=0,l===0?32:31-(Nn(l)/dn|0)|0}var En=64,bn=4194304;function yn(l){switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function qe(l,u){var g=l.pendingLanes;if(g===0)return 0;var x=0,C=l.suspendedLanes,j=l.pingedLanes,N=g&268435455;if(N!==0){var Z=N&~C;Z!==0?x=yn(Z):(j&=N,j!==0&&(x=yn(j)))}else N=g&~C,N!==0?x=yn(N):j!==0&&(x=yn(j));if(x===0)return 0;if(u!==0&&u!==x&&!(u&C)&&(C=x&-x,j=u&-u,C>=j||C===16&&(j&4194240)!==0))return u;if(x&4&&(x|=g&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=x;0<u;)g=31-Tn(u),C=1<<g,x|=l[g],u&=~C;return x}function Ot(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function St(l,u){for(var g=l.suspendedLanes,x=l.pingedLanes,C=l.expirationTimes,j=l.pendingLanes;0<j;){var N=31-Tn(j),Z=1<<N,ue=C[N];ue===-1?(!(Z&g)||Z&x)&&(C[N]=Ot(Z,u)):ue<=u&&(l.expiredLanes|=Z),j&=~Z}}function st(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function wt(){var l=En;return En<<=1,!(En&4194240)&&(En=64),l}function Bt(l){for(var u=[],g=0;31>g;g++)u.push(l);return u}function mt(l,u,g){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Tn(u),l[u]=g}function rt(l,u){var g=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var x=l.eventTimes;for(l=l.expirationTimes;0<g;){var C=31-Tn(g),j=1<<C;u[C]=0,x[C]=-1,l[C]=-1,g&=~j}}function Re(l,u){var g=l.entangledLanes|=u;for(l=l.entanglements;g;){var x=31-Tn(g),C=1<<x;C&u|l[x]&u&&(l[x]|=u),g&=~C}}var Ie=0;function De(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var We=o.unstable_scheduleCallback,Ze=o.unstable_cancelCallback,Dt=o.unsta
|
||
|
Error generating stack: `+j.message+`
|
||
|
`+j.stack}return{value:l,source:u,stack:C,digest:null}}function Wg(l,u,g){return{value:l,source:null,stack:g??null,digest:u??null}}function Vg(l,u){try{console.error(u.value)}catch(g){setTimeout(function(){throw g})}}var W8=typeof WeakMap=="function"?WeakMap:Map;function o2(l,u,g){g=ya(-1,g),g.tag=3,g.payload={element:null};var x=u.value;return g.callback=function(){Rf||(Rf=!0,u0=x),Vg(l,u)},g}function s2(l,u,g){g=ya(-1,g),g.tag=3;var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var C=u.value;g.payload=function(){return x(C)},g.callback=function(){Vg(l,u)}}var j=l.stateNode;return j!==null&&typeof j.componentDidCatch=="function"&&(g.callback=function(){Vg(l,u),typeof x!="function"&&(ei===null?ei=new Set([this]):ei.add(this));var N=u.stack;this.componentDidCatch(u.value,{componentStack:N!==null?N:""})}),g}function a2(l,u,g){var x=l.pingCache;if(x===null){x=l.pingCache=new W8;var C=new Set;x.set(u,C)}else C=x.get(u),C===void 0&&(C=new Set,x.set(u,C));C.has(g)||(C.add(g),l=rR.bind(null,l,u,g),u.then(l,l))}function i2(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function l2(l,u,g,x,C){return l.mode&1?(l.flags|=65536,l.lanes=C,l):(l===u?l.flags|=65536:(l.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(u=ya(-1,1),u.tag=2,Za(g,u,1))),g.lanes|=1),l)}var V8=c.ReactCurrentOwner,yo=!1;function uo(l,u,g,x){u.child=l===null?Tx(u,null,g,x):Il(u,l.child,g,x)}function c2(l,u,g,x,C){g=g.render;var j=u.ref;return jl(u,C),x=$g(l,u,g,x,j,C),g=Lg(),l!==null&&!yo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,xa(l,u,C)):(er&&g&&bg(u),u.flags|=1,uo(l,u,x,C),u.child)}function u2(l,u,g,x,C){if(l===null){var j=g.type;return typeof j=="function"&&!g0(j)&&j.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(u.tag=15,u.type=j,d2(l,u,j,x,C)):(l=$f(g.type,null,x,u,u.mode,C),l.ref=u.ref,l.return=u,u.child=l)}if(j=l.child,!(l.lanes&C)){var N=j.memoizedProps;if(g=g.compare,g=g!==null?g:of,g(N,x)&&l.ref===u.ref)return xa(l,u,C)}return u.flags|=1,l=oi(j,x),l.ref=u.ref,l.return=u,u.child=l}function d2(l,u,g,x,C){if(l!==null){var j=l.memoizedProps;if(of(j,x)&&l.ref===u.ref)if(yo=!1,u.pendingProps=x=j,(l.lanes&C)!==0)l.flags&131072&&(yo=!0);else return u.lanes=l.lanes,xa(l,u,C)}return Ug(l,u,g,x,C)}function f2(l,u,g){var x=u.pendingProps,C=x.children,j=l!==null?l.memoizedState:null;if(x.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wt(Dl,$o),$o|=g;else{if(!(g&1073741824))return l=j!==null?j.baseLanes|g:g,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,Wt(Dl,$o),$o|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=j!==null?j.baseLanes:g,Wt(Dl,$o),$o|=x}else j!==null?(x=j.baseLanes|g,u.memoizedState=null):x=g,Wt(Dl,$o),$o|=x;return uo(l,u,C,g),u.child}function p2(l,u){var g=u.ref;(l===null&&g!==null||l!==null&&l.ref!==g)&&(u.flags|=512,u.flags|=2097152)}function Ug(l,u,g,x,C){var j=Jn(g)?sn:Gt.current;return j=Or(u,j),jl(u,C),g=$g(l,u,g,x,j,C),x=Lg(),l!==null&&!yo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,xa(l,u,C)):(er&&x&&bg(u),u.flags|=1,uo(l,u,g,C),u.child)}function h2(l,u,g,x,C){if(Jn(g)){var j=!0;Zn(u)}else j=!1;if(jl(u,C),u.stateNode===null)yf(l,u),Rx(u,g,x),Og(u,g,x,C),x=!0;else if(l===null){var N=u.stateNode,Z=u.memoizedProps;N.props=Z;var ue=N.context,Ne=g.contextType;typeof Ne=="object"&&Ne!==null?Ne=Uo(Ne):(Ne=Jn(g)?sn:Gt.current,Ne=Or(u,Ne));var gt=g.getDerivedStateFromProps,Qt=typeof gt=="function"||typeof N.getSnapshotBeforeUpdate=="function";Qt||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(Z!==x||ue!==Ne)&&Mx(u,N,x,Ne),Ja=!1;var it=u.memoizedState;N.state=it,cf(u,x,N,C),ue=u.memoizedState,Z!==x||it!==ue||un.current||Ja?(typeof gt=="function"&&(Eg(u,g,gt,x),ue=u.memoizedState),(Z=Ja||Ox(u,g,Z,x,it,ue,Ne))?(Qt||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMo
|
||
|
`+(x.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+l.join(" > ")}return null},n.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return G(l.child.stateNode);default:return l.child.stateNode}},n.injectIntoDevTools=function(l){if(l={bundleType:l.bundleType,version:l.version,rendererPackageName:l.rendererPackageName,rendererConfig:l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:c.ReactCurrentDispatcher,findHostInstanceByFiber:cR,findFiberByHostInstance:l.findFiberByHostInstance||uR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled||!u.supportsFiber)l=!0;else{try{Xn=u.inject(l),gn=u}catch{}l=!!u.checkDCE}}return l},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(l,u,g,x){if(!ct)throw Error(i(363));l=s0(l,u);var C=Tt(l,g,x).disconnect;return{disconnect:function(){C()}}},n.registerMutableSourceForHydration=function(l,u){var g=u._getVersion;g=g(u._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[u,g]:l.mutableSourceEagerHydrationData.push(u,g)},n.runWithPriority=function(l,u){var g=Ie;try{return Ie=l,u()}finally{Ie=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,u,g,x){var C=u.current,j=eo(),N=ni(C);return g=U2(g),u.context===null?u.context=g:u.pendingContext=g,u=ya(j,N),u.payload={element:l},x=x===void 0?null:x,x!==null&&(u.callback=x),l=Za(C,u,N),l!==null&&(Ko(l,C,N,j),lf(l,C,N)),N},n};g8.exports=Vle;var Ule=g8.exports;const Gle=Cd(Ule);var v8={exports:{}},kl={};/**
|
||
|
* @license React
|
||
|
* react-reconciler-constants.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/kl.ConcurrentRoot=1;kl.ContinuousEventPriority=4;kl.DefaultEventPriority=16;kl.DiscreteEventPriority=1;kl.IdleEventPriority=536870912;kl.LegacyRoot=0;v8.exports=kl;var b8=v8.exports;const m_={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let g_=!1,v_=!1;const gx=".react-konva-event",qle=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
||
|
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
|
||
|
Consider to add onDragMove or onDragEnd events.
|
||
|
For more info see: https://github.com/konvajs/react-konva/issues/256
|
||
|
`,Kle=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
||
|
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
|
||
|
For more info see: https://github.com/konvajs/react-konva/issues/194
|
||
|
`,Xle={};function vg(e,t,n=Xle){if(!g_&&"zIndex"in t&&(console.warn(Kle),g_=!0),!v_&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(qle),v_=!0)}for(var s in n)if(!m_[s]){var i=s.slice(0,2)==="on",c=n[s]!==t[s];if(i&&c){var d=s.substr(2).toLowerCase();d.substr(0,7)==="content"&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),e.off(d,n[s])}var p=!t.hasOwnProperty(s);p&&e.setAttr(s,void 0)}var h=t._useStrictMode,m={},v=!1;const b={};for(var s in t)if(!m_[s]){var i=s.slice(0,2)==="on",w=n[s]!==t[s];if(i&&w){var d=s.substr(2).toLowerCase();d.substr(0,7)==="content"&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),t[s]&&(b[d]=t[s])}!i&&(t[s]!==n[s]||h&&t[s]!==e.getAttr(s))&&(v=!0,m[s]=t[s])}v&&(e.setAttrs(m),Di(e));for(var d in b)e.on(d+gx,b[d])}function Di(e){if(!vD.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const y8={},Yle={};xd.Node.prototype._applyProps=vg;function Qle(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Di(e)}function Jle(e,t,n){let r=xd[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=xd.Group);const o={},s={};for(var i in t){var c=i.slice(0,2)==="on";c?s[i]=t[i]:o[i]=t[i]}const d=new r(o);return vg(d,s),d}function Zle(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function ece(e,t,n){return!1}function tce(e){return e}function nce(){return null}function rce(){return null}function oce(e,t,n,r){return Yle}function sce(){}function ace(e){}function ice(e,t){return!1}function lce(){return y8}function cce(){return y8}const uce=setTimeout,dce=clearTimeout,fce=-1;function pce(e,t){return!1}const hce=!1,mce=!0,gce=!0;function vce(e,t){t.parent===e?t.moveToTop():e.add(t),Di(e)}function bce(e,t){t.parent===e?t.moveToTop():e.add(t),Di(e)}function x8(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Di(e)}function yce(e,t,n){x8(e,t,n)}function xce(e,t){t.destroy(),t.off(gx),Di(e)}function wce(e,t){t.destroy(),t.off(gx),Di(e)}function Sce(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function Cce(e,t,n){}function kce(e,t,n,r,o){vg(e,o,r)}function _ce(e){e.hide(),Di(e)}function Pce(e){}function jce(e,t){(t.visible==null||t.visible)&&e.show()}function Ice(e,t){}function Ece(e){}function Oce(){}const Rce=()=>b8.DefaultEventPriority,Mce=Object.freeze(Object.defineProperty({__proto__:null,appendChild:vce,appendChildToContainer:bce,appendInitialChild:Qle,cancelTimeout:dce,clearContainer:Ece,commitMount:Cce,commitTextUpdate:Sce,commitUpdate:kce,createInstance:Jle,createTextInstance:Zle,detachDeletedInstance:Oce,finalizeInitialChildren:ece,getChildHostContext:cce,getCurrentEventPriority:Rce,getPublicInstance:tce,getRootHostContext:lce,hideInstance:_ce,hideTextInstance:Pce,idlePriority:Op.unstable_IdlePriority,insertBefore:x8,insertInContainerBefore:yce,isPrimaryRenderer:hce,noTimeout:fce,now:Op.unstable_now,prepareForCommit:nce,preparePortalMount:rce,prepareUpdate:oce,removeChild:xce,removeChildFromContainer:wce,resetAfterCommit:sce,resetTextContent:ace,run:Op.unstable_runWithPriority,scheduleTimeout:uce,shouldDeprioritizeSubtree:ice,shouldSetTextContent:pce,supportsMutation:gce,unhideInstance:jce,unhideTextInstance:Ice,warnsIfNotActing:mce},Symbol.toStringTag,{value:"Module"}));var Dce=Object.defineProperty,Ace=Object.defineProperties,Tce=Object.getOwnPropertyDescriptors,b_=Object.getOwnPropertySymbols,Nce=Object.prototype.hasOwnProperty,$ce=Object.prototype.propertyIsEnumerable,y_=(e,t,n)=>t in e?Dce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x_=(e,t)=>{for(var n in t||(t={}))Nce.call(t,n)&&y_(e,n,t[n]);if(b_)for(var n of b_(t))$ce.cal
|
||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||
|
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,0)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,10)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,15)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,20)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,25)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,30)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-10)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-15)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-20)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-25)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
<g transform="matrix(0.5,0,0,0.5,0,-30)">
|
||
|
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
|
||
|
</g>
|
||
|
</svg>`.replaceAll("black",e),fue=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:o,stageScale:s}=B(due),[i,c]=f.useState(null),[d,p]=f.useState(0),h=f.useRef(null),m=f.useCallback(()=>{p(d+1),setTimeout(m,500)},[d]);return f.useEffect(()=>{if(i)return;const v=new Image;v.onload=()=>{c(v)},v.src=C_(n)},[i,n]),f.useEffect(()=>{i&&(i.src=C_(n))},[i,n]),f.useEffect(()=>{const v=setInterval(()=>p(b=>(b+1)%5),50);return()=>clearInterval(v)},[]),!i||!Nl(r.x)||!Nl(r.y)||!Nl(s)||!Nl(o.width)||!Nl(o.height)?null:a.jsx(da,{ref:h,offsetX:r.x/s,offsetY:r.y/s,height:o.height/s,width:o.width/s,fillPatternImage:i,fillPatternOffsetY:Nl(d)?d:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/s,y:1/s},listening:!0,globalCompositeOperation:"source-in",...t})},pue=be([mn],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Zt}}),hue=e=>{const{...t}=e,{objects:n}=B(pue);return a.jsx(Wa,{listening:!1,...t,children:n.filter(OD).map((r,o)=>a.jsx(um,{points:r.points,stroke:"rgb(0,0,0)",strokeWidth:r.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:r.tool==="brush"?"source-over":"destination-out"},o))})};var Wi=f,mue=function(t,n,r){const o=Wi.useRef("loading"),s=Wi.useRef(),[i,c]=Wi.useState(0),d=Wi.useRef(),p=Wi.useRef(),h=Wi.useRef();return(d.current!==t||p.current!==n||h.current!==r)&&(o.current="loading",s.current=void 0,d.current=t,p.current=n,h.current=r),Wi.useLayoutEffect(function(){if(!t)return;var m=document.createElement("img");function v(){o.current="loaded",s.current=m,c(Math.random())}function b(){o.current="failed",s.current=void 0,c(Math.random())}return m.addEventListener("load",v),m.addEventListener("error",b),n&&(m.crossOrigin=n),r&&(m.referrerPolicy=r),m.src=t,function(){m.removeEventListener("load",v),m.removeEventListener("error",b)}},[t,n,r]),[s.current,o.current]};const gue=Cd(mue),P8=e=>{const{width:t,height:n,x:r,y:o,imageName:s}=e.canvasImage,{currentData:i,isError:c}=Is(s??ro.skipToken),[d]=gue((i==null?void 0:i.image_url)??"",RD.get()?"use-credentials":"anonymous");return c?a.jsx(da,{x:r,y:o,width:t,height:n,fill:"red"}):a.jsx(k8,{x:r,y:o,image:d,listening:!1})},vue=be([mn],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Zt}}),bue=()=>{const{objects:e}=B(vue);return e?a.jsx(Wa,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(B_(t))return a.jsx(P8,{canvasImage:t},n);if(MD(t)){const r=a.jsx(um,{points:t.points,stroke:t.color?rl(t.color):"rgb(0,0,0)",strokeWidth:t.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:t.tool==="brush"?"source-over":"destination-out"},n);return t.clip?a.jsx(Wa,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(DD(t))return a.jsx(da,{x:t.x,y:t.y,width:t.width,height:t.height,fill:rl(t.color)},n);if(AD(t))return a.jsx(da,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},yue=be([mn],e=>{const{layerState:t,shouldShowStagingImage:n,shouldShowStagingOutline:r,boundingBoxCoordinates:{x:o,y:s},boundingBoxDimensions:{width:i,height:c}}=e,{selectedImageIndex:d,images:p}=t.stagingArea;return{currentStagingAreaImage:p.length>0&&d!==void 0?p[d]:void 0,isOnFirstImage:d===0,isOnLastImage:d===p.length-1,shouldShowStagingImage:n,shouldShowStagingOutline:r,x:o,y:s,width:i,height:c}},{memoizeOptions:{resultEqualityCheck:Zt}}),xue=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:o,x:s,y:i,width:c,height:d}=B(yue);return a.jsxs(Wa,{...t,children:[r&&n&&a.jsx(P8,{canvasImage:n}),o&&a.jsxs(Wa,{children:[a.jsx(da,{x:s,y:i,width:c,height:d,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),a.jsx(da,{x:s,y:i,width:c,height:d,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},wue=be([mn],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n,sessionId:r}},shouldShowSta
|