>>24)&16711935|(L<<24|L>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P.push(B),P.push(L)}return new s.init(P,T)},clone:function(){for(var k=l.clone.call(this),x=k._state=this._state.slice(0),w=0;w<25;w++)x[w]=x[w].clone();return k}});i.SHA3=l._createHelper(S),i.HmacSHA3=l._createHmacHelper(S)})(Math),n.SHA3})})(kE)),kE.exports}var xE={exports:{}},yut=xE.exports,Bie;function but(){return Bie||(Bie=1,(function(e,t){(function(n,r){e.exports=r($i())})(yut,function(n){/** @preserve
+ (c) 2012 by Cédric Mesnil. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */return(function(r){var i=n,a=i.lib,s=a.WordArray,l=a.Hasher,c=i.algo,d=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),S=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,P){for(var M=0;M<16;M++){var O=P+M,L=D[O];D[O]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}var B=this._hash.words,j=g.words,H=y.words,U=d.words,W=h.words,G=p.words,re=v.words,se,ee,q,Q,oe,Y,ie,Se,Be,me;Y=se=B[0],ie=ee=B[1],Se=q=B[2],Be=Q=B[3],me=oe=B[4];for(var Re,M=0;M<80;M+=1)Re=se+D[P+U[M]]|0,M<16?Re+=k(ee,q,Q)+j[0]:M<32?Re+=x(ee,q,Q)+j[1]:M<48?Re+=w(ee,q,Q)+j[2]:M<64?Re+=E(ee,q,Q)+j[3]:Re+=_(ee,q,Q)+j[4],Re=Re|0,Re=T(Re,G[M]),Re=Re+oe|0,se=oe,oe=Q,Q=T(q,10),q=ee,ee=Re,Re=Y+D[P+W[M]]|0,M<16?Re+=_(ie,Se,Be)+H[0]:M<32?Re+=E(ie,Se,Be)+H[1]:M<48?Re+=w(ie,Se,Be)+H[2]:M<64?Re+=x(ie,Se,Be)+H[3]:Re+=k(ie,Se,Be)+H[4],Re=Re|0,Re=T(Re,re[M]),Re=Re+me|0,Y=me,me=Be,Be=T(Se,10),Se=ie,ie=Re;Re=B[1]+q+Be|0,B[1]=B[2]+Q+me|0,B[2]=B[3]+oe+Y|0,B[3]=B[4]+se+ie|0,B[4]=B[0]+ee+Se|0,B[0]=Re},_doFinalize:function(){var D=this._data,P=D.words,M=this._nDataBytes*8,O=D.sigBytes*8;P[O>>>5]|=128<<24-O%32,P[(O+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,D.sigBytes=(P.length+1)*4,this._process();for(var L=this._hash,B=L.words,j=0;j<5;j++){var H=B[j];B[j]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return L},clone:function(){var D=l.clone.call(this);return D._hash=this._hash.clone(),D}});function k(D,P,M){return D^P^M}function x(D,P,M){return D&P|~D&M}function w(D,P,M){return(D|~P)^M}function E(D,P,M){return D&M|P&~M}function _(D,P,M){return D^(P|~M)}function T(D,P){return D<>>32-P}i.RIPEMD160=l._createHelper(S),i.HmacRIPEMD160=l._createHmacHelper(S)})(),n.RIPEMD160})})(xE)),xE.exports}var wE={exports:{}},_ut=wE.exports,Nie;function yW(){return Nie||(Nie=1,(function(e,t){(function(n,r){e.exports=r($i())})(_ut,function(n){(function(){var r=n,i=r.lib,a=i.Base,s=r.enc,l=s.Utf8,c=r.algo;c.HMAC=a.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=l.parse(h));var p=d.blockSize,v=p*4;h.sigBytes>v&&(h=d.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),y=this._iKey=h.clone(),S=g.words,k=y.words,x=0;x
>>2]&255;L.sigBytes-=B}};a.BlockCipher=g.extend({cfg:g.cfg.extend({mode:k,padding:w}),reset:function(){var L;g.reset.call(this);var B=this.cfg,j=B.iv,H=B.mode;this._xformMode==this._ENC_XFORM_MODE?L=H.createEncryptor:(L=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==L?this._mode.init(this,j&&j.words):(this._mode=L.call(H,this,j&&j.words),this._mode.__creator=L)},_doProcessBlock:function(L,B){this._mode.processBlock(L,B)},_doFinalize:function(){var L,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),L=this._process(!0)):(L=this._process(!0),B.unpad(L)),L},blockSize:128/32});var E=a.CipherParams=s.extend({init:function(L){this.mixIn(L)},toString:function(L){return(L||this.formatter).stringify(this)}}),_=i.format={},T=_.OpenSSL={stringify:function(L){var B,j=L.ciphertext,H=L.salt;return H?B=l.create([1398893684,1701076831]).concat(H).concat(j):B=j,B.toString(h)},parse:function(L){var B,j=h.parse(L),H=j.words;return H[0]==1398893684&&H[1]==1701076831&&(B=l.create(H.slice(2,4)),H.splice(0,4),j.sigBytes-=16),E.create({ciphertext:j,salt:B})}},D=a.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(L,B,j,H){H=this.cfg.extend(H);var U=L.createEncryptor(j,H),W=U.finalize(B),G=U.cfg;return E.create({ciphertext:W,key:j,iv:G.iv,algorithm:L,mode:G.mode,padding:G.padding,blockSize:L.blockSize,formatter:H.format})},decrypt:function(L,B,j,H){H=this.cfg.extend(H),B=this._parse(B,H.format);var U=L.createDecryptor(j,H).finalize(B.ciphertext);return U},_parse:function(L,B){return typeof L=="string"?B.parse(L,this):L}}),P=i.kdf={},M=P.OpenSSL={execute:function(L,B,j,H,U){if(H||(H=l.random(64/8)),U)var W=v.create({keySize:B+j,hasher:U}).compute(L,H);else var W=v.create({keySize:B+j}).compute(L,H);var G=l.create(W.words.slice(B),j*4);return W.sigBytes=B*4,E.create({key:W,iv:G,salt:H})}},O=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:M}),encrypt:function(L,B,j,H){H=this.cfg.extend(H);var U=H.kdf.execute(j,L.keySize,L.ivSize,H.salt,H.hasher);H.iv=U.iv;var W=D.encrypt.call(this,L,B,U.key,H);return W.mixIn(U),W},decrypt:function(L,B,j,H){H=this.cfg.extend(H),B=this._parse(B,H.format);var U=H.kdf.execute(j,L.keySize,L.ivSize,B.salt,H.hasher);H.iv=U.iv;var W=D.decrypt.call(this,L,B,U.key,H);return W}})})()})})(TE)),TE.exports}var AE={exports:{}},Cut=AE.exports,zie;function Eut(){return zie||(zie=1,(function(e,t){(function(n,r,i){e.exports=r($i(),Ia())})(Cut,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize;i.call(this,a,s,c,l),this._prevBlock=a.slice(s,s+c)}}),r.Decryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize,d=a.slice(s,s+c);i.call(this,a,s,c,l),this._prevBlock=d}});function i(a,s,l,c){var d,h=this._iv;h?(d=h.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var p=0;p>24&255)===255){var c=l>>16&255,d=l>>8&255,h=l&255;c===255?(c=0,d===255?(d=0,h===255?h=0:++h):++d):++c,l=0,l+=c<<16,l+=d<<8,l+=h}else l+=1<<24;return l}function a(l){return(l[0]=i(l[0]))===0&&(l[1]=i(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,c){var d=this._cipher,h=d.blockSize,p=this._iv,v=this._counter;p&&(v=this._counter=p.slice(0),this._iv=void 0),a(v);var g=v.slice(0);d.encryptBlock(g,0);for(var y=0;y>>2]|=l<<24-c%4*8,r.sigBytes+=l},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})})(RE)),RE.exports}var ME={exports:{}},But=ME.exports,qie;function Nut(){return qie||(qie=1,(function(e,t){(function(n,r,i){e.exports=r($i(),Ia())})(But,function(n){return n.pad.Iso10126={pad:function(r,i){var a=i*4,s=a-r.sigBytes%a;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})})(ME)),ME.exports}var $E={exports:{}},Fut=$E.exports,Yie;function jut(){return Yie||(Yie=1,(function(e,t){(function(n,r,i){e.exports=r($i(),Ia())})(Fut,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})($E)),$E.exports}var OE={exports:{}},Vut=OE.exports,Xie;function zut(){return Xie||(Xie=1,(function(e,t){(function(n,r,i){e.exports=r($i(),Ia())})(Vut,function(n){return n.pad.ZeroPadding={pad:function(r,i){var a=i*4;r.clamp(),r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){for(var i=r.words,a=r.sigBytes-1,a=r.sigBytes-1;a>=0;a--)if(i[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}},n.pad.ZeroPadding})})(OE)),OE.exports}var BE={exports:{}},Uut=BE.exports,Zie;function Hut(){return Zie||(Zie=1,(function(e,t){(function(n,r,i){e.exports=r($i(),Ia())})(Uut,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(BE)),BE.exports}var NE={exports:{}},Wut=NE.exports,Jie;function Gut(){return Jie||(Jie=1,(function(e,t){(function(n,r,i){e.exports=r($i(),Ia())})(Wut,function(n){return(function(r){var i=n,a=i.lib,s=a.CipherParams,l=i.enc,c=l.Hex,d=i.format;d.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var p=c.parse(h);return s.create({ciphertext:p})}}})(),n.format.Hex})})(NE)),NE.exports}var FE={exports:{}},Kut=FE.exports,Qie;function qut(){return Qie||(Qie=1,(function(e,t){(function(n,r,i){e.exports=r($i(),og(),sg(),W0(),Ia())})(Kut,function(n){return(function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo,l=[],c=[],d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=[];(function(){for(var E=[],_=0;_<256;_++)_<128?E[_]=_<<1:E[_]=_<<1^283;for(var T=0,D=0,_=0;_<256;_++){var P=D^D<<1^D<<2^D<<3^D<<4;P=P>>>8^P&255^99,l[T]=P,c[P]=T;var M=E[T],O=E[M],L=E[O],B=E[P]*257^P*16843008;d[T]=B<<24|B>>>8,h[T]=B<<16|B>>>16,p[T]=B<<8|B>>>24,v[T]=B;var B=L*16843009^O*65537^M*257^T*16843008;g[P]=B<<24|B>>>8,y[P]=B<<16|B>>>16,S[P]=B<<8|B>>>24,k[P]=B,T?(T=M^E[E[E[L^M]]],D^=E[E[D]]):T=D=1}})();var x=[0,1,2,4,8,16,32,64,128,27,54],w=s.AES=a.extend({_doReset:function(){var E;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,T=_.words,D=_.sigBytes/4,P=this._nRounds=D+6,M=(P+1)*4,O=this._keySchedule=[],L=0;L6&&L%D==4&&(E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255]):(E=E<<8|E>>>24,E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255],E^=x[L/D|0]<<24),O[L]=O[L-D]^E);for(var B=this._invKeySchedule=[],j=0;j>>24]]^y[l[E>>>16&255]]^S[l[E>>>8&255]]^k[l[E&255]]}}},encryptBlock:function(E,_){this._doCryptBlock(E,_,this._keySchedule,d,h,p,v,l)},decryptBlock:function(E,_){var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T,this._doCryptBlock(E,_,this._invKeySchedule,g,y,S,k,c);var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T},_doCryptBlock:function(E,_,T,D,P,M,O,L){for(var B=this._nRounds,j=E[_]^T[0],H=E[_+1]^T[1],U=E[_+2]^T[2],W=E[_+3]^T[3],G=4,re=1;re>>24]^P[H>>>16&255]^M[U>>>8&255]^O[W&255]^T[G++],ee=D[H>>>24]^P[U>>>16&255]^M[W>>>8&255]^O[j&255]^T[G++],q=D[U>>>24]^P[W>>>16&255]^M[j>>>8&255]^O[H&255]^T[G++],Q=D[W>>>24]^P[j>>>16&255]^M[H>>>8&255]^O[U&255]^T[G++];j=se,H=ee,U=q,W=Q}var se=(L[j>>>24]<<24|L[H>>>16&255]<<16|L[U>>>8&255]<<8|L[W&255])^T[G++],ee=(L[H>>>24]<<24|L[U>>>16&255]<<16|L[W>>>8&255]<<8|L[j&255])^T[G++],q=(L[U>>>24]<<24|L[W>>>16&255]<<16|L[j>>>8&255]<<8|L[H&255])^T[G++],Q=(L[W>>>24]<<24|L[j>>>16&255]<<16|L[H>>>8&255]<<8|L[U&255])^T[G++];E[_]=se,E[_+1]=ee,E[_+2]=q,E[_+3]=Q},keySize:256/32});r.AES=a._createHelper(w)})(),n.AES})})(FE)),FE.exports}var jE={exports:{}},Yut=jE.exports,eoe;function Xut(){return eoe||(eoe=1,(function(e,t){(function(n,r,i){e.exports=r($i(),og(),sg(),W0(),Ia())})(Yut,function(n){return(function(){var r=n,i=r.lib,a=i.WordArray,s=i.BlockCipher,l=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],v=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var x=this._key,w=x.words,E=[],_=0;_<56;_++){var T=c[_]-1;E[_]=w[T>>>5]>>>31-T%32&1}for(var D=this._subKeys=[],P=0;P<16;P++){for(var M=D[P]=[],O=h[P],_=0;_<24;_++)M[_/6|0]|=E[(d[_]-1+O)%28]<<31-_%6,M[4+(_/6|0)]|=E[28+(d[_+24]-1+O)%28]<<31-_%6;M[0]=M[0]<<1|M[0]>>>31;for(var _=1;_<7;_++)M[_]=M[_]>>>(_-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var L=this._invSubKeys=[],_=0;_<16;_++)L[_]=D[15-_]},encryptBlock:function(x,w){this._doCryptBlock(x,w,this._subKeys)},decryptBlock:function(x,w){this._doCryptBlock(x,w,this._invSubKeys)},_doCryptBlock:function(x,w,E){this._lBlock=x[w],this._rBlock=x[w+1],y.call(this,4,252645135),y.call(this,16,65535),S.call(this,2,858993459),S.call(this,8,16711935),y.call(this,1,1431655765);for(var _=0;_<16;_++){for(var T=E[_],D=this._lBlock,P=this._rBlock,M=0,O=0;O<8;O++)M|=p[O][((P^T[O])&v[O])>>>0];this._lBlock=P,this._rBlock=D^M}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,y.call(this,1,1431655765),S.call(this,8,16711935),S.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),x[w]=this._lBlock,x[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(x,w){var E=(this._lBlock>>>x^this._rBlock)&w;this._rBlock^=E,this._lBlock^=E<>>x^this._lBlock)&w;this._lBlock^=E,this._rBlock^=E<192.");var E=w.slice(0,2),_=w.length<4?w.slice(0,2):w.slice(2,4),T=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=g.createEncryptor(a.create(E)),this._des2=g.createEncryptor(a.create(_)),this._des3=g.createEncryptor(a.create(T))},encryptBlock:function(x,w){this._des1.encryptBlock(x,w),this._des2.decryptBlock(x,w),this._des3.encryptBlock(x,w)},decryptBlock:function(x,w){this._des3.decryptBlock(x,w),this._des2.encryptBlock(x,w),this._des1.decryptBlock(x,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(k)})(),n.TripleDES})})(jE)),jE.exports}var VE={exports:{}},Zut=VE.exports,toe;function Jut(){return toe||(toe=1,(function(e,t){(function(n,r,i){e.exports=r($i(),og(),sg(),W0(),Ia())})(Zut,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=s.RC4=a.extend({_doReset:function(){for(var h=this._key,p=h.words,v=h.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,S=0;y<256;y++){var k=y%v,x=p[k>>>2]>>>24-k%4*8&255;S=(S+g[y]+x)%256;var w=g[y];g[y]=g[S],g[S]=w}this._i=this._j=0},_doProcessBlock:function(h,p){h[p]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,p=this._i,v=this._j,g=0,y=0;y<4;y++){p=(p+1)%256,v=(v+h[p])%256;var S=h[p];h[p]=h[v],h[v]=S,g|=h[(h[p]+h[v])%256]<<24-y*8}return this._i=p,this._j=v,g}r.RC4=a._createHelper(l);var d=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=a._createHelper(d)})(),n.RC4})})(VE)),VE.exports}var zE={exports:{}},Qut=zE.exports,noe;function ect(){return noe||(noe=1,(function(e,t){(function(n,r,i){e.exports=r($i(),og(),sg(),W0(),Ia())})(Qut,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.Rabbit=a.extend({_doReset:function(){for(var v=this._key.words,g=this.cfg.iv,y=0;y<4;y++)v[y]=(v[y]<<8|v[y]>>>24)&16711935|(v[y]<<24|v[y]>>>8)&4278255360;var S=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],k=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)k[y]^=S[y+4&7];if(g){var x=g.words,w=x[0],E=x[1],_=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;k[0]^=_,k[1]^=D,k[2]^=T,k[3]^=P,k[4]^=_,k[5]^=D,k[6]^=T,k[7]^=P;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,x=S>>>16,w=((k*k>>>17)+k*x>>>15)+x*x,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=w^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=a._createHelper(h)})(),n.Rabbit})})(zE)),zE.exports}var UE={exports:{}},tct=UE.exports,roe;function nct(){return roe||(roe=1,(function(e,t){(function(n,r,i){e.exports=r($i(),og(),sg(),W0(),Ia())})(tct,function(n){return(function(){var r=n,i=r.lib,a=i.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.RabbitLegacy=a.extend({_doReset:function(){var v=this._key.words,g=this.cfg.iv,y=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],S=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var k=0;k<4;k++)p.call(this);for(var k=0;k<8;k++)S[k]^=y[k+4&7];if(g){var x=g.words,w=x[0],E=x[1],_=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;S[0]^=_,S[1]^=D,S[2]^=T,S[3]^=P,S[4]^=_,S[5]^=D,S[6]^=T,S[7]^=P;for(var k=0;k<4;k++)p.call(this)}},_doProcessBlock:function(v,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=v[y]+g[y],k=S&65535,x=S>>>16,w=((k*k>>>17)+k*x>>>15)+x*x,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=w^E}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=a._createHelper(h)})(),n.RabbitLegacy})})(UE)),UE.exports}var HE={exports:{}},rct=HE.exports,ioe;function ict(){return ioe||(ioe=1,(function(e,t){(function(n,r,i){e.exports=r($i(),og(),sg(),W0(),Ia())})(rct,function(n){return(function(){var r=n,i=r.lib,a=i.BlockCipher,s=r.algo;const l=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var h={pbox:[],sbox:[]};function p(k,x){let w=x>>24&255,E=x>>16&255,_=x>>8&255,T=x&255,D=k.sbox[0][w]+k.sbox[1][E];return D=D^k.sbox[2][_],D=D+k.sbox[3][T],D}function v(k,x,w){let E=x,_=w,T;for(let D=0;D1;--D)E=E^k.pbox[D],_=p(k,E)^_,T=E,E=_,_=T;return T=E,E=_,_=T,_=_^k.pbox[1],E=E^k.pbox[0],{left:E,right:_}}function y(k,x,w){for(let P=0;P<4;P++){k.sbox[P]=[];for(let M=0;M<256;M++)k.sbox[P][M]=d[P][M]}let E=0;for(let P=0;P=w&&(E=0);let _=0,T=0,D=0;for(let P=0;Psoe.enc.Base64.stringify(soe.enc.Utf8.parse(e)),lct=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return Ame(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Ip=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),uct=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},cct={NORMAL:"normal"},dct=()=>({vod_id:"",vod_name:"",vod_pic:"",vod_remarks:"",vod_content:"",vod_play_from:"",vod_play_url:"",vod_time:"",vod_year:"",vod_area:"",vod_lang:"",vod_actor:"",vod_director:"",vod_writer:"",vod_blurb:"",vod_class:"",vod_tag:"",vod_score:"",vod_hits:0,vod_duration:"",vod_total:0,vod_serial:0,vod_tv:"",vod_weekday:"",vod_status:cct.NORMAL}),fct=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),hct=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:"",more:null});class pct{constructor(){this.configUrl=null,this.configData=null,this.lastFetchTime=null,this.cacheExpiry=300*1e3,this.liveConfigUrl=null,this.loadConfigFromStorage()}async setConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("配置地址格式不正确,请输入有效的HTTP/HTTPS地址");if(!await this.validateConfigUrl(t))throw new Error("配置地址无法访问或数据格式不正确");return this.configUrl=t,this.saveConfigToStorage(),await this.autoSetLiveConfigUrl(),console.log("配置地址设置成功:",t),!0}catch(n){throw console.error("设置配置地址失败:",n),n}}async setLiveConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("直播配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("直播配置地址格式不正确,请输入有效的HTTP/HTTPS地址");return this.liveConfigUrl=t,this.saveConfigToStorage(),console.log("直播配置地址设置成功:",t),!0}catch(n){throw console.error("设置直播配置地址失败:",n),n}}getLiveConfigUrl(){return this.liveConfigUrl}async autoSetLiveConfigUrl(){try{if(this.liveConfigUrl)return!1;const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("自动设置直播配置地址成功:",n.url),!0)}catch(t){return console.error("自动设置直播配置地址失败:",t),!1}}async resetLiveConfigUrl(){try{const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接,无法重置"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url,无法重置"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("直播配置地址重置成功:",n.url),!0)}catch(t){return console.error("重置直播配置地址失败:",t),!1}}getConfigUrl(){return this.configUrl}async validateConfigUrl(t){try{const n=await so.get(t,{timeout:1e4,headers:{Accept:"application/json"}});if(!n.data)return!1;const r=n.data;if(!r.sites||!Array.isArray(r.sites))return!1;if(r.sites.length>0){const i=r.sites[0];if(!i.key||!i.name||!i.api)return!1}return!0}catch(n){return console.error("验证配置地址失败:",n),!1}}async getConfigData(t=!1){try{if(!this.configUrl)throw new Error("未设置配置地址");const n=Date.now(),r=this.configData&&this.lastFetchTime&&n-this.lastFetchTime{try{this.addSite(r)?n.success++:(n.failed++,n.errors.push(`第${i+1}个站点添加失败`))}catch(a){n.failed++,n.errors.push(`第${i+1}个站点添加失败: ${a.message}`)}}),console.log("批量导入站点完成:",n),n}exportSites(){return this.getAllSites()}async testSiteConnection(t){const n=this.sites.get(t);if(!n)throw new Error("站点不存在");try{const r=await qlt(n.key,"",{method:"GET",params:{test:!0}});return{success:!0,message:"连接成功",responseTime:Date.now(),data:r}}catch(r){return{success:!1,message:r.message||"连接失败",error:r}}}getSiteStats(){const t=this.getAllSites();return{total:t.length,searchable:t.filter(n=>n.searchable).length,filterable:t.filter(n=>n.filterable).length,quickSearch:t.filter(n=>n.quickSearch).length,byType:this.groupSitesByType(t)}}groupSitesByType(t){const n={};return t.forEach(r=>{const i=r.type||0;n[i]||(n[i]=[]),n[i].push(r)}),n}searchSites(t){if(!t||t.trim().length===0)return this.getAllSites();const n=t.trim().toLowerCase();return this.getAllSites().filter(r=>r.name.toLowerCase().includes(n)||r.key.toLowerCase().includes(n)||r.api&&r.api.toLowerCase().includes(n))}formatSiteInfo(t){const n=hct();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n.searchable=t.searchable?1:0,n.quickSearch=t.quickSearch?1:0,n.filterable=t.filterable?1:0,n.type=parseInt(t.type)||0,n.order=parseInt(t.order)||0,n}loadSitesFromStorage(){try{const t=localStorage.getItem("drplayer_sites"),n=localStorage.getItem("drplayer_current_site");t&&JSON.parse(t).forEach(i=>{this.sites.set(i.key,i)}),n&&(this.currentSite=this.sites.get(n)),console.log("从本地存储加载站点配置成功")}catch(t){console.error("加载站点配置失败:",t)}}saveSitesToStorage(){try{const t=this.getAllSites();localStorage.setItem("drplayer_sites",JSON.stringify(t)),this.currentSite?localStorage.setItem("drplayer_current_site",this.currentSite.key):localStorage.removeItem("drplayer_current_site"),console.log("保存站点配置到本地存储成功")}catch(t){console.error("保存站点配置失败:",t)}}emitSiteChange(t){console.log("站点已切换:",t.name),typeof window<"u"&&window.dispatchEvent(new CustomEvent("siteChange",{detail:{site:t}}))}clearAllSites(){this.sites.clear(),this.currentSite=null,this.saveSitesToStorage(),console.log("已清空所有站点配置")}async initializeFromConfig(){try{yl.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await yl.getSites(t);if(n&&n.length>0){const r=this.currentSite,i=Array.from(this.sites.values()).filter(a=>a.isLocal);return this.sites.clear(),i.forEach(a=>{this.sites.set(a.key,a)}),n.forEach(a=>{const s=this.formatSiteInfo(a);s.isFromConfig=!0,this.sites.set(s.key,s)}),this.handleSmartSiteSwitch(r),this.saveSitesToStorage(),console.log(`从配置加载了 ${n.length} 个站点`),this.emitSitesUpdate(),n}return[]}catch(n){throw console.error("从配置加载站点失败:",n),n}}async refreshConfig(){try{return await this.loadSitesFromConfig(!0)}catch(t){throw console.error("刷新配置失败:",t),t}}getConfigStatus(){return yl.getConfigStatus()}async setConfigUrl(t){try{const n=await yl.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return yl.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}handleSmartSiteSwitch(t){let n=!1;if(t&&t.key)if(this.sites.has(t.key))this.currentSite=this.sites.get(t.key),console.log("保持当前源:",this.currentSite.name);else{const i=this.getAllSites();if(i.length>0){const a=i.find(s=>s.type===4)||i[0];this.currentSite=a,n=!0,console.log("自动切换到新源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}else{const r=this.getAllSites();if(r.length>0){const i=r.find(a=>a.type===4)||r[0];this.currentSite=i,n=!0,console.log("设置默认源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}n&&this.emitReloadSource()}emitReloadSource(){typeof window<"u"&&(window.dispatchEvent(new CustomEvent("reloadSource",{detail:{site:this.currentSite,timestamp:Date.now()}})),console.log("触发重载源事件"))}}const Zo=new vct,or=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},mct=Ce({name:"SearchSettingsModal",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:t}){const n=le(!1),r=le([]),i=le([]),a=le(!1),s=le(""),l=F(()=>i.value.length>0&&i.value.length{if(!s.value.trim())return r.value;const E=s.value.toLowerCase().trim();return r.value.filter(_=>_.name.toLowerCase().includes(E)||_.api&&_.api.toLowerCase().includes(E)||_.group&&_.group.toLowerCase().includes(E)||_.key.toLowerCase().includes(E))}),d=()=>{try{const E=Zo.getAllSites();r.value=E.filter(_=>_.searchable&&_.searchable!==0).map(_=>({key:_.key,name:_.name||_.key,api:_.api,group:_.group,searchable:_.searchable,quickSearch:_.quickSearch})),console.log("可用搜索源:",r.value)}catch(E){console.error("加载搜索源失败:",E),yt.error("加载搜索源失败"),r.value=[]}},h=()=>{try{const E=localStorage.getItem("searchAggregationSettings");if(E){const _=JSON.parse(E);if(_&&Array.isArray(_.selectedSources)){const T=_.selectedSources.filter(D=>r.value.some(P=>P.key===D));i.value=T,console.log("已加载搜索设置:",{selectedSources:T})}else i.value=r.value.map(T=>T.key),console.log("设置格式无效,使用默认配置")}else i.value=r.value.map(_=>_.key),console.log("未找到保存的设置,使用默认配置");i.value.length===0&&r.value.length>0&&(i.value=[r.value[0].key],console.log("没有有效的选中源,选择第一个可用源")),p()}catch(E){console.error("加载搜索设置失败:",E),i.value=r.value.map(_=>_.key),p()}},p=()=>{const E=c.value.map(T=>T.key),_=i.value.filter(T=>E.includes(T)).length;a.value=_===c.value.length&&c.value.length>0},v=E=>{const _=c.value.map(T=>T.key);if(E){const T=[...i.value];_.forEach(D=>{T.includes(D)||T.push(D)}),i.value=T}else i.value=i.value.filter(T=>!_.includes(T))},g=()=>{p()},y=()=>{d(),yt.success("已刷新搜索源列表")},S=()=>{i.value=r.value.map(E=>E.key),p(),yt.info("已恢复默认选择,点击“确定”后保存")},k=()=>{p()},x=()=>{if(i.value.length===0){yt.warning("请至少选择一个搜索源");return}const E={selectedSources:i.value,updatedAt:Date.now()};try{localStorage.setItem("searchAggregationSettings",JSON.stringify(E)),console.log("搜索设置已保存:",E)}catch(_){console.error("保存搜索设置失败:",_),yt.error("保存设置失败");return}t("confirm",E),n.value=!1},w=()=>{n.value=!1,h()};return It(()=>e.visible,E=>{n.value=E,E&&(d(),h())}),It(n,E=>{t("update:visible",E)}),It(i,()=>{p()},{deep:!0}),It(c,()=>{p()},{deep:!0}),dn(()=>{d()}),{modalVisible:n,availableSources:r,filteredSources:c,selectedSources:i,selectAll:a,indeterminate:l,searchFilter:s,handleSelectAll:v,handleSourceChange:g,refreshSources:y,resetToDefault:S,onSearchFilterChange:k,handleConfirm:x,handleCancel:w}}}),gct={class:"search-settings"},yct={class:"settings-header"},bct={class:"header-right"},_ct={class:"search-tip"},Sct={class:"sources-section"},kct={class:"section-header"},xct={class:"select-all-container"},wct={class:"selected-count"},Cct={class:"header-actions"},Ect={class:"search-filter-container"},Tct={class:"sources-list"},Act={class:"source-info"},Ict={class:"source-main"},Lct={class:"source-name"},Dct={class:"source-tags"},Pct={class:"source-meta"},Rct={key:0,class:"meta-item"},Mct={key:1,class:"meta-item"},$ct={key:0,class:"empty-sources"},Oct={key:0},Bct={key:1},Nct={key:2,class:"empty-desc"},Fct={key:3,class:"empty-desc"},jct={class:"modal-footer"};function Vct(e,t,n,r,i,a){const s=Ie("icon-info-circle"),l=Ie("a-checkbox"),c=Ie("icon-undo"),d=Ie("a-button"),h=Ie("icon-refresh"),p=Ie("icon-search"),v=Ie("a-input"),g=Ie("a-tag"),y=Ie("icon-empty"),S=Ie("a-modal");return z(),Qe(S,{visible:e.modalVisible,"onUpdate:visible":t[3]||(t[3]=k=>e.modalVisible=k),title:"搜索设置",width:800,"mask-closable":!1,onOk:e.handleConfirm,onCancel:e.handleCancel},{footer:ue(()=>[I("div",jct,[$(d,{onClick:e.handleCancel},{default:ue(()=>[...t[12]||(t[12]=[Ge("取消",-1)])]),_:1},8,["onClick"]),$(d,{type:"primary",onClick:e.handleConfirm,disabled:e.selectedSources.length===0},{default:ue(()=>[Ge(" 确定 ("+Ve(e.selectedSources.length)+") ",1)]),_:1},8,["onClick","disabled"])])]),default:ue(()=>[I("div",gct,[I("div",yct,[t[5]||(t[5]=I("div",{class:"header-left"},[I("h4",null,"选择搜索源"),I("p",{class:"settings-desc"},"选择要参与聚合搜索的数据源")],-1)),I("div",bct,[I("div",_ct,[$(s,{class:"tip-icon"}),t[4]||(t[4]=I("span",{class:"tip-text"},"只有 searchable 属性不为 0 的源才支持搜索功能",-1))])])]),I("div",Sct,[I("div",kct,[I("div",xct,[$(l,{modelValue:e.selectAll,"onUpdate:modelValue":t[0]||(t[0]=k=>e.selectAll=k),indeterminate:e.indeterminate,onChange:e.handleSelectAll},{default:ue(()=>[...t[6]||(t[6]=[Ge(" 全选 ",-1)])]),_:1},8,["modelValue","indeterminate","onChange"]),I("span",wct," 已选择 "+Ve(e.selectedSources.length)+" / "+Ve(e.filteredSources.length)+" 个源 ",1)]),I("div",Cct,[$(d,{size:"small",onClick:e.resetToDefault},{icon:ue(()=>[$(c)]),default:ue(()=>[t[7]||(t[7]=Ge(" 重置 ",-1))]),_:1},8,["onClick"]),$(d,{size:"small",onClick:e.refreshSources},{icon:ue(()=>[$(h)]),default:ue(()=>[t[8]||(t[8]=Ge(" 刷新 ",-1))]),_:1},8,["onClick"])])]),I("div",Ect,[$(v,{modelValue:e.searchFilter,"onUpdate:modelValue":t[1]||(t[1]=k=>e.searchFilter=k),placeholder:"搜索源名称、API或分组...","allow-clear":"",onInput:e.onSearchFilterChange},{prefix:ue(()=>[$(p)]),_:1},8,["modelValue","onInput"])]),I("div",Tct,[(z(!0),Z(Rt,null,un(e.filteredSources,k=>(z(),Z("div",{key:k.key,class:"source-item"},[$(l,{modelValue:e.selectedSources,"onUpdate:modelValue":t[2]||(t[2]=x=>e.selectedSources=x),value:k.key,onChange:e.handleSourceChange},{default:ue(()=>[I("div",Act,[I("div",Ict,[I("span",Lct,Ve(k.name),1),I("div",Dct,[k.quickSearch?(z(),Qe(g,{key:0,color:"green",size:"small"},{default:ue(()=>[...t[9]||(t[9]=[Ge(" 快搜 ",-1)])]),_:1})):Le("",!0),k.searchable===1?(z(),Qe(g,{key:1,color:"blue",size:"small"},{default:ue(()=>[...t[10]||(t[10]=[Ge(" 标准搜索 ",-1)])]),_:1})):Le("",!0),k.searchable===2?(z(),Qe(g,{key:2,color:"orange",size:"small"},{default:ue(()=>[...t[11]||(t[11]=[Ge(" 高级搜索 ",-1)])]),_:1})):Le("",!0)])]),I("div",Pct,[k.api?(z(),Z("span",Rct,Ve(k.api),1)):Le("",!0),k.group?(z(),Z("span",Mct,Ve(k.group),1)):Le("",!0)])])]),_:2},1032,["modelValue","value","onChange"])]))),128))]),e.filteredSources.length===0?(z(),Z("div",$ct,[$(y,{class:"empty-icon"}),e.availableSources.length===0?(z(),Z("p",Oct,"暂无可用的搜索源")):(z(),Z("p",Bct,"未找到匹配的搜索源")),e.availableSources.length===0?(z(),Z("p",Nct,"请确保已配置支持搜索的数据源")):(z(),Z("p",Fct,"请尝试其他关键词或清空搜索条件"))])):Le("",!0)])])]),_:1},8,["visible","onOk","onCancel"])}const Ime=or(mct,[["render",Vct],["__scopeId","data-v-2ba355df"]]),zct=Ce({components:{SearchSettingsModal:Ime},setup(){const e=s3(),t=va(),n=le(!1),r=le(""),i=F(()=>e.name==="SearchAggregation"),a=F(()=>{if(c.value,!i.value)return!1;if(e.query.keyword)return!0;try{const h=localStorage.getItem("pageState_searchAggregation");if(h){const p=JSON.parse(h);return p.hasSearched&&p.searchKeyword}}catch(h){console.error("检查搜索状态失败:",h)}return!1}),s=()=>{try{const h=localStorage.getItem("appSettings");if(h)return JSON.parse(h).searchAggregation||!1}catch(h){console.error("获取聚搜状态失败:",h)}return!1},l=le(s()),c=le(0),d=()=>{l.value=s(),c.value++};return window.addEventListener("storage",d),setInterval(d,1e3),It(()=>e.query.keyword,h=>{h&&i.value&&(r.value=h)},{immediate:!0}),It(()=>e.name,h=>{h!=="SearchAggregation"&&(r.value="")}),{showConfirmModal:n,searchAggregationEnabled:l,searchValue:r,showSearchSettings:le(!1),isSearchAggregationPage:i,hasSearchResults:a,router:t}},methods:{goBack(){yt.info("前进按钮")},goBackFromSearch(){window.history.length>1?this.$router.back():this.$router.push({name:"Home"})},goForward(){yt.info("后退按钮")},refreshPage(){yt.info("刷新页面"),window.location.reload()},onSearch(e){if(console.log("🔍 [Header] onSearch被触发:",{value:e,isSearchPage:this.isSearchAggregationPage}),!e||!e.trim()){yt.warning("请输入搜索内容");return}const t=e.trim();console.log("🔍 [Header] 准备执行搜索:",{keyword:t,currentRoute:this.$route.name}),this.isSearchAggregationPage?(console.log("🔍 [Header] 在搜索页面,更新查询参数"),this.$router.push({name:"SearchAggregation",query:{keyword:t,_t:Date.now()}})):(console.log("🔍 [Header] 不在搜索页面,跳转到搜索页面"),this.$router.push({name:"SearchAggregation",query:{keyword:t}}))},handleSearchClick(){this.isSearchAggregationPage||this.$router.push({name:"SearchAggregation"})},handleSearchInput(e){if(this.isSearchAggregationPage){const t={...this.$route.query,keywordDraft:e};this.$router.push({name:"SearchAggregation",query:t})}},handleSearchClear(){if(this.isSearchAggregationPage){const e={...this.$route.query};delete e.keywordDraft,this.$router.push({name:"SearchAggregation",query:e})}},openSearchSettings(){this.showSearchSettings=!0},onSearchSettingsConfirm(e){const t=e.selectedSources?e.selectedSources.length:0;yt.success(`已选择 ${t} 个搜索源`),this.showSearchSettings=!1,window.dispatchEvent(new CustomEvent("searchSettingsChanged",{detail:e}))},closeSearchResults(){this.searchValue="";try{localStorage.removeItem("pageState_searchAggregation"),console.log("🔄 [状态清理] 已清除聚合搜索页面保存的状态")}catch(e){console.error("清除页面状态失败:",e)}this.$router.push({name:"SearchAggregation"})},minimize(){yt.info("最小化窗口"),this.exitFullScreen()},maximize(){yt.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},clearSessionStorage(){try{sessionStorage.clear(),this.showConfirmModal=!1,yt.success("缓存已清除")}catch(e){console.error("清除缓存失败:",e),yt.error("清除缓存失败")}},confirmClose(){this.showConfirmModal=!1,yt.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(yt.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),yt.error("关闭失败,请手动关闭浏览器标签页")}},enterFullScreen(){let e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},exitFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}}),Uct={class:"header-left"},Hct={class:"search-container"},Wct={class:"header-right"},Gct={class:"modal-header"},Kct={class:"modal-footer"};function qct(e,t,n,r,i,a){const s=Ie("icon-left"),l=Ie("a-button"),c=Ie("icon-right"),d=Ie("icon-refresh"),h=Ie("a-input-search"),p=Ie("icon-settings"),v=Ie("icon-close"),g=Ie("icon-shrink"),y=Ie("icon-expand"),S=Ie("icon-exclamation-circle-fill"),k=Ie("SearchSettingsModal"),x=Ie("a-layout-header");return z(),Qe(x,{class:"header"},{default:ue(()=>[I("div",Uct,[e.isSearchAggregationPage?(z(),Z(Rt,{key:0},[$(l,{shape:"circle",onClick:e.goBackFromSearch},{icon:ue(()=>[$(s)]),_:1},8,["onClick"]),t[5]||(t[5]=I("span",{class:"search-page-title"},"聚合搜索",-1))],64)):(z(),Z(Rt,{key:1},[$(l,{shape:"circle",onClick:e.goBack},{icon:ue(()=>[$(s)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.goForward},{icon:ue(()=>[$(c)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.refreshPage},{icon:ue(()=>[$(d)]),_:1},8,["onClick"])],64))]),e.searchAggregationEnabled?(z(),Z("div",{key:0,class:ce(["header-center",{"search-page-mode":e.isSearchAggregationPage}])},[I("div",Hct,[$(h,{modelValue:e.searchValue,"onUpdate:modelValue":t[0]||(t[0]=w=>e.searchValue=w),placeholder:"搜索内容...","enter-button":"搜索","allow-clear":"",onSearch:e.onSearch,onKeyup:t[1]||(t[1]=df(w=>e.onSearch(e.searchValue),["enter"])),onClick:e.handleSearchClick,onInput:e.handleSearchInput,onClear:e.handleSearchClear},null,8,["modelValue","onSearch","onClick","onInput","onClear"]),$(l,{class:"search-settings-btn",shape:"circle",onClick:e.openSearchSettings,title:"搜索设置"},{icon:ue(()=>[$(p)]),_:1},8,["onClick"]),e.hasSearchResults?(z(),Qe(l,{key:0,class:"close-search-btn",shape:"circle",onClick:e.closeSearchResults,title:"关闭搜索结果"},{icon:ue(()=>[$(v)]),_:1},8,["onClick"])):Le("",!0)])],2)):Le("",!0),I("div",Wct,[$(l,{shape:"circle",onClick:e.minimize},{icon:ue(()=>[$(g)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.maximize},{icon:ue(()=>[$(y)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:ue(()=>[$(v)]),_:1},8,["onClick"])]),e.showConfirmModal?(z(),Z("div",{key:1,class:"confirm-modal-overlay",onClick:t[3]||(t[3]=(...w)=>e.hideCloseConfirm&&e.hideCloseConfirm(...w))},[I("div",{class:"confirm-modal",onClick:t[2]||(t[2]=cs(()=>{},["stop"]))},[I("div",Gct,[$(S,{class:"warning-icon"}),t[6]||(t[6]=I("h3",{class:"modal-title"},"确认关闭",-1))]),t[10]||(t[10]=I("div",{class:"modal-content"},[I("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),I("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),I("div",Kct,[$(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:ue(()=>[...t[7]||(t[7]=[Ge(" 取消 ",-1)])]),_:1},8,["onClick"]),$(l,{type:"primary",status:"warning",class:"clear-cache-btn",onClick:e.clearSessionStorage},{default:ue(()=>[...t[8]||(t[8]=[Ge(" 仅清缓存 ",-1)])]),_:1},8,["onClick"]),$(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:ue(()=>[...t[9]||(t[9]=[Ge(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Le("",!0),$(k,{visible:e.showSearchSettings,"onUpdate:visible":t[4]||(t[4]=w=>e.showSearchSettings=w),onConfirm:e.onSearchSettingsConfirm},null,8,["visible","onConfirm"])]),_:1})}const Yct=or(zct,[["render",qct],["__scopeId","data-v-fee61331"]]);/*!
+ * pinia v2.3.1
+ * (c) 2025 Eduardo San Martin Morote
+ * @license MIT
+ */let Lme;const _A=e=>Lme=e,Dme=Symbol();function RV(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var mb;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(mb||(mb={}));function Xct(){const e=$U(!0),t=e.run(()=>le({}));let n=[],r=[];const i=K_({install(a){_A(i),i._a=a,a.provide(Dme,i),a.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Pme=()=>{};function aoe(e,t,n,r=Pme){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&m5()&&OU(i),i}function h1(e,...t){e.slice().forEach(n=>{n(...t)})}const Zct=e=>e(),loe=Symbol(),pN=Symbol();function MV(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];RV(i)&&RV(r)&&e.hasOwnProperty(n)&&!$o(r)&&!gf(r)?e[n]=MV(i,r):e[n]=r}return e}const Jct=Symbol();function Qct(e){return!RV(e)||!e.hasOwnProperty(Jct)}const{assign:Wp}=Object;function edt(e){return!!($o(e)&&e.effect)}function tdt(e,t,n,r){const{state:i,actions:a,getters:s}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=i?i():{});const h=en(n.state.value[e]);return Wp(h,a,Object.keys(s||{}).reduce((p,v)=>(p[v]=K_(F(()=>{_A(n);const g=n._s.get(e);return s[v].call(g,g)})),p),{}))}return c=Rme(e,d,t,n,r,!0),c}function Rme(e,t,n={},r,i,a){let s;const l=Wp({actions:{}},n),c={deep:!0};let d,h,p=[],v=[],g;const y=r.state.value[e];!a&&!y&&(r.state.value[e]={}),le({});let S;function k(M){let O;d=h=!1,typeof M=="function"?(M(r.state.value[e]),O={type:mb.patchFunction,storeId:e,events:g}):(MV(r.state.value[e],M),O={type:mb.patchObject,payload:M,storeId:e,events:g});const L=S=Symbol();cn().then(()=>{S===L&&(d=!0)}),h=!0,h1(p,O,r.state.value[e])}const x=a?function(){const{state:O}=n,L=O?O():{};this.$patch(B=>{Wp(B,L)})}:Pme;function w(){s.stop(),p=[],v=[],r._s.delete(e)}const E=(M,O="")=>{if(loe in M)return M[pN]=O,M;const L=function(){_A(r);const B=Array.from(arguments),j=[],H=[];function U(re){j.push(re)}function W(re){H.push(re)}h1(v,{args:B,name:L[pN],store:T,after:U,onError:W});let G;try{G=M.apply(this&&this.$id===e?this:T,B)}catch(re){throw h1(H,re),re}return G instanceof Promise?G.then(re=>(h1(j,re),re)).catch(re=>(h1(H,re),Promise.reject(re))):(h1(j,G),G)};return L[loe]=!0,L[pN]=O,L},_={_p:r,$id:e,$onAction:aoe.bind(null,v),$patch:k,$reset:x,$subscribe(M,O={}){const L=aoe(p,M,O.detached,()=>B()),B=s.run(()=>It(()=>r.state.value[e],j=>{(O.flush==="sync"?h:d)&&M({storeId:e,type:mb.direct,events:g},j)},Wp({},c,O)));return L},$dispose:w},T=Gt(_);r._s.set(e,T);const P=(r._a&&r._a.runWithContext||Zct)(()=>r._e.run(()=>(s=$U()).run(()=>t({action:E}))));for(const M in P){const O=P[M];if($o(O)&&!edt(O)||gf(O))a||(y&&Qct(O)&&($o(O)?O.value=y[M]:MV(O,y[M])),r.state.value[e][M]=O);else if(typeof O=="function"){const L=E(O,M);P[M]=L,l.actions[M]=O}}return Wp(T,P),Wp(Mi(T),P),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:M=>{k(O=>{Wp(O,M)})}}),r._p.forEach(M=>{Wp(T,s.run(()=>M({store:T,app:r._a,pinia:r,options:l})))}),y&&a&&n.hydrate&&n.hydrate(T.$state,y),d=!0,h=!0,T}/*! #__NO_SIDE_EFFECTS__ */function ag(e,t,n){let r,i;const a=typeof t=="function";typeof e=="string"?(r=e,i=a?n:t):(i=e,r=e.id);function s(l,c){const d=Ufe();return l=l||(d?In(Dme,null):null),l&&_A(l),l=Lme,l._s.has(r)||(a?Rme(r,t,i,l):tdt(r,i,l)),l._s.get(r)}return s.$id=r,s}const m3=ag("pagination",{state:()=>({statsText:"",isVisible:!1,currentRoute:""}),actions:{updateStats(e){this.statsText=e,this.isVisible=!!e},clearStats(){this.statsText="",this.isVisible=!1},setCurrentRoute(e){this.currentRoute=e,e!=="/video"&&e!=="/search"&&this.clearStats()}},getters:{shouldShow:e=>e.isVisible&&(e.currentRoute==="/video"||e.currentRoute==="/search")}}),ndt={class:"footer-content"},rdt={key:0,class:"pagination-stats"},idt={class:"stats-text"},odt={key:1,class:"default-footer"},sdt={class:"footer-info"},adt={class:"copyright-section"},ldt={class:"copyright-text"},udt={class:"project-section"},cdt={class:"license-section"},ddt={__name:"Footer",setup(e){const t=m3(),n=F(()=>new Date().getFullYear()),r=()=>{yt.success("正在跳转到项目主页...")};return(i,a)=>(z(),Z("div",ndt,[ot(t).shouldShow?(z(),Z("div",rdt,[I("span",idt,Ve(ot(t).statsText),1)])):(z(),Z("div",odt,[I("div",sdt,[I("div",adt,[$(ot(qve),{class:"footer-icon"}),I("span",ldt,Ve(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",udt,[$(ot(Hve),{class:"footer-icon"}),I("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=I("div",{class:"separator"},"|",-1)),I("div",cdt,[$(ot(bf),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},fdt=or(ddt,[["__scopeId","data-v-3b2cc39c"]]),hdt="/apps/drplayer/assets/logo-5LtmOeIe.png";window._iconfont_svg_string_5032989=' ',(e=>{var t=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,i,a,s,l,c=function(p,v){v.parentNode.insertBefore(p,v)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(p){console&&console.log(p)}}r=function(){var p,v=document.createElement("div");v.innerHTML=e._iconfont_svg_string_5032989,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(p=document.body).firstChild?c(v,p.firstChild):p.appendChild(v))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),r()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(a=r,s=e.document,l=!1,h(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,d())})}function d(){l||(l=!0,a())}function h(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}d()}})(window);const pdt=Ce({components:{IconCaretRight:TH,IconCaretLeft:AH,IconHome:h3,IconCalendar:aS,Header:Yct,Footer:fdt},setup(){const e=s3(),t=m3(),n=F(()=>e.path==="/search"||e.name==="SearchAggregation"),r=F(()=>e.path==="/download-manager"||e.name==="DownloadManager"),i=le(!1),a=le([{id:1,name:"主页",icon:"icon-zhuye",route:"/"},{id:2,name:"点播",icon:"icon-dianbo",route:"/video"},{id:4,name:"直播",icon:"icon-shipinzhibo",route:"/live"},{id:5,name:"书画柜",icon:"icon-shugui",route:"/book-gallery"},{id:6,name:"解析",icon:"icon-jiexi",route:"/parser"},{id:7,name:"收藏",icon:"icon-shoucang",route:"/collection"},{id:8,name:"历史",icon:"icon-lishi",route:"/history"},{id:11,name:"下载",icon:"icon-xiazai",route:"/download-manager"},{id:10,name:"测试",icon:"icon-ceshi",route:"/action-test"},{id:9,name:"设置",icon:"icon-shezhi",route:"/settings"}]),s=le(hdt),l=le("欢迎使用DrPlayer");return It(()=>e.path,h=>{t.setCurrentRoute(h)},{immediate:!0}),{siderCollapsed:i,menuItems:a,logoSrc:s,logoDesc:l,onClickMenuItem:h=>{let p=a.value.find(g=>g.id===h).name,v=`You select ${h},${p}`;console.log(v)},onSiderCollapse:h=>{i.value=h,console.log("侧边栏折叠状态:",h)},isSearchPage:n,isDownloadManagerPage:r}}}),vdt={class:"app-container"},mdt={class:"fixed-header"},gdt={class:"logo"},ydt={style:{width:"20px",height:"20px","margin-right":"8px"}},bdt=["href"],_dt={class:"fixed-footer"};function Sdt(e,t,n,r,i,a){const s=Ie("Header"),l=Ie("a-image"),c=Ie("a-popover"),d=Ie("a-menu-item"),h=Ie("router-link"),p=Ie("a-menu"),v=Ie("IconCaretRight"),g=Ie("IconCaretLeft"),y=Ie("a-layout-sider"),S=Ie("Footer"),k=Ie("a-layout");return z(),Z("div",vdt,[I("div",mdt,[$(s)]),$(k,{class:"layout-demo"},{default:ue(()=>[$(y,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:ue(({collapsed:x})=>[x?(z(),Qe(v,{key:0})):(z(),Qe(g,{key:1}))]),default:ue(()=>[I("div",gdt,[$(c,{title:"道长: 您好!"},{content:ue(()=>[I("p",null,Ve(e.logoDesc),1)]),default:ue(()=>[$(l,{width:"100%",src:e.logoSrc,alt:e.logoDesc,preview:!1,onClick:t[0]||(t[0]=()=>this.$message.success("欢迎使用Hipy定制版壳子"))},null,8,["src","alt"])]),_:1})]),$(p,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:ue(()=>[(z(!0),Z(Rt,null,un(e.menuItems,(x,w)=>(z(),Qe(h,{key:w,to:x.route,class:"menu-item"},{default:ue(()=>[(z(),Qe(d,{key:x.id},{default:ue(()=>[(z(),Z("svg",ydt,[I("use",{href:`#${x.icon}`},null,8,bdt)])),Ge(" "+Ve(x.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:ce(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",{class:ce(["content-wrapper",{"search-page":e.isSearchPage,"download-manager-page":e.isDownloadManagerPage}])},[gt(e.$slots,"default",{},void 0,!0)],2),I("div",_dt,[$(S)])],2)]),_:3})])}const kdt=or(pdt,[["render",Sdt],["__scopeId","data-v-c3e63595"]]),gb=le({show:!1,message:"",type:"success",duration:3e3});function zn(e,t="success",n=3e3){gb.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{xdt()},n)}function xdt(){gb.value.show=!1}const wdt={__name:"GlobalToast",setup(e){return(t,n)=>(z(),Qe(Jm,{to:"body"},[$(xs,{name:"action-toast"},{default:ue(()=>[ot(gb).show?(z(),Z("div",{key:0,class:ce(["action-toast",ot(gb).type])},Ve(ot(gb).message),3)):Le("",!0)]),_:1})]))}},Cdt=or(wdt,[["__scopeId","data-v-0de7c39c"]]),Edt=["title"],Tdt={class:"window-title"},Adt={class:"window-controls"},Idt={class:"window-content"},Ldt=["src"],Ddt={__name:"FloatingIframe",props:{defaultUrl:{type:String,default:"http://localhost:5757/apps/websocket"},defaultPosition:{type:Object,default:()=>({x:33,y:604})},defaultSize:{type:Object,default:()=>({width:419,height:883})},buttonTitle:{type:String,default:"打开浮窗"},windowTitle:{type:String,default:"浮窗浏览器"}},setup(e,{expose:t}){const n=e,r=le(!1),i=le(n.defaultUrl),a=le({enabled:!1,url:""}),s=()=>{try{const W=localStorage.getItem("debugSettings");if(W){const G=JSON.parse(W);a.value={enabled:G.enabled===!0,url:G.url||""}}else a.value={enabled:!1,url:""}}catch(W){console.error("Failed to load debug settings:",W),a.value={enabled:!1,url:""}}},l=F(()=>a.value.enabled),c=F(()=>l.value),d=()=>a.value.enabled&&a.value.url?a.value.url:n.defaultUrl,h=F(()=>d()),p=W=>{W.key==="debugSettings"&&s()},v=W=>{s()},g=le(1e3),y=Gt({x:n.defaultPosition.x,y:n.defaultPosition.y}),S=Gt({x:1696,y:130}),k=Gt({width:n.defaultSize.width,height:n.defaultSize.height}),x=Gt({isDragging:!1,isResizing:!1,startX:0,startY:0,startLeft:0,startTop:0,startWidth:0,startHeight:0,dragType:""}),w=()=>{if(r.value){E();return}r.value=!0;const W=d();i.value!==W&&(i.value=W),localStorage.getItem("floating-iframe-window-position")||(S.x=1696,S.y=130),T()},E=()=>{j(),H(),r.value=!1},_=()=>{j(),H(),r.value=!1},T=()=>{g.value=Date.now()},D=W=>{W.button===0&&(x.isDragging=!0,x.dragType="button",x.startX=W.clientX,x.startY=W.clientY,x.startLeft=y.x,x.startTop=y.y,W.preventDefault(),W.stopPropagation())},P=W=>{W.button===0&&(x.isDragging=!0,x.dragType="window",x.startX=W.clientX,x.startY=W.clientY,x.startLeft=S.x,x.startTop=S.y,W.preventDefault(),W.stopPropagation())},M=W=>{W.button===0&&(x.isResizing=!0,x.dragType="resize",x.startX=W.clientX,x.startY=W.clientY,x.startWidth=k.width,x.startHeight=k.height,W.preventDefault(),W.stopPropagation())},O=W=>{if(!x.isDragging&&!x.isResizing)return;const G=W.clientX-x.startX,re=W.clientY-x.startY;if(x.dragType==="button")y.x=Math.max(0,Math.min(window.innerWidth-50,x.startLeft+G)),y.y=Math.max(0,Math.min(window.innerHeight-50,x.startTop+re));else if(x.dragType==="window")S.x=Math.max(0,Math.min(window.innerWidth-200,x.startLeft+G)),S.y=Math.max(0,Math.min(window.innerHeight-100,x.startTop+re));else if(x.dragType==="resize"){const se=Math.max(300,x.startWidth+G),ee=Math.max(200,x.startHeight+re);k.width=Math.min(se,window.innerWidth-S.x),k.height=Math.min(ee,window.innerHeight-S.y)}},L=()=>{x.dragType==="button"?B():x.dragType==="window"?j():x.dragType==="resize"&&H(),x.isDragging=!1,x.isResizing=!1,x.dragType=""},B=()=>{localStorage.setItem("floating-iframe-button-position",JSON.stringify({x:y.x,y:y.y}))},j=()=>{localStorage.setItem("floating-iframe-window-position",JSON.stringify({x:S.x,y:S.y}))},H=()=>{localStorage.setItem("floating-iframe-window-size",JSON.stringify({width:k.width,height:k.height}))},U=()=>{const W=localStorage.getItem("floating-iframe-button-position");if(W)try{const se=JSON.parse(W);y.x=se.x,y.y=se.y}catch(se){console.warn("Failed to parse saved button position:",se)}const G=localStorage.getItem("floating-iframe-window-position");if(G)try{const se=JSON.parse(G);S.x=se.x,S.y=se.y}catch(se){console.warn("Failed to parse saved window position:",se)}const re=localStorage.getItem("floating-iframe-window-size");if(re)try{const se=JSON.parse(re);k.width=se.width,k.height=se.height}catch(se){console.warn("Failed to parse saved window size:",se)}};return It(h,(W,G)=>{W!==G&&r.value&&(i.value=W)}),dn(()=>{document.addEventListener("mousemove",O),document.addEventListener("mouseup",L),window.addEventListener("storage",p),window.addEventListener("debugSettingsChanged",v),U(),s(),i.value===n.defaultUrl&&(i.value=d())}),Wr(()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",L),window.removeEventListener("storage",p),window.removeEventListener("debugSettingsChanged",v),B(),j(),H()}),t({openWindow:w,closeWindow:E,setUrl:W=>{i.value=W}}),(W,G)=>(z(),Z(Rt,null,[c.value?(z(),Z("div",{key:0,class:"floating-button",style:Ye({left:y.x+"px",top:y.y+"px"}),onClick:w,onMousedown:D,title:e.buttonTitle},[$(ot(d_),{class:"button-icon"})],44,Edt)):Le("",!0),ki(I("div",{class:"floating-window",style:Ye({left:S.x+"px",top:S.y+"px",width:k.width+"px",height:k.height+"px",zIndex:g.value}),onMousedown:T},[I("div",{class:"window-header",onMousedown:P},[I("div",Tdt,[$(ot(d_),{class:"title-icon"}),I("span",null,Ve(e.windowTitle),1)]),I("div",Adt,[I("button",{class:"control-btn minimize-btn",onClick:_,title:"最小化"},[$(ot(T0))]),I("button",{class:"control-btn close-btn",onClick:E,title:"关闭"},[$(ot(ts))])])],32),I("div",Idt,[I("iframe",{src:i.value,class:"iframe-content",frameborder:"0",allowfullscreen:"",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms"},null,8,Ldt)]),I("div",{class:"resize-handle resize-se",onMousedown:M},null,32)],36),[[Wo,r.value]])],64))}},Pdt=or(Ddt,[["__scopeId","data-v-73001db3"]]),vS=ag("visited",{state:()=>({lastClickedVideoId:null,lastClickedVideoName:null}),getters:{isLastClicked:e=>t=>e.lastClickedVideoId===t},actions:{setLastClicked(e,t){e&&(this.lastClickedVideoId=e,this.lastClickedVideoName=t,this.saveToStorage())},clear(){this.lastClickedVideoId=null,this.lastClickedVideoName=null,localStorage.removeItem("last-clicked-video")},saveToStorage(){try{const e={videoId:this.lastClickedVideoId,videoName:this.lastClickedVideoName};localStorage.setItem("last-clicked-video",JSON.stringify(e))}catch(e){console.warn("保存最后点击视频失败:",e)}},loadFromStorage(){try{const e=localStorage.getItem("last-clicked-video");if(e){const t=JSON.parse(e);this.lastClickedVideoId=t.videoId,this.lastClickedVideoName=t.videoName}}catch(e){console.warn("加载最后点击视频失败:",e),this.clear()}}}}),Rdt={name:"App",components:{Layout:kdt,GlobalToast:Cdt,FloatingIframe:Pdt},setup(){const e=vS();return dn(()=>{e.loadFromStorage()}),{}}};function Mdt(e,t,n,r,i,a){const s=Ie("router-view"),l=Ie("Layout"),c=Ie("GlobalToast"),d=Ie("FloatingIframe");return z(),Z(Rt,null,[$(l,null,{default:ue(()=>[$(s)]),_:1}),$(c),$(d,{"default-url":"http://localhost:5757/apps/websocket","default-position":{x:33,y:604},"default-size":{width:419,height:883},"button-title":"打开浮窗浏览器","window-title":"浮窗浏览器"})],64)}const $dt=or(Rdt,[["render",Mdt]]),Odt="modulepreload",Bdt=function(e){return"/apps/drplayer/"+e},uoe={},pc=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=c(n.map(d=>{if(d=Bdt(d),d in uoe)return;uoe[d]=!0;const h=d.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":Odt,h||(v.as="script"),v.crossOrigin="",v.href=d,l&&v.setAttribute("nonce",l),document.head.appendChild(v),h)return new Promise((g,y)=>{v.addEventListener("load",g),v.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return t().catch(a)})};/*! *****************************************************************************
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+***************************************************************************** */var $V=function(e,t){return $V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},$V(e,t)};function $n(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$V(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ndt=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Fdt=(function(){function e(){this.browser=new Ndt,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),Nr=new Fdt;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Nr.wxa=!0,Nr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Nr.worker=!0:!Nr.hasGlobalWindow||"Deno"in window?(Nr.node=!0,Nr.svgSupported=!0):jdt(navigator.userAgent,Nr);function jdt(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),s&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var bW=12,Vdt="sans-serif",Fm=bW+"px "+Vdt,zdt=20,Udt=100,Hdt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Wdt(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)l=s*n.length;else for(var c=0;c>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",i[d]+":0",r[1-c]+":auto",i[1-d]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function vft(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,s=[],l=[],c=!0,d=0;d<4;d++){var h=e[d].getBoundingClientRect(),p=2*d,v=h.left,g=h.top;s.push(v,g),c=c&&a&&v===a[p]&&g===a[p+1],l.push(e[d].offsetLeft,e[d].offsetTop)}return c&&i?i:(t.srcCoords=s,t[r]=n?hoe(l,s):hoe(s,l))}function Vme(e){return e.nodeName.toUpperCase()==="CANVAS"}var mft=/([&<>"'])/g,gft={"&":"&","<":"<",">":">",'"':""","'":"'"};function _u(e){return e==null?"":(e+"").replace(mft,function(t,n){return gft[n]})}var yft=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yN=[],bft=Nr.browser.firefox&&+Nr.browser.version.split(".")[0]<39;function zV(e,t,n,r){return n=n||{},r?voe(e,t,n):bft&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):voe(e,t,n),n}function voe(e,t,n){if(Nr.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Vme(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(VV(yN,e,r,i)){n.zrX=yN[0],n.zrY=yN[1];return}}n.zrX=n.zrY=0}function wW(e){return e||window.event}function Pc(e,t,n){if(t=wW(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var s=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];s&&zV(e,s,t,n)}else{zV(e,t,t,n);var a=_ft(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&yft.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function _ft(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Sft(e,t,n,r){e.addEventListener(t,n,r)}function kft(e,t,n,r){e.removeEventListener(t,n,r)}var zme=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},xft=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var a={points:[],touches:[],target:n,event:t},s=0,l=i.length;s1&&r&&r.length>1){var a=moe(r)/moe(i);!isFinite(a)&&(a=1),t.pinchScale=a;var s=wft(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function vy(){return[1,0,0,1,0,0]}function CW(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Cft(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function my(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],s=t[1]*n[2]+t[3]*n[3],l=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=s,e[4]=l,e[5]=c,e}function UV(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function EW(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],s=t[4],l=t[1],c=t[3],d=t[5],h=Math.sin(n),p=Math.cos(n);return e[0]=i*p+l*h,e[1]=-i*h+l*p,e[2]=a*p+c*h,e[3]=-a*h+p*c,e[4]=p*(s-r[0])+h*(d-r[1])+r[0],e[5]=p*(d-r[1])-h*(s-r[0])+r[1],e}function Eft(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function TW(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],s=t[3],l=t[5],c=n*s-a*r;return c?(c=1/c,e[0]=s*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*l-s*i)*c,e[5]=(a*i-n*l)*c,e):null}var Vr=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var a=1-i;t.x=a*n.x+i*r.x,t.y=a*n.y+i*r.y},e})(),Mx=Math.min,$x=Math.max,Sv=new Vr,kv=new Vr,xv=new Vr,wv=new Vr,Q2=new Vr,e4=new Vr,oo=(function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=Mx(t.x,this.x),r=Mx(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$x(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=$x(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,a=vy();return UV(a,a,[-n.x,-n.y]),Eft(a,a,[r,i]),UV(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,d=t.x+t.width,h=t.y,p=t.y+t.height,v=!(ay&&(y=E,Sy&&(y=_,x=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],s=r[4],l=r[5];t.x=n.x*i+s,t.y=n.y*a+l,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Sv.x=xv.x=n.x,Sv.y=wv.y=n.y,kv.x=wv.x=n.x+n.width,kv.y=xv.y=n.y+n.height,Sv.transform(r),wv.transform(r),kv.transform(r),xv.transform(r),t.x=Mx(Sv.x,kv.x,xv.x,wv.x),t.y=Mx(Sv.y,kv.y,xv.y,wv.y);var c=$x(Sv.x,kv.x,xv.x,wv.x),d=$x(Sv.y,kv.y,xv.y,wv.y);t.width=c-t.x,t.height=d-t.y},e})(),Ume="silent";function Tft(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Aft}}function Aft(){zme(this.event)}var Ift=(function(e){$n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Pf),t4=(function(){function e(t,n){this.x=t,this.y=n}return e})(),Lft=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_N=new oo(0,0,0,0),Hme=(function(e){$n(t,e);function t(n,r,i,a,s){var l=e.call(this)||this;return l._hovered=new t4(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,i=i||new Ift,l.proxy=null,l.setHandlerProxy(i),l._draggingMgr=new dft(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Et(Lft,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,a=Wme(this,r,i),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var c=this._hovered=a?new t4(r,i):this.findHover(r,i),d=c.target,h=this.proxy;h.setCursor&&h.setCursor(d?d.cursor:"default"),l&&d!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),d&&d!==l&&this.dispatchToElement(c,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new t4(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var s="on"+r,l=Tft(r,n,i);a&&(a[s]&&(l.cancelBubble=!!a[s].call(a,l)),a.trigger(r,l),a=a.__hostTarget?a.__hostTarget:a.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(r,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){typeof c[s]=="function"&&c[s].call(c,l),c.trigger&&c.trigger(r,l)}))}},t.prototype.findHover=function(n,r,i){var a=this.storage.getDisplayList(),s=new t4(n,r);if(goe(a,s,n,r,i),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,d=c/2,h=new oo(n-d,r-d,c,c),p=a.length-1;p>=0;p--){var v=a[p];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(_N.copy(v.getBoundingRect()),v.transform&&_N.applyTransform(v.transform),_N.intersect(h)&&l.push(v))}if(l.length)for(var g=4,y=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Dft(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var s=r.getClipPath();if(s&&!s.contain(t,n))return!1}r.silent&&(i=!0);var l=r.__hostTarget;r=l||r.parent}return i?Ume:!0}return!1}function goe(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var s=e[a],l=void 0;if(s!==i&&!s.ignore&&(l=Dft(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==Ume)){t.target=s;break}}}function Wme(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Gme=32,n4=7;function Pft(e){for(var t=0;e>=Gme;)t|=e&1,e>>=1;return e+t}function yoe(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Rft(e,t,n){for(n--;t>>1,i(a,e[c])<0?l=c:s=c+1;var d=r-s;switch(d){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;d>0;)e[s+d]=e[s+d-1],d--}e[s]=a}}function SN(e,t,n,r,i,a){var s=0,l=0,c=1;if(a(e,t[n+i])>0){for(l=r-i;c0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=i,c+=i}else{for(l=i+1;cl&&(c=l);var d=s;s=i-c,c=i-d}for(s++;s>>1);a(e,t[n+h])>0?s=h+1:c=h}return c}function kN(e,t,n,r,i,a){var s=0,l=0,c=1;if(a(e,t[n+i])<0){for(l=i+1;cl&&(c=l);var d=s;s=i-c,c=i-d}else{for(l=r-i;c=0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=i,c+=i}for(s++;s>>1);a(e,t[n+h])<0?c=h:s=h+1}return c}function Mft(e,t){var n=n4,r,i,a=0,s=[];r=[],i=[];function l(g,y){r[a]=g,i[a]=y,a+=1}function c(){for(;a>1;){var g=a-2;if(g>=1&&i[g-1]<=i[g]+i[g+1]||g>=2&&i[g-2]<=i[g]+i[g-1])i[g-1]i[g+1])break;h(g)}}function d(){for(;a>1;){var g=a-2;g>0&&i[g-1]=n4||P>=n4);if(M)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),y===1){for(x=0;x=0;x--)e[D+x]=e[T+x];e[_]=s[E];return}for(var P=n;;){var M=0,O=0,L=!1;do if(t(s[E],e[w])<0){if(e[_--]=e[w--],M++,O=0,--y===0){L=!0;break}}else if(e[_--]=s[E--],O++,M=0,--k===1){L=!0;break}while((M|O)=0;x--)e[D+x]=e[T+x];if(y===0){L=!0;break}}if(e[_--]=s[E--],--k===1){L=!0;break}if(O=k-SN(e[w],s,0,k,k-1,t),O!==0){for(_-=O,E-=O,k-=O,D=_+1,T=E+1,x=0;x=n4||O>=n4);if(L)break;P<0&&(P=0),P+=2}if(n=P,n<1&&(n=1),k===1){for(_-=y,w-=y,D=_+1,T=w+1,x=y-1;x>=0;x--)e[D+x]=e[T+x];e[_]=s[E]}else{if(k===0)throw new Error;for(T=_-(k-1),x=0;xl&&(c=l),boe(e,n,n+c,n+a,t),a=c}s.pushRun(n,a),s.mergeRuns(),i-=a,n+=a}while(i!==0);s.forceMergeRuns()}}var ac=1,R4=2,V1=4,_oe=!1;function xN(){_oe||(_oe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Soe(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var $ft=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Soe}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(xN(),h.z=0),isNaN(h.z2)&&(xN(),h.z2=0),isNaN(h.zlevel)&&(xN(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,n,r);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,n,r);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),sT;sT=Nr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var _b={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-_b.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?_b.bounceIn(e*2)*.5:_b.bounceOut(e*2-1)*.5+.5}},Ox=Math.pow,g0=Math.sqrt,aT=1e-8,Kme=1e-4,koe=g0(3),Bx=1/3,lf=y3(),Bc=y3(),gy=y3();function s0(e){return e>-aT&&eaT||e<-aT}function Ha(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function xoe(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function lT(e,t,n,r,i,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),d=e-i,h=l*l-3*s*c,p=l*c-9*s*d,v=c*c-3*l*d,g=0;if(s0(h)&&s0(p))if(s0(l))a[0]=0;else{var y=-c/l;y>=0&&y<=1&&(a[g++]=y)}else{var S=p*p-4*h*v;if(s0(S)){var k=p/h,y=-l/s+k,x=-k/2;y>=0&&y<=1&&(a[g++]=y),x>=0&&x<=1&&(a[g++]=x)}else if(S>0){var w=g0(S),E=h*l+1.5*s*(-p+w),_=h*l+1.5*s*(-p-w);E<0?E=-Ox(-E,Bx):E=Ox(E,Bx),_<0?_=-Ox(-_,Bx):_=Ox(_,Bx);var y=(-l-(E+_))/(3*s);y>=0&&y<=1&&(a[g++]=y)}else{var T=(2*h*l-3*s*p)/(2*g0(h*h*h)),D=Math.acos(T)/3,P=g0(h),M=Math.cos(D),y=(-l-2*P*M)/(3*s),x=(-l+P*(M+koe*Math.sin(D)))/(3*s),O=(-l+P*(M-koe*Math.sin(D)))/(3*s);y>=0&&y<=1&&(a[g++]=y),x>=0&&x<=1&&(a[g++]=x),O>=0&&O<=1&&(a[g++]=O)}}return g}function Yme(e,t,n,r,i){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(s0(s)){if(qme(a)){var d=-l/a;d>=0&&d<=1&&(i[c++]=d)}}else{var h=a*a-4*s*l;if(s0(h))i[0]=-a/(2*s);else if(h>0){var p=g0(h),d=(-a+p)/(2*s),v=(-a-p)/(2*s);d>=0&&d<=1&&(i[c++]=d),v>=0&&v<=1&&(i[c++]=v)}}return c}function uT(e,t,n,r,i,a){var s=(t-e)*i+e,l=(n-t)*i+t,c=(r-n)*i+n,d=(l-s)*i+s,h=(c-l)*i+l,p=(h-d)*i+d;a[0]=e,a[1]=s,a[2]=d,a[3]=p,a[4]=p,a[5]=h,a[6]=c,a[7]=r}function Oft(e,t,n,r,i,a,s,l,c,d,h){var p,v=.005,g=1/0,y,S,k,x;lf[0]=c,lf[1]=d;for(var w=0;w<1;w+=.05)Bc[0]=Ha(e,n,i,s,w),Bc[1]=Ha(t,r,a,l,w),k=py(lf,Bc),k=0&&k=0&&d<=1&&(i[c++]=d)}}else{var h=s*s-4*a*l;if(s0(h)){var d=-s/(2*a);d>=0&&d<=1&&(i[c++]=d)}else if(h>0){var p=g0(h),d=(-s+p)/(2*a),v=(-s-p)/(2*a);d>=0&&d<=1&&(i[c++]=d),v>=0&&v<=1&&(i[c++]=v)}}return c}function Xme(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function cT(e,t,n,r,i){var a=(t-e)*r+e,s=(n-t)*r+t,l=(s-a)*r+a;i[0]=e,i[1]=a,i[2]=l,i[3]=l,i[4]=s,i[5]=n}function Fft(e,t,n,r,i,a,s,l,c){var d,h=.005,p=1/0;lf[0]=s,lf[1]=l;for(var v=0;v<1;v+=.05){Bc[0]=Su(e,n,i,v),Bc[1]=Su(t,r,a,v);var g=py(lf,Bc);g=0&&g
=1?1:lT(0,r,a,1,c,l)&&Ha(0,i,s,1,l[0])}}}var zft=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Du,this.ondestroy=t.ondestroy||Du,this.onrestart=t.onrestart||Du,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var s=this.easingFunc,l=s?s(a):a;if(this.onframe(l),a===1)if(this.loop){var c=i%r;this._startTime=t-c,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Qr(t)?t:_b[t]||Zme(t)},e})(),Jme=(function(){function e(t){this.value=t}return e})(),Uft=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new Jme(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),gS=(function(){function e(t){this._list=new Uft,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,a=null;if(i[t]==null){var s=r.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var c=r.head;r.remove(c),delete i[c.key],a=c.value,this._lastRemovedEntry=c}l?l.value=n:l=new Jme(n),l.key=t,r.insertEntry(l),i[t]=l}return a},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),Coe={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function y0(e){return e=Math.round(e),e<0?0:e>255?255:e}function HV(e){return e<0?0:e>1?1:e}function wN(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?y0(parseFloat(t)/100*255):y0(parseInt(t,10))}function Sb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?HV(parseFloat(t)/100):HV(parseFloat(t))}function CN(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Nx(e,t,n){return e+(t-e)*n}function Dc(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function WV(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Qme=new gS(20),Fx=null;function v1(e,t){Fx&&WV(Fx,t),Fx=Qme.put(e,Fx||t.slice())}function $h(e,t){if(e){t=t||[];var n=Qme.get(e);if(n)return WV(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in Coe)return WV(t,Coe[r]),v1(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Dc(t,0,0,0,1);return}return Dc(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),v1(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Dc(t,0,0,0,1);return}return Dc(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),v1(e,t),t}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===i){var c=r.substr(0,s),d=r.substr(s+1,l-(s+1)).split(","),h=1;switch(c){case"rgba":if(d.length!==4)return d.length===3?Dc(t,+d[0],+d[1],+d[2],1):Dc(t,0,0,0,1);h=Sb(d.pop());case"rgb":if(d.length>=3)return Dc(t,wN(d[0]),wN(d[1]),wN(d[2]),d.length===3?h:Sb(d[3])),v1(e,t),t;Dc(t,0,0,0,1);return;case"hsla":if(d.length!==4){Dc(t,0,0,0,1);return}return d[3]=Sb(d[3]),Eoe(d,t),v1(e,t),t;case"hsl":if(d.length!==3){Dc(t,0,0,0,1);return}return Eoe(d,t),v1(e,t),t;default:return}}Dc(t,0,0,0,1)}}function Eoe(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Sb(e[1]),i=Sb(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=i*2-a;return t=t||[],Dc(t,y0(CN(s,a,n+1/3)*255),y0(CN(s,a,n)*255),y0(CN(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Toe(e,t){var n=$h(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return wA(n,n.length===4?"rgba":"rgb")}}function Hft(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),s=$h(t[i]),l=$h(t[a]),c=r-i,d=wA([y0(Nx(s[0],l[0],c)),y0(Nx(s[1],l[1],c)),y0(Nx(s[2],l[2],c)),HV(Nx(s[3],l[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:a,value:r}:d}}function wA(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function dT(e,t){var n=$h(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Aoe=new gS(100);function Ioe(e){if(mr(e)){var t=Aoe.get(e);return t||(t=Toe(e,-.1),Aoe.put(e,t)),t}else if(kA(e)){var n=gn({},e);return n.colorStops=_r(e.colorStops,function(r){return{offset:r.offset,color:Toe(r.color,-.1)}}),n}return e}function Wft(e){return e.type==="linear"}function Gft(e){return e.type==="radial"}(function(){return Nr.hasGlobalWindow&&Qr(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var GV=Array.prototype.slice;function mh(e,t,n){return(t-e)*n+e}function EN(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),s=i[a-1]||{color:[0,0,0,0],offset:0},l=a;ls;if(l)r.length=s;else for(var c=a;c=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,a=i.length,s=!1,l=Doe,c=n;if(Mu(n)){var d=Xft(n);l=d,(d===1&&!To(n[0])||d===2&&!To(n[0][0]))&&(s=!0)}else if(To(n)&&!oT(n))l=Vx;else if(mr(n))if(!isNaN(+n))l=Vx;else{var h=$h(n);h&&(c=h,l=M4)}else if(kA(n)){var p=gn({},c);p.colorStops=_r(n.colorStops,function(g){return{offset:g.offset,color:$h(g.color)}}),Wft(n)?l=KV:Gft(n)&&(l=qV),c=p}a===0?this.valType=l:(l!==this.valType||l===Doe)&&(s=!0),this.discrete=this.discrete||s;var v={time:t,value:c,rawValue:n,percent:0};return r&&(v.easing=r,v.easingFunc=Qr(r)?r:_b[r]||Zme(r)),i.push(v),v},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(S,k){return S.time-k.time});for(var i=this.valType,a=r.length,s=r[a-1],l=this.discrete,c=zx(i),d=Poe(i),h=0;h=0&&!(s[h].percent<=n);h--);h=v(h,l-2)}else{for(h=p;hn);h++);h=v(h-1,l-2)}y=s[h+1],g=s[h]}if(g&&y){this._lastFr=h,this._lastFrP=n;var k=y.percent-g.percent,x=k===0?1:v((n-g.percent)/k,1);y.easingFunc&&(x=y.easingFunc(x));var w=r?this._additiveValue:d?r4:t[c];if((zx(a)||d)&&!w&&(w=this._additiveValue=[]),this.discrete)t[c]=x<1?g.rawValue:y.rawValue;else if(zx(a))a===qE?EN(w,g[i],y[i],x):Kft(w,g[i],y[i],x);else if(Poe(a)){var E=g[i],_=y[i],T=a===KV;t[c]={type:T?"linear":"radial",x:mh(E.x,_.x,x),y:mh(E.y,_.y,x),colorStops:_r(E.colorStops,function(P,M){var O=_.colorStops[M];return{offset:mh(P.offset,O.offset,x),color:KE(EN([],P.color,O.color,x))}}),global:_.global},T?(t[c].x2=mh(E.x2,_.x2,x),t[c].y2=mh(E.y2,_.y2,x)):t[c].r=mh(E.r,_.r,x)}else if(d)EN(w,g[i],y[i],x),r||(t[c]=KE(w));else{var D=mh(g[i],y[i],x);r?this._additiveValue=D:t[c]=D}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===Vx?t[r]=t[r]+i:n===M4?($h(t[r],r4),jx(r4,r4,i,1),t[r]=KE(r4)):n===qE?jx(t[r],t[r],i,1):n===ege&&Loe(t[r],t[r],i,1)},e})(),AW=(function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){kW("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,es(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,GE(d),i),this._trackKeys.push(l)}c.addKeyframe(t,GE(n[l]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a1){var l=s.pop();a.addKeyframe(l.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function X1(){return new Date().getTime()}var Jft=(function(e){$n(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=X1()-this._pausedTime,i=r-this._time,a=this._head;a;){var s=a.next,l=a.step(r,i);l&&(a.ondestroy(),this.removeClip(a)),a=s}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(sT(r),!n._paused&&n.update())}sT(r)},t.prototype.start=function(){this._running||(this._time=X1(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=X1(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=X1()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new AW(n,r.loop);return this.addAnimator(i),i},t})(Pf),Qft=300,TN=Nr.domSupported,AN=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=_r(e,function(i){var a=i.replace("mouse","pointer");return n.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:r}})(),Roe={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Moe=!1;function YV(e){var t=e.pointerType;return t==="pen"||t==="touch"}function eht(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function IN(e){e&&(e.zrByTouch=!0)}function tht(e,t){return Pc(e.dom,new nht(e,t),!0)}function tge(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var nht=(function(){function e(t,n){this.stopPropagation=Du,this.stopImmediatePropagation=Du,this.preventDefault=Du,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),bd={mousedown:function(e){e=Pc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Pc(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Pc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Pc(this.dom,e);var t=e.toElement||e.relatedTarget;tge(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Moe=!0,e=Pc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Moe||(e=Pc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Pc(this.dom,e),IN(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),bd.mousemove.call(this,e),bd.mousedown.call(this,e)},touchmove:function(e){e=Pc(this.dom,e),IN(e),this.handler.processGesture(e,"change"),bd.mousemove.call(this,e)},touchend:function(e){e=Pc(this.dom,e),IN(e),this.handler.processGesture(e,"end"),bd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentBoe||e<-Boe}var Ev=[],m1=[],DN=vy(),PN=Math.abs,IW=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Cv(this.rotation)||Cv(this.x)||Cv(this.y)||Cv(this.scaleX-1)||Cv(this.scaleY-1)||Cv(this.skewX)||Cv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(Ooe(r),this.invTransform=null);return}r=r||vy(),n?this.getLocalTransform(r):Ooe(r),t&&(n?my(r,t,r):Cft(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Ev);var r=Ev[0]<0?-1:1,i=Ev[1]<0?-1:1,a=((Ev[0]-r)*n+r)/Ev[0]||0,s=((Ev[1]-i)*n+i)/Ev[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||vy(),TW(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||vy(),my(m1,t.invTransform,n),n=m1);var r=this.originX,i=this.originY;(r||i)&&(DN[4]=r,DN[5]=i,my(m1,n,DN),m1[4]-=r,m1[5]-=i,n=m1),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&Gc(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Gc(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&PN(t[0]-1)>1e-10&&PN(t[3]-1)>1e-10?Math.sqrt(PN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){aht(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,a=t.scaleX,s=t.scaleY,l=t.anchorX,c=t.anchorY,d=t.rotation||0,h=t.x,p=t.y,v=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||i||l||c){var y=r+l,S=i+c;n[4]=-y*a-v*S*s,n[5]=-S*s-g*y*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=v*s,d&&EW(n,n,d),n[4]+=r+h,n[5]+=i+p,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),p_=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function aht(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function hT(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,a=n.height,s=n.width,l=a/2,c=n.x,d=n.y,h="left",p="top";if(r instanceof Array)c+=P0(r[0],n.width),d+=P0(r[1],n.height),h=null,p=null;else switch(r){case"left":c-=i,d+=l,h="right",p="middle";break;case"right":c+=i+s,d+=l,p="middle";break;case"top":c+=s/2,d-=i,h="center",p="bottom";break;case"bottom":c+=s/2,d+=a+i,h="center";break;case"inside":c+=s/2,d+=l,h="center",p="middle";break;case"insideLeft":c+=i,d+=l,p="middle";break;case"insideRight":c+=s-i,d+=l,h="right",p="middle";break;case"insideTop":c+=s/2,d+=i,h="center";break;case"insideBottom":c+=s/2,d+=a-i,h="center",p="bottom";break;case"insideTopLeft":c+=i,d+=i;break;case"insideTopRight":c+=s-i,d+=i,h="right";break;case"insideBottomLeft":c+=i,d+=a-i,p="bottom";break;case"insideBottomRight":c+=s-i,d+=a-i,h="right",p="bottom";break}return e=e||{},e.x=c,e.y=d,e.align=h,e.verticalAlign=p,e}var RN="__zr_normal__",MN=p_.concat(["ignore"]),lht=D0(p_,function(e,t){return e[t]=!0,e},{ignore:!1}),g1={},uht=new oo(0,0,0,0),CA=(function(){function e(t){this.id=Ome(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,a=n.innerTransformable,s=void 0,l=void 0,c=!1;a.parent=i?this:null;var d=!1;if(a.copyTransform(n),r.position!=null){var h=uht;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g1,r,h):hT(g1,r,h),a.x=g1.x,a.y=g1.y,s=g1.align,l=g1.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var v=void 0,g=void 0;p==="center"?(v=h.width*.5,g=h.height*.5):(v=P0(p[0],h.width),g=P0(p[1],h.height)),d=!0,a.originX=-a.x+v+(i?0:h.x),a.originY=-a.y+g+(i?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var y=r.offset;y&&(a.x+=y[0],a.y+=y[1],d||(a.originX=-y[0],a.originY=-y[1]));var S=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,k=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,w=void 0,E=void 0;S&&this.canBeInsideText()?(x=r.insideFill,w=r.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(x),E=!0)):(x=r.outsideFill,w=r.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(x),E=!0)),x=x||"#000",(x!==k.fill||w!==k.stroke||E!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=x,k.stroke=w,k.autoStroke=E,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=ac,c&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?QV:JV},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&$h(n);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),s=0;s<3;s++)r[s]=r[s]*i+(a?0:255)*(1-i);return r[3]=1,wA(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},gn(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(wr(t))for(var r=t,i=es(r),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(RN,!1,t)},e.prototype.useState=function(t,n,r,i){var a=t===RN,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(vo(l,t)>=0&&(n||l.length===1))){var d;if(this.stateProxy&&!a&&(d=this.stateProxy(t)),d||(d=this.states&&this.states[t]),!d&&!a){kW("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(d);var h=!!(d&&d.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,d,this._normalState,n,!r&&!this.__inHover&&c&&c.duration>0,c);var p=this._textContent,v=this._textGuide;return p&&p.useState(t,n,r,h),v&&v.useState(t,n,r,h),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ac),d}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,s=t.length,l=s===a.length;if(l){for(var c=0;c0,y);var S=this._textContent,k=this._textGuide;S&&S.useStates(t,n,v),k&&k.useStates(t,n,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ac)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),a=vo(i,t),s=vo(i,n)>=0;a>=0?s?i.splice(a,1):i[a]=n:r&&!s&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i=0&&a.splice(s,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,a=[],s=0;s0&&n.during&&a[0].during(function(y,S){n.during(S)});for(var v=0;v0||i.force&&!s.length){var M=void 0,O=void 0,L=void 0;if(l){O={},v&&(M={});for(var _=0;_=0&&(i.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=vo(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,a=i[r];if(n&&n!==this&&n.parent!==this&&n!==a){i[r]=n,a.parent=null;var s=this.__zr;s&&a.removeSelfFromZr(s),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,a=vo(i,n);return a<0?this:(i.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(e<=i)return s;if(e>=a)return l}else{if(e>=i)return s;if(e<=a)return l}else{if(e===i)return s;if(e===a)return l}return(e-i)/c*d+s}function Qo(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return mr(e)?yht(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ys(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),oge),e=(+e).toFixed(t),n?e:+e}function Eh(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return bht(e)}function bht(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),s=a<0?0:i-1-a;return Math.max(0,s-r)}function _ht(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),s=Math.min(Math.max(-i+a,0),20);return isFinite(s)?s:20}function Sht(e,t){var n=D0(e,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,t),i=_r(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=_r(i,function(g){return Math.floor(g)}),l=D0(s,function(g,y){return g+y},0),c=_r(i,function(g,y){return g-s[y]});ld&&(d=c[p],h=p);++s[h],c[h]=0,++l}return _r(s,function(g){return g/r})}function kht(e,t){var n=Math.max(Eh(e),Eh(t)),r=e+t;return n>oge?r:Ys(r,n)}function sge(e){var t=Math.PI*2;return(e%t+t)%t}function pT(e){return e>-Voe&&e=10&&t++,t}function age(e,t){var n=PW(e),r=Math.pow(10,n),i=e/r,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*r,n>=-20?+e.toFixed(n<0?-n:0):e}function vT(e){var t=parseFloat(e);return t==e&&(t!==0||!mr(e)||e.indexOf("x")<=0)?t:NaN}function Cht(e){return!isNaN(vT(e))}function lge(){return Math.round(Math.random()*9)}function uge(e,t){return t===0?e:uge(t,e%t)}function zoe(e,t){return e==null?t:t==null?e:e*t/uge(e,t)}function ku(e){throw new Error(e)}function Uoe(e,t,n){return(t-e)*n+e}var cge="series\0",Eht="\0_ec_\0";function Zl(e){return e instanceof Array?e:e==null?[]:[e]}function tz(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0||a&&vo(a,c)<0)){var d=r.getShallow(c,t);d!=null&&(s[e[l][0]]=d)}}return s}}var Yht=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Xht=m_(Yht),Zht=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Xht(this,t,n)},e})(),nz=new gS(50);function Jht(e){if(typeof e=="string"){var t=nz.get(e);return t&&t.image}else return e}function vge(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=nz.get(e),s={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!TA(t)&&a.pending.push(s)):(t=g3.loadImage(e,Woe,Woe),t.__zrImageSrc=e,nz.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Woe(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var d=dc(n,t);return d>l&&(n="",d=0),l=e-d,i.ellipsis=n,i.ellipsisWidth=d,i.contentWidth=l,i.containerWidth=e,i}function gge(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=dc(t,i);if(s<=r){e.textLine=t,e.isTruncated=!1;return}for(var l=0;;l++){if(s<=a||l>=n.maxIterations){t+=n.ellipsis;break}var c=l===0?ept(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=dc(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function ept(e,t,n,r){for(var i=0,a=0,s=e.length;ay&&d){var S=Math.floor(y/l);h=h||v.length>S,v=v.slice(0,S)}if(e&&a&&p!=null)for(var k=mge(p,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},w=0;wl&&FN(n,e.substring(l,d),t,s),FN(n,c[2],t,s,c[1]),l=NN.lastIndex}li){var H=n.lines.length;D>0?(E.tokens=E.tokens.slice(0,D),x(E,T,_),n.lines=n.lines.slice(0,w+1)):n.lines=n.lines.slice(0,w),n.isTruncated=n.isTruncated||n.lines.length0&&y+r.accumWidth>r.width&&(h=t.split(`
+`),d=!0),r.accumWidth=y}else{var S=yge(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=S.accumWidth+g,p=S.linesWidths,h=S.lines}}else h=t.split(`
+`);for(var k=0;k