Free javascript Hosting


magicslideshowfull.js

Uploaded on Apr 12 2022 08:15 by rikintosh

/*


Magic Slideshow v3.2.12 DEMO
Copyright 2021 Magic Toolbox
Buy a license: www.magictoolbox.com/magicslideshow/
License agreement: https://www.magictoolbox.com/license/


*/de4js1.12.0
JavaScript Deobfuscator and Unpacker
View on GitHub
StringLocal FileRemote File

eval(function(m,a,g,i,c,k){c=function(e){return(e<a?'':c(parseInt(e/a)))+((e=e%a)>35?String.fromCharCode(e+29):e.toString(36))};if(!''.replace(/^/,String)){while(g--){k[c(g)]=i[g]||c(g)}i=[function(e){return k[e]}];c=function(){return'\\w+'};g=1};while(g--){if(i[g]){m=m.replace(new RegExp('\\b'+c(g)+'\\b','g'),i[g])}}return m}('1u.9y=(17(){1b x,y;x=y=(17(){1b Q={5T:"fs.3.7",iZ:0,bi:{},$6q:17(U){1a(U.$5Y||(U.$5Y=++K.iZ))},e0:17(U){1a(K.bi[U]||(K.bi[U]={}))},$F:17(){},$1e:17(){1a 1e},$1h:17(){1a 1h},hE:"8i-"+1M.7l(1M.4N()*1o eb().j8()),4s:17(U){1a(U!=1g)},eH:17(V,U){1a(V!=1g)?V:U},dM:17(U){1a!!(U)},2a:17(W){1b U=mb;17 V(X){1a c8 X==="40"&&X>-1&&X%1===0&&X<=U}if(!K.4s(W)){1a 1e}if(W.$5L){1a W.$5L}if(!!W.6N){if(W.6N===1){1a"5P"}if(W.6N===3){1a"hp"}}if(W===1u){1a"1u"}if(W===1t){1a"1t"}if(W 4E 1u.gc){1a"17"}if(W 4E 1u.5r){1a"2u"}if(W 4E 1u.3B){1a"5e"}if(W 4E 1u.eb){1a"hx"}if(W 4E 1u.m3){1a"nB"}if(V(W.1J)&&W.3j){1a"nZ"}if(V(W.1J)&&W.dN){1a"2E"}if((W 4E 1u.g2||W 4E 1u.gc)&&W.6r===K.4V){1a"2K"}if(K.1i.6X){if(K.4s(W.kQ)){1a"1z"}}1f{if(W===1u.1z||W.6r===1u.1A||W.6r===1u.ou||W.6r===1u.nt||W.6r===1u.mO||W.6r===1u.mB){1a"1z"}}1a c8(W)},1H:17(Z,Y){if(!(Z 4E 1u.3B)){Z=[Z]}if(!Y){1a Z[0]}1L(1b X=0,V=Z.1J;X<V;X++){if(!K.4s(Z)){67}1L(1b W in Y){if(!g2.2e.57.2D(Y,W)){67}4f{Z[X][W]=Y[W]}4o(U){}}}1a Z[0]},c7:17(Y,X){if(!(Y 4E 1u.3B)){Y=[Y]}1L(1b W=0,U=Y.1J;W<U;W++){if(!K.4s(Y[W])){67}if(!Y[W].2e){67}1L(1b V in(X||{})){if(!Y[W].2e[V]){Y[W].2e[V]=X[V]}}}1a Y[0]},hw:17(W,V){if(!K.4s(W)){1a W}1L(1b U in(V||{})){if(!W[U]){W[U]=V[U]}}1a W},$4f:17(){1L(1b V=0,U=2E.1J;V<U;V++){4f{1a 2E[V]()}4o(W){}}1a 1g},$A:17(W){if(!K.4s(W)){1a K.$([])}if(W.h5){1a K.$(W.h5())}if(W.3j){1b V=W.1J||0,U=1o 3B(V);6K(V--){U[V]=W[V]}1a K.$(U)}1a K.$(3B.2e.aG.2D(W))},6H:17(){1a 1o eb().j8()},7Q:17(Y){1b W;6M(K.2a(Y)){1U"9Z":W={};1L(1b X in Y){W[X]=K.7Q(Y[X])}1W;1U"5e":W=[];1L(1b V=0,U=Y.1J;V<U;V++){W[V]=K.7Q(Y[V])}1W;1S:1a Y}1a K.$(W)},$:17(W){1b U=1h;if(!K.4s(W)){1a 1g}if(W.$fc){1a W}6M(K.2a(W)){1U"5e":W=K.hw(W,K.1H(K.3B,{$fc:K.$F}));W.1D=W.dG;W.2k=K.3B.2k;1a W;1W;1U"2u":1b V=1t.jH(W);if(K.4s(V)){1a K.$(V)}1a 1g;1W;1U"1u":1U"1t":K.$6q(W);W=K.1H(W,K.4Q);1W;1U"5P":K.$6q(W);W=K.1H(W,K.4r);1W;1U"1z":W=K.1H(W,K.1A);1W;1U"hp":1U"17":1U"hx":1S:U=1e;1W}if(U){1a K.1H(W,{$fc:K.$F})}1f{1a W}},$1o:17(U,W,V){1a K.$(K.7z.7L(U)).k3(W||{}).1T(V||{})},fP:17(X,Y,V){1b U,aa,W,ac=[],ab=-1;V||(V=K.hE);U=K.$(V)||K.$1o("2F",{id:V,1k:"3Z/8a"}).3E((1t.it||1t.5k),"1r");aa=U.kh||U.kd;if(K.2a(Y)!=="2u"){1L(1b W in Y){ac.3a(W+":"+Y[W])}Y=ac.8t(";")}if(aa.kD){ab=aa.kD(X+" {"+Y+"}",aa.ns.1J)}1f{4f{ab=aa.mx(X,Y,aa.mV.1J)}4o(Z){}}1a ab},nE:17(X,U){1b W,V;W=K.$(X);if(K.2a(W)!=="5P"){1a}V=W.kh||W.kd;if(V.k2){V.k2(U)}1f{if(V.jK){V.jK(U)}}},lW:17(){1a"lR-mh-lG-mk-me".2J(/[nL]/g,17(W){1b V=1M.4N()*16|0,U=W==="x"?V:(V&3|8);1a U.b1(16)}).9b()},nJ:(17(){1b U;1a 17(V){if(!U){U=1t.7L("a")}U.3p("kk",V);1a("!!"+U.kk).2J("!!","")}})(),jF:17(W){1b X=0,U=W.1J;1L(1b V=0;V<U;++V){X=31*X+W.kn(V);X%=nF}1a X}};1b K=Q;1b L=Q.$;if(!1u.j6){1u.j6=Q;1u.$8i=Q.$}K.3B={$5L:"5e",7y:17(X,Y){1b U=13.1J;1L(1b V=13.1J,W=(Y<0)?1M.4a(0,V+Y):Y||0;W<V;W++){if(13[W]===X){1a W}}1a-1},2k:17(U,V){1a 13.7y(U,V)!=-1},dG:17(U,X){1L(1b W=0,V=13.1J;W<V;W++){if(W in 13){U.2D(X,13[W],W,13)}}},4T:17(U,Z){1b Y=[];1L(1b X=0,V=13.1J;X<V;X++){if(X in 13){1b W=13[X];if(U.2D(Z,13[X],X,13)){Y.3a(W)}}}1a Y},jl:17(U,Y){1b X=[];1L(1b W=0,V=13.1J;W<V;W++){if(W in 13){X[W]=U.2D(Y,13[W],W,13)}}1a X}};K.c7(5r,{$5L:"2u",5W:17(){1a 13.2J(/^\\s+|\\s+$/g,"")},eq:17(U,V){1a(V||1e)?(13.b1()===U.b1()):(13.64().b1()===U.64().b1())},5C:17(){1a 13.2J(/-\\D/g,17(U){1a U.cr(1).9b()})},8j:17(){1a 13.2J(/[A-Z]/g,17(U){1a("-"+U.cr(0).64())})},lq:17(U){1a 3L(13,U||10)},li:17(){1a 3N(13)},hL:17(){1a!13.2J(/1h/i,"").5W()},9l:17(V,U){U=U||"";1a(U+13+U).7y(U+V+U)>-1}});Q.c7(gc,{$5L:"17",1j:17(){1b V=K.$A(2E),U=13,W=V.83();1a 17(){1a U.3r(W||1g,V.dO(K.$A(2E)))}},6Y:17(){1b V=K.$A(2E),U=13,W=V.83();1a 17(X){1a U.3r(W||1g,K.$([X||(K.1i.3O?1u.1z:1g)]).dO(V))}},3V:17(){1b V=K.$A(2E),U=13,W=V.83();1a 1u.79(17(){1a U.3r(U,V)},W||0)},eN:17(){1b V=K.$A(2E),U=13;1a 17(){1a U.3V.3r(U,V)}},69:17(){1b V=K.$A(2E),U=13,W=V.83();1a 1u.j2(17(){1a U.3r(U,V)},W||0)}});1b R={};1b J=92.lf.64();1b I=J.4Y(/(38|66|6X|ez)\\/(\\d+\\.?\\d*)/i);1b N=J.4Y(/(ee|fV)\\/(\\d+\\.?\\d*)/i)||J.4Y(/(l1|6j|l2|j0|bY|fV)\\/(\\d+\\.?\\d*)/i);1b P=J.4Y(/5T\\/(\\d+\\.?\\d*)/i);1b E=1t.6I.2F;17 F(V){1b U=V.cr(0).9b()+V.aG(1);1a V in E||("l4"+U)in E||("kZ"+U)in E||("ms"+U)in E||("O"+U)in E}K.1i={5x:{lF:!!(1t.lA),lj:!!(1u.lH),ml:!!(1t.mm),6u:!!(1t.mq||1t.mi||1t.9S||1t.kM||1t.m2||1t.lP||1t.lm||1t.le||1t.ly),gD:!!(1u.lx)&&!!(1u.lv)&&(1u.cV&&"lp"in 1o cV),2n:F("2n"),1F:F("1F"),7o:F("7o"),9t:F("9t"),6U:1e,kA:1e,fW:1e,fZ:1e,c9:(17(){1a 1t.lD.mt("mj://fM.nX.nW/nV/nS/nR#jA","1.1")}())},bS:(17(){1a"nM"in 1u||(1u.hZ&&1t 4E hZ)||(92.nI>0)||(92.nH>0)}()),4i:!!J.4Y(/(bn|bb\\d+|nG).+|nD|nA\\/|nz|ny|nx|nY|nK|oy|ox|ip(h1|od|ad)|ow|ov|or |oq|op|oo|4i.+j0|ol|bY m(ob|in)i|ok( os)?|iL|p(oi|re)\\/|o2|oh|og|oe(4|6)0|o8|o7|aR\\.(1i|o6)|o4|o3|nu (ce|iL)|mS|mP/),4U:(I&&I[1])?I[1].64():(1u.bY)?"ez":!!(1u.mN)?"6X":(1t.mJ!==4e||1u.mw!==1g)?"66":(1u.mH!==1g||!92.mG)?"38":"jf",5T:(I&&I[2])?3N(I[2]):0,85:(N&&N[1])?N[1].64():"",cS:(N&&N[2])?3N(N[2]):0,3M:"",f2:"",6W:"",3O:0,74:J.4Y(/ip(?:ad|od|h1)/)?"dR":(J.4Y(/(?:mC|bn)/)||92.74.4Y(/8M|cB|ne/i)||["nf"])[0].64(),jy:1t.db&&1t.db.64()==="hj",kX:0,6V:17(){1a(1t.db&&1t.db.64()==="hj")?1t.5k:1t.6I},6U:1u.6U||1u.n5||1u.n3||1u.n6||1u.n7||4e,ck:1u.ck||1u.kx||1u.kx||1u.nj||1u.nl||1u.nm||4e,2S:1e,aH:17(){if(K.1i.2S){1a}1b X;1b W;K.1i.2S=1h;K.5k=K.$(1t.5k);K.cB=K.$(1u);4f{1b V=K.$1o("2N").1T({1m:1N,1l:1N,3g:"jJ",2i:"2V",1r:-gR}).3E(1t.5k);K.1i.kX=V.jp-V.ko;V.3s()}4o(U){}4f{X=K.$1o("2N");W=X.2F;W.fq="dV:dF(7K://),dF(7K://),nn dF(7K://)";K.1i.5x.kA=(/(dF\\s*\\(.*?){3}/).3R(W.dV);W=1g;X=1g}4o(U){}if(!K.1i.kC){K.1i.kC=K.8D("1F").8j()}4f{X=K.$1o("2N");X.2F.fq=K.8D("4T").8j()+":cs(nq);";K.1i.5x.fW=!!X.2F.1J&&(!K.1i.3O||K.1i.3O>9);X=1g}4o(U){}if(!K.1i.5x.fW){K.$(1t.6I).1R("no-nr-4u")}4f{K.1i.5x.fZ=(17(){1b Y=K.$1o("fZ");1a!!(Y.kY&&Y.kY("2d"))}())}4o(U){}if(1u.mX===4e&&1u.mz!==4e){R.4c="mA"}K.4Q.2z.2D(K.$(1t),"bL")}};(17(){1b V=[],Y,X,Z;17 U(){1a!!(2E.dN.eg)}6M(K.1i.4U){1U"6X":if(!K.1i.5T){K.1i.5T=!!(1u.cV)?3:2}1W;1U"66":K.1i.5T=(N&&N[2])?3N(N[2]):0;1W}K.1i[K.1i.4U]=1h;if(N&&N[1]==="l1"){K.1i.85="6j"}if(!!1u.6j){K.1i.6j=1h}if(N&&N[1]==="fV"){K.1i.85="bY";K.1i.bY=1h}if(K.1i.85==="l2"&&(P&&P[1])){K.1i.cS=3N(P[1])}if(K.1i.74==="bn"&&K.1i.38&&(P&&P[1])){K.1i.jz=1h}Y=({66:["-b7-","kZ","b7"],38:["-38-","l4","38"],6X:["-ms-","ms","ms"],ez:["-o-","O","o"]})[K.1i.4U]||["","",""];K.1i.3M=Y[0];K.1i.f2=Y[1];K.1i.6W=Y[2];K.1i.3O=!K.1i.6X?4e:(1t.km)?1t.km:(17(){1b aa=0;if(K.1i.jy){1a 5}6M(K.1i.5T){1U 2:aa=6;1W;1U 3:aa=7;1W}1a aa}());if(!K.1i.4i&&K.1i.74==="8M"&&K.1i.bS){K.1i.4i=1h;K.1i.74="dR"}V.3a(K.1i.74+"-4u");if(K.1i.4i){V.3a("4i-4u")}if(K.1i.jz){V.3a("bn-1i-4u")}if(K.1i.3O){K.1i.85="ie";K.1i.cS=K.1i.3O;V.3a("ie"+K.1i.3O+"-4u");1L(X=11;X>K.1i.3O;X--){V.3a("lt-ie"+X+"-4u")}}if(K.1i.38&&K.1i.5T<mR){K.1i.5x.6u=1e}if(K.1i.6U){K.1i.6U.2D(1u,17(){K.1i.5x.6U=1h})}if(K.1i.5x.c9){V.3a("c9-4u")}1f{V.3a("no-c9-4u")}Z=(1t.6I.7O||"").4Y(/\\S+/g)||[];1t.6I.7O=K.$(Z).dO(V).8t(" ");4f{1t.6I.3p("3Y-4u-jB",K.1i.85);1t.6I.3p("3Y-4u-jB-jg",K.1i.cS);1t.6I.3p("3Y-4u-4U",K.1i.4U);1t.6I.3p("3Y-4u-4U-jg",K.1i.5T)}4o(W){}if(K.1i.3O&&K.1i.3O<9){1t.7L("k9");1t.7L("k7")}if(!1u.92.oj){K.$(["nO","nP","jM","nQ","nT"]).1D(17(aa){R["ft"+aa.64()]=1u.92.la?"mc"+aa:-1})}}());(17(){K.1i.6u={cF:K.1i.5x.6u,gi:17(){1a!!(1t.mp||1t[K.1i.6W+"ln"]||1t.6u||1t.lI||1t[K.1i.6W+"lz"])},gr:17(U,V){if(!V){V={}}if(13.cF){K.$(1t).1K(13.ep,13.ht=17(W){if(13.gi()){if(V.gq){V.gq()}}1f{K.$(1t).29(13.ep,13.ht);if(V.gb){V.gb()}}}.6Y(13));K.$(1t).1K(13.en,13.5m=17(W){if(V.b2){V.b2()}K.$(1t).29(13.en,13.5m)}.6Y(13));(U.lC||U[K.1i.6W+"lr"]||U[K.1i.6W+"ls"]||17(){}).2D(U)}1f{if(V.b2){V.b2()}}},gJ:(1t.9S||1t.kM||1t[K.1i.6W+"mo"]||1t[K.1i.6W+"mr"]||17(){}).1j(1t),ep:1t.jw?"lc":(1t.9S?"":K.1i.6W)+"lu",en:1t.jw?"lo":(1t.9S?"":K.1i.6W)+"l6",lS:K.1i.6W,lL:1g}}());1b T=/\\S+/g,H=/^(4h(ew|ey|ev|ex)m1)|((5A|7x)(ew|ey|ev|ex))$/,M={"m0":("4e"===c8(E.jk))?"lM":"jk"},O={m8:1h,lh:1h,1Z:1h,il:1h,4P:1h},G=(1u.k1)?17(W,U){1b V=1u.k1(W,1g);1a V?V.mv(U)||V[U]:1g}:17(X,V){1b W=X.nU,U=1g;U=W?W[V]:1g;if(1g==U&&X.2F&&X.2F[V]){U=X.2F[V]}1a U};17 S(W){1b U,V;V=(K.1i.38&&"4T"==W)?1e:(W in E);if(!V){U=K.1i.f2+W.cr(0).9b()+W.aG(1);if(U in E){1a U}}1a W}K.8D=S;K.4r={fD:17(U){1a!(U||"").9l(" ")&&(13.7O||"").9l(U," ")},1R:17(Y){1b V=(13.7O||"").4Y(T)||[],X=(Y||"").4Y(T)||[],U=X.1J,W=0;1L(;W<U;W++){if(!K.$(V).2k(X[W])){V.3a(X[W])}}13.7O=V.8t(" ");1a 13},2R:17(Z){1b V=(13.7O||"").4Y(T)||[],Y=(Z||"").4Y(T)||[],U=Y.1J,X=0,W;1L(;X<U;X++){if((W=K.$(V).7y(Y[X]))>-1){V.eL(W,1)}}13.7O=Z?V.8t(" "):"";1a 13},nN:17(U){1a 13.fD(U)?13.2R(U):13.1R(U)},2Z:17(V){1b W=V.5C(),U=1g;V=M[W]||(M[W]=S(W));U=G(13,V);if("2p"===U){U=1g}if(1g!==U){if("1Z"==V){1a K.4s(U)?3N(U):1}if(H.3R(V)){U=3L(U,10)?U:"9f"}}1a U},1n:17(V,U){1b X=V.5C();4f{if("1Z"==V){13.4K(U);1a 13}V=M[X]||(M[X]=S(X));13.2F[V]=U+(("40"==K.2a(U)&&!O[X])?"px":"")}4o(W){}1a 13},1T:17(V){1L(1b U in V){13.1n(U,V[U])}1a 13},bF:17(){1b U={};K.$A(2E).1D(17(V){U[V]=13.2Z(V)},13);1a U},4K:17(W,U){1b V;U=U||1e;13.2F.1Z=W;W=3L(3N(W)*1N);if(U){if(0===W){if("26"!=13.2F.2O){13.2F.2O="26"}}1f{if("3P"!=13.2F.2O){13.2F.2O="3P"}}}if(K.1i.3O&&K.1i.3O<9){if(!7I(W)){if(!~13.2F.4T.7y("f8")){13.2F.4T+=" jP:jO.jN.f8(cZ="+W+")"}1f{13.2F.4T=13.2F.4T.2J(/cZ=\\d*/i,"cZ="+W)}}1f{13.2F.4T=13.2F.4T.2J(/jP:jO.jN.f8\\(cZ=\\d*\\)/i,"").5W();if(""===13.2F.4T){13.2F.8l("4T")}}}1a 13},k3:17(U){1L(1b V in U){if("2K"===V){13.1R(""+U[V])}1f{13.3p(V,""+U[V])}}1a 13},oz:17(){1b V=0,U=0;V=13.2Z("2n-3D");U=13.2Z("2n-aT");V=V.7y("ms")>-1?3N(V):V.7y("s")>-1?3N(V)*6a:0;U=U.7y("ms")>-1?3N(U):U.7y("s")>-1?3N(U)*6a:0;1a V+U},2G:17(){1a 13.1T({36:"2H",2O:"26"})},1V:17(){1a 13.1T({36:"",2O:"3P"})},1Y:17(){1a{1m:13.jp,1l:13.8q}},ot:17(V){1b U=13.1Y();U.1m-=(3N(13.2Z("4h-1v-1m")||0)+3N(13.2Z("4h-2r-1m")||0));U.1l-=(3N(13.2Z("4h-1r-1m")||0)+3N(13.2Z("4h-2l-1m")||0));if(!V){U.1m-=(3N(13.2Z("5A-1v")||0)+3N(13.2Z("5A-2r")||0));U.1l-=(3N(13.2Z("5A-1r")||0)+3N(13.2Z("5A-2l")||0))}1a U},aN:17(){1a{1r:13.d3,1v:13.dz}},om:17(){1b U=13,V={1r:0,1v:0};do{V.1v+=U.dz||0;V.1r+=U.d3||0;U=U.2s}6K(U);1a V},4J:17(){1b Y=13,V=0,X=0;if(K.4s(1t.6I.je)){1b U=13.je(),W=K.$(1t).aN(),Z=K.1i.6V();1a{1r:U.1r+W.y-Z.oc,1v:U.1v+W.x-Z.oa}}do{V+=Y.jb||0;X+=Y.jq||0;Y=Y.ji}6K(Y&&!(/^(?:5k|3f)$/i).3R(Y.5f));1a{1r:X,1v:V}},o9:17(){1b U=13;1b W=0;1b V=0;do{W+=U.jb||0;V+=U.jq||0;U=U.ji}6K(U&&!(/^(?:5k|3f)$/i).3R(U.5f));1a{1r:V,1v:W}},gn:17(){1b V=13.4J();1b U=13.1Y();1a{1r:V.1r,2l:V.1r+U.1l,1v:V.1v,2r:V.1v+U.1m}},a1:17(V){4f{13.cJ=V}4o(U){13.o5=V}1a 13},3s:17(){1a(13.2s)?13.2s.dH(13):13},6O:17(){K.$A(13.8C).1D(17(U){if(3==U.6N||8==U.6N){1a}K.$(U).6O()});13.3s();13.d5();if(13.$5Y){K.bi[13.$5Y]=1g;5D K.bi[13.$5Y]}1a 1g},2C:17(W,V){V=V||"2l";1b U=13.87;("1r"==V&&U)?13.8L(W,U):13.dv(W);1a 13},3E:17(W,V){1b U=K.$(W).2C(13,V);1a 13},o1:17(U){13.2C(U.2s.jV(13,U));1a 13},mZ:17(U){if("5P"!==K.2a("2u"==K.2a(U)?U=1t.jH(U):U)){1a 1e}1a(13==U)?1e:(13.2k&&!(K.1i.jt))?(13.2k(U)):(13.jG)?!!(13.jG(U)&16):K.$A(13.cb(U.5f)).2k(U)}};K.4r.mW=K.4r.2Z;K.4r.mU=K.4r.1T;if(!1u.4r){1u.4r=K.$F;if(K.1i.4U.38){1u.1t.7L("jr")}1u.4r.2e=(K.1i.4U.38)?1u["[[mT.2e]]"]:{}}K.c7(1u.4r,{$5L:"5P"});K.4Q={1Y:17(){if(K.1i.bS||K.1i.mQ||K.1i.jt){1a{1m:1u.mM,1l:1u.mI}}1a{1m:K.1i.6V().ko,1l:K.1i.6V().mE}},aN:17(){1a{x:1u.mY||K.1i.6V().dz,y:1u.nk||K.1i.6V().d3}},ir:17(){1b U=13.1Y();1a{1m:1M.4a(K.1i.6V().nh,U.1m),1l:1M.4a(K.1i.6V().ng,U.1l)}}};K.1H(1t,{$5L:"1t"});K.1H(1u,{$5L:"1u"});K.1H([K.4r,K.4Q],{2c:17(X,V){1b U=K.e0(13.$5Y),W=U[X];if(4e!==V&&4e===W){W=U[X]=V}1a(K.4s(W)?W:1g)},3o:17(W,V){1b U=K.e0(13.$5Y);U[W]=V;1a 13},3b:17(V){1b U=K.e0(13.$5Y);5D U[V];1a 13}});if(!(1u.eB&&1u.eB.2e&&1u.eB.2e.eA)){K.1H([K.4r,K.4Q],{eA:17(U){1a K.$A(13.b4("*")).4T(17(W){4f{1a(1==W.6N&&W.7O.9l(U," "))}4o(V){}})}})}K.1H([K.4r,K.4Q],{k0:17(){1a 13.eA(2E[0])},cb:17(){1a 13.b4(2E[0])}});if(K.1i.6u.cF&&!1t.kT){K.4r.kT=17(){K.1i.6u.gr(13)}}K.1A={$5L:"1z",8A:K.$1e,1X:17(){1a 13.9k().6J()},9k:17(){if(13.kS){13.kS()}1f{13.kQ=1h}1a 13},6J:17(){if(13.kO){13.kO()}1f{13.n8=1e}1a 13},aC:17(){13.8A=K.$1h;1a 13},hc:17(){1b U=(/4L/i).3R(13.1k)?13.6m[0]:13;1a!K.4s(U)?{x:0,y:0}:{x:U.5p,y:U.5o}},8s:17(){1b U=(/4L/i).3R(13.1k)?13.6m[0]:13;1a!K.4s(U)?{x:0,y:0}:{x:U.5t||U.5p+K.1i.6V().dz,y:U.5u||U.5o+K.1i.6V().d3}},eR:17(){1b U=13.2Q||13.n4;6K(U&&U.6N===3){U=U.2s}1a U},hb:17(){1b V=1g;6M(13.1k){1U"8z":1U"n2":1U"n1":V=13.dx||13.mu;1W;1U"8T":1U"nC":1U"n9":V=13.dx||13.na;1W;1S:1a V}4f{6K(V&&V.6N===3){V=V.2s}}4o(U){V=1g}1a V},7r:17(){if(!13.h6&&13.2M!==4e){1a(13.2M&1?1:(13.2M&2?3:(13.2M&4?2:0)))}1a 13.h6},h8:17(){1a(13.3A&&(13.3A==="4L"||13.3A===13.8k))||(/4L/i).3R(13.1k)},ax:17(){if(13.3A){1a(13.3A==="4L"||13.8k===13.3A)&&13.9L}1f{if(13 4E 1u.9P){1a 13.6m.1J===1&&(13.8I.1J?13.8I.1J===1&&13.8I[0].7D===13.6m[0].7D:1h)}}1a 1e},89:17(){if(13.3A){1a 13.9L&&(13.3A==="4L"||13.8k===13.3A)?13:1g}1f{if(13 4E 1u.9P){1a 13.6m[0]}}1a 1g},bp:17(){if(13.3A){1a 13.9L&&(13.3A==="4L"||13.8k===13.3A)?13.5n:1g}1f{if(13 4E 1u.9P){1a 13.6m[0].7D}}1a 1g}};K.dY="bT";K.bu="nb";K.9v="";if(!1t.bT){K.dY="nc";K.bu="n0";K.9v="on"}K.1A.1B={1k:"",x:1g,y:1g,3W:1g,2M:1g,2Q:1g,dx:1g,$5L:"1z.nd",8A:K.$1e,8c:K.$([]),6h:17(U){1b V=U;13.8c.3a(V)},1X:17(){1a 13.9k().6J()},9k:17(){13.8c.1D(17(V){4f{V.9k()}4o(U){}});1a 13},6J:17(){13.8c.1D(17(V){4f{V.6J()}4o(U){}});1a 13},aC:17(){13.8A=K.$1h;1a 13},hc:17(){1a{x:13.5p,y:13.5o}},8s:17(){1a{x:13.x,y:13.y}},eR:17(){1a 13.2Q},hb:17(){1a 13.dx},7r:17(){1a 13.2M},hW:17(){1a 13.8c.1J>0?13.8c[0].eR():4e},h8:17(){1a(13.3A&&(13.3A==="4L"||13.3A===13.8k))||(/4L/i).3R(13.1k)},ax:17(){if(13.3A){1a(13.3A==="4L"||13.8k===13.3A)&&13.9L}1f{if(13 4E 1u.9P){1a 13.6m.1J===1&&(13.8I.1J?13.8I[0].7D===13.6m[0].7D:1h)}}1a 1e},89:17(){if(13.3A){1a 13.9L&&(13.3A==="4L"||13.8k===13.3A)?13:1g}1f{if(13 4E 1u.9P){1a 13.6m[0]}}1a 1g},bp:17(){if(13.3A){1a 13.9L&&(13.3A==="4L"||13.8k===13.3A)?13.5n:1g}1f{if(13 4E 1u.9P){1a 13.6m[0].7D}}1a 1g}};K.1H([K.4r,K.4Q],{1K:17(W,Y,Z,ac){1b ab,U,X,aa,V;if(K.2a(W)==="2u"){V=W.5b(" ");if(V.1J>1){W=V}}if(K.2a(W)==="5e"){K.$(W).1D(13.1K.6Y(13,Y,Z,ac));1a 13}W=R[W]||W;if(!W||!Y||K.2a(W)!=="2u"||K.2a(Y)!=="17"){1a 13}if(W==="bL"&&K.1i.2S){Y.2D(13);1a 13}Z=3L(Z||50,10);if(!Y.$59){Y.$59=1M.7l(1M.4N()*K.6H())}ab=K.4Q.2c.2D(13,"bO",{});U=ab[W];if(!U){ab[W]=U=K.$([]);X=13;if(K.1A.1B[W]){K.1A.1B[W].24.7u.2D(13,ac)}1f{U.4C=17(ad){ad=K.1H(ad||1u.e,{$5L:"1z"});K.4Q.2z.2D(X,W,K.$(ad))};13[K.dY](K.9v+W,U.4C,1e)}}aa={1k:W,fn:Y,et:Z,hB:Y.$59};U.3a(aa);U.ni(17(ae,ad){1a ae.et-ad.et});1a 13},29:17(aa){1b Y=K.4Q.2c.2D(13,"bO",{});1b W;1b U;1b V;1b ab;1b Z;1b X;Z=2E.1J>1?2E[1]:-1N;if(K.2a(aa)==="2u"){X=aa.5b(" ");if(X.1J>1){aa=X}}if(K.2a(aa)==="5e"){K.$(aa).1D(13.29.6Y(13,Z));1a 13}aa=R[aa]||aa;if(!aa||K.2a(aa)!=="2u"||!Y||!Y[aa]){1a 13}W=Y[aa]||[];1L(V=0;V<W.1J;V++){U=W[V];if(Z===-1N||!!Z&&Z.$59===U.hB){ab=W.eL(V--,1)}}if(W.1J===0){if(K.1A.1B[aa]){K.1A.1B[aa].24.3s.2D(13)}1f{13[K.bu](K.9v+aa,W.4C,1e)}5D Y[aa]}1a 13},2z:17(X,Z){1b W=K.4Q.2c.2D(13,"bO",{});1b V;1b U;X=R[X]||X;if(!X||K.2a(X)!=="2u"||!W||!W[X]){1a 13}4f{Z=K.1H(Z||{},{1k:X})}4o(Y){}if(Z.3W===4e){Z.3W=K.6H()}V=W[X]||[];1L(U=0;U<V.1J&&!(Z.8A&&Z.8A());U++){V[U].fn.2D(13,Z)}},np:17(V,U){1b Y=(V!=="bL");1b X=13;1b W;V=R[V]||V;if(!Y){K.4Q.2z.2D(13,V);1a 13}if(X===1t&&1t.dd&&!X.gZ){X=1t.6I}if(1t.dd){W=1t.dd(V);W.mK(U,1h,1h)}1f{W=1t.my();W.co=V}if(1t.dd){X.gZ(W)}1f{X.mD("on"+U,W)}1a W},d5:17(){1b V=K.4Q.2c.2D(13,"bO");if(!V){1a 13}1L(1b U in V){K.4Q.29.2D(13,U)}K.4Q.3b.2D(13,"bO");1a 13}});(17(U){if(1t.9g==="9e"){1a U.1i.aH.3V(1)}if(U.1i.38&&U.1i.5T<mF){(17(){if(U.$(["3G","9e"]).2k(1t.9g)){U.1i.aH()}1f{2E.dN.3V(50)}}())}1f{if(U.1i.6X&&U.1i.3O<9&&1u===1r){(17(){if(U.$4f(17(){U.1i.6V().mL("1v");1a 1h})){U.1i.aH()}1f{2E.dN.3V(50)}}())}1f{U.4Q.1K.2D(U.$(1t),"iQ",U.1i.aH);U.4Q.1K.2D(U.$(1u),"2y",U.1i.aH)}}}(Q));K.4V=17(){1b Y=1g,V=K.$A(2E);if("2K"==K.2a(V[0])){Y=V.83()}1b U=17(){1L(1b ab in 13){13[ab]=K.7Q(13[ab])}if(13.6r.$5g){13.$5g={};1b ad=13.6r.$5g;1L(1b ac in ad){1b aa=ad[ac];6M(K.2a(aa)){1U"17":13.$5g[ac]=K.4V.gG(13,aa);1W;1U"9Z":13.$5g[ac]=K.7Q(aa);1W;1U"5e":13.$5g[ac]=K.7Q(aa);1W}}}1b Z=(13.4F)?13.4F.3r(13,2E):13;5D 13.eg;1a Z};if(!U.2e.4F){U.2e.4F=K.$F}if(Y){1b X=17(){};X.2e=Y.2e;U.2e=1o X;U.$5g={};1L(1b W in Y.2e){U.$5g[W]=Y.2e[W]}}1f{U.$5g=1g}U.6r=K.4V;U.2e.6r=U;K.1H(U.2e,V[0]);K.1H(U,{$5L:"2K"});1a U};Q.4V.gG=17(U,V){1a 17(){1b X=13.eg;1b W=V.3r(U,2E);1a W}};(17(X){1b W=X.$;1b U=5,V=aM;X.1A.1B.3m=1o X.4V(X.1H(X.1A.1B,{1k:"3m",4F:17(aa,Z){1b Y=Z.8s();13.x=Y.x;13.y=Y.y;13.5p=Z.5p;13.5o=Z.5o;13.3W=Z.3W;13.2M=Z.7r();13.2Q=aa;13.6h(Z)}}));X.1A.1B.3m.24={1p:{ar:V,2M:1},7u:17(Y){13.3o("1z:3m:1p",X.1H(X.7Q(X.1A.1B.3m.24.1p),Y||{}));13.1K("8U",X.1A.1B.3m.24.4C,1);13.1K("7C",X.1A.1B.3m.24.4C,1);13.1K("6D",X.1A.1B.3m.24.e4,1);if(X.1i.6X&&X.1i.3O<9){13.1K("b8",X.1A.1B.3m.24.4C,1)}},3s:17(){13.29("8U",X.1A.1B.3m.24.4C);13.29("7C",X.1A.1B.3m.24.4C);13.29("6D",X.1A.1B.3m.24.e4);if(X.1i.6X&&X.1i.3O<9){13.29("b8",X.1A.1B.3m.24.4C)}},e4:17(Y){Y.6J()},4C:17(ab){1b aa,Y,Z;Y=13.2c("1z:3m:1p");if(ab.1k!="b8"&&ab.7r()!=Y.2M){1a}if(13.2c("1z:3m:eo")){13.3b("1z:3m:eo");1a}if("8U"==ab.1k){aa=1o X.1A.1B.3m(13,ab);13.3o("1z:3m:de",aa)}1f{if("7C"==ab.1k){aa=13.2c("1z:3m:de");if(!aa){1a}Z=ab.8s();13.3b("1z:3m:de");aa.6h(ab);if(ab.3W-aa.3W<=Y.ar&&1M.dX(1M.7p(Z.x-aa.x,2)+1M.7p(Z.y-aa.y,2))<=U){13.2z("3m",aa)}1t.2z("7C",ab)}1f{if(ab.1k=="b8"){aa=1o X.1A.1B.3m(13,ab);13.2z("3m",aa)}}}}}})(Q);(17(V){1b U=V.$;V.1A.1B.43=1o V.4V(V.1H(V.1A.1B,{1k:"43",2j:"5d",7f:1e,4F:17(Z,Y,X){1b W=Y.8s();13.x=W.x;13.y=W.y;13.5p=Y.5p;13.5o=Y.5o;13.3W=Y.3W;13.2M=Y.7r();13.2Q=Z;13.6h(Y);13.2j=X}}));V.1A.1B.43.24={7u:17(){1b X=V.1A.1B.43.24.iK.6Y(13);1b W=V.1A.1B.43.24.dA.6Y(13);13.1K("8U",V.1A.1B.43.24.ed,1);13.1K("7C",V.1A.1B.43.24.dA,1);1t.1K("c3",X,1);1t.1K("7C",W,1);13.3o("1z:43:4w:1t:49",X);13.3o("1z:43:4w:1t:3e",W)},3s:17(){13.29("8U",V.1A.1B.43.24.ed);13.29("7C",V.1A.1B.43.24.dA);U(1t).29("c3",13.2c("1z:43:4w:1t:49")||V.$F);U(1t).29("7C",13.2c("1z:43:4w:1t:3e")||V.$F);13.3b("1z:43:4w:1t:49");13.3b("1z:43:4w:1t:3e")},ed:17(X){1b W;if(X.7r()!==1){1a}W=1o V.1A.1B.43(13,X,"5d");13.3o("1z:43:5d",W)},dA:17(X){1b W;W=13.2c("1z:43:5d");if(!W){1a}if(W.7f){X.6J()}W=1o V.1A.1B.43(13,X,"cv");13.3b("1z:43:5d");13.2z("43",W)},iK:17(X){1b W;W=13.2c("1z:43:5d");if(!W){1a}X.6J();if(!W.7f){W.7f=1h;13.2z("43",W)}W=1o V.1A.1B.43(13,X,"iR");13.2z("43",W)}}})(Q);(17(V){1b U=V.$;V.1A.1B.5H=1o V.4V(V.1H(V.1A.1B,{1k:"5H",a6:1e,as:1g,4F:17(Y,X){1b W=X.8s();13.x=W.x;13.y=W.y;13.5p=X.5p;13.5o=X.5o;13.3W=X.3W;13.2M=X.7r();13.2Q=Y;13.6h(X)}}));V.1A.1B.5H.24={1p:{ar:7X},7u:17(W){13.3o("1z:5H:1p",V.1H(V.7Q(V.1A.1B.5H.24.1p),W||{}));13.1K("3m",V.1A.1B.5H.24.4C,1)},3s:17(){13.29("3m",V.1A.1B.5H.24.4C)},4C:17(Y){1b X,W;X=13.2c("1z:5H:1z");W=13.2c("1z:5H:1p");if(!X){X=1o V.1A.1B.5H(13,Y);X.as=79(17(){X.a6=1h;Y.8A=V.$1e;13.2z("3m",Y);13.3b("1z:5H:1z")}.1j(13),W.ar+10);13.3o("1z:5H:1z",X);Y.aC()}1f{5J(X.as);13.3b("1z:5H:1z");if(!X.a6){X.6h(Y);Y.aC().1X();13.2z("5H",X)}1f{}}}}})(Q);(17(X){1b W=X.$;1b U=10;1b V=7X;X.1A.1B.3Q=1o X.4V(X.1H(X.1A.1B,{1k:"3Q",id:1g,4F:17(Z,Y){1b aa=Y.89();13.id=aa.5n||aa.7D;13.x=aa.5t;13.y=aa.5u;13.5t=aa.5t;13.5u=aa.5u;13.5p=aa.5p;13.5o=aa.5o;13.3W=Y.3W;13.2M=0;13.2Q=Z;13.6h(Y)}}));X.1A.1B.3Q.24={7u:17(Y){13.1K(["9A","9x"],X.1A.1B.3Q.24.7W,1);13.1K(["5U","6w"],X.1A.1B.3Q.24.6T,1);13.1K("6D",X.1A.1B.3Q.24.aK,1)},3s:17(){13.29(["9A","9x"],X.1A.1B.3Q.24.7W);13.29(["5U","6w"],X.1A.1B.3Q.24.6T);13.29("6D",X.1A.1B.3Q.24.aK)},aK:17(Y){Y.6J()},7W:17(Y){if(!Y.ax()){13.3b("1z:3Q:1z");1a}13.3o("1z:3Q:1z",1o X.1A.1B.3Q(13,Y));13.3o("1z:3m:eo",1h)},6T:17(ab){1b Z=X.6H();1b aa=13.2c("1z:3Q:1z");1b Y=13.2c("1z:3Q:1p");if(!aa||!ab.ax()){1a}13.3b("1z:3Q:1z");if(aa.id===ab.bp()&&ab.3W-aa.3W<=V&&1M.dX(1M.7p(ab.89().5t-aa.x,2)+1M.7p(ab.89().5u-aa.y,2))<=U){13.3b("1z:3m:de");ab.1X();aa.6h(ab);13.2z("3Q",aa)}}}}(Q));K.1A.1B.6d=1o K.4V(K.1H(K.1A.1B,{1k:"6d",a6:1e,as:1g,4F:17(V,U){13.x=U.x;13.y=U.y;13.5p=U.5p;13.5o=U.5o;13.3W=U.3W;13.2M=0;13.2Q=V;13.6h(U)}}));K.1A.1B.6d.24={1p:{ar:aM},7u:17(U){13.3o("1z:6d:1p",K.1H(K.7Q(K.1A.1B.6d.24.1p),U||{}));13.1K("3Q",K.1A.1B.6d.24.4C,1)},3s:17(){13.29("3Q",K.1A.1B.6d.24.4C)},4C:17(W){1b V,U;V=13.2c("1z:6d:1z");U=13.2c("1z:6d:1p");if(!V){V=1o K.1A.1B.6d(13,W);V.as=79(17(){V.a6=1h;W.8A=K.$1e;13.2z("3Q",W)}.1j(13),U.ar+10);13.3o("1z:6d:1z",V);W.aC()}1f{5J(V.as);13.3b("1z:6d:1z");if(!V.a6){V.6h(W);W.aC().1X();13.2z("6d",V)}1f{}}}};(17(W){1b V=W.$;1b U=10;W.1A.1B.3u=1o W.4V(W.1H(W.1A.1B,{1k:"3u",2j:"5d",id:1g,7f:1e,4F:17(Z,Y,X){1b aa=Y.89();13.id=aa.5n||aa.7D;13.5p=aa.5p;13.5o=aa.5o;13.5t=aa.5t;13.5u=aa.5u;13.x=aa.5t;13.y=aa.5u;13.3W=Y.3W;13.2M=0;13.2Q=Z;13.6h(Y);13.2j=X}}));W.1A.1B.3u.24={7u:17(){1b Y=W.1A.1B.3u.24.8n.1j(13);1b X=W.1A.1B.3u.24.6T.1j(13);13.1K(["9A","9x"],W.1A.1B.3u.24.7W,1);13.1K(["5U","6w"],W.1A.1B.3u.24.6T,1);13.1K(["8W","8u"],W.1A.1B.3u.24.8n,1);13.3o("1z:3u:4w:1t:49",Y);13.3o("1z:3u:4w:1t:3e",X);V(1t).1K("8u",Y,1);V(1t).1K("6w",X,1)},3s:17(){13.29(["9A","9x"],W.1A.1B.3u.24.7W);13.29(["5U","6w"],W.1A.1B.3u.24.6T);13.29(["8W","8u"],W.1A.1B.3u.24.8n);V(1t).29("8u",13.2c("1z:3u:4w:1t:49")||W.$F,1);V(1t).29("6w",13.2c("1z:3u:4w:1t:3e")||W.$F,1);13.3b("1z:3u:4w:1t:49");13.3b("1z:3u:4w:1t:3e")},7W:17(Y){1b X;if(!Y.ax()){1a}X=1o W.1A.1B.3u(13,Y,"5d");13.3o("1z:3u:5d",X)},6T:17(Y){1b X;X=13.2c("1z:3u:5d");if(!X||!X.7f||X.id!==Y.bp()){1a}X=1o W.1A.1B.3u(13,Y,"cv");13.3b("1z:3u:5d");13.2z("3u",X)},8n:17(Y){1b X;X=13.2c("1z:3u:5d");if(!X||!Y.ax()){1a}if(X.id!==Y.bp()){13.3b("1z:3u:5d");1a}if(!X.7f&&1M.dX(1M.7p(Y.89().5t-X.x,2)+1M.7p(Y.89().5u-X.y,2))>U){X.7f=1h;13.2z("3u",X)}if(!X.7f){1a}X=1o W.1A.1B.3u(13,Y,"iR");13.2z("3u",X)}}}(Q));(17(X){1b ab=X.$;1b Y=1g;17 U(ak,aj){1b ai=aj.x-ak.x;1b al=aj.y-ak.y;1a 1M.dX(ai*ai+al*al)}17 ad(ao,ap){1b an=3B.2e.aG.2D(ao);1b am=1M.5q(an[1].5t-an[0].5t);1b ak=1M.5q(an[1].5u-an[0].5u);1b al=1M.6p(an[1].5t,an[0].5t)+am/2;1b aj=1M.6p(an[1].5u,an[0].5u)+ak/2;1b ai=0;ap.bv=[an[0],an[1]];ai=1M.7p(U({x:an[0].5t,y:an[0].5u},{x:an[1].5t,y:an[1].5u}),2);ap.aJ={x:al,y:aj};ap.x=ap.aJ.x;ap.y=ap.aJ.y;1a ai}17 ag(ai){1a ai/Y}17 V(ak,aj){1b ai;if(ak.8I&&ak.6m){if(ak.8I){ai=ak.8I}1f{ai=ak.6m}ai=3B.2e.aG.2D(ai)}1f{ai=[];if(aj){aj.dG(17(al){ai.3a(al)})}}1a ai}17 W(al,ak,aj){1b ai=1e;if(al.5n&&al.3A==="4L"&&(!aj||ak.9l(al.5n))){ak.2I(al.5n,al);ai=1h}1a ai}17 ac(aj,ai){if(aj.5n&&aj.3A==="4L"&&ai&&ai.9l(aj.5n)){ai["5D"](aj.5n)}}17 af(aj){1b ai;if(aj.5n&&aj.3A==="4L"){ai=aj.5n}1f{ai=aj.7D}1a ai}17 aa(al,aj){1b ak;1b am;1b ai=1e;1L(ak=0;ak<al.1J;ak++){if(aj.1J===2){1W}1f{am=af(al[ak]);if(!aj.2k(am)){aj.3a(am);ai=1h}}}1a ai}17 ae(aj){1b ai=ab([]);aj.dG(17(ak){ai.3a(af(ak))});1a ai}17 ah(am,aj){1b ak;1b al;1b ai=1e;if(aj){al=ae(am);1L(ak=0;ak<aj.1J;ak++){if(!al.2k(aj[ak])){aj.eL(ak,1);ai=1h;1W}}}1a ai}17 Z(al,aj){1b ak;1b ai=ab([]);1L(ak=0;ak<al.1J;ak++){if(aj.2k(af(al[ak]))){ai.3a(al[ak]);if(ai.1J===2){1W}}}1a ai}X.1A.1B.2t=1o X.4V(X.1H(X.1A.1B,{1k:"2t",2j:"9m",4F:17(ak,aj,ai,al){13.2Q=ak;13.2j=ai;13.x=al.x;13.y=al.y;13.3W=aj.3W;13.4k=al.4k;13.6B=al.6B;13.4P=al.4P;13.2j=ai;13.aJ=al.aJ;13.bv=al.bv;13.6h(aj)}}));X.1A.1B.2t.24={7H:{x:0,y:0,6B:0,4k:1,4P:0,er:0,nw:1,cy:1e,7f:1e,bv:[],aJ:{x:0,y:0}},7u:17(ak){if(!Y){Y=(17(){1b al=ab(1u).1Y();al.1m=1M.6p(al.1m,al.1l);al.1l=al.1m;1a 1M.7p(U({x:0,y:0},{x:al.1m,y:al.1l}),2)})()}1b aj=X.1A.1B.2t.24.8n.1j(13);1b ai=X.1A.1B.2t.24.6T.1j(13);13.1K(["6D","3Q"],X.1A.1B.2t.24.aK,1);13.1K(["9A","9x"],X.1A.1B.2t.24.7W,1);13.1K(["5U","6w"],X.1A.1B.2t.24.6T,1);13.1K(["8W","8u"],X.1A.1B.2t.24.8n,1);13.3o("1z:2t:4w:8W",aj);13.3o("1z:2t:4w:5U",ai);X.7z.1K("8u",aj,1);X.7z.1K("6w",ai,1)},3s:17(){13.29(["6D","3Q"],X.1A.1B.2t.24.aK);13.29(["9A","9x"],X.1A.1B.2t.24.7W);13.29(["5U","6w"],X.1A.1B.2t.24.6T);13.29(["8W","8u"],X.1A.1B.2t.24.8n);X.7z.29("8u",13.2c("1z:2t:4w:8W"));X.7z.29("6w",13.2c("1z:2t:4w:5U"));13.3b("1z:2t:4w:8W");13.3b("1z:2t:4w:5U");13.3b("1z:2t:9m");13.3b("1z:2t:7H");13.3b("1z:2t:aB");1b ai=13.2c("1z:2t:9o");if(ai){ai.ia()}13.3b("1z:2t:9o")},aK:17(ai){ai.1X()},cu:17(aj,ak){1b ai=ak.6B;if(aj.1J>1){ak.6B=ad(aj,ak);if(!ak.er){ak.er=ak.6B}if(ai>ak.6B){ak.4P=-1}1f{if(ai<ak.6B){ak.4P=1}1f{ak.4P=0}}ak.4k=ag(ak.6B)}1f{ak.bv=3B.2e.aG.2D(aj,0,2)}},8n:17(ak){1b aj;1b ai=13.2c("1z:2t:9o");1b am=13.2c("1z:2t:7H")||X.1H({},X.1A.1B.2t.24.7H);1b al=13.2c("1z:2t:aB");if(am.cy){if(ak.5n&&!W(ak,ai,1h)){1a}ak.1X();X.1A.1B.2t.24.cu(Z(V(ak,ai),al),am);aj=1o X.1A.1B.2t(13,ak,"nv",am);13.2z("2t",aj)}},7W:17(al){1b aj;1b an;1b ak;1b ai=13.2c("1z:2t:9o");1b am=13.2c("1z:2t:aB");if(al.3A==="ij"){1a}if(!am){am=ab([]);13.3o("1z:2t:aB",am)}if(!am.1J){ab(al.2Q).1K(["5U","6w"],13.2c("1z:2t:4w:5U"),1)}if(!ai){ai=1o lE();13.3o("1z:2t:9o",ai)}W(al,ai);ak=V(al,ai);aa(ak,am);if(ak.1J===2){aj=13.2c("1z:2t:9m");an=13.2c("1z:2t:7H")||X.1H({},X.1A.1B.2t.24.7H);X.1A.1B.2t.24.cu(Z(ak,am),an);if(!aj){aj=1o X.1A.1B.2t(13,al,"9m",an);13.3o("1z:2t:9m",aj);13.3o("1z:2t:7H",an);Y=an.6B;13.2z("2t",aj);an.cy=1h}}},6T:17(an){1b am;1b al;1b ap;1b aj;1b ak=13.2c("1z:2t:9o");1b ao;1b ai;if(an.3A==="ij"||an.5n&&(!ak||!ak.9l(an.5n))){1a}al=13.2c("1z:2t:9m");ap=13.2c("1z:2t:7H");ao=13.2c("1z:2t:aB");am=V(an,ak);ac(an,ak);ai=ah(am,ao);if(!al||!ap||!ap.cy||!ai||!ao){1a}if(ai){aa(am,ao)}aj="lK";if(am.1J>1){aj="m9"}1f{an.2Q.29(["5U","6w"],13.2c("1z:2t:4w:5U"));if(ak){ak.ia()}13.3b("1z:2t:9m");13.3b("1z:2t:7H");13.3b("1z:2t:9o");13.3b("1z:2t:aB")}X.1A.1B.2t.24.cu(Z(am,ao),ap);al=1o X.1A.1B.2t(13,an,aj,ap);13.2z("2t",al)}}}(Q));(17(Z){1b X=Z.$;Z.1A.1B.7V=1o Z.4V(Z.1H(Z.1A.1B,{1k:"7V",4F:17(af,ae,ah,ab,aa,ag,ac){1b ad=ae.8s();13.x=ad.x;13.y=ad.y;13.3W=ae.3W;13.2Q=af;13.m5=ah||0;13.eV=ab||0;13.eX=aa||0;13.lN=ag||0;13.lO=ac||0;13.eQ=ae.eQ||0;13.gP=1e;13.6h(ae)}}));1b Y,V;17 U(){Y=1g}17 W(aa,ab){1a(aa>50)||(1===ab&&!("cB"==Z.1i.74&&aa<1))||(0===aa%12)||(0==aa%4.lT)}Z.1A.1B.7V.24={co:"lU"in 1t||Z.1i.3O>8?"lZ":"hY",7u:17(){13.1K(Z.1A.1B.7V.24.co,Z.1A.1B.7V.24.4C,1)},3s:17(){13.29(Z.1A.1B.7V.24.co,Z.1A.1B.7V.24.4C,1)},4C:17(af){1b ag=0,ad=0,ab=0,aa=0,ae,ac;if(af.j4){ab=af.j4*-1}if(af.iY!==4e){ab=af.iY}if(af.iM!==4e){ab=af.iM}if(af.iz!==4e){ad=af.iz*-1}if(af.eX){ab=-1*af.eX}if(af.eV){ad=af.eV}if(0===ab&&0===ad){1a}ag=0===ab?ad:ab;aa=1M.4a(1M.5q(ab),1M.5q(ad));if(!Y||aa<Y){Y=aa}ae=ag>0?"7l":"mn";ag=1M[ae](ag/Y);ad=1M[ae](ad/Y);ab=1M[ae](ab/Y);if(V){5J(V)}V=79(U,7X);ac=1o Z.1A.1B.7V(13,af,ag,ad,ab,0,Y);ac.gP=W(Y,af.eQ||0);13.2z("7V",ac)}}})(Q);K.cB=K.$(1u);K.7z=K.$(1t);1a Q})();(17(G){if(!G){6P"7A 80 7R"}1b F=G.$;1b E=1u.ld||1u.l9||1g;x.9H=1o G.4V({1c:1g,2S:1e,1p:{cI:G.$F,5G:G.$F,8b:G.$F,5m:G.$F,6b:G.$F,gQ:G.$F,cM:1e,gY:1h},2w:1g,7h:1g,e2:0,76:{cI:17(H){if(H.2Q&&(7X===H.2Q.cY||gL===H.2Q.cY)&&H.l7){13.1p.cI.1j(1g,(H.3G-(13.1p.gY?13.e2:0))/H.lB).3V(1);13.e2=H.3G}},5G:17(H){if(H){F(H).1X()}13.72();if(13.2S){1a}13.2S=1h;13.71();!13.1p.cM&&13.1p.cI.1j(1g,1).3V(1);13.1p.5G.1j(1g,13).3V(1);13.1p.6b.1j(1g,13).3V(1)},8b:17(H){if(H){F(H).1X()}13.72();13.2S=1e;13.71();13.1p.8b.1j(1g,13).3V(1);13.1p.6b.1j(1g,13).3V(1)},5m:17(H){if(H){F(H).1X()}13.72();13.2S=1e;13.71();13.1p.5m.1j(1g,13).3V(1);13.1p.6b.1j(1g,13).3V(1)}},a0:17(){F(["2y","9u","4m"]).1D(17(H){13.1c.1K(H,13.76["on"+H].6Y(13).eN(1))},13)},72:17(){if(13.7h){4f{5J(13.7h)}4o(H){}13.7h=1g}F(["2y","9u","4m"]).1D(17(I){13.1c.29(I)},13)},71:17(){13.1Y();if(13.1c.2c("1o")){1b H=13.1c.2s;13.1c.3s().3b("1o").1T({2i:"l3",1r:"2p"});H.6O()}},h0:17(I){1b J=1o cV(),H;F(["9u","3T"]).1D(17(K){J["on"+K]=F(17(L){13.76["on"+K].2D(13,L)}).1j(13)},13);J.5m=F(17(){13.1p.gQ.1j(1g,13).3V(1);13.1p.cM=1e;13.a0();13.1c.1P=I}).1j(13);J.5G=F(17(){if(7X!==J.cY&&gL!==J.cY){13.76.5m.2D(13);1a}H=J.lk;13.a0();if(E&&!G.1i.6X&&!("dR"===G.1i.74&&G.1i.5T<m7)){13.1c.3p("1P",E.ma(H))}1f{13.1c.1P=I}}).1j(13);J.mf("mg",I);J.m6="lX";J.m4()},4F:17(I,H){13.1p=G.1H(13.1p,H);13.1c=F(I)||G.$1o("1c").1T({lY:"2H",lV:"2H"}).3E(G.$1o("2N").1R("4u-bw-1c").1T({2i:"2V",1r:-cR,1m:10,1l:10,3g:"26"}).3E(1t.5k)).3o("1o",1h);if(H.gF){13.1c.3p("lQ",H.gF)}if(G.1i.5x.gD&&13.1p.cM&&G.2a(I)==="2u"){13.h0(I);1a}1b J=17(){if(13.cq()){13.76.5G.2D(13)}1f{13.76.5m.2D(13)}J=1g}.1j(13);13.a0();if("2u"==G.2a(I)){13.1c.1P=I}1f{if(G.1i.6X&&5==G.1i.5T&&G.1i.3O<9){13.1c.hr=17(){if(/3G|9e/.3R(13.1c.9g)){13.1c.hr=1g;J&&J()}}.1j(13)}13.1c.1P=I.2U("1P")}13.1c&&13.1c.9e&&J&&(13.7h=J.3V(1N))},c6:17(){13.72();13.71();13.2S=1e;1a 13},cq:17(){1b H=13.1c;1a(H.a3)?(H.a3>0):(H.9g)?("9e"==H.9g):H.1m>0},1Y:17(){1a 13.2w||(13.2w={1m:13.1c.a3||13.1c.1m,1l:13.1c.l5||13.1c.1l})}})})(x);(17(F){if(!F){6P"7A 80 7R"}if(F.5w){1a}1b E=F.$;F.5w=1o F.4V({4F:17(H,G){1b I;13.el=F.$(H);13.1p=F.1H(13.1p,G);13.5X=1e;13.aF=13.f7;I=F.5w.8p[13.1p.2n]||13.1p.2n;if("17"===F.2a(I)){13.aF=I}1f{13.3C=13.bK(I)||13.bK("51")}if("2u"==F.2a(13.1p.aL)){13.1p.aL="md"===13.1p.aL?lJ:3L(13.1p.aL)||1}},1p:{hA:60,3D:gs,2n:"51",aL:1,2b:"gz",cx:F.$F,9w:F.$F,hm:F.$F,hn:F.$F,cl:1e,ll:1e},5Q:1g,3C:1g,aF:1g,lg:17(G){13.1p.2n=G;G=F.5w.8p[13.1p.2n]||13.1p.2n;if("17"===F.2a(G)){13.aF=G}1f{13.aF=13.f7;13.3C=13.bK(G)||13.bK("51")}},2B:17(I){1b G=/\\%$/,H;13.5Q=I||{};13.e9=0;13.2j=0;13.l8=0;13.cN={};13.ay="ay"===13.1p.2b||"ay-6t"===13.1p.2b;13.au="au"===13.1p.2b||"au-6t"===13.1p.2b;1L(H in 13.5Q){G.3R(13.5Q[H][0])&&(13.cN[H]=1h);if("6t"===13.1p.2b||"ay-6t"===13.1p.2b||"au-6t"===13.1p.2b){13.5Q[H].6t()}}13.fG=F.6H();13.j9=13.fG+13.1p.3D;13.1p.cx.2D();if(0===13.1p.3D){13.9h(1);13.1p.9w.2D()}1f{13.cf=13.6y.1j(13);if(!13.1p.cl&&F.1i.5x.6U){13.5X=F.1i.6U.2D(1u,13.cf)}1f{13.5X=13.cf.69(1M.dS(6a/13.1p.hA))}}1a 13},e8:17(){if(13.5X){if(!13.1p.cl&&F.1i.5x.6U&&F.1i.ck){F.1i.ck.2D(1u,13.5X)}1f{dt(13.5X)}13.5X=1e}},1X:17(G){G=F.4s(G)?G:1e;13.e8();if(G){13.9h(1);13.1p.9w.3V(10)}1a 13},ej:17(I,H,G){I=3N(I);H=3N(H);1a(H-I)*G+I},6y:17(){1b H=F.6H(),G=(H-13.fG)/13.1p.3D,I=1M.7l(G);if(H>=13.j9&&I>=13.1p.aL){13.e8();13.9h(1);13.1p.9w.3V(10);1a 13}if(13.ay&&13.e9<I){1L(1b J in 13.5Q){13.5Q[J].6t()}}13.e9=I;if(!13.1p.cl&&F.1i.5x.6U){13.5X=F.1i.6U.2D(1u,13.cf)}13.9h((13.au?I:0)+13.aF(G%1))},9h:17(G){1b H={},J=G;1L(1b I in 13.5Q){if("1Z"===I){H[I]=1M.dS(13.ej(13.5Q[I][0],13.5Q[I][1],G)*1N)/1N}1f{H[I]=13.ej(13.5Q[I][0],13.5Q[I][1],G);13.cN[I]&&(H[I]+="%")}}13.1p.hm(H,13.el);13.2I(H);13.1p.hn(H,13.el)},2I:17(G){1a 13.el.1T(G)},bK:17(G){1b H,I=1g;if("2u"!==F.2a(G)){1a 1g}6M(G){1U"da":I=E([0,0,1,1]);1W;1U"51":I=E([0.25,0.1,0.25,1]);1W;1U"51-in":I=E([0.42,0,1,1]);1W;1U"51-2W":I=E([0,0,0.58,1]);1W;1U"51-in-2W":I=E([0.42,0,0.58,1]);1W;1U"i5":I=E([0.47,0,0.rn,0.ro]);1W;1U"iH":I=E([0.39,0.rp,0.rq,1]);1W;1U"rr":I=E([0.rs,0.eT,0.55,0.95]);1W;1U"i8":I=E([0.55,0.rt,0.68,0.53]);1W;1U"i9":I=E([0.25,0.46,0.45,0.94]);1W;1U"rw":I=E([0.rx,0.gN,0.ry,0.oA]);1W;1U"i3":I=E([0.55,0.rm,0.rz,0.19]);1W;1U"ib":I=E([0.rB,0.61,0.gH,1]);1W;1U"rC":I=E([0.rD,0.iT,0.gH,1]);1W;1U"rE":I=E([0.rF,0.gN,0.rG,0.22]);1W;1U"rH":I=E([0.iP,0.84,0.44,1]);1W;1U"rI":I=E([0.77,0,0.iO,1]);1W;1U"rJ":I=E([0.rK,0.eT,0.rL,0.rM]);1W;1U"rA":I=E([0.23,1,0.32,1]);1W;1U"r4":I=E([0.86,0,0.rj,1]);1W;1U"i6":I=E([0.95,0.eT,0.qR,0.qS]);1W;1U"i7":I=E([0.19,1,0.22,1]);1W;1U"qT":I=E([1,0,0,1]);1W;1U"qU":I=E([0.6,0.qV,0.98,0.qW]);1W;1U"qX":I=E([0.qY,0.82,0.iP,1]);1W;1U"qZ":I=E([0.r0,0.r1,0.15,0.86]);1W;1U"ih":I=E([0.6,-0.28,0.r3,0.iT]);1W;1U"ii":I=E([0.iO,0.r5,0.32,1.rO]);1W;1U"r9":I=E([0.68,-0.55,0.rc,1.55]);1W;1S:G=G.2J(/\\s/g,"");if(G.4Y(/^7n-7m\\((?:-?[0-9\\.]{0,}[0-9]{1,},){3}(?:-?[0-9\\.]{0,}[0-9]{1,})\\)$/)){I=G.2J(/^7n-7m\\s*\\(|\\)$/g,"").5b(",");1L(H=I.1J-1;H>=0;H--){I[H]=3N(I[H])}}}1a E(I)},f7:17(S){1b G=0,R=0,O=0,T=0,Q=0,M=0,N=13.1p.3D;17 L(U){1a((G*U+R)*U+O)*U}17 K(U){1a((T*U+Q)*U+M)*U}17 I(U){1a(3*G*U+2*R)*U+O}17 P(U){1a 1/(7X*U)}17 H(U,V){1a K(J(U,V))}17 J(ab,ac){1b aa,Z,Y,V,U,X;17 W(ad){if(ad>=0){1a ad}1f{1a 0-ad}}1L(Y=ab,X=0;X<8;X++){V=L(Y)-ab;if(W(V)<ac){1a Y}U=I(Y);if(W(U)<0.rd){1W}Y=Y-V/U}aa=0;Z=1;Y=ab;if(Y<aa){1a aa}if(Y>Z){1a Z}6K(aa<Z){V=L(Y);if(W(V-ab)<ac){1a Y}if(ab>V){aa=Y}1f{Z=Y}Y=(Z-aa)*0.5+aa}1a Y}O=3*13.3C[0];R=3*(13.3C[2]-13.3C[0])-O;G=1-O-R;M=3*13.3C[1];Q=3*(13.3C[3]-13.3C[1])-M;T=1-M-Q;1a H(S,P(N))}});F.5w.8p={da:"da",rf:"i5",rg:"iH",rh:"i6",ri:"i7",rN:"i8",rl:"i9",rP:"i3",gx:"ib",rV:"ih",so:"ii",ik:17(H,G){G=G||[];1a 1M.7p(2,10*--H)*1M.hN(20*H*1M.hM*(G[0]||1)/3)},sp:17(H,G){1a 1-F.5w.8p.ik(1-H,G)},iq:17(I){1L(1b H=0,G=1;1;H+=G,G/=2){if(I>=(7-4*H)/11){1a G*G-1M.7p((11-6*H-11*I)/4,2)}}},sr:17(G){1a 1-F.5w.8p.iq(1-G)},2H:17(G){1a 0}}})(x);(17(F){if(!F){6P"7A 80 7R"}if(F.fw){1a}1b E=F.$;F.fw=1o F.4V(F.5w,{4F:17(G,H){13.eC=G;13.1p=F.1H(13.1p,H);13.5X=1e;13.$5g.4F()},2B:17(K){1b G=/\\%$/,J,I,H=K.1J;13.eu=K;13.cO=1o 3B(H);1L(I=0;I<H;I++){13.cO[I]={};1L(J in K[I]){G.3R(K[I][J][0])&&(13.cO[I][J]=1h);if("6t"===13.1p.2b||"ay-6t"===13.1p.2b||"au-6t"===13.1p.2b){13.eu[I][J].6t()}}}13.$5g.2B({});1a 13},9h:17(G){1L(1b H=0;H<13.eC.1J;H++){13.el=F.$(13.eC[H]);13.5Q=13.eu[H];13.cN=13.cO[H];13.$5g.9h(G)}}})})(x);(17(F){if(!F){6P"7A 80 7R";1a}if(F.eG){1a}1b E=F.$;F.eG=17(H,I){1b G=13.a8=F.$1o("2N",1g,{2i:"2V","z-1x":hS}).1R("ss");F.$(H).1K("8z",17(){G.3E(1t.5k)});F.$(H).1K("8T",17(){G.3s()});F.$(H).1K("c3",17(N){1b P=20,M=F.$(N).8s(),L=G.1Y(),K=F.$(1u).1Y(),O=F.$(1u).aN();17 J(S,Q,R){1a(R<(S-Q)/2)?R:((R>(S+Q)/2)?(R-Q):(S-Q)/2)}G.1T({1v:O.x+J(K.1m,L.1m+2*P,M.x-O.x)+P,1r:O.y+J(K.1l,L.1l+2*P,M.y-O.y)+P})});13.3Z(I)};F.eG.2e.3Z=17(G){13.a8.87&&13.a8.dH(13.a8.87);13.a8.2C(1t.fb(G))}})(x);(17(F){if(!F){6P"7A 80 7R";1a}if(F.st){1a}1b E=F.$;F.c2=17(J,I,H,G){13.cP=1g;13.7i=F.$1o("8G",1g,{2i:"2V","z-1x":hS,2O:"26",1Z:0.8}).1R(G||"").3E(H||1t.5k);13.i0(J);13.1V(I)};F.c2.2e.1V=17(G){13.7i.1V();13.cP=13.2G.1j(13).3V(F.eH(G,su))};F.c2.2e.2G=17(G){5J(13.cP);13.cP=1g;if(13.7i&&!13.eJ){13.eJ=1o x.5w(13.7i,{3D:F.eH(G,dP),9w:17(){13.7i.6O();5D 13.7i;13.eJ=1g}.1j(13)}).2B({1Z:[13.7i.2Z("1Z"),0]})}};F.c2.2e.i0=17(G){13.7i.87&&13.a8.dH(13.7i.87);13.7i.2C(1t.fb(G))}})(x);(17(F){if(!F){6P"7A 80 7R"}if(F.bj){1a}1b I=F.$,E=1g,M={"3H":1,5e:2,40:3,"17":4,2u:1N},G={"3H":17(P,O,N){if("3H"!=F.2a(O)){if(N||"2u"!=F.2a(O)){1a 1e}1f{if(!/^(1h|1e)$/.3R(O)){1a 1e}1f{O=O.hL()}}}if(P.57("3S")&&!I(P["3S"]).2k(O)){1a 1e}E=O;1a 1h},2u:17(P,O,N){if("2u"!==F.2a(O)){1a 1e}1f{if(P.57("3S")&&!I(P["3S"]).2k(O)){1a 1e}1f{E=""+O;1a 1h}}},40:17(Q,P,O){1b N=1e,S=/%$/,R=(F.2a(P)=="2u"&&S.3R(P));if(O&&!"40"==c8 P){1a 1e}P=3N(P);if(7I(P)){1a 1e}if(7I(Q.5E)){Q.5E=hO.sv}if(7I(Q.eM)){Q.eM=hO.sw}if(Q.57("3S")&&!I(Q["3S"]).2k(P)){1a 1e}if(Q.5E>P||P>Q.eM){1a 1e}E=R?(P+"%"):P;1a 1h},5e:17(Q,O,N){if("2u"===F.2a(O)){4f{O=1u.e6.9U(O)}4o(P){1a 1e}}if(F.2a(O)==="5e"){E=O;1a 1h}1f{1a 1e}},"17":17(P,O,N){if(F.2a(O)==="17"){E=O;1a 1h}1f{1a 1e}}},H=17(S,R,O){1b Q;Q=S.57("4G")?S.4G:[S];if("5e"!=F.2a(Q)){1a 1e}1L(1b P=0,N=Q.1J-1;P<=N;P++){if(G[Q[P].1k](Q[P],R,O)){1a 1h}}1a 1e},K=17(S){1b Q,P,R,N,O;if(S.57("4G")){N=S.4G.1J;1L(Q=0;Q<N;Q++){1L(P=Q+1;P<N;P++){if(M[S.4G[Q]["1k"]]>M[S.4G[P].1k]){O=S.4G[Q];S.4G[Q]=S.4G[P];S.4G[P]=O}}}}1a S},L=17(Q){1b P;P=Q.57("4G")?Q.4G:[Q];if("5e"!=F.2a(P)){1a 1e}1L(1b O=P.1J-1;O>=0;O--){if(!P[O].1k||!M.57(P[O].1k)){1a 1e}if(F.4s(P[O]["3S"])){if("5e"!==F.2a(P[O]["3S"])){1a 1e}1L(1b N=P[O]["3S"].1J-1;N>=0;N--){if(!G[P[O].1k]({1k:P[O].1k},P[O]["3S"][N],1h)){1a 1e}}}}if(Q.57("1S")&&!H(Q,Q["1S"],1h)){1a 1e}1a 1h},J=17(N){13.6l={};13.1p={};13.hP(N)};F.1H(J.2e,{hP:17(P){1b O,N,Q;1L(O in P){if(!P.57(O)){67}N=(O+"").5W().5C();if(!13.6l.57(N)){13.6l[N]=K(P[O]);if(!L(13.6l[N])){6P"sx sB of sz \'"+O+"\' sA in "+P}13.1p[N]=4e}}},2I:17(O,N){O=(O+"").5W().5C();if(F.2a(N)=="2u"){N=N.5W()}if(13.6l.57(O)){E=N;if(H(13.6l[O],N)){13.1p[O]=E}E=1g}},dC:17(N){N=(N+"").5W().5C();if(13.6l.57(N)){1a F.4s(13.1p[N])?13.1p[N]:13.6l[N]["1S"]}},d8:17(O){1L(1b N in O){13.2I(N,O[N])}},jU:17(){1b O=F.1H({},13.1p);1L(1b N in O){if(4e===O[N]&&4e!==13.6l[N]["1S"]){O[N]=13.6l[N]["1S"]}}1a O},fd:17(N){I(N.5b(";")).1D(I(17(O){O=O.5b(":");13.2I(O.83().5W(),O.8t(":"))}).1j(13))},dM:17(N){N=(N+"").5W().5C();1a 13.6l.57(N)},sn:17(N){N=(N+"").5W().5C();1a 13.dM(N)&&F.4s(13.1p[N])},3s:17(N){N=(N+"").5W().5C();if(13.dM(N)){5D 13.1p[N];5D 13.6l[N]}}});F.bj=J})(x);(17(F){if(!F){6P"7A 80 7R";1a}1b E=F.$;F.$bk=17(G){1b I=[],H;1L(H in G){if(!G.57(H)||(H+"").sC(0,2)=="$J"){67}I.3a(G[H])}1a F.$A(I)};F.bt={6D:2,b8:2,7C:2,8U:2,sJ:2,hY:2,sE:2,8z:2,8T:2,c3:2,iE:2,sD:2,7b:2,sK:2,sF:2,sG:2,cs:2,aO:2,cQ:2,bc:2,sH:2,2y:1,sI:1,s5:2,fQ:1,49:1,iQ:1,sk:1,4m:1,9u:1};F.rR={1t:1h,5P:1h,"2K":1h,9Z:1h};F.8F={3x:17(K,J,H){if(F.2a(K)=="5e"){E(K).1D(13.3x.6Y(13,J,H));1a 13}if(!K||!J||F.2a(K)!="2u"||F.2a(J)!="17"){1a 13}if(K=="bL"&&F.1i.2S){J.2D(13);1a 13}H=3L(H||10);if(!J.$59){J.$59=1M.7l(1M.4N()*F.6H())}1b I=13.2c("aP",{});I[K]||(I[K]={});I[K][H]||(I[K][H]={});I[K]["6z"]||(I[K]["6z"]={});if(I[K][H][J.$59]){1a 13}if(I[K]["6z"][J.$59]){13.iU(K,J)}1b G=13,L=17(M){1a J.2D(G,E(M))};if(F.bt[K]&&!I[K]["17"]){if(F.bt[K]==2){L=17(M){M=F.1H(M||1u.e,{$5L:"1z"});1a J.2D(G,E(M))}}I[K]["17"]=17(M){G.2z(K,M)};13[F.dY](F.9v+K,I[K]["17"],1e)}I[K][H][J.$59]=L;I[K]["6z"][J.$59]=H;1a 13},2z:17(H,J){4f{J=F.1H(J||{},{1k:H})}4o(I){}if(!H||F.2a(H)!="2u"){1a 13}1b G=13.2c("aP",{});G[H]||(G[H]={});G[H]["6z"]||(G[H]["6z"]={});F.$bk(G[H]).1D(17(K){if(K!=G[H]["6z"]&&K!=G[H]["17"]){F.$bk(K).1D(17(L){L(13)},13)}},J);1a 13},iU:17(J,I){if(!J||!I||F.2a(J)!="2u"||F.2a(I)!="17"){1a 13}if(!I.$59){I.$59=1M.7l(1M.4N()*F.6H())}1b H=13.2c("aP",{});H[J]||(H[J]={});H[J]["6z"]||(H[J]["6z"]={});4S=H[J]["6z"][I.$59];H[J][4S]||(H[J][4S]={});if(4S>=0&&H[J][4S][I.$59]){5D H[J][4S][I.$59];5D H[J]["6z"][I.$59];if(F.$bk(H[J][4S]).1J==0){5D H[J][4S];if(F.bt[J]&&F.$bk(H[J]).1J==0){1b G=13;13[F.bu](F.9v+J,H[J]["17"],1e)}}}1a 13},rS:17(I){if(!I||F.2a(I)!="2u"){1a 13}1b H=13.2c("aP",{});if(F.bt[I]){1b G=13;13[F.bu](F.9v+I,H[I]["17"],1e)}H[I]={};1a 13},eO:17(I,H){1b G=13.2c("aP",{});1L(t in G){if(H&&t!=H){67}1L(4S in G[t]){if(4S=="6z"||4S=="17"){67}1L(f in G[t][4S]){E(I).3x(t,G[t][4S][f],4S)}}}1a 13},eE:17(J,I){if(1!==J.6N){1a 13}1b H=13.2c("8c");if(!H){1a 13}1L(1b G in H){if(I&&G!=I){67}1L(1b K in H[G]){E(J).3x(G,H[G][K])}}1a 13},2c:F.4r.2c,3o:F.4r.3o}})(x);(17(F){if(!F){6P"7A 80 7R";1a}1b E=F.$;1M.8w=17(H,G){1a 1M.7l(1M.4N()*(G-H+1))+H};1M.rT=17(H,G,I){1a 1M.6p(G,1M.4a(H,I))};F.1H=17(N,M){if(!(N 4E 1u.3B)){N=[N]}if(!(M 4E 1u.3B)){M=[M]}1L(1b K=0,H=N.1J;K<H;K++){if(!F.4s(N[K])){67}1L(1b J=0,L=M.1J;J<L;J++){if(!F.4s(M[J])){67}1L(1b I in(M[J]||{})){4f{N[K][I]=M[J][I]}4o(G){}}}}1a N[0]};F.3X=17(I,H){17 G(){}G.2e=H.2e;I.$5g=H.2e;I.2e=1o G();I.2e.6r=I};F.bZ=17(K){1b I,J,L,H,G={1P:1g,3c:1g};if(K){L=K.5b(",");1L(I=0;I<L.1J;I++){J=L[I].5W();J=J.2J(/\\s+/," ");H=J.5b(" ");if(H.1J>1&&/^[0-9]+(\\.[0-9]+)?(x|w)$/.3R(H[1])){G.3c=J}1f{G.1P=J}}}1a G};F.1H(F.3B,{8w:17(){1a 13[1M.8w(0,13.1J-1)]}});F.1H(F.4r,{av:17(){1b G=13;6K(G.2s){if(G.5f=="rU"||G.5f=="sl"){1a 1h}G=G.2s}1a 1e},8x:17(J,I){J==4e&&(J=1h);I==4e&&(I=1h);1b K=E(13.6i(J));if(K.$5Y==13.$5Y){K.$5Y=1e;F.$6q(K)}1b G=F.$A(K.b4("*"));G.3a(K);1b H=F.$A(13.b4("*"));H.3a(13);G.1D(17(M,L){M.id="";E(H[L]).eO&&E(H[L]).eO(M);E(H[L]).eE&&E(H[L]).eE(M);if(I){E(M).3o("fa",H[L]);E(M).3o("f1",1h);1b N=E(H[L]).2c("f6",[]);N.3a(M)}});1a K},eP:F.4r.4K,4K:17(H,G){if(13.2c("f1")){if(E(13.2c("fa")).av()){1a 13}}13.eP(H,G);E(13.2c("f6",[])).1D(17(I){I.eP(H,G)});1a 13},f5:F.4r.1K,1K:17(H,G){if(13.2c("f1")){if(E(13.2c("fa")).av()){1a 13}}13.f5(H,G);E(13.2c("f6",[])).1D(17(I){I.f5(H,G)});1a 13}})})(x);y.5V||(y.5V={});y.5V.fr=(17(){1b E=["2Y","48"];17 H(I){1a y.$1o("2M",1g,{2O:"3P"}).1R(13.$o["2K"]+"-2M").1R(13.$o["2K"]+"-56-rW").1R(13.$o["2K"]+"-aQ-"+I).3E(13.1s)}17 F(I,J){J.9k();13.2z(I);13["4B"===I?"2Y":"48"].cs()}1b G=17(J,I){y.$6q(13);13.4p={"2K":"","2K-26":"","2K-7d":"",2i:"rX",4D:"1d-5i",rY:"2M"};13.$o=13.4p;y.1H(13.$o,J);13.1s=I;13.48=H.2D(13,"48");13.2Y=H.2D(13,"2Y");13.2Y.1K("6D",17(K){K.1X()}).1K("3m 3Q",F.1j(13,"4B"));13.48.1K("6D",17(K){K.1X()}).1K("3m 3Q",F.1j(13,"5F"));y.$6q(13)};G.2e={9c:17(I){l(I&&[I]||E).1D(17(J){13[J].1R(13.$o["2K-7d"])},13)},96:17(I){l(I&&[I]||E).1D(17(J){13[J].2R(13.$o["2K-7d"])},13)},2G:17(I){l(I&&[I]||E).1D(17(J){13[J].1R(13.$o["2K-26"])},13)},1V:17(I){l(I&&[I]||E).1D(17(J){13[J].2R(13.$o["2K-26"])},13)}};y.1H(G.2e,y.8F);1a G})();y.5V||(y.5V={});y.5V.hK=(17(){1b E=17(G,F){y.$6q(13);13.4p={9i:6a,6x:10,9d:1h,aU:1h,d0:"",hR:""};13.1s=F;13.$o=13.4p;y.1H(13.$o,G);13.6x=0;13.8h=0;13.2j="2B";13.69=1g;13.65=1g;13.g1();13.j1()};E.2e={j1:17(){if(13.$o.aU){13.65=y.$1o("2N",{"2K":"1d-rZ-9t 1d-2G"});13.1s.2C(13.65)}},eY:17(F,G){if(13.$o.aU){13.65.2R("1d-2G").2R(G);13.65.1Y();13.65.29("4c");13.65.1K("4c",l(17(H){13.65.1R("1d-2G")}).1j(13));13.65.1R(F)}},g1:17(){if(13.$o.9d){13.33=y.$1o("2N",{"2K":"1d-33-5X"},{1r:"0",1v:"0",1m:"1N%",2i:"2V"});13.f3=y.$1o("2N",{"2K":"1d-3T-bP"},{1r:"0",1v:"0",1l:"1N%"});13.33.2C(13.f3);13.1s.2C(13.33);13.dr()}},dr:17(F){1b G;if(13.$o.9d){G=F?0:13.8h/(13.$o.9i/1N);13.f3.1n("1m",G+"%")}},2B:17(){1b F,G;if("eZ"!==13.2j){13.2j="eZ";13.eY("1d-2P","1d-2x");if(13.$o.9d){13.69=j2(l(17(){1b I,H;G=y.6H();if(F){H=G-F}1f{H=0}if(H>13.$o.6x*2){H=13.$o.6x*2}F=G;13.6x+=H;13.8h+=H;I=1M.6p(13.$o.6x,13.$o.9i-13.8h);if(13.6x>=I){13.6x-=I;13.$o.9d&&13.dr()}if(13.8h>=13.$o.9i){13.2j="3e";13.6x=0;13.8h=0;dt(13.69);13.69=1g;13.2z("8X")}}).1j(13),10)}1f{13.69=79(l(17(){13.2j="3e";13.6x=0;13.8h=0;5J(13.69);13.69=1g;13.2z("8X")}).1j(13),13.$o.9i)}}},2x:17(){if("eZ"===13.2j){13.2j="gd";13.eY("1d-2x","1d-2P");if(13.$o.9d){dt(13.69)}1f{13.1X()}}},1X:17(){dt(13.69);5J(13.69);13.69=1g;13.8h=0;13.6x=0;13.2j="2B";13.dr(1h)},3s:17(){13.1X();if(13.65){13.65.29("4c");13.$o.aU=1e;13.65.3s();13.65=1g}if(13.33){13.33.3s();13.33=1g}},2G:17(){13.33&&13.33.1R(13.$o.d0)},1V:17(){13.33&&13.33.2R(13.$o.d0)}};y.1H(E.2e,y.8F);1a E})();y.5V||(y.5V={});y.5V.hX=(17(){1b E=17(F,G){1b H;13.pn=F;13.1p={2T:"1r",eU:aM,eS:aM};y.1H(13.1p,G);13.s={2T:l(["1r","2l"]).2k(13.1p.2T)?"1m":"1l",88:l(["1r","2l"]).2k(13.1p.2T)?"1v":"1r",ix:13.1p.2T==="1r"?"2l":"1r",bA:{1r:0,1v:0},iB:0,by:{1m:0,1l:0}};13.2f=0;13.ei=13.pn.1Y();13.5X=1g;13.1y=l([]);13.4h=1g;13.1s=y.$1o("2N",{"2K":"1d-3v-4A-fE 1d-2b-"+13.1p.2T},{"-38-2n":13.1p.eU+"ms",2n:13.1p.eU+"ms"});H=y.$1o("2N",{"2K":"1d-3v-4A-aQ"});13.iN=y.$1o("2N",{},{1m:"1N%",1l:"1N%",3g:"26",2i:"7g"});13.du=y.$1o("2N",{"2K":"1d-3v-4A-33"},{1v:0,36:"7M-3i","-38-2n":13.1p.eS+"ms",2n:13.1p.eS+"ms"});13.1s.2C(H).2C(13.iN.2C(13.du)).3E(13.pn);13.1s.4K(0);13.1s.1n("2O","26")};E.2e={2G:17(){13.5X=79(l(17(){13.1s.4K(0);13.1s.1n("2O","26")}).1j(13),1N)},1V:17(){5J(13.5X);13.1s.4K(1);13.1s.1n("2O","3P")},3a:17(H,G,F){13.1y.3a({1E:H,1x:G,bJ:F});13.du.2C(H)},iy:17(G){1b F;if(13.1p.2T==="1r"){F=13.ei.1l-G.dh.1r}1f{F=G.dh.1r+G.dg.1l}F+=5;1a F},4x:17(F){1b G;1b J=0;1b H={};1b I=13.1y[F];13.2f=F;I.dg=I.bJ.1Y();I.e1=I.1E.1Y();J=(I.1E.4J()[13.s.88]-I.1E.2s.4J()[13.s.88])*(-1);J-=13.4h[13.s.2T];13.1s.1n(13.s.88,I.dh[13.s.88]+I.dg[13.s.2T]/2-I.e1[13.s.2T]/2);13.1s.1n(13.s.2T,I.e1[13.s.2T]);13.1s.1n(13.s.ix,13.iy(I));13.du.1n(13.s.88,J)},6k:17(){13.ei=13.pn.1Y();13.s.bA=13.1y[0].bJ.2s.2s.4J();13.4h={1m:3L(13.1s.2Z("4h-1v-1m"))||0,1l:3L(13.1s.2Z("4h-1r-1m"))||0};13.1y.1D(l(17(H,F){1b G=H.bJ.4J();H.dh={1r:G.1r-13.s.bA.1r,1v:G.1v-13.s.bA.1v};H.dg=H.bJ.1Y()}).1j(13));13.s.iB=13.1s.4J()[13.s.88]-13.s.bA[13.s.88];13.s.by=13.1s.1Y();13.4x(13.2f)}};1a E})();y.1O={};y.1O.3n=(17(){1b E=17(G,F){13.1w=[l(G[0])||1g,l(G[1])||1g];13.1s=$8i((13.1w[1]&&13.1w[1].2s)||(13.1w[0]&&13.1w[1].2s));13.4p={6y:1h,1y:[],3D:dP,2b:"2r",3C:"7n-7m(0.7, 0, 1, 1)",ea:0};13.o=13.4p;y.1H(13.o,F||{});13.3t="b6";13.34=1e;13.9J=1;13.4d={};13.4y={};13.4X={}};E.2e={7Z:17(){l(13.1s).8q;13.1w[0]&&13.1w[0].8q;13.1w[1]&&13.1w[1].8q},1V:17(G,F){G&&G.1n("2O",F?"3P":"26")},s2:y.$F,s3:y.$F,rQ:y.$F,s4:y.$F,s6:y.5w.8p.da,6C:17(){if(13.3t=="b6"){1a}13.1w[0]&&13.1w[0].1T(13.4d.3y);13.1w[1]&&13.1w[1].1T(13.4d.3w);13.7Z()},c4:17(F){1L(1b F=0;F<2;F++){13.1w[F]&&13.iI(13.1w[F]);((F==0)&&13.1w[F])&&13.1w[F];13.1w[F]&&13.1w[F].1T(13.4X)}13.34=1e;13.8S&&13.8S(13)},iI:17(F){F.1T({2n:"2H"})},1X:17(F){1b G;if(13.34){13.ek&&13.ek.1X(1h);if(!13.ek){1L(G=0;G<2;G++){13.1w[G]&&13.1w[G].29("4c");13.c4(G)}}}},2B:17(H){1b G=0,F={2n:"6s "+13.o.3D+"ms "+13.o.3C},I=17(J,K){K.1X();13.1w[J].29(K.1k);13.34=1e;13.c4(J)};H.2B&&H.2B();H.3e&&(13.8S=H.3e);13.34=1h;13.6C();if(13.3t!="b6"){1L(;G<2;G++){if(!13.1w[G]){if(1===G&&!!13.1w[0]&&13.9J!==0){13.1w[0].1K("4c",I.1j(13,0))}67}if(13.9J===G){13.1w[13.9J].1K("4c",I.1j(13,13.9J))}13.1w[G].1T(F).1T(13.4y["el"+(G+1)])}}1f{13.8S&&13.8S();13.34=1e}},2x:17(){}};1a E})();y.1O.9N=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);13.3t="3U";13.4d={3y:{"z-1x":30},3w:{"z-1x":50,1Z:0}};13.4y={3y:{"z-1x":35},3w:{"z-1x":50,1Z:1}};13.4X={"z-1x":"",1Z:1}};y.3X(E,y.1O.3n);1a E})();y.1O.s7=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);13.3t="3U-aR";13.4d={3y:{"z-1x":30,1Z:1,1F:"4k(1)"},3w:{"z-1x":50,1Z:0,1F:"4k(1.5)"}};13.4y={3y:{"z-1x":35,1Z:0,1F:"4k(1.5)"},3w:{"z-1x":50,1Z:1,1F:"4k(1)"}};13.4X={"z-1x":"",1Z:1,1F:""};13.2g=0};y.3X(E,y.1O.3n);1a E})();y.1O.s8=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);13.3t="3U-cw";13.4d={3y:{"z-1x":30,1Z:1,1F:"4k(1)"},3w:{"z-1x":50,1Z:0,1F:"4k(0.5)"}};13.4y={3y:{"z-1x":35,1Z:0,1F:"4k(0.5)"},3w:{"z-1x":50,1Z:1,1F:"4k(1)"}};13.4X={"z-1x":"",1Z:1,1F:""}};y.3X(E,y.1O.3n);1a E})();y.1O.s9=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);13.3t="cX";13.4d={3y:{"z-1x":30,1Z:1},3w:{"z-1x":50,1Z:0}};13.4y={3y:{1Z:0},3w:{1Z:1}};13.4X={"z-1x":"",1Z:1}};y.3X(E,y.1O.3n);1a E})();y.1O.sa=(17(){1b E=17(K,I){y.1O.3n.3r(13,2E);13.3t="1G";1b H=0,M=0,L=0,G=0,J=1N,F=1N;if(l(["1v","2r"]).2k(13.o.2b)){F=0;H=13.o.ea||0;if(13.o.2b=="2r"){J*=(-1);L=1N+H}1f{L=-1N+H}}1f{J=0;M=13.o.ea||0;if(13.o.2b=="2l"){F*=(-1);G=1N+M}1f{G=-1N+M}}if(y.1i.66){13.4d={3y:{1F:"3h("+H+"%, "+M+"%) hu(0.hG)"},3w:{1F:"3h("+L+"%, "+G+"%) hu(0.hG)"}};13.4y={3y:{1F:"3h("+J+"%, "+F+"%)"},3w:{1F:"3h(0%, 0%)"}}}1f{13.4d={3y:{1F:"3h("+H+"%, "+M+"%)"},3w:{1F:"3h("+L+"%, "+G+"%)"}};13.4y={3y:{1F:"3h("+J+"%, "+F+"%)"},3w:{1F:"3h(0%, 0%)"}}}13.4X={1F:""}};y.3X(E,y.1O.3n);1a E})();y.1O.sb=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);y.1H(13.4p,{3C:"7n-7m(0, 0, 1, 1)"});13.o=13.4p;y.1H(13.o,F||{});13.3t="97";13.os="X";13.2L=90;13.3K=13.1w[0].2s.1Y();13.2g=10};y.3X(E,y.1O.3n);y.1H(E.2e,{6C:17(){1b K,F,J,I,G=10,H=13.1w[0].2s.4J();13.1w[1].1V();13.5c=1o 3B(13.2g);13.7s=1o 3B(13.2g);13.5I=1o 3B(13.2g);13.os="X";13.2L=90;13.1s.1n("3g","3P");13.1s.2s.1n("3g","3P");13.3i=y.$1o("2N",{},{1r:"0",1v:"0",1m:13.3K.1m,1l:13.3K.1l,2i:"2V","z-1x":75}).1R("7E");F=13.3K.1m/13.2g;1L(J=0;J<13.2g;++J){I=(J*F+F);if(J<13.2g/2){G+=10}1f{G-=10}K={1m:13.3K.1m,1l:13.3K.1l,"z-1x":G,2i:"2V"};13.5c[J]=y.$1o("2N",{},K);if(y.1i.4U==="38"&&!y.1i.6j){13.5c[J].1n(k,"6c("+((13.3K.1l/2)*(-1))+"px)").1n(a,"50% 50%").1n(d,"2H").1n(h,"8r-3d")}1f{13.5c[J].1n(k,"5B(0, 0, 0)");13.5c[J].1R("9F").1R("7E");13.1s.1R("9F").1R("7E")}13.7s[J]=13.1w[0].6i(1h);13.5I[J]=13.1w[1].6i(1h);l([13.7s,13.5I]).1D(l(17(M,L){l(M[J]).1T({"z-1x":50,2i:"2V",8o:"8R(2p, "+(I+1)+"px, 2p, "+((J*F)-1)+"px)"});M[J].1n(j,"50% 50% "+(13.3K.1l/2*(-1))+"px");if(L){13.5I[J].1n("z-1x",30)}M[J].1R("4n-91")}).1j(13));K={1r:"2p",1v:H.1v-H.1v};l([13.7s,13.5I]).1D(l(17(M,L){K[k]="4q("+(!L?0:13.2L)+"2L)";M[J].1T(K)}).1j(13))}if(y.1i.4U==="38"&&!y.1i.6j){13.3i.1n(d,"9D")}1L(J=0;J<13.2g;++J){13.5c[J].2C(13.7s[J]).2C(13.5I[J]);13.3i.2C(13.5c[J])}13.1w[0].2s.2C(13.3i);13.1w[0].2G();13.1w[1].2G();13.7Z()},d9:17(){1b K,F,J,I,G=10,H=13.1w[0].2s.4J();13.1w[1].1V();13.5c=1o 3B(13.2g);13.7s=1o 3B(13.2g);13.5I=1o 3B(13.2g);13.1s.1n("3g","3P");13.1s.2s.1n("3g","3P");13.3i=y.$1o("2N",{},{1r:"0",1v:"0",1m:13.3K.1m,1l:13.3K.1l,2i:"2V","z-1x":75}).1R("7E");F=13.3K.1m/13.2g;1L(J=0;J<13.2g;++J){I=(J*F+F);if(J<13.2g/2){G+=10}1f{G-=10}13.5c[J]=y.$1o("2N",{},{1m:13.3K.1m,1l:13.3K.1l,"z-1x":G,2i:"2V"});13.5c[J].1n(d,"2H").1n(h,"8r-3d").1n(j,"50% 50% "+(13.3K.1l/2*(-1))+"px");if(!y.1i.66){13.5c[J].1n(k,"6c("+(13.3K.1l/2*(-1))+"px)")}13.7s[J]=13.1w[0].6i(1h);13.5I[J]=13.1w[1].6i(1h);l([13.7s,13.5I]).1D(l(17(M,L){l(M[J]).1T({"z-1x":50,1r:"2p",1v:0,2i:"2V",8o:"8R(2p, "+(I+1)+"px, 2p, "+((J*F)-1)+"px)"});if(L==0){M[J].1n(k,"4q(4W)").1n(j,"50% 50% 9f")}1f{M[J].1n(k,"sd(-50%) 6c("+(13.3K.1l/2*(-1))+"px) 4q("+13.2L+"2L)").1n(j,"50% 50%");13.5I[J].1n("z-1x",30)}M[J].1R("4n-91")}).1j(13))}1L(J=0;J<13.2g;++J){13.5c[J].2C(13.7s[J]).2C(13.5I[J]);13.3i.2C(13.5c[J])}13.1w[0].2s.2C(13.3i);13.1w[0].2G();13.1w[1].2G();13.7Z()},5a:17(){if(13.4g==13.2g){13.1w[0].1V();13.1w[1].1V();13.3i.6O();13.1s.1n("3g","");13.1s.2R("9F").2R("7E");13.1s.2s.1n("3g","26")}},1X:17(){if(!13.34){13.34=1h;13.4g=13.2g;13.5a()}},2B:17(N){N.2B&&N.2B();1b M,H=0,J=l(["1r","1v"]).2k(13.o.2b)?1h:1e,K=J?(13.2g):-1,L=J?0:(13.2g-1),I=13.o.3D/(13.2g*2),F=13.o.3D/13.2g+I,G=F+(I*(13.2g-1));F=F+G/13.2g;13.4g=0;13.34=1e;if(y.1i.4U==="38"&&!y.1i.6j||y.1i.66){13.d9();6K(K!==L){13.5c[L].1K("4c",l(17(O,P){if(P.bf==="1F"){P.1X();13.4g++;13.5c[O].29(P.1k);if(13.4g==13.2g){13.34=1h;13.5a();N.3e&&N.3e(13)}}}).1j(13,L));M={2n:k+" "+F+"ms "+(I*H)+"ms "+13.o.3C};if(y.1i.66){M[k]="4q("+(13.2L*(-1))+"2L)"}1f{M[k]="6c("+(13.3K.1l/2*(-1))+"px) 4q("+(13.2L*(-1))+"2L)"}13.5c[L].1T(M);H+=1;J?(L+=1):(L-=1)}}1f{13.6C();6K(K!==L){M={2n:k+" "+F+"ms "+(I*H)+"ms "+13.o.3C};13.5I[L].1K("4c",l(17(O,P){if(P.bf==="1F"){P.1X();13.4g++;13.5I[O].29(P.1k);if(13.4g==13.2g){13.34=1h;13.5a();N.3e&&N.3e(13)}}}).1j(13,L));l([13.7s,13.5I]).1D(l(17(P,O){M[k]="8v"+13.os+"("+(O?0:(13.2L*(-1)))+"2L)";P[L].1T(M)}).1j(13));H+=1;J?(L+=1):(L-=1)}}}});1a E})();y.1O.se=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);13.4p={3C:"7n-7m(0, 0, 1, 1)"};13.o=13.4p;y.1H(13.o,F||{});13.sf=cR;13.3t="9p";13.2g=5;13.8Q=13.1w[0].1Y();13.sg=13.1w[0].2s.4J();13.34=1e;if(13.o.2b=="2r"||13.o.2b=="2l"){13.d="rb"}1f{13.d="eD"}};y.3X(E,y.1O.3n);y.1H(E.2e,{6C:17(){1b L,H,I,J,M,O,N,G,K=l(["dR","8M"]).2k(y.1i.74),F=(13.d)=="rb"?-7e:7e;13.1w[1].1V();13.9G=y.$1o("2N",{},{1r:"0",1v:"0",1m:"1N%",1l:"1N%",2i:"2V","z-1x":55,}).1R("7E");if(y.1i.38){13.9G.1n(h,"8r-3d").1n(a,"50% 50%")}13.1s.1n("3g","3P");13.1s.2s.1n("3g","3P");13.6v=1o 3B(13.2g);13.5O=1o 3B(13.2g);L=13.8Q.1m/13.2g;if(!K){L=L-(L%1)}1L(H=0;H<13.2g;++H){I=(H*L+L);M=L;if(H==13.2g-1){I=13.8Q.1m;M=I-(L*H)}J={1r:0,1v:0,2i:"2V",8o:"8R(2p, "+(I)+"px, 2p, "+(H*L)+"px)"};if(!K){J.1v=(L*H)+"px";J.1m=M+"px";J.1l="1N%";J.3g="26";5D J.8o}O={1r:0,1v:(L*H*(-1))+"px",1m:13.8Q.1m+"px",1l:13.8Q.1l+"px",2i:"2V",8o:"8R(2p, "+(I)+"px, 2p, "+(H*L)+"px)"};G={};if(K){N=l(13.1w[0].6i(1h));G[j]=(H*L+L/2)+"px 50%"}1f{N=y.$1o("2N").2C(l(13.1w[0].6i(1h)));G[j]="50% 50%"}N.1T(J).1n("z-1x",50).1n("4n-2O","26").1T(G);if(!K){l(N.87).1T(O)}13.6v[H]=N;G={};if(K){13.5O[H]=l(13.1w[1].6i(1h));N=l(13.1w[1].6i(1h));G[j]=(H*L+L/2)+"px 50%"}1f{N=y.$1o("2N").2C(l(13.1w[1].6i(1h)));G[j]="50% 50%"}N.1T(J).1n("z-1x",30).1n("4n-2O","26").1T(G);if(!K){l(N.87).1T(O)}13.5O[H]=N;if("ee"===y.1i.85){13.6v[H].1n("1Z",1);13.6v[H].1n(k,"6c(9E) 4q(4W) 52(4W)");13.5O[H].1n("1Z",0);13.5O[H].1n(k,"6c(9E) 4q(4W) 52("+F+"2L)")}1f{13.6v[H].1n(k,"4q(4W) 52(4W)");13.5O[H].1n(k,"4q(4W) 52("+F+"2L)")}13.9G.2C(13.6v[H]);13.9G.2C(13.5O[H])}13.1w[1].2s.2C(13.9G);13.1w[0].2G();13.1w[1].2G();13.7Z()},5a:17(F){if(13.4g==13.2g){13.9G.6O();13.1w[0].1V();13.1w[1].1V();13.34=1e;13.1s.1n("3g","");13.1s.2s.1n("3g","26")}},1X:17(){if(13.34){13.4g=13.2g;13.5a()}},2B:17(N){N.2B&&N.2B();1b H=13.o.3D/(13.2g*2),F=13.o.3D/13.2g+H,G=F+(H*(13.2g-1)),J,I,K,M,L;F=F+G/13.2g;13.6C();13.34=1h;13.4g=0;if(13.d=="rb"){J=7e;I=0}1f{J=(-7e);I=0}1L(L=0;L<13.2g;++L){(13.d=="eD")?(K=13.2g-L-1):(K=L);if("ee"===y.1i.85){13.6v[L].1n("1Z",0);13.6v[L].1n(k,"6c(9E) 4q(4W) 52("+J+"2L)");13.5O[L].1n("1Z",1);13.5O[L].1n(k,"6c(9E) 4q(4W) 52("+I+"2L)")}1f{13.6v[L].1n(k,"4q(4W) 52("+J+"2L)");13.5O[L].1n(k,"4q(4W) 52("+I+"2L)")}M={"z-1x":30,2n:"6s "+F+"ms "+(H*L)+"ms "+13.o.3C};M[y.1i.3M+"2n"]="6s "+F+"ms "+(H*L)+"ms "+13.o.3C;13.6v[K].1T(M);M["z-1x"]=50;13.5O[K].1T(M);13.6E=l(17(O,P){P.1X();13.4g++;13.6v[O].29(P.1k);13.5O[O].29(P.1k);if(13.4g==13.2g){13.34=1e;13.5a();N.3e&&N.3e(13)}}).1j(13,L);13.6v[L].1K("4c",13.6E);13.5O[L].1K("4c",13.6E)}}});1a E})();y.1O.si=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);y.1H(13.4p,{3C:"7n-7m(0, 0, 1, 1)"});13.o=13.4p;y.1H(13.o,F||{});13.3t="6e";13.X=5;13.Y=4;13.sj=13.1s.4J();13.34=1e};y.3X(E,y.1O.3n);y.1H(E.2e,{6C:17(){1b J=$8i(13.1w[0]).1Y(),I,G,M,K,H,L,F=",";13.6e=y.$1o("2N",{},{1r:"0",1v:"0",1m:J.1m,1l:J.1l,2i:"2V","z-1x":55});13.8K=1o 3B(13.X);13.8P=1o 3B(13.X);1L(I=0;I<13.X;++I){13.8K[I]=1o 3B(13.Y);13.8P[I]=1o 3B(13.Y)}G=J.1m/13.X;M=J.1l/13.Y;1L(I=0,K=0;K<13.X,I<J.1m;I+=G,++K){1L(H=0,L=0;L<13.Y,H<J.1l;H+=M,++L){13.8P[K][L]={gS:H,gK:I+G,gA:H+M,h2:I};13.8K[K][L]=$8i(13.1w[0].6i(1h));13.8K[K][L].1T({2i:"2V",8o:"8R("+H+"px"+F+" "+(I+G)+"px"+F+" "+(H+M)+"px"+F+" "+I+"px)",3g:"26",1Z:1});13.6e.2C(13.8K[K][L])}}13.1w[0].2s.2C(13.6e);13.6e.1n("z-1x",1N).1V();13.1w[0].2G();13.1w[1].1V();13.7Z()},5a:17(){if(13.4g+1==(13.X+13.Y-1)){13.6e.3s();13.1w[0].1V();13.1w[1].1V()}},1X:17(){if(!13.34){13.4g=13.X+13.Y-1}if(13.6e){13.6e.6O();13.6e=1g}},2B:17(W){W.2B&&W.2B();W.3e&&(13.8S=W.3e);1b L=13.o.3D/(13.X+13.Y-1),I,T=0,R=0,S=-1,Q=0,J=0,U,O,M,H,N,P,G,K,F,V;13.4g=0;13.6C();13.34=1e;1L(U=0;U<13.X+13.Y-1;++U){if(U>13.X-1||U>13.Y-1){T++}if(S<13.X-1){S++}if(Q<=13.Y-1){Q++}if(U>13.Y){R++}1L(O=S,M=R;O>=T,M<Q;--O,++M){I={1Z:0,8o:"8R("+(13.8P[O][M].gS+15)+"px, "+(13.8P[O][M].gK-15)+"px, "+(13.8P[O][M].gA-15)+"px, "+(13.8P[O][M].h2+15)+"px)",2n:"6s "+L+"ms "+(U*L)+"ms "+13.o.3C};I[y.1i.3M+"2n"]="6s "+L+"ms "+(U*L)+"ms "+13.o.3C;13.8K[O][M].1T(I);13.6E=l(17(Z,Y,X,aa){aa.1X();13.8K[Z][Y].29(aa.1k);13.4g=X;if(13.4g+1==(13.X+13.Y-1)){13.34=1h;13.5a();W.3e&&W.3e(13)}}).1j(13,O,M,U);13.8K[O][M].1K("4c",13.6E)}}}});1a E})();y.1O.r8=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);y.1H(13.4p,{3C:"7n-7m(0, 0, 1, 1)"});13.o=13.4p;y.1H(13.o,F||{});13.3t="9n";13.2L=90;13.3K=13.1w[0].2s.1Y();13.2T=l(["1r","2l"]).2k(13.o.2b)?"1l":"1m";if(l(["1r","2l"]).2k(13.o.2b)){13.os="X"}1f{13.os="Y"}};y.3X(E,y.1O.3n);y.1H(E.2e,{6C:17(){1b F={1r:"0",1v:"0",1m:13.3K.1m,1l:13.3K.1l,2i:"2V"};13.1w[1].1V();if(l(["2r","2l"]).2k(13.o.2b)){13.2L*=(-1)}if(y.1i.4U==="38"&&!y.1i.6j){13.1s.1n(k,"6c("+((13.3K["X"===13.os?"1l":"1m"]/2)*(-1))+"px)").1n(d,"2H").1n(h,"8r-3d");13.1s.2s.1n(d,"9D")}1f{13.1s.1n(k,"5B(0, 0, 0)").1n(h,"8r-3d")}13.1s.1n("3g","3P").1n(a,"50% 50%");13.1s.2s.1n("3g","3P");l(13.1w).1D(l(17(G){G.1n("z-1x",50).1n(j,"50% 50% "+(13.3K["Y"===13.os?"1m":"1l"]/2*(-1))+"px");G.1R("4n-91")}).1j(13));13.1w[0].1n(k,"8v"+13.os+"(4W)");13.1w[1].1n(k,"8v"+13.os+"("+13.2L+"2L)");13.7Z()},d9:17(){1b G=l(["1r","2l"]).2k(13.o.2b)?"1l":"1m",F=50;13.1w[1].1V();13.1s.2s.1R("7E");13.1s.1n(d,"2H").1n(h,"8r-3d").1n(j,"50% 50% "+(13.3K[G]/2*(-1))+"px");if(!y.1i.66){13.1s.1n(k,"6c("+(13.3K[G]/2*(-1))+"px)")}if(l(["1v","1r"]).2k(13.o.2b)){F*=(-1);13.2L*=(-1)}l(13.1w).1D(l(17(I,H){if(H==0){I.1n(k,"8v"+13.os+"(4W)").1n(j,"50% 50% 9f")}1f{I.1n(k,"3h"+("Y"===13.os?"X":"Y")+"("+F+"%) 6c("+(13.3K[G]/2*(-1))+"px) 8v"+13.os+"("+13.2L+"2L)").1n(j,"50% 50%")}I.1R("4n-91")}).1j(13));13.7Z()},5a:17(){13.gW();13.1s.2s.1n("3g","26");13.1s.1n(a,"")},gW:17(){if(y.1i.4U==="38"&&!y.1i.6j||y.1i.66){13.1s.2s.2R("7E");13.1s.1n(d,"").1n(j,"").1n(k,"").1n("2n","").1n(h,"");l(13.1w).1D(l(17(F){F.1n(k,"").1n(j,"").2R("4n-91")}).1j(13))}1f{l(13.1w).1D(l(17(F){F.1T({"z-1x":"",2n:""});F.1n(k,"").1n(j,"");F.2R("4n-91")}).1j(13));13.1s.1n(k,"");if(y.1i.4U==="38"&&!y.1i.6j){13.1s.1n(d,"").1n(h,"");13.1s.2s.1n(d,"").1n(k,"")}1f{13.1s.1n("1F-2F","")}}},1X:17(){if(!13.34){13.34=1h;13.1w[1].29("4c");13.5a()}},2B:17(H){H.2B&&H.2B();1b G=3L(13.o.3D),F;13.34=1e;if(y.1i.4U==="38"&&!y.1i.6j||y.1i.66){if(l(["2l","1r"]).2k(13.o.2b)){13.2L*=(-1)}13.d9();13.1s.1K("4c",l(17(I){if(I.bf==="1F"){I.1X();13.34=1h;13.1s.29(I.1k);13.5a();H.3e&&H.3e(13)}}).1j(13));13.1s.1n("2n",k+" "+G+"ms "+13.o.3C);if(y.1i.66){13.1s.1n(k,"8v"+13.os+"("+(13.2L*(-1))+"2L)")}1f{13.1s.1n(k,"6c("+(13.3K[13.2T]/2*(-1))+"px) 8v"+13.os+"("+(13.2L*(-1))+"2L)")}}1f{13.6C();13.1w[1].1K("4c",l(17(I){if(I.bf==="1F"){I.1X();13.34=1h;13.1w[1].29(I.1k);13.5a();H.3e&&H.3e(13)}}).1j(13));F={2n:k+" "+G+"ms "+13.o.3C};l([13.1w[0],13.1w[1]]).1D(l(17(J,I){F[k]="8v"+13.os+"("+(!I?(13.2L*(-1)):0)+"2L)";J.1T(F)}).1j(13))}}});1a E})();y.1O.qP=(17(){1b E=17(G,F){y.1O.3n.3r(13,2E);y.1H(13.4p,{3C:"7n-7m(0, 0, 1, 1)"});13.o=13.4p;y.1H(13.o,F||{});13.3t="aY";13.2g=5};y.3X(E,y.1O.3n);y.1H(E.2e,{6C:17(){1b J=13.1w[0].2s.1Y(),I=13.1w[0].2s.4J(),K,G,H,F=",";13.3i=y.$1o("2N",{},{1r:"0",1v:"0",2i:"2V",1m:J.1m,1l:J.1l,"z-1x":pJ});K=J.1l/(13.2g*2+1);G=J.1m/(13.2g*2+1);13.8x=1o 3B(13.2g);1L(1b H=0;H<13.2g;++H){13.8x[H]=13.1w[1].6i(1h);$8i(13.8x[H]).1T({2i:"2V",8o:"8R("+(K*H)+"px"+F+" "+(J.1m-(G*H))+"px"+F+" "+(J.1l-(K*H))+"px"+F+" "+(K*H)+"px)","z-1x":(H+55),1Z:0}).1V()}1L(H=0;H<13.2g;++H){13.3i.2C(13.8x[H])}13.1w[0].2s.2C(13.3i);13.1w[1].2G();13.7Z()},5a:17(){if(13.2g==13.4g){13.1w[0].1V();13.1w[1].1V();13.3i.1n("z-1x",1);13.3i.6O()}},1X:17(){if(!13.34){13.4g=13.2g;13.34=1h;13.5a()}},2B:17(I){I.2B&&I.2B();I.3e&&(13.8S=I.3e);13.bW=13.o.3D/(13.2g*2);1b H=13.o.3D/13.2g+13.bW,J=H+(13.bW*(13.2g-1)),G,F;13.ec=H+J/13.2g;13.4g=0;13.qO=1o 3B(13.2g);13.6C();13.34=1e;1L(F=13.2g-1;F>=0;--F){G={1Z:1,2n:"6s "+13.ec+"ms "+(13.bW*(13.2g-F))+"ms "+13.o.3C};G[y.1i.3M+"2n"]="6s "+13.ec+"ms "+(13.bW*(13.2g-F))+"ms "+13.o.3C;13.8x[F].1T(G);13.6E=l(17(K,L){L.1X();13.4g++;13.8x[K].29(L.1k);if(13.2g==13.4g){13.34=1h;13.5a();I.3e&&I.3e(13)}}).1j(13,F);13.8x[F].1K("4c",13.6E)}}});1a E})();y.1O.pc=(17(){1b E=17(K,I){y.1O.3n.3r(13,2E);13.3t="9q";1b H=0,G=0,L=0,J=0,F=0,M=0;if(y.$A(["1v","2r"]).2k(13.o.2b)){M="-7e";L=(13.o.2b=="1v")?"-7e":"7e";J=(13.o.2b=="1v")?"-hs":"0"}1f{F="-7e";H=(13.o.2b=="1r")?"7e":"-7e";G=(13.o.2b=="1r")?"0":"-hs"}13.1s.1n(k,"5B(0,0,0)");13.1s.1T({3g:"3P","7o-4R":"50% 50%"});if(y.1i.4U==="38"&&y.1i.6j){13.1s.1R("9F")}13.1s.2s.1n("3g","3P");13.4d={3y:{"z-1x":50,1F:"4q(4W) 52(4W)","4n-2O":"26"},3w:{"z-1x":30,1F:"4q("+F+"2L) 52("+M+"2L)","4n-2O":"26"}};13.4y={3y:{"z-1x":30,1F:"4q("+H+"2L) 52("+L+"2L)","4n-2O":"26"},3w:{"z-1x":50,1F:"4q("+G+"2L) 52("+J+"2L)","4n-2O":"26"}};13.4X={1F:"","z-1x":"","4n-2O":""};13.4d.3y[y.1i.3M+"1F"]="4q(4W) 52(4W)";13.4d.3y[y.1i.3M+"4n-2O"]="26";13.4d.3w[y.1i.3M+"1F"]="4q("+F+"2L) 52("+M+"2L)";13.4d.3w[y.1i.3M+"4n-2O"]="26";13.4y.3y[y.1i.3M+"1F"]="4q("+H+"2L) 52("+L+"2L)";13.4y.3w[y.1i.3M+"1F"]="4q("+G+"2L) 52("+J+"2L)";13.4X[y.1i.3M+"1F"]="";13.4X[y.1i.3M+"4n-2O"]=""};y.3X(E,y.1O.3n);y.1H(E.2e,{c4:17(F){13.1s.1n(k,"");13.1s.1T({"7o-4R":""});13.1s.2R("9F");13.1s.2s.1n("3g","26");E.$5g.c4.2D(13,F)}});1a E})();y.1O.pe=(17(){1b E=17(H,G){y.1O.3n.3r(13,2E);13.3t="1G-in";1b F=1N,I=1N;if(y.$A(["1v","2r"]).2k(13.o.2b)){I=0;if(13.o.2b=="1v"){F*=(-1)}}1f{F=0;if(13.o.2b=="1r"){I*=(-1)}}13.4d={3y:{1F:"3h(0%, 0%)","z-1x":30},3w:{1F:"3h("+F+"%, "+I+"%)","z-1x":50}};13.4y={3y:{1F:"3h(0%, 0%)","z-1x":35},3w:{1F:"3h(0%, 0%)","z-1x":50}};13.4X={1F:"","z-1x":""};13.4d.3y[y.1i.3M+"1F"]="3h(0%, 0%)";13.4d.3w[y.1i.3M+"1F"]="3h("+F+"%, "+I+"%)";13.4y.3y[y.1i.3M+"1F"]="3h(0%, 0%)";13.4y.3w[y.1i.3M+"1F"]="3h(0%, 0%)";13.4X[y.1i.3M+"1F"]=""};y.3X(E,y.1O.3n);1a E})();y.1O.pf=(17(){1b E=17(H,G){y.1O.3n.3r(13,2E);13.3t="1G-2W";1b F=1N,J=1N,I;13.9J=0;if(y.$A(["1v","2r"]).2k(13.o.2b)){J=0;if(13.o.2b=="2r"){F*=(-1)}}1f{F=0;if(13.o.2b=="2l"){J*=(-1)}}13.4d={3y:{1F:"3h(0%, 0%)","z-1x":50},3w:{1F:"3h(0%, 0%)","z-1x":30}};13.4y={3y:{1F:"3h("+F+"%, "+J+"%)","z-1x":50},3w:{1F:"3h(0%, 0%)","z-1x":35}};13.4X={1F:"","z-1x":""};I=y.1i.3M+"1F";13.4d.3y[I]="3h(0%, 0%)";13.4d.3w[I]="3h(0%, 0%)";13.4y.3y[I]="3h("+F+"%, "+J+"%)";13.4y.3w[I]="3h(0%, 0%)";13.4X[I]=""};y.3X(E,y.1O.3n);1a E})();y.1O.pg=(17(){1b E=17(H,G){y.1O.3n.3r(13,2E);13.3t="1G-aO";1b F=7X,I=7X;if(y.$A(["1v","2r"]).2k(13.o.2b)){I=0;if(13.o.2b=="1v"){F*=(-1)}}1f{F=0;if(13.o.2b=="1r"){I*=(-1)}}13.4d={3y:{1F:"3h(0%, 0%)"},3w:{1F:"3h("+F+"%, "+I+"%)"}};13.4y={3y:{1F:"3h("+F+"%, "+I+"%)"},3w:{1F:"3h(0%, 0%)"}};13.4X={1F:""};13.4d.3y[y.1i.3M+"1F"]="3h(0%, 0%)";13.4d.3w[y.1i.3M+"1F"]="3h("+F+"%, "+I+"%)";13.4y.3y[y.1i.3M+"1F"]="3h("+F+"%, "+I+"%)";13.4y.3w[y.1i.3M+"1F"]="3h(0%, 0%)";13.4X[y.1i.3M+"1F"]=""};y.3X(E,y.1O.3n);1a E})();y.1O.3k={};y.1O.3k.3n=(17(){1b E=17(G,H,F){13.3t="b6";13.1k=H;13.7w="2B";13.el=l(G);13.1s=l(13.el.2s);13.4p={ph:6a,e5:0,pi:"51",pj:1e,pk:"8E",pl:6a,pm:0,po:"51",pp:1e,pa:"8E",9a:1g};13.o=13.4p;y.1H(13.o,F||{})};y.1H(E.2e,{pq:17(G){1b F={x:0,y:0};(G.2Z(k)||"").2J(/fj\\(([^\\)]+)\\)/,17(J,I){1b H=I.5b(",");F.x+=3L(H[4],10);F.y+=3L(H[5])});1a F},9R:17(){13.1s.8q;13.el.8q},ps:17(F){13.el.2G();13.7w="3e"},pt:17(F){13.el.1V();13.7w="3e"},2B:17(F){13["pu"+13.1k](F)},1X:17(){}});1a E})();y.1O.3k.4H=(17(){1b E=17(G,H,F){y.1O.3k.3n.3r(13,2E);13.3t="9M";13.2T=1g;13.b0=13.el.4J();13.f4=13.el.1Y();13.aZ=13.1s.4J();13.by=13.1s.1Y();13.8f={};13.os={9M:{x:0,y:0},az:{x:0,y:0}};13.aV=1g;13.d7=1g};y.3X(E,y.1O.3k.3n);y.1H(E.2e,{hk:17(){1b F;if(13.o[13.1k+"9N"]){F=13.o.9a||13.el.2Z("1Z")||1;if("in"===13.1k){13.aV=0;13.d7=F}1f{13.aV=F;13.d7=0}}},pv:17(F){1b I=13.o[13.1k+"hg"],G=l(["1r","2l"]).2k(F)?"1l":"1m",H=l(["1r","2l"]).2k(F)?"1r":"1v";if(!F){I=0}if("8E"===I){if(l(["1r","1v"]).2k(F)){I=13.b0[H]-13.aZ[H]+13.f4[G]}1f{I=13.by[G]-(13.b0[H]-13.aZ[H])}}1a I},pw:17(G){1b F=G;if("2l"===G){G="1r"}if("2r"===G){G="1v"}if("1r"===G){if(1g!==13.el.2Z("2l")){G="2l"}}1f{if(1g!==13.el.2Z("2r")){G="2r"}}13.8f[F]={};13.8f[F].2T=G;13.8f[F].a5=13.el.2Z("7x-"+G);if(13.8f[F].a5){13.8f[F].a5=3L(13.8f[F].a5)}1f{13.8f[F].a5=0}},f9:17(F){1b I=13.o[13.1k+"hg"],H=l(["1v","2r"]).2k(F)?"1v":"1r",G="1v"===H?"1m":"1l";if(!F){I=0}if("8E"===I){if(l(["1r","1v"]).2k(F)){I=13.b0[H]-13.aZ[H]+13.f4[G]}1f{I=13.by[G]-(13.b0[H]-13.aZ[H])}}1a I},hl:17(){1b G=l(["1v","2r"]).2k(13.2T)?"1v":"1r",F;if("in"===13.1k){13.2T.1D(l(17(H){1b I=l(["1v","2r"]).2k(H)?"x":"y";13.os.9M[I]=13.f9(H);if("1r"===H||"1v"===H){13.os.9M[I]*=(-1)}}).1j(13))}1f{13.2T.1D(l(17(H){1b I=l(["1v","2r"]).2k(H)?"x":"y";13.os.az[I]=13.f9(H);if("1r"===H||"1v"===H){13.os.az[I]*=(-1)}}).1j(13))}},iV:17(F){F.2B(13.1k);if(13.2T){13.2T=l(13.2T.5b(" "))}13.hk();if(1g!==13.aV){13.el.4K(13.aV)}13.2T&&13.hl();13.el.1T("2n","2H");13.2T&&13.el.1n(k,"5B("+13.os.9M.x+"px, "+13.os.9M.y+"px, 0)");13.9R();13.el.1K("4c",l(17(G,H){if(H.2Q==13.el){H.1X();13.el.29(H.1k);13.el.1n("2n","");13.el.1n(k,"");if(!13.o.9a&&13.o[13.1k+"9N"]){13.el.1n("1Z","")}1f{13.el.4K(13.o.9a)}13.7w="3e";G(13.1k)}}).1j(13,F.3e))},2B:17(F){1b H,G,I=13.o[13.1k+"9N"];13.iV(F);H="";G=" "+13.o[13.1k+"py"]+"ms "+13.o[13.1k+"pz"]+" "+13.o[13.1k+"oB"]+"ms";13.2T&&(H=k+G);if(I){if(13.2T){H+=", "}H+=("1Z"+G)}13.el.1n("2n",H);13.2T&&13.el.1n(k,"5B("+13.os.az.x+"px, "+13.os.az.y+"px, 0)");I&&13.el.1n("1Z",13.d7);13.7w="3T"},1X:17(){if("3T"===13.7w){13.el.29("4c");13.el.1n("2n","").1n(k,"");if(13.o[13.1k+"9N"]){if(!13.o.9a){13.el.1T({1Z:"",4T:""})}1f{13.el.4K(13.o.9a)}}13.7w="3e"}}});1a E})();y.1O.3k.9N=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="3U";13.2T=1g};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.ev=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="1v";13.2T="1v"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.ew=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="1r";13.2T="1r"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.ex=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="2r";13.2T="2r"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.ey=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="2l";13.2T="2l"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.pD=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="pE";13.2T="1r 1v"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.pF=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="pG";13.2T="1r 2r"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.pr=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="p8";13.2T="2l 1v"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.3k.oS=(17(){1b E=17(G,H,F){y.1O.3k.4H.3r(13,2E);13.3t="p7";13.2T="2l 2r"};y.3X(E,y.1O.3k.4H);1a E})();y.1O.k6=(17(){17 F(H){1b G={x:0,y:0};(H.2Z(k)||"").2J(/fj\\(([^\\)]+)\\)/,17(K,J){1b I=J.5b(",");G.x=I[0];G.y=I[3]});1a G}1b E=17(H,I,G){13.1w=l([l(H),l(I)]);13.1s=l(H||I).2s;13.1p={3b:50,2b:"4N",2J:1e,2A:1e,eK:oD,e7:dm,kz:"51"};13.o=13.1p;y.1H(13.o,G);13.7P=1e;13.bh=1g;13.8y=1e;13.bd=0;if(13.o.2J){13.bd++;13.kp()}if(13.o.2A){13.bd++;13.dU=["c","eD","oE","br","bl"][1M.8w(0,4)];13.kq();13.kr()}};y.1H(E.2e,{9R:17(){13.1w[0]&&13.1w[0].8q;13.1w[1]&&13.1w[1].8q},kq:17(){1b G;if("4N"!==13.o.2b){G=13.o.2b.5b("-");13.bh="in"===G[1]?1:0;G.83();G.83();13.dU=G.8t("-")}1f{13.bh=1M.8w(0,1);13.dU=["1r-1v","1r-2r","2l-1v","2l-2r","7N"][1M.8w(0,4)]}},kr:17(){13.9C=13.ks();13.1w[1].1T({1F:"4k("+13.9C.9Q.4k+")","1F-4R":13.9C.9Q.4R});13.9R()},em:17(){if(13.o.2A){13.8y=1e;13.kv();13.1w[1].1n("1F","")}if(13.o.2J){13.dK();if(13.1w[1]){if(!13.o.2A){13.1w[1].1n("2n","")}13.1w[1].4K(1)}}},ks:17(){1b G="",H=1M.8w(0,1);6M(13.dU){1U"7N":G="50%";1W;1U"1r-1v":G="1r 1v";1W;1U"1r-2r":G="1r 2r";1W;1U"2l-2r":G="2l 2r";1W;1U"2l-1v":G="2l 1v";1W}1a{9Q:{4k:13.bh?1:1.2,4R:G},b9:{4k:13.bh?1.2:1,4R:G}}},kv:17(){1b G={2n:k+5r.5S(32)+"fy"};G[y.1i.3M+"2n"]=k+5r.5S(32)+"fy";l(13.1w[1]).1T(G)},kp:17(){if(13.1w[0]){13.1w[0].4K(1)}13.1w[1].4K(0);if(13.1w[0]){13.1w[0].1T({2i:"2V",1v:0,2l:0,1r:0,2r:0,7x:"2p"})}if(!13.1w[1].2s){13.1s.dv(13.1w[1])}13.9R()},dK:17(){if(!13.1w[0]){1a}if(13.1w[0].2s){13.1w[0].3s()}13.1w[0].4K(1);13.1w[0].1T({2n:"",2i:"",1v:"",2l:"",1r:"",2r:"",7x:""})},2B:17(H){1b G="";1b I="";if(13.kw){1a}13.kw=1h;13.7P=1h;if(H===4e){H=1h}13.1w[1].29("4c");13.1w[1].1K("4c",l(17(J){if(13.1w[1]==J.2Q){13.bd--;if("1Z"===J.bf){13.dK()}if(0===13.bd){13.1w[1].29(J.1k);13.7P=1e;13.1w[1].1n("2n","")}}}).1j(13));if(13.o.2J){if(13.1w[0]){13.1w[0].1T({2n:"1Z"+5r.5S(32)+13.o.eK+"ms",1Z:0})}G+=("1Z"+5r.5S(32)+13.o.eK+"ms");if(13.o.2A){G+=", "}}if(13.o.2A){I+=(k+5r.5S(32)+(13.o.e7-13.o.3b)+"ms"+5r.5S(32)+13.o.kz+5r.5S(32)+13.o.3b+"ms")}13.1w[1].1n("2n",G+I);13.9R();if(13.o.2J){13.1w[1].1n("1Z",1)}if(13.o.2A){if(H){13.1w[1].1T({1F:"4k("+13.9C.b9.4k+")","1F-4R":13.9C.b9.4R})}1f{13.8y=1h}}},2P:17(){if(13.o.2A&&13.7P&&13.8y){13.8y=1e;13.1w[1].1T({1F:"4k("+13.9C.b9.4k+")","1F-4R":13.9C.b9.4R})}},2x:17(){if(13.o.2A&&13.7P&&!13.8y){13.8y=1h;13.1w[1].1n("1F","6c(0) 4k("+F(13.1w[1]).x+")")}},1X:17(){if(13.7P){if(13.o.2J){if(13.kW){13.kW.1X()}13.dK()}if(13.o.2A){13.8y=1e;if(13.kG){13.kG.1X()}}13.1w[1].29("4c");13.1w[1].1n("2n","");13.7P=1e}}});1a E})();(17(F){if(!F){6P"7A 80 7R";1a}1b E=F.$;x.9H=1o F.4V({1c:1g,2S:1e,1p:{5G:F.$F,8b:F.$F,5m:F.$F,6b:F.$F},2w:1g,7h:1g,76:{5G:17(G){if(G){E(G).1X()}13.72();if(13.2S){1a}13.2S=1h;13.71();13.1p.5G.1j(1g,13).3V(1);13.1p.6b.1j(1g,13).3V(1)},8b:17(G){if(G){E(G).1X()}13.72();13.2S=1e;13.71();13.1p.8b.1j(1g,13).3V(1);13.1p.6b.1j(1g,13).3V(1)},5m:17(G){if(G){E(G).1X()}13.72();13.2S=1e;13.71();13.1p.5m.1j(1g,13).3V(1);13.1p.6b.1j(1g,13).3V(1)}},a0:17(){E(["2y","9u","4m"]).1D(17(G){13.1c.1K(G,13.76["on"+G].6Y(13).eN(1))},13)},72:17(){if(13.7h){4f{5J(13.7h)}4o(G){}13.7h=1g}E(["2y","9u","4m"]).1D(17(H){13.1c.29(H)},13)},71:17(){13.1Y();if(13.1c.2c("1o")){1b G=13.1c.2s;13.1c.3s().3b("1o").1T({2i:"l3",1r:"2p"});G.6O()}},4F:17(H,G){13.1p=F.1H(13.1p,G);if("2u"===F.2a(H)||"5e"===F.2a(H)){13.1c=F.$1o("1c",{},{"4a-1m":"2H","4a-1l":"2H"}).3E(F.$1o("2N").1R("4u-bw-1c").1T({2i:"2V",1r:-cR,1m:10,1l:10,3g:"26"}).3E(1t.5k)).3o("1o",1h)}1f{13.1c=E(H)}1b I=17(){if(13.cq()){13.76.5G.2D(13)}1f{13.76.5m.2D(13)}I=1g}.1j(13);13.a0();if(!H.1P){if("5e"===F.2a(H)){13.1c.1P=H[0];13.1c.3p("3c",H[1])}1f{13.1c.1P=H}}1f{13.1c.1P=H.1P}13.1c&&13.1c.9e&&I&&(13.7h=I.3V(1N))},c6:17(){13.72();13.71();13.2S=1e;1a 13},cq:17(){1b G=13.1c;1a(G.a3)?(G.a3>0):(G.9g)?("9e"==G.9g):G.1m>0},1Y:17(){1a 13.2w||(13.2w={1m:13.1c.a3||13.1c.1m,1l:13.1c.l5||13.1c.1l})}})})(x);(17(E){E.oJ=17(M,H){1b G=0,J=[],L=13,K,I,F;17 O(P){1a 17(Q){J.3a(Q.c6());(H[P]||E.$F).2D(L,Q,Q.jv);G--;N()}}17 N(){if(!M.1J){}1f{if(G<(H.oK||3)){K=M.83();I=1o E.9H(K.1c,{5G:O("5G"),5m:O("5m"),8b:O("8b"),6b:O("6b")});I.jv=K;G++}}}13.3a=17(Q,P){if(!P){P=Q;Q=1e}if(E.2a(P.1c)=="2u"||P.1c.5f.64()=="1c"){M[Q?"oL":"3a"](P);H.aT||N()}1a 13};13.9u=17(){I.c6()};13.2y=N;H.aT||M.1J&&N()}})(x);1b o={1m:{4G:[{1k:"40",5E:1},{1k:"2u","3S":["2p"]}],"1S":"2p"},1l:{4G:[{1k:"40",5E:1},{1k:"2u","3S":["2p","dp"]}],"1S":"2p"},"5N-1m":{1k:"40",5E:1,"1S":6a},"5N-1l":{4G:[{1k:"40",5E:0},{1k:"2u","3S":["2p"]}],"1S":"2p"},4D:{1k:"2u","3S":["5i","4O"],"1S":"5i"},6y:{1k:"3H","1S":1h},1q:{4G:[{1k:"2u","3S":["1v","2r","1r","2l","2H"]},{1k:"3H","3S":[1e]}],"1S":"2H"},"1q-2F":{1k:"2u","3S":["3v","5s"],"1S":"3v"},"1q-2w":{1k:"40",5E:1,"1S":70},"1q-8V":{1k:"3H","1S":1h},"3v-4A":{4G:[{1k:"2u","3S":["1r","2l","2H"]},{1k:"3H","3S":[1e]}],"1S":"1r"},"1q-8Y":{1k:"3H","1S":1e},4j:{1k:"3H","1S":1h},56:{1k:"3H","1S":1h},2m:{1k:"2u","3S":["4N","1G","3U","3U-aR","3U-cw","cX","9n","97","1G-in","1G-2W","9q","9p","1G-aO","aY","6e"],"1S":"1G"},"2m-5z":{1k:"40",5E:1,"1S":gs},"2m-7U":{1k:"2u","1S":"51"},4z:{1k:"3H","1S":1h},"1G-3D":{1k:"40",5E:1,"1S":oM},hV:{1k:"3H","1S":1e},2A:{1k:"3H","1S":1e},2x:{1k:"3H","1S":1h},1I:{1k:"3H","1S":1e},6G:{1k:"3H","1S":1h},fz:{1k:"3H","1S":1h},"1V-b3":{1k:"3H","1S":1e},fp:{1k:"3H","1S":1h},9z:{1k:"2u","1S":\'<8G 2K="1d-4m-c1">jA oN be 3G</8G>\'},fh:{1k:"17","1S":y.$F},d4:{1k:"17","1S":y.$F},bN:{1k:"17","1S":y.$F},g6:{1k:"17","1S":y.$F},g5:{1k:"17","1S":y.$F},fY:{1k:"17","1S":y.$F},fX:{1k:"17","1S":y.$F},dq:{1k:"17","1S":y.$F},bB:{1k:"17","1S":y.$F}};1b n=".9y,.1d-4M,.1d-1G-33,.1d-1G,.1d-1q,.1d-1q-33,.1d-1Q,.1d-1Q:9Q,.1d-1q-8V,.1d-4j,.1d-4j 8G,.1d-2M,.1d-1I { 7x: 0; 5A: 0; oO: 0 !1C; -38-4l-7a: 4h-4l !1C; -b7-4l-7a: 4h-4l !1C; 4l-7a: 4h-4l !1C;}.1d-4M-33 { 36: 5M !1C; 7F-1y: jD; dI-5y: jD;}.1d-4M-33.1d-fO-1l,.1d-4M-33.1d-kF-1l .1d-1G-33 { 1r: 0; 1v: 0; 1m: 1N%; 1l: 1N%; 4a-1l: 1N%; 2i: 2V !1C;}.1d-1q-5i .1d-4M-33 { 5M-2b: eF;}.1d-1q-4O .1d-4M-33 { 5M-2b: eI;}.1d-4M-33 > * { 36: 7M-3i;}.9y,.1d-4M,.1d-1q { bP-1l: 1N% !1C; 4O-7F: 1r !1C;}.1d-4M,.1d-1G,.1d-1q { 4h: 2H !1C; 36: 7M-3i;}.1d-1G-33,.1d-1G { 2b: jE !1C; 1m: 1N%; 1l: 1N%;}.1d-1G-33 { -38-7o: 9D; 7o: 9D;}.1d-1G { 2i: 2V; -38-4n-2O: 26 !1C; 4n-2O: 26 !1C;}.1d-1G.1d-1G-54 { 2i: 7g;}.9y { 1m: 1N%; 4a-1m: 1N%; 1l: 2p; dV: dE; 2b: jE; 3g: 3P !1C; -38-ca-bc: 2H !1C; -b7-ca-bc: 2H !1C; -ms-ca-bc: 2H !1C; ca-bc: 2H !1C; -38-4L-oP: 2H !1C; -38-3Q-oQ-fF: dE !1C; /*-ms-4L-aE: 2H !1C;*/ /*4L-aE: 2H !1C;*/}.9y .1d-4M:9Q { 36: 7M-3i; 4O-7F: 1r; 1l: 0;}.1d-4M { 3g: 26; 1m: 1N% !1C; 1l: 1N%; z-1x: 1; 2i: 7g;}.1d-1G-33 { 2i: 7g !1C; /*z-1x oC es oT 9t (4i) */ /*z-1x: 1 !1C;*/}.1d-cT .1d-1G-33 { z-1x: 1 !1C;}.1d-1G { 3g: 26; 1v: 0; 1r: 0; z-1x: 1;}.1d-5y-1G { 3Z-7F: 1v;}.1d-1G-54 { z-1x: 99;}.1d-1G [3Y-1d-9t-3i] { 2i: 2V !1C;}/*.1d-9V-1c .1d-5y {*/.1d-9V-1c,.1d-9V-1c a.1d-5y{ 36: 5M; 7F-1y: 7N; dI-5y: 7N;}.1d-9V-1c 1c { 4a-1m: 1N%; 4a-1l: 1N%; 9Z-dc: jj;}/*a.1d-5y {*/ /*2i: 7g !1C;*//*}*/.1d-1c-4O { 1m: 2p; 1l: 1N%;}.1d-1c-5i { 1m: 1N%; 1l: 2p;}.1d-3f-3i { bP-1l: oV !1C; bx-2w-oW: 0.5 !1C;}.1d-3f-3i p { 7x: 0 !1C;}.lt-oX-4u .1d-1I .1d-1G 1c { 4a-1m: 1N%; 1m: 2p; 1l: 2p;}.1d-1G 2h, .1d-1G jr { 36: 7M-3i; 4a-1m: 1N%;}/*!1C - 1L oY oZ p0*/.1d-4t-1l .1d-1G .1d-5y { 1l: 1N% !1C;}.1d-1q { 1r: 0; 1v: 0; z-1x: 1N; 36: 5M; 5M-jd: 0; 2i: 7g;}.1d-1q-4O .1d-1q { 5M-2b: eF;}.1d-1q-5i .1d-1q { 5M-2b: eI;}.1d-1q .1d-aQ-48 { 4S: 0;}.1d-1q .1d-aQ-2Y { 4S: 2;}.1d-3v { z-1x: aM;}.1d-1q-5i .1d-1q { 1m: 1N% !1C; p1-6B: p3;}.1d-1q-33 { 4S: 1; 1m: 1N%; 1l: 1N%; 36: 3i; 3g: 26; 2i: 7g !1C;}.1d-1Q { 4O-7F: 1r; bP-1l: 1N%; gX: ft !1C; 36: 7M-3i !1C;}.1d-1Q-ch { 4l-p4: p5 9f 9f fg hz(0,0,0,0.9);}.1d-1q-5i .1d-1Q-ch { 1m: jc;}.1d-1q-4O .1d-1Q-ch { 1l: jc;}.1d-1q-8V { z-1x: 10;}.1d-1q .1d-2M { 5M-jd: 0;}/* p6 2F 1q */.1d-1q-1s { 36: 5M; 2i: 2V !1C; dI-5y: 7N; 7F-1y: 7N; -b7-4l-7a: 5y-4l; 4l-7a: 5y-4l;}.1d-1q-5i .1d-1q-1s { 5M-2b: eI; 6p-1m: 1N% !1C;}.1d-1q-4O .1d-1q-1s { 5M-2b: eF; 6p-1l: 1N% !1C;}.1d-1q-5i .1d-1q-1s { 1l: 1N% !1C;}.1d-1q-4O .1d-1q-1s { 1m: 1N% !1C;}.1d-5s .1d-1Q { 3g: 26;}.1d-1q-5i .1d-5s .1d-1Q { 1m: 2p; 1l: 1N%;}.1d-1q-4O .1d-5s .1d-1Q { 1m: 1N%; 1l: 2p;}.1d-5s .1d-1q-1s > 1c { 1m: 2p; 1l: 2p; 7x: 0 9E; 9Z-dc: jj;}.1d-1q-5i .1d-5s .1d-1q-1s > 1c { 4a-1m: 2H !1C;}/** * pH p9 */.1d-1I { 1m: 1N% !1C; 1l: 1N% !1C; 1r: 0 !1C; 1v: 0 !1C; z-1x: pI !1C;}.1d-1I .1d-1q { 36: 2H !1C;}.1d-cT.1d-1I .1d-1q { 36: 5M !1C;}.1d-1I .1d-4M-33 { 4a-1m: 1N%; 4a-1l: 1N%;}.1d-1I .1d-4M-33 { 1m: 1N%; 1l: 1N%;}.1d-1I .1d-4M { 3g: 26 !1C;}/** * qh */.9F { -38-1F-2F: 8r-3d !1C; 1F-2F: 8r-3d !1C;}.4n-91 { /*97, 9p, 9n, 9q*/ -38-4n-2O: 26 !1C; 4n-2O: 26 !1C;}.7E { /*97, 9p, 9n, 9q*/ 3g: 3P !1C; -38-7o: 9D !1C; 7o: 9D !1C;}.1d-26 { 36: 2H !1C; 2O: 26 !1C;}.1d-4M:dk .1d-7d, .1d-1q .1d-7d { 1Z: 0.1 !1C; 4T: kf(1Z = 10) !1C;}.4u-bw-1c 1c { 4a-1l: 2H !1C; 4a-1m: 2H !1C;}.1d-3v-4A-fE { 2i: 2V !1C; -38-4l-7a: 4h-4l !1C; 4l-7a: 4h-4l !1C;}.1d-3v-4A-aQ { 2i: 2V !1C; 4h-fF: dE; 1m: 0; 1l: 0; 4h-2F: gT !1C; -38-4l-7a: 4h-4l !1C; 4l-7a: 4h-4l !1C;}.1d-3v-4A-33 { 2i: 7g !1C; 1l: 1N% !1C; z-1x: 1N !1C;}.1d-3v-4A-33 > * { 1l: 1N% !1C; 1m: 2p !1C; 4a-1m: 2H !1C;}.4u-bw-1c 1c { 2i: 2V !1C;}.1d-4Z-1Z,.1d-4Z-1Z-2J { 1Z: 0 !1C; 4T: kf(1Z = 10) !1C;}.1d-4Z-1Z-2J { 2i: 2V;}.1d-1G .1d-1I-2h { 1m: 1N%; 1l: 1N%;}";1b D=(17(){1b E=17(I,G,H){y.$6q(13);13.1E=l(I);13.1s=l(G);1b F={9z:{1k:"2u","1S":""},4j:{1k:"3H","1S":1h},6G:{1k:"3H","1S":1h},"9W-4j":{1k:"3H","1S":1e},78:{1k:"40","1S":6a},2A:{1k:"3H","1S":1e},"2A-2b":{1k:"2u","3S":["4P-in-1r-1v","4P-in-1r-2r","4P-in-2l-1v","4P-in-2l-2r","4P-in-7N","4P-2W-1r-1v","4P-2W-1r-2r","4P-2W-2l-1v","4P-2W-2l-2r","4P-2W-7N","4N"],"1S":"4N"},"2A-5z":{1k:"40","1S":dm},"in-49":{1k:"2u","3S":["3U","4t","1v","1r","2r","2l","1r 1v","1r 2r","2l 1v","2l 2r"],"1S":"4t"},"in-5z":{1k:"40","1S":6a},"in-7U":{1k:"2u","1S":"51"},"in-aT":{1k:"40","1S":0},"in-3U":{1k:"3H","1S":1e},"in-kl":{4G:[{1k:"2u","3S":["8E"]},{1k:"40",5E:10}],"1S":"8E"},"2W-49":{1k:"2u","3S":["3U","4t","1v","1r","2r","2l","1r 1v","1r 2r","2l 1v","2l 2r"],"1S":"4t"},"2W-5z":{1k:"40","1S":6a},"2W-7U":{1k:"2u","1S":"51"},"2W-aT":{1k:"40","1S":0},"2W-3U":{1k:"3H","1S":1e},"2W-kl":{4G:[{1k:"2u","3S":["8E"]},{1k:"40",5E:10}],"1S":"8E"},"2W-at":{1k:"40","1S":0},"2h-4z":{1k:"3H","1S":1e},"2h-bz":{1k:"3H","1S":1e}};13.1p=1o y.bj(F);13.1p.d8(H||{});13.o=13.1p.dC.1j(13.1p);13.2I=13.1p.2I.1j(13.1p);13.1k="3f";13.2h=1g;13.3f={3Z:1e,e3:20,ql:1g,qm:1g,qn:1g,qo:1g,1c:{1c:1g,1k:"a-1c",2w:{1m:0,1l:0},6A:1g,2y:"9T"}},13.1c={6A:1g,2v:1e,1k:"2q",2q:{8J:1e,1P:1g,3c:1g,1c:1g,2w:{1m:0,1l:0},5h:1h,qp:1g,2y:"9T"},1I:{8J:1e,1P:1g,3c:1g,1c:1g,2w:{1m:0,1l:0},5h:1e,2y:"9T"}};13.bG=1e;13.5j=1e;13.9j=1g;13.3Z=1g;13.6L=1g;13.eW=1g;13.cc=1e;13.8N=1g;13.f0=1g;13.7q=1g;13.2m=1g;13.2A=1g;13.2S=1e;13.93=1e;13.7T=1e;13.4z=1e;13.cz=1e;13.9X=1e;g.2D(13,13.1E,F)};y.1H(E.2e,{dn:17(){13.cL();if("2h"!==13.1k){if("1c"===13.1k){if(13.o("6G")){13.2y();if("1c"===13.1k){1b F="1I",G;if(13.1c[F].1P&&"9T"===13.1c[F].2y){13.1c[F].2y="9I";13.2z("9I",{fC:F});if(!13.1c[F].1c){13.1c[F].1c=y.$1o("1c");13.1c[F].1c.3p("1P",13.1c[F].1P);if(13.1c[F].3c){13.1c[F].1c.3p("3c",13.1c[F].3c)}}G=13.1c[F].1c.2U("1P");G=13.1c[F].3c?[G,13.1c[F].1c.2U("3c")]:G;13.ct({1c:G,1k:F})}}}1f{}}1f{if(!13.3f.1c.1c){13.9Y()}}}},cL:17(){if("4t"!==13.o("2W-49")){13.2G()}if("1c"!==13.1k){13.2I("2A",1e)}l(["in-","2W-"]).1D(l(17(F){if("3U"===13.o(F+"49")&&!13.o(F+"3U")){13.2I(F+"49","4t")}if(13.o(F+"3U")&&"4t"===13.o(F+"49")){13.2I(F+"49","3U")}}).1j(13));if(13.o("2A")){13.2I("2A-5z",13.o("2A-5z")+13.o("2W-5z")+6a)}if(13.o("9W-4j")){13.bG=1h;13.1E.3p("3Y-1d-9t-3i","");13.2I("in-49","3U");13.2I("in-3U","1h");13.2I("2W-49","3U");13.2I("2W-3U","1h")}},2G:17(){13.1E.1n("2O","26")},1V:17(){if(13.2S){13.1E.1n("2O","3P")}},2y:17(){if("1c"!==13.1k){1a}1b H,G=13.5j?"1I":"2q",F=(G==="1I"?"2q":"1I");if(13.5j&&!13.1c[G].1P){G="2q"}if(!13.1c[G].1c){13.1c[G].1c=y.$1o("1c")}if(13.1c.2v&&!13.1c[G].5h){13.1c[G].1c.1R("1d-4Z-1Z-2J");13.1s.8L(13.1c[G].1c,13.1c[F].1c);13.1c[G].5h=1h}if(13.1c[G].2y==="9T"){if(13.1c[G].1P){13.1c[G].1c.3p("1P",13.1c[G].1P);if(13.1c[G].3c){13.1c[G].1c.3p("3c",13.1c[G].3c)}}13.1c[G].2y="9I";13.2z("9I",{fC:G});H=13.1c[G].1c.2U("1P");H=13.1c[G].3c?[H,13.1c[G].1c.2U("3c")]:H;13.ct({1c:H,1k:G})}},ct:17(G){1b F="a-1c"===G.1k?"3f":"1c";1o y.9H(G.1c,{5G:l(17(H,I){if("a-1c"===H){13.3f.1c.2y="3G";13.3f.1c.2w=I.2w;13.3f.1c.6A=13.3f.1c.2w.1l/13.3f.1c.2w.1m}1f{13.1c[H].2y="3G";13.1c[H].2w=I.2w;if("2q"===H){13.1c.6A=13.1c[H].2w.1l/13.1c[H].2w.1m}1f{}13.2z("bH",{1c:I.1c})}}).1j(13,G.1k),5m:l(17(I,J){if("a-1c"!==I){1b H=y.$1o("2N",{"2K":"1d-4m-3i"});H.cJ=13.o("9z");13.1c[I].2y="4m";if(13.1c[I].5h){13.1s.8L(H,13.1c[I].1c);13.1c[I].1c.3s()}13.1c[I].1c=H;if(I==="1I"){13.1c.1I.1P=1g;13.1c.1I.3c=1g}}1f{13.3f.1c.2y="4m"}13.2z("k5",{jR:I})}).1j(13,G.1k),6b:l(17(H,I){if(H!=="a-1c"){13.jQ(H)}13.9Y()}).1j(13,G.1k)})},jQ:17(F){if(F==="2q"){}1f{if(13.5j){if(13.1c.1I.2y==="3G"){if(13.1c.2q.5h){13.1c.2q.1c.3s();13.1c.2q.5h=1e;13.1c.2q.1c.8J=1e;13.1c.2q.1c.2R("1d-4Z-1Z-2J")}if(!13.9X){13.1c.1I.8J=1h;13.1c.1I.1c.2R("1d-4Z-1Z-2J")}}1f{if(13.1c.1I.2y==="4m"){if(13.9X){13.bC()}if(13.1c.1I.5h){13.1c.1I.1c.3s();13.1c.1I.5h=1e;13.1c.1I.1c.8J=1e;13.1c.1I.1c.2R("1d-4Z-1Z-2J")}if(13.9X){13.2y();13.bD()}}}}}if(!13.cz){13.bX()}13.2z("kb",{jR:F})},9U:17(){1b H,F,G=13.1E;if(1g!==G.2U("3Y-1d-9t-3i")){13.bG=1h}13.cc=(G.2U("3Y-cc"))==="1h"?1h:1e;13.8N=!7I(3L(G.2U("3Y-1m")))?3L(G.2U("3Y-1m")):1g;13.f0=!7I(3L(G.2U("3Y-1l")))?3L(G.2U("3Y-1l")):1g;H=3N(G.2F.1Z);13.eW=(!7I(H)&&H>0)?H:1g;if(1g!==G.2U("3Y-1d-qq-bg")){G=l(G.87)}if("dy"===G.5f){13.1k="1c";13.1c.2q.1c=G;if(!G.2U("1P")){F=y.bZ(G.2U("3Y-cg"));13.1c.2q.1P=F.1P;13.1c.2q.3c=F.3c}13.1c.1I.1P=G.2U("3Y-1I-cg");if(13.1c.1I.1P){F=y.bZ(13.1c.1I.1P);13.1c.1I.1P=F.1P;if(F.3c){13.1c.1I.3c=F.3c}}13.1c.2q.1c.1R("1d-4Z-1Z-2J");if(13.o("4j")){13.9j=G.2U("9j");13.3Z=G.2U("3Y-4j")}13.6L=G.2U("eh")}1f{if("qs"===G.5f||"fm"===G.5f.9b()){13.1k="2h";13.jX()}1f{G.1R("1d-3f-3i");13.3f.3Z=1h;if("A"===G.5f){y.$A(G.8C).1D(l(17(I){if("5P"===y.2a(I)&&"dy"===I.5f){13.3f.1c.1c=I;13.3f.3Z=1e}}).1j(13));if(13.3f.1c.1c){13.ct({1c:13.3f.1c.1c.2U("1P"),1k:13.3f.1c.1k})}}}}13.2G()},jX:17(){1b F,G=13.1E;if(/(5l|5l-cp).bm/.3R(G.2U("1P"))){F="5l"}1f{if(/7v.bm/.3R(G.2U("1P"))){F="7v"}1f{F="2h"}}if(13.o("2h-bz")){G.1T({1m:"1N%",1l:"1N%"})}13.2h=1o c(G,F,13.1s,{3J:13.o("2h-4z"),jY:13.o("2h-jY"),6y:13.o("2h-6y"),es:13.o("2h-es")});13.2h.l0(13.8N,13.f0);13.2h.3x("2S",l(17(H){13.9Y()}).1j(13));13.2h.3x("2P",l(17(H){13.2z("cD",{c0:"2P",8H:H.8H})}).1j(13));13.2h.3x("2x",l(17(H){13.2z("cD",{c0:"2x",8H:H.8H})}).1j(13));13.2h.3x("63",l(17(H){13.2z("cD",{c0:"63",8H:H.8H})}).1j(13));13.2h.4F()},kg:17(){1b G,F;if(13.o("4j")){if(13.9j||13.3Z){F=17(I){1b H=/\\[a([^\\]]+)\\](.*?)\\[\\/a\\]/ig;1a I.2J(/&qt;/g,"&").2J(/&lt;/g,"<").2J(/&gt;/g,">").2J(H,"<a $1>$2</a>")};G=y.$1o("8G");if(13.3Z){if(y.2a(13.3Z)=="5P"){if(13.3Z.5f.64()=="8G"){G.a1(F(13.3Z.cJ));13.3Z.2s&&l(13.3Z.2s).jV(G,13.3Z)}}1f{G.a1(F(13.3Z))}}13.3Z=l(G);if(13.9j){l(13.3Z).2C(y.$1o("b").1R("1d-4j-9j").a1(13.9j),"1r")}13.2z("ka",{1E:y.$1o("2N",{"2K":"1d-4j"}).2C(l(13.3Z))})}}},aA:17(){if("4t"!==13.o("2W-49")){5J(13.7q);13.7q=1g;13.7T=1e;13.93=1e;13.2m&&13.2m.1X()}if("4t"!==13.o("in-49")){13.2G()}},jW:17(){if(13.7T&&"4t"!==13.o("2W-49")){13.2G()}},aD:17(F){13.4z=F;if(13.2A&&13.2A.7P){if(F){13.2A.2P()}1f{13.2A.2x()}}if(!F){5J(13.7q);13.7q=1g}13.7T=1e;13.93=1e},2P:17(I,K,F,H){1b G=("-"+13.o(I+"jM").2J(/\\s+/,"-")).5C(),J=13.o(I+"-49");!K&&(K=y.$F);!F&&(F=y.$F);!H&&(H={});if("2W"===I&&13.7q&&!13.7T){13.7T=1h;J="4t"}5J(13.7q);13.7q=1g;if("4t"!==J){if("in"===I){13.2m&&13.2m.1X()}if("in"===I||"2W"===I&&!13.7T&&(!13.2m||("2B"!==13.2m.7w&&"3T"!==13.2m.7w))){13.2m=1o y.1O.3k[G](13.1E,I,y.1H(13.1p.jU(),[{9a:13.eW},H]));13.2m.2B({2B:l(17(L){13.fv(L),K(L)}).1j(13),3e:l(17(L){13.2m=1g;13.cj(L);F(L)}).1j(13)})}1f{13.2m&&13.2m.1X();13.cj(I);F(I)}}1f{K(I);F(I)}},fv:17(F){13.cz=1h;if("2W"===F){13.7T=1h;if(13.2h){13.2h.2x()}}1f{13.9X=1h;13.7T=1e;13.93=1e;if(!13.5j&&13.1c.2q.1c){13.1c.2q.1c.2R("1d-4Z-1Z-2J")}13.1V();13.bD();if("4t"!==13.o("2W-49")&&13.4z&&!13.o("9W-4j")){13.7q=79(l(17(){13.7q=1g;13.93=1h;!13.2m&&13.2P("2W",1g,1g,{e5:0})}).1j(13),13.o("2W-at"))}}},cj:17(G,F){13.cz=1e;if("in"===G){if(13.2h){13.2h.2P()}if(13.1c.2v&&13.1c[13.1c.1k].2y==="3G"){13.bX()}if(13.93){13.93=1e;13.2P("2W",1g,1g,{e5:0})}}1f{13.9X=1e;13.2G();13.bC()}},8X:17(){1b F=1e;if(13.2h&&13.o("2h-4z")){}1f{if("1c"===13.1k){if(13.5j){if(13.1c.1I.1c){if("3G"!==13.1c.1I.2y){F=1h}}1f{if("3G"!==13.1c.2q.2y){F=1h}}}1f{if("3G"!==13.1c.2q.2y&&"4m"!==13.1c.2q.2y){F=1h}}}}1a F},bD:17(){1b I=1g,H=1g,K=1g,J=1g,F=13.o("2A"),G=1e;if(!13.1c.2v||13.2A){1a}if(13.5j){if(13.1c.1I.5h){H=13.1c.1I}1f{if(13.1c.2q.5h){H=13.1c.2q}}}1f{if(13.1c.1I.5h&&13.1c.1I.2y==="3G"&&!l(["3G","4m"]).2k(13.1c.2q.2y)){H=13.1c.1I}1f{if(13.1c.2q.5h&&13.1c.2q.2y!=="4m"){H=13.1c.2q}}}if(I||H){G=!H.8J;if(13.o("6G")&&H===13.1c.2q){G=1e;H.1c.2R("1d-4Z-1Z-2J")}if(I&&I.1c){K=I.1c}if(H&&H.1c){J=H.1c}if(H.2y==="4m"){F=1e}if(F||G){13.k8([K,J],F,G)}}},bX:17(){if(13.2A&&!13.2A.7P){13.2A.2B(13.4z);13.1c[13.1c.1k].8J=1h}},bC:17(){if(13.2A){13.2A.em();13.2A=1g}},k8:17(G,F,H){if(!13.2A&&(F||H)){G[1].2R("1d-4Z-1Z-2J");13.2A=1o y.1O.k6(G[0],G[1],{2A:13.o("2A")?F:1e,2J:H,2b:13.o("2A-2b"),e7:13.o("2A-5z")})}},ef:17(){if(13.o("9W-4j")){if(13.2m){13.2m.1X()}13.2P("in")}},fu:17(){1b F=1e;if(13.1c.2v){if(13.5j){if(13.1c.1I.1c){if(!l(["3G","4m"]).2k(13.1c.1I.2y)){F=1h}}1f{if(!l(["3G","4m"]).2k(13.1c.2q.2y)){F=1h}}}1f{if(!l(["3G","4m"]).2k(13.1c.2q.2y)){F=1h}}}1a F},cK:17(F,G){13.5j=1h;13.bC();if(13.1c.2v){13.cW();if(13.1c.1I.1P){if(13.1c.2q.5h){13.1c.2q.1c.1R("1d-4Z-1Z-2J")}13.1c.1k="1I"}if(F||13.o("6G")){13.2y();if(F){13.bD()}}}if(G&&13.1k==="2h"){13.2h.1E.1R("1d-1I-2h")}},cA:17(F){if(F){13.ef();if(13.1c.2v&&13.1c[13.1c.1k].2y==="3G"){13.bX()}}},cC:17(F,G){13.5j=1e;13.bC();if(13.1c.2v){13.cW();if(13.1c.1k==="1I"){if(13.1c.1I.2y!=="3G"){13.1c.1k="2q"}}if(F){13.2y();13.bD()}}if(G&&13.1k==="2h"){13.2h.1E.2R("1d-1I-2h")}},cn:17(F){if(F){13.ef();if(13.1c.1k==="1I"){if(13.1c.1I.2y!=="3G"){if(F){l(13.1c.1I.1c).1R("1d-4Z-1Z-2J")}}}if(13.1c.2v&&13.1c[13.1c.1k].2y==="3G"){13.bX()}}},cW:17(){1b G,F;if(13.1k!=="1c"){1a}if(13.1c.2q.1c&&l(["3G","4m"]).2k(13.1c.2q.2y)&&13.1c.1I.1c&&l(["3G","4m"]).2k(13.1c.1I.2y)){if(13.5j){if(13.1c.1k==="2q"){G="2q";F="1I"}}1f{if(13.1c.1k==="1I"){G="1I";F="2q"}}}if(G&&F){l(13.1c[F].1c).2R("1d-4Z-1Z-2J");13.1s.8L(13.1c[F].1c,13.1c[G].1c);13.1c[F].5h=1h;13.1c[F].8J=1h;13.1c.1k=F;l(13.1c[G].1c).3s();13.1c[G].5h=1e;13.js()}},js:17(){1b L=13.1c.2q.2w,G=13.1c.1I.2w,F,M,K,J,H,I;if(!13.1c.2q.1c||!L||!G){1a}M=(13.1c[!13.5j?"1I":"2q"].1c.2U("eh")||"").2J("#","");F=/-bM/.3R(M);if(13.5j&&F||!13.5j&&!F){1a}if(13.5j){if(!13.1c.1I.1c){1a}if(M&&(K=1t.qi(M))&&K.1J){J=G.1m/L.1m;H=G.1l/L.1l;13.6L=$8i(K[0].6i(1h));13.6L.3p("id",M+"-bM");13.6L.3p("3t",M+"-bM");I=y.$A($8i(K[0]).cb("jo"));y.$A(13.6L.cb("jo")).1D(17(O,N){O.3p("jn",I[N].jn);O.3p("jm",y.$A(I[N].jm.5b(",")).jl(17(P){1a(P%2)?P*H:P*J}).8t(","))});13.6L.3E(13.1s.2s);13.1c.1I.1c.3p("6L","#"+M+"-bM")}}1f{13.6L.3s();13.6L=1g;13.1c.1I.1c.3p("6L",(13.1c.1I.1c.2U("eh").2J("-bM","")))}},9Y:17(){if(!13.2S){13.2z("9Y")}},bF:17(){1b F;if("3f"===13.1k){if(13.3f.3Z){F=13.1E.2Z("bx-2w");if(F&&/px/.3R(F)){13.3f.e3=3L(F)}l(["1r","1v","2r","2l"]).1D(l(17(G){F=13.1E.2Z("5A-"+G);if(F&&/px/.3R(F)){13.3f["5A"+(("-"+G).5C())]=3L(F)}}).1j(13))}}1f{if("2h"===13.1k){}}},6k:17(F){1b G;if(13.cc){if("1c"===13.1k){if(!13.1c.2v){G=(F.1m/13.o("78"))*13.8N;13.1E.1T({1m:G,1l:G*13.1c.6A})}}1f{if("3f"===13.1k){if(13.3f.3Z){G=F.1m/13.o("78");13.1E.1n("bx-2w",G*13.3f.e3);l(["1r","1v","2r","2l"]).1D(l(17(H){if(13.3f["5A"+(("-"+H).5C())]){13.1E.1n("5A-"+H,G*13.3f["5A"+(("-"+H).5C())])}}).1j(13))}1f{if(13.3f.1c.1c){G=(F.1m/13.o("78"))*13.8N;l(13.3f.1c.1c).1T({1m:G,1l:G*13.3f.1c.6A})}}}1f{if(13.qx){G=(F.1m/13.o("78"))*13.8N;13.1E.1T({1m:G,1l:G*13.1c.6A})}1f{if(!13.o("2h-bz")){G=(F.1m/13.o("78"))*13.8N;13.1E.1T({1m:G,1l:13.2h.6A*G})}}}}}},73:17(){if(13.2A){13.2A.1X();13.2A.em()}13.2S=1e;13.2m&&13.2m.1X();13.1E.1T({2O:"","1F-4R":"",2n:""});if("3f"===13.1k){if(13.o("9W-4j")){13.1E.3s()}}1f{if("1c"===13.1k){if(13.1c.2q.1P){13.1c.2q.1c.8l("1P")}if("1I"===13.1c.1k){13.1s.8L(13.1c.2q.1c,13.1c.1I.1c);13.1c.1I.1c.3s()}}1f{if("2h"===13.1k){if(/1d-7G/.3R(13.2h.id)){13.1E.8l("id")}13.2h.73()}}}}});y.1H(E.2e,y.8F);1a E})();1b c=(17(){1b F=1g,I=17(J){if(J){J=J.2J(/^(7K?:)?(.+)/,"7K:\\\\$2")}1a J},H=17(K){1b J=/(?:(5l|5l-cp)\\.bm\\/(?:[^\\/]+\\/.+\\/|(?:v|e(?:qA)?)\\/|.*[?&]v=)|qB\\.be\\/)([^"&?\\/ ]{11})/i;1a J.qE(K)[2]},G=17(J){1b K,L=[];1L(K in J){if(J.57(K)){L.3a(jC(K)+"="+jC(J[K]))}}1a L.8t("&")},E=17(M,L,J,K){y.$6q(13);13.1k=L;13.1E=M;13.1s=J;13.1p={3J:1h};13.o=13.1p;y.1H(13.o,K||{});13.1P=1g;13.id=1g;13.bV=1g;13.81=1g;13.2j="jI";13.2S=1e;13.9O=1e;13.6A=1g;13.7B=1e;if(!1u.8g.4R){1u.8g.4R=1u.8g.qF+"//"+1u.8g.qG+(1u.8g.jx?":"+1u.8g.jx:"")}13.j7={qH:1,4R:1t.8g.4R};13.1P=13.1E.2U("1P");if(F===1g){if(/5l-cp/.3R(13.1P)){F="-cp"}1f{F=""}}13.id=13.1E.2U("id")||"1d-7G-"+13.1k+"-"+1M.7l(1M.4N()*y.6H());13.ku={qI:1,qJ:13.id}};y.1H(E.2e,{l0:17(J,K){13.6A=K/J||("5l"===13.1k?(qK/qL):("7v"===13.1k?(qM/dP):0.qy))},4F:17(){1b J;if("5l"===13.1k){13.gy()}1f{13.1E.3p("id",13.id);13.1s&&13.1s.2C(13.1E);if("7v"===13.1k){13.1P=13.1P.2J(/7K*:/,"7K:");13.1P=13.1P.5b("?")[0]+"?"+G(13.ku);13.1E.3p("1P",13.1P);13.1E.8l("kI");13.kR()}1f{if(13.1P){13.1E.3p("1P",13.1P)}1f{13.1E.3p("1P","");13.1E.8l("1P")}13.kt()}}},kt:17(){13.1E.1K("g9 2P 2x gf gg gh",l(17(J){6M(J.1k){1U"g9":13.6R("63");1W;1U"2P":13.6R("2P");1W;1U"2x":13.6R("2x");1W;1U"gh":1W;1U"gf":1W;1U"gg":13.bR();1W}}).1j(13))},kR:17(){1u.1K("c1",l(17(K){if("7v"===13.1k){4f{1b J=e6.9U(K.3Y);6M(J.1z){1U"2S":13.9K("bT","2x");13.9K("bT","2P");13.9K("bT","63");13.bR();1W;1U"2P":13.6R("2P");1W;1U"2x":13.6R("2x");1W;1U"63":13.6R("63");1W}}4o(K){if(K.1z==="2S"){13.bR()}}}}).1j(13))},9K:17(M,L){1b J,K={qg:M};if("7v"===13.1k){L&&(K.a5=L);J=e6.q0(K);13.1E.qf.pL(K,I(13.1P.5b("?")[0]))}},gy:17(){if(!13.81&&13.9O&&1u.kK){13.1E.3p("id",13.id);13.1E.8l("kI");13.bV=H(13.1P);13.1P="7K://fM.5l"+F+".bm/pM/"+13.bV+"?"+G(13.j7);13.1E.3p("1P",13.1P);13.1s&&13.1s.2C(13.1E);13.81=1o 1u.kK.pN(13.id,{bV:13.bV,8c:{fh:13.bR.1j(13),pO:13.kB.1j(13)}})}},6R:17(J){13.2j=J;13.2z(J,{pP:13.1k,8H:13.7B});13.7B=1e},kB:17(J){6M(J.2Q.pQ()){1U 0:13.6R("63");1W;1U 1:13.6R("2P");1W;1U 2:13.6R("2x");1W;1U 3:1W;1U 5:1W}},bR:17(){13.2S=1h;13.6R("2S")},jT:17(){if("5l"===13.1k){13.9O=1h;13.gy()}},2P:17(){if(13.o.3J){if("5l"===13.1k){if(13.81&&13.2S&&l(["jI","2x","63","2S"]).2k(13.2j)){if(13.81.ja){13.7B=1h;13.81.ja()}}}1f{if("7v"===13.1k&&13.2S){13.7B=1h;13.9K("2P")}1f{if("2h"===13.1k){if(13.1E.gd){13.7B=1h;13.1E.2P()}}}}}},2x:17(){if("5l"===13.1k){if(13.81&&13.2S){if(13.81.jh){13.7B=1h;13.81.jh()}}}1f{if("7v"===13.1k&&13.2S){13.7B=1h;13.9K("2x")}1f{if("2h"===13.1k){if(!13.1E.gd){13.7B=1h;13.1E.2x()}}}}},73:17(){1b J;13.1P&&13.1E.3p("1P",13.1P.5b("?")[0]);if("2h"===13.1k){13.1E.29("g9 2P 2x gf gg gh")}1f{if("7v"===13.1k){1u.29("c1")}1f{if("5l"===13.1k){}}}13.1E=1g}});y.1H(E.2e,y.8F);1a E})();1b m=(17(){1b E=17(I,G,F,H){y.$6q(13);13.6S=l(I);13.1s=F;13.dD={6G:1h,1q:1e,dT:"3v",b3:1h,4j:1h,kE:"3U",78:6a,2A:1e,6Z:1h};13.io=13.dD;y.1H(13.io,H.dD||{});13.fH={2m:{1k:"2u","3S":["4N","1G","3U","3U-aR","3U-cw","cX","jJ","9n","97","1G-in","1G-2W","9q","9p","1G-aO","aY","6e"],"1S":"1G"},"2m-5z":{1k:"40",5E:1,"1S":gs},"2m-7U":{1k:"2u","1S":"51"},"1G-3D":{1k:"40",5E:1,"1S":dm}};13.1p=1o y.bj(13.fH);13.1p.d8(H.1p||{});13.o=13.1p.dC.1j(13.1p);13.2I=13.1p.2I.1j(13.1p);13.cL();13.1x=G;13.3T=1g;13.2v=1e;13.2S=1e;13.6E=1g;13.2B=1e;13.cd=1e;13.1G=y.$1o("2N",{"2K":"1d-1G"}).1R("1d-1G-"+13.1x);13.1Q={2y:"9T",1E:1g,6Q:1g,fe:1g};if(13.io.b3){13.3T=y.$1o("2N",{"2K":"1d-b3"},{2i:"2V","z-1x":"cR"});13.3T.3E(13.1G).1V();if(0===13.1x){13.3T.1V()}1f{13.3T.2G()}}13.2j="26";13.2X=l([]);13.fB=0;13.9U(I);13.2G()};y.1H(E.2e,{cL:17(){g.2D(13,13.6S,13.fH)},1V:17(F){if(y.1i.3O&&y.1i.3O>8||!y.1i.3O){13.1G&&13.1G.2R("1d-4Z-1Z")}if(13.2S){13.6S.1n("2O","3P");if(13.2v&&13.2v.1c.1I.1c){13.2v.1c.1I.1c.1n("2O","3P")}if(F){13.2X.1D(l(17(G){if("4t"===G.o("in-49")){G.1V()}}).1j(13))}}},2G:17(F){if(y.1i.3O&&y.1i.3O>8||!y.1i.3O){13.1G&&13.1G.1R("1d-4Z-1Z")}13.6S.1n("2O","26");if(13.2v&&13.2v.1c.1I.1c){13.2v.1c.1I.1c.1n("2O","26")}if(F){13.2X.1D(l(17(G){G.2G()}).1j(13))}},k4:17(){1b G=1e,F=1e;13.2X.1D(l(17(I,H){if(!G&&"1c"===I.1k&&!I.bG){G=I}1f{if(!I.bG){F=1h}if("1c"===I.1k){I.2I("2A",1e)}}}).1j(13));13.2v=(G&&!F)?G:1e;13.2v&&(13.2v.1c.2v=1h);if(13.2v){if(13.6S!==13.2v.1c.2q.1c){13.6S.1R("1d-9V-1c")}1f{13.1G.1R("1d-9V-1c")}}},9U:17(G){1b F={6G:13.io.6G,2A:13.io.2A,78:13.io.78,"2A-5z":13.o("1G-3D"),4j:13.io.4j,9z:13.io.9z};13.1s.2C(13.1G);if(G.8C.1J>0&&"fm"!==G.5f){y.$A(G.8C).1D(l(17(H){if("5P"===y.2a(H)&&"!"!==H.5f){if(1g===H.2U("3Y-1d-fE")){13.cE(H,G,F)}1f{13.1Q.1E=H;13.1Q.6Q=H;13.1Q.fe=1h}}}).1j(13));G.1R("1d-5y")}1f{if("5P"===y.2a(G)){13.cE(G,13.1G,F)}}13.ki(G);13.1G.2C(G);13.2X.1D(l(17(H){H.dn()}).1j(13));13.k4()},bF:17(){13.2X.1D(l(17(F){F.bF()}).1j(13))},cE:17(H,F,G){1b I=1o D(H,F,G||{});I.3x("ka",l(17(J){13.1G.2C(J.1E);13.cE(J.1E,13.1G,y.1H({"9W-4j":1h},G||{}))}).1j(13));I.3x("9I",l(17(J){if("1I"===J.fC&&"54"===13.2j){13.3T&&13.3T.1V()}}).1j(13));I.3x("kb",l(17(J){13.3T&&13.3T.2G()}).1j(13));I.3x("9Y",l(17(J){13.fB+=1;if(13.fB===13.2X.1J){13.2S=1h;if(13.2B){13.6k()}if("26"!==13.2j){13.1V()}13.2X.1D(l(17(K){K.2S=1h;if("26"!==13.2j){if("54"===13.2j){if("4t"!==K.o("in-49")){K.1V()}}1f{if("4t"===K.o("in-49")){K.1V()}}}}).1j(13));13.3T&&13.3T.2G();if(13.6E){13.6E();13.6E=1g}}}).1j(13));I.3x("bH",l(17(J){13.bH(J.1c)}).1j(13));I.3x("k5",l(17(J){}).1j(13));I.3x("cD",l(17(J){13.jZ(J.c0,J.8H);13.2z("hy",{2j:J.c0,1x:13.1x})}).1j(13));13.2X.3a(I);I.9U();if(I.o("2h-bz")&&"2h"===I.1k){13.6S.1T({1m:"1N%",1l:"1N%"})}I.kg()},kU:17(){1b F,G;if(13.io.1q){13.1Q.2y="9I";F=13.io.dT;G=13.1Q[13.io.6Z?"6Q":"1E"];if("5s"===F||13.io.6Z){if("dy"===G.5f){1o y.9H(G,{5G:l(17(H){13.1Q.2y="3G";13.bH(H.1c)}).1j(13),6b:l(17(H){13.2z("h9")}).1j(13)})}1f{13.1Q.2y="3G"}}if("3v"===F){13.1Q.1E=y.$1o("2N",{"2K":"1d-1Q-"+13.1x});if(13.io.6Z){13.2z("pS",{1x:13.1x})}}l(13.1Q.1E).3o("7G:3j",{1x:13.1x});13.2z("hf",{1Q:13.1Q.1E,hd:F,1x:13.1x,6Q:13.1Q.6Q})}},ff:17(F){if(!13.2S){13.6E=F;13.fA()}1f{F&&F()}},fA:17(){if(13.2v){13.2v.cW()}13.2X.1D(l(17(G,F){G.2y()}).1j(13))},d2:17(){13.fA()},ki:17(I){1b G,H,K,F,J;if("5s"===13.io.dT||13.io.6Z){if(!13.1Q.1E){F=l(17(N){1b L=1g,M=y.bZ(N.2U("3Y-jS-cg"));if(M.1P){L=y.$1o("1c",{1P:M.1P});if(M.3c){L.3p("3c",M.3c)}}1a L}).1j(13);H=l(17(L){1b M,P,O,N;M=y.bZ(L.1c.2U("3Y-jS-cg"));if(M.1P){O=M.1P;N=M.3c}1f{if(L.1P){O=L.1P;N=L.3c}1f{O=L.1c.2U("1P");M=L.1c.2U("3c");if(M){N=M}}}P=y.$1o("1c",{1P:O});N&&P.3p("3c",N);1a P}).1j(13);J=F(I);if(J){if(13.io.6Z){13.1Q.6Q=J}1f{13.1Q.1E=J}}1f{if(13.2v){K=H(13.2v.1c.2q);if(13.io.6Z){13.1Q.6Q=K}1f{13.1Q.1E=K}}1f{1L(G=0;G<13.2X.1J;G++){if(13.2X[G].1c.2q.1c){K=H(13.2X[G].1c.2q);if(13.io.6Z){13.1Q.6Q=K}1f{13.1Q.1E=K}1W}}if(!13.1Q.1E&&!13.1Q.6Q){K=y.$1o("2N",{"2K":"1d-1Q-ch"});if(13.io.6Z){13.1Q.6Q=K}1f{13.1Q.1E=K}}}}}}},8X:17(){1b F=1e;13.2X.1D(l(17(G){if(G.8X()){F=1h}}).1j(13));1a F},9O:17(){13.2X.1D(l(17(F){F.2h&&F.2h.jT()}).1j(13))},kH:17(){1b F=1e;13.2X.1D(l(17(G){if(G.2h&&"5l"===G.2h.1k){F=1h}}).1j(13));1a F},jZ:17(H,G){1b F=1e;if("2P"===H){13.2z("fT",{2P:1h,2h:1h})}1f{if("2x"===H||"63"===H){if("63"===H){G=1h}if(13.2h){if(!l(["2x","63"]).2k(13.2h.2j)){F=1h}}13.2X.1D(l(17(I){if(I.2h){if(!l(["2x","63"]).2k(I.2h.2j)){F=1h}}}).1j(13));if(!F&&G){13.2z("fT",{2P:1e,2h:1h})}}}},pU:17(){1b F=1e;13.2X.1D(l(17(G){if("2h"===G.1k){F=1h}}).1j(13));1a F},aS:17(G,H){1b F=13.2X.1J;if(F>0){13.2X.1D(l(17(I){I.2P(G,l(17(J){13.d1(J)}).1j(13),l(17(J){F-=1;if(0===F){13.dl(J);H&&H()}}).1j(13))}).1j(13))}1f{H&&H()}},aD:17(F){13.2X.1D(l(17(G){G.aD(F)}).1j(13))},gU:17(){1b F=13.2X.1J;if(F>0){13.2X.1D(l(17(G){G.jW()}).1j(13))}},d1:17(F){13.2z("d1",{fI:F})},dl:17(F){13.2z("dl",{fI:F})},bH:17(F){13.2z("h7",{1c:F})},pV:17(){1b F=0,G;if(13.2v){F=1M.6p(13.2v.1c.2q.2w.1m,13.1s.1Y().1m)*13.2v.1c.6A}1f{F=13.6S.1Y().1l;13.2X.1D(l(17(H){if("2h"===H.1k&&H.o("2h-bz")){F=13.1s.1Y().1m*H.2h.6A;1a F}1f{if("2V"!==H.1E.2Z("36")){G=H.1E.1Y().1l;if(G>F){F=G}}}}).1j(13))}1a F},ds:17(F){1b G="2Y"===F?"in":"2W";if("2Y"===F){13.2j="pW";if(!13.2S||13.2v&&13.2v.fu()){13.3T&&13.3T.1V()}13.1V()}1f{13.2j="pX"}13.2X.1D(l(17(H){if("4t"===H.o(G+"-49")){H.fv(G)}}).1j(13))},df:17(F){1b G=1e,H="2Y"===F?"in":"2W";if("2Y"===F){13.2j="54";if(13.3T){if(13.2S&&!13.2v||13.2v&&!13.2v.fu()){13.3T.2G()}}}1f{13.2j="26";13.3T&&13.3T.2G();13.2G()}if("54"===13.2j&&13.2v&&"1I"!==13.2v.1c.1k&&13.cd){G=1h}13.2X.1D(l(17(I){I.cj(H,G)}).1j(13))},aA:17(F){13.ds(F);if("48"===F){13.2X.1D(l(17(G){G.aA()}).1j(13))}},d6:17(F){13.df(F);if("2Y"===F){13.aS("in")}},cK:17(){13.cd=1h;13.2X.1D(l(17(F){F.cK("54"===13.2j,13.2X.1J===1)}).1j(13));if(13.3T&&13.2v){if(!l(["3G","4m"]).2k(13.2v.1c[13.2v.1c.1k].2y)){13.3T.1V()}}},cA:17(){13.2X.1D(l(17(F){F.cA("54"===13.2j)}).1j(13))},cC:17(){13.cd=1e;13.2X.1D(l(17(F){F.cC("54"===13.2j,13.2X.1J===1)}).1j(13))},cn:17(){if(13.3T&&13.2v){if(13.2v.1c[13.2v.1c.1k].2y==="3G"){13.3T.2G()}}13.2X.1D(l(17(F){F.cn("54"===13.2j)}).1j(13))},6k:17(){if(13.2S){13.2X.1D(l(17(F){F.6k(13.1G.1Y())}).1j(13))}},73:17(){13.6S.2R("1d-5y");13.6S.8l("2F");13.2X.1D(l(17(F){F.73()}).1j(13));if(13.1Q.fe){13.1Q.1E.2R("1d-1Q").2R("1d-1Q-5s");13.1Q.1E.d5();13.1Q.1E.3b("7G:3j");13.6S.2C(13.1Q.1E)}13.2X=l([])}});y.1H(E.2e,y.8F);1a E})();1b b=17(E){y.$6q(13);13.4p={6s:["1G","3U","3U-aR","3U-cw","cX","9n","97","1G-in","1G-2W","9q","9p","1G-aO","aY","6e"],g0:"1G"};13.o=13.4p;y.1H(13.o,E);13.2f=1g;13.3j=1g;13.bs=1g;13.cH=1g};b.2e={4x:17(H){1b G,F,I;if((!13.3j||13.3j&&!13.3j.1G)&&(!H.3j||H.3j&&!H.3j.1G)){1a}13.bs=H.3j;13.cH={2f:13.3j?13.3j.1x:1g,2Y:H.3j.1x};13.1X();if("4N"===H.2m){H.2m=13.o.6s[1M.dS(1M.4N()*(13.o.6s.1J-1))]}if(13.3j){if(13.3j.1G){13.3j.1G.1V()}1f{13.3j.1V()}}if(13.bs){13.bs.1V()}G=y.1O[("-"+(13.3j?(H.2m&&"2p"!==H.2m?H.2m:13.o.g0):"b6")).5C()];13.2f=1o G([13.3j?13.3j.1G:1g,H.3j.1G],H.1p);13.3j=13.bs;13.2f.2B({2B:13.ke.1j(13,13.cH),3e:13.kc.1j(13,13.cH)})},ke:17(E){13.2z("gM",{7k:E.2f,5Z:E.2Y})},kc:17(E){13.2z("gO",{7k:E.2f,5Z:E.2Y})},1X:17(){13.2f&&13.2f.1X();1a 13},73:17(){13.1X();1a 1g}};y.1H(b.2e,y.8F);1b l=y.$;1t.7L("k9");1t.7L("k7");1t.7L("fm");1b u,B=1e,k=y.8D("1F").8j(),a=y.8D("7o-4R").8j(),d=y.8D("7o").8j(),h=y.8D("1F-2F").8j(),j=y.8D("1F-4R").8j(),g=17(G,E){1b F,H;1L(F in E){H=G.2U("3Y-"+F);if(1g!=H){13.2I(F,H)}}},s=17(E){13.3t="9y";13.c1=E||"jf 4m."},e=17(){y.fP(".4u-26-33",{36:"3i !1C","6p-1l":"0 !1C","6p-1m":"0 !1C","4a-1l":"2H !1C","4a-1m":"2H !1C",1m:"fg !1C",1l:"fg !1C",2i:"2V !1C",1r:"-pK !1C",1v:"0 !1C",3g:"26 !1C","-38-1F":"2H !1C",1F:"2H !1C","-38-2n":"2H !1C",2n:"2H !1C"},"fi-cQ-8a")},z=17(F){1b G="",E;1L(E=0;E<F.1J;E++){G+=5r.5S(14^F.kn(E))}1a G},v=17(){1b E=(17(){1b G=1u.8g;1a y.jF(G.q1+G.q2)})(),F=["q3}m|g~z.}5R}6n.lw.8B.a2","q4.}5R}6n.~cm|kj.lw.8B.a2","jL{k|w.}5R}6n.lw.8B.a2","]5R}6n.}m|g~z.~cm|kj.lw.8B.a2","^q5.}5R}6n.}m|g~z.~cm|kj.lw.8B.a2","jL{k|w.q6.}5R|.~cm|kj.lw.8B.a2"];1a z((17(){1b H=1u[z("q7*bQ}5R}6n*~q8")],G="!!dZ di 8M!bQ}5R}6n!";if(H&&"2u"===y.2a(H)){H=H.5W();if(H&&H.1J>4&&/[A-q9-z]/.3R(H)){H="2o.f|dJ,"+G+",.0"+H+"2!o0"}1f{H=0}}1f{H=0}1a H})()||(17(G){1a"2o.f|dJ,!!dZ di 8M!bQ}5R}6n!,.0"+F[E%G]+"2!o0"})(F.1J))},p=17(){1a"qa$qb"+"".9b()+" qc$"+"fs.2.12".2J("v","")+" qd$"+"".9b()+((1u.g4$g3&&"2u"==y.2a(1u.g4$g3))?" qe$"+1u.g4$g3.64():"")};s.2e=g2.g1(sm.2e);s.2e.6r=s;1b q=17(I,H){1b U,K,N,R=0,J,L,T,M,Q,E,G,P,S,O=-1,F=l([]);y.$6q(13);13.1p=1o y.bj(o);13.9B=l(I).3o("7G",13);13.kP=l(I).2U("2K")||l(I).2U("7O");13.cU=[];13.id=I.2U("id")||"1d-"+1M.7l(1M.4N()*y.6H());13.7j=1e;13.41=1e;13.ba=1e;13.1y=1g;13.6F=0;13.ci=1e;13.5K=1e;13.cG=1e;13.7S={34:1g,fL:0};13.8e=1e;13.1s=1g;13.4v=1g;13.4I=1g;13.1q=1g;13.aw=1g;13.3l=1g;13.5Z=1g;13.2f=-1;13.8Z=-1;13.bE=0;13.dk=1e;13.8d=1g;13.7Y=1g;13.8O=1g;13.pb=1g;13.21={4D:"5i",2i:"2l",2w:{dw:"px",1m:"2p",1l:"2p"},3z:["1l","1m"],fx:1e,bU:1e,8a:{1m:1g,1l:1g}};13.fN=13.6k.1j(13);13.fR=l(17(V){if(13.o("fz")&&13.7j){if(37===V.bo||39===V.bo){13.41=1e;13.4x({2Q:37===V.bo?"5F":"4B"})}}}).1j(13);13.a4=0;13.fS=y.$1o("2N").1R("4u-bw-1c").1T({2i:"2V",1r:-6a,1m:10,1l:10,3g:"26"}).3E(1t.5k);13.fU=[];13.o=13.1p.dC.1j(13.1p);13.2I=13.1p.2I.1j(13.1p);13.kJ(H);13.4b={2M:1g,2j:13.o("4z"),2P:y.$F,2x:y.$F,aE:y.$F};13.1s=13.9B;13.bI=1e;y.$A(13.1s.8C).1D(l(17(V){if(V.6N!==3&&V.6N!==8){F.3a(V)}13.1s.dH(V)}).1j(13));if(0===F.1J){6P 1o s("pZ: "+13.id+", pY\'t qD qj 1G.")}F.1D(l(17(W,V){if(1g!==W.2U("3Y-2B-1G")){13.bE=V}}).1j(13));13.1s.3o("7G",13).1T({2i:"7g"}).1R("1d-"+13.o("4D")).3p("id",13.id);if(!y.1i.4i){13.1s.1R("1d-cT")}13.7J=y.$1o("2N",{"2K":"1d-4M-33"});13.4v=y.$1o("2N",{"2K":"1d-4M"},{2O:"3P",36:"7M-3i",1m:0});13.4I=y.$1o("2N",{"2K":"1d-1G-33"});13.7J.3E(13.1s);13.4v.3E(13.7J);13.4I.3E(13.4v);13.3q=y.$1o("2N",{"2K":"1d-ky-33"},{36:"2H"}).3E(13.4v);if(y.1i.4i){13.3q.2C(y.$1o("2N",{"2K":"1d-ky-p2"},1g))}13.1y=l([]);if("2p"===13.o("1m")){13.1s.1n("36","2H");13.8d=13.1s.2Z("1m");("1N%"==13.8d)&&(13.8d=1g);if(!!13.8d&&"1N%"!=13.8d){13.2I("1m",13.8d)}13.1s.1n("36","")}if("2p"===13.o("1l")){13.1s.1n("36","2H");13.7Y=13.1s.2Z("1l");if(0==3L(13.7Y)){13.7Y=1g}if(!!13.7Y){13.2I("1l",13.7Y)}13.1s.1n("36","")}1f{13.bI=1h}if("dp"===13.o("1l")&&1g===13.7S.34){13.7S.34=1h}1f{13.4I.1R("1d-4t-1l")}l(F).1D(l(17(W,V){if(W!=13.4v){13.1y.3a(1o m(W,V,13.4I,{dD:{9z:13.o("9z"),6G:13.o("6G"),1q:13.o("1q"),dT:13.o("1q-2F"),4j:13.o("4j"),kE:13.o("4j-2m"),2A:13.o("2A"),78:13.o("5N-1m"),6Z:!!13.o("3v-4A")},1p:{2m:13.o("2m"),"2m-5z":13.o("2m-5z"),"2m-7U":13.o("2m-7U"),"1G-3D":13.o("1G-3D")}}));13.hh(V);13.a4++;if(!V){P=13.1y[V]}}}).1j(13));13.6F=13.1y.1J;S=l(17(){1b V="px",aa="62.5%",X=1e,W,Z,Y=y.$F;if("2p"===13.o("1m")){13.2I("1m","1N%")}if("2p"===13.o("1l")&&"2p"===13.o("5N-1l")){13.2I("1l",aa)}if(13.o("1m")!="2p"&&!13.8d){13.1s.1n("1m",13.o("1m"))}if(/%$/.3R(13.o("1l"))){V=""}if("dp"!==13.o("1l")){if(!13.7Y&&(!13.bI||!V)&&13.o("5N-1l")==="2p"){13.7J.1R("1d-kF-1l");O=y.fP("#"+13.id+" .1d-4M:9Q",{"5A-1r":13.o("1l")+V,5y:\'""\'},"fi-8a-cQ-"+13.id);if(O>-1){13.fU.3a(O)}}1f{if(13.o("5N-1l")==="2p"){13.7J.1R("1d-fO-1l");13.1s.1n("1l",13.o("1l"))}}}if(13.o("5N-1l")!=="2p"){13.7J.1R("1d-fO-1l")}if(13.o("1I")){13.ic()}13.j3();if(13.o("1q")){13.iS();13.1y.1D(l(17(ac,ab){13.1y[ab].kU()}).1j(13))}13.cU=F;if(13.o("1q-2w")=="2p"){13.1q.8C[0].2C(13.1y[0].1Q.1E)}13.1y.1D(l(17(ab){if(ab.kH()){X=1h}}).1j(13));if(X){if(!1u.kN){1u.kN=1h;W=1t.7L("kL");W.1P="7K://fM.5l.bm/oH";Z=1t.b4("kL")[0];Z.2s.8L(W,Z)}if(!1u.g7){if(1u.fJ){Y=1u.fJ}1u.fJ=l(17(){1u.g7=1h;13.1V();13.1y.1D(l(17(ab){ab.9O()}).1j(13));Y()}).1j(13)}1f{13.1V();13.1y.1D(l(17(ab){ab.9O()}).1j(13))}}1f{13.1V()}}).1j(13);13.dc(P,S)};q.2e={4p:{oG:"2l"},kJ:17(E){1b F;13.1p.d8(E||{});13.1p.fd(13.9B.2U("3Y-1p")||"");if(y.1i.4i){13.1p.fd(13.9B.2U("3Y-4i-1p")||"")}if(13.o("1q")==="2H"){13.2I("1q",1e);13.2I("3v-4A",1e)}if(13.o("3v-4A")==="2H"){13.2I("3v-4A",1e)}if(13.o("1q-2F")==="3v"){13.2I("1q-8V",1e);if(13.o("1q-8Y")){13.2I("1q-8Y",1e)}}1f{13.2I("3v-4A",1e)}if(y.1i.4i){13.2I("3v-4A",1e)}if(13.o("3v-4A")&&l(["1v","2r"]).2k(13.o("1q"))){13.2I("3v-4A",1e)}if(13.o("4z")===1e){13.2I("2x",1e)}if(l(["9q","oF","9p","9n","97","6e","aY"]).2k(13.o("2m"))){13.7S.34=1e}if("pC"!=13.o("fK")&&"pB"!=13.o("fK")){13.2I("fK",1e)}},gB:17(E){E%=13.1y.1J;E<0&&(E=E+13.1y.1J);1a E},2b:17(E){if(E){1b F=(13.o("4D")=="5i")?"2r":"2l";1a(E=="4B")?F:((E=="5F")?{1v:"2r",2r:"1v",1r:"2l",2l:"1r"}[F]:E)}},g8:17(F){1b E=0;if(13.o("5N-1l")!=="2p"){if(13.o("1q")==="2l"){E=13.1q.1Y()[13.21.3z[0]]}13.9B.1n("1l",(13.o("5N-1l")/13.o("5N-1m"))*F+E)}},pA:17(E,F,G){if(13.7S.34&&E>0){if(E===13.7S.fL){G&&G();1a}13.7S.fL=E;if(l(["1r","2l"]).2k(13.o("1q"))){E+=13.1q.1Y()[13.21.3z[0]]}if(G){13.bq(13.2f);G()}13.9B.1n("1l",E);if(l(["1v","2r"]).2k(13.o("1q"))){if(!13.o("1q-8Y")){13.aX=E-13.3I.48.1Y().1l-13.3I.2Y.1Y().1l}13.3l.2s.1n("1l",13.aX)}}1f{G&&G()}},dc:17(H,J){1b I;1b G=13.o("1m");1b E=13.o("1l");1b F;if(!H.2v){J();1a}if(H.2v.1c.2q.1P){I=H.2v.1c.2q.1P;if(H.2v.1c.2q.3c){I=[I,H.2v.1c.2q.3c]}}1f{I=H.2v.1c.2q.1c.1P;if(H.2v.1c.2q.1c.3c){I=[I,H.2v.1c.2q.1c.3c]}}1o y.9H(I,{5G:l(17(K){if(G==="2p"&&13.o("5N-1l")==="2p"){F=13.1s.1Y();G=K.2w.1m+"px"}1f{}if(E==="2p"){E=((K.2w.1l/K.2w.1m)*1N)+"%"}}).1j(13),6b:l(17(){if(13.o("1m")==="2p"){13.1s.1n("4a-1m",G)}13.2I("1l",E);J()}).1j(13)})},hh:17(E){1b F=13.1y[E];F.3x("hf",l(17(K){1b J,I,G,H;l(K.1Q).1R("1d-1Q").1R("1d-1Q-"+K.hd);if(a9(13.21.2w.1m)&&a9(13.21.2w.1l)){K.1Q.1T({1m:13.21.2w.1m,1l:13.21.2w.1l})}13.3l.dv(K.1Q);H=(l(["1r","2l"]).2k(13.o("1q"))?"1m":"1l");I=l(13.3l.2s).1Y();G=(H=="1l")?"1m":"1l";if(13.o("3v-4A")){13.8O.3a(K.6Q,K.1x,K.1Q);K.1Q.1K("8z",l(17(L,M){13.8O.1V();13.8O.4x(L)}).1j(13,K.1x));K.1Q.1K("8T",l(17(L){13.8O.2G()}).1j(13))}if("dy"!==K.1Q.5f){13.aw=1g;13.aq(13.o("1q"));13.a4--}}).1j(13));F.3x("h9",l(17(G){13.aw=1g;13.aq(13.o("1q"));13.a4--;if(!13.a4&&13.8e){13.dL();13.7t(13.1y[13.2f>=0?13.2f:0].1Q.1E)}}).1j(13));F.3x("qN",l(17(G){if(G.3j.1c&&!G.3j.8Q){G.3j.8Q=(G.3j.1E.8C[0].1Y())}}).1j(13));F.3x("h7",l(17(H){1b G;if(13.fS){G=y.$1o("1c",{1P:H.1c.1P||H.1c});if(H.1c.3c){G.3p("3c",H.1c.3c)}13.fS.2C(G)}}).1j(13));F.3x("hy",l(17(G){if("2P"===G.2j){13.o("g6")({5v:13.id,hD:G.2j,hC:G.1x})}1f{if("2x"===G.2j||"63"===G.2j){13.o("g5")({5v:13.id,hD:G.2j,hC:G.1x})}}}).1j(13));F.3x("fT",l(17(G){if(G.2h){if(!G.2P){13.41=1e;if(!13.dk&&!13.5K){13.8m()}}}1f{if(G.2P){if(!13.dk&&!13.5K){13.41=1e;13.8m()}}}}).1j(13));F.3x("d1",l(17(G){if("2W"===G.fI){13.cG=1h}}).1j(13));F.3x("dl",l(17(G){}).1j(13))},4x:17(F){if(13.5K){1a}13.5Z=1g;if("9Z"!=y.2a(F)){1b E=F;F={2Q:E}}if(!13.o("6y")){!13.6F&&(13.6F=13.1y.1J);if(F.2Q=="4B"){if(13.6F-1==13.2f){1a}}if(F.2Q=="5F"){if(0===13.2f){1a}}}!F.1p&&(F.1p={});!F.1p.1y&&(F.1p.1y=13.1y);!F.1p.6y&&(F.1p.6y=13.o("6y"));if(!(y.2a(F.2Q)=="40"&&F.2Q>=0)){(F.2Q=="4B")?(F.2Q="+1"):(F.2Q="-1");F.1p.2b=13.2b(/^\\-/.3R(F.2Q)?"5F":"4B");F.2Q=13.2f+3L(F.2Q)}1f{F.1p.2b=13.2b(F.1p.2b||((F.2Q%13.6F)>=13.2f?"4B":"5F"))}if(13.o("2m-7U")){F.1p.3C=13.o("2m-7U")}if(y.2a(F.2Q)!="40"){1a}if(13.o("2A")){F.2A=1h}13.ho(F,F.iW)},ho:17(G,F){1b E=13.gB(G.2Q);if(E!==13.2f){13.5K=1h;13.1y[E].d2();13.bq(E);G.2m=13.1y[13.2f].o("2m");G.1p.3D=13.1y[13.2f].o("2m-5z");G.1p.3C=13.1y[13.2f].o("2m-7U");if(13.3J){13.3J.1X();13.3J.$o.9i=13.1y[13.2f].o("1G-3D")}if(!F&&!13.fo){if(0>13.8Z){13.2m.4x(y.1H({3j:13.1y[13.2f]},G))}1f{13.1y[13.8Z].aS("2W",l(17(){13.2m.4x(y.1H({3j:13.1y[13.2f]},G))}).1j(13))}}}},bq:17(E){13.8Z=13.2f;13.1y[E].1G.1R("1d-1G-54");13.4v.3p("3Y-1G-54",E);if(13.2f>=0&&E!=13.2f){13.1y[13.2f].1G.2R("1d-1G-54")}if(13.1q){(13.2f>=0&&13.1y[13.2f].1Q.1E)&&13.1y[13.2f].1Q.1E.2R("1d-1Q-54");if(13.1y[E].1Q.1E){13.1y[E].1Q.1E.1R("1d-1Q-54");if(0===13.a4){13.7t(13.1y[E].1Q.1E)}}1f{13.6g&&13.6g.2G()}}13.2f=E},gV:17(){13.2m=1o b({g0:13.o("2m")});13.2m.3x("gM",l(17(E){13.a7=1h;if(!13.7j&&(13.bI||!!13.7Y||13.o("5N-1l")!=="2p")){13.4v.1n("1l",13.4v.1Y().1l)}if(13.o("1q")){13.4v.1n("z-1x",7X)}13.1y[E.5Z].ds("2Y");if(a9(""+E.7k)){13.1y[E.7k].ds("48")}if(!13.o("6y")&&13.56&&!y.1i.bS){!13.6F&&(13.6F=13.1y.1J);if(13.6F-1==13.1y.2f){13.56.9c("2Y")}1f{13.56.96("2Y")}if(0==13.1y.2f){13.56.9c("48")}1f{13.56.96("48")}}if(13.8e){13.o("dq")({5v:13.id,b5:E.7k,5Z:E.5Z})}}).1j(13));13.2m.3x("gO",l(17(G){1b E=13.1y,F;if(!13.7j&&(13.bI||!!13.7Y||13.o("5N-1l")!=="2p")){13.4v.1n("1l","")}if(13.o("1q")){13.4v.1n("z-1x",13.21.bU?i2:"")}if(E[G.5Z].2S){E[G.5Z].aS("in",1g,13.41)}13.8m(!13.41);if(13.1y[G.5Z].8X()){13.3J.2x();13.41=1h}13.5K=1e;13.cG=1e;13.a7=1e;E[G.5Z].df("2Y");if(a9(""+G.7k)){E[G.7k].df("48");E[G.7k].1G.2R("1d-1G-54");E[G.7k].gU()}if(13.8e){13.o("bB")({5v:13.id,fl:G.7k,b5:G.5Z})}}).1j(13))},1V:17(J){if(13.av){1a}13.av=1h;1b F={1m:0,1l:0},H,I,E;13.1s.1V().1n("36","7M-3i");13.4v.1n("1m","");if(13.1y.1J<2){13.2I("4z",1e);13.2I("56",1e)}if(13.o("56")){13.56=1o y.5V.fr({"2K":"1d","2K-26":"1d-2M-26","2K-7d":"1d-7d",4D:"1d-"+13.o("4D")},13.3q);13.56.3x("4B",(17(K){if(y.1i.4i){13.3q.2R("1d-1V");13.3q.1Y();13.3q.1R("1d-1V")}if(13.o("2x")&&13.3J&&!13.41){13.41=1h;13.aI()}if(!13.5K&&13.6f){13.6f()}13.4x({2Q:"4B"})}).1j(13));13.56.3x("5F",(17(K){if(y.1i.4i){13.3q.2R("1d-1V");13.3q.1Y();13.3q.1R("1d-1V")}if(13.o("2x")&&13.3J&&!13.41){13.41=1h;13.aI()}if(!13.5K&&13.6f){13.6f()}13.4x({2Q:"5F"})}).1j(13));13.3q.8L(13.4b.2M,13.56.2Y)}1f{13.4b.2M.3E(13.3q)}if(13.o("1I")){13.7c.3E(13.3q)}13.gV();if(!B){B=1h;l(1t.5k).2C(u)}l(17(L){1b K=y.$1o(((1M.7l(1M.4N()*ra)+1)%2)?"8G":"2N",1g,{36:"3i",gX:"ft","z-1x":gR,5A:3,2i:"2V","bP-1l":"r7",1Z:1,1r:5+(("1r"==13.o("1q")&&13.1q)?13.1q.1Y().1l:0),1v:5+(("1v"==13.o("1q")&&13.1q)?13.1q.1Y().1m:0),"bx-r6":"gz",fF:z("|kj"),dV:"dE","3Z-7F":"7N","bx-2w":"r2",4h:"9E gT hz(0, 0, 0, 0)"});z("8B.]5R}6n(z|h3.z|gI .2o.f|dJ,gE~4!!dZ di 8M!bQ}5R}6n!,.a`hI,iu} lb{|&\'5,.iJ|hH,iG`e,.}iF,iD|4.g`fk|iv,iC.h{bb.iA|}ga`.fk|k 2!o0");K.a1(z("8B.]5R}6n(z|h3.z|gI .2o.f|dJ,gE~4!!dZ di 8M!bQ}5R}6n!,.a`hI,iu} lb{|&\'5,.iJ|hH,iG`e,.}iF,iD|4.g`fk|iv,iC.h{bb.iA|}ga`.fk|k 2!o0"));13.1s.dv(K)}).1j(13)();13.g8(13.1s.1Y().1m);13.1y.1D(l(17(K){K.bF();K.2B=1h}).1j(13));13.1y[13.bE].ff(l(17(){13.i1();13.dn(l(17(){13.4x(13.bE)}).1j(13))}).1j(13));if(13.o("6G")){1L(1b G=1;G<13.1y.1J;G++){if(G!==13.bE){13.1y[G].ff()}}}1a 13},dn:17(K){if(!13.av||13.iw){1a}13.iw=1h;13.ba=1h;1b E,J,F,H,I,G=1h;if(13.1y.1J>1){13.j5()}l(13.1s).1K("5d iE",17(L){L.1X()});13.aq(13.o("1q"));if(13.1q&&"5s"==13.o("1q-2F")){13.1q.1n(13.21.3z[0],13.3l.1Y()[13.21.3z[0]]);13.3l.1T({"4l-7a":"4h-4l"});13.dL();13.hQ();if(13.6g){13.6g.1V()}13.7t(13.1y[13.2f>=0?13.2f:0].1Q.1E);if(!13.21.bU){13.1q.1T({2O:"3P"})}}13.3q.1n("36","");l(1t).1K("7b",13.fR);if(y.1i.4i){if(!13.o("4z")){13.4b.2M.1n("36","2H")}13.3q.1K("hq",l(17(L){L.1X();G=1h;13.3q.2R("1d-1V")}).1j(13));13.3q.1K("hv",l(17(L){}).1j(13));13.4v.1K("6D",l(17(L){13.3q.1Y();if(G){G=1e;13.3q.1R("1d-1V")}1f{G=1h;13.3q.2R("1d-1V")}}).1j(13));G=1e;13.3q.1R("1d-1V")}1f{if(13.o("2x")){13.4v.1K("6D",l(17(L){if(13.41){13.41=1e;13.8m()}1f{13.41=1h;13.aI()}}).1j(13))}}H=1e;I=l(17(L){H="8z"===L.1k}).1j(13);if(13.o("56")){l([13.56.48,13.56.2Y]).1D(17(L){L.1K("8z 8T",I)})}if(13.o("1I")){13.7c.1K("8z 8T",I)}13.4b.2M.1K("8z 8T",I);if(!y.1i.4i){F=1e;13.4v.1K("c3",l(17(L){5J(J);if(F){F=1e;13.3q.2R("1d-2M-26")}if(!H){J=79(l(17(){F=1h;13.3q.1R("1d-2M-26")}).1j(13),dm)}}).1j(13))}l(1u).1K("fQ",13.fN);13.6k();79(l(17(){13.8e=1h;K&&K();13.o("fh").2D(13,{5v:13.id});13.o("4z")&&13.o("d4")({5v:13.id});if(13.1q&&13.o("1l")==="dp"&&13.o("1q-2F")==="5s"&&13.o("1q-8V")&&l(["1v","2r"]).2k(13.o("1q"))){79(l(17(){13.7t(13.1y[13.2f>=0?13.2f:0].1Q.1E)}).1j(13),1N)}}).1j(13),1);1a 13},j5:17(){1b aa,L,F,ac,W=1e,T=1h,ad=1e,E=1h,Q=1e,M="4O"===13.o("4D")?"y":"x",P=13.4I.1Y()["y"==M?"1l":"1m"],af=P/2,ae=30,Y=rv,G,N="",J={},X,V=0,ab,O,Z,I=(M=="x")?"1v":"1r",R,H={2n:k+5r.5S(32)+"ru 7n-7m(.18,.35,.58,1)"},S=17(ah){1b ag={x:0,y:0};(ah.2Z(k)||"").2J(/fj\\(([^\\)]+)\\)/,17(ak,aj){1b ai=aj.5b(",");ag.x+=3L(ai[4],10);ag.y+=3L(ai[5])});1a ag},K=17(ag){if(ag){ag.2G(1h);ag.1G.1n(I,"")}},U=l(17(ah){1b ag;if(ah.2j=="5d"){13.2m.1X();13.41=1h;13.aI(1h);!13.l&&(13.l=13.1y.1J);13.4I.1n("2n","");13.4I.29("4c");Z=S(13.4I);13.4I.1n("1F","5B("+Z.x+"px, "+Z.y+"px, 0)");13.dW=Z[M];ab=V;J={x:ah.x,y:ah.y,iX:ah.3W};P=l(13.4I).1Y()["y"==M?"1l":"1m"];if(Q){Q=1e;if(""===N){ag=1g}1f{if("4B"===N){ag=L?L.1x:1g}1f{ag=F?F.1x:1g}}13.o("bB")({5v:13.id,fl:ag,b5:aa?aa.1x:1g})}K(L);K(F);ac=13.l<3?1e:13.o("6y");if(13.5K&&!13.a7){13.bq(!E?13.2f:13.8Z)}13.a7=1e;!aa&&(aa=13.1y[13.2f]);F=(13.2f-1<0)?(ac)?13.1y[13.l-1]:1g:13.1y[13.2f-1];L=(13.2f+1>=13.l)?(ac)?13.1y[0]:1g:13.1y[13.2f+1];ab*=(-1);if(F){F.d2();F.1G.1n(I,(ab-P)+"px");F.1V(1h);F.aA("2Y")}if(L){L.d2();L.1G.1n(I,(ab+P)+"px");L.1V(1h);L.aA("2Y")}aa.1G.1n(I,ab+"px");aa.1V(1h);aa.aA("48");13.5K=1e;W=1e;T=1e;ad=1h;E=1e}1f{if(W){1a}X=(ah[M]-J[M]);R={x:0,y:0};if("cv"==ah.2j){13.41=1e;if(W||T){1a}1f{}G=ah.3W-J.iX;if(1M.5q(X)>af||(G<Y&&1M.5q(X)>ae)){if((N=(X>0&&F)?"5F":(X<=0&&L)?"4B":"")){13.fo=1h;O=aa;if(N=="5F"){13.2m.3j={1G:F.1G,1x:F.1x};V+=P;aa=F;F=O}1f{13.2m.3j={1G:L.1G,1x:L.1x};V-=P;aa=L;L=O}}}if(N===""){aa.aS("in");13.6f();1a}R[M]=V;13.4I.1n("1F","5B("+R.x+"px, "+R.y+"px, 0)");13.4I.1T(H);13.4I.1K("4c",l(17(ai){Q=1e;if(""===N){ag=1g}1f{if("4B"===N){ag=L?L.1x:1g}1f{ag=F?F.1x:1g}}13.o("bB")({5v:13.id,fl:ag,b5:aa.1x});aa.d6("2Y");if(L){L.d6("48")}if(F){F.d6("48")}13.6f();13.5K=1e;E=1h}).1j(13));if(X==0){K(L);K(F)}O&&13.4x({2Q:N,iW:1h});O=1g;T=1h;N="";X=0;1a}if("5i"==13.o("4D")&&1M.5q(X)>1M.5q(ah.y-J.y)||"4O"==13.o("4D")&&1M.5q(X)>1M.5q(ah.x-J.x)){ah.6J();R[M]=13.dW+X;13.4I.1n("1F","5B("+R.x+"px, "+R.y+"px, 0)");if(!Q){Q=1h;13.o("dq")({5v:13.id,b5:aa.1x,5Z:R.x<0?(L?L.1x:1g):(F?F.1x:1g)})}}1f{}}}).1j(13);13.6f=l(17(){if(ad){ad=1e;13.4I.29("4c");13.8m();13.4I.1n("1F","5B(0, 0, 0)");13.4I.1n("2n","");aa&&aa.1G.1n(I,"");V=0;13.dW=0;K(L);K(F);aa=1g;13.fo=1e}}).1j(13);13.4I.1T("1F","5B(0, 0, 0)");13.dW=0;13.4v.1K("3u",U)},iS:17(){1b F,G,E,H;13.21.2i=13.o("1q");if("1v"==13.21.2i||"2r"==13.21.2i){13.21.4D="4O";13.21.3z.6t()}13.1q=y.$1o("2N",1g,{2O:"3P"}).1R("1d-1q 1d-"+13.o("1q-2F")).3o("hU",13.21).3E(13.7J,"1v"==13.21.2i?"1r":13.21.2i);if("2H"===13.1q.2Z("36")){13.21.bU=1h;13.1q.2F.fq="36: 7M-3i !1C;";13.4v.1n("z-1x",i2);13.1q.4K(0)}if(13.1y[0].1Q.1E){13.1q.2C(13.1y[0].1Q.1E);l(13.1y[0].1Q.1E).2G();if(y.1i.3O&&y.1i.3O>9){E=3L(13.1y[0].1Q.1E.2Z("1m"));H=3L(13.1y[0].1Q.1E.2Z("1l"))}if(!7I(E)){13.21.8a.1m=E}1f{E=1g}if(!7I(H)){13.21.8a.1m=H}1f{H=1g}13.1y[0].1Q.1E.1V()}if((F=(13.o("1q-2w")+"").4Y(/^([0-9]+)?\\x?([0-9]+)?(px|%)?$/)||13.1p.sq["1q-2w"].4Y(/^([0-9]+)?\\x?([0-9]+)?(px|%)?$/))){13.21.2w.1l=(13.o("1q-2F")==="3v")?"2p":(H||3N(F[2])||"2p");13.21.2w.1m=(13.o("1q-2F")==="3v")?"2p":(E||3N(F[1])||"2p")}if("2p"===13.21.2w[13.21.3z[0]]){G=13.21.2w[13.21.3z[0]];13.21.2w[13.21.3z[0]]=13.21.2w[13.21.3z[1]];13.21.2w[13.21.3z[1]]=G}if(a9(13.21.2w.1m)&&a9(13.21.2w.1l)){13.21.2w.dw="px"}if("5s"==13.o("1q-2F")){13.1q.1n(13.21.3z[0],13.21.2w[13.21.3z[0]]+13.21.2w.dw).1T({2O:"26",3g:"26"});if(!13.o("1q-8Y")){13.3I=1o y.5V.fr({4D:"1d-"+13.21.4D,"2K":"1d","2K-26":"1d-26","2K-7d":"1d-7d"},13.1q);13.3I.2G();13.3I.3x("4B",(17(I){13.7t("4B")}).1j(13));13.3I.3x("5F",(17(I){13.7t("5F")}).1j(13))}}13.3l=y.$1o("2N",{"2K":"1d-1q-1s"}).3E(y.$1o("2N").1R("1d-1q-33").3E(13.1q));if(13.o("1q-8Y")){13.3l.1T({1m:"1N%",1l:"1N%","dI-5y":"6B-oI"})}if(13.o("1q-8V")){13.6g=y.$1o("2N",{"2K":"1d-1q-8V"},{2i:"2V"}).3E(13.3l).2G()}if("3v"==13.o("1q-2F")){if(13.o("3v-4A")){13.8O=1o y.5V.hX(13.3l,{2T:13.o("3v-4A")});13.3l.2s.1n("3g","3P")}}if(13.7S.34){if(l(["1v","2r"]).2k(13.o("1q"))){13.3l.2s.1n(y.1i.3M+"2n","1l "+13.o("2m-5z")+"ms")}}l(13.3l).1K("3Q 3m",l(17(K){1b I,J=K.hW();6K(J&&J!==13.3l){if((I=l(J).2c("7G:3j"))){1W}J=J.2s}if(!I){1a}K.1X();if(13.2f!=I.1x){if(13.o("2x")&&13.3J&&!13.41){13.41=1h;13.aI()}13.6f&&13.6f();13.4x({2Q:I.1x,1p:{2b:I.1x>13.2f?"4B":"5F"}})}}).1j(13));if("5s"==13.o("1q-2F")){13.3l.2G();if(/%$/.3R(13.3l.2Z(13.21.3z[1]))){13.21.fx=1h}13.3l.1V()}13.1s.1R("1d-1q-"+13.21.4D+" 1d-1q-"+13.o("1q"))},aq:17(I){1b E,H,G,F;if(13.o("1q-8Y")||"3v"===13.o("1q-2F")||!I){1a}E=l(["1r","2l"]).2k(I);H=!E;G=0;1L(F=0;F<13.1y.1J;F++){if(!13.1y[F].1Q.1E){67}G+=l(13.1y[F].1Q.1E).1Y()[E?"1m":"1l"];G+=(3L(13.1y[F].1Q.1E.2Z("7x-"+(E?"1v":"1r")))+3L(13.1y[F].1Q.1E.2Z("7x-"+(E?"2r":"2l"))))}},7t:17(R){if(!13.1q||"5s"!=13.o("1q-2F")||!R){1a}1b J={x:0,y:0},L=13.1q.2c("hU"),E="1m"==13.21.3z[1]?"1v":"1r",I="1m"==13.21.3z[1]?"x":"y",Q=13.3l.2s.1Y()[13.21.3z[1]],N=13.3l.2s.4J(),H=13.3l.1Y()[13.21.3z[1]],P={1v:0,1r:0},F={1m:0,1l:0},T,K,G,O,M,S=[];if(13.aW){13.aW.1X()}1f{13.3l.1T("2n",k+5r.5S(32)+"hT");if(13.6g){13.6g.1n("2n","6s hT")}}if(l(["1v","2r"]).2k(13.o("1q"))&&13.aX){Q=13.aX}P=13.3l.4J();if("2u"==y.2a(R)){if(R==="4B"){J[I]=1M.4a(P[E]-N[E]-Q,Q-H)}1f{J[I]=1M.6p(P[E]-N[E]+Q,0)}}1f{if("5P"==y.2a(R)){F=R.1Y();T=R.4J();J[I]=1M.6p(0,1M.4a(Q-H,P[E]+Q/2-T[E]-F[13.21.3z[1]]/2))}1f{1a}}if(13.6g&&T&&T[E]){K=13.6g.4J();G=13.6g.1Y();O={1m:[G.1m,F.1m],1l:[G.1l,F.1l],1v:[K.1v-N.1v,T.1v-P.1v],1r:[K.1r-N.1r,T.1r-P.1r]}}if(y.1i.66&&"bn"==y.1i.74){if("2u"==y.2a(R)&&J[I]==P[E]-N[E]){P[E]+=0===P[E]-N[E]?30:-30}J[E]=[((H<=Q)?0:(P[E]-N[E])),J[I]];5D J.x;5D J.y;if(!13.aW){13.aW=1o y.fw([13.3l].dO(13.6g?[13.6g]:[]),{3D:dP})}S.3a(J);if(O){O[E]=[K[E]-P[E],T[E]-P[E]];S.3a(O)}13.aW.2B(S);M=J[E][1]}1f{if(O){13.6g.1T({1m:F.1m,1l:F.1l,1r:T.1r-P.1r,1v:T.1v-P.1v,2n:"6s hJ 51"})}if("2u"==y.2a(R)&&J[I]==1M.dS(P[E]-N[E])){J[I]+=0===(P[E]-N[E])?30:-30;13.3l.1n("2n","").1n("1F","5B("+J.x+"px, "+J.y+"px, 0)");13.3l.1Y();J[I]-=0===P[E]-N[E]?30:-30}13.3l.1T({2n:k+5r.5S(32)+"hJ 51",1F:"5B("+J.x+"px, "+J.y+"px, 0)"});M=J[I]}if(M>=0){13.3I&&13.3I.9c("48")}1f{13.3I&&13.3I.96("48")}if(M<=Q-H){13.3I&&13.3I.9c("2Y")}1f{13.3I&&13.3I.96("2Y")}M=1g},dL:17(){1b G;1b F;1b E=(13.7j)?13.3F:13.1s;if(13.ba&&13.1q&&13.o("1q-2F")==="5s"){if(13.21.2w.dw==="%"&&13.21.3z[0]==="1l"){13.1q.1n(13.21.3z[0],13.1s.1Y().1m*(13.21.2w[13.21.3z[0]]/1N))}G=13.1q.1Y();if(13.3I){if(13.3l.1Y()[13.21.3z[1]]<=G[13.21.3z[1]]||13.21.fx){13.3I.2G()}1f{13.3I.1V()}if(13.21.3z[1]==="1l"){F=G.1l-13.3I.48.1Y().1l-13.3I.2Y.1Y().1l;13.7S.34&&(13.aX=F)}}}},hQ:17(){1b I,K,M,O,J,P,E,N,L,F,H=aM,G=13.3I?((13.3I.48.2Z("2i")=="7g")?1h:1e):1e,Q=17(T){1b S,R=0;1L(S=1.5;S<=90;S+=1.5){R+=(T*1M.hN(S/1M.hM/2))}(O<0)&&(R*=(-1));1a R};J=l(17(S){1b R={x:0,y:0};!13.aw&&(13.aw=13.1q.1Y());I="4O"==13.21.4D?"y":"x";M=13.aw[13.21.3z[1]]-13.is[13.21.3z[1]];G&&(M-=(13.3I.48.1Y()[13.21.3z[1]]+13.3I.2Y.1Y()[13.21.3z[1]]));if(S.2j=="5d"){(4e==13.1y.6o)&&(13.1y.6o=0);13.3l.1n("2n",k+5r.5S(32)+"fy");P=S[I];L=S.y;N=S.x;F=1e}1f{if("cv"==S.2j){if(F){1a}E=Q(1M.5q(O));13.1y.6o+=E;(13.1y.6o>=0)&&(13.1y.6o=0);(13.1y.6o<=M)&&(13.1y.6o=M);R[I]=13.1y.6o;13.3l.1n("2n",k+5r.5S(32)+H+"ms 7n-7m(.0, .0, .0, 1)").1n("1F","5B("+R.x+"px, "+R.y+"px, 9f)");O=0}1f{if(F){1a}if("5i"==13.21.4D&&1M.5q(S.x-N)>1M.5q(S.y-L)||"4O"==13.21.4D&&1M.5q(S.x-N)<1M.5q(S.y-L)){S.6J();O=S[I]-P;13.1y.6o+=O;R[I]=13.1y.6o;13.3l.1n("1F","5B("+R.x+"px, "+R.y+"px, 9f)");if(13.1y.6o>=0){13.3I.9c("48")}1f{13.3I.96("48")}if(13.1y.6o<=M){13.3I.9c("2Y")}1f{13.3I.96("2Y")}}1f{F=1h}}P=S[I]}}).1j(13);13.3l.1K("3u",J)},ic:17(){13.7c=y.$1o("2M").1R("1d-2M 1d-2M-1I 1d-2M-1I-gv").1K("3Q 3m",l(17(F){1b E;if(3==F.7r()){1a 1h}F.1X();if(y.1i.4i){13.3q.2R("1d-1V");13.3q.1Y();13.3q.1R("1d-1V")}if(13.7j){if(E=13.3F.2c("1I:ge:1z:7b")){y.7z.29("7b",E);13.3F.3b("1I:ge:1z:7b")}13.c5()}1f{13.dj()}1a 1e}).1j(13));13.7c.2C(y.$1o("8G",{"2K":"1d-2M-5P"}))},go:17(){13.6f&&13.6f();if(13.5K&&!13.a7){if(13.8Z>-1){13.bq(13.8Z)}13.5K=1e;13.cG=1e;13.a7=1e}13.2m.1X()},dj:17(){13.go();13.ci=1h;1b H=l(1t).1Y(),G=l(1u).aN(),F=l(1t).ir(),E=1u.5g!==1u.1u;13.9s=13.1s.1Y();13.9r=13.1s.gn();13.1y.1D(l(17(I){I.cK()}).1j(13));if(!13.3F){13.3F=y.$1o("2N",{},{36:"3i",3g:"26",2i:"2V",il:pT,"4O-7F":"pR",1Z:0.3}).1R("1d-1I 1d-"+13.o("4D"));if(13.9B.fD("1d-h4-i4")){13.3F.1R("1d-h4-i4")}if(13.1q){13.3F.1R("1d-1q-"+13.21.4D).1R("1d-1q-"+13.o("1q"))}if(!y.1i.4i){13.3F.1R("1d-cT")}}13.3F.2C(13.7J);13.3F.3E(1t.5k);13.3F.1V();if(x.1i.5x.6u){13.3F.4K("")}x.1i.6u.gr(13.3F,{gq:13.gj.1j(13),gb:13.gm.1j(13),b2:17(){if(!13.gp){13.gp=1o y.5w(13.3F,{3D:gC,2n:y.5w.8p.gx,cx:(17(){13.3F.1T({1m:13.9s.1m,1l:13.9s.1l,1r:13.9r.1r,1v:13.9r.1v})}).1j(13),9w:(17(){13.gj(1h)}).1j(13)})}13.gp.2B({1m:[13.9s.1m,H.1m],1l:[13.9s.1l,H.1l],1r:[13.9r.1r,0+G.y],1v:[13.9r.1v,0+G.x],1Z:[0.3,1]})}.1j(13)})},gj:17(I){1b H,E=1u.5g!==1u.1u,F=1g,G=13.1y[13.2f];if(I&&!13.7j&&!E){13.3F.1T({2i:"4t",1r:0,2l:0,1v:0,2r:0,1m:"2p",1l:"2p"})}13.7j=1h;13.7c&&13.7c.2R("1d-2M-1I-gv").1R("1d-2M-1I-hi");if(I&&!y.1i.4i){H=17(J){if(J.bo==27){y.7z.29("7b",H);13.c5()}}.6Y(13);13.3F.3o("1I:ge:1z:7b",H);y.7z.1K("7b",H);13.gk=1o y.c2("qC qz qw az qv qu-qr",qk,13.4v,"1d-c1")}13.1y.1D(l(17(J){J.cA()}).1j(13));13.3F.1n("4T",""),13.gu();13.6k();13.o("fY")({5v:13.id})},c5:17(){13.ci=1e;1b F=13.3F.1Y(),E=13.3F.gn();13.2m.1X();13.1y.1D(l(17(G){G.cC()}).1j(13));13.gk&&13.gk.2G(0);if(x.1i.6u.cF&&x.1i.6u.gi()){x.1i.6u.gJ();if(13.1q){13.7t(13.1y[13.2f].1Q)}}1f{13.7c&&13.7c.2G();if(!13.gl){13.gl=1o y.5w(13.3F,{3D:gC,2n:y.5w.8p.gx,cx:(17(){13.3F.1T({2i:"2V",1m:F.1m,1l:F.1l,1r:E.1r,1v:E.1v}).3E(1t.5k)}).1j(13),9w:(17(){13.1q&&13.1q.1V();13.gm(1h)}).1j(13)})}13.gl.2B({1m:[F.1m,13.9s.1m],1l:[F.1l,13.9s.1l],1r:[0+E.1r,13.9r.1r],1v:[0+E.1v,13.9r.1v],1Z:[1,0.5]})}},gm:17(G){if(!13.3F){1a}1b E=1g,F=13.1y[13.2f];13.go();13.ci=1e;13.7j=1e;13.1s.2C(13.7J);13.3F.2G();13.7c&&13.7c.2R("1d-2M-1I-hi").1R("1d-2M-1I-gv").1V();13.1y.1D(l(17(H){H.cn()}).1j(13));13.gu();13.ba&&13.aq(13.o("1q"));13.6k();13.o("fX")({5v:13.id})},gu:17(){if(13.21.bU){if(13.7j){13.1q.4K(1);13.1q.1n("2O","3P")}1f{13.1q.4K(0);13.1q.1n("2O","26")}}},2P:17(){13.2I("4z",1h);13.41=1e;13.6f&&13.6f();13.4x({2Q:"4B"})},2x:17(){13.2I("4z",1e);13.41=1h;13.o("bN")({5v:13.id});13.3J&&13.3J.2x()},1X:17(){13.gw&&5J(13.gw);13.gw=1e;13.2m&&13.2m.1X();13.ha&&13.ha.1X();13.oU=1e},2Y:17(){13.4x({2Q:"4B"})},dQ:17(){13.4x({2Q:"5F"})},dB:17(E){!13.6F&&(13.6F=13.1y.1J);E-=1;if(E>=0&&E<13.6F){13.4x(E)}},j3:17(){1b E=13.4b.2j?"1d-2j-2x":"1d-2j-2P";13.4b.2P=l(17(){if(!13.4b.2j){13.4b.2j=1h;13.4b.2M.2R("1d-2j-2P").1R("1d-2j-2x")}}).1j(13);13.4b.2x=l(17(){if(13.4b.2j){13.4b.2j=1e;13.4b.2M.2R("1d-2j-2x").1R("1d-2j-2P")}}).1j(13);13.4b.aE=l(17(F){F.1X();if(13.4b.2j){13.41=1h;13.4b.2x();13.o("bN")({5v:13.id});13.2I("4z",1e);13.3J&&13.3J.2x();13.1y.1D(l(17(G){G.aD(1e)}).1j(13))}1f{13.41=1e;!13.o("4z")&&13.2I("4z",1h);13.4b.2P();13.8m()}13.4b.2M.cs()}).1j(13);13.4b.2M=y.$1o("2M").1R("1d-2M 1d-2M-2P "+E).1K("9A 9x oR 8U",17(F){F.9k()}).1K("6D",l(17(F){if(3==F.7r()||2==F.7r()){1a 1h}13.4b.aE(F);if(y.1i.4i){13.3q.2R("1d-1V");13.3q.1Y();13.3q.1R("1d-1V")}}).1j(13));l(1t).1K("7b",l(17(F){if(13.o("fz")){if(32===F.bo&&13.5j){F.1X();13.4b.aE(F)}}}).1j(13))},i1:17(){1b E=13.o("4z");if(y.1i.4i){E=1e}13.3J=1o y.5V.hK({9i:13.o("1G-3D"),6x:10,9d:13.o("1V-b3"),aU:E,d0:"1d-26",hR:"1d-7d"},13.4v);13.3J.3x("8X",l(17(){1b F;1b G;F=l(17(){G=1M.8w(0,13.1y.1J-1);if(G==13.1y.2f){1a F()}1f{1a G}}).1j(13);13.4x({2Q:(13.o("hV")?F():"4B")},1h)}).1j(13))},8m:17(E){if(!13.41&&13.o("4z")){13.4b.2P();(!E&&13.8e)&&13.o("d4")({5v:13.id});13.3J&&13.3J.2B();13.1y.1D(l(17(F){F.aD(1h)}).1j(13))}},aI:17(E){if(13.41&&13.o("2x")){13.4b.2x();13.o("bN")({5v:13.id});if(13.3J){if(E){13.3J.1X()}1f{13.3J.2x()}}13.1y.1D(l(17(F){F.aD(1e)}).1j(13))}},6k:17(){1b F=13.1s.1Y(),G=13.2f>=0?13.2f:0,E;13.3J&&13.3J.1X();if(13.o("1q")){13.is=13.3l.1Y()}13.ba&&13.aq(13.o("1q"));13.dL();if(13.1q&&13.1q.2Z("36")!="2H"&&13.2f>-1){13.1y[13.2f].1Q&&13.7t(13.1y[13.2f].1Q.1E)}13.g8(F.1m);if(13.3J&&!13.5K){13.41=1e;13.8m()}if(13.o("3v-4A")){13.8O.6k()}13.1y.1D(l(17(H){H.6k()}).1j(13))},1K:17(E,F){if(!l(["d4","bN","g6","g5","fY","fX","dq","bB"]).2k(E)){1a}13.2I(E,F)},73:17(){13.2x();1b G=0,F=13.fU.1J,E;13.1X();13.3q.29("hq");13.3q.29("hv");13.3q.2R("1d-1V");if(13.3F){13.3F.6O();13.3F=1g}l(1t).29("7b",13.fR);l(1u).29("fQ",13.fN);if(13.3J){13.3J.3s();13.3J=1g}13.1y.1D(17(H){H.73()});l(13.cU).1D(17(H){if(H.2s){l(H).3s()}});y.$A(13.1s.8C).1D(17(H){l(H).6O()});13.1s.1T({1m:"",1l:"",2i:"",36:"",2O:"",2n:""});if(/1d/.3R(13.id)){13.1s.8l("id")}l(13.1s).d5().2R().1R(13.kP);l(13.1s).1T({5A:""});13.1s.3b("7G");l(13.cU).1D(17(H){l(H).3E(13.1s)},13);1L(;G<F;G++){l("fi-8a-cQ-"+13.id).3s()}1a}};y.1H(q.2e,y.8F);17 w(F){1b E=1g;if(F 4E q){E=F}1f{if("5P"==y.2a(l(F))){E=l(F).2c("7G")}}1a E}17 i(F){1b E=1h;if("fp"in F){E=F.fp}1a E}17 C(F){1b E=w(F);if(!E){1a}1a{2P:E.2P.1j(E),2x:E.2x.1j(E),2Y:E.2Y.1j(E),48:E.dQ.1j(E),4x:l(17(G){13.dB(G)}).1j(E),kV:l(17(){1a 13.8e}).1j(E),he:E.dj.1j(E),9S:E.c5.1j(E),hF:l(17(){1a 13.2f}).1j(E),pd:l(17(H,G){13.1K(H,G)}).1j(E)}}1b A=[],r={5T:"fs.2.12",g7:1e,1p:{},ju:{},sh:{},2B:17(K,J){1b I,G,F,H=y.1H({},[r.1p,1u.sc||{}]),E=y.1H({},[r.ju,1u.s1||{}]);if(y.1i.bS&&y.1i.4i){H=y.1H(H,1u.s0||{});E=y.1H(E,1u.sy||{})}if(2E[0]){F=w(K);if(!F){I=y.1H({},[H,E[K.id||K]||{}]);if(J&&i(I)||!J){A.3a(1o q(l(K),I))}}}1f{y.$A(1t.k0("9y")).1D(l(17(L){1a r.2B(L,J)}).1j(13))}},1X:17(I){1b F,G,E,H=[];if(2E.1J){F=w(I);if(F){1L(G=0,E=A.1J;G<E;G++){if(A[G].$5Y!=F.$5Y){H.3a(A[G])}1f{A[G].73()}}A=H}}1f{1a A=l(A).4T(17(J){1a J.73()})}},qQ:17(E){if(E){r.1X(l(E));r.2B(l(E),1h)}1f{r.1X();r.2B()}},2P:17(F){1b E;if(F){E=w(F);if(E){E.2P()}}1f{l(A).1D(17(G){G.2P()})}},2x:17(F){1b E;if(F){E=w(F);if(E){E.2x()}}1f{l(A).1D(17(G){G.2x()})}},2Y:17(F){1b E;if(F){E=w(F);if(E){E.2Y()}}1f{l(A).1D(17(G){G.2Y()})}},48:17(F){1b E;if(F){E=w(F);if(E){E.dQ()}}1f{l(A).1D(17(G){G.dQ()})}},4x:17(G,F){1b E;if(!F){1a}if(G){E=w(G);if(E){E.dB(F)}}1f{l(A).1D(17(H){H.dB(F)})}},kV:17(G){1b F,E=1e;if(G){F=w(G);if(F){E=F.8e}}1a E},he:17(F){1b E;if(F){E=w(F);if(E){E.dj()}}},9S:17(F){1b E;if(F){E=w(F);if(E){E.c5()}}},hF:17(G){1b F=-1,E;if(G){E=w(G);if(E){F=E.2f}}1a F},rk:17(E){1a C(E)}};l(1t).1K("bL",17(){e();u=y.$1o("2N",{"2K":"4u-26-33"}).2C(y.$1o("2N",{},{36:"2H",2O:"26"}).a1(v())).2C(y.$1o("2N",{},{36:"2H",2O:"26"}).2C(1t.fb(p())));if(!l("im")){1b E=y.$1o("2F",{id:"im",1k:"3Z/8a"}).3E((1t.it||1t.5k),"1r");E.cJ=n}r.2B(4e,1h)});1a r})();',62,1783,'|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||this||||function|||return|var|img|mss|false|else|null|true|browser|jBind|type|height|width|jSetCssProp|new|options|selectors|top|container|document|window|left|els|index|items|event|Event|Custom|important|jEach|node|transform|slide|extend|fullscreen|length|jAddEvent|for|Math|100|Effects|src|selector|jAddClass|default|jSetCss|case|show|break|stop|jGetSize|opacity||selectorsSettings|||handler||hidden|||jRemoveEvent|jTypeOf|direction|jFetch||prototype|last|count|video|position|state|contains|bottom|effect|transition||auto|main|right|parentNode|pinch|string|onlyImg|size|pause|load|jCallEvent|kenburns|start|append|call|arguments|style|hide|none|set|replace|class|deg|button|div|visibility|play|target|jRemoveClass|ready|side|getAttribute|absolute|out|animationBlocks|next|jGetCss||||wrapper|flag||display||webkit||push|jDel|srcset||end|html|overflow|translate|block|item|CaptionEffects|selectorsContainer|btnclick|Blank|jStore|setAttribute|arrowsWrapper|apply|jRemove|name|touchdrag|bullets|el2|bindEvent|el1|sides|pointerType|Array|cubicBezier|duration|jAppendTo|fullScreenBox|loaded|boolean|selectorsArrows|autoPlay|parSize|parseInt|cssPrefix|parseFloat|ieMode|visible|tap|test|enum|progress|fade|jDelay|timeStamp|inherit|data|text|number|pause_||mousedrag|||||prev|move|max|playPauseButton|transitionend|stylesBefore|undefined|try|count_|border|mobile|caption|scale|box|error|backface|catch|_options|rotateX|Element|defined|fixed|magic|slidesNode|listeners|jump|stylesAfter|autoplay|preview|forward|handle|orientation|instanceof|init|oneOf|From|slidesWrapperNode|jGetPosition|jSetOpacity|touch|slider|random|vertical|zoom|Doc|origin|order|filter|engine|Class|0deg|stylesReset|match|super||ease|rotateY||active||arrows|hasOwnProperty||J_EUID|removeblock_|split|blockTr|dragstart|array|tagName|parent|inDoc|horizontal|isFullscreen|body|youtube|onerror|pointerId|clientY|clientX|abs|String|thumbnails|pageX|pageY|slideShowId|FX|features|content|speed|padding|translate3d|jCamelize|delete|minimum|backward|onload|dblbtnclick|cloneNext|clearTimeout|movement|J_TYPE|flex|base|nextImgArray|element|styles|bgjk|fromCharCode|version|touchend|Modules|jTrim|timer|J_UUID|nextIndex||||finish|toLowerCase|label|gecko|continue||interval|1000|oncomplete|translateZ|dbltap|blocks|recoveryPositionAfterDrag|eyeTracker|pushToEvents|cloneNode|chrome|onResize|schema|changedTouches|fay|movePointThumbnails|min|uuid|constructor|all|reverse|fullScreen|imgArray|pointerup|step|loop|orders|proportion|space|prepare_|click|callback|itemsCount|preload|now|documentElement|stopDefaults|while|useMap|switch|nodeType|kill|throw|previewNode|playerStateChange|originNode|onTouchEnd|requestAnimationFrame|getDoc|domPrefix|trident|jBindAsEvent|bulletsTooltip||_cleanup|_unbind|dispose|platform||_handlers||baseWidth|setTimeout|sizing|keydown|btnFullscreen|disabled|180|dragged|relative|_timer|messageBox|isFullScreen|lastIndex|floor|bezier|cubic|perspective|pow|timeout|getButton|cloneFace|scrollSelectors|add|vimeo|phase|margin|indexOf|doc|MagicJS|myEvent|mouseup|identifier|defParentDiv|align|slideshow|variables|isNaN|flexContainer|https|createElement|inline|center|className|moving|detach|found|changeHeight|isOutEffect|easing|mousescroll|onTouchStart|200|cssHeight|something_|not|player||shift||uaName||firstChild|pos|getPrimaryTouch|css|onabort|events|cssWidth|slideshowReady|currentMargin|location|currentTime|mjs|dashize|MSPOINTER_TYPE_TOUCH|removeAttribute|startAutoPlay|onTouchMove|clip|Transition|offsetHeight|preserve|jGetPageXY|join|pointermove|rotate|rand|clone|isPaused|mouseover|isQueueStopped|Coigm|childNodes|normalizeCSS|outside|customEvents|span|whoseEvent|targetTouches|shown|arr|insertBefore|mac|dataWidth|bulletPreview|sizeClip|imgSize|rect|inSide|mouseout|mousedown|eye|touchmove|stopTimer|fill|prevLast||visHid|navigator|timerIsEnded|||enable|bars3d|||insideOpacity|toUpperCase|disable|showModule|complete|0px|readyState|render|time|title|stopDistribution|has|pinchstart|cube|cache|blinds3d|flip|boxBoundaries|boxSize|animation|abort|_event_prefix_|onComplete|pointerdown|MagicSlideshow|errorBlock|touchstart|originalNode|effMove|1000px|1px|transformStyle|blocks1|ImageLoader|loading|actionIndex|vimeoPost|isPrimary|from|Fade|apiReady|TouchEvent|before|_render|exitFullscreen|notLoaded|parse|centering|standard|isActive|blockReady|object|_bind|changeContent|Zaablav|naturalWidth|countThumb|value|timedout|slideEffectMoveing|tooltip|isFinite|||||||||||||||||calcThumbWrapSize|threshold|tm||continuous|indoc|selectorsSize|isPrimaryTouch|alternate|to|touchStart|activepoints|stopQueue|setAutoplay|action|easeFn|slice|onready|stopAutoPlay|centerPoint|onClick|cycles|300|jGetScroll|change|_events|arrow|up|jumpAnimationBlock|delay|showLable|opacityFrom|selectorsMoveFX|nextSelectorsSize|diffusion|containerPosition|elementPosition|toString|fallback|loader|getElementsByTagName|currentIndex|blank|moz|dblclick|after|readyCalc_||select|countEvents||propertyName||zoomIn|storage|Options|AA||com|android|keyCode|getPrimaryTouchId|changeActiveItem||nextItem|nativeEvents|_event_del_|points|temporary|font|containerSize|fullsize|wrapperPos|onAfterSlideChange|recoveryKenburns|createEffetWithMainImage|startSlide|jGetStyles|isAnimationBlock|addImgToCacheBox|customHeight|motherNucleus|parseCubicBezier|domready|expanded|onPause|_EVENTS_|line|coigm|onPlayerReady|touchScreen|addEventListener|displayFlag|videoId|step_|startKenburns|opera|findSrcset|typeEvent|message|Message|mousemove|jRemoveClasses_|exitFullScreen|destroy|implement|typeof|svg|user|byTag|rwd|fullscreenFlag||loopBind|image|empty|enteringFullScreen|endEffect|cancelAnimationFrame|forceAnimation|ayk|afterExitFullScreen|eventType|nocookie|isReady|charAt|blur|imgLoad|setVariables|dragend|down|onStart|started|isMoving|afterEnterFullScreen|win|beforeExitFullScreen|stateChange|initAnimationBlock|capable|captionMovement|itemIndex|onprogress|innerHTML|beforeEnterFullScreen|setOptions|xhr|pStyles|pStyles_arr|hideTimer|reset|10000|uaVersion|desktop|originalNodes|XMLHttpRequest|quickReplacement|dissolve|status|Opacity|classHidden|startAnimationBlockEffect|activate|scrollTop|onPlay|jClearEvents|touchEnd|opacityTo|fromJSON|prepareForSafari_|linear|compatMode|fit|createEvent|btnclickEvent|endSlideEffect|motherNucleusSize|motherNucleusPos|coigmzaablav|enterFullScreen|hover|endAnimationBlockEffect|3000|done||responsive|onBeforeSlideChange|changeLine|startSlideEffect|clearInterval|imgContainer|appendChild|units|relatedTarget|IMG|scrollLeft|handleMouseUp|publicJump|get|insideOptions|transparent|url|forEach|removeChild|justify|kh3|r_end|reflowSelectors|exists|callee|concat|500|previous|ios|round|selectorsStyle|eff|background|wrapperPoint|sqrt|_event_add_|yyy|getStorage|nodeSize|loadedBytes|fontSize|onclick|outDelay|JSON|kenburnsSpeed|stopAnimation|cycle|startPoint|Date|dur_|handleMouseDown|edge|showCaption|caller|usemap|parentSize|calc|ieEff||recoverySize|errorEventName|ignore|changeEventName||startSpace|controls|priority|styles_arr|Left|Top|Right|Bottom|presto|getElementsByClassName|HTMLElement|el_arr|tl|jCopyEvents|column|Tooltip|ifndef|row|hideFX|replaceSpeed|splice|maximum|jDefer|cloneEvents|jSetOpacity_|deltaMode|getTarget|imgWrapperSpeed|05|conteinerSpeed|deltaX|styleOpacity|deltaY|changeLabel|playing|dataHeight|isclone|cssDomPrefix|progressLine|elementSize|addEvent_|clones|cubicBezierAtTime|Alpha|getDistance|master|createTextNode|J_EXT|fromString|insideNode|loadSlide|10px|onReady|magicslideshow|matrix||prevIndex|VIDEO||stopEffect|autostart|cssText|ArrowsPair|v3|pointer|isLoading|startEffect|PFX|customSettings|0ms|keyboard|prepareItem|countLoadedBlocks|imageType|jHasClass|thumbnail|color|startTime|defaultOptions|typeEffect|onYouTubeIframeAPIReady|links|lastHeight|www|resizeCallback|with|addCSS|resize|keyboardCallback|imgCacheBox|autoPlayPause|cachedCSS|opr|cssFilters|onExitFullscreen|onEnterFullscreen|canvas|slideEffect|create|Object|Pltm|mgctlbx|onVideoPause|onVideoPlay|mssMagicSlideshowYoutubeApiReady|saveProportions|ended||onExit|Function|paused|pseudo|loadeddata|loadstart|timeupdate|enabled|onEnteredFullScreen|leaveFSMessage|fullScreenExitFX|onExitFullScreen|jGetRect|prepareToFullScreen|fullScreenFX|onEnter|request|600||showSelectors|enter|auto_|cubicOut|initPlayer|normal|Y2|getIndex|400|xhr2|fzz|referrerPolicy|wrap|355|gob|cancel|X1|304|StartEffect|03|EndEffect|isMouse|onxhrerror|9999|Y1|solid|hideBlocks|initEffect|clearStyles|cursor|progressiveLoad|dispatchEvent|loadBlob|hone|X2|ojk5|control|toArray|which|addToCacheBox|isTouchEvent|onSelectorLoad|replaceEffect|getRelated|getClientXY|selectorType|enterFullscreen|addSelector|Offset|subscribeToEvents|exit|backcompat|calcOpacity|calcPosition|onBeforeRender|onAfterRender|prepareBeforeEffect|textnode|animationend|onreadystatechange|360|onchange|rotateZ|animationstart|nativize|date|videoStateChange|rgba|fps|euid|slideIndex|videoState|stylesId|getActiveSlide|005deg|ikz3|mbgme3|500ms|AutoPlay|jToBool|PI|cos|Number|parseSchema|initDragOnSelectors|classDisabled|999|0s|settings|shuffle|getOriginalTarget|BulletPreview|mousewheel|DocumentTouch|setMessage|initAutoPlay|150|easeInCubic|bar|easeInSine|easeInExpo|easeOutExpo|easeInQuad|easeOutQuad|clear|easeOutCubic|setupFullScreen|||||easeInBack|easeOutBack|mouse|elasticIn|zIndex|MagicSlideshow_core_styles||||bounceIn|jGetFullSize|wrapSelSize|head|zfg|gz5|initDone|containerSide|getContainerPosition|wheelDeltaX|xk|containerPos|0Ikz|maba|selectstart|zwbk3|Qlbo|easeOutSine|defTrans_|zo|handleMouseMove|phone|wheelDeltaY|imgContainerWrapper|175|165|DOMContentLoaded|dragmove|setupSelectors|045|unbindEvent|prepare|drag|ts|wheelDelta|UUID|firefox|createLabel|setInterval|initPlayPauseButton|detail|initDragOnSlider|magicJS|youtubeParams|getTime|finishTime|playVideo|offsetLeft|50px|shrink|getBoundingClientRect|unknown|ver|pauseVideo|offsetParent|contain|styleFloat|map|coords|shape|area|offsetWidth|offsetTop|iframe|mapExpand|webkit419|extraOptions|origItem|msExitFullscreen|port|backCompat|androidBrowser|Image|ua|encodeURIComponent|stretch|ltr|getHashCode|compareDocumentPosition|getElementById|unstarted|scroll|removeRule|d_|Move|Microsoft|DXImageTransform|progid|onLoadImg|itemType|thumb|youtubeApiReady|getJSON|replaceChild|extraHide|parseVideo|rel|checkPlayPause|byClass|getComputedStyle|deleteRule|setProps|checkImg|onImgError|KAR|figcaption|setKenburns|figure|createNewBlock|onImgLoad|_endEffect|styleSheet|_startEffect|alpha|checkCaptionBlock|sheet|getSelector||href|offset|documentMode|charCodeAt|clientWidth|_prepareReplace|_parseOptions|_prepareKenburns|k_calcScaleAndPosition|addEventsVideo|vimeoParams|k_stopTransition|one|mozCancelAnimationFrame|buttons|timingFunction|multibackground|onPlayerStateChange|cssTransformProp|insertRule|captionEffect|recalc|kenburnsFX|checkYoutubeVideo|allowfullscreen|loadOptions|YT|script|cancelFullScreen|mssMagicSlideshowYoutubeApiScriptAdded|preventDefault|originalClasses|cancelBubble|addEventsVimeo|stopPropagation|requestFullScreen|addSelectors|running|replaceFX|scrollbarsWidth|getContext|Moz|calcProportion|crios|safari|static|Webkit|naturalHeight|fullscreenerror|lengthComputable|curFrame|webkitURL|msPointerEnabled||MSFullscreenChange|URL|oCancelFullScreen|userAgent|setTransition|lineHeight|toFloat|air|response|roundCss|mozCancelFullScreen|FullscreenElement|MSFullscreenError|withCredentials|jToInt|RequestFullscreen|RequestFullScreen||fullscreenchange|FormData||ProgressEvent|msCancelFullScreen|FullScreen|evaluate|total|requestFullscreen|implementation|Map|xpath|4xxx|runtime|webkitIsFullScreen|Infinity|pinchend|activeElement|cssFloat|deltaZ|deltaFactor|webkitCancelFullScreen|referrerpolicy|xxxxxxxx|prefix|000244140625|onwheel|maxHeight|generateUUID|blob|maxWidth|wheel|float|Width|webkitexitFullscreen|RegExp|send|delta|responseType|537|fontWeight|pinchresize|createObjectURL|9007199254740991|MSPointer|infinite|xxxxxxxxxxxx|open|GET|xxxx|msFullscreenEnabled|http|yxxx|query|querySelector|ceil|ExitFullscreen|fullscreenElement|fullscreenEnabled|CancelFullScreen||hasFeature|fromElement|getPropertyValue|mozInnerScreenY|addRule|createEventObject|WebKitTransitionEvent|webkitTransitionEnd|KeyEvent|webos|fireEvent|clientHeight|420|taintEnabled|WebKitPoint|innerHeight|getBoxObjectFor|initEvent|doScroll|innerWidth|ActiveXObject|KeyboardEvent|xiino|presto925|536|xda|DOMElement|jSetStyle|rules|jGetStyle|TransitionEvent|pageXOffset|hasChild|detachEvent|MSPointerOver|pointerover|webkitRequestAnimationFrame|srcElement|mozRequestAnimationFrame|oRequestAnimationFrame|msRequestAnimationFrame|returnValue|MSPointerOut|toElement|removeEventListener|attachEvent|custom|linux|other|scrollHeight|scrollWidth|sort|oCancelAnimationFrame|pageYOffset|msCancelAnimationFrame|webkitCancelRequestAnimationFrame|red||jRaiseEvent|2px|cssfilters|cssRules|UIEvent|windows|pinchmove|startScale|compal|blazer|blackberry|bada|regexp|pointerout|avantgo|removeCSS|4294967296|meego|msMaxTouchPoints|maxTouchPoints|getAbsoluteURL|fennec|xy|ontouchstart|jToggleClass|Down|Up|Over|feature|SVG11|Out|currentStyle|TR|org|w3|elaine|collection||enclose|plucker|wap|vodafone|innerText|link|treo|symbian|jGetOffset|clientLeft||clientTop||series||psp|pocket|ixi|pointerEnabled|palm|netfront|jGetFullScroll||mmp|midp|maemo|lge||getInnerSize|MouseEvent|kindle|iris|iemobile|hiptop|jGetTransitionDuration|955|Delay|broke|2000|tr|swipe|captionPosition|iframe_api|around|QImageLoader|queue|unshift|6000|cannot|outline|callout|highlight|MSPointerDown|BottomRight|keyframe|hold_|1em|adjust|ie10|MagicZoom|and|MagicZoomPlus|white|curtain|nowrap|shadow|inset|Thumbnail|bottomRight|bottomLeft|Screen|inOffset|heightHandler|Flip|registerCallback|SlideIn|SlideOut|SlideChange|outSpeed|outEasing|outFade|outOffset|inSpeed|inDelay||inEasing|inFade|getMatrixPosition|BottomLeft|_out|_in|_|getDistanceIe8|getMargin||Speed|Easing|setContainerHeight|_blank|_self|TopLeft|topLeft|TopRight|topRight|Full|2147483647|155|10000px|postMessage|embed|Player|onStateChange|typeVideo|getPlayerState|middle|bulletTooltipJump|200000|checkVideo|getHeight|incoming|outgoing|Can|ID|stringify|host|pathname|Doxo|FZCB|faza|gcoik|cimzblv|zvz|Za|mgctlbxN|MT|mgctlbxV|mgctlbxL|mgctlbxP|contentWindow|method|Miscellaneous|getElementsByName|any|4000|paddingTop|paddingLeft|paddingRight|paddingBottom|documentIndex|constr|screen|IFRAME|amp|full|leave|key|aImg|625|ESC|mbed|youtu|Press|find|exec|protocol|hostname|enablejsapi|api|player_id|315|560|281|addItem|ieTimeOut|Diffusion|refresh|795|035|easeInOutExpo|easeInCirc|04|335|easeOutCirc|075|easeInOutCirc|785|135|11px|735|easeInOutQuint|885|weight|16px|Cube|easeInOutBack|101||265|000001||sineIn|sineOut|expoIn|expoOut|07|getInstance|quadOut|055|745|715|575|565|easeInOutSine|445|085|400ms|201|easeInOutQuad|455|515|675|easeOutQuint|215|easeInOutCubic|645|easeInQuart|895|685|easeOutQuart|easeInOutQuart|easeInQuint|755|855|06|quadIn|275|cubicIn|onComplete_|customEventsAllowed|destroyEvent|range|BODY|backIn|pair|inside|form|feedback|MagicSlideshowOptionsMobile|MagicSlideshowExtraOptions|onBeforeRender_|onAfterRender_|onStart_|beforeunload|transition_|FadeUp|FadeDown|Dissolve|Slide|Bars3d|MagicSlideshowOptions|translateY|Blinds3d|oduration|cont|extraOptionsMobile|Blocks|contPos|readystatechange|HTML|Error|isset|backOut|elasticOut|defaults|bounceOut|MagicToolboxTooltip|MessageBox|5000|NEGATIVE_INFINITY|POSITIVE_INFINITY|Incorrect|MagicSlideshowExtraOptionsMobile|the|parameter|definition|substring|selectend|DOMMouseScroll|keyup|focus|submit|unload|contextmenu|keypress'.split('|'),0,{}))

None Eval Array Obfuscator IO _Number JSFuck JJencode AAencode URLencode Packer JS Obfuscator My Obfuscate Wise Eval Wise Function Clean Source Unreadable
Line numbers Format Code Unescape strings Recover object-path Execute expression Merge strings Remove grouping
Clear Auto Decode
Copy to clipboardDownload fileOpen in new tab
window.MagicSlideshow = (function () {
var x, y;
x = y = (function () {
var Q = {
version: "v3.3.7",
UUID: 0,
storage: {},
$uuid: function (U) {
return (U.$J_UUID || (U.$J_UUID = ++K.UUID))
},
getStorage: function (U) {
return (K.storage[U] || (K.storage[U] = {}))
},
$F: function () {},
$false: function () {
return false
},
$true: function () {
return true
},
stylesId: "mjs-" + Math.floor(Math.random() * new Date().getTime()),
defined: function (U) {
return (U != null)
},
ifndef: function (V, U) {
return (V != null) ? V : U
},
exists: function (U) {
return !!(U)
},
jTypeOf: function (W) {
var U = 9007199254740991;

function V(X) {
return typeof X === "number" && X > -1 && X % 1 === 0 && X <= U
}
if (!K.defined(W)) {
return false
}
if (W.$J_TYPE) {
return W.$J_TYPE
}
if (!!W.nodeType) {
if (W.nodeType === 1) {
return "element"
}
if (W.nodeType === 3) {
return "textnode"
}
}
if (W === window) {
return "window"
}
if (W === document) {
return "document"
}
if (W instanceof window.Function) {
return "function"
}
if (W instanceof window.String) {
return "string"
}
if (W instanceof window.Array) {
return "array"
}
if (W instanceof window.Date) {
return "date"
}
if (W instanceof window.RegExp) {
return "regexp"
}
if (V(W.length) && W.item) {
return "collection"
}
if (V(W.length) && W.callee) {
return "arguments"
}
if ((W instanceof window.Object || W instanceof window.Function) && W.constructor === K.Class) {
return "class"
}
if (K.browser.trident) {
if (K.defined(W.cancelBubble)) {
return "event"
}
} else {
if (W === window.event || W.constructor === window.Event || W.constructor === window.MouseEvent || W.constructor === window.UIEvent || W.constructor === window.KeyboardEvent || W.constructor === window.KeyEvent) {
return "event"
}
}
return typeof (W)
},
extend: function (Z, Y) {
if (!(Z instanceof window.Array)) {
Z = [Z]
}
if (!Y) {
return Z[0]
}
for (var X = 0, V = Z.length; X < V; X++) {
if (!K.defined(Z)) {
continue
}
for (var W in Y) {
if (!Object.prototype.hasOwnProperty.call(Y, W)) {
continue
}
try {
Z[X][W] = Y[W]
} catch (U) {}
}
}
return Z[0]
},
implement: function (Y, X) {
if (!(Y instanceof window.Array)) {
Y = [Y]
}
for (var W = 0, U = Y.length; W < U; W++) {
if (!K.defined(Y[W])) {
continue
}
if (!Y[W].prototype) {
continue
}
for (var V in (X || {})) {
if (!Y[W].prototype[V]) {
Y[W].prototype[V] = X[V]
}
}
}
return Y[0]
},
nativize: function (W, V) {
if (!K.defined(W)) {
return W
}
for (var U in (V || {})) {
if (!W[U]) {
W[U] = V[U]
}
}
return W
},
$try: function () {
for (var V = 0, U = arguments.length; V < U; V++) {
try {
return arguments[V]()
} catch (W) {}
}
return null
},
$A: function (W) {
if (!K.defined(W)) {
return K.$([])
}
if (W.toArray) {
return K.$(W.toArray())
}
if (W.item) {
var V = W.length || 0,
U = new Array(V);
while (V--) {
U[V] = W[V]
}
return K.$(U)
}
return K.$(Array.prototype.slice.call(W))
},
now: function () {
return new Date().getTime()
},
detach: function (Y) {
var W;
switch (K.jTypeOf(Y)) {
case "object":
W = {};
for (var X in Y) {
W[X] = K.detach(Y[X])
}
break;
case "array":
W = [];
for (var V = 0, U = Y.length; V < U; V++) {
W[V] = K.detach(Y[V])
}
break;
default:
return Y
}
return K.$(W)
},
$: function (W) {
var U = true;
if (!K.defined(W)) {
return null
}
if (W.$J_EXT) {
return W
}
switch (K.jTypeOf(W)) {
case "array":
W = K.nativize(W, K.extend(K.Array, {
$J_EXT: K.$F
}));
W.jEach = W.forEach;
W.contains = K.Array.contains;
return W;
break;
case "string":
var V = document.getElementById(W);
if (K.defined(V)) {
return K.$(V)
}
return null;
break;
case "window":
case "document":
K.$uuid(W);
W = K.extend(W, K.Doc);
break;
case "element":
K.$uuid(W);
W = K.extend(W, K.Element);
break;
case "event":
W = K.extend(W, K.Event);
break;
case "textnode":
case "function":
case "date":
default:
U = false;
break
}
if (U) {
return K.extend(W, {
$J_EXT: K.$F
})
} else {
return W
}
},
$new: function (U, W, V) {
return K.$(K.doc.createElement(U)).setProps(W || {}).jSetCss(V || {})
},
addCSS: function (X, Y, V) {
var U, aa, W, ac = [],
ab = -1;
V || (V = K.stylesId);
U = K.$(V) || K.$new("style", {
id: V,
type: "text/css"
}).jAppendTo((document.head || document.body), "top");
aa = U.sheet || U.styleSheet;
if (K.jTypeOf(Y) !== "string") {
for (var W in Y) {
ac.push(W + ":" + Y[W])
}
Y = ac.join(";")
}
if (aa.insertRule) {
ab = aa.insertRule(X + " {" + Y + "}", aa.cssRules.length)
} else {
try {
ab = aa.addRule(X, Y, aa.rules.length)
} catch (Z) {}
}
return ab
},
removeCSS: function (X, U) {
var W, V;
W = K.$(X);
if (K.jTypeOf(W) !== "element") {
return
}
V = W.sheet || W.styleSheet;
if (V.deleteRule) {
V.deleteRule(U)
} else {
if (V.removeRule) {
V.removeRule(U)
}
}
},
generateUUID: function () {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (W) {
var V = Math.random() * 16 | 0,
U = W === "x" ? V : (V & 3 | 8);
return U.toString(16)
}).toUpperCase()
},
getAbsoluteURL: (function () {
var U;
return function (V) {
if (!U) {
U = document.createElement("a")
}
U.setAttribute("href", V);
return ("!!" + U.href).replace("!!", "")
}
})(),
getHashCode: function (W) {
var X = 0,
U = W.length;
for (var V = 0; V < U; ++V) {
X = 31 * X + W.charCodeAt(V);
X %= 4294967296
}
return X
}
};
var K = Q;
var L = Q.$;
if (!window.magicJS) {
window.magicJS = Q;
window.$mjs = Q.$
}
K.Array = {
$J_TYPE: "array",
indexOf: function (X, Y) {
var U = this.length;
for (var V = this.length, W = (Y < 0) ? Math.max(0, V + Y) : Y || 0; W < V; W++) {
if (this[W] === X) {
return W
}
}
return -1
},
contains: function (U, V) {
return this.indexOf(U, V) != -1
},
forEach: function (U, X) {
for (var W = 0, V = this.length; W < V; W++) {
if (W in this) {
U.call(X, this[W], W, this)
}
}
},
filter: function (U, Z) {
var Y = [];
for (var X = 0, V = this.length; X < V; X++) {
if (X in this) {
var W = this[X];
if (U.call(Z, this[X], X, this)) {
Y.push(W)
}
}
}
return Y
},
map: function (U, Y) {
var X = [];
for (var W = 0, V = this.length; W < V; W++) {
if (W in this) {
X[W] = U.call(Y, this[W], W, this)
}
}
return X
}
};
K.implement(String, {
$J_TYPE: "string",
jTrim: function () {
return this.replace(/^\s+|\s+$/g, "")
},
eq: function (U, V) {
return (V || false) ? (this.toString() === U.toString()) : (this.toLowerCase().toString() === U.toLowerCase().toString())
},
jCamelize: function () {
return this.replace(/-\D/g, function (U) {
return U.charAt(1).toUpperCase()
})
},
dashize: function () {
return this.replace(/[A-Z]/g, function (U) {
return ("-" + U.charAt(0).toLowerCase())
})
},
jToInt: function (U) {
return parseInt(this, U || 10)
},
toFloat: function () {
return parseFloat(this)
},
jToBool: function () {
return !this.replace(/true/i, "").jTrim()
},
has: function (V, U) {
U = U || "";
return (U + this + U).indexOf(U + V + U) > -1
}
});
Q.implement(Function, {
$J_TYPE: "function",
jBind: function () {
var V = K.$A(arguments),
U = this,
W = V.shift();
return function () {
return U.apply(W || null, V.concat(K.$A(arguments)))
}
},
jBindAsEvent: function () {
var V = K.$A(arguments),
U = this,
W = V.shift();
return function (X) {
return U.apply(W || null, K.$([X || (K.browser.ieMode ? window.event : null)]).concat(V))
}
},
jDelay: function () {
var V = K.$A(arguments),
U = this,
W = V.shift();
return window.setTimeout(function () {
return U.apply(U, V)
}, W || 0)
},
jDefer: function () {
var V = K.$A(arguments),
U = this;
return function () {
return U.jDelay.apply(U, V)
}
},
interval: function () {
var V = K.$A(arguments),
U = this,
W = V.shift();
return window.setInterval(function () {
return U.apply(U, V)
}, W || 0)
}
});
var R = {};
var J = navigator.userAgent.toLowerCase();
var I = J.match(/(webkit|gecko|trident|presto)\/(\d+\.?\d*)/i);
var N = J.match(/(edge|opr)\/(\d+\.?\d*)/i) || J.match(/(crios|chrome|safari|firefox|opera|opr)\/(\d+\.?\d*)/i);
var P = J.match(/version\/(\d+\.?\d*)/i);
var E = document.documentElement.style;

function F(V) {
var U = V.charAt(0).toUpperCase() + V.slice(1);
return V in E || ("Webkit" + U) in E || ("Moz" + U) in E || ("ms" + U) in E || ("O" + U) in E
}
K.browser = {
features: {
xpath: !!(document.evaluate),
air: !!(window.runtime),
query: !!(document.querySelector),
fullScreen: !!(document.fullscreenEnabled || document.msFullscreenEnabled || document.exitFullscreen || document.cancelFullScreen || document.webkitexitFullscreen || document.webkitCancelFullScreen || document.mozCancelFullScreen || document.oCancelFullScreen || document.msCancelFullScreen),
xhr2: !!(window.ProgressEvent) && !!(window.FormData) && (window.XMLHttpRequest && "withCredentials" in new XMLHttpRequest),
transition: F("transition"),
transform: F("transform"),
perspective: F("perspective"),
animation: F("animation"),
requestAnimationFrame: false,
multibackground: false,
cssFilters: false,
canvas: false,
svg: (function () {
return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1")
}())
},
touchScreen: (function () {
return "ontouchstart" in window || (window.DocumentTouch && document instanceof DocumentTouch) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)
}()),
mobile: !!J.match(/(android|bb\d+|meego).+|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/),
engine: (I && I[1]) ? I[1].toLowerCase() : (window.opera) ? "presto" : !!(window.ActiveXObject) ? "trident" : (document.getBoxObjectFor !== undefined || window.mozInnerScreenY !== null) ? "gecko" : (window.WebKitPoint !== null || !navigator.taintEnabled) ? "webkit" : "unknown",
version: (I && I[2]) ? parseFloat(I[2]) : 0,
uaName: (N && N[1]) ? N[1].toLowerCase() : "",
uaVersion: (N && N[2]) ? parseFloat(N[2]) : 0,
cssPrefix: "",
cssDomPrefix: "",
domPrefix: "",
ieMode: 0,
platform: J.match(/ip(?:ad|od|hone)/) ? "ios" : (J.match(/(?:webos|android)/) || navigator.platform.match(/mac|win|linux/i) || ["other"])[0].toLowerCase(),
backCompat: document.compatMode && document.compatMode.toLowerCase() === "backcompat",
scrollbarsWidth: 0,
getDoc: function () {
return (document.compatMode && document.compatMode.toLowerCase() === "backcompat") ? document.body : document.documentElement
},
requestAnimationFrame: window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || undefined,
cancelAnimationFrame: window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame || window.webkitCancelRequestAnimationFrame || undefined,
ready: false,
onready: function () {
if (K.browser.ready) {
return
}
var X;
var W;
K.browser.ready = true;
K.body = K.$(document.body);
K.win = K.$(window);
try {
var V = K.$new("div").jSetCss({
width: 100,
height: 100,
overflow: "scroll",
position: "absolute",
top: -9999
}).jAppendTo(document.body);
K.browser.scrollbarsWidth = V.offsetWidth - V.clientWidth;
V.jRemove()
} catch (U) {}
try {
X = K.$new("div");
W = X.style;
W.cssText = "background:url(https://),url(https://),red url(https://)";
K.browser.features.multibackground = (/(url\s*\(.*?){3}/).test(W.background);
W = null;
X = null
} catch (U) {}
if (!K.browser.cssTransformProp) {
K.browser.cssTransformProp = K.normalizeCSS("transform").dashize()
}
try {
X = K.$new("div");
X.style.cssText = K.normalizeCSS("filter").dashize() + ":blur(2px);";
K.browser.features.cssFilters = !!X.style.length && (!K.browser.ieMode || K.browser.ieMode > 9);
X = null
} catch (U) {}
if (!K.browser.features.cssFilters) {
K.$(document.documentElement).jAddClass("no-cssfilters-magic")
}
try {
K.browser.features.canvas = (function () {
var Y = K.$new("canvas");
return !!(Y.getContext && Y.getContext("2d"))
}())
} catch (U) {}
if (window.TransitionEvent === undefined && window.WebKitTransitionEvent !== undefined) {
R.transitionend = "webkitTransitionEnd"
}
K.Doc.jCallEvent.call(K.$(document), "domready")
}
};
(function () {
var V = [],
Y, X, Z;

function U() {
return !!(arguments.callee.caller)
}
switch (K.browser.engine) {
case "trident":
if (!K.browser.version) {
K.browser.version = !!(window.XMLHttpRequest) ? 3 : 2
}
break;
case "gecko":
K.browser.version = (N && N[2]) ? parseFloat(N[2]) : 0;
break
}
K.browser[K.browser.engine] = true;
if (N && N[1] === "crios") {
K.browser.uaName = "chrome"
}
if (!!window.chrome) {
K.browser.chrome = true
}
if (N && N[1] === "opr") {
K.browser.uaName = "opera";
K.browser.opera = true
}
if (K.browser.uaName === "safari" && (P && P[1])) {
K.browser.uaVersion = parseFloat(P[1])
}
if (K.browser.platform === "android" && K.browser.webkit && (P && P[1])) {
K.browser.androidBrowser = true
}
Y = ({
gecko: ["-moz-", "Moz", "moz"],
webkit: ["-webkit-", "Webkit", "webkit"],
trident: ["-ms-", "ms", "ms"],
presto: ["-o-", "O", "o"]
})[K.browser.engine] || ["", "", ""];
K.browser.cssPrefix = Y[0];
K.browser.cssDomPrefix = Y[1];
K.browser.domPrefix = Y[2];
K.browser.ieMode = !K.browser.trident ? undefined : (document.documentMode) ? document.documentMode : (function () {
var aa = 0;
if (K.browser.backCompat) {
return 5
}
switch (K.browser.version) {
case 2:
aa = 6;
break;
case 3:
aa = 7;
break
}
return aa
}());
if (!K.browser.mobile && K.browser.platform === "mac" && K.browser.touchScreen) {
K.browser.mobile = true;
K.browser.platform = "ios"
}
V.push(K.browser.platform + "-magic");
if (K.browser.mobile) {
V.push("mobile-magic")
}
if (K.browser.androidBrowser) {
V.push("android-browser-magic")
}
if (K.browser.ieMode) {
K.browser.uaName = "ie";
K.browser.uaVersion = K.browser.ieMode;
V.push("ie" + K.browser.ieMode + "-magic");
for (X = 11; X > K.browser.ieMode; X--) {
V.push("lt-ie" + X + "-magic")
}
}
if (K.browser.webkit && K.browser.version < 536) {
K.browser.features.fullScreen = false
}
if (K.browser.requestAnimationFrame) {
K.browser.requestAnimationFrame.call(window, function () {
K.browser.features.requestAnimationFrame = true
})
}
if (K.browser.features.svg) {
V.push("svg-magic")
} else {
V.push("no-svg-magic")
}
Z = (document.documentElement.className || "").match(/\S+/g) || [];
document.documentElement.className = K.$(Z).concat(V).join(" ");
try {
document.documentElement.setAttribute("data-magic-ua", K.browser.uaName);
document.documentElement.setAttribute("data-magic-ua-ver", K.browser.uaVersion);
document.documentElement.setAttribute("data-magic-engine", K.browser.engine);
document.documentElement.setAttribute("data-magic-engine-ver", K.browser.version)
} catch (W) {}
if (K.browser.ieMode && K.browser.ieMode < 9) {
document.createElement("figure");
document.createElement("figcaption")
}
if (!window.navigator.pointerEnabled) {
K.$(["Down", "Up", "Move", "Over", "Out"]).jEach(function (aa) {
R["pointer" + aa.toLowerCase()] = window.navigator.msPointerEnabled ? "MSPointer" + aa : -1
})
}
}());
(function () {
K.browser.fullScreen = {
capable: K.browser.features.fullScreen,
enabled: function () {
return !!(document.fullscreenElement || document[K.browser.domPrefix + "FullscreenElement"] || document.fullScreen || document.webkitIsFullScreen || document[K.browser.domPrefix + "FullScreen"])
},
request: function (U, V) {
if (!V) {
V = {}
}
if (this.capable) {
K.$(document).jAddEvent(this.changeEventName, this.onchange = function (W) {
if (this.enabled()) {
if (V.onEnter) {
V.onEnter()
}
} else {
K.$(document).jRemoveEvent(this.changeEventName, this.onchange);
if (V.onExit) {
V.onExit()
}
}
}.jBindAsEvent(this));
K.$(document).jAddEvent(this.errorEventName, this.onerror = function (W) {
if (V.fallback) {
V.fallback()
}
K.$(document).jRemoveEvent(this.errorEventName, this.onerror)
}.jBindAsEvent(this));
(U.requestFullscreen || U[K.browser.domPrefix + "RequestFullscreen"] || U[K.browser.domPrefix + "RequestFullScreen"] || function () {}).call(U)
} else {
if (V.fallback) {
V.fallback()
}
}
},
cancel: (document.exitFullscreen || document.cancelFullScreen || document[K.browser.domPrefix + "ExitFullscreen"] || document[K.browser.domPrefix + "CancelFullScreen"] || function () {}).jBind(document),
changeEventName: document.msExitFullscreen ? "MSFullscreenChange" : (document.exitFullscreen ? "" : K.browser.domPrefix) + "fullscreenchange",
errorEventName: document.msExitFullscreen ? "MSFullscreenError" : (document.exitFullscreen ? "" : K.browser.domPrefix) + "fullscreenerror",
prefix: K.browser.domPrefix,
activeElement: null
}
}());
var T = /\S+/g,
H = /^(border(Top|Bottom|Left|Right)Width)|((padding|margin)(Top|Bottom|Left|Right))$/,
M = {
"float": ("undefined" === typeof (E.styleFloat)) ? "cssFloat" : "styleFloat"
},
O = {
fontWeight: true,
lineHeight: true,
opacity: true,
zIndex: true,
zoom: true
},
G = (window.getComputedStyle) ? function (W, U) {
var V = window.getComputedStyle(W, null);
return V ? V.getPropertyValue(U) || V[U] : null
} : function (X, V) {
var W = X.currentStyle,
U = null;
U = W ? W[V] : null;
if (null == U && X.style && X.style[V]) {
U = X.style[V]
}
return U
};

function S(W) {
var U, V;
V = (K.browser.webkit && "filter" == W) ? false : (W in E);
if (!V) {
U = K.browser.cssDomPrefix + W.charAt(0).toUpperCase() + W.slice(1);
if (U in E) {
return U
}
}
return W
}
K.normalizeCSS = S;
K.Element = {
jHasClass: function (U) {
return !(U || "").has(" ") && (this.className || "").has(U, " ")
},
jAddClass: function (Y) {
var V = (this.className || "").match(T) || [],
X = (Y || "").match(T) || [],
U = X.length,
W = 0;
for (; W < U; W++) {
if (!K.$(V).contains(X[W])) {
V.push(X[W])
}
}
this.className = V.join(" ");
return this
},
jRemoveClass: function (Z) {
var V = (this.className || "").match(T) || [],
Y = (Z || "").match(T) || [],
U = Y.length,
X = 0,
W;
for (; X < U; X++) {
if ((W = K.$(V).indexOf(Y[X])) > -1) {
V.splice(W, 1)
}
}
this.className = Z ? V.join(" ") : "";
return this
},
jToggleClass: function (U) {
return this.jHasClass(U) ? this.jRemoveClass(U) : this.jAddClass(U)
},
jGetCss: function (V) {
var W = V.jCamelize(),
U = null;
V = M[W] || (M[W] = S(W));
U = G(this, V);
if ("auto" === U) {
U = null
}
if (null !== U) {
if ("opacity" == V) {
return K.defined(U) ? parseFloat(U) : 1
}
if (H.test(V)) {
U = parseInt(U, 10) ? U : "0px"
}
}
return U
},
jSetCssProp: function (V, U) {
var X = V.jCamelize();
try {
if ("opacity" == V) {
this.jSetOpacity(U);
return this
}
V = M[X] || (M[X] = S(X));
this.style[V] = U + (("number" == K.jTypeOf(U) && !O[X]) ? "px" : "")
} catch (W) {}
return this
},
jSetCss: function (V) {
for (var U in V) {
this.jSetCssProp(U, V[U])
}
return this
},
jGetStyles: function () {
var U = {};
K.$A(arguments).jEach(function (V) {
U[V] = this.jGetCss(V)
}, this);
return U
},
jSetOpacity: function (W, U) {
var V;
U = U || false;
this.style.opacity = W;
W = parseInt(parseFloat(W) * 100);
if (U) {
if (0 === W) {
if ("hidden" != this.style.visibility) {
this.style.visibility = "hidden"
}
} else {
if ("visible" != this.style.visibility) {
this.style.visibility = "visible"
}
}
}
if (K.browser.ieMode && K.browser.ieMode < 9) {
if (!isNaN(W)) {
if (!~this.style.filter.indexOf("Alpha")) {
this.style.filter += " progid:DXImageTransform.Microsoft.Alpha(Opacity=" + W + ")"
} else {
this.style.filter = this.style.filter.replace(/Opacity=\d*/i, "Opacity=" + W)
}
} else {
this.style.filter = this.style.filter.replace(/progid:DXImageTransform.Microsoft.Alpha\(Opacity=\d*\)/i, "").jTrim();
if ("" === this.style.filter) {
this.style.removeAttribute("filter")
}
}
}
return this
},
setProps: function (U) {
for (var V in U) {
if ("class" === V) {
this.jAddClass("" + U[V])
} else {
this.setAttribute(V, "" + U[V])
}
}
return this
},
jGetTransitionDuration: function () {
var V = 0,
U = 0;
V = this.jGetCss("transition-duration");
U = this.jGetCss("transition-delay");
V = V.indexOf("ms") > -1 ? parseFloat(V) : V.indexOf("s") > -1 ? parseFloat(V) * 1000 : 0;
U = U.indexOf("ms") > -1 ? parseFloat(U) : U.indexOf("s") > -1 ? parseFloat(U) * 1000 : 0;
return V + U
},
hide: function () {
return this.jSetCss({
display: "none",
visibility: "hidden"
})
},
show: function () {
return this.jSetCss({
display: "",
visibility: "visible"
})
},
jGetSize: function () {
return {
width: this.offsetWidth,
height: this.offsetHeight
}
},
getInnerSize: function (V) {
var U = this.jGetSize();
U.width -= (parseFloat(this.jGetCss("border-left-width") || 0) + parseFloat(this.jGetCss("border-right-width") || 0));
U.height -= (parseFloat(this.jGetCss("border-top-width") || 0) + parseFloat(this.jGetCss("border-bottom-width") || 0));
if (!V) {
U.width -= (parseFloat(this.jGetCss("padding-left") || 0) + parseFloat(this.jGetCss("padding-right") || 0));
U.height -= (parseFloat(this.jGetCss("padding-top") || 0) + parseFloat(this.jGetCss("padding-bottom") || 0))
}
return U
},
jGetScroll: function () {
return {
top: this.scrollTop,
left: this.scrollLeft
}
},
jGetFullScroll: function () {
var U = this,
V = {
top: 0,
left: 0
};
do {
V.left += U.scrollLeft || 0;
V.top += U.scrollTop || 0;
U = U.parentNode
} while (U);
return V
},
jGetPosition: function () {
var Y = this,
V = 0,
X = 0;
if (K.defined(document.documentElement.getBoundingClientRect)) {
var U = this.getBoundingClientRect(),
W = K.$(document).jGetScroll(),
Z = K.browser.getDoc();
return {
top: U.top + W.y - Z.clientTop,
left: U.left + W.x - Z.clientLeft
}
}
do {
V += Y.offsetLeft || 0;
X += Y.offsetTop || 0;
Y = Y.offsetParent
} while (Y && !(/^(?:body|html)$/i).test(Y.tagName));
return {
top: X,
left: V
}
},
jGetOffset: function () {
var U = this;
var W = 0;
var V = 0;
do {
W += U.offsetLeft || 0;
V += U.offsetTop || 0;
U = U.offsetParent
} while (U && !(/^(?:body|html)$/i).test(U.tagName));
return {
top: V,
left: W
}
},
jGetRect: function () {
var V = this.jGetPosition();
var U = this.jGetSize();
return {
top: V.top,
bottom: V.top + U.height,
left: V.left,
right: V.left + U.width
}
},
changeContent: function (V) {
try {
this.innerHTML = V
} catch (U) {
this.innerText = V
}
return this
},
jRemove: function () {
return (this.parentNode) ? this.parentNode.removeChild(this) : this
},
kill: function () {
K.$A(this.childNodes).jEach(function (U) {
if (3 == U.nodeType || 8 == U.nodeType) {
return
}
K.$(U).kill()
});
this.jRemove();
this.jClearEvents();
if (this.$J_UUID) {
K.storage[this.$J_UUID] = null;
delete K.storage[this.$J_UUID]
}
return null
},
append: function (W, V) {
V = V || "bottom";
var U = this.firstChild;
("top" == V && U) ? this.insertBefore(W, U): this.appendChild(W);
return this
},
jAppendTo: function (W, V) {
var U = K.$(W).append(this, V);
return this
},
enclose: function (U) {
this.append(U.parentNode.replaceChild(this, U));
return this
},
hasChild: function (U) {
if ("element" !== K.jTypeOf("string" == K.jTypeOf(U) ? U = document.getElementById(U) : U)) {
return false
}
return (this == U) ? false : (this.contains && !(K.browser.webkit419)) ? (this.contains(U)) : (this.compareDocumentPosition) ? !!(this.compareDocumentPosition(U) & 16) : K.$A(this.byTag(U.tagName)).contains(U)
}
};
K.Element.jGetStyle = K.Element.jGetCss;
K.Element.jSetStyle = K.Element.jSetCss;
if (!window.Element) {
window.Element = K.$F;
if (K.browser.engine.webkit) {
window.document.createElement("iframe")
}
window.Element.prototype = (K.browser.engine.webkit) ? window["[[DOMElement.prototype]]"] : {}
}
K.implement(window.Element, {
$J_TYPE: "element"
});
K.Doc = {
jGetSize: function () {
if (K.browser.touchScreen || K.browser.presto925 || K.browser.webkit419) {
return {
width: window.innerWidth,
height: window.innerHeight
}
}
return {
width: K.browser.getDoc().clientWidth,
height: K.browser.getDoc().clientHeight
}
},
jGetScroll: function () {
return {
x: window.pageXOffset || K.browser.getDoc().scrollLeft,
y: window.pageYOffset || K.browser.getDoc().scrollTop
}
},
jGetFullSize: function () {
var U = this.jGetSize();
return {
width: Math.max(K.browser.getDoc().scrollWidth, U.width),
height: Math.max(K.browser.getDoc().scrollHeight, U.height)
}
}
};
K.extend(document, {
$J_TYPE: "document"
});
K.extend(window, {
$J_TYPE: "window"
});
K.extend([K.Element, K.Doc], {
jFetch: function (X, V) {
var U = K.getStorage(this.$J_UUID),
W = U[X];
if (undefined !== V && undefined === W) {
W = U[X] = V
}
return (K.defined(W) ? W : null)
},
jStore: function (W, V) {
var U = K.getStorage(this.$J_UUID);
U[W] = V;
return this
},
jDel: function (V) {
var U = K.getStorage(this.$J_UUID);
delete U[V];
return this
}
});
if (!(window.HTMLElement && window.HTMLElement.prototype && window.HTMLElement.prototype.getElementsByClassName)) {
K.extend([K.Element, K.Doc], {
getElementsByClassName: function (U) {
return K.$A(this.getElementsByTagName("*")).filter(function (W) {
try {
return (1 == W.nodeType && W.className.has(U, " "))
} catch (V) {}
})
}
})
}
K.extend([K.Element, K.Doc], {
byClass: function () {
return this.getElementsByClassName(arguments[0])
},
byTag: function () {
return this.getElementsByTagName(arguments[0])
}
});
if (K.browser.fullScreen.capable && !document.requestFullScreen) {
K.Element.requestFullScreen = function () {
K.browser.fullScreen.request(this)
}
}
K.Event = {
$J_TYPE: "event",
isQueueStopped: K.$false,
stop: function () {
return this.stopDistribution().stopDefaults()
},
stopDistribution: function () {
if (this.stopPropagation) {
this.stopPropagation()
} else {
this.cancelBubble = true
}
return this
},
stopDefaults: function () {
if (this.preventDefault) {
this.preventDefault()
} else {
this.returnValue = false
}
return this
},
stopQueue: function () {
this.isQueueStopped = K.$true;
return this
},
getClientXY: function () {
var U = (/touch/i).test(this.type) ? this.changedTouches[0] : this;
return !K.defined(U) ? {
x: 0,
y: 0
} : {
x: U.clientX,
y: U.clientY
}
},
jGetPageXY: function () {
var U = (/touch/i).test(this.type) ? this.changedTouches[0] : this;
return !K.defined(U) ? {
x: 0,
y: 0
} : {
x: U.pageX || U.clientX + K.browser.getDoc().scrollLeft,
y: U.pageY || U.clientY + K.browser.getDoc().scrollTop
}
},
getTarget: function () {
var U = this.target || this.srcElement;
while (U && U.nodeType === 3) {
U = U.parentNode
}
return U
},
getRelated: function () {
var V = null;
switch (this.type) {
case "mouseover":
case "pointerover":
case "MSPointerOver":
V = this.relatedTarget || this.fromElement;
break;
case "mouseout":
case "pointerout":
case "MSPointerOut":
V = this.relatedTarget || this.toElement;
break;
default:
return V
}
try {
while (V && V.nodeType === 3) {
V = V.parentNode
}
} catch (U) {
V = null
}
return V
},
getButton: function () {
if (!this.which && this.button !== undefined) {
return (this.button & 1 ? 1 : (this.button & 2 ? 3 : (this.button & 4 ? 2 : 0)))
}
return this.which
},
isTouchEvent: function () {
return (this.pointerType && (this.pointerType === "touch" || this.pointerType === this.MSPOINTER_TYPE_TOUCH)) || (/touch/i).test(this.type)
},
isPrimaryTouch: function () {
if (this.pointerType) {
return (this.pointerType === "touch" || this.MSPOINTER_TYPE_TOUCH === this.pointerType) && this.isPrimary
} else {
if (this instanceof window.TouchEvent) {
return this.changedTouches.length === 1 && (this.targetTouches.length ? this.targetTouches.length === 1 && this.targetTouches[0].identifier === this.changedTouches[0].identifier : true)
}
}
return false
},
getPrimaryTouch: function () {
if (this.pointerType) {
return this.isPrimary && (this.pointerType === "touch" || this.MSPOINTER_TYPE_TOUCH === this.pointerType) ? this : null
} else {
if (this instanceof window.TouchEvent) {
return this.changedTouches[0]
}
}
return null
},
getPrimaryTouchId: function () {
if (this.pointerType) {
return this.isPrimary && (this.pointerType === "touch" || this.MSPOINTER_TYPE_TOUCH === this.pointerType) ? this.pointerId : null
} else {
if (this instanceof window.TouchEvent) {
return this.changedTouches[0].identifier
}
}
return null
}
};
K._event_add_ = "addEventListener";
K._event_del_ = "removeEventListener";
K._event_prefix_ = "";
if (!document.addEventListener) {
K._event_add_ = "attachEvent";
K._event_del_ = "detachEvent";
K._event_prefix_ = "on"
}
K.Event.Custom = {
type: "",
x: null,
y: null,
timeStamp: null,
button: null,
target: null,
relatedTarget: null,
$J_TYPE: "event.custom",
isQueueStopped: K.$false,
events: K.$([]),
pushToEvents: function (U) {
var V = U;
this.events.push(V)
},
stop: function () {
return this.stopDistribution().stopDefaults()
},
stopDistribution: function () {
this.events.jEach(function (V) {
try {
V.stopDistribution()
} catch (U) {}
});
return this
},
stopDefaults: function () {
this.events.jEach(function (V) {
try {
V.stopDefaults()
} catch (U) {}
});
return this
},
stopQueue: function () {
this.isQueueStopped = K.$true;
return this
},
getClientXY: function () {
return {
x: this.clientX,
y: this.clientY
}
},
jGetPageXY: function () {
return {
x: this.x,
y: this.y
}
},
getTarget: function () {
return this.target
},
getRelated: function () {
return this.relatedTarget
},
getButton: function () {
return this.button
},
getOriginalTarget: function () {
return this.events.length > 0 ? this.events[0].getTarget() : undefined
},
isTouchEvent: function () {
return (this.pointerType && (this.pointerType === "touch" || this.pointerType === this.MSPOINTER_TYPE_TOUCH)) || (/touch/i).test(this.type)
},
isPrimaryTouch: function () {
if (this.pointerType) {
return (this.pointerType === "touch" || this.MSPOINTER_TYPE_TOUCH === this.pointerType) && this.isPrimary
} else {
if (this instanceof window.TouchEvent) {
return this.changedTouches.length === 1 && (this.targetTouches.length ? this.targetTouches[0].identifier === this.changedTouches[0].identifier : true)
}
}
return false
},
getPrimaryTouch: function () {
if (this.pointerType) {
return this.isPrimary && (this.pointerType === "touch" || this.MSPOINTER_TYPE_TOUCH === this.pointerType) ? this : null
} else {
if (this instanceof window.TouchEvent) {
return this.changedTouches[0]
}
}
return null
},
getPrimaryTouchId: function () {
if (this.pointerType) {
return this.isPrimary && (this.pointerType === "touch" || this.MSPOINTER_TYPE_TOUCH === this.pointerType) ? this.pointerId : null
} else {
if (this instanceof window.TouchEvent) {
return this.changedTouches[0].identifier
}
}
return null
}
};
K.extend([K.Element, K.Doc], {
jAddEvent: function (W, Y, Z, ac) {
var ab, U, X, aa, V;
if (K.jTypeOf(W) === "string") {
V = W.split(" ");
if (V.length > 1) {
W = V
}
}
if (K.jTypeOf(W) === "array") {
K.$(W).jEach(this.jAddEvent.jBindAsEvent(this, Y, Z, ac));
return this
}
W = R[W] || W;
if (!W || !Y || K.jTypeOf(W) !== "string" || K.jTypeOf(Y) !== "function") {
return this
}
if (W === "domready" && K.browser.ready) {
Y.call(this);
return this
}
Z = parseInt(Z || 50, 10);
if (!Y.$J_EUID) {
Y.$J_EUID = Math.floor(Math.random() * K.now())
}
ab = K.Doc.jFetch.call(this, "_EVENTS_", {});
U = ab[W];
if (!U) {
ab[W] = U = K.$([]);
X = this;
if (K.Event.Custom[W]) {
K.Event.Custom[W].handler.add.call(this, ac)
} else {
U.handle = function (ad) {
ad = K.extend(ad || window.e, {
$J_TYPE: "event"
});
K.Doc.jCallEvent.call(X, W, K.$(ad))
};
this[K._event_add_](K._event_prefix_ + W, U.handle, false)
}
}
aa = {
type: W,
fn: Y,
priority: Z,
euid: Y.$J_EUID
};
U.push(aa);
U.sort(function (ae, ad) {
return ae.priority - ad.priority
});
return this
},
jRemoveEvent: function (aa) {
var Y = K.Doc.jFetch.call(this, "_EVENTS_", {});
var W;
var U;
var V;
var ab;
var Z;
var X;
Z = arguments.length > 1 ? arguments[1] : -100;
if (K.jTypeOf(aa) === "string") {
X = aa.split(" ");
if (X.length > 1) {
aa = X
}
}
if (K.jTypeOf(aa) === "array") {
K.$(aa).jEach(this.jRemoveEvent.jBindAsEvent(this, Z));
return this
}
aa = R[aa] || aa;
if (!aa || K.jTypeOf(aa) !== "string" || !Y || !Y[aa]) {
return this
}
W = Y[aa] || [];
for (V = 0; V < W.length; V++) {
U = W[V];
if (Z === -100 || !!Z && Z.$J_EUID === U.euid) {
ab = W.splice(V--, 1)
}
}
if (W.length === 0) {
if (K.Event.Custom[aa]) {
K.Event.Custom[aa].handler.jRemove.call(this)
} else {
this[K._event_del_](K._event_prefix_ + aa, W.handle, false)
}
delete Y[aa]
}
return this
},
jCallEvent: function (X, Z) {
var W = K.Doc.jFetch.call(this, "_EVENTS_", {});
var V;
var U;
X = R[X] || X;
if (!X || K.jTypeOf(X) !== "string" || !W || !W[X]) {
return this
}
try {
Z = K.extend(Z || {}, {
type: X
})
} catch (Y) {}
if (Z.timeStamp === undefined) {
Z.timeStamp = K.now()
}
V = W[X] || [];
for (U = 0; U < V.length && !(Z.isQueueStopped && Z.isQueueStopped()); U++) {
V[U].fn.call(this, Z)
}
},
jRaiseEvent: function (V, U) {
var Y = (V !== "domready");
var X = this;
var W;
V = R[V] || V;
if (!Y) {
K.Doc.jCallEvent.call(this, V);
return this
}
if (X === document && document.createEvent && !X.dispatchEvent) {
X = document.documentElement
}
if (document.createEvent) {
W = document.createEvent(V);
W.initEvent(U, true, true)
} else {
W = document.createEventObject();
W.eventType = V
}
if (document.createEvent) {
X.dispatchEvent(W)
} else {
X.fireEvent("on" + U, W)
}
return W
},
jClearEvents: function () {
var V = K.Doc.jFetch.call(this, "_EVENTS_");
if (!V) {
return this
}
for (var U in V) {
K.Doc.jRemoveEvent.call(this, U)
}
K.Doc.jDel.call(this, "_EVENTS_");
return this
}
});
(function (U) {
if (document.readyState === "complete") {
return U.browser.onready.jDelay(1)
}
if (U.browser.webkit && U.browser.version < 420) {
(function () {
if (U.$(["loaded", "complete"]).contains(document.readyState)) {
U.browser.onready()
} else {
arguments.callee.jDelay(50)
}
}())
} else {
if (U.browser.trident && U.browser.ieMode < 9 && window === top) {
(function () {
if (U.$try(function () {
U.browser.getDoc().doScroll("left");
return true
})) {
U.browser.onready()
} else {
arguments.callee.jDelay(50)
}
}())
} else {
U.Doc.jAddEvent.call(U.$(document), "DOMContentLoaded", U.browser.onready);
U.Doc.jAddEvent.call(U.$(window), "load", U.browser.onready)
}
}
}(Q));
K.Class = function () {
var Y = null,
V = K.$A(arguments);
if ("class" == K.jTypeOf(V[0])) {
Y = V.shift()
}
var U = function () {
for (var ab in this) {
this[ab] = K.detach(this[ab])
}
if (this.constructor.$parent) {
this.$parent = {};
var ad = this.constructor.$parent;
for (var ac in ad) {
var aa = ad[ac];
switch (K.jTypeOf(aa)) {
case "function":
this.$parent[ac] = K.Class.wrap(this, aa);
break;
case "object":
this.$parent[ac] = K.detach(aa);
break;
case "array":
this.$parent[ac] = K.detach(aa);
break
}
}
}
var Z = (this.init) ? this.init.apply(this, arguments) : this;
delete this.caller;
return Z
};
if (!U.prototype.init) {
U.prototype.init = K.$F
}
if (Y) {
var X = function () {};
X.prototype = Y.prototype;
U.prototype = new X;
U.$parent = {};
for (var W in Y.prototype) {
U.$parent[W] = Y.prototype[W]
}
} else {
U.$parent = null
}
U.constructor = K.Class;
U.prototype.constructor = U;
K.extend(U.prototype, V[0]);
K.extend(U, {
$J_TYPE: "class"
});
return U
};
Q.Class.wrap = function (U, V) {
return function () {
var X = this.caller;
var W = V.apply(U, arguments);
return W
}
};
(function (X) {
var W = X.$;
var U = 5,
V = 300;
X.Event.Custom.btnclick = new X.Class(X.extend(X.Event.Custom, {
type: "btnclick",
init: function (aa, Z) {
var Y = Z.jGetPageXY();
this.x = Y.x;
this.y = Y.y;
this.clientX = Z.clientX;
this.clientY = Z.clientY;
this.timeStamp = Z.timeStamp;
this.button = Z.getButton();
this.target = aa;
this.pushToEvents(Z)
}
}));
X.Event.Custom.btnclick.handler = {
options: {
threshold: V,
button: 1
},
add: function (Y) {
this.jStore("event:btnclick:options", X.extend(X.detach(X.Event.Custom.btnclick.handler.options), Y || {}));
this.jAddEvent("mousedown", X.Event.Custom.btnclick.handler.handle, 1);
this.jAddEvent("mouseup", X.Event.Custom.btnclick.handler.handle, 1);
this.jAddEvent("click", X.Event.Custom.btnclick.handler.onclick, 1);
if (X.browser.trident && X.browser.ieMode < 9) {
this.jAddEvent("dblclick", X.Event.Custom.btnclick.handler.handle, 1)
}
},
jRemove: function () {
this.jRemoveEvent("mousedown", X.Event.Custom.btnclick.handler.handle);
this.jRemoveEvent("mouseup", X.Event.Custom.btnclick.handler.handle);
this.jRemoveEvent("click", X.Event.Custom.btnclick.handler.onclick);
if (X.browser.trident && X.browser.ieMode < 9) {
this.jRemoveEvent("dblclick", X.Event.Custom.btnclick.handler.handle)
}
},
onclick: function (Y) {
Y.stopDefaults()
},
handle: function (ab) {
var aa, Y, Z;
Y = this.jFetch("event:btnclick:options");
if (ab.type != "dblclick" && ab.getButton() != Y.button) {
return
}
if (this.jFetch("event:btnclick:ignore")) {
this.jDel("event:btnclick:ignore");
return
}
if ("mousedown" == ab.type) {
aa = new X.Event.Custom.btnclick(this, ab);
this.jStore("event:btnclick:btnclickEvent", aa)
} else {
if ("mouseup" == ab.type) {
aa = this.jFetch("event:btnclick:btnclickEvent");
if (!aa) {
return
}
Z = ab.jGetPageXY();
this.jDel("event:btnclick:btnclickEvent");
aa.pushToEvents(ab);
if (ab.timeStamp - aa.timeStamp <= Y.threshold && Math.sqrt(Math.pow(Z.x - aa.x, 2) + Math.pow(Z.y - aa.y, 2)) <= U) {
this.jCallEvent("btnclick", aa)
}
document.jCallEvent("mouseup", ab)
} else {
if (ab.type == "dblclick") {
aa = new X.Event.Custom.btnclick(this, ab);
this.jCallEvent("btnclick", aa)
}
}
}
}
}
})(Q);
(function (V) {
var U = V.$;
V.Event.Custom.mousedrag = new V.Class(V.extend(V.Event.Custom, {
type: "mousedrag",
state: "dragstart",
dragged: false,
init: function (Z, Y, X) {
var W = Y.jGetPageXY();
this.x = W.x;
this.y = W.y;
this.clientX = Y.clientX;
this.clientY = Y.clientY;
this.timeStamp = Y.timeStamp;
this.button = Y.getButton();
this.target = Z;
this.pushToEvents(Y);
this.state = X
}
}));
V.Event.Custom.mousedrag.handler = {
add: function () {
var X = V.Event.Custom.mousedrag.handler.handleMouseMove.jBindAsEvent(this);
var W = V.Event.Custom.mousedrag.handler.handleMouseUp.jBindAsEvent(this);
this.jAddEvent("mousedown", V.Event.Custom.mousedrag.handler.handleMouseDown, 1);
this.jAddEvent("mouseup", V.Event.Custom.mousedrag.handler.handleMouseUp, 1);
document.jAddEvent("mousemove", X, 1);
document.jAddEvent("mouseup", W, 1);
this.jStore("event:mousedrag:listeners:document:move", X);
this.jStore("event:mousedrag:listeners:document:end", W)
},
jRemove: function () {
this.jRemoveEvent("mousedown", V.Event.Custom.mousedrag.handler.handleMouseDown);
this.jRemoveEvent("mouseup", V.Event.Custom.mousedrag.handler.handleMouseUp);
U(document).jRemoveEvent("mousemove", this.jFetch("event:mousedrag:listeners:document:move") || V.$F);
U(document).jRemoveEvent("mouseup", this.jFetch("event:mousedrag:listeners:document:end") || V.$F);
this.jDel("event:mousedrag:listeners:document:move");
this.jDel("event:mousedrag:listeners:document:end")
},
handleMouseDown: function (X) {
var W;
if (X.getButton() !== 1) {
return
}
W = new V.Event.Custom.mousedrag(this, X, "dragstart");
this.jStore("event:mousedrag:dragstart", W)
},
handleMouseUp: function (X) {
var W;
W = this.jFetch("event:mousedrag:dragstart");
if (!W) {
return
}
if (W.dragged) {
X.stopDefaults()
}
W = new V.Event.Custom.mousedrag(this, X, "dragend");
this.jDel("event:mousedrag:dragstart");
this.jCallEvent("mousedrag", W)
},
handleMouseMove: function (X) {
var W;
W = this.jFetch("event:mousedrag:dragstart");
if (!W) {
return
}
X.stopDefaults();
if (!W.dragged) {
W.dragged = true;
this.jCallEvent("mousedrag", W)
}
W = new V.Event.Custom.mousedrag(this, X, "dragmove");
this.jCallEvent("mousedrag", W)
}
}
})(Q);
(function (V) {
var U = V.$;
V.Event.Custom.dblbtnclick = new V.Class(V.extend(V.Event.Custom, {
type: "dblbtnclick",
timedout: false,
tm: null,
init: function (Y, X) {
var W = X.jGetPageXY();
this.x = W.x;
this.y = W.y;
this.clientX = X.clientX;
this.clientY = X.clientY;
this.timeStamp = X.timeStamp;
this.button = X.getButton();
this.target = Y;
this.pushToEvents(X)
}
}));
V.Event.Custom.dblbtnclick.handler = {
options: {
threshold: 200
},
add: function (W) {
this.jStore("event:dblbtnclick:options", V.extend(V.detach(V.Event.Custom.dblbtnclick.handler.options), W || {}));
this.jAddEvent("btnclick", V.Event.Custom.dblbtnclick.handler.handle, 1)
},
jRemove: function () {
this.jRemoveEvent("btnclick", V.Event.Custom.dblbtnclick.handler.handle)
},
handle: function (Y) {
var X, W;
X = this.jFetch("event:dblbtnclick:event");
W = this.jFetch("event:dblbtnclick:options");
if (!X) {
X = new V.Event.Custom.dblbtnclick(this, Y);
X.tm = setTimeout(function () {
X.timedout = true;
Y.isQueueStopped = V.$false;
this.jCallEvent("btnclick", Y);
this.jDel("event:dblbtnclick:event")
}.jBind(this), W.threshold + 10);
this.jStore("event:dblbtnclick:event", X);
Y.stopQueue()
} else {
clearTimeout(X.tm);
this.jDel("event:dblbtnclick:event");
if (!X.timedout) {
X.pushToEvents(Y);
Y.stopQueue().stop();
this.jCallEvent("dblbtnclick", X)
} else {}
}
}
}
})(Q);
(function (X) {
var W = X.$;
var U = 10;
var V = 200;
X.Event.Custom.tap = new X.Class(X.extend(X.Event.Custom, {
type: "tap",
id: null,
init: function (Z, Y) {
var aa = Y.getPrimaryTouch();
this.id = aa.pointerId || aa.identifier;
this.x = aa.pageX;
this.y = aa.pageY;
this.pageX = aa.pageX;
this.pageY = aa.pageY;
this.clientX = aa.clientX;
this.clientY = aa.clientY;
this.timeStamp = Y.timeStamp;
this.button = 0;
this.target = Z;
this.pushToEvents(Y)
}
}));
X.Event.Custom.tap.handler = {
add: function (Y) {
this.jAddEvent(["touchstart", "pointerdown"], X.Event.Custom.tap.handler.onTouchStart, 1);
this.jAddEvent(["touchend", "pointerup"], X.Event.Custom.tap.handler.onTouchEnd, 1);
this.jAddEvent("click", X.Event.Custom.tap.handler.onClick, 1)
},
jRemove: function () {
this.jRemoveEvent(["touchstart", "pointerdown"], X.Event.Custom.tap.handler.onTouchStart);
this.jRemoveEvent(["touchend", "pointerup"], X.Event.Custom.tap.handler.onTouchEnd);
this.jRemoveEvent("click", X.Event.Custom.tap.handler.onClick)
},
onClick: function (Y) {
Y.stopDefaults()
},
onTouchStart: function (Y) {
if (!Y.isPrimaryTouch()) {
this.jDel("event:tap:event");
return
}
this.jStore("event:tap:event", new X.Event.Custom.tap(this, Y));
this.jStore("event:btnclick:ignore", true)
},
onTouchEnd: function (ab) {
var Z = X.now();
var aa = this.jFetch("event:tap:event");
var Y = this.jFetch("event:tap:options");
if (!aa || !ab.isPrimaryTouch()) {
return
}
this.jDel("event:tap:event");
if (aa.id === ab.getPrimaryTouchId() && ab.timeStamp - aa.timeStamp <= V && Math.sqrt(Math.pow(ab.getPrimaryTouch().pageX - aa.x, 2) + Math.pow(ab.getPrimaryTouch().pageY - aa.y, 2)) <= U) {
this.jDel("event:btnclick:btnclickEvent");
ab.stop();
aa.pushToEvents(ab);
this.jCallEvent("tap", aa)
}
}
}
}(Q));
K.Event.Custom.dbltap = new K.Class(K.extend(K.Event.Custom, {
type: "dbltap",
timedout: false,
tm: null,
init: function (V, U) {
this.x = U.x;
this.y = U.y;
this.clientX = U.clientX;
this.clientY = U.clientY;
this.timeStamp = U.timeStamp;
this.button = 0;
this.target = V;
this.pushToEvents(U)
}
}));
K.Event.Custom.dbltap.handler = {
options: {
threshold: 300
},
add: function (U) {
this.jStore("event:dbltap:options", K.extend(K.detach(K.Event.Custom.dbltap.handler.options), U || {}));
this.jAddEvent("tap", K.Event.Custom.dbltap.handler.handle, 1)
},
jRemove: function () {
this.jRemoveEvent("tap", K.Event.Custom.dbltap.handler.handle)
},
handle: function (W) {
var V, U;
V = this.jFetch("event:dbltap:event");
U = this.jFetch("event:dbltap:options");
if (!V) {
V = new K.Event.Custom.dbltap(this, W);
V.tm = setTimeout(function () {
V.timedout = true;
W.isQueueStopped = K.$false;
this.jCallEvent("tap", W)
}.jBind(this), U.threshold + 10);
this.jStore("event:dbltap:event", V);
W.stopQueue()
} else {
clearTimeout(V.tm);
this.jDel("event:dbltap:event");
if (!V.timedout) {
V.pushToEvents(W);
W.stopQueue().stop();
this.jCallEvent("dbltap", V)
} else {}
}
}
};
(function (W) {
var V = W.$;
var U = 10;
W.Event.Custom.touchdrag = new W.Class(W.extend(W.Event.Custom, {
type: "touchdrag",
state: "dragstart",
id: null,
dragged: false,
init: function (Z, Y, X) {
var aa = Y.getPrimaryTouch();
this.id = aa.pointerId || aa.identifier;
this.clientX = aa.clientX;
this.clientY = aa.clientY;
this.pageX = aa.pageX;
this.pageY = aa.pageY;
this.x = aa.pageX;
this.y = aa.pageY;
this.timeStamp = Y.timeStamp;
this.button = 0;
this.target = Z;
this.pushToEvents(Y);
this.state = X
}
}));
W.Event.Custom.touchdrag.handler = {
add: function () {
var Y = W.Event.Custom.touchdrag.handler.onTouchMove.jBind(this);
var X = W.Event.Custom.touchdrag.handler.onTouchEnd.jBind(this);
this.jAddEvent(["touchstart", "pointerdown"], W.Event.Custom.touchdrag.handler.onTouchStart, 1);
this.jAddEvent(["touchend", "pointerup"], W.Event.Custom.touchdrag.handler.onTouchEnd, 1);
this.jAddEvent(["touchmove", "pointermove"], W.Event.Custom.touchdrag.handler.onTouchMove, 1);
this.jStore("event:touchdrag:listeners:document:move", Y);
this.jStore("event:touchdrag:listeners:document:end", X);
V(document).jAddEvent("pointermove", Y, 1);
V(document).jAddEvent("pointerup", X, 1)
},
jRemove: function () {
this.jRemoveEvent(["touchstart", "pointerdown"], W.Event.Custom.touchdrag.handler.onTouchStart);
this.jRemoveEvent(["touchend", "pointerup"], W.Event.Custom.touchdrag.handler.onTouchEnd);
this.jRemoveEvent(["touchmove", "pointermove"], W.Event.Custom.touchdrag.handler.onTouchMove);
V(document).jRemoveEvent("pointermove", this.jFetch("event:touchdrag:listeners:document:move") || W.$F, 1);
V(document).jRemoveEvent("pointerup", this.jFetch("event:touchdrag:listeners:document:end") || W.$F, 1);
this.jDel("event:touchdrag:listeners:document:move");
this.jDel("event:touchdrag:listeners:document:end")
},
onTouchStart: function (Y) {
var X;
if (!Y.isPrimaryTouch()) {
return
}
X = new W.Event.Custom.touchdrag(this, Y, "dragstart");
this.jStore("event:touchdrag:dragstart", X)
},
onTouchEnd: function (Y) {
var X;
X = this.jFetch("event:touchdrag:dragstart");
if (!X || !X.dragged || X.id !== Y.getPrimaryTouchId()) {
return
}
X = new W.Event.Custom.touchdrag(this, Y, "dragend");
this.jDel("event:touchdrag:dragstart");
this.jCallEvent("touchdrag", X)
},
onTouchMove: function (Y) {
var X;
X = this.jFetch("event:touchdrag:dragstart");
if (!X || !Y.isPrimaryTouch()) {
return
}
if (X.id !== Y.getPrimaryTouchId()) {
this.jDel("event:touchdrag:dragstart");
return
}
if (!X.dragged && Math.sqrt(Math.pow(Y.getPrimaryTouch().pageX - X.x, 2) + Math.pow(Y.getPrimaryTouch().pageY - X.y, 2)) > U) {
X.dragged = true;
this.jCallEvent("touchdrag", X)
}
if (!X.dragged) {
return
}
X = new W.Event.Custom.touchdrag(this, Y, "dragmove");
this.jCallEvent("touchdrag", X)
}
}
}(Q));
(function (X) {
var ab = X.$;
var Y = null;

function U(ak, aj) {
var ai = aj.x - ak.x;
var al = aj.y - ak.y;
return Math.sqrt(ai * ai + al * al)
}

function ad(ao, ap) {
var an = Array.prototype.slice.call(ao);
var am = Math.abs(an[1].pageX - an[0].pageX);
var ak = Math.abs(an[1].pageY - an[0].pageY);
var al = Math.min(an[1].pageX, an[0].pageX) + am / 2;
var aj = Math.min(an[1].pageY, an[0].pageY) + ak / 2;
var ai = 0;
ap.points = [an[0], an[1]];
ai = Math.pow(U({
x: an[0].pageX,
y: an[0].pageY
}, {
x: an[1].pageX,
y: an[1].pageY
}), 2);
ap.centerPoint = {
x: al,
y: aj
};
ap.x = ap.centerPoint.x;
ap.y = ap.centerPoint.y;
return ai
}

function ag(ai) {
return ai / Y
}

function V(ak, aj) {
var ai;
if (ak.targetTouches && ak.changedTouches) {
if (ak.targetTouches) {
ai = ak.targetTouches
} else {
ai = ak.changedTouches
}
ai = Array.prototype.slice.call(ai)
} else {
ai = [];
if (aj) {
aj.forEach(function (al) {
ai.push(al)
})
}
}
return ai
}

function W(al, ak, aj) {
var ai = false;
if (al.pointerId && al.pointerType === "touch" && (!aj || ak.has(al.pointerId))) {
ak.set(al.pointerId, al);
ai = true
}
return ai
}

function ac(aj, ai) {
if (aj.pointerId && aj.pointerType === "touch" && ai && ai.has(aj.pointerId)) {
ai["delete"](aj.pointerId)
}
}

function af(aj) {
var ai;
if (aj.pointerId && aj.pointerType === "touch") {
ai = aj.pointerId
} else {
ai = aj.identifier
}
return ai
}

function aa(al, aj) {
var ak;
var am;
var ai = false;
for (ak = 0; ak < al.length; ak++) {
if (aj.length === 2) {
break
} else {
am = af(al[ak]);
if (!aj.contains(am)) {
aj.push(am);
ai = true
}
}
}
return ai
}

function ae(aj) {
var ai = ab([]);
aj.forEach(function (ak) {
ai.push(af(ak))
});
return ai
}

function ah(am, aj) {
var ak;
var al;
var ai = false;
if (aj) {
al = ae(am);
for (ak = 0; ak < aj.length; ak++) {
if (!al.contains(aj[ak])) {
aj.splice(ak, 1);
ai = true;
break
}
}
}
return ai
}

function Z(al, aj) {
var ak;
var ai = ab([]);
for (ak = 0; ak < al.length; ak++) {
if (aj.contains(af(al[ak]))) {
ai.push(al[ak]);
if (ai.length === 2) {
break
}
}
}
return ai
}
X.Event.Custom.pinch = new X.Class(X.extend(X.Event.Custom, {
type: "pinch",
state: "pinchstart",
init: function (ak, aj, ai, al) {
this.target = ak;
this.state = ai;
this.x = al.x;
this.y = al.y;
this.timeStamp = aj.timeStamp;
this.scale = al.scale;
this.space = al.space;
this.zoom = al.zoom;
this.state = ai;
this.centerPoint = al.centerPoint;
this.points = al.points;
this.pushToEvents(aj)
}
}));
X.Event.Custom.pinch.handler = {
variables: {
x: 0,
y: 0,
space: 0,
scale: 1,
zoom: 0,
startSpace: 0,
startScale: 1,
started: false,
dragged: false,
points: [],
centerPoint: {
x: 0,
y: 0
}
},
add: function (ak) {
if (!Y) {
Y = (function () {
var al = ab(window).jGetSize();
al.width = Math.min(al.width, al.height);
al.height = al.width;
return Math.pow(U({
x: 0,
y: 0
}, {
x: al.width,
y: al.height
}), 2)
})()
}
var aj = X.Event.Custom.pinch.handler.onTouchMove.jBind(this);
var ai = X.Event.Custom.pinch.handler.onTouchEnd.jBind(this);
this.jAddEvent(["click", "tap"], X.Event.Custom.pinch.handler.onClick, 1);
this.jAddEvent(["touchstart", "pointerdown"], X.Event.Custom.pinch.handler.onTouchStart, 1);
this.jAddEvent(["touchend", "pointerup"], X.Event.Custom.pinch.handler.onTouchEnd, 1);
this.jAddEvent(["touchmove", "pointermove"], X.Event.Custom.pinch.handler.onTouchMove, 1);
this.jStore("event:pinch:listeners:touchmove", aj);
this.jStore("event:pinch:listeners:touchend", ai);
X.doc.jAddEvent("pointermove", aj, 1);
X.doc.jAddEvent("pointerup", ai, 1)
},
jRemove: function () {
this.jRemoveEvent(["click", "tap"], X.Event.Custom.pinch.handler.onClick);
this.jRemoveEvent(["touchstart", "pointerdown"], X.Event.Custom.pinch.handler.onTouchStart);
this.jRemoveEvent(["touchend", "pointerup"], X.Event.Custom.pinch.handler.onTouchEnd);
this.jRemoveEvent(["touchmove", "pointermove"], X.Event.Custom.pinch.handler.onTouchMove);
X.doc.jRemoveEvent("pointermove", this.jFetch("event:pinch:listeners:touchmove"));
X.doc.jRemoveEvent("pointerup", this.jFetch("event:pinch:listeners:touchend"));
this.jDel("event:pinch:listeners:touchmove");
this.jDel("event:pinch:listeners:touchend");
this.jDel("event:pinch:pinchstart");
this.jDel("event:pinch:variables");
this.jDel("event:pinch:activepoints");
var ai = this.jFetch("event:pinch:cache");
if (ai) {
ai.clear()
}
this.jDel("event:pinch:cache")
},
onClick: function (ai) {
ai.stop()
},
setVariables: function (aj, ak) {
var ai = ak.space;
if (aj.length > 1) {
ak.space = ad(aj, ak);
if (!ak.startSpace) {
ak.startSpace = ak.space
}
if (ai > ak.space) {
ak.zoom = -1
} else {
if (ai < ak.space) {
ak.zoom = 1
} else {
ak.zoom = 0
}
}
ak.scale = ag(ak.space)
} else {
ak.points = Array.prototype.slice.call(aj, 0, 2)
}
},
onTouchMove: function (ak) {
var aj;
var ai = this.jFetch("event:pinch:cache");
var am = this.jFetch("event:pinch:variables") || X.extend({}, X.Event.Custom.pinch.handler.variables);
var al = this.jFetch("event:pinch:activepoints");
if (am.started) {
if (ak.pointerId && !W(ak, ai, true)) {
return
}
ak.stop();
X.Event.Custom.pinch.handler.setVariables(Z(V(ak, ai), al), am);
aj = new X.Event.Custom.pinch(this, ak, "pinchmove", am);
this.jCallEvent("pinch", aj)
}
},
onTouchStart: function (al) {
var aj;
var an;
var ak;
var ai = this.jFetch("event:pinch:cache");
var am = this.jFetch("event:pinch:activepoints");
if (al.pointerType === "mouse") {
return
}
if (!am) {
am = ab([]);
this.jStore("event:pinch:activepoints", am)
}
if (!am.length) {
ab(al.target).jAddEvent(["touchend", "pointerup"], this.jFetch("event:pinch:listeners:touchend"), 1)
}
if (!ai) {
ai = new Map();
this.jStore("event:pinch:cache", ai)
}
W(al, ai);
ak = V(al, ai);
aa(ak, am);
if (ak.length === 2) {
aj = this.jFetch("event:pinch:pinchstart");
an = this.jFetch("event:pinch:variables") || X.extend({}, X.Event.Custom.pinch.handler.variables);
X.Event.Custom.pinch.handler.setVariables(Z(ak, am), an);
if (!aj) {
aj = new X.Event.Custom.pinch(this, al, "pinchstart", an);
this.jStore("event:pinch:pinchstart", aj);
this.jStore("event:pinch:variables", an);
Y = an.space;
this.jCallEvent("pinch", aj);
an.started = true
}
}
},
onTouchEnd: function (an) {
var am;
var al;
var ap;
var aj;
var ak = this.jFetch("event:pinch:cache");
var ao;
var ai;
if (an.pointerType === "mouse" || an.pointerId && (!ak || !ak.has(an.pointerId))) {
return
}
al = this.jFetch("event:pinch:pinchstart");
ap = this.jFetch("event:pinch:variables");
ao = this.jFetch("event:pinch:activepoints");
am = V(an, ak);
ac(an, ak);
ai = ah(am, ao);
if (!al || !ap || !ap.started || !ai || !ao) {
return
}
if (ai) {
aa(am, ao)
}
aj = "pinchend";
if (am.length > 1) {
aj = "pinchresize"
} else {
an.target.jRemoveEvent(["touchend", "pointerup"], this.jFetch("event:pinch:listeners:touchend"));
if (ak) {
ak.clear()
}
this.jDel("event:pinch:pinchstart");
this.jDel("event:pinch:variables");
this.jDel("event:pinch:cache");
this.jDel("event:pinch:activepoints")
}
X.Event.Custom.pinch.handler.setVariables(Z(am, ao), ap);
al = new X.Event.Custom.pinch(this, an, aj, ap);
this.jCallEvent("pinch", al)
}
}
}(Q));
(function (Z) {
var X = Z.$;
Z.Event.Custom.mousescroll = new Z.Class(Z.extend(Z.Event.Custom, {
type: "mousescroll",
init: function (af, ae, ah, ab, aa, ag, ac) {
var ad = ae.jGetPageXY();
this.x = ad.x;
this.y = ad.y;
this.timeStamp = ae.timeStamp;
this.target = af;
this.delta = ah || 0;
this.deltaX = ab || 0;
this.deltaY = aa || 0;
this.deltaZ = ag || 0;
this.deltaFactor = ac || 0;
this.deltaMode = ae.deltaMode || 0;
this.isMouse = false;
this.pushToEvents(ae)
}
}));
var Y, V;

function U() {
Y = null
}

function W(aa, ab) {
return (aa > 50) || (1 === ab && !("win" == Z.browser.platform && aa < 1)) || (0 === aa % 12) || (0 == aa % 4.000244140625)
}
Z.Event.Custom.mousescroll.handler = {
eventType: "onwheel" in document || Z.browser.ieMode > 8 ? "wheel" : "mousewheel",
add: function () {
this.jAddEvent(Z.Event.Custom.mousescroll.handler.eventType, Z.Event.Custom.mousescroll.handler.handle, 1)
},
jRemove: function () {
this.jRemoveEvent(Z.Event.Custom.mousescroll.handler.eventType, Z.Event.Custom.mousescroll.handler.handle, 1)
},
handle: function (af) {
var ag = 0,
ad = 0,
ab = 0,
aa = 0,
ae, ac;
if (af.detail) {
ab = af.detail * -1
}
if (af.wheelDelta !== undefined) {
ab = af.wheelDelta
}
if (af.wheelDeltaY !== undefined) {
ab = af.wheelDeltaY
}
if (af.wheelDeltaX !== undefined) {
ad = af.wheelDeltaX * -1
}
if (af.deltaY) {
ab = -1 * af.deltaY
}
if (af.deltaX) {
ad = af.deltaX
}
if (0 === ab && 0 === ad) {
return
}
ag = 0 === ab ? ad : ab;
aa = Math.max(Math.abs(ab), Math.abs(ad));
if (!Y || aa < Y) {
Y = aa
}
ae = ag > 0 ? "floor" : "ceil";
ag = Math[ae](ag / Y);
ad = Math[ae](ad / Y);
ab = Math[ae](ab / Y);
if (V) {
clearTimeout(V)
}
V = setTimeout(U, 200);
ac = new Z.Event.Custom.mousescroll(this, af, ag, ad, ab, 0, Y);
ac.isMouse = W(Y, af.deltaMode || 0);
this.jCallEvent("mousescroll", ac)
}
}
})(Q);
K.win = K.$(window);
K.doc = K.$(document);
return Q
})();
(function (G) {
if (!G) {
throw "MagicJS not found"
}
var F = G.$;
var E = window.URL || window.webkitURL || null;
x.ImageLoader = new G.Class({
img: null,
ready: false,
options: {
onprogress: G.$F,
onload: G.$F,
onabort: G.$F,
onerror: G.$F,
oncomplete: G.$F,
onxhrerror: G.$F,
xhr: false,
progressiveLoad: true
},
size: null,
_timer: null,
loadedBytes: 0,
_handlers: {
onprogress: function (H) {
if (H.target && (200 === H.target.status || 304 === H.target.status) && H.lengthComputable) {
this.options.onprogress.jBind(null, (H.loaded - (this.options.progressiveLoad ? this.loadedBytes : 0)) / H.total).jDelay(1);
this.loadedBytes = H.loaded
}
},
onload: function (H) {
if (H) {
F(H).stop()
}
this._unbind();
if (this.ready) {
return
}
this.ready = true;
this._cleanup();
!this.options.xhr && this.options.onprogress.jBind(null, 1).jDelay(1);
this.options.onload.jBind(null, this).jDelay(1);
this.options.oncomplete.jBind(null, this).jDelay(1)
},
onabort: function (H) {
if (H) {
F(H).stop()
}
this._unbind();
this.ready = false;
this._cleanup();
this.options.onabort.jBind(null, this).jDelay(1);
this.options.oncomplete.jBind(null, this).jDelay(1)
},
onerror: function (H) {
if (H) {
F(H).stop()
}
this._unbind();
this.ready = false;
this._cleanup();
this.options.onerror.jBind(null, this).jDelay(1);
this.options.oncomplete.jBind(null, this).jDelay(1)
}
},
_bind: function () {
F(["load", "abort", "error"]).jEach(function (H) {
this.img.jAddEvent(H, this._handlers["on" + H].jBindAsEvent(this).jDefer(1))
}, this)
},
_unbind: function () {
if (this._timer) {
try {
clearTimeout(this._timer)
} catch (H) {}
this._timer = null
}
F(["load", "abort", "error"]).jEach(function (I) {
this.img.jRemoveEvent(I)
}, this)
},
_cleanup: function () {
this.jGetSize();
if (this.img.jFetch("new")) {
var H = this.img.parentNode;
this.img.jRemove().jDel("new").jSetCss({
position: "static",
top: "auto"
});
H.kill()
}
},
loadBlob: function (I) {
var J = new XMLHttpRequest(),
H;
F(["abort", "progress"]).jEach(function (K) {
J["on" + K] = F(function (L) {
this._handlers["on" + K].call(this, L)
}).jBind(this)
}, this);
J.onerror = F(function () {
this.options.onxhrerror.jBind(null, this).jDelay(1);
this.options.xhr = false;
this._bind();
this.img.src = I
}).jBind(this);
J.onload = F(function () {
if (200 !== J.status && 304 !== J.status) {
this._handlers.onerror.call(this);
return
}
H = J.response;
this._bind();
if (E && !G.browser.trident && !("ios" === G.browser.platform && G.browser.version < 537)) {
this.img.setAttribute("src", E.createObjectURL(H))
} else {
this.img.src = I
}
}).jBind(this);
J.open("GET", I);
J.responseType = "blob";
J.send()
},
init: function (I, H) {
this.options = G.extend(this.options, H);
this.img = F(I) || G.$new("img").jSetCss({
maxWidth: "none",
maxHeight: "none"
}).jAppendTo(G.$new("div").jAddClass("magic-temporary-img").jSetCss({
position: "absolute",
top: -10000,
width: 10,
height: 10,
overflow: "hidden"
}).jAppendTo(document.body)).jStore("new", true);
if (H.referrerPolicy) {
this.img.setAttribute("referrerpolicy", H.referrerPolicy)
}
if (G.browser.features.xhr2 && this.options.xhr && G.jTypeOf(I) === "string") {
this.loadBlob(I);
return
}
var J = function () {
if (this.isReady()) {
this._handlers.onload.call(this)
} else {
this._handlers.onerror.call(this)
}
J = null
}.jBind(this);
this._bind();
if ("string" == G.jTypeOf(I)) {
this.img.src = I
} else {
if (G.browser.trident && 5 == G.browser.version && G.browser.ieMode < 9) {
this.img.onreadystatechange = function () {
if (/loaded|complete/.test(this.img.readyState)) {
this.img.onreadystatechange = null;
J && J()
}
}.jBind(this)
}
this.img.src = I.getAttribute("src")
}
this.img && this.img.complete && J && (this._timer = J.jDelay(100))
},
destroy: function () {
this._unbind();
this._cleanup();
this.ready = false;
return this
},
isReady: function () {
var H = this.img;
return (H.naturalWidth) ? (H.naturalWidth > 0) : (H.readyState) ? ("complete" == H.readyState) : H.width > 0
},
jGetSize: function () {
return this.size || (this.size = {
width: this.img.naturalWidth || this.img.width,
height: this.img.naturalHeight || this.img.height
})
}
})
})(x);
(function (F) {
if (!F) {
throw "MagicJS not found"
}
if (F.FX) {
return
}
var E = F.$;
F.FX = new F.Class({
init: function (H, G) {
var I;
this.el = F.$(H);
this.options = F.extend(this.options, G);
this.timer = false;
this.easeFn = this.cubicBezierAtTime;
I = F.FX.Transition[this.options.transition] || this.options.transition;
if ("function" === F.jTypeOf(I)) {
this.easeFn = I
} else {
this.cubicBezier = this.parseCubicBezier(I) || this.parseCubicBezier("ease")
}
if ("string" == F.jTypeOf(this.options.cycles)) {
this.options.cycles = "infinite" === this.options.cycles ? Infinity : parseInt(this.options.cycles) || 1
}
},
options: {
fps: 60,
duration: 600,
transition: "ease",
cycles: 1,
direction: "normal",
onStart: F.$F,
onComplete: F.$F,
onBeforeRender: F.$F,
onAfterRender: F.$F,
forceAnimation: false,
roundCss: false
},
styles: null,
cubicBezier: null,
easeFn: null,
setTransition: function (G) {
this.options.transition = G;
G = F.FX.Transition[this.options.transition] || this.options.transition;
if ("function" === F.jTypeOf(G)) {
this.easeFn = G
} else {
this.easeFn = this.cubicBezierAtTime;
this.cubicBezier = this.parseCubicBezier(G) || this.parseCubicBezier("ease")
}
},
start: function (I) {
var G = /\%$/,
H;
this.styles = I || {};
this.cycle = 0;
this.state = 0;
this.curFrame = 0;
this.pStyles = {};
this.alternate = "alternate" === this.options.direction || "alternate-reverse" === this.options.direction;
this.continuous = "continuous" === this.options.direction || "continuous-reverse" === this.options.direction;
for (H in this.styles) {
G.test(this.styles[H][0]) && (this.pStyles[H] = true);
if ("reverse" === this.options.direction || "alternate-reverse" === this.options.direction || "continuous-reverse" === this.options.direction) {
this.styles[H].reverse()
}
}
this.startTime = F.now();
this.finishTime = this.startTime + this.options.duration;
this.options.onStart.call();
if (0 === this.options.duration) {
this.render(1);
this.options.onComplete.call()
} else {
this.loopBind = this.loop.jBind(this);
if (!this.options.forceAnimation && F.browser.features.requestAnimationFrame) {
this.timer = F.browser.requestAnimationFrame.call(window, this.loopBind)
} else {
this.timer = this.loopBind.interval(Math.round(1000 / this.options.fps))
}
}
return this
},
stopAnimation: function () {
if (this.timer) {
if (!this.options.forceAnimation && F.browser.features.requestAnimationFrame && F.browser.cancelAnimationFrame) {
F.browser.cancelAnimationFrame.call(window, this.timer)
} else {
clearInterval(this.timer)
}
this.timer = false
}
},
stop: function (G) {
G = F.defined(G) ? G : false;
this.stopAnimation();
if (G) {
this.render(1);
this.options.onComplete.jDelay(10)
}
return this
},
calc: function (I, H, G) {
I = parseFloat(I);
H = parseFloat(H);
return (H - I) * G + I
},
loop: function () {
var H = F.now(),
G = (H - this.startTime) / this.options.duration,
I = Math.floor(G);
if (H >= this.finishTime && I >= this.options.cycles) {
this.stopAnimation();
this.render(1);
this.options.onComplete.jDelay(10);
return this
}
if (this.alternate && this.cycle < I) {
for (var J in this.styles) {
this.styles[J].reverse()
}
}
this.cycle = I;
if (!this.options.forceAnimation && F.browser.features.requestAnimationFrame) {
this.timer = F.browser.requestAnimationFrame.call(window, this.loopBind)
}
this.render((this.continuous ? I : 0) + this.easeFn(G % 1))
},
render: function (G) {
var H = {},
J = G;
for (var I in this.styles) {
if ("opacity" === I) {
H[I] = Math.round(this.calc(this.styles[I][0], this.styles[I][1], G) * 100) / 100
} else {
H[I] = this.calc(this.styles[I][0], this.styles[I][1], G);
this.pStyles[I] && (H[I] += "%")
}
}
this.options.onBeforeRender(H, this.el);
this.set(H);
this.options.onAfterRender(H, this.el)
},
set: function (G) {
return this.el.jSetCss(G)
},
parseCubicBezier: function (G) {
var H, I = null;
if ("string" !== F.jTypeOf(G)) {
return null
}
switch (G) {
case "linear":
I = E([0, 0, 1, 1]);
break;
case "ease":
I = E([0.25, 0.1, 0.25, 1]);
break;
case "ease-in":
I = E([0.42, 0, 1, 1]);
break;
case "ease-out":
I = E([0, 0, 0.58, 1]);
break;
case "ease-in-out":
I = E([0.42, 0, 0.58, 1]);
break;
case "easeInSine":
I = E([0.47, 0, 0.745, 0.715]);
break;
case "easeOutSine":
I = E([0.39, 0.575, 0.565, 1]);
break;
case "easeInOutSine":
I = E([0.445, 0.05, 0.55, 0.95]);
break;
case "easeInQuad":
I = E([0.55, 0.085, 0.68, 0.53]);
break;
case "easeOutQuad":
I = E([0.25, 0.46, 0.45, 0.94]);
break;
case "easeInOutQuad":
I = E([0.455, 0.03, 0.515, 0.955]);
break;
case "easeInCubic":
I = E([0.55, 0.055, 0.675, 0.19]);
break;
case "easeOutCubic":
I = E([0.215, 0.61, 0.355, 1]);
break;
case "easeInOutCubic":
I = E([0.645, 0.045, 0.355, 1]);
break;
case "easeInQuart":
I = E([0.895, 0.03, 0.685, 0.22]);
break;
case "easeOutQuart":
I = E([0.165, 0.84, 0.44, 1]);
break;
case "easeInOutQuart":
I = E([0.77, 0, 0.175, 1]);
break;
case "easeInQuint":
I = E([0.755, 0.05, 0.855, 0.06]);
break;
case "easeOutQuint":
I = E([0.23, 1, 0.32, 1]);
break;
case "easeInOutQuint":
I = E([0.86, 0, 0.07, 1]);
break;
case "easeInExpo":
I = E([0.95, 0.05, 0.795, 0.035]);
break;
case "easeOutExpo":
I = E([0.19, 1, 0.22, 1]);
break;
case "easeInOutExpo":
I = E([1, 0, 0, 1]);
break;
case "easeInCirc":
I = E([0.6, 0.04, 0.98, 0.335]);
break;
case "easeOutCirc":
I = E([0.075, 0.82, 0.165, 1]);
break;
case "easeInOutCirc":
I = E([0.785, 0.135, 0.15, 0.86]);
break;
case "easeInBack":
I = E([0.6, -0.28, 0.735, 0.045]);
break;
case "easeOutBack":
I = E([0.175, 0.885, 0.32, 1.275]);
break;
case "easeInOutBack":
I = E([0.68, -0.55, 0.265, 1.55]);
break;
default:
G = G.replace(/\s/g, "");
if (G.match(/^cubic-bezier\((?:-?[0-9\.]{0,}[0-9]{1,},){3}(?:-?[0-9\.]{0,}[0-9]{1,})\)$/)) {
I = G.replace(/^cubic-bezier\s*\(|\)$/g, "").split(",");
for (H = I.length - 1; H >= 0; H--) {
I[H] = parseFloat(I[H])
}
}
}
return E(I)
},
cubicBezierAtTime: function (S) {
var G = 0,
R = 0,
O = 0,
T = 0,
Q = 0,
M = 0,
N = this.options.duration;

function L(U) {
return ((G * U + R) * U + O) * U
}

function K(U) {
return ((T * U + Q) * U + M) * U
}

function I(U) {
return (3 * G * U + 2 * R) * U + O
}

function P(U) {
return 1 / (200 * U)
}

function H(U, V) {
return K(J(U, V))
}

function J(ab, ac) {
var aa, Z, Y, V, U, X;

function W(ad) {
if (ad >= 0) {
return ad
} else {
return 0 - ad
}
}
for (Y = ab, X = 0; X < 8; X++) {
V = L(Y) - ab;
if (W(V) < ac) {
return Y
}
U = I(Y);
if (W(U) < 0.000001) {
break
}
Y = Y - V / U
}
aa = 0;
Z = 1;
Y = ab;
if (Y < aa) {
return aa
}
if (Y > Z) {
return Z
}
while (aa < Z) {
V = L(Y);
if (W(V - ab) < ac) {
return Y
}
if (ab > V) {
aa = Y
} else {
Z = Y
}
Y = (Z - aa) * 0.5 + aa
}
return Y
}
O = 3 * this.cubicBezier[0];
R = 3 * (this.cubicBezier[2] - this.cubicBezier[0]) - O;
G = 1 - O - R;
M = 3 * this.cubicBezier[1];
Q = 3 * (this.cubicBezier[3] - this.cubicBezier[1]) - M;
T = 1 - M - Q;
return H(S, P(N))
}
});
F.FX.Transition = {
linear: "linear",
sineIn: "easeInSine",
sineOut: "easeOutSine",
expoIn: "easeInExpo",
expoOut: "easeOutExpo",
quadIn: "easeInQuad",
quadOut: "easeOutQuad",
cubicIn: "easeInCubic",
cubicOut: "easeOutCubic",
backIn: "easeInBack",
backOut: "easeOutBack",
elasticIn: function (H, G) {
G = G || [];
return Math.pow(2, 10 * --H) * Math.cos(20 * H * Math.PI * (G[0] || 1) / 3)
},
elasticOut: function (H, G) {
return 1 - F.FX.Transition.elasticIn(1 - H, G)
},
bounceIn: function (I) {
for (var H = 0, G = 1; 1; H += G, G /= 2) {
if (I >= (7 - 4 * H) / 11) {
return G * G - Math.pow((11 - 6 * H - 11 * I) / 4, 2)
}
}
},
bounceOut: function (G) {
return 1 - F.FX.Transition.bounceIn(1 - G)
},
none: function (G) {
return 0
}
}
})(x);
(function (F) {
if (!F) {
throw "MagicJS not found"
}
if (F.PFX) {
return
}
var E = F.$;
F.PFX = new F.Class(F.FX, {
init: function (G, H) {
this.el_arr = G;
this.options = F.extend(this.options, H);
this.timer = false;
this.$parent.init()
},
start: function (K) {
var G = /\%$/,
J, I, H = K.length;
this.styles_arr = K;
this.pStyles_arr = new Array(H);
for (I = 0; I < H; I++) {
this.pStyles_arr[I] = {};
for (J in K[I]) {
G.test(K[I][J][0]) && (this.pStyles_arr[I][J] = true);
if ("reverse" === this.options.direction || "alternate-reverse" === this.options.direction || "continuous-reverse" === this.options.direction) {
this.styles_arr[I][J].reverse()
}
}
}
this.$parent.start({});
return this
},
render: function (G) {
for (var H = 0; H < this.el_arr.length; H++) {
this.el = F.$(this.el_arr[H]);
this.styles = this.styles_arr[H];
this.pStyles = this.pStyles_arr[H];
this.$parent.render(G)
}
}
})
})(x);
(function (F) {
if (!F) {
throw "MagicJS not found";
return
}
if (F.Tooltip) {
return
}
var E = F.$;
F.Tooltip = function (H, I) {
var G = this.tooltip = F.$new("div", null, {
position: "absolute",
"z-index": 999
}).jAddClass("MagicToolboxTooltip");
F.$(H).jAddEvent("mouseover", function () {
G.jAppendTo(document.body)
});
F.$(H).jAddEvent("mouseout", function () {
G.jRemove()
});
F.$(H).jAddEvent("mousemove", function (N) {
var P = 20,
M = F.$(N).jGetPageXY(),
L = G.jGetSize(),
K = F.$(window).jGetSize(),
O = F.$(window).jGetScroll();

function J(S, Q, R) {
return (R < (S - Q) / 2) ? R : ((R > (S + Q) / 2) ? (R - Q) : (S - Q) / 2)
}
G.jSetCss({
left: O.x + J(K.width, L.width + 2 * P, M.x - O.x) + P,
top: O.y + J(K.height, L.height + 2 * P, M.y - O.y) + P
})
});
this.text(I)
};
F.Tooltip.prototype.text = function (G) {
this.tooltip.firstChild && this.tooltip.removeChild(this.tooltip.firstChild);
this.tooltip.append(document.createTextNode(G))
}
})(x);
(function (F) {
if (!F) {
throw "MagicJS not found";
return
}
if (F.MessageBox) {
return
}
var E = F.$;
F.Message = function (J, I, H, G) {
this.hideTimer = null;
this.messageBox = F.$new("span", null, {
position: "absolute",
"z-index": 999,
visibility: "hidden",
opacity: 0.8
}).jAddClass(G || "").jAppendTo(H || document.body);
this.setMessage(J);
this.show(I)
};
F.Message.prototype.show = function (G) {
this.messageBox.show();
this.hideTimer = this.hide.jBind(this).jDelay(F.ifndef(G, 5000))
};
F.Message.prototype.hide = function (G) {
clearTimeout(this.hideTimer);
this.hideTimer = null;
if (this.messageBox && !this.hideFX) {
this.hideFX = new x.FX(this.messageBox, {
duration: F.ifndef(G, 500),
onComplete: function () {
this.messageBox.kill();
delete this.messageBox;
this.hideFX = null
}.jBind(this)
}).start({
opacity: [this.messageBox.jGetCss("opacity"), 0]
})
}
};
F.Message.prototype.setMessage = function (G) {
this.messageBox.firstChild && this.tooltip.removeChild(this.messageBox.firstChild);
this.messageBox.append(document.createTextNode(G))
}
})(x);
(function (F) {
if (!F) {
throw "MagicJS not found"
}
if (F.Options) {
return
}
var I = F.$,
E = null,
M = {
"boolean": 1,
array: 2,
number: 3,
"function": 4,
string: 100
},
G = {
"boolean": function (P, O, N) {
if ("boolean" != F.jTypeOf(O)) {
if (N || "string" != F.jTypeOf(O)) {
return false
} else {
if (!/^(true|false)$/.test(O)) {
return false
} else {
O = O.jToBool()
}
}
}
if (P.hasOwnProperty("enum") && !I(P["enum"]).contains(O)) {
return false
}
E = O;
return true
},
string: function (P, O, N) {
if ("string" !== F.jTypeOf(O)) {
return false
} else {
if (P.hasOwnProperty("enum") && !I(P["enum"]).contains(O)) {
return false
} else {
E = "" + O;
return true
}
}
},
number: function (Q, P, O) {
var N = false,
S = /%$/,
R = (F.jTypeOf(P) == "string" && S.test(P));
if (O && !"number" == typeof P) {
return false
}
P = parseFloat(P);
if (isNaN(P)) {
return false
}
if (isNaN(Q.minimum)) {
Q.minimum = Number.NEGATIVE_INFINITY
}
if (isNaN(Q.maximum)) {
Q.maximum = Number.POSITIVE_INFINITY
}
if (Q.hasOwnProperty("enum") && !I(Q["enum"]).contains(P)) {
return false
}
if (Q.minimum > P || P > Q.maximum) {
return false
}
E = R ? (P + "%") : P;
return true
},
array: function (Q, O, N) {
if ("string" === F.jTypeOf(O)) {
try {
O = window.JSON.parse(O)
} catch (P) {
return false
}
}
if (F.jTypeOf(O) === "array") {
E = O;
return true
} else {
return false
}
},
"function": function (P, O, N) {
if (F.jTypeOf(O) === "function") {
E = O;
return true
} else {
return false
}
}
},
H = function (S, R, O) {
var Q;
Q = S.hasOwnProperty("oneOf") ? S.oneOf : [S];
if ("array" != F.jTypeOf(Q)) {
return false
}
for (var P = 0, N = Q.length - 1; P <= N; P++) {
if (G[Q[P].type](Q[P], R, O)) {
return true
}
}
return false
},
K = function (S) {
var Q, P, R, N, O;
if (S.hasOwnProperty("oneOf")) {
N = S.oneOf.length;
for (Q = 0; Q < N; Q++) {
for (P = Q + 1; P < N; P++) {
if (M[S.oneOf[Q]["type"]] > M[S.oneOf[P].type]) {
O = S.oneOf[Q];
S.oneOf[Q] = S.oneOf[P];
S.oneOf[P] = O
}
}
}
}
return S
},
L = function (Q) {
var P;
P = Q.hasOwnProperty("oneOf") ? Q.oneOf : [Q];
if ("array" != F.jTypeOf(P)) {
return false
}
for (var O = P.length - 1; O >= 0; O--) {
if (!P[O].type || !M.hasOwnProperty(P[O].type)) {
return false
}
if (F.defined(P[O]["enum"])) {
if ("array" !== F.jTypeOf(P[O]["enum"])) {
return false
}
for (var N = P[O]["enum"].length - 1; N >= 0; N--) {
if (!G[P[O].type]({
type: P[O].type
}, P[O]["enum"][N], true)) {
return false
}
}
}
}
if (Q.hasOwnProperty("default") && !H(Q, Q["default"], true)) {
return false
}
return true
},
J = function (N) {
this.schema = {};
this.options = {};
this.parseSchema(N)
};
F.extend(J.prototype, {
parseSchema: function (P) {
var O, N, Q;
for (O in P) {
if (!P.hasOwnProperty(O)) {
continue
}
N = (O + "").jTrim().jCamelize();
if (!this.schema.hasOwnProperty(N)) {
this.schema[N] = K(P[O]);
if (!L(this.schema[N])) {
throw "Incorrect definition of the '" + O + "' parameter in " + P
}
this.options[N] = undefined
}
}
},
set: function (O, N) {
O = (O + "").jTrim().jCamelize();
if (F.jTypeOf(N) == "string") {
N = N.jTrim()
}
if (this.schema.hasOwnProperty(O)) {
E = N;
if (H(this.schema[O], N)) {
this.options[O] = E
}
E = null
}
},
get: function (N) {
N = (N + "").jTrim().jCamelize();
if (this.schema.hasOwnProperty(N)) {
return F.defined(this.options[N]) ? this.options[N] : this.schema[N]["default"]
}
},
fromJSON: function (O) {
for (var N in O) {
this.set(N, O[N])
}
},
getJSON: function () {
var O = F.extend({}, this.options);
for (var N in O) {
if (undefined === O[N] && undefined !== this.schema[N]["default"]) {
O[N] = this.schema[N]["default"]
}
}
return O
},
fromString: function (N) {
I(N.split(";")).jEach(I(function (O) {
O = O.split(":");
this.set(O.shift().jTrim(), O.join(":"))
}).jBind(this))
},
exists: function (N) {
N = (N + "").jTrim().jCamelize();
return this.schema.hasOwnProperty(N)
},
isset: function (N) {
N = (N + "").jTrim().jCamelize();
return this.exists(N) && F.defined(this.options[N])
},
jRemove: function (N) {
N = (N + "").jTrim().jCamelize();
if (this.exists(N)) {
delete this.options[N];
delete this.schema[N]
}
}
});
F.Options = J
})(x);
(function (F) {
if (!F) {
throw "MagicJS not found";
return
}
var E = F.$;
F.$AA = function (G) {
var I = [],
H;
for (H in G) {
if (!G.hasOwnProperty(H) || (H + "").substring(0, 2) == "$J") {
continue
}
I.push(G[H])
}
return F.$A(I)
};
F.nativeEvents = {
click: 2,
dblclick: 2,
mouseup: 2,
mousedown: 2,
contextmenu: 2,
mousewheel: 2,
DOMMouseScroll: 2,
mouseover: 2,
mouseout: 2,
mousemove: 2,
selectstart: 2,
selectend: 2,
keydown: 2,
keypress: 2,
keyup: 2,
focus: 2,
blur: 2,
change: 2,
reset: 2,
select: 2,
submit: 2,
load: 1,
unload: 1,
beforeunload: 2,
resize: 1,
move: 1,
DOMContentLoaded: 1,
readystatechange: 1,
error: 1,
abort: 1
};
F.customEventsAllowed = {
document: true,
element: true,
"class": true,
object: true
};
F.customEvents = {
bindEvent: function (K, J, H) {
if (F.jTypeOf(K) == "array") {
E(K).jEach(this.bindEvent.jBindAsEvent(this, J, H));
return this
}
if (!K || !J || F.jTypeOf(K) != "string" || F.jTypeOf(J) != "function") {
return this
}
if (K == "domready" && F.browser.ready) {
J.call(this);
return this
}
H = parseInt(H || 10);
if (!J.$J_EUID) {
J.$J_EUID = Math.floor(Math.random() * F.now())
}
var I = this.jFetch("_events", {});
I[K] || (I[K] = {});
I[K][H] || (I[K][H] = {});
I[K]["orders"] || (I[K]["orders"] = {});
if (I[K][H][J.$J_EUID]) {
return this
}
if (I[K]["orders"][J.$J_EUID]) {
this.unbindEvent(K, J)
}
var G = this,
L = function (M) {
return J.call(G, E(M))
};
if (F.nativeEvents[K] && !I[K]["function"]) {
if (F.nativeEvents[K] == 2) {
L = function (M) {
M = F.extend(M || window.e, {
$J_TYPE: "event"
});
return J.call(G, E(M))
}
}
I[K]["function"] = function (M) {
G.jCallEvent(K, M)
};
this[F._event_add_](F._event_prefix_ + K, I[K]["function"], false)
}
I[K][H][J.$J_EUID] = L;
I[K]["orders"][J.$J_EUID] = H;
return this
},
jCallEvent: function (H, J) {
try {
J = F.extend(J || {}, {
type: H
})
} catch (I) {}
if (!H || F.jTypeOf(H) != "string") {
return this
}
var G = this.jFetch("_events", {});
G[H] || (G[H] = {});
G[H]["orders"] || (G[H]["orders"] = {});
F.$AA(G[H]).jEach(function (K) {
if (K != G[H]["orders"] && K != G[H]["function"]) {
F.$AA(K).jEach(function (L) {
L(this)
}, this)
}
}, J);
return this
},
unbindEvent: function (J, I) {
if (!J || !I || F.jTypeOf(J) != "string" || F.jTypeOf(I) != "function") {
return this
}
if (!I.$J_EUID) {
I.$J_EUID = Math.floor(Math.random() * F.now())
}
var H = this.jFetch("_events", {});
H[J] || (H[J] = {});
H[J]["orders"] || (H[J]["orders"] = {});
order = H[J]["orders"][I.$J_EUID];
H[J][order] || (H[J][order] = {});
if (order >= 0 && H[J][order][I.$J_EUID]) {
delete H[J][order][I.$J_EUID];
delete H[J]["orders"][I.$J_EUID];
if (F.$AA(H[J][order]).length == 0) {
delete H[J][order];
if (F.nativeEvents[J] && F.$AA(H[J]).length == 0) {
var G = this;
this[F._event_del_](F._event_prefix_ + J, H[J]["function"], false)
}
}
}
return this
},
destroyEvent: function (I) {
if (!I || F.jTypeOf(I) != "string") {
return this
}
var H = this.jFetch("_events", {});
if (F.nativeEvents[I]) {
var G = this;
this[F._event_del_](F._event_prefix_ + I, H[I]["function"], false)
}
H[I] = {};
return this
},
cloneEvents: function (I, H) {
var G = this.jFetch("_events", {});
for (t in G) {
if (H && t != H) {
continue
}
for (order in G[t]) {
if (order == "orders" || order == "function") {
continue
}
for (f in G[t][order]) {
E(I).bindEvent(t, G[t][order][f], order)
}
}
}
return this
},
jCopyEvents: function (J, I) {
if (1 !== J.nodeType) {
return this
}
var H = this.jFetch("events");
if (!H) {
return this
}
for (var G in H) {
if (I && G != I) {
continue
}
for (var K in H[G]) {
E(J).bindEvent(G, H[G][K])
}
}
return this
},
jFetch: F.Element.jFetch,
jStore: F.Element.jStore
}
})(x);
(function (F) {
if (!F) {
throw "MagicJS not found";
return
}
var E = F.$;
Math.rand = function (H, G) {
return Math.floor(Math.random() * (G - H + 1)) + H
};
Math.range = function (H, G, I) {
return Math.min(G, Math.max(H, I))
};
F.extend = function (N, M) {
if (!(N instanceof window.Array)) {
N = [N]
}
if (!(M instanceof window.Array)) {
M = [M]
}
for (var K = 0, H = N.length; K < H; K++) {
if (!F.defined(N[K])) {
continue
}
for (var J = 0, L = M.length; J < L; J++) {
if (!F.defined(M[J])) {
continue
}
for (var I in (M[J] || {})) {
try {
N[K][I] = M[J][I]
} catch (G) {}
}
}
}
return N[0]
};
F.inherit = function (I, H) {
function G() {}
G.prototype = H.prototype;
I.$parent = H.prototype;
I.prototype = new G();
I.prototype.constructor = I
};
F.findSrcset = function (K) {
var I, J, L, H, G = {
src: null,
srcset: null
};
if (K) {
L = K.split(",");
for (I = 0; I < L.length; I++) {
J = L[I].jTrim();
J = J.replace(/\s+/, " ");
H = J.split(" ");
if (H.length > 1 && /^[0-9]+(\.[0-9]+)?(x|w)$/.test(H[1])) {
G.srcset = J
} else {
G.src = J
}
}
}
return G
};
F.extend(F.Array, {
rand: function () {
return this[Math.rand(0, this.length - 1)]
}
});
F.extend(F.Element, {
indoc: function () {
var G = this;
while (G.parentNode) {
if (G.tagName == "BODY" || G.tagName == "HTML") {
return true
}
G = G.parentNode
}
return false
},
clone: function (J, I) {
J == undefined && (J = true);
I == undefined && (I = true);
var K = E(this.cloneNode(J));
if (K.$J_UUID == this.$J_UUID) {
K.$J_UUID = false;
F.$uuid(K)
}
var G = F.$A(K.getElementsByTagName("*"));
G.push(K);
var H = F.$A(this.getElementsByTagName("*"));
H.push(this);
G.jEach(function (M, L) {
M.id = "";
E(H[L]).cloneEvents && E(H[L]).cloneEvents(M);
E(H[L]).jCopyEvents && E(H[L]).jCopyEvents(M);
if (I) {
E(M).jStore("master", H[L]);
E(M).jStore("isclone", true);
var N = E(H[L]).jFetch("clones", []);
N.push(M)
}
});
return K
},
jSetOpacity_: F.Element.jSetOpacity,
jSetOpacity: function (H, G) {
if (this.jFetch("isclone")) {
if (E(this.jFetch("master")).indoc()) {
return this
}
}
this.jSetOpacity_(H, G);
E(this.jFetch("clones", [])).jEach(function (I) {
I.jSetOpacity_(H, G)
});
return this
},
addEvent_: F.Element.jAddEvent,
jAddEvent: function (H, G) {
if (this.jFetch("isclone")) {
if (E(this.jFetch("master")).indoc()) {
return this
}
}
this.addEvent_(H, G);
E(this.jFetch("clones", [])).jEach(function (I) {
I.addEvent_(H, G)
});
return this
}
})
})(x);
y.Modules || (y.Modules = {});
y.Modules.ArrowsPair = (function () {
var E = ["next", "prev"];

function H(I) {
return y.$new("button", null, {
visibility: "visible"
}).jAddClass(this.$o["class"] + "-button").jAddClass(this.$o["class"] + "-arrows-pair").jAddClass(this.$o["class"] + "-arrow-" + I).jAppendTo(this.container)
}

function F(I, J) {
J.stopDistribution();
this.jCallEvent(I);
this["forward" === I ? "next" : "prev"].blur()
}
var G = function (J, I) {
y.$uuid(this);
this._options = {
"class": "",
"class-hidden": "",
"class-disabled": "",
position: "inside",
orientation: "mss-horizontal",
form: "button"
};
this.$o = this._options;
y.extend(this.$o, J);
this.container = I;
this.prev = H.call(this, "prev");
this.next = H.call(this, "next");
this.next.jAddEvent("click", function (K) {
K.stop()
}).jAddEvent("btnclick tap", F.jBind(this, "forward"));
this.prev.jAddEvent("click", function (K) {
K.stop()
}).jAddEvent("btnclick tap", F.jBind(this, "backward"));
y.$uuid(this)
};
G.prototype = {
disable: function (I) {
l(I && [I] || E).jEach(function (J) {
this[J].jAddClass(this.$o["class-disabled"])
}, this)
},
enable: function (I) {
l(I && [I] || E).jEach(function (J) {
this[J].jRemoveClass(this.$o["class-disabled"])
}, this)
},
hide: function (I) {
l(I && [I] || E).jEach(function (J) {
this[J].jAddClass(this.$o["class-hidden"])
}, this)
},
show: function (I) {
l(I && [I] || E).jEach(function (J) {
this[J].jRemoveClass(this.$o["class-hidden"])
}, this)
}
};
y.extend(G.prototype, y.customEvents);
return G
})();
y.Modules || (y.Modules = {});
y.Modules.AutoPlay = (function () {
var E = function (G, F) {
y.$uuid(this);
this._options = {
time: 1000,
step: 10,
showModule: true,
showLable: true,
classHidden: "",
classDisabled: ""
};
this.container = F;
this.$o = this._options;
y.extend(this.$o, G);
this.step = 0;
this.currentTime = 0;
this.state = "start";
this.interval = null;
this.label = null;
this.create();
this.createLabel()
};
E.prototype = {
createLabel: function () {
if (this.$o.showLable) {
this.label = y.$new("div", {
"class": "mss-feedback-animation mss-hide"
});
this.container.append(this.label)
}
},
changeLabel: function (F, G) {
if (this.$o.showLable) {
this.label.jRemoveClass("mss-hide").jRemoveClass(G);
this.label.jGetSize();
this.label.jRemoveEvent("transitionend");
this.label.jAddEvent("transitionend", l(function (H) {
this.label.jAddClass("mss-hide")
}).jBind(this));
this.label.jAddClass(F)
}
},
create: function () {
if (this.$o.showModule) {
this.wrapper = y.$new("div", {
"class": "mss-wrapper-timer"
}, {
top: "0",
left: "0",
width: "100%",
position: "absolute"
});
this.progressLine = y.$new("div", {
"class": "mss-progress-line"
}, {
top: "0",
left: "0",
height: "100%"
});
this.wrapper.append(this.progressLine);
this.container.append(this.wrapper);
this.changeLine()
}
},
changeLine: function (F) {
var G;
if (this.$o.showModule) {
G = F ? 0 : this.currentTime / (this.$o.time / 100);
this.progressLine.jSetCssProp("width", G + "%")
}
},
start: function () {
var F, G;
if ("playing" !== this.state) {
this.state = "playing";
this.changeLabel("mss-play", "mss-pause");
if (this.$o.showModule) {
this.interval = setInterval(l(function () {
var I, H;
G = y.now();
if (F) {
H = G - F
} else {
H = 0
}
if (H > this.$o.step * 2) {
H = this.$o.step * 2
}
F = G;
this.step += H;
this.currentTime += H;
I = Math.min(this.$o.step, this.$o.time - this.currentTime);
if (this.step >= I) {
this.step -= I;
this.$o.showModule && this.changeLine()
}
if (this.currentTime >= this.$o.time) {
this.state = "end";
this.step = 0;
this.currentTime = 0;
clearInterval(this.interval);
this.interval = null;
this.jCallEvent("stopTimer")
}
}).jBind(this), 10)
} else {
this.interval = setTimeout(l(function () {
this.state = "end";
this.step = 0;
this.currentTime = 0;
clearTimeout(this.interval);
this.interval = null;
this.jCallEvent("stopTimer")
}).jBind(this), this.$o.time)
}
}
},
pause: function () {
if ("playing" === this.state) {
this.state = "paused";
this.changeLabel("mss-pause", "mss-play");
if (this.$o.showModule) {
clearInterval(this.interval)
} else {
this.stop()
}
}
},
stop: function () {
clearInterval(this.interval);
clearTimeout(this.interval);
this.interval = null;
this.currentTime = 0;
this.step = 0;
this.state = "start";
this.changeLine(true)
},
jRemove: function () {
this.stop();
if (this.label) {
this.label.jRemoveEvent("transitionend");
this.$o.showLable = false;
this.label.jRemove();
this.label = null
}
if (this.wrapper) {
this.wrapper.jRemove();
this.wrapper = null
}
},
hide: function () {
this.wrapper && this.wrapper.jAddClass(this.$o.classHidden)
},
show: function () {
this.wrapper && this.wrapper.jRemoveClass(this.$o.classHidden)
}
};
y.extend(E.prototype, y.customEvents);
return E
})();
y.Modules || (y.Modules = {});
y.Modules.BulletPreview = (function () {
var E = function (F, G) {
var H;
this.pn = F;
this.options = {
side: "top",
conteinerSpeed: 300,
imgWrapperSpeed: 300
};
y.extend(this.options, G);
this.s = {
side: l(["top", "bottom"]).contains(this.options.side) ? "width" : "height",
pos: l(["top", "bottom"]).contains(this.options.side) ? "left" : "top",
containerSide: this.options.side === "top" ? "bottom" : "top",
wrapperPos: {
top: 0,
left: 0
},
containerPos: 0,
containerSize: {
width: 0,
height: 0
}
};
this.last = 0;
this.parentSize = this.pn.jGetSize();
this.timer = null;
this.items = l([]);
this.border = null;
this.container = y.$new("div", {
"class": "mss-bullets-preview-thumbnail mss-direction-" + this.options.side
}, {
"-webkit-transition": this.options.conteinerSpeed + "ms",
transition: this.options.conteinerSpeed + "ms"
});
H = y.$new("div", {
"class": "mss-bullets-preview-arrow"
});
this.imgContainerWrapper = y.$new("div", {}, {
width: "100%",
height: "100%",
overflow: "hidden",
position: "relative"
});
this.imgContainer = y.$new("div", {
"class": "mss-bullets-preview-wrapper"
}, {
left: 0,
display: "inline-block",
"-webkit-transition": this.options.imgWrapperSpeed + "ms",
transition: this.options.imgWrapperSpeed + "ms"
});
this.container.append(H).append(this.imgContainerWrapper.append(this.imgContainer)).jAppendTo(this.pn);
this.container.jSetOpacity(0);
this.container.jSetCssProp("visibility", "hidden")
};
E.prototype = {
hide: function () {
this.timer = setTimeout(l(function () {
this.container.jSetOpacity(0);
this.container.jSetCssProp("visibility", "hidden")
}).jBind(this), 100)
},
show: function () {
clearTimeout(this.timer);
this.container.jSetOpacity(1);
this.container.jSetCssProp("visibility", "visible")
},
push: function (H, G, F) {
this.items.push({
node: H,
index: G,
motherNucleus: F
});
this.imgContainer.append(H)
},
getContainerPosition: function (G) {
var F;
if (this.options.side === "top") {
F = this.parentSize.height - G.motherNucleusPos.top
} else {
F = G.motherNucleusPos.top + G.motherNucleusSize.height
}
F += 5;
return F
},
jump: function (F) {
var G;
var J = 0;
var H = {};
var I = this.items[F];
this.last = F;
I.motherNucleusSize = I.motherNucleus.jGetSize();
I.nodeSize = I.node.jGetSize();
J = (I.node.jGetPosition()[this.s.pos] - I.node.parentNode.jGetPosition()[this.s.pos]) * (-1);
J -= this.border[this.s.side];
this.container.jSetCssProp(this.s.pos, I.motherNucleusPos[this.s.pos] + I.motherNucleusSize[this.s.side] / 2 - I.nodeSize[this.s.side] / 2);
this.container.jSetCssProp(this.s.side, I.nodeSize[this.s.side]);
this.container.jSetCssProp(this.s.containerSide, this.getContainerPosition(I));
this.imgContainer.jSetCssProp(this.s.pos, J)
},
onResize: function () {
this.parentSize = this.pn.jGetSize();
this.s.wrapperPos = this.items[0].motherNucleus.parentNode.parentNode.jGetPosition();
this.border = {
width: parseInt(this.container.jGetCss("border-left-width")) || 0,
height: parseInt(this.container.jGetCss("border-top-width")) || 0
};
this.items.jEach(l(function (H, F) {
var G = H.motherNucleus.jGetPosition();
H.motherNucleusPos = {
top: G.top - this.s.wrapperPos.top,
left: G.left - this.s.wrapperPos.left
};
H.motherNucleusSize = H.motherNucleus.jGetSize()
}).jBind(this));
this.s.containerPos = this.container.jGetPosition()[this.s.pos] - this.s.wrapperPos[this.s.pos];
this.s.containerSize = this.container.jGetSize();
this.jump(this.last)
}
};
return E
})();
y.Effects = {};
y.Effects.Blank = (function () {
var E = function (G, F) {
this.els = [l(G[0]) || null, l(G[1]) || null];
this.container = $mjs((this.els[1] && this.els[1].parentNode) || (this.els[0] && this.els[1].parentNode));
this._options = {
loop: true,
items: [],
duration: 500,
direction: "right",
cubicBezier: "cubic-bezier(0.7, 0, 1, 1)",
startPoint: 0
};
this.o = this._options;
y.extend(this.o, F || {});
this.name = "blank";
this.flag = false;
this.actionIndex = 1;
this.stylesBefore = {};
this.stylesAfter = {};
this.stylesReset = {}
};
E.prototype = {
something_: function () {
l(this.container).offsetHeight;
this.els[0] && this.els[0].offsetHeight;
this.els[1] && this.els[1].offsetHeight
},
show: function (G, F) {
G && G.jSetCssProp("visibility", F ? "visible" : "hidden")
},
onBeforeRender_: y.$F,
onAfterRender_: y.$F,
onComplete_: y.$F,
onStart_: y.$F,
transition_: y.FX.Transition.linear,
prepare_: function () {
if (this.name == "blank") {
return
}
this.els[0] && this.els[0].jSetCss(this.stylesBefore.el1);
this.els[1] && this.els[1].jSetCss(this.stylesBefore.el2);
this.something_()
},
jRemoveClasses_: function (F) {
for (var F = 0; F < 2; F++) {
this.els[F] && this.defTrans_(this.els[F]);
((F == 0) && this.els[F]) && this.els[F];
this.els[F] && this.els[F].jSetCss(this.stylesReset)
}
this.flag = false;
this.inSide && this.inSide(this)
},
defTrans_: function (F) {
F.jSetCss({
transition: "none"
})
},
stop: function (F) {
var G;
if (this.flag) {
this.ieEff && this.ieEff.stop(true);
if (!this.ieEff) {
for (G = 0; G < 2; G++) {
this.els[G] && this.els[G].jRemoveEvent("transitionend");
this.jRemoveClasses_(G)
}
}
}
},
start: function (H) {
var G = 0,
F = {
transition: "all " + this.o.duration + "ms " + this.o.cubicBezier
},
I = function (J, K) {
K.stop();
this.els[J].jRemoveEvent(K.type);
this.flag = false;
this.jRemoveClasses_(J)
};
H.start && H.start();
H.end && (this.inSide = H.end);
this.flag = true;
this.prepare_();
if (this.name != "blank") {
for (; G < 2; G++) {
if (!this.els[G]) {
if (1 === G && !!this.els[0] && this.actionIndex !== 0) {
this.els[0].jAddEvent("transitionend", I.jBind(this, 0))
}
continue
}
if (this.actionIndex === G) {
this.els[this.actionIndex].jAddEvent("transitionend", I.jBind(this, this.actionIndex))
}
this.els[G].jSetCss(F).jSetCss(this.stylesAfter["el" + (G + 1)])
}
} else {
this.inSide && this.inSide();
this.flag = false
}
},
pause: function () {}
};
return E
})();
y.Effects.Fade = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
this.name = "fade";
this.stylesBefore = {
el1: {
"z-index": 30
},
el2: {
"z-index": 50,
opacity: 0
}
};
this.stylesAfter = {
el1: {
"z-index": 35
},
el2: {
"z-index": 50,
opacity: 1
}
};
this.stylesReset = {
"z-index": "",
opacity: 1
}
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.FadeUp = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
this.name = "fade-up";
this.stylesBefore = {
el1: {
"z-index": 30,
opacity: 1,
transform: "scale(1)"
},
el2: {
"z-index": 50,
opacity: 0,
transform: "scale(1.5)"
}
};
this.stylesAfter = {
el1: {
"z-index": 35,
opacity: 0,
transform: "scale(1.5)"
},
el2: {
"z-index": 50,
opacity: 1,
transform: "scale(1)"
}
};
this.stylesReset = {
"z-index": "",
opacity: 1,
transform: ""
};
this.count = 0
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.FadeDown = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
this.name = "fade-down";
this.stylesBefore = {
el1: {
"z-index": 30,
opacity: 1,
transform: "scale(1)"
},
el2: {
"z-index": 50,
opacity: 0,
transform: "scale(0.5)"
}
};
this.stylesAfter = {
el1: {
"z-index": 35,
opacity: 0,
transform: "scale(0.5)"
},
el2: {
"z-index": 50,
opacity: 1,
transform: "scale(1)"
}
};
this.stylesReset = {
"z-index": "",
opacity: 1,
transform: ""
}
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.Dissolve = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
this.name = "dissolve";
this.stylesBefore = {
el1: {
"z-index": 30,
opacity: 1
},
el2: {
"z-index": 50,
opacity: 0
}
};
this.stylesAfter = {
el1: {
opacity: 0
},
el2: {
opacity: 1
}
};
this.stylesReset = {
"z-index": "",
opacity: 1
}
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.Slide = (function () {
var E = function (K, I) {
y.Effects.Blank.apply(this, arguments);
this.name = "slide";
var H = 0,
M = 0,
L = 0,
G = 0,
J = 100,
F = 100;
if (l(["left", "right"]).contains(this.o.direction)) {
F = 0;
H = this.o.startPoint || 0;
if (this.o.direction == "right") {
J *= (-1);
L = 100 + H
} else {
L = -100 + H
}
} else {
J = 0;
M = this.o.startPoint || 0;
if (this.o.direction == "bottom") {
F *= (-1);
G = 100 + M
} else {
G = -100 + M
}
}
if (y.browser.gecko) {
this.stylesBefore = {
el1: {
transform: "translate(" + H + "%, " + M + "%) rotateZ(0.005deg)"
},
el2: {
transform: "translate(" + L + "%, " + G + "%) rotateZ(0.005deg)"
}
};
this.stylesAfter = {
el1: {
transform: "translate(" + J + "%, " + F + "%)"
},
el2: {
transform: "translate(0%, 0%)"
}
}
} else {
this.stylesBefore = {
el1: {
transform: "translate(" + H + "%, " + M + "%)"
},
el2: {
transform: "translate(" + L + "%, " + G + "%)"
}
};
this.stylesAfter = {
el1: {
transform: "translate(" + J + "%, " + F + "%)"
},
el2: {
transform: "translate(0%, 0%)"
}
}
}
this.stylesReset = {
transform: ""
}
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.Bars3d = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
y.extend(this._options, {
cubicBezier: "cubic-bezier(0, 0, 1, 1)"
});
this.o = this._options;
y.extend(this.o, F || {});
this.name = "bars3d";
this.os = "X";
this.deg = 90;
this.parSize = this.els[0].parentNode.jGetSize();
this.count = 10
};
y.inherit(E, y.Effects.Blank);
y.extend(E.prototype, {
prepare_: function () {
var K, F, J, I, G = 10,
H = this.els[0].parentNode.jGetPosition();
this.els[1].show();
this.blockTr = new Array(this.count);
this.cloneFace = new Array(this.count);
this.cloneNext = new Array(this.count);
this.os = "X";
this.deg = 90;
this.container.jSetCssProp("overflow", "visible");
this.container.parentNode.jSetCssProp("overflow", "visible");
this.block = y.$new("div", {}, {
top: "0",
left: "0",
width: this.parSize.width,
height: this.parSize.height,
position: "absolute",
"z-index": 75
}).jAddClass("defParentDiv");
F = this.parSize.width / this.count;
for (J = 0; J < this.count; ++J) {
I = (J * F + F);
if (J < this.count / 2) {
G += 10
} else {
G -= 10
}
K = {
width: this.parSize.width,
height: this.parSize.height,
"z-index": G,
position: "absolute"
};
this.blockTr[J] = y.$new("div", {}, K);
if (y.browser.engine === "webkit" && !y.browser.chrome) {
this.blockTr[J].jSetCssProp(k, "translateZ(" + ((this.parSize.height / 2) * (-1)) + "px)").jSetCssProp(a, "50% 50%").jSetCssProp(d, "none").jSetCssProp(h, "preserve-3d")
} else {
this.blockTr[J].jSetCssProp(k, "translate3d(0, 0, 0)");
this.blockTr[J].jAddClass("transformStyle").jAddClass("defParentDiv");
this.container.jAddClass("transformStyle").jAddClass("defParentDiv")
}
this.cloneFace[J] = this.els[0].cloneNode(true);
this.cloneNext[J] = this.els[1].cloneNode(true);
l([this.cloneFace, this.cloneNext]).jEach(l(function (M, L) {
l(M[J]).jSetCss({
"z-index": 50,
position: "absolute",
clip: "rect(auto, " + (I + 1) + "px, auto, " + ((J * F) - 1) + "px)"
});
M[J].jSetCssProp(j, "50% 50% " + (this.parSize.height / 2 * (-1)) + "px");
if (L) {
this.cloneNext[J].jSetCssProp("z-index", 30)
}
M[J].jAddClass("backface-visHid")
}).jBind(this));
K = {
top: "auto",
left: H.left - H.left
};
l([this.cloneFace, this.cloneNext]).jEach(l(function (M, L) {
K[k] = "rotateX(" + (!L ? 0 : this.deg) + "deg)";
M[J].jSetCss(K)
}).jBind(this))
}
if (y.browser.engine === "webkit" && !y.browser.chrome) {
this.block.jSetCssProp(d, "1000px")
}
for (J = 0; J < this.count; ++J) {
this.blockTr[J].append(this.cloneFace[J]).append(this.cloneNext[J]);
this.block.append(this.blockTr[J])
}
this.els[0].parentNode.append(this.block);
this.els[0].hide();
this.els[1].hide();
this.something_()
},
prepareForSafari_: function () {
var K, F, J, I, G = 10,
H = this.els[0].parentNode.jGetPosition();
this.els[1].show();
this.blockTr = new Array(this.count);
this.cloneFace = new Array(this.count);
this.cloneNext = new Array(this.count);
this.container.jSetCssProp("overflow", "visible");
this.container.parentNode.jSetCssProp("overflow", "visible");
this.block = y.$new("div", {}, {
top: "0",
left: "0",
width: this.parSize.width,
height: this.parSize.height,
position: "absolute",
"z-index": 75
}).jAddClass("defParentDiv");
F = this.parSize.width / this.count;
for (J = 0; J < this.count; ++J) {
I = (J * F + F);
if (J < this.count / 2) {
G += 10
} else {
G -= 10
}
this.blockTr[J] = y.$new("div", {}, {
width: this.parSize.width,
height: this.parSize.height,
"z-index": G,
position: "absolute"
});
this.blockTr[J].jSetCssProp(d, "none").jSetCssProp(h, "preserve-3d").jSetCssProp(j, "50% 50% " + (this.parSize.height / 2 * (-1)) + "px");
if (!y.browser.gecko) {
this.blockTr[J].jSetCssProp(k, "translateZ(" + (this.parSize.height / 2 * (-1)) + "px)")
}
this.cloneFace[J] = this.els[0].cloneNode(true);
this.cloneNext[J] = this.els[1].cloneNode(true);
l([this.cloneFace, this.cloneNext]).jEach(l(function (M, L) {
l(M[J]).jSetCss({
"z-index": 50,
top: "auto",
left: 0,
position: "absolute",
clip: "rect(auto, " + (I + 1) + "px, auto, " + ((J * F) - 1) + "px)"
});
if (L == 0) {
M[J].jSetCssProp(k, "rotateX(0deg)").jSetCssProp(j, "50% 50% 0px")
} else {
M[J].jSetCssProp(k, "translateY(-50%) translateZ(" + (this.parSize.height / 2 * (-1)) + "px) rotateX(" + this.deg + "deg)").jSetCssProp(j, "50% 50%");
this.cloneNext[J].jSetCssProp("z-index", 30)
}
M[J].jAddClass("backface-visHid")
}).jBind(this))
}
for (J = 0; J < this.count; ++J) {
this.blockTr[J].append(this.cloneFace[J]).append(this.cloneNext[J]);
this.block.append(this.blockTr[J])
}
this.els[0].parentNode.append(this.block);
this.els[0].hide();
this.els[1].hide();
this.something_()
},
removeblock_: function () {
if (this.count_ == this.count) {
this.els[0].show();
this.els[1].show();
this.block.kill();
this.container.jSetCssProp("overflow", "");
this.container.jRemoveClass("transformStyle").jRemoveClass("defParentDiv");
this.container.parentNode.jSetCssProp("overflow", "hidden")
}
},
stop: function () {
if (!this.flag) {
this.flag = true;
this.count_ = this.count;
this.removeblock_()
}
},
start: function (N) {
N.start && N.start();
var M, H = 0,
J = l(["top", "left"]).contains(this.o.direction) ? true : false,
K = J ? (this.count) : -1,
L = J ? 0 : (this.count - 1),
I = this.o.duration / (this.count * 2),
F = this.o.duration / this.count + I,
G = F + (I * (this.count - 1));
F = F + G / this.count;
this.count_ = 0;
this.flag = false;
if (y.browser.engine === "webkit" && !y.browser.chrome || y.browser.gecko) {
this.prepareForSafari_();
while (K !== L) {
this.blockTr[L].jAddEvent("transitionend", l(function (O, P) {
if (P.propertyName === "transform") {
P.stop();
this.count_++;
this.blockTr[O].jRemoveEvent(P.type);
if (this.count_ == this.count) {
this.flag = true;
this.removeblock_();
N.end && N.end(this)
}
}
}).jBind(this, L));
M = {
transition: k + " " + F + "ms " + (I * H) + "ms " + this.o.cubicBezier
};
if (y.browser.gecko) {
M[k] = "rotateX(" + (this.deg * (-1)) + "deg)"
} else {
M[k] = "translateZ(" + (this.parSize.height / 2 * (-1)) + "px) rotateX(" + (this.deg * (-1)) + "deg)"
}
this.blockTr[L].jSetCss(M);
H += 1;
J ? (L += 1) : (L -= 1)
}
} else {
this.prepare_();
while (K !== L) {
M = {
transition: k + " " + F + "ms " + (I * H) + "ms " + this.o.cubicBezier
};
this.cloneNext[L].jAddEvent("transitionend", l(function (O, P) {
if (P.propertyName === "transform") {
P.stop();
this.count_++;
this.cloneNext[O].jRemoveEvent(P.type);
if (this.count_ == this.count) {
this.flag = true;
this.removeblock_();
N.end && N.end(this)
}
}
}).jBind(this, L));
l([this.cloneFace, this.cloneNext]).jEach(l(function (P, O) {
M[k] = "rotate" + this.os + "(" + (O ? 0 : (this.deg * (-1))) + "deg)";
P[L].jSetCss(M)
}).jBind(this));
H += 1;
J ? (L += 1) : (L -= 1)
}
}
}
});
return E
})();
y.Effects.Blinds3d = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
this._options = {
cubicBezier: "cubic-bezier(0, 0, 1, 1)"
};
this.o = this._options;
y.extend(this.o, F || {});
this.oduration = 10000;
this.name = "blinds3d";
this.count = 5;
this.imgSize = this.els[0].jGetSize();
this.cont = this.els[0].parentNode.jGetPosition();
this.flag = false;
if (this.o.direction == "right" || this.o.direction == "bottom") {
this.d = "rb"
} else {
this.d = "tl"
}
};
y.inherit(E, y.Effects.Blank);
y.extend(E.prototype, {
prepare_: function () {
var L, H, I, J, M, O, N, G, K = l(["ios", "mac"]).contains(y.browser.platform),
F = (this.d) == "rb" ? -180 : 180;
this.els[1].show();
this.blocks1 = y.$new("div", {}, {
top: "0",
left: "0",
width: "100%",
height: "100%",
position: "absolute",
"z-index": 55,
}).jAddClass("defParentDiv");
if (y.browser.webkit) {
this.blocks1.jSetCssProp(h, "preserve-3d").jSetCssProp(a, "50% 50%")
}
this.container.jSetCssProp("overflow", "visible");
this.container.parentNode.jSetCssProp("overflow", "visible");
this.imgArray = new Array(this.count);
this.nextImgArray = new Array(this.count);
L = this.imgSize.width / this.count;
if (!K) {
L = L - (L % 1)
}
for (H = 0; H < this.count; ++H) {
I = (H * L + L);
M = L;
if (H == this.count - 1) {
I = this.imgSize.width;
M = I - (L * H)
}
J = {
top: 0,
left: 0,
position: "absolute",
clip: "rect(auto, " + (I) + "px, auto, " + (H * L) + "px)"
};
if (!K) {
J.left = (L * H) + "px";
J.width = M + "px";
J.height = "100%";
J.overflow = "hidden";
delete J.clip
}
O = {
top: 0,
left: (L * H * (-1)) + "px",
width: this.imgSize.width + "px",
height: this.imgSize.height + "px",
position: "absolute",
clip: "rect(auto, " + (I) + "px, auto, " + (H * L) + "px)"
};
G = {};
if (K) {
N = l(this.els[0].cloneNode(true));
G[j] = (H * L + L / 2) + "px 50%"
} else {
N = y.$new("div").append(l(this.els[0].cloneNode(true)));
G[j] = "50% 50%"
}
N.jSetCss(J).jSetCssProp("z-index", 50).jSetCssProp("backface-visibility", "hidden").jSetCss(G);
if (!K) {
l(N.firstChild).jSetCss(O)
}
this.imgArray[H] = N;
G = {};
if (K) {
this.nextImgArray[H] = l(this.els[1].cloneNode(true));
N = l(this.els[1].cloneNode(true));
G[j] = (H * L + L / 2) + "px 50%"
} else {
N = y.$new("div").append(l(this.els[1].cloneNode(true)));
G[j] = "50% 50%"
}
N.jSetCss(J).jSetCssProp("z-index", 30).jSetCssProp("backface-visibility", "hidden").jSetCss(G);
if (!K) {
l(N.firstChild).jSetCss(O)
}
this.nextImgArray[H] = N;
if ("edge" === y.browser.uaName) {
this.imgArray[H].jSetCssProp("opacity", 1);
this.imgArray[H].jSetCssProp(k, "translateZ(1px) rotateX(0deg) rotateY(0deg)");
this.nextImgArray[H].jSetCssProp("opacity", 0);
this.nextImgArray[H].jSetCssProp(k, "translateZ(1px) rotateX(0deg) rotateY(" + F + "deg)")
} else {
this.imgArray[H].jSetCssProp(k, "rotateX(0deg) rotateY(0deg)");
this.nextImgArray[H].jSetCssProp(k, "rotateX(0deg) rotateY(" + F + "deg)")
}
this.blocks1.append(this.imgArray[H]);
this.blocks1.append(this.nextImgArray[H])
}
this.els[1].parentNode.append(this.blocks1);
this.els[0].hide();
this.els[1].hide();
this.something_()
},
removeblock_: function (F) {
if (this.count_ == this.count) {
this.blocks1.kill();
this.els[0].show();
this.els[1].show();
this.flag = false;
this.container.jSetCssProp("overflow", "");
this.container.parentNode.jSetCssProp("overflow", "hidden")
}
},
stop: function () {
if (this.flag) {
this.count_ = this.count;
this.removeblock_()
}
},
start: function (N) {
N.start && N.start();
var H = this.o.duration / (this.count * 2),
F = this.o.duration / this.count + H,
G = F + (H * (this.count - 1)),
J, I, K, M, L;
F = F + G / this.count;
this.prepare_();
this.flag = true;
this.count_ = 0;
if (this.d == "rb") {
J = 180;
I = 0
} else {
J = (-180);
I = 0
}
for (L = 0; L < this.count; ++L) {
(this.d == "tl") ? (K = this.count - L - 1) : (K = L);
if ("edge" === y.browser.uaName) {
this.imgArray[L].jSetCssProp("opacity", 0);
this.imgArray[L].jSetCssProp(k, "translateZ(1px) rotateX(0deg) rotateY(" + J + "deg)");
this.nextImgArray[L].jSetCssProp("opacity", 1);
this.nextImgArray[L].jSetCssProp(k, "translateZ(1px) rotateX(0deg) rotateY(" + I + "deg)")
} else {
this.imgArray[L].jSetCssProp(k, "rotateX(0deg) rotateY(" + J + "deg)");
this.nextImgArray[L].jSetCssProp(k, "rotateX(0deg) rotateY(" + I + "deg)")
}
M = {
"z-index": 30,
transition: "all " + F + "ms " + (H * L) + "ms " + this.o.cubicBezier
};
M[y.browser.cssPrefix + "transition"] = "all " + F + "ms " + (H * L) + "ms " + this.o.cubicBezier;
this.imgArray[K].jSetCss(M);
M["z-index"] = 50;
this.nextImgArray[K].jSetCss(M);
this.callback = l(function (O, P) {
P.stop();
this.count_++;
this.imgArray[O].jRemoveEvent(P.type);
this.nextImgArray[O].jRemoveEvent(P.type);
if (this.count_ == this.count) {
this.flag = false;
this.removeblock_();
N.end && N.end(this)
}
}).jBind(this, L);
this.imgArray[L].jAddEvent("transitionend", this.callback);
this.nextImgArray[L].jAddEvent("transitionend", this.callback)
}
}
});
return E
})();
y.Effects.Blocks = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
y.extend(this._options, {
cubicBezier: "cubic-bezier(0, 0, 1, 1)"
});
this.o = this._options;
y.extend(this.o, F || {});
this.name = "blocks";
this.X = 5;
this.Y = 4;
this.contPos = this.container.jGetPosition();
this.flag = false
};
y.inherit(E, y.Effects.Blank);
y.extend(E.prototype, {
prepare_: function () {
var J = $mjs(this.els[0]).jGetSize(),
I, G, M, K, H, L, F = ",";
this.blocks = y.$new("div", {}, {
top: "0",
left: "0",
width: J.width,
height: J.height,
position: "absolute",
"z-index": 55
});
this.arr = new Array(this.X);
this.sizeClip = new Array(this.X);
for (I = 0; I < this.X; ++I) {
this.arr[I] = new Array(this.Y);
this.sizeClip[I] = new Array(this.Y)
}
G = J.width / this.X;
M = J.height / this.Y;
for (I = 0, K = 0; K < this.X, I < J.width; I += G, ++K) {
for (H = 0, L = 0; L < this.Y, H < J.height; H += M, ++L) {
this.sizeClip[K][L] = {
Y1: H,
X1: I + G,
Y2: H + M,
X2: I
};
this.arr[K][L] = $mjs(this.els[0].cloneNode(true));
this.arr[K][L].jSetCss({
position: "absolute",
clip: "rect(" + H + "px" + F + " " + (I + G) + "px" + F + " " + (H + M) + "px" + F + " " + I + "px)",
overflow: "hidden",
opacity: 1
});
this.blocks.append(this.arr[K][L])
}
}
this.els[0].parentNode.append(this.blocks);
this.blocks.jSetCssProp("z-index", 100).show();
this.els[0].hide();
this.els[1].show();
this.something_()
},
removeblock_: function () {
if (this.count_ + 1 == (this.X + this.Y - 1)) {
this.blocks.jRemove();
this.els[0].show();
this.els[1].show()
}
},
stop: function () {
if (!this.flag) {
this.count_ = this.X + this.Y - 1
}
if (this.blocks) {
this.blocks.kill();
this.blocks = null
}
},
start: function (W) {
W.start && W.start();
W.end && (this.inSide = W.end);
var L = this.o.duration / (this.X + this.Y - 1),
I, T = 0,
R = 0,
S = -1,
Q = 0,
J = 0,
U, O, M, H, N, P, G, K, F, V;
this.count_ = 0;
this.prepare_();
this.flag = false;
for (U = 0; U < this.X + this.Y - 1; ++U) {
if (U > this.X - 1 || U > this.Y - 1) {
T++
}
if (S < this.X - 1) {
S++
}
if (Q <= this.Y - 1) {
Q++
}
if (U > this.Y) {
R++
}
for (O = S, M = R; O >= T, M < Q; --O, ++M) {
I = {
opacity: 0,
clip: "rect(" + (this.sizeClip[O][M].Y1 + 15) + "px, " + (this.sizeClip[O][M].X1 - 15) + "px, " + (this.sizeClip[O][M].Y2 - 15) + "px, " + (this.sizeClip[O][M].X2 + 15) + "px)",
transition: "all " + L + "ms " + (U * L) + "ms " + this.o.cubicBezier
};
I[y.browser.cssPrefix + "transition"] = "all " + L + "ms " + (U * L) + "ms " + this.o.cubicBezier;
this.arr[O][M].jSetCss(I);
this.callback = l(function (Z, Y, X, aa) {
aa.stop();
this.arr[Z][Y].jRemoveEvent(aa.type);
this.count_ = X;
if (this.count_ + 1 == (this.X + this.Y - 1)) {
this.flag = true;
this.removeblock_();
W.end && W.end(this)
}
}).jBind(this, O, M, U);
this.arr[O][M].jAddEvent("transitionend", this.callback)
}
}
}
});
return E
})();
y.Effects.Cube = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
y.extend(this._options, {
cubicBezier: "cubic-bezier(0, 0, 1, 1)"
});
this.o = this._options;
y.extend(this.o, F || {});
this.name = "cube";
this.deg = 90;
this.parSize = this.els[0].parentNode.jGetSize();
this.side = l(["top", "bottom"]).contains(this.o.direction) ? "height" : "width";
if (l(["top", "bottom"]).contains(this.o.direction)) {
this.os = "X"
} else {
this.os = "Y"
}
};
y.inherit(E, y.Effects.Blank);
y.extend(E.prototype, {
prepare_: function () {
var F = {
top: "0",
left: "0",
width: this.parSize.width,
height: this.parSize.height,
position: "absolute"
};
this.els[1].show();
if (l(["right", "bottom"]).contains(this.o.direction)) {
this.deg *= (-1)
}
if (y.browser.engine === "webkit" && !y.browser.chrome) {
this.container.jSetCssProp(k, "translateZ(" + ((this.parSize["X" === this.os ? "height" : "width"] / 2) * (-1)) + "px)").jSetCssProp(d, "none").jSetCssProp(h, "preserve-3d");
this.container.parentNode.jSetCssProp(d, "1000px")
} else {
this.container.jSetCssProp(k, "translate3d(0, 0, 0)").jSetCssProp(h, "preserve-3d")
}
this.container.jSetCssProp("overflow", "visible").jSetCssProp(a, "50% 50%");
this.container.parentNode.jSetCssProp("overflow", "visible");
l(this.els).jEach(l(function (G) {
G.jSetCssProp("z-index", 50).jSetCssProp(j, "50% 50% " + (this.parSize["Y" === this.os ? "width" : "height"] / 2 * (-1)) + "px");
G.jAddClass("backface-visHid")
}).jBind(this));
this.els[0].jSetCssProp(k, "rotate" + this.os + "(0deg)");
this.els[1].jSetCssProp(k, "rotate" + this.os + "(" + this.deg + "deg)");
this.something_()
},
prepareForSafari_: function () {
var G = l(["top", "bottom"]).contains(this.o.direction) ? "height" : "width",
F = 50;
this.els[1].show();
this.container.parentNode.jAddClass("defParentDiv");
this.container.jSetCssProp(d, "none").jSetCssProp(h, "preserve-3d").jSetCssProp(j, "50% 50% " + (this.parSize[G] / 2 * (-1)) + "px");
if (!y.browser.gecko) {
this.container.jSetCssProp(k, "translateZ(" + (this.parSize[G] / 2 * (-1)) + "px)")
}
if (l(["left", "top"]).contains(this.o.direction)) {
F *= (-1);
this.deg *= (-1)
}
l(this.els).jEach(l(function (I, H) {
if (H == 0) {
I.jSetCssProp(k, "rotate" + this.os + "(0deg)").jSetCssProp(j, "50% 50% 0px")
} else {
I.jSetCssProp(k, "translate" + ("Y" === this.os ? "X" : "Y") + "(" + F + "%) translateZ(" + (this.parSize[G] / 2 * (-1)) + "px) rotate" + this.os + "(" + this.deg + "deg)").jSetCssProp(j, "50% 50%")
}
I.jAddClass("backface-visHid")
}).jBind(this));
this.something_()
},
removeblock_: function () {
this.clearStyles();
this.container.parentNode.jSetCssProp("overflow", "hidden");
this.container.jSetCssProp(a, "")
},
clearStyles: function () {
if (y.browser.engine === "webkit" && !y.browser.chrome || y.browser.gecko) {
this.container.parentNode.jRemoveClass("defParentDiv");
this.container.jSetCssProp(d, "").jSetCssProp(j, "").jSetCssProp(k, "").jSetCssProp("transition", "").jSetCssProp(h, "");
l(this.els).jEach(l(function (F) {
F.jSetCssProp(k, "").jSetCssProp(j, "").jRemoveClass("backface-visHid")
}).jBind(this))
} else {
l(this.els).jEach(l(function (F) {
F.jSetCss({
"z-index": "",
transition: ""
});
F.jSetCssProp(k, "").jSetCssProp(j, "");
F.jRemoveClass("backface-visHid")
}).jBind(this));
this.container.jSetCssProp(k, "");
if (y.browser.engine === "webkit" && !y.browser.chrome) {
this.container.jSetCssProp(d, "").jSetCssProp(h, "");
this.container.parentNode.jSetCssProp(d, "").jSetCssProp(k, "")
} else {
this.container.jSetCssProp("transform-style", "")
}
}
},
stop: function () {
if (!this.flag) {
this.flag = true;
this.els[1].jRemoveEvent("transitionend");
this.removeblock_()
}
},
start: function (H) {
H.start && H.start();
var G = parseInt(this.o.duration),
F;
this.flag = false;
if (y.browser.engine === "webkit" && !y.browser.chrome || y.browser.gecko) {
if (l(["bottom", "top"]).contains(this.o.direction)) {
this.deg *= (-1)
}
this.prepareForSafari_();
this.container.jAddEvent("transitionend", l(function (I) {
if (I.propertyName === "transform") {
I.stop();
this.flag = true;
this.container.jRemoveEvent(I.type);
this.removeblock_();
H.end && H.end(this)
}
}).jBind(this));
this.container.jSetCssProp("transition", k + " " + G + "ms " + this.o.cubicBezier);
if (y.browser.gecko) {
this.container.jSetCssProp(k, "rotate" + this.os + "(" + (this.deg * (-1)) + "deg)")
} else {
this.container.jSetCssProp(k, "translateZ(" + (this.parSize[this.side] / 2 * (-1)) + "px) rotate" + this.os + "(" + (this.deg * (-1)) + "deg)")
}
} else {
this.prepare_();
this.els[1].jAddEvent("transitionend", l(function (I) {
if (I.propertyName === "transform") {
I.stop();
this.flag = true;
this.els[1].jRemoveEvent(I.type);
this.removeblock_();
H.end && H.end(this)
}
}).jBind(this));
F = {
transition: k + " " + G + "ms " + this.o.cubicBezier
};
l([this.els[0], this.els[1]]).jEach(l(function (J, I) {
F[k] = "rotate" + this.os + "(" + (!I ? (this.deg * (-1)) : 0) + "deg)";
J.jSetCss(F)
}).jBind(this))
}
}
});
return E
})();
y.Effects.Diffusion = (function () {
var E = function (G, F) {
y.Effects.Blank.apply(this, arguments);
y.extend(this._options, {
cubicBezier: "cubic-bezier(0, 0, 1, 1)"
});
this.o = this._options;
y.extend(this.o, F || {});
this.name = "diffusion";
this.count = 5
};
y.inherit(E, y.Effects.Blank);
y.extend(E.prototype, {
prepare_: function () {
var J = this.els[0].parentNode.jGetSize(),
I = this.els[0].parentNode.jGetPosition(),
K, G, H, F = ",";
this.block = y.$new("div", {}, {
top: "0",
left: "0",
position: "absolute",
width: J.width,
height: J.height,
"z-index": 155
});
K = J.height / (this.count * 2 + 1);
G = J.width / (this.count * 2 + 1);
this.clone = new Array(this.count);
for (var H = 0; H < this.count; ++H) {
this.clone[H] = this.els[1].cloneNode(true);
$mjs(this.clone[H]).jSetCss({
position: "absolute",
clip: "rect(" + (K * H) + "px" + F + " " + (J.width - (G * H)) + "px" + F + " " + (J.height - (K * H)) + "px" + F + " " + (K * H) + "px)",
"z-index": (H + 55),
opacity: 0
}).show()
}
for (H = 0; H < this.count; ++H) {
this.block.append(this.clone[H])
}
this.els[0].parentNode.append(this.block);
this.els[1].hide();
this.something_()
},
removeblock_: function () {
if (this.count == this.count_) {
this.els[0].show();
this.els[1].show();
this.block.jSetCssProp("z-index", 1);
this.block.kill()
}
},
stop: function () {
if (!this.flag) {
this.count_ = this.count;
this.flag = true;
this.removeblock_()
}
},
start: function (I) {
I.start && I.start();
I.end && (this.inSide = I.end);
this.step_ = this.o.duration / (this.count * 2);
var H = this.o.duration / this.count + this.step_,
J = H + (this.step_ * (this.count - 1)),
G, F;
this.dur_ = H + J / this.count;
this.count_ = 0;
this.ieTimeOut = new Array(this.count);
this.prepare_();
this.flag = false;
for (F = this.count - 1; F >= 0; --F) {
G = {
opacity: 1,
transition: "all " + this.dur_ + "ms " + (this.step_ * (this.count - F)) + "ms " + this.o.cubicBezier
};
G[y.browser.cssPrefix + "transition"] = "all " + this.dur_ + "ms " + (this.step_ * (this.count - F)) + "ms " + this.o.cubicBezier;
this.clone[F].jSetCss(G);
this.callback = l(function (K, L) {
L.stop();
this.count_++;
this.clone[K].jRemoveEvent(L.type);
if (this.count == this.count_) {
this.flag = true;
this.removeblock_();
I.end && I.end(this)
}
}).jBind(this, F);
this.clone[F].jAddEvent("transitionend", this.callback)
}
}
});
return E
})();
y.Effects.Flip = (function () {
var E = function (K, I) {
y.Effects.Blank.apply(this, arguments);
this.name = "flip";
var H = 0,
G = 0,
L = 0,
J = 0,
F = 0,
M = 0;
if (y.$A(["left", "right"]).contains(this.o.direction)) {
M = "-180";
L = (this.o.direction == "left") ? "-180" : "180";
J = (this.o.direction == "left") ? "-360" : "0"
} else {
F = "-180";
H = (this.o.direction == "top") ? "180" : "-180";
G = (this.o.direction == "top") ? "0" : "-360"
}
this.container.jSetCssProp(k, "translate3d(0,0,0)");
this.container.jSetCss({
overflow: "visible",
"perspective-origin": "50% 50%"
});
if (y.browser.engine === "webkit" && y.browser.chrome) {
this.container.jAddClass("transformStyle")
}
this.container.parentNode.jSetCssProp("overflow", "visible");
this.stylesBefore = {
el1: {
"z-index": 50,
transform: "rotateX(0deg) rotateY(0deg)",
"backface-visibility": "hidden"
},
el2: {
"z-index": 30,
transform: "rotateX(" + F + "deg) rotateY(" + M + "deg)",
"backface-visibility": "hidden"
}
};
this.stylesAfter = {
el1: {
"z-index": 30,
transform: "rotateX(" + H + "deg) rotateY(" + L + "deg)",
"backface-visibility": "hidden"
},
el2: {
"z-index": 50,
transform: "rotateX(" + G + "deg) rotateY(" + J + "deg)",
"backface-visibility": "hidden"
}
};
this.stylesReset = {
transform: "",
"z-index": "",
"backface-visibility": ""
};
this.stylesBefore.el1[y.browser.cssPrefix + "transform"] = "rotateX(0deg) rotateY(0deg)";
this.stylesBefore.el1[y.browser.cssPrefix + "backface-visibility"] = "hidden";
this.stylesBefore.el2[y.browser.cssPrefix + "transform"] = "rotateX(" + F + "deg) rotateY(" + M + "deg)";
this.stylesBefore.el2[y.browser.cssPrefix + "backface-visibility"] = "hidden";
this.stylesAfter.el1[y.browser.cssPrefix + "transform"] = "rotateX(" + H + "deg) rotateY(" + L + "deg)";
this.stylesAfter.el2[y.browser.cssPrefix + "transform"] = "rotateX(" + G + "deg) rotateY(" + J + "deg)";
this.stylesReset[y.browser.cssPrefix + "transform"] = "";
this.stylesReset[y.browser.cssPrefix + "backface-visibility"] = ""
};
y.inherit(E, y.Effects.Blank);
y.extend(E.prototype, {
jRemoveClasses_: function (F) {
this.container.jSetCssProp(k, "");
this.container.jSetCss({
"perspective-origin": ""
});
this.container.jRemoveClass("transformStyle");
this.container.parentNode.jSetCssProp("overflow", "hidden");
E.$parent.jRemoveClasses_.call(this, F)
}
});
return E
})();
y.Effects.SlideIn = (function () {
var E = function (H, G) {
y.Effects.Blank.apply(this, arguments);
this.name = "slide-in";
var F = 100,
I = 100;
if (y.$A(["left", "right"]).contains(this.o.direction)) {
I = 0;
if (this.o.direction == "left") {
F *= (-1)
}
} else {
F = 0;
if (this.o.direction == "top") {
I *= (-1)
}
}
this.stylesBefore = {
el1: {
transform: "translate(0%, 0%)",
"z-index": 30
},
el2: {
transform: "translate(" + F + "%, " + I + "%)",
"z-index": 50
}
};
this.stylesAfter = {
el1: {
transform: "translate(0%, 0%)",
"z-index": 35
},
el2: {
transform: "translate(0%, 0%)",
"z-index": 50
}
};
this.stylesReset = {
transform: "",
"z-index": ""
};
this.stylesBefore.el1[y.browser.cssPrefix + "transform"] = "translate(0%, 0%)";
this.stylesBefore.el2[y.browser.cssPrefix + "transform"] = "translate(" + F + "%, " + I + "%)";
this.stylesAfter.el1[y.browser.cssPrefix + "transform"] = "translate(0%, 0%)";
this.stylesAfter.el2[y.browser.cssPrefix + "transform"] = "translate(0%, 0%)";
this.stylesReset[y.browser.cssPrefix + "transform"] = ""
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.SlideOut = (function () {
var E = function (H, G) {
y.Effects.Blank.apply(this, arguments);
this.name = "slide-out";
var F = 100,
J = 100,
I;
this.actionIndex = 0;
if (y.$A(["left", "right"]).contains(this.o.direction)) {
J = 0;
if (this.o.direction == "right") {
F *= (-1)
}
} else {
F = 0;
if (this.o.direction == "bottom") {
J *= (-1)
}
}
this.stylesBefore = {
el1: {
transform: "translate(0%, 0%)",
"z-index": 50
},
el2: {
transform: "translate(0%, 0%)",
"z-index": 30
}
};
this.stylesAfter = {
el1: {
transform: "translate(" + F + "%, " + J + "%)",
"z-index": 50
},
el2: {
transform: "translate(0%, 0%)",
"z-index": 35
}
};
this.stylesReset = {
transform: "",
"z-index": ""
};
I = y.browser.cssPrefix + "transform";
this.stylesBefore.el1[I] = "translate(0%, 0%)";
this.stylesBefore.el2[I] = "translate(0%, 0%)";
this.stylesAfter.el1[I] = "translate(" + F + "%, " + J + "%)";
this.stylesAfter.el2[I] = "translate(0%, 0%)";
this.stylesReset[I] = ""
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.SlideChange = (function () {
var E = function (H, G) {
y.Effects.Blank.apply(this, arguments);
this.name = "slide-change";
var F = 200,
I = 200;
if (y.$A(["left", "right"]).contains(this.o.direction)) {
I = 0;
if (this.o.direction == "left") {
F *= (-1)
}
} else {
F = 0;
if (this.o.direction == "top") {
I *= (-1)
}
}
this.stylesBefore = {
el1: {
transform: "translate(0%, 0%)"
},
el2: {
transform: "translate(" + F + "%, " + I + "%)"
}
};
this.stylesAfter = {
el1: {
transform: "translate(" + F + "%, " + I + "%)"
},
el2: {
transform: "translate(0%, 0%)"
}
};
this.stylesReset = {
transform: ""
};
this.stylesBefore.el1[y.browser.cssPrefix + "transform"] = "translate(0%, 0%)";
this.stylesBefore.el2[y.browser.cssPrefix + "transform"] = "translate(" + F + "%, " + I + "%)";
this.stylesAfter.el1[y.browser.cssPrefix + "transform"] = "translate(" + F + "%, " + I + "%)";
this.stylesAfter.el2[y.browser.cssPrefix + "transform"] = "translate(0%, 0%)";
this.stylesReset[y.browser.cssPrefix + "transform"] = ""
};
y.inherit(E, y.Effects.Blank);
return E
})();
y.Effects.CaptionEffects = {};
y.Effects.CaptionEffects.Blank = (function () {
var E = function (G, H, F) {
this.name = "blank";
this.type = H;
this.phase = "start";
this.el = l(G);
this.container = l(this.el.parentNode);
this._options = {
outSpeed: 1000,
outDelay: 0,
outEasing: "ease",
outFade: false,
outOffset: "outside",
inSpeed: 1000,
inDelay: 0,
inEasing: "ease",
inFade: false,
inOffset: "outside",
insideOpacity: null
};
this.o = this._options;
y.extend(this.o, F || {})
};
y.extend(E.prototype, {
getMatrixPosition: function (G) {
var F = {
x: 0,
y: 0
};
(G.jGetCss(k) || "").replace(/matrix\(([^\)]+)\)/, function (J, I) {
var H = I.split(",");
F.x += parseInt(H[4], 10);
F.y += parseInt(H[5])
});
return F
},
_render: function () {
this.container.offsetHeight;
this.el.offsetHeight
},
_out: function (F) {
this.el.hide();
this.phase = "end"
},
_in: function (F) {
this.el.show();
this.phase = "end"
},
start: function (F) {
this["_" + this.type](F)
},
stop: function () {}
});
return E
})();
y.Effects.CaptionEffects.From = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.Blank.apply(this, arguments);
this.name = "from";
this.side = null;
this.elementPosition = this.el.jGetPosition();
this.elementSize = this.el.jGetSize();
this.containerPosition = this.container.jGetPosition();
this.containerSize = this.container.jGetSize();
this.currentMargin = {};
this.os = {
from: {
x: 0,
y: 0
},
to: {
x: 0,
y: 0
}
};
this.opacityFrom = null;
this.opacityTo = null
};
y.inherit(E, y.Effects.CaptionEffects.Blank);
y.extend(E.prototype, {
calcOpacity: function () {
var F;
if (this.o[this.type + "Fade"]) {
F = this.o.insideOpacity || this.el.jGetCss("opacity") || 1;
if ("in" === this.type) {
this.opacityFrom = 0;
this.opacityTo = F
} else {
this.opacityFrom = F;
this.opacityTo = 0
}
}
},
getDistanceIe8: function (F) {
var I = this.o[this.type + "Offset"],
G = l(["top", "bottom"]).contains(F) ? "height" : "width",
H = l(["top", "bottom"]).contains(F) ? "top" : "left";
if (!F) {
I = 0
}
if ("outside" === I) {
if (l(["top", "left"]).contains(F)) {
I = this.elementPosition[H] - this.containerPosition[H] + this.elementSize[G]
} else {
I = this.containerSize[G] - (this.elementPosition[H] - this.containerPosition[H])
}
}
return I
},
getMargin: function (G) {
var F = G;
if ("bottom" === G) {
G = "top"
}
if ("right" === G) {
G = "left"
}
if ("top" === G) {
if (null !== this.el.jGetCss("bottom")) {
G = "bottom"
}
} else {
if (null !== this.el.jGetCss("right")) {
G = "right"
}
}
this.currentMargin[F] = {};
this.currentMargin[F].side = G;
this.currentMargin[F].value = this.el.jGetCss("margin-" + G);
if (this.currentMargin[F].value) {
this.currentMargin[F].value = parseInt(this.currentMargin[F].value)
} else {
this.currentMargin[F].value = 0
}
},
getDistance: function (F) {
var I = this.o[this.type + "Offset"],
H = l(["left", "right"]).contains(F) ? "left" : "top",
G = "left" === H ? "width" : "height";
if (!F) {
I = 0
}
if ("outside" === I) {
if (l(["top", "left"]).contains(F)) {
I = this.elementPosition[H] - this.containerPosition[H] + this.elementSize[G]
} else {
I = this.containerSize[G] - (this.elementPosition[H] - this.containerPosition[H])
}
}
return I
},
calcPosition: function () {
var G = l(["left", "right"]).contains(this.side) ? "left" : "top",
F;
if ("in" === this.type) {
this.side.jEach(l(function (H) {
var I = l(["left", "right"]).contains(H) ? "x" : "y";
this.os.from[I] = this.getDistance(H);
if ("top" === H || "left" === H) {
this.os.from[I] *= (-1)
}
}).jBind(this))
} else {
this.side.jEach(l(function (H) {
var I = l(["left", "right"]).contains(H) ? "x" : "y";
this.os.to[I] = this.getDistance(H);
if ("top" === H || "left" === H) {
this.os.to[I] *= (-1)
}
}).jBind(this))
}
},
prepare: function (F) {
F.start(this.type);
if (this.side) {
this.side = l(this.side.split(" "))
}
this.calcOpacity();
if (null !== this.opacityFrom) {
this.el.jSetOpacity(this.opacityFrom)
}
this.side && this.calcPosition();
this.el.jSetCss("transition", "none");
this.side && this.el.jSetCssProp(k, "translate3d(" + this.os.from.x + "px, " + this.os.from.y + "px, 0)");
this._render();
this.el.jAddEvent("transitionend", l(function (G, H) {
if (H.target == this.el) {
H.stop();
this.el.jRemoveEvent(H.type);
this.el.jSetCssProp("transition", "");
this.el.jSetCssProp(k, "");
if (!this.o.insideOpacity && this.o[this.type + "Fade"]) {
this.el.jSetCssProp("opacity", "")
} else {
this.el.jSetOpacity(this.o.insideOpacity)
}
this.phase = "end";
G(this.type)
}
}).jBind(this, F.end))
},
start: function (F) {
var H, G, I = this.o[this.type + "Fade"];
this.prepare(F);
H = "";
G = " " + this.o[this.type + "Speed"] + "ms " + this.o[this.type + "Easing"] + " " + this.o[this.type + "Delay"] + "ms";
this.side && (H = k + G);
if (I) {
if (this.side) {
H += ", "
}
H += ("opacity" + G)
}
this.el.jSetCssProp("transition", H);
this.side && this.el.jSetCssProp(k, "translate3d(" + this.os.to.x + "px, " + this.os.to.y + "px, 0)");
I && this.el.jSetCssProp("opacity", this.opacityTo);
this.phase = "progress"
},
stop: function () {
if ("progress" === this.phase) {
this.el.jRemoveEvent("transitionend");
this.el.jSetCssProp("transition", "").jSetCssProp(k, "");
if (this.o[this.type + "Fade"]) {
if (!this.o.insideOpacity) {
this.el.jSetCss({
opacity: "",
filter: ""
})
} else {
this.el.jSetOpacity(this.o.insideOpacity)
}
}
this.phase = "end"
}
}
});
return E
})();
y.Effects.CaptionEffects.Fade = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "fade";
this.side = null
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.Left = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "left";
this.side = "left"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.Top = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "top";
this.side = "top"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.Right = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "right";
this.side = "right"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.Bottom = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "bottom";
this.side = "bottom"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.TopLeft = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "topLeft";
this.side = "top left"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.TopRight = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "topRight";
this.side = "top right"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.BottomLeft = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "bottomLeft";
this.side = "bottom left"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.CaptionEffects.BottomRight = (function () {
var E = function (G, H, F) {
y.Effects.CaptionEffects.From.apply(this, arguments);
this.name = "bottomRight";
this.side = "bottom right"
};
y.inherit(E, y.Effects.CaptionEffects.From);
return E
})();
y.Effects.KAR = (function () {
function F(H) {
var G = {
x: 0,
y: 0
};
(H.jGetCss(k) || "").replace(/matrix\(([^\)]+)\)/, function (K, J) {
var I = J.split(",");
G.x = I[0];
G.y = I[3]
});
return G
}
var E = function (H, I, G) {
this.els = l([l(H), l(I)]);
this.container = l(H || I).parentNode;
this.options = {
jDel: 50,
direction: "random",
replace: false,
kenburns: false,
replaceSpeed: 2000,
kenburnsSpeed: 3000,
timingFunction: "ease"
};
this.o = this.options;
y.extend(this.o, G);
this.moving = false;
this.zoomIn = null;
this.isPaused = false;
this.countEvents = 0;
if (this.o.replace) {
this.countEvents++;
this._prepareReplace()
}
if (this.o.kenburns) {
this.countEvents++;
this.eff = ["c", "tl", "tr", "br", "bl"][Math.rand(0, 4)];
this._parseOptions();
this._prepareKenburns()
}
};
y.extend(E.prototype, {
_render: function () {
this.els[0] && this.els[0].offsetHeight;
this.els[1] && this.els[1].offsetHeight
},
_parseOptions: function () {
var G;
if ("random" !== this.o.direction) {
G = this.o.direction.split("-");
this.zoomIn = "in" === G[1] ? 1 : 0;
G.shift();
G.shift();
this.eff = G.join("-")
} else {
this.zoomIn = Math.rand(0, 1);
this.eff = ["top-left", "top-right", "bottom-left", "bottom-right", "center"][Math.rand(0, 4)]
}
},
_prepareKenburns: function () {
this.effMove = this.k_calcScaleAndPosition();
this.els[1].jSetCss({
transform: "scale(" + this.effMove.before.scale + ")",
"transform-origin": this.effMove.before.origin
});
this._render()
},
recoverySize: function () {
if (this.o.kenburns) {
this.isPaused = false;
this.k_stopTransition();
this.els[1].jSetCssProp("transform", "")
}
if (this.o.replace) {
this.r_end();
if (this.els[1]) {
if (!this.o.kenburns) {
this.els[1].jSetCssProp("transition", "")
}
this.els[1].jSetOpacity(1)
}
}
},
k_calcScaleAndPosition: function () {
var G = "",
H = Math.rand(0, 1);
switch (this.eff) {
case "center":
G = "50%";
break;
case "top-left":
G = "top left";
break;
case "top-right":
G = "top right";
break;
case "bottom-right":
G = "bottom right";
break;
case "bottom-left":
G = "bottom left";
break
}
return {
before: {
scale: this.zoomIn ? 1 : 1.2,
origin: G
},
after: {
scale: this.zoomIn ? 1.2 : 1,
origin: G
}
}
},
k_stopTransition: function () {
var G = {
transition: k + String.fromCharCode(32) + "0ms"
};
G[y.browser.cssPrefix + "transition"] = k + String.fromCharCode(32) + "0ms";
l(this.els[1]).jSetCss(G)
},
_prepareReplace: function () {
if (this.els[0]) {
this.els[0].jSetOpacity(1)
}
this.els[1].jSetOpacity(0);
if (this.els[0]) {
this.els[0].jSetCss({
position: "absolute",
left: 0,
bottom: 0,
top: 0,
right: 0,
margin: "auto"
})
}
if (!this.els[1].parentNode) {
this.container.appendChild(this.els[1])
}
this._render()
},
r_end: function () {
if (!this.els[0]) {
return
}
if (this.els[0].parentNode) {
this.els[0].jRemove()
}
this.els[0].jSetOpacity(1);
this.els[0].jSetCss({
transition: "",
position: "",
left: "",
bottom: "",
top: "",
right: "",
margin: ""
})
},
start: function (H) {
var G = "";
var I = "";
if (this.one) {
return
}
this.one = true;
this.moving = true;
if (H === undefined) {
H = true
}
this.els[1].jRemoveEvent("transitionend");
this.els[1].jAddEvent("transitionend", l(function (J) {
if (this.els[1] == J.target) {
this.countEvents--;
if ("opacity" === J.propertyName) {
this.r_end()
}
if (0 === this.countEvents) {
this.els[1].jRemoveEvent(J.type);
this.moving = false;
this.els[1].jSetCssProp("transition", "")
}
}
}).jBind(this));
if (this.o.replace) {
if (this.els[0]) {
this.els[0].jSetCss({
transition: "opacity" + String.fromCharCode(32) + this.o.replaceSpeed + "ms",
opacity: 0
})
}
G += ("opacity" + String.fromCharCode(32) + this.o.replaceSpeed + "ms");
if (this.o.kenburns) {
G += ", "
}
}
if (this.o.kenburns) {
I += (k + String.fromCharCode(32) + (this.o.kenburnsSpeed - this.o.jDel) + "ms" + String.fromCharCode(32) + this.o.timingFunction + String.fromCharCode(32) + this.o.jDel + "ms")
}
this.els[1].jSetCssProp("transition", G + I);
this._render();
if (this.o.replace) {
this.els[1].jSetCssProp("opacity", 1)
}
if (this.o.kenburns) {
if (H) {
this.els[1].jSetCss({
transform: "scale(" + this.effMove.after.scale + ")",
"transform-origin": this.effMove.after.origin
})
} else {
this.isPaused = true
}
}
},
play: function () {
if (this.o.kenburns && this.moving && this.isPaused) {
this.isPaused = false;
this.els[1].jSetCss({
transform: "scale(" + this.effMove.after.scale + ")",
"transform-origin": this.effMove.after.origin
})
}
},
pause: function () {
if (this.o.kenburns && this.moving && !this.isPaused) {
this.isPaused = true;
this.els[1].jSetCssProp("transform", "translateZ(0) scale(" + F(this.els[1]).x + ")")
}
},
stop: function () {
if (this.moving) {
if (this.o.replace) {
if (this.replaceFX) {
this.replaceFX.stop()
}
this.r_end()
}
if (this.o.kenburns) {
this.isPaused = false;
if (this.kenburnsFX) {
this.kenburnsFX.stop()
}
}
this.els[1].jRemoveEvent("transitionend");
this.els[1].jSetCssProp("transition", "");
this.moving = false
}
}
});
return E
})();
(function (F) {
if (!F) {
throw "MagicJS not found";
return
}
var E = F.$;
x.ImageLoader = new F.Class({
img: null,
ready: false,
options: {
onload: F.$F,
onabort: F.$F,
onerror: F.$F,
oncomplete: F.$F
},
size: null,
_timer: null,
_handlers: {
onload: function (G) {
if (G) {
E(G).stop()
}
this._unbind();
if (this.ready) {
return
}
this.ready = true;
this._cleanup();
this.options.onload.jBind(null, this).jDelay(1);
this.options.oncomplete.jBind(null, this).jDelay(1)
},
onabort: function (G) {
if (G) {
E(G).stop()
}
this._unbind();
this.ready = false;
this._cleanup();
this.options.onabort.jBind(null, this).jDelay(1);
this.options.oncomplete.jBind(null, this).jDelay(1)
},
onerror: function (G) {
if (G) {
E(G).stop()
}
this._unbind();
this.ready = false;
this._cleanup();
this.options.onerror.jBind(null, this).jDelay(1);
this.options.oncomplete.jBind(null, this).jDelay(1)
}
},
_bind: function () {
E(["load", "abort", "error"]).jEach(function (G) {
this.img.jAddEvent(G, this._handlers["on" + G].jBindAsEvent(this).jDefer(1))
}, this)
},
_unbind: function () {
if (this._timer) {
try {
clearTimeout(this._timer)
} catch (G) {}
this._timer = null
}
E(["load", "abort", "error"]).jEach(function (H) {
this.img.jRemoveEvent(H)
}, this)
},
_cleanup: function () {
this.jGetSize();
if (this.img.jFetch("new")) {
var G = this.img.parentNode;
this.img.jRemove().jDel("new").jSetCss({
position: "static",
top: "auto"
});
G.kill()
}
},
init: function (H, G) {
this.options = F.extend(this.options, G);
if ("string" === F.jTypeOf(H) || "array" === F.jTypeOf(H)) {
this.img = F.$new("img", {}, {
"max-width": "none",
"max-height": "none"
}).jAppendTo(F.$new("div").jAddClass("magic-temporary-img").jSetCss({
position: "absolute",
top: -10000,
width: 10,
height: 10,
overflow: "hidden"
}).jAppendTo(document.body)).jStore("new", true)
} else {
this.img = E(H)
}
var I = function () {
if (this.isReady()) {
this._handlers.onload.call(this)
} else {
this._handlers.onerror.call(this)
}
I = null
}.jBind(this);
this._bind();
if (!H.src) {
if ("array" === F.jTypeOf(H)) {
this.img.src = H[0];
this.img.setAttribute("srcset", H[1])
} else {
this.img.src = H
}
} else {
this.img.src = H.src
}
this.img && this.img.complete && I && (this._timer = I.jDelay(100))
},
destroy: function () {
this._unbind();
this._cleanup();
this.ready = false;
return this
},
isReady: function () {
var G = this.img;
return (G.naturalWidth) ? (G.naturalWidth > 0) : (G.readyState) ? ("complete" == G.readyState) : G.width > 0
},
jGetSize: function () {
return this.size || (this.size = {
width: this.img.naturalWidth || this.img.width,
height: this.img.naturalHeight || this.img.height
})
}
})
})(x);
(function (E) {
E.QImageLoader = function (M, H) {
var G = 0,
J = [],
L = this,
K, I, F;

function O(P) {
return function (Q) {
J.push(Q.destroy());
(H[P] || E.$F).call(L, Q, Q.origItem);
G--;
N()
}
}

function N() {
if (!M.length) {} else {
if (G < (H.queue || 3)) {
K = M.shift();
I = new E.ImageLoader(K.img, {
onload: O("onload"),
onerror: O("onerror"),
onabort: O("onabort"),
oncomplete: O("oncomplete")
});
I.origItem = K;
G++
}
}
}
this.push = function (Q, P) {
if (!P) {
P = Q;
Q = false
}
if (E.jTypeOf(P.img) == "string" || P.img.tagName.toLowerCase() == "img") {
M[Q ? "unshift" : "push"](P);
H.delay || N()
}
return this
};
this.abort = function () {
I.destroy()
};
this.load = N;
H.delay || M.length && N()
}
})(x);
var o = {
width: {
oneOf: [{
type: "number",
minimum: 1
}, {
type: "string",
"enum": ["auto"]
}],
"default": "auto"
},
height: {
oneOf: [{
type: "number",
minimum: 1
}, {
type: "string",
"enum": ["auto", "responsive"]
}],
"default": "auto"
},
"base-width": {
type: "number",
minimum: 1,
"default": 1000
},
"base-height": {
oneOf: [{
type: "number",
minimum: 0
}, {
type: "string",
"enum": ["auto"]
}],
"default": "auto"
},
orientation: {
type: "string",
"enum": ["horizontal", "vertical"],
"default": "horizontal"
},
loop: {
type: "boolean",
"default": true
},
selectors: {
oneOf: [{
type: "string",
"enum": ["left", "right", "top", "bottom", "none"]
}, {
type: "boolean",
"enum": [false]
}],
"default": "none"
},
"selectors-style": {
type: "string",
"enum": ["bullets", "thumbnails"],
"default": "bullets"
},
"selectors-size": {
type: "number",
minimum: 1,
"default": 70
},
"selectors-eye": {
type: "boolean",
"default": true
},
"bullets-preview": {
oneOf: [{
type: "string",
"enum": ["top", "bottom", "none"]
}, {
type: "boolean",
"enum": [false]
}],
"default": "top"
},
"selectors-fill": {
type: "boolean",
"default": false
},
caption: {
type: "boolean",
"default": true
},
arrows: {
type: "boolean",
"default": true
},
effect: {
type: "string",
"enum": ["random", "slide", "fade", "fade-up", "fade-down", "dissolve", "cube", "bars3d", "slide-in", "slide-out", "flip", "blinds3d", "slide-change", "diffusion", "blocks"],
"default": "slide"
},
"effect-speed": {
type: "number",
minimum: 1,
"default": 600
},
"effect-easing": {
type: "string",
"default": "ease"
},
autoplay: {
type: "boolean",
"default": true
},
"slide-duration": {
type: "number",
minimum: 1,
"default": 6000
},
shuffle: {
type: "boolean",
"default": false
},
kenburns: {
type: "boolean",
"default": false
},
pause: {
type: "boolean",
"default": true
},
fullscreen: {
type: "boolean",
"default": false
},
preload: {
type: "boolean",
"default": true
},
keyboard: {
type: "boolean",
"default": true
},
"show-loader": {
type: "boolean",
"default": false
},
autostart: {
type: "boolean",
"default": true
},
errorBlock: {
type: "string",
"default": '<span class="mss-error-message">Image cannot be loaded</span>'
},
onReady: {
type: "function",
"default": y.$F
},
onPlay: {
type: "function",
"default": y.$F
},
onPause: {
type: "function",
"default": y.$F
},
onVideoPlay: {
type: "function",
"default": y.$F
},
onVideoPause: {
type: "function",
"default": y.$F
},
onEnterFullscreen: {
type: "function",
"default": y.$F
},
onExitFullscreen: {
type: "function",
"default": y.$F
},
onBeforeSlideChange: {
type: "function",
"default": y.$F
},
onAfterSlideChange: {
type: "function",
"default": y.$F
}
};
var n = ".MagicSlideshow,.mss-slider,.mss-slide-wrapper,.mss-slide,.mss-selectors,.mss-selectors-wrapper,.mss-selector,.mss-selector:before,.mss-selectors-eye,.mss-caption,.mss-caption span,.mss-button,.mss-fullscreen { margin: 0; padding: 0; outline: 0 !important; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}.mss-slider-wrapper { display: flex !important; align-items: stretch; justify-content: stretch;}.mss-slider-wrapper.mss-with-height,.mss-slider-wrapper.mss-recalc-height .mss-slide-wrapper { top: 0; left: 0; width: 100%; height: 100%; max-height: 100%; position: absolute !important;}.mss-selectors-horizontal .mss-slider-wrapper { flex-direction: column;}.mss-selectors-vertical .mss-slider-wrapper { flex-direction: row;}.mss-slider-wrapper > * { display: inline-block;}.MagicSlideshow,.mss-slider,.mss-selectors { line-height: 100% !important; vertical-align: top !important;}.mss-slider,.mss-slide,.mss-selectors { border: none !important; display: inline-block;}.mss-slide-wrapper,.mss-slide { direction: ltr !important; width: 100%; height: 100%;}.mss-slide-wrapper { -webkit-perspective: 1000px; perspective: 1000px;}.mss-slide { position: absolute; -webkit-backface-visibility: hidden !important; backface-visibility: hidden !important;}.mss-slide.mss-slide-active { position: relative;}.MagicSlideshow { width: 100%; max-width: 100%; height: auto; background: transparent; direction: ltr; overflow: visible !important; -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; -webkit-tap-highlight-color: transparent !important; }.MagicSlideshow .mss-slider:before { display: inline-block; vertical-align: top; height: 0;}.mss-slider { overflow: hidden; width: 100% !important; height: 100%; z-index: 1; position: relative;}.mss-slide-wrapper { position: relative !important; }.mss-desktop .mss-slide-wrapper { z-index: 1 !important;}.mss-slide { overflow: hidden; left: 0; top: 0; z-index: 1;}.mss-content-slide { text-align: left;}.mss-slide-active { z-index: 99;}.mss-slide [data-mss-animation-block] { position: absolute !important;}.mss-centering-img,.mss-centering-img a.mss-content{ display: flex; align-items: center; justify-content: center;}.mss-centering-img img { max-width: 100%; max-height: 100%; object-fit: contain;} .mss-img-vertical { width: auto; height: 100%;}.mss-img-horizontal { width: 100%; height: auto;}.mss-html-block { line-height: 1em !important; font-size-adjust: 0.5 !important;}.mss-html-block p { margin: 0 !important;}.lt-ie10-magic .mss-fullscreen .mss-slide img { max-width: 100%; width: auto; height: auto;}.mss-slide video, .mss-slide iframe { display: inline-block; max-width: 100%;}.mss-fixed-height .mss-slide .mss-content { height: 100% !important;}.mss-selectors { top: 0; left: 0; z-index: 100; display: flex; flex-shrink: 0; position: relative;}.mss-selectors-vertical .mss-selectors { flex-direction: column;}.mss-selectors-horizontal .mss-selectors { flex-direction: row;}.mss-selectors .mss-arrow-prev { order: 0;}.mss-selectors .mss-arrow-next { order: 2;}.mss-bullets { z-index: 300;}.mss-selectors-horizontal .mss-selectors { width: 100% !important; white-space: nowrap;}.mss-selectors-wrapper { order: 1; width: 100%; height: 100%; display: block; overflow: hidden; position: relative !important;}.mss-selector { vertical-align: top; line-height: 100%; cursor: pointer !important; display: inline-block !important;}.mss-selector-empty { box-shadow: inset 0px 0px 10px rgba(0,0,0,0.9);}.mss-selectors-horizontal .mss-selector-empty { width: 50px;}.mss-selectors-vertical .mss-selector-empty { height: 50px;}.mss-selectors-eye { z-index: 10;}.mss-selectors .mss-button { flex-shrink: 0;}.mss-selectors-container { display: flex; position: absolute !important; justify-content: center; align-items: center; -moz-box-sizing: content-box; box-sizing: content-box;}.mss-selectors-horizontal .mss-selectors-container { flex-direction: row; min-width: 100% !important;}.mss-selectors-vertical .mss-selectors-container { flex-direction: column; min-height: 100% !important;}.mss-selectors-horizontal .mss-selectors-container { height: 100% !important;}.mss-selectors-vertical .mss-selectors-container { width: 100% !important;}.mss-thumbnails .mss-selector { overflow: hidden;}.mss-selectors-horizontal .mss-thumbnails .mss-selector { width: auto; height: 100%;}.mss-selectors-vertical .mss-thumbnails .mss-selector { width: 100%; height: auto;}.mss-thumbnails .mss-selectors-container > img { width: auto; height: auto; margin: 0 1px; object-fit: contain;}.mss-selectors-horizontal .mss-thumbnails .mss-selectors-container > img { max-width: none !important;}.mss-fullscreen { width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; z-index: 2147483647 !important;}.mss-fullscreen .mss-selectors { display: none !important;}.mss-desktop.mss-fullscreen .mss-selectors { display: flex !important;}.mss-fullscreen .mss-slider-wrapper { max-width: 100%; max-height: 100%;}.mss-fullscreen .mss-slider-wrapper { width: 100%; height: 100%;}.mss-fullscreen .mss-slider { overflow: hidden !important;}.transformStyle { -webkit-transform-style: preserve-3d !important; transform-style: preserve-3d !important;}.backface-visHid { -webkit-backface-visibility: hidden !important; backface-visibility: hidden !important;}.defParentDiv { overflow: visible !important; -webkit-perspective: 1000px !important; perspective: 1000px !important;}.mss-hidden { display: none !important; visibility: hidden !important;}.mss-slider:hover .mss-disabled, .mss-selectors .mss-disabled { opacity: 0.1 !important; filter: alpha(opacity = 10) !important;}.magic-temporary-img img { max-height: none !important; max-width: none !important;}.mss-bullets-preview-thumbnail { position: absolute !important; -webkit-box-sizing: border-box !important; box-sizing: border-box !important;}.mss-bullets-preview-arrow { position: absolute !important; border-color: transparent; width: 0; height: 0; border-style: solid !important; -webkit-box-sizing: border-box !important; box-sizing: border-box !important;}.mss-bullets-preview-wrapper { position: relative !important; height: 100% !important; z-index: 100 !important;}.mss-bullets-preview-wrapper > * { height: 100% !important; width: auto !important; max-width: none !important;}.magic-temporary-img img { position: absolute !important;}.mss-super-opacity,.mss-super-opacity-replace { opacity: 0 !important; filter: alpha(opacity = 10) !important;}.mss-super-opacity-replace { position: absolute;}.mss-slide .mss-fullscreen-video { width: 100%; height: 100%;}";
var D = (function () {
var E = function (I, G, H) {
y.$uuid(this);
this.node = l(I);
this.container = l(G);
var F = {
errorBlock: {
type: "string",
"default": ""
},
caption: {
type: "boolean",
"default": true
},
preload: {
type: "boolean",
"default": true
},
"standard-caption": {
type: "boolean",
"default": false
},
baseWidth: {
type: "number",
"default": 1000
},
kenburns: {
type: "boolean",
"default": false
},
"kenburns-direction": {
type: "string",
"enum": ["zoom-in-top-left", "zoom-in-top-right", "zoom-in-bottom-left", "zoom-in-bottom-right", "zoom-in-center", "zoom-out-top-left", "zoom-out-top-right", "zoom-out-bottom-left", "zoom-out-bottom-right", "zoom-out-center", "random"],
"default": "random"
},
"kenburns-speed": {
type: "number",
"default": 3000
},
"in-move": {
type: "string",
"enum": ["fade", "fixed", "left", "top", "right", "bottom", "top left", "top right", "bottom left", "bottom right"],
"default": "fixed"
},
"in-speed": {
type: "number",
"default": 1000
},
"in-easing": {
type: "string",
"default": "ease"
},
"in-delay": {
type: "number",
"default": 0
},
"in-fade": {
type: "boolean",
"default": false
},
"in-offset": {
oneOf: [{
type: "string",
"enum": ["outside"]
}, {
type: "number",
minimum: 10
}],
"default": "outside"
},
"out-move": {
type: "string",
"enum": ["fade", "fixed", "left", "top", "right", "bottom", "top left", "top right", "bottom left", "bottom right"],
"default": "fixed"
},
"out-speed": {
type: "number",
"default": 1000
},
"out-easing": {
type: "string",
"default": "ease"
},
"out-delay": {
type: "number",
"default": 0
},
"out-fade": {
type: "boolean",
"default": false
},
"out-offset": {
oneOf: [{
type: "string",
"enum": ["outside"]
}, {
type: "number",
minimum: 10
}],
"default": "outside"
},
"out-at": {
type: "number",
"default": 0
},
"video-autoplay": {
type: "boolean",
"default": false
},
"video-fullsize": {
type: "boolean",
"default": false
}
};
this.options = new y.Options(F);
this.options.fromJSON(H || {});
this.o = this.options.get.jBind(this.options);
this.set = this.options.set.jBind(this.options);
this.type = "html";
this.video = null;
this.html = {
text: false,
fontSize: 20,
paddingTop: null,
paddingLeft: null,
paddingRight: null,
paddingBottom: null,
img: {
img: null,
type: "a-img",
size: {
width: 0,
height: 0
},
proportion: null,
load: "notLoaded"
}
}, this.img = {
proportion: null,
onlyImg: false,
type: "main",
main: {
shown: false,
src: null,
srcset: null,
img: null,
size: {
width: 0,
height: 0
},
inDoc: true,
documentIndex: null,
load: "notLoaded"
},
fullscreen: {
shown: false,
src: null,
srcset: null,
img: null,
size: {
width: 0,
height: 0
},
inDoc: false,
load: "notLoaded"
}
};
this.isAnimationBlock = false;
this.isFullscreen = false;
this.title = null;
this.text = null;
this.useMap = null;
this.styleOpacity = null;
this.rwd = false;
this.dataWidth = null;
this.dataHeight = null;
this.timeout = null;
this.effect = null;
this.kenburns = null;
this.ready = false;
this.timerIsEnded = false;
this.isOutEffect = false;
this.autoplay = false;
this.isMoving = false;
this.isActive = false;
g.call(this, this.node, F)
};
y.extend(E.prototype, {
done: function () {
this.setOptions();
if ("video" !== this.type) {
if ("img" === this.type) {
if (this.o("preload")) {
this.load();
if ("img" === this.type) {
var F = "fullscreen",
G;
if (this.img[F].src && "notLoaded" === this.img[F].load) {
this.img[F].load = "loading";
this.jCallEvent("loading", {
imageType: F
});
if (!this.img[F].img) {
this.img[F].img = y.$new("img");
this.img[F].img.setAttribute("src", this.img[F].src);
if (this.img[F].srcset) {
this.img[F].img.setAttribute("srcset", this.img[F].srcset)
}
}
G = this.img[F].img.getAttribute("src");
G = this.img[F].srcset ? [G, this.img[F].img.getAttribute("srcset")] : G;
this.imgLoad({
img: G,
type: F
})
}
}
} else {}
} else {
if (!this.html.img.img) {
this.blockReady()
}
}
}
},
setOptions: function () {
if ("fixed" !== this.o("out-move")) {
this.hide()
}
if ("img" !== this.type) {
this.set("kenburns", false)
}
l(["in-", "out-"]).jEach(l(function (F) {
if ("fade" === this.o(F + "move") && !this.o(F + "fade")) {
this.set(F + "move", "fixed")
}
if (this.o(F + "fade") && "fixed" === this.o(F + "move")) {
this.set(F + "move", "fade")
}
}).jBind(this));
if (this.o("kenburns")) {
this.set("kenburns-speed", this.o("kenburns-speed") + this.o("out-speed") + 1000)
}
if (this.o("standard-caption")) {
this.isAnimationBlock = true;
this.node.setAttribute("data-mss-animation-block", "");
this.set("in-move", "fade");
this.set("in-fade", "true");
this.set("out-move", "fade");
this.set("out-fade", "true")
}
},
hide: function () {
this.node.jSetCssProp("visibility", "hidden")
},
show: function () {
if (this.ready) {
this.node.jSetCssProp("visibility", "visible")
}
},
load: function () {
if ("img" !== this.type) {
return
}
var H, G = this.isFullscreen ? "fullscreen" : "main",
F = (G === "fullscreen" ? "main" : "fullscreen");
if (this.isFullscreen && !this.img[G].src) {
G = "main"
}
if (!this.img[G].img) {
this.img[G].img = y.$new("img")
}
if (this.img.onlyImg && !this.img[G].inDoc) {
this.img[G].img.jAddClass("mss-super-opacity-replace");
this.container.insertBefore(this.img[G].img, this.img[F].img);
this.img[G].inDoc = true
}
if (this.img[G].load === "notLoaded") {
if (this.img[G].src) {
this.img[G].img.setAttribute("src", this.img[G].src);
if (this.img[G].srcset) {
this.img[G].img.setAttribute("srcset", this.img[G].srcset)
}
}
this.img[G].load = "loading";
this.jCallEvent("loading", {
imageType: G
});
H = this.img[G].img.getAttribute("src");
H = this.img[G].srcset ? [H, this.img[G].img.getAttribute("srcset")] : H;
this.imgLoad({
img: H,
type: G
})
}
},
imgLoad: function (G) {
var F = "a-img" === G.type ? "html" : "img";
new y.ImageLoader(G.img, {
onload: l(function (H, I) {
if ("a-img" === H) {
this.html.img.load = "loaded";
this.html.img.size = I.size;
this.html.img.proportion = this.html.img.size.height / this.html.img.size.width
} else {
this.img[H].load = "loaded";
this.img[H].size = I.size;
if ("main" === H) {
this.img.proportion = this.img[H].size.height / this.img[H].size.width
} else {}
this.jCallEvent("addImgToCacheBox", {
img: I.img
})
}
}).jBind(this, G.type),
onerror: l(function (I, J) {
if ("a-img" !== I) {
var H = y.$new("div", {
"class": "mss-error-block"
});
H.innerHTML = this.o("errorBlock");
this.img[I].load = "error";
if (this.img[I].inDoc) {
this.container.insertBefore(H, this.img[I].img);
this.img[I].img.jRemove()
}
this.img[I].img = H;
if (I === "fullscreen") {
this.img.fullscreen.src = null;
this.img.fullscreen.srcset = null
}
} else {
this.html.img.load = "error"
}
this.jCallEvent("onImgError", {
itemType: I
})
}).jBind(this, G.type),
oncomplete: l(function (H, I) {
if (H !== "a-img") {
this.onLoadImg(H)
}
this.blockReady()
}).jBind(this, G.type)
})
},
onLoadImg: function (F) {
if (F === "main") {} else {
if (this.isFullscreen) {
if (this.img.fullscreen.load === "loaded") {
if (this.img.main.inDoc) {
this.img.main.img.jRemove();
this.img.main.inDoc = false;
this.img.main.img.shown = false;
this.img.main.img.jRemoveClass("mss-super-opacity-replace")
}
if (!this.isActive) {
this.img.fullscreen.shown = true;
this.img.fullscreen.img.jRemoveClass("mss-super-opacity-replace")
}
} else {
if (this.img.fullscreen.load === "error") {
if (this.isActive) {
this.recoveryKenburns()
}
if (this.img.fullscreen.inDoc) {
this.img.fullscreen.img.jRemove();
this.img.fullscreen.inDoc = false;
this.img.fullscreen.img.shown = false;
this.img.fullscreen.img.jRemoveClass("mss-super-opacity-replace")
}
if (this.isActive) {
this.load();
this.createEffetWithMainImage()
}
}
}
}
}
if (!this.isMoving) {
this.startKenburns()
}
this.jCallEvent("onImgLoad", {
itemType: F
})
},
parse: function () {
var H, F, G = this.node;
if (null !== G.getAttribute("data-mss-animation-block")) {
this.isAnimationBlock = true
}
this.rwd = (G.getAttribute("data-rwd")) === "true" ? true : false;
this.dataWidth = !isNaN(parseInt(G.getAttribute("data-width"))) ? parseInt(G.getAttribute("data-width")) : null;
this.dataHeight = !isNaN(parseInt(G.getAttribute("data-height"))) ? parseInt(G.getAttribute("data-height")) : null;
H = parseFloat(G.style.opacity);
this.styleOpacity = (!isNaN(H) && H > 0) ? H : null;
if (null !== G.getAttribute("data-mss-constr-bg")) {
G = l(G.firstChild)
}
if ("IMG" === G.tagName) {
this.type = "img";
this.img.main.img = G;
if (!G.getAttribute("src")) {
F = y.findSrcset(G.getAttribute("data-image"));
this.img.main.src = F.src;
this.img.main.srcset = F.srcset
}
this.img.fullscreen.src = G.getAttribute("data-fullscreen-image");
if (this.img.fullscreen.src) {
F = y.findSrcset(this.img.fullscreen.src);
this.img.fullscreen.src = F.src;
if (F.srcset) {
this.img.fullscreen.srcset = F.srcset
}
}
this.img.main.img.jAddClass("mss-super-opacity-replace");
if (this.o("caption")) {
this.title = G.getAttribute("title");
this.text = G.getAttribute("data-caption")
}
this.useMap = G.getAttribute("usemap")
} else {
if ("IFRAME" === G.tagName || "VIDEO" === G.tagName.toUpperCase()) {
this.type = "video";
this.parseVideo()
} else {
G.jAddClass("mss-html-block");
this.html.text = true;
if ("A" === G.tagName) {
y.$A(G.childNodes).jEach(l(function (I) {
if ("element" === y.jTypeOf(I) && "IMG" === I.tagName) {
this.html.img.img = I;
this.html.text = false
}
}).jBind(this));
if (this.html.img.img) {
this.imgLoad({
img: this.html.img.img.getAttribute("src"),
type: this.html.img.type
})
}
}
}
}
this.hide()
},
parseVideo: function () {
var F, G = this.node;
if (/(youtube|youtube-nocookie).com/.test(G.getAttribute("src"))) {
F = "youtube"
} else {
if (/vimeo.com/.test(G.getAttribute("src"))) {
F = "vimeo"
} else {
F = "video"
}
}
if (this.o("video-fullsize")) {
G.jSetCss({
width: "100%",
height: "100%"
})
}
this.video = new c(G, F, this.container, {
autoPlay: this.o("video-autoplay"),
rel: this.o("video-rel"),
loop: this.o("video-loop"),
controls: this.o("video-controls")
});
this.video.calcProportion(this.dataWidth, this.dataHeight);
this.video.bindEvent("ready", l(function (H) {
this.blockReady()
}).jBind(this));
this.video.bindEvent("play", l(function (H) {
this.jCallEvent("stateChange", {
typeEvent: "play",
whoseEvent: H.whoseEvent
})
}).jBind(this));
this.video.bindEvent("pause", l(function (H) {
this.jCallEvent("stateChange", {
typeEvent: "pause",
whoseEvent: H.whoseEvent
})
}).jBind(this));
this.video.bindEvent("finish", l(function (H) {
this.jCallEvent("stateChange", {
typeEvent: "finish",
whoseEvent: H.whoseEvent
})
}).jBind(this));
this.video.init()
},
checkCaptionBlock: function () {
var G, F;
if (this.o("caption")) {
if (this.title || this.text) {
F = function (I) {
var H = /\[a([^\]]+)\](.*?)\[\/a\]/ig;
return I.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(H, "<a $1>$2</a>")
};
G = y.$new("span");
if (this.text) {
if (y.jTypeOf(this.text) == "element") {
if (this.text.tagName.toLowerCase() == "span") {
G.changeContent(F(this.text.innerHTML));
this.text.parentNode && l(this.text.parentNode).replaceChild(G, this.text)
}
} else {
G.changeContent(F(this.text))
}
}
this.text = l(G);
if (this.title) {
l(this.text).append(y.$new("b").jAddClass("mss-caption-title").changeContent(this.title), "top")
}
this.jCallEvent("createNewBlock", {
node: y.$new("div", {
"class": "mss-caption"
}).append(l(this.text))
})
}
}
},
touchStart: function () {
if ("fixed" !== this.o("out-move")) {
clearTimeout(this.timeout);
this.timeout = null;
this.isOutEffect = false;
this.timerIsEnded = false;
this.effect && this.effect.stop()
}
if ("fixed" !== this.o("in-move")) {
this.hide()
}
},
extraHide: function () {
if (this.isOutEffect && "fixed" !== this.o("out-move")) {
this.hide()
}
},
setAutoplay: function (F) {
this.autoplay = F;
if (this.kenburns && this.kenburns.moving) {
if (F) {
this.kenburns.play()
} else {
this.kenburns.pause()
}
}
if (!F) {
clearTimeout(this.timeout);
this.timeout = null
}
this.isOutEffect = false;
this.timerIsEnded = false
},
play: function (I, K, F, H) {
var G = ("-" + this.o(I + "Move").replace(/\s+/, "-")).jCamelize(),
J = this.o(I + "-move");
!K && (K = y.$F);
!F && (F = y.$F);
!H && (H = {});
if ("out" === I && this.timeout && !this.isOutEffect) {
this.isOutEffect = true;
J = "fixed"
}
clearTimeout(this.timeout);
this.timeout = null;
if ("fixed" !== J) {
if ("in" === I) {
this.effect && this.effect.stop()
}
if ("in" === I || "out" === I && !this.isOutEffect && (!this.effect || ("start" !== this.effect.phase && "progress" !== this.effect.phase))) {
this.effect = new y.Effects.CaptionEffects[G](this.node, I, y.extend(this.options.getJSON(), [{
insideOpacity: this.styleOpacity
}, H]));
this.effect.start({
start: l(function (L) {
this.startEffect(L), K(L)
}).jBind(this),
end: l(function (L) {
this.effect = null;
this.endEffect(L);
F(L)
}).jBind(this)
})
} else {
this.effect && this.effect.stop();
this.endEffect(I);
F(I)
}
} else {
K(I);
F(I)
}
},
startEffect: function (F) {
this.isMoving = true;
if ("out" === F) {
this.isOutEffect = true;
if (this.video) {
this.video.pause()
}
} else {
this.isActive = true;
this.isOutEffect = false;
this.timerIsEnded = false;
if (!this.isFullscreen && this.img.main.img) {
this.img.main.img.jRemoveClass("mss-super-opacity-replace")
}
this.show();
this.createEffetWithMainImage();
if ("fixed" !== this.o("out-move") && this.autoplay && !this.o("standard-caption")) {
this.timeout = setTimeout(l(function () {
this.timeout = null;
this.timerIsEnded = true;
!this.effect && this.play("out", null, null, {
outDelay: 0
})
}).jBind(this), this.o("out-at"))
}
}
},
endEffect: function (G, F) {
this.isMoving = false;
if ("in" === G) {
if (this.video) {
this.video.play()
}
if (this.img.onlyImg && this.img[this.img.type].load === "loaded") {
this.startKenburns()
}
if (this.timerIsEnded) {
this.timerIsEnded = false;
this.play("out", null, null, {
outDelay: 0
})
}
} else {
this.isActive = false;
this.hide();
this.recoveryKenburns()
}
},
stopTimer: function () {
var F = false;
if (this.video && this.o("video-autoplay")) {} else {
if ("img" === this.type) {
if (this.isFullscreen) {
if (this.img.fullscreen.img) {
if ("loaded" !== this.img.fullscreen.load) {
F = true
}
} else {
if ("loaded" !== this.img.main.load) {
F = true
}
}
} else {
if ("loaded" !== this.img.main.load && "error" !== this.img.main.load) {
F = true
}
}
}
}
return F
},
createEffetWithMainImage: function () {
var I = null,
H = null,
K = null,
J = null,
F = this.o("kenburns"),
G = false;
if (!this.img.onlyImg || this.kenburns) {
return
}
if (this.isFullscreen) {
if (this.img.fullscreen.inDoc) {
H = this.img.fullscreen
} else {
if (this.img.main.inDoc) {
H = this.img.main
}
}
} else {
if (this.img.fullscreen.inDoc && this.img.fullscreen.load === "loaded" && !l(["loaded", "error"]).contains(this.img.main.load)) {
H = this.img.fullscreen
} else {
if (this.img.main.inDoc && this.img.main.load !== "error") {
H = this.img.main
}
}
}
if (I || H) {
G = !H.shown;
if (this.o("preload") && H === this.img.main) {
G = false;
H.img.jRemoveClass("mss-super-opacity-replace")
}
if (I && I.img) {
K = I.img
}
if (H && H.img) {
J = H.img
}
if (H.load === "error") {
F = false
}
if (F || G) {
this.setKenburns([K, J], F, G)
}
}
},
startKenburns: function () {
if (this.kenburns && !this.kenburns.moving) {
this.kenburns.start(this.autoplay);
this.img[this.img.type].shown = true
}
},
recoveryKenburns: function () {
if (this.kenburns) {
this.kenburns.recoverySize();
this.kenburns = null
}
},
setKenburns: function (G, F, H) {
if (!this.kenburns && (F || H)) {
G[1].jRemoveClass("mss-super-opacity-replace");
this.kenburns = new y.Effects.KAR(G[0], G[1], {
kenburns: this.o("kenburns") ? F : false,
replace: H,
direction: this.o("kenburns-direction"),
kenburnsSpeed: this.o("kenburns-speed")
})
}
},
showCaption: function () {
if (this.o("standard-caption")) {
if (this.effect) {
this.effect.stop()
}
this.play("in")
}
},
isLoading: function () {
var F = false;
if (this.img.onlyImg) {
if (this.isFullscreen) {
if (this.img.fullscreen.img) {
if (!l(["loaded", "error"]).contains(this.img.fullscreen.load)) {
F = true
}
} else {
if (!l(["loaded", "error"]).contains(this.img.main.load)) {
F = true
}
}
} else {
if (!l(["loaded", "error"]).contains(this.img.main.load)) {
F = true
}
}
}
return F
},
beforeEnterFullScreen: function (F, G) {
this.isFullscreen = true;
this.recoveryKenburns();
if (this.img.onlyImg) {
this.quickReplacement();
if (this.img.fullscreen.src) {
if (this.img.main.inDoc) {
this.img.main.img.jAddClass("mss-super-opacity-replace")
}
this.img.type = "fullscreen"
}
if (F || this.o("preload")) {
this.load();
if (F) {
this.createEffetWithMainImage()
}
}
}
if (G && this.type === "video") {
this.video.node.jAddClass("mss-fullscreen-video")
}
},
afterEnterFullScreen: function (F) {
if (F) {
this.showCaption();
if (this.img.onlyImg && this.img[this.img.type].load === "loaded") {
this.startKenburns()
}
}
},
beforeExitFullScreen: function (F, G) {
this.isFullscreen = false;
this.recoveryKenburns();
if (this.img.onlyImg) {
this.quickReplacement();
if (this.img.type === "fullscreen") {
if (this.img.fullscreen.load !== "loaded") {
this.img.type = "main"
}
}
if (F) {
this.load();
this.createEffetWithMainImage()
}
}
if (G && this.type === "video") {
this.video.node.jRemoveClass("mss-fullscreen-video")
}
},
afterExitFullScreen: function (F) {
if (F) {
this.showCaption();
if (this.img.type === "fullscreen") {
if (this.img.fullscreen.load !== "loaded") {
if (F) {
l(this.img.fullscreen.img).jAddClass("mss-super-opacity-replace")
}
}
}
if (this.img.onlyImg && this.img[this.img.type].load === "loaded") {
this.startKenburns()
}
}
},
quickReplacement: function () {
var G, F;
if (this.type !== "img") {
return
}
if (this.img.main.img && l(["loaded", "error"]).contains(this.img.main.load) && this.img.fullscreen.img && l(["loaded", "error"]).contains(this.img.fullscreen.load)) {
if (this.isFullscreen) {
if (this.img.type === "main") {
G = "main";
F = "fullscreen"
}
} else {
if (this.img.type === "fullscreen") {
G = "fullscreen";
F = "main"
}
}
}
if (G && F) {
l(this.img[F].img).jRemoveClass("mss-super-opacity-replace");
this.container.insertBefore(this.img[F].img, this.img[G].img);
this.img[F].inDoc = true;
this.img[F].shown = true;
this.img.type = F;
l(this.img[G].img).jRemove();
this.img[G].inDoc = false;
this.mapExpand()
}
},
mapExpand: function () {
var L = this.img.main.size,
G = this.img.fullscreen.size,
F, M, K, J, H, I;
if (!this.img.main.img || !L || !G) {
return
}
M = (this.img[!this.isFullscreen ? "fullscreen" : "main"].img.getAttribute("usemap") || "").replace("#", "");
F = /-expanded/.test(M);
if (this.isFullscreen && F || !this.isFullscreen && !F) {
return
}
if (this.isFullscreen) {
if (!this.img.fullscreen.img) {
return
}
if (M && (K = document.getElementsByName(M)) && K.length) {
J = G.width / L.width;
H = G.height / L.height;
this.useMap = $mjs(K[0].cloneNode(true));
this.useMap.setAttribute("id", M + "-expanded");
this.useMap.setAttribute("name", M + "-expanded");
I = y.$A($mjs(K[0]).byTag("area"));
y.$A(this.useMap.byTag("area")).jEach(function (O, N) {
O.setAttribute("shape", I[N].shape);
O.setAttribute("coords", y.$A(I[N].coords.split(",")).map(function (P) {
return (P % 2) ? P * H : P * J
}).join(","))
});
this.useMap.jAppendTo(this.container.parentNode);
this.img.fullscreen.img.setAttribute("useMap", "#" + M + "-expanded")
}
} else {
this.useMap.jRemove();
this.useMap = null;
this.img.fullscreen.img.setAttribute("useMap", (this.img.fullscreen.img.getAttribute("usemap").replace("-expanded", "")))
}
},
blockReady: function () {
if (!this.ready) {
this.jCallEvent("blockReady")
}
},
jGetStyles: function () {
var F;
if ("html" === this.type) {
if (this.html.text) {
F = this.node.jGetCss("font-size");
if (F && /px/.test(F)) {
this.html.fontSize = parseInt(F)
}
l(["top", "left", "right", "bottom"]).jEach(l(function (G) {
F = this.node.jGetCss("padding-" + G);
if (F && /px/.test(F)) {
this.html["padding" + (("-" + G).jCamelize())] = parseInt(F)
}
}).jBind(this))
}
} else {
if ("video" === this.type) {}
}
},
onResize: function (F) {
var G;
if (this.rwd) {
if ("img" === this.type) {
if (!this.img.onlyImg) {
G = (F.width / this.o("baseWidth")) * this.dataWidth;
this.node.jSetCss({
width: G,
height: G * this.img.proportion
})
}
} else {
if ("html" === this.type) {
if (this.html.text) {
G = F.width / this.o("baseWidth");
this.node.jSetCssProp("font-size", G * this.html.fontSize);
l(["top", "left", "right", "bottom"]).jEach(l(function (H) {
if (this.html["padding" + (("-" + H).jCamelize())]) {
this.node.jSetCssProp("padding-" + H, G * this.html["padding" + (("-" + H).jCamelize())])
}
}).jBind(this))
} else {
if (this.html.img.img) {
G = (F.width / this.o("baseWidth")) * this.dataWidth;
l(this.html.img.img).jSetCss({
width: G,
height: G * this.html.img.proportion
})
}
}
} else {
if (this.aImg) {
G = (F.width / this.o("baseWidth")) * this.dataWidth;
this.node.jSetCss({
width: G,
height: G * this.img.proportion
})
} else {
if (!this.o("video-fullsize")) {
G = (F.width / this.o("baseWidth")) * this.dataWidth;
this.node.jSetCss({
width: G,
height: this.video.proportion * G
})
}
}
}
}
}
},
dispose: function () {
if (this.kenburns) {
this.kenburns.stop();
this.kenburns.recoverySize()
}
this.ready = false;
this.effect && this.effect.stop();
this.node.jSetCss({
visibility: "",
"transform-origin": "",
transition: ""
});
if ("html" === this.type) {
if (this.o("standard-caption")) {
this.node.jRemove()
}
} else {
if ("img" === this.type) {
if (this.img.main.src) {
this.img.main.img.removeAttribute("src")
}
if ("fullscreen" === this.img.type) {
this.container.insertBefore(this.img.main.img, this.img.fullscreen.img);
this.img.fullscreen.img.jRemove()
}
} else {
if ("video" === this.type) {
if (/mss-slideshow/.test(this.video.id)) {
this.node.removeAttribute("id")
}
this.video.dispose()
}
}
}
}
});
y.extend(E.prototype, y.customEvents);
return E
})();
var c = (function () {
var F = null,
I = function (J) {
if (J) {
J = J.replace(/^(https?:)?(.+)/, "https:\\$2")
}
return J
},
H = function (K) {
var J = /(?:(youtube|youtube-nocookie)\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i;
return J.exec(K)[2]
},
G = function (J) {
var K, L = [];
for (K in J) {
if (J.hasOwnProperty(K)) {
L.push(encodeURIComponent(K) + "=" + encodeURIComponent(J[K]))
}
}
return L.join("&")
},
E = function (M, L, J, K) {
y.$uuid(this);
this.type = L;
this.node = M;
this.container = J;
this.options = {
autoPlay: true
};
this.o = this.options;
y.extend(this.o, K || {});
this.src = null;
this.id = null;
this.videoId = null;
this.player = null;
this.state = "unstarted";
this.ready = false;
this.apiReady = false;
this.proportion = null;
this.myEvent = false;
if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "")
}
this.youtubeParams = {
enablejsapi: 1,
origin: document.location.origin
};
this.src = this.node.getAttribute("src");
if (F === null) {
if (/youtube-nocookie/.test(this.src)) {
F = "-nocookie"
} else {
F = ""
}
}
this.id = this.node.getAttribute("id") || "mss-slideshow-" + this.type + "-" + Math.floor(Math.random() * y.now());
this.vimeoParams = {
api: 1,
player_id: this.id
}
};
y.extend(E.prototype, {
calcProportion: function (J, K) {
this.proportion = K / J || ("youtube" === this.type ? (315 / 560) : ("vimeo" === this.type ? (281 / 500) : 0.625))
},
init: function () {
var J;
if ("youtube" === this.type) {
this.initPlayer()
} else {
this.node.setAttribute("id", this.id);
this.container && this.container.append(this.node);
if ("vimeo" === this.type) {
this.src = this.src.replace(/https*:/, "https:");
this.src = this.src.split("?")[0] + "?" + G(this.vimeoParams);
this.node.setAttribute("src", this.src);
this.node.removeAttribute("allowfullscreen");
this.addEventsVimeo()
} else {
if (this.src) {
this.node.setAttribute("src", this.src)
} else {
this.node.setAttribute("src", "");
this.node.removeAttribute("src")
}
this.addEventsVideo()
}
}
},
addEventsVideo: function () {
this.node.jAddEvent("ended play pause loadeddata loadstart timeupdate", l(function (J) {
switch (J.type) {
case "ended":
this.playerStateChange("finish");
break;
case "play":
this.playerStateChange("play");
break;
case "pause":
this.playerStateChange("pause");
break;
case "timeupdate":
break;
case "loadeddata":
break;
case "loadstart":
this.onPlayerReady();
break
}
}).jBind(this))
},
addEventsVimeo: function () {
window.jAddEvent("message", l(function (K) {
if ("vimeo" === this.type) {
try {
var J = JSON.parse(K.data);
switch (J.event) {
case "ready":
this.vimeoPost("addEventListener", "pause");
this.vimeoPost("addEventListener", "play");
this.vimeoPost("addEventListener", "finish");
this.onPlayerReady();
break;
case "play":
this.playerStateChange("play");
break;
case "pause":
this.playerStateChange("pause");
break;
case "finish":
this.playerStateChange("finish");
break
}
} catch (K) {
if (K.event === "ready") {
this.onPlayerReady()
}
}
}
}).jBind(this))
},
vimeoPost: function (M, L) {
var J, K = {
method: M
};
if ("vimeo" === this.type) {
L && (K.value = L);
J = JSON.stringify(K);
this.node.contentWindow.postMessage(K, I(this.src.split("?")[0]))
}
},
initPlayer: function () {
if (!this.player && this.apiReady && window.YT) {
this.node.setAttribute("id", this.id);
this.node.removeAttribute("allowfullscreen");
this.videoId = H(this.src);
this.src = "https://www.youtube" + F + ".com/embed/" + this.videoId + "?" + G(this.youtubeParams);
this.node.setAttribute("src", this.src);
this.container && this.container.append(this.node);
this.player = new window.YT.Player(this.id, {
videoId: this.videoId,
events: {
onReady: this.onPlayerReady.jBind(this),
onStateChange: this.onPlayerStateChange.jBind(this)
}
})
}
},
playerStateChange: function (J) {
this.state = J;
this.jCallEvent(J, {
typeVideo: this.type,
whoseEvent: this.myEvent
});
this.myEvent = false
},
onPlayerStateChange: function (J) {
switch (J.target.getPlayerState()) {
case 0:
this.playerStateChange("finish");
break;
case 1:
this.playerStateChange("play");
break;
case 2:
this.playerStateChange("pause");
break;
case 3:
break;
case 5:
break
}
},
onPlayerReady: function () {
this.ready = true;
this.playerStateChange("ready")
},
youtubeApiReady: function () {
if ("youtube" === this.type) {
this.apiReady = true;
this.initPlayer()
}
},
play: function () {
if (this.o.autoPlay) {
if ("youtube" === this.type) {
if (this.player && this.ready && l(["unstarted", "pause", "finish", "ready"]).contains(this.state)) {
if (this.player.playVideo) {
this.myEvent = true;
this.player.playVideo()
}
}
} else {
if ("vimeo" === this.type && this.ready) {
this.myEvent = true;
this.vimeoPost("play")
} else {
if ("video" === this.type) {
if (this.node.paused) {
this.myEvent = true;
this.node.play()
}
}
}
}
}
},
pause: function () {
if ("youtube" === this.type) {
if (this.player && this.ready) {
if (this.player.pauseVideo) {
this.myEvent = true;
this.player.pauseVideo()
}
}
} else {
if ("vimeo" === this.type && this.ready) {
this.myEvent = true;
this.vimeoPost("pause")
} else {
if ("video" === this.type) {
if (!this.node.paused) {
this.myEvent = true;
this.node.pause()
}
}
}
}
},
dispose: function () {
var J;
this.src && this.node.setAttribute("src", this.src.split("?")[0]);
if ("video" === this.type) {
this.node.jRemoveEvent("ended play pause loadeddata loadstart timeupdate")
} else {
if ("vimeo" === this.type) {
window.jRemoveEvent("message")
} else {
if ("youtube" === this.type) {}
}
}
this.node = null
}
});
y.extend(E.prototype, y.customEvents);
return E
})();
var m = (function () {
var E = function (I, G, F, H) {
y.$uuid(this);
this.originNode = l(I);
this.container = F;
this.insideOptions = {
preload: true,
selectors: false,
selectorsStyle: "bullets",
loader: true,
caption: true,
captionEffect: "fade",
baseWidth: 1000,
kenburns: false,
bulletsTooltip: true
};
this.io = this.insideOptions;
y.extend(this.io, H.insideOptions || {});
this.defaultOptions = {
effect: {
type: "string",
"enum": ["random", "slide", "fade", "fade-up", "fade-down", "dissolve", "scroll", "cube", "bars3d", "slide-in", "slide-out", "flip", "blinds3d", "slide-change", "diffusion", "blocks"],
"default": "slide"
},
"effect-speed": {
type: "number",
minimum: 1,
"default": 600
},
"effect-easing": {
type: "string",
"default": "ease"
},
"slide-duration": {
type: "number",
minimum: 1,
"default": 3000
}
};
this.options = new y.Options(this.defaultOptions);
this.options.fromJSON(H.options || {});
this.o = this.options.get.jBind(this.options);
this.set = this.options.set.jBind(this.options);
this.setOptions();
this.index = G;
this.progress = null;
this.onlyImg = false;
this.ready = false;
this.callback = null;
this.start = false;
this.fullscreenFlag = false;
this.slide = y.$new("div", {
"class": "mss-slide"
}).jAddClass("mss-slide-" + this.index);
this.selector = {
load: "notLoaded",
node: null,
previewNode: null,
insideNode: null
};
if (this.io.loader) {
this.progress = y.$new("div", {
"class": "mss-loader"
}, {
position: "absolute",
"z-index": "10000"
});
this.progress.jAppendTo(this.slide).show();
if (0 === this.index) {
this.progress.show()
} else {
this.progress.hide()
}
}
this.state = "hidden";
this.animationBlocks = l([]);
this.countLoadedBlocks = 0;
this.parse(I);
this.hide()
};
y.extend(E.prototype, {
setOptions: function () {
g.call(this, this.originNode, this.defaultOptions)
},
show: function (F) {
if (y.browser.ieMode && y.browser.ieMode > 8 || !y.browser.ieMode) {
this.slide && this.slide.jRemoveClass("mss-super-opacity")
}
if (this.ready) {
this.originNode.jSetCssProp("visibility", "visible");
if (this.onlyImg && this.onlyImg.img.fullscreen.img) {
this.onlyImg.img.fullscreen.img.jSetCssProp("visibility", "visible")
}
if (F) {
this.animationBlocks.jEach(l(function (G) {
if ("fixed" === G.o("in-move")) {
G.show()
}
}).jBind(this))
}
}
},
hide: function (F) {
if (y.browser.ieMode && y.browser.ieMode > 8 || !y.browser.ieMode) {
this.slide && this.slide.jAddClass("mss-super-opacity")
}
this.originNode.jSetCssProp("visibility", "hidden");
if (this.onlyImg && this.onlyImg.img.fullscreen.img) {
this.onlyImg.img.fullscreen.img.jSetCssProp("visibility", "hidden")
}
if (F) {
this.animationBlocks.jEach(l(function (G) {
G.hide()
}).jBind(this))
}
},
checkImg: function () {
var G = false,
F = false;
this.animationBlocks.jEach(l(function (I, H) {
if (!G && "img" === I.type && !I.isAnimationBlock) {
G = I
} else {
if (!I.isAnimationBlock) {
F = true
}
if ("img" === I.type) {
I.set("kenburns", false)
}
}
}).jBind(this));
this.onlyImg = (G && !F) ? G : false;
this.onlyImg && (this.onlyImg.img.onlyImg = true);
if (this.onlyImg) {
if (this.originNode !== this.onlyImg.img.main.img) {
this.originNode.jAddClass("mss-centering-img")
} else {
this.slide.jAddClass("mss-centering-img")
}
}
},
parse: function (G) {
var F = {
preload: this.io.preload,
kenburns: this.io.kenburns,
baseWidth: this.io.baseWidth,
"kenburns-speed": this.o("slide-duration"),
caption: this.io.caption,
errorBlock: this.io.errorBlock
};
this.container.append(this.slide);
if (G.childNodes.length > 0 && "VIDEO" !== G.tagName) {
y.$A(G.childNodes).jEach(l(function (H) {
if ("element" === y.jTypeOf(H) && "!" !== H.tagName) {
if (null === H.getAttribute("data-mss-thumbnail")) {
this.initAnimationBlock(H, G, F)
} else {
this.selector.node = H;
this.selector.previewNode = H;
this.selector.insideNode = true
}
}
}).jBind(this));
G.jAddClass("mss-content")
} else {
if ("element" === y.jTypeOf(G)) {
this.initAnimationBlock(G, this.slide, F)
}
}
this.getSelector(G);
this.slide.append(G);
this.animationBlocks.jEach(l(function (H) {
H.done()
}).jBind(this));
this.checkImg()
},
jGetStyles: function () {
this.animationBlocks.jEach(l(function (F) {
F.jGetStyles()
}).jBind(this))
},
initAnimationBlock: function (H, F, G) {
var I = new D(H, F, G || {});
I.bindEvent("createNewBlock", l(function (J) {
this.slide.append(J.node);
this.initAnimationBlock(J.node, this.slide, y.extend({
"standard-caption": true
}, G || {}))
}).jBind(this));
I.bindEvent("loading", l(function (J) {
if ("fullscreen" === J.imageType && "active" === this.state) {
this.progress && this.progress.show()
}
}).jBind(this));
I.bindEvent("onImgLoad", l(function (J) {
this.progress && this.progress.hide()
}).jBind(this));
I.bindEvent("blockReady", l(function (J) {
this.countLoadedBlocks += 1;
if (this.countLoadedBlocks === this.animationBlocks.length) {
this.ready = true;
if (this.start) {
this.onResize()
}
if ("hidden" !== this.state) {
this.show()
}
this.animationBlocks.jEach(l(function (K) {
K.ready = true;
if ("hidden" !== this.state) {
if ("active" === this.state) {
if ("fixed" !== K.o("in-move")) {
K.show()
}
} else {
if ("fixed" === K.o("in-move")) {
K.show()
}
}
}
}).jBind(this));
this.progress && this.progress.hide();
if (this.callback) {
this.callback();
this.callback = null
}
}
}).jBind(this));
I.bindEvent("addImgToCacheBox", l(function (J) {
this.addImgToCacheBox(J.img)
}).jBind(this));
I.bindEvent("onImgError", l(function (J) {}).jBind(this));
I.bindEvent("stateChange", l(function (J) {
this.checkPlayPause(J.typeEvent, J.whoseEvent);
this.jCallEvent("videoStateChange", {
state: J.typeEvent,
index: this.index
})
}).jBind(this));
this.animationBlocks.push(I);
I.parse();
if (I.o("video-fullsize") && "video" === I.type) {
this.originNode.jSetCss({
width: "100%",
height: "100%"
})
}
I.checkCaptionBlock()
},
addSelectors: function () {
var F, G;
if (this.io.selectors) {
this.selector.load = "loading";
F = this.io.selectorsStyle;
G = this.selector[this.io.bulletsTooltip ? "previewNode" : "node"];
if ("thumbnails" === F || this.io.bulletsTooltip) {
if ("IMG" === G.tagName) {
new y.ImageLoader(G, {
onload: l(function (H) {
this.selector.load = "loaded";
this.addImgToCacheBox(H.img)
}).jBind(this),
oncomplete: l(function (H) {
this.jCallEvent("onSelectorLoad")
}).jBind(this)
})
} else {
this.selector.load = "loaded"
}
}
if ("bullets" === F) {
this.selector.node = y.$new("div", {
"class": "mss-selector-" + this.index
});
if (this.io.bulletsTooltip) {
this.jCallEvent("bulletTooltipJump", {
index: this.index
})
}
}
l(this.selector.node).jStore("slideshow:item", {
index: this.index
});
this.jCallEvent("addSelector", {
selector: this.selector.node,
selectorType: F,
index: this.index,
previewNode: this.selector.previewNode
})
}
},
loadSlide: function (F) {
if (!this.ready) {
this.callback = F;
this.prepareItem()
} else {
F && F()
}
},
prepareItem: function () {
if (this.onlyImg) {
this.onlyImg.quickReplacement()
}
this.animationBlocks.jEach(l(function (G, F) {
G.load()
}).jBind(this))
},
activate: function () {
this.prepareItem()
},
getSelector: function (I) {
var G, H, K, F, J;
if ("thumbnails" === this.io.selectorsStyle || this.io.bulletsTooltip) {
if (!this.selector.node) {
F = l(function (N) {
var L = null,
M = y.findSrcset(N.getAttribute("data-thumb-image"));
if (M.src) {
L = y.$new("img", {
src: M.src
});
if (M.srcset) {
L.setAttribute("srcset", M.srcset)
}
}
return L
}).jBind(this);
H = l(function (L) {
var M, P, O, N;
M = y.findSrcset(L.img.getAttribute("data-thumb-image"));
if (M.src) {
O = M.src;
N = M.srcset
} else {
if (L.src) {
O = L.src;
N = L.srcset
} else {
O = L.img.getAttribute("src");
M = L.img.getAttribute("srcset");
if (M) {
N = M
}
}
}
P = y.$new("img", {
src: O
});
N && P.setAttribute("srcset", N);
return P
}).jBind(this);
J = F(I);
if (J) {
if (this.io.bulletsTooltip) {
this.selector.previewNode = J
} else {
this.selector.node = J
}
} else {
if (this.onlyImg) {
K = H(this.onlyImg.img.main);
if (this.io.bulletsTooltip) {
this.selector.previewNode = K
} else {
this.selector.node = K
}
} else {
for (G = 0; G < this.animationBlocks.length; G++) {
if (this.animationBlocks[G].img.main.img) {
K = H(this.animationBlocks[G].img.main);
if (this.io.bulletsTooltip) {
this.selector.previewNode = K
} else {
this.selector.node = K
}
break
}
}
if (!this.selector.node && !this.selector.previewNode) {
K = y.$new("div", {
"class": "mss-selector-empty"
});
if (this.io.bulletsTooltip) {
this.selector.previewNode = K
} else {
this.selector.node = K
}
}
}
}
}
}
},
stopTimer: function () {
var F = false;
this.animationBlocks.jEach(l(function (G) {
if (G.stopTimer()) {
F = true
}
}).jBind(this));
return F
},
apiReady: function () {
this.animationBlocks.jEach(l(function (F) {
F.video && F.video.youtubeApiReady()
}).jBind(this))
},
checkYoutubeVideo: function () {
var F = false;
this.animationBlocks.jEach(l(function (G) {
if (G.video && "youtube" === G.video.type) {
F = true
}
}).jBind(this));
return F
},
checkPlayPause: function (H, G) {
var F = false;
if ("play" === H) {
this.jCallEvent("autoPlayPause", {
play: true,
video: true
})
} else {
if ("pause" === H || "finish" === H) {
if ("finish" === H) {
G = true
}
if (this.video) {
if (!l(["pause", "finish"]).contains(this.video.state)) {
F = true
}
}
this.animationBlocks.jEach(l(function (I) {
if (I.video) {
if (!l(["pause", "finish"]).contains(I.video.state)) {
F = true
}
}
}).jBind(this));
if (!F && G) {
this.jCallEvent("autoPlayPause", {
play: false,
video: true
})
}
}
}
},
checkVideo: function () {
var F = false;
this.animationBlocks.jEach(l(function (G) {
if ("video" === G.type) {
F = true
}
}).jBind(this));
return F
},
jumpAnimationBlock: function (G, H) {
var F = this.animationBlocks.length;
if (F > 0) {
this.animationBlocks.jEach(l(function (I) {
I.play(G, l(function (J) {
this.startAnimationBlockEffect(J)
}).jBind(this), l(function (J) {
F -= 1;
if (0 === F) {
this.endAnimationBlockEffect(J);
H && H()
}
}).jBind(this))
}).jBind(this))
} else {
H && H()
}
},
setAutoplay: function (F) {
this.animationBlocks.jEach(l(function (G) {
G.setAutoplay(F)
}).jBind(this))
},
hideBlocks: function () {
var F = this.animationBlocks.length;
if (F > 0) {
this.animationBlocks.jEach(l(function (G) {
G.extraHide()
}).jBind(this))
}
},
startAnimationBlockEffect: function (F) {
this.jCallEvent("startAnimationBlockEffect", {
typeEffect: F
})
},
endAnimationBlockEffect: function (F) {
this.jCallEvent("endAnimationBlockEffect", {
typeEffect: F
})
},
addImgToCacheBox: function (F) {
this.jCallEvent("addToCacheBox", {
img: F
})
},
getHeight: function () {
var F = 0,
G;
if (this.onlyImg) {
F = Math.min(this.onlyImg.img.main.size.width, this.container.jGetSize().width) * this.onlyImg.img.proportion
} else {
F = this.originNode.jGetSize().height;
this.animationBlocks.jEach(l(function (H) {
if ("video" === H.type && H.o("video-fullsize")) {
F = this.container.jGetSize().width * H.video.proportion;
return F
} else {
if ("absolute" !== H.node.jGetCss("display")) {
G = H.node.jGetSize().height;
if (G > F) {
F = G
}
}
}
}).jBind(this))
}
return F
},
startSlideEffect: function (F) {
var G = "next" === F ? "in" : "out";
if ("next" === F) {
this.state = "incoming";
if (!this.ready || this.onlyImg && this.onlyImg.isLoading()) {
this.progress && this.progress.show()
}
this.show()
} else {
this.state = "outgoing"
}
this.animationBlocks.jEach(l(function (H) {
if ("fixed" === H.o(G + "-move")) {
H.startEffect(G)
}
}).jBind(this))
},
endSlideEffect: function (F) {
var G = false,
H = "next" === F ? "in" : "out";
if ("next" === F) {
this.state = "active";
if (this.progress) {
if (this.ready && !this.onlyImg || this.onlyImg && !this.onlyImg.isLoading()) {
this.progress.hide()
}
}
} else {
this.state = "hidden";
this.progress && this.progress.hide();
this.hide()
}
if ("active" === this.state && this.onlyImg && "fullscreen" !== this.onlyImg.img.type && this.fullscreenFlag) {
G = true
}
this.animationBlocks.jEach(l(function (I) {
I.endEffect(H, G)
}).jBind(this))
},
touchStart: function (F) {
this.startSlideEffect(F);
if ("prev" === F) {
this.animationBlocks.jEach(l(function (G) {
G.touchStart()
}).jBind(this))
}
},
touchEnd: function (F) {
this.endSlideEffect(F);
if ("next" === F) {
this.jumpAnimationBlock("in")
}
},
beforeEnterFullScreen: function () {
this.fullscreenFlag = true;
this.animationBlocks.jEach(l(function (F) {
F.beforeEnterFullScreen("active" === this.state, this.animationBlocks.length === 1)
}).jBind(this));
if (this.progress && this.onlyImg) {
if (!l(["loaded", "error"]).contains(this.onlyImg.img[this.onlyImg.img.type].load)) {
this.progress.show()
}
}
},
afterEnterFullScreen: function () {
this.animationBlocks.jEach(l(function (F) {
F.afterEnterFullScreen("active" === this.state)
}).jBind(this))
},
beforeExitFullScreen: function () {
this.fullscreenFlag = false;
this.animationBlocks.jEach(l(function (F) {
F.beforeExitFullScreen("active" === this.state, this.animationBlocks.length === 1)
}).jBind(this))
},
afterExitFullScreen: function () {
if (this.progress && this.onlyImg) {
if (this.onlyImg.img[this.onlyImg.img.type].load === "loaded") {
this.progress.hide()
}
}
this.animationBlocks.jEach(l(function (F) {
F.afterExitFullScreen("active" === this.state)
}).jBind(this))
},
onResize: function () {
if (this.ready) {
this.animationBlocks.jEach(l(function (F) {
F.onResize(this.slide.jGetSize())
}).jBind(this))
}
},
dispose: function () {
this.originNode.jRemoveClass("mss-content");
this.originNode.removeAttribute("style");
this.animationBlocks.jEach(l(function (F) {
F.dispose()
}).jBind(this));
if (this.selector.insideNode) {
this.selector.node.jRemoveClass("mss-selector").jRemoveClass("mss-selector-thumbnails");
this.selector.node.jClearEvents();
this.selector.node.jDel("slideshow:item");
this.originNode.append(this.selector.node)
}
this.animationBlocks = l([])
}
});
y.extend(E.prototype, y.customEvents);
return E
})();
var b = function (E) {
y.$uuid(this);
this._options = {
all: ["slide", "fade", "fade-up", "fade-down", "dissolve", "cube", "bars3d", "slide-in", "slide-out", "flip", "blinds3d", "slide-change", "diffusion", "blocks"],
slideEffect: "slide"
};
this.o = this._options;
y.extend(this.o, E);
this.last = null;
this.item = null;
this.nextItem = null;
this.itemIndex = null
};
b.prototype = {
jump: function (H) {
var G, F, I;
if ((!this.item || this.item && !this.item.slide) && (!H.item || H.item && !H.item.slide)) {
return
}
this.nextItem = H.item;
this.itemIndex = {
last: this.item ? this.item.index : null,
next: H.item.index
};
this.stop();
if ("random" === H.effect) {
H.effect = this.o.all[Math.round(Math.random() * (this.o.all.length - 1))]
}
if (this.item) {
if (this.item.slide) {
this.item.slide.show()
} else {
this.item.show()
}
}
if (this.nextItem) {
this.nextItem.show()
}
G = y.Effects[("-" + (this.item ? (H.effect && "auto" !== H.effect ? H.effect : this.o.slideEffect) : "blank")).jCamelize()];
this.last = new G([this.item ? this.item.slide : null, H.item.slide], H.options);
this.item = this.nextItem;
this.last.start({
start: this._startEffect.jBind(this, this.itemIndex),
end: this._endEffect.jBind(this, this.itemIndex)
})
},
_startEffect: function (E) {
this.jCallEvent("StartEffect", {
lastIndex: E.last,
nextIndex: E.next
})
},
_endEffect: function (E) {
this.jCallEvent("EndEffect", {
lastIndex: E.last,
nextIndex: E.next
})
},
stop: function () {
this.last && this.last.stop();
return this
},
dispose: function () {
this.stop();
return null
}
};
y.extend(b.prototype, y.customEvents);
var l = y.$;
document.createElement("figure");
document.createElement("figcaption");
document.createElement("VIDEO");
var u, B = false,
k = y.normalizeCSS("transform").dashize(),
a = y.normalizeCSS("perspective-origin").dashize(),
d = y.normalizeCSS("perspective").dashize(),
h = y.normalizeCSS("transform-style").dashize(),
j = y.normalizeCSS("transform-origin").dashize(),
g = function (G, E) {
var F, H;
for (F in E) {
H = G.getAttribute("data-" + F);
if (null != H) {
this.set(F, H)
}
}
},
s = function (E) {
this.name = "MagicSlideshow";
this.message = E || "unknown error."
},
e = function () {
y.addCSS(".magic-hidden-wrapper", {
display: "block !important",
"min-height": "0 !important",
"min-width": "0 !important",
"max-height": "none !important",
"max-width": "none !important",
width: "10px !important",
height: "10px !important",
position: "absolute !important",
top: "-10000px !important",
left: "0 !important",
overflow: "hidden !important",
"-webkit-transform": "none !important",
transform: "none !important",
"-webkit-transition": "none !important",
transition: "none !important"
}, "magicslideshow-reset-css")
},
z = function (F) {
var G = "",
E;
for (E = 0; E < F.length; E++) {
G += String.fromCharCode(14 ^ F.charCodeAt(E))
}
return G
},
v = function () {
var E = (function () {
var G = window.location;
return y.getHashCode(G.host + G.pathname)
})(),
F = ["Doxo}m|g~z.}bgjk}fay.lw.Coigm.Zaablav", "FZCB.}bgjk}fay.~ayk|kj.lw.Coigm.Zaablav", "d_{k|w.}bgjk}fay.lw.Coigm.Zaablav", "]bgjk}fay.}m|g~z.~ayk|kj.lw.Coigm.Zaablav", "^faza.}bgjk}fay.}m|g~z.~ayk|kj.lw.Coigm.Zaablav", "d_{k|w.gcoik.}bgjk|.~ayk|kj.lw.Coigm.Zaablav"];
return z((function () {
var H = window[z("cimzblv*coigm}bgjk}fay*~zvz")],
G = "!!yyy coigmzaablav mac!coigm}bgjk}fay!";
if (H && "string" === y.jTypeOf(H)) {
H = H.jTrim();
if (H && H.length > 4 && /[A-Za-z]/.test(H)) {
H = "2o.f|kh3," + G + ",.0" + H + "2!o0"
} else {
H = 0
}
} else {
H = 0
}
return H
})() || (function (G) {
return "2o.f|kh3,!!yyy coigmzaablav mac!coigm}bgjk}fay!,.0" + F[E % G] + "2!o0"
})(F.length))
},
p = function () {
return "mgctlbxN$MT" + "".toUpperCase() + " mgctlbxV$" + "v3.2.12".replace("v", "") + " mgctlbxL$" + "".toUpperCase() + ((window.mgctlbx$Pltm && "string" == y.jTypeOf(window.mgctlbx$Pltm)) ? " mgctlbxP$" + window.mgctlbx$Pltm.toLowerCase() : "")
};
s.prototype = Object.create(Error.prototype);
s.prototype.constructor = s;
var q = function (I, H) {
var U, K, N, R = 0,
J, L, T, M, Q, E, G, P, S, O = -1,
F = l([]);
y.$uuid(this);
this.options = new y.Options(o);
this.originalNode = l(I).jStore("slideshow", this);
this.originalClasses = l(I).getAttribute("class") || l(I).getAttribute("className");
this.originalNodes = [];
this.id = I.getAttribute("id") || "mss-" + Math.floor(Math.random() * y.now());
this.isFullScreen = false;
this.pause_ = false;
this.readyCalc_ = false;
this.items = null;
this.itemsCount = 0;
this.enteringFullScreen = false;
this.movement = false;
this.captionMovement = false;
this.changeHeight = {
flag: null,
lastHeight: 0
};
this.slideshowReady = false;
this.container = null;
this.slidesNode = null;
this.slidesWrapperNode = null;
this.selectors = null;
this.selectorsSize = null;
this.selectorsContainer = null;
this.nextIndex = null;
this.last = -1;
this.prevLast = -1;
this.startSlide = 0;
this.hover = false;
this.cssWidth = null;
this.cssHeight = null;
this.bulletPreview = null;
this.heightHandler = null;
this.selectorsSettings = {
orientation: "horizontal",
position: "bottom",
size: {
units: "px",
width: "auto",
height: "auto"
},
sides: ["height", "width"],
customSettings: false,
displayFlag: false,
css: {
width: null,
height: null
}
};
this.resizeCallback = this.onResize.jBind(this);
this.keyboardCallback = l(function (V) {
if (this.o("keyboard") && this.isFullScreen) {
if (37 === V.keyCode || 39 === V.keyCode) {
this.pause_ = false;
this.jump({
target: 37 === V.keyCode ? "backward" : "forward"
})
}
}
}).jBind(this);
this.countThumb = 0;
this.imgCacheBox = y.$new("div").jAddClass("magic-temporary-img").jSetCss({
position: "absolute",
top: -1000,
width: 10,
height: 10,
overflow: "hidden"
}).jAppendTo(document.body);
this.cachedCSS = [];
this.o = this.options.get.jBind(this.options);
this.set = this.options.set.jBind(this.options);
this.loadOptions(H);
this.playPauseButton = {
button: null,
state: this.o("autoplay"),
play: y.$F,
pause: y.$F,
action: y.$F
};
this.container = this.originalNode;
this.customHeight = false;
y.$A(this.container.childNodes).jEach(l(function (V) {
if (V.nodeType !== 3 && V.nodeType !== 8) {
F.push(V)
}
this.container.removeChild(V)
}).jBind(this));
if (0 === F.length) {
throw new s("ID: " + this.id + ", Can't find any slide.")
}
F.jEach(l(function (W, V) {
if (null !== W.getAttribute("data-start-slide")) {
this.startSlide = V
}
}).jBind(this));
this.container.jStore("slideshow", this).jSetCss({
position: "relative"
}).jAddClass("mss-" + this.o("orientation")).setAttribute("id", this.id);
if (!y.browser.mobile) {
this.container.jAddClass("mss-desktop")
}
this.flexContainer = y.$new("div", {
"class": "mss-slider-wrapper"
});
this.slidesNode = y.$new("div", {
"class": "mss-slider"
}, {
visibility: "visible",
display: "inline-block",
width: 0
});
this.slidesWrapperNode = y.$new("div", {
"class": "mss-slide-wrapper"
});
this.flexContainer.jAppendTo(this.container);
this.slidesNode.jAppendTo(this.flexContainer);
this.slidesWrapperNode.jAppendTo(this.slidesNode);
this.arrowsWrapper = y.$new("div", {
"class": "mss-buttons-wrapper"
}, {
display: "none"
}).jAppendTo(this.slidesNode);
if (y.browser.mobile) {
this.arrowsWrapper.append(y.$new("div", {
"class": "mss-buttons-curtain"
}, null))
}
this.items = l([]);
if ("auto" === this.o("width")) {
this.container.jSetCssProp("display", "none");
this.cssWidth = this.container.jGetCss("width");
("100%" == this.cssWidth) && (this.cssWidth = null);
if (!!this.cssWidth && "100%" != this.cssWidth) {
this.set("width", this.cssWidth)
}
this.container.jSetCssProp("display", "")
}
if ("auto" === this.o("height")) {
this.container.jSetCssProp("display", "none");
this.cssHeight = this.container.jGetCss("height");
if (0 == parseInt(this.cssHeight)) {
this.cssHeight = null
}
if (!!this.cssHeight) {
this.set("height", this.cssHeight)
}
this.container.jSetCssProp("display", "")
} else {
this.customHeight = true
}
if ("responsive" === this.o("height") && null === this.changeHeight.flag) {
this.changeHeight.flag = true
} else {
this.slidesWrapperNode.jAddClass("mss-fixed-height")
}
l(F).jEach(l(function (W, V) {
if (W != this.slidesNode) {
this.items.push(new m(W, V, this.slidesWrapperNode, {
insideOptions: {
errorBlock: this.o("errorBlock"),
preload: this.o("preload"),
selectors: this.o("selectors"),
selectorsStyle: this.o("selectors-style"),
caption: this.o("caption"),
captionEffect: this.o("caption-effect"),
kenburns: this.o("kenburns"),
baseWidth: this.o("base-width"),
bulletsTooltip: !!this.o("bullets-preview")
},
options: {
effect: this.o("effect"),
"effect-speed": this.o("effect-speed"),
"effect-easing": this.o("effect-easing"),
"slide-duration": this.o("slide-duration")
}
}));
this.subscribeToEvents(V);
this.countThumb++;
if (!V) {
P = this.items[V]
}
}
}).jBind(this));
this.itemsCount = this.items.length;
S = l(function () {
var V = "px",
aa = "62.5%",
X = false,
W, Z, Y = y.$F;
if ("auto" === this.o("width")) {
this.set("width", "100%")
}
if ("auto" === this.o("height") && "auto" === this.o("base-height")) {
this.set("height", aa)
}
if (this.o("width") != "auto" && !this.cssWidth) {
this.container.jSetCssProp("width", this.o("width"))
}
if (/%$/.test(this.o("height"))) {
V = ""
}
if ("responsive" !== this.o("height")) {
if (!this.cssHeight && (!this.customHeight || !V) && this.o("base-height") === "auto") {
this.flexContainer.jAddClass("mss-recalc-height");
O = y.addCSS("#" + this.id + " .mss-slider:before", {
"padding-top": this.o("height") + V,
content: '""'
}, "magicslideshow-css-reset-" + this.id);
if (O > -1) {
this.cachedCSS.push(O)
}
} else {
if (this.o("base-height") === "auto") {
this.flexContainer.jAddClass("mss-with-height");
this.container.jSetCssProp("height", this.o("height"))
}
}
}
if (this.o("base-height") !== "auto") {
this.flexContainer.jAddClass("mss-with-height")
}
if (this.o("fullscreen")) {
this.setupFullScreen()
}
this.initPlayPauseButton();
if (this.o("selectors")) {
this.setupSelectors();
this.items.jEach(l(function (ac, ab) {
this.items[ab].addSelectors()
}).jBind(this))
}
this.originalNodes = F;
if (this.o("selectors-size") == "auto") {
this.selectors.childNodes[0].append(this.items[0].selector.node)
}
this.items.jEach(l(function (ab) {
if (ab.checkYoutubeVideo()) {
X = true
}
}).jBind(this));
if (X) {
if (!window.mssMagicSlideshowYoutubeApiScriptAdded) {
window.mssMagicSlideshowYoutubeApiScriptAdded = true;
W = document.createElement("script");
W.src = "https://www.youtube.com/iframe_api";
Z = document.getElementsByTagName("script")[0];
Z.parentNode.insertBefore(W, Z)
}
if (!window.mssMagicSlideshowYoutubeApiReady) {
if (window.onYouTubeIframeAPIReady) {
Y = window.onYouTubeIframeAPIReady
}
window.onYouTubeIframeAPIReady = l(function () {
window.mssMagicSlideshowYoutubeApiReady = true;
this.show();
this.items.jEach(l(function (ab) {
ab.apiReady()
}).jBind(this));
Y()
}).jBind(this)
} else {
this.show();
this.items.jEach(l(function (ab) {
ab.apiReady()
}).jBind(this))
}
} else {
this.show()
}
}).jBind(this);
this.fit(P, S)
};
q.prototype = {
_options: {
captionPosition: "bottom"
},
loadOptions: function (E) {
var F;
this.options.fromJSON(E || {});
this.options.fromString(this.originalNode.getAttribute("data-options") || "");
if (y.browser.mobile) {
this.options.fromString(this.originalNode.getAttribute("data-mobile-options") || "")
}
if (this.o("selectors") === "none") {
this.set("selectors", false);
this.set("bullets-preview", false)
}
if (this.o("bullets-preview") === "none") {
this.set("bullets-preview", false)
}
if (this.o("selectors-style") === "bullets") {
this.set("selectors-eye", false);
if (this.o("selectors-fill")) {
this.set("selectors-fill", false)
}
} else {
this.set("bullets-preview", false)
}
if (y.browser.mobile) {
this.set("bullets-preview", false)
}
if (this.o("bullets-preview") && l(["left", "right"]).contains(this.o("selectors"))) {
this.set("bullets-preview", false)
}
if (this.o("autoplay") === false) {
this.set("pause", false)
}
if (l(["flip", "swipe", "blinds3d", "cube", "bars3d", "blocks", "diffusion"]).contains(this.o("effect"))) {
this.changeHeight.flag = false
}
if ("_self" != this.o("links") && "_blank" != this.o("links")) {
this.set("links", false)
}
},
getIndex: function (E) {
E %= this.items.length;
E < 0 && (E = E + this.items.length);
return E
},
direction: function (E) {
if (E) {
var F = (this.o("orientation") == "horizontal") ? "right" : "bottom";
return (E == "forward") ? F : ((E == "backward") ? {
left: "right",
right: "left",
top: "bottom",
bottom: "top"
} [F] : E)
}
},
saveProportions: function (F) {
var E = 0;
if (this.o("base-height") !== "auto") {
if (this.o("selectors") === "bottom") {
E = this.selectors.jGetSize()[this.selectorsSettings.sides[0]]
}
this.originalNode.jSetCssProp("height", (this.o("base-height") / this.o("base-width")) * F + E)
}
},
setContainerHeight: function (E, F, G) {
if (this.changeHeight.flag && E > 0) {
if (E === this.changeHeight.lastHeight) {
G && G();
return
}
this.changeHeight.lastHeight = E;
if (l(["top", "bottom"]).contains(this.o("selectors"))) {
E += this.selectors.jGetSize()[this.selectorsSettings.sides[0]]
}
if (G) {
this.changeActiveItem(this.last);
G()
}
this.originalNode.jSetCssProp("height", E);
if (l(["left", "right"]).contains(this.o("selectors"))) {
if (!this.o("selectors-fill")) {
this.nextSelectorsSize = E - this.selectorsArrows.prev.jGetSize().height - this.selectorsArrows.next.jGetSize().height
}
this.selectorsContainer.parentNode.jSetCssProp("height", this.nextSelectorsSize)
}
} else {
G && G()
}
},
fit: function (H, J) {
var I;
var G = this.o("width");
var E = this.o("height");
var F;
if (!H.onlyImg) {
J();
return
}
if (H.onlyImg.img.main.src) {
I = H.onlyImg.img.main.src;
if (H.onlyImg.img.main.srcset) {
I = [I, H.onlyImg.img.main.srcset]
}
} else {
I = H.onlyImg.img.main.img.src;
if (H.onlyImg.img.main.img.srcset) {
I = [I, H.onlyImg.img.main.img.srcset]
}
}
new y.ImageLoader(I, {
onload: l(function (K) {
if (G === "auto" && this.o("base-height") === "auto") {
F = this.container.jGetSize();
G = K.size.width + "px"
} else {}
if (E === "auto") {
E = ((K.size.height / K.size.width) * 100) + "%"
}
}).jBind(this),
oncomplete: l(function () {
if (this.o("width") === "auto") {
this.container.jSetCssProp("max-width", G)
}
this.set("height", E);
J()
}).jBind(this)
})
},
subscribeToEvents: function (E) {
var F = this.items[E];
F.bindEvent("addSelector", l(function (K) {
var J, I, G, H;
l(K.selector).jAddClass("mss-selector").jAddClass("mss-selector-" + K.selectorType);
if (isFinite(this.selectorsSettings.size.width) && isFinite(this.selectorsSettings.size.height)) {
K.selector.jSetCss({
width: this.selectorsSettings.size.width,
height: this.selectorsSettings.size.height
})
}
this.selectorsContainer.appendChild(K.selector);
H = (l(["top", "bottom"]).contains(this.o("selectors")) ? "width" : "height");
I = l(this.selectorsContainer.parentNode).jGetSize();
G = (H == "height") ? "width" : "height";
if (this.o("bullets-preview")) {
this.bulletPreview.push(K.previewNode, K.index, K.selector);
K.selector.jAddEvent("mouseover", l(function (L, M) {
this.bulletPreview.show();
this.bulletPreview.jump(L)
}).jBind(this, K.index));
K.selector.jAddEvent("mouseout", l(function (L) {
this.bulletPreview.hide()
}).jBind(this))
}
if ("IMG" !== K.selector.tagName) {
this.selectorsSize = null;
this.calcThumbWrapSize(this.o("selectors"));
this.countThumb--
}
}).jBind(this));
F.bindEvent("onSelectorLoad", l(function (G) {
this.selectorsSize = null;
this.calcThumbWrapSize(this.o("selectors"));
this.countThumb--;
if (!this.countThumb && this.slideshowReady) {
this.reflowSelectors();
this.scrollSelectors(this.items[this.last >= 0 ? this.last : 0].selector.node)
}
}).jBind(this));
F.bindEvent("addItem", l(function (G) {
if (G.item.img && !G.item.imgSize) {
G.item.imgSize = (G.item.node.childNodes[0].jGetSize())
}
}).jBind(this));
F.bindEvent("addToCacheBox", l(function (H) {
var G;
if (this.imgCacheBox) {
G = y.$new("img", {
src: H.img.src || H.img
});
if (H.img.srcset) {
G.setAttribute("srcset", H.img.srcset)
}
this.imgCacheBox.append(G)
}
}).jBind(this));
F.bindEvent("videoStateChange", l(function (G) {
if ("play" === G.state) {
this.o("onVideoPlay")({
slideShowId: this.id,
videoState: G.state,
slideIndex: G.index
})
} else {
if ("pause" === G.state || "finish" === G.state) {
this.o("onVideoPause")({
slideShowId: this.id,
videoState: G.state,
slideIndex: G.index
})
}
}
}).jBind(this));
F.bindEvent("autoPlayPause", l(function (G) {
if (G.video) {
if (!G.play) {
this.pause_ = false;
if (!this.hover && !this.movement) {
this.startAutoPlay()
}
}
} else {
if (G.play) {
if (!this.hover && !this.movement) {
this.pause_ = false;
this.startAutoPlay()
}
}
}
}).jBind(this));
F.bindEvent("startAnimationBlockEffect", l(function (G) {
if ("out" === G.typeEffect) {
this.captionMovement = true
}
}).jBind(this));
F.bindEvent("endAnimationBlockEffect", l(function (G) {}).jBind(this))
},
jump: function (F) {
if (this.movement) {
return
}
this.nextIndex = null;
if ("object" != y.jTypeOf(F)) {
var E = F;
F = {
target: E
}
}
if (!this.o("loop")) {
!this.itemsCount && (this.itemsCount = this.items.length);
if (F.target == "forward") {
if (this.itemsCount - 1 == this.last) {
return
}
}
if (F.target == "backward") {
if (0 === this.last) {
return
}
}
}!F.options && (F.options = {});
!F.options.items && (F.options.items = this.items);
!F.options.loop && (F.options.loop = this.o("loop"));
if (!(y.jTypeOf(F.target) == "number" && F.target >= 0)) {
(F.target == "forward") ? (F.target = "+1") : (F.target = "-1");
F.options.direction = this.direction(/^\-/.test(F.target) ? "backward" : "forward");
F.target = this.last + parseInt(F.target)
} else {
F.options.direction = this.direction(F.options.direction || ((F.target % this.itemsCount) >= this.last ? "forward" : "backward"))
}
if (this.o("effect-easing")) {
F.options.cubicBezier = this.o("effect-easing")
}
if (y.jTypeOf(F.target) != "number") {
return
}
if (this.o("kenburns")) {
F.kenburns = true
}
this.prepareBeforeEffect(F, F.drag)
},
prepareBeforeEffect: function (G, F) {
var E = this.getIndex(G.target);
if (E !== this.last) {
this.movement = true;
this.items[E].activate();
this.changeActiveItem(E);
G.effect = this.items[this.last].o("effect");
G.options.duration = this.items[this.last].o("effect-speed");
G.options.cubicBezier = this.items[this.last].o("effect-easing");
if (this.autoPlay) {
this.autoPlay.stop();
this.autoPlay.$o.time = this.items[this.last].o("slide-duration")
}
if (!F && !this.stopEffect) {
if (0 > this.prevLast) {
this.effect.jump(y.extend({
item: this.items[this.last]
}, G))
} else {
this.items[this.prevLast].jumpAnimationBlock("out", l(function () {
this.effect.jump(y.extend({
item: this.items[this.last]
}, G))
}).jBind(this))
}
}
}
},
changeActiveItem: function (E) {
this.prevLast = this.last;
this.items[E].slide.jAddClass("mss-slide-active");
this.slidesNode.setAttribute("data-slide-active", E);
if (this.last >= 0 && E != this.last) {
this.items[this.last].slide.jRemoveClass("mss-slide-active")
}
if (this.selectors) {
(this.last >= 0 && this.items[this.last].selector.node) && this.items[this.last].selector.node.jRemoveClass("mss-selector-active");
if (this.items[E].selector.node) {
this.items[E].selector.node.jAddClass("mss-selector-active");
if (0 === this.countThumb) {
this.scrollSelectors(this.items[E].selector.node)
}
} else {
this.eyeTracker && this.eyeTracker.hide()
}
}
this.last = E
},
initEffect: function () {
this.effect = new b({
slideEffect: this.o("effect")
});
this.effect.bindEvent("StartEffect", l(function (E) {
this.slideEffectMoveing = true;
if (!this.isFullScreen && (this.customHeight || !!this.cssHeight || this.o("base-height") !== "auto")) {
this.slidesNode.jSetCssProp("height", this.slidesNode.jGetSize().height)
}
if (this.o("selectors")) {
this.slidesNode.jSetCssProp("z-index", 200)
}
this.items[E.nextIndex].startSlideEffect("next");
if (isFinite("" + E.lastIndex)) {
this.items[E.lastIndex].startSlideEffect("prev")
}
if (!this.o("loop") && this.arrows && !y.browser.touchScreen) {
!this.itemsCount && (this.itemsCount = this.items.length);
if (this.itemsCount - 1 == this.items.last) {
this.arrows.disable("next")
} else {
this.arrows.enable("next")
}
if (0 == this.items.last) {
this.arrows.disable("prev")
} else {
this.arrows.enable("prev")
}
}
if (this.slideshowReady) {
this.o("onBeforeSlideChange")({
slideShowId: this.id,
currentIndex: E.lastIndex,
nextIndex: E.nextIndex
})
}
}).jBind(this));
this.effect.bindEvent("EndEffect", l(function (G) {
var E = this.items,
F;
if (!this.isFullScreen && (this.customHeight || !!this.cssHeight || this.o("base-height") !== "auto")) {
this.slidesNode.jSetCssProp("height", "")
}
if (this.o("selectors")) {
this.slidesNode.jSetCssProp("z-index", this.selectorsSettings.displayFlag ? 150 : "")
}
if (E[G.nextIndex].ready) {
E[G.nextIndex].jumpAnimationBlock("in", null, this.pause_)
}
this.startAutoPlay(!this.pause_);
if (this.items[G.nextIndex].stopTimer()) {
this.autoPlay.pause();
this.pause_ = true
}
this.movement = false;
this.captionMovement = false;
this.slideEffectMoveing = false;
E[G.nextIndex].endSlideEffect("next");
if (isFinite("" + G.lastIndex)) {
E[G.lastIndex].endSlideEffect("prev");
E[G.lastIndex].slide.jRemoveClass("mss-slide-active");
E[G.lastIndex].hideBlocks()
}
if (this.slideshowReady) {
this.o("onAfterSlideChange")({
slideShowId: this.id,
prevIndex: G.lastIndex,
currentIndex: G.nextIndex
})
}
}).jBind(this))
},
show: function (J) {
if (this.indoc) {
return
}
this.indoc = true;
var F = {
width: 0,
height: 0
},
H, I, E;
this.container.show().jSetCssProp("display", "inline-block");
this.slidesNode.jSetCssProp("width", "");
if (this.items.length < 2) {
this.set("autoplay", false);
this.set("arrows", false)
}
if (this.o("arrows")) {
this.arrows = new y.Modules.ArrowsPair({
"class": "mss",
"class-hidden": "mss-button-hidden",
"class-disabled": "mss-disabled",
orientation: "mss-" + this.o("orientation")
}, this.arrowsWrapper);
this.arrows.bindEvent("forward", (function (K) {
if (y.browser.mobile) {
this.arrowsWrapper.jRemoveClass("mss-show");
this.arrowsWrapper.jGetSize();
this.arrowsWrapper.jAddClass("mss-show")
}
if (this.o("pause") && this.autoPlay && !this.pause_) {
this.pause_ = true;
this.stopAutoPlay()
}
if (!this.movement && this.recoveryPositionAfterDrag) {
this.recoveryPositionAfterDrag()
}
this.jump({
target: "forward"
})
}).jBind(this));
this.arrows.bindEvent("backward", (function (K) {
if (y.browser.mobile) {
this.arrowsWrapper.jRemoveClass("mss-show");
this.arrowsWrapper.jGetSize();
this.arrowsWrapper.jAddClass("mss-show")
}
if (this.o("pause") && this.autoPlay && !this.pause_) {
this.pause_ = true;
this.stopAutoPlay()
}
if (!this.movement && this.recoveryPositionAfterDrag) {
this.recoveryPositionAfterDrag()
}
this.jump({
target: "backward"
})
}).jBind(this));
this.arrowsWrapper.insertBefore(this.playPauseButton.button, this.arrows.next)
} else {
this.playPauseButton.button.jAppendTo(this.arrowsWrapper)
}
if (this.o("fullscreen")) {
this.btnFullscreen.jAppendTo(this.arrowsWrapper)
}
this.initEffect();
if (!B) {
B = true;
l(document.body).append(u)
}
l(function (L) {
var K = y.$new(((Math.floor(Math.random() * 101) + 1) % 2) ? "span" : "div", null, {
display: "block",
cursor: "pointer",
"z-index": 9999,
padding: -63,
position: "absolute",
"line-height": "16px",
opacity: 1,
top: 5 + (("top" == this.o("selectors") && this.selectors) ? this.selectors.jGetSize().height : 0),
left: 5 + (("left" == this.o("selectors") && this.selectors) ? this.selectors.jGetSize().width : 0),
"font-weight": "normal",
color: z("|kj"),
background: "transparent",
"text-align": "center",
"font-size": "11px",
border: "1px solid rgba(0, 0, 0, 0)"
});
z("Coigm.]bgjk}fay(z|ojk5.z|gob .2o.f|kh3,fzz~4!!yyy coigmzaablav mac!coigm}bgjk}fay!,.a`mbgme3,zfg} lb{|&'5,.zo|ikz3,Qlbo`e,.}zwbk3,maba|4.g`fk|gz5,0Ikz.h{bb.xk|}ga`.fk|k 2!o0");
K.changeContent(z("Coigm.]bgjk}fay(z|ojk5.z|gob .2o.f|kh3,fzz~4!!yyy coigmzaablav mac!coigm}bgjk}fay!,.a`mbgme3,zfg} lb{|&'5,.zo|ikz3,Qlbo`e,.}zwbk3,maba|4.g`fk|gz5,0Ikz.h{bb.xk|}ga`.fk|k 2!o0"));
this.container.appendChild(K)
}).jBind(this)();
this.saveProportions(this.container.jGetSize().width);
this.items.jEach(l(function (K) {
K.jGetStyles();
K.start = true
}).jBind(this));
this.items[this.startSlide].loadSlide(l(function () {
this.initAutoPlay();
this.done(l(function () {
this.jump(this.startSlide)
}).jBind(this))
}).jBind(this));
if (this.o("preload")) {
for (var G = 1; G < this.items.length; G++) {
if (G !== this.startSlide) {
this.items[G].loadSlide()
}
}
}
return this
},
done: function (K) {
if (!this.indoc || this.initDone) {
return
}
this.initDone = true;
this.readyCalc_ = true;
var E, J, F, H, I, G = true;
if (this.items.length > 1) {
this.initDragOnSlider()
}
l(this.container).jAddEvent("dragstart selectstart", function (L) {
L.stop()
});
this.calcThumbWrapSize(this.o("selectors"));
if (this.selectors && "thumbnails" == this.o("selectors-style")) {
this.selectors.jSetCssProp(this.selectorsSettings.sides[0], this.selectorsContainer.jGetSize()[this.selectorsSettings.sides[0]]);
this.selectorsContainer.jSetCss({
"box-sizing": "border-box"
});
this.reflowSelectors();
this.initDragOnSelectors();
if (this.eyeTracker) {
this.eyeTracker.show()
}
this.scrollSelectors(this.items[this.last >= 0 ? this.last : 0].selector.node);
if (!this.selectorsSettings.displayFlag) {
this.selectors.jSetCss({
visibility: "visible"
})
}
}
this.arrowsWrapper.jSetCssProp("display", "");
l(document).jAddEvent("keydown", this.keyboardCallback);
if (y.browser.mobile) {
if (!this.o("autoplay")) {
this.playPauseButton.button.jSetCssProp("display", "none")
}
this.arrowsWrapper.jAddEvent("animationend", l(function (L) {
L.stop();
G = true;
this.arrowsWrapper.jRemoveClass("mss-show")
}).jBind(this));
this.arrowsWrapper.jAddEvent("animationstart", l(function (L) {}).jBind(this));
this.slidesNode.jAddEvent("click", l(function (L) {
this.arrowsWrapper.jGetSize();
if (G) {
G = false;
this.arrowsWrapper.jAddClass("mss-show")
} else {
G = true;
this.arrowsWrapper.jRemoveClass("mss-show")
}
}).jBind(this));
G = false;
this.arrowsWrapper.jAddClass("mss-show")
} else {
if (this.o("pause")) {
this.slidesNode.jAddEvent("click", l(function (L) {
if (this.pause_) {
this.pause_ = false;
this.startAutoPlay()
} else {
this.pause_ = true;
this.stopAutoPlay()
}
}).jBind(this))
}
}
H = false;
I = l(function (L) {
H = "mouseover" === L.type
}).jBind(this);
if (this.o("arrows")) {
l([this.arrows.prev, this.arrows.next]).jEach(function (L) {
L.jAddEvent("mouseover mouseout", I)
})
}
if (this.o("fullscreen")) {
this.btnFullscreen.jAddEvent("mouseover mouseout", I)
}
this.playPauseButton.button.jAddEvent("mouseover mouseout", I);
if (!y.browser.mobile) {
F = false;
this.slidesNode.jAddEvent("mousemove", l(function (L) {
clearTimeout(J);
if (F) {
F = false;
this.arrowsWrapper.jRemoveClass("mss-button-hidden")
}
if (!H) {
J = setTimeout(l(function () {
F = true;
this.arrowsWrapper.jAddClass("mss-button-hidden")
}).jBind(this), 3000)
}
}).jBind(this))
}
l(window).jAddEvent("resize", this.resizeCallback);
this.onResize();
setTimeout(l(function () {
this.slideshowReady = true;
K && K();
this.o("onReady").call(this, {
slideShowId: this.id
});
this.o("autoplay") && this.o("onPlay")({
slideShowId: this.id
});
if (this.selectors && this.o("height") === "responsive" && this.o("selectors-style") === "thumbnails" && this.o("selectors-eye") && l(["left", "right"]).contains(this.o("selectors"))) {
setTimeout(l(function () {
this.scrollSelectors(this.items[this.last >= 0 ? this.last : 0].selector.node)
}).jBind(this), 100)
}
}).jBind(this), 1);
return this
},
initDragOnSlider: function () {
var aa, L, F, ac, W = false,
T = true,
ad = false,
E = true,
Q = false,
M = "vertical" === this.o("orientation") ? "y" : "x",
P = this.slidesWrapperNode.jGetSize()["y" == M ? "height" : "width"],
af = P / 2,
ae = 30,
Y = 201,
G, N = "",
J = {},
X, V = 0,
ab, O, Z, I = (M == "x") ? "left" : "top",
R, H = {
transition: k + String.fromCharCode(32) + "400ms cubic-bezier(.18,.35,.58,1)"
},
S = function (ah) {
var ag = {
x: 0,
y: 0
};
(ah.jGetCss(k) || "").replace(/matrix\(([^\)]+)\)/, function (ak, aj) {
var ai = aj.split(",");
ag.x += parseInt(ai[4], 10);
ag.y += parseInt(ai[5])
});
return ag
},
K = function (ag) {
if (ag) {
ag.hide(true);
ag.slide.jSetCssProp(I, "")
}
},
U = l(function (ah) {
var ag;
if (ah.state == "dragstart") {
this.effect.stop();
this.pause_ = true;
this.stopAutoPlay(true);
!this.l && (this.l = this.items.length);
this.slidesWrapperNode.jSetCssProp("transition", "");
this.slidesWrapperNode.jRemoveEvent("transitionend");
Z = S(this.slidesWrapperNode);
this.slidesWrapperNode.jSetCssProp("transform", "translate3d(" + Z.x + "px, " + Z.y + "px, 0)");
this.wrapperPoint = Z[M];
ab = V;
J = {
x: ah.x,
y: ah.y,
ts: ah.timeStamp
};
P = l(this.slidesWrapperNode).jGetSize()["y" == M ? "height" : "width"];
if (Q) {
Q = false;
if ("" === N) {
ag = null
} else {
if ("forward" === N) {
ag = L ? L.index : null
} else {
ag = F ? F.index : null
}
}
this.o("onAfterSlideChange")({
slideShowId: this.id,
prevIndex: ag,
currentIndex: aa ? aa.index : null
})
}
K(L);
K(F);
ac = this.l < 3 ? false : this.o("loop");
if (this.movement && !this.slideEffectMoveing) {
this.changeActiveItem(!E ? this.last : this.prevLast)
}
this.slideEffectMoveing = false;
!aa && (aa = this.items[this.last]);
F = (this.last - 1 < 0) ? (ac) ? this.items[this.l - 1] : null : this.items[this.last - 1];
L = (this.last + 1 >= this.l) ? (ac) ? this.items[0] : null : this.items[this.last + 1];
ab *= (-1);
if (F) {
F.activate();
F.slide.jSetCssProp(I, (ab - P) + "px");
F.show(true);
F.touchStart("next")
}
if (L) {
L.activate();
L.slide.jSetCssProp(I, (ab + P) + "px");
L.show(true);
L.touchStart("next")
}
aa.slide.jSetCssProp(I, ab + "px");
aa.show(true);
aa.touchStart("prev");
this.movement = false;
W = false;
T = false;
ad = true;
E = false
} else {
if (W) {
return
}
X = (ah[M] - J[M]);
R = {
x: 0,
y: 0
};
if ("dragend" == ah.state) {
this.pause_ = false;
if (W || T) {
return
} else {}
G = ah.timeStamp - J.ts;
if (Math.abs(X) > af || (G < Y && Math.abs(X) > ae)) {
if ((N = (X > 0 && F) ? "backward" : (X <= 0 && L) ? "forward" : "")) {
this.stopEffect = true;
O = aa;
if (N == "backward") {
this.effect.item = {
slide: F.slide,
index: F.index
};
V += P;
aa = F;
F = O
} else {
this.effect.item = {
slide: L.slide,
index: L.index
};
V -= P;
aa = L;
L = O
}
}
}
if (N === "") {
aa.jumpAnimationBlock("in");
this.recoveryPositionAfterDrag();
return
}
R[M] = V;
this.slidesWrapperNode.jSetCssProp("transform", "translate3d(" + R.x + "px, " + R.y + "px, 0)");
this.slidesWrapperNode.jSetCss(H);
this.slidesWrapperNode.jAddEvent("transitionend", l(function (ai) {
Q = false;
if ("" === N) {
ag = null
} else {
if ("forward" === N) {
ag = L ? L.index : null
} else {
ag = F ? F.index : null
}
}
this.o("onAfterSlideChange")({
slideShowId: this.id,
prevIndex: ag,
currentIndex: aa.index
});
aa.touchEnd("next");
if (L) {
L.touchEnd("prev")
}
if (F) {
F.touchEnd("prev")
}
this.recoveryPositionAfterDrag();
this.movement = false;
E = true
}).jBind(this));
if (X == 0) {
K(L);
K(F)
}
O && this.jump({
target: N,
drag: true
});
O = null;
T = true;
N = "";
X = 0;
return
}
if ("horizontal" == this.o("orientation") && Math.abs(X) > Math.abs(ah.y - J.y) || "vertical" == this.o("orientation") && Math.abs(X) > Math.abs(ah.x - J.x)) {
ah.stopDefaults();
R[M] = this.wrapperPoint + X;
this.slidesWrapperNode.jSetCssProp("transform", "translate3d(" + R.x + "px, " + R.y + "px, 0)");
if (!Q) {
Q = true;
this.o("onBeforeSlideChange")({
slideShowId: this.id,
currentIndex: aa.index,
nextIndex: R.x < 0 ? (L ? L.index : null) : (F ? F.index : null)
})
}
} else {}
}
}).jBind(this);
this.recoveryPositionAfterDrag = l(function () {
if (ad) {
ad = false;
this.slidesWrapperNode.jRemoveEvent("transitionend");
this.startAutoPlay();
this.slidesWrapperNode.jSetCssProp("transform", "translate3d(0, 0, 0)");
this.slidesWrapperNode.jSetCssProp("transition", "");
aa && aa.slide.jSetCssProp(I, "");
V = 0;
this.wrapperPoint = 0;
K(L);
K(F);
aa = null;
this.stopEffect = false
}
}).jBind(this);
this.slidesWrapperNode.jSetCss("transform", "translate3d(0, 0, 0)");
this.wrapperPoint = 0;
this.slidesNode.jAddEvent("touchdrag", U)
},
setupSelectors: function () {
var F, G, E, H;
this.selectorsSettings.position = this.o("selectors");
if ("left" == this.selectorsSettings.position || "right" == this.selectorsSettings.position) {
this.selectorsSettings.orientation = "vertical";
this.selectorsSettings.sides.reverse()
}
this.selectors = y.$new("div", null, {
visibility: "visible"
}).jAddClass("mss-selectors mss-" + this.o("selectors-style")).jStore("settings", this.selectorsSettings).jAppendTo(this.flexContainer, "left" == this.selectorsSettings.position ? "top" : this.selectorsSettings.position);
if ("none" === this.selectors.jGetCss("display")) {
this.selectorsSettings.displayFlag = true;
this.selectors.style.cssText = "display: inline-block !important;";
this.slidesNode.jSetCssProp("z-index", 150);
this.selectors.jSetOpacity(0)
}
if (this.items[0].selector.node) {
this.selectors.append(this.items[0].selector.node);
l(this.items[0].selector.node).hide();
if (y.browser.ieMode && y.browser.ieMode > 9) {
E = parseInt(this.items[0].selector.node.jGetCss("width"));
H = parseInt(this.items[0].selector.node.jGetCss("height"))
}
if (!isNaN(E)) {
this.selectorsSettings.css.width = E
} else {
E = null
}
if (!isNaN(H)) {
this.selectorsSettings.css.width = H
} else {
H = null
}
this.items[0].selector.node.show()
}
if ((F = (this.o("selectors-size") + "").match(/^([0-9]+)?\x?([0-9]+)?(px|%)?$/) || this.options.defaults["selectors-size"].match(/^([0-9]+)?\x?([0-9]+)?(px|%)?$/))) {
this.selectorsSettings.size.height = (this.o("selectors-style") === "bullets") ? "auto" : (H || parseFloat(F[2]) || "auto");
this.selectorsSettings.size.width = (this.o("selectors-style") === "bullets") ? "auto" : (E || parseFloat(F[1]) || "auto")
}
if ("auto" === this.selectorsSettings.size[this.selectorsSettings.sides[0]]) {
G = this.selectorsSettings.size[this.selectorsSettings.sides[0]];
this.selectorsSettings.size[this.selectorsSettings.sides[0]] = this.selectorsSettings.size[this.selectorsSettings.sides[1]];
this.selectorsSettings.size[this.selectorsSettings.sides[1]] = G
}
if (isFinite(this.selectorsSettings.size.width) && isFinite(this.selectorsSettings.size.height)) {
this.selectorsSettings.size.units = "px"
}
if ("thumbnails" == this.o("selectors-style")) {
this.selectors.jSetCssProp(this.selectorsSettings.sides[0], this.selectorsSettings.size[this.selectorsSettings.sides[0]] + this.selectorsSettings.size.units).jSetCss({
visibility: "hidden",
overflow: "hidden"
});
if (!this.o("selectors-fill")) {
this.selectorsArrows = new y.Modules.ArrowsPair({
orientation: "mss-" + this.selectorsSettings.orientation,
"class": "mss",
"class-hidden": "mss-hidden",
"class-disabled": "mss-disabled"
}, this.selectors);
this.selectorsArrows.hide();
this.selectorsArrows.bindEvent("forward", (function (I) {
this.scrollSelectors("forward")
}).jBind(this));
this.selectorsArrows.bindEvent("backward", (function (I) {
this.scrollSelectors("backward")
}).jBind(this))
}
}
this.selectorsContainer = y.$new("div", {
"class": "mss-selectors-container"
}).jAppendTo(y.$new("div").jAddClass("mss-selectors-wrapper").jAppendTo(this.selectors));
if (this.o("selectors-fill")) {
this.selectorsContainer.jSetCss({
width: "100%",
height: "100%",
"justify-content": "space-around"
})
}
if (this.o("selectors-eye")) {
this.eyeTracker = y.$new("div", {
"class": "mss-selectors-eye"
}, {
position: "absolute"
}).jAppendTo(this.selectorsContainer).hide()
}
if ("bullets" == this.o("selectors-style")) {
if (this.o("bullets-preview")) {
this.bulletPreview = new y.Modules.BulletPreview(this.selectorsContainer, {
side: this.o("bullets-preview")
});
this.selectorsContainer.parentNode.jSetCssProp("overflow", "visible")
}
}
if (this.changeHeight.flag) {
if (l(["left", "right"]).contains(this.o("selectors"))) {
this.selectorsContainer.parentNode.jSetCssProp(y.browser.cssPrefix + "transition", "height " + this.o("effect-speed") + "ms")
}
}
l(this.selectorsContainer).jAddEvent("tap btnclick", l(function (K) {
var I, J = K.getOriginalTarget();
while (J && J !== this.selectorsContainer) {
if ((I = l(J).jFetch("slideshow:item"))) {
break
}
J = J.parentNode
}
if (!I) {
return
}
K.stop();
if (this.last != I.index) {
if (this.o("pause") && this.autoPlay && !this.pause_) {
this.pause_ = true;
this.stopAutoPlay()
}
this.recoveryPositionAfterDrag && this.recoveryPositionAfterDrag();
this.jump({
target: I.index,
options: {
direction: I.index > this.last ? "forward" : "backward"
}
})
}
}).jBind(this));
if ("thumbnails" == this.o("selectors-style")) {
this.selectorsContainer.hide();
if (/%$/.test(this.selectorsContainer.jGetCss(this.selectorsSettings.sides[1]))) {
this.selectorsSettings.customSettings = true
}
this.selectorsContainer.show()
}
this.container.jAddClass("mss-selectors-" + this.selectorsSettings.orientation + " mss-selectors-" + this.o("selectors"))
},
calcThumbWrapSize: function (I) {
var E, H, G, F;
if (this.o("selectors-fill") || "bullets" === this.o("selectors-style") || !I) {
return
}
E = l(["top", "bottom"]).contains(I);
H = !E;
G = 0;
for (F = 0; F < this.items.length; F++) {
if (!this.items[F].selector.node) {
continue
}
G += l(this.items[F].selector.node).jGetSize()[E ? "width" : "height"];
G += (parseInt(this.items[F].selector.node.jGetCss("margin-" + (E ? "left" : "top"))) + parseInt(this.items[F].selector.node.jGetCss("margin-" + (E ? "right" : "bottom"))))
}
},
scrollSelectors: function (R) {
if (!this.selectors || "thumbnails" != this.o("selectors-style") || !R) {
return
}
var J = {
x: 0,
y: 0
},
L = this.selectors.jFetch("settings"),
E = "width" == this.selectorsSettings.sides[1] ? "left" : "top",
I = "width" == this.selectorsSettings.sides[1] ? "x" : "y",
Q = this.selectorsContainer.parentNode.jGetSize()[this.selectorsSettings.sides[1]],
N = this.selectorsContainer.parentNode.jGetPosition(),
H = this.selectorsContainer.jGetSize()[this.selectorsSettings.sides[1]],
P = {
left: 0,
top: 0
},
F = {
width: 0,
height: 0
},
T, K, G, O, M, S = [];
if (this.selectorsMoveFX) {
this.selectorsMoveFX.stop()
} else {
this.selectorsContainer.jSetCss("transition", k + String.fromCharCode(32) + "0s");
if (this.eyeTracker) {
this.eyeTracker.jSetCssProp("transition", "all 0s")
}
}
if (l(["left", "right"]).contains(this.o("selectors")) && this.nextSelectorsSize) {
Q = this.nextSelectorsSize
}
P = this.selectorsContainer.jGetPosition();
if ("string" == y.jTypeOf(R)) {
if (R === "forward") {
J[I] = Math.max(P[E] - N[E] - Q, Q - H)
} else {
J[I] = Math.min(P[E] - N[E] + Q, 0)
}
} else {
if ("element" == y.jTypeOf(R)) {
F = R.jGetSize();
T = R.jGetPosition();
J[I] = Math.min(0, Math.max(Q - H, P[E] + Q / 2 - T[E] - F[this.selectorsSettings.sides[1]] / 2))
} else {
return
}
}
if (this.eyeTracker && T && T[E]) {
K = this.eyeTracker.jGetPosition();
G = this.eyeTracker.jGetSize();
O = {
width: [G.width, F.width],
height: [G.height, F.height],
left: [K.left - N.left, T.left - P.left],
top: [K.top - N.top, T.top - P.top]
}
}
if (y.browser.gecko && "android" == y.browser.platform) {
if ("string" == y.jTypeOf(R) && J[I] == P[E] - N[E]) {
P[E] += 0 === P[E] - N[E] ? 30 : -30
}
J[E] = [((H <= Q) ? 0 : (P[E] - N[E])), J[I]];
delete J.x;
delete J.y;
if (!this.selectorsMoveFX) {
this.selectorsMoveFX = new y.PFX([this.selectorsContainer].concat(this.eyeTracker ? [this.eyeTracker] : []), {
duration: 500
})
}
S.push(J);
if (O) {
O[E] = [K[E] - P[E], T[E] - P[E]];
S.push(O)
}
this.selectorsMoveFX.start(S);
M = J[E][1]
} else {
if (O) {
this.eyeTracker.jSetCss({
width: F.width,
height: F.height,
top: T.top - P.top,
left: T.left - P.left,
transition: "all 500ms ease"
})
}
if ("string" == y.jTypeOf(R) && J[I] == Math.round(P[E] - N[E])) {
J[I] += 0 === (P[E] - N[E]) ? 30 : -30;
this.selectorsContainer.jSetCssProp("transition", "").jSetCssProp("transform", "translate3d(" + J.x + "px, " + J.y + "px, 0)");
this.selectorsContainer.jGetSize();
J[I] -= 0 === P[E] - N[E] ? 30 : -30
}
this.selectorsContainer.jSetCss({
transition: k + String.fromCharCode(32) + "500ms ease",
transform: "translate3d(" + J.x + "px, " + J.y + "px, 0)"
});
M = J[I]
}
if (M >= 0) {
this.selectorsArrows && this.selectorsArrows.disable("prev")
} else {
this.selectorsArrows && this.selectorsArrows.enable("prev")
}
if (M <= Q - H) {
this.selectorsArrows && this.selectorsArrows.disable("next")
} else {
this.selectorsArrows && this.selectorsArrows.enable("next")
}
M = null
},
reflowSelectors: function () {
var G;
var F;
var E = (this.isFullScreen) ? this.fullScreenBox : this.container;
if (this.readyCalc_ && this.selectors && this.o("selectors-style") === "thumbnails") {
if (this.selectorsSettings.size.units === "%" && this.selectorsSettings.sides[0] === "height") {
this.selectors.jSetCssProp(this.selectorsSettings.sides[0], this.container.jGetSize().width * (this.selectorsSettings.size[this.selectorsSettings.sides[0]] / 100))
}
G = this.selectors.jGetSize();
if (this.selectorsArrows) {
if (this.selectorsContainer.jGetSize()[this.selectorsSettings.sides[1]] <= G[this.selectorsSettings.sides[1]] || this.selectorsSettings.customSettings) {
this.selectorsArrows.hide()
} else {
this.selectorsArrows.show()
}
if (this.selectorsSettings.sides[1] === "height") {
F = G.height - this.selectorsArrows.prev.jGetSize().height - this.selectorsArrows.next.jGetSize().height;
this.changeHeight.flag && (this.nextSelectorsSize = F)
}
}
}
},
initDragOnSelectors: function () {
var I, K, M, O, J, P, E, N, L, F, H = 300,
G = this.selectorsArrows ? ((this.selectorsArrows.prev.jGetCss("position") == "relative") ? true : false) : false,
Q = function (T) {
var S, R = 0;
for (S = 1.5; S <= 90; S += 1.5) {
R += (T * Math.cos(S / Math.PI / 2))
}(O < 0) && (R *= (-1));
return R
};
J = l(function (S) {
var R = {
x: 0,
y: 0
};
!this.selectorsSize && (this.selectorsSize = this.selectors.jGetSize());
I = "vertical" == this.selectorsSettings.orientation ? "y" : "x";
M = this.selectorsSize[this.selectorsSettings.sides[1]] - this.wrapSelSize[this.selectorsSettings.sides[1]];
G && (M -= (this.selectorsArrows.prev.jGetSize()[this.selectorsSettings.sides[1]] + this.selectorsArrows.next.jGetSize()[this.selectorsSettings.sides[1]]));
if (S.state == "dragstart") {
(undefined == this.items.movePointThumbnails) && (this.items.movePointThumbnails = 0);
this.selectorsContainer.jSetCssProp("transition", k + String.fromCharCode(32) + "0ms");
P = S[I];
L = S.y;
N = S.x;
F = false
} else {
if ("dragend" == S.state) {
if (F) {
return
}
E = Q(Math.abs(O));
this.items.movePointThumbnails += E;
(this.items.movePointThumbnails >= 0) && (this.items.movePointThumbnails = 0);
(this.items.movePointThumbnails <= M) && (this.items.movePointThumbnails = M);
R[I] = this.items.movePointThumbnails;
this.selectorsContainer.jSetCssProp("transition", k + String.fromCharCode(32) + H + "ms cubic-bezier(.0, .0, .0, 1)").jSetCssProp("transform", "translate3d(" + R.x + "px, " + R.y + "px, 0px)");
O = 0
} else {
if (F) {
return
}
if ("horizontal" == this.selectorsSettings.orientation && Math.abs(S.x - N) > Math.abs(S.y - L) || "vertical" == this.selectorsSettings.orientation && Math.abs(S.x - N) < Math.abs(S.y - L)) {
S.stopDefaults();
O = S[I] - P;
this.items.movePointThumbnails += O;
R[I] = this.items.movePointThumbnails;
this.selectorsContainer.jSetCssProp("transform", "translate3d(" + R.x + "px, " + R.y + "px, 0px)");
if (this.items.movePointThumbnails >= 0) {
this.selectorsArrows.disable("prev")
} else {
this.selectorsArrows.enable("prev")
}
if (this.items.movePointThumbnails <= M) {
this.selectorsArrows.disable("next")
} else {
this.selectorsArrows.enable("next")
}
} else {
F = true
}
}
P = S[I]
}
}).jBind(this);
this.selectorsContainer.jAddEvent("touchdrag", J)
},
setupFullScreen: function () {
this.btnFullscreen = y.$new("button").jAddClass("mss-button mss-button-fullscreen mss-button-fullscreen-enter").jAddEvent("tap btnclick", l(function (F) {
var E;
if (3 == F.getButton()) {
return true
}
F.stop();
if (y.browser.mobile) {
this.arrowsWrapper.jRemoveClass("mss-show");
this.arrowsWrapper.jGetSize();
this.arrowsWrapper.jAddClass("mss-show")
}
if (this.isFullScreen) {
if (E = this.fullScreenBox.jFetch("fullscreen:pseudo:event:keydown")) {
y.doc.jRemoveEvent("keydown", E);
this.fullScreenBox.jDel("fullscreen:pseudo:event:keydown")
}
this.exitFullScreen()
} else {
this.enterFullScreen()
}
return false
}).jBind(this));
this.btnFullscreen.append(y.$new("span", {
"class": "mss-button-element"
}))
},
prepareToFullScreen: function () {
this.recoveryPositionAfterDrag && this.recoveryPositionAfterDrag();
if (this.movement && !this.slideEffectMoveing) {
if (this.prevLast > -1) {
this.changeActiveItem(this.prevLast)
}
this.movement = false;
this.captionMovement = false;
this.slideEffectMoveing = false
}
this.effect.stop()
},
enterFullScreen: function () {
this.prepareToFullScreen();
this.enteringFullScreen = true;
var H = l(document).jGetSize(),
G = l(window).jGetScroll(),
F = l(document).jGetFullSize(),
E = window.parent !== window.window;
this.boxSize = this.container.jGetSize();
this.boxBoundaries = this.container.jGetRect();
this.items.jEach(l(function (I) {
I.beforeEnterFullScreen()
}).jBind(this));
if (!this.fullScreenBox) {
this.fullScreenBox = y.$new("div", {}, {
display: "block",
overflow: "hidden",
position: "absolute",
zIndex: 200000,
"vertical-align": "middle",
opacity: 0.3
}).jAddClass("mss-fullscreen mss-" + this.o("orientation"));
if (this.originalNode.jHasClass("mss-control-bar")) {
this.fullScreenBox.jAddClass("mss-control-bar")
}
if (this.selectors) {
this.fullScreenBox.jAddClass("mss-selectors-" + this.selectorsSettings.orientation).jAddClass("mss-selectors-" + this.o("selectors"))
}
if (!y.browser.mobile) {
this.fullScreenBox.jAddClass("mss-desktop")
}
}
this.fullScreenBox.append(this.flexContainer);
this.fullScreenBox.jAppendTo(document.body);
this.fullScreenBox.show();
if (x.browser.features.fullScreen) {
this.fullScreenBox.jSetOpacity("")
}
x.browser.fullScreen.request(this.fullScreenBox, {
onEnter: this.onEnteredFullScreen.jBind(this),
onExit: this.onExitFullScreen.jBind(this),
fallback: function () {
if (!this.fullScreenFX) {
this.fullScreenFX = new y.FX(this.fullScreenBox, {
duration: 400,
transition: y.FX.Transition.cubicOut,
onStart: (function () {
this.fullScreenBox.jSetCss({
width: this.boxSize.width,
height: this.boxSize.height,
top: this.boxBoundaries.top,
left: this.boxBoundaries.left
})
}).jBind(this),
onComplete: (function () {
this.onEnteredFullScreen(true)
}).jBind(this)
})
}
this.fullScreenFX.start({
width: [this.boxSize.width, H.width],
height: [this.boxSize.height, H.height],
top: [this.boxBoundaries.top, 0 + G.y],
left: [this.boxBoundaries.left, 0 + G.x],
opacity: [0.3, 1]
})
}.jBind(this)
})
},
onEnteredFullScreen: function (I) {
var H, E = window.parent !== window.window,
F = null,
G = this.items[this.last];
if (I && !this.isFullScreen && !E) {
this.fullScreenBox.jSetCss({
position: "fixed",
top: 0,
bottom: 0,
left: 0,
right: 0,
width: "auto",
height: "auto"
})
}
this.isFullScreen = true;
this.btnFullscreen && this.btnFullscreen.jRemoveClass("mss-button-fullscreen-enter").jAddClass("mss-button-fullscreen-exit");
if (I && !y.browser.mobile) {
H = function (J) {
if (J.keyCode == 27) {
y.doc.jRemoveEvent("keydown", H);
this.exitFullScreen()
}
}.jBindAsEvent(this);
this.fullScreenBox.jStore("fullscreen:pseudo:event:keydown", H);
y.doc.jAddEvent("keydown", H);
this.leaveFSMessage = new y.Message("Press ESC key to leave full-screen", 4000, this.slidesNode, "mss-message")
}
this.items.jEach(l(function (J) {
J.afterEnterFullScreen()
}).jBind(this));
this.fullScreenBox.jSetCssProp("filter", ""), this.showSelectors();
this.onResize();
this.o("onEnterFullscreen")({
slideShowId: this.id
})
},
exitFullScreen: function () {
this.enteringFullScreen = false;
var F = this.fullScreenBox.jGetSize(),
E = this.fullScreenBox.jGetRect();
this.effect.stop();
this.items.jEach(l(function (G) {
G.beforeExitFullScreen()
}).jBind(this));
this.leaveFSMessage && this.leaveFSMessage.hide(0);
if (x.browser.fullScreen.capable && x.browser.fullScreen.enabled()) {
x.browser.fullScreen.cancel();
if (this.selectors) {
this.scrollSelectors(this.items[this.last].selector)
}
} else {
this.btnFullscreen && this.btnFullscreen.hide();
if (!this.fullScreenExitFX) {
this.fullScreenExitFX = new y.FX(this.fullScreenBox, {
duration: 400,
transition: y.FX.Transition.cubicOut,
onStart: (function () {
this.fullScreenBox.jSetCss({
position: "absolute",
width: F.width,
height: F.height,
top: E.top,
left: E.left
}).jAppendTo(document.body)
}).jBind(this),
onComplete: (function () {
this.selectors && this.selectors.show();
this.onExitFullScreen(true)
}).jBind(this)
})
}
this.fullScreenExitFX.start({
width: [F.width, this.boxSize.width],
height: [F.height, this.boxSize.height],
top: [0 + E.top, this.boxBoundaries.top],
left: [0 + E.left, this.boxBoundaries.left],
opacity: [1, 0.5]
})
}
},
onExitFullScreen: function (G) {
if (!this.fullScreenBox) {
return
}
var E = null,
F = this.items[this.last];
this.prepareToFullScreen();
this.enteringFullScreen = false;
this.isFullScreen = false;
this.container.append(this.flexContainer);
this.fullScreenBox.hide();
this.btnFullscreen && this.btnFullscreen.jRemoveClass("mss-button-fullscreen-exit").jAddClass("mss-button-fullscreen-enter").show();
this.items.jEach(l(function (H) {
H.afterExitFullScreen()
}).jBind(this));
this.showSelectors();
this.readyCalc_ && this.calcThumbWrapSize(this.o("selectors"));
this.onResize();
this.o("onExitFullscreen")({
slideShowId: this.id
})
},
showSelectors: function () {
if (this.selectorsSettings.displayFlag) {
if (this.isFullScreen) {
this.selectors.jSetOpacity(1);
this.selectors.jSetCssProp("visibility", "visible")
} else {
this.selectors.jSetOpacity(0);
this.selectors.jSetCssProp("visibility", "hidden")
}
}
},
play: function () {
this.set("autoplay", true);
this.pause_ = false;
this.recoveryPositionAfterDrag && this.recoveryPositionAfterDrag();
this.jump({
target: "forward"
})
},
pause: function () {
this.set("autoplay", false);
this.pause_ = true;
this.o("onPause")({
slideShowId: this.id
});
this.autoPlay && this.autoPlay.pause()
},
stop: function () {
this.auto_ && clearTimeout(this.auto_);
this.auto_ = false;
this.effect && this.effect.stop();
this.replaceEffect && this.replaceEffect.stop();
this.hold_ = false
},
next: function () {
this.jump({
target: "forward"
})
},
previous: function () {
this.jump({
target: "backward"
})
},
publicJump: function (E) {
!this.itemsCount && (this.itemsCount = this.items.length);
E -= 1;
if (E >= 0 && E < this.itemsCount) {
this.jump(E)
}
},
initPlayPauseButton: function () {
var E = this.playPauseButton.state ? "mss-state-pause" : "mss-state-play";
this.playPauseButton.play = l(function () {
if (!this.playPauseButton.state) {
this.playPauseButton.state = true;
this.playPauseButton.button.jRemoveClass("mss-state-play").jAddClass("mss-state-pause")
}
}).jBind(this);
this.playPauseButton.pause = l(function () {
if (this.playPauseButton.state) {
this.playPauseButton.state = false;
this.playPauseButton.button.jRemoveClass("mss-state-pause").jAddClass("mss-state-play")
}
}).jBind(this);
this.playPauseButton.action = l(function (F) {
F.stop();
if (this.playPauseButton.state) {
this.pause_ = true;
this.playPauseButton.pause();
this.o("onPause")({
slideShowId: this.id
});
this.set("autoplay", false);
this.autoPlay && this.autoPlay.pause();
this.items.jEach(l(function (G) {
G.setAutoplay(false)
}).jBind(this))
} else {
this.pause_ = false;
!this.o("autoplay") && this.set("autoplay", true);
this.playPauseButton.play();
this.startAutoPlay()
}
this.playPauseButton.button.blur()
}).jBind(this);
this.playPauseButton.button = y.$new("button").jAddClass("mss-button mss-button-play " + E).jAddEvent("touchstart pointerdown MSPointerDown mousedown", function (F) {
F.stopDistribution()
}).jAddEvent("click", l(function (F) {
if (3 == F.getButton() || 2 == F.getButton()) {
return true
}
this.playPauseButton.action(F);
if (y.browser.mobile) {
this.arrowsWrapper.jRemoveClass("mss-show");
this.arrowsWrapper.jGetSize();
this.arrowsWrapper.jAddClass("mss-show")
}
}).jBind(this));
l(document).jAddEvent("keydown", l(function (F) {
if (this.o("keyboard")) {
if (32 === F.keyCode && this.isFullscreen) {
F.stop();
this.playPauseButton.action(F)
}
}
}).jBind(this))
},
initAutoPlay: function () {
var E = this.o("autoplay");
if (y.browser.mobile) {
E = false
}
this.autoPlay = new y.Modules.AutoPlay({
time: this.o("slide-duration"),
step: 10,
showModule: this.o("show-loader"),
showLable: E,
classHidden: "mss-hidden",
classDisabled: "mss-disabled"
}, this.slidesNode);
this.autoPlay.bindEvent("stopTimer", l(function () {
var F;
var G;
F = l(function () {
G = Math.rand(0, this.items.length - 1);
if (G == this.items.last) {
return F()
} else {
return G
}
}).jBind(this);
this.jump({
target: (this.o("shuffle") ? F() : "forward")
}, true)
}).jBind(this))
},
startAutoPlay: function (E) {
if (!this.pause_ && this.o("autoplay")) {
this.playPauseButton.play();
(!E && this.slideshowReady) && this.o("onPlay")({
slideShowId: this.id
});
this.autoPlay && this.autoPlay.start();
this.items.jEach(l(function (F) {
F.setAutoplay(true)
}).jBind(this))
}
},
stopAutoPlay: function (E) {
if (this.pause_ && this.o("pause")) {
this.playPauseButton.pause();
this.o("onPause")({
slideShowId: this.id
});
if (this.autoPlay) {
if (E) {
this.autoPlay.stop()
} else {
this.autoPlay.pause()
}
}
this.items.jEach(l(function (F) {
F.setAutoplay(false)
}).jBind(this))
}
},
onResize: function () {
var F = this.container.jGetSize(),
G = this.last >= 0 ? this.last : 0,
E;
this.autoPlay && this.autoPlay.stop();
if (this.o("selectors")) {
this.wrapSelSize = this.selectorsContainer.jGetSize()
}
this.readyCalc_ && this.calcThumbWrapSize(this.o("selectors"));
this.reflowSelectors();
if (this.selectors && this.selectors.jGetCss("display") != "none" && this.last > -1) {
this.items[this.last].selector && this.scrollSelectors(this.items[this.last].selector.node)
}
this.saveProportions(F.width);
if (this.autoPlay && !this.movement) {
this.pause_ = false;
this.startAutoPlay()
}
if (this.o("bullets-preview")) {
this.bulletPreview.onResize()
}
this.items.jEach(l(function (H) {
H.onResize()
}).jBind(this))
},
jAddEvent: function (E, F) {
if (!l(["onPlay", "onPause", "onVideoPlay", "onVideoPause", "onEnterFullscreen", "onExitFullscreen", "onBeforeSlideChange", "onAfterSlideChange"]).contains(E)) {
return
}
this.set(E, F)
},
dispose: function () {
this.pause();
var G = 0,
F = this.cachedCSS.length,
E;
this.stop();
this.arrowsWrapper.jRemoveEvent("animationend");
this.arrowsWrapper.jRemoveEvent("animationstart");
this.arrowsWrapper.jRemoveClass("mss-show");
if (this.fullScreenBox) {
this.fullScreenBox.kill();
this.fullScreenBox = null
}
l(document).jRemoveEvent("keydown", this.keyboardCallback);
l(window).jRemoveEvent("resize", this.resizeCallback);
if (this.autoPlay) {
this.autoPlay.jRemove();
this.autoPlay = null
}
this.items.jEach(function (H) {
H.dispose()
});
l(this.originalNodes).jEach(function (H) {
if (H.parentNode) {
l(H).jRemove()
}
});
y.$A(this.container.childNodes).jEach(function (H) {
l(H).kill()
});
this.container.jSetCss({
width: "",
height: "",
position: "",
display: "",
visibility: "",
transition: ""
});
if (/mss/.test(this.id)) {
this.container.removeAttribute("id")
}
l(this.container).jClearEvents().jRemoveClass().jAddClass(this.originalClasses);
l(this.container).jSetCss({
padding: ""
});
this.container.jDel("slideshow");
l(this.originalNodes).jEach(function (H) {
l(H).jAppendTo(this.container)
}, this);
for (; G < F; G++) {
l("magicslideshow-css-reset-" + this.id).jRemove()
}
return
}
};
y.extend(q.prototype, y.customEvents);

function w(F) {
var E = null;
if (F instanceof q) {
E = F
} else {
if ("element" == y.jTypeOf(l(F))) {
E = l(F).jFetch("slideshow")
}
}
return E
}

function i(F) {
var E = true;
if ("autostart" in F) {
E = F.autostart
}
return E
}

function C(F) {
var E = w(F);
if (!E) {
return
}
return {
play: E.play.jBind(E),
pause: E.pause.jBind(E),
next: E.next.jBind(E),
prev: E.previous.jBind(E),
jump: l(function (G) {
this.publicJump(G)
}).jBind(E),
running: l(function () {
return this.slideshowReady
}).jBind(E),
enterFullscreen: E.enterFullScreen.jBind(E),
exitFullscreen: E.exitFullScreen.jBind(E),
getActiveSlide: l(function () {
return this.last
}).jBind(E),
registerCallback: l(function (H, G) {
this.jAddEvent(H, G)
}).jBind(E)
}
}
var A = [],
r = {
version: "v3.2.12",
mssMagicSlideshowYoutubeApiReady: false,
options: {},
extraOptions: {},
extraOptionsMobile: {},
start: function (K, J) {
var I, G, F, H = y.extend({}, [r.options, window.MagicSlideshowOptions || {}]),
E = y.extend({}, [r.extraOptions, window.MagicSlideshowExtraOptions || {}]);
if (y.browser.touchScreen && y.browser.mobile) {
H = y.extend(H, window.MagicSlideshowOptionsMobile || {});
E = y.extend(E, window.MagicSlideshowExtraOptionsMobile || {})
}
if (arguments[0]) {
F = w(K);
if (!F) {
I = y.extend({}, [H, E[K.id || K] || {}]);
if (J && i(I) || !J) {
A.push(new q(l(K), I))
}
}
} else {
y.$A(document.byClass("MagicSlideshow")).jEach(l(function (L) {
return r.start(L, J)
}).jBind(this))
}
},
stop: function (I) {
var F, G, E, H = [];
if (arguments.length) {
F = w(I);
if (F) {
for (G = 0, E = A.length; G < E; G++) {
if (A[G].$J_UUID != F.$J_UUID) {
H.push(A[G])
} else {
A[G].dispose()
}
}
A = H
}
} else {
return A = l(A).filter(function (J) {
return J.dispose()
})
}
},
refresh: function (E) {
if (E) {
r.stop(l(E));
r.start(l(E), true)
} else {
r.stop();
r.start()
}
},
play: function (F) {
var E;
if (F) {
E = w(F);
if (E) {
E.play()
}
} else {
l(A).jEach(function (G) {
G.play()
})
}
},
pause: function (F) {
var E;
if (F) {
E = w(F);
if (E) {
E.pause()
}
} else {
l(A).jEach(function (G) {
G.pause()
})
}
},
next: function (F) {
var E;
if (F) {
E = w(F);
if (E) {
E.next()
}
} else {
l(A).jEach(function (G) {
G.next()
})
}
},
prev: function (F) {
var E;
if (F) {
E = w(F);
if (E) {
E.previous()
}
} else {
l(A).jEach(function (G) {
G.previous()
})
}
},
jump: function (G, F) {
var E;
if (!F) {
return
}
if (G) {
E = w(G);
if (E) {
E.publicJump(F)
}
} else {
l(A).jEach(function (H) {
H.publicJump(F)
})
}
},
running: function (G) {
var F, E = false;
if (G) {
F = w(G);
if (F) {
E = F.slideshowReady
}
}
return E
},
enterFullscreen: function (F) {
var E;
if (F) {
E = w(F);
if (E) {
E.enterFullScreen()
}
}
},
exitFullscreen: function (F) {
var E;
if (F) {
E = w(F);
if (E) {
E.exitFullScreen()
}
}
},
getActiveSlide: function (G) {
var F = -1,
E;
if (G) {
E = w(G);
if (E) {
F = E.last
}
}
return F
},
getInstance: function (E) {
return C(E)
}
};
l(document).jAddEvent("domready", function () {
e();
u = y.$new("div", {
"class": "magic-hidden-wrapper"
}).append(y.$new("div", {}, {
display: "none",
visibility: "hidden"
}).changeContent(v())).append(y.$new("div", {}, {
display: "none",
visibility: "hidden"
}).append(document.createTextNode(p())));
if (!l("MagicSlideshow_core_styles")) {
var E = y.$new("style", {
id: "MagicSlideshow_core_styles",
type: "text/css"
}).jAppendTo((document.head || document.body), "top");
E.innerHTML = n
}
r.start(undefined, true)
});
return r
})();
Sponsors
Secure stores, happy shoppers. We are Sansec.

Credits
Project maintained by lelinhtinh
Hosted on GitHub Pages

Icons made by Eucalyp

Back to list