"use strict";(self.webpackChunkstudio_client=self.webpackChunkstudio_client||[]).push([[6769],{8765:(e,r,t)=>{t.d(r,{Z:()=>s});var n,i,a,f=t(9591),o=t.n(f),l={};l.toRGBA8=function(e){var r=e.width,t=e.height;if(null==e.tabs.acTL)return[l.toRGBA8.decodeImage(e.data,r,t,e).buffer];var n=[];null==e.frames[0].data&&(e.frames[0].data=e.data);for(var i=r*t*4,a=new Uint8Array(i),f=new Uint8Array(i),o=new Uint8Array(i),s=0;s>3)]>>7-((7&v)<<0)&1);o[m]=A[R],o[m+1]=A[R+1],o[m+2]=A[R+2],o[m+3]=M<_?U[M]:255}}if(2==u)for(H=0;H>2)]>>6-((3&v)<<1)&3);o[m]=A[R],o[m+1]=A[R+1],o[m+2]=A[R+2],o[m+3]=M<_?U[M]:255}if(4==u)for(H=0;H>1)]>>4-((1&v)<<2)&15);o[m]=A[R],o[m+1]=A[R+1],o[m+2]=A[R+2],o[m+3]=M<_?U[M]:255}if(8==u)for(v=0;v>>3)]>>>7-(7&D)&1))==255*b?0:255;s[C+D]=N<<24|x<<16|x<<8|x}else if(2==u)for(D=0;D>>2)]>>>6-((3&D)<<1)&3))==85*b?0:255;s[C+D]=N<<24|x<<16|x<<8|x}else if(4==u)for(D=0;D>>1)]>>>4-((1&D)<<2)&15))==17*b?0:255;s[C+D]=N<<24|x<<16|x<<8|x}else if(8==u)for(D=0;D>>2<<3));0==f;)if(f=g(e,v,1),o=g(e,v+1,2),v+=3,0!=o){if(_&&(r=a.H.W(r,h+(1<<17))),1==o&&(t=U.J,n=U.h,u=511,d=31),2==o){l=b(e,v,5)+257,s=b(e,v+5,5)+1,c=b(e,v+10,4)+4,v+=14;for(var H=1,I=0;I<38;I+=2)U.Q[I]=0,U.Q[I+1]=0;for(I=0;IH&&(H=q)}v+=3*c,y(U.Q,H),m(U.Q,H,U.u),t=U.w,n=U.d,v=w(U.u,(1<>>4;if(T>>>8==0)r[h++]=T;else{if(256==T)break;var z=h+T-254;if(T>264){var C=U.q[T-257];z=h+(C>>>3)+b(e,v,7&C),v+=7&C}var D=n[A(e,v)&d];v+=15&D;var N=D>>>4,P=U.c[N],S=(P>>>4)+g(e,v,15&P);for(v+=15&P;h>>3),L=e[B-4]|e[B-3]<<8;_&&(r=a.H.W(r,h+L)),r.set(new i(e.buffer,e.byteOffset+B,L),h),v=B+L<<3,h+=L}return r.length==h?r:r.slice(0,h)},a.H.W=function(e,r){var t=e.length;if(r<=t)return e;var n=new Uint8Array(t<<1);return n.set(e,0),n},a.H.R=function(e,r,t,n,i,f){for(var o=a.H.e,l=a.H.Z,s=0;s>>4;if(u<=15)f[s]=u,s++;else{var d=0,h=0;16==u?(h=3+o(n,i,2),i+=2,d=f[s-1]):17==u?(h=3+o(n,i,3),i+=3):18==u&&(h=11+o(n,i,7),i+=7);for(var v=s+h;s>>1;ai&&(i=o),a++}for(;a>1,l=e[f+1],s=o<<4|l,c=r-l,u=e[f]<>>15-r]=s,u++},a.H.l=function(e,r){for(var t=a.H.m.r,n=15-r,i=0;i>>n}},a.H.M=function(e,r,t){t<<=7&r;var n=r>>>3;e[n]|=t,e[n+1]|=t>>>8},a.H.I=function(e,r,t){t<<=7&r;var n=r>>>3;e[n]|=t,e[n+1]|=t>>>8,e[n+2]|=t>>>16},a.H.e=function(e,r,t){return(e[r>>>3]|e[1+(r>>>3)]<<8)>>>(7&r)&(1<>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16)>>>(7&r)&(1<>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16)>>>(7&r)},a.H.i=function(e,r){return(e[r>>>3]|e[1+(r>>>3)]<<8|e[2+(r>>>3)]<<16|e[3+(r>>>3)]<<24)>>>(7&r)},a.H.m=(n=Uint16Array,i=Uint32Array,{K:new n(16),j:new n(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new n(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new i(32),J:new n(512),_:[],h:new n(32),$:[],w:new n(32768),C:[],v:[],d:new n(32768),D:[],u:new n(512),Q:[],r:new n(32768),s:new i(286),Y:new i(30),a:new i(19),t:new i(15e3),k:new n(65536),g:new n(32768)}),function(){for(var e=a.H.m,r=0;r<32768;r++){var t=r;t=(4278255360&(t=(4042322160&(t=(3435973836&(t=(2863311530&t)>>>1|(1431655765&t)<<1))>>>2|(858993459&t)<<2))>>>4|(252645135&t)<<4))>>>8|(16711935&t)<<8,e.r[r]=(t>>>16|t<<16)>>>17}function n(e,r,t){for(;0!=r--;)e.push(0,t)}for(r=0;r<32;r++)e.q[r]=e.S[r]<<3|e.T[r],e.c[r]=e.p[r]<<4|e.z[r];n(e._,144,8),n(e._,112,9),n(e._,24,7),n(e._,8,8),a.H.n(e._,9),a.H.A(e._,9,e.J),a.H.l(e._,9),n(e.$,32,5),a.H.n(e.$,5),a.H.A(e.$,5,e.h),a.H.l(e.$,5),n(e.Q,19,0),n(e.C,286,0),n(e.D,30,0),n(e.v,320,0)}(),a.H.N),l.decode._readInterlace=function(e,r){for(var t=r.width,n=r.height,i=l.decode._getBPP(r),a=i>>3,f=Math.ceil(t*i/8),o=new Uint8Array(n*f),s=0,c=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],d=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1],v=0;v<7;){for(var p=d[v],g=h[v],b=0,w=0,y=c[v];y>3])>>7-(7&I)&1,o[_*f+(H>>3)]|=q<<7-((7&H)<<0);if(2==i)q=(q=e[I>>3])>>6-(7&I)&3,o[_*f+(H>>2)]|=q<<6-((3&H)<<1);if(4==i)q=(q=e[I>>3])>>4-(7&I)&15,o[_*f+(H>>1)]|=q<<4-((1&H)<<2);if(i>=8)for(var R=_*f+H*a,M=0;M>3)+M];I+=i,H+=g}U++,_+=p}b*w!=0&&(s+=w*(1+A)),v+=1}return o},l.decode._getBPP=function(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth},l.decode._filterZero=function(e,r,t,n,i){var a=l.decode._getBPP(r),f=Math.ceil(n*a/8),o=l.decode._paeth;a=Math.ceil(a/8);var s=0,c=1,u=e[t],d=0;if(u>1&&(e[t]=[0,0,1][u-2]),3==u)for(d=a;d>>1)&255;for(var h=0;h>>1);for(;d>>1)}else{for(;d>8&255,e[r+1]=255&t},readUint:function(e,r){return 16777216*e[r]+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=255&t},readASCII:function(e,r,t){for(var n="",i=0;i=0&&o>=0?(u=h*r+v<<2,d=(o+h)*i+f+v<<2):(u=(-o+h)*r-f+v<<2,d=h*i+v<<2),0==l)n[d]=e[u],n[d+1]=e[u+1],n[d+2]=e[u+2],n[d+3]=e[u+3];else if(1==l){var p=e[u+3]*(1/255),g=e[u]*p,b=e[u+1]*p,w=e[u+2]*p,y=n[d+3]*(1/255),m=n[d]*y,A=n[d+1]*y,U=n[d+2]*y,_=1-p,H=p+y*_,I=0==H?0:1/H;n[d+3]=255*H,n[d+0]=(g+m*_)*I,n[d+1]=(b+A*_)*I,n[d+2]=(w+U*_)*I}else if(2==l){p=e[u+3],g=e[u],b=e[u+1],w=e[u+2],y=n[d+3],m=n[d],A=n[d+1],U=n[d+2];p==y&&g==m&&b==A&&w==U?(n[d]=0,n[d+1]=0,n[d+2]=0,n[d+3]=0):(n[d]=g,n[d+1]=b,n[d+2]=w,n[d+3]=p)}else if(3==l){p=e[u+3],g=e[u],b=e[u+1],w=e[u+2],y=n[d+3],m=n[d],A=n[d+1],U=n[d+2];if(p==y&&g==m&&b==A&&w==U)continue;if(p<220&&y>20)return!1}return!0},l.encode=function(e,r,t,n,i,a,f){null==n&&(n=0),null==f&&(f=!1);var o=l.encode.compress(e,r,t,n,[!1,!1,!1,0,f]);return l.encode.compressPNG(o,-1),l.encode._main(o,r,t,i,a)},l.encodeLL=function(e,r,t,n,i,a,f,o){for(var s={ctype:0+(1==n?0:2)+(0==i?0:4),depth:a,frames:[]},c=(Date.now(),(n+i)*a),u=c*r,d=0;d1,d=!1,h=33+(u?20:0);if(null!=i.sRGB&&(h+=13),null!=i.pHYs&&(h+=21),3==e.ctype){for(var v=e.plte.length,p=0;p>>24!=255&&(d=!0);h+=8+3*v+4+(d?8+1*v+4:0)}for(var g=0;g>>8&255,_=m>>>16&255;b[c+y+0]=A,b[c+y+1]=U,b[c+y+2]=_}if(f(b,c+=3*v,a(b,c-3*v-4,3*v+4)),c+=4,d){f(b,c,v),s(b,c+=4,"tRNS"),c+=4;for(p=0;p>>24&255;f(b,c+=v,a(b,c-v-4,v+4)),c+=4}}var H=0;for(g=0;g>2,M>>2));for(v=0;vz&&D==T[b-z])C[b]=C[b-z];else{var N=m[D];if(null==N&&(m[D]=N=A.length,A.push(D),A.length>=300))break;C[b]=N}}}var P=A.length;P<=256&&0==c&&(d=P<=2?1:P<=4?2:P<=16?4:8,d=Math.max(d,s));for(v=0;v>1)]|=k[F+Y]<<4-4*(1&Y);else if(2==d)for(Y=0;Y>2)]|=k[F+Y]<<6-2*(3&Y);else if(1==d)for(Y=0;Y>3)]|=k[F+Y]<<7-1*(7&Y)}B=Z,u=3,G=1}else if(0==w&&1==y.length){Z=new Uint8Array(z*S*3);var Q=z*S;for(b=0;bI&&(I=M),Rq&&(q=R))}-1==I&&(_=H=I=q=0),i&&(1==(1&_)&&_--,1==(1&H)&&H--);var x=(I-_+1)*(q-H+1);xb&&(b=A),Uw&&(w=U))}-1==b&&(p=g=b=w=0),f&&(1==(1&p)&&p--,1==(1&g)&&g--),a={x:p,y:g,width:b-p+1,height:w-g+1};var I=n[i];I.rect=a,I.blend=1,I.img=new Uint8Array(a.width*a.height*4),0==n[i-1].dispose?(l._copyTile(c,r,t,I.img,a.width,a.height,-a.x,-a.y,0),l.encode._prepareDiff(h,r,t,I.img,a)):l._copyTile(h,r,t,I.img,a.width,a.height,-a.x,-a.y,0)},l.encode._prepareDiff=function(e,r,t,n,i){l._copyTile(e,r,t,n,i.width,i.height,-i.x,-i.y,2)},l.encode._filterZero=function(e,r,t,n,i,a,f){var s,c=[],u=[0,1,2,3,4];-1!=a?u=[a]:(r*n>5e5||1==t)&&(u=[0]),f&&(s={level:0});for(var d=f&&null!=UZIP?UZIP:o(),h=0;h>1)+256&255;if(4==a)for(c=i;c>1)&255;for(c=i;c>1)&255}if(4==a){for(c=0;c>>1:t>>>=1;e[r]=t}return e}(),update:function(e,r,t,n){for(var i=0;i>>8;return e},crc:function(e,r,t){return 4294967295^l.crc.update(4294967295,e,r,t)}},l.quantize=function(e,r){for(var t=new Uint8Array(e),n=t.slice(0),i=new Uint32Array(n.buffer),a=l.quantize.getKDtree(n,r),f=a[0],o=a[1],s=(l.quantize.planeDst,t),c=i,u=s.length,d=new Uint8Array(t.length>>2),h=0;h>2]=w.ind,c[h>>2]=w.est.rgba}return{abuf:n.buffer,inds:d,plte:o}},l.quantize.getKDtree=function(e,r,t){null==t&&(t=1e-4);var n=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=l.quantize.stats(e,i.i0,i.i1),i.est=l.quantize.estats(i.bst);for(var a=[i];a.lengthf&&(f=a[s].est.L,o=s);if(f=u||c.i1<=u)c.est.L=0;else{var d={i0:c.i0,i1:u,bst:null,est:null,tdst:0,left:null,right:null};d.bst=l.quantize.stats(e,d.i0,d.i1),d.est=l.quantize.estats(d.bst);var h={i0:u,i1:c.i1,bst:null,est:null,tdst:0,left:null,right:null};h.bst={R:[],m:[],N:c.bst.N-d.bst.N};for(s=0;s<16;s++)h.bst.R[s]=c.bst.R[s]-d.bst.R[s];for(s=0;s<4;s++)h.bst.m[s]=c.bst.m[s]-d.bst.m[s];h.est=l.quantize.estats(h.bst),c.left=d,c.right=h,a[o]=d,a.push(h)}}a.sort((function(e,r){return r.bst.N-e.bst.N}));for(s=0;s0&&(f=e.right,o=e.left);var s=l.quantize.getNearest(f,r,t,n,i);if(s.tdst<=a*a)return s;var c=l.quantize.getNearest(o,r,t,n,i);return c.tdsta;)n-=4;if(t>=n)break;var o=r[t>>2];r[t>>2]=r[n>>2],r[n>>2]=o,t+=4,n-=4}for(;f(e,t,i)>a;)t-=4;return t+4},l.quantize.vecDot=function(e,r,t){return e[r]*t[0]+e[r+1]*t[1]+e[r+2]*t[2]+e[r+3]*t[3]},l.quantize.stats=function(e,r,t){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],a=t-r>>2,f=r;f>>0}},l.M4={multVec:function(e,r){return[e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3],e[4]*r[0]+e[5]*r[1]+e[6]*r[2]+e[7]*r[3],e[8]*r[0]+e[9]*r[1]+e[10]*r[2]+e[11]*r[3],e[12]*r[0]+e[13]*r[1]+e[14]*r[2]+e[15]*r[3]]},dot:function(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3]},sml:function(e,r){return[e*r[0],e*r[1],e*r[2],e*r[3]]}},l.encode.concatRGBA=function(e){for(var r=0,t=0;t{t.d(r,{xX:()=>h});const n=2147483647,i=36,a=/^xn--/,f=/[\x2E\u3002\uFF0E\uFF61]/g,o={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor;String.fromCharCode;function s(e){throw new RangeError(o[e])}function c(e,r){const t=e.split("@");let n="";t.length>1&&(n=t[0]+"@",e=t[1]);const i=function(e,r){const t=[];let n=e.length;for(;n--;)t[n]=r(e[n]);return t}((e=e.replace(f,".")).split("."),r).join(".");return n+i}const u=function(e,r,t){let n=0;for(e=t?l(e/700):e>>1,e+=l(e/r);e>455;n+=i)e=l(e/35);return l(n+36*e/(e+38))},d=function(e){const r=[],t=e.length;let a=0,f=128,o=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let t=0;t=128&&s("not-basic"),r.push(e.charCodeAt(t));for(let h=c>0?c+1:0;h=t&&s("invalid-input");const c=(d=e.charCodeAt(h++))>=48&&d<58?d-48+26:d>=65&&d<91?d-65:d>=97&&d<123?d-97:i;c>=i&&s("invalid-input"),c>l((n-a)/r)&&s("overflow"),a+=c*r;const u=f<=o?1:f>=o+26?26:f-o;if(cl(n/v)&&s("overflow"),r*=v}const v=r.length+1;o=u(a-c,v,0==c),l(a/v)>n-f&&s("overflow"),f+=l(a/v),a%=v,r.splice(a++,0,f)}var d;return String.fromCodePoint(...r)},h=function(e){return c(e,(function(e){return a.test(e)?d(e.slice(4).toLowerCase()):e}))}}}]);