mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
170 lines
832 KiB
JavaScript
170 lines
832 KiB
JavaScript
|
import{t as s0,b as mE,r as gE,i as vE,a as yE,c as bE,d as I4,e as E4,f as O4,g as xE,h as SE,j as wE,k as CE,l as _E,m as kE,n as jE,o as PE,s as IE,p as EE,q as f,u as rt,v as a,I as oo,w as ar,x as Wn,y as Ue,z as Ot,A as ku,B as xt,C as ju,D as Os,E as vo,F as Yr,G as vr,H as OE,J as gv,K as RE,L as Ja,M as tu,N as Xi,O as sn,P as ja,Q as nh,R as vv,S as Al,T as yv,U as lc,_ as Jn,V as ME,W as z,X as R4,Y as M4,Z as nx,$ as D4,a0 as rh,a1 as bv,a2 as cc,a3 as DE,a4 as TE,a5 as AE,a6 as NE,a7 as T4,a8 as A4,a9 as oh,aa as Of,ab as $E,ac as zE,ad as tg,ae as rx,af as N4,ag as $4,ah as uc,ai as ox,aj as sx,ak as LE,al as FE,am as BE,an as HE,ao as VE,ap as ng,aq as ml,ar as rg,as as WE,at as UE,au as GE,av as xv,aw as sh,ax as Rf,ay as qE,az as z4,aA as L4,aB as KE,aC as Pu,aD as Sv,aE as YE,aF as QE,aG as XE,aH as ZE,aI as JE,aJ as e8,aK as t8,aL as ax,aM as Be,aN as U,aO as ca,aP as we,aQ as yo,aR as yr,aS as ne,aT as L,aU as Iu,aV as pe,aW as F4,aX as B4,aY as dc,aZ as Qr,a_ as ot,a$ as fr,b0 as Mf,b1 as n8,b2 as ei,b3 as wv,b4 as Df,b5 as H4,b6 as Cv,b7 as Tt,b8 as _v,b9 as r8,ba as o8,bb as s8,bc as gl,bd as Cs,be as V4,bf as a8,bg as i8,bh as Eu,bi as ut,bj as kv,bk as ti,bl as ix,bm as l8,bn as c8,bo as u8,bp as Sf,bq as Ae,br as Md,bs as Dd,bt as nu,bu as ru,bv as lx,bw as Tf,bx as cx,by as Af,bz as ux,bA as a0,bB as dx,bC as i0,bD as fx,bE as Nf,bF as px,bG as Gl,bH as hx,bI as ql,bJ as mx,bK as $f,bL as d8,bM as zf,bN as W4,bO as jv,bP as Pv,bQ as f8,bR as U4,bS as G4,bT as q4,bU as ah,bV as Ii,bW as p8,bX as h8,bY as m8,bZ as g8,b_ as Lf,b$ as fc,c0 as K4,c1 as v8,c2 as Y4,c3 as gx,c4 as vx,c5 as y8,c6 as va,c7 as yx,c8 as yt,c9 as Ff,ca as b8,cb as Q4,cc as Xr,cd as x8,ce as er,cf as Yt,cg as l0,ch as qs,ci as Vn,cj as Zn,ck as X4,cl as S8,cm as Z4,cn as bx,co as w8,cp as C8,cq as _8,cr as k8,cs as wr,ct as J4,cu as j8,cv as P8,cw as I8,cx as E8,cy as O8,cz as Iv,cA as Zo,cB as e3,cC as t3,cD as R8,cE as xx,cF as M8,cG as D8,cH as T8,cI as A8,cJ as N8,cK as $8,cL as z8,cM as n3,cN as L8,cO as F8,cP as B8,cQ as H8,cR as V8,cS as W8,cT as U8,cU as Sx,cV as wx,cW as Cx,cX as _x,cY as G8,cZ as q8,c_ as K8,c$ as kx,d0 as Y8,d1 as Q8,d2 as X8,d3 as Z8,d4 as J8,d5 as eO,d6 as tO,d7 as nO,d8 as r3,d9 as es,da as rO,db as oO,dc as sO,dd as ih,de as aO,df as Fr,dg as Ev,dh as o3,di as iO,dj as lO,dk as cO,dl as ts,dm as uO,dn as jx,dp as Px,dq as ni,dr as dO,ds as fO,dt as pO,du as hO,dv as mO,dw as gO,dx as vO,dy as yO,dz as bO,dA as xO,dB as SO,dC as Ov,dD as Rv,dE as wO,dF as Ix,dG as CO,dH as Ex,dI as ns,dJ as _O,dK as kO,dL as Ox,dM as Rx,dN as jO,dO as Mx,dP as PO,dQ as IO,dR as EO,dS as OO,dT as RO,dU as MO,dV as s3,dW as a3,dX as i3,dY as l3,dZ as c3,d_ as Ou,d$ as Dx,e0 as DO,e1 as Kl,e2 as TO,e3 as u3,e4 as Tx,e5 as AO,e6 as ms,e7 as NO,e8 as $O,e9 as d3,ea as f3,eb as zO,ec as Ax,ed as LO,ee as FO,ef as BO,eg as Eo,eh as Bf,ei as HO,ej as Nx,ek as _s,el as ks,em as VO,en as p3,eo as WO,ep as lh,eq as $x,er as h3,es as UO,et as zx,eu as m3,ev as Jo,ew as GO,ex as qO,ey as g3,ez as KO,eA as YO,eB as QO,eC as XO,eD as ZO,eE as JO,eF as e7,eG as t7,eH as n7,eI as r7,eJ as o7,eK as s7,eL as a7,eM as i7,eN as l7,eO as c7,eP as u7,eQ as Lx,eR as d7,eS as Fx,eT as wf,eU as f7,eV as tn,eW as Hf,eX as v3,eY as Vf,eZ as p7,e_ as h7,e$ as Gs,f0 as y3,f1 as Mv,f2 as Ru,f3 as m7,f4 as g7,f5 as v7,f6 as ya,f7 as b3,f8 as y7,f9 as b7,fa as x3,fb as x7,fc as S7,fd as w7,fe as C7,ff as _7,fg as k7,fh as j7,fi as P7,fj as I7,fk as E7,fl as O7,fm as Bx,fn as R7,fo as M7,fp as D7,fq as T7,fr as A7,fs as N7,ft as og,fu as Us,fv as Td,fw as sg,fx as ag,fy as Ad,fz as Hx,fA as c0,fB as $7,fC as z7,fD as L7,fE as F7,fF as B7,fG as Wf,fH as S3,fI as w3,fJ as H7,fK as V7,fL as C3,fM as _3,fN as k3,fO as j3,fP as P3,fQ as I3,fR as E3,fS as O3,fT as Nl,fU as $l,fV as R3,fW as M3,fX as W7,fY as D3,fZ as T3,f_ as A3,f$ as N3,g0 as $3,g1 as z3,g2 as L3,g3 as Dv,g4 as U7,g5 as G7,g6 as Vx,g7 as q7,g8 as K7,g9 as Uf,ga as Wx,gb as Ux,gc as Gx,gd as qx,ge as Y7,gf as Q7,gg as X7,gh as Z7,gi as J7,gj as eR,gk as tR,gl as nR,gm as rR,gn as o
|
||
|
`})}function WR(e){ju({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Yc(e){const{isOpen:t,isDisabled:n}=Nv(),{reduceMotion:r}=$v(),o=Ot("chakra-accordion__icon",e.className),s=ch(),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(oo,{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"})})}Yc.displayName="AccordionIcon";var Qc=rt(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...i}=FR(t),d={...ch().container,overflowAnchor:"none"},p=f.useMemo(()=>i,[i]);return a.jsx(TR,{value:p,children:a.jsx(Ue.div,{ref:n,...s,className:Ot("chakra-accordion__item",o),__css:d,children:typeof r=="function"?r({isExpanded:!!i.isOpen,isDisabled:!!i.isDisabled}):r})})});Qc.displayName="AccordionItem";var Ei={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},zc={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 d0(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return zc.slideRight;case"left":return zc.slideLeft;case"bottom":return zc.slideDown;case"top":return zc.slideUp;default:return zc.slideRight}}var Mi={enter:{duration:.2,ease:Ei.easeOut},exit:{duration:.1,ease:Ei.easeIn}},gs={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})},UR=e=>e!=null&&parseInt(e.toString(),10)>0,t2={exit:{height:{duration:.2,ease:Ei.ease},opacity:{duration:.3,ease:Ei.ease}},enter:{height:{duration:.3,ease:Ei.ease},opacity:{duration:.4,ease:Ei.ease}}},GR={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:UR(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:gs.exit(t2.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:gs.enter(t2.enter,o)}}},uh=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:m,...h}=e,[v,b]=f.useState(!1);f.useEffect(()=>{const k=setTimeout(()=>{b(!0)});return()=>clearTimeout(k)},[]),ju({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const w=parseFloat(s.toString())>0,S={startingHeight:s,endingHeight:i,animateOpacity:o,transition:v?p:{enter:{duration:0}},transitionEnd:{enter:m==null?void 0:m.enter,exit:r?m==null?void 0:m.exit:{...m==null?void 0:m.exit,display:w?"block":"none"}}},C=r?n:!0,_=n||r?"enter":"exit";return a.jsx(Os,{initial:!1,custom:S,children:C&&a.jsx(vo.div,{ref:t,...h,className:Ot("chakra-collapse",d),style:{overflow:"hidden",display:"block",...u},custom:S,variants:GR,initial:r?"exit":!1,animate:_,exit:"exit"})})});uh.displayName="Collapse";var qR={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:gs.enter(Mi.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:gs.exit(Mi.exit,n),transitionEnd:t==null?void 0:t.exi
|
||
|
.`.concat(KD,` {
|
||
|
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(_f,` {
|
||
|
right: `).concat(u,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(kf,` {
|
||
|
margin-right: `).concat(u,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(_f," .").concat(_f,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(kf," .").concat(kf,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(YD,": ").concat(u,`px;
|
||
|
}
|
||
|
`)},iT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=f.useMemo(function(){return oT(o)},[o]);return f.createElement(sT,{styles:aT(s,!t,o,n?"":"!important")})},w0=!1;if(typeof window<"u")try{var zd=Object.defineProperty({},"passive",{get:function(){return w0=!0,!0}});window.addEventListener("test",zd,zd),window.removeEventListener("test",zd,zd)}catch{w0=!1}var xl=w0?{passive:!1}:!1,lT=function(e){return e.tagName==="TEXTAREA"},a5=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lT(e)&&n[t]==="visible")},cT=function(e){return a5(e,"overflowY")},uT=function(e){return a5(e,"overflowX")},y2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=i5(e,r);if(o){var s=l5(e,r),i=s[1],u=s[2];if(i>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},i5=function(e,t){return e==="v"?cT(t):uT(t)},l5=function(e,t){return e==="v"?dT(t):fT(t)},pT=function(e,t){return e==="h"&&t==="rtl"?-1:1},hT=function(e,t,n,r,o){var s=pT(e,window.getComputedStyle(t).direction),i=s*r,u=n.target,d=t.contains(u),p=!1,m=i>0,h=0,v=0;do{var b=l5(e,u),w=b[0],S=b[1],C=b[2],_=S-C-s*w;(w||_)&&i5(e,u)&&(h+=_,v+=w),u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(m&&(o&&h===0||!o&&i>h)||!m&&(o&&v===0||!o&&-i>v))&&(p=!0),p},Ld=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},b2=function(e){return[e.deltaX,e.deltaY]},x2=function(e){return e&&"current"in e?e.current:e},mT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gT=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},vT=0,Sl=[];function yT(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(vT++)[0],s=f.useState(s5)[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 S=g0([e.lockRef.current],(e.shards||[]).map(x2),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=f.useCallback(function(S,C){if("touches"in S&&S.touches.length===2)return!i.current.allowPinchZoom;var _=Ld(S),k=n.current,P="deltaX"in S?S.deltaX:k[0]-_[0],E="deltaY"in S?S.deltaY:k[1]-_[1],I,R=S.target,O=Math.abs(P)>Math.abs(E)?"h":"v";if("touches"in S&&O==="h"&&R.type==="range")return!1;var D=y2(O,R);if(!D)return!0;if(D?I=O:(I=O==="v"?"h":"v",D=y2(O,R)),!D)return!1;if(!r.current&&"changedTouches"in S&&(P||E)&&(r.current=I),!I)return!0;var T=r.current||I;return hT(T,C,S,T==="h"?P:E,!0)},[]),d=f.useCallback(function(S){var C=S;if(!(!Sl.length||Sl[Sl.length-1]!==s)){var _="deltaY"in C?b2(C):Ld(C),k=t.current.filter(function(I){return I.name===C.type&&I.target===C.target&&mT(I.delta,_)})[0];if(k&&k.should){C.cancelable&&C.preventDefault();return}if(!k){var P=(i.current.shards||[]).map(x2).filter(Boolean).filter(function(I){return I.contains(C.target)}),E=P.length>0?u(C,P[0]):!i.current.noIsolation;E&&C.cancelable&&C.preventDefault()}}},[]),p=f.useCallback(function(S,C,_,k){var P={name:S,delta:C,target:_,should:k};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(E){return E!==P})},1)},[]),m=f.useCallback(function(S){n.current=Ld(S),r.current=void 0},[]),h=f.useCallback(function(S){p(S.type,b2(S),S.target,u(S,e.lockRef.current))},[]),v=f.useCallback(function(S){p(S.type,Ld(S),S.target,u(S,e.lockRef.current))},[]);f.useEffect(function(){return Sl.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",d,xl),document.addEventListener("touchmove",d,xl),document.addEventListener("touchstart",m,xl),function(){Sl=Sl.filter(function(S){return S!==s}),document.removeEventListener("wheel",d,xl),document.removeEventListener("touchmove",d,xl),document.removeEventListener("touchstart",m,xl)}},[]);var b=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(s,{styles:gT(o)}):null,b?f.createElement(iT,{gapMode:e.gapMode}):null)}const bT=WM(o5,yT);var c5=f.forwardRef(function(e,t){return f.createElement(gh,Vs({},e,{ref:t,sideCar:bT}))});c5.classNames=gh.classNames;const xT=c5;function ST(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:i,finalFocusRef:u,returnFocusOnClose:d,preserveScrollBarGap:p,lockFocusAcrossFrames:m,isOpen:h}=Vi(),[v,b]=$E();f.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const w=n5(r,h);return a.jsx(H6,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:m,children:a.jsx(xT,{removeScrollBar:!p,allowPinchZoom:i,enabled:w===1&&s,forwardProps:!0,children:e.children})})}var gu=rt((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...i}=e,{getDialogProps:u,getDialogContainerProps:d}=Vi(),p=u(i,t),m=d(o),h=Ot("chakra-modal__content",n),v=mc(),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:S}=Vi();return a.jsx(ST,{children:a.jsx(Ue.div,{...m,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:a.jsx(t5,{preset:S,motionProps:s,className:h,...p,__css:b,children:r})})})});gu.displayName="ModalContent";function zu(e){const{leastDestructiveRef:t,...n}=e;return a.jsx(mu,{...n,initialFocusRef:t})}var Lu=rt((e,t)=>a.jsx(gu,{ref:t,role:"alertdialog",...e})),ba=rt((e,t)=>{const{className:
|
||
|
M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fill:d,fillRule:"evenodd",stroke:p,strokeWidth:m,pointerEvents:"none"})]})})}j5.displayName="MiniMap";var kA=f.memo(j5),vs;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(vs||(vs={}));function jA({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 PA({color:e,radius:t}){return a.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const IA={[vs.Dots]:"#91919a",[vs.Lines]:"#eee",[vs.Cross]:"#e2e2e2"},EA={[vs.Dots]:1,[vs.Lines]:1,[vs.Cross]:6},OA=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function P5({id:e,variant:t=vs.Dots,gap:n=20,size:r,lineWidth:o=1,offset:s=2,color:i,style:u,className:d}){const p=f.useRef(null),{transform:m,patternId:h}=Rf(OA,Sv),v=i||IA[t],b=r||EA[t],w=t===vs.Dots,S=t===vs.Cross,C=Array.isArray(n)?n:[n,n],_=[C[0]*m[2]||1,C[1]*m[2]||1],k=b*m[2],P=S?[k,k]:_,E=w?[k/s,k/s]:[P[0]/s,P[1]/s];return a.jsxs("svg",{className:sh(["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:h+e,x:m[0]%_[0],y:m[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${E[0]},-${E[1]})`,children:w?a.jsx(PA,{color:v,radius:k/s}):a.jsx(jA,{dimensions:P,color:v,lineWidth:o})}),a.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${h+e})`})]})}P5.displayName="Background";var RA=f.memo(P5),ou;(function(e){e.Line="line",e.Handle="handle"})(ou||(ou={}));function MA({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 I5={width:0,height:0,x:0,y:0},DA={...I5,pointerX:0,pointerY:0,aspectRatio:1};function TA({nodeId:e,position:t,variant:n=ou.Handle,className:r,style:o={},children:s,color:i,minWidth:u=10,minHeight:d=10,maxWidth:p=Number.MAX_VALUE,maxHeight:m=Number.MAX_VALUE,keepAspectRatio:h=!1,shouldResize:v,onResizeStart:b,onResize:w,onResizeEnd:S}){const C=JE(),_=typeof e=="string"?e:C,k=z4(),P=f.useRef(null),E=f.useRef(DA),I=f.useRef(I5),R=e8(),O=n===ou.Line?"right":"bottom-right",D=t??O;f.useEffect(()=>{if(!P.current||!_)return;const ee=L4(P.current),F=D.includes("right")||D.includes("left"),N=D.includes("bottom")||D.includes("top"),H=D.includes("left"),K=D.includes("top"),A=t8().on("start",G=>{const V=k.getState().nodeInternals.get(_),{xSnapped:W,ySnapped:re}=R(G);I.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},E.current={...I.current,pointerX:W,pointerY:re,aspectRatio:I.current.width/I.current.height},b==null||b(G,{...I.current})}).on("drag",G=>{const{nodeInternals:V,triggerNodeChanges:W}=k.getState(),{xSnapped:re,ySnapped:be}=R(G),ce=V.get(_);if(ce){const se=[],{pointerX:X,pointerY:ie,width:de,height:xe,x:oe,y:ve,aspectRatio:he}=E.current,{x:je,y:Ne,width:ge,height:Oe}=I.current,at=Math.floor(F?re-X:0),Fe=Math.floor(N?be-ie:0);let qe=ax(de+(H?-at:at),u,p),Pt=ax(xe+(K?-Fe:Fe),d,m);if(h){const fe=qe/Pt,Te=F&&N,Ke=F&&!N,bt=N&&!F;qe=fe<=he&&Te||bt?Pt*he:qe,Pt=fe>he&&Te||Ke?qe/he:Pt,qe>=p?(qe=p,Pt=p/he):qe<=u&&(qe=u,Pt=u/he),Pt>=m?(Pt=m,qe=m*he):Pt<=d&&(Pt=d,qe=d*he)}const St=qe!==ge,zn=Pt!==Oe;if(H||K){const fe=H?oe-(qe-de):oe,Te=K?ve-(Pt-xe):ve,Ke=fe!==je&&St,bt=Te!==Ne&&zn;if(Ke||bt){const Xt={id:ce.id,type:"position",position:{x:Ke?fe:je,y:bt?Te:Ne}};se.push(Xt),I.current.x=Xt.position.x,I.current.y=Xt.position.y}}if(St||zn){const fe={id:_,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:qe,height:Pt}};se.push(fe),I.current.width=qe,I.current.height=Pt}if(se.length===0)return;const Y=MA({width:I.current.width,prevWidth:ge,height:I.current.height,prevHeight:Oe,invertX:H,invertY:K}),Ce={...I.current,direction:Y};if((v==null?void 0:v(G,Ce))===!1)return;w==null||w(G,Ce),W(se)}}).on("end",G=>{const V={id:_,type:"dimensions",resizing:!1};S==null||S(G,{...I.current}),k.getState().tri
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XA(e){if(Array.isArray(e))return P0(e)}function j2(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 P2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j2(Object(n),!0).forEach(function(r){R5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vu(e,t){return eN(e)||JA(e,t)||M5(e,t)||ZA()}function ZA(){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 M5(e,t){if(e){if(typeof e=="string")return P0(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 P0(e,t)}}function P0(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 JA(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 eN(e){if(Array.isArray(e))return e}var tN="file-invalid-type",nN="file-too-large",rN="file-too-small",oN="too-many-files",sN=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:tN,message:"File type must be ".concat(n)}},I2=function(t){return{code:nN,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},E2=function(t){return{code:rN,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},aN={code:oN,message:"Too many files"};function D5(e,t){var n=e.type==="application/x-moz-file"||KA(e,t);return[n,n?null:sN(t)]}function T5(e,t,n){if(ji(e.size))if(ji(t)&&ji(n)){if(e.size>n)return[!1,I2(n)];if(e.size<t)return[!1,E2(t)]}else{if(ji(t)&&e.size<t)return[!1,E2(t)];if(ji(n)&&e.size>n)return[!1,I2(n)]}return[!0,null]}function ji(e){return e!=null}function iN(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=D5(d,n),m=vu(p,1),h=m[0],v=T5(d,r,o),b=vu(v,1),w=b[0],S=u?u(d):null;return h&&w&&!S})}function Xf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Fd(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 O2(e){e.preventDefault()}function lN(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function cN(e){return e.indexOf("Edge/")!==-1}function uN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return lN(e)||cN(e)}function Fs(){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!Xf(r)&&u&&u.apply(void 0,[r].concat(s)),Xf(r)})}}function dN(){return"showOpenFilePicker"in window}function fN(e){if(ji(e)){var t=Object.entries(e).filter(function(n){var r=vu(n,2),o=r[0],s=r[1],i=!0;return A5(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(N5))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(n,r){var o=vu(r,2),s=o[0],i=o[1];return P2(P2({},n),{},R5({},s,i))},{});return[{description:"Files",accept:t}]}return e}function pN(e){if(ji(e))return Object.entries(e).reduce(function(t,n){var r=vu(n,2),o=r[0],s=r[1];return[].concat(k2(t),[o],k2(s))},[]).filter(function(t){return A5(t)||N5(t)}).join(",")}function hN(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function mN(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function A5(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function N5(e){return/^.*\.[\w]+$/.test(e)}var gN=["children"],vN=["open"],yN=["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 wN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CN(e){if(Array.isArray(e))return I0(e)}function wg(e,t){return jN(e)||kN(e,t)||$5(e,t)||_N()}function _N(){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 I0(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 I0(e,t)}}function I0(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 kN(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 jN(e){if(Array.isArray(e))return e}function R2(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 rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(r){E0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zf(e,t){if(e==null)return{};var n=PN(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 PN(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 a1=f.forwardRef(function(e,t){var n=e.children,r=Zf(e,gN),o=i1(r),s=o.open,i=Zf(o,vN);return f.useImperativeHandle(t,function(){return{open:s}},[s]),z.createElement(f.Fragment,null,n(rr(rr({},i),{},{open:s})))});a1.displayName="Dropzone";var z5={disabled:!1,getFilesFromEvent:LA,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};a1.defaultProps=z5;a1.propTypes={children:An.func,accept:An.objectOf(An.arrayOf(An.string)),multiple:An.bool,preventDropOnDocument:An.bool,noClick:An.bool,noKeyboard:An.bool,noDrag:An.bool,noDragEventsBubbling:An.bool,minSize:An.number,maxSize:An.number,maxFiles:An.number,disabled:An.bool,getFilesFromEvent:An.func,onFileDialogCancel:An.func,onFileDialogOpen:An.func,useFsAccessApi:An.bool,autoFocus:An.bool,onDragEnter:An.func,onDragLeave:An.func,onDragOver:An.func,onDrop:An.func,onDropAccepted:An.func,onDropRejected:An.func,onError:An.func,validator:An.func};var O0={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function i1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=rr(rr({},z5),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,m=t.onDragLeave,h=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,w=t.onDropRejected,S=t.onFileDialogCancel,C=t.onFileDialogOpen,_=t.useFsAccessApi,k=t.autoFocus,P=t.preventDropOnDocument,E=t.noClick,I=t.noKeyboard,R=t.noDrag,O=t.noDragEventsBubbling,D=t.onError,T=t.validator,$=f.useMemo(function(){return pN(n)},[n]),B=f.useMemo(function(){return fN(n)},[n]),ee=f.useMemo(function(){return typeof C=="function"?C:M2},[C]),F=f.useMemo(function(){return typeof S=="function"?S:M2},[S]),N=f.useRef(null),H=f.useRef(null),K=f.useReducer(IN,O0),A=wg(K,2),G=A[0],V=A[1],W=G.isFocused,re=G.isFileDialogActive,be=f.useRef(typeof window<"u"&&window.isSecureContext&&_&&dN()),ce=function(){!be.current&&re&&setTimeout(function(){if(H.current){var fe=H.current.files;fe.length||(V({type:"closeDialog"}),F())}},300)};f.useEffect(funct
|
||
|
`),status:"error"})},[i,s]),h=f.useCallback(async E=>{n(F4({file:E,image_category:"user",is_intermediate:!1,postUploadAction:{type:"TOAST_UPLOADED"}}))},[n]),v=f.useCallback((E,I)=>{if(I.length>1){s({title:i("toast.uploadFailed"),description:i("toast.uploadFailedInvalidUploadDesc"),status:"error"});return}I.forEach(R=>{m(R)}),E.forEach(R=>{h(R)})},[i,s,h,m]),{getRootProps:b,getInputProps:w,isDragAccept:S,isDragReject:C,isDragActive:_,inputRef:k,open:P}=i1({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:v,onDragOver:()=>d(!0),disabled:r,multiple:!1});return f.useEffect(()=>{const E=async I=>{var R,O;k.current&&(R=I.clipboardData)!=null&&R.files&&(k.current.files=I.clipboardData.files,(O=k.current)==null||O.dispatchEvent(new Event("change",{bubbles:!0})))};return p(P),document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E),p(()=>{})}},[k,P,p]),a.jsxs(Be,{...b({style:{}}),onKeyDown:E=>{E.key},children:[a.jsx("input",{...w()}),t,_&&u&&a.jsx(HN,{isDragAccept:S,isDragReject:C,setIsHandlingUpload:d})]})},UN=f.memo(WN),GN=hR(e=>{e(B4(!0))},300),js=()=>(e,t)=>{yr(t())==="unifiedCanvas"&&GN(e)};var qN=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)}}(),Cr=globalThis&&globalThis.__assign||function(){return Cr=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},Cr.apply(this,arguments)},T2={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},A2={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Bd={width:"20px",height:"20px",position:"absolute"},KN={top:Cr(Cr({},T2),{top:"-5px"}),right:Cr(Cr({},A2),{left:void 0,right:"-5px"}),bottom:Cr(Cr({},T2),{top:void 0,bottom:"-5px"}),left:Cr(Cr({},A2),{left:"-5px"}),topRight:Cr(Cr({},Bd),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Cr(Cr({},Bd),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Cr(Cr({},Bd),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Cr(Cr({},Bd),{left:"-10px",top:"-10px",cursor:"nw-resize"})},YN=function(e){qN(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:Cr(Cr({position:"absolute",userSelect:"none"},KN[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(f.PureComponent),QN=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)}}(),Bs=globalThis&&globalThis.__assign||function(){return Bs=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},Bs.apply(this,arguments)},XN={width:"auto",height:"auto"},Hd=function(e,t,n){return Math.max(Math.min(e,n),t)},N2=function(e,t){return Math.round(e/t)*t},Cl=function(e,t){return new RegExp(e,"i").test(t)},Vd=function(e){return!!(e.touches&&e.touches.length)},ZN=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},$2=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(s,i,u){return Math.abs(i-e)<Math.abs(t[s]-e)?u:s},0),o=Math.abs(t[r]-e);return n===
|
||
|
* OverlayScrollbars
|
||
|
* Version: 2.2.0
|
||
|
*
|
||
|
* Copyright (c) Rene Haas | KingSora.
|
||
|
* https://github.com/KingSora
|
||
|
*
|
||
|
* Released under the MIT license.
|
||
|
*/function bn(e,t){if(Eh(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&bn(Object.keys(e),n=>t(e[n],n,e));return e}function Kr(e,t){const n=ci(t);if(Is(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?V2(e,s,t):t.reduce((i,u)=>(i[u]=V2(e,s,u),i),o)}return o}e&&bn(Ro(t),o=>uz(e,o,t[o]))}const ps=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,i;const u=(m,h)=>{const v=s,b=m,w=h||(r?!r(v,b):v!==b);return(w||o)&&(s=b,i=v),[s,w,i]};return[t?m=>u(t(s,i),m):u,m=>[s,!!m,i]]},Wu=()=>typeof window<"u",n_=Wu()&&Node.ELEMENT_NODE,{toString:Y$,hasOwnProperty:jg}=Object.prototype,Ea=e=>e===void 0,Ih=e=>e===null,Q$=e=>Ea(e)||Ih(e)?`${e}`:Y$.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),ri=e=>typeof e=="number",ci=e=>typeof e=="string",g1=e=>typeof e=="boolean",Ps=e=>typeof e=="function",Is=e=>Array.isArray(e),yu=e=>typeof e=="object"&&!Is(e)&&!Ih(e),Eh=e=>{const t=!!e&&e.length,n=ri(t)&&t>-1&&t%1==0;return Is(e)||!Ps(e)&&n?t>0&&yu(e)?t-1 in e:!0:!1},M0=e=>{if(!e||!yu(e)||Q$(e)!=="object")return!1;let t;const n="constructor",r=e[n],o=r&&r.prototype,s=jg.call(e,n),i=o&&jg.call(o,"isPrototypeOf");if(r&&!s&&!i)return!1;for(t in e);return Ea(t)||jg.call(e,t)},ep=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===n_:!1},Oh=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===n_:!1},v1=(e,t,n)=>e.indexOf(t,n),On=(e,t,n)=>(!n&&!ci(t)&&Eh(t)?Array.prototype.push.apply(e,t):e.push(t),e),Wi=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{On(n,r)}):bn(e,r=>{On(n,r)}),n)},y1=e=>!!e&&e.length===0,Js=(e,t,n)=>{bn(e,o=>o&&o.apply(void 0,t||[])),!n&&(e.length=0)},Rh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ro=e=>e?Object.keys(e):[],or=(e,t,n,r,o,s,i)=>{const u=[t,n,r,o,s,i];return(typeof e!="object"||Ih(e))&&!Ps(e)&&(e={}),bn(u,d=>{bn(Ro(d),p=>{const m=d[p];if(e===m)return!0;const h=Is(m);if(m&&(M0(m)||h)){const v=e[p];let b=v;h&&!Is(v)?b=[]:!h&&!M0(v)&&(b={}),e[p]=or(b,m)}else e[p]=m})}),e},b1=e=>{for(const t in e)return!1;return!0},r_=(e,t,n,r)=>{if(Ea(r))return n?n[e]:t;n&&(ci(r)||ri(r))&&(n[e]=r)},Gr=(e,t,n)=>{if(Ea(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},uo=(e,t)=>{e&&e.removeAttribute(t)},Ti=(e,t,n,r)=>{if(n){const o=Gr(e,t)||"",s=new Set(o.split(" "));s[r?"add":"delete"](n);const i=Wi(s).join(" ").trim();Gr(e,t,i)}},X$=(e,t,n)=>{const r=Gr(e,t)||"";return new Set(r.split(" ")).has(n)},ys=(e,t)=>r_("scrollLeft",0,e,t),fa=(e,t)=>r_("scrollTop",0,e,t),D0=Wu()&&Element.prototype,o_=(e,t)=>{const n=[],r=t?Oh(t)?t:null:document;return r?On(n,r.querySelectorAll(e)):n},Z$=(e,t)=>{const n=t?Oh(t)?t:null:document;return n?n.querySelector(e):null},tp=(e,t)=>Oh(e)?(D0.matches||D0.msMatchesSelector).call(e,t):!1,x1=e=>e?Wi(e.childNodes):[],Ca=e=>e?e.parentElement:null,Ol=(e,t)=>{if(Oh(e)){const n=D0.closest;if(n)return n.call(e,t);do{if(tp(e,t))return e;e=Ca(e)}while(e)}return null},J$=(e,t,n)=>{const r=e&&Ol(e,t),o=e&&Z$(n,r),s=Ol(o,t)===r;return r&&o?r===e||o===e||s&&Ol(Ol(e,n),t)!==r:!1},S1=(e,t,n)=>{if(n&&e){let r=t,o;Eh(n)?(o=document.createDocumentFragment(),bn(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)}},Ko=(e,t)=>{S1(e,null,t)},ez=(e,t)=>{S1(Ca(e),e,t)},F2=(e,t)=>{S1(Ca(e),e&&e.nextSibling,t)},Ks=e=>{if(Eh(e))bn(Wi(e),t=>Ks(t));else if(e){const t=Ca(e);t&&t.removeChild(e)}},Ai=e=>{const t=document.createElement("div");return e&&Gr(t,"class",e),t},s_=e=>{const t=Ai();return t.innerHTML=e.trim(),bn(x1(t),n=>Ks(n))},T0=e=>e.charAt(0).toUpperCase()+e.slice(1),tz=()=>Ai().style,nz=["-webkit-","-moz-","-o-","-ms-"],rz=["WebKit","Moz","O","MS","webkit","moz","o","ms"],Pg={},Ig={},oz=e=>{let t=Ig[e];if(Rh(Ig,e))return t;const n=T0(e),r=tz();return bn(nz,o=>{const s=o.replace(/-/g,"");return!(t=[e,o+e,s+n,T0(s)+n].find(u=>r[u]!==void 0))}),Ig[e]=t||""},Uu=e=>{if(Wu()){let t=Pg[e]||window[e];return Rh(Pg,e)||(bn(rz,n=>(t=t||window[n+T0(e)],!t)),Pg[e]=t),t}},sz=Uu("MutationObserver"),B2=Uu("IntersectionObserver"),Rl=Uu("ResizeObserver"),a_=Uu("cancelAnimationFrame"),i
|
||
|
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:Ve,mutationThunk:wt,api:q,serializeQueryArgs:Ye,context:ue}),jr=Cn.buildInitiateQuery,Gn=Cn.buildInitiateMutation;return kr(q.util,{getRunningOperationPromises:Cn.getRunningOperationPromises,getRunningOperationPromise:Cn.removalWarning,getRunningMutationThunk:Cn.getRunningMutationThunk,getRunningMutationsThunk:Cn.getRunningMutationsThunk,getRunningQueryThunk:Cn.getRunningQueryThunk,getRunningQueriesThunk:Cn.getRunningQueriesThunk}),{name:ta,injectEndpoint:function(Ct,Sn){var jn,qn=q;(jn=qn.endpoints)[Ct]!=null||(jn[Ct]={}),oe(Sn)?kr(qn.endpoints[Ct],{name:Ct,select:Wt(Ct,Sn),initiate:jr(Ct,Sn)},Bt(Ve,Ct)):Sn.type===ie.mutation&&kr(qn.endpoints[Ct],{name:Ct,select:Zt(),initiate:Gn(Ct)},Bt(wt,Ct))}}}}},as=it(Ma())})(T_);D_.exports=T_;var Yo=D_.exports;const A_=f.memo(({board:e,isSelected:t})=>{const n=ne(),{currentData:r}=Cs(e.cover_image_name??Yo.skipToken),{colorMode:o}=Qr(),{board_name:s,board_id:i}=e,{onClickDeleteBoardImages:u}=f.useContext(V4),d=f.useCallback(()=>{n(Cv(i))},[i,n]),[p,{isLoading:m}]=a8(),[h,{isLoading:v}]=i8(),b=k=>{p({board_id:i,changes:{board_name:k}})},w=f.useCallback(()=>{h(i)},[i,h]),S=f.useCallback(()=>{},[]),C=f.useCallback(()=>{u(e)},[e,u]),_=f.useMemo(()=>({id:i,actionType:"MOVE_BOARD",context:{boardId:i}}),[i]);return a.jsx(Be,{sx:{touchAction:"none",height:"full"},children:a.jsx(M_,{menuProps:{size:"sm",isLazy:!0},renderMenu:()=>a.jsxs($u,{sx:{visibility:"visible !important"},children:[e.image_count>0&&a.jsxs(a.Fragment,{children:[a.jsx(Lr,{isDisabled:!e.image_count,icon:a.jsx(J5,{}),onClickCapture:S,children:"Add Board to Batch"}),a.jsx(Lr,{sx:{color:"error.600",_dark:{color:"error.300"}},icon:a.jsx(mo,{}),onClickCapture:C,children:"Delete Board and Images"})]}),a.jsx(Lr,{sx:{color:"error.600",_dark:{color:"error.300"}},icon:a.jsx(mo,{}),onClickCapture:w,children:"Delete Board"})]}),children:k=>a.jsxs(U,{userSelect:"none",ref:k,sx:{flexDir:"column",justifyContent:"space-between",alignItems:"center",cursor:"pointer",w:"full",h:"full"},children:[a.jsxs(U,{onClick:d,sx:{position:"relative",justifyContent:"center",alignItems:"center",borderRadius:"base",w:"full",aspectRatio:"1/1",overflow:"hidden",shadow:t?"selected.light":void 0,_dark:{shadow:t?"selected.dark":void 0},flexShrink:0},children:[e.cover_image_name&&(r==null?void 0:r.image_url)&&a.jsx(Eu,{src:r==null?void 0:r.image_url,draggable:!1}),!(e.cover_image_name&&(r!=null&&r.image_url))&&a.jsx(Zi,{boxSize:8,icon:su,sx:{border:"2px solid var(--invokeai-colors-base-200)",_dark:{border:"2px solid var(--invokeai-colors-base-800)"}}}),a.jsx(U,{sx:{position:"absolute",insetInlineEnd:0,top:0,p:1},children:a.jsx(Hi,{variant:"solid",children:e.image_count})}),a.jsx(M1,{data:_})]}),a.jsx(U,{sx:{width:"full",height:"full",justifyContent:"center",alignItems:"center"},children:a.jsxs(o6,{defaultValue:s,submitOnBlur:!1,onSubmit:P=>{b(P)},children:[a.jsx(t6,{sx:{color:t?Pe("base.900","base.50")(o):Pe("base.700","base.200")(o),fontWeight:t?600:void 0,fontSize:"xs",textAlign:"center",p:0},noOfLines:1}),a.jsx(e6,{sx:{color:Pe("base.900","base.50")(o),fontSize:"xs",borderColor:Pe("base.500","base.500")(o),p:0,outline:0}})]})})]},i)})})});A_.displayName="HoverableBoard";const sr=e=>{const t=L(i=>i.config.disabledTabs),n=L(i=>i.config.disabledFeatures),r=L(i=>i.config.disabledSDFeatures),o=f.useMemo(()=>n.includes(e)||r.includes(e)||t.includes(e),[n,r,t,e]),s=f.useMemo(()=>!(n.includes(e)||r.includes(e)||t.includes(e)),[n,r,t,e]);return{isFeatureDisabled:o,isFeatureEnabled:s}},_L=we([Tt],({boards:e,gallery:t})=>{const{searchText:n}=e,{selectedBoardId:r}=t;return{selectedBoardId:r,searchText:n}},ut),kL=e=>{const{isOpen:t}=e,n=ne(),{selectedBoardId:r,searchText:o}=L(_L),{data:s}=kv(),i=sr("batches").isFeatureEnabled,u=o?s==null?void 0:s.filter(v=>v.board_name.toLowerCase().includes(o.toLowerCase())):s,[d,p]=f.useState(!1),m=v=>{p(v.length>0),n(ix(v))},h=()=>{p(!1),n(ix(""))};return a.jsx(uh,{in:t,animateOpacity:!0,children:a.jsxs(U,{layerStyl
|
||
|
* @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 Kte=function(t){var n={},r=f,o=wf,s=Object.assign;function i(l){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+l,g=1;g<arguments.length;g++)c+="&args[]="+encodeURIComponent(arguments[g]);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"),m=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),w=Symbol.for("react.context"),S=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"),E=Symbol.for("react.offscreen"),I=Symbol.iterator;function R(l){return l===null||typeof l!="object"?null:(l=I&&l[I]||l["@@iterator"],typeof l=="function"?l:null)}function O(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 m:return"Fragment";case p:return"Portal";case v:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case _: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 S: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:O(l.type)||"Memo";case P:c=l._payload,l=l._init;try{return O(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 O(c);case 8:return c===h?"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,g=l;if(l.alternate)for(;c.return;)c=c.return;else{l=c;do c=l,c.flags&4098&&(g=c.return),l=c.return;while(l)}return c.tag===3?g:null}function $(l){if(T(l)!==l)throw Error(i(188))}function B(l){var c=l.alternate;if(!c){if(c=T(l),c===null)throw Error(i(188));return c!==l?null:l}for(var g=l,y=c;;){var x=g.return;if(x===null)break;var j=x.alternate;if(j===null){if(y=x.return,y!==null){g=y;continue}break}if(x.child===j.child){for(j=x.child;j;){if(j===g)return $(x),l;if(j===y)return $(x),c;j=j.sibling}throw Error(i(188))}if(g.return!==y.return)g=x,y=j;else{for(var M=!1,Q=x.child;Q;){if(Q===g){M=!0,g=x,y=j;break}if(Q===y){M=!0,y=x,g=j;break}Q=Q.sibling}if(!M){for(Q=j.child;Q;){if(Q===g){M=!0,g=j,y=x;break}if(Q===y){M=!0,y=j,g=x;break}Q=Q.sibling}if(!M)throw Error(i(189))}}if(g.alternate!==y)throw Error(i(190))}if(g.tag!==3)throw Error(i(188));return g.stateNode.current===g?l:c}function ee(l){return l=B(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 H=Array.isArray,K=t.getPublicInstance,A=t.getRootHostContext,G=t.getChildHostContext,V=t.prepareForCommit,W=t.resetAfterCommit,re=t.createInstance,be=t.appendInitialChild,ce=t.finalizeInitialChildren,se=t.prepareUpdate,X=t.shouldSetTextContent,ie=t.createTextInstance,de=t.scheduleTimeout,xe=t.cancelTimeout,oe=t.noTimeout,ve=t.isPrimaryRenderer,he=t.supportsMutation,je=t.supportsPersistence,Ne=t.supportsHydration,ge=t
|
||
|
`+_t+l}var Ft=!1;function Ut(l,c){if(!l||Ft)return"";Ft=!0;var g=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(De){var y=De}Reflect.construct(l,[],c)}else{try{c.call()}catch(De){y=De}l.call(c.prototype)}else{try{throw Error()}catch(De){y=De}l()}}catch(De){if(De&&y&&typeof De.stack=="string"){for(var x=De.stack.split(`
|
||
|
`),j=y.stack.split(`
|
||
|
`),M=x.length-1,Q=j.length-1;1<=M&&0<=Q&&x[M]!==j[Q];)Q--;for(;1<=M&&0<=Q;M--,Q--)if(x[M]!==j[Q]){if(M!==1||Q!==1)do if(M--,Q--,0>Q||x[M]!==j[Q]){var le=`
|
||
|
`+x[M].replace(" at new "," at ");return l.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",l.displayName)),le}while(1<=M&&0<=Q);break}}}finally{Ft=!1,Error.prepareStackTrace=g}return(l=l?l.displayName||l.name:"")?Rt(l):""}var Bt=Object.prototype.hasOwnProperty,Ie=[],mt=-1;function Mt(l){return{current:l}}function Dt(l){0>mt||(l.current=Ie[mt],Ie[mt]=null,mt--)}function Lt(l,c){mt++,Ie[mt]=l.current,l.current=c}var fn={},Wt=Mt(fn),Zt=Mt(!1),Cn=fn;function jr(l,c){var g=l.type.contextTypes;if(!g)return fn;var y=l.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var x={},j;for(j in g)x[j]=c[j];return y&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=c,l.__reactInternalMemoizedMaskedChildContext=x),x}function Gn(l){return l=l.childContextTypes,l!=null}function Ct(){Dt(Zt),Dt(Wt)}function Sn(l,c,g){if(Wt.current!==fn)throw Error(i(168));Lt(Wt,c),Lt(Zt,g)}function jn(l,c,g){var y=l.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return g;y=y.getChildContext();for(var x in y)if(!(x in c))throw Error(i(108,D(l)||"Unknown",x));return s({},g,y)}function qn(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||fn,Cn=Wt.current,Lt(Wt,l),Lt(Zt,Zt.current),!0}function ir(l,c,g){var y=l.stateNode;if(!y)throw Error(i(169));g?(l=jn(l,c,Cn),y.__reactInternalMemoizedMergedChildContext=l,Dt(Zt),Dt(Wt),Lt(Wt,l)):Dt(Zt),Lt(Zt,g)}var Rn=Math.clz32?Math.clz32:gn,Mn=Math.log,nn=Math.LN2;function gn(l){return l>>>=0,l===0?32:31-(Mn(l)/nn|0)|0}var wn=64,pn=4194304;function hn(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 We(l,c){var g=l.pendingLanes;if(g===0)return 0;var y=0,x=l.suspendedLanes,j=l.pingedLanes,M=g&268435455;if(M!==0){var Q=M&~x;Q!==0?y=hn(Q):(j&=M,j!==0&&(y=hn(j)))}else M=g&~x,M!==0?y=hn(M):j!==0&&(y=hn(j));if(y===0)return 0;if(c!==0&&c!==y&&!(c&x)&&(x=y&-y,j=c&-c,x>=j||x===16&&(j&4194240)!==0))return c;if(y&4&&(y|=g&16),c=l.entangledLanes,c!==0)for(l=l.entanglements,c&=y;0<c;)g=31-Rn(c),x=1<<g,y|=l[g],c&=~x;return y}function kt(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 vt(l,c){for(var g=l.suspendedLanes,y=l.pingedLanes,x=l.expirationTimes,j=l.pendingLanes;0<j;){var M=31-Rn(j),Q=1<<M,le=x[M];le===-1?(!(Q&g)||Q&y)&&(x[M]=kt(Q,c)):le<=c&&(l.expiredLanes|=Q),j&=~Q}}function et(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function gt(){var l=wn;return wn<<=1,!(wn&4194240)&&(wn=64),l}function At(l){for(var c=[],g=0;31>g;g++)c.push(l);return c}function ft(l,c,g){l.pendingLanes|=c,c!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,c=31-Rn(c),l[c]=g}function Xe(l,c){var g=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<g;){var x=31-Rn(g),j=1<<x;c[x]=0,y[x]=-1,l[x]=-1,g&=~j}}function Ee(l,c){var g=l.entangledLanes|=c;for(l=l.entanglements;g;){var y=31-Rn(g),x=1<<y;x&c|l[y]&c&&(l[y]|=c),g&=~x}}var ke=0;function Me(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var $e=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,It=o.unsta
|
||
|
Error generating stack: `+j.message+`
|
||
|
`+j.stack}return{value:l,source:c,stack:x,digest:null}}function km(l,c,g){return{value:l,source:null,stack:g??null,digest:c??null}}function jm(l,c){try{console.error(c.value)}catch(g){setTimeout(function(){throw g})}}var GI=typeof WeakMap=="function"?WeakMap:Map;function fb(l,c,g){g=oa(-1,g),g.tag=3,g.payload={element:null};var y=c.value;return g.callback=function(){Cd||(Cd=!0,Gm=y),jm(l,c)},g}function pb(l,c,g){g=oa(-1,g),g.tag=3;var y=l.type.getDerivedStateFromError;if(typeof y=="function"){var x=c.value;g.payload=function(){return y(x)},g.callback=function(){jm(l,c)}}var j=l.stateNode;return j!==null&&typeof j.componentDidCatch=="function"&&(g.callback=function(){jm(l,c),typeof y!="function"&&(Na===null?Na=new Set([this]):Na.add(this));var M=c.stack;this.componentDidCatch(c.value,{componentStack:M!==null?M:""})}),g}function hb(l,c,g){var y=l.pingCache;if(y===null){y=l.pingCache=new GI;var x=new Set;y.set(c,x)}else x=y.get(c),x===void 0&&(x=new Set,y.set(c,x));x.has(g)||(x.add(g),l=aE.bind(null,l,c,g),c.then(l,l))}function mb(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 gb(l,c,g,y,x){return l.mode&1?(l.flags|=65536,l.lanes=x,l):(l===c?l.flags|=65536:(l.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(c=oa(-1,1),c.tag=2,Aa(g,c,1))),g.lanes|=1),l)}var qI=u.ReactCurrentOwner,ao=!1;function ro(l,c,g,y){c.child=l===null?Vy(c,null,g,y):ll(c,l.child,g,y)}function vb(l,c,g,y,x){g=g.render;var j=c.ref;return il(c,x),y=bm(l,c,g,y,j,x),g=xm(),l!==null&&!ao?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~x,sa(l,c,x)):(Kn&&g&&em(c),c.flags|=1,ro(l,c,y,x),c.child)}function yb(l,c,g,y,x){if(l===null){var j=g.type;return typeof j=="function"&&!Zm(j)&&j.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(c.tag=15,c.type=j,bb(l,c,j,y,x)):(l=Ed(g.type,null,y,c,c.mode,x),l.ref=c.ref,l.return=c,c.child=l)}if(j=l.child,!(l.lanes&x)){var M=j.memoizedProps;if(g=g.compare,g=g!==null?g:Xu,g(M,y)&&l.ref===c.ref)return sa(l,c,x)}return c.flags|=1,l=Fa(j,y),l.ref=c.ref,l.return=c,c.child=l}function bb(l,c,g,y,x){if(l!==null){var j=l.memoizedProps;if(Xu(j,y)&&l.ref===c.ref)if(ao=!1,c.pendingProps=y=j,(l.lanes&x)!==0)l.flags&131072&&(ao=!0);else return c.lanes=l.lanes,sa(l,c,x)}return Pm(l,c,g,y,x)}function xb(l,c,g){var y=c.pendingProps,x=y.children,j=l!==null?l.memoizedState:null;if(y.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(pl,ko),ko|=g;else{if(!(g&1073741824))return l=j!==null?j.baseLanes|g:g,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:l,cachePool:null,transitions:null},c.updateQueue=null,Lt(pl,ko),ko|=l,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=j!==null?j.baseLanes:g,Lt(pl,ko),ko|=y}else j!==null?(y=j.baseLanes|g,c.memoizedState=null):y=g,Lt(pl,ko),ko|=y;return ro(l,c,x,g),c.child}function Sb(l,c){var g=c.ref;(l===null&&g!==null||l!==null&&l.ref!==g)&&(c.flags|=512,c.flags|=2097152)}function Pm(l,c,g,y,x){var j=Gn(g)?Cn:Wt.current;return j=jr(c,j),il(c,x),g=bm(l,c,g,y,j,x),y=xm(),l!==null&&!ao?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~x,sa(l,c,x)):(Kn&&y&&em(c),c.flags|=1,ro(l,c,g,x),c.child)}function wb(l,c,g,y,x){if(Gn(g)){var j=!0;qn(c)}else j=!1;if(il(c,x),c.stateNode===null)dd(l,c),Ly(c,g,y),fm(c,g,y,x),y=!0;else if(l===null){var M=c.stateNode,Q=c.memoizedProps;M.props=Q;var le=M.context,De=g.contextType;typeof De=="object"&&De!==null?De=$o(De):(De=Gn(g)?Cn:Wt.current,De=jr(c,De));var pt=g.getDerivedStateFromProps,Ht=typeof pt=="function"||typeof M.getSnapshotBeforeUpdate=="function";Ht||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(Q!==y||le!==De)&&Fy(c,M,y,De),Ta=!1;var nt=c.memoizedState;M.state=nt,td(c,y,M,x),le=c.memoizedState,Q!==y||nt!==le||Zt.current||Ta?(typeof pt=="function"&&(dm(c,g,pt,y),le=c.memoizedState),(Q=Ta||zy(c,g,Q,y,nt,le,De))?(Ht||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.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{Ln=c.inject(l),an=c}catch{}l=!!c.checkDCE}}return l},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(l,c,g,y){if(!St)throw Error(i(363));l=Bm(l,c);var x=Ke(l,g,y).disconnect;return{disconnect:function(){x()}}},n.registerMutableSourceForHydration=function(l,c){var g=c._getVersion;g=g(c._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[c,g]:l.mutableSourceEagerHydrationData.push(c,g)},n.runWithPriority=function(l,c){var g=ke;try{return ke=l,c()}finally{ke=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,c,g,y){var x=c.current,j=Ur(),M=za(x);return g=Jb(g),c.context===null?c.context=g:c.pendingContext=g,c=oa(j,M),c.payload={element:l},y=y===void 0?null:y,y!==null&&(c.callback=y),l=Aa(x,c,M),l!==null&&(Fo(l,x,M,j),ed(l,x,M)),M},n};bI.exports=Kte;var Yte=bI.exports;const Qte=lc(Yte);var xI={exports:{}},ol={};/**
|
||
|
* @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.
|
||
|
*/ol.ConcurrentRoot=1;ol.ContinuousEventPriority=4;ol.DefaultEventPriority=16;ol.DiscreteEventPriority=1;ol.IdleEventPriority=536870912;ol.LegacyRoot=0;xI.exports=ol;var SI=xI.exports;const g4={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let v4=!1,y4=!1;const _y=".react-konva-event",Xte=`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
|
||
|
`,Zte=`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
|
||
|
`,Jte={};function Jh(e,t,n=Jte){if(!v4&&"zIndex"in t&&(console.warn(Zte),v4=!0),!y4&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(Xte),y4=!0)}for(var s in n)if(!g4[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 m=t._useStrictMode,h={},v=!1;const b={};for(var s in t)if(!g4[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]||m&&t[s]!==e.getAttr(s))&&(v=!0,h[s]=t[s])}v&&(e.setAttrs(h),di(e));for(var d in b)e.on(d+_y,b[d])}function di(e){if(!f7.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const wI={},ene={};_u.Node.prototype._applyProps=Jh;function tne(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 nne(e,t,n){let r=_u[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=_u.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 Jh(d,s),d}function rne(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function one(e,t,n){return!1}function sne(e){return e}function ane(){return null}function ine(){return null}function lne(e,t,n,r){return ene}function cne(){}function une(e){}function dne(e,t){return!1}function fne(){return wI}function pne(){return wI}const hne=setTimeout,mne=clearTimeout,gne=-1;function vne(e,t){return!1}const yne=!1,bne=!0,xne=!0;function Sne(e,t){t.parent===e?t.moveToTop():e.add(t),di(e)}function wne(e,t){t.parent===e?t.moveToTop():e.add(t),di(e)}function CI(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),di(e)}function Cne(e,t,n){CI(e,t,n)}function _ne(e,t){t.destroy(),t.off(_y),di(e)}function kne(e,t){t.destroy(),t.off(_y),di(e)}function jne(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function Pne(e,t,n){}function Ine(e,t,n,r,o){Jh(e,o,r)}function Ene(e){e.hide(),di(e)}function One(e){}function Rne(e,t){(t.visible==null||t.visible)&&e.show()}function Mne(e,t){}function Dne(e){}function Tne(){}const Ane=()=>SI.DefaultEventPriority,Nne=Object.freeze(Object.defineProperty({__proto__:null,appendChild:Sne,appendChildToContainer:wne,appendInitialChild:tne,cancelTimeout:mne,clearContainer:Dne,commitMount:Pne,commitTextUpdate:jne,commitUpdate:Ine,createInstance:nne,createTextInstance:rne,detachDeletedInstance:Tne,finalizeInitialChildren:one,getChildHostContext:pne,getCurrentEventPriority:Ane,getPublicInstance:sne,getRootHostContext:fne,hideInstance:Ene,hideTextInstance:One,idlePriority:wf.unstable_IdlePriority,insertBefore:CI,insertInContainerBefore:Cne,isPrimaryRenderer:yne,noTimeout:gne,now:wf.unstable_now,prepareForCommit:ane,preparePortalMount:ine,prepareUpdate:lne,removeChild:_ne,removeChildFromContainer:kne,resetAfterCommit:cne,resetTextContent:une,run:wf.unstable_runWithPriority,scheduleTimeout:hne,shouldDeprioritizeSubtree:dne,shouldSetTextContent:vne,supportsMutation:xne,unhideInstance:Rne,unhideTextInstance:Mne,warnsIfNotActing:bne},Symbol.toStringTag,{value:"Module"}));var $ne=Object.defineProperty,zne=Object.defineProperties,Lne=Object.getOwnPropertyDescriptors,b4=Object.getOwnPropertySymbols,Fne=Object.prototype.hasOwnProperty,Bne=Object.prototype.propertyIsEnumerable,x4=(e,t,n)=>t in e?$ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S4=(e,t)=>{for(var n in t||(t={}))Fne.call(t,n)&&x4(e,n,t[n]);if(b4)for(var n of b4(t))Bne.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),gre=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:o,stageScale:s}=L(mre),[i,u]=f.useState(null),[d,p]=f.useState(0),m=f.useRef(null),h=f.useCallback(()=>{p(d+1),setTimeout(h,500)},[d]);return f.useEffect(()=>{if(i)return;const v=new Image;v.onload=()=>{u(v)},v.src=_4(n)},[i,n]),f.useEffect(()=>{i&&(i.src=_4(n))},[i,n]),f.useEffect(()=>{const v=setInterval(()=>p(b=>(b+1)%5),50);return()=>clearInterval(v)},[]),!i||!vl(r.x)||!vl(r.y)||!vl(s)||!vl(o.width)||!vl(o.height)?null:a.jsx(Qs,{ref:m,offsetX:r.x/s,offsetY:r.y/s,height:o.height/s,width:o.width/s,fillPatternImage:i,fillPatternOffsetY:vl(d)?d:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/s,y:1/s},listening:!0,globalCompositeOperation:"source-in",...t})},vre=we([tn],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Yt}}),yre=e=>{const{...t}=e,{objects:n}=L(vre);return a.jsx(ka,{listening:!1,...t,children:n.filter(k7).map((r,o)=>a.jsx(eh,{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,bre=function(t,n,r){const o=wi.useRef("loading"),s=wi.useRef(),[i,u]=wi.useState(0),d=wi.useRef(),p=wi.useRef(),m=wi.useRef();return(d.current!==t||p.current!==n||m.current!==r)&&(o.current="loading",s.current=void 0,d.current=t,p.current=n,m.current=r),wi.useLayoutEffect(function(){if(!t)return;var h=document.createElement("img");function v(){o.current="loaded",s.current=h,u(Math.random())}function b(){o.current="failed",s.current=void 0,u(Math.random())}return h.addEventListener("load",v),h.addEventListener("error",b),n&&(h.crossOrigin=n),r&&(h.referrerPolicy=r),h.src=t,function(){h.removeEventListener("load",v),h.removeEventListener("error",b)}},[t,n,r]),[s.current,o.current]};const xre=lc(bre),EI=e=>{const{width:t,height:n,x:r,y:o,imageName:s}=e.canvasImage,{currentData:i,isError:u}=Cs(s??Yo.skipToken),[d]=xre((i==null?void 0:i.image_url)??"",j7.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})},Sre=we([tn],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Yt}}),wre=()=>{const{objects:e}=L(Sre);return e?a.jsx(ka,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(P7(t))return a.jsx(EI,{canvasImage:t},n);if(I7(t)){const r=a.jsx(eh,{points:t.points,stroke:t.color?Li(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(ka,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(E7(t))return a.jsx(Qs,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Li(t.color)},n);if(O7(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},Cre=we([tn],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:Yt}}),_re=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:o,x:s,y:i,width:u,height:d}=L(Cre);return a.jsxs(ka,{...t,children:[r&&n&&a.jsx(EI,{canvasImage:n}),o&&a.jsxs(ka,{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})]})]})},kre=we([tn],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n,sessionId:r}},shouldShowSta
|