/**************************************************************************** * * LiveAct(R) PRO * Runtime Library * * (c) 2016 CRI Middleware Co., Ltd. * Version : 1.99.674.0 Advanced Analytics * ****************************************************************************/ "use strict"; var CriLaVersion={MAJOR:1,MINOR:99,BUILD:674,REVISION:0};Object.freeze(CriLaVersion);function CriGrxMath(){}CriGrxMath.lerp=function(b,a,c){return(b+(a-b)*c)};CriGrxMath.degreeToRadian=function(a){return a*(Math.PI/180)};CriGrxMath.clamp=function(b,a,c){return Math.min(a,Math.max(b,c))};function CriGrxRealNumberOperator(a){this.eps=a==null?CriGrxRealNumberOperator.EPS:a}CriGrxRealNumberOperator.EPS=0.000001;CriGrxRealNumberOperator.eq=function(f,d,c){var e=c==null?CriGrxRealNumberOperator.EPS:c;return Math.abs(f-d)0)?(2/c):0;f=d.x*p;m=d.y*p;j=d.z*p;i=d.w*f;h=d.w*m;g=d.w*j;b=d.x*f;o=d.x*m;n=d.x*j;l=d.y*m;k=d.y*j;e=d.z*j;this.m00=1-(l+e);this.m10=o+g;this.m20=n-h;this.m01=o-g;this.m11=1-(b+e);this.m21=k+i;this.m02=n+h;this.m12=k-i;this.m22=1-(b+l);this.m03=this.m13=this.m23=0;this.m30=this.m31=this.m32=0;this.m33=1;return this};a.transpose=function(h){var n=this.m01;var l=this.m02;var j=this.m03;var g=this.m10;var f=this.m12;var e=this.m13;var d=this.m20;var c=this.m21;var b=this.m23;var m=this.m30;var k=this.m31;var i=this.m32;this.m01=g;this.m02=d;this.m03=m;this.m10=n;this.m12=c;this.m13=k;this.m20=l;this.m21=f;this.m23=i;this.m30=j;this.m31=e;this.m32=b};a.inverse=function(){var b=[[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]];var j=new CriGrxMatrix();j.setIdentity();function i(n,m,l){n[0][0]=m.m00;n[0][1]=m.m01;n[0][2]=m.m02;n[0][3]=m.m03;n[1][0]=m.m10;n[1][1]=m.m11;n[1][2]=m.m12;n[1][3]=m.m13;n[2][0]=m.m20;n[2][1]=m.m21;n[2][2]=m.m22;n[2][3]=m.m23;n[3][0]=m.m30;n[3][1]=m.m31;n[3][2]=m.m32;n[3][3]=m.m33;n[0][4]=l.m00;n[0][5]=l.m01;n[0][6]=l.m02;n[0][7]=l.m03;n[1][4]=l.m10;n[1][5]=l.m11;n[1][6]=l.m12;n[1][7]=l.m13;n[2][4]=l.m20;n[2][5]=l.m21;n[2][6]=l.m22;n[2][7]=l.m23;n[3][4]=l.m30;n[3][5]=l.m31;n[3][6]=l.m32;n[3][7]=l.m33}i(b,this,j);for(var h=0;h<4;h++){var k=b[h][h];if(k!=1){if(k==0){var c;for(c=h+1;c<4;c++){if(b[c][h]!=0){break}}if(c==4){return j}var f=b[h];b[h]=b[c];b[c]=f;k=b[h][h]}var e=1/k;for(var d=h;d<8;d++){b[h][d]*=e}}for(var c=0;c<4;c++){if(c==h){continue}var e=b[c][h];if(e==0){continue}for(var d=h;d<8;d++){b[c][d]-=(b[h][d]*e)}}}var g=new CriGrxMatrix();g.m00=b[0][4];g.m01=b[0][5];g.m02=b[0][6];g.m03=b[0][7];g.m10=b[1][4];g.m11=b[1][5];g.m12=b[1][6];g.m13=b[1][7];g.m20=b[2][4];g.m21=b[2][5];g.m22=b[2][6];g.m23=b[2][7];g.m30=b[3][4];g.m31=b[3][5];g.m32=b[3][6];g.m33=b[3][7];this.copyMatrix(g)};a.copy=function(){var b=new CriGrxMatrix();b.copyMatrix(this);return b};a.copyMatrix=function(b){this.m00=b.m00;this.m01=b.m01;this.m02=b.m02;this.m03=b.m03;this.m10=b.m10;this.m11=b.m11;this.m12=b.m12;this.m13=b.m13;this.m20=b.m20;this.m21=b.m21;this.m22=b.m22;this.m23=b.m23;this.m30=b.m30;this.m31=b.m31;this.m32=b.m32;this.m33=b.m33};a.determinant=function(){var b=((this.m00*this.m11)-(this.m10*this.m01))*((this.m22*this.m33)-(this.m32*this.m23))-((this.m00*this.m21)-(this.m20*this.m01))*((this.m12*this.m33)-(this.m32*this.m13))+((this.m00*this.m31)-(this.m30*this.m01))*((this.m12*this.m23)-(this.m22*this.m13))+((this.m10*this.m21)-(this.m20*this.m11))*((this.m02*this.m33)-(this.m32*this.m03))-((this.m10*this.m31)-(this.m30*this.m11))*((this.m02*this.m23)-(this.m22*this.m03))+((this.m20*this.m31)-(this.m30*this.m21))*((this.m02*this.m13)-(this.m12*this.m03));return b};a.determinant3x3=function(){var b=this.m00*((this.m11*this.m22)-(this.m12*this.m21))+this.m01*((this.m12*this.m20)-(this.m10*this.m22))+this.m02*((this.m10*this.m21)-(this.m11*this.m20));return b};a.multiplyMatrix=function(c){var d=new CriGrxMatrix();d.m00=this.m00*c.m00+this.m01*c.m10+this.m02*c.m20+this.m03*c.m30;d.m01=this.m00*c.m01+this.m01*c.m11+this.m02*c.m21+this.m03*c.m31;d.m02=this.m00*c.m02+this.m01*c.m12+this.m02*c.m22+this.m03*c.m32;d.m03=this.m00*c.m03+this.m01*c.m13+this.m02*c.m23+this.m03*c.m33;d.m10=this.m10*c.m00+this.m11*c.m10+this.m12*c.m20+this.m13*c.m30;d.m11=this.m10*c.m01+this.m11*c.m11+this.m12*c.m21+this.m13*c.m31;d.m12=this.m10*c.m02+this.m11*c.m12+this.m12*c.m22+this.m13*c.m32;d.m13=this.m10*c.m03+this.m11*c.m13+this.m12*c.m23+this.m13*c.m33;d.m20=this.m20*c.m00+this.m21*c.m10+this.m22*c.m20+this.m23*c.m30;d.m21=this.m20*c.m01+this.m21*c.m11+this.m22*c.m21+this.m23*c.m31;d.m22=this.m20*c.m02+this.m21*c.m12+this.m22*c.m22+this.m23*c.m32;d.m23=this.m20*c.m03+this.m21*c.m13+this.m22*c.m23+this.m23*c.m33;d.m30=this.m30*c.m00+this.m31*c.m10+this.m32*c.m20+this.m33*c.m30;d.m31=this.m30*c.m01+this.m31*c.m11+this.m32*c.m21+this.m33*c.m31;d.m32=this.m30*c.m02+this.m31*c.m12+this.m32*c.m22+this.m33*c.m32;d.m33=this.m30*c.m03+this.m31*c.m13+this.m32*c.m23+this.m33*c.m33;return d};a.multiply=function(b){var c=this.multiplyMatrix(b);var b=this;b.m00=c.m00;b.m01=c.m01;b.m02=c.m02;b.m03=c.m03;b.m10=c.m10;b.m11=c.m11;b.m12=c.m12;b.m13=c.m13;b.m20=c.m20;b.m21=c.m21;b.m22=c.m22;b.m23=c.m23;b.m30=c.m30;b.m31=c.m31;b.m32=c.m32;b.m33=c.m33;return this};a.multiplyVector2=function(c){var d=new CriGrxVector2();d.x=this.m00*c.x+this.m10*c.y+this.m30;d.y=this.m01*c.x+this.m11*c.y+this.m31;return d};a.lookAtRH=function(h,g,b){var c=new CriGrxMatrix();var f,e,d;d=h.copy();d.sub(g);d.normalize();f=b.copy();f.cross(d);f.normalize();e=d.copy();e.cross(f);e.normalize();c.m00=f.x;c.m01=e.x;c.m02=d.x;c.m03=0;c.m10=f.y;c.m11=e.y;c.m12=d.y;c.m13=0;c.m20=f.z;c.m21=e.z;c.m22=d.z;c.m23=0;c.m30=0;c.m31=0;c.m32=0;c.m33=1;this.multiply(c);this.translateXYZ(-h.x,-h.y,-h.z);return this};a.setPerspectiveRH=function(h,d,e,i){var f=1/Math.tan(h*0.5);var b=f/d;var g=i/(i-e);var c=this;c.m00=b;c.m01=0;c.m02=0;c.m03=0;c.m10=0;c.m11=f;c.m12=0;c.m13=0;c.m20=0;c.m21=0;c.m22=-g;c.m23=-1;c.m30=0;c.m31=0;c.m32=-e*g;c.m33=0;return this}})(CriGrxMatrix.prototype);function criLaMg_getTransformMatrix(a,i,f,c,e){var n=new CriGrxMatrix();var j=new CriGrxMatrix();var d=new CriGrxMatrix();n.setIdentity();j.setIdentity();d.setIdentity();var b=new CriGrxMatrix();b.setIdentity();var k=new CriGrxMatrix();var o=new CriGrxMatrix();var l=new CriGrxMatrix();k.setIdentity();o.setIdentity();l.setIdentity();b.translateXY(a.x,a.y);var h=c.x*f.x;var g=c.y*f.y;o.translateXY(h,g);k.rotate(i);l.translateXY(-h,-g);j.translateXY(e.x*f.x,e.y*f.y);n.scaleXY(f.x,f.y);d.translateXY(-e.x,-e.y);var m=new CriGrxMatrix();m.setIdentity();m=d.multiplyMatrix(n);m=m.multiplyMatrix(j);m=m.multiplyMatrix(l);m=m.multiplyMatrix(k);m=m.multiplyMatrix(o);m=m.multiplyMatrix(b);return m}function criLaMg_getTransformInverseMatrix(a,i,f,c,e){var n=new CriGrxMatrix();var j=new CriGrxMatrix();var d=new CriGrxMatrix();n.setIdentity();j.setIdentity();d.setIdentity();var b=new CriGrxMatrix();b.setIdentity();var k=new CriGrxMatrix();var o=new CriGrxMatrix();var l=new CriGrxMatrix();k.setIdentity();o.setIdentity();l.setIdentity();b.translateXY(-a.x,-a.y);var h=c.x*f.x;var g=c.y*f.y;o.translateXY(h,g);k.rotate(-i);l.translateXY(-h,-g);j.translateXY(e.x*1/f.x,e.y*1/f.y);n.scaleXY(1/f.x,1/f.y);d.translateXY(-e.x,-e.y);var m=new CriGrxMatrix();m.setIdentity();m=b.multiplyMatrix(l);m=m.multiplyMatrix(k);m=m.multiplyMatrix(o);m=m.multiplyMatrix(d);m=m.multiplyMatrix(n);m=m.multiplyMatrix(j);return m}function CriGrxQuat(){this.x=0;this.y=0;this.z=0;this.w=1}(function(a){a.setIdentity=function(){this.x=0;this.y=0;this.z=0;this.w=1};a.set=function(b,e,d,c){this.x=b;this.y=e;this.z=d;this.w=c};a.setAxisXYZ=function(b,h,f){var e=angle=-angle*0.5;var d=Math.sin(e);var g=Math.cos(e);this.x=d*axis_x;this.y=d*axis_y;this.z=d*axis_z;this.w=g;this.normalize()};a.setMatrix=function(f){var d=f.m00+f.m11+f.m22;var i;var g;var e;var j;if(d>=0){var k=Math.sqrt(d+1);j=k*0.5;k=0.5/k;i=(f.m21-f.m12)*k;g=(f.m02-f.m20)*k;e=(f.m10-f.m01)*k}else{var b=0;var c=f.m00;if(f.m11>f.m00){b=1;c=f.m11}if(f.m22>c){b=2}switch(b){case 0:k=Math.sqrt(f.m00-(f.m11+f.m22)+1);i=k*0.5;k=0.5/k;g=(f.m01+f.m10)*k;e=(f.m20+f.m02)*k;j=(f.m21-f.m12)*k;break;case 1:k=Math.sqrt(f.m11-(f.m22+f.m00)+1);g=k*0.5;k=0.5/k;e=(f.m12+f.m21)*k;i=(f.m01+f.m10)*k;j=(f.m02-f.m20)*k;break;case 2:k=Math.sqrt(f.m22-(f.m00+f.m11)+1);e=k*0.5;k=0.5/k;i=(f.m20+f.m02)*k;g=(f.m12+f.m21)*k;j=(f.m10-f.m01)*k;break}}this.x=i;this.y=g;this.z=e;this.w=j};a.setRotateAxis=function(d,e){var b,f;b=Math.sin(-e*0.5);f=Math.cos(-e*0.5);this.x=b*d.x;this.y=b*d.y;this.z=b*d.z;this.w=f;this.normalize();return this};a.setFromTo=function(e,d){var b=new CriGrxVector3();b=e.copy();b.cross(d);b.normalize();var c=e.dot(d);c=Math.acos(c);this.setRotateAxis(b,c)};a.getLength=function(){var b=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);return b};a.normalize=function(){var b=1/this.getLength();this.x*=b;this.y*=b;this.z*=b;this.w*=b}})(CriGrxQuat.prototype);var CriLaSeekStyle={ALL:"all",FORWARD:"forward",BACK:"back"};var CriUABrowser={Uninit:-1,IE:1,Edge:2,Chrome:3,Safari:4,Firefox:5,Other:-2};Object.freeze(CriUABrowser);var CriUAOS={Uninit:-1,Windows:1,macOS:2,iOS:3,Android:4,Other:-2};Object.freeze(CriUAOS);var CriUABrowserVersion={Uninit:-1,Unimplement:-2};Object.freeze(CriUABrowserVersion);var CriUAChecker={rawUA_:null,browser_:CriUABrowser.Uninit,os_:CriUAOS.Uninit,browserVer_:CriUABrowserVersion.Uninit};CriUAChecker.initialize_=function(){if(this.rawUA_==null){this.rawUA_=window.navigator.userAgent.toLowerCase()}};CriUAChecker.getBrowser=function(){this.initialize_();var b=this.browser_;if(b!=CriUABrowser.Uninit){return b}var a=this.rawUA_;b=CriUABrowser.Other;if(a.indexOf("msie")!=-1||a.indexOf("trident")!=-1){b=CriUABrowser.IE}else{if(a.indexOf("edge")!=-1||a.indexOf("edg")!=-1||a.indexOf("edgios")!=-1){b=CriUABrowser.Edge}else{if(a.indexOf("chrome")!=-1||a.indexOf("crios")!=-1){b=CriUABrowser.Chrome}else{if(a.indexOf("safari")!=-1){b=CriUABrowser.Safari}else{if(a.indexOf("firefox")!=-1){b=CriUABrowser.Firefox}}}}}this.browser_=b;return b};CriUAChecker.getOS=function(){this.initialize_();var b=this.os_;if(b!=CriUAOS.Uninit){return b}var a=this.rawUA_;b=CriUAOS.Other;if(a.indexOf("windows")!=-1){b=CriUAOS.Windows}else{if(a.indexOf("iphone")!=-1||a.indexOf("ipad")!=-1||a.indexOf("ipod")!=-1){b=CriUAOS.iOS}else{if(a.indexOf("mac os x")!=-1){b=CriUAOS.macOS}else{if(a.indexOf("android")!=-1){b=CriUAOS.Android}}}}this.os_=b;return b};CriUAChecker.isMobile=function(){var a=navigator.userAgent;return/(iPhone|iPod|iPad|Android)/.test(a)};CriUAChecker.isTablet=function(){var a=navigator.userAgent;if(a.indexOf("Android")!==-1){return a.indexOf("Mobile")===-1}else{return/(iPad|Tablet|kindle|silk)/.test(a)}};CriUAChecker.isSmallScreen=function(){var a=navigator.userAgent;return/(iPhone|iPod|Android)/.test(a)};CriUAChecker.getOSVersion=function(){this.initialize_();var f=this.os_;if(f==CriUAOS.Uninit){f=this.getOS()}function c(h){var g={"6.3":8.1,"10.0":10};if(h.length<1){return null}return h[1] in g?g[h[1]]:null}function e(g){if(g==null){return null}var i=String(g[2]).length;var h=parseFloat(parseInt(g[1],10)+parseInt(g[2],10)/Math.pow(10,i));return h}var d=this.rawUA_;var b=null;if(CriUAOS.Windows==f){var a=d.match(/windows nt (\d+\.\d+)/);b=c(a)}else{if(CriUAOS.macOS==f){var a=d.match(/os x (\d+)_(\d+)/);b=e(a)}else{if(CriUAOS.iOS==f){var a=d.match(/os (\d+)_(\d+)/);b=e(a)}else{if(CriUAOS.Android==f){b=parseFloat(d.slice(d.indexOf("android")+8))}else{}}}}return b};CriUAChecker.getBrowserVersion=function(){this.initialize_();var h=this.browserVer_;if(h!=CriUABrowserVersion.Uninit){return h}var e=this.rawUA_;h=CriUABrowserVersion.Unimplement;var d=this.getBrowser();var g=this.getOS();if(d==CriUABrowser.IE){h=e.match(/(msie\s|rv:)([\d\.]+)/)[2]}else{if(d==CriUABrowser.Chrome){var c=g===CriUAOS.iOS?"crios":"chrome";var f=new RegExp(c+"/([\\d.]+)");var b=e.match(f);if(b.length>=2){var a=b[1];h=a.split(".")[0]}}}this.browserVer_=h;return h};var CriTypeUtil={};CriTypeUtil.typeOf=function(b){var a=Object.prototype.toString.call(b).slice(8,-1);if(a==null){return undefined.toString()}return a};var CriUnitValue={};CriUnitValue.splitUnit=function(a,b){return CriUnitValue.splitUnitInt(a,b)};CriUnitValue.splitUnitInt=function(b,c){var a=CriUnitValue.splitUnitFloat(b,c);return[parseInt(a[0]),a[1]]};CriUnitValue.splitUnitFloat=function(d,f){var a="";if(f!=null){a=f}var c=d;if(CriTypeUtil.typeOf(d)==="String"){c=parseFloat(d);var b=d.split(/\d+/);var e=b[b.length-1];if(e!=""){a=e}}return[c,a]};CriUnitValue.parseAngleToRadian=function(a){var b=CriUnitValue.splitUnitFloat(a+"");var e=b[0]||0;var c=b[1]||"";var d=e;if(c){if(c==="deg"){d=CriGrxMath.degreeToRadian(e)}}return d};CriUnitValue.frameToSecond=function(a,b){return b/a};CriUnitValue.secondToFrame=function(b,a){return a*b};var CriLaHtmlCss={};(function(d){function a(i){var h=parseFloat(i);if(isNaN(h)){return 1}var g=CriUnitValue.splitUnitFloat(i);if(g[1]==="%"){h/=100}return h}d.getZoom=(function(){function h(j){var k="";if(j===document.documentElement){k=j.style.zoom}else{k=g(j)}return k}function g(j){return d.getComputedStyle(j).zoom}var i;switch(CriUAChecker.getBrowser()){case CriUABrowser.IE:case CriUABrowser.Edge:i=g;break;default:i=h;break}return function(j){var k=i(j);return a(k)}})();d.getHtmlZoom=function(){return d.getZoom(document.documentElement)};d.getTransform=function(j){var g=new CriGrxMatrix();g.setIdentity();var i=this.getComputedStyle(j).transform;var h=i.match(/matrix\((.+)\)/);if(h==null){var h=i.match(/matrix3d\((.+)\)/)}if(h!=null){var k=h[1];var l=k.split(",").map(function(m){m=m.trim();return Number(m)});if(l.length==6){g.scaleXY(l[0],l[3]);g.translateXY(l[4],l[5])}else{if(l.length==16){g.scaleXY(l[0],l[5]);g.translateXY(l[12],l[13])}}}return g};d.getTransformOrigin=function(i){var g={x:0,y:0};var j=this.getComputedStyle(i).transformOrigin;var h=j.match(/([0-9\\.]+)(px)? +([0-9\\.]+)(px)?/);if(h){g.x=Number(h[1]);g.y=Number(h[3])}return g};d.getTransformWithOrigin=(function(){return function(i){var h=d.getTransform(i);var g=d.getTransformOrigin(i);var j=new CriGrxMatrix();j.setIdentity();j.translateXY(-g.x,-g.y);j=j.multiplyMatrix(h);j.translateXY(g.x,g.y);return j}})();d.calcTotalTransformWithOrigin=(function(){function h(i){return i.parentElement}function g(i,k){var j=d.getTransformWithOrigin(k);return i.multiplyMatrix(j)}return function(i){var j=new CriGrxMatrix();j.setIdentity();return e(i,h,j,g)}})();d.isInViewPort=function(h){if(d.isAncestorFixed(h)){return true}var i=CriLaRectangle.createFromElement(h);var g=CriLaRectangle.createFromViewPort();return CriLaRectangle.collision(i,g)};d.isInvisible=function(j){if(!d.isInViewPort(j)){return true}var k=d.getElementWidthHeight(j);var h=k.getWidth();var l=k.getHeight();if(h===0||l===0){return true}var i=d.getComputedStyle(j);var g=i.visibility;if(g==="hidden"){return true}return false};d.addClassName=function(g,h){g.classList.add(h)};d.removeClassName=function(g,h){g.classList.remove(h)};d.toggleClassName=function(g,h){g.classList.toggle(h)};d.getComputedStyle=function(h,g){return h.currentStyle||document.defaultView.getComputedStyle(h,g)};d.setVisibility=function(h,g){g=Boolean(g);var i="liveact-player__element--invisible";if(g){h.classList.remove(i)}else{h.classList.add(i)}};d.getVisibility=function(g){var i="liveact-player__element--invisible";var h=g.classList.contains(i);return(h==false)};d.wrap=function(g,i){var h=g.parentNode;h.insertBefore(i,g);i.appendChild(g)};d.unwrap=function(g){var i=g.parentNode;var h=i.parentNode;h.insertBefore(g,i);h.removeChild(i)};d.isFixed=function(g){return d.getComputedStyle(g).position==="fixed"};d.isAncestorFixed=(function(){function g(h){return h.parentElement}return function(h){return b(h,g,d.isFixed)}})();function c(j,g,i){for(var h=j;h;h=g(h)){i(h)}}function e(k,h,j,g){var i=j;c(k,h,function(l){i=g(i,l)});return i}function b(j,h,g){for(var i=j;i;i=h(i)){if(g(i)){return true}}return false}function f(h,g){return h*d.getZoom(g)}d.calcTotalZoom=(function(){function g(j){return d.isFixed(j)?null:j.parentElement}function i(j){return j.parentElement}var h=CriUAChecker.getBrowser()===CriUABrowser.IE?g:i;return function(j){return e(j,h,1,f)}})();d.getElementPosition=(function(){function m(p){var o=p.parentElement;if(o==null){return null}if(o.offsetParent!==p.offsetParent){return null}return o}function j(o){return o.offsetParent}function n(q,p){var o=p.parentElement;return o===q?null:o}function h(r,q){var p=false;var s={x:0,y:0};c(r,j,function(t){c(t,n.bind(null,j(t)),function(w){var v=d.getTransformWithOrigin(w);var u=v.multiplyVector2(s);s.x=u.x;s.y=u.y});q(s,t,p);if(d.isFixed(t)){p=true}});if(p){var o=CriLaRectangle.createFromViewPort();s.x+=o.left;s.y+=o.top}return s}function i(r,q,o){if(!o){r.x+=q.offsetLeft;r.y+=q.offsetTop}var p=e(q,m,1,f);r.x*=p;r.y*=p}function g(q,p,o){if(!o){q.x+=p.offsetLeft;q.y+=p.offsetTop}}function l(q,p,o){if(!o){c(p,m,function(t){q.x+=t.offsetLeft;q.y+=t.offsetTop;var r=t.parentElement;if(r){if(t.offsetParent===r.offsetParent){q.x-=r.offsetLeft;q.y-=r.offsetTop}var s=d.getZoom(r);q.x*=s;q.y*=s}})}}var k;switch(CriUAChecker.getBrowser()){case CriUABrowser.Edge:k=g;break;case CriUABrowser.IE:k=l;break;default:k=i;break}return function(o){return h(o,k)}})();d.getElementWidthHeight=function(i){var h=d.calcTotalZoom(i);var g=d.calcTotalTransformWithOrigin(i);return CriLaRectangle.createFromXYWH(0,0,i.clientWidth*h*g.m00,i.clientHeight*h*g.m11)};d.middle=function(g){var h="calc((100% - "+g.clientHeight+"px) / 2)";g.style.top=h};d.center=function(g){var h="calc((100% - "+g.clientWidth+"px) / 2)";g.style.left=h};d.getEventPageX=function(g){return(g.changedTouches&&g.changedTouches[0])?g.changedTouches[0].pageX:g.pageX};d.calcEventNormalizedLeftPosition=function(k,i){var h=CriLaRectangle.createFromElement(k);var j=h.getWidth()||1;var g=d.getEventPageX(i);var l=(g-h.left)/j;return CriGrxMath.clamp(0,1,l)};d.createHorizontalLinearGradient=function(g){return"linear-gradient("+["90deg",g.map(function(h){return h.color+" "+h.percent+"%"})].join(",")+")"};d.createHorizontalStripedGradient=function(h,g,j){var i=[{color:h,percent:0}];j.forEach(function(l,k){i.push({color:k%2?g:h,percent:l});i.push({color:k%2?h:g,percent:l})});i.push({color:j.length%2?g:h,percent:100});return this.createHorizontalLinearGradient(i)};d.escapeHtml=function(g){return g.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}})(CriLaHtmlCss);var CriLaPolyfill={};(function(c){function b(d){throw new Error("Fullscreen APIがサポートされていません")}c.Object={};c.Object.setPrototypeOf=Object.setPrototypeOf||function(e,d){e.__proto__=d;return e};c.Event={};c.Event.CustomEvent=(function(){if(typeof(window.CustomEvent)==="function"){return window.CustomEvent}var d=function(f,g){g=g||{bubbles:false,cancelable:false,detail:void (0)};var e=document.createEvent("CustomEvent");e.initCustomEvent(f,g.bubbles,g.cancelable,g.detail);return e};d.prototype=window.Event.prototype;return d})();c.Event.MouseEvent=(function(d){if(typeof(window.MouseEvent)==="function"){var f=CriUAChecker.getBrowser();if(f!==CriUABrowser.Edge){return window.MouseEvent}}var e=function(i,h){h=h||{bubbles:false,cancelable:false,detail:void (0)};var g=document.createEvent("MouseEvent");g.initMouseEvent(i,h.bubbles,h.cancelable,d,h.detail,h.screenX,h.screenY,h.clientX,h.clientY,h.ctrlKey,h.altKey,h.shiftKey,h.metaKey,h.button,h.relatedTarget);return g};e.prototype=Event.prototype;return e})(window);c.Event.PointerEvent=(function(d){if(typeof(window.PointerEvent)==="function"){var f=CriUAChecker.getBrowser();if(f!==CriUABrowser.Edge){return window.PointerEvent}}var e=function(i,h){h=h||{bubbles:false,cancelable:false,detail:void (0)};var g=document.createEvent("PointerEvent");g.initPointerEvent(i,h.bubbles,h.cancelable,d,h.detail,h.screenX,h.screenY,h.clientX,h.clientY,h.ctrlKey,h.altKey,h.shiftKey,h.metaKey,h.button,h.relatedTarget,h.offsetX,h.offsetY,h.width,h.height,h.pressure,h.rotation,h.tiltX,h.tiltY,h.pointerId,h.pointerType,h.hwtimeStamp,h.isPrimary);return g};e.prototype=window.Event.prototype;return e})(window);c.Array={};c.Array.find=function(k,f,e){var g=void (0);for(var h=0,d=k.length;h0;d--){var b=(g[f-1]^(g[f-1]>>>30));b=this.multUint32_(b,1664525);g[f]=(g[f]^b)+(c[e]>>>0)+e;f++;e++;if(f>=g.length){g[0]=g[g.length-1];f=1}if(e>=c.length){e=0}}for(var d=g.length-1;d>0;d--){var b=(g[f-1]^(g[f-1]>>>30));b=this.multUint32_(b,1566083941);g[f]=(g[f]^b)-f;f++;if(f>=g.length){g[0]=g[g.length-1];f=1}}g[0]=2147483648};a.multUint32_=function(f,d){var e=f>>>16,c=f&65535;var h=d>>>16,g=d&65535;return(((e*g+c*h)<<16)+c*g)>>>0};a.setSeed=function(b){var d=this.array_;d[0]=b>>>0;for(var c=1;c>30))+c,1812433253)}this.index_=d.length};a.randInt32_=function(){var e=this.array_;var g=0;var c=2147483648;var d=2147483647;var f=2567483615;if(this.index_>=e.length){var h=397;for(var b=0;b<(e.length-h);b++){g=(e[b]&c)|(e[b+1]&d);e[b]=e[b+h]^(g>>>1)^((g&1)?f:0)}for(var b=(e.length-h);b>>1)^((g&1)?f:0)}this.index_=0}g=e[this.index_++];g^=g>>>11;g^=(g<<7)&2636928640;g^=(g<<15)&4022730752;g^=g>>>18;return g};a.random=function(){var d=this.randInt32_()>>>5;var c=this.randInt32_()>>>6;return(d*67108864+c)/9007199254740992}})(CriLaMT.prototype);var CriLaUtility={};CriLaUtility.functionExists=function(c,a){var b=a||window;return typeof b[c]==="function"};CriLaUtility.Array={};CriLaUtility.Array.zip=function(d){var a=CriLaPolyfill.Array.from(arguments).map(function(f){return CriLaPolyfill.Array.from(f)});if(a.length===0){return[]}var e=Math.max.apply(Math,a.map(function(f){return f.length}));a.forEach(function(f){f.length=e});var c=[];for(var b=0;ba?c:h/g;var d=f>a?c*g:h;if(g==1){b=e;d=e}return[b,d]};CriLaUtility.getParentLocation=function(){return window!==window.parent?document.referrer:""};CriLaUtility.getDomainFromUrl=function(b){var a="";a=b.indexOf("://")>-1?b.split("/")[2]:b.split("/")[0];a=a.split(":")[0];return a};function CriLaFrameRange(a,b){this.resolution_=CriLaFrameRange.DEFAULT_RESOLUTION;this.eps_=CriLaFrameRange.DEFAULT_EPS;this.op_=CriLaFrameRange.DEFAULT_OPERATOR;this.begin_=this.normalizeNumber_(a);this.duration_=this.normalizeNumber_(b)}CriLaFrameRange.DEFAULT_RESOLUTION=0.01;if(CriUAChecker.getOS()===CriUAOS.iOS){CriLaFrameRange.DEFAULT_RESOLUTION=0.1}CriLaFrameRange.DEFAULT_EPS=CriLaFrameRange.DEFAULT_RESOLUTION/10;CriLaFrameRange.DEFAULT_OPERATOR=new CriGrxRealNumberOperator(CriLaFrameRange.DEFAULT_EPS);CriLaFrameRange.op=CriLaFrameRange.DEFAULT_OPERATOR;(function(a){Object.defineProperty(a,"begin",{get:function(){return this.begin_},set:function(b){this.begin_=this.normalizeNumber_(b)},enumerable:true});Object.defineProperty(a,"start",Object.getOwnPropertyDescriptor(a,"begin"));Object.defineProperty(a,"duration",{get:function(){return this.duration_},set:function(b){this.duration_=this.normalizeNumber_(b)},enumerable:true});Object.defineProperty(a,"end",{get:function(){return this.begin+this.duration},set:function(b){b=this.normalizeNumber_(b);if(this.lt(b,this.begin)){throw new Error("end frame must be greater than or equal to begin frame: "+JSON.stringify({begin:this.begin,end:b}))}this.duration=this.normalizeNumber_(b-this.begin)},enumerable:true});Object.defineProperty(a,"last",{get:function(){return Math.max(this.begin,this.end-this.resolution_)},set:function(b){b=this.normalizeNumber_(b);if(this.lt(b,this.begin)){throw new Error("last frame must be greater than or equal to begin frame: "+JSON.stringify({begin:this.begin,last:b}))}this.end=this.normalizeNumber_(b+this.resolution_)},enumerable:true});a.clone=function(){return new CriLaFrameRange(this.begin,this.duration)};a.setResolution=function(b){this.resolution_=this.normalizeNumber_(b);this.eps_=this.resolution_/10;this.op_=new CriGrxRealNumberOperator(this.eps_)};["eq","lt","le","gt","ge","between","betweenHalfOpen"].forEach(function(b){a[b]=function(){return this.op_[b].apply(this.op_,arguments)}});a.isInnerFrame=function(b){return this.eq(this.duration,0)?this.eq(b,this.begin):this.betweenHalfOpen(this.begin,this.end,b)};a.isPlayableFrame=function(b){return this.eq(this.duration,0)?this.eq(b,this.begin):this.between(this.begin,this.last,b)};a.isExceededLastFrame=function(b){return 0<=this.last&&this.ge(b,this.last)};a.clamp=function(b){return CriGrxMath.clamp(this.begin,this.end,b)};a.clampWithPlayableFrame=function(b){return CriGrxMath.clamp(this.begin,this.last,b)};a.normalizeNumber_=function(b){b=Number(b);if(isNaN(b)){return 0}return Math.max(b,0)}})(CriLaFrameRange.prototype);var CriLaData={};CriLaData.KeyValuePair=function(a,b){this.key=a;this.val=b};CriLaData.KeyValuePair.fromString=function(f,e){var a=e.split(f);var b=null;if(a.length==2){b=new CriLaData.KeyValuePair(a[0].trim(),a[1].trim())}else{if(a.length>2){var c=a.shift().trim();var d=a.join(f).trim();b=new CriLaData.KeyValuePair(c,d)}}return b};CriLaData.Dict={};CriLaData.Dict.fromListWith=function(c,b){var a={};c.forEach(function(d){a[d.key]=b(a[d.key],d.val)});return a};CriLaData.Dict.fromList=function(a){return CriLaData.Dict.fromListWith(a,function(d,c){return c})};CriLaData.Dict.fromStringWith=function(a,b,e,c){var d=e.split(a).map(function(f){return f.trim()}).map(CriLaData.KeyValuePair.fromString.bind(null,b)).filter(Boolean);return CriLaData.Dict.fromListWith(d,c)};CriLaData.Dict.fromString=function(a,b,c){return CriLaData.Dict.fromStringWith(a,b,c,function(e,d){return d})};var CriLaFunctional={};CriLaFunctional.throttle=function(c,a){function b(){return new Date().getTime()}var d=b()-c;return function(){var e=b();if((d+c)<=e){d=e;a()}}};CriLaFunctional.debounce=function(b,a){var c=null;return function(){clearTimeout(c);c=setTimeout(a,b)}};var CriLaMgLazyLoadLib={};CriLaMgLazyLoadLib.existLazyLoadLib=function(){return typeof(CriLazyLoad)!=="undefined"};var CriLaURL={};(function(a){CriLaURL.appendSlash=function(b){if(b.slice(-1)!="/"){b+="/"}return b};CriLaURL.absPath=function(c){var b=document.createElement("a");b.href=c;return b.href};CriLaURL.getDirectory=function(d){var c=d.split(/[\/\\]/);var e=c.slice(0,-1);var b=e.join("/")||"./";return b};CriLaURL.addPwToUrl=function(c,b){var d=c+"?pw="+b;return(!b||b=="")?c:d};CriLaURL.sanitize=function(b,f){var c=Boolean(f);if(!b){return""}b=b+"";b=decodeURIComponent(b);var e=[];e.push("^https?:\\/\\/.*$");e.push("^\\/.*$");e.push("^[^:]+$");var d=new RegExp(e.map(function(g){return"("+g+")"}).join("|"));if(!b.match(d)){if(!c){console.warn(b+" をリンクに設定することができません。");console.warn("data-linkに渡すことのできる文字列は、'http://' または 'https://' から始まるURL、もしくは相対パスのみです。")}return""}b=encodeURI(b);b=b.replace(/['()*]/g,function(g){return"%"+g.charCodeAt(0).toString(16)});b=b.replace(/[^#]!/g,function(g,h){if(g.length==1){return"%"+g.charCodeAt(0).toString(16)}else{return g[0]+"%"+g[1].charCodeAt(0).toString(16)}});return b}})(CriLaURL);function CriTransition(a,d,f,e){var c=this.propertyFunctionDictionary_={};for(var b in a){c[b]=a[b]}d=Number(d);d=d===d?d:0;this.duration_=d<0?0:d;this.easing_=f||CriTransition.Easing.linear;this.endCallback_=e||function(){};this.time_=0;this.ended_=false}CriTransition.simplePropertyCurve=function(b,a){return function(c){return b*(1-c)+a*c}};CriTransition.Easing=(function(){var s={};var o=Math.PI;var b=Math.sin;var d=Math.cos;var f=Math.pow;var r=Math.sqrt;s.linear=function(v){return v};var j=function(v){return function(w){return 1-v(1-w)}};var q=function(w,v){return function(y){return y<0.5?w(y*2)/2:0.5+v(y*2-1)/2}};var t=s.easeInSine=function(v){return 1-d(v*o/2)};var k=s.easeOutSine=j(t);s.easeInOutSine=q(t,k);var n=function(w,v){return f(v,w)};var p=s.easeInQuad=n.bind(null,2);var i=s.easeOutQuad=j(p);s.easeInOutQuad=q(p,i);var m=s.easeInCubic=n.bind(null,3);var e=s.easeOutCubic=j(m);s.easeInOutCubic=q(m,e);var g=s.easeInQuart=n.bind(null,4);var u=s.easeOutQuart=j(g);s.easeInOutQuart=q(g,u);var h=s.easeInQuint=n.bind(null,5);var c=s.easeOutQuint=j(h);s.easeInOutQuint=q(h,c);var a=s.easeInCirc=function(v){return 1-r(1-v*v)};var l=s.easeOutCirc=j(a);s.easeInOutCirc=q(a,l);Object.freeze(s);return s})();(function(a){a.next=(function(){var b=function(d,c){return d<0?0:d>c?c:d};return function(c){if(this.ended_){this.endCallback_();return null}var h=this.duration_;var g=this.time_=b(this.time_+c,h);var f=h?g/h:1;if(f===1){this.ended_=true}var e={};var i=this.easing_(f);var d=this.propertyFunctionDictionary_;for(var j in d){e[j]=d[j](i)}return e}})()})(CriTransition.prototype);var CriLaCustomPointerEventFtbl={};var CriLaCustomPointerEvent=(function(c){var b=0;var e=[];var a=[];var d=function(h){var f=e.indexOf(h);if(f>=0){this.context_=a[f]}else{var g=new CriLaCustomPointerEvent.Context(h);this.context_=g;e[b]=h;a[b]=g;++b;this.initialize()}};CriLaPolyfill.Object.setPrototypeOf(d.prototype,c);return d})(CriLaCustomPointerEventFtbl);CriLaCustomPointerEventFtbl.constructor=CriLaCustomPointerEvent;CriLaCustomPointerEvent.CSS={RESET_TOUCH:"liveact-player__element--reset-touch",ELEM_MS:"liveact-player__element--MS"};CriLaCustomPointerEvent.EventType={DOWN:"down",UP:"up",MOVE:"move",OUT:"out"};Object.freeze(CriLaCustomPointerEvent.EventType);CriLaCustomPointerEvent.isValidEventType=function(b){for(var a in CriLaCustomPointerEvent.EventType){if(b===CriLaCustomPointerEvent.EventType[a]){return true}}return false};CriLaCustomPointerEventFtbl.initialize=function(){this.context_.initialize()};CriLaCustomPointerEventFtbl.finalize=function(){this.context_.finalize()};CriLaCustomPointerEventFtbl.addEventListener=function(a,c,b){this.context_.addEventListener(a,c,b)};CriLaCustomPointerEventFtbl.removeEventListener=function(a,b){this.context_.removeEventListener(a,b)};CriLaCustomPointerEvent.Context=function(c){this.elem_=c;this.lowLevelEventListenerList_=[];var e={};for(var a in CriLaCustomPointerEvent.EventType){var b=CriLaCustomPointerEvent.EventType[a];e[b]=[]}this.highLevelEventListenerListDict_=e;var d=this.eventAvailability_={};d.mouse=(typeof(window.onmousedown))!=="undefined";d.touch=(typeof(window.ontouchstart))!=="undefined";d.pointer=(typeof(window.onpointerdown))!=="undefined";if(d.touch&&d.pointer){d.pointer=false}this.eventLock_="";this.eventUnlocking_=false;this.moveEnabled_=false;this.pointDict_={}};(function(a){a.initialize=function(){if(this.lowLevelEventListenerList_.length){return}var d=this.eventAvailability_;var c=this.elem_;var b=this;if(d.mouse){var e=-1;this.addLLEventListener_("mousedown",function(f){if(b.eventLock_){return}if(b.eventUnlocking_){b.eventUnlocking_=false;return}b.singlePointDown_(f,e);b.eventUnlocking_=false});this.addLLEventListener_("mousemove",function(f){if(b.eventLock_){return}if(b.eventUnlocking_){return}b.singlePointMove_(f,e);b.eventUnlocking_=false});this.addLLEventListener_("mouseup",function(f){if(b.eventLock_){return}if(b.eventUnlocking_){return}b.singlePointUpOrOut_(f,e,"up")});this.addLLEventListener_("mouseout",function(f){if(b.eventLock_){return}if(b.eventUnlocking_){return}b.singlePointUpOrOut_(f,e,"out")})}if(d.touch){this.addLLEventListener_("touchstart",function(f){b.lockEvent_();b.multiPointsDown_(f)});this.addLLEventListener_("touchmove",function(f){b.multiPointsMove_(f);b.unlockEvent_()});this.addLLEventListener_("touchend",function(f){b.multiPointsUpOrOut_(f,"up");b.unlockEvent_()});this.addLLEventListener_("touchcancel",function(f){b.multiPointsUpOrOut_(f,"out");b.unlockEvent_()})}if(d.pointer){this.addLLEventListener_("pointerdown",function(f){if(f.pointerType==="mouse"){return}b.lockEvent_();b.singlePointDown_(f,f.pointerId)});this.addLLEventListener_("pointermove",function(f){if(f.pointerType==="mouse"){return}b.singlePointMove_(f,f.pointerId);b.unlockEvent_()});this.addLLEventListener_("pointerup",function(f){if(f.pointerType==="mouse"){return}b.singlePointUpOrOut_(f,f.pointerId,"up");b.unlockEvent_()});this.addLLEventListener_("pointerout",function(f){if(f.pointerType==="mouse"){return}b.singlePointUpOrOut_(f,f.pointerId,"out");b.unlockEvent_()});this.addLLEventListener_("pointercancel",function(f){if(f.pointerType==="mouse"){return}b.singlePointUpOrOut_(f,f.pointerId,"out");b.unlockEvent_()})}};a.finalize=function(){var b=this.elem_;this.lowLevelEventListenerList_.forEach(function(c){var d=c.type;var e=c.listener;b.removeEventListener(d,e)});this.lowLevelEventListenerList_.length=0};a.addEventListener=function(d,f,e){if(!CriLaCustomPointerEvent.isValidEventType(d)){return}var c=new CriLaCustomPointerEvent.EventListener(d,f,e);var g=this.highLevelEventListenerListDict_[d];g.push(c);if(!this.moveEnabled_&&d===CriLaCustomPointerEvent.EventType.MOVE){this.elem_.classList.add(CriLaCustomPointerEvent.CSS.RESET_TOUCH);var b=CriUAChecker.getBrowser();if(b===CriUABrowser.IE||b===CriUABrowser.Edge){this.elem_.classList.add(CriLaCustomPointerEvent.CSS.ELEM_MS)}this.moveEnabled_=true}};a.removeEventListener=function(d,e){if(!CriLaCustomPointerEvent.isValidEventType(d)){return}var f=this.highLevelEventListenerListDict_[d];var b=CriLaPolyfill.Array.findIndex(f,function(g){return g.listener===e});if(b>=0){f.splice(b,1)}if(this.moveEnabled_&&d===CriLaCustomPointerEvent.EventType.MOVE&&f.length===0){this.elem_.classList.remove(CriLaCustomPointerEvent.CSS.RESET_TOUCH);var c=CriUAChecker.getBrowser();if(c===CriUABrowser.IE||c===CriUABrowser.Edge){this.elem_.classList.remove(CriLaCustomPointerEvent.CSS.ELEM_MS)}this.moveEnabled_=false}};a.addLLEventListener_=function(c,e,d){this.elem_.addEventListener(c,e,d);var b=new CriLaCustomPointerEvent.EventListener(c,e,d);this.lowLevelEventListenerList_.push(b)};a.lockEvent_=function(){this.eventLock_=true;this.eventUnlocking_=false};a.unlockEvent_=function(){var b=Object.keys(this.pointDict_);if(b.length===0){this.eventLock_=false;this.eventUnlocking_=true}};a.dispatch_=function(b,d){if(!CriLaCustomPointerEvent.isValidEventType(b)){return}var e=this.highLevelEventListenerListDict_[b];var c=this.elem_;e.forEach(function(f){f.listener.call(c,d)})};a.createPoint_=function(c,b,e){var d=CriLaRectangle.createFromElement(this.elem_);return new CriLaCustomPointerEvent.Point(c-d.left,b-d.top,"id"+e)};a.createPointDictFromTouches_=function(c){var d={};for(var b=0;b!=c.length;++b){var e=c[b];d[e.identifier]=this.createPoint_(e.pageX,e.pageY,e.identifier)}return d};a.isOutOfBound_=function(c){var b=c.x;var f=c.y;var e=this.elem_;var d=CriLaHtmlCss.getElementWidthHeight(e);return b<0||d.getWidth()<=b||f<0||d.getHeight()<=f};CriLaCustomPointerEvent.Context.isPointerOrMouseDown_=function(b){if(b.buttons===1){return true}if(b.which===1&&b.buttons==undefined){return true}return false};a.singlePointDown_=function(e,f){f=f+"";if(e.button!==0){return}var d=this.pointDict_;var b=this.createPoint_(e.pageX,e.pageY,f);var c={};c[f]=b;d[f]=b;this.deletTimeoutPointDict_();this.dispatch_("down",new CriLaCustomPointerEvent.Event("down",c,d,e))};a.singlePointMove_=function(f,g){g=g+"";var d=CriLaCustomPointerEvent.Context.isPointerOrMouseDown_(f);var e=this.pointDict_;if(!d){delete e[g];return}if(!(g in e)){return}var b=this.createPoint_(f.pageX,f.pageY,g);var c={};c[g]=b;if(this.isOutOfBound_(b)){delete e[g];this.dispatch_("out",new CriLaCustomPointerEvent.Event("out",c,e,f))}else{this.updatePointTime(b);e[g]=b;this.dispatch_("move",new CriLaCustomPointerEvent.Event("move",c,e,f))}};a.singlePointUpOrOut_=function(f,g,e){g=g+"";var d=this.pointDict_;if(!(g in d)){return}if(e==="up"&&f.button!==0){return}var b=this.createPoint_(f.pageX,f.pageY,g);var c={};c[g]=b;delete d[g];this.deletTimeoutPointDict_();this.dispatch_(e,new CriLaCustomPointerEvent.Event(e,c,d,f))};a.multiPointsDown_=function(d){var c=this.pointDict_;var b=this.createPointDictFromTouches_(d.changedTouches);for(var e in b){c[e]=b[e]}this.dispatch_("down",new CriLaCustomPointerEvent.Event("down",b,c,d));this.deletTimeoutPointDict_()};a.multiPointsMove_=function(f){var e=this.pointDict_;var c=this.createPointDictFromTouches_(f.changedTouches);for(var h in c){if(!(h in e)){delete c[h]}}var g={};var d={};for(var h in c){var b=c[h];if(this.isOutOfBound_(b)){d[h]=b;delete e[h]}else{this.updatePointTime(b);g[h]=b}}if(Object.keys(d).length){this.dispatch_("out",new CriLaCustomPointerEvent.Event("out",d,e,f))}if(Object.keys(g).length){for(var h in g){e[h]=g[h]}this.dispatch_("move",new CriLaCustomPointerEvent.Event("move",g,e,f))}};a.multiPointsUpOrOut_=function(e,d){var c=this.pointDict_;var b=this.createPointDictFromTouches_(e.changedTouches);for(var f in b){if(f in c){delete c[f]}else{delete b[f]}}this.deletTimeoutPointDict_();this.dispatch_(d,new CriLaCustomPointerEvent.Event(d,b,c,e))};a.deletTimeoutPointDict_=function(){if(CriUAChecker.getBrowser()!=CriUABrowser.Edge){return}var b=this.pointDict_;for(var d in b){var c=this.getPointTimeDelta(b[d]);if(c>3000){delete b[d]}}};a.getPointTimeDelta=function(b){return criLaTimer_GetTimeMs()-b.time};a.updatePointTime=function(b){b.time=criLaTimer_GetTimeMs()}})(CriLaCustomPointerEvent.Context.prototype);CriLaCustomPointerEvent.EventListener=function(a,c,b){this.type=a;this.listener=c;this.options=b||null};CriLaCustomPointerEvent.Event=function(f,b,e,g,a){var d={};d.changedPoints=new CriLaCustomPointerEvent.Points(b);d.points=new CriLaCustomPointerEvent.Points(e);d.ctrlKey=g.ctrlKey;d.altKey=g.altKey;d.shiftKey=g.shiftKey;d.metaKey=g.metaKey;if(a){for(var c in a){d[c]=a[c]}}this.detail=d;this.event_=g;Object.freeze(this)};(function(a){a.preventDefault=function(){this.event_.preventDefault()};a.stopPropagation=function(){this.event_.stopPropagation()}})(CriLaCustomPointerEvent.Event.prototype);CriLaCustomPointerEvent.Point=function(a,c,b){CriGrxVector2.call(this);this.x=a;this.y=c;this.id=b;this.time=criLaTimer_GetTimeMs()};Object.freeze(CriLaCustomPointerEvent.Point);CriLaPolyfill.Object.setPrototypeOf(CriLaCustomPointerEvent.Point.prototype,CriGrxVector2.prototype);CriLaCustomPointerEvent.Points=function(c){Array.call(this);if(c){for(var b in c){var a=c[b];this.push(a);var d=a.id;Object.defineProperty(this,d,{enumerable:false,configurable:false,writable:false,value:a})}}Object.freeze(this)};CriLaPolyfill.Object.setPrototypeOf(CriLaCustomPointerEvent.Points.prototype,Array.prototype);function CriLaClickEmulator(a){this.cpe_=new CriLaCustomPointerEvent(a);this.thresholdPathLength_=25;this.thresholdDuration_=500;this.initialize_(a)}(function(a){a.initialize_=function(c){var b=this.cpe_;b.addEventListener("down",this.down_.bind(this));b.addEventListener("move",this.move_.bind(this));b.addEventListener("up",this.up_.bind(this));b.addEventListener("out",this.out_.bind(this))};a.setThresholdPathLength=function(b){this.thresholdPathLength_=b};a.setThresholdDuration=function(b){this.thresholdDuration_=b};a.calcThresholdPathLength_=function(){var c=CriLaHtmlCss.getHtmlZoom();var b=this.thresholdPathLength_*c;return b};a.calcThresholdDuration_=function(){return this.thresholdDuration_};a.down_=function(d){var c=d.detail;if(c.changedPoints.length!==1){this.abortClick_();return}var b=c.changedPoints[0];this.startClick_(b)};a.move_=function(d){var c=d.detail;if(c.points.length!==1){this.abortClick_();return}var b=c.points[0];this.clicking_(b)};a.up_=function(d){var c=d.detail;if(c.changedPoints.length!==1){this.abortClick_();return}var b=c.changedPoints[0];this.clicking_(b);this.endClick_(b)};a.out_=function(b){this.abortClick_()};a.startClick_=function(b){this.elapsed_();this.clearPath_(b)};a.clicking_=function(b){this.updatePath_(b)};a.endClick_=function(b){var c=this.elapsed_();var d=this.getPathLength_();var f=this.calcThresholdDuration_();var e=this.calcThresholdPathLength_();if(c<=f&&d<=e){this.onclick(b)}};a.abortClick_=function(){this.clearPath_(null)};a.startTime_=0;a.elapsed_=function(){var c=Date.now();var b=c-this.startTime_;this.startTime_=c;return b};a.lastPoint_=null;a.pathLength_=0;a.clearPath_=function(b){this.lastPoint_=b;this.pathLength_=0};a.updatePath_=function(b){var c=this.lastPoint_;var e=b.x-c.x;var d=b.y-c.y;this.pathLength_+=Math.sqrt(e*e+d*d);this.lastPoint_=b};a.getPathLength_=function(){return this.pathLength_};a.onclick=function(b){}})(CriLaClickEmulator.prototype);function CriLaRectangle(){this.left=0;this.top=0;this.right=0;this.bottom=0}var CriLaRect=CriLaRectangle;(function(a){a.getWidth=function(){return this.right-this.left};a.getHeight=function(){return this.bottom-this.top};Object.defineProperties(a,{x:{get:function(){return this.left}},y:{get:function(){return this.top}},w:{get:function(){return this.getWidth()}},h:{get:function(){return this.getHeight()}}})})(CriLaRectangle.prototype);CriLaRectangle.createFromLTRB=function(e,d,b,a){var c=new CriLaRectangle();c.left=e;c.top=d;c.right=b;c.bottom=a;return c};CriLaRectangle.createFromXYWH=function(b,e,c,a){var d=new CriLaRectangle();d.left=b;d.top=e;d.right=b+c;d.bottom=e+a;return d};CriLaRectangle.createFromElement=function(b){var c=CriLaHtmlCss.getElementPosition(b);var a=CriLaHtmlCss.getElementWidthHeight(b);return CriLaRectangle.createFromXYWH(c.x,c.y,a.getWidth(),a.getHeight())};CriLaRectangle.createFromViewPort=function(){return CriLaRectangle.createFromXYWH(window.pageXOffset,window.pageYOffset,window.innerWidth,window.innerHeight)};CriLaRectangle.collision=function(h,f){var j=h.left;var d=h.right;var g=h.top;var c=h.bottom;var i=f.left;var b=f.right;var e=f.top;var a=f.bottom;return((j<=i&&i=d){f.reloadLock_=false;return}e[c].requestLoad();requestAnimationFrame(g)};g()};b.isComplete=function(){if(!Boolean(this.isComplete_)){var c=this.CriLaP1e0.length>0&&this.CriLaP1e0.every(function(d){return d.isComplete()});this.isComplete_=c}return this.isComplete_};b.canDraw=function(){var c=this.getLaImage_(0);return c&&c.isComplete()};b.setImageRect=function(c){this.CriLaP1e0.forEach(function(d){d.setSrcRect(c)});return this}})(CriLaResourceSeqImageBase.prototype,CriLaResourceImageBase.prototype);function CriLaResourceSeqImageRaw(b,a){CriLaResourceSeqImageBase.call(this,b,a)}(function(b,c,a){CriLaPolyfill.Object.setPrototypeOf(b,c);b.isSharedResource=function(){return this.CriLaP1e0.length>0&&this.isSharedResourceUrl_(this.CriLaP1e0[0].url)};b.requestLoadProc_=function(e,f,d){this.CriLaP1e0.forEach(function(g){g.requestLoad(f+g.url)})};b.setUrls=function(d){this.CriLaP1e0=d.map(function(e){var f=new CriLaC005();f.url=e;return f});this.numImages=0}})(CriLaResourceSeqImageRaw.prototype,CriLaResourceSeqImageBase.prototype,CriLaResourceImageBase.prototype);function CriLaC00a(b,a){CriLaResourceSeqImageBase.call(this,b,a)}(function(a,c,b){CriLaPolyfill.Object.setPrototypeOf(a,c);a.requestLoadProc_=function(e,f,d){var g=new CriLaC00e(this.CriLaP1e0,this);g.requestLoadStream(e)};a.isComplete=function(){return this.state_===CriLaResourceState.COMPLETE&&c.isComplete.call(this)};a.canPlay=function(j){if(this.isComplete()){return true}var g=false;var h=Math.max(this.progress_,1);var f=this.dlTime_/h;var d=66.666;var k=this.progressMax_-this.progress_;var i=k*f*1.1;var e=this.progress_*d;if(0=j){g=true}}}return g}})(CriLaC00a.prototype,CriLaResourceSeqImageBase.prototype,CriLaResourceImageBase.prototype);function CriLaResourceMediaBase(b,a){CriLaResource.call(this,b,a);this.width=0;this.height=0;this.duration=0;this.elem_=null;this.type=null}(function(a,b){CriLaPolyfill.Object.setPrototypeOf(a,b);a.getElement=function(){return this.elem_};a.initializeMedia=function(){this.elem_=this.createElement_()};a.attachElement=function(c){this.unloadMedia();this.elem_=c};a.loadMedia=function(d,c){var f=this.getElement();if(f.src==d){return}f.src=d;var e=f.getAttribute("preload");if(e=="auto"||c==true){f.load()}};a.unloadMedia=function(){var c=this.getElement();if(c==null){return}c.removeAttribute("src");c.load()};a.isEmpty=function(){var c=this.getElement();return c.src==""};a.createElement_=function(){var d="";if(this.getType()==CriLaResourceType.VIDEO||this.getType()==CriLaResourceType.SEQUENCE_VIDEO){d="video"}else{d="audio"}var c=document.createElement(d);c.muted=true;c.volume=0;CriLaHtmlCss.setVisibility(c,false);return c}})(CriLaResourceMediaBase.prototype,CriLaResource.prototype);function CriLaResourceAudio(b,a){CriLaResourceMediaBase.call(this,b,a);this.type=CriLaResourceType.AUDIO}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a)})(CriLaResourceAudio.prototype,CriLaResourceMediaBase.prototype);function CriLaResourceVideoBase(b,a){CriLaResourceMediaBase.call(this,b,a);this.CriLaP11e=null}(function(a,b){CriLaPolyfill.Object.setPrototypeOf(a,b);a.drawnBy=function(c,d){return c.drawResourceVideo(this,d)};a.isVideo=function(){return true};a.getVideo=function(){var c=this.getElement();return c};a.getAudioWrapper=function(){return this.CriLaP11e}})(CriLaResourceVideoBase.prototype,CriLaResourceMediaBase.prototype);function CriLaResourceVideo(b,a){CriLaResourceVideoBase.call(this,b,a);this.type=CriLaResourceType.VIDEO;this.preDecodeEnabled_=false;this.preDecodeFps_=15;this.isAudioSeparated_=false;this.strictFrameDraw_=false;this.isSimpleDecode_=false;this.decodeImages=[];this.decoder_=null;this.frameQueue_=null}CriLaPolyfill.Object.setPrototypeOf(CriLaResourceVideo.prototype,CriLaResourceVideoBase.prototype);(function(a){a.isComplete=function(){var b=this.isPreDecodeEnabled();if(b==true){if(this.decodeImages.length==0){return false}var c=this.decodeImages[0].image;if(c==null||c.isComplete==false){return false}}return true};a.setVideoFromUrl=function(b){this.unloadMedia();this.loadMedia(b)};a.loadMedia=function(b){if(b.indexOf("./")===0){b=b.slice(2)}var e=this;function d(f){if(e.isAudioSeparated_==false){return}var g=new Audio();g.src=f;g.muted=true;g.volume=0;var h=new CriLaC00O(g,30);h.load();e.CriLaP11e=h}if(this.preDecodeEnabled_==false){CriLaResourceMediaBase.prototype.loadMedia.call(this,b);d(b)}else{if(this.url==b&&this.isComplete()==true){return}function c(f){CriLaResourceMediaBase.prototype.loadMedia.call(e,f);if(e.isSimpleDecode()){e.prepareSimplePreDecode(e.preDecodeFps_)}else{e.decodeFrames(e.preDecodeFps_)}d(f)}if(b.indexOf("blob:")!==0){var e=this;CriLaXHR.requestLoad(b,"blob",function(f){c(f)})}else{c(b)}}};a.unloadMedia=function(){CriLaResourceMediaBase.prototype.unloadMedia.call(this);this.decodeImages.forEach(function(b){if(b.image){b.image.unload()}});this.decodeImages=[]};a.enablePreDecode=function(c,e,f){var b=CriUAChecker.getBrowser();var d=CriUAChecker.getOS();if(b===CriUABrowser.IE||d===CriUAOS.iOS){return this}this.preDecodeEnabled_=c;this.preDecodeFps_=e;this.preDecodeQuality_=f;return this};a.enableStrictFrameDraw=function(b){this.strictFrameDraw_=b};a.isStrictFrameDraw=function(){return this.strictFrameDraw_};a.enableSimpleDecode=function(b){this.isSimpleDecode_=b};a.isSimpleDecode=function(){return this.isSimpleDecode_};a.isPreDecodeEnabled=function(){return this.preDecodeEnabled_};a.enableAudioSeparate=function(b){this.isAudioSeparated_=b};a.isAudioSeparated_=function(){return this.isAudioSeparated_};a.getFrame=function(c){var b=this.isStrictFrameDraw()?this.getStrictFrame_(Math.round(c*this.preDecodeFps_)):this.findFrame_(c);if(b!=null){return b.image}return null};a.getStrictFrame_=function(c){var b=this.findStrictFrame_(c);if(b!=null){return b}return null};a.findStrictFrame_=function(c){var b=null;c=Math.max(Math.min(this.decodeImages.length-1,c),0);var d=this.decodeImages[c];if(d&&d.image&&d.image.isComplete()){b=d}return b};a.decodeFrames=function(e){var b=1000/e/1000;var f=this.createLaVideoDecoder_();var c=this.getElement();var d=this.strictFrameDraw_?CriLaDecodeType.Sequential:CriLaDecodeType.Default;this.decodeImages=f.decodeAllFrames(c,b,d)};a.prepareSimplePreDecode=function(d){var b=1000/d/1000;var e=this.createLaVideoDecoder_();var c=this.getElement();this.decodeImages=e.prepareSimplePreDecode(c,b)};a.createLaVideoDecoder_=function(){var c=new LaVideoDecoder();c.initialize(this.width,this.height);c.setQuality(this.preDecodeQuality_);this.decoder_=c;if(this.frameQueue_!=null){var b=this.getElement();this.decoder_.simpleDecodeFrame(b,this.frameQueue_,this.decodeImages);this.frameQueue_=null}return c};a.decodeFrame=function(b){var d=Math.round(b*this.preDecodeFps_);if(this.decoder_){var c=this.getElement();this.decoder_.simpleDecodeFrame(c,d,this.decodeImages)}else{this.frameQueue_=d}};a.findFrame_=function(d){var b=0;var f=this.decodeImages;var g=f.length-1;var c=(b+g)>>1;var e=null;while(b>1}return e};a.findNearlyFrame_=function(b,c){var e=b;while(0<=e&&e1?"?"+d[1]:"";b.meshes.forEach(function(f){var g=new CriLaMesh(this.gl_);g.loadLmd_(f,b.materials);this.meshList_.push(g)},this);b.materials.forEach(function(f){var g=new CriLaMaterial(this.gl_);g.loadLmd_(f,b.textures);this.materialList_.push(g)},this);b.textures.forEach(function(h){var g=new CriLaTexture(this.gl_);var f=e+h.url+c;g.load(f);this.textureList_.push(g)},this);this.isComplete_=true;return true};a.getMaterialByIndex=function(b){return this.materialList_[b]};a.isComplete=function(){return this.isComplete_};a.setVideo=function(c){var b=this.getMaterialByIndex(0);b.setTextureFromVideo(c,this.textureList_)};a.unload=function(){this.textureList_.forEach(function(b){b.unload()})};a.reload=function(){this.textureList_.forEach(function(b){b.load()})};a.setup=function(b){this.gl_=b.graphicsContext};a.drawnBy=function(b,c){return b.drawResourceModel(this,c)};a.canPlay=function(){return this.isComplete()};a.canDraw=function(){return this.isComplete()}})(CriLaResourceModel.prototype);function CriLaC00c(){this.CriLaP113=null;this.resourceList=null;this.fontScale_=1;this.frameBlendEnabled_=false;this.resourceURLSuffix_=null;this.defaultDimension_=CriGrxVector2.createFromXY(0,0);this.trackingCode_=null;this.xhr_=null;this.subEventDispatcher_=new CriLaSubEventDispatcher();this.subEventDispatcher_.delegate(this)}(function(i){i.setFontScale=function(r){this.fontScale_=r};i.enableFrameBlend=function(r){this.frameBlendEnabled_=r};i.getTrackingCode=function(){return this.trackingCode_};i.setLocationToRequestHeader=function(t){var s=CriLaUtility.getParentLocation();var r=s==""?location.href:s;t["x-embed-domain"]=CriLaUtility.getDomainFromUrl(r);return t};i.LoadDomFromURL=function(r,s,C,A,t){var u=s||false;var B=(C)?C:0;var x=r;x=b(x,this.resourceURLSuffix_);var y=CriLiveActSharedSettings.getAdditionalRequestHeaders_()||{};y=this.setLocationToRequestHeader(y);var w=this.onErrorEvent_.bind(this);var v=this.onLoadEvent_.bind(this,A,t);var z=false;if(u){z=this.loadDomFromURLAsync_(r,v,w,y,B)}else{z=this.loadDomFromURLSync_(r,v,w,y)}return z};i.onErrorEvent_=function(){var r=this.xhr_.status;this.xhr_=null;this.dispatchEvent("error",{status:r,message:"LJTのロードに失敗しました"});return false};i.getViewLimitationInfo_=function(){var y=this.xhr_.getAllResponseHeaders();var x=640;var w=640;var v={};var u="x-contents-width";var t="x-contents-height";var s="x-contents-password-required";v.is=this.xhr_.status==403;v.width=y.indexOf(u)!=-1?this.xhr_.getResponseHeader(u):x;v.height=y.indexOf(t)!=-1?this.xhr_.getResponseHeader(t):w;var r=y.indexOf(s)!=-1?this.xhr_.getResponseHeader(s):false;v.width=v.width==0?x:parseInt(v.width);v.height=v.height==0?w:parseInt(v.height);return[r=="true",v]};i.onLoadEvent_=function(y,v,u){var x=y||function(){return true};var w=this.getViewLimitationInfo_();v(w[0],w[1]);if(w[1].is){return false}if(this.xhr_.status>=400){return this.onErrorEvent_()}var r=null;this.xhr_=null;var t=u.contentType;if(t=="application/xml"||t=="text/xml"||t=="text/plain"){r=u}else{if(typeof(u)=="string"||u instanceof String){r=a(u)}else{if(u!=null&&t==null){if(u.documentElement!=null){r=u}}}}if(!r){return false}var s=this.loadDomFromXml_(r);if(s===false){return false}this.resolveScenes_();x();return true};i.loadDomFromURLAsync_=function(t,r,s,w,u){var v=this.xhr_=new XMLHttpRequest();v.open("GET",t,true);Object.keys(w).forEach(function(x){var y=w[x];v.setRequestHeader(x,y)},this);v.timeout=u;v.onload=function(){r(v.responseText)};v.onerror=s;v.onabort=s;v.ontimeout=s;v.send();return true};i.loadDomFromURLSync_=function(u,r,s,x){var t=false;try{var w=this.xhr_=new XMLHttpRequest();w.open("GET",u,false);Object.keys(x).forEach(function(y){var z=x[y];w.setRequestHeader(y,z)},this);w.send();t=r(w.responseText)}catch(v){t=s()}return Boolean(t)};i.abortRequest=function(){if(this.xhr_&&typeof(this.xhr_.abort)==="function"){this.xhr_.abort()}};i.CriLaM118=function(v,r,s){var u=a(v);var t=this.loadDomFromXml_(u);r();return t};i.loadDomFromXml_=function(s){var t=[];var r=g(s,"footage").map(this.createResource,this);g(s,"comment").forEach(function(w){var v=this.getTrackingCode(w);if(v!=null){this.trackingCode=v;return}},this);g(s,"composition").forEach(function(v){var w=this.CriLaM1c0(v,r);t.push(w)},this);this.CriLaP113=t;this.resourceList=r;var u=c(r);t.forEach(function(v){v.setResourceIndexResolver(u)},this);this.resolveScenes_();return true};i.getTrackingCode=function(s){var r=s.getAttribute("name");if(r=="tracking_code"||r=="track_code"){var t=s.textContent;return t}return null};i.CriLaM1c0=function(t,w){var x=new CriLaC00i();x.id=t.getAttribute("id");x.name=l(t,"name");x.CriLaP115=p(n(t,"framerate"));x.duration_=f(n(t,"duration"),x.CriLaP115);var v=n(t,"dimension");var u=this.parseDimension_(v);x.Width=u[0];x.Height=u[1];var s=n(t,"background_color");var r=o(s);x.BackColor="rgb("+r[0]+","+r[1]+","+r[2]+")";g(t,"layer").forEach(function(B){var z=this.CriLaM1c1(B,x.CriLaP115,w);x.layerList_.push(z);var y=n(B,"margin");if(y!=null){var A=this.parseMargin_(y);x.setTextLayerMarginLTRB(z,A[0],A[1],A[2],A[3])}},this);g(t,"marker").forEach(function(z){var y=k(z,x.CriLaP115);x.markerList_.push(y)});return x};i.CriLaM1c1=function(C,u,s){var B=C.getAttribute("id");var K=C.getAttribute("name");var v=l(C,"footage_id");var D=l(C,"parent_layer_id");var x=n(C,"composition_id");var J=new CriLamgLayer(B,K);var t=null;var z=l(C,"object_type");switch(z){case"TEXT":J.text=K;t=this.createResourceTextFromLayer_(C,B,K);v=t.id;s.push(t);J.resource=t;break}g(C,"parameter_list").forEach(function(L){var M=L.getAttribute("category");if(M==null||M=="COMMON"){this.CriLaM1c2(J,L)}else{if(M=="TEXT"){this.CriLaM1c3(t,L)}}},this);if(!J.isBoxText()){J.position.x-=J.pivot.x;J.position.y-=J.pivot.y}J.resourceID=v;J.ParentLayerID=D;if(x!=null){J.refSceneID=x.textContent}g(C,"stream_list").forEach(function(L){var M=this.createAnimationCurveSet(L);J.AnimationCurveSet=M},this);g(C,"image_index_stream").forEach(function(M){var L=this.createImageIndexCurve(M);J.ImageIndexCurve=L},this);if(J.ImageIndexCurve!=null){J.frameBlendEnabled=this.frameBlendEnabled_}var y=l(C,"transfer_mode");switch(y){case"IN_FRONT":J.BlendMode=CriLaBlendMode.ALPHA_BLEND;break;case"ADD":J.BlendMode=CriLaBlendMode.ADD;break;case"MULTIPLY":J.BlendMode=CriLaBlendMode.MULTIPLY;break}var E=f(n(C,"start_frame"),u);var F=f(n(C,"original_start_frame"),u);if(E1){u.line_height=r/t}};i.createAnimationCurve=function(w){var r=new CriLaC00r();var s=n(w,"parameter_name");if(s!=null){r.name=s.textContent}else{r.name="unknown"}var x=n(w,"key_list");if(x==null){return null}var A=e(x.textContent);r.Keys=A;var u=n(w,"value_list");if(u==null){return null}var z=e(u.textContent);r.Values=z;if(this.frameBlendEnabled_==false||s!=null){return r}var v=1;var t=r.Values[0];while(true){if(v>=r.Values.length){break}var y=r.Values[v];if(t==y){r.Values.splice(v,1);r.Keys.splice(v,1)}else{t=y;v++}}return r};i.createAnimationCurveSet=function(r){var s=new CriLaC00q();g(r,"stream").forEach(function(t){var u=this.createAnimationCurve(t);if(u!=null){s.Curves.push(u)}},this);return s};i.createImageIndexCurve=function(r){var s=this.createAnimationCurve(r);return s};i.createResource=function(t){var v=t.getAttribute("id");var s=t.getAttribute("name");var r=l(t,"footage_type");var u=null;if(r=="IMAGE"||r=="SEQUENCE"){u=this.createResourceImage_(t,v,s)}else{if(r=="SOLID"){u=this.createResourceRectangle_(t,v,s)}else{if(r=="VIDEO"||r=="MOVIE"){u=this.createResourceVideo_(t,v,s)}else{if(r=="AUDIO"){u=this.createResourceAudio_(t,v,s)}else{if(r=="MODEL"){u=this.createResourceModel_(t,v,s)}}}}}return u};i.createResourceImage_=function(u,x,t){var r=null;var s=l(u,"file_path");if(s.length>0){r=new CriLaResourceSingleImage(x,t);s=b(s,this.resourceURLSuffix_);r.url=s}else{r=this.createResourceSeqImage_(u,x,t)}var w=n(u,"dimension");var v=this.parseDimension_(w);r.width=v[0];r.height=v[1];return r};i.createResourceRectangle_=function(u,y,t){var s=new CriLaResourceRectangle(y,t);var v=n(u,"color");var r=o(v);s.color=h(r);var x=n(u,"dimension");var w=this.parseDimension_(x);s.width=w[0];s.height=w[1];return s};i.createResourceVideo_=function(s,t,r){return this.createResourceSingleVideo_(s,t,r)};i.createResourceSingleMedia_=function(z,r,u,s){var x=new z(u,s);var t=l(r,"file_path");t=b(t,this.resourceURLSuffix_);x.url=t;var y=n(r,"dimension");var w=this.parseDimension_(y);x.width=w[0];x.height=w[1];var v=l(r,"duration");x.duration=v;return x};i.createResourceSingleVideo_=function(s,t,r){return this.createResourceSingleMedia_(CriLaResourceVideo,s,t,r)};i.createResourceAudio_=function(s,t,r){return this.createResourceSingleMedia_(CriLaResourceAudio,s,t,r)};i.createResourceModel_=function(s,u,r){var t=new CriLaResourceModel(u,r);t.url=l(s,"file_path");return t};i.createResourceTextFromLayer_=function(w,y,t){var v=new CriLaResourceText(y+"_text",t);var x=t;var u=24;var r="px";var s="black";v.text=x;v.size=u;v.color=s;v.font=u+r+" "+v.font;return v};i.createResourceSeqImage_=function(s,u,t){var A=l(s,"directory_path");var v=l(s,"file_name_list");v=v.replace(/\"/g,"");var y=v.split(" ");var x=y.length;var z=null;var B=this.resourceURLSuffix_;if(x>1){z=new CriLaResourceSeqImageRaw(u,t);var w=y.map(function(D){var C=A+"/"+D;C=b(C,B);return C});z.setUrls(w)}else{z=new CriLaC00a(u,t);var r=A+"/"+y[0];r=b(r,B);z.url=r}return z};i.resolveScenes_=function(){this.CriLaP113.forEach(this.resolveScene_,this)};i.resolveScene_=function(r){r.getLayerList().forEach(this.resolveLayer_.bind(this,r))};i.resolveLayer_=function(w,t){if(t.ParentLayerID.length>0){var s=CriLaPolyfill.Array.find(w.layerList_,function(x){return x.id===t.ParentLayerID});t.ParentLayer=s}if(t.refSceneID.length>0){var r=CriLaPolyfill.Array.find(this.CriLaP113,function(x){return x.id===t.refSceneID});t.refScene=r}var v=CriLaPolyfill.Array.find(this.resourceList,j.bind(null,t));if(v!=null){var u=v;t.resource=u;this.resolveResource_(w,t,u)}};i.resolveResource_=function(u,s,t){if(t.type===CriLaResourceType.IMAGE){s.CurrentImage=t.image}if(t.type===CriLaResourceType.MODEL){if(s.getDuration()===0){var r=u.getFramerate();u.setDuration(r)}s.resourceID=t.id}};i.parseDimension_=function(s){var r=s&&s.textContent;return this.parseDimensionStr_(r)};i.parseDimensionStr_=function(s){var t=0;var r=0;if(s){var u=s.split(" ");t=parseInt(u[0]);r=parseInt(u[1])}if(t===0&&r===0){t=this.defaultDimension_.x;r=this.defaultDimension_.y}return[t,r]};i.parseMargin_=function(u){var s=u.textContent.split(" ");var v=s.length;var x=0;var t=0;var w=0;var r=0;if(v==1){x=t=w=r=s[0]}else{if(v==2){w=r=s[0];x=t=s[1]}else{if(v==3){w=s[0];x=t=s[1];r=s[2]}else{if(v==4){w=s[0];t=s[1];r=s[2];x=s[3]}}}}return[parseInt(x),parseInt(w),parseInt(t),parseInt(r)]};function j(r,s){if(r.resourceID===s.id){return true}var t=r.resourceID.replace(/\.[^.]+$/,".json");if(t===s.id){return true}return false}function c(r){return Array.prototype.indexOf.bind(r)}function e(s){var r=s.split(" ");return r.map(parseFloat)}function k(s,t){var r=new CriLaMarker();r.startFrame_=f(n(s,"start_time"),t);r.length_=f(n(s,"duration"),t);r.text_=l(s,"comment");return r}function m(r){if(r.toLowerCase()=="true"){return true}return false}function o(s){if(!s){return[0,0,0,0]}var r=s.textContent;return q(r)}function q(r){var s=r.split(" ");return s.map(function(t){return parseInt(parseFloat(t)*255)})}function h(r){return"rgba("+r.join(",")+")"}function b(r,s){if(s!=null){return r+s}return r}function a(r){var s=new DOMParser();return s.parseFromString(r,"text/xml")}function g(s,r){return CriLaPolyfill.Array.from(s.querySelectorAll(r))}function n(s,r){return s.querySelector(r)}function l(t,s){var r=n(t,s);return r?r.textContent:""}function p(r){return r?(parseFloat(r.textContent)||0):0}function f(v,u){var r=0;if(v){var s=parseFloat(v.textContent);var t=v.getAttribute("unit");if(t==="SECOND"){r=s*u}else{r=s}}return Math.round(r||0)}function d(s){var r=l(s,"file_path");var u=r.split(".");var t=u[u.length-1];return t==="lspj"}i.createResourceVideo_=function(s,t,r){if(d(s)){return this.createResourceSequenceVideo_(s,t,r)}else{return this.createResourceSingleVideo_(s,t,r)}};i.createResourceSequenceVideo_=function(t,y,s){var u=null;if(CriUAChecker.getOS()===CriUAOS.iOS){u=new CriLaResourceSequenceVideoHls(y,s)}else{u=new CriLaResourceSequenceVideoMse(y,s)}var r=l(t,"file_path");r=b(r,this.resourceURLSuffix_);u.playlistPath=r;var x=n(t,"dimension");var w=this.parseDimension_(x);u.width=w[0];u.height=w[1];var v=l(t,"duration");u.duration=v;return u}})(CriLaC00c.prototype);function CriLaC00e(a,b){this.CriLaP1e0=a;this.CriLaP1e1=null;this.CriLaP1e2=0;this.xhr_=null;this.CriLaP1e3="";this.CriLaP1e4="";this.CriLaP1e5=0;this.CriLaP1e6=false;this.CriLaP1e7=false;this.CriLaP1e8=b;this.loadedCount_=0;this.loadStartOffset_=0;this.startTime_=0;this.referenceDict_={}}var LafImageInfoCaps={CAPS_SRC_RECT:1,CAPS_DEST_RECT:2,CAPS_REFERENCE_FRAME:4};Object.freeze(LafImageInfoCaps);(function(a){a.requestLoad=function(b){var c=this.xhr=new XMLHttpRequest();c.open("GET",b,true);c.responseType="arraybuffer";c.addEventListener("load",this.CriLaM1e4.bind(this));c.send(null)};a.requestLoadStream=function(b){var c=this.xhr_=new XMLHttpRequest();c.open("GET",b,true);c.overrideMimeType("text/plain; charset=x-user-defined");c.addEventListener("progress",this.CriLaM1e0.bind(this));c.addEventListener("loadend",this.CriLaM1e5.bind(this));c.send(null)};a.updateImages_=function(j){if(this.CriLaP1e1==null){this.CriLaP1e1=this.CriLaM1e1(j)}if(j.loaded>this.CriLaP1e1.length){var f=this.CriLaM1e3(this.CriLaP1e1,j.loaded);delete this.CriLaP1e1;this.CriLaP1e1=f}var g=this.xhr_.response;if(g.length<=0){return}var h=0;if(g.lengthh){break}var c=g.charCodeAt(d);var b=c&255;this.CriLaP1e1[d]=b}this.CriLaM1e6();this.CriLaP1e2=h};a.CriLaM1e0=function(b){this.updateImages_(b);criLiveActRelease()};a.CriLaM1e1=function(d){var b=this.readFileSize_(d);var c=new Uint8Array(b);return c};a.readFileSize_=function(b){return this.readFileSizeFromTotal_(b)||this.CriLaM1e2(b)||this.readFileSizeFromXhrResponse_(b)||this.readFileSizeFromLoaded_(b)};a.readFileSizeFromTotal_=function(b){return b.total};a.CriLaM1e2=function(k){var l=8;var d=4;if(k.loaded<(l+d)){return 0}var c=new Uint8Array(d);var b=this.xhr_.response;for(var f=0;f=this.numImages){this.CriLaP1e1=null;delete this.CriLaP1e1;var c=this.referenceDict_;for(var d in c){var f=this.CriLaP1e0[d];var e=this.CriLaP1e0[c[d]];f.refImage=e}this.CriLaP1e8.setState(CriLaResourceState.COMPLETE)}};a.CriLaM1e7=function(b){if(this.CriLaP1e2<128||this.CriLaP1e6==true){return}b.setOffset(32);b.seek(24);this.CriLaP1e3=b.readString();this.CriLaP1e4=b.readString();this.width=b.readInt32();this.height=b.readInt32();this.numImages=b.readInt32();var d=b.readInt32();this.CriLaP1e5=b.readInt32();var c=b.readInt32();if(c==1){this.CriLaP1e8.isLevelOfDetailFile_=true}b.seek(d-4-4-4);this.loadStartOffset_=(b.getOffset());this.CriLaP1e6=true;this.startTime_=criLaTimer_GetTimeMs()};a.CriLaM1e8=function(b){if(this.CriLaP1e6==false){return}if(this.CriLaP1e2Math.min(10,m)){var e=criLaTimer_GetTimeMs();var h=e-this.startTime_;var c=this.CriLaP1e8;c.dlTime_=h;c.progress_=this.loadedCount_;c.progressMax_=m}};a.CriLaM1e9=function(l,h,f,g){var c=l.subarray(h,h+f);var d=g.substr(-4);var i="";if(d==".jpg"){i="image/jpeg"}else{if(d==".png"){i="image/png"}else{if(d==".gif"){i="image/gif"}}}var b=new Blob([c],{type:i});var k=window.URL.createObjectURL(b);var e=new Image();e.name=g;e.src=k;var j=new CriLaC005();j.setImage(e);this.CriLaP1e0.push(j);return j};a.CriLaM1ea=function(g,c,b,e,d){var f=new CriLaC005();f.setImage(g);f.setSrcRect_(c,b,e,d);this.CriLaP1e0.push(f);return f}})(CriLaC00e.prototype);function CriLaC00g(a){this.buffer_=a;this.view_=new DataView(a);this.readOffset_=0;this.isLittleEndian_=true}(function(a){a.setOffset=function(b){this.readOffset_=b};a.getOffset=function(){return this.readOffset_};a.seek=function(b){this.readOffset_+=b};a.readInt8=function(){var b=this.view_.getInt8(this.readOffset_);this.readOffset_+=1;return b};a.readInt32=function(){var b=this.view_.getInt32(this.readOffset_,this.isLittleEndian_);this.readOffset_+=4;return b};a.readString=function(){var d=this.readOffset_;var e=this.readInt32();var c=this.readInt32();var g=this.readInt32();this.seek(g-4);var f="";for(var b=0;b=99.9){c=this.isComplete()}else{var g=this.isLevelOfDetailScene();if(g){c=this.canPlayByLoadProgress(d)}else{c=this.canPlayByTimePercent(d)}}this.canPlay_=c;return c};a.canPlayByLoadProgress=function(d){var c=5;if(d!=null){c=d}var b=false;var e=this.getLoadProgress();if(e>c){b=true}return b};a.canPlayByTimePercent=function(b){var d=void (0);if(b!=null){var e=this.getDuration();var c=this.getFramerate();d=b*e/100*1000/c}return this.canPlayByTimeMs(d)};a.canPlayByTimeMs=function(e){var b=3000;if(e!==undefined){b=e}var f=this.getFramerate();var d=Math.ceil(b/1000*f);var c=this.layerList_.every(function(g){return g.canPlay(d)});return c};a.canDraw=function(){var b=this.layerList_.every(function(c){return c.canDraw()});return b};a.hasVideo=function(){var b=this.getVideoResourceIndex();for(var d=0;d=0};a.hasAudio=function(){var b=this.getAudioResourceIndex();return b>=0};a.getVideoResourceIndex=function(){if(this.videoResourceIndex_==null){this.videoResourceIndex_=this.findVideoResourceIndex_()}return this.videoResourceIndex_};a.getAudioResourceIndex=function(){if(this.audioResourceIndex_==null){this.audioResourceIndex_=this.findAudioResourceIndex_()}return this.audioResourceIndex_};a.getDuration=function(){return this.duration_};a.getFramerate=function(){return this.CriLaP115};a.getNumMarkers=function(){return this.markerList_.length};a.getMarkerByIndex=function(b){return this.markerList_[b]};a.getWidth=function(){return this.Width};a.getHeight=function(){return this.Height};a.setTextLayerMarginLTRB=function(h,f,k,m,b){if(h==null){return this}if(h.resource==null){return this}var l=f;var j=k;var d=(this.Width-m)-f;var n=(this.Height-b)-k;var g=h.resource;h.position.x=l;h.position.y=g.isBoxText?j:j+n;if(g.getType()==CriLaResourceType.TEXT){g.setWidth(d);g.setHeight(n);var i=g.getAlign();var c=i[1];if(c=="baseline"&&!g.isBoxText){var e=parseFloat(g.getFontSize());h.position.y-=e}}h.resource.isSetMargin=true;return this};a.getTextLayerMarginLTRB=function(h){var d=[0,0,0,0];if(h==null){return d}if(h.resource==null){return d}var g=h.resource;if(g.getType()!=CriLaResourceType.TEXT){return d}var f=h.position.x;var j=h.position.y;var k=this.Width-(f+g.getWidth());var i=g.getAlign();var c=i[1];if(c=="baseline"&&!g.isBoxText){var e=parseFloat(g.getFontSize());j=j-e}var b=this.Height-(j+g.getHeight());return[f,j,k,b]}})(CriLaScene.prototype);function CriLaC00i(){CriLaScene.call(this);this.Width=0;this.Height=0;this.BackColor="rgba(0,0,0,0)"}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a);b.requestLoad=function(d,e,c){this.layerList_.forEach(function(f){f.requestLoad(d,e,c)})};b.unloadCommon_=function(){this.canPlay_=false;this.isComplete_=false};b.unload=function(){this.layerList_.forEach(function(c){c.unload()});this.unloadCommon_()};b.reload=function(){this.layerList_.forEach(function(c){c.reload()})};b.unloadVideoResource=function(){this.layerList_.forEach(function(c){c.unloadVideoResource()});this.unloadCommon_()};b.GetLayer=function(c){return this.layerList_[c]};b.GetContainLayers=function(n,k,p,q,f){var l=this.layerList_.length;var j=[];for(var s=0;s=o){continue}var c=w.refScene;var m=w.getTransformInverseMatrix();var d=f.multiplyMatrix(m);if(c!=null){if(q==true){if(w.isFrameRemap_==true){p=w.remapTime_*w.refScene.CriLaP115}var u=c.GetContainLayers(n,k,p,q,d);if(u.length>0){j=j.concat(u)}}else{v=c.Width;r=c.Height}}else{var g=w.resource;v=g.width;r=g.height}if(w.resource!=null){var z=w.resource.type;if(z==CriLaResourceType.TEXT){d.m31+=w.resource.height}}var e=new CriGrxVector2();e.x=n;e.y=k;e=d.multiplyVector2(e);if(e.x>0&&e.x0&&e.y1?f[f.length-1]-f[f.length-2]:f[0];var g=this.guessIntroEndIndexAndOutroStartIndex_(j,k);var c=g[0];var n=g[1];var b=this.calculateUpdatingOffsetAndScale_(f,c,n,m);if(b==null){return false}var e=b[0];var i=b[1];var l=b[2];var h=f[c];f=this.arithmeticAddInPlace_(f,n,f.length,i);f=this.arithmeticMultiplyInPlace_(f,c+1,n-1,l,h);f=this.arithmeticAddInPlace_(f,0,f.length,e);return true};a.getIntroOutroDurationList=function(e){if(e==null){return null}var h=[];for(var g=0;g>1;var g=0;var h=0;while(b=j[c-1]){g=c-1;h=g+1;break}i=c-1}else{if(e<=j[c+1]){g=c;h=g+1;break}b=c+1}if(b==i){g=b;h=g+1;break}c=(b+i)>>1}return[g,h]};a.CalculateAnimationAll_=function(c,b){c.getLayerList().filter(function(d){return d.containsSceneFrame(b)}).reverse().forEach(function(d){this.CalculateAnimation_(d,b)},this)};a.CalculateAnimation_=function(h,d){if(h.AnimationCurveSet==null){return}var k=h.AnimationCurveSet.Curves.length;for(var e=0;e=b.Keys[b.Keys.length-1]){m=b.Values[b.Keys.length-1]}else{var n=this.FindKey_(b,d);var g=n[0];var j=n[1];var c=b.Keys[g];var l=b.Keys[j];if(f=="alpha"&&l-c<=1){m=this.interpolateCeilStep_(d,c,b.Values[g],l,b.Values[j])}else{m=this.interpolateLinear_(d,c,b.Values[g],l,b.Values[j])}}}switch(f){case"position_x":h.position.x=m;h.position.x-=h.isBoxText()?0:h.pivot.x;h.position.x=Math.round(h.position.x);break;case"position_y":h.position.y=m;h.position.y-=h.isBoxText()?0:h.pivot.y;h.position.y=Math.round(h.position.y);break;case"scale_x":h.scale.x=m;h.scale.x*=0.01;break;case"scale_y":h.scale.y=m;h.scale.y*=0.01;break;case"rotation_z":h.rotation.z=m*3.14/180;break;case"alpha":h.Alpha=m;h.Alpha*=0.01;break;case"time_remap":h.remapTime_=m;break}}if(h.ImageIndexCurve!=null){this.ResolveResource_(h,h.ImageIndexCurve,d)}};a.interpolateLinear_=function(f,h,g,c,b){var e=(f-h)/(c-h);var d=CriGrxMath.lerp(g,b,e);return d};a.interpolateHalfStep_=function(d,g,e,c,b){var f=(g+c)/2;if(d<=f){return e}return b};a.interpolateCeilStep_=function(d,f,e,c,b){if(de){r=n;var g=j-e;u.frameBlendWeight=g}else{var k=this.FindKey_(h,j);var s=k[0];var o=k[1];var g=(j-h.Keys[s])/(h.Keys[o]-h.Keys[s]);if(g<0.5||u.frameBlendEnabled==true){r=s}else{r=o}u.frameBlendWeight=g;t=o;if(t>=h.Values.length){t=r}}}r=Math.floor(r);t=Math.floor(t);var p=h.Values[r];t=h.Values[t];var l=null;var b=null;if(p=0;q--){var m=h.Values[q];var d=c.CriLaP1e0[m];if(d&&d.isComplete()){l=d;break}}}u.CurrentImage=l;u.interpolateImage=b};a.setRenderer=function(b){this.renderer_=b};a.clear=function(b){this.renderer_.clearRect(b.left,b.top,b.getWidth(),b.getHeight())};a.fill=function(c,b){this.renderer_.fillRect(c.left,c.top,c.getWidth(),c.getHeight(),b)};a.drawScene=function(e,g,k){this.CalculateAnimationAll_(e,g);var c={trsMatrix:k.trsMatrix,clips:this.getClipsFromSceneAndOptions_(e,k),alpha:k.alpha,blendMode:k.blendMode,worldMatrix:k.worldMatrix,camera:k.camera,fps:e.getFramerate&&e.getFramerate()};Object.freeze(c);var b=e.getNumLayers();for(var d=b-1;d>=0;d--){var f=e.GetLayer(d);var h=f.isVisibleAtSceneFrame(g);if(h==false){continue}var j=f.getFrameFromSceneFrame(g);this.drawLayer(f,j,c)}};a.drawLayer=function(g,d,n){var h=n.trsMatrix;var j=g.getTransformMatrix();var k=j.multiplyMatrix(h);var l=n.blendMode==null||n.blendMode==CriLaBlendMode.NONE||n.blendMode==CriLaBlendMode.ALPHA_BLEND?g.BlendMode:n.blendMode;var e=n.alpha*g.Alpha;var i="";var c=this.CriLaP11b;var f=this.CriLaP11e;if(g.resource){i=g.resource.type;if(i==CriLaResourceType.VIDEO){var b=g.getMediaPlayer();if(b!=null){c=b.getVideoElement();f=b.getAudioElement()}}}var m={clips:n.clips,trsMatrix:k,layer:g,layerFrame:d,alpha:e,blendMode:l,isCanvasVideo:this.CriLaP11d,video:c,audio:f,worldMatrix:n.worldMatrix,camera:n.camera,fps:n.fps};if(g.refScene){this.drawResourceRefScene(g.refScene,m)}else{this.drawResource_(g.resource,m)}};a.drawResource_=function(d,b){var c=d.drawnBy(this,b);if(!c){this.isSuccessDraw_=false}};a.drawResourceRectangle=function(c,b){return this.renderer_.drawRectangle(c,b)};a.drawResourceImage=function(c,b){return this.renderer_.drawImage(c,b)};a.drawResourceVideo=function(c,b){return this.renderer_.drawVideo(c,b)};a.drawResourceText=function(c,b){return this.renderer_.drawText(c,b)};a.drawResourceModel=function(c,b){return this.renderer_.drawModel(c,b)};a.drawResourceRefScene=function(d,b){var c=b.layer;var e=b.layerFrame;if(c.isFrameRemap_==true){e=c.remapTime_*c.refScene.CriLaP115}b.blendMode=c.BlendMode;this.drawScene(c.refScene,e,b)};a.getDefaultFontScale=function(){return this.renderer_.getDefaultFontScale()};a.createClipInfo_=function(d,c,b){return{trsMatrix:d,width:c,height:b}};a.getClipsFromSceneAndOptions_=function(c,b){return(b.clips||[]).concat(this.createClipInfo_(b.trsMatrix,c.getWidth(),c.getHeight()))};a.setRenderTarget=function(b){this.renderer_.setRenderTarget(b)};a.isSuccessDraw=function(){return this.isSuccessDraw_};a.ResetSuccessDrawFlag=function(){this.isSuccessDraw_=true}})(CriLaC003.prototype);function CriLaMgRendererBase(b,a){this.ctx_=this.getContextFromCanvas_(b);this.CriLaP11m=a;this.renderTarget_=null}(function(a){a.getContextNative=function(){return this.ctx_};a.getContextFromCanvas_=function(b){};a.clearRect=function(b,e,c,d){};a.fillRect=function(b,f,c,e,d){};a.drawRectangle=function(c,b){};a.drawImage=function(c,b){};a.drawVideo=function(c,b){};a.drawText=function(c,b){};a.drawModel=function(c,b){};a.getDefaultFontScale=function(){return 1};a.setRenderTarget=function(b){this.renderTarget_=b}})(CriLaMgRendererBase.prototype);function CriLaMgRenderer2d(b,a){CriLaMgRendererBase.call(this,b,a)}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a);b.getContextFromCanvas_=function(c){return c.getContext("2d")};b.clearRect=function(c,g,e,f){var d=this.getContextNative();d.clearRect(c,g,e,f)};b.fillRect=function(c,i,e,g,f){var d=this.getContextNative();d.fillStyle=f;d.fillRect(c,i,e,g)};b.drawRectangle=function(d,c){return this.withCtxOptions_(c,this.drawRectangle_,this,[d,c])};b.drawImage=function(d,c){return this.withCtxOptions_(c,this.drawImage_,this,[d,c])};b.drawVideo=function(d,c){return this.withCtxOptions_(c,this.drawVideo_,this,[d,c])};b.drawText=function(d,c){return this.withCtxOptions_(c,this.drawText_,this,[d,c])};b.getDefaultFontScale=function(){if(!this.defaultFontScale_){this.defaultFontScale_=this.measureDefaultFontScale_()}return this.defaultFontScale_};b.drawRectangle_=function(e,d){var c=this.getContextNative();c.fillStyle=e.color;c.fillRect(0,0,e.width,e.height);return true};b.drawImage_=function(i,f){var c=this.getContextNative();var g=f.layer;var h=g.CurrentImage;try{h.drawWH(c,i.width,i.height);var d=g.frameBlendEnabled;if(d){c.globalAlpha*=g.frameBlendWeight;g.interpolateImage.drawWH(c,i.width,i.height)}}catch(j){}return true};b.drawVideo_=function(g,k){var j=this.getContextNative();if(k.isCanvasVideo===false){return true}var h=null;if(g.isPreDecodeEnabled()==true){var e=k.fps||30;var i=g.getFrame(k.layerFrame/e);if(i==null){return false}i.drawWH(j,i.srcWidth,i.srcHeight)}else{var c=k.video;if(c==null){return true}var f=k.layerFrame/30;if(c.seeking==false&&c.readyState>0){c.currentTime=f}h=c;var d=CriLaUtility.FitASizetoBSize(c.videoWidth,c.videoHeight,g.width,g.height);j.drawImage(h,0,0,d[0],d[1])}return true};b.drawText_=function(d,e){var r=this.getContextNative();var h=d.getWrapMode();var s=d.getAlign();var k=s[0];var w=s[1];if(h!="nowrap"&&k==="end"){k="right"}r.font=d.font;r.textAlign=k;r.fillStyle=d.fillColor;r.strokeStyle=d.strokeColor;r.lineWidth=d.strokeWidth;d.wrappingText(r);var q=d.getTextLines();var z=q.length;var j=parseInt(d.fontSize);var o=d.height/z;var g=d.line_height;if(h!="nowrap"){o=j*g}o=Math.round(o);var u=0;var v=0;if(w==="top"){var n=d.getHeight();u=-n+o}else{if(w==="bottom"){var c=o;u=(-1)*(z)*o+c}else{if(w==="middle"){var n=d.getHeight();var c=o/2;u=(-n/2)+(-0.5)*(z-1)*o+c}}}if(h!="nowrap"){if(k==="right"||k==="end"){if(d.isSetMargin==false){v=(d.isBoxText)?d.getWidth():0}else{v=d.getWidth()}}else{if(k==="center"){if(d.isSetMargin==false){v=(d.isBoxText)?d.getWidth()/2:0}else{v=d.getWidth()/2}}}}var f=0.13;u+=d.isBoxText==true?j*(2-g-f):0;for(var t=0;th};a.resizeCanvasContain=function(e){if(e){if(this.isWiderThanParent_()){this.resizeCanvasToFixedRatioWidth("100%",CriLaCanvasResolutionUsage.STYLE,true)}else{this.resizeCanvasToFixedRatioHeight("100%",CriLaCanvasResolutionUsage.STYLE,true)}this.resizeType_="contain";this.centeringCanvas()}else{this.resizeType_="";this.uncenteringCanvas()}};a.resizeCanvasCover=function(e){if(e){if(this.isWiderThanParent_()){this.resizeCanvasToFixedRatioHeight("100%",CriLaCanvasResolutionUsage.STYLE,true)}else{this.resizeCanvasToFixedRatioWidth("100%",CriLaCanvasResolutionUsage.STYLE,true)}this.resizeType_="cover";this.centeringCanvas()}else{this.resizeType_="";this.uncenteringCanvas()}};a.resizeCanvasFill=function(e){if(e){var f=this.controlWrapperElem_.parentNode;this.resizeCanvas(f.clientWidth,f.clientHeight,CriLaCanvasResolutionUsage.ATTRIBUTE,true);this.resizeType_="fill"}else{this.resizeType_=""}};a.centeringCanvas=function(){var e=this.controlWrapperElem_;CriLaHtmlCss.middle(e);CriLaHtmlCss.center(e)};a.uncenteringCanvas=function(){var e=this.controlWrapperElem_.style;e.left=e.top=""};a.resizeCurrentSceneToCanvas=function(){var e=this.getCanvasSceneScales_();if(!e){return}this.CriLaP118.x=e.x;this.CriLaP118.y=e.y;this.CriLaP116.x=this.CriLaP116.y=0};a.resizeContentsToCanvasFixedRatio=function(){var e=this.getCanvasSceneScales_();if(!e){return}this.CriLaP118.x=this.CriLaP118.y=Math.min(e.x,e.y);this.CriLaP116.x=this.CriLaP116.y=0};a.getCanvasSceneScales_=function(){var f=this.CriLaP111;if(!f){return null}var e=this.getCanvas();var h=e.width/f.Width;var g=e.height/f.Height;return{x:h,y:g}};a.resizeCanvasToFixedRatioWidth=function(f,e,h){var g=CriLaCanvasResolutionUsage.STYLE;if(e!=null){g=e}this.resizeCanvas(f,void (0),g,h)};a.resizeCanvasToFixedRatioHeight=function(e,f,h){var g=CriLaCanvasResolutionUsage.STYLE;if(f!=null){g=f}this.resizeCanvas(void (0),e,g,h)};a.resizeFromParentElement=function(){this.resizeCanvasToFixedRatioWidth("100%",CriLaCanvasResolutionUsage.STYLE)};a.setNoneScrollMode=function(){this.bodyPosition=document.body.style.getPropertyValue("position");this.bodyTop=document.body.style.getPropertyValue("top");this.bodyOverflow=document.body.style.getPropertyValue("overflow");document.body.style.setProperty("position","fixed");document.body.style.setProperty("top",-this.bodyScrollY+"px");document.body.style.setProperty("overflow","hidden")};a.restoreFromeNoneScrollMode=function(){document.body.style.setProperty("position",this.bodyPosition);document.body.style.setProperty("top",this.bodyTop);document.body.style.setProperty("overflow",this.bodyOverflow)};a.saveScrollPosition=function(){this.bodyScrollY=window.scrollY};a.restoreScrollPosition=function(){window.scrollTo(0,this.bodyScrollY)};a.fullscreen=function(f){f=Boolean(f);var g=this.isInIframe();if(g){this.fullscreenNative(false);var i=new CriLaEventArgs(CriLaEvent.FULLSCREEN_REQUESTED,this,{fullscreen:f});this.dispatchEvent(CriLaEvent.FULLSCREEN_REQUESTED,i);return}if(f===this.isFullscreen()){return}if(f){this.fullscreenNative(false);this.saveScrollPosition();var j=window.scrollX;var h=window.scrollY;window.scrollTo(j,h);this.fullscreenWrap_();var e=this.exitFullscreenByEscCallback_=this.exitFullscreenByEsc_.bind(this);window.addEventListener("keydown",e);this.setNoneScrollMode();this.fullscreenImpl_(true)}else{this.fullscreenUnwrap_();var e=this.exitFullscreenByEscCallback_;if(e){window.removeEventListener("keydown",e);this.exitFullscreenByEscCallback_=null}this.fullscreenImpl_(false);this.restoreFromeNoneScrollMode();this.resizeFromHistory_();this.restoreScrollPosition()}this.setFullscreen_(f)};a.fullscreenWrap_=function(){var e=this.controlWrapperElem_;var h=e.style;this.lacDivPosition_=h.position;h.position="absolute";var g=document.createElement("div");g.classList.add("liveact-fullscreen-background");var f=this;g.addEventListener("click",function(i){if(i.eventPhase===2){f.fullscreen(false)}});CriLaHtmlCss.wrap(e,g)};a.fullscreenUnwrap_=function(){var e=this.controlWrapperElem_;var f=e.style;f.position=this.lacDivPosition_;CriLaHtmlCss.unwrap(e)};a.exitFullscreenByEsc_=function(e){if(e.key==="Escape"||e.keyCode===27){this.fullscreen(false)}};a.isFullscreen=function(){return this.isFullscreen_};a.setFullscreen_=function(e){e=Boolean(e);var f=this.isFullscreen();if(e!==f){this.isFullscreen_=e;this.dispatchEvent(CriLaEvent.FULLSCREEN_CHANGE)}};a.fullscreenNative=function(e){e=Boolean(e);if(e===this.isFullscreenNative_){return}var g=this.getCurrentScene();if(this.isFullscreenNativeToVideoElem_()&&!(g&&g.hasVideo())){return}try{if(e){this.fullscreen(false);if(!this.isRegistedFullscreenChangeHandler_){this.registerFullscreenNativeEvent_();this.isRegistedFullscreenChangeHandler_=true}this.requestFullscreenNative_()}else{this.exitFullscreenNative_()}}catch(f){console.warn(f.toString())}};a.isFullscreenNative=function(){return this.isFullscreenNative_};a.isFullscreenNativeToVideoElem_=function(){var e=CriUAChecker.getOS()===CriUAOS.iOS;return e};a.registerFullscreenNativeEvent_=function(){if(this.isFullscreenNativeToVideoElem_()){var e=this.getCurrentMediaPlayer().getVideo();this.beginFullscreenNativeHandler_=this.beginFullscreenNative_.bind(this);this.endFullscreenNativeHandler_=this.endFullscreenNative_.bind(this);e.addEventListener("webkitbeginfullscreen",this.beginFullscreenNativeHandler_,false);e.addEventListener("webkitendfullscreen",this.endFullscreenNativeHandler_,false)}else{this.fullscreenNativeChangeHandler_=this.fullscreenNativeChange_.bind(this);CriLaEventDispatcher.global.addEventListener("fullscreenchange",this.fullscreenNativeChangeHandler_,false)}};a.requestFullscreenNative_=function(){var e=(this.isFullscreenNativeToVideoElem_())?this.getCurrentMediaPlayer().getVideo():this.controlWrapperElem_;CriLaPolyfill.Element.requestFullscreen(e)};a.exitFullscreenNative_=function(){var e=(this.isFullscreenNativeToVideoElem_())?this.getCurrentMediaPlayer().getVideo():document;CriLaPolyfill.Element.exitFullscreen(e)};a.setFullscreenNativeClassName=function(g){g=Boolean(g);var k=(g)?"add":"remove";var f=this.controlWrapperElem_;var i=this.getCurrentScene();var h=this.getCanvas();f.classList[k](CriLaFullscreenNativeCssClass.LAC_DIV);if(h){h.classList[k](CriLaFullscreenNativeCssClass.LIVEACT_CANVAS)}if(!i||!i.hasVideo()){return}var e=this.getCurrentMediaPlayer().getVideo();var j=e.parentNode;if(!j||j.parentNode!=f){return}j.classList[k](CriLaFullscreenNativeCssClass.LAC_VIDEO_DIV);e.classList[k](CriLaFullscreenNativeCssClass.LIVEACT_VIDEO)};a.fullscreenNativeChange_=function(){var e=CriLaPolyfill.Document.fullscreenElement;if(e){this.beginFullscreenNative_()}else{this.endFullscreenNative_()}};a.beginFullscreenNative_=function(){this.isFullscreenNative_=true;this.dispatchEvent(CriLaEvent.FULLSCREEN_NATIVE_CHANGE);if(this.isFullscreenNativeToVideoElem_()){var f=this.getCurrentMediaPlayer().getVideo();var g=this.timeManager_;g.syncStatusToMedia(f)}else{this.setFullscreenNativeClassName(true);var e=this.controlWrapperElem_;this.bufferStyleWidth_=e.style.width;e.style.width="100vw"}};a.endFullscreenNative_=function(){this.isFullscreenNative_=false;this.dispatchEvent(CriLaEvent.FULLSCREEN_NATIVE_CHANGE);var h=this.getControls();h.setButtonState(CriLaControlComponentName.FULLSCREEN_NATIVE_BUTTON,false);this.isRegistedFullscreenChangeHandler_=false;if(this.isFullscreenNativeToVideoElem_()){var f=this.getCurrentMediaPlayer().getVideo();var g=this.timeManager_;g.exitSyncStatusToMedia(f);f.removeEventListener("webkitbeginfullscreen",this.beginFullscreenNativeHandler_,false);f.removeEventListener("webkitendfullscreen",this.endFullscreenNativeHandler_,false);this.beginFullscreenNativeHandler_=null;this.endFullscreenNativeHandler_=null}else{this.setFullscreenNativeClassName(false);var e=this.controlWrapperElem_;if(this.bufferStyleWidth_){e.style.width=this.bufferStyleWidth_;this.bufferStyleWidth_=null}CriLaEventDispatcher.global.removeEventListener("fullscreenchange",this.fullscreenNativeChangeHandler_);this.fullscreenNativeChangeHandler_=null}};a.requestPictureInPicture=function(){var g=this.enablePictureInPicture();if(g&&!this.isPictureInPicture_){var i=this.getCurrentScene();if(i&&i.hasVideo()){var e=this.getCurrentMediaPlayer().getVideo();CriLaHtmlCss.setVisibility(e,true);var k=e.requestPictureInPicture();if(k){k.then(function(){},function(l){console.log(l)})}this.isPictureInPicture_=true;this.dispatchEvent(CriLaEvent.PICTURE_IN_PICTURE_REQUESTED);this.dispatchEvent(CriLaEvent.PICTURE_IN_PICTURE_CHANGE);var h=this;var f=this.timeManager_;f.syncStatusToMedia(e);document.addEventListener("leavepictureinpicture",j);function j(){if(!h.appliedPictureInPicture()){return}h.isPictureInPicture_=false;h.dispatchEvent(CriLaEvent.PICTURE_IN_PICTURE_CHANGE);document.removeEventListener("leavepictureinpicture",j);f.exitSyncStatusToMedia(e)}}}};a.exitPictureInPicture=function(){var f=this.appliedPictureInPicture();if(f){var e=document.exitPictureInPicture();if(e){e.then(function(){},function(g){console.log(g)})}}};a.appliedPictureInPicture=function(){return this.isPictureInPicture_};a.enablePictureInPicture=function(){var e=this.getCurrentScene();var f=document.pictureInPictureEnabled;if(e&&e.hasVideo()&&f){return true}else{return false}};a.setControlStyle=function(f){var e=this.getControls();e.setControlStyle(f)};a.setupControlCommon=function(){var f=this.videoPointerMoved_.bind(this);var e=this.getCanvas();if(CriUAChecker.isMobile()===false){e.addEventListener("mousemove",f)}e.addEventListener("click",f)};a.setupVideoControl=function(){this.setupControlCommon();this.getControls().setupStyleVideo()};a.setupAudioControl=function(){this.setupControlCommon();this.getControls().setupStyleAudio()};a.setupDefaultControl=function(){this.setupControlCommon();this.getControls().setupStyleNoSeekBar()};a.setupAllaroundControl=function(){this.setupControlCommon();this.getControls().setupStyleAllaroundImage()};a.setupSwipeControl=function(){this.setupControlCommon();this.getControls().setupStyleSwipe()};a.setupTemplateControl=function(){this.setupControlCommon();this.getControls().setupStyleTemplate()};a.setOverlayStyle=function(f){var e=this.getOverlays();e.setOverlayStyle(f)};a.getOverlayStyle=function(){var e=this.getOverlays();return e.getOverlayStyle()};a.setupDefaultOverlay=function(){this.getOverlays().setupStyleNoSeekBar()};a.setupVideoOverlay=function(){this.getOverlays().setupStyleVideo()};a.setupAllaroundOverlay=function(){this.getOverlays().setupStyleAllaroundImage()};a.setupSwipeOverlay=function(){this.getOverlays().setupStyleSwipe()};a.isEnabledControlTemplate=function(){return this.enabledControlTemplate_};a.videoPointerMoved_=function(f){this.getControls().resetAlpha()};a.setPreload=function(j){var e=j.type;var l=j.duration;if(e){var g="";switch(e){case"none":g="none";break;case"header":g="metadata";break;case"auto":g="auto";break;default:g="auto";break}this.setVideoPreloadType(g)}if(l){var h=CriUnitValue.splitUnitFloat(l,"s");var f=h[0];var k=h[1];var m=k=="s"&&!isNaN(parseFloat(f));var i=m?f:"5.0";this.setPreloadDurationToMediaAttribute(i)}};a.getChapterSeparatorsFrame=function(){return this.chapterSeparatorsFrame_};a.getChapterSeparatorsTimeMs=function(){var e=this.getCurrentSceneFrameRate();return this.chapterSeparatorsFrame_.map(function(f){return CriUnitValue.frameToSecond(e,f)*1000},this)};a.setChapterSeparatorsFrame=function(e){e=CriLaPolyfill.Array.from(e).map(function(f){return Math.floor(f)});if(e.length>this.maxChapterSeparatorNum_){return false}e=CriLaPolyfill.Array.from(e).sort(function(g,f){return g-f});if(CriLaUtility.Array.isEqual(e,this.chapterSeparatorsFrame_)){return}CriLaUtility.Array.copy(e,this.chapterSeparatorsFrame_);this.dispatchEvent(CriLaEvent.CHAPTER_SEPARATOR_CHANGE);return true};a.addChapterSeparatorFrame=function(f){if(this.chapterSeparatorsFrame_.length+1>this.maxChapterSeparatorNum_){return false}var j=CriLaPolyfill.Array.from(this.chapterSeparatorsFrame_);if(f){j.push(f)}else{var h=this.getFrame();var g=this.getCurrentSceneDuration();for(var e=0;e=0){var f=g.getVideoResourceIndex();var e=this.getResourceByIndex(f);return e.getType()==CriLaResourceType.SEQUENCE_VIDEO}return false};a.serveMemoryReduction_=function(){var e=this;window.addEventListener("blur",function(){var f=CriLiveActSharedSettings.autoPause||e.isPaused();if(!f){return}if(e.memoryReduction){e.unloadDecodedData_();criLiveActRelease()}});window.addEventListener("focus",function(){if(e.memoryReduction){e.reloadDecodedData_();criLiveActRelease()}})};a.serveAnalytics_=function(){if(!false){this.addEventListener(CriLaEvent.FIRST_PLAY_START,this.CriLaM116.bind(this));this.addEventListener(CriLaEvent.CLICK,this.sendAnalyticsClick_.bind(this));this.addEventListener(CriLaEvent.PLAY_REJECTED,this.sendAnalyticsPlayRejected_.bind(this));this.addEventListener(CriLaEvent.PLAY_RETRY,this.sendAnalyticsPlayRetry_.bind(this))}};a.serveClick_=function(){var g=this;var f=g.getCanvas();var e=this.clickEmulator_=new CriLaClickEmulator(f);e.onclick=function(i){var l=CriLaHtmlCss.getElementWidthHeight(f);var h=i.x/l.getWidth()*g.getCurrentSceneWidth();var j=i.y/l.getHeight()*g.getCurrentSceneHeight();var o={x:h,y:j};var n=g.getContainedLayers(h,j,false);var k={point:o,layers:n};var m=new CriLaEventArgs(CriLaEvent.CLICK,g,k);g.dispatchEvent(CriLaEvent.CLICK,m)}};a.setClickThreshold=function(e,f){this.clickEmulator_.setThresholdPathLength(e);this.clickEmulator_.setThresholdDuration(f)};a.registerWatermark_=function(){this.addEventListener(CriLaEvent.WATERMARK_CLICK,function(){this.pagejump("https://www.cri-mw.co.jp/liveact/")}.bind(this))};a.setCanPlayPollingEvent_=function(){var f=this;function e(){if(f.canPlayCurrentScene()){f.dispatchEvent(CriLaEvent.CAN_PLAY);f.isPollingCanplay_=false}else{window.setTimeout(e,100)}}this.isPollingCanplay_=true;window.setTimeout(e,100)};a.serveCanPlay_=function(){this.addEventListener(CriLaEvent.LJT_LOADED,this.setCanPlayPollingEvent_.bind(this))};a.setCanDrawPollingEvent_=function(){var e=this;function f(){if(e.canDrawCurrentScene()){e.dispatchEvent(CriLaEvent.CAN_DRAW)}else{window.setTimeout(f,100)}}window.setTimeout(f,100)};a.serveCanDraw_=function(){this.addEventListener(CriLaEvent.LJT_LOADED,this.setCanDrawPollingEvent_.bind(this))};a.registerUpdateUi_=function(){var i=this;var f=i.getControls();i.addEventListener(CriLaEvent.FULLSCREEN_CHANGE,function(){f.setButtonState(CriLaControlComponentName.FULLSCREEN_BUTTON,i.isFullscreen())});var h=function(){i.fullscreen(!i.isFullscreen())};f.addEventListener(CriLaControlEvent.FULLSCREEN_BUTTON_CLICKED,h);i.addEventListener(CriLaEvent.FULLSCREEN_NATIVE_CHANGE,function(){f.setButtonState(CriLaControlComponentName.FULLSCREEN_NATIVE_BUTTON,i.isFullscreenNative())});var j=function(){i.fullscreenNative(!i.isFullscreenNative())};f.addEventListener(CriLaControlEvent.FULLSCREEN_NATIVE_BUTTON_CLICKED,j);i.addEventListener(CriLaEvent.PICTURE_IN_PICTURE_CHANGE,function(){f.setButtonState(CriLaControlComponentName.PICTURE_IN_PICTURE_BUTTON,i.appliedPictureInPicture())});var e=function(){var k=i.isInIframe();if(k==true){i.dispatchEvent(CriLaEvent.PICTURE_IN_PICTURE_REQUESTED)}else{if(!i.appliedPictureInPicture()){i.requestPictureInPicture()}else{i.exitPictureInPicture()}}};f.addEventListener(CriLaControlEvent.PICTURE_IN_PICTURE_BUTTON_CLICKED,e);i.addEventListener(CriLaEvent.CLICK,function(){if(f.isMiniMenuOpenAny({excludePinnedMiniMenu:true})){f.closeMiniMenuAll({excludePinnedMiniMenu:true})}else{if(i.isTapPlayEnabled()){f.dispatchEventByType(CriLaControlEvent.PLAY_BUTTON_CLICKED)}}});f.addEventListener(CriLaControlEvent.SCREEN_PLAY_BUTTON_CLICKED,function(){i.play()});i.addEventListener(CriLaEvent.PLAY_START,function(){var k=function(){f.setScreenPlayVisibility(false);i.removeEventListener("frameupdate",k)};i.addEventListener("frameupdate",k);f.setButtonState(CriLaControlComponentName.PLAY_BUTTON,true);f.closeMiniMenu("playbackRangeButton")});i.addEventListener(CriLaEvent.PLAY_END,function(){f.setButtonState(CriLaControlComponentName.PLAY_BUTTON,false);f.seekLastFrame()});i.addEventListener(CriLaEvent.PAUSE,function(){f.setButtonState(CriLaControlComponentName.PLAY_BUTTON,false);f.resetAlpha()});i.addEventListener(CriLaEvent.STOP,function(){f.setButtonState(CriLaControlComponentName.PLAY_BUTTON,false);f.resetAlpha();f.setFrame(0)});f.addEventListener(CriLaControlEvent.PLAY_BUTTON_CLICKED,function(){if(i.isPaused()){i.play()}else{i.pause()}});f.addEventListener(CriLaControlEvent.SKIP_BACKWARD_BUTTON_CLICKED,function(l){var k=i.getSkipBackwardTimeMs();i.stepTimeMs(-1*k)});f.addEventListener(CriLaControlEvent.SKIP_FORWARD_BUTTON_CLICKED,function(l){var k=i.getSkipForwardTimeMs();i.stepTimeMs(k)});i.addEventListener(CriLaEvent.SEEKBAR_RESET_NEEDED,function(){var n=i.getCurrentSceneDuration();var l=i.getCurrentSceneFrameRate();f.resetSeekBar(n,l);var k=i.getPlaybackRangeFrame();f.setPlaybackRangeFrame(k.beginFrame,k.endFrame);var m=i.getFrame();f.setFrame(m)});i.addEventListener(CriLaEvent.FRAME_UPDATED,function(l){f.setFrame(i.getFrame());if(!i.isPaused()){var k=l.detail.stepTimeMs;f.updateAlpha(k)}});i.addEventListener(CriLaEvent.LOADED_FRAME_CHANGE,function(k){var l=k.detail.loadedFrames;f.setLoadedFrame(l)});i.addEventListener(CriLaEvent.VOLUME_CHANGE,function(){f.setVolume(i.getVolume()/100)});f.addEventListener(CriLaControlEvent.VOLUME_CHANGED,function(k){i.setVolume(k.detail.volume*100)});f.addEventListener(CriLaControlEvent.VOLUME_CHANGE_START,function(k){i.memoryVolume()});f.addEventListener(CriLaControlEvent.VOLUME_BUTTON_CLICKED,function(){i.mute(!i.isMuted())});i.addEventListener(CriLaEvent.LOOP_CHANGE,function(){f.setButtonState(CriLaControlComponentName.LOOP_BUTTON,i.getLoopFlg())});f.addEventListener(CriLaControlEvent.LOOP_BUTTON_CLICKED,function(){i.setLoopFlg(!i.getLoopFlg())});f.addEventListener(CriLaControlEvent.SEEK,function(k){i.setFrame(k.detail.frame)});var g;f.addEventListener(CriLaControlEvent.SEEK_START,function(k){g=i.isPaused();if(!g){i.pause()}});f.addEventListener(CriLaControlEvent.SEEK_END,function(k){if(!g){i.play()}});i.addEventListener(CriLaEvent.CHAPTER_SEPARATOR_CHANGE,function(k){var l=i.getChapterSeparatorsFrame();f.setChapterSeparatorsFrame(l);f.setChapterSeparatorAddButtonState(l.length!==this.maxChapterSeparatorNum_)}.bind(this));f.addEventListener(CriLaControlEvent.CHAPTER_SEPARATOR_CHANGED,function(k){i.setChapterSeparatorsFrame(k.detail.frames)});f.addEventListener(CriLaControlEvent.CHAPTER_SEPARATOR_ADDED,function(k){i.addChapterSeparatorFrame()});i.addEventListener(CriLaEvent.PLAYBACK_RANGE_CHANGE,function(l){var k=i.getPlaybackRangeFrame();f.setPlaybackRangeFrame(k.beginFrame,k.endFrame)});f.addEventListener(CriLaControlEvent.PLAYBACK_RANGE_CHANGED,function(k){i.setPlaybackRangeFrame(k.detail.beginFrame,k.detail.endFrame)});f.addEventListener(CriLaControlEvent.PLAYBACK_RANGE_RESET,function(k){i.resetPlaybackRange()});f.addEventListener(CriLaControlEvent.PLAYBACK_RANGE_ADJUSTMENT_MODE_CHANGED,function(k){if(k.detail.enabledMode&&i.isPlaying()){i.pause()}});f.addEventListener(CriLaControlEvent.PLAYBACK_RANGE_MOVE_START,function(k){if(i.isPlaying()){i.pause()}});f.addEventListener(CriLaControlEvent.PREV_FRAME_CLICKED,function(k){if(i.isPlaying()){i.pause()}i.stepFrame(-1,false)});f.addEventListener(CriLaControlEvent.NEXT_FRAME_CLICKED,function(k){if(i.isPlaying()){i.pause()}i.stepFrame(1,false)});i.addEventListener(CriLaEvent.PLAYBACK_RATE_CHANGE,function(m){var k=i.getPlaybackRate();var l=f.getComponent(CriLaControlComponentName.PLAYBACK_RATE_BUTTON);l.setPlaybackRate(k)});f.addEventListener(CriLaControlEvent.PLAYBACK_RATE_CHANGED,function(k){i.setPlaybackRate(k.detail.playbackRate)})};a.serveAdvancedAnalytics_=function(){var e=this;if(!false){e.addEventListener(CriLaEvent.CAN_PLAY,function(){e.serveAdvancedAnalyticsImpl_()})}};a.serveAdvancedAnalyticsImpl_=function(){var n=this;var k=n.getContentType();var l=["rotate360","allaround-sphere"];if(l.indexOf(k)!==-1){return}var f=new CriLaAdvancedAnalytics(n);var g=0;var j=function(){if(g<10000){g+=1000;return 1000}else{g+=5000;return 5000}};var m={header:{"Content-Type":"application/json","x-api-key":"UtAblA4ShL1dDBSXl2jtR6U905i3QU548YPmKeQf"},url:"https://analytics.liveact-vault.com/advanced1/records"};var o=function(s){if(!n.enableAnalytics){return}var t=new XMLHttpRequest();t.open("POST",m.url,true);var q=m.header;for(var r in q){t.setRequestHeader(r,q[r])}t.send(s);if(CriLiveActSharedSettings.advancedAnalyticsDebug){}};var h=(function(q){return function(r){clearTimeout(e);e=null;p=false;return f.send(q,r)}})(o);var e=null;var p=false;var i=function(r){if(p||!n.enableAnalytics){return}var q=h(r);if(!q){return}p=true;e=setTimeout(function(){p=false;i(r)},j())};n.addEventListener(CriLaEvent.CREATE_LOG,function(){h(true)});n.addEventListener(CriLaEvent.UPDATE_LOG,function(){i(false)});n.addEventListener(CriLaEvent.PAUSE,function(){h(false)})};a.registerFinalize_=function(){window.addEventListener("unload",this.finalize.bind(this))};a.registerSubAudioPlay_=function(){function g(){this.syncSubAudioPlaybackAll_(true);this.removeEventListener(CriLaControlEvent.SCREEN_PLAY_BUTTON_CLICKED,g);this.removeEventListener(CriLaControlEvent.PLAY_BUTTON_CLICKED,g);this.removeEventListener(CriLaControlEvent.VOLUME_BUTTON_CLICKED,g)}function f(){this.syncSubAudioPlaybackAll_(true)}var e=this.getControls();e.addEventListener(CriLaControlEvent.SCREEN_PLAY_BUTTON_CLICKED,g.bind(this));e.addEventListener(CriLaControlEvent.PLAY_BUTTON_CLICKED,g.bind(this));e.addEventListener(CriLaControlEvent.VOLUME_BUTTON_CLICKED,g.bind(this));this.addEventListener(CriLaEvent.PLAY_START,f.bind(this))};a.unloadDecodedData_=function(){};a.reloadDecodedData_=function(){};a.setMemoryReduction=function(e){this.memoryReduction=e};a.unload=function(){};a.unloadVideoResource=function(){};a.isInvisible=function(){var e=this.getCanvas();return CriLaHtmlCss.isInvisible(e)};a.getContentType=function(){return this.contentType_};a.setContentType=function(e){this.contentType_=e};a.isPlaying=function(){return this.getStatus()===CriLaPlayStatus.PLAYING};a.isPaused=function(){return this.getStatus()===CriLaPlayStatus.PAUSE};a.isStopped=function(){return this.getStatus()===CriLaPlayStatus.STOP};a.setup=function(e){var g=this.getCanvas();if(!g){return false}this.CriLaP113=e.CriLaP113;this.registerResourceList_(e.resourceList);this.trackingCode_=e.trackingCode;var f=this.setupWatermarkElement_();return f};a.setupWatermarkElement_=function(){if(this.getNumScenes()<=0){return false}var g=this.CriLaP113[0];var e=g.getLayersByTag("WATERMARK");var f=e.map(function(h){return this.createWatermarkNode_(h,g.getWidth(),g.getHeight())},this);f.forEach(function(i){i.style.pointerEvents="";i.style.cursor="pointer";var h=new CriLaClickEmulator(i);h.onclick=function(){this.dispatchEvent(CriLaEvent.WATERMARK_CLICK)}.bind(this)},this);f.forEach(function(i){var h=this.getCanvas();h.parentElement.insertBefore(i,h.nextSibling)},this);return true};a.createWatermarkNode_=function(g,f,j){var e=function(m){return m*100+"%"};var l=g.resource;var h=document.createElement("div");var i=h.style;var k=l.getFullUrl(this.baseResourceDir_,this.sharedResourceDir_);i.backgroundImage="url("+k+")";i.backgroundRepeat="no-repeat";i.backgroundSize="contain";if(g.BlendMode===CriLaBlendMode.MULTIPLY){i.mixBlendMode="multiply"}i.position="absolute";i.left=e(g.position.x/f);i.top=e(g.position.y/j);i.width=e(l.width/f);i.height=e(l.height/j);i.transformOrigin=[e(g.pivot.x/l.width),e(g.pivot.y/l.height)].join(" ");i.transform="scale("+[g.scale.x,g.scale.y].join(",")+")";i.opacity=g.Alpha;i.pointerEvents="none";return h};a.registerResourceList_=function(e){e.forEach(function(f){this.setupResource_(f);this.resourceList.push(f)},this)};a.setupResource_=function(e){};a.getSceneByName=function(e){if(!this.CriLaP113){return null}return CriLaPolyfill.Array.find(this.CriLaP113,function(f){return f.name===e})};a.getSceneByIndex=function(e){if(!this.CriLaP113){return null}return this.CriLaP113[e]};a.getNumScenes=function(){return this.CriLaP113?this.CriLaP113.length:0};a.setCurrentSceneByName=function(e){var f=this.getSceneByName(e);return this.setCurrentScene(f)};a.setCurrentSceneByIndex=function(f){var e=this.getSceneByIndex(f);return this.setCurrentScene(e)};a.setCurrentScene=function(g,e){if(g){this.CriLaP111=g}this.timeManager_.setSceneParam(g);if(!e){if(this.multiVideoEnabled_==false){this.setMediaPlayerByScene(g)}else{this.subVideoPlayerList_=this.createMediaPlayersByScene(g)}}this.timeManager_.setFrame(0,false);var h=this.timeManager_.getFrame();this.CriLaP11k.createReport(g.name,g.getDuration());var f=this.isMuted();this.CriLaP11k.createLog(g.name,h,f);return true};a.setMediaPlayerByScene=function(g){var e=this.getCurrentVideoPlayer();var f=this.getCurrentAudioPlayer();if(this.enabledRequestLoadResource_===true){if(e){e.setup(g,this.resourceList,this.canvas_);this.Sequencer.setVideoPlayer(e)}if(f){f.setup(g,this.resourceList,this.canvas_,this.Sequencer)}}};a.createMediaPlayersByScene=function(l){var k=[];var f=l.getLayerList();for(var j=0;j0){this.preDecodeVideoFPS_=f}}if(e.preDecodeQuality!=null){var g=parseFloat(e.preDecodeQuality);this.preDecodeVideoQuality_=g}if(e.multiDecode!=null){this.multiVideoEnabled_=e.multiDecode;if(this.multiVideoEnabled_==true){this.videoRenderTargetType_="canvas"}}if(e.strictFrameDraw!=null){this.strictFrameDraw_=e.strictFrameDraw;if(this.strictFrameDraw_==true){this.preDecodeVideoEnabled_=true}}if(e.simpleDecode!=null){this.simpleDecode_=e.simpleDecode;if(this.simpleDecode_==true){this.preDecodeVideoEnabled_=true;this.strictFrameDraw_=true}}};a.getVideoRenderTargetType=function(){return this.videoRenderTargetType_};a.getTrackingCode=function(f){var e=this.getTrackingCode_();if(!f){this.checkTrackingCodeValidity_(e)}return e};a.getTrackingCode_=function(){var e=this.trackingCode_||"";var h=CriLiveActSharedSettings.getCustomerCode();if(h==null){return e}var g=e.split("-");if(g==null||g.length!=2){return e}var f=h+"-"+g[1];return f};a.checkTrackingCodeValidity_=function(e){if(!this.isTrackingCodeValid_(e)){console.warn("トラッキングコードの指定が無効です。 trackingCode: "+e)}};a.isTrackingCodeValid_=function(e){var g=e.indexOf("-");if(g!=8){return false}var f=e.substring(0,g);if(f=="xxxxxxxx"){return false}return true};a.enableRequestLoadResource=function(e){this.enabledRequestLoadResource_=Boolean(e)};a.isRequestLoadResourceEnabled=function(){return this.enabledRequestLoadResource_};a.loadCurrentSceneResourcesAll=function(){this.setMediaPlayerByScene(this.getCurrentScene());this.requestLoadResourcesCurrentScene();this.setFrame(this.getFrame())};a.enableEveryFrameDrawing=function(e){this.everyFrameDrawingEnabled_=Boolean(e)};a.getDistanceFromViewport=function(){return this.distanceFromViewport_};a.drawCurrentSceneToCanvasForcibly=function(){};a.setPageJumpMode=function(){};a.restoreFromPageJumpState=function(){};a.setAlpha=function(e){this.CriLaP300=e};a.getAlpha=function(){return this.CriLaP300};a.getPositionXY=function(){return[this.CriLaP116.x,this.CriLaP116.y]};a.setPositionXY=function(e,f){this.CriLaP116.x=e;this.CriLaP116.y=f};a.getRotation=function(){return this.Rotation};a.setRotation=function(e){this.Rotation=e};a.getScaleXY=function(){return[this.CriLaP118.x,this.CriLaP118.y]};a.setScaleXY=function(e,f){this.CriLaP118.x=e;this.CriLaP118.y=f};a.getPivotXY=function(){return[this.CriLaP117.x,this.CriLaP117.y]};a.setPivotXY=function(e,f){this.setPivotSeparateXY(e,f,e,f)};a.setPivotSeparateXY=function(h,g,f,e){this.CriLaP117.x=h;this.CriLaP117.y=g;this.CriLaP119.x=f;this.CriLaP119.y=e};a.resetFontScale=function(){this.CriLaP11i=this.Sequencer.getDefaultFontScale()};a.setFontScale=function(e){this.resetFontScale();this.CriLaP11i*=e;return this};a.getFontScale=function(){return this.CriLaP11i};a.setResourceURLSuffix=function(e){this.resourceURLSuffix_=e};a.getNumResources=function(){return this.resourceList.length};a.getResourceByIndex=function(e){return this.resourceList[e]};a.getResourceById=function(e){return CriLaPolyfill.Array.find(this.resourceList,function(f){return f.id===e})};a.getResourcesByName=function(e){return this.resourceList.filter(function(f){return f.name===e})};a.isCompleteCurrentScene=function(){var e=this.getCurrentScene();return Boolean(e&&e.isComplete())};a.canPlayCurrentScene=function(){var e=this.getCurrentScene();if(e==null){return false}return e.canPlay(this.playableBufferTime_,this.playableBufferTimeUnit_)&&(!this.videoPlayer_||this.videoPlayer_.isLoaded())};a.canStepFrame=function(){var e=this.canPlayCurrentScene();var f=this.timeManager_.canStepFrame();return e&&f};a.canDrawCurrentScene=function(){var e=this.getCurrentScene();if(e==null){return false}return e.canDraw()};a.getLoadProgressCurrentScene=function(){return this.getCurrentScene().getLoadProgress()};a.setDefaultDimension_=function(f,e){this.defaultDimension_=CriGrxVector2.createFromXY(f,e)};a.createLjtLoader=function(g){var e=new CriLaC00c();e.addEventListener("error",function(i){var h=this.CriLaP11m.createEvent(CriLaEvent.ERROR,{message:i.detail.message,status:i.detail.status});this.dispatchEvent(CriLaEvent.ERROR,h)}.bind(this));var f=g||{};if(f.frameblend){e.enableFrameBlend(f.frameblend)}e.setFontScale(this.CriLaP11i);e.resourceURLSuffix_=this.resourceURLSuffix_;e.defaultDimension_=this.defaultDimension_;return e};a.loadLjtCommon=function(m,n){var j=this.createLjtLoader(n);var k=this;var l=function(){var o=k.setup(j);if(!o){return false}k.dispatchEvent(CriLaEvent.LJT_LOADED)};var f=function(p,o){k.hasPass=p;if(o.is){k.showUnavailable(o.width,o.height);k.dispatchEvent(CriLaEvent.LOADED_PRIVATE_CONTENT)}};var e=m.url;if(e){var g=false;var i=0;if(n!=null){g=n.async;i=n.timeout}j.LoadDomFromURL(e,g,i,l,f)}else{var h=m.str;if(!h){return false}j.CriLaM118(h,l,f)}return true};a.loadLjtFromUrl=function(e,f){return this.loadLjtCommon({url:e},f)};a.loadLjt=a.loadLjtFromUrl;a.loadLjtFromString=function(f,e){return this.loadLjtCommon({str:f},e)};a.loadLjtWithResources=function(f,h){var g=function(i){var j=i.player.implPlayer_;if(j.enabledRequestLoadResource_===false){console.warn("enableRequestLoadResourceでfalseが設定されたため、リソースの読み込みを行いません。");return}j.requestLoadResourcesScenes(j.CriLaP113);j.removeEventListener("loaded",g)};this.addEventListener("loaded",g);var e=this.loadLjtFromUrl(f,h);if(!e){return false}return true};a.requestLoadResourcesScenes=function(e){if(this.hasPass){var f=new CriLaPassword();f.setup(this,e)}else{if(!this.viewTimeLimit){var g={isLazyLoad:CriLaMgLazyLoadLib.existLazyLoadLib(),target:this.getCanvas()};e.forEach(function(h){h.requestLoad(this.baseResourceDir_,this.sharedResourceDir_,g)},this);this.dispatchEvent(CriLaEvent.REQUEST_LOAD_RESOURCE)}}};a.requestLoadResourcesCurrentScene=function(){if(this.enabledRequestLoadResource_===false){console.warn("enableRequestLoadResourceでfalseが設定されたため、リソースの読み込みを行いません。");return}this.requestLoadResourcesScenes([this.CriLaP111])};a.requestLoadResourcesBySceneName=function(f){if(this.CriLaP113==null){return}if(this.enabledRequestLoadResource_===false){console.warn("enableRequestLoadResourceでfalseが設定されたため、リソースの読み込みを行いません。");return}var e=this.CriLaP113.filter(function(g){return g.name===f});this.requestLoadResourcesScenes(e)};a.requestLoadResourcesBySceneIndex=function(f){if(this.enabledRequestLoadResource_===false){console.warn("enableRequestLoadResourceでfalseが設定されたため、リソースの読み込みを行いません。");return}var e=this.CriLaP113[f];this.requestLoadResourcesScenes([e])};a.requestLoadResources=function(){if(this.enabledRequestLoadResource_===false){console.warn("enableRequestLoadResourceでfalseが設定されたため、リソースの読み込みを行いません。");return}this.requestLoadResourcesScenes(this.CriLaP113)};a.setResourcesBaseURL=function(e){this.baseResourceDir_=CriLaURL.appendSlash(e)};a.getResourcesBaseURL=function(){return this.baseResourceDir_};a.setSharedResourcesBaseURL=function(e){this.sharedResourceDir_=CriLaURL.appendSlash(e)};a.getSharedResourcesBaseURL=function(){return this.sharedResourceDir_};a.unloadCommon_=function(){if(this.videoPlayer_!=null){this.videoPlayer_.unload()}if(this.audioPlayer_!=null){this.audioPlayer_.unload()}if(this.timeManager_!=null){this.timeManager_.resetUnloading()}};function c(e){e.unload()}a.unload=function(){this.unloadCommon_();if(this.CriLaP113){this.CriLaP113.forEach(c)}};function b(e){return Boolean(e.isSequentialImage)}a.reloadDecodedData_=function(){var e=this.resourceList.filter(b);e.forEach(function(f){f.reload()})};function d(e){e.unloadVideoResource()}a.unloadVideoResource=function(){this.unloadCommon_();if(this.CriLaP113){this.CriLaP113.forEach(d)}criLiveActRelease();if(this.isPollingCanplay_==false){this.setCanPlayPollingEvent_()}};a.unloadDecodedData_=function(){var f=function(m,j){var l=j.Keys;var h=j.Values;var i=l.indexOf(Math.floor(m));var k=l.indexOf(Math.ceil(m));return[h[i],h[k]]};var e=function(k,j){var i=null;for(var h=0;i=k.getLayerByIndex(h);h++){if(i.resource===j){break}}return i};var g=this.resourceList.filter(b);g.forEach(function(k){var j=this.CriLaP111;var l=this.getFrame();var i=e(j,k);var h=i.ImageIndexCurve;var m=f(l,h);k.unload(10,m)},this)};a.isSegmented=function(){return false};a.getCurrentVideoPlayer=function(){if(this.isSegmented()){if(this.pluginVideoGroup){return this.getCurrentVideoPlayerInSegmented_()}}if(this.videoPlayer_!=null){return this.videoPlayer_}if(this.subVideoPlayerList_.length>0){return this.subVideoPlayerList_[0]}return null};a.getCurrentAudioPlayer=function(){return this.audioPlayer_};a.getCurrentMediaPlayer=function(){return this.getCurrentAudioPlayer()||this.getCurrentVideoPlayer()};a.draw=function(){var f=this.getFrame();if(!this.frameInterpolationEnabled){f=Math.floor(f)}var e=this.Sequencer;e.ResetSuccessDrawFlag();e.drawScene(this.getCurrentScene(),f,this.createDrawParameter_());if(!this.strictFrameDraw_||e.isSuccessDraw()){this.lastDrawnFrame_=f;this.redrawRequested_=false;this.dispatchEvent(CriLaEvent.DRAW)}};a.createDrawParameter_=function(){var e=criLaMg_getTransformMatrix(this.CriLaP116,this.Rotation,this.CriLaP118,this.CriLaP117,this.CriLaP119);return{trsMatrix:e,alpha:this.getAlpha()}};a.drawWithClear=function(){this.clear();this.draw()};a.enableFrameInterpolation=function(e){this.frameInterpolationEnabled=Boolean(e)};a.requestRedraw=function(){this.redrawRequested_=true};a.isDrawingNeeded_=function(){if(this.everyFrameDrawingEnabled_){return true}if(this.redrawRequested_){return true}if(this.lastDrawnFrame_!==this.getFrame()){return true}return false};a.getRectangle_=function(){var g=this.getCurrentScene();var f=this.CriLaP116;var i=this.CriLaP118;var h=g.getWidth()*i.x;var e=g.getHeight()*i.y;return CriLaRectangle.createFromXYWH(f.x,f.y,h,e)};a.enableBackgroundFill=function(e){this.CriLaP11a=e};a.fill=function(g){var e=this.getCurrentScene();var f=g||e.BackColor;this.Sequencer.fill(this.getRectangle_(),f)};a.clear=function(){if(this.CriLaP11a){this.Sequencer.fill(this.getRectangle_())}else{this.Sequencer.clear(this.getRectangle_())}};a.createRendererFromCanvas_=function(e){return CriLaMgRendererBase(e)};a.play=function(f){var e=this.timeManager_;if(e!=null){e.play()}else{setTimeout(this.play.bind(this),33)}};a.pause=function(){var e=this.timeManager_;if(e){e.pause()}};a.stop=function(){var e=this.timeManager_;if(e){e.stop()}};a.stepFrame=function(e,h){if(e==undefined){e=1}if(h==null){h=true}var g=this.CriLaP111;var i=this.timeManager_.getFrame();var f=this.timeManager_.setFrame(i+e,h);return f};a.stepTimeMs=function(g){if(typeof(g)!=="number"){console.warn("引数には数値型のデータを渡してください。");return this.getFrame()}var h=this.getCurrentSceneFrameRate();var j=CriUnitValue.secondToFrame(h,g/1000);var f=this.getFrame()+j;var i=f>(this.getLastFrame()-1);if(i){j=this.getLastFrame()-this.getFrame()-1}var e=this.stepFrame(j,false);if(i){this.stepFrame()}return e};a.getFrame=function(){var e=this.timeManager_;return e?e.getFrame():0};a.getTimeMs=function(){var e=this.timeManager_;return e?e.getTimeMs():0};a.getLastFrame=function(){var e=this.timeManager_;return e?e.getLastFrame():0};a.isEnded=function(){var e=this.timeManager_;return e?e.isEnded():false};a.setFrame=function(f){var e=this.timeManager_;if(e){e.seekFrame(f)}};a.setTimeMs=function(f){var e=this.timeManager_;if(e){e.seekTimeMs(f)}};a.setSkipBackwardTimeMs=function(e){if(typeof(e)!=="number"){console.warn("引数には数値型のデータを渡してください。");return}if(e<0){console.warn("正の値を渡してください。");return}this.skipBackwardTimeMs_=e};a.setSkipForwardTimeMs=function(e){if(typeof(e)!=="number"){console.warn("引数には数値型のデータを渡してください。");return}if(e<0){console.warn("正の値を渡してください。");return}this.skipForwardTimeMs_=e};a.getSkipBackwardTimeMs=function(){return this.skipBackwardTimeMs_};a.getSkipForwardTimeMs=function(){return this.skipForwardTimeMs_};a.getStatus=function(){var f=this.timeManager_;if(f==null){return CriLaPlayStatus.STOP}var e=f.getStatus();return e};a.setPlaybackRate=function(e){e=this.parsePlaybackRateValue(e);e=CriGrxMath.clamp(this.playbackRateMin_,this.playbackRateMax_,e);var g=this.playbackRate_;var f=this.timeManager_;if(f){f.setPlaybackRate(e);var h=f.getPlaybackRate();if(h!=null){e=h}}this.playbackRate_=e;if(g!==e){this.dispatchEvent(CriLaEvent.PLAYBACK_RATE_CHANGE)}};a.getPlaybackRate=function(){return this.playbackRate_};a.parsePlaybackRateValue=function(e){if(isNaN(e)){return 1}if(e<0){return 0}return e};a.setPlaybackRateRange=function(f,e){e=this.parsePlaybackRateValue(e);f=this.parsePlaybackRateValue(f);f=f>1?1:f;if(e<=f){console.warn("LiveAct Warning:最小の再生速度以下の最大値を設定しようとしました。");return}if(f>=e){console.warn("LiveAct Warning:最大の再生速度以上の最小値を設定しようとしました。");return}this.playbackRateMax_=e;this.playbackRateMin_=f;this.updatePlaybackRateGUI();this.setPlaybackRate(this.getPlaybackRate())};a.getPlaybackRateRange=function(){return[this.playbackRateMin_,this.playbackRateMax_]};a.updatePlaybackRateGUI=function(){var f=this.getControls();var g=f.componentDict_.playbackRateButton;if(g){var l=g.getElement();var j=this.playbackRateMax_;var e=Math.floor(this.playbackRateMin_)+0.5;var k=[];for(var h=e;h<=j;h+=0.5){k.push(h)}l.setAttribute("data-list",k.join(","));f.componentDict_.playbackRateButton.updatePlaybackRateList()}};a.setLoopFlg=function(e){this.CriLaP114=e;if(this.timeManager_){this.timeManager_.setLoop(e)}};a.getLoopFlg=function(){var e=this.CriLaP114;if(this.timeManager_){e=this.timeManager_.getLoop()}return e};a.setProhibitTimeMsRange=function(f,h){var e=this.timeManager_;if(f==null&&h==null){e.setProhibitTimeMsRange(null,null);return}var k=this.CriLaP111;var i=k.getDuration();var j=k.CriLaP115;if(f==null||f<0){f=0}var g=h*j/1000;if(h==null||i0?100:0}var p=this.getCurrentVideoPlayer();if(p){p.setSoundVolume(l)}for(var k=0;k14){this.isFirstUnmute=false;this.setVolume(0);this.setVolume(this.soundVolumeMemo_)}this.isFirstUnmute=false}};a.isMuted=function(){var e=this.getCurrentMediaPlayer();return e?e.isMuted():true};a.memoryVolume=function(){if(this.soundVolume_!==0){this.soundVolumeMemo_=this.soundVolume_}};a.getPlaybackRangeFrame=function(){return this.timeManager_.getPlaybackRangeFrame()};a.setPlaybackRangeFrame=function(e,f){this.timeManager_.setPlaybackRangeFrame(e,f)};a.resetPlaybackRange=function(){var e=this.getCurrentSceneDuration();this.timeManager_.setPlaybackRangeFrame(0,e)};a.getAnalysisReport=function(){var e=this.CriLaP11k;e.updateReports();return e};a.clearAnalysisReport=function(){var e=this.CriLaP11k;var f=this.getCurrentScene();e.clear();e.createReport(f.name,f.getDuration())};a.drawCurrentSceneToCanvasForcibly=function(){if(this.timeManager_==null){return}var e=this.Sequencer;var f=e.CriLaP11d;e.CriLaP11d=true;this.draw();e.CriLaP11d=f};a.setPageJumpMode=function(){if(this.timeManager_!=null){this.timeManager_.setPageJumpMode()}};a.restoreFromPageJumpMode=function(){if(this.timeManager_!=null){this.timeManager_.restoreFromPageJumpMode();this.enabledReload=true}};a.onmain_=function(f){var l=this.updateMainLoopTime();if(l==false){return}var j=this.getStatus();if(j==CriLaPlayStatus.STOP){return}var m=this.isInvisible();if(this.isDrawingNeeded_()&&this.canDrawCurrentScene()&&!this.isInvisible()){if(this.CriLaP11a==true){this.fill()}else{this.clear()}this.draw()}if(this.timeManager_){if(j==CriLaPlayStatus.PLAYING){var o=this.getDeltaTime();var h=this.getCurrentSceneFrameRate();var g=o/(1000/h);var i=this.getPlaybackRate();g*=i;var n=this.decelerateFunc_;if(n){var e=n(o);this.setPlaybackRate(e);if(e===0){this.pause()}}var k=this.canStepFrame();if(k==true){this.stepFrame(g,true)}}this.syncSubAudioPlaybackAll_(false)}};a.updateMainLoopTime=function(){var e=this.timeManager_;if(e==null){return false}e.updateMainLoopTime();return true};a.getDeltaTime=function(){var e=this.timeManager_;return e.getDeltaTime()};a.getStreamType=function(){var e=this.timeManager_;if(e==null){return null}return e.getStreamType()};a.setVideoPreloadType=function(e){if(this.videoPlayer_!=null){this.videoPlayer_.setVideoPreloadType(e)}if(this.audioPlayer_!=null){this.audioPlayer_.setVideoPreloadType(e)}this.videoPreloadType=e};a.setPreloadDurationToMediaAttribute=function(e){if(this.videoPlayer_!=null){this.videoPlayer_.setPreloadDurationToMediaAttribute(e)}if(this.audioPlayer_!=null){this.audioPlayer_.setPreloadDurationToMediaAttribute(e)}this.videoPreloadDuration=e};a.getContainedLayers=function(e,j,i){i=Boolean(i);if(this.CriLaP111==null){return[]}var f=criLaMg_getTransformInverseMatrix(this.CriLaP116,this.Rotation,this.CriLaP118,this.CriLaP117,this.CriLaP119);var h=this.timeManager_.getFrame();var g=this.CriLaP111.GetContainLayers(e,j,h,i,f);return g};a.getContainedLayerName=function(e,i,f){var h=Boolean(f);var g=this.getContainedLayers(e,i,h);if(g.length==0){return""}return g[0].name};a.notifyMediaSrcChange=function(){var i=this.getCurrentMediaPlayer();if(!i){return}var h=i.getMediaElement();var f=this;function e(){i.notifyMediaSrcChange();f.timeManager_.notifyMediaSrcChange()}if(h.readyState>0){e()}else{h.addEventListener("loadedmetadata",function g(){h.removeEventListener("loadedmetadata",g);e()})}};a.pagejump=function(g,h){var f=this.getControls();var e=f.getScreenPlayVisibility();if(e==true){return}var j=h||"_self";if(this.isInIframe()){var i=new CriLaEventArgs(CriLaEvent.LINK_REQUESTED,this,{url:g,target:j});this.dispatchEvent(CriLaEvent.LINK_REQUESTED,i)}else{window.open(g,j)}};a.setRenderTarget=function(e){this.Sequencer.setRenderTarget(e)};a.setLuminanceAdjustMode=function(e){};a.getLuminanceAdjustMode=function(){return null};a.setLuminanceAdjustSpeed=function(e){};a.getLuminanceAdjustSpeed=function(){return null};a.setLuminanceAdjustExposureValue=function(e){};a.getLuminanceAdjustExposureValue=function(){return null};a.setLuminanceAdjustExposureBias=function(e){};a.getLuminanceAdjustExposureBias=function(){return null};a.addAudioToCurrentScene=function(e){return null};a.addAudioBySceneIndex=function(f,e){return null};a.removeAudioFromCurrentScene=function(e){return null};a.removeAudioBySceneIndex=function(f,e){return null};a.setSeekStyle=function(e){var f=e.deny==CriLaSeekStyle.FORWARD?CriLaSeekStyle.BACK:CriLaSeekStyle.ALL;this.seekStyle=f;if(this.timeManager_){this.timeManager_.setSeekStyle(this.seekStyle)}};a.getCompanyCode=function(){var e=this.getTrackingCode();if(e!=""){e=e.split("-");e=e.length>1?e[0]:e}return e};a.showUnavailable=function(j,g){var h=this.getCanvas();h.height=g;h.width=j;var f=h.parentNode;f.style.width="100%";this.resizeCanvasStyle_(j);var e=document.createElement("div");var i=document.createElement("p");if(h.clientWidth<600){e.className="la-view-limit-error la-view-limit-error--xs"}else{e.className="la-view-limit-error"}i.className="la-view-limit-error-message";f.appendChild(e);e.appendChild(i);i.innerHTML="この動画は現在再生できません";this.changeViewLimitErrorPosition(e,i);window.addEventListener("resize",function(){if(e.clientWidth<600){e.classList.add("la-view-limit-error--xs")}else{e.classList.remove("la-view-limit-error--xs")}})};a.changeViewLimitErrorPosition=function(f,h){var e=CriLaRectangle.createFromViewPort();var g=h;if(e.bottom4?4:q;var m=this.getCurrentSceneWidth();var g=this.getCurrentSceneHeight();var s=p||CriGrxVector2.createFromXY(0,0);var f=s.x/m+0.5;var e=s.y/g+0.5;var k=f*m*(q-1);var j=e*g*(q-1);var i=-s.x-k;var n=-s.y-j;var h=m*q;var l=g*q;var o=i+h;var d=n+l;if(i>0){i=0}else{if(m-o>0){i=m-h}}if(n>0){n=0}else{if(g-d>0){i=g-l}}var c=i;var r=n;this.setPositionXY(c,r);this.setScaleXY(q,q)};b.createRendererFromCanvas_=function(c){return new CriLaMgRenderer2d(c,this.CriLaP11m)};b.addAudioToCurrentScene=function(c){return this.addAudioToScene(c,this.getCurrentScene())};b.addAudioBySceneIndex=function(d,c){return this.addAudioToScene(d,this.getSceneByIndex(c))};b.removeAudioFromCurrentScene=function(c){return this.removeAudioFromScene(c,this.getCurrentScene())};b.removeAudioBySceneIndex=function(d,c){return this.removeAudioFromScene(d,this.getSceneByIndex(c))};b.addAudioToScene=function(q,x){var r=this.isPaused();if(x==null||!q){return null}var z=q.split("/");z=z[z.length-1];var k=z+"_runtime";var f="footage#"+k;var e=0;for(var t=0;t=e){e=u+1}}}}var o=String(e);var v=k+o;f+=o;var d="layer#"+k;var g=0;for(var t=0;t=g){g=w+1}}}}var h=String(g);var p=k+h;d+=h;this.pause();var c=x.getDuration();var n=new CriLaResourceAudio(f,v);n.initializeMedia();n.url=q;n.width=0;n.height=0;n.duration=c;this.resourceList.push(n);var m=Array.prototype.indexOf.bind(this.resourceList);this.CriLaP113.forEach(function(i){i.setResourceIndexResolver(m)});var y=new CriLamgLayer(d,p);y.setDuration(c);y.resourceID=f;y.resource=n;x.layerList_.push(y);x.audioResourceIndex_=null;this.setupTimeManagerAndCurrentScene(x);if(this.multiVideoEnabled_==true){this.audioPlayer_.setup(x,this.resourceList,this.canvas_,this.Sequencer)}this.setControlStyle({volumeButton:true});if(!r){this.play()}return d};b.removeAudioFromScene=function(l,g){var c=this.isPaused();if(g==null){return false}this.pause();var o=l;var n=-1;var d;g.layerList_.forEach(function(j,i){if(j.id===o){n=i;d=j.resourceID}});var m=false;for(var f=0;f-1){this.resourceList.splice(h,1)}}if(n>-1){g.layerList_.splice(n,1);g.audioResourceIndex_=null;this.audioPlayer_=null;this.setupTimeManagerAndCurrentScene(g);if(this.multiVideoEnabled_==true&&this.audioPlayer_!=null){this.audioPlayer_.setup(g,this.resourceList,this.canvas_,this.Sequencer)}if(!g.hasAudio()){this.setControlStyle({volumeButton:false})}}else{return false}if(!c){this.play()}return true}})(CriLaC001.prototype,CriLaMgPlayerCommon.prototype);function CriLaC005(){this.image=null;this.retryCount_=0;this.isComplete_=false;this.isLoadFailed_=false;this.isComplete=function(){if(this.refType>0&&this.refImage==null){return false}return this.isComplete_&&this.image&&this.image.complete};this.srcRectEnabled=false;this.srcX=0;this.srcY=0;this.srcWidth=0;this.srcHeight=0;this.destRect=null;this.refImage=null;this.refType=0;this.url_=""}(function(a){a.finalize=function(){this.unload();this.url_="";delete this.image};a.setImage=function(b){this.image=b;this.isComplete_=true;this.url_=b.src};a.prepareLoad=function(b){var c=b||this.url_;if(!c){return false}if(this.isComplete_==true){return false}this.isComplete_=false;if(this.image==null){this.image=new Image()}return true};a.requestLoad=function(b){var d=this.prepareLoad(b);if(!d){return}var c=b||this.url_;var e=this;this.image.onload=function(){e.isComplete_=true};this.image.onerror=function(f){e.retryCount_++;if(e.retryCount_>10){e.isLoadFailed_=true}else{if(e.image){e.image.src=c+"?"+e.retryCount_}}};this.image.src=c;this.url_=c};a.requestLazyLoad=function(b,g){if(!g||!CriLaMgLazyLoadLib.existLazyLoadLib()){this.requestLoad(b);return}var d=this.prepareLoad(b);if(!d){return}var c=b||this.url_;var h=CriLazyLoad.getUtilityAttributeName();var e=g.getAttribute("id");var f=this;this.image.classList.add(h.className);this.image.setAttribute(h.url,c);this.image.setAttribute(h.targetId,e);CriLazyLoad.add(this.image);this.image.onload=function(){f.isComplete_=true};this.url_=c};a.setSrcRect=function(b){this.setSrcRect_(b.left,b.top,b.getWidth(),b.getHeight())};a.setSrcRect_=function(c,e,d,b){this.srcRectEnabled=true;this.srcX=c;this.srcY=e;this.srcWidth=d;this.srcHeight=b};a.unload=function(){if(this.image){this.image.src="";this.image=null;this.isComplete_=false}};a.isDrawable=function(){var b=this.image;return this.isComplete()&&b.width>=1&&b.height>=1};a.drawWH=function(e,b,c){if(!this.isDrawable()){return}var h=this.destRect||CriLaRectangle.createFromXYWH(0,0,b,c);if(this.refImage){e.save();e.beginPath();var g=h.right;var d=h.bottom;e.rect(0,0,b,h.top);e.rect(0,d,b,c-d);e.rect(0,0,h.left,c);e.rect(g,0,b-g,c);e.closePath();e.clip();this.refImage.drawWH(e,b,c);e.restore()}var f=this.image;if(!this.srcRectEnabled){e.drawImage(f,h.left,h.top,h.getWidth(),h.getHeight())}else{e.drawImage(f,this.srcX,this.srcY,this.srcWidth,this.srcHeight,h.left,h.top,h.getWidth(),h.getHeight())}}})(CriLaC005.prototype);function CriLaPlayReport(b,a){this.sceneName=b;this.length=a;this.retentionFrame=0}function CriLaPlayLog(c,a,b){this.sceneName=c;this.startFrame=a;this.endFrame=a;this.muted=b}function CriLaAnalysisReport(){}function CriLaAnalytics(a){CriLaAnalysisReport.call(this);this.playReports=[];this.playLogs=[];this.lastMuted_=true;this.CriLaP11m=a}(function(a){a.clear=function(){this.playReports=[];this.playLogs=[];this.lastMuted_=true};a.createReport=function(e,d){var c=this.playReports.length;if(this.playReports.some(function(f){return f.sceneName===e})){return}var b=new CriLaPlayReport(e,d);this.playReports.push(b)};a.createLog=function(c,g,h,d){var e=d||0;var j=this.lastMuted_;if(h!=null){j=h;this.lastMuted_=j}var i=this.playLogs;var f=false;if(i.length>0){var b=i[i.length-1];if(b.endFrame-b.startFrame<=e){f=true}}var k=new CriLaPlayLog(c,g,j);if(f==true){i[i.length-1]=k}else{this.playLogs.push(k);this.CriLaP11m.dispatch(CriLaEvent.CREATE_LOG)}};a.updateSceneLength=function(d,c){var b=this.playReports;if(b.length<=0){return}var e=b[b.length-1];if(e.sceneName!=d){return}e.length=c};a.updateLog=function(f,e,c){var b=this.playLogs;var h=b.length;var d=this.lastMuted_;if(c!=null){d=c;this.lastMuted_=d}if(h==0){this.createLog(f,e,d);h=b.length}var g=b[h-1];if(e>g.endFrame){g.endFrame=e}this.CriLaP11m.dispatch(CriLaEvent.UPDATE_LOG)};a.updateReports=function(){var h={};var e=this.playLogs;for(var l=0;lj){return 1}return 0});var h=b.length;for(var d=0;dg.endFrame||g.startFrame>f.endFrame){break}f.startFrame=Math.min(f.startFrame,g.startFrame);f.endFrame=Math.max(f.endFrame,g.endFrame);b.splice(e,1);e--;h--}}return b}})(CriLaAnalytics.prototype);function CriLaAdvancedAnalytics(a){this.player_=a;this.clientId_=CriLaId.getClientId();this.watchId_=CriLaId.getIdFromObject(a);this.processId_=CriLaId.createUniqueId();this.lastSentDataStrList_=[]}(function(a){CriLaAdvancedAnalytics.PlayTypeEnum={thumbnail:1,inline:2,rotate360:3,"allaround-sphere":4};CriLaAdvancedAnalytics.AggregationTypeEnum={rotate360:2,"allaround-sphere":3};CriLaAdvancedAnalytics.KeyMap={aggreType:"ag",playType:"pt",clientId:"ci",processId:"pi",watchId:"wi",localTime:"lt",trackingCode:"tc",begin:"be",end:"en",total:"tl",muted:"mu",location:"lo",title:"tt",parentLocation:"pl",sceneName:"sn"};a.updateProcessId=function(b){this.processId_=b||CriLaId.createUniqueId()};a.send=function(d,c){var b=this.getData();if(c){this.updateProcessId()}if(!b){return false}var e=JSON.stringify(b);d(e);return true};a.getData=function(){var c=this;var d=this.player_;var b=d.getAnalysisReport();var g=b.playLogs;var f=g.length;if(!f){return null}var h=this.lastSentDataStrList_;var e=g.filter(function(k,j){var m=h[j];var l=JSON.stringify(k);if(m===l){return false}else{h[j]=l;return true}});e=e.map(function(i){return c.createDatum(i)});e=CriLaAdvancedAnalytics.formatData(e);if(!e.records.length){return null}return e};a.createDatum=function(r){var i=this;var q=i.player_;var j=q.getContentType();var g=CriLaAdvancedAnalytics.PlayTypeEnum[j]||0;var d=CriLaAdvancedAnalytics.AggregationTypeEnum[j]||1;var k=q.getCurrentSceneFrameRate();var m=r.startFrame;var h=r.endFrame;var p=r.muted?1:0;var f=r.sceneName;var o=q.getCurrentSceneDuration();if(o-h<=1){h=o}var e=function(s){return Math.round(s/k*1000)};var l=e(m);var c=e(h);var b=e(o);var n="";if(window!==window.parent){n=document.referrer}return{aggreType:d,playType:g,clientId:i.clientId_,processId:i.processId_,watchId:i.watchId_,localTime:Date.now(),trackingCode:q.getTrackingCode(true),begin:l,end:c,total:b,muted:p,location:location.href,title:document.title,parentLocation:n,sceneName:f}};CriLaAdvancedAnalytics.formatData=function(b){var c=b.map(CriLaAdvancedAnalytics.formatDatum);c=c.filter(Boolean);c=c.map(function(d){return{data:d,"partition-key":d[CriLaAdvancedAnalytics.KeyMap.clientId]}});c={records:c};return c};CriLaAdvancedAnalytics.formatDatum=function(b){var f={};if(b.begin===b.end){return null}var d=CriLaAdvancedAnalytics.KeyMap;for(var c in d){var g=d[c];f[g]=b[c]}for(var e in f){f[e]=encodeURIComponent(f[e])}return f}})(CriLaAdvancedAnalytics.prototype);function CriLaC00t(){this.canvas_=null;this.divMediaCanvas_=null;this.frameUpdateFunc_=null;this.durationUpdateFunc_=null;this.getTimeFunc_=null;this.scene_=null;this.CriLaP11m=null;this.CriLaP11k=null;this.CriLaP11l=false;this.tapPlayEnabled_=true;this.baseResourceDir_="";this.CriLaP114=false;this.segmentCount_=1;this.lamgPlayer_=null;this.parentDiv_=null;this.isLoaded_=false;this.isSeeked_=false;this.mediaTimeObject_=null;this.firstMediaEndedEvent_=null;this.fileUrl_=null;if(this.initPluginVideoGroup_){this.initPluginVideoGroup_()}}(function(a){a.initialize=function(m,b,d,k,l,f,e,c,g,j){var i=this.getMediaResource_(b);if(!i){return false}var h=this.initializeFromResource(m,i,d,k,l,f,e,c,g,j);return h};a.initializeFromResource=function(p,e,d,m,n,i,h,b,j,l){if(!e){return false}this.CriLaP1e8=e;this.baseResourceDir_=p;this.canvas_=d;this.CriLaP11k=m;this.CriLaP11m=n;this.tapPlayEnabled_=i;if(h!=null){this.segmentCount_=h}this.lamgPlayer_=l;var r=this.divMediaCanvas_=d.parentNode;var k=r.getElementsByTagName(this.MEDIA_TYPE);var o=null;var q=null;if(k.length===0){q=this.createMediaWrapperElem_(d);this.parentDiv_=q;r.insertBefore(q,d)}else{o=k[0];var g=this.getMediaWrapperClassName_();q=r.getElementsByClassName(g)[0]}var c=e.getElement();if(c==null){e.initializeMedia();c=e.getElement();this.setupMedia_(c)}this.mediaTimeObject_=c;if(o==null){q.appendChild(c)}else{var f=this.createMediaWrapperElem_(d);this.parentDiv_=f;r.insertBefore(f,d);f.appendChild(c)}this.applyPreloadType_(b);this.setPreloadDurationToMediaAttribute(j);this.lamgPlayer_.mute(true);this.registerEvents_();return true};a.applyPreloadType_=function(b){var c="";if(this.lamgPlayer_.isSegmented()){c="auto"}else{if(b!=null){c=b}else{c=CriUAChecker.isMobile()?"metadata":"auto"}}this.setVideoPreloadType(c)};a.getResourceUrl=function(){return this.CriLaP1e8.getFullUrl(this.baseResourceDir_,this.sharedResourceDir_)};a.getMediaResource_=function(b){var c=this.getMediaResources_(b);return c.length===0?null:c[0]};a.getMediaResources_=function(b){return b?b.filter(this.getMediaResourcePred_):[]};a.getRenderType=function(){return this.renderType_};a.getResource=function(){return this.CriLaP1e8};a.getMediaElement=function(){if(this.CriLaP1e8==null){return null}return this.CriLaP1e8.getElement()};a.setupMedia_=function(b){};a.createMediaWrapperElem_=function(d){var b=document.createElement("div");b.classList.add(this.getMediaWrapperClassName_());b.classList.add("lac-div__fit");var c=b.style;c.zIndex=d.style.zIndex;return b};a.getMediaWrapperClassName_=function(){return"lac-"+this.MEDIA_TYPE+"-div"};a.resetMediaDuration_=function(b){this.updateAnalyticsSceneLength_()};a.registerEvents_=function(){var b=this.CriLaP1e8.getElement();b.addEventListener("canplay",this.mediaCanplay_.bind(this),false);b.addEventListener("loadedmetadata",this.mediaLoadedMetaData_.bind(this),false);b.addEventListener("progress",this.getLoadedFrames_.bind(this),false)};a.getLoadedFrames_=function(k){var f=k.target.buffered;var j=[];var g=this.scene_.getFramerate();for(var d=0;d=3};a.getSoundTargets_=function(){var c=[];var b=this.getMediaElement();if(b){c.push(b)}return c};a.getTimeManagerElement=function(){return this.getMediaElement()};a.setSource=function(b){this.load(b)};a.getMediaResourcePred_=function(b){return false};a.MEDIA_TYPE="";a.load=function(c){this.isLoaded_=false;var b=this.getResource();if(b!=null){b.loadMedia(c)}};a.unload=function(){this.isLoaded_=false;if(this.streamManager_){this.streamManager_.unload()}else{var b=this.getResource();if(b!=null){b.unloadMedia()}}};a.reload=function(){if(this.streamManager_){this.streamManager_.reload()}else{var b=this.getResourceUrl();this.load(b);this.fileUrl_=b}};a.isSetSource=function(){var b=this.CriLaP1e8.getElement();return b.networkState==1||b.networkState==2?true:false};a.notifyMediaSrcChange=function(){var b=this.getMediaElement();this.resetMediaDuration_(b)};a.isEmptySrc=function(){return this.CriLaP1e8.isEmpty()};a.isRequiredReload=function(){var b=this.CriLaP1e8.getElement();if(b.buffered.length!=0){return false}else{if(this.isEmptySrc()==true){return false}else{if(b.readyState!=1&&b.networkState!=1){return false}}}return true};a.setMediaPreloadType=function(c){var b=this.CriLaP1e8.getElement();if(b!=null){b.setAttribute("preload",c)}};a.setVideoPreloadType=a.setMediaPreloadType;a.setPreloadDurationToMediaAttribute=function(c){var b=this.CriLaP1e8.getElement();if(b!=null&&c!=null){b.setAttribute("data-preload-duration",c)}}})(CriLaC00t.prototype);function CriLaC00u(){CriLaC00t.call(this);this.blobUrl_=null;this.renderType_=LaVideoRenderType.VIDEO;this.mouseMoveFunc_=function(a){};this.blobXhr_=null;this.streamManager_=null;if(this.initPluginVideoGroup_){this.initPluginVideoGroup_()}}var LaVideoRenderType={VIDEO:0,CANVAS:1};Object.freeze(LaVideoRenderType);(function(b){var a=CriLaC00t.prototype;CriLaPolyfill.Object.setPrototypeOf(b,a);b.initialize=function(m,f,d,k,l,i,h,e,c,j){if(a.initializeFromResource.apply(this,arguments)===false){return false}var g=j.getVideoRenderTargetType();this.updateRenderType_(g);if(this.renderType_==LaVideoRenderType.CANVAS){CriLaHtmlCss.setVisibility(this.parentDiv_,false)}this.setupStreamManager("");this.lamgPlayer_.mute(true);return true};b.setupStreamManager=function(d){if(this.CriLaP1e8.type!==CriLaResourceType.SEQUENCE_VIDEO){return}var e=this.CriLaP1e8.sequenceType;if(e===CriLaSequenceType.MSE){this.streamManager_=new CriLaStreamManagerMse(this.CriLaP1e8);var c=this.isForcingProgressiveByUA(e);this.streamManager_.initialize(c)}else{if(e===CriLaSequenceType.HLS){this.streamManager_=new CriLaStreamManagerHls(this.CriLaP1e8);var c=d||this.isForcingProgressiveByUA(e);this.streamManager_.initialize(c)}}if(d){this.streamManager_.setPassword(d)}};b.isForcingProgressiveByUA=function(d){var e=CriUAChecker.getOS();var f=CriUAChecker.getOSVersion();var c=CriUAChecker.getBrowser();if(d==CriLaSequenceType.HLS){return(e==CriUAOS.iOS&&f>=15)}else{return(c==CriUABrowser.Safari||c==CriUABrowser.IE)}};b.loadBlobResource_=function(g,e,d){if(this.fileUrl_==e){if(d!=null){d.setupFinishedCallback(g)}}else{var i=this.CriLaP1e8;this.fileUrl_=e;var j=new XMLHttpRequest();j.open("GET",e,true);j.responseType="blob";var h=CriLiveActSharedSettings.getAdditionalRequestHeaders_();for(var f in h){j.setRequestHeader(f,h[f])}j.onload=function(m){this.blobXhr_=null;var k=j.response;var l=window.URL.createObjectURL(k);this.blobUrl_=l;i.loadMedia(l);if(d!=null){d.setupFinishedCallback(g)}}.bind(this);var c=function(k){this.blobXhr_=null}.bind(this);j.onerror=c;j.onabort=c;j.ontimeout=c;j.send(null);this.blobXhr_=j}};b.setup=function(i,h,g,c){if(i.hasVideo()==false){return}function d(n){var j=n.getLayerList();for(var m=0;m=e.length){throw new Error("不正なコントロール行です: "+d)}e[d].appendChild(b.getElement());this.addComponentDict_(c,b);if(b instanceof CriLaPlayerControlMiniMenuButton){this.addMiniMenu_(c,b)}};a.addComponents=function(g){var d=this.componentDict_;try{for(var c in g){var b=g[c];this.addComponent(c,b)}}catch(f){this.componentDict_=d;throw f}};a.expandComponent_=function(f,e){var b=e.getSelector();var d=CriLaPolyfill.Array.from(this.controlElem_.querySelectorAll(b));if(d.length===0){return}if(d.length>1){throw new Error("同じコンポーネントを2つ以上配置することはできません")}var c=d[0];e.copyCssClasses(c);e.copyAttributes(c);c.parentNode.replaceChild(e.getElement(),c);this.addComponentDict_(f,e);if(e instanceof CriLaPlayerControlMiniMenuButton){this.addMiniMenu_(f,e)}};a.expandCustomComponents_=function(){var c=CriLaPlayerControlTemplateCustomButton.CSS_CLASS_NAME;var b=CriLaPolyfill.Array.from(this.controlElem_.getElementsByClassName(c));b.forEach(function(d){var f=d.getAttribute("data-name");if(!f){throw new Error("名前のないカスタムコンポーネントは追加できません。data-name属性を付与してください。")}var e=new CriLaPlayerControlTemplateCustomButton();this.expandCustomComponent_(f,e,d)},this)};a.expandCustomComponent_=function(d,c,b){c.copyCssClasses(b);c.copyAttributes(b);b.parentNode.replaceChild(c.getElement(),b);this.addComponentDict_(d,c);this.addMiniMenu_(d,c)};a.addMiniMenu_=function(d,c){if(!(c instanceof CriLaPlayerControlMiniMenuButton)){throw new Error("指定したコンポーネントはMiniMenuを持ちません")}d=String(d);c.addEventListener("click",function(g){this.closeOtherMiniMenu(d);g.stopPropagation()}.bind(this));var e=c.getMiniMenu();var b=c.getElement();var f=b.getAttribute("data-title");if(f!=null){e.setTitle(f)}this.miniMenuFieldElem_.appendChild(e.getElement());this.miniMenuDict_[d]=e};a.addScreenPlayButton=function(b){this.addComponentDict_(CriLaControlComponentName.SCREEN_PLAY_BUTTON,b);this.wrapperElem_.appendChild(b.getElement())};a.expandOrAddVolumeSliderComponent_=function(){if(!this.enabledTemplate_){return}if(CriUAChecker.isSmallScreen()){return}var c=this.getComponent(CriLaControlComponentName.VOLUME_BUTTON);if(c==null){return}var b=c.getElement();if(b.getAttribute("data-slider")!=="true"){return}var e=this.volumeSlider_;var d=e.getElement();b.insertAdjacentElement("afterend",d);this.addComponentDict_(CriLaControlComponentName.VOLUME_SLIDER,e)};a.addComponentDict_=function(c,b){c=String(c);if(!c){throw new Error("コントロールのコンポーネントに名前が設定されていません")}if(c in this.componentDict_){throw new Error("コントロールのコンポーネント名は重複させることができません")}this.componentDict_[c]=b};a.getComponent=function(b){b=String(b);return this.componentDict_[b]};a.registerRowEventCommon_=function(b){b.addEventListener("click",this.closeMiniMenuAll.bind(this,{excludePinnedMiniMenu:true}))};a.setParticularControlStyle_=function(e,c){if("visibility" in e){var b=e.visibility;this.setControlVisibility(c(b))}if("zoom" in e){var b=e.zoom;if(!("zoomIn" in e)){e.zoomIn=b}if(!("zoomOut" in e)){e.zoomOut=b}}if("showDuration" in e){this.setShowDuration_(Number(e.showDuration))}if("backgroundColor" in e){var f=e.backgroundColor;var d=CriLaUtility.colorStringToArray(f);if(d[3]>0){this.rows_.forEach(function(g){g.style.backgroundColor=f},this);this.setClassName(null,"")}else{this.rows_.forEach(function(g){g.style.backgroundColor=""},this);this.setClassName(null,"liveact-controls--no-seekbar")}}if("controlClass" in e){this.setClassName(null,e.controlClass)}};a.setControlStyle=function(e){var f=function(g){return g==="true"?true:g==="false"?false:Boolean(g)};this.setParticularControlStyle_(e,f);for(var d in e){var c=this.componentDict_[d];if(c){var b=e[d];c.setVisibility(f(b))}}};a.setClassName=function(c,d){var b=this.controlElem_;b.className="liveact-controls";if(d){b.classList.add(d)}};a.append=function(b){b.appendChild(this.controlElem_)};a.addEventListener=function(b,d,c){this.controlElem_.addEventListener(b,d,c)};a.dispatchEvent=function(b){this.controlElem_.dispatchEvent(b)};a.dispatchEventByType=function(d,b){var c=b||{};this.dispatchEvent(new CriLaPolyfill.Event.CustomEvent(d,{bubbles:false,cancellable:false,detail:c}))};a.setButtonState=function(b,c){if(this.componentDict_[b]){this.componentDict_[b].setState(c)}};a.setChapterSeparatorAddButtonState=function(b){this.chapterMiniMenu_.enableAddButton(b)};a.seekLastFrame=function(){this.seekBar_.seekLastFrame();this.time_.seekLastFrame()};a.setLoadedFrame=function(b){this.seekBar_.setLoadedFrame(b)};a.setVolume=function(b){this.volumeSlider_.setVolume(b);this.setButtonState(CriLaControlComponentName.VOLUME_BUTTON,b>0)};a.getVolume=function(){this.volumeSlider_.getVolume()};a.stepFadeTimeMs_=function(b){this.setFadeTimeMs_(this.fadeTimeMs_+b)};a.setFadeTimeMs_=function(b){b=Math.max(b,0);b=Math.min(b,this.showDuration_);this.fadeTimeMs_=b};a.updateAlpha=function(d){var c=1;var b=Object.keys(this.miniMenuDict_).filter((function(e){return this.miniMenuDict_[e].isOpen()==true}).bind(this));if(b.length>0){return}if(this.showDuration_>=0){this.stepFadeTimeMs_(-d);c=Math.min(1,this.fadeTimeMs_/500)}this.setAlpha(c)};a.resetAlpha=function(){this.setAlpha(1);this.fadeTimeMs_=this.showDuration_};a.setShowDuration_=function(b){this.showDuration_=b;this.resetAlpha()};a.getMiniMenuNames=function(b){b=b||{excludePinnedMiniMenu:false};var d=b.excludePinnedMiniMenu===true;var c=Object.keys(this.miniMenuDict_);if(d){c=c.filter(function(e){return !this.miniMenuDict_[e].isPinned()},this)}return c};a.isMiniMenuOpen=function(b){return this.miniMenuDict_[b].isOpen()};a.isMiniMenuOpenAny=function(b){return this.getMiniMenuNames(b).some(this.isMiniMenuOpen,this)};a.closeMiniMenu=function(b){var c=this.miniMenuDict_[b];if(c){c.close()}};a.closeMiniMenuAll=function(b){this.getMiniMenuNames(b).forEach(this.closeMiniMenu,this)};a.closeOtherMiniMenu=function(b){Object.keys(this.miniMenuDict_).filter(function(c){return c!==b},this).forEach(this.closeMiniMenu,this)};a.isEnabledPlaybackRangeAdjustmentMode=function(){return this.enabledPlaybackRangeAdjustmentMode_};a.enablePlaybackRangeAdjustmentMode=function(c){if(this.enabledPlaybackRangeAdjustmentMode_===c){return}this.enabledPlaybackRangeAdjustmentMode_=c;var b="liveact-controls--playback-range-adjustment-mode";if(c){this.controlElem_.classList.add(b);this.playbackRangeMiniMenu_.open()}else{this.controlElem_.classList.remove(b);this.playbackRangeMiniMenu_.close()}this.dispatchEventByType(CriLaControlEvent.PLAYBACK_RANGE_ADJUSTMENT_MODE_CHANGED,{enabledMode:c})};a.getComponentVisibility=function(d){var c=this.getComponent(d);if(c==null){return false}var b=c.getVisibility();return b};a.initTooltip=function(d,b){var c=d.getElement();CriLaPlayerControlButton.addTooltipContents(d,b);if(c.classList.contains("lac-button")){c.addEventListener("mouseover",function(){this.showButtonTooltip(d)}.bind(this));c.addEventListener("click",function(){this.reshowButtonTooltip(d)}.bind(this));c.addEventListener("mouseleave",function(){this.hideButtonTooltip(d)}.bind(this))}};a.showButtonTooltip=function(b){var c=this.controlWidth();var d=this.controlHeight();var e=this.controlTop();b.showTooltip(c,d,e)};a.hideButtonTooltip=function(b){b.hideTooltip()};a.reshowButtonTooltip=function(b){this.hideButtonTooltip(b);this.showButtonTooltip(b)};a.controlWidth=function(){return this.controlElem_.offsetWidth};a.controlHeight=function(){var d=this.controlElem_.getElementsByClassName("lac-row");var c=0;for(var b=0;b0?1:0}var c=d;this.setPosition(c)};b.getVolume=function(){return this.getPosition()}})(CriLaVolumeSliderComponent.prototype,CriLaSliderBase.prototype);function CriLaPlayerControlMiniMenuBase(){CriLaC00T.call(this,"lac-minimenu");this.isOpen_=false;this.isPinned_=false;var c=this.elem_;var b=document.createElement("div");b.classList.add("lac-minimenu-wrap");c.appendChild(b);var f=document.createElement("div");f.classList.add("lac-minimenu-header");b.appendChild(f);var d=document.createElement("div");d.classList.add("lac-minimenu-pin");d.classList.add("lac-button");d.classList.add("lac-pin");b.appendChild(d);d.addEventListener("click",function(){var g=!this.isPinned();this.enablePin(g);if(g){d.classList.add("lac-buttonon")}else{d.classList.remove("lac-buttonon")}}.bind(this),false);var a=document.createElement("div");a.classList.add("lac-minimenu-body");b.appendChild(a);var e=document.createElement("div");e.classList.add("lac-minimenu-footer");b.appendChild(e);this.wrapElem_=b;this.headerElem_=f;this.bodyElem_=a;this.footerElem_=e;this.pinButton_=d}(function(a,b){CriLaPolyfill.Object.setPrototypeOf(a,b);a.open=function(){if(!this.isOpen_){this.isOpen_=true;this.addClassName("lac-minimenu--open");this.dispatchEventByType("open")}};a.close=function(){if(this.isOpen_){this.isOpen_=false;this.removeClassName("lac-minimenu--open");this.dispatchEventByType("close")}};a.isOpen=function(){return this.isOpen_};a.enablePin=function(c){this.isPinned_=c};a.isPinned=function(){return this.isPinned_};a.setTitle=function(c){this.headerElem_.textContent=c}})(CriLaPlayerControlMiniMenuBase.prototype,CriLaC00T.prototype);function CriLaPlayerControlCustomMiniMenu(){var a=this;CriLaPlayerControlMiniMenuBase.call(a);a.addClassName("lac-custom-minimenu")}(function(c,b){CriLaPolyfill.Object.setPrototypeOf(c,b);c.open=function(){if(this.hasContent()){b.open.call(this)}};c.setHeaderHtml=function(e){this.headerElem_.innerHTML=e};c.setBodyHtml=function(e){this.bodyElem_.innerHTML=e};c.setFooterHtml=function(e){this.footerElem_.innerHTML=e};c.setHeaderElement=function(e){a(this.headerElem_);this.headerElem_.appendChild(e)};c.setBodyElement=function(e){a(this.bodyElem_);this.bodyElem_.appendChild(e)};c.setFooterElement=function(e){a(this.footerElem_);this.footerElem_.appendChild(e)};c.resetContent=function(){[this.headerElem_,this.bodyElem_,this.footerElem_].forEach(a)};c.hasContent=function(){return[this.headerElem_,this.bodyElem_,this.footerElem_].some(d)};function a(e){while(e.firstChild){e.removeChild(e.firstChild)}}function d(e){return e.firstChild!=null}})(CriLaPlayerControlCustomMiniMenu.prototype,CriLaPlayerControlMiniMenuBase.prototype);function CriLaTimeInputSubComponent(c,b,e,d){this.CriLaP11m=new CriLaSubEventDispatcher();this.CriLaP11m.delegate(this);this.frame_=0;this.framerate_=c;this.range_=new CriLaFrameRange(Math.floor(b),Math.floor(e));var a=this.elem_=document.createElement("input");a.type="number";a.addEventListener("change",function(g){var f=Number(a.value);f=isNaN(f)?0:f;this.setValue(f)}.bind(this));this.unit_=null;this.setUnitByString(d)}(function(a){a.getElement=function(){return this.elem_};a.setUnit=function(c){var b=this.unit_;this.unit_=c;this.onUnitChange_(b,c)};a.setUnitByString=function(c){var b=c==="frame"?CriLaTimeInputSubComponent.Unit.FRAME:CriLaTimeInputSubComponent.Unit.SECOND;this.setUnit(b)};a.onUnitChange_=function(b,c){if(b===c){return}this.update_()};a.getFrame=function(){return this.frame_};a.setFrame=function(c){var b=this.frame_;this.frame_=c;this.update_();if(b!==c){this.dispatchEvent("change",{frame:c})}};a.setValue=function(b){this.unit_.setValueTo(this,b)};a.setFramerate=function(b){this.framerate_=b;this.update_()};a.setMinFrame=function(b){this.range_.begin=b;this.update_()};a.setMaxFrame=function(b){this.range_.end=b;this.update_()};a.update_=function(){var c=this.elem_;var d=this.unit_.getMin(this);var b=this.unit_.getMax(this);var e=this.unit_.getStep();c.min=d;c.max=b;c.step=e;var f=this.unit_.getValueFrom(this);this.elem_.value=f}})(CriLaTimeInputSubComponent.prototype);(function(){function a(){}(function(d){d.setValueTo=function(f,e){};d.getValueFrom=function(e){};d.getMin=function(e){};d.getMax=function(e){};d.getStep=function(){}})(a.prototype);function c(){a.call(this)}(function(d,e){CriLaPolyfill.Object.setPrototypeOf(d,e);d.setValueTo=function(g,f){g.setFrame(f)};d.getValueFrom=function(f){return f.getFrame()};d.getMin=function(f){return f.range_.begin};d.getMax=function(f){return f.range_.end};d.getStep=function(){return 1}})(c.prototype,a.prototype);function b(){a.call(this)}(function(d,e){CriLaPolyfill.Object.setPrototypeOf(d,e);d.setValueTo=function(g,f){var h=f*g.framerate_;h=Math.round(h);g.setFrame(h)};d.getValueFrom=function(g){var h=g.getFrame();var f=h/g.framerate_;return f.toFixed(1)};d.getMin=function(f){return f.range_.begin/f.framerate_};d.getMax=function(f){return f.range_.end/f.framerate_};d.getStep=function(){return 0.1}})(b.prototype,a.prototype);CriLaTimeInputSubComponent.Unit={FRAME:new c(),SECOND:new b()}})();function CriLaOnMiniMenuButton(d,e,b){CriLaC00T.call(this,"lac-onminimenu-button");var c=this.elem_;if(e){c.classList.add(e)}var a=document.createElement("div");a.classList.add("lac-onminimenu-inner-button");c.appendChild(a);if(b){a.classList.add(b)}if(d){a.textContent=d}this.innerElem_=a;this.isEnabled_=true}(function(a,b){CriLaPolyfill.Object.setPrototypeOf(a,b);a.addEventListener=function(d,f,e){var c=this;b.addEventListener.call(this,d,function(){if(c.isEnabled_){f.apply(this,arguments)}},e)};a.getInnerElement=function(){return this.innerElem_};a.setText=function(c){return this.innerElem_.textContent=c};a.enable=function(c){this.isEnabled_=c;if(c){this.elem_.classList.remove("lac-onminimenu-button--disabled")}else{this.elem_.classList.add("lac-onminimenu-button--disabled")}};a.isEnabled=function(){return this.isEnabled_}})(CriLaOnMiniMenuButton.prototype,CriLaC00T.prototype);function CriLaOnMiniMenuButtonTimeUnit(){CriLaOnMiniMenuButton.call(this,"","lac-toggle-unit");this.unit_="";this.setUnit("frame")}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a);b.toggleUnit=function(){var c=this.unit_==="frame"?"second":"frame";this.setUnit(c)};b.setUnit=function(c){this.unit_=c;this.setText("単位: "+(c==="frame"?"フレーム":"秒"))};b.getUnit=function(){return this.unit_}})(CriLaOnMiniMenuButtonTimeUnit.prototype,CriLaOnMiniMenuButton.prototype);function CriLaPlayerControlChapterMiniMenu(){var c=this;CriLaPlayerControlMiniMenuBase.call(c);this.sceneFrameRange_=new CriLaFrameRange(0,30);this.framerate_=30;this.separatorsFrame_=[];this.timeUnit_="frame";this.elem_.classList.add("lac-chapter-minimenu");this.headerElem_.textContent="チャプター設定";var b=document.createElement("ol");this.bodyElem_.appendChild(b);var a=new CriLaOnMiniMenuButton("追加","lac-chapter-add");this.footerElem_.appendChild(a.getElement());a.addEventListener("click",this.dispatchAddEvent_.bind(this),false);var d=new CriLaOnMiniMenuButton(this.getUnitButtonTextContent_(),"lac-toggle-unit");this.footerElem_.appendChild(d.getElement());d.addEventListener("click",this.onToggleUnit_.bind(this),false);this.itemListElem_=b;this.addButton_=a;this.toggleUnitButton_=d}(function(c,a){CriLaPolyfill.Object.setPrototypeOf(c,a);c.getTimeUnit=function(){return this.timeUnit_};c.addSeparator=function(e,d){d=d||"frame";var f=this.convertValue_(d,"frame",Number(e));f=this.sceneFrameRange_.clamp(f);this.separatorsFrame_.push(f);this.separatorsFrame_.sort(b);this.dispatchChangeEvent_();this.updateForm_()};c.updateSeparator=function(f,d,e){e=e||"frame";var g=this.convertValue_(e,"frame",Number(f));g=this.sceneFrameRange_.clamp(g);this.separatorsFrame_.splice(d,1,g);this.separatorsFrame_.sort(b);this.dispatchChangeEvent_();this.updateForm_();this.focusInputElemByFrame_(g)};c.setSeparators=function(d,e){e=e||"frame";var f=d.map(function(g){var h=this.convertValue_(e,"frame",Number(g));return this.sceneFrameRange_.clamp(h)},this).sort(b);if(CriLaUtility.Array.isEqual(f,this.separatorsFrame_)){return}CriLaUtility.Array.copy(f,this.separatorsFrame_);this.dispatchChangeEvent_();this.updateForm_()};c.removeSeparator=function(d){this.separatorsFrame_.splice(d,1);this.dispatchChangeEvent_();this.updateForm_()};c.clearSeparators=function(){this.separatorsFrame_.length=0;this.dispatchChangeEvent_();this.updateForm_()};c.reset=function(d,e){this.sceneFrameRange_.duration=d;this.framerate_=e;this.clearSeparators()};c.toggleTimeUnit=function(){this.timeUnit_=this.getNextTimeUnit_();this.updateForm_()};c.enableAddButton=function(d){this.addButton_.enable(d)};c.onChange_=function(g,f){var d=this.getItemElems_().indexOf(f);this.updateSeparator(g.target.value,d,this.timeUnit_)};c.onRemove_=function(g,f){var d=this.getItemElems_().indexOf(f);this.removeSeparator(d)};c.onToggleUnit_=function(d){this.toggleTimeUnit()};c.dispatchChangeEvent_=function(){this.dispatchEventByType("separatorchanged",{frames:this.separatorsFrame_})};c.dispatchAddEvent_=function(d){this.dispatchEventByType("separatoradded")};c.updateForm_=function(){var k=this.separatorsFrame_.map(function(i){return this.convertValue_("frame",this.timeUnit_,i)},this);var g=this.getItemElems_();if(k.length!==g.length){var f=0;while(fd){this.removeItemElem_(m);g.splice(f,1)}else{++f}}}while(g.lengthk.length){var m=g.pop();this.removeItemElem_(m)}}CriLaUtility.Array.zip(g,k).forEach(function(n){var i=n[0].querySelector("input");i.value=this.formatValue_(n[1]);i.step=this.getNumberStep_();i.max=this.getNumberMax_()},this);this.toggleUnitButton_.setText(this.getUnitButtonTextContent_())};c.getItemElems_=function(){return CriLaPolyfill.Array.from(this.itemListElem_.querySelectorAll(".lac-separator-form-item"))};c.removeItemElem_=function(d){this.itemListElem_.removeChild(d)};c.addItemElem_=function(d){var h=document.createElement("li");h.classList.add("lac-separator-form-item");h.classList.add("lac-separator-form-item--added-animation");var j=document.createElement("span");h.appendChild(j);j.classList.add("lac-separator-number");var g=document.createElement("input");h.appendChild(g);g.type="number";g.min=0;h.addEventListener("change",function(k){this.onChange_(k,h)}.bind(this),false);var i=document.createElement("span");h.appendChild(i);i.classList.add("lac-remove");i.addEventListener("click",function(k){this.onRemove_(k,h)}.bind(this),false);if(d!=null){var f=this.getItemElems_();if(dh){var c=this.inputBegin_===d?this.inputEnd_:this.inputBegin_;c.setFrame(d.getFrame())}this.dispatchChangeEvent_()};b.createItem_=function(f){var e=document.createElement("div");e.classList.add("lac-playback-range-minimenu-item");var d=document.createElement("label");d.textContent=f;e.appendChild(d);var c=new CriLaTimeInputSubComponent(30,0,30,"frame");d.appendChild(c.getElement());return{item:e,label:d,input:c}};b.dispatchChangeEvent_=function(){var c=this.inputBegin_.getFrame();var d=this.inputEnd_.getFrame();this.dispatchEventByType("playbackrangechanged",{beginFrame:c,endFrame:d})};b.onToggleUnitButtonClicked_=function(f){var d=this.toggleUnitButton_;d.toggleUnit();var c=d.getUnit();this.inputBegin_.setUnitByString(c);this.inputEnd_.setUnitByString(c)};b.onRangeResetButtonClicked_=function(c){this.dispatchEventByType("playbackrangereset")}})(CriLaPlayerControlPlaybackRangeMiniMenu.prototype,CriLaPlayerControlMiniMenuBase.prototype);function CriLaPlaybackRateSlider(b,a){CriLaSliderBase.call(this,b,a)}(function(a,b){CriLaPolyfill.Object.setPrototypeOf(a,b);a.initialize_=function(d,c){b.initialize_.call(this,d,c);this.addClassName("lac-slider--playback-rate");this.selector_=".lac-slider.lac-slider--playback-rate"}})(CriLaPlaybackRateSlider.prototype,CriLaSliderBase.prototype);function CriLaPlayerControlPlaybackRateMiniMenu(e){var c=this;CriLaPlayerControlMiniMenuBase.call(c);c.addClassName("lac-playback-rate-minimenu");c.playbackRate_=1;c.playbackRateMin_=1;c.playbackRateMax_=2;c.playbackRateList_=[c.playbackRate_];c.headerElem_.textContent="再生速度設定";var d=document.createElement("div");d.classList.add("lac-playback-rate-minimenu-line");c.bodyElem_.appendChild(d);var b=new CriLaPlaybackRateSlider(this.getElement());this.slider_=b;d.appendChild(b.getElement());b.addEventListener("change",this.onChangeSlider_.bind(this));var a=document.createElement("select");this.select_=a;d.appendChild(a);a.addEventListener("change",this.onChangeSelect_.bind(this))}(function(c,a){CriLaPolyfill.Object.setPrototypeOf(c,a);c.setPlaybackRateList=function(e){var d=e.map(b);this.select_.innerHTML="";d.forEach(function(f){this.select_.appendChild(f)},this);this.playbackRateList_=e;this.playbackRateMax_=Math.max.apply(null,e);this.playbackRateMin_=Math.min.apply(null,e);this.setPlaybackRate(this.playbackRate_)};c.getMinIndex=function(d){var f=this.playbackRateList_.map(function(h){return Math.abs(h-d)});var e=Number.POSITIVE_INFINITY;var g=0;f.forEach(function(i,h){if(i0){var b=20;this.stepFade_(1,0,c,b);this.fadingOutTimeoutId_=setTimeout(function(){this.stepFadeOut_(c)}.bind(this),b)}else{this.fadingOutTimeoutId_=null;this.setAlpha(0);this.dispatchEventByType(CriLaOverlayEvent.OVERLAY_FADE_OUT_END)}};a.stepFade_=function(g,b,f,c){var e;if(f!==0){e=(b-g)/(f/c)}else{e=(b-g)}var d=this.getAlpha()+e;this.setAlpha(d)};a.addEventListener=function(b,d,c){this.elem_.addEventListener(b,d,c)};a.removeEventListener=function(b,c){this.elem_.removeEventListener(b,c)};a.dispatchEvent=function(b){this.elem_.dispatchEvent(b)};a.dispatchEventByType=function(d,b){var c=b||{};this.dispatchEvent(new CriLaPolyfill.Event.CustomEvent(d,{bubbles:false,cancellable:false,detail:c}))}})(CriLaPlayerOverlayPanel.prototype);function CriLaPlayerOverlayStandardCoachMark(a){CriLaPlayerOverlayPanel.call(this,a)}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a);b.createStandardCoachMarkElement=function(f){var g=f+"-icon";var e=f+"-label";var d=document.createElement("div");var h=document.createElement("div");var c=document.createElement("span");c.innerHTML="スワイプできます";d.className=g;h.className=e;this.elem_.appendChild(d);this.elem_.appendChild(h);h.appendChild(c)}})(CriLaPlayerOverlayStandardCoachMark.prototype,CriLaPlayerOverlayPanel.prototype);function CriLaPlayerOverlaysCoachMarkSwipe(){var a="lao-swipe";CriLaPlayerOverlayStandardCoachMark.call(this,a);this.createStandardCoachMarkElement(a);this.setOverlayPanelToCenter()}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a)})(CriLaPlayerOverlaysCoachMarkSwipe.prototype,CriLaPlayerOverlayStandardCoachMark.prototype);function CriLaPlayerOverlaysCoachMarkSwipeMini(a){var a="lao-swipe-mini";CriLaPlayerOverlayStandardCoachMark.call(this,a);this.createStandardCoachMarkElement(a)}(function(a,b){CriLaPolyfill.Object.setPrototypeOf(a,b)})(CriLaPlayerOverlaysCoachMarkSwipeMini.prototype,CriLaPlayerOverlayStandardCoachMark.prototype);var CriLaPlayStatus={STOP:0,PLAYING:1,PAUSE:2};CriLaPlayStatus.BEFORE_PAGE_JUMP=3;Object.freeze(CriLaPlayStatus);var CriLaCanvasResolutionUsage={STYLE:1,ATTRIBUTE:2,BOTH:3};Object.freeze(CriLaCanvasResolutionUsage);function CriLaPlayer(){this.implPlayer_=null;if(this.initPluginVideoGroup_){this.initPluginVideoGroup_()}}var criLaRequestAnimationFrame_=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1000/15)};var criLaCancelAnimationFrame_=window.cancelAnimationFrame||window.mozcancelAnimationFrame||window.webkitcancelAnimationFrame||window.mscancelAnimationFrame||function(a){window.clearTimeout(a)};(function(a){a.getVersion=function(){return this.implPlayer_.getVersion()};a.initialize=function(d,c){var e=new CriLaEventDispatcher(this);var b=new CriLaC001(e);b.initialize(d,c);this.implPlayer_=b};a.finalize=function(){if(this.implPlayer_){this.implPlayer_.finalize();this.implPlayer_=null}};a.setPassword=function(b){this.implPlayer_.setPassword(b)};a.getPassword=function(){return this.implPlayer_.getPassword()};a.setCanvas=function(b){this.implPlayer_.setCanvas(b)};a.getCanvas=function(){return this.implPlayer_.getCanvas()};a.enableGrabCursor=function(){this.implPlayer_.enableGrabCursor()};a.loadLjtWithResources=function(b,c){return this.implPlayer_.loadLjtWithResources(b,c)};a.setResourcesBaseURL=function(b){this.implPlayer_.setResourcesBaseURL(b);return this};a.setSharedResourcesBaseURL=function(b){this.implPlayer_.setSharedResourcesBaseURL(b);return this};a.getResourcesBaseURL=function(){return this.implPlayer_.getResourcesBaseURL()};a.getSharedResourcesBaseURL=function(b){return this.implPlayer_.getSharedResourcesBaseURL(b)};a.loadLjt=function(b,c){return this.implPlayer_.loadLjtFromUrl(b,c)};a.loadLjtFromString=function(c,b){return this.implPlayer_.loadLjtFromString(c,b)};a.requestLoadResourcesCurrentScene=function(){this.implPlayer_.requestLoadResourcesCurrentScene()};a.requestLoadResourcesBySceneName=function(b){this.implPlayer_.requestLoadResourcesBySceneName(b)};a.requestLoadResources=function(){this.implPlayer_.requestLoadResources()};a.isCompleteCurrentScene=function(){return this.implPlayer_.isCompleteCurrentScene()};a.getCurrentScene=function(){return this.implPlayer_.getCurrentScene()};a.getCurrentSceneWidth=function(){return this.implPlayer_.getCurrentSceneWidth()};a.getCurrentSceneHeight=function(){return this.implPlayer_.getCurrentSceneHeight()};a.resizeCanvasToCurrentScene=function(b,c){this.implPlayer_.resizeCanvasToCurrentScene(b,c)};a.resizeCanvasToFixedRatioWidth=function(c,b,d){this.implPlayer_.resizeCanvasToFixedRatioWidth(c,b,d)};a.resizeCanvasToFixedRatioHeight=function(b,c,d){this.implPlayer_.resizeCanvasToFixedRatioHeight(b,c,d)};a.resizeCanvasContain=function(b){this.implPlayer_.resizeCanvasContain(b)};a.resizeCanvasCover=function(b){this.implPlayer_.resizeCanvasCover(b)};a.resizeCurrentSceneToCanvas=function(){this.implPlayer_.resizeCurrentSceneToCanvas()};a.resizeCurrentSceneToCanvasFixedRatio=function(){this.implPlayer_.resizeContentsToCanvasFixedRatio()};a.resizeFromParentElement=function(){this.implPlayer_.resizeFromParentElement()};a.fullscreen=function(b){this.implPlayer_.fullscreen(b)};a.isTheatre=function(){return this.implPlayer_.isFullscreen()};a.fullscreenNative=function(b){this.implPlayer_.fullscreenNative(b)};a.isFullscreen=function(){return this.implPlayer_.isFullscreenNative()};a.requestFullscreen=function(){this.implPlayer_.fullscreenNative(true)};a.exitFullscreen=function(){this.implPlayer_.fullscreenNative(false)};a.requestTheatre=function(){this.implPlayer_.fullscreen(true)};a.exitTheatre=function(){this.implPlayer_.fullscreen(false)};a.requestPictureInPicture=function(){return this.implPlayer_.requestPictureInPicture()};a.exitPictureInPicture=function(){return this.implPlayer_.exitPictureInPicture()};a.appliedPictureInPicture=function(){return this.implPlayer_.appliedPictureInPicture()};a.enablePictureInPicture=function(){return this.implPlayer_.enablePictureInPicture()};a.getCurrentSceneDuration=function(){return this.implPlayer_.getCurrentSceneDuration()};a.getCurrentSceneLength=function(){return this.implPlayer_.getCurrentSceneDuration()};a.getCurrentSceneFrameRate=function(){return this.implPlayer_.getCurrentSceneFrameRate()};a.getNumScenes=function(){return this.implPlayer_.getNumScenes()};a.getSceneByIndex=function(b){return this.implPlayer_.getSceneByIndex(b)};a.getSceneByName=function(b){return this.implPlayer_.getSceneByName(b)};a.setCurrentSceneByIndex=function(b){return this.implPlayer_.setCurrentSceneByIndex(b)};a.setCurrentSceneByName=function(b){return this.implPlayer_.setCurrentSceneByName(b)};a.getCurrentSceneName=function(){return this.implPlayer_.getCurrentSceneName()};a.setFrame=function(b){this.implPlayer_.setFrame(b);return b};a.getFrame=function(){return this.implPlayer_.getFrame()};a.setTime=function(b){return this.setTimeMs(b)};a.setTimeMs=function(b){this.implPlayer_.setTimeMs(b);return this};a.getTime=function(){return this.getTimeMs()};a.getTimeMs=function(){return this.implPlayer_.getTimeMs()};a.stepFrame=function(b,c){return this.implPlayer_.stepFrame(b,c)};a.stepTimeMs=function(b){return this.implPlayer_.stepTimeMs(b)};a.setSkipBackwardTimeMs=function(b){this.implPlayer_.setSkipBackwardTimeMs(b)};a.getSkipBackwardTimeMs=function(){return this.implPlayer_.getSkipBackwardTimeMs()};a.setSkipForwardTimeMs=function(b){this.implPlayer_.setSkipForwardTimeMs(b)};a.getSkipForwardTimeMs=function(){return this.implPlayer_.getSkipForwardTimeMs()};a.setProhibitTimeRangeMs=function(b,c){this.implPlayer_.setProhibitTimeMsRange(b,c)};a.getProhibitTimeRangeMs=function(){return this.implPlayer_.getProhibitTimeMsRange()};a.setProhibitTimeMsRange=a.setProhibitTimeRangeMs;a.getProhibitTimeMsRange=a.getProhibitTimeRangeMs;a.setLoopFlg=function(b){this.implPlayer_.setLoopFlg(b)};a.getLoopFlg=function(){return this.implPlayer_.getLoopFlg()};a.enableBackgroundFill=function(b){this.implPlayer_.enableBackgroundFill(b)};a.enableTapPlay=function(b){this.implPlayer_.enableTapPlay(b)};a.isTapPlayEnabled=function(){return this.implPlayer_.isTapPlayEnabled()};a.setVideoSettings=function(b){this.implPlayer_.setVideoSettings(b)};a.clear=function(){this.implPlayer_.clear()};a.fill=function(b){this.implPlayer_.fill(b)};a.drawWithClear=function(){this.implPlayer_.drawWithClear()};a.draw=function(){return this.implPlayer_.draw()};a.enableEveryFrameDrawing=function(b){this.implPlayer_.enableEveryFrameDrawing(b)};a.setPlayableBufferSizeMs=function(b){this.implPlayer_.setPlayableBufferSizeMs(b)};a.setPlayableBufferSize=function(b,c){this.implPlayer_.setPlayableBufferSize(b,c)};a.play=function(b){this.implPlayer_.play(b)};a.pause=function(){this.implPlayer_.pause()};a.isPaused=function(){return this.implPlayer_.isPaused()};a.stop=function(){this.implPlayer_.stop()};a.isStopped=function(){return this.implPlayer_.isStopped()};a.getPositionXY=function(){return this.implPlayer_.getPositionXY()};a.setPositionXY=function(b,c){this.implPlayer_.setPositionXY(b,c)};a.getRotation=function(){return this.implPlayer_.getRotation()};a.setRotation=function(b){this.implPlayer_.setRotation(b)};a.getScaleXY=function(){return this.implPlayer_.getScaleXY()};a.setScaleXY=function(b,c){this.implPlayer_.setScaleXY(b,c)};a.getPivotXY=function(){return this.implPlayer_.getPivotXY()};a.setPivotXY=function(b,c){this.implPlayer_.setPivotXY(b,c)};a.setPivotSeparateXY=function(e,d,c,b){this.implPlayer_.setPivotSeparateXY(e,d,c,b)};a.setAlpha=function(b){this.implPlayer_.setAlpha(b)};a.getAlpha=function(){return this.implPlayer_.getAlpha()};a.setFontScale=function(b){return this.implPlayer_.setFontScale(b)};a.getFontScale=function(){return this.implPlayer_.getFontScale()};a.getContainedLayerName=function(b,d,c){return this.implPlayer_.getContainedLayerName(b,d,c)};a.getContainedLayers=function(b,d,c){return this.implPlayer_.getContainedLayers(b,d,c)};a.getNumResources=function(){return this.implPlayer_.getNumResources()};a.getResourceByIndex=function(b){return this.implPlayer_.getResourceByIndex(b)};a.getResourceById=function(b){return this.implPlayer_.getResourceById(b)};a.getResourcesByName=function(b){return this.implPlayer_.getResourcesByName(b)};a.resetFontScale=function(){this.implPlayer_.resetFontScale()};a.addEventListener=function(b,c){this.implPlayer_.addEventListener(b,c);return this};a.removeEventListener=function(b,c){this.implPlayer_.removeEventListener(b,c);return this};a.dispatchEvent=function(c,b){this.implPlayer_.dispatchEvent(c,b);return this};a.getAnalysisReport=function(){return this.implPlayer_.getAnalysisReport()};a.clearAnalysisReport=function(){this.implPlayer_.clearAnalysisReport()};a.setControlStyle=function(b){this.implPlayer_.setControlStyle(b);return this};a.setOverlayStyle=function(b){this.implPlayer_.setOverlayStyle(b);return this};a.getOverlayStyle=function(){return this.implPlayer_.getOverlayStyle()};a.setPreload=function(b){this.implPlayer_.setPreload(b);return this};a.getTrackingCode=function(b){return this.implPlayer_.getTrackingCode(b)};a.getStreamType=function(){return this.implPlayer_.getStreamType()};a.canPlayCurrentScene=function(){return this.implPlayer_.canPlayCurrentScene()};a.setVolume=function(b){this.implPlayer_.setVolume(b)};a.getVolume=function(){return this.implPlayer_.getVolume()};a.mute=function(b){this.implPlayer_.mute(b)};a.isMuted=function(){return this.implPlayer_.isMuted()};a.setClickThreshold=function(b,c){this.implPlayer_.setClickThreshold(b,c)};a.setResourceURLSuffix=function(b){this.implPlayer_.setResourceURLSuffix(b)};a.setDefaultDimension_=function(c,b){this.implPlayer_.setDefaultDimension_(c,b)};a.setPlaybackRate=function(b){this.implPlayer_.setPlaybackRate(b)};a.getPlaybackRate=function(){return this.implPlayer_.getPlaybackRate()};a.setPlaybackRateRange=function(c,b){this.implPlayer_.setPlaybackRateRange(c,b)};a.getPlaybackRateRange=function(){return this.implPlayer_.getPlaybackRateRange()};a.isInvisible=function(){return this.implPlayer_.isInvisible()};a.getContentType=function(){return this.implPlayer_.getContentType()};a.setContentType=function(b){this.implPlayer_.setContentType(b)};a.isEnded=function(){return this.implPlayer_.isEnded()};a.zoomTo=function(b,c){this.implPlayer_.zoomTo(b,c)};a.reloadDecodedData_=function(){this.implPlayer_.reloadDecodedData_()};a.unloadDecodedData_=function(){this.implPlayer_.unloadDecodedData_()};a.setMemoryReduction=function(b){this.implPlayer_.setMemoryReduction(b)};a.setControlClassName=function(b){this.implPlayer_.setControlClassName(b)};a.addComponent=function(c,b){this.implPlayer_.addComponent(c,b)};a.addComponents=function(b){this.implPlayer_.addComponents(b)};a.getControls=function(){return this.implPlayer_.getControls()};a.getOverlays=function(){return this.implPlayer_.getOverlays()};a.getOverlayPanel=function(b){return this.implPlayer_.getOverlayPanel(b)};a.isSeeking=function(){return this.implPlayer_.isSeeking()};a.getChapterSeparatorsFrame=function(){return this.implPlayer_.getChapterSeparatorsFrame()};a.getChapterSeparatorsTimeMs=function(){return this.implPlayer_.getChapterSeparatorsTimeMs()};a.setChapterSeparatorsFrame=function(b){return this.implPlayer_.setChapterSeparatorsFrame(b)};a.setPlaybackRangeFrame=function(b,c){this.implPlayer_.setPlaybackRangeFrame(b,c)};a.resetPlaybackRange=function(){this.implPlayer_.resetPlaybackRange()};a.getPlaybackRangeFrame=function(){return this.implPlayer_.getPlaybackRangeFrame()};a.setupVideoControl=function(){this.implPlayer_.setupVideoControl()};a.setupAudioControl=function(){this.implPlayer_.setupAudioControl()};a.setupDefaultControl=function(){this.implPlayer_.setupDefaultControl()};a.setupAllaroundControl=function(){this.implPlayer_.setupAllaroundControl()};a.setupSwipeControl=function(){this.implPlayer_.setupSwipeControl()};a.setupTemplateControl=function(){this.implPlayer_.setupTemplateControl()};a.isEnabledControlTemplate=function(){this.implPlayer_.isEnabledControlTemplate()};a.setupVideoOverlay=function(){this.implPlayer_.setupVideoOverlay()};a.setupAllaroundOverlay=function(){this.implPlayer_.setupAllaroundOverlay()};a.setupSwipeOverlay=function(){this.implPlayer_.setupSwipeOverlay()};a.isInIframe=function(){return this.implPlayer_.isInIframe()};a.notifyPositionChange=function(c,b){this.implPlayer_.notifyPositionChange(c,b)};a.notifyParentResize=function(){this.implPlayer_.notifyParentResize()};a.notifyFullscreenChange=function(b){this.implPlayer_.notifyFullscreenChange(b)};a.unload=function(){return this.implPlayer_.unload()};a.unloadVideoResource=function(){return this.implPlayer_.unloadVideoResource()};a.setVideoPreloadType=function(b){return this.implPlayer_.setVideoPreloadType(b)};a.setPreloadDurationToMediaAttribute=function(b){return this.implPlayer_.setPreloadDurationToMediaAttribute(b)};a.enableRequestLoadResource=function(b){this.implPlayer_.enableRequestLoadResource(b)};a.isRequestLoadResourceEnabled=function(){return this.implPlayer_.isRequestLoadResourceEnabled()};a.loadCurrentSceneResourcesAll=function(){this.implPlayer_.loadCurrentSceneResourcesAll()};a.notifyMediaSrcChange=function(){this.implPlayer_.notifyMediaSrcChange()};a.enableFrameInterpolation=function(b){this.implPlayer_.enableFrameInterpolation(b)};a.requestRedraw=function(){this.implPlayer_.requestRedraw()};a.getDistanceFromViewport=function(){return this.implPlayer_.getDistanceFromViewport()};a.drawCurrentSceneToCanvasForcibly=function(){this.implPlayer_.drawCurrentSceneToCanvasForcibly()};a.setPageJumpMode=function(){this.implPlayer_.setPageJumpMode()};a.restoreFromPageJumpMode=function(){this.implPlayer_.restoreFromPageJumpMode()};a.memoryVolume=function(){this.implPlayer_.memoryVolume()};a.pagejump=function(b,c){this.implPlayer_.pagejump(b,c)};a.setRenderTarget=function(b){this.implPlayer_.setRenderTarget(b)};a.setLuminanceAdjustMode=function(b){this.implPlayer_.setLuminanceAdjustMode(b)};a.getLuminanceAdjustMode=function(){return this.implPlayer_.getLuminanceAdjustMode()};a.setLuminanceAdjustSpeed=function(b){this.implPlayer_.setLuminanceAdjustSpeed(b)};a.getLuminanceAdjustSpeed=function(){return this.implPlayer_.getLuminanceAdjustSpeed()};a.setLuminanceAdjustExposureValue=function(b){this.implPlayer_.setLuminanceAdjustExposureValue(b)};a.getLuminanceAdjustExposureValue=function(){return this.implPlayer_.getLuminanceAdjustExposureValue()};a.setLuminanceAdjustExposureBias=function(b){this.implPlayer_.setLuminanceAdjustExposureBias(b)};a.getLuminanceAdjustExposureBias=function(){return this.implPlayer_.getLuminanceAdjustExposureBias()};a.addAudioToCurrentScene=function(b){return this.implPlayer_.addAudioToCurrentScene(b)};a.addAudioBySceneIndex=function(c,b){return this.implPlayer_.addAudioBySceneIndex(c,b)};a.removeAudioFromCurrentScene=function(b){return this.implPlayer_.removeAudioFromCurrentScene(b)};a.removeAudioBySceneIndex=function(c,b){return this.implPlayer_.removeAudioBySceneIndex(c,b)};a.setIframeMode=function(b){this.implPlayer_.setIframeMode(b)};a.setSeekStyle=function(b){return this.implPlayer_.setSeekStyle(b)};a.sendQuestionnaireAnalyticsData=function(b){this.implPlayer_.sendAnalyticsCommon_("la-answer",b)};a.getCompanyCode=function(){return this.implPlayer_.getCompanyCode()};a.sendCognitionAnalyticsData=function(b){this.implPlayer_.sendAnalyticsCommon_("la-client-register",b)};a.enableSendAnalytics=function(b){this.implPlayer_.enableSendAnalytics(b)}})(CriLaPlayer.prototype);var CriLaStreamType={SEQ:0,RANDOM:1};Object.freeze(CriLaStreamType);function CriLaC00K(){this.timerCurrentTime_=0;this.frame_=0;this.delta_=0;this.sceneFPS_=0;this.sceneName_=0;this.sceneFrameRange_=new CriLaFrameRange(0,0);this.calculatedSceneDuration_=0;this.CriLaP11m=null;this.prohibitFrameRange_=new CriLaFrameRange(0,0);this.enabledProhibitFrameRange_=false;this.playbackFrameRange_=new CriLaFrameRange(0,0);this.CriLaP11k=null;this.CriLaP11l=false;this.loop=false;this.firstPlayStart=false;this.firstPlayEnd=false;this.status_=CriLaPlayStatus.STOP;this.objectType=null;this.streamType_=CriLaStreamType.RANDOM;this.restoreState=null;this.seekStyle=CriLaSeekStyle.ALL;this.hasPlayedFrame=0;this.playRangeEnd_=0;this.seekStyleEndFrame=0}(function(a){a.initialize=function(b){this.setup(b)};a.setup=function(e){var d=this.CriLaP11m=e.CriLaP11m;this.CriLaP11k=e.CriLaP11k;var c=e.CriLaP111;this.setSceneParam(c);d.dispatch(CriLaEvent.SEEKBAR_RESET_NEEDED);var b=this;d.addEventListener(CriLaEvent.ANALYTICS_UPDATED,function(h){var g=h.detail;var f=g.isSequential;var i=g.exceeded;b.updateAnalytics(f,i)});this.hasPlayedFrame=0};a.setSceneParam=function(b){this.sceneFPS_=b.getFramerate();this.sceneName_=b.getName();this.sceneFrameRange_.duration=b.getDuration();this.playbackFrameRange_.duration=b.getDuration();this.calculatedSceneDuration_=b.getCalculatedDuration()};a.updateMainLoopTime=function(){var b=this.getTimeMs_();this.delta_=(b-this.timerCurrentTime_);this.timerCurrentTime_=b};a.getDeltaTime=function(){return this.delta_};a.isEnded=function(){return this.isExceededLastFrame_(this.frame_)};a.isExceededLastFrame_=function(b){return this.playbackFrameRange_.isExceededLastFrame(b)};a.getVideoLastFrame=function(){return this.sceneFrameRange_.last};a.getBeginFrame=function(){return this.playbackFrameRange_.begin};a.getEndFrame=function(){return this.playbackFrameRange_.end};a.getLastFrame=function(){return this.playbackFrameRange_.last};a.seekLastFrame=function(){this.seekFrame(this.getLastFrame())};a.replay=function(){this.seekFrame(this.getBeginFrame())};a.validateSequential_=function(d,c,b){if(d==true&&c==true){b=false}return b};a.parseInFrame=function(b){b=this.playbackFrameRange_.clampWithPlayableFrame(b);b=this.fixFrameProhibited(b);return b};a.seekFrame=function(c){var b=this.getStatus()==CriLaPlayStatus.PAUSE;var d=this.seekStyle==CriLaSeekStyle.BACK&&this.hasPlayedFrame=b?b-c:d;this.elem_.currentTime=d;this.frame_=e;this.isSeeked_=true;this.isUnintendedRewinding_=false};a.setLastFrame_=function(b){this.elem_.currentTime=parseInt(b)/this.sceneFPS_;this.frame_=b;this.isSeeked_=true;this.isUnintendedRewinding_=false};a.getFrame=function(){return this.elem_.currentTime*this.sceneFPS_};a.getDuration=function(){var b=Number(this.elem_.duration);if(isNaN(b)){b=0}var c=Math.round(b*this.sceneFPS_);return Math.max(c,0)};a.getLastFrame=function(){this.updateFrameRangeByElem_();return this.frameRange_.last};a.getLastShowFrame_=function(){this.updateFrameRangeByElem_();return this.showFrameRange_.last};a.containsFrame=function(b){this.updateFrameRangeByElem_();return this.frameRange_.isPlayableFrame(b)};a.play=function(g){var c=this;if(this.isPlaying()||this.requestPlayOnCanPlay_){return false}function b(){if(typeof g==="function"){g()}}function f(){var i=new CriLaPolyfill.Event.CustomEvent(CriLaEvent.PLAY_REJECTED);c.dispatchEvent(i);b()}this.updateFrameRangeByElem_();if(this.elem_.readyState>0&&this.isExceededLastShowFrame_(this.getFrame())){return false}if(this.isNeedWaitingNextCanplay()){this.requestPlayOnCanPlay_=true;return false}var e=this.elem_.play();if(e!=null){e.then(function(){},function(i){var j=String(i);if(CriLaBrowserSetting.isSaveData()==true||j.match(/interact/)!=null){f()}else{if(j.match(/NotAllowedError/)!=null){f()}}})}if(!this.isPlaying()){var d=CriUAChecker.getOS();var h=CriUAChecker.getOSVersion();if(d===CriUAOS.iOS&&h<10){b();return false}this.requestPlayOnCanPlay_=true;return false}else{this.canPlay_=true;return true}};a.pause=function(){this.requestPlayOnCanPlay_=false;if(!this.isPlaying()){return}this.elem_.pause()};a.stop=function(){this.requestPlayOnCanPlay_=false;this.elem_.pause()};a.setVisibility=function(b){CriLaHtmlCss.setVisibility(this.elem_,b)};a.canPlayEvent_=function(b){this.canplayFinished_=true;if(this.requestPlayOnCanPlay_){this.requestPlayOnCanPlay_=false;this.play()}};a.isPlaying=function(){return !this.elem_.paused};a.canPlay=function(){return this.canPlay_};a.addEventListener=function(b,d,c){this.CriLaP11m.addEventListener(b,d,c)};a.dispatchEvent=function(b){this.CriLaP11m.dispatchEvent(b)};a.setPlaybackRate=function(b){try{var c=this.elem_;c.playbackRate=b;c.defaultPlaybackRate=b}catch(d){console.warn("LiveAct Warning:PlayBackRate"+b+"はブラウザの制限で設定することができません。")}};a.getPlaybackRate=function(){return parseFloat(this.elem_.playbackRate)};a.seekLastFrame_=function(){function b(){var d=navigator.userAgent;if(!d.match(/MSIE/)&&!d.match(/Trident/)){return false}var c=d.match(/(MSIE\s|rv:)([\d\.]+)/)[2];if(c!=11){return false}var e=/(Windows 7|Windows NT 6.1)/;if(!e.test(d)){return false}return true}if(!b()){this.setLastFrame_(this.getLastShowFrame_())}};a.loadByInteraction_=function(){if(this.elem_.networkState===0){this.load()}};a.load=function(){this.elem_.load()};a.reload=function(){this.resetUnloadingElem_();var b=this.elem_.src;this.elem_.removeAttribute("src");this.elem_.src=b};a.registerEvents_=function(){var e=this;var d=this.elem_;var g=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"];d.addEventListener("timeupdate",function(h){if(e.waitStartPos_!==e.getFrame()){e.isWaiting_=false}},false);d.addEventListener("canplay",function(){e.isWaiting_=false},false);g.forEach(function(h){d.addEventListener(h,function(){var i=new CriLaPolyfill.Event.CustomEvent(h);e.dispatchEvent(i)},false)});d.addEventListener("canplay",this.canPlayEvent_.bind(this));d.addEventListener("click",this.loadByInteraction_.bind(this));d.addEventListener("waiting",function(){e.isWaiting_=true;e.waitStartPos_=e.getFrame()},false);d.addEventListener("timeupdate",function c(h){e.activate();e.playableUrlSet_[d.src]=true;d.removeEventListener("timeupdate",c,false)},false);var b=CriUAChecker.getOS()==CriUAOS.iOS&&CriUAChecker.getBrowser()==CriUABrowser.Safari?"loadeddata":"loadedmetadata";d.addEventListener(b,function(){if(e.frameQueued_!=null){e.setFrame(e.frameQueued_);e.frameQueued_=null}});d.addEventListener("error",function(){var k=false;var h=false;var i=d.error;if(i&&i.code===4){if(e.playableUrlSet_[d.src]){k=true}}else{if(i&&i.code===3){h=true}}if(k){var j=new CriLaPolyfill.Event.CustomEvent(CriLaMediaCustomEvent.CRASH);e.dispatchEvent(j)}else{if(h){var j=new CriLaPolyfill.Event.CustomEvent(CriLaMediaCustomEvent.DECODE_ERROR);e.dispatchEvent(j)}}});d.addEventListener("seeking",function(){e.CriLaP11l=true},false);d.addEventListener("seeked",function(){e.CriLaP11l=false;if(e.isNeedWaitingVideoLoad_()){e.waitFirstTimeupdate_()}},false);if(this.isNeedWaitingVideoLoad_()){d.addEventListener("play",function f(){e.waitFirstTimeupdate_();d.removeEventListener("play",f,false)},false)}};a.isMuted=function(){return this.elem_.muted||this.elem_.volume===0};a.isWaiting=function(){return this.isWaiting_};a.isSeeking=function(){return this.CriLaP11l};a.isWaitingFirstTimeupdate=function(){return this.isWaitingFirstTimeupdate_};a.setUnintendedRewinding=function(b){this.isUnintendedRewinding_=b};a.isUnintendedRewinding=function(){return this.isUnintendedRewinding_};a.setSeeked=function(b){this.isSeeked_=b};a.activate=function(){if(this.isActivated()){return}if(this.elem_.currentTime=15&&b<17)||(e===CriUAOS.macOS&&d===CriUABrowser.Safari);return c};a.isNeedWaitingNextCanplay=function(){var c=this.isNeedWaitingVideoLoad_();var e=CriUAChecker.getBrowser();var f=CriUAChecker.getOS();var d=this.elem_.getAttribute("preload");var b=false;switch(d){case"none":b=true;break;case"metadata":b=(e==CriUABrowser.Safari||f==CriUAOS.iOS);break;default:b=false;break}return c&&!this.canplayFinished_&&!b};a.resetUnloadingElem_=function(){this.canPlay_=false;this.requestPlayOnCanPlay_=false;this.CriLaP11l=false;this.isWaitingFirstTimeupdate_=false;this.canplayFinished_=false;this.isUnintendedRewinding_=false;this.isSeeked_=false};a.isUnintendedRewindingEnvironment=function(){if(!this.elem_||this.elem_.paused||this.CriLaP11l||this.isWaiting_||this.isUnintendedRewinding_||this.isSeeked_){return false}return true}})(CriLaC00O.prototype);function CriLaC00P(){CriLaC00K.call(this);this.streamType_=CriLaStreamType.SEQ;this.media_=null;this.videoFrameRange_=null;this.requestValidateRefMediaInSeeked_=false;this.mediaLastDrawnFrame_=0;this.mediaCurrentFrame_=0;this.isPrioritizingMedia_=false;this.isMediaPlayRejected_=false;this.mediaPlayRejectedCount_=0;this.mediaPlayRetryCount_=0}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a);b.TARGET_RESOURCE_TYPE=[CriLaResourceType.VIDEO,CriLaResourceType.SEQUENCE_VIDEO];b.setup=function(c){a.setup.call(this,c);this.media_=new CriLaC00O(c.getCurrentMediaPlayer().getTimeManagerElement(),this.sceneFPS_);this.registerEvent_()};b.registerEvent_=function(){var e=this.media_;e.addEventListener("play",this.videoPlayEvent_.bind(this),false);e.addEventListener("timeupdate",this.videoTimeUpdateEvent_.bind(this),false);e.addEventListener("seeking",this.videoSeekingEvent_.bind(this),false);e.addEventListener("seeked",this.videoSeekedEvent_.bind(this),false);e.addEventListener("loadedmetadata",this.mediaLoadedMetaDataEvent_.bind(this),false);var c=0;e.addEventListener(CriLaMediaCustomEvent.CRASH,function(){if(c<10){c++;window.setTimeout(function(){e.load()},Math.random()*1000)}});var d=0;e.addEventListener(CriLaMediaCustomEvent.DECODE_ERROR,function(){if(d<10){d++;this.videoDecodeErrorEvent_()}}.bind(this),false);e.addEventListener(CriLaMediaCustomEvent.PLAY_REJECTED,this.mediaPlayRejectedEvent_.bind(this),false);this.CriLaP11m.addEventListener(CriLaEvent.FRAME_UPDATED,this.validateRefMediaTime.bind(this))};b.setSceneParam=function(k){a.setSceneParam.call(this,k);var c=k.getNumLayers();var g=null;for(var f=0;f0.3;return c};b.isMediaWaiting_=function(){var c=this.media_.isWaiting();return c};b.isMediaSeeking_=function(){var c=this.media_.isSeeking();return c};b.isMediaWaitingFirstTimeupdate_=function(){return this.media_.isWaitingFirstTimeupdate()};b.enableUpdateFrameMedia_=function(){var d=this.isMediaWaiting_();var c=this.isMediaSeeking_();var e=this.isMediaWaitingFirstTimeupdate_();return !(d||c||e)};b.setFrame=function(i,f){var e=true;if(this.refMediaTime_()){var d=this.hasTimeLag_(i);var c=this.enableUpdateFrameMedia_();if(f&&(d||!c)){e=false}if(this.shouldForceSeekForChromeVideo()==true){this.forceSeekForChromeVideo()}}if(e){a.setFrame.call(this,i,f);var g=this.media_;if(!f&&g){var h=this.getMediaFrame_();this.media_.setFrame(h)}}if(this.refMediaTime_()){this.syncMedia_()}};b.getSceneFrameFromMedia_=function(){return this.videoFrameRange_.start+this.media_.getFrame()};b.getMediaFrame_=function(){return this.getFrame()-this.videoFrameRange_.start};b.resetMediaDuration_=function(){var c=this.media_.getDuration();if(isNaN(c)){return}var d=this.videoFrameRange_?this.videoFrameRange_.start:0;this.calculatedSceneDuration_=Math.max(this.calculatedSceneDuration_,d+c);this.sceneFrameRange_.duration=Math.max(this.sceneFrameRange_.duration,this.calculatedSceneDuration_);this.playbackFrameRange_.duration=this.sceneFrameRange_.duration;this.videoDuration_=new CriLaFrameRange(d,this.sceneFrameRange_.duration);this.CriLaP11k.updateSceneLength(this.sceneName_,c);this.CriLaP11m.dispatch(CriLaEvent.SEEKBAR_RESET_NEEDED)};b.play=function(){var c=a.play.call(this);if(this.isMediaPlayRejected_==true){this.mediaPlayRetryEvent_()}this.media_.play(this.pause.bind(this));if(this.refMediaTime_()){this.syncMedia_()}else{this.media_.pause()}return c};b.pause=function(){this.media_.pause();return a.pause.call(this)};b.stop=function(){this.media_.stop();return a.stop.call(this)};b.videoPlayEvent_=function(c){this.isMediaPlayRejected_=false;this.mediaPlayRejectedCount_=0;this.mediaPlayRetryCount_=0};b.videoTimeUpdateEvent_=function(c){if(!this.refMediaTime_()){return}if(!this.media_){return}if(this.media_.getReadyState()===0){return}this.checkAndResetMediaDuration_();this.syncToMedia_()};b.videoSeekingEvent_=function(c){this.CriLaP11l=true;this.seekingCommon()};b.videoSeekedEvent_=function(c){var d=this.media_.getFrame();this.CriLaP11k.createLog(this.sceneName_,d);this.requestValidateRefMediaInSeeked_=false;this.seekedCommon();this.CriLaP11l=false};b.mediaLoadedMetaDataEvent_=function(c){this.checkAndResetMediaDuration_()};b.checkAndResetMediaDuration_=function(){if(this.sceneFrameRange_.durationthis.mediaCurrentFrame_}return false};b.isFinishUnintendedRewinding=function(){if(!this.media_.isUnintendedRewinding()){return false}return this.getFrame()<=this.mediaCurrentFrame_};b.isContainTargetResourceType_=function(c){var d=false;this.TARGET_RESOURCE_TYPE.forEach(function(e){if(e===c){d=true}});return d}})(CriLaC00P.prototype,CriLaC00K.prototype);function CriLaC00Q(){CriLaC00P.call(this)}(function(b,a){CriLaPolyfill.Object.setPrototypeOf(b,a);b.forceSeekForChromeVideo=function(){var d=1;var c=this.media_.getFrame();if(c=0){h.end=g}h.name=String(i.name||"");h.transform=d.parseTransform_(i.transform,h.transform);h.resolution=d.parseResolution_(i,h.resolution);h.actionObj=d.createAction_(i.click_action);return h});return b};a.parseTime_=function(c,b){var d=b;var e=CriUnitValue.splitUnitFloat(c,"s");if(e[0]==null){return d}d=e[0];if(e[1]=="s"){d*=this.sceneFPS_}return d};a.parseTransform_=function(d,b){var c=b;if(d!=null){c.position=this.parseTransformXY_(d.position,c.position);c.pivot=this.parseTransformXY_(d.pivot,c.pivot);c.scale=this.parseTransformXY_(d.scale,c.scale);c.rotate=this.parseRotate_(d.rotate,c.rotate)}return c};a.parseRotate_=function(f,b){var c=this.validateValue_(f.rotate,b);var e=CriUnitValue.splitUnitFloat(c,"deg");var d=e[0];return d};a.parseArray2D_=function(f,e,b){if(e==null){return b}var d=this;var c=f.map(function(g,h){return d.validateValue_(e[g],b[h])});c=c.map(function(g,j){var h=CriUnitValue.splitUnitFloat(g,"px");var l=h[0];var k=h[1];if(k==="%"){l=Math.round(l*d.sceneResolution[j]/100)}return l});return c};a.parseTransformXY_=function(d,b){var c=this.parseArray2D_(["x","y"],d,[b.x,b.y]);return CriGrxVector2.createFromXY(c[0],c[1])};a.parseResolution_=function(c,b){return this.parseArray2D_(["width","height"],c,b)};a.validateValue_=function(c,b){if(c==null){return b}return c};a.createAction_=function(f){var c=new CriLaAction();if(f==null){return c}if(f.url!=null){var e=CriLaURL.sanitize(f.url,true);if(!e){return c}var d=this.validateValue_(f.target,"");c=new CriLaActionOpenURL(e,d)}else{if(f["function"]!=null){c=new CriLaActionExecFunction(f["function"])}else{}}var b=this.validateValue_(f.player,"pause");if(b=="pause"){c.preAction=function(g){g.pause()}}return c};a.drawClickableArea_=function(c,d){var b=this.sceneResolution;d.draw(c,b)};a.addEventListener=function(b,d,c){this.CriLaP11m.addEventListener(b,d,c)};a.dispatchEvent=function(b){this.CriLaP11m.dispatchEvent(b)}})(CriLaClickableMap.prototype);function CriLaControlTemplateLoader(){}(function(c){c.parser=new DOMParser();c.loadTemplateFromString=function(d){return b(this.parser,d)};c.loadTemplateFromUrl=function(e){var d=a(e);return this.loadTemplateFromString(d)};function a(e){var f=CriLaXHR.requestLoadSync(e);if(f.status!==200){var d="コントロールテンプレートの読み込みに失敗しました。XHR status: "+f.status;throw new CriLaControlTemplateLoaderError(d,{xhr:f})}return f.response}function b(h,d){var g=h.parseFromString(d,"text/html");if(g.getElementsByTagName("parsererror").length>0){var e="コントロールテンプレートのパースに失敗しました。";throw new CriLaControlTemplateLoaderError(e,{doc:g})}var f=document.createElement("div");CriLaPolyfill.Array.from(g.body.childNodes).forEach(function(i){f.appendChild(i)});return f}})(CriLaControlTemplateLoader);function CriLaControlTemplateLoaderError(b,a){Error.call(this,b);this.message=b;this.detail=a||{}}CriLaPolyfill.Object.setPrototypeOf(CriLaControlTemplateLoaderError.prototype,Error.prototype);var CriLaDecodeType={Default:0,Sequential:1,Single:2};function LaVideoDecoder(){this.canvas_=null;this.canvas_context_=null;this.video_=null;this.resolutionScale_=1;this.quality=0.85;this.isSetuped_=false;this.decodeQueueFrame_=null}(function(a){a.initialize=function(d,b){var c=document.createElement("canvas");c.width=Math.floor(d*this.resolutionScale_);c.height=Math.floor(b*this.resolutionScale_);this.canvas_=c;this.canvas_context_=c.getContext("2d")};a.setQuality=function(b){this.quality=b};a.updateCanvas=function(d,b){var f=(this.canvas_.width/this.canvas_.height)>1;var e=(d/b)>1;if(f!==e){var c=this.canvas_.width;this.canvas_.width=this.canvas_.height;this.canvas_.height=c}};a.decodeAllFrames=function(c,b,e){var d=[];if(c.readyState>=1){this.updateCanvas(c.videoWidth,c.videoHeight);this.decodeStart(c,b,d,e)}else{var f=this;c.addEventListener("loadeddata",function(){f.updateCanvas(c.videoWidth,c.videoHeight);f.decodeStart(c,b,d,e)},{once:true})}return d};a.decodeStart=function(g,e,c,h){var f=Math.floor(g.videoWidth*this.resolutionScale_);var b=Math.floor(g.videoHeight*this.resolutionScale_);var d=this.setupDecodeDatabaseList_(g.duration,e,c,h);this.decodeFrame(g,f,b,c,d,0)};a.decodeFrame=function(g,f,c,d,h,e){if(h.length<=e){return}var i=h[e];var b=d[i];this.setVideoSeek_(g,b,f,c,d,h,e,true)};a.decodeFrameEvent_=function(b,c,l,j,k,i,f,g){var m=this.canvas_context_;var h=this;var e=this.canvas_;var d=CriLaUtility.FitASizetoBSize(c,l,e.width,e.height);m.drawImage(b,0,0,d[0],d[1]);CriLaPolyfill.Canvas.toBlob(e,function(n){var o=h.convertToLaImage_(n,d[0],d[1]);j.image=o;if(g){h.decodeFrame(b,c,l,k,i,f+1)}},"image/jpeg",h.quality)};a.createIndexTable=function(g){var d=Array(g);var h=0;var c=d.length-1;this.setLevel(d,h,c,1);d[h]={index:h,level:0};d[c]={index:c,level:0};var f=d.sort(function(j,i){return j.level-i.level});var b=[];for(var e=0;e=1){this.setupDecodeDatabase_(c,b,e,d)}else{var f=this;c.addEventListener("loadeddata",function(){f.setupDecodeDatabase_(c,b,e,d)},{once:true})}return e};a.convertToLaImage_=function(c,e,b){var d=window.URL.createObjectURL(c);var f=new CriLaC005();f.requestLoad(d);f.setSrcRect_(0,0,e,b);return f};a.setVideoSeek_=function(b,f,c,j,i,h,d,e){var g=this;b.addEventListener("seeked",function(){g.decodeFrameEvent_(b,c,j,f,i,h,d,e)},{once:true});b.currentTime=f.time};a.simpleDecodeFrame=function(f,g,d){var e=Math.floor(f.videoWidth*this.resolutionScale_);var c=Math.floor(f.videoHeight*this.resolutionScale_);if(this.isSetuped_){var b=d[g];this.setVideoSeek_(f,b,e,c,[],0,false)}else{this.decodeQueueFrame_=g}};a.setupDecodeDatabaseList_=function(h,d,b,e){var c=[];for(var g=0;g<=h;g+=d){var f={time:g,image:null};b.push(f)}c=e==CriLaDecodeType.Default?this.createIndexTable(b.length):this.createSequentialIndexTable_(b.length);this.isSetuped_=true;return c}})(LaVideoDecoder.prototype);var CriLiveActSharedSettings={customerCode_:null,additionalRequestHeaders_:null};CriLiveActSharedSettings.setCustomerCode=function(a){this.customerCode_=a};CriLiveActSharedSettings.getCustomerCode=function(){return this.customerCode_};CriLiveActSharedSettings.setAdditionalRequestHeaders_=function(a){this.additionalRequestHeaders_=a};CriLiveActSharedSettings.getAdditionalRequestHeaders_=function(){var b=this.additionalRequestHeaders_;if(!b){return null}var a={};Object.keys(b).forEach(function(c){var d=b[c];a[c]=d});return a};function CriLiveActViewMargin(c){var h=function(i){var k=CriTypeUtil.typeOf(i);if(k=="Number"){return i}else{if(k=="String"){var j=CriUnitValue.splitUnit(i,"%");if(j[1]=="%"){return j[0]}console.warn("マージン設定の単位は%のみ有効です。 value: "+i)}}return null};var g={};var e={head:null,tail:null};var b=c;var d=function(i){var j=e[i];return j==null?b:j};var a=function(j,i){e[j]=h(i)};var f=function(i){Object.defineProperty(g,i,{get:d.bind(null,i),set:a.bind(null,i)})};f("head");f("tail");return g}function CriLiveActContentMargin(a){this.distance=a}CriLiveActSharedSettings.ScrollInViewMargin=new CriLiveActViewMargin(50);CriLiveActSharedSettings.ContentInMargin=new CriLiveActContentMargin(100);CriLiveActSharedSettings.autoPause=(function(){var a=CriUAChecker.getOS();return a===CriUAOS.iOS||a===CriUAOS.Android})();CriLiveActSharedSettings.advancedAnalyticsDebug=false;function CriLaRenderTarget(e,d,a,c){d=parseInt(d);a=parseInt(a);c=this.resolveTextureParameter(e,c);this.width=d;this.height=a;this.magFilter=c.magFilter;this.minFilter=c.minFilter;this.warpS=c.warpS;this.warpT=c.warpT;var b=this.setup(e,d,a,c);this.colorTexture=b.texture;this.framebuffer=b.framebuffer}(function(a){a.resolveTextureParameter=function(c,b){b=b||{};return{magFilter:b.magFilter||c.NEAREST,minFilter:b.minFilter||c.NEAREST,warpS:b.warpS||c.CLAMP_TO_EDGE,warpT:b.warpT||c.CLAMP_TO_EDGE}};a.setup=function(g,d,b,c){var e=g.createFramebuffer();g.bindFramebuffer(g.FRAMEBUFFER,e);var f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,d,b,0,g.RGBA,g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,c.magFilter);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,c.minFilter);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,c.warpS);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,c.warpT);g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,f,0);g.bindFramebuffer(g.FRAMEBUFFER,null);return{texture:f,framebuffer:e}};a.set=function(b){b.bindFramebuffer(b.FRAMEBUFFER,this.framebuffer);b.viewport(0,0,this.width,this.height)};a.unset=function(b){b.bindFramebuffer(b.FRAMEBUFFER,null);b.viewport(0,0,b.drawingBufferWidth,b.drawingBufferHeight)};a.getTexture=function(){return this.colorTexture};a.getFrameBuffer=function(){return this.framebuffer}})(CriLaRenderTarget.prototype);function CriLaPassword(){this.dom_textdescription=null;this.dom_scroll_description=null;this.dom_send_button=null;this.dom_top=null;this.dom_inner=null;this.dom_wrap=null;this.dom_input=null;this.dom_input_area=null;this.enable_send_button=false;this.has_send=false;this.is_set_description_fade=false;this.pauseFunction=null}(function(a){a.setup=function(e,c){var g=this.createDom();this.setSendButtonState(false);var f=this;this.dom_input.addEventListener("input",function(){f.setSendButtonState(f.isDirty(f.dom_input.value)&&(!f.has_send))});this.dom_send_button.addEventListener("click",function(){if(f.enable_send_button){var h=e.getAssetURLForAuthor();if(h!=""){f.Author(h,f.getInputValue(),e)}else{e.dispatchEvent(CriLaEvent.AUTHORIZED)}}});var d=function(){e.setPassword(f.getInputValue());e.setCurrentScene(e.getCurrentScene());c.forEach(function(h){h.requestLoad(e.baseResourceDir_,e.sharedResourceDir_)});e.reloadMedia();f.hide();e.dispatchEvent(CriLaEvent.REQUEST_LOAD_RESOURCE);e.removeEventListener(CriLaEvent.AUTHORIZED,d)};e.addEventListener(CriLaEvent.AUTHORIZED,d);e.addEventListener(CriLaEvent.AUTHORIZATION_ERROR,function(){f.textDescriptionShow()});this.textDescriptionHide();var b=e.controlWrapperElem_;b.insertBefore(g,b.firstChild);this.updateWrapPosition()};a.getInputValue=function(){return this.dom_input.value};a.isDirty=function(c){var b=c.replace(/\s| /g,"");return b.length>0};a.showError=function(){this.dom_description.style.setProperty("display","block")};a.show=function(){this.dom_top.style.setProperty("display","block")};a.hide=function(){this.dom_top.style.setProperty("display","none")};a.setSendButtonState=function(b){this.dom_send_button.className=b?window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uLWJ1dHRvbiBsYS11c2VyLWF1dGhvcml6YXRpb24tc2VuZA=="):window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uLWJ1dHRvbiBsYS11c2VyLWF1dGhvcml6YXRpb24tc2VuZGVk");this.enable_send_button=b};a.createSendButtonDom=function(){var c=this.createDiv("",window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uLWJ1dHRvbiBsYS11c2VyLWF1dGhvcml6YXRpb24tc2VuZGVk"));var b=document.createElement("span");b.innerHTML="送信";c.appendChild(b);return c};a.createTextInputDom=function(){var b=document.createElement("input");b.className=window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uLWl0ZW0tLXRleHQ=");b.setAttribute("placeholder","パスワードを入力してください");b.setAttribute("type","password");b.setAttribute("maxlength","64");return b};a.createTextDescriptionDom=function(b){var c=this.createDiv("不正なパスワードです",window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uLXRpdGxl"));return c};a.textDescriptionShow=function(b){this.dom_textdescription.style.setProperty("display","block");this.dom_textdescription.style.setProperty("color","#fd8939")};a.textDescriptionHide=function(b){this.dom_textdescription.style.setProperty("display","none")};a.createScrollDescriptionDom=function(){var b=this.createDiv("↓スクロールしてください↓",window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uLXNjcm9sbA=="));b.style.setProperty("display","none");return b};a.createDiv=function(b,c){var d=document.createElement("div");d.className=c;d.innerHTML=b;return d};a.createDom=function(){var h=this.createDiv("",window.atob("bGEtdXNlci1hdXRob3JpemF0aW9u"));var b=this.createDiv("",window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uSW5uZXI="));var d=this.createDiv("",window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uV3JhcC0tbWlkZGxl"));var i=this.createTextDescriptionDom();var g=this.createScrollDescriptionDom();var c=this.createDiv("",window.atob("bGEtdXNlci1hdXRob3JpemF0aW9uLWl0ZW0="));var f=this.createTextInputDom();c.appendChild(f);var e=this.createSendButtonDom();d.appendChild(i);d.appendChild(c);d.appendChild(e);b.appendChild(d);h.appendChild(b);h.appendChild(g);this.dom_textdescription=i;this.dom_scroll_description=g;this.dom_input=f;this.dom_input_area=c;this.dom_send_button=e;this.dom_wrap=d;this.dom_inner=b;this.dom_top=h;return h};a.parseText=function(b){return CriLaHtmlCss.escapeHtml(b||"")};a.setScrollDescriptionFadeOut=function(){var e=this.dom_scroll_description;var b=this.dom_inner;var d=1;var c=20;b.addEventListener("scroll",function f(){CriLaFwUtility.domFadeOut(d,e,c);b.removeEventListener("scroll",f)})};a.updateScrollDescriptionDisplay=function(){if(this.dom_inner.clientHeight=2){if(f.status==403){c.dispatchEvent(CriLaEvent.AUTHORIZATION_ERROR)}else{if(200<=f.status&&f.status<300){c.dispatchEvent(CriLaEvent.AUTHORIZED)}else{if(400<=f.status){console.warn("LiveAct Warn:認証時にエラーが発生しました。",g)}else{}}}if(f.status!=0){f.abort()}}};f.send(null)}})(CriLaPassword.prototype);var CriLaSequenceType={MSE:0,HLS:1};Object.freeze(CriLaSequenceType);function CriLaC00w(){this.type=null;this.url="";this.playlistRelUrl="";this.videoInfo=null;this.audioInfo=null;this.progressiveList=[]}(function(a){a.parsePlaylistData=function(d,b){var c=JSON.parse(b);this.playlistRelUrl=d;this.createPlaylist(c);this.progressiveList=this.parseProgressiveVideoList(d,c);return this.url};a.parseProgressiveVideoList=function(d,e){var b=[];var c=this.getDirUrl(d);if(!e.Progressive){return b}e.Progressive.forEach(function(f){b.push(c+f.url)});return b};a.adaptationWithContentsType=function(e,b){for(var d=0;d0){return}d=isNaN(d)?0:d;this.requestLoadWithStartTime(d)};a.requestLoadWithStartTime=function(c){this.resigterRequestLoadHandler(this.requestLoadWithStartTime.bind(this),c);if(this.requestLoadHandler_){return}if(this.canStartLoad()){this.createASets();this.mse.duration=this.resource.playlist.duration;this.startLoad(c)}};a.canStartLoad=function(){if(this.isPrepared===false&&this.mse&&this.mse.readyState==="open"&&this.resource.isPlaylistLoaded===true&&!this.isUnload){this.isPrepared=true;return true}return false};a.createASets=function(){if(this.hasASetList){return}var c=null;c=this.resource.playlist.videoInfo;var d=[];c.forEach(function(g){var f=new CriLaC00I();f.initialize(g.id,g.mediaType,g.initSegment,g.segments);d.push(f)});var e=new CriLaC00G();e.setASets(d);this.aSetVideoList=e;c=this.resource.playlist.audioInfo;d=[];c.forEach(function(g){var f=new CriLaC00I();f.initialize(g.id,g.mediaType,g.initSegment,g.segments);d.push(f)});e=new CriLaC00G();e.setASets(d);this.aSetAudioList=e;this.setPasswordToAsetList(this.aSetAudioList,this.password);this.setPasswordToAsetList(this.aSetVideoList,this.password);this.hasASetList=true};a.setEventListners=function(){this.onProgressHandler=this.onProgress.bind(this);this.onSeekingHandler=this.onSeeking.bind(this);this.video.addEventListener("progress",this.onProgressHandler);this.video.addEventListener("timeupdate",this.onProgressHandler);this.video.addEventListener("seeking",this.onSeekingHandler)};a.startLoad=function(c){this.setEventListners();this.startLoadMedia(this.mse,this.aSetAudioList.aSets,this.aSetVideoList.aSets,this.currentVideoId,c)};a.startLoadMedia=function(c,f,e,d,h){var g=this.video.getAttribute("data-preload-duration");f.forEach(function(j){var k=null;k=new CriLaC00E(c,j,g);k.startLoad(h);this.mediaLoaders.push(k)},this);d=Math.min(d,e.length-1);var i=null;i=new CriLaC00E(c,e[d],g);i.startLoad(h);this.mediaLoaders.push(i)};a.onProgress=function(c){this.checkEos();this.mediaLoaders.forEach(function(d){d.appendMediaSegment(this.video.currentTime);d.refreshBuffer(this.video.currentTime)},this)};a.onSeeking=function(c){this.mediaLoaders.forEach(function(d){if(d.currentDownload){d.currentDownload.abort();d.currentDownload=null}d.aSet.changeSegmentByCurrentTime(this.video.currentTime);d.appendMediaSegment(this.video.currentTime);d.refreshBuffer(this.video.currentTime)},this)};a.isStreamUpdating=function(c){for(var e=0;e0){return}this.requestLoadWithStartTime(d)};a.setPassword=function(c){CriLaStreamManagerBase.prototype.setPassword.call(this,c);this.setPasswordToAsetList(this.aSetAudioList,c);this.setPasswordToAsetList(this.aSetVideoList,c)};a.setPasswordToAsetList=function(d,c){if(d&&d.aSets){d.aSets.forEach(function(e){e.initUrl=CriLaURL.addPwToUrl(e.initUrl,c);for(var f=0;f=0&&Math.ceil((g-c)*100)>=0){return true}}return false}})(CriLaC00E.prototype);function CriLaC00G(){this.aSets=[]}(function(a){a.setASets=function(b){this.aSets=b}})(CriLaC00G.prototype);function CriLaC00I(){this.id=null;this.mimeType=null;this.initUrl=null;this.segmentUrls=[];this.currentSegmentIndex=0}(function(a){a.initialize=function(e,d,c,b){this.id=e;this.mimeType=d;this.initUrl=c;this.segmentUrls=b;this.currentSegmentIndex=0};a.currentSegment=function(){return this.segmentUrls[this.currentSegmentIndex]};a.advanceSegment=function(){this.currentSegmentIndex++};a.hasCurrentSegment=function(){return this.currentSegmentIndex