mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
170 lines
825 KiB
JavaScript
170 lines
825 KiB
JavaScript
|
import{t as Gg,r as mE,i as gE,a as yu,b as m4,S as g4,c as v4,d as y4,e as qg,f as b4,g as Kg,h as vE,j as yE,k as bE,l as xE,m as wE,n as SE,o as CE,p as _E,q as kE,s as f,u as rt,v as a,I as io,w as cr,x as Wn,y as He,z as Mt,A as bu,B as gt,C as xu,D as Ko,E as Jr,F as uo,G as wr,H as jE,J as PE,K as Ga,L as Kc,M as Li,N as sn,O as Ca,P as Gp,Q as ov,R as jl,T as sv,U as wu,_ as Xn,V as IE,W as z,X as x4,Y as w4,Z as Yb,$ as S4,a0 as qp,a1 as av,a2 as Zl,a3 as EE,a4 as OE,a5 as ME,a6 as RE,a7 as C4,a8 as _4,a9 as Kp,aa as Cf,ab as DE,ac as AE,ad as Vm,ae as Xb,af as TE,ag as k4,ah as j4,ai as ec,aj as Jb,ak as Zb,al as NE,am as $E,an as zE,ao as LE,ap as BE,aq as Um,ar as sl,as as Gm,at as FE,au as HE,av as WE,aw as iv,ax as Qp,ay as _f,az as VE,aA as P4,aB as I4,aC as UE,aD as Su,aE as lv,aF as GE,aG as qE,aH as KE,aI as QE,aJ as YE,aK as XE,aL as JE,aM as ex,aN as he,aO as ZE,aP as Gt,aQ as $e,aR as L,aS as zs,aT as mt,aU as Ke,aV as $,aW as Sr,aX as tc,aY as ue,aZ as E4,a_ as xo,a$ as O4,b0 as M4,b1 as nc,b2 as xs,b3 as cv,b4 as e8,b5 as t8,b6 as n8,b7 as al,b8 as Cn,b9 as kf,ba as Lc,bb as r8,bc as o8,bd as s8,be as a8,bf as Ve,bg as i8,bh as je,bi as Z,bj as tx,bk as qa,bl as Ka,bm as uv,bn as jf,bo as l8,bp as c8,bq as Yp,br as Xp,bs as dv,bt as Uo,bu as u8,bv as rc,bw as R4,bx as D4,by as d8,bz as f8,bA as p8,bB as h8,bC as fv,bD as Go,bE as ws,bF as gs,bG as Ct,bH as Pf,bI as m8,bJ as oc,bK as g8,bL as v8,bM as Id,bN as Ed,bO as Qc,bP as Yc,bQ as nx,bR as If,bS as rx,bT as Ef,bU as ox,bV as Qg,bW as sx,bX as Yg,bY as ax,bZ as Of,b_ as ix,b$ as zl,c0 as lx,c1 as Ll,c2 as cx,c3 as Mf,c4 as pv,c5 as hv,c6 as A4,c7 as mv,c8 as gv,c9 as y8,ca as b8,cb as Jp,cc as xl,cd as x8,ce as w8,cf as gf,cg as S8,ch as C8,ci as _8,cj as Rf,ck as T4,cl as k8,cm as N4,cn as $4,co as Ws,cp as ux,cq as j8,cr as Xg,cs as Vs,ct as P8,cu as z4,cv as dx,cw as I8,cx as E8,cy as O8,cz as pr,cA as L4,cB as M8,cC as R8,cD as D8,cE as A8,cF as vv,cG as Bn,cH as B4,cI as F4,cJ as T8,cK as fx,cL as N8,cM as $8,cN as z8,cO as L8,cP as B8,cQ as F8,cR as H4,cS as H8,cT as W8,cU as V8,cV as U8,cW as G8,cX as q8,cY as K8,cZ as W4,c_ as Q8,c$ as Y8,d0 as X8,d1 as J8,d2 as Z8,d3 as e7,d4 as t7,d5 as n7,d6 as r7,d7 as o7,d8 as s7,d9 as V4,da as Qo,db as a7,dc as i7,dd as l7,de as Zp,df as c7,dg as yv,dh as U4,di as u7,dj as d7,dk as f7,dl as Yo,dm as p7,dn as px,dp as hx,dq as Pl,dr as h7,ds as m7,dt as g7,du as v7,dv as y7,dw as b7,dx as x7,dy as w7,dz as S7,dA as C7,dB as _7,dC as k7,dD as bv,dE as xv,dF as j7,dG as mx,dH as P7,dI as gx,dJ as I7,dK as E7,dL as vx,dM as yx,dN as O7,dO as bx,dP as M7,dQ as R7,dR as D7,dS as A7,dT as T7,dU as N7,dV as G4,dW as q4,dX as K4,dY as Q4,dZ as Y4,d_ as Cu,d$ as xx,e0 as $7,e1 as z7,e2 as Vn,e3 as Ei,e4 as L7,e5 as X4,e6 as wx,e7 as B7,e8 as cs,e9 as F7,ea as H7,eb as J4,ec as Z4,ed as W7,ee as e3,ef as t3,eg as _u,eh as n3,ei as r3,ej as Sx,ek as V7,el as Cx,em as U7,en as o3,eo as G7,ep as eh,eq as _x,er as s3,es as q7,et as kx,eu as a3,ev as qo,ew as K7,ex as Q7,ey as i3,ez as jx,eA as Y7,eB as X7,eC as J7,eD as Z7,eE as eO,eF as tO,eG as nO,eH as rO,eI as oO,eJ as sO,eK as aO,eL as iO,eM as lO,eN as cO,eO as uO,eP as dO,eQ as fO,eR as pO,eS as hO,eT as mO,eU as gO,eV as Px,eW as vf,eX as vO,eY as Df,eZ as l3,e_ as ou,e$ as yO,f0 as bO,f1 as Hs,f2 as c3,f3 as wv,f4 as ku,f5 as xO,f6 as wO,f7 as SO,f8 as ma,f9 as u3,fa as CO,fb as _O,fc as d3,fd as kO,fe as jO,ff as PO,fg as IO,fh as EO,fi as OO,fj as MO,fk as RO,fl as DO,fm as AO,fn as Ix,fo as TO,fp as NO,fq as $O,fr as zO,fs as LO,ft as BO,fu as qm,fv as Bs,fw as Od,fx as Km,fy as Qm,fz as Md,fA as Ex,fB as Jg,fC as FO,fD as HO,fE as WO,fF as VO,fG as Af,fH as f3,fI as p3,fJ as UO,fK as GO,fL as h3,fM as m3,fN as g3,fO as v3,fP as y3,fQ as b3,fR as x3,fS as w3,fT as Il,fU as El,fV as S3,fW as C3,fX as qO,fY as _3,fZ as k3,f_ as j3,f$ as P3,g0 as I3,g1 as E3,g2 as Sv,g3 as KO,g4 as QO,g5 as Ox,g6 as YO,g7 as XO,g8 as Tf,g9 as Mx,ga as Rx,gb as Dx,gc as Ax,gd as JO,ge as ZO,gf as eM,gg as tM,gh as nM,gi as rM,gj as oM,gk as sM,gl as aM}from"./index-e243
|
||
|
`})}function JM(e){xu({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Fc(e){const{isOpen:t,isDisabled:n}=jv(),{reduceMotion:r}=Pv(),o=Mt("chakra-accordion__icon",e.className),s=th(),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(io,{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"})})}Fc.displayName="AccordionIcon";var Hc=rt(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...i}=KM(t),d={...th().container,overflowAnchor:"none"},p=f.useMemo(()=>i,[i]);return a.jsx(HM,{value:p,children:a.jsx(He.div,{ref:n,...s,className:Mt("chakra-accordion__item",o),__css:d,children:typeof r=="function"?r({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):r})})});Hc.displayName="AccordionItem";var wi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Oc={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 e0(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return Oc.slideRight;case"left":return Oc.slideLeft;case"bottom":return Oc.slideDown;case"top":return Oc.slideUp;default:return Oc.slideRight}}var Ci={enter:{duration:.2,ease:wi.easeOut},exit:{duration:.1,ease:wi.easeIn}},us={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})},ZM=e=>e!=null&&parseInt(e.toString(),10)>0,Fx={exit:{height:{duration:.2,ease:wi.ease},opacity:{duration:.3,ease:wi.ease}},enter:{height:{duration:.3,ease:wi.ease},opacity:{duration:.4,ease:wi.ease}}},eR={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:ZM(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:us.exit(Fx.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:us.enter(Fx.enter,o)}}},nh=f.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:s=0,endingHeight:i="auto",style:u,className:d,transition:p,transitionEnd:h,...g}=e,[v,b]=f.useState(!1);f.useEffect(()=>{const k=setTimeout(()=>{b(!0)});return()=>clearTimeout(k)},[]),xu({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const S=parseFloat(s.toString())>0,x={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:S?"block":"none"}}},C=r?n:!0,_=n||r?"enter":"exit";return a.jsx(Ko,{initial:!1,custom:x,children:C&&a.jsx(Jr.div,{ref:t,...g,className:Mt("chakra-collapse",d),style:{overflow:"hidden",display:"block",...u},custom:x,variants:eR,initial:r?"exit":!1,animate:_,exit:"exit"})})});nh.displayName="Collapse";var tR={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:us.enter(Ci.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:us.exit(Ci.exit,n),transitionEnd:t==null?void 0:t.exi
|
||
|
.`.concat(ZD,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(u,"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(u,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(yf,` {
|
||
|
right: `).concat(u,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(bf,` {
|
||
|
margin-right: `).concat(u,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(yf," .").concat(yf,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(bf," .").concat(bf,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(eA,": ").concat(u,`px;
|
||
|
}
|
||
|
`)},fA=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=f.useMemo(function(){return cA(o)},[o]);return f.createElement(uA,{styles:dA(s,!t,o,n?"":"!important")})},f0=!1;if(typeof window<"u")try{var Ad=Object.defineProperty({},"passive",{get:function(){return f0=!0,!0}});window.addEventListener("test",Ad,Ad),window.removeEventListener("test",Ad,Ad)}catch{f0=!1}var ul=f0?{passive:!1}:!1,pA=function(e){return e.tagName==="TEXTAREA"},K6=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pA(e)&&n[t]==="visible")},hA=function(e){return K6(e,"overflowY")},mA=function(e){return K6(e,"overflowX")},o2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Q6(e,r);if(o){var s=Y6(e,r),i=s[1],u=s[2];if(i>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Q6=function(e,t){return e==="v"?hA(t):mA(t)},Y6=function(e,t){return e==="v"?gA(t):vA(t)},yA=function(e,t){return e==="h"&&t==="rtl"?-1:1},bA=function(e,t,n,r,o){var s=yA(e,window.getComputedStyle(t).direction),i=s*r,u=n.target,d=t.contains(u),p=!1,h=i>0,g=0,v=0;do{var b=Y6(e,u),S=b[0],x=b[1],C=b[2],_=x-C-s*S;(S||_)&&Q6(e,u)&&(g+=_,v+=S),u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(h&&(o&&g===0||!o&&i>g)||!h&&(o&&v===0||!o&&-i>v))&&(p=!0),p},Td=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},s2=function(e){return[e.deltaX,e.deltaY]},a2=function(e){return e&&"current"in e?e.current:e},xA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wA=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},SA=0,dl=[];function CA(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(SA++)[0],s=f.useState(q6)[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 x=s0([e.lockRef.current],(e.shards||[]).map(a2),!0).filter(Boolean);return x.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=f.useCallback(function(x,C){if("touches"in x&&x.touches.length===2)return!i.current.allowPinchZoom;var _=Td(x),k=n.current,P="deltaX"in x?x.deltaX:k[0]-_[0],I="deltaY"in x?x.deltaY:k[1]-_[1],E,O=x.target,R=Math.abs(P)>Math.abs(I)?"h":"v";if("touches"in x&&R==="h"&&O.type==="range")return!1;var D=o2(R,O);if(!D)return!0;if(D?E=R:(E=R==="v"?"h":"v",D=o2(R,O)),!D)return!1;if(!r.current&&"changedTouches"in x&&(P||I)&&(r.current=E),!E)return!0;var T=r.current||E;return bA(T,C,x,T==="h"?P:I,!0)},[]),d=f.useCallback(function(x){var C=x;if(!(!dl.length||dl[dl.length-1]!==s)){var _="deltaY"in C?s2(C):Td(C),k=t.current.filter(function(E){return E.name===C.type&&E.target===C.target&&xA(E.delta,_)})[0];if(k&&k.should){C.cancelable&&C.preventDefault();return}if(!k){var P=(i.current.shards||[]).map(a2).filter(Boolean).filter(function(E){return E.contains(C.target)}),I=P.length>0?u(C,P[0]):!i.current.noIsolation;I&&C.cancelable&&C.preventDefault()}}},[]),p=f.useCallback(function(x,C,_,k){var P={name:x,delta:C,target:_,should:k};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(I){return I!==P})},1)},[]),h=f.useCallback(function(x){n.current=Td(x),r.current=void 0},[]),g=f.useCallback(function(x){p(x.type,s2(x),x.target,u(x,e.lockRef.current))},[]),v=f.useCallback(function(x){p(x.type,Td(x),x.target,u(x,e.lockRef.current))},[]);f.useEffect(function(){return dl.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,ul),document.addEventListener("touchmove",d,ul),document.addEventListener("touchstart",h,ul),function(){dl=dl.filter(function(x){return x!==s}),document.removeEventListener("wheel",d,ul),document.removeEventListener("touchmove",d,ul),document.removeEventListener("touchstart",h,ul)}},[]);var b=e.removeScrollBar,S=e.inert;return f.createElement(f.Fragment,null,S?f.createElement(s,{styles:wA(o)}):null,b?f.createElement(fA,{gapMode:e.gapMode}):null)}const _A=QR(G6,CA);var X6=f.forwardRef(function(e,t){return f.createElement(sh,Ls({},e,{ref:t,sideCar:_A}))});X6.classNames=sh.classNames;const kA=X6;function jA(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:i,finalFocusRef:u,returnFocusOnClose:d,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:g}=Ri(),[v,b]=DE();f.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const S=V6(r,g);return a.jsx(O6,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:h,children:a.jsx(kA,{removeScrollBar:!p,allowPinchZoom:i,enabled:S===1&&s,forwardProps:!0,children:e.children})})}var cu=rt((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...i}=e,{getDialogProps:u,getDialogContainerProps:d}=Ri(),p=u(i,t),h=d(o),g=Mt("chakra-modal__content",n),v=lc(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},S={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:x}=Ri();return a.jsx(jA,{children:a.jsx(He.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:S,children:a.jsx(W6,{preset:x,motionProps:s,className:g,...p,__css:b,children:r})})})});cu.displayName="ModalContent";function Du(e){const{leastDestructiveRef:t,...n}=e;return a.jsx(lu,{...n,initialFocusRef:t})}var Au=rt((e,t)=>a.jsx(cu,{ref:t,role:"alertdialog",...e})),ga=rt((e,t)=>{const{className:
|
||
|
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"})]})})}p5.displayName="MiniMap";var OT=f.memo(p5),ds;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ds||(ds={}));function MT({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 RT({color:e,radius:t}){return a.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const DT={[ds.Dots]:"#91919a",[ds.Lines]:"#eee",[ds.Cross]:"#e2e2e2"},AT={[ds.Dots]:1,[ds.Lines]:1,[ds.Cross]:6},TT=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function h5({id:e,variant:t=ds.Dots,gap:n=20,size:r,lineWidth:o=1,offset:s=2,color:i,style:u,className:d}){const p=f.useRef(null),{transform:h,patternId:g}=_f(TT,lv),v=i||DT[t],b=r||AT[t],S=t===ds.Dots,x=t===ds.Cross,C=Array.isArray(n)?n:[n,n],_=[C[0]*h[2]||1,C[1]*h[2]||1],k=b*h[2],P=x?[k,k]:_,I=S?[k/s,k/s]:[P[0]/s,P[1]/s];return a.jsxs("svg",{className:Qp(["react-flow__background",d]),style:{...u,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:p,"data-testid":"rf__background",children:[a.jsx("pattern",{id:g+e,x:h[0]%_[0],y:h[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${I[0]},-${I[1]})`,children:S?a.jsx(RT,{color:v,radius:k/s}):a.jsx(MT,{dimensions:P,color:v,lineWidth:o})}),a.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${g+e})`})]})}h5.displayName="Background";var NT=f.memo(h5),Xc;(function(e){e.Line="line",e.Handle="handle"})(Xc||(Xc={}));function $T({width:e,prevWidth:t,height:n,prevHeight:r,invertX:o,invertY:s}){const i=e-t,u=n-r,d=[i>0?1:i<0?-1:0,u>0?1:u<0?-1:0];return i&&o&&(d[0]=d[0]*-1),u&&s&&(d[1]=d[1]*-1),d}const m5={width:0,height:0,x:0,y:0},zT={...m5,pointerX:0,pointerY:0,aspectRatio:1};function LT({nodeId:e,position:t,variant:n=Xc.Handle,className:r,style:o={},children:s,color:i,minWidth:u=10,minHeight:d=10,maxWidth:p=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:g=!1,shouldResize:v,onResizeStart:b,onResize:S,onResizeEnd:x}){const C=YE(),_=typeof e=="string"?e:C,k=P4(),P=f.useRef(null),I=f.useRef(zT),E=f.useRef(m5),O=XE(),R=n===Xc.Line?"right":"bottom-right",D=t??R;f.useEffect(()=>{if(!P.current||!_)return;const J=I4(P.current),F=D.includes("right")||D.includes("left"),N=D.includes("bottom")||D.includes("top"),G=D.includes("left"),K=D.includes("top"),M=JE().on("start",U=>{const V=k.getState().nodeInternals.get(_),{xSnapped:ee,ySnapped:ie}=O(U);E.current={width:(V==null?void 0:V.width)??0,height:(V==null?void 0:V.height)??0,x:(V==null?void 0:V.position.x)??0,y:(V==null?void 0:V.position.y)??0},I.current={...E.current,pointerX:ee,pointerY:ie,aspectRatio:E.current.width/E.current.height},b==null||b(U,{...E.current})}).on("drag",U=>{const{nodeInternals:V,triggerNodeChanges:ee}=k.getState(),{xSnapped:ie,ySnapped:xe}=O(U),me=V.get(_);if(me){const ae=[],{pointerX:te,pointerY:H,width:re,height:pe,x:ne,y:ve,aspectRatio:de}=I.current,{x:Ce,y:Re,width:ge,height:_e}=E.current,We=Math.floor(F?ie-te:0),Le=Math.floor(N?xe-H:0);let Ue=ex(re+(G?-We:We),u,p),jt=ex(pe+(K?-Le:Le),d,h);if(g){const Ae=Ue/jt,Et=F&&N,Ft=F&&!N,Wt=N&&!F;Ue=Ae<=de&&Et||Wt?jt*de:Ue,jt=Ae>de&&Et||Ft?Ue/de:jt,Ue>=p?(Ue=p,jt=p/de):Ue<=u&&(Ue=u,jt=u/de),jt>=h?(jt=h,Ue=h*de):jt<=d&&(jt=d,Ue=d*de)}const vt=Ue!==ge,jn=jt!==_e;if(G||K){const Ae=G?ne-(Ue-re):ne,Et=K?ve-(jt-pe):ve,Ft=Ae!==Ce&&vt,Wt=Et!==Re&&jn;if(Ft||Wt){const _n={id:me.id,type:"position",position:{x:Ft?Ae:Ce,y:Wt?Et:Re}};ae.push(_n),E.current.x=_n.position.x,E.current.y=_n.position.y}}if(vt||jn){const Ae={id:_,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:Ue,height:jt}};ae.push(Ae),E.current.width=Ue,E.current.height=jt}if(ae.length===0)return;const Pt=$T({width:E.current.width,prevWidth:ge,height:E.current.height,prevHeight:_e,invertX:G,invertY:K}),bt={...E.current,direction:Pt};if((v==null?void 0:v(U,bt))===!1)return;S==null||S(U,bt),ee(ae)}}).on("end",U=>{const V={id:_,type:"dimensions",resizing:!1};x==null||x(U,{...E.current}),k.getState(
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rN(e){if(Array.isArray(e))return v0(e)}function d2(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 f2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d2(Object(n),!0).forEach(function(r){y5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uu(e,t){return aN(e)||sN(e,t)||b5(e,t)||oN()}function oN(){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 b5(e,t){if(e){if(typeof e=="string")return v0(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 v0(e,t)}}function v0(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 sN(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,u;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,u=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw u}}return r}}function aN(e){if(Array.isArray(e))return e}var iN="file-invalid-type",lN="file-too-large",cN="file-too-small",uN="too-many-files",dN=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:iN,message:"File type must be ".concat(n)}},p2=function(t){return{code:lN,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},h2=function(t){return{code:cN,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},fN={code:uN,message:"Too many files"};function x5(e,t){var n=e.type==="application/x-moz-file"||eN(e,t);return[n,n?null:dN(t)]}function w5(e,t,n){if(bi(e.size))if(bi(t)&&bi(n)){if(e.size>n)return[!1,p2(n)];if(e.size<t)return[!1,h2(t)]}else{if(bi(t)&&e.size<t)return[!1,h2(t)];if(bi(n)&&e.size>n)return[!1,p2(n)]}return[!0,null]}function bi(e){return e!=null}function pN(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,s=e.multiple,i=e.maxFiles,u=e.validator;return!s&&t.length>1||s&&i>=1&&t.length>i?!1:t.every(function(d){var p=x5(d,n),h=uu(p,1),g=h[0],v=w5(d,r,o),b=uu(v,1),S=b[0],x=u?u(d):null;return g&&S&&!x})}function Hf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Nd(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 m2(e){e.preventDefault()}function hN(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mN(e){return e.indexOf("Edge/")!==-1}function gN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hN(e)||mN(e)}function As(){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(u){return!Hf(r)&&u&&u.apply(void 0,[r].concat(s)),Hf(r)})}}function vN(){return"showOpenFilePicker"in window}function yN(e){if(bi(e)){var t=Object.entries(e).filter(function(n){var r=uu(n,2),o=r[0],s=r[1],i=!0;return S5(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(C5))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(n,r){var o=uu(r,2),s=o[0],i=o[1];return f2(f2({},n),{},y5({},s,i))},{});return[{description:"Files",accept:t}]}return e}function bN(e){if(bi(e))return Object.entries(e).reduce(function(t,n){var r=uu(n,2),o=r[0],s=r[1];return[].concat(u2(t),[o],u2(s))},[]).filter(function(t){return S5(t)||C5(t)}).join(",")}function xN(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function wN(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function S5(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function C5(e){return/^.*\.[\w]+$/.test(e)}var SN=["children"],CN=["open"],_N=["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 IN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EN(e){if(Array.isArray(e))return y0(e)}function dg(e,t){return RN(e)||MN(e,t)||_5(e,t)||ON()}function ON(){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 _5(e,t){if(e){if(typeof e=="string")return y0(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 y0(e,t)}}function y0(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 MN(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,u;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,u=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw u}}return r}}function RN(e){if(Array.isArray(e))return e}function g2(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 tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(n),!0).forEach(function(r){b0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wf(e,t){if(e==null)return{};var n=DN(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 DN(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 Jv=f.forwardRef(function(e,t){var n=e.children,r=Wf(e,SN),o=Zv(r),s=o.open,i=Wf(o,CN);return f.useImperativeHandle(t,function(){return{open:s}},[s]),z.createElement(f.Fragment,null,n(tr(tr({},i),{},{open:s})))});Jv.displayName="Dropzone";var k5={disabled:!1,getFilesFromEvent:UT,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};Jv.defaultProps=k5;Jv.propTypes={children:Dn.func,accept:Dn.objectOf(Dn.arrayOf(Dn.string)),multiple:Dn.bool,preventDropOnDocument:Dn.bool,noClick:Dn.bool,noKeyboard:Dn.bool,noDrag:Dn.bool,noDragEventsBubbling:Dn.bool,minSize:Dn.number,maxSize:Dn.number,maxFiles:Dn.number,disabled:Dn.bool,getFilesFromEvent:Dn.func,onFileDialogCancel:Dn.func,onFileDialogOpen:Dn.func,useFsAccessApi:Dn.bool,autoFocus:Dn.bool,onDragEnter:Dn.func,onDragLeave:Dn.func,onDragOver:Dn.func,onDrop:Dn.func,onDropAccepted:Dn.func,onDropRejected:Dn.func,onError:Dn.func,validator:Dn.func};var x0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Zv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=tr(tr({},k5),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,i=t.minSize,u=t.multiple,d=t.maxFiles,p=t.onDragEnter,h=t.onDragLeave,g=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,S=t.onDropRejected,x=t.onFileDialogCancel,C=t.onFileDialogOpen,_=t.useFsAccessApi,k=t.autoFocus,P=t.preventDropOnDocument,I=t.noClick,E=t.noKeyboard,O=t.noDrag,R=t.noDragEventsBubbling,D=t.onError,T=t.validator,B=f.useMemo(function(){return bN(n)},[n]),W=f.useMemo(function(){return yN(n)},[n]),J=f.useMemo(function(){return typeof C=="function"?C:v2},[C]),F=f.useMemo(function(){return typeof x=="function"?x:v2},[x]),N=f.useRef(null),G=f.useRef(null),K=f.useReducer(AN,x0),M=dg(K,2),U=M[0],V=M[1],ee=U.isFocused,ie=U.isFileDialogActive,xe=f.useRef(typeof window<"u"&&window.isSecureContext&&_&&vN()),me=function(){!xe.current&&ie&&setTimeout(function(){if(G.current){var Ae=G.current.files;Ae.length||(V({type:"closeDialog"}),F())}},300)};f.useEffect(funct
|
||
|
`),status:"error"})},[i,s]),g=f.useCallback(async P=>{p({file:P,image_category:"user",is_intermediate:!1,postUploadAction:r,board_id: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=>{g(E)})},[i,s,g,h]),{getRootProps:b,getInputProps:S,isDragAccept:x,isDragReject:C,isDragActive:_,inputRef:k}=Zv({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;k.current&&(E=I.clipboardData)!=null&&E.files&&(k.current.files=I.clipboardData.files,(O=k.current)==null||O.dispatchEvent(new Event("change",{bubbles:!0})))};return document.addEventListener("paste",P),()=>{document.removeEventListener("paste",P)}},[k]),a.jsxs($e,{...b({style:{}}),onKeyDown:P=>{P.key},children:[a.jsx("input",{...S()}),t,a.jsx(Ko,{children:_&&u&&a.jsx(Jr.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.1}},exit:{opacity:0,transition:{duration:.1}},children:a.jsx(KN,{isDragAccept:x,isDragReject:C,setIsHandlingUpload:d})},"image-upload-overlay")})]})},XN=f.memo(YN),en=e=>e.canvas,Jn=he([en,or,xo],(e,t,n)=>e.layerState.stagingArea.images.length>0||t==="unifiedCanvas"&&n.isProcessing),JN=e=>e.canvas.layerState.objects.find(O4),ZN=mM(e=>{e(M4(!0))},300),yo=()=>(e,t)=>{or(t())==="unifiedCanvas"&&ZN(e)};var e$=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vr=globalThis&&globalThis.__assign||function(){return vr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vr.apply(this,arguments)},b2={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},x2={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},$d={width:"20px",height:"20px",position:"absolute"},t$={top:vr(vr({},b2),{top:"-5px"}),right:vr(vr({},x2),{left:void 0,right:"-5px"}),bottom:vr(vr({},b2),{top:void 0,bottom:"-5px"}),left:vr(vr({},x2),{left:"-5px"}),topRight:vr(vr({},$d),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:vr(vr({},$d),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:vr(vr({},$d),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:vr(vr({},$d),{left:"-10px",top:"-10px",cursor:"nw-resize"})},n$=function(e){e$(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(r){n.props.onResizeStart(r,n.props.direction)},n.onTouchStart=function(r){n.props.onResizeStart(r,n.props.direction)},n}return t.prototype.render=function(){return f.createElement("div",{className:this.props.className||"",style:vr(vr({position:"absolute",userSelect:"none"},t$[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(f.PureComponent),r$=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ts=globalThis&&globalThis.__assign||function(){return Ts=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ts.apply(this,arguments)},o$={width:"auto",height:"auto"},zd=function(e,t,n){return Math.max(Math.min(e,n),t)},w2=function(e,t){return Math.round(e/t)*t},pl=function(e,t){return new
|
||
|
* OverlayScrollbars
|
||
|
* Version: 2.2.1
|
||
|
*
|
||
|
* Copyright (c) Rene Haas | KingSora.
|
||
|
* https://github.com/KingSora
|
||
|
*
|
||
|
* Released under the MIT license.
|
||
|
*/function gn(e,t){if(hh(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&gn(Object.keys(e),n=>t(e[n],n,e));return e}function Yr(e,t){const n=oi(t);if(ys(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?P2(e,s,t):t.reduce((i,u)=>(i[u]=P2(e,s,u),i),o)}return o}e&&gn(Mo(t),o=>E$(e,o,t[o]))}const is=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,i;const u=(h,g)=>{const v=s,b=h,S=g||(r?!r(v,b):v!==b);return(S||o)&&(s=b,i=v),[s,S,i]};return[t?h=>u(t(s,i),h):u,h=>[s,!!h,i]]},Lu=()=>typeof window<"u",D5=Lu()&&Node.ELEMENT_NODE,{toString:h$,hasOwnProperty:mg}=Object.prototype,ka=e=>e===void 0,ph=e=>e===null,m$=e=>ka(e)||ph(e)?`${e}`:h$.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Ya=e=>typeof e=="number",oi=e=>typeof e=="string",e1=e=>typeof e=="boolean",vs=e=>typeof e=="function",ys=e=>Array.isArray(e),du=e=>typeof e=="object"&&!ys(e)&&!ph(e),hh=e=>{const t=!!e&&e.length,n=Ya(t)&&t>-1&&t%1==0;return ys(e)||!vs(e)&&n?t>0&&du(e)?t-1 in e:!0:!1},S0=e=>{if(!e||!du(e)||m$(e)!=="object")return!1;let t;const n="constructor",r=e[n],o=r&&r.prototype,s=mg.call(e,n),i=o&&mg.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(t in e);return ka(t)||mg.call(e,t)},Vf=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===D5:!1},mh=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===D5:!1},t1=(e,t,n)=>e.indexOf(t,n),Pn=(e,t,n)=>(!n&&!oi(t)&&hh(t)?Array.prototype.push.apply(e,t):e.push(t),e),Di=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Pn(n,r)}):gn(e,r=>{Pn(n,r)}),n)},n1=e=>!!e&&e.length===0,Qs=(e,t,n)=>{gn(e,o=>o&&o.apply(void 0,t||[])),!n&&(e.length=0)},gh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Mo=e=>e?Object.keys(e):[],rr=(e,t,n,r,o,s,i)=>{const u=[t,n,r,o,s,i];return(typeof e!="object"||ph(e))&&!vs(e)&&(e={}),gn(u,d=>{gn(Mo(d),p=>{const h=d[p];if(e===h)return!0;const g=ys(h);if(h&&(S0(h)||g)){const v=e[p];let b=v;g&&!ys(v)?b=[]:!g&&!S0(v)&&(b={}),e[p]=rr(b,h)}else e[p]=h})}),e},r1=e=>{for(const t in e)return!1;return!0},A5=(e,t,n,r)=>{if(ka(r))return n?n[e]:t;n&&(oi(r)||Ya(r))&&(n[e]=r)},Qr=(e,t,n)=>{if(ka(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},go=(e,t)=>{e&&e.removeAttribute(t)},_i=(e,t,n,r)=>{if(n){const o=Qr(e,t)||"",s=new Set(o.split(" "));s[r?"add":"delete"](n);const i=Di(s).join(" ").trim();Qr(e,t,i)}},g$=(e,t,n)=>{const r=Qr(e,t)||"";return new Set(r.split(" ")).has(n)},fs=(e,t)=>A5("scrollLeft",0,e,t),ua=(e,t)=>A5("scrollTop",0,e,t),C0=Lu()&&Element.prototype,T5=(e,t)=>{const n=[],r=t?mh(t)?t:null:document;return r?Pn(n,r.querySelectorAll(e)):n},v$=(e,t)=>{const n=t?mh(t)?t:null:document;return n?n.querySelector(e):null},Uf=(e,t)=>mh(e)?(C0.matches||C0.msMatchesSelector).call(e,t):!1,o1=e=>e?Di(e.childNodes):[],xa=e=>e?e.parentElement:null,Sl=(e,t)=>{if(mh(e)){const n=C0.closest;if(n)return n.call(e,t);do{if(Uf(e,t))return e;e=xa(e)}while(e)}return null},y$=(e,t,n)=>{const r=e&&Sl(e,t),o=e&&v$(n,r),s=Sl(o,t)===r;return r&&o?r===e||o===e||s&&Sl(Sl(e,n),t)!==r:!1},s1=(e,t,n)=>{if(n&&e){let r=t,o;hh(n)?(o=document.createDocumentFragment(),gn(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)}},Vo=(e,t)=>{s1(e,null,t)},b$=(e,t)=>{s1(xa(e),e,t)},_2=(e,t)=>{s1(xa(e),e&&e.nextSibling,t)},Us=e=>{if(hh(e))gn(Di(e),t=>Us(t));else if(e){const t=xa(e);t&&t.removeChild(e)}},ki=e=>{const t=document.createElement("div");return e&&Qr(t,"class",e),t},N5=e=>{const t=ki();return t.innerHTML=e.trim(),gn(o1(t),n=>Us(n))},_0=e=>e.charAt(0).toUpperCase()+e.slice(1),x$=()=>ki().style,w$=["-webkit-","-moz-","-o-","-ms-"],S$=["WebKit","Moz","O","MS","webkit","moz","o","ms"],gg={},vg={},C$=e=>{let t=vg[e];if(gh(vg,e))return t;const n=_0(e),r=x$();return gn(w$,o=>{const s=o.replace(/-/g,"");return!(t=[e,o+e,s+n,_0(s)+n].find(u=>r[u]!==void 0))}),vg[e]=t||""},Bu=e=>{if(Lu()){let t=gg[e]||window[e];return gh(gg,e)||(gn(S$,n=>(t=t||window[n+_0(e)],!t)),gg[e]=t),t}},_$=Bu("MutationObserver"),k2=Bu("IntersectionObserver"),Cl=Bu("ResizeObserver"),$5=Bu("cancelAnimationFrame"),z
|
||
|
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:Fe,mutationThunk:ht,api:q,serializeQueryArgs:nt,context:le}),_r=Jt.buildInitiateQuery,Un=Jt.buildInitiateMutation;return Dr(q.util,{getRunningOperationPromises:Jt.getRunningOperationPromises,getRunningOperationPromise:Jt.removalWarning,getRunningMutationThunk:Jt.getRunningMutationThunk,getRunningMutationsThunk:Jt.getRunningMutationsThunk,getRunningQueryThunk:Jt.getRunningQueryThunk,getRunningQueriesThunk:Jt.getRunningQueriesThunk}),{name:ts,injectEndpoint:function(yt,wn){var kn,Gn=q;(kn=Gn.endpoints)[yt]!=null||(kn[yt]={}),ne(wn)?Dr(Gn.endpoints[yt],{name:yt,select:zt(yt,wn),initiate:_r(yt,wn)},qt(Fe,yt)):wn.type===H.mutation&&Dr(Gn.endpoints[yt],{name:yt,select:tn(),initiate:Un(yt)},qt(ht,yt))}}}}},js=Xe(Xs())})(c_);l_.exports=c_;var Xr=l_.exports;const Tz=rt((e,t)=>{const{children:n,tooltip:r="",tooltipProps:{placement:o="top",hasArrow:s=!0,...i}={},isChecked:u,...d}=e;return a.jsx(Cn,{label:r,placement:o,hasArrow:s,...i,children:a.jsx(kf,{ref:t,colorScheme:u?"accent":"base",...d,children:n})})}),Xt=f.memo(Tz),Nz=e=>{const{imageUsage:t,topMessage:n="This image is currently in use in the following features:",bottomMessage:r="If you delete this image, those features will immediately be reset."}=e;return!t||!Lc(t)?null:a.jsxs(a.Fragment,{children:[a.jsx(qe,{children:n}),a.jsxs(Fv,{sx:{paddingInlineStart:6},children:[t.isInitialImage&&a.jsx(la,{children:"Image to Image"}),t.isCanvasImage&&a.jsx(la,{children:"Unified Canvas"}),t.isControlNetImage&&a.jsx(la,{children:"ControlNet"}),t.isNodesImage&&a.jsx(la,{children:"Node Editor"})]}),a.jsx(qe,{children:r})]})},u_=f.memo(Nz),$z=e=>{const{boardToDelete:t,setBoardToDelete:n}=e,{t:r}=ue(),o=$(k=>k.config.canRestoreDeletedImagesFromBin),{currentData:s,isFetching:i}=r8((t==null?void 0:t.board_id)??Xr.skipToken),u=f.useMemo(()=>he([mt],k=>{const P=(s??[]).map(E=>o8(k,E));return{imageUsageSummary:{isInitialImage:Lc(P,E=>E.isInitialImage),isCanvasImage:Lc(P,E=>E.isCanvasImage),isNodesImage:Lc(P,E=>E.isNodesImage),isControlNetImage:Lc(P,E=>E.isControlNetImage)}}}),[s]),[d,{isLoading:p}]=s8(),[h,{isLoading:g}]=a8(),{imageUsageSummary:v}=$(u),b=f.useCallback(()=>{t&&(d(t.board_id),n(void 0))},[t,d,n]),S=f.useCallback(()=>{t&&(h(t.board_id),n(void 0))},[t,h,n]),x=f.useCallback(()=>{n(void 0)},[n]),C=f.useRef(null),_=f.useMemo(()=>g||p||i,[g,p,i]);return t?a.jsx(Du,{isOpen:!!t,onClose:x,leastDestructiveRef:C,isCentered:!0,children:a.jsx(ya,{children:a.jsxs(Au,{children:[a.jsxs(va,{fontSize:"lg",fontWeight:"bold",children:["Delete ",t.board_name]}),a.jsx(ba,{children:a.jsxs(L,{direction:"column",gap:3,children:[i?a.jsx(ah,{children:a.jsx(L,{sx:{w:"full",h:32}})}):a.jsx(u_,{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(qe,{children:"Deleted boards cannot be restored."}),a.jsx(qe,{children:r(o?"gallery.deleteImageBin":"gallery.deleteImagePermanent")})]})}),a.jsx(ga,{children:a.jsxs(L,{sx:{justifyContent:"space-between",width:"full",gap:2},children:[a.jsx(Xt,{ref:C,onClick:x,children:"Cancel"}),a.jsx(Xt,{colorScheme:"warning",isLoading:_,onClick:b,children:"Delete Board Only"}),a.jsx(Xt,{colorScheme:"error",isLoading:_,onClick:S,children:"Delete Board and Images"})]})})]})})}):null},zz=f.memo($z);function Lz(e){return Ve({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2
|
||
|
* @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 zte=function(t){var n={},r=f,o=vf,s=Object.assign;function i(l){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+l,m=1;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=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"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),S=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=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 g:return"StrictMode";case C:return"Suspense";case _:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case S:return(l.displayName||"Context")+".Consumer";case b:return(l._context.displayName||"Context")+".Provider";case x:var c=l.render;return l=l.displayName,l||(l=c.displayName||c.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case k:return c=l.displayName||null,c!==null?c:R(l.type)||"Memo";case P:c=l._payload,l=l._init;try{return R(l(c))}catch{}}return null}function D(l){var c=l.type;switch(l.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=c.render,l=l.displayName||l.name||"",c.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R(c);case 8:return c===g?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function T(l){var c=l,m=l;if(l.alternate)for(;c.return;)c=c.return;else{l=c;do c=l,c.flags&4098&&(m=c.return),l=c.return;while(l)}return c.tag===3?m:null}function B(l){if(T(l)!==l)throw Error(i(188))}function W(l){var c=l.alternate;if(!c){if(c=T(l),c===null)throw Error(i(188));return c!==l?null:l}for(var m=l,y=c;;){var w=m.return;if(w===null)break;var j=w.alternate;if(j===null){if(y=w.return,y!==null){m=y;continue}break}if(w.child===j.child){for(j=w.child;j;){if(j===m)return B(w),l;if(j===y)return B(w),c;j=j.sibling}throw Error(i(188))}if(m.return!==y.return)m=w,y=j;else{for(var A=!1,Q=w.child;Q;){if(Q===m){A=!0,m=w,y=j;break}if(Q===y){A=!0,y=w,m=j;break}Q=Q.sibling}if(!A){for(Q=j.child;Q;){if(Q===m){A=!0,m=j,y=w;break}if(Q===y){A=!0,y=j,m=w;break}Q=Q.sibling}if(!A)throw Error(i(189))}}if(m.alternate!==y)throw Error(i(190))}if(m.tag!==3)throw Error(i(188));return m.stateNode.current===m?l:c}function J(l){return l=W(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 c=F(l);if(c!==null)return c;l=l.sibling}return null}function N(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var c=N(l);if(c!==null)return c}l=l.sibling}return null}var G=Array.isArray,K=t.getPublicInstance,M=t.getRootHostContext,U=t.getChildHostContext,V=t.prepareForCommit,ee=t.resetAfterCommit,ie=t.createInstance,xe=t.appendInitialChild,me=t.finalizeInitialChildren,ae=t.prepareUpdate,te=t.shouldSetTextContent,H=t.createTextInstance,re=t.scheduleTimeout,pe=t.cancelTimeout,ne=t.noTimeout,ve=t.isPrimaryRenderer,de=t.supportsMutation,Ce=t.supportsPersistence,Re=t.supportsHydration,ge=t
|
||
|
`+xt+l}var Lt=!1;function Kt(l,c){if(!l||Lt)return"";Lt=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(Ee){var y=Ee}Reflect.construct(l,[],c)}else{try{c.call()}catch(Ee){y=Ee}l.call(c.prototype)}else{try{throw Error()}catch(Ee){y=Ee}l()}}catch(Ee){if(Ee&&y&&typeof Ee.stack=="string"){for(var w=Ee.stack.split(`
|
||
|
`),j=y.stack.split(`
|
||
|
`),A=w.length-1,Q=j.length-1;1<=A&&0<=Q&&w[A]!==j[Q];)Q--;for(;1<=A&&0<=Q;A--,Q--)if(w[A]!==j[Q]){if(A!==1||Q!==1)do if(A--,Q--,0>Q||w[A]!==j[Q]){var se=`
|
||
|
`+w[A].replace(" at new "," at ");return l.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",l.displayName)),se}while(1<=A&&0<=Q);break}}}finally{Lt=!1,Error.prepareStackTrace=m}return(l=l?l.displayName||l.name:"")?Ot(l):""}var qt=Object.prototype.hasOwnProperty,$t=[],Oe=-1;function ut(l){return{current:l}}function _t(l){0>Oe||(l.current=$t[Oe],$t[Oe]=null,Oe--)}function At(l,c){Oe++,$t[Oe]=l.current,l.current=c}var xn={},zt=ut(xn),tn=ut(!1),Jt=xn;function _r(l,c){var m=l.type.contextTypes;if(!m)return xn;var y=l.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var w={},j;for(j in m)w[j]=c[j];return y&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=c,l.__reactInternalMemoizedMaskedChildContext=w),w}function Un(l){return l=l.childContextTypes,l!=null}function yt(){_t(tn),_t(zt)}function wn(l,c,m){if(zt.current!==xn)throw Error(i(168));At(zt,c),At(tn,m)}function kn(l,c,m){var y=l.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return m;y=y.getChildContext();for(var w in y)if(!(w in c))throw Error(i(108,D(l)||"Unknown",w));return s({},m,y)}function Gn(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||xn,Jt=zt.current,At(zt,l),At(tn,tn.current),!0}function ar(l,c,m){var y=l.stateNode;if(!y)throw Error(i(169));m?(l=kn(l,c,Jt),y.__reactInternalMemoizedMergedChildContext=l,_t(tn),_t(zt),At(zt,l)):_t(tn),At(tn,m)}var En=Math.clz32?Math.clz32:pn,On=Math.log,nn=Math.LN2;function pn(l){return l>>>=0,l===0?32:31-(On(l)/nn|0)|0}var Sn=64,cn=4194304;function un(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 Be(l,c){var m=l.pendingLanes;if(m===0)return 0;var y=0,w=l.suspendedLanes,j=l.pingedLanes,A=m&268435455;if(A!==0){var Q=A&~w;Q!==0?y=un(Q):(j&=A,j!==0&&(y=un(j)))}else A=m&~w,A!==0?y=un(A):j!==0&&(y=un(j));if(y===0)return 0;if(c!==0&&c!==y&&!(c&w)&&(w=y&-y,j=c&-c,w>=j||w===16&&(j&4194240)!==0))return c;if(y&4&&(y|=m&16),c=l.entangledLanes,c!==0)for(l=l.entanglements,c&=y;0<c;)m=31-En(c),w=1<<m,y|=l[m],c&=~w;return y}function wt(l,c){switch(l){case 1:case 2:case 4:return c+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 c+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 pt(l,c){for(var m=l.suspendedLanes,y=l.pingedLanes,w=l.expirationTimes,j=l.pendingLanes;0<j;){var A=31-En(j),Q=1<<A,se=w[A];se===-1?(!(Q&m)||Q&y)&&(w[A]=wt(Q,c)):se<=c&&(l.expiredLanes|=Q),j&=~Q}}function Ze(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function ft(){var l=Sn;return Sn<<=1,!(Sn&4194240)&&(Sn=64),l}function Rt(l){for(var c=[],m=0;31>m;m++)c.push(l);return c}function lt(l,c,m){l.pendingLanes|=c,c!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,c=31-En(c),l[c]=m}function Qe(l,c){var m=l.pendingLanes&~c;l.pendingLanes=c,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=c,l.mutableReadLanes&=c,l.entangledLanes&=c,c=l.entanglements;var y=l.eventTimes;for(l=l.expirationTimes;0<m;){var w=31-En(m),j=1<<w;c[w]=0,y[w]=-1,l[w]=-1,m&=~j}}function ke(l,c){var m=l.entangledLanes|=c;for(l=l.entanglements;m;){var y=31-En(m),w=1<<y;w&c|l[y]&c&&(l[y]|=c),m&=~w}}var Se=0;function Pe(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Te=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,kt=o.unsta
|
||
|
Error generating stack: `+j.message+`
|
||
|
`+j.stack}return{value:l,source:c,stack:w,digest:null}}function hm(l,c,m){return{value:l,source:null,stack:m??null,digest:c??null}}function mm(l,c){try{console.error(c.value)}catch(m){setTimeout(function(){throw m})}}var GI=typeof WeakMap=="function"?WeakMap:Map;function ab(l,c,m){m=ea(-1,m),m.tag=3,m.payload={element:null};var y=c.value;return m.callback=function(){bd||(bd=!0,Tm=y),mm(l,c)},m}function ib(l,c,m){m=ea(-1,m),m.tag=3;var y=l.type.getDerivedStateFromError;if(typeof y=="function"){var w=c.value;m.payload=function(){return y(w)},m.callback=function(){mm(l,c)}}var j=l.stateNode;return j!==null&&typeof j.componentDidCatch=="function"&&(m.callback=function(){mm(l,c),typeof y!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var A=c.stack;this.componentDidCatch(c.value,{componentStack:A!==null?A:""})}),m}function lb(l,c,m){var y=l.pingCache;if(y===null){y=l.pingCache=new GI;var w=new Set;y.set(c,w)}else w=y.get(c),w===void 0&&(w=new Set,y.set(c,w));w.has(m)||(w.add(m),l=aE.bind(null,l,c,m),c.then(l,l))}function cb(l){do{var c;if((c=l.tag===13)&&(c=l.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return l;l=l.return}while(l!==null);return null}function ub(l,c,m,y,w){return l.mode&1?(l.flags|=65536,l.lanes=w,l):(l===c?l.flags|=65536:(l.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(c=ea(-1,1),c.tag=2,Ea(m,c,1))),m.lanes|=1),l)}var qI=u.ReactCurrentOwner,fo=!1;function so(l,c,m,y){c.child=l===null?$y(c,null,m,y):Ji(c,l.child,m,y)}function db(l,c,m,y,w){m=m.render;var j=c.ref;return Xi(c,w),y=lm(l,c,m,y,j,w),m=cm(),l!==null&&!fo?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~w,ta(l,c,w)):(qn&&m&&Wh(c),c.flags|=1,so(l,c,y,w),c.child)}function fb(l,c,m,y,w){if(l===null){var j=m.type;return typeof j=="function"&&!Fm(j)&&j.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(c.tag=15,c.type=j,pb(l,c,j,y,w)):(l=kd(m.type,null,y,c,c.mode,w),l.ref=c.ref,l.return=c,c.child=l)}if(j=l.child,!(l.lanes&w)){var A=j.memoizedProps;if(m=m.compare,m=m!==null?m:qu,m(A,y)&&l.ref===c.ref)return ta(l,c,w)}return c.flags|=1,l=Aa(j,y),l.ref=c.ref,l.return=c,c.child=l}function pb(l,c,m,y,w){if(l!==null){var j=l.memoizedProps;if(qu(j,y)&&l.ref===c.ref)if(fo=!1,c.pendingProps=y=j,(l.lanes&w)!==0)l.flags&131072&&(fo=!0);else return c.lanes=l.lanes,ta(l,c,w)}return gm(l,c,m,y,w)}function hb(l,c,m){var y=c.pendingProps,w=y.children,j=l!==null?l.memoizedState:null;if(y.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},At(rl,Io),Io|=m;else{if(!(m&1073741824))return l=j!==null?j.baseLanes|m:m,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:l,cachePool:null,transitions:null},c.updateQueue=null,At(rl,Io),Io|=l,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=j!==null?j.baseLanes:m,At(rl,Io),Io|=y}else j!==null?(y=j.baseLanes|m,c.memoizedState=null):y=m,At(rl,Io),Io|=y;return so(l,c,w,m),c.child}function mb(l,c){var m=c.ref;(l===null&&m!==null||l!==null&&l.ref!==m)&&(c.flags|=512,c.flags|=2097152)}function gm(l,c,m,y,w){var j=Un(m)?Jt:zt.current;return j=_r(c,j),Xi(c,w),m=lm(l,c,m,y,j,w),y=cm(),l!==null&&!fo?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~w,ta(l,c,w)):(qn&&y&&Wh(c),c.flags|=1,so(l,c,m,w),c.child)}function gb(l,c,m,y,w){if(Un(m)){var j=!0;Gn(c)}else j=!1;if(Xi(c,w),c.stateNode===null)id(l,c),Dy(c,m,y),tm(c,m,y,w),y=!0;else if(l===null){var A=c.stateNode,Q=c.memoizedProps;A.props=Q;var se=A.context,Ee=m.contextType;typeof Ee=="object"&&Ee!==null?Ee=To(Ee):(Ee=Un(m)?Jt:zt.current,Ee=_r(c,Ee));var ct=m.getDerivedStateFromProps,Vt=typeof ct=="function"||typeof A.getSnapshotBeforeUpdate=="function";Vt||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(Q!==y||se!==Ee)&&Ay(c,A,y,Ee),Ia=!1;var et=c.memoizedState;A.state=et,Xu(c,y,A,w),se=c.memoizedState,Q!==y||et!==se||tn.current||Ia?(typeof ct=="function"&&(em(c,m,ct,y),se=c.memoizedState),(Q=Ia||Ry(c,m,Q,y,et,se,Ee))?(Vt||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMo
|
||
|
`+(y.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 K(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:u.ReactCurrentDispatcher,findHostInstanceByFiber:fE,findFiberByHostInstance:l.findFiberByHostInstance||pE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(c.isDisabled||!c.supportsFiber)l=!0;else{try{Fn=c.inject(l),an=c}catch{}l=!!c.checkDCE}}return l},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(l,c,m,y){if(!vt)throw Error(i(363));l=Om(l,c);var w=Ft(l,m,y).disconnect;return{disconnect:function(){w()}}},n.registerMutableSourceForHydration=function(l,c){var m=c._getVersion;m=m(c._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[c,m]:l.mutableSourceEagerHydrationData.push(c,m)},n.runWithPriority=function(l,c){var m=Se;try{return Se=l,c()}finally{Se=m}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,c,m,y){var w=c.current,j=Kr(),A=Ra(w);return m=qb(m),c.context===null?c.context=m:c.pendingContext=m,c=ea(j,A),c.payload={element:l},y=y===void 0?null:y,y!==null&&(c.callback=y),l=Ea(w,c,A),l!==null&&(zo(l,w,A,j),Yu(l,w,A)),A},n};bI.exports=zte;var Lte=bI.exports;const Bte=wu(Lte);var xI={exports:{}},Ki={};/**
|
||
|
* @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.
|
||
|
*/Ki.ConcurrentRoot=1;Ki.ContinuousEventPriority=4;Ki.DefaultEventPriority=16;Ki.DiscreteEventPriority=1;Ki.IdleEventPriority=536870912;Ki.LegacyRoot=0;xI.exports=Ki;var wI=xI.exports;const r4={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let o4=!1,s4=!1;const yy=".react-konva-event",Fte=`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
|
||
|
`,Hte=`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
|
||
|
`,Wte={};function Hh(e,t,n=Wte){if(!o4&&"zIndex"in t&&(console.warn(Hte),o4=!0),!s4&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(Fte),s4=!0)}for(var s in n)if(!r4[s]){var i=s.slice(0,2)==="on",u=n[s]!==t[s];if(i&&u){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,g={},v=!1;const b={};for(var s in t)if(!r4[s]){var i=s.slice(0,2)==="on",S=n[s]!==t[s];if(i&&S){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,g[s]=t[s])}v&&(e.setAttrs(g),li(e));for(var d in b)e.on(d+yy,b[d])}function li(e){if(!vO.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const SI={},Vte={};vu.Node.prototype._applyProps=Hh;function Ute(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),li(e)}function Gte(e,t,n){let r=vu[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=vu.Group);const o={},s={};for(var i in t){var u=i.slice(0,2)==="on";u?s[i]=t[i]:o[i]=t[i]}const d=new r(o);return Hh(d,s),d}function qte(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Kte(e,t,n){return!1}function Qte(e){return e}function Yte(){return null}function Xte(){return null}function Jte(e,t,n,r){return Vte}function Zte(){}function ene(e){}function tne(e,t){return!1}function nne(){return SI}function rne(){return SI}const one=setTimeout,sne=clearTimeout,ane=-1;function ine(e,t){return!1}const lne=!1,cne=!0,une=!0;function dne(e,t){t.parent===e?t.moveToTop():e.add(t),li(e)}function fne(e,t){t.parent===e?t.moveToTop():e.add(t),li(e)}function CI(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),li(e)}function pne(e,t,n){CI(e,t,n)}function hne(e,t){t.destroy(),t.off(yy),li(e)}function mne(e,t){t.destroy(),t.off(yy),li(e)}function gne(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function vne(e,t,n){}function yne(e,t,n,r,o){Hh(e,o,r)}function bne(e){e.hide(),li(e)}function xne(e){}function wne(e,t){(t.visible==null||t.visible)&&e.show()}function Sne(e,t){}function Cne(e){}function _ne(){}const kne=()=>wI.DefaultEventPriority,jne=Object.freeze(Object.defineProperty({__proto__:null,appendChild:dne,appendChildToContainer:fne,appendInitialChild:Ute,cancelTimeout:sne,clearContainer:Cne,commitMount:vne,commitTextUpdate:gne,commitUpdate:yne,createInstance:Gte,createTextInstance:qte,detachDeletedInstance:_ne,finalizeInitialChildren:Kte,getChildHostContext:rne,getCurrentEventPriority:kne,getPublicInstance:Qte,getRootHostContext:nne,hideInstance:bne,hideTextInstance:xne,idlePriority:vf.unstable_IdlePriority,insertBefore:CI,insertInContainerBefore:pne,isPrimaryRenderer:lne,noTimeout:ane,now:vf.unstable_now,prepareForCommit:Yte,preparePortalMount:Xte,prepareUpdate:Jte,removeChild:hne,removeChildFromContainer:mne,resetAfterCommit:Zte,resetTextContent:ene,run:vf.unstable_runWithPriority,scheduleTimeout:one,shouldDeprioritizeSubtree:tne,shouldSetTextContent:ine,supportsMutation:une,unhideInstance:wne,unhideTextInstance:Sne,warnsIfNotActing:cne},Symbol.toStringTag,{value:"Module"}));var Pne=Object.defineProperty,Ine=Object.defineProperties,Ene=Object.getOwnPropertyDescriptors,a4=Object.getOwnPropertySymbols,One=Object.prototype.hasOwnProperty,Mne=Object.prototype.propertyIsEnumerable,i4=(e,t,n)=>t in e?Pne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l4=(e,t)=>{for(var n in t||(t={}))One.call(t,n)&&i4(e,n,t[n]);if(a4)for(var n of a4(t))Mne.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),are=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:o,stageScale:s}=$(sre),[i,u]=f.useState(null),[d,p]=f.useState(0),h=f.useRef(null),g=f.useCallback(()=>{p(d+1),setTimeout(g,500)},[d]);return f.useEffect(()=>{if(i)return;const v=new Image;v.onload=()=>{u(v)},v.src=d4(n)},[i,n]),f.useEffect(()=>{i&&(i.src=d4(n))},[i,n]),f.useEffect(()=>{const v=setInterval(()=>p(b=>(b+1)%5),50);return()=>clearInterval(v)},[]),!i||!il(r.x)||!il(r.y)||!il(s)||!il(o.width)||!il(o.height)?null:a.jsx(qs,{ref:h,offsetX:r.x/s,offsetY:r.y/s,height:o.height/s,width:o.width/s,fillPatternImage:i,fillPatternOffsetY:il(d)?d:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/s,y:1/s},listening:!0,globalCompositeOperation:"source-in",...t})},ire=he([en],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Gt}}),lre=e=>{const{...t}=e,{objects:n}=$(ire);return a.jsx(Sa,{listening:!1,...t,children:n.filter(OO).map((r,o)=>a.jsx(Vp,{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 yi=f,cre=function(t,n,r){const o=yi.useRef("loading"),s=yi.useRef(),[i,u]=yi.useState(0),d=yi.useRef(),p=yi.useRef(),h=yi.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),yi.useLayoutEffect(function(){if(!t)return;var g=document.createElement("img");function v(){o.current="loaded",s.current=g,u(Math.random())}function b(){o.current="failed",s.current=void 0,u(Math.random())}return g.addEventListener("load",v),g.addEventListener("error",b),n&&(g.crossOrigin=n),r&&(g.referrerPolicy=r),g.src=t,function(){g.removeEventListener("load",v),g.removeEventListener("error",b)}},[t,n,r]),[s.current,o.current]};const ure=wu(cre),EI=e=>{const{width:t,height:n,x:r,y:o,imageName:s}=e.canvasImage,{currentData:i,isError:u}=Uo(s??Xr.skipToken),[d]=ure((i==null?void 0:i.image_url)??"",MO.get()?"use-credentials":"anonymous");return u?a.jsx(qs,{x:r,y:o,width:t,height:n,fill:"red"}):a.jsx(PI,{x:r,y:o,image:d,listening:!1})},dre=he([en],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Gt}}),fre=()=>{const{objects:e}=$(dre);return e?a.jsx(Sa,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(O4(t))return a.jsx(EI,{canvasImage:t},n);if(RO(t)){const r=a.jsx(Vp,{points:t.points,stroke:t.color?Ii(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(Sa,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(DO(t))return a.jsx(qs,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Ii(t.color)},n);if(AO(t))return a.jsx(qs,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},pre=he([en],e=>{const{layerState:t,shouldShowStagingImage:n,shouldShowStagingOutline:r,boundingBoxCoordinates:{x:o,y:s},boundingBoxDimensions:{width:i,height:u}}=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:u}},{memoizeOptions:{resultEqualityCheck:Gt}}),hre=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:o,x:s,y:i,width:u,height:d}=$(pre);return a.jsxs(Sa,{...t,children:[r&&n&&a.jsx(EI,{canvasImage:n}),o&&a.jsxs(Sa,{children:[a.jsx(qs,{x:s,y:i,width:u,height:d,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),a.jsx(qs,{x:s,y:i,width:u,height:d,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},mre=he([en],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n,sessionId:r}},shouldShowSta
|