From 7856722ae5e3488c3fd7ac57214db0d6add8c595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Wed, 17 Apr 2024 15:54:54 +0200 Subject: [PATCH] Upgrade penpot.js to 2.0.2 (#40) * structure for fills * structure for fills in text and improvements * fixes * upgrade lib penpot to 2.0.2 --- ui-src/lib/penpot.js | 138 +++++++++++++++++++++---------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/ui-src/lib/penpot.js b/ui-src/lib/penpot.js index 98897e1..7498fa5 100644 --- a/ui-src/lib/penpot.js +++ b/ui-src/lib/penpot.js @@ -3772,7 +3772,7 @@ c),d])),hS)},qra=function(a,b){var c=$f.j(function(h){return fS?fS(h,b):gS(h,b)} b);case "bool":return qra(c,b);case "rect":case "circle":case "image":case "text":a:switch(d instanceof C?d.aa:null){case "circle":a=mra(c);break a;default:a=nra(c)}b=function(){var q=AR.j(c,SB.yd());q=g(yR.W(c))?OB(q,DP(-1,1)):q;return g(zR.W(c))?OB(q,DP(1,-1)):q}();var m=null!=b?ZC(a,TB(mQ(c),b)):a;return bm(function(){var q=H.ba(H.ba(c,P,XB),ER,m);return t.j(kS,d)?H.ba(q,lS,h):q}(),hS);default:return c}},kqa=function(a,b){var c=gg.cb($f.W(If(z,b)),kg.W(gg.j(pb,OQ)),Vj.W(mS),x([$f.W(function(d){return fS(d, b)}),$f.W(ER)]));c=eh.ba(I,c,GQ.W(a));return NR(iS.W(a),c)},PEa=function(a,b){return Ul.ba(a,Hq,function(c){return dp.j(function(d){return Ul.ea(Ul.ea(Ul.ea(Ul.ea(d,nS,QY,b),oS,QY,b),pS,QY,b),qS,QY,b)},c)})},QEa=function(a,b){return Ul.ba(a,rS,function(c){return dp.j(function(d){return Ul.ea(d,sS,QY,b)},c)})},uS=function(a,b){return tS(le,a,b)},tS=function(a,b,c){return Ov(function(d){var h=(h=Ld(d))?a.W?a.W(d):a(d):h;return g(h)?b.W?b.W(d):b(d):d},c)},FF=function(a,b){return n(kg.j(a,jg(Ld,Hm,b)))}, Xf=function(a){return"string"===typeof ZH.W(a)&&hj.j(ZH.W(a),"")},Yf=function(a){return t.j("paragraph",P.W(a))},PR=function(a){return RQ.W(a)&&t.j(vS,wS.W(a))},VR=function(a){return RQ.W(a)&&t.j(xS,wS.W(a))},WR=function(a){var b=RQ.W(a);return b?(a=wS.W(a),t.j(vS,a)||t.j(xS,a)):b},XG=function(a){a=F(a);var b=z.j(a,yS);a=function(){var d=Mj(zS.W(b),0);return g(d)?d:0}();var c=function(){var d=Mj(AS.W(b),0);return g(d)?d:0}();return new J(null,2,5,M,[a,c],null)},iH=function(a){var b=F(a);a=z.j(b,BS); -var c=F(a),d=z.j(c,CS),h=z.j(c,DS);a=z.j(c,ES);c=z.j(c,FS);b=z.j(b,GS);d=g(d)?d:0;h=g(h)?h:0;a=g(a)?a:0;c=g(c)?c:0;return t.j(b,HS)?new J(null,4,5,M,[d,h,a,c],null):new J(null,4,5,M,[d,h,d,h],null)},vH=function(a){a=F(a);a=z.j(a,JS);return t.j(KS,a)||t.j(LS,a)},bT=function(a){a=MS.W(a);return g(a)?a:0},rra=function(a,b,c){var d=y(b,0,null);b=y(b,1,null);var h=y(c,0,null);c=y(c,1,null);return bT(b)>bT(c)?1:bT(b)h;return m?a: +var c=F(a),d=z.j(c,CS),h=z.j(c,DS);a=z.j(c,ES);c=z.j(c,FS);b=z.j(b,GS);d=g(d)?d:0;h=g(h)?h:0;a=g(a)?a:0;c=g(c)?c:0;return t.j(b,HS)?new J(null,4,5,M,[d,h,a,c],null):new J(null,4,5,M,[d,h,d,h],null)},ARa=function(a){a=F(a);a=z.j(a,JS);return t.j(KS,a)||t.j(LS,a)},bT=function(a){a=MS.W(a);return g(a)?a:0},rra=function(a,b,c){var d=y(b,0,null);b=y(b,1,null);var h=y(c,0,null);c=y(c,1,null);return bT(b)>bT(c)?1:bT(b)h;return m?a: m}())?1:dh?-1:0},sra=function(a,b){function c(d){return t.j(P.W(d),NS)?Ul.ea(d,Gl,QY,b):d}return Ul.ba(Ul.ba(a,OS,function(d){return dp.j(c,d)}),PS,function(d){return dp.j(c,d)})},ura=function(a){var b=F(new f(null,1,[QS,!0],null)),c=z.ba(b,QS,!1);b=z.ba(b,tra,!1);b=g(b)?If(Vj,gg.j(Fd,GQ)):le;c=x([QS,c]);var d=F(a);a=z.j(d,RS);d=z.j(d,SS);c=F(c);c=z.ba(c,QS,!1);d=t.j(d,pJ)?ji(pJ,Oo):ji(Oo,pJ);c=g(c)?If(jI,gg.j(d,vd)):le;a=$f.j(vd,c.W?c.W(a):c(a));return b.W?b.W(a):b(a)},TS=function(a,b){return Ul.ea(a, RS,Qca,function(c){return Ul.ba(c,GQ,function(d){return eh.ba(I,Pf(b),d)})})},IF=function(a,b,c,d,h,m,q,r){this.we=a;this.ne=b;this.je=c;this.Te=d;this.Je=h;this.og=m;this.Vd=q;this.ua=r;this.Qc=2230716170;this.J=139264},JF=function(a,b,c,d,h,m,q,r,u,v,w){this.order=a;this.type=b;this.Jd=c;this.origin=d;this.transform=h;this.Ka=m;this.rotation=q;this.center=r;this.og=u;this.Vd=v;this.ua=w;this.Qc=2230716170;this.J=139264},US=function(a){return!Rj(a?.x??z.j(a,FP))||!Rj(a?.y??z.j(a,EP))},KF=function(a){return!Rj((a?.x?? z.j(a,FP))-1)||!Rj((a?.y??z.j(a,EP))-1)},lra=function(a,b){if(Fd(a))return new J(null,1,5,M,[b],null);var c=Dd(a),d=c?.type??z.j(c,P),h=b?.type??z.j(b,P);return t.j(VS,d)&&t.j(VS,h)?(d=c?.Jd??z.j(c,uo),b=b?.Jd??z.j(b,uo),b=qB(d,b),c=H.ba(c,uo,b),a=Ed(a),US(c?.Jd??z.j(c,uo))?Ae.j(a,c):a):Ae.j(a,b)},NF=function(){return new IF(0,I,I,I,I,null,null,null)},SF=function(a,b){var c=a?a:NF();a=(c?.we??z.j(c,WS))+1;c=H.ba(c,WS,a);return US(b)?Ul.ea(c,XS,lra,new JF(a,VS,b,null,null,null,null,null,null,null, @@ -3931,7 +3931,7 @@ nQ),r=F(c),u=z.j(r,VB);h=z.j(r,Q_);var v=z.j(r,R_),w=z.j(r,S_);r=z.j(r,T_);var A R){var V=F(R);R=z.j(V,Vn);var X=z.j(V,QT);V=z.j(V,ST);N.push(cZ("stop",{key:""+(b??"")+"-stop-"+(R??""),offset:Uo(R,0),stopColor:X,stopOpacity:V}));return N},[],V_.W(c))})},Y_=function(a){var b=a.attr,c=a.shape;a=a.id;var d=bM(UN);a=null!=a?a:""+(Zh(b)??"")+"-"+(d??"");b=z.j(c,b);c={id:a,gradient:b,shape:c};if(null!=b)switch(b=P.W(b),b instanceof C?b.aa:null){case "linear":return cZ(W_,c);case "radial":return cZ(X_,c);default:return null}else return null},Z_=function(a){var b=a.index,c=a["render-id"]; a=a.shape;a=a?.id??z.j(a,T);b=null!=b?"-"+(b??""):"";return cZ("clipPath",{id:"inner-stroke-"+(c??"")+"-"+(a??"")+(b??""),children:cZ("use",{href:"#stroke-shape-"+(c??"")+"-"+(a??"")+(b??"")})})},$_=function(a){var b=a.stroke,c=a.index,d=a["render-id"],h=a.shape;a=h?.id??z.j(h,T);var m=null!=c?"-"+(c??""):"";c="outer-stroke-"+(d??"")+"-"+(a??"")+(m??"");d="#stroke-shape-"+((d??"")+"-"+(a??"")+(m??""));a=function(){var w=FT.j(b,ZS);switch(w instanceof C?w.aa:null){case "center":return sS.j(b,0)/2; case "outer":return sS.j(b,0);default:return 0}}();var q=$sa(h,a),r=cM([$L(h)],function(){return EQ(h)?zT(h):cQ(jQ.W(h))});m=(r?.x??z.j(r,FP))-q;var u=(r?.y??z.j(r,EP))-q,v=(r?.width??z.j(r,VB))+2*q;q=(r?.height??z.j(r,UP))+2*q;return WZ("mask",{id:c,x:m,y:u,width:v,height:q,maskUnits:"userSpaceOnUse",children:[cZ("use",{href:d,style:{fill:"none",stroke:"white",strokeWidth:2*a}}),cZ("use",{href:d,style:{fill:"black",stroke:"none"}})]})},h0=function(a){var b=a.stroke,c=a.index,d=a["render-id"];a="marker-"+ -(d??"");var h=bU.W(b),m=cU.W(b),q=LZ.W(b),r=MZ.W(b);c=null!=h?"url(#stroke-color-gradient-"+(d??"")+"s-"+(c??"")+"s)":null!=m?"url(#stroke-fill-"+(d??"")+"-"+(c??"")+")":$T.W(b);b=null!=h?null:aU.W(b);return WZ(ON,{children:[t.j(q,a0)||t.j(r,a0)?cZ("marker",{refX:"2",children:cZ("path",{d:"M 0.5 0.5 L 3 3 L 0.5 5.5 L 0 5 L 2 3 L 0 1 z"}),orient:"auto-start-reverse",id:""+(a??"")+"-line-arrow",viewBox:"0 0 3 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"8.5",markerHeight:"8.5"}):null,t.j(q,b0)||t.j(r, +(d??"");var h=bU.W(b),m=cU.W(b),q=LZ.W(b),r=MZ.W(b);c=null!=h?"url(#stroke-color-gradient-"+(d??"")+"-"+(c??"")+")":null!=m?"url(#stroke-fill-"+(d??"")+"-"+(c??"")+")":$T.W(b);b=null!=h?null:aU.W(b);return WZ(ON,{children:[t.j(q,a0)||t.j(r,a0)?cZ("marker",{refX:"2",children:cZ("path",{d:"M 0.5 0.5 L 3 3 L 0.5 5.5 L 0 5 L 2 3 L 0 1 z"}),orient:"auto-start-reverse",id:""+(a??"")+"-line-arrow",viewBox:"0 0 3 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"8.5",markerHeight:"8.5"}):null,t.j(q,b0)||t.j(r, b0)?cZ("marker",{refX:"2",children:cZ("path",{d:"M 0 0 L 3 3 L 0 6 z"}),orient:"auto-start-reverse",id:""+(a??"")+"-triangle-arrow",viewBox:"0 0 3 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"8.5",markerHeight:"8.5"}):null,t.j(q,c0)||t.j(r,c0)?cZ("marker",{refX:"3",children:cZ("rect",{x:0,y:0,width:6,height:6}),orient:"auto-start-reverse",id:""+(a??"")+"-square-marker",viewBox:"0 0 6 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"4.2426",markerHeight:"4.2426"}):null,t.j(q,d0)||t.j(r,d0)?cZ("marker", {refX:"3",children:cZ("circle",{cx:"3",cy:"3",r:"3"}),orient:"auto-start-reverse",id:""+(a??"")+"-circle-marker",viewBox:"0 0 6 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"4",markerHeight:"4"}):null,t.j(q,e0)||t.j(r,e0)?cZ("marker",{refX:"3",children:cZ("path",{d:"M 3 0 L 6 3 L 3 6 L 0 3 z"}),orient:"auto-start-reverse",id:""+(a??"")+"-diamond-marker",viewBox:"0 0 6 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"6",markerHeight:"6"}):null,(t.j(q,f0)||t.j(r,f0))&&hj.j(q,r)?cZ("marker",{refX:"3",children:cZ("path", {d:"M 3 2.5 A 0.5 0.5 0 0 1 3 3.5 "}),orient:"auto-start-reverse",id:""+(a??"")+"-round",viewBox:"0 0 6 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"6",markerHeight:"6"}):null,(t.j(q,g0)||t.j(r,g0))&&hj.j(q,r)?cZ("marker",{refX:"3",children:cZ("rect",{x:3,y:2.5,width:.5,height:1}),orient:"auto-start-reverse",id:""+(a??"")+"-square",viewBox:"0 0 6 6",fill:c,refY:"3",fillOpacity:b,markerWidth:"6",markerHeight:"6"}):null]})},j0=function(a){var b=a.stroke,c=a.index,d=a["render-id"],h=a.shape;a=FQ(h)&& @@ -3953,7 +3953,7 @@ null);r=function(){return null!=d?H.cb(v,s0,d,x([t0,new Ki(function(){return d.s a.shape;if(RQ.W(b)&&!HZ.W(b)){a=a["render-id"];var c=b?.x??z.j(b,FP),d=b?.y??z.j(b,EP),h=b?.width??z.j(b,VB),m=b?.height??z.j(b,UP),q=QO.W(b),r=cM([$L(b)],function(){return TN.j(F_({},b),{x:c,y:d,width:h,height:m,transform:q})}),u=null!=r.d;return cZ("clipPath",{id:YJa(b,a),className:"frame-clip frame-clip-def",children:u?cZ("path",r):cZ("rect",r)})}return null},x0=function(a){var b=a.shape;a=a.children;var c=bM(UN),d=b?.x??z.j(b,FP),h=b?.y??z.j(b,EP),m=b?.width??z.j(b,VB),q=b?.height??z.j(b,UP), r=b?.opacity??z.j(b,ST),u=QO.W(b),v=z.j(b,HZ),w=cM([$L(b)],function(){return TN.j(F_({},b),{x:d,y:h,width:m,height:q,transform:u,className:"frame-background"})}),A=null!=w.d;return WZ(ON,{children:[WZ("g",{clipPath:v?null:"url(#"+(YJa(b,c)??"")+")",fill:"none",opacity:r,children:[cZ(n0,{shape:b,children:A?cZ("path",w):cZ("rect",w)}),a]}),cZ(o0,{shape:b,children:A?cZ("path",w):cZ("rect",w)})]})},A0=function(a){var b=a.shape,c=a.bounds;a=b?.id??z.j(b,T);var d=b?.points??z.j(b,jQ),h=cM(aM(c,d),function(){if(g(c))var w= c;else w=F(null),w=z.ba(w,y0,!1),w=hY.ba(I,b,new f(null,1,[y0,w],null));return w});d=z0.W(b);var m=B(Yb(lua),mua),q=LV(),r=FP.W(h),u=EP.W(h),v=UP.W(h);h=VB.W(h);return WZ(ON,{children:[cZ("image",{width:h,height:v,className:"frame-thumbnail",x:r,id:"thumbnail-"+(a??""),href:d,style:{filter:!q&&m?"sepia(1)":null},decoding:"async",y:u}),q&&m?cZ("rect",{x:r+4,y:u+4,width:h-8,height:v-8,stroke:"red",strokeWidth:2}):null]})},B0=function(a){return z0.W(a.shape)?cZ(x0,{...a,children:cZ(A0,a)}):null},dKa= -function(a){function b(c){var d=c.shape,h=c.childs,m=PR(d)&&vH(d);d=WR(d)?dp.j(vd,de(If(rra,m),Sl(h))):h;return cZ(x0,{...c,children:cZ("g",{className:"frame-children",children:zb(function(q,r){var u=q.push,v=r?.id??z.j(r,T);r=null!=v?cZ(a,{key:""+(v??""),shape:r}):null;u.call(q,r);return q},[],d)})})}b.displayName="frame-shape";return b},C0=function(a,b,c,d){var h=iH(a);y(h,0,null);var m=y(h,1,null);y(h,2,null);h=y(h,3,null);return m+h+(null.ga?null.ga(a,b,c,d,!0):null(a,b,c,d,!0))},D0=function(a, +function(a){function b(c){var d=c.shape,h=c.childs,m=PR(d)&&ARa(d);d=WR(d)?dp.j(vd,de(If(rra,m),Sl(h))):h;return cZ(x0,{...c,children:cZ("g",{className:"frame-children",children:zb(function(q,r){var u=q.push,v=r?.id??z.j(r,T);r=null!=v?cZ(a,{key:""+(v??""),shape:r}):null;u.call(q,r);return q},[],d)})})}b.displayName="frame-shape";return b},C0=function(a,b,c,d){var h=iH(a);y(h,0,null);var m=y(h,1,null);y(h,2,null);h=y(h,3,null);return m+h+(null.ga?null.ga(a,b,c,d,!0):null(a,b,c,d,!0))},D0=function(a, b,c,d){var h=iH(a),m=y(h,0,null);y(h,1,null);var q=y(h,2,null);y(h,3,null);return m+q+(null.ga?null.ga(a,b,c,d,!0):null(a,b,c,d,!0))},nua=function(a,b){var c=F(a);a=z.j(c,s_);c=z.j(c,fT);var d=F(c);c=z.j(d,AN);var h=z.j(d,yN),m=z.j(d,gT);d=z.j(d,hT);a=t.j(E0,a)?new J(null,4,5,M,[c,h,c,h],null):new J(null,4,5,M,[c,h,m,d],null);var q=y(a,0,null),r=y(a,1,null);d=y(a,2,null);var u=y(a,3,null);a=y(b,0,null);c=y(b,1,null);h=y(b,2,null);m=y(b,3,null);if(null!=b){q=zG(b,q);var v=y(b,0,null),w=y(b,1,null); y(b,2,null);y(b,3,null);r=AB(BB(rB(v,w)),r);v=y(b,0,null);y(b,1,null);y(b,2,null);w=y(b,3,null);d=AB(BB(rB(v,w)),d);b=yG(b,u);b=new J(null,4,5,M,[qB(qB(a,b),q),qB(qB(c,r),q),qB(qB(h,r),d),qB(qB(m,b),d)],null)}else b=null;return b},G0=function(a,b){b=F(b);var c=z.j(b,P),d=z.j(b,Gl),h=function(){switch(c instanceof C?c.aa:null){case "percent":var q=a*d/100;return new J(null,2,5,M,[q,q],null);case "fixed":return new J(null,2,5,M,[d,d],null);default:return new J(null,2,5,M,[.01,Infinity],null)}}(),m= y(h,0,null);h=y(h,1,null);return H.cb(b,QH,m,x([F0,h]))},H0=function(a,b,c,d,h,m){m=t.j(m,Oo)?new J(null,3,5,M,[Oo,w_,C0],null):new J(null,3,5,M,[pJ,y_,D0],null);var q=y(m,0,null),r=y(m,1,null),u=y(m,2,null);return zb(function(v,w){var A=y(w,0,null);w=y(w,1,null);var D=z.j(c,T.W(w)),G=z.j(D,q)-1,K=z.j(v,G);return t.j(z.j(D,r),1)&&B(new Sh(null,new f(null,2,[vS,null,xU,null],null),null),P.W(K))?Vm.ea(v,new J(null,2,5,M,[G,QH],null),vy,u.ea?u.ea(w,A,d,h):u(w,A,d,h)):v},a,b)},I0=function(a){return zb(function(b, @@ -3997,9 +3997,9 @@ ER),m=z.j(h,Uk),q=Ld(h)&&t.j(m,ET),r=Ld(h),u="string"===typeof h;m=B(ava,m);retu P);b=z.j(b,V_);b=wl(",",$f.j(function(c){var d=F(c);c=z.j(d,Vn);var h=z.j(d,QT);d=z.j(d,ST);var m=eu(h);h=y(m,0,null);var q=y(m,1,null);m=y(m,2,null);c=[k.W(100*c),"%"].join("");return JL.ia?JL.ia("rgba(%s, %s, %s, %s) %s",h,q,m,d,c):JL("rgba(%s, %s, %s, %s) %s",h,q,m,d,c)},b));return t.j(a,Nu)?JL.j?JL.j("linear-gradient(to bottom, %s)",b):JL("linear-gradient(to bottom, %s)",b):JL.j?JL.j("radial-gradient(circle, %s)",b):JL("radial-gradient(circle, %s)",b)},fva=function(a){var b=F(a),c=z.j(b,QT);a= z.j(b,ST);var d=z.j(b,UT);b=z.j(b,Gl);c=Uo(c,b);a=g(a)?a:1;return g(g(d)?hj.j(HS,d):d)?eva(d):null!=c&&hj.j(c,HS)?(d=wga(tl(c,"#","")),d=t.j("#",d.substring(0,1))?d:"#"+(d??""),b=eu(d),d=y(b,0,null),c=y(b,1,null),b=y(b,2,null),JL.ga?JL.ga("rgba(%s, %s, %s, %s)",d,c,b,a):JL("rgba(%s, %s, %s, %s)",d,c,b,a)):"transparent"},yVa=function(a,b){a=F(a);a=z.j(a,NZ);var c=F(null),d=z.ba(c,gva,!0),h=dT.j(b,0),m=q1.W(b),q=r1.W(b),r=function(){var fa=jX.W(b);return g(fa)?fa:jX.W(MW)}(),u=kX.W(b);c=cT.W(b);var v= function(){var fa=RT.W(p(gU.W(b)));return g(fa)?fa:RT.W(b)}(),w=function(){var fa=TT.W(p(gU.W(b)));return g(fa)?fa:TT.W(b)}(),A=function(){var fa=VT.W(p(gU.W(b)));return g(fa)?fa:VT.W(b)}(),D=Ae.j(eu(v),w),G=y(D,0,null),K=y(D,1,null),N=y(D,2,null);D=y(D,3,null);v=null!=v&&null!=w?JL.cb("rgba(%s, %s, %s, %s)",x([G,K,N,D])):null;var R=null!=A,V=R?fva(new f(null,1,[UT,A],null)):v;w=Yb(FL);v={color:g(g(d)?!R:d)?V:"transparent",textTransform:q,background:g(g(d)?R:d)?V:null,lineBreak:"auto",overflowWrap:"initial", -whiteSpace:"break-spaces",textRendering:"geometricPrecision",caretColor:g(function(){var fa=!R;return fa?V:fa}())?V:"black",textDecoration:m};A=null!=gU.W(b)?gU.W(b):null!=RT.W(b)||null!=TT.W(b)||null!=VT.W(b)?new J(null,1,5,M,[Wr(Qh(b,new J(null,5,5,M,[RT,TT,VT,XT,ZT],null)))],null):null==gU.W(b)?new J(null,1,5,M,[new f(null,2,[RT,"#000000",TT,1],null)],null):null;var X=null==r?null:z.j(w,r);q=null!=X?function(){var fa=Wl(function(pa){return t.j(u,T.W(pa))},Y.W(X));return new J(null,3,5,M,[Eha(function(){var pa= -W.W(X);return g(pa)?pa:s1.W(b)}()),function(){var pa=U.W(fa);return g(pa)?pa:t1.W(b)}(),function(){var pa=Z.W(fa);return g(pa)?pa:u1.W(b)}()],null)}():null;d=y(q,0,null);m=y(q,1,null);q=y(q,2,null);r=EJ(v,"--font-id",r);r=null!=A?EJ(r,"--fills",CP(A,null)):r;h="string"===typeof h&&0q?null:q}else q=null;d=d.substring(q+1);m=window.atob(m);var r=m.length;q=new Uint8Array(r);r=n(gi(0,r));for(var u=null,v=0,w=0;;)if(w>>0)+"_",h=0;return b}); +null)],null),new f(null,1,[N1,!0],null))}();return Ul.ba(h,X1,Ed)},l2=function(a,b,c){b=c2(LU(Ul.ba(H.ba(c,P,b),DR,k2)),a,P);return b2(H.ba($1(a,b),f2,T.W(b)),Q.W(b))},BRa=function(a){function b(c){return fm(c,new J(null,2,5,M,[VT,P],null),yi)}return uS(function(c){return im(c,gU,function(d){return dp.j(b,d)})},a)},m2=function(a){return Ul.ba(a,X1,Ed)},Gva=function(a){var b=O1.W(a),c=GR(tC.W(a),b),d=W1(a,b),h=dp.j(function(m){return W1(a,m)},GQ.W(d));c=g(g(c)?uQ.W(c):c)?a:Fd(h)?M1(a,new f(null,3, +[P,n2,T,b,o2,!0],null)):g(BZ.W(d))?function(){var m=p(h);return L1(a,new f(null,3,[P,h2,T,b,i2,new J(null,8,5,M,[new f(null,4,[P,Bo,j2,FP,zq,FP.W(lQ.W(m)),Z1,!0],null),new f(null,4,[P,Bo,j2,EP,zq,EP.W(lQ.W(m)),Z1,!0],null),new f(null,4,[P,Bo,j2,VB,zq,VB.W(lQ.W(m)),Z1,!0],null),new f(null,4,[P,Bo,j2,UP,zq,UP.W(lQ.W(m)),Z1,!0],null),new f(null,4,[P,Bo,j2,yR,zq,yR.W(m),Z1,!0],null),new f(null,4,[P,Bo,j2,zR,zq,zR.W(m),Z1,!0],null),new f(null,4,[P,Bo,j2,lQ,zq,lQ.W(m),Z1,!0],null),new f(null,4,[P,Bo,j2, +jQ,zq,jQ.W(m),Z1,!0],null)],null)],null),new f(null,1,[N1,!0],null))}():t.j(P.W(d),YH)?function(){var m=sG(d,h);return L1(a,new f(null,3,[P,h2,T,b,i2,new J(null,6,5,M,[new f(null,4,[P,Bo,j2,lQ,zq,lQ.W(m),Z1,!0],null),new f(null,4,[P,Bo,j2,jQ,zq,jQ.W(m),Z1,!0],null),new f(null,4,[P,Bo,j2,FP,zq,FP.W(lQ.W(m)),Z1,!0],null),new f(null,4,[P,Bo,j2,EP,zq,EP.W(lQ.W(m)),Z1,!0],null),new f(null,4,[P,Bo,j2,VB,zq,VB.W(lQ.W(m)),Z1,!0],null),new f(null,4,[P,Bo,j2,UP,zq,UP.W(lQ.W(m)),Z1,!0],null)],null)],null),new f(null, +1,[N1,!0],null))}():a;return Ul.ba(Wj.j(Wj.j(c,O1),P1),X1,Ed)},Hva=function(a,b){var c=Hj(wU.W(b)),d=FP.W(b);b=EP.W(b);a=H.ba(a,O1,c);var h=R1.W(a),m=qM(tC.W(a),h);c=GR(tC.W(a),c);h=z.j(z.j(a,bp),PU);b=hwa(m,c,T.W(a),DP(d,b),h);d=y(b,0,null);b=y(b,1,null);a=zb(function(q,r){return M1(q,new f(null,7,[P,Y1,T,T.W(r),Q1,T.W(m),JQ,JQ.W(r),jU,jU.W(r),Z1,!0,CK,r],null))},a,b);a=H.ba(a,f2,T.W(d));return Wj.j(a,O1)},Kva=function(a,b,c){var d=R1.W(a),h=LU(c);c=Ql(Nh(b),x([Nh(h)]));return H.ba(M1(a,new f(null, +4,[P,h2,i2,zb(function(m,q){var r=z.j(b,q),u=z.j(h,q);return t.j(r,u)?m:Ae.j(m,new f(null,4,[P,Bo,j2,q,zq,u,Z1,!0],null))},I,c),Q1,d,T,T.W(b)],null)),f2,T.W(b))},NLa=function(a){var b=new MLa;Mi(If(function(c,d){var h=y(d,0,null);d=y(d,1,null);return c.file(h,d)},b),a);return SV(b.generateAsync({type:"blob"}))},Lva=function(a){return gW(function(b){var c=b.event;b=b.data;b=CF.W?CF.W(b):CF(b);return t.j("error",c)?TV(rj("stream exception",b)):AW({type:c,data:b})},function d(c){return gW(function(h){return g(h.done)? +mab.EMPTY:I1(AW(h.value),d(c))},SV(c.read()))}(a.getReader()))},UO=function(a){a=F(a);var b=z.j(a,Mt),c=z.j(a,Rm);return t.j(204,b)?AW(null):t.j(502,b)?TV(rj("http error",new f(null,1,[P,Tva],null))):t.j(503,b)?TV(rj("http error",new f(null,1,[P,Uva],null))):t.j(0,Mt.W(a))?TV(rj("http error",new f(null,1,[P,Xva],null))):t.j(200,b)?AW(c):t.j(413,b)?TV(rj("http error",new f(null,2,[P,Zva,$F,$va],null))):400<=b&&Ld(c)?TV(rj("http error",c)):TV(rj("http error",new f(null,3,[P,awa,Mt,b,tC,c],null)))}, +jwa=function(a,b){var c=hf.cb(x([z.j(Yjb,a),null])),d=F(c);c=z.j(d,cX);var h=z.j(d,p2),m=z.j(d,cwa),q=z.j(d,q2);d=z.j(d,dwa);m=g(m)?bva:tL;a=Zh(g(d)?d:a);d=t.j(q,JK)?iX:hl(a,"get-")?iX:r2;b=new f(null,7,[Ms,d,HW,UK.cb(x([VK,"api/rpc/command/",a])),VW,"include",IW,new f(null,1,["accept","application/transit+json,text/event-stream,*/*"],null),Rm,t.j(d,r2)?g(h)?Zua(b):new gX(b,E):null,IG,t.j(d,iX)?b:g(q)?Qh(b,q):null,cX,t.j(c,s2)?GO:g(c)?c:ZH],null);b=gW(UO,dW(m,oL(b)));return t.j(s2,c)?gW(function(r){return Lva(r.pipeThrough(new TextDecoderStream).pipeThrough(new gwa.EventSourceParserStream))}, +b):b},nwa=function(a){function b(h){var m=y(h,0,null),q=y(h,1,null);return q instanceof BF?dW(function(r){return new J(null,2,5,M,[m,r],null)},dW(function(r){return z.j(r,ER)},aX.j(kwa,new f(null,2,[fU,d,lwa,Yb(q)],null)))):AW(h)}var c=F(a),d=z.j(c,T);a=z.j(c,tC);return dW(function(h){var m=y(h,0,null);h=y(h,1,null);m=H.ba(m,yQ,h);return H.ba(c,tC,m)},hW(mwa(iW(Ae,E,fW(b,SV(n(a)))),iW(Ae,E,fW(b,SV(n(yQ.W(a))))))))},aMa=function(a,b,c,d,h){function m(q,r){return H.ba(q,k.W(T.W(r)),new f(null,1,[Q, +Q.W(r)],null))}a=new f(null,3,[qwa,k.W(a),twa,k.W(b),t2,zb(function(q,r){var u=Q.W(r),v=uwa.W(r),w=dp.j(k,Hl.j(r,new J(null,2,5,M,[tC,AQ],null))),A=zb(m,E,Ph(Hl.j(r,new J(null,2,5,M,[tC,yQ],null))));return H.ba(q,k.W(T.W(r)),Eh([eK,u2,vwa,wwa,Q,xwa,ywa,AQ,zwa,Awa,Dwa,Ewa,Fwa],[g(h)?h:I,dp.j(k,eh.j(Th,u2.W(r))),Ol(Hl.j(r,new J(null,2,5,M,[tC,v2],null))),Ol(BR(tC.W(r))),u,A,wm(c),w,Ol(Hl.j(r,new J(null,2,5,M,[tC,w2],null))),v,2,Ol(Hl.j(r,new J(null,2,5,M,[tC,MU],null))),Ol(Hl.j(r,new J(null,2,5,M,[tC, +VH],null)))]))},E,Ph(d))],null);return dN(a)},IY=function(a){var b=Hl.j(a,new J(null,2,5,M,[tC,AQ],null)),c=Hl.j(a,new J(null,2,5,M,[tC,yQ],null));return $f.j(function(d){return Eh([fU,tC],[T.W(a),z.j(c,d)])},b)},JY=function(a){a=F(a);var b=z.j(a,fU);a=z.j(a,tC);a=F(a);var c=z.j(a,T),d=z.j(a,Q);return dW(function(h){return new f(null,4,[T,c,Q,d,fU,b,Gwa,h],null)},wLa(a))},cMa=function(a){var b=F(a);a=z.j(b,T);var c=z.j(b,fU);b=z.j(b,Gwa);return new J(null,2,5,M,[[k.W(c),"/",k.W(a),".svg"].join(""), +b],null)},dMa=function(a,b,c){return H.ba(a,k.W(T.W(b)),BN(function(d){var h=y(d,0,null);d=y(d,1,null);return new J(null,2,5,M,[x2(h),d],null)},Qh(b,c)))},eMa=function(a,b){return dMa(a,b,new J(null,5,5,M,[Q,QT,ST,UT,XB],null))},fMa=function(a,b){return dMa(a,b,new J(null,11,5,M,[Q,s1,jX,cT,t1,kX,u1,dT,x1,r1,XB],null))},gMa=function(a,b){return dMa(a,b,new J(null,5,5,M,[Q,y2,VB,UP,XB],null))},hMa=function(a){var b=y(a,0,null);a=y(a,1,null);a=dN(zb(eMa,E,Ph(a)));return new J(null,2,5,M,[[k.W(b),"/colors.json"].join(""), +a],null)},iMa=function(a){var b=y(a,0,null);a=y(a,1,null);a=dN(zb(fMa,E,Ph(a)));return new J(null,2,5,M,[[k.W(b),"/typographies.json"].join(""),a],null)},jMa=function(a){var b=y(a,0,null),c=y(a,1,null);return J1(function(){var d=dN(zb(gMa,E,Ph(c)));return AW(new J(null,2,5,M,[[k.W(b),"/media.json"].join(""),d],null))}(),fW(function(d){var h=""+(b??"")+"/media/"+(T.W(d)??"")+(PJ(y2.W(d))??"");return dW(function(m){return new J(null,2,5,M,[h,m],null)},dW(Rm,oL(new f(null,3,[HW,i0.W(d),cX,z2,Ms,iX], +null))))},dW(function(d){return H.ba(d,fU,b)},SV(Ph(c)))))},KY=function(a){return dW(function(b){return new J(null,2,5,M,[[k.W(T.W(a)),"/components.svg"].join(""),b],null)},xLa(tC.W(a),sQ))},kMa=function(a){return dW(function(b){return new J(null,2,5,M,[[k.W(T.W(a)),"/deleted-components.svg"].join(""),b],null)},xLa(tC.W(a),v2))},nMa=function(a,b){return dW(function(c){var d=y(c,0,null);c=y(c,1,null);c=pg(function(h){return hj.j(T.W(d),h)},$f.j(T,c));return H.ba(d,u2,c)},mwa(gW(nwa,aX.j(Hwa,new f(null, +2,[T,a,eK,b],null))),aX.j(Iwa,new f(null,1,[fU,a],null))))},pMa=function(a,b){function c(h){return cm(function(m,q){m=hj.j(b,ZT.W(q))?H.ba(q,ZT,b):q;m=hj.j(b,eU.W(q))?H.ba(m,eU,b):m;m=hj.j(b,EU.W(q))?H.ba(m,EU,b):m;return t.j(ZH,P.W(q))?Ul.ba(m,ER,d):m},h)}function d(h){return uS(function(m){var q=hj.j(b,ZT.W(m))?H.ba(m,ZT,b):m;return hj.j(b,OU.W(m))?H.ba(q,OU,b):q},h)}return Vm.ba(a,new J(null,2,5,M,[tC,yQ],null),function(h){return cm(function(m,q){return Ul.ba(q,qQ,c)},h)})},qMa=function(a){function b(c){return eh.j(I, +ig(function(d){var h=I;h=B(d,XT)?Ae.j(h,new f(null,2,[T,XT.W(d),fU,ZT.W(d)],null)):h;return B(d,NU)?Ae.j(h,new f(null,2,[T,NU.W(d),fU,OU.W(d)],null)):h},x([FF(function(d){return B(d,XT)||B(d,NU)},c)])))}return cm(function(c,d){return dp.j(T,d)},Wi(fU,kg.j(gg.j(qb,T),kg.j(gg.j(qb,fU),ig(function(c){y(c,0,null);c=y(c,1,null);var d=I;d=B(c,XT)?Ae.j(d,new f(null,2,[T,XT.W(c),fU,ZT.W(c)],null)):d;d=B(c,dU)?Ae.j(d,new f(null,2,[T,dU.W(c),fU,eU.W(c)],null)):d;d=B(c,wU)?Ae.j(d,new f(null,2,[T,wU.W(c),fU, +EU.W(c)],null)):d;return t.j(ZH,P.W(c))?eh.j(d,b(ER.W(c))):d},x([ig(qQ,x([Ph(Hl.j(a,new J(null,2,5,M,[tC,yQ],null)))]))]))))))},rMa=function(a,b){var c=qMa(a);return zb(function(d,h){var m=Qh(Hl.j(h,new J(null,2,5,M,[tC,VH],null)),z.j(c,T.W(h))),q=Qh(Hl.j(h,new J(null,2,5,M,[tC,MU],null)),z.j(c,T.W(h))),r=Qh(Hl.j(h,new J(null,2,5,M,[tC,w2],null)),z.j(c,T.W(h)));h=Qh(vqa(tC.W(h)),z.j(c,T.W(h)));d=Ol(m)?Vm.ea(d,new J(null,2,5,M,[tC,VH],null),hf,m):d;q=Ol(q)?Vm.ea(d,new J(null,2,5,M,[tC,MU],null),hf, +q):d;r=Ol(r)?Vm.ea(q,new J(null,2,5,M,[tC,w2],null),hf,r):q;return Ol(h)?Vm.ea(r,new J(null,2,5,M,[tC,sQ],null),hf,h):r},a,b)},sMa=function(a,b,c){return dW(function(d){a:{var h=b instanceof C?b.aa:null;switch(h){case "all":break a;case "merge":h=Ph(bm(d,new J(null,1,5,M,[a],null)));d=Ul.ea(Ul.ea(Ul.ea(Qh(d,new J(null,1,5,M,[a],null)),a,rMa,h),a,pMa,a),a,Wj,u2);break a;case "detach":d=Ul.ea(Ul.ea(Qh(d,new J(null,1,5,M,[a],null)),a,xsa,a),a,Wj,u2);break a;default:throw Error(["No matching clause: ", +k.W(h)].join(""));}}return d},dW(p,Ssa(Vsa(function(d){var h=y(d,0,null);d=y(d,1,null);if(Fd(d))return mab.EMPTY;var m=Dd(d),q=Ed(d);return B(h,m)?AW(new J(null,2,5,M,[h,q],null)):dW(function(r){return new J(null,2,5,M,[H.ba(h,T.W(r),r),zb(Ae,q,u2.W(r))],null)},nMa(m,c))},AW(new J(null,2,5,M,[E,new J(null,1,5,M,[a],null)],null))))))},uMa=function(a,b,c,d){var h=bW(sMa(b,c,d)),m=dW(function(G){return new J(null,2,5,M,["manifest.json",G],null)},dW(function(G){return aMa(a,b,c,G,d)},h)),q=bW(fW(JY,nW(Jwa, +fW(IY,fW(Ph,h))))),r=dW(hMa,cW(function(G){return Ol(vd(G))},dW(function(G){return new J(null,2,5,M,[T.W(G),Hl.j(G,new J(null,2,5,M,[tC,VH],null))],null)},fW(Ph,h)))),u=dW(iMa,cW(function(G){return Ol(vd(G))},dW(function(G){return new J(null,2,5,M,[T.W(G),Hl.j(G,new J(null,2,5,M,[tC,MU],null))],null)},fW(Ph,h)))),v=fW(jMa,cW(function(G){return Ol(vd(G))},dW(function(G){return new J(null,2,5,M,[T.W(G),Hl.j(G,new J(null,2,5,M,[tC,w2],null))],null)},fW(Ph,h)))),w=fW(KY,cW(function(G){return Ol(BR(tC.W(G)))}, +fW(Ph,h))),A=fW(kMa,cW(function(G){return Ol(Hl.j(G,new J(null,2,5,M,[tC,v2],null)))},fW(Ph,h))),D=dW(cMa,q);return J1(dW(function(G){return Eh([P,ho,tC],[Kwa,b,["Render ",k.W(A2.W(G))," - ",k.W(Q.W(G))].join("")])},q),fW(function(G){var K=y(G,0,null),N=y(G,1,null);return dW(function(R){return new J(null,2,5,M,[z.j(N,b),R],null)},NLa(K))},jW(h,iW(Ae,I,J1(m,D,w,A,v,r,u)))))},LY=function(a){a=Ti(a);return BN(function(b){var c=y(b,0,null);b=y(b,1,null);b=t.j(wb(b),Symbol)?yi.W(Symbol.keyFor(b)):b;c= +yi.W(B2(wm(c)));return new J(null,2,5,M,[c,b],null)},a)},vMa=function(a){var b=y(a,0,null),c=y(a,1,null);return J1(function(){var d=dN(zb(gMa,E,Ph(c)));return AW(new J(null,2,5,M,[[k.W(b),"/media.json"].join(""),d],null))}(),fW(function(d){var h=""+(b??"")+"/media/"+(T.W(d)??"")+(PJ(y2.W(d))??"");d=HW.W(d);var m=ul(d,";base64,");d=y(m,0,null);m=y(m,1,null);if("string"===typeof d){var q=d.indexOf(":");q=0>q?null:q}else q=null;d=d.substring(q+1);m=window.atob(m);var r=m.length;q=new Uint8Array(r);r= +n(gi(0,r));for(var u=null,v=0,w=0;;)if(w>>0)+"_",h=0;return b}); daa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0),faa=0;var C2;gaa(Xe,Error);Xe.prototype.name="CustomError";kf[" "]=function(){};var ma=class{constructor(a,b){this.Ia=a|0;this.Ba=b|0}isSafeInteger(){var a=this.Ba>>21;return 0==a||-1==a&&!(0==this.Ia&&-2097152==this.Ba)}toString(a){a=a||10;if(2>a||36>2);var c=Math.pow(a,b),d=na(c,c/4294967296);c=ya(this,d);var h=Math,m=h.abs;d=c.multiply(d);d=this.add(qf(d));h=m.call(h,ta(d));m=10==a?""+h:h.toString(a);m.length>>0>a.Ia>>>0?1:-1:this.Ba>a.Ba?1:-1}add(a){var b=this.Ba>>>16,c=this.Ba&65535,d=this.Ia>>>16,h=a.Ba>>>16,m=a.Ba&65535,q=a.Ia>>>16;a=(this.Ia&65535)+(a.Ia&65535);q=(a>>>16)+(d+q);d=q>>>16;d+=c+m;b=(d>>>16)+(b+h)&65535;return na((q&65535)<<16|a&65535,b<<16|d&65535)}multiply(a){if(this.Mj())return this; @@ -4729,7 +4729,7 @@ e.Oa=function(a,b){switch(b instanceof C?b.aa:null){case "splicing?":case "form" e.If=function(a,b){return new Kn(this.wf,this.form,b,this.Vd,this.ua)};e.va=function(a,b){return Nd(b)?this.wa(null,yd(b,0),yd(b,1)):zb(Gb,this,b)};e.Da=l;e.Aa=function(a,b,c){ic(b,["#?",g(this.wf)?"@":null].join(""));return xi(this.form,b,c)};var oda=/[\s]/;mk.prototype.wd=function(){if(this.ai>this.uh){var a=this.s.charAt(this.uh);this.uh+=1;return a}return null};mk.prototype.ue=function(){return this.ai>this.uh?this.s.charAt(this.uh):null};nk.prototype.wd=function(){var a=this.vca?'..."':'"',d=b.length;return['"',k.W(b.substring(0,aa?'..."':'"',d=b.length;return['"',k.W(b.substring(0,ad?"...}":"}")}); pk.N(null,Bo,function(a,b){return qk(a,b,"#{","}")});pk.N(null,uo,function(a,b){return qk(a,b,"[","]")});pk.N(null,Ko,function(a,b){return Pi.cb(x([wb(b)]))});var Bda=/^([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?$/,Dda=/([-+]?[0-9]+)\/([0-9]+)/,Cda=/([-+]?[0-9]+(\.[0-9]*)?([eE][-+]?[0-9]+)?)(M)?/,Xk=function Xk(a){for(var c=[],d=arguments.length,h=0;;)if(hpd(a))?ri(TBa,a):b:b},XD,new f(null,7,[g4,"email",x6,"string with valid email address",dI,"expected valid email",LH,MK(po),P3,"string",I9,"email",W3,WBa],null)],null);eM(Y4,nSa); -var Vib=gg.ba(kg.W(sb),Vj.W(el),Vj.W(vm)),oSa=new f(null,3,[P,r6,PG,function(a){return Hd(a)&&Df(sb,a)},XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Set of Strings",new f(null,1,[P,"string"],null),"set[string]","set",!0,"array",bB.W(MK(po)),"should be a set of strings",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,Vib,a)}])],null);eM(r6,oSa); -var pSa=new f(null,3,[P,Rza,PG,function(a){return Hd(a)&&Df(Ee,a)},XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Set of Strings",new f(null,2,[P,"string",U9,"keyword"],null),"set[string]","set",!0,"array",bB.W(MK(zo)),"should be a set of strings",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,gg.j(Vib,$f.W(yi)),a)}])],null);eM(Rza,pSa); -var qSa=new f(null,3,[P,U7,PG,function(a){return Hd(a)&&Df(sb,a)},XD,Eh([x6,g5,IL,g4,I9,$5,P3,LH,dI],["Set of Emails",new f(null,2,[P,"string",U9,"email"],null),function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,Pf(WBa),a)},"set[email]","set",!0,"array",bB.W(MK(Y4)),"should be a set of emails"])],null);eM(U7,qSa); -var rSa=new f(null,3,[P,w7,PG,function(a){return Hd(a)&&Df(oj,a)},XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Set of UUID",new f(null,2,[P,"string",U9,"uuid"],null),"set[uuid]","set",!0,"array",bB.W(MK(C9)),"should be a set of UUID instances",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,Pf(YM),a)}])],null);eM(w7,rSa); -var sSa=new f(null,3,[P,w7,PG,If(Df,oj),XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Coll of UUID",new f(null,2,[P,"string",U9,"uuid"],null),"[uuid]","array",!1,"array",bB.W(MK(C9)),"should be a coll of UUID instances",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(I,Pf(YM),a)}])],null);eM(PCa,sSa); +var lSa=pxa();eM(CG,lSa);var mSa=rxa();eM(EG,mSa);var SBa=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,nSa=new f(null,3,[P,C9,PG,oj,XD,new f(null,7,[g4,"uuid",x6,"UUID formatted string",dI,"should be an uuid",LH,tA(function(){return hJ()},TA),P3,"string",I9,"uuid",W3,YM],null)],null);eM(C9,nSa); +var TBa=/[a-zA-Z0-9_.+-\\\\]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+/,oSa=new f(null,3,[P,Y4,PG,function(a){var b="string"===typeof a;return b?(b=250>pd(a))?ri(TBa,a):b:b},XD,new f(null,7,[g4,"email",x6,"string with valid email address",dI,"expected valid email",LH,MK(po),P3,"string",I9,"email",W3,WBa],null)],null);eM(Y4,oSa); +var Vib=gg.ba(kg.W(sb),Vj.W(el),Vj.W(vm)),pSa=new f(null,3,[P,r6,PG,function(a){return Hd(a)&&Df(sb,a)},XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Set of Strings",new f(null,1,[P,"string"],null),"set[string]","set",!0,"array",bB.W(MK(po)),"should be a set of strings",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,Vib,a)}])],null);eM(r6,pSa); +var qSa=new f(null,3,[P,Rza,PG,function(a){return Hd(a)&&Df(Ee,a)},XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Set of Strings",new f(null,2,[P,"string",U9,"keyword"],null),"set[string]","set",!0,"array",bB.W(MK(zo)),"should be a set of strings",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,gg.j(Vib,$f.W(yi)),a)}])],null);eM(Rza,qSa); +var rSa=new f(null,3,[P,U7,PG,function(a){return Hd(a)&&Df(sb,a)},XD,Eh([x6,g5,IL,g4,I9,$5,P3,LH,dI],["Set of Emails",new f(null,2,[P,"string",U9,"email"],null),function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,Pf(WBa),a)},"set[email]","set",!0,"array",bB.W(MK(Y4)),"should be a set of emails"])],null);eM(U7,rSa); +var sSa=new f(null,3,[P,w7,PG,function(a){return Hd(a)&&Df(oj,a)},XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Set of UUID",new f(null,2,[P,"string",U9,"uuid"],null),"set[uuid]","set",!0,"array",bB.W(MK(C9)),"should be a set of UUID instances",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(Th,Pf(YM),a)}])],null);eM(w7,sSa); +var tSa=new f(null,3,[P,w7,PG,If(Df,oj),XD,Eh([x6,g5,g4,I9,$5,P3,LH,dI,W3],["Coll of UUID",new f(null,2,[P,"string",U9,"uuid"],null),"[uuid]","array",!1,"array",bB.W(MK(C9)),"should be a coll of UUID instances",function(a){a="string"===typeof a?ul(a,/[\s,]+/):a;return eh.ba(I,Pf(YM),a)}])],null);eM(PCa,tSa); eM(C7,new f(null,4,[P,C7,yC,1,mu,1,hH,function(a,b){var c=eh.j(Th,wd(b));b=U9.j(a,"keyword");return new f(null,2,[PG,function(d){return B(c,d)},XD,new f(null,6,[g4,"one-of",x6,"One of the Set",LH,EA(c),P3,"string",I9,U9.j(a,"keyword"),W3,t.j(b,"keyword")?yi:le],null)],null)}],null)); -var tSa=new f(null,3,[P,k4,PG,function(a){return Wd(a)&&2147483647>=a&&-2147483648<=a},XD,new f(null,7,[g4,"int",x6,"Safe Integer",dI,"expected to be int in safe range",LH,PK(),P3,"integer",I9,"int64",W3,function(a){if("string"===typeof a)if("string"===typeof a){var b=ni(/[+-]?\d+/,a);g(b)?(a=parseInt(a),a=a<=Number.MAX_SAFE_INTEGER&&a>=Number.MIN_SAFE_INTEGER?a:null):a=b}else throw Error(sm(a));return a}],null)],null);eM(k4,tSa); -var uSa=new f(null,3,[P,q4,PG,function(a){return"number"===typeof a&&2147483647>=a&&-2147483648<=a},XD,new f(null,7,[g4,"number",x6,"Safe Number",dI,"expected to be number in safe range",LH,CA(eh.j(I,x([PK(),OK()]))),P3,"number",I9,"double",W3,function(a){return"string"===typeof a?tm(a):a}],null)],null);eM(q4,uSa); -var vSa=new f(null,3,[P,e7,PG,function(a){return lba(a)&&2147483647>=a&&-2147483648<=a},XD,new f(null,7,[g4,"number",x6,"Safe Number",dI,"expected to be number in safe range",LH,OK(),P3,"number",I9,"double",W3,function(a){return"string"===typeof a?tm(a):a}],null)],null);eM(e7,vSa); +var uSa=new f(null,3,[P,k4,PG,function(a){return Wd(a)&&2147483647>=a&&-2147483648<=a},XD,new f(null,7,[g4,"int",x6,"Safe Integer",dI,"expected to be int in safe range",LH,PK(),P3,"integer",I9,"int64",W3,function(a){if("string"===typeof a)if("string"===typeof a){var b=ni(/[+-]?\d+/,a);g(b)?(a=parseInt(a),a=a<=Number.MAX_SAFE_INTEGER&&a>=Number.MIN_SAFE_INTEGER?a:null):a=b}else throw Error(sm(a));return a}],null)],null);eM(k4,uSa); +var vSa=new f(null,3,[P,q4,PG,function(a){return"number"===typeof a&&2147483647>=a&&-2147483648<=a},XD,new f(null,7,[g4,"number",x6,"Safe Number",dI,"expected to be number in safe range",LH,CA(eh.j(I,x([PK(),OK()]))),P3,"number",I9,"double",W3,function(a){return"string"===typeof a?tm(a):a}],null)],null);eM(q4,vSa); +var wSa=new f(null,3,[P,e7,PG,function(a){return lba(a)&&2147483647>=a&&-2147483648<=a},XD,new f(null,7,[g4,"number",x6,"Safe Number",dI,"expected to be number in safe range",LH,OK(),P3,"number",I9,"double",W3,function(a){return"string"===typeof a?tm(a):a}],null)],null);eM(e7,wSa); eM(P2,new f(null,4,[P,P2,yC,1,mu,1,hH,function(a,b){var c=wd(b);a=g(n8.W(a))?function(d){return Ef(function(h){return null!=z.j(d,h)},c)}:function(d){return Ef(function(h){return B(d,h)},c)};return new f(null,2,[PG,a,XD,new f(null,2,[g4,"contains",x6,"contains predicate"],null)],null)}],null)); -var wSa=new f(null,3,[P,J5,PG,cd,XD,new f(null,6,[g4,"inst",x6,"Satisfies Inst protocol",dI,"expected to be number in safe range",LH,TH(function(a){return nR.fromMillis(a,{zone:"local",setZone:!1})},PK()),P3,"number",I9,"int64"],null)],null);eM(J5,wSa);eM(tNa,new J(null,2,5,M,[ZB,zd],null));var xSa=new f(null,4,[P,aFa,PG,function(a){return"string"===typeof a&&!vm(a)},n7,Uz(pd),XD,new f(null,6,[g4,"string",x6,"string",dI,"expected a non empty string",LH,Mza(),P3,"string",I9,"string"],null)],null); -eM(aFa,xSa); -var ySa=new f(null,3,[P,Iya,PG,function(a){return a instanceof Rz},XD,new f(null,7,[g4,"uri",x6,"URI formatted string",dI,"expected URI instance",LH,wA(EA(new J(null,2,5,M,["http","https"],null)),function(a){return wA(function(){var b=Mza();b=NA.ba(function(c){return 5=b.Qk&&b.cancel())}this.Zm?this.Zm.call(this.Jm,this):this.om=!0;this.rh||this.errback(new HV(this))}};e.Im=function(a,b){this.Pk=!1;zV(this,a,b)};e.callback=function(a){BV(this);zV(this,!0,a)};e.errback=function(a){BV(this);zV(this,!1,a)};e.addCallbacks=function(a,b,c){this.Hk.push([a,b,c]);this.rh&&yV(this);return this}; e.then=function(a,b,c){let d,h;const m=new jV(function(q,r){h=q;d=r});this.addCallbacks(h,function(q){q instanceof HV?m.cancel():d(q);return FV},this);return m.then(a,b,c)};xV.prototype.$goog_Thenable=!0;xV.prototype.isError=function(a){return a instanceof Error};var FV={};gaa(AV,Xe);AV.prototype.message="Deferred has already fired";AV.prototype.name="AlreadyCalledError";gaa(HV,Xe);HV.prototype.message="Deferred was canceled";HV.prototype.name="CanceledError"; -GV.prototype.throwError=function(){delete EV[this.yh];throw this.fi;};var EV={};JIa(xV);var NK="undefined"!==typeof ja.document?ja.document:QJ(),jab="undefined"!==typeof ja.location?ja.location:QJ(),kab="undefined"!==typeof ja.navigator?ja.navigator:QJ(),lab="undefined"!==typeof ja.FormData?ja.FormData:function(){};MY=!1;var tab=new J(null,6,5,M,[vEa,bMa,mEa,RPa,Sza,dCa],null);t.j(zJ(ja,"penpotBuildDate"),"%buildDate%");var Eab,w$,qTa=zJ(ja,"penpotFlags");w$=void 0===qTa?"":qTa;var rTa=Cf($f.W(yi),"string"===typeof w$?Hg(ri(tP,w$)):null); -a:for(var x$=$e(Lf,x([fab,tab,rTa])),y$=Th;;){var sTa=p(x$);if(null==sTa){Eab=y$;break a}var z$=Zh(sTa);if(hl(z$,"enable-")){var tTa=Wc(x$),uTa=Ae.j(y$,yi.W(z$.substring(7)));x$=tTa;y$=uTa}else if(hl(z$,"disable-")){var vTa=Wc(x$),wTa=Rn.j(y$,yi.W(z$.substring(8)));x$=vTa;y$=wTa}else{var xTa=Wc(x$),yTa=y$;x$=xTa;y$=yTa}}var Lab;var A$=zJ(ja,"penpotVersion"); -if(hl(A$,"%"))Lab=Eh([FLa,FNa,B4,oEa,sBa,dza,TJa,gu,Lxa,LGa],[null,null,"develop","0","0",null,"0","0.0.0","develop","0.0"]);else if("string"===typeof A$){var B$=oi(gab,A$),C$=z.j(B$,4),D$=z.j(B$,5),zTa=z.j(B$,6),ATa=z.j(B$,3),BTa=JL.ba?JL.ba("%s.%s",C$,D$):JL("%s.%s",C$,D$),CTa=z.j(B$,2);Lab=Eh([FLa,FNa,B4,oEa,sBa,dza,TJa,gu,Lxa,LGa],[z.j(B$,14),z.j(B$,8),A$,zTa,C$,z.j(B$,12),D$,ATa,CTa,BTa])}else Lab=null; -var Nua=function(){function a(){var d=fl(c,"safari");return g(d)?fl(c,"version/17"):d}function b(){var d=fl(c,"safari");return g(d)?fl(c,"version/16"):d}var c=jl(kab.userAgent);return g(fl(c,"edg"))?GBa:g(fl(c,"chrom"))?REa:g(fl(c,"firefox"))?VOa:g(b())?JV:g(a())?KV:g(fl(c,"safari"))?IV:LEa}(),E$=jl(kab.userAgent);g(fl(E$,"windows"))||g(fl(E$,"linux"))||fl(E$,"mac os");var DTa=zJ(ja,"penpotPublicURI"),VK=yHa(g(DTa)?DTa:zJ(jab,"origin")),ETa=zJ(ja,"penpotRasterizerURI");null==ETa||yHa(ETa); +GV.prototype.throwError=function(){delete EV[this.yh];throw this.fi;};var EV={};JIa(xV);var NK="undefined"!==typeof ja.document?ja.document:QJ(),jab="undefined"!==typeof ja.location?ja.location:QJ(),kab="undefined"!==typeof ja.navigator?ja.navigator:QJ(),lab="undefined"!==typeof ja.FormData?ja.FormData:function(){};MY=!1;var tab=new J(null,6,5,M,[vEa,bMa,mEa,RPa,Sza,dCa],null);t.j(zJ(ja,"penpotBuildDate"),"%buildDate%");var Eab,w$,x$=zJ(ja,"penpotFlags");w$=void 0===x$?"":x$;var rTa=Cf($f.W(yi),"string"===typeof w$?Hg(ri(tP,w$)):null); +a:for(var y$=$e(Lf,x([fab,tab,rTa])),z$=Th;;){var sTa=p(y$);if(null==sTa){Eab=z$;break a}var A$=Zh(sTa);if(hl(A$,"enable-")){var tTa=Wc(y$),uTa=Ae.j(z$,yi.W(A$.substring(7)));y$=tTa;z$=uTa}else if(hl(A$,"disable-")){var vTa=Wc(y$),wTa=Rn.j(z$,yi.W(A$.substring(8)));y$=vTa;z$=wTa}else{var xTa=Wc(y$),yTa=z$;y$=xTa;z$=yTa}}var Lab;var B$=zJ(ja,"penpotVersion"); +if(hl(B$,"%"))Lab=Eh([FLa,FNa,B4,oEa,sBa,dza,TJa,gu,Lxa,LGa],[null,null,"develop","0","0",null,"0","0.0.0","develop","0.0"]);else if("string"===typeof B$){var C$=oi(gab,B$),D$=z.j(C$,4),E$=z.j(C$,5),zTa=z.j(C$,6),ATa=z.j(C$,3),BTa=JL.ba?JL.ba("%s.%s",D$,E$):JL("%s.%s",D$,E$),CTa=z.j(C$,2);Lab=Eh([FLa,FNa,B4,oEa,sBa,dza,TJa,gu,Lxa,LGa],[z.j(C$,14),z.j(C$,8),B$,zTa,D$,z.j(C$,12),E$,ATa,CTa,BTa])}else Lab=null; +var Nua=function(){function a(){var d=fl(c,"safari");return g(d)?fl(c,"version/17"):d}function b(){var d=fl(c,"safari");return g(d)?fl(c,"version/16"):d}var c=jl(kab.userAgent);return g(fl(c,"edg"))?GBa:g(fl(c,"chrom"))?REa:g(fl(c,"firefox"))?VOa:g(b())?JV:g(a())?KV:g(fl(c,"safari"))?IV:LEa}(),F$=jl(kab.userAgent);g(fl(F$,"windows"))||g(fl(F$,"linux"))||fl(F$,"mac os");var DTa=zJ(ja,"penpotPublicURI"),VK=yHa(g(DTa)?DTa:zJ(jab,"origin")),ETa=zJ(ja,"penpotRasterizerURI");null==ETa||yHa(ETa); var i0=function i0(a){switch(arguments.length){case 1:return i0.W(arguments[0]);case 2:return i0.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",k.W(arguments.length)].join(""));}};i0.W=function(a){return i0.j(a,!1)};i0.j=function(a,b){a=F(a);a=z.j(a,T);var c=UK.cb(x([VK,"assets/by-file-media-id/"]));c=!0===b?UK.cb(x([c,""+(a??"")+"/thumbnail"])):c;return""+((!1===b?UK.cb(x([c,""+(a??"")])):c)??"")};i0.fa=2;var iab=new Sh(null,new f(null,8,["font/ttf",null,"woff",null,"font/otf",null,"font/woff",null,"font/opentype",null,".otf",null,"application/font-woff",null,".ttf",null],null),null);wl(",",new Sh(null,new f(null,5,["image/gif",null,"image/png",null,"image/svg+xml",null,"image/webp",null,"image/jpeg",null],null),null));wl(",",iab);S(R7,v4,oj);S(V3,g9,sb);S(o7,Y6,ob);S(z4,Y6,ob);S(O2,F4,cd);S(E7,F4,cd);S(S5,g9,sb);S(p4,g9,sb); S(JJa,O(B9,MM,new J(null,8,5,M,[R7,V3,o7,z4,S5,O2,E7,p4],null)),wz(Eh([MM,NM,OM,PM,QM,SM,TM,UM,VM,WM,XM,LM],[new J(null,8,5,M,[R7,V3,o7,z4,S5,O2,E7,p4],null),null,null,new J(null,9,5,M,[function(a){return Ld(a)},function(a){return B(a,T)},function(a){return B(a,Q)},function(a){return B(a,VB)},function(a){return B(a,UP)},function(a){return B(a,y2)},function(a){return B(a,zW)},function(a){return B(a,xQ)},function(a){return B(a,HW)}],null),function(a){return Ld(a)&&B(a,T)&&B(a,Q)&&B(a,VB)&&B(a,UP)&& B(a,y2)&&B(a,zW)&&B(a,xQ)&&B(a,HW)},I,new J(null,8,5,M,[R7,V3,o7,z4,S5,O2,E7,p4],null),null,new J(null,8,5,M,[T,Q,VB,UP,y2,zW,xQ,HW],null),I,new J(null,9,5,M,[O(hP,new J(null,1,5,M,[xM],null),O(iP,xM)),O(hP,new J(null,1,5,M,[xM],null),O(jP,xM,T)),O(hP,new J(null,1,5,M,[xM],null),O(jP,xM,Q)),O(hP,new J(null,1,5,M,[xM],null),O(jP,xM,VB)),O(hP,new J(null,1,5,M,[xM],null),O(jP,xM,UP)),O(hP,new J(null,1,5,M,[xM],null),O(jP,xM,y2)),O(hP,new J(null,1,5,M,[xM],null),O(jP,xM,zW)),O(hP,new J(null,1,5,M,[xM], @@ -6858,7 +6858,7 @@ $$.N(null,lDa,function(a){a=F(a);var b=z.j(a,UGa),c=z.j(a,t2),d=z.j(a,dJa),h=z.j e.createRect=function(a){a=LY(a);this.file=l2(this.file,AZ,a);return k.W(f2.W(this.file))};e.deleteLibraryColor=function(a){var b=this.file;a=LY(a);a=Hj(a);this.file=M1(b,new f(null,2,[P,$7,T,a],null));return k.W(f2.W(this.file))}; e.startComponent=function(a){var b=LY(a);a=this.file;var c=bQ.ea(FP.W(b),EP.W(b),VB.W(b),UP.W(b));var d=g(c)?c:FSa;c=Q.W(b);var h=XB.W(b),m=uQ.W(b),q=vQ.W(b);b=Wj.j(Wj.j(Wj.j(Wj.j(Wj.j(H.ba(H.ba(H.ba(H.ba(H.ba(H.ba(b,P,YH),FP,FP.W(d)),EP,EP.W(d)),VB,VB.W(d)),UP,UP.W(d)),lQ,d),XB),uQ),vQ),ova),pva);b=H.ba(H.ba(c2(LU(b),a,YH),jU,null),JQ,null);this.file=H.ba(H.ba(H.ba(H.ba(M1(a,new f(null,7,[P,y5,T,T.W(b),Q,c,XB,h,uQ,m,vQ,q,GQ,new J(null,1,5,M,[b],null)],null)),f2,T.W(b)),X1,new J(null,1,5,M,[T.W(b)], null)),O1,T.W(b)),P1,t.j(P.W(b),BQ)?T.W(b):HD);return k.W(O1.W(this.file))};e.lookupShape=function(a){return vl(W1(this.file,Hj(a)))};e.closePage=function(){return this.file=Wj.j(Wj.j(Wj.j(Wj.j(this.file,R1),X1),f2),a2)};e.createCircle=function(a){a=LY(a);this.file=l2(this.file,lU,a);return k.W(f2.W(this.file))};e.createImage=function(a){a=LY(a);this.file=l2(this.file,kS,a);return k.W(f2.W(this.file))};e.createSVG=function(a){this.file=X$(this.file,LY(a));return k.W(f2.W(this.file))}; -e.createText=function(a){a=LY(a);this.file=l2(this.file,ZH,a);return k.W(f2.W(this.file))};e.createComponentInstance=function(a){this.file=Hva(this.file,LY(a));return k.W(f2.W(this.file))};e.addBool=function(a){var b=this.file;a=LY(a);var c=P1.W(b);a=c2(LU(H.cb(a,P,tT,x([jU,c]))),b,tT);this.file=Ul.ea(b2(H.ba($1(b,a),f2,T.W(a)),Q.W(a)),X1,U1,T.W(a));return k.W(f2.W(this.file))};e.createPath=function(a){a=LY(a);this.file=l2(this.file,XB,a);return k.W(f2.W(this.file))}; +e.createText=function(a){var b=this.file;a=LY(a);a=im(a,ER,BRa);this.file=l2(b,ZH,a);return k.W(f2.W(this.file))};e.createComponentInstance=function(a){this.file=Hva(this.file,LY(a));return k.W(f2.W(this.file))};e.addBool=function(a){var b=this.file;a=LY(a);var c=P1.W(b);a=c2(LU(H.cb(a,P,tT,x([jU,c]))),b,tT);this.file=Ul.ea(b2(H.ba($1(b,a),f2,T.W(a)),Q.W(a)),X1,U1,T.W(a));return k.W(f2.W(this.file))};e.createPath=function(a){a=LY(a);this.file=l2(this.file,XB,a);return k.W(f2.W(this.file))}; e.closeArtboard=function(){var a=this.file,b=Dd(X1.W(a));b=W1(a,b);b=jU.W(b);b=g(b)?b:null==O1.W(a)?HD:null;return this.file=Ul.ba(H.ba(a,P1,b),X1,Ed)};e.deleteLibraryMedia=function(a){var b=this.file;a=LY(a);a=Hj(a);this.file=M1(b,new f(null,2,[P,a8,T,a],null));return k.W(f2.W(this.file))};e.closeGroup=function(){return this.file=Eva(this.file)}; e.addPage=function(){function a(d,h){this.file=Dva(this.file,new f(null,2,[Q,d,bp,h],null));return k.W(R1.W(this.file))}function b(d){this.file=Dva(this.file,new f(null,1,[Q,d],null));return k.W(R1.W(this.file))}var c=null;c=function(d,h){switch(arguments.length){case 1:return b.call(this,d);case 2:return a.call(this,d,h)}throw Error("Invalid arity: "+arguments.length);};c.W=b;c.j=a;return c}();e.closeBool=function(){return this.file=Fva(this.file)}; e.export=function(){return $V(function(a){if(B(a,P))return null;var b=y(a,0,null);a=y(a,1,null);b=Q.W(b);var c=a.type;a=URL.createObjectURL(a);var d=NK.createElement("a");c=PJ(c);b=g(g(c)?!il(b,c):c)?""+(b??"")+(c??""):b;EJ(d,"href",a);EJ(d,"download",b);EJ(d.style,"display","none");document.body.appendChild(d);d.click();return d.remove()},xMa(this.file))};