reacthub-pixitweenjs 0.2.107-alpha.86 → 0.2.107-alpha.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1403,7 +1403,7 @@ J.registerEffect({
1403
1403
  pixi: {
1404
1404
  ...e,
1405
1405
  x: e == null ? void 0 : e.x,
1406
- y: -1500,
1406
+ y: -2500,
1407
1407
  alpha: 0
1408
1408
  }
1409
1409
  });
@@ -1416,7 +1416,7 @@ J.registerEffect({
1416
1416
  ease: "bounce.out",
1417
1417
  pixi: {
1418
1418
  ...e,
1419
- x: -1500,
1419
+ x: -2500,
1420
1420
  duration: 2,
1421
1421
  alpha: 0
1422
1422
  }
@@ -1431,7 +1431,7 @@ J.registerEffect({
1431
1431
  duration: 2,
1432
1432
  pixi: {
1433
1433
  ...e,
1434
- x: 1500
1434
+ x: 2500
1435
1435
  }
1436
1436
  });
1437
1437
  }
@@ -1443,7 +1443,7 @@ J.registerEffect({
1443
1443
  ease: "bounce.out",
1444
1444
  pixi: {
1445
1445
  ...e,
1446
- y: 1500
1446
+ y: 2e3
1447
1447
  },
1448
1448
  duration: 2
1449
1449
  });
@@ -1485,7 +1485,7 @@ J.registerEffect({
1485
1485
  t,
1486
1486
  {
1487
1487
  pixi: {
1488
- y: -1e3,
1488
+ y: -1500,
1489
1489
  alpha: 0
1490
1490
  }
1491
1491
  },
@@ -1509,7 +1509,7 @@ J.registerEffect({
1509
1509
  {
1510
1510
  pixi: {
1511
1511
  alpha: 0,
1512
- x: -1e3
1512
+ x: -2e3
1513
1513
  }
1514
1514
  },
1515
1515
  {
@@ -21445,7 +21445,7 @@ const wo = /* @__PURE__ */ ti(AU), Bh = (t, e, r, n) => {
21445
21445
  }, [L, v, y, b, x]), ee.useEffect(() => {
21446
21446
  h.current && (h.current.muted = d, p.current.isMuted = d);
21447
21447
  const ae = setTimeout(() => {
21448
- console.log("running the mute function", c, d), h.current && (h.current.muted = d, p.current.isMuted = d);
21448
+ h.current && (h.current.muted = d, p.current.isMuted = d);
21449
21449
  }, 1500);
21450
21450
  return () => {
21451
21451
  clearTimeout(ae);
package/dist/index.umd.js CHANGED
@@ -30,7 +30,7 @@
30
30
  * Subject to the terms at https://greensock.com/standard-license or for
31
31
  * Club GreenSock members, the agreement issued with that membership.
32
32
  * @author: Jack Doyle, jack@greensock.com
33
- */var ln,Of,ha,nr,ls,Ff,Eu,Nf=function(){return typeof window<"u"},Lf=function(){return ln||Nf()&&(ln=window.gsap)&&ln.registerPlugin&&ln},kf=function(e){return typeof e=="function"},iS=function(e){return console.warn(e)},sS=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ir=.212671,sr=.71516,ar=.072169,fa=function(e,r){var n=[],i=0,a=0,u,l;for(u=0;u<4;u++){for(l=0;l<5;l++)a=l===4?e[i+4]:0,n[i+l]=e[i]*r[l]+e[i+1]*r[l+5]+e[i+2]*r[l+10]+e[i+3]*r[l+15]+a;i+=5}return n},Df=function(e,r){var n=1-r,i=n*ir,a=n*sr,u=n*ar;return fa([i+r,a,u,0,0,i,a+r,u,0,0,i,a,u+r,0,0,0,0,0,1,0],e)},Bf=function(e,r,n){var i=ha(r),a=i[0]/255,u=i[1]/255,l=i[2]/255,h=1-n;return fa([h+n*a*ir,n*a*sr,n*a*ar,0,0,n*u*ir,h+n*u*sr,n*u*ar,0,0,n*l*ir,n*l*sr,h+n*l*ar,0,0,0,0,0,1,0],e)},Uf=function(e,r){r*=Math.PI/180;var n=Math.cos(r),i=Math.sin(r);return fa([ir+n*(1-ir)+i*-ir,sr+n*-sr+i*-sr,ar+n*-ar+i*(1-ar),0,0,ir+n*-ir+i*.143,sr+n*(1-sr)+i*.14,ar+n*-ar+i*-.283,0,0,ir+n*-ir+i*-(1-ir),sr+n*-sr+i*sr,ar+n*(1-ar)+i*ar,0,0,0,0,0,1,0,0,0,0,0,1],e)},$f=function(e,r){return fa([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],e)},Gf=function(e,r){var n=nr.filters[r],i=e.filters||[],a=i.length,u;for(n||iS(r+" not found. PixiPlugin.registerPIXI(PIXI)");--a>-1;)if(i[a]instanceof n)return i[a];return u=new n,r==="BlurFilter"&&(u.blur=0),i.push(u),e.filters=i,u},bt=function(e,r,n,i){r.add(n,e,n[e],i[e]),r._props.push(e)},zf=function(e,r){var n=new nr.filters.ColorMatrixFilter;return n.matrix=r,n.brightness(e,!0),n.matrix},aS=function(e){var r={},n;for(n in e)r[n]=e[n];return r},Wt={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},oS=function(e,r,n){var i=Gf(e,"ColorMatrixFilter"),a=e._gsColorMatrixFilter=e._gsColorMatrixFilter||aS(Wt),u=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter),l,h,p;for(p=i.matrix,r.resolution&&(i.resolution=r.resolution),r.matrix&&r.matrix.length===p.length?(h=r.matrix,a.contrast!==1&&bt("contrast",n,a,Wt),a.hue&&bt("hue",n,a,Wt),a.brightness!==1&&bt("brightness",n,a,Wt),a.colorizeAmount&&(bt("colorize",n,a,Wt),bt("colorizeAmount",n,a,Wt)),a.saturation!==1&&bt("saturation",n,a,Wt)):(h=sS.slice(),r.contrast!=null?(h=$f(h,+r.contrast),bt("contrast",n,a,r)):a.contrast!==1&&(u?h=$f(h,a.contrast):bt("contrast",n,a,Wt)),r.hue!=null?(h=Uf(h,+r.hue),bt("hue",n,a,r)):a.hue&&(u?h=Uf(h,a.hue):bt("hue",n,a,Wt)),r.brightness!=null?(h=zf(+r.brightness,h),bt("brightness",n,a,r)):a.brightness!==1&&(u?h=zf(a.brightness,h):bt("brightness",n,a,Wt)),r.colorize!=null?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,h=Bf(h,r.colorize,r.colorizeAmount),bt("colorize",n,a,r),bt("colorizeAmount",n,a,r)):a.colorizeAmount&&(u?h=Bf(h,a.colorize,a.colorizeAmount):(bt("colorize",n,a,Wt),bt("colorizeAmount",n,a,Wt))),r.saturation!=null?(h=Df(h,+r.saturation),bt("saturation",n,a,r)):a.saturation!==1&&(u?h=Df(h,a.saturation):bt("saturation",n,a,Wt))),l=h.length;--l>-1;)h[l]!==p[l]&&n.add(p,l,p[l],h[l],"colorMatrixFilter");n._props.push("colorMatrixFilter")},uS=function(e,r){var n=r.t,i=r.p,a=r.color,u=r.set;u(n,i,a[0]<<16|a[1]<<8|a[2])},lS=function(e,r){var n=r.g;n&&(n.dirty++,n.clearDirty++)},cS=function(e,r){r.t.visible=!!r.t.alpha},Hf=function(e,r,n,i){var a=e[r],u=ha(kf(a)?e[r.indexOf("set")||!kf(e["get"+r.substr(3)])?r:"get"+r.substr(3)]():a),l=ha(n);i._pt=new ls(i._pt,e,r,0,0,uS,{t:e,p:r,color:u,set:Ff(e,r)}),i.add(u,0,u[0],l[0]),i.add(u,1,u[1],l[1]),i.add(u,2,u[2],l[2])},hS={tint:1,lineColor:1,fillColor:1},Vf="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),Cu={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},fS={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},da=Math.PI/180,Xf=function(e){return typeof e=="string"},dS=function(e){return Xf(e)&&e.charAt(1)==="="?e.substr(0,2)+parseFloat(e.substr(2))*da:e*da},pS=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e5)/1e5,r)},gS=function(e,r,n,i,a,u){var l=360*(u?da:1),h=Xf(a),p=h&&a.charAt(1)==="="?+(a.charAt(0)+"1"):0,m=parseFloat(p?a.substr(2):a)*(u?da:1),c=p?m*p:m-i,d=i+c,g,v;return h&&(g=a.split("_")[1],g==="short"&&(c%=l,c!==c%(l/2)&&(c+=c<0?l:-l)),g==="cw"&&c<0?c=(c+l*1e10)%l-~~(c/l)*l:g==="ccw"&&c>0&&(c=(c-l*1e10)%l-~~(c/l)*l)),e._pt=v=new ls(e._pt,r,n,i,c,pS),v.e=d,v},jf=function(){Nf()&&(Of=window,ln=Lf(),nr=nr||Of.PIXI,Eu=nr&&nr.VERSION&&nr.VERSION.charAt(0)==="4",ha=function(r){return ln.utils.splitColor((r+"").substr(0,2)==="0x"?"#"+r.substr(2):r)})},pa,cs;for(pa=0;pa<Vf.length;pa++)cs=Vf[pa],Cu[cs+"X"]=cs,Cu[cs+"Y"]=cs;var Iu={version:"3.11.5",name:"pixi",register:function(e,r,n){ln=e,ls=n,Ff=r.getSetter,jf()},registerPIXI:function(e){nr=e},init:function(e,r,n,i,a){if(nr||jf(),!nr||!(e instanceof nr.DisplayObject))return console.warn(e,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var u,l,h,p,m,c,d,g,v;for(c in r){if(u=Cu[c],h=r[c],u)l=~c.charAt(c.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(e[u],l,e[u][l],u==="skew"?dS(h):h,0,0,0,0,0,1);else if(c==="scale"||c==="anchor"||c==="pivot"||c==="tileScale")this.add(e[c],"x",e[c].x,h),this.add(e[c],"y",e[c].y,h);else if(c==="rotation"||c==="angle")gS(this,e,c,e[c],h,c==="rotation");else if(fS[c])p||(oS(e,r.colorMatrixFilter||r,this),p=!0);else if(c==="blur"||c==="blurX"||c==="blurY"||c==="blurPadding"){if(m=Gf(e,"BlurFilter"),this.add(m,c,m[c],h),r.blurPadding!==0)for(d=r.blurPadding||Math.max(m[c],h)*2,g=e.filters.length;--g>-1;)e.filters[g].padding=Math.max(e.filters[g].padding,d)}else if(hS[c])if((c==="lineColor"||c==="fillColor")&&e instanceof nr.Graphics)for(v=(e.geometry||e).graphicsData,this._pt=new ls(this._pt,e,c,0,0,lS,{g:e.geometry||e}),g=v.length;--g>-1;)Hf(Eu?v[g]:v[g][c.substr(0,4)+"Style"],Eu?c:"color",h,this);else Hf(e,c,h,this);else c==="autoAlpha"?(this._pt=new ls(this._pt,e,"visible",0,0,cS),this.add(e,"alpha",e.alpha,h),this._props.push("alpha","visible")):c!=="resolution"&&this.add(e,c,"get",h);this._props.push(c)}}};Lf()&&ln.registerPlugin(Iu),ee.registerPlugin(Iu),Iu.registerPIXI($t),ee.registerPlugin(us),us.create("springBounce","0.32, 1.06, 0.61, 0.93"),ee.registerEffect({name:"PULSE",effect(t,e){return ee.timeline().fromTo(t,{pixi:{scaleX:.9,scaleY:.9}},{pixi:{scaleX:1.2,scaleY:1.2},duration:.5,ease:"slow"}).to(t,{pixi:{scaleX:1,scaleY:1,...e},duration:.5})}}),ee.registerEffect({name:"SHAKE",effect(t,e){return ee.timeline().to(t,{duration:.1,pixi:{x:"+=5"}}).to(t,{duration:.1,pixi:{x:"-=10"}}).to(t,{duration:.1,pixi:{x:"+=10"}}).to(t,{duration:.1,pixi:{x:"-=10"}}).to(t,{duration:.1,pixi:{x:"+=5"}}).to(t,{pixi:{...e},duration:.5})}}),ee.registerEffect({name:"SWING",effect(t,e){return ee.timeline().to(t,{duration:.5,pixi:{rotation:1}}).to(t,{duration:.5,pixi:{rotation:-1.5}}).to(t,{pixi:{rotation:0,...e},duration:.5})}}),ee.registerEffect({name:"JELLO",effect(t,e){return ee.timeline().to(t,{duration:.3,pixi:{scaleX:.5,rotation:-1}}).to(t,{duration:.4,pixi:{scaleX:1.5,rotation:1}}).to(t,{duration:.3,pixi:{scaleX:1,rotation:0}}).to(t,{pixi:{rotation:0,...e},duration:.5})}}),ee.registerEffect({name:"WOOBLE",effect(t,e){return ee.timeline().to(t,{duration:.3,pixi:{scaleX:.5,x:e.x*-.5}}).to(t,{duration:.3,pixi:{scaleX:1.5,x:e.x*1.5}}).to(t,{duration:.3,pixi:{scaleX:.5,x:e.x*-.01}}).to(t,{duration:.3,pixi:{scaleX:1,x:e.x}}).to(t,{rotation:0,pixi:{...e,rotation:0},duration:.5})}}),ee.registerEffect({name:"NONE",effect(t,e){return ee.timeline().to(t,{duration:0})}}),ee.registerEffect({name:"FLASH",effect(t,e){return ee.timeline().to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1,...e})}}),ee.registerEffect({name:"BOUNCE_IN",effect(t,e){return ee.timeline().fromTo(t,{pixi:{scaleX:1.5,scaleY:1.5}},{...e,pixi:{x:e==null?void 0:e.x,y:e==null?void 0:e.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),ee.registerEffect({name:"BOUNCE_IN_DOWN",effect(t,e){return ee.timeline().from(t,{duration:2,ease:"bounce.out",immediateRender:!0,pixi:{...e,x:e==null?void 0:e.x,y:-1500,alpha:0}})}}),ee.registerEffect({name:"BOUNCE_IN_LEFT",effect(t,e){return ee.timeline().from(t,{ease:"bounce.out",pixi:{...e,x:-1500,duration:2,alpha:0}})}}),ee.registerEffect({name:"BOUNCE_IN_RIGHT",effect(t,e){return ee.timeline().from(t,{ease:"bounce.out",duration:2,pixi:{...e,x:1500}})}}),ee.registerEffect({name:"BOUNCE_IN_UP",effect(t,e){return ee.timeline().from(t,{ease:"bounce.out",pixi:{...e,y:1500},duration:2})}}),ee.registerEffect({name:"BOUNCE_OUT",effect(t,e){return ee.timeline().from(t,{...e,ease:"bounce.in",pixi:{y:2e3},duration:1.5})}}),ee.registerEffect({name:"FADE_IN",effect(t){return ee.timeline().fromTo(t,{alpha:0},{ease:"power4.in",alpha:1,duration:1})}}),ee.registerEffect({name:"FADE_IN_DOWN",effect(t,e){return ee.timeline().fromTo(t,{pixi:{y:-1e3,alpha:0}},{duration:1,ease:"power4.in",pixi:{y:0,alpha:1,...e}})}}),ee.registerEffect({name:"FADE_IN_LEFT",effect(t,e){return ee.timeline().fromTo(t,{pixi:{alpha:0,x:-1e3}},{ease:"power4.in",pixi:{x:0,alpha:1,...e},duration:1})}}),ee.registerEffect({name:"FADE_IN_RIGHT",effect(t,e){return ee.fromTo(t,{pixi:{x:2e3,alpha:0}},{duration:1,ease:"power4.in",pixi:{x:0,alpha:1,...e}})}}),ee.registerEffect({name:"FADE_IN_UP",effect(t,e){return ee.fromTo(t,{pixi:{y:2e3,alpha:0}},{duration:.8,ease:"power4.in",pixi:{y:0,alpha:1,...e}})}}),ee.registerEffect({name:"SPIN",effect(t){return ee.to(t,{rotation:(e,r)=>ee.utils.snap(360,Number(ee.getProperty(r,"rotation"))+360)})}});function Wf(){return{updateEffect:j.useCallback((e,r,n)=>ee.effects[r]&&e?ee.effects[r](e,n):ee.effects.NONE(e,n),[])}}var Ru=(t=>(t.NONE="NONE",t.FLASH="FLASH",t.PULSE="PULSE",t.SHAKE="SHAKE",t.SWING="SWING",t.JELLO="JELLO",t.WOOBLE="WOOBLE",t.FADE_IN="FADE_IN",t.FADE_OUT="FADE_OUT",t.FADE_IN_OUT="FADE_IN_OUT",t.SLIDE_IN_LEFT="SLIDE_IN_LEFT",t.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",t.SLIDE_IN_TOP="SLIDE_IN_TOP",t.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",t.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",t.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",t.SLIDE_OUT_TOP="SLIDE_OUT_TOP",t.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",t.ZOOM_IN="ZOOM_IN",t.ZOOM_OUT="ZOOM_OUT",t.ZOOM_IN_OUT="ZOOM_IN_OUT",t.BOUNCE_IN="BOUNCE_IN",t.BOUNCE_OUT="BOUNCE_OUT",t.BOUNCE_IN_OUT="BOUNCE_IN_OUT",t.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",t.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",t.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",t.BOUNCE_IN_UP="BOUNCE_IN_UP",t.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",t.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",t.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",t.BOUNCE_OUT_UP="BOUNCE_OUT_UP",t.FADE_IN_DOWN="FADE_IN_DOWN",t.FADE_IN_LEFT="FADE_IN_LEFT",t.FADE_IN_RIGHT="FADE_IN_RIGHT",t.FADE_IN_UP="FADE_IN_UP",t.FADE_OUT_DOWN="FADE_OUT_DOWN",t.FADE_OUT_LEFT="FADE_OUT_LEFT",t.FADE_OUT_RIGHT="FADE_OUT_RIGHT",t.FADE_OUT_UP="FADE_OUT_UP",t.ELASTIC_IN="ELASTIC_IN",t.ELASTIC_OUT="ELASTIC_OUT",t.ELASTIC_IN_OUT="ELASTIC_IN_OUT",t.BACK_IN="BACK_IN",t.BACK_OUT="BACK_OUT",t.BACK_IN_OUT="BACK_IN_OUT",t.CIRCULAR_IN="CIRCULAR_IN",t.CIRCULAR_OUT="CIRCULAR_OUT",t.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",t.EXPO_IN="EXPO_IN",t.EXPO_OUT="EXPO_OUT",t.EXPO_IN_OUT="EXPO_IN_OUT",t.SINE_IN="SINE_IN",t.SINE_OUT="SINE_OUT",t.SINE_IN_OUT="SINE_IN_OUT",t.BOUNCE="BOUNCE",t.ELASTIC="ELASTIC",t.BACK="BACK",t.CIRCULAR="CIRCULAR",t.EXPO="EXPO",t.SINE="SINE",t))(Ru||{});const mS=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],Pn=te.forwardRef((t,e)=>{const[r,n]=te.useState(!1),[i,a]=j.useState(!1),[u,l]=j.useState(!1),[h,p]=j.useState(),m=Iw(h,300),c=j.useRef(null),d=j.useRef(null),g=j.useRef(null),v=j.useRef(null),y=j.useRef(null),b=j.useRef(null),{tl:x}=j.useContext(on),{uniqueId:E,visible:w,startAt:I,transformation:{x:O,y:F,width:N,height:L,scale:D=[1,1],rotation:V=0,effect:Y,overlay:ie,animation:X=Ru.NONE},applyTransformer:G,disabled:ae,pointerdown:se,pointerout:z,pointerover:Q,isText:ge,isDragging:W,isGif:q,onDoubleClick:he,isTextEditMode:fe}=t,me=Wf();ht(Ze.COMPLETE,()=>{c.current}),te.useImperativeHandle(e,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>u}),[i,u]),te.useEffect(()=>{c.current&&n(!0)},[]),te.useEffect(()=>{p({x:O,y:F,width:N,height:L,animation:X})},[X,O,F,N,L]),te.useEffect(()=>{if(!d.current)return;const Re=ee.context(()=>{if(x.current&&m){const{x:xe,y:Ae,animation:$e}=m||{},Ke=x.current.progress(),pe=me.updateEffect(c.current,$e,{immediateRender:!1,x:xe,y:Ae,overwrite:!0});y.current&&(x.current.remove(y.current),y.current.progress(0).kill()),Ke>.1?(pe.eventCallback("onComplete",()=>{pe.remove("onComplete"),x.current.add(pe,I),y.current=pe}),pe.play()):(pe.progress(1),x.current.add(pe,I),y.current=pe)}else y.current&&y.current.progress(0).kill()},d.current);return()=>{Re.revert()}},[I,m]);const Te=te.useCallback(()=>{l(!0),Q&&Q()},[]),Ce=te.useCallback(()=>{a(!0)},[]),Ue=te.useCallback(Re=>{t.onAnchorTransformationEnd&&t.onAnchorTransformationEnd(Re),a(!1)},[]),He=De.withFilters(De.Container,{matrix:$t.filters.ColorMatrixFilter});return Se.jsxs(De.Container,{ref:d,children:[Se.jsx(De.Container,{ref:c,position:[O,F],pivot:[O,F],width:N,height:L,scale:D,rotation:V,...!ae&&w&&!i&&!W&&{interactive:!0,buttonMode:!0,pointerdown:se,pointerover:Q,pointerout:z},children:Se.jsxs(De.Container,{ref:b,children:[!q&&Se.jsx(He,{scale:1,apply:({matrix:Re})=>{Y===In.BlackAndWhite?Re.desaturate():Y===In.Sepia?Re.sepia():Y===In.RetroVintage||Y===In.NightVision?Re.negative():Y===In.Normal&&Re.reset()},matrix:{enabled:!0,matrix:mS},children:Se.jsx(De.Container,{ref:g,children:t.children})}),q&&Se.jsx(De.Container,{ref:g,children:t.children}),!ss(ie)&&ie!==Au.NONE&&ie!==Au.NORMAL&&Se.jsx(Hw,{overlay:ie,width:N,height:L,x:O,y:F})]})}),G&&w&&!fe&&Se.jsx(ov,{pixiTransformerRef:v,imageRef:c,isMounted:r,transformCommit:Ue,transformChange:Ce,mouseoverEvent:Te,uniqueId:E,isText:ge,onDoubleClick:he})]})});var Mn=(t=>(t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2",t))(Mn||{}),qf=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS",t))(qf||{}),Pu=(t=>(t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL",t))(Pu||{}),de=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR",t))(de||{}),cn=(t=>(t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t))(cn||{}),Z=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(Z||{}),fi=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(fi||{}),Ge=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(Ge||{}),Mu=(t=>(t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT",t))(Mu||{}),kr=(t=>(t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR",t))(kr||{}),hs=(t=>(t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t))(hs||{}),On=(t=>(t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL",t))(On||{}),hn=(t=>(t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",t))(hn||{}),Fn=(t=>(t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT",t))(Fn||{}),Ou=(t=>(t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t))(Ou||{}),or=(t=>(t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp",t))(or||{}),vt=(t=>(t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",t))(vt||{}),_t=(t=>(t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH",t))(_t||{}),Dr=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t))(Dr||{});const Ie={ADAPTER:{createCanvas:(t,e)=>{const r=document.createElement("canvas");return r.width=t,r.height=e,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>new DOMParser().parseFromString(t,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var Fu=/iPhone/i,Yf=/iPod/i,Kf=/iPad/i,Zf=/\biOS-universal(?:.+)Mac\b/i,Nu=/\bAndroid(?:.+)Mobile\b/i,Qf=/Android/i,di=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ga=/Silk/i,Xr=/Windows Phone/i,Jf=/\bWindows(?:.+)ARM\b/i,ed=/BlackBerry/i,td=/BB10/i,rd=/Opera Mini/i,nd=/\b(CriOS|Chrome)(?:.+)Mobile/i,id=/Mobile(?:.+)Firefox\b/i,sd=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function _S(t){return function(e){return e.test(t)}}function ad(t){var e={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var r=e.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=_S(r),a={apple:{phone:i(Fu)&&!i(Xr),ipod:i(Yf),tablet:!i(Fu)&&(i(Kf)||sd(e))&&!i(Xr),universal:i(Zf),device:(i(Fu)||i(Yf)||i(Kf)||i(Zf)||sd(e))&&!i(Xr)},amazon:{phone:i(di),tablet:!i(di)&&i(ga),device:i(di)||i(ga)},android:{phone:!i(Xr)&&i(di)||!i(Xr)&&i(Nu),tablet:!i(Xr)&&!i(di)&&!i(Nu)&&(i(ga)||i(Qf)),device:!i(Xr)&&(i(di)||i(ga)||i(Nu)||i(Qf))||i(/\bokhttp\b/i)},windows:{phone:i(Xr),tablet:i(Jf),device:i(Xr)||i(Jf)},other:{blackberry:i(ed),blackberry10:i(td),opera:i(rd),firefox:i(id),chrome:i(nd),device:i(ed)||i(td)||i(rd)||i(id)||i(nd)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const pi=(ad.default??ad)(globalThis.navigator);Ie.RETINA_PREFIX=/@([0-9\.]+)x/,Ie.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var od={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(h,p,m){this.fn=h,this.context=p,this.once=m||!1}function a(h,p,m,c,d){if(typeof m!="function")throw new TypeError("The listener must be a function");var g=new i(m,c||h,d),v=r?r+p:p;return h._events[v]?h._events[v].fn?h._events[v]=[h._events[v],g]:h._events[v].push(g):(h._events[v]=g,h._eventsCount++),h}function u(h,p){--h._eventsCount===0?h._events=new n:delete h._events[p]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var p=[],m,c;if(this._eventsCount===0)return p;for(c in m=this._events)e.call(m,c)&&p.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(m)):p},l.prototype.listeners=function(p){var m=r?r+p:p,c=this._events[m];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,g=c.length,v=new Array(g);d<g;d++)v[d]=c[d].fn;return v},l.prototype.listenerCount=function(p){var m=r?r+p:p,c=this._events[m];return c?c.fn?1:c.length:0},l.prototype.emit=function(p,m,c,d,g,v){var y=r?r+p:p;if(!this._events[y])return!1;var b=this._events[y],x=arguments.length,E,w;if(b.fn){switch(b.once&&this.removeListener(p,b.fn,void 0,!0),x){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,c),!0;case 4:return b.fn.call(b.context,m,c,d),!0;case 5:return b.fn.call(b.context,m,c,d,g),!0;case 6:return b.fn.call(b.context,m,c,d,g,v),!0}for(w=1,E=new Array(x-1);w<x;w++)E[w-1]=arguments[w];b.fn.apply(b.context,E)}else{var I=b.length,O;for(w=0;w<I;w++)switch(b[w].once&&this.removeListener(p,b[w].fn,void 0,!0),x){case 1:b[w].fn.call(b[w].context);break;case 2:b[w].fn.call(b[w].context,m);break;case 3:b[w].fn.call(b[w].context,m,c);break;case 4:b[w].fn.call(b[w].context,m,c,d);break;default:if(!E)for(O=1,E=new Array(x-1);O<x;O++)E[O-1]=arguments[O];b[w].fn.apply(b[w].context,E)}}return!0},l.prototype.on=function(p,m,c){return a(this,p,m,c,!1)},l.prototype.once=function(p,m,c){return a(this,p,m,c,!0)},l.prototype.removeListener=function(p,m,c,d){var g=r?r+p:p;if(!this._events[g])return this;if(!m)return u(this,g),this;var v=this._events[g];if(v.fn)v.fn===m&&(!d||v.once)&&(!c||v.context===c)&&u(this,g);else{for(var y=0,b=[],x=v.length;y<x;y++)(v[y].fn!==m||d&&!v[y].once||c&&v[y].context!==c)&&b.push(v[y]);b.length?this._events[g]=b.length===1?b[0]:b:u(this,g)}return this},l.prototype.removeAllListeners=function(p){var m;return p?(m=r?r+p:p,this._events[m]&&u(this,m)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(od);var vS=od.exports;const ma=Cn(vS);var Lu={exports:{}};Lu.exports=_a,Lu.exports.default=_a;function _a(t,e,r){r=r||2;var n=e&&e.length,i=n?e[0]*r:t.length,a=ud(t,0,i,r,!0),u=[];if(!a||a.next===a.prev)return u;var l,h,p,m,c,d,g;if(n&&(a=wS(t,e,a,r)),t.length>80*r){l=p=t[0],h=m=t[1];for(var v=r;v<i;v+=r)c=t[v],d=t[v+1],c<l&&(l=c),d<h&&(h=d),c>p&&(p=c),d>m&&(m=d);g=Math.max(p-l,m-h),g=g!==0?32767/g:0}return fs(a,u,r,l,h,g,0),u}function ud(t,e,r,n,i){var a,u;if(i===Bu(t,e,r,n)>0)for(a=e;a<r;a+=n)u=hd(a,t[a],t[a+1],u);else for(a=r-n;a>=e;a-=n)u=hd(a,t[a],t[a+1],u);return u&&va(u,u.next)&&(ps(u),u=u.next),u}function Nn(t,e){if(!t)return t;e||(e=t);var r=t,n;do if(n=!1,!r.steiner&&(va(r,r.next)||ot(r.prev,r,r.next)===0)){if(ps(r),r=e=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==e);return e}function fs(t,e,r,n,i,a,u){if(t){!u&&a&&IS(t,n,i,a);for(var l=t,h,p;t.prev!==t.next;){if(h=t.prev,p=t.next,a?xS(t,n,i,a):yS(t)){e.push(h.i/r|0),e.push(t.i/r|0),e.push(p.i/r|0),ps(t),t=p.next,l=p.next;continue}if(t=p,t===l){u?u===1?(t=bS(Nn(t),e,r),fs(t,e,r,n,i,a,2)):u===2&&TS(t,e,r,n,i,a):fs(Nn(t),e,r,n,i,a,1);break}}}}function yS(t){var e=t.prev,r=t,n=t.next;if(ot(e,r,n)>=0)return!1;for(var i=e.x,a=r.x,u=n.x,l=e.y,h=r.y,p=n.y,m=i<a?i<u?i:u:a<u?a:u,c=l<h?l<p?l:p:h<p?h:p,d=i>a?i>u?i:u:a>u?a:u,g=l>h?l>p?l:p:h>p?h:p,v=n.next;v!==e;){if(v.x>=m&&v.x<=d&&v.y>=c&&v.y<=g&&gi(i,l,a,h,u,p,v.x,v.y)&&ot(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function xS(t,e,r,n){var i=t.prev,a=t,u=t.next;if(ot(i,a,u)>=0)return!1;for(var l=i.x,h=a.x,p=u.x,m=i.y,c=a.y,d=u.y,g=l<h?l<p?l:p:h<p?h:p,v=m<c?m<d?m:d:c<d?c:d,y=l>h?l>p?l:p:h>p?h:p,b=m>c?m>d?m:d:c>d?c:d,x=ku(g,v,e,r,n),E=ku(y,b,e,r,n),w=t.prevZ,I=t.nextZ;w&&w.z>=x&&I&&I.z<=E;){if(w.x>=g&&w.x<=y&&w.y>=v&&w.y<=b&&w!==i&&w!==u&&gi(l,m,h,c,p,d,w.x,w.y)&&ot(w.prev,w,w.next)>=0||(w=w.prevZ,I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0))return!1;I=I.nextZ}for(;w&&w.z>=x;){if(w.x>=g&&w.x<=y&&w.y>=v&&w.y<=b&&w!==i&&w!==u&&gi(l,m,h,c,p,d,w.x,w.y)&&ot(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;I&&I.z<=E;){if(I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0)return!1;I=I.nextZ}return!0}function bS(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!va(i,a)&&ld(i,n,n.next,a)&&ds(i,a)&&ds(a,i)&&(e.push(i.i/r|0),e.push(n.i/r|0),e.push(a.i/r|0),ps(n),ps(n.next),n=t=a),n=n.next}while(n!==t);return Nn(n)}function TS(t,e,r,n,i,a){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&MS(u,l)){var h=cd(u,l);u=Nn(u,u.next),h=Nn(h,h.next),fs(u,e,r,n,i,a,0),fs(h,e,r,n,i,a,0);return}l=l.next}u=u.next}while(u!==t)}function wS(t,e,r,n){var i=[],a,u,l,h,p;for(a=0,u=e.length;a<u;a++)l=e[a]*n,h=a<u-1?e[a+1]*n:t.length,p=ud(t,l,h,n,!1),p===p.next&&(p.steiner=!0),i.push(PS(p));for(i.sort(SS),a=0;a<i.length;a++)r=AS(i[a],r);return r}function SS(t,e){return t.x-e.x}function AS(t,e){var r=ES(t,e);if(!r)return e;var n=cd(r,t);return Nn(n,n.next),Nn(r,r.next)}function ES(t,e){var r=e,n=t.x,i=t.y,a=-1/0,u;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a&&(a=l,u=r.x<r.next.x?r:r.next,l===n))return u}r=r.next}while(r!==e);if(!u)return null;var h=u,p=u.x,m=u.y,c=1/0,d;r=u;do n>=r.x&&r.x>=p&&n!==r.x&&gi(i<m?n:a,i,p,m,i<m?a:n,i,r.x,r.y)&&(d=Math.abs(i-r.y)/(n-r.x),ds(r,t)&&(d<c||d===c&&(r.x>u.x||r.x===u.x&&CS(u,r)))&&(u=r,c=d)),r=r.next;while(r!==h);return u}function CS(t,e){return ot(t.prev,t,e.prev)<0&&ot(e.next,t,t.next)<0}function IS(t,e,r,n){var i=t;do i.z===0&&(i.z=ku(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,RS(i)}function RS(t){var e,r,n,i,a,u,l,h,p=1;do{for(r=t,t=null,a=null,u=0;r;){for(u++,n=r,l=0,e=0;e<p&&(l++,n=n.nextZ,!!n);e++);for(h=p;l>0||h>0&&n;)l!==0&&(h===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,h--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,p*=2}while(u>1);return t}function ku(t,e,r,n,i){return t=(t-r)*i|0,e=(e-n)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function PS(t){var e=t,r=t;do(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next;while(e!==t);return r}function gi(t,e,r,n,i,a,u,l){return(i-u)*(e-l)>=(t-u)*(a-l)&&(t-u)*(n-l)>=(r-u)*(e-l)&&(r-u)*(a-l)>=(i-u)*(n-l)}function MS(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!OS(t,e)&&(ds(t,e)&&ds(e,t)&&FS(t,e)&&(ot(t.prev,t,e.prev)||ot(t,e.prev,e))||va(t,e)&&ot(t.prev,t,t.next)>0&&ot(e.prev,e,e.next)>0)}function ot(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function va(t,e){return t.x===e.x&&t.y===e.y}function ld(t,e,r,n){var i=xa(ot(t,e,r)),a=xa(ot(t,e,n)),u=xa(ot(r,n,t)),l=xa(ot(r,n,e));return!!(i!==a&&u!==l||i===0&&ya(t,r,e)||a===0&&ya(t,n,e)||u===0&&ya(r,t,n)||l===0&&ya(r,e,n))}function ya(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function xa(t){return t>0?1:t<0?-1:0}function OS(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&ld(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function ds(t,e){return ot(t.prev,t,t.next)<0?ot(t,e,t.next)>=0&&ot(t,t.prev,e)>=0:ot(t,e,t.prev)<0||ot(t,t.next,e)<0}function FS(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==t);return n}function cd(t,e){var r=new Du(t.i,t.x,t.y),n=new Du(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function hd(t,e,r,n){var i=new Du(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function ps(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Du(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}_a.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,u=Math.abs(Bu(t,0,a,r));if(i)for(var l=0,h=e.length;l<h;l++){var p=e[l]*r,m=l<h-1?e[l+1]*r:t.length;u-=Math.abs(Bu(t,p,m,r))}var c=0;for(l=0;l<n.length;l+=3){var d=n[l]*r,g=n[l+1]*r,v=n[l+2]*r;c+=Math.abs((t[d]-t[v])*(t[g+1]-t[d+1])-(t[d]-t[g])*(t[v+1]-t[d+1]))}return u===0&&c===0?0:Math.abs((c-u)/u)};function Bu(t,e,r,n){for(var i=0,a=e,u=r-n;a<r;a+=n)i+=(t[u]-t[a])*(t[a+1]+t[u+1]),u=a;return i}_a.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var u=0;u<e;u++)r.vertices.push(t[i][a][u]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r};var NS=Lu.exports;const LS=Cn(NS);var ba={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */ba.exports,function(t,e){(function(r){var n=e&&!e.nodeType&&e,i=t&&!t.nodeType&&t,a=typeof Et=="object"&&Et;(a.global===a||a.window===a||a.self===a)&&(r=a);var u,l=2147483647,h=36,p=1,m=26,c=38,d=700,g=72,v=128,y="-",b=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=h-p,O=Math.floor,F=String.fromCharCode,N;function L(W){throw new RangeError(w[W])}function D(W,q){for(var he=W.length,fe=[];he--;)fe[he]=q(W[he]);return fe}function V(W,q){var he=W.split("@"),fe="";he.length>1&&(fe=he[0]+"@",W=he[1]),W=W.replace(E,".");var me=W.split("."),Te=D(me,q).join(".");return fe+Te}function Y(W){for(var q=[],he=0,fe=W.length,me,Te;he<fe;)me=W.charCodeAt(he++),me>=55296&&me<=56319&&he<fe?(Te=W.charCodeAt(he++),(Te&64512)==56320?q.push(((me&1023)<<10)+(Te&1023)+65536):(q.push(me),he--)):q.push(me);return q}function ie(W){return D(W,function(q){var he="";return q>65535&&(q-=65536,he+=F(q>>>10&1023|55296),q=56320|q&1023),he+=F(q),he}).join("")}function X(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:h}function G(W,q){return W+22+75*(W<26)-((q!=0)<<5)}function ae(W,q,he){var fe=0;for(W=he?O(W/d):W>>1,W+=O(W/q);W>I*m>>1;fe+=h)W=O(W/I);return O(fe+(I+1)*W/(W+c))}function se(W){var q=[],he=W.length,fe,me=0,Te=v,Ce=g,Ue,He,Re,xe,Ae,$e,Ke,pe,ve;for(Ue=W.lastIndexOf(y),Ue<0&&(Ue=0),He=0;He<Ue;++He)W.charCodeAt(He)>=128&&L("not-basic"),q.push(W.charCodeAt(He));for(Re=Ue>0?Ue+1:0;Re<he;){for(xe=me,Ae=1,$e=h;Re>=he&&L("invalid-input"),Ke=X(W.charCodeAt(Re++)),(Ke>=h||Ke>O((l-me)/Ae))&&L("overflow"),me+=Ke*Ae,pe=$e<=Ce?p:$e>=Ce+m?m:$e-Ce,!(Ke<pe);$e+=h)ve=h-pe,Ae>O(l/ve)&&L("overflow"),Ae*=ve;fe=q.length+1,Ce=ae(me-xe,fe,xe==0),O(me/fe)>l-Te&&L("overflow"),Te+=O(me/fe),me%=fe,q.splice(me++,0,Te)}return ie(q)}function z(W){var q,he,fe,me,Te,Ce,Ue,He,Re,xe,Ae,$e=[],Ke,pe,ve,st;for(W=Y(W),Ke=W.length,q=v,he=0,Te=g,Ce=0;Ce<Ke;++Ce)Ae=W[Ce],Ae<128&&$e.push(F(Ae));for(fe=me=$e.length,me&&$e.push(y);fe<Ke;){for(Ue=l,Ce=0;Ce<Ke;++Ce)Ae=W[Ce],Ae>=q&&Ae<Ue&&(Ue=Ae);for(pe=fe+1,Ue-q>O((l-he)/pe)&&L("overflow"),he+=(Ue-q)*pe,q=Ue,Ce=0;Ce<Ke;++Ce)if(Ae=W[Ce],Ae<q&&++he>l&&L("overflow"),Ae==q){for(He=he,Re=h;xe=Re<=Te?p:Re>=Te+m?m:Re-Te,!(He<xe);Re+=h)st=He-xe,ve=h-xe,$e.push(F(G(xe+st%ve,0))),He=O(st/ve);$e.push(F(G(He,0))),Te=ae(he,pe,fe==me),he=0,++fe}++he,++q}return $e.join("")}function Q(W){return V(W,function(q){return b.test(q)?se(q.slice(4).toLowerCase()):q})}function ge(W){return V(W,function(q){return x.test(q)?"xn--"+z(q):q})}if(u={version:"1.4.1",ucs2:{decode:Y,encode:ie},decode:se,encode:z,toASCII:ge,toUnicode:Q},n&&i)if(t.exports==n)i.exports=u;else for(N in u)u.hasOwnProperty(N)&&(n[N]=u[N]);else r.punycode=u})(Et)}(ba,ba.exports);var kS=ba.exports,DS=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0},fd=typeof Symbol<"u"&&Symbol,BS=DS,US=function(){return typeof fd!="function"||typeof Symbol!="function"||typeof fd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:BS()},dd={foo:{}},$S=Object,GS=function(){return{__proto__:dd}.foo===dd.foo&&!({__proto__:null}instanceof $S)},zS="Function.prototype.bind called on incompatible ",Uu=Array.prototype.slice,HS=Object.prototype.toString,VS="[object Function]",XS=function(e){var r=this;if(typeof r!="function"||HS.call(r)!==VS)throw new TypeError(zS+r);for(var n=Uu.call(arguments,1),i,a=function(){if(this instanceof i){var m=r.apply(this,n.concat(Uu.call(arguments)));return Object(m)===m?m:this}else return r.apply(e,n.concat(Uu.call(arguments)))},u=Math.max(0,r.length-n.length),l=[],h=0;h<u;h++)l.push("$"+h);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i},jS=XS,$u=Function.prototype.bind||jS,WS=$u,qS=WS.call(Function.call,Object.prototype.hasOwnProperty),Me,mi=SyntaxError,pd=Function,_i=TypeError,Gu=function(t){try{return pd('"use strict"; return ('+t+").constructor;")()}catch{}},Ln=Object.getOwnPropertyDescriptor;if(Ln)try{Ln({},"")}catch{Ln=null}var zu=function(){throw new _i},YS=Ln?function(){try{return arguments.callee,zu}catch{try{return Ln(arguments,"callee").get}catch{return zu}}}():zu,vi=US(),KS=GS(),Tt=Object.getPrototypeOf||(KS?function(t){return t.__proto__}:null),yi={},ZS=typeof Uint8Array>"u"||!Tt?Me:Tt(Uint8Array),kn={"%AggregateError%":typeof AggregateError>"u"?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Me:ArrayBuffer,"%ArrayIteratorPrototype%":vi&&Tt?Tt([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":yi,"%AsyncGenerator%":yi,"%AsyncGeneratorFunction%":yi,"%AsyncIteratorPrototype%":yi,"%Atomics%":typeof Atomics>"u"?Me:Atomics,"%BigInt%":typeof BigInt>"u"?Me:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Me:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Me:FinalizationRegistry,"%Function%":pd,"%GeneratorFunction%":yi,"%Int8Array%":typeof Int8Array>"u"?Me:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Me:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vi&&Tt?Tt(Tt([][Symbol.iterator]())):Me,"%JSON%":typeof JSON=="object"?JSON:Me,"%Map%":typeof Map>"u"?Me:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vi||!Tt?Me:Tt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Me:Promise,"%Proxy%":typeof Proxy>"u"?Me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Me:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vi||!Tt?Me:Tt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vi&&Tt?Tt(""[Symbol.iterator]()):Me,"%Symbol%":vi?Symbol:Me,"%SyntaxError%":mi,"%ThrowTypeError%":YS,"%TypedArray%":ZS,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?Me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Me:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Me:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Me:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Me:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Me:WeakSet};if(Tt)try{null.error}catch(t){var QS=Tt(Tt(t));kn["%Error.prototype%"]=QS}var JS=function t(e){var r;if(e==="%AsyncFunction%")r=Gu("async function () {}");else if(e==="%GeneratorFunction%")r=Gu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Gu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Tt&&(r=Tt(i.prototype))}return kn[e]=r,r},gd={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gs=$u,Ta=qS,eA=gs.call(Function.call,Array.prototype.concat),tA=gs.call(Function.apply,Array.prototype.splice),md=gs.call(Function.call,String.prototype.replace),wa=gs.call(Function.call,String.prototype.slice),rA=gs.call(Function.call,RegExp.prototype.exec),nA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iA=/\\(\\)?/g,sA=function(e){var r=wa(e,0,1),n=wa(e,-1);if(r==="%"&&n!=="%")throw new mi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new mi("invalid intrinsic syntax, expected opening `%`");var i=[];return md(e,nA,function(a,u,l,h){i[i.length]=l?md(h,iA,"$1"):u||a}),i},aA=function(e,r){var n=e,i;if(Ta(gd,n)&&(i=gd[n],n="%"+i[0]+"%"),Ta(kn,n)){var a=kn[n];if(a===yi&&(a=JS(n)),typeof a>"u"&&!r)throw new _i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new mi("intrinsic "+e+" does not exist!")},Hu=function(e,r){if(typeof e!="string"||e.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(rA(/^%?[^%]*%?$/,e)===null)throw new mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sA(e),i=n.length>0?n[0]:"",a=aA("%"+i+"%",r),u=a.name,l=a.value,h=!1,p=a.alias;p&&(i=p[0],tA(n,eA([0,1],p)));for(var m=1,c=!0;m<n.length;m+=1){var d=n[m],g=wa(d,0,1),v=wa(d,-1);if((g==='"'||g==="'"||g==="`"||v==='"'||v==="'"||v==="`")&&g!==v)throw new mi("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(h=!0),i+="."+d,u="%"+i+"%",Ta(kn,u))l=kn[u];else if(l!=null){if(!(d in l)){if(!r)throw new _i("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ln&&m+1>=n.length){var y=Ln(l,d);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[d]}else c=Ta(l,d),l=l[d];c&&!h&&(kn[u]=l)}}return l},_d={exports:{}};(function(t){var e=$u,r=Hu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(i,n),u=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),h=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(c){var d=a(e,i,arguments);if(u&&l){var g=u(d,"length");g.configurable&&l(d,"length",{value:1+h(0,c.length-(arguments.length-1))})}return d};var p=function(){return a(e,n,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p})(_d);var oA=_d.exports,vd=Hu,yd=oA,uA=yd(vd("String.prototype.indexOf")),lA=function(e,r){var n=vd(e,!!r);return typeof n=="function"&&uA(e,".prototype.")>-1?yd(n):n};const cA=Q_(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Vu=typeof Map=="function"&&Map.prototype,Xu=Object.getOwnPropertyDescriptor&&Vu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sa=Vu&&Xu&&typeof Xu.get=="function"?Xu.get:null,xd=Vu&&Map.prototype.forEach,ju=typeof Set=="function"&&Set.prototype,Wu=Object.getOwnPropertyDescriptor&&ju?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Aa=ju&&Wu&&typeof Wu.get=="function"?Wu.get:null,bd=ju&&Set.prototype.forEach,hA=typeof WeakMap=="function"&&WeakMap.prototype,ms=hA?WeakMap.prototype.has:null,fA=typeof WeakSet=="function"&&WeakSet.prototype,_s=fA?WeakSet.prototype.has:null,dA=typeof WeakRef=="function"&&WeakRef.prototype,Td=dA?WeakRef.prototype.deref:null,pA=Boolean.prototype.valueOf,gA=Object.prototype.toString,mA=Function.prototype.toString,_A=String.prototype.match,qu=String.prototype.slice,fn=String.prototype.replace,vA=String.prototype.toUpperCase,wd=String.prototype.toLowerCase,Sd=RegExp.prototype.test,Ad=Array.prototype.concat,Br=Array.prototype.join,yA=Array.prototype.slice,Ed=Math.floor,Yu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ku=Object.getOwnPropertySymbols,Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,xi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===xi||"symbol")?Symbol.toStringTag:null,Cd=Object.prototype.propertyIsEnumerable,Id=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Rd(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Sd.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ed(-t):Ed(t);if(n!==t){var i=String(n),a=qu.call(e,i.length+1);return fn.call(i,r,"$&_")+"."+fn.call(fn.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fn.call(e,r,"$&_")}var Qu=cA,Pd=Qu.custom,Md=Nd(Pd)?Pd:null,xA=function t(e,r,n,i){var a=r||{};if(dn(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(dn(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=dn(a,"customInspect")?a.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(dn(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(dn(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return kd(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return l?Rd(e,h):h}if(typeof e=="bigint"){var p=String(e)+"n";return l?Rd(e,p):p}var m=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=m&&m>0&&typeof e=="object")return Ju(e)?"[Array]":"[Object]";var c=BA(a,n);if(typeof i>"u")i=[];else if(Ld(i,e)>=0)return"[Circular]";function d(X,G,ae){if(G&&(i=yA.call(i),i.push(G)),ae){var se={depth:a.depth};return dn(a,"quoteStyle")&&(se.quoteStyle=a.quoteStyle),t(X,se,n+1,i)}return t(X,a,n+1,i)}if(typeof e=="function"&&!Fd(e)){var g=RA(e),v=Ea(e,d);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Br.call(v,", ")+" }":"")}if(Nd(e)){var y=xi?fn.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zu.call(e);return typeof e=="object"&&!xi?vs(y):y}if(LA(e)){for(var b="<"+wd.call(String(e.nodeName)),x=e.attributes||[],E=0;E<x.length;E++)b+=" "+x[E].name+"="+Od(bA(x[E].value),"double",a);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+="</"+wd.call(String(e.nodeName))+">",b}if(Ju(e)){if(e.length===0)return"[]";var w=Ea(e,d);return c&&!DA(w)?"["+tl(w,c)+"]":"[ "+Br.call(w,", ")+" ]"}if(wA(e)){var I=Ea(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Cd.call(e,"cause")?"{ ["+String(e)+"] "+Br.call(Ad.call("[cause]: "+d(e.cause),I),", ")+" }":I.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Br.call(I,", ")+" }"}if(typeof e=="object"&&u){if(Md&&typeof e[Md]=="function"&&Qu)return Qu(e,{depth:m-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(PA(e)){var O=[];return xd&&xd.call(e,function(X,G){O.push(d(G,e,!0)+" => "+d(X,e))}),Dd("Map",Sa.call(e),O,c)}if(FA(e)){var F=[];return bd&&bd.call(e,function(X){F.push(d(X,e))}),Dd("Set",Aa.call(e),F,c)}if(MA(e))return el("WeakMap");if(NA(e))return el("WeakSet");if(OA(e))return el("WeakRef");if(AA(e))return vs(d(Number(e)));if(CA(e))return vs(d(Yu.call(e)));if(EA(e))return vs(pA.call(e));if(SA(e))return vs(d(String(e)));if(!TA(e)&&!Fd(e)){var N=Ea(e,d),L=Id?Id(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",V=!L&&Pt&&Object(e)===e&&Pt in e?qu.call(pn(e),8,-1):D?"Object":"",Y=L||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ie=Y+(V||D?"["+Br.call(Ad.call([],V||[],D||[]),": ")+"] ":"");return N.length===0?ie+"{}":c?ie+"{"+tl(N,c)+"}":ie+"{ "+Br.call(N,", ")+" }"}return String(e)};function Od(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function bA(t){return fn.call(String(t),/"/g,"&quot;")}function Ju(t){return pn(t)==="[object Array]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function TA(t){return pn(t)==="[object Date]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Fd(t){return pn(t)==="[object RegExp]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function wA(t){return pn(t)==="[object Error]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function SA(t){return pn(t)==="[object String]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function AA(t){return pn(t)==="[object Number]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function EA(t){return pn(t)==="[object Boolean]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Nd(t){if(xi)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Zu)return!1;try{return Zu.call(t),!0}catch{}return!1}function CA(t){if(!t||typeof t!="object"||!Yu)return!1;try{return Yu.call(t),!0}catch{}return!1}var IA=Object.prototype.hasOwnProperty||function(t){return t in this};function dn(t,e){return IA.call(t,e)}function pn(t){return gA.call(t)}function RA(t){if(t.name)return t.name;var e=_A.call(mA.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ld(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function PA(t){if(!Sa||!t||typeof t!="object")return!1;try{Sa.call(t);try{Aa.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function MA(t){if(!ms||!t||typeof t!="object")return!1;try{ms.call(t,ms);try{_s.call(t,_s)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function OA(t){if(!Td||!t||typeof t!="object")return!1;try{return Td.call(t),!0}catch{}return!1}function FA(t){if(!Aa||!t||typeof t!="object")return!1;try{Aa.call(t);try{Sa.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function NA(t){if(!_s||!t||typeof t!="object")return!1;try{_s.call(t,_s);try{ms.call(t,ms)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function LA(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function kd(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return kd(qu.call(t,0,e.maxStringLength),e)+n}var i=fn.call(fn.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kA);return Od(i,"single",e)}function kA(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+vA.call(e.toString(16))}function vs(t){return"Object("+t+")"}function el(t){return t+" { ? }"}function Dd(t,e,r,n){var i=n?tl(r,n):Br.call(r,", ");return t+" ("+e+") {"+i+"}"}function DA(t){for(var e=0;e<t.length;e++)if(Ld(t[e],`
33
+ */var ln,Of,ha,nr,ls,Ff,Eu,Nf=function(){return typeof window<"u"},Lf=function(){return ln||Nf()&&(ln=window.gsap)&&ln.registerPlugin&&ln},kf=function(e){return typeof e=="function"},iS=function(e){return console.warn(e)},sS=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ir=.212671,sr=.71516,ar=.072169,fa=function(e,r){var n=[],i=0,a=0,u,l;for(u=0;u<4;u++){for(l=0;l<5;l++)a=l===4?e[i+4]:0,n[i+l]=e[i]*r[l]+e[i+1]*r[l+5]+e[i+2]*r[l+10]+e[i+3]*r[l+15]+a;i+=5}return n},Df=function(e,r){var n=1-r,i=n*ir,a=n*sr,u=n*ar;return fa([i+r,a,u,0,0,i,a+r,u,0,0,i,a,u+r,0,0,0,0,0,1,0],e)},Bf=function(e,r,n){var i=ha(r),a=i[0]/255,u=i[1]/255,l=i[2]/255,h=1-n;return fa([h+n*a*ir,n*a*sr,n*a*ar,0,0,n*u*ir,h+n*u*sr,n*u*ar,0,0,n*l*ir,n*l*sr,h+n*l*ar,0,0,0,0,0,1,0],e)},Uf=function(e,r){r*=Math.PI/180;var n=Math.cos(r),i=Math.sin(r);return fa([ir+n*(1-ir)+i*-ir,sr+n*-sr+i*-sr,ar+n*-ar+i*(1-ar),0,0,ir+n*-ir+i*.143,sr+n*(1-sr)+i*.14,ar+n*-ar+i*-.283,0,0,ir+n*-ir+i*-(1-ir),sr+n*-sr+i*sr,ar+n*(1-ar)+i*ar,0,0,0,0,0,1,0,0,0,0,0,1],e)},$f=function(e,r){return fa([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],e)},Gf=function(e,r){var n=nr.filters[r],i=e.filters||[],a=i.length,u;for(n||iS(r+" not found. PixiPlugin.registerPIXI(PIXI)");--a>-1;)if(i[a]instanceof n)return i[a];return u=new n,r==="BlurFilter"&&(u.blur=0),i.push(u),e.filters=i,u},bt=function(e,r,n,i){r.add(n,e,n[e],i[e]),r._props.push(e)},zf=function(e,r){var n=new nr.filters.ColorMatrixFilter;return n.matrix=r,n.brightness(e,!0),n.matrix},aS=function(e){var r={},n;for(n in e)r[n]=e[n];return r},Wt={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},oS=function(e,r,n){var i=Gf(e,"ColorMatrixFilter"),a=e._gsColorMatrixFilter=e._gsColorMatrixFilter||aS(Wt),u=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter),l,h,p;for(p=i.matrix,r.resolution&&(i.resolution=r.resolution),r.matrix&&r.matrix.length===p.length?(h=r.matrix,a.contrast!==1&&bt("contrast",n,a,Wt),a.hue&&bt("hue",n,a,Wt),a.brightness!==1&&bt("brightness",n,a,Wt),a.colorizeAmount&&(bt("colorize",n,a,Wt),bt("colorizeAmount",n,a,Wt)),a.saturation!==1&&bt("saturation",n,a,Wt)):(h=sS.slice(),r.contrast!=null?(h=$f(h,+r.contrast),bt("contrast",n,a,r)):a.contrast!==1&&(u?h=$f(h,a.contrast):bt("contrast",n,a,Wt)),r.hue!=null?(h=Uf(h,+r.hue),bt("hue",n,a,r)):a.hue&&(u?h=Uf(h,a.hue):bt("hue",n,a,Wt)),r.brightness!=null?(h=zf(+r.brightness,h),bt("brightness",n,a,r)):a.brightness!==1&&(u?h=zf(a.brightness,h):bt("brightness",n,a,Wt)),r.colorize!=null?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,h=Bf(h,r.colorize,r.colorizeAmount),bt("colorize",n,a,r),bt("colorizeAmount",n,a,r)):a.colorizeAmount&&(u?h=Bf(h,a.colorize,a.colorizeAmount):(bt("colorize",n,a,Wt),bt("colorizeAmount",n,a,Wt))),r.saturation!=null?(h=Df(h,+r.saturation),bt("saturation",n,a,r)):a.saturation!==1&&(u?h=Df(h,a.saturation):bt("saturation",n,a,Wt))),l=h.length;--l>-1;)h[l]!==p[l]&&n.add(p,l,p[l],h[l],"colorMatrixFilter");n._props.push("colorMatrixFilter")},uS=function(e,r){var n=r.t,i=r.p,a=r.color,u=r.set;u(n,i,a[0]<<16|a[1]<<8|a[2])},lS=function(e,r){var n=r.g;n&&(n.dirty++,n.clearDirty++)},cS=function(e,r){r.t.visible=!!r.t.alpha},Hf=function(e,r,n,i){var a=e[r],u=ha(kf(a)?e[r.indexOf("set")||!kf(e["get"+r.substr(3)])?r:"get"+r.substr(3)]():a),l=ha(n);i._pt=new ls(i._pt,e,r,0,0,uS,{t:e,p:r,color:u,set:Ff(e,r)}),i.add(u,0,u[0],l[0]),i.add(u,1,u[1],l[1]),i.add(u,2,u[2],l[2])},hS={tint:1,lineColor:1,fillColor:1},Vf="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),Cu={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},fS={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},da=Math.PI/180,Xf=function(e){return typeof e=="string"},dS=function(e){return Xf(e)&&e.charAt(1)==="="?e.substr(0,2)+parseFloat(e.substr(2))*da:e*da},pS=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e5)/1e5,r)},gS=function(e,r,n,i,a,u){var l=360*(u?da:1),h=Xf(a),p=h&&a.charAt(1)==="="?+(a.charAt(0)+"1"):0,m=parseFloat(p?a.substr(2):a)*(u?da:1),c=p?m*p:m-i,d=i+c,g,v;return h&&(g=a.split("_")[1],g==="short"&&(c%=l,c!==c%(l/2)&&(c+=c<0?l:-l)),g==="cw"&&c<0?c=(c+l*1e10)%l-~~(c/l)*l:g==="ccw"&&c>0&&(c=(c-l*1e10)%l-~~(c/l)*l)),e._pt=v=new ls(e._pt,r,n,i,c,pS),v.e=d,v},jf=function(){Nf()&&(Of=window,ln=Lf(),nr=nr||Of.PIXI,Eu=nr&&nr.VERSION&&nr.VERSION.charAt(0)==="4",ha=function(r){return ln.utils.splitColor((r+"").substr(0,2)==="0x"?"#"+r.substr(2):r)})},pa,cs;for(pa=0;pa<Vf.length;pa++)cs=Vf[pa],Cu[cs+"X"]=cs,Cu[cs+"Y"]=cs;var Iu={version:"3.11.5",name:"pixi",register:function(e,r,n){ln=e,ls=n,Ff=r.getSetter,jf()},registerPIXI:function(e){nr=e},init:function(e,r,n,i,a){if(nr||jf(),!nr||!(e instanceof nr.DisplayObject))return console.warn(e,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var u,l,h,p,m,c,d,g,v;for(c in r){if(u=Cu[c],h=r[c],u)l=~c.charAt(c.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(e[u],l,e[u][l],u==="skew"?dS(h):h,0,0,0,0,0,1);else if(c==="scale"||c==="anchor"||c==="pivot"||c==="tileScale")this.add(e[c],"x",e[c].x,h),this.add(e[c],"y",e[c].y,h);else if(c==="rotation"||c==="angle")gS(this,e,c,e[c],h,c==="rotation");else if(fS[c])p||(oS(e,r.colorMatrixFilter||r,this),p=!0);else if(c==="blur"||c==="blurX"||c==="blurY"||c==="blurPadding"){if(m=Gf(e,"BlurFilter"),this.add(m,c,m[c],h),r.blurPadding!==0)for(d=r.blurPadding||Math.max(m[c],h)*2,g=e.filters.length;--g>-1;)e.filters[g].padding=Math.max(e.filters[g].padding,d)}else if(hS[c])if((c==="lineColor"||c==="fillColor")&&e instanceof nr.Graphics)for(v=(e.geometry||e).graphicsData,this._pt=new ls(this._pt,e,c,0,0,lS,{g:e.geometry||e}),g=v.length;--g>-1;)Hf(Eu?v[g]:v[g][c.substr(0,4)+"Style"],Eu?c:"color",h,this);else Hf(e,c,h,this);else c==="autoAlpha"?(this._pt=new ls(this._pt,e,"visible",0,0,cS),this.add(e,"alpha",e.alpha,h),this._props.push("alpha","visible")):c!=="resolution"&&this.add(e,c,"get",h);this._props.push(c)}}};Lf()&&ln.registerPlugin(Iu),ee.registerPlugin(Iu),Iu.registerPIXI($t),ee.registerPlugin(us),us.create("springBounce","0.32, 1.06, 0.61, 0.93"),ee.registerEffect({name:"PULSE",effect(t,e){return ee.timeline().fromTo(t,{pixi:{scaleX:.9,scaleY:.9}},{pixi:{scaleX:1.2,scaleY:1.2},duration:.5,ease:"slow"}).to(t,{pixi:{scaleX:1,scaleY:1,...e},duration:.5})}}),ee.registerEffect({name:"SHAKE",effect(t,e){return ee.timeline().to(t,{duration:.1,pixi:{x:"+=5"}}).to(t,{duration:.1,pixi:{x:"-=10"}}).to(t,{duration:.1,pixi:{x:"+=10"}}).to(t,{duration:.1,pixi:{x:"-=10"}}).to(t,{duration:.1,pixi:{x:"+=5"}}).to(t,{pixi:{...e},duration:.5})}}),ee.registerEffect({name:"SWING",effect(t,e){return ee.timeline().to(t,{duration:.5,pixi:{rotation:1}}).to(t,{duration:.5,pixi:{rotation:-1.5}}).to(t,{pixi:{rotation:0,...e},duration:.5})}}),ee.registerEffect({name:"JELLO",effect(t,e){return ee.timeline().to(t,{duration:.3,pixi:{scaleX:.5,rotation:-1}}).to(t,{duration:.4,pixi:{scaleX:1.5,rotation:1}}).to(t,{duration:.3,pixi:{scaleX:1,rotation:0}}).to(t,{pixi:{rotation:0,...e},duration:.5})}}),ee.registerEffect({name:"WOOBLE",effect(t,e){return ee.timeline().to(t,{duration:.3,pixi:{scaleX:.5,x:e.x*-.5}}).to(t,{duration:.3,pixi:{scaleX:1.5,x:e.x*1.5}}).to(t,{duration:.3,pixi:{scaleX:.5,x:e.x*-.01}}).to(t,{duration:.3,pixi:{scaleX:1,x:e.x}}).to(t,{rotation:0,pixi:{...e,rotation:0},duration:.5})}}),ee.registerEffect({name:"NONE",effect(t,e){return ee.timeline().to(t,{duration:0})}}),ee.registerEffect({name:"FLASH",effect(t,e){return ee.timeline().to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1,...e})}}),ee.registerEffect({name:"BOUNCE_IN",effect(t,e){return ee.timeline().fromTo(t,{pixi:{scaleX:1.5,scaleY:1.5}},{...e,pixi:{x:e==null?void 0:e.x,y:e==null?void 0:e.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),ee.registerEffect({name:"BOUNCE_IN_DOWN",effect(t,e){return ee.timeline().from(t,{duration:2,ease:"bounce.out",immediateRender:!0,pixi:{...e,x:e==null?void 0:e.x,y:-2500,alpha:0}})}}),ee.registerEffect({name:"BOUNCE_IN_LEFT",effect(t,e){return ee.timeline().from(t,{ease:"bounce.out",pixi:{...e,x:-2500,duration:2,alpha:0}})}}),ee.registerEffect({name:"BOUNCE_IN_RIGHT",effect(t,e){return ee.timeline().from(t,{ease:"bounce.out",duration:2,pixi:{...e,x:2500}})}}),ee.registerEffect({name:"BOUNCE_IN_UP",effect(t,e){return ee.timeline().from(t,{ease:"bounce.out",pixi:{...e,y:2e3},duration:2})}}),ee.registerEffect({name:"BOUNCE_OUT",effect(t,e){return ee.timeline().from(t,{...e,ease:"bounce.in",pixi:{y:2e3},duration:1.5})}}),ee.registerEffect({name:"FADE_IN",effect(t){return ee.timeline().fromTo(t,{alpha:0},{ease:"power4.in",alpha:1,duration:1})}}),ee.registerEffect({name:"FADE_IN_DOWN",effect(t,e){return ee.timeline().fromTo(t,{pixi:{y:-1500,alpha:0}},{duration:1,ease:"power4.in",pixi:{y:0,alpha:1,...e}})}}),ee.registerEffect({name:"FADE_IN_LEFT",effect(t,e){return ee.timeline().fromTo(t,{pixi:{alpha:0,x:-2e3}},{ease:"power4.in",pixi:{x:0,alpha:1,...e},duration:1})}}),ee.registerEffect({name:"FADE_IN_RIGHT",effect(t,e){return ee.fromTo(t,{pixi:{x:2e3,alpha:0}},{duration:1,ease:"power4.in",pixi:{x:0,alpha:1,...e}})}}),ee.registerEffect({name:"FADE_IN_UP",effect(t,e){return ee.fromTo(t,{pixi:{y:2e3,alpha:0}},{duration:.8,ease:"power4.in",pixi:{y:0,alpha:1,...e}})}}),ee.registerEffect({name:"SPIN",effect(t){return ee.to(t,{rotation:(e,r)=>ee.utils.snap(360,Number(ee.getProperty(r,"rotation"))+360)})}});function Wf(){return{updateEffect:j.useCallback((e,r,n)=>ee.effects[r]&&e?ee.effects[r](e,n):ee.effects.NONE(e,n),[])}}var Ru=(t=>(t.NONE="NONE",t.FLASH="FLASH",t.PULSE="PULSE",t.SHAKE="SHAKE",t.SWING="SWING",t.JELLO="JELLO",t.WOOBLE="WOOBLE",t.FADE_IN="FADE_IN",t.FADE_OUT="FADE_OUT",t.FADE_IN_OUT="FADE_IN_OUT",t.SLIDE_IN_LEFT="SLIDE_IN_LEFT",t.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",t.SLIDE_IN_TOP="SLIDE_IN_TOP",t.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",t.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",t.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",t.SLIDE_OUT_TOP="SLIDE_OUT_TOP",t.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",t.ZOOM_IN="ZOOM_IN",t.ZOOM_OUT="ZOOM_OUT",t.ZOOM_IN_OUT="ZOOM_IN_OUT",t.BOUNCE_IN="BOUNCE_IN",t.BOUNCE_OUT="BOUNCE_OUT",t.BOUNCE_IN_OUT="BOUNCE_IN_OUT",t.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",t.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",t.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",t.BOUNCE_IN_UP="BOUNCE_IN_UP",t.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",t.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",t.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",t.BOUNCE_OUT_UP="BOUNCE_OUT_UP",t.FADE_IN_DOWN="FADE_IN_DOWN",t.FADE_IN_LEFT="FADE_IN_LEFT",t.FADE_IN_RIGHT="FADE_IN_RIGHT",t.FADE_IN_UP="FADE_IN_UP",t.FADE_OUT_DOWN="FADE_OUT_DOWN",t.FADE_OUT_LEFT="FADE_OUT_LEFT",t.FADE_OUT_RIGHT="FADE_OUT_RIGHT",t.FADE_OUT_UP="FADE_OUT_UP",t.ELASTIC_IN="ELASTIC_IN",t.ELASTIC_OUT="ELASTIC_OUT",t.ELASTIC_IN_OUT="ELASTIC_IN_OUT",t.BACK_IN="BACK_IN",t.BACK_OUT="BACK_OUT",t.BACK_IN_OUT="BACK_IN_OUT",t.CIRCULAR_IN="CIRCULAR_IN",t.CIRCULAR_OUT="CIRCULAR_OUT",t.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",t.EXPO_IN="EXPO_IN",t.EXPO_OUT="EXPO_OUT",t.EXPO_IN_OUT="EXPO_IN_OUT",t.SINE_IN="SINE_IN",t.SINE_OUT="SINE_OUT",t.SINE_IN_OUT="SINE_IN_OUT",t.BOUNCE="BOUNCE",t.ELASTIC="ELASTIC",t.BACK="BACK",t.CIRCULAR="CIRCULAR",t.EXPO="EXPO",t.SINE="SINE",t))(Ru||{});const mS=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],Pn=te.forwardRef((t,e)=>{const[r,n]=te.useState(!1),[i,a]=j.useState(!1),[u,l]=j.useState(!1),[h,p]=j.useState(),m=Iw(h,300),c=j.useRef(null),d=j.useRef(null),g=j.useRef(null),v=j.useRef(null),y=j.useRef(null),b=j.useRef(null),{tl:x}=j.useContext(on),{uniqueId:E,visible:w,startAt:I,transformation:{x:O,y:F,width:N,height:L,scale:D=[1,1],rotation:V=0,effect:Y,overlay:ie,animation:X=Ru.NONE},applyTransformer:G,disabled:ae,pointerdown:se,pointerout:z,pointerover:Q,isText:ge,isDragging:W,isGif:q,onDoubleClick:he,isTextEditMode:fe}=t,me=Wf();ht(Ze.COMPLETE,()=>{c.current}),te.useImperativeHandle(e,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>u}),[i,u]),te.useEffect(()=>{c.current&&n(!0)},[]),te.useEffect(()=>{p({x:O,y:F,width:N,height:L,animation:X})},[X,O,F,N,L]),te.useEffect(()=>{if(!d.current)return;const Re=ee.context(()=>{if(x.current&&m){const{x:xe,y:Ae,animation:$e}=m||{},Ke=x.current.progress(),pe=me.updateEffect(c.current,$e,{immediateRender:!1,x:xe,y:Ae,overwrite:!0});y.current&&(x.current.remove(y.current),y.current.progress(0).kill()),Ke>.1?(pe.eventCallback("onComplete",()=>{pe.remove("onComplete"),x.current.add(pe,I),y.current=pe}),pe.play()):(pe.progress(1),x.current.add(pe,I),y.current=pe)}else y.current&&y.current.progress(0).kill()},d.current);return()=>{Re.revert()}},[I,m]);const Te=te.useCallback(()=>{l(!0),Q&&Q()},[]),Ce=te.useCallback(()=>{a(!0)},[]),Ue=te.useCallback(Re=>{t.onAnchorTransformationEnd&&t.onAnchorTransformationEnd(Re),a(!1)},[]),He=De.withFilters(De.Container,{matrix:$t.filters.ColorMatrixFilter});return Se.jsxs(De.Container,{ref:d,children:[Se.jsx(De.Container,{ref:c,position:[O,F],pivot:[O,F],width:N,height:L,scale:D,rotation:V,...!ae&&w&&!i&&!W&&{interactive:!0,buttonMode:!0,pointerdown:se,pointerover:Q,pointerout:z},children:Se.jsxs(De.Container,{ref:b,children:[!q&&Se.jsx(He,{scale:1,apply:({matrix:Re})=>{Y===In.BlackAndWhite?Re.desaturate():Y===In.Sepia?Re.sepia():Y===In.RetroVintage||Y===In.NightVision?Re.negative():Y===In.Normal&&Re.reset()},matrix:{enabled:!0,matrix:mS},children:Se.jsx(De.Container,{ref:g,children:t.children})}),q&&Se.jsx(De.Container,{ref:g,children:t.children}),!ss(ie)&&ie!==Au.NONE&&ie!==Au.NORMAL&&Se.jsx(Hw,{overlay:ie,width:N,height:L,x:O,y:F})]})}),G&&w&&!fe&&Se.jsx(ov,{pixiTransformerRef:v,imageRef:c,isMounted:r,transformCommit:Ue,transformChange:Ce,mouseoverEvent:Te,uniqueId:E,isText:ge,onDoubleClick:he})]})});var Mn=(t=>(t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2",t))(Mn||{}),qf=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS",t))(qf||{}),Pu=(t=>(t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL",t))(Pu||{}),de=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR",t))(de||{}),cn=(t=>(t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t))(cn||{}),Z=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(Z||{}),fi=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(fi||{}),Ge=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(Ge||{}),Mu=(t=>(t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT",t))(Mu||{}),kr=(t=>(t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR",t))(kr||{}),hs=(t=>(t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t))(hs||{}),On=(t=>(t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL",t))(On||{}),hn=(t=>(t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",t))(hn||{}),Fn=(t=>(t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT",t))(Fn||{}),Ou=(t=>(t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t))(Ou||{}),or=(t=>(t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp",t))(or||{}),vt=(t=>(t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",t))(vt||{}),_t=(t=>(t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH",t))(_t||{}),Dr=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t))(Dr||{});const Ie={ADAPTER:{createCanvas:(t,e)=>{const r=document.createElement("canvas");return r.width=t,r.height=e,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>new DOMParser().parseFromString(t,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var Fu=/iPhone/i,Yf=/iPod/i,Kf=/iPad/i,Zf=/\biOS-universal(?:.+)Mac\b/i,Nu=/\bAndroid(?:.+)Mobile\b/i,Qf=/Android/i,di=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ga=/Silk/i,Xr=/Windows Phone/i,Jf=/\bWindows(?:.+)ARM\b/i,ed=/BlackBerry/i,td=/BB10/i,rd=/Opera Mini/i,nd=/\b(CriOS|Chrome)(?:.+)Mobile/i,id=/Mobile(?:.+)Firefox\b/i,sd=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function _S(t){return function(e){return e.test(t)}}function ad(t){var e={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var r=e.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=_S(r),a={apple:{phone:i(Fu)&&!i(Xr),ipod:i(Yf),tablet:!i(Fu)&&(i(Kf)||sd(e))&&!i(Xr),universal:i(Zf),device:(i(Fu)||i(Yf)||i(Kf)||i(Zf)||sd(e))&&!i(Xr)},amazon:{phone:i(di),tablet:!i(di)&&i(ga),device:i(di)||i(ga)},android:{phone:!i(Xr)&&i(di)||!i(Xr)&&i(Nu),tablet:!i(Xr)&&!i(di)&&!i(Nu)&&(i(ga)||i(Qf)),device:!i(Xr)&&(i(di)||i(ga)||i(Nu)||i(Qf))||i(/\bokhttp\b/i)},windows:{phone:i(Xr),tablet:i(Jf),device:i(Xr)||i(Jf)},other:{blackberry:i(ed),blackberry10:i(td),opera:i(rd),firefox:i(id),chrome:i(nd),device:i(ed)||i(td)||i(rd)||i(id)||i(nd)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const pi=(ad.default??ad)(globalThis.navigator);Ie.RETINA_PREFIX=/@([0-9\.]+)x/,Ie.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var od={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(h,p,m){this.fn=h,this.context=p,this.once=m||!1}function a(h,p,m,c,d){if(typeof m!="function")throw new TypeError("The listener must be a function");var g=new i(m,c||h,d),v=r?r+p:p;return h._events[v]?h._events[v].fn?h._events[v]=[h._events[v],g]:h._events[v].push(g):(h._events[v]=g,h._eventsCount++),h}function u(h,p){--h._eventsCount===0?h._events=new n:delete h._events[p]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var p=[],m,c;if(this._eventsCount===0)return p;for(c in m=this._events)e.call(m,c)&&p.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(m)):p},l.prototype.listeners=function(p){var m=r?r+p:p,c=this._events[m];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,g=c.length,v=new Array(g);d<g;d++)v[d]=c[d].fn;return v},l.prototype.listenerCount=function(p){var m=r?r+p:p,c=this._events[m];return c?c.fn?1:c.length:0},l.prototype.emit=function(p,m,c,d,g,v){var y=r?r+p:p;if(!this._events[y])return!1;var b=this._events[y],x=arguments.length,E,w;if(b.fn){switch(b.once&&this.removeListener(p,b.fn,void 0,!0),x){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,c),!0;case 4:return b.fn.call(b.context,m,c,d),!0;case 5:return b.fn.call(b.context,m,c,d,g),!0;case 6:return b.fn.call(b.context,m,c,d,g,v),!0}for(w=1,E=new Array(x-1);w<x;w++)E[w-1]=arguments[w];b.fn.apply(b.context,E)}else{var I=b.length,O;for(w=0;w<I;w++)switch(b[w].once&&this.removeListener(p,b[w].fn,void 0,!0),x){case 1:b[w].fn.call(b[w].context);break;case 2:b[w].fn.call(b[w].context,m);break;case 3:b[w].fn.call(b[w].context,m,c);break;case 4:b[w].fn.call(b[w].context,m,c,d);break;default:if(!E)for(O=1,E=new Array(x-1);O<x;O++)E[O-1]=arguments[O];b[w].fn.apply(b[w].context,E)}}return!0},l.prototype.on=function(p,m,c){return a(this,p,m,c,!1)},l.prototype.once=function(p,m,c){return a(this,p,m,c,!0)},l.prototype.removeListener=function(p,m,c,d){var g=r?r+p:p;if(!this._events[g])return this;if(!m)return u(this,g),this;var v=this._events[g];if(v.fn)v.fn===m&&(!d||v.once)&&(!c||v.context===c)&&u(this,g);else{for(var y=0,b=[],x=v.length;y<x;y++)(v[y].fn!==m||d&&!v[y].once||c&&v[y].context!==c)&&b.push(v[y]);b.length?this._events[g]=b.length===1?b[0]:b:u(this,g)}return this},l.prototype.removeAllListeners=function(p){var m;return p?(m=r?r+p:p,this._events[m]&&u(this,m)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(od);var vS=od.exports;const ma=Cn(vS);var Lu={exports:{}};Lu.exports=_a,Lu.exports.default=_a;function _a(t,e,r){r=r||2;var n=e&&e.length,i=n?e[0]*r:t.length,a=ud(t,0,i,r,!0),u=[];if(!a||a.next===a.prev)return u;var l,h,p,m,c,d,g;if(n&&(a=wS(t,e,a,r)),t.length>80*r){l=p=t[0],h=m=t[1];for(var v=r;v<i;v+=r)c=t[v],d=t[v+1],c<l&&(l=c),d<h&&(h=d),c>p&&(p=c),d>m&&(m=d);g=Math.max(p-l,m-h),g=g!==0?32767/g:0}return fs(a,u,r,l,h,g,0),u}function ud(t,e,r,n,i){var a,u;if(i===Bu(t,e,r,n)>0)for(a=e;a<r;a+=n)u=hd(a,t[a],t[a+1],u);else for(a=r-n;a>=e;a-=n)u=hd(a,t[a],t[a+1],u);return u&&va(u,u.next)&&(ps(u),u=u.next),u}function Nn(t,e){if(!t)return t;e||(e=t);var r=t,n;do if(n=!1,!r.steiner&&(va(r,r.next)||ot(r.prev,r,r.next)===0)){if(ps(r),r=e=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==e);return e}function fs(t,e,r,n,i,a,u){if(t){!u&&a&&IS(t,n,i,a);for(var l=t,h,p;t.prev!==t.next;){if(h=t.prev,p=t.next,a?xS(t,n,i,a):yS(t)){e.push(h.i/r|0),e.push(t.i/r|0),e.push(p.i/r|0),ps(t),t=p.next,l=p.next;continue}if(t=p,t===l){u?u===1?(t=bS(Nn(t),e,r),fs(t,e,r,n,i,a,2)):u===2&&TS(t,e,r,n,i,a):fs(Nn(t),e,r,n,i,a,1);break}}}}function yS(t){var e=t.prev,r=t,n=t.next;if(ot(e,r,n)>=0)return!1;for(var i=e.x,a=r.x,u=n.x,l=e.y,h=r.y,p=n.y,m=i<a?i<u?i:u:a<u?a:u,c=l<h?l<p?l:p:h<p?h:p,d=i>a?i>u?i:u:a>u?a:u,g=l>h?l>p?l:p:h>p?h:p,v=n.next;v!==e;){if(v.x>=m&&v.x<=d&&v.y>=c&&v.y<=g&&gi(i,l,a,h,u,p,v.x,v.y)&&ot(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function xS(t,e,r,n){var i=t.prev,a=t,u=t.next;if(ot(i,a,u)>=0)return!1;for(var l=i.x,h=a.x,p=u.x,m=i.y,c=a.y,d=u.y,g=l<h?l<p?l:p:h<p?h:p,v=m<c?m<d?m:d:c<d?c:d,y=l>h?l>p?l:p:h>p?h:p,b=m>c?m>d?m:d:c>d?c:d,x=ku(g,v,e,r,n),E=ku(y,b,e,r,n),w=t.prevZ,I=t.nextZ;w&&w.z>=x&&I&&I.z<=E;){if(w.x>=g&&w.x<=y&&w.y>=v&&w.y<=b&&w!==i&&w!==u&&gi(l,m,h,c,p,d,w.x,w.y)&&ot(w.prev,w,w.next)>=0||(w=w.prevZ,I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0))return!1;I=I.nextZ}for(;w&&w.z>=x;){if(w.x>=g&&w.x<=y&&w.y>=v&&w.y<=b&&w!==i&&w!==u&&gi(l,m,h,c,p,d,w.x,w.y)&&ot(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;I&&I.z<=E;){if(I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0)return!1;I=I.nextZ}return!0}function bS(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!va(i,a)&&ld(i,n,n.next,a)&&ds(i,a)&&ds(a,i)&&(e.push(i.i/r|0),e.push(n.i/r|0),e.push(a.i/r|0),ps(n),ps(n.next),n=t=a),n=n.next}while(n!==t);return Nn(n)}function TS(t,e,r,n,i,a){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&MS(u,l)){var h=cd(u,l);u=Nn(u,u.next),h=Nn(h,h.next),fs(u,e,r,n,i,a,0),fs(h,e,r,n,i,a,0);return}l=l.next}u=u.next}while(u!==t)}function wS(t,e,r,n){var i=[],a,u,l,h,p;for(a=0,u=e.length;a<u;a++)l=e[a]*n,h=a<u-1?e[a+1]*n:t.length,p=ud(t,l,h,n,!1),p===p.next&&(p.steiner=!0),i.push(PS(p));for(i.sort(SS),a=0;a<i.length;a++)r=AS(i[a],r);return r}function SS(t,e){return t.x-e.x}function AS(t,e){var r=ES(t,e);if(!r)return e;var n=cd(r,t);return Nn(n,n.next),Nn(r,r.next)}function ES(t,e){var r=e,n=t.x,i=t.y,a=-1/0,u;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a&&(a=l,u=r.x<r.next.x?r:r.next,l===n))return u}r=r.next}while(r!==e);if(!u)return null;var h=u,p=u.x,m=u.y,c=1/0,d;r=u;do n>=r.x&&r.x>=p&&n!==r.x&&gi(i<m?n:a,i,p,m,i<m?a:n,i,r.x,r.y)&&(d=Math.abs(i-r.y)/(n-r.x),ds(r,t)&&(d<c||d===c&&(r.x>u.x||r.x===u.x&&CS(u,r)))&&(u=r,c=d)),r=r.next;while(r!==h);return u}function CS(t,e){return ot(t.prev,t,e.prev)<0&&ot(e.next,t,t.next)<0}function IS(t,e,r,n){var i=t;do i.z===0&&(i.z=ku(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,RS(i)}function RS(t){var e,r,n,i,a,u,l,h,p=1;do{for(r=t,t=null,a=null,u=0;r;){for(u++,n=r,l=0,e=0;e<p&&(l++,n=n.nextZ,!!n);e++);for(h=p;l>0||h>0&&n;)l!==0&&(h===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,h--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,p*=2}while(u>1);return t}function ku(t,e,r,n,i){return t=(t-r)*i|0,e=(e-n)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function PS(t){var e=t,r=t;do(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next;while(e!==t);return r}function gi(t,e,r,n,i,a,u,l){return(i-u)*(e-l)>=(t-u)*(a-l)&&(t-u)*(n-l)>=(r-u)*(e-l)&&(r-u)*(a-l)>=(i-u)*(n-l)}function MS(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!OS(t,e)&&(ds(t,e)&&ds(e,t)&&FS(t,e)&&(ot(t.prev,t,e.prev)||ot(t,e.prev,e))||va(t,e)&&ot(t.prev,t,t.next)>0&&ot(e.prev,e,e.next)>0)}function ot(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function va(t,e){return t.x===e.x&&t.y===e.y}function ld(t,e,r,n){var i=xa(ot(t,e,r)),a=xa(ot(t,e,n)),u=xa(ot(r,n,t)),l=xa(ot(r,n,e));return!!(i!==a&&u!==l||i===0&&ya(t,r,e)||a===0&&ya(t,n,e)||u===0&&ya(r,t,n)||l===0&&ya(r,e,n))}function ya(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function xa(t){return t>0?1:t<0?-1:0}function OS(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&ld(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function ds(t,e){return ot(t.prev,t,t.next)<0?ot(t,e,t.next)>=0&&ot(t,t.prev,e)>=0:ot(t,e,t.prev)<0||ot(t,t.next,e)<0}function FS(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==t);return n}function cd(t,e){var r=new Du(t.i,t.x,t.y),n=new Du(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function hd(t,e,r,n){var i=new Du(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function ps(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Du(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}_a.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,u=Math.abs(Bu(t,0,a,r));if(i)for(var l=0,h=e.length;l<h;l++){var p=e[l]*r,m=l<h-1?e[l+1]*r:t.length;u-=Math.abs(Bu(t,p,m,r))}var c=0;for(l=0;l<n.length;l+=3){var d=n[l]*r,g=n[l+1]*r,v=n[l+2]*r;c+=Math.abs((t[d]-t[v])*(t[g+1]-t[d+1])-(t[d]-t[g])*(t[v+1]-t[d+1]))}return u===0&&c===0?0:Math.abs((c-u)/u)};function Bu(t,e,r,n){for(var i=0,a=e,u=r-n;a<r;a+=n)i+=(t[u]-t[a])*(t[a+1]+t[u+1]),u=a;return i}_a.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var u=0;u<e;u++)r.vertices.push(t[i][a][u]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r};var NS=Lu.exports;const LS=Cn(NS);var ba={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */ba.exports,function(t,e){(function(r){var n=e&&!e.nodeType&&e,i=t&&!t.nodeType&&t,a=typeof Et=="object"&&Et;(a.global===a||a.window===a||a.self===a)&&(r=a);var u,l=2147483647,h=36,p=1,m=26,c=38,d=700,g=72,v=128,y="-",b=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=h-p,O=Math.floor,F=String.fromCharCode,N;function L(W){throw new RangeError(w[W])}function D(W,q){for(var he=W.length,fe=[];he--;)fe[he]=q(W[he]);return fe}function V(W,q){var he=W.split("@"),fe="";he.length>1&&(fe=he[0]+"@",W=he[1]),W=W.replace(E,".");var me=W.split("."),Te=D(me,q).join(".");return fe+Te}function Y(W){for(var q=[],he=0,fe=W.length,me,Te;he<fe;)me=W.charCodeAt(he++),me>=55296&&me<=56319&&he<fe?(Te=W.charCodeAt(he++),(Te&64512)==56320?q.push(((me&1023)<<10)+(Te&1023)+65536):(q.push(me),he--)):q.push(me);return q}function ie(W){return D(W,function(q){var he="";return q>65535&&(q-=65536,he+=F(q>>>10&1023|55296),q=56320|q&1023),he+=F(q),he}).join("")}function X(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:h}function G(W,q){return W+22+75*(W<26)-((q!=0)<<5)}function ae(W,q,he){var fe=0;for(W=he?O(W/d):W>>1,W+=O(W/q);W>I*m>>1;fe+=h)W=O(W/I);return O(fe+(I+1)*W/(W+c))}function se(W){var q=[],he=W.length,fe,me=0,Te=v,Ce=g,Ue,He,Re,xe,Ae,$e,Ke,pe,ve;for(Ue=W.lastIndexOf(y),Ue<0&&(Ue=0),He=0;He<Ue;++He)W.charCodeAt(He)>=128&&L("not-basic"),q.push(W.charCodeAt(He));for(Re=Ue>0?Ue+1:0;Re<he;){for(xe=me,Ae=1,$e=h;Re>=he&&L("invalid-input"),Ke=X(W.charCodeAt(Re++)),(Ke>=h||Ke>O((l-me)/Ae))&&L("overflow"),me+=Ke*Ae,pe=$e<=Ce?p:$e>=Ce+m?m:$e-Ce,!(Ke<pe);$e+=h)ve=h-pe,Ae>O(l/ve)&&L("overflow"),Ae*=ve;fe=q.length+1,Ce=ae(me-xe,fe,xe==0),O(me/fe)>l-Te&&L("overflow"),Te+=O(me/fe),me%=fe,q.splice(me++,0,Te)}return ie(q)}function z(W){var q,he,fe,me,Te,Ce,Ue,He,Re,xe,Ae,$e=[],Ke,pe,ve,st;for(W=Y(W),Ke=W.length,q=v,he=0,Te=g,Ce=0;Ce<Ke;++Ce)Ae=W[Ce],Ae<128&&$e.push(F(Ae));for(fe=me=$e.length,me&&$e.push(y);fe<Ke;){for(Ue=l,Ce=0;Ce<Ke;++Ce)Ae=W[Ce],Ae>=q&&Ae<Ue&&(Ue=Ae);for(pe=fe+1,Ue-q>O((l-he)/pe)&&L("overflow"),he+=(Ue-q)*pe,q=Ue,Ce=0;Ce<Ke;++Ce)if(Ae=W[Ce],Ae<q&&++he>l&&L("overflow"),Ae==q){for(He=he,Re=h;xe=Re<=Te?p:Re>=Te+m?m:Re-Te,!(He<xe);Re+=h)st=He-xe,ve=h-xe,$e.push(F(G(xe+st%ve,0))),He=O(st/ve);$e.push(F(G(He,0))),Te=ae(he,pe,fe==me),he=0,++fe}++he,++q}return $e.join("")}function Q(W){return V(W,function(q){return b.test(q)?se(q.slice(4).toLowerCase()):q})}function ge(W){return V(W,function(q){return x.test(q)?"xn--"+z(q):q})}if(u={version:"1.4.1",ucs2:{decode:Y,encode:ie},decode:se,encode:z,toASCII:ge,toUnicode:Q},n&&i)if(t.exports==n)i.exports=u;else for(N in u)u.hasOwnProperty(N)&&(n[N]=u[N]);else r.punycode=u})(Et)}(ba,ba.exports);var kS=ba.exports,DS=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0},fd=typeof Symbol<"u"&&Symbol,BS=DS,US=function(){return typeof fd!="function"||typeof Symbol!="function"||typeof fd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:BS()},dd={foo:{}},$S=Object,GS=function(){return{__proto__:dd}.foo===dd.foo&&!({__proto__:null}instanceof $S)},zS="Function.prototype.bind called on incompatible ",Uu=Array.prototype.slice,HS=Object.prototype.toString,VS="[object Function]",XS=function(e){var r=this;if(typeof r!="function"||HS.call(r)!==VS)throw new TypeError(zS+r);for(var n=Uu.call(arguments,1),i,a=function(){if(this instanceof i){var m=r.apply(this,n.concat(Uu.call(arguments)));return Object(m)===m?m:this}else return r.apply(e,n.concat(Uu.call(arguments)))},u=Math.max(0,r.length-n.length),l=[],h=0;h<u;h++)l.push("$"+h);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i},jS=XS,$u=Function.prototype.bind||jS,WS=$u,qS=WS.call(Function.call,Object.prototype.hasOwnProperty),Me,mi=SyntaxError,pd=Function,_i=TypeError,Gu=function(t){try{return pd('"use strict"; return ('+t+").constructor;")()}catch{}},Ln=Object.getOwnPropertyDescriptor;if(Ln)try{Ln({},"")}catch{Ln=null}var zu=function(){throw new _i},YS=Ln?function(){try{return arguments.callee,zu}catch{try{return Ln(arguments,"callee").get}catch{return zu}}}():zu,vi=US(),KS=GS(),Tt=Object.getPrototypeOf||(KS?function(t){return t.__proto__}:null),yi={},ZS=typeof Uint8Array>"u"||!Tt?Me:Tt(Uint8Array),kn={"%AggregateError%":typeof AggregateError>"u"?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Me:ArrayBuffer,"%ArrayIteratorPrototype%":vi&&Tt?Tt([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":yi,"%AsyncGenerator%":yi,"%AsyncGeneratorFunction%":yi,"%AsyncIteratorPrototype%":yi,"%Atomics%":typeof Atomics>"u"?Me:Atomics,"%BigInt%":typeof BigInt>"u"?Me:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Me:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Me:FinalizationRegistry,"%Function%":pd,"%GeneratorFunction%":yi,"%Int8Array%":typeof Int8Array>"u"?Me:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Me:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vi&&Tt?Tt(Tt([][Symbol.iterator]())):Me,"%JSON%":typeof JSON=="object"?JSON:Me,"%Map%":typeof Map>"u"?Me:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vi||!Tt?Me:Tt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Me:Promise,"%Proxy%":typeof Proxy>"u"?Me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Me:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vi||!Tt?Me:Tt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vi&&Tt?Tt(""[Symbol.iterator]()):Me,"%Symbol%":vi?Symbol:Me,"%SyntaxError%":mi,"%ThrowTypeError%":YS,"%TypedArray%":ZS,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?Me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Me:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Me:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Me:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Me:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Me:WeakSet};if(Tt)try{null.error}catch(t){var QS=Tt(Tt(t));kn["%Error.prototype%"]=QS}var JS=function t(e){var r;if(e==="%AsyncFunction%")r=Gu("async function () {}");else if(e==="%GeneratorFunction%")r=Gu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Gu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Tt&&(r=Tt(i.prototype))}return kn[e]=r,r},gd={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gs=$u,Ta=qS,eA=gs.call(Function.call,Array.prototype.concat),tA=gs.call(Function.apply,Array.prototype.splice),md=gs.call(Function.call,String.prototype.replace),wa=gs.call(Function.call,String.prototype.slice),rA=gs.call(Function.call,RegExp.prototype.exec),nA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iA=/\\(\\)?/g,sA=function(e){var r=wa(e,0,1),n=wa(e,-1);if(r==="%"&&n!=="%")throw new mi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new mi("invalid intrinsic syntax, expected opening `%`");var i=[];return md(e,nA,function(a,u,l,h){i[i.length]=l?md(h,iA,"$1"):u||a}),i},aA=function(e,r){var n=e,i;if(Ta(gd,n)&&(i=gd[n],n="%"+i[0]+"%"),Ta(kn,n)){var a=kn[n];if(a===yi&&(a=JS(n)),typeof a>"u"&&!r)throw new _i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new mi("intrinsic "+e+" does not exist!")},Hu=function(e,r){if(typeof e!="string"||e.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(rA(/^%?[^%]*%?$/,e)===null)throw new mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sA(e),i=n.length>0?n[0]:"",a=aA("%"+i+"%",r),u=a.name,l=a.value,h=!1,p=a.alias;p&&(i=p[0],tA(n,eA([0,1],p)));for(var m=1,c=!0;m<n.length;m+=1){var d=n[m],g=wa(d,0,1),v=wa(d,-1);if((g==='"'||g==="'"||g==="`"||v==='"'||v==="'"||v==="`")&&g!==v)throw new mi("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(h=!0),i+="."+d,u="%"+i+"%",Ta(kn,u))l=kn[u];else if(l!=null){if(!(d in l)){if(!r)throw new _i("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ln&&m+1>=n.length){var y=Ln(l,d);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[d]}else c=Ta(l,d),l=l[d];c&&!h&&(kn[u]=l)}}return l},_d={exports:{}};(function(t){var e=$u,r=Hu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(i,n),u=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),h=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(c){var d=a(e,i,arguments);if(u&&l){var g=u(d,"length");g.configurable&&l(d,"length",{value:1+h(0,c.length-(arguments.length-1))})}return d};var p=function(){return a(e,n,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p})(_d);var oA=_d.exports,vd=Hu,yd=oA,uA=yd(vd("String.prototype.indexOf")),lA=function(e,r){var n=vd(e,!!r);return typeof n=="function"&&uA(e,".prototype.")>-1?yd(n):n};const cA=Q_(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Vu=typeof Map=="function"&&Map.prototype,Xu=Object.getOwnPropertyDescriptor&&Vu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sa=Vu&&Xu&&typeof Xu.get=="function"?Xu.get:null,xd=Vu&&Map.prototype.forEach,ju=typeof Set=="function"&&Set.prototype,Wu=Object.getOwnPropertyDescriptor&&ju?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Aa=ju&&Wu&&typeof Wu.get=="function"?Wu.get:null,bd=ju&&Set.prototype.forEach,hA=typeof WeakMap=="function"&&WeakMap.prototype,ms=hA?WeakMap.prototype.has:null,fA=typeof WeakSet=="function"&&WeakSet.prototype,_s=fA?WeakSet.prototype.has:null,dA=typeof WeakRef=="function"&&WeakRef.prototype,Td=dA?WeakRef.prototype.deref:null,pA=Boolean.prototype.valueOf,gA=Object.prototype.toString,mA=Function.prototype.toString,_A=String.prototype.match,qu=String.prototype.slice,fn=String.prototype.replace,vA=String.prototype.toUpperCase,wd=String.prototype.toLowerCase,Sd=RegExp.prototype.test,Ad=Array.prototype.concat,Br=Array.prototype.join,yA=Array.prototype.slice,Ed=Math.floor,Yu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ku=Object.getOwnPropertySymbols,Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,xi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===xi||"symbol")?Symbol.toStringTag:null,Cd=Object.prototype.propertyIsEnumerable,Id=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Rd(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Sd.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ed(-t):Ed(t);if(n!==t){var i=String(n),a=qu.call(e,i.length+1);return fn.call(i,r,"$&_")+"."+fn.call(fn.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fn.call(e,r,"$&_")}var Qu=cA,Pd=Qu.custom,Md=Nd(Pd)?Pd:null,xA=function t(e,r,n,i){var a=r||{};if(dn(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(dn(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=dn(a,"customInspect")?a.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(dn(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(dn(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return kd(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return l?Rd(e,h):h}if(typeof e=="bigint"){var p=String(e)+"n";return l?Rd(e,p):p}var m=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=m&&m>0&&typeof e=="object")return Ju(e)?"[Array]":"[Object]";var c=BA(a,n);if(typeof i>"u")i=[];else if(Ld(i,e)>=0)return"[Circular]";function d(X,G,ae){if(G&&(i=yA.call(i),i.push(G)),ae){var se={depth:a.depth};return dn(a,"quoteStyle")&&(se.quoteStyle=a.quoteStyle),t(X,se,n+1,i)}return t(X,a,n+1,i)}if(typeof e=="function"&&!Fd(e)){var g=RA(e),v=Ea(e,d);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Br.call(v,", ")+" }":"")}if(Nd(e)){var y=xi?fn.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zu.call(e);return typeof e=="object"&&!xi?vs(y):y}if(LA(e)){for(var b="<"+wd.call(String(e.nodeName)),x=e.attributes||[],E=0;E<x.length;E++)b+=" "+x[E].name+"="+Od(bA(x[E].value),"double",a);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+="</"+wd.call(String(e.nodeName))+">",b}if(Ju(e)){if(e.length===0)return"[]";var w=Ea(e,d);return c&&!DA(w)?"["+tl(w,c)+"]":"[ "+Br.call(w,", ")+" ]"}if(wA(e)){var I=Ea(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Cd.call(e,"cause")?"{ ["+String(e)+"] "+Br.call(Ad.call("[cause]: "+d(e.cause),I),", ")+" }":I.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Br.call(I,", ")+" }"}if(typeof e=="object"&&u){if(Md&&typeof e[Md]=="function"&&Qu)return Qu(e,{depth:m-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(PA(e)){var O=[];return xd&&xd.call(e,function(X,G){O.push(d(G,e,!0)+" => "+d(X,e))}),Dd("Map",Sa.call(e),O,c)}if(FA(e)){var F=[];return bd&&bd.call(e,function(X){F.push(d(X,e))}),Dd("Set",Aa.call(e),F,c)}if(MA(e))return el("WeakMap");if(NA(e))return el("WeakSet");if(OA(e))return el("WeakRef");if(AA(e))return vs(d(Number(e)));if(CA(e))return vs(d(Yu.call(e)));if(EA(e))return vs(pA.call(e));if(SA(e))return vs(d(String(e)));if(!TA(e)&&!Fd(e)){var N=Ea(e,d),L=Id?Id(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",V=!L&&Pt&&Object(e)===e&&Pt in e?qu.call(pn(e),8,-1):D?"Object":"",Y=L||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ie=Y+(V||D?"["+Br.call(Ad.call([],V||[],D||[]),": ")+"] ":"");return N.length===0?ie+"{}":c?ie+"{"+tl(N,c)+"}":ie+"{ "+Br.call(N,", ")+" }"}return String(e)};function Od(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function bA(t){return fn.call(String(t),/"/g,"&quot;")}function Ju(t){return pn(t)==="[object Array]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function TA(t){return pn(t)==="[object Date]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Fd(t){return pn(t)==="[object RegExp]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function wA(t){return pn(t)==="[object Error]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function SA(t){return pn(t)==="[object String]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function AA(t){return pn(t)==="[object Number]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function EA(t){return pn(t)==="[object Boolean]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Nd(t){if(xi)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Zu)return!1;try{return Zu.call(t),!0}catch{}return!1}function CA(t){if(!t||typeof t!="object"||!Yu)return!1;try{return Yu.call(t),!0}catch{}return!1}var IA=Object.prototype.hasOwnProperty||function(t){return t in this};function dn(t,e){return IA.call(t,e)}function pn(t){return gA.call(t)}function RA(t){if(t.name)return t.name;var e=_A.call(mA.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ld(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function PA(t){if(!Sa||!t||typeof t!="object")return!1;try{Sa.call(t);try{Aa.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function MA(t){if(!ms||!t||typeof t!="object")return!1;try{ms.call(t,ms);try{_s.call(t,_s)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function OA(t){if(!Td||!t||typeof t!="object")return!1;try{return Td.call(t),!0}catch{}return!1}function FA(t){if(!Aa||!t||typeof t!="object")return!1;try{Aa.call(t);try{Sa.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function NA(t){if(!_s||!t||typeof t!="object")return!1;try{_s.call(t,_s);try{ms.call(t,ms)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function LA(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function kd(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return kd(qu.call(t,0,e.maxStringLength),e)+n}var i=fn.call(fn.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,kA);return Od(i,"single",e)}function kA(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+vA.call(e.toString(16))}function vs(t){return"Object("+t+")"}function el(t){return t+" { ? }"}function Dd(t,e,r,n){var i=n?tl(r,n):Br.call(r,", ");return t+" ("+e+") {"+i+"}"}function DA(t){for(var e=0;e<t.length;e++)if(Ld(t[e],`
34
34
  `)>=0)return!1;return!0}function BA(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Br.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Br.call(Array(e+1),r)}}function tl(t,e){if(t.length===0)return"";var r=`
35
35
  `+e.prev+e.base;return r+Br.call(t,","+r)+`
36
36
  `+e.prev}function Ea(t,e){var r=Ju(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=dn(t,i)?e(t[i],t):""}var a=typeof Ku=="function"?Ku(t):[],u;if(xi){u={};for(var l=0;l<a.length;l++)u["$"+a[l]]=a[l]}for(var h in t)dn(t,h)&&(r&&String(Number(h))===h&&h<t.length||xi&&u["$"+h]instanceof Symbol||(Sd.call(/[^\w$]/,h)?n.push(e(h,t)+": "+e(t[h],t)):n.push(h+": "+e(t[h],t))));if(typeof Ku=="function")for(var p=0;p<a.length;p++)Cd.call(t,a[p])&&n.push("["+e(a[p])+"]: "+e(t[a[p]],t));return n}var rl=Hu,bi=lA,UA=xA,$A=rl("%TypeError%"),Ca=rl("%WeakMap%",!0),Ia=rl("%Map%",!0),GA=bi("WeakMap.prototype.get",!0),zA=bi("WeakMap.prototype.set",!0),HA=bi("WeakMap.prototype.has",!0),VA=bi("Map.prototype.get",!0),XA=bi("Map.prototype.set",!0),jA=bi("Map.prototype.has",!0),nl=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},WA=function(t,e){var r=nl(t,e);return r&&r.value},qA=function(t,e,r){var n=nl(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},YA=function(t,e){return!!nl(t,e)},KA=function(){var e,r,n,i={assert:function(a){if(!i.has(a))throw new $A("Side channel does not contain "+UA(a))},get:function(a){if(Ca&&a&&(typeof a=="object"||typeof a=="function")){if(e)return GA(e,a)}else if(Ia){if(r)return VA(r,a)}else if(n)return WA(n,a)},has:function(a){if(Ca&&a&&(typeof a=="object"||typeof a=="function")){if(e)return HA(e,a)}else if(Ia){if(r)return jA(r,a)}else if(n)return YA(n,a);return!1},set:function(a,u){Ca&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Ca),zA(e,a,u)):Ia?(r||(r=new Ia),XA(r,a,u)):(n||(n={key:{},next:null}),qA(n,a,u))}};return i},ZA=String.prototype.replace,QA=/%20/g,il={RFC1738:"RFC1738",RFC3986:"RFC3986"},sl={default:il.RFC3986,formatters:{RFC1738:function(t){return ZA.call(t,QA,"+")},RFC3986:function(t){return String(t)}},RFC1738:il.RFC1738,RFC3986:il.RFC3986},JA=sl,al=Object.prototype.hasOwnProperty,Dn=Array.isArray,Ur=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),eE=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Dn(n)){for(var i=[],a=0;a<n.length;++a)typeof n[a]<"u"&&i.push(n[a]);r.obj[r.prop]=i}}},Bd=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(n[i]=e[i]);return n},tE=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Dn(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!al.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return Dn(e)&&!Dn(r)&&(i=Bd(e,n)),Dn(e)&&Dn(r)?(r.forEach(function(a,u){if(al.call(e,u)){var l=e[u];l&&typeof l=="object"&&a&&typeof a=="object"?e[u]=t(l,a,n):e.push(a)}else e[u]=a}),e):Object.keys(r).reduce(function(a,u){var l=r[u];return al.call(a,u)?a[u]=t(a[u],l,n):a[u]=l,a},i)},rE=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},nE=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},iE=function(e,r,n,i,a){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var l="",h=0;h<u.length;++h){var p=u.charCodeAt(h);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===JA.RFC1738&&(p===40||p===41)){l+=u.charAt(h);continue}if(p<128){l=l+Ur[p];continue}if(p<2048){l=l+(Ur[192|p>>6]+Ur[128|p&63]);continue}if(p<55296||p>=57344){l=l+(Ur[224|p>>12]+Ur[128|p>>6&63]+Ur[128|p&63]);continue}h+=1,p=65536+((p&1023)<<10|u.charCodeAt(h)&1023),l+=Ur[240|p>>18]+Ur[128|p>>12&63]+Ur[128|p>>6&63]+Ur[128|p&63]}return l},sE=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var a=r[i],u=a.obj[a.prop],l=Object.keys(u),h=0;h<l.length;++h){var p=l[h],m=u[p];typeof m=="object"&&m!==null&&n.indexOf(m)===-1&&(r.push({obj:u,prop:p}),n.push(m))}return eE(r),e},aE=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},oE=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},uE=function(e,r){return[].concat(e,r)},lE=function(e,r){if(Dn(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)},Ud={arrayToObject:Bd,assign:rE,combine:uE,compact:sE,decode:nE,encode:iE,isBuffer:oE,isRegExp:aE,maybeMap:lE,merge:tE},$d=KA,Ra=Ud,ys=sl,cE=Object.prototype.hasOwnProperty,Gd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},jr=Array.isArray,hE=Array.prototype.push,zd=function(t,e){hE.apply(t,jr(e)?e:[e])},fE=Date.prototype.toISOString,Hd=ys.default,Mt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ra.encode,encodeValuesOnly:!1,format:Hd,formatter:ys.formatters[Hd],indices:!1,serializeDate:function(e){return fE.call(e)},skipNulls:!1,strictNullHandling:!1},dE=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ol={},pE=function t(e,r,n,i,a,u,l,h,p,m,c,d,g,v,y,b){for(var x=e,E=b,w=0,I=!1;(E=E.get(ol))!==void 0&&!I;){var O=E.get(e);if(w+=1,typeof O<"u"){if(O===w)throw new RangeError("Cyclic object value");I=!0}typeof E.get(ol)>"u"&&(w=0)}if(typeof h=="function"?x=h(r,x):x instanceof Date?x=c(x):n==="comma"&&jr(x)&&(x=Ra.maybeMap(x,function(se){return se instanceof Date?c(se):se})),x===null){if(a)return l&&!v?l(r,Mt.encoder,y,"key",d):r;x=""}if(dE(x)||Ra.isBuffer(x)){if(l){var F=v?r:l(r,Mt.encoder,y,"key",d);return[g(F)+"="+g(l(x,Mt.encoder,y,"value",d))]}return[g(r)+"="+g(String(x))]}var N=[];if(typeof x>"u")return N;var L;if(n==="comma"&&jr(x))v&&l&&(x=Ra.maybeMap(x,l)),L=[{value:x.length>0?x.join(",")||null:void 0}];else if(jr(h))L=h;else{var D=Object.keys(x);L=p?D.sort(p):D}for(var V=i&&jr(x)&&x.length===1?r+"[]":r,Y=0;Y<L.length;++Y){var ie=L[Y],X=typeof ie=="object"&&typeof ie.value<"u"?ie.value:x[ie];if(!(u&&X===null)){var G=jr(x)?typeof n=="function"?n(V,ie):V:V+(m?"."+ie:"["+ie+"]");b.set(e,w);var ae=$d();ae.set(ol,b),zd(N,t(X,G,n,i,a,u,n==="comma"&&v&&jr(x)?null:l,h,p,m,c,d,g,v,y,ae))}}return N},gE=function(e){if(!e)return Mt;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||Mt.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ys.default;if(typeof e.format<"u"){if(!cE.call(ys.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=ys.formatters[n],a=Mt.filter;return(typeof e.filter=="function"||jr(e.filter))&&(a=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Mt.addQueryPrefix,allowDots:typeof e.allowDots>"u"?Mt.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Mt.charsetSentinel,delimiter:typeof e.delimiter>"u"?Mt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Mt.encode,encoder:typeof e.encoder=="function"?e.encoder:Mt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Mt.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Mt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Mt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Mt.strictNullHandling}},mE=function(t,e){var r=t,n=gE(e),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):jr(n.filter)&&(a=n.filter,i=a);var u=[];if(typeof r!="object"||r===null)return"";var l;e&&e.arrayFormat in Gd?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var h=Gd[l];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=h==="comma"&&e&&e.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var m=$d(),c=0;c<i.length;++c){var d=i[c];n.skipNulls&&r[d]===null||zd(u,pE(r[d],d,h,p,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,m))}var g=u.join(n.delimiter),v=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""},Ti=Ud,ul=Object.prototype.hasOwnProperty,_E=Array.isArray,wt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ti.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},vE=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Vd=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},yE="utf8=%26%2310003%3B",xE="utf8=%E2%9C%93",bE=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=r.parameterLimit===1/0?void 0:r.parameterLimit,u=i.split(r.delimiter,a),l=-1,h,p=r.charset;if(r.charsetSentinel)for(h=0;h<u.length;++h)u[h].indexOf("utf8=")===0&&(u[h]===xE?p="utf-8":u[h]===yE&&(p="iso-8859-1"),l=h,h=u.length);for(h=0;h<u.length;++h)if(h!==l){var m=u[h],c=m.indexOf("]="),d=c===-1?m.indexOf("="):c+1,g,v;d===-1?(g=r.decoder(m,wt.decoder,p,"key"),v=r.strictNullHandling?null:""):(g=r.decoder(m.slice(0,d),wt.decoder,p,"key"),v=Ti.maybeMap(Vd(m.slice(d+1),r),function(y){return r.decoder(y,wt.decoder,p,"value")})),v&&r.interpretNumericEntities&&p==="iso-8859-1"&&(v=vE(v)),m.indexOf("[]=")>-1&&(v=_E(v)?[v]:v),ul.call(n,g)?n[g]=Ti.combine(n[g],v):n[g]=v}return n},TE=function(t,e,r,n){for(var i=n?e:Vd(e,r),a=t.length-1;a>=0;--a){var u,l=t[a];if(l==="[]"&&r.parseArrays)u=[].concat(i);else{u=r.plainObjects?Object.create(null):{};var h=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,p=parseInt(h,10);!r.parseArrays&&h===""?u={0:i}:!isNaN(p)&&l!==h&&String(p)===h&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(u=[],u[p]=i):h!=="__proto__"&&(u[h]=i)}i=u}return i},wE=function(e,r,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,h=n.depth>0&&u.exec(a),p=h?a.slice(0,h.index):a,m=[];if(p){if(!n.plainObjects&&ul.call(Object.prototype,p)&&!n.allowPrototypes)return;m.push(p)}for(var c=0;n.depth>0&&(h=l.exec(a))!==null&&c<n.depth;){if(c+=1,!n.plainObjects&&ul.call(Object.prototype,h[1].slice(1,-1))&&!n.allowPrototypes)return;m.push(h[1])}return h&&m.push("["+a.slice(h.index)+"]"),TE(m,r,n,i)}},SE=function(e){if(!e)return wt;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?wt.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?wt.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:wt.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:wt.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:wt.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:wt.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:wt.comma,decoder:typeof e.decoder=="function"?e.decoder:wt.decoder,delimiter:typeof e.delimiter=="string"||Ti.isRegExp(e.delimiter)?e.delimiter:wt.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:wt.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:wt.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:wt.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:wt.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:wt.strictNullHandling}},AE=function(t,e){var r=SE(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?bE(t,r):t,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),u=0;u<a.length;++u){var l=a[u],h=wE(l,n[l],r,typeof t=="string");i=Ti.merge(i,h,r)}return r.allowSparse===!0?i:Ti.compact(i)},EE=mE,CE=AE,IE=sl,RE={formats:IE,parse:CE,stringify:EE},PE=kS;function vr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var ME=/^([a-z0-9.+-]+:)/i,OE=/:[0-9]*$/,FE=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,NE=["<",">",'"',"`"," ","\r",`
@@ -2013,4 +2013,4 @@ __p += '`),Le&&(H+=`' +
2013
2013
  function print() { __p += __j.call(arguments, '') }
2014
2014
  `:`;
2015
2015
  `)+H+`return __p
2016
- }`;var we=X_(function(){return Ve(A,re+"return "+H).apply(r,C)});if(we.source=H,Sh(we))throw we;return we}function PB(s){return We(s).toLowerCase()}function MB(s){return We(s).toUpperCase()}function OB(s,o,f){if(s=We(s),s&&(f||o===r))return em(s);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=Pr(o),A=tm(_,T),C=rm(_,T)+1;return An(_,A,C).join("")}function FB(s,o,f){if(s=We(s),s&&(f||o===r))return s.slice(0,im(s)+1);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=rm(_,Pr(o))+1;return An(_,0,T).join("")}function NB(s,o,f){if(s=We(s),s&&(f||o===r))return s.replace(Sc,"");if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=tm(_,Pr(o));return An(_,T).join("")}function LB(s,o){var f=V,_=Y;if(ct(o)){var T="separator"in o?o.separator:T;f="length"in o?be(o.length):f,_="omission"in o?Jt(o.omission):_}s=We(s);var A=s.length;if(Hi(s)){var C=Pr(s);A=C.length}if(f>=A)return s;var R=f-Vi(_);if(R<1)return _;var M=C?An(C,0,R).join(""):s.slice(0,R);if(T===r)return M+_;if(C&&(R+=M.length-R),Ah(T)){if(s.slice(R).search(T)){var U,$=M;for(T.global||(T=Gc(T.source,We(T0.exec(T))+"g")),T.lastIndex=0;U=T.exec($);)var H=U.index;M=M.slice(0,H===r?R:H)}}else if(s.indexOf(Jt(T),R)!=R){var K=M.lastIndexOf(T);K>-1&&(M=M.slice(0,K))}return M+_}function kB(s){return s=We(s),s&&WF.test(s)?s.replace(y0,h3):s}var DB=Zi(function(s,o,f){return s+(f?" ":"")+o.toUpperCase()}),Ih=jm("toUpperCase");function V_(s,o,f){return s=We(s),o=f?r:o,o===r?a3(s)?p3(s):ZN(s):s.match(o)||[]}var X_=Ee(function(s,o){try{return Zt(s,r,o)}catch(f){return Sh(f)?f:new _e(f)}}),BB=tn(function(s,o){return hr(o,function(f){f=Vr(f),Jr(s,f,Th(s[f],s))}),s});function UB(s){var o=s==null?0:s.length,f=ue();return s=o?at(s,function(_){if(typeof _[1]!="function")throw new fr(u);return[f(_[0]),_[1]]}):[],Ee(function(_){for(var T=-1;++T<o;){var A=s[T];if(Zt(A[0],this,_))return Zt(A[1],this,_)}})}function $B(s){return hL(pr(s,c))}function Rh(s){return function(){return s}}function GB(s,o){return s==null||s!==s?o:s}var zB=qm(),HB=qm(!0);function jt(s){return s}function Ph(s){return Sm(typeof s=="function"?s:pr(s,c))}function VB(s){return Em(pr(s,c))}function XB(s,o){return Cm(s,pr(o,c))}var jB=Ee(function(s,o){return function(f){return Vs(f,s,o)}}),WB=Ee(function(s,o){return function(f){return Vs(s,f,o)}});function Mh(s,o,f){var _=At(o),T=zo(o,_);f==null&&!(ct(o)&&(T.length||!_.length))&&(f=o,o=s,s=this,T=zo(o,At(o)));var A=!(ct(f)&&"chain"in f)||!!f.chain,C=nn(s);return hr(T,function(R){var M=o[R];s[R]=M,C&&(s.prototype[R]=function(){var U=this.__chain__;if(A||U){var $=s(this.__wrapped__),H=$.__actions__=Ht(this.__actions__);return H.push({func:M,args:arguments,thisArg:s}),$.__chain__=U,$}return M.apply(s,yn([this.value()],arguments))})}),s}function qB(){return It._===this&&(It._=x3),this}function Oh(){}function YB(s){return s=be(s),Ee(function(o){return Im(o,s)})}var KB=lh(at),ZB=lh(Y0),QB=lh(Nc);function j_(s){return mh(s)?Lc(Vr(s)):IL(s)}function JB(s){return function(o){return s==null?r:ti(s,o)}}var eU=Km(),tU=Km(!0);function Fh(){return[]}function Nh(){return!1}function rU(){return{}}function nU(){return""}function iU(){return!0}function sU(s,o){if(s=be(s),s<1||s>Q)return[];var f=q,_=Ft(s,q);o=ue(o),s-=q;for(var T=Bc(_,o);++f<s;)o(f);return T}function aU(s){return ye(s)?at(s,Vr):er(s)?[s]:Ht(f_(We(s)))}function oU(s){var o=++v3;return We(s)+o}var uU=qo(function(s,o){return s+o},0),lU=ch("ceil"),cU=qo(function(s,o){return s/o},1),hU=ch("floor");function fU(s){return s&&s.length?Go(s,jt,Yc):r}function dU(s,o){return s&&s.length?Go(s,ue(o,2),Yc):r}function pU(s){return Q0(s,jt)}function gU(s,o){return Q0(s,ue(o,2))}function mU(s){return s&&s.length?Go(s,jt,Jc):r}function _U(s,o){return s&&s.length?Go(s,ue(o,2),Jc):r}var vU=qo(function(s,o){return s*o},1),yU=ch("round"),xU=qo(function(s,o){return s-o},0);function bU(s){return s&&s.length?Dc(s,jt):0}function TU(s,o){return s&&s.length?Dc(s,ue(o,2)):0}return S.after=V5,S.ary=w_,S.assign=MD,S.assignIn=D_,S.assignInWith=ou,S.assignWith=OD,S.at=FD,S.before=S_,S.bind=Th,S.bindAll=BB,S.bindKey=A_,S.castArray=rD,S.chain=x_,S.chunk=hk,S.compact=fk,S.concat=dk,S.cond=UB,S.conforms=$B,S.constant=Rh,S.countBy=b5,S.create=ND,S.curry=E_,S.curryRight=C_,S.debounce=I_,S.defaults=LD,S.defaultsDeep=kD,S.defer=X5,S.delay=j5,S.difference=pk,S.differenceBy=gk,S.differenceWith=mk,S.drop=_k,S.dropRight=vk,S.dropRightWhile=yk,S.dropWhile=xk,S.fill=bk,S.filter=w5,S.flatMap=E5,S.flatMapDeep=C5,S.flatMapDepth=I5,S.flatten=m_,S.flattenDeep=Tk,S.flattenDepth=wk,S.flip=W5,S.flow=zB,S.flowRight=HB,S.fromPairs=Sk,S.functions=HD,S.functionsIn=VD,S.groupBy=R5,S.initial=Ek,S.intersection=Ck,S.intersectionBy=Ik,S.intersectionWith=Rk,S.invert=jD,S.invertBy=WD,S.invokeMap=M5,S.iteratee=Ph,S.keyBy=O5,S.keys=At,S.keysIn=Xt,S.map=tu,S.mapKeys=YD,S.mapValues=KD,S.matches=VB,S.matchesProperty=XB,S.memoize=nu,S.merge=ZD,S.mergeWith=B_,S.method=jB,S.methodOf=WB,S.mixin=Mh,S.negate=iu,S.nthArg=YB,S.omit=QD,S.omitBy=JD,S.once=q5,S.orderBy=F5,S.over=KB,S.overArgs=Y5,S.overEvery=ZB,S.overSome=QB,S.partial=wh,S.partialRight=R_,S.partition=N5,S.pick=eB,S.pickBy=U_,S.property=j_,S.propertyOf=JB,S.pull=Fk,S.pullAll=v_,S.pullAllBy=Nk,S.pullAllWith=Lk,S.pullAt=kk,S.range=eU,S.rangeRight=tU,S.rearg=K5,S.reject=D5,S.remove=Dk,S.rest=Z5,S.reverse=xh,S.sampleSize=U5,S.set=rB,S.setWith=nB,S.shuffle=$5,S.slice=Bk,S.sortBy=H5,S.sortedUniq=Xk,S.sortedUniqBy=jk,S.split=EB,S.spread=Q5,S.tail=Wk,S.take=qk,S.takeRight=Yk,S.takeRightWhile=Kk,S.takeWhile=Zk,S.tap=f5,S.throttle=J5,S.thru=eu,S.toArray=N_,S.toPairs=$_,S.toPairsIn=G_,S.toPath=aU,S.toPlainObject=k_,S.transform=iB,S.unary=eD,S.union=Qk,S.unionBy=Jk,S.unionWith=e5,S.uniq=t5,S.uniqBy=r5,S.uniqWith=n5,S.unset=sB,S.unzip=bh,S.unzipWith=y_,S.update=aB,S.updateWith=oB,S.values=es,S.valuesIn=uB,S.without=i5,S.words=V_,S.wrap=tD,S.xor=s5,S.xorBy=a5,S.xorWith=o5,S.zip=u5,S.zipObject=l5,S.zipObjectDeep=c5,S.zipWith=h5,S.entries=$_,S.entriesIn=G_,S.extend=D_,S.extendWith=ou,Mh(S,S),S.add=uU,S.attempt=X_,S.camelCase=fB,S.capitalize=z_,S.ceil=lU,S.clamp=lB,S.clone=nD,S.cloneDeep=sD,S.cloneDeepWith=aD,S.cloneWith=iD,S.conformsTo=oD,S.deburr=H_,S.defaultTo=GB,S.divide=cU,S.endsWith=dB,S.eq=Or,S.escape=pB,S.escapeRegExp=gB,S.every=T5,S.find=S5,S.findIndex=p_,S.findKey=DD,S.findLast=A5,S.findLastIndex=g_,S.findLastKey=BD,S.floor=hU,S.forEach=b_,S.forEachRight=T_,S.forIn=UD,S.forInRight=$D,S.forOwn=GD,S.forOwnRight=zD,S.get=Eh,S.gt=uD,S.gte=lD,S.has=XD,S.hasIn=Ch,S.head=__,S.identity=jt,S.includes=P5,S.indexOf=Ak,S.inRange=cB,S.invoke=qD,S.isArguments=ii,S.isArray=ye,S.isArrayBuffer=cD,S.isArrayLike=Vt,S.isArrayLikeObject=gt,S.isBoolean=hD,S.isBuffer=En,S.isDate=fD,S.isElement=dD,S.isEmpty=pD,S.isEqual=gD,S.isEqualWith=mD,S.isError=Sh,S.isFinite=_D,S.isFunction=nn,S.isInteger=P_,S.isLength=su,S.isMap=M_,S.isMatch=vD,S.isMatchWith=yD,S.isNaN=xD,S.isNative=bD,S.isNil=wD,S.isNull=TD,S.isNumber=O_,S.isObject=ct,S.isObjectLike=dt,S.isPlainObject=Ks,S.isRegExp=Ah,S.isSafeInteger=SD,S.isSet=F_,S.isString=au,S.isSymbol=er,S.isTypedArray=Ji,S.isUndefined=AD,S.isWeakMap=ED,S.isWeakSet=CD,S.join=Pk,S.kebabCase=mB,S.last=mr,S.lastIndexOf=Mk,S.lowerCase=_B,S.lowerFirst=vB,S.lt=ID,S.lte=RD,S.max=fU,S.maxBy=dU,S.mean=pU,S.meanBy=gU,S.min=mU,S.minBy=_U,S.stubArray=Fh,S.stubFalse=Nh,S.stubObject=rU,S.stubString=nU,S.stubTrue=iU,S.multiply=vU,S.nth=Ok,S.noConflict=qB,S.noop=Oh,S.now=ru,S.pad=yB,S.padEnd=xB,S.padStart=bB,S.parseInt=TB,S.random=hB,S.reduce=L5,S.reduceRight=k5,S.repeat=wB,S.replace=SB,S.result=tB,S.round=yU,S.runInContext=P,S.sample=B5,S.size=G5,S.snakeCase=AB,S.some=z5,S.sortedIndex=Uk,S.sortedIndexBy=$k,S.sortedIndexOf=Gk,S.sortedLastIndex=zk,S.sortedLastIndexBy=Hk,S.sortedLastIndexOf=Vk,S.startCase=CB,S.startsWith=IB,S.subtract=xU,S.sum=bU,S.sumBy=TU,S.template=RB,S.times=sU,S.toFinite=sn,S.toInteger=be,S.toLength=L_,S.toLower=PB,S.toNumber=_r,S.toSafeInteger=PD,S.toString=We,S.toUpper=MB,S.trim=OB,S.trimEnd=FB,S.trimStart=NB,S.truncate=LB,S.unescape=kB,S.uniqueId=oU,S.upperCase=DB,S.upperFirst=Ih,S.each=b_,S.eachRight=T_,S.first=__,Mh(S,function(){var s={};return zr(S,function(o,f){Ye.call(S.prototype,f)||(s[f]=o)}),s}(),{chain:!1}),S.VERSION=n,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){S[s].placeholder=S}),hr(["drop","take"],function(s,o){Oe.prototype[s]=function(f){f=f===r?1:xt(be(f),0);var _=this.__filtered__&&!o?new Oe(this):this.clone();return _.__filtered__?_.__takeCount__=Ft(f,_.__takeCount__):_.__views__.push({size:Ft(f,q),type:s+(_.__dir__<0?"Right":"")}),_},Oe.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),hr(["filter","map","takeWhile"],function(s,o){var f=o+1,_=f==G||f==se;Oe.prototype[s]=function(T){var A=this.clone();return A.__iteratees__.push({iteratee:ue(T,3),type:f}),A.__filtered__=A.__filtered__||_,A}}),hr(["head","last"],function(s,o){var f="take"+(o?"Right":"");Oe.prototype[s]=function(){return this[f](1).value()[0]}}),hr(["initial","tail"],function(s,o){var f="drop"+(o?"":"Right");Oe.prototype[s]=function(){return this.__filtered__?new Oe(this):this[f](1)}}),Oe.prototype.compact=function(){return this.filter(jt)},Oe.prototype.find=function(s){return this.filter(s).head()},Oe.prototype.findLast=function(s){return this.reverse().find(s)},Oe.prototype.invokeMap=Ee(function(s,o){return typeof s=="function"?new Oe(this):this.map(function(f){return Vs(f,s,o)})}),Oe.prototype.reject=function(s){return this.filter(iu(ue(s)))},Oe.prototype.slice=function(s,o){s=be(s);var f=this;return f.__filtered__&&(s>0||o<0)?new Oe(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),o!==r&&(o=be(o),f=o<0?f.dropRight(-o):f.take(o-s)),f)},Oe.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Oe.prototype.toArray=function(){return this.take(q)},zr(Oe.prototype,function(s,o){var f=/^(?:filter|find|map|reject)|While$/.test(o),_=/^(?:head|last)$/.test(o),T=S[_?"take"+(o=="last"?"Right":""):o],A=_||/^find/.test(o);T&&(S.prototype[o]=function(){var C=this.__wrapped__,R=_?[1]:arguments,M=C instanceof Oe,U=R[0],$=M||ye(C),H=function(Pe){var Le=T.apply(S,yn([Pe],R));return _&&K?Le[0]:Le};$&&f&&typeof U=="function"&&U.length!=1&&(M=$=!1);var K=this.__chain__,re=!!this.__actions__.length,le=A&&!K,we=M&&!re;if(!A&&$){C=we?C:new Oe(this);var ce=s.apply(C,R);return ce.__actions__.push({func:eu,args:[H],thisArg:r}),new dr(ce,K)}return le&&we?s.apply(this,R):(ce=this.thru(H),le?_?ce.value()[0]:ce.value():ce)})}),hr(["pop","push","shift","sort","splice","unshift"],function(s){var o=Eo[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",_=/^(?:pop|shift)$/.test(s);S.prototype[s]=function(){var T=arguments;if(_&&!this.__chain__){var A=this.value();return o.apply(ye(A)?A:[],T)}return this[f](function(C){return o.apply(ye(C)?C:[],T)})}}),zr(Oe.prototype,function(s,o){var f=S[o];if(f){var _=f.name+"";Ye.call(qi,_)||(qi[_]=[]),qi[_].push({name:o,func:f})}}),qi[Wo(r,x).name]=[{name:"wrapper",func:r}],Oe.prototype.clone=k3,Oe.prototype.reverse=D3,Oe.prototype.value=B3,S.prototype.at=d5,S.prototype.chain=p5,S.prototype.commit=g5,S.prototype.next=m5,S.prototype.plant=v5,S.prototype.reverse=y5,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=x5,S.prototype.first=S.prototype.head,Ds&&(S.prototype[Ds]=_5),S},Xi=g3();Kn?((Kn.exports=Xi)._=Xi,Pc._=Xi):It._=Xi}).call(Et)}(vo,vo.exports);var d0=vo.exports;const fF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},dF=te.forwardRef((t,e)=>{const[r,n]=te.useState([]),[,i]=te.useState(0),[a,u]=te.useState([]),[,l]=j.useState(!1),[h,p]=rF({autoPlay:!1}),m=j.useRef(null),c=j.useRef(null),d=j.useRef(fF),g=j.useRef(),{tl:v,dragModeRef:y}=j.useContext(on),{frames:b,delays:x}=h,{src:E,startAt:w,endAt:I,frameStartAt:O,frameEndAt:F,loop:N,visible:L,disabled:D,transformation:{width:V=0,height:Y=0,x:ie,y:X,colorCorrection:G={}},pointerdown:ae}=t,{temperatureFilter:se,sharpnessFilter:z,hueFilter:Q,blurFilter:ge,adjustmentFilter:W,vignetteFilter:q,noiseFilter:he}=Xn(G),{blurRadius:fe=0,vignette:me=0,noise:Te=0}=G,Ce=.1;cF(E,p),ht(Ze.PAUSE,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SEEK_END,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),te.useEffect(()=>{d.current&&m.current&&(y.current?(m.current.stop(),d.current.isPlaying=!1,d.current.isDragging=!0):d.current.isDragging=!1)},[y]),te.useEffect(()=>{if(!ss(b)){const pe=OO(b,oe=>{const{data:Ne,width:Kt,height:zt}=oe,ft=new Uint8Array(Ne);return $t.Texture.fromBuffer(ft,Kt,zt)}),ve=pe.map((oe,Ne)=>({texture:oe,time:x[Ne]}));n(pe),u(ve);let st=0;x.forEach(oe=>{st+=oe*10}),i(st),d.current.totalDuration=st,d.current.totalFrames=b.length}},[b,x]);const Ue=d0.debounce(pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},20),He=d0.debounce(()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},50),Re=pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},xe=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},Ae=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},$e=pe=>{var st;const ve=pe+((st=g.current)==null?void 0:st.time());m.current&&y.current?(Ue(ve),He(),d.current.isPlaying=!1):g.current&&m.current&&!d.current.isPlaying&&g.current.isActive()&&v.current.isActive()&&(Ue(ve),d.current.isPlaying=!0)},Ke=()=>{l(!0)};return j.useEffect(()=>{let pe=ee.context(()=>{});if(c.current&&v.current){const ve={duration:Number(F)-Number(O),onStart:Re,onComplete:xe,onStartParams:[O,F],onCompleteParams:[],onInterrupt:Ae,onUpdate:$e,onUpdateParams:[O,F]};g.current&&g.current.kill(),pe=ee.context(()=>{g.current=ee.from(c.current,ve,O),v.current.add(g.current,w)})}return()=>{g.current&&(g.current.kill(),ee.killTweensOf(g.current)),pe.revert()}},[w,I,O,F]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,isGif:!0,children:Se.jsx(De.Container,{ref:c,children:r&&r.length>0&&Se.jsx(f0,{x:ie,y:X,width:V,height:Y,animationSpeed:1,alpha:L?1:0,loop:N,textures:a,onComplete:Ke,anchor:.5,forwardRef:m,...!D&&L&&{interactive:!0,pointerdown:ae},filters:[se,z,Q,W,...fe>0?[ge]:[],...me>0?[q]:[],...Te>0?[he]:[]]})})})}),pF=te.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(0),a=j.useRef(null),u=j.useRef(null),l=j.useRef(16),h=j.useRef(null),{visible:p,text:m,disabled:c,transformation:d,pointerdown:g,onDobuleClick:v}=t,{x:y,y:b,fontFamily:x="Arial",fontWeight:E="normal",fontStyle:w="normal",fontSize:I=16,fontVariant:O="normal",fill:F="black",stroke:N,strokeThickness:L=0,blurRadius:D=0,blurEnabled:V=!1,dropShadowColor:Y=null,dropShadow:ie=!1,dropShadowBlur:X=0,wordWrapWidth:G=5e7,leading:ae=0,letterSpacing:se,colorCorrection:z={}}=d,{temperatureFilter:Q,sharpnessFilter:ge,hueFilter:W,blurFilter:q,adjustmentFilter:he}=Xn(z),{blurRadius:fe=0}=z;te.useEffect(()=>{l.current=Number(I)},[I]);const me=["italic","oblique"].includes(w)?w:void 0,Te=["small-caps"].includes(O),Ce=["bold","bolder","lighter","100","200","300"].includes(E)?E:void 0,Ue=Number(se)>0?se:void 0,He=te.useMemo(()=>new $t.TextStyle({fontFamily:x,fontSize:I,fill:F||"white",...N&&L>0&&{stroke:N,strokeThickness:L},...me&&{fontStyle:me},...Te&&{fontVariant:Te},...Ce&&{fontWeight:Ce},...Ue&&{letterSpacing:Ue},...V&&{dropShadow:!0,dropShadowBlur:Number(D),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...ie&&{dropShadow:!0,dropShadowBlur:Number(X),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:G||500,leading:ae||0}),[V,D,F,x,I,w,ae,me,Ce,Te,Ue,Y,N,L,G,ie,X]);te.useEffect(()=>{h.current={...d}},[d]);const Re=()=>{const Ae=new Date().getTime();Ae-i.current<300&&v?v():g&&g(),i.current=Ae},xe=()=>{!c&&v&&v()};return Se.jsx(Pn,{...t,ref:e,isText:!0,onDoubleClick:xe,children:Se.jsx(De.Container,{ref:n,children:Se.jsx(De.Container,{alpha:1,ref:u,children:Se.jsx(De.Text,{style:He,x:y,y:b,anchor:.5,text:m,alpha:p?1:0,...p&&!c&&{interactive:!0,buttonMode:!0,pointerdown:Re},ref:a,filters:[Q,ge,W,he,...fe>0?[q]:[]]})})})})});var gF=Nr,mF=function(){return gF.Date.now()},_F=mF,vF=/\s/;function yF(t){for(var e=t.length;e--&&vF.test(t.charAt(e)););return e}var xF=yF,bF=xF,TF=/^\s+/;function wF(t){return t&&t.slice(0,bF(t)+1).replace(TF,"")}var SF=wF,AF=SF,p0=ns,EF=fo,g0=0/0,CF=/^[-+]0x[0-9a-f]+$/i,IF=/^0b[01]+$/i,RF=/^0o[0-7]+$/i,PF=parseInt;function MF(t){if(typeof t=="number")return t;if(EF(t))return g0;if(p0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=p0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=AF(t);var r=IF.test(t);return r||RF.test(t)?PF(t.slice(2),r?2:8):CF.test(t)?g0:+t}var OF=MF,FF=ns,hc=_F,m0=OF,NF="Expected a function",LF=Math.max,kF=Math.min;function DF(t,e,r){var n,i,a,u,l,h,p=0,m=!1,c=!1,d=!0;if(typeof t!="function")throw new TypeError(NF);e=m0(e)||0,FF(r)&&(m=!!r.leading,c="maxWait"in r,a=c?LF(m0(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d);function g(F){var N=n,L=i;return n=i=void 0,p=F,u=t.apply(L,N),u}function v(F){return p=F,l=setTimeout(x,e),m?g(F):u}function y(F){var N=F-h,L=F-p,D=e-N;return c?kF(D,a-L):D}function b(F){var N=F-h,L=F-p;return h===void 0||N>=e||N<0||c&&L>=a}function x(){var F=hc();if(b(F))return E(F);l=setTimeout(x,y(F))}function E(F){return l=void 0,d&&n?g(F):(n=i=void 0,u)}function w(){l!==void 0&&clearTimeout(l),p=0,n=h=i=l=void 0}function I(){return l===void 0?u:E(hc())}function O(){var F=hc(),N=b(F);if(n=arguments,i=this,h=F,N){if(l===void 0)return v(h);if(c)return clearTimeout(l),l=setTimeout(x,e),g(h)}return l===void 0&&(l=setTimeout(x,e)),u}return O.cancel=w,O.flush=I,O}var BF=DF;const yo=Cn(BF),fc=(t,e,r,n)=>{const i=j.useCallback(yo(t,n),[t,n]),a=j.useCallback(yo(e,n),[e,n]),u=j.useCallback(yo(r,n),[r,n]),l=j.useCallback(()=>{i()},[i]),h=j.useCallback(()=>{a()},[a]),p=j.useCallback(()=>{u()},[u]);return{onPointerOver:l,onPointerDown:h,onPointerOut:p}},UF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},_0=te.forwardRef((t,e)=>{const[r,n]=te.useState(0),[i,a]=te.useState(),u=j.useRef(null),l=j.useRef(null),h=j.useRef(null),p=j.useRef(UF),m=j.useRef(),{uniqueId:c,mute:d=!1,src:g,startAt:v,endAt:y,frameStartAt:b,frameEndAt:x,visible:E,disabled:w,transformation:{x:I,y:O,width:F,height:N,animation:L,colorCorrection:D={}},pointerdown:V=()=>{},pointerout:Y=()=>{},pointerover:ie=()=>{},fps:X=0}=t,{tl:G,dragModeRef:ae,isRemotion:se}=j.useContext(on),{onPointerDown:z,onPointerOut:Q,onPointerOver:ge}=fc(ie,V,Y,1),{blurRadius:W=0,vignette:q=0,noise:he=0}=D,{temperatureFilter:fe,sharpnessFilter:me,hueFilter:Te,blurFilter:Ce,adjustmentFilter:Ue,vignetteFilter:He,noiseFilter:Re}=Xn(D),xe=g||"",Ae=te.useMemo(()=>{const oe=document.createElement("video");return oe.src=g,oe.crossOrigin="Anonymus",oe.autoplay=!1,oe.currentTime=b===0?.001:b,oe},[g,b]);ht(Ze.PAUSE,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.REVERSE_MODE_END,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)});const $e=te.useCallback(yo(()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1}},400),[h]);te.useEffect(()=>{h.current&&!se?(ae.current?($e(),p.current.isPlaying=!1,p.current.isDragging=!0):p.current.isDragging=!1,h.current.muted=d):p.current.isDragging=!1,p.current.isMuted=d},[d,ae,$e,h]);const Ke=oe=>{if(h.current){if(h.current.currentTime=Number(oe),!ae.current){const Ne=h.current,Kt=Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA;G.current&&G.current.isActive()&&m.current&&m.current.isActive()&&(Kt||h.current.play(),p.current.isPlaying=!0,n(zt=>zt+1))}p.current.progress=0}},pe=()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1,m.current&&(p.current.progress=m.current.progress())}},ve=()=>{},st=()=>{var oe,Ne;if(m.current&&(p.current.progress=m.current.progress()),h.current&&m.current){const Kt=b+((oe=m==null?void 0:m.current)==null?void 0:oe.time()),zt=Math.abs(h.current.currentTime-Kt),ft=h.current,lr=ft.currentTime>0&&!ft.paused&&!ft.ended&&ft.readyState>ft.HAVE_CURRENT_DATA;ae.current?(h.current.currentTime=Kt,setTimeout(()=>{h.current&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},100),p.current.isPlaying=!1):(lr!==p.current.isPlaying||!lr)&&p.current.progress>.01&&p.current.progress<.99?(Ne=G.current)!=null&&Ne.isActive()&&m.current&&m.current.isActive()&&(lr||h.current.play(),p.current.isPlaying=!0):zt>.3&&p.current.progress>.01&&p.current.progress<.99&&(h.current.currentTime=Kt)}};return j.useEffect(()=>{let oe=ee.context(()=>{});if(l.current&&G.current){const Ne={duration:Number(x)-Number(b),onStart:Ke,onComplete:pe,onStartParams:[b,x],onCompleteParams:[],onInterrupt:ve,onUpdate:st,onUpdateParams:[b,x],onPause:()=>{console.log("onPause video sprite pause",c)},onResume:()=>{console.log("onResume video sprite resume",c)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",c)},onKill:()=>{console.log("onKill video sprite kill",c)}};oe=ee.context(()=>{m.current=ee.from(l.current,Ne,b),G.current.add(m.current,v)})}return()=>{m.current&&(m.current.kill(),ee.killTweensOf(m.current)),oe.revert()}},[L,v,y,b,x]),te.useEffect(()=>{h.current&&(h.current.muted=d,p.current.isMuted=d);const oe=setTimeout(()=>{console.log("running the mute function",c,d),h.current&&(h.current.muted=d,p.current.isMuted=d)},1500);return()=>{clearTimeout(oe)}},[d]),te.useEffect(()=>{const oe=Math.round((Number(b)+Number.EPSILON)*100)/100,Ne=function(){h.current&&(h.current.currentTime=oe,h.current.muted=d)},Kt=function(){if(h.current){const Rr=h.current;Rr.currentTime>0&&!Rr.paused&&!Rr.ended&&Rr.readyState>Rr.HAVE_CURRENT_DATA&&h.current.pause()}p.current.isWaiting=!1,p.current.isStalled=!1},zt=function(){h.current&&h.current.pause(),p.current.isWaiting=!0,p.current.isStalled=!1},ft=function(){p.current.isWaiting=!1,p.current.isStalled=!1},lr=function(){p.current.isWaiting=!1,p.current.isStalled=!0},Bi=Math.round((Number(b)+Number.EPSILON)*100)/100,dc=Math.round((Number(x)+Number.EPSILON)*100)/100,Yn=`${xe}#t=${Bi},${dc}`;return $t.Texture.fromLoader(Ae,Yn,c,{pixiIdPrefix:c,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:X?Math.max(120,Number(X)):30}}).then(Rr=>{Rr&&(a(Rr),h.current=Rr.baseTexture.resource.source,h.current.id=c,h.current.addEventListener("loadedmetadata",Ne),h.current.addEventListener("ended",Kt),h.current.addEventListener("loadstart",zt),h.current.addEventListener("canplaythrough",ft),h.current.addEventListener("stalled",lr))}),()=>{h.current&&(h.current.pause(),h.current.removeEventListener("loadedmetadata",Ne),h.current.removeEventListener("ended",Kt),h.current.removeEventListener("loadstart",zt),h.current.removeEventListener("canplaythrough",ft),h.current.removeEventListener("stalled",lr))}},[xe,c,b,x,Ae]),te.useEffect(()=>{const oe=setTimeout(()=>{i&&m.current&&G.current&&m.current.progress()<.1&&h.current&&!m.current.isActive()&&!se&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},30);return()=>{clearTimeout(oe)}},[i]),te.useEffect(()=>{G.current&&!G.current.isActive()&&!se&&(p.current.isPlaying=!1,h.current&&h.current.pause());const oe=setTimeout(()=>{if(i&&G.current&&r>0&&!se){G.current.isActive()||(p.current.isPlaying=!1,h.current&&h.current.pause());const Ne=h.current;Ne&&G.current.isActive()&&m.current&&m.current.isActive()&&(Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA||h.current.play(),p.current.isPlaying=!0)}},10);return()=>{clearTimeout(oe)}},[r,i]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:z,pointerover:ge,pointerout:Q,children:Se.jsx(De.Container,{ref:l,children:i&&Se.jsx(De.Sprite,{texture:i,width:F,height:N,anchor:.5,x:I,y:O,ref:u,alpha:E?1:0,...!w&&E&&{interactive:!0,pointerdown:V},filters:[fe,me,Te,Ue,...W>0?[Ce]:[],...q>0?[He]:[],...he>0?[Re]:[]]})})})});_0.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const $F=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})}),GF=t=>{const{startAt:e,endAt:r,uniqueId:n}=t,i=j.useRef(null),a=j.useRef(null),u=j.useRef(null),l=j.useRef(null),h=j.useRef(!1),{tl:p,totalDuration:m=0,reverseModeRef:c}=j.useContext(on),d=e<.2?"static":"none",g=j.useRef(1);ht(Ze.COMPLETE,()=>{i.current&&(i.current.eventMode=d)}),ht(Ze.REVERSE_MODE_END,()=>{if(p.current){const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1,i.current.eventMode="static")):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0,i.current.eventMode="none"))}});const v=()=>{if(c.current&&l.current&&p.current){h.current=!0;const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1)):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0))}};return ht(Ze.COMPLETE,()=>{}),te.useEffect(()=>{const y=ee.context(()=>{if(i.current&&p.current){const b=ee.to(i.current,{alpha:1,duration:.1});l.current=ee.to(a.current,{alpha:1,duration:Number(r)-Number(e),onStart:()=>{i.current&&(i.current.alpha=1,i.current.eventMode="static",g.current=1)},onUpdate:v,onComplete:()=>{i.current&&(i.current.alpha=0,i.current.eventMode="none",g.current=0)}}),p.current.add([b,l.current],e)}});return()=>{l.current&&(p.current.remove(l.current),l.current.progress(0).kill()),y.revert()}},[e,r,m,n]),Se.jsx(De.Container,{ref:i,alpha:e<.2?1:0,eventMode:e<.2?"static":"none",children:Se.jsx(De.Container,{ref:u,children:Se.jsx(De.Container,{ref:a,alpha:1,children:t.children})})})},zF=t=>{const{startAt:e,endAt:r}=t,{setTotalDuration:n}=j.useContext(on);return te.useEffect(()=>{n&&n(Number(r)+.2)},[e,r]),t.children},HF=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})});var v0=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t))(v0||{});Xe.Animations=Ru,Xe.BlendModes=v0,Xe.Events=Ze,Xe.GsapPixieContext=on,Xe.GsapPixieContextProvider=av,Xe.PixiAnimatedSprite=f0,Xe.PixiAudioSprite=oP,Xe.PixiGifSprite=dF,Xe.PixiImageSprite=Rg,Xe.PixiRemotionSprite=HF,Xe.PixiSequence=GF,Xe.PixiSequenceWrapper=zF,Xe.PixiSvgPathSprite=aP,Xe.PixiTextSprite=pF,Xe.PixiVideoCanvasSyncSprite=$F,Xe.PixiVideoSprite=_0,Xe.emitCustomEvent=si,Xe.newCustomEventEmitter=sv,Xe.useCustomEventListener=ht,Xe.useGsapEffect=Wf,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})});
2016
+ }`;var we=X_(function(){return Ve(A,re+"return "+H).apply(r,C)});if(we.source=H,Sh(we))throw we;return we}function PB(s){return We(s).toLowerCase()}function MB(s){return We(s).toUpperCase()}function OB(s,o,f){if(s=We(s),s&&(f||o===r))return em(s);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=Pr(o),A=tm(_,T),C=rm(_,T)+1;return An(_,A,C).join("")}function FB(s,o,f){if(s=We(s),s&&(f||o===r))return s.slice(0,im(s)+1);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=rm(_,Pr(o))+1;return An(_,0,T).join("")}function NB(s,o,f){if(s=We(s),s&&(f||o===r))return s.replace(Sc,"");if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=tm(_,Pr(o));return An(_,T).join("")}function LB(s,o){var f=V,_=Y;if(ct(o)){var T="separator"in o?o.separator:T;f="length"in o?be(o.length):f,_="omission"in o?Jt(o.omission):_}s=We(s);var A=s.length;if(Hi(s)){var C=Pr(s);A=C.length}if(f>=A)return s;var R=f-Vi(_);if(R<1)return _;var M=C?An(C,0,R).join(""):s.slice(0,R);if(T===r)return M+_;if(C&&(R+=M.length-R),Ah(T)){if(s.slice(R).search(T)){var U,$=M;for(T.global||(T=Gc(T.source,We(T0.exec(T))+"g")),T.lastIndex=0;U=T.exec($);)var H=U.index;M=M.slice(0,H===r?R:H)}}else if(s.indexOf(Jt(T),R)!=R){var K=M.lastIndexOf(T);K>-1&&(M=M.slice(0,K))}return M+_}function kB(s){return s=We(s),s&&WF.test(s)?s.replace(y0,h3):s}var DB=Zi(function(s,o,f){return s+(f?" ":"")+o.toUpperCase()}),Ih=jm("toUpperCase");function V_(s,o,f){return s=We(s),o=f?r:o,o===r?a3(s)?p3(s):ZN(s):s.match(o)||[]}var X_=Ee(function(s,o){try{return Zt(s,r,o)}catch(f){return Sh(f)?f:new _e(f)}}),BB=tn(function(s,o){return hr(o,function(f){f=Vr(f),Jr(s,f,Th(s[f],s))}),s});function UB(s){var o=s==null?0:s.length,f=ue();return s=o?at(s,function(_){if(typeof _[1]!="function")throw new fr(u);return[f(_[0]),_[1]]}):[],Ee(function(_){for(var T=-1;++T<o;){var A=s[T];if(Zt(A[0],this,_))return Zt(A[1],this,_)}})}function $B(s){return hL(pr(s,c))}function Rh(s){return function(){return s}}function GB(s,o){return s==null||s!==s?o:s}var zB=qm(),HB=qm(!0);function jt(s){return s}function Ph(s){return Sm(typeof s=="function"?s:pr(s,c))}function VB(s){return Em(pr(s,c))}function XB(s,o){return Cm(s,pr(o,c))}var jB=Ee(function(s,o){return function(f){return Vs(f,s,o)}}),WB=Ee(function(s,o){return function(f){return Vs(s,f,o)}});function Mh(s,o,f){var _=At(o),T=zo(o,_);f==null&&!(ct(o)&&(T.length||!_.length))&&(f=o,o=s,s=this,T=zo(o,At(o)));var A=!(ct(f)&&"chain"in f)||!!f.chain,C=nn(s);return hr(T,function(R){var M=o[R];s[R]=M,C&&(s.prototype[R]=function(){var U=this.__chain__;if(A||U){var $=s(this.__wrapped__),H=$.__actions__=Ht(this.__actions__);return H.push({func:M,args:arguments,thisArg:s}),$.__chain__=U,$}return M.apply(s,yn([this.value()],arguments))})}),s}function qB(){return It._===this&&(It._=x3),this}function Oh(){}function YB(s){return s=be(s),Ee(function(o){return Im(o,s)})}var KB=lh(at),ZB=lh(Y0),QB=lh(Nc);function j_(s){return mh(s)?Lc(Vr(s)):IL(s)}function JB(s){return function(o){return s==null?r:ti(s,o)}}var eU=Km(),tU=Km(!0);function Fh(){return[]}function Nh(){return!1}function rU(){return{}}function nU(){return""}function iU(){return!0}function sU(s,o){if(s=be(s),s<1||s>Q)return[];var f=q,_=Ft(s,q);o=ue(o),s-=q;for(var T=Bc(_,o);++f<s;)o(f);return T}function aU(s){return ye(s)?at(s,Vr):er(s)?[s]:Ht(f_(We(s)))}function oU(s){var o=++v3;return We(s)+o}var uU=qo(function(s,o){return s+o},0),lU=ch("ceil"),cU=qo(function(s,o){return s/o},1),hU=ch("floor");function fU(s){return s&&s.length?Go(s,jt,Yc):r}function dU(s,o){return s&&s.length?Go(s,ue(o,2),Yc):r}function pU(s){return Q0(s,jt)}function gU(s,o){return Q0(s,ue(o,2))}function mU(s){return s&&s.length?Go(s,jt,Jc):r}function _U(s,o){return s&&s.length?Go(s,ue(o,2),Jc):r}var vU=qo(function(s,o){return s*o},1),yU=ch("round"),xU=qo(function(s,o){return s-o},0);function bU(s){return s&&s.length?Dc(s,jt):0}function TU(s,o){return s&&s.length?Dc(s,ue(o,2)):0}return S.after=V5,S.ary=w_,S.assign=MD,S.assignIn=D_,S.assignInWith=ou,S.assignWith=OD,S.at=FD,S.before=S_,S.bind=Th,S.bindAll=BB,S.bindKey=A_,S.castArray=rD,S.chain=x_,S.chunk=hk,S.compact=fk,S.concat=dk,S.cond=UB,S.conforms=$B,S.constant=Rh,S.countBy=b5,S.create=ND,S.curry=E_,S.curryRight=C_,S.debounce=I_,S.defaults=LD,S.defaultsDeep=kD,S.defer=X5,S.delay=j5,S.difference=pk,S.differenceBy=gk,S.differenceWith=mk,S.drop=_k,S.dropRight=vk,S.dropRightWhile=yk,S.dropWhile=xk,S.fill=bk,S.filter=w5,S.flatMap=E5,S.flatMapDeep=C5,S.flatMapDepth=I5,S.flatten=m_,S.flattenDeep=Tk,S.flattenDepth=wk,S.flip=W5,S.flow=zB,S.flowRight=HB,S.fromPairs=Sk,S.functions=HD,S.functionsIn=VD,S.groupBy=R5,S.initial=Ek,S.intersection=Ck,S.intersectionBy=Ik,S.intersectionWith=Rk,S.invert=jD,S.invertBy=WD,S.invokeMap=M5,S.iteratee=Ph,S.keyBy=O5,S.keys=At,S.keysIn=Xt,S.map=tu,S.mapKeys=YD,S.mapValues=KD,S.matches=VB,S.matchesProperty=XB,S.memoize=nu,S.merge=ZD,S.mergeWith=B_,S.method=jB,S.methodOf=WB,S.mixin=Mh,S.negate=iu,S.nthArg=YB,S.omit=QD,S.omitBy=JD,S.once=q5,S.orderBy=F5,S.over=KB,S.overArgs=Y5,S.overEvery=ZB,S.overSome=QB,S.partial=wh,S.partialRight=R_,S.partition=N5,S.pick=eB,S.pickBy=U_,S.property=j_,S.propertyOf=JB,S.pull=Fk,S.pullAll=v_,S.pullAllBy=Nk,S.pullAllWith=Lk,S.pullAt=kk,S.range=eU,S.rangeRight=tU,S.rearg=K5,S.reject=D5,S.remove=Dk,S.rest=Z5,S.reverse=xh,S.sampleSize=U5,S.set=rB,S.setWith=nB,S.shuffle=$5,S.slice=Bk,S.sortBy=H5,S.sortedUniq=Xk,S.sortedUniqBy=jk,S.split=EB,S.spread=Q5,S.tail=Wk,S.take=qk,S.takeRight=Yk,S.takeRightWhile=Kk,S.takeWhile=Zk,S.tap=f5,S.throttle=J5,S.thru=eu,S.toArray=N_,S.toPairs=$_,S.toPairsIn=G_,S.toPath=aU,S.toPlainObject=k_,S.transform=iB,S.unary=eD,S.union=Qk,S.unionBy=Jk,S.unionWith=e5,S.uniq=t5,S.uniqBy=r5,S.uniqWith=n5,S.unset=sB,S.unzip=bh,S.unzipWith=y_,S.update=aB,S.updateWith=oB,S.values=es,S.valuesIn=uB,S.without=i5,S.words=V_,S.wrap=tD,S.xor=s5,S.xorBy=a5,S.xorWith=o5,S.zip=u5,S.zipObject=l5,S.zipObjectDeep=c5,S.zipWith=h5,S.entries=$_,S.entriesIn=G_,S.extend=D_,S.extendWith=ou,Mh(S,S),S.add=uU,S.attempt=X_,S.camelCase=fB,S.capitalize=z_,S.ceil=lU,S.clamp=lB,S.clone=nD,S.cloneDeep=sD,S.cloneDeepWith=aD,S.cloneWith=iD,S.conformsTo=oD,S.deburr=H_,S.defaultTo=GB,S.divide=cU,S.endsWith=dB,S.eq=Or,S.escape=pB,S.escapeRegExp=gB,S.every=T5,S.find=S5,S.findIndex=p_,S.findKey=DD,S.findLast=A5,S.findLastIndex=g_,S.findLastKey=BD,S.floor=hU,S.forEach=b_,S.forEachRight=T_,S.forIn=UD,S.forInRight=$D,S.forOwn=GD,S.forOwnRight=zD,S.get=Eh,S.gt=uD,S.gte=lD,S.has=XD,S.hasIn=Ch,S.head=__,S.identity=jt,S.includes=P5,S.indexOf=Ak,S.inRange=cB,S.invoke=qD,S.isArguments=ii,S.isArray=ye,S.isArrayBuffer=cD,S.isArrayLike=Vt,S.isArrayLikeObject=gt,S.isBoolean=hD,S.isBuffer=En,S.isDate=fD,S.isElement=dD,S.isEmpty=pD,S.isEqual=gD,S.isEqualWith=mD,S.isError=Sh,S.isFinite=_D,S.isFunction=nn,S.isInteger=P_,S.isLength=su,S.isMap=M_,S.isMatch=vD,S.isMatchWith=yD,S.isNaN=xD,S.isNative=bD,S.isNil=wD,S.isNull=TD,S.isNumber=O_,S.isObject=ct,S.isObjectLike=dt,S.isPlainObject=Ks,S.isRegExp=Ah,S.isSafeInteger=SD,S.isSet=F_,S.isString=au,S.isSymbol=er,S.isTypedArray=Ji,S.isUndefined=AD,S.isWeakMap=ED,S.isWeakSet=CD,S.join=Pk,S.kebabCase=mB,S.last=mr,S.lastIndexOf=Mk,S.lowerCase=_B,S.lowerFirst=vB,S.lt=ID,S.lte=RD,S.max=fU,S.maxBy=dU,S.mean=pU,S.meanBy=gU,S.min=mU,S.minBy=_U,S.stubArray=Fh,S.stubFalse=Nh,S.stubObject=rU,S.stubString=nU,S.stubTrue=iU,S.multiply=vU,S.nth=Ok,S.noConflict=qB,S.noop=Oh,S.now=ru,S.pad=yB,S.padEnd=xB,S.padStart=bB,S.parseInt=TB,S.random=hB,S.reduce=L5,S.reduceRight=k5,S.repeat=wB,S.replace=SB,S.result=tB,S.round=yU,S.runInContext=P,S.sample=B5,S.size=G5,S.snakeCase=AB,S.some=z5,S.sortedIndex=Uk,S.sortedIndexBy=$k,S.sortedIndexOf=Gk,S.sortedLastIndex=zk,S.sortedLastIndexBy=Hk,S.sortedLastIndexOf=Vk,S.startCase=CB,S.startsWith=IB,S.subtract=xU,S.sum=bU,S.sumBy=TU,S.template=RB,S.times=sU,S.toFinite=sn,S.toInteger=be,S.toLength=L_,S.toLower=PB,S.toNumber=_r,S.toSafeInteger=PD,S.toString=We,S.toUpper=MB,S.trim=OB,S.trimEnd=FB,S.trimStart=NB,S.truncate=LB,S.unescape=kB,S.uniqueId=oU,S.upperCase=DB,S.upperFirst=Ih,S.each=b_,S.eachRight=T_,S.first=__,Mh(S,function(){var s={};return zr(S,function(o,f){Ye.call(S.prototype,f)||(s[f]=o)}),s}(),{chain:!1}),S.VERSION=n,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){S[s].placeholder=S}),hr(["drop","take"],function(s,o){Oe.prototype[s]=function(f){f=f===r?1:xt(be(f),0);var _=this.__filtered__&&!o?new Oe(this):this.clone();return _.__filtered__?_.__takeCount__=Ft(f,_.__takeCount__):_.__views__.push({size:Ft(f,q),type:s+(_.__dir__<0?"Right":"")}),_},Oe.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),hr(["filter","map","takeWhile"],function(s,o){var f=o+1,_=f==G||f==se;Oe.prototype[s]=function(T){var A=this.clone();return A.__iteratees__.push({iteratee:ue(T,3),type:f}),A.__filtered__=A.__filtered__||_,A}}),hr(["head","last"],function(s,o){var f="take"+(o?"Right":"");Oe.prototype[s]=function(){return this[f](1).value()[0]}}),hr(["initial","tail"],function(s,o){var f="drop"+(o?"":"Right");Oe.prototype[s]=function(){return this.__filtered__?new Oe(this):this[f](1)}}),Oe.prototype.compact=function(){return this.filter(jt)},Oe.prototype.find=function(s){return this.filter(s).head()},Oe.prototype.findLast=function(s){return this.reverse().find(s)},Oe.prototype.invokeMap=Ee(function(s,o){return typeof s=="function"?new Oe(this):this.map(function(f){return Vs(f,s,o)})}),Oe.prototype.reject=function(s){return this.filter(iu(ue(s)))},Oe.prototype.slice=function(s,o){s=be(s);var f=this;return f.__filtered__&&(s>0||o<0)?new Oe(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),o!==r&&(o=be(o),f=o<0?f.dropRight(-o):f.take(o-s)),f)},Oe.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Oe.prototype.toArray=function(){return this.take(q)},zr(Oe.prototype,function(s,o){var f=/^(?:filter|find|map|reject)|While$/.test(o),_=/^(?:head|last)$/.test(o),T=S[_?"take"+(o=="last"?"Right":""):o],A=_||/^find/.test(o);T&&(S.prototype[o]=function(){var C=this.__wrapped__,R=_?[1]:arguments,M=C instanceof Oe,U=R[0],$=M||ye(C),H=function(Pe){var Le=T.apply(S,yn([Pe],R));return _&&K?Le[0]:Le};$&&f&&typeof U=="function"&&U.length!=1&&(M=$=!1);var K=this.__chain__,re=!!this.__actions__.length,le=A&&!K,we=M&&!re;if(!A&&$){C=we?C:new Oe(this);var ce=s.apply(C,R);return ce.__actions__.push({func:eu,args:[H],thisArg:r}),new dr(ce,K)}return le&&we?s.apply(this,R):(ce=this.thru(H),le?_?ce.value()[0]:ce.value():ce)})}),hr(["pop","push","shift","sort","splice","unshift"],function(s){var o=Eo[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",_=/^(?:pop|shift)$/.test(s);S.prototype[s]=function(){var T=arguments;if(_&&!this.__chain__){var A=this.value();return o.apply(ye(A)?A:[],T)}return this[f](function(C){return o.apply(ye(C)?C:[],T)})}}),zr(Oe.prototype,function(s,o){var f=S[o];if(f){var _=f.name+"";Ye.call(qi,_)||(qi[_]=[]),qi[_].push({name:o,func:f})}}),qi[Wo(r,x).name]=[{name:"wrapper",func:r}],Oe.prototype.clone=k3,Oe.prototype.reverse=D3,Oe.prototype.value=B3,S.prototype.at=d5,S.prototype.chain=p5,S.prototype.commit=g5,S.prototype.next=m5,S.prototype.plant=v5,S.prototype.reverse=y5,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=x5,S.prototype.first=S.prototype.head,Ds&&(S.prototype[Ds]=_5),S},Xi=g3();Kn?((Kn.exports=Xi)._=Xi,Pc._=Xi):It._=Xi}).call(Et)}(vo,vo.exports);var d0=vo.exports;const fF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},dF=te.forwardRef((t,e)=>{const[r,n]=te.useState([]),[,i]=te.useState(0),[a,u]=te.useState([]),[,l]=j.useState(!1),[h,p]=rF({autoPlay:!1}),m=j.useRef(null),c=j.useRef(null),d=j.useRef(fF),g=j.useRef(),{tl:v,dragModeRef:y}=j.useContext(on),{frames:b,delays:x}=h,{src:E,startAt:w,endAt:I,frameStartAt:O,frameEndAt:F,loop:N,visible:L,disabled:D,transformation:{width:V=0,height:Y=0,x:ie,y:X,colorCorrection:G={}},pointerdown:ae}=t,{temperatureFilter:se,sharpnessFilter:z,hueFilter:Q,blurFilter:ge,adjustmentFilter:W,vignetteFilter:q,noiseFilter:he}=Xn(G),{blurRadius:fe=0,vignette:me=0,noise:Te=0}=G,Ce=.1;cF(E,p),ht(Ze.PAUSE,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SEEK_END,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),te.useEffect(()=>{d.current&&m.current&&(y.current?(m.current.stop(),d.current.isPlaying=!1,d.current.isDragging=!0):d.current.isDragging=!1)},[y]),te.useEffect(()=>{if(!ss(b)){const pe=OO(b,oe=>{const{data:Ne,width:Kt,height:zt}=oe,ft=new Uint8Array(Ne);return $t.Texture.fromBuffer(ft,Kt,zt)}),ve=pe.map((oe,Ne)=>({texture:oe,time:x[Ne]}));n(pe),u(ve);let st=0;x.forEach(oe=>{st+=oe*10}),i(st),d.current.totalDuration=st,d.current.totalFrames=b.length}},[b,x]);const Ue=d0.debounce(pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},20),He=d0.debounce(()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},50),Re=pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},xe=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},Ae=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},$e=pe=>{var st;const ve=pe+((st=g.current)==null?void 0:st.time());m.current&&y.current?(Ue(ve),He(),d.current.isPlaying=!1):g.current&&m.current&&!d.current.isPlaying&&g.current.isActive()&&v.current.isActive()&&(Ue(ve),d.current.isPlaying=!0)},Ke=()=>{l(!0)};return j.useEffect(()=>{let pe=ee.context(()=>{});if(c.current&&v.current){const ve={duration:Number(F)-Number(O),onStart:Re,onComplete:xe,onStartParams:[O,F],onCompleteParams:[],onInterrupt:Ae,onUpdate:$e,onUpdateParams:[O,F]};g.current&&g.current.kill(),pe=ee.context(()=>{g.current=ee.from(c.current,ve,O),v.current.add(g.current,w)})}return()=>{g.current&&(g.current.kill(),ee.killTweensOf(g.current)),pe.revert()}},[w,I,O,F]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,isGif:!0,children:Se.jsx(De.Container,{ref:c,children:r&&r.length>0&&Se.jsx(f0,{x:ie,y:X,width:V,height:Y,animationSpeed:1,alpha:L?1:0,loop:N,textures:a,onComplete:Ke,anchor:.5,forwardRef:m,...!D&&L&&{interactive:!0,pointerdown:ae},filters:[se,z,Q,W,...fe>0?[ge]:[],...me>0?[q]:[],...Te>0?[he]:[]]})})})}),pF=te.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(0),a=j.useRef(null),u=j.useRef(null),l=j.useRef(16),h=j.useRef(null),{visible:p,text:m,disabled:c,transformation:d,pointerdown:g,onDobuleClick:v}=t,{x:y,y:b,fontFamily:x="Arial",fontWeight:E="normal",fontStyle:w="normal",fontSize:I=16,fontVariant:O="normal",fill:F="black",stroke:N,strokeThickness:L=0,blurRadius:D=0,blurEnabled:V=!1,dropShadowColor:Y=null,dropShadow:ie=!1,dropShadowBlur:X=0,wordWrapWidth:G=5e7,leading:ae=0,letterSpacing:se,colorCorrection:z={}}=d,{temperatureFilter:Q,sharpnessFilter:ge,hueFilter:W,blurFilter:q,adjustmentFilter:he}=Xn(z),{blurRadius:fe=0}=z;te.useEffect(()=>{l.current=Number(I)},[I]);const me=["italic","oblique"].includes(w)?w:void 0,Te=["small-caps"].includes(O),Ce=["bold","bolder","lighter","100","200","300"].includes(E)?E:void 0,Ue=Number(se)>0?se:void 0,He=te.useMemo(()=>new $t.TextStyle({fontFamily:x,fontSize:I,fill:F||"white",...N&&L>0&&{stroke:N,strokeThickness:L},...me&&{fontStyle:me},...Te&&{fontVariant:Te},...Ce&&{fontWeight:Ce},...Ue&&{letterSpacing:Ue},...V&&{dropShadow:!0,dropShadowBlur:Number(D),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...ie&&{dropShadow:!0,dropShadowBlur:Number(X),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:G||500,leading:ae||0}),[V,D,F,x,I,w,ae,me,Ce,Te,Ue,Y,N,L,G,ie,X]);te.useEffect(()=>{h.current={...d}},[d]);const Re=()=>{const Ae=new Date().getTime();Ae-i.current<300&&v?v():g&&g(),i.current=Ae},xe=()=>{!c&&v&&v()};return Se.jsx(Pn,{...t,ref:e,isText:!0,onDoubleClick:xe,children:Se.jsx(De.Container,{ref:n,children:Se.jsx(De.Container,{alpha:1,ref:u,children:Se.jsx(De.Text,{style:He,x:y,y:b,anchor:.5,text:m,alpha:p?1:0,...p&&!c&&{interactive:!0,buttonMode:!0,pointerdown:Re},ref:a,filters:[Q,ge,W,he,...fe>0?[q]:[]]})})})})});var gF=Nr,mF=function(){return gF.Date.now()},_F=mF,vF=/\s/;function yF(t){for(var e=t.length;e--&&vF.test(t.charAt(e)););return e}var xF=yF,bF=xF,TF=/^\s+/;function wF(t){return t&&t.slice(0,bF(t)+1).replace(TF,"")}var SF=wF,AF=SF,p0=ns,EF=fo,g0=0/0,CF=/^[-+]0x[0-9a-f]+$/i,IF=/^0b[01]+$/i,RF=/^0o[0-7]+$/i,PF=parseInt;function MF(t){if(typeof t=="number")return t;if(EF(t))return g0;if(p0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=p0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=AF(t);var r=IF.test(t);return r||RF.test(t)?PF(t.slice(2),r?2:8):CF.test(t)?g0:+t}var OF=MF,FF=ns,hc=_F,m0=OF,NF="Expected a function",LF=Math.max,kF=Math.min;function DF(t,e,r){var n,i,a,u,l,h,p=0,m=!1,c=!1,d=!0;if(typeof t!="function")throw new TypeError(NF);e=m0(e)||0,FF(r)&&(m=!!r.leading,c="maxWait"in r,a=c?LF(m0(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d);function g(F){var N=n,L=i;return n=i=void 0,p=F,u=t.apply(L,N),u}function v(F){return p=F,l=setTimeout(x,e),m?g(F):u}function y(F){var N=F-h,L=F-p,D=e-N;return c?kF(D,a-L):D}function b(F){var N=F-h,L=F-p;return h===void 0||N>=e||N<0||c&&L>=a}function x(){var F=hc();if(b(F))return E(F);l=setTimeout(x,y(F))}function E(F){return l=void 0,d&&n?g(F):(n=i=void 0,u)}function w(){l!==void 0&&clearTimeout(l),p=0,n=h=i=l=void 0}function I(){return l===void 0?u:E(hc())}function O(){var F=hc(),N=b(F);if(n=arguments,i=this,h=F,N){if(l===void 0)return v(h);if(c)return clearTimeout(l),l=setTimeout(x,e),g(h)}return l===void 0&&(l=setTimeout(x,e)),u}return O.cancel=w,O.flush=I,O}var BF=DF;const yo=Cn(BF),fc=(t,e,r,n)=>{const i=j.useCallback(yo(t,n),[t,n]),a=j.useCallback(yo(e,n),[e,n]),u=j.useCallback(yo(r,n),[r,n]),l=j.useCallback(()=>{i()},[i]),h=j.useCallback(()=>{a()},[a]),p=j.useCallback(()=>{u()},[u]);return{onPointerOver:l,onPointerDown:h,onPointerOut:p}},UF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},_0=te.forwardRef((t,e)=>{const[r,n]=te.useState(0),[i,a]=te.useState(),u=j.useRef(null),l=j.useRef(null),h=j.useRef(null),p=j.useRef(UF),m=j.useRef(),{uniqueId:c,mute:d=!1,src:g,startAt:v,endAt:y,frameStartAt:b,frameEndAt:x,visible:E,disabled:w,transformation:{x:I,y:O,width:F,height:N,animation:L,colorCorrection:D={}},pointerdown:V=()=>{},pointerout:Y=()=>{},pointerover:ie=()=>{},fps:X=0}=t,{tl:G,dragModeRef:ae,isRemotion:se}=j.useContext(on),{onPointerDown:z,onPointerOut:Q,onPointerOver:ge}=fc(ie,V,Y,1),{blurRadius:W=0,vignette:q=0,noise:he=0}=D,{temperatureFilter:fe,sharpnessFilter:me,hueFilter:Te,blurFilter:Ce,adjustmentFilter:Ue,vignetteFilter:He,noiseFilter:Re}=Xn(D),xe=g||"",Ae=te.useMemo(()=>{const oe=document.createElement("video");return oe.src=g,oe.crossOrigin="Anonymus",oe.autoplay=!1,oe.currentTime=b===0?.001:b,oe},[g,b]);ht(Ze.PAUSE,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.REVERSE_MODE_END,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)});const $e=te.useCallback(yo(()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1}},400),[h]);te.useEffect(()=>{h.current&&!se?(ae.current?($e(),p.current.isPlaying=!1,p.current.isDragging=!0):p.current.isDragging=!1,h.current.muted=d):p.current.isDragging=!1,p.current.isMuted=d},[d,ae,$e,h]);const Ke=oe=>{if(h.current){if(h.current.currentTime=Number(oe),!ae.current){const Ne=h.current,Kt=Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA;G.current&&G.current.isActive()&&m.current&&m.current.isActive()&&(Kt||h.current.play(),p.current.isPlaying=!0,n(zt=>zt+1))}p.current.progress=0}},pe=()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1,m.current&&(p.current.progress=m.current.progress())}},ve=()=>{},st=()=>{var oe,Ne;if(m.current&&(p.current.progress=m.current.progress()),h.current&&m.current){const Kt=b+((oe=m==null?void 0:m.current)==null?void 0:oe.time()),zt=Math.abs(h.current.currentTime-Kt),ft=h.current,lr=ft.currentTime>0&&!ft.paused&&!ft.ended&&ft.readyState>ft.HAVE_CURRENT_DATA;ae.current?(h.current.currentTime=Kt,setTimeout(()=>{h.current&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},100),p.current.isPlaying=!1):(lr!==p.current.isPlaying||!lr)&&p.current.progress>.01&&p.current.progress<.99?(Ne=G.current)!=null&&Ne.isActive()&&m.current&&m.current.isActive()&&(lr||h.current.play(),p.current.isPlaying=!0):zt>.3&&p.current.progress>.01&&p.current.progress<.99&&(h.current.currentTime=Kt)}};return j.useEffect(()=>{let oe=ee.context(()=>{});if(l.current&&G.current){const Ne={duration:Number(x)-Number(b),onStart:Ke,onComplete:pe,onStartParams:[b,x],onCompleteParams:[],onInterrupt:ve,onUpdate:st,onUpdateParams:[b,x],onPause:()=>{console.log("onPause video sprite pause",c)},onResume:()=>{console.log("onResume video sprite resume",c)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",c)},onKill:()=>{console.log("onKill video sprite kill",c)}};oe=ee.context(()=>{m.current=ee.from(l.current,Ne,b),G.current.add(m.current,v)})}return()=>{m.current&&(m.current.kill(),ee.killTweensOf(m.current)),oe.revert()}},[L,v,y,b,x]),te.useEffect(()=>{h.current&&(h.current.muted=d,p.current.isMuted=d);const oe=setTimeout(()=>{h.current&&(h.current.muted=d,p.current.isMuted=d)},1500);return()=>{clearTimeout(oe)}},[d]),te.useEffect(()=>{const oe=Math.round((Number(b)+Number.EPSILON)*100)/100,Ne=function(){h.current&&(h.current.currentTime=oe,h.current.muted=d)},Kt=function(){if(h.current){const Rr=h.current;Rr.currentTime>0&&!Rr.paused&&!Rr.ended&&Rr.readyState>Rr.HAVE_CURRENT_DATA&&h.current.pause()}p.current.isWaiting=!1,p.current.isStalled=!1},zt=function(){h.current&&h.current.pause(),p.current.isWaiting=!0,p.current.isStalled=!1},ft=function(){p.current.isWaiting=!1,p.current.isStalled=!1},lr=function(){p.current.isWaiting=!1,p.current.isStalled=!0},Bi=Math.round((Number(b)+Number.EPSILON)*100)/100,dc=Math.round((Number(x)+Number.EPSILON)*100)/100,Yn=`${xe}#t=${Bi},${dc}`;return $t.Texture.fromLoader(Ae,Yn,c,{pixiIdPrefix:c,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:X?Math.max(120,Number(X)):30}}).then(Rr=>{Rr&&(a(Rr),h.current=Rr.baseTexture.resource.source,h.current.id=c,h.current.addEventListener("loadedmetadata",Ne),h.current.addEventListener("ended",Kt),h.current.addEventListener("loadstart",zt),h.current.addEventListener("canplaythrough",ft),h.current.addEventListener("stalled",lr))}),()=>{h.current&&(h.current.pause(),h.current.removeEventListener("loadedmetadata",Ne),h.current.removeEventListener("ended",Kt),h.current.removeEventListener("loadstart",zt),h.current.removeEventListener("canplaythrough",ft),h.current.removeEventListener("stalled",lr))}},[xe,c,b,x,Ae]),te.useEffect(()=>{const oe=setTimeout(()=>{i&&m.current&&G.current&&m.current.progress()<.1&&h.current&&!m.current.isActive()&&!se&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},30);return()=>{clearTimeout(oe)}},[i]),te.useEffect(()=>{G.current&&!G.current.isActive()&&!se&&(p.current.isPlaying=!1,h.current&&h.current.pause());const oe=setTimeout(()=>{if(i&&G.current&&r>0&&!se){G.current.isActive()||(p.current.isPlaying=!1,h.current&&h.current.pause());const Ne=h.current;Ne&&G.current.isActive()&&m.current&&m.current.isActive()&&(Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA||h.current.play(),p.current.isPlaying=!0)}},10);return()=>{clearTimeout(oe)}},[r,i]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:z,pointerover:ge,pointerout:Q,children:Se.jsx(De.Container,{ref:l,children:i&&Se.jsx(De.Sprite,{texture:i,width:F,height:N,anchor:.5,x:I,y:O,ref:u,alpha:E?1:0,...!w&&E&&{interactive:!0,pointerdown:V},filters:[fe,me,Te,Ue,...W>0?[Ce]:[],...q>0?[He]:[],...he>0?[Re]:[]]})})})});_0.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const $F=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})}),GF=t=>{const{startAt:e,endAt:r,uniqueId:n}=t,i=j.useRef(null),a=j.useRef(null),u=j.useRef(null),l=j.useRef(null),h=j.useRef(!1),{tl:p,totalDuration:m=0,reverseModeRef:c}=j.useContext(on),d=e<.2?"static":"none",g=j.useRef(1);ht(Ze.COMPLETE,()=>{i.current&&(i.current.eventMode=d)}),ht(Ze.REVERSE_MODE_END,()=>{if(p.current){const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1,i.current.eventMode="static")):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0,i.current.eventMode="none"))}});const v=()=>{if(c.current&&l.current&&p.current){h.current=!0;const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1)):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0))}};return ht(Ze.COMPLETE,()=>{}),te.useEffect(()=>{const y=ee.context(()=>{if(i.current&&p.current){const b=ee.to(i.current,{alpha:1,duration:.1});l.current=ee.to(a.current,{alpha:1,duration:Number(r)-Number(e),onStart:()=>{i.current&&(i.current.alpha=1,i.current.eventMode="static",g.current=1)},onUpdate:v,onComplete:()=>{i.current&&(i.current.alpha=0,i.current.eventMode="none",g.current=0)}}),p.current.add([b,l.current],e)}});return()=>{l.current&&(p.current.remove(l.current),l.current.progress(0).kill()),y.revert()}},[e,r,m,n]),Se.jsx(De.Container,{ref:i,alpha:e<.2?1:0,eventMode:e<.2?"static":"none",children:Se.jsx(De.Container,{ref:u,children:Se.jsx(De.Container,{ref:a,alpha:1,children:t.children})})})},zF=t=>{const{startAt:e,endAt:r}=t,{setTotalDuration:n}=j.useContext(on);return te.useEffect(()=>{n&&n(Number(r)+.2)},[e,r]),t.children},HF=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})});var v0=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t))(v0||{});Xe.Animations=Ru,Xe.BlendModes=v0,Xe.Events=Ze,Xe.GsapPixieContext=on,Xe.GsapPixieContextProvider=av,Xe.PixiAnimatedSprite=f0,Xe.PixiAudioSprite=oP,Xe.PixiGifSprite=dF,Xe.PixiImageSprite=Rg,Xe.PixiRemotionSprite=HF,Xe.PixiSequence=GF,Xe.PixiSequenceWrapper=zF,Xe.PixiSvgPathSprite=aP,Xe.PixiTextSprite=pF,Xe.PixiVideoCanvasSyncSprite=$F,Xe.PixiVideoSprite=_0,Xe.emitCustomEvent=si,Xe.newCustomEventEmitter=sv,Xe.useCustomEventListener=ht,Xe.useGsapEffect=Wf,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reacthub-pixitweenjs",
3
- "version": "0.2.107-alpha.86",
3
+ "version": "0.2.107-alpha.87",
4
4
  "description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
5
5
  "author": "khanzzirfan <reacthub.ai@gmail.com>",
6
6
  "main": "dist/index.es.js",