t?t:s},$e=function(e,t){return!Ge(e)||!(t=Xx.exec(e))?"":t[1]},cT=function(e,t,s){return Zs(s,function(i){return Sr(e,t,i)})},za=[].slice,od=function(e,t){return e&&Kt(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Kt(e[0]))&&!e.nodeType&&e!==bt},lT=function(e,t,s){return s===void 0&&(s=[]),e.forEach(function(i){var r;return Ge(i)&&!t||od(i,1)?(r=s).push.apply(r,At(i)):s.push(i)})||s},At=function(e,t,s){return De&&!t&&De.selector?De.selector(e):Ge(e)&&!s&&(Fa||!ii())?za.call((t||Uc).querySelectorAll(e),0):Qe(e)?lT(e,s):od(e)?za.call(e,0):e?[e]:[]},Va=function(e){return e=At(e)[0]||ir("Invalid scope")||{},function(t){var s=e.current||e.nativeElement||e;return At(t,s.querySelectorAll?s:s===e?ir("Invalid scope")||Uc.createElement("div"):e)}},ad=function(e){return e.sort(function(){return .5-Math.random()})},cd=function(e){if(Re(e))return e;var t=Kt(e)?e:{each:e},s=hn(t.ease),i=t.from||0,r=parseFloat(t.base)||0,o={},a=i>0&&i<1,c=isNaN(i)||a,l=t.axis,u=i,h=i;return Ge(i)?u=h={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(u=i[0],h=i[1]),function(f,d,m){var p=(m||t).length,g=o[p],v,S,T,y,_,w,k,x,C;if(!g){if(C=t.grid==="auto"?0:(t.grid||[1,Ot])[1],!C){for(k=-Ot;k<(k=m[C++].getBoundingClientRect().left)&&Ck&&(k=_),_p?p-1:l?l==="y"?p/C:C:Math.max(C,p/C))||0)*(i==="edges"?-1:1),g.b=p<0?r-p:r,g.u=$e(t.amount||t.each)||0,s=s&&p<0?vd(s):s}return p=(g[f]-g.min)/g.max||0,He(g.b+(s?s(p):p)*g.v)+g.u}},ja=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var i=He(Math.round(parseFloat(s)/e)*e*t);return(i-i%1)/t+(vs(s)?0:$e(s))}},ld=function(e,t){var s=Qe(e),i,r;return!s&&Kt(e)&&(i=s=e.radius||Ot,e.values?(e=At(e.values),(r=!vs(e[0]))&&(i*=i)):e=ja(e.increment)),Zs(t,s?Re(e)?function(o){return r=e(o),Math.abs(r-o)<=i?r:o}:function(o){for(var a=parseFloat(r?o.x:o),c=parseFloat(r?o.y:0),l=Ot,u=0,h=e.length,f,d;h--;)r?(f=e[h].x-a,d=e[h].y-c,f=f*f+d*d):f=Math.abs(e[h]-a),fi?r-o:o)})},or=function(e){for(var t=0,s="",i,r,o,a;~(i=e.indexOf("random(",t));)o=e.indexOf(")",i),a=e.charAt(i+7)==="[",r=e.substr(i+7,o-i-7).match(a?Yh:Na),s+=e.substr(t,i-t)+ud(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),t=o+1;return s+e.substr(t,e.length-t)},dd=function(e,t,s,i,r){var o=t-e,a=i-s;return Zs(r,function(c){return s+((c-e)/o*a||0)})},mT=function n(e,t,s,i){var r=isNaN(e+t)?0:function(d){return(1-d)*e+d*t};if(!r){var o=Ge(e),a={},c,l,u,h,f;if(s===!0&&(i=1)&&(s=null),o)e={p:e},t={p:t};else if(Qe(e)&&!Qe(t)){for(u=[],h=e.length,f=h-2,l=1;l(a=Math.abs(a))&&(c=o,r=a);return c},vt=function(e,t,s){var i=e.vars,r=i[t],o=De,a=e._ctx,c,l,u;if(r)return c=i[t+"Params"],l=i.callbackScope||e,s&&Us.length&&yo(),a&&(De=a),u=c?r.apply(l,c):r.call(l),De=o,u},Di=function(e){return qs(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Xe),e.progress()<1&&vt(e,"onInterrupt"),e},zn,fd=[],pd=function(e){if(Fc()&&e){e=!e.name&&e.default||e;var t=e.name,s=Re(e),i=t&&!s&&e.init?function(){this._props=[]}:e,r={init:rr,render:Gc,add:jc,kill:DT,modifier:MT,rawVars:0},o={targetTest:0,get:0,getSetter:Wc,aliases:{},register:0};if(ii(),e!==i){if(_t[t])return;Dt(i,Dt(xo(e,r),o)),vn(i.prototype,vn(r,xo(e,o))),_t[i.prop=t]=i,e.targetTest&&(Gr.push(i),Bc[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Xh(t,i),e.register&&e.register(pt,i,ht)}else e&&fd.push(e)},de=255,Ri={aqua:[0,de,de],lime:[0,de,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,de],navy:[0,0,128],white:[de,de,de],olive:[128,128,0],yellow:[de,de,0],orange:[de,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[de,0,0],pink:[de,192,203],cyan:[0,de,de],transparent:[de,de,de,0]},da=function(e,t,s){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(s-t)*e*6:e<.5?s:e*3<2?t+(s-t)*(2/3-e)*6:t)*de+.5|0},md=function(e,t,s){var i=e?vs(e)?[e>>16,e>>8&de,e&de]:0:Ri.black,r,o,a,c,l,u,h,f,d,m;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Ri[e])i=Ri[e];else if(e.charAt(0)==="#"){if(e.length<6&&(r=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+r+r+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&de,i&de,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&de,e&de]}else if(e.substr(0,3)==="hsl"){if(i=m=e.match(Na),!t)c=+i[0]%360/360,l=+i[1]/100,u=+i[2]/100,o=u<=.5?u*(l+1):u+l-u*l,r=u*2-o,i.length>3&&(i[3]*=1),i[0]=da(c+1/3,r,o),i[1]=da(c,r,o),i[2]=da(c-1/3,r,o);else if(~e.indexOf("="))return i=e.match(Wh),s&&i.length<4&&(i[3]=1),i}else i=e.match(Na)||Ri.transparent;i=i.map(Number)}return t&&!m&&(r=i[0]/de,o=i[1]/de,a=i[2]/de,h=Math.max(r,o,a),f=Math.min(r,o,a),u=(h+f)/2,h===f?c=l=0:(d=h-f,l=u>.5?d/(2-h-f):d/(h+f),c=h===r?(o-a)/d+(oe&&(s+=v-t),i+=v,_=i-s,T=_-o,(T>0||S)&&(w=++h.frame,f=_-h.time*1e3,h.time=_=_/1e3,o+=T+(T>=r?4:r-T),y=1),S||(c=l(p)),y)for(d=0;d=v&&d--},_listeners:a},h}(),ii=function(){return!ar&>.wake()},se={},gT=/^[\d.\-M][\d.\-,\s]/,vT=/["']/g,yT=function(e){for(var t={},s=e.substr(1,e.length-3).split(":"),i=s[0],r=1,o=s.length,a,c,l;r1&&s.config?s.config.apply(null,~e.indexOf("{")?[yT(t[1])]:xT(e).split(",").map(ed)):se._CE&&gT.test(e)?se._CE("",e):s},vd=function(e){return function(t){return 1-e(1-t)}},yd=function n(e,t){for(var s=e._first,i;s;)s instanceof tt?n(s,t):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==t&&(s.timeline?n(s.timeline,t):(i=s._ease,s._ease=s._yEase,s._yEase=i,s._yoyo=t)),s=s._next},hn=function(e,t){return e&&(Re(e)?e:se[e]||TT(e))||t},Sn=function(e,t,s,i){s===void 0&&(s=function(c){return 1-t(1-c)}),i===void 0&&(i=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var r={easeIn:t,easeOut:s,easeInOut:i},o;return ut(e,function(a){se[a]=wt[a]=r,se[o=a.toLowerCase()]=s;for(var c in r)se[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=se[a+"."+c]=r[c]}),r},xd=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},fa=function n(e,t,s){var i=t>=1?t:1,r=(s||(e?.3:.45))/(t<1?t:1),o=r/Ia*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*$x((u-o)*r)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:xd(a);return r=Ia/r,c.config=function(l,u){return n(e,l,u)},c},pa=function n(e,t){t===void 0&&(t=1.70158);var s=function(o){return o?--o*o*((t+1)*o+t)+1:0},i=e==="out"?s:e==="in"?function(r){return 1-s(1-r)}:xd(s);return i.config=function(r){return n(e,r)},i};ut("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;Sn(n+",Power"+(t-1),e?function(s){return Math.pow(s,t)}:function(s){return s},function(s){return 1-Math.pow(1-s,t)},function(s){return s<.5?Math.pow(s*2,t)/2:1-Math.pow((1-s)*2,t)/2})});se.Linear.easeNone=se.none=se.Linear.easeIn;Sn("Elastic",fa("in"),fa("out"),fa());(function(n,e){var t=1/e,s=2*t,i=2.5*t,r=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,ni(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,i){if(ii(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Go(this,s),!r._dp||r.parent||nd(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&Yt(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===fe||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Jh(this,s,i)),this},e.time=function(s,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Yl(this))%(this._dur+this._rDelay)||(s?this._dur:0),i):this._time},e.totalProgress=function(s,i){return arguments.length?this.totalTime(this.totalDuration()*s,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(s,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Yl(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(s,i){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,i):this._repeat?si(this._tTime,r)+1:1},e.timeScale=function(s,i){if(!arguments.length)return this._rts===-fe?0:this._rts;if(this._rts===s)return this;var r=this.parent&&this._ts?To(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-fe?0:this._rts,this.totalTime(Sr(-Math.abs(this._delay),this._tDur,r),i!==!1),Wo(this),sT(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ii(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==fe&&(this._tTime-=fe)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Yt(i,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(lt(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var i=this.parent||this._dp;return i?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?To(i.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=Kx);var i=Xe;return Xe=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Xe=i,this},e.globalTime=function(s){for(var i=this,r=arguments.length?s:i.rawTime();i;)r=i._start+r/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(s):r},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Zl(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var i=this._time;return this._rDelay=s,Zl(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,i){return this.totalTime(Ct(this,s),lt(i))},e.restart=function(s,i){return this.play().totalTime(s?-this._delay:0,lt(i))},e.play=function(s,i){return s!=null&&this.seek(s,i),this.reversed(!1).paused(!1)},e.reverse=function(s,i){return s!=null&&this.seek(s||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(s,i){return s!=null&&this.seek(s,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-fe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-fe,this},e.isActive=function(){var s=this.parent||this._dp,i=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=i&&r1?(i?(o[s]=i,r&&(o[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=i)):delete o[s],this):o[s]},e.then=function(s){var i=this;return new Promise(function(r){var o=Re(s)?s:td,a=function(){var l=i.then;i.then=null,Re(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=l),r(o),i.then=l};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){Di(this)},n}();Dt(cr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-fe,_prom:0,_ps:!1,_rts:1});var tt=function(n){jh(e,n);function e(s,i){var r;return s===void 0&&(s={}),r=n.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=lt(s.sortChildren),be&&Yt(s.parent||be,ls(r),i),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&id(ls(r),s.scrollTrigger),r}var t=e.prototype;return t.to=function(i,r,o){return Fi(0,arguments,this),this},t.from=function(i,r,o){return Fi(1,arguments,this),this},t.fromTo=function(i,r,o,a){return Fi(2,arguments,this),this},t.set=function(i,r,o){return r.duration=0,r.parent=this,Ni(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Be(i,r,Ct(this,o),1),this},t.call=function(i,r,o){return Yt(this,Be.delayedCall(0,i,r),o)},t.staggerTo=function(i,r,o,a,c,l,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new Be(i,o,Ct(this,c)),this},t.staggerFrom=function(i,r,o,a,c,l,u){return o.runBackwards=1,Ni(o).immediateRender=lt(o.immediateRender),this.staggerTo(i,r,o,a,c,l,u)},t.staggerFromTo=function(i,r,o,a,c,l,u,h){return a.startAt=o,Ni(a).immediateRender=lt(a.immediateRender),this.staggerTo(i,r,a,c,l,u,h)},t.render=function(i,r,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=i<=0?0:He(i),h=this._zTime<0!=i<0&&(this._initted||!l),f,d,m,p,g,v,S,T,y,_,w,k;if(this!==be&&u>c&&i>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,i+=this._time-a),f=u,y=this._start,T=this._ts,v=!T,h&&(l||(a=this._zTime),(i||!r)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,g=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,r,o);if(f=He(u%g),u===c?(p=this._repeat,f=l):(p=~~(u/g),p&&p===u/g&&(f=l,p--),f>l&&(f=l)),_=si(this._tTime,g),!a&&this._tTime&&_!==p&&this._tTime-_*g-this._dur<=0&&(_=p),w&&p&1&&(f=l-f,k=1),p!==_&&!this._lock){var x=w&&_&1,C=x===(w&&p&1);if(p<_&&(x=!x),a=x?0:u%l?l:u,this._lock=1,this.render(a||(k?0:He(p*g)),r,!l)._lock=0,this._tTime=u,!r&&this.parent&&vt(this,"onRepeat"),this.vars.repeatRefresh&&!k&&(this.invalidate()._lock=1),a&&a!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,c=this._tDur,C&&(this._lock=2,a=x?l:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!k&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;yd(this,k)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(S=oT(this,He(a),He(f)),S&&(u-=f-(f=S._start))),this._tTime=u,this._time=f,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&f&&!r&&!p&&(vt(this,"onStart"),this._tTime!==u))return this;if(f>=a&&i>=0)for(d=this._first;d;){if(m=d._next,(d._act||f>=d._start)&&d._ts&&S!==d){if(d.parent!==this)return this.render(i,r,o);if(d.render(d._ts>0?(f-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(f-d._start)*d._ts,r,o),f!==this._time||!this._ts&&!v){S=0,m&&(u+=this._zTime=-fe);break}}d=m}else{d=this._last;for(var E=i<0?i:f;d;){if(m=d._prev,(d._act||E<=d._end)&&d._ts&&S!==d){if(d.parent!==this)return this.render(i,r,o);if(d.render(d._ts>0?(E-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(E-d._start)*d._ts,r,o||Xe&&(d._initted||d._startAt)),f!==this._time||!this._ts&&!v){S=0,m&&(u+=this._zTime=E?-fe:fe);break}}d=m}}if(S&&!r&&(this.pause(),S.render(f>=a?0:-fe)._zTime=f>=a?1:-1,this._ts))return this._start=y,Wo(this),this.render(i,r,o);this._onUpdate&&!r&&vt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(y===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&qs(this,1),!r&&!(i<0&&!a)&&(u||a||!c)&&(vt(this,u===c&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(i,r){var o=this;if(vs(r)||(r=Ct(this,r,i)),!(i instanceof cr)){if(Qe(i))return i.forEach(function(a){return o.add(a,r)}),this;if(Ge(i))return this.addLabel(i,r);if(Re(i))i=Be.delayedCall(0,i);else return this}return this!==i?Yt(this,i,r):this},t.getChildren=function(i,r,o,a){i===void 0&&(i=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Ot);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof Be?r&&c.push(l):(o&&c.push(l),i&&c.push.apply(c,l.getChildren(!0,r,o)))),l=l._next;return c},t.getById=function(i){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===i)return r[o]},t.remove=function(i){return Ge(i)?this.removeLabel(i):Re(i)?this.killTweensOf(i):(qo(this,i),i===this._recent&&(this._recent=this._last),un(this))},t.totalTime=function(i,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=He(gt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),n.prototype.totalTime.call(this,i,r),this._forcing=0,this):this._tTime},t.addLabel=function(i,r){return this.labels[i]=Ct(this,r),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,r,o){var a=Be.delayedCall(0,r||rr,o);return a.data="isPause",this._hasPause=1,Yt(this,a,Ct(this,i))},t.removePause=function(i){var r=this._first;for(i=Ct(this,i);r;)r._start===i&&r.data==="isPause"&&qs(r),r=r._next},t.killTweensOf=function(i,r,o){for(var a=this.getTweensOf(i,o),c=a.length;c--;)Ds!==a[c]&&a[c].kill(i,r);return this},t.getTweensOf=function(i,r){for(var o=[],a=At(i),c=this._first,l=vs(r),u;c;)c instanceof Be?Jx(c._targets,a)&&(l?(!Ds||c._initted&&c._ts)&&c.globalTime(0)<=r&&c.globalTime(c.totalDuration())>r:!r||c.isActive())&&o.push(c):(u=c.getTweensOf(a,r)).length&&o.push.apply(o,u),c=c._next;return o},t.tweenTo=function(i,r){r=r||{};var o=this,a=Ct(o,i),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,f=c.immediateRender,d,m=Be.to(o,Dt({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||fe,onStart:function(){if(o.pause(),!d){var g=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());m._dur!==g&&ni(m,g,0,1).render(m._time,!0,!0),d=1}u&&u.apply(m,h||[])}},r));return f?m.render(0):m},t.tweenFromTo=function(i,r,o){return this.tweenTo(r,Dt({startAt:{time:Ct(this,i)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),$l(this,Ct(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),$l(this,Ct(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+fe)},t.shiftChildren=function(i,r,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(r)for(l in c)c[l]>=o&&(c[l]+=i);return un(this)},t.invalidate=function(i){var r=this._first;for(this._lock=0;r;)r.invalidate(i),r=r._next;return n.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),un(this)},t.totalDuration=function(i){var r=0,o=this,a=o._last,c=Ot,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,Yt(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(r-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>r&&a._ts&&(r=a._end),a=l;ni(o,o===be&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(be._ts&&(Jh(be,To(i,be)),Qh=gt.frame),gt.frame>=Wl){Wl+=xt.autoSleep||120;var r=be._first;if((!r||!r._ts)&&xt.autoSleep&>._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||gt.sleep()}}},e}(cr);Dt(tt.prototype,{_lock:0,_hasPause:0,_forcing:0});var wT=function(e,t,s,i,r,o,a){var c=new ht(this._pt,e,t,0,1,Ed,null,r),l=0,u=0,h,f,d,m,p,g,v,S;for(c.b=s,c.e=i,s+="",i+="",(v=~i.indexOf("random("))&&(i=or(i)),o&&(S=[s,i],o(S,e,t),s=S[0],i=S[1]),f=s.match(ua)||[];h=ua.exec(i);)m=h[0],p=i.substring(l,h.index),d?d=(d+1)%5:p.substr(-5)==="rgba("&&(d=1),m!==f[u++]&&(g=parseFloat(f[u-1])||0,c._pt={_next:c._pt,p:p||u===1?p:",",s:g,c:m.charAt(1)==="="?Hn(g,m)-g:parseFloat(m)-g,m:d&&d<4?Math.round:0},l=ua.lastIndex);return c.c=l")}),y.duration();else{w={};for(x in m)x==="ease"||x==="easeEach"||bT(x,m[x],w,m.easeEach);for(x in w)for(R=w[x].sort(function(N,U){return N.t-U.t}),A=0,_=0;_c-fe&&!u?c:il&&(f=l)),v=this._yoyo&&m&1,v&&(y=this._yEase,f=l-f),g=si(this._tTime,p),f===a&&!o&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(T&&this._yEase&&yd(T,v),this.vars.repeatRefresh&&!v&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(He(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(rd(this,u?i:f,o,r,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==g))return this;if(l!==this._dur)return this.render(i,r,o)}if(this._tTime=h,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=S=(y||this._ease)(f/l),this._from&&(this.ratio=S=1-S),f&&!a&&!r&&!m&&(vt(this,"onStart"),this._tTime!==h))return this;for(d=this._pt;d;)d.r(S,d.d),d=d._next;T&&T.render(i<0?i:!f&&v?-fe:T._dur*T._ease(f/this._dur),r,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!r&&(u&&La(this,i,r,o),vt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!r&&this.parent&&vt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&La(this,i,!0,!0),(i||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&qs(this,1),!r&&!(u&&!a)&&(h||a||v)&&(vt(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),n.prototype.invalidate.call(this,i)},t.resetTo=function(i,r,o,a,c){ar||gt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Hc(this,l),u=this._ease(l/this._dur),ST(this,i,r,o,a,u,l,c)?this.resetTo(i,r,o,a,1):(Go(this,0),this.parent||sd(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,r){if(r===void 0&&(r="all"),!i&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?Di(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,r,Ds&&Ds.vars.overwrite!==!0)._first||Di(this),this.parent&&o!==this.timeline.totalDuration()&&ni(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=i?At(i):a,l=this._ptLookup,u=this._pt,h,f,d,m,p,g,v;if((!r||r==="all")&&tT(a,c))return r==="all"&&(this._pt=0),Di(this);for(h=this._op=this._op||[],r!=="all"&&(Ge(r)&&(p={},ut(r,function(S){return p[S]=1}),r=p),r=CT(a,r)),v=a.length;v--;)if(~c.indexOf(a[v])){f=l[v],r==="all"?(h[v]=r,m=f,d={}):(d=h[v]=h[v]||{},m=r);for(p in m)g=f&&f[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&qo(this,g,"_pt"),delete f[p]),d!=="all"&&(d[p]=1)}return this._initted&&!this._pt&&u&&Di(this),this},e.to=function(i,r){return new e(i,r,arguments[2])},e.from=function(i,r){return Fi(1,arguments)},e.delayedCall=function(i,r,o,a){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,r,o){return Fi(2,arguments)},e.set=function(i,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(i,r)},e.killTweensOf=function(i,r,o){return be.killTweensOf(i,r,o)},e}(cr);Dt(Be.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ut("staggerTo,staggerFrom,staggerFromTo",function(n){Be[n]=function(){var e=new tt,t=za.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var qc=function(e,t,s){return e[t]=s},Cd=function(e,t,s){return e[t](s)},ET=function(e,t,s,i){return e[t](i.fp,s)},OT=function(e,t,s){return e.setAttribute(t,s)},Wc=function(e,t){return Re(e[t])?Cd:Nc(e[t])&&e.setAttribute?OT:qc},bd=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},AT=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Ed=function(e,t){var s=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;s;)i=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+i,s=s._next;i+=t.c}t.set(t.t,t.p,i,t)},Gc=function(e,t){for(var s=t._pt;s;)s.r(e,s.d),s=s._next},MT=function(e,t,s,i){for(var r=this._pt,o;r;)o=r._next,r.p===i&&r.modifier(e,t,s),r=o},DT=function(e){for(var t=this._pt,s,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?qo(this,t,"_pt"):t.dep||(s=1),t=i;return!s},RT=function(e,t,s,i){i.mSet(e,t,i.m.call(i.tween,s,i.mt),i)},Od=function(e){for(var t=e._pt,s,i,r,o;t;){for(s=t._next,i=r;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:o)?t._prev._next=t:r=t,(t._next=i)?i._prev=t:o=t,t=s}e._pt=r},ht=function(){function n(t,s,i,r,o,a,c,l,u){this.t=s,this.s=r,this.c=o,this.p=i,this.r=a||bd,this.d=c||this,this.set=l||qc,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(s,i,r){this.mSet=this.mSet||this.set,this.set=RT,this.m=s,this.mt=r,this.tween=i},n}();ut(zc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(n){return Bc[n]=1});wt.TweenMax=wt.TweenLite=Be;wt.TimelineLite=wt.TimelineMax=tt;be=new tt({sortChildren:!1,defaults:ti,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});xt.stringFilter=gd;var dn=[],Yr={},PT=[],Ql=0,IT=0,ma=function(e){return(Yr[e]||PT).map(function(t){return t()})},qa=function(){var e=Date.now(),t=[];e-Ql>2&&(ma("matchMediaInit"),dn.forEach(function(s){var i=s.queries,r=s.conditions,o,a,c,l;for(a in i)o=bt.matchMedia(i[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&t.push(s))}),ma("matchMediaRevert"),t.forEach(function(s){return s.onMatch(s,function(i){return s.add(null,i)})}),Ql=e,ma("matchMedia"))},Ad=function(){function n(t,s){this.selector=s&&Va(s),this.data=[],this._r=[],this.isReverted=!1,this.id=IT++,t&&this.add(t)}var e=n.prototype;return e.add=function(s,i,r){Re(s)&&(r=i,i=s,s=Re);var o=this,a=function(){var l=De,u=o.selector,h;return l&&l!==o&&l.data.push(o),r&&(o.selector=Va(r)),De=o,h=i.apply(o,arguments),Re(h)&&o._r.push(h),De=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Re?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},e.ignore=function(s){var i=De;De=null,s(this),De=i},e.getTweens=function(){var s=[];return this.data.forEach(function(i){return i instanceof n?s.push.apply(s,i.getTweens()):i instanceof Be&&!(i.parent&&i.parent.data==="nested")&&s.push(i)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,i){var r=this;if(s?function(){for(var a=r.getTweens(),c=r.data.length,l;c--;)l=r.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=r.data.length;c--;)l=r.data[c],l instanceof tt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Be)&&l.revert&&l.revert(s);r._r.forEach(function(u){return u(s,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=dn.length;o--;)dn[o].id===this.id&&dn.splice(o,1)},e.revert=function(s){this.kill(s||{})},n}(),NT=function(){function n(t){this.contexts=[],this.scope=t}var e=n.prototype;return e.add=function(s,i,r){Kt(s)||(s={matches:s});var o=new Ad(0,r||this.scope),a=o.conditions={},c,l,u;De&&!o.selector&&(o.selector=De.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=s;for(l in s)l==="all"?u=1:(c=bt.matchMedia(s[l]),c&&(dn.indexOf(o)<0&&dn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(qa):c.addEventListener("change",qa)));return u&&i(o,function(h){return o.add(null,h)}),this},e.revert=function(s){this.kill(s||{})},e.kill=function(s){this.contexts.forEach(function(i){return i.kill(s,!0)})},n}(),wo={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),s=0;s1){var i=e.map(function(u){return pt.quickSetter(u,t,s)}),r=i.length;return function(u){for(var h=r;h--;)i[h](u)}}e=e[0]||{};var o=_t[t],a=ln(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;zn._pt=0,h.init(e,s?u+s:u,zn,0,[e]),h.render(1,h),zn._pt&&Gc(1,zn)}:a.set(e,c);return o?l:function(u){return l(e,c,s?u+s:u,a,1)}},quickTo:function(e,t,s){var i,r=pt.to(e,vn((i={},i[t]="+=0.1",i.paused=!0,i),s||{})),o=function(c,l,u){return r.resetTo(t,c,l,u)};return o.tween=r,o},isTweening:function(e){return be.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=hn(e.ease,ti.ease)),Gl(ti,e||{})},config:function(e){return Gl(xt,e||{})},registerEffect:function(e){var t=e.name,s=e.effect,i=e.plugins,r=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!_t[a]&&!wt[a]&&ir(t+" effect requires "+a+" plugin.")}),ha[t]=function(a,c,l){return s(At(a),Dt(c||{},r),l)},o&&(tt.prototype[t]=function(a,c,l){return this.add(ha[t](a,Kt(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){se[e]=hn(t)},parseEase:function(e,t){return arguments.length?hn(e,t):se},getById:function(e){return be.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var s=new tt(e),i,r;for(s.smoothChildTiming=lt(e.smoothChildTiming),be.remove(s),s._dp=0,s._time=s._tTime=be._time,i=be._first;i;)r=i._next,(t||!(!i._dur&&i instanceof Be&&i.vars.onComplete===i._targets[0]))&&Yt(s,i,i._start-i._delay),i=r;return Yt(be,s,0),s},context:function(e,t){return e?new Ad(e,t):De},matchMedia:function(e){return new NT(e)},matchMediaRefresh:function(){return dn.forEach(function(e){var t=e.conditions,s,i;for(i in t)t[i]&&(t[i]=!1,s=1);s&&e.revert()})||qa()},addEventListener:function(e,t){var s=Yr[e]||(Yr[e]=[]);~s.indexOf(t)||s.push(t)},removeEventListener:function(e,t){var s=Yr[e],i=s&&s.indexOf(t);i>=0&&s.splice(i,1)},utils:{wrap:fT,wrapYoyo:pT,distribute:cd,random:ud,snap:ld,normalize:dT,getUnit:$e,clamp:cT,splitColor:md,toArray:At,selector:Va,mapRange:dd,pipe:uT,unitize:hT,interpolate:mT,shuffle:ad},install:$h,effects:ha,ticker:gt,updateRoot:tt.updateRoot,plugins:_t,globalTimeline:be,core:{PropTween:ht,globals:Xh,Tween:Be,Timeline:tt,Animation:cr,getCache:ln,_removeLinkedListItem:qo,reverting:function(){return Xe},context:function(e){return e&&De&&(De.data.push(e),e._ctx=De),De},suppressOverwrites:function(e){return Ic=e}}};ut("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return wo[n]=Be[n]});gt.add(tt.updateRoot);zn=wo.to({},{duration:0});var FT=function(e,t){for(var s=e._pt;s&&s.p!==t&&s.op!==t&&s.fp!==t;)s=s._next;return s},UT=function(e,t){var s=e._targets,i,r,o;for(i in t)for(r=s.length;r--;)o=e._ptLookup[r][i],o&&(o=o.d)&&(o._pt&&(o=FT(o,i)),o&&o.modifier&&o.modifier(t[i],e,s[r],i))},_a=function(e,t){return{name:e,rawVars:1,init:function(i,r,o){o._onInit=function(a){var c,l;if(Ge(r)&&(c={},ut(r,function(u){return c[u]=1}),r=c),t){c={};for(l in r)c[l]=t(r[l]);r=c}UT(a,r)}}}},pt=wo.registerPlugin({name:"attr",init:function(e,t,s,i,r){var o,a,c;this.tween=s;for(o in t)c=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(c||0)+"",t[o],i,r,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(e,t){for(var s=t._pt;s;)Xe?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",init:function(e,t){for(var s=t.length;s--;)this.add(e,s,e[s]||0,t[s],0,0,0,0,0,1)}},_a("roundProps",ja),_a("modifiers"),_a("snap",ld))||wo;Be.version=tt.version=pt.version="3.12.4";Zh=1;Fc()&&ii();se.Power0;se.Power1;se.Power2;se.Power3;se.Power4;se.Linear;se.Quad;se.Cubic;se.Quart;se.Quint;se.Strong;se.Elastic;se.Back;se.SteppedEase;se.Bounce;se.Sine;se.Expo;se.Circ;/*!
- * CSSPlugin 3.12.4
- * https://gsap.com
- *
- * Copyright 2008-2023, GreenSock. All rights reserved.
- * Subject to the terms at https://gsap.com/standard-license or for
- * Club GSAP members, the agreement issued with that membership.
- * @author: Jack Doyle, jack@greensock.com
-*/var Kl,Rs,qn,Yc,rn,Jl,Zc,LT=function(){return typeof window<"u"},ys={},tn=180/Math.PI,Wn=Math.PI/180,In=Math.atan2,eu=1e8,$c=/([A-Z])/g,BT=/(left|right|width|margin|padding|x)/i,zT=/[\s,\(]\S/,Zt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Wa=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},VT=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},jT=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},HT=function(e,t){var s=t.s+t.c*e;t.set(t.t,t.p,~~(s+(s<0?-.5:.5))+t.u,t)},Md=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Dd=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},qT=function(e,t,s){return e.style[t]=s},WT=function(e,t,s){return e.style.setProperty(t,s)},GT=function(e,t,s){return e._gsap[t]=s},YT=function(e,t,s){return e._gsap.scaleX=e._gsap.scaleY=s},ZT=function(e,t,s,i,r){var o=e._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},$T=function(e,t,s,i,r){var o=e._gsap;o[t]=s,o.renderTransform(r,o)},Ee="transform",dt=Ee+"Origin",XT=function n(e,t){var s=this,i=this.target,r=i.style,o=i._gsap;if(e in ys&&r){if(this.tfm=this.tfm||{},e!=="transform")e=Zt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return s.tfm[a]=us(i,a)}):this.tfm[e]=o.x?o[e]:us(i,e),e===dt&&(this.tfm.zOrigin=o.zOrigin);else return Zt.transform.split(",").forEach(function(a){return n.call(s,a,t)});if(this.props.indexOf(Ee)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(dt,t,"")),e=Ee}(r||t)&&this.props.push(e,t,r[e])},Rd=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},QT=function(){var e=this.props,t=this.target,s=t.style,i=t._gsap,r,o;for(r=0;r=0?tu[o]:"")+e},Ya=function(){LT()&&window.document&&(Kl=window,Rs=Kl.document,qn=Rs.documentElement,rn=Ga("div")||{style:{}},Ga("div"),Ee=ri(Ee),dt=Ee+"Origin",rn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Id=!!ri("perspective"),Zc=pt.core.reverting,Yc=1)},ga=function n(e){var t=Ga("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,i=this.nextSibling,r=this.style.cssText,o;if(qn.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(i?s.insertBefore(this,i):s.appendChild(this)),qn.removeChild(t),this.style.cssText=r,o},su=function(e,t){for(var s=t.length;s--;)if(e.hasAttribute(t[s]))return e.getAttribute(t[s])},Nd=function(e){var t;try{t=e.getBBox()}catch{t=ga.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===ga||(t=ga.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+su(e,["x","cx","x1"])||0,y:+su(e,["y","cy","y1"])||0,width:0,height:0}:t},Fd=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Nd(e))},yn=function(e,t){if(t){var s=e.style,i;t in ys&&t!==dt&&(t=Ee),s.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),s.removeProperty(i==="--"?t:t.replace($c,"-$1").toLowerCase())):s.removeAttribute(t)}},Ps=function(e,t,s,i,r,o){var a=new ht(e._pt,t,s,0,1,o?Dd:Md);return e._pt=a,a.b=i,a.e=r,e._props.push(s),a},nu={deg:1,rad:1,turn:1},KT={grid:1,flex:1},Ws=function n(e,t,s,i){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=rn.style,c=BT.test(t),l=e.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,f=i==="px",d=i==="%",m,p,g,v;if(i===o||!r||nu[i]||nu[o])return r;if(o!=="px"&&!f&&(r=n(e,t,s,"px")),v=e.getCTM&&Fd(e),(d||o==="%")&&(ys[t]||~t.indexOf("adius")))return m=v?e.getBBox()[c?"width":"height"]:e[u],Ie(d?r/m*h:r/100*m);if(a[c?"width":"height"]=h+(f?o:i),p=~t.indexOf("adius")||i==="em"&&e.appendChild&&!l?e:e.parentNode,v&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Rs||!p.appendChild)&&(p=Rs.body),g=p._gsap,g&&d&&g.width&&c&&g.time===gt.time&&!g.uncache)return Ie(r/g.width*h);if(d&&(t==="height"||t==="width")){var S=e.style[t];e.style[t]=h+i,m=e[u],S?e.style[t]=S:yn(e,t)}else(d||o==="%")&&!KT[Xt(p,"display")]&&(a.position=Xt(e,"position")),p===e&&(a.position="static"),p.appendChild(rn),m=rn[u],p.removeChild(rn),a.position="absolute";return c&&d&&(g=ln(p),g.time=gt.time,g.width=p[u]),Ie(f?m*r/h:m&&r?h/m*r:0)},us=function(e,t,s,i){var r;return Yc||Ya(),t in Zt&&t!=="transform"&&(t=Zt[t],~t.indexOf(",")&&(t=t.split(",")[0])),ys[t]&&t!=="transform"?(r=ur(e,i),r=t!=="transformOrigin"?r[t]:r.svg?r.origin:So(Xt(e,dt))+" "+r.zOrigin+"px"):(r=e.style[t],(!r||r==="auto"||i||~(r+"").indexOf("calc("))&&(r=ko[t]&&ko[t](e,t,s)||Xt(e,t)||Kh(e,t)||(t==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Ws(e,t,r,s)+s:r},JT=function(e,t,s,i){if(!s||s==="none"){var r=ri(t,e,1),o=r&&Xt(e,r,1);o&&o!==s?(t=r,s=o):t==="borderColor"&&(s=Xt(e,"borderTopColor"))}var a=new ht(this._pt,e.style,t,0,1,Ed),c=0,l=0,u,h,f,d,m,p,g,v,S,T,y,_;if(a.b=s,a.e=i,s+="",i+="",i==="auto"&&(p=e.style[t],e.style[t]=i,i=Xt(e,t)||i,p?e.style[t]=p:yn(e,t)),u=[s,i],gd(u),s=u[0],i=u[1],f=s.match(Bn)||[],_=i.match(Bn)||[],_.length){for(;h=Bn.exec(i);)g=h[0],S=i.substring(c,h.index),m?m=(m+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(m=1),g!==(p=f[l++]||"")&&(d=parseFloat(p)||0,y=p.substr((d+"").length),g.charAt(1)==="="&&(g=Hn(d,g)+y),v=parseFloat(g),T=g.substr((v+"").length),c=Bn.lastIndex-T.length,T||(T=T||xt.units[t]||y,c===i.length&&(i+=T,a.e+=T)),y!==T&&(d=Ws(e,t,p,T)||0),a._pt={_next:a._pt,p:S||l===1?S:",",s:d,c:v-d,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],ys[a]&&(c=1,a=a==="transformOrigin"?dt:Ee),yn(s,a);c&&(yn(s,Ee),o&&(o.svg&&s.removeAttribute("transform"),ur(s,1),o.uncache=1,Rd(i)))}},ko={clearProps:function(e,t,s,i,r){if(r.data!=="isFromStart"){var o=e._pt=new ht(e._pt,t,s,0,0,tw);return o.u=i,o.pr=-10,o.tween=r,e._props.push(s),1}}},lr=[1,0,0,1,0,0],Ud={},Ld=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},ru=function(e){var t=Xt(e,Ee);return Ld(t)?lr:t.substr(7).match(Wh).map(Ie)},Xc=function(e,t){var s=e._gsap||ln(e),i=e.style,r=ru(e),o,a,c,l;return s.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,r=[c.a,c.b,c.c,c.d,c.e,c.f],r.join(",")==="1,0,0,1,0,0"?lr:r):(r===lr&&!e.offsetParent&&e!==qn&&!s.svg&&(c=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,qn.appendChild(e)),r=ru(e),c?i.display=c:yn(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):qn.removeChild(e))),t&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Za=function(e,t,s,i,r,o){var a=e._gsap,c=r||Xc(e,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,f=a.yOffset||0,d=c[0],m=c[1],p=c[2],g=c[3],v=c[4],S=c[5],T=t.split(" "),y=parseFloat(T[0])||0,_=parseFloat(T[1])||0,w,k,x,C;s?c!==lr&&(k=d*g-m*p)&&(x=y*(g/k)+_*(-p/k)+(p*S-g*v)/k,C=y*(-m/k)+_*(d/k)-(d*S-m*v)/k,y=x,_=C):(w=Nd(e),y=w.x+(~T[0].indexOf("%")?y/100*w.width:y),_=w.y+(~(T[1]||T[0]).indexOf("%")?_/100*w.height:_)),i||i!==!1&&a.smooth?(v=y-l,S=_-u,a.xOffset=h+(v*d+S*p)-v,a.yOffset=f+(v*m+S*g)-S):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=_,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!s,e.style[dt]="0px 0px",o&&(Ps(o,a,"xOrigin",l,y),Ps(o,a,"yOrigin",u,_),Ps(o,a,"xOffset",h,a.xOffset),Ps(o,a,"yOffset",f,a.yOffset)),e.setAttribute("data-svg-origin",y+" "+_)},ur=function(e,t){var s=e._gsap||new Td(e);if("x"in s&&!t&&!s.uncache)return s;var i=e.style,r=s.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=Xt(e,dt)||"0",u,h,f,d,m,p,g,v,S,T,y,_,w,k,x,C,E,O,A,R,P,F,N,U,V,z,q,j,B,Te,ae,$;return u=h=f=p=g=v=S=T=y=0,d=m=1,s.svg=!!(e.getCTM&&Fd(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Ee]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Ee]!=="none"?c[Ee]:"")),i.scale=i.rotate=i.translate="none"),k=Xc(e,s.svg),s.svg&&(s.uncache?(V=e.getBBox(),l=s.xOrigin-V.x+"px "+(s.yOrigin-V.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Za(e,U||l,!!U||s.originIsAbsolute,s.smooth!==!1,k)),_=s.xOrigin||0,w=s.yOrigin||0,k!==lr&&(O=k[0],A=k[1],R=k[2],P=k[3],u=F=k[4],h=N=k[5],k.length===6?(d=Math.sqrt(O*O+A*A),m=Math.sqrt(P*P+R*R),p=O||A?In(A,O)*tn:0,S=R||P?In(R,P)*tn+p:0,S&&(m*=Math.abs(Math.cos(S*Wn))),s.svg&&(u-=_-(_*O+w*R),h-=w-(_*A+w*P))):($=k[6],Te=k[7],q=k[8],j=k[9],B=k[10],ae=k[11],u=k[12],h=k[13],f=k[14],x=In($,B),g=x*tn,x&&(C=Math.cos(-x),E=Math.sin(-x),U=F*C+q*E,V=N*C+j*E,z=$*C+B*E,q=F*-E+q*C,j=N*-E+j*C,B=$*-E+B*C,ae=Te*-E+ae*C,F=U,N=V,$=z),x=In(-R,B),v=x*tn,x&&(C=Math.cos(-x),E=Math.sin(-x),U=O*C-q*E,V=A*C-j*E,z=R*C-B*E,ae=P*E+ae*C,O=U,A=V,R=z),x=In(A,O),p=x*tn,x&&(C=Math.cos(x),E=Math.sin(x),U=O*C+A*E,V=F*C+N*E,A=A*C-O*E,N=N*C-F*E,O=U,F=V),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,v=180-v),d=Ie(Math.sqrt(O*O+A*A+R*R)),m=Ie(Math.sqrt(N*N+$*$)),x=In(F,N),S=Math.abs(x)>2e-4?x*tn:0,y=ae?1/(ae<0?-ae:ae):0),s.svg&&(U=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!Ld(Xt(e,Ee)),U&&e.setAttribute("transform",U))),Math.abs(S)>90&&Math.abs(S)<270&&(r?(d*=-1,S+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,S+=S<=0?180:-180)),t=t||s.uncache,s.x=u-((s.xPercent=u&&(!t&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!t&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+o,s.z=f+o,s.scaleX=Ie(d),s.scaleY=Ie(m),s.rotation=Ie(p)+a,s.rotationX=Ie(g)+a,s.rotationY=Ie(v)+a,s.skewX=S+a,s.skewY=T+a,s.transformPerspective=y+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!t&&s.zOrigin||0)&&(i[dt]=So(l)),s.xOffset=s.yOffset=0,s.force3D=xt.force3D,s.renderTransform=s.svg?nw:Id?Bd:sw,s.uncache=0,s},So=function(e){return(e=e.split(" "))[0]+" "+e[1]},va=function(e,t,s){var i=$e(t);return Ie(parseFloat(t)+parseFloat(Ws(e,"x",s+"px",i)))+i},sw=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Bd(e,t)},Js="0deg",Oi="0px",en=") ",Bd=function(e,t){var s=t||this,i=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,f=s.skewX,d=s.skewY,m=s.scaleX,p=s.scaleY,g=s.transformPerspective,v=s.force3D,S=s.target,T=s.zOrigin,y="",_=v==="auto"&&e&&e!==1||v===!0;if(T&&(h!==Js||u!==Js)){var w=parseFloat(u)*Wn,k=Math.sin(w),x=Math.cos(w),C;w=parseFloat(h)*Wn,C=Math.cos(w),o=va(S,o,k*C*-T),a=va(S,a,-Math.sin(w)*-T),c=va(S,c,x*C*-T+T)}g!==Oi&&(y+="perspective("+g+en),(i||r)&&(y+="translate("+i+"%, "+r+"%) "),(_||o!==Oi||a!==Oi||c!==Oi)&&(y+=c!==Oi||_?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+en),l!==Js&&(y+="rotate("+l+en),u!==Js&&(y+="rotateY("+u+en),h!==Js&&(y+="rotateX("+h+en),(f!==Js||d!==Js)&&(y+="skew("+f+", "+d+en),(m!==1||p!==1)&&(y+="scale("+m+", "+p+en),S.style[Ee]=y||"translate(0, 0)"},nw=function(e,t){var s=t||this,i=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,f=s.scaleY,d=s.target,m=s.xOrigin,p=s.yOrigin,g=s.xOffset,v=s.yOffset,S=s.forceCSS,T=parseFloat(o),y=parseFloat(a),_,w,k,x,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Wn,l*=Wn,_=Math.cos(c)*h,w=Math.sin(c)*h,k=Math.sin(c-l)*-f,x=Math.cos(c-l)*f,l&&(u*=Wn,C=Math.tan(l-u),C=Math.sqrt(1+C*C),k*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),_*=C,w*=C)),_=Ie(_),w=Ie(w),k=Ie(k),x=Ie(x)):(_=h,x=f,w=k=0),(T&&!~(o+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(T=Ws(d,"x",o,"px"),y=Ws(d,"y",a,"px")),(m||p||g||v)&&(T=Ie(T+m-(m*_+p*k)+g),y=Ie(y+p-(m*w+p*x)+v)),(i||r)&&(C=d.getBBox(),T=Ie(T+i/100*C.width),y=Ie(y+r/100*C.height)),C="matrix("+_+","+w+","+k+","+x+","+T+","+y+")",d.setAttribute("transform",C),S&&(d.style[Ee]=C)},iw=function(e,t,s,i,r){var o=360,a=Ge(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?tn:1),l=c-i,u=i+l+"deg",h,f;return a&&(h=r.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*eu)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*eu)%o-~~(l/o)*o)),e._pt=f=new ht(e._pt,t,s,i,l,VT),f.e=u,f.u="deg",e._props.push(s),f},ou=function(e,t){for(var s in t)e[s]=t[s];return e},rw=function(e,t,s){var i=ou({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,f,d,m;i.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Ee]=t,a=ur(s,1),yn(s,Ee),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Ee],o[Ee]=t,a=ur(s,1),o[Ee]=l);for(c in ys)l=i[c],u=a[c],l!==u&&r.indexOf(c)<0&&(d=$e(l),m=$e(u),h=d!==m?Ws(s,c,l,m):parseFloat(l),f=parseFloat(u),e._pt=new ht(e._pt,a,c,h,f-h,Wa),e._pt.u=m||0,e._props.push(c));ou(a,i)};ut("padding,margin,Width,Radius",function(n,e){var t="Top",s="Right",i="Bottom",r="Left",o=(e<3?[t,s,i,r]:[t+r,t+s,i+s,i+r]).map(function(a){return e<2?n+a:"border"+a+n});ko[e>1?"border"+n:n]=function(a,c,l,u,h){var f,d;if(arguments.length<4)return f=o.map(function(m){return us(a,m,l)}),d=f.join(" "),d.split(f[0]).length===5?f[0]:d;f=(u+"").split(" "),d={},o.forEach(function(m,p){return d[m]=f[p]=f[p]||f[(p-1)/2|0]}),a.init(c,d,h)}});var zd={name:"css",register:Ya,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,s,i,r){var o=this._props,a=e.style,c=s.vars.startAt,l,u,h,f,d,m,p,g,v,S,T,y,_,w,k,x;Yc||Ya(),this.styles=this.styles||Pd(e),x=this.styles.props,this.tween=s;for(p in t)if(p!=="autoRound"&&(u=t[p],!(_t[p]&&wd(p,t,s,i,e,r)))){if(d=typeof u,m=ko[p],d==="function"&&(u=u.call(s,i,e,r),d=typeof u),d==="string"&&~u.indexOf("random(")&&(u=or(u)),m)m(this,e,p,u,s)&&(k=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",Ls.lastIndex=0,Ls.test(l)||(g=$e(l),v=$e(u)),v?g!==v&&(l=Ws(e,p,l,v)+v):g&&(u+=g),this.add(a,"setProperty",l,u,i,r,0,0,p),o.push(p),x.push(p,0,a[p]);else if(d!=="undefined"){if(c&&p in c?(l=typeof c[p]=="function"?c[p].call(s,i,e,r):c[p],Ge(l)&&~l.indexOf("random(")&&(l=or(l)),$e(l+"")||l==="auto"||(l+=xt.units[p]||$e(us(e,p))||""),(l+"").charAt(1)==="="&&(l=us(e,p))):l=us(e,p),f=parseFloat(l),S=d==="string"&&u.charAt(1)==="="&&u.substr(0,2),S&&(u=u.substr(2)),h=parseFloat(u),p in Zt&&(p==="autoAlpha"&&(f===1&&us(e,"visibility")==="hidden"&&h&&(f=0),x.push("visibility",0,a.visibility),Ps(this,a,"visibility",f?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=Zt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),T=p in ys,T){if(this.styles.save(p),y||(_=e._gsap,_.renderTransform&&!t.parseTransform||ur(e,t.parseTransform),w=t.smoothOrigin!==!1&&_.smooth,y=this._pt=new ht(this._pt,a,Ee,0,1,_.renderTransform,_,0,-1),y.dep=1),p==="scale")this._pt=new ht(this._pt,_,"scaleY",_.scaleY,(S?Hn(_.scaleY,S+h):h)-_.scaleY||0,Wa),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){x.push(dt,0,a[dt]),u=ew(u),_.svg?Za(e,u,0,w,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==_.zOrigin&&Ps(this,_,"zOrigin",_.zOrigin,v),Ps(this,a,p,So(l),So(u)));continue}else if(p==="svgOrigin"){Za(e,u,1,w,0,this);continue}else if(p in Ud){iw(this,_,p,f,S?Hn(f,S+u):u);continue}else if(p==="smoothOrigin"){Ps(this,_,"smooth",_.smooth,u);continue}else if(p==="force3D"){_[p]=u;continue}else if(p==="transform"){rw(this,u,e);continue}}else p in a||(p=ri(p)||p);if(T||(h||h===0)&&(f||f===0)&&!zT.test(u)&&p in a)g=(l+"").substr((f+"").length),h||(h=0),v=$e(u)||(p in xt.units?xt.units[p]:g),g!==v&&(f=Ws(e,p,l,v)),this._pt=new ht(this._pt,T?_:a,p,f,(S?Hn(f,S+h):h)-f,!T&&(v==="px"||p==="zIndex")&&t.autoRound!==!1?HT:Wa),this._pt.u=v||0,g!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=jT);else if(p in a)JT.call(this,e,p,l,S?S+u:u);else if(p in e)this.add(e,p,l||e[p],S?S+u:u,i,r);else if(p!=="parseTransform"){Lc(p,u);continue}T||(p in a?x.push(p,0,a[p]):x.push(p,1,l||e[p])),o.push(p)}}k&&Od(this)},render:function(e,t){if(t.tween._time||!Zc())for(var s=t._pt;s;)s.r(e,s.d),s=s._next;else t.styles.revert()},get:us,aliases:Zt,getSetter:function(e,t,s){var i=Zt[t];return i&&i.indexOf(",")<0&&(t=i),t in ys&&t!==dt&&(e._gsap.x||us(e,"x"))?s&&Jl===s?t==="scale"?YT:GT:(Jl=s||{})&&(t==="scale"?ZT:$T):e.style&&!Nc(e.style[t])?qT:~t.indexOf("-")?WT:Wc(e,t)},core:{_removeProperty:yn,_getMatrix:Xc}};pt.utils.checkPrefix=ri;pt.core.getStyleSaver=Pd;(function(n,e,t,s){var i=ut(n+","+e+","+t,function(r){ys[r]=1});ut(e,function(r){xt.units[r]="deg",Ud[r]=1}),Zt[i[13]]=n+","+e,ut(s,function(r){var o=r.split(":");Zt[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");ut("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){xt.units[n]="px"});pt.registerPlugin(zd);var Vd=pt.registerPlugin(zd)||pt;Vd.core.Tween;const jd=b.memo(({linksPositions:n})=>{const e=xn(r=>r.dataInitial),{showSelectionGraph:t}=nt(r=>r),s=Jt(),i=b.useRef([]);return b.useEffect(()=>{i.current.forEach((r,o)=>{if(r){const a=s?0:.5,c=(s==null?void 0:s.ref_id)===(e==null?void 0:e.links[o].source)||(s==null?void 0:s.ref_id)===(e==null?void 0:e.links[o].target);Vd.fromTo(r.material,{linewidth:5},{linewidth:c?2:a,duration:1})}})},[e,s]),M.jsx("group",{name:"simulation-3d-group__connections",children:e==null?void 0:e.links.map((r,o)=>{var l,u,h,f,d,m;const a=new X(((l=n[o])==null?void 0:l.sx)||0,((u=n[o])==null?void 0:u.sy)||0,((h=n[o])==null?void 0:h.sz)||0),c=new X(((f=n[o])==null?void 0:f.tx)||0,((d=n[o])==null?void 0:d.ty)||0,((m=n[o])==null?void 0:m.tz)||0);return M.jsx(Tf,{ref:p=>{i.current[o]=p},color:"rgba(136, 136, 136, 1)",isLine2:!0,lineWidth:1,opacity:1,points:[a,c],transparent:!0,visible:!t},r.ref_id)})})});jd.displayName="Connections";const Yo={metalness:.9,roughness:0},ow={...Yo};new fr(ow);const Hd=new Eo,Co=Hd.load("noimage.jpeg"),au=new fr({...Yo,map:Co}),qd=.4,aw=new fr({...Yo,map:Co,transparent:!0,opacity:qd}),jr={},cw=(n,e)=>{const[t,s]=b.useState(Co),[i,r]=b.useState(au);return b.useEffect(()=>{const o=`${n}${e&&"-transparent"}`;if(jr[o]){s(jr[o].texture),r(jr[o].material);return}Hd.load(n,a=>{const c=new fr({map:a,transparent:e,opacity:e?qd:1,...Yo});jr[o]={texture:a,material:c},s(a),r(c)},void 0,()=>{s(Co),r(e?aw:au)})},[n,e]),b.useEffect(()=>function(){t.dispose(),i.dispose()},[t,i]),i},Qc=b.memo(({node:n,hide:e,animated:t})=>{const s=b.useRef(null),[i]=b.useState(ql),r=Jt(),{showSelectionGraph:o}=nt(u=>u),a=!!r&&n.ref_id===r.ref_id,c=cw(n.image_url||"noimage.jpeg",!1);Rt((u,h)=>{t&&s.current&&a&&(s.current.rotation.y+=h*1,s.current.rotation.x-=h*.6)}),b.useEffect(()=>function(){i.dispose()},[i]);const l=b.useMemo(()=>o&&a?20:a?(n.scale||1)*1.2:n.scale,[n,a,o]);return M.jsx(Up,{enabled:!!a,children:M.jsx("mesh",{ref:s,geometry:ql,material:c,name:n.id,scale:l,userData:n,visible:!e})})});Qc.displayName="Cube";const lw=ze(xs)`
- text-align: center;
- width: ${n=>n.type==="topic"?"auto":`${n.size}px`};
- height: ${n=>n.type==="topic"?"auto":`${n.size}px`};
- outline: 1px solid ${n=>we.white||n.color};
- outline-offset: 0px;
- background: rgba(0, 0, 0, 0.75);
- color: ${n=>n.fontColor};
- border-radius: ${n=>`${n.type==="guest"?"100%":"6px"}`};
- font-size: ${n=>`${n.fontSize}px`};
- cursor: pointer;
- transition: font-size 0.4s, outline 0.4s;
- transform: scale(${n=>n.scale});
- align-items: center;
- justify-content: center;
- font-family: Barlow;
- font-size: 26px;
- font-style: normal;
- font-weight: 700;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
-
- &:hover {
- outline-offset: 4px;
- }
-
- &.selected {
- .badge-wrapper {
- top: 0;
- }
-
- font-size: 36px;
-
- &:hover {
- outline-offset: 0px;
- }
- }
-
- &.topic {
- outline: none;
- background: none;
- &:hover {
- font-size: 36px;
- }
- white-space: nowrap;
- .badge-wrapper {
- display: none;
- }
- }
-
- .badge-wrapper {
- position: absolute;
- top: -7px;
- left: -14px;
- }
-`,uw=ze(xs)`
- text-align: center;
- outline: 1px solid ${we.white};
- outline-offset: 0px;
- white-space: nowrap;
- padding: 4px;
- background: rgba(0, 0, 0, 0.75);
- color: ${we.white};
- border-radius: 6px;
- font-size: 20px;
- cursor: pointer;
- transition: font-size 0.4s, outline 0.4s;
- align-items: center;
- justify-content: flex-start;
- font-family: Barlow;
- font-size: 26px;
- font-style: normal;
- font-weight: 700;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
- max-width: 100px;
- max-height: 100px;
- white-space: normal;
- font-size: 16px;
-
- &:hover {
- outline-offset: 4px;
- }
-
- &.selected {
- .badge-wrapper {
- top: 0;
- }
-
- font-size: 36px;
-
- &:hover {
- outline-offset: 0px;
- }
- }
-
- &.topic {
- outline: none;
- background: none;
- &:hover {
- font-size: 36px;
- }
- white-space: nowrap;
- .badge-wrapper {
- display: none;
- }
- }
-
- .badge-wrapper {
- position: absolute;
- top: -7px;
- left: -14px;
- }
-`;ze.img`
- background-image: ${({src:n})=>`url(${n})`};
- background-size: contain;
- background-repeat: no-repeat;
- width: ${n=>n.size}px;
- height: ${n=>n.size}px;
- border-radius: ${n=>n.borderRadius};
-`;ze.div`
- display: flex;
- position: absolute;
- bottom: -14px;
- left: -5px;
- width: auto;
- justify-content: center;
- align-items: center;
-`;ze.div`
- display: flex;
- justify-content: center;
- align-items: center;
- background: ${we.transparentBlack};
- border: 2px solid ${n=>n.color};
- color: #fff;
- padding: 0 4px;
- min-width: 30px;
- height: 26px;
- font-size: 12px;
- font-weight: 500;
- border-radius: 6px;
- margin-right: 5px;
-`;ze.div`
- display: flex;
- justify-content: center;
- align-items: center;
- border: 2px solid ${n=>n.color}44;
- background: ${we.transparentBlack};
- padding: 0 4px;
- color: ${n=>n.color};
- min-width: 30px;
- height: 26px;
- font-size: 12px;
- font-weight: 500;
- border-radius: 6px;
- margin-right: 5px;
-`;const hw=new X,dw=({position:n,userData:e,color:t})=>{const s=b.useRef(null),{selectedNode:i,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=nt(ec(d=>d)),l=((e==null?void 0:e.node_type)||"")==="Topic"||!!e.name,u=((e==null?void 0:e.node_type)||"")==="Guest"||((e==null?void 0:e.node_type)||"")==="Person";Rt(()=>{if(o&&s.current){const d=hw.set((e==null?void 0:e.x)||0,(e==null?void 0:e.y)||0,(e==null?void 0:e.z)||0);s.current.position.copy(d)}}),b.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=b.useMemo(()=>(a==null?void 0:a.ref_id)===(e==null?void 0:e.ref_id),[a==null?void 0:a.ref_id,e==null?void 0:e.ref_id]),f=(i==null?void 0:i.ref_id)===(e==null?void 0:e.ref_id);return l||f&&o||!f?M.jsx("group",{ref:s,position:n,children:M.jsx(dr,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?M.jsxs(uw,{direction:"column",onClick:d=>{d.stopPropagation(),e&&r(e)},onPointerOut:d=>{d.stopPropagation()},onPointerOver:d=>{d.stopPropagation()},children:[M.jsx("div",{className:"badge-wrapper",children:M.jsx(tl,{type:(e==null?void 0:e.node_type)||""})}),pu(e==null?void 0:e.name,20)]}):M.jsxs(lw,{className:du(e==null?void 0:e.node_type,{selected:f}),color:t,fontColor:we.white,fontSize:l?64:20,onClick:d=>{d.stopPropagation(),e&&r(e)},onPointerOut:d=>{d.stopPropagation()},onPointerOver:d=>{d.stopPropagation()},scale:h?1.05:1,selected:!1,size:f?68:40,type:(e==null?void 0:e.node_type)||"",children:[!u&&!l?M.jsx("div",{className:"badge-wrapper",children:M.jsx(tl,{type:(e==null?void 0:e.node_type)||""})}):null,e!=null&&e.name?e==null?void 0:e.name:M.jsx(Jf,{rounded:u,size:f?60:52,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:e==null?void 0:e.node_type})]})})}):null},Wd=b.memo(()=>{const{simulation:n,showSelectionGraph:e,selectedNode:t,selectionGraphData:s}=nt(ec(o=>o)),i=bo(),r=b.useMemo(()=>{const o=(n==null?void 0:n.nodes())||[];return(e?s.nodes:o).filter(u=>i.includes((u==null?void 0:u.ref_id)||"")||(t==null?void 0:t.ref_id)===(u==null?void 0:u.ref_id)).slice(0,Ux).map(u=>{const h=fu(u.node_type||"",!0),f=new X((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),d=o.filter(m=>m.ref_id&&Lx(m,u)).map(m=>(m==null?void 0:m.ref_id)||"")||[];return M.jsx(dw,{color:h,position:f,relativeIds:d,userData:u},`node-badge-${u.ref_id}`)})},[n,e,s.nodes,i,t==null?void 0:t.ref_id]);return M.jsx(b.Fragment,{children:r.length?r:null},"node-badges")});Wd.displayName="RelevanceBadges";const cu=tf().stop(),mt={numDimensions:3,velocityDecay:.9,forceChargeStrength:-20,forceChargeMinDistance:10,forceChargeMaxDistance:8e3,forceLinkStrength:.04,forceCenterStrength:.85,disableCollide:!1,disableCenter:!1,disableLink:!1,disableCharge:!1,forceCollideRadiusMethod:n=>(n.edge_count||1)*6+200,forceLinkDistanceMethod:n=>{const e=n.source.node_type;let t=50;switch(e){case"topic":t=30;break;case"guest":t=30;break;case"clip":t=10;break;case"episode":t=15;break}return t*2/50}},fw=(n,e,{numDimensions:t=mt.numDimensions,velocityDecay:s=mt.velocityDecay,forceChargeStrength:i=mt.forceChargeStrength,forceChargeMinDistance:r=mt.forceChargeMinDistance,forceChargeMaxDistance:o=mt.forceChargeMaxDistance,forceLinkStrength:a=mt.forceLinkStrength,forceCenterStrength:c=mt.forceCenterStrength,forceLinkDistanceMethod:l=mt.forceLinkDistanceMethod,forceCollideRadiusMethod:u=mt.forceCollideRadiusMethod,disableCollide:h=mt.disableCollide,disableCenter:f=mt.disableCenter,disableLink:d=mt.disableLink,disableCharge:m=mt.disableCharge})=>(cu.alpha(1).stop().numDimensions(t).velocityDecay(s).force("collide",h?null:sf().radius(u).iterations(1)).force("center",f?null:nf().strength(c)).force("charge",m?null:rf().strength(i).distanceMin(r).distanceMax(o)).nodes(n).force("link",d?null:of(e).id(p=>p.ref_id).distance(l).strength(a)).alpha(1).restart(),cu),pw=({link:n,animated:e})=>{const t=b.useRef(null),s=Jt(),[i,r]=b.useState(new X(0,0,0)),[o,a]=b.useState(new X(0,0,0)),[c,l]=b.useState(8947848),u=nt(h=>h.selectionGraphData);return b.useEffect(()=>{var d,m,p,g,v,S;const h=(s==null?void 0:s.ref_id)||"",f=s&&(h===n.target||h===n.source);!n.onlyVisibleOnSelect||f?(r(new X(((d=n.sourcePosition)==null?void 0:d.x)||0,((m=n.sourcePosition)==null?void 0:m.y)||0,((p=n.sourcePosition)==null?void 0:p.z)||0)),a(new X(((g=n.targetPosition)==null?void 0:g.x)||0,((v=n.targetPosition)==null?void 0:v.y)||0,((S=n.targetPosition)==null?void 0:S.z)||0))):(r(new X(0,0,0)),a(new X(0,0,0))),l(f?n.color||af.children.segmentColor:s?5592405:8947848)},[s,n]),Rt(()=>{if(e&&t.current){const h=u.nodes.find(d=>d.ref_id===n.source),f=u.nodes.find(d=>d.ref_id===n.target);t.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),t.current.end.set((f==null?void 0:f.x)||0,(f==null?void 0:f.y)||0,(f==null?void 0:f.z)||0)}}),M.jsx(M.Fragment,{children:M.jsx(Rp,{ref:t,color:"0xFFFFFF",end:o,start:i})})},mw=({links:n,simulation:e})=>{const t=b.useRef(null);return b.useEffect(()=>function(){t.current&&t.current.clear()},[t]),Rt(()=>{if(t.current){const s=e.nodes();t.current.children.forEach((r,o)=>{var u;const a=n[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),n.length?M.jsx("group",{ref:t,children:n.map(s=>M.jsx("mesh",{children:M.jsx(dr,{center:!0,sprite:!0,children:M.jsxs(_w,{direction:"row",justify:"center",onClick:i=>{i.stopPropagation()},onPointerOut:i=>{i.stopPropagation()},onPointerOver:i=>{i.stopPropagation()},children:[M.jsx("span",{children:s.edge_type}),M.jsx(xs,{className:"icon",children:M.jsx(ip,{})})]})})},s.ref_id))}):null},_w=ze(xs)`
- text-align: center;
-
- outline-offset: 0px;
- background: rgba(0, 0, 0, 0.75);
- color: #eee;
- cursor: pointer;
- transition: font-size 0.4s, outline 0.4s;
- align-items: center;
- justify-content: center;
- font-family: Barlow;
- font-size: 12px;
- font-style: normal;
- font-weight: 700;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
-
- &:hover {
- outline-offset: 4px;
- span {
- opacity: 0.1;
- }
-
- .icon {
- display: flex;
- }
- }
-
- .icon {
- position: absolute;
- width: 24px;
- height: 24px;
- /* bottom: 100%; */
- display: none;
- color: #000;
- border-radius: 40px;
- justify-content: center;
- align-items: center;
- background: #ffffff;
- color: #000;
- border-radius: 100%;
- font-size: 16px;
- cursor: pointer;
- transition: opacity 0.4s;
- box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5);
- }
-
- .badge-wrapper {
- position: absolute;
- top: -7px;
- left: -14px;
- }
-`,gw=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"];function vw(n){return n.replace(/[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F700}-\u{1F77F}\u{1F780}-\u{1F7FF}\u{1F800}-\u{1F8FF}\u{1F900}-\u{1F9FF}\u{1FA00}-\u{1FA6F}\u{1FA70}-\u{1FAFF}\u{1FB00}-\u{1FBFF}\u{1FC00}-\u{1FCFF}\u{1FD00}-\u{1FDFF}\u{1FE00}-\u{1FEFF}\u{1FF00}-\u{1FFFF}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B73F}\u{2B740}-\u{2B81F}\u{2B820}-\u{2CEAF}\u{2F800}-\u{2FA1F}]/gu,"")}function yw(n){const e=pu(n,30),t=e.split(" ");if(n.split(" ").length<=5)return e;const s=Math.ceil(t.length/3),i=s*2,r=t.slice(0,s).join(" "),o=t.slice(s,i).join(" "),a=t.slice(i).join(" ");return`${r}
-${o}
-${a}`}const Kc=b.memo(({node:n,hide:e})=>{const t=b.useRef(null),s=Jt(),i=cf(),o=bo().includes((n==null?void 0:n.ref_id)||""),a=!!s&&(s==null?void 0:s.ref_id)===n.ref_id,c=!!i&&(i==null?void 0:i.ref_id)===n.ref_id,l=nt(v=>v.showSelectionGraph),[u]=ep(v=>[v.getPrimaryColorByType]),h=lf();Rt(({camera:v})=>{t!=null&&t.current&&t.current.quaternion.copy(v.quaternion)});const f=b.useMemo(()=>{let v=(n.edge_count||1)*20;l&&a?v=40:!a&&o&&(v=0);const S=v/Math.sqrt(n.name.length);return v=Math.max(S,20),Math.min(v,30)},[n.edge_count,n.name,a,o,l]),d=b.useMemo(()=>s&&!a||i&&!c?.2:1,[a,s,c,i]),p=u(n.node_type)??(gw[h.indexOf(n.node_type)]||we.white),g=vw(String(n.name));return M.jsx(M.Fragment,{children:M.jsx(wf,{ref:t,anchorX:"center",anchorY:"middle",color:p,fillOpacity:d,scale:f,userData:n,visible:!e,...kf,children:yw(g)})})});Kc.displayName="TextNode";const Gd=b.memo(()=>{const[n,e]=b.useState(null),{dataInitial:t}=xn(l=>l),s=Jt(),i=b.useRef(null),r=bo(),o=Sf(t==null?void 0:t.nodes.length),{selectionGraphData:a,setSelectionData:c}=nt(ec(l=>l));return b.useEffect(()=>{const l=structuredClone((t==null?void 0:t.nodes)||[]),u=structuredClone((t==null?void 0:t.links)||[]);if(o===l.length)return;const h=l.filter(f=>f.ref_id===(s==null?void 0:s.ref_id)||r.includes((f==null?void 0:f.ref_id)||"")).map(f=>{const d=f.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...f,x:0,y:0,z:0,...d}});if(h){const f=u.filter(d=>h.some(m=>m.ref_id===d.target)&&h.some(m=>m.ref_id===d.source));c({nodes:h,links:f})}},[t,s,r,c,o]),b.useEffect(()=>{if(n||!a.nodes.length)return;const l=structuredClone(a.links),u=fw(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});e(u)},[a,n]),b.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),b.useEffect(()=>{n&&n.on("tick",()=>{i.current&&i.current.children.forEach((u,h)=>{const f=n.nodes()[h];f&&u.position.set(f.x,f.y,f.z)})})},[n]),console.log(a.nodes),M.jsxs(M.Fragment,{children:[M.jsx("group",{ref:i,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>M.jsx("mesh",{children:l.name?M.jsx(Kc,{hide:!0,node:l},l.ref_id||l.id):M.jsx(Qc,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),M.jsx(Mp,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>M.jsx(pw,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),n&&M.jsx(mw,{links:a.links,simulation:n})]})});Gd.displayName="SelectionDataNodes";const xw=200,Yd=b.memo(()=>{const n=Jt(),e=bo(),{selectionGraphData:t,showSelectionGraph:s,setHoveredNode:i,setIsHovering:r}=nt(m=>m),o=xn(m=>m.dataInitial),a=hr(m=>m.setTranscriptOpen),c=b.useCallback(m=>!!(s&&!t.nodes.find(p=>p.ref_id===m.ref_id)),[s,t]),l=b.useCallback(m=>{const p=m==null?void 0:m[0];p&&(a(!1),p.userData&&(c(p.userData)||nt.getState().setSelectedNode((p==null?void 0:p.userData)||null)))},[a,c]),u=b.useRef(null),h=b.useCallback(m=>{m.stopPropagation(),r(!1),i(null),u.current&&(clearTimeout(u.current),u.current=null)},[r,i]),f=b.useCallback(m=>{var v;const g=m.intersections.map(S=>S.object)[0];if((v=g==null?void 0:g.userData)!=null&&v.ref_id){const S=g.userData;c(S)||(m.stopPropagation(),r(!0),u.current=setTimeout(()=>{i(S)},xw))}},[i,c,r]),d=s&&!!n;return M.jsxs(Sp,{filter:m=>m.filter(p=>{var g;return!!((g=p.userData)!=null&&g.ref_id)}),onChange:l,onPointerOut:h,onPointerOver:f,children:[!1,M.jsx(Wd,{}),M.jsx("group",{name:"simulation-3d-group__nodes",children:o==null?void 0:o.nodes.map(m=>{const p=!!n&&(e.includes(m.ref_id)||n.ref_id===m.ref_id);return M.jsx("mesh",{children:m.name?M.jsx(Kc,{hide:d||p,node:m},m.ref_id||m.id):M.jsx(Qc,{hide:d,node:m},m.ref_id||m.id)},m.ref_id)})}),d&&M.jsx(Gd,{})]})});Yd.displayName="Cubes";const Tw={earthRef:null},ww=uu(n=>({...Tw,setEarthRef:e=>n({earthRef:e})})),kw=new X(0,0,0),Sw=()=>{const n=b.useRef(null),e=b.useRef(null),{graphStyle:t,showSelectionGraph:s}=nt(a=>a),i=ww(a=>a.setEarthRef),r=on("textures/earth/galaxy.png"),o=on("textures/earth/clouds.png");return Rt(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(kw))}),b.useLayoutEffect(()=>{n.current&&i(n)},[i]),t!=="earth"||s?null:M.jsxs(M.Fragment,{children:[M.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[M.jsx("sphereGeometry",{args:[Br,200,200]}),M.jsx(Cw,{})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Br+2,200,200]}),M.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Br*4,200,200]}),M.jsx("meshStandardMaterial",{map:r,opacity:.4,side:Mi,transparent:!0})]}),M.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,Br*3]})]})},Cw=()=>{const n=on("textures/earth/earth.jpeg"),e=on("textures/earth/bump.jpeg"),t=on("textures/earth/water.png"),s=b.useMemo(()=>new fr({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return M.jsx("meshStandardMaterial",{...s})},bw="C",Ew=256,Ow=256,Aw={g:"LottieFiles AE 0.1.20"},Mw=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],Dw="5.5.7",Rw=60,Pw=104,Iw=0,Nw=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],Fw={nm:bw,h:Ew,w:Ow,meta:Aw,layers:Mw,v:Dw,fr:Rw,op:Pw,ip:Iw,assets:Nw},Uw=({meshId:n})=>{const e=b.useRef(null);return b.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=uf.loadAnimation({container:t,animationData:Fw,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),M.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},ya=()=>Math.floor(Math.random()*2001)-1e3,Lw=()=>M.jsx(M.Fragment,{children:["a","b","c"].map(n=>{const e=ya(),t=ya(),s=ya();return M.jsx("mesh",{position:[e,t,s],children:M.jsx(dr,{center:!0,sprite:!0,children:M.jsx(Bw,{children:M.jsx(Uw,{meshId:n})})})},n)})}),Bw=ze.div`
- border: 2px solid white;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- color: white;
- font-size: 20px;
-`;Object.values(Cf).map(n=>n);const Ai=n=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:n?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:n?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:n?"#ffffff66":"#5078f2",fontColor:n?"#ffffff66":"#fff"}}),zw=new X,Zd=b.memo(()=>{const n=b.useRef(null),e=hr(_=>_.setSidebarOpen),[t,s]=Zr.useState(null),{open:i}=$o("editNodeName"),{open:r}=$o("addEdgeToNode"),{open:o}=$o("mergeToNode"),[a]=hu(_=>[_.isAdmin]),[c]=xn(_=>[_.addNewNode]),l=Jt(),{showSelectionGraph:u,selectionGraphData:h,setSelectedNode:f,setShowSelectionGraph:d}=nt(_=>_),m=ap(),p=b.useCallback(async()=>{try{if(l!=null&&l.ref_id){const _=await hf(l==null?void 0:l.ref_id,h.nodes.length||0);_&&c(_)}}catch(_){console.log(_)}},[c,l==null?void 0:l.ref_id,h.nodes.length]);Rt(()=>{g()});const g=b.useCallback(()=>{const _=u?h:m;if(n.current){const w=_==null?void 0:_.nodes.find(k=>k.ref_id===(l==null?void 0:l.ref_id));if(w){const k=zw.set(w==null?void 0:w.x,w==null?void 0:w.y,w==null?void 0:w.z);n.current.position.copy(k)}}},[l,u,h,m]),v=b.useMemo(()=>{const _=a?[{key:"control-key-1",colors:Ai(u).focus,icon:M.jsx(hp,{}),left:-80,className:"add",onClick:k=>{s(k.currentTarget)}},{key:"control-key-2",colors:Ai(u).focus,icon:M.jsx(up,{}),left:-40,className:"edit",onClick:()=>{i()}}]:[],w=[{key:"control-key-4",colors:Ai(u).focus,icon:M.jsx(rp,{}),left:0,className:"expand",onClick:()=>{const k=!u;d(k),k&&e(!0)}},{key:"control-key-5",colors:Ai(!0).close,icon:M.jsx(df,{}),left:40,className:"exit",onClick:()=>{p()}},{key:"control-key-6",colors:Ai(!0).close,icon:M.jsx(op,{}),left:40,className:"exit",onClick:()=>{d(!1),f(null)}}];return[..._,...w].map((k,x)=>({...k,left:-80+x*40}))},[a,u,i,d,e,p,f]);if(!l)return null;const S=()=>{s(null)},T=!!t,y=T?"simple-popover":void 0;return M.jsx("group",{ref:n,children:M.jsxs(dr,{center:!0,className:"control-panel",onClick:_=>_.stopPropagation(),onKeyDown:_=>_.stopPropagation(),onPointerDown:_=>_.stopPropagation(),onPointerOut:_=>_.stopPropagation(),onPointerOver:_=>_.stopPropagation(),onPointerUp:_=>_.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[v.map(_=>M.jsx(Vw,{backgroundColor:_.colors.backgroundColor,borderColor:_.colors.borderColor,className:_.className,fontColor:_.colors.fontColor,left:_.left,onClick:w=>{w.stopPropagation(),_.onClick(w)},children:_.icon},_.key)),M.jsxs(jw,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:S,open:T,transformOrigin:{vertical:"top",horizontal:"right"},children:[M.jsxs(lu,{"data-testid":"merge",onClick:()=>{o(),S()},children:[M.jsx(cp,{"data-testid":"MergeIcon"})," Merge"]}),M.jsxs(lu,{"data-testid":"add_edge",onClick:()=>{r(),S()},children:[M.jsx(lp,{"data-testid":"AddCircleIcon"})," Add edge"]})]})]})})});Zd.displayName="NodeControls";const Vw=ze.div`
- position: fixed;
- top: -60px;
- left: ${n=>-7+n.left}px;
- width: 24px;
- height: 24px;
-
- border-radius: 40px;
- display: flex;
- justify-content: center;
- align-items: center;
- background: ${n=>n.backgroundColor?n.backgroundColor:"#000000bb"};
- color: ${n=>n.fontColor?n.fontColor:"#ffffff"};
- border-radius: 100%;
- font-size: 16px;
- cursor: pointer;
- transition: opacity 0.4s;
- box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5);
-`,lu=ze(xs).attrs({direction:"row",px:12,py:8})`
- display: flex;
- align-items: center;
- justify-content: start;
- gap: 12px;
- cursor: pointer;
- background: ${we.BUTTON1};
- color: ${we.white};
-
- &:hover {
- background: ${we.BUTTON1_HOVER};
- color: ${we.GRAY3};
- }
-`,jw=ze(dp)`
- && {
- z-index: 9999;
- }
- .MuiPaper-root {
- min-width: 149px;
- color: ${we.GRAY3};
- box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2);
- border-radius: 6px;
- z-index: 1;
- font-family: Barlow;
- font-size: 14px;
- font-weight: 500;
- }
-`,$d=b.memo(()=>M.jsx(M.Fragment,{children:M.jsx(Zd,{})}));$d.displayName="NodeDetailsPanel";const Hw=()=>{const{dataInitial:n,isLoadingNew:e,isFetching:t,dataNew:s,resetDataNew:i}=xn(d=>d),r=b.useRef(null),o=b.useRef([]),{setData:a,simulation:c,simulationCreate:l,simulationHelpers:u,graphStyle:h,setGraphRadius:f}=nt(d=>d);return b.useEffect(()=>{if(!s)return;const d=s.nodes||[],m=s.links||[],p=structuredClone(d),g=structuredClone(m);if(c){const v=ff.isEqual(s,n);u.addNodesAndLinks(p,g,v)}c||l(p,g),i()},[a,s,c,l,i,u,n]),b.useEffect(()=>{c&&u.setForces()},[h,u,c]),b.useEffect(()=>{c&&(c.on("tick",()=>{if(r.current){const d=r.current.getObjectByName("simulation-3d-group__nodes"),m=r.current.getObjectByName("simulation-3d-group__connections");d.children.forEach((p,g)=>{const v=c.nodes()[g];v&&p.position.set(v.x,v.y,v.z)}),m.children.forEach((p,g)=>{const v=n==null?void 0:n.links[g],S=p;if(v){const T=c.nodes().find(A=>A.ref_id===v.source),y=c.nodes().find(A=>A.ref_id===v.target),{x:_,y:w,z:k}=T,{x,y:C,z:E}=y;o.current[g]={sx:_,sy:w,sz:k,tx:x,ty:C,tz:E},S.geometry.setPositions([_,w,k,x,C,E]);const{material:O}=S;O.color=new hs("white"),O.transparent=!0,O.opacity=.1}})}}),c.on("end",()=>{const d=c.nodes().map(v=>new X(v.x,v.y,v.z)),m=new Qf().setFromPoints(d),p=new Kf;m.getBoundingSphere(p);const g=p.radius;f(g)}))},[n,c,f]),c?M.jsxs("group",{ref:r,children:[M.jsx(Yd,{}),M.jsx(Sw,{}),!1,(e||t)&&M.jsx(Lw,{}),h!=="earth"&&M.jsx(jd,{linksPositions:o.current}),M.jsx($d,{})]}):null},qw=({fullSize:n=!0})=>{const e=hr(t=>t.sidebarIsOpen);return M.jsx(Ww,{align:"center",className:du({"sidebar-is-open":e&&!n}),justify:"center",children:M.jsx(fp,{color:we.SECONDARY_BLUE,size:64})})},Ww=ze(xs)`
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- background-color: ${we.black};
- z-index: 1;
-`,Gw=()=>M.jsx(dr,{children:M.jsx(yp,{})}),Yw=()=>{const{universeColor:n}=sp("universe",{universeColor:we.black}),e=Jt(),t=b.useMemo(()=>e!=null&&e.node_type?fu(e.node_type):Fx,[e]);return M.jsxs(M.Fragment,{children:[M.jsx("color",{args:[n],attach:"background"}),M.jsx(Of,{}),M.jsx(Wx,{}),M.jsxs(Fp,{children:[M.jsxs(_m,{autoClear:!1,multisampling:8,children:[M.jsx(xm,{darkness:.7,eskil:!1,offset:.05}),M.jsx(vm,{luminanceThreshold:1,mipmapBlur:!0,resolutionX:Oe.AUTO_SIZE,resolutionY:Oe.AUTO_SIZE}),M.jsx(ym,{blendFunction:ee.SCREEN,blur:!0,edgeStrength:4,hiddenEdgeColor:t,visibleEdgeColor:t})]}),M.jsx(Hw,{})]})]})};let xa=null;const Zw={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Pi.x,Pi.y,Pi.z]},$w=()=>{const[n,e,t]=[Ns(a=>a.setIsUserScrollingOnHtmlPanel),Ns(a=>a.setIsUserScrolling),Ns(a=>a.setUserMovedCamera)],s=xn(a=>a.isFetching),i=hr(a=>a.universeQuestionIsOpen),r=b.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;xa&&clearTimeout(xa),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{e(!1),n(!1)},200)},[e,n,t]),o=b.useCallback(a=>pf(a,"threeState"),[]);return M.jsxs(Xw,{children:[M.jsx(b.Suspense,{fallback:null,children:M.jsxs(bf,{camera:Zw,id:"universe-canvas",onCreated:o,onWheel:r,children:[mf&&M.jsx(Ef,{position:"bottom-right"}),M.jsxs(b.Suspense,{fallback:M.jsx(Gw,{}),children:[M.jsx(Pp,{}),M.jsx(Ip,{}),M.jsx(Np,{}),M.jsx(Yw,{})]})]})}),i&&M.jsx(Sm,{}),s&&M.jsx(qw,{fullSize:!1}),M.jsx(tp,{})]})},Xw=ze(xs)`
- flex: 1 1 100%;
- position: relative;
-`,zk=b.memo($w);export{zk as Universe};
diff --git a/build/assets/index-5bf7b5a0.js b/build/assets/index-5bf7b5a0.js
deleted file mode 100644
index 47ea355d6..000000000
--- a/build/assets/index-5bf7b5a0.js
+++ /dev/null
@@ -1,673 +0,0 @@
-import{r as P,n as Cc,_ as yi,bu as _c,bv as ed,j as L,R as td,p as nd,q as Ki,bw as rd,bx as id,by as od}from"./index-e6d6ccb0.js";import{a5 as fl,u as Vl,a6 as ad,U as ld,z as Ec,t as sd,C as io,a7 as ud,a2 as Zl,P as Ql,q as da,a8 as dl,a9 as cd,aa as fd,ab as dd,y as hd,ac as pd,ad as vd,ae as md,V as st,a as Nr,af as gd,b as yd,k as Xl,X as pa,ag as Tc,K as Ul,ah as Rl,ai as pi,aj as xd,Y as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-2ce81f73.js";import{s as _t,c as Ad}from"./index-63408349.js";var Pc={exports:{}},Gr={};/**
- * @license React
- * react-reconciler-constants.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */Gr.ConcurrentRoot=1;Gr.ContinuousEventPriority=4;Gr.DefaultEventPriority=16;Gr.DiscreteEventPriority=1;Gr.IdleEventPriority=536870912;Gr.LegacyRoot=0;Pc.exports=Gr;var vi=Pc.exports;function Dd(a){let n;const c=new Set,v=(h,d)=>{const m=typeof h=="function"?h(n):h;if(m!==n){const y=n;n=d?m:Object.assign({},n,m),c.forEach(x=>x(n,y))}},i=()=>n,r=(h,d=i,m=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let y=d(n);function x(){const C=d(n);if(!m(y,C)){const T=y;h(y=C,T)}}return c.add(x),()=>c.delete(x)},u={setState:v,getState:i,subscribe:(h,d,m)=>d||m?r(h,d,m):(c.add(h),()=>c.delete(h)),destroy:()=>c.clear()};return n=a(v,i,u),u}const Od=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ou=Od?P.useEffect:P.useLayoutEffect;function zd(a){const n=typeof a=="function"?Dd(a):a,c=(v=n.getState,i=Object.is)=>{const[,r]=P.useReducer(S=>S+1,0),s=n.getState(),f=P.useRef(s),u=P.useRef(v),h=P.useRef(i),d=P.useRef(!1),m=P.useRef();m.current===void 0&&(m.current=v(s));let y,x=!1;(f.current!==s||u.current!==v||h.current!==i||d.current)&&(y=v(s),x=!i(m.current,y)),Ou(()=>{x&&(m.current=y),f.current=s,u.current=v,h.current=i,d.current=!1});const C=P.useRef(s);Ou(()=>{const S=()=>{try{const w=n.getState(),M=u.current(w);h.current(m.current,M)||(f.current=w,m.current=M,r())}catch{d.current=!0,r()}},_=n.subscribe(S);return n.getState()!==C.current&&S(),_},[]);const T=x?y:m.current;return P.useDebugValue(T),T};return Object.assign(c,n),c[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const v=[c,n];return{next(){const i=v.length<=0;return{value:v.shift(),done:i}}}},c}var Lc={exports:{}},Uc={exports:{}},Rc={};/**
- * @license React
- * scheduler.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */(function(a){function n(Z,j){var W=Z.length;Z.push(j);e:for(;0>>1,I=Z[k];if(0>>1;ki(H,W))rei(X,H)?(Z[k]=X,Z[re]=W,k=re):(Z[k]=H,Z[Y]=W,k=Y);else if(rei(X,W))Z[k]=X,Z[re]=W,k=re;else break e}}return j}function i(Z,j){var W=Z.sortIndex-j.sortIndex;return W!==0?W:Z.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;a.unstable_now=function(){return r.now()}}else{var s=Date,f=s.now();a.unstable_now=function(){return s.now()-f}}var u=[],h=[],d=1,m=null,y=3,x=!1,C=!1,T=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(Z){for(var j=c(h);j!==null;){if(j.callback===null)v(h);else if(j.startTime<=Z)v(h),j.sortIndex=j.expirationTime,n(u,j);else break;j=c(h)}}function D(Z){if(T=!1,M(Z),!C)if(c(u)!==null)C=!0,ae(R);else{var j=c(h);j!==null&&ve(D,j.startTime-Z)}}function R(Z,j){C=!1,T&&(T=!1,_(B),B=-1),x=!0;var W=y;try{for(M(j),m=c(u);m!==null&&(!(m.expirationTime>j)||Z&&!G());){var k=m.callback;if(typeof k=="function"){m.callback=null,y=m.priorityLevel;var I=k(m.expirationTime<=j);j=a.unstable_now(),typeof I=="function"?m.callback=I:m===c(u)&&v(u),M(j)}else v(u);m=c(u)}if(m!==null)var Q=!0;else{var Y=c(h);Y!==null&&ve(D,Y.startTime-j),Q=!1}return Q}finally{m=null,y=W,x=!1}}var A=!1,b=null,B=-1,J=5,oe=-1;function G(){return!(a.unstable_now()-oeZ||125k?(Z.sortIndex=W,n(h,Z),c(u)===null&&Z===c(h)&&(T?(_(B),B=-1):T=!0,ve(D,W-k))):(Z.sortIndex=I,n(u,Z),C||x||(C=!0,ae(R))),Z},a.unstable_shouldYield=G,a.unstable_wrapCallback=function(Z){var j=y;return function(){var W=y;y=j;try{return Z.apply(this,arguments)}finally{y=W}}}})(Rc);Uc.exports=Rc;var Al=Uc.exports;/**
- * @license React
- * react-reconciler.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Id=function(n){var c={},v=P,i=Al,r=Object.assign;function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;oU||p[E]!==g[U]){var V=`
-`+p[E].replace(" at new "," at ");return e.displayName&&V.includes("")&&(V=V.replace("",e.displayName)),V}while(1<=E&&0<=U);break}}}finally{Mi=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Rn(e):""}var Hr=Object.prototype.hasOwnProperty,Vr=[],In=-1;function ln(e){return{current:e}}function Ye(e){0>In||(e.current=Vr[In],Vr[In]=null,In--)}function Ke(e,t){In++,Vr[In]=e.current,e.current=t}var sn={},St=ln(sn),Et=ln(!1),jn=sn;function yn(e,t){var o=e.type.contextTypes;if(!o)return sn;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===t)return l.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in o)p[g]=t[g];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=p),p}function Tt(e){return e=e.childContextTypes,e!=null}function Fn(){Ye(Et),Ye(St)}function Zr(e,t,o){if(St.current!==sn)throw Error(s(168));Ke(St,t),Ke(Et,o)}function Qr(e,t,o){var l=e.stateNode;if(t=t.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var p in l)if(!(p in t))throw Error(s(108,B(e)||"Unknown",p));return r({},o,l)}function sr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,jn=St.current,Ke(St,e),Ke(Et,Et.current),!0}function un(e,t,o){var l=e.stateNode;if(!l)throw Error(s(169));o?(e=Qr(e,t,jn),l.__reactInternalMemoizedMergedChildContext=e,Ye(Et),Ye(St),Ke(St,e)):Ye(Et),Ke(Et,o)}var cn=Math.clz32?Math.clz32:fo,Xr=Math.log,wr=Math.LN2;function fo(e){return e>>>=0,e===0?32:31-(Xr(e)/wr|0)|0}var Kn=64,qn=4194304;function $n(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sr(e,t){var o=e.pendingLanes;if(o===0)return 0;var l=0,p=e.suspendedLanes,g=e.pingedLanes,E=o&268435455;if(E!==0){var U=E&~p;U!==0?l=$n(U):(g&=E,g!==0&&(l=$n(g)))}else E=o&~p,E!==0?l=$n(E):g!==0&&(l=$n(g));if(l===0)return 0;if(t!==0&&t!==l&&!(t&p)&&(p=l&-l,g=t&-t,p>=g||p===16&&(g&4194240)!==0))return t;if(l&4&&(l|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=l;0o;o++)t.push(e);return t}function bn(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=o}function ur(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0>=E,p-=E,rr=1<<32-cn(t)+p|o<Ve?(Lt=Ae,Ae=null):Lt=Ae.sibling;var Ze=Le(z,Ae,N[Ve],he);if(Ze===null){Ae===null&&(Ae=Lt);break}e&&Ae&&Ze.alternate===null&&t(z,Ae),F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze,Ae=Lt}if(Ve===N.length)return o(z,Ae),ot&&Pr(z,Ve),Ee;if(Ae===null){for(;VeVe?(Lt=Ae,Ae=null):Lt=Ae.sibling;var yr=Le(z,Ae,Ze.value,he);if(yr===null){Ae===null&&(Ae=Lt);break}e&&Ae&&yr.alternate===null&&t(z,Ae),F=g(yr,F,Ve),je===null?Ee=yr:je.sibling=yr,je=yr,Ae=Lt}if(Ze.done)return o(z,Ae),ot&&Pr(z,Ve),Ee;if(Ae===null){for(;!Ze.done;Ve++,Ze=N.next())Ze=Fe(z,Ze.value,he),Ze!==null&&(F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze);return ot&&Pr(z,Ve),Ee}for(Ae=l(z,Ae);!Ze.done;Ve++,Ze=N.next())Ze=$e(Ae,z,Ve,Ze.value,he),Ze!==null&&(e&&Ze.alternate!==null&&Ae.delete(Ze.key===null?Ve:Ze.key),F=g(Ze,F,Ve),je===null?Ee=Ze:je.sibling=Ze,je=Ze);return e&&Ae.forEach(function($f){return t(z,$f)}),ot&&Pr(z,Ve),Ee}function Mn(z,F,N,he){if(typeof N=="object"&&N!==null&&N.type===d&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case u:e:{for(var Ee=N.key,je=F;je!==null;){if(je.key===Ee){if(Ee=N.type,Ee===d){if(je.tag===7){o(z,je.sibling),F=p(je,N.props.children),F.return=z,z=F;break e}}else if(je.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===M&&ms(Ee)===je.type){o(z,je.sibling),F=p(je,N.props),F.ref=zi(z,je,N),F.return=z,z=F;break e}o(z,je);break}else t(z,je);je=je.sibling}N.type===d?(F=Or(N.props.children,z.mode,he,N.key),F.return=z,z=F):(he=ea(N.type,N.key,N.props,null,z.mode,he),he.ref=zi(z,F,N),he.return=z,z=he)}return E(z);case h:e:{for(je=N.key;F!==null;){if(F.key===je)if(F.tag===4&&F.stateNode.containerInfo===N.containerInfo&&F.stateNode.implementation===N.implementation){o(z,F.sibling),F=p(F,N.children||[]),F.return=z,z=F;break e}else{o(z,F);break}else t(z,F);F=F.sibling}F=ul(N,z.mode,he),F.return=z,z=F}return E(z);case M:return je=N._init,Mn(z,F,je(N._payload),he)}if(ne(N))return Te(z,F,N,he);if(A(N))return bt(z,F,N,he);_o(z,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,F!==null&&F.tag===6?(o(z,F.sibling),F=p(F,N),F.return=z,z=F):(o(z,F),F=sl(N,z.mode,he),F.return=z,z=F),E(z)):o(z,F)}return Mn}var ni=gs(!0),ys=gs(!1),Ii={},Cn=ln(Ii),ji=ln(Ii),ri=ln(Ii);function Gn(e){if(e===Ii)throw Error(s(174));return e}function Ma(e,t){Ke(ri,t),Ke(ji,e),Ke(Cn,Ii),e=ve(t),Ye(Cn),Ke(Cn,e)}function ii(){Ye(Cn),Ye(ji),Ye(ri)}function xs(e){var t=Gn(ri.current),o=Gn(Cn.current);t=Z(o,e.type,t),o!==t&&(Ke(ji,e),Ke(Cn,t))}function ka(e){ji.current===e&&(Ye(Cn),Ye(ji))}var lt=ln(0);function Eo(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Xe(o)||ht(o)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pa=[];function La(){for(var e=0;eo?o:4,e(!0);var l=_n.transition;_n.transition={};try{e(!1),t()}finally{Ne=o,_n.transition=l}}function As(){return Wn().memoizedState}function Mf(e,t,o){var l=vr(e);o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},Ds(e)?Os(t,o):(zs(e,t,o),o=Kt(),e=En(e,l,o),e!==null&&Is(e,t,l))}function kf(e,t,o){var l=vr(e),p={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))Os(t,p);else{zs(e,t,p);var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=t.lastRenderedReducer,g!==null))try{var E=t.lastRenderedState,U=g(E,o);if(p.hasEagerState=!0,p.eagerState=U,dn(U,E))return}catch{}finally{}o=Kt(),e=En(e,l,o),e!==null&&Is(e,t,l)}}function Ds(e){var t=e.alternate;return e===dt||t!==null&&t===dt}function Os(e,t){bi=Mo=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function zs(e,t,o){xt!==null&&e.mode&1&&!(Be&2)?(e=t.interleaved,e===null?(o.next=o,hn===null?hn=[t]:hn.push(t)):(o.next=e.next,e.next=o),t.interleaved=o):(e=t.pending,e===null?o.next=o:(o.next=e.next,e.next=o),t.pending=o)}function Is(e,t,o){if(o&4194240){var l=t.lanes;l&=e.pendingLanes,o|=l,t.lanes=o,Bn(e,o)}}var Ro={readContext:vt,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},Pf={readContext:vt,useCallback:function(e,t){return or().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Da,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,Lo(4194308,4,Ls.bind(null,t,e),o)},useLayoutEffect:function(e,t){return Lo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lo(4,2,e,t)},useMemo:function(e,t){var o=or();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var l=or();return t=o!==void 0?o(t):t,l.memoizedState=l.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},l.queue=e,e=e.dispatch=Mf.bind(null,dt,e),[l.memoizedState,e]},useRef:function(e){var t=or();return e={current:e},t.memoizedState=e},useState:Aa,useDebugValue:Oa,useDeferredValue:function(e){var t=Aa(e),o=t[0],l=t[1];return Da(function(){var p=_n.transition;_n.transition={};try{l(e)}finally{_n.transition=p}},[e]),o},useTransition:function(){var e=Aa(!1),t=e[0];return e=Tf.bind(null,e[1]),or().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var l=dt,p=or();if(ot){if(o===void 0)throw Error(s(407));o=o()}else{if(o=t(),xt===null)throw Error(s(349));oi&30||Cs(l,t,o)}p.memoizedState=o;var g={value:o,getSnapshot:t};return p.queue=g,Da(Es.bind(null,l,g,e),[e]),l.flags|=2048,Ni(9,_s.bind(null,l,g,o,t),void 0,null),o},useId:function(){var e=or(),t=xt.identifierPrefix;if(ot){var o=ir,l=rr;o=(l&~(1<<32-cn(l)-1)).toString(32)+o,t=":"+t+"R"+o,o=Bi++,0el&&(t.flags|=128,l=!0,Vi(p,!1),t.lanes=4194304)}else{if(!l)if(e=Eo(g),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),Vi(p,!0),p.tail===null&&p.tailMode==="hidden"&&!g.alternate&&!ot)return jt(t),null}else 2*at()-p.renderingStartTime>el&&o!==1073741824&&(t.flags|=128,l=!0,Vi(p,!1),t.lanes=4194304);p.isBackwards?(g.sibling=t.child,t.child=g):(e=p.last,e!==null?e.sibling=g:t.child=g,p.last=g)}return p.tail!==null?(t=p.tail,p.rendering=t,p.tail=t.sibling,p.renderingStartTime=at(),t.sibling=null,e=lt.current,Ke(lt,l?e&1|2:e&1),t):(jt(t),null);case 22:case 23:return ol(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?gn&1073741824&&(jt(t),K&&t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}var Af=f.ReactCurrentOwner,mn=!1;function Jt(e,t,o,l){t.child=e===null?ys(t,null,o,l):ni(t,e.child,o,l)}function Vs(e,t,o,l,p){o=o.render;var g=t.ref;return pt(t,p),l=Ra(e,t,o,l,g,p),o=Fa(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~p,ar(e,t,p)):(ot&&o&&Sa(t),t.flags|=1,Jt(e,t,l,p),t.child)}function Zs(e,t,o,l,p){if(e===null){var g=o.type;return typeof g=="function"&&!ll(g)&&g.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=g,Qs(e,t,g,l,p)):(e=ea(o.type,null,l,t,t.mode,p),e.ref=t.ref,e.return=t,t.child=e)}if(g=e.child,!(e.lanes&p)){var E=g.memoizedProps;if(o=o.compare,o=o!==null?o:Tr,o(E,l)&&e.ref===t.ref)return ar(e,t,p)}return t.flags|=1,e=gr(g,l),e.ref=t.ref,e.return=t,t.child=e}function Qs(e,t,o,l,p){if(e!==null&&Tr(e.memoizedProps,l)&&e.ref===t.ref)if(mn=!1,(e.lanes&p)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,ar(e,t,p);return ja(e,t,o,l,p)}function Xs(e,t,o){var l=t.pendingProps,p=l.children,g=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},Ke(ai,gn),gn|=o;else if(o&1073741824)t.memoizedState={baseLanes:0,cachePool:null},l=g!==null?g.baseLanes:o,Ke(ai,gn),gn|=l;else return e=g!==null?g.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,Ke(ai,gn),gn|=e,null;else g!==null?(l=g.baseLanes|o,t.memoizedState=null):l=o,Ke(ai,gn),gn|=l;return Jt(e,t,p,o),t.child}function Ys(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function ja(e,t,o,l,p){var g=Tt(o)?jn:St.current;return g=yn(t,g),pt(t,p),o=Ra(e,t,o,l,g,p),l=Fa(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~p,ar(e,t,p)):(ot&&l&&Sa(t),t.flags|=1,Jt(e,t,o,p),t.child)}function Js(e,t,o,l,p){if(Tt(o)){var g=!0;sr(t)}else g=!1;if(pt(t,p),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),cs(t,o,l),wa(t,o,l,p),l=!0;else if(e===null){var E=t.stateNode,U=t.memoizedProps;E.props=U;var V=E.context,se=o.contextType;typeof se=="object"&&se!==null?se=vt(se):(se=Tt(o)?jn:St.current,se=yn(t,se));var ge=o.getDerivedStateFromProps,Fe=typeof ge=="function"||typeof E.getSnapshotBeforeUpdate=="function";Fe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==l||V!==se)&&fs(t,E,l,se),fr=!1;var Le=t.memoizedState;E.state=Le,xo(t,l,E,p),V=t.memoizedState,U!==l||Le!==V||Et.current||fr?(typeof ge=="function"&&(xa(t,o,ge,l),V=t.memoizedState),(U=fr||us(t,o,U,l,Le,V,se))?(Fe||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(t.flags|=4194308)):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=V),E.props=l,E.state=V,E.context=se,l=U):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{E=t.stateNode,os(e,t),U=t.memoizedProps,se=t.type===t.elementType?U:Xt(t.type,U),E.props=se,Fe=t.pendingProps,Le=E.context,V=o.contextType,typeof V=="object"&&V!==null?V=vt(V):(V=Tt(o)?jn:St.current,V=yn(t,V));var $e=o.getDerivedStateFromProps;(ge=typeof $e=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==Fe||Le!==V)&&fs(t,E,l,V),fr=!1,Le=t.memoizedState,E.state=Le,xo(t,l,E,p);var Te=t.memoizedState;U!==Fe||Le!==Te||Et.current||fr?(typeof $e=="function"&&(xa(t,o,$e,l),Te=t.memoizedState),(se=fr||us(t,o,se,l,Le,Te,V)||!1)?(ge||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(l,Te,V),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(l,Te,V)),typeof E.componentDidUpdate=="function"&&(t.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=Te),E.props=l,E.state=Te,E.context=V,l=se):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),l=!1)}return ba(e,t,o,l,g,p)}function ba(e,t,o,l,p,g){Ys(e,t);var E=(t.flags&128)!==0;if(!l&&!E)return p&&un(t,o,!1),ar(e,t,g);l=t.stateNode,Af.current=t;var U=E&&typeof o.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&E?(t.child=ni(t,e.child,null,g),t.child=ni(t,null,U,g)):Jt(e,t,U,g),t.memoizedState=l.state,p&&un(t,o,!0),t.child}function Ks(e){var t=e.stateNode;t.pendingContext?Zr(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zr(e,t.context,!1),Ma(e,t.containerInfo)}function qs(e,t,o,l,p){return ti(),Ta(p),t.flags|=256,Jt(e,t,o,l),t.child}var Do={dehydrated:null,treeContext:null,retryLane:0};function Oo(e){return{baseLanes:e,cachePool:null}}function $s(e,t,o){var l=t.pendingProps,p=lt.current,g=!1,E=(t.flags&128)!==0,U;if((U=E)||(U=e!==null&&e.memoizedState===null?!1:(p&2)!==0),U?(g=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(p|=1),Ke(lt,p&1),e===null)return Ea(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?ht(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(p=l.children,e=l.fallback,g?(l=t.mode,g=t.child,p={mode:"hidden",children:p},!(l&1)&&g!==null?(g.childLanes=0,g.pendingProps=p):g=ta(p,l,0,null),e=Or(e,l,o,null),g.return=t,e.return=t,g.sibling=e,t.child=g,t.child.memoizedState=Oo(o),t.memoizedState=Do,e):Ba(t,p));if(p=e.memoizedState,p!==null){if(U=p.dehydrated,U!==null){if(E)return t.flags&256?(t.flags&=-257,zo(e,t,o,Error(s(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(g=l.fallback,p=t.mode,l=ta({mode:"visible",children:l.children},p,0,null),g=Or(g,p,o,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,t.mode&1&&ni(t,e.child,null,o),t.child.memoizedState=Oo(o),t.memoizedState=Do,g);if(!(t.mode&1))t=zo(e,t,o,null);else if(ht(U))t=zo(e,t,o,Error(s(419)));else if(l=(o&e.childLanes)!==0,mn||l){if(l=xt,l!==null){switch(o&-o){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}l=g&(l.suspendedLanes|o)?0:g,l!==0&&l!==p.retryLane&&(p.retryLane=l,En(e,l,-1))}al(),t=zo(e,t,o,Error(s(421)))}else Xe(U)?(t.flags|=128,t.child=e.child,t=Zf.bind(null,e),qt(U,t),t=null):(o=p.treeContext,xe&&(vn=On(U),pn=t,ot=!0,Dn=null,Di=!1,o!==null&&(wn[Sn++]=rr,wn[Sn++]=ir,wn[Sn++]=kr,rr=o.id,ir=o.overflow,kr=t)),t=Ba(t,t.pendingProps.children),t.flags|=4096);return t}return g?(l=tu(e,t,l.children,l.fallback,o),g=t.child,p=e.child.memoizedState,g.memoizedState=p===null?Oo(o):{baseLanes:p.baseLanes|o,cachePool:null},g.childLanes=e.childLanes&~o,t.memoizedState=Do,l):(o=eu(e,t,l.children,o),t.memoizedState=null,o)}return g?(l=tu(e,t,l.children,l.fallback,o),g=t.child,p=e.child.memoizedState,g.memoizedState=p===null?Oo(o):{baseLanes:p.baseLanes|o,cachePool:null},g.childLanes=e.childLanes&~o,t.memoizedState=Do,l):(o=eu(e,t,l.children,o),t.memoizedState=null,o)}function Ba(e,t){return t=ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eu(e,t,o,l){var p=e.child;return e=p.sibling,o=gr(p,{mode:"visible",children:o}),!(t.mode&1)&&(o.lanes=l),o.return=t,o.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=o}function tu(e,t,o,l,p){var g=t.mode;e=e.child;var E=e.sibling,U={mode:"hidden",children:o};return!(g&1)&&t.child!==e?(o=t.child,o.childLanes=0,o.pendingProps=U,t.deletions=null):(o=gr(e,U),o.subtreeFlags=e.subtreeFlags&14680064),E!==null?l=gr(E,l):(l=Or(l,g,p,null),l.flags|=2),l.return=t,o.return=t,o.sibling=l,t.child=o,l}function zo(e,t,o,l){return l!==null&&Ta(l),ni(t,e.child,null,o),e=Ba(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nu(e,t,o){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Yt(e.return,t,o)}function Na(e,t,o,l,p){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:p}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=o,g.tailMode=p)}function ru(e,t,o){var l=t.pendingProps,p=l.revealOrder,g=l.tail;if(Jt(e,t,l.children,o),l=lt.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nu(e,o,t);else if(e.tag===19)nu(e,o,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(Ke(lt,l),!(t.mode&1))t.memoizedState=null;else switch(p){case"forwards":for(o=t.child,p=null;o!==null;)e=o.alternate,e!==null&&Eo(e)===null&&(p=o),o=o.sibling;o=p,o===null?(p=t.child,t.child=null):(p=o.sibling,o.sibling=null),Na(t,!1,p,o,g);break;case"backwards":for(o=null,p=t.child,t.child=null;p!==null;){if(e=p.alternate,e!==null&&Eo(e)===null){t.child=p;break}e=p.sibling,p.sibling=o,o=p,p=e}Na(t,!0,o,null,g);break;case"together":Na(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ar(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),li|=t.lanes,!(o&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,o=gr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=gr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function Df(e,t,o){switch(t.tag){case 3:Ks(t),ti();break;case 5:xs(t);break;case 1:Tt(t.type)&&sr(t);break;case 4:Ma(t,t.stateNode.containerInfo);break;case 10:go(t,t.type._context,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ke(lt,lt.current&1),t.flags|=128,null):o&t.child.childLanes?$s(e,t,o):(Ke(lt,lt.current&1),e=ar(e,t,o),e!==null?e.sibling:null);Ke(lt,lt.current&1);break;case 19:if(l=(o&t.childLanes)!==0,e.flags&128){if(l)return ru(e,t,o);t.flags|=128}var p=t.memoizedState;if(p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ke(lt,lt.current),l)break;return null;case 22:case 23:return t.lanes=0,Xs(e,t,o)}return ar(e,t,o)}function Of(e,t){switch(Ca(t),t.tag){case 1:return Tt(t.type)&&Fn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ii(),Ye(Et),Ye(St),La(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ka(t),null;case 13:if(Ye(lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(lt),null;case 4:return ii(),null;case 10:return kt(t.type._context),null;case 22:case 23:return ol(),null;case 24:return null;default:return null}}var Io=!1,Ur=!1,zf=typeof WeakSet=="function"?WeakSet:Set,de=null;function jo(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){nn(e,t,l)}else o.current=null}function Ga(e,t,o){try{o()}catch(l){nn(e,t,l)}}var iu=!1;function If(e,t){for(j(e.containerInfo),de=t;de!==null;)if(e=de,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,de=t;else for(;de!==null;){e=de;try{var o=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(o!==null){var l=o.memoizedProps,p=o.memoizedState,g=e.stateNode,E=g.getSnapshotBeforeUpdate(e.elementType===e.type?l:Xt(e.type,l),p);g.__reactInternalSnapshotBeforeUpdate=E}break;case 3:K&&Ln(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(U){nn(e,e.return,U)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return o=iu,iu=!1,o}function Rr(e,t,o){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&e)===e){var g=p.destroy;p.destroy=void 0,g!==void 0&&Ga(t,o,g)}p=p.next}while(p!==l)}}function Zi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var l=o.create;o.destroy=l()}o=o.next}while(o!==t)}}function Wa(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=ae(o);break;default:e=o}typeof t=="function"?t(e):t.current=e}}function ou(e,t,o){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(_r,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var l=e=e.next;do{var p=l,g=p.destroy;p=p.tag,g!==void 0&&(p&2||p&4)&&Ga(t,o,g),l=l.next}while(l!==e)}break;case 1:if(jo(t,o),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(E){nn(t,o,E)}break;case 5:jo(t,o);break;case 4:K?fu(e,t,o):$&&$&&(t=t.stateNode.containerInfo,o=Un(t),tt(t,o))}}function au(e,t,o){for(var l=t;;)if(ou(e,l,o),l.child===null||K&&l.tag===4){if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return;l=l.return}l.sibling.return=l.return,l=l.sibling}else l.child.return=l,l=l.child}function lu(e){var t=e.alternate;t!==null&&(e.alternate=null,lu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ke(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function su(e){return e.tag===5||e.tag===3||e.tag===4}function uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cu(e){if(K){e:{for(var t=e.return;t!==null;){if(su(t))break e;t=t.return}throw Error(s(160))}var o=t;switch(o.tag){case 5:t=o.stateNode,o.flags&32&&(Je(t),o.flags&=-33),o=uu(e),Va(e,o,t);break;case 3:case 4:t=o.stateNode.containerInfo,o=uu(e),Ha(e,o,t);break;default:throw Error(s(161))}}}function Ha(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?be(o,e,t):ze(o,e);else if(l!==4&&(e=e.child,e!==null))for(Ha(e,t,o),e=e.sibling;e!==null;)Ha(e,t,o),e=e.sibling}function Va(e,t,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?qe(o,e,t):Me(o,e);else if(l!==4&&(e=e.child,e!==null))for(Va(e,t,o),e=e.sibling;e!==null;)Va(e,t,o),e=e.sibling}function fu(e,t,o){for(var l=t,p=!1,g,E;;){if(!p){p=l.return;e:for(;;){if(p===null)throw Error(s(160));switch(g=p.stateNode,p.tag){case 5:E=!1;break e;case 3:g=g.containerInfo,E=!0;break e;case 4:g=g.containerInfo,E=!0;break e}p=p.return}p=!0}if(l.tag===5||l.tag===6)au(e,l,o),E?Qe(g,l.stateNode):Ue(g,l.stateNode);else if(l.tag===18)E?co(g,l.stateNode):ga(g,l.stateNode);else if(l.tag===4){if(l.child!==null){g=l.stateNode.containerInfo,E=!0,l.child.return=l,l=l.child;continue}}else if(ou(e,l,o),l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return;l=l.return,l.tag===4&&(p=!1)}l.sibling.return=l.return,l=l.sibling}}function Za(e,t){if(K){switch(t.tag){case 0:case 11:case 14:case 15:Rr(3,t,t.return),Zi(3,t),Rr(5,t,t.return);return;case 1:return;case 5:var o=t.stateNode;if(o!=null){var l=t.memoizedProps;e=e!==null?e.memoizedProps:l;var p=t.type,g=t.updateQueue;t.updateQueue=null,g!==null&&De(o,g,p,e,l,t)}return;case 6:if(t.stateNode===null)throw Error(s(162));o=t.memoizedProps,He(t.stateNode,e!==null?e.memoizedProps:o,o);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&xr(t.stateNode.containerInfo);return;case 12:return;case 13:bo(t);return;case 19:bo(t);return;case 17:return}throw Error(s(163))}switch(t.tag){case 0:case 11:case 14:case 15:Rr(3,t,t.return),Zi(3,t),Rr(5,t,t.return);return;case 12:return;case 13:bo(t);return;case 19:bo(t);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&xr(t.stateNode.containerInfo);break;case 22:case 23:return}e:if($){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:t=t.stateNode,tt(t.containerInfo,t.pendingChildren);break e}throw Error(s(163))}}function bo(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new zf),t.forEach(function(l){var p=Qf.bind(null,e,l);o.has(l)||(o.add(l),l.then(p,p))})}}function jf(e,t){for(de=t;de!==null;){t=de;var o=t.deletions;if(o!==null)for(var l=0;l";case No:return":has("+(Ya(e)||"")+")";case Go:return'[role="'+e.value+'"]';case Ho:return'"'+e.value+'"';case Wo:return'[data-testname="'+e.value+'"]';default:throw Error(s(365))}}function mu(e,t){var o=[];e=[e,0];for(var l=0;lp&&(p=E),l&=~g}if(l=p,l=at()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Bf(l/1960))-l,10e?16:e,pr===null)var l=!1;else{if(e=pr,pr=null,Yo=0,Be&6)throw Error(s(331));var p=Be;for(Be|=4,de=e.current;de!==null;){var g=de,E=g.child;if(de.flags&16){var U=g.deletions;if(U!==null){for(var V=0;Vat()-$a?Fr(e,0):qa|=o),tn(e,t)}function Tu(e,t){t===0&&(e.mode&1?(t=qn,qn<<=1,!(qn&130023424)&&(qn=4194304)):t=1);var o=Kt();e=qo(e,t),e!==null&&(bn(e,t,o),tn(e,o))}function Zf(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Tu(e,o)}function Qf(e,t){var o=0;switch(e.tag){case 13:var l=e.stateNode,p=e.memoizedState;p!==null&&(o=p.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(s(314))}l!==null&&l.delete(t),Tu(e,o)}var Mu;Mu=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)mn=!0;else{if(!(e.lanes&o)&&!(t.flags&128))return mn=!1,Df(e,t,o);mn=!!(e.flags&131072)}else mn=!1,ot&&t.flags&1048576&&ds(t,Co,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var p=yn(t,St.current);pt(t,o),p=Ra(null,t,l,e,p,o);var g=Fa();return t.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(l)?(g=!0,sr(t)):g=!1,t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,ya(t),p.updater=wo,t.stateNode=p,p._reactInternals=t,wa(t,l,e,o),t=ba(null,t,l,!0,g,o)):(t.tag=0,ot&&g&&Sa(t),Jt(null,t,p,o),t=t.child),t;case 16:l=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,p=l._init,l=p(l._payload),t.type=l,p=t.tag=Yf(l),e=Xt(l,e),p){case 0:t=ja(null,t,l,e,o);break e;case 1:t=Js(null,t,l,e,o);break e;case 11:t=Vs(null,t,l,e,o);break e;case 14:t=Zs(null,t,l,Xt(l.type,e),o);break e}throw Error(s(306,l,""))}return t;case 0:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),ja(e,t,l,p,o);case 1:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),Js(e,t,l,p,o);case 3:e:{if(Ks(t),e===null)throw Error(s(387));l=t.pendingProps,g=t.memoizedState,p=g.element,os(e,t),xo(t,l,null,o);var E=t.memoizedState;if(l=E.element,xe&&g.isDehydrated)if(g={element:l,isDehydrated:!1,cache:E.cache,transitions:E.transitions},t.updateQueue.baseState=g,t.memoizedState=g,t.flags&256){p=Error(s(423)),t=qs(e,t,l,o,p);break e}else if(l!==p){p=Error(s(424)),t=qs(e,t,l,o,p);break e}else for(xe&&(vn=Rt(t.stateNode.containerInfo),pn=t,ot=!0,Dn=null,Di=!1),o=ys(t,null,l,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ti(),l===p){t=ar(e,t,o);break e}Jt(e,t,l,o)}t=t.child}return t;case 5:return xs(t),e===null&&Ea(t),l=t.type,p=t.pendingProps,g=e!==null?e.memoizedProps:null,E=p.children,H(l,p)?E=null:g!==null&&H(l,g)&&(t.flags|=32),Ys(e,t),Jt(e,t,E,o),t.child;case 6:return e===null&&Ea(t),null;case 13:return $s(e,t,o);case 4:return Ma(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ni(t,null,l,o):Jt(e,t,l,o),t.child;case 11:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),Vs(e,t,l,p,o);case 7:return Jt(e,t,t.pendingProps,o),t.child;case 8:return Jt(e,t,t.pendingProps.children,o),t.child;case 12:return Jt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(l=t.type._context,p=t.pendingProps,g=t.memoizedProps,E=p.value,go(t,l,E),g!==null)if(dn(g.value,E)){if(g.children===p.children&&!Et.current){t=ar(e,t,o);break e}}else for(g=t.child,g!==null&&(g.return=t);g!==null;){var U=g.dependencies;if(U!==null){E=g.child;for(var V=U.firstContext;V!==null;){if(V.context===l){if(g.tag===1){V=nr(-1,o&-o),V.tag=2;var se=g.updateQueue;if(se!==null){se=se.shared;var ge=se.pending;ge===null?V.next=V:(V.next=ge.next,ge.next=V),se.pending=V}}g.lanes|=o,V=g.alternate,V!==null&&(V.lanes|=o),Yt(g.return,o,t),U.lanes|=o;break}V=V.next}}else if(g.tag===10)E=g.type===t.type?null:g.child;else if(g.tag===18){if(E=g.return,E===null)throw Error(s(341));E.lanes|=o,U=E.alternate,U!==null&&(U.lanes|=o),Yt(E,o,t),E=g.sibling}else E=g.child;if(E!==null)E.return=g;else for(E=g;E!==null;){if(E===t){E=null;break}if(g=E.sibling,g!==null){g.return=E.return,E=g;break}E=E.return}g=E}Jt(e,t,p.children,o),t=t.child}return t;case 9:return p=t.type,l=t.pendingProps.children,pt(t,o),p=vt(p),l=l(p),t.flags|=1,Jt(e,t,l,o),t.child;case 14:return l=t.type,p=Xt(l,t.pendingProps),p=Xt(l.type,p),Zs(e,t,l,p,o);case 15:return Qs(e,t,t.type,t.pendingProps,o);case 17:return l=t.type,p=t.pendingProps,p=t.elementType===l?p:Xt(l,p),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Tt(l)?(e=!0,sr(t)):e=!1,pt(t,o),cs(t,l,p),wa(t,l,p,o),ba(null,t,l,!0,e,o);case 19:return ru(e,t,o);case 22:return Xs(e,t,o)}throw Error(s(156,t.tag))};function ku(e,t){return tr(e,t)}function Xf(e,t,o,l){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tn(e,t,o,l){return new Xf(e,t,o,l)}function ll(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yf(e){if(typeof e=="function")return ll(e)?1:0;if(e!=null){if(e=e.$$typeof,e===T)return 11;if(e===w)return 14}return 2}function gr(e,t){var o=e.alternate;return o===null?(o=Tn(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function ea(e,t,o,l,p,g){var E=2;if(l=e,typeof e=="function")ll(e)&&(E=1);else if(typeof e=="string")E=5;else e:switch(e){case d:return Or(o.children,p,g,t);case m:E=8,p|=8;break;case y:return e=Tn(12,o,t,p|2),e.elementType=y,e.lanes=g,e;case S:return e=Tn(13,o,t,p),e.elementType=S,e.lanes=g,e;case _:return e=Tn(19,o,t,p),e.elementType=_,e.lanes=g,e;case D:return ta(o,p,g,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:E=10;break e;case C:E=9;break e;case T:E=11;break e;case w:E=14;break e;case M:E=16,l=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Tn(E,o,t,p),t.elementType=e,t.type=l,t.lanes=g,t}function Or(e,t,o,l){return e=Tn(7,e,l,t),e.lanes=o,e}function ta(e,t,o,l){return e=Tn(22,e,l,t),e.elementType=D,e.lanes=o,e.stateNode={},e}function sl(e,t,o){return e=Tn(6,e,null,t),e.lanes=o,e}function ul(e,t,o){return t=Tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jf(e,t,o,l,p){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yr(0),this.expirationTimes=Yr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yr(0),this.identifierPrefix=l,this.onRecoverableError=p,xe&&(this.mutableSourceEagerHydrationData=null)}function Pu(e,t,o,l,p,g,E,U,V){return e=new Jf(e,t,o,U,V),t===1?(t=1,g===!0&&(t|=8)):t=0,g=Tn(3,null,null,t),e.current=g,g.stateNode=e,g.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null},ya(g),e}function Lu(e){if(!e)return sn;e=e._reactInternals;e:{if(J(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var o=e.type;if(Tt(o))return Qr(e,o,t)}return t}function Uu(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=O(t),e===null?null:e.stateNode}function Ru(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o=se&&g>=Fe&&p<=ge&&E<=Le){e.splice(t,1);break}else if(l!==se||o.width!==V.width||LeE){if(!(g!==Fe||o.height!==V.height||gep)){se>l&&(V.width+=se-l,V.x=l),geg&&(V.height+=Fe-g,V.y=g),Leo&&(o=E)),E ")+`
-
-No matching component was found for:
- `)+e.join(" > ")}return null},c.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return ae(e.child.stateNode);default:return e.child.stateNode}},c.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:f.ReactCurrentDispatcher,findHostInstanceByFiber:Kf,findFiberByHostInstance:e.findFiberByHostInstance||qf,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{_r=t.inject(e),fn=t}catch{}e=!!t.checkDCE}}return e},c.isAlreadyRendering=function(){return!1},c.observeVisibleRects=function(e,t,o,l){if(!pe)throw Error(s(363));e=Ja(e,t);var p=Oe(e,o,l).disconnect;return{disconnect:function(){p()}}},c.registerMutableSourceForHydration=function(e,t){var o=t._getVersion;o=o(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,o]:e.mutableSourceEagerHydrationData.push(t,o)},c.runWithPriority=function(e,t){var o=Ne;try{return Ne=e,t()}finally{Ne=o}},c.shouldError=function(){return null},c.shouldSuspend=function(){return!1},c.updateContainer=function(e,t,o,l){var p=t.current,g=Kt(),E=vr(p);return o=Lu(o),t.context===null?t.context=o:t.pendingContext=o,t=nr(g,E),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),dr(p,t),e=En(p,E,g),e!==null&&yo(e,p,E),E},c};Lc.exports=Id;var jd=Lc.exports;const bd=Cc(jd),Bd=a=>typeof a=="object"&&typeof a.then=="function",jr=[];function Fc(a,n,c=(v,i)=>v===i){if(a===n)return!0;if(!a||!n)return!1;const v=a.length;if(n.length!==v)return!1;for(let i=0;i0&&(r.timeout&&clearTimeout(r.timeout),r.timeout=setTimeout(r.remove,v.lifespan)),r.response;if(!c)throw r.promise}const i={keys:n,equal:v.equal,remove:()=>{const r=jr.indexOf(i);r!==-1&&jr.splice(r,1)},promise:(Bd(a)?a:a(...n)).then(r=>{i.response=r,v.lifespan&&v.lifespan>0&&(i.timeout=setTimeout(i.remove,v.lifespan))}).catch(r=>i.error=r)};if(jr.push(i),!c)throw i.promise}const Nd=(a,n,c)=>Ac(a,n,!1,c),Gd=(a,n,c)=>void Ac(a,n,!0,c),Wd=a=>{if(a===void 0||a.length===0)jr.splice(0,jr.length);else{const n=jr.find(c=>Fc(a,c.keys,c.equal));n&&n.remove()}},Kl={},Hd=a=>void Object.assign(Kl,a);function Vd(a,n){function c(d,{args:m=[],attach:y,...x},C){let T=`${d[0].toUpperCase()}${d.slice(1)}`,S;if(d==="primitive"){if(x.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const _=x.object;S=di(_,{type:d,root:C,attach:y,primitive:!0})}else{const _=Kl[T];if(!_)throw new Error(`R3F: ${T} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(m))throw new Error("R3F: The args prop must be an array!");S=di(new _(...m),{type:d,root:C,attach:y,memoizedProps:{args:m}})}return S.__r3f.attach===void 0&&(S instanceof Ec?S.__r3f.attach="geometry":S instanceof sd&&(S.__r3f.attach="material")),T!=="inject"&&ml(S,x),S}function v(d,m){let y=!1;if(m){var x,C;(x=m.__r3f)!=null&&x.attach?vl(d,m,m.__r3f.attach):m.isObject3D&&d.isObject3D&&(d.add(m),y=!0),y||(C=d.__r3f)==null||C.objects.push(m),m.__r3f||di(m,{}),m.__r3f.parent=d,Ol(m),hi(m)}}function i(d,m,y){let x=!1;if(m){var C,T;if((C=m.__r3f)!=null&&C.attach)vl(d,m,m.__r3f.attach);else if(m.isObject3D&&d.isObject3D){m.parent=d,m.dispatchEvent({type:"added"});const S=d.children.filter(w=>w!==m),_=S.indexOf(y);d.children=[...S.slice(0,_),m,...S.slice(_)],x=!0}x||(T=d.__r3f)==null||T.objects.push(m),m.__r3f||di(m,{}),m.__r3f.parent=d,Ol(m),hi(m)}}function r(d,m,y=!1){d&&[...d].forEach(x=>s(m,x,y))}function s(d,m,y){if(m){var x,C,T;if(m.__r3f&&(m.__r3f.parent=null),(x=d.__r3f)!=null&&x.objects&&(d.__r3f.objects=d.__r3f.objects.filter(D=>D!==m)),(C=m.__r3f)!=null&&C.attach)Bu(d,m,m.__r3f.attach);else if(m.isObject3D&&d.isObject3D){var S;d.remove(m),(S=m.__r3f)!=null&&S.root&&e1(m.__r3f.root,m)}const w=(T=m.__r3f)==null?void 0:T.primitive,M=!w&&(y===void 0?m.dispose!==null:y);if(!w){var _;r((_=m.__r3f)==null?void 0:_.objects,m,M),r(m.children,m,M)}if(delete m.__r3f,M&&m.dispose&&m.type!=="Scene"){const D=()=>{try{m.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?Al.unstable_scheduleCallback(Al.unstable_IdlePriority,D):D()}hi(d)}}function f(d,m,y,x){var C;const T=(C=d.__r3f)==null?void 0:C.parent;if(!T)return;const S=c(m,y,d.__r3f.root);if(d.children){for(const _ of d.children)_.__r3f&&v(S,_);d.children=d.children.filter(_=>!_.__r3f)}d.__r3f.objects.forEach(_=>v(S,_)),d.__r3f.objects=[],d.__r3f.autoRemovedBeforeAppend||s(T,d),S.parent&&(S.__r3f.autoRemovedBeforeAppend=!0),v(T,S),S.raycast&&S.__r3f.eventCount&&S.__r3f.root.getState().internal.interaction.push(S),[x,x.alternate].forEach(_=>{_!==null&&(_.stateNode=S,_.ref&&(typeof _.ref=="function"?_.ref(S):_.ref.current=S))})}const u=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:bd({createInstance:c,removeChild:s,appendChild:v,appendInitialChild:v,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(d,m)=>{if(!m)return;const y=d.getState().scene;y.__r3f&&(y.__r3f.root=d,v(y,m))},removeChildFromContainer:(d,m)=>{m&&s(d.getState().scene,m)},insertInContainerBefore:(d,m,y)=>{if(!m||!y)return;const x=d.getState().scene;x.__r3f&&i(x,m,y)},getRootHostContext:()=>null,getChildHostContext:d=>d,finalizeInitialChildren(d){var m;return!!((m=d==null?void 0:d.__r3f)!=null?m:{}).handlers},prepareUpdate(d,m,y,x){var C;if(((C=d==null?void 0:d.__r3f)!=null?C:{}).primitive&&x.object&&x.object!==d)return[!0];{const{args:S=[],children:_,...w}=x,{args:M=[],children:D,...R}=y;if(!Array.isArray(S))throw new Error("R3F: the args prop must be an array!");if(S.some((b,B)=>b!==M[B]))return[!0];const A=Bc(d,w,R,!0);return A.changes.length?[!1,A]:null}},commitUpdate(d,[m,y],x,C,T,S){m?f(d,x,T,S):ml(d,y)},commitMount(d,m,y,x){var C;const T=(C=d.__r3f)!=null?C:{};d.raycast&&T.handlers&&T.eventCount&&d.__r3f.root.getState().internal.interaction.push(d)},getPublicInstance:d=>d,prepareForCommit:()=>null,preparePortalMount:d=>di(d.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(d){var m;const{attach:y,parent:x}=(m=d.__r3f)!=null?m:{};y&&x&&Bu(x,d,y),d.isObject3D&&(d.visible=!1),hi(d)},unhideInstance(d,m){var y;const{attach:x,parent:C}=(y=d.__r3f)!=null?y:{};x&&C&&vl(C,d,x),(d.isObject3D&&m.visible==null||m.visible)&&(d.visible=!0),hi(d)},createTextInstance:u,hideTextInstance:u,unhideTextInstance:u,getCurrentEventPriority:()=>n?n():vi.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&nt.fun(performance.now)?performance.now:nt.fun(Date.now)?Date.now:()=>0,scheduleTimeout:nt.fun(setTimeout)?setTimeout:void 0,cancelTimeout:nt.fun(clearTimeout)?clearTimeout:void 0}),applyProps:ml}}var zu,Iu;const pl=a=>"colorSpace"in a||"outputColorSpace"in a,Dc=()=>{var a;return(a=Kl.ColorManagement)!=null?a:null},Oc=a=>a&&a.isOrthographicCamera,Zd=a=>a&&a.hasOwnProperty("current"),Si=typeof window<"u"&&((zu=window.document)!=null&&zu.createElement||((Iu=window.navigator)==null?void 0:Iu.product)==="ReactNative")?P.useLayoutEffect:P.useEffect;function zc(a){const n=P.useRef(a);return Si(()=>void(n.current=a),[a]),n}function Qd({set:a}){return Si(()=>(a(new Promise(()=>null)),()=>a(!1)),[a]),null}class Ic extends P.Component{constructor(...n){super(...n),this.state={error:!1}}componentDidCatch(n){this.props.set(n)}render(){return this.state.error?null:this.props.children}}Ic.getDerivedStateFromError=()=>({error:!0});const jc="__default",ju=new Map,Xd=a=>a&&!!a.memoized&&!!a.changes;function bc(a){var n;const c=typeof window<"u"?(n=window.devicePixelRatio)!=null?n:2:1;return Array.isArray(a)?Math.min(Math.max(a[0],c),a[1]):a}const qi=a=>{var n;return(n=a.__r3f)==null?void 0:n.root.getState()},nt={obj:a=>a===Object(a)&&!nt.arr(a)&&typeof a!="function",fun:a=>typeof a=="function",str:a=>typeof a=="string",num:a=>typeof a=="number",boo:a=>typeof a=="boolean",und:a=>a===void 0,arr:a=>Array.isArray(a),equ(a,n,{arrays:c="shallow",objects:v="reference",strict:i=!0}={}){if(typeof a!=typeof n||!!a!=!!n)return!1;if(nt.str(a)||nt.num(a))return a===n;const r=nt.obj(a);if(r&&v==="reference")return a===n;const s=nt.arr(a);if(s&&c==="reference")return a===n;if((s||r)&&a===n)return!0;let f;for(f in a)if(!(f in n))return!1;if(r&&c==="shallow"&&v==="shallow"){for(f in i?n:a)if(!nt.equ(a[f],n[f],{strict:i,objects:"reference"}))return!1}else for(f in i?n:a)if(a[f]!==n[f])return!1;if(nt.und(f)){if(s&&a.length===0&&n.length===0||r&&Object.keys(a).length===0&&Object.keys(n).length===0)return!0;if(a!==n)return!1}return!0}};function Yd(a){const n={nodes:{},materials:{}};return a&&a.traverse(c=>{c.name&&(n.nodes[c.name]=c),c.material&&!n.materials[c.material.name]&&(n.materials[c.material.name]=c.material)}),n}function Jd(a){a.dispose&&a.type!=="Scene"&&a.dispose();for(const n in a)n.dispose==null||n.dispose(),delete a[n]}function di(a,n){const c=a;return c.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...n},a}function Dl(a,n){let c=a;if(n.includes("-")){const v=n.split("-"),i=v.pop();return c=v.reduce((r,s)=>r[s],a),{target:c,key:i}}else return{target:c,key:n}}const bu=/-\d+$/;function vl(a,n,c){if(nt.str(c)){if(bu.test(c)){const r=c.replace(bu,""),{target:s,key:f}=Dl(a,r);Array.isArray(s[f])||(s[f]=[])}const{target:v,key:i}=Dl(a,c);n.__r3f.previousAttach=v[i],v[i]=n}else n.__r3f.previousAttach=c(a,n)}function Bu(a,n,c){var v,i;if(nt.str(c)){const{target:r,key:s}=Dl(a,c),f=n.__r3f.previousAttach;f===void 0?delete r[s]:r[s]=f}else(v=n.__r3f)==null||v.previousAttach==null||v.previousAttach(a,n);(i=n.__r3f)==null||delete i.previousAttach}function Bc(a,{children:n,key:c,ref:v,...i},{children:r,key:s,ref:f,...u}={},h=!1){var d;const m=(d=a==null?void 0:a.__r3f)!=null?d:{},y=Object.entries(i),x=[];if(h){const T=Object.keys(u);for(let S=0;S{var _;if((_=a.__r3f)!=null&&_.primitive&&T==="object"||nt.equ(S,u[T]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(T))return x.push([T,S,!0,[]]);let w=[];T.includes("-")&&(w=T.split("-")),x.push([T,S,!1,w]);for(const M in i){const D=i[M];M.startsWith(`${T}-`)&&x.push([M,D,!1,M.split("-")])}});const C={...i};return m.memoizedProps&&m.memoizedProps.args&&(C.args=m.memoizedProps.args),m.memoizedProps&&m.memoizedProps.attach&&(C.attach=m.memoizedProps.attach),{memoized:C,changes:x}}const Kd=typeof process<"u"&&!1;function ml(a,n){var c,v,i;const r=(c=a.__r3f)!=null?c:{},s=r.root,f=(v=s==null||s.getState==null?void 0:s.getState())!=null?v:{},{memoized:u,changes:h}=Xd(n)?n:Bc(a,n),d=r.eventCount;a.__r3f&&(a.__r3f.memoizedProps=u);for(let y=0;yM[D],a),!(w&&w.set))){const[M,...D]=S.reverse();_=D.reverse().reduce((R,A)=>R[A],a),x=M}if(C===jc+"remove")if(_.constructor){let M=ju.get(_.constructor);M||(M=new _.constructor,ju.set(_.constructor,M)),C=M[x]}else C=0;if(T)C?r.handlers[x]=C:delete r.handlers[x],r.eventCount=Object.keys(r.handlers).length;else if(w&&w.set&&(w.copy||w instanceof fl)){if(Array.isArray(C))w.fromArray?w.fromArray(C):w.set(...C);else if(w.copy&&C&&C.constructor&&(Kd?w.constructor.name===C.constructor.name:w.constructor===C.constructor))w.copy(C);else if(C!==void 0){const M=w instanceof io;!M&&w.setScalar?w.setScalar(C):w instanceof fl&&C instanceof fl?w.mask=C.mask:w.set(C),!Dc()&&!f.linear&&M&&w.convertSRGBToLinear()}}else if(_[x]=C,_[x]instanceof Vl&&_[x].format===ad&&_[x].type===ld){const M=_[x];pl(M)&&pl(f.gl)?M.colorSpace=f.gl.outputColorSpace:M.encoding=f.gl.outputEncoding}hi(a)}if(r.parent&&f.internal&&a.raycast&&d!==r.eventCount){const y=f.internal.interaction.indexOf(a);y>-1&&f.internal.interaction.splice(y,1),r.eventCount&&f.internal.interaction.push(a)}return!(h.length===1&&h[0][0]==="onUpdate")&&h.length&&(i=a.__r3f)!=null&&i.parent&&Ol(a),a}function hi(a){var n,c;const v=(n=a.__r3f)==null||(c=n.root)==null||c.getState==null?void 0:c.getState();v&&v.internal.frames===0&&v.invalidate()}function Ol(a){a.onUpdate==null||a.onUpdate(a)}function qd(a,n){a.manual||(Oc(a)?(a.left=n.width/-2,a.right=n.width/2,a.top=n.height/2,a.bottom=n.height/-2):a.aspect=n.width/n.height,a.updateProjectionMatrix(),a.updateMatrixWorld())}function na(a){return(a.eventObject||a.object).uuid+"/"+a.index+a.instanceId}function $d(){var a;const n=typeof self<"u"&&self||typeof window<"u"&&window;if(!n)return vi.DefaultEventPriority;switch((a=n.event)==null?void 0:a.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return vi.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return vi.ContinuousEventPriority;default:return vi.DefaultEventPriority}}function Nc(a,n,c,v){const i=c.get(n);i&&(c.delete(n),c.size===0&&(a.delete(v),i.target.releasePointerCapture(v)))}function e1(a,n){const{internal:c}=a.getState();c.interaction=c.interaction.filter(v=>v!==n),c.initialHits=c.initialHits.filter(v=>v!==n),c.hovered.forEach((v,i)=>{(v.eventObject===n||v.object===n)&&c.hovered.delete(i)}),c.capturedMap.forEach((v,i)=>{Nc(c.capturedMap,n,v,i)})}function t1(a){function n(u){const{internal:h}=a.getState(),d=u.offsetX-h.initialClick[0],m=u.offsetY-h.initialClick[1];return Math.round(Math.sqrt(d*d+m*m))}function c(u){return u.filter(h=>["Move","Over","Enter","Out","Leave"].some(d=>{var m;return(m=h.__r3f)==null?void 0:m.handlers["onPointer"+d]}))}function v(u,h){const d=a.getState(),m=new Set,y=[],x=h?h(d.internal.interaction):d.internal.interaction;for(let _=0;_{const M=qi(_.object),D=qi(w.object);return!M||!D?_.distance-w.distance:D.events.priority-M.events.priority||_.distance-w.distance}).filter(_=>{const w=na(_);return m.has(w)?!1:(m.add(w),!0)});d.events.filter&&(T=d.events.filter(T,d));for(const _ of T){let w=_.object;for(;w;){var S;(S=w.__r3f)!=null&&S.eventCount&&y.push({..._,eventObject:w}),w=w.parent}}if("pointerId"in u&&d.internal.capturedMap.has(u.pointerId))for(let _ of d.internal.capturedMap.get(u.pointerId).values())m.has(na(_.intersection))||y.push(_.intersection);return y}function i(u,h,d,m){const y=a.getState();if(u.length){const x={stopped:!1};for(const C of u){const T=qi(C.object)||y,{raycaster:S,pointer:_,camera:w,internal:M}=T,D=new st(_.x,_.y,0).unproject(w),R=oe=>{var G,O;return(G=(O=M.capturedMap.get(oe))==null?void 0:O.has(C.eventObject))!=null?G:!1},A=oe=>{const G={intersection:C,target:h.target};M.capturedMap.has(oe)?M.capturedMap.get(oe).set(C.eventObject,G):M.capturedMap.set(oe,new Map([[C.eventObject,G]])),h.target.setPointerCapture(oe)},b=oe=>{const G=M.capturedMap.get(oe);G&&Nc(M.capturedMap,C.eventObject,G,oe)};let B={};for(let oe in h){let G=h[oe];typeof G!="function"&&(B[oe]=G)}let J={...C,...B,pointer:_,intersections:u,stopped:x.stopped,delta:d,unprojectedPoint:D,ray:S.ray,camera:w,stopPropagation(){const oe="pointerId"in h&&M.capturedMap.get(h.pointerId);if((!oe||oe.has(C.eventObject))&&(J.stopped=x.stopped=!0,M.hovered.size&&Array.from(M.hovered.values()).find(G=>G.eventObject===C.eventObject))){const G=u.slice(0,u.indexOf(C));r([...G,C])}},target:{hasPointerCapture:R,setPointerCapture:A,releasePointerCapture:b},currentTarget:{hasPointerCapture:R,setPointerCapture:A,releasePointerCapture:b},nativeEvent:h};if(m(J),x.stopped===!0)break}}return u}function r(u){const{internal:h}=a.getState();for(const d of h.hovered.values())if(!u.length||!u.find(m=>m.object===d.object&&m.index===d.index&&m.instanceId===d.instanceId)){const y=d.eventObject.__r3f,x=y==null?void 0:y.handlers;if(h.hovered.delete(na(d)),y!=null&&y.eventCount){const C={...d,intersections:u};x.onPointerOut==null||x.onPointerOut(C),x.onPointerLeave==null||x.onPointerLeave(C)}}}function s(u,h){for(let d=0;dr([]);case"onLostPointerCapture":return h=>{const{internal:d}=a.getState();"pointerId"in h&&d.capturedMap.has(h.pointerId)&&requestAnimationFrame(()=>{d.capturedMap.has(h.pointerId)&&(d.capturedMap.delete(h.pointerId),r([]))})}}return function(d){const{onPointerMissed:m,internal:y}=a.getState();y.lastEvent.current=d;const x=u==="onPointerMove",C=u==="onClick"||u==="onContextMenu"||u==="onDoubleClick",S=v(d,x?c:void 0),_=C?n(d):0;u==="onPointerDown"&&(y.initialClick=[d.offsetX,d.offsetY],y.initialHits=S.map(M=>M.eventObject)),C&&!S.length&&_<=2&&(s(d,y.interaction),m&&m(d)),x&&r(S);function w(M){const D=M.eventObject,R=D.__r3f,A=R==null?void 0:R.handlers;if(R!=null&&R.eventCount)if(x){if(A.onPointerOver||A.onPointerEnter||A.onPointerOut||A.onPointerLeave){const b=na(M),B=y.hovered.get(b);B?B.stopped&&M.stopPropagation():(y.hovered.set(b,M),A.onPointerOver==null||A.onPointerOver(M),A.onPointerEnter==null||A.onPointerEnter(M))}A.onPointerMove==null||A.onPointerMove(M)}else{const b=A[u];b?(!C||y.initialHits.includes(D))&&(s(d,y.interaction.filter(B=>!y.initialHits.includes(B))),b(M)):C&&y.initialHits.includes(D)&&s(d,y.interaction.filter(B=>!y.initialHits.includes(B)))}}i(S,d,_,w)}}return{handlePointer:f}}const Gc=a=>!!(a!=null&&a.render),Wc=P.createContext(null),n1=(a,n)=>{const c=zd((f,u)=>{const h=new st,d=new st,m=new st;function y(_=u().camera,w=d,M=u().size){const{width:D,height:R,top:A,left:b}=M,B=D/R;w instanceof st?m.copy(w):m.set(...w);const J=_.getWorldPosition(h).distanceTo(m);if(Oc(_))return{width:D/_.zoom,height:R/_.zoom,top:A,left:b,factor:1,distance:J,aspect:B};{const oe=_.fov*Math.PI/180,G=2*Math.tan(oe/2)*J,O=G*(D/R);return{width:O,height:G,top:A,left:b,factor:D/O,distance:J,aspect:B}}}let x;const C=_=>f(w=>({performance:{...w.performance,current:_}})),T=new Nr;return{set:f,get:u,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(_=1)=>a(u(),_),advance:(_,w)=>n(_,w,u()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new gd,pointer:T,mouse:T,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const _=u();x&&clearTimeout(x),_.performance.current!==_.performance.min&&C(_.performance.min),x=setTimeout(()=>C(u().performance.max),_.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:y},setEvents:_=>f(w=>({...w,events:{...w.events,..._}})),setSize:(_,w,M,D,R)=>{const A=u().camera,b={width:_,height:w,top:D||0,left:R||0,updateStyle:M};f(B=>({size:b,viewport:{...B.viewport,...y(A,d,b)}}))},setDpr:_=>f(w=>{const M=bc(_);return{viewport:{...w.viewport,dpr:M,initialDpr:w.viewport.initialDpr||M}}}),setFrameloop:(_="always")=>{const w=u().clock;w.stop(),w.elapsedTime=0,_!=="never"&&(w.start(),w.elapsedTime=0),f(()=>({frameloop:_}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:P.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(_,w,M)=>{const D=u().internal;return D.priority=D.priority+(w>0?1:0),D.subscribers.push({ref:_,priority:w,store:M}),D.subscribers=D.subscribers.sort((R,A)=>R.priority-A.priority),()=>{const R=u().internal;R!=null&&R.subscribers&&(R.priority=R.priority-(w>0?1:0),R.subscribers=R.subscribers.filter(A=>A.ref!==_))}}}}}),v=c.getState();let i=v.size,r=v.viewport.dpr,s=v.camera;return c.subscribe(()=>{const{camera:f,size:u,viewport:h,gl:d,set:m}=c.getState();if(u.width!==i.width||u.height!==i.height||h.dpr!==r){var y;i=u,r=h.dpr,qd(f,u),d.setPixelRatio(h.dpr);const x=(y=u.updateStyle)!=null?y:typeof HTMLCanvasElement<"u"&&d.domElement instanceof HTMLCanvasElement;d.setSize(u.width,u.height,x)}f!==s&&(s=f,m(x=>({viewport:{...x.viewport,...x.viewport.getCurrentViewport(f)}})))}),c.subscribe(f=>a(f)),c};function ql(a,n){const c={callback:a};return n.add(c),()=>void n.delete(c)}let ra,Hc=new Set,Vc=new Set,Zc=new Set;const r1=a=>ql(a,Hc),i1=a=>ql(a,Vc),o1=a=>ql(a,Zc);function gl(a,n){if(a.size)for(const{callback:c}of a.values())c(n)}function $i(a,n){switch(a){case"before":return gl(Hc,n);case"after":return gl(Vc,n);case"tail":return gl(Zc,n)}}let yl,xl;function wl(a,n,c){let v=n.clock.getDelta();for(n.frameloop==="never"&&typeof a=="number"&&(v=a-n.clock.elapsedTime,n.clock.oldTime=n.clock.elapsedTime,n.clock.elapsedTime=a),yl=n.internal.subscribers,ra=0;ra0)&&!((h=i.gl.xr)!=null&&h.isPresenting)&&(c+=wl(u,i))}if($i("after",u),c===0)return $i("tail",u),n=!1,cancelAnimationFrame(v)}function s(u,h=1){var d;if(!u)return a.forEach(m=>s(m.store.getState()),h);(d=u.gl.xr)!=null&&d.isPresenting||!u.internal.active||u.frameloop==="never"||(u.internal.frames=Math.min(60,u.internal.frames+h),n||(n=!0,requestAnimationFrame(r)))}function f(u,h=!0,d,m){if(h&&$i("before",u),d)wl(u,d,m);else for(const y of a.values())wl(u,y.store.getState());h&&$i("after",u)}return{loop:r,invalidate:s,advance:f}}function fp(a){const n=P.useRef(null);return Si(()=>void(n.current=a.current.__r3f),[a]),n}function Qc(){const a=P.useContext(Wc);if(!a)throw new Error("R3F: Hooks can only be used within the Canvas component!");return a}function Ci(a=c=>c,n){return Qc()(a,n)}function ao(a,n=0){const c=Qc(),v=c.getState().internal.subscribe,i=zc(a);return Si(()=>v(i,n,c),[n,v,c]),null}const Nu=new WeakMap;function Xc(a,n){return function(c,...v){let i=Nu.get(c);return i||(i=new c,Nu.set(c,i)),a&&a(i),Promise.all(v.map(r=>new Promise((s,f)=>i.load(r,u=>{u.scene&&Object.assign(u,Yd(u.scene)),s(u)},n,u=>f(new Error(`Could not load ${r}: ${u==null?void 0:u.message}`)))))).finally(()=>i.dispose==null?void 0:i.dispose())}}function Yc(a,n,c,v){const i=Array.isArray(n)?n:[n],r=Nd(Xc(c,v),[a,...i],{equal:nt.equ});return Array.isArray(n)?r:r[0]}Yc.preload=function(a,n,c){const v=Array.isArray(n)?n:[n];return Gd(Xc(c),[a,...v])};Yc.clear=function(a,n){const c=Array.isArray(n)?n:[n];return Wd([a,...c])};const wi=new Map,{invalidate:Gu,advance:Wu}=a1(wi),{reconciler:ha,applyProps:ui}=Vd(wi,$d),ci={objects:"shallow",strict:!1},l1=(a,n)=>{const c=typeof a=="function"?a(n):a;return Gc(c)?c:new dd({powerPreference:"high-performance",canvas:n,antialias:!0,alpha:!0,...a})};function s1(a,n){const c=typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement;if(n){const{width:v,height:i,top:r,left:s,updateStyle:f=c}=n;return{width:v,height:i,top:r,left:s,updateStyle:f}}else if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement&&a.parentElement){const{width:v,height:i,top:r,left:s}=a.parentElement.getBoundingClientRect();return{width:v,height:i,top:r,left:s,updateStyle:c}}else if(typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas)return{width:a.width,height:a.height,top:0,left:0,updateStyle:c};return{width:0,height:0,top:0,left:0}}function u1(a){const n=wi.get(a),c=n==null?void 0:n.fiber,v=n==null?void 0:n.store;n&&console.warn("R3F.createRoot should only be called once!");const i=typeof reportError=="function"?reportError:console.error,r=v||n1(Gu,Wu),s=c||ha.createContainer(r,vi.ConcurrentRoot,null,!1,null,"",i,null);n||wi.set(a,{fiber:s,store:r});let f,u=!1,h;return{configure(d={}){let{gl:m,size:y,scene:x,events:C,onCreated:T,shadows:S=!1,linear:_=!1,flat:w=!1,legacy:M=!1,orthographic:D=!1,frameloop:R="always",dpr:A=[1,2],performance:b,raycaster:B,camera:J,onPointerMissed:oe}=d,G=r.getState(),O=G.gl;G.gl||G.set({gl:O=l1(m,a)});let ee=G.raycaster;ee||G.set({raycaster:ee=new ud});const{params:q,...ne}=B||{};if(nt.equ(ne,ee,ci)||ui(ee,{...ne}),nt.equ(q,ee.params,ci)||ui(ee,{params:{...ee.params,...q}}),!G.camera||G.camera===h&&!nt.equ(h,J,ci)){h=J;const I=J instanceof hd,Q=I?J:D?new Zl(0,0,0,0,.1,1e3):new Ql(75,0,.1,1e3);I||(Q.position.z=5,J&&ui(Q,J),!G.camera&&!(J!=null&&J.rotation)&&Q.lookAt(0,0,0)),G.set({camera:Q}),ee.camera=Q}if(!G.scene){let I;x instanceof da?I=x:(I=new da,x&&ui(I,x)),G.set({scene:di(I)})}if(!G.xr){var ae;const I=(H,re)=>{const X=r.getState();X.frameloop!=="never"&&Wu(H,!0,X,re)},Q=()=>{const H=r.getState();H.gl.xr.enabled=H.gl.xr.isPresenting,H.gl.xr.setAnimationLoop(H.gl.xr.isPresenting?I:null),H.gl.xr.isPresenting||Gu(H)},Y={connect(){const H=r.getState().gl;H.xr.addEventListener("sessionstart",Q),H.xr.addEventListener("sessionend",Q)},disconnect(){const H=r.getState().gl;H.xr.removeEventListener("sessionstart",Q),H.xr.removeEventListener("sessionend",Q)}};typeof((ae=O.xr)==null?void 0:ae.addEventListener)=="function"&&Y.connect(),G.set({xr:Y})}if(O.shadowMap){const I=O.shadowMap.enabled,Q=O.shadowMap.type;if(O.shadowMap.enabled=!!S,nt.boo(S))O.shadowMap.type=dl;else if(nt.str(S)){var ve;const Y={basic:pd,percentage:vd,soft:dl,variance:md};O.shadowMap.type=(ve=Y[S])!=null?ve:dl}else nt.obj(S)&&Object.assign(O.shadowMap,S);(I!==O.shadowMap.enabled||Q!==O.shadowMap.type)&&(O.shadowMap.needsUpdate=!0)}const Z=Dc();Z&&("enabled"in Z?Z.enabled=!M:"legacyMode"in Z&&(Z.legacyMode=M)),ui(O,{outputEncoding:_?3e3:3001,toneMapping:w?cd:fd}),G.legacy!==M&&G.set(()=>({legacy:M})),G.linear!==_&&G.set(()=>({linear:_})),G.flat!==w&&G.set(()=>({flat:w})),m&&!nt.fun(m)&&!Gc(m)&&!nt.equ(m,O,ci)&&ui(O,m),C&&!G.events.handlers&&G.set({events:C(r)});const k=s1(a,y);return nt.equ(k,G.size,ci)||G.setSize(k.width,k.height,k.updateStyle,k.top,k.left),A&&G.viewport.dpr!==bc(A)&&G.setDpr(A),G.frameloop!==R&&G.setFrameloop(R),G.onPointerMissed||G.set({onPointerMissed:oe}),b&&!nt.equ(b,G.performance,ci)&&G.set(I=>({performance:{...I.performance,...b}})),f=T,u=!0,this},render(d){return u||this.configure(),ha.updateContainer(P.createElement(c1,{store:r,children:d,onCreated:f,rootElement:a}),s,null,()=>{}),r},unmount(){Jc(a)}}}function c1({store:a,children:n,onCreated:c,rootElement:v}){return Si(()=>{const i=a.getState();i.set(r=>({internal:{...r.internal,active:!0}})),c&&c(i),a.getState().events.connected||i.events.connect==null||i.events.connect(v)},[]),P.createElement(Wc.Provider,{value:a},n)}function Jc(a,n){const c=wi.get(a),v=c==null?void 0:c.fiber;if(v){const i=c==null?void 0:c.store.getState();i&&(i.internal.active=!1),ha.updateContainer(null,v,null,()=>{i&&setTimeout(()=>{try{var r,s,f,u;i.events.disconnect==null||i.events.disconnect(),(r=i.gl)==null||(s=r.renderLists)==null||s.dispose==null||s.dispose(),(f=i.gl)==null||f.forceContextLoss==null||f.forceContextLoss(),(u=i.gl)!=null&&u.xr&&i.xr.disconnect(),Jd(i),wi.delete(a),n&&n(a)}catch{}},500)})}}ha.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:P.version});function zl(a,n,c){var v,i,r,s,f;n==null&&(n=100);function u(){var d=Date.now()-s;d=0?v=setTimeout(u,n-d):(v=null,c||(f=a.apply(r,i),r=i=null))}var h=function(){r=this,i=arguments,s=Date.now();var d=c&&!v;return v||(v=setTimeout(u,n)),d&&(f=a.apply(r,i),r=i=null),f};return h.clear=function(){v&&(clearTimeout(v),v=null)},h.flush=function(){v&&(f=a.apply(r,i),r=i=null,clearTimeout(v),v=null)},h}zl.debounce=zl;var f1=zl;const Hu=Cc(f1);function d1(a){let{debounce:n,scroll:c,polyfill:v,offsetSize:i}=a===void 0?{debounce:0,scroll:!1,offsetSize:!1}:a;const r=v||(typeof window>"u"?class{}:window.ResizeObserver);if(!r)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,f]=P.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=P.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),h=n?typeof n=="number"?n:n.scroll:null,d=n?typeof n=="number"?n:n.resize:null,m=P.useRef(!1);P.useEffect(()=>(m.current=!0,()=>void(m.current=!1)));const[y,x,C]=P.useMemo(()=>{const w=()=>{if(!u.current.element)return;const{left:M,top:D,width:R,height:A,bottom:b,right:B,x:J,y:oe}=u.current.element.getBoundingClientRect(),G={left:M,top:D,width:R,height:A,bottom:b,right:B,x:J,y:oe};u.current.element instanceof HTMLElement&&i&&(G.height=u.current.element.offsetHeight,G.width=u.current.element.offsetWidth),Object.freeze(G),m.current&&!m1(u.current.lastBounds,G)&&f(u.current.lastBounds=G)};return[w,d?Hu(w,d):w,h?Hu(w,h):w]},[f,i,h,d]);function T(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(w=>w.removeEventListener("scroll",C,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function S(){u.current.element&&(u.current.resizeObserver=new r(C),u.current.resizeObserver.observe(u.current.element),c&&u.current.scrollContainers&&u.current.scrollContainers.forEach(w=>w.addEventListener("scroll",C,{capture:!0,passive:!0})))}const _=w=>{!w||w===u.current.element||(T(),u.current.element=w,u.current.scrollContainers=Kc(w),S())};return p1(C,!!c),h1(x),P.useEffect(()=>{T(),S()},[c,C,x]),P.useEffect(()=>T,[]),[_,s,y]}function h1(a){P.useEffect(()=>{const n=a;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[a])}function p1(a,n){P.useEffect(()=>{if(n){const c=a;return window.addEventListener("scroll",c,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",c,!0)}},[a,n])}function Kc(a){const n=[];if(!a||a===document.body)return n;const{overflow:c,overflowX:v,overflowY:i}=window.getComputedStyle(a);return[c,v,i].some(r=>r==="auto"||r==="scroll")&&n.push(a),[...n,...Kc(a.parentElement)]}const v1=["x","y","top","bottom","left","right","width","height"],m1=(a,n)=>v1.every(c=>a[c]===n[c]);var g1=Object.defineProperty,y1=Object.defineProperties,x1=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,w1=Object.prototype.hasOwnProperty,S1=Object.prototype.propertyIsEnumerable,Zu=(a,n,c)=>n in a?g1(a,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[n]=c,Qu=(a,n)=>{for(var c in n||(n={}))w1.call(n,c)&&Zu(a,c,n[c]);if(Vu)for(var c of Vu(n))S1.call(n,c)&&Zu(a,c,n[c]);return a},C1=(a,n)=>y1(a,x1(n));function qc(a,n,c){if(!a)return;if(c(a)===!0)return a;let v=n?a.return:a.child;for(;v;){const i=qc(v,n,c);if(i)return i;v=n?null:v.sibling}}function $c(a){try{return Object.defineProperties(a,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return a}}const $l=$c(P.createContext(null));class ef extends P.Component{render(){return P.createElement($l.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:Xu,ReactCurrentDispatcher:Yu}=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _1(){const a=P.useContext($l);if(a===null)throw new Error("its-fine: useFiber must be called within a !");const n=P.useId();return P.useMemo(()=>{for(const v of[Xu==null?void 0:Xu.current,a,a==null?void 0:a.alternate]){if(!v)continue;const i=qc(v,!1,r=>{let s=r.memoizedState;for(;s;){if(s.memoizedState===n)return!0;s=s.next}});if(i)return i}},[a,n])}function E1(){var a,n;const c=_1(),[v]=P.useState(()=>new Map);v.clear();let i=c;for(;i;){const r=(a=i.type)==null?void 0:a._context;r&&r!==$l&&!v.has(r)&&v.set(r,(n=Yu==null?void 0:Yu.current)==null?void 0:n.readContext($c(r))),i=i.return}return v}function T1(){const a=E1();return P.useMemo(()=>Array.from(a.keys()).reduce((n,c)=>v=>P.createElement(n,null,P.createElement(c.Provider,C1(Qu({},v),{value:a.get(c)}))),n=>P.createElement(ef,Qu({},n))),[a])}const Sl={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function M1(a){const{handlePointer:n}=t1(a);return{priority:1,enabled:!0,compute(c,v,i){v.pointer.set(c.offsetX/v.size.width*2-1,-(c.offsetY/v.size.height)*2+1),v.raycaster.setFromCamera(v.pointer,v.camera)},connected:void 0,handlers:Object.keys(Sl).reduce((c,v)=>({...c,[v]:n(v)}),{}),update:()=>{var c;const{events:v,internal:i}=a.getState();(c=i.lastEvent)!=null&&c.current&&v.handlers&&v.handlers.onPointerMove(i.lastEvent.current)},connect:c=>{var v;const{set:i,events:r}=a.getState();r.disconnect==null||r.disconnect(),i(s=>({events:{...s.events,connected:c}})),Object.entries((v=r.handlers)!=null?v:[]).forEach(([s,f])=>{const[u,h]=Sl[s];c.addEventListener(u,f,{passive:h})})},disconnect:()=>{const{set:c,events:v}=a.getState();if(v.connected){var i;Object.entries((i=v.handlers)!=null?i:[]).forEach(([r,s])=>{if(v&&v.connected instanceof HTMLElement){const[f]=Sl[r];v.connected.removeEventListener(f,s)}}),c(r=>({events:{...r.events,connected:void 0}}))}}}}const k1=P.forwardRef(function({children:n,fallback:c,resize:v,style:i,gl:r,events:s=M1,eventSource:f,eventPrefix:u,shadows:h,linear:d,flat:m,legacy:y,orthographic:x,frameloop:C,dpr:T,performance:S,raycaster:_,camera:w,scene:M,onPointerMissed:D,onCreated:R,...A},b){P.useMemo(()=>Hd(yd),[]);const B=T1(),[J,oe]=d1({scroll:!0,debounce:{scroll:50,resize:0},...v}),G=P.useRef(null),O=P.useRef(null);P.useImperativeHandle(b,()=>G.current);const ee=zc(D),[q,ne]=P.useState(!1),[ae,ve]=P.useState(!1);if(q)throw q;if(ae)throw ae;const Z=P.useRef(null);Si(()=>{const W=G.current;oe.width>0&&oe.height>0&&W&&(Z.current||(Z.current=u1(W)),Z.current.configure({gl:r,events:s,shadows:h,linear:d,flat:m,legacy:y,orthographic:x,frameloop:C,dpr:T,performance:S,raycaster:_,camera:w,scene:M,size:oe,onPointerMissed:(...k)=>ee.current==null?void 0:ee.current(...k),onCreated:k=>{k.events.connect==null||k.events.connect(f?Zd(f)?f.current:f:O.current),u&&k.setEvents({compute:(I,Q)=>{const Y=I[u+"X"],H=I[u+"Y"];Q.pointer.set(Y/Q.size.width*2-1,-(H/Q.size.height)*2+1),Q.raycaster.setFromCamera(Q.pointer,Q.camera)}}),R==null||R(k)}}),Z.current.render(P.createElement(B,null,P.createElement(Ic,{set:ve},P.createElement(P.Suspense,{fallback:P.createElement(Qd,{set:ne})},n)))))}),P.useEffect(()=>{const W=G.current;if(W)return()=>Jc(W)},[]);const j=f?"none":"auto";return P.createElement("div",yi({ref:O,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:j,...i}},A),P.createElement("div",{ref:J,style:{width:"100%",height:"100%"}},P.createElement("canvas",{ref:G,style:{display:"block"}},c)))}),P1=P.forwardRef(function(n,c){return P.createElement(ef,null,P.createElement(k1,yi({},n,{ref:c})))}),lo=new st,es=new st,L1=new st;function U1(a,n,c){const v=lo.setFromMatrixPosition(a.matrixWorld);v.project(n);const i=c.width/2,r=c.height/2;return[v.x*i+i,-(v.y*r)+r]}function R1(a,n){const c=lo.setFromMatrixPosition(a.matrixWorld),v=es.setFromMatrixPosition(n.matrixWorld),i=c.sub(v),r=n.getWorldDirection(L1);return i.angleTo(r)>Math.PI/2}function F1(a,n,c,v){const i=lo.setFromMatrixPosition(a.matrixWorld),r=i.clone();r.project(n),c.setFromCamera(r,n);const s=c.intersectObjects(v,!0);if(s.length){const f=s[0].distance;return i.distanceTo(c.ray.origin)Math.abs(a)<1e-10?0:a;function tf(a,n,c=""){let v="matrix3d(";for(let i=0;i!==16;i++)v+=Il(n[i]*a.elements[i])+(i!==15?",":")");return c+v}const O1=(a=>n=>tf(n,a))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),z1=(a=>(n,c)=>tf(n,a(c),"translate(-50%,-50%)"))(a=>[1/a,1/a,1/a,1,-1/a,-1/a,-1/a,-1,1/a,1/a,1/a,1,1,1,1,1]);function I1(a){return a&&typeof a=="object"&&"current"in a}const hp=P.forwardRef(({children:a,eps:n=.001,style:c,className:v,prepend:i,center:r,fullscreen:s,portal:f,distanceFactor:u,sprite:h=!1,transform:d=!1,occlude:m,onOcclude:y,castShadow:x,receiveShadow:C,material:T,geometry:S,zIndexRange:_=[16777271,0],calculatePosition:w=U1,as:M="div",wrapperClass:D,pointerEvents:R="auto",...A},b)=>{const{gl:B,camera:J,scene:oe,size:G,raycaster:O,events:ee,viewport:q}=Ci(),[ne]=P.useState(()=>document.createElement(M)),ae=P.useRef(),ve=P.useRef(null),Z=P.useRef(0),j=P.useRef([0,0]),W=P.useRef(null),k=P.useRef(null),I=(f==null?void 0:f.current)||ee.connected||B.domElement.parentNode,Q=P.useRef(null),Y=P.useRef(!1),H=P.useMemo(()=>m&&m!=="blending"||Array.isArray(m)&&m.length&&I1(m[0]),[m]);P.useLayoutEffect(()=>{const fe=B.domElement;m&&m==="blending"?(fe.style.zIndex=`${Math.floor(_[0]/2)}`,fe.style.position="absolute",fe.style.pointerEvents="none"):(fe.style.zIndex=null,fe.style.position=null,fe.style.pointerEvents=null)},[m]),P.useLayoutEffect(()=>{if(ve.current){const fe=ae.current=_c(ne);if(oe.updateMatrixWorld(),d)ne.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const K=w(ve.current,J,G);ne.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${K[0]}px,${K[1]}px,0);transform-origin:0 0;`}return I&&(i?I.prepend(ne):I.appendChild(ne)),()=>{I&&I.removeChild(ne),fe.unmount()}}},[I,d]),P.useLayoutEffect(()=>{D&&(ne.className=D)},[D]);const re=P.useMemo(()=>d?{position:"absolute",top:0,left:0,width:G.width,height:G.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:r?"translate3d(-50%,-50%,0)":"none",...s&&{top:-G.height/2,left:-G.width/2,width:G.width,height:G.height},...c},[c,r,s,G,d]),X=P.useMemo(()=>({position:"absolute",pointerEvents:R}),[R]);P.useLayoutEffect(()=>{if(Y.current=!1,d){var fe;(fe=ae.current)==null||fe.render(P.createElement("div",{ref:W,style:re},P.createElement("div",{ref:k,style:X},P.createElement("div",{ref:b,className:v,style:c,children:a}))))}else{var K;(K=ae.current)==null||K.render(P.createElement("div",{ref:b,style:re,className:v,children:a}))}});const te=P.useRef(!0);ao(fe=>{if(ve.current){J.updateMatrixWorld(),ve.current.updateWorldMatrix(!0,!1);const K=d?j.current:w(ve.current,J,G);if(d||Math.abs(Z.current-J.zoom)>n||Math.abs(j.current[0]-K[0])>n||Math.abs(j.current[1]-K[1])>n){const $=R1(ve.current,J);let xe=!1;H&&(m!=="blending"?xe=[oe]:Array.isArray(m)&&(xe=m.map(ke=>ke.current)));const Re=te.current;if(xe){const ke=F1(ve.current,J,O,xe);te.current=ke&&!$}else te.current=!$;Re!==te.current&&(y?y(!te.current):ne.style.display=te.current?"block":"none");const ce=Math.floor(_[0]/2),Se=m?H?[_[0],ce]:[ce-1,0]:_;if(ne.style.zIndex=`${D1(ve.current,J,Se)}`,d){const[ke,le]=[G.width/2,G.height/2],Ce=J.projectionMatrix.elements[5]*le,{isOrthographicCamera:pe,top:ie,left:Pe,bottom:ye,right:we}=J,me=O1(J.matrixWorldInverse),We=pe?`scale(${Ce})translate(${Il(-(we+Pe)/2)}px,${Il((ie+ye)/2)}px)`:`translateZ(${Ce}px)`;let Oe=ve.current.matrixWorld;h&&(Oe=J.matrixWorldInverse.clone().transpose().copyPosition(Oe).scale(ve.current.scale),Oe.elements[3]=Oe.elements[7]=Oe.elements[11]=0,Oe.elements[15]=1),ne.style.width=G.width+"px",ne.style.height=G.height+"px",ne.style.perspective=pe?"":`${Ce}px`,W.current&&k.current&&(W.current.style.transform=`${We}${me}translate(${ke}px,${le}px)`,k.current.style.transform=z1(Oe,1/((u||10)/400)))}else{const ke=u===void 0?1:A1(ve.current,J)*u;ne.style.transform=`translate3d(${K[0]}px,${K[1]}px,0) scale(${ke})`}j.current=K,Z.current=J.zoom}}if(!H&&Q.current&&!Y.current)if(d){if(W.current){const K=W.current.children[0];if(K!=null&&K.clientWidth&&K!=null&&K.clientHeight){const{isOrthographicCamera:$}=J;if($||S)A.scale&&(Array.isArray(A.scale)?A.scale instanceof st?Q.current.scale.copy(A.scale.clone().divideScalar(1)):Q.current.scale.set(1/A.scale[0],1/A.scale[1],1/A.scale[2]):Q.current.scale.setScalar(1/A.scale));else{const xe=(u||10)/400,Re=K.clientWidth*xe,ce=K.clientHeight*xe;Q.current.scale.set(Re,ce,1)}Y.current=!0}}}else{const K=ne.children[0];if(K!=null&&K.clientWidth&&K!=null&&K.clientHeight){const $=1/q.factor,xe=K.clientWidth*$,Re=K.clientHeight*$;Q.current.scale.set(xe,Re,1),Y.current=!0}Q.current.lookAt(fe.camera.position)}});const ue=P.useMemo(()=>({vertexShader:d?void 0:`
- /*
- This shader is from the THREE's SpriteMaterial.
- We need to turn the backing plane into a Sprite
- (make it always face the camera) if "transfrom"
- is false.
- */
- #include
-
- void main() {
- vec2 center = vec2(0., 1.);
- float rotation = 0.0;
-
- // This is somewhat arbitrary, but it seems to work well
- // Need to figure out how to derive this dynamically if it even matters
- float size = 0.03;
-
- vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
- vec2 scale;
- scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
- scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
-
- bool isPerspective = isPerspectiveMatrix( projectionMatrix );
- if ( isPerspective ) scale *= - mvPosition.z;
-
- vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale * size;
- vec2 rotatedPosition;
- rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
- rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
- mvPosition.xy += rotatedPosition;
-
- gl_Position = projectionMatrix * mvPosition;
- }
- `,fragmentShader:`
- void main() {
- gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
- }
- `}),[d]);return P.createElement("group",yi({},A,{ref:ve}),m&&!H&&P.createElement("mesh",{castShadow:x,receiveShadow:C,ref:Q},S||P.createElement("planeGeometry",null),T||P.createElement("shaderMaterial",{side:Xl,vertexShader:ue.vertexShader,fragmentShader:ue.fragmentShader})))});function pp(a){return function(n){a.forEach(function(c){typeof c=="function"?c(n):c!=null&&(c.current=n)})}}function j1(a){let n=0;for(let v in a.attributes){const i=a.getAttribute(v);n+=i.count*i.itemSize*i.array.BYTES_PER_ELEMENT}const c=a.getIndex();return n+=c?c.count*c.itemSize*c.array.BYTES_PER_ELEMENT:0,n}const Ju=new pa,ia=new st;class ts extends Tc{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const n=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],c=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],v=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(v),this.setAttribute("position",new Ul(n,3)),this.setAttribute("uv",new Ul(c,2))}applyMatrix4(n){const c=this.attributes.instanceStart,v=this.attributes.instanceEnd;return c!==void 0&&(c.applyMatrix4(n),v.applyMatrix4(n),c.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(n){let c;n instanceof Float32Array?c=n:Array.isArray(n)&&(c=new Float32Array(n));const v=new Rl(c,6,1);return this.setAttribute("instanceStart",new pi(v,3,0)),this.setAttribute("instanceEnd",new pi(v,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(n){let c;n instanceof Float32Array?c=n:Array.isArray(n)&&(c=new Float32Array(n));const v=new Rl(c,6,1);return this.setAttribute("instanceColorStart",new pi(v,3,0)),this.setAttribute("instanceColorEnd",new pi(v,3,3)),this}fromWireframeGeometry(n){return this.setPositions(n.attributes.position.array),this}fromEdgesGeometry(n){return this.setPositions(n.attributes.position.array),this}fromMesh(n){return this.fromWireframeGeometry(new xd(n.geometry)),this}fromLineSegments(n){const c=n.geometry;return this.setPositions(c.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new pa);const n=this.attributes.instanceStart,c=this.attributes.instanceEnd;n!==void 0&&c!==void 0&&(this.boundingBox.setFromBufferAttribute(n),Ju.setFromBufferAttribute(c),this.boundingBox.union(Ju))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Yl),this.boundingBox===null&&this.computeBoundingBox();const n=this.attributes.instanceStart,c=this.attributes.instanceEnd;if(n!==void 0&&c!==void 0){const v=this.boundingSphere.center;this.boundingBox.getCenter(v);let i=0;for(let r=0,s=n.count;r
- #include
- #include
- #include
- #include
-
- uniform float linewidth;
- uniform vec2 resolution;
-
- attribute vec3 instanceStart;
- attribute vec3 instanceEnd;
-
- attribute vec3 instanceColorStart;
- attribute vec3 instanceColorEnd;
-
- #ifdef WORLD_UNITS
-
- varying vec4 worldPos;
- varying vec3 worldStart;
- varying vec3 worldEnd;
-
- #ifdef USE_DASH
-
- varying vec2 vUv;
-
- #endif
-
- #else
-
- varying vec2 vUv;
-
- #endif
-
- #ifdef USE_DASH
-
- uniform float dashScale;
- attribute float instanceDistanceStart;
- attribute float instanceDistanceEnd;
- varying float vLineDistance;
-
- #endif
-
- void trimSegment( const in vec4 start, inout vec4 end ) {
-
- // trim end segment so it terminates between the camera plane and the near plane
-
- // conservative estimate of the near plane
- float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column
- float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column
- float nearEstimate = - 0.5 * b / a;
-
- float alpha = ( nearEstimate - start.z ) / ( end.z - start.z );
-
- end.xyz = mix( start.xyz, end.xyz, alpha );
-
- }
-
- void main() {
-
- #ifdef USE_COLOR
-
- vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;
-
- #endif
-
- #ifdef USE_DASH
-
- vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;
- vUv = uv;
-
- #endif
-
- float aspect = resolution.x / resolution.y;
-
- // camera space
- vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );
- vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );
-
- #ifdef WORLD_UNITS
-
- worldStart = start.xyz;
- worldEnd = end.xyz;
-
- #else
-
- vUv = uv;
-
- #endif
-
- // special case for perspective projection, and segments that terminate either in, or behind, the camera plane
- // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space
- // but we need to perform ndc-space calculations in the shader, so we must address this issue directly
- // perhaps there is a more elegant solution -- WestLangley
-
- bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column
-
- if ( perspective ) {
-
- if ( start.z < 0.0 && end.z >= 0.0 ) {
-
- trimSegment( start, end );
-
- } else if ( end.z < 0.0 && start.z >= 0.0 ) {
-
- trimSegment( end, start );
-
- }
-
- }
-
- // clip space
- vec4 clipStart = projectionMatrix * start;
- vec4 clipEnd = projectionMatrix * end;
-
- // ndc space
- vec3 ndcStart = clipStart.xyz / clipStart.w;
- vec3 ndcEnd = clipEnd.xyz / clipEnd.w;
-
- // direction
- vec2 dir = ndcEnd.xy - ndcStart.xy;
-
- // account for clip-space aspect ratio
- dir.x *= aspect;
- dir = normalize( dir );
-
- #ifdef WORLD_UNITS
-
- // get the offset direction as perpendicular to the view vector
- vec3 worldDir = normalize( end.xyz - start.xyz );
- vec3 offset;
- if ( position.y < 0.5 ) {
-
- offset = normalize( cross( start.xyz, worldDir ) );
-
- } else {
-
- offset = normalize( cross( end.xyz, worldDir ) );
-
- }
-
- // sign flip
- if ( position.x < 0.0 ) offset *= - 1.0;
-
- float forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) );
-
- // don't extend the line if we're rendering dashes because we
- // won't be rendering the endcaps
- #ifndef USE_DASH
-
- // extend the line bounds to encompass endcaps
- start.xyz += - worldDir * linewidth * 0.5;
- end.xyz += worldDir * linewidth * 0.5;
-
- // shift the position of the quad so it hugs the forward edge of the line
- offset.xy -= dir * forwardOffset;
- offset.z += 0.5;
-
- #endif
-
- // endcaps
- if ( position.y > 1.0 || position.y < 0.0 ) {
-
- offset.xy += dir * 2.0 * forwardOffset;
-
- }
-
- // adjust for linewidth
- offset *= linewidth * 0.5;
-
- // set the world position
- worldPos = ( position.y < 0.5 ) ? start : end;
- worldPos.xyz += offset;
-
- // project the worldpos
- vec4 clip = projectionMatrix * worldPos;
-
- // shift the depth of the projected points so the line
- // segments overlap neatly
- vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;
- clip.z = clipPose.z * clip.w;
-
- #else
-
- vec2 offset = vec2( dir.y, - dir.x );
- // undo aspect ratio adjustment
- dir.x /= aspect;
- offset.x /= aspect;
-
- // sign flip
- if ( position.x < 0.0 ) offset *= - 1.0;
-
- // endcaps
- if ( position.y < 0.0 ) {
-
- offset += - dir;
-
- } else if ( position.y > 1.0 ) {
-
- offset += dir;
-
- }
-
- // adjust for linewidth
- offset *= linewidth;
-
- // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...
- offset /= resolution.y;
-
- // select end
- vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;
-
- // back to clip space
- offset *= clip.w;
-
- clip.xy += offset;
-
- #endif
-
- gl_Position = clip;
-
- vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation
-
- #include
- #include
- #include
-
- }
- `,fragmentShader:`
- uniform vec3 diffuse;
- uniform float opacity;
- uniform float linewidth;
-
- #ifdef USE_DASH
-
- uniform float dashOffset;
- uniform float dashSize;
- uniform float gapSize;
-
- #endif
-
- varying float vLineDistance;
-
- #ifdef WORLD_UNITS
-
- varying vec4 worldPos;
- varying vec3 worldStart;
- varying vec3 worldEnd;
-
- #ifdef USE_DASH
-
- varying vec2 vUv;
-
- #endif
-
- #else
-
- varying vec2 vUv;
-
- #endif
-
- #include
- #include
- #include
- #include
- #include
-
- vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {
-
- float mua;
- float mub;
-
- vec3 p13 = p1 - p3;
- vec3 p43 = p4 - p3;
-
- vec3 p21 = p2 - p1;
-
- float d1343 = dot( p13, p43 );
- float d4321 = dot( p43, p21 );
- float d1321 = dot( p13, p21 );
- float d4343 = dot( p43, p43 );
- float d2121 = dot( p21, p21 );
-
- float denom = d2121 * d4343 - d4321 * d4321;
-
- float numer = d1343 * d4321 - d1321 * d4343;
-
- mua = numer / denom;
- mua = clamp( mua, 0.0, 1.0 );
- mub = ( d1343 + d4321 * ( mua ) ) / d4343;
- mub = clamp( mub, 0.0, 1.0 );
-
- return vec2( mua, mub );
-
- }
-
- void main() {
-
- #include
-
- #ifdef USE_DASH
-
- if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps
-
- if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX
-
- #endif
-
- float alpha = opacity;
-
- #ifdef WORLD_UNITS
-
- // Find the closest points on the view ray and the line segment
- vec3 rayEnd = normalize( worldPos.xyz ) * 1e5;
- vec3 lineDir = worldEnd - worldStart;
- vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );
-
- vec3 p1 = worldStart + lineDir * params.x;
- vec3 p2 = rayEnd * params.y;
- vec3 delta = p1 - p2;
- float len = length( delta );
- float norm = len / linewidth;
-
- #ifndef USE_DASH
-
- #ifdef USE_ALPHA_TO_COVERAGE
-
- float dnorm = fwidth( norm );
- alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );
-
- #else
-
- if ( norm > 0.5 ) {
-
- discard;
-
- }
-
- #endif
-
- #endif
-
- #else
-
- #ifdef USE_ALPHA_TO_COVERAGE
-
- // artifacts appear on some hardware if a derivative is taken within a conditional
- float a = vUv.x;
- float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
- float len2 = a * a + b * b;
- float dlen = fwidth( len2 );
-
- if ( abs( vUv.y ) > 1.0 ) {
-
- alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );
-
- }
-
- #else
-
- if ( abs( vUv.y ) > 1.0 ) {
-
- float a = vUv.x;
- float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
- float len2 = a * a + b * b;
-
- if ( len2 > 1.0 ) discard;
-
- }
-
- #endif
-
- #endif
-
- vec4 diffuseColor = vec4( diffuse, alpha );
-
- #include
- #include
-
- gl_FragColor = vec4( diffuseColor.rgb, alpha );
-
- #include
- #include <${parseInt(Sd.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}>
- #include
- #include
-
- }
- `,clipping:!0}),this.isLineMaterial=!0,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(c){this.uniforms.diffuse.value=c}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(c){c===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(c){this.uniforms.linewidth.value=c}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(c){!!c!="USE_DASH"in this.defines&&(this.needsUpdate=!0),c===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(c){this.uniforms.dashScale.value=c}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(c){this.uniforms.dashSize.value=c}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(c){this.uniforms.dashOffset.value=c}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(c){this.uniforms.gapSize.value=c}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(c){this.uniforms.opacity.value=c}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(c){this.uniforms.resolution.value.copy(c)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(c){!!c!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),c===!0?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(n)}}const Ku=new st,qu=new st,At=new xi,Dt=new xi,Vn=new xi,Cl=new st,_l=new Mc,Bt=new Cd,$u=new st,oa=new pa,aa=new Yl,Zn=new xi;let Qn,jl,rf,br;function ec(a,n,c){return Zn.set(0,0,-n,1).applyMatrix4(a.projectionMatrix),Zn.multiplyScalar(1/Zn.w),Zn.x=br/c.width,Zn.y=br/c.height,Zn.applyMatrix4(a.projectionMatrixInverse),Zn.multiplyScalar(1/Zn.w),Math.abs(Math.max(Zn.x,Zn.y))}function b1(a,n){for(let c=0,v=jl.count;cd&&Dt.z>d)continue;if(At.z>d){const w=At.z-Dt.z,M=(At.z-d)/w;At.lerp(Dt,M)}else if(Dt.z>d){const w=Dt.z-At.z,M=(Dt.z-d)/w;Dt.lerp(At,M)}At.applyMatrix4(v),Dt.applyMatrix4(v),At.multiplyScalar(1/At.w),Dt.multiplyScalar(1/Dt.w),At.x*=r.x/2,At.y*=r.y/2,Dt.x*=r.x/2,Dt.y*=r.y/2,Bt.start.copy(At),Bt.start.z=0,Bt.end.copy(Dt),Bt.end.z=0;const C=Bt.closestPointToPointParameter(Cl,!0);Bt.at(C,$u);const T=kc.lerp(At.z,Dt.z,C),S=T>=-1&&T<=1,_=Cl.distanceTo($u)
C.size),m=P.useMemo(()=>s?new of:new N1,[s]),[y]=P.useState(()=>new ns),x=P.useMemo(()=>{const C=s?new ts:new nf,T=n.map(S=>{const _=Array.isArray(S);return S instanceof st?[S.x,S.y,S.z]:S instanceof Nr?[S.x,S.y,0]:_&&S.length===3?[S[0],S[1],S[2]]:_&&S.length===2?[S[0],S[1],0]:S});if(C.setPositions(T.flat()),v){const S=v.map(_=>_ instanceof io?_.toArray():_);C.setColors(S.flat())}return C},[n,s,v]);return P.useLayoutEffect(()=>{m.computeLineDistances()},[n,m]),P.useLayoutEffect(()=>{f?y.defines.USE_DASH="":delete y.defines.USE_DASH,y.needsUpdate=!0},[f,y]),P.useEffect(()=>()=>x.dispose(),[x]),P.createElement("primitive",yi({object:m,ref:h},u),P.createElement("primitive",{object:x,attach:"geometry"}),P.createElement("primitive",yi({object:y,attach:"material",color:c,vertexColors:!!v,resolution:[d.width,d.height],linewidth:i??r,dashed:f},u)))});function G1(){var a=Object.create(null);function n(i,r){var s=i.id,f=i.name,u=i.dependencies;u===void 0&&(u=[]);var h=i.init;h===void 0&&(h=function(){});var d=i.getTransferables;if(d===void 0&&(d=null),!a[s])try{u=u.map(function(y){return y&&y.isWorkerModule&&(n(y,function(x){if(x instanceof Error)throw x}),y=a[y.id].value),y}),h=v("<"+f+">.init",h),d&&(d=v("<"+f+">.getTransferables",d));var m=null;typeof h=="function"?m=h.apply(void 0,u):console.error("worker module init function failed to rehydrate"),a[s]={id:s,value:m,getTransferables:d},r(m)}catch(y){y&&y.noLog||console.error(y),r(y)}}function c(i,r){var s,f=i.id,u=i.args;(!a[f]||typeof a[f].value!="function")&&r(new Error("Worker module "+f+": not found or its 'init' did not return a function"));try{var h=(s=a[f]).value.apply(s,u);h&&typeof h.then=="function"?h.then(d,function(m){return r(m instanceof Error?m:new Error(""+m))}):d(h)}catch(m){r(m)}function d(m){try{var y=a[f].getTransferables&&a[f].getTransferables(m);(!y||!Array.isArray(y)||!y.length)&&(y=void 0),r(m,y)}catch(x){console.error(x),r(x)}}}function v(i,r){var s=void 0;self.troikaDefine=function(u){return s=u};var f=URL.createObjectURL(new Blob(["/** "+i.replace(/\*/g,"")+` **/
-
-troikaDefine(
-`+r+`
-)`],{type:"application/javascript"}));try{importScripts(f)}catch(u){console.error(u)}return URL.revokeObjectURL(f),delete self.troikaDefine,s}self.addEventListener("message",function(i){var r=i.data,s=r.messageId,f=r.action,u=r.data;try{f==="registerModule"&&n(u,function(h){h instanceof Error?postMessage({messageId:s,success:!1,error:h.message}):postMessage({messageId:s,success:!0,result:{isCallable:typeof h=="function"}})}),f==="callModule"&&c(u,function(h,d){h instanceof Error?postMessage({messageId:s,success:!1,error:h.message}):postMessage({messageId:s,success:!0,result:h},d||void 0)})}catch(h){postMessage({messageId:s,success:!1,error:h.stack})}})}function W1(a){var n=function(){for(var c=[],v=arguments.length;v--;)c[v]=arguments[v];return n._getInitResult().then(function(i){if(typeof i=="function")return i.apply(void 0,c);throw new Error("Worker module function was called but `init` did not return a callable function")})};return n._getInitResult=function(){var c=a.dependencies,v=a.init;c=Array.isArray(c)?c.map(function(r){return r&&r._getInitResult?r._getInitResult():r}):[];var i=Promise.all(c).then(function(r){return v.apply(null,r)});return n._getInitResult=function(){return i},i},n}var af=function(){var a=!1;if(typeof window<"u"&&typeof window.document<"u")try{var n=new Worker(URL.createObjectURL(new Blob([""],{type:"application/javascript"})));n.terminate(),a=!0}catch(c){typeof process<"u",console.log("Troika createWorkerModule: web workers not allowed; falling back to main thread execution. Cause: ["+c.message+"]")}return af=function(){return a},a},H1=0,V1=0,El=!1,no=Object.create(null),ro=Object.create(null),bl=Object.create(null);function so(a){if((!a||typeof a.init!="function")&&!El)throw new Error("requires `options.init` function");var n=a.dependencies,c=a.init,v=a.getTransferables,i=a.workerId;if(!af())return W1(a);i==null&&(i="#default");var r="workerModule"+ ++H1,s=a.name||r,f=null;n=n&&n.map(function(h){return typeof h=="function"&&!h.workerModuleData&&(El=!0,h=so({workerId:i,name:"<"+s+"> function dependency: "+h.name,init:`function(){return (
-`+ca(h)+`
-)}`}),El=!1),h&&h.workerModuleData&&(h=h.workerModuleData),h});function u(){for(var h=[],d=arguments.length;d--;)h[d]=arguments[d];if(!f){f=tc(i,"registerModule",u.workerModuleData);var m=function(){f=null,ro[i].delete(m)};(ro[i]||(ro[i]=new Set)).add(m)}return f.then(function(y){var x=y.isCallable;if(x)return tc(i,"callModule",{id:r,args:h});throw new Error("Worker module function was called but `init` did not return a callable function")})}return u.workerModuleData={isWorkerModule:!0,id:r,name:s,dependencies:n,init:ca(c),getTransferables:v&&ca(v)},u}function Z1(a){ro[a]&&ro[a].forEach(function(n){n()}),no[a]&&(no[a].terminate(),delete no[a])}function ca(a){var n=a.toString();return!/^function/.test(n)&&/^\w+\s*\(/.test(n)&&(n="function "+n),n}function Q1(a){var n=no[a];if(!n){var c=ca(G1);n=no[a]=new Worker(URL.createObjectURL(new Blob(["/** Worker Module Bootstrap: "+a.replace(/\*/g,"")+` **/
-
-;(`+c+")()"],{type:"application/javascript"}))),n.onmessage=function(v){var i=v.data,r=i.messageId,s=bl[r];if(!s)throw new Error("WorkerModule response with empty or unknown messageId");delete bl[r],s(i)}}return n}function tc(a,n,c){return new Promise(function(v,i){var r=++V1;bl[r]=function(s){s.success?v(s.result):i(new Error("Error in worker "+n+" call: "+s.error))},Q1(a).postMessage({messageId:r,action:n,data:c})})}function lf(){var a=function(n){function c(j,W,k,I,Q,Y,H,re){var X=1-H;re.x=X*X*j+2*X*H*k+H*H*Q,re.y=X*X*W+2*X*H*I+H*H*Y}function v(j,W,k,I,Q,Y,H,re,X,te){var ue=1-X;te.x=ue*ue*ue*j+3*ue*ue*X*k+3*ue*X*X*Q+X*X*X*H,te.y=ue*ue*ue*W+3*ue*ue*X*I+3*ue*X*X*Y+X*X*X*re}function i(j,W){for(var k=/([MLQCZ])([^MLQCZ]*)/g,I,Q,Y,H,re;I=k.exec(j);){var X=I[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(te){return parseFloat(te)});switch(I[1]){case"M":H=Q=X[0],re=Y=X[1];break;case"L":(X[0]!==H||X[1]!==re)&&W("L",H,re,H=X[0],re=X[1]);break;case"Q":{W("Q",H,re,H=X[2],re=X[3],X[0],X[1]);break}case"C":{W("C",H,re,H=X[4],re=X[5],X[0],X[1],X[2],X[3]);break}case"Z":(H!==Q||re!==Y)&&W("L",H,re,Q,Y);break}}}function r(j,W,k){k===void 0&&(k=16);var I={x:0,y:0};i(j,function(Q,Y,H,re,X,te,ue,fe,K){switch(Q){case"L":W(Y,H,re,X);break;case"Q":{for(var $=Y,xe=H,Re=1;Re0;)Oe[Me]=arguments[Me+2];var ze=pe[We]||(pe[We]=k.getUniformLocation(ie,We));k["uniform"+me].apply(k,[ze].concat(Oe))},setAttribute:function(me,We,Oe,Me,ze){var He=Ce[me];He||(He=Ce[me]={buf:k.createBuffer(),loc:k.getAttribLocation(ie,me),data:null}),k.bindBuffer(k.ARRAY_BUFFER,He.buf),k.vertexAttribPointer(He.loc,We,k.FLOAT,!1,0,0),k.enableVertexAttribArray(He.loc),Q?k.vertexAttribDivisor(He.loc,Me):ue("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(He.loc,Me),ze!==He.data&&(k.bufferData(k.ARRAY_BUFFER,ze,Oe),He.data=ze)}})}}}H[ce].transaction(le)},$=function(ce,Se){X++;try{k.activeTexture(k.TEXTURE0+X);var ke=re[ce];ke||(ke=re[ce]=k.createTexture(),k.bindTexture(k.TEXTURE_2D,ke),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST)),k.bindTexture(k.TEXTURE_2D,ke),Se(ke,X)}finally{X--}},xe=function(ce,Se,ke){var le=k.createFramebuffer();te.push(le),k.bindFramebuffer(k.FRAMEBUFFER,le),k.activeTexture(k.TEXTURE0+Se),k.bindTexture(k.TEXTURE_2D,ce),k.framebufferTexture2D(k.FRAMEBUFFER,k.COLOR_ATTACHMENT0,k.TEXTURE_2D,ce,0);try{ke(le)}finally{k.deleteFramebuffer(le),k.bindFramebuffer(k.FRAMEBUFFER,te[--te.length-1]||null)}},Re=function(){Y={},H={},re={},X=-1,te.length=0};var Q=typeof WebGL2RenderingContext<"u"&&k instanceof WebGL2RenderingContext,Y={},H={},re={},X=-1,te=[];k.canvas.addEventListener("webglcontextlost",function(ce){Re(),ce.preventDefault()},!1),u.set(k,I={gl:k,isWebGL2:Q,getExtension:ue,withProgram:K,withTexture:$,withTextureFramebuffer:xe,handleContextLoss:Re})}W(I)}function m(j,W,k,I,Q,Y,H,re){H===void 0&&(H=15),re===void 0&&(re=null),d(j,function(X){var te=X.gl,ue=X.withProgram,fe=X.withTexture;fe("copy",function(K,$){te.texImage2D(te.TEXTURE_2D,0,te.RGBA,Q,Y,0,te.RGBA,te.UNSIGNED_BYTE,W),ue("copy",s,f,function(xe){var Re=xe.setUniform,ce=xe.setAttribute;ce("aUV",2,te.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),Re("1i","image",$),te.bindFramebuffer(te.FRAMEBUFFER,re||null),te.disable(te.BLEND),te.colorMask(H&8,H&4,H&2,H&1),te.viewport(k,I,Q,Y),te.scissor(k,I,Q,Y),te.drawArrays(te.TRIANGLES,0,3)})})})}function y(j,W,k){var I=j.width,Q=j.height;d(j,function(Y){var H=Y.gl,re=new Uint8Array(I*Q*4);H.readPixels(0,0,I,Q,H.RGBA,H.UNSIGNED_BYTE,re),j.width=W,j.height=k,m(H,re,0,0,I,Q)})}var x=Object.freeze({__proto__:null,withWebGLContext:d,renderImageData:m,resizeWebGLCanvasWithoutClearing:y});function C(j,W,k,I,Q,Y){Y===void 0&&(Y=1);var H=new Uint8Array(j*W),re=I[2]-I[0],X=I[3]-I[1],te=[];r(k,function(ce,Se,ke,le){te.push({x1:ce,y1:Se,x2:ke,y2:le,minX:Math.min(ce,ke),minY:Math.min(Se,le),maxX:Math.max(ce,ke),maxY:Math.max(Se,le)})}),te.sort(function(ce,Se){return ce.maxX-Se.maxX});for(var ue=0;uepe.minX&&Se-lepe.minY){var ie=_(ce,Se,pe.x1,pe.y1,pe.x2,pe.y2);ieSe!=Ce.y2>Se&&ce<(Ce.x2-Ce.x1)*(Se-Ce.y1)/(Ce.y2-Ce.y1)+Ce.x1;pe&&(ke+=Ce.y1p.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function T(le,Ce){var pe=36,ie=0,Pe=new Map,ye=Ce&&new Map,we;return le.split(",").forEach(function me(We){if(We.indexOf("+")!==-1)for(var Oe=+We;Oe--;)me(we);else{we=We;var Me=We.split(">"),ze=Me[0],He=Me[1];ze=String.fromCodePoint(ie+=parseInt(ze,pe)),He=String.fromCodePoint(ie+=parseInt(He,pe)),Pe.set(ze,He),Ce&&ye.set(He,ze)}}),{map:Pe,reverseMap:ye}}var S,_,w;function M(){if(!S){var le=T(C.pairs,!0),Ce=le.map,pe=le.reverseMap;S=Ce,_=pe,w=T(C.canonical,!1).map}}function D(le){return M(),S.get(le)||null}function R(le){return M(),_.get(le)||null}function A(le){return M(),w.get(le)||null}var b=v.L,B=v.R,J=v.EN,oe=v.ES,G=v.ET,O=v.AN,ee=v.CS,q=v.B,ne=v.S,ae=v.ON,ve=v.BN,Z=v.NSM,j=v.AL,W=v.LRO,k=v.RLO,I=v.LRE,Q=v.RLE,Y=v.PDF,H=v.LRI,re=v.RLI,X=v.FSI,te=v.PDI;function ue(le,Ce){for(var pe=125,ie=new Uint32Array(le.length),Pe=0;Pe0)Qe--;else if(ct>0){for(Je=0;!be[be.length-1]._isolate;)be.pop();var Un=be[be.length-1]._isolInitIndex;Un!=null&&(We.set(Un,Ie),We.set(Ie,Un)),be.pop(),ct--}Ue=be[be.length-1],me[Ie]=Ue._level,Ue._override&&we(Ie,Ue._override)}else et&Y?(Qe===0&&(Je>0?Je--:!Ue._isolate&&be.length>1&&(be.pop(),Ue=be[be.length-1])),me[Ie]=Ue._level):et&q&&(me[Ie]=Me.level);else me[Ie]=Ue._level,Ue._override&&et!==ve&&we(Ie,Ue._override)}for(var Wt=[],Ht=null,tt=Me.start;tt<=Me.end;tt++){var lr=ie[tt];if(!(lr&u)){var rt=me[tt],it=lr&r,on=lr===te;Ht&&rt===Ht._level?(Ht._end=tt,Ht._endsWithIsolInit=it):Wt.push(Ht={_start:tt,_end:tt,_level:rt,_startsWithPDI:on,_endsWithIsolInit:it})}}for(var Vt=[],Xe=0;Xe=0;xr--)if(!(ie[xr]&u)){uo=me[xr];break}var _i=Rt[Rt.length-1],ga=me[_i],co=Me.level;if(!(ie[_i]&r)){for(var Wr=_i+1;Wr<=Me.end;Wr++)if(!(ie[Wr]&u)){co=me[Wr];break}}Vt.push({_seqIndices:Rt,_sosType:Math.max(uo,ma)%2?B:b,_eosType:Math.max(co,ga)%2?B:b})}}for(var Ei=0;Ei=0;ln--)if(!(ie[_e[ln]]&u)){In=ie[_e[ln]];break}we(Vr,In&(r|te)?ae:In)}}if(ye.get(J))for(var Ye=0;Ye<_e.length;Ye++){var Ke=_e[Ye];if(ie[Ke]&J)for(var sn=Ye-1;sn>=-1;sn--){var St=sn===-1?Rn:ie[_e[sn]];if(St&s){St===j&&we(Ke,O);break}}}if(ye.get(j))for(var Et=0;Et<_e.length;Et++){var jn=_e[Et];ie[jn]&j&&we(jn,B)}if(ye.get(oe)||ye.get(ee))for(var yn=1;yn<_e.length-1;yn++){var Tt=_e[yn];if(ie[Tt]&(oe|ee)){for(var Fn=0,Zr=0,Qr=yn-1;Qr>=0&&(Fn=ie[_e[Qr]],!!(Fn&u));Qr--);for(var sr=yn+1;sr<_e.length&&(Zr=ie[_e[sr]],!!(Zr&u));sr++);Fn===Zr&&(ie[Tt]===oe?Fn===J:Fn&(J|O))&&we(Tt,Fn)}}if(ye.get(J))for(var un=0;un<_e.length;un++){var cn=_e[un];if(ie[cn]&J){for(var Xr=un-1;Xr>=0&&ie[_e[Xr]]&(G|u);Xr--)we(_e[Xr],J);for(un++;un<_e.length&&ie[_e[un]]&(G|u|J);un++)ie[_e[un]]!==J&&we(_e[un],J)}}if(ye.get(G)||ye.get(oe)||ye.get(ee))for(var wr=0;wr<_e.length;wr++){var fo=_e[wr];if(ie[fo]&(G|oe|ee)){we(fo,ae);for(var Kn=wr-1;Kn>=0&&ie[_e[Kn]]&u;Kn--)we(_e[Kn],ae);for(var qn=wr+1;qn<_e.length&&ie[_e[qn]]&u;qn++)we(_e[qn],ae)}}if(ye.get(J))for(var $n=0,Sr=Rn;$n<_e.length;$n++){var ho=_e[$n],ki=ie[ho];ki&J?Sr===b&&we(ho,b):ki&s&&(Sr=ki)}if(ye.get(f)){var er=B|J|O,Yr=er|b,bn=[];{for(var ur=[],Bn=0;Bn<_e.length;Bn++)if(ie[_e[Bn]]&f){var Ne=le[_e[Bn]],Pi=void 0;if(D(Ne)!==null)if(ur.length<63)ur.push({char:Ne,seqIndex:Bn});else break;else if((Pi=R(Ne))!==null)for(var tr=ur.length-1;tr>=0;tr--){var Jr=ur[tr].char;if(Jr===Pi||Jr===R(A(Ne))||D(A(Jr))===Ne){bn.push([ur[tr].seqIndex,Bn]),ur.length=tr;break}}}bn.sort(function(kt,Yt){return kt[0]-Yt[0]})}for(var Li=0;Li=0;Ri--){var mo=_e[Ri];if(ie[mo]&Yr){var dn=ie[mo]&er?B:b;dn!==zn?Zt=dn:Zt=zn;break}}}if(Zt){if(ie[_e[at]]=ie[_e[Cr]]=Zt,Zt!==zn){for(var Qt=at+1;Qt<_e.length;Qt++)if(!(ie[_e[Qt]]&u)){y(le[_e[Qt]])&Z&&(ie[_e[Qt]]=Zt);break}}if(Zt!==zn){for(var Nn=Cr+1;Nn<_e.length;Nn++)if(!(ie[_e[Nn]]&u)){y(le[_e[Nn]])&Z&&(ie[_e[Nn]]=Zt);break}}}}for(var xn=0;xn<_e.length;xn++)if(ie[_e[xn]]&f){for(var Fi=xn,Ai=xn,$t=Rn,Er=xn-1;Er>=0;Er--)if(ie[_e[Er]]&u)Fi=Er;else{$t=ie[_e[Er]]&er?B:b;break}for(var Tr=Mi,Mr=xn+1;Mr<_e.length;Mr++)if(ie[_e[Mr]]&(f|u))Ai=Mr;else{Tr=ie[_e[Mr]]&er?B:b;break}for(var Xt=Fi;Xt<=Ai;Xt++)ie[_e[Xt]]=$t===Tr?$t:zn;xn=Ai}}}for(var Mt=Me.start;Mt<=Me.end;Mt++){var Kr=me[Mt],An=ie[Mt];if(Kr&1?An&(b|J|O)&&me[Mt]++:An&B?me[Mt]++:An&(O|J)&&(me[Mt]+=2),An&u&&(me[Mt]=Mt===0?Me.level:me[Mt-1]),Mt===Me.end||y(le[Mt])&(ne|q))for(var cr=Mt;cr>=0&&y(le[cr])&h;cr--)me[cr]=Me.level}}return{levels:me,paragraphs:Oe};function qr(kt,Yt){for(var pt=kt;pt=me&&y(le[Me])&h;Me--)Oe[Me]=we.level;for(var ze=we.level,He=1/0,ut=0;utze&&(ze=De),De=He;qe--)for(var be=0;be=qe){for(var Ue=be;be+1=qe;)be++;be>Ue&&ye.push([Ue+me,be+me])}}}),ye}function Se(le,Ce,pe,ie){var Pe=ke(le,Ce,pe,ie),ye=[].concat(le);return Pe.forEach(function(we,me){ye[me]=(Ce.levels[we]&1?xe(le[we]):null)||le[we]}),ye.join("")}function ke(le,Ce,pe,ie){for(var Pe=ce(le,Ce,pe,ie),ye=[],we=0;we