reacthub-pixitweenjs 0.2.107-alpha.85 → 0.2.107-alpha.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -21445,7 +21445,7 @@ const wo = /* @__PURE__ */ ti(AU), Bh = (t, e, r, n) => {
|
|
|
21445
21445
|
}, [L, v, y, b, x]), ee.useEffect(() => {
|
|
21446
21446
|
h.current && (h.current.muted = d, p.current.isMuted = d);
|
|
21447
21447
|
const ae = setTimeout(() => {
|
|
21448
|
-
h.current && (h.current.muted = d, p.current.isMuted = d);
|
|
21448
|
+
console.log("running the mute function", c, d), h.current && (h.current.muted = d, p.current.isMuted = d);
|
|
21449
21449
|
}, 1500);
|
|
21450
21450
|
return () => {
|
|
21451
21451
|
clearTimeout(ae);
|
package/dist/index.umd.js
CHANGED
|
@@ -2013,4 +2013,4 @@ __p += '`),Le&&(H+=`' +
|
|
|
2013
2013
|
function print() { __p += __j.call(arguments, '') }
|
|
2014
2014
|
`:`;
|
|
2015
2015
|
`)+H+`return __p
|
|
2016
|
-
}`;var we=X_(function(){return Ve(A,re+"return "+H).apply(r,C)});if(we.source=H,Sh(we))throw we;return we}function PB(s){return We(s).toLowerCase()}function MB(s){return We(s).toUpperCase()}function OB(s,o,f){if(s=We(s),s&&(f||o===r))return em(s);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=Pr(o),A=tm(_,T),C=rm(_,T)+1;return An(_,A,C).join("")}function FB(s,o,f){if(s=We(s),s&&(f||o===r))return s.slice(0,im(s)+1);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=rm(_,Pr(o))+1;return An(_,0,T).join("")}function NB(s,o,f){if(s=We(s),s&&(f||o===r))return s.replace(Sc,"");if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=tm(_,Pr(o));return An(_,T).join("")}function LB(s,o){var f=V,_=Y;if(ct(o)){var T="separator"in o?o.separator:T;f="length"in o?be(o.length):f,_="omission"in o?Jt(o.omission):_}s=We(s);var A=s.length;if(Hi(s)){var C=Pr(s);A=C.length}if(f>=A)return s;var R=f-Vi(_);if(R<1)return _;var M=C?An(C,0,R).join(""):s.slice(0,R);if(T===r)return M+_;if(C&&(R+=M.length-R),Ah(T)){if(s.slice(R).search(T)){var U,$=M;for(T.global||(T=Gc(T.source,We(T0.exec(T))+"g")),T.lastIndex=0;U=T.exec($);)var H=U.index;M=M.slice(0,H===r?R:H)}}else if(s.indexOf(Jt(T),R)!=R){var K=M.lastIndexOf(T);K>-1&&(M=M.slice(0,K))}return M+_}function kB(s){return s=We(s),s&&WF.test(s)?s.replace(y0,h3):s}var DB=Zi(function(s,o,f){return s+(f?" ":"")+o.toUpperCase()}),Ih=jm("toUpperCase");function V_(s,o,f){return s=We(s),o=f?r:o,o===r?a3(s)?p3(s):ZN(s):s.match(o)||[]}var X_=Ee(function(s,o){try{return Zt(s,r,o)}catch(f){return Sh(f)?f:new _e(f)}}),BB=tn(function(s,o){return hr(o,function(f){f=Vr(f),Jr(s,f,Th(s[f],s))}),s});function UB(s){var o=s==null?0:s.length,f=ue();return s=o?at(s,function(_){if(typeof _[1]!="function")throw new fr(u);return[f(_[0]),_[1]]}):[],Ee(function(_){for(var T=-1;++T<o;){var A=s[T];if(Zt(A[0],this,_))return Zt(A[1],this,_)}})}function $B(s){return hL(pr(s,c))}function Rh(s){return function(){return s}}function GB(s,o){return s==null||s!==s?o:s}var zB=qm(),HB=qm(!0);function jt(s){return s}function Ph(s){return Sm(typeof s=="function"?s:pr(s,c))}function VB(s){return Em(pr(s,c))}function XB(s,o){return Cm(s,pr(o,c))}var jB=Ee(function(s,o){return function(f){return Vs(f,s,o)}}),WB=Ee(function(s,o){return function(f){return Vs(s,f,o)}});function Mh(s,o,f){var _=At(o),T=zo(o,_);f==null&&!(ct(o)&&(T.length||!_.length))&&(f=o,o=s,s=this,T=zo(o,At(o)));var A=!(ct(f)&&"chain"in f)||!!f.chain,C=nn(s);return hr(T,function(R){var M=o[R];s[R]=M,C&&(s.prototype[R]=function(){var U=this.__chain__;if(A||U){var $=s(this.__wrapped__),H=$.__actions__=Ht(this.__actions__);return H.push({func:M,args:arguments,thisArg:s}),$.__chain__=U,$}return M.apply(s,yn([this.value()],arguments))})}),s}function qB(){return It._===this&&(It._=x3),this}function Oh(){}function YB(s){return s=be(s),Ee(function(o){return Im(o,s)})}var KB=lh(at),ZB=lh(Y0),QB=lh(Nc);function j_(s){return mh(s)?Lc(Vr(s)):IL(s)}function JB(s){return function(o){return s==null?r:ti(s,o)}}var eU=Km(),tU=Km(!0);function Fh(){return[]}function Nh(){return!1}function rU(){return{}}function nU(){return""}function iU(){return!0}function sU(s,o){if(s=be(s),s<1||s>Q)return[];var f=q,_=Ft(s,q);o=ue(o),s-=q;for(var T=Bc(_,o);++f<s;)o(f);return T}function aU(s){return ye(s)?at(s,Vr):er(s)?[s]:Ht(f_(We(s)))}function oU(s){var o=++v3;return We(s)+o}var uU=qo(function(s,o){return s+o},0),lU=ch("ceil"),cU=qo(function(s,o){return s/o},1),hU=ch("floor");function fU(s){return s&&s.length?Go(s,jt,Yc):r}function dU(s,o){return s&&s.length?Go(s,ue(o,2),Yc):r}function pU(s){return Q0(s,jt)}function gU(s,o){return Q0(s,ue(o,2))}function mU(s){return s&&s.length?Go(s,jt,Jc):r}function _U(s,o){return s&&s.length?Go(s,ue(o,2),Jc):r}var vU=qo(function(s,o){return s*o},1),yU=ch("round"),xU=qo(function(s,o){return s-o},0);function bU(s){return s&&s.length?Dc(s,jt):0}function TU(s,o){return s&&s.length?Dc(s,ue(o,2)):0}return S.after=V5,S.ary=w_,S.assign=MD,S.assignIn=D_,S.assignInWith=ou,S.assignWith=OD,S.at=FD,S.before=S_,S.bind=Th,S.bindAll=BB,S.bindKey=A_,S.castArray=rD,S.chain=x_,S.chunk=hk,S.compact=fk,S.concat=dk,S.cond=UB,S.conforms=$B,S.constant=Rh,S.countBy=b5,S.create=ND,S.curry=E_,S.curryRight=C_,S.debounce=I_,S.defaults=LD,S.defaultsDeep=kD,S.defer=X5,S.delay=j5,S.difference=pk,S.differenceBy=gk,S.differenceWith=mk,S.drop=_k,S.dropRight=vk,S.dropRightWhile=yk,S.dropWhile=xk,S.fill=bk,S.filter=w5,S.flatMap=E5,S.flatMapDeep=C5,S.flatMapDepth=I5,S.flatten=m_,S.flattenDeep=Tk,S.flattenDepth=wk,S.flip=W5,S.flow=zB,S.flowRight=HB,S.fromPairs=Sk,S.functions=HD,S.functionsIn=VD,S.groupBy=R5,S.initial=Ek,S.intersection=Ck,S.intersectionBy=Ik,S.intersectionWith=Rk,S.invert=jD,S.invertBy=WD,S.invokeMap=M5,S.iteratee=Ph,S.keyBy=O5,S.keys=At,S.keysIn=Xt,S.map=tu,S.mapKeys=YD,S.mapValues=KD,S.matches=VB,S.matchesProperty=XB,S.memoize=nu,S.merge=ZD,S.mergeWith=B_,S.method=jB,S.methodOf=WB,S.mixin=Mh,S.negate=iu,S.nthArg=YB,S.omit=QD,S.omitBy=JD,S.once=q5,S.orderBy=F5,S.over=KB,S.overArgs=Y5,S.overEvery=ZB,S.overSome=QB,S.partial=wh,S.partialRight=R_,S.partition=N5,S.pick=eB,S.pickBy=U_,S.property=j_,S.propertyOf=JB,S.pull=Fk,S.pullAll=v_,S.pullAllBy=Nk,S.pullAllWith=Lk,S.pullAt=kk,S.range=eU,S.rangeRight=tU,S.rearg=K5,S.reject=D5,S.remove=Dk,S.rest=Z5,S.reverse=xh,S.sampleSize=U5,S.set=rB,S.setWith=nB,S.shuffle=$5,S.slice=Bk,S.sortBy=H5,S.sortedUniq=Xk,S.sortedUniqBy=jk,S.split=EB,S.spread=Q5,S.tail=Wk,S.take=qk,S.takeRight=Yk,S.takeRightWhile=Kk,S.takeWhile=Zk,S.tap=f5,S.throttle=J5,S.thru=eu,S.toArray=N_,S.toPairs=$_,S.toPairsIn=G_,S.toPath=aU,S.toPlainObject=k_,S.transform=iB,S.unary=eD,S.union=Qk,S.unionBy=Jk,S.unionWith=e5,S.uniq=t5,S.uniqBy=r5,S.uniqWith=n5,S.unset=sB,S.unzip=bh,S.unzipWith=y_,S.update=aB,S.updateWith=oB,S.values=es,S.valuesIn=uB,S.without=i5,S.words=V_,S.wrap=tD,S.xor=s5,S.xorBy=a5,S.xorWith=o5,S.zip=u5,S.zipObject=l5,S.zipObjectDeep=c5,S.zipWith=h5,S.entries=$_,S.entriesIn=G_,S.extend=D_,S.extendWith=ou,Mh(S,S),S.add=uU,S.attempt=X_,S.camelCase=fB,S.capitalize=z_,S.ceil=lU,S.clamp=lB,S.clone=nD,S.cloneDeep=sD,S.cloneDeepWith=aD,S.cloneWith=iD,S.conformsTo=oD,S.deburr=H_,S.defaultTo=GB,S.divide=cU,S.endsWith=dB,S.eq=Or,S.escape=pB,S.escapeRegExp=gB,S.every=T5,S.find=S5,S.findIndex=p_,S.findKey=DD,S.findLast=A5,S.findLastIndex=g_,S.findLastKey=BD,S.floor=hU,S.forEach=b_,S.forEachRight=T_,S.forIn=UD,S.forInRight=$D,S.forOwn=GD,S.forOwnRight=zD,S.get=Eh,S.gt=uD,S.gte=lD,S.has=XD,S.hasIn=Ch,S.head=__,S.identity=jt,S.includes=P5,S.indexOf=Ak,S.inRange=cB,S.invoke=qD,S.isArguments=ii,S.isArray=ye,S.isArrayBuffer=cD,S.isArrayLike=Vt,S.isArrayLikeObject=gt,S.isBoolean=hD,S.isBuffer=En,S.isDate=fD,S.isElement=dD,S.isEmpty=pD,S.isEqual=gD,S.isEqualWith=mD,S.isError=Sh,S.isFinite=_D,S.isFunction=nn,S.isInteger=P_,S.isLength=su,S.isMap=M_,S.isMatch=vD,S.isMatchWith=yD,S.isNaN=xD,S.isNative=bD,S.isNil=wD,S.isNull=TD,S.isNumber=O_,S.isObject=ct,S.isObjectLike=dt,S.isPlainObject=Ks,S.isRegExp=Ah,S.isSafeInteger=SD,S.isSet=F_,S.isString=au,S.isSymbol=er,S.isTypedArray=Ji,S.isUndefined=AD,S.isWeakMap=ED,S.isWeakSet=CD,S.join=Pk,S.kebabCase=mB,S.last=mr,S.lastIndexOf=Mk,S.lowerCase=_B,S.lowerFirst=vB,S.lt=ID,S.lte=RD,S.max=fU,S.maxBy=dU,S.mean=pU,S.meanBy=gU,S.min=mU,S.minBy=_U,S.stubArray=Fh,S.stubFalse=Nh,S.stubObject=rU,S.stubString=nU,S.stubTrue=iU,S.multiply=vU,S.nth=Ok,S.noConflict=qB,S.noop=Oh,S.now=ru,S.pad=yB,S.padEnd=xB,S.padStart=bB,S.parseInt=TB,S.random=hB,S.reduce=L5,S.reduceRight=k5,S.repeat=wB,S.replace=SB,S.result=tB,S.round=yU,S.runInContext=P,S.sample=B5,S.size=G5,S.snakeCase=AB,S.some=z5,S.sortedIndex=Uk,S.sortedIndexBy=$k,S.sortedIndexOf=Gk,S.sortedLastIndex=zk,S.sortedLastIndexBy=Hk,S.sortedLastIndexOf=Vk,S.startCase=CB,S.startsWith=IB,S.subtract=xU,S.sum=bU,S.sumBy=TU,S.template=RB,S.times=sU,S.toFinite=sn,S.toInteger=be,S.toLength=L_,S.toLower=PB,S.toNumber=_r,S.toSafeInteger=PD,S.toString=We,S.toUpper=MB,S.trim=OB,S.trimEnd=FB,S.trimStart=NB,S.truncate=LB,S.unescape=kB,S.uniqueId=oU,S.upperCase=DB,S.upperFirst=Ih,S.each=b_,S.eachRight=T_,S.first=__,Mh(S,function(){var s={};return zr(S,function(o,f){Ye.call(S.prototype,f)||(s[f]=o)}),s}(),{chain:!1}),S.VERSION=n,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){S[s].placeholder=S}),hr(["drop","take"],function(s,o){Oe.prototype[s]=function(f){f=f===r?1:xt(be(f),0);var _=this.__filtered__&&!o?new Oe(this):this.clone();return _.__filtered__?_.__takeCount__=Ft(f,_.__takeCount__):_.__views__.push({size:Ft(f,q),type:s+(_.__dir__<0?"Right":"")}),_},Oe.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),hr(["filter","map","takeWhile"],function(s,o){var f=o+1,_=f==G||f==se;Oe.prototype[s]=function(T){var A=this.clone();return A.__iteratees__.push({iteratee:ue(T,3),type:f}),A.__filtered__=A.__filtered__||_,A}}),hr(["head","last"],function(s,o){var f="take"+(o?"Right":"");Oe.prototype[s]=function(){return this[f](1).value()[0]}}),hr(["initial","tail"],function(s,o){var f="drop"+(o?"":"Right");Oe.prototype[s]=function(){return this.__filtered__?new Oe(this):this[f](1)}}),Oe.prototype.compact=function(){return this.filter(jt)},Oe.prototype.find=function(s){return this.filter(s).head()},Oe.prototype.findLast=function(s){return this.reverse().find(s)},Oe.prototype.invokeMap=Ee(function(s,o){return typeof s=="function"?new Oe(this):this.map(function(f){return Vs(f,s,o)})}),Oe.prototype.reject=function(s){return this.filter(iu(ue(s)))},Oe.prototype.slice=function(s,o){s=be(s);var f=this;return f.__filtered__&&(s>0||o<0)?new Oe(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),o!==r&&(o=be(o),f=o<0?f.dropRight(-o):f.take(o-s)),f)},Oe.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Oe.prototype.toArray=function(){return this.take(q)},zr(Oe.prototype,function(s,o){var f=/^(?:filter|find|map|reject)|While$/.test(o),_=/^(?:head|last)$/.test(o),T=S[_?"take"+(o=="last"?"Right":""):o],A=_||/^find/.test(o);T&&(S.prototype[o]=function(){var C=this.__wrapped__,R=_?[1]:arguments,M=C instanceof Oe,U=R[0],$=M||ye(C),H=function(Pe){var Le=T.apply(S,yn([Pe],R));return _&&K?Le[0]:Le};$&&f&&typeof U=="function"&&U.length!=1&&(M=$=!1);var K=this.__chain__,re=!!this.__actions__.length,le=A&&!K,we=M&&!re;if(!A&&$){C=we?C:new Oe(this);var ce=s.apply(C,R);return ce.__actions__.push({func:eu,args:[H],thisArg:r}),new dr(ce,K)}return le&&we?s.apply(this,R):(ce=this.thru(H),le?_?ce.value()[0]:ce.value():ce)})}),hr(["pop","push","shift","sort","splice","unshift"],function(s){var o=Eo[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",_=/^(?:pop|shift)$/.test(s);S.prototype[s]=function(){var T=arguments;if(_&&!this.__chain__){var A=this.value();return o.apply(ye(A)?A:[],T)}return this[f](function(C){return o.apply(ye(C)?C:[],T)})}}),zr(Oe.prototype,function(s,o){var f=S[o];if(f){var _=f.name+"";Ye.call(qi,_)||(qi[_]=[]),qi[_].push({name:o,func:f})}}),qi[Wo(r,x).name]=[{name:"wrapper",func:r}],Oe.prototype.clone=k3,Oe.prototype.reverse=D3,Oe.prototype.value=B3,S.prototype.at=d5,S.prototype.chain=p5,S.prototype.commit=g5,S.prototype.next=m5,S.prototype.plant=v5,S.prototype.reverse=y5,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=x5,S.prototype.first=S.prototype.head,Ds&&(S.prototype[Ds]=_5),S},Xi=g3();Kn?((Kn.exports=Xi)._=Xi,Pc._=Xi):It._=Xi}).call(Et)}(vo,vo.exports);var d0=vo.exports;const fF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},dF=te.forwardRef((t,e)=>{const[r,n]=te.useState([]),[,i]=te.useState(0),[a,u]=te.useState([]),[,l]=j.useState(!1),[h,p]=rF({autoPlay:!1}),m=j.useRef(null),c=j.useRef(null),d=j.useRef(fF),g=j.useRef(),{tl:v,dragModeRef:y}=j.useContext(on),{frames:b,delays:x}=h,{src:E,startAt:w,endAt:I,frameStartAt:O,frameEndAt:F,loop:N,visible:L,disabled:D,transformation:{width:V=0,height:Y=0,x:ie,y:X,colorCorrection:G={}},pointerdown:ae}=t,{temperatureFilter:se,sharpnessFilter:z,hueFilter:Q,blurFilter:ge,adjustmentFilter:W,vignetteFilter:q,noiseFilter:he}=Xn(G),{blurRadius:fe=0,vignette:me=0,noise:Te=0}=G,Ce=.1;cF(E,p),ht(Ze.PAUSE,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SEEK_END,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),te.useEffect(()=>{d.current&&m.current&&(y.current?(m.current.stop(),d.current.isPlaying=!1,d.current.isDragging=!0):d.current.isDragging=!1)},[y]),te.useEffect(()=>{if(!ss(b)){const pe=OO(b,oe=>{const{data:Ne,width:Kt,height:zt}=oe,ft=new Uint8Array(Ne);return $t.Texture.fromBuffer(ft,Kt,zt)}),ve=pe.map((oe,Ne)=>({texture:oe,time:x[Ne]}));n(pe),u(ve);let st=0;x.forEach(oe=>{st+=oe*10}),i(st),d.current.totalDuration=st,d.current.totalFrames=b.length}},[b,x]);const Ue=d0.debounce(pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},20),He=d0.debounce(()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},50),Re=pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},xe=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},Ae=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},$e=pe=>{var st;const ve=pe+((st=g.current)==null?void 0:st.time());m.current&&y.current?(Ue(ve),He(),d.current.isPlaying=!1):g.current&&m.current&&!d.current.isPlaying&&g.current.isActive()&&v.current.isActive()&&(Ue(ve),d.current.isPlaying=!0)},Ke=()=>{l(!0)};return j.useEffect(()=>{let pe=ee.context(()=>{});if(c.current&&v.current){const ve={duration:Number(F)-Number(O),onStart:Re,onComplete:xe,onStartParams:[O,F],onCompleteParams:[],onInterrupt:Ae,onUpdate:$e,onUpdateParams:[O,F]};g.current&&g.current.kill(),pe=ee.context(()=>{g.current=ee.from(c.current,ve,O),v.current.add(g.current,w)})}return()=>{g.current&&(g.current.kill(),ee.killTweensOf(g.current)),pe.revert()}},[w,I,O,F]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,isGif:!0,children:Se.jsx(De.Container,{ref:c,children:r&&r.length>0&&Se.jsx(f0,{x:ie,y:X,width:V,height:Y,animationSpeed:1,alpha:L?1:0,loop:N,textures:a,onComplete:Ke,anchor:.5,forwardRef:m,...!D&&L&&{interactive:!0,pointerdown:ae},filters:[se,z,Q,W,...fe>0?[ge]:[],...me>0?[q]:[],...Te>0?[he]:[]]})})})}),pF=te.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(0),a=j.useRef(null),u=j.useRef(null),l=j.useRef(16),h=j.useRef(null),{visible:p,text:m,disabled:c,transformation:d,pointerdown:g,onDobuleClick:v}=t,{x:y,y:b,fontFamily:x="Arial",fontWeight:E="normal",fontStyle:w="normal",fontSize:I=16,fontVariant:O="normal",fill:F="black",stroke:N,strokeThickness:L=0,blurRadius:D=0,blurEnabled:V=!1,dropShadowColor:Y=null,dropShadow:ie=!1,dropShadowBlur:X=0,wordWrapWidth:G=5e7,leading:ae=0,letterSpacing:se,colorCorrection:z={}}=d,{temperatureFilter:Q,sharpnessFilter:ge,hueFilter:W,blurFilter:q,adjustmentFilter:he}=Xn(z),{blurRadius:fe=0}=z;te.useEffect(()=>{l.current=Number(I)},[I]);const me=["italic","oblique"].includes(w)?w:void 0,Te=["small-caps"].includes(O),Ce=["bold","bolder","lighter","100","200","300"].includes(E)?E:void 0,Ue=Number(se)>0?se:void 0,He=te.useMemo(()=>new $t.TextStyle({fontFamily:x,fontSize:I,fill:F||"white",...N&&L>0&&{stroke:N,strokeThickness:L},...me&&{fontStyle:me},...Te&&{fontVariant:Te},...Ce&&{fontWeight:Ce},...Ue&&{letterSpacing:Ue},...V&&{dropShadow:!0,dropShadowBlur:Number(D),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...ie&&{dropShadow:!0,dropShadowBlur:Number(X),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:G||500,leading:ae||0}),[V,D,F,x,I,w,ae,me,Ce,Te,Ue,Y,N,L,G,ie,X]);te.useEffect(()=>{h.current={...d}},[d]);const Re=()=>{const Ae=new Date().getTime();Ae-i.current<300&&v?v():g&&g(),i.current=Ae},xe=()=>{!c&&v&&v()};return Se.jsx(Pn,{...t,ref:e,isText:!0,onDoubleClick:xe,children:Se.jsx(De.Container,{ref:n,children:Se.jsx(De.Container,{alpha:1,ref:u,children:Se.jsx(De.Text,{style:He,x:y,y:b,anchor:.5,text:m,alpha:p?1:0,...p&&!c&&{interactive:!0,buttonMode:!0,pointerdown:Re},ref:a,filters:[Q,ge,W,he,...fe>0?[q]:[]]})})})})});var gF=Nr,mF=function(){return gF.Date.now()},_F=mF,vF=/\s/;function yF(t){for(var e=t.length;e--&&vF.test(t.charAt(e)););return e}var xF=yF,bF=xF,TF=/^\s+/;function wF(t){return t&&t.slice(0,bF(t)+1).replace(TF,"")}var SF=wF,AF=SF,p0=ns,EF=fo,g0=0/0,CF=/^[-+]0x[0-9a-f]+$/i,IF=/^0b[01]+$/i,RF=/^0o[0-7]+$/i,PF=parseInt;function MF(t){if(typeof t=="number")return t;if(EF(t))return g0;if(p0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=p0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=AF(t);var r=IF.test(t);return r||RF.test(t)?PF(t.slice(2),r?2:8):CF.test(t)?g0:+t}var OF=MF,FF=ns,hc=_F,m0=OF,NF="Expected a function",LF=Math.max,kF=Math.min;function DF(t,e,r){var n,i,a,u,l,h,p=0,m=!1,c=!1,d=!0;if(typeof t!="function")throw new TypeError(NF);e=m0(e)||0,FF(r)&&(m=!!r.leading,c="maxWait"in r,a=c?LF(m0(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d);function g(F){var N=n,L=i;return n=i=void 0,p=F,u=t.apply(L,N),u}function v(F){return p=F,l=setTimeout(x,e),m?g(F):u}function y(F){var N=F-h,L=F-p,D=e-N;return c?kF(D,a-L):D}function b(F){var N=F-h,L=F-p;return h===void 0||N>=e||N<0||c&&L>=a}function x(){var F=hc();if(b(F))return E(F);l=setTimeout(x,y(F))}function E(F){return l=void 0,d&&n?g(F):(n=i=void 0,u)}function w(){l!==void 0&&clearTimeout(l),p=0,n=h=i=l=void 0}function I(){return l===void 0?u:E(hc())}function O(){var F=hc(),N=b(F);if(n=arguments,i=this,h=F,N){if(l===void 0)return v(h);if(c)return clearTimeout(l),l=setTimeout(x,e),g(h)}return l===void 0&&(l=setTimeout(x,e)),u}return O.cancel=w,O.flush=I,O}var BF=DF;const yo=Cn(BF),fc=(t,e,r,n)=>{const i=j.useCallback(yo(t,n),[t,n]),a=j.useCallback(yo(e,n),[e,n]),u=j.useCallback(yo(r,n),[r,n]),l=j.useCallback(()=>{i()},[i]),h=j.useCallback(()=>{a()},[a]),p=j.useCallback(()=>{u()},[u]);return{onPointerOver:l,onPointerDown:h,onPointerOut:p}},UF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},_0=te.forwardRef((t,e)=>{const[r,n]=te.useState(0),[i,a]=te.useState(),u=j.useRef(null),l=j.useRef(null),h=j.useRef(null),p=j.useRef(UF),m=j.useRef(),{uniqueId:c,mute:d=!1,src:g,startAt:v,endAt:y,frameStartAt:b,frameEndAt:x,visible:E,disabled:w,transformation:{x:I,y:O,width:F,height:N,animation:L,colorCorrection:D={}},pointerdown:V=()=>{},pointerout:Y=()=>{},pointerover:ie=()=>{},fps:X=0}=t,{tl:G,dragModeRef:ae,isRemotion:se}=j.useContext(on),{onPointerDown:z,onPointerOut:Q,onPointerOver:ge}=fc(ie,V,Y,1),{blurRadius:W=0,vignette:q=0,noise:he=0}=D,{temperatureFilter:fe,sharpnessFilter:me,hueFilter:Te,blurFilter:Ce,adjustmentFilter:Ue,vignetteFilter:He,noiseFilter:Re}=Xn(D),xe=g||"",Ae=te.useMemo(()=>{const oe=document.createElement("video");return oe.src=g,oe.crossOrigin="Anonymus",oe.autoplay=!1,oe.currentTime=b===0?.001:b,oe},[g,b]);ht(Ze.PAUSE,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.REVERSE_MODE_END,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)});const $e=te.useCallback(yo(()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1}},400),[h]);te.useEffect(()=>{h.current&&!se?(ae.current?($e(),p.current.isPlaying=!1,p.current.isDragging=!0):p.current.isDragging=!1,h.current.muted=d):p.current.isDragging=!1,p.current.isMuted=d},[d,ae,$e,h]);const Ke=oe=>{if(h.current){if(h.current.currentTime=Number(oe),!ae.current){const Ne=h.current,Kt=Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA;G.current&&G.current.isActive()&&m.current&&m.current.isActive()&&(Kt||h.current.play(),p.current.isPlaying=!0,n(zt=>zt+1))}p.current.progress=0}},pe=()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1,m.current&&(p.current.progress=m.current.progress())}},ve=()=>{},st=()=>{var oe,Ne;if(m.current&&(p.current.progress=m.current.progress()),h.current&&m.current){const Kt=b+((oe=m==null?void 0:m.current)==null?void 0:oe.time()),zt=Math.abs(h.current.currentTime-Kt),ft=h.current,lr=ft.currentTime>0&&!ft.paused&&!ft.ended&&ft.readyState>ft.HAVE_CURRENT_DATA;ae.current?(h.current.currentTime=Kt,setTimeout(()=>{h.current&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},100),p.current.isPlaying=!1):(lr!==p.current.isPlaying||!lr)&&p.current.progress>.01&&p.current.progress<.99?(Ne=G.current)!=null&&Ne.isActive()&&m.current&&m.current.isActive()&&(lr||h.current.play(),p.current.isPlaying=!0):zt>.3&&p.current.progress>.01&&p.current.progress<.99&&(h.current.currentTime=Kt)}};return j.useEffect(()=>{let oe=ee.context(()=>{});if(l.current&&G.current){const Ne={duration:Number(x)-Number(b),onStart:Ke,onComplete:pe,onStartParams:[b,x],onCompleteParams:[],onInterrupt:ve,onUpdate:st,onUpdateParams:[b,x],onPause:()=>{console.log("onPause video sprite pause",c)},onResume:()=>{console.log("onResume video sprite resume",c)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",c)},onKill:()=>{console.log("onKill video sprite kill",c)}};oe=ee.context(()=>{m.current=ee.from(l.current,Ne,b),G.current.add(m.current,v)})}return()=>{m.current&&(m.current.kill(),ee.killTweensOf(m.current)),oe.revert()}},[L,v,y,b,x]),te.useEffect(()=>{h.current&&(h.current.muted=d,p.current.isMuted=d);const oe=setTimeout(()=>{h.current&&(h.current.muted=d,p.current.isMuted=d)},1500);return()=>{clearTimeout(oe)}},[d]),te.useEffect(()=>{const oe=Math.round((Number(b)+Number.EPSILON)*100)/100,Ne=function(){h.current&&(h.current.currentTime=oe,h.current.muted=d)},Kt=function(){if(h.current){const Rr=h.current;Rr.currentTime>0&&!Rr.paused&&!Rr.ended&&Rr.readyState>Rr.HAVE_CURRENT_DATA&&h.current.pause()}p.current.isWaiting=!1,p.current.isStalled=!1},zt=function(){h.current&&h.current.pause(),p.current.isWaiting=!0,p.current.isStalled=!1},ft=function(){p.current.isWaiting=!1,p.current.isStalled=!1},lr=function(){p.current.isWaiting=!1,p.current.isStalled=!0},Bi=Math.round((Number(b)+Number.EPSILON)*100)/100,dc=Math.round((Number(x)+Number.EPSILON)*100)/100,Yn=`${xe}#t=${Bi},${dc}`;return $t.Texture.fromLoader(Ae,Yn,c,{pixiIdPrefix:c,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:X?Math.max(120,Number(X)):30}}).then(Rr=>{Rr&&(a(Rr),h.current=Rr.baseTexture.resource.source,h.current.id=c,h.current.addEventListener("loadedmetadata",Ne),h.current.addEventListener("ended",Kt),h.current.addEventListener("loadstart",zt),h.current.addEventListener("canplaythrough",ft),h.current.addEventListener("stalled",lr))}),()=>{h.current&&(h.current.pause(),h.current.removeEventListener("loadedmetadata",Ne),h.current.removeEventListener("ended",Kt),h.current.removeEventListener("loadstart",zt),h.current.removeEventListener("canplaythrough",ft),h.current.removeEventListener("stalled",lr))}},[xe,c,b,x,Ae]),te.useEffect(()=>{const oe=setTimeout(()=>{i&&m.current&&G.current&&m.current.progress()<.1&&h.current&&!m.current.isActive()&&!se&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},30);return()=>{clearTimeout(oe)}},[i]),te.useEffect(()=>{G.current&&!G.current.isActive()&&!se&&(p.current.isPlaying=!1,h.current&&h.current.pause());const oe=setTimeout(()=>{if(i&&G.current&&r>0&&!se){G.current.isActive()||(p.current.isPlaying=!1,h.current&&h.current.pause());const Ne=h.current;Ne&&G.current.isActive()&&m.current&&m.current.isActive()&&(Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA||h.current.play(),p.current.isPlaying=!0)}},10);return()=>{clearTimeout(oe)}},[r,i]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:z,pointerover:ge,pointerout:Q,children:Se.jsx(De.Container,{ref:l,children:i&&Se.jsx(De.Sprite,{texture:i,width:F,height:N,anchor:.5,x:I,y:O,ref:u,alpha:E?1:0,...!w&&E&&{interactive:!0,pointerdown:V},filters:[fe,me,Te,Ue,...W>0?[Ce]:[],...q>0?[He]:[],...he>0?[Re]:[]]})})})});_0.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const $F=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})}),GF=t=>{const{startAt:e,endAt:r,uniqueId:n}=t,i=j.useRef(null),a=j.useRef(null),u=j.useRef(null),l=j.useRef(null),h=j.useRef(!1),{tl:p,totalDuration:m=0,reverseModeRef:c}=j.useContext(on),d=e<.2?"static":"none",g=j.useRef(1);ht(Ze.COMPLETE,()=>{i.current&&(i.current.eventMode=d)}),ht(Ze.REVERSE_MODE_END,()=>{if(p.current){const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1,i.current.eventMode="static")):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0,i.current.eventMode="none"))}});const v=()=>{if(c.current&&l.current&&p.current){h.current=!0;const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1)):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0))}};return ht(Ze.COMPLETE,()=>{}),te.useEffect(()=>{const y=ee.context(()=>{if(i.current&&p.current){const b=ee.to(i.current,{alpha:1,duration:.1});l.current=ee.to(a.current,{alpha:1,duration:Number(r)-Number(e),onStart:()=>{i.current&&(i.current.alpha=1,i.current.eventMode="static",g.current=1)},onUpdate:v,onComplete:()=>{i.current&&(i.current.alpha=0,i.current.eventMode="none",g.current=0)}}),p.current.add([b,l.current],e)}});return()=>{l.current&&(p.current.remove(l.current),l.current.progress(0).kill()),y.revert()}},[e,r,m,n]),Se.jsx(De.Container,{ref:i,alpha:e<.2?1:0,eventMode:e<.2?"static":"none",children:Se.jsx(De.Container,{ref:u,children:Se.jsx(De.Container,{ref:a,alpha:1,children:t.children})})})},zF=t=>{const{startAt:e,endAt:r}=t,{setTotalDuration:n}=j.useContext(on);return te.useEffect(()=>{n&&n(Number(r)+.2)},[e,r]),t.children},HF=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})});var v0=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t))(v0||{});Xe.Animations=Ru,Xe.BlendModes=v0,Xe.Events=Ze,Xe.GsapPixieContext=on,Xe.GsapPixieContextProvider=av,Xe.PixiAnimatedSprite=f0,Xe.PixiAudioSprite=oP,Xe.PixiGifSprite=dF,Xe.PixiImageSprite=Rg,Xe.PixiRemotionSprite=HF,Xe.PixiSequence=GF,Xe.PixiSequenceWrapper=zF,Xe.PixiSvgPathSprite=aP,Xe.PixiTextSprite=pF,Xe.PixiVideoCanvasSyncSprite=$F,Xe.PixiVideoSprite=_0,Xe.emitCustomEvent=si,Xe.newCustomEventEmitter=sv,Xe.useCustomEventListener=ht,Xe.useGsapEffect=Wf,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})});
|
|
2016
|
+
}`;var we=X_(function(){return Ve(A,re+"return "+H).apply(r,C)});if(we.source=H,Sh(we))throw we;return we}function PB(s){return We(s).toLowerCase()}function MB(s){return We(s).toUpperCase()}function OB(s,o,f){if(s=We(s),s&&(f||o===r))return em(s);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=Pr(o),A=tm(_,T),C=rm(_,T)+1;return An(_,A,C).join("")}function FB(s,o,f){if(s=We(s),s&&(f||o===r))return s.slice(0,im(s)+1);if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=rm(_,Pr(o))+1;return An(_,0,T).join("")}function NB(s,o,f){if(s=We(s),s&&(f||o===r))return s.replace(Sc,"");if(!s||!(o=Jt(o)))return s;var _=Pr(s),T=tm(_,Pr(o));return An(_,T).join("")}function LB(s,o){var f=V,_=Y;if(ct(o)){var T="separator"in o?o.separator:T;f="length"in o?be(o.length):f,_="omission"in o?Jt(o.omission):_}s=We(s);var A=s.length;if(Hi(s)){var C=Pr(s);A=C.length}if(f>=A)return s;var R=f-Vi(_);if(R<1)return _;var M=C?An(C,0,R).join(""):s.slice(0,R);if(T===r)return M+_;if(C&&(R+=M.length-R),Ah(T)){if(s.slice(R).search(T)){var U,$=M;for(T.global||(T=Gc(T.source,We(T0.exec(T))+"g")),T.lastIndex=0;U=T.exec($);)var H=U.index;M=M.slice(0,H===r?R:H)}}else if(s.indexOf(Jt(T),R)!=R){var K=M.lastIndexOf(T);K>-1&&(M=M.slice(0,K))}return M+_}function kB(s){return s=We(s),s&&WF.test(s)?s.replace(y0,h3):s}var DB=Zi(function(s,o,f){return s+(f?" ":"")+o.toUpperCase()}),Ih=jm("toUpperCase");function V_(s,o,f){return s=We(s),o=f?r:o,o===r?a3(s)?p3(s):ZN(s):s.match(o)||[]}var X_=Ee(function(s,o){try{return Zt(s,r,o)}catch(f){return Sh(f)?f:new _e(f)}}),BB=tn(function(s,o){return hr(o,function(f){f=Vr(f),Jr(s,f,Th(s[f],s))}),s});function UB(s){var o=s==null?0:s.length,f=ue();return s=o?at(s,function(_){if(typeof _[1]!="function")throw new fr(u);return[f(_[0]),_[1]]}):[],Ee(function(_){for(var T=-1;++T<o;){var A=s[T];if(Zt(A[0],this,_))return Zt(A[1],this,_)}})}function $B(s){return hL(pr(s,c))}function Rh(s){return function(){return s}}function GB(s,o){return s==null||s!==s?o:s}var zB=qm(),HB=qm(!0);function jt(s){return s}function Ph(s){return Sm(typeof s=="function"?s:pr(s,c))}function VB(s){return Em(pr(s,c))}function XB(s,o){return Cm(s,pr(o,c))}var jB=Ee(function(s,o){return function(f){return Vs(f,s,o)}}),WB=Ee(function(s,o){return function(f){return Vs(s,f,o)}});function Mh(s,o,f){var _=At(o),T=zo(o,_);f==null&&!(ct(o)&&(T.length||!_.length))&&(f=o,o=s,s=this,T=zo(o,At(o)));var A=!(ct(f)&&"chain"in f)||!!f.chain,C=nn(s);return hr(T,function(R){var M=o[R];s[R]=M,C&&(s.prototype[R]=function(){var U=this.__chain__;if(A||U){var $=s(this.__wrapped__),H=$.__actions__=Ht(this.__actions__);return H.push({func:M,args:arguments,thisArg:s}),$.__chain__=U,$}return M.apply(s,yn([this.value()],arguments))})}),s}function qB(){return It._===this&&(It._=x3),this}function Oh(){}function YB(s){return s=be(s),Ee(function(o){return Im(o,s)})}var KB=lh(at),ZB=lh(Y0),QB=lh(Nc);function j_(s){return mh(s)?Lc(Vr(s)):IL(s)}function JB(s){return function(o){return s==null?r:ti(s,o)}}var eU=Km(),tU=Km(!0);function Fh(){return[]}function Nh(){return!1}function rU(){return{}}function nU(){return""}function iU(){return!0}function sU(s,o){if(s=be(s),s<1||s>Q)return[];var f=q,_=Ft(s,q);o=ue(o),s-=q;for(var T=Bc(_,o);++f<s;)o(f);return T}function aU(s){return ye(s)?at(s,Vr):er(s)?[s]:Ht(f_(We(s)))}function oU(s){var o=++v3;return We(s)+o}var uU=qo(function(s,o){return s+o},0),lU=ch("ceil"),cU=qo(function(s,o){return s/o},1),hU=ch("floor");function fU(s){return s&&s.length?Go(s,jt,Yc):r}function dU(s,o){return s&&s.length?Go(s,ue(o,2),Yc):r}function pU(s){return Q0(s,jt)}function gU(s,o){return Q0(s,ue(o,2))}function mU(s){return s&&s.length?Go(s,jt,Jc):r}function _U(s,o){return s&&s.length?Go(s,ue(o,2),Jc):r}var vU=qo(function(s,o){return s*o},1),yU=ch("round"),xU=qo(function(s,o){return s-o},0);function bU(s){return s&&s.length?Dc(s,jt):0}function TU(s,o){return s&&s.length?Dc(s,ue(o,2)):0}return S.after=V5,S.ary=w_,S.assign=MD,S.assignIn=D_,S.assignInWith=ou,S.assignWith=OD,S.at=FD,S.before=S_,S.bind=Th,S.bindAll=BB,S.bindKey=A_,S.castArray=rD,S.chain=x_,S.chunk=hk,S.compact=fk,S.concat=dk,S.cond=UB,S.conforms=$B,S.constant=Rh,S.countBy=b5,S.create=ND,S.curry=E_,S.curryRight=C_,S.debounce=I_,S.defaults=LD,S.defaultsDeep=kD,S.defer=X5,S.delay=j5,S.difference=pk,S.differenceBy=gk,S.differenceWith=mk,S.drop=_k,S.dropRight=vk,S.dropRightWhile=yk,S.dropWhile=xk,S.fill=bk,S.filter=w5,S.flatMap=E5,S.flatMapDeep=C5,S.flatMapDepth=I5,S.flatten=m_,S.flattenDeep=Tk,S.flattenDepth=wk,S.flip=W5,S.flow=zB,S.flowRight=HB,S.fromPairs=Sk,S.functions=HD,S.functionsIn=VD,S.groupBy=R5,S.initial=Ek,S.intersection=Ck,S.intersectionBy=Ik,S.intersectionWith=Rk,S.invert=jD,S.invertBy=WD,S.invokeMap=M5,S.iteratee=Ph,S.keyBy=O5,S.keys=At,S.keysIn=Xt,S.map=tu,S.mapKeys=YD,S.mapValues=KD,S.matches=VB,S.matchesProperty=XB,S.memoize=nu,S.merge=ZD,S.mergeWith=B_,S.method=jB,S.methodOf=WB,S.mixin=Mh,S.negate=iu,S.nthArg=YB,S.omit=QD,S.omitBy=JD,S.once=q5,S.orderBy=F5,S.over=KB,S.overArgs=Y5,S.overEvery=ZB,S.overSome=QB,S.partial=wh,S.partialRight=R_,S.partition=N5,S.pick=eB,S.pickBy=U_,S.property=j_,S.propertyOf=JB,S.pull=Fk,S.pullAll=v_,S.pullAllBy=Nk,S.pullAllWith=Lk,S.pullAt=kk,S.range=eU,S.rangeRight=tU,S.rearg=K5,S.reject=D5,S.remove=Dk,S.rest=Z5,S.reverse=xh,S.sampleSize=U5,S.set=rB,S.setWith=nB,S.shuffle=$5,S.slice=Bk,S.sortBy=H5,S.sortedUniq=Xk,S.sortedUniqBy=jk,S.split=EB,S.spread=Q5,S.tail=Wk,S.take=qk,S.takeRight=Yk,S.takeRightWhile=Kk,S.takeWhile=Zk,S.tap=f5,S.throttle=J5,S.thru=eu,S.toArray=N_,S.toPairs=$_,S.toPairsIn=G_,S.toPath=aU,S.toPlainObject=k_,S.transform=iB,S.unary=eD,S.union=Qk,S.unionBy=Jk,S.unionWith=e5,S.uniq=t5,S.uniqBy=r5,S.uniqWith=n5,S.unset=sB,S.unzip=bh,S.unzipWith=y_,S.update=aB,S.updateWith=oB,S.values=es,S.valuesIn=uB,S.without=i5,S.words=V_,S.wrap=tD,S.xor=s5,S.xorBy=a5,S.xorWith=o5,S.zip=u5,S.zipObject=l5,S.zipObjectDeep=c5,S.zipWith=h5,S.entries=$_,S.entriesIn=G_,S.extend=D_,S.extendWith=ou,Mh(S,S),S.add=uU,S.attempt=X_,S.camelCase=fB,S.capitalize=z_,S.ceil=lU,S.clamp=lB,S.clone=nD,S.cloneDeep=sD,S.cloneDeepWith=aD,S.cloneWith=iD,S.conformsTo=oD,S.deburr=H_,S.defaultTo=GB,S.divide=cU,S.endsWith=dB,S.eq=Or,S.escape=pB,S.escapeRegExp=gB,S.every=T5,S.find=S5,S.findIndex=p_,S.findKey=DD,S.findLast=A5,S.findLastIndex=g_,S.findLastKey=BD,S.floor=hU,S.forEach=b_,S.forEachRight=T_,S.forIn=UD,S.forInRight=$D,S.forOwn=GD,S.forOwnRight=zD,S.get=Eh,S.gt=uD,S.gte=lD,S.has=XD,S.hasIn=Ch,S.head=__,S.identity=jt,S.includes=P5,S.indexOf=Ak,S.inRange=cB,S.invoke=qD,S.isArguments=ii,S.isArray=ye,S.isArrayBuffer=cD,S.isArrayLike=Vt,S.isArrayLikeObject=gt,S.isBoolean=hD,S.isBuffer=En,S.isDate=fD,S.isElement=dD,S.isEmpty=pD,S.isEqual=gD,S.isEqualWith=mD,S.isError=Sh,S.isFinite=_D,S.isFunction=nn,S.isInteger=P_,S.isLength=su,S.isMap=M_,S.isMatch=vD,S.isMatchWith=yD,S.isNaN=xD,S.isNative=bD,S.isNil=wD,S.isNull=TD,S.isNumber=O_,S.isObject=ct,S.isObjectLike=dt,S.isPlainObject=Ks,S.isRegExp=Ah,S.isSafeInteger=SD,S.isSet=F_,S.isString=au,S.isSymbol=er,S.isTypedArray=Ji,S.isUndefined=AD,S.isWeakMap=ED,S.isWeakSet=CD,S.join=Pk,S.kebabCase=mB,S.last=mr,S.lastIndexOf=Mk,S.lowerCase=_B,S.lowerFirst=vB,S.lt=ID,S.lte=RD,S.max=fU,S.maxBy=dU,S.mean=pU,S.meanBy=gU,S.min=mU,S.minBy=_U,S.stubArray=Fh,S.stubFalse=Nh,S.stubObject=rU,S.stubString=nU,S.stubTrue=iU,S.multiply=vU,S.nth=Ok,S.noConflict=qB,S.noop=Oh,S.now=ru,S.pad=yB,S.padEnd=xB,S.padStart=bB,S.parseInt=TB,S.random=hB,S.reduce=L5,S.reduceRight=k5,S.repeat=wB,S.replace=SB,S.result=tB,S.round=yU,S.runInContext=P,S.sample=B5,S.size=G5,S.snakeCase=AB,S.some=z5,S.sortedIndex=Uk,S.sortedIndexBy=$k,S.sortedIndexOf=Gk,S.sortedLastIndex=zk,S.sortedLastIndexBy=Hk,S.sortedLastIndexOf=Vk,S.startCase=CB,S.startsWith=IB,S.subtract=xU,S.sum=bU,S.sumBy=TU,S.template=RB,S.times=sU,S.toFinite=sn,S.toInteger=be,S.toLength=L_,S.toLower=PB,S.toNumber=_r,S.toSafeInteger=PD,S.toString=We,S.toUpper=MB,S.trim=OB,S.trimEnd=FB,S.trimStart=NB,S.truncate=LB,S.unescape=kB,S.uniqueId=oU,S.upperCase=DB,S.upperFirst=Ih,S.each=b_,S.eachRight=T_,S.first=__,Mh(S,function(){var s={};return zr(S,function(o,f){Ye.call(S.prototype,f)||(s[f]=o)}),s}(),{chain:!1}),S.VERSION=n,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){S[s].placeholder=S}),hr(["drop","take"],function(s,o){Oe.prototype[s]=function(f){f=f===r?1:xt(be(f),0);var _=this.__filtered__&&!o?new Oe(this):this.clone();return _.__filtered__?_.__takeCount__=Ft(f,_.__takeCount__):_.__views__.push({size:Ft(f,q),type:s+(_.__dir__<0?"Right":"")}),_},Oe.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),hr(["filter","map","takeWhile"],function(s,o){var f=o+1,_=f==G||f==se;Oe.prototype[s]=function(T){var A=this.clone();return A.__iteratees__.push({iteratee:ue(T,3),type:f}),A.__filtered__=A.__filtered__||_,A}}),hr(["head","last"],function(s,o){var f="take"+(o?"Right":"");Oe.prototype[s]=function(){return this[f](1).value()[0]}}),hr(["initial","tail"],function(s,o){var f="drop"+(o?"":"Right");Oe.prototype[s]=function(){return this.__filtered__?new Oe(this):this[f](1)}}),Oe.prototype.compact=function(){return this.filter(jt)},Oe.prototype.find=function(s){return this.filter(s).head()},Oe.prototype.findLast=function(s){return this.reverse().find(s)},Oe.prototype.invokeMap=Ee(function(s,o){return typeof s=="function"?new Oe(this):this.map(function(f){return Vs(f,s,o)})}),Oe.prototype.reject=function(s){return this.filter(iu(ue(s)))},Oe.prototype.slice=function(s,o){s=be(s);var f=this;return f.__filtered__&&(s>0||o<0)?new Oe(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),o!==r&&(o=be(o),f=o<0?f.dropRight(-o):f.take(o-s)),f)},Oe.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Oe.prototype.toArray=function(){return this.take(q)},zr(Oe.prototype,function(s,o){var f=/^(?:filter|find|map|reject)|While$/.test(o),_=/^(?:head|last)$/.test(o),T=S[_?"take"+(o=="last"?"Right":""):o],A=_||/^find/.test(o);T&&(S.prototype[o]=function(){var C=this.__wrapped__,R=_?[1]:arguments,M=C instanceof Oe,U=R[0],$=M||ye(C),H=function(Pe){var Le=T.apply(S,yn([Pe],R));return _&&K?Le[0]:Le};$&&f&&typeof U=="function"&&U.length!=1&&(M=$=!1);var K=this.__chain__,re=!!this.__actions__.length,le=A&&!K,we=M&&!re;if(!A&&$){C=we?C:new Oe(this);var ce=s.apply(C,R);return ce.__actions__.push({func:eu,args:[H],thisArg:r}),new dr(ce,K)}return le&&we?s.apply(this,R):(ce=this.thru(H),le?_?ce.value()[0]:ce.value():ce)})}),hr(["pop","push","shift","sort","splice","unshift"],function(s){var o=Eo[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",_=/^(?:pop|shift)$/.test(s);S.prototype[s]=function(){var T=arguments;if(_&&!this.__chain__){var A=this.value();return o.apply(ye(A)?A:[],T)}return this[f](function(C){return o.apply(ye(C)?C:[],T)})}}),zr(Oe.prototype,function(s,o){var f=S[o];if(f){var _=f.name+"";Ye.call(qi,_)||(qi[_]=[]),qi[_].push({name:o,func:f})}}),qi[Wo(r,x).name]=[{name:"wrapper",func:r}],Oe.prototype.clone=k3,Oe.prototype.reverse=D3,Oe.prototype.value=B3,S.prototype.at=d5,S.prototype.chain=p5,S.prototype.commit=g5,S.prototype.next=m5,S.prototype.plant=v5,S.prototype.reverse=y5,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=x5,S.prototype.first=S.prototype.head,Ds&&(S.prototype[Ds]=_5),S},Xi=g3();Kn?((Kn.exports=Xi)._=Xi,Pc._=Xi):It._=Xi}).call(Et)}(vo,vo.exports);var d0=vo.exports;const fF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},dF=te.forwardRef((t,e)=>{const[r,n]=te.useState([]),[,i]=te.useState(0),[a,u]=te.useState([]),[,l]=j.useState(!1),[h,p]=rF({autoPlay:!1}),m=j.useRef(null),c=j.useRef(null),d=j.useRef(fF),g=j.useRef(),{tl:v,dragModeRef:y}=j.useContext(on),{frames:b,delays:x}=h,{src:E,startAt:w,endAt:I,frameStartAt:O,frameEndAt:F,loop:N,visible:L,disabled:D,transformation:{width:V=0,height:Y=0,x:ie,y:X,colorCorrection:G={}},pointerdown:ae}=t,{temperatureFilter:se,sharpnessFilter:z,hueFilter:Q,blurFilter:ge,adjustmentFilter:W,vignetteFilter:q,noiseFilter:he}=Xn(G),{blurRadius:fe=0,vignette:me=0,noise:Te=0}=G,Ce=.1;cF(E,p),ht(Ze.PAUSE,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SEEK_END,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)}),te.useEffect(()=>{d.current&&m.current&&(y.current?(m.current.stop(),d.current.isPlaying=!1,d.current.isDragging=!0):d.current.isDragging=!1)},[y]),te.useEffect(()=>{if(!ss(b)){const pe=OO(b,oe=>{const{data:Ne,width:Kt,height:zt}=oe,ft=new Uint8Array(Ne);return $t.Texture.fromBuffer(ft,Kt,zt)}),ve=pe.map((oe,Ne)=>({texture:oe,time:x[Ne]}));n(pe),u(ve);let st=0;x.forEach(oe=>{st+=oe*10}),i(st),d.current.totalDuration=st,d.current.totalFrames=b.length}},[b,x]);const Ue=d0.debounce(pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},20),He=d0.debounce(()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},50),Re=pe=>{if(m.current){let ve=pe===0?0:pe/Ce;ve=isNaN(ve)?0:ve;const st=d.current.totalFrames;ve=ve>st?st:ve,ve>=st?(m.current.gotoAndStop(0),d.current.isPlaying=!1):(m.current.gotoAndPlay(ve||0),d.current.isPlaying=!0)}},xe=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},Ae=()=>{m.current&&(m.current.stop(),d.current.isPlaying=!1)},$e=pe=>{var st;const ve=pe+((st=g.current)==null?void 0:st.time());m.current&&y.current?(Ue(ve),He(),d.current.isPlaying=!1):g.current&&m.current&&!d.current.isPlaying&&g.current.isActive()&&v.current.isActive()&&(Ue(ve),d.current.isPlaying=!0)},Ke=()=>{l(!0)};return j.useEffect(()=>{let pe=ee.context(()=>{});if(c.current&&v.current){const ve={duration:Number(F)-Number(O),onStart:Re,onComplete:xe,onStartParams:[O,F],onCompleteParams:[],onInterrupt:Ae,onUpdate:$e,onUpdateParams:[O,F]};g.current&&g.current.kill(),pe=ee.context(()=>{g.current=ee.from(c.current,ve,O),v.current.add(g.current,w)})}return()=>{g.current&&(g.current.kill(),ee.killTweensOf(g.current)),pe.revert()}},[w,I,O,F]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,isGif:!0,children:Se.jsx(De.Container,{ref:c,children:r&&r.length>0&&Se.jsx(f0,{x:ie,y:X,width:V,height:Y,animationSpeed:1,alpha:L?1:0,loop:N,textures:a,onComplete:Ke,anchor:.5,forwardRef:m,...!D&&L&&{interactive:!0,pointerdown:ae},filters:[se,z,Q,W,...fe>0?[ge]:[],...me>0?[q]:[],...Te>0?[he]:[]]})})})}),pF=te.forwardRef((t,e)=>{const n=j.useRef(null),i=j.useRef(0),a=j.useRef(null),u=j.useRef(null),l=j.useRef(16),h=j.useRef(null),{visible:p,text:m,disabled:c,transformation:d,pointerdown:g,onDobuleClick:v}=t,{x:y,y:b,fontFamily:x="Arial",fontWeight:E="normal",fontStyle:w="normal",fontSize:I=16,fontVariant:O="normal",fill:F="black",stroke:N,strokeThickness:L=0,blurRadius:D=0,blurEnabled:V=!1,dropShadowColor:Y=null,dropShadow:ie=!1,dropShadowBlur:X=0,wordWrapWidth:G=5e7,leading:ae=0,letterSpacing:se,colorCorrection:z={}}=d,{temperatureFilter:Q,sharpnessFilter:ge,hueFilter:W,blurFilter:q,adjustmentFilter:he}=Xn(z),{blurRadius:fe=0}=z;te.useEffect(()=>{l.current=Number(I)},[I]);const me=["italic","oblique"].includes(w)?w:void 0,Te=["small-caps"].includes(O),Ce=["bold","bolder","lighter","100","200","300"].includes(E)?E:void 0,Ue=Number(se)>0?se:void 0,He=te.useMemo(()=>new $t.TextStyle({fontFamily:x,fontSize:I,fill:F||"white",...N&&L>0&&{stroke:N,strokeThickness:L},...me&&{fontStyle:me},...Te&&{fontVariant:Te},...Ce&&{fontWeight:Ce},...Ue&&{letterSpacing:Ue},...V&&{dropShadow:!0,dropShadowBlur:Number(D),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...ie&&{dropShadow:!0,dropShadowBlur:Number(X),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:G||500,leading:ae||0}),[V,D,F,x,I,w,ae,me,Ce,Te,Ue,Y,N,L,G,ie,X]);te.useEffect(()=>{h.current={...d}},[d]);const Re=()=>{const Ae=new Date().getTime();Ae-i.current<300&&v?v():g&&g(),i.current=Ae},xe=()=>{!c&&v&&v()};return Se.jsx(Pn,{...t,ref:e,isText:!0,onDoubleClick:xe,children:Se.jsx(De.Container,{ref:n,children:Se.jsx(De.Container,{alpha:1,ref:u,children:Se.jsx(De.Text,{style:He,x:y,y:b,anchor:.5,text:m,alpha:p?1:0,...p&&!c&&{interactive:!0,buttonMode:!0,pointerdown:Re},ref:a,filters:[Q,ge,W,he,...fe>0?[q]:[]]})})})})});var gF=Nr,mF=function(){return gF.Date.now()},_F=mF,vF=/\s/;function yF(t){for(var e=t.length;e--&&vF.test(t.charAt(e)););return e}var xF=yF,bF=xF,TF=/^\s+/;function wF(t){return t&&t.slice(0,bF(t)+1).replace(TF,"")}var SF=wF,AF=SF,p0=ns,EF=fo,g0=0/0,CF=/^[-+]0x[0-9a-f]+$/i,IF=/^0b[01]+$/i,RF=/^0o[0-7]+$/i,PF=parseInt;function MF(t){if(typeof t=="number")return t;if(EF(t))return g0;if(p0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=p0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=AF(t);var r=IF.test(t);return r||RF.test(t)?PF(t.slice(2),r?2:8):CF.test(t)?g0:+t}var OF=MF,FF=ns,hc=_F,m0=OF,NF="Expected a function",LF=Math.max,kF=Math.min;function DF(t,e,r){var n,i,a,u,l,h,p=0,m=!1,c=!1,d=!0;if(typeof t!="function")throw new TypeError(NF);e=m0(e)||0,FF(r)&&(m=!!r.leading,c="maxWait"in r,a=c?LF(m0(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d);function g(F){var N=n,L=i;return n=i=void 0,p=F,u=t.apply(L,N),u}function v(F){return p=F,l=setTimeout(x,e),m?g(F):u}function y(F){var N=F-h,L=F-p,D=e-N;return c?kF(D,a-L):D}function b(F){var N=F-h,L=F-p;return h===void 0||N>=e||N<0||c&&L>=a}function x(){var F=hc();if(b(F))return E(F);l=setTimeout(x,y(F))}function E(F){return l=void 0,d&&n?g(F):(n=i=void 0,u)}function w(){l!==void 0&&clearTimeout(l),p=0,n=h=i=l=void 0}function I(){return l===void 0?u:E(hc())}function O(){var F=hc(),N=b(F);if(n=arguments,i=this,h=F,N){if(l===void 0)return v(h);if(c)return clearTimeout(l),l=setTimeout(x,e),g(h)}return l===void 0&&(l=setTimeout(x,e)),u}return O.cancel=w,O.flush=I,O}var BF=DF;const yo=Cn(BF),fc=(t,e,r,n)=>{const i=j.useCallback(yo(t,n),[t,n]),a=j.useCallback(yo(e,n),[e,n]),u=j.useCallback(yo(r,n),[r,n]),l=j.useCallback(()=>{i()},[i]),h=j.useCallback(()=>{a()},[a]),p=j.useCallback(()=>{u()},[u]);return{onPointerOver:l,onPointerDown:h,onPointerOut:p}},UF={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},_0=te.forwardRef((t,e)=>{const[r,n]=te.useState(0),[i,a]=te.useState(),u=j.useRef(null),l=j.useRef(null),h=j.useRef(null),p=j.useRef(UF),m=j.useRef(),{uniqueId:c,mute:d=!1,src:g,startAt:v,endAt:y,frameStartAt:b,frameEndAt:x,visible:E,disabled:w,transformation:{x:I,y:O,width:F,height:N,animation:L,colorCorrection:D={}},pointerdown:V=()=>{},pointerout:Y=()=>{},pointerover:ie=()=>{},fps:X=0}=t,{tl:G,dragModeRef:ae,isRemotion:se}=j.useContext(on),{onPointerDown:z,onPointerOut:Q,onPointerOver:ge}=fc(ie,V,Y,1),{blurRadius:W=0,vignette:q=0,noise:he=0}=D,{temperatureFilter:fe,sharpnessFilter:me,hueFilter:Te,blurFilter:Ce,adjustmentFilter:Ue,vignetteFilter:He,noiseFilter:Re}=Xn(D),xe=g||"",Ae=te.useMemo(()=>{const oe=document.createElement("video");return oe.src=g,oe.crossOrigin="Anonymus",oe.autoplay=!1,oe.currentTime=b===0?.001:b,oe},[g,b]);ht(Ze.PAUSE,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.SCRUBBER_CLICKED,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)}),ht(Ze.REVERSE_MODE_END,()=>{h.current&&(h.current.pause(),p.current.isPlaying=!1)});const $e=te.useCallback(yo(()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1}},400),[h]);te.useEffect(()=>{h.current&&!se?(ae.current?($e(),p.current.isPlaying=!1,p.current.isDragging=!0):p.current.isDragging=!1,h.current.muted=d):p.current.isDragging=!1,p.current.isMuted=d},[d,ae,$e,h]);const Ke=oe=>{if(h.current){if(h.current.currentTime=Number(oe),!ae.current){const Ne=h.current,Kt=Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA;G.current&&G.current.isActive()&&m.current&&m.current.isActive()&&(Kt||h.current.play(),p.current.isPlaying=!0,n(zt=>zt+1))}p.current.progress=0}},pe=()=>{if(h.current){const oe=h.current;oe.currentTime>0&&!oe.paused&&!oe.ended&&oe.readyState>oe.HAVE_CURRENT_DATA&&h.current.pause(),p.current.isPlaying=!1,m.current&&(p.current.progress=m.current.progress())}},ve=()=>{},st=()=>{var oe,Ne;if(m.current&&(p.current.progress=m.current.progress()),h.current&&m.current){const Kt=b+((oe=m==null?void 0:m.current)==null?void 0:oe.time()),zt=Math.abs(h.current.currentTime-Kt),ft=h.current,lr=ft.currentTime>0&&!ft.paused&&!ft.ended&&ft.readyState>ft.HAVE_CURRENT_DATA;ae.current?(h.current.currentTime=Kt,setTimeout(()=>{h.current&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},100),p.current.isPlaying=!1):(lr!==p.current.isPlaying||!lr)&&p.current.progress>.01&&p.current.progress<.99?(Ne=G.current)!=null&&Ne.isActive()&&m.current&&m.current.isActive()&&(lr||h.current.play(),p.current.isPlaying=!0):zt>.3&&p.current.progress>.01&&p.current.progress<.99&&(h.current.currentTime=Kt)}};return j.useEffect(()=>{let oe=ee.context(()=>{});if(l.current&&G.current){const Ne={duration:Number(x)-Number(b),onStart:Ke,onComplete:pe,onStartParams:[b,x],onCompleteParams:[],onInterrupt:ve,onUpdate:st,onUpdateParams:[b,x],onPause:()=>{console.log("onPause video sprite pause",c)},onResume:()=>{console.log("onResume video sprite resume",c)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",c)},onKill:()=>{console.log("onKill video sprite kill",c)}};oe=ee.context(()=>{m.current=ee.from(l.current,Ne,b),G.current.add(m.current,v)})}return()=>{m.current&&(m.current.kill(),ee.killTweensOf(m.current)),oe.revert()}},[L,v,y,b,x]),te.useEffect(()=>{h.current&&(h.current.muted=d,p.current.isMuted=d);const oe=setTimeout(()=>{console.log("running the mute function",c,d),h.current&&(h.current.muted=d,p.current.isMuted=d)},1500);return()=>{clearTimeout(oe)}},[d]),te.useEffect(()=>{const oe=Math.round((Number(b)+Number.EPSILON)*100)/100,Ne=function(){h.current&&(h.current.currentTime=oe,h.current.muted=d)},Kt=function(){if(h.current){const Rr=h.current;Rr.currentTime>0&&!Rr.paused&&!Rr.ended&&Rr.readyState>Rr.HAVE_CURRENT_DATA&&h.current.pause()}p.current.isWaiting=!1,p.current.isStalled=!1},zt=function(){h.current&&h.current.pause(),p.current.isWaiting=!0,p.current.isStalled=!1},ft=function(){p.current.isWaiting=!1,p.current.isStalled=!1},lr=function(){p.current.isWaiting=!1,p.current.isStalled=!0},Bi=Math.round((Number(b)+Number.EPSILON)*100)/100,dc=Math.round((Number(x)+Number.EPSILON)*100)/100,Yn=`${xe}#t=${Bi},${dc}`;return $t.Texture.fromLoader(Ae,Yn,c,{pixiIdPrefix:c,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:X?Math.max(120,Number(X)):30}}).then(Rr=>{Rr&&(a(Rr),h.current=Rr.baseTexture.resource.source,h.current.id=c,h.current.addEventListener("loadedmetadata",Ne),h.current.addEventListener("ended",Kt),h.current.addEventListener("loadstart",zt),h.current.addEventListener("canplaythrough",ft),h.current.addEventListener("stalled",lr))}),()=>{h.current&&(h.current.pause(),h.current.removeEventListener("loadedmetadata",Ne),h.current.removeEventListener("ended",Kt),h.current.removeEventListener("loadstart",zt),h.current.removeEventListener("canplaythrough",ft),h.current.removeEventListener("stalled",lr))}},[xe,c,b,x,Ae]),te.useEffect(()=>{const oe=setTimeout(()=>{i&&m.current&&G.current&&m.current.progress()<.1&&h.current&&!m.current.isActive()&&!se&&h.current.play().then(()=>{p.current.isPlaying=!1,h.current&&h.current.pause()})},30);return()=>{clearTimeout(oe)}},[i]),te.useEffect(()=>{G.current&&!G.current.isActive()&&!se&&(p.current.isPlaying=!1,h.current&&h.current.pause());const oe=setTimeout(()=>{if(i&&G.current&&r>0&&!se){G.current.isActive()||(p.current.isPlaying=!1,h.current&&h.current.pause());const Ne=h.current;Ne&&G.current.isActive()&&m.current&&m.current.isActive()&&(Ne.currentTime>0&&!Ne.paused&&!Ne.ended&&Ne.readyState>Ne.HAVE_CURRENT_DATA||h.current.play(),p.current.isPlaying=!0)}},10);return()=>{clearTimeout(oe)}},[r,i]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:z,pointerover:ge,pointerout:Q,children:Se.jsx(De.Container,{ref:l,children:i&&Se.jsx(De.Sprite,{texture:i,width:F,height:N,anchor:.5,x:I,y:O,ref:u,alpha:E?1:0,...!w&&E&&{interactive:!0,pointerdown:V},filters:[fe,me,Te,Ue,...W>0?[Ce]:[],...q>0?[He]:[],...he>0?[Re]:[]]})})})});_0.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const $F=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})}),GF=t=>{const{startAt:e,endAt:r,uniqueId:n}=t,i=j.useRef(null),a=j.useRef(null),u=j.useRef(null),l=j.useRef(null),h=j.useRef(!1),{tl:p,totalDuration:m=0,reverseModeRef:c}=j.useContext(on),d=e<.2?"static":"none",g=j.useRef(1);ht(Ze.COMPLETE,()=>{i.current&&(i.current.eventMode=d)}),ht(Ze.REVERSE_MODE_END,()=>{if(p.current){const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1,i.current.eventMode="static")):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0,i.current.eventMode="none"))}});const v=()=>{if(c.current&&l.current&&p.current){h.current=!0;const y=p.current.time();y>e&&y<r?(a.current&&(a.current.alpha=1),i.current&&(i.current.alpha=1)):(a.current&&(a.current.alpha=0),i.current&&(i.current.alpha=0))}};return ht(Ze.COMPLETE,()=>{}),te.useEffect(()=>{const y=ee.context(()=>{if(i.current&&p.current){const b=ee.to(i.current,{alpha:1,duration:.1});l.current=ee.to(a.current,{alpha:1,duration:Number(r)-Number(e),onStart:()=>{i.current&&(i.current.alpha=1,i.current.eventMode="static",g.current=1)},onUpdate:v,onComplete:()=>{i.current&&(i.current.alpha=0,i.current.eventMode="none",g.current=0)}}),p.current.add([b,l.current],e)}});return()=>{l.current&&(p.current.remove(l.current),l.current.progress(0).kill()),y.revert()}},[e,r,m,n]),Se.jsx(De.Container,{ref:i,alpha:e<.2?1:0,eventMode:e<.2?"static":"none",children:Se.jsx(De.Container,{ref:u,children:Se.jsx(De.Container,{ref:a,alpha:1,children:t.children})})})},zF=t=>{const{startAt:e,endAt:r}=t,{setTotalDuration:n}=j.useContext(on);return te.useEffect(()=>{n&&n(Number(r)+.2)},[e,r]),t.children},HF=te.forwardRef((t,e)=>{const[r,n]=te.useState(),i=j.useRef(null),a=j.useRef(null),{visible:u,disabled:l,transformation:{x:h,y:p,width:m,height:c,colorCorrection:d={}},pointerdown:g=()=>{},pointerout:v=()=>{},pointerover:y=()=>{},canvasImageRef:b}=t,x=b&&(b==null?void 0:b.getCanvas()),E=De.useApp(),{onPointerDown:w,onPointerOut:I,onPointerOver:O}=fc(y,g,v,1),{blurRadius:F=0,vignette:N=0,noise:L=0}=d,{temperatureFilter:D,sharpnessFilter:V,hueFilter:Y,blurFilter:ie,adjustmentFilter:X,vignetteFilter:G,noiseFilter:ae}=Xn(d);return De.useTick(()=>{if(i.current&&i.current.texture){const se=i.current.texture.baseTexture;se&&se.update(),a.current&&E.renderer.render(a.current)}}),te.useEffect(()=>{if(!ss(x)){const se=$t.Texture.from(x);n(se)}},[x]),Se.jsx(Pn,{...t,ref:e,ignoreTlForVideo:!0,pointerdown:w,pointerover:O,pointerout:I,children:Se.jsx(De.Container,{ref:a,children:r&&Se.jsx(De.Sprite,{texture:r,width:m,height:c,anchor:.5,x:h,y:p,ref:i,alpha:u?1:0,...!l&&u&&{interactive:!0,pointerdown:g},filters:[D,V,Y,X,...F>0?[ie]:[],...N>0?[G]:[],...L>0?[ae]:[]]})})})});var v0=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t))(v0||{});Xe.Animations=Ru,Xe.BlendModes=v0,Xe.Events=Ze,Xe.GsapPixieContext=on,Xe.GsapPixieContextProvider=av,Xe.PixiAnimatedSprite=f0,Xe.PixiAudioSprite=oP,Xe.PixiGifSprite=dF,Xe.PixiImageSprite=Rg,Xe.PixiRemotionSprite=HF,Xe.PixiSequence=GF,Xe.PixiSequenceWrapper=zF,Xe.PixiSvgPathSprite=aP,Xe.PixiTextSprite=pF,Xe.PixiVideoCanvasSyncSprite=$F,Xe.PixiVideoSprite=_0,Xe.emitCustomEvent=si,Xe.newCustomEventEmitter=sv,Xe.useCustomEventListener=ht,Xe.useGsapEffect=Wf,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reacthub-pixitweenjs",
|
|
3
|
-
"version": "0.2.107-alpha.
|
|
3
|
+
"version": "0.2.107-alpha.86",
|
|
4
4
|
"description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
|
|
5
5
|
"author": "khanzzirfan <reacthub.ai@gmail.com>",
|
|
6
6
|
"main": "dist/index.es.js",
|