mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
170 lines
910 KiB
JavaScript
170 lines
910 KiB
JavaScript
|
import{t as yv,r as s7,i as xv,a as Mc,b as y_,S as x_,c as w_,d as S_,e as wv,f as C_,g as Sv,h as a7,j as i7,k as l7,l as c7,m as k_,n as u7,o as d7,p as f7,q as __,s as p7,u as h7,v as m7,w as g7,x as v7,y as b7,z as f,A as i,B as Zh,C as Op,D as y7,E as P_,F as j_,G as x7,P as dd,H as G1,I as w7,J as S7,K as C7,L as k7,M as _7,N as P7,O as j7,Q as H2,R as I7,T as Ae,U as je,V as Ct,W as nt,X as fd,Y as ho,Z as Ir,_ as Fr,$ as qn,a0 as fl,a1 as ia,a2 as Ft,a3 as ns,a4 as ec,a5 as za,a6 as em,a7 as q1,a8 as pd,a9 as or,aa as E7,ab as H,ac as I_,ad as W2,ae as E_,af as Cv,ag as Dc,ah as O7,ai as O_,aj as R_,ak as Ac,al as R7,am as fe,an as Ge,ao as Jt,ap as z,aq as M7,ar as V2,as as D7,at as A7,au as U2,av as te,aw as T7,ax as On,ay as Mn,az as Ee,aA as F,aB as Ys,aC as Xe,aD as Kn,aE as M_,aF as D_,aG as A_,aH as _i,aI as Ds,aJ as K1,aK as N7,aL as $7,aM as z7,aN as Ml,aO as Su,aP as L7,aQ as B7,aR as F7,aS as H7,aT as W7,aU as G2,aV as ui,aW as X1,aX as Rp,aY as tm,aZ as T_,a_ as os,a$ as N_,b0 as V7,b1 as Tc,b2 as $_,b3 as z_,b4 as Es,b5 as Po,b6 as Cu,b7 as U7,b8 as G7,b9 as q7,ba as K7,bb as Y1,bc as Mp,bd as X7,be as Y7,bf as Of,bg as Rf,bh as du,bi as l0,bj as Du,bk as Au,bl as Tu,bm as Nu,bn as q2,bo as Dp,bp as c0,bq as Ap,br as u0,bs as kv,bt as d0,bu as _v,bv as f0,bw as Tp,bx as K2,by as mc,bz as X2,bA as gc,bB as Y2,bC as Np,bD as Q1,bE as L_,bF as Pv,bG as jv,bH as B_,bI as Q7,bJ as Iv,bK as J7,bL as Ev,bM as J1,bN as F_,bO as Z1,bP as eb,bQ as Z7,bR as eR,bS as nm,bT as Kl,bU as tR,bV as nR,bW as yp,bX as rR,bY as oR,bZ as sR,b_ as Ov,b$ as H_,c0 as aR,c1 as W_,c2 as V_,c3 as ss,c4 as Q2,c5 as La,c6 as iR,c7 as Rv,c8 as lR,c9 as U_,ca as J2,cb as cR,cc as uR,cd as dR,ce as fR,cf as pR,cg as hR,ch as tb,ci as nb,cj as mR,ck as Bn,cl as Z2,cm as G_,cn as gR,co as vR,cp as bR,cq as yR,cr as xR,cs as wR,ct as SR,cu as CR,cv as kR,cw as q_,cx as _R,cy as PR,cz as jR,cA as IR,cB as ER,cC as OR,cD as RR,cE as MR,cF as DR,cG as AR,cH as ew,cI as TR,cJ as tw,cK as NR,cL as $R,cM as zR,cN as LR,cO as rb,cP as Io,cQ as hd,cR as md,cS as BR,cT as hr,cU as FR,cV as na,cW as ob,cX as rm,cY as HR,cZ as WR,c_ as VR,c$ as nw,d0 as UR,d1 as K_,d2 as rw,d3 as GR,d4 as qR,d5 as Ss,d6 as KR,d7 as XR,d8 as X_,d9 as Y_,da as YR,db as ow,dc as QR,dd as JR,de as Q_,df as ZR,dg as eM,dh as tM,di as nM,dj as rM,dk as oM,dl as sM,dm as om,dn as aM,dp as J_,dq as sw,dr as Mf,ds as iM,dt as sb,du as Z_,dv as lM,dw as cM,dx as uM,dy as ls,dz as dM,dA as fM,dB as pM,dC as hM,dD as mM,dE as gM,dF as vM,dG as bM,dH as yM,dI as xM,dJ as wM,dK as SM,dL as CM,dM as kM,dN as aw,dO as iw,dP as _M,dQ as e5,dR as t5,dS as gd,dT as n5,dU as Gu,dV as r5,dW as lw,dX as PM,dY as jM,dZ as o5,d_ as IM,d$ as EM,e0 as OM,e1 as RM,e2 as MM,e3 as ab,e4 as cw,e5 as s5,e6 as DM,e7 as uw,e8 as a5,e9 as As,ea as AM,eb as i5,ec as dw,ed as TM,ee as NM,ef as $M,eg as zM,eh as LM,ei as BM,ej as FM,ek as HM,el as WM,em as VM,en as UM,eo as GM,ep as qM,eq as KM,er as XM,es as YM,et as QM,eu as JM,ev as ZM,ew as eD,ex as fw,ey as xp,ez as tD,eA as $p,eB as l5,eC as qu,eD as nD,eE as rD,eF as ea,eG as c5,eH as ib,eI as vd,eJ as oD,eK as sD,eL as aD,eM as Ea,eN as u5,eO as iD,eP as lD,eQ as d5,eR as cD,eS as uD,eT as dD,eU as fD,eV as pD,eW as hD,eX as mD,eY as gD,eZ as vD,e_ as bD,e$ as pw,f0 as yD,f1 as xD,f2 as wD,f3 as SD,f4 as CD,f5 as kD,f6 as _D,f7 as PD,f8 as p0,f9 as Js,fa as h0,fb as m0,fc as Df,fd as hw,fe as Mv,ff as jD,fg as ID,fh as ED,fi as OD,fj as zp,fk as f5,fl as p5,fm as RD,fn as MD,fo as h5,fp as m5,fq as g5,fr as v5,fs as b5,ft as y5,fu as x5,fv as w5,fw as tc,fx as nc,fy as S5,fz as C5,fA as DD,fB as k5,fC as _5,fD as P5,fE as j5,fF as I5,fG as E5,fH as lb,fI as AD,fJ as mw,fK as TD,fL as ND,fM as Lp,fN as gw,fO as vw,fP as bw,fQ as yw,fR as $D,fS as zD,fT as LD,fU as BD,fV as FD,fW as HD,fX as WD,fY as VD,fZ as UD}from"./index-9bb68e3a.js";import{u as GD,c as qD,a as Dn,b as rr,I as no,d as Ba,P as Ku,C as KD,e as ye,m as sm,f as O5,g as Fa,h as XD,r as Ue,i as YD,j as xw,k as Vt,l as Sr}from"./MantineProvider-ae002ae6.js";function QD(e,t){if
|
||
|
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"})]})})}M5.displayName="MiniMap";var A9=f.memo(M5),Cs;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Cs||(Cs={}));function T9({color:e,dimensions:t,lineWidth:n}){return i.jsx("path",{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function N9({color:e,radius:t}){return i.jsx("circle",{cx:t,cy:t,r:t,fill:e})}const $9={[Cs.Dots]:"#91919a",[Cs.Lines]:"#eee",[Cs.Cross]:"#e2e2e2"},z9={[Cs.Dots]:1,[Cs.Lines]:1,[Cs.Cross]:6},L9=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function D5({id:e,variant:t=Cs.Dots,gap:n=20,size:r,lineWidth:o=1,offset:s=2,color:a,style:c,className:d}){const p=f.useRef(null),{transform:h,patternId:m}=Op(L9,G1),v=a||$9[t],b=r||z9[t],w=t===Cs.Dots,y=t===Cs.Cross,S=Array.isArray(n)?n:[n,n],_=[S[0]*h[2]||1,S[1]*h[2]||1],k=b*h[2],j=y?[k,k]:_,I=w?[k/s,k/s]:[j[0]/s,j[1]/s];return i.jsxs("svg",{className:Zh(["react-flow__background",d]),style:{...c,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:p,"data-testid":"rf__background",children:[i.jsx("pattern",{id:m+e,x:h[0]%_[0],y:h[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${I[0]},-${I[1]})`,children:w?i.jsx(N9,{color:v,radius:k/s}):i.jsx(T9,{dimensions:j,color:v,lineWidth:o})}),i.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${m+e})`})]})}D5.displayName="Background";var B9=f.memo(D5),$u;(function(e){e.Line="line",e.Handle="handle"})($u||($u={}));function F9({width:e,prevWidth:t,height:n,prevHeight:r,invertX:o,invertY:s}){const a=e-t,c=n-r,d=[a>0?1:a<0?-1:0,c>0?1:c<0?-1:0];return a&&o&&(d[0]=d[0]*-1),c&&s&&(d[1]=d[1]*-1),d}const A5={width:0,height:0,x:0,y:0},H9={...A5,pointerX:0,pointerY:0,aspectRatio:1};function W9({nodeId:e,position:t,variant:n=$u.Handle,className:r,style:o={},children:s,color:a,minWidth:c=10,minHeight:d=10,maxWidth:p=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:m=!1,shouldResize:v,onResizeStart:b,onResize:w,onResizeEnd:y}){const S=_7(),_=typeof e=="string"?e:S,k=P_(),j=f.useRef(null),I=f.useRef(H9),E=f.useRef(A5),O=P7(),R=n===$u.Line?"right":"bottom-right",M=t??R;f.useEffect(()=>{if(!j.current||!_)return;const Q=j_(j.current),B=M.includes("right")||M.includes("left"),V=M.includes("bottom")||M.includes("top"),q=M.includes("left"),G=M.includes("top"),D=j7().on("start",L=>{const W=k.getState().nodeInternals.get(_),{xSnapped:Y,ySnapped:ae}=O(L);E.current={width:(W==null?void 0:W.width)??0,height:(W==null?void 0:W.height)??0,x:(W==null?void 0:W.position.x)??0,y:(W==null?void 0:W.position.y)??0},I.current={...E.current,pointerX:Y,pointerY:ae,aspectRatio:E.current.width/E.current.height},b==null||b(L,{...E.current})}).on("drag",L=>{const{nodeInternals:W,triggerNodeChanges:Y}=k.getState(),{xSnapped:ae,ySnapped:be}=O(L),ie=W.get(_);if(ie){const X=[],{pointerX:K,pointerY:U,width:se,height:re,x:oe,y:pe,aspectRatio:le}=I.current,{x:ge,y:ke,width:xe,height:de}=E.current,Te=Math.floor(B?ae-K:0),Oe=Math.floor(V?be-U:0);let $e=H2(se+(q?-Te:Te),c,p),kt=H2(re+(G?-Oe:Oe),d,h);if(m){const Me=$e/kt,Pt=B&&V,Tt=B&&!V,we=V&&!B;$e=Me<=le&&Pt||we?kt*le:$e,kt=Me>le&&Pt||Tt?$e/le:kt,$e>=p?($e=p,kt=p/le):$e<=c&&($e=c,kt=c/le),kt>=h?(kt=h,$e=h*le):kt<=d&&(kt=d,$e=d*le)}const ct=$e!==xe,on=kt!==de;if(q||G){const Me=q?oe-($e-se):oe,Pt=G?pe-(kt-re):pe,Tt=Me!==ge&&ct,we=Pt!==ke&&on;if(Tt||we){const ht={id:ie.id,type:"position",position:{x:Tt?Me:ge,y:we?Pt:ke}};X.push(ht),E.current.x=ht.position.x,E.current.y=ht.position.y}}if(ct||on){const Me={id:_,type:"dimensions",updateStyle:!0,resizing:!0,dimensions:{width:$e,height:kt}};X.push(Me),E.current.width=$e,E.current.height=kt}if(X.length===0)return;const vt=F9({width:E.current.width,prevWidth:xe,height:E.current.height,prevHeight:de,invertX:q,invertY:G}),bt={...E.current,direction:vt};if((v==null?void 0:v(L,bt))===!1)return;w==null||w(L,bt),Y(X)}}).on("end",L=>{const W={id:_,type:"dimensions",resizing:!1};y==null||y(L,{...E.current}),k.getState().triggerNo
|
||
|
`})}function yA(e){fd({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function _u(e){const{isOpen:t,isDisabled:n}=db(),{reduceMotion:r}=fb(),o=Ct("chakra-accordion__icon",e.className),s=im(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return i.jsx(no,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:a,...e,children:i.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}_u.displayName="AccordionIcon";var Pu=Ae(function(t,n){const{children:r,className:o}=t,{htmlProps:s,...a}=mA(t),d={...im().container,overflowAnchor:"none"},p=f.useMemo(()=>a,[a]);return i.jsx(cA,{value:p,children:i.jsx(je.div,{ref:n,...s,className:Ct("chakra-accordion__item",o),__css:d,children:typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})});Pu.displayName="AccordionItem";var qi={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},fu={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 Nv(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return fu.slideRight;case"left":return fu.slideLeft;case"bottom":return fu.slideDown;case"top":return fu.slideUp;default:return fu.slideRight}}var Xi={enter:{duration:.2,ease:qi.easeOut},exit:{duration:.1,ease:qi.easeIn}},ks={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})},xA=e=>e!=null&&parseInt(e.toString(),10)>0,Iw={exit:{height:{duration:.2,ease:qi.ease},opacity:{duration:.3,ease:qi.ease}},enter:{height:{duration:.3,ease:qi.ease},opacity:{duration:.4,ease:qi.ease}}},wA={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>{var s;return{...e&&{opacity:xA(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(s=n==null?void 0:n.exit)!=null?s:ks.exit(Iw.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:ks.enter(Iw.enter,o)}}},lm=f.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:s=0,endingHeight:a="auto",style:c,className:d,transition:p,transitionEnd:h,...m}=e,[v,b]=f.useState(!1);f.useEffect(()=>{const k=setTimeout(()=>{b(!0)});return()=>clearTimeout(k)},[]),fd({condition:Number(s)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const w=parseFloat(s.toString())>0,y={startingHeight:s,endingHeight:a,animateOpacity:o,transition:v?p:{enter:{duration:0}},transitionEnd:{enter:h==null?void 0:h.enter,exit:r?h==null?void 0:h.exit:{...h==null?void 0:h.exit,display:w?"block":"none"}}},S=r?n:!0,_=n||r?"enter":"exit";return i.jsx(ho,{initial:!1,custom:y,children:S&&i.jsx(Ir.div,{ref:t,...m,className:Ct("chakra-collapse",d),style:{overflow:"hidden",display:"block",...c},custom:y,variants:wA,initial:r?"exit":!1,animate:_,exit:"exit"})})});lm.displayName="Collapse";var SA={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:ks.enter(Xi.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:ks.exit(Xi.exit,n),transitionEnd:t==null?void 0:t.exi
|
||
|
.`.concat(tL,` {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
padding-right: `).concat(c,"px ").concat(r,`;
|
||
|
}
|
||
|
body {
|
||
|
overflow: hidden `).concat(r,`;
|
||
|
overscroll-behavior: contain;
|
||
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
|
padding-left: `.concat(o,`px;
|
||
|
padding-top: `).concat(s,`px;
|
||
|
padding-right: `).concat(a,`px;
|
||
|
margin-left:0;
|
||
|
margin-top:0;
|
||
|
margin-right: `).concat(c,"px ").concat(r,`;
|
||
|
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
|
}
|
||
|
|
||
|
.`).concat(Sp,` {
|
||
|
right: `).concat(c,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Cp,` {
|
||
|
margin-right: `).concat(c,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Sp," .").concat(Sp,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(Cp," .").concat(Cp,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(nL,": ").concat(c,`px;
|
||
|
}
|
||
|
`)},hL=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,s=f.useMemo(function(){return dL(o)},[o]);return f.createElement(fL,{styles:pL(s,!t,o,n?"":"!important")})},Zv=!1;if(typeof window<"u")try{var $f=Object.defineProperty({},"passive",{get:function(){return Zv=!0,!0}});window.addEventListener("test",$f,$f),window.removeEventListener("test",$f,$f)}catch{Zv=!1}var $l=Zv?{passive:!1}:!1,mL=function(e){return e.tagName==="TEXTAREA"},x6=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!mL(e)&&n[t]==="visible")},gL=function(e){return x6(e,"overflowY")},vL=function(e){return x6(e,"overflowX")},oS=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=w6(e,r);if(o){var s=S6(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bL=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},yL=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},w6=function(e,t){return e==="v"?gL(t):vL(t)},S6=function(e,t){return e==="v"?bL(t):yL(t)},xL=function(e,t){return e==="h"&&t==="rtl"?-1:1},wL=function(e,t,n,r,o){var s=xL(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,d=t.contains(c),p=!1,h=a>0,m=0,v=0;do{var b=S6(e,c),w=b[0],y=b[1],S=b[2],_=y-S-s*w;(w||_)&&w6(e,c)&&(m+=_,v+=w),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(o&&m===0||!o&&a>m)||!h&&(o&&v===0||!o&&-a>v))&&(p=!0),p},zf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sS=function(e){return[e.deltaX,e.deltaY]},aS=function(e){return e&&"current"in e?e.current:e},SL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},CL=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},kL=0,zl=[];function _L(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(kL++)[0],s=f.useState(y6)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Vv([e.lockRef.current],(e.shards||[]).map(aS),!0).filter(Boolean);return y.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback(function(y,S){if("touches"in y&&y.touches.length===2)return!a.current.allowPinchZoom;var _=zf(y),k=n.current,j="deltaX"in y?y.deltaX:k[0]-_[0],I="deltaY"in y?y.deltaY:k[1]-_[1],E,O=y.target,R=Math.abs(j)>Math.abs(I)?"h":"v";if("touches"in y&&R==="h"&&O.type==="range")return!1;var M=oS(R,O);if(!M)return!0;if(M?E=R:(E=R==="v"?"h":"v",M=oS(R,O)),!M)return!1;if(!r.current&&"changedTouches"in y&&(j||I)&&(r.current=E),!E)return!0;var A=r.current||E;return wL(A,S,y,A==="h"?j:I,!0)},[]),d=f.useCallback(function(y){var S=y;if(!(!zl.length||zl[zl.length-1]!==s)){var _="deltaY"in S?sS(S):zf(S),k=t.current.filter(function(E){return E.name===S.type&&E.target===S.target&&SL(E.delta,_)})[0];if(k&&k.should){S.cancelable&&S.preventDefault();return}if(!k){var j=(a.current.shards||[]).map(aS).filter(Boolean).filter(function(E){return E.contains(S.target)}),I=j.length>0?c(S,j[0]):!a.current.noIsolation;I&&S.cancelable&&S.preventDefault()}}},[]),p=f.useCallback(function(y,S,_,k){var j={name:y,delta:S,target:_,should:k};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(I){return I!==j})},1)},[]),h=f.useCallback(function(y){n.current=zf(y),r.current=void 0},[]),m=f.useCallback(function(y){p(y.type,sS(y),y.target,c(y,e.lockRef.current))},[]),v=f.useCallback(function(y){p(y.type,zf(y),y.target,c(y,e.lockRef.current))},[]);f.useEffect(function(){return zl.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,$l),document.addEventListener("touchmove",d,$l),document.addEventListener("touchstart",h,$l),function(){zl=zl.filter(function(y){return y!==s}),document.removeEventListener("wheel",d,$l),document.removeEventListener("touchmove",d,$l),document.removeEventListener("touchstart",h,$l)}},[]);var b=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(s,{styles:CL(o)}):null,b?f.createElement(hL,{gapMode:e.gapMode}):null)}const PL=PT(b6,_L);var C6=f.forwardRef(function(e,t){return f.createElement(fm,Qs({},e,{ref:t,sideCar:PL}))});C6.classNames=fm.classNames;const jL=C6;function IL(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:a,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:p,lockFocusAcrossFrames:h,isOpen:m}=al(),[v,b]=O7();f.useEffect(()=>{!v&&b&&setTimeout(b)},[v,b]);const w=g6(r,m);return i.jsx(V3,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:c,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:h,children:i.jsx(jL,{removeScrollBar:!p,allowPinchZoom:a,enabled:w===1&&s,forwardProps:!0,children:e.children})})}var nd=Ae((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:s,...a}=e,{getDialogProps:c,getDialogContainerProps:d}=al(),p=c(a,t),h=d(o),m=Ct("chakra-modal__content",n),v=Fc(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},w={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:y}=al();return i.jsx(IL,{children:i.jsx(je.div,{...h,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:i.jsx(m6,{preset:y,motionProps:s,className:m,...p,__css:b,children:r})})})});nd.displayName="ModalContent";function Id(e){const{leastDestructiveRef:t,...n}=e;return i.jsx(td,{...n,initialFocusRef:t})}var Ed=Ae((e,t)=>i.jsx(nd,{ref:t,role:"alertdialog",...e})),Ra=Ae((e,t)=>{const{className:
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MF(e){if(Array.isArray(e))return s1(e)}function mS(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 gS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mS(Object(n),!0).forEach(function(r){J6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rd(e,t){return TF(e)||AF(e,t)||Z6(e,t)||DF()}function DF(){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 Z6(e,t){if(e){if(typeof e=="string")return s1(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 s1(e,t)}}function s1(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 AF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw c}}return r}}function TF(e){if(Array.isArray(e))return e}var NF="file-invalid-type",$F="file-too-large",zF="file-too-small",LF="too-many-files",BF=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:NF,message:"File type must be ".concat(n)}},vS=function(t){return{code:$F,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},bS=function(t){return{code:zF,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},FF={code:LF,message:"Too many files"};function eP(e,t){var n=e.type==="application/x-moz-file"||EF(e,t);return[n,n?null:BF(t)]}function tP(e,t,n){if(Ui(e.size))if(Ui(t)&&Ui(n)){if(e.size>n)return[!1,vS(n)];if(e.size<t)return[!1,bS(t)]}else{if(Ui(t)&&e.size<t)return[!1,bS(t)];if(Ui(n)&&e.size>n)return[!1,vS(n)]}return[!0,null]}function Ui(e){return e!=null}function HF(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,s=e.multiple,a=e.maxFiles,c=e.validator;return!s&&t.length>1||s&&a>=1&&t.length>a?!1:t.every(function(d){var p=eP(d,n),h=rd(p,1),m=h[0],v=tP(d,r,o),b=rd(v,1),w=b[0],y=c?c(d):null;return m&&w&&!y})}function Yp(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Bf(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 yS(e){e.preventDefault()}function WF(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function VF(e){return e.indexOf("Edge/")!==-1}function UF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return WF(e)||VF(e)}function Gs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return t.some(function(c){return!Yp(r)&&c&&c.apply(void 0,[r].concat(s)),Yp(r)})}}function GF(){return"showOpenFilePicker"in window}function qF(e){if(Ui(e)){var t=Object.entries(e).filter(function(n){var r=rd(n,2),o=r[0],s=r[1],a=!0;return nP(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.')),a=!1),(!Array.isArray(s)||!s.every(rP))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var o=rd(r,2),s=o[0],a=o[1];return gS(gS({},n),{},J6({},s,a))},{});return[{description:"Files",accept:t}]}return e}function KF(e){if(Ui(e))return Object.entries(e).reduce(function(t,n){var r=rd(n,2),o=r[0],s=r[1];return[].concat(hS(t),[o],hS(s))},[]).filter(function(t){return nP(t)||rP(t)}).join(",")}function XF(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function YF(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function nP(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function rP(e){return/^.*\.[\w]+$/.test(e)}var QF=["children"],JF=["open"],ZF=["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 rH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oH(e){if(Array.isArray(e))return a1(e)}function T0(e,t){return iH(e)||aH(e,t)||oP(e,t)||sH()}function sH(){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 oP(e,t){if(e){if(typeof e=="string")return a1(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 a1(e,t)}}function a1(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 aH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,a,c;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(d){s=!0,c=d}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw c}}return r}}function iH(e){if(Array.isArray(e))return e}function xS(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 dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(n),!0).forEach(function(r){i1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qp(e,t){if(e==null)return{};var n=lH(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 lH(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 Jb=f.forwardRef(function(e,t){var n=e.children,r=Qp(e,QF),o=Zb(r),s=o.open,a=Qp(o,JF);return f.useImperativeHandle(t,function(){return{open:s}},[s]),H.createElement(f.Fragment,null,n(dr(dr({},a),{},{open:s})))});Jb.displayName="Dropzone";var sP={disabled:!1,getFilesFromEvent:xF,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};Jb.defaultProps=sP;Jb.propTypes={children:Ln.func,accept:Ln.objectOf(Ln.arrayOf(Ln.string)),multiple:Ln.bool,preventDropOnDocument:Ln.bool,noClick:Ln.bool,noKeyboard:Ln.bool,noDrag:Ln.bool,noDragEventsBubbling:Ln.bool,minSize:Ln.number,maxSize:Ln.number,maxFiles:Ln.number,disabled:Ln.bool,getFilesFromEvent:Ln.func,onFileDialogCancel:Ln.func,onFileDialogOpen:Ln.func,useFsAccessApi:Ln.bool,autoFocus:Ln.bool,onDragEnter:Ln.func,onDragLeave:Ln.func,onDragOver:Ln.func,onDrop:Ln.func,onDropAccepted:Ln.func,onDropRejected:Ln.func,onError:Ln.func,validator:Ln.func};var l1={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Zb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=dr(dr({},sP),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,a=t.minSize,c=t.multiple,d=t.maxFiles,p=t.onDragEnter,h=t.onDragLeave,m=t.onDragOver,v=t.onDrop,b=t.onDropAccepted,w=t.onDropRejected,y=t.onFileDialogCancel,S=t.onFileDialogOpen,_=t.useFsAccessApi,k=t.autoFocus,j=t.preventDropOnDocument,I=t.noClick,E=t.noKeyboard,O=t.noDrag,R=t.noDragEventsBubbling,M=t.onError,A=t.validator,T=f.useMemo(function(){return KF(n)},[n]),$=f.useMemo(function(){return qF(n)},[n]),Q=f.useMemo(function(){return typeof S=="function"?S:wS},[S]),B=f.useMemo(function(){return typeof y=="function"?y:wS},[y]),V=f.useRef(null),q=f.useRef(null),G=f.useReducer(cH,l1),D=T0(G,2),L=D[0],W=D[1],Y=L.isFocused,ae=L.isFileDialogActive,be=f.useRef(typeof window<"u"&&window.isSecureContext&&_&&GF()),ie=function(){!be.current&&ae&&setTimeout(function(){if(q.current){var Me=q.current.files;Me.length||(W({type:"closeDialog"}),B())}},300)};f.useEffect(functi
|
||
|
`),status:"error"})},[a,s]),m=f.useCallback(async j=>{p({file:j,image_category:"user",is_intermediate:!1,postUploadAction:r,board_id:n})},[n,r,p]),v=f.useCallback((j,I)=>{if(I.length>1){s({title:a("toast.uploadFailed"),description:a("toast.uploadFailedInvalidUploadDesc"),status:"error"});return}I.forEach(E=>{h(E)}),j.forEach(E=>{m(E)})},[a,s,m,h]),{getRootProps:b,getInputProps:w,isDragAccept:y,isDragReject:S,isDragActive:_,inputRef:k}=Zb({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:v,onDragOver:()=>d(!0),disabled:o,multiple:!1});return f.useEffect(()=>{const j=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",j),()=>{document.removeEventListener("paste",j)}},[k]),i.jsxs(Ee,{...b({style:{}}),onKeyDown:j=>{j.key},children:[i.jsx("input",{...w()}),t,i.jsx(ho,{children:_&&c&&i.jsx(Ir.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.1}},exit:{opacity:0,transition:{duration:.1}},children:i.jsx(CH,{isDragAccept:y,isDragReject:S,setIsHandlingUpload:d})},"image-upload-overlay")})]})},PH=f.memo(_H),mn=e=>e.canvas,ir=fe([mn,Kn,go],(e,t,n)=>e.layerState.stagingArea.images.length>0||t==="unifiedCanvas"&&n.isProcessing),jH=e=>e.canvas.layerState.objects.find(D_),IH=r9(e=>{e(A_(!0))},300),Co=()=>(e,t)=>{Kn(t())==="unifiedCanvas"&&IH(e)};var EH=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)}}(),_r=globalThis&&globalThis.__assign||function(){return _r=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},_r.apply(this,arguments)},CS={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},kS={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Ff={width:"20px",height:"20px",position:"absolute"},OH={top:_r(_r({},CS),{top:"-5px"}),right:_r(_r({},kS),{left:void 0,right:"-5px"}),bottom:_r(_r({},CS),{top:void 0,bottom:"-5px"}),left:_r(_r({},kS),{left:"-5px"}),topRight:_r(_r({},Ff),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:_r(_r({},Ff),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:_r(_r({},Ff),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:_r(_r({},Ff),{left:"-10px",top:"-10px",cursor:"nw-resize"})},RH=function(e){EH(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:_r(_r({position:"absolute",userSelect:"none"},OH[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(f.PureComponent),MH=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)}}(),qs=globalThis&&globalThis.__assign||function(){return qs=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},qs.apply(this,arguments)},DH={width:"auto",height:"auto"},Hf=function(e,t,n){return Math.max(Math.min(e,n),t)},_S=function(e,t){return Math.round(e/t)*t},Bl=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 _n(e,t){if(Om(e))for(let n=0;n<e.length&&t(e[n],n,e)!==!1;n++);else e&&_n(Object.keys(e),n=>t(e[n],n,e));return e}function ro(e,t){const n=Ei(t);if(Rs(t)||n){let o=n?"":{};if(e){const s=window.getComputedStyle(e,null);o=n?DS(e,s,t):t.reduce((a,c)=>(a[c]=DS(e,s,c),a),o)}return o}e&&_n(Fo(t),o=>UW(e,o,t[o]))}const xs=(e,t)=>{const{o:n,u:r,_:o}=e;let s=n,a;const c=(h,m)=>{const v=s,b=h,w=m||(r?!r(v,b):v!==b);return(w||o)&&(s=b,a=v),[s,w,a]};return[t?h=>c(t(s,a),h):c,h=>[s,!!h,a]]},Td=()=>typeof window<"u",EP=Td()&&Node.ELEMENT_NODE,{toString:OW,hasOwnProperty:B0}=Object.prototype,Ha=e=>e===void 0,Em=e=>e===null,RW=e=>Ha(e)||Em(e)?`${e}`:OW.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),pi=e=>typeof e=="number",Ei=e=>typeof e=="string",sy=e=>typeof e=="boolean",Os=e=>typeof e=="function",Rs=e=>Array.isArray(e),od=e=>typeof e=="object"&&!Rs(e)&&!Em(e),Om=e=>{const t=!!e&&e.length,n=pi(t)&&t>-1&&t%1==0;return Rs(e)||!Os(e)&&n?t>0&&od(e)?t-1 in e:!0:!1},u1=e=>{if(!e||!od(e)||RW(e)!=="object")return!1;let t;const n="constructor",r=e[n],o=r&&r.prototype,s=B0.call(e,n),a=o&&B0.call(o,"isPrototypeOf");if(r&&!s&&!a)return!1;for(t in e);return Ha(t)||B0.call(e,t)},Jp=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===EP:!1},Rm=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===EP:!1},ay=(e,t,n)=>e.indexOf(t,n),An=(e,t,n)=>(!n&&!Ei(t)&&Om(t)?Array.prototype.push.apply(e,t):e.push(t),e),ll=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{An(n,r)}):_n(e,r=>{An(n,r)}),n)},iy=e=>!!e&&e.length===0,ca=(e,t,n)=>{_n(e,o=>o&&o.apply(void 0,t||[])),!n&&(e.length=0)},Mm=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Fo=e=>e?Object.keys(e):[],pr=(e,t,n,r,o,s,a)=>{const c=[t,n,r,o,s,a];return(typeof e!="object"||Em(e))&&!Os(e)&&(e={}),_n(c,d=>{_n(Fo(d),p=>{const h=d[p];if(e===h)return!0;const m=Rs(h);if(h&&(u1(h)||m)){const v=e[p];let b=v;m&&!Rs(v)?b=[]:!m&&!u1(v)&&(b={}),e[p]=pr(b,h)}else e[p]=h})}),e},ly=e=>{for(const t in e)return!1;return!0},OP=(e,t,n,r)=>{if(Ha(r))return n?n[e]:t;n&&(Ei(r)||pi(r))&&(n[e]=r)},to=(e,t,n)=>{if(Ha(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},wo=(e,t)=>{e&&e.removeAttribute(t)},Ji=(e,t,n,r)=>{if(n){const o=to(e,t)||"",s=new Set(o.split(" "));s[r?"add":"delete"](n);const a=ll(s).join(" ").trim();to(e,t,a)}},MW=(e,t,n)=>{const r=to(e,t)||"";return new Set(r.split(" ")).has(n)},_s=(e,t)=>OP("scrollLeft",0,e,t),ka=(e,t)=>OP("scrollTop",0,e,t),d1=Td()&&Element.prototype,RP=(e,t)=>{const n=[],r=t?Rm(t)?t:null:document;return r?An(n,r.querySelectorAll(e)):n},DW=(e,t)=>{const n=t?Rm(t)?t:null:document;return n?n.querySelector(e):null},Zp=(e,t)=>Rm(e)?(d1.matches||d1.msMatchesSelector).call(e,t):!1,cy=e=>e?ll(e.childNodes):[],Ta=e=>e?e.parentElement:null,Yl=(e,t)=>{if(Rm(e)){const n=d1.closest;if(n)return n.call(e,t);do{if(Zp(e,t))return e;e=Ta(e)}while(e)}return null},AW=(e,t,n)=>{const r=e&&Yl(e,t),o=e&&DW(n,r),s=Yl(o,t)===r;return r&&o?r===e||o===e||s&&Yl(Yl(e,n),t)!==r:!1},uy=(e,t,n)=>{if(n&&e){let r=t,o;Om(n)?(o=document.createDocumentFragment(),_n(n,s=>{s===r&&(r=s.previousSibling),o.appendChild(s)})):o=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(o,r||null)}},ts=(e,t)=>{uy(e,null,t)},TW=(e,t)=>{uy(Ta(e),e,t)},OS=(e,t)=>{uy(Ta(e),e&&e.nextSibling,t)},oa=e=>{if(Om(e))_n(ll(e),t=>oa(t));else if(e){const t=Ta(e);t&&t.removeChild(e)}},Zi=e=>{const t=document.createElement("div");return e&&to(t,"class",e),t},MP=e=>{const t=Zi();return t.innerHTML=e.trim(),_n(cy(t),n=>oa(n))},f1=e=>e.charAt(0).toUpperCase()+e.slice(1),NW=()=>Zi().style,$W=["-webkit-","-moz-","-o-","-ms-"],zW=["WebKit","Moz","O","MS","webkit","moz","o","ms"],F0={},H0={},LW=e=>{let t=H0[e];if(Mm(H0,e))return t;const n=f1(e),r=NW();return _n($W,o=>{const s=o.replace(/-/g,"");return!(t=[e,o+e,s+n,f1(s)+n].find(c=>r[c]!==void 0))}),H0[e]=t||""},Nd=e=>{if(Td()){let t=F0[e]||window[e];return Mm(F0,e)||(_n(zW,n=>(t=t||window[n+f1(e)],!t)),F0[e]=t),t}},BW=Nd("MutationObserver"),RS=Nd("IntersectionObserver"),Ql=Nd("ResizeObserver"),DP=Nd("cancelAnimationFrame"),A
|
||
|
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:Je,mutationThunk:jt,api:J,serializeQueryArgs:ut,context:he}),Or=sn.buildInitiateQuery,Qn=sn.buildInitiateMutation;return $r(J.util,{getRunningOperationPromises:sn.getRunningOperationPromises,getRunningOperationPromise:sn.removalWarning,getRunningMutationThunk:sn.getRunningMutationThunk,getRunningMutationsThunk:sn.getRunningMutationsThunk,getRunningQueryThunk:sn.getRunningQueryThunk,getRunningQueriesThunk:sn.getRunningQueriesThunk}),{name:ps,injectEndpoint:function(It,In){var Rn,Jn=J;(Rn=Jn.endpoints)[It]!=null||(Rn[It]={}),oe(In)?$r(Jn.endpoints[It],{name:It,select:Gt(It,In),initiate:Or(It,In)},Zt(Je,It)):In.type===U.mutation&&$r(Jn.endpoints[It],{name:It,select:un(),initiate:Qn(It)},Zt(jt,It))}}}}},zs=Qe(da())})(sj);oj.exports=sj;var oo=oj.exports;const QV=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||!Su(t)?null:i.jsxs(i.Fragment,{children:[i.jsx(Ye,{children:n}),i.jsxs(Rb,{sx:{paddingInlineStart:6},children:[t.isInitialImage&&i.jsx(wa,{children:"Image to Image"}),t.isCanvasImage&&i.jsx(wa,{children:"Unified Canvas"}),t.isControlNetImage&&i.jsx(wa,{children:"ControlNet"}),t.isNodesImage&&i.jsx(wa,{children:"Node Editor"})]}),i.jsx(Ye,{children:r})]})},aj=f.memo(QV),JV=e=>{const{boardToDelete:t,setBoardToDelete:n}=e,{t:r}=ye(),o=z(k=>k.config.canRestoreDeletedImagesFromBin),{currentData:s,isFetching:a}=L7((t==null?void 0:t.board_id)??oo.skipToken),c=f.useMemo(()=>fe([Xe],k=>{const j=(s??[]).map(E=>B7(k,E));return{imageUsageSummary:{isInitialImage:Su(j,E=>E.isInitialImage),isCanvasImage:Su(j,E=>E.isCanvasImage),isNodesImage:Su(j,E=>E.isNodesImage),isControlNetImage:Su(j,E=>E.isControlNetImage)}}}),[s]),[d,{isLoading:p}]=F7(),[h,{isLoading:m}]=H7(),{imageUsageSummary:v}=z(c),b=f.useCallback(()=>{t&&(d(t.board_id),n(void 0))},[t,d,n]),w=f.useCallback(()=>{t&&(h(t.board_id),n(void 0))},[t,h,n]),y=f.useCallback(()=>{n(void 0)},[n]),S=f.useRef(null),_=f.useMemo(()=>m||p||a,[m,p,a]);return t?i.jsx(Id,{isOpen:!!t,onClose:y,leastDestructiveRef:S,isCentered:!0,children:i.jsx(Da,{children:i.jsxs(Ed,{children:[i.jsxs(Ma,{fontSize:"lg",fontWeight:"bold",children:["Delete ",t.board_name]}),i.jsx(Aa,{children:i.jsxs(F,{direction:"column",gap:3,children:[a?i.jsx(ym,{children:i.jsx(F,{sx:{w:"full",h:32}})}):i.jsx(aj,{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."}),i.jsx(Ye,{children:"Deleted boards cannot be restored."}),i.jsx(Ye,{children:r(o?"gallery.deleteImageBin":"gallery.deleteImagePermanent")})]})}),i.jsx(Ra,{children:i.jsxs(F,{sx:{justifyContent:"space-between",width:"full",gap:2},children:[i.jsx(en,{ref:S,onClick:y,children:"Cancel"}),i.jsx(en,{colorScheme:"warning",isLoading:_,onClick:b,children:"Delete Board Only"}),i.jsx(en,{colorScheme:"error",isLoading:_,onClick:w,children:"Delete Board and Images"})]})})]})})}):null},ZV=f.memo(JV),ij=Ae((e,t)=>{const{role:n,tooltip:r="",tooltipProps:o,isChecked:s,...a}=e;return i.jsx(wn,{label:r,hasArrow:!0,...o,...o!=null&&o.placement?{placement:o.placement}:{placement:"top"},children:i.jsx(Ca,{ref:t,role:n,colorScheme:s?"accent":"base",...a})})});ij.displayName="IAIIconButton";const Le=f.memo(ij),eU="My Board",tU=()=>{const[e,{isLoading:t}]=W7(),n=f.useCallback(()=>{e(eU)},[e]);return i.jsx(Le,{icon:i.jsx(ml,{}),isLoading:t,tooltip:"Add Board","aria-label":"Add Board",onClick:n,size:"sm"})};var nC={path:i.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[i.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),i.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),i.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},l
|
||
|
* @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 Fie=function(t){var n={},r=f,o=xp,s=Object.assign;function a(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,g=1;g<arguments.length;g++)u+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,d=Symbol.for("react.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),w=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),E=Symbol.iterator;function O(l){return l===null||typeof l!="object"?null:(l=E&&l[E]||l["@@iterator"],typeof l=="function"?l:null)}function R(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case h:return"Fragment";case p:return"Portal";case v:return"Profiler";case m:return"StrictMode";case S:return"Suspense";case _:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case w:return(l.displayName||"Context")+".Consumer";case b:return(l._context.displayName||"Context")+".Provider";case y:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case k:return u=l.displayName||null,u!==null?u:R(l.type)||"Memo";case j:u=l._payload,l=l._init;try{return R(l(u))}catch{}}return null}function M(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R(u);case 8:return u===m?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function A(l){var u=l,g=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,u.flags&4098&&(g=u.return),l=u.return;while(l)}return u.tag===3?g:null}function T(l){if(A(l)!==l)throw Error(a(188))}function $(l){var u=l.alternate;if(!u){if(u=A(l),u===null)throw Error(a(188));return u!==l?null:l}for(var g=l,x=u;;){var C=g.return;if(C===null)break;var P=C.alternate;if(P===null){if(x=C.return,x!==null){g=x;continue}break}if(C.child===P.child){for(P=C.child;P;){if(P===g)return T(C),l;if(P===x)return T(C),u;P=P.sibling}throw Error(a(188))}if(g.return!==x.return)g=C,x=P;else{for(var N=!1,Z=C.child;Z;){if(Z===g){N=!0,g=C,x=P;break}if(Z===x){N=!0,x=C,g=P;break}Z=Z.sibling}if(!N){for(Z=P.child;Z;){if(Z===g){N=!0,g=P,x=C;break}if(Z===x){N=!0,x=P,g=C;break}Z=Z.sibling}if(!N)throw Error(a(189))}}if(g.alternate!==x)throw Error(a(190))}if(g.tag!==3)throw Error(a(188));return g.stateNode.current===g?l:u}function Q(l){return l=$(l),l!==null?B(l):null}function B(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=B(l);if(u!==null)return u;l=l.sibling}return null}function V(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){if(l.tag!==4){var u=V(l);if(u!==null)return u}l=l.sibling}return null}var q=Array.isArray,G=t.getPublicInstance,D=t.getRootHostContext,L=t.getChildHostContext,W=t.prepareForCommit,Y=t.resetAfterCommit,ae=t.createInstance,be=t.appendInitialChild,ie=t.finalizeInitialChildren,X=t.prepareUpdate,K=t.shouldSetTextContent,U=t.createTextInstance,se=t.scheduleTimeout,re=t.cancelTimeout,oe=t.noTimeout,pe=t.isPrimaryRenderer,le=t.supportsMutation,ge=t.supportsPersistence,ke=t.supportsHydration,xe=t.ge
|
||
|
`+Et+l}var qt=!1;function tn(l,u){if(!l||qt)return"";qt=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(Ne){var x=Ne}Reflect.construct(l,[],u)}else{try{u.call()}catch(Ne){x=Ne}l.call(u.prototype)}else{try{throw Error()}catch(Ne){x=Ne}l()}}catch(Ne){if(Ne&&x&&typeof Ne.stack=="string"){for(var C=Ne.stack.split(`
|
||
|
`),P=x.stack.split(`
|
||
|
`),N=C.length-1,Z=P.length-1;1<=N&&0<=Z&&C[N]!==P[Z];)Z--;for(;1<=N&&0<=Z;N--,Z--)if(C[N]!==P[Z]){if(N!==1||Z!==1)do if(N--,Z--,0>Z||C[N]!==P[Z]){var ue=`
|
||
|
`+C[N].replace(" at new "," at ");return l.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",l.displayName)),ue}while(1<=N&&0<=Z);break}}}finally{qt=!1,Error.prepareStackTrace=g}return(l=l?l.displayName||l.name:"")?Nt(l):""}var Zt=Object.prototype.hasOwnProperty,Ut=[],Be=-1;function yt(l){return{current:l}}function Mt(l){0>Be||(l.current=Ut[Be],Ut[Be]=null,Be--)}function Wt(l,u){Be++,Ut[Be]=l.current,l.current=u}var jn={},Gt=yt(jn),un=yt(!1),sn=jn;function Or(l,u){var g=l.type.contextTypes;if(!g)return jn;var x=l.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===u)return x.__reactInternalMemoizedMaskedChildContext;var C={},P;for(P in g)C[P]=u[P];return x&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=C),C}function Qn(l){return l=l.childContextTypes,l!=null}function It(){Mt(un),Mt(Gt)}function In(l,u,g){if(Gt.current!==jn)throw Error(a(168));Wt(Gt,u),Wt(un,g)}function Rn(l,u,g){var x=l.stateNode;if(u=u.childContextTypes,typeof x.getChildContext!="function")return g;x=x.getChildContext();for(var C in x)if(!(C in u))throw Error(a(108,M(l)||"Unknown",C));return s({},g,x)}function Jn(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||jn,sn=Gt.current,Wt(Gt,l),Wt(un,un.current),!0}function mr(l,u,g){var x=l.stateNode;if(!x)throw Error(a(169));g?(l=Rn(l,u,sn),x.__reactInternalMemoizedMergedChildContext=l,Mt(un),Mt(Gt),Wt(Gt,l)):Mt(un),Wt(un,g)}var Tn=Math.clz32?Math.clz32:Sn,Nn=Math.log,dn=Math.LN2;function Sn(l){return l>>>=0,l===0?32:31-(Nn(l)/dn|0)|0}var En=64,vn=4194304;function bn(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 Ke(l,u){var g=l.pendingLanes;if(g===0)return 0;var x=0,C=l.suspendedLanes,P=l.pingedLanes,N=g&268435455;if(N!==0){var Z=N&~C;Z!==0?x=bn(Z):(P&=N,P!==0&&(x=bn(P)))}else N=g&~C,N!==0?x=bn(N):P!==0&&(x=bn(P));if(x===0)return 0;if(u!==0&&u!==x&&!(u&C)&&(C=x&-x,P=u&-u,C>=P||C===16&&(P&4194240)!==0))return u;if(x&4&&(x|=g&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=x;0<u;)g=31-Tn(u),C=1<<g,x|=l[g],u&=~C;return x}function Ot(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function St(l,u){for(var g=l.suspendedLanes,x=l.pingedLanes,C=l.expirationTimes,P=l.pendingLanes;0<P;){var N=31-Tn(P),Z=1<<N,ue=C[N];ue===-1?(!(Z&g)||Z&x)&&(C[N]=Ot(Z,u)):ue<=u&&(l.expiredLanes|=Z),P&=~Z}}function at(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function wt(){var l=En;return En<<=1,!(En&4194240)&&(En=64),l}function Bt(l){for(var u=[],g=0;31>g;g++)u.push(l);return u}function mt(l,u,g){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Tn(u),l[u]=g}function ot(l,u){var g=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var x=l.eventTimes;for(l=l.expirationTimes;0<g;){var C=31-Tn(g),P=1<<C;u[C]=0,x[C]=-1,l[C]=-1,g&=~P}}function Re(l,u){var g=l.entangledLanes|=u;for(l=l.entanglements;g;){var x=31-Tn(g),C=1<<x;C&u|l[x]&u&&(l[x]|=u),g&=~C}}var Ie=0;function De(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var We=o.unstable_scheduleCallback,tt=o.unstable_cancelCallback,Dt=o.unsta
|
||
|
Error generating stack: `+P.message+`
|
||
|
`+P.stack}return{value:l,source:u,stack:C,digest:null}}function Mg(l,u,g){return{value:l,source:null,stack:g??null,digest:u??null}}function Dg(l,u){try{console.error(u.value)}catch(g){setTimeout(function(){throw g})}}var NO=typeof WeakMap=="function"?WeakMap:Map;function Jx(l,u,g){g=ha(-1,g),g.tag=3,g.payload={element:null};var x=u.value;return g.callback=function(){wf||(wf=!0,Zg=x),Dg(l,u)},g}function Zx(l,u,g){g=ha(-1,g),g.tag=3;var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var C=u.value;g.payload=function(){return x(C)},g.callback=function(){Dg(l,u)}}var P=l.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(g.callback=function(){Dg(l,u),typeof x!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var N=u.stack;this.componentDidCatch(u.value,{componentStack:N!==null?N:""})}),g}function e2(l,u,g){var x=l.pingCache;if(x===null){x=l.pingCache=new NO;var C=new Set;x.set(u,C)}else C=x.get(u),C===void 0&&(C=new Set,x.set(u,C));C.has(g)||(C.add(g),l=YO.bind(null,l,u,g),u.then(l,l))}function t2(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function n2(l,u,g,x,C){return l.mode&1?(l.flags|=65536,l.lanes=C,l):(l===u?l.flags|=65536:(l.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(u=ha(-1,1),u.tag=2,Ga(g,u,1))),g.lanes|=1),l)}var $O=c.ReactCurrentOwner,vo=!1;function uo(l,u,g,x){u.child=l===null?Ex(u,null,g,x):_l(u,l.child,g,x)}function r2(l,u,g,x,C){g=g.render;var P=u.ref;return kl(u,C),x=Pg(l,u,g,x,P,C),g=jg(),l!==null&&!vo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,ma(l,u,C)):(Zn&&g&&ig(u),u.flags|=1,uo(l,u,x,C),u.child)}function o2(l,u,g,x,C){if(l===null){var P=g.type;return typeof P=="function"&&!s0(P)&&P.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(u.tag=15,u.type=P,s2(l,u,P,x,C)):(l=jf(g.type,null,x,u,u.mode,C),l.ref=u.ref,l.return=u,u.child=l)}if(P=l.child,!(l.lanes&C)){var N=P.memoizedProps;if(g=g.compare,g=g!==null?g:Kd,g(N,x)&&l.ref===u.ref)return ma(l,u,C)}return u.flags|=1,l=Qa(P,x),l.ref=u.ref,l.return=u,u.child=l}function s2(l,u,g,x,C){if(l!==null){var P=l.memoizedProps;if(Kd(P,x)&&l.ref===u.ref)if(vo=!1,u.pendingProps=x=P,(l.lanes&C)!==0)l.flags&131072&&(vo=!0);else return u.lanes=l.lanes,ma(l,u,C)}return Ag(l,u,g,x,C)}function a2(l,u,g){var x=u.pendingProps,C=x.children,P=l!==null?l.memoizedState:null;if(x.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wt(Ol,No),No|=g;else{if(!(g&1073741824))return l=P!==null?P.baseLanes|g:g,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,Wt(Ol,No),No|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=P!==null?P.baseLanes:g,Wt(Ol,No),No|=x}else P!==null?(x=P.baseLanes|g,u.memoizedState=null):x=g,Wt(Ol,No),No|=x;return uo(l,u,C,g),u.child}function i2(l,u){var g=u.ref;(l===null&&g!==null||l!==null&&l.ref!==g)&&(u.flags|=512,u.flags|=2097152)}function Ag(l,u,g,x,C){var P=Qn(g)?sn:Gt.current;return P=Or(u,P),kl(u,C),g=Pg(l,u,g,x,P,C),x=jg(),l!==null&&!vo?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,ma(l,u,C)):(Zn&&x&&ig(u),u.flags|=1,uo(l,u,g,C),u.child)}function l2(l,u,g,x,C){if(Qn(g)){var P=!0;Jn(u)}else P=!1;if(kl(u,C),u.stateNode===null)cf(l,u),_x(u,g,x),yg(u,g,x,C),x=!0;else if(l===null){var N=u.stateNode,Z=u.memoizedProps;N.props=Z;var ue=N.context,Ne=g.contextType;typeof Ne=="object"&&Ne!==null?Ne=Vo(Ne):(Ne=Qn(g)?sn:Gt.current,Ne=Or(u,Ne));var gt=g.getDerivedStateFromProps,Yt=typeof gt=="function"||typeof N.getSnapshotBeforeUpdate=="function";Yt||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(Z!==x||ue!==Ne)&&Px(u,N,x,Ne),Ua=!1;var it=u.memoizedState;N.state=it,Jd(u,x,N,C),ue=u.memoizedState,Z!==x||it!==ue||un.current||Ua?(typeof gt=="function"&&(bg(u,g,gt,x),ue=u.memoizedState),(Z=Ua||kx(u,g,Z,x,it,ue,Ne))?(Yt||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMo
|
||
|
`+(x.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+l.join(" > ")}return null},n.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return G(l.child.stateNode);default:return l.child.stateNode}},n.injectIntoDevTools=function(l){if(l={bundleType:l.bundleType,version:l.version,rendererPackageName:l.rendererPackageName,rendererConfig:l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:c.ReactCurrentDispatcher,findHostInstanceByFiber:n7,findFiberByHostInstance:l.findFiberByHostInstance||r7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled||!u.supportsFiber)l=!0;else{try{Xn=u.inject(l),gn=u}catch{}l=!!u.checkDCE}}return l},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(l,u,g,x){if(!ct)throw Error(a(363));l=Kg(l,u);var C=Tt(l,g,x).disconnect;return{disconnect:function(){C()}}},n.registerMutableSourceForHydration=function(l,u){var g=u._getVersion;g=g(u._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[u,g]:l.mutableSourceEagerHydrationData.push(u,g)},n.runWithPriority=function(l,u){var g=Ie;try{return Ie=l,u()}finally{Ie=g}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(l,u,g,x){var C=u.current,P=eo(),N=Xa(C);return g=L2(g),u.context===null?u.context=g:u.pendingContext=g,u=ha(P,N),u.payload={element:l},x=x===void 0?null:x,x!==null&&(u.callback=x),l=Ga(C,u,N),l!==null&&(qo(l,C,N,P),Qd(l,C,N)),N},n};cO.exports=Fie;var Hie=cO.exports;const Wie=pd(Hie);var uO={exports:{}},wl={};/**
|
||
|
* @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.
|
||
|
*/wl.ConcurrentRoot=1;wl.ContinuousEventPriority=4;wl.DefaultEventPriority=16;wl.DiscreteEventPriority=1;wl.IdleEventPriority=536870912;wl.LegacyRoot=0;uO.exports=wl;var dO=uO.exports;const i_={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let l_=!1,c_=!1;const ux=".react-konva-event",Vie=`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
|
||
|
`,Uie=`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
|
||
|
`,Gie={};function ag(e,t,n=Gie){if(!l_&&"zIndex"in t&&(console.warn(Uie),l_=!0),!c_&&t.draggable){var r=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(Vie),c_=!0)}for(var s in n)if(!i_[s]){var a=s.slice(0,2)==="on",c=n[s]!==t[s];if(a&&c){var d=s.substr(2).toLowerCase();d.substr(0,7)==="content"&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),e.off(d,n[s])}var p=!t.hasOwnProperty(s);p&&e.setAttr(s,void 0)}var h=t._useStrictMode,m={},v=!1;const b={};for(var s in t)if(!i_[s]){var a=s.slice(0,2)==="on",w=n[s]!==t[s];if(a&&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])}!a&&(t[s]!==n[s]||h&&t[s]!==e.getAttr(s))&&(v=!0,m[s]=t[s])}v&&(e.setAttrs(m),Ai(e));for(var d in b)e.on(d+ux,b[d])}function Ai(e){if(!tD.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const fO={},qie={};ud.Node.prototype._applyProps=ag;function Kie(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),Ai(e)}function Xie(e,t,n){let r=ud[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=ud.Group);const o={},s={};for(var a in t){var c=a.slice(0,2)==="on";c?s[a]=t[a]:o[a]=t[a]}const d=new r(o);return ag(d,s),d}function Yie(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Qie(e,t,n){return!1}function Jie(e){return e}function Zie(){return null}function ele(){return null}function tle(e,t,n,r){return qie}function nle(){}function rle(e){}function ole(e,t){return!1}function sle(){return fO}function ale(){return fO}const ile=setTimeout,lle=clearTimeout,cle=-1;function ule(e,t){return!1}const dle=!1,fle=!0,ple=!0;function hle(e,t){t.parent===e?t.moveToTop():e.add(t),Ai(e)}function mle(e,t){t.parent===e?t.moveToTop():e.add(t),Ai(e)}function pO(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Ai(e)}function gle(e,t,n){pO(e,t,n)}function vle(e,t){t.destroy(),t.off(ux),Ai(e)}function ble(e,t){t.destroy(),t.off(ux),Ai(e)}function yle(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function xle(e,t,n){}function wle(e,t,n,r,o){ag(e,o,r)}function Sle(e){e.hide(),Ai(e)}function Cle(e){}function kle(e,t){(t.visible==null||t.visible)&&e.show()}function _le(e,t){}function Ple(e){}function jle(){}const Ile=()=>dO.DefaultEventPriority,Ele=Object.freeze(Object.defineProperty({__proto__:null,appendChild:hle,appendChildToContainer:mle,appendInitialChild:Kie,cancelTimeout:lle,clearContainer:Ple,commitMount:xle,commitTextUpdate:yle,commitUpdate:wle,createInstance:Xie,createTextInstance:Yie,detachDeletedInstance:jle,finalizeInitialChildren:Qie,getChildHostContext:ale,getCurrentEventPriority:Ile,getPublicInstance:Jie,getRootHostContext:sle,hideInstance:Sle,hideTextInstance:Cle,idlePriority:xp.unstable_IdlePriority,insertBefore:pO,insertInContainerBefore:gle,isPrimaryRenderer:dle,noTimeout:cle,now:xp.unstable_now,prepareForCommit:Zie,preparePortalMount:ele,prepareUpdate:tle,removeChild:vle,removeChildFromContainer:ble,resetAfterCommit:nle,resetTextContent:rle,run:xp.unstable_runWithPriority,scheduleTimeout:ile,shouldDeprioritizeSubtree:ole,shouldSetTextContent:ule,supportsMutation:ple,unhideInstance:kle,unhideTextInstance:_le,warnsIfNotActing:fle},Symbol.toStringTag,{value:"Module"}));var Ole=Object.defineProperty,Rle=Object.defineProperties,Mle=Object.getOwnPropertyDescriptors,u_=Object.getOwnPropertySymbols,Dle=Object.prototype.hasOwnProperty,Ale=Object.prototype.propertyIsEnumerable,d_=(e,t,n)=>t in e?Ole(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f_=(e,t)=>{for(var n in t||(t={}))Dle.call(t,n)&&d_(e,n,t[n]);if(u_)for(var n of u_(t))Ale.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),cce=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:o,stageScale:s}=z(lce),[a,c]=f.useState(null),[d,p]=f.useState(0),h=f.useRef(null),m=f.useCallback(()=>{p(d+1),setTimeout(m,500)},[d]);return f.useEffect(()=>{if(a)return;const v=new Image;v.onload=()=>{c(v)},v.src=m_(n)},[a,n]),f.useEffect(()=>{a&&(a.src=m_(n))},[a,n]),f.useEffect(()=>{const v=setInterval(()=>p(b=>(b+1)%5),50);return()=>clearInterval(v)},[]),!a||!Dl(r.x)||!Dl(r.y)||!Dl(s)||!Dl(o.width)||!Dl(o.height)?null:i.jsx(aa,{ref:h,offsetX:r.x/s,offsetY:r.y/s,height:o.height/s,width:o.width/s,fillPatternImage:a,fillPatternOffsetY:Dl(d)?d:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/s,y:1/s},listening:!0,globalCompositeOperation:"source-in",...t})},uce=fe([mn],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Jt}}),dce=e=>{const{...t}=e,{objects:n}=z(uce);return i.jsx($a,{listening:!1,...t,children:n.filter(hD).map((r,o)=>i.jsx(Qh,{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 Vi=f,fce=function(t,n,r){const o=Vi.useRef("loading"),s=Vi.useRef(),[a,c]=Vi.useState(0),d=Vi.useRef(),p=Vi.useRef(),h=Vi.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),Vi.useLayoutEffect(function(){if(!t)return;var m=document.createElement("img");function v(){o.current="loaded",s.current=m,c(Math.random())}function b(){o.current="failed",s.current=void 0,c(Math.random())}return m.addEventListener("load",v),m.addEventListener("error",b),n&&(m.crossOrigin=n),r&&(m.referrerPolicy=r),m.src=t,function(){m.removeEventListener("load",v),m.removeEventListener("error",b)}},[t,n,r]),[s.current,o.current]};const pce=pd(fce),yO=e=>{const{width:t,height:n,x:r,y:o,imageName:s}=e.canvasImage,{currentData:a,isError:c}=os(s??oo.skipToken),[d]=pce((a==null?void 0:a.image_url)??"",mD.get()?"use-credentials":"anonymous");return c?i.jsx(aa,{x:r,y:o,width:t,height:n,fill:"red"}):i.jsx(vO,{x:r,y:o,image:d,listening:!1})},hce=fe([mn],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Jt}}),mce=()=>{const{objects:e}=z(hce);return e?i.jsx($a,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(D_(t))return i.jsx(yO,{canvasImage:t},n);if(gD(t)){const r=i.jsx(Qh,{points:t.points,stroke:t.color?nl(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?i.jsx($a,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(vD(t))return i.jsx(aa,{x:t.x,y:t.y,width:t.width,height:t.height,fill:nl(t.color)},n);if(bD(t))return i.jsx(aa,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},gce=fe([mn],e=>{const{layerState:t,shouldShowStagingImage:n,shouldShowStagingOutline:r,boundingBoxCoordinates:{x:o,y:s},boundingBoxDimensions:{width:a,height:c}}=e,{selectedImageIndex:d,images:p}=t.stagingArea;return{currentStagingAreaImage:p.length>0&&d!==void 0?p[d]:void 0,isOnFirstImage:d===0,isOnLastImage:d===p.length-1,shouldShowStagingImage:n,shouldShowStagingOutline:r,x:o,y:s,width:a,height:c}},{memoizeOptions:{resultEqualityCheck:Jt}}),vce=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:o,x:s,y:a,width:c,height:d}=z(gce);return i.jsxs($a,{...t,children:[r&&n&&i.jsx(yO,{canvasImage:n}),o&&i.jsxs($a,{children:[i.jsx(aa,{x:s,y:a,width:c,height:d,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),i.jsx(aa,{x:s,y:a,width:c,height:d,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},bce=fe([mn],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n,sessionId:r}},shouldShowSta
|