2973 lines
3.0 MiB
JavaScript
2973 lines
3.0 MiB
JavaScript
var pe=Object.defineProperty,Ze=Object.defineProperties;var Ue=Object.getOwnPropertyDescriptors;var Ba=Object.getOwnPropertySymbols;var Oe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable;var lt=(G,zA,_)=>zA in G?pe(G,zA,{enumerable:!0,configurable:!0,writable:!0,value:_}):G[zA]=_,Jc=(G,zA)=>{for(var _ in zA||(zA={}))Oe.call(zA,_)&<(G,_,zA[_]);if(Ba)for(var _ of Ba(zA))ze.call(zA,_)&<(G,_,zA[_]);return G},Pc=(G,zA)=>Ze(G,Ue(zA));var Q2=(G,zA,_)=>(lt(G,typeof zA!="symbol"?zA+"":zA,_),_);var e2=N;function N(G,zA){var _=Kc();return N=function(S,vA){S=S-418;var UA=_[S];return UA},N(G,zA)}(function(G,zA){for(var _=N,S=G();[];)try{var vA=parseInt(_(3937))/1+parseInt(_(3976))/2+-parseInt(_(1333))/3*(-parseInt(_(4245))/4)+-parseInt(_(3523))/5*(parseInt(_(4321))/6)+parseInt(_(925))/7*(-parseInt(_(595))/8)+parseInt(_(4332))/9+-parseInt(_(3911))/10;if(vA===zA)break;S.push(S.shift())}catch(UA){S.push(S.shift())}})(Kc,722659);var wc,wt,sa={5026:function(G){var zA=N;G[zA(1224)]=function(){var _=zA,S,vA;function UA(U){var m=N;this[m(2695)]=m(3424)+(1e9*Math.random()>>>0)+S+"__",U!=null&&U[m(2067)](this.add,this),S+=1}Array[_(453)][_(4485)]||Object[_(4292)](Array[_(453)],_(4485),{configurable:!0,writable:!0,value:function(U){var m=_;if(this===null)throw new TypeError(m(2578));var gA=Object(this),iA=gA[m(3553)]>>>0;if(m(4653)!=typeof U)throw new TypeError(m(568));for(var T=arguments[1],H=0;H<iA;){var P=gA[H];if(U[m(779)](T,P,H,gA))return P;H+=1}}}),String.prototype[_(4148)]||Object.defineProperty(String[_(453)],_(4148),{value:function(U,m){var gA=_;return this[gA(1577)](m=!m||m<0?0:+m,m+U.length)===U}}),window[_(1482)]||(S=Date[_(1057)]()%1e9,UA[_(453)].add=function(U){var m=_,gA=this[m(2695)];return U[gA]||Object.defineProperty(U,gA,{value:!0,writable:!0}),this},UA[_(453)][_(2869)]=function(U){var m=_;return!!U[this[m(2695)]]&&!(U[this.name]=void 0)},UA[_(453)][_(2e3)]=function(U){return!!U[this.name]},vA=UA,Object[_(4292)](window,_(1482),{value:function(U){return new vA(U)}})),Object.assign||Object[_(4292)](Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(U){var m=_;if(U==null)throw new TypeError(m(1573));for(var gA=Object(U),iA=1;iA<arguments[m(3553)];iA++)if((T=arguments[iA])!=null)for(var T=Object(T),H=Object[m(905)](Object(T)),P=0,cA=H[m(3553)];P<cA;P++){var AA=H[P],yA=Object[m(2692)](T,AA);yA!=null&&yA.enumerable&&(gA[AA]=T[AA])}return gA}});var CA=function(U,m){var gA=_;return(CA=Object[gA(4393)]||{__proto__:[]}instanceof Array&&function(iA,T){var H=gA;iA[H(3536)]=T}||function(iA,T){var H=gA;for(var P in T)Object[H(453)][H(1454)][H(779)](T,P)&&(iA[P]=T[P])})(U,m)},q=function(){var U=_;return(q=Object[U(1610)]||function(m){for(var gA=U,iA,T=1,H=arguments[gA(3553)];T<H;T++)for(var P in iA=arguments[T])Object[gA(453)][gA(1454)][gA(779)](iA,P)&&(m[P]=iA[P]);return m})[U(4502)](this,arguments)};function OA(){for(var U=_,m=0,gA=0,iA=arguments.length;gA<iA;gA++)m+=arguments[gA][U(3553)];var T=Array(m),H=0;for(gA=0;gA<iA;gA++)for(var P=arguments[gA],cA=0,AA=P[U(3553)];cA<AA;cA++,H++)T[H]=P[cA];return T}function sA(U){try{return encodeURIComponent(decodeURIComponent(U))}catch(m){return U}}var lA,hA=[_(1820),_(2022),_(1939),_(4536),"trace",_(2483),_(1032),_(2760)],tA=(rA.prototype[_(3025)]=function(U,m){for(var gA=_,iA=0;iA<U[gA(3553)];iA++)if(U[iA][gA(2762)]===m)return iA;return-1},rA[_(453)].on=function(U,m,gA){var iA=_,T;if(gA===void 0&&(gA=0),this)return(T=this[iA(2457)][U])||(this[iA(2457)][U]=[],T=this[iA(2457)][U]),this[iA(3025)](T,m)===-1&&T[iA(1383)]({name:U,type:gA||0,callback:m}),this},rA[_(453)][_(4382)]=function(U,m){this.on(U,m,1)},rA[_(453)][_(528)]=function(U,m){var gA=_;if(this){var iA=this[gA(2457)][U];if(iA){if(m)return iA.length&&(m=this[gA(3025)](iA,m),iA.splice(m,1)),this;try{delete this[gA(2457)][U]}catch(T){}}return null}},rA[_(453)][_(2341)]=function(){var U=_;this[U(2457)]={}},rA),nA=function(U){var m=_;if(!U||U.length===0)return"{}";U=Array[m(4518)](U)?U:[U];var gA=Object[m(905)](U[0]),iA={};return gA[m(2067)](function(T){var H=m;iA[T]=U[H(2726)](function(P){r
|
|||
|
|
Error.stack: `+gA[iA(4117)];if(iA(1904)==typeof gA&&gA!==null){if(U[iA(2e3)](gA))return iA(880)+(m||iA(2693))+"]";U[iA(751)](gA)}return gA}},E=function(U){var m=_;if(m(3752)==typeof U)return U;try{return U instanceof Error?(JSON.stringify(U,p(),4)||m(557))[m(3710)](/"/gim,""):JSON[m(2173)](U,p(),4)||m(557)}catch(gA){return m(2330)+gA[m(3671)]+m(3500)+gA[m(4117)]}},C=function(U){var m=_;if(m(3752)==typeof U)return U;try{return JSON.stringify(U,p())||"undefined"}catch(gA){return m(2330)+gA[m(3671)]+`
|
||
|
|
`+gA[m(4117)]}},j=($.prototype.sourceURL=function(){var U=_;return this[U(1381)][U(2713)]},$.prototype[_(1219)]=function(){var U=_;return Number(this[U(1381)][U(1219)])},$[_(453)][_(4602)]=function(){var U=_,m={};return this[U(1381)][U(4602)].forEach(function(gA,iA){m[iA]=gA}),m},$);function $(U,m){var gA=_;this[gA(4028)]="fetch",this[gA(1381)]=U||{},this[gA(1381)][gA(2711)]=m}function fA(U,m){var gA=_,iA,T=[],H=U.config;return U[gA(3497)].on(gA(1165),function(){T.length=0}),function(P,cA){var AA=gA;Array.isArray(P)?T=T[AA(4146)](P):T.push(P),m&&T[AA(3553)]>=m||U[AA(2323)]&&0<T[AA(3553)]?(T=yx(T),cA(T[AA(1889)](0,T[AA(3553)])),iA&&clearTimeout(iA)):(iA&&clearTimeout(iA),iA=setTimeout(function(){var yA=AA;iA=null,0<(T=yx(T))[yA(3553)]&&cA(T[yA(1889)](0,T[yA(3553)]))},H.delay))}}function dA(U,m){var gA=_;return Array[gA(4518)](U)?m(U[gA(2726)](function(iA){var T=gA;return H=q(q({},iA),{msg:typeof iA[T(900)]=="string"?iA[T(900)]:[][T(4146)](iA[T(900)])[T(2726)](E)[T(1721)](" ")}),hA[T(2067)](function(P){H[P]||delete H[P]}),H;var H})):m([q(q({},U),{msg:gA(3752)==typeof U[gA(900)]?U[gA(900)]:E(U[gA(900)])})])}function EA(U,m){return function(gA,iA){var T=N,H,P,cA,AA=Array[T(4518)](gA),yA=AA?gA:[gA],NA=(U[T(3497)][T(587)](T(3385),gA),U[T(2998)][T(3385)]);(yA=T(4653)==typeof NA?yA[T(2726)](function(RA){var pA=T;try{var HA=NA({logs:RA,logType:m});return(HA==null?void 0:HA[pA(3334)])===m&&HA!=null&&HA.logs?HA[pA(2180)]:HA!==!1&&RA}catch(mA){return RA}}).filter(function(RA){return RA!==!1}):yA)[T(3553)]&&(H=yA,gA=hA,!Array[T(4518)](H)||H[T(3553)]<=1||(P=[],cA=[],!(cA=T(3752)==typeof gA?[gA]:gA)||cA[T(3553)]<=0||(cA[T(2067)](function(RA){var pA=T;H[pA(2067)](function(HA){var mA=pA;HA!=null&&HA[RA]&&P[mA(1383)](RA)})}),0<P[T(3553)]&&(H=H[T(2726)](function(RA){var pA={};return P.forEach(function(HA){pA[HA]=""}),q(q({},pA),RA)})))),yA=H,iA(AA?yA:yA[0]))}}function GA(U){return function(m,gA){var iA=N;U[iA(3497)][iA(587)]("modifyRequest",m);var T=U[iA(2998)].modifyRequest;if(iA(4653)==typeof T)try{var H=T(m);iA(1904)==typeof H&&iA(2713)in H&&(m=H)}catch(P){console[iA(1045)](P)}gA(m)}}function FA(U){return function(m,gA){var iA=N;U[iA(3497)].emit("afterRequest",m);var T=U[iA(2998)][iA(2450)];iA(4653)==typeof T&&T(m)===!1||gA(m)}}function $A(U){var m=_;if(U&&U[m(3727)]&&U[m(3553)])return U.length===1?function(gA,iA){U[0](gA,iA||bA)}:U[m(3727)](function(gA,iA){return function(T,H){return H===void 0&&(H=bA),gA(T,function(P){return iA==null?void 0:iA(P,H)})}});throw new TypeError(m(1158))}function sx(U,m){var gA=_;Object[gA(4584)](U)[gA(2067)](function(iA){var T=gA;T(4653)==typeof U[iA]&&T(4586)!==iA&&(m?m[iA]=T(3387)===iA?function(){return function(){}}:function(){}:U[iA]=function(){})})}function ux(){var U=_;return window[U(2278)]!==void 0&&U(4653)==typeof performance[U(3093)]&&U(4653)==typeof performance.getEntriesByType&&typeof performance.now=="function"}function Ex(U,m){var gA=_;function iA(T){var H=N;H(4506)!==T[H(4028)]&&H(2516)!==document[H(712)]||(U(T),m&&(removeEventListener(H(4383),iA,!0),removeEventListener(H(4506),iA,!0)))}addEventListener(gA(4383),iA,!0),addEventListener(gA(4506),iA,!0)}function Ux(U){var m=_;return TA[m(2256)](function(gA){var iA=m;return-1<U[iA(3025)](gA)})}function ox(U){var m=_;return JA[m(3025)](U)!==-1}(O=Z=Z||{})[_(4439)]="-1",O.API_RESPONSE="1",O[_(4177)]="2",O[_(4394)]="4",O[_(2296)]="8",O.AJAX_ERROR="16",O.SCRIPT_ERROR="32",O[_(1494)]="64",O[_(489)]=_(2339),O.CONSOLE_ERROR=_(1784),O[_(4025)]=_(2143),O[_(3503)]=_(2595),O.REPORT=_(3023),O.PV=_(3766),O[_(2942)]=_(579),O[_(704)]=_(2651),O[_(2612)]=_(1523),O[_(1401)]=_(2613),(O=y=y||{}).LOG="log",O[_(527)]=_(2590),O[_(2342)]=_(2278),O[_(3211)]=_(543),O[_(2772)]=_(4096),O[_(520)]=_(1200),O.PV="pv",O.CUSTOM_PV=_(2635),O[_(2942)]="event",O[_(611)]=_(1092),O[_(3898)]=_(4409),O[_(2542)]=_(1362),O[_(3229)]=_(3227),(O=I=I||{})[_(483)]=_(483),O[_(4187)]=_(4187),O[_(3660)]=_(3660),O[_(1055)]="pre",O[_(3764)]=_(3764),O.local=_(700),O[_(3972)]=_(3972),O[_(3288)]=_(3288);var yx=function(U){var m=_;return U[m(2991)](function(gA,iA){var T=m;return gA.type!=="static"|
|
||
|
|
`)[m(3727)](function(gA,iA){var T=m;return(iA=iA[T(615)](": "))[0]&&iA[1]&&(gA[iA[0]]=iA[1]),gA},{})}function LA(U,m,gA){var iA=_;return m!=null&&m.length&&iA(1904)==typeof U?m[iA(3727)](function(T,H){var P=iA,cA=U instanceof Headers?U[P(491)](H):U[H];return cA?T+(T===""?`
|
||
|
|
`:`
|
||
|
|
|
||
|
|
`)+gA+P(2652)+H+": "+cA:T},""):""}function Rx(U){var m=_,gA,iA="";return m(1904)==typeof U&&(gA=(U=function(T,H){for(var P=m,cA=0;cA<H[P(3553)];cA++){var AA=H[cA],yA=T[AA]||P(4653)==typeof T[P(491)]&&T[P(491)](AA);if(yA)return[AA,yA]}return["",""]}(U,Object[m(905)](Wx)))[0],U=U[1],gA&&(iA=Wx[gA](U))),iA}jA[_(730)]=function(){return ox("mac")},jA.ios=function(){var U=_;return jA[U(4370)]()||jA[U(2175)]()||jA[U(3996)]()},jA.iphone=function(){var U=_;return!jA[U(519)]()&&ox(U(4370))},jA[_(2175)]=function(){var U=_;return ox(U(2175))},jA[_(3996)]=function(){var U=_,m=U(2485)===navigator[U(3492)]&&1<navigator[U(4515)];return ox(U(3996))||m},jA[_(1981)]=function(){var U=_;return!jA[U(519)]()&&ox(U(1981))},jA[_(3997)]=function(){var U=_;return jA[U(1981)]()&&ox(U(3725))},jA[_(2358)]=function(){var U=_;return jA[U(1981)]()&&!ox(U(3725))},jA[_(4642)]=function(){var U=_;return ox(U(4642))||ox(U(1352))},jA[_(2654)]=function(){var U=_;return jA[U(4642)]()&&!ox(U(4421))},jA[_(3777)]=function(){var U=_;return jA[U(4642)]()&&ox(U(4421))},jA.windows=function(){var U=_;return ox(U(519))},jA[_(1688)]=function(){var U=_;return jA.windows()&&ox(U(1984))},jA[_(1356)]=function(){var U=_;return jA[U(519)]()&&ox(U(2709))&&!jA[U(1688)]()},jA[_(3264)]=function(){var U=_;return(ox(U(2501))||ox(U(1538)))&&ox(" rv:")},jA[_(1977)]=function(){var U=_;return jA[U(3264)]()&&ox(U(3725))},jA.fxosTablet=function(){var U=_;return jA[U(3264)]()&&ox(U(4421))},jA[_(954)]=function(){return ox("meego")},jA[_(3468)]=function(){var U=_;return window.cordova&&U(622)===location[U(1140)]},jA[_(707)]=function(){var U=_;return U(1904)==typeof window[U(981)]},jA[_(3725)]=function(){var U=_;return jA[U(3997)]()||jA.iphone()||jA.ipod()||jA[U(1688)]()||jA[U(2654)]()||jA.fxosPhone()||jA[U(954)]()},jA[_(4421)]=function(){var U=_;return jA[U(3996)]()||jA[U(2358)]()||jA[U(3777)]()||jA.windowsTablet()||jA.fxosTablet()},jA.desktop=function(){var U=_;return!jA.tablet()&&!jA[U(3725)]()};var Xx,bx,u0,E0=!(jA[_(3037)]=function(){var U=_;return U(4120)in window}),x0=[],l0=!1,vx=[],Wx={sw8:function(U){var m=_;return(U=U[m(615)]("-")[1])?atob(U):""},traceparent:function(U){var m=_;return U[m(615)]("-")[1]},"sentry-trace":function(U){return U.split("-")[0]}},P0=(new V({name:_(3103)}),new V({name:_(3103),override:!1,onNewAegis:function(U){var m=_;this.override||(this[m(1274)]=!0,this[m(2465)](U.config),this.overrideXhr(U[m(2998)]))},getRequestType:function(U,m,gA){var iA=_,T,H;return m===void 0&&(m=""),iA(3043)===(U=iA(4653)==typeof((H=U.api)==null?void 0:H[iA(3931)])?(H=U.api)==null?void 0:H[iA(3931)](gA):"")&&iA(656)===U||(T=m===void 0?"":m,H=(gA===void 0?"":gA)[iA(615)]("?")[0],U=b.test(H)||Y.some(function(P){var cA=iA;return String(T)[cA(3025)](P)!==-1})?iA(656):iA(3043)),U},overrideFetch:function(U){var m=_,gA,iA=this,T={name:this[m(2695)],then:function(P,cA,AA,yA){var NA=m,RA,pA;U.hostUrl&&-1<AA.indexOf(U.hostUrl)||(RA=P[NA(4602)]?P[NA(4602)][NA(491)](NA(1223)):"",RA=iA.getRequestType(U,RA,P[NA(2713)]),pA={url:P[NA(2713)],isHttps:F(P.url),method:(yA==null?void 0:yA[NA(1180)])||"get",duration:cA,type:RA,nextHopProtocol:"",status:P[NA(1219)]||0},NA(3043)===RA?P[NA(1517)]()[NA(1539)]().then(function(HA){var mA=NA,xx=(xx=U[mA(3640)])==null?void 0:xx[mA(3681)],hx=P[mA(1219)]<=0||400<=P.status,Ox=((Ox=U.api)==null?void 0:Ox[mA(2316)])||[],Mx=(Ox=LA(yA==null?void 0:yA[mA(4602)],Ox,mA(434)),((Mx=U.api)==null?void 0:Mx.resHeaders)||[]),Yx=(Mx=LA(P.headers,Mx,"res"),Rx(yA==null?void 0:yA[mA(4602)])),Qx=(kx=z(HA,U[mA(3640)],{url:AA,ctx:P}))[mA(2760)],kx=kx.isErr;xx=(hx?mA(1892)+HA+mA(1789):"")+mA(3830)+AA+mA(2474)+((yA==null?void 0:yA[mA(1180)])||mA(491))+`
|
||
|
|
|
||
|
|
req param: `+(xx?k(yA==null?void 0:yA[mA(2602)]):"")+`
|
||
|
|
|
||
|
|
res duration: `+cA+mA(1524)+(P[mA(1219)]||0)+`
|
||
|
|
|
||
|
|
res retcode: `+Qx+mA(1546)+(xx?HA:"")+mA(864)+Ox+mA(864)+Mx,pA[mA(4608)]=new j(P,HA),pA[mA(4035)]=Qx,pA[mA(4456)]=+kx,iA[mA(1249)]({msg:xx,level:hx?Z[mA(2947)]:kx?Z[mA(3503)]:Z[mA(1801)],code:Qx,trace:Yx})}):Object.assign(pA,{type:NA(656),urlQuery:xA(P[NA(2713)],!0),domainLookup:lA[NA(3259)],connectTime:lA.number}),iA[NA(1530)](pA))},catch:function(P,cA,AA,yA){var NA=m,RA,pA,HA;if(!(U[NA(1310)]&&-1<AA[NA(3025)](U.hostUrl)))throw RA=iA.getRequestType(U,"",AA),RA={url:AA,isHttps:F(AA),method:(yA==null?void 0:yA[NA(1180)])||"get",duration:cA,nextHopProtocol:"",type:RA,status:0},iA[NA(1530)](RA),RA=(RA=U[NA(3640)])==null?void 0:RA[NA(3681)],pA=((pA=U[NA(3640)])==null?void 0:pA.reqHeaders)||[],pA=LA(yA==null?void 0:yA[NA(4602)],pA,NA(434)),HA=Rx(yA==null?void 0:yA.headers),cA=NA(3049)+P+NA(3212)+cA+NA(499)+AA+`
|
||
|
|
|
||
|
|
req method: `+((yA==null?void 0:yA[NA(1180)])||NA(491))+NA(2829)+(RA?k(yA==null?void 0:yA[NA(2602)]):"")+NA(2079)+pA,iA.publishNormalLog({msg:cA,level:Z.AJAX_ERROR,code:-400,trace:HA}),P}},H=(this[m(1107)]=T,this[m(1107)]);if(vx.find(function(P){var cA=m;return P.name===H[cA(2695)]}))throw new Error(m(4660)+H[m(2695)]+m(2301));vx[m(1383)](H),!l0&&window[m(3043)]&&(l0=!0,gA=window[m(3043)],window[m(3043)]=function(P,cA){var AA=m;cA===void 0&&(cA={});for(var yA=AA(3752)==typeof P?P:P[AA(2713)],NA=0;NA<vx[AA(3553)];NA++){var RA=vx[NA];try{AA(4653)==typeof RA[AA(693)]&&RA[AA(693)](yA,cA)}catch(HA){}}var pA=Date[AA(1057)]();return gA(P,cA).then(function(HA){for(var mA=AA,xx=0;xx<vx.length;xx++){var hx=vx[xx];try{typeof hx[mA(3512)]=="function"&&hx[mA(3512)](HA,Date[mA(1057)]()-pA,yA,cA)}catch(Ox){}}return HA})[AA(2496)](function(HA){for(var mA=AA,xx=0;xx<vx.length;xx++){var hx=vx[xx];try{typeof hx[mA(2496)]=="function"&&hx[mA(2496)](HA,Date[mA(1057)]()-pA,yA,cA)}catch(Ox){}}throw HA})})},overrideXhr:function(U){var m=_,gA=this,iA={name:this[m(2695)],send:function(T,H){var P=m,cA=Date[P(1057)]();T.addEventListener(P(583),function(){var AA=P,yA,NA=T[AA(1360)]||"";if(NA&&!(U[AA(1310)]&&-1<NA[AA(3025)](U[AA(1310)]))){var RA=Date[AA(1057)]()-cA,pA=T[AA(3539)]("content-type"),HA=(pA=gA[AA(556)](U,pA,NA),{url:NA,isHttps:F(NA),status:T[AA(1219)]||0,method:T.aegisMethod||AA(491),type:pA,nextHopProtocol:"",duration:RA}),mA=((mA=U.api)==null?void 0:mA[AA(2316)])||[],xx=LA(T.aegisXhrReqHeader,mA,AA(434)),hx=(mA=((mA=U[AA(3640)])==null?void 0:mA[AA(3107)])||[],LA(Dx(T[AA(784)]()),mA,AA(3670))),Ox=Rx(T[AA(1912)]);if(AA(3043)===pA)try{var Mx=(yA=U[AA(3640)])==null?void 0:yA[AA(3681)];(function(Yx,Qx,kx,dx){var Bx=AA,Kx,jx,a0,Sx;try{if(Bx(4653)==typeof(Qx==null?void 0:Qx[Bx(1398)]))return Qx.retCodeHandlerAsync(Yx,kx==null?void 0:kx[Bx(2713)],kx==null?void 0:kx[Bx(2376)],function(qx){var S0=Bx,d0=qx[S0(2760)];qx=qx[S0(4456)],dx!=null&&dx({code:d0===void 0?"unknown":d0,isErr:qx})});if(typeof(Qx==null?void 0:Qx[Bx(1672)])=="function")return a0=(jx=Qx.retCodeHandler(Yx,kx==null?void 0:kx[Bx(2713)],kx==null?void 0:kx[Bx(2376)])||{})[Bx(2760)],Sx=jx[Bx(4456)],dx!=null&&dx({code:a0===void 0?Bx(1254):a0,isErr:Sx});Bx(3752)==typeof Yx&&(Yx=JSON[Bx(4163)](Yx)),typeof((Kx=Qx==null?void 0:Qx[Bx(4035)])==null?void 0:Kx[Bx(1721)])=="function"&&(v=[][Bx(4146)](Qx[Bx(4035)][Bx(2726)](function(qx){return qx.toLowerCase()})));var Jx=Object.getOwnPropertyNames(Yx)[Bx(2991)](function(qx){var S0=Bx;return v[S0(3025)](qx[S0(1765)]())!==-1});if(Jx[Bx(3553)])return a0=Yx[Jx[0]],dx!=null&&dx({code:""+a0,isErr:a0!==0&&a0!=="0"});dx!=null&&dx({code:Bx(1254),isErr:!1})}catch(qx){dx!=null&&dx({code:Bx(1254),isErr:!1})}})(T[AA(2711)],U[AA(3640)],{url:NA,ctx:T},function(Yx){var Qx=AA,kx=Yx[Qx(2760)],dx=(Yx=Yx[Qx(4456)],Qx(3431)+NA+Qx(1550)+HA.method+Qx(4481)+(Mx?k(H):"")+Qx(2888)+RA+Qx(2444)+HA[Qx(1219)]+Qx(1811)+kx+Qx(3350)+(Mx?k(T[Qx(2711)]):"")+Qx(4341)+xx+Qx(4341)+hx);HA[Qx(4035)]=kx,HA[Qx(4456)]=+Yx,gA[Qx(1249)]({msg:dx,level:Yx?Z.RET_ERROR:Z[Qx(1801)],code:kx,trace:Ox})})}catch(Yx){HA[AA(4035)]=AA(1254)}else Object[AA(1610)](HA,{type:AA(656),urlQuery:xA(NA,!0),domainLookup:lA[AA(3259)],connectTime:lA[AA(3259)]});gA[AA(1530)](HA)}})}};this[m(3871)]=iA,lx(this[m(3871)])},publishSpeed:function(U){var m=_,gA=this;this[m(1195)](function(iA){var T=m,H=gA[T(2289)](iA);U[T(4028)]==="fetch"&&H&&typeof H[T(942)]=="function"?iA[T(443)](q(q({},U),{url:xA(H[T(942)](U[T(2713)],U[T(4608)]))})):(U.url=xA(U[T(2713)]),iA[T(443)](U))})},publishNormalLog:function(U){var m=_;this[m(1195)](function(gA){var iA=m;gA[iA(2013)](U)})},destroy:function(){var U=_,m,gA;this.option[U(1530)]=function(){},this.option[U(1249)]=function(){},this[U(943)][U(3871)]&&Fx(this[U(943)][U(3871)]),this[U(943)][U(1107)]&&(m=this[U(943)][U(1107)],(gA=vx[U(2898)](function(iA){var T=U;return iA[T(2695)]===m[T(2695)]}))!==-1&&vx.splice(gA,1))}})),J0=new V({name:"reportBridgeSpeed",override:!1,onNewAegis:function(U){this.override||(this.override=!0,this.overrideBridge(U))},publishSpeed:function(U){var m=_;this[m(
|
||
|
|
`+Ox,level:Z[mA(2947)],trace:Mx}))}),RA[HA(3373)]("timeout",function(){var mA=HA;RA[mA(994)]="timeout"}),RA.addEventListener("error",function(){var mA=HA;RA[mA(994)]=mA(1045)}),RA[HA(3373)]("abort",function(){var mA=HA;RA[mA(994)]=mA(850)})}};this[m(3871)]=NA,lx(this.hackXHROptions),U[m(2998)][m(2900)]&&(NA={key:U.config.id+"-"+this.name,onErr:function(RA){var pA=m,HA;(HA=cA[pA(4507)])!=null&&HA[pA(779)](cA,RA)},sendErr:function(RA){var pA=m,HA;(HA=cA[pA(4507)])!=null&&HA[pA(779)](cA,RA)}},this[m(2520)]=NA,NA=this[m(2520)],window[m(3137)]&&window[m(3910)]&&(T=window[m(3910)],window&&!T[m(4208)]&&(H=new Proxy(WebSocket,u),T[m(4208)]=!0,window[m(3910)]=H),P=NA,L[m(4485)](function(RA){var pA=m;return RA[pA(4106)]===P.key})||P&&L[m(1383)](P)))},publishErrorLog:function(U){this.$walk(function(m){var gA=N;m[gA(2013)](U)})},publishWsErrorLog:function(U){var m=_,gA=U[m(4565)],iA=U[m(900)];U=U.readyState,this[m(4345)]({msg:m(2198)+gA+m(2303)+U+m(2504)+iA,level:Z[m(2612)]})},destroy:function(){var U=_,m,gA;this[U(943)][U(4345)]=function(){},this[U(943)][U(3871)]&&Fx(this[U(943)].hackXHROptions),this[U(943)][U(2520)]&&(m=this[U(943)][U(2520)],window[U(3910)]=K,(gA=L[U(2898)](function(iA){return iA.key===m.key}))!==-1&&L[U(1889)](gA,1))}}),IA=(new V({name:"pagePerformance"}),1),qA=new V({name:_(2119),onNewAegis:function(U){var m=_,gA=this;if(ux())if($x)this[m(4460)]($x,U);else try{this.getFirstScreenTiming(U,function(iA){var T=m,H=performance[T(4365)];H&&($x={dnsLookup:Hx(H[T(1430)]-H.domainLookupStart),tcp:Hx(H.connectEnd-H[T(3460)]),ssl:Hx(H[T(3788)]===0?0:H[T(4281)]-H[T(3788)]),ttfb:Hx(H.responseStart-H[T(4281)]),contentDownload:Hx(H[T(1833)]-H[T(3873)]),domParse:Hx(H[T(1658)]-H[T(1737)]),resourceDownload:Hx(H.loadEventStart-H[T(1658)],0,15e3,1070),firstScreenTiming:Hx(Math[T(3084)](iA),0,6e4)},(H=U[T(2998)])[T(1497)]&&JSON.stringify(H[T(1497)])!=="{}"&&(H=(iA=H[T(1497)]).engineInit,iA=iA[T(1749)],$x=q(q({},$x),{engineInit:Hx(H,0,1e4),bundleLoad:Hx(iA,0,1e4)})),gA[T(4460)]($x,U))})}catch(iA){}},publish:function(U,m){var gA=_,iA=this;m[gA(3387)]([function(T,H){var P=gA,cA,AA=[];for(cA in T)AA[P(1383)](cA+"="+T[cA]);var yA,NA=iA[P(2289)](m);if(NA)return yA=m[P(2998)][P(4497)][P(3025)]("?")===-1?"?":"&",P(4653)==typeof NA[P(942)]?H({url:m[P(2998)][P(4497)]+yA+AA[P(1721)]("&")+P(4311)+(encodeURIComponent(NA[P(942)]())||window[P(3963)][P(4304)]),beanFilter:["from"],type:y[P(2342)],log:T}):H({url:m.config.performanceUrl+yA+AA[P(1721)]("&"),type:y.PERFORMANCE,log:T})}],y[gA(2342)])(U)},getFirstScreenTiming:function(U,m){var gA=_;U[gA(3497)].on(gA(1165),function(){yA&&clearTimeout(yA)});var iA=this,T=[gA(429),"style",gA(1238),"br"],H=[],P={},cA=new MutationObserver(function(NA){var RA=gA,pA={roots:[],rootsDomNum:[],time:performance[RA(1057)]()};NA[RA(2067)](function(HA){var mA=RA;HA&&HA.addedNodes&&HA[mA(1810)][mA(2067)]&&HA[mA(1810)].forEach(function(xx){var hx=mA;xx[hx(1695)]===1&&(xx.hasAttribute(hx(3792))||xx[hx(1832)](hx(2299)))?(Object[hx(453)][hx(1454)][hx(4502)](P,[pA[hx(3263)]])||(P[pA.time]=[]),P[pA[hx(3263)]][hx(1383)](xx)):xx[hx(1695)]!==1||T[hx(3025)](xx[hx(2091)][hx(1160)]())!==-1||iA[hx(2799)](xx,pA.roots)||xx[hx(3980)](hx(1471))||(pA[hx(1422)][hx(1383)](xx),pA[hx(1875)][hx(1383)](iA[hx(3849)](xx)||0))})}),pA.roots[RA(3553)]&&H[RA(1383)](pA)}),AA=(cA[gA(4554)](document,{childList:!0,subtree:!0}),function(){var NA=gA,RA=0,pA=0,HA=Object[NA(905)](P)[NA(2991)](function(mA){return P[+mA].find(function(xx){return iA.isInFirstScreen(xx)})});HA.length?(pA=Math.max[NA(4502)](null,HA),(NA(1904)!=typeof((HA=U.config)==null?void 0:HA[NA(2119)])||(HA=U[NA(2998)][NA(2119)])!=null&&HA[NA(2833)])&&(U[NA(2833)]={element:(HA=P[pA])==null?void 0:HA[0],timing:pA,markDoms:P})):H[NA(2067)](function(mA){for(var xx=NA,hx,Ox=0;Ox<mA[xx(1422)][xx(3553)];Ox++)mA[xx(1875)][Ox]>RA&&iA[xx(1302)](mA[xx(1422)][Ox])&&(RA=mA[xx(1875)][Ox],pA=mA[xx(3263)],(xx(1904)!=typeof((hx=U.config)==null?void 0:hx[xx(2119)])||(hx=U[xx(2998)].pagePerformance)!=null&&hx[xx(2833)])&&(U.firstScreenInfo={element:mA[xx(1422)][Ox],timing:pA}))}),H[NA(3
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform float uAlpha;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
|
||
|
|
}
|
||
|
|
`,{uAlpha:1})||this;return IA[X(3744)]=l,IA}return vx(u,K),Object[L(4292)](u[L(453)],L(3744),{get:function(){var l=L;return this[l(3255)][l(2167)]},set:function(l){var X=L;this[X(3255)][X(2167)]=l},enumerable:!1,configurable:!0}),u}(y.wn),P0=_(8826),J0=_(1961),Hx=_(7659),$x=new b.y3;Z.s$[S(453)][S(4222)]=!1,Z.s$[S(453)]._cacheData=null,Z.s$[S(453)][S(2333)]=null,Z.s$[S(453)][S(3702)]=Hx.G5[S(2353)];var h0=function(){var K=S;this[K(3459)]=null,this[K(3953)]=null,this[K(2860)]=null,this[K(740)]=null,this[K(2168)]=null,this[K(820)]=null,this[K(741)]=null,this[K(4679)]=null,this[K(4669)]=null,this[K(2543)]=null,this[K(3118)]=null};Object.defineProperties(Z.s$.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(K){var L=S;K!==this[L(2333)]&&(this[L(2333)]=K,this.cacheAsBitmap&&(this[L(3341)]=!1,this[L(3341)]=!0))}},cacheAsBitmapMultisample:{get:function(){var K=S;return this[K(3702)]},set:function(K){var L=S;K!==this._cacheAsBitmapMultisample&&(this[L(3702)]=K,this[L(3341)]&&(this[L(3341)]=!1,this[L(3341)]=!0))}},cacheAsBitmap:{get:function(){var K=S;return this[K(4222)]},set:function(K){var L=S,u;this._cacheAsBitmap!==K&&(this[L(4222)]=K,K?(this[L(1227)]||(this._cacheData=new h0),(u=this[L(1227)])[L(3953)]=this[L(1930)],u.originalRenderCanvas=this[L(1476)],u[L(820)]=this[L(3248)],u[L(740)]=this[L(3166)],u.originalGetLocalBounds=this[L(2721)],u.originalDestroy=this[L(1165)],u[L(2543)]=this[L(2141)],u[L(4679)]=this[L(4102)],u[L(4669)]=this.filterArea,this.render=this._renderCached,this[L(1476)]=this[L(2802)],this.destroy=this._cacheAsBitmapDestroy):((u=this[L(1227)])[L(3118)]&&this[L(3201)](),this.render=u[L(3953)],this[L(1476)]=u[L(2860)],this.calculateBounds=u.originalCalculateBounds,this[L(2721)]=u.originalGetLocalBounds,this[L(1165)]=u[L(741)],this.updateTransform=u.originalUpdateTransform,this[L(2141)]=u.originalContainsPoint,this[L(4102)]=u[L(4679)],this[L(4141)]=u.originalFilterArea))}}}),Z.s$[S(453)][S(2204)]=function(K){var L=S;!this[L(422)]||this[L(602)]<=0||!this[L(4331)]||(this[L(654)](K),this[L(1227)][L(3118)].transform._worldID=this[L(992)][L(2369)],this[L(1227)].sprite.worldAlpha=this[L(602)],this[L(1227)][L(3118)][L(2903)](K))},Z.s$[S(453)][S(654)]=function(K){var L=S,u;if(!this._cacheData||!this[L(1227)][L(3118)]){var l=this[L(3744)];this[L(3744)]=1,K[L(3057)][L(1963)]();var X=this[L(2721)](null,!0)[L(1517)]();if(this[L(3701)]){var IA=this.filters[0][L(3835)];X[L(3790)](IA)}X[L(1500)](bA.X.RESOLUTION);var qA=K[L(3086)].current,Ix=K[L(3086)][L(2002)].clone(),mx=K[L(3086)].destinationFrame[L(1517)](),Tx=K.projection[L(992)],Vx=y.TI[L(1635)]({width:X[L(3461)],height:X[L(2383)],resolution:this[L(1772)]||K.resolution,multisample:(u=this[L(3601)])!==null&&u!==void 0?u:K[L(1758)]}),A0=L(4030)[L(4146)]((0,k[L(2112)])());this[L(1227)][L(3459)]=A0,y.VL[L(605)](Vx[L(775)],A0),y.xE.addToCache(Vx,A0);var g0=this[L(992)].localTransform[L(825)]($x).invert().translate(-X.x,-X.y);this[L(1930)]=this._cacheData.originalRender,K[L(1930)](this,{renderTexture:Vx,clear:!0,transform:g0,skipUpdateTransform:!1}),K.framebuffer.blit(),K.projection[L(992)]=Tx,K[L(3086)][L(3265)](qA,Ix,mx),this.render=this[L(2204)],this[L(3248)]=this.displayObjectUpdateTransform,this[L(3166)]=this[L(1041)],this.getLocalBounds=this[L(2395)],this[L(4102)]=null,this[L(4141)]=null,this[L(3744)]=l;var w0=new J0.j(Vx);w0[L(992)].worldTransform=this[L(992)][L(4573)],w0[L(3252)].x=-X.x/X[L(3461)],w0[L(3252)].y=-X.y/X[L(2383)],w0[L(3744)]=l,w0[L(3278)]=this[L(3278)],this._cacheData[L(3118)]=w0,this[L(992)]._parentID=-1,this.parent?this.updateTransform():(this[L(1456)](),this[L(3248)](),this[L(488)](null)),this.containsPoint=w0[L(2141)][L(3265)](w0)}},Z.s$[S(453)][S(2802)]=function(K){var L=S;!this[L(422)]||this.worldAlpha<=0||!this[L(4331)]||(this._initCachedDisplayObjectCanvas(K),this[L(1227)].sprite.worldAlpha=this[L(602)],this[L(1227)][L(3118)][L(3352)](K))},Z.s$[S(453)]._initCachedDisplayObjectCanvas=function(K){var L=S;if(!this[L(1227)]||!this[L(1227)].sprite){var u=this.getLocalBounds(null,!0),l=this[L(3744)]
|
||
|
|
`).map(function(kA,ax){var rx=g;return""[rx(4146)](ax,": ")[rx(4146)](kA)}),r=w[g(1103)](M),o=r.split(`
|
||
|
|
`),d={},R=o[g(2726)](function(kA){var ax=g;return parseFloat(kA[ax(3710)](/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(kA){return!(!kA||d[kA])&&(d[kA]=!0,!0)}),aA=[""];R[g(2067)](function(kA){var ax=g;i[kA-1]="%c".concat(i[kA-1],"%c"),aA[ax(1383)]("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var YA=i.join(`
|
||
|
|
`);aA[0]=YA,console[g(1045)](r),console[g(2949)][g(4502)](console,e0([],i0(aA),!1)),console[g(2831)]()}var f0,i2={},K=i2;function L(){var w=S;if(K===i2||K&&K.isContextLost()){var M=void 0;w(557)!=typeof document?M=document&&document.createElement("canvas"):w(557)!=typeof OffscreenCanvas&&(M=new OffscreenCanvas(1,1));var g=void 0;g||((g=M.getContext(w(4193),{}))?g.getExtension(w(3753)):g=null),K=g}return K}function u(w,M,g){var i=S;if(i(3543)!==w[i(1577)](0,9)){var r=M;return M===q.cB[i(1058)]&&g!==q.cB[i(1058)]&&(r=q.cB[i(1894)]),"precision "[i(4146)](r,i(1015))[i(4146)](w)}return g!==q.cB[i(1058)]&&w.substring(0,15)==="precision highp"?w.replace("precision highp",i(3842)):w}var l={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function X(w){return l[w]}var IA=null,qA={FLOAT:"float",FLOAT_VEC2:S(2442),FLOAT_VEC3:S(1953),FLOAT_VEC4:"vec4",INT:S(4239),INT_VEC2:S(2070),INT_VEC3:S(3099),INT_VEC4:S(1033),UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:S(4252),UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:S(1958),BOOL_VEC2:S(1186),BOOL_VEC3:S(797),BOOL_VEC4:"bvec4",FLOAT_MAT2:S(757),FLOAT_MAT3:S(3977),FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:S(798),UNSIGNED_INT_SAMPLER_2D:S(798),SAMPLER_CUBE:S(1009),INT_SAMPLER_CUBE:S(1009),UNSIGNED_INT_SAMPLER_CUBE:S(1009),SAMPLER_2D_ARRAY:S(3619),INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:S(3619)};function Ix(w,M){var g=S;if(!IA){var i=Object[g(905)](qA);IA={};for(var r=0;r<i[g(3553)];++r){var o=i[r];IA[w[o]]=qA[o]}}return IA[M]}var mx=[{test:function(w){var M=S;return M(2539)===w[M(4028)]&&w.size===1},code:function(w){var M=S;return M(2043)[M(4146)](w,M(4516))[M(4146)](w,`"].value)
|
||
|
|
{
|
||
|
|
ud["`)[M(4146)](w,M(717))[M(4146)](w,M(3750))[M(4146)](w,M(3343)).concat(w,M(3079))}},{test:function(w){var M=S;return(M(798)===w[M(4028)]||M(1009)===w[M(4028)]||w.type==="sampler2DArray")&&w[M(460)]===1&&!w[M(4518)]},code:function(w){var M=S;return M(4123)[M(4146)](w,`"], t);
|
||
|
|
|
||
|
|
if(ud["`)[M(4146)](w,M(546))[M(4146)](w,`"].value = t;
|
||
|
|
gl.uniform1i(ud["`)[M(4146)](w,`"].location, t);
|
||
|
|
; // eslint-disable-line max-len
|
||
|
|
}`)}},{test:function(w,M){var g=S;return g(3977)===w[g(4028)]&&w[g(460)]===1&&M.a!==void 0},code:function(w){var M=S;return M(4264)[M(4146)](w,'"].location, false, uv["')[M(4146)](w,`"].toArray(true));
|
||
|
|
`)},codeUbo:function(w){var M=S;return M(642).concat(w,M(1161))[M(4146)](w,M(2930))[M(4146)](w,M(3189))[M(4146)](w,M(3326))[M(4146)](w,M(2319)).concat(w,M(1719))[M(4146)](w,M(3903))[M(4146)](w,M(3297))[M(4146)](w,M(1317))[M(4146)](w,M(2931))[M(4146)](w,M(2591))}},{test:function(w,M){var g=S;return g(2442)===w[g(4028)]&&w[g(460)]===1&&M.x!==void 0},code:function(w){var M=S;return`
|
||
|
|
cv = ud["`[M(4146)](w,`"].value;
|
||
|
|
v = uv["`)[M(4146)](w,M(4601))[M(4146)](w,M(592))},codeUbo:function(w){var M=S;return M(2085)[M(4146)](w,M(2434))}},{test:function(w){var M=S;return M(2442)===w[M(4028)]&&w[M(460)]===1},code:function(w){var M=S;return M(1753)[M(4146)](w,`"].value;
|
||
|
|
v = uv["`)[M(4146)](w,M(2023)).concat(w,M(3442))}},{test:function(w,M){var g=S;return g(1315)===w[g(4028)]&&w.size===1&&M.width!==void 0},code:function(w){var M=S;return M(1753)[M(4146)](w,M(4656))[M(4146)](w,M(3151))[M(4146)](w,`"].location, v.x, v.y, v.width, v.height)
|
||
|
|
}`)},codeUbo:function(w){var M=S;return M(1179).concat(w,M(1869))}},{test:function(w){var M=S;return M(1315)===w[M(4028)]&&w[M(460)]===1},code:function(w){var M=S;return`
|
||
|
|
cv = ud["`[M(4146)](w,`"].value;
|
||
|
|
v = uv["`)[M(4146)](w,`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4f(ud["`)[M(4146)](w,`"].location, v[0], v[1], v[2], v[3])
|
||
|
|
}`)}}],Tx={float:S(2270),vec2:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2f(location, v[0], v[1])
|
||
|
|
}`,vec3:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3f(location, v[0], v[1], v[2])
|
||
|
|
}`,vec4:S(3139),int:S(2059),ivec2:S(4595),ivec3:S(2521),ivec4:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,uint:S(3328),uvec2:S(756),uvec3:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3ui(location, v[0], v[1], v[2]);
|
||
|
|
}`,uvec4:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,bool:`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
gl.uniform1i(location, v);
|
||
|
|
}`,bvec2:S(2232),bvec3:`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3i(location, v[0], v[1], v[2]);
|
||
|
|
}`,bvec4:S(1840),mat2:S(2126),mat3:S(1924),mat4:S(2744),sampler2D:S(2556),samplerCube:S(2556),sampler2DArray:S(2556)},Vx={float:S(4231),vec2:S(3563),vec3:S(2961),vec4:"gl.uniform4fv(location, v)",mat4:S(2744),mat3:S(1924),mat2:S(2126),int:"gl.uniform1iv(location, v)",ivec2:S(3986),ivec3:S(881),ivec4:S(1709),uint:S(1909),uvec2:"gl.uniform2uiv(location, v)",uvec3:S(3890),uvec4:S(649),bool:S(3799),bvec2:"gl.uniform2iv(location, v)",bvec3:S(881),bvec4:S(1709),sampler2D:S(3799),samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:S(3799)},A0,g0=[S(3321),S(3896),"float test = 0.1;","%forloop%",S(3663),"}"][S(1721)](`
|
||
|
|
`);function w0(w){for(var M=S,g="",i=0;i<w;++i)i>0&&(g+=M(1183)),i<w-1&&(g+=M(3870)[M(4146)](i,M(4505)));return g}function p0(w,M){var g=S;if(w===0)throw new Error(g(3693));for(var i=M[g(2311)](M[g(952)]);;){var r=g0.replace(/%forloop%/gi,w0(w));if(M[g(3347)](i,r),M[g(2506)](i),M.getShaderParameter(i,M[g(2476)]))break;w=w/2|0}return w}var Y0=0,B0={},o0=function(){var w=S;function M(g,i,r){var o=N;r===void 0&&(r="pixi-shader"),this.id=Y0++,this.vertexSrc=g||M.defaultVertexSrc,this[o(4129)]=i||M.defaultFragmentSrc,this[o(2503)]=this[o(2503)][o(1694)](),this[o(4129)]=this[o(4129)][o(1694)](),o(3070)!==this[o(2503)][o(1577)](0,8)&&(r=r[o(3710)](/\s+/g,"-"),B0[r]?(B0[r]++,r+="-"[o(4146)](B0[r])):B0[r]=1,this[o(2503)]=o(4670).concat(r,`
|
||
|
|
`)[o(4146)](this[o(2503)]),this[o(4129)]=o(4670).concat(r,`
|
||
|
|
`).concat(this[o(4129)]),this.vertexSrc=u(this[o(2503)],CA.X[o(2090)],q.cB[o(1058)]),this.fragmentSrc=u(this.fragmentSrc,CA.X[o(3636)],function(){var d=o;if(!f0){f0=q.cB.MEDIUM;var R=L();if(R&&R[d(4444)]){var aA=R[d(4444)](R[d(952)],R[d(3016)]);f0=aA.precision?q.cB[d(1058)]:q.cB[d(1894)]}}return f0}())),this[o(2060)]={},this[o(4089)]=null}return Object.defineProperty(M,w(2519),{get:function(){var g=w;return g(1478)},enumerable:!1,configurable:!0}),Object[w(4292)](M,w(3289),{get:function(){return`varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_FragColor *= texture2D(uSampler, vTextureCoord);
|
||
|
|
}`},enumerable:!1,configurable:!0}),M.from=function(g,i,r){var o=w,d=g+i,R=nA.ProgramCache[d];return R||(nA[o(2366)][d]=R=new M(g,i,r)),R},M}(),Q0=function(){var w=S;function M(g,i){this.uniformBindCount=0,this.program=g,this.uniformGroup=i?i instanceof u0?i:new u0(i):new u0({})}return M.prototype[w(2658)]=function(g,i){var r=w;if(i[r(3255)][g])return!0;for(var o in i[r(3255)]){var d=i.uniforms[o];if(d[r(3410)]&&this[r(2658)](g,d))return!0}return!1},M[w(453)][w(1165)]=function(){var g=w;this[g(3587)]=null},Object[w(4292)](M[w(453)],w(3255),{get:function(){var g=w;return this[g(3587)][g(3255)]},enumerable:!1,configurable:!0}),M[w(2252)]=function(g,i,r){var o=w;return new M(o0[o(2252)](g,i),r)},M}(),m0=function(){var w=S;function M(){var g=N;this[g(1381)]=0,this[g(4194)]=q.T$[g(2277)],this.polygonOffset=0,this[g(3613)]=!0,this[g(2640)]=!0}return Object[w(4292)](M[w(453)],w(3613),{get:function(){var g=w;return!!(1&this[g(1381)])},set:function(g){var i=w;!!(1&this[i(1381)])!==g&&(this[i(1381)]^=1)},enumerable:!1,configurable:!0}),Object[w(4292)](M[w(453)],w(2906),{get:function(){var g=w;return!!(2&this[g(1381)])},set:function(g){var i=w;!!(2&this[i(1381)])!==g&&(this[i(1381)]^=2)},enumerable:!1,configurable:!0}),Object[w(4292)](M[w(453)],w(4569),{get:function(){var g=w;return!!(4&this[g(1381)])},set:function(g){var i=w;!!(4&this[i(1381)])!==g&&(this[i(1381)]^=4)},enumerable:!1,configurable:!0}),Object[w(4292)](M[w(453)],w(1960),{get:function(){return!!(8&this.data)},set:function(g){var i=w;!!(8&this.data)!==g&&(this[i(1381)]^=8)},enumerable:!1,configurable:!0}),Object[w(4292)](M[w(453)],w(2640),{get:function(){var g=w;return!!(32&this[g(1381)])},set:function(g){var i=w;!!(32&this[i(1381)])!==g&&(this[i(1381)]^=32)},enumerable:!1,configurable:!0}),Object.defineProperty(M[w(453)],"clockwiseFrontFace",{get:function(){var g=w;return!!(16&this[g(1381)])},set:function(g){var i=w;!!(16&this.data)!==g&&(this[i(1381)]^=16)},enumerable:!1,configurable:!0}),Object[w(4292)](M[w(453)],w(4194),{get:function(){var g=w;return this[g(1797)]},set:function(g){var i=w;this[i(3613)]=g!==q.T$[i(2353)],this[i(1797)]=g},enumerable:!1,configurable:!0}),Object[w(4292)](M[w(453)],w(2411),{get:function(){var g=w;return this[g(2456)]},set:function(g){var i=w;this[i(2906)]=!!g,this._polygonOffset=g},enumerable:!1,configurable:!0}),M[w(453)][w(531)]=function(){var g=w;return g(2472)+"blendMode="[g(4146)](this.blendMode," ")+"clockwiseFrontFace=".concat(this[g(2890)]," ")+g(2315)[g(4146)](this[g(4569)]," ")+g(4552)[g(4146)](this[g(2640)]," ")+g(4255)[g(4146)](this[g(2411)])+"]"},M.for2d=function(){var g=w,i=new M;return i[g(1960)]=!1,i[g(3613)]=!0,i},M}(),o2=function(){var w=function(M,g){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){var o=N;for(var d in r)Object[o(453)][o(1454)][o(779)](r,d)&&(i[d]=r[d])},w(M,g)};return function(M,g){var i=N;if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+i(1667));function r(){var o=i;this[o(4586)]=M}w(M,g),M.prototype=g===null?Object[i(1635)](g):(r.prototype=g[i(453)],new r)}}(),E2=function(w){var M=S;function g(i,r,o){var d=N,R=this,aA=o0.from(i||g[d(2519)],r||g[d(3289)]);return(R=w[d(779)](this,aA,o)||this)[d(3835)]=0,R.resolution=CA.X.FILTER_RESOLUTION,R[d(1758)]=CA.X.FILTER_MULTISAMPLE,R.enabled=!0,R.autoFit=!0,R[d(2163)]=new m0,R}return o2(g,w),g[M(453)].apply=function(i,r,o,d,R){var aA=M;i[aA(3581)](this,r,o,d)},Object[M(4292)](g[M(453)],M(4194),{get:function(){var i=M;return this[i(2163)][i(4194)]},set:function(i){var r=M;this[r(2163)][r(4194)]=i},enumerable:!1,configurable:!0}),Object[M(4292)](g.prototype,M(4627),{get:function(){var i=M;return this[i(3054)]},set:function(i){var r=M;this[r(3054)]=i},enumerable:!1,configurable:!0}),Object[M(4292)](g,"defaultVertexSrc",{get:function(){var i=M;return i(1814)},enumerable:!1,configurable:!0}),Object[M(4292)](g,M(3289),{get:function(){var i=M;return i(2343)},enumerable:!1,configurable:!0}),g}(Q0),L0=new gx.y3,D0=function(){var w=S;function M(g,i){var r=N;this._texture=g
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
data[offset+2] = v[2];
|
||
|
|
|
||
|
|
`,vec4:S(890),mat2:S(2619),mat3:S(1519),mat4:S(4422)},P={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function cA(w){for(var M=S,g=w[M(2726)](function(YA){return{data:YA,offset:0,dataLen:0,dirty:0}}),i=0,r=0,o=0,d=0;d<g.length;d++){var R=g[d];if(i=P[R[M(1381)][M(4028)]],R[M(1381)].size>1&&(i=Math[M(2290)](i,16)*R[M(1381)].size),R[M(487)]=i,r%i!=0&&r<16){var aA=r%i%16;r+=aA,o+=aA}r+i>16?(o=16*Math[M(1500)](o/16),R.offset=o,o+=i,r=i):(R[M(2790)]=o,r+=i,o+=i)}return{uboElements:g,size:o=16*Math[M(1500)](o/16)}}function AA(w,M){var g=S,i=[];for(var r in w)M[r]&&i[g(1383)](M[r]);return i[g(2066)](function(o,d){var R=g;return o.index-d[R(1411)]}),i}function yA(w,M){var g=S;if(!w.autoManage)return{size:0,syncFunc:T};for(var i=cA(AA(w[g(3255)],M)),r=i[g(2756)],o=i[g(460)],d=[g(2641)],R=0;R<r[g(3553)];R++){for(var aA=r[R],YA=w[g(3255)][aA[g(1381)].name],kA=aA[g(1381)][g(2695)],ax=!1,rx=0;rx<mx[g(3553)];rx++){var Zx=mx[rx];if(Zx.codeUbo&&Zx.test(aA[g(1381)],YA)){d.push(g(853)[g(4146)](aA[g(2790)]/4,";"),mx[rx].codeUbo(aA.data[g(2695)],YA)),ax=!0;break}}if(!ax)if(aA.data.size>1){var px=X(aA[g(1381)].type),Lx=Math.max(P[aA[g(1381)].type]/16,1),c0=px/Lx,r0=(4-c0%4)%4;d[g(1383)](g(3741).concat(kA,g(4680))[g(4146)](kA,`;
|
||
|
|
offset = `)[g(4146)](aA[g(2790)]/4,`;
|
||
|
|
|
||
|
|
t = 0;
|
||
|
|
|
||
|
|
for(var i=0; i < `)[g(4146)](aA[g(1381)][g(460)]*Lx,`; i++)
|
||
|
|
{
|
||
|
|
for(var j = 0; j < `)[g(4146)](c0,g(4315)).concat(r0,g(2404)))}else{var n0=H[aA[g(1381)][g(4028)]];d.push(g(3741)[g(4146)](kA,g(4680))[g(4146)](kA,g(3820))[g(4146)](aA[g(2790)]/4,g(789))[g(4146)](n0,g(789)))}}return d.push(g(4070)),{size:o,syncFunc:new Function("ud","uv",g(509),g(4080),g(1079),d[g(1721)](`
|
||
|
|
`))}}var NA=function(){},RA=function(){var w=S;function M(g,i){var r=N;this[r(753)]=g,this[r(3652)]=i,this[r(1652)]={},this[r(1080)]={},this[r(1725)]={}}return M[w(453)][w(1165)]=function(){var g=w;this.uniformData=null,this[g(1652)]=null,this[g(1080)]=null,this.uniformBufferBindings=null,this[g(753)]=null},M}();function pA(w,M,g){var i=S,r=w.createShader(M);return w[i(3347)](r,g),w.compileShader(r),r}function HA(w){for(var M=S,g=new Array(w),i=0;i<g[M(3553)];i++)g[i]=!1;return g}function mA(w,M){var g=S;switch(w){case"float":case g(4239):case g(2025):case g(798):case g(3619):return 0;case"vec2":return new Float32Array(2*M);case g(1953):return new Float32Array(3*M);case"vec4":return new Float32Array(4*M);case g(2070):return new Int32Array(2*M);case"ivec3":return new Int32Array(3*M);case"ivec4":return new Int32Array(4*M);case"uvec2":return new Uint32Array(2*M);case g(3975):return new Uint32Array(3*M);case g(3857):return new Uint32Array(4*M);case g(1958):return!1;case g(1186):return HA(2*M);case g(797):return HA(3*M);case g(3607):return HA(4*M);case g(757):return new Float32Array([1,0,0,1]);case g(3977):return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}function xx(w,M){var g=S,i=pA(w,w[g(1968)],M[g(2503)]),r=pA(w,w[g(952)],M[g(4129)]),o=w.createProgram();if(w[g(3840)](o,i),w[g(3840)](o,r),w[g(2407)](o),w[g(1543)](o,w[g(3800)])||function(kA,ax,rx,Zx){var px=g;kA.getProgramParameter(ax,kA.LINK_STATUS)||(kA[px(2532)](rx,kA[px(2476)])||M0(kA,rx),kA[px(2532)](Zx,kA[px(2476)])||M0(kA,Zx),console[px(1045)]("PixiJS Error: Could not initialize shader."),kA[px(961)](ax)!==""&&console[px(2949)](px(2132),kA[px(961)](ax)))}(w,o,i,r),M[g(2124)]=function(kA,ax){for(var rx=g,Zx={},px=ax[rx(1543)](kA,ax.ACTIVE_ATTRIBUTES),Lx=0;Lx<px;Lx++){var c0=ax.getActiveAttrib(kA,Lx);if(c0[rx(2695)].indexOf(rx(2717))!==0){var r0=Ix(ax,c0[rx(4028)]),n0={type:r0,name:c0[rx(2695)],size:X(r0),location:ax[rx(2600)](kA,c0[rx(2695)])};Zx[c0[rx(2695)]]=n0}}return Zx}(o,w),M.uniformData=function(kA,ax){for(var rx=g,Zx={},px=ax.getProgramParameter(kA,ax.ACTIVE_UNIFORMS),Lx=0;Lx<px;Lx++){var c0=ax[rx(1020)](kA,Lx),r0=c0.name[rx(3710)](/\[.*?\]$/,""),n0=!!c0[rx(2695)][rx(476)](/\[.*?\]$/),D2=Ix(ax,c0[rx(4028)]);Zx[r0]={name:r0,index:Lx,type:D2,size:c0[rx(460)],isArray:n0,value:mA(D2,c0.size)}}return Zx}(o,w),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m[g(3972)](M[g(2503)])){var d=Object[g(905)](M[g(2124)]);d[g(2066)](function(kA,ax){return kA>ax?1:-1});for(var R=0;R<d[g(3553)];R++)M[g(2124)][d[R]][g(3963)]=R,w[g(1163)](o,R,d[R]);w[g(2407)](o)}w[g(2302)](i),w.deleteShader(r);var aA={};for(var R in M.uniformData){var YA=M[g(3652)][R];aA[R]={location:w.getUniformLocation(o,R),value:mA(YA.type,YA[g(460)])}}return new RA(o,aA)}var hx=0,Ox={textureCount:0,uboCount:0},Mx=function(){var w=S;function M(g){var i=N;this[i(4659)]=!1,this[i(509)]=g,this[i(4522)](),this.gl=null,this.shader=null,this[i(753)]=null,this[i(3946)]={},this[i(3481)]={},this.id=hx++}return M.prototype[w(4522)]=function(){var g=w;if(!function(){var i=N;if(typeof A0=="boolean")return A0;try{var r=new Function(i(508),i(3926),i(3109),i(3506));A0=r({a:"b"},"a","b")===!0}catch(o){A0=!1}return A0}())throw new Error(g(554))},M[w(453)][w(2634)]=function(g){var i=w;this.gl=g,this[i(2247)]()},M[w(453)][w(3265)]=function(g,i){var r=w;g[r(3255)][r(4238)]=this[r(509)][r(1602)];var o=g[r(753)],d=o[r(2060)][this[r(509)][r(420)]]||this.generateProgram(g);return this[r(4362)]=g,this.program!==o&&(this[r(753)]=o,this.gl[r(2453)](d[r(753)])),i||(Ox[r(1970)]=0,Ox[r(1070)]=0,this[r(584)](g[r(3587)],Ox)),d},M[w(453)][w(576)]=function(g){var i=w,r=this[i(4362)][i(753)],o=r[i(2060)][this[i(509)].CONTEXT_UID];r[i(4089)](o[i(3652)],g,this[i(509)])},M.prototype[w(584)]=function(g,i){var r=w,o=this[r(4532)]();g.static&&g[r(2944)]===o[r(1080)][g.id]||(o[r(1080)][g.id]=g[r(2944)],this[r(4089)](g,o,i))},M[w(453)][w(4089)]=function(g,i,r){var o=w;(g[o(4089)][this[o(4362)][o(753)].id]||this[o(3377)](g))(i[o(3652)],g.uniforms,this[o(509)],r)},M[w(453)][w(
|
||
|
|
var v = null;
|
||
|
|
var cv = null;
|
||
|
|
var cu = null;
|
||
|
|
var t = 0;
|
||
|
|
var gl = renderer.gl;
|
||
|
|
`];for(var kA in o.uniforms){var ax=d[kA];if(ax){for(var rx=o[R(3255)][kA],Zx=!1,px=0;px<mx[R(3553)];px++)if(mx[px].test(ax,rx)){YA[R(1383)](mx[px][R(2760)](kA,rx)),Zx=!0;break}if(!Zx){var Lx=(ax.size===1?Tx:Vx)[ax.type][R(3710)](R(3963),'ud["'.concat(kA,R(463)));YA[R(1383)](R(3818).concat(kA,`"];
|
||
|
|
cv = cu.value;
|
||
|
|
v = uv["`)[R(4146)](kA,R(4249))[R(4146)](Lx,";"))}}else!((aA=o[R(3255)][kA])===null||aA===void 0)&&aA.group&&(o.uniforms[kA][R(4401)]?YA.push(`
|
||
|
|
renderer.shader.syncUniformBufferGroup(uv.`[R(4146)](kA,R(1532)).concat(kA,`');
|
||
|
|
`)):YA.push(`
|
||
|
|
renderer.shader.syncUniformGroup(uv.`.concat(kA,R(3069))))}return new Function("ud","uv","renderer",R(4080),YA[R(1721)](`
|
||
|
|
`))}(g,this.shader[i(753)][i(3652)])),g.syncUniforms[this.shader[i(753)].id]=this[i(3946)][r],g[i(4089)][this[i(4362)].program.id]},M.prototype[w(2795)]=function(g,i){var r=w,o=this[r(4532)]();if(!g[r(656)]||g[r(2944)]!==0||!o[r(1652)][g.id]){g[r(2944)]=0;var d=o[r(1652)][g.id]||this[r(4223)](g,o,i);g[r(1079)].update(),d(o[r(3652)],g[r(3255)],this.renderer,Ox,g[r(1079)])}this[r(509)][r(1079)].bindBufferBase(g.buffer,o[r(1725)][i])},M[w(453)][w(4223)]=function(g,i,r){var o=w,d=this[o(509)].gl;this[o(509)][o(1079)][o(3265)](g[o(1079)]);var R=this.gl[o(2806)](i[o(753)],r);i[o(1725)][r]=this.shader[o(2570)],d.uniformBlockBinding(i.program,R,this[o(4362)][o(2570)]),this[o(4362)].uniformBindCount++;var aA=this[o(1632)](g,this.shader[o(753)].uniformData,o(4401)),YA=this[o(3481)][aA];if(YA||(YA=this[o(3481)][aA]=yA(g,this[o(4362)][o(753)].uniformData)),g[o(4303)]){var kA=new Float32Array(YA[o(460)]/4);g[o(1079)][o(1154)](kA)}return i.uniformGroups[g.id]=YA[o(2986)],i[o(1652)][g.id]},M.prototype[w(1632)]=function(g,i,r){var o=w,d=g[o(3255)],R=["".concat(r,"-")];for(var aA in d)R[o(1383)](aA),i[aA]&&R.push(i[aA][o(4028)]);return R[o(1721)]("-")},M[w(453)][w(4532)]=function(){var g=w;return this[g(4362)]?this[g(4362)][g(753)][g(2060)][this[g(509)][g(420)]]:null},M[w(453)][w(3204)]=function(g){var i=w,r=this.gl,o=g[i(753)],d=xx(r,o);return o[i(2060)][this[i(509)].CONTEXT_UID]=d,d},M.prototype[w(2247)]=function(){var g=w;this[g(753)]=null,this.shader=null},M[w(453)][w(1165)]=function(){var g=w;this[g(509)]=null,this.destroyed=!0},M}(),Yx=function(){var w=S;function M(){var g=N;this.gl=null,this[g(2973)]=0,this[g(2411)]=0,this[g(4194)]=q.T$[g(2353)],this[g(1933)]=!1,this[g(2726)]=[],this[g(2726)][0]=this.setBlend,this[g(2726)][1]=this[g(3116)],this[g(2726)][2]=this[g(2729)],this[g(2726)][3]=this.setDepthTest,this.map[4]=this[g(2492)],this[g(2726)][5]=this[g(1213)],this[g(703)]=[],this.defaultState=new m0,this[g(744)].blend=!0}return M[w(453)][w(2634)]=function(g){var i=w;this.gl=g,this.blendModes=function(r,o){var d=N;return o===void 0&&(o=[]),o[q.T$[d(2277)]]=[r[d(1665)],r[d(4119)]],o[q.T$[d(1893)]]=[r.ONE,r[d(1665)]],o[q.T$[d(600)]]=[r[d(3090)],r.ONE_MINUS_SRC_ALPHA,r[d(1665)],r[d(4119)]],o[q.T$[d(2166)]]=[r.ONE,r[d(3621)],r.ONE,r[d(4119)]],o[q.T$[d(834)]]=[r[d(1665)],r[d(4119)]],o[q.T$[d(3747)]]=[r[d(1665)],r.ONE_MINUS_SRC_ALPHA],o[q.T$[d(3823)]]=[r.ONE,r[d(4119)]],o[q.T$[d(2370)]]=[r[d(1665)],r.ONE_MINUS_SRC_ALPHA],o[q.T$[d(3589)]]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],o[q.T$[d(2309)]]=[r[d(1665)],r[d(4119)]],o[q.T$[d(1899)]]=[r[d(1665)],r[d(4119)]],o[q.T$.DIFFERENCE]=[r[d(1665)],r[d(4119)]],o[q.T$[d(1400)]]=[r[d(1665)],r[d(4119)]],o[q.T$[d(832)]]=[r[d(1665)],r[d(4119)]],o[q.T$[d(1556)]]=[r.ONE,r.ONE_MINUS_SRC_ALPHA],o[q.T$[d(1338)]]=[r[d(1665)],r[d(4119)]],o[q.T$[d(2178)]]=[r.ONE,r[d(4119)]],o[q.T$.NONE]=[0,0],o[q.T$.NORMAL_NPM]=[r[d(2611)],r.ONE_MINUS_SRC_ALPHA,r[d(1665)],r[d(4119)]],o[q.T$[d(844)]]=[r[d(2611)],r[d(1665)],r[d(1665)],r[d(1665)]],o[q.T$[d(4372)]]=[r.SRC_ALPHA,r[d(3621)],r.ONE,r.ONE_MINUS_SRC_ALPHA],o[q.T$.SRC_IN]=[r[d(502)],r.ZERO],o[q.T$[d(3988)]]=[r[d(3690)],r[d(1750)]],o[q.T$[d(3239)]]=[r[d(502)],r[d(4119)]],o[q.T$.DST_OVER]=[r[d(3690)],r[d(1665)]],o[q.T$.DST_IN]=[r[d(1750)],r[d(2611)]],o[q.T$[d(2417)]]=[r[d(1750)],r[d(4119)]],o[q.T$[d(3847)]]=[r[d(3690)],r[d(2611)]],o[q.T$[d(3598)]]=[r.ONE_MINUS_DST_ALPHA,r[d(4119)]],o[q.T$[d(2464)]]=[r.ONE,r.ONE,r.ONE,r.ONE,r.FUNC_REVERSE_SUBTRACT,r[d(1405)]],o}(g),this[i(2306)](this.defaultState),this.reset()},M.prototype[w(2306)]=function(g){var i=w;if(g=g||this[i(744)],this.stateId!==g[i(1381)]){for(var r=this[i(2973)]^g[i(1381)],o=0;r;)1&r&&this.map[o][i(779)](this,!!(g[i(1381)]&1<<o)),r>>=1,o++;this[i(2973)]=g[i(1381)]}for(o=0;o<this.checks.length;o++)this[i(703)][o](this,g)},M.prototype.forceState=function(g){var i=w;g=g||this.defaultState;for(var r=0;r<this.map[i(3553)];r++)this[i(2726)][r][i(779)](this,!!(g.data&1<<r));for(r=0;r<this[i(703)][i(3553)];r++)this[i(703)][r](this,g);this[i(2973)]=g.data},M.prototype.setBlend=function(g){var i=w;this[i(2269)](M.checkBlendMode,g),t
|
||
|
|
`,r+=`
|
||
|
|
`;for(var o=0;o<g;o++)o>0&&(r+=i(1183)),o<g-1&&(r+="if(vTextureId < "[i(4146)](o,i(1575))),r+=`
|
||
|
|
{`,r+=i(4004).concat(o,i(3974)),r+=`
|
||
|
|
}`;return r+=`
|
||
|
|
`,r+=`
|
||
|
|
`},M}(),V0=function(){var w=function(M,g){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){var o=N;i[o(3536)]=r}||function(i,r){var o=N;for(var d in r)Object[o(453)].hasOwnProperty[o(779)](r,d)&&(i[d]=r[d])},w(M,g)};return function(M,g){var i=N;if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+i(1667));function r(){this.constructor=M}w(M,g),M.prototype=g===null?Object[i(1635)](g):(r[i(453)]=g[i(453)],new r)}}(),f2=function(w){function M(g){var i=N;g===void 0&&(g=!1);var r=w[i(779)](this)||this;return r[i(846)]=new JA(null,g,!1),r[i(4623)]=new JA(null,g,!0),r[i(532)]("aVertexPosition",r[i(846)],2,!1,q.vK[i(772)])[i(532)](i(2405),r._buffer,2,!1,q.vK.FLOAT)[i(532)](i(1004),r[i(846)],4,!0,q.vK[i(2151)])[i(532)](i(1295),r[i(846)],1,!0,q.vK[i(772)])[i(1581)](r._indexBuffer),r}return V0(M,w),M}(Fx);let y0=`precision highp float;
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
attribute vec4 aColor;
|
||
|
|
attribute float aTextureId;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform vec4 tint;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
vTextureId = aTextureId;
|
||
|
|
vColor = aColor * tint;
|
||
|
|
}
|
||
|
|
`,A2=S(2691);var U0=function(){var w=function(M,g){var i=N;return w=Object[i(4393)]||{__proto__:[]}instanceof Array&&function(r,o){var d=i;r[d(3536)]=o}||function(r,o){var d=i;for(var R in o)Object.prototype[d(1454)][d(779)](o,R)&&(r[R]=o[R])},w(M,g)};return function(M,g){var i=N;if(i(4653)!=typeof g&&g!==null)throw new TypeError(i(2943)+String(g)+" is not a constructor or null");function r(){var o=i;this[o(4586)]=M}w(M,g),M[i(453)]=g===null?Object[i(1635)](g):(r[i(453)]=g.prototype,new r)}}(),u2=function(){var w=S;function M(){}return M.create=function(g){var i=N,r=Object.assign({vertex:y0,fragment:A2,geometryClass:f2,vertexSize:6},g),o=r[i(2158)],d=r[i(3041)],R=r[i(4274)],aA=r.geometryClass;return function(YA){function kA(ax){var rx=N,Zx=YA.call(this,ax)||this;return Zx[rx(586)]=new $0(o,d),Zx[rx(3313)]=aA,Zx[rx(4274)]=R,Zx}return U0(kA,YA),kA}(K0)},Object.defineProperty(M,w(2519),{get:function(){return y0},enumerable:!1,configurable:!0}),Object.defineProperty(M,w(692),{get:function(){return A2},enumerable:!1,configurable:!0}),M}(),k2=u2[S(1635)](),l2={},p2=function(w){var M=S;Object[M(4292)](l2,w,{get:function(){var g=M;return(0,nA[g(4629)])(g(3932),g(3033)[g(4146)](w," has moved to PIXI.")[g(4146)](w)),vA[w]}})};for(var w2 in vA)p2(w2);var Z2={},n2=function(w){var M=S;Object[M(4292)](Z2,w,{get:function(){var g=M;return(0,nA[g(4629)])(g(3932),g(3323)[g(4146)](w,g(2815))[g(4146)](w)),UA[w]}})};for(var w2 in UA)n2(w2)},519:(G,zA,_)=>{var S=N;_.d(zA,{YZ:()=>q,W2:()=>W,s$:()=>lA,Ql:()=>hA});var vA=_(6787);vA.X.SORTABLE_CHILDREN=!1;var UA,CA=_(1893),q=function(){var xA=N;function F(){var z=N;this.minX=1/0,this[z(4019)]=1/0,this[z(4027)]=-1/0,this.maxY=-1/0,this[z(2770)]=null,this[z(2236)]=-1}return F[xA(453)].isEmpty=function(){var z=xA;return this.minX>this.maxX||this[z(4019)]>this[z(2687)]},F[xA(453)][xA(2341)]=function(){var z=xA;this[z(4285)]=1/0,this[z(4019)]=1/0,this[z(4027)]=-1/0,this[z(2687)]=-1/0},F[xA(453)][xA(3108)]=function(z){var k=xA;return this[k(4285)]>this[k(4027)]||this[k(4019)]>this.maxY?CA.Ae[k(1915)]:((z=z||new CA.Ae(0,0,1,1)).x=this.minX,z.y=this.minY,z.width=this[k(4027)]-this[k(4285)],z.height=this.maxY-this.minY,z)},F[xA(453)][xA(1408)]=function(z){var k=xA;this[k(4285)]=Math.min(this[k(4285)],z.x),this[k(4027)]=Math.max(this[k(4027)],z.x),this[k(4019)]=Math[k(4534)](this.minY,z.y),this[k(2687)]=Math.max(this[k(2687)],z.y)},F[xA(453)][xA(4348)]=function(z,k){var Z=xA,y=z.a,I=z.b,Y=z.c,b=z.d,v=z.tx,p=z.ty,E=y*k.x+Y*k.y+v,C=I*k.x+b*k.y+p;this[Z(4285)]=Math.min(this.minX,E),this[Z(4027)]=Math.max(this.maxX,E),this[Z(4019)]=Math[Z(4534)](this[Z(4019)],C),this[Z(2687)]=Math[Z(2290)](this[Z(2687)],C)},F[xA(453)][xA(3964)]=function(z){var k=xA,Z=this[k(4285)],y=this[k(4019)],I=this[k(4027)],Y=this[k(2687)],b=z[0],v=z[1];Z=b<Z?b:Z,y=v<y?v:y,I=b>I?b:I,Y=v>Y?v:Y,Z=(b=z[2])<Z?b:Z,y=(v=z[3])<y?v:y,I=b>I?b:I,Y=v>Y?v:Y,Z=(b=z[4])<Z?b:Z,y=(v=z[5])<y?v:y,I=b>I?b:I,Y=v>Y?v:Y,Z=(b=z[6])<Z?b:Z,y=(v=z[7])<y?v:y,I=b>I?b:I,Y=v>Y?v:Y,this[k(4285)]=Z,this.minY=y,this[k(4027)]=I,this[k(2687)]=Y},F.prototype[xA(2424)]=function(z,k,Z,y,I){var Y=xA;this[Y(824)](z[Y(4573)],k,Z,y,I)},F[xA(453)][xA(824)]=function(z,k,Z,y,I){var Y=xA,b=z.a,v=z.b,p=z.c,E=z.d,C=z.tx,j=z.ty,$=this.minX,fA=this[Y(4019)],dA=this[Y(4027)],EA=this.maxY,GA=b*k+p*Z+C,FA=v*k+E*Z+j;$=GA<$?GA:$,fA=FA<fA?FA:fA,dA=GA>dA?GA:dA,EA=FA>EA?FA:EA,$=(GA=b*y+p*Z+C)<$?GA:$,fA=(FA=v*y+E*Z+j)<fA?FA:fA,dA=GA>dA?GA:dA,EA=FA>EA?FA:EA,$=(GA=b*k+p*I+C)<$?GA:$,fA=(FA=v*k+E*I+j)<fA?FA:fA,dA=GA>dA?GA:dA,EA=FA>EA?FA:EA,$=(GA=b*y+p*I+C)<$?GA:$,fA=(FA=v*y+E*I+j)<fA?FA:fA,dA=GA>dA?GA:dA,EA=FA>EA?FA:EA,this.minX=$,this[Y(4019)]=fA,this.maxX=dA,this[Y(2687)]=EA},F[xA(453)][xA(2701)]=function(z,k,Z){for(var y=xA,I=this[y(4285)],Y=this[y(4019)],b=this[y(4027)],v=this[y(2687)],p=k;p<Z;p+=2){var E=z[p],C=z[p+1];I=E<I?E:I,Y=C<Y?C:Y,b=E>b?E:b,v=C>v?C:v}this.minX=I,this.minY=Y,this[y(4027)]=b,this[y(2687)]=v},F.prototype[xA(2642)]=function(z,k,Z,y){var I=xA;this.addVerticesMatrix(z[I(4573)],k,Z,y)},F[xA(453)].addVerticesMatrix=function(z,k,Z,y,I,Y){var b=xA;I===void 0&&(I=0),Y===void 0&&(Y=
|
||
|
|
`),OA,sA=_(7659),lA=(OA=function(rA,W){var xA=S;return OA=Object[xA(4393)]||{__proto__:[]}instanceof Array&&function(F,z){var k=xA;F[k(3536)]=z}||function(F,z){var k=xA;for(var Z in z)Object[k(453)][k(1454)][k(779)](z,Z)&&(F[Z]=z[Z])},OA(rA,W)},function(rA,W){var xA=S;if(xA(4653)!=typeof W&&W!==null)throw new TypeError(xA(2943)+String(W)+xA(1667));function F(){var z=xA;this[z(4586)]=rA}OA(rA,W),rA[xA(453)]=W===null?Object[xA(1635)](W):(F.prototype=W.prototype,new F)}),hA=function(rA){var W=S;function xA(F,z,k,Z,y){var I=N;z===void 0&&(z=8),k===void 0&&(k=4),Z===void 0&&(Z=UA.X[I(2625)]),y===void 0&&(y=5);var Y=this,b=function(p,E){var C=I,j,$=Math[C(1500)](p/2),fA=`
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
uniform float strength;
|
||
|
|
|
||
|
|
varying vec2 vBlurTexCoords[%size%];
|
||
|
|
|
||
|
|
uniform vec4 inputSize;
|
||
|
|
uniform vec4 outputFrame;
|
||
|
|
|
||
|
|
vec4 filterVertexPosition( void )
|
||
|
|
{
|
||
|
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
|
||
|
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 filterTextureCoord( void )
|
||
|
|
{
|
||
|
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
|
}
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = filterVertexPosition();
|
||
|
|
|
||
|
|
vec2 textureCoord = filterTextureCoord();
|
||
|
|
%blur%
|
||
|
|
}`,dA="";j=C(E?725:1781);for(var EA=0;EA<p;EA++){var GA=j.replace(C(2072),EA[C(531)]());dA+=GA=GA.replace(C(430),"".concat(EA-($-1),".0")),dA+=`
|
||
|
|
`}return(fA=fA[C(3710)](C(2114),dA))[C(3710)](C(3694),p[C(531)]())}(y,F),v=function(p){for(var E=I,C,j=CA[p],$=j[E(3553)],fA=q,dA="",EA=0;EA<p;EA++){var GA=E(803)[E(3710)](E(2072),EA[E(531)]());C=EA,EA>=$&&(C=p-EA-1),dA+=GA=GA[E(3710)](E(2047),j[C].toString()),dA+=`
|
||
|
|
`}return(fA=fA[E(3710)](E(2114),dA)).replace(E(3694),p[E(531)]())}(y);return(Y=rA.call(this,b,v)||this).horizontal=F,Y[I(4627)]=Z,Y[I(2039)]=0,Y.quality=k,Y[I(3516)]=z,Y}return lA(xA,rA),xA[W(453)][W(4502)]=function(F,z,k,Z){var y=W;if(k?this.horizontal?this[y(3255)][y(3290)]=1/k.width*(k[y(3461)]/z.width):this[y(3255)][y(3290)]=1/k[y(2383)]*(k[y(2383)]/z[y(2383)]):this[y(2461)]?this[y(3255)].strength=1/F.renderer.width*(F.renderer[y(3461)]/z[y(3461)]):this.uniforms[y(3290)]=1/F[y(509)][y(2383)]*(F[y(509)].height/z[y(2383)]),this.uniforms[y(3290)]*=this[y(3290)],this[y(3255)].strength/=this.passes,this[y(1413)]===1)F[y(3581)](this,z,k,Z);else{var I=F.getFilterTexture(),Y=F[y(509)],b=z,v=I;this[y(2163)][y(3613)]=!1,F[y(3581)](this,b,v,sA.yl[y(4069)]);for(var p=1;p<this[y(1413)]-1;p++){F.bindAndClear(b,sA.yl[y(3165)]),this[y(3255)][y(2192)]=v;var E=v;v=b,b=E,Y.shader[y(3265)](this),Y[y(2478)][y(855)](5)}this[y(2163)][y(3613)]=!0,F[y(3581)](this,v,k,Z),F[y(4210)](I)}},Object.defineProperty(xA[W(453)],W(3516),{get:function(){var F=W;return this[F(3290)]},set:function(F){var z=W;this.padding=1+2*Math[z(2136)](F),this[z(3290)]=F},enumerable:!1,configurable:!0}),Object[W(4292)](xA[W(453)],W(3192),{get:function(){var F=W;return this[F(2039)]},set:function(F){var z=W;this[z(2039)]=F,this[z(1413)]=F},enumerable:!1,configurable:!0}),xA}(vA.wn),tA=function(){var rA=function(W,xA){var F=N;return rA=Object[F(4393)]||{__proto__:[]}instanceof Array&&function(z,k){var Z=F;z[Z(3536)]=k}||function(z,k){var Z=F;for(var y in k)Object[Z(453)][Z(1454)][Z(779)](k,y)&&(z[y]=k[y])},rA(W,xA)};return function(W,xA){var F=N;if(F(4653)!=typeof xA&&xA!==null)throw new TypeError(F(2943)+String(xA)+" is not a constructor or null");function z(){var k=F;this[k(4586)]=W}rA(W,xA),W[F(453)]=xA===null?Object[F(1635)](xA):(z[F(453)]=xA[F(453)],new z)}}(),nA=function(rA){var W=S;function xA(F,z,k,Z){var y=N;F===void 0&&(F=8),z===void 0&&(z=4),k===void 0&&(k=UA.X[y(2625)]),Z===void 0&&(Z=5);var I=rA[y(779)](this)||this;return I.blurXFilter=new hA(!0,F,z,k,Z),I[y(3167)]=new hA(!1,F,z,k,Z),I.resolution=k,I[y(3192)]=z,I[y(3516)]=F,I[y(1580)]=!1,I}return tA(xA,rA),xA[W(453)].apply=function(F,z,k,Z){var y=W,I=Math[y(2136)](this[y(4501)].strength),Y=Math.abs(this[y(3167)].strength);if(I&&Y){var b=F.getFilterTexture();this[y(4501)][y(4502)](F,z,b,sA.yl[y(4069)]),this[y(3167)][y(4502)](F,b,k,Z),F[y(4210)](b)}else Y?this[y(3167)][y(4502)](F,z,k,Z):this[y(4501)][y(4502)](F,z,k,Z)},xA[W(453)][W(3261)]=function(){var F=W;this[F(983)]?this[F(3835)]=0:this.padding=2*Math[F(2290)](Math.abs(this[F(4501)][F(3290)]),Math[F(2136)](this[F(3167)][F(3290)]))},Object[W(4292)](xA[W(453)],W(3516),{get:function(){return this.blurXFilter.blur},set:function(F){var z=W;this[z(4501)].blur=this[z(3167)][z(3516)]=F,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(xA[W(453)],W(3192),{get:function(){var F=W;return this[F(4501)].quality},set:function(F){var z=W;this[z(4501)][z(3192)]=this[z(3167)][z(3192)]=F},enumerable:!1,configurable:!0}),Object[W(4292)](xA[W(453)],W(2620),{get:function(){var F=W;return this[F(4501)][F(3516)]},set:function(F){var z=W;this[z(4501)][z(3516)]=F,this.updatePadding()},enumerable:!1,configurable:!0}),Object[W(4292)](xA[W(453)],"blurY",{get:function(){var F=W;return this.blurYFilter[F(3516)]},set:function(F){var z=W;this[z(3167)][z(3516)]=F,this[z(3261)]()},enumerable:!1,configurable:!0}),Object[W(4292)](xA[W(453)],"blendMode",{get:function(){var F=W;return this[F(3167)].blendMode},set:function(F){var z=W;this.blurYFilter[z(4194)]=F},enumerable:!1,configurable:!0}),Object[W(4292)](xA[W(453)],W(1580),{get:function(){var F=W;return this[F(983)]},set:function(F){var z=W;this[z(983)]=F,this[z(3261)]()},enumerable:!1,configurable:!0}),xA}(vA.wn)},4775:(G,zA,_)=>{var S=N,vA,UA;_.d(zA,{ft:()=>OA,wA:()=>CA,TC:()=>yx,iM:()=>fA,RB:()=>$A,$o:()=>UA,S:()=>vA,TD:()=>ux,yR:()=>gx}),function(tx){var MA=N;tx[MA(3812)]=MA(1399),tx[MA(1423)]="bevel",tx[MA(4361)]=MA(3775)}(vA||(vA={})),function(tx){var MA=N;tx.BUTT=MA(3303),tx.ROUND="round",tx.SQUARE=MA(2918)
|
||
|
|
`):v},b[Y(2909)]=function(v,p,E,C){var j=Y,$=E[v];if(j(3259)!=typeof $){var fA=v.length*p;$=C[j(2382)](v)[j(3461)]+fA,E[v]=$}return $},b.collapseSpaces=function(v){var p=Y;return p(3855)===v||p(3284)===v},b[Y(1128)]=function(v){return v==="normal"},b.trimRight=function(v){var p=Y;if(p(3752)!=typeof v)return"";for(var E=v.length-1;E>=0;E--){var C=v[E];if(!b[p(4282)](C))break;v=v[p(973)](0,-1)}return v},b[Y(1329)]=function(v){var p=Y;return p(3752)==typeof v&&b._newlines[p(3025)](v.charCodeAt(0))>=0},b[Y(4282)]=function(v,p){var E=Y;return E(3752)==typeof v&&b[E(899)].indexOf(v.charCodeAt(0))>=0},b[Y(2572)]=function(v){var p=Y,E=[],C="";if(p(3752)!=typeof v)return E;for(var j=0;j<v.length;j++){var $=v[j],fA=v[j+1];b[p(4282)]($,fA)||b[p(1329)]($)?(C!==""&&(E[p(1383)](C),C=""),E[p(1383)]($)):C+=$}return C!==""&&E.push(C),E},b[Y(4570)]=function(v,p){return p},b.canBreakChars=function(v,p,E,C,j){return!0},b[Y(2573)]=function(v){var p=Y;return v[p(615)]("")},b[Y(1564)]=function(v){var p=Y;if(b._fonts[v])return b[p(2546)][v];var E={ascent:0,descent:0,fontSize:0},C=b._canvas,j=b[p(1115)];j.font=v;var $=b.METRICS_STRING+b.BASELINE_SYMBOL,fA=Math[p(1500)](j[p(2382)]($)[p(3461)]),dA=Math[p(1500)](j[p(2382)](b[p(4059)])[p(3461)]),EA=Math[p(1500)](b[p(2008)]*dA);dA=dA*b[p(3881)]|0,C[p(3461)]=fA,C[p(2383)]=EA,j[p(3029)]=p(1865),j[p(2201)](0,0,fA,EA),j.font=v,j[p(471)]="alphabetic",j[p(3029)]="#000",j[p(549)]($,0,dA);var GA=j[p(3807)](0,0,fA,EA)[p(1381)],FA=GA[p(3553)],$A=4*fA,sx=0,ux=0,Ex=!1;for(sx=0;sx<dA;++sx){for(var Ux=0;Ux<$A;Ux+=4)if(GA[ux+Ux]!==255){Ex=!0;break}if(Ex)break;ux+=$A}for(E.ascent=dA-sx,ux=FA-$A,Ex=!1,sx=EA;sx>dA;--sx){for(Ux=0;Ux<$A;Ux+=4)if(GA[ux+Ux]!==255){Ex=!0;break}if(Ex)break;ux-=$A}return E[p(889)]=sx-dA,E[p(3576)]=E[p(3295)]+E[p(889)],b._fonts[v]=E,E},b[Y(3602)]=function(v){var p=Y;v===void 0&&(v=""),v?delete b[p(2546)][v]:b[p(2546)]={}},b}(),F=function(){var Y=S;try{var b=new OffscreenCanvas(0,0),v=b[Y(923)]("2d");return v&&v[Y(2382)]?b:document&&document.createElement(Y(3751))}catch(p){return document&&document.createElement(Y(3751))}}();F[S(3461)]=F[S(2383)]=10,xA[S(3918)]=F,xA[S(1115)]=F.getContext("2d"),xA[S(2546)]={},xA[S(2531)]=S(1e3),xA[S(4059)]="M",xA.BASELINE_MULTIPLIER=1.4,xA[S(2008)]=2,xA[S(1896)]=[10,13],xA[S(899)]=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var z,k=(z=function(Y,b){var v=S;return z=Object[v(4393)]||{__proto__:[]}instanceof Array&&function(p,E){var C=v;p[C(3536)]=E}||function(p,E){var C=v;for(var j in E)Object.prototype[C(1454)][C(779)](E,j)&&(p[j]=E[j])},z(Y,b)},function(Y,b){var v=S;if(typeof b!="function"&&b!==null)throw new TypeError(v(2943)+String(b)+v(1667));function p(){var E=v;this[E(4586)]=Y}z(Y,b),Y.prototype=b===null?Object[v(1635)](b):(p[v(453)]=b[v(453)],new p)}),Z={texture:!0,children:!1,baseTexture:!0},y=S(557)!=typeof document&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D[S(453)]),I=function(Y){var b=S;function v(p,E,C){var j=N,$=this,fA=!1;C||(C=document[j(514)]("canvas"),fA=!0),C[j(3461)]=3,C[j(2383)]=3;var dA=CA.xE[j(2252)](C);return dA[j(4273)]=new OA.Ae,dA.trim=new OA.Ae,($=Y[j(779)](this,dA)||this)[j(4571)]=fA,$[j(3751)]=C,$[j(4259)]=$[j(3751)].getContext("2d"),$[j(3054)]=q.X[j(975)],$[j(541)]=!0,$[j(3570)]=null,$[j(664)]=null,$._styleListener=null,$[j(4405)]="",$[j(1539)]=p,$[j(1502)]=E,$.localStyleID=-1,$}return k(v,Y),v[b(453)][b(2406)]=function(p){var E=b,C=this[E(664)];if(this[E(3338)]!==C[E(3526)]&&(this[E(1511)]=!0,this.localStyleID=C[E(3526)]),this[E(1511)]||!p){this[E(4405)]=this[E(664)][E(3346)]();var j,$,fA=this.context,dA=xA.measureText(this[E(3570)]||" ",this._style,this[E(664)][E(1251)],this[E(3751)]),EA=dA[E(3461)],GA=dA[E(2383)],FA=dA[E(1701)],$A=dA[E(3040)],sx=dA[E(3071)],ux=dA[E(2965)],Ex=dA[E(4090)];this[E(3751)].width=Math.ceil(Math.ceil(Math[E(2290)](1,EA)+2*C[E(3835)])*this[E(3054)]),this[E(3751)][E(2383)]=Math[E(1500)](Math[E(1500)](Math[E(2290)](1,GA)+2*C[E(3835)])*this[E(3054)]),fA.scale(this[E(3054)],this[E(3054)]),fA[E(3887)](0,0,this[E(3751)].width,
|
||
|
|
`)[JA(1889)](wA)[JA(1721)](`
|
||
|
|
`),console.warn(JA(2827),""[JA(4146)](QA,JA(3983))[JA(4146)](DA)),console[JA(2949)](jA)),sx[QA]=!0}}var Ex={},Ux=Object[S(1635)](null),ox=Object[S(1635)](null);function yx(){var DA=S,QA;for(QA in Ux)Ux[QA][DA(1165)]();for(QA in ox)ox[QA][DA(1165)]()}function gx(){var DA;for(DA in Ux)delete Ux[DA];for(DA in ox)delete ox[DA]}var tx=function(){var DA=S;function QA(wA,JA,jA){var cx=N;this[cx(3751)]=document[cx(514)]("canvas"),wx&&cx(557)!=typeof wx&&(this[cx(3751)]=wx[cx(950)]("2d")),this[cx(4259)]=this[cx(3751)].getContext("2d"),this[cx(4627)]=jA||vA.X.RESOLUTION,this.resize(wA,JA)}return QA.prototype[DA(2341)]=function(){var wA=DA;this.context.setTransform(1,0,0,1,0,0),this[wA(4259)][wA(3887)](0,0,this[wA(3751)][wA(3461)],this[wA(3751)][wA(2383)])},QA.prototype[DA(1440)]=function(wA,JA){var jA=DA;this[jA(3751)][jA(3461)]=Math[jA(3775)](wA*this[jA(4627)]),this[jA(3751)][jA(2383)]=Math[jA(3775)](JA*this[jA(4627)])},QA.prototype[DA(1165)]=function(){var wA=DA;this[wA(4259)]=null,this[wA(3751)]=null},Object[DA(4292)](QA.prototype,DA(3461),{get:function(){var wA=DA;return this[wA(3751)][wA(3461)]},set:function(wA){var JA=DA;this[JA(3751)].width=Math[JA(3775)](wA)},enumerable:!1,configurable:!0}),Object[DA(4292)](QA.prototype,DA(2383),{get:function(){var wA=DA;return this[wA(3751)][wA(2383)]},set:function(wA){var JA=DA;this.canvas[JA(2383)]=Math.round(wA)},enumerable:!1,configurable:!0}),QA}();function MA(DA){var QA=S,wA,JA,jA,cx=DA.width,WA=DA.height,lx=DA[QA(923)]("2d"),Fx=lx[QA(3807)](0,0,cx,WA)[QA(1381)],Dx=Fx[QA(3553)],LA={top:null,left:null,right:null,bottom:null},Rx=null;for(wA=0;wA<Dx;wA+=4)Fx[wA+3]!==0&&(JA=wA/4%cx,jA=~~(wA/4/cx),LA[QA(2421)]===null&&(LA.top=jA),(LA[QA(2182)]===null||JA<LA[QA(2182)])&&(LA[QA(2182)]=JA),(LA.right===null||LA[QA(3634)]<JA)&&(LA[QA(3634)]=JA+1),(LA[QA(1807)]===null||LA[QA(1807)]<jA)&&(LA[QA(1807)]=jA));return LA.top!==null&&(cx=LA[QA(3634)]-LA[QA(2182)],WA=LA[QA(1807)]-LA[QA(2421)]+1,Rx=lx.getImageData(LA[QA(2182)],LA[QA(2421)],cx,WA)),{height:WA,width:cx,data:Rx}}var bA,O=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function V(DA){var QA=S,wA=O[QA(2588)](DA);if(wA)return{mediaType:wA[1]?wA[1][QA(1765)]():void 0,subType:wA[2]?wA[2].toLowerCase():void 0,charset:wA[3]?wA[3].toLowerCase():void 0,encoding:wA[4]?wA[4][QA(1765)]():void 0,data:wA[5]}}function oA(DA,QA){var wA=S;if(QA===void 0&&(QA=self[wA(3963)]),DA[wA(3025)](wA(4224))===0)return"";QA=QA||self[wA(3963)],bA||(bA=document&&document[wA(514)]("a")),bA[wA(4304)]=DA;var JA=lA.parse(bA[wA(4304)]),jA=!JA.port&&QA[wA(2566)]===""||JA[wA(2566)]===QA.port;return JA[wA(926)]===QA[wA(926)]&&jA&&JA[wA(1140)]===QA[wA(1140)]?"":wA(1771)}function TA(DA,QA){var wA=vA.X.RETINA_PREFIX.exec(DA);return wA?parseFloat(wA[1]):QA!==void 0?QA:1}},3553:(G,zA,_)=>{_.d(zA,{Z:()=>CA});var S=_(401),vA=function(q){var OA=N,sA=OA(4653)==typeof Symbol&&Symbol[OA(3051)],lA=sA&&q[sA],hA=0;if(lA)return lA[OA(779)](q);if(q&&OA(3259)==typeof q[OA(3553)])return{next:function(){var tA=OA;return q&&hA>=q[tA(3553)]&&(q=void 0),{value:q&&q[hA++],done:!q}}};throw new TypeError(OA(sA?3235:3685))},UA=function(q,OA){var sA=N,lA=sA(4653)==typeof Symbol&&q[Symbol[sA(3051)]];if(!lA)return q;var hA,tA,nA=lA[sA(779)](q),rA=[];try{for(;(OA===void 0||OA-- >0)&&!(hA=nA[sA(577)]())[sA(2495)];)rA.push(hA[sA(4531)])}catch(W){tA={error:W}}finally{try{hA&&!hA.done&&(lA=nA[sA(3575)])&&lA[sA(779)](nA)}finally{if(tA)throw tA.error}}return rA};let CA=new(function(){var q=N;function OA(){var sA=N;this[sA(1381)]=new Map,this[sA(2306)](sA(2205),{Url:(0,S.xb)()})}return OA[q(453)][q(2306)]=function(sA,lA){this.data.set(sA,lA)},OA.prototype.get=function(sA){var lA=q;return this[lA(1381)][lA(491)](sA)},OA[q(453)][q(2e3)]=function(sA){var lA=q;return this[lA(1381)][lA(2e3)](sA)},OA[q(453)][q(528)]=function(sA){var lA=q;this[lA(1381)][lA(2869)](sA)},OA.prototype[q(2341)]=function(){var sA=q;this[sA(1381)].clear()},OA.prototype[q(4453)]=function(sA){var lA=q,hA,tA;try{for(var nA=vA(this[lA(1381)]),rA=nA[lA(577)]();!rA[lA(2495)];rA=nA[lA(577)]()){var W=UA(rA[lA(4531)],2),
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vec2 p = vTextureCoord;
|
||
|
|
p.x = 1.0 - p.x;
|
||
|
|
vec4 color = texture2D(uSampler, p);
|
||
|
|
gl_FragColor = color;
|
||
|
|
}
|
||
|
|
`},mirrorVertical:{fragment:S(1879)},lut:{fragment:`
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D lut;
|
||
|
|
uniform lowp float intensity;
|
||
|
|
uniform lowp float parentIntensity;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vec4 color = texture2D(uSampler, vTextureCoord.xy);
|
||
|
|
|
||
|
|
highp float blueColor = color.b * 63.0;
|
||
|
|
|
||
|
|
//\u5411\u4E0B\u53D6\u503C
|
||
|
|
highp vec2 quad1;
|
||
|
|
quad1.y = floor(floor(blueColor) / 8.0);
|
||
|
|
quad1.x = floor(blueColor) - (quad1.y * 8.0);
|
||
|
|
|
||
|
|
//\u5411\u4E0A\u53D6\u503C
|
||
|
|
highp vec2 quad2;
|
||
|
|
quad2.y = floor(ceil(blueColor) / 8.0);
|
||
|
|
quad2.x = ceil(blueColor) - (quad2.y * 8.0);
|
||
|
|
|
||
|
|
//\u6839\u636E\u5C0F\u6B63\u65B9\u5F62\u683C\u5B50\u548CRG\u901A\u9053\uFF0C\u83B7\u53D6\u7EB9\u7406\u5750\u6807\uFF0C\u6BCF\u4E2A\u5927\u683C\u5B50\u7684\u5927\u5C0F:1/8=0.125\uFF0C\u6BCF\u4E2A\u5C0F\u683C\u5B50\u7684\u5927\u5C0F:1/512
|
||
|
|
highp vec2 texPos1;
|
||
|
|
texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);
|
||
|
|
texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);
|
||
|
|
|
||
|
|
highp vec2 texPos2;
|
||
|
|
texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);
|
||
|
|
texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);
|
||
|
|
|
||
|
|
lowp vec4 newColor1 = texture2D(lut, texPos1);
|
||
|
|
lowp vec4 newColor2 = texture2D(lut, texPos2);
|
||
|
|
|
||
|
|
lowp vec3 newColor = mix(newColor1.rgb, newColor2.rgb, fract(blueColor));
|
||
|
|
|
||
|
|
vec3 textureColor = mix(color.rgb, newColor, intensity * parentIntensity * 1.0);
|
||
|
|
|
||
|
|
gl_FragColor = vec4(textureColor, 1.0);
|
||
|
|
}
|
||
|
|
`},lutSkin:{fragment:S(3052)},partialLutSkin:{fragment:S(2459)},dermabrasion:{fragment:S(769)},partialDermabrasion:{fragment:`precision lowp float;
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D faceMask;
|
||
|
|
varying lowp vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform int width;
|
||
|
|
uniform int height;
|
||
|
|
|
||
|
|
// uniform float intensity;
|
||
|
|
|
||
|
|
float normpdf(in float x, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
float normpdf3(in vec3 v, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// \u53CC\u8FB9\u6EE4\u6CE2
|
||
|
|
vec3 bilateral(in vec2 coordinate) {
|
||
|
|
const float SIGMA = 16.;
|
||
|
|
const float BSIGMA = 9.;
|
||
|
|
// const int MSIZE = 5;
|
||
|
|
const int mSize = 16;
|
||
|
|
|
||
|
|
// float c = getMaskColor(coordinate).a;
|
||
|
|
|
||
|
|
vec3 color = texture2D(uSampler, coordinate).rgb;
|
||
|
|
const int kSize = (mSize-1)/2;
|
||
|
|
float kernel[mSize];
|
||
|
|
vec3 final_alpha =vec3(0.);
|
||
|
|
float Z = 0.;
|
||
|
|
for (int j = 0; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
kernel[kSize+j] = kernel[kSize-j] = normpdf(float(j), SIGMA);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 cc;
|
||
|
|
float factor;
|
||
|
|
float bZ = 1.0/normpdf(0.0, BSIGMA);
|
||
|
|
|
||
|
|
//read out the texels
|
||
|
|
for (int i=-kSize; i <= kSize; ++i)
|
||
|
|
{
|
||
|
|
for (int j=-kSize; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
vec3 ccc = texture2D(uSampler, coordinate + vec2( float(i) / float(width), float(j) / float(height) )).rgb;
|
||
|
|
cc = ccc;
|
||
|
|
factor = normpdf3(cc-color, BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];
|
||
|
|
Z += factor;
|
||
|
|
final_alpha += factor * ccc;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return final_alpha / Z;
|
||
|
|
}
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
float mask = texture2D(faceMask, vTextureCoord).r;
|
||
|
|
|
||
|
|
float i = mask;
|
||
|
|
vec3 original = texture2D(uSampler, vTextureCoord).rgb;
|
||
|
|
|
||
|
|
if (i == 0.) {
|
||
|
|
gl_FragColor = vec4(original, 1.0);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
vec3 color = bilateral(vTextureCoord).rgb;
|
||
|
|
vec4 c = texture2D(faceMask, vTextureCoord);
|
||
|
|
|
||
|
|
vec3 res = color * i + original * (1. - i);
|
||
|
|
gl_FragColor = vec4(res.rgb, 1.0);
|
||
|
|
return;
|
||
|
|
|
||
|
|
}`},faceReshape:{fragment:S(2964)},maskBlack:{fragment:S(3395)},usm:{fragment:`
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
varying lowp vec2 vTextureCoord;
|
||
|
|
uniform int width;
|
||
|
|
uniform int height;
|
||
|
|
uniform float intensity;
|
||
|
|
|
||
|
|
vec4 gaussianBlur(vec2 uv, float size) {
|
||
|
|
const float Pi = 6.28318530718; // Pi*2
|
||
|
|
|
||
|
|
// GAUSSIAN BLUR SETTINGS {{{
|
||
|
|
const float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)
|
||
|
|
const float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)
|
||
|
|
float Size = size; // BLUR SIZE (Radius)
|
||
|
|
// GAUSSIAN BLUR SETTINGS }}}
|
||
|
|
|
||
|
|
vec2 Radius = Size/vec2(float(width), float(height));
|
||
|
|
|
||
|
|
// Pixel colour
|
||
|
|
vec4 Color = texture2D(uSampler, uv);
|
||
|
|
|
||
|
|
// Blur calculations
|
||
|
|
for( float d=0.0; d<Pi; d+=Pi/Directions)
|
||
|
|
{
|
||
|
|
for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality)
|
||
|
|
{
|
||
|
|
Color += texture2D( uSampler, uv+vec2(cos(d),sin(d))*Radius*i);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Output to screen
|
||
|
|
Color /= Quality * Directions;
|
||
|
|
return Color;
|
||
|
|
}
|
||
|
|
vec4 usm(vec2 vTextureCoord, float factor) {
|
||
|
|
vec4 originColor = texture2D(uSampler, vTextureCoord);
|
||
|
|
if (factor == 0.) {
|
||
|
|
return originColor;
|
||
|
|
}
|
||
|
|
vec4 gaussianColor = gaussianBlur(vTextureCoord, 3.0);
|
||
|
|
return gaussianColor * -factor + originColor * (1.0 + factor);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
|
||
|
|
gl_FragColor = usm(vTextureCoord, intensity);
|
||
|
|
}
|
||
|
|
`}},OA=function(sA){var lA=S;function hA(tA,nA,rA){var W=N,xA=this,F=q[tA];(xA=sA[W(779)](this,F[W(2158)]||W(3015),F[W(3041)])||this)[W(3883)]=rA||{};var z=xA[W(3883)].uniforms;if(z)for(var k in z)xA[W(3255)][k]=z[k];var Z=nA.width,y=nA[W(2383)];return xA[W(3255)][W(3461)]=Z,xA[W(3255)][W(2383)]=y,xA[W(3255)][W(3098)]=[Z,y],xA}return CA(hA,sA),hA[lA(453)][lA(1440)]=function(tA,nA){var rA=lA;this[rA(3255)].width=tA,this[rA(3255)][rA(2383)]=nA,this[rA(3255)].iResolution=[tA,nA]},hA[lA(453)][lA(576)]=function(tA,nA){var rA=lA;if(rA(1904)==typeof tA)for(var W in tA)this[rA(3255)][W]=tA[W];else this[rA(3255)][tA]!==nA&&(this[rA(3255)][tA]=nA)},hA}(vA[S(2446)])},401:(G,zA,_)=>{var S=N;_.d(zA,{$G:()=>p,Cb:()=>xA,Eh:()=>I,Gb:()=>F,Jp:()=>lA,Me:()=>hA,Ss:()=>OA,Ty:()=>Z,W_:()=>W,ZV:()=>z,aN:()=>tA,c4:()=>CA,c9:()=>vA,em:()=>q,gy:()=>nA,gz:()=>y,hJ:()=>Y,jw:()=>sA,pf:()=>k,rR:()=>v,ty:()=>b,vk:()=>rA,xb:()=>UA});var vA=S(4560);function UA(){var E=S;return""[E(4146)]("https://webar-static.tencent-cloud.com/ar-sdk/resources","/")[E(4146)]("1.0.13","/")[E(4146)](vA)}var CA={POINTS_MAP:23,KEY_POINTS:24,LEFT_FACE_OVAL:8,LEFT_FACE_OVAL2:9,LEFT_FACE_OVAL3:10,RIGHT_FACE_OVAL:11,RIGHT_FACE_OVAL2:12,RIGHT_FACE_OVAL3:13,MOUTH_UPPER:19,MOUTH_LOWER:20,OUTER_REFERENCE:18,outer_offset_ratio:27,triangulation:25,auvs:26,LEFT_IRIS:7,RIGHT_IRIS:6,LEFT_EYE_ORDER:14,RIGHT_EYE_ORDER:15,lipsTriangulation:28,lipsAuvs:29,LIPS:5},q=0,OA=0,sA=356,lA=[127,356],hA={0:S(839),1:S(4125),2:S(2598)},tA={0:S(1102),1:"si6DW3F5XSXK52fJF7CZraRx5",2:S(2293)},nA=S(3707),rA=S(1465),W=S(3644),xA=S(1301),F=S(585),z=S(1769),k="73,69,67,6e,61,74,75,72,65",Z=S(2960),y=S(2865),I=S(3919),Y=S(2659),b={bu:"62,65,61,75,74,69,66,79",mu:S(3391),s:S(2933),s3:S(4137),f:S(4095),bg:S(1372),a:S(2010),av:S(3400)};function v(E){for(var C=S,j="",$=E[C(615)](","),fA=0;fA<$[C(3553)];fA++)j+=String[C(639)](parseInt($[fA],16));return j}function p(E){for(var C=S,j="",$=0;$<E[C(3553)];$++)j==""?j=E[C(1513)]($)[C(531)](16):j+=","+E[C(1513)]($)[C(531)](16);return j}},3044:(G,zA,_)=>{_.d(zA,{iV:()=>hA,pF:()=>tA});var S=_(4332),vA=_(293),UA=_(4809),CA=_(8586),q=function(nA,rA,W,xA){var F=N,z,k=arguments[F(3553)],Z=k<3?rA:xA===null?xA=Object[F(2692)](rA,W):xA;if(F(1904)==typeof Reflect&&F(4653)==typeof Reflect[F(3131)])Z=Reflect[F(3131)](nA,rA,W,xA);else for(var y=nA.length-1;y>=0;y--)(z=nA[y])&&(Z=(k<3?z(Z):k>3?z(rA,W,Z):z(rA,W))||Z);return k>3&&Z&&Object.defineProperty(rA,W,Z),Z},OA=function(nA,rA){var W=N;if(W(1904)==typeof Reflect&&typeof Reflect[W(4336)]=="function")return Reflect[W(4336)](nA,rA)},sA=function(nA,rA,W,xA){return new(W||(W=Promise))(function(F,z){var k=N;function Z(Y){var b=N;try{I(xA[b(577)](Y))}catch(v){z(v)}}function y(Y){try{I(xA.throw(Y))}catch(b){z(b)}}function I(Y){var b=N,v;Y.done?F(Y[b(4531)]):(v=Y.value,v instanceof W?v:new W(function(p){p(v)}))[b(3512)](Z,y)}I((xA=xA[k(4502)](nA,rA||[]))[k(577)]())})},lA=function(nA,rA){var W=N,xA,F,z,k,Z={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return k={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(k[Symbol[W(3051)]]=function(){return this}),k;function y(I){return function(Y){return function(b){var v=N;if(xA)throw new TypeError("Generator is already executing.");for(;Z;)try{if(xA=1,F&&(z=2&b[0]?F[v(3575)]:b[0]?F.throw||((z=F[v(3575)])&&z.call(F),0):F[v(577)])&&!(z=z[v(779)](F,b[1])).done)return z;switch(F=0,z&&(b=[2&b[0],z[v(4531)]]),b[0]){case 0:case 1:z=b;break;case 4:return Z[v(1986)]++,{value:b[1],done:!1};case 5:Z[v(1986)]++,F=b[1],b=[0];continue;case 7:b=Z[v(766)][v(513)](),Z[v(2230)][v(513)]();continue;default:if(z=Z[v(2230)],!((z=z[v(3553)]>0&&z[z[v(3553)]-1])||b[0]!==6&&b[0]!==2)){Z=0;continue}if(b[0]===3&&(!z||b[1]>z[0]&&b[1]<z[3])){Z.label=b[1];break}if(b[0]===6&&Z[v(1986)]<z[1]){Z[v(1986)]=z[1],z=b;break}if(z&&Z[v(1986)]<z[2]){Z[v(1986)]=z[2],Z.ops[v(1383)](b);break}z[2]&&Z.ops[v(513)](),Z.trys.pop();continue}b=rA.call(nA,Z)}catch(p){b=[6,p],F=0}finally{xA=z=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([I,Y])}}},hA={},tA=function(){var nA=N;function rA(){v
|
||
|
|
`," "]),hA=["'"][S(4146)](lA),tA=["%","/","?",";","#"][S(4146)](hA),nA=["/","?","#"],rA=/^[+a-z0-9A-Z_-]{0,63}$/,W=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xA={javascript:!0,"javascript:":!0},F={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},k=_(2072);function Z(y,I,Y){var b=S;if(y&&UA[b(504)](y)&&y instanceof CA)return y;var v=new CA;return v[b(4163)](y,I,Y),v}CA.prototype[S(4163)]=function(y,I,Y){var b=S;if(!UA[b(3421)](y))throw new TypeError(b(3822)+typeof y);var v=y[b(3025)]("?"),p=v!==-1&&v<y[b(3025)]("#")?"?":"#",E=y[b(615)](p);E[0]=E[0][b(3710)](/\\/g,"/");var C=y=E[b(1721)](p);if(C=C[b(1694)](),!Y&&y[b(615)]("#")[b(3553)]===1){var j=sA[b(2588)](C);if(j)return this[b(2298)]=C,this[b(4304)]=C,this[b(2087)]=j[1],j[2]?(this[b(3024)]=j[2],this[b(3376)]=I?k.parse(this[b(3024)].substr(1)):this[b(3024)][b(2734)](1)):I&&(this[b(3024)]="",this[b(3376)]={}),this}var $=q[b(2588)](C);if($){var fA=($=$[0])[b(1765)]();this[b(1140)]=fA,C=C[b(2734)]($[b(3553)])}if(Y||$||C[b(476)](/^\/\/[^@\/]+@[^@\/]+/)){var dA=C[b(2734)](0,2)==="//";!dA||$&&F[$]||(C=C[b(2734)](2),this[b(4180)]=!0)}if(!F[$]&&(dA||$&&!z[$])){for(var EA,GA,FA=-1,$A=0;$A<nA[b(3553)];$A++)(sx=C[b(3025)](nA[$A]))!==-1&&(FA===-1||sx<FA)&&(FA=sx);for((GA=FA===-1?C.lastIndexOf("@"):C[b(3864)]("@",FA))!==-1&&(EA=C[b(973)](0,GA),C=C[b(973)](GA+1),this[b(4168)]=decodeURIComponent(EA)),FA=-1,$A=0;$A<tA[b(3553)];$A++){var sx;(sx=C[b(3025)](tA[$A]))!==-1&&(FA===-1||sx<FA)&&(FA=sx)}FA===-1&&(FA=C[b(3553)]),this[b(4449)]=C[b(973)](0,FA),C=C[b(973)](FA),this[b(2024)](),this[b(926)]=this[b(926)]||"";var ux=this[b(926)][0]==="["&&this.hostname[this.hostname[b(3553)]-1]==="]";if(!ux)for(var Ex=this.hostname[b(615)](/\./),Ux=($A=0,Ex.length);$A<Ux;$A++){var ox=Ex[$A];if(ox&&!ox[b(476)](rA)){for(var yx="",gx=0,tx=ox[b(3553)];gx<tx;gx++)ox[b(1513)](gx)>127?yx+="x":yx+=ox[gx];if(!yx[b(476)](rA)){var MA=Ex[b(973)](0,$A),bA=Ex[b(973)]($A+1),O=ox[b(476)](W);O&&(MA[b(1383)](O[1]),bA[b(699)](O[2])),bA.length&&(C="/"+bA[b(1721)](".")+C),this.hostname=MA[b(1721)](".");break}}}this[b(926)][b(3553)]>255?this[b(926)]="":this.hostname=this[b(926)].toLowerCase(),ux||(this[b(926)]=vA[b(1234)](this[b(926)]));var V=this[b(2566)]?":"+this[b(2566)]:"",oA=this[b(926)]||"";this[b(4449)]=oA+V,this[b(4304)]+=this[b(4449)],ux&&(this.hostname=this.hostname[b(2734)](1,this[b(926)][b(3553)]-2),C[0]!=="/"&&(C="/"+C))}if(!xA[fA])for($A=0,Ux=hA[b(3553)];$A<Ux;$A++){var TA=hA[$A];if(C[b(3025)](TA)!==-1){var DA=encodeURIComponent(TA);DA===TA&&(DA=escape(TA)),C=C[b(615)](TA).join(DA)}}var QA=C.indexOf("#");QA!==-1&&(this.hash=C[b(2734)](QA),C=C.slice(0,QA));var wA=C[b(3025)]("?");if(wA!==-1?(this[b(3024)]=C.substr(wA),this.query=C[b(2734)](wA+1),I&&(this[b(3376)]=k[b(4163)](this[b(3376)])),C=C[b(973)](0,wA)):I&&(this[b(3024)]="",this[b(3376)]={}),C&&(this.pathname=C),z[fA]&&this[b(926)]&&!this.pathname&&(this.pathname="/"),this[b(2087)]||this[b(3024)]){V=this[b(2087)]||"";var JA=this[b(3024)]||"";this[b(2298)]=V+JA}return this[b(4304)]=this[b(862)](),this},CA[S(453)][S(862)]=function(){var y=S,I=this[y(4168)]||"";I&&(I=(I=encodeURIComponent(I))[y(3710)](/%3A/i,":"),I+="@");var Y=this.protocol||"",b=this[y(2087)]||"",v=this[y(2213)]||"",p=!1,E="";this[y(4449)]?p=I+this[y(4449)]:this[y(926)]&&(p=I+(this.hostname[y(3025)](":")===-1?this.hostname:"["+this[y(926)]+"]"),this[y(2566)]&&(p+=":"+this[y(2566)])),this[y(3376)]&&UA[y(504)](this[y(3376)])&&Object.keys(this[y(3376)])[y(3553)]&&(E=k[y(2173)](this[y(3376)]));var C=this[y(3024)]||E&&"?"+E||"";return Y&&Y[y(2734)](-1)!==":"&&(Y+=":"),this[y(4180)]||(!Y||z[Y])&&p!==!1?(p="//"+(p||""),b&&b[y(2647)](0)!=="/"&&(b="/"+b)):p||(p=""),v&&v.charAt(0)!=="#"&&(v="#"+v),C&&C[y(2647)](0)!=="?"&&(C="?"+C),Y+p+(b=b.replace(/[?#]/g,function(j){return encodeURIComponent(j)}))+(C=C.replace("#",y(1732)))+v},CA[S(453)][S(1948)]=function(y){var I=S;return this[I(3618)](Z(y,!1,!0))[I(862)]()},CA.prototype.resolveObject=function(y){var I=S;if(UA[I(3421)](y)){var Y=new CA;Y[I(4163)](y,!1,!0),y=Y}for(var b=new CA,v
|
||
|
|
(`+nA+": "+rA+")",lA[tA(2695)]=tA(3055),lA[tA(4028)]=nA,lA.request=rA,q[1](lA)}},CA(1520)+vA,vA)}};var _=(vA,UA)=>{var CA=N,q,OA,[sA,lA,hA]=UA,tA=0;if(sA[CA(2256)](nA=>zA[nA]!==0)){for(q in lA)Px.o(lA,q)&&(Px.m[q]=lA[q]);hA&&hA(Px)}for(vA&&vA(UA);tA<sA[CA(3553)];tA++)OA=sA[tA],Px.o(zA,OA)&&zA[OA]&&zA[OA][0](),zA[OA]=0},S=self[G(1626)]=self[G(1626)]||[];S[G(2067)](_[G(3265)](null,0)),S.push=_[G(3265)](null,S[G(1383)].bind(S))})();var q2={};(()=>{var G=e2;Px.d(q2,{ry:()=>ve,Cz:()=>vA[G(1155)],T$:()=>vx,gU:()=>me,Mj:()=>vA.Mj,UZ:()=>vA.UZ,bk:()=>vA.bk,HR:()=>na});var zA={};Px.r(zA);var _=function(){var f=G;function t(){var x=N;this[x(3423)]={}}return t[f(453)].on=function(x,A){var c=f;return this._events[x]||(this[c(3423)][x]=[]),this._events[x].push(A)-1},t[f(453)][f(1764)]=function(x,A){var c=f,a=this;if(c(1045)!==x){var e=this[c(3423)][x];e&&e[c(3553)]&&e.forEach(function(n){n(A)})}else setTimeout(function(n){var Q=c,s=a[Q(3423)][x];s&&s[Q(3553)]&&s[Q(2067)](function(h){h(A)})},100)},t[f(453)][f(545)]=function(x,A,c){var a=f,e=this._events[x];if(e&&e[a(3553)])if(c!==void 0)e.splice(c,1);else{var n=e[a(2898)](function(Q){return Q===A});n>-1&&e[a(1889)](n,1)}},t[f(453)][f(2748)]=function(x,A){var c=f,a,e=this;this._events[x]||(this[c(3423)][x]=[]);var n=function(Q){var s=c;A(Q),e[s(545)](x,n,a)};a=this.on(x,n)},t}(),S=new _,vA=Px(885);Px(5901).get("tencentcloud-webar:i18n:zh");let UA={"0001":G(3067),"0002":G(2507),"0003":G(4407),"0004":G(2878),"0005":G(2308),"0006":G(1710),"0007":G(1975),"0008":G(1578),"0009":G(2092),"0010":G(4012),"0011":"\u5C0F\u7A0B\u5E8F\u8BFB\u53D6\u7F13\u5B58\u5931\u8D25","0012":G(4132),"0013":"\u9700\u8981\u91CD\u65B0\u8FDB\u5165\u9875\u9762\u4F7F\u6388\u6743\u751F\u6548","0014":"\u5F53\u524DSDK\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u7279\u6548\u65E0\u6CD5\u6B63\u786E\u663E\u793A\uFF0C\u8BF7\u5347\u7EA7SDK\u7248\u672C","0015":G(1612),"0016":G(2753),"0018":"\u5F53\u524D\u6D4F\u89C8\u5668\u7279\u6027\u652F\u6301\u4E0D\u8DB3\uFF0C\u53EF\u80FD\u4F1A\u51FA\u73B0\u5361\u987F\u60C5\u51B5\uFF0C\u8BF7\u4F7F\u7528\u65B0\u7248 Chrome/Safari/\u5FAE\u4FE1\u4F53\u9A8C","0019":G(4579),"0020":G(4318),"0021":"\u7F3A\u5C11\u9274\u6743\u53C2\u6570licenseKey","0022":"\u7F3A\u5C11\u9274\u6743\u53C2\u6570appId","0023":"\u8F93\u5165\u4E0D\u5408\u6CD5, \u8BF7\u4F20input\u6216camera\u53C2\u6570","0024":"\u65E0\u6743\u8BBF\u95EE\u6B64\u63A5\u53E3\uFF0C\u8BF7\u786E\u8BA4License\u7248\u672C\u4FE1\u606F","0025":G(1215),"0026":G(2367),"0027":G(3837),"0028":G(3545),"0029":G(2005),"0030":G(3458),"0031":G(4676),"0032":"\u5206\u8FA8\u7387\u53D8\u5316\u5BFC\u81F4\u7279\u6548\u4E22\u5931\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E","0033":G(1264),"0034":G(2020),1001:"\u7F8E\u5986",1002:"\u8D34\u7EB8",1003:"\u6EE4\u955C",1004:"3D\u7279\u6548",1005:"VR\u4EBA\u50CF",1006:"\u5934\u50CF"};Px(5901).get("tencentcloud-webar:i18n:en");let CA={"0001":"Unsupported environment","0002":"Please enable the camera and microphone permissions","0003":G(4376),"0004":G(4638),"0005":G(516),"0006":"Invalid image input","0007":"API not accessible, Please confirm the License version","0008":G(629),"0009":G(694),"0010":G(1816),"0011":G(2287),"0012":"Out of storage space, go to Settings - General-Storage Space and clear the cache","0013":G(1339),"0014":G(3485),"0015":'Require a valid value (0-1) for "intensity" (the default value is 1)',"0016":G(1776),"0018":G(1919),"0019":G(620),"0020":"This browser is not supported. If Chrome is used, enable hardware acceleration for the browser","0021":'The authentication parameter "licenseKey" is missing',"0022":G(2125),"0023":G(906),"0024":"The interface is not accessible. Please check the License version","0025":G(3649),"0026":G(4443),"0027":G(1979),"0028":G(3496),"0029":G(3292),"0030":G(2824),"0031":G(2981),"0032":G(2089),"0033":G(919),"0034":"Unrecognized response data",1001:"Makeup",1002:G(768),1003:G(2446),1004:G(3393),1005:"VR",1006:"AR"},q=new(function(){var f=G;function t(x){x===void 0&&(x="zh"),this._lang=x}return Object.defineProperty(t[f(453)],f(2304),{get:function(){var x=f;return this[x(2686)]},set:function(x){v
|
||
|
|
return blend;
|
||
|
|
}
|
||
|
|
float blendNormal(float base, float blend) {
|
||
|
|
return blend;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendNormal(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendNormal(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
`},{name:"\u53D8\u6697",key:G(1390),shader:G(1735)},{name:G(1599),key:G(1290),shader:G(2862)},{name:G(3419),key:G(3772),shader:G(1259)},{name:G(1168),key:G(3588),shader:G(2859)},{name:"\u53D8\u4EAE",key:G(3874),shader:G(3577)},{name:"\u6EE4\u8272",key:G(3985),shader:G(4458)},{name:G(655),key:G(3294),shader:G(2769)},{name:G(4377),key:G(3063),shader:G(4648)},{name:"\u53E0\u52A0",key:"Overlay",shader:G(986)},{name:"\u67D4\u5149",key:G(3531),shader:G(4319)},{name:"\u5F3A\u5149",key:G(2286),shader:G(3416)},{name:"\u4EAE\u5149",key:"VividLight",shader:G(636)},{name:G(3580),key:"LinearLight",shader:G(3487)},{name:"\u70B9\u5149",key:G(625),shader:G(1124)},{name:"\u5B9E\u8272\u6DF7\u5408",key:G(2624),shader:G(891)},{name:"\u5DEE\u503C",key:G(3930),shader:`vec3 blendDifference(vec3 base, vec3 blend) {
|
||
|
|
return abs(base-blend);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendDifference(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendDifference(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`},{name:"\u6392\u9664",key:G(4347),shader:`vec3 blendExclusion(vec3 base, vec3 blend) {
|
||
|
|
return base+blend-2.0*base*blend;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendExclusion(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendExclusion(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`},{name:"\u51CF\u53BB",key:G(2823),shader:`float blendSubstract(float base, float blend) {
|
||
|
|
return max(base+blend-1.0,0.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendSubstract(vec3 base, vec3 blend) {
|
||
|
|
return max(base+blend-vec3(1.0),vec3(0.0));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendSubstract(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendSubstract(base, blend) * opacity + blend * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`}],P0=[],J0=[];function Hx(f,t){var x=G;return t===void 0&&(t=1),f===void 0?null:(P0[f]||(P0[f]=new x0({funcCode:Wx[f][x(4362)],funcName:Wx[f][x(4106)],uniforms:{intensity:t}})),P0[f])}function $x(f,t){var x=G;return t===void 0&&(t=1),f===void 0?null:(J0[f]||(J0[f]=[Hx(f,t)]),J0[f][0][x(3255)][x(1679)]=t,J0[f])}var h0=Px(1961),C0=function(){var f=function(t,x){var A=N;return f=Object[A(4393)]||{__proto__:[]}instanceof Array&&function(c,a){var e=A;c[e(3536)]=a}||function(c,a){var e=A;for(var n in a)Object[e(453)][e(1454)][e(779)](a,n)&&(c[n]=a[n])},f(t,x)};return function(t,x){var A=N;if(A(4653)!=typeof x&&x!==null)throw new TypeError("Class extends value "+String(x)+A(1667));function c(){var a=A;this[a(4586)]=t}f(t,x),t[A(453)]=x===null?Object[A(1635)](x):(c[A(453)]=x[A(453)],new c)}}(),N0=function(f){function t(){var x=N;return f!==null&&f[x(4502)](this,arguments)||this}return C0(t,f),t.prototype._render=function(x){var A=N,c=this[A(4548)];if(c&&c[A(2630)]){var a=$x(this[A(2195)]);a&&(x[A(3057)][A(1963)](),!x[A(2991)][A(4113)](this,a))||(this[A(761)](),x[A(3057)].setObjectRenderer(x.plugins[this.pluginName]),x[A(2987)][this[A(4555)]][A(1930)](this),a&&(x[A(3057)][A(1963)](),x[A(2991)][A(513)]()))}},t}(h0.j),c2=Px(2901),t0=function(){var f=function(t,x){var A=N;return f=Object[A(4393)]||{__proto__:[]}instanceof Array&&function(c,a){var e=A;c[e(3536)]=a}||function(c,a){var e=A;for(var n in a)Object[e(453)].hasOwnProperty[e(779)](a,n)&&(c[n]=a[n])},f(t,x)};return function(t,x){var A=N;if(A(4653)!=typeof x&&x!==null)throw new TypeError(A(2943)+String(x)+" is not a constructor or null");function c(){var a=A;this[a(4586)]=t}f(t,x),t[A(453)]=x===null?Object.create(x):(c[A(453)]=x[A(453)],new c)}}(),i0=function(f){var t=G;function x(A,c){var a=N;c===void 0&&(c=!0);var e=f[a(779)](this,A[0]instanceof bx.xE?A[0]:A[0].texture)||this;return e._textures=null,e[a(3984)]=null,e[a(2618)]=c,e._isConnectedToTicker=!1,e[a(1008)]=1,e[a(2792)]=!0,e[a(2781)]=!1,e.onComplete=null,e[a(3831)]=null,e[a(3754)]=null,e[a(1552)]=0,e._playing=!1,e._previousFrame=null,e[a(2864)]=A,e}return t0(x,f),x[t(453)][t(1270)]=function(){var A=t;this[A(964)]&&(this._playing=!1,this[A(2618)]&&this._isConnectedToTicker&&(c2.vB[A(2029)][A(528)](this[A(1154)],this),this[A(628)]=!1))},x[t(453)].play=function(){var A=t;this[A(964)]||(this[A(964)]=!0,this[A(2618)]&&!this[A(628)]&&(c2.vB[A(2029)][A(751)](this[A(1154)],this,c2.uF.HIGH),this[A(628)]=!0))},x.prototype[t(1703)]=function(A){var c=t;this[c(1270)]();var a=this[c(4550)];this._currentTime=A,a!==this[c(4550)]&&this[c(1548)]()},x[t(453)].gotoAndPlay=function(A){var c=t,a=this[c(4550)];this[c(1552)]=A,a!==this[c(4550)]&&this[c(1548)](),this[c(4240)]()},x.prototype[t(1154)]=function(A){var c=t;if(this[c(964)]){var a=this.animationSpeed*A,e=this[c(4550)];if(this._durations!==null){var n=this[c(1552)]%1*this[c(3984)][this[c(4550)]];for(n+=a/60*1e3;n<0;)this[c(1552)]--,n+=this[c(3984)][this[c(4550)]];var Q=Math[c(1493)](this[c(1008)]*A);for(this[c(1552)]=Math[c(3084)](this[c(1552)]);n>=this[c(3984)][this[c(4550)]];)n-=this[c(3984)][this[c(4550)]]*Q,this._currentTime+=Q;this[c(1552)]+=n/this[c(3984)][this.currentFrame]}else this[c(1552)]+=a;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures[c(3553)]&&!this.loop?(this.gotoAndStop(this[c(4118)].length-1),this.onComplete&&this[c(1499)]()):e!==this[c(4550)]&&(this[c(2792)]&&this.onLoop&&(this[c(1008)]>0&&this[c(4550)]<e||this.animationSpeed<0&&this[c(4550)]>e)&&this[c(3754)](),this[c(1548)]())}},x[t(453)][t(1548)]=function(){var A=t,c=this[A(4550)];this._previousFrame!==c&&(this[A(3617)]=c,this._texture=this[A(4118)][c],this[A(1458)]=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this[A(4256)]=this[A(4548)][A(1330)][A(1452)],this.updateAnchor&&this[A(882)].copyFrom(this._texture[A(3677)]),this.onFrameChange&&this[A(3831)](this[A(4550)]))},x.prototype.destroy=function(A){var c=t;this[c(1270)](),f[c(453)][c(1165)][c(779)](this,A),this[c(1499)]=null,this[c(3831)]=null,this[c(3754)]=null},x[t(3279
|
||
|
|
#ifdef GL_EXT_shader_texture_lod
|
||
|
|
#extension GL_EXT_shader_texture_lod : enable
|
||
|
|
#endif
|
||
|
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
uniform mat3 uMapCoord;
|
||
|
|
uniform vec4 uClampFrame;
|
||
|
|
uniform vec2 uClampOffset;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
|
||
|
|
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
|
|
vec2 unclamped = coord;
|
||
|
|
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
|
|
||
|
|
#ifdef GL_EXT_shader_texture_lod
|
||
|
|
vec4 texSample = unclamped == coord
|
||
|
|
? texture2D(uSampler, coord)
|
||
|
|
: texture2DLodEXT(uSampler, coord, 0);
|
||
|
|
#else
|
||
|
|
vec4 texSample = texture2D(uSampler, coord);
|
||
|
|
#endif
|
||
|
|
|
||
|
|
gl_FragColor = texSample * uColor;
|
||
|
|
}
|
||
|
|
`,a)},x.prototype[t(1930)]=function(A){var c=t,a=this[c(509)],e=this[c(4230)],n=e[c(4557)];n[0]=n[6]=A[c(1282)]*-A[c(3252)].x,n[1]=n[3]=A[c(1724)]*-A.anchor.y,n[2]=n[4]=A._width*(1-A[c(3252)].x),n[5]=n[7]=A[c(1724)]*(1-A[c(3252)].y);var Q=A[c(3929)]?A[c(3252)].x:0,s=A[c(3929)]?A.anchor.y:0;(n=e.uvs)[0]=n[6]=-Q,n[1]=n[3]=-s,n[2]=n[4]=1-Q,n[5]=n[7]=1-s,e[c(3335)]();var h=A._texture,D=h[c(775)],B=A[c(719)][c(3489)],J=A[c(3020)],eA=D[c(3404)]&&h[c(1492)].width===D.width&&h[c(1492)][c(2383)]===D.height;eA&&(D[c(1684)][a.CONTEXT_UID]?eA=D.wrapMode!==M0.Nt.CLAMP:D[c(3524)]===M0.Nt[c(2263)]&&(D[c(3524)]=M0.Nt[c(2867)]));var BA=eA?this[c(2567)]:this[c(4362)],ZA=h[c(3461)],SA=h[c(2383)],KA=A._width,_A=A._height;Ix.set(B.a*ZA/KA,B.b*ZA/_A,B.c*SA/KA,B.d*SA/_A,B.tx/KA,B.ty/_A),Ix[c(965)](),eA?Ix[c(1283)](J[c(2413)]):(BA[c(3255)][c(2727)]=J[c(2413)][c(697)](!0),BA[c(3255)][c(3627)]=J[c(3627)],BA[c(3255)][c(2279)]=J.uClampOffset),BA[c(3255)].uTransform=Ix[c(697)](!0),BA[c(3255)][c(3471)]=(0,X.premultiplyTintToRgba)(A[c(1024)],A.worldAlpha,BA[c(3255)][c(3471)],D[c(1415)]),BA[c(3255)][c(706)]=A.transform[c(4573)][c(697)](!0),BA[c(3255)][c(2192)]=h,a[c(4362)][c(3265)](BA),a[c(2478)][c(3265)](e),this.state.blendMode=(0,X[c(2771)])(A.blendMode,D[c(1415)]),a[c(2163)][c(2306)](this[c(2163)]),a[c(2478)].draw(this[c(509)].gl[c(4052)],6,0)}}(bx.bO),function(){var f=function(t,x){var A=N;return f=Object[A(4393)]||{__proto__:[]}instanceof Array&&function(c,a){var e=A;c[e(3536)]=a}||function(c,a){var e=A;for(var n in a)Object[e(453)].hasOwnProperty[e(779)](a,n)&&(c[n]=a[n])},f(t,x)};return function(t,x){var A=N;if(typeof x!="function"&&x!==null)throw new TypeError(A(2943)+String(x)+A(1667));function c(){var a=A;this[a(4586)]=t}f(t,x),t[A(453)]=x===null?Object[A(1635)](x):(c[A(453)]=x[A(453)],new c)}}());(function(f){var t=G;function x(){var A=N;return f!==null&&f[A(4502)](this,arguments)||this}mx(x,f),x[t(453)][t(2903)]=function(A){var c=t,a=this[c(4548)];if(a&&a[c(2630)]){var e=$x(this[c(2195)]);e&&(A[c(3057)][c(1963)](),!A[c(2991)][c(4113)](this,e))||(this[c(719)].updateLocalTransform(),this[c(3020)][c(1154)](),A[c(3057)][c(2268)](A.plugins[this[c(4555)]]),A[c(2987)][this[c(4555)]][c(1930)](this),e&&(A.batch[c(1963)](),A[c(2991)][c(513)]()))}}})(l);function Tx(f,t){var x=G;t===void 0&&(t=0);var A=this.gl;this[x(1669)]!==t&&(this.currentLocation=t,A.activeTexture(A[x(1448)]+t)),this[x(3265)](f,t)}var Vx=new K.y3;function A0(f,t,x){var A=G;x===void 0&&(x=!0);for(var c=this[A(509)],a=this.defaultFilterStack,e=this[A(1905)][A(513)]()||new bx.jV,n=this[A(509)].renderTexture,Q=t[0].resolution,s=t[0][A(3835)],h=t[0][A(4067)],D=t[0].legacy,B=1;B<t.length;B++){var J=t[B];Q=Math[A(4534)](Q,J.resolution),s=this[A(1856)]?Math[A(2290)](s,J.padding):s+J[A(3835)],h=h&&J[A(4067)],D=D||J.legacy}a[A(3553)]===1&&(this.defaultFilterStack[0].renderTexture=n.current),a[A(1383)](e),e[A(4627)]=Q,e[A(3320)]=D,e[A(1453)]=f,e[A(2002)][A(1863)](f.filterArea||f[A(4110)](!0)),e[A(2002)].pad(s);var eA,BA,ZA,SA,KA,_A,uA=!0;if(h){var VA=this[A(3673)].copyFrom(n[A(2002)]);c.projection[A(992)]&&this[A(3517)](Vx.copyFrom(c[A(758)][A(992)])[A(965)](),VA),e[A(2002)][A(2562)](VA)}else eA=this.renderer.renderTexture[A(2002)],BA=e[A(2002)],ZA=BA.x+BA[A(3461)],SA=BA.y+BA.height,KA=eA.x+eA[A(3461)],_A=eA.y+eA[A(2383)],uA=BA.x>=eA.x&&BA.x<=KA&&BA.y>=eA.y&&BA.y<=_A&&ZA>=eA.x&&ZA<=KA&&SA>=eA.y&&SA<=_A;if(x&&e.sourceFrame[A(3461)]<=1&&e[A(2002)][A(2383)]<=1)return a.pop(),e[A(2341)](),this[A(1905)].push(e),!1;if(this[A(4400)](e[A(2002)],n[A(4263)]?n[A(4263)][A(4627)]:c[A(4627)],n.sourceFrame,n.destinationFrame,c[A(758)][A(992)]),e.sourceFrame[A(1500)](Q),uA){var XA=null,nx=null;for(B=0;B<t[A(3553)];B++){var fx=t[B].backdropUniformName;if(fx){var Cx=t[B][A(3255)];Cx[fx+"_flipY"]||(Cx[fx+A(2081)]=new Float32Array([0,1]));var Nx=Cx[fx+A(2081)];XA===null?(XA=this.prepareBackdrop(e[A(2002)],Nx),nx=Nx):(Nx[0]=nx[0],Nx[1]=nx[1]),Cx[fx]=XA,XA&&(t[B][A(537)]=!0)}}XA&&(Q=e[A(4627)]=XA.resolution)}e.renderTexture=this[A(3133)](e[A(2002)][A(3461)],e[A(2002)].height,Q),e[A(3701)]=t,e[A(2604)][A(3461)]=e.
|
||
|
|
`),`
|
||
|
|
`)[a(4146)](A[a(2726)](function(SA,KA){var _A=a;return _A(2849)[_A(4146)](KA,";")})[a(1721)](`
|
||
|
|
`),a(3019)).concat(A[a(2726)](function(SA,KA){var _A=a;return _A(1118)[_A(4146)](KA,_A(2518))[_A(4146)](KA,_A(2712))[_A(4146)](KA,_A(2327))[_A(4146)](KA,`.a;
|
||
|
|
float realIntensity`)[_A(4146)](KA,_A(4476)).concat(KA,_A(2392))[_A(4146)](KA,_A(929))[_A(4146)](KA,") + texture2D(uSamplerMakeup")[_A(4146)](KA,", vUvs) * realIntensity")[_A(4146)](KA,_A(683))}).join(`
|
||
|
|
`),`
|
||
|
|
|
||
|
|
gl_FragColor = result;
|
||
|
|
}`),s={enable:1};s[a(2448)]=this[a(2448)],A.forEach(function(SA,KA){var _A=a,uA=_A(908)===e[_A(2111)]?SA[_A(3344)]:""[_A(4146)](e[_A(2111)],"|")[_A(4146)](SA.src),VA=LA[_A(4517)][_A(2083)][uA];s["uSamplerMakeup"[_A(4146)](KA)]=VA,s["intensity"[_A(4146)](KA)]=SA[_A(1679)],e[_A(2864)][_A(1383)](VA)});var h=LA[a(3959)][a(2252)](n,Q,s);this[a(4362)]=h;var D=new i2(c,h),B=this[a(2584)],J=B[a(3461)],eA=B[a(2383)];if(A[a(2256)](function(SA){var KA=a;return KA(4678)===SA[KA(4028)]})){var BA=new LA[a(4580)]({width:J,height:eA});this[a(1785)]=new LA.RenderTexture(BA),this[a(509)][a(1930)](D,{renderTexture:this._maskRenderTexure});var ZA=new N0(this[a(1785)]);ZA[a(2195)]=x,this[a(668)]=D,this[a(3998)][a(641)](ZA)}else D[a(2195)]=x,this._mesh=D,this[a(3998)][a(641)](D);return D}},t[f(453)].drawMesh=function(x,A,c,a){var e=f;if(!this[e(948)]){this._blendMode=A;var n=this[e(603)](),Q=this._dir==="default"?x:""[e(4146)](this[e(2111)],"|").concat(x),s={enable:1,uSamplerMakeup:LA[e(4517)][e(2083)][Q],intensity:c,parentIntensity:this[e(2448)]},h=LA.Shader.from(n,e(1691),s);this[e(4362)]=h;var D=new i2(a,h),B=this[e(2584)],J=B[e(3461)],eA=B[e(2383)];if(e(4678)===this[e(4028)]){var BA=new LA[e(4580)]({width:J,height:eA});this[e(1785)]=new LA.RenderTexture(BA),this[e(509)][e(1930)](D,{renderTexture:this[e(1785)]});var ZA=new N0(this[e(1785)]);ZA[e(2195)]=A,this[e(668)]=D,this._container[e(641)](ZA)}else D[e(2195)]=A,this._mesh=D,this[e(3998)][e(641)](D);return D}},t[f(453)][f(603)]=function(){var x=f;return x(3938)},t[f(453)][f(1165)]=function(){var x=f;this[x(948)]=!0,this._mesh&&(this[x(668)].destroy({children:!0,texture:!1,baseTexture:!1}),this._mesh.mask=null,this[x(668)]=null),this[x(1785)]&&this._maskRenderTexure.destroy(!1)},Q0([(0,B0.M)("MakeupLayer"),m0(f(1104),Function),m0(f(3571),[Array]),m0("design:returntype",void 0)],t[f(453)],f(1363),null),Q0([(0,B0.M)("MakeupLayer"),m0("design:type",Function),m0("design:paramtypes",[]),m0(f(998),void 0)],t[f(453)],"destroy",null),t}(),E2=function(f){var t=G;function x(c,a,e,n,Q,s,h){var D=N,B=f[D(779)](this,c,a,h)||this;return B._maskGraphics=new LA.Graphics,B._parentIntensity=1,B[D(2045)]=Q,B[D(4232)](e,n),B[D(4077)]=s,B}var A;return o0(x,f),Object[t(4292)](x[t(453)],t(2448),{get:function(){var c=t;return this[c(1002)]},set:function(c){var a=t;this[a(3998)]&&(this[a(3998)].alpha=this[a(2045)]*c),this[a(1002)]=c},enumerable:!1,configurable:!0}),Object[t(4292)](x[t(453)],t(422),{set:function(c){var a=t;this[a(3998)].visible=c},enumerable:!1,configurable:!0}),x[t(453)][t(4232)]=function(c,a){var e=t;this[e(1797)]=a;var n=e(908)===this[e(2111)]?c:""[e(4146)](this._dir,"|")[e(4146)](c),Q=LA[e(4517)][e(2083)][n],s=new N0(Q),h=new N0(Q[e(1517)]());s[e(2195)]=a,h[e(2195)]=a,s[e(3252)][e(2306)](.5),h[e(3252)][e(2306)](.5),this[e(4271)]=s,this[e(1031)]=h;var D=new LA[e(4133)];this[e(3998)][e(641)](D),this[e(3382)]||(this[e(3382)]=new LA.Graphics),D[e(641)](this[e(3382)]),D[e(641)](s),D[e(641)](h),D[e(3744)]=this[e(2448)]*this.jsonIntensity,D[e(2599)]=this._maskGraphics,this[e(3998)]=D},x[t(453)][t(3635)]=function(c){var a=t;if(c.length){var e=this._config[a(3540)]([a(2475),a(591),a(1706),a(3882),a(3398)]),n=e[a(2475)],Q=e[a(591)],s=e.RIGHT_IRIS,h=e[a(3882)],D=e.RIGHT_EYE_ORDER,B=n[a(3114)],J=n[a(3306)],eA=(c[Q[0]].x-c[Q[2]].x)*this[a(2584)].width,BA=(c[Q[3]].y-c[Q[1]].y)*this._options[a(2383)],ZA=(c[s[0]].x-c[s[2]].x)*this._options[a(3461)],SA=(c[s[3]].y-c[s[1]].y)*this[a(2584)][a(2383)],KA=this[a(470)](c[B].x,c[B].y),_A=this[a(470)](c[J].x,c[J].y),uA=this[a(4271)],VA=this[a(1031)];uA.width=eA,uA[a(2383)]=BA,uA.x=KA.x,uA.y=KA.y,VA[a(3461)]=ZA,VA.height=SA,VA.x=_A.x,VA.y=_A.y,this._maskGraphics[a(2341)](),this[a(2326)](h,c),this[a(2326)](D,c)}},x[t(453)][t(2326)]=function(c,a){var e=t,n=this,Q=this[e(3382)];Q.beginFill(16724736),Q.lineStyle(1,16767232,1);var s=[];c[e(2067)](function(h,D){var B=e,J=a[h],eA=n[B(470)](J.x,J.y),BA=eA.x,ZA=eA.y;s[B(1383)]({x:BA,y:ZA}),D===0?Q[B(1574)](BA,ZA):D===c[B(3553)]-1?(Q[B(2078)](),Q[B(1366)]()):Q[B(646)](BA,ZA)})},x.prototype[t(470)]=function(c,a){var e=t;retur
|
||
|
|
precision mediump float;
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aUvs;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vUvs = aUvs;
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}`,`
|
||
|
|
precision mediump float;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
uniform sampler2D uSamplerMakeup;
|
||
|
|
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
gl_FragColor = texture2D(uSamplerMakeup, vUvs);
|
||
|
|
}`,Q),h=new LA[B(3367)](n,s),this._lipMaskMesh=h,x[B(641)](h),this._lipMask=x,[2,x]}})})},t[f(453)][f(2838)]=function(){return s2(this,void 0,Promise,function(){var x=this;return Z0(this,function(A){return[2,new Promise(function(c,a){return s2(x,void 0,void 0,function(){var e,n,Q;return Z0(this,function(s){var h=N;switch(s[h(1986)]){case 0:return[4,(e=new L0.KI)[h(3824)]()];case 1:return n=s[h(3684)](),[4,e[h(1230)](n)];case 2:return Q=s[h(3684)](),c(Q[L0.X_]),[2]}})})})]})})},m2([(0,B0.M)(f(2522)),r2("design:type",Function),r2(f(3571),[]),r2(f(998),void 0)],t.prototype,f(1165),null),m2([(0,B0.o)(f(2522)),r2(f(1104),Function),r2(f(3571),[]),r2(f(998),Promise)],t.prototype,f(1562),null),t}(),H0=function(){var f=G;function t(A,c,a,e,n,Q,s,h){var D=N;h===void 0&&(h=1),this._container=new LA.Container,this._makeupMeshes=[],this[D(1099)]=!0,this[D(3188)]=!0,this[D(2371)]=A,this[D(4349)]=c,this[D(2584)]=a,this[D(2696)]=e,this[D(2993)]=Q,this.faceLandMarks=n,this.renderer=s,this.parentIntensity=h;var B=new LA.Sprite(LA[D(4546)][D(1940)]);B[D(3744)]=0,B.width=a[D(3461)],B.height=a[D(2383)],this[D(3998)].addChild(B)}var x;return Object[f(4292)](t[f(453)],f(422),{get:function(){var A=f;return this[A(1099)]},set:function(A){var c=f;this._target&&A!==this[c(1099)]&&(this[c(1099)]=A,this._makeupMeshes[c(2067)](function(a){var e=c;a[e(422)]=A}),this._irises&&(this._irises[c(422)]=A))},enumerable:!1,configurable:!0}),Object[f(4292)](t[f(453)],f(2696),{set:function(A){var c=f;this[c(1222)]=A,this[c(2478)]&&(this[c(2478)][c(874)](c(4247))[c(1154)](A),this[c(3917)][c(2067)](function(a){a.updateGeometry(A)}))},enumerable:!1,configurable:!0}),Object[f(4292)](t[f(453)],"lipmesh",{set:function(A){var c=f;this._lipVertex=A,this._lipMaskIns&&this[c(3370)][c(1154)](A)},enumerable:!1,configurable:!0}),Object[f(4292)](t[f(453)],f(4461),{set:function(A){var c=f,a=this;if(A&&A[c(3553)]){this._irises&&this[c(3130)][c(3635)](A);var e=(0,D0.Sp)(A[152],A[10]),n=this[c(3188)]?.015*e:.01*e;(0,D0.Sp)(A[95],A[191])<n&&(0,D0.Sp)(A[324],A[415])<n?this[c(3188)]||(this[c(3917)][c(2067)](function(Q){var s=c;Q[s(4028)]==="lips"&&(Q[s(4250)]=null)}),this[c(3188)]=!0):this[c(3188)]&&(this._makeupMeshes[c(2067)](function(Q){var s=c;s(4678)===Q[s(4028)]&&a._lipMaskIns&&(Q[s(4250)]=a[s(3370)]._maskSprite)}),this[c(3188)]=!1)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentIntensity",{get:function(){return this._intensity},set:function(A){var c=f;this[c(3130)]&&(this._irises[c(2448)]=A),this[c(3917)][c(2067)](function(a){var e=c;a[e(2448)]=A}),this[c(2037)]=A},enumerable:!1,configurable:!0}),t.prototype.renderMesh=function(){var A=f;this[A(3370)]&&this._lipMaskIns.render(),this[A(3917)][A(2067)](function(c){var a=A;c[a(4218)]()})},t[f(453)][f(1184)]=function(){return s2(this,void 0,void 0,function(){var A,c,a,e,n,Q,s,h,D;return Z0(this,function(B){var J=N;switch(B[J(1986)]){case 0:return this[J(4077)]=new j,[4,this._config[J(1184)]()];case 1:if(B.sent(),A=this[J(4349)],c={},A&&A[J(3553)]){try{for(a=H2(A),e=a[J(577)]();!e[J(2495)];e=a.next())(n=e[J(4531)]).type==="iris"?this[J(3130)]=this[J(1285)](n[J(3344)],n[J(3613)],n[J(1679)]):J(1455)===n[J(4028)]?(s=this._getMeshLayer(n.src,n[J(3613)],n[J(1679)],n[J(4028)]),this[J(3917)][J(1383)](s)):(Q=n[J(3613)]+"",c[Q]||(c[Q]=[]),c[Q][J(1383)]({src:n[J(3344)],intensity:n[J(1679)],type:n[J(4028)]}))}catch(eA){h={error:eA}}finally{try{e&&!e[J(2495)]&&(D=a[J(3575)])&&D.call(a)}finally{if(h)throw h[J(1045)]}}for(Q in c)s=this[J(2800)](parseInt(Q),c[Q]),this[J(3917)][J(1383)](s)}return[4,this[J(1643)]()];case 2:return B[J(3684)](),[2]}})})},t.prototype[f(1285)]=function(A,c,a){var e=f;return new E2(this[e(2584)],this._key,A,c,a,this[e(4077)],this._container)},t[f(453)]._getMeshLayerByBlendMode=function(A,c){var a=f,e=c[a(2256)](function(h){var D=a;return D(4678)===h[D(4028)]})?a(4678):a(1713),n=new o2(this[a(2584)],this._key,this[a(3998)],this[a(509)],e);n[a(2448)]=this[a(2448)];var Q=this[a(4077)].getDataConfig(26);if(!this[a(2478)]){var s=new LA[a(3432)]()[a(532)]("aVertexPosition",this._meshVertex
|
||
|
|
attribute vec3 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
attribute vec4 aColor;
|
||
|
|
attribute float aTextureId;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_Position.xyw = projectionMatrix * aVertexPosition;
|
||
|
|
gl_Position.z = 0.0;
|
||
|
|
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
vTextureId = aTextureId;
|
||
|
|
vColor = aColor;
|
||
|
|
}
|
||
|
|
`,fragment:t(1349),geometryClass:RA,vertexSize:7},f);return class extends bx.eo{constructor(e){var n=t;super(e),this.shaderGenerator=new bx.Zk(x,A),this[n(3313)]=a,this[n(4274)]=c}[t(4134)](e,n,Q,s,h){var D=t;let{uint32View:B,float32View:J}=n,eA=s/this[D(4274)],BA=e.uvs,ZA=e[D(4572)],SA=e[D(479)],KA=e[D(842)],_A=e[D(4548)].baseTexture[D(1650)],uA=Math[D(4534)](e[D(602)],1),VA=uA<1&&e[D(4548)].baseTexture.alphaMode?(0,X[D(4389)])(e[D(897)],uA):e[D(897)]+(255*uA<<24);if(KA){let XA=0;for(let nx=0;nx<KA[D(3553)];nx+=3,XA+=2)J[s++]=KA[nx],J[s++]=KA[nx+1],J[s++]=KA[nx+2],J[s++]=BA[XA],J[s++]=BA[XA+1],B[s++]=VA,J[s++]=_A}else for(let XA=0;XA<SA[D(3553)];XA+=2)J[s++]=SA[XA],J[s++]=SA[XA+1],J[s++]=1,J[s++]=BA[XA],J[s++]=BA[XA+1],B[s++]=VA,J[s++]=_A;for(let XA=0;XA<ZA[D(3553)];XA++)Q[h++]=eA+ZA[XA]}}}}[G(1635)]({}));let Mx=[1,0,0,0,1,0,0,0,1];class Yx{static[G(2065)](){this.IDENTITY=new Yx}static __initStatic2(){var t=G;this[t(1304)]=new Yx}[G(2631)](){var t=G;this[t(3814)]=null}constructor(t){var x=G;Yx.prototype[x(2631)][x(779)](this),this[x(3977)]=new Float64Array(t||Mx)}get a(){return this.mat3[0]/this.mat3[8]}set a(t){var x=G;this[x(3977)][0]=t*this.mat3[8]}get b(){var t=G;return this[t(3977)][1]/this[t(3977)][8]}set b(t){var x=G;this[x(3977)][1]=t*this[x(3977)][8]}get c(){var t=G;return this.mat3[3]/this[t(3977)][8]}set c(t){var x=G;this[x(3977)][3]=t*this[x(3977)][8]}get d(){var t=G;return this[t(3977)][4]/this.mat3[8]}set d(t){var x=G;this[x(3977)][4]=t*this[x(3977)][8]}get tx(){var t=G;return this[t(3977)][6]/this.mat3[8]}set tx(t){var x=G;this.mat3[6]=t*this[x(3977)][8]}get ty(){var t=G;return this[t(3977)][7]/this[t(3977)][8]}set ty(t){var x=G;this[x(3977)][7]=t*this[x(3977)][8]}[G(2306)](t,x,A,c,a,e){var n=G;let Q=this[n(3977)];return Q[0]=t,Q[1]=x,Q[2]=0,Q[3]=A,Q[4]=c,Q[5]=0,Q[6]=a,Q[7]=e,Q[8]=1,this}[G(697)](t,x){var A=G;this[A(3814)]||(this[A(3814)]=new Float32Array(9));let c=x||this[A(3814)],a=this[A(3977)];return t?(c[0]=a[0],c[1]=a[1],c[2]=a[2],c[3]=a[3],c[4]=a[4],c[5]=a[5],c[6]=a[6],c[7]=a[7],c[8]=a[8]):(c[0]=a[0],c[1]=a[3],c[2]=a[6],c[3]=a[1],c[4]=a[4],c[5]=a[7],c[6]=a[2],c[7]=a[5],c[8]=a[8]),c}[G(4502)](t,x){var A=G;x=x||new K.E9;let c=this[A(3977)],a=t.x,e=t.y,n=1/(c[2]*a+c[5]*e+c[8]);return x.x=n*(c[0]*a+c[3]*e+c[6]),x.y=n*(c[1]*a+c[4]*e+c[7]),x}translate(t,x){var A=G;let c=this[A(3977)];return c[0]+=t*c[2],c[1]+=x*c[2],c[3]+=t*c[5],c[4]+=x*c[5],c[6]+=t*c[8],c[7]+=x*c[8],this}scale(t,x){var A=G;let c=this[A(3977)];return c[0]*=t,c[1]*=x,c[3]*=t,c[4]*=x,c[6]*=t,c[7]*=x,this}scaleAndTranslate(t,x,A,c){var a=G;let e=this[a(3977)];e[0]=t*e[0]+A*e[2],e[1]=x*e[1]+c*e[2],e[3]=t*e[3]+A*e[5],e[4]=x*e[4]+c*e[5],e[6]=t*e[6]+A*e[8],e[7]=x*e[7]+c*e[8]}[G(1615)](t,x){var A=G;x=x||new K.E9;let c=this[A(3977)],a=t.x,e=t.y,n=c[0],Q=c[3],s=c[6],h=c[1],D=c[4],B=c[7],J=c[2],eA=c[5],BA=c[8],ZA=(BA*D-B*eA)*a+(-BA*Q+s*eA)*e+(B*Q-s*D),SA=(-BA*h+B*J)*a+(BA*n-s*J)*e+(-B*n+s*h),KA=(eA*h-D*J)*a+(-eA*n+Q*J)*e+(D*n-Q*h);return x.x=ZA/KA,x.y=SA/KA,x}[G(965)](){var t=G;let x=this[t(3977)],A=x[0],c=x[1],a=x[2],e=x[3],n=x[4],Q=x[5],s=x[6],h=x[7],D=x[8],B=D*n-Q*h,J=-D*e+Q*s,eA=h*e-n*s,BA=A*B+c*J+a*eA;return BA?(BA=1/BA,x[0]=B*BA,x[1]=(-D*c+a*h)*BA,x[2]=(Q*c-a*n)*BA,x[3]=J*BA,x[4]=(D*A-a*s)*BA,x[5]=(-Q*A+a*e)*BA,x[6]=eA*BA,x[7]=(-h*A+c*s)*BA,x[8]=(n*A-c*e)*BA,this):this}identity(){var t=G;let x=this[t(3977)];return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=1,x[5]=0,x[6]=0,x[7]=0,x[8]=1,this}clone(){var t=G;return new Yx(this[t(3977)])}copyTo2dOr3d(t){var x=G;let A=this.mat3,c=t[x(3977)];return c[0]=A[0],c[1]=A[1],c[2]=A[2],c[3]=A[3],c[4]=A[4],c[5]=A[5],c[6]=A[6],c[7]=A[7],c[8]=A[8],t}copyTo(t,x,A){var c=G;let a=this[c(3977)],e=1/a[8],n=a[6]*e,Q=a[7]*e;if(t.a=(a[0]-a[2]*n)*e,t.b=(a[1]-a[2]*Q)*e,t.c=(a[3]-a[5]*n)*e,t.d=(a[4]-a[5]*Q)*e,t.tx=n,t.ty=Q,x>=2){let s=t.a*t.d-t.b*t.c;A||(s=Math[c(2136)](s)),x===mA[c(1059)]?(s=s>0?1:-1,t.a=s,t.b=0,t.c=0,t.d=s):x===mA[c(1311)]?(s/=Math[c(4253)](t.b*t.b+t.d*t.d),t.c=0,t.d=s):x===mA[c(935)]?(s/=Math[c(4253)](t.a*t.a+t.c*t.c),t.a=s,t.c=0):x===mA[c(3178)]&&(t.a=t.d*s,t.c=-t.b*s)}return t}[G(1863)](t){var x=G;let A=th
|
||
|
|
varying vec3 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
uniform mat3 uMapCoord;
|
||
|
|
uniform vec4 uClampFrame;
|
||
|
|
uniform vec2 uClampOffset;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec2 coord = mod(vTextureCoord.xy / vTextureCoord.z - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;
|
||
|
|
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
|
|
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
|
|
||
|
|
vec4 sample = texture2D(uSampler, coord);
|
||
|
|
gl_FragColor = sample * uColor;
|
||
|
|
}
|
||
|
|
`,A),this[x(2567)]=bx.ex.from(Qx,`
|
||
|
|
varying vec3 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);
|
||
|
|
gl_FragColor = sample * uColor;
|
||
|
|
}
|
||
|
|
`,A)}__init(){this.quad=new bx.ud}[G(1930)](t){var x=G;let A=this[x(509)],c=this.quad,a=c.vertices;a[0]=a[6]=t._width*-t[x(3252)].x,a[1]=a[3]=t[x(1724)]*-t[x(3252)].y,a[2]=a[4]=t[x(1282)]*(1-t[x(3252)].x),a[5]=a[7]=t[x(1724)]*(1-t[x(3252)].y),t[x(3929)]&&(a=c[x(4256)],a[0]=a[6]=-t[x(3252)].x,a[1]=a[3]=-t[x(3252)].y,a[2]=a[4]=1-t[x(3252)].x,a[5]=a[7]=1-t[x(3252)].y),c.invalidate();let e=t[x(4548)],n=e[x(775)],Q=t[x(1255)][x(2956)],s=t[x(3020)],h=n[x(3404)]&&e[x(1492)][x(3461)]===n.width&&e.frame[x(2383)]===n[x(2383)];h&&(n[x(1684)][A[x(420)]]?h=n.wrapMode!==M0.Nt[x(2263)]:n.wrapMode===M0.Nt[x(2263)]&&(n[x(3524)]=M0.Nt[x(2867)]));let D=h?this[x(2567)]:this[x(4362)];kx[x(1955)](),kx[x(3408)](e.width,e[x(2383)]),kx[x(1283)](Q),kx[x(3408)](1/t[x(1282)],1/t[x(1724)]),kx[x(965)](),h?kx.prepend(s[x(2413)]):(D[x(3255)].uMapCoord=s[x(2413)].toArray(!0),D[x(3255)][x(3627)]=s.uClampFrame,D[x(3255)][x(2279)]=s.uClampOffset),D[x(3255)].uTransform=kx[x(697)](!0),D[x(3255)].uColor=(0,X[x(2265)])(t[x(1024)],t[x(602)],D[x(3255)][x(3471)],n[x(1567)]),D[x(3255)][x(706)]=t[x(4573)][x(697)](!0),D[x(3255)][x(2192)]=e,A[x(4362)][x(3265)](D,!1),A[x(2478)][x(3265)](c,void 0),A[x(2163)].setBlendMode((0,X[x(2771)])(t.blendMode,n[x(1567)])),A.geometry[x(855)](M0.lg.TRIANGLES,6,0)}}let Bx=new K.E9,Kx=[new K.E9,new K.E9,new K.E9,new K.E9],jx=new K.Ae,a0=new Yx;class Sx extends hx{constructor(t,x){var A=G;super(t,x),Sx[A(453)][A(2631)][A(779)](this),Sx[A(453)][A(1496)][A(779)](this),Sx.prototype[A(4337)].call(this),this[A(700)]=new Yx,this[A(2956)]=new Yx}[G(2631)](){var t=G;this[t(1847)]=new Yx}[G(1496)](){var t=G;this[t(1606)]=new K.AB(this[t(1247)],this,0,0)}__init3(){var t=G;this[t(738)]=!1}onChange(){var t=G;let x=this.pivot,A=this.matrix[t(3977)];A[6]=-(x._x*A[0]+x._y*A[3]),A[7]=-(x._x*A[1]+x._y*A[4]),this._projID++}[G(978)](t,x=1){var A=G;let c=t.x,a=t.y,e=Math[A(4253)](c*c+a*a),n=this[A(1847)][A(3977)];n[0]=c/e,n[1]=a/e,n[2]=x/e,this[A(1247)]()}[G(1097)](t,x=1){var A=G;let c=t.x,a=t.y,e=Math.sqrt(c*c+a*a),n=this[A(1847)][A(3977)];n[3]=c/e,n[4]=a/e,n[5]=x/e,this[A(1247)]()}[G(3286)](t,x){var A=G;let c=t[A(3689)];jx.x=-t[A(3252)].x*c.orig[A(3461)],jx.y=-t[A(3252)].y*c[A(4273)].height,jx[A(3461)]=c[A(4273)][A(3461)],jx.height=c[A(4273)].height,this[A(2633)](jx,x)}[G(2633)](t,x){var A=G;Kx[0].set(t.x,t.y),Kx[1][A(2306)](t.x+t[A(3461)],t.y),Kx[2][A(2306)](t.x+t.width,t.y+t[A(2383)]),Kx[3][A(2306)](t.x,t.y+t[A(2383)]);let c=1,a=2,e=3;if(function(BA,ZA,SA,KA,_A){var uA=A;let VA=ZA.x-BA.x,XA=SA.x-KA.x,nx=SA.x-BA.x,fx=ZA.y-BA.y,Cx=SA.y-KA.y,Nx=SA.y-BA.y,ix=VA*Cx-fx*XA;if(Math[uA(2136)](ix)<1e-7)return _A.x=VA,_A.y=fx,0;let Ax=(nx*Cx-Nx*XA)/ix,PA=(VA*Nx-fx*nx)/ix;return PA<1e-6||PA-1>-1e-6?-1:(_A.x=BA.x+Ax*(ZA.x-BA.x),_A.y=BA.y+Ax*(ZA.y-BA.y),1)}(x[0],x[2],x[1],x[3],Bx)===0)return;c=1,a=3,e=2;let n=Math.sqrt((x[0].x-Bx.x)*(x[0].x-Bx.x)+(x[0].y-Bx.y)*(x[0].y-Bx.y)),Q=Math.sqrt((x[c].x-Bx.x)*(x[c].x-Bx.x)+(x[c].y-Bx.y)*(x[c].y-Bx.y)),s=Math[A(4253)]((x[a].x-Bx.x)*(x[a].x-Bx.x)+(x[a].y-Bx.y)*(x[a].y-Bx.y)),h=Math[A(4253)]((x[e].x-Bx.x)*(x[e].x-Bx.x)+(x[e].y-Bx.y)*(x[e].y-Bx.y)),D=(n+h)/h,B=(Q+s)/s,J=(Q+s)/Q,eA=this[A(1847)][A(3977)];eA[0]=Kx[0].x*D,eA[1]=Kx[0].y*D,eA[2]=D,eA[3]=Kx[c].x*B,eA[4]=Kx[c].y*B,eA[5]=B,eA[6]=Kx[a].x*J,eA[7]=Kx[a].y*J,eA[8]=J,this[A(1847)][A(965)](),eA=a0[A(3977)],eA[0]=x[0].x,eA[1]=x[0].y,eA[2]=1,eA[3]=x[c].x,eA[4]=x[c].y,eA[5]=1,eA[6]=x[a].x,eA[7]=x[a].y,eA[8]=1,this[A(1847)][A(3941)](a0,this[A(1847)]),this._projID++}[G(534)](t){var x=G;this[x(2021)]!==0?this[x(738)]?this[x(700)][x(3340)](this[x(1847)],t):this[x(700)].setToMultLegacy(t,this[x(1847)]):this[x(700)][x(1863)](t)}[G(2341)](){var t=G;super[t(2341)](),this[t(1847)][t(1955)](),this[t(1606)][t(2306)](0,0)}}function Jx(){var f=G;return this.proj[f(1063)]?this.transform[f(4573)]:this.proj[f(2956)]}class qx extends d2.W2{constructor(){var t=G;super(),this[t(3676)]=new Sx(this.transform)}[G(3383)](t,x,A,c,a=HA[G(4006)]){var e=G;return x&&(t=x[e(1722)](t,A,c)),c||this._recursivePostUpdateTransform(),a>=HA[e(4495)]?(c||this[e(4384)](),this[e(3676)].affine?this[e(992)].worldTran
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 uTextureMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
|
|
gl_Position.z = 0.0;
|
||
|
|
|
||
|
|
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
|
||
|
|
}
|
||
|
|
`}static[G(3723)](){var t=G;this.defaultFragmentShader=t(1842)}constructor(t,x,A,c){var a=G;super(t,x,A,c),d0[a(453)][a(2631)].call(this),this[a(3676)]=new Sx(this[a(992)])}__init(){var t=G;this[t(842)]=null}calculateVertices(){var t=G;if(this[t(3676)][t(3405)])return this.vertexData2d=null,void super[t(761)]();let x=this[t(2478)],A=x[t(572)][0].data,c=this;if(x[t(1196)]===c.vertexDirty&&c[t(632)]===c[t(992)]._worldID)return;c[t(632)]=c[t(992)][t(2369)],c[t(479)][t(3553)]!==A[t(3553)]&&(c.vertexData=new Float32Array(A[t(3553)])),this[t(842)]&&this[t(842)][t(3553)]===3*A[t(3553)]/2||(this[t(842)]=new Float32Array(3*A.length));let a=this[t(3676)][t(2956)][t(3977)],e=this[t(842)],n=c.vertexData;for(let Q=0;Q<n[t(3553)]/2;Q++){let s=A[2*Q],h=A[2*Q+1],D=a[0]*s+a[3]*h+a[6],B=a[1]*s+a[4]*h+a[7],J=a[2]*s+a[5]*h+a[8];e[3*Q]=D,e[3*Q+1]=B,e[3*Q+2]=J,n[2*Q]=D/J,n[2*Q+1]=B/J}c[t(2583)]=x.vertexDirtyId}_renderDefault(t){var x=G;let A=this.shader;A[x(3744)]=this[x(602)],A[x(1154)]&&A[x(1154)](),t[x(3057)][x(1963)](),function(c){var a=x;let e,n=c[0],Q=1;for(;Q<c[a(3553)];){let s=c[Q],h=c[Q+1];if(Q+=2,(a(3795)===s||a(3704)===s)&&n==null)return;a(1579)===s||a(3795)===s?(e=n,n=h(n)):s!=="call"&&a(3704)!==s||(n=h((...D)=>n.call(e,...D)),e=void 0)}return n}([A,x(1579),c=>c[x(753)],x(1579),c=>c.uniformData,x(3795),c=>c[x(706)]])&&(A[x(3255)].translationMatrix=this[x(4573)][x(697)](!0)),t.shader[x(3265)](A,!1),t[x(2163)][x(2306)](this[x(2163)]),t.geometry[x(3265)](this[x(2478)],A),t[x(2478)][x(855)](this[x(2994)],this[x(460)],this[x(1783)],this[x(2478)][x(2051)])}[G(3383)](t,x,A,c,a=HA.ALL){var e=G;return S0[e(779)](this,t,x,A,c,a)}get[G(4573)](){var t=G;return this[t(3676)][t(1063)]?this[t(992)].worldTransform:this.proj.world}}d0[G(2065)](),d0[G(3723)]();class G0 extends h0.j{constructor(t){var x=G;super(t),G0[x(453)][x(2631)][x(779)](this),this.proj=new Sx(this[x(992)]),this[x(4555)]=x(4418)}[G(2631)](){var t=G;this[t(842)]=null}[G(3597)](){var t=G;this[t(3047)](),this._bounds[t(3964)](this[t(3791)])}calculateVertices(){var t=G;let x=this[t(4548)];if(this[t(3676)][t(3405)])return this[t(842)]=null,void super[t(761)]();this[t(842)]||(this.vertexData2d=new Float32Array(12));let A=this[t(992)]._worldID,c=x._updateID;if(this[t(632)]===A&&this[t(1458)]===c)return;this._textureID!==c&&(this[t(4256)]=x._uvs[t(1452)]),this[t(632)]=A,this[t(1458)]=c;let a=this[t(3676)].world[t(3977)],e=this[t(842)],n=this[t(479)],Q=x[t(1694)],s=x[t(4273)],h=this[t(882)],D,B,J,eA;Q?(B=Q.x-h._x*s[t(3461)],D=B+Q[t(3461)],eA=Q.y-h._y*s.height,J=eA+Q[t(2383)]):(B=-h._x*s.width,D=B+s.width,eA=-h._y*s[t(2383)],J=eA+s[t(2383)]),e[0]=a[0]*B+a[3]*eA+a[6],e[1]=a[1]*B+a[4]*eA+a[7],e[2]=a[2]*B+a[5]*eA+a[8],e[3]=a[0]*D+a[3]*eA+a[6],e[4]=a[1]*D+a[4]*eA+a[7],e[5]=a[2]*D+a[5]*eA+a[8],e[6]=a[0]*D+a[3]*J+a[6],e[7]=a[1]*D+a[4]*J+a[7],e[8]=a[2]*D+a[5]*J+a[8],e[9]=a[0]*B+a[3]*J+a[6],e[10]=a[1]*B+a[4]*J+a[7],e[11]=a[2]*B+a[5]*J+a[8],n[0]=e[0]/e[2],n[1]=e[1]/e[2],n[2]=e[3]/e[5],n[3]=e[4]/e[5],n[4]=e[6]/e[8],n[5]=e[7]/e[8],n[6]=e[9]/e[11],n[7]=e[10]/e[11]}[G(3047)](){var t=G;if(this.proj[t(3405)])return void super[t(3047)]();let x=this.transform[t(2369)],A=this._texture[t(4641)],c=this;if(c.vertexTrimmedData){if(c[t(4156)]===x&&this._textureTrimmedID===A)return}else c[t(3791)]=new Float32Array(8);c[t(4156)]=x,this[t(841)]=A;let a=this[t(4548)],e=c[t(3791)],n=a[t(4273)],Q=this.tileProj?this[t(1282)]:n.width,s=this[t(1255)]?this._height:n[t(2383)],h=this._anchor,D=this[t(3676)][t(2956)].mat3,B=-h._x*Q,J=B+Q,eA=-h._y*s,BA=eA+s,ZA=1/(D[2]*B+D[5]*eA+D[8]);e[0]=ZA*(D[0]*B+D[3]*eA+D[6]),e[1]=ZA*(D[1]*B+D[4]*eA+D[7]),ZA=1/(D[2]*J+D[5]*eA+D[8]),e[2]=ZA*(D[0]*J+D[3]*eA+D[6]),e[3]=ZA*(D[1]*J+D[4]*eA+D[7]),ZA=1/(D[2]*J+D[5]*BA+D[8]),e[4]=ZA*(D[0]*J+D[3]*BA+D[6]),e[5]=ZA*(D[1]*J+D[4]*BA+D[7]),ZA=1/(D[2]*B+D[5]*BA+D[8]),e[6]=ZA*(D[0]*B+D[3]*BA+D[6]),e[7]=ZA*(D[1]*B+D[4]*BA+D[7])}[G(3383)](t,x,A,c,a=HA[G(4006)]){var e=G;return S0[e(779)](this,t,x,A,c,a)}get[G(4573)](){var t=G;return this[t(3676)][t(1063)]?this[t(992)][t(4573)]:this.proj[t(2956)]}}let O0=new K.wx;class q0 extends l{constructor(t,x,A){var c
|
||
|
|
varying vec2 vertexPosition;
|
||
|
|
varying vec3 vTrans1;
|
||
|
|
varying vec3 vTrans2;
|
||
|
|
varying vec2 vSamplerSize;
|
||
|
|
varying vec4 vFrame;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
|
||
|
|
uniform sampler2D uSamplers[%count%];
|
||
|
|
uniform vec4 distortion;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
vec2 surface;
|
||
|
|
vec2 surface2;
|
||
|
|
|
||
|
|
float vx = vertexPosition.x;
|
||
|
|
float vy = vertexPosition.y;
|
||
|
|
float dx = distortion.x;
|
||
|
|
float dy = distortion.y;
|
||
|
|
float revx = distortion.z;
|
||
|
|
float revy = distortion.w;
|
||
|
|
|
||
|
|
if (distortion.x == 0.0) {
|
||
|
|
surface.x = vx;
|
||
|
|
surface.y = vy / (1.0 + dy * vx);
|
||
|
|
surface2 = surface;
|
||
|
|
} else
|
||
|
|
if (distortion.y == 0.0) {
|
||
|
|
surface.y = vy;
|
||
|
|
surface.x = vx / (1.0 + dx * vy);
|
||
|
|
surface2 = surface;
|
||
|
|
} else {
|
||
|
|
float c = vy * dx - vx * dy;
|
||
|
|
float b = (c + 1.0) * 0.5;
|
||
|
|
float b2 = (-c + 1.0) * 0.5;
|
||
|
|
float d = b * b + vx * dy;
|
||
|
|
if (d < -0.00001) {
|
||
|
|
discard;
|
||
|
|
}
|
||
|
|
d = sqrt(max(d, 0.0));
|
||
|
|
surface.x = (- b + d) * revy;
|
||
|
|
surface2.x = (- b - d) * revy;
|
||
|
|
surface.y = (- b2 + d) * revx;
|
||
|
|
surface2.y = (- b2 - d) * revx;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 uv;
|
||
|
|
uv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;
|
||
|
|
uv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;
|
||
|
|
|
||
|
|
vec2 pixels = uv * vSamplerSize;
|
||
|
|
|
||
|
|
if (pixels.x < vFrame.x || pixels.x > vFrame.z ||
|
||
|
|
pixels.y < vFrame.y || pixels.y > vFrame.w) {
|
||
|
|
uv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;
|
||
|
|
uv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;
|
||
|
|
pixels = uv * vSamplerSize;
|
||
|
|
|
||
|
|
if (pixels.x < vFrame.x || pixels.x > vFrame.z ||
|
||
|
|
pixels.y < vFrame.y || pixels.y > vFrame.w) {
|
||
|
|
discard;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
vec4 edge;
|
||
|
|
edge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));
|
||
|
|
edge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));
|
||
|
|
|
||
|
|
float alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;
|
||
|
|
vec4 rColor = vColor * alpha;
|
||
|
|
|
||
|
|
float textureId = floor(vTextureId+0.5);
|
||
|
|
vec2 vTextureCoord = uv;
|
||
|
|
vec4 color;
|
||
|
|
%forloop%
|
||
|
|
gl_FragColor = color * rColor;
|
||
|
|
}`,geometryClass:r,vertexSize:16},f);return i=class extends Ox{constructor(e){var n=t;super(e),i[n(453)].__init.call(this),i.prototype.__init2[n(779)](this),i[n(453)][n(4337)][n(779)](this),this[n(586)]=new bx.Zk(x,A),this[n(3313)]=a,this[n(4274)]=c}[t(2631)](){var e=t;this[e(1730)]={translationMatrix:new K.y3,distortion:new Float32Array([0,0,1/0,1/0])}}[t(1496)](){var e=t;this[e(460)]=1e3}[t(4337)](){this.forceMaxTextures=1}[t(1276)](e){var n=t;let{proj:Q}=e;return Q.surface!==null?Q[n(3255)]:Q[n(2206)]!==null?Q[n(2206)].uniforms:this.defUniforms}[t(4134)](e,n,Q,s,h){var D=t;let{uint32View:B,float32View:J}=n,eA=s/this[D(4274)],BA=e[D(4572)],ZA=e[D(479)],SA=e[D(4548)]._frame,KA=e[D(1640)],{_batchLocation:_A,realWidth:uA,realHeight:VA,resolution:XA}=e[D(4548)][D(775)],nx=Math[D(4534)](e[D(602)],1),fx=nx<1&&e._texture[D(775)].alphaMode?(0,X.premultiplyTint)(e._tintRGB,nx):e[D(897)]+(255*nx<<24);for(let Cx=0;Cx<ZA[D(3553)];Cx+=2)J[s]=ZA[Cx],J[s+1]=ZA[Cx+1],J[s+2]=KA.a,J[s+3]=KA.c,J[s+4]=KA.tx,J[s+5]=KA.b,J[s+6]=KA.d,J[s+7]=KA.ty,J[s+8]=uA,J[s+9]=VA,J[s+10]=SA.x*XA,J[s+11]=SA.y*XA,J[s+12]=(SA.x+SA[D(3461)])*XA,J[s+13]=(SA.y+SA.height)*XA,B[s+14]=fx,J[s+15]=_A,s+=16;for(let Cx=0;Cx<BA.length;Cx++)Q[h++]=eA+BA[Cx]}},i}}[G(1635)]({}));var r0=function(f,t,x,A){var c=G,a,e=arguments.length,n=e<3?t:A===null?A=Object.getOwnPropertyDescriptor(t,x):A;if(c(1904)==typeof Reflect&&c(4653)==typeof Reflect[c(3131)])n=Reflect[c(3131)](f,t,x,A);else for(var Q=f[c(3553)]-1;Q>=0;Q--)(a=f[Q])&&(n=(e<3?a(n):e>3?a(t,x,n):a(t,x))||n);return e>3&&n&&Object[c(4292)](t,x,n),n},n0=function(f,t){var x=G;if(x(1904)==typeof Reflect&&x(4653)==typeof Reflect[x(4336)])return Reflect[x(4336)](f,t)},D2=function(){var f=G;function t(x,A,c,a,e,n,Q,s){var h=N;this[h(3998)]=new LA[h(4133)],this._name=x,this[h(3384)]=A,this[h(2628)]=a,this._config=c,this[h(4490)]=c[h(1679)],this[h(2563)]=e,this[h(2584)]=n,this[h(2371)]=Q,this[h(613)]=s}return Object[f(4292)](t.prototype,f(2448),{get:function(){var x=f;return this[x(1002)]},set:function(x){var A=f;this[A(1002)]=x,this[A(4525)]&&(this[A(4525)][A(3744)]=this._jsonIntensity*x)},enumerable:!1,configurable:!0}),Object[f(4292)](t[f(453)],"faceLandMarks",{set:function(x){var A=f;this[A(2563)]=x,this[A(4525)]&&this[A(3277)]()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,f(2048),{set:function(x){var A=f;this[A(613)]=x,this[A(4525)]&&this[A(3277)]()},enumerable:!1,configurable:!0}),t[f(453)].getCircle=function(x){var A=f;x===void 0&&(x=5);var c=new LA.Graphics;return c[A(624)](16711680),c[A(2264)](0,0,x),c[A(1366)](),c},t[f(453)][f(610)]=function(x){var A=f;x===void 0&&(x=5);var c=new LA[A(2763)];return c[A(624)](255),c[A(2264)](0,0,x),c[A(1366)](),c},t.prototype[f(3002)]=function(){var x=f;return this[x(3998)]},t.prototype[f(1184)]=function(){var x=f,A,c=this;if(this[x(2666)]()){var a=[];this[x(3384)].forEach(function(s){var h=x,D;D=s[h(3025)](".json")>-1?s:""[h(4146)](c[h(2371)],"|")[h(4146)](JSON[h(4163)](s).meta[h(3467)]);var B=Rx.iV[D][h(2864)],J=Object[h(905)](B)[h(2726)](function(eA){return B[eA]});a=a.concat(J)}),(A=new i0(a))[x(2689)]=!1,this[x(4074)]=this[x(4077)][x(1533)]/60,A[x(4240)]()}else{var e=this._src[0],n=LA[x(4517)][x(2083)][e];A=new N0(n)}A[x(2195)]=this[x(4077)][x(3613)],this[x(4077)][x(4212)],A[x(3461)]=this._config[x(3461)],A[x(2383)]=this[x(4077)][x(2383)];var Q=[.5,.5];this[x(4077)][x(3252)]&&(Q=this[x(4077)][x(3252)]),A.anchor[x(2306)](Q[0],Q[1]),A[x(3744)]=this[x(4490)]*this[x(2448)],this._sticker=A,this[x(3998)][x(641)](this[x(4525)]),this[x(3998)].convertTo3d(),this[x(3277)]()},t[f(453)][f(3277)]=function(){var x=f,A=this,c=this[x(4077)],a=this[x(2563)],e=OA.Jp[x(2726)](function(J){return a[J]}),n=(0,D0.Sp)({x:e[0].x*this[x(2584)][x(3461)],y:e[0].y*this[x(2584)][x(2383)],z:0},{x:e[1].x*this._options[x(3461)],y:e[1].y*this[x(2584)][x(2383)],z:0}),Q=c[x(2253)],s=c.weights,h=n/OA.jw,D=Q[x(2726)](function(J){var eA=x,BA=a[J];return{x:BA.x*A[eA(2584)].width,y:BA.y*A[eA(2584)][eA(2383)],z:0}});this[x(3998)][x(3408)].set(h);var B={x:D[0].x*s[0]+D[1].x*s[1]+D[2].x*s[2],y:D[0].y*s
|
||
|
|
varying vec2 vUvs;
|
||
|
|
uniform sampler2D mask;
|
||
|
|
uniform float intensity;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vec4 color = texture2D(mask, vUvs);
|
||
|
|
color = vec4(color.rgb, color.a) * intensity;
|
||
|
|
gl_FragColor = color;
|
||
|
|
}`;var Cc,oc=function(){var f=function(t,x){var A=N;return f=Object[A(4393)]||{__proto__:[]}instanceof Array&&function(c,a){var e=A;c[e(3536)]=a}||function(c,a){var e=A;for(var n in a)Object[e(453)][e(1454)][e(779)](a,n)&&(c[n]=a[n])},f(t,x)};return function(t,x){var A=N;if(A(4653)!=typeof x&&x!==null)throw new TypeError(A(2943)+String(x)+A(1667));function c(){var a=A;this[a(4586)]=t}f(t,x),t.prototype=x===null?Object.create(x):(c.prototype=x[A(453)],new c)}}(),Ct=function(f,t,x,A){return new(x||(x=Promise))(function(c,a){var e=N;function n(h){var D=N;try{s(A[D(577)](h))}catch(B){a(B)}}function Q(h){var D=N;try{s(A[D(4446)](h))}catch(B){a(B)}}function s(h){var D=N,B;h[D(2495)]?c(h.value):(B=h[D(4531)],B instanceof x?B:new x(function(J){J(B)})).then(n,Q)}s((A=A[e(4502)](f,t||[]))[e(577)]())})},Nt=function(f,t){var x=G,A,c,a,e,n={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:Q(0),throw:Q(1),return:Q(2)},x(4653)==typeof Symbol&&(e[Symbol[x(3051)]]=function(){return this}),e;function Q(s){return function(h){return function(D){var B=N;if(A)throw new TypeError(B(1604));for(;n;)try{if(A=1,c&&(a=2&D[0]?c[B(3575)]:D[0]?c[B(4446)]||((a=c.return)&&a[B(779)](c),0):c.next)&&!(a=a[B(779)](c,D[1]))[B(2495)])return a;switch(c=0,a&&(D=[2&D[0],a[B(4531)]]),D[0]){case 0:case 1:a=D;break;case 4:return n[B(1986)]++,{value:D[1],done:!1};case 5:n.label++,c=D[1],D=[0];continue;case 7:D=n[B(766)][B(513)](),n[B(2230)][B(513)]();continue;default:if(a=n[B(2230)],!((a=a[B(3553)]>0&&a[a[B(3553)]-1])||D[0]!==6&&D[0]!==2)){n=0;continue}if(D[0]===3&&(!a||D[1]>a[0]&&D[1]<a[3])){n[B(1986)]=D[1];break}if(D[0]===6&&n.label<a[1]){n[B(1986)]=a[1],a=D;break}if(a&&n[B(1986)]<a[2]){n[B(1986)]=a[2],n[B(766)][B(1383)](D);break}a[2]&&n[B(766)][B(513)](),n[B(2230)][B(513)]();continue}D=t[B(779)](f,n)}catch(J){D=[6,J],c=0}finally{A=a=0}if(5&D[0])throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}([s,h])}}},Dc=function(){var f=G;function t(x){var A=N;this[A(2584)]=x}return Object[f(4292)](t[f(453)],"uniforms",{set:function(x){var A=f;for(var c in x)this[A(2896)][A(3255)][c]=x[c]},enumerable:!1,configurable:!0}),t.prototype.applyTo=function(x){var A=f;x[A(3701)]||(x.filters=[]),x[A(3701)][A(3025)](this[A(2896)])>-1||(x.filters.push(this[A(2896)]),this[A(3998)]=x)},t[f(453)].removeFrom=function(x){var A=f;if(x.filters&&x[A(3701)][A(3025)](this[A(2896)])!==-1){var c=x[A(3701)][A(3025)](this[A(2896)]);x.filters[A(1889)](c,1),this[A(3998)]=null}},t[f(453)][f(1440)]=function(x,A){var c=f;this[c(2896)]&&this[c(2896)][c(1440)](x,A)},t}(),ya=function(f){var t=G;function x(A,c){var a=N,e=f[a(779)](this,c)||this;return e[a(1679)]=A,e}return oc(x,f),Object[t(4292)](x[t(453)],t(1679),{get:function(){var A=t;return this[A(2037)]},set:function(A){var c=t;this[c(2037)]=A,this[c(2896)]&&(this[c(2896)].uniforms.intensity=A)},enumerable:!1,configurable:!0}),x[t(453)][t(3824)]=function(){return Ct(this,void 0,Promise,function(){var A;return Nt(this,function(c){var a=N;switch(c[a(1986)]){case 0:return[4,new L0.cr(this[a(2584)])[a(3578)](this[a(1679)])];case 1:return A=c[a(3684)](),this._filter=A,A[a(3255)][a(1679)]=this[a(2037)],[2]}})})},x}(Dc),va=(function(f){var t=G;function x(A,c,a){var e=N,n=f[e(779)](this,a)||this,Q=n[e(2584)],s=Q[e(3461)],h=Q[e(2383)],D=new LA.BaseRenderTexture({width:s,height:h});return n.renderTexture=new LA[e(3703)](D),n[e(2896)]=new Xx.f(e(3674),a,{uniforms:{intensity:1,faceMask:n.renderTexture,grayTexture:LA[e(4517)][e(2083)][L0.lc],lookupTexture:LA[e(4517)][e(2083)][L0.M$],levelRangeInv:1.040816,levelBlack:.01960784}}),n[e(4278)]=A,n[e(1944)]=c,n}oc(x,f),Object.defineProperty(x[t(453)],t(4278),{get:function(){var A=t;return this[A(2216)]},set:function(A){var c=t;this[c(2216)]=A,this[c(1240)]&&(this[c(1240)][c(3255)][c(1679)]=A)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,t(1944),{get:function(){return this._intensityTeeth},set:function(A){var c=t;this[c(1061)]=A,this._shader&&(this._shader[c(3255)].intensityTeeth=A)},enumerable:!1,configurable:!0}),Object[t(4292)](x[t(453)],"renderer",{get:func
|
||
|
|
varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D mask;
|
||
|
|
uniform sampler2D mask_old_1;
|
||
|
|
uniform sampler2D mask_old_2;
|
||
|
|
uniform sampler2D mask_old_3;
|
||
|
|
uniform sampler2D mask_old_4;
|
||
|
|
uniform float alpha;
|
||
|
|
uniform float npmAlpha;
|
||
|
|
uniform vec4 maskClamp;
|
||
|
|
uniform float width;
|
||
|
|
uniform float height;
|
||
|
|
|
||
|
|
|
||
|
|
float normpdf(in float x, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
float normpdf3(in vec3 v, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec4 getMaskColor(vec2 coord) {
|
||
|
|
vec4 masky1 = texture2D(mask, coord);
|
||
|
|
vec4 masky2 = texture2D(mask_old_1, coord);
|
||
|
|
|
||
|
|
|
||
|
|
vec4 masky3 = texture2D(mask_old_2, coord);
|
||
|
|
|
||
|
|
|
||
|
|
vec4 masky4 = texture2D(mask_old_3, coord);
|
||
|
|
|
||
|
|
// vec4 r = masky1;
|
||
|
|
// vec4 r = (masky1 + masky2) / 2.0;
|
||
|
|
vec4 r = (masky1 + masky2 + masky3 + masky4) / 4.0;
|
||
|
|
|
||
|
|
|
||
|
|
return r;
|
||
|
|
}
|
||
|
|
// \u53CC\u8FB9\u6EE4\u6CE2
|
||
|
|
float bilateral(in vec2 vMaskCoord) {
|
||
|
|
const float SIGMA = 7.;
|
||
|
|
const float BSIGMA = 5.;
|
||
|
|
// const int MSIZE = 5;
|
||
|
|
{{MSIZE_PLACEHOLDER}}
|
||
|
|
|
||
|
|
float c = getMaskColor(vMaskCoord).a;
|
||
|
|
const int kSize = (mSize-1)/2;
|
||
|
|
float kernel[mSize];
|
||
|
|
float final_alpha = 0.0;
|
||
|
|
float Z = 0.0;
|
||
|
|
// \u63D0\u524D\u8BA1\u7B97\u67E5\u627E\u8868
|
||
|
|
for (int j = 0; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
kernel[kSize+j] = kernel[kSize-j] = normpdf(float(j), SIGMA);
|
||
|
|
}
|
||
|
|
|
||
|
|
// vec3 cc;
|
||
|
|
float cc;
|
||
|
|
float factor;
|
||
|
|
float bZ = 1.0/normpdf(0.0, BSIGMA);
|
||
|
|
|
||
|
|
//read out the texels
|
||
|
|
for (int i=-kSize; i <= kSize; ++i)
|
||
|
|
{
|
||
|
|
for (int j=-kSize; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
float ccc = getMaskColor(vMaskCoord + vec2( float(i) / width, float(j) / height )).a;
|
||
|
|
cc = ccc;
|
||
|
|
factor = normpdf(cc-c, BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];
|
||
|
|
Z += factor;
|
||
|
|
final_alpha += factor * ccc;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return final_alpha / Z;
|
||
|
|
}
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
|
|
|
||
|
|
float maskya = bilateral(vMaskCoord);
|
||
|
|
maskya = 1.0 / (1.0 + exp(-10.0 * (maskya - 0.5)));
|
||
|
|
original *= maskya;
|
||
|
|
gl_FragColor = original;
|
||
|
|
return;
|
||
|
|
|
||
|
|
}`;return s=s.replace("{{MSIZE_PLACEHOLDER}}",n(2305)[n(4146)](S2.instance.config[n(3096)],";")),(Q=f[n(779)](this,c||`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 otherMatrix;
|
||
|
|
|
||
|
|
varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
||
|
|
}
|
||
|
|
`,s,e)||this)[n(2061)]=!1,Q[n(3186)]=A,Q[n(2766)]=new LA[n(3301)],Q[n(2061)]=Fc(),Q}return qa(x,f),Object[t(4292)](x[t(453)],"maskSprite",{get:function(){var A=t;return this[A(4479)]},set:function(A){var c=t;this._maskSprite=A,this[c(4479)]&&(this._maskSprite[c(4331)]=!1)},enumerable:!1,configurable:!0}),x[t(453)].apply=function(A,c,a,e){var n=t,Q=this[n(4479)],s=Q[n(4548)];if(s[n(2630)])if(s[n(3020)]||(s[n(3020)]=new LA.TextureMatrix(s,0)),s[n(3020)][n(1154)](),this[n(3255)][n(2351)]=s.baseTexture.alphaMode?0:1,this[n(3255)][n(2599)]=s,this.uniforms[n(3994)]=this[n(2922)]||s,this.uniforms[n(2617)]=this[n(3991)]||this[n(3255)].mask_old_1,this[n(3255)][n(3127)]=this[n(478)]||this[n(3255)][n(2617)],this[n(3255)][n(4454)]=A[n(2603)](this.maskMatrix,Q)[n(1283)](s[n(3020)].mapCoord),this[n(3255)][n(3744)]=Q.worldAlpha,this.uniforms[n(589)]=s[n(3020)][n(3627)],A[n(3581)](this,c,a,e),this._segmentationInWorker){if(this[n(478)]){var h=this[n(478)][n(775)][n(4486)][n(877)];this[n(565)]||(this[n(565)]=LA[n(4546)][n(2252)](h)),this[n(565)][n(775)][n(4486)][n(877)]=h,this[n(565)].update()}if(this[n(3991)]){var D=this[n(3991)][n(775)][n(4486)][n(877)];this.lastImageTexture3||(this[n(478)]=LA.Texture.from(D)),this.lastImageTexture3[n(775)][n(4486)][n(877)]=D,this.lastImageTexture3[n(1154)]()}if(this.lastImageTexture){var B=this[n(2922)][n(775)][n(4486)][n(877)];this[n(3991)]||(this[n(3991)]=LA[n(4546)][n(2252)](B)),this[n(3991)].baseTexture[n(4486)][n(877)]=B,this.lastImageTexture2.update()}var J=s[n(775)][n(4486)][n(877)];this[n(2922)]||(this[n(2922)]=LA[n(4546)][n(2252)](J)),this[n(2922)][n(775)][n(4486)][n(877)]=J,this.lastImageTexture[n(1154)]()}else{var eA=s.baseTexture[n(4486)][n(877)];this.lastImageTexture?this[n(2922)].update():(this.lastImageTexture=LA.Texture[n(2252)](eA),console.log(n(877),eA,this[n(2922)]))}},x}(LA[G(2446)]);let zt=`varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D mask;
|
||
|
|
uniform sampler2D mask_old_1;
|
||
|
|
uniform sampler2D mask_old_2;
|
||
|
|
uniform sampler2D mask_old_3;
|
||
|
|
uniform float alpha;
|
||
|
|
uniform float npmAlpha;
|
||
|
|
uniform vec4 maskClamp;
|
||
|
|
uniform float width;
|
||
|
|
uniform float height;
|
||
|
|
// uniform int mSize;
|
||
|
|
|
||
|
|
float normpdf(in float x, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
float normpdf3(in vec3 v, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec4 getMaskColor(vec2 coord) {
|
||
|
|
vec4 masky1 = texture2D(mask, coord);
|
||
|
|
|
||
|
|
vec4 masky2 = texture2D(mask_old_1, coord);
|
||
|
|
// vec4 masky3 = texture2D(mask_old_2, coord);
|
||
|
|
// vec4 masky4 = texture2D(mask_old_3, coord);
|
||
|
|
|
||
|
|
// return masky1;
|
||
|
|
return (masky1 + masky2) / 2.0;
|
||
|
|
// return (masky1 + masky2 + masky3 + masky4) / 4.0;
|
||
|
|
}
|
||
|
|
// \u53CC\u8FB9\u6EE4\u6CE2, \u79FB\u52A8\u7AEF\u51CF\u5C0F\u53C2\u6570\u4EE5\u4F18\u5316\u6E32\u67D3\u6027\u80FD
|
||
|
|
float bilateral(in vec2 vMaskCoord) {
|
||
|
|
const float SIGMA = 15.0;
|
||
|
|
const float BSIGMA = 5.0;
|
||
|
|
// const float BSIGMA = 0.5;
|
||
|
|
// const float BSIGMA = 0.1;
|
||
|
|
// const int MSIZE = 7;
|
||
|
|
{{MSIZE_PLACEHOLDER}}
|
||
|
|
|
||
|
|
vec4 masky = getMaskColor(vMaskCoord);
|
||
|
|
|
||
|
|
float c = masky.a;
|
||
|
|
// vec3 c = masky.rgb;
|
||
|
|
const int kSize = (mSize-1)/2;
|
||
|
|
float kernel[mSize];
|
||
|
|
float final_alpha = 0.0;
|
||
|
|
float Z = 0.0;
|
||
|
|
for (int j = 0; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
kernel[kSize+j] = kernel[kSize-j] = normpdf(float(j), SIGMA);
|
||
|
|
}
|
||
|
|
|
||
|
|
// vec3 cc;
|
||
|
|
float cc;
|
||
|
|
float factor;
|
||
|
|
float bZ = 1.0/normpdf(0.0, BSIGMA);
|
||
|
|
|
||
|
|
//read out the texels
|
||
|
|
for (int i=-kSize; i <= kSize; ++i)
|
||
|
|
{
|
||
|
|
for (int j=-kSize; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
vec4 ccc = getMaskColor(vMaskCoord + vec2( float(i) / width, float(j) / height ));
|
||
|
|
cc = ccc.a;
|
||
|
|
factor = normpdf(cc-c, BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];
|
||
|
|
Z += factor;
|
||
|
|
final_alpha += factor * ccc.a;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return final_alpha / Z;
|
||
|
|
}
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
|
||
|
|
// float clip = step(3.5,
|
||
|
|
// step(maskClamp.x, vMaskCoord.x / 2.0) +
|
||
|
|
// step(maskClamp.y, vMaskCoord.y / 2.0) +
|
||
|
|
// step(vMaskCoord.x / 2.0, maskClamp.z) +
|
||
|
|
// step(vMaskCoord.y / 2.0, maskClamp.w));
|
||
|
|
|
||
|
|
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
|
|
|
||
|
|
// vec4 maskya = getMaskColor(vMaskCoord / 2.0);
|
||
|
|
// gl_FragColor = maskya;
|
||
|
|
|
||
|
|
float maskya = bilateral(vMaskCoord / 2.0);
|
||
|
|
// maskya = smoothstep(0.5, 0.75, maskya);
|
||
|
|
|
||
|
|
maskya = 1.0 / (1.0 + exp(-10.0 * (maskya - 0.5)));
|
||
|
|
|
||
|
|
float alphaMul = 1.0 - npmAlpha * (1.0 - maskya);
|
||
|
|
|
||
|
|
original *= alphaMul * maskya;
|
||
|
|
// original *= alphaMul * maskya * clip;
|
||
|
|
|
||
|
|
gl_FragColor = original;
|
||
|
|
}
|
||
|
|
`;var jc=function(){var f=function(t,x){var A=N;return f=Object[A(4393)]||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){var e=A;for(var n in a)Object.prototype[e(1454)][e(779)](a,n)&&(c[n]=a[n])},f(t,x)};return function(t,x){var A=N;if(A(4653)!=typeof x&&x!==null)throw new TypeError(A(2943)+String(x)+" is not a constructor or null");function c(){this.constructor=t}f(t,x),t[A(453)]=x===null?Object[A(1635)](x):(c[A(453)]=x.prototype,new c)}}(),Rc=function(){var f=G;function t(x,A){var c=N;if(this._segmentationInWorker=!1,this[c(2584)]=x,this[c(2061)]=Fc(),!this._maskSprite){var a=LA[c(4546)][c(2252)](A);this[c(4479)]=new LA.Sprite(a),this[c(4479)][c(3461)]=this[c(2584)][c(3461)],this._maskSprite[c(2383)]=this._options[c(2383)]}var e;this._maskFilter||(this._segmentationInWorker?((e=new Tc(this[c(4479)]))[c(3255)][c(3461)]=this[c(2584)][c(3461)],e[c(3255)][c(2383)]=this[c(2584)][c(2383)],e[c(3255)][c(817)]=S2[c(827)][c(2998)][c(3192)],this[c(4649)]=e):((e=new Tc(this[c(4479)],null,zt))[c(3255)].width=this[c(2584)][c(3461)],e[c(3255)][c(2383)]=this[c(2584)][c(2383)],this[c(4649)]=e))}return t[f(453)][f(4502)]=function(x){var A=f;this[A(1358)]&&this[A(528)](),console.log(A(677)),x[A(3701)]||(x.filters=[]),this._bgSprite&&x[A(4299)].addChildAt(this[A(2550)],0),x[A(3701)][A(1383)](this[A(4649)]),this[A(4387)]=x,this[A(1358)]=!0},t.prototype.remove=function(){var x=f,A=this;if(this[x(4649)]){var c=(this._currentTarget[x(3701)]||[]).findIndex(function(a){var e=x;return a===A[e(4649)]});console[x(4143)](x(2284),c,this[x(2550)]),c>-1&&this[x(4387)].filters[x(1889)](c,1),this._applied=!1,this[x(2550)]&&this._currentTarget.parent.removeChildAt(0)}},t[f(453)].resize=function(x,A){var c=f;this[c(2584)][c(3461)]=x,this._options.height=A,this[c(2550)].width=x,this._bgSprite[c(2383)]=A,this[c(4479)][c(3461)]=x,this[c(4479)][c(2383)]=A,this[c(4649)][c(3255)][c(3461)]=x,this[c(4649)][c(3255)].height=A},t.prototype[f(1091)]=function(x){},t[f(453)].updateMask=function(x){var A=f;this[A(2061)]&&(this._maskSprite.texture[A(775)][A(4486)][A(877)]=x),this._maskSprite.texture[A(1154)]()},t[f(453)][f(1165)]=function(){var x=f;try{this[x(4479)]&&this[x(4479)][x(1165)](),this._bgSprite&&this._bgSprite.destroy(),this._maskFilter=null}catch(A){}},t}(),Va=function(f){var t=G;function x(A,c,a){var e=N,n=f[e(779)](this,A,a)||this;if(c&&!n._bgSprite){var Q=LA.Texture[e(2252)](c);n[e(2550)]=new LA.Sprite(Q);var s=n[e(2550)],h=s.width,D=s[e(2383)],B=Math[e(2290)](n[e(2584)][e(3461)]/h,n[e(2584)][e(2383)]/D);n[e(2550)][e(3461)]=h*B,n[e(2550)][e(2383)]=D*B,n[e(2550)][e(3252)][e(2306)](.5),n[e(2550)].x=n[e(2584)][e(3461)]/2,n._bgSprite.y=n[e(2584)][e(2383)]/2,n[e(2550)][e(3701)]=[]}return n}return jc(x,f),x[t(453)][t(1091)]=function(A){var c=t;if(A&&A!==this._cache){var a=this._cache;this[c(2550)]&&(this[c(2550)][c(3689)]=LA.Texture[c(2252)](A)),this._cache=A,a&&a instanceof ImageBitmap&&a.close()}},x[t(453)][t(528)]=function(){var A=t;f[A(453)][A(528)][A(779)](this)},x}(Rc),Xa=function(f){var t=G;function x(A,c,a){var e=N,n=f.call(this,A,c)||this;if(!n[e(2550)]){var Q=LA[e(4546)][e(2252)](a);n[e(2550)]=new LA[e(4182)](Q),n[e(2550)][e(3461)]=n._options[e(3461)],n[e(2550)][e(2383)]=n[e(2584)][e(2383)];var s=new ba.T;s[e(3516)]=15,n[e(2550)][e(3701)]=[s]}return n}return jc(x,f),x.prototype[t(1091)]=function(A){var c=t;A&&(this[c(2550)][c(3689)][c(775)][c(4486)][c(877)]=A,this._bgSprite[c(3689)][c(1154)]())},x[t(453)][t(528)]=function(){var A=t;f.prototype[A(528)][A(779)](this)},x}(Rc),Wa=(function(f){var t=G;function x(A,c,a){var e=N;return f[e(779)](this,A,c)||this}jc(x,f),x[t(453)][t(528)]=function(){var A=t;f[A(453)][A(528)].call(this)}}(Rc),function(f){var t=G;function x(A,c){var a=N,e=f.call(this,A,c)||this;return e[a(2550)]||(e[a(2550)]=new LA.Sprite(LA[a(4546)][a(1940)]),e[a(2550)].tint=65280,e[a(2550)][a(3461)]=e[a(2584)][a(3461)],e._bgSprite[a(2383)]=e[a(2584)][a(2383)]),e}return jc(x,f),x[t(453)].remove=function(){var A=t;f[A(453)][A(528)][A(779)](this)},x}(Rc)),mc=Px(4332),St=function(f,t,x,A){var c=G,a,e=arguments.length
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 uTextureMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
|
||
|
|
}
|
||
|
|
`,"Dolphin","getChildByName","weak","updateSkew","uin","request","$fireUrl",`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2i(location, v[0], v[1]);
|
||
|
|
}`,"_far","projectName","setAttribute","supportedEntryTypes","far",`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v.x || cv[1] !== v.y)
|
||
|
|
{
|
||
|
|
cv[0] = v.x;
|
||
|
|
cv[1] = v.y;
|
||
|
|
gl.uniform2f(ud["`,"headers","input","a_en","Uint32Array","CLAMP_TO_EDGE","_getOutputResult","payload","cursive"," time:","Firefox Reality","toStringTag","interaction","keydown","ELIP","drawLetterSpacing","This method is only available if input is MediaStream","environment","READ_FRAMEBUFFER","sizeOf","blob","true","_indexBuffer","_unknownBoundTextures","loseContext","_lipMaskMesh","resolution","clearColor","deprecation","forceStencil","addOnce","ensureSamplerType","from=","getSize","UAParser","application/xml",`
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform vec4 inputSize;
|
||
|
|
uniform vec4 outputFrame;
|
||
|
|
uniform vec2 flipY;
|
||
|
|
|
||
|
|
vec4 filterVertexPosition( void )
|
||
|
|
{
|
||
|
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
|
||
|
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 filterTextureCoord( void )
|
||
|
|
{
|
||
|
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
|
}
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = filterVertexPosition();
|
||
|
|
vTextureCoord = filterTextureCoord();
|
||
|
|
vTextureCoord.y = flipY.x + flipY.y * vTextureCoord.y;
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"Invalid input","roundPixels","whiteSpace","_updateID","blackberry","pooled",`
|
||
|
|
precision mediump float;
|
||
|
|
|
||
|
|
uniform sampler2D u_inputFrame;
|
||
|
|
uniform vec2 u_scale;
|
||
|
|
uniform vec2 u_translate;
|
||
|
|
uniform vec2 u_pivot;
|
||
|
|
uniform vec2 u_size;
|
||
|
|
uniform float u_rotation;
|
||
|
|
varying vec2 v_texCoord;
|
||
|
|
uniform int u_mirror;
|
||
|
|
|
||
|
|
vec2 aspectedCoord(vec2 coord) {
|
||
|
|
float aspect = u_size.x / u_size.y;
|
||
|
|
if (aspect < 1.) {
|
||
|
|
return vec2(coord.x / aspect, coord.y);
|
||
|
|
} else {
|
||
|
|
return vec2(coord.x, coord.y * aspect);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
void main() {
|
||
|
|
|
||
|
|
vec2 transformCoord = v_texCoord;
|
||
|
|
if (u_mirror == 1) {
|
||
|
|
transformCoord.x = 1.-transformCoord.x;
|
||
|
|
}
|
||
|
|
transformCoord = aspectedCoord(transformCoord);
|
||
|
|
|
||
|
|
transformCoord = transformCoord * u_scale;
|
||
|
|
|
||
|
|
transformCoord = transformCoord + u_translate;
|
||
|
|
|
||
|
|
transformCoord = vec2(
|
||
|
|
(transformCoord.x - u_pivot.x) * cos(u_rotation) + (transformCoord.y - u_pivot.y) * sin(u_rotation),
|
||
|
|
(transformCoord.y - u_pivot.y) * cos(u_rotation) - (transformCoord.x - u_pivot.x) * sin(u_rotation)
|
||
|
|
) + u_pivot;
|
||
|
|
|
||
|
|
gl_FragColor = texture2D(u_inputFrame, transformCoord);
|
||
|
|
}
|
||
|
|
`,"runInferenceNoIris","1006","_sent",`float blendLinearDodge(float base, float blend) {
|
||
|
|
// Note : Same implementation as BlendAddf
|
||
|
|
return min(base+blend,1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendLinearDodge(vec3 base, vec3 blend) {
|
||
|
|
// Note : Same implementation as BlendAdd
|
||
|
|
return min(base+blend,vec3(1.0));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendLinearDodge(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendLinearDodge(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"_maskFilter","Facebook","useAsyncPlugin","Failed to turn up the user camera for the first time","function","_fillStyle","BaijiaCloudClient-Windows-bjyclient",`"].value;
|
||
|
|
v = uv["`,"arg","arm","destroyed","name '"," already exists","device","_populateBatches","setScreenSize"," radius=","_xhrTypeMap","_lastFrame","lastestEffectIds","originalFilterArea","#define SHADER_NAME ","rgba(","_resolveDirectShader","unpatch","https://aegis.qq.com","removeForConsole","\u6444\u50CF\u5934\u4E2D\u65AD\uFF0C\u8BF7\u624B\u52A8\u5237\u65B0\u9875\u9762","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead.","lips","originalMask",`.value;
|
||
|
|
v = uv.`,"_wordWrapWidth","convertSubtreeTo2d","CONTEXT_UID","addTextureIds","visible","strokeStyle","/speed/webvitals","copy","tap","uid_","srcElement","script","%sampleIndex%","steiner","getDevices","filterStack","req","collectEntryType","yaw","managedTextures","Please handle the parameters reasonably, options.url is necessary","directory"," * ","ASUS","forehead_top_center","speedLogPipeline","webgl2","_eventsCount","LEFT_FACE_OVAL","prev","Unrecognized source type to auto-detect Resource","getOutput!!!!","_add","dropShadow","beanFilter","prototype",'Whoops! The name "',"backgroundColor","_onLoadBinding","RED","use","lastTexWidth","size","Load timed out.","_int32View",'"].location',"log::::input node addBeautyAsync","_tempBoundTextures","triangulate","earcut","Promise","RGBA","_getPixelPosition","textBaseline","setAlpha","enable","loadLib3d","webOS","match","right_eye_right_corner","lastImageTexture3","vertexData","aegisPlugin","MIPMAP_MODES","triggerOnNewAegis","production","AROptions","ELEMENT_ARRAY_BUFFER","nextHopProtocol","dataLen","disableTempParent","CSS_ERROR","deleteRenderbuffer","get","drawShape","progress","skin_lookup.png","near","_checkIos14"," b=","setOptions",`ms
|
||
|
|
|
||
|
|
req url: `,"EventEmitter","loadStickers","DST_ALPHA","_requestId","isObject","tryLoc","webGLVersion","WEBGL2","param1","renderer","360 Browser","_letterSpacing","segmentationDetectionEnabled","pop","createElement","Google",'Require "input" or "camera" paramate',"Invalid length. Got ","getCameraSprite","windows","VITALS","DEPTH","mp4","AsyncFunction","setFromMatrix","__init4","MANUAL","SPEED","remove","RGBA32F","Opera","toString","addAttribute","preloadEffects","updateLocalTransform","_backgroundVR","_lineHeight","_backdropActive","setRealSize","retcode","contour_left4","_autoResolution",`
|
||
|
|
|
||
|
|
res data: `,"offline","running","off",`"].value !== t)
|
||
|
|
{
|
||
|
|
ud["`,"detectImage","mouth_lower_lip_bottom","fillText","endHole","popstate","SCALE_MODE","framebuffer_0","Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.","completes","getRequestType","undefined","facelandmarks","require 3d lib","TYPE","mediump","_checkWechat","0019","resetFirstInputPolyfill","lastImageTexture4","NT 6.1","POW2","predicate must be a function","skipSource","inputDomain","fill","buffers","getSingletonWorker","pivot3d","getTime","setUniforms","next","DEPTH_COMPONENT","8192","Custom","GC_MAX_IDLE","setExtensionXhrType","loadend","syncUniformGroup","61,75,74,68","shaderGenerator","emit","deleteVertexArray","maskClamp","intensities","LEFT_IRIS",`"].location, v.x, v.y);
|
||
|
|
}`,"createContext","SET_INTENSITY_ERROR","7560856HjMiQj","origin","_overrideWidth"," call failed","distortion","MULTIPLY"," height=","worldAlpha","_getVertexShader","_draw","addToCache","Gecko","ArrayResource does not support RenderTexture","_quatUpdateId","lip_bottom_right","getCircle2","CUSTOM","checkSpriteSheetJSON","_angles","RequestAnimationFrame","split","total","_currDevices","BaseTextureCache","_onError","This browser is not supported. Please use the latest version of Chrome, Safari, or WeChat","eyebrow_center","file:","tflite","beginFill","PinLight","WeixinJSBridgeReady","_mipmap","_isConnectedToTicker","Failed to create the recorder","elements","innerHeight","_transformID","dermabrasion","1.36.4","_mode3d",`float blendColorDodge(float base, float blend) {
|
||
|
|
return (blend==1.0)?blend:min(base/(1.0-blend),1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
float blendColorBurn(float base, float blend) {
|
||
|
|
return (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
float blendVividLight(float base, float blend) {
|
||
|
|
return (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendVividLight(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendVividLight(base.r,blend.r),blendVividLight(base.g,blend.g),blendVividLight(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendVividLight(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendVividLight(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"\u7EDF\u8BA1\u5E73\u5747\u5E27\u8017\u65F6","_colorDirty","fromCharCode","firstInputPolyfill","addChild",`
|
||
|
|
var `,"_partialDermabrasion","KHTML","_globalBatch","lineTo","_getInputChannelCount","drawEllipse","gl.uniform4uiv(location, v)","_setBeautify","userInfo","STATUS_FLAGS","filterLevel","_initCachedDisplayObject","\u989C\u8272\u51CF\u6DE1","static","latestEffectUrls","getPixels","u_translate","setUA","addChildAt: The index "," x3=","offlineUrl","_style",".js","left_eye_bottom","chin_right","_mesh","getSettings","inputClamp","onAegisInit and onAegisInitAndPluginLoaded must be function","__collect","indexBuffer","publishPluginsLogs","\u6267\u884Cenable","contour_right10","background apply","ids","Renderer","registerFindHook","1251364008","inputPixel",`;
|
||
|
|
`,"application/pkcs12","aria-relevant","dirtySize","Quark","read texture cache","micromessenger","objectStoreNames","TEXTURE_MIN_FILTER","defaultFragmentTemplate","beforeFetch","Failed to start recording","uniform sampler2D uSampler;","MachSpeed","toArray","clear hidden loop","unshift","local","_packedGeometryPoolSize","inv","checks","PAGE_NOT_FOUND_ERROR","MAX_TEXTURE_MAX_ANISOTROPY_EXT","translationMatrix","nodeWebkit","displayName"," supplied is out of bounds ","_plugins","waiting for input","visibilityState","x1=","BlackBerry","setEffectInner","lineTextureStyle",'"].value = uv["',"abc","tileTransform","engine","getBitmap","input_texture_base","use_webgl2","curveLength","vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);","rate","_useCurrent","XMLHttpRequest","core without input\uFF0Cno detect","macos","Audio","UCBrowser","delta","backGroundVR","invalid filter type","NT3.51","whiteListUrl","reverseLocalOrder","0018","originalCalculateBounds","originalDestroy","addDepthTexture","1.0.2","defaultState","catchLoc","_attributeBuffer","max arguments reached","emptyPool","meshResult","none","add","exsurehad","program","loadedIdMap","listeners",`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2ui(location, v[0], v[1]);
|
||
|
|
}`,"mat2","projection","culledByFrustrum","_wordWrap","calculateVertices","tabIndex","xhrType","initTextureType","sendSDKError","ops","textureIds","Sticker",`precision lowp float;
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D faceMask;
|
||
|
|
varying lowp vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform int width;
|
||
|
|
uniform int height;
|
||
|
|
|
||
|
|
uniform float intensity;
|
||
|
|
|
||
|
|
float normpdf(in float x, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
float normpdf3(in vec3 v, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// \u53CC\u8FB9\u6EE4\u6CE2
|
||
|
|
vec3 bilateral(in vec2 coordinate) {
|
||
|
|
const float SIGMA = 16.;
|
||
|
|
const float BSIGMA = 5.;
|
||
|
|
// const int MSIZE = 5;
|
||
|
|
const int mSize = 7;
|
||
|
|
|
||
|
|
// float c = getMaskColor(coordinate).a;
|
||
|
|
|
||
|
|
vec3 color = texture2D(uSampler, coordinate).rgb;
|
||
|
|
const int kSize = (mSize-1)/2;
|
||
|
|
float kernel[mSize];
|
||
|
|
vec3 final_alpha =vec3(0.);
|
||
|
|
float Z = 0.;
|
||
|
|
for (int j = 0; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
kernel[kSize+j] = kernel[kSize-j] = normpdf(float(j), SIGMA);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 cc;
|
||
|
|
float factor;
|
||
|
|
float bZ = 1.0/normpdf(0.0, BSIGMA);
|
||
|
|
|
||
|
|
//read out the texels
|
||
|
|
for (int i=-kSize; i <= kSize; ++i)
|
||
|
|
{
|
||
|
|
for (int j=-kSize; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
vec3 ccc = texture2D(uSampler, coordinate + vec2( float(i) / float(width), float(j) / float(height) )).rgb;
|
||
|
|
cc = ccc;
|
||
|
|
factor = normpdf3(cc-color, BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];
|
||
|
|
Z += factor;
|
||
|
|
final_alpha += factor * ccc;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return final_alpha / Z;
|
||
|
|
}
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
float mask = texture2D(faceMask, vTextureCoord).a;
|
||
|
|
|
||
|
|
float i = mask * intensity;
|
||
|
|
vec3 original = texture2D(uSampler, vTextureCoord).rgb;
|
||
|
|
|
||
|
|
if (i == 0.) {
|
||
|
|
gl_FragColor = vec4(original, 1.0);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 centralColor;
|
||
|
|
|
||
|
|
centralColor = texture2D(uSampler, vTextureCoord).rgb;
|
||
|
|
|
||
|
|
|
||
|
|
float x_a = float(width);
|
||
|
|
float y_a = float(height);
|
||
|
|
|
||
|
|
float mul_x = 2.0 / x_a;
|
||
|
|
float mul_y = 2.0 / y_a;
|
||
|
|
vec2 blurCoordinates0 = vTextureCoord + vec2(0.0 * mul_x, -10.0 * mul_y);
|
||
|
|
vec2 blurCoordinates2 = vTextureCoord + vec2(8.0 * mul_x, -5.0 * mul_y);
|
||
|
|
vec2 blurCoordinates4 = vTextureCoord + vec2(8.0 * mul_x, 5.0 * mul_y);
|
||
|
|
vec2 blurCoordinates6 = vTextureCoord + vec2(0.0 * mul_x, 10.0 * mul_y);
|
||
|
|
vec2 blurCoordinates8 = vTextureCoord + vec2(-8.0 * mul_x, 5.0 * mul_y);
|
||
|
|
vec2 blurCoordinates10 = vTextureCoord + vec2(-8.0 * mul_x, -5.0 * mul_y);
|
||
|
|
|
||
|
|
mul_x = 1.8 / x_a;
|
||
|
|
mul_y = 1.8 / y_a;
|
||
|
|
vec2 blurCoordinates1 = vTextureCoord + vec2(5.0 * mul_x, -8.0 * mul_y);
|
||
|
|
vec2 blurCoordinates3 = vTextureCoord + vec2(10.0 * mul_x, 0.0 * mul_y);
|
||
|
|
vec2 blurCoordinates5 = vTextureCoord + vec2(5.0 * mul_x, 8.0 * mul_y);
|
||
|
|
vec2 blurCoordinates7 = vTextureCoord + vec2(-5.0 * mul_x, 8.0 * mul_y);
|
||
|
|
vec2 blurCoordinates9 = vTextureCoord + vec2(-10.0 * mul_x, 0.0 * mul_y);
|
||
|
|
vec2 blurCoordinates11 = vTextureCoord + vec2(-5.0 * mul_x, -8.0 * mul_y);
|
||
|
|
|
||
|
|
mul_x = 1.6 / x_a;
|
||
|
|
mul_y = 1.6 / y_a;
|
||
|
|
vec2 blurCoordinates12 = vTextureCoord + vec2(0.0 * mul_x,-6.0 * mul_y);
|
||
|
|
vec2 blurCoordinates14 = vTextureCoord + vec2(-6.0 * mul_x,0.0 * mul_y);
|
||
|
|
vec2 blurCoordinates16 = vTextureCoord + vec2(0.0 * mul_x,6.0 * mul_y);
|
||
|
|
vec2 blurCoordinates18 = vTextureCoord + vec2(6.0 * mul_x,0.0 * mul_y);
|
||
|
|
|
||
|
|
mul_x = 1.4 / x_a;
|
||
|
|
mul_y = 1.4 / y_a;
|
||
|
|
vec2 blurCoordinates13 = vTextureCoord + vec2(-4.0 * mul_x,-4.0 * mul_y);
|
||
|
|
vec2 blurCoordinates15 = vTextureCoord + vec2(-4.0 * mul_x,4.0 * mul_y);
|
||
|
|
vec2 blurCoordinates17 = vTextureCoord + vec2(4.0 * mul_x,4.0 * mul_y);
|
||
|
|
vec2 blurCoordinates19 = vTextureCoord + vec2(4.0 * mul_x,-4.0 * mul_y);
|
||
|
|
|
||
|
|
float central;
|
||
|
|
float gaussianWeightTotal;
|
||
|
|
float sum;
|
||
|
|
float sampler;
|
||
|
|
float distanceFromCentralColor;
|
||
|
|
float gaussianWeight;
|
||
|
|
|
||
|
|
float distanceNormalizationFactor = 3.6;
|
||
|
|
|
||
|
|
central = texture2D(uSampler, vTextureCoord).g;
|
||
|
|
gaussianWeightTotal = 0.2;
|
||
|
|
sum = central * 0.2;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates0).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates1).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates2).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates3).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates4).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates5).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates6).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates7).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates8).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates9).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates10).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates11).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates12).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates13).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates14).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates15).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates16).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates17).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates18).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
|
||
|
|
sampler = texture2D(uSampler, blurCoordinates19).g;
|
||
|
|
distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);
|
||
|
|
gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);
|
||
|
|
gaussianWeightTotal += gaussianWeight;
|
||
|
|
sum += sampler * gaussianWeight;
|
||
|
|
sum = sum/gaussianWeightTotal;
|
||
|
|
sampler = centralColor.g - sum + 0.5;
|
||
|
|
// \u9AD8\u53CD\u5DEE\u4FDD\u7559
|
||
|
|
for(int i = 0; i < 5; ++i) {
|
||
|
|
if(sampler <= 0.5) {
|
||
|
|
sampler = sampler * sampler * 2.0;
|
||
|
|
} else {
|
||
|
|
sampler = 1.0 - ((1.0 - sampler)*(1.0 - sampler) * 2.0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
float aa = 1.0 + pow(sum, 0.3) * 0.09;
|
||
|
|
vec3 smoothColor = centralColor * aa - vec3(sampler) * (aa - 1.0);
|
||
|
|
smoothColor = clamp(smoothColor, vec3(0.0), vec3(1.0));
|
||
|
|
smoothColor = mix(centralColor, smoothColor, pow(centralColor.g, 0.33));
|
||
|
|
smoothColor = mix(centralColor, smoothColor, pow(centralColor.g, 0.39));
|
||
|
|
smoothColor = mix(centralColor, smoothColor, i);
|
||
|
|
gl_FragColor = vec4(pow(smoothColor, vec3(0.96)), 1.0);
|
||
|
|
|
||
|
|
|
||
|
|
return;
|
||
|
|
|
||
|
|
}`,`
|
||
|
|
|
||
|
|
res retcode: `,"u_pivot","FLOAT","Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly","A promise cannot be resolved with itself.","baseTexture","getOwnPropertySymbols","requestAnimationFrame","localStorage","call","suspendedStart","uint32ElementIndex","append","setRenderer","getAllResponseHeaders","updateVerticalVertices","_pixelsWidth","exclusiveFilter","_startIfPossible",`;
|
||
|
|
`,"playing","collectSuccessLog","_iBuffers","Version","setTransform","convertSubtreeTo3d","\u6D88\u606F\u53D1\u9001\u5931\u8D25\uFF0C\u8FDE\u63A5\u6B63\u5728\u5173\u95ED\uFF01","bvec3","sampler2D","graphicsData","translateLocation","getBoundingClientRect","_insert","gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;","toUpperCase","addLine","alignment","clientWaitSync"," c=","removeAllListeners","Camera","_baseSprite","pvUrl","CONNECTING","FLOAT_32_UNSIGNED_INT_24_8_REV","memory","removeExclusiveFilter","scaleRatio","lip_top_left","int16","originalUpdateTransform","position","HTC","preserveDrawingBuffer","addFrameMatrix","copyTo","preserveBitmap","instance","Content-Type","getCore","array","points=","HUE","graphics","OVERLAY","runners","highp","mincutoff","installedPlugins","KBXnR3acKr6fXGBXXaBGXwbW","rotationLocation","_textureTrimmedID","vertexData2d","_dequeue","ADD_NPM","realWidth","_buffer","base_width","HARD_MIX","nextPow2","abort",`precision mediump float;
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aUvs;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vUvs = aUvs;
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}`,"NEAREST","offset = ","NPM","draw","RREC","getEyeAngles","setResource",'" does not exist in TextureCache.',"left_eye_top","initFromContext","format","_mirror",`
|
||
|
|
`,"updateStream","PerformanceEventTiming","meta","contains","createTexture","locations_base","videoHeight","setMesh","drawArraysInstanced","getBuffer","buildDrawCalls","initPreprocess","source","Failed to load element using: ","scaleLocation","[Circular ","gl.uniform3iv(location, v)","_anchor","currentPath","unexpected EOF","surface","byteLength","fulfilled","text/css","descent",`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
data[offset+2] = v[2];
|
||
|
|
data[offset+3] = v[3];
|
||
|
|
`,`float blendColorDodge(float base, float blend) {
|
||
|
|
return (blend==1.0)?blend:min(base/(1.0-blend),1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
float blendColorBurn(float base, float blend) {
|
||
|
|
return (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
float blendVividLight(float base, float blend) {
|
||
|
|
return (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
float blendHardMix(float base, float blend) {
|
||
|
|
return (blendVividLight(base,blend)<0.5)?0.0:1.0;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendHardMix(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendHardMix(base.r,blend.r),blendHardMix(base.g,blend.g),blendHardMix(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendHardMix(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendHardMix(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"net6g","system","_ticker","fetchWithSubPackage","Code","_tintRGB","playVideo","_breakingSpaces","msg","DetectMode","lip_top_right","forceState","setFilter","keys",'Require "input" or "camera" parameter',"0016","default","right_eye_top","_backgroundColorString","WeChat","faceDetected","miterLimit","updateTextureStyle","getAnglesOld","firstChild","original","_clearEvents","Failed to load the effects","checkReady","UNSIGNED_INT_2_10_10_10_REV","sizeLocation","getContext","canplaythrough","7QUWwar","hostname","Image","__wbindgen_free"," * realIntensity","_applyMakeup","fontStyle","invalid zip data","mem","initConfig cost::","AXIS_Y","originSend","</br> title : ","executing",'Resource named "',"UNPACK","ortographic","urlHandler","option","lips-mask-wx2.png","Safari",`
|
||
|
|
varying vec3 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D mask;
|
||
|
|
uniform float alpha;
|
||
|
|
uniform vec4 maskClamp;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec2 uv = vMaskCoord.xy / vMaskCoord.z;
|
||
|
|
|
||
|
|
float clip = step(3.5,
|
||
|
|
step(maskClamp.x, uv.x) +
|
||
|
|
step(maskClamp.y, uv.y) +
|
||
|
|
step(uv.x, maskClamp.z) +
|
||
|
|
step(uv.y, maskClamp.w));
|
||
|
|
|
||
|
|
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
|
|
vec4 masky = texture2D(mask, uv);
|
||
|
|
|
||
|
|
original *= (masky.r * masky.a * alpha * clip);
|
||
|
|
|
||
|
|
gl_FragColor = original;
|
||
|
|
}
|
||
|
|
`,"uploadHooks","_destroyed","jQuery","createCanvas","/collect","FRAGMENT_SHADER","application/javascript","meego","WEBGL_compressed_texture_atc","center",";level:","contour_right3","isMaskData","entries","getProgramInfoLog","NT 10.0","0022","_playing","invert","load avatar background","dispatch","frames","dcutoff should be >0","input_texture_1","normalized","loading","slice","detectFps","RESOLUTION","mediaDevices","BUTT","setAxisX","WEBGL_lose_context","nvidiaGPU","process","createTouchHook","_repeatEdgePixels","linkBaseTexture","lips-mask.png",`float blendOverlay(float base, float blend) {
|
||
|
|
return base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendOverlay(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendOverlay(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendOverlay(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"isGetSample",';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})',"RIGHT_FACE_OVAL3","_uc","removeChild","transform","scope","failType","strict","language","getImageInstance","design:returntype","cameraMatrix","|\xC9q\xC5","removeItems","_parentIntensity","closeStroke=","aColor","_filters"," isn't a valid view type","rgba(255,255,255,0.5)","animationSpeed","samplerCube",'{"aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aqua":"#00ffff","aquamarine":"#7fffd4","azure":"#f0ffff","beige":"#f5f5dc","bisque":"#ffe4c4","black":"#000000","blanchedalmond":"#ffebcd","blue":"#0000ff","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887","cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","cyan":"#00ffff","darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkgrey":"#a9a9a9","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f","darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkslategrey":"#2f4f4f","darkturquoise":"#00ced1","darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dimgrey":"#696969","dodgerblue":"#1e90ff","firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","fuchsia":"#ff00ff","gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","goldenrod":"#daa520","gold":"#ffd700","gray":"#808080","green":"#008000","greenyellow":"#adff2f","grey":"#808080","honeydew":"#f0fff0","hotpink":"#ff69b4","indianred":"#cd5c5c","indigo":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c","lavenderblush":"#fff0f5","lavender":"#e6e6fa","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2","lightgray":"#d3d3d3","lightgreen":"#90ee90","lightgrey":"#d3d3d3","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightslategrey":"#778899","lightsteelblue":"#b0c4de","lightyellow":"#ffffe0","lime":"#00ff00","limegreen":"#32cd32","linen":"#faf0e6","magenta":"#ff00ff","maroon":"#800000","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370db","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee","mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5","navajowhite":"#ffdead","navy":"#000080","oldlace":"#fdf5e6","olive":"#808000","olivedrab":"#6b8e23","orange":"#ffa500","orangered":"#ff4500","orchid":"#da70d6","palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#db7093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","purple":"#800080","rebeccapurple":"#663399","red":"#ff0000","rosybrown":"#bc8f8f","royalblue":"#4169e1","saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","silver":"#c0c0c0","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","slategrey":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4","tan":"#d2b48c","teal":"#008080","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0","violet":"#ee82ee","wheat":"#f5deb3","white":"#ffffff","whitesmoke":"#f5f5f5","yellow":"#ffff00","yellowgreen":"#9acd32"}',"getNetworkType",`#version 300 es
|
||
|
|
|
||
|
|
precision mediump float;
|
||
|
|
|
||
|
|
uniform sampler2D u_inputFrame;
|
||
|
|
uniform vec2 u_size;
|
||
|
|
in vec2 v_texCoord;
|
||
|
|
uniform int u_mirror;
|
||
|
|
|
||
|
|
out vec4 outColor;
|
||
|
|
vec2 aspectedCoord(vec2 coord) {
|
||
|
|
float aspect = u_size.x / u_size.y;
|
||
|
|
if (aspect < 1.) {
|
||
|
|
return vec2(coord.x / aspect, coord.y);
|
||
|
|
} else {
|
||
|
|
return vec2(coord.x, coord.y * aspect);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
void main() {
|
||
|
|
vec2 transformCoord = v_texCoord;
|
||
|
|
if (u_mirror == 1) {
|
||
|
|
transformCoord.x = 1.-transformCoord.x;
|
||
|
|
}
|
||
|
|
transformCoord = aspectedCoord(transformCoord);
|
||
|
|
if (transformCoord.x > 1. || transformCoord.x < 0. || transformCoord.y > 1. || transformCoord.y < 0.) {
|
||
|
|
outColor = vec4(0.0);
|
||
|
|
} else {
|
||
|
|
outColor = texture(u_inputFrame, transformCoord);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
`,"walk","largest-contentful-paint",` float;
|
||
|
|
`,"RG8","environment has no device!","DST_OVER","_lipMask","getActiveUniform","checkAndClearOldFileCache","onStart","stream finished","tint","depthTexture","isMobile","BLEND","setMaskStack","BATCHABLE_SIZE","segmentationCallback","_rightIris","seq","ivec4","isBatchable","onError","rotate","NT4.0","unknownFramebuffer","calculateProjection","oninactive","_calculateCachedBounds","setFileCache","not a string: ","unmuteAudio","error","ios","mapBilinearSprite","_state","handleContextRestored","autoplay","button","parentResource","outputRectMemoryOffset","configurable","pre","?payload=","now","HIGH","POINT","_boundXhrOnTimeout","_intensityTeeth","_renderer","affine","scaleMode","getAvatarList","_fillGradientStops","hideLoading","setStream","?id=1085&msg[0]=","uboCount"," tx=","disableEffect","boundArray","amdGPU","lipsTriangulation","reportEvent","_wasm","filterWithAlpha","buffer","uniformDirtyGroups","handleLoading","dirtyStyleId","loader reset","line","disableFaceDetection","locations_1","DEPTH_STENCIL","onResize","tilingSprite","clearDirty","updateBackground","custom","input_type","updateAccessibleObjects","zy sdk pixi render error","setPolygonOffset","setAxisY","refCount","_visible","Symbian","spritesheet","sKBXnR3acKr6fXGBXXaBGXwbW","getShaderInfoLog","design:type","get:","camera","hackFetchOptions","uint32Indices","setResolution","ON_MANUAL","video/","INCR","_load","_hide","_context","_immediateFn","getPrototypeOf",`
|
||
|
|
vec4 color`,"_inited","glMatrixMat4Invert","0004","colorTextures","rval",`float blendLighten(float base, float blend) {
|
||
|
|
return max(blend,base);
|
||
|
|
}
|
||
|
|
float blendDarken(float base, float blend) {
|
||
|
|
return min(blend,base);
|
||
|
|
}
|
||
|
|
float blendPinLight(float base, float blend) {
|
||
|
|
return (blend<0.5)?blendDarken(base,(2.0*blend)):blendLighten(base,(2.0*(blend-0.5)));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendPinLight(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendPinLight(base.r,blend.r),blendPinLight(base.g,blend.g),blendPinLight(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendPinLight(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendPinLight(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"[@pixi/core:TextureUvs ","webkit-playsinline","?id=00","collapseNewlines","/speed/performance","ZTE","runner","additions","internalFormats","_parseComplete","no callback","onRejected","zip","supports","\u65E0\u6CD5\u83B7\u77E5\u5177\u4F53\u9519\u8BEF\u4FE1\u606F\uFF0C\u9700\u5728\u6D4F\u89C8\u5668\u63A7\u5236\u53F0\u67E5\u770B\uFF01","protocol","MQQBrowser","kind","lastVideoHeight","_unhandledRejectionFn","</br> tabIndex: ","getDepth","refreshNetworkStatusToBean","SCISSOR_TEST","Complete called again for an already completed resource.","complete","isContextLost","texSubImage3D","_updateResolution","update","BeautifyOptions","preloaded","auto","createPipeline need at least one function param","getStaticPath","toLocaleLowerCase","_matrix = uv.","Android use GPU detect","bindAttribLocation","avatarSet","destroy","setPlayerView","XHR","\u7EBF\u6027\u52A0\u6DF1","tagName","eyes","errcode","nose_bridge2","upload","readPixels","flag","reportAssetSpeed","1.0.13","RGB5_A1",`
|
||
|
|
v = uv.`,"method","emptyTextures","ended",`
|
||
|
|
else `,"load","getOutput","bvec2","EXT_texture_filter_anisotropic","defaultFrame","SHORT","finish","init simd solution success","shape","_cx","fontVariant","$walk","vertexDirtyId","tilingSprite2d","is_in_white_list","_textureUpdateId","vitals","enc resource load fail","lastTime","text/xml"," gl_FragColor = vec4(0.0);","DEPTH_COMPONENT16","parser","_isSourceReady","Chrome WebView"," does not exist","lut","\u6D88\u606F\u53D1\u9001\u5931\u8D25\uFF0C\u6B63\u5728\u8FDE\u63A5\u4E2D\uFF01","contour_right4","setDepthMask","ALPHA_MODES","\u57FA\u7840\u5E93\u52A0\u8F7D\u5931\u8D25","setBeta","PREMULTIPLIED_ALPHA","nose_right2","status","setBlendMode"," x2=","_meshVertex","content-type","exports","_resolve","checkFacingModeById","_cacheData","SVG_XML","timeEnd: first param must be a string","loadImage","_intensityDarkCircle","connection","getItem","toASCII","publishNotReportedLog","inputStreamChange","smarttv","link","startListen","_shader","_boundOnError","spriteSourceSize","vertexAttribDivisorANGLE","PerformanceObserver","_boundXhrOnAbort","attribSize","onChange","createObjectURL","publishNormalLog","The supplied DisplayObject must be a child of the caller","wordWrap","isWhiteList","ANISOTROPIC_LEVEL","unknown","tileProj","canplay","https","LINEAR_DODGE",`float blendColorBurn(float base, float blend) {
|
||
|
|
return (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendColorBurn(vec3 base, vec3 blend) {
|
||
|
|
return vec3((base.r,blend.r),blendColorBurn(base.g,blend.g),blendColorBurn(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
vec3 blendColorBurn(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendColorBurn(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"browser","click","EXT_color_buffer_float","_onAnchorUpdate","\u7279\u6548\u52A0\u8F7D\u5931\u8D25","initFromArray","GET","dropShadowBlur","blendEquationSeparate","DOCUMENT","stop","RGB16I","\u68C0\u6D4B\u5230\u4E86","maliGPU","override","_applyed","getUniforms","string2hex","HAVE_FUTURE_DATA","0024","_hasFlag","cpr","_width","prepend","deltaMS","_getIris","Nvidia","createObjectStore","resizeFlag","_loadXhr","Multiply","createLinearGradient","bindRenderbuffer","_boundLoadResource","autoPlay","aTextureId","cameraReady","getChildIndex"," %blur%","getVideoSprite","loadedUrls","64,65,63,72,79,70,74","isInFirstScreen","needDetection","TEMP_MATRIX","RIGHT_FACE_OVAL","setupDetector","GSA","RGB32I","outputReady","hostUrl","AXIS_X","tencentcloud-webar:utils:one-euro-filter","_dropShadowDistance","Blink","vec4","glFramebuffers",`_matrix[6];
|
||
|
|
data[offset + 9] = `,"closePointEps","isPureFilter","startTicker","XHR_RESPONSE_TYPE","set:","detect","_keypoints","setCommonConfig","lip_bottom_center","workers","send","isNewline","_uvs","backgroundUrl","WEBGL_compressed_texture_astc","2771841swmIku","webkitURL","NetworkStatusRefreshTimer",`#version 300 es
|
||
|
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
in vec2 vTextureCoord;
|
||
|
|
|
||
|
|
out vec4 fragmentColor;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
uniform mat3 uMapCoord;
|
||
|
|
uniform vec4 uClampFrame;
|
||
|
|
uniform vec2 uClampOffset;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
|
||
|
|
coord = (uMapCoord * vec3(coord, 1.0)).xy;
|
||
|
|
vec2 unclamped = coord;
|
||
|
|
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
|
||
|
|
|
||
|
|
vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0
|
||
|
|
|
||
|
|
fragmentColor = texSample * uColor;
|
||
|
|
}
|
||
|
|
`,"maskObject","COLOR","Need to enter the page again for the license to take effect","canUse","_detectSeg","compile","bindAndClearTexArray","FPS","shapeIndex","maxIdle","_head","unknownTexture",`
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
uniform sampler2D uSamplers[%count%];
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
vec4 color;
|
||
|
|
%forloop%
|
||
|
|
gl_FragColor = color * vColor;
|
||
|
|
}`,`
|
||
|
|
precision mediump float;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
`,"@@asyncIterator","bb10","uniform2fv","mousemove","_getPrevHasFace","windowsTablet","_textBaseline","_applied","_faceLandmarks","aegisUrl","refreshNetworkTypeToBean","setData","updateGeometry","reportTime: second param must be number","NT 5.0","endFill","utf-16le","staticProxy","nose_left2","RG16F","int8","62,61,63,6b,67,72,6f,75,6e,64","isCocoonJS","WEBGL_debug_renderer_info","frontFace","drawCalls","_initSegmentationWorker","dcutoff","endAngle","logAngle","data","patch","push","_boundXhrOnLoad","PresetType","base_height","sin","canvas_","attribStart","Darken","videoinput","outputStream","Zeki","teethWhiten","updateUvs","_bottomHeight","destroyAvatar","retCodeHandlerAsync","miter","EXCLUSION","BRIDGE_ERROR","extensions","R8UI","setProxyServer","FUNC_ADD","forceClear","registerUploadHook","addPoint","audio","isVisible","index","output","passes","initCore","alphaMode","SmartTV","_fontFamily","encLoader","absolute","_pixelsHeight","/416","roots","BEVEL","_miterLimit","outputPixels2","$1 Browser","checkSegDetected","countInstance","_xhrOnError","domainLookupEnd","mimeType","_dropShadowBlur","GC_MAX_CHECK_COUNT","written","customTimeUrl","bitmap","timeEnd","cameraMode","setLevel","resize","Microsoft","isFrontFace","unsupported align: ","bindBuffer","Preset","symbol","gpu","TEXTURE0","set filter error","__version__ has discard, please use version","_determineXhrType","uvsFloat32","target","hasOwnProperty","contour","enableTempParent","alpha should be in (0.0., 1.0]","_textureID","calcScissorRect","__wbindgen_realloc","Windows","__get","color: red","nose","rQYf3jrBMk5tsdfXzHyx3QSF","_fill","disableIrisDetection","_holeMode","max-width:100%;max-height:100%;object-fit:contain;display:block;margin:0 auto;","TypeCanvas","AEGIS-IGNORE-FIRST-SCREEN-TIMING","setDataReportUrl","invalid zlib data: preset dictionaries not supported",`#version 100
|
||
|
|
#define SHADER_NAME Tiling-Sprite-Simple-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec4 texSample = texture2D(uSampler, vTextureCoord);
|
||
|
|
gl_FragColor = texSample * uColor;
|
||
|
|
}
|
||
|
|
`,"detector","renderCanvas","_doing_switchDevice",`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
}
|
||
|
|
`,"clearBeforeRender","score","_isVR","WeakSet","offlineLog","_activeVao",`#version 300 es
|
||
|
|
|
||
|
|
precision mediump float;
|
||
|
|
|
||
|
|
uniform sampler2D u_inputFrame;
|
||
|
|
uniform vec2 u_scale;
|
||
|
|
uniform vec2 u_translate;
|
||
|
|
uniform vec2 u_pivot;
|
||
|
|
uniform vec2 u_size;
|
||
|
|
uniform float u_rotation;
|
||
|
|
in vec2 v_texCoord;
|
||
|
|
uniform int u_mirror;
|
||
|
|
|
||
|
|
out vec4 outColor;
|
||
|
|
vec2 aspectedCoord(vec2 coord) {
|
||
|
|
float aspect = u_size.x / u_size.y;
|
||
|
|
if (aspect < 1.) {
|
||
|
|
return vec2(coord.x / aspect, coord.y);
|
||
|
|
} else {
|
||
|
|
return vec2(coord.x, coord.y * aspect);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
void main() {
|
||
|
|
vec2 transformCoord = v_texCoord;
|
||
|
|
if (u_mirror == 1) {
|
||
|
|
transformCoord.x = 1.-transformCoord.x;
|
||
|
|
}
|
||
|
|
transformCoord = aspectedCoord(transformCoord);
|
||
|
|
|
||
|
|
transformCoord = transformCoord * u_scale;
|
||
|
|
|
||
|
|
transformCoord = transformCoord + u_translate;
|
||
|
|
|
||
|
|
transformCoord = vec2(
|
||
|
|
(transformCoord.x - u_pivot.x) * cos(u_rotation) + (transformCoord.y - u_pivot.y) * sin(u_rotation),
|
||
|
|
(transformCoord.y - u_pivot.y) * cos(u_rotation) - (transformCoord.x - u_pivot.x) * sin(u_rotation)
|
||
|
|
) + u_pivot;
|
||
|
|
|
||
|
|
|
||
|
|
if (transformCoord.x > 1. || transformCoord.x < 0. || transformCoord.y > 1. || transformCoord.y < 0.) {
|
||
|
|
outColor = vec4(0.0);
|
||
|
|
} else {
|
||
|
|
outColor = texture(u_inputFrame, transformCoord);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
`,"no input node","triggerInit","lengthComputable","afterLoc","affinePreserveOrientation","faceMeshDetectHeight","frame","sign","IMAGE_ERROR","readyState","__init2","extraPerformanceData","getVideoTracks","onComplete","ceil","RX ","style","BYTE","started","authFunc","TIMEOUT_EXPIRED","textureCacheIds","_getModelInfo","initMainLoop","_configCenter","dirty","activateVao","charCodeAt","_onCanPlay","node","contentType","clone","input camera inited",`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
data[offset+2] = v[2];
|
||
|
|
|
||
|
|
data[offset + 4] = v[3];
|
||
|
|
data[offset + 5] = v[4];
|
||
|
|
data[offset + 6] = v[5];
|
||
|
|
|
||
|
|
data[offset + 8] = v[6];
|
||
|
|
data[offset + 9] = v[7];
|
||
|
|
data[offset + 10] = v[8];
|
||
|
|
`,"chunk-","queue","addTicker","32768",`ms
|
||
|
|
|
||
|
|
res status: `,"_resizeTo","fromLoader","epsilon","_overrideHeight","u_inputFrame","publishSpeed","var a0M8=a0b;function a0b(a,b){var c=a0a();return a0b=function(d,e){d=d-0x113;var f=c[d];return f;},a0b(a,b);}function a0a(){var a8O=['texSubImage2D','__getArray','info','destroy','startPoly','lip_bottom_center_target','PIXI.resources.','Motorola','Invalid\\x20length.\\x20Got\\x20','getExtension','msaaSamples','_durations','proj','bufferData','\\x0aattribute\\x20vec2\\x20aVertexPosition;\\x0aattribute\\x20vec2\\x20aTextureCoord;\\x0a\\x0auniform\\x20mat3\\x20projectionMatrix;\\x0auniform\\x20mat3\\x20otherMatrix;\\x0a\\x0avarying\\x20vec3\\x20vMaskCoord;\\x0avarying\\x20vec2\\x20vTextureCoord;\\x0a\\x0avoid\\x20main(void)\\x0a{\\x0agl_Position\\x20=\\x20vec4((projectionMatrix\\x20*\\x20vec3(aVertexPosition,\\x201.0)).xy,\\x200.0,\\x201.0);\\x0a\\x0avTextureCoord\\x20=\\x20aTextureCoord;\\x0avMaskCoord\\x20=\\x20otherMatrix\\x20*\\x20vec3(\\x20aTextureCoord,\\x201.0);\\x0a}\\x0a','load\\x20avatar\\x20background','212646MfCMmv','ended','_mirror','mincutoff\\x20should\\x20be\\x20>0','drawMeshBatch','BATCH_SIZE','_filterIntensity','#000000','fontProperties','PREMULTIPLY_ALPHA','getChildByName','lineWidth','tflite','visible','realHeight','setReshapeMarks','video\\x20play+++++','beginFrame','buildTexturesAndDrawCalls','getAttributeBuffer','66532MnQkvI','TEXTURE_CUBE_MAP_NEGATIVE_Z','copyTo3d','_getLandmarkScore',',\\x20expected\\x206','setUniforms','HTMLCanvasElement','ReuseableLipMask','MIPMAP_MODES','image','absolute','_onKeyDown','REPEAT','Realme','onerror','getDevice','setFilter','gl.uniform3fv(location,\\x20v)','setUA','_dropShadowColor','model','_url','isBreakingSpace','attribStart','LinearBurn','batchUvs','video/mp4','currentTime','ARM','ASUS','filename\\x20too\\x20long','invalid\\x20zip\\x20data','BEVEL','__wbindgen_free','bindFramebuffer','originalMask','Only\\x20one\\x20base\\x20texture\\x20per\\x20TextureArray\\x20is\\x20allowed','\\x0avarying\\x20vec3\\x20vMaskCoord;\\x0avarying\\x20vec2\\x20vTextureCoord;\\x0a\\x0auniform\\x20sampler2D\\x20uSampler;\\x0auniform\\x20sampler2D\\x20mask;\\x0auniform\\x20float\\x20alpha;\\x0auniform\\x20vec4\\x20maskClamp;\\x0a\\x0avoid\\x20main(void)\\x0a{\\x0avec2\\x20uv\\x20=\\x20vMaskCoord.xy\\x20/\\x20vMaskCoord.z;\\x0a\\x0afloat\\x20clip\\x20=\\x20step(3.5,\\x0a\\x20\\x20\\x20\\x20step(maskClamp.x,\\x20uv.x)\\x20+\\x0a\\x20\\x20\\x20\\x20step(maskClamp.y,\\x20uv.y)\\x20+\\x0a\\x20\\x20\\x20\\x20step(uv.x,\\x20maskClamp.z)\\x20+\\x0a\\x20\\x20\\x20\\x20step(uv.y,\\x20maskClamp.w));\\x0a\\x0avec4\\x20original\\x20=\\x20texture2D(uSampler,\\x20vTextureCoord);\\x0avec4\\x20masky\\x20=\\x20texture2D(mask,\\x20uv);\\x0a\\x0aoriginal\\x20*=\\x20(masky.r\\x20*\\x20masky.a\\x20*\\x20alpha\\x20*\\x20clip);\\x0a\\x0agl_FragColor\\x20=\\x20original;\\x0a}\\x0a','npmAlpha','Failed\\x20to\\x20load\\x20the\\x20effects','set:','nasolabialFolds','invalid\\x20id:\\x20','\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20cv\\x20=\\x20ud.','renderMesh','MOUTH_LOWER','useDefaults','importScripts','_tail','graphics','Parameter\\x20\\x27url\\x27\\x20must\\x20be\\x20a\\x20string,\\x20not\\x20','initFlushBuffers','NEAREST','micromessenger','translationMatrix','warn','\\x0auniform\\x20sampler2D\\x20uSampler;\\x0avarying\\x20vec2\\x20vTextureCoord;\\x0a\\x0avoid\\x20main()\\x20{\\x0a\\x20\\x20vec2\\x20p\\x20=\\x20vTextureCoord;\\x0a\\x20\\x20p.y\\x20=\\x201.0\\x20-\\x20p.y;\\x0a\\x20\\x20vec4\\x20color\\x20=\\x20texture2D(uSampler,\\x20p);\\x0a\\x20\\x20gl_FragColor\\x20=\\x20color;\\x0a}\\x0a','_beautifies','bindRequest','textureScale','getMinutes','loadStickers','volume','world','float\\x20blendColorDodge(float\\x20base,\\x20float\\x20blend)\\x20{\\x0a\\x09return\\x20(blend==1.0)?blend:min(base/(1.0-blend),1.0);\\x0a}\\x0a\\x0a\\x0afloat\\x20blendColorBurn(float\\x20base,\\x20float\\x20blend)\\x20{\\x0a\\x09return\\x20(blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\\x0a}\\x0a\\x0a\\x0a\\x0a\\x0afloat\\x20blendVividLight(float\\x20base,\\x20float\\x20blend)\\x20{\\x0a
|
||
|
|
|
||
|
|
res data: `,"getAttributeBuffer","updateTexture","Unsupported element: ",`
|
||
|
|
|
||
|
|
req method: `,"DEPTH_COMPONENT32F","_currentTime","_getMinScale","onPrerender","unload","SATURATION","webm","transaction","setBeauty"," ty=","RG16UI","_getMask","_padding","measureFont","XML","segHeight","premultiplyAlpha","Xiaomi","dispatchEvent","RG32F","HEAPF32","initTexture","Cannot convert first argument to object","moveTo",".5)","msaaSamples","substring","\u521B\u5EFA\u5F55\u5236\u5668\u5931\u8D25","access","repeatEdgePixels","addIndex","setBeautify","disposeRunner","addOuterLandmarks",`#version 100
|
||
|
|
#define SHADER_NAME Tiling-Sprite-100
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 uTransform;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
||
|
|
}
|
||
|
|
`,"trimmedCulledByFrustrum","NT 6.3","black","Ticker","adaptive","_origWidth","EffectList","_onFocus","URL","HALF_FLOAT","a_texCoord","loadFilter","faceDetectHeight","\u6B63\u7247\u53E0\u5E95","testScissor","clampMargin","globalUniforms","_finish","Generator is already executing.","lip_bottom_left_target","pivot","PERREVENT","_loader","closeStroke","assign","YES","intensity \u7684\u503C\u8D85\u51FA\u8303\u56F4(0-1)\uFF0C\u9ED8\u8BA4\u4E3A 1","no simd","core","applyInverse","removeFrom","checkSupport","Uint8Array","initEvent","attrs","ANGLE_instanced_arrays","getKeyPoints","_initWasmWrapper","fillUniforms","Label","webpackChunktencentcloud_webar","checkEnabled","enableDepth","Edge","reportPv is deprecated, please use reportEvent","checkCountMax","getSignature","shadowColor","reportTime: params error","create","_baseContainer","_currentSurfaceID","abort: ","TEXT","aTrans","readystatechange","_detectFace","_initLipMask","promise","batch_bilinear","_cacheMask","ensureNonAliasedItems","removeAll","int16View","_batchLocation","managedGeometries","uniformGroups","_maskRefCount","_bufferedTextures","checkCompatibility","isGeneratorFunction","getInstance","domInteractive","svg","https://cdn-go.cn/vasdev/web_webpersistance_v2/v1.8.2/flog.core.min.js","PIXEL_PACK_BUFFER","PREFER_ENV","prepareBackdrop","shadowOffsetX","ONE","getLipVertex"," is not a constructor or null","setToRotationTranslationScale","currentLocation","onupgradeneeded","utf-8","retCodeHandler","averageFramCost","back","fragTemplate","uint16View","formatter","isMask","intensity","drawElementsInstancedANGLE","Object.assign cannot be called with null or undefined","_elementTimer","queueResize","_glTextures","scaleAfterAffine","loadElement","getResult","windowsPhone","major","calculateUvs",`
|
||
|
|
precision mediump float;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
uniform sampler2D uSamplerMakeup;
|
||
|
|
uniform float intensity;
|
||
|
|
uniform float parentIntensity;
|
||
|
|
uniform int enable;
|
||
|
|
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
if (enable == 0) {
|
||
|
|
gl_FragColor = vec4(1.0,0.0,0.0,0.0);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec4 color = texture2D(uSamplerMakeup, vUvs);
|
||
|
|
color = vec4(color.rgb, color.a) * intensity * parentIntensity;
|
||
|
|
gl_FragColor = color;
|
||
|
|
}`,"readJSON","unmuteVideo","trim","nodeType","Spritesheet","cancelAnimationFrame","alphaMaskIndex","trimmed","lips-mask-wx3.png","lines","_mat4inv","gotoAndStop","collectCur","onProgress","RIGHT_IRIS","added","mozGetUserMedia","gl.uniform4iv(location, v)","\u8F93\u5165\u56FE\u7247\u4E0D\u5408\u6CD5","position3d","getLoader","makeup","drawHole","Mali-G","userAgent","getDpi","_aliasCount",`_matrix[3];
|
||
|
|
data[offset + 5] = `,"mirrorLocation","join","toGlobal","bindingDestinationFrame","_height","uniformBufferBindings","defaultQueryString","random must in [0, 1], default is 1.","frameStart","pool","defUniforms","repeat","%23","_currentLocalID","_renderDrawCallDirect",`float blendDarken(float base, float blend) {
|
||
|
|
return min(blend,base);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendDarken(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendDarken(base.r,blend.r),blendDarken(base.g,blend.g),blendDarken(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendDarken(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendDarken(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"INTERACTION","domLoading","addBeautyAsync","sendByAegis","__setArgumentsLength","disposeFramebuffer","initiatorType","_node","onmessage","eachSeries","AsyncIterator","hasMRT","POLY","bundleLoad","ZERO","application/pdf","0020",`
|
||
|
|
cv = ud["`,"_aIndex","addSystem","env","_batchEnabled","multisample","COMPLETE","setExtensionLoadType","stencilFunc","packBatches","appId","trigger","toLowerCase","setBeautifyById","application/json","batches","61,75,74,68,6f,72,69,7a,65","precheckFail","anonymous","cacheAsBitmapResolution","missing auth data","vertexAttribPointer","__esModule",'Invalid "input" value, Only the image type can be entered for remote links',"setSize","getEffectList","outputMemoryOffset","bounds","vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);","gotoAndPlay","start","256","_maskRenderTexure","nose_bridge1","postrender","videoTracks",`
|
||
|
|
|
||
|
|
`,"active","invalid UTF-8 data","createRenderbuffer","boolean","souyue","_dcIndex","null","_blendMode","filterClamp","detectReadyCallback","1.6.1","API_RESPONSE","uniform sampler2D uSamplerMakeup","STREAM_READ","count","drawArraysInstancedANGLE","net4g","bottom","revokeObjectURL","stencilOp","addedNodes",`
|
||
|
|
|
||
|
|
res retcode: `,"RGB_INTEGER","getWorker",`attribute vec2 aVertexPosition;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform vec4 inputSize;
|
||
|
|
uniform vec4 outputFrame;
|
||
|
|
|
||
|
|
vec4 filterVertexPosition( void )
|
||
|
|
{
|
||
|
|
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
|
||
|
|
|
||
|
|
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 filterTextureCoord( void )
|
||
|
|
{
|
||
|
|
return aVertexPosition * (outputFrame.zw * inputSize.zw);
|
||
|
|
}
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = filterVertexPosition();
|
||
|
|
vTextureCoord = filterTextureCoord();
|
||
|
|
}
|
||
|
|
`,"initFrameBufferPipeline","Failed to stop the recorder","UNSIGNED_SHORT_4_4_4_4","webar-object-store","BEFORE_PROJ","ext1","hasIntegerTextures","setViewport","requestCallback","stepStart","reportEvent params error","seed","isPow2","getAttribute","onfile","Resource can be set only once","pixels","querySelector","responseEnd","OUTER_REFERENCE","ENGINE","reportBridgeSpeed","cors","DYNAMIC_DRAW","previous",`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,"RCA",`
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
|
||
|
|
}`,"touched","cancelResize","setParent: Argument must be a Container","finally","matrix","_loadingMap",";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=","\u6267\u884Cdisable","_onFocusOut","setConfig","0028","_enable","progressChunk","useMaxPadding",`ms
|
||
|
|
|
||
|
|
req method: `,"_enabledFilters","quaternion","vertexAttribDivisor","TEXTURE_CUBE_MAP","stream","copyFrom","getRenderContext","#f00","_crossorigin"," @ (","_level",`;
|
||
|
|
|
||
|
|
data[offset] = v.x;
|
||
|
|
data[offset+1] = v.y;
|
||
|
|
data[offset+2] = v.width;
|
||
|
|
data[offset+3] = v.height;
|
||
|
|
`,"zy sdk no camera","application/ogg","maskResult","applyTo","_getExtension","rootsDomNum","TEXTURE_MAG_FILTER"," load fail: ","PROMISE_ERROR: ",`
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vec2 p = vTextureCoord;
|
||
|
|
p.y = 1.0 - p.y;
|
||
|
|
vec4 color = texture2D(uSampler, p);
|
||
|
|
gl_FragColor = color;
|
||
|
|
}
|
||
|
|
`,"getUA","sticker3d","h5Bridge","bytes=","__await","' size cannot be determined (likely the bound shader does not have the attribute)","xhr","play video error","debugDraw","splice","Back","WARN","FETCH_ERROR: ","ADD","MEDIUM","Provided WebGL context does not have a stencil buffer, masks may not render correctly","_newlines","debounceTimer","isMobileAccessibility","SOFT_LIGHT","duration","filterTarget","y2=","prepare","object","statePool","cacheInverse","_determineLoadType","sdk disabled, Please enable sdk first\uFF01","gl.uniform1uiv(location, v)","drawBatches","Chromium OS","aegisXhrReqHeader","usermedia can play","enumerable","EMPTY","fenceSync","settings","_onPlayStart","This browser offers limited support for the SDK, and stutter may occur. Please use the latest version of Chrome, Safari, or WeChat","Zepto","bufferSubData","volume","locations_0","gl.uniformMatrix3fv(location, false, v)","_localBounds","Float32Array","_initLoader","1001","_alpha","render","backgroundAlpha","degreeStart","_blendEq","begin","faceMeshDetectWidth","_iIndex","file://","createGLBuffer","ext3","WHITE","_dirtyId","tryEntries","PREMULTIPLY_ALPHA","intensityTeeth","enableVertexAttribArray","displayObject","sendBeacon","resolve","castToBaseTexture","[@pixi/math:Transform ","getCommonFilter","_find","vec3","getOptimalTexture","identity","crossorigin","getMinutes","bool","pointerdown","depthTest","DRAW_FRAMEBUFFER",', text: "',"flush","LINE_LOOP","isActive","common_cache_domain","getGroupFromCache","VERTEX_SHADER","getAngles","textureCount","UNIFORM_BUFFER","_getLoader","eyeBrightness","enableFullScreen","\u65E0\u6743\u8BBF\u95EE\u6B64\u63A5\u53E3\uFF0C\u8BF7\u786E\u8BA4License\u7248\u672C\u4FE1\u606F","_requestIfNeeded","fxosPhone","accessibleChildren","The rendering took too long. Try reducing the resolution or refreshing the page","_handled","android","segmentationDetected","initFromOptions","phone",`precision mediump float;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
uniform sampler2D falingwen;
|
||
|
|
uniform sampler2D heiyanquan;
|
||
|
|
uniform float intensityNasolabialFolds;
|
||
|
|
uniform float intensityDarkCircle;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vec4 color = texture2D(falingwen, vUvs) * intensityNasolabialFolds + texture2D(heiyanquan, vUvs) * intensityDarkCircle;
|
||
|
|
|
||
|
|
gl_FragColor = vec4(color.a, 0.,0.,1.);
|
||
|
|
}`,"label","avatar","showLoading","onInited","calculateTints","_loadSourceElement","Index ","_next","getBufferType","CancelAnimationFrame","framebuffer","postMessage","faceDetectWidth","TRIANGLE_STRIP","has","check","sourceFrame","getExtension","__pin","\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6444\u50CF\u5934\u6743\u9650\uFF0C\u8BF7\u5230\u8BBE\u7F6E-\u9690\u79C1-\u76F8\u673A\u5F00\u542F","_lineJoin","_invoke","HEIGHT_MULTIPLIER","init wasm error","61,76,61,74,61,72,5f,61,72","WEBKIT_OES_vertex_array_object","getNetworkStatus","normalLogPipeline","_intensityNasolabialFolds","UNSIGNED_INT_10F_11F_11F_REV","movementY","RECT","_cy","_isSourcePlaying","\u65E0\u6CD5\u89E3\u6790\u7684\u6570\u636E","_projID","ext2",`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v[0] || cv[1] !== v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
gl.uniform2f(ud["`,"parseHost","uint","SCREEN_KEY","_rotation","getCanvas","shared","nose_bridge4",'You need to override "request" method',"R8I","cacheDirty","initCallback","UNMASKED_RENDERER_WEBGL","publishMany","_intensity","OPPO","_quality","destroyTouchHook","weibo","_filtersActived",`
|
||
|
|
if(uv["`,"multiplyUvs","jsonIntensity","removeListener","%value%","angles","domId","right_eye_bottom","instanceCount","mute not detecting","_effects","pixiid","RG8_SNORM","accessibleTitle","_generateFillStyle","video not playing",`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
|
||
|
|
gl.uniform1i(location, v);
|
||
|
|
}`,"glPrograms","_segmentationInWorker","TEXTURE_CUBE_MAP_POSITIVE_Y","ogg","construct","__initStatic","sort","forEach","image bit map load error","pixiIdPrefix","ivec2","reportRequestQueue","%index%","shadowBlur","batchUvs","uboFrom","coreEnable","onBaseTextureUpdated","closePath",`
|
||
|
|
`,"objectStoreName","_flipY","createFramebuffer","TextureCache","program_base",`
|
||
|
|
v = uv.`,"bean","pathname","_onLoad","Resolution changes cause effects to be lost, Please reset","PRECISION_VERTEX","nodeName","\u5F55\u5236\u542F\u52A8\u5931\u8D25","updateInputStream: newVideoTrack is null","System class is deprecated, implemement ISystem interface instead.","timestamp","enableScissor","serif","KEEP","_processAnimations","[@#$] constr detector","SCISSOR","_setEffect","proxyServer","tencentcloud-webar:h5:detector:custom:WebGL2Pipeline","setup","projectionMatrix","currentTime","_resourcesParsing","lift","_lineStyle","_dir","uid","_prepareUrl","%blur%","cacheBackgroundType","ondata","opera","triggerResult","pagePerformance","zy sdk outputTrack settings","_drawCallPool"," not exists","$e$","attributeData",'The authentication parameter "appId" is missing',"gl.uniformMatrix2fv(location, false, v)","indicesUint16","RENDER_OPTIONS","OtherEffectList","Yandex","maxItemsPerFrame","PixiJS Warning: gl.getProgramInfoLog()","antialias","program_1","textureGC","abs","px;height: ","handlers","_roundPixels","_fontVariant","containsPoint","TEXTURE_2D","512","WEBKIT_WEBGL_compressed_texture_pvrtc","activeState","reportProxy","intensityNasolabialFolds","report",`varying vec2 vTextureCoord;
|
||
|
|
uniform vec4 uColor;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
|
||
|
|
}
|
||
|
|
`," d=","UNSIGNED_BYTE","cacheId","destroyTexture","net3g","Only one base texture per TextureArray is allowed","_base64ToArrayBuffer","WORKER","vertex"," is out of bounds","controls","urls","audioTrack","state","Cannot add resources while the loader is running.","lutSkin","SCREEN","uAlpha","originalGetLocalBounds","renderBase","getUniformLocation","failRequestCount","versions","stringify","https://webar-static.tencent-cloud.com/ar-sdk/resources/1.0.13/","ipod","getBufferSubData","funcName","LUMINOSITY","initInputTexture","logs","WEBGL_LEGACY","left","clearCacheTmp","effect_sticker_3d","TEXTURE_CUBE_MAP_NEGATIVE_X","Mac","AGFzbQEAAAABmQEWYAJ/fwF/YAJ/fwBgA39/fwF/YAN/f38AYAF/AX9gAX8AYAV/f39/fwBgAABgBH9/f38AYAF/AX5gBH9/f38Bf2AFf39/f38Bf2AAAX9gBn9/f39/fwBgB39/f39/f38AYAh/f39/f39/fwBgBH9/fn8AYAR/fn9/AGAHf39/f39/fwF/YAJ+fwF/YAN/f38BfmADfn5/AX4DlAKSAgMDAQMBBAIBBgYGBgYGCAgDAQ4IBgYBBgYABQMBAgsDCgEDAgMDAwEBAwMEBQMDAgUFBQcABQUFAQUFAQEBFQARABAIAQENEgsBBAEBAhMAAAMBAQUFAAwFAAMLAQAABAAGBgEAAwMBAgUABAEDAwAAAAAABQUEAwYGBgYGBgEDAQMEBgQPAQAAAwMDAwABAQMAAQAAAAADAwMDAwQFAQEDAgcCCgcDAQgBAQEBBQcBBAEEAAABBAgABQADAwEBAQcHBAUFAwQCDAMUCQEBBQEBAQEEBAEAAgADBAQACgEBBAAAAAEBAQAEBAQEBAQEBAQEAQQAAAADAgADAAAEBAQEAQAAAAICAgQAAAQECQkJBQEEBQFwAVRUBQMBABEGCQF/AUGAgMAACwd4CgZtZW1vcnkCAAdkZWNyeXB0ABUGZmluaXNoAD0EcmVzMQCXAQRhdXRoABIEYV9lbgAlBGFfZGUAIhFfX3diaW5kZ2VuX21hbGxvYwCyARJfX3diaW5kZ2VuX3JlYWxsb2MAxwEPX193YmluZGdlbl9mcmVlAN8BCZkBAQBBAQtT4gGQAkVFngHPAc4BlgGQAvkBjQJpCw0MCAoJVrkBuAGQAnH8AWqQArMBtAHiAZACnwHQAZACjQKQAvsBswGQArMBkQKQAvkBswHDAY4CjQLEAVxsqQHmAdYBuQG6AaEB5wGRAZACiAGCAtgBtAGhAfQBkwH2AfUB4gHhAY0BhwE/kAKPAoMCI2CVAYQC+AFelAFdCsmYB5ICzj8BIn8gACgCHCEiIAAoAhghICAAKAIUIR4gACgCECEdIAAoAgwhIyAAKAIIISEgACgCBCEfIAAoAgAhBSACBEAgASACQQZ0aiEkA0AgBSABKAAAIgJBGHQgAkEIdEGAgPwHcXIgAkEIdkGA/gNxIAJBGHZyciIUICIgHUEadyAdQRV3cyAdQQd3c2ogHiAgcyAdcSAgc2pqQZjfqJQEaiIQIAUgIXEgBSAfcSICIB8gIXFzcyAFQR53IAVBE3dzIAVBCndzamoiDUEedyANQRN3cyANQQp3cyANIAUgH3NxIAJzaiAgIAFBBGooAAAiAkEYdCACQQh0QYCA/AdxciACQQh2QYD+A3EgAkEYdnJyIhhqIBAgI2oiAyAdIB5zcSAec2ogA0EadyADQRV3cyADQQd3c2pBkYndiQdqIg9qIgIgDXEiByAFIA1xcyACIAVxcyACQR53IAJBE3dzIAJBCndzaiAeIAFBCGooAAAiEEEYdCAQQQh0QYCA/AdxciAQQQh2QYD+A3EgEEEYdnJyIgRqIA8gIWoiDyADIB1zcSAdc2ogD0EadyAPQRV3cyAPQQd3c2pBz/eDrntqIglqIghBHncgCEETd3MgCEEKd3MgCCACIA1zcSAHc2ogHSABQQxqKAAAIhBBGHQgEEEIdEGAgPwHcXIgEEEIdkGA/gNxIBBBGHZyciIXaiAJIB9qIgcgAyAPc3EgA3NqIAdBGncgB0EVd3MgB0EHd3NqQaW3181+aiIMaiIQIAhxIhMgAiAIcXMgAiAQcXMgEEEedyAQQRN3cyAQQQp3c2ogAyABQRBqKAAAIglBGHQgCUEIdEGAgPwHcXIgCUEIdkGA/gNxIAlBGHZyciIKaiAFIAxqIgMgByAPc3EgD3NqIANBGncgA0EVd3MgA0EHd3NqQduE28oDaiIMaiIJQR53IAlBE3dzIAlBCndzIAkgCCAQc3EgE3NqIAFBFGooAAAiBUEYdCAFQQh0QYCA/AdxciAFQQh2QYD+A3EgBUEYdnJyIhogD2ogDCANaiINIAMgB3NxIAdzaiANQRp3IA1BFXdzIA1BB3dzakHxo8TPBWoiDGoiBSAJcSITIAkgEHFzIAUgEHFzIAVBHncgBUETd3MgBUEKd3NqIAFBGGooAAAiD0EYdCAPQQh0QYCA/AdxciAPQQh2QYD+A3EgD0EYdnJyIg4gB2ogAiAMaiIPIAMgDXNxIANzaiAPQRp3IA9BFXdzIA9BB3dzakGkhf6ReWoiDGoiB0EedyAHQRN3cyAHQQp3cyAHIAUgCXNxIBNzaiABQRxqKAAAIgJBGHQgAkEIdEGAgPwHcXIgAkEIdkGA/gNxIAJBGHZyciIGIANqIAggDGoiAyANIA9zcSANc2ogA0EadyADQRV3cyADQQd3c2pB1b3x2HpqIghqIgIgB3EiDCAFIAdxcyACIAVxcyACQR53IAJBE3dzIAJBCndzaiANIAFBIGooAAAiDUEYdCANQQh0QYCA/AdxciANQQh2QYD+A3EgDUEYdnJyIgtqIAggEGoiDSADIA9zcSAPc2ogDUEadyANQRV3cyANQQd3c2pBmNWewH1qIhNqIghBHncgCEETd3MgCEEKd3MgCCACIAdzcSAMc2ogAUEkaigAACIQQRh0IBBBCHRBgID8B3FyIBBBCHZBgP4DcSAQQRh2cnIiEiAPaiAJIBNqIg8gAyANc3EgA3NqIA9BGncgD0EVd3MgD0EHd3NqQYG2jZQBaiIJaiIQIAhxIgwgAiAIcXMgAiAQcXMgEEEedyAQQRN3cyAQQQp3c2ogAyABQShqKAAAIgNBGHQgA0EIdEGAgPwHcXIgA0EIdkGA/gNxIANBGHZyciIRaiAFIAlqIgMgDSAPc3EgDXNqIANBGncgA0EVd3MgA0EHd3NqQb6LxqECaiITaiIJQR53IAlBE3dzIAlBCndzIAkgCCAQc3EgDHNqIAFBLGooAAAiBUEYdCAFQQh0QYCA/AdxciAFQQh2QYD+A3EgBUEYdnJyIhUgDWogByATaiINIAMgD3NxIA9zaiANQRp3IA1BFXdzIA1BB3dzakHD+7GoBWoiB2oiBSAJcSIMIAkgEHFzIAUgEHFzIAVBHncgBUETd3MgBUEKd3NqIA8gAUEwaigAACIPQRh0IA9BCHRBgID8B3FyIA9BCHZBgP4DcSAPQRh2cnIiFmogAiAHaiIPIAMgDXNxIANzaiAPQRp3IA9BFXdzIA9BB3dzakH0uvmVB2oiE2oiB0EedyAHQRN3cyAHQQp3cyAHIAUgCXNxIAxzaiABQTRqKAAAIgJBGHQgAkEIdEGAgPwHcXIgAkEIdkGA/gNxIAJBGHZyciIbIANqIAggE2oiCCANIA9zcSANc2ogCEEadyAIQRV3cyAIQQd3c2pB/uP6hnhqIgNqIgIgB3EiGSAFIAdxcyACIAVxcyACQR53IAJBE3
|
||
|
|
data[offset] = v;
|
||
|
|
`,"mirror_style","setBackground","uSampler","merge","Illegal input >= 0x80 (not a basic code point)","blendMode_1","avatar_ar","mov",`WEBSOCKET_ERROR:
|
||
|
|
connect: `,"preload0","application/vnd.mspowerpoint","fillRect","autoLoad","_init","_renderCached","common-v2","_activeProjection","_getConfig","trace","_maxElapsedMS","enableFaceDetection","multiFaceLandmarks","connect","hash","addBounds","WEBGL_compressed_texture_s3tc_srgb","_intensityEye","drawMeshBatch","/417","currentTarget","getOS","_frames","flag_2","faceDetectId","not-basic","blit","_debug","triangulation",`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 uTransform;
|
||
|
|
|
||
|
|
varying vec3 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = uTransform * vec3(aTextureCoord, 1.0);
|
||
|
|
}
|
||
|
|
`,"_owner","trys","continue",`
|
||
|
|
if (cv[0] != v[0] || cv[1] != v[1])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
|
||
|
|
gl.uniform2i(location, v[0], v[1]);
|
||
|
|
}`,"setAvatar wrong params, no effect id or model url","getPorjectionOnPlane","NT 6.2","updateID","filterFrame","KEY_POINTS","addColors","filterActivedEffect","EQUAL","internal","%FUNC_CODE%","AT&T","_system","request1","reset","reused effects","checkCount","mqqbrowser","on WeixinJSBridgeReady","from","anchorArea","current browser","eye","some","UNSIGNED_SHORT","wifi","_run","alphabetic","flag_3","all","CLAMP","drawCircle","premultiplyTintToRgba","background image load error","disconnect","setObjectRenderer","updateCheck",`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
gl.uniform1f(location, v);
|
||
|
|
}`,"apple","_onKeyDown","onUpdate","UNSIGNED_INT_5_9_9_9_REV","enableIrisDetection","onWhitelist","NORMAL","performance","uClampOffset","webkit","_dataMap","mouseover","uniform1f","background remove","MIME_TYPES","HardLight","Failed to read WX file cache data","onConfigChange","$getConfig","max","getFileFromCache","_currAudioDeviceId","sTmZGXJfn6T3bR5XNj3AKkTZa","getAudioTracks","initialize","PROMISE_ERROR","unknown cpr type ","path","[AEGIS-FIRST-SCREEN-TIMING]","_flags","' is already in hackFetch option list","deleteShader",`
|
||
|
|
readyState: `,"lang","const int mSize = ","set","unmute","\u7F3A\u5C11\u8F93\u5165, \u8BF7\u8BBE\u7F6Einput\u6216camera\u53C2\u6570","HARD_LIGHT","setAvatar","createShader","program_0","common_cache","srcObject","culling=","reqHeaders","concurrency",`#version 300 es
|
||
|
|
|
||
|
|
in vec2 a_position;
|
||
|
|
in vec2 a_texCoord;
|
||
|
|
|
||
|
|
out vec2 v_texCoord;
|
||
|
|
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
gl_Position = vec4(a_position, 0.0, 1.0);
|
||
|
|
v_texCoord = a_texCoord;
|
||
|
|
}
|
||
|
|
`,`_matrix[2];
|
||
|
|
|
||
|
|
data[offset + 4] = `,"flipY","OES_texture_half_float","type: ","sendNow","_surface","_boundsRect","_drawMaskGraphics"," = color","Fire Phone $1","onChildrenChange",`error happen when aegis stringify:
|
||
|
|
`,"_breakWords","4.90","_cacheAsBitmapResolution","finallyLoc","licenseKey","new core init finish","objectStore","loader","128","hadRecentInput","clear","PERFORMANCE",`varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_FragColor = texture2D(uSampler, vTextureCoord);
|
||
|
|
}
|
||
|
|
`,"_compareStyles","_aBuffers","Firefox OS","crossOrigin","defaultVertexShader","_currAudioTrack","Mac OS","npmAlpha","renderForLandmarkSync","NONE","filterCallback","playerView","angle","targetTexture","androidTablet","__getArray","%20","pause","activate","finishPoly","u_scale","_makeup","ProgramCache","\u4E0A\u4E0B\u6587\u4E22\u5931\uFF0C\u8BF7\u91CD\u65B0\u521D\u59CB\u5316","usm","_worldID","COLOR_DODGE","_key","wordWrapWidth","_localBoundsRect","kill"," Request failed. Status: ","ctx","view","RIGHT_FACE_OVAL2",`
|
||
|
|
precision mediump float;
|
||
|
|
|
||
|
|
uniform sampler2D u_inputFrame;
|
||
|
|
uniform vec2 u_scale;
|
||
|
|
uniform vec2 u_translate;
|
||
|
|
uniform vec2 u_pivot;
|
||
|
|
uniform vec2 u_size;
|
||
|
|
uniform float u_rotation;
|
||
|
|
varying vec2 v_texCoord;
|
||
|
|
uniform int u_mirror;
|
||
|
|
|
||
|
|
vec2 aspectedCoord(vec2 coord) {
|
||
|
|
float aspect = u_size.x / u_size.y;
|
||
|
|
if (aspect < 1.) {
|
||
|
|
return vec2(coord.x / aspect, coord.y);
|
||
|
|
} else {
|
||
|
|
return vec2(coord.x, coord.y * aspect);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
void main() {
|
||
|
|
|
||
|
|
vec2 transformCoord = v_texCoord;
|
||
|
|
if (u_mirror == 1) {
|
||
|
|
transformCoord.x = 1.-transformCoord.x;
|
||
|
|
}
|
||
|
|
transformCoord = aspectedCoord(transformCoord);
|
||
|
|
gl_FragColor = texture2D(u_inputFrame, transformCoord);
|
||
|
|
}
|
||
|
|
`,"device not change, return","AJAX_ERROR: request ","measureText","height","hexToUtf8","invalid gzip data","framebufferTexture2D","UNSIGNED_INT","OES_texture_float","_renderBatched","setEffectJSON","popSpriteMask",` * parentIntensity;
|
||
|
|
result = result * (1.0 - a`,"convertTo2s","green","_getCachedLocalBounds","_scissorCounter","isNull","detectId","transformPoints","premultiply","destroyDepthTexture","_detected","uTextureMatrix",`;
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"aTextureCoord","updateText","linkProgram","__version__","_cancelIfNeeded","darkCircle","polygonOffset","_ready","mapCoord","renderbufferStorage","addHooks","_fontStyle","DST_OUT","SIDES","lastestEffectData","BYTES_PER_ELEMENT","top","objectSrc","batchDirty","addFrame","customTimePipeline","&count=1&version=","tflite-simd.js","loaded","_segmentsCount","_beautifyOpt","getAutoSize cost","asyncPlugin","stage",`;
|
||
|
|
|
||
|
|
data[offset] = v.x;
|
||
|
|
data[offset+1] = v.y;
|
||
|
|
`,"currentBackgroundType","fillGradientType","readwrite","getCamera","outputFrame","preload","minFPS","vec2","_pixiId",`ms
|
||
|
|
|
||
|
|
res status: `,"setDerivateCutoff","Filter","filename","parentIntensity","subarray","afterRequest","local player error: playerView is ","Preprocess","useProgram","sortableChildren","_beforeMiddleware","_polygonOffset","eventsList","nose_bottom",`precision mediump float;
|
||
|
|
varying highp vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler; // \u56FE\u50CFtexture
|
||
|
|
uniform sampler2D grayTexture; // \u7070\u5EA6\u67E5\u627E\u8868
|
||
|
|
uniform sampler2D lookupTexture; // LUT
|
||
|
|
|
||
|
|
uniform highp float levelRangeInv; // \u8303\u56F4
|
||
|
|
uniform lowp float levelBlack; // \u7070\u5EA6level
|
||
|
|
// uniform lowp float intensity; // \u80A4\u8272\u7A0B\u5EA6
|
||
|
|
uniform sampler2D faceMask;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
float mask = texture2D(faceMask, vTextureCoord).a;
|
||
|
|
lowp vec3 textureColor = texture2D(uSampler, vTextureCoord).rgb;
|
||
|
|
|
||
|
|
|
||
|
|
// if (mask == 0.) {
|
||
|
|
// gl_FragColor = vec4(textureColor, 1.0);
|
||
|
|
// return;
|
||
|
|
// };
|
||
|
|
|
||
|
|
|
||
|
|
textureColor = clamp((textureColor - vec3(levelBlack, levelBlack, levelBlack)) * levelRangeInv, 0.0, 1.0);
|
||
|
|
textureColor.r = texture2D(grayTexture, vec2(textureColor.r, 0.5)).r;
|
||
|
|
textureColor.g = texture2D(grayTexture, vec2(textureColor.g, 0.5)).g;
|
||
|
|
textureColor.b = texture2D(grayTexture, vec2(textureColor.b, 0.5)).b;
|
||
|
|
|
||
|
|
mediump float blueColor = textureColor.b * 15.0;
|
||
|
|
|
||
|
|
mediump vec2 quad1;
|
||
|
|
quad1.y = floor(blueColor / 4.0);
|
||
|
|
quad1.x = floor(blueColor) - (quad1.y * 4.0);
|
||
|
|
|
||
|
|
mediump vec2 quad2;
|
||
|
|
quad2.y = floor(ceil(blueColor) / 4.0);
|
||
|
|
quad2.x = ceil(blueColor) - (quad2.y * 4.0);
|
||
|
|
|
||
|
|
highp vec2 texPos1;
|
||
|
|
texPos1.x = (quad1.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);
|
||
|
|
texPos1.y = (quad1.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);
|
||
|
|
|
||
|
|
highp vec2 texPos2;
|
||
|
|
texPos2.x = (quad2.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);
|
||
|
|
texPos2.y = (quad2.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);
|
||
|
|
|
||
|
|
lowp vec4 newColor1 = texture2D(lookupTexture, texPos1);
|
||
|
|
lowp vec4 newColor2 = texture2D(lookupTexture, texPos2);
|
||
|
|
|
||
|
|
lowp vec3 newColor = mix(newColor1.rgb, newColor2.rgb, fract(blueColor));
|
||
|
|
|
||
|
|
// textureColor = mix(textureColor, newColor, 1.0);
|
||
|
|
textureColor = mix(textureColor, newColor, mask);
|
||
|
|
|
||
|
|
gl_FragColor = vec4(textureColor, 1.0);
|
||
|
|
}
|
||
|
|
`,"drawElementsInstanced","horizontal","_afterMiddleware","getPreMiddleware","SUBTRACT","overrideFetch","_segmentation_enabled","blitFramebuffer","contextlost","1002","interactive","scaleAndTranslate","[@pixi/core:State ","deactivate",`
|
||
|
|
|
||
|
|
req method: `,"POINTS_MAP","COMPILE_STATUS","Konqueror","geometry","setReshapeMarks"," > ","managedBuffers","packAttributes","tag","generateSampleSrc","MacIntel","gpu_detector","_maskRenderTexture","_recursivePostUpdateTransform","Error.message: ","restoreContext","NotAllowedError","setFrontFace","Effect","_flushId","done","catch","limiter","updateNode","inited","_initCurve","(mobile","Lenovo","vertexSrc",`
|
||
|
|
msg: `,"VIDEO","compileShader","\u8BF7\u5148\u5F00\u542F\u6444\u50CF\u5934\u53CA\u9EA6\u514B\u98CE\u6743\u9650","data:image/svg+xml;base64,","consume","_determineCrossOrigin","onAegisInit","getEntriesByName","Url","model","DECR","hidden","window"," = texture2D(uSamplerMakeup","defaultVertexSrc","hackWebsocketConfig",`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
|
||
|
|
gl.uniform3i(location, v[0], v[1], v[2]);
|
||
|
|
}`,"ReuseableLipMask","h264","boundsQuad","enableSegmentationDetection","eventPipeline","deleteVertexArrayOES","updateBeauty","transparentGenerator","ia32","METRICS_STRING","getShaderParameter","TFLITERunner encloader init fail","updateInputStream","registerPlugin","strokeColor","and",`
|
||
|
|
|
||
|
|
req param: `,"float","set background","webar-db","SET_DATA","originalContainsPoint","LINEAR_BURN","textureUpdated","_fonts","_beautifies","_getInputWidth","ARRAY_BUFFER","_bgSprite","user","initFlushBuffers","isPlaying","renderAdvanced","writeDepthTexture","gl.uniform1i(location, v)","FRAMEBUFFER","_beautify",'You need to override "ready" method',"Coc Coc","missing","fit","_landmarks","<yet unknown>","pixelStorei","port","simpleShader","CLS","lip_top_center","uniformBindCount","RGBA16UI","tokenize","wordWrapSplit","shutdown","getConfig","_initMainLoop","removeBackground",'"this" is null or not defined',"landmarks","createBuffer","getElementById","old effects","vertexDirty","_options","loadSticker3d","Opera Coast","/collect/pv","exec","loadingIconOptions","speed",`_matrix[8];
|
||
|
|
`,"text/plain","propertyIsEnumerable","stride","1024","_inputNode","video/quicktime","TmZGXJfn6T3bR5XNj3AKkTZa","mask","getAttribLocation","defer","body","calculateSpriteMatrix","destinationFrame","?from=","extension","frameRate","front","filterActived","detectMobile","SRC_ALPHA","WEBSOCKET_ERROR","65536","module","sans-serif","accessibleType","mask_old_2","_autoUpdate",`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
|
||
|
|
data[offset+4] = v[2];
|
||
|
|
data[offset+5] = v[3];
|
||
|
|
`,"blurX","_whiten","iterator result is not an object","videoWidth","HardMix","FILTER_RESOLUTION","avatar_vr","funcCode","_target","_dropShadow","valid","__init","LINE_STRIP","mapQuad","contextChange","customPV","itemsLeft","takeRecords","innerHTML","_dermabrasion","depthMask",`
|
||
|
|
var v = null;
|
||
|
|
var v2 = null;
|
||
|
|
var cv = null;
|
||
|
|
var t = 0;
|
||
|
|
var gl = renderer.gl
|
||
|
|
var index = 0;
|
||
|
|
var data = buffer.data;
|
||
|
|
`,"addVertices","experimental-webgl","NEAREST_MIPMAP_NEAREST","awrap","onload","charAt","lastFrameTime","localSpriteSheets",`
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D uBackdrop;
|
||
|
|
uniform vec2 uBackdrop_flipY;
|
||
|
|
uniform float intensity;
|
||
|
|
|
||
|
|
%UNIFORM_CODE%
|
||
|
|
%FUNC_CODE%
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
vec2 backdropCoord = vec2(vTextureCoord.x, uBackdrop_flipY.x + uBackdrop_flipY.y * vTextureCoord.y);
|
||
|
|
vec4 b_src = texture2D(uSampler, vTextureCoord); // \u7CBE\u7075
|
||
|
|
vec4 b_dest = texture2D(uBackdrop, backdropCoord); // \u5E95\u56FE
|
||
|
|
vec4 b_res = b_src;
|
||
|
|
|
||
|
|
if (b_src.a == 0.0) {
|
||
|
|
gl_FragColor = vec4(0.0);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (b_dest.a == 0.0) {
|
||
|
|
gl_FragColor = vec4(0.0);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
b_res.rgb = blend%FUNC_NAME%(b_dest.rgb / b_dest.a, b_src.rgb / b_src.a, intensity);
|
||
|
|
gl_FragColor = vec4(b_res.rgb * b_src.a,b_src.a);
|
||
|
|
|
||
|
|
}`,"16384"," header ","getMeshVertex","blackberryPhone","getIndex","_checkOrientationComp","pointerEvents","checkUniformExists","4b,65,79,4c,69,73,74","stream oninactive","[@pixi/math:Polygon","movementX","bindBufferRange","ALPHA","pending","checkAnimated","superapp","__init6","IDENTITY","aTrans1","cameraVideoStopped","outputRenderer","_scissorRect","invertCopyTo","lib-3d","boundBufferBases","fetchFromFileCache","any","getIndexBuffer","processHoles","bindVertexArray","time: first param must be a string","listenerCount","sayHello","CanvasRenderTarget","_lang","maxY","boundTextures","autoUpdate","webglcontextrestored",`varying vec2 vTextureCoord;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
uniform sampler2D uSamplers[%count%];
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
vec4 color;
|
||
|
|
%forloop%
|
||
|
|
gl_FragColor = color * vColor;
|
||
|
|
}
|
||
|
|
`,"getOwnPropertyDescriptor","root","backdropUniformName","name","mesh",`
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 otherMatrix;
|
||
|
|
|
||
|
|
varying vec3 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
vMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);
|
||
|
|
}
|
||
|
|
`,"faceLandmarks","RGBA32I","MOUTH_UPPER","addVertexData","info","miniProgram","isReportReady","bottomHeight","DEBUG","sessionID","index.js","touch","Chromecast","response",`, vUvs);
|
||
|
|
float a`,"url","xxxxxxxxxxxx","_json","points","gl_","captureStream","DetectResultData","SORTABLE_CHILDREN","getLocalBounds","addColorStop","texSubImage2D","effect_sticker_2d","reportImmediately","map","uMapCoord","stream finishing","setCullFace","initDataMap","license","sparc","_checkVoid","substr","lib","chooseDevice","_cacheAsBitmapDestroy","DRAW_FRAMEBUFFER_BINDING","Blob","download","aFrame","bindBufferBase","lastVideoWidth","gl.uniformMatrix4fv(location, false, v)","_focus","_callback","first-input","once","segmentation","aegisXhrStartTime","_worker","getProgram","\u8F93\u5165\u4E0D\u5408\u6CD5, \u8FDC\u7A0B\u94FE\u63A5\u53EA\u652F\u6301\u8F93\u5165\u56FE\u7247\u7C7B\u578B","Error trying to parse loaded xml: ","effect_makeup","uboElements","bindForceLocation"," Request timed out.","input init error","code","texturePool","callback","Graphics","referrer","_scissorRectLocal","maskMatrix","OnePlus","_process",`float blendColorDodge(float base, float blend) {
|
||
|
|
return (blend==1.0)?blend:min(base/(1.0-blend),1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendColorDodge(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendColorDodge(base.r,blend.r),blendColorDodge(base.g,blend.g),blendColorDodge(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendColorDodge(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendColorDodge(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"rect","correctBlendMode","WHITE_LIST","drain","arrayBuffer","proxyCanvas","encode","encloader","mincutoff should be >0","getTracks","powerVRGPU","updateAnchor","canMultisampleFramebuffer","lip_inner_top","WEBGL_depth_texture","video/ogg","imageMetadata","_accessibleDiv","View","Huawei","offset","intensityDarkCircle","loop","getShaderSource","sdk version","syncUniformBufferGroup","eventUrl","lineStyle","setStyle","isEleInArray","_getMeshLayerByBlendMode","LIPS","_renderCachedCanvas","bridge","pageUrl","convertTo2d","getUniformBlockIndex","MIRRORED_REPEAT","object ","setMinCutoff","_xhrOnTimeout","uint16","createVertexArrayOES","high"," = "," has moved to PIXI.","msaaBuffer","fail","SRC_IN","sourceSize","amdO","MicroMessenger","SPRITE","Substract","Failed to start the camera","toggleOccluder","_module","PixiJS Deprecation Warning: ","zy sdk proxy ctx",`
|
||
|
|
|
||
|
|
req param: `,"_loadElement","groupEnd","_setFilter","firstScreenInfo","eventData","_loadSvg","degreeEnd","cameraVideoStart","_loadLipImage",`precision highp float;
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec3 aTrans1;
|
||
|
|
attribute vec3 aTrans2;
|
||
|
|
attribute vec2 aSamplerSize;
|
||
|
|
attribute vec4 aFrame;
|
||
|
|
attribute vec4 aColor;
|
||
|
|
attribute float aTextureId;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
|
||
|
|
varying vec2 vertexPosition;
|
||
|
|
varying vec3 vTrans1;
|
||
|
|
varying vec3 vTrans2;
|
||
|
|
varying vec2 vSamplerSize;
|
||
|
|
varying vec4 vFrame;
|
||
|
|
varying vec4 vColor;
|
||
|
|
varying float vTextureId;
|
||
|
|
|
||
|
|
void main(void){
|
||
|
|
gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);
|
||
|
|
gl_Position.z = 0.0;
|
||
|
|
|
||
|
|
vertexPosition = aVertexPosition;
|
||
|
|
vTrans1 = aTrans1;
|
||
|
|
vTrans2 = aTrans2;
|
||
|
|
vTextureId = aTextureId;
|
||
|
|
vColor = aColor;
|
||
|
|
vSamplerSize = aSamplerSize;
|
||
|
|
vFrame = aFrame;
|
||
|
|
}
|
||
|
|
`,"pluginAvatar","disableEffects","layout-shift","batchTint","_tempDisplayObjectParent","BROWSER","partialDermabrasion","convertSubtreeTo2s","ticker","uniform float intensity","isSprite","updateInputNode","polite","_whiteSpace","_bufferSize","initPlugins","task callback must be a function","background","Netscape",`float blendLinearBurn(float base, float blend) {
|
||
|
|
// Note : Same implementation as BlendSubtractf
|
||
|
|
return max(base+blend-1.0,0.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
vec3 blendLinearBurn(vec3 base, vec3 blend) {
|
||
|
|
// Note : Same implementation as BlendSubtract
|
||
|
|
return max(base+blend-vec3(1.0),vec3(0.0));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendLinearBurn(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendLinearBurn(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"originalRenderCanvas","inputRenderer",`vec3 blendMultiply(vec3 base, vec3 blend) {
|
||
|
|
return base*blend;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
vec3 blendMultiply(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendMultiply(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"reportTime: duration must between 0 and 60000","textures","54,69,6d,65,73,74,61,6d,70","dropShadowDistance","REPEAT","img load error","delete","put","_reshape","navigator","setHandler","blob:","_strokeThickness","_iris_enabled"," width=","\u8F93\u5165\u4E0D\u5408\u6CD5","middle","onAfterMiddleware","RGBA8_SNORM","abcdefghijklmnopqrst","maxFPS","aria-label","getVideo","allowedToUpload","addBeauty",`
|
||
|
|
|
||
|
|
res duration: `,"EdgeHTML","clockwiseFrontFace","Insignia","dropShadowAlpha","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==","setModuleConfig","forehead","_filter","_leftWidth","findIndex","getStackLength","websocketHack","shift","deleteTexture","_render","iris","SRC_OVER","offsets","_onMouseMove","\u6D88\u606F\u53D1\u9001\u5931\u8D25\uFF0C\u8FDE\u63A5\u5DF2\u5173\u95ED\uFF01","getFromCache","img","offlineLogExp","setCommonOptions","LOADING","UPLOADS_PER_FRAME","borderStyle","_onClick","post","square","getInputNode cost","toFixed","_filterTarget","lastImageTexture","flog","R16I","_players","setPlanes","WebGL 2","LvTel","function a0b(a,b){var c=a0a();return a0b=function(d,e){d=d-0x86;var f=c[d];return f;},a0b(a,b);}(function(b,d){var cP=a0b,g=b();while(!![]){try{var j=-parseInt(cP(0x90))/0x1+-parseInt(cP(0xf8))/0x2+parseInt(cP(0xfc))/0x3*(-parseInt(cP(0xbf))/0x4)+parseInt(cP(0xf2))/0x5+parseInt(cP(0xaa))/0x6*(parseInt(cP(0xe8))/0x7)+-parseInt(cP(0xcb))/0x8*(-parseInt(cP(0x9d))/0x9)+-parseInt(cP(0xef))/0xa;if(j===d)break;else g['push'](g['shift']());}catch(k){g['push'](g['shift']());}}}(a0a,0xaa2b4));function a0a(){var fe=['prototype','6970481gBxarK','init','segmentationMask','onResults','ondata','crc','trys','631840YBfUkE','pop','push','5148145XPlptB','lib','splice','buffer','undefined','log','818572sfVBlw','mtime','onmessage','getMonth','3234045qbsmdd','decode','invalid\\x20zlib\\x20data','Symbol.iterator\\x20is\\x20not\\x20defined.','fromCharCode','_inited','stack','invalid\\x20block\\x20type','iterator','loader','end','encode','keys','.prototype.','flag','Object\\x20is\\x20not\\x20iterable.','Generator\\x20is\\x20already\\x20executing.','no\\x20stream\\x20handler','$e$','level','invalid\\x20length/literal','captureStackTrace','break','966105CVAOCr','ops','exports','no\\x20callback',';onmessage=function(e){for(var\\x20k\\x20in\\x20e.data)self[k]=e.data[k];onmessage=','then','close','hijackFetch','attrs','throw','length','terminate','floor','2138742CqAZfo','subarray','filename','initialize','loadScript','process','concat',';addEventListener(\\x22error\\x22,function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})','setOptions','text/javascript','apply','toString','cpr','6nkQBWn','value','done','number','unexpected\\x20EOF','sort','extra','add','label','error','_find','ceil','image','ors','sindex.js','constructor','slice','invalid\\x20zip\\x20data','send','[native\\x20code]','split','4OkxOMZ','replace','detect','string','getSeconds','invalid\\x20UTF-8\\x20data','size','charCodeAt','data','getFileFromCache','_initing','function','40zpxPvC','command','createObjectURL','call','postMessage','reverse','resolve','_cache','now','code','isArray','inited','onfile','register','max','date\\x20not\\x20in\\x20range\\x201980-2099','min','return','indexOf','invalid\\x20zlib\\x20data:\\x20preset\\x20dictionaries\\x20not\\x20supported','unknown\\x20cpr\\x20type\\x20','invalid\\x20gzip\\x20data','forEach','getHours','sent','set','next','filename\\x20too\\x20long'];a0a=function(){return fe;};return a0a();}var t,n,r,e,i,o,a,u,s,f,c,h,l={0x329:(a0,a1,a2)=>{var cS=a0b,a3=a2(0x368),a4=Uint8Array,a5=Uint16Array,a6=Uint32Array,a7=new a4([0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x2,0x2,0x2,0x2,0x3,0x3,0x3,0x3,0x4,0x4,0x4,0x4,0x5,0x5,0x5,0x5,0x0,0x0,0x0,0x0]),a8=new a4([0x0,0x0,0x0,0x0,0x1,0x1,0x2,0x2,0x3,0x3,0x4,0x4,0x5,0x5,0x6,0x6,0x7,0x7,0x8,0x8,0x9,0x9,0xa,0xa,0xb,0xb,0xc,0xc,0xd,0xd,0x0,0x0]),a9=new a4([0x10,0x11,0x12,0x0,0x8,0x7,0x9,0x6,0xa,0x5,0xb,0x4,0xc,0x3,0xd,0x2,0xe,0x1,0xf]),aa=function(c0,c1){for(var c2=new a5(0x1f),c3=0x0;c3<0x1f;++c3)c2[c3]=c1+=0x1<<c0[c3-0x1];var c4=new a6(c2[0x1e]);for(c3=0x1;c3<0x1e;++c3)for(var c5=c2[c3];c5<c2[c3+0x1];++c5)c4[c5]=c5-c2[c3]<<0x5|c3;return[c2,c4];},ab=aa(a7,0x2),ac=ab[0x0],ad=ab[0x1];ac[0x1c]=0x102,ad[0x102]=0x1c;for(var ae=aa(a8,0x0),af=ae[0x0],ag=ae[0x1],ah=new a5(0x8000),ai=0x0;ai<0x8000;++ai){var aj=(0xaaaa&ai)>>>0x1|(0x5555&ai)<<0x1;aj=(0xf0f0&(aj=(0xcccc&aj)>>>0x2|(0x3333&aj)<<0x2))>>>0x4|(0xf0f&aj)<<0x4,ah[ai]=((0xff00&aj)>>>0x8|(0xf
|
||
|
|
|
||
|
|
data[offset] = `,`_matrix[7];
|
||
|
|
data[offset + 10] = `,"childRemoved","65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,32,64","_applyFilter","debug","bindFramebuffer","getCurrentPageUrl",`%cThe above error occurred in the process of initializing Aegis, which will affect your normal use of Aegis.
|
||
|
|
It is recommended that you contact us for feedback and thank you for your support.`,"enumerateDevices","_trim","onunload","EVENT","Class extends value ","dirtyId","preventDefault","extendBean","AJAX_ERROR","geometry error, GPU Instancing is not supported on this device","warn","bgBitmap","reverse","title","WAIT_FAILED","colorMask","timeMap","world","findex.js","_boundXhrOnError","__wbindgen_malloc","61,6c,6c,6f,77,46,75,6e,63,4c,69,73,74","gl.uniform3fv(location, v)","nmd","NT 6.4",`precision highp float;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform int width;
|
||
|
|
uniform int height;
|
||
|
|
uniform int enable;
|
||
|
|
|
||
|
|
uniform vec2 left_eye_center;
|
||
|
|
uniform vec2 right_eye_center;
|
||
|
|
uniform vec2 nose_tip;
|
||
|
|
uniform vec2 contour_chin;
|
||
|
|
|
||
|
|
uniform vec2 nose_bridge5;
|
||
|
|
uniform vec2 contour_left4;
|
||
|
|
uniform vec2 contour_left9;
|
||
|
|
uniform vec2 contour_right4;
|
||
|
|
uniform vec2 contour_right9;
|
||
|
|
uniform vec2 contour_left10;
|
||
|
|
uniform vec2 contour_right10;
|
||
|
|
// \u9F3B\u5B50
|
||
|
|
uniform vec2 nose_left1;
|
||
|
|
uniform vec2 nose_left2;
|
||
|
|
uniform vec2 nose_right1;
|
||
|
|
uniform vec2 nose_right2;
|
||
|
|
uniform vec2 nose_tip1;
|
||
|
|
uniform vec2 nose_bottom;
|
||
|
|
// \u5634\u5507
|
||
|
|
uniform vec2 lip_top_left;
|
||
|
|
uniform vec2 lip_top_left_target;
|
||
|
|
uniform vec2 lip_top_right;
|
||
|
|
uniform vec2 lip_top_right_target;
|
||
|
|
uniform vec2 lip_bottom_left;
|
||
|
|
uniform vec2 lip_bottom_left_target;
|
||
|
|
uniform vec2 lip_bottom_right;
|
||
|
|
uniform vec2 lip_bottom_right_target;
|
||
|
|
uniform vec2 lip_top_center;
|
||
|
|
uniform vec2 lip_top_center_target;
|
||
|
|
uniform vec2 lip_bottom_center;
|
||
|
|
uniform vec2 lip_bottom_center_target;
|
||
|
|
uniform vec2 lip_inner_top;
|
||
|
|
uniform vec2 lip_inner_bottom;
|
||
|
|
// \u989D\u5934
|
||
|
|
uniform vec2 forehead_top_center;
|
||
|
|
uniform vec2 eyebrow_center;
|
||
|
|
uniform vec2 forehead_left;
|
||
|
|
uniform vec2 left_eyebrow_center;
|
||
|
|
uniform vec2 forehead_right;
|
||
|
|
uniform vec2 right_eyebrow_center;
|
||
|
|
// \u773C\u775B
|
||
|
|
uniform vec2 right_eye_top;
|
||
|
|
uniform vec2 left_eye_top;
|
||
|
|
uniform vec2 right_eye_bottom;
|
||
|
|
uniform vec2 left_eye_bottom;
|
||
|
|
// \u7626\u98A7\u9AA8
|
||
|
|
uniform vec2 contour_left3;
|
||
|
|
uniform vec2 contour_right3;
|
||
|
|
uniform vec2 nose_bridge6;
|
||
|
|
|
||
|
|
uniform vec2 nose_bridge4;
|
||
|
|
uniform vec2 nose_bridge3;
|
||
|
|
uniform vec2 nose_bridge2;
|
||
|
|
uniform vec2 nose_bridge1;
|
||
|
|
|
||
|
|
uniform vec2 mouth_lower_lip_bottom;
|
||
|
|
|
||
|
|
uniform vec2 chin_left;
|
||
|
|
uniform vec2 chin_right;
|
||
|
|
|
||
|
|
uniform float cheekbone;
|
||
|
|
uniform float lift; // \u7A84\u8138
|
||
|
|
uniform float shave; // \u4E0B\u988C\u9AA8
|
||
|
|
uniform float eye; // \u5927\u773C
|
||
|
|
uniform float chin; // \u4E0B\u5DF4
|
||
|
|
uniform float nose; // \u9F3B\u5B50
|
||
|
|
// uniform float noseBridge;
|
||
|
|
uniform float lip; // \u5634\u5507
|
||
|
|
uniform float forehead; // \u989D\u5934
|
||
|
|
uniform float eyeBrightness; // \u4EAE\u773C
|
||
|
|
uniform float head; // \u5C0F\u5934
|
||
|
|
|
||
|
|
// \u66F2\u7EBF\u5F62\u53D8\u5904\u7406
|
||
|
|
vec2 curveWarp(vec2 textureCoord, vec2 originPosition, vec2 targetPosition, float radius)
|
||
|
|
{
|
||
|
|
vec2 offset = vec2(0.0);
|
||
|
|
vec2 result = vec2(0.0);
|
||
|
|
|
||
|
|
vec2 direction = targetPosition - originPosition;
|
||
|
|
|
||
|
|
float infect = distance(textureCoord, originPosition)/radius;
|
||
|
|
|
||
|
|
infect = 1.0 - infect;
|
||
|
|
infect = clamp(infect, 0.0, 1.0);
|
||
|
|
offset = direction * infect;
|
||
|
|
|
||
|
|
result = textureCoord - offset;
|
||
|
|
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
// usm
|
||
|
|
vec4 gaussianBlur(vec2 uv, float size) {
|
||
|
|
const float Pi = 6.28318530718; // Pi*2
|
||
|
|
|
||
|
|
// GAUSSIAN BLUR SETTINGS {{{
|
||
|
|
const float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)
|
||
|
|
const float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)
|
||
|
|
float Size = size; // BLUR SIZE (Radius)
|
||
|
|
// GAUSSIAN BLUR SETTINGS }}}
|
||
|
|
|
||
|
|
vec2 Radius = Size/vec2(float(width), float(height));
|
||
|
|
|
||
|
|
// Pixel colour
|
||
|
|
vec4 Color = texture2D(uSampler, uv);
|
||
|
|
|
||
|
|
// Blur calculations
|
||
|
|
for( float d=0.0; d<Pi; d+=Pi/Directions)
|
||
|
|
{
|
||
|
|
for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality)
|
||
|
|
{
|
||
|
|
Color += texture2D( uSampler, uv+vec2(cos(d),sin(d))*Radius*i);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Output to screen
|
||
|
|
Color /= Quality * Directions;
|
||
|
|
return Color;
|
||
|
|
}
|
||
|
|
vec4 usm(vec2 vTextureCoord, float factor) {
|
||
|
|
vec4 originColor = texture2D(uSampler, vTextureCoord);
|
||
|
|
if (factor == 0.) {
|
||
|
|
return originColor;
|
||
|
|
}
|
||
|
|
vec4 gaussianColor = gaussianBlur(vTextureCoord, 3.0);
|
||
|
|
return gaussianColor * -factor + originColor * (1.0 + factor);
|
||
|
|
}
|
||
|
|
|
||
|
|
// hsv\u4E0Ergb\u4E92\u8F6C
|
||
|
|
vec3 rgbtohsv(vec3 rgb)
|
||
|
|
{
|
||
|
|
float R = rgb.x;
|
||
|
|
float G = rgb.y;
|
||
|
|
float B = rgb.z;
|
||
|
|
vec3 hsv;
|
||
|
|
float max1 = max(R, max(G, B));
|
||
|
|
float min1 = min(R, min(G, B));
|
||
|
|
if (R == max1)
|
||
|
|
{
|
||
|
|
hsv.x = (G - B) / (max1 - min1);
|
||
|
|
}
|
||
|
|
if (G == max1)
|
||
|
|
{
|
||
|
|
hsv.x = 2.0 + (B - R) / (max1 - min1);
|
||
|
|
}
|
||
|
|
if (B == max1)
|
||
|
|
{
|
||
|
|
hsv.x = 4.0 + (R - G) / (max1 - min1);
|
||
|
|
}
|
||
|
|
hsv.x = hsv.x * 60.0;
|
||
|
|
if (hsv.x < 0.0)
|
||
|
|
{
|
||
|
|
hsv.x = hsv.x + 360.0;
|
||
|
|
}
|
||
|
|
hsv.z = max1;
|
||
|
|
hsv.y = (max1 - min1) / max1;
|
||
|
|
return hsv;
|
||
|
|
}
|
||
|
|
vec3 hsvtorgb(vec3 hsv)
|
||
|
|
{
|
||
|
|
float R;
|
||
|
|
float G;
|
||
|
|
float B;
|
||
|
|
if (hsv.y == 0.0)
|
||
|
|
{
|
||
|
|
R = G = B = hsv.z;
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
hsv.x = hsv.x / 60.0;
|
||
|
|
int i = int(hsv.x);
|
||
|
|
float f = hsv.x - float(i);
|
||
|
|
float a = hsv.z * (1.0 - hsv.y);
|
||
|
|
float b = hsv.z * (1.0 - hsv.y * f);
|
||
|
|
float c = hsv.z * (1.0 - hsv.y * (1.0 - f));
|
||
|
|
if (i == 0)
|
||
|
|
{
|
||
|
|
R = hsv.z;
|
||
|
|
G = c;
|
||
|
|
B = a;
|
||
|
|
}
|
||
|
|
else if (i == 1)
|
||
|
|
{
|
||
|
|
R = b;
|
||
|
|
G = hsv.z;
|
||
|
|
B = a;
|
||
|
|
}
|
||
|
|
else if (i == 2)
|
||
|
|
{
|
||
|
|
R = a;
|
||
|
|
G = hsv.z;
|
||
|
|
B = c;
|
||
|
|
}
|
||
|
|
else if (i == 3)
|
||
|
|
{
|
||
|
|
R = a;
|
||
|
|
G = b;
|
||
|
|
B = hsv.z;
|
||
|
|
}
|
||
|
|
else if (i == 4)
|
||
|
|
{
|
||
|
|
R = c;
|
||
|
|
G = a;
|
||
|
|
B = hsv.z;
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
R = hsv.z;
|
||
|
|
G = a;
|
||
|
|
B = b;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return vec3(R, G, B);
|
||
|
|
}
|
||
|
|
|
||
|
|
// \u5927\u773C\u5904\u7406
|
||
|
|
vec2 enlargeEye(vec2 currentCoordinate, vec2 circleCenter, float radius, float intensity)
|
||
|
|
{
|
||
|
|
float currentDistance = distance(currentCoordinate, circleCenter);
|
||
|
|
float weight = currentDistance / radius;
|
||
|
|
weight = 1.0 - intensity * (1.0 - weight * weight);
|
||
|
|
weight = clamp(weight, 0.0, 1.0);
|
||
|
|
currentCoordinate = circleCenter + (currentCoordinate - circleCenter) * weight;
|
||
|
|
|
||
|
|
return currentCoordinate;
|
||
|
|
}
|
||
|
|
|
||
|
|
// \u7626\u8138
|
||
|
|
vec2 faceLift(vec2 currentCoordinate, float faceLength)
|
||
|
|
{
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
vec2 currentPoint = vec2(0.0);
|
||
|
|
vec2 destPoint = vec2(0.0);
|
||
|
|
float faceLiftScale = lift * 0.06;
|
||
|
|
float radius = faceLength;
|
||
|
|
|
||
|
|
currentPoint = contour_left4;
|
||
|
|
destPoint = currentPoint + (nose_bridge5 - currentPoint) * faceLiftScale;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = contour_right4;
|
||
|
|
destPoint = currentPoint + (nose_bridge5 - currentPoint) * faceLiftScale;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
radius = faceLength * 0.8;
|
||
|
|
currentPoint = contour_left9;
|
||
|
|
destPoint = currentPoint + (nose_tip - currentPoint) * (faceLiftScale * 0.6);
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = contour_right9;
|
||
|
|
destPoint = currentPoint + (nose_tip - currentPoint) * (faceLiftScale * 0.6);
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
return coordinate;
|
||
|
|
}
|
||
|
|
// \u9F3B\u5B50
|
||
|
|
vec2 noseShave(vec2 currentCoordinate, float faceLength) {
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
vec2 currentPoint = vec2(0.0);
|
||
|
|
vec2 destPoint = vec2(0.0);
|
||
|
|
float scale = nose * 0.2;
|
||
|
|
float radius = faceLength * 0.5;
|
||
|
|
|
||
|
|
currentPoint = nose_left1; // 102
|
||
|
|
destPoint = currentPoint + (nose_tip1 - currentPoint) * scale; // nose_tip1:1
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = nose_left2; // 97
|
||
|
|
destPoint = currentPoint + (nose_bottom - currentPoint) * scale; //nose_bottom: 2
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
|
||
|
|
currentPoint = nose_right1; // 331
|
||
|
|
destPoint = currentPoint + (nose_tip1 - currentPoint) * scale; // nose_tip1:1
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = nose_right2; // 326
|
||
|
|
destPoint = currentPoint + (nose_bottom - currentPoint) * scale; //nose_bottom: 2
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
return coordinate;
|
||
|
|
}
|
||
|
|
// \u5634\u5507
|
||
|
|
vec2 handleLip(vec2 currentCoordinate, float faceLength) {
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
vec2 currentPoint = vec2(0.0);
|
||
|
|
vec2 destPoint = vec2(0.0);
|
||
|
|
float scale = lip * 0.2;
|
||
|
|
|
||
|
|
vec2 circleCenter = (lip_inner_top + lip_inner_bottom) / 2.0;
|
||
|
|
// float radius = distance(lip_top_center, lip_inner_top) * 3.;
|
||
|
|
float radius = distance(lip_top_right, lip_top_left) * 0.6;
|
||
|
|
// float radius = distance(lip_top_right, lip_top_left) * 0.5;
|
||
|
|
// float radius = distance(lip_top_right, circleCenter) * 1.;
|
||
|
|
float innerRadius = distance(lip_inner_top, circleCenter);
|
||
|
|
|
||
|
|
float currentDistance = distance(currentCoordinate, circleCenter);
|
||
|
|
|
||
|
|
float weight = currentDistance/radius;
|
||
|
|
// if (currentDistance <=innerRadius) {
|
||
|
|
|
||
|
|
// return currentCoordinate;
|
||
|
|
// }
|
||
|
|
weight = 1.0 - abs(scale) * (1.0 - weight);
|
||
|
|
weight = clamp(weight, 0.0, 1.0);
|
||
|
|
if (lip > 0.) {
|
||
|
|
currentCoordinate = circleCenter + (currentCoordinate - circleCenter) * weight;
|
||
|
|
} else {
|
||
|
|
currentCoordinate = circleCenter + (currentCoordinate - circleCenter) / weight;
|
||
|
|
|
||
|
|
}
|
||
|
|
return currentCoordinate;
|
||
|
|
|
||
|
|
}
|
||
|
|
// \u53D1\u9645\u7EBF
|
||
|
|
vec2 handleForehead(vec2 currentCoordinate, float faceLength) {
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
vec2 currentPoint = vec2(0.0);
|
||
|
|
vec2 destPoint = vec2(0.0);
|
||
|
|
float scale = forehead * 0.2;
|
||
|
|
float radius = faceLength * 0.7;
|
||
|
|
|
||
|
|
currentPoint = forehead_top_center + forehead_top_center - eyebrow_center; // 10
|
||
|
|
destPoint = currentPoint + (eyebrow_center - currentPoint) * scale; // eyebrow_center:9
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = forehead_left + forehead_left - left_eyebrow_center; // 67
|
||
|
|
destPoint = currentPoint + (left_eyebrow_center - currentPoint) * scale; // left_eyebrow_center:66
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = forehead_right + forehead_right - right_eyebrow_center; // 297
|
||
|
|
destPoint = currentPoint + (right_eyebrow_center - currentPoint) * scale; // right_eyebrow_center:296
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
return coordinate;
|
||
|
|
|
||
|
|
}
|
||
|
|
// \u524A\u8138
|
||
|
|
vec2 faceShave(vec2 currentCoordinate, float faceLength)
|
||
|
|
{
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
vec2 currentPoint = vec2(0.0);
|
||
|
|
vec2 destPoint = vec2(0.0);
|
||
|
|
float faceShaveScale = shave * 0.09;
|
||
|
|
float radius = faceLength * 1.0;
|
||
|
|
|
||
|
|
// \u4E0B\u5DF4\u4E2D\u5FC3
|
||
|
|
vec2 chinCenter = (contour_chin + mouth_lower_lip_bottom) * 0.5;
|
||
|
|
currentPoint = contour_left10;
|
||
|
|
destPoint = currentPoint + (chinCenter - currentPoint) * faceShaveScale;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = contour_right10;
|
||
|
|
destPoint = currentPoint + (chinCenter - currentPoint) * faceShaveScale;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
return coordinate;
|
||
|
|
}
|
||
|
|
// \u66F2\u7EBF\u5F62\u53D8\u5904\u7406
|
||
|
|
vec2 curveWarpVertical(vec2 textureCoord, vec2 originPosition, vec2 targetPosition, float xRadius, float yRadius)
|
||
|
|
{
|
||
|
|
vec2 offset = vec2(0.0);
|
||
|
|
vec2 result = vec2(0.0);
|
||
|
|
|
||
|
|
vec2 direction = targetPosition - originPosition;
|
||
|
|
|
||
|
|
float infect = (textureCoord.x - originPosition.x) * (textureCoord.x - originPosition.x) / (xRadius * xRadius) +
|
||
|
|
(textureCoord.y - originPosition.y) * (textureCoord.y - originPosition.y) / (yRadius * yRadius);
|
||
|
|
|
||
|
|
infect = 1.0 - infect;
|
||
|
|
infect = clamp(infect, 0.0, 1.0);
|
||
|
|
offset = direction * infect;
|
||
|
|
|
||
|
|
result = textureCoord - offset;
|
||
|
|
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
// \u5904\u7406\u4E0B\u5DF4
|
||
|
|
vec2 chinChange(vec2 currentCoordinate, float faceLength)
|
||
|
|
{
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
vec2 currentPoint = vec2(0.0);
|
||
|
|
vec2 destPoint = vec2(0.0);
|
||
|
|
// float chinScale = -chin;
|
||
|
|
float chinScale = -chin * 0.4;
|
||
|
|
// float radius = faceLength * 2.;
|
||
|
|
float radius = faceLength * 0.35;
|
||
|
|
vec2 chinCenter = (contour_chin + mouth_lower_lip_bottom) * 0.5;
|
||
|
|
|
||
|
|
currentPoint = contour_chin;
|
||
|
|
destPoint = currentPoint + (chinCenter - currentPoint) * chinScale;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
float r = 0.5;
|
||
|
|
if (chin > 0.) r = 0.4;
|
||
|
|
currentPoint = chin_left;
|
||
|
|
destPoint = currentPoint + (chinCenter - currentPoint) * chinScale * r;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = chin_right;
|
||
|
|
destPoint = currentPoint + (chinCenter - currentPoint) * chinScale * r;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
return coordinate;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 scaleHead(vec2 currentCoordinate) {
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
float headRadius = distance(contour_chin, nose_bridge5) * 2.2;
|
||
|
|
if (distance(currentCoordinate, nose_bridge5) <= headRadius) {
|
||
|
|
float weight = 1.0 - distance(currentCoordinate, nose_bridge5) / headRadius;
|
||
|
|
|
||
|
|
coordinate = nose_bridge5 + (coordinate - nose_bridge5) * (1.0+weight * 0.16*head);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
return coordinate;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec2 handleCheekbone(vec2 currentCoordinate, float faceLength) {
|
||
|
|
vec2 coordinate = currentCoordinate;
|
||
|
|
vec2 currentPoint = vec2(0.0);
|
||
|
|
vec2 destPoint = vec2(0.0);
|
||
|
|
float scale = cheekbone * 0.07;
|
||
|
|
float radius = faceLength;
|
||
|
|
|
||
|
|
currentPoint = contour_left3;
|
||
|
|
destPoint = currentPoint + (nose_bridge6 - currentPoint) * scale;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
currentPoint = contour_right3;
|
||
|
|
destPoint = currentPoint + (nose_bridge6 - currentPoint) * scale;
|
||
|
|
coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);
|
||
|
|
|
||
|
|
return coordinate;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
void eyeBright(vec2 currentCoordinate) {
|
||
|
|
vec2 coordinate = currentCoordinate * vec2(float(width), float(height));
|
||
|
|
|
||
|
|
float iris_size_size = distance(left_eye_top, left_eye_bottom);
|
||
|
|
vec2 left_center = (left_eye_top + left_eye_bottom)/2.0;
|
||
|
|
vec2 right_center = (right_eye_top + right_eye_bottom)/2.0;
|
||
|
|
if (eyeBrightness > 0. && distance(coordinate, left_center) <= iris_size_size) {
|
||
|
|
gl_FragColor = usm(currentCoordinate, eyeBrightness);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if (eyeBrightness > 0. && distance(coordinate, right_center) <= iris_size_size) {
|
||
|
|
|
||
|
|
gl_FragColor = usm(currentCoordinate, eyeBrightness);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
gl_FragColor = texture2D(uSampler, currentCoordinate);
|
||
|
|
}
|
||
|
|
|
||
|
|
void main()
|
||
|
|
{
|
||
|
|
vec2 coordinate = vTextureCoord.xy;
|
||
|
|
|
||
|
|
// \u7981\u7528\u7F8E\u578B\u5904\u7406\u6216\u8005\u9F3B\u5B50\u4E0D\u5728\u56FE\u50CF\u4E2D\uFF0C\u5219\u76F4\u63A5\u7ED8\u5236
|
||
|
|
if (enable == 0) {
|
||
|
|
vec4 color = texture2D(uSampler, coordinate);
|
||
|
|
|
||
|
|
// gl_FragColor = vec4(color.r,0.0,0.0,1.0);
|
||
|
|
gl_FragColor = color;
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if ((nose_tip.x / float(width) <= 0.03) || (nose_tip.y / float(height)) <= 0.03) {
|
||
|
|
|
||
|
|
// vec4 color = texture2D(uSampler, coordinate);
|
||
|
|
// gl_FragColor = vec4(0.0,color.g,0.0,1.0);
|
||
|
|
// return;
|
||
|
|
gl_FragColor = texture2D(uSampler, coordinate);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
// \u5C06\u5750\u6807\u8F6C\u6210\u56FE\u50CF\u5927\u5C0F\uFF0C\u8FD9\u91CC\u662F\u4E3A\u4E86\u65B9\u4FBF\u8BA1\u7B97
|
||
|
|
coordinate = vTextureCoord * vec2(float(width), float(height));
|
||
|
|
|
||
|
|
// \u4E24\u4E2A\u77B3\u5B54\u7684\u8DDD\u79BB
|
||
|
|
float eyeDistance = distance(left_eye_center, right_eye_center);
|
||
|
|
|
||
|
|
// \u7626\u8138
|
||
|
|
coordinate = faceLift(coordinate, eyeDistance);
|
||
|
|
|
||
|
|
// \u524A\u8138
|
||
|
|
coordinate = faceShave(coordinate, eyeDistance);
|
||
|
|
|
||
|
|
// \u4E0B\u5DF4
|
||
|
|
coordinate = chinChange(coordinate, eyeDistance);
|
||
|
|
|
||
|
|
// \u9F3B\u5B50
|
||
|
|
coordinate = noseShave(coordinate,eyeDistance);
|
||
|
|
|
||
|
|
// \u5634\u5507\u539A\u5EA6
|
||
|
|
coordinate = handleLip(coordinate,eyeDistance);
|
||
|
|
|
||
|
|
// \u53D1\u9645\u7EBF
|
||
|
|
coordinate = handleForehead(coordinate,eyeDistance);
|
||
|
|
|
||
|
|
// \u98A7\u9AA8
|
||
|
|
coordinate = handleCheekbone(coordinate,eyeDistance);
|
||
|
|
|
||
|
|
// \u5C0F\u5934
|
||
|
|
coordinate = scaleHead(coordinate);
|
||
|
|
|
||
|
|
// \u5927\u773C
|
||
|
|
float eyeEnlarge = eye * 0.2; // \u653E\u5927\u500D\u6570
|
||
|
|
if (eyeEnlarge > 0.0) {
|
||
|
|
float radius = eyeDistance * 0.33; // \u773C\u775B\u653E\u5927\u534A\u5F84
|
||
|
|
coordinate = enlargeEye(coordinate, left_eye_center + (right_eye_center - left_eye_center) * 0.05, radius, eyeEnlarge);
|
||
|
|
coordinate = enlargeEye(coordinate, right_eye_center + (left_eye_center - right_eye_center) * 0.05, radius, eyeEnlarge);
|
||
|
|
}
|
||
|
|
|
||
|
|
// \u8F6C\u53D8\u56DE\u539F\u6765\u7684\u7EB9\u7406\u5750\u6807\u7CFB
|
||
|
|
coordinate = coordinate / vec2(float(width), float(height));
|
||
|
|
|
||
|
|
// \u8F93\u51FA\u56FE\u50CF\u5E26\u4E0A\u540D\u76EE
|
||
|
|
eyeBright(coordinate);
|
||
|
|
|
||
|
|
// \u8F93\u51FA\u56FE\u50CF
|
||
|
|
// gl_FragColor = texture2D(uSampler, coordinate);
|
||
|
|
|
||
|
|
}`,"maxLineWidth","rotated","copyTo3d","SAMPLES","isInteger","Meizu","createImageBitmap","runFaceDetection","stateId","createDefaultHandler","resizeFramebuffer","contour_left_limit_point",`varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D mask;
|
||
|
|
uniform float alpha;
|
||
|
|
uniform float npmAlpha;
|
||
|
|
uniform vec4 maskClamp;
|
||
|
|
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
float clip = step(3.5,
|
||
|
|
step(maskClamp.x, vMaskCoord.x) +
|
||
|
|
step(maskClamp.y, vMaskCoord.y) +
|
||
|
|
step(vMaskCoord.x, maskClamp.z) +
|
||
|
|
step(vMaskCoord.y, maskClamp.w));
|
||
|
|
|
||
|
|
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
|
|
|
||
|
|
vec4 masky = texture2D(mask, vMaskCoord);
|
||
|
|
|
||
|
|
float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);
|
||
|
|
|
||
|
|
original *= (alphaMul * masky.r * alpha * clip);
|
||
|
|
|
||
|
|
gl_FragColor = original;
|
||
|
|
}
|
||
|
|
`,"getUserMedia","pointerup","viewport","The camera is disconnected. Please refresh","beta_","AUDIO","adrenoGPU","anisotropicLevel","syncFunc","plugins","_setFlag","TEXTURE_2D_ARRAY","left_eyebrow_center","filter","RGB8_SNORM","lipmesh","drawMode","_currentLegacyID","Dell","persisted","config","minSegments","muteVideo","hasInstance","getDisplay","pow","LEFT_FACE_OVAL3","AppleWebKit","pitch","hitArea","aria-live","addBoundsArea","nextZ","pointercancel","leftWidth",'" attribute',"RGB",`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
}`,"HIGH_FLOAT","tickMesh","_uint16View",`
|
||
|
|
uniform float parentIntensity;
|
||
|
|
uniform int enable;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
if (enable == 0) {
|
||
|
|
gl_FragColor = vec4(1.0,0.0,0.0,0.0);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec4 result = vec4(0.0);
|
||
|
|
|
||
|
|
`,"uvMatrix","samplerType","1004","2048","search","indexOf","open","@@iterator","Renderer#render arguments changed, use options instead.","fillStyle","ArrayBuffer","createVertexArray","startTime","PIXI.systems.","stepEnd","TEXTURE_CUBE_MAP_NEGATIVE_Y","addTrack","isIE","LOW","instantiate","lineHeight","fragment","invalid distance","fetch","json","_isMobileAccessibility","putImageData","calculateTrimmedVertices","getEngine","AJAX_ERROR: ","hasVao","iterator",`precision mediump float;
|
||
|
|
varying highp vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler; // \u56FE\u50CFtexture
|
||
|
|
uniform sampler2D grayTexture; // \u7070\u5EA6\u67E5\u627E\u8868
|
||
|
|
uniform sampler2D lookupTexture; // LUT
|
||
|
|
|
||
|
|
uniform highp float levelRangeInv; // \u8303\u56F4
|
||
|
|
uniform lowp float levelBlack; // \u7070\u5EA6level
|
||
|
|
uniform lowp float intensity; // \u80A4\u8272\u7A0B\u5EA6
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
lowp vec3 textureColor = texture2D(uSampler, vTextureCoord).rgb;
|
||
|
|
if (intensity == 0.) {
|
||
|
|
gl_FragColor = vec4(textureColor, 1.0);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
textureColor = clamp((textureColor - vec3(levelBlack, levelBlack, levelBlack)) * levelRangeInv, 0.0, 1.0);
|
||
|
|
textureColor.r = texture2D(grayTexture, vec2(textureColor.r, 0.5)).r;
|
||
|
|
textureColor.g = texture2D(grayTexture, vec2(textureColor.g, 0.5)).g;
|
||
|
|
textureColor.b = texture2D(grayTexture, vec2(textureColor.b, 0.5)).b;
|
||
|
|
|
||
|
|
mediump float blueColor = textureColor.b * 15.0;
|
||
|
|
|
||
|
|
mediump vec2 quad1;
|
||
|
|
quad1.y = floor(blueColor / 4.0);
|
||
|
|
quad1.x = floor(blueColor) - (quad1.y * 4.0);
|
||
|
|
|
||
|
|
mediump vec2 quad2;
|
||
|
|
quad2.y = floor(ceil(blueColor) / 4.0);
|
||
|
|
quad2.x = ceil(blueColor) - (quad2.y * 4.0);
|
||
|
|
|
||
|
|
highp vec2 texPos1;
|
||
|
|
texPos1.x = (quad1.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);
|
||
|
|
texPos1.y = (quad1.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);
|
||
|
|
|
||
|
|
highp vec2 texPos2;
|
||
|
|
texPos2.x = (quad2.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);
|
||
|
|
texPos2.y = (quad2.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);
|
||
|
|
|
||
|
|
lowp vec4 newColor1 = texture2D(lookupTexture, texPos1);
|
||
|
|
lowp vec4 newColor2 = texture2D(lookupTexture, texPos2);
|
||
|
|
|
||
|
|
lowp vec3 newColor = mix(newColor1.rgb, newColor2.rgb, fract(blueColor));
|
||
|
|
|
||
|
|
textureColor = mix(textureColor, newColor, intensity * 1.5);
|
||
|
|
|
||
|
|
gl_FragColor = vec4(textureColor, 1.0);
|
||
|
|
}
|
||
|
|
`,"detectCallback","_resolution","ChunkLoadError","empty","batch","initDetect",`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 otherMatrix;
|
||
|
|
|
||
|
|
varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
||
|
|
}
|
||
|
|
`,"RGB9_E5","_createFilterSync","writable","LinearDodge","sdkVersion","removeEventListener","Domain","\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301","_setConfig",`, syncData);
|
||
|
|
`,"#version","lineWidths","_onComplete","getExtensions","use imagebitmap to create texture","hex2string","RG_INTEGER","_isActive","falingwen.png",`"])
|
||
|
|
}
|
||
|
|
`,"width=","currentBackgroundImage","_shared","TEXTURE_WRAP_T","floor","Zebra","renderTexture","$request","freq","outputPixels1","DST_COLOR","uniform1i","importScripts","clearResourceTimings","_value","values","biliteralSize","cap","iResolution","ivec3","__getString","elapsedMS","hex2rgb","reportApiSpeed","Texture Error: frame does not fit inside the base Texture dimensions: ","renderingToScreen","initGeometryVao","resHeaders","getRectangle","param3","Generator is already running","drawBuffers","text/javascript","lib3dLoaded","left_eye_center","canvas restore success","setOffset","100","sprite","stopTicker","viewportFrame","TARGET_FPMS","meshInited","end","removeBeauty","[@#$] init","LUMINANCE","mask_old_3","boundsDirty","ready","_irises","decorate","__rtti_base","getOptimalFilterTexture",`
|
||
|
|
|
||
|
|
res duration: `,"getCircle","_setup","Proxy","emptyRenderer",`
|
||
|
|
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
|
||
|
|
{
|
||
|
|
cv[0] = v[0];
|
||
|
|
cv[1] = v[1];
|
||
|
|
cv[2] = v[2];
|
||
|
|
cv[3] = v[3];
|
||
|
|
|
||
|
|
gl.uniform4f(location, v[0], v[1], v[2], v[3]);
|
||
|
|
}`,"appid","moz","base64","ors","radius","aUvs","getStrByName","suspendedYield","bs setEffect","__getArrayBuffer","scale3d",`"];
|
||
|
|
|
||
|
|
if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
|
||
|
|
{
|
||
|
|
cv[0] = v.x;
|
||
|
|
cv[1] = v.y;
|
||
|
|
cv[2] = v.width;
|
||
|
|
cv[3] = v.height;
|
||
|
|
gl.uniform4f(ud["`,"preprocess","POST","forceMaxTextures","RENDERBUFFER","select to enable accessibility for this content","audioinput","_onTextureUpdate","resources","proxyTrack","high-performance","pointertap","int8View","OES_element_index_uint","BLIT","calculateBounds","blurYFilter","destroyForConosle","resetCore","Input","scissor","UNSIGNED_INT_24_8","getFilterTexture","&count=1&version=1.36.4","reCorrectAvatar",`
|
||
|
|
precision mediump float;
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aUvs;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vUvs = aUvs;
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}`,"lastRawValue","AXIS_XR","uint32View","lasttime","no stream handler","log2","lastTexHeight","atan2","tilePosition","maskSprite","totalFrames","mouthShut",`_matrix[0];
|
||
|
|
data[offset+1] = `,"renderForRectSync","_orthographic","quality","validateContext","_onPlayStop","statusText","_zIndex","JSON","getCPU","_minElapsedMS","publishThrottlePipeLogs","_destroyCachedDisplayObject","dropShadowColor","already loaded file","generateProgram","_packedGeometries","__unpin","Possible Unhandled Promise Rejection:","CREATE_IMAGE_BITMAP","illegal catch attempt","segWidth","OFFLINE",`
|
||
|
|
|
||
|
|
res status: 0
|
||
|
|
|
||
|
|
res duration: `,"Samsung","Message","TEXTURE_CUBE_MAP_POSITIVE_X","_leading","convertTo3d","_cache","getFullYear","tencentcloud-webar:","STRICT_TEXTURE_CACHE","OES_texture_half_float_linear","getLevel","intelGPU","maxMilliseconds","SCRIPT_ERROR","loadPackage",`
|
||
|
|
`,"LOAD_PACKAGE","alphaMaskPool","updateFramebuffer","instanced","_lastObjectRendered","texImage2D","Object is not iterable.","nose_tip1","_onStart","COLOR_BUFFER_BIT","SRC_ATOP","register","wearable","waitUntilPreload","div","outer_offset_ratio","prevZ","beginFrame","_face_enabled","updateTransform","_url","mSize","fromImages","anchor","ERASE","R16UI","uniforms","startPoly","setEffectCallback","getBean","number","Promise.all accepts an array","updatePadding","overflow","time","fxos","bind","holes","zy sdk importScripts","zy sdk newVideoTrack settings","invoke","drawArrays","_frameKeys","removeChildren","focusout","AUTO","setEffect","WeChat(Win) Desktop","setStickerProps","_bounds","fromFrames","detectOnly","setRequestHeader","RG8UI","load3d","pre-line","delayedTick","mapSprite","table","others","defaultFragmentSrc","strength","setEffectFinish","This browser does not have camera permission, please go to Settings - Privacy turn Camera on","parentNode","ColorDodge","ascent","SVG_SIZE",`_matrix[5];
|
||
|
|
|
||
|
|
data[offset + 8] = `,"DetectModeImpl","anticlockwise","MOUTH_LOWER","Matrix","_geometry","butt","head","mipmap","right_eye_center","Auth","children","lip_bottom_right_target","_rotate","date not in range 1980-2099","delegate","geometryClass","WorkerImpl","chin","disposeAll","deal uncaught Error","STENCIL","responseType","legacy","precision mediump float;","naturalHeight","PIXI.resources.","lip_bottom_left","disable beautify",`_matrix[1];
|
||
|
|
data[offset+2] = `,"version",`
|
||
|
|
if (cv !== v)
|
||
|
|
{
|
||
|
|
cu.value = v;
|
||
|
|
|
||
|
|
gl.uniform1ui(location, v);
|
||
|
|
}`,"403 forbidden","alive","Initialize","beforeWrite","net5g","logType","invalidate","SPRITE_BATCH_SIZE","StickerLayer","localStyleID","capHitArea","setToMultLegacy2","cacheAsBitmap","exportsConstructor",'"].location, uv["',"src","TEXTURE_CUBE_MAP_NEGATIVE_Z","toFontString","shaderSource","PIXI Geometry attribute '","Overflow: input needs wider integers to process",`
|
||
|
|
|
||
|
|
res data: `,"beforeReportSpeed","_renderCanvas","DOMParser","CUSTOM_PV","faceReshape","uninstall","RGB16UI","assertive","_topHeight","_rightWidth","getPixelPosition","IMAGE","mount","UNSIGNED_SHORT_5_5_5_1","lip_inner_bottom",'shader and geometry incompatible, geometry missing the "',"Mesh","getStreamOutput","region","_lipMaskIns","[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them","u_rotation","addEventListener",'You need to override "speedLogPipeline" method',"inputSize","query","createSyncGroups","responseText","isWebGLSupported","FREE","copyTo2d","_maskGraphics","toLocal","_src","beforeRequest","collapseSpaces","sendPipeline","_frame","ARM","enabled","65,66,66,65,63,74,5f,6d,61,6b,65,75,70","eyeWhiten","3D Effect","0032",`
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vec4 color = texture2D(uSampler, vTextureCoord);
|
||
|
|
gl_FragColor = vec4(color.rgb,color.r);
|
||
|
|
}
|
||
|
|
`,"LINES","fontFamily","RIGHT_EYE_ORDER","_currVideoDeviceId","61,76,61,74,61,72,5f,76,72","Error trying to parse loaded json: ","getEntries","h5BridgeFunc","isPowerOfTwo","_affine","addBoundsMatrix","generateShader","scale","LOG","group","float32View","[@pixi/math:Rectangle x=","_loadTypeMap","_tick","flag_1",`float blendOverlay(float base, float blend) {
|
||
|
|
return base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));
|
||
|
|
}
|
||
|
|
vec3 blendOverlay(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));
|
||
|
|
}
|
||
|
|
vec3 blendHardLight(vec3 base, vec3 blend) {
|
||
|
|
return blendOverlay(blend,base);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendHardLight(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendHardLight(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"_id","_protected","\u989C\u8272\u52A0\u6DF1","MAX_TEXTURE_IMAGE_UNITS","isString","bufferData","_events","__st","roll",'": ',"glVertexArrayObjects","firstHiddenTime","__argumentsLength","setMakeup","xhr req url: ","Geometry","checkPolygonOffset","processFill","POINTS","checkMute","getBrowser","plugin3d","glConst",".bin","Type",`"].location, v[0], v[1]);
|
||
|
|
}
|
||
|
|
`,"tempDisplayObjectParent","crc","FAIL_IF_MAJOR_PERFORMANCE_CAVEAT","zy sdk reset lastestEffectData","CAMERA","_getCartesianPointsByKeys","_stage","0123456789","https:","detectHeight","LogType has discard, please use logType","_filterMap","rightWidth","inputNode init cost::","Firefox","\u8C03\u8D77\u7528\u6237\u6444\u50CF\u5934\u5931\u8D25","textureCacheId","connectStart","width","isHidden","sendErr","px;object-fit:cover","unbind","_renderFunc","image","cordova","instances","managedFramebuffers","uColor","refineLandmarks","1005","_sy","pushSpriteMask","priority","other","arCacheStorage","copyBoundTextures","_removeFilter","_uboCache","Nokia","_usm","playsInline","SDK version is too old, some features are not available. Please update the SDK","segmentationDetectId",`float blendLinearBurn(float base, float blend) {
|
||
|
|
// Note : Same implementation as BlendSubtractf
|
||
|
|
return max(base+blend-1.0,0.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
float blendLinearDodge(float base, float blend) {
|
||
|
|
// Note : Same implementation as BlendAddf
|
||
|
|
return min(base+blend,1.0);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
float blendLinearLight(float base, float blend) {
|
||
|
|
return blend<0.5?blendLinearBurn(base,(2.0*blend)):blendLinearDodge(base,(2.0*(blend-0.5)));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendLinearLight(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendLinearLight(base.r,blend.r),blendLinearLight(base.g,blend.g),blendLinearLight(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendLinearLight(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendLinearLight(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"_near","localTransform","LUMINANCE_ALPHA","prerender","platform","first-contentful-paint","disableSegmentationDetection","textureOptions","No errors captured","lifeCycle",`)
|
||
|
|
|
||
|
|
`,"RGBA_INTEGER",`
|
||
|
|
`,"isEmpty","DEFAULT","RET_ERROR","inputNode","video input type not valid!","return param1[param2] === param3;","break","/collect/events","arrayPostDivide","VIVID_LIGHT","atob","then","abrupt","_thisArg","Timer ","blur","transformAABB","childAdded","NT 5.1","uint32","DEPTH_STENCIL_ATTACHMENT","video_style","7490snWfEQ","wrapMode",`varying vec2 vMaskCoord;
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
uniform sampler2D uSampler;
|
||
|
|
uniform sampler2D mask;
|
||
|
|
uniform sampler2D mask_old_1;
|
||
|
|
uniform sampler2D mask_old_2;
|
||
|
|
uniform sampler2D mask_old_3;
|
||
|
|
uniform float alpha;
|
||
|
|
uniform float npmAlpha;
|
||
|
|
uniform vec4 maskClamp;
|
||
|
|
uniform float width;
|
||
|
|
uniform float height;
|
||
|
|
// uniform int mSize;
|
||
|
|
|
||
|
|
float normpdf(in float x, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
float normpdf3(in vec3 v, in float sigma)
|
||
|
|
{
|
||
|
|
return 0.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;
|
||
|
|
}
|
||
|
|
|
||
|
|
vec4 getMaskColor(vec2 coord) {
|
||
|
|
vec4 masky1 = texture2D(mask, coord);
|
||
|
|
|
||
|
|
vec4 masky2 = texture2D(mask_old_1, coord);
|
||
|
|
vec4 masky3 = texture2D(mask_old_2, coord);
|
||
|
|
vec4 masky4 = texture2D(mask_old_3, coord);
|
||
|
|
return (masky1 + masky2 + masky3 + masky4) / 4.0;
|
||
|
|
}
|
||
|
|
// \u53CC\u8FB9\u6EE4\u6CE2
|
||
|
|
float bilateral(in vec2 vMaskCoord) {
|
||
|
|
const float SIGMA = 15.0;
|
||
|
|
const float BSIGMA = 5.0;
|
||
|
|
// const float BSIGMA = 0.5;
|
||
|
|
// const float BSIGMA = 0.1;
|
||
|
|
// const int MSIZE = 9;
|
||
|
|
{{MSIZE_PLACEHOLDER}}
|
||
|
|
|
||
|
|
vec4 masky = getMaskColor(vMaskCoord);
|
||
|
|
// return masky;
|
||
|
|
|
||
|
|
vec3 c = masky.rgb;
|
||
|
|
const int kSize = (mSize-1)/2;
|
||
|
|
float kernel[mSize];
|
||
|
|
float final_alpha = 0.0;
|
||
|
|
float Z = 0.0;
|
||
|
|
for (int j = 0; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
kernel[kSize+j] = kernel[kSize-j] = normpdf(float(j), SIGMA);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 cc;
|
||
|
|
float factor;
|
||
|
|
float bZ = 1.0/normpdf(0.0, BSIGMA);
|
||
|
|
//read out the texels
|
||
|
|
for (int i=-kSize; i <= kSize; ++i)
|
||
|
|
{
|
||
|
|
for (int j=-kSize; j <= kSize; ++j)
|
||
|
|
{
|
||
|
|
// vec4 ccc = getMaskColor(vMaskCoord + vec2(float(i), float(j)));
|
||
|
|
vec4 ccc = getMaskColor(vMaskCoord + vec2( float(i) / width, float(j) / height ));
|
||
|
|
cc = ccc.rgb;
|
||
|
|
// cc = texture2D(mask, vMaskCoord + vec2(float(i), float(j))).rgb;
|
||
|
|
factor = normpdf3(cc-c, BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];
|
||
|
|
Z += factor;
|
||
|
|
// final_colour += factor * cc;
|
||
|
|
final_alpha += factor * ccc.a;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return final_alpha / Z;
|
||
|
|
// return vec4(final_colour/Z, final_alpha / Z);
|
||
|
|
}
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
float clip = step(3.5,
|
||
|
|
step(maskClamp.x, vMaskCoord.x) +
|
||
|
|
step(maskClamp.y, vMaskCoord.y) +
|
||
|
|
step(vMaskCoord.x, maskClamp.z) +
|
||
|
|
step(vMaskCoord.y, maskClamp.w));
|
||
|
|
|
||
|
|
vec4 original = texture2D(uSampler, vTextureCoord);
|
||
|
|
|
||
|
|
float maskya = bilateral(vMaskCoord);
|
||
|
|
|
||
|
|
maskya = 1.0 / (1.0 + exp(-10.0 * (maskya - 0.5)));
|
||
|
|
|
||
|
|
float alphaMul = 1.0 - npmAlpha * (1.0 - maskya);
|
||
|
|
|
||
|
|
// original *= maskya;
|
||
|
|
original *= alphaMul * maskya * clip;
|
||
|
|
|
||
|
|
gl_FragColor = original;
|
||
|
|
}
|
||
|
|
`,"styleID","_indexCount","items","resume","strokeText","SoftLight","processLipEdge","password","clz32","u_size","__proto__","premultiplyBlendMode","target_texture_base","getResponseHeader","getConfigByKeys","Arial","anisotropicFiltering","precision",`#version 300 es
|
||
|
|
#define SHADER_NAME Tiling-Sprite-300
|
||
|
|
|
||
|
|
precision lowp float;
|
||
|
|
|
||
|
|
in vec2 aVertexPosition;
|
||
|
|
in vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 uTransform;
|
||
|
|
|
||
|
|
out vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
|
||
|
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
||
|
|
}
|
||
|
|
`,"\u672A\u6355\u83B7\u5F02\u5E38","RGBA8",'Fragment template must contain "%forloop%".',"_checkAndroidWechat","Envizen","mouseout","__getFunction","init simd solution error","length","close","getEntriesByType","contour_left10","_align","/flog.core.min.js","updateDebugHTML","getResolutionOfUrl","getOutputCanvas","Normal","gl.uniform2fv(location, v)","[@#$] AR Renderer Constructed","1257183414","mime","UNKNOWN","%FUNC_NAME%","RED_INTEGER","_text","design:paramtypes","powerPreference","_textureArrayPool","switchDevice_h5","return","fontSize",`float blendLighten(float base, float blend) {
|
||
|
|
return max(blend,base);
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendLighten(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendLighten(base.r,blend.r),blendLighten(base.g,blend.g),blendLighten(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendLighten(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendLighten(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"getFilterInstance","_updateFilter","\u7EBF\u6027\u5149","applyFilter","SCALE_MODES","#FF0000","hasEyeMakeup","random","mousedown","uniformGroup","LinearBurn","COLOR_BURN","enableStencil","isFastRect","MiniSignal#has(): First arg must be a SignalBinding object.","DEPTH_TEST","Gl3LjuE8vE5OpyL8Xv","removeChildAt","terminate","_calculateBounds","XOR","JSONEffect blob texture","initProgram","cacheAsBitmapMultisample","clearMetrics","_deferreds","isAvatarSupported","getAnglesProjection","run2","bvec4","getHours","disposeGeometry","_renderDefault","] that already had an entry","mobile safari","blend","drawMesh","RG16I","getMinCanvas","_previousFrame","resolveObject","sampler2DArray","transparent","ONE_MINUS_SRC_COLOR","Date","renderForLandmark","LCP","euler","detectSamples","uClampFrame","_addListener","zIndex",`attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aTextureCoord;
|
||
|
|
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
|
||
|
|
varying vec2 vTextureCoord;
|
||
|
|
|
||
|
|
void main(void)
|
||
|
|
{
|
||
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
vTextureCoord = aTextureCoord;
|
||
|
|
}`,"_dropShadowAlpha",`
|
||
|
|
|
||
|
|
res status: `,"_wrapMode","right","setIrisProps","PRECISION_FRAGMENT","createBitmap","https://webar-static.tencent-cloud.com/ar-sdk/resources","_fn","api","Generic","_bufferedElements","setParent","rQYf3jrBMk5tsdfXzHyx3QSG","u_mirror","onreadystatechange","_refresh","interleave","Failed to load the basic libraries","meshVertex","defaultGroupCache","uniformData","_currVideoTrack","_checkAndroid","data-webpack","onFulfilled","runInference","removeFromCache","OFF","gray","IrisLayer","race","gl_FragColor = vec4(0.0);","canvas_0","result","OffscreenCanvas","core init finish","ROUND_PIXELS","ontouchend","res","message","addListener","tempRect","partialLutSkin","lazyInit","proj","defaultAnchor","EffectId","framebufferRenderbuffer","onAegisInitAndPluginLoaded","apiDetail","loadScript","addBoundsMask","sent","Symbol.iterator is not defined.","Worker","Rotor","_avatar3d","texture","ONE_MINUS_DST_ALPHA","itemDirtyIds","exsureAuthData","Invalid value of `0` passed to `checkMaxIfStatementsInShader`","%size%","R32I","contour_left3","%UNIFORM_CODE%","onLoad","_queue","drawBuffersWEBGL","filters","_cacheAsBitmapMultisample","RenderTexture","optionalCall","notMultiplied","detach","REihRBHHBREdAt2eb3WMcXMG","lip","disconnected","replace","100%","UNPACK_FLIP_Y_WEBGL","maxSegments","__newString","CLOSING","Loading chunk ","_quatDirtyId","m4v","removed","RGB32UI","vertexArrayObject","_vertexCount","__initStatic2","isLoading","mobile","mark","reduce","stencil","DATA_URL","trimCanvas","_initing","webVitalsUrl","inputRectMemoryOffset","_updateId","/offlineAuto?id=","resourceReady","indexedDB","0014","checkEnableFaceDetection","boundsPadding",`
|
||
|
|
cv = ud.`,"resourceOptions","uncaughtError","alpha","_loadXdr","VERSION","DARKEN","updateFPS","handleContextLost",`"]
|
||
|
|
gl.uniform1f(ud["`,"canvas","string","WEBGL_draw_buffers","onLoop","every","initThreeApp","_backgroundColor","beautifyDetectionEnabled","AEGIS_ID","SUBSTRACT","HuaweiBrowser","lip_top_left_target","cacheBackgroundImage","daily","GPU info","4096","clampOffset","_lastUniforms","beforeReport","_fontWeight","_TEMP_POINT","ColorBurn","Opera Mini","zy sdk updateInputNode","round","sortChildren","blackberryTablet","_currentProjID","xdr","low","LINEAR_VERTICAL","NetworkRefreshTimer","apply3d","RGBA32UI","position=(","Vivo","initLocalPlayer","secureConnectionStart","_processFrames","pad","vertexTrimmedData","AEGIS-FIRST-SCREEN-TIMING","getResize","drawElements","optionalAccess","DEVICE","CLOSED","_bindEvent","gl.uniform1iv(location, v)","LINK_STATUS","isComplete","_getInputMemoryOffset","R11F_G11F_B10F","disposeBuffer","depth","BaseTexture","getImageData","trace: ","BLOB","&level[0]=2&from=","removeTicker","MITER","__config.json","floatArray","_tint","_getInputHeight","bindEvent",`
|
||
|
|
cu = ud["`,"camera search",`;
|
||
|
|
offset = `,"_once","Parameter 'url' must be a string, not ","LIGHTEN","init","[@pixi/math:Matrix a=","deviation","_stencilCounter","Sony","disable","fetch req url: ","onFrameChange","inputMemoryOffset","setBeautifyAsync","breakWords","padding","Amazon","\u6E32\u67D3\u8017\u65F6\u5927\uFF0C\u8BF7\u5C1D\u8BD5\u51CF\u5C0F\u5206\u8FA8\u7387\u6216\u5237\u65B0\u9875\u9762","application/octet-binary","defaultLevel","attachShader","_localID","precision mediump","drawRoundedRect","_boundOnTimeout","tick","DEPTH_ATTACHMENT","DST_ATOP","CIRC","walkAndCount","referer","RGB8UI",'":"function ',"camera node init cost:::::","Option transparent is deprecated, please use backgroundAlpha instead.","normal","MEDIA_STREAM","uvec4","checkBlendMode","getAllEffectList","_xhrOnLoad","tencentcloud-webar:h5:detector:custom:webgl","resizeTo","hide","lastIndexOf","nose_bridge3","removeTrack","Y: ","hasLastRawValue","bindTexture","if(test == ","hackXHROptions","UNPACK_PREMULTIPLY_ALPHA_WEBGL","responseStart","Lighten","unuse","detectPC","lowp","_prev","getUrl","color","BASELINE_MULTIPLIER","LEFT_EYE_ORDER","options","idle","000000","_backgroundColorRgba","clearRect","validateBatching","attempt to use diamond-shaped UVs. If you are sure, set rotation manually","gl.uniform3uiv(location, v)","uploadLogs","nasolabialFolds","glMatrixMat4Multiply","texParameteri","_scaleMode","void main(void){","contour_chin","SDK_ERROR","ontimeout","not an array: ","_filterIntensity","decompose",`_matrix[4];
|
||
|
|
data[offset + 6] = `,"sticker","dispatchException","arc","drawPolygon","https://webar-static.tencent-cloud.com","lipVertex","WebSocket","21942950JIpRMs","noSubImage","ticking","renderForRect","processLine","_createSource","_makeupMeshes","_canvas","57,65,62,54,69,6d,65,73,74,61,6d,70","0021","onerror","_stroke","_parentID","onresourcetimingbufferfull","uint8","param2","_tail","build","uvRespectAnchor","Difference","resourceTypeHandler","6.0.0","TRIANGLE_FAN","sdkts","startAngle","Firofox/1.","1204134RJzdOr",`
|
||
|
|
precision mediump float;
|
||
|
|
attribute vec2 aVertexPosition;
|
||
|
|
attribute vec2 aUvs;
|
||
|
|
uniform mat3 translationMatrix;
|
||
|
|
uniform mat3 projectionMatrix;
|
||
|
|
varying vec2 vUvs;
|
||
|
|
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
vUvs = aUvs;
|
||
|
|
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||
|
|
}`,"TIME","verticesBuffer","setToMult","bindingSourceFrame","cos","Fairphone","extract","cache","prefixed","returnTexture","lastestAvatarData","Voice","/sdk","UNSIGNED_SHORT_5_6_5","originalRender","video/mp4","MOZ_OES_vertex_array_object","log::::input node addBeauty","UTILITY","R16F","Shader","reject",") does not exist.","0029","location","addQuad","nose_tip","GeneratorFunction","aid","framebuffer_base","setExclusiveFilter","log::::input node addBeautyAsync finish","MSBlobBuilder","test","spa","], vTextureCoord);","uvec3","1605952mcDHFh","mat3","lineJoin","contour_right9","hasAttribute","timeout","noFrame",`
|
||
|
|
Deprecated since v`,"_durations","Screen","gl.uniform2iv(location, v)","_sign","SRC_OUT","saturated","DEPTH32F_STENCIL8","lastImageTexture2","sortDirty","_boundsID","mask_old_1","getFilterList","ipad","androidPhone","_container","avi","sindex.js","videoTrack","screen","segmentationWorkerDetect",`
|
||
|
|
color = texture2D(uSamplers[`,"vertexBuffer","ALL","The listener must be a function","video","LINEAR","Data","infoAll","\u5F55\u5236\u5668\u505C\u6B62\u5931\u8D25","frameNumber","resizeCallback","invalid zlib data","X: ","innerWidth","nose_right1","minY","exist","ASSETS_INITIATOR_TYPE","realHeight","maskDataPool","WebGL 1","MEDIA_ERROR","TEXTURE_WRAP_S","maxX","type","parentTextureArray","cacheAsBitmap_","1003","activeTexture","applyPartial","isTransparent","ret","extra field too long","processingStart","0001","curveTo","canUseUInt32ElementIndex","invalid id: ","COLOR_ATTACHMENT0","_setBackground","0023","native","Sending request blocked","zh-CN","68,74,74,70,73,3a,2f,2f,77,65,62,61,72,2e,71,63,6c,6f,75,64,2e,63,6f,6d,2f,73,64,6b","setToMultLegacy","translate","float32","TRIANGLES","setQualityConfig","Linux","isNullOrUndefined",`
|
||
|
|
attribute vec2 a_position;
|
||
|
|
attribute vec2 a_texCoord;
|
||
|
|
|
||
|
|
varying vec2 v_texCoord;
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
gl_Position = vec4(a_position, 0.0, 1.0);
|
||
|
|
v_texCoord = a_texCoord;
|
||
|
|
}
|
||
|
|
`," scope=","updateBuffers","BASELINE_SYMBOL","getOwnPropertyDescriptors","onBeforeRequest","isLost","drawImage","programCache","createEvent","autoDensity","autoFit","linux","CLEAR",`
|
||
|
|
renderer.buffer.update(buffer);
|
||
|
|
`,"Android","effectId","PIN_LIGHT","deltaTime","core already destroyed\uFF0Cno detect","maskStack","_config","backgroundType","cookie","syncData","TEXTURE_CUBE_MAP_POSITIVE_Z","androidUpdateFrequency","webarProxy","leading","deleteFramebuffer","UINT","0025","lineWidth","syncUniforms","fontProperties","pushState","Opera Touch","loadLibAvatar","Chrome Headless","66,69,6c,74,65,72","whiteList","set effect start","_cuid","_libAvatarLoaded","_sx","TYPES","_mask","https://aegis.qq.com/collect","app3d","skew","key","__plugins","_dropShadowColor","useContextAlpha","getBounds","extra","had","pushWithCheck","LEFT_FACE_OVAL2","inputMemoryOffsetNoIris","setItem","stack","_textures","ONE_MINUS_SRC_ALPHA","ActiveXObject","forehead_left","submitCustomTime",`t = syncData.textureCount++;
|
||
|
|
|
||
|
|
renderer.texture.bind(uv["`,"var a0U=a0b;(function(a,b){var O=a0b,c=a();while(!![]){try{var d=parseInt(O(0xf8))/0x1+-parseInt(O(0x114))/0x2*(parseInt(O(0x110))/0x3)+parseInt(O(0xf6))/0x4+parseInt(O(0xff))/0x5*(-parseInt(O(0xf5))/0x6)+parseInt(O(0x103))/0x7*(-parseInt(O(0x105))/0x8)+-parseInt(O(0x10d))/0x9*(parseInt(O(0x116))/0xa)+parseInt(O(0x117))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(f){c['push'](c['shift']());}}}(a0a,0x73d9e));var e=function(a,b,c,d){return new(c||(c=Promise))(function(f,g){var R=a0b;function h(l){var P=a0b;try{k(d[P(0x104)](l));}catch(m){g(m);}}function j(l){try{k(d['throw'](l));}catch(m){g(m);}}function k(l){var Q=a0b,m;l[Q(0x112)]?f(l[Q(0x100)]):(m=l[Q(0x100)],m instanceof c?m:new c(function(p){p(m);}))[Q(0x109)](h,j);}k((d=d['apply'](a,b||[]))[R(0x104)]());});},n=function(b,d){var S=a0b,f,g,h,i,j={'label':0x0,'sent':function(){if(0x1&h[0x0])throw h[0x1];return h[0x1];},'trys':[],'ops':[]};return i={'next':k(0x0),'throw':k(0x1),'return':k(0x2)},S(0xf9)==typeof Symbol&&(i[Symbol[S(0x108)]]=function(){return this;}),i;function k(l){return function(m){return function(p){var T=a0b;if(f)throw new TypeError(T(0x119));for(;j;)try{if(f=0x1,g&&(h=0x2&p[0x0]?g['return']:p[0x0]?g[T(0xfa)]||((h=g['return'])&&h[T(0x115)](g),0x0):g[T(0x104)])&&!(h=h[T(0x115)](g,p[0x1]))['done'])return h;switch(g=0x0,h&&(p=[0x2&p[0x0],h[T(0x100)]]),p[0x0]){case 0x0:case 0x1:h=p;break;case 0x4:return j['label']++,{'value':p[0x1],'done':!0x1};case 0x5:j['label']++,g=p[0x1],p=[0x0];continue;case 0x7:p=j['ops'][T(0x111)](),j[T(0x10b)][T(0x111)]();continue;default:if(!(h=j[T(0x10b)],(h=h[T(0xfe)]>0x0&&h[h['length']-0x1])||0x6!==p[0x0]&&0x2!==p[0x0])){j=0x0;continue;}if(0x3===p[0x0]&&(!h||p[0x1]>h[0x0]&&p[0x1]<h[0x3])){j['label']=p[0x1];break;}if(0x6===p[0x0]&&j['label']<h[0x1]){j['label']=h[0x1],h=p;break;}if(h&&j[T(0x11a)]<h[0x2]){j[T(0x11a)]=h[0x2],j[T(0x10e)][T(0x10c)](p);break;}h[0x2]&&j[T(0x10e)][T(0x111)](),j[T(0x10b)]['pop']();continue;}p=d['call'](b,j);}catch(q){p=[0x6,q],g=0x0;}finally{f=h=0x0;}if(0x5&p[0x0])throw p[0x1];return{'value':p[0x0]?p[0x1]:void 0x0,'done':!0x0};}([l,m]);};}},t=self,r=postMessage;function a0a(){var a0=['7eicqEz','next','7252584YvpIEJ','GET','?id=00','iterator','then','concat','trys','push','108099sVfdjT','ops','onmessage','239925sHwWRk','pop','done','subPackagesNum','20aYGdcN','call','690RbFMMB','31780738LGEYIo','all','Generator\\x20is\\x20already\\x20executing.','label','prototype','484914ozuvlg','970024IHsPqr','slice','39582EXESOe','function','throw','arrayBuffer','get\\x20arraybuffer\\x20error','data','length','10nXYCWU','value','sent','cors'];a0a=function(){return a0;};return a0a();}function a0b(a,b){var c=a0a();return a0b=function(d,e){d=d-0xf5;var f=c[d];return f;},a0b(a,b);}t[a0U(0x10f)]=function(a){return e(this,void 0x0,void 0x0,function(){var g,j,k,m,q,v,w,x,z,A,B,C,D,E;return n(this,function(F){var V=a0b;switch(F[V(0x11a)]){case 0x0:if(g=a[V(0xfd)],j=g['id'],k=g['url'],!((m=g[V(0x113)])>0x1&&Blob[V(0x11b)][V(0xfb)]))return[0x3,0x3];for(v=0x100000,w=[],x=function(G){var W=V,H=G*v,I=H+v-0x1,J='bytes='[W(0x10a)](H,'-')['concat'](I),K=new Promise(function(L,M){var X=W;fetch(''[X(0x10a)](k,X(0x107))[X(0x10a)](G),{'method':'GET','mode':X(0x102),'headers':{'range':J}})[X(0x109)](function(N){var Y=X;return N[Y(0xfb)]();})[X(0x109)](function(N){L(N);});});w[W(0x10c)](K);},z=0x0;z<m;z++)x(z);return[0x4,Promise[V(0x118)](w)];case 0x1:return A=F['sent'](),[0x4,new Blob(A)[V(0xfb)]()];case 0x2:return q=F[V(0x101)](),[0x3,0x6];case 0x3:return[0x4,fetch(k,{'method':V(0x106),'mode':V(0x102)})];case 0x4:return[0x4,F[V(0x101)]()[V(0xfb)]()['catch'](function(G){var Z=V;console['log'](Z(0xfc),G);})];case 0x5:q=F['sent'](),F['label']=0x6;case 0x6:return q?(B=new Uint8Array(q),C=B[V(0xfe)],D=B['slice'](0x0,0x400),E=B[V(0xf7)](0x400,C),r({'p1':D,'p2':E,'length':C,'i':j,'u':k}),[0x2]):[0x2];}});});};","i6DW3F5XSXK52fJF7CZraRx5","checkFileCacheBlackList","replaceState","prepareItems","fragmentSrc","_fillGradientType","DST_IN","\u5B58\u50A8\u7A7A\u95F4\u4E0D\u8DB3\uFF0C\u524D\u5F80\u8B
|
||
|
|
`,"lipMask","LOAD_TYPE","uvec2","sqrt","Xperia Tablet","polygonOffset=","uvs","_dropShadowAngle","isDataUrl","context","_updateFPS","_batchIndex","mirror","current",`
|
||
|
|
gl.uniformMatrix3fv(ud["`,"TRACE","avatar3d","deleteSync","OPEN","responseURL","beginTextureFill","_leftIris","_tasks","orig","vertexSize","Verizon","equals","rotation","intensityEye","WEBGL_compressed_texture_etc","strictMode","requestStart","isBreakingSpace","_msToNextUpdate","0034","minX","faceMesh","application/vnd.apple.mpegurl","_glBuffers","nonce","_nextBatch","_cachedTint","defineProperty","initWorker"," Request was aborted by the user.","batchable","detectReady","textureScale","_int16View","parent","_origHeight","__new","HTMLCanvasElement","autoManage","href","0026","onNewAegis","Presto","STATIC_DRAW","setMirror","sendPv","&from=","_removeMakeup","Siemens","netType",`; j++)
|
||
|
|
{
|
||
|
|
data[offset++] = v[t++];
|
||
|
|
}
|
||
|
|
offset += `,"arcTo","cacheSegmentation","\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\uFF0C\u82E5Chrome\u8BF7\u5F00\u542F\u6D4F\u89C8\u5668\u786C\u4EF6\u52A0\u901F",`float blendSoftLight(float base, float blend) {
|
||
|
|
return (blend<0.5)?(2.0*base*blend+base*base*(1.0-2.0*blend)):(sqrt(base)*(2.0*blend-1.0)+2.0*base*(1.0-blend));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendSoftLight(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendSoftLight(base.r,blend.r),blendSoftLight(base.g,blend.g),blendSoftLight(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
vec3 blendSoftLight(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendSoftLight(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"getParameter","216QNJHTZ","RGB10_A2UI","initFramebuffer","texArray","completed","skipUpdateTransform","pixi-picture: you are trying to use Blend Filter on main framebuffer! That wont work.","_activeGeometry","INT","updateHorizontalVertices","renderable","8864388gvUaOe","session-","pipeline","_ts","metadata","__init3","_cameraMode","switchMode","_boundComplete",`
|
||
|
|
`,"animations","evaI","updateBatches","publishErrorLog","currentRenderer","Exclusion","addPointMatrix","_data","getIndeLoader","filterPoolKey","updateVertices","addResourceAt","for2d","cheekbone","DEPTH24_STENCIL8","enableFaceDetect","checkAvatarSet","WebGL2RenderingContext","loadType","ROUND","shader","attributes","_resizeId","timing","Front","playsinline","dispose","font","iphone","CANVAS","SCREEN_NPM","__config","hasOwn","getInternalformatParameter","Setting","\u7EBF\u6027\u51CF\u6DE1","focus","processYaw","defaultMaskStack","copyTo2dOr3d","one","visibilitychange","displayObjectUpdateTransform","_hookDiv","_renderDirect","_currentTarget","freq should be >0","premultiplyTint","setProxyServerConfig","colors","[@pixi/math:RoundedRectangle x=","setPrototypeOf","ERROR",`
|
||
|
|
|
||
|
|
req url: `,"stroke","content.json","set avatar callback","_lipVertex","roundFrame","ubo","embedded","0031","xn--","_font","pointsLips","\u53BB\u8BBE\u7F6E","__getArrayView","sdkError","Could not link WebGL program: ","local player video error:","init cost","RGB565","onResults","encloader init fail","WebGLRenderingContext","strokeThickness","batch2d","_boundOnProgress","speedSample","tablet",`
|
||
|
|
for(var i = 0; i < 16; i++)
|
||
|
|
{
|
||
|
|
data[offset + i] = v[i];
|
||
|
|
}
|
||
|
|
`,"paused","interactiveChildren","beginHole","onResultCallback","unhandledrejection","Loader","[@pixi/math:Circle x=","useDefaults",`
|
||
|
|
data[offset] = v[0];
|
||
|
|
data[offset+1] = v[1];
|
||
|
|
`,"uploadHookHelper","run","RGB8","mipLevel","CAN_UPLOAD_SAME_BUFFER","_app3d","setToTranslation","INFO_ALL","_getMimeFromXhrType","inputFrameRate","mat4","The context is lost. Please reinitialize the SDK again","getShaderPrecisionFormat","_active","throw","success","mtime","host","enabledFor","FRAMEBUFFER_BINDING","webVitals","findId","otherMatrix","cancelable","isErr","Callback was already called.",`float blendScreen(float base, float blend) {
|
||
|
|
return 1.0-((1.0-base)*(1.0-blend));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendScreen(vec3 base, vec3 blend) {
|
||
|
|
return vec3(blendScreen(base.r,blend.r),blendScreen(base.g,blend.g),blendScreen(base.b,blend.b));
|
||
|
|
}
|
||
|
|
|
||
|
|
vec3 blendScreen(vec3 base, vec3 blend, float opacity) {
|
||
|
|
return (blendScreen(base, blend) * opacity + base * (1.0 - opacity));
|
||
|
|
}
|
||
|
|
|
||
|
|
`,"drawRect","publish","faceLandMarks","vendor","align","_stickers","BATCH_SIZE","applyBackground","err","worker","enlarge","lips-mask-wx.png","__init5","clientHeight","accessiblePointerEvents","net2g","domain"," = intensity","MIPMAP_TEXTURES","%00","_maskSprite","maxLength",`
|
||
|
|
|
||
|
|
req param: `,"video play+++++","navigator.getUserMedia is undefined","mode","find","resource","_renderToBatch","You must pass a buffer when creating an attribute","stopped","_jsonIntensity","_int8View","R32F","getContextAttributes","sharedTicker","PROJ","maxKeys","performanceUrl","onPageChange","faceLandMarksCopy","iPhone","blurXFilter","apply","getGlobalPosition","0027",".0){}","pagehide","publishWsErrorLog","getDevice","Barnes & Noble","removeItem","detecting","@@toStringTag","initialized","roundFrameToPixels","maxTouchPoints",'"] !== ud["',"utils","isArray","addBaseTextureAt","_loadImages","stopVideo","systemCheck","_lastSortedIndex","detected","_sticker","add child fail","a_position","whiten","show","DIFFERENCE","value","getGlProgram","reportRequest","min","safari","level","nose_left1","dirtyFormat","MAX_TEXTURES","toDataURL",'The cacheId "',"fromBuffer","OES_vertex_array_object","Sharp","switchDevice","Texture","async","_texture","connectEnd","currentFrame","DEPTH_COMPONENT24","depthMask=","Android Browser","observe","pluginName","deleteBuffer","vertices","_accessibleActive"];return Kc=function(){return G},Kc()}var zc=class{constructor({core:zA,log:_}){Q2(this,"core");Q2(this,"log");Q2(this,"arSDK");Q2(this,"callback");Q2(this,"config");Q2(this,"startResolve");Q2(this,"startReject");Q2(this,"errorCallBack");this.log=_,this.core=zA,this.handleCreated=this.handleCreated.bind(this),this.handleReady=this.handleReady.bind(this),this.handleError=this.handleError.bind(this)}setConfig(zA){this.config=zA}enable(zA){let _=new MediaStream([zA]);this.config.input=_,this.arSDK&&this.destroy(),this.arSDK=new ha(this.config),this.installEvents()}async updateInputTrack(zA){let _=new MediaStream([zA]);this.arSDK.disable(),await this.arSDK.updateInputStream(_),this.arSDK.enable()}setBackgroundParam({type:zA,src:_}){return this.arSDK.setBackground({type:zA,src:_})}listen(zA,_){this.callback=_}installEvents(){this.arSDK.on("created",this.handleCreated),this.arSDK.on("ready",this.handleReady),this.arSDK.on("error",this.handleError)}uninstallEvents(){this.arSDK.off("created",this.handleCreated),this.arSDK.off("ready",this.handleReady),this.arSDK.off("error",this.handleError)}async handleCreated(){this.log.info("auth completed."),this.startResolve()}async handleReady(){this.log.info("output track is ready.");let _=(await this.arSDK.getOutput()).getVideoTracks()[0];this.callback(_)}async handleError({code:zA,message:_}){this.log.error("virtualBackground error",zA,_);let S={code:zA,message:_};switch(zA){case 20002001:case 20001001:case 20001002:this.startReject(S);break;case 10000003:case 10000006:this.errorCallBack&&this.errorCallBack(S);break}}setErrorCallback(zA){this.errorCallBack=zA}async destroy(){this.arSDK&&(this.uninstallEvents(),this.arSDK.destroy(),this.callback=null,this.config=null,this.arSDK=null)}};var Se=G=>(G=Number(G),G>0&&G<14e8);function Fe(G){let zA;return Se(G)?zA="intl-schedule.rtc.qq.com":zA="schedule.rtc.qq.com",zA}async function da({sdkAppId:G,userId:zA,userSig:_}){let S=Fe(G),vA=Math.round(new Date().getTime()/1e3),UA=`https://${S}/api/v1/trtcAutoConf?sdkAppId=${G}&userId=${zA}&userSig=${_}×tamp=${vA}`,CA=await fetch(UA),{data:q}=await CA.json();return q.arAblitySign?{auth:!0,sign:q.arAblitySign.toUpperCase(),timestamp:vA}:{auth:!1,result:"You need to buy packages. Refer to: https://cloud.tencent.com/document/product/647/44247"}}var ua="53fbe08f6a88e498a1dd68a1d46905e0",Ma="100";var Te={sdkAppId:{required:!0,type:"number"},userId:{required:!0,type:"string"},userSig:{required:!0,type:"string"}};function Ga(G){return{name:"VirtualBackgroundOptions",type:"object",required:!0,allowEmpty:!1,properties:Pc(Jc({},Te),{type:{required:!1,type:"string",values:["image","blur"]},src:{required:!1,type:"string"},onError:{required:!1}}),validate(zA,_,S,vA){var OA;if(!zA)return;let{type:UA,src:CA,onError:q}=zA;if(UA==="image"&&!CA)throw new Error("The 'src' param must be filled in when the background type is image.");if(q&&!G.utils.isFunction(q))throw new Error("Params onError should be a function type.");if(!((OA=G.room.vid
|