p&&(h+=A[i++]<>>24,h>>>=w,p-=w,0===(w=b>>>16&255))S[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=m[(65535&b)+(h&(1<p&&(h+=A[i++]<>>=w,p-=w),15>p&&(h+=A[i++]<
>>24,h>>>=w,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=y[(65535&b)+(h&(1<p&&(h+=A[i++]<l){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=w,p-=w,w=o-a,x>w){if((w=x-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,T=f,0===d){if(k+=u-w,_>w){_-=w;do S[o++]=f[k++];while(--w);k=o-x,T=S}}else if(w>d){if(k+=u+d-w,(w-=d)<_){_-=w;do S[o++]=f[k++];while(--w);if(k=0,_>d){w=d,_-=w;do S[o++]=f[k++];while(--w);k=o-x,T=S}}}else if(k+=d-w,_>w){_-=w;do S[o++]=f[k++];while(--w);k=o-x,T=S}for(;_>2;)S[o++]=T[k++],S[o++]=T[k++],S[o++]=T[k++],_-=3;_&&(S[o++]=T[k++],_>1&&(S[o++]=T[k++]))}else{k=o-x;do S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],_-=3;while(_>2);_&&(S[o++]=S[k++],_>1&&(S[o++]=S[k++]))}break}}break}}while(r>i&&s>o);_=p>>3,i-=_,p-=_<<3,h&=(1<
i?r-i+5:5-(i-r),e.avail_out=s>o?s-o+257:257-(o-s),n.hold=h,n.bits=p}},function(e,t,n){"use strict";var i=n(8),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,l,u,c,d,f){var h,p,m,y,v,g,b,w,_,x=f.bits,k=0,T=0,A=0,S=0,I=0,O=0,E=0,C=0,N=0,L=0,R=null,j=0,P=new i.Buf16(16),$=new i.Buf16(16),B=null,D=0;for(k=0;15>=k;k++)P[k]=0;for(T=0;l>T;T++)P[t[n+T]]++;for(I=x,S=15;S>=1&&0===P[S];S--);if(I>S&&(I=S),0===S)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(A=1;S>A&&0===P[A];A++);for(A>I&&(I=A),C=1,k=1;15>=k;k++)if(C<<=1,(C-=P[k])<0)return-1;if(C>0&&(0===e||1!==S))return-1;for($[1]=0,k=1;15>k;k++)$[k+1]=$[k]+P[k];for(T=0;l>T;T++)0!==t[n+T]&&(d[$[t[n+T]]++]=T);if(0===e?(R=B=d,g=19):1===e?(R=r,j-=257,B=o,D-=257,g=256):(R=a,B=s,g=-1),L=0,T=0,k=A,v=c,O=I,E=0,m=-1,N=1<852||2===e&&N>592)return 1;for(;;){b=k-E,d[T]g?(w=B[D+d[T]],_=R[j+d[T]]):(w=96,_=0),h=1<>E)+p]=b<<24|w<<16|_|0;while(0!==p);for(h=1<>=1;if(0!==h?(L&=h-1,L+=h):L=0,T++,0==--P[k]){if(k===S)break;k=t[n+d[T]]}if(k>I&&(L&y)!==m){for(0===E&&(E=I),v+=A,O=k-E,C=1<O+E&&!((C-=P[O+E])<=0);)O++,C<<=1;if(N+=1<852||2===e&&N>592)return 1;m=L&y,u[m]=I<<24|O<<16|v-c|0}}return 0!==L&&(u[v+L]=k-E<<24|64<<16|0),f.bits=I,0}},function(e,t,n){"use strict";function i(e,t){if(65537>t&&(e.subarray&&a||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",i=0;t>i;i++)n+=String.fromCharCode(e[i]);return n}var r=n(8),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var s=new r.Buf8(256),l=0;256>l;l++)s[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;s[254]=s[254]=1,t.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;s>o;o++)n=e.charCodeAt(o),55296==(64512&n)&&s>o+1&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=128>n?1:2048>n?2:65536>n?3:4;for(t=new r.Buf8(l),a=0,o=0;l>a;o++)n=e.charCodeAt(o),55296==(64512&n)&&s>o+1&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),128>n?t[a++]=n:2048>n?(t[a++]=192|n>>>6,t[a++]=128|63&n):65536>n?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return i(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;i>n;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,r,o,a,l=t||e.length,u=new Array(2*l);for(r=0,n=0;l>n;)if((o=e[n++])<128)u[r++]=o;else if((a=s[o])>4)u[r++]=65533,n+=a-1;else{for(o&=2===a?31:3===a?15:7;a>1&&l>n;)o=o<<6|63&e[n++],a--;a>1?u[r++]=65533:65536>o?u[r++]=o:(o-=65536,u[r++]=55296|o>>10&1023,u[r++]=56320|1023&o)}return i(u,r)},t.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return 0>n?t:0===n?t:n+s[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){"use strict";function i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=i},function(e,t,n){"use strict";function i(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=i},function(e,t,n){!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);e.exports=i.ValueAnimator},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.startValue=0,this.endValue=0,this.duration=0,this.loops=1,this.fillRule=0,this.onStart=function(){},this.onUpdate=function(){},this.onEnd=function(){},this.mRunning=!1,this.mStartTime=0,this.mCurrentFrication=0,this.mReverse=!1}return e.prototype.start=function(e){void 0===e&&(e=void 0),this.doStart(!1,e)},e.prototype.reverse=function(e){void 0===e&&(e=void 0),this.doStart(!0,e)},e.prototype.stop=function(){this.doStop()},Object.defineProperty(e.prototype,"animatedValue",{get:function(){return(this.endValue-this.startValue)*this.mCurrentFrication+this.startValue},enumerable:!0,configurable:!0}),e.prototype.doStart=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=void 0),this.mReverse=t,this.mRunning=!0,this.mStartTime=e.currentTimeMillsecond(),n&&(this.mStartTime-=t?(1-n/(this.endValue-this.startValue))*this.duration:n/(this.endValue-this.startValue)*this.duration),this.mCurrentFrication=0,this.onStart(),this.doFrame()},e.prototype.doStop=function(){this.mRunning=!1},e.prototype.doFrame=function(){this.mRunning&&(this.doDeltaTime(e.currentTimeMillsecond()-this.mStartTime),this.mRunning&&e.requestAnimationFrame(this.doFrame.bind(this)))},e.prototype.doDeltaTime=function(e){e>=this.duration*this.loops?(this.mCurrentFrication=1===this.fillRule?0:1,this.mRunning=!1):(this.mCurrentFrication=e%this.duration/this.duration,this.mReverse&&(this.mCurrentFrication=1-this.mCurrentFrication)),this.onUpdate(this.animatedValue),!1===this.mRunning&&this.onEnd()},e.currentTimeMillsecond=function(){return"undefined"==typeof performance?(new Date).getTime():performance.now()},e.requestAnimationFrame=function(e){return"undefined"==typeof requestAnimationFrame?setTimeout(e,16):window.requestAnimationFrame(e)},e}();t.ValueAnimator=i}])})},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n=this._videoItem.frames||0>e||(this.pauseAnimation(),this._currentFrame=e,this._update(),t&&this._doStart(void 0,!1,this._currentFrame))}},{key:"stepToPercentage",value:function(e,t){var n=parseInt(e*this._videoItem.frames);n>=this._videoItem.frames&&n>0&&(n=this._videoItem.frames-1),this.stepToFrame(n,t)}},{key:"setImage",value:function(e,t,n){this._dynamicImage[t]=e,void 0!==n&&n instanceof Array&&6==n.length&&(this._dynamicImageTransform[t]=n)}},{key:"setText",value:function(e,t){var n="string"==typeof e?e:e.text,i=("object"===(void 0===e?"undefined":r(e))?e.size:"14px")||"14px",o=("object"===(void 0===e?"undefined":r(e))?e.family:"")||"",a=("object"===(void 0===e?"undefined":r(e))?e.color:"#000000")||"#000000",s=("object"===(void 0===e?"undefined":r(e))?e.offset:{x:0,y:0})||{x:0,y:0};this._dynamicText[t]={text:n,style:i+" "+o,color:a,offset:s}}},{key:"clearDynamicObjects",value:function(){this._dynamicImage={},this._dynamicImageTransform={},this._dynamicText={}}},{key:"onFinished",value:function(e){this._onFinished=e}},{key:"onFrame",value:function(e){this._onFrame=e}},{key:"onPercentage",value:function(e){this._onPercentage=e}},{key:"drawOnContext",value:function(e,t,n,i,r){this._drawingCanvas&&this._videoItem&&e.drawImage(this._drawingCanvas,t,n,i||this._videoItem.videoSize.width,r||this._videoItem.videoSize.height)}},{key:"_init",value:function(){if(this._container instanceof HTMLDivElement||this._asChild){if(this._container)for(var e=this._container.querySelectorAll("canvas"),t=0;tMath.floor(e)&&i._renderer.clearAudios(),i._currentFrame=Math.floor(e),i._update(),"function"==typeof i._onFrame&&i._onFrame(i._currentFrame),"function"==typeof i._onPercentage&&i._onPercentage(parseFloat(i._currentFrame+1)/parseFloat(i._videoItem.frames)))},this._animator.onEnd=function(){i._forwardAnimating=!1,!0===i.clearsAfterStop&&i.clear(),"function"==typeof i._onFinished&&i._onFinished()},!0===t?(this._animator.reverse(n),this._forwardAnimating=!1):(this._animator.start(n),this._forwardAnimating=!0),this._currentFrame=this._animator.startValue,this._update()}},{key:"_resize",value:function(){var e=!1;if(this._drawingCanvas){var t=void 0;t=this._drawingCanvas.parentNode?{width:this._drawingCanvas.parentNode.clientWidth,height:this._drawingCanvas.parentNode.clientHeight}:this._videoItem.videoSize;var n=this._videoItem.videoSize;if(t.width>=n.width&&t.height>=n.height)this._drawingCanvas.width=t.width,this._drawingCanvas.height=t.height,this._drawingCanvas.style.webkitTransform=this._drawingCanvas.style.transform="",e=!0;else{if(this._drawingCanvas.width=n.width,this._drawingCanvas.height=n.height,"Fill"===this._contentMode){var i=t.width/n.width,r=t.height/n.height,o=(n.width*i-n.width)/2,a=(n.height*r-n.height)/2;this._drawingCanvas.style.webkitTransform=this._drawingCanvas.style.transform="matrix("+i+", 0.0, 0.0, "+r+", "+o+", "+a+")"}else if("AspectFit"===this._contentMode||"AspectFill"===this._contentMode){var s=n.width/n.height,l=t.width/t.height;if(s>=l&&"AspectFit"===this._contentMode||l>=s&&"AspectFill"===this._contentMode){var u=t.width/n.width,c=(n.width*u-n.width)/2,d=(n.height*u-n.height)/2+(t.height-n.height*u)/2;this._drawingCanvas.style.webkitTransform=this._drawingCanvas.style.transform="matrix("+u+", 0.0, 0.0, "+u+", "+c+", "+d+")"}else if(l>s&&"AspectFit"===this._contentMode||s>l&&"AspectFill"===this._contentMode){var f=t.height/n.height,h=(n.width*f-n.width)/2+(t.width-n.width*f)/2,p=(n.height*f-n.height)/2;this._drawingCanvas.style.webkitTransform=this._drawingCanvas.style.transform="matrix("+f+", 0.0, 0.0, "+f+", "+h+", "+p+")"}}this._globalTransform=void 0}}if(void 0===this._drawingCanvas||!0===e){var m=1,y=1,v=0,g=0,b={width:void 0!==this._container?this._container.clientWidth:0,height:void 0!==this._container?this._container.clientHeight:0},w=this._videoItem.videoSize;if("Fill"===this._contentMode)m=b.width/w.width,y=b.height/w.height;else if("AspectFit"===this._contentMode||"AspectFill"===this._contentMode){var _=w.width/w.height,x=b.width/b.height;_>=x&&"AspectFit"===this._contentMode||x>=_&&"AspectFill"===this._contentMode?(m=y=b.width/w.width,g=(b.height-w.height*y)/2):(x>_&&"AspectFit"===this._contentMode||_>x&&"AspectFill"===this._contentMode)&&(m=y=b.height/w.height,v=(b.width-w.width*m)/2)}this._globalTransform={a:m,b:0,c:0,d:y,tx:v,ty:g}}}},{key:"_update",value:function(){void 0!==this._videoItem&&(this._resize(),this._renderer.drawFrame(this._currentFrame),this._renderer.playAudio(this._currentFrame))}}]),e}()},function(e,t,n){"use strict";var i=n(13),r=n(63),o=n(66);e.exports={Parser:i.Parser,Player:r.Player,autoload:o.AutoLoader.autoload},o.AutoLoader.autoload()},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n=t.endFrame&&(n=!0,t.player.stop(t.playID))}),n&&(this._soundsQueue=this._soundsQueue.filter(function(t){return e=0){var o=t.substr(1).trim().split(" ");n.drawBezierElement(e,i,r,o)}}}),t._styles&&t._styles.fill&&e.fill(),t._styles&&t._styles.stroke&&e.stroke(),e.restore()}},{key:"drawBezierElement",value:function(e,t,n,i){switch(n){case"M":t.x=Number(i[0]),t.y=Number(i[1]),e.moveTo(t.x,t.y);break;case"m":t.x+=Number(i[0]),t.y+=Number(i[1]),e.moveTo(t.x,t.y);break;case"L":t.x=Number(i[0]),t.y=Number(i[1]),e.lineTo(t.x,t.y);break;case"l":t.x+=Number(i[0]),t.y+=Number(i[1]),e.lineTo(t.x,t.y);break;case"H":t.x=Number(i[0]),e.lineTo(t.x,t.y);break;case"h":t.x+=Number(i[0]),e.lineTo(t.x,t.y);break;case"V":t.y=Number(i[0]),e.lineTo(t.x,t.y);break;case"v":t.y+=Number(i[0]),e.lineTo(t.x,t.y);break;case"C":t.x1=Number(i[0]),t.y1=Number(i[1]),t.x2=Number(i[2]),t.y2=Number(i[3]),t.x=Number(i[4]),t.y=Number(i[5]),e.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y);break;case"c":t.x1=t.x+Number(i[0]),t.y1=t.y+Number(i[1]),t.x2=t.x+Number(i[2]),t.y2=t.y+Number(i[3]),t.x+=Number(i[4]),t.y+=Number(i[5]),e.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y);break;case"S":t.x1&&t.y1&&t.x2&&t.y2?(t.x1=t.x-t.x2+t.x,t.y1=t.y-t.y2+t.y,t.x2=Number(i[0]),t.y2=Number(i[1]),t.x=Number(i[2]),t.y=Number(i[3]),e.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y)):(t.x1=Number(i[0]),t.y1=Number(i[1]),t.x=Number(i[2]),t.y=Number(i[3]),e.quadraticCurveTo(t.x1,t.y1,t.x,t.y));break;case"s":t.x1&&t.y1&&t.x2&&t.y2?(t.x1=t.x-t.x2+t.x,t.y1=t.y-t.y2+t.y,t.x2=t.x+Number(i[0]),t.y2=t.y+Number(i[1]),t.x+=Number(i[2]),t.y+=Number(i[3]),e.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y)):(t.x1=t.x+Number(i[0]),t.y1=t.y+Number(i[1]),t.x+=Number(i[2]),t.y+=Number(i[3]),e.quadraticCurveTo(t.x1,t.y1,t.x,t.y));break;case"Q":t.x1=Number(i[0]),t.y1=Number(i[1]),t.x=Number(i[2]),t.y=Number(i[3]),e.quadraticCurveTo(t.x1,t.y1,t.x,t.y);break;case"q":t.x1=t.x+Number(i[0]),t.y1=t.y+Number(i[1]),t.x+=Number(i[2]),t.y+=Number(i[3]),e.quadraticCurveTo(t.x1,t.y1,t.x,t.y);break;case"A":case"a":break;case"Z":case"z":e.closePath()}}},{key:"drawEllipse",value:function(e,t){e.save(),this.resetShapeStyles(e,t),void 0!==t._transform&&null!==t._transform&&e.transform(t._transform.a,t._transform.b,t._transform.c,t._transform.d,t._transform.tx,t._transform.ty);var n=t._x-t._radiusX,i=t._y-t._radiusY,r=2*t._radiusX,o=2*t._radiusY,a=r/2*.5522848,s=o/2*.5522848,l=n+r,u=i+o,c=n+r/2,d=i+o/2;e.beginPath(),e.moveTo(n,d),e.bezierCurveTo(n,d-s,c-a,i,c,i),e.bezierCurveTo(c+a,i,l,d-s,l,d),e.bezierCurveTo(l,d+s,c+a,u,c,u),e.bezierCurveTo(c-a,u,n,d+s,n,d),t._styles&&t._styles.fill&&e.fill(),t._styles&&t._styles.stroke&&e.stroke(),e.restore()}},{key:"drawRect",value:function(e,t){e.save(),this.resetShapeStyles(e,t),void 0!==t._transform&&null!==t._transform&&e.transform(t._transform.a,t._transform.b,t._transform.c,t._transform.d,t._transform.tx,t._transform.ty);var n=t._x,i=t._y,r=t._width,o=t._height,a=t._cornerRadius;2*a>r&&(a=r/2),2*a>o&&(a=o/2),e.beginPath(),e.moveTo(n+a,i),e.arcTo(n+r,i,n+r,i+o,a),e.arcTo(n+r,i+o,n,i+o,a),e.arcTo(n,i+o,n,i,a),e.arcTo(n,i,n+r,i,a),e.closePath(),t._styles&&t._styles.fill&&e.fill(),t._styles&&t._styles.stroke&&e.stroke(),e.restore()}}]),e}()},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.AutoLoader=void 0;var r=n(13),o=n(63),a=t.AutoLoader=function s(){i(this,s)};a.sharedParser=new r.Parser,a.autoload=function(e,t){if("undefined"!=typeof window&&"undefined"!=typeof document){var n=t||a.sharedParser;if(e){if(("CANVAS"===e.tagName||"DIV"===e.tagName)&&e.attributes.src&&e.attributes.src.value.indexOf(".svga")===e.attributes.src.value.length-5){var i=e.attributes.src.value,r=new o.Player(e);n.load(i,function(t){if(e.attributes.loops){var n=parseFloat(e.attributes.loops.value)||0;r.loops=n}if(e.attributes.clearsAfterStop){var i=!("false"===e.attributes.clearsAfterStop.value);r.clearsAfterStop=i}r.setVideoItem(t),r.startAnimation()}),e.player=r}}else for(var s=document.querySelectorAll('[src$=".svga"]'),l=0;l3){var t="#rank-badge-"+e.yyNum,n=new r.Player(t),i=new r.Parser;i.load("//web.yystatic.com/public/common/images/recruit_svga.svga",function(e){n.setVideoItem(e),n.startAnimation()})}});var h=u.find(c.GUILD_LIST_MAIN),m=u.find(c.GUILD_LIST_SCROLLBAR),y=e(h,{scrollbar:m,bubble:!1,onresize:function(e){1==e?u.addClass(d.NO_SCROLL):u.removeClass(d.NO_SCROLL)}});p.ctrls.push(y),p.resize(),o(c.GUILD_LIST_LAZY_IMG).lazyload({placeholder:"//web.yystatic.com/project/yycom/pc/images/default_portrait-1aa31b0e09.png",container:c.GUILD_LIST_LAZY_CONTAINER,failure_limit:1/0,load:function(){o(this).css("visibility","visible")}})}}catch(v){console.error("fetch HOTLIST fail")}}),o(c.ANCHOR_LIST).each(function(t,n){var i=o(n).find(c.ANCHOR_LIST_MAIN),r=o(n).find(c.ANCHOR_LIST_SCROLLBAR),a=e(i,{scrollbar:r,bubble:!1,onresize:function(e){1==e?o(n).addClass(d.NO_SCROLL):o(n).removeClass(d.NO_SCROLL)}});p.ctrls.push(a),o(c.ANCHOR_LIST_LAZY_IMG).lazyload({placeholder:"",container:c.ANCHOR_LIST_LAZY_CONTAINER,failure_limit:1/0,load:function(){o(this).css("visibility","visible")}})}),o(a).find(c.HOTLIST_TABS).on("mouseenter",t.debounce(function(){o(this).addClass(d.HOTLIST_TAB_CURRENT).siblings().removeClass(d.HOTLIST_TAB_CURRENT);var e=o(this).data("val");"s1"==e?o(a).addClass(d.HOTLIST_SHOW_S1).removeClass(d.HOTLIST_SHOW_S2):"s2"==e&&o(a).addClass(d.HOTLIST_SHOW_S2).removeClass(d.HOTLIST_SHOW_S1),p.resize(),setTimeout(function(){o(window).trigger("resize")},100)},200))}),o(c.PAGINATOR_AREA).each(function(){if(window.pageInfo&&window.pageInfo.pageBar&&window.pageInfo.position&&window.pageInfo.tmpl){var e=o(this),i=e.find(c.PAGINATOR_TABS),r=t.request.hash("tab")||0;(isNaN(r)||r>=i.length)&&(r=0);var a,s=function(t,i){var r=new n({type:window.pageInfo.position,listTpl:window.pageInfo.tmpl,container:c.PAGE_CONTAINER,$ulBox:e.find(c.PAGINATOR_CNT),pInfo:t}),o=e.data("max")||0,a=0,s=function(t){e.data("max",t),e.addClass("w-video-module-paginator--size-"+a)};i?r.toPage(1).then(function(n){t.totalPages=Math.ceil(n.data.totalCount/t.pageSize),a=n.data.data.length,a>o&&s(a),e.find(c.PAGINATOR_LEAF).paginator({totalrecords:t.totalPages||0,recordsperpage:1,length:5,initval:r.pageIndex,display:"single",onchange:r.toPage.bind(r)}).show()}):(e.find(c.PAGINATOR_LEAF).paginator({totalrecords:t.totalPages||0,recordsperpage:1,length:5,initval:r.pageIndex,display:"single",onchange:r.toPage.bind(r)}).show(),a=e.find(c.PAGINATOR_ITEMS).length,a>o&&s(a))},l=i.eq(r);a=0==r?window.pageInfo.pageBar:t.extend({},window.pageInfo.pageBar,{biz:l.data("biz"),moduleId:l.data("module-id"),subBiz:l.data("subbiz")}),l.addClass(d.PAGINATOR_TAB_CURRENT).siblings().removeClass(d.PAGINATOR_TAB_CURRENT),s(a,0!=r),i.on("click",function(){var e=o(this);e.hasClass(d.PAGINATOR_TAB_CURRENT)||"_blank"!=e.attr("target")&&(e.addClass(d.PAGINATOR_TAB_CURRENT).siblings().removeClass(d.PAGINATOR_TAB_CURRENT),a=t.extend({},a,{biz:e.data("biz"),moduleId:e.data("moduleid"),subBiz:e.data("subbiz")}),s(a,!0))})}}),o(c.CATALOG_AREA).each(function(){var e=o(this),t=e.find(c.CATALOG_CNT);e.find(c.CATALOG_TABS).on("click",function(){if(!o(this).hasClass(d.CATALOG_TAB_CURRENT)){o(this).addClass(d.CATALOG_TAB_CURRENT).siblings().removeClass(d.CATALOG_TAB_CURRENT);var e=o(this).data("id");e&&o.ajax({url:f.CATALOG_LIST.replace("{$id}",e),dataType:"json"}).then(function(e){t.html(i(u.CATALOG,{data:e.data||[]}))})}})}),s&&s.eventInit(y.statEl,{onsend:function(e){return e.uid=window.user.getUidSync(),y.onStatistic?y.onStatistic(e):e}}),o(c.VIDEO_LIST_COVER).on("click",function(){var e=o(this).parents(c.VIDEO_LIST_COLUMN),t=y.onStatisticEvent({more_info:{module:"5",moduleid:e.data("stat-bak3")}}),n=o(this);return(n.find(".tag").length||n.find(".short-red__tag").length||n.find(".long-red__tag").length||n.find(".survival__tag").length||n.find(".guess-icon__tag").length||n.find(".drawLots-icon").length)&&(n.find(".tag").length&&"tag"==n.find(".tag").eq(0).attr("class")&&a.set({eventid:"20014315",act_type:9007,more_info:{web_type:"yy.com=YY.COM"}}),(n.find(".short-red__tag").length||n.find(".long-red__tag").length)&&a.set({eventid:"20014315",act_type:9004,more_info:{web_type:"yy.com=YY.COM"}}),n.find(".survival__tag").length&&a.set({eventid:"20014315",act_type:9003,more_info:{web_type:"yy.com=YY.COM"}}),n.find(".guess-icon__tag").length&&a.set({eventid:"20014315",act_type:9005,more_info:{web_type:"yy.com=YY.COM"}}),n.find(".drawLots-icon").length&&a.set({eventid:"20014315",act_type:9006,more_info:{web_type:"yy.com=YY.COM"}})),t&&a.set(t)}),o(c.VIDEO_LIST_TITLE).on("click",function(){var e=o(this).parents(c.VIDEO_LIST_COLUMN),t=y.onStatisticEvent({more_info:{module:"5",moduleid:e.data("stat-bak3")}});return t&&a.set(t)}),o(c.PARTNEWS_A).on("click",function(){var e=o(this).parents(c.VIDEO_LIST_COLUMN),t=y.onStatisticEvent({more_info:{module:"9",moduleid:e.data("stat-bak3")}});return t&&a.set(t)}),o(c.LIVE_PREVIEW_RESER_BTN).on("click",function(){if(!o(this).hasClass("done")){var e=y.onStatisticEvent({more_info:{module:"10",moduleid:o(this).parents(c.VIDEO_LIST_COLUMN).attr("data-stat-bak3")}});return e&&a.set(e)}}),o(c.TAGLIST_A).on("click",function(){if(!/^javascript/.test(o(this).attr("href"))){var e=y.onStatisticEvent({more_info:{module:"11",moduleid:o(this).parents(c.VIDEO_MODULE).attr("data-stat-bak3")}});return a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.VIDEO_MODULE).data("stat-bak2"),module:"tag-list",moduleName:o(this).parents(c.VIDEO_MODULE).data("stat-bak3"),position:y.statPosition,clickType:"other",index:o(this).index()+1,content:o(this).attr("href")}}),e&&a.set(e)}}),o(c.PARTNEWS_A).on("click",function(){var e=y.onStatisticEvent({more_info:{module:"12",moduleid:o(this).parents(c.VIDEO_LIST_COLUMN).attr("data-stat-bak3")}});return e&&a.set(e)}),o(c.RANKLIST_LI).length&&o(c.RANKLIST_LINK).on("click",function(){var e=o(this).parents(c.COLUMN),t=y.onStatistic({eventid:o(y.statEl).attr("data-stat-eventid"),act_type:16,uid:window.user.getUidSync(),bak1:o(y.statEl).attr("data-stat-bak1"),bak2:e.attr("data-stat-bak2"),bak3:e.attr("data-stat-bak3")});return t&&s(t)}),o(c.BANNER_LINK).on("click",function(){var e=y.onStatisticEvent({more_info:{module:1,moduleid:o(this).parents(c.BANNER_TYPE01).attr("data-stat-bak2")}});return a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.BANNER_TYPE01).attr("data-stat-bak2"),module:"ad",clickType:"other",position:y.statPosition,content:o(this).attr("href")}}),e&&a.set(e)}),o(c.FOCUS_LINK).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.NEWS_AND_PREVIEW_AREA).data("stat-bak2"),module:"focus",moduleName:o(this).parents(c.NEWS_AND_PREVIEW_AREA).data("stat-bak3"),position:y.statPosition,clickType:"other",index:o(this).index()+1,content:o(this).attr("href")}})}),o(c.NEWS_LINK).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(".w-video-module-news-and-preview").data("stat-bak2"),moduleName:o(this).parents(".w-video-module-news-and-preview").data("stat-bak3"),module:"news",position:y.statPosition,clickType:"other",index:o(this).index()+1,content:o(this).attr("href")}})}),o(c.TAGS_LINK).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.NEWS_AND_PREVIEW_AREA).data("stat-bak2"),moduleName:o(this).parents(c.NEWS_AND_PREVIEW_AREA).data("stat-bak3"),module:"tag",position:y.statPosition,clickType:"other",index:o(this).index()+1,content:o(this).attr("href")
}})}),o(c.LIVE_PREVIEW_RESER_BTN).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(".w-video-module-column").data("stat-bak2"),moduleName:o(this).parents(".w-video-module-column").data("stat-bak3"),module:"preview-click",position:y.statPosition,clickType:"other",index:o(this).index()+1,content:o(this).data("eventid")}})}),o(c.ANCHOR_LIST_LINK).on("click",function(){var e=o(this).parents(c.VIDEO_LIST_COLUMN);a.set({eventid:"20015403",act_type:1,more_info:{moduleid:e.data("stat-bak2"),moduleName:e.data("stat-bak3"),module:"anchor-rank",position:y.statPosition,clickType:"other",uid:o(this).data("uid"),index:o(this).index()+1,content:o(this).attr("href")}})}),o(c.VIDEO_LIST_LINK).on("click",function(){var e=o(this).parents(c.VIDEO_LIST_COLUMN);a.set({eventid:"20015403",act_type:1,more_info:{moduleid:e.data("stat-bak2"),moduleName:e.data("stat-bak3"),module:"video-list",position:y.statPosition,clickType:o(this).hasClass("avt")?"avatar":"video",index:o(this).parents("li").index()+1,biz:o(this).parents("li").data("biz"),sid:o(this).parents("li").data("sid"),pid:o(this).parents("li").data("pid"),content:o(this).attr("href")}})}),o(c.ANCHOR_LIST_LINK).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak3"),module:"anchor-mini-list",position:y.statPosition,clickType:"other",index:o(this).index()+1,content:o(this).attr("href")}})}),o(c.MORE_LINK).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak3"),module:"more",position:y.statPosition,clickType:"other",index:0,content:o(this).attr("href")}})}),o(c.COLUMN_TITLE_LINK).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak3"),module:"title",position:y.statPosition,clickType:"other",index:0,content:o(this).attr("href")}})}),o(c.STATISTICS_CATALOG_AND_ANCHOR_CATALOG_ITEMS).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak3"),module:0,position:o(this).data("index"),clickType:"other",index:0,content:o(this).attr("href")}})}),o(c.STATISTICS_CATALOG_AND_ANCHOR_ANCHOR_ITEMS).on("click",function(){a.set({eventid:"20015403",act_type:1,more_info:{moduleid:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak2"),moduleName:o(this).parents(c.VIDEO_LIST_COLUMN).data("stat-bak3"),module:1,position:o(this).data("index"),clickType:"other",index:0,content:o(this).attr("href")}})})}};return p}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("uuidv4",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.uuidv4=e()}}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return r(n?n:e)},c,c.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;ao;++o)r[o]=(o+256).toString(16).substr(1);t.exports=i},{}],2:[function(e,t,n){(function(e){var n,i=e.crypto||e.msCrypto;if(i&&i.getRandomValues){var r=new Uint8Array(16);n=function(){return i.getRandomValues(r),r}}if(!n){var o=new Array(16);n=function(){for(var e,t=0;16>t;t++)0===(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){function i(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var a=e.random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;16>s;++s)t[i+s]=a[s];return t||o(a)}var r=e("./lib/rng"),o=e("./lib/bytesToUuid");t.exports=i},{"./lib/bytesToUuid":1,"./lib/rng":2}]},{},[3])(3)}),define("adStatistics",["util","uuidv4"],function(e,t){var n=window.jQuery||window.$,i=function(){};return i.hiddoPost=function(t){var n="";"string"!=typeof t.moreinfo&&(n=JSON.stringify(t.moreinfo));var i=["//ylog.hiido.com/j.gif","?act=websdkprotocol","&time="+(new Date).getTime(),"&sys=4","&eventid=20015359","&entran_id="+encodeURIComponent(t.entranID),"&moreinfo="+encodeURIComponent(n),"&act_type="+t.actType];i.push("&hiido_ui="+(e.cookies.get("hiido_ui")||"")),i.push("&uid="+(e.cookies.get("uid")||e.cookies.get("yyuid")||"")),t.sid&&i.push("&sid="+t.sid),t.hostid&&i.push("&hostid="+t.hostid),t.tempid&&i.push("&tempid="+t.tempid);var r=new Image(1,1);r.src=i.join(""),r.onload=function(){}},i.getReportInfo=function(e){var i=["//ysad.yy.com/getAdConfig","yy","2",(new Date).getTime()+"",t()];return n.ajax({method:"POST",url:i.join("/"),dataType:"jsonp"})},i.thirdPost=function(e){var t=new Image(1,1);t.src=e,t.onload=function(){}},i}),function(e,t,n,i){var r={content:"body",scrollTarget:"html",init:function(){if(n.elementsFromPoint){var t=this;t.topTargetOffset=!1,t.topTarget=null,t.timeId=0,t.eleBox=e(t.content)[0],n.elementsFromPoint||(n.elementsFromPoint=n.msElementsFromPoint),t.addEventListener()}},addEventListener:function(){var n=this;e(t).resize(function(){if(n.topTargetOffset!==!1){var t=e("html")[0].scrollTop,i=Math.round(n.eleBox.getBoundingClientRect().top)-Math.round(n.topTarget.getBoundingClientRect().top);e("html")[0].scrollTop=t-i-n.topTargetOffset}}),e(t).scroll(function(){clearTimeout(n.timeId),n.timeId=setTimeout(n.tsLastPos(),200)})},tsLastPos:function(){var t=this,i=t.eleBox.getBoundingClientRect(),r=i.left+t.eleBox.clientWidth/2,o=(e(".w-head").height()||60)+1;return t.topTarget=n.elementsFromPoint(r,o)[0],t.topTarget!=t.eleBox&&t.topTarget?void(t.topTargetOffset=Math.round(t.topTarget.getBoundingClientRect().top-i.top)):void(t.topTargetOffset=!1)}};"undefined"!=typeof define&&define.amd?define("scrollfix",[],function(){return r}):"undefined"!=typeof module&&module.exports?module.exports=r:t.scrollFix=r}($,window,document),define("sentry",[],function(){var e={init:function(e){var t=window.Raven;t?(t.config("https://d4cacfc010eb42fc84421c18ec42b7e3@sentry.yy.com/78").install(),t.context(e)):e()}};return e}),require(["util","lazyload","flashPlayer","viewPlayer","attentionOrder","wVideoModule","adStatistics","scrollfix","sentry"],function(e,t,n,i,r,o,a,s,l){var u=window.statistics,c=window.statisticEvent,d="20014321",f="index",h=!1,p=!h;h&&$("html").addClass("page-gray"),window.headLoader.onReady(function(){l.init(function(){$(function(){var t=$("#data-placeholder").html();$("#box-placeholder").html(t),o.init({statEl:".p-index-body",statPosition:"index",onStatisticEvent:function(e){return e.eventid=d,e.uid=window.user.getUidSync(),e.more_info.tabid=f,e},onStatistic:function(e){return e}}),r.init($(".slideshow-video"),".order-btn"),r.init($(".preBox-content"),".order-btn"),r.init($(".w-video-module-livepreview-cnt-main"),".reser-btn"),$(".lazy").lazyload({placeholder:"",failure_limit:1/0,load:function(){$(this).css("visibility","visible")}}),$(window).trigger("resize"),p&&n.init({target:"#flashBox",listTarget:"#flashSide"}),i.init(),window.yyloader("#sideToolLoader"),u({eventid:$(".p-index-body").attr("data-stat-eventid"),act_type:1,parm1:window.header.ref}),c.set({eventid:"20014313",more_info:{is_sid:"0"}}),c.set({eventid:"20015403",act_type:0,more_info:{position:f}}),$(".p-index-head-recommend .w-video-module-videolist a").on("click",function(){c.set({eventid:d,more_info:{module:"8",moduleid:$(this).parents(".p-index-head-recommend-col").attr("data-stat-bak3"),tabid:f}}),c.set({eventid:"20015403",act_type:1,more_info:{moduleid:"1001",module:"index-recommend-bottom",position:"index",clickType:"video",index:$(this).data("stat-parm1"),sid:$(this).data("stat-sid"),biz:$(this).data("stat-biz"),content:this.href,moduleName:$(this).parents(".p-index-head-recommend-col").data("stat-bak3"),moduleIndex:$(this).parents(".p-index-head-recommend-col").data("index")}})}),$(".p-index-head-recommend .h-tl a").on("click",function(){c.set({eventid:"20015403",act_type:1,more_info:{moduleid:"1001",module:"index-recommend-bottom",index:$(this).parents(".p-index-head-recommend-col").index()+1,moduleName:$(this).parents(".p-index-head-recommend-col").data("stat-bak3"),position:"index",clickType:"title",biz:$(this).parents(".p-index-head-recommend-col").data("biz"),content:this.href}})}),a.getReportInfo().then(function(t){var n=t.data||[];$(".stat-ad").each(function(){var t=this,i=$(this).data("stat-entranid"),r=$(this).data("stat-position"),o=$(this).data("stat-sid")||$(this).data("sid"),s=$(this).data("stat-hostid"),l=e.getParameterByName("tempId",$(this).attr("href")||$(this).data("url")),u=null,c=0,d=0,f=0;i&&(u=n.filter(function(e){return e.uniqueId==i})[0],u&&(c=u.reportStartTime,d=u.reportEndTime,f=(new Date).getTime(),f>c&&d>f&&(a.thirdPost(u.reportUrl),a.hiddoPost({entranID:i,actType:1,moreinfo:{position:r},sid:o,hostid:s,tempid:l}),$(t).click(function(){a.hiddoPost({entranID:i,actType:2,moreinfo:{position:r},sid:o,hostid:s,tempid:l})}))))}),function(){var e=$("#wHeadSearch"),t=$("#wHeadSearchForm"),i=e.data("stat-entranid"),r="web-search",o=null,s=0,l=0,u=0;i&&(o=n.filter(function(e){return e.uniqueId==i})[0],o&&(s=o.reportStartTime,l=o.reportEndTime,u=(new Date).getTime(),u>s&&l>u&&(a.thirdPost(o.reportUrl),a.hiddoPost({entranID:i,actType:1,moreinfo:{position:r}}),t.submit(function(){a.hiddoPost({entranID:i,actType:2,moreinfo:{position:r}})}))))}()}),s.init(),$(".bg-link a").on("click",function(){c.set({act_type:1,eventid:"20015403",more_info:{moduleid:"1001",module:"index-recommend-bg",position:"index",clickType:"other",index:0,content:this.href}})})})})})}),define("components/p-index/p-index.js",function(){});