mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-06 08:17:31 +00:00
9 lines
625 KiB
JavaScript
9 lines
625 KiB
JavaScript
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('P.2J.43=X P.27(P.2J.4f,{5b:["ci","73","7N","aD","ea"],1X:"",4G:1d,5c:1a,3c:1a,sI:R,4w:R,a0:R,89:1d,cZ:5,mj:S(){Y O.3c},Ax:S(c){if(O.3c!==c){O.3c=c;if(O.3C.W!==0&&!c){O.1p.1E("73",{1h:O.3C.53()})}Q a=O.1c.Aw("P.4r.ix");if(O.3c){19(Q d=0;d<a.W;d++){a[d].2C.17(O);a[d].mr(a[d].2C)}}13{19(Q d=0;d<a.W;d++){Q b=P.1o.3v(a[d].2C,O);if(b!==-1){a[d].2C.2S(b,1);a[d].mr(a[d].2C)}}}}},fd:S(){Y O.5c},ko:S(a){O.5c=a;if(O.3C.W!==0){O.1p.1E("aD",{1h:O.3C})}},77:S(){Y O.4G},hc:S(a){O.4G=a;if(O.3C.W!==0){O.1p.1E("aD",{1h:O.3C})}},hb:S(a){if(O.3C.W!==0&&!a){O.1p.1E("73",{1h:O.3C.53()})}P.2J.4f.1x.hb.1q(O,1K)},1I:S(c,a,b){if(b&&b.bj){b.bj=O.sH(b.bj)}13{O.bj=["dV","kR","fq","do"]}if(b&&b.1Y){O.1Y=b.1Y}O.1X=a;19(Q d=0;d<O.5b.W;d++){if(P.1o.3v(P.2J.4f.1x.5b,O.5b[d])===-1){P.2J.4f.1x.5b.17(O.5b[d])}}P.2J.4f.1x.1I.1q(O,[c,b]);O.89=O.4Z 1m P.2N.57},1B:S(){O.1X=R;O.sI=R;if(O.4w!==R){O.4w.1B();O.4w=R}P.2J.1x.1B.1q(O,1K)},sH:S(b){S a(d){if(d==="8d"){Y"dV"}13{if(d==="fp"){Y"kR"}13{if(d==="57"){Y"fq"}13{if(d==="97"){Y"do"}}}}}19(Q c=0;c<b.W;c++){b[c]=a(b[c])}Y b},5t:S(d,b){if(!(P.1o.4g(d))){d=[d]}19(Q c=0;c<d.W;c++){if(d[c].T 1m P.U.3H||d[c].T 1m P.U.4J){19(Q a=0;a<d[c].T.11.W;a++){d[c].T.11[a].1g=O}}}P.2J.4f.1x.5t.1q(O,1K)},2m:S(a,c,b){if(a.T 1m P.U.1N){a.T.6U();O.1p.1E("Av")}if(a.T.3c&&((a.Z&&a.Z.23==="3N")||(c&&c.23==="3N"))){O.1p.1E("73",{1h:[a]})}P.2J.4f.1x.2m.1q(O,1K)},8t:S(a){P.2J.4f.1x.8t.1q(O,1K);if(O.4Z.1t==="P.2N.57"||O.4Z.1t==="P.2N.97"){O.4Z.6D=1d}},4D:S(e){if(!e||e.W===0){Y}if(e===O.1h){Y O.7P()}if(!(P.1o.4g(e))){e=[e]}if(e===O.3C){e=e.53()}19(Q c=0;c<e.W;c++){Q d=e[c];if(d.T.3c){O.1p.1E("73",{1h:[d]})}if(d.T 1m P.U.1N){Q a=[];19(Q b=0;b<d.T.4a.W;b++){if(d.T.4a[b].3c){O.1p.1E("73",{1h:[d.T.4a[b].1b]})}a.17(d.T.4a[b].1b)}if(a.W!==0){P.2J.4f.1x.4D.1q(O,[a])}}if(d.T 1m P.U.4J){19(Q b=0;b<d.T.11.W;b++){if(d.T.11[b].T.3c){O.1p.1E("73",{1h:[d.T.11[b]]})}}}if(d.T 1m P.U.cI){d.T.fI(d.T.55);d.T.fI(d.T.56)}}P.2J.4f.1x.4D.1q(O,[e])},sr:S(d,a){Q c=(d==1l);if(c){d=O.1h}if(!(P.1o.4g(d))){d=[d]}if(d){O.4D(d,a);19(Q b=d.W-1;b>=0;b--){d[b].1B()}}},7P:S(){if(O.3C.W!==0){O.1p.1E("73",{1h:O.3C})}P.2J.4f.1x.7P.1q(O,[])},sG:S(a){Y O.1h[a]},4b:S(c){19(Q b=0;b<O.1h.W;b++){if(O.1h[b].T.1r===c){Y O.1h[b]}13{if(O.1h[b].T 1m P.U.3H||O.1h[b].T 1m P.U.4J){19(Q a=0;a<O.1h[b].T.11.W;a++){if(O.1h[b].T.11[a].T.1r===c){Y O.1h[b].T.11[a]}}}}}Y R},Au:S(b){Q a=O.sF(b);O.4D([a])},At:S(a){Q b=O.sG(a);O.4D([b])},km:S(f,d,e,a,c,k,b){if(!P.1o.4g(e)){e=[e]}Q j=[];19(Q g=0;g<e.W;g++){Q h=O.1c.2G(e[g]);j.17(X P.U.1f(h.1U,h.1T))}O.h8(f,d,j,a,c,k,b)},h8:S(j,g,h,b,e,q,d){j=4A(j);g=4A(g);if(!P.1o.4g(h)){h=[h]}if(!q){q={}}q.5z=d;q.1r=b;if((q.1i===1l||q.1i===R)&&P.U.1N.5O(j,g)){Q o=O.ev(j,g);Q l=["5K","6h","2H"];Q f=1d;19(Q k=0;k<l.W;k++){Q c=l[k];if(q&&o&&q[c]!==1l&&q[c]!==o[c]){f=1a;1C}}if(o===R||f){Q m=1n.f7(1n.h0()*6a);S p(n){if(n.2B.7m&&n.2B.7m===P.kd.kc(m.5R())){if(!n.2B.1v||!n.2B.1A){Y}if(n.2B.1s===P.V.1j.5j&&!o&&!f){3k n.2B.7m;O.9E(n.2B)}o=P.1o.5Z(n.2B);q.1i=o;O.2X(j,g,h,e,q)}13{Y}}S a(n){Y R}q.7m=m;O.aE(j,g,h,p,a,R,q)}13{q.1i=o;O.2X(j,g,h,e,q)}}13{O.2X(j,g,h,e,q);if(q.1i&&q.1i.1s===P.V.1j.5j){O.9E(q.1i)}}},As:S(b,g,f,d,c,a,e){if(!a){a={}}a.55=b;a.56=g;a.7Y=f;a.1r=d;a.5z=e;a.1g=O;O.2X(0,P.V.1j.ao,R,c,a)},Ar:S(f,e,c,b,a,d){if(!a){a={}}a.3t=f;a.1r=c;a.5z=d;a.1g=O;O.2X(0,P.V.1j.dC,e,b,a)},Aq:S(g,e,a,d,c,b,f){if(!b){b={}}b.2e=a;b.1H=e;b.1r=d;b.5z=f;b.1g=O;O.2X(0,P.V.1j.bT,g,c,b)},Ap:S(j,g,h,e,f,b,a,d,k,c){if(!k){k={}}k.4e=j;k.4K=g;k.39=h;k.33=e;k.1H=f;k.2e=b;k.1r=a;k.5z=c;k.1g=O;O.2X(0,P.V.1j.cd,R,d,k)},Ao:S(c,b,e,a,d,f){if(!d){d={}}d.2p=b;d.1r=e;d.5z=f;d.1g=O;d.4x=c;d.6F=a;O.2X(0,P.V.1j.dB,R,R,d)},An:S(c,b,e,a,d,f){if(!d){d={}}d.2p=b;d.1r=e;d.5z=f;d.1g=O;d.4x=c;d.6F=a;O.2X(0,P.V.1j.dA,R,R,d)},Am:S(c,b,e,a,d,f){if(!d){d={}}d.2p=b;d.1r=e;d.5z=f;d.1g=O;d.4x=c;d.6F=a;O.2X(0,P.V.1j.dz,R,R,d)},Al:S(f,e,c,b,a,d){if(!a){a={}}a.1Q=e;a.3t=f;a.1r=c;a.5z=d;a.1g=O;O.2X(0,P.V.1j.an,R,b,a)},Ak:S(f,e,c,b,a,d){if(!a){a={}}a.1Q=e;a.3t=f;a.1r=c;a.5z=d;a.1g=O;O.2X(0,P.V.1j.am,R,b,a)},Aj:S(f,e,g,h,b,d,k,c){O.aE(f,e,R,j,a);S j(l){if(!l.2B.1v||!l.2B.1A){Y}if(!k){k={}}k.1Q=[{1v:f,1A:e,1i:l.2B,1H:h}];k.5e=g;k.1H=h;k.1r=b;k.5z=c;k.1g=O;O.2X(0,P.V.1j.al,R,d,k)}S a(l){Ai X Ah(l)}},Ag:S(e,a,c,b,d){O.2X(0,P.V.1j.8v,R,b,{3t:e,2Y:a,1r:c,5z:d})},Af:S(f,a,d,c,e){19(Q b=0;b<a.W;b++){a[b].2z="hN"}O.2X(0,P.V.1j.8v,R,c,{3t:f,2Y:a,1r:d,5z:e})},Ae:S(f,a,d,c,e){19(Q b=0;b<a.W;b++){a[b].2z="hM"}O.2X(0,P.V.1j.8v,R,c,{3t:f,2Y:a,1r:d,5z:e})},Ad:S(f,b,d,c,a,e){if(!a){a={}}a.3t=f;a.1H=b;a.1r=d;a.5z=e;a.1g=O;O.2X(0,P.V.1j.ak,R,c,a)},Ac:S(f,e,c,b,a,d){if(!a){a={}}a.3t=f;a.3S=e;a.1r=c;a.5z=d;a.1g=O;O.2X(0,P.V.1j.9B,R,b,a)},kl:S(d,g,c,b,f){Q a=O.1c.2G(g);Q e=X P.U.1f(a.1U,a.1T);Y O.h7(d,e,c,b,f)},h7:S(c,e,b,a,d){if(e!==R&&c!==1l){if(!P.1o.4g(e)){e=[e]}O.2X(0,P.V.1j.4E,e,a,{1H:c,1r:b,5z:d})}},Ab:S(f,k,a,g,e,h,b,d,j,c){if(k!==R&&f!==1l){if(!P.1o.4g(k)){k=[k]}if(!j){j={}}j.1H=f;j.4p=a;j.18=k;j.6q=g;j.8f=e;j.8A=h;j.1r=b;j.5z=c;O.2X(0,P.V.1j.ba,k,d,j)}},Aa:S(f,g,e,c,b,a,d){if(f!==R){if(!P.1o.4g(f)){f=[f]}O.2X(0,P.V.1j.gX,f,b,{fM:g,fL:e,1r:c,5z:d})}},A9:S(g,c,a,e,d,b,f){if(g!==R){if(!P.1o.4g(g)){g=[g]}O.2X(0,P.V.1j.8Z,g,d,{39:c,33:a,1r:e,5z:f})}},A8:S(f,a,d,c,b,e){if(f!==R){if(!P.1o.4g(f)){f=[f]}if(!b){b={}}b.4K=a;b.1r=d;b.5z=e;b.1g=O;O.2X(0,P.V.1j.gW,f,c,b)}},gL:S(f,e,d){Q a=1d;Q c=[];19(Q b=0;b<f.W;b++){if(!(f[b].T 1m P.U.1N)){1W}if(f[b].T 1m P.U.3H){1W}if(f[b].T 1m P.U.i0||f[b].T 1m P.U.hW){1W}if(f[b].T 1m P.U.3g){f[b].T.rH()}if(f[b].T.3c){a=1a}c.17(f[b].T.1r)}if(c.W>=2){O.2X(0,P.V.1j.ce,R,d,{4j:c,1r:e},a)}},gM:S(b){Q a=O.4b(b);if(a===R){a=O.sF(b)}if(a!==R&&a.T!==R&&a.T 1m P.U.3H){if(a.T.1s!==P.V.1j.an&&a.T.1s!==P.V.1j.am){a.T.gM();O.4D([a])}}},gK:S(h,g,f,e){Q a=1d;Q d=[];Q c=[];19(Q b=0;b<h.W;b++){if(h[b].T.3c){a=1a}if((h[b].T.1v===4F&&(h[b].T.1A>=l9&&h[b].T.1A<=qd))){d.17(h[b].T.1r);c.17(h[b])}}if(d.W>0){O.2X(0,P.V.1j.ca,R,e,{4j:d,5i:g,1r:f},a)}},A7:S(a,c){Q d=X P.U.3g({18:a});Q b=X P.5N.4f(d);if(c){b.Z=P.1o.2t(b.Z,c)}13{b.Z=P.1o.2t(b.Z,P.U.1N.74)}d.1b=b;d.1u();Y b},A6:S(d){Q g=gF.gE(d);Q c=4A(g.1v);Q b=4A(g.1A);g.5J=1a;if(P.U.1N.5O(c,b)){Q h={};h.5K=g.5K;h.6h=4A(g.6h);h.2H=4A(g.2H);if(g.2l("ch")&&g.ch.W!==0){h.61=g.ch}Q e=1d;if(h.5K||h.2H!==0||h.6h!==0){e=1a}Q f=O.ev(c,b);if(!e&&f!==R){P.V.5H.sE(g,f);Q h={1i:g,1c:O.1c,1X:O.1X};O.2X(c,b,R,R,h)}13{S j(k){if(!k.2B.1v||!k.2B.1A){Y}if(k.2B.1s===P.V.1j.5j&&!e){O.9E(k.2B)}f=P.1o.5Z(k.2B);P.V.5H.sE(g,f);Q l={1i:g,1c:O.1c,1X:O.1X};O.2X(c,b,R,R,l)}S a(k){Y R}O.aE(c,b,R,j,a,R,h)}}13{Q h={1i:g,1c:O.1c,1X:O.1X};O.2X(c,b,R,R,h)}},2X:S(g,l,e,b,t,c){if(!t){t={}}t.1c=O.1c;t.1X=O.1X;Q f=P.U.1N.2X(g,l,e,t,b);if(f&&f.T){f.T.1Y=O.1Y}13{Y}if(!P.U.1N.5O(g,l)&&f.T.1Q&&f.T.1Q.W>0){Q q=[];19(Q k=0;k<f.T.1Q.W;k++){if(f.T.1Q[k].1i===R){q.17(f.T.1Q[k])}}if(q.W===0){O.5t(f);O.1p.1E("ci",{1b:f});if(c===1a){O.1p.1E("7N",{1h:[f]})}Y}19(Q k=q.W-1;k>=0;k--){if(q[k].1i===R){q[k].1i=O.ev(q[k].1v,q[k].1A);if(q[k].1i!==R){q.2S(k,1)}}}if(q.W===0){f.T.5J=1d;f.T.1u();O.5t(f);O.1p.1E("ci",{1b:f});if(c===1a){O.1p.1E("7N",{1h:[f]})}Y}19(Q j=0;j<q.W;j++){19(Q h=j+1;h<q.W;){if(q[j].1v==q[h].1v&&q[j].1A==q[h].1A){q.2S(h,1)}13{h++}}}Q d=q.53();19(Q k=0;k<q.W;k++){O.aE(q[k].1v,q[k].1A,R,s,a)}S s(m){if(m.2B.1s===P.V.1j.5j){O.9E(m.2B)}19(Q n=0;n<f.T.1Q.W;n++){if(f.T.1Q[n].1i===R&&f.T.1Q[n].1v===m.2B.1v&&f.T.1Q[n].1A===m.2B.1A){Q u=P.1o.3v(d,f.T.1Q[n]);if(u!==-1){d.2S(u,1)}f.T.1Q[n].1i=P.1o.5Z(m.2B)}}if(d.W===0){f.T.5J=1d;f.T.1u();O.5t(f);O.1p.1E("ci",{1b:f});if(c===1a){O.1p.1E("7N",{1h:[f]})}}}S a(m){}}13{if(P.U.1N.5O(g,l)&&!f.T.1i.3o){Q r={1Q:f.T.1Q,2a:f.T.2a,2H:f.T.2H};O.aE(f.T.1v,f.T.1A,f.T.18,o,p,O,r);S o(m){f.T.1i.3o=m.2B.3o;f.T.5J=1d;f.T.1u();O.5t(f)}S p(m){}}13{O.5t(f);O.1p.1E("ci",{1b:f});if(c===1a){O.1p.1E("7N",{1h:[f]})}Y}}},sD:S(a){Q c=P.2J.4f.1x.sD.1q(O,1K);if(c!==R&&O.5c===1d&&c.T.rn!==1a){c=R}if(R===c){if(O.1c===R){Y R}Q b=O.1c.2G(a.xy);c=O.bl(b,O.cZ,a)}Y c},A5:S(a){Q f=[];if(O.1c===R){Y f}Q c=O.1c.2G(a.xy);Q b=O.cU(O.cZ);19(Q e=O.1h.W-1;e>=0;e--){Q d=O.6G(O.1h[e],c,b);if(d){f.17(d)}}Y f},cU:S(d){if(!d){d=O.cZ}Q c=O.1c.2G(X P.3L(0,0));Q b=O.1c.2G(X P.3L(d,0));Q a=P.V.1k.2I({x:c.1U,y:c.1T},{x:b.1U,y:b.1T});Y a},bl:S(e,d){if(!d){d=O.cZ}Q a=O.cU(d);Q c=R;19(Q b=O.1h.W-1;b>=0;b--){c=O.6G(O.1h[b],e,a);if(c!==R){1C}}Y c},6G:S(j,f,e){if(R==j||R==j.T){Y R}if(R!==j.Z&&j.Z.23==="3N"){Y R}if(!(j.T 1m P.U.1N)&&!(j.T 1m P.U.46)&&!(j.T 1m P.U.3g)){Y R}if(j.T 1m P.U.4o||j.T 1m P.U.3g){e=0}Q d,a,g;if(j.T 1m P.U.3H){19(d=0;d<j.T.11.W;d++){if(O.6G(j.T.11[d],f,e)){Y j}}}13{if(j.T 1m P.U.4J){Q b=1d;19(d=0;d<j.T.11.W;d++){if(O.6G(j.T.11[d],f,e)){if(j.T.11[d].T 1m P.U.4o||j.T.11[d].T 1m P.U.9S){Y j.T.11[d]}13{b=1a}}}if(b===1a){Y j}}13{if(j.T.1s===P.V.1j.4E){P.V.1k.fJ(j.T.11[0].Z,j.Z);if(O.iS(f,e,j.T.11[0])){Y j}}13{if(j.T.1s===P.V.1j.9B){19(d=0;d<j.T.11.W;d++){P.V.1k.fJ(j.T.11[d].Z,j.Z);if(O.iS(f,e,j.T.11[d])){Y j}}}13{if(j.T 1m P.U.46){a=j.T.2F();if(R==a){Y R}g=a.2s();if(j.T.3A===1||j.T.3A===2||j.T.3A===3){g.1Z+=e;g.21-=e;g.2c+=e}13{if(j.T.3A===6||j.T.3A===7||j.T.3A===8){g.2h-=e;g.21-=e;g.2c+=e}13{if(j.T.3A===4){g.2h-=e;g.1Z+=e;g.21-=e}13{if(j.T.3A===5){g.2h-=e;g.1Z+=e;g.2c+=e}13{if(j.T.3A===0||j.T.3A===-1||j.T.3A===-2){g.2h-=e;g.1Z+=e;g.21-=e;g.2c+=e}}}}}if(!O.mG(f,g)){Y R}Y j}13{a=j.T.2F();if(R==a){Y R}g=a.2s();g.2h-=e;g.1Z+=e;g.21-=e;g.2c+=e;if(!O.mG(f,g)){Y R}if(j.T 1m P.U.46||j.T 1m P.U.4o||j.T 1m P.U.3g){Y j}19(Q c=0;c<j.T.11.W;c++){Q h=j.T.11[c];if(O.iS(f,e,h)){Y j}}}}}}}Y R},mG:S(a,b){if(R==a||R==b){Y 1d}if(a 1m P.2v&&a.1U>=b.21&&a.1U<=b.2c&&a.1T>=b.2h&&a.1T<=b.1Z){Y 1a}13{if(a.x>=b.21&&a.x<=b.2c&&a.y>=b.2h&&a.y<=b.1Z){Y 1a}}Y 1d},A4:S(a,b){if(R==a||R==b){Y 1d}if(a.x>=b.21&&a.x<=b.2c&&a.y<=b.2h&&a.y>=b.1Z){Y 1a}Y 1d},iS:S(d,j,g){if(g.1t==="P.U.1f"){Y 1d}if(g.1t==="P.U.5q"){Q f=g.9T(O.1c,g.Z);Q a=X P.U.1f(d.1U,d.1T);Y P.V.1k.A3(a,f)}13{if(g.1t==="P.U.4T"||g.1t==="P.U.5h"){Y g.hk(X P.U.1f(d.1U,d.1T))}13{19(Q c=0;c<g.11.W-1;c++){Q h=X P.U.1f(g.11[c].x,g.11[c].y);Q e=X P.U.1f(g.11[c+1].x,g.11[c+1].y);Q b=P.V.1k.A2({x:d.1U,y:d.1T},h,e);if(b<=j){Y 1a}}}}Y 1d},cP:S(d,b,e){if(1l!==O.1c&&R!==O.1c&&1l!==O.1c.iR.Z.7U&&R!==O.1c.iR.Z.7U&&""!==O.1c.iR.Z.7U){if(d){O.66(O.1c.iR.Z.7U)}Y}if(d){if(d.T.1t==="P.U.46"&&d.T.6D!==1a){if(1l!==d.T.3A&&R!==d.T.3A){6z(d.T.3A){1z 1:1z 8:O.66("se-59");1C;1z 3:1z 6:O.66("ne-59");1C;1z 4:1z 5:O.66("e-59");1C;1z 2:1z 7:O.66("n-59");1C;1z 0:O.66("A1");1C;1z-1:1z-2:O.66("8e");1C;6y:O.66("2n");1C}}}13{if(d.T 1m P.U.1N||d.T 1m P.U.3g){if(d.T.3c){if(e===P.V.5k.ai&&(P.V.9j.af!==P.U.1N.9e(d.T.1v,d.T.1A)||d.T.1s===P.V.1j.ad||d.T 1m P.U.4J||d.T 1m P.U.4o&&(d.T.ec()||d.T.eb()))){O.66("sC")}13{if(e===P.V.5k.du&&(P.V.9j.af!==P.U.1N.9e(d.T.1v,d.T.1A)||d.T 1m P.U.4J||d.T 1m P.U.4o&&(d.T.ec()||d.T.eb()))){O.66("8e")}13{O.66("2n")}}}13{if(e===P.V.5k.ai&&d.T 1m P.U.4o&&d.T.3W.3c&&(d.T.ec()||d.T.eb())){O.66("sC")}13{if(e===P.V.5k.du&&d.T 1m P.U.4o&&d.T.3W.3c&&(d.T.ec()||d.T.eb())){O.66("8e")}13{O.66("8e")}}}}13{O.66("8e")}}}13{Q c=P.1o.sv();Q a;if(O.4w&&O.4w.8k){a="2Q(\'"+c+"iQ/mC.iP\'),2n";O.66(a)}13{if(b&&b.2z==="80"){a="2Q(\'"+c+"iQ/A0.iP\'),2n";O.66(a)}13{if(b&&b.su===0){a="2Q(\'"+c+"iQ/mC.iP\'),2n";O.66(a)}}}}},66:S(a){if(O.4Z.1t==="P.2N.fq"||O.4Z.1t==="P.2N.do"){O.4Z.mF.Z.7U=a}13{if(O.4Z.1t==="P.2N.dV"){O.4Z.cB.Z.7U=a}}O.1c.sp.Z.7U=a},aE:S(c,a,b,j,e,g,f){if(!g){g=O}Q h=X P.1P.7M(O.1X);h.1p.on({4n:j,4m:e,3R:g});Q d=X P.1P.6O();d.1v=c;d.1A=a;if(f){P.1o.2R(d,f)}if(b!==R){if(!P.1o.4g(b)){b=[b]}d.61=b}h.4P(d,O.1Y)},ev:S(e,d){Q a=P.2Z.3r(O.1c,O.1X);Q c=a.dI();Q b=c.ap(e);if(b!==R){Y b.7l(d)}Y R},9E:S(d){Q a=P.2Z.3r(O.1c,O.1X);Q c=a.dI();Q b=c.ap(d.1v);if(b!==R){Y b.9E(d)}Y R},1t:"P.2J.43"});P.2J.eR=P.27(P.2J.zZ,{zY:"dV",8t:S(f){Q e=O,d=e.1h;if(!e.88){Y}O.4Z.mv();if(!d||d.W<1){Y}19(Q b=0,a=d.W;b<a;b++){Q c=d[b];e.2m(c,1l,{zX:[1a,1]})}},2m:S(j,b,f){if(oX b!=="zW"){if(!b&&j.zV===P.zU.oF){b="3k"}Q h=b||j.zT;b=j.Z||O.Z;if(!b){b=O.sw.zS(j,h)}}if(!j||!j.T){Y}if(j.T.1t==="P.U.6b"&&j.eH===1a){S k(l){j.T.1i.3o=l.2B.3o;j.T.1b=j;j.T.1u();Q m=O.4Z.2m(j,b,f);m&&O.sB(m);O.4Z.mF.Z.7U="8e";m&&O.1p.1E("sA",m)}S a(l){j.T.18=[];O.4Z.2m(j,b,f);Y}Q d=P.2Z.3r();if(R===d.1X){Y}Q g=X P.1P.7M(d.1X);g.1p.on({4n:k,4m:a,3R:O});Q c=X P.1P.6O();c.1v=j.T.1i.1v;c.1A=j.T.1i.1A;c.61=j.T.18;g.4P(c,d.1Y)}13{Q e=O.4Z.2m(j,b,f);e&&O.sB(e);O.4Z.mF.Z.7U="8e";e&&O.1p.1E("sA",e)}},eE:S(a){if(R===a){Y}O.1h.17(a)},5t:S(b){if(R===b){Y}if(!(P.1o.4g(b))){b=[b]}19(Q a=0;a<b.W;a++){O.eE(b[a])}},gp:S(b){if(R===b){Y}19(Q a=0;a<O.1h.W;a++){if(O.1h[a]===b){O.1h.2S(a,1);1C}}},4D:S(b){if(R===b){Y}19(Q a=0;a<b.W;a++){O.gp(b[a])}},1t:"P.2J.eR"});P.2J.sx=P.27(P.2J.mD,{iy:R,mE:R,1I:S(b,a,c){P.2J.mD.1x.1I.1q(O,1K);O.iy=R;O.mE=[]},1B:S(){O.iy=R;O.mE=R;P.2J.mD.1x.1B.1q(O,1K)},rR:S(d){Q c=O.zR(d.ma);O.zQ(c);Q e=[];Q g=X P.3I.gh({1b:d});Q b=d.T.18[0].x;Q h=d.T.18[0].y;Q a=X P.U.1f(b,h);Q f=X P.sz(a);f.id=d.ma;f.Z={cK:g};e.17(f);O.sy(e)},5t:S(e){if(!(P.1o.4g(e))){e=[e]}Q c=[];19(Q d=0;d<e.W;d++){Q b=X P.3I.gh({1b:e[d]});Q a=e[d].T.18[0].x;Q g=e[d].T.18[0].y;Q f=X P.sz(X P.U.1f(a,g));f.Z={cK:b};c.17(f)}O.sy(c)},1t:"P.2J.sx"});P.2J.43.g4=X P.27(P.2J.43,{4D:S(a){P.2J.43.1x.4D.1q(O,[a])},7P:S(){P.2J.43.1x.7P.1q(O,[1d])},1t:"P.2J.43.g4"});P.2J.43.iL=P.27(P.2J.4f.iL,{83:R,mp:R,1t:"P.2J.43.iL"});P.95.1V=P.27(P.95,{1X:"",1v:-1,6A:-1,6W:R,iM:1d,ga:R,zP:R,18:[],2f:R,et:1d,g9:R,st:5,sq:20,5g:R,1g:R,zO:1d,bJ:1d,cW:R,ge:R,cY:R,mz:1d,gc:1d,zN:1d,4V:1d,cX:R,gb:1d,cZ:6,mt:{2q:1d,2L:"#df",3M:1,1D:1,5M:"kW"},1I:S(c,b,a){if(!(a&&a.g9&&a.g9.sw)){if(!O.Z){O.Z=P.1o.2R(P.5N.4f.Z["6y"],{})}}P.95.1x.1I.1q(O,1K);O.1X=O.83.1g.1X;O.1Y=O.83.1g.1Y},64:S(){O.83.1g.66("6y");if(!P.95.1x.64.1q(O,1K)){Y 1d}O.18=[];O.2f=R;O.et=1d;Q a=P.1o.2R({eS:1d,iw:P.iv.iu},O.g9);O.1g=X P.2J.43.g4(O.1t,"",a);O.1c.dq(O.1g);P.eo.sl(O.1c.bH,"iK");Y 1a},4S:S(){if(!P.95.1x.4S.1q(O,1K)){Y 1d}O.18=[];O.2f=R;O.et=1d;O.mx();if(O.1c!=R){P.eo.ip(O.1c.bH,"iK");O.my(1a);O.1g.1B(1d)}O.1g=R;O.4V=1d;Q b=P.1o.sv();Q a="2Q(\'"+b+"iQ/mC.iP\'),2n";O.83.1g.66(a);Y 1a},2X:S(b){Q h=O.1g.2G(b);Q m=X P.U.1f(h.1U,h.1T);O.5g=X P.5N.4f(m);if(O.iM&&O.ga===R){O.ga=O.1c.3m()}if(!P.U.1N.5O(O.1v,O.6A)){O.2f=O.iN();if(O.2f.T.1Q&&O.2f.T.1Q.W>0){S g(o){O.6W=o.2B;if(O.6W.1s===P.V.1j.5j){Q p=P.2Z.3r(O.1c,O.1X);Q s=p.dI();Q r=s.ap(O.6W.1v);if(r!==R){r.9E(O.6W)}}19(Q q=0;q<O.2f.T.1Q.W;q++){Q v=P.1o.5Z(O.6W);Q u=O.2f.T.1Q[q].1v;Q t=O.2f.T.1Q[q].1A;if(u===O.6W.1v&&t===O.6W.1A){O.2f.T.1Q[q].1i=v}}}S j(o){}Q n=[];19(Q e=0;e<O.2f.T.1Q.W;e++){Q c=O.2f.T.1Q[e].1v;Q a=O.2f.T.1Q[e].1A;O.2f.T.1Q[e].1i=O.83.1g.ev(c,a);if(O.2f.T.1Q[e].1i===R&&P.1o.3v(n,[c,a])===-1){n.17([c,a]);O.83.1g.aE(c,a,R,g,j,O)}}}O.aK("mB",[O.5g.T,O.aL()]);O.5g.T.3z()}13{Q k=1n.f7(1n.h0()*6a);S d(o){if(o.2B.7m&&o.2B.7m===P.kd.kc(k.5R())){if(!o.2B.1v||!o.2B.1A){O.2f=R}13{O.6W=o.2B;if(O.6W.1s===P.V.1j.5j){Q p=P.2Z.3r(O.1c,O.1X);Q r=p.dI();Q q=r.ap(O.6W.1v);if(q!==R){q.9E(O.6W)}}Q s=P.1o.5Z(O.6W);O.2f=O.iN({1i:s});O.aK("mB",[O.5g.T,O.aL()]);O.5g.T.3z()}}13{O.2f=R}}S f(o){}O.6W=O.83.1g.ev(O.1v,O.6A);if(O.6W===R){O.83.1g.aE(O.1v,O.6A,R,d,f,O,{7m:k})}13{Q l=P.1o.5Z(O.6W);O.2f=O.iN({1i:l});O.aK("mB",[O.5g.T,O.aL()]);O.5g.T.3z()}}},eu:S(b){if(O.cY&&O.cY.lJ(b)){Y 1a}if((!O.5g||!O.2f)){O.2X(b)}if(O.5g&&O.2f){Q e=O.1g.2G(b);O.5g.T.x=e.1U;O.5g.T.y=e.1T;if(O.et==1a||O.2f.T.1s===P.V.1j.5j){if(!(O.2f.T 1m P.U.4J)){Q g=X P.U.1f(e.1U,e.1T);Q f=O.18.4Y([g]);O.so(f);if(O.2f.T.1s===P.V.1j.5j||(!P.U.1N.5O(O.1v,O.6A)&&O.2f.T.18.W>=O.2f.T.3V)){O.2f.T.1u();O.aK("gg",[O.5g.T,O.aL(),1d]);O.5g.T.3z();O.2m({gf:1a})}13{if(O.2f.T.18.W>=O.2f.T.3V){S a(j){if(O.2f===R){Y}O.2f.T.1i=j.2B;O.6W=j.2B;O.2f.T.1u();O.aK("gg",[O.5g.T,O.aL(),1d]);O.5g.T.3z();O.2m({gf:1a})}S h(j){Y}Q c=X P.1P.7M(O.1X);c.1p.on({4n:a,4m:h,3R:O});Q d=X P.1P.6O();d.1v=O.2f.T.1v;d.1A=O.2f.T.1A;d.61=O.2f.T.18;c.4P(d,O.1Y)}13{if(O.2f.T.18.W>=2&&O.2f.T.18.W<O.2f.T.3V){O.2f.T.1u();O.aK("gg",[O.5g.T,O.aL(),1d]);O.5g.T.3z();O.2m({gf:1a})}}}}}}},zM:S(){O.aK("gg",[O.5g.T,O.aL(),1d]);O.2m({gf:1a})},iJ:S(a){if(a.su==2){Y 1a}if(!O.83.1g.5c){Y 1a}O.bJ=1a;O.ge=a.xy;O.et=1a;if(!O.4V){O.eu(a.xy)}if(O.6A===f2){O.gb=1a}O.cW=O.gc;Y!O.gc},up:S(b){if(!O.83.1g.5c){Y 1a}O.bJ=1d;O.cW=O.gc;if(O.cY&&O.cY.lJ(b.xy)){Y 1a}if(O.ge&&O.mw(O.ge,b.xy,O.st)){if(O.4V){O.eu(b.xy)}if(O.mz){O.ss()}if(O.2f){O.cY=b.xy;O.mA(b.xy);Q a=O.18.W;if(a===O.2f.T.5w||0===O.2f.T.5w){O.iO()}}Y 1a}13{Y 1a}},e1:S(a){if(O.2f&&((O.2f.T 1m P.U.4J&&O.2f.T.2p.W>=O.2f.T.3V)||(O.18.W>=O.2f.T.3V))){O.iO()}P.gd.71(a);Y 1d},2n:S(a){if(!O.83.1g.5c){Y 1a}if(O.6A===f2){if((!O.bJ||O.cW)&&O.gb){O.mA(a.xy);O.eu(a.xy)}13{if(!O.4V&&(!O.bJ||O.cW)){O.eu(a.xy)}}}13{if(!O.4V&&(!O.bJ||O.cW)){O.eu(a.xy)}}Y 1a},7u:S(a){P.gd.71(a);Y 1d},ss:S(){Q a=O.1g;if(a&&a.1h.W>1){O.1g.1h[0].1B()}},mA:S(d){Q e=O.1g.2G(d);Q f=X P.U.1f(e.1U,e.1T);if(O.2f&&O.2f.T 1m P.U.4J){Q c=O.1c.2G(X P.3L(0,0));Q b=O.1c.2G(X P.3L(O.cZ,0));Q a=P.V.1k.2I({x:c.1U,y:c.1T},{x:b.1U,y:b.1T});O.2f.T.qm(f,a);O.2f.T.1u();O.aK("gg",[O.5g.T,O.aL(),1d]);O.5g.T.3z();O.2m({gf:1a})}13{O.18.17(f)}},2m:S(a){O.1g.4Z.mv();O.1g.2m(O.2f,O.Z,a);O.1g.2m(O.5g,O.Z,a)},aL:S(){Y O.2f},my:S(a){if(O.1g&&(a||!O.mz)){O.1g.sr()}O.5g=R;O.2f=R},mu:S(d){Q c=d?"mx":"ms";O.bJ=1d;O.ge=R;O.cY=R;O.cX=R;Q b=P.V.1k.gD(O.2f);if(b){b.T.5J=1a;O.aK(c,[b]);O.my(d);if(c==="ms"&&b.T.1s!==P.V.1j.9A){Q e=X P.V.6d();e.7E=P.V.7D.gO;Q a=X P.V.4d();a.3K=b.1g.id;a.1b=b;e.1O.17(a);P.2Z.3r().6f().6c(e)}}},mx:S(){O.mu(1a);if(O.6A===f2){O.gb=1d}},80:S(a){Y O.iJ(a)},zL:S(a){if(!O.4V){O.4V=1a;O.1c.1p.un({80:O.80,8j:O.8j,7V:O.7V,7u:O.7u,e1:O.e1,3R:O})}if(O.cX!==R&&O.mw(O.cX,a.xy,O.sq)){O.iO();Y 1d}O.cX=a.xy;P.gd.71(a);Y O.iJ(a)},7V:S(a){Y O.2n(a)},zK:S(a){O.cX=a.xy;P.gd.71(a);Y O.2n(a)},8j:S(a){Y O.up(a)},zJ:S(a){a.xy=O.cX;P.gd.71(a);Y O.up(a)},zI:S(a){if(P.1o.zH(a,O.1c.sp)){O.cW=O.gc;O.bJ=1d}},mw:S(e,d,a){Q b=1a;if(a!=R&&e&&d){Q c=e.zG(d);if(c>a){b=1d}}Y b},iO:S(){if(O.2f!==R){if(O.2f.T 1m P.U.2V&&O.2f.T.18.W>=2&&O.2f.T.18.W<O.2f.T.3V){O.2f.T.mv()}13{O.mu()}O.et=1d;O.18=[];if(O.6A===f2){O.gb=1d}if(O.8k==1a){O.1g.7P()}}},so:S(a){if(O.2f!==R){O.2f.T.18=P.V.1k.3F(a)}},iN:S(a){Q b;if(O.6A===P.V.1j.9A){Q c=X P.U.3g({1v:O.1v,1A:O.6A});b=X P.5N.4f(c);if(O.mt){b.Z=P.1o.2t(b.Z,O.mt)}Y b}13{if(a===1l){a={}}a.1c=O.1c;a.1X=O.83.1g.1X;if(O.iM&&O.ga!==R){a.3x=O.ga}b=X P.U.1N.2X(O.1v,O.6A,R,a);if(b){if(O.iM&&b.T 1m P.U.5a){b.T.5J=1a}13{b.T.5J=1d}}b.T.1Y=O.1Y;Y b}},1t:"P.95.1V"});P.4r.ix=P.27(P.4r,{5A:jr,s6:jr,me:10,md:20,mm:R,s1:{2g:"#sn",2k:1,2L:"#9s",3M:1,1D:1},81:R,cS:{2g:"#sn",2k:1,2L:"#9s",3M:1,1D:1},9l:R,ep:{2g:"#gC",2k:1,2L:"#9s",3M:1,1D:1},zF:R,s0:{2g:"#5Q",2k:1,2L:"#5Q",3M:1,1D:1},mk:R,rZ:{2g:"#df",2k:0.3,2L:"#df",3M:0.5,1D:1},rO:R,ik:{2g:"#rN",2k:1,2L:"#9s",3M:1,1D:1},bB:R,rT:{2L:"#zE",3M:1,1D:1},fH:1a,7h:1d,bI:1d,1g:R,8l:R,2C:R,1h:R,3T:R,1G:R,aI:R,9m:1d,8G:R,82:R,a2:R,5p:R,18:R,1M:R,49:R,5T:R,7w:R,it:S(b,a){},el:S(b,a){},g3:S(a){},s5:S(b,a,c){},s8:S(b,a){},sa:S(a){},s7:S(b,a){},sk:S(b,a){},1I:S(c){c=c||{};O.5A=P.V.5k.c8;O.2C=[];O.1h=[];O.18={};O.1M={};O.49={};O.5T={};O.7w={};O.82={};O.8G={};O.a2={};O.5p={};O.9k={};O.cT={};O.g7={};P.4r.1x.1I.1q(O,[c]);Q d=O;O.8l=X P.2J.43.iL(O.id+"zD",{2C:O.2C.53(),83:O});Q a={aJ:1a,iI:1a,zC:1d,3R:O,sm:{is:S(f,e){d.s9.1q(d,[f,e])},m9:S(f,e){d.sb.1q(d,[f,e])},7u:S(f,e){d.a1.1q(d,[f,e])},iI:S(f,e){d.sj.1q(d,[f,e])},e1:S(f,e){d.mq.1q(d,[f,e])}}};O.3T=X P.4r.zB(O.8l,a);O.3T.2x.aJ.sm.ms=S(e){d.si.1q(d,[e])};Q b={it:S(f,e){d.ir.1q(d,[f,e])},el:S(f,e){d.io.1q(d,[f,e])},g3:S(f,e){d.im.1q(d,[f,e])},rM:{up:S(e){d.sc.1q(d,[e])},2n:S(e){d.il.1q(d,[e])}},rL:{is:S(f,e){d.7v.1q(d,[f,e])},m9:S(f,e){d.en.1q(d,[f,e])},e1:S(f,e){d.mq.1q(d,[f,e])}}};O.1G=X P.4r.rK(O.8l,b);O.aI=X P.4r.m6();O.3T.aJ=O.7h},cQ:S(){if(O.1h.W===0){Y}O.mn();O.6H()},g1:S(a){if(O.1g!==R){O.6H(a.1h)}},iE:S(a){if(O.1g!==R){19(Q b=0;b<a.1h.W;b++){O.cV(a.1h[b])}}},iD:S(a){if(O.1g!==R){19(Q b=0;b<a.1h.W;b++){O.6G(a.1h[b])}}},iC:S(a){Q c=[];19(Q b=0;b<a.1h.W;b++){if(P.1o.3v(O.1h,a.1h[b])!==-1){O.cO(a.1h[b]);c=c.4Y(O.fX(a.1h[b]))}}if(c.W!==0&&O.1g!==R){O.1g.5t(c,{fa:1a})}},iB:S(a){if(P.1o.3v(O.1h,a.1h[0])!==-1&&a.1h[0].T 1m P.U.4o){O.mc(a.1h[0].T.3W);O.6H(a.1h[0])}},c2:S(a){Q b=P.1o.3v(O.2C,a.1g);if(b!==-1){a.1g.1p.es("g2",O,O.cQ);a.1g.1p.es("c3",O,O.g1);a.1g.1p.es("73",O,O.iE);a.1g.1p.es("7N",O,O.iD);a.1g.1p.es("aD",O,O.iC);a.1g.1p.es("ea",O,O.iB);O.2C.2S(b,1);O.er()}},dq:S(a){if(a.1g.1t==="P.2J.43"&&a.1g.mj()&&P.1o.3v(O.2C,a.1g)===-1){a.1g.1p.6g("g2",O,O.cQ);a.1g.1p.6g("c3",O,O.g1);a.1g.1p.6g("73",O,O.iE);a.1g.1p.6g("7N",O,O.iD);a.1g.1p.6g("aD",O,O.iC);a.1g.1p.6g("ea",O,O.iB);O.2C.17(a.1g);O.er()}13{if(O.1g===a.1g){a.1g.1p.6g("g2",O,O.cQ);O.2C.2S(0,0,a.1g);O.er()}}},er:S(){if(O.8l&&O.8l.2C.W!==O.2C.W){O.8l.zA();O.8l.2C=O.2C.53();O.8l.zz()}},1B:S(){O.1h=[];O.2C=[];O.18=R;O.1M=R;O.49=R;O.5T=R;O.7w=R;O.1g=R;O.8l=R;O.9m=1d;O.8G=R;O.82=R;O.81=R;O.9l=R;O.3T.1B();O.1G.1B();P.4r.1x.1B.1q(O,[])},64:S(){if(!O.8k){Q a=P.1o.2R({eS:1d,iw:P.iv.iu},O.g9);O.1g=X P.2J.43.g4(O.1t,"",a);O.1c.dq(O.1g);P.eo.sl(O.1c.bH,"iK");O.8l.6m(O.1c);O.3T.64();Y P.4r.1x.64.1q(O,1K)}},4S:S(){Q a=1d;if(P.4r.1x.4S.1q(O,1K)){O.a3();O.5A=P.V.5k.c8;O.bI=1d;O.aI.4S();O.1G.4S();O.3T.4S();if(O.1c!=R){O.8l.zy(O.1c);P.eo.ip(O.1c.bH,"iK");O.1g.1B(1d)}O.1g=R;a=1a}Y a},zx:S(g){if(O.1h.W===0){Y}Q c=X P.V.6d();P.2Z.3r().6f().6c(c);Q a=O.1h[0].T.2F();Q b=a.7O();Q e,j,k,f,d,h;if(g===P.V.c9.jQ){19(e=1;e<O.1h.W;e++){j=O.1h[e].T.2F();f=a.21-j.21;O.1h[e].T.2n(f,0);O.1h[e].1g.2m(O.1h[e]);h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="2n";h.4h=[-f,0];h.4c=[f,0];c.1O.17(h)}}13{if(g===P.V.c9.jP){19(e=1;e<O.1h.W;e++){j=O.1h[e].T.2F();f=a.2c-j.2c;O.1h[e].T.2n(f,0);O.1h[e].1g.2m(O.1h[e]);h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="2n";h.4h=[-f,0];h.4c=[f,0];c.1O.17(h)}}13{if(g===P.V.c9.nS){19(e=1;e<O.1h.W;e++){j=O.1h[e].T.2F();d=a.1Z-j.1Z;O.1h[e].T.2n(0,d);O.1h[e].1g.2m(O.1h[e]);h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="2n";h.4h=[0,-d];h.4c=[0,d];c.1O.17(h)}}13{if(g===P.V.c9.nR){19(e=1;e<O.1h.W;e++){j=O.1h[e].T.2F();d=a.2h-j.2h;O.1h[e].T.2n(0,d);O.1h[e].1g.2m(O.1h[e]);h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="2n";h.4h=[0,-d];h.4c=[0,d];c.1O.17(h)}}13{if(g===P.V.c9.nQ){19(e=1;e<O.1h.W;e++){j=O.1h[e].T.2F();k=j.7O();d=b.1T-k.1T;O.1h[e].T.2n(0,d);O.1h[e].1g.2m(O.1h[e]);h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="2n";h.4h=[0,-d];h.4c=[0,d];c.1O.17(h)}}13{if(g===P.V.c9.nP){19(e=1;e<O.1h.W;e++){j=O.1h[e].T.2F();k=j.7O();f=b.1U-k.1U;O.1h[e].T.2n(f,0);O.1h[e].1g.2m(O.1h[e]);h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="2n";h.4h=[-f,0];h.4c=[f,0];c.1O.17(h)}}}}}}}O.6H()},zw:S(a){if(O.8k){if(a===1l){a=!O.7h}if(a!==O.7h){O.7h=a;O.3T.4S();O.3T.aJ=a}O.3T.64()}Y O.7h},iz:S(a){if(O.5A!==a){O.5A=a;O.aH()}},zv:S(a){if(O.8k&&O.bI!==a){if(a&&O.1h.W===1){O.aI.1b=O.1h[0];if(O.aI.64()){O.bI=a;O.3T.4S();O.1G.4S()}}13{if(!a){O.aI.4S();O.3T.64();O.1G.64();O.bI=a}}}Y O.bI},m8:S(){if(O.bI){O.aI.m8()}},m7:S(a){if(O.bI){O.aI.m7(a)}},zu:S(){if(O.1h.W!==0){Q d=O.1h.53();Q e=[];19(Q c=1;c<O.2C.W;c++){if(O.2C[c].3C.W!==0){19(Q b=0;b<O.2C[c].3C.W;b++){e.17(c)}}O.2C[c].4D(O.2C[c].3C)}O.1g.7P();Q f=X P.V.6d();f.7E=P.V.7D.eT;P.2Z.3r().6f().6c(f);19(Q c=0;c<d.W;c++){Q a=X P.V.4d();a.3K=O.2C[e[c]].id;a.1b=d[c];f.1O.17(a)}Y 1a}Y 1d},mr:S(a){if(!P.1o.4g(a)){a=[a]}O.2C=a;O.er()},mq:S(b,a){O.sk(b,a)},a1:S(g,b){if(g===R){Y}if(g.3c){}b=b||9n.iG;Q e=R;if(g.T 1m P.U.9d&&g.T.3c&&!g.T.2A()&&(O.7h===1d||b==R||b.a4!==1a||(b.a4===1a&&P.1o.3v(O.1h,g)===-1))){Q a=g.1g.2G(b.xy);Q h=R;19(Q f=0;f<g.T.11.W;f++){e=g.1g.6G(g.T.11[f],a,O.1g.cU());if(e!==R&&e.T.1s===P.V.1j.8T){h=e}13{if(e!==R){1C}}if(e===R){e=h}}}13{if(g.T 1m P.U.3H&&g.T.3c&&!g.T.2A()&&(O.7h===1d||b==R||b.a4!==1a||(b.a4===1a&&P.1o.3v(O.1h,g)===-1))){Q a=g.1g.2G(b.xy);19(Q f=0;f<g.T.11.W;f++){e=g.1g.6G(g.T.11[f],a,O.1g.cU());if(e!==R){if(g.T 1m P.U.4J&&!(e.T 1m P.U.4o)&&!(e.T 1m P.U.9S)){e=R;1W}1C}}}}if(e!==R){if(O.7h===1a&&b!=R&&b.a4===1a&&P.1o.3v(O.1h,e)!==-1){O.cV(e);Q d=1d;19(Q c=0;c<g.T.11;c++){if(P.1o.3v(O.1h,g.T.11[c])!==-1){d=1a}}if(d===1d){O.cV(g)}}13{if(O.7h===1a&&b!=R&&b.a4===1a&&P.1o.3v(O.1h,g)!==-1&&P.1o.3v(O.1h,e)===-1){O.cV(g);g.T.3c=1a;O.6G(e);if(O.1G.8k){O.1G.7v.1q(O.1G,[e])}if(O.3T.2x.1b.4V||O.1G.2x.38.4V){O.1c.1p.un({80:O.1G.2x.38.80,8j:O.1G.2x.38.8j,7V:O.1G.2x.38.7V,7u:O.1G.2x.38.7u,3R:O.1G.2x.38})}}13{if(O.7h===1d||b==R||b.a4!==1a){O.a3();g.T.3c=1a}O.6G(e);if(O.1G.8k){O.1G.7v.1q(O.1G,[e])}if(O.3T.2x.1b.4V||O.1G.2x.38.4V){O.1c.1p.un({80:O.1G.2x.38.80,8j:O.1G.2x.38.8j,7V:O.1G.2x.38.7V,7u:O.1G.2x.38.7u,3R:O.1G.2x.38})}}}}13{if(!(g.T 1m P.U.4J)){if(O.7h===1a&&b!==1l&&b.a4===1a&&P.1o.3v(O.1h,g)!==-1){O.cV(g);if(O.1G.8k){O.1G.7v.1q(O.1G,[g])}}13{if(O.7h===1d||(b!==1l&&b.a4!==1a)){O.a3()}O.6G(g);if(O.1G.8k){O.1G.7v.1q(O.1G,[g])}if(O.3T.2x.1b.4V||O.1G.2x.38.4V){O.1c.1p.un({80:O.1G.2x.38.80,8j:O.1G.2x.38.8j,7V:O.1G.2x.38.7V,7u:O.1G.2x.38.7u,3R:O.1G.2x.38})}if(O.3T.8k){O.3T.4S()}}}}},sj:S(c,b){if(O.3T.iI&&!O.3T.2x.1b.4V){Q e=O.3T.2x.1b.up;Q d=O.3T.2x.1b.iJ;if(d===R){d=O.3T.2x.aJ.zt.87}if(e&&d){Q a=1n.5G(1n.cs(e.x-d.x,2)+1n.cs(e.y-d.y,2));if(a<=4){O.a3()}}}13{if(O.3T.iI){O.a3()}}},si:S(g){if(g 1m P.5B){Q l=O.1c.6B({x:g.21,y:g.2h});Q o=O.1c.6B({x:g.2c,y:g.1Z});Q b=X P.5B(l.1U,l.1T,o.1U,o.1T);19(Q f=1,c=O.2C.W;f<c;++f){Q h=O.2C[f];Q n=[];19(Q e=0,r=h.1h.W;e<r;++e){Q t=h.1h[e];if(!t.oD()){1W}if(O.sh==R||P.1o.3v(O.sh,t.T.1t)>-1){Q q=t.T.2F();if(q===R){1W}Q p=q.7O();Q m=X P.U.1f(p.1U,p.1T);if(b.ml().rl(m)){if(P.1o.3v(h.3C,t)===-1){n.17(t)}}}}if(n.W>0){Q s=h.1p.1E("sg",{1h:n});if(s!==1d){19(Q d=0;d<n.W;d++){n[d].T.3c=1a;O.1h.17(n[d]);h.3C.17(n[d])}O.aH();if(!(h.5c===1d||h.4G===1a)){O.9m=1d;O.1G.64();if(O.3T.2x.1b.4V){O.1G.2x.1b.4S()}}h.1p.1E("sf",{1h:n})}}}}13{if(g 1m P.3L){Q a=O.bl(g);if(a!==R){O.a1(a)}13{O.a3()}}}if(O.1h.W!==0&&O.7h){O.3T.2x.aJ.4S()}},6G:S(c){if(!(c.T 1m P.U.1N)){Y}Q b=c.1g;Q a=b.1p.1E("sg",{1h:[c]});if(a!==1d){if(!(c.T 1m P.U.1N)){Y}c.T.3c=1a;b.3C.17(c);if(!O.3T.2x.1b.mp){O.3T.2x.1b.mp=b.3C[0]}O.1h.17(c);O.aH();if(!(b.5c===1d||b.4G===1a)){O.9m=1d;if(O.1G.8k!==1a){O.1G.64()}if(O.3T.2x.1b.4V||O.1G.2x.38.4V){O.1G.2x.1b.4S()}if(O.7h){O.3T.4S()}}if(c.T 1m P.U.4o){c.T.3W.3c=1a;O.mc(c.T.3W)}if(c.T.4M!==1l&&c.T.4M!==R&&P.1o.3v(O.1h,c.T.4M.1b)===-1){c.T.4M.3c=1a}b.1p.1E("sf",{1h:[c]})}},a3:S(){if(O.1h.W===0){Y}19(Q d=1,b=O.2C.W;d<b;++d){Q a=[];Q c=-1;Q g=O.2C[d];19(Q f=0;f<g.3C.W;){Q e=g.3C[f];if((c=P.1o.3v(O.1h,e))!==-1){if(e.T 1m P.U.4o){O.mb(e.T.3W);e.T.3W.3c=1d}P.1o.g0(g.3C,e);O.1h[c].T.3c=1d;if(O.1h[c].T.4M!==1l&&O.1h[c].T.4M!==R){O.1h[c].T.4M.3c=1d}a.17(O.1h[c])}}g.1p.1E("sd",{1h:a,9m:O.9m})}O.iA();O.1h.W=0;O.1h=[];O.1G.4S();O.3T.4S();O.3T.64();3k O.82;O.82={};3k O.8G;O.8G={};3k O.a2;O.a2={};3k O.5p;O.5p={};3k O.9k;O.9k={};3k O.cT;O.cT={};if(O.2o&&O.2o.1O.W!==0){P.2Z.3r().6f().6c(O.2o);O.2o=R;O.65=1d}O.9m=1d},cV:S(d){if(P.1o.3v(O.1h,d)===-1){Y}Q c=d.1g;d.T.3c=1d;if(P.1o.3v(c.3C,d)!==-1){P.1o.g0(c.3C,d)}if(P.1o.3v(O.1h,d)!==-1){P.1o.g0(O.1h,d)}O.cO(d);if(d.T.4M!==1l&&d.T.4M!==R){Q a=1d;19(Q b=0;b<d.T.4M.11.W;b++){if(P.1o.3v(O.1h,d)!==-1){a=1a;1C}}d.T.4M.3c=a}if(d.T 1m P.U.4o){O.mb(d.T.3W);d.T.3W.3c=1d}if(O.1h.W===0){O.1G.4S();O.3T.4S();O.3T.64();if(O.2o&&O.2o.1O.W!==0){P.2Z.3r().6f().6c(O.2o);O.2o=R;O.65=1d}}c.1p.1E("sd",{1h:[d],9m:O.9m});O.9m=1d},ir:S(e,b){Q t=e.1g;if(O.1G.2x.38.4V){Q p=O.1c.2G(b);Q c=O.bl(b);if(c===R){O.a3();Y}if(e!==c){if(c.T 1m P.U.46){if(O.1G.8k){O.1G.7v.1q(O.1G,[c])}O.1c.1p.un({80:O.1G.2x.38.80,8j:O.1G.2x.38.8j,7V:O.1G.2x.38.7V,7u:O.1G.2x.38.7u,3R:O.1G.2x.38});e=c}13{if(c.T 1m P.U.1N&&P.1o.3v(c.T.11,e)===-1){O.a1(c);e=c}13{if(c.T 1m P.U.1N&&P.1o.3v(c.T.11,e)!==-1){19(Q o=0;o<c.T.11.W;o++){Q n=t.6G(c.T.11[o],p,t.cU());if(n!==R){if(c.T 1m P.U.4J&&!(n.T 1m P.U.4o)&&!(n.T 1m P.U.9S)){n=R;1W}13{if(e!==n){O.a1(n);e=n}}1C}}if(n===R){e=c}}}}O.1G.9i=b;O.1G.2x.38.fZ=1a;O.1G.2x.38.87=b;O.1G.2x.38.fY=b}}if(!O.2o){O.2o=X P.V.6d();O.2o.7E=P.V.7D.c4;O.65=1a}if(e.T 1m P.U.4o&&e.T.3W.3c&&O.5A===P.V.5k.ai){Q a=e.T.ec();Q l=e.T.eb();if(a===1a||l===1a){Q s=e.T.3W.qo(e.T.3D,a,l);if(s!==R){O.a1(s);O.1G.9i=b;O.1G.2x.38.fZ=1a;O.1G.2x.38.87=b;O.1G.2x.38.fY=b;e=s;Q j=X P.V.4d();j.3K=e.1g.id;j.1r=e.T.1r;j.3b="7F";j.4h=[P.V.1k.3F(e.T.18)];j.4c=[P.V.1k.3F(e.T.18)];O.2o.1O.17(j);if(O.2o){P.2Z.3r().6f().6c(O.2o);O.2o=X P.V.6d();O.65=1a}}}}O.iH=b;if(P.1o.3v(O.1h,e)===-1&&e.T 1m P.U.1N&&!(e.T 1m P.U.3H)&&!(e.T 1m P.U.4J)){O.a1(e);O.1G.9i=b;O.1G.2x.38.fZ=1a;O.1G.2x.38.87=b;O.1G.2x.38.fY=b;if(e.T 1m P.U.3H){O.5p[e.T.1r]=O.49[e.T.1r]}13{O.5p[e.T.1r]=P.V.1k.3F(e.T.18)}}13{if(P.1o.3v(O.1h,e)!==-1&&(e.T 1m P.U.1N)){if(O.7h===1a&&9n.iG&&9n.iG.a4===1a&&!(e.T 1m P.U.3H)){O.cV(e)}13{if(O.5A===P.V.5k.ai&&(P.V.9j.af!==O.9e(e)||e.T.1s===P.V.1j.ad)){O.rX(e,b)}13{19(Q o=0;o<O.1h.W;o++){if(O.1h[o].T 1m P.U.3H){O.5p[O.1h[o].T.1r]=O.49[O.1h[o].T.1r]}13{O.5p[O.1h[o].T.1r]=P.V.1k.3F(O.1h[o].T.18)}if(O.1h[o].T.1s===P.V.1j.5j){O.g7[O.1h[o].T.1r]={x:O.1h[o].T.5y,y:O.1h[o].T.5x}}}}}}13{if(e.T 1m P.U.4J&&e.T.3c&&O.5A===P.V.5k.ai){Q h=t.2G(b);Q m=X P.U.1f(h.1U,h.1T);Q q=O.mf();Q r=e.T.qn(m,q);if(r!==R){O.a1(r);O.1G.9i=b;O.1G.2x.38.fZ=1a;O.1G.2x.38.87=b;O.1G.2x.38.fY=b;e=r;19(Q o=0;o<O.1h.W;o++){O.5p[O.1h[o].T.1r]=P.V.1k.3F(O.1h[o].T.18);if(O.1h[o].T.1s===P.V.1j.5j){O.g7[O.1h[o].T.1r]={x:O.1h[o].T.5y,y:O.1h[o].T.5x}}}}}}}if(e.T 1m P.U.1N&&P.1o.3v(O.1h,e)===-1){Y}if(e.T 1m P.U.46&&O.5A!==P.V.5k.du){19(Q o=0;o<O.1h.W;o++){Q d=O.1h[o].T;if(d 1m P.U.3g){1W}if(d.8o()){O.8G[d.1r]=d.bF()}if(d.2a&&d.2a.W&&d.2a.W!==0){O.9k[d.1r]=[];19(Q g=0;g<d.2a.W;g++){O.9k[d.1r].17(d.2a[g])}}13{O.9k[d.1r]=[]}if(d.1M&&d.1M.W&&d.1M.W!==0){O.cT[d.1r]=P.V.1k.3F(d.1M)}O.82[d.1r]=d.bz();O.5p[d.1r]=P.V.1k.3F(d.18);if(d.1s===P.V.1j.cd&&O.5p[d.1r].W===1){O.5p[d.1r].17(d.1M[0].2s())}if(d 1m P.U.cI){O.5p[d.1r].17(d.55);O.5p[d.1r].17(d.56)}Q f=d.2F();if(f!==R){f=f.2s()}O.a2[d.1r]=f;if(!(d 1m P.U.5a)&&d.1s!==P.V.1j.8Z&&!(d 1m P.U.by)&&f!==R){Q k=f.7O();d.4t=X P.U.1f(k.1U,k.1T)}13{if(d.1s===P.V.1j.8Z){d.4t=X P.U.1f(d.18[0].x,d.18[0].y)}}}}13{if(e.T 1m P.U.46&&O.5A===P.V.5k.du){O.rW(e.4y.1b,b)}}O.9Z=b;O.g8=b;O.iq=X 8U().8q();P.eo.ip(O.1c.bH,"rG");O.1c.bH.Z.7U="8e";O.it(e,b)},io:S(f,c){if(O.5A===P.V.5k.du){O.iz(P.V.5k.dv);Y}if(f.T 1m P.U.1N&&P.1o.3v(O.1h,f)===-1){Y}if((f.T 1m P.U.1N&&f.1g.4G)||(f.T 1m P.U.46&&f.4y.1b.1g.4G)){O.a3();Y}O.9m=1a;if((f.T.1t=="P.U.46"&&O.5A===P.V.5k.c8)||(f.T 1m P.U.1N&&(O.5A!==P.V.5k.ai))){if(f.T 1m P.U.1N){if(!O.1G.2x.38.4V){O.iA();O.g6=1a}}13{O.mi(1d);O.eq=1a}}if(f.T.1t=="P.U.46"){if(O.5A===P.V.5k.c8&&f.T.3A===0){O.s4(f,c)}13{if(O.5A===P.V.5k.c8&&f.T.3A>0){O.s3(f,c)}13{if(!f.T.6D){O.s2(f,c)}}}}13{if(f.T 1m P.U.1N){O.9Z=c;19(Q e=0,a=O.1h.W;e<a;e++){Q d=O.1h[e];if(!(d.1g.4Z 1m P.2N.97)){if(d.T 1m P.U.4o){d.1g.2m(d.T.3W.1b)}13{d.1g.2m(d)}}}19(Q b=0;b<O.2C.W;b++){if(O.2C[b].4Z 1m P.2N.97){O.2C[b].gG()}}}}O.el(f,c)},im:S(h,e){if(h.T 1m P.U.1N&&P.1o.3v(O.1h,h)===-1){Y}if(O.1g.4G){O.a3();Y}3k O.9Z;if(O.1h.W!==0&&(O.eq===1a||O.g6===1a)){O.aH();O.eq=1d;O.g6=1d}O.mn();O.g3(O.1h,e);19(Q d=1,b=O.2C.W;d<b;++d){Q a=[];Q c=-1;Q g=O.2C[d];19(Q f=0;f<g.3C.W;f++){Q h=g.3C[f];if((c=P.1o.3v(O.1h,h))!==-1){a.17(O.1h[c])}}g.1p.1E("c3",{1h:a})}if(O.2o&&O.2o.1O.W!==0){P.2Z.3r().6f().6c(O.2o);O.2o=X P.V.6d();O.65=1a}},sc:S(b){if(!O.1G.is){O.1G.2x.38.4S();Y}if(O.iH===1l||b===1l||O.iH.x!==b.x||O.iH.y!==b.y){Y}Q c=O.1G.1b;if(c.T.4M){c=c.T.4M.1b}if(!(c.T 1m P.U.3H)){Y}Q a=9n.iG||1K.zs.zr.1K[0];a.xy=b;O.a1(c,a)},7v:S(e,b){e.1g.cP(e,b,O.5A);if(e.T 1m P.U.3H&&e.T.3c&&P.1o.3v(O.1h,e)===-1){Q a=e.1g.2G(b.xy);19(Q d=0;d<e.T.11.W;d++){Q c=e.1g.6G(e.T.11[d],a,O.1g.cU());if(c!==R){O.1G.7v.1q(O.1G,[c])}}}13{O.1G.7v.1q(O.1G,[e])}},en:S(b,a){b.1g.cP(R,a,O.5A);O.1G.en.1q(O.1G,[b])},sb:S(b,a){b.1g.cP(R,a,O.5A);O.mo=1a;O.sa(b)},s9:S(b,a){b.1g.cP(b,a,O.5A);O.mo=1d;O.s8(b,a);Q c=O;qp(S(){if(c.mo===1d){c.s7(b,a)}},c.s6)},il:S(d){if(O.1G.1b.T 1m P.U.1N&&P.1o.3v(O.1h,O.1G.1b)===-1){Y}if(O.1G.1b.T.1s===P.V.1j.8v){Y}if(O.1G.9i===R){Y}Q c=O.1g.2G(d);Q f=O.1g.2G(O.1G.9i);Q a=c.1U-f.1U;Q g=c.1T-f.1T;if(O.1G.1b.T 1m P.U.1N&&(O.5A!==P.V.5k.ai||O.1G.1b.T 1m P.U.4o)){19(Q e=0;e<O.1h.W;e++){if(O.1h[e].T.1s===P.V.1j.8v){1W}if(O.1h[e].1g.fd()&&!O.1h[e].1g.77()&&O.1h[e].T.77()!==1a){O.1h[e].T.2n(a,g);O.1h[e].T.bD();O.s5(O.1h[e],a,g);if(O.65){Q b=X P.V.4d();b.3K=O.1h[e].1g.id;b.1r=O.1h[e].T.1r;b.3b="2n";O.2o.1O.17(b)}}}O.65=1d;if(O.1G.2x.38.4V){O.6H()}}13{if(O.1G.1b.T 1m P.U.46){if(!O.1G.1b.4y.77()&&!(O.5A===P.V.5k.dv&&(O.1G.1b.4y.1t==="P.U.3H"||O.1G.1b.4y 1m P.U.9d)||O.1G.1b.4y 1m P.U.4o)){O.1G.1b.T.2n(a,g)}}}O.1G.9i=d;O.1G.el(O.1G.1b,d)},s4:S(k,c){Q f=O;S h(p){Y f.82[p.T.1r]}S e(p,s){19(Q u=0;u<f.1h.W;u++){if(!f.1h[u].1g.fd()||f.1h[u].1g.77()){1W}Q v=0;if(f.1h[u].T 1m P.U.5a){Q t=h(f.1h[u]);v=p+t}13{v=s}v%=3Q;if(v<0){v+=3Q}f.1h[u].T.aA(v);f.1h[u].1g.2m(f.1h[u]);if(f.65){Q q=X P.V.4d();q.3K=f.1h[u].1g.id;q.1r=f.1h[u].T.1r;q.3b="aA";f.2o.1O.17(q)}}f.65=1d;19(Q r=0;r<f.2C.W;r++){if(f.2C[r].4Z 1m P.2N.97){f.2C[r].gG()}}}Q g=k.4y;Q o=R;if(g 1m P.U.5a||g.1s===P.V.1j.8Z){o=X P.2v(g.18[0].x,g.18[0].y)}13{o=X P.2v(g.4t.x,g.4t.y)}Q a=O.1c.3a(o);if(g 1m P.U.5a&&g.6V===1a){a.x+=g.5y;a.y+=g.5x}Q n=(c.x-a.x)-(O.9Z.x-a.x);Q l=(c.y-a.y)-(O.9Z.y-a.y);if(n!==0&&l!==0){Q d=(1n.aw(O.9Z.y-a.y,O.9Z.x-a.x)-1n.aw(c.y-a.y,c.x-a.x));Q m=d*2O/1n.2r;Q j=m;if(O.g8!==1l){Q b=(1n.aw(O.g8.y-a.y,O.g8.x-a.x)-1n.aw(c.y-a.y,c.x-a.x));j=b*2O/1n.2r}e(m,j)}O.g8=c},s3:S(o,d){Q j=O;S c(r){Y j.8G[r.T.1r]}S p(u,t,w){Q z=[];19(Q E=0;E<j.1h.W;E++){if(!j.1h[E].1g.fd()||j.1h[E].1g.77()){1W}Q v=j.1h[E].T;if(v.77()===1a){1W}if(v.1s===P.V.1j.4E){j.6H(j.1h[E]);1W}if(v.8o()){Q x=0.zq;Q G=c(j.1h[E]);if(v.1s===P.V.1j.5j&&v.5f===1d){G.x=G.x===0?x:G.x;G.y=G.y===0?x:G.y;v.bx(G.x*u,G.y*t)}13{G=G===0?x:G;Q I=G*u;if(I>0){v.bx(I)}}j.1h[E].1g.2m(j.1h[E]);if(j.65){Q A=X P.V.4d();A.3K=j.1h[E].1g.id;A.1r=j.1h[E].T.1r;A.3b="bx";j.2o.1O.17(A)}}13{if(v.lQ()===9&&o.T.3A&&o.T.3A>0){Q B=e(j.1h[E]);Q D=g(j.1h[E]);Q y=v.r2(o.T.3A,B,w);v.cE(y,o.T.3A,B,D)}if(P.U.1N.5O(v.1v,v.1A)){S r(J){19(Q K=0;K<z.W;K++){if(z[K].T.1v===J.2B.1v&&z[K].T.1A===J.2B.1A){z[K].T.1i.3o=J.2B.3o;z[K].T.1i.1M=J.2B.1M;z[K].T.1i.2a=J.2B.2a;z[K].T.1u();z[K].1g.2m(z[K]);j.6H(z[K]);z.2S(0,1)}}}S F(J){i2.i1(J)}Q H=X P.1P.7M(j.1h[E].1g.1X);z.17(j.1h[E]);H.1p.on({4n:r,4m:F,3R:j});Q s=X P.1P.6O();s.1v=v.1v;s.1A=v.1A;s.61=v.18;s.2a=v.2a;s.1Q=v.1Q;H.4P(s,j.1h[E].1g.1Y)}13{v.1u();j.1h[E].1g.2m(j.1h[E]);j.6H(j.1h[E])}if(j.65){Q A=X P.V.4d();A.3K=j.1h[E].1g.id;A.1r=j.1h[E].T.1r;A.3b="7F";j.2o.1O.17(A)}}}j.65=1d;19(Q C=0;C<j.2C.W;C++){if(j.2C[C].4Z 1m P.2N.97){j.2C[C].gG()}}}S e(r){Y j.a2[r.T.1r]}S g(r){Y j.5p[r.T.1r]}Q k=o.4y;Q l=e(o.4y.1b);Q h=k.r1(d,o.T.3A,l);Q f=1;Q a=k.lP(d,o.T.3A,l);Q b=0,q=0;if(k 1m P.U.1N&&k 1m P.U.5a){b=l.5r()===0?k.3d.w*0.gq:l.5r();q=l.5F()===0?k.3d.h*0.gq:l.5F()}13{b=l.5r();q=l.5F()}Q n=a.5r()/b;Q m=a.5F()/q;if(2===o.T.3A||7===o.T.3A){f=m}13{if(4===o.T.3A||5===o.T.3A){f=n}13{f=n<m?n:m}}if(k 1m P.U.5a&&k.5f===1d){p(n,m,R)}13{p(f,R,h)}},s2:S(m,c){Q n=m.4y;if(n.1t==="P.U.5a"){Q j=m.T.x-n.18[0].x;Q g=m.T.y-n.18[0].y;if(n.6V===1d){19(Q h=0;h<O.1h.W;h++){O.1h[h].T.2n(j,g);O.1h[h].1g.2m(O.1h[h]);if(O.65){Q l=X P.V.4d();l.3K=O.1h[h].1g.id;l.1r=O.1h[h].T.1r;l.3b="7F";O.2o.1O.17(l)}}O.65=1d;O.6H()}13{n.2n(j,g);if(O.1c 1m P.2N.8d){n.1b.1g.2m(n.1b)}if(O.65){Q l=X P.V.4d();l.3K=n.1b.1g.id;l.1r=n.1r;l.3b="7F";O.2o.1O.17(l)}O.65=1d;O.6H(n.1b)}}13{if(n 1m P.U.4o){}13{if(P.U.1N.5O(n.1v,n.1A)){Q e=X 8U().8q();if(m.T.3A&&m.T.3A===-2){if(1l!==O.iF&&R!==O.iF){if(!((1n.2W(c.x-O.iF.x)>3||1n.2W(c.y-O.iF.y)>3)&&e-O.iq>4F)){Y}}}n.18=O.aF(m.4y.1b);Q o=X P.1P.7M(n.1b.1g.1X);o.1p.on({4n:q,4m:b,3R:O});Q d=X P.1P.6O();d.1v=n.1v;d.1A=n.1A;if(m.T.3A===-2){d.61=n.18;d.1M=n.1M;d.2a=n.2a;d.br=X P.U.1f(m.T.x,m.T.y);d.cp=m.T.4U}13{d.61=n.18;d.2a=n.2a}d.1Q=n.1Q;o.4P(d,n.1b.1g.1Y);O.9Z=c;O.iq=X 8U().8q();S q(r){n.1i.3o=r.2B.3o;n.1i.1M=r.2B.1M;n.1i.2a=r.2B.2a;n.1u();n.1b.1g.2m(n.1b);O.6H(n.1b)}S b(r){i2.i1(r)}}13{Q k=O.aF(m.4y.1b);if(n.1s===P.V.1j.aS){n.18[0]=k[0];n.18[n.18.W-1]=k[1]}13{n.18=k}Q a=O.mg(m.4y.1b);n.1M=a;if(n.1s===P.V.1j.bV){n.lI=1d}Q p=O.1c.2G(c);Q f=X P.U.1f(p.1U,p.1T);if(m.T.3A===-2){f.7W=1a}n.6n(m.T.4U,f);n.1b.1g.2m(n.1b);O.6H(n.1b);if(O.65){Q l=X P.V.4d();l.3K=n.1b.1g.id;l.1r=n.1r;l.3b="7F";if(m.T.3A===-2){l.3b="ib";if(n 1m P.U.e6||n 1m P.U.by){l.3b="6n";l.4h=[m.T.4U];l.4c=[m.T.4U]}}O.2o.1O.17(l)}O.65=1d}}}},mn:S(){if(O.2o){19(Q p=0;p<O.2o.1O.W;p++){Q q=O.2o.1O[p].1r;Q h=O.1c.dr(O.2o.1O[p].3K).4b(q);if(h===R){19(Q o=0;o<O.1h.W;o++){if(O.1h[p].T.1r===q){h=O.1h[p];1C}}}if(h===R){O.2o.1O.2S(p,1);p--;1W}Q g=h.T;if(O.2o.1O[p].3b==="aA"){if(g.8o()){O.2o.1O[p].4h=[O.82[q]];O.2o.1O[p].4c=[g.bz()]}13{O.2o.1O[p].4h=[3Q-(g.bz()-O.82[q])];O.2o.1O[p].4c=[(g.bz()-O.82[q])]}}13{if(O.2o.1O[p].3b==="bx"){Q a=O.8G[q];if(g.5f===1d){O.2o.1O[p].4h=[a.x,a.y];O.2o.1O[p].4c=[g.bF().x,g.bF().y]}13{O.2o.1O[p].4h=[a];O.2o.1O[p].4c=[g.bF()]}}13{if(O.2o.1O[p].3b==="7F"){if(g 1m P.U.cI){O.2o.1O[p].4h=[O.5p[q]]}13{O.2o.1O[p].4h=[P.V.1k.3F(O.5p[q])]}O.2o.1O[p].4c=[P.V.1k.3F(g.18)];if(g 1m P.U.e6&&O.2o.1O[p].4c[0].W===1){O.2o.1O[p].4c[0].17(g.1M[0])}}13{if(O.2o.1O[p].3b==="ib"){Q n=[];Q e=[];19(Q k=0;k<O.9k[q].W;k++){n.17(O.9k[q][k])}19(Q k=0;k<g.2a.W;k++){e.17(g.2a[k])}O.2o.1O[p].4h=[n];O.2o.1O[p].4c=[e]}13{if(O.2o.1O[p].3b==="6n"){Q k=O.2o.1O[p].4h[0];O.2o.1O[p].4h.17(O.cT[q][k].2s());O.2o.1O[p].4h[1].7W=1a;Q k=O.2o.1O[p].4c[0];O.2o.1O[p].4c.17(g.1M[k].2s());O.2o.1O[p].4c[1].7W=1a}13{if(O.2o.1O[p].3b==="2n"){if(g.1s===P.V.1j.5j&&g.6V===1a){Q d=O.1c.3a(g.18[0]);Q c=d.x+O.g7[q].x;Q b=d.y+O.g7[q].y;Q l=O.1c.6B(X P.3L(c,b));d.x+=g.5y;d.y+=g.5x;Q f=O.1c.6B(d);Q t=l.1U-f.1U;Q s=l.1T-f.1T}13{if(g 1m P.U.3H){Q t=O.5p[q][0].T.x-O.49[q][0].T.x;Q s=O.5p[q][0].T.y-O.49[q][0].T.y}13{Q t=O.5p[q][0].x-g.18[0].x;Q s=O.5p[q][0].y-g.18[0].y}}O.2o.1O[p].4h=[t,s];O.2o.1O[p].4c=[-t,-s]}}}}}}}}19(Q p=0,r=O.1h.W;p<r;++p){Q g=O.1h[p].T;Q q=g.1r;if(O.82.2l(q)){O.82[q]=g.bz()}if(O.8G.2l(q)){O.8G[q]=g.bF()}if(O.5p.2l(q)){O.5p[q]=P.V.1k.3F(g.18)}if(O.a2.2l(q)&&g.2F()!==R){O.a2[q]=g.2F()}if(!(g 1m P.U.5a)&&!(g 1m P.U.by)&&!(g 1m P.U.e6)&&g.2F()!==R){Q m=g.2F().7O();g.4t=X P.U.1f(m.1U,m.1T)}}},aH:S(){if(O.eq===1a){O.mi(1a)}13{O.iA();Q a=[];19(Q b=0;b<O.1h.W;b++){a=a.4Y(O.fX(O.1h[b]))}if(a.W!==0){O.1g.5t(a,{fa:1a})}}},6H:S(e){if(e===1l){e=O.1h}13{if(!P.1o.4g(e)){e=[e]}}Q b=[];19(Q t=0;t<e.W;t++){Q d=e[t];if(P.1o.3v(O.1h,d)===-1){1W}if(!d||!d.T){1W}Q c=d.T;if(!(c 1m P.U.1N)){1W}Q o=[];Q f=[];Q a=[];Q v=[];Q u=R;Q w,q,p,s,r;if(!d.1g.5c||d.1g.4G){if(O.7w.2l(c.1r)){u=O.7w[c.1r]}if(u!==R&&c.2F()!==R){Q g=c.2F().2s();Q h=g.ml();u.T.11=h.11}}13{if(c.77()===1a){if(O.49.2l(c.1r)){v=O.49[c.1r]}w=c.ic();if(v.W!==0&&v.W===w.W){19(q=0;q<v.W;++q){v[q].T.x=w[q].x;v[q].T.y=w[q].y;v[q].T.1u()}}}13{if(d.T.1s!==P.V.1j.al){if(O.18.2l(c.1r)){o=O.18[c.1r]}}if(O.1M.2l(c.1r)){f=O.1M[c.1r]}if(o.W>0){if(c 1m P.U.3H||c 1m P.U.4o){w=c.fP().49;19(s=0;s<o.W;++s){o[s].T.x=w[s].x;o[s].T.y=w[s].y;o[s].T.1u()}}13{if(c.1s===P.V.1j.aS&&o.W===2){o[0].T.x=c.18[0].x;o[0].T.y=c.18[0].y;o[0].T.1u();o[1].T.x=c.11[0].11[0].11[c.11[0].11[0].11.W-1].x;o[1].T.y=c.11[0].11[0].11[c.11[0].11[0].11.W-1].y;o[1].T.1u()}13{19(s=0;s<o.W;++s){o[s].T.x=c.18[s].x;o[s].T.y=c.18[s].y;o[s].T.1u()}}}}if(f.W>0&&c.1M.W===f.W){19(r=0;r<f.W;++r){f[r].T.x=c.1M[r].x;f[r].T.y=c.1M[r].y;f[r].T.1u()}}if(O.5T.2l(c.1r)){a=O.5T[c.1r]}if(O.49.2l(c.1r)){v=O.49[c.1r]}if(a.W!==0||v.W!==0){Q l=c.fP();if(l.49.W===v.W){19(q=0;q<v.W;++q){v[q].T.x=l.49[q].x;v[q].T.y=l.49[q].y;v[q].T.1u()}}if(l.5T.W===a.W){19(p=0;p<a.W;++p){a[p].T.x=l.5T[p].x;a[p].T.y=l.5T[p].y;a[p].T.1u()}}}}}if(o.W>0){b=b.4Y(o)}if(f.W>0){b=b.4Y(f)}if(a.W>0){b=b.4Y(a)}if(v.W>0){b=b.4Y(v)}if(u!==R){b=b.4Y([u])}}O.8t(b)},fX:S(k){if(!k||!k.T){Y}if(!(k.T 1m P.U.1N)){Y}Q h=[];Q c=O;Q l=[];Q j=[];Q d=[];Q e=[];Q b=R;S g(x){Q s,n,w;Q y,s,p;if(x.77()===1a){y=x.ic();19(p=0;p<y.W;p++){w=X P.U.46(y[p].x,y[p].y,y[p].3A,O.1c,1a,y[p].4U);w.1u();n=X P.5N.4f(w);n.7Z=1a;n.Z=P.1o.2t(n.Z,c.s1);if(c.mm){n.Z=P.1o.2t(n.Z,c.mm)}n.4y=x;e.17(n)}}13{if(O.5A===P.V.5k.c8){Q r=x.fP();19(p=0;p<r.49.W;p++){w=X P.U.46(r.49[p].x,r.49[p].y,r.49[p].3A,O.1c,x.77(),r.49[p].4U);w.1u();n=X P.5N.4f(w);n.7Z=1a;n.Z=P.1o.2t(n.Z,c.cS);if(c.81){n.Z=P.1o.2t(n.Z,c.81)}n.4y=x;e.17(n)}19(p=0;p<r.5T.W;p++){w=X P.U.46(r.5T[p].x,r.5T[p].y,0,O.1c,x.77(),r.5T[p].4U);w.1u();n=X P.5N.4f(w);n.7Z=1a;n.Z=P.1o.2t(n.Z,c.s0);if(c.9l){n.Z=P.1o.2t(n.Z,c.9l)}n.4y=x;d.17(n)}}13{if(x 1m P.U.3H||x 1m P.U.4o){if(x 1m P.U.by){if(x 1m P.U.1N&&x.1M!==R){19(p=0;p<x.1M.W;p++){w=X P.U.46(x.1M[p].x,x.1M[p].y,-2,O.1c,1d,x.1M[p].4U);w.1u();n=X P.5N.4f(w);n.7Z=1a;n.Z=P.1o.2t(n.Z,c.ep);if(c.9l){n.Z=P.1o.2t(n.Z,c.9l)}n.4y=x;j.17(n)}}}13{y=x.fP().49;19(s=0;s<y.W;++s){w=X P.U.46(y[s].x,y[s].y,y[s].3A,O.1c,1d,s);n=X P.5N.4f(w);n.7Z=1a;n.Z=P.1o.2t(n.Z,c.cS);if(c.81){n.Z=P.1o.2t(n.Z,c.81)}w.1u();n.4y=x;l.17(n)}}}13{if(x.1s===P.V.1j.aS){Q q=X P.U.46(x.18[0].x,x.18[0].y,-1,O.1c);q.1u();Q m=X P.5N.4f(q);m.7Z=1a;m.Z=P.1o.2t(m.Z,c.cS);if(c.81){m.Z=P.1o.2t(m.Z,c.81)}m.4y=x;l.17(m);Q t=P.V.1k.3F(x.11[0].11[0].11[x.11[0].11[0].11.W-1])[0];Q o=X P.U.46(t.x,t.y,-1,O.1c);o.1u();Q v=X P.5N.4f(o);v.7Z=1a;v.Z=P.1o.2t(v.Z,c.cS);if(c.81){v.Z=P.1o.2t(v.Z,c.81)}v.4y=x;l.17(v);if(x 1m P.U.1N&&x.1M!==R){19(p=0;p<x.1M.W;p++){w=X P.U.46(x.1M[p].x,x.1M[p].y,-2,O.1c,1d,x.1M[p].4U);w.1u();n=X P.5N.4f(w);n.7Z=1a;n.Z=P.1o.2t(n.Z,c.ep);if(c.9l){n.Z=P.1o.2t(n.Z,c.9l)}n.4y=x;j.17(n)}}}13{Q u=x.18.W;19(s=0;s<u;++s){w=X P.U.46(x.18[s].x,x.18[s].y,-1,O.1c,1d,s);n=X P.5N.4f(w);n.7Z=1a;if(x 1m P.U.3g){n.Z=P.1o.2t(n.Z,c.ik);w.eB=2.5}13{n.Z=P.1o.2t(n.Z,c.cS);if(c.81){n.Z=P.1o.2t(n.Z,c.81)}}w.1u();n.4y=x;l.17(n)}if(x 1m P.U.1N&&x.1M!==R){19(p=0;p<x.1M.W;p++){w=X P.U.46(x.1M[p].x,x.1M[p].y,-2,O.1c,1d,x.1M[p].4U);w.1u();n=X P.5N.4f(w);n.7Z=1a;n.Z=P.1o.2t(n.Z,c.ep);if(c.9l){n.Z=P.1o.2t(n.Z,c.9l)}n.4y=x;j.17(n)}}}}}}}if(!k.1g.5c||k.1g.4G){Q a=k.T.2F().2s();Q f=a.ml();b=X P.5N.4f(f);b.7Z=1a;b.Z=P.1o.2t(b.Z,c.rZ);if(c.mk){b.Z=P.1o.2t(b.Z,c.mk)}h=h.4Y([b])}13{g.mI(O,k.T)}if(k.T.1s!==P.V.1j.al){if(l.W>0){h=h.4Y(l)}}if(j.W>0){h=h.4Y(j)}if(d.W>0){h=h.4Y(d)}if(e.W>0){h=h.4Y(e)}O.18[k.T.1r]=l;O.1M[k.T.1r]=j;O.5T[k.T.1r]=d;O.49[k.T.1r]=e;O.7w[k.T.1r]=b;Y h},6m:S(d){Q b=O.3T.aJ;O.3T.aJ=1a;O.3T.6m(d);O.3T.aJ=b;O.1G.6m(d);O.aI.6m(d);P.4r.1x.6m.1q(O,1K);Q c=O.1c.2C;19(Q a=0;a<c.W;a++){if(c[a].1t==="P.2J.43"&&c[a].mj()&&P.1o.3v(O.2C,c[a])===-1){c[a].1p.6g("g2",O,O.cQ);c[a].1p.6g("c3",O,O.g1);c[a].1p.6g("73",O,O.iE);c[a].1p.6g("7N",O,O.iD);c[a].1p.6g("aD",O,O.iC);c[a].1p.6g("ea",O,O.iB);O.2C.17(c[a])}}O.1c.dG([O.8l]);O.er();O.1c.1p.6g("zp",O,O.dq);O.1c.1p.6g("zo",O,O.c2)},mh:S(){Q c=[];19(Q a=0;a<O.1h.W;a++){Q b=O.1h[a].T.1r;if(O.18.2l(b)){c=c.4Y(O.18[b])}if(O.1M.2l(b)){c=c.4Y(O.1M[b])}if(O.5T.2l(b)){c=c.4Y(O.5T[b])}if(O.49.2l(b)){c=c.4Y(O.49[b])}if(O.7w.2l(b)&&O.7w[b]!==R){c.17(O.7w[b])}}Y c},iA:S(){Q a=O.mh();if(a.W===0){Y}O.18=[];O.1M=[];O.5T=[];O.49=[];O.7w=[];O.1g.4D(a);O.g6=1d;O.eq=1d},rY:S(a){Q c=[];Q b=a.T.1r;if(O.18.2l(b)){c=c.4Y(O.18[b])}if(O.1M.2l(b)){c=c.4Y(O.1M[b])}if(O.5T.2l(b)){c=c.4Y(O.5T[b])}if(O.49.2l(b)){c=c.4Y(O.49[b])}if(O.7w.2l(b)&&O.7w[b]!==R){c.17(O.7w[b])}Y c},cO:S(b){Q a=O.rY(b);Q d=a.53();Q c=b.T.1r;if(O.18.2l(c)){3k O.18[c]}if(O.1M.2l(c)){3k O.1M[c]}if(O.5T.2l(c)){3k O.5T[c]}if(O.49.2l(c)){3k O.49[c]}if(O.7w.2l(c)){3k O.7w[c]}if(O.82.2l(c)){3k O.82[c]}if(O.8G.2l(c)){3k O.8G[c]}if(O.a2.2l(c)){3k O.a2[c]}if(O.5p.2l(c)){3k O.5p[c]}if(O.9k.2l(c)){3k O.9k[c]}if(O.cT.2l(c)){3k O.cT[c]}O.1g.4D(d);O.g6=1d;O.eq=1d},mi:S(d){if(O.1G.2x.38.4V){Y}Q b=O.mh();Q c="zn";if(d===1d){c="3N"}19(Q a=0;a<b.W;a++){b[a].Z.23=c}O.8t(b,1a)},aF:S(b){Q c=[];if(b.T 1m P.U.3g){c=O.18[b.T.1r]}13{if(O.5A===P.V.5k.dv||O.5A===P.V.5k.ai){c=O.18[b.T.1r]}13{c=O.49[b.T.1r]}}Q d=[];19(Q a=0;a<c.W;a++){d.17(X P.U.1f(c[a].T.x,c[a].T.y))}Y d},mg:S(d){Q a=O.1M[d.T.1r];Q c=[];19(Q b=0;b<a.W;b++){c.17(X P.U.1f(a[b].T.x,a[b].T.y))}Y c},rX:S(p,c){if(!p.1g.5c||p.1g.4G){Y}if(p.T.1s===P.V.1j.ad){Q f=p.1g.2G(c);Q l=X P.U.1f(f.1U,f.1T);Q a;Q b=X P.U.46(l.x,l.y,-2,O.1c,1d,p.T.1M.W);b.1u();a=X P.5N.4f(b);a.4y=p.T;a.7Z=1a;a.Z=P.1o.2t(a.Z,O.ep);if(O.ep){a.Z=P.1o.2t(a.Z,O.9l)}O.9k[p.T.1r]=p.T.2a;Q n=p.T.2a.53();Q k=O.1M[p.T.1r];k.17(a);p.T.1M=O.mg(p);p.T.1M[p.T.1M.W-1].7W=1a;p.T.6n(p.T.1M.W-1,p.T.1M[p.T.1M.W-1]);O.1g.5t([a]);O.1G.7v.1q(O.1G,[a]);p.1g.2m(p,p.Z,{3c:1a});Q h=X P.V.4d();h.3K=p.1g.id;h.1r=p.T.1r;h.3b="ib";h.4h=[n];h.4c=[p.T.2a];O.2o.1O.17(h);if(O.2o){P.2Z.3r().6f().6c(O.2o);O.2o=X P.V.6d();O.65=1a}}13{Q j=O.9e(p);if(P.V.8F.lG(O.1v,O.1A)){if(p.T.aC===1a){j=P.V.9j.da}}if(P.V.9j.af===j){Y}Q f=p.1g.2G(c);Q l=X P.U.1f(f.1U,f.1T);if(p.T.18.W>=p.T.5w){Y}Q m=-1;Q e=R;if(P.V.9j.jA===O.9e(p)){m=O.rU(p,l)}13{if(P.V.9j.da===O.9e(p)){m=O.rV(p,l)}}Q g=O.aF(p);if(m>0&&m<g.W){Q d=X P.U.46(l.x,l.y,-1,O.1c);d.1u();e=X P.5N.4f(d);e.4y=p.T;e.7Z=1a;e.Z=P.1o.2t(e.Z,O.cS);if(O.81){e.Z=P.1o.2t(e.Z,O.81)}Q o=O.18[p.T.1r];o.2S(m,0,e);p.T.18=O.aF(p);O.1g.5t([e]);O.1G.7v.1q(O.1G,[e]);p.1g.2m(p,p.Z,{3c:1a});Q h=X P.V.4d();h.3K=p.1g.id;h.1r=p.T.1r;h.3b="7F";h.4h=[g];h.4c=[P.V.1k.3F(p.T.18)];O.2o.1O.17(h);if(O.2o){P.2Z.3r().6f().6c(O.2o);O.2o=X P.V.6d();O.65=1a}}}},rW:S(k,b){if(!k.1g.5c||k.1g.4G){Y}if(P.V.9j.af===O.9e(k)){Y}if(k.T.18.W<=k.T.3V){Y}Q h=O;Q f=S(n,l,o){Q m=X P.V.4d();m.3K=n.1g.id;m.1r=n.T.1r;m.3b=o.5R();m.4h=[l];m.4c=[P.V.1k.3F(n.T.18)];h.2o.1O.17(m);if(h.2o){P.2Z.3r().6f().6c(h.2o);h.2o=X P.V.6d();h.65=1a}};Q d=k.1g.2G(b);Q g=X P.U.1f(d.1U,d.1T);Q j=P.V.1k.3F(k.T.18);Q e=O.18[k.T.1r];Q a=-1;19(Q c=0;c<e.W;c++){if(P.V.1k.5s(g.x,e[c].T.x,0.5)&&P.V.1k.5s(g.y,e[c].T.y,0.5)){a=c}}if(a!==-1&&a<e.W){k.T.18.2S(a,1);k.T.1u();O.1g.4D([e[a]]);e.2S(a,1);k.1g.2m(k,k.Z,{3c:1a});if(k.T.18.W<=k.T.3V){O.iz(P.V.5k.dv)}O.aH()}13{O.iz(P.V.5k.dv)}f(k,j,"7F")},9e:S(a){if(R===a){Y P.V.9j.af}if(a.T.1v===22&&a.T.1A===dw){if(a.T.qw()===0){Y P.V.9j.da}13{Y P.V.9j.jA}}13{Y P.U.1N.9e(a.T.1v,a.T.1A)}},mf:S(){Q d=O.me;if(O.3T.2x.1b.4V||O.1G.2x.38.4V){d=O.md}Q c=O.1c.2G(X P.3L(0,0));Q b=O.1c.2G(X P.3L(d,0));Q a=P.V.1k.2I({x:c.1U,y:c.1T},{x:b.1U,y:b.1T});Y a},rV:S(c,a){Q b=-1;Q d=O.aF(c);b=O.cH(a,d).7H;if(b>=0){b++}Y b},rU:S(b,n){Q h=O.aF(b);Q q=P.V.1k.aQ(h);if(2>q.W){Y-1}Q j=[];Q e=0;Q p,l;19(l=1;l<h.W;l++){Q v=[];19(p=e;p<q.W;p++){if(P.V.1k.5s(h[l].x,q[p].x)&&P.V.1k.5s(h[l].y,q[p].y)){if(v.W<1){1W}v.17(q[p]);j.17(v);v=[];e=p;1C}13{v.17(q[p])}}}Q u=-1;Q g=-1;19(p=0;p<j.W;p++){Q a=O.cH(n,j[p]).fG;if(a<0){1W}if(g<0){g=a;u=p+1}13{if(g>a){g=a;u=p+1}}}Q c=[];Q d=0;Q o=h.53();o.17(o[0]);Q s=P.V.1k.aQ(o);19(l=1;l<o.W;l++){Q t=[];19(p=d;p<s.W;p++){if(P.V.1k.5s(o[l].x,s[p].x)&&P.V.1k.5s(o[l].y,s[p].y)){if(t.W<1){1W}t.17(s[p]);c.17(t);t=[];d=p;1C}13{t.17(s[p])}}}Q f=-1;Q k=-1;19(p=0;p<c.W;p++){Q r=O.cH(n,c[p]).fG;if(r<0){1W}if(k<0){k=r;f=p+1}13{if(k>r){k=r;f=p+1}}}if(f>u){u=-1}Y u},cH:S(b,d){Q a=O.mf();Q c=P.V.1k.cH(b,d);if(c.fG>a){c.7H=-1}Y c},8t:S(c){if(R===c){Y}19(Q b=0;b<c.W;b++){Q a=c[b];if(1l===a||R===a){1W}O.1g.2m(a)}},bl:S(a){Q c=R;Q e=O.me;if(O.3T.2x.1b.4V||O.1G.2x.38.4V){e=O.md}Q d=O.1c.6B(a);19(Q b=0;b<O.2C.W;b++){c=O.2C[b].bl(d,e);if(c!==R){Y c}}Y c},mc:S(b){if(O.fH){Q a=P.1o.5Z(O.rT);if(O.bB){P.1o.2t(a,O.bB)}b.qr(a);b.1b.1g.2m(b.1b)}},mb:S(a){a.qq();a.1b.1g.2m(a.1b)},zm:S(j){Q l=[];19(Q e=0;e<O.1h.W;e++){if(O.1h[e].T.1s===P.V.1j.5j){l.17(O.1h[e])}}if(l.W<2){Y}Q c=X P.V.6d();P.2Z.3r().6f().6c(c);if(j===P.V.gR.nO){Q a=O.1h[O.1h.W-1].T.2u.w;19(Q e=0;e<O.1h.W-1;e++){Q m=O.1h[e].T.2u.w;O.1h[e].T.at(a,O.1h[e].T.2u.h);O.1h[e].1g.2m(O.1h[e]);Q h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="at";h.4h=[m,O.1h[e].T.2u.h];h.4c=[a,O.1h[e].T.2u.h];c.1O.17(h)}}13{if(j===P.V.gR.nN){Q n=O.1h[O.1h.W-1].T.2u.h;19(Q e=0;e<O.1h.W-1;e++){Q d=O.1h[e].T.2u.h;O.1h[e].T.at(O.1h[e].T.2u.w,n);O.1h[e].1g.2m(O.1h[e]);Q h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="at";h.4h=[O.1h[e].T.2u.w,d];h.4c=[O.1h[e].T.2u.w,n];c.1O.17(h)}}13{if(j===P.V.gR.nM){Q g=O.1h[O.1h.W-1].T.2u.w;Q f=O.1h[O.1h.W-1].T.2u.h;19(Q e=0;e<O.1h.W-1;e++){Q k=O.1h[e].T.2u.w;Q b=O.1h[e].T.2u.h;O.1h[e].T.at(g,f);O.1h[e].1g.2m(O.1h[e]);Q h=X P.V.4d();h.3K=O.1h[e].1g.id;h.1r=O.1h[e].T.1r;h.3b="at";h.4h=[k,b];h.4c=[g,f];c.1O.17(h)}}}}O.6H()},zl:S(g){if(O.1h.W<3){Y}Q q=X P.V.6d();P.2Z.3r().6f().6c(q);Q n=[];19(Q p=0;p<O.1h.W;p++){Q d=O.1h[p].T.2F();n.17(X P.U.1f(d.7O().1U,d.7O().1T))}Q c=O.1h.53();if(g===P.V.jO.nL){19(Q p=0;p<n.W;p++){19(Q o=0;o<n.W-1-p;o++){if(n[o].x>n[o+1].x){Q v=n[o+1];n[o+1]=n[o];n[o]=v;Q f=c[o+1];c[o+1]=c[o];c[o]=f}}}Q b=1n.2W(n[n.W-1].x-n[0].x);Q u=b/(n.W-1);19(Q l=1;l<n.W-1;l++){Q k=n[n.W-1].x-u*l;Q h=k-n[l].x;c[l].T.2n(h,0);c[l].1g.2m(c[l]);Q e=X P.V.4d();e.3K=c[l].1g.id;e.1r=c[l].T.1r;e.3b="2n";e.4h=[-h,0];e.4c=[h,0];q.1O.17(e)}}13{if(g===P.V.jO.nK){19(Q p=0;p<n.W;p++){19(Q o=0;o<n.W-1-p;o++){if(n[o].y>n[o+1].y){Q v=n[o+1];n[o+1]=n[o];n[o]=v;Q f=c[o+1];c[o+1]=c[o];c[o]=f}}}Q a=1n.2W(n[n.W-1].y-n[0].y);Q t=a/(n.W-1);19(Q l=1;l<n.W-1;l++){Q s=n[n.W-1].y-t*l;Q r=s-n[l].y;c[l].T.2n(0,r);c[l].1g.2m(c[l]);Q e=X P.V.4d();e.3K=c[l].1g.id;e.1r=c[l].T.1r;e.3b="2n";e.4h=[0,-r];e.4c=[0,r];q.1O.17(e)}}}O.6H()},1t:"P.4r.ix"});P.4r.zk=P.27(P.4r,{g5:R,1X:"",8W:R,a0:R,cR:R,1I:S(c,a,b){O.g5=c;O.1X=a;c.iy=O;P.4r.1x.1I.1q(O,[b]);O.cR=X P.4r.zj(c,{zi:O.rQ,zh:O.rP,3R:O});Q d={eS:1d,iw:P.iv.iu};O.8W=X P.2J.43(O.1t,O.1X,d);Q e=O;O.a0=X P.4r.ix();O.a0.g3=S(f){e.rS(f[0])}},1B:S(){if(O.8W.1c!=R){O.a0.1B();O.8W.1B();O.cR.1B()}O.8W=R;O.a0=R;O.cR=R},64:S(){if(!(O.cR.64()&&O.a0.64()&&P.4r.1x.64.1q(O,1K))){Y 1d}},4S:S(){Q a=1d;if(P.4r.1x.4S.1q(O,1K)){O.cR.4S();O.a0.4S();a=1a}Y a},rS:S(a){O.g5.rR(a)},rQ:S(a){a.Z.cK.1b.ma=a.id;O.8W.7P();O.8W.5t(a.Z.cK.1b);O.a0.a1(O.8W.1h[0]);a.Z.cK.1b.g5=O.g5},rP:S(){O.8W.7P()},6m:S(a){O.cR.6m(a);O.a0.6m(a);a.dq(O.8W);P.4r.1x.6m.1q(O,1K)},1t:"P.V.zg"});P.4r.m6=P.27(P.4r,{rO:R,ik:{2g:"#rN",2k:1,2L:"#9s",3M:1,1D:1},18:R,1b:R,1g:R,1h:R,aG:R,1G:R,1I:S(b){Q c={eS:1d,iw:P.iv.iu};O.1g=X P.2J.43.g4(O.1t,"",c);O.1h=[];O.18=[];b=b||{};P.4r.1x.1I.1q(O,[b]);Q d=O;O.aG=X P.4r.fe(O.1g,P.95.1V);O.aG.1p.6g("zf",O,O.rJ);O.aG.54.1v=0;O.aG.54.6A=P.V.1j.9A;Q a={it:S(f,e){d.ir.1q(d,[f,e])},el:S(f,e){d.io.1q(d,[f,e])},g3:S(f,e){d.im.1q(d,[f,e])},rM:{2n:S(e){d.il.1q(d,[e])}},rL:{is:S(f,e){d.7v.1q(d,[f,e])},m9:S(f,e){d.en.1q(d,[f,e])}}};O.1G=X P.4r.rK(O.1g,a);O.1g.1p.6g("g2",O,O.cQ);O.1g.1p.6g("c3",O,O.g1)},cQ:S(){O.6H()},m8:S(){O.1b.T.b5();O.1g.7P();O.1h=[];O.18={};O.1b.1g.2m(O.1b);Q b=X P.V.6d();b.7E=P.V.7D.c4;Q a=X P.V.4d();a.3K=O.1b.1g.id;a.1r=O.1b.T.1r;a.3b="b5";a.4h=[O.1b.T.3E];a.4c=[O.1b.T.3E];b.1O.17(a);P.2Z.3r().6f().6c(b)},m7:S(c){Q b=P.1o.7H(O.1h,c.1b);if(b!==-1){O.1b.T.b5(c);O.1g.cO(c.1b);if(P.1o.3v(O.1g.3C,c.1b)!==-1){P.1o.g0(O.1g.3C,c.1b)}if(P.1o.3v(O.1h,c.1b)!==-1){P.1o.g0(O.1h,c.1b)}if(O.18.2l(c.1r)){3k O.18[c.1r]}O.1g.4D(c.1b);O.1h.2S(b,1);O.1b.1g.2m(O.1b);Q d=X P.V.6d();d.7E=P.V.7D.c4;Q a=X P.V.4d();a.3K=O.1b.1g.id;a.1r=O.1b.T.1r;a.3b="b5";a.4h=[c];a.4c=[c];d.1O.17(a);P.2Z.3r().6f().6c(d)}},rJ:S(a){if(a.1b===1l){Y}if(!(a.1b.T 1m P.U.3g)){Y}O.1b.T.ds(a.1b.T);O.1b.1g.8t(O.1b);O.6G(a.1b);Q c=X P.V.6d();c.7E=P.V.7D.c4;Q b=X P.V.4d();b.3K=O.1b.1g.id;b.1r=O.1b.T.1r;b.3b="ds";b.4h=[a.1b.T];b.4c=[a.1b.T];c.1O.17(b);P.2Z.3r().6f().6c(c)},1B:S(){O.18=[];O.1g.1B();O.1g=R;O.1b=R;O.1h=[];O.aG.1B();O.1G.1B();P.4r.1x.1B.1q(O,[])},64:S(){if(O.1b===R){Y 1d}if(O.1b.1g===R||O.1b.1g.4G||!O.1b.1g.5c){Y 1d}if(O.1b.T.77()){Y 1d}O.1c.dG([O.1g]);O.aG.64();O.1G.64();P.4r.1x.64.1q(O,1K);O.rI();Y 1a},4S:S(){Q a=1d;if(P.4r.1x.4S.1q(O,1K)){O.1g.7P();O.1h.W=0;O.1h=[];O.1G.4S();O.aG.4S();O.1c.c2(O.1g);a=1a}Y a},rI:S(){Q c=O.1b.T;19(Q a=0;a<c.3E.W;a++){Q b=c.3E[a].1b;if(P.1o.3v(O.1g.1h,b)===-1){O.1g.5t(b)}if(P.1o.3v(O.1h,b)===-1){O.6G(b)}}},rH:S(){Q a=O.1g.1h.53();O.1g.4D(a)},6G:S(a){if(!(a.T 1m P.U.3g)){Y}O.1g.3C.17(a);O.1h.17(a);O.aH(a)},ir:S(b,a){if(O.1G.2x.38.4V){Q c=O.bl(a);if(c===R){Y}if(b!==c){if(O.1G.8k){O.1G.7v.1q(O.1G,[c])}O.1c.1p.un({80:O.1G.2x.38.80,8j:O.1G.2x.38.8j,7V:O.1G.2x.38.7V,7u:O.1G.2x.38.7u,3R:O.1G.2x.38});b=c;O.1G.9i=a;O.1G.2x.38.fZ=1a;O.1G.2x.38.87=a;O.1G.2x.38.fY=a}}if(b.T 1m P.U.1N){Y}if(b.T 1m P.U.46&&!(b.4y 1m P.U.3g)){Y}O.9Z=a;O.iq=X 8U().8q();P.eo.ip(O.1c.bH,"rG");O.1c.bH.Z.7U="8e"},io:S(b,a){if(b.T 1m P.U.1N){Y}if(b.T 1m P.U.46&&!(b.4y 1m P.U.3g)){Y}if(b.T.1t=="P.U.46"){Q d=b.4y;Q c=O.aF(b.4y.1b);d.18=c;d.1u();O.1g.2m(b.4y.1b);O.6H(b.4y.1b)}13{if(b.T 1m P.U.3g){if(!O.1G.2x.38.4V){O.cO(b)}O.1g.2m(b,b.Z,{3c:1a})}}O.1b.T.1u();O.1b.1g.8t(O.1b)},im:S(b,a){if(b.T 1m P.U.1N){Y}3k O.9Z;if(b.T 1m P.U.3g){O.aH(b)}},7v:S(b,a){O.1g.cP(b,a);O.1G.7v.1q(O.1G,[b])},en:S(b,a){O.1g.cP(b,a);O.1G.en.1q(O.1G,[b])},il:S(c){if(O.1G.1b.T 1m P.U.1N){Y}if(O.1G.9i===R){Y}Q b=O.1g.2G(c);Q d=O.1g.2G(O.1G.9i);Q a=b.1U-d.1U;Q e=b.1T-d.1T;if(O.1G.1b.T 1m P.U.46&&O.1G.1b.4y 1m P.U.3g){O.1G.1b.T.2n(a,e)}13{if(O.1G.1b.T 1m P.U.3g){O.1G.1b.T.2n(a,e)}}O.1G.9i=c;O.1G.el(O.1G.1b,c)},aH:S(a){O.cO(a);O.fX(a)},6H:S(e){if(e===1l){e=O.1h}13{if(!P.1o.4g(e)){e=[e]}}19(Q d=0;d<e.W;d++){Q c=e[d];if(!c||!c.T){1W}Q f=c.T;if(!(f 1m P.U.3g)){1W}Q a=O.18[f.1r];if(a!==1l&&f.18.W===a.W){19(Q b=0;b<a.W;++b){a[b].T.x=f.18[b].x;a[b].T.y=f.18[b].y;a[b].T.1u()}}O.8t(a)}},fX:S(d){if(!d||!d.T){Y}Q f=d.T;if(f 1m P.U.1N){Y}Q b=[];Q c,g,e;Q a=f.18.W;19(c=0;c<a;++c){e=X P.U.46(f.18[c].x,f.18[c].y,-1,O.1c,1d,c);g=X P.5N.4f(e);g.7Z=1a;g.Z=P.1o.2t(g.Z,O.ik);e.hK=2.5;e.1u();g.4y=f;b.17(g)}if(b.W>0){O.1g.5t(b,{fa:1a})}O.18[d.T.1r]=b},6m:S(a){O.1G.6m(a);O.aG.6m(a);P.4r.1x.6m.1q(O,1K)},cO:S(b){Q c=b.T.1r;if(O.18.2l(c)){Q a=O.18[c];O.1g.4D(a);3k O.18[c]}},aF:S(b){Q c=[];if(b.T 1m P.U.3g){c=O.18[b.T.1r]}Q d=[];19(Q a=0;a<c.W;a++){d.17(X P.U.1f(c[a].T.x,c[a].T.y))}Y d},8t:S(c){if(R===c){Y}19(Q b=0;b<c.W;b++){Q a=c[b];if(1l===a||R===a){1W}O.1g.2m(a)}},1t:"P.4r.m6"});P.U.3h=P.27({cN:72,1I:S(a){},rA:S(a){if(a&&a.W>1){Y X P.U.6J(a)}},ro:S(c){c=P.V.1k.cF(c);if(c&&c.W>=3){Q e=P.V.1k.2I(c[0],c[1]);if(P.V.1k.rC(c[0],c[1],c[2])){e=-e}Q b=[];19(Q d=1;d<c.W;d++){b.17(c[d].2s())}Q a=P.V.1k.ld(b,e);c[0].x=a[0].x;c[0].y=a[0].y;Q f=[];f.17(X P.U.6J(b));f.17(X P.U.6J(a));Y f}13{Y[]}},rz:S(a,b){if(a){Q c=[];if(b){c=O.rF(a)}13{c=a}P.V.1k.cF(c);Y O.fs(c)}},ry:S(a,b){if(a){Q c=[];if(b){c=P.V.1k.aQ(a)}13{c=a}P.V.1k.cF(c);Y X P.U.6J(c)}},rx:S(a,c){if(a){if(a[0].x!==a[a.W-1].x||a[0].y!==a[a.W-1].y){a.17(a[0])}Q d=[];if(c){d=P.V.1k.aQ(a)}13{d=a}P.V.1k.cF(d);Q b=X P.U.5h(d);Y X P.U.4T([b])}},rw:S(a){if(a&&a.W>=3){Q f=a[0].x+(a[2].x-a[1].x);Q e=a[0].y+(a[2].y-a[1].y);Q d=X P.U.1f(f,e);Q c=[];c.17.1q(c,a);c.17(d);Q b=X P.U.5h(c);Y X P.U.4T([b])}},fs:S(a){if(a&&a.W>2){Q b=X P.U.5h(a);Y X P.U.4T([b])}},rv:S(k){if(k&&k.W===2){Q f=k[0];Q g=k[1];Q j=[];Q e=1n.5G((g.x-f.x)*(g.x-f.x)+(g.y-f.y)*(g.y-f.y));Q b=3Q/O.cN;19(Q c=0;c<O.cN;c++){Q a=(c*b+1)*1n.2r/2O;Q h=X P.U.1f(1n.7d(a)*e+f.x,1n.7c(a)*e+f.y);j[c]=h}Q d=X P.U.5h(j);Y X P.U.4T([d])}},ru:S(l,j,b,k){if(l&&l.W===2){Q a=l[0];Q h=l[1];Q g=a.2s();Q f=X P.U.1f(h.x,a.y);Q e=h.2s();Q d=X P.U.1f(a.x,h.y);Q c=X P.U.5h([g,f,e,d]);Y X P.U.4T([c])}},lM:S(a,b){if(a&&b&&b.W>0){Y X P.U.5q(a[0].x,a[0].y,b)}},rs:S(b){if(b&&b.W>=3){Q a=P.U.3h.ii(b[0],b[1],b[2]);a.9g*=1n.2r/2O;a.9h*=1n.2r/2O;Q e=(a.9h-a.9g)/O.cN;Q d=O.fW(a.5o,a.bG,a.bG,0,a.9g,a.9h,e);d.17(a.5o);if(d.W!==0){Q c=X P.U.5h(d);Y X P.U.4T([c])}}},rr:S(b){if(b&&b.W>=3){Q a=P.U.3h.ii(b[0],b[1],b[2]);a.9g*=1n.2r/2O;a.9h*=1n.2r/2O;Q e=(a.9h-a.9g)/O.cN;Q d=O.fW(a.5o,a.bG,a.bG,0,a.9g,a.9h,e);if(d.W!==0){Q c=X P.U.5h(d);Y X P.U.4T([c])}}},rq:S(b){if(b&&b.W>=3){Q a=P.U.3h.ii(b[0],b[1],b[2]);a.9g*=1n.2r/2O;a.9h*=1n.2r/2O;Q d=(a.9h-a.9g)/O.cN;Q c=O.fW(a.5o,a.bG,a.bG,0,a.9g,a.9h,d);if(c.W!==0){Y X P.U.6J(c)}}},rp:S(m,g,b,a,e){if(b===1a){if((!a)&&(m&&m.W>=3)){a=P.V.1k.2I(m[0],m[1])}if((!e)&&(m&&m.W>=3)){Q c=P.V.1k.l7(m[2],m[0],m[1]);e=P.V.1k.2I(c,m[2])}}13{e=P.V.1k.2I(m[0],m[2]);a=P.V.1k.2I(m[0],m[1])}if(!g){g=P.V.1k.7k(m[0],m[1])}13{g*=1n.2r/2O}if(m&&m.W>0){Q f=0;Q l=1n.2r*2;Q k=l/O.cN;Q j=O.fW(m[0],a,e,g,f,l,k);if(b===1a){Q d=1n.7c(g);Q h=1n.7d(g);if(m[2].x>m[1].x){m[2].x=m[0].x-e*d;m[2].y=m[0].y+e*h}13{m[2].x=m[0].x+e*d;m[2].y=m[0].y-e*h}}Y X P.U.4T([X P.U.5h(j)])}},fW:S(d,q,j,p,n,e,c){Q m=[];if(1n.2W(c)<1e-9){Y m}6T(e<n){e+=1n.2r*2}6T(e>(n+1n.2r*2)){n+=1n.2r*2}Q g=1n.7d(p)*q;Q a=1n.7c(p)*q;Q r=1n.7d(p)*j;Q f=1n.7c(p)*j;Q l=O.m5(n,q,j);Q b=O.m5(e,q,j);if((b-l)<0.ze){b+=2*1n.2r}Q s=1n.5X(1n.2W((b-l)/c)+1);if(s<2){Y m}19(Q o=0;o<s-1;l+=c,o++){if(o===s-2){l=e}Q k=d.x+g*1n.7d(l)-f*1n.7c(l);Q h=d.y+a*1n.7d(l)+r*1n.7c(l);m.17(X P.U.1f(k,h))}if(0>m.W){m[m.W-1].x=d.x+g*1n.7d(b)-f*1n.7c(b);m[m.W-1].y=d.y+a*1n.7d(b)+r*1n.7c(b)}Y m},m5:S(f,c,a){Q e=f;Q b=c*1n.7c(f);Q d=a*1n.7d(f);Q g=1n.aw(b,d);if(f>1n.2r){6T(e>1n.2r){e-=2*1n.2r;g+=2*1n.2r}}13{if(f<-1n.2r){6T(e<-1n.2r){e+=2*1n.2r;g-=2*1n.2r}}}Y g},rF:S(e){Q c=[];e=P.V.1k.cF(e);if(2>e.W){Y c}Q a=O.rE(e);if(12!=a.W){Y c}a.17(a[0]);a.17(a[1]);a.2S(0,1);19(Q d=0;d<a.W-3;d+=3){Q b=[];b=O.rB(a[d],a[d+1],a[d+2],a[d+3]);c=c.4Y(b)}Y c},rE:S(l){Q d=[];Q f=[];Q k=l.W;if(k===0){Y}if(k===1){d.17(l[0]);Y}if(k==2){Q h=O.m3(l[0],l[1]);f.17(l[0]);f.17(l[1]);f.17(h)}13{f.17(l[0]);f.17(l[1]);f.17(l[2]);if(P.V.1k.m4(l[0],l[2])||P.V.1k.m4(l[1],l[2])){d.17(l[0]);d.17(l[1])}if(P.V.1k.m4(l[0],l[1])){d.17(l[0]);d.17(l[2]);Y}}f=O.rD(f);Q j=X P.U.1f(0,0);Q g=X P.U.1f(0,0);j.x=(f[0].x+f[1].x)*0.5;j.y=(f[0].y+f[1].y)*0.5;g.x=j.x-(f[2].x-j.x)*0.1;g.y=j.y-(f[2].y-j.y)*0.1;Q e=O.fV(3,0,f[1],f[0],g);d.17(e.pr);d.17(g);d.17(e.pl);Q c=O.fV(4,2,f[2],f[0],f[1]);d.17(c.pr);d.17(f[1]);d.17(c.pl);Q b=O.fV(2,0,f[0],f[1],f[2]);d.17(b.pr);d.17(f[2]);d.17(b.pl);Q a=O.fV(4,1,f[1],f[2],f[0]);d.17(a.pr);d.17(f[0]);d.17(a.pl);Y d},m3:S(c,b){Q e=X P.U.1f(0,0);e.x=(c.x+b.x)*0.5;e.y=(c.y+b.y)*0.5;Q d=P.V.1k.2I(b,c)/2.7;Q a=O.m1(d,c,e);Y a.ij},m1:S(a,f,e){Q c=X P.U.1f(0,0);Q b=X P.U.1f(0,0);Q d=X P.U.1f(0,0);Q g=P.V.1k.2I(f,e);if(g==0){d.y=0;d.x=a}13{d.x=(a*(f.x-e.x)/g);d.y=(a*(f.y-e.y)/g)}c.x=-d.y+e.x;c.y=d.x+e.y;b.x=d.y+e.x;b.y=-d.x+e.y;Y{ij:c,m0:b}},rD:S(d){Q f=[];f.17(X P.U.1f(0,0));f.17(X P.U.1f(0,0));f.17(X P.U.1f(0,0));Q a=d.W;if(a<2){}13{if(a==2){f[0]=d[0];f[1]=d[1];f[2]=O.m3(d[0],d[1])}13{Q k=d[0];Q j=d[1];Q h=d[2];Q e=P.V.1k.2I(j,k);Q c=P.V.1k.2I(h,j);Q b=P.V.1k.2I(k,h);Q g;if((c>=e)&&(c>=b)){g=k.2s();k=h.2s();h=g.2s()}13{if(b>=e&&b>=c){g=h.2s();h=j.2s();j=g.2s()}}if(!P.V.1k.rC(h,k,j)){g=k.2s();k=j.2s();j=g.2s()}f[0]=k;f[1]=j;f[2]=h}}Y f},fV:S(g,b,h,k,j){Q f=X P.U.1f(0,0);Q e=P.V.1k.2I(j,h);Q d=P.V.1k.2I(k,j);if(b==1){e*=2}if(b==2){d*=2}f.x=((e*k.x+d*h.x)/(e+d));f.y=((e*k.y+d*h.y)/(e+d));Q c=O.m2(g,h,f,j);Q a=O.m2(g,k,f,j);Y{pl:c,pr:a}},m2:S(b,g,h,f){Q e;Q c=P.V.1k.2I(f,g)/b;Q a=O.m1(c,h,f);Q d=P.V.1k.2I(g,a.m0);c=P.V.1k.2I(g,a.ij);e=(d>=c)?a.ij:a.m0;Y e},rB:S(n,l,k,j){Q A=[];Q v=n.x;Q h=n.y;Q u=l.x;Q g=l.y;Q s=k.x;Q f=k.y;Q r=j.x;Q e=j.y;if(P.V.1k.5s(v,u,1e-10)&&P.V.1k.5s(h,g,1e-10)&&P.V.1k.5s(s,r,1e-10)&&P.V.1k.5s(f,e,1e-10)){A.17(X P.U.1f(v,h));A.17(X P.U.1f(s,f))}13{19(Q p=0;p<=1;p+=0.zd){Q z,y,x,w;Q o=p*p;Q m=o*p;z=1-3*p+3*o-m;y=3*(p-2*o+m);x=3*(o-m);w=m;Q q=X P.U.1f(z*v+y*u+x*s+w*r,z*h+y*g+x*f+w*e);A.17(q)}}Y A},1t:"P.U.3h"});P.U.3h.4s=S(c,a,e,b,d){if(d===1l||d===R){d=1a}Q f=X P.U.3h();6z(c){1z 24:Y f.rA(a);1z jc:Y f.rz(a,d);1z oh:Y f.ry(a,d);1z 3Q:Y f.rx(a,d);1z 28:Y f.rw(a);1z 32:Y f.fs(a);1z 29:Y f.rv(a);1z 26:Y f.ru(a);1z 34:Y f.lM(a,e);1z oi:Y f.rs(a);1z oj:Y f.rr(a);1z 44:Y f.rq(a);1z 31:Y f.rp(a,b,d);1z 48:Y f.ro(a)}};P.U.3h.dU=S(b){if(b.1t==="P.U.6J"){Y b.11}13{if(b.1t==="P.U.5h"){Y b.11}13{if(b.1t==="P.U.4T"){if(b.11.W<=0){Y[]}Q a=b.11[0];Y a.11}}}};P.U.3h.ii=S(m,j,k){Q e={};e.5o=X P.U.1f(0,0);e.bG=0;e.9g=0;e.9h=0;Q o=j.x-m.x;Q a=j.y-m.y;if(1n.2W(o)<1e-9){Q n={},g={};n.x=(j.x+m.x)/2;n.y=(j.y+m.y)/2;g.x=(j.x+k.x)/2;g.y=(j.y+k.y)/2;Q l=0;if(1n.2W(k.x-j.x)>=1e-9){l=(k.y-j.y)/(k.x-j.x)}e.5o.y=n.y;if(1n.2W(l)<1e-9){e.5o.x=g.x}13{e.5o.x=g.x-l*(n.y-g.y)}}13{Q n={},g={};n.x=(j.x+m.x)/2;n.y=(j.y+m.y)/2;g.x=(j.x+k.x)/2;g.y=(j.y+k.y)/2;Q d=a/o;if(1n.2W(d)<1e-9){e.5o.x=n.x;if(1n.2W(k.x-j.x)<1e-9){e.5o.y=g.y}13{e.5o.y=-(k.x-j.x)/(k.y-j.y)*(e.5o.x-g.x)+g.y}}13{if(1n.2W(k.x-j.x)<1e-9){e.5o.y=g.y;e.5o.x=-d*(e.5o.y-n.y)+n.x}13{Q c=(k.y-j.y)/(k.x-j.x);e.5o.x=(d*c*(n.y-g.y)+c*n.x-d*g.x)/(c-d);e.5o.y=(g.x-n.x+c*g.y-d*n.y)/(c-d)}}}Q h=1n.aw(m.y-e.5o.y,m.x-e.5o.x);Q b=1n.aw(k.y-e.5o.y,k.x-e.5o.x);if(P.V.1k.zc(m,j,k)){6T(h>=1n.2r*2){h-=1n.2r*2}6T(h<0){h+=1n.2r*2}6T(b>2*1n.2r){b-=2*1n.2r}6T(b<h){b+=2*1n.2r}}13{6T(b>=1n.2r*2){b-=1n.2r*2}6T(b<0){b+=1n.2r*2}6T(h>2*1n.2r){h-=2*1n.2r}6T(b>h){h+=2*1n.2r}Q f=h;h=b;b=f}e.bG=1n.5G((e.5o.x-m.x)*(e.5o.x-m.x)+(e.5o.y-m.y)*(e.5o.y-m.y));e.9h=b*2O/1n.2r;e.9g=h*2O/1n.2r;Y e};P.U.3h.zb=S(e,k,a,b){if(!P.V.1k.za(k,1e-9)){Q f=a*1n.2r/2O;Q c=b*1n.2r/2O;if(f>c){c+=2*1n.2r}Q j=[];Q h=[];Q g=[];Q d=[];j.x=e.x+k*1n.7d(f);j.y=e.y+k*1n.7c(f);h.x=e.x+k*1n.7d((f+c)/2);h.y=e.y+k*1n.7c((f+c)/2);g.x=e.x+k*1n.7d(c);g.y=e.y+k*1n.7c(c);d.17(X P.U.1f(j.x,j.y));d.17(X P.U.1f(h.x,h.y));d.17(X P.U.1f(g.x,g.y));Y d}};P.U.1N=P.27(P.U.7s,{rn:1a,1r:R,3t:R,l6:1a,4G:1d,1g:R,1c:R,1X:"",1i:R,1v:R,1A:R,1s:R,4i:R,ih:R,fU:R,1b:R,3q:R,1S:R,1H:R,2e:R,3c:1d,4t:R,3l:R,4a:R,5z:R,3x:R,1Q:R,3E:R,1L:R,5J:1d,2A:S(){if(O.1b&&O.1b.1g){if(O.77()||O.1b.1g.4G===1a||O.1b.1g.5c===1d||O.1b.1g.3c===1d){Y 1a}13{Y 1d}}},77:S(){Y O.4G},hc:S(a){if(O.4G!==a){O.4G=a;if(O 1m P.U.3H||O 1m P.U.4J){19(Q b=0;b<O.11.W;b++){O.11[b].T.4G=a}}if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("aD",{1h:[O.1b]})}}},bF:S(){Y O.1S},bx:S(a){},bz:S(){Y O.3q},aA:S(b){if(O.2A()){Y}if(!7A(b)){if(!O.4t&&O.1s!==P.V.1j.4E&&O.1s!==P.V.1j.8Z){Q a=O.2F().7O();O.4t=X P.U.1f(a.1U,a.1T)}13{if(!O.4t){O.4t=X P.U.1f(O.18[0].x,O.18[0].y)}}O.2i(b,O.4t);O.3q+=b;O.1E()}},z9:S(){Y O.3l},z8:S(a){if(O.2A()){Y}O.3l=a},lD:S(){Y O.2e},fF:S(a){if(O.2A()){Y}O.2e=a},z7:S(){Y O.1H},gN:S(a){if(O.2A()){Y}O.1H=a;O.1u();if(O.1s===P.V.1j.4E){O.1E()}},h9:S(){Y O.fU},z6:S(){if(O.1v===0&&O.1A===P.V.1j.k0&&O.1Q.W===0){O.1Q.17(X P.V.b7(-1,-1))}13{if(O.1v===4F&&(O.1A===n3||O.1A===z5||O.1A===z4||O.1A===z3||O.1A===z2)&&O.1Q.W===0){O.1Q.17(X P.V.b7(-1,-1))}13{if(O.1v===n2&&(O.1A===z1||O.1A===z0||O.1A===yZ||O.1A===yY)&&O.1Q.W===0){O.1Q.17(X P.V.b7(-1,-1))}}}Y O.1Q},yX:S(d,g,e){if(O.2A()){Y}if(R===e||1l===e){e=O.1v}if(g<O.1Q.W){O.1Q[g].1v=e;O.1Q[g].1A=d}13{if(O.1Q.W===g){O.1Q.17(X P.V.b7(e,d))}13{Y}}S a(h){if(!P.U.1N.5O(O.1v,O.1A)){O.1Q[g].1i=h.2B}13{O.1i.3o=h.2B.3o;19(Q j=0;j<h.2B.1Q.W;j++){O.1Q[j].1A=h.2B.1Q[j]}}O.1u();O.2m();O.1E()}S f(h){Y}if(!P.U.1N.5O(O.1v,O.1A)){P.V.1k.aE(O.1X,O.1Q[g].1v,O.1Q[g].1A,R,{1Y:O.1Y},O,a,f)}13{Q b=X P.1P.7M(O.1X);b.1p.on({4n:a,4m:f,3R:O});Q c=X P.1P.6O();c.1v=O.1v;c.1A=O.1A;c.61=O.18;c.1Q=O.1Q;b.4P(c,O.1Y)}},ds:S(a){if(O.2A()){Y}if(a 1m P.U.3g){O.3E.17(a);a.3t=O.1r;O.1u();O.1E()}},b5:S(d){if(O.2A()){Y}if(d===1l){d=O.3E.53()}if(!P.1o.4g(d)){d=[d]}19(Q b=0;b<d.W;b++){Q c=d[b];if(c 1m P.U.3g){19(Q a=0;a<O.3E.W;a++){if(O.3E[a]===c){O.3E.2S(a,1);1C}}}}O.1u();O.1E()},qY:S(){if(O.3E.W===0){Y}Q b=O.11.53();O.11=[];19(Q a=0;a<O.3E.W;a++){if(O.3E[a].11.W===0){1W}Q c=O.3E[a].11[0];if(!(c 1m P.U.4T)){1W}b=O.lZ(c,b)}O.11=O.11.4Y(b)},lZ:S(k,g){Q m=[];if(!(k 1m P.U.4T)){Y m}19(Q f=0;f<g.W;f++){Q a={};Q o=R;Q b=R;Q h=g[f];Q c,d;if(h 1m P.U.2V){m=m.4Y(O.lZ(k,h.11))}13{if(O.rk(k,h)){1W}13{if(!(h 1m P.U.5q)&&k.rl(h)){if(h 1m P.U.4T){a=P.1o.2t(a,h.Z);h.Z.1D=0;h.Z.6t=1a;O.11.17(h);19(c=0;c<h.11.W;c++){b=O.lY(h.11[c].11,k,1a);19(d=0;d<b.W;d++){o=X P.U.6J(b[d]);o.Z=a;if(h.2l("47")&&h.Z.2P===1a){o.47=o.2s()}m.17(o)}}19(d=0;d<O.11.W;d++){if(O.11[d].2l("47")){O.11.2S(d,1)}}}13{if(h 1m P.U.6J||h 1m P.U.5h){if(O.bt()===1a){a=P.1o.2t(a,h.Z);o=X P.U.5h(h.11);Q e=X P.U.4T([o]);e.Z=a;e.Z.1D=0;e.Z.6t=1a;e.6p=1a;O.11.17(e)}Q l=1d;if(h 1m P.U.5h){l=1a}b=O.lY(h.11,k,l);19(d=0;d<b.W;d++){o=h.2s();o.11=b[d];if(h.2l("47")&&h.Z.2P===1a){o.47=o.2s()}m.17(o)}}}}13{m.17(h)}}}}Y m},rk:S(e,f){Q b=1a;Q c=[];if(f.1t==="P.U.4T"){c=f.11[0].11}13{if(f.1t==="P.U.6J"||f.1t==="P.U.5h"){c=f.11}13{if(f.1t==="P.U.5q"&&O.1b!==R){P.V.1k.fJ(f.Z,O.1b.Z);Q d=f.9T(O.1c,f.Z);c.17(X P.U.1f(d.21,d.1Z));c.17(X P.U.1f(d.21,d.2h));c.17(X P.U.1f(d.2c,d.2h));c.17(X P.U.1f(d.2c,d.1Z))}}}if(c.W===0){b=1d}13{19(Q a=0;a<c.W;a++){if(!e.hk(c[a])){b=1d;1C}}}Y b},lY:S(f,g,k){Q n=f.53();if(k===1a&&n[0].x!==n[n.W-1].x&&n[0].y!==n[n.W-1].y){n.17(n[0])}Q a=[];Q c=[];19(Q e=0;e<n.W;e++){if(!g.hk(n[e])){c.17(n[e].2s())}if(e<=n.W-2){Q l=O.rj(n[e],n[e+1],g);19(Q b=0;b<l.W;b++){c.17(l[b].2s());if(c.W>1){a.17(c);c=[]}}}}if(c.W!==0){a.17(c)}Q h=a.W;if(k===1a&&h>1&&P.V.1k.5s(a[0][0].x,a[h-1][a[h-1].W-1].x)&&P.V.1k.5s(a[0][0].y,a[h-1][a[h-1].W-1].y)){19(Q d=0;d<a[0].W;d++){a[h-1].17(a[0][d])}a.2S(0,1)}Y a},rj:S(l,h,f){Q a=f.11[0].11.53();if(a[0].x!==a[a.W-1].x&&a[0].y!==a[a.W-1].y){a.17(a[0])}Q e=[];19(Q c=0;c<a.W-1;c++){Q k=X P.U.1f();if(P.V.1k.yW(l,h,a[c],a[c+1],k)){e.17(k)}}Q m=[];6T(e.W>0){if(e.W===1){m.17(e[0]);e.2S(0,1)}13{Q d=0;Q g=P.V.1k.2I(l,e[0]);19(Q b=1;b<e.W;b++){if(P.V.1k.2I(l,e[b])<g){g=P.V.1k.2I(l,e[b]);d=b}}m.17(e[d]);e.2S(d,1)}}Y m},r3:S(d){if(d===1l){d=P.V.1k.eY()}O.1r=d;Q c,b,a;19(c=0;c<O.4a.W;c++){O.4a[c].3t=O.1r}19(b=0;b<O.3E.W;b++){O.3E[b].3t=O.1r}if(O.1s===P.V.1j.5j){19(a=0;a<O.5n.W;a++){O.5n[a].3t=O.1r}}Y d},1I:S(a){P.U.7s.1x.1I.1q(O,R);O.fU=X P.V.bh();O.1Q=[];O.3E=[];O.4a=[];O.3q=0;O.1S=1;O.1H="";O.3t="";if(a&&a.1g){O.1c=a.1g.1c;O.1X=a.1g.1X;3k a.1g}if(a&&a.1c){O.1c=a.1c;3k a.1c}if(a&&a.1X){O.1X=a.1X;3k a.1X}if(a&&a.1i){O.1i=P.1o.5Z(a.1i);3k a.1i;O.rh()}P.V.5H.4B(O,O.1i);O.fh();P.1o.2R(O,a);if(O.2e===R){O.2e=4}if(O.3x===R){O.3x=O.1c.3m()}if(O.1r===1l||O.1r===R){O.1r=P.V.1k.eY()}if(O.4i===R){O.ri()}19(Q b=0;b<O.3E.W;b++){O.3E[b].3t=O.1r}},1B:S(){if(R!==O.4a&&1l!==O.4a){19(Q b=0;b<O.4a.W;b++){Q a=O.4a[b];if(R===a){1W}a.3t=R}}O.4a=R;O.1c=R;O.1X=R;O.1b=R;O.1s=R;O.4i=R;O.ih=R;O.fU=R;O.3q=R;O.1S=R;O.1H=R;O.3t=R;O.1Q=R;P.U.7s.1x.1B.1q(O,1K)},fh:S(){Q b=P.2Z.3r(O.1c,O.1X);Q d=b.dJ();if(d&&d.hl===1a&&O.5J===1d){if(O.1s===P.V.1j.5j){if(d.bm!==-1){Q a=O.3d.w;if(O.3d.h>O.3d.w){a=O.3d.h}if(0===a||0===d.bm){O.2u.w=O.3d.w;O.2u.h=O.3d.h}13{Q c=d.bm/a;O.2u.w=c*O.3d.w;O.2u.h=c*O.3d.h}}if(d.cl!==-1){O.4k=d.cl}if(d.9K!==-1){O.9K=d.9K}}if(O 1m P.U.2V){if(d.6S!==-1){O.6S=d.6S}if(d.6R!==-1){O.6R=d.6R}}if(d.3l!==-1){O.3l=d.3l}}},ri:S(){if(O.1v===0){O.4i=P.V.8F.f9(O.1v,O.1A)}13{Q a=P.2Z.3r(O.1c,O.1X);Q b=a.dI();O.4i=b.f9(O.1v,O.1A)}},4b:S(b){Q a=P.2Z.3r(O.1c,O.1X);Y a.4b(b)},1E:S(){if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("c3",{1h:[O.1b]})}},2m:S(){if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.2m(O.1b)}},6n:S(a,b){O.1u()},8o:S(){if(O.1t==="P.U.5a"||O.1t==="P.U.hG"||O.1t==="P.U.3H"||O.1t==="P.U.by"||O.1t==="P.U.4o"||O.1t==="P.U.hT"||O.1t==="P.U.9d"){Y 1a}13{Y 1d}},3z:S(){P.U.7s.1x.3z.1q(O,1K);if(O 1m P.U.3H){19(Q b=0,a=O.11.W;b<a;b++){O.11[b].T.3z()}}13{O.cD(O.11)}},cD:S(c){19(Q b=0,a=c.W;b<a;b++){if(c[b]1m P.5N.4f){c[b].T.3z();if(c[b].T 1m P.U.7s){O.cD(c[b].T.11)}}13{c[b].3z();if(c[b]1m P.U.7s){O.cD(c[b].11)}}}},7l:S(){P.V.5H.4Q(O,O.1i);Y O.1i},rh:S(){if(O.1i!==R){if(O.1i.2l("84")){3k O.1i.84}if(O.1i.2l("id")){3k O.1i.id}if(O.1i.2l("rg")){3k O.1i.rg}if(O.1i.2l("dW")){3k O.1i.dW}if(O.1i.2l("eX")){3k O.1i.eX}if(O.1i.2l("rf")){3k O.1i.rf}if(O.1i.2l("re")){3k O.1i.re}if(O.1i.2l("rd")){3k O.1i.rd}if(O.1i.2l("rc")){3k O.1i.rc}if(O.1i.2l("ra")){3k O.1i.ra}if(O.1i.2l("r9")){3k O.1i.r9}if(O.1i.2l("r8")){3k O.1i.r8}}},fA:S(r7){O.1L=r7;O.1v=4A(O.1L.1V.ig);O.1A=4A(O.1L.1V.ie);O.4i=O.1L.1V.r6;if(O.1L.1V.2l("1j")){O.1s=O.1L.1V.1j}O.1H=O.1L.1V.fR;O.2e=O.1L.1V.r5;if(O.1L.1V.2l("fT")){O.1S=O.1L.1V.fT[0]}if(O.1L.1V.2l("fS")){O.3q=O.1L.1V.fS[0]}if(O.1L.1V.2l("lW")){O.3x=O.1L.1V.lW}if(O.1L.1V.2l("e4")){O.1r=O.1L.1V.e4}if(O.1L.1V.2l("e3")){O.3t=O.1L.1V.e3}if(O.1L.1V.2l("lV")){O.3l=O.1L.1V.lV}if(O.1L.1V.2l("lU")){O.4G=O.1L.1V.lU}if(O.1L.1V.2l("lT")){O.ih=O.1L.1V.lT}if(O.1L.1V.2l("bh")){19(Q j=0;j<O.1L.1V.bh.W;j++){Q lX=O.1L.1V.bh[j];O.fU.oo(lX.93,lX.51)}}if(O.1L.1V.2l("9f")&&O.1L.1V.9f!==R){O.1Q=[];19(Q i=0;i<O.1L.1V.9f.W;i++){Q 1v=O.1L.1V.9f[i].ig;if(1v===1l){1v=O.1v}Q 1A=O.1L.1V.9f[i].ie;if(1A===1l){1W}Q 9R={};if(O.1L.1V.9f[i].fR!==1l){9R.1H=O.1L.1V.9f[i].fR}if(O.1L.1V.9f[i].lS!==1l){9R.ah=O.1L.1V.9f[i].lS}O.1Q.17(X P.V.b7(1v,1A,9R))}}if(O.1L.1V.2l("fQ")){19(Q i=0;i<O.1L.1V.fQ.W;i++){Q 8b=O.1L.1V.fQ[i];Q 9R={1c:O.1c};Q ek=eV("X P.U.3g(9R)");Q 1b=X P.5N.4f(ek);ek.1b=1b;ek.fA(8b);ek.1u();O.3E.17(ek)}}if(O.1L.1V.2l("lR")){O.5z=O.1L.1V.lR}if(O.1b!==R){O.1b.Z=P.V.5H.qb(O.1b.Z,O.1L.1V)}},fz:S(){if(!O.1L){O.1L={}}if(!O.1L.2l("2z")){O.1L.2z="1V"}if(!O.1L.2l("1V")){O.1L.1V={}}O.1L.1V.ig=O.1v;O.1L.1V.ie=O.1A;O.1L.1V.r6=O.4i;O.1L.1V.1j=O.1s;O.1L.1V.fR=O.1H;O.1L.1V.r5=O.2e;if(O.1L.1V.2l("fT")){O.1L.1V.fT[0]=O.1S}13{O.1L.1V.fT=[O.1S,0,0]}if(O.1L.1V.2l("fS")){O.1L.1V.fS[0]=O.3q}13{O.1L.1V.fS=[O.3q,0,0]}O.1L.1V.lW=O.3x;O.1L.1V.e4=O.1r;O.1L.1V.e3=O.3t;O.1L.1V.lV=O.3l;O.1L.1V.lU=O.4G;O.1L.1V.lT=O.ih;O.1L.1V.9f=[];19(Q a=0;a<O.1Q.W;a++){Q d=O.1Q[a];O.1L.1V.9f.17({ig:d.1v,ie:d.1A,fR:d.1H,lS:d.ah})}O.1L.1V.bh=[];Q c=O.h9().ol();19(Q b=0;b<c;b++){Q e=O.h9().om(b);O.1L.1V.bh.17({yV:e.93,yU:e.51})}O.1L.1V.fQ=[];19(Q a=0;a<O.3E.W;a++){O.3E[a].fz();O.1L.1V.fQ.17(O.3E[a].1L)}O.1L.1V.lR=O.5z;if(O.1b!==R){P.V.5H.qa(O.1b.Z,O.1L.1V)}},yT:S(){O.7l();Y P.V.1k.5I(O.1i)},2s:S(){O.1i=O.7l();Q hH=P.V.1k.5I(O.1i);Q r4=gF.gE(hH);Q 9R={1v:O.1v,1A:O.1A,1c:O.1c,1X:O.1X,1i:r4};Q T=eV("X "+O.1t+"(9R)");T.r3();Y T},lQ:S(){6z(O.1s){1z P.V.1j.bV:1z P.V.1j.eM:1z P.V.1j.gt:1z P.V.1j.gu:1z P.V.1j.gv:1z P.V.1j.9A:1z P.V.1j.ao:1z P.V.1j.9B:1z P.V.1j.ak:Y O.18.W+9;6y:Y 9}},ic:S(a){if(a===1l||a===R){a=O.2F();if(O.1s===P.V.1j.4E){19(Q o=0,p=O.11.W;o<p;o++){a.2R(O.11[o].9T(O.1c,O.1b.Z))}}}if(a===R){Y}Q n=X P.U.1f(a.2c,a.1Z);Q m=X P.U.1f(a.21,a.1Z);Q h=X P.U.1f(a.2c,a.2h);Q f=X P.U.1f(a.21,a.2h);Q b=X P.U.1f((n.x+m.x)/2,n.y);Q e=X P.U.1f(n.x,(n.y+h.y)/2);Q d=X P.U.1f((h.x+f.x)/2,h.y);Q c=X P.U.1f(m.x,(m.y+f.y)/2);Q q=[m.2s(),b.2s(),n.2s(),c.2s(),e.2s(),f.2s(),d.2s(),h.2s()];Q g=1;19(Q l=0;l<q.W;l++){(q[l]).3A=g++}Y q},fP:S(){Q h={};h.49=[];h.5T=[];if(O.1s===P.V.1j.ce||O.1s===P.V.1j.4E){O.3z()}if(O.1s===P.V.1j.5j&&O.4M!==R){O.3z()}Q a=O.2F();if(O.1s===P.V.1j.4E){19(Q k=0;k<O.11.W;k++){a.2R(O.11[k].9T(O.1c,O.1b.Z))}}if(a===R){Y h}if(O.lQ()>9){if(O.1s===P.V.1j.aS){h.49.17(O.18[0]);Q f=O.1i.3o[0].2b;h.49.17(X P.U.1f(f[f.W-1].x,f[f.W-1].y))}13{h.49=O.18}19(Q e=0;e<h.49.W;e++){(h.49[e]).4U=e}}13{h.49=O.ic(a)}if(O.77()===1a){Y h}if(O.1s!==P.V.1j.8T&&O.1s!==P.V.1j.ao&&O.1s!==P.V.1j.9B&&O.1s!==P.V.1j.ak&&O.1s!==P.V.1j.ac&&O.1s!==P.V.1j.gV&&O.1s!==P.V.1j.ab&&O.1s!==P.V.1j.ad&&O.1s!==P.V.1j.dx&&O.1s!==P.V.1j.cc&&O.1s!==P.V.1j.8v&&O.1s!==P.V.1j.9A&&O.1s!==P.V.1j.eL&&O.1s!==P.V.1j.al&&!(O 1m P.U.9d)){Q g=X P.U.1f(a.2c,a.1Z);Q l=O.1c.3a(X P.2v(g.x,g.y));Q c=X P.3L(l.x+15,l.y-15);Q b=O.1c.6B(c);Q d=X P.U.1f(b.1U,b.1T);d.yS=1a;h.5T=[d]}Y h},2i:S(r,p){if(O.1s===P.V.1j.4E){if(!O.1b.Z.37){O.1b.Z.37=-r}13{O.1b.Z.37+=-r}}19(Q h=0,o=O.11.W;h<o;h++){if(O.11[h].1t!=="P.U.5q"){O.11[h].2i(r,p);if(O.11[h].47&&O.11[h].47!==R){O.11[h].47.2i(r,p)}}13{Q q=X P.U.1f(O.11[h].x,O.11[h].y);q.2i(r,p);O.11[h].x=q.x;O.11[h].y=q.y;if(!O.11[h].Z.37){O.11[h].Z.37=-r}13{O.11[h].Z.37+=-r}}}19(Q c=0;c<O.18.W;c++){O.18[c].2i(r,p)}19(Q b=0;b<O.1M.W;b++){O.1M[b].2i(r,p)}if(P.U.1N.5O(O.1v,O.1A)){19(Q f=0;f<O.1i.3o.W;f++){19(Q d=0;d<O.1i.3o[f].2b.W;d++){Q e=X P.U.1f(O.1i.3o[f].2b[d].x,O.1i.3o[f].2b[d].y);e.2i(r,p);O.1i.3o[f].2b[d].x=e.x;O.1i.3o[f].2b[d].y=e.y}}19(Q g=0;g<O.1i.1M.W;g++){Q a=X P.U.1f(O.1i.1M[g].x,O.1i.1M[g].y);a.2i(r,p);O.1i.1M[g].x=a.x;O.1i.1M[g].y=a.y}}},cE:S(b,e,a,o){Q g=O.lP(b,e,a);if(P.V.1k.5s(g.5r(),0)&&P.V.1k.5s(g.5F(),0)){Y}if(P.V.1k.5s(a.5r(),0)&&P.V.1k.5s(a.5F(),0)){Y}Q m=P.V.1k.5s(a.5r(),0)?0:g.5r()/a.5r();Q n=P.V.1k.5s(a.5F(),0)?0:g.5F()/a.5F();Q l=X P.U.1f((a.21+a.2c)/2,(a.1Z+a.2h)/2);Q h=X P.U.1f((g.21+g.2c)/2,(g.1Z+g.2h)/2);if(O.1s===P.V.1j.8T||O.1s===P.V.1j.ad||O.1s===P.V.1j.ac||O.1s===P.V.1j.ab){O.18[0].x=h.x+(o[0].x-l.x)*m;O.18[0].y=h.y+(o[0].y-l.y)*n;O.18[1].x=h.x+(o[1].x-l.x)*m;O.18[1].y=h.y+(o[1].y-l.y)*n}13{if(O.1s===P.V.1j.8Z){if(e===2||e===4||e===5||e===7){if(m===1){m=0}if(n===1){n=0}Q c=1n.5G(m*m+n*n);19(Q d=1;d<o.W;d++){O.18[d]=P.V.1k.lH(o[0],o[d],P.V.1k.2I(o[0],o[d])*c)}}13{Q k=1n.5G(m*m+n*n)/1n.5G(2);19(Q d=1;d<o.W;d++){O.18[d]=P.V.1k.lH(o[0],o[d],P.V.1k.2I(o[0],o[d])*k)}}}13{19(Q f=0;f<o.W;f++){O.18[f].x=h.x+(o[f].x-l.x)*m;O.18[f].y=h.y+(o[f].y-l.y)*n}}}},lP:S(b,f,c){Q a=O.1c.6B(b);if(c===R){c=X P.5B()}Q d=c.2s();Q e=X P.U.1f(a.1U,a.1T);6z(f){1z 1:d.1Z=e.y;d.21=e.x;1C;1z 3:d.1Z=e.y;d.2c=e.x;1C;1z 6:d.21=e.x;d.2h=e.y;1C;1z 8:d.2c=e.x;d.2h=e.y;1C;1z 2:d.1Z=e.y;1C;1z 4:d.21=e.x;1C;1z 5:d.2c=e.x;1C;1z 7:d.2h=e.y;1C;6y:1C}Y d},r2:S(c,b,d){Q a=X P.2v();6z(c){1z 1:a.1U=b.21+d.x;a.1T=b.1Z+d.y;1C;1z 3:a.1U=b.2c+d.x;a.1T=b.1Z+d.y;1C;1z 6:a.1U=b.21+d.x;a.1T=b.2h+d.y;1C;1z 8:a.1U=b.2c+d.x;a.1T=b.2h+d.y;1C;1z 2:a.1U=(b.2c+b.21)/2;a.1T=b.1Z+d.y;1C;1z 4:a.1U=b.21+d.x;a.1T=(b.1Z+b.2h)/2;1C;1z 5:a.1U=b.2c+d.x;a.1T=(b.1Z+b.2h)/2;1C;1z 7:a.1U=(b.2c+b.21)/2;a.1T=b.2h+d.y;1C;6y:1C}Y O.1c.3a(a)},r1:S(b,e,c){Q f={};Q a=O.1c.6B(b);Q d=X P.U.1f(a.1U,a.1T);6z(e){1z 1:f.x=d.x-c.21;f.y=d.y-c.1Z;1C;1z 3:f.x=d.x-c.2c;f.y=d.y-c.1Z;1C;1z 6:f.x=d.x-c.21;f.y=d.y-c.2h;1C;1z 8:f.x=d.x-c.2c;f.y=d.y-c.2h;1C;1z 2:f.x=0;f.y=d.y-c.1Z;1C;1z 4:f.x=d.x-c.21;f.y=0;1C;1z 5:f.x=d.x-c.2c;f.y=0;1C;1z 7:f.x=0;f.y=d.y-c.2h;1C;6y:1C}Y f},bD:S(){19(Q b=0;b<O.4a.W;b++){Q a=O.4a[b];if(R===a){1W}if(O.1b.Z.23==="3N"){a.1b.Z.23=O.1b.Z.23}a.1u();if(a.1b!==R&&a.1b.1g!==R){a.1b.1g.2m(a.1b)}}},bt:S(){Y 1d},6U:S(){},9U:S(h,g,j){Q a=0.qZ;Q d=P.2Z.3r().kA();if(j&&j.7T){a=j.7T}if(j&&j.r0){d=j.r0}Q b=d/qZ;Q f=g.x+h.x*b;Q e=g.y-h.y*b;Q c=O.1c.6B(X P.3L(f,e));Y X P.U.1f(c.1U,c.1T)},yR:S(c,f,b,d){if(O.1b.1g){if(!d){d="S"}Q e=X P.V.6d();P.2Z.3r(O.1c).6f().6c(e);Q a=X P.V.4d();a.3K=O.1h[i].1g.id;a.1r=O.1h[i].T.1r;if(d==="S"){a.3b=c;a.4h=f;a.4c=b}13{a.b4=c;a.jF=f;a.jE=b}e.1O.17(a)}},1t:"P.U.1N"});P.U.1N.lK=S(b,a){Y P.V.8F.lK(b,a)};P.U.1N.5O=S(b,a){if(0===b&&(a===P.V.1j.ao||a===P.V.1j.an||a===P.V.1j.am||a===P.V.1j.cd||a===P.V.1j.dC||a===P.V.1j.dB||a===P.V.1j.dA||a===P.V.1j.dz||a===P.V.1j.al||a===P.V.1j.8v||a===P.V.1j.9B||a===P.V.1j.ak||a===P.V.1j.ce||a===P.V.1j.dx||a===P.V.1j.cc||a===P.V.1j.9A||a===P.V.1j.f1||a===P.V.1j.gV||a===P.V.1j.ca)){Y 1d}13{Y P.V.8F.5O(b,a)}};P.U.1N.9e=S(b,a){Y P.V.8F.9e(b,a)};P.U.1N.e8=S(c,b,a){Q e=R;Q d=R;if(c===0){d=b}13{if(a.1i&&a.1i.1s){d=a.1i.1s}13{if(a.1s){d=a.1s}}}if(!a){a={}}a.1v=c;a.1A=b;6z(d){1z P.V.1j.ce:e=X P.U.3H(a);1C;1z P.V.1j.bT:e=X P.U.lC(a);1C;1z P.V.1j.cd:e=X P.U.e6(a);1C;1z P.V.1j.ao:e=X P.U.cI(a);1C;1z P.V.1j.am:e=X P.U.hT(a);1C;1z P.V.1j.an:e=X P.U.9d(a);1C;1z P.V.1j.dB:e=X P.U.lp(a);1C;1z P.V.1j.dA:e=X P.U.lo(a);1C;1z P.V.1j.dz:e=X P.U.ln(a);1C;1z P.V.1j.5j:e=X P.U.5a(a);1C;1z P.V.1j.dx:e=X P.U.4o(a);1C;1z P.V.1j.dC:e=X P.U.lB(a);1C;1z P.V.1j.al:e=X P.U.lg(a);1C;1z P.V.1j.8v:e=X P.U.e5(a);1C;1z P.V.1j.9B:e=X P.U.i0(a);1C;1z P.V.1j.ak:e=X P.U.hW(a);1C;1z P.V.1j.cc:e=X P.U.9S(a);1C;1z P.V.1j.ca:e=X P.U.by(a);1C;1z P.V.1j.9A:e=X P.U.3g(a);1C;1z P.V.1j.f1:e=X P.U.hG(a);1C;1z P.V.1j.ba:e=X P.U.fw(a);1C;6y:e=X P.U.6b(a)}Y e};P.U.1N.2X=S(f,b,c,j,a){Q e=X P.5N.4f();Q h=P.1o.5Z(P.U.1N.74);if(j&&j.1i){j.1i.yQ.9a=1a;h=P.V.5H.eW(j.1i);h.1y=P.U.1N.74.1y;P.1o.jN(h,P.U.1N.74)}if(h){e.Z=P.1o.2t(e.Z,h)}if(P.2Z.3r().dJ().hl){e.Z.1y=P.2Z.3r().dJ().1y}if(a&&a.2l("1y")){e.Z.1y=a.1y}j.1b=e;Q d=P.U.1N.e8(f,b,j);if(c){if(!P.1o.4g(c)){c=[c]}if(c.W<d.3V){Y}13{if(c.W>d.5w){c=c.53(0,d.5w)}}d.18=P.V.1k.3F(c)}e.T=d;Q g=P.2Z.3r(d.1c,d.1X);P.V.5H.oW(e,g.dJ());if(a){e.Z=P.1o.2t(e.Z,a)}d.1u();d.5J=1a;Y e};P.U.1N.74={23:"23",2L:"#5Q",5M:"cn",3M:"1.lO",1D:2,yP:"9L",yO:"9L",86:"#gC",85:"1.lO",4W:4,3O:1,2g:"#5Q",2k:"0.31",4z:"#5Q",5L:"1.lO",3Z:"6e",3B:"#9s",3p:"lc la",1y:"12",4u:1d,5W:"#5Q",5V:"oZ",69:1d,68:"#5Q",5E:1d,67:"#5Q",5D:0,5C:0,3e:0,3j:4F,2w:"lt",37:-0,cw:0,cv:0,9a:1a,9J:"6e",ck:0.31,cj:"#5Q",3y:0,3X:0,2M:0};P.U.2V=P.27(P.U.1N,{5w:0,3V:0,2H:R,yN:{},6S:5,6R:1,5J:1d,18:R,1M:R,2a:R,e9:R,4M:R,qV:S(){},at:S(b,a){},qU:S(){},qT:S(a){},qS:S(){},qR:S(a){},yM:S(){Y O.2H},lL:S(a){},ib:S(a){if(a){if(!(P.1o.4g(a))){a=[a]}O.2a=a;O.1u();if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("aD",{1h:[O.1b]})}}},7F:S(d){if(O.2A()){Y}if(d||d!==R){if(!(P.1o.4g(d))){d=[d]}Q a=d.53();if(d.W<O.3V){Y}13{if(d.W>O.5w){d=d.53(0,O.5w)}}O.18=[];O.18=P.V.1k.3F(d);if(O.1s===P.V.1j.ac||O.1s===P.V.1j.ad||O.1s===P.V.1j.ab){O.yL()}13{if(O.1s===P.V.1j.ao&&a[2]!==1l&&a[3]!==1l){O.55=a[2];O.56=a[3];Q c=O.1b.1g.4b(a[2]);Q b=O.1b.1g.4b(a[3]);if(c){c.T.5n.17(O)}if(b){b.T.5n.17(O)}O.1u()}13{O.1u()}}if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("aD",{1h:[O.1b]})}}},hP:S(){Y O.18},1I:S(a){O.18=[];O.1M=[];O.2a=[];O.e9=[];P.U.1N.1x.1I.1q(O,1K);if(O.2H===R){O.2H=P.V.4X.6e}},1B:S(){O.2H=R;O.3V=R;O.5w=R;O.18.W=0;O.18=R;O.1M.W=0;O.1M=R;O.2a.W=0;O.2a=R;P.U.1N.1x.1B.1q(O,1K)},6o:S(){O.e9=[];19(Q a=0;a<O.11.W;a++){O.e9.17(O.11[a])}O.11=[];O.1M=[]},8B:S(){O.qY();O.hR(O.e9,O.11);if(O.n1!==1a){O.3z();O.bD()}},hR:S(a,c){Q b=c.53();6T(a.W){if(b[0]!==1l&&a[0].1t===b[0].1t){b[0].id=a[0].id;if(a[0]1m P.U.2V){O.hR(a[0].11,b[0].11)}b.2S(0,1)}13{if(a[0]1m P.U.2V){O.i5(a[0].11)}13{O.i5(a[0])}}a.2S(0,1)}},i5:S(d){if(O.1b===R||O.1b.1g===R){Y}Q c=O.1b.1g;if(c.4Z 1m P.2N.57||c.4Z 1m P.2N.97){Y}S b(k,h){Q f;if(h){f=4R.79(k+"yK"+h);h++}13{f=4R.79(k);h=1}if(f){if(c.4Z.cB.yJ()===1a){19(Q g=0;g<c.4Z.cB.3w.W;g++){if(c.4Z.cB.3w[g]===f){c.4Z.cB.7e(f);b(k,g)}}}}}if(!P.1o.4g(d)){d=[d]}19(Q a=0;a<d.W;a++){Q e=R;if(d[a]1m P.U.5q){e=O.1b.id+"hF"+d[a].id+"yI";b(e);e=O.1b.id+"hF"+d[a].id+"l3";b(e);e=O.1b.id+"hF"+d[a].id+"hD";b(e)}13{e=d[a].id;b(e)}}},qK:S(){Q b=P.V.1k.3F(O.18);if(O.1s===P.V.1j.8T){b.2S(1,0,X P.U.1f(O.18[1].x,O.18[0].y));b.17(X P.U.1f(O.18[0].x,O.18[1].y));b.17(X P.U.1f(O.18[0].x,O.18[0].y))}Q a={2z:24,2P:1d,2b:b,Z:{2L:"#df",3M:1,1D:2,5M:"pw",aP:1a,9w:1a,6t:1a,2P:1d}};Q c=P.U.3h.4s(a.2z,a.2b,a.1H,0);c.Z=a.Z;O.11.17(c)},eF:S(){Y P.V.1k.3F(O.18)},2n:S(b,f){Q e,d,c,a;19(e=0,a=O.11.W;e<a;e++){if(O.11[e].1t!=="P.U.5q"){if(O.11[e].cL&&O.11[e].cL===1a){1W}O.11[e].2n(b,f);if(O.11[e].47&&O.11[e].47!==R){O.11[e].47.2n(b,f)}}13{O.11[e].x+=b;O.11[e].y+=f;if(O.11[e].3G!==R){O.11[e].3G.21+=b;O.11[e].3G.1Z+=f;O.11[e].3G.2c+=b;O.11[e].3G.2h+=f}}}19(e=0,a=O.18.W;e<a;e++){O.18[e].2n(b,f)}19(d=0,a=O.1M.W;d<a;d++){O.1M[d].2n(b,f)}19(c=0,a=O.3E.W;c<a;c++){O.3E[c].2n(b,f)}},fA:S(){P.U.1N.1x.fA.1q(O,1K);if(O.1L.1V!==R){O.2H=O.1L.1V.qX;if(O.1L.1V.6j){O.18=[];19(Q b=0;b<O.1L.1V.6j.W;b++){O.18.17(X P.U.1f(O.1L.1V.6j[b][0],O.1L.1V.6j[b][1]))}}if(O.1L.1V.9Y&&O.1L.1V.9Y.W!==0){O.2a=[];19(Q a=0;a<O.1L.1V.9Y.W;a++){O.2a.17(O.1L.1V.9Y[a])}}}},fz:S(){P.U.1N.1x.fz.1q(O,1K);if(!!O.1L.1V){O.1L.1V.qX=O.2H;O.1L.1V.yH=O.5J;if(!O.1L.1V.2l("9Y")){O.1L.1V.9Y=[];O.1L.1V.9Y=O.2a}13{19(Q b=0;b<O.2a.W;b++){if(O.1L.1V.9Y.W>b){O.1L.1V.9Y[b]=O.2a[b]}13{O.1L.1V.9Y.17(O.2a[b])}}}if(!O.1L.1V.2l("6j")){O.1L.1V.6j=[]}Q a=O.18.W;if(O.1s===P.V.1j.bV){a=3}19(Q b=0;b<a;b++){if(O.1L.1V.6j.W>b){O.1L.1V.6j[b][0]=O.18[b].x;O.1L.1V.6j[b][1]=O.18[b].y}13{O.1L.1V.6j.17([O.18[b].x,O.18[b].y,0])}}}},1t:"P.U.2V"});P.U.3H=X P.27(P.U.1N,{4j:R,bz:S(){Y O.3q},qu:S(){19(Q b=0;b<O.11.W;b++){Q a=O.11[b];if(R===a||R===a.Z){1W}if(O.1b===R||O.1b.Z===1l){Y}a.Z=P.1o.2t(a.Z,O.1b.Z)}if(O.1s===P.V.1j.am||O.1s===P.V.1j.an){O.1u()}},jH:S(c){if(O.2A()){Y}19(Q b=0;b<O.11.W;b++){Q a=O.11[b];if(R===a||R===a.Z){1W}a.Z.2L=c}O.1b.Z.2L=c},yG:S(){Q e="#5Q";Q d=R;Q a=1a;19(Q c=0;c<O.11.W;c++){Q b=O.11[c];if(R===b||R===b.Z){1W}if(R===d){d=b.Z.2L}13{if(d!==b.Z.2L){a=1d;1C}}}if(a===1a){e=d}Y e},yF:S(c){if(O.2A()){Y}19(Q b=0;b<O.11.W;b++){Q a=O.11[b];if(R===a||R===a.Z){1W}a.Z.1D=c}O.1b.Z.1D=c},yE:S(){Q e=2;Q d=0;Q c=1a;19(Q b=0;b<O.11.W;b++){Q a=O.11[b];if(R===a||R===a.Z){1W}if(0===d){d=a.Z.1D}13{if(d!==a.Z.1D){c=1d;1C}}}if(c===1a){e=d}Y e},aA:S(a){if(O.2A()){Y}if(!7A(a)){O.2i(a,O.4t);O.3q=a;O.1E()}},bF:S(){Y O.1S},bx:S(a){if(O.2A()){Y}if(!7A(a)){O.7T(a/O.1S);O.1S=a;O.1E()}},1I:S(a){P.U.1N.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.ce;O.1s=P.V.1j.ce;O.4i=P.6E("yD");if(O.4j===R){O.4j=[]}},1B:S(){P.U.1N.1x.1B.1q(O,1K)},1u:S(){if(!P.1o.4g(O.4j)){O.4j=[O.4j]}if(O.11.W===0){if(0===O.4j.W){Y}Q f=[];19(Q e=0;e<O.4j.W;e++){Q d=O.4b(O.4j[e]);if(d!==R){if(d.T 1m P.U.3H){f.17(d.T.11)}13{f.17(d)}d.1g.4D([d])}}19(Q b=0;b<f.W;b++){f[b].T.4M=O;O.11.17(f[b])}}if(O.yC===1a){Q g=O.2F();Q a=[];a.17(X P.U.1f(g.21,g.1Z));a.17(X P.U.1f(g.21,g.2h));a.17(X P.U.1f(g.2c,g.2h));a.17(X P.U.1f(g.2c,g.1Z));Q c=P.U.1N.2X(0,24,a,{1c:O.1c});c.qW=1a;c.Z.5M="kW";O.11.17(c)}13{19(e=0;e<O.11.W;){if(O.11[e].qW===1a){O.11.2S(e,1)}13{e++}}}O.3z()},gM:S(){if(O.2A()){Y}if(O.1b===R||O.1b.1g===R){Y O.11}13{19(Q a=0;a<O.11.W;a++){O.11[a].T.4M=R}O.1b.1g.5t(O.11);if(O.3c===1a){if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("7N",{1h:O.11})}}}},6U:S(){19(Q b=0,a=O.11.W;b<a;b++){O.11[b].T.6U()}O.3z()},4B:S(){P.U.1N.1x.4B.1q(O,1K);if(!!O.1i&&O.1i.cC){O.4j=O.1i.4j;19(Q c=0;c<O.1i.cC.W;c++){Q a=O.1i.cC[c];Q b=P.U.1N.2X(a.1v,a.1A,R,{1i:a,1c:O.1c});b.T.4M=O;O.11.17(b)}}},4Q:S(){P.U.1N.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.4j=O.4j;O.1i.cC=[];19(Q a=0;a<O.11.W;a++){O.1i.cC.17(O.11[a].T.7l())}}},7B:S(){O.3G=R;Q d=X P.5B();Q c=O.11;if(c){19(Q b=0,a=c.W;b<a;b++){if(c[b].T.1s!==P.V.1j.4E){d.2R(c[b].T.2F())}13{d.2R(c[b].T.11[0].9T(O.1c,c[b].Z))}}}if(d.21!=R&&d.2h!=R&&d.2c!=R&&d.1Z!=R){O.az(d)}},2n:S(b,d){if(O.2A()){Y}19(Q c=0,a=O.11.W;c<a;c++){O.11[c].T.2n(b,d)}if(O.3G!==R){O.3G.21+=b;O.3G.1Z+=d;O.3G.2c+=b;O.3G.2h+=d}},2i:S(b,d){19(Q c=0,a=O.11.W;c<a;c++){O.11[c].T.2i(b,d);O.11[c].T.3q+=b}},7T:S(d){19(Q b=0,a=O.11.W;b<a;b++){if(O.11[b].T.1t==="P.U.3H"){Q c=O.11[b].T.2F();O.11[b].T.4t=X P.U.1f((c.21+c.2c)/2,(c.1Z+c.2h)/2);O.11[b].T.7T(d)}13{O.1b.T.3z();if(O.11[b].T.3E.W!==0){O.11[b].T.59(d,O.4t);O.11[b].T.1u()}13{O.11[b].T.59(d,O.4t)}}}},1t:"P.U.3H"});P.U.5a=X P.27(P.U.2V,{6h:R,5K:R,2e:R,ej:R,4L:-1,3d:R,2u:R,2y:R,bE:R,4k:7,9K:60,5n:R,6P:R,6V:1d,cM:R,5y:0,5x:0,5f:1a,yB:S(a){if(O.2A()){Y}if(O.5f!==a){if(a.yA===yz){O.5f=a}if(O.5f===1d){O.2y.x=O.2u.w/O.3d.w;O.2y.y=O.2u.h/O.3d.h}13{if(O.5f===1a){if(O.2y.y!==1l){O.2y.x=O.2y.x<O.2y.y?O.2y.y:O.2y.x}O.1u();O.1E()}}}},yy:S(){Y O.5f},q9:S(){Y O.4k},q8:S(a){if(O.2A()){Y}if(O.4k!==a){O.4k=a;if(O.1H.W!==0){O.i6()}}},yx:S(a){if(O.2A()){Y}if(O.6V===a){Y}O.6V=a;if(O.6V===1d){O.5y=0;O.5x=0}O.1u();O.1E()},yw:S(){Y O.6V},yv:S(a){if(O.2A()){Y}if(O.cM!==a){O.cM=a;if(O.6V){O.1u();O.1E()}}},yu:S(){Y O.cM},qV:S(){Y O.2u},at:S(e,a){if(O.2A()){Y}if(0===O.3d.w||0===O.3d.h){O.2y.x=1}13{if(O.2u===R){O.2u=X P.eD(0,0)}Q d=e/O.1S/O.3d.w;Q c=a/O.1S/O.3d.h;if(O.5f===1a){if(O.2y.x!==d){O.2y.x=d}13{if(O.2y.x!==c){O.2y.x=c}}}13{O.2y={x:d,y:c}}}if(O.5f===1d){O.2u.w=d*O.1S*O.3d.w;O.2u.h=c*O.1S*O.3d.h}13{O.2u.w=O.2y.x*O.1S*O.3d.w;O.2u.h=O.2y.x*O.1S*O.3d.h}if(O.1b!==R){Q b;if(O.5f===1d){b=O.2y.x<O.2y.y?O.2y.x:O.2y.y}13{b=O.2y.x}if(O.1y===1l){O.1y=O.1b.Z.1y/O.1S/b}13{O.1b.Z.1y=O.1y*O.1S*b}O.7g=O.1b.Z.1y}O.1u();O.1E()},aA:S(b){if(O.2A()){Y}if(!7A(b)){Q e=(b-O.3q)*1n.2r/2O;O.3q=b;19(Q c=0,a=O.3E.W;c<a;c++){19(Q d=0;d<O.3E[c].18.W;d++){O.3E[c].18[d]=P.V.1k.jl(O.18[0],e,O.3E[c].18[d])}}O.1u();O.1E()}},bF:S(){if(O.5f===1a){Y O.2y.x}13{Y O.2y={x:O.2u.w/O.3d.w,y:O.2u.h/O.3d.h}}},bx:S(b,a){if(O.2A()){Y}if(!7A(b)){if(O.5f===1a){O.2y.x=b;O.2u.w=O.2y.x*O.1S*O.3d.w;O.2u.h=O.2y.x*O.1S*O.3d.h}13{O.2u.w=b*O.3d.w;O.2u.h=a*O.3d.h}O.1b.Z.1y=O.1y*O.1S*b;O.7g=O.1b.Z.1y}O.1u();O.1E()},yt:S(){Y O.1i.ys},qU:S(){Y O.6h},qT:S(d){if(O.2A()){Y}S a(f){O.1i.3o=f.2B.3o;O.6h=f.2B.6h;O.1u();O.2m();O.1E()}S e(f){Y}Q b=X P.1P.7M(O.1X);b.1p.on({4n:a,4m:e,3R:O});Q c=X P.1P.6O();c.1v=O.1v;c.1A=O.1A;c.6h=d;c.5K=O.5K;c.2H=O.2H;b.4P(c,O.1Y)},qS:S(){Y O.5K},qR:S(d){if(O.2A()){Y}S a(f){O.1i.3o=f.2B.3o;O.5K=f.2B.5K;O.1u();O.2m();O.1E()}S e(f){Y}Q b=X P.1P.7M(O.1X);b.1p.on({4n:a,4m:e,3R:O});Q c=X P.1P.6O();c.1v=O.1v;c.1A=O.1A;c.5K=d;c.6h=O.6h;c.2H=O.2H;b.4P(c,O.1Y)},lL:S(e){if(O.2A()){Y}S a(f){O.1i.3o=f.2B.3o;O.2H=f.2B.2H;O.1u();O.2m();O.1E()}S d(f){Y}Q b=X P.1P.7M(O.1X);b.1p.on({4n:a,4m:d,3R:O});Q c=X P.1P.6O();c.1v=O.1v;c.1A=O.1A;c.5K=O.5K;c.6h=O.6h;c.2H=e;b.4P(c,O.1Y)},qQ:S(){Y O.1i.qQ},fF:S(a){if(O.2A()){Y}if(O.2e!==a){O.2e=a;if(O.1H.qv!==0){O.i6()}}},1I:S(a){O.5n=[];O.6P=[];O.2u=X P.eD(0,0);O.bq=P.2Z.3r().kA();if(O.2y===R){O.2y={}}P.U.2V.1x.1I.1q(O,1K);O.3V=1;O.5w=1;if(O.cM===R){O.cM=P.V.jS.jR}if(O.5y===R){O.5y=0}if(O.5x===R){O.5x=0}if(O.3l){O.1S*=O.3x/O.1c.3m();if(O.98!==1l){O.98*=O.3x/O.1c.3m()}}O.3x=O.1c.3m();if(O.98===1l){O.98=O.1S}if(O.1S>O.6S){O.1S=O.6S}13{if(O.1S<O.6R){O.1S=O.6R}}if(O.2u===R||(O.2u.w===0&&O.2u.h===0)){O.2u.w=O.3d.w;O.2u.h=O.3d.h}if(O.2y.x===R||O.2y.x===1l){Q c=O.3d.w;Q b=O.2u.w;if(O.3d.w<O.3d.h){c=O.3d.h;b=O.2u.h}O.2y.x=b/c;if(O.5f===1a){O.2u.w=O.2y.x*O.1S*O.3d.w;O.2u.h=O.2y.x*O.1S*O.3d.h}13{O.2u.w=O.2y.x*O.1S*O.3d.w;O.2u.h=O.2y.y*O.1S*O.3d.h}if(O.1y===1l&&O.1b!==R){if(O.1b.Z.1y===1l){O.1b.Z.1y=12}O.1y=O.1b.Z.1y/O.2y.x}}},1B:S(){O.6h=R;O.5K=R;O.4L=-1;O.2e=R;O.3d=R;O.2u=R;O.bE=R;O.5y=R;O.5x=R;if(R!==O.5n&&1l!==O.5n){19(Q a=0;a<O.5n.W;a++){if(R===O.5n[a]){1W}if(O.5n[a].55===O.1r){O.5n[a].55=R}if(O.5n[a].56===O.1r){O.5n[a].56=R}}}O.5n=[];O.6P=[];P.U.2V.1x.1B.1q(O,1K)},1u:S(){if(O.18!==R&&O.18.W!==0){if(O.4L!==-1&&O.11.W>O.4L){O.ia={};if(O.11[O.4L]&&O.11[O.4L].Z){O.ia=P.1o.2t(O.ia,O.11[O.4L].Z)}}if(O.18.W===1){O.6o();O.ej=[];Q a=P.V.5H.qG(O.1i);O.11=O.qN(a);O.qP();O.8B();O.4L=-1;O.i6(O.ia)}}},qP:S(b){Q d,j,k,e,o,p;if(O.6V){if(O.cM===P.V.jS.jR){d=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));j=X P.3L(d.x+O.5y,d.y+O.5x);k=O.1c.2G(j);e=X P.U.1f(k.1U,k.1T);o=[O.18[0],e];p=P.U.3h.4s(24,o);p.Z={2P:1d,9w:1a};p.cL=1a;if(b){p.id=b}O.11.17(p)}13{d=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));j=X P.3L(d.x+O.5y,d.y+O.5x);k=O.1c.2G(j);e=X P.U.1f(k.1U,k.1T);Q m=P.V.1k.7k(O.18[0],e);Q n=m*2O/1n.2r;Q f,c,l,h,g,a;if((n>45&&n<hs)||(n>hr&&n<hq)){l=X P.3L(j.x-O.1b.Z.1D/2,j.y);h=X P.3L(j.x+O.1b.Z.1D/2,j.y);g=O.1c.2G(l);a=O.1c.2G(h);f=X P.U.1f(g.1U,g.1T);c=X P.U.1f(a.1U,a.1T)}13{l=X P.3L(j.x,j.y-O.1b.Z.1D/2);h=X P.3L(j.x,j.y+O.1b.Z.1D/2);g=O.1c.2G(l);a=O.1c.2G(h);f=X P.U.1f(g.1U,g.1T);c=X P.U.1f(a.1U,a.1T)}o=[O.18[0],f,c];p=P.U.3h.4s(32,o);p.Z={2P:1d,6t:1a,1D:0,8M:1a,2q:1a};p.cL=1a;if(b){p.id=b}O.11.17(p)}}},6U:S(){if(O.8h!==1l&&O.8h!==O.1b.Z.1D){O.1D=O.1b.Z.1D;O.8h=O.1b.Z.1D}if(O.7g!==1l&&O.7g!==O.1b.Z.1y){O.1y=O.1b.Z.1y/O.1S/O.2y;O.7g=O.1b.Z.1y}if(O.i8!==1l&&O.i8!==O.5y){O.fO=O.5y/O.1S;O.i8=O.5y}if(O.i7!==1l&&O.i7!==O.5x){O.fN=O.5x/O.1S;O.i7=O.5x}if(O.3x!==O.1c.3m()){if(O.5J===1d){O.3x=O.1c.3m();Y}if(!O.3l||O.3l===1d){19(Q h=0;h<O.4a.W;h++){O.4a[h].3x=O.1c.3m()}O.i9=O.1S;Q o=O.1c.3m()/O.3x;Q s=O.18[0];O.i4(o,s)}13{if(O.98===1l){O.98=O.1S}if(O.9I===1l){O.9I=O.1S}O.98*=O.3x/O.1c.3m();if(O.98>O.6S){O.1S=O.6S}13{if(O.98<O.6R){O.1S=O.6R}13{O.1S=O.98}}if(O.1S!==O.9I){Q p=O.2y.x*O.1S;if(O.5f===1a){O.2u.w=p*O.3d.w;O.2u.h=p*O.3d.h}13{if(O.9I){O.2u.w=O.2y.x*O.1S*O.3d.w/O.9I;O.2u.h=O.2y.y*O.1S*O.3d.h/O.9I}13{O.2u.w=O.2y.x*O.1S*O.3d.w;O.2u.h=O.2y.y*O.1S*O.3d.h}}if(O.qO===1l){O.qO=O.4k}if(O.1D===1l){O.1D=O.1b.Z.1D}Q f=(O.1D/0.5)*5;if(O.2u.w<f&&O.2u.h<f){O.ei=1a;Q d=O.2u.w>O.2u.h?O.2u.w:O.2u.h;O.1b.Z.1D=1n.5X(d/10);if(O.1b.Z.1D>=O.1D){O.1b.Z.1D=O.1D}if(O.1b.Z.1D<=0.5){O.1b.Z.1D=0.5}}13{if(O.ei===1a){O.ei=1d}O.1b.Z.1D=O.1D}O.8h=O.1b.Z.1D;O.1b.Z.1y=O.1y*p;O.7g=O.1b.Z.1y;if(O.6V===1a&&(O.5y!==0||O.5x!==0)){if(O.i9===1l){O.i9=O.1S}if(O.fO===1l){O.fO=O.5y}if(O.fN===1l){O.fN=O.5x}if(O.6V===1a&&O.1S<=O.i9){O.5y=O.fO*O.1S;O.5x=O.fN*O.1S}13{O.5y=O.fO;O.5x=O.fN}O.i8=O.5y;O.i7=O.5x}if(O.1H.W!==0&&O.2e===8){Q q;if(O.5f===1a){q=O.bE.7T(O.1S*O.2y.x,O.4t)}13{q=O.lN()}Q j=q.5r()*O.bq/25.4/10;Q g=q.5F()*O.bq/25.4/10;O.1b.Z.4N=j;O.1b.Z.4O=g;O.11[O.4L].Z.4N=O.1b.Z.4N;O.11[O.4L].Z.4O=O.1b.Z.4O}if(O.ej.W!==0){19(Q a=O.ej.W;a--;){Q l=O.ej[a];O.11[l].Z.1y=p*(O.11[l].Z.1y/O.9I/O.2y)}}19(Q e=0;e<O.4a.W;e++){Q c=O.4a[e];if(R===c){1W}c.1u();if(c.1b!==R&&c.1b.1g!==R){c.1b.1g.2m(c.1b)}}Q n=O.1S/O.9I;Q m=O.3x/O.1c.3m();if(n!==m){O.i4(n*(1/m),O.18[0])}13{19(Q b=0;b<O.11.W;b++){if(O.11[b].cL===1a){}}}O.9I=O.1S}13{Q r=O.1c.3m()/O.3x;O.i4(r,O.18[0])}}O.3x=O.1c.3m()}},2n:S(h,g){if(O.2A()){Y}if(O.2l("4M")&&O.4M!==R){if(O.4M.1s===P.V.1j.ca&&O.3c===1a){Y}}if(O.6V===1d){P.U.2V.1x.2n.1q(O,1K);O.3z()}13{Q f=X P.U.1f(O.18[0].x+h,O.18[0].y+g);Q a=O.1c.3a(X P.2v(f.x,f.y));Q c=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));O.5y+=a.x-c.x;O.5x+=a.y-c.y;O.1u()}if(R!==O.5n&&0<O.5n.W){19(Q e=0;e<O.5n.W;e++){Q b=O.5n[e];if(R===b){1W}if(b 1m P.U.cI){b.1u()}b.2m()}}if(R!==O.6P&&0<O.6P.W){19(Q e=0;e<O.6P.W;e++){Q k=O.6P[e];if(R===k){1W}if(k 1m P.U.9d){19(Q d=0;d<k.11.W;d++){if(k.11[d].T.1s===P.V.1j.8T){k.11[d].T.18[2].x=O.18[0].x;k.11[d].T.18[2].y=O.18[0].y;k.11[d].T.1u();k.11[d].T.2m()}}}}}O.bD()},qN:S(c){Q e=[];Q f=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));if(O.6V===1a){f.x+=O.5y;f.y+=O.5x}if(O.5f===1a){Q h=O.2y.x*O.1S}19(Q d=0;d<c.W;d++){Q b=c[d];if(O.2H===0&&b.2P===1a){1W}if(b.2z===P.V.1j.4E){b.Z.1y=h*(b.Z.1y/10);if(b.Z.1y<6){b.Z.1y=6}b.Z.37+=-O.3q;O.ej.17(d)}if(b.yr!=R){if(b.2z===P.V.1j.eJ||b.2z===P.V.1j.gw){if(b.2z===P.V.1j.eJ){b.2b=P.V.1k.qM(b.2b)}13{b.2b=P.V.1k.qM(b.2b)}if(b.yq&&b.2b[0]!==b.2b[b.2b.W-1]){b.2b.17(b.2b[0])}}13{if(b.2z===P.V.1j.gx){b.2b=P.V.3h.dU(b.2z,b.2b)}}}19(Q a=0;a<b.2b.W;a++){b.2b[a].x-=O.4t.x;b.2b[a].y-=O.4t.y;if(O.5f===1a){b.2b[a].x=b.2b[a].x*h;b.2b[a].y=b.2b[a].y*h}13{b.2b[a].x=b.2b[a].x*O.2u.w/O.3d.w;b.2b[a].y=b.2b[a].y*O.2u.h/O.3d.h}b.2b[a].2i(O.3q,X P.U.1f(0,0));b.2b[a]=O.9U(b.2b[a],f)}Q g=P.U.3h.4s(b.2z,b.2b,b.1H,O.3q,1d);if(b.2z===P.V.1j.4E){g.3x=O.1c.3m()}g.Z=b.Z;e.17(g)}Y e},lh:S(){if(O.3G==R){O.7B(1a)}Y O.3G},7B:S(b){O.3G=R;Q e=X P.5B();Q d=O.11;if(d){19(Q c=0,a=d.W;c<a;c++){if((d[c].cL&&d[c].cL===1a)||c===O.4L){1W}e.2R(d[c].2F())}}if(b&&b===1a&&O.4L!==-1&&O.1b!==R){P.V.1k.fJ(O.11[O.4L].Z,O.1b.Z);e.2R(O.11[O.4L].9T(O.1c,O.11[O.4L].Z))}if(e.21!=R&&e.2h!=R&&e.2c!=R&&e.1Z!=R){O.az(e)}},lN:S(){Q b=O.2y.x;Q h=O.2y.y;Q a,g;if(O.4t 1m P.U.1f){a=O.4t.x;g=O.4t.y}13{if(O.4t 1m P.2v){a=O.4t.1U;g=O.4t.1T}}Q f=(O.bE.21-a)*b+a;Q c=(O.bE.2h-g)*h+g;Q d=(O.bE.2c-a)*b+a;Q e=(O.bE.1Z-g)*h+g;Y X P.5B(f,c,d,e)},i6:S(c){O.1H=P.V.1k.pv(O.1H);Q a=O.2F();if(O.1H&&O.1H!==R&&O.1H.W!==0&&a!==R){if(!c&&O.1b){c=P.1o.2t(c,O.1b.Z)}13{if(!c){c=P.V.5H.eW(O.1i)}}Q b=O.4k===0?0:O.4k*O.2y.x||O.4k*O.1S;Q q=R;Q k,d,n;if(O.2e===0){c.2w="rb";k=X P.2v(a.21,a.1Z);d=O.1c.3a(k);d.x-=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===1){c.2w="rt";k=X P.2v(a.21,a.2h);d=O.1c.3a(k);d.x-=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===2){c.2w="lb";k=X P.2v(a.2c,a.1Z);d=O.1c.3a(k);d.x+=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===3){c.2w="lt";k=X P.2v(a.2c,a.2h);d=O.1c.3a(k);d.x+=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===4){c.2w="cb";k=X P.2v((a.21+a.2c)/2,a.1Z);d=O.1c.3a(k);d.y-=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===5){c.2w="ct";k=X P.2v((a.21+a.2c)/2,a.2h);d=O.1c.3a(k);d.y+=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===6){c.2w="rm";k=X P.2v(a.21,(a.1Z+a.2h)/2);d=O.1c.3a(k);d.x-=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===7){c.2w="lm";k=X P.2v(a.2c,(a.1Z+a.2h)/2);d=O.1c.3a(k);d.x+=b;n=O.1c.2G(d);q=X P.U.1f(n.1U,n.1T)}13{if(O.2e===8){Q p;if(O.5f===1d){p=O.lN()}13{p=O.bE.7T(O.1S*O.2y.x,O.4t)}Q o=X P.U.1f((p.21+p.2c)/2,(p.1Z+p.2h)/2);if(O.5K){Q l=P.V.1k.l7(o,X P.U.1f(O.4t.x,4F),X P.U.1f(O.4t.x,O.4t.y));o.2i(2O,l)}o.x-=O.4t.x;o.y-=O.4t.y;o.2i(O.3q,X P.U.1f(0,0));Q e=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));if(O.6V===1a){e.x+=O.5y;e.y+=O.5x}Q j=p.5r()*O.bq/25.4/10;Q h=p.5F()*O.bq/25.4/10;q=O.9U(o,e);c.d1=-O.3q;c.2w="cm";c.4N=j;c.4O=h;c.bK=1;if(O.1b!==R){c.3B=O.1b.Z.3B;c.3p=O.1b.Z.3p;c.3J=O.1b.Z.3J;c.3Y=O.1b.Z.3Y}c.a5=O.qL(O.1H,c)}}}}}}}}}if(q){Q g=R;if(O.2e===8){g=X P.U.1f(q.x,q.y)}13{Q r=X P.U.3h();g=r.lM([q],O.1H);if(O.2e!==8&&O.1b!==R){if(O.5f===1d){Q m=O.2y.x<O.2y.y?O.2y.x:O.2y.y}if(O.7g!==1l&&O.7g!==O.1b.Z.1y){if(O.5f===1a){O.1y=O.1b.Z.1y/O.1S/O.2y.x}13{O.1y=O.1b.Z.1y/O.1S/m}O.7g=O.1b.Z.1y}if(O.1y!==1l){if(O.5f===1a){O.1b.Z.1y=O.1y*O.1S*O.2y.x}13{O.1b.Z.1y=O.1y*O.1S*m}O.7g=O.1b.Z.1y}13{if(O.5f===1a){O.1y=O.1b.Z.1y/O.1S/O.2y}13{O.1y=O.1b.Z.1y/O.1S/m}O.7g=O.1b.Z.1y}c.1y=O.1b.Z.1y;c.6K=1d;c.37=0}}g.Z=c;if(O.4L===-1){O.4L=O.11.W;O.11.17(g)}13{if(O.11[O.4L].1t===g.1t){Q f=O.11[O.4L].id;O.11[O.4L]=g;O.11[O.4L].id=f}13{O.i5(O.11[O.4L]);O.11[O.4L]=g}}}}},2i:S(b,e){19(Q d=0,a=O.11.W;d<a;d++){if(O.11[d].1t==="P.U.1f"){O.11[d].2i(b,e);O.11[d].Z.d1+=-b}13{if(O.11[d].1t==="P.U.5q"){Q c=X P.U.1f(O.11[d].x,O.11[d].y);c.2i(b,e);O.11[d].x=c.x;O.11[d].y=c.y;if(!O.11[d].Z.37){O.11[d].Z.37=-b}13{O.11[d].Z.37+=-b}}13{O.11[d].2i(b,e);if(O.11[d].47&&O.11[d].47!==R){O.11[d].47.2i(b,O.4t)}}}}O.3q+=b;O.18[0].2i(b,e)},59:S(e,d){19(Q c=0,a=O.11.W;c<a;c++){if(O.11[c].1t==="P.U.1f"){O.11[c].59(e,d);O.11[c].Z.4N*=e;O.11[c].Z.4O*=e}13{if(O.11[c].1t==="P.U.5q"){Q b=X P.U.1f(O.11[c].x,O.11[c].y);b.59(e,d);O.11[c].x=b.x;O.11[c].y=b.y;if(!O.11[c].Z.1y){O.11[c].Z.1y=12*e}13{O.11[c].Z.1y*=e}}13{O.11[c].59(e,d);if(O.11[c].47&&O.11[c].47!==R){O.11[c].47.59(e,d)}}}}if(O.18.W>0){O.18[0].59(e,d)}if(O.5f===1a){O.2y.x*=e;O.2u.w=O.2y.x*O.1S*O.3d.w;O.2u.h=O.2y.x*O.1S*O.3d.h;O.1b.Z.1y=O.1y*O.1S*O.2y.x}13{O.2u.w=O.2y.x*O.1S*O.3d.w;O.2u.h=O.2y.y*O.1S*O.3d.h;O.1b.Z.1y=O.1y*O.1S*O.2y.x}O.7g=O.1b.Z.1y},qL:S(g,a){Q o=O.9K;a.1y=o;a.2w="cm";Q j=4R.kL("1R");Q b=P.V.1k.dY(a,g);j.3U=b+20;j.5m=o+10;4R.fn.5u(j);Q d=j.dR("2d");d.7i=a.3B;d.7z=a.58||1;Q f=[a.3Y?a.3Y:"6s","6s",a.3J?a.3J:"6s",a.1y?X gk(a.1y)+"px":"a8",a.3p?a.3p:"d7-d6"].8m(" ");if(d.9q){d.9r=f;d.d5="84";d.gj="ey";d.9q(g,j.3U/2,j.5m/2)}13{if(d.dS){d.kN=f;Q c=P.2N.57.9P[a.2w[0]];if(c==R){c=-0.5}Q l=P.2N.57.9P[a.2w[1]];if(l==R){l=-0.5}Q n=[0,0];Q m=d.dT("xx");n[1]+=m*(1+(l*yp));Q k=n[0]+(c*d.dT(g));Q h=n[1]+(m);d.6I(k,h);d.dS(g);d.6I(-k,-h)}}Q e=j.yo("cK/gZ","cK/yn-ym");4R.fn.7e(j);Y e},i4:S(h,e){Q g=e.x;Q f=e.y;19(Q c=0,a=O.11.W;c<a;c++){if(O.11[c].1t==="P.U.1f"){O.11[c].59(h,e);O.11[c].3G=X P.5B(O.11[c].x,O.11[c].y,O.11[c].x,O.11[c].y)}13{if(O.11[c].1t==="P.U.5q"){Q b=X P.U.1f(O.11[c].x,O.11[c].y);b.59(h,e);O.11[c].x=b.x;O.11[c].y=b.y;O.11[c].3G=X P.5B(O.11[c].x,O.11[c].y,O.11[c].x,O.11[c].y)}13{Q d=O.11[c].2F();if(O.5f===1a){d=O.11[c].2F()}13{d=O.11[c].3G.7T(O.1S,e)}O.11[c].59(h,e);O.11[c].3G=X P.5B();O.11[c].3G.21=(d.21-g)*h+g;O.11[c].3G.2h=(d.2h-f)*h+f;O.11[c].3G.2c=(d.2c-g)*h+g;O.11[c].3G.1Z=(d.1Z-f)*h+f}}}if(O.18.W>0){O.18[0].59(h,e)}if(O.3G!==R){O.3G.21=(O.3G.21-g)*h+g;O.3G.2h=(O.3G.2h-f)*h+f;O.3G.2c=(O.3G.2c-g)*h+g;O.3G.1Z=(O.3G.1Z-f)*h+f}O.bD()},1t:"P.U.5a"});P.U.6b=X P.27(P.U.2V,{bu:R,aC:R,ef:0,ed:0,ee:0,eg:1d,8E:R,eh:1d,4p:0,6q:1a,9b:1d,8f:1d,8A:1d,9c:0,lL:S(a){if(O.2A()){Y}O.2H=a;O.bu=O.1b.Z.4W/2+O.1b.Z.1D/2;O.1u()},1I:S(b){P.U.2V.1x.1I.1q(O,1K);if(O.1v===0&&O.1s===R){O.1s=O.1A}13{if(O.1s===R){O.1s=P.V.1j.k2}}if(1l===b.3l||R===b.3l){O.3l=1a}if(1l===b.9a||R===b.9a){O.9a=1d}if(O.aC===R){O.aC=1d}if(O.1v===0&&O.1s===P.V.1j.gX){if(O.fM!==R&&O.fM!==1l){O.2a[1]=O.fM;3k O.fM}if(O.fL!==R&&O.fL!==1l){O.2a[2]=O.fL;3k O.fL}}13{if(O.1v===0&&O.1s===P.V.1j.gW){if(O.4K!=R&&O.4K.W>0){19(Q a in O.4K){O.2a[a]=O.4K[a]}3k O.4K}}13{if(O.1v===0&&O.1s===P.V.1j.8Z){if(O.39!==R&&O.39!==1l){O.2a[0]=O.39;3k O.39}if(O.33!==R&&O.33!==1l){O.2a[1]=O.33;3k O.33}}}}if(!P.U.1N.5O(O.1v,O.1A)){O.3V=P.V.8F.yl(O.1v,O.1A);O.5w=P.V.8F.yk(O.1v,O.1A);if(O.1Q.W===0){O.1Q=P.V.8F.lK(O.1v,O.1A)}if(R!==O.Z&&O.5J===1d){O.1b.Z=P.V.1k.2t(O.1b.Z,P.V.8F.dJ(O.1v,O.1A))}O.4l=P.V.8F.yj(O);O.2a=O.4l.2a;if(O.1v===0&&O.1s===P.V.1j.bT){if(O.2e!==R&&O.2e!==1l){O.2a[1]=O.2e;3k O.2e}}if(O.1v===0&&(O.1s===P.V.1j.ac||O.1s===P.V.1j.ab)){O.8E=O.4l.8E}}},1B:S(){O.bu=R;P.U.2V.1x.1B.1q(O,1K)},1u:S(){O.6o();if((!O.1H||O.1H===""||O.1H==="???")&&O.1s===P.V.1j.4E){O.1H=P.6E("1H")}if(O.1H.W!==0&&O.3q!==O.1b.Z.37){O.1b.Z.37=-O.3q}if(O.18.W>=O.3V){if(P.U.1N.5O(O.1v,O.1A)){O.qH()}13{if(O.4l===R){O.qJ()}13{O.qz()}}O.qI();O.8B()}13{if(O.18.W>=2&&O.18.W<O.3V){O.qK()}}},qx:S(c){19(Q b in c){Q a=c[b];Q d=P.U.3h.4s(a.2z,P.V.1k.3F(a.2b),a.1H,0,a.lI);if(!d){1W}13{if(O.1s===P.V.1j.8Z&&d 1m P.U.4T){d.11[0].11=P.V.1k.3F(a.2b);if(!d.11[0].11[0].lJ(d.11[0].11[d.11[0].11.W-1])){d.11[0].11.17(d.11[0].11[0])}}}d.Z=a.Z;O.11.17(d);O.fK(d)}},qJ:S(){if((!O.1H||O.1H===""||O.1H==="???")&&O.1s===P.V.1j.4E){O.1H=P.6E("1H")}Q a={1H:O.1H,2z:O.1s,2P:1d,2b:P.V.1k.3F(O.18),Z:{2L:"#5Q",3M:1,1D:1,3O:1,2g:"#5Q",2k:0.31,1y:"yi",aP:1d,9w:1d,6t:1d,8M:1d,aN:1d,2P:1d}};if(a.2z===P.V.1j.bU){a.2b.17(a.2b[0])}Q d=P.U.3h.4s(a.2z,a.2b,a.1H,0,O.lI);if(O.1s===P.V.1j.eK){O.18[0].x=a.2b[0].x;O.18[0].y=a.2b[0].y}13{if(O.1s===P.V.1j.bV){O.18[2].x=a.2b[2].x;O.18[2].y=a.2b[2].y;Q c,e;if(O.18.W===3){c=X P.U.1f(O.18[0].x*2-O.18[1].x,O.18[0].y*2-O.18[1].y);O.18.17(c);e=X P.U.1f(O.18[0].x*2-O.18[2].x,O.18[0].y*2-O.18[2].y);O.18.17(e)}13{if(O.18.W===5){e=X P.U.1f(O.18[0].x*2-O.18[2].x,O.18[0].y*2-O.18[2].y);O.18[4].x=e.x;O.18[4].y=e.y}}}}if(d!==R){if(O.1s===P.V.1j.eK){19(Q b=0;b<d.W;b++){d[b].Z=a.Z;O.11.17(d[b]);O.fK(d[b])}}13{if(1l===d){Y}d.Z=a.Z;O.11.17(d);O.fK(d)}}},qI:S(){if((O.1s===P.V.1j.bV||O.1s===P.V.1j.eM||O.1s===P.V.1j.eL||O.1s===P.V.1j.bU||O.1s===P.V.1j.8w||O.1s===P.V.1j.ji||O.1s===P.V.1j.gt||O.1s===P.V.1j.aS||O.1s===P.V.1j.gu||O.1s===P.V.1j.gv||O.1s===P.V.1j.gx||O.1s===P.V.1j.eJ||O.1s===P.V.1j.eK||O.1s===P.V.1j.og||O.1s===P.V.1j.jh||O.1s===P.V.1j.gw||O.1s===P.V.1j.oe||O.1s===P.V.1j.jg||O.1s===P.V.1j.gX||O.1s===P.V.1j.8Z||O.1s===P.V.1j.gW||O.1s===P.V.1j.oa||O.1s===P.V.1j.k0||O.1s===P.V.1j.aS)&&O.1H.W!==0&&O.l6!==1d){if(O.1s!==P.V.1j.4E&&O.1H.W!==0){Q b=O.2F();Q a=b.7O();Q c=P.U.3h.4s(34,[X P.U.1f(a.1U,a.1T)],O.1H);c.Z={2P:1d,2w:"cm"};O.11.17(c)}}},qH:S(){Q b=P.V.5H.qG(O.1i);19(Q c=0;c<b.W;c++){Q a=b[c];if(a.2z===32){a.2b.17(a.2b[0])}if(O.1s===iW&&a.2z===34&&O.1H.W===0){1W}13{Q e=P.U.3h.4s(a.2z,a.2b,a.1H,0);if(e){e.Z=a.Z;O.11.17(e);O.fK(e)}}}Q d=P.V.5H.qF(O.1i,1d);O.1M=d.1M;O.2a=d.2a;if(O.1i.1Q.W!==0&&O.1Q.W!==O.1i.1Q.W){d=P.V.5H.qF(O.1i,1a);O.1Q=d.1Q}},2n:S(c,g){if(O.2A()){Y}if(O.1s===P.V.1j.ac||O.1s===P.V.1j.ab||O.1s===P.V.1j.ad||O.1s===P.V.1j.8T){O.18[0].2n(c,g);O.18[1].2n(c,g);O.1u();19(Q d=0,b=O.3E.W;d<b;d++){O.3E[d].2n(c,g)}}13{P.U.2V.1x.2n.1q(O,1K);Q e;if(O.1i!==R&&O.1i.3o){19(Q a=0;a<O.1i.3o.W;a++){19(Q f=0;f<O.1i.3o[a].2b.W;f++){e=X P.U.1f(O.1i.3o[a].2b[f].x,O.1i.3o[a].2b[f].y);e.2n(c,g);O.1i.3o[a].2b[f].x=e.x;O.1i.3o[a].2b[f].y=e.y}}}if(O.1i!==R&&O.1i.3o){19(Q d=0;d<O.1i.1M.W;d++){e=X P.U.1f(O.1i.1M[d].x,O.1i.1M[d].y);e.2n(c,g);O.1i.1M[d].x=e.x;O.1i.1M[d].y=e.y}}O.3z()}},fK:S(c){if(c.1t==="P.U.5q"){Y 1d}if(c.Z.6t&&c.Z.1D===0){Y 1d}if(c.Z.yh!==1a){c.Z.2H=O.2H}13{if(c.Z.2H===1l){c.Z.2H=P.V.4X.6e}}if(c.Z.2H===P.V.4X.6e){Y 1d}Q b=c.2s();b.Z={};if(c.Z){b.Z=P.1o.2t(b.Z,c.Z)}b.Z.2q=1d;b.Z.8M=1a;b.Z.aN=1a;Q d=b.2s();d.Z={};if(b.Z){d.Z=P.1o.2t(d.Z,b.Z)}d.Z.2P=1a;d.47=b;O.11.17(d);if(c.Z.2H===P.V.4X.bN){Q a=b.2s();a.Z={};if(b.Z){a.Z=P.1o.2t(a.Z,b.Z)}O.11.17(a)}Y 1a},fo:S(g){if(g.1t==="P.U.5q"){Y R}if(g.Z.2H===P.V.4X.6e){Y R}if(g.Z.6t&&g.Z.1D===0){Y R}if(g.Z.2H===P.V.4X.b9||g.Z.2H===P.V.4X.aj){Q e=(g.Z.2H===P.V.4X.aj)?1:-1;Q d=P.U.3h.dU(g);Q b=P.V.1k.hJ(d);if((O.1A===jf||O.1A===je)&&O.1s===2&&O.1v===22){b=1}Q c=b*e*O.bu;Q f=c*O.1c.3m();Q a=O.qE(d,f);if(0===a.W){Y R}Q h=g.2s();h.Z={};if(g.Z){h.Z=P.1o.2t(h.Z,g.Z)}h.Z.2P=1a;if(h.1t==="P.U.6J"){h.11=[];h.11=a}13{if(h.1t==="P.U.5h"){h.11=[];h.11=a}13{if(h.1t==="P.U.4T"){if(h.11.W>0){h.11[0].11=[];h.11[0].11=a}}}}}h.47=g;Y h},qE:S(k,d){Q n=[];Q p=[];19(Q j=0;j<k.W-1;j++){Q f=[];Q h,g;if(P.V.1k.5s(k[j].x,k[j+1].x)&&P.V.1k.5s(k[j].y,k[j+1].y)){1W}f.17(k[j]);f.17(k[j+1]);Q m=P.V.1k.ld(f,d);h=m[0];g=m[1];if(n.W!=0){Q a=P.V.1k.qD(h,g,n[0],n[1]);if(a.qC){Q l=a.qB;Q e=P.V.1k.2I(h,g);Q c=P.V.1k.2I(l,g);if(c>2*e){p.17(g)}13{p[p.W-1]=l;p.17(g)}}13{p.17(g)}}13{p.17(h);p.17(g)}n=[];n.17(p[p.W-2]);n.17(p[p.W-1])}if(k[0].x===k[k.W-1].x&&k[0].y===k[k.W-1].y){if(1<p.W){Q o=P.V.1k.qD(p[0],p[1],p[p.W-2],p[p.W-1]);if(o.qC){Q b=o.qB;p[p.W-1]=b;p[0]=b}}}Y p},6U:S(){if(O.1v===4F&&(O.1A===qA||O.1A===qA||O.1A===yg||O.1A===yf||O.1A===ye)){O.1u()}if(O.8h!==1l&&O.8h!==O.1b.Z.1D){O.1D=O.1b.Z.1D}if(O.3x!==O.1c.3m()){if(O.3l&&O.5J===1a){Q d=O.3x/O.1c.3m();O.1S*=d;if(O.1D===1l||R===O.1D){O.1D=O.1b.Z.1D}if(O.i3===1l){Q a=O.2F();if(R!==a){Q e=a.5r();if(e<a.5F()){e=a.5F()}Q c=(O.1D/0.5)*5;Q j=O.1c.2G(X P.3L(0,0));Q g=O.1c.2G(X P.3L(c,0));Q b=P.V.1k.2I(j,g);O.i3=b/e}}if(O.1S<=O.i3){O.ei=1a;Q f=(O.1D/0.5)*5;Q h=O.1S*f/O.i3;O.1b.Z.1D=1n.5X(h/10);if(O.1b.Z.1D>=O.1D){O.1b.Z.1D=O.1D}if(O.1b.Z.1D<=0.5){O.1b.Z.1D=0.5}}13{if(O.ei===1a){O.1b.Z.1D=O.1D;O.ei=1d}O.1D=O.1b.Z.1D}O.8h=O.1b.Z.1D}if(O.1s===34&&O.1b.Z.9a===1d){O.1b.Z.1y*=d}if(O.1v===22&&(O.1A===of||O.1A===od||O.1A===oc||O.1A===ob)){if(O.1S>=1){O.1u()}}O.3x=O.1c.3m();O.bD()}if(O.1s===P.V.1j.4E&&O.3c){O.3z();O.1E()}},2i:S(f,b){if(O.1H.W!==0){if(O.1b.Z.37===1l){O.1b.Z.37=-f}13{O.1b.Z.37+=-f}}if(O.1s===P.V.1j.4E){O.11[0].Z.37=O.1b.Z.37}13{19(Q o=0;o<O.18.W;o++){O.18[o].2i(f,b)}19(Q h=0;h<O.1M.W;h++){O.1M[h].2i(f,b)}if(O.1s===P.V.1j.8Z){O.2a[0]+=f;O.2a[1]+=f}Q t=1a;if(!P.U.1N.5O(O.1v,O.1A)){if(O.1s===P.V.1j.k2){O.1u();t=1d}}if(t){19(Q s=0,v=O.11.W;s<v;s++){if(O.11[s].1t!=="P.U.5q"){O.11[s].2i(f,b);if(O.11[s].47&&O.11[s].47!==R){O.11[s].47.2i(f,b)}}13{Q g=X P.U.1f(O.11[s].x,O.11[s].y);g.2i(f,b);O.11[s].x=g.x;O.11[s].y=g.y;if(!O.11[s].Z.37){O.11[s].Z.37=-f}13{O.11[s].Z.37+=-f}}}}}if(P.U.1N.5O(O.1v,O.1A)){if(!a(O.1v,O.1A)){19(Q q=0;q<O.1i.3o.W;q++){19(Q p=0;p<O.1i.3o[q].2b.W;p++){Q u=X P.U.1f(O.1i.3o[q].2b[p].x,O.1i.3o[q].2b[p].y);u.2i(f,b);O.1i.3o[q].2b[p].x=u.x;O.1i.3o[q].2b[p].y=u.y}}19(Q r=0;r<O.1i.1M.W;r++){Q e=X P.U.1f(O.1i.1M[r].x,O.1i.1M[r].y);e.2i(f,b);O.1i.1M[r].x=e.x;O.1i.1M[r].y=e.y}}13{S c(j){O.1i.3o=j.2B.3o;O.1i.1M=j.2B.1M;O.1i.2a=j.2B.2a;O.1u()}S w(j){i2.i1(j)}Q x=X P.1P.7M(O.1b.1g.1X);x.1p.on({4n:c,4m:w,3R:O});Q d=X P.1P.6O();d.1v=O.1v;d.1A=O.1A;d.61=O.18;d.2a=O.2a;d.1Q=O.1Q;x.4P(d,O.1Y)}}S a(k,j){if(k===4F){6z(j){1z yd:1z yc:1z yb:1z ya:Y 1a;6y:Y 1d}}}O.3z();O.bD();19(Q s=0;s<O.3E.W;s++){O.3E[s].2i(f,b)}},59:S(l,o){if(O.1s===P.V.1j.4E){O.1b.Z.1y*=l}19(Q g=0,h=O.11.W;g<h;g++){if(O.11[g].1t!=="P.U.5q"){O.11[g].59(l,o);if(O.11[g].47&&O.11[g].47!==R){O.11[g].47.59(l,o)}}13{Q p=X P.U.1f(O.11[g].x,O.11[g].y);p.59(l,o);O.11[g].x=p.x;O.11[g].y=p.y;if(!O.11[g].Z.1y){O.11[g].Z.1y=12*l}13{O.11[g].Z.1y*=l}}}19(Q c=0;c<O.18.W;c++){O.18[c].59(l,o)}19(Q b=0;b<O.1M.W;b++){O.1M[b].59(l,o)}if(P.U.1N.5O(O.1v,O.1A)){19(Q e=0;e<O.1i.3o.W;e++){19(Q b=0;b<O.1i.3o[e].2b.W;b++){Q d=X P.U.1f(O.1i.3o[e].2b[b].x,O.1i.3o[e].2b[b].y);d.59(l,o);O.1i.3o[e].2b[b].x=d.x;O.1i.3o[e].2b[b].y=d.y}}19(Q f=0;f<O.1i.1M.W;f++){Q a=X P.U.1f(O.1i.1M[f].x,O.1i.1M[f].y);a.59(l,o);O.1i.1M[f].x=a.x;O.1i.1M[f].y=a.y}}},6n:S(f,j){if(O.1v===0&&O.1A===31){if(f===0){O.18[0].x=(O.18[1].x+O.18[3].x)/2;O.18[0].y=(O.18[1].y+O.18[3].y)/2;Y}Q h=-1;h=(f+2)%4;if(h===0){h=4}Q a=P.V.1k.2I(O.18[0],O.18[f]);Q b=P.V.1k.lH(O.18[0],O.18[h],a);Q c=X P.U.1f(O.18[0].x*2-b.x,O.18[0].y*2-b.y);Q e=O.1c.3a(X P.2v(b.x,b.y));Q d=O.1c.3a(X P.2v(c.x,c.y));Q g=1d;if(P.V.1k.5s(e.x-d.x,0)||P.V.1k.5s(e.y-d.y,0)){i2.i1("y9 y8");g=1a}if(g){O.18[h].x=c.x;O.18[h].y=c.y;O.18[f].x=b.x;O.18[f].y=b.y}13{O.18[h].x=b.x;O.18[h].y=b.y;O.18[f].x=c.x;O.18[f].y=c.y}}13{if(O.4l){O.qy(f,j)}}O.1u()},y7:S(){Y P.V.8F.lG(O.1v,O.1A)},y6:S(){Y O.aC},y5:S(a){if(O.2A()){Y}if(P.V.8F.lG(O.1v,O.1A)){if(O.aC!==a){O.aC=a;O.1u();O.1E()}}},jK:S(a){if(O.1b.Z.2w===a){Y}O.1b.Z.2w=a;O.1u();O.1E()},qz:S(){O.lF();O.4l.1u();O.lE()},qy:S(a,b){O.lF();O.4l.6n(a,b);O.lE()},lF:S(){O.4l.5J=O.5J;O.4l.18=P.V.1k.3F(O.18);O.4l.1Q=O.1Q;O.4l.2a=O.2a;O.4l.1M=O.1M;O.4l.aC=O.aC;O.4l.1H=O.1H;O.4l.Z=O.1b.Z;if(O.1v===22&&O.1A===dw){O.4l.ef=O.ef;O.4l.ed=O.ed;O.4l.ee=O.ee}if(O.1v===0&&O.1s===P.V.1j.ac){O.4l.8E=O.8E;O.4l.eh=O.eh}if(O.1v===0&&O.1s===P.V.1j.ab){O.4l.8E=O.8E;O.4l.eg=O.eg}if(O.1v===0&&O.1s===P.V.1j.ba){O.4l.4p=O.4p;O.4l.6q=O.6q;O.4l.9b=O.9b;O.4l.8f=O.8f;O.4l.8A=O.8A;O.4l.9c=O.9c}},lE:S(){O.qx(O.4l.11);O.1M=O.4l.1M;O.2a=O.4l.2a;if(O.1Q.W!==O.4l.1Q.W){O.1Q=O.4l.1Q}if(O.18.W!==O.4l.18.W||(O.1v===4F&&O.1A===y4)){O.18=O.4l.18}},y3:S(){Y O.2a[1]},y0:S(a){if(O.2a[1]!==a){O.2a[1]=a;O.1u();O.1E()}},xZ:S(){Y O.2a[2]},xY:S(a){if(O.2a[2]!==a){O.2a[2]=a;O.1u();O.1E()}},xX:S(a){if(O.8E!==a){O.8E=a;O.1u();O.1E()}},xW:S(){Y O.8E},xV:S(a){if(O.eh!==a){O.eh=a;if(O.8E!==P.V.jU.jT){O.1u();O.1E()}}},xU:S(){Y O.eh},xT:S(a){if(O.eg!==a){O.eg=a;if(O.8E!==P.V.jU.jT){O.1u();O.1E()}}},xS:S(){Y O.eg},xR:S(){Y O.ef},xQ:S(a){if(O.1A===dw&&O.ef!==a){O.ef=a;O.1u();O.1E()}},xP:S(){Y O.ee},xO:S(a){if(O.1A===dw&&O.ee!==a){O.ee=a;O.1u();O.1E()}},qw:S(){Y O.ed},xN:S(a){if(O.1A===dw&&O.ed!==a){O.ed=a;O.1u();O.1E()}},lD:S(){if(O.1s===P.V.1j.bT){Y O.2a[1]}},fF:S(a){if(O.2A()){Y}if(O.1s===P.V.1j.bT){if(O.2a[1]!==a){O.2a[1]=a;if(O.1H.W!==0){O.1u()}}}},1t:"P.U.6b"});P.U.lC=X P.27(P.U.6b,{lD:S(){Y O.2a[1]},fF:S(a){if(O.2A()){Y}if(O.2a[1]!==a){O.2a[1]=a;if(O.1H.qv!==0){O.1u()}}},1B:S(){P.U.6b.1x.1B.1q(O,1K)},4B:S(){P.U.6b.1x.4B.1q(O,1K);if(!!O.1i){O.2e=O.1i.2e}},4Q:S(){P.U.6b.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.2e=O.2e}},1t:"P.U.lC"});P.U.i0=X P.27(P.U.2V,{3S:[],6r:1d,xM:S(){Y O.6r},xL:S(a){if(O.2A()){Y}if(O.6r!==a){O.6r=a;O.1u();O.1E()}},jG:S(a,b){if(O.2A()){Y}if(O.3S.W>b){O.3S[b]=a;O.1u();O.1E()}},1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.3V=1;O.5w=1;O.1v=0;O.1A=P.V.1j.9B;O.1s=P.V.1j.9B;O.4i=P.6E("xK")},1B:S(){P.U.2V.1x.1B.1q(O,1K)},1u:S(){O.6o();O.18=[];Q j=O.3S;if(j.W>0){Q h=O.4b(O.3t);if(R===h||1l===h){Y}Q u=1d;Q x=h.T.4a;19(Q e=0,y=x.W;e<y;e++){if(O===x[e]){u=1a;1C}}if(!u){x.17(O)}O.hZ(h);Q k=h.T.2F();O.Z={2P:1d,aP:1a,aN:1a,6t:1a,9w:1a,7j:1a,6K:1a,8M:1a};19(Q z=0,A=j.W;z<A;z++){O.fh(j[z]);Q B=j[z].1H;if(B===R||B.W===0){1W}j[z].2e=j[z].2e===1l?0:j[z].2e;if(O.6r){Q d=P.V.1k.dY(j[z].Z,j[z].1H)}Q t,g,v,r;Q p=X P.3L(0,0);Q o=X P.3L(0,0);6z(j[z].2e){1z 0:j[z].Z.2w="rb";t=X P.2v(k.21,k.1Z);g=O.1c.3a(t);g.x-=j[z].2U;g.y-=j[z].2T;if(O.6r===1a){p.x=g.x;p.y=g.y;o.x=g.x-d;o.y=g.y-4A(j[z].Z.1y)}1C;1z 1:j[z].Z.2w="rt";t=X P.2v(k.21,k.2h);g=O.1c.3a(t);g.x-=j[z].2U;g.y+=j[z].2T;if(O.6r===1a){p.x=g.x;p.y=g.y;o.x=g.x-d;o.y=g.y+4A(j[z].Z.1y)}1C;1z 2:j[z].Z.2w="lb";t=X P.2v(k.2c,k.1Z);g=O.1c.3a(t);g.x+=j[z].2U;g.y-=j[z].2T;if(O.6r===1a){p.x=g.x;p.y=g.y;o.x=g.x+d;o.y=g.y-4A(j[z].Z.1y)}1C;1z 3:j[z].Z.2w="lt";t=X P.2v(k.2c,k.2h);g=O.1c.3a(t);g.x+=j[z].2U;g.y+=j[z].2T;if(O.6r===1a){p.x=g.x;p.y=g.y;o.x=g.x+d;o.y=g.y+4A(j[z].Z.1y)}1C;1z 4:j[z].Z.2w="cb";t=X P.2v((k.21+k.2c)/2,k.1Z);g=O.1c.3a(t);g.x+=j[z].2U;g.y-=j[z].2T;if(O.6r===1a){p.x=g.x-d/2;p.y=g.y;o.x=g.x+d/2;o.y=g.y-4A(j[z].Z.1y)}1C;1z 5:j[z].Z.2w="ct";t=X P.2v((k.21+k.2c)/2,k.2h);g=O.1c.3a(t);g.x+=j[z].2U;g.y+=j[z].2T;if(O.6r===1a){p.x=g.x-d/2;p.y=g.y;o.x=g.x+d/2;o.y=g.y+4A(j[z].Z.1y)}1C;1z 6:j[z].Z.2w="rm";t=X P.2v(k.21,(k.1Z+k.2h)/2);g=O.1c.3a(t);g.x-=j[z].2U;g.y+=j[z].2T;if(O.6r===1a){p.x=g.x;p.y=g.y+4A(j[z].Z.1y)/2;o.x=g.x-d;o.y=g.y-4A(j[z].Z.1y)/2}1C;1z 7:j[z].Z.2w="lm";t=X P.2v(k.2c,(k.1Z+k.2h)/2);g=O.1c.3a(t);g.x+=j[z].2U;g.y+=j[z].2T;if(O.6r===1a){p.x=g.x;p.y=g.y+4A(j[z].Z.1y)/2;o.x=g.x+d;o.y=g.y-4A(j[z].Z.1y)/2}1C;6y:1C}v=O.1c.2G(g);Q b=X P.U.1f(v.1U,v.1T);O.Z=P.1o.2t(O.Z,O.3S[z].Z);if(O.6r){t=O.1c.2G(p);Q s=X P.U.1f(t.1U,t.1T);t=O.1c.2G(o);Q q=X P.U.1f(t.1U,t.1T);Q c=P.U.3h.4s(P.V.1j.eL,[s,q]);c.Z=P.1o.5Z(O.Z);O.11.17(c);Q a=R;if(h.T 1m P.U.5a){a=h.T.18[0].2s()}13{Q n=k.7O();a=X P.U.1f(n.1U,n.1T)}Q w=P.U.3h.4s(P.V.1j.8w,[b,a]);w.Z=P.1o.5Z(O.Z);O.11.17(w);r=X P.U.1f((q.x-s.x)/2+s.x,(s.y-q.y)/2+q.y)}13{r=b}Q C=P.U.3h.4s(P.V.1j.4E,[r],j[z].1H);C.Z=P.1o.5Z(O.Z);if(O.6r){C.Z.2w="cm"}O.11.17(C);O.18.17(b)}}19(Q m=j.W,f=O.11.W;m<f;m++){O.e2(O.11[m])}O.8B()},fh:S(a){if(O.1b===R){Y}if(a.Z===R||a.Z===1l){a.Z={}}19(Q b in O.1b.Z){if(!a.Z.2l(b)){a.Z[b]=O.1b.Z[b]}}},hZ:S(a){O.3l=a.T.3l;if(O.3l===1d){O.3x=O.1c.3m()}13{if(O.3x<=O.1c.3m()){O.1S=a.T.1S}}},7B:S(){O.3G=R;Q c=X P.5B();Q b=O.11;if(b){19(Q a=0;a<O.11.W;a++){if(O.11[a].1t==="P.U.5q"){c.2R(O.11[a].9T(O.1c,O.11[a].Z))}13{c.2R(O.11[a].2F())}}}if(c.21!=R&&c.2h!=R&&c.2c!=R&&c.1Z!=R){O.az(c)}},2i:S(b,e){19(Q d=0,a=O.11.W;d<a;d++){Q c=X P.U.1f(O.11[d].x,O.11[d].y);c.2i(b,e);O.11[d].x=c.x;O.11[d].y=c.y;if(!O.11[d].Z.37){O.11[d].Z.37=-b}13{O.11[d].Z.37+=-b}}19(Q f=0;f<O.1M.W;f++){O.1M[f].2i(b,e)}},2n:S(a,b){},6n:S(a,b){O.fB(a,b);O.1u()},fB:S(c,f){if(c<O.3S.W){Q g=O.3S[c].2e;Q a=O.1c.3a(X P.2v(f.x,f.y));Q d=O.4b(O.3t);if(R===d||1l===d){Y}13{d.T.7B()}Q h=d.T.2F();Q e,b;if(g===0){e=X P.2v(h.21,h.1Z);b=O.1c.3a(e);O.3S[c].2U=b.x-a.x;O.3S[c].2T=b.y-a.y}13{if(g===1){e=X P.2v(h.21,h.2h);b=O.1c.3a(e);O.3S[c].2U=b.x-a.x;O.3S[c].2T=a.y-b.y}13{if(g===2){e=X P.2v(h.2c,h.1Z);b=O.1c.3a(e);O.3S[c].2U=a.x-b.x;O.3S[c].2T=b.y-a.y}13{if(g===3){e=X P.2v(h.2c,h.2h);b=O.1c.3a(e);O.3S[c].2U=a.x-b.x;O.3S[c].2T=a.y-b.y}13{if(g===4){e=X P.2v((h.21+h.2c)/2,h.1Z);b=O.1c.3a(e);O.3S[c].2U=a.x-b.x;O.3S[c].2T=b.y-a.y}13{if(g===5){e=X P.2v((h.21+h.2c)/2,h.2h);b=O.1c.3a(e);O.3S[c].2U=a.x-b.x;O.3S[c].2T=a.y-b.y}13{if(g===6){e=X P.2v(h.21,(h.1Z+h.2h)/2);b=O.1c.3a(e);O.3S[c].2U=b.x-a.x;O.3S[c].2T=a.y-b.y}13{if(g===7){e=X P.2v(h.2c,(h.1Z+h.2h)/2);b=O.1c.3a(e);O.3S[c].2U=a.x-b.x;O.3S[c].2T=a.y-b.y}}}}}}}}}},4B:S(){P.U.1N.1x.4B.1q(O,1K);if(!!O.1i){O.6r=O.1i.6r;O.3S=[];19(Q c=0,a=O.1i.3S.W;c<a;c++){Q b=X P.V.gQ();b.1H=O.1i.3S[c].1H;b.2e=O.1i.3S[c].2e;b.Z=O.1i.3S[c].Z;b.2U=O.1i.3S[c].2U;b.2T=O.1i.3S[c].2T;O.3S.17(b)}}},4Q:S(){P.U.1N.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.3S=O.3S;O.1i.6r=O.6r}},qu:S(b){if(b!==1l){19(Q c=0,a=O.3S.W;c<a;c++){if(O.1b.Z.2l(b)){O.3S[c].Z[b]=O.1b.Z[b]}}}13{19(Q c=0,a=O.3S.W;c<a;c++){O.3S.Z=P.1o.2t(O.3S.Z,O.1b.Z)}}if(b==="1y"){O.1u()}13{19(Q d=0;d<O.11.W;d++){O.11[d].Z[b]=O.1b.Z[b]}}},1t:"P.U.i0"});P.U.hW=X P.27(P.U.2V,{4k:R,2U:R,2T:R,1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.3V=1;O.5w=1;O.1v=0;O.1A=P.V.1j.ak;O.1s=P.V.1j.ak;O.4i=P.6E("xJ");if(O.4k===R){O.4k=10}if(O.2U===R){O.2U=60}if(O.2T===R){O.2T=30}},1B:S(){P.U.2V.1x.1B.1q(O,1K)},1u:S(){O.6o();Q h=O.4b(O.3t);if(h===R){Y}Q n=1d;19(Q x=0;x<h.T.4a.W;x++){if(O===h.T.4a[x]){n=1a;1C}}if(!n){h.T.4a.17(O)}O.hZ(h);Q m=X P.U.1f(h.T.18[0].x,h.T.18[0].y);Q C=O.1c.3a(X P.2v(m.x,m.y));Q p=X P.3L(C.x+O.2U,C.y+O.2T);Q q=O.1c.2G(p);if(O.18.W===0){O.18.17(X P.U.1f(q.1U,q.1T))}13{O.18[0].x=q.1U;O.18[0].y=q.1T}Q r=P.V.1k.3F(O.18);r.17(m);Q g=P.U.3h.4s(24,r);g.Z={2P:1d};O.11.17(g);if(!P.1o.4g(O.1H)){O.1H=[O.1H]}Q f=O.1H.W;Q u=O.1b.Z.1y*f+f+1;Q c=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));Q s=X P.3L(c.x,c.y-u/2);Q z=X P.3L(c.x,c.y+u/2);Q A=O.1c.2G(s);Q y=O.1c.2G(z);Q e=X P.U.1f(A.1U,A.1T);Q b=X P.U.1f(y.1U,y.1T);Q l=[e,b];Q o=P.U.3h.4s(24,l);o.Z={2P:1d};O.11.17(o);if(O.1H.W!==0){Q j=h.T.2F();Q D=X P.U.1f((j.21+j.2c)/2,j.1Z);Q B=X P.U.1f((j.21+j.2c)/2,j.2h);Q a=P.V.1k.xI(D,B,O.18[0]);Q w="";19(x=0;x<O.1H.W;x++){w+=O.1H[x];if(x!==O.1H.W-1){w+="\\r\\n"}}Q t=R;if(a===1a){t=X P.3L(c.x-O.4k,c.y)}13{t=X P.3L(c.x+O.4k,c.y)}Q d=O.1c.6B(t);Q v=X P.U.1f(d.1U,d.1T);Q k=P.U.3h.4s(34,[v],w);k.Z={};k.Z=P.1o.2t(k.Z,O.1b.Z);if(a===1a){k.Z.2w="rm"}13{k.Z.2w="lm"}O.11.17(k)}O.8B()},hZ:S(a){O.3l=a.T.3l;if(O.3l===1d){O.3x=O.1c.3m()}13{if(O.3x<=O.1c.3m()){O.1S=a.T.1S}}if(O.hY!==1l&&O.hY!==O.2U){O.9X=O.2U/O.1S;O.hY=O.2U}if(O.3l===1a){if(O.9X===1l){O.9X=O.2U}O.2U=O.9X*O.1S;O.hY=O.2U}if(O.hX!==1l&&O.hX!==O.2T){O.9W=O.2T/O.1S;O.hX=O.2T}if(O.3l===1a){if(O.9W===1l){O.9W=O.2T}O.2T=O.9W*O.1S;O.hX=O.2T}if(O.8h!==1l&&O.8h!==O.1b.Z.1D){O.1D=O.1b.Z.1D;O.8h=O.1b.Z.1D}if(O.3l===1a){if(O.1D===1l){O.1D=O.1b.Z.1D}if(O.3x<=O.1c.3m()){O.1b.Z.1D=a.Z.1D}13{O.1b.Z.1D=O.1D}O.8h=O.1b.Z.1D}if(O.7g!==1l&&O.7g!==O.1b.Z.1y){O.1y=O.1b.Z.1y/O.1S;O.7g=O.1b.Z.1y}if(O.3l===1a){if(O.1y===1l){O.1y=O.1b.Z.1y}O.1b.Z.1y=O.1y*O.1S;O.7g=O.1b.Z.1y}},7B:S(){O.3G=R;Q c=X P.5B();Q b=O.11;if(b){19(Q a=0;a<O.11.W;a++){if(O.11[a]1m P.U.5q){if(O.1b&&O.1b.Z){P.V.1k.fJ(O.11[a].Z,O.1b.Z)}c.2R(O.11[a].9T(O.1c,O.11[a].Z))}13{c.2R(O.11[a].2F())}}}if(c.21!=R&&c.2h!=R&&c.2c!=R&&c.1Z!=R){O.az(c)}},2i:S(b,e){19(Q d=0,a=O.11.W;d<a;d++){Q c=X P.U.1f(O.11[d].x,O.11[d].y);c.2i(b,e);O.11[d].x=c.x;O.11[d].y=c.y;if(!O.11[d].Z.37){O.11[d].Z.37=-b}13{O.11[d].Z.37+=-b}}19(Q f=0;f<O.1M.W;f++){O.1M[f].2i(b,e)}},2n:S(a,b){if(O.2A()){Y}O.18[0].2n(a,b);O.1u()},6n:S(a,e){Q b=O.4b(O.3t);if(b===R){Y}Q d=X P.U.1f(b.T.18[0].x,b.T.18[0].y);Q f=O.1c.3a(X P.2v(d.x,d.y));Q c=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));O.2U=c.x-f.x;O.2T=c.y-f.y;O.1u()},4B:S(){P.U.1N.1x.4B.1q(O,1K);if(!!O.1i){if(O.1i.4k!==1l){O.4k=O.1i.4k}if(O.1i.2U!==1l){O.2U=O.1i.2U}if(O.1i.2T!==1l){O.2T=O.1i.2T}if(O.1i.1y!==1l){O.1y=O.1i.1y}if(O.1i.1D!==1l){O.1D=O.1i.1D}if(O.1i.9X!==1l){O.9X=O.1i.9X}if(O.1i.9W!==1l){O.9W=O.1i.9W}}},4Q:S(){P.U.1N.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.4k=O.4k;O.1i.2U=O.2U;O.1i.2T=O.2T;if(O.1y!==1l){O.1i.1y=O.1y}if(O.1D!==1l){O.1i.1D=O.1D}if(O.9X!==1l){O.1i.9X=O.9X}if(O.9W!==1l){O.1i.9W=O.9W}}},1t:"P.U.hW"});P.U.lB=X P.27(P.U.2V,{1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.3V=3;O.5w=hI;O.1v=0;O.1A=P.V.1j.dC;O.1s=P.V.1j.dC;O.4i=P.6E("xH")},1B:S(){P.U.2V.1x.1B.1q(O,1K)},1u:S(){O.6o();if(O.18!==R&&O.18.W>=O.3V){Q a=P.V.1k.3F(O.18);Q b=P.U.3h.4s(32,a);b.Z={2P:1d};O.11.17(b)}O.8B()},2n:S(a,b){if(O.2A()){Y}P.U.2V.1x.2n.1q(O,1K);O.3z()},2i:S(a,b){P.U.2V.1x.2i.1q(O,1K);O.3z();O.bD()},1t:"P.U.lB"});P.U.9d=X P.27(P.U.3H,{bC:R,4k:R,1I:S(a){P.U.3H.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.an;O.1s=P.V.1j.an;O.4i=P.6E("xG");if(O.bC===R){O.bC=1}if(O.4k===R){O.4k=10}if(O.3l===R){O.3l=1a}},1B:S(){P.U.3H.1x.1B.1q(O,1K)},1u:S(){Q z=O.4b(O.3t);if(z===R||!(z.T 1m P.U.5a)){Y}if(z.T.18.W===0){Y}Q b=1d;19(Q g=0;g<z.T.6P.W;g++){if(O===z.T.6P[g]){b=1a;1C}}if(!b){z.T.6P.17(O)}Q K,J;if(O.11.W===0&&O.4j.W!==0){Q m=[];19(K=0;K<O.4j.W;K++){Q N=O.4b(O.4j[K]);if(R===N){1W}m.17(N);N.1g.4D([N])}19(J=0;J<m.W;J++){m[J].T.4M=O;O.11.17(m[J]);if(m[J].T.1s===P.V.1j.5j){m[J].T.3l=1a}}Y}if(O.11.W===0&&O.4b(O.3t)){Q D=1d;19(Q x=0;x<O.1Q.W;x++){if(O.1Q[x].1i!==1l&&O.1Q[x].1i!==R){D=1a}}if(D===1d){Y}Q d=P.V.1k.3F(z.T.18[0]);Q G=O.1c.3a(X P.2v(d[0].x,d[0].y));Q y=O.9U(X P.U.1f(O.4k,0),G);Q u=1n.2W(y.x-d[0].x);Q a=X P.U.1f(0,0);Q f=O.9U(a,G);Q v=X P.U.1f(4F,4F);Q I=O.9U(v,G);Q C=X P.5B(f.x,f.y,I.x,I.y);Q M=1n.fE(O.hU(O.1Q.W-1)/O.bC);Q p=C.5F()*M+u*(M+1);Q r=X P.U.1f(d[0].x-u*5,d[0].y+p/2);O.lz();19(K=0;K<O.1Q.W;K++){if(O.1Q[K].1i===1l||O.1Q[K].1i===R){1W}19(J=0;J<O.1Q[K].ah;J++){Q H=O.hU(K-1)+J+1;Q E=1n.fE(H/M);Q L=H-M*(E-1);if(E!==1&&L===1){O.3z();Q e=O.2F();r.x=e.21}Q o=r.x-(u+C.5r()/2);Q n=r.y-((L)*(C.5F()+u));Q q=[X P.U.1f(o,n)];Q A=O.1Q[K].1i.1v;Q h=O.1Q[K].1i.1A;O.1Q[K].1i.li=6;Q F=P.1o.5Z(O.1Q[K].1i);Q B=P.U.1N.2X(A,h,q,{1c:O.1c,1i:F,3l:1a,6R:0,6S:qt,4k:0});if(B.T.1s===P.V.1j.4E){z.Z.2w="rt"}B.T.4M=O;if(B.T.4L>0||B.T.4L===0){B.T.11[B.T.4L].Z.9a=1a}O.11.17(B);O.4j.17(B.T.1r)}}if(O.1H!==R&&O.1H.W!==0){Q t=X P.U.1f(d[0].x-u*5,d[0].y+p/2+u);Q s=P.U.1N.2X(0,34,[t],{1c:O.1c,1H:O.1H});s.T.4M=O;s.Z.2w="rb";s.T.3l=1a;O.11.17(s);O.4j.17(s.T.1r)}O.3z();Q k=O.2F();k.1Z+=u;k.2h-=u;k.21-=u;k.2c+=u;Q l=[];l.17(X P.U.1f(k.21,k.1Z));l.17(X P.U.1f(k.2c,k.2h));Q c=X P.U.1f(d[0].x,d[0].y);c.ly=1a;l.17(c);Q w=P.U.1N.2X(0,P.V.1j.8T,l,{1c:O.1c});w.T.4M=O;O.11.2S(0,0,w);O.4j.2S(0,0,w.T.1r)}O.3z()},6n:S(a,b){},lz:S(){if(O.2A()){Y}19(Q a=0;a<O.1Q.W;a++){if(O.1Q[a].1i!==R){O.1Q[a].1i.1H=O.1Q[a].1H}}},hU:S(a){Q c=0;if(a<0){Y c}if(a>O.1Q.W-1){a=O.1Q.W-1}19(Q b=0;b<=a;b++){c+=O.1Q[a].ah}Y c},7B:S(){O.3G=R;Q c=X P.5B();Q b=O.11;if(b){19(Q a=0;a<b.W;a++){if(b[a].T.1s===P.V.1j.4E){b[a].Z.8c=O.1H;c.2R(b[a].T.11[0].9T(O.1c,b[a].Z))}13{if(b[a].T 1m P.U.5a){c.2R(b[a].T.lh())}13{c.2R(b[a].T.2F())}}}}if(c.21!=R&&c.2h!=R&&c.2c!=R&&c.1Z!=R){O.az(c)}},gN:S(b){if(O.1H!==b){O.1H=b;19(Q a in O.11){if(O.11[a].T.1s===P.V.1j.4E){O.11[a].T.1H=O.1H;O.11[a].T.1u()}}}},1t:"P.U.9d"});P.U.hT=X P.27(P.U.9d,{9V:R,xF:S(){Y O.9V},xE:S(f){if(O.2A()){Y}if(O.lA!==f){O.lA=f;if(O.lA&&O.11.W!==0){O.3z();Q e=O.2F();e.1Z+=hV;e.2h-=hV;e.21-=hV;e.2c+=hV;Q c=[];c.17(X P.U.1f(e.21,e.1Z));c.17(X P.U.1f(e.2c,e.2h));Q d=X P.U.1f(18[0].x,18[0].y);d.ly=1a;c.17(d);Q b=P.U.1N.2X(0,P.V.1j.8T,c,{1c:O.1c});b.T.4M=O;O.11.2S(0,0,b);O.4j.2S(0,0,b.T.1r)}13{19(Q a=0;a<O.11.W;a++){if(O.11[a].T 1m P.U.xD){O.11[a].T.e2(O.11[a].T.11);O.11.2S(a,1);1C}}}O.1E()}},1I:S(a){P.U.3H.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.am;O.1s=P.V.1j.am;O.4i=P.6E("xC");if(O.9V===R){O.9V=1a}},1B:S(){P.U.3H.1x.1B.1q(O,1K)},1u:S(){Q g=O.4b(O.3t);if(g===R||!(g.T 1m P.U.5a)){Y}if(g.T.18.W===0){Y}Q o=1d;19(Q f=0;f<g.T.6P.W;f++){if(O===g.T.6P[f]){o=1a;1C}}if(!o){g.T.6P.17(O)}Q D,B;if(O.11.W===0&&O.4j.W!==0){Q h=[];19(D=0;D<O.4j.W;D++){Q x=O.4b(O.4j[D]);if(x!==R){h.17(x);x.1g.4D([x])}}19(B=0;B<h.W;B++){h[B].T.4M=O;O.11.17(h[B]);if(h[B].T.1s===P.V.1j.5j){h[B].T.3l=1a}}Y}if(O.11.W===0){Q q=1d;19(Q m=0;m<O.1Q.W;m++){if(O.1Q[m].1i!==1l&&O.1Q[m].1i!==R){q=1a}}if(q===1d){Y}Q A=P.V.1k.3F(g.T.18[0]);Q p=O.1c.3a(X P.2v(A[0].x,A[0].y));Q v=O.9U(X P.U.1f(O.4k,0),p);Q w=1n.2W(v.x-A[0].x);Q G=X P.U.1f(0,0);Q F=O.9U(G,p);Q n=X P.U.1f(4F,4F);Q C=O.9U(n,p);Q l=X P.5B(F.x,F.y,C.x,C.y);Q H=1n.fE(O.hU(O.1Q.W-1)/O.bC);Q z=l.5r()*O.bC+w*(O.bC-1);Q e=X P.U.1f(A[0].x-z*0.5+0.5*l.5r(),A[0].y-w);if(O.9V===1a){e.y-=w*4}O.lz();Q u=[];19(D=0;D<O.1Q.W;D++){19(B=0;B<O.1Q[D].ah;B++){u.17(O.1Q[D])}}Q m=0;19(D=0;D<H;D++){19(B=0;B<O.bC;B++){if(m>=u.W){1C}Q d=u[m];if(d.1i===1l||d.1i===R){1W}Q I=d.1i.1v;Q b=d.1i.1A;Q t=e.x+B*(w+l.5r());if(I==4F&&b==l9){t-=(w+l.5r())/2}Q s=e.y-(w*2+l.5F());Q E=[X P.U.1f(t,s)];d.1i.li=5;Q k=P.1o.5Z(d.1i);Q c=P.U.1N.2X(I,b,E,{1c:O.1c,1i:k,3l:1a,6R:0,6S:qt,4k:0});c.T.4M=O;if(c.T.4L!==-1){c.T.11[c.T.4L].Z.9a=1a}O.11.17(c);m++;O.4j.17(c.T.1r)}O.3z();Q K=O.2F();e.y=K.2h}if(O.9V){O.3z();Q y=O.2F();y.1Z+=w;y.2h-=w;y.21-=w;y.2c+=w;Q a=[];a.17(X P.U.1f(y.21,y.1Z));a.17(X P.U.1f(y.2c,y.2h));Q J=X P.U.1f(A[0].x,A[0].y);J.ly=1a;a.17(J);Q r=P.U.1N.2X(0,P.V.1j.8T,a,{1c:O.1c});r.T.4M=O;O.11.2S(0,0,r);O.4j.2S(0,0,r.T.1r)}O.3z()}},4B:S(){P.U.9d.1x.4B.1q(O,1K);if(!!O.1i){O.9V=O.1i.9V}},4Q:S(){P.U.9d.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.9V=O.9V}},1t:"P.U.hT"});P.U.cI=X P.27(P.U.2V,{55:R,56:R,7Y:R,8D:R,xB:S(a){if(O.2A()){Y}if(O.7Y!==a){O.7Y=a;O.1u();O.1E()}},xA:S(){Y O.7Y},1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.3V=2;O.5w=2;O.1v=0;O.1A=P.V.1j.ao;O.1s=P.V.1j.ao;O.4i=P.6E("xz");if(O.8D===R){O.8D=10}if(O.7Y===R){O.7Y=P.V.f0.eZ}O.cJ(O.55);O.cJ(O.56)},lw:S(b){if(O.2A()){Y}if(R!==O.55){O.fI(O.55);O.55=R}Q a=O.4b(b);if(R===a||R===a.T){Y}if(!a.T.8o()){Y}if(R!==O.56){if(b===O.56){Y}}O.55=b;O.cJ(O.55);if(R===O.56){Y}O.lx(O.55,O.56)},lv:S(b){if(O.2A()){Y}if(R!==O.56){O.fI(O.56);O.56=R}Q a=O.4b(b);if(R===a||R===a.T){Y}if(!a.T.8o()){Y}if(R!==O.55){if(b===O.55){Y}}O.56=b;O.cJ(O.56);if(R===O.55){Y}O.lx(O.55,O.56)},lx:S(a,d){if(O.2A()){Y}Q c=O.4b(a);Q b=O.4b(d);if(R===c||R===c.T||R===b||R===b.T){Y}if(!c.T.8o()||!b.T.8o()){Y}O.55=a;O.56=d;O.cJ(O.55);O.cJ(O.56);O.1u()},1B:S(){O.55=R;O.56=R;P.U.2V.1x.1B.1q(O,1K)},1u:S(){O.6o();O.11=[];Q h=R;if(R!==O.55){Q d=O.4b(O.55);if(R!==d){Q e=P.V.1k.3F(d.T.hP());if(R!==e&&0<e.W){h=e[0]}}}Q f=R;if(R!==O.56){Q c=O.4b(O.56);if(R!==c){Q a=P.V.1k.3F(c.T.hP());if(R!==a&&0<a.W){f=a[0]}}}if(R===O.18){O.18=[]}if(R!==h){if(0===O.18.W){O.18.17(h)}13{O.18[0]=h}}if(R!==f){if(0===O.18.W){Y}13{if(1===O.18.W){O.18.17(f)}13{O.18[O.18.W-1]=f}}}19(Q b=0;b<O.18.W;b++){O.18[b].4U=b}Q g=P.V.1k.3F(O.18);if(R!==g&&g.W>=O.3V){O.Z={};O.Z=P.1o.2t(O.Z,P.U.1N.74);O.qs(g)}O.8B()},qs:S(m){O.11=[];Q a=m[0];Q c=m[m.W-1];if(O.8D<=1){O.8D=10}Q e=P.V.1k.2I(a,c);Q b=e/(O.8D*2-1);Q g,d;if(O.7Y===P.V.f0.jV){g=P.U.3h.4s(24,m);g.Z={2P:1d};O.11.17(g)}13{if(O.7Y===P.V.f0.o8){Q k,j,l;19(d=0;d<O.8D;d++){k=P.V.1k.6Y(a,c,2*d*b,0);j=P.V.1k.6Y(a,c,(2*d+1)*b,0);l=[];l.17(k);l.17(j);g=P.U.3h.4s(24,l);g.Z={2P:1d};O.11.17(g)}}13{if(O.7Y===P.V.f0.eZ){Q k,j,h,f,l;19(d=0;d<O.8D;d++){k=P.V.1k.6Y(a,c,2*d*b,0);j=P.V.1k.6Y(a,c,(2*d+1)*b,0);h=P.V.1k.6Y(j,k,b,60);f=P.V.1k.6Y(j,k,b,-60);l=[];l.17(h);l.17(j);l.17(f);g=P.U.3h.4s(24,l);g.Z={2P:1d};O.11.17(g)}}}}},2n:S(a,b){},6n:S(a,d){if(0===a){Q c=O.lu(d);if(c!==R){O.lw(c.T.1r)}13{O.lw(R)}}13{if(O.18.W-1===a){Q b=O.lu(d);if(b!==R){O.lv(b.T.1r)}13{O.lv(R)}}}O.1u()},lu:S(g){Q e=R;if(O.1b===R||O.1b.1g===R){Y e}Q c=O.1b.1g.1c.2G(X P.3L(0,0));Q b=O.1b.1g.1c.2G(X P.3L(5,0));Q a=P.V.1k.2I({x:c.1U,y:c.1T},{x:b.1U,y:b.1T});Q f=O.1b.1g.1h;19(Q d=0;d<f.W;d++){e=O.1b.1g.6G(f[d],X P.2v(g.x,g.y),a);if(e!==R){if(!(e.T 1m P.U.5a)){1W}1C}}Y e},cJ:S(d){if(O.2A()){Y}Q b=O.4b(d);if(R===b){Y}if(R===b.T){Y}if(!(b.T 1m P.U.5a)){Y}Q c=1d;19(Q a=0;a<b.T.5n.W;a++){if(O===b.T.5n[a]){c=1a;1C}}if(!c){b.T.5n.17(O)}},fI:S(c){if(O.2A()){Y}Q b=O.4b(c);if(R===b){Y}if(R===b.T){Y}if(!(b.T 1m P.U.5a)){Y}19(Q a=0;a<b.T.5n.W;a++){if(O===b.T.5n[a]){b.T.5n.2S(a,1);1C}}},4B:S(){P.U.2V.1x.4B.1q(O,1K);if(!!O.1i){O.56=O.1i.56;O.7Y=O.1i.7Y;O.55=O.1i.55;O.8D=O.1i.8D}},4Q:S(){P.U.2V.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.56=O.56;O.1i.7Y=O.7Y;O.1i.55=O.55;O.1i.8D=O.8D}},1t:"P.U.cI"});P.U.4J=X P.27(P.U.1N,{5w:1,3V:hI,2p:R,bA:R,4x:R,6F:R,1I:S(a){P.U.1N.1x.1I.1q(O,1K);O.3V=1;O.5w=hI;if(O.2p===R){O.2p=[]}if(O.3l===R){O.3l=1a}if(R===O.4x){O.4x=[]}if(O.6F===R){O.6F=P.1o.5Z(P.U.1N.74)}if(R===O.bA){O.bA=P.V.gU.jY}},1B:S(){O.2p=R;O.4x=R;P.U.1N.1x.1B.1q(O,1K)},qr:S(a){O.fH=1a;O.bB=a;19(Q b=0;b<O.11.W;b++){if(O.11[b].T 1m P.U.6b){O.11[b].Z=P.1o.2t(O.11[b].Z,a)}}},qq:S(){19(Q a=0;a<O.11.W;a++){if(O.11[a].T 1m P.U.6b){O.11[a].Z=P.1o.2t(O.11[a].Z,O.6F)}}O.fH=1d;O.bB=R},xw:S(f,a,h,b){if(!O.1b||!O.1b.1g){Y}if(h===1l){h=2}if(f===1l){f={2L:"#5Q"}}if(a===1l){a={2L:"#df"}}if(b===1l){b=xv}Q l=[];19(Q e=0;e<h;e++){l.17(f);l.17(a)}if(O.fH===1a&&O.bB&&O.bB!==R){l.17(O.bB)}13{l.17(O.6F)}Q g=O;Q c=l.W;19(Q d=0;d<c;d++){qp(S(){19(Q j=0;j<g.11.W;j++){if(g.11[j].T 1m P.U.6b){g.11[j].Z=P.1o.2t(g.11[j].Z,l[0]);g.1b.1g.2m(g.11[j])}}l.2S(0,1)},b*d)}},xu:S(e){19(Q d=0;d<O.11.W;d++){Q c=O.11[d];if(R===c||R===c.Z){1W}if(c.T 1m P.U.9S||c.T 1m P.U.fw){c.Z=P.1o.2t(c.Z,e);c.T.2m()}}19(Q b=0;b<O.2p.W;b++){19(Q a=0;a<O.2p[b].2j.W;a++){O.2p[b].2j[a].Z=P.1o.2t(O.2p[b].2j[a].Z,e)}}},xt:S(c){if(O.1b===R||O.1b.Z===1l){Y}19(Q b=0;b<O.11.W;b++){Q a=O.11[b];if(R===a||R===a.Z){1W}if(a.T 1m P.U.4o){1W}if(a.T 1m P.U.fw){1W}if(a.T 1m P.U.9S){1W}a.Z=P.1o.2t(a.Z,c)}O.6F=P.1o.2t(O.6F,c)},xs:S(d){if(O.1b===R||O.1b.Z===1l){Y}19(Q c=0;c<O.11.W;c++){Q b=O.11[c];if(R===b||R===b.Z){1W}if(!(b.T 1m P.U.4o)){1W}b.Z=P.1o.2t(b.Z,d)}19(Q a=0;a<O.2p.W;a++){O.2p[a].Z=P.1o.2t(O.2p[a].Z,d)}},xr:S(d){Q g=O.8a(d.id);if(g===R){Y}Q f=O.cg(d);if(f.T.3c){if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("73",{1h:[f]})}}O.4x=[];19(Q e=0;e<O.2p.W;e++){19(Q c=0;c<O.2p[e].2j.W;c++){if(O.2p[e].2j[c].4q===d.id){O.2p[e].2j.2S(c,1);19(Q b=0;b<d.2j.W;b++){if(d.2j[b].4q!==O.2p[e].id){O.2p[e].2j.17(d.2j[b])}}1W}}}19(Q a=0;a<O.2p.W;a++){if(O.2p[a].id===d.id){O.2p.2S(a,1)}}O.1u()},xq:S(b){if(O.4x.W!==0){O.4x=[];Q g=O.8a(b.id);if(g!==R){g=b}13{O.2p.17(b)}O.1u();Q f=O.cg(b);if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("ea",{1h:[f]})}}13{Q f=O.cg(b);if(f!==R){f.T.3D=b;f.T.1u();Q e=O.ll(f.T.3D);19(Q d=0;d<e.W;d++){e[d].T.18[0]=X P.U.1f(f.T.3D.36.x,f.T.3D.36.y);e[d].T.1u()}Q c=O.lk(f.T.3D);19(Q a=0;a<c.W;a++){c[a].T.18[1]=X P.U.1f(f.T.3D.36.x,f.T.3D.36.y);c[a].T.1u()}O.3z();Y}}},xp:S(g,b,k,l,m,n,c,e){if(l===1l){l=1a}O.4x=[];if(l&&k){19(Q f=0;f<b.2j.W;f++){if(b.2j[f].4q===k.id){b.2j.2S(f,1)}}}Q p=O.8a(g.id);if(p===R){O.2p.17(g)}if(b){Q d=1d;19(Q h=0;h<b.2j.W;h++){if(b.2j[h].4q===g.id){d=1a}}if(d===1d){Q o=X P.V.7I();o.4q=g.id;if(m!==1l){o.1H=m}if(n!==1l){o.4p=n}b.2j.17(o)}}if(k){Q a=1d;19(Q h=0;h<g.2j.W;h++){if(g.2j[h].4q===k.id){a=1a}}if(a===1d){Q o=X P.V.7I();o.4q=k.id;if(c!==1l){o.1H=c}if(e!==1l){o.4p=e}g.2j.17(o)}}O.1u()},xo:S(d,c,g,f){Q h=O.8a(d.id);if(h===R){O.4x=[];O.2p.17(d)}if(c){Q a=1d;19(Q e=0;e<c.2j.W;e++){if(c.2j[e].4q===d.id){a=1a}}if(a===1d){Q b=X P.V.7I();b.4q=d.id;if(g!==1l){b.1H=g}if(f!==1l){b.4p=f}c.2j.17(b)}}O.1u()},qo:S(c,a,d){Q f=O.8a(c.id);if(f===R){Y R}Q e=X P.V.b8();e.36=X P.U.1f();e.36.x=c.36.x;e.36.y=c.36.y;e.42="";e.2z=O.bA;if(a===1a){Q b=X P.V.7I();b.4q=c.id;e.2j.17(b)}13{if(d===1a){Q b=X P.V.7I();b.4q=e.id;c.2j.17(b)}}O.2p.17(e);O.1u();O.2m();Y O.cg(e)},qn:S(d,g){19(Q e=0;e<O.2p.W;e++){Q b=O.2p[e];if(R===b){1W}if(!b.2j||R===b.2j){1W}19(Q c=0;c<b.2j.W;c++){Q f=O.8a(b.2j[c].4q);if(R===f){1W}Q h=P.V.1k.cH(d,[b.36,f.36]);if(h.7H!==-1&&h.fG<g){Q a=X P.V.b8();a.36=d;a.2z=O.bA;a.42="";a.2j.17(b.2j[c]);b.2j.2S(c,1);Q k=X P.V.7I();k.4q=a.id;b.2j.17(k);O.4x=[];O.2p.17(a);O.1u();O.2m();Y O.cg(a)}}}Y R},qm:S(e,h){Q a=[];19(Q f=0;f<O.2p.W;f++){Q c=O.2p[f];if(R===c){1W}if(!c.2j||R===c.2j){1W}if(c.2j.W===0){a.17(c)}19(Q d=0;d<c.2j.W;d++){Q g=O.8a(c.2j[d].4q);if(R===g){1W}Q k=P.V.1k.cH(e,[c.36,g.36]);if(k.7H!==-1&&k.fG<h){Q b=X P.V.b8();b.36=e;b.2z=O.bA;b.42=(O.2p.W+1).5R();b.2j.17(c.2j[d]);c.2j.2S(d,1);Q l=X P.V.7I();l.4q=b.id;c.2j.17(l);O.4x=[];O.2p.17(b);Y}}}Q b=X P.V.b8();b.36=e;if(O.2p.W!==0){b.2z=O.bA}13{b.2z=P.V.gU.jX}b.42=(O.2p.W+1).5R();if(a.W!==0){Q l=X P.V.7I();l.4q=b.id;a[0].2j.17(l)}O.2p.17(b);Y},xn:S(a){O.bA=a},cg:S(a){19(Q b=0;b<O.11.W;b++){if(O.11[b].3D===a.id){Y O.11[b]}}Y R},ll:S(a){Q c=[];19(Q b=0;b<O.11.W;b++){if(O.11[b].8g!==1l&&O.11[b].8g===a.id){c.17(O.11[b])}}Y c},lk:S(a){Q c=[];19(Q b=0;b<O.11.W;b++){if(O.11[b].cG!==1l&&O.11[b].cG===a.id){c.17(O.11[b])}}Y c},ls:S(){O.8C=[];O.7X=[];19(Q a=0;a<O.11.W;a++){if(O.11[a].T 1m P.U.4o){O.8C.17(O.11[a])}13{if(O.11[a].T 1m P.U.9S){O.7X.17(O.11[a])}13{O.11[a].1g=O.1b.1g;O.11[a].T.e2(O.11[a].T.11)}}}O.11=[]},lq:S(){19(Q a=0;a<O.8C.W;a++){O.8C[a].T.e2(O.8C[a].T.11)}19(Q a=0;a<O.7X.W;a++){O.7X[a].T.e2(O.7X[a].T.11)}O.8C=[];O.7X=[];O.3z()},1u:S(){O.ls();if(1l!==O.4x&&R!==O.4x){19(Q e=0;e<O.4x.W;e++){Q f=O.4x[e];if(f.W<2){1W}Q k=P.U.1N.2X(0,P.V.1j.8w,f,{1c:O.1c});k.Z=P.1o.2t(k.Z,O.6F);O.11.17(k)}}19(Q e=0;e<O.2p.W;e++){Q c=O.2p[e];if(R===c){1W}if(!c.2j||R===c.2j){1W}19(Q d=0;d<c.2j.W;d++){Q g=O.8a(c.2j[d].4q);if(R===g){1W}Q b=[];b.17(c.36);b.17(g.36);if(O.4x.W===0){Q k=P.U.1N.2X(0,P.V.1j.8w,b,{1c:O.1c});k.Z=P.1o.2t(k.Z,O.6F);k.8g=c.id;k.cG=g.id;O.11.17(k)}Q h=c.2j[d].1H;if(R===h){1W}Q a=c.2j[d].4p;if(1l===a||R===a){a=P.V.8Y.dt}Q l=P.U.1N.2X(0,P.V.1j.ba,b,{1c:O.1c,4p:a,6q:1d,1H:h});l.Z=P.1o.2t(l.Z,c.2j[d].Z);l.8g=c.id;l.cG=g.id;l.1g=O.1b.1g;O.11.17(l)}O.lr(c)}O.lq()},lr:S(a){if(R===a){Y}19(Q b=0;b<O.8C.W;){if(O.8C[b].3D===a.id){O.8C[b].T.3D=a;O.8C[b].T.1u();O.11.17(O.8C[b]);O.8C.2S(b,1);Y}13{b++}}Q c=P.U.1N.2X(0,P.V.1j.dx,[a.36],{1c:O.1c,3D:a,3W:O},a.Z);c.3D=a.id;c.1g=O.1b.1g;O.11.17(c)},4B:S(){P.U.1N.1x.4B.1q(O,1K);if(!!O.1i){O.2p=O.1i.2p;O.2p=[];19(Q d=0;d<O.1i.2p.W;d++){Q c=X P.V.b8();if(O.1i.2p[d].id!==R||O.1i.2p[d].id!==1l){c.id=O.1i.2p[d].id}c.2z=O.1i.2p[d].2z;c.42=O.1i.2p[d].42;c.2i=O.1i.2p[d].2i;c.36=X P.U.1f(O.1i.2p[d].36.x,O.1i.2p[d].36.y);c.2j=[];19(Q b=0;b<O.1i.2p[d].2j.W;b++){Q a=X P.V.7I();a.4q=O.1i.2p[d].2j[b].4q;a.4p=O.1i.2p[d].2j[b].4p;a.1H=O.1i.2p[d].2j[b].1H;a.2U=O.1i.2p[d].2j[b].2U;a.2T=O.1i.2p[d].2j[b].2T;a.Z=O.1i.2p[d].2j[b].Z;c.2j.17(a)}c.Z=O.1i.2p[d].Z;O.2p.17(c)}O.4x=[];19(Q d=0;d<O.1i.4x.W;d++){Q e=[];19(Q b=0;b<O.1i.4x[d].W;b++){e.17(X P.U.1f(O.1i.4x[d][b].x,O.1i.4x[d][b].y))}O.4x.17(e)}O.6F=O.1i.6F}},4Q:S(){P.U.1N.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.2p=O.2p;O.1i.4x=O.4x;O.1i.6F=O.6F}},8a:S(b){19(Q a=0;a<O.2p.W;a++){if(O.2p[a].id===b){Y O.2p[a]}}Y R},7B:S(){O.3G=R;Q d=X P.5B();Q c=O.11;if(c){19(Q b=0,a=c.W;b<a;b++){d.2R(c[b].T.2F())}}if(d.21!=R&&d.2h!=R&&d.2c!=R&&d.1Z!=R){O.az(d)}},2n:S(a,b){},cE:S(b,d,c,a){},2i:S(a,b){},6U:S(){if(O.3x!==O.1c.3m()){19(Q a=0;a<O.11.W;a++){if(O.11[a].1s!==P.V.1j.8w){O.11[a].T.6U()}}}O.3x=O.1c.3m()},1t:"P.U.4J"});P.U.lp=X P.27(P.U.4J,{4k:R,aB:R,1I:S(a){P.U.4J.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.dB;O.1s=P.V.1j.dB;O.4i=P.6E("xm");if(O.4k===R){O.4k=20}if(O.aB===R){O.aB=1d}},1B:S(){O.4k=R;O.aB=R;P.U.1N.1x.1B.1q(O,1K)},1u:S(){O.ls();Q e,c,d,b;if(R!=O.4x){19(e=0;e<O.4x.W;e++){d=O.4x[e];if(!P.1o.4g(d)||d.W<2){1W}b=P.U.1N.2X(0,P.V.1j.8w,d,{1c:O.1c});b.Z=P.1o.2t(b.Z,O.6F);O.11.17(b)}}19(e=0;e<O.2p.W;e++){Q a=O.2p[e];if(R===a){1W}if(!a.2j||R===a.2j){1W}19(c=0;c<a.2j.W;c++){if(!(a.2j[c]1m P.V.7I)){1W}Q f=O.8a(a.2j[c].4q);if(R===f){1W}if(O.4x.W===0){d=[];d.17(a.36);d.17(f.36);b=P.U.1N.2X(0,P.V.1j.8w,d,{1c:O.1c});b.Z=P.1o.2t(b.Z,O.6F);b.8g=a.id;b.cG=f.id;O.11.17(b)}O.ql(a,a.2j[c])}O.lr(a)}O.lq()},ql:S(b,a){19(Q d=0;d<O.7X.W;){if(O.7X[d].8g===b.id&&O.7X[d].cG===a.4q){O.7X[d].T.8g=b;O.7X[d].T.62=a;O.7X[d].T.1u();O.11.17(O.7X[d]);O.7X.2S(d,1);Y}13{d++}}if(a.1H!==R&&a.1H.W!==0){Q c=P.U.1N.2X(0,P.V.1j.cc,R,{1c:O.1c,8g:b,62:a,3W:O,aB:O.aB,4k:O.4k},a.Z);c.1g=O.1b.1g;c.8g=b.id;c.cG=a.4q;O.11.17(c)}},1t:"P.U.lp"});P.U.lo=X P.27(P.U.4J,{1I:S(a){P.U.4J.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.dA;O.1s=P.V.1j.dA;O.4i=P.6E("xl")},1t:"P.U.lo"});P.U.ln=X P.27(P.U.4J,{1I:S(a){P.U.4J.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.dz;O.1s=P.V.1j.dz;O.4i=P.6E("xk")},1t:"P.U.ln"});P.U.4o=X P.27(P.U.2V,{3W:R,3D:R,ec:S(){19(Q b=0;b<O.3W.2p.W;b++){19(Q a=0;a<O.3W.2p[b].2j.W;a++){if(O.3W.2p[b].2j[a].4q===O.3D.id){Y 1d}}}Y 1a},eb:S(){if(O.3D.2j.W===0){Y 1a}13{Y 1d}},jI:S(a){O.3D.2z=a;O.1u();O.1E()},xj:S(a){O.3D.42=a;O.1u()},le:S(a){O.18[0].x=a.x;O.18[0].y=a.y;O.3D.36.x=a.x;O.3D.36.y=a.y;19(Q b=0;b<O.3W.2p.W;b++){if(O.3W.2p[b].4q===O.3D.id){O.3W.2p[b].x=a.x;O.3W.2p[b].y=a.y}}if(O.3W.4x.W!==0){O.3W.4x=[];O.3W.1u();if(O.1b!==R&&O.1b.1g!==R){O.1b.1g.1p.1E("ea",{1h:[O.1b]})}}13{O.1u();Q e=O.3W.ll(O.3D);19(Q d=0;d<e.W;d++){if(!(e[d].T 1m P.U.9S)){e[d].T.18[0]=X P.U.1f(a.x,a.y)}e[d].T.1u()}Q c=O.3W.lk(O.3D);19(b=0;b<c.W;b++){if(!(c[b].T 1m P.U.9S)){c[b].T.18[1]=X P.U.1f(a.x,a.y)}c[b].T.1u()}O.3W.3z();O.1E()}},aA:S(a){O.3D.2i=a;O.1u()},bz:S(){Y O.3D.2i},1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.4i=P.V.hS.xi(O.3D.2z);O.1s=P.V.1j.dx;O.4t=X P.U.1f(0,0)},1B:S(){O.3W=R;O.3D=R;P.U.3H.1x.1B.1q(O,1K)},1u:S(){O.6o();if(O.18.W===0){O.18=[X P.U.1f(O.3D.36.x,O.3D.36.y)]}13{O.18[0].x=O.3D.36.x;O.18[0].y=O.3D.36.y}if(O.18.W>=O.3V){if(O.3D.2z===P.V.gU.jZ){Q b=P.V.hS.lj(O.3D.2z,1d,O.3D.2i);O.hQ(b);Q e=P.V.hS.lj(O.3D.2z,1a);O.hQ(e)}13{Q c=P.V.hS.lj(O.3D.2z);O.hQ(c)}O.3z();if(O.3D.42!==R&&O.3D.42!==""){Q f=O.2F();Q a=X P.U.1f(f.2c,f.1Z);Q d=P.U.3h.4s(P.V.1j.4E,[a],O.3D.42);d.Z=O.3D.Z;d.Z.2w="lb";O.11.17(d)}O.hR(O.e9,O.11)}},hQ:S(c){Q e=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));19(Q d=0;d<c.W;d++){Q b=c[d];if(b.2z===P.V.1j.4E){b.Z.1y=O.1S*b.Z.1y;b.Z.37+=-O.3q}19(Q a=0;a<b.2b.W;a++){b.2b[a].x=b.2b[a].x*O.1S;b.2b[a].y=b.2b[a].y*O.1S;b.2b[a].2i(O.3q,O.4t);b.2b[a]=O.9U(b.2b[a],e)}Q f=P.U.3h.4s(b.2z,b.2b,b.1H,O.3q);f.Z=b.Z;O.11.17(f)}},2n:S(a,b){O.3D.36.2n(a,b);O.le(O.3D.36)},6U:S(){if(O.3x!==O.1c.3m()){if(!O.3l||O.3l===1d){O.1u()}13{O.1S*=O.3x/O.1c.3m();if(O.1S>5){O.1S=5}13{if(O.1S<1){O.1S=1}}O.1u()}O.3x=O.1c.3m()}},1t:"P.U.4o"});P.U.lg=X P.27(P.U.2V,{5e:R,ay:R,2Y:R,xh:S(a){if(O.2A()){Y}if(O.ay!==a){O.ay=a;O.1u();O.1E()}},xg:S(){Y O.ay},1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.al;O.1s=P.V.1j.al;O.4i=P.6E("xf");if(O.ay===R){O.ay=1a}if(O.2a.W===0){O.2a.17(0.5)}if(O.2Y===R){O.2Y=[]}},1u:S(){O.6o();if(O.5e!==R){if(O.ay){if(O.18===R||O.18.W===0){19(Q k=0;k<O.5e.W;k++){O.18.17(X P.U.1f(O.5e[k].x,O.5e[k].y))}}13{19(Q h=0,m=O.5e.W;h<m;h++){O.5e[h].x=O.18[h].x;O.5e[h].y=O.18[h].y}}Q q=P.V.1k.3F(O.18);Q d=P.U.3h.4s(P.V.1j.8w,q);d.Z={2P:1d};O.11.17(d)}Q f=P.V.1k.aT(O.18);if(O.2a.W===0){O.xe.17(0.5)}Q l=P.V.1k.xd(O.18,f*O.2a[0]);Q p=l.pt;Q n=p.2s();Q g=1n.f7(O.5e.W/2);Q e=X P.U.1f(O.5e[g].x,O.5e[g].y);Q c=O.1Q[0].1v;Q a=O.1Q[0].1A;Q b=P.V.1k.7k(e,X P.U.1f(O.5e[g-1].x,O.5e[g-1].y));O.1Q[0].1i.3q=b*2O/1n.2r;O.1Q[0].1i.1H=O.1H;O.1Q[0].1i.li=7;Q o=P.U.1N.e8(c,a,{18:[n],1i:O.1Q[0].1i,1c:O.1c,1b:O.1b});o.1u();o.Z={2P:1d};o.3l=1a;o.5J=1a;o.11[o.4L].Z.9a=1a;O.11.17(o);p.7W=1a;p.4U=0;O.1M.17(p)}O.8B()},7B:S(){O.3G=R;Q d=X P.5B();Q c=O.11;if(c){19(Q a=0;a<c.W;a++){if(c[a]1m P.U.5q){Q b=c[a].Z;if(b){b=P.1o.2t(b,c[a].Z)}d.2R(c[a].9T(O.1c,b))}13{if(c[a]1m P.U.5a){d.2R(c[a].lh())}13{d.2R(c[a].2F())}}}}if(d.21!=R&&d.2h!=R&&d.2c!=R&&d.1Z!=R){O.az(d)}},2n:S(c,f){if(O.2A()){Y}P.U.2V.1x.2n.1q(O,1K);19(Q d=0,b=O.5e.W;d<b;d++){O.5e[d].x+=c;O.5e[d].y+=f}19(d=0;d<O.2Y.W;d++){Q e=O.2Y[d];if(R===e){1W}19(Q a=0;a<e.3E.W;a++){e.3E[a].2n(c,f)}if(e 1m P.U.e5){e.1u();e.2m()}}O.3z()},cE:S(c,g,e,b){P.U.2V.1x.cE.1q(O,1K);19(Q d=0,a=O.5e.W;d<a;d++){O.5e[d].x=O.18[d].x;O.5e[d].y=O.18[d].y}19(d=0;d<O.2Y.W;d++){Q f=O.2Y[d];if(R===f){1W}if(f 1m P.U.e5){f.1u();f.2m()}}},2i:S(b,f){P.U.2V.1x.2i.1q(O,1K);19(Q d=0,a=O.5e.W;d<a;d++){O.5e[d].x=O.18[d].x;O.5e[d].y=O.18[d].y}19(d=0;d<O.2Y.W;d++){Q e=O.2Y[d];if(R===e){1W}19(Q c=0;c<e.3E.W;c++){e.3E[c].2i(b,f)}if(e 1m P.U.e5){e.1u();e.2m()}}O.3z()},6U:S(){if(O.3x!==O.1c.3m()){19(Q b=0,a=O.11.W;b<a;b++){if(O.11[b]1m P.U.5a){O.11[b].6U();O.1Q.1i=P.1o.2t(O.1Q.1i,O.11[b].7l())}}}O.3x=O.1c.3m();O.3z()},6n:S(f,j){if(j.7W){if(f!==0){Y}Q h=P.V.1k.3F(O.18);h=P.V.1k.cF(h);if(h.W<O.3V){Y}Q e=P.V.1k.aQ(h);e=P.V.1k.cF(e);Q c=P.V.1k.aT(e);Q a=P.V.1k.2I(e[0],j);Q b;19(Q d=0;d<e.W;d++){if(a>P.V.1k.2I(e[d],j)){a=P.V.1k.2I(e[d],j);b=d}}Q g=0;if(b===0){b=1}19(Q d=0;d<b;d++){g+=P.V.1k.2I(e[d],e[d+1])}O.2a[0]=g/c}O.1u()},1t:"P.U.lg"});P.U.e6=X P.27(P.U.6b,{4e:R,4K:R,39:R,33:R,2e:R,63:R,7f:R,8i:R,xc:S(){Y O.fC(O.39,O.33)},7F:S(b){if(O.2A()){Y}if(b||b!==R){if(!(P.1o.4g(b))){b=[b]}O.18=b;if(O.18.W===2){O.4e=O.18[0];Q c=X P.2v(O.18[0].x,O.18[0].y);Q a=X P.2v(O.18[1].x,O.18[1].y);O.4K=P.1o.e7(c,a)}if(O.18.W===3){O.39=P.V.1k.7k(O.18[0],O.18[1])*2O/1n.2r;O.33=P.V.1k.7k(O.18[0],O.18[2])*2O/1n.2r}O.1u();O.2m();O.1E()}},hP:S(){Y[O.4e]},xb:S(a){if(O.2A()){Y}if(O.4K!==a){O.4K=a;O.1u();O.2m();O.1E()}},xa:S(){Y O.4K},x9:S(a){if(O.2A()){Y}if(O.39!==a){O.39=a;O.1u();O.1E()}},x8:S(){Y O.39},x7:S(a){if(O.2A()){Y}if(O.33!==a){O.33=a;O.1u();O.1E()}},x6:S(){Y O.33},fF:S(a){if(O.2A()){Y}if(O.2e!==a){O.2e=a;if(O.1H.W!==0){O.1u();O.1E()}}},jJ:S(b,a){if(O.2A()){Y}if(a>1){a=1}if(a<0){a=0}if(O.63[a]!==b){O.63[a]=b;O.1u();O.1E()}},x5:S(a){if(a>1){a=1}if(a<0){a=0}Y O.63[a]},x4:S(a){if(O.2A()){Y}if(O.7f!==a){O.7f=a;if(O.63.W!==0){O.1u();O.1E()}}},x3:S(){Y O.7f},x0:S(a){if(O.2A()){Y}if(O.8i!==a){O.8i=a;if(O.63.W!==0){O.1u();O.1E()}}},wZ:S(){Y O.8i},1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.cd;O.1s=P.V.1j.cd;O.4i=P.6E("wY");O.3V=2;O.5w=3;if(O.qk===R){O.qk=[]}if(O.2e===R){O.2e=(O.39+O.33)/2}if(O.63===R){O.63=[]}if(O.39===R){O.39=0}if(O.33===R){O.33=3Q}if(O.7f===R){O.7f=(O.39+O.33)/2}if(O.8i===R){O.8i=P.V.gS.6e}if((1l===a.fD||R===a.fD)&&O.5J===1d){O.fD=1a}O.qh=15;if(O.2a.W===0){O.2a.17(0.1)}if(a&&a.1Y){O.1Y=a.1Y}},1B:S(){O.4e=R;O.4K=R;O.39=R;O.33=R;O.2e=R;O.63=R;O.7f=R;O.8i=R;P.U.2V.1x.1B.1q(O,1K)},1u:S(){O.6o();if(!O.5J){if(O.18.W===2){O.4e=O.18[0];Q g=X P.2v(O.18[0].x,O.18[0].y);Q e=X P.2v(O.18[1].x,O.18[1].y);O.4K=P.1o.e7(g,e)}if(O.18.W===3){O.39=P.V.1k.7k(O.18[0],O.18[1])*2O/1n.2r;O.33=P.V.1k.7k(O.18[0],O.18[2])*2O/1n.2r}}if(O.4e&&O.4e!==R&&O.4K&&O.4K!==R){O.39%=3Q;O.33%=3Q;if(O.39>O.33){O.33+=3Q}Q f=P.V.1k.5s(O.39,O.33);if(f){O.39=0;O.33=3Q}Q d=O.fC(O.39,O.33);if(!f){d=O.fC(O.39,O.33);Q c=d[0].2s();c.7W=1a;c.4U=0;Q b=d[d.W-1].2s();b.7W=1a;b.4U=1;O.1M.17(c);O.1M.17(b);d.17(O.4e.2s());if(O.18.W>2){O.18.2S(1,O.18.W-1)}}Q a=P.U.3h.4s(P.V.1j.bU,d);a.Z={2P:1d};O.11.17(a);if(O.18.W===0){O.18.17(X P.U.1f(O.4e.x,O.4e.y))}if(O.18.W===1&&f){O.18.17(d[1n.fE(d.W/2)].2s())}O.qj();O.qi()}O.8B()},qj:S(){if(O.1H.W!==0){Q h=90;Q f=1d;O.2e%=3Q;if(O.33>O.39){if(O.2e<O.33&&O.2e>O.39){if((O.33-O.2e)<h){h=O.33-O.2e}if((O.2e-O.39)<h){h=O.2e-O.39}}13{if(O.2e+3Q<O.33&&O.2e+3Q>O.39){O.2e+=3Q;if((O.33-O.2e)<h){h=O.33-O.2e}if((O.2e-O.39)<h){h=O.2e-O.39}}13{f=1a}}}if(O.39>O.33){if(O.2e>O.39||O.2e<O.33){f=1a}13{if((O.39-O.2e)<h){h=O.39-O.2e}if((O.2e-O.33)<h){h=O.2e-O.33}}}if(h*2<4){f=1a}Q k=X P.U.1f();Q g;if(f===1a){Q b=O.2F();Q j=b.7O();g=P.U.3h.4s(34,[X P.U.1f(j.1U,j.1T)],O.1H);g.Z={2P:1d,2w:"cm"};O.11.17(g);k.x=j.1U;k.y=j.1T}13{Q e=O.2e+h;Q d=O.2e-h;Q c=O.fC(d,e);Q a=P.V.8Y.dt;if(P.V.1k.wX(c)){a=P.V.8Y.gT}g=P.U.1N.e8(0,P.V.1j.ba,{18:c,1H:O.1H,6q:1d,8f:1d,4p:a,1c:O.1c,1b:O.1b});g.1u();g.Z={2P:1d};O.11.17(g);k=c[1n.fE(c.W/2)].2s()}k.7W=1a;k.4U=2;O.1M.17(k)}},qi:S(){if(O.63.W===0){Y}O.7f%=3Q;Q b=P.1o.lf(X P.2v(O.4e.x,O.4e.y),3Q-O.7f+90,O.4K*6a);Q p=X P.U.1f(b.1U,b.1T);Q f=P.V.1k.2I(O.4e,p);Q r=[];r.17(O.4e);r.17(p);if(P.V.gS.6e!==O.8i){Q g=P.U.3h.4s(P.V.1j.8w,r);g.Z={2P:1d};O.11.17(g)}if(O.8i===P.V.gS.eZ){Q q;if(R===O.1c){q=0}13{Q o=O.1c.2G(X P.3L(0,0));Q n=O.1c.2G(X P.3L(O.qh,0));q=P.V.1k.2I(X P.U.1f(o.1U,o.1T),X P.U.1f(n.1U,n.1T))}Q c=P.V.1k.6Y(p,O.4e,q,12.5);Q a=P.V.1k.6Y(p,O.4e,q,-12.5);Q s=[];s.17(p.2s());s.17(c);s.17(a);Q h=P.U.3h.4s(P.V.1j.bU,s);h.Z={};h.Z={2P:1d,2q:1a,8M:1a,9w:1a};O.11.17(h)}if(!P.1o.4g(O.63)){O.63=[O.63]}Q u;if(O.63.W>=1){Q w=P.V.1k.6Y(O.4e,p,f*0.2,0);Q v=P.V.1k.6Y(O.4e,p,f*0.8,0);Q e=P.V.1k.6Y(w,p,f*0.hO,90);Q d=P.V.1k.6Y(v,p,f*0.hO,90);u=P.V.8Y.dt;Q t=[];if(e.x<d.x){t.17(e);t.17(d)}13{t.17(d);t.17(e);u=P.V.8Y.gT}Q m=P.U.1N.e8(0,P.V.1j.ba,{18:t,1H:O.63[0],6q:1d,4p:u,1c:O.1c,1b:O.1b});m.1u();m.Z={2P:1d};O.11.17(m)}if(O.63.W===2){u=P.V.8Y.gT;Q k=P.V.1k.6Y(w,p,f*0.hO,au);Q j=P.V.1k.6Y(v,p,f*0.hO,au);Q x=[];if(k.x<j.x){x.17(k);x.17(j)}13{x.17(j);x.17(k);u=P.V.8Y.dt}Q l=P.U.1N.e8(0,P.V.1j.ba,{18:x,1H:O.63[1],6q:1d,4p:u,1c:O.1c,1b:O.1b});l.1u();l.Z={2P:1d};O.11.17(l)}Q y=p.2s();y.7W=1a;y.4U=3;O.1M.17(y)},4B:S(){P.U.6b.1x.4B.1q(O,1K);if(!!O.1i){O.4e=X P.U.1f(O.1i.4e.x,O.1i.4e.y);O.33=O.1i.33;O.4K=O.1i.4K;O.7f=O.1i.7f;O.39=O.1i.39;O.2e=O.1i.2e;O.8i=O.1i.8i;O.63=O.1i.63}},4Q:S(){P.U.6b.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.4e=O.4e;O.1i.33=O.33;O.1i.4K=O.4K;O.1i.7f=O.7f;O.1i.39=O.39;O.1i.2e=O.2e;O.1i.8i=O.8i;O.1i.63=O.63}},6U:S(){if(O.8h!==1l&&O.8h!==O.1b.Z.1D){O.1D=O.1b.Z.1D}if(O.3x!==O.1c.3m()){if(O.5J===1a){Q a=O.3x/O.1c.3m();O.1S*=a;if(O.1S>=1){O.fD=1a}13{O.fD=1d}O.1u()}O.3x=O.1c.3m()}},6n:S(b,c){if(c.7W===1a){if(0===b){Q f=X P.2v(O.4e.x,O.4e.y);Q e=X P.2v(c.x,c.y);O.4K=P.1o.e7(f,e);O.39=P.V.1k.7k(O.18[0],c)*2O/1n.2r}13{if(1===b){Q f=X P.2v(O.4e.x,O.4e.y);Q e=X P.2v(c.x,c.y);O.4K=P.1o.e7(f,e);O.33=P.V.1k.7k(O.18[0],c)*2O/1n.2r}13{if(2===b){Q a=P.V.1k.7k(O.18[0],c)*2O/1n.2r;if((a>O.39&&a<O.33)||(a+3Q>O.39&&a+3Q<O.33)){O.2e=a}}13{if(3===b){Q d=P.V.1k.7k(O.18[0],c)*2O/1n.2r;if(O.39%3Q===O.33%3Q){O.7f=d}13{if((d>O.39&&d<O.33)||(d+3Q>O.39&&d+3Q<O.33)){O.7f=d}}}}}}}13{if(O.18.W>0){O.4e=O.18[0].2s()}if(O.18.W===2){Q f=X P.2v(O.18[0].x,O.18[0].y);Q e=X P.2v(O.18[1].x,O.18[1].y);O.4K=P.1o.e7(f,e)}}O.1u();O.2m();O.1E()},cE:S(b,e,c,a){Q d=1d;if(O.18.W===1){d=1a;O.18.17(O.1M[0])}P.U.6b.1x.cE.1q(O,1K);O.4e.x=O.18[0].x;O.4e.y=O.18[0].y;Q g=X P.2v(O.18[0].x,O.18[0].y);Q f=X P.2v(O.18[1].x,O.18[1].y);O.4K=P.1o.e7(g,f);if(d){O.18.2S(1,1)}},2i:S(a,b){O.18=[];O.1M=[];O.7f+=a;O.39+=a;O.33+=a;O.2e+=a;O.1u()},2n:S(b,d){if(O.2A()){Y}19(Q c=0,a=O.3E.W;c<a;c++){O.3E[c].2n(b,d)}O.4e.2n(b,d);O.18=[];O.1u();O.2m()},fC:S(e,b){Q a=[];19(Q d=e;d<=b;d+=5){Q c=P.1o.lf(X P.2v(O.4e.x,O.4e.y),3Q-d+90,O.4K*6a);a.17(X P.U.1f(c.1U,c.1T))}if((d-b)>0&&(d-b)<5){Q c=P.1o.lf(X P.2v(O.4e.x,O.4e.y),3Q-b+90,O.4K*6a);a.17(X P.U.1f(c.1U,c.1T))}Y a},1t:"P.U.e6"});P.U.e5=X P.27(P.U.2V,{2Y:R,1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.8v;O.1s=P.V.1j.8v;O.4i=P.6E("wW")},1u:S(){O.6o();O.11=[];Q n=O.4b(O.3t);if(n===R||n.T.5e===R){Y}Q g=1d;19(Q l=0;l<n.T.2Y.W;l++){if(O===n.T.2Y[l]){g=1a;1C}}if(!g){n.T.2Y.17(O)}if(O.2Y!==R){Q c=n.T.5e;Q h,f,d;19(h=0;h<O.2Y.W;h++){Q a=0,e=0;if(O.2Y[h].2z==="hN"){19(f=0;f<c.W;f++){if(O.2Y[h].8u===c[f].c7){a=f}if(O.2Y[h].7G===c[f].c7){e=f;1C}}}13{if(O.2Y[h].2z==="hM"){19(f=0;f<c.W;f++){if(O.2Y[h].8u===c[f].b6){a=f}if(O.2Y[h].7G===c[f].b6){e=f;1C}}}}Q m=[];19(d=a;d<=e;d++){m.17(X P.U.1f(c[d].x,c[d].y))}if(m.W>1){Q b=P.U.3h.4s(P.V.1j.8w,m);b.Z={2P:1d,6t:1a,1D:n.Z.1D*4+O.1b.Z.1D};O.11.17(b);m[0].7W=1a;m[0].4U=2*h;O.1M.17(m[0]);m[m.W-1].7W=1a;m[m.W-1].4U=2*h+1;O.1M.17(m[m.W-1])}}}O.8B()},7B:S(){O.3G=R;Q c=X P.5B();Q b=O.11;if(b){19(Q a=0;a<b.W;a++){c.2R(b[a].2F())}}if(c.21!=R&&c.2h!=R&&c.2c!=R&&c.1Z!=R){O.az(c)}},4B:S(){P.U.3H.1x.4B.1q(O,1K);if(!!O.1i){O.2Y=O.1i.2Y;O.2z=O.1i.2z}},4Q:S(){P.U.2V.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.2Y=O.2Y;O.1i.2z=O.2z}},2n:S(a,b){Y},6n:S(f,l){if(l.7W){Q m=O.4b(O.3t);if(!m){Y}Q k=m.T.18;Q h=m.T.5e;if(f%2===0){f=f/2;Q e;e=O.2Y[f].7G-O.2Y[f].8u;Q a=P.V.1k.2I(l,k[0]);Q b=0;19(Q c=0;c<k.W-e;c++){if(a>=P.V.1k.2I(l,k[c])){a=P.V.1k.2I(l,k[c]);b=c}}19(Q d=0;d<O.2Y.W;d++){if(O.2Y[d].2z==="hN"){O.2Y[f].8u=b+h[0].c7;O.2Y[f].7G=b+e+h[0].c7}13{if(O.2Y[d].2z==="hM"){O.2Y[f].8u=b+h[0].b6;O.2Y[f].7G=b+e+h[0].b6}}}}13{f=(f-1)/2;Q g=P.V.1k.2I(l,k[k.W-1]);19(Q c=0;c<k.W;c++){if(g>=P.V.1k.2I(l,k[c])){g=P.V.1k.2I(l,k[c]);b=c}}19(Q d=0;d<O.2Y.W;d++){if(O.2Y[d].2z==="hN"){O.2Y[f].7G=b+h[0].c7;if(O.2Y[f].7G<=O.2Y[f].8u){O.2Y[f].7G=O.2Y[f].8u+1}}13{if(O.2Y[d].2z==="hM"){O.2Y[f].7G=b+h[0].b6;if(O.2Y[f].7G<=O.2Y[f].8u){O.2Y[f].7G=O.2Y[f].8u+1}}}}}}O.1u()},1t:"P.U.e5"});P.U.46=P.27(P.U.7s,{x:R,y:R,3A:R,1c:R,6D:1d,4U:R,hK:3.5,eC:4,1I:S(b,f,e,d,c,a){P.U.1x.1I.1q(O,1K);O.x=b;O.y=f;O.3A=e;if(O.3A===R||O.3A===1l){O.3A=-1}O.1c=d;if(c===1a){O.6D=c}O.4U=a;if(O.4U===R||O.4U===1l){O.4U=-1}if(O.11===R){O.11=[]}},1u:S(){if(R===O.x||R===O.y||R===O.3A||R===O.1c){Y}Q F=[];Q r=[];Q z=O.1c.2G(X P.3L(0,0));Q x=O.1c.2G(X P.3L(O.hK,0));Q E=P.V.1k.2I({x:z.1U,y:z.1T},{x:x.1U,y:x.1T});6z(O.3A){1z 1:if(!O.6D){F.17(X P.U.1f(O.x,O.y));F.17(X P.U.1f(O.x,O.y+2*E));F.17(X P.U.1f(O.x-2*E,O.y+2*E));F.17(X P.U.1f(O.x-2*E,O.y))}13{F.17(X P.U.1f(O.x,O.y));F.17(X P.U.1f(O.x,O.y+1.2*E));F.17(X P.U.1f(O.x-1*E,O.y+2*E));F.17(X P.U.1f(O.x-2*E,O.y+1.2*E));F.17(X P.U.1f(O.x-2*E,O.y));r.17(X P.U.1f(O.x,O.y));r.17(X P.U.1f(O.x,O.y+0.6*E));r.17(X P.U.1f(O.x-2*E,O.y+0.6*E));r.17(X P.U.1f(O.x-2*E,O.y))}1C;1z 2:if(!O.6D){F.17(X P.U.1f(O.x-E,O.y));F.17(X P.U.1f(O.x+E,O.y));F.17(X P.U.1f(O.x+E,O.y+2*E));F.17(X P.U.1f(O.x-E,O.y+2*E))}13{F.17(X P.U.1f(O.x-E,O.y));F.17(X P.U.1f(O.x+E,O.y));F.17(X P.U.1f(O.x+E,O.y+1.2*E));F.17(X P.U.1f(O.x,O.y+2*E));F.17(X P.U.1f(O.x-E,O.y+1.2*E));r.17(X P.U.1f(O.x-E,O.y));r.17(X P.U.1f(O.x+E,O.y));r.17(X P.U.1f(O.x+E,O.y+0.6*E));r.17(X P.U.1f(O.x-E,O.y+0.6*E))}1C;1z 3:if(!O.6D){F.17(X P.U.1f(O.x,O.y));F.17(X P.U.1f(O.x+2*E,O.y));F.17(X P.U.1f(O.x+2*E,O.y+2*E));F.17(X P.U.1f(O.x,O.y+2*E))}13{F.17(X P.U.1f(O.x,O.y));F.17(X P.U.1f(O.x+2*E,O.y));F.17(X P.U.1f(O.x+2*E,O.y+1.2*E));F.17(X P.U.1f(O.x+E,O.y+2*E));F.17(X P.U.1f(O.x,O.y+1.2*E));r.17(X P.U.1f(O.x,O.y));r.17(X P.U.1f(O.x+2*E,O.y));r.17(X P.U.1f(O.x+2*E,O.y+0.6*E));r.17(X P.U.1f(O.x,O.y+0.6*E))}1C;1z 4:if(!O.6D){F.17(X P.U.1f(O.x,O.y+E));F.17(X P.U.1f(O.x-2*E,O.y+E));F.17(X P.U.1f(O.x-2*E,O.y-E));F.17(X P.U.1f(O.x,O.y-E))}13{F.17(X P.U.1f(O.x,O.y+0.2*E));F.17(X P.U.1f(O.x-E,O.y+E));F.17(X P.U.1f(O.x-2*E,O.y+0.2*E));F.17(X P.U.1f(O.x-2*E,O.y-E));F.17(X P.U.1f(O.x,O.y-E));r.17(X P.U.1f(O.x-2*E,O.y-E));r.17(X P.U.1f(O.x,O.y-E));r.17(X P.U.1f(O.x,O.y-0.4*E));r.17(X P.U.1f(O.x-2*E,O.y-0.4*E))}1C;1z 5:if(!O.6D){F.17(X P.U.1f(O.x,O.y+E));F.17(X P.U.1f(O.x+2*E,O.y+E));F.17(X P.U.1f(O.x+2*E,O.y-E));F.17(X P.U.1f(O.x,O.y-E))}13{F.17(X P.U.1f(O.x,O.y+0.2*E));F.17(X P.U.1f(O.x+E,O.y+E));F.17(X P.U.1f(O.x+2*E,O.y+0.2*E));F.17(X P.U.1f(O.x+2*E,O.y-E));F.17(X P.U.1f(O.x,O.y-E));r.17(X P.U.1f(O.x+2*E,O.y-E));r.17(X P.U.1f(O.x,O.y-E));r.17(X P.U.1f(O.x,O.y-0.4*E));r.17(X P.U.1f(O.x+2*E,O.y-0.4*E))}1C;1z 6:if(!O.6D){F.17(X P.U.1f(O.x,O.y));F.17(X P.U.1f(O.x,O.y-2*E));F.17(X P.U.1f(O.x-2*E,O.y-2*E));F.17(X P.U.1f(O.x-2*E,O.y))}13{F.17(X P.U.1f(O.x-2*E,O.y-2*E));F.17(X P.U.1f(O.x,O.y-2*E));F.17(X P.U.1f(O.x,O.y-0.8*E));F.17(X P.U.1f(O.x-E,O.y));F.17(X P.U.1f(O.x-2*E,O.y-0.8*E));r.17(X P.U.1f(O.x-2*E,O.y-2*E));r.17(X P.U.1f(O.x,O.y-2*E));r.17(X P.U.1f(O.x,O.y-1.4*E));r.17(X P.U.1f(O.x-2*E,O.y-1.4*E))}1C;1z 7:if(!O.6D){F.17(X P.U.1f(O.x-E,O.y));F.17(X P.U.1f(O.x-E,O.y-2*E));F.17(X P.U.1f(O.x+E,O.y-2*E));F.17(X P.U.1f(O.x+E,O.y))}13{F.17(X P.U.1f(O.x-E,O.y-2*E));F.17(X P.U.1f(O.x+E,O.y-2*E));F.17(X P.U.1f(O.x+E,O.y-0.8*E));F.17(X P.U.1f(O.x,O.y));F.17(X P.U.1f(O.x-E,O.y-0.8*E));r.17(X P.U.1f(O.x-E,O.y-2*E));r.17(X P.U.1f(O.x+E,O.y-2*E));r.17(X P.U.1f(O.x+E,O.y-1.4*E));r.17(X P.U.1f(O.x-E,O.y-1.4*E))}1C;1z 8:if(!O.6D){F.17(X P.U.1f(O.x,O.y));F.17(X P.U.1f(O.x+2*E,O.y));F.17(X P.U.1f(O.x+2*E,O.y-2*E));F.17(X P.U.1f(O.x,O.y-2*E))}13{F.17(X P.U.1f(O.x,O.y-2*E));F.17(X P.U.1f(O.x+2*E,O.y-2*E));F.17(X P.U.1f(O.x+2*E,O.y-0.8*E));F.17(X P.U.1f(O.x+E,O.y));F.17(X P.U.1f(O.x,O.y-0.8*E));r.17(X P.U.1f(O.x,O.y-2*E));r.17(X P.U.1f(O.x+2*E,O.y-2*E));r.17(X P.U.1f(O.x+2*E,O.y-1.4*E));r.17(X P.U.1f(O.x,O.y-1.4*E))}1C;1z 0:z=O.1c.2G(X P.3L(0,0));x=O.1c.2G(X P.3L(O.eC,0));E=2*P.V.1k.2I({x:z.1U,y:z.1T},{x:x.1U,y:x.1T});Q A=X P.U.1f(0,0);Q D=[];19(Q I=15;I<=75;I+=10){D.17(P.V.1k.hL(A,E,E,I))}Q C=[];19(I=15;I<=75;I+=10){C.17(P.V.1k.hL(A,1.2*E,1.2*E,I))}Q e=E*0.8;Q q=D[0];Q n=C[0];Q b=P.V.1k.7k(q,n)*2O/1n.2r;Q f=X P.U.1f((q.x+n.x)/2,(q.y+n.y)/2);Q w=P.V.1k.ae(q,n,E*0.5);Q u=P.V.1k.ae(n,q,E*0.5);Q t=P.V.1k.hL(f,e,e,b-90);Q k=D[D.W-1];Q h=C[C.W-1];Q d=X P.U.1f((k.x+h.x)/2,(k.y+h.y)/2);Q a=P.V.1k.7k(k,h)*2O/1n.2r;Q s=P.V.1k.ae(k,h,E*0.5);Q p=P.V.1k.ae(h,k,E*0.5);Q l=P.V.1k.hL(d,e,e,a+90);F=F.4Y(D);F.17(p);F.17(l);F.17(s);19(I=C.W-1;I>=0;I--){F.17(C[I])}F.17(w);F.17(t);F.17(u);Q j=P.V.1k.jj(F);19(Q G=0;G<F.W;G++){F[G].x+=O.x-j.x;F[G].y+=O.y-j.y}1C;1z-1:1z-2:z=O.1c.2G(X P.3L(0,0));x=O.1c.2G(X P.3L(O.hK,0));E=P.V.1k.2I({x:z.1U,y:z.1T},{x:x.1U,y:x.1T});Q c=X P.U.1f(O.x-E,O.y+E);Q H=X P.U.1f(O.x-E,O.y-E);Q g=X P.U.1f(O.x+E,O.y+E);Q o=X P.U.1f(O.x+E,O.y-E);F.17(c);F.17(g);F.17(o);F.17(H);1C;6y:Y}if(O.11.W===0){Q J=X P.U.5h(F);Q v=X P.U.4T([J]);v.Z={2P:1d,2q:1d,8M:1a};O.11.17(v);if(r.W!==0){Q B=X P.U.5h(r);Q y=X P.U.4T([B]);y.Z={2P:1d,2q:1a,1D:0,6t:1a};O.11.17(y)}}13{if(O.11.W>0){F.17(X P.U.1f(F[0].x,F[0].y));O.11[0].11[0].11=F}if(O.11.W>1){if(r.W!==0){r.17(X P.U.1f(r[0].x,r[0].y));O.11[1].11[0].11=r}}}O.3z()},2s:S(){Q T=eV("X "+O.1t+"(O.x, O.y, O.3A, 1g, O.6D, O.4U)");T.1u();Y T},3z:S(){P.U.7s.1x.3z.1q(O,1K);O.cD(O.11)},cD:S(b){19(Q a=0;a<b.W;a++){b[a].3z();if(b[a]1m P.U.7s){O.cD(b[a].11)}}},2n:S(a,b){O.x=O.x+a;O.y=O.y+b;O.1u()},1B:S(){O.x=R;O.y=R;O.3A=R;O.1c=R;O.6D=1d;O.4U=R;P.U.1x.1B.1q(O,1K)},1t:"P.U.46"});P.U.9S=X P.27(P.U.2V,{3W:R,62:R,8g:R,qg:R,4k:R,aB:R,le:S(a){if(O.2A()){Y}O.2e=a;O.fB()},1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.4i=P.6E("cc");O.1s=P.V.1j.cc},1B:S(){O.4k=R;O.aB=R;O.qg=R;P.U.2V.1x.1B.1q(O,1K)},1u:S(){if(O.8g===R){Y}if(O.62===R){Y}if(O.62.1H===R||O.62.1H.W===0){Y}O.6o();Q r=O.3W.8a(O.62.4q);Q o=O.8g.36;Q w=r.36;Q v=X P.U.1f((o.x+w.x)/2,(o.y+w.y)/2);Q e=P.V.1k.qf(O.62.1H[0]);19(Q u=1;u<O.62.1H.W;u++){Q z=P.V.1k.qf(O.62.1H[u]);if(e<z){e=z}}if(O.62.2U===R||O.62.2T===R){Q y=O.4k+(O.1S*O.1b.Z.1y+1)*e/2;Q q=O.hJ();Q f=q*y*O.1c.3m();if(O.aB===1a){f=-f}Q h=P.V.1k.ld([o,w],f);O.18=[];Q c=X P.U.1f((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);O.18.17(c);Q g=O.1c.3a(X P.2v(v.x,v.y));Q m=O.1c.3a(X P.2v(c.x,c.y));O.62.2U=m.x-g.x;O.62.2T=m.y-g.y}13{Q p=O.1c.3a(X P.2v(v.x,v.y));Q s=X P.3L(p.x+O.62.2U,p.y+O.62.2T);Q b=O.1c.2G(s);if(O.18.W===0){O.18.17(X P.U.1f(b.1U,b.1T))}13{O.18[0].x=b.1U;O.18[0].y=b.1T}}Q x=P.V.1k.7k(o,w)*2O/1n.2r;Q k=O.qe(e);19(u=0;u<k.W;u++){Q a=k[u];Q n=[];19(Q t=0;t<a.2b.W;t++){n.17(P.V.1k.wV(O.18[0],a.2b[t],x))}if(a.2z===P.V.1j.4E){if(a.1H.W!==0){Q l=P.U.3h.4s(P.V.1j.4E,n,a.1H);l.Z={};l.Z=a.Z;l.Z.37=-x+90;O.11.17(l)}}13{Q d=P.U.3h.4s(a.2z,n);d.Z=a.Z;O.11.17(d)}}O.8B()},hJ:S(){Q a=[];19(Q b=0;b<O.3W.2p.W;b++){a.17(O.3W.2p[b].36)}Y P.V.1k.hJ(a)},2n:S(a,b){if(O.2A()){Y}P.U.2V.1x.2n.1q(O,1K);O.fB()},6U:S(){if(!O.3l||O.3l===1d){O.1u()}13{O.1S*=O.3x/O.1c.3m();if(O.1S>5){O.1S=5}13{if(O.1S<1){O.1S=1}}O.1u()}O.3x=O.1c.3m()},fB:S(){Q b=O.3W.8a(O.62.4q);Q e=O.8g.36;Q d=b.36;Q a=X P.U.1f((e.x+d.x)/2,(e.y+d.y)/2);Q f=O.1c.3a(X P.2v(a.x,a.y));Q c=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));O.62.2U=c.x-f.x;O.62.2T=c.y-f.y},qe:S(g){Q a=O.62.1H;Q p=O.1S*O.1b.Z.1y+1;Q n=O.1c.2G(X P.3L(0,0));Q l=O.1c.2G(X P.3L(p,0));Q e=P.V.1k.2I({x:n.1U,y:n.1T},{x:l.1U,y:l.1T});Q j=e;Q b=e*g;Q m=a.W+2;Q k=[];Q h=m*j*0.5;Q c=X 6Z;c.2z=P.V.1j.bU;c.2b=[];c.2b.17(X P.U.1f(h,0));c.2b.17(X P.U.1f(-2*j+h,0.5*b));c.2b.17(X P.U.1f(-m*j+h,0.5*b));c.2b.17(X P.U.1f(-m*j+h,-0.5*b));c.2b.17(X P.U.1f(-2*j+h,-0.5*b));c.Z={2P:1d,1y:12};k.17(c);19(Q r=1;r<=a.W;r++){Q q=X 6Z;q.2z=P.V.1j.8w;q.2b=[];q.2b.17(X P.U.1f(-(r+1)*j+h,0.5*b));q.2b.17(X P.U.1f(-(r+1)*j+h,-0.5*b));q.Z={2P:1d,1y:12};k.17(q);Q o=X 6Z;o.2z=P.V.1j.4E;o.2b=[];o.2b.17(X P.U.1f(-(0.5+r+1)*j+h,0));o.1H=a[r-1];o.Z={2P:1d,1y:12,3p:"lc la"};o.Z.2w="cm";k.17(o)}Q s=X P.U.1f(-1.4*j+h,0);Q d=X 6Z;d.2z=P.V.1j.4E;d.2b=[];d.2b.17(s);d.1H=O.62.7H.5R();d.Z={2P:1d,1y:12,6K:1a,3p:"lc la"};d.Z.2w="cm";k.17(d);Q f=X 6Z;f.2z=P.V.1j.eM;f.2b=[];f.2b.17(s);f.2b.17(X P.U.1f(s.x,0.4*j));f.Z={2P:1d,1y:12};k.17(f);Y k},1t:"P.U.4o"});P.U.by=P.27(P.U.3H,{5i:R,1M:R,2a:R,aA:S(a){if(O.2A()){Y}if(!7A(a)){O.3q+=a;O.1u();O.1E()}},1I:S(a){O.1h=[];P.U.3H.1x.1I.1q(O,1K);O.1v=0;O.1A=P.V.1j.ca;O.1s=P.V.1j.ca;O.4i=P.6E("wU");if(O.4j===R){O.4j=[]}if(O.5i===R){O.5i=0.8}},1B:S(){O.1h=R;P.U.3H.1x.1B.1q(O,1K)},1u:S(){if(!P.1o.4g(O.4j)){O.4j=[O.4j]}if(!P.1o.4g(O.5i)){O.5i=[O.5i]}if(O.11.W===0){if(0===O.4j.W){Y}Q k=[];19(Q f=0;f<O.4j.W;f++){Q q=O.4b(O.4j[f]);if(q===R){1W}if((q.T.1v===4F&&(q.T.1A>=l9&&q.T.1A<=qd))){k.17(q);q.1g.4D([q])}}19(f=0;f<k.W;f++){k[f].T.4M=O;O.11.17(k[f])}}if(O.11.W!==0){O.1M=[];O.11[0].T.3q=O.3q;O.11[0].T.1u();Q o=O.11[0].T.18[0].2s();Q b=O.1c.3a(X P.2v(o.x,o.y));if(O.11[0].T.6V===1a){b.x+=O.11[0].T.5y;b.y+=O.11[0].T.5x}Q g=O.1c.2G(b);o.x=g.1U;o.y=g.1T;O.4t=X P.U.1f(o.x,o.y);Q p=X P.U.1f(o.x,o.y);p.4U=0;O.1M.17(p);19(Q e=1;e<O.11.W;e++){6T(O.5i.W<e){O.5i.17(O.5i[O.5i.W-1])}Q l=O.5i[e-1];Q d=O.l8(O.11[e-1]);Q h=O.11[e-1].T.18[0].2s();Q n=O.1c.3a(X P.2v(h.x,h.y));if(O.11[e-1].T.6V===1a){n.x+=O.11[e-1].T.5y;n.y+=O.11[e-1].T.5x}Q c=O.1c.2G(n);h.x=c.1U;h.y=c.1T;d.2i(O.3q,h);Q a=P.V.1k.jk(l,h,d);O.11[e].T.3q=O.3q;O.11[e].T.7F([X P.U.1f(a.x,a.y)]);Q m=X P.U.1f(a.x,a.y);m.4U=e;O.1M.17(m)}}O.3z()},l8:S(b){Q a=b.T.3q;b.T.3q=0;b.T.1u();Q c=b.T.2F();b.T.3q=a;b.T.1u();if(b.T.2y.x>=0){if(b.T.5K){Y X P.U.1f(c.2c,c.1Z)}13{Y X P.U.1f(c.21,c.1Z)}}13{if(b.T.5K){Y X P.U.1f(c.21,c.2h)}13{Y X P.U.1f(c.2c,c.2h)}}},6n:S(d,e){if(d===0){O.11[0].T.7F([e])}13{Q g=O.11[d-1].T.18[0];Q c=O.l8(O.11[d-1]);c.2i(O.3q,O.11[d-1].T.18[0]);Q f=P.V.1k.2I(g,c);Q a=P.V.1k.l7(e,g,c);Q b=P.V.1k.2I(g,a);O.5i[d-1]=b/f}O.1u();O.1E()},6U:S(){19(Q b=0,a=O.11.W;b<a;b++){O.11[b].T.3l=O.3l;O.11[b].T.6U()}O.1u()},4B:S(){P.U.3H.1x.4B.1q(O,1K);if(O.1i!==R){O.5i=O.1i.5i;O.cC=O.1i.cC}},4Q:S(){P.U.3H.1x.4Q.1q(O,1K);if(O.1i!==R){O.1i.5i=O.5i}},1t:"P.U.by"});P.U.3g=X P.27(P.U.7s,{1r:R,3t:R,1v:R,1A:R,5w:0,3V:0,1s:R,4i:R,18:R,1b:R,1g:R,1I:S(a){P.U.7s.1x.1I.1q(O,R);O.3V=3;O.5w=hI;O.1v=0;O.1A=P.V.1j.9A;O.1s=P.V.1j.9A;O.4i="wT wS";O.18=[];if(a&&a.1i){O.4B(a.1i)}P.1o.2R(O,a);if(O.1r===1l||O.1r===R){O.1r=P.V.1k.eY()}},1B:S(){O.1v=R;O.1A=R;O.1s=R;O.4i=R;O.1r=R;O.3t=R;O.3V=R;O.5w=R;O.18=R},1u:S(){Q b=R;if(O.11.W!==0){b=O.11[0].id;O.11=[]}Q a;if(O.18!==R&&O.18.W>=O.3V){a=P.U.3h.4s(32,O.18)}13{if(O.18.W>=2&&O.18.W<O.3V){a=P.U.3h.4s(24,O.18)}}if(a&&b!=R){a.id=b}O.11.17(a)},6n:S(a,c){O.1u();Q b=O.1b.1g.4b(O.3t);if(R===b||1l===b){Y}b.T.1u();b.1g.2m(b)},2n:S(b,e){19(Q d=0,a=O.18.W;d<a;d++){O.18[d].2n(b,e)}if(O.1b.1g!==R){Q c=O.1b.1g.4b(O.3t);if(R===c||1l===c){Y}c.T.1u();c.1g.2m(c)}},2i:S(b,e){19(Q d=0,a=O.18.W;d<a;d++){O.18[d].2i(b,e)}if(O.1b.1g!==R){Q c=O.1b.1g.4b(O.3t);if(R===c||1l===c){Y}c.T.1u();c.1g.2m(c)}},2s:S(){Q hH=P.1o.5Z(O.7l());Q 9R={1v:O.1v,1A:O.1A,1i:hH};Q T=eV("X "+O.1t+"(9R)");T.1r=P.V.1k.eY();Y T},4B:S(b){if(b!==R){O.1v=b.1v;O.1A=b.1A;O.1s=b.1s;O.4i=b.4i;O.5w=b.qc;O.3V=b.gz;if(b.1r!==1l){O.1r=b.1r}if(b.3t!==1l){O.3t=b.3t}if(b.18){19(Q a=0;a<b.18.W;a++){O.18.17(X P.U.1f(b.18[a].x,b.18[a].y))}}}},7l:S(){Q a={};a.1r=O.1r;a.3t=O.3t;a.1v=O.1v;a.1A=O.1A;a.1s=O.1s;a.4i=O.4i;a.qc=O.5w;a.gz=O.3V;a.18=O.18;Y a},fA:S(a){O.1L=a;if(O.1L.3g.2l("e4")){O.1r=O.1L.3g.e4}if(O.1L.3g.2l("e3")){O.3t=O.1L.3g.e3}if(O.1L.3g.6j){O.18=[];19(Q b=0;b<O.1L.3g.6j.W;b++){O.18.17(X P.U.1f(O.1L.3g.6j[b][0],O.1L.3g.6j[b][1]))}}if(O.1b!==R){O.1b.Z=P.V.5H.qb(O.1b.Z,O.1L.1V)}},fz:S(){if(!O.1L){O.1L={}}if(!O.1L.2l("2z")){O.1L.2z="3g"}if(!O.1L.2l("3g")){O.1L.3g={}}O.1L.3g.e4=O.1r;O.1L.3g.e3=O.3t;if(!O.1L.3g.2l("6j")){O.1L.3g.6j=[]}19(Q a=0;a<O.18.W;a++){if(O.1L.3g.6j.W>a){O.1L.3g.6j[a][0]=O.18[a].x;O.1L.3g.6j[a][1]=O.18[a].y}13{O.1L.3g.6j.17([O.18[a].x,O.18[a].y,0])}}if(O.1b!==R){P.V.5H.qa(O.1b.Z,O.1L.3g)}},1t:"P.U.3g"});P.U.hG=X P.27(P.U.2V,{7t:R,bx:S(a){if(O.2A()){Y}if(!7A(a)){O.1b.Z.4O*=(a/O.1S);O.1b.Z.4N*=(a/O.1S);O.1S=a;O.1u();O.1E()}},aA:S(a){if(O.2A()){Y}if(!7A(a)){O.3q+=a;O.1u();O.1E()}},1I:S(a){P.U.2V.1x.1I.1q(O,1K);O.3V=1;O.5w=1;O.1v=0;O.1A=P.V.1j.f1;O.1s=P.V.1j.f1;O.4i=P.6E("wR");if(O.7t===R){O.7t="../wQ/wP/wO.gZ"}},1B:S(){P.U.2V.1x.1B.1q(O,1K)},1u:S(){if(O.18.W<O.3V){Y}O.6o();Q b={2P:1d};O.1b.Z.a5=b.a5=O.1b.Z.a5?O.1b.Z.a5:O.7t;O.1b.Z.bK=b.bK=O.1b.Z.bK?O.1b.Z.bK:1;O.1b.Z.4N=b.4N=O.1b.Z.4N?O.1b.Z.4N:32;O.1b.Z.4O=b.4O=O.1b.Z.4O?O.1b.Z.4O:32;b.d1=-O.3q;b.a7=O.1b.Z.a7?O.1b.Z.a7:1l;b.a6=O.1b.Z.a6?O.1b.Z.a6:1l;Q a=X P.U.1f(O.18[0].x,O.18[0].y);a.Z=b;O.11.17(a);O.8B()},7B:S(){O.3G=R;Q a=X P.5B();Q g=O.11;if(g){19(Q e=0,h=g.W;e<h;e++){if(g[e]1m P.U.1f){Q d=O.1c.3a(X P.2v(O.18[0].x,O.18[0].y));Q j=g[e].Z.a7?g[e].Z.a7:0.5*g[e].Z.4N;Q c=g[e].Z.a6?g[e].Z.a6:0.5*g[e].Z.4O;Q k=X P.3L(d.x-j,d.y-c);Q f=X P.3L(k.x+g[e].Z.4N,k.y+g[e].Z.4O);Q l=O.1c.6B(k);Q b=O.1c.6B(f);a.2R(X P.5B(l.1U,b.1T,b.1U,l.1T))}13{a.2R(g[e].2F())}}}if(a.21!=R&&a.2h!=R&&a.2c!=R&&a.1Z!=R){O.az(a)}},6n:S(a,b){O.1u()},2n:S(b,d){if(O.2A()){Y}19(Q c=0,a=O.18.W;c<a;c++){O.18[c].2n(b,d)}O.1u()},6U:S(){if(O.3x!==O.1c.3m()){O.3z();O.1E()}},4B:S(a){P.U.2V.1x.4B.1q(O,1K);if(O.1i!==R){if(O.1i.7t){O.7t=O.1i.7t}}},4Q:S(){P.U.2V.1x.4Q.1q(O,1K);if(O.1i!==R){O.1i.7t=O.7t}},1t:"P.U.hG"});P.U.fw=P.27(P.U.6b,{4p:0,6q:1a,9b:1d,8f:1d,8A:1d,9c:0,wN:S(){Y O.4p},wM:S(a){if(O.2A()){Y}if(O.4p!==a){O.4p=a;O.1u();O.1E()}},wL:S(){Y O.6q},wK:S(a){if(O.2A()){Y}if(O.6q!==a){O.6q=a;O.1u();O.1E()}},wJ:S(){Y O.9b},wI:S(a){if(O.2A()){Y}if(O.9b!==a){O.9b=a;if(O.6q){O.1u();O.1E()}}},wH:S(){Y O.8f},wG:S(a){if(O.2A()){Y}if(O.8f!==a){O.8f=a;if(O.6q){O.1u();O.1E()}}},wF:S(){Y O.8A},wE:S(a){if(O.2A()){Y}if(O.8A!==a){O.8A=a;if(O.4p===P.V.8Y.jW&&O.6q){O.1u();O.1E()}}},q9:S(){Y O.9c},q8:S(a){if(O.2A()){Y}if(O.9c!==a){O.9c=a;if(O.4p!==P.V.8Y.jW){O.1u();O.1E()}}},4B:S(){P.U.6b.1x.4B.1q(O,1K);if(!!O.1i){O.8A=O.1i.8A;O.8f=O.1i.8f;O.4p=O.1i.4p;O.6q=O.1i.6q;O.9c=O.1i.9c;O.9b=O.1i.9b}},4Q:S(){P.U.6b.1x.4Q.1q(O,1K);if(!!O.1i){O.1i.8A=O.8A;O.1i.8f=O.8f;O.1i.4p=O.4p;O.1i.6q=O.6q;O.1i.9c=O.9c;O.1i.9b=O.9b}},6U:S(){if(O.3x!==1l&&O.3x!==O.1c.3m()){O.1u()}},1t:"P.U.fw"});P.2N.dV=P.27(P.2N.8d,{1I:S(a){P.2N.8d.1x.1I.1q(O,1K)},5S:S(l,a,g){S k(u,p){if(u.1s===P.V.1j.5j){Y}Q v=1d;Q m=[];19(Q s=0;s<u.11.W;s++){if((u.11[s].Z.2H===P.V.4X.b9||u.11[s].Z.2H===P.V.4X.aj)&&(u.11[s].Z.2P||p.4W!==u.11[s].Z.1D)){v=1a;m.17(s)}13{if((u.11[s].Z.2H===P.V.4X.b9||u.11[s].Z.2H===P.V.4X.aj)&&!u.11[s].Z.2P&&p.1D!==u.11[s].Z.1D){v=1a;m.17(s)}}}if(v){u.bu=p.4W/2+p.1D/2;19(Q r=0;r<m.W;r++){Q q=m[r];if(u.11[q].Z.2P&&u.11[q].47&&u.11[q].47!==R){Q t=u.fo(u.11[q].47);if(R===t){1W}t.id=u.11[q].id;u.11[q]=t}}}}S o(w,p){if(w.bt()===1d){Y}Q q,v,u,t;if(p.3O===1&&p.3Z==="6e"&&w.3E.W===0){q=w.11.W;19(v=0;v<q;v++){if(w.11[v].6p&&w.11[v].6p===1a){w.e2([w.11[v]]);w.11.2S(v,1);q--}}w.6p=1d}if(w.bt()===1a&&(p.3O!==1||(p.3Z&&p.3Z!=="6e"))){q=w.11.W;Q s=1d;19(t=0;t<q;t++){if(w.11[t].6p&&w.11[t].6p===1a){s=1a;1C}}if(s===1d){Q x=[];19(v=0;v<w.11.W;v++){x.17(w.11[v].2s())}19(u=0;u<q;u++){if(w.11[u].Z.2P===1d){Q m=P.U.3h.dU(x[u]);Q r=P.U.3h.4s(32,m);if(r!==1l){r.Z={};r.Z=P.1o.2t(r.Z,w.11[u].Z);r.Z.1D=0;r.Z.2H=P.V.4X.6e;r.Z.6t=1a;r.6p=1a;w.11.2S(u++,0,r)}}}}}}Q c=1a;Q h,d,j,b;if(l 1m P.U.3H||l 1m P.U.4J){19(h=0;h<l.11.W;h++){l.11[h].Z.23=a.23;c=O.5S(l.11[h].T,l.11[h].Z,l.11[h].id)}Y c}13{if(l 1m P.U.1N){o(l,a);k(l,a);19(h=0,j=l.11.W;h<j;h++){O.8n(l.11[h].Z,a,l);if(l 1m P.U.5a&&h===l.4L&&l.l6===1d){l.11[h].Z.23="3N"}if(l.11[h].1t==="P.U.5q"){l.11[h].Z.8c=l.11[h].8I.5R();Q e={};P.1o.2t(e,l.11[h].Z);if(e.9a===1d){e.1y/=O.3m()}Q n=X P.U.1f(l.11[h].x,l.11[h].y);O.9t(g+"hF"+l.11[h].id,e,n);c=1a}13{c=O.5S(l.11[h],l.11[h].Z,g)&&c}}if(l.1s===P.V.1j.gV){O.q7(g,l.1b.Z,l)}Y c}13{if(l 1m P.U.46||l 1m P.U.3g){19(d=0;d<l.11.W;d++){if(l 1m P.U.46&&l.6D===1a){O.8n(l.11[d].Z,a,l);c=O.5S(l.11[d],l.11[d].Z,g)&&c}13{c=O.5S(l.11[d],a,g)&&c}}Y c}13{if((l.1t==="P.U.7s")||(l.1t==="P.U.hx")||(l.1t==="P.U.hw")||(l.1t==="P.U.hv")||(l.1t==="P.1P.4J")){19(h=0,j=l.11.W;h<j;h++){c=O.5S(l.11[h],a,g)&&c}Y c}}}}c=1d;Q f=1d;if(a.23!=="3N"){if(a.hz){O.po(l.id,l,a,g)}13{f=1a}c=O.pn(l.id,l,a,g)}if(c==1d){b=4R.79(l.id);if(b){if(b.kQ.hz){f=1a}b.9Q.7e(b)}}if(f){b=4R.79(l.id+O.pm);if(b){b.9Q.7e(b)}}Y c},q7:S(r,t,d){S c(v){if(9n.q6){v.q4();Q u=9n.q6();u.wD(v);u.wC()}13{if(4R.q5){Q u=4R.q5.wB();u.wA(v);u.wz(1d);u.wy()}}}Q q=O.3m();Q e=d.2F().5r();Q s=d.2F().5F();Q l=(d.18[0].x/q+O.21);Q b=P.fv.42;Q k;if(b==="fu"){if(!t.1y){t.1y=12}Q a=3P(t.1y)*0.35;k=-((d.18[0].y/q-O.1Z)-a)}13{k=-(d.18[0].y/q-O.1Z)}Q p=d.wx;Q n=d.ww;Q j=r+"wv";Q g=j+"wu";Q m=O.5v(r,"wt");if(d.ws){m.Z.88="kX";Q f=4R.79(g);if(!f){f=4R.q3("q2://q1.w3.q0/pZ/pY","hE");Q o=4R.79(j);if(o){f.8z=o.8z}13{f.8z=d.1H}O.1c.hE.5u(f)}f.1w(R,"id",g);f.1w(R,"wr",1a);f.Z.3s=t.3B;f.Z.1y=3P(t.1y)+"px";f.Z.3p=t.3p;f.Z.3Y=t.3Y;f.Z.3J=t.3J;f.Z.pW="1C-pV";f.Z.d5="84";f.Z.pU="3N";f.Z.wq="#5Q";f.Z.wp=o9;f.Z.eX="pR";Q h=O.wo;f.Z.21=(h.x+l+p/2).5R()+"px";f.Z.1Z=(h.y+k+n/2).5R()+"px";f.Z.wn=p.5R()+"px";f.Z.wm="a8";f.Z.wl=1.2;f.Z.pT="e0 e0 e0";f.Z.dX="7T(1,1) 6I(-50%, -50%)";f.l5("e1",S(u){u.l4()});f.l5("7u",S(u){u.l4()});f.l5("7V",S(u){u.l4()});f.q4();if(f.8z.W!==0){4R.wk("wj",1d,R)}d.pX=f}13{d.wi();6T(m.3w.W){m.7e(m.3w[0])}m.Z.88="ay";m.1w(R,"x",(l+p/2).5R()+"px");m.1w(R,"y",(k+n/2).5R()+"px");m.1w(R,"3U",p.5R()+"px");m.1w(R,"5m",n.5R()+"px");Q o=4R.q3("q2://q1.w3.q0/pZ/pY","hE");o.1w(R,"id",j);Q f=4R.79(g);if(f){O.1c.hE.7e(f);d.pX=R}o.8z=d.1H;o.Z.3s=t.3B;o.Z.1y=3P(t.1y).5R()+"px";o.Z.3p=t.3p;o.Z.3Y=t.3Y;o.Z.3J=t.3J;o.Z.pW="1C-pV";o.Z.d5="84";o.Z.pU="3N";o.Z.pT="e0 e0 e0";o.Z.dX="7T(1,1) 6I(-50%, -50%)";m.5u(o);if(!m.9Q){O.cA.5u(m)}d.wh=o}},9t:S(t,u,b){Q A=u.1y;if(u.3j===1l){u.3j=4F}if(u.3j<=0){u.3j=0;u.1y=0}if(u.3j>cf){u.3j=cf}if(u.3e===1l){u.3e=0}if(u.3e>30){u.3e=30}13{if(u.3e<0){u.3e=0}}Q h=O.5v(t+O.dZ,"8I");if(h!==R&&P.1o.3v(O.cA.3w,h)!==-1){O.cA.7e(h)}Q s=O.3m();Q k=((b.x-O.wg)/s+O.21);Q j=(b.y/s-O.1Z);if(u.1y<6){u.23="3N"}Q r;if(u.5E===1d){r=4R.79(t+"hD");if(r!==R){O.cB.7e(r)}}13{if(u.5E===1a){Q d=t+"hD";Q p=k;Q n=j;if(u.5D){p=k+u.5D}if(u.5C){n=-(-j+u.5C)}if(u.37!==0){Q o=k;Q m=j;Q w=(-u.37)*1n.2r/2O;Q e=1n.5G(1n.cs(p-o,2)+1n.cs(n-m,2));Q g=w+1n.aw(n-m,p-o);p=o+(e*1n.7d(g));n=m+(e*1n.7c(g))}Q f=u.4u;u.4u=1d;Q c=u.3B;u.3B=u.67;O.av(d,u,p,n);u.3B=c;u.4u=f}}O.av(t+O.dZ,u,k,j);if(u.69===1a){Q q=O.5v(t+"hD","8I");if(q===R||P.1o.3v(O.cA.3w,q)===-1){q=O.5v(t+O.dZ,"8I")}if(q===R||P.1o.3v(O.cA.3w,q)===-1){Y}Q l=O.5v(t+O.dZ,"8I");Q a=l.wf();Q z=O.5v(t+"l3","we");z.1w(R,"x",a.x);z.1w(R,"3U",a.3U);if(P.fv.42==="fu"){Q v=u.1D*2;z.1w(R,"y",a.y+3P(a.5m)/2-v);z.1w(R,"5m",l.pQ.wd().5m-v)}13{z.1w(R,"y",a.y);z.1w(R,"5m",a.5m)}z.Z.2q=u.68;if(u.37){z.1w(R,"dX","2i("+u.37+" "+k+","+(-j)+")")}if(!z.9Q){O.cA.pC(z,q)}}13{r=4R.79(t+"l3");if(r!==R){O.cB.7e(r)}}u.1y=A},av:S(s,u,m,l){Q k=O.5v(s,"8I");k.1w(R,"x",m);k.1w(R,"y",-l);if(u.23){k.1w(R,"23",u.23)}if(u.4u===1a){if(u.5W){k.1w(R,"3i",u.5W)}if(u.5V){k.1w(R,"3i-3U",u.5V)}}if(u.37){k.1w(R,"dX","2i("+u.37+" "+m+","+(-l)+")")}if(u.3B){k.1w(R,"2q",u.3B)}if(u.58){k.1w(R,"2E",u.58)}if(u.3p){k.1w(R,"9r-wc",u.3p)}if(u.1y){k.1w(R,"9r-eB",u.1y)}if(u.3J){k.1w(R,"9r-wb",u.3J)}if(u.3Y){k.1w(R,"9r-Z",u.3Y)}if(P.fv.42==="wa"){Q o=1l;if(u.3j!==4F&&u.3e!==0){o=u.3e+(u.3j/4F)*3P(u.1y)*u.8c.W}if(u.3j!==4F&&u.3e===0){Q b=4R.kL("w9");4R.fn.5u(b);b.Z.3U="pS";b.Z.5m="pS";if(u.1y){b.Z.1y=X gk(u.1y)+"px"}if(u.3p){b.Z.3p=u.3p}if(u.3J){b.Z.3J=u.3J}b.Z.eX="pR";b.Z.88="kX";b.8z=u.8c;Q c=b.w8;o=(u.3j/4F)*c+u.8c.W}k.1w(R,"l0",o);k.1w(R,"kZ","kY")}if(u.w7===1a){k.1w(R,"8e-1p","ay");k.w6=s}13{k.1w(R,"8e-1p","3N")}Q r=u.2w||"cm";k.1w(R,"8I-iZ",P.2N.8d.aM[r[0]]||"ey");if(P.l2===1a){k.1w(R,"w5-l1",P.2N.8d.aM[r[1]]||"w4")}Q f=u.8c.8x("\\n");Q e=f.W;6T(k.3w.W>e){k.7e(k.pQ)}Q g,h,n,d;19(Q t=0;t<e;t++){Q p=m;if(u.3e!=0){g=P.V.1k.dY(u,f[t]);if(r[0]==="c"){p-=g/2}13{if(r[0]==="r"){p-=g}}Q z=0;Q a=f[t].8x("");Q v="";19(Q q=0;q<a.W;q++){h=O.5v(s+O.dZ+"pP"+t+q,"pO");if(P.l2===1d){h.1w(R,"l1-pN",P.2N.8d.pM[r[1]]||"-35%")}Q c=P.V.1k.dY(u,a[q]);h.1w(R,"l0",c);h.1w(R,"kZ","kY");h.bw("x",p+z+c/2);if(q!==0){h.bw("dy","w2")}13{if(t==0){n=P.2N.8d.pL[r[1]];if(n==R){n=-0.5}h.bw("dy",(n*(e-1))+"em")}13{h.bw("dy","a8")}}d=(a[q]==="")?" ":a[q];if(u.pK){if(w1=="fu"){O.hC.8z=d;h.1H=O.hC.8z}13{h.8z=d}}13{h.1H=d}if(!h.9Q){k.5u(h)}v+=a[q];z=P.V.1k.dY(u,v)+3P(u.3e)*(u.3j/4F)}}13{h=O.5v(s+O.dZ+"pP"+t,"pO");if(P.l2===1d){h.1w(R,"l1-pN",P.2N.8d.pM[r[1]]||"-35%")}if(u.3j!==4F){g=P.V.1k.dY(u,f[t]);h.1w(R,"l0",g);h.1w(R,"kZ","kY")}h.bw("x",m);if(t==0){n=P.2N.8d.pL[r[1]];if(n==R){n=-0.5}h.bw("dy",(n*(e-1))+"em");Q w=(n*(e-1));if(P.fv.42==="fu"){n=P.2N.8d.pp[r[1]];if(n==R){n=0.35}w+=n}h.bw("dy",w+"em")}13{h.bw("dy","a8")}d=(f[t]==="")?" ":f[t];if(u.pK){if(P.fv.42=="fu"){O.hC.8z=d;h.1H=O.hC.8z}13{h.8z=d}}13{h.1H=d}if(!h.9Q){k.5u(h)}}}if(!k.9Q){O.cA.5u(k)}},8n:S(c,a,d){if(a.23&&a.23==="3N"){c.23=a.23}13{if(c.2P===1a){if(c.2H===P.V.4X.bN){c.1D=a.4W*2+a.1D}13{c.1D=a.4W}c.2L=a.86;c.3M=a.85;c.5M="cn"}13{if(!c.6t){c.1D=a.1D}if(!c.aP){if(c.2L 1m P.3I.aO){c.2L.1B();c.2L=R}if(a.9J==="8K"||a.9J==="8J"){Q b=[];b.17({6i:0,3s:a.2L,2E:a.3M});b.17({6i:1,3s:a.cj,2E:a.ck});if(a.9J==="8K"){c.2L=X P.3I.7R(0,0,1,0,b)}13{if(a.9J==="8J"){c.2L=X P.3I.99(0.5,0.5,1,0.5,0.5,b)}}}13{c.2L=a.2L}c.3M=a.3M}if(!c.9w){c.5M=a.5M;if(!c.5U&&a.5U!==1l){c.5U=a.5U}if(!c.6C&&a.6C!==1l){c.6C=a.6C}}}if(!c.8M){if(c.2g 1m P.3I.aO){c.2g.1B();c.2g=R}if(a.3Z==="8K"||a.3Z==="8J"){c.2q=1a;c.2g=X P.V.pb(d).cq()}13{O.pJ(c,a,d)}}13{if(!c.aN){c.2g=c.2L;c.2k=c.3M}}if(!c.6K||c.6K===1d){c.1y=a.1y}if(!c.7j||c.7j===1d){c.3B=a.3B}if(c.2w===1l&&a.2w!==1l){c.2w=a.2w}if(c.37===1l&&a.37!==1l){c.37=a.37}if(c.6K!==1a&&c.7j!==1a){if(a.3J!==1l){c.3J=a.3J}if(a.3Y!==1l){c.3Y=a.3Y}if(a.4u!==1l){c.4u=a.4u}if(a.5W!==1l){c.5W=a.5W}if(a.5V!==1l){c.5V=a.5V}if(a.69!==1l){c.69=a.69}if(a.68!==1l){c.68=a.68}if(a.5E!==1l){c.5E=a.5E}if(a.67!==1l){c.67=a.67}if(a.5D!==1l){c.5D=a.5D}if(a.5C!==1l){c.5C=a.5C}if(a.3e!==1l){c.3e=a.3e}if(a.3j!==1l){c.3j=a.3j}if(a.3p!==1l){c.3p=a.3p}if(a.58!==1l){c.58=a.58}}if(a.23==="3N"){c.23=a.23}13{c.23="23"}if(c.4N<0){c.4N=1n.2W(c.4N)}if(c.4O<0){c.4O=1n.2W(c.4O)}if(c.1y<0){c.1y=1n.2W(c.1y)}}},pJ:S(c,a,d){if(d!==1l&&d 1m P.U.46&&d.6D===1a){c.2q=a.2q;c.2g=a.2g;c.2k=a.2k}13{c.2q=a.2q;c.3O=a.3O;if(a.3O===0||a.3O===1||a.2q===1a||a.2q===1d){c.2g=a.2g;c.2k=a.2k;c.4z=a.4z;c.5L=a.5L}13{if(a.2g!==a.4z||(a.5L>0&&a.5L<1)){Q b=[];b.17({4I:a.3O,3s:a.2g,2E:a.2k});b.17({4I:a.3O,3s:a.4z,2E:a.5L});c.2g=X P.3I.aO(b)}13{c.2q=1a;c.2g=a.2g;c.2k=a.2k}}}},gP:S(u,z,b,d){z=z||u.kQ;b=b||u.w0;if(u.pI=="P.U.4T"&&b.hA==1d){Q x=z.2k;z.2k=0;b.hA=1a}Q o=3P(u.pE(R,"r"));Q n=1;Q f;if(u.pI==="P.U.1f"&&o){u.Z.88="";if(z.vZ===1d){u.Z.88="kX"}13{if(z.a5){f=O.pF(u);if(z.ex){u.1w(R,"iV",z.ex);Q j=O.5v(R,"iV");j.1H=z.ex;u.5u(j)}if(z.4N&&z.4O){u.1w(R,"vY","3N")}Q s=z.4N||z.4O;Q q=z.4O||z.4N;s=s?s:z.d2*2;q=q?q:z.d2*2;Q A=(z.a7!=1l)?z.a7:-(0.5*s);Q k=(z.a6!=1l)?z.a6:-(0.5*q);Q a=z.bK||z.2k;u.1w(R,"x",(f.x+A).pH());u.1w(R,"y",(f.y+k).pH());u.1w(R,"3U",s);u.1w(R,"5m",q);u.1w(O.vX,"vW",z.a5);u.1w(R,"Z","2E: "+a);u.vV=P.2N.8d.vU}13{if(O.vT(z.pG)){Q e=z.d2*3;Q p=e*2;Q g=O.vS(z.pG);f=O.pF(u);n=O.pA[g.id][0]*3/p;Q l=u.9Q;Q m=u.vR;if(l){l.7e(u)}u.hB&&u.7e(u.hB);u.5u(g.hB.vQ(1a));u.1w(R,"pD",g.pE(R,"pD"));u.1w(R,"3U",p);u.1w(R,"5m",p);u.1w(R,"x",f.x-e);u.1w(R,"y",f.y-e);if(m){l.pC(u,m)}13{if(l){l.5u(u)}}}13{u.1w(R,"r",z.d2)}}}Q w=z.d1;if((w!==1l||u.pB!==1l)&&f){u.pB=w;w|=0;if(u.vP!=="vO"){u.1w(R,"dX","2i("+w+" "+f.x+" "+f.y+")")}13{if(g){Q v=O.pA[g.id];u.hB.1w(R,"dX","2i("+w+" "+v[1]+" "+v[2]+")")}}}}if(b.hA){Q c=z.2g;if(c 1m P.3I.aO){Q y="2g";Q h=O.cq(c,d,y);if(h){c="2Q(#"+h+")";u.1w(R,"2q",c);u.1w(R,"2q-2E",1)}}13{if(z.2q===1a||z.2q===1d){u.1w(R,"Z","");u.1w(R,"2q",c);u.1w(R,"2q-2E",z.2k)}13{if(z.3O!==R&&z.3O!==1l){if(z.3O===1){u.1w(R,"2q","3N")}13{if(z.3O===0){u.1w(R,"Z","");u.1w(R,"2q",c);u.1w(R,"2q-2E",z.2k)}}}13{u.1w(R,"Z","");u.1w(R,"2q",c);u.1w(R,"2q-2E",z.2k)}}}}13{u.1w(R,"2q","3N")}if(b.vN){Q t=z.2L;if(t 1m P.3I.aO){Q y="2L";Q h=O.cq(t,d,y);if(h){t="2Q(#"+h+")";u.1w(R,"3i",t)}}13{u.1w(R,"3i",z.2L)}u.1w(R,"3i-2E",z.3M);u.1w(R,"3i-3U",z.1D*n);u.1w(R,"3i-cz",z.5U||"5X");u.1w(R,"3i-vM",z.vL||"5X");z.5M&&u.1w(R,"3i-vK",O.py(z,n))}13{u.1w(R,"3i","3N")}if(z.ft){u.1w(R,"8e-1p",z.ft);u.Z.ft=z.ft}13{u.1w(R,"8e-1p","pz");u.Z.ft="pz"}if(z.7U!=R){u.1w(R,"7U",z.7U)}if(x){z.2k=x;b.hA=1d;x=""}Y u},py:S(c,b){Q a=c.1D*b;Q d=c.5M;6z(d){1z"cn":Y"3N";1z"kW":Y[0,2*a].8m();1z"pw":Y[2*a,2*a].8m();1z"vJ":Y[2*a,2*a,0,2*a].8m();1z"vI":Y[2*a,2*a,0,2*a,0,2*a].8m();1z"vH":Y[4*a,2*a].8m();1z"vG":Y[4*a,2*a,0,2*a].8m();6y:Y P.gk.pv(d).vF(/\\s+/g,",")}},cq:S(o,d,q){if(!O.fr){O.fr=O.vE()}Q n,g;Q a=d.id;S e(x,y){19(Q v=0,u=y.2K.W;v<u;v++){Q w="71-3s:"+y.2K[v].3s+";71-2E:"+y.2K[v].2E;x.3w[v].Z.kV=y.2K[v].3s;x.3w[v].Z.kU=y.2K[v].2E;x.3w[v].1w(R,"Z",w);x.3w[v].1w(R,"6i",y.2K[v].6i)}}S b(u){if(d.2F().5r()===0||d.2F().5F()===0){u.1w(R,"pu","kS")}13{u.1w(R,"pu","vD")}}if(o 1m P.3I.7R){g=a+"vC"+q;n=P.1o.kT(g);if(n){b(n);if(n.x1.ax.51!==o.x1){n.1w(R,"x1",o.x1)}if(n.y1.ax.51!==o.y1){n.1w(R,"y1",o.y1)}if(n.x2.ax.51!==o.x2){n.1w(R,"x2",o.x2)}if(n.y2.ax.51!==o.y2){n.1w(R,"y2",o.y2)}e(n,o);Y g}n=O.5v(g,"vB");n.1w(R,"x1",o.x1);n.1w(R,"y1",o.y1);n.1w(R,"x2",o.x2);n.1w(R,"y2",o.y2);b(n);Q c=o.2K;19(Q r=0,s=c.W;r<s;r++){Q h=c[r];Q l=O.5v(R,"71");l.1w(R,"6i",h.6i);Q t="71-3s:"+h.3s+";71-2E:"+h.2E;l.Z.kV=h.3s;l.Z.kU=h.2E;l.1w(R,"Z",t);n.5u(l)}O.fr.5u(n);Y g}13{if(o 1m P.3I.99){g=a+"vA"+q;n=P.1o.kT(g);if(n){if(n.cx.ax.51!==o.cx){n.1w(R,"cx",o.cx)}if(n.cy.ax.51!==o.cy){n.1w(R,"cy",o.cy)}if(n.r.ax.51!==o.4K){n.1w(R,"r",o.4K)}if(n.fx.ax.51!==o.fx){n.1w(R,"fx",o.fx)}if(n.fy.ax.51!==o.fy){n.1w(R,"fy",o.fy)}b(n);e(n,o);Y g}n=O.5v(g,"vz");n.1w(R,"cx",o.cx);n.1w(R,"cy",o.cy);n.1w(R,"r",o.4K);n.1w(R,"fx",o.fx);n.1w(R,"fy",o.fy);b(n);Q c=o.2K;19(Q r=0,s=c.W;r<s;r++){Q h=c[r];Q l=O.5v(R,"71");l.1w(R,"6i",h.6i);Q t="71-3s:"+h.3s+";71-2E:"+h.2E;l.Z.kV=h.3s;l.Z.kU=h.2E;l.1w(R,"Z",t);n.5u(l)}O.fr.5u(n);Y g}13{if(o 1m P.3I.aO){g=a+"vy";n=P.1o.kT(g);if(n){if(o.2K[0].4I===2){n.1w(R,"bv","2i(-45)")}13{if(o.2K[0].4I===3||o.2K[0].4I===6){n.1w(R,"bv","2i(0)")}13{if(o.2K[0].4I===4||o.2K[0].4I===5){n.1w(R,"bv","2i(45)")}13{if(o.2K[0].4I===7){n.1w(R,"bv","2i(90)")}}}}if(o.2K[0].4I===3||o.2K[0].4I===6||o.2K[0].4I===7){n.1w(R,"3U",7.3);n.1w(R,"5m",7.3);n.3w[0].1w(R,"dW","0 0 0 7.3 7.3 7.3 7.3 0");n.3w[1].1w(R,"d","M 7.3 0 L 0 0")}13{n.1w(R,"3U",5.4);n.1w(R,"5m",5.4);n.3w[0].1w(R,"dW","0 0 0 5.4 5.4 5.4 5.4 0");n.3w[1].1w(R,"d","M 5.4 0 L 0 0")}n.3w[0].1w(R,"2q",o.2K[1].3s);n.3w[0].1w(R,"2q-2E",o.2K[1].2E);if(o.2K[0].4I===4){n.3w[1].1w(R,"3i",o.2K[0].3s);n.3w[1].1w(R,"3i-2E",o.2K[0].2E);if(n.3w[2]){n.3w[2].1w(R,"3i",o.2K[0].3s);n.3w[2].1w(R,"3i-2E",o.2K[0].2E)}13{Q m="M 0 5.4 L 0 0";Q f=O.5v(R,"7t");f.1w(R,"d",m);f.1w(R,"3i",o.2K[0].3s);f.1w(R,"3i-3U","2");f.1w(R,"3i-cz","9L");f.1w(R,"3i-2E",o.2K[0].2E);n.5u(f)}}13{if(o.2K[0].4I===3){n.3w[1].1w(R,"3i",o.2K[0].3s);n.3w[1].1w(R,"3i-2E",o.2K[0].2E);if(n.3w[2]){n.3w[2].1w(R,"3i",o.2K[0].3s);n.3w[2].1w(R,"3i-2E",o.2K[0].2E)}13{Q m="M 0 7.3 L 0 0";Q f=O.5v(R,"7t");f.1w(R,"d",m);f.1w(R,"3i",o.2K[0].3s);f.1w(R,"3i-3U","2");f.1w(R,"3i-cz","9L");f.1w(R,"3i-2E",o.2K[0].2E);n.5u(f)}}13{n.3w[1].1w(R,"3i",o.2K[0].3s);n.3w[1].1w(R,"3i-2E",o.2K[0].2E);if(n.3w[2]){n.7e(n.3w[2])}}}Y g}if(o.2K[0].4I===3||o.2K[0].4I===6||o.2K[0].4I===7){n=O.5v(g,"ps");n.1w(R,"x",0);n.1w(R,"y",0);n.1w(R,"3U",7.3);n.1w(R,"5m",7.3);n.1w(R,"pq","kS")}13{n=O.5v(g,"ps");n.1w(R,"x",0);n.1w(R,"y",0);n.1w(R,"3U",5.4);n.1w(R,"5m",5.4);n.1w(R,"pq","kS")}if(o.2K[0].4I===2){n.1w(R,"bv","2i(-45)")}13{if(o.2K[0].4I===3||o.2K[0].4I===6){n.1w(R,"bv","2i(0)")}13{if(o.2K[0].4I===4||o.2K[0].4I===5){n.1w(R,"bv","2i(45)")}13{if(o.2K[0].4I===7){n.1w(R,"bv","2i(90)")}}}}if(o.2K[0].4I===3||o.2K[0].4I===6||o.2K[0].4I===7){Q p="0 0 0 7.3 7.3 7.3 7.3 0";Q k=O.5v(R,"fs");k.1w(R,"dW",p);k.1w(R,"2q",o.2K[1].3s);k.1w(R,"2q-2E",o.2K[1].2E);n.5u(k);Q m="M 7.3 0 L 0 0";Q j=O.5v(R,"7t");j.1w(R,"d",m);j.1w(R,"3i",o.2K[0].3s);j.1w(R,"3i-3U","2");j.1w(R,"3i-cz","9L");j.1w(R,"3i-2E",o.2K[0].2E)}13{Q p="0 0 0 5.4 5.4 5.4 5.4 0";Q k=O.5v(R,"fs");k.1w(R,"dW",p);k.1w(R,"2q",o.2K[1].3s);k.1w(R,"2q-2E",o.2K[1].2E);n.5u(k);Q m="M 5.4 0 L 0 0";Q j=O.5v(R,"7t");j.1w(R,"d",m);j.1w(R,"3i",o.2K[0].3s);j.1w(R,"3i-3U","2");j.1w(R,"3i-cz","9L");j.1w(R,"3i-2E",o.2K[0].2E)}n.5u(j);if(o.2K[0].4I===4){Q m="M 0 5.4 L 0 0";Q f=O.5v(R,"7t");f.1w(R,"d",m);f.1w(R,"3i",o.2K[0].3s);f.1w(R,"3i-3U","2");f.1w(R,"3i-cz","9L");f.1w(R,"3i-2E",o.2K[0].2E);n.5u(f)}13{if(o.2K[0].4I===3){Q m="M 0 7.3 L 0 0";Q f=O.5v(R,"7t");f.1w(R,"d",m);f.1w(R,"3i",o.2K[0].3s);f.1w(R,"3i-3U","2");f.1w(R,"3i-cz","9L");f.1w(R,"3i-2E",o.2K[0].2E);n.5u(f)}}O.fr.5u(n);Y g}13{Y}}}},1t:"P.2N.dV"});P.2N.8d.pp={t:0.7,b:0};P.2N.fq=P.27(P.2N.57,{1I:S(a,b){P.2N.57.1x.1I.1q(O,1K)},8n:S(b,a,c){if(a.23&&a.23==="3N"){b.23=a.23}13{if(b.2P){if(c.2H===P.V.4X.bN){b.1D=a.4W*2+a.1D}13{b.1D=a.4W}b.2L=a.86;b.3M=a.85;b.5M="cn"}13{if(!b.6t){b.1D=a.1D}if(!b.aP){b.2L=a.2L;b.3M=a.3M}if(!b.9w){b.5M=a.5M;if(!b.5U&&a.5U!==1l){b.5U=a.5U}if(!b.6C&&a.6C!==1l){b.6C=a.6C}}}if(!b.8M){if(b.2g 1m P.3I.aO){b.2g.1B();b.2g=R}if(a.3Z==="8K"||a.3Z==="8J"){b.2k=1;b.2q=1a;b.2g=X P.V.kM(O,c).cq()}13{X P.V.kM(O,c).pf(b)}}13{if(!b.aN){b.2g=b.2L;b.2k=b.3M}}if(!b.6K||b.6K===1d){b.1y=a.1y}if(!b.7j||b.7j===1d){b.3B=a.3B}if(b.2w===1l&&a.2w!==1l){b.2w=a.2w}if(b.37===1l&&a.37!==1l){b.37=a.37}if(b.6K!==1a&&b.7j!==1a){if(a.3J!==1l){b.3J=a.3J}if(a.3Y!==1l){b.3Y=a.3Y}if(a.4u!==1l){b.4u=a.4u}if(a.5W!==1l){b.5W=a.5W}if(a.5V!==1l){b.5V=a.5V}if(a.69!==1l){b.69=a.69}if(a.68!==1l){b.68=a.68}if(a.5E!==1l){b.5E=a.5E}if(a.67!==1l){b.67=a.67}if(a.5D!==1l){b.5D=a.5D}if(a.5C!==1l){b.5C=a.5C}if(a.3e!==1l){b.3e=a.3e}if(a.3j!==1l){b.3j=a.3j}if(a.3p!==1l){b.3p=a.3p}if(a.58!==1l){b.58=a.58}}if(a.23==="3N"){b.23=a.23}13{b.23="23"}if(b.4N<0){b.4N=1n.2W(b.4N)}if(b.4O<0){b.4O=1n.2W(b.4O)}if(b.1y<0){b.1y=1n.2W(b.1y)}}},5S:S(h,a,d){S f(s,n){if(s.1s===P.V.1j.5j){Y}Q t=1d;Q m=[];19(Q q=0;q<s.11.W;q++){if((s.11[q].Z.2H===P.V.4X.b9||s.11[q].Z.2H===P.V.4X.aj)&&(s.11[q].Z.2P||n.4W!==s.11[q].Z.1D)){t=1a;m.17(q)}13{if((s.11[q].Z.2H===P.V.4X.b9||s.11[q].Z.2H===P.V.4X.aj)&&!s.11[q].Z.2P&&n.1D!==s.11[q].Z.1D){t=1a;m.17(q)}}}if(t){s.bu=n.4W/2+n.1D/2;19(Q p=0;p<m.W;p++){Q o=m[p];if(s.11[o].Z.2P&&s.11[o].47&&s.11[o].47!==R){Q r=s.fo(s.11[o].47);if(R===r){1W}r.id=s.11[o].id;s.11[o]=r}}}}S l(x,o){if(x.bt()===1d){Y}Q p,v,u,t,r,w;if(o.3O===1&&o.3Z==="6e"&&x.3E.W===0){p=x.11.W;19(v=0;v<p;v++){if(x.11[v].6p&&x.11[v].6p===1a){x.11.2S(v,1);p--}}x.6p=1d}if(x.bt()===1a&&(o.3O!==1||(o.3Z&&o.3Z!=="6e"))){p=x.11.W;Q s=1d;19(t=0;t<p;t++){if(x.11[t].6p&&x.11[t].6p===1a){s=1a;1C}}if(s===1d){Q y=[];19(v=0;v<x.11.W;v++){y.17(x.11[v].2s())}19(u=0;u<x.11.W;u++){if(x.11[u].Z.2P===1d){Q n=P.U.3h.dU(y[u]);Q q=P.U.3h.4s(32,n);q.Z={};q.Z=P.1o.2t(q.Z,x.11[u].Z);q.Z.1D=0;q.Z.6t=1a;q.6p=1a;x.11.2S(u++,0,q)}}}}}Q e,b,g;if(h 1m P.U.3H||h 1m P.U.4J){19(e=0;e<h.11.W;e++){O.1h[h.11[e].id]=[h.11[e]];O.5S(h.11[e].T,h.11[e].Z,h.11[e].id);3k O.1h[h.11[e].id]}Y}13{if(h 1m P.U.2V){f(h,a);l(h,a);O.1R.9v="5X";O.1R.dH="5X";if(O.pk){O.hy.9v="5X";O.hy.dH="5X"}19(e=0,g=h.11.W;e<g;e++){O.8n(h.11[e].Z,a,h);if(h.11[e].1t==="P.U.5q"){Q k=X P.U.1f(h.11[e].x,h.11[e].y);h.11[e].Z.8c=h.11[e].8I.5R();Q c={};P.1o.2t(c,h.11[e].Z);if(c.9a===1d){c.1y/=O.3m()}O.9t(k,c)}13{O.5S(h.11[e],h.11[e].Z,d)}}Y}13{if(h 1m P.U.46||h 1m P.U.3g){19(b=0;b<h.11.W;b++){if(h 1m P.U.46&&h.6D===1a){O.8n(h.11[b].Z,a,h);O.5S(h.11[b],h.11[b].Z,d)&&kP}13{O.5S(h.11[b],a,d)&&kP}}Y}13{if((h.1t==="P.U.7s")||(h.1t==="P.U.hx")||(h.1t==="P.U.hw")||(h.1t==="P.U.hv")||(h.1t==="P.1P.4J")){19(e=0;e<h.11.W;e++){O.5S(h.11[e],a,d)}Y}}}}if(P.U.5h&&(h 1m P.U.5h)){O.pj(h,a,d)}13{if(P.U.6J&&(h 1m P.U.6J)){O.gm(h,a,d)}13{if(P.U.4T&&(h 1m P.U.4T)){if(a.2q==1d){Q j=a.2k;a.2q=1a;a.2k=0}O.ez(h,a,d)}13{if(P.U.1f&&(h 1m P.U.1f)){O.pi(h,a,d)}13{if(P.U.d8&&(h 1m P.U.d8)){O.gl(h,a,d)}}}}}if(j){a.2q=1d;a.2k=j;j=""}},9t:S(b,u){if(u.1y<6){u.23="3N";Y}if(u.3j===1l){u.3j=4F}if(u.3j<0){u.3j=0}if(u.3j>cf){u.3j=cf}if(u.3e===1l){u.3e=0}if(u.3e>30){u.3e=30}13{if(u.3e<0){u.3e=0}}Q r=O.8L(b);if(u.cw||u.cv){Q z=7A(u.cw)?0:u.cw;Q l=7A(u.cv)?0:u.cv;r[0]+=z;r[1]-=l}if(u.69===1a){O.1R.9r=[u.3Y?u.3Y:"6s","6s",u.3J?u.3J:"6s",u.1y?u.1y+"px":"a8",u.3p?u.3p:"d7-d6"].8m(" ");Q h=u.8c.8x("\\n");Q f=h.W;Q o=P.2N.57.9P[u.2w[1]];if(o==R){o=-0.5}Q e=O.1R.7r("hu").5m||O.1R.7r("xx").3U;e=e*o*(f-1)+e*f;Q a=0;19(Q t=0;t<f;t++){Q d=(O.1R.7r(h[t]).3U+u.3e*(h[t].W-1))*(u.3j/4F);if(a<d){a=d}}if(u.5E===1a){}Q n=r[0];Q m=r[1];Q s=u.2w||"cm";if(s[0]==="c"){n-=a/2}13{if(s[0]==="r"){n-=a}}if(s[1]==="b"){m-=e}13{if(s[1]==="m"){m-=e/2}}O.cu("9y");O.1R.7i=u.68;O.1R.7z=1;O.1R.9o();O.1R.6I(n,m);if(u.kO!=0){O.1R.2i(u.37*1n.2r/2O)}O.1R.kK(0,0,a,e);O.1R.d0()}if(u.5E===1a){Q w=[r[0],r[1]];if(u.5D){w[0]+=u.5D}if(u.5C){w[1]+=u.5C}if(u.37!==0){Q q=r[0];Q p=r[1];Q v=(u.37)*1n.2r/2O;Q g=1n.5G(1n.cs(w[0]-q,2)+1n.cs(w[1]-p,2));Q k=v+1n.aw(w[1]-p,w[0]-q);w[0]=q+(g*1n.7d(k));w[1]=p+(g*1n.7c(k))}Q j=u.4u;u.4u=1d;Q c=u.3B;u.3B=u.67;O.av(w,u);u.3B=c;u.4u=j}O.av(r,u)},av:S(n,r){r=P.1o.2R({3B:"#9s",2w:"cm"},r);Q a=1;if(r.3j!==4F){a=(r.3j/4F)}O.cu("9y");O.1R.7i=r.3B;if(r.4u===1a){O.1R.bM=r.5W;O.1R.9u=r.5V}O.1R.7z=r.58||1;Q d=[r.3Y?r.3Y:"6s","6s",r.3J?r.3J:"6s",r.1y?r.1y+"px":"a8",r.3p?r.3p:"d7-d6"].8m(" ");Q f=r.8c.8x("\\n");Q e=f.W;Q c,q,l,k,m,h;if(O.1R.9q){O.1R.9r=d;O.1R.d5=P.2N.57.aM[r.2w[0]]||"84";O.1R.gj=P.2N.57.aM[r.2w[1]]||"ey";m=P.2N.57.9P[r.2w[1]];if(m==R){m=-0.5}c=O.1R.7r("hu").5m||O.1R.7r("xx").3U;n[1]+=c*m*(e-1);19(q=0;q<e;q++){if(r.3e!=0){l=0;Q g=O.1R.7r(f[q]).3U+r.3e*(f[q].W-1);Q p=r.2w[0]||"c";if(p==="c"){l-=g/2-O.1R.7r(f[q][0]).3U/2}13{if(p==="r"){l-=g}}Q t=0;Q b=f[q].8x("");Q s="";O.1R.9o();O.1R.6I(n[0],n[1]);if(r.kO!=0){O.1R.2i(r.37*1n.2r/2O)}O.1R.7T(a,1);19(Q o=0;o<b.W;o++){if(r.4u===1a){O.1R.ht(b[o],l+t,(c*q))}O.1R.9q(b[o],l+t,(c*q));s+=b[o];t=O.1R.7r(s).3U+3P(r.3e)*(o+1)}O.1R.d0()}13{O.1R.9o();O.1R.6I(n[0],n[1]);if(r.37!=0){O.1R.2i(r.37*1n.2r/2O)}O.1R.7T(a,1);if(r.4u===1a){O.1R.ht(f[q],0,(c*q))}O.1R.9q(f[q],0,(c*q));O.1R.d0()}}}13{if(O.1R.dS){O.1R.kN=d;h=P.2N.57.9P[r.2w[0]];if(h==R){h=-0.5}m=P.2N.57.9P[r.2w[1]];if(m==R){m=-0.5}c=O.1R.dT("xx");n[1]+=c*(1+(m*e));19(q=0;q<e;q++){l=n[0]+(h*O.1R.dT(f[q]));k=n[1]+(q*c);O.1R.6I(l,k);O.1R.dS(f[q]);O.1R.6I(-l,-k)}}}O.cu("9y")},cu:S(b,a){if(b==="2q"){if(a.2g 1m vx||a.2g 1m vw){O.1R.7z=1;O.1R.7i=a.2g}13{if(a.2q===1a||a.2q===1d){O.1R.7i="";O.1R.7z=a.2k;O.1R.7i=a.2g}13{if(a.3O!==R&&a.3O!==1l){if(a.3O===1){O.1R.7z=0}13{if(a.3O===0){O.1R.7i="";O.1R.7z=a.2k;O.1R.7i=a.2g}}}13{O.1R.7z=a.2k;O.1R.7i=a.2g}}}}13{if(b==="3i"){O.1R.7z=a.3M;O.1R.9v=a.5U;O.1R.bM=a.2L;O.1R.9u=a.1D}13{O.1R.7z=0;O.1R.9u=1}}},1t:"P.2N.fq"});P.2N.kR=P.27(P.2N.fp,{1I:S(a){P.2N.fp.1x.1I.1q(O,1K)},5S:S(k,a,f){S h(p,m){Q q=1d;if(p.1s!==P.V.1j.5j&&(p.2H===P.V.4X.b9||p.2H===P.V.4X.aj)){19(Q o=0;o<p.11.W;o++){if(p.11[o].Z.2P||m.4W!==p.11[o].Z.1D){q=1a}13{if(!p.11[o].Z.2P&&m.1D!==p.11[o].Z.1D){q=1a}}}}if(q){p.bu=m.4W/2+m.1D/2;19(Q n=0;n<p.11.W;n++){if(p.11[n].Z.2P&&p.11[n].47&&p.11[n].47!==R){p.11[n]=p.fo(p.11[n].47)}}}}Q c=1a;Q g,d,j,b;if(k 1m P.U.3H){19(g=0;g<k.11.W;g++){c=O.5S(k.11[g].T,k.11[g].Z,k.11[g].id)}Y c}13{if(k 1m P.U.2V){h(k,a);19(g=0,j=k.11.W;g<j;g++){O.8n(k.11[g].Z,a,k);if(k.11[g].1t==="P.U.5q"){Q l=X P.U.1f(k.11[g].x,k.11[g].y);k.11[g].Z.8c=k.11[g].8I.5R();O.9t(f+g.5R(),k.11[g].Z,l);c=1a}13{c=O.5S(k.11[g],k.11[g].Z,f)&&c}}Y c}13{if(k 1m P.U.46){19(d=0;d<k.11.W;d++){c=O.5S(k.11[d],a,f)&&c}Y c}13{if((k.1t==="P.U.7s")||(k.1t==="P.U.hx")||(k.1t==="P.U.hw")||(k.1t==="P.U.hv")||(k.1t==="P.1P.4J")){19(Q g=0,j=k.11.W;g<j;g++){c=O.5S(k.11[g],a,f)&&c}Y c}}}}c=1d;Q e=1d;if(a.23!=="3N"){if(a.hz){O.po(k.id,k,a,f)}13{e=1a}c=O.pn(k.id,k,a,f)}if(c==1d){b=4R.79(k.id);if(b){if(b.kQ.hz){e=1a}b.9Q.7e(b)}}if(e){b=4R.79(k.id+O.pm);if(b){b.9Q.7e(b)}}Y c},8n:S(b,a,c){if(a.23&&a.23==="3N"){b.23=a.23}13{if(b.2P){if(c.2H===P.V.4X.bN){b.1D=a.4W*2+a.1D}13{b.1D=a.4W}b.2L=a.86;b.3M=a.85;b.5M="cn"}13{if(!b.6t){b.1D=a.1D}if(!b.aP){b.2L=a.2L;b.3M=a.3M}if(!b.9w){b.5M=a.5M;if(!b.5U&&a.5U!==1l){b.5U=a.5U}if(!b.6C&&a.6C!==1l){b.6C=a.6C}}}if(!b.8M){if(a.3Z==="8K"||a.3Z==="8J"){b.2q=1a;b.2g=a.2g;b.vv=a.4z;b.3Z=a.3Z;b.2k=a.2k;b.vu=a.5L}13{b.3Z=a.3Z;b.2q=a.2q;b.2g=a.2g;b.2k=a.2k}}13{if(!b.aN){b.2g=b.2L;b.2k=b.3M}}if(!b.6K||b.6K===1d){b.1y=a.1y}if(!b.7j||b.7j===1d){b.3B=a.3B}if(a.23){b.23=a.23}}},1t:"P.2N.fp"});P.2N.fp.vt={l:0,c:0.5,r:1,t:0,m:0.5,b:1};P.2N.do=P.27(P.2N.97,{1I:S(a,b,c){P.2N.97.1x.1I.1q(O,1K)},8n:S(b,c,d){S e(n,r){Q m=n.d9(1,3);Q q=4A(m,16);Q l=n.d9(3,5);Q p=4A(l,16);Q o=n.d9(5);Q k=4A(o,16);Y"mM("+q+","+p+","+k+","+r+")"}if(c.23&&c.23==="3N"){b.23=c.23}13{if(b.2P){if(d.2H===P.V.4X.bN){b.1D=c.4W*2+c.1D}13{b.1D=c.4W}b.2L=c.86;b.3M=c.85;b.5M="cn"}13{if(!b.6t){b.1D=c.1D}if(!b.aP){b.2L=c.2L;b.3M=c.3M}if(!b.9w){b.5M=c.5M;if(!b.5U&&c.5U!==1l){b.5U=c.5U}if(!b.6C&&c.6C!==1l){b.6C=c.6C}}}if(!b.8M){if(c.3Z==="8K"||c.3Z==="8J"){Q a=d.2F();Q g=O.8L(X P.U.1f(a.21,a.1Z));Q f=O.8L(X P.U.1f(a.2c,a.2h));Q h=O.8L(X P.U.1f((a.21+a.2c)/2,(a.1Z+a.2h)/2));Q j=1n.2W(g[0]-f[0])>1n.2W(g[1]-f[1])?1n.2W(g[0]-f[0]):1n.2W(g[1]-f[1]);b.2q=1a;if(c.3Z==="8K"){b.2g=O.1R.iY(g[0],g[1],f[0],g[1])}13{if(c.3Z==="8J"){b.2g=O.1R.iX(h[0],h[1],0,h[0],h[1],j)}}b.2g.6X(0,e(c.2g,c.2k));b.2g.6X(1,e(c.4z,c.5L))}13{if(c.3O===1){c.2q=1d}13{c.2q=1a}b.2q=c.2q;b.2g=c.2g;b.2k=c.2k}}13{if(!b.aN){b.2g=b.2L;b.2k=b.3M}}if(!b.6K||b.6K===1d){b.1y=c.1y}if(!b.7j||b.7j===1d){b.3B=c.3B}if(b.2w===1l&&c.2w!==1l){b.2w=c.2w}if(b.6K!==1a&&b.7j!==1a){if(c.3J!==1l){b.3J=c.3J}if(c.3Y!==1l){b.3Y=c.3Y}if(c.4u!==1l){b.4u=c.4u}if(c.5W!==1l){b.5W=c.5W}if(c.5V!==1l){b.5V=c.5V}if(c.69!==1l){b.69=c.69}if(c.68!==1l){b.68=c.68}if(c.5E!==1l){b.5E=c.5E}if(c.67!==1l){b.67=c.67}if(c.5D!==1l){b.5D=c.5D}if(c.5C!==1l){b.5C=c.5C}if(c.3e!==1l){b.3e=c.3e}if(c.3j!==1l){b.3j=c.3j}if(c.3p!==1l){b.3p=c.3p}if(c.58!==1l){b.58=c.58}}if(c.23==="3N"){b.23=c.23}13{b.23="23"}if(b.4N<0){b.4N=1n.2W(b.4N)}if(b.4O<0){b.4O=1n.2W(b.4O)}if(b.1y<0){b.1y=1n.2W(b.1y)}}},5S:S(g,a,c){S e(p,l){Q q=1d;if(p.1s!==P.V.1j.5j&&(p.2H===P.V.4X.b9||p.2H===P.V.4X.aj)){19(Q n=0;n<p.11.W;n++){if(p.11[n].Z.2P||l.4W!==p.11[n].Z.1D){q=1a}13{if(!p.11[n].Z.2P&&l.1D!==p.11[n].Z.1D){q=1a}}}}if(q){p.bu=l.4W/2+l.1D/2;19(Q m=0;m<p.11.W;m++){if(p.11[m].Z.2P&&p.11[m].47&&p.11[m].47!==R){Q o=p.fo(p.11[m].47);if(R===o){1W}p.11[m]=o}}}}S k(t,m){if(t.bt()===1d){Y}Q n,s,r,q;if(m.3O===1&&m.3Z==="6e"&&t.3E.W===0){n=t.11.W;19(s=0;s<n;s++){if(t.11[s].6p&&t.11[s].6p===1a){t.11.2S(s,1);n--}}t.6p=1d}if(t.bt()===1a&&(m.3O!==1||(m.3Z&&m.3Z!=="6e"))){n=t.11.W;Q p=1d;19(q=0;q<n;q++){if(t.11[q].6p&&t.11[q].6p===1a){p=1a;1C}}if(p===1d){Q u=[];19(s=0;s<t.11.W;s++){u.17(t.11[s].2s())}19(r=0;r<t.11.W;r++){if(t.11[r].Z.2P===1d){Q l=P.U.3h.dU(u[r]);Q o=P.U.3h.4s(32,l);o.Z={};o.Z=P.1o.2t(o.Z,t.11[r].Z);o.Z.1D=0;o.Z.6t=1a;o.6p=1a;t.11.2S(r++,0,o)}}}}}Q d,b,f;if(g 1m P.U.3H||g 1m P.U.4J){19(d=0;d<g.11.W;d++){O.1h[g.11[d].id]=[g.11[d]];O.5S(g.11[d].T,g.11[d].Z,g.11[d].id);3k O.1h[g.11[d].id]}}13{if(g 1m P.U.2V){e(g,a);k(g,a);O.1R.9v="5X";O.1R.dH="5X";if(O.pk){O.hy.9v="5X";O.hy.dH="5X"}19(d=0,f=g.11.W;d<f;d++){O.8n(g.11[d].Z,a,g);if(g.11[d].1t==="P.U.5q"){Q j=X P.U.1f(g.11[d].x,g.11[d].y);g.11[d].Z.8c=g.11[d].8I.5R();O.9t(j,g.11[d].Z)}13{O.5S(g.11[d],g.11[d].Z,c)}}Y}13{if(g 1m P.U.46||g 1m P.U.3g){19(b=0;b<g.11.W;b++){O.5S(g.11[b],a,c)&&kP}}13{if((g.1t==="P.U.7s")||(g.1t==="P.U.hx")||(g.1t==="P.U.hw")||(g.1t==="P.U.hv")||(g.1t==="P.1P.4J")){19(Q d=0;d<g.11.W;d++){O.5S(g.11[d],a,c)}Y}}}}if(P.U.5h&&(g 1m P.U.5h)){O.pj(g,a,c)}13{if(P.U.6J&&(g 1m P.U.6J)){O.gm(g,a,c)}13{if(P.U.4T&&(g 1m P.U.4T)){if(a.2q==1d){Q h=a.2k;a.2q=1a;a.2k=0}O.ez(g,a,c)}13{if(P.U.1f&&(g 1m P.U.1f)){O.pi(g,a,c)}13{if(P.U.d8&&(g 1m P.U.d8)){O.gl(g,a,c)}}}}}if(h){a.2q=1d;a.2k=h;h=""}},9t:S(b,q){if(q.1y<6){q.23="3N"}if(q.3j===1l){q.3j=4F}if(q.3j<0){q.3j=0}if(q.3j>cf){q.3j=cf}if(q.3e===1l){q.3e=0}if(q.3e>30){q.3e=30}13{if(q.3e<0){q.3e=0}}Q n=O.8L(b);if(q.cw||q.cv){Q s=7A(q.cw)?0:q.cw;Q j=7A(q.cv)?0:q.cv;n[0]+=s;n[1]-=j}if(q.69===1a){O.1R.9r=[q.3Y?q.3Y:"6s","6s",q.3J?q.3J:"6s",q.1y?q.1y+"px":"a8",q.3p?q.3p:"d7-d6"].8m(" ");Q g=q.8c.8x("\\n");Q f=g.W;Q m=P.2N.57.9P[q.2w[1]];if(m==R){m=-0.5}Q e=O.1R.7r("hu").5m||O.1R.7r("xx").3U;e=e*m*(f-1)+e*f;Q a=0;19(Q p=0;p<f;p++){Q d=(O.1R.7r(g[p]).3U+q.3e*(g[p].W-1))*(q.3j/4F);if(a<d){a=d}}if(q.5E===1a){}Q l=n[0];Q k=n[1];Q o=q.2w||"cm";if(o[0]==="c"){l-=a/2}13{if(o[0]==="r"){l-=a}}if(o[1]==="b"){k-=e}13{if(o[1]==="m"){k-=e/2}}O.cu("9y");O.1R.7i=q.68;O.1R.7z=1;O.1R.kK(l,k,a,e)}if(q.5E===1a){Q r=[n[0],n[1]];if(q.5D){r[0]+=q.5D}if(q.5C){r[1]+=q.5C}Q h=q.4u;q.4u=1d;Q c=q.3B;q.3B=q.67;O.av(r,q);q.3B=c;q.4u=h}O.av(n,q)},av:S(n,r){r=P.1o.2R({3B:"#9s",2w:"cm"},r);Q a=1;if(r.3j!==4F){a=(r.3j/4F)}O.cu("9y");O.1R.7i=r.3B;if(r.4u===1a){O.1R.bM=r.5W;O.1R.9u=r.5V}O.1R.7z=r.58||1;Q d=[r.3Y?r.3Y:"6s","6s",r.3J?r.3J:"6s",r.1y?r.1y+"px":"a8",r.3p?r.3p:"d7-d6"].8m(" ");Q f=r.8c.8x("\\n");Q e=f.W;Q c,q,l,k,m,h;if(O.1R.9q){O.1R.9r=d;O.1R.d5=P.2N.57.aM[r.2w[0]]||"84";O.1R.gj=P.2N.57.aM[r.2w[1]]||"ey";m=P.2N.57.9P[r.2w[1]];if(m==R){m=-0.5}c=O.1R.7r("hu").5m||O.1R.7r("xx").3U;n[1]+=c*m*(e-1);19(q=0;q<e;q++){if(r.3e!=0){l=0;Q g=(O.1R.7r(f[q]).3U+r.3e*(f[q].W-1))*a;Q p=r.2w[0]||"c";if(p==="c"){l-=g/2}13{if(p==="r"){l-=g}}Q t=0;Q b=f[q].8x("");Q s="";19(Q o=0;o<b.W;o++){O.1R.9o();O.1R.6I(n[0],n[1]);O.1R.7T(a,1);if(r.kO!=0){O.1R.2i(r.37*1n.2r/2O)}if(r.4u===1a){O.1R.ht(b[o],t,(c*q))}O.1R.9q(b[o],t,(c*q));O.1R.d0();s+=b[o];t=O.1R.7r(s).3U+3P(r.3e)*(o+1)}}13{O.1R.9o();O.1R.6I(n[0],n[1]);O.1R.7T(a,1);if(r.37!=0){O.1R.2i(r.37*1n.2r/2O)}if(r.4u===1a){O.1R.ht(f[q],0,(c*q))}O.1R.9q(f[q],0,(c*q));O.1R.d0()}}}13{if(O.1R.dS){O.1R.kN=d;h=P.2N.57.9P[r.2w[0]];if(h==R){h=-0.5}m=P.2N.57.9P[r.2w[1]];if(m==R){m=-0.5}c=O.1R.dT("xx");n[1]+=c*(1+(m*e));19(q=0;q<e;q++){l=n[0]+(h*O.1R.dT(f[q]));k=n[1]+(q*c);O.1R.6I(l,k);O.1R.dS(f[q]);O.1R.6I(-l,-k)}}}O.cu("9y")},1t:"P.2N.do"});P.V.kM=X P.27({cr:R,T:R,1I:S(a,b){if(a){O.cr=a}if(b){O.T=b}},dR:S(){Y O.cr.1R},pd:S(){Q a=O.T.2F();Q c=O.cr.8L(X P.U.1f(a.21,a.1Z));Q d=O.cr.8L(X P.U.1f(a.2c,a.2h));Q j=O.cr.8L(X P.U.1f((a.21+a.2c)/2,(a.1Z+a.2h)/2));c.x=c[0],c.y=c[1],d.x=d[0],d.y=d[1],j.x=j[0],j.y=j[1];if(c.x===d.x&&c.y===d.y){Y}Q f=1n.ph(c.x,d.x),e=1n.ph(c.y,d.y);Q k=1n.pg(c.x,d.x),g=1n.pg(c.y,d.y);Q b=1n.2W(f-k),h=1n.2W(e-g);Q l=1n.2W(c.x-d.x)>1n.2W(d.y-d.y)?1n.2W(c.x-d.x):1n.2W(c.y-d.y);Y{kJ:k,kI:g,3U:b,5m:h,84:j,r:l}},pf:S(c){Q a=O.T.1b.Z;if(a.3O!==1l){c.2q=a.2q;c.3O=a.3O;if(a.3O===0||a.3O===1||a.2q===1a||a.2q===1d){if(a.3O===0){c.2q=1a}13{if(a.3O===1){c.2q=1d}}c.2g=a.2g;c.2k=a.2k}13{if(a.2g!==a.4z||(a.5L>0&&a.5L<1)){Q b=[{4I:a.3O,3s:a.2g,2E:a.2k},{4I:a.3O,3s:a.4z,2E:a.5L}];c.2q=1a;c.2g=O.pe(b);c.2k=O.T.1b.Z.5L}13{c.2q=1a;c.2g=a.2g;c.2k=a.2k}}}13{c.2q=a.2q;c.2g=a.2g;c.2k=a.2k}},pe:S(a){if(P.1o.4g(a)&&a.W!==0){Q h=4R.kL("1R");4R.fn.5u(h);Q d=h.dR("2d");h.3U=8;h.5m=8;Q c=0,f=0,b=h.3U,e=h.5m;d.bM=P.V.1k.7S(a[0].3s,3P(a[0].2E));d.7i=P.V.1k.7S(a[1].3s,3P(a[1].2E));d.kK(0,0,h.3U,h.5m);d.ew();6z(a[0].4I){1z 0:1z 1:1C;1z 2:d.8H(c,e);d.7y(b,f);1C;1z 3:d.8H(c,f);d.7y(b,f);d.8H(c,f);d.7y(c,e);1C;1z 4:d.8H(c,e);d.7y(b,f);d.8H(c,f);d.7y(b,e);1C;1z 5:d.8H(c,f);d.7y(b,e);1C;1z 6:d.8H(c,f);d.7y(b,f);1C;1z 7:d.8H(c,f);d.7y(c,e);1C}d.iT();d.3i();d.2q();Q g=d.vs(h,"c1");4R.fn.7e(h);Y g}},cq:S(){Q c=O.T.1b.Z;Q h=R;if(O.dR()1m vr){Q e=O.pd();if(c.3Z==="8K"){Q b=O.pc(c.3y);h=O.dR().iY(e.kJ+e.3U*b.x1,e.kI+e.5m*b.y1,e.kJ+e.3U*b.x2,e.kI+e.5m*b.y2);if(c.3X===0&&c.2M===0){h.6X(0,P.V.1k.7S(c.2g,c.2k));h.6X(1,P.V.1k.7S(c.4z,c.2k))}13{Q d=c.3y;if(d===0||d===2O||d===90||d===au){h.6X(0,P.V.1k.7S(c.4z,c.2k));if(d===0||d===2O){h.6X(O.1b.Z.3X,P.V.1k.7S(c.2g,c.2k))}if(d===90||d===au){h.6X(c.2M,P.V.1k.7S(c.2g,c.2k))}h.6X(1,P.V.1k.7S(c.4z,c.2k))}13{h.6X(0,P.V.1k.7S(c.4z,c.2k));h.6X(c.3X>=c.2M?c.3X:c.2M*1n.7d(O.1b.Z.3y*1n.2r/2O),P.V.1k.7S(c.2g,c.2k));h.6X(1,P.V.1k.7S(c.4z,c.2k))}}}13{if(c.3Z==="8J"){Q a=c.3X*e.r;Q g=c.2M*e.r;Q f=e.r/1n.5G(2)+1n.2W(a)>e.r/1n.5G(2)+1n.2W(g)?e.r/1n.5G(2)+1n.2W(a):e.r/1n.5G(2)+1n.2W(g);h=O.dR(1g).iX(e.84.x+a,e.84.y-g,0,e.84.x+a,e.84.y-g,f);h.6X(0,P.V.1k.7S(c.2g,c.2k));if(c.2g===c.4z){h.6X(1,P.V.1k.7S(c.4z,c.5L))}13{h.6X(1,P.V.1k.7S(c.4z,1))}}}Y h}},pc:S(d){Q a=S(g){Y{x:1n.7d(g),y:1n.7c(g)}};Q f=S(g){Y((g*1n.2r)/2O)};Q e=a(f(2O-d%3Q));Q c=a(f(3Q-d%3Q));Q b=1n.cs(2,-52);if(e.x<=0||1n.2W(e.x)<=b){e.x=0}if(e.y<=0||1n.2W(e.y)<=b){e.y=0}if(c.x<=0||1n.2W(c.x)<=b){c.x=0}if(c.y<=0||1n.2W(c.y)<=b){c.y=0}Y{x1:e.x,y1:e.y,x2:c.x,y2:c.y}}});P.V.pb=X P.27({cr:R,T:R,1I:S(a){if(a){O.T=a}},cq:S(){Q b=[];Q c=R;Q a=O.T.1b.Z;if(a.3Z==="8K"){if(a.3X!==R&&a.3X!==1l){if(a.3y===0||a.3y===2O){b.17({6i:0,3s:a.4z,2E:a.2k});b.17({6i:a.3X,3s:a.2g,2E:a.2k});b.17({6i:1,3s:a.4z,2E:a.2k})}13{if(a.3y===90||a.3y===au){b.17({6i:0,3s:a.4z,2E:a.2k});b.17({6i:a.2M,3s:a.2g,2E:a.2k});b.17({6i:1,3s:a.4z,2E:a.2k})}13{b.17({6i:0,3s:a.4z,2E:a.2k});b.17({6i:a.3X/2*(1n.5G(2)/2)*1n.2W(1n.7c(a.3y*1n.2r/2O)),3s:a.2g,2E:a.2k});b.17({6i:1,3s:a.4z,2E:a.2k})}}}if(a.3y>=3Q){a.3y=0}if(0===a.3y){c=X P.3I.7R(0,0,1,0,b)}13{if(90===a.3y){c=X P.3I.7R(0,1,0,0,b)}13{if(2O===a.3y){c=X P.3I.7R(1,0,0,0,b)}13{if(au===a.3y){c=X P.3I.7R(0,0,0,1,b)}13{if(0<a.3y&&a.3y<=45){c=X P.3I.7R(0,1,1,(1-1n.bs(a.3y*1n.2r/2O))/2,b)}13{if(45<a.3y&&a.3y<90){c=X P.3I.7R(0,1,(1-1n.bs((a.3y-45)*1n.2r/2O))/2,0,b)}13{if(90<a.3y&&a.3y<=hs){c=X P.3I.7R(1,1,1n.bs((a.3y-90)*1n.2r/2O)/2,0,b)}13{if(hs<a.3y&&a.3y<2O){c=X P.3I.7R(1,1,0,1n.bs((a.3y-hs)*1n.2r/2O)/2,b)}13{if(2O<a.3y&&a.3y<=hr){c=X P.3I.7R(1,0,0,1n.bs((a.3y-2O)*1n.2r/2O)/2,b)}13{if(hr<a.3y&&a.3y<au){c=X P.3I.7R(1,0,1n.bs((a.3y-hr)*1n.2r/2O)/2,1,b)}13{if(au<a.3y&&a.3y<=hq){c=X P.3I.7R(0,0,1-1n.bs((a.3y-au)*1n.2r/2O)/2,1,b)}13{if(hq<a.3y&&a.3y<3Q){c=X P.3I.7R(0,0,1,(1n.bs((a.3y-hq)*1n.2r/2O))/2,b)}}}}}}}}}}}}}13{if(a.3Z==="8J"){if(a.3X!==R&&a.3X!==1l&&a.2M!==R&&a.2M!==1l){b.17({6i:0,3s:a.2g,2E:a.2k});if(a.2g===a.4z){b.17({6i:1,3s:a.4z,2E:a.5L})}13{b.17({6i:1,3s:a.4z,2E:1})}}if((a.3X<=0.5&&a.3X>=0)||(a.3X<=0&&a.3X>=-1)){if((a.2M>=0&&a.2M<=0.5)||(a.2M>=-0.5&&a.2M<=0)){c=X P.3I.99(0.5,0.5,0.5*1n.5G(2),0.5+a.3X,0.5-a.2M,b)}13{if((a.2M>=0.5&&a.2M<=0.8)||(a.2M>=-0.8&&a.2M<=-0.5)){c=X P.3I.99(0.5,0.5,0.8*1n.5G(2),0.5+a.3X,0.5-a.2M,b)}13{if((a.2M>=0.8&&a.2M<=1)||(a.2M>=-1&&a.2M<=-0.8)){c=X P.3I.99(0.5,0.5,1n.5G(2),0.5+a.3X,0.5-a.2M,b)}}}}13{if((a.3X<=0.8&&a.3X>0.5)||(a.3X<=-0.5&&a.3X>=-0.8)){if((a.2M>=0&&a.2M<=0.5)||(a.2M>=-0.5&&a.2M<=0)){c=X P.3I.99(0.5,0.5,0.8*1n.5G(2),0.5+a.3X,0.5-a.2M,b)}13{if((a.2M>=0.5&&a.2M<=0.8)||(a.2M>=-0.8&&a.2M<=-0.5)){c=X P.3I.99(0.5,0.5,0.8*1n.5G(2),0.5+a.3X,0.5-a.2M,b)}13{if((a.2M>=0.8&&a.2M<=1)||(a.2M>=-1&&a.2M<=-0.8)){c=X P.3I.99(0.5,0.5,1n.5G(2),0.5+a.3X,0.5-a.2M,b)}}}}13{if((a.3X<=1&&a.3X>0.8)||(a.3X<=-0.8&&a.3X>=-1)){if((a.2M>=0&&a.2M<=0.5)||(a.2M>=-0.5&&a.2M<=0)){c=X P.3I.99(0.5,0.5,1n.5G(2),0.5+a.3X,0.5-a.2M,b)}13{if((a.2M>=0.5&&a.2M<=0.8)||(a.2M>=-0.8&&a.2M<=-0.5)){c=X P.3I.99(0.5,0.5,1n.5G(2),0.5+a.3X,0.5-a.2M,b)}13{if((a.2M>=0.8&&a.2M<=1)||(a.2M>=-1&&a.2M<=-0.8)){c=X P.3I.99(0.5,0.5,1n.5G(2),0.5+a.3X,0.5-a.2M,b)}}}}}}}}Y c}});P.1P.kH=P.27(P.7q,{5d:R,1I:S(a,c){P.7q.1x.1I.1q(O,[c]);Q b=O;b.5d=a},1B:S(){P.7q.1x.1B.1q(O);Q a=O;if(a.5d){a.5d.1B();a.5d=R}},1t:"P.1P.kH"});P.1P.dQ=P.27({7b:R,1I:S(a){if(a){P.1o.2R(O,a)}},1B:S(){Q a=O;a.7b=R},1t:"P.1P.dQ"});P.1P.dQ.7o=S(a){if(!a){Y}if(a 1m fm){Y X P.1P.dQ({7b:a})}13{Y X P.1P.dQ({7b:a})}};P.1P.ki=P.27(P.7p,{5b:["4n","4m"],1p:R,3n:R,5l:R,1I:S(c,b){P.7p.1x.1I.1q(O,[c]);if(b){P.1o.2R(O,b)}Q d=O,a;d.1p=X P.ag(d,R,d.5b,1a);if(d.3n 1m 6Z){d.1p.on(d.3n)}a=d.2Q.9G(d.2Q.W-1,1);if(d.fl){d.2Q+=(a=="/")?"7n.8b?":"/7n.8b?"}13{d.2Q+=(a=="/")?"7n.co?":"/7n.co?"}},1B:S(){P.7p.1x.1B.1q(O,1K);Q a=O;a.5b=R;if(a.1p){a.1p.1B();a.1p=R}if(a.3n){a.3n=R}if(a.5l){a.5l.1B();a.5l=R}},4P:S(a){Q c=R;Q b=O;b.dM({6l:"9z",hn:c,3R:b,1Y:a,9H:b.pa,dL:b.p9})},pa:S(a){Q d=O,b=R,c=R;a=P.1o.9O(a);c=P.1P.dQ.7o(a);d.5l=c;b=X P.1P.kH(c,a);d.1p.1E("4n",b)},p9:S(b){Q e=O,d=R,a=R,c=R;b=P.1o.9O(b);d=b.as;if(!d){Y}a=P.fj.7o(d);c=X P.fi(a,b);e.1p.1E("4m",c)},1t:"P.1P.ki"});P.1P.kG=P.27(P.7q,{5d:R,1I:S(a,c){P.7q.1x.1I.1q(O,[c]);Q b=O;b.5d=a},1B:S(){P.7q.1x.1B.1q(O);Q a=O;if(a.5d){a.5d.1B();a.5d=R}},1t:"P.1P.kG"});P.1P.dP=P.27({7b:R,1I:S(a){if(a){P.1o.2R(O,a)}},1B:S(){Q a=O;a.7b=R},1t:"P.1P.dP"});P.1P.dP.7o=S(a){if(!a){Y}if(a 1m fm){Y X P.1P.dP({7b:a})}13{Y X P.1P.dP({7b:a})}};P.1P.h1=P.27(P.7p,{5b:["4n","4m"],1p:R,3n:R,5l:R,1v:R,1I:S(c,b){P.7p.1x.1I.1q(O,[c]);if(b){P.1o.2R(O,b)}Q d=O,a;d.1p=X P.ag(d,R,d.5b,1a);if(d.3n 1m 6Z){d.1p.on(d.3n)}a=d.2Q.9G(d.2Q.W-1,1);d.2Q+=(a=="/")?"7n/":"/7n/";d.2Q+=O.1v;d.2Q+=d.fl?".8b":".co"},1B:S(){P.7p.1x.1B.1q(O,1K);Q a=O;a.5b=R;a.1v=R;if(a.1p){a.1p.1B();a.1p=R}if(a.3n){a.3n=R}if(a.5l){a.5l.1B();a.5l=R}},4P:S(a){Q c=R,b=O;b.dM({6l:"9z",hn:c,3R:b,1Y:a,9H:b.p8,dL:b.p7})},p8:S(a){Q d=O,c=R,b=R;a=P.1o.9O(a);b=P.1P.dP.7o(a);d.5l=b;c=X P.1P.kG(b,a);d.1p.1E("4n",c)},p7:S(b){Q e=O,d=R,a=R,c=R;b=P.1o.9O(b);d=b.as;if(!d){Y}a=P.fj.7o(d);c=X P.fi(a,b);e.1p.1E("4m",c)},1t:"P.1P.h1"});P.1P.kE=P.27(P.7q,{5d:R,1I:S(a,c){P.7q.1x.1I.1q(O,[c]);Q b=O;b.5d=a},1B:S(){P.7q.1x.1B.1q(O);Q a=O;if(a.5d){a.5d.1B();a.5d=R}},1t:"P.1P.kE"});P.1P.dO=P.27({7b:R,1I:S(a){if(a){P.1o.2R(O,a)}},1B:S(){Q a=O;a.7b=R},1t:"P.1P.dO"});P.1P.dO.7o=S(a){if(!a){Y}if(a 1m fm){Y X P.1P.dO({7b:a})}13{Y X P.1P.dO({7b:a})}};P.1P.6O=P.27({1v:R,1A:R,61:R,6h:R,5K:R,2H:R,1Q:R,2a:R,1M:R,br:R,cp:R,1I:S(a){if(!a){Y}P.1o.2R(O,a)},1B:S(){Q a=O;a.1v=R;a.1A=R;a.61=R;a.6h=R;a.5K=R;a.2H=R;a.1Q=R;a.2a=R;a.1M=R;a.br=R;a.cp=R},1t:"P.1P.6O"});P.1P.6O.fk=S(c){if(c&&c.1v!==R&&c.1A!==R){Q b="1v="+c.1v+"&1A="+c.1A;Q a;if(c.61&&c.61!==R&&c.61.W!==0){b+="&61=[";19(a=0;a<c.61.W;a++){if(a===c.61.W-1){b+=\'{"x":\'+c.61[a].x+\', "y":\'+c.61[a].y+"}]"}13{b+=\'{"x":\'+c.61[a].x+\', "y":\'+c.61[a].y+"},"}}}if(c.1M&&c.1M!==R&&c.1M.W!==0){b+="&1M=[";19(a=0;a<c.1M.W;a++){if(a===c.1M.W-1){b+=\'{"x":\'+c.1M[a].x+\', "y":\'+c.1M[a].y+"}]"}13{b+=\'{"x":\'+c.1M[a].x+\', "y":\'+c.1M[a].y+"},"}}}if(c.2a&&c.2a!==R&&c.2a.W!==0){b+="&2a=[";19(a=0;a<c.2a.W;a++){if(a===c.2a.W-1){b+=c.2a[a]+"]"}13{b+=c.2a[a]+","}}}if(c.1Q&&c.1Q!==R&&c.1Q.W!==0){b+="&1Q=[";19(a=0;a<c.1Q.W;a++){if(a===c.1Q.W-1){b+=c.1Q[a].1A+"]"}13{b+=c.1Q[a].1A+","}}}if(c.br&&c.br!==R){b+=\'&br={"x":\'+c.br.x+\', "y":\'+c.br.y+"}"}if(c.cp&&c.cp!==R){b+="&cp="+c.cp}if(c.6h&&c.6h!==R){b+="&6h="+c.6h}if(c.5K&&c.5K!==R){b+="&5K="+c.5K}if(c.2H&&c.2H!==R){b+="&2H="+c.2H}Y b}};P.1P.7M=P.27(P.7p,{5b:["4n","4m"],1p:R,3n:R,5l:R,1I:S(c,b){P.7p.1x.1I.1q(O,[c]);if(b){P.1o.2R(O,b)}Q d=O,a;d.1p=X P.ag(d,R,d.5b,1a);if(d.3n 1m 6Z){d.1p.on(d.3n)}a=d.2Q.9G(d.2Q.W-1,1);if(d.fl){d.2Q+=(a=="/")?"hp.8b?":"/hp.8b?"}13{d.2Q+=(a=="/")?"hp.co?":"/hp.co?"}},1B:S(){P.7p.1x.1B.1q(O,1K);Q a=O;if(a.1p){a.1p.1B();a.1p=R}if(a.3n){a.3n=R}if(a.5l){a.5l.1B();a.5l=R}},4P:S(d,a){if(!d){Y}Q b=O,c=R;c=P.1P.6O.fk(d);b.2Q+=c;if(d.7m){b.2Q+="&7m="+d.7m}b.dM({6l:"9z",p6:R,3R:b,1Y:a,9H:b.kF,dL:b.kD})},vq:S(c){if(!c){Y}Q a=O,b=R;b=P.1P.6O.fk(c);a.2Q+=b;a.dM({6l:"9z",p6:R,vp:1d,3R:a,9H:a.kF,dL:a.kD})},kF:S(a){Q c=O,b=R,d=R;a=P.1o.9O(a);d=P.1P.dO.7o(a);c.5l=d;b=X P.1P.kE(d,a);c.1p.1E("4n",b)},kD:S(b){Q e=O,d=R,a=R,c=R;b=P.1o.9O(b);d=b.as;if(!d){Y}a=P.fj.7o(d);c=X P.fi(a,b);e.1p.1E("4m",c)},1t:"P.1P.7M"});P.1P.kC=P.27(P.7q,{5d:R,1I:S(a,c){P.7q.1x.1I.1q(O,[c]);Q b=O;b.5d=a},1B:S(){P.7q.1x.1B.1q(O);Q a=O;if(a.5d){a.5d.1B();a.5d=R}},1t:"P.1P.kC"});P.1P.dN=P.27({7b:R,1I:S(a){if(a){P.1o.2R(O,a)}},1B:S(){Q a=O;a.7b=R},1t:"P.1P.dN"});P.1P.dN.7o=S(a){if(!a){Y}if(a 1m fm){Y X P.1P.dN({7b:a})}13{Y X P.1P.dN({7b:a})}};P.1P.9F=P.27({6l:"eP",h6:R,1I:S(a){if(!a){Y}P.1o.2R(O,a)},1B:S(){Q a=O;a.6l="eP";a.h6=R},1t:"P.1P.9F"});P.1P.9F.p5=S(a){if(a){Y P.V.1k.5I(a.h6)}};P.1P.bi=P.27(P.7p,{5b:["4n","4m"],1p:R,3n:R,5l:R,6Q:"",eQ:1d,1I:S(c,b){P.7p.1x.1I.1q(O,[c]);if(b){P.1o.2R(O,b)}Q d=O,a;d.1p=X P.ag(d,R,d.5b,1a);if(d.3n 1m 6Z){d.1p.on(d.3n)}a=d.2Q.9G(d.2Q.W-1,1);if(d.fl){d.2Q+=(a=="/")?"7a/":"/7a/";d.2Q+=O.6Q+".8b"}13{d.2Q+=(a=="/")?"7a/":"/7a/";d.2Q+=O.6Q+".co"}d.2Q+="?eQ="+O.eQ},1B:S(){P.7p.1x.1B.1q(O,1K);Q a=O;if(a.1p){a.1p.1B();a.1p=R}if(a.3n){a.3n=R}if(a.5l){a.5l.1B();a.5l=R}a.6Q=""},4P:S(d,a){if(!d){Y}Q b=O,e=d.6l;Q c=R;if(d.6l&&d.6l==="eP"){c=P.1P.9F.p5(d)}b.dM({6l:e,hn:c,3R:b,1Y:a,9H:b.p4,dL:b.p3})},p4:S(a){Q d=O,c=R,b=R;a=P.1o.9O(a);b=P.1P.dN.7o(a);d.5l=b;c=X P.1P.kC(b,a);d.1p.1E("4n",c)},p3:S(b){Q e=O,d=R,a=R,c=R;b=P.1o.9O(b);d=b.as;if(!d){Y}a=P.fj.7o(d);c=X P.fi(a,b);e.1p.1E("4m",c)},1t:"P.1P.bi"});P.1P.kB=P.27(P.7q,{5d:R,1I:S(a,c){P.7q.1x.1I.1q(O,[c]);Q b=O;b.5d=a},1B:S(){P.7q.1x.1B.1q(O);Q a=O;if(a.5d){a.5d.1B();a.5d=R}},1t:"P.1P.kB"});P.1P.ff=P.27({87:R,bk:R,1I:S(a){if(!a){Y}P.1o.2R(O,a)},1B:S(){Q a=O;a.87=R;a.bk=R},1t:"P.1P.ff"});P.1P.ff.fk=S(b){if(b){Q a="";if(b.87!==R){a="?87="+b.87}if(b.bk&&(b.bk!==R||b.bk!==0)){a+="&bk="+b.bk}Y a}};P.1P.dK=P.27({ho:R,1I:S(a){if(a){P.1o.2R(O,a)}},1B:S(){Q a=O;a.ho=R},1t:"P.1P.dK"});P.1P.dK.7o=S(a){if(!a){Y}if(a 1m fm){Y X P.1P.dK({ho:a})}13{Y X P.1P.dK({ho:a})}};P.1P.kr=P.27(P.7p,{5b:["4n","4m"],1p:R,3n:R,5l:R,1I:S(c,b){P.7p.1x.1I.1q(O,[c]);if(b){P.1o.2R(O,b)}Q d=O,a;d.1p=X P.ag(d,R,d.5b,1a);if(d.3n 1m 6Z){d.1p.on(d.3n)}a=d.2Q.9G(d.2Q.W-1,1);if(d.fl){d.2Q+=(a=="/")?"7a":"/7a";d.2Q+=".8b"}13{d.2Q+=(a=="/")?"7a":"/7a";d.2Q+=".co"}},1B:S(){P.7p.1x.1B.1q(O,1K);Q a=O;if(a.1p){a.1p.1B();a.1p=R}if(a.3n){a.3n=R}if(a.5l){a.5l.1B();a.5l=R}},4P:S(d,a){if(!d){Y}Q b=O,c=R;b.2Q+=P.1P.ff.fk(d);b.dM({6l:"9z",hn:c,3R:b,1Y:a,9H:b.p2,dL:b.hd})},p2:S(a){Q c=O,b=R,d=R;a=P.1o.9O(a);d=P.1P.dK.7o(a);c.5l=d;b=X P.1P.kB(d,a);c.1p.1E("4n",b)},hd:S(b){Q e=O,d=R,a=R,c=R;b=P.1o.9O(b);d=b.as;if(!d){Y}a=P.fj.7o(d);c=X P.fi(a,b);e.1p.1E("4m",c)},1t:"P.1P.kr"});Q 9M=R;P.2Z=X P.27({1X:R,1c:R,74:R,8y:R,bp:R,bo:R,9N:R,hm:R,bq:96,7Q:R,1Y:R,bn:R,1I:S(c,a,b){if(c){P.2Z.1x.1c=c}if(a){P.2Z.1x.1X=a}if(b&&b.1Y){O.1Y=b.1Y}O.74=X P.V.kw();O.8y=X P.V.kk(O.1c,O.1X,b);O.bp=X P.V.kj(O.1c);O.bo=X P.V.kv(O.1c);O.9N=X P.V.kh(O.1X,b);O.7Q=X P.V.gH(O.1c,O.1X,b);O.bn=X P.V.jD(O.1c)},1B:S(){O.1X=R;if(O.74){O.74.1B();O.74=R}if(O.8y){O.8y.1B();O.8y=R}if(O.bp){O.bp.1B();O.bp=R}if(O.bo){O.bo.1B();O.bo=R}if(O.9N){O.9N.1B();O.9N=R}O.hm=R;if(R!==O.7Q){O.7Q.1B();O.7Q=R}if(R!==O.bn){O.bn.1B();O.bn=R}},dJ:S(){Y O.74},vo:S(){Y O.8y},vn:S(){Y O.bp},vm:S(){Y O.bo},dI:S(){Y O.9N},8O:S(){if(R===O.7Q){O.7Q=X P.V.gH(O.1c,O.1X)}Y O.7Q},vl:S(){Y O.hm},vk:S(a){O.hm=a},kA:S(){Y O.bq},vj:S(a){O.bq=a},6f:S(){Y O.bn},6m:S(a){P.2Z.1x.1c=a;if(O.8y.1c===R){O.8y.1c=a}if(O.bp.1c===R){O.bp.1c=a}if(O.bo.1c===R){O.bo.1c=a}if(O.7Q.1c===R){O.7Q.6m(a)}if(O.bn.1c===R){O.bn.1c=a}},p1:S(a){P.2Z.1x.1X=a;if(O.8y.1X===R){O.8y.1X=a}if(O.9N.2Q===R){O.9N.2Q=a}if(O.7Q.1X===R){O.7Q.1X=a}},p0:S(a){P.2Z.1x.1Y=a;if(O.8y.1Y===R){O.8y.1Y=a}if(O.9N.1Y===R){O.9N.1Y=a}if(O.7Q.1Y===R){O.7Q.1Y=a}},4b:S(g){Q h=O.1c.2C;19(Q e=0;e<h.W;e++){if(h[e]1m P.2J.43){Q f=h[e].1h;19(Q d=0;d<f.W;d++){if(f[d].T.1r===g){Y f[d]}}}}Q b=O.1c.fg("P.2J.eR");19(Q c=0;c<b.W;c++){Q f=b[c].1h;19(Q a=0;a<f.W;a++){if(f[a].T.1r===g){Y f[a]}}}Y R},1t:"P.2Z"});P.2Z.3r=S(c,a,b){if(9M===R){9M=X P.2Z(c,a,b)}13{if(c&&9M.1c===R){9M.6m(c)}13{if(a&&9M.1X===R){9M.p1(a)}13{if(b&&b.1Y&&9M.1Y===R){9M.p0(1Y)}}}}Y 9M};P.V.kw=X P.27({kz:"#5Q",9u:2,ky:"cn",kx:1,9v:"9L",dH:"9L",9K:60,6S:5,6R:1,bm:40,cl:7,3l:1d,2g:"#5Q",2k:0.31,3B:"#9s",58:1,4u:1d,5W:"#5Q",5V:"oZ",69:1d,68:"#5Q",5E:1d,67:"#5Q",5D:0,5C:0,1y:14,3e:0,3j:4F,3p:"微软雅黑",3J:"vi",3Y:"",2H:0,86:"#gC",4W:4,85:1,4z:"#5Q",5L:1,3Z:"6e",hl:1d,3X:0,2M:0,3y:0,9J:"6e",ck:0.31,cj:"#5Q",3O:1,1I:S(a){if(a){P.1o.2R(O,a)}O.oY()},oY:S(){if(oX 1F==="1l"){Y}if(1F&&1F.9K!==1l){O.9K=3P(1F.9K)}if(1F&&1F.6S!==1l){O.6S=3P(1F.6S)}if(1F&&1F.6R!==1l){O.6R=3P(1F.6R)}if(1F&&1F.bm!==1l){O.bm=3P(1F.bm)}if(1F&&1F.cl!==1l){O.cl=3P(1F.cl)}if(1F&&1F.3l!==1l){O.3l=1F.3l}if(1F&&1F.1D!==1l){O.9u=3P(1F.1D)}if(1F&&1F.2L!==1l){O.kz=1F.2L}if(1F&&1F.3M!==1l){O.kx=3P(1F.3M)}if(1F&&1F.5M!==1l){O.ky=1F.5M}if(1F&&1F.5U!==1l){O.9v=1F.5U}if(1F&&1F.6C!==1l){O.9v=1F.6C}if(1F&&1F.2q!==1l){O.2q=1F.2q}if(1F&&1F.2g!==1l){O.2g=1F.2g}if(1F&&1F.2k!==1l){O.2k=3P(1F.2k)}if(1F&&1F.3B!==1l){O.3B=1F.3B}if(1F&&1F.58!==1l){O.58=3P(1F.58)}if(1F&&1F.4u!==1l){O.4u=1F.4u}if(1F&&1F.5W!==1l){O.5W=1F.5W}if(1F&&1F.5V!==1l){O.5V=3P(1F.5V)}if(1F&&1F.69!==1l){O.69=1F.69}if(1F&&1F.68!==1l){O.68=1F.68}if(1F&&1F.5E!==1l){O.5E=1F.5E}if(1F&&1F.67!==1l){O.67=1F.67}if(1F&&1F.5D!==1l){O.5D=1F.5D}if(1F&&1F.5C!==1l){O.5C=1F.5C}if(1F&&1F.3e!==1l){O.3e=4A(1F.3e)}if(1F&&1F.3j!==1l){O.3j=3P(1F.3j)}if(1F&&1F.1y!==1l){O.1y=3P(1F.1y)}if(1F&&1F.3p!==1l){O.3p=1F.3p}if(1F&&1F.3J!==1l){O.3J=1F.3J}if(1F&&1F.3Y!==1l){O.3Y=1F.3Y}if(1F&&1F.2H!==1l){O.2H=3P(1F.2H)}if(1F&&1F.86!==1l){O.86=1F.86}if(1F&&1F.4W!==1l){O.4W=3P(1F.4W)}if(1F&&1F.85!==1l){O.85=3P(1F.85)}if(1F&&1F.4z!==1l){O.4z=1F.4z}if(1F&&1F.5L!==1l){O.5L=3P(1F.5L)}if(1F&&1F.3Z!==1l){O.3Z=1F.3Z}if(1F&&1F.3y!==1l){O.3y=3P(1F.3y)}if(1F&&1F.3X!==1l){O.3X=3P(1F.3X)}if(1F&&1F.2M!==1l){O.2M=3P(1F.2M)}if(1F&&1F.9J!==1l){O.9J=1F.9J}if(1F&&1F.cj!==1l){O.cj=3P(1F.cj)}if(1F&&1F.ck!==1l){O.ck=1F.ck}if(1F&&1F.3O!==1l){O.3O=3P(1F.3O)}},1B:S(){O.kz=R;O.9u=R;O.bm=R;O.ky=R;O.hl=R;O.9K=R;O.6S=R;O.6R=R;O.cl=R;O.3l=R;O.kx=R;O.9v=R;O.dH=R;O.2g=R;O.2k=R;O.3B=R;O.58=R;O.1y=R;O.3p=R;O.3J=R;O.3Y=R;O.3j=R;O.3e=R;O.2H=R;O.86=R;O.4W=R;O.85=R;O.4z=R;O.5L=R;O.3Z=R;O.3y=R;O.3X=R;O.2M=R;O.9J=R;O.ck=R;O.cj=R;O.3O=R},vh:S(a){if(a.4w&&a.4w.54.2f){P.V.5H.oW(a.4w.54.2f,O);a.4w.54.2f.T.fh();if(a.4w.54.2f.T 1m P.U.5a){Q b=a.4w.54.2f.T.2u;a.4w.54.2f.T.at(b.w,b.h);a.4w.54.2f.T.98=a.4w.54.2f.T.1S;a.4w.54.2f.T.9I=a.4w.54.2f.T.1S;if(a.4w.54.2f.T.1S>a.4w.54.2f.T.6S){a.4w.54.2f.T.1S=a.4w.54.2f.T.6S}13{if(a.4w.54.2f.T.1S<a.4w.54.2f.T.6R){a.4w.54.2f.T.1S=a.4w.54.2f.T.6R}}a.4w.54.2f.T.3x=a.4w.54.2f.T.1c.3m();a.4w.54.2f.T.2u.w*=a.4w.54.2f.T.1S;a.4w.54.2f.T.2u.h*=a.4w.54.2f.T.1S}a.4w.54.2f.T.1u()}},1t:"P.V.kw"});P.V.kv=X P.27({1c:R,1I:S(b,a){if(b){O.1c=b}},1B:S(){O.1c=R},vg:S(b){Q a=R;Q f=O.1c.6B(b);Q d=X P.U.1f(f.1U,f.1T);Q e=O.1c.fg("P.2J.43");19(Q c=0;c<e.W;c++){a=e[c].bl(d);if(a!==R){Y a}}Y a},vf:S(l){Q o=[];if(!P.1o.4g(l)){l=[l]}if(l.W<=2){Y o}Q d=[];19(Q f=0;f<l.W;f++){Q n=O.1c.6B(l[f]);Q a=X P.U.1f(n.1U,n.1T);d.17(a)}Q g=X P.U.5h(d);Q k=X P.U.4T([g]);Q e=O.1c.fg("P.2J.43");19(Q f=0;f<e.W;f++){Q b=e[f].1h;19(Q c=0;c<b.W;c++){Q m=b[c];Q h=O.hj(m);if(R===h){1W}if(k.hk(h)){o.17(m)}}}Y o},ve:S(f,d,k){Q q=[];Q c=O.1c.6B(X P.U.1f(f,d));Q b=O.1c.6B(X P.U.1f(f+k,d));Q l=X P.U.1f(c.1U,c.1T);Q m=X P.U.1f(b.1U,b.1T);Q p=P.V.1k.2I(l,m);Q h=O.1c.fg("P.2J.43");19(Q g=0;g<h.W;g++){Q a=h[g].1h;19(Q e=0;e<a.W;e++){Q o=a[e];Q n=O.hj(o);if(R===n){1W}if(1n.2W(p)>1n.2W(P.V.1k.2I(n,l))){q.17(o)}}}Y q},vd:S(l,g,m,e){Q p=[];Q n=O.1c.6B(X P.U.1f(l,g));Q k=O.1c.6B(X P.U.1f(l+m,g+e));Q d=O.1c.fg("P.2J.43");19(Q c=0;c<d.W;c++){Q a=d[c].1h;19(Q b=0;b<a.W;b++){Q o=a[b];Q f=O.hj(o);if(R===f){1W}if((f.x>n.1U&&f.x<k.1U&&f.y<n.1T&&f.y>k.1T)){p.17(o)}}}Y p},hj:S(a){if(!a||!a.T){Y R}Q b=a.T.2F();if(!b){Y R}Y X P.U.1f((b.21+b.2c)/2,(b.1Z+b.2h)/2)},1t:"P.V.kv"});P.V.kk=X P.27({1c:R,1X:R,78:R,6N:R,6Q:R,5b:["oK","hd","kn","kq","oM","oL","oP","ks","oR","kt","oC","oB","oH","oG","fb","oT","ku"],1p:R,3n:R,1I:S(c,a,b){if(c){O.1c=c}if(a){O.1X=a}if(b&&b.1Y){O.1Y=b.1Y}if(b&&b.78){O.78=b.78;O.78.1p.6g("ci",O,O.fb)}O.1p=X P.ag(O,R,O.5b,1a);if(O.3n 1m 6Z){O.1p.on(O.3n)}O.6N=X P.V.k4();O.6Q="vc"},1B:S(){if(O.3n){O.1p.un(O.3n);O.3n=R}if(O.1p){O.1p.1B();O.1p=R}O.1c=R;O.78=R;O.6N.1B();O.6N=R;O.6Q=R;O.1X=R},ar:S(){if(O.78===R){Q a=O.1c.2C;19(Q b=0;b<a.W;b++){if(a[b].5c){O.78=a[b];1C}}if(O.78!==R){O.78.1p.6g("ci",O,O.fb)}}},vb:S(){Q a=[];19(Q b=0;b<O.1c.2C.W;b++){if(O.1c.2C[b].1t==="P.2J.43"){a.17(O.1c.2C[b])}}Y a},va:S(b){Q e=O.1X;Q a=O.1X.9G(O.1X.W-1,1);e+=(a=="/")?"7a/":"/7a/";Q d=4R.79(b).51;Q f=d.8x("\\\\");Q c=f[f.W-1];e+=c;if(O.1Y){e+="?"+O.1Y.42+"="+O.1Y.51}Q g=O;if(c!==""){$.hi({2Q:e,hh:1d,hg:b,hf:"8b",he:60*60*6a,9H:S(j,h){g.oJ(c)},as:S(j,h,k){g.1p.1E("kq")}})}},v9:S(b){if(!9n.oV){Y}Q d=O;Q c=4R.79(b).v8;if(c.W===0){Y}Q a=X oV();a.v7(c[0]);a.v6=S(f){if(f.oU>=5*k1*k1||f.oU<=0){d.1p.1E("ku");Y}};a.v5=S(f){d.1p.1E("ku");Y};a.v4=S(f){d.1p.1E("oT")};a.iU=S(g){Q f=gF.gE(g.v3.5d);d.kp(f,b)}},v2:S(b,h){Q e=O.1X;Q a=O.1X.9G(O.1X.W-1,1);e+=(a=="/")?"7a/":"/7a/";Q d=4R.79(b).51;Q f=d.8x("\\\\");Q c=f[f.W-1];e+=c;if(O.1Y){e+="?"+O.1Y.42+"="+O.1Y.51}Q g=O;if(c!==""){$.hi({2Q:e,hh:1d,hg:b,hf:"8b",he:60*60*6a,9H:S(k,j){g.ar();g.oQ(c,h)},as:S(k,j,l){g.1p.1E("ks")}})}},v1:S(b,f){Q e=O.1X;Q a=O.1X.9G(O.1X.W-1,1);e+=(a=="/")?"7a/":"/7a/";Q d=4R.79(b).51;Q g=d.8x("\\\\");Q c=g[g.W-1];e+=c;if(O.1Y){e+="?"+O.1Y.42+"="+O.1Y.51}Q h=O;if(c!==""){$.hi({2Q:e,hh:1d,hg:b,hf:"8b",he:60*60*6a,9H:S(k,j){h.oS(c,f)},as:S(k,j,l){h.1p.1E("kt")}})}},v0:S(c,h,b){Q f=O.1X;Q a=O.1X.9G(O.1X.W-1,1);f+=(a=="/")?"7a/":"/7a/";Q e=4R.79(c).51;Q g=e.8x("\\\\");Q d=g[g.W-1];f+=d;if(O.1Y){f+="?"+O.1Y.42+"="+O.1Y.51}if(d!==""){$.hi({2Q:f,hh:1d,hg:c,hf:"8b",he:60*60*6a,9H:S(k,j){h()},as:S(k,j,l){b()}})}},oS:S(d,e){S c(g){Q o=g.2B;Q h=o.92;Q p=R;Q n=[];19(Q m=0;m<O.1c.2C.W;m++){if(O.1c.2C[m].42===e){n=[O.1c.2C[m]]}}if(n.W!==0){p=n[0]}13{p=X P.2J.43(e,O.1X,{1Y:O.1Y});Q l=X P.4r.fe(p,P.95.1V);O.1c.dG([p]);O.1c.ha([l])}19(Q k=0;k<h.W;k++){O.fc(h[k],p)}O.1p.1E("oR")}S f(g){O.1p.1E("kt")}Q a=X P.1P.bi(O.1X,{6Q:d});a.1p.on({4n:c,4m:f,3R:O});Q b=X P.1P.9F();b.6l="9z";a.4P(b,O.1Y)},oQ:S(d,e){S c(g){Q m=g.2B;Q h=m.92;19(Q k=0;k<h.W;k++){Q n=R;Q l=[];if(h[k].6M){l=O.1c.oN(h[k].6M)}if(l.W!==0){n=l[0]}13{if(e){n=X P.2J.43(h[k].6M,O.1X,{1Y:O.1Y});Q j=X P.4r.fe(n,P.95.1V);O.1c.dG([n]);O.1c.ha([j])}}if(n===R){1W}O.fc(h[k],n)}O.1p.1E("oP")}S f(g){O.1p.1E("ks")}Q a=X P.1P.bi(O.1X,{6Q:d});a.1p.on({4n:c,4m:f,3R:O});Q b=X P.1P.9F();b.6l="9z";a.4P(b,O.1Y)},uZ:S(b){Q c="";Q a=O.1X.9G(O.1X.W-1,1);c=(a=="/")?"oO/"+b:"/oO/"+b;if(O.1Y){Y c+"?"+O.1Y.42+"="+O.1Y.51}13{Y c}},uY:S(){O.6Q="";O.6N.1B();Q b=O.1c.2C;19(Q a=0;a<b.W;){if(b[a].1t==="P.2J.43"){b[a].7P();O.1c.uX(b[a].4w);O.1c.c2(b[a],1d)}13{a++}}},uW:S(){if(O.6Q!==""){Q a=[];Q c=O.1c.2C;19(Q b=0;b<c.W;b++){if(c[b].dF===1a){1W}a.17(c[b])}O.9o(O.6Q,a,1a)}},uV:S(a){Q b=[];Q d=O.1c.2C;19(Q c=0;c<d.W;c++){if(d[c].dF===1a){1W}b.17(d[c])}O.9o(a,b,1d)},uU:S(b,d){Q a=[];if(!P.1o.4g(d)){d=[d]}19(Q c=0;c<d.W;c++){a=a.4Y(O.1c.oN(d[c]))}O.9o(b,a,1d)},uT:S(d){S c(f){O.1p.1E("oM",f.2B.6N)}S e(f){O.1p.1E("oL",R)}Q a=X P.1P.bi(O.1X,{6Q:d});a.1p.on({4n:c,4m:e,3R:O});Q b=X P.1P.9F();b.6l="9z";a.4P(b,O.1Y)},uS:S(f,a){S b(j){O.1p.1E("oK",j.2B)}S h(j){O.1p.1E("hd",j)}Q g=f*a;Q d=a;Q c=X P.1P.kr(O.1X);c.1p.on({4n:b,4m:h,3R:O});Q e=X P.1P.ff();e.87=g;e.bk=d;c.4P(e,O.1Y)},oJ:S(d){S c(f){Q g=f.2B;O.kp(g,d)}S e(f){O.1p.1E("kq")}O.ar();Q a=X P.1P.bi(O.1X,{6Q:d});a.1p.on({4n:c,4m:e,3R:O});Q b=X P.1P.9F();b.6l="9z";a.4P(b,O.1Y)},kp:S(a,f){O.6N.dD(a.6N);if(a.9C){Q l=X P.V.f3();l.dD(a.9C);if(l.7L!==R&&l.7K!==R&&l.7J!==R){O.1c.oI(X P.2v(l.7K,l.7J),l.7L)}}O.6Q=f;Q e=a.92;Q h=O.1c.2C;Q k=h.W;19(Q b=0;b<k;){if(h[b].1t==="P.2J.43"){Q d=h[b];d.7P();O.1c.c2(d);d.1B();k--}13{b++}}Q m;19(Q c=0;c<e.W;c++){if(!!e[c].91){m=X P.2J.43(e[c].6M,O.1X,{bj:["97"],1Y:O.1Y})}13{if(!!e[c].89){m=X P.2J.43(e[c].6M,O.1X,{bj:["57"],1Y:O.1Y})}13{m=X P.2J.43(e[c].6M,O.1X,{1Y:O.1Y})}}if(e[c].5c!=R){m.ko(e[c].5c)}if(e[c].4G!=R){m.hc(e[c].4G)}if(e[c].88!=R){m.hb(e[c].88)}Q g=X P.4r.fe(m,P.95.1V);O.1c.dG([m]);O.1c.ha([g]);O.fc(e[c],m)}O.78=R;O.ar();O.1p.1E("kn")},uR:S(a){O.6N.dD(a.6N);if(a.9C){Q k=X P.V.f3();k.dD(a.9C);if(k.7L!==R&&k.7K!==R&&k.7J!==R){O.1c.oI(X P.2v(k.7K,k.7J),k.7L)}}Q e=a.92;Q g=O.1c.2C;Q h=g.W;19(Q b=0;b<h;){if(g[b].1t==="P.2J.43"){Q d=g[b];d.7P();O.1c.c2(d);d.1B();h--}13{b++}}Q l;19(Q c=0;c<e.W;c++){if(!!e[c].91){l=X P.2J.43(e[c].6M,O.1X,{bj:["97"],1Y:O.1Y})}13{if(!!e[c].89){l=X P.2J.43(e[c].6M,O.1X,{bj:["57"],1Y:O.1Y})}13{l=X P.2J.43(e[c].6M,O.1X,{1Y:O.1Y})}}if(e[c].5c!=R){l.ko(e[c].5c)}if(e[c].4G!=R){l.hc(e[c].4G)}if(e[c].88!=R){l.hb(e[c].88)}Q f=X P.4r.fe(l,P.95.1V);O.1c.dG([l]);O.1c.ha([f]);O.fc(e[c],l)}O.78=R;O.ar();O.1p.1E("kn")},uQ:S(d){S c(f){O.1p.1E("oH")}S e(f){O.1p.1E("oG")}Q a=X P.1P.bi(O.1X,{6Q:d});a.1p.on({4n:c,4m:e,3R:O});Q b=X P.1P.9F();b.6l="oF";a.4P(b,O.1Y)},uP:S(b){Q f=[];Q e=O.1c.2C;19(Q d=0;d<e.W;d++){if(e[d].dF===1a){1W}Q c=e[d].1h;19(Q a=0;a<c.W;a++){if(c[a].T.h9().k6(b)!==R){f.17(c[a])}}}Y f},uO:S(d,c){Q g=[];Q f=O.1c.2C;19(Q e=0;e<f.W;e++){if(f[e].dF===1a){1W}Q b=f[e].1h;19(Q a=0;a<b.W;a++){if(b[a].T.1A===c&&b[a].T.1v===d){g.17(b[a])}}}Y g},uN:S(a){Q f=[];Q e=O.1c.2C;19(Q d=0;d<e.W;d++){if(e[d].dF===1a){1W}Q c=e[d].1h;19(Q b=0;b<c.W;b++){if(c[b].T.4i===a){f.17(c[b])}}}Y f},uM:S(a){Q d=[];Q c=O.1c.2C;19(Q b=0;b<c.W;b++){if(c[b].dF===1a){1W}d.17(c[b].4b(a))}Y d},km:S(c,b,d,a){O.ar();O.78.km(c,b,d,a)},h8:S(c,b,d,a){O.ar();Y O.78.h8(c,b,d,a)},kl:S(b,c,a){O.ar();Y O.78.kl(b,c,a)},h7:S(b,c,a){O.ar();Y O.78.h7(b,c,a)},9o:S(j,f,o){Q d=X P.V.k5();d.6N=O.6N;Q k=X P.V.f3();k.7L=O.1c.uL();k.7K=O.1c.oE().1U;k.7J=O.1c.oE().1T;d.9C=k;d.92=[];19(Q l=0;l<f.W;l++){Q h=f[l];if(R===h||h.1t!=="P.2J.43"){1W}Q g=X P.V.k3();g.6M=f[l].42;g.91=f[l].91;g.89=f[l].89;g.5c=f[l].fd();g.4G=f[l].77();g.88=f[l].oD();Q c=[];Q n=f[l].1h;if(!n){1W}19(Q e=0;e<n.W;e++){if((n[e].T 1m P.U.1N)){c.17(n[e])}}g.1h=c;d.92.17(g)}S p(q){O.1p.1E("oC")}S a(q){O.1p.1E("oB")}Q m=X P.1P.bi(O.1X,{6Q:j,eQ:o});m.1p.on({4n:p,4m:a,3R:O});Q b=X P.1P.9F();b.6l="eP";b.h6=d;m.4P(b,O.1Y)},fc:S(g,h){19(Q a=0;a<g.1h.W;a++){if(g.1h[a]!==R){Q f=g.1h[a].1v;Q e=g.1h[a].1A;Q c=g.1h[a].3x;if(g.1h[a].3l===1d){c=O.1c.3m()}if(!g.1h[a].2l("5J")){g.1h[a].5J=1a}Q b=[];if(g.1h[a].ch){19(Q d=0;d<g.1h[a].ch.W;d++){b.17(X P.U.1f(g.1h[a].ch[d].x,g.1h[a].ch[d].y))}}if(b.W===0){b=R}h.2X(f,e,b,{},{1i:g.1h[a],3x:c,1c:O.1c,1X:h.1X})}}},fb:S(a){O.1p.1E("fb",a)},1t:"P.V.kk"});P.V.kj=X P.27({1c:R,94:R,1I:S(b,a){if(b){O.1c=b}O.94=[];O.6o()},1B:S(){O.1c=R;O.94=R;O.aq=R;O.3C=R},6o:S(){O.94=[];O.aq=[];O.3C=[]},uK:S(c){O.6o();if(!(P.1o.4g(c))){c=[c]}19(Q b=0;b<c.W;b++){Q a=c[b];if(a.T 1m P.U.1N){O.94.17(a);O.aq.17(a.T.3c);if(a.T.3c){O.3C.17(a)}}}},uJ:S(e){O.6o();if(!(P.1o.4g(e))){e=[e]}13{e=e.53()}Q f=X P.V.6d();f.7E=P.V.7D.eT;19(Q d=0;d<e.W;d++){Q c=e[d];Q b=c.1g;if(!(c.T 1m P.U.1N)){1W}O.94.17(c);O.aq.17(c.T.3c);if(c.T 1m P.U.4o){if(c.T.3c){c.1g.1p.1E("73",{1h:[c]})}b.4D(c.T.3W.1b)}13{b.4D(c)}c.1g=b;Q a=X P.V.4d();a.3K=c.1g.id;a.1b=c;f.1O.17(a)}if(f.1O.W!==0){P.2Z.3r().6f().6c(f)}},uI:S(){O.6o();if(R!==O.1c&&1l!==O.1c){19(Q d=0;d<O.1c.2C.W;d++){Q c=O.1c.2C[d];if(c.1t==="P.2J.43"){if(1a===c.4G||1d===c.5c){1W}19(Q a=0;a<c.3C.W;a++){Q b=c.3C[a];if(b.T 1m P.U.1N){O.94.17(b);O.aq.17(b.T.3c);if(b.T.3c){O.3C.17(b)}}}}}}},uH:S(){O.6o();Q g=X P.V.6d();g.7E=P.V.7D.eT;if(R!==O.1c&&1l!==O.1c){19(Q e=0;e<O.1c.2C.W;e++){Q d=O.1c.2C[e];if(d 1m P.2J.43){if(1a===d.4G||1d===d.5c){1W}Q f=d.3C.53();19(Q a=0;a<f.W;a++){Q c=f[a];if(!(c.T 1m P.U.1N)){1W}O.94.17(c);O.aq.17(c.T.3c);if(c.T 1m P.U.4o){if(c.T.3c){c.1g.1p.1E("73",{1h:[c]})}d.4D(c.T.3W.1b)}13{d.4D(c)}c.1g=d;Q b=X P.V.4d();b.3K=c.1g.id;b.1b=c;g.1O.17(b)}}}}if(g.1O.W!==0){P.2Z.3r().6f().6c(g)}},uG:S(){O.h5()},uF:S(a){O.h5(a)},uE:S(a){O.h5(R,a)},h5:S(y,x){Q u=1a;if(x&&x.1t==="P.2J.43"){u=1d}Q n=1d;if(R===y||1l===y){n=1a}Q o=R;if(!n){Q g=X P.5B();19(Q r=0;r<O.94.W;r++){Q c=O.94[r].T;if(c 1m P.U.4o){g.2R(c.3W.2F())}g.2R(c.2F())}o=X P.U.1f(g.7O().1U,g.7O().1T)}19(Q s=0;s<O.3C.W;s++){Q e=O.3C[s];e.1g.1p.1E("73",{1h:[e]})}O.3C=[];Q t=X P.V.6d();t.7E=P.V.7D.gO;P.2Z.3r().6f().6c(t);Q d=O.94.53();19(Q r=0;r<d.W;r++){Q e=d[r];if(1a===e.1g.4G||1d===e.1g.5c){1W}Q b=R;if(e.T 1m P.U.4o){b=P.V.1k.gD(e.T.3W.1b)}13{b=P.V.1k.gD(e)}if(!n&&R!==o){b.T.2n(y.x-o.x,y.y-o.y)}if(u){e.1g.5t(b,{fa:1a})}13{x.5t(b,{fa:1a})}Q l=X P.V.4d();l.3K=b.1g.id;l.1b=b;t.1O.17(l);if(O.aq!==1l&&O.aq.W>r&&O.aq[r]===1a){if(e.T 1m P.U.4o){Q w=b.T.cg(b.T.8a(e.T.3D.id));b.1g.1p.1E("7N",{1h:[w]});O.3C.17(w)}13{b.1g.1p.1E("7N",{1h:[b]});O.3C.17(b)}}if(e.T.4a){19(Q q=0;q<e.T.4a.W;q++){19(Q p in d){if(d[p].T.1s===P.V.1j.9B||d[p].T.1s===P.V.1j.ak){Q f=e.T.4a[q].7l();f.3t=b.T.1r;Q v=P.U.1N.2X(f.1v,f.1A,R,{1i:f,1c:e.T.4a[q].1c});b.1g.5t(v);b.1g.1p.1E("7N",{1h:[v]});O.3C.17(v);d.2S(p,1);Q l=X P.V.4d();l.3K=v.1g.id;l.1r=v.T.1r;t.1O.17(l);1C}}}}if(e.T.6P){19(Q q=0;q<e.T.6P.W;q++){19(Q p in d){if(d[p].T.1s===P.V.1j.am||d[p].T.1s===P.V.1j.an){Q f=e.T.6P[q].7l();f.3t=b.T.1r;Q h=P.U.1N.2X(f.1v,f.1A,R,{1i:f,1c:e.T.6P[q].1c});b.1g.5t(h);b.1g.1p.1E("7N",{1h:[h]});O.3C.17(h);d.2S(p,1);Q l=X P.V.4d();l.3K=h.1g.id;l.1r=h.T.1r;t.1O.17(l);1C}}}}if(e.T.2Y){19(Q q=0;q<e.T.2Y.W;q++){19(Q p in d){if(d[p].T.1s===P.V.1j.8v){Q f=e.T.2Y[q].7l();f.3t=b.T.1r;Q a=P.U.1N.2X(f.1v,f.1A,R,{1i:f,1c:e.T.2Y[q].1c});b.1g.5t(a);b.1g.1p.1E("7N",{1h:[a]});O.3C.17(a);d.2S(p,1);Q l=X P.V.4d();l.3K=a.1g.id;l.1r=a.T.1r;t.1O.17(l);1C}}}}}},1t:"P.V.kj"});P.V.kh=X P.27({5b:["h3","oz"],1p:R,3n:R,2Q:R,4C:[],7n:[],h2:[],dE:1d,1I:S(b,a){O.2Q=b;if(a&&a.4C){O.4C=a.4C}if(a&&a.1Y){O.1Y=a.1Y}O.1p=X P.ag(O,R,O.5b,1a);if(O.3n 1m 6Z){O.1p.on(O.3n)}},1B:S(){if(O.3n){O.1p.un(O.3n);O.3n=R}if(O.1p){O.1p.1B();O.1p=R}O.2Q=R;O.4C=[];O.7n=[];O.h2=[];O.dE=1d},oy:S(){if(O.oA()){O.1p.1E("h3",{4C:O.4C})}13{S b(d){if(O.4C!==R&&O.4C.W!==0){19(Q f=0;f<O.4C.W;f++){Q g=1d;19(Q e=0;e<d.2B.W;e++){if(O.4C[f]===d.2B[e]){g=1a;1C}}if(g===1d){O.4C.53(f,1)}}}13{O.4C=d.2B}O.h4(0)}S c(d){O.4C=[]}Q a=X P.1P.ki(O.2Q);a.1p.on({4n:b,4m:c,3R:O});a.4P(O.1Y);O.dE=1a}},h4:S(b){S a(e){O.h2.17(e.2B);O.7n.17(X P.V.k7({4H:e.2B}));O.7n[O.7n.W-1].2Q=O.2Q;if(b!==O.4C.W-1){O.h4(b+1)}13{O.dE=1a;O.1p.1E("h3",{4C:O.4C})}}S d(e){if(b!==O.4C.W-1){O.4C.53(b,1);O.h4(b)}13{O.4C.53(b,1);O.dE=1a;O.1p.1E("h3",{4C:O.4C})}}Q c=X P.1P.h1(O.2Q,{1v:O.4C[b]});c.1p.on({4n:a,4m:d,3R:O});c.4P(O.1Y)},oA:S(){Y O.dE},uD:S(){Y O.4C.W},os:S(a){if(a>=O.4C.W){Y-1}Y O.4C[a]},uC:S(a){if(a>=O.4C.W){Y R}Y O.h2[a]},uB:S(a){if(a>=O.4C.W){Y R}Y O.7n[a]},ap:S(b){19(Q a=0;a<O.7n.W;a++){if(b===O.7n[a].1v){Y O.7n[a]}}Y R},uA:S(c){Q b=O.ap(c);S a(){O.1p.1E("oz");b.1p.un({f6:a})}if(b!==R){b.1p.on({f6:a,3R:O});b.ot()}},f9:S(c,b){Q a=O.ap(c);if(a===R){Y""}Y a.f9(b)},uz:S(b){Q f=[];19(Q d=0;d<O.4C.W;d++){Q e=O.ap(O.4C[d]);Q c=e.kb(b);19(Q a=0;a<c.W;a++){f.17(c[a])}}Y f},uy:S(e){Q f=[];19(Q c=0;c<O.4C.W;c++){Q d=O.ap(O.4C[c]);Q b=d.kb(e.5R());19(Q a=0;a<b.W;a++){f.17(b[a])}}Y f},1t:"P.V.kh"});P.V.k7=X P.27({5b:["ox","ow","f6"],1p:R,3n:R,2Q:R,1v:R,4H:R,f5:R,9D:R,f8:R,1I:S(a){O.f5={};O.9D=[];if(a&&a.2Q&&a.1v){O.2Q=a.2Q;O.1v=a.1v}13{if(a&&a.4H){O.4H=a.4H;O.1v=O.4H.1v;O.kf()}}if(a&&a.1Y){O.1Y=a.1Y}O.1p=X P.ag(O,R,O.5b,1a);if(O.3n 1m 6Z){O.1p.on(O.3n)}},1B:S(){if(O.3n){O.1p.un(O.3n);O.3n=R}if(O.1p){O.1p.1B();O.1p=R}O.2Q=R;O.1v=R;O.4H=R},oy:S(){S a(d){O.4H=d.2B;O.1v=O.4H.1v;O.kf();O.1p.1E("ox")}S c(d){O.1v=-1;O.1p.1E("ow")}Q b=X P.1P.h1(O.2Q,{1v:O.1v});b.1p.on({4n:a,4m:c,3R:O});b.4P(O.1Y)},ux:S(){if(O.4H===R){Y R}Y O.4H.uw},f9:S(a){if(O.4H===R){Y""}if(O.f8===R){O.f8={};O.kg(O.4H.ka)}Y O.f8[a]},kg:S(b){19(Q a=0;a<b.ov;a++){if(b.3w[a].f4==="k9"){O.kg(b.3w[a])}13{if(b.3w[a].f4==="ou"){O.f8[b.3w[a].6A]=b.3w[a].4i}}}Y""},kf:S(){if(O.4H===R){Y 1d}O.ke(O.4H.ka)},ke:S(c,a){19(Q b=0;b<c.ov;b++){if(c.3w[b].f4==="k9"){O.ke(c.3w[b])}13{if(c.3w[b].f4==="ou"&&c.3w[b].1s==="uv"){O.9D.17(c.3w[b].6A)}}}},ot:S(){if(O.9D.W===0){O.1p.1E("f6")}Q d=1n.f7(1n.h0()*6a);S a(f){if(f.2B.7m&&f.2B.7m===P.kd.kc(d.5R())){3k f.2B.7m;O.9E(f.2B)}13{O.9D.2S(0,1)}if(O.9D.W!==0){d=1n.f7(1n.h0()*6a);Q g=X P.1P.7M(O.2Q);g.1p.on({4n:a,4m:e,3R:O});Q h=X P.1P.6O();h.1v=O.1v;h.1A=O.9D[0];h.7m=d;g.4P(h,O.1Y)}13{O.1p.1E("f6")}}S e(f){}Q b=X P.1P.7M(O.2Q);b.1p.on({4n:a,4m:e,3R:O});Q c=X P.1P.6O();c.1v=O.1v;c.1A=O.9D[0];c.7m=d;b.4P(c,O.1Y);O.uu=1a},os:S(){Y O.1v},7l:S(a){Q b=R;if(O.f5.2l(a)){b=P.1o.5Z(O.f5[a])}Y b},9E:S(b){Q a=P.1o.3v(O.9D,b.1A);if(a!==-1){O.f5[b.1A]=P.1o.5Z(b);O.9D.2S(a,1)}},ut:S(){if(O.4H===R){Y R}Y O.4H.us},kb:S(a){Y O.k8(a,O.oq(),O.or())},ur:S(){if(O.4H===R){Y R}Y O.4H.uq},uo:S(){if(O.4H===R){Y R}Y O.4H.um},ul:S(){if(O.4H===R){Y R}Y O.4H.uk},uj:S(){if(O.4H===R){Y R}Y O.4H.ui},or:S(){if(O.4H===R){Y R}Y O.4H.uh},ug:S(){if(O.4H===R){Y R}Y O.4H.uf},oq:S(){if(O.4H===R){Y R}Y O.4H.ka},k8:S(h,c,d){Q g=[];if(c.f4==="k9"){19(Q f=0;f<c.3w.W;f++){Q b=d+"/"+c.4i;Q a=O.k8(h,c.3w[f],b);19(Q e=0;e<a.W;e++){g.17(a[e])}}}13{if(h===c.6A.5R()){c.op=d+"/"+c.6A+".gZ";g.17(c)}13{if(-1!==c.4i.3v(h)){c.op=d+"/"+c.6A+".gZ";g.17(c)}}}Y g},1t:"P.V.k7"});P.V.bh=X P.27({76:R,1I:S(a){O.76=[]},oo:S(a,c){Q b=O.k6(a);if(R==b){O.76.17(X P.V.gY(a,c))}13{b.ok(c)}Y 1a},ue:S(b){19(Q a=0;a<O.76.W;a++){if(O.76[a].93===b){O.76.53(a,1);Y 1a}}Y 1d},k6:S(b){19(Q a=0;a<O.76.W;a++){if(O.76[a].93===b){Y O.76[a]}}Y R},ud:S(b){19(Q a=0;a<O.76.W;a++){if(O.76[a].93===b){Y O.76[a].51}}Y R},om:S(a){if(a<O.76.W){Y O.76[a]}Y R},ol:S(){Y O.76.W},1B:S(){O.76=R},1t:"P.V.bh"});P.V.gY=X P.27({93:R,51:R,1I:S(a,b){if(a){O.93=a}if(b){O.51=b}},uc:S(a){O.93=a},ub:S(){Y O.93},ok:S(a){O.51=a},ua:S(){Y O.51},1B:S(){O.93=R;O.51=R},2s:S(){Y X P.V.gY(O.93,O.51)},1t:"P.V.gY"});P.V.k5=X P.27({6N:R,9C:R,92:R,1I:S(a){if(a&&a.6N){O.6N=a.6N}if(a&&a.9C){O.9C=a.9C}if(a&&a.92){O.92=a.92}},1B:S(){O.6N=R;O.9C=R;O.92=R},1t:"P.V.k5"});P.V.k4=X P.27({bg:"",bf:"",be:"",bd:"",bc:"",bb:"",1I:S(a){if(a){O.bg=a.bg;O.bf=a.bf;O.be=a.be;O.bd=a.bd;O.bc=a.bc;O.bb=a.bb}},1B:S(){O.bg="";O.bf="";O.bc="";O.be="";O.bd="";O.bb=""},dD:S(a){O.bg=a.bg;O.bf=a.bf;O.be=a.be;O.bd=a.bd;O.bc=a.bc;O.bb=a.bb},5I:S(){Q a=R;a=\'{"bg":\'+P.V.1k.5I(O.bg)+\',"bf":\'+P.V.1k.5I(O.bf)+\',"be":\'+P.V.1k.5I(O.be)+\',"bd":\'+P.V.1k.5I(O.bd)+\',"bc":\'+P.V.1k.5I(O.bc)+\',"bb":\'+P.V.1k.5I(O.bb)+"}";Y a},1t:"P.V.k4"});P.V.f3=X P.27({7L:R,7K:R,7J:R,1I:S(a){if(a){O.7L=a.7L;O.7K=a.7K;O.7J=a.7J}},1B:S(){O.7L=R;O.7K=R;O.7J=R},dD:S(a){if(a.7L!==1l){O.7L=a.7L}if(a.7K!==1l){O.7K=a.7K}if(a.7J!==1l){O.7J=a.7J}},5I:S(){Q a=R;a=\'{"7L":\'+P.V.1k.5I(O.7L)+\',"7K":\'+P.V.1k.5I(O.7K)+\',"7J":\'+P.V.1k.5I(O.7J)+"}";Y a},1t:"P.V.f3"});P.V.k3=X P.27({6M:R,91:1d,89:1d,1h:R,1I:S(a){if(a&&a.6M){O.6M=a.6M}if(a&&a.91){O.91=a.91}if(a&&a.89){O.89=a.89}if(a&&a.1h){O.1h=a.1h}},1B:S(){O.6M=R;O.91=R;O.89=R;O.1h=R},5I:S(){Q b=[];19(Q a=0;a<O.1h.W;a++){b.17(O.1h[a].T.7l())}Q c=\'{"6M":\'+P.V.1k.5I(O.6M)+\', "91":\'+P.V.1k.5I(O.91)+\', "89":\'+P.V.1k.5I(O.89)+\', "5c":\'+P.V.1k.5I(O.5c)+\', "4G":\'+P.V.1k.5I(O.4G)+\', "88":\'+P.V.1k.5I(O.88)+\',"1h":\'+P.V.1k.5I(b)+"}";Y c},1t:"P.V.k3"});P.V.1j={5j:1,k2:2,4E:34,bV:31,eM:29,eL:26,bU:32,8w:24,ji:28,gt:44,aS:u9,gu:oj,gv:oi,gx:jc,eJ:oh,eK:48,og:cf,u8:u7,8T:iW,ad:u6,jh:u5,gw:3Q,ce:6a,ao:u4,dC:n5,bT:u3,cd:n8,dB:u2,dA:n6,dz:u1,an:u0,am:tZ,al:n7,8v:tY,9B:of,oe:od,jg:oc,dx:ob,gX:dw,ba:tX,cc:jf,8Z:tW,ca:tV,ak:je,gW:tU,oa:f2,ac:k1,k0:tT,ab:tS,9A:tR,tQ:tP,f1:tO,gV:o9};P.V.f0={jV:0,o8:1,eZ:2};P.V.4X={6e:0,b9:1,aj:2,bN:3};P.V.gU={o7:"o7",o6:"o6",o5:"o5",jZ:"jZ",o4:"o4",o3:"o3",o2:"o2",o1:"o1",o0:"o0",jY:"jY",jX:"jX",nZ:"nZ",nY:"nY",nX:"nX",nW:"nW",nV:"nV",nU:"nU",nT:"nT"};P.V.8Y={jW:0,dt:1,gT:2,tN:3};P.V.gS={6e:0,jV:1,eZ:2};P.V.tM={tL:0,tK:1,tJ:2,tI:3,tH:4,tG:5,jQ:6,jP:7};P.V.tF={tE:0,tD:1,6e:2};P.V.jU={tC:0,tB:1,tA:2,jT:3};P.V.jS={jR:0,tz:1};P.V.c9={jQ:0,jP:1,nS:2,nR:3,nQ:4,nP:5};P.V.5k={ai:0,dv:1,c8:2,du:3};P.V.gR={nO:0,nN:1,nM:2};P.V.jO={nL:0,nK:1};P.V.gQ=X P.27({1H:R,2e:R,2U:R,2T:R,Z:R,1I:S(c,d,b,a){O.1H=c;O.2e=d;O.Z=b;if(a){P.1o.2R(O,a)}if(O.1H===1l||O.1H===R){O.1H=""}if(O.2e===1l||O.2e===R){O.2e=0}if(O.2U===R){O.2U=0}if(O.2T===R){O.2T=0}},1B:S(){O.1H=R;O.2e=R;O.2U=R;O.2T=R},2s:S(){Q a={2U:O.2U,2T:O.2T};Q b={};b=P.1o.2t(b,O.Z);Q c=X P.V.gQ(O.1H,O.2e,b,a);Y c},4Q:S(){Q a={};a.1H=O.1H;a.2e=O.2e;a.2U=O.2U;a.2T=O.2T;P.V.5H.gP(O.Z,a);Y a},4B:S(a){O.1H=a.1H;O.2e=a.2e;O.2U=a.2U;O.2T=a.2T;P.V.5H.eW(a);Y O},1t:"P.V.gQ"});P.V.b8=X P.27({id:R,2z:R,36:R,42:R,2i:0,2j:R,Z:R,1I:S(a){P.1o.2R(O,a);if(O.id===R){O.id=P.V.1k.eY()}if(O.2i===R){O.2i=0}if(O.2j===R){O.2j=[]}if(O.Z===R){O.Z=P.1o.5Z(P.U.1N.74)}},1B:S(){O.2z=R;O.eX=R;O.42=R;O.id=R;O.2i=R;if(!O.2j||R===O.2j){O.2j=R}19(Q a=0;a<O.2j.W;a++){O.2j[a].1B()}O.2j=R},2s:S(){Q a={id:O.id,2z:O.2z,42:O.42,2i:O.2i,2j:O.2j};Q b=X P.V.b8(a);b.36=O.36.2s();b.Z={};b.Z=P.1o.2t(b.Z,O.Z);Y b},4B:S(b){O.id=b.id;O.2z=b.2z;O.42=b.42;O.2i=b.2i;O.36=X P.U.1f(0,0);if(b.36){O.36.x=b.36.x;O.36.y=b.36.y;O.36.z=b.36.z}13{O.36.x=b.x;O.36.y=b.y;O.36.z=b.z}O.Z=P.V.5H.eW(b);19(Q c in b.2j){Q a=X P.V.7I();O.2j.17(a.4B(b.2j[c]))}Y O},4Q:S(){Q a={};a.id=O.id;a.2z=O.2z;a.42=O.42;a.2i=O.2i;a.36=O.36;P.V.5H.gP(O.Z,a);a.2j=[];19(Q b in O.2j){a.2j.17(O.2j[b].4Q())}Y a},1t:"P.V.b8"});P.V.b7=X P.27({1v:R,1A:R,1i:R,1H:R,ah:R,1I:S(c,b,a){if(c){O.1v=c}if(b){O.1A=b}if(a){P.1o.2R(O,a)}},1B:S(){O.1v=R;O.1A=R;O.1i=R;O.ah=R},2s:S(){Q a=X P.V.b7(O.1v,O.1A);a.1i={};a.1i=P.1o.2t(a.1i,O.1i);a.1H=O.1H;a.ah=O.ah;Y a},1t:"P.V.b7"});P.V.7I=X P.27({4q:R,4p:R,7H:R,1H:R,2U:R,2T:R,Z:R,1I:S(a){P.1o.2R(O,a);if(O.4p===R){O.4p=P.V.8Y.dt}if(O.7H===R){O.7H=0}if(O.Z===R){O.Z=P.1o.5Z(P.U.1N.74)}},1B:S(){O.4q=R;O.4p=R;O.1H=R;O.Z=R},2s:S(){Q a={4q:O.4q,4p:O.4p,1H:O.1H,Z:P.1o.5Z(O.Z)};Y X P.V.7I(a)},4B:S(a){O.4q=a.4q;O.4p=a.4p;O.7H=a.7H;O.1H=a.1H;O.2U=a.2U;O.2T=a.2T;O.Z=P.V.5H.eW(a);Y O},4Q:S(){Q a={};a.4q=O.4q;a.4p=O.4p;a.7H=O.7H;a.1H=O.1H;a.2U=O.2U;a.2T=O.2T;P.1o.jN(O.Z,P.U.1N.74);P.V.5H.gP(O.Z,a);Y a},1t:"P.V.7I"});P.V.jM=X P.27({x:R,y:R,z:R,c7:R,b6:R,1I:S(a,e,d,b,c){O.x=3P(a);O.y=3P(e);if(d||d==0){O.z=3P(d)}if(b||b===0){O.c7=b}if(c){O.b6=c}},1B:S(){O.x=R;O.y=R;O.z=R;O.7H=R;O.b6=R},2s:S(a){if(a==R){a=X P.V.jM(O.x,O.y,O.z)}P.1o.jN(a,O);Y a},1t:"P.V.jM"});P.V.nJ=X P.27({2z:R,8u:R,7G:R,1I:S(a,c,b){O.8u=a;O.7G=c;O.2z=b},1B:S(){O.8u=R;O.7G=R;O.2z=R},1t:"P.V.nJ"});P.V.7D={gO:0,c4:1,eT:2};P.V.6d=X P.27({7E:R,1O:R,1I:S(a){O.7E=P.V.7D.c4;O.1O=[]},1t:"P.V.6d"});P.V.4d=X P.27({1g:R,1b:R,1r:R,3b:R,4h:R,4c:R,b4:R,jF:R,jE:R,1I:S(a){},1t:"P.V.4d"});P.V.jD=X P.27({1c:R,8X:R,c5:R,c6:32,1I:S(a){O.1c=a;O.8X=[];O.c5=[];if(O.c6===R){O.c6=32}},1B:S(){O.1c=R;O.8X=R;O.c5=R;O.c6=R},ty:S(a){O.c6=a},6c:S(a){if(O.8X.W>(O.c6-1)){O.8X.2S(0,O.8X.W-O.c6+1)}O.8X.17(a)},tx:S(){Q a=O.8X.W;if(a>0){Q b=O.8X[a-1];O.jL(b,1a);O.c5.17(b);O.8X.2S(a-1,1)}},tw:S(){Q a=O.c5.W;if(a>0){Q b=O.c5[a-1];O.jL(b);O.8X.17(b);O.c5.2S(a-1,1)}},jL:S(2o,b3){Q 1O=2o.1O;if(2o.7E===P.V.7D.gO){19(Q j=0;j<1O.W;j++){if(b3){O.1c.dr(1O[j].3K).4D(1O[j].1b)}13{O.1c.dr(1O[j].3K).5t(1O[j].1b)}}}13{if(2o.7E===P.V.7D.c4){19(Q i=0;i<1O.W;i++){Q 1g=O.1c.dr(1O[i].3K);Q 1b=R;if(1g){1b=1g.4b(1O[i].1r)}13{1b=P.2Z.3r().4b(1r)}if(1g===R&&1b===R){1W}Q 3u=1O[i].4c;if(b3){3u=1O[i].4h}if(1O[i].3b==="jK"){if(3u.W>0){1b.T.jK(3u[0])}}13{if(1O[i].3b==="7F"){if(3u.W>0){1b.T.7F(3u[0])}}13{if(1O[i].3b==="6n"){if(3u.W>0){1b.T.6n(3u[0],3u[1])}}13{if(1O[i].3b==="gN"){if(3u.W>0){1b.T.gN(3u[0])}}13{if(1O[i].3b==="jJ"){if(3u.W==2){1b.T.jJ(3u[0],3u[1])}}13{if(1O[i].3b==="jI"&&1b.T 1m P.U.4o){if(3u.W>0){1b.T.jI(3u[0])}}13{if(1O[i].3b==="jH"&&1b.T 1m P.U.3H){if(3u.W>0){1b.T.jH(3u[0])}}13{if(1O[i].3b==="ds"){if(3u.W>0){if(3u[0]&&3u[0].1b&&3u[0].1b.1g){3u[0].1b.1g.4D(3u[0].1b)}if(b3){1b.T.b5(3u[0])}13{1b.T.ds(3u[0])}}}13{if(1O[i].3b==="b5"){if(3u.W>0){19(Q m=0;m<3u[0].W;m++){if(3u[0][m]&&3u[0][m].1b&&3u[0][m].1b.1g){3u[0][m].1b.1g.4D(3u[0][m].1b)}}if(b3){19(Q m=0;m<3u[0].W;m++){1b.T.ds(3u[0][m])}}13{1b.T.b5(3u[0])}}}13{if(1O[i].3b==="gL"||1O[i].3b==="gK"){if(b3){if(1g&&1O[i].4h.W>0){1g.gM(1O[i].4h[0])}}13{if(1g&&1O[i].3b==="gL"){1g.gL(1O[i].4c[0])}13{if(1g&&1O[i].3b==="gK"){1g.gK(1O[i].4c[0])}}}}13{if(1O[i].3b==="jG"){if(3u.W>0){1b.T.jG(3u[0],3u[1])}}13{if(1O[i].3b){Q eU="";19(Q j=0;j<3u.W;j++){if(P.1o.4g(3u[j])){eU+="["+3u[j]+"]"}13{eU+=3u[j]}if(j!==3u.W-1){eU+=","}}eV("1b.T."+1O[i].3b+"("+eU+")")}}}}}}}}}}}}if(1O[i].b4){Q gJ=1O[i].jF;if(!b3){gJ=1O[i].jE}if(1b.T.2l(1O[i].b4)){1b.T[1O[i].b4]=gJ}13{1b.Z[1O[i].b4]=gJ}}if(1b&&1b.1g){if(1b.T.1s===P.V.1j.5j&&1b.T.2e===8&&(1O[i].b4==="3B"||1O[i].b4==="3p")){1b.T.1u()}1b.1g.8t(1b);1b.1g.1p.1E("c3",{1h:[1b]})}}}13{if(2o.7E===P.V.7D.eT){19(Q i=0;i<1O.W;i++){if(b3){O.1c.dr(1O[i].3K).5t(1O[i].1b)}13{O.1c.dr(1O[i].3K).4D(1O[i].1b)}}}}}},1t:"P.V.jD"});P.V.gH=P.27({5b:["nE","nD","nG","nF","tv","tu"],1p:R,3n:R,1X:R,3f:R,1c:R,5Y:R,1I:S(c,a,b){O.3f=[];if(c){O.6m(c)}if(a){O.1X=a}if(b&&b.1Y){O.1Y=b.1Y}O.1p=X P.ag(O,R,O.5b,1a);if(O.3n 1m 6Z){O.1p.on(O.3n)}},1B:S(){O.3f=R;O.1c.c2(O.5Y);O.5Y=R;O.1c=R},6m:S(b){if(R===b){Y 1d}if(O.1c===b){Y 1a}if(R!==O.1c&&R!==O.5Y){O.1B();O.3f=[]}O.1c=b;Q a={eS:1d};O.5Y=X P.2J.eR("eR",a);Y O.1c.dq(O.5Y)},nH:S(c,b,d){Q a=O.nI(c,b);if(R===a){Y R}if(a.nz(d)){O.3f.17(a);Y a}13{Y R}},jB:S(b){if(R===O.3f||R===b||""===b){Y R}Q a=R;19(Q c=0;c<O.3f.W;c++){if(O.3f[c].42===b){a=O.3f[c];1C}}Y a},tt:S(c){Q b=[];if(R===O.3f||c==="1l"||R===c){Y b}19(Q a=0;a<O.3f.W;a++){if(O.3f[a].jz()===c){b.17(O.3f[a])}}Y b},ts:S(b){if(R===O.3f||b==="1l"||R===b){Y R}19(Q a=0;a<O.3f.W;a++){if(O.3f[a].jz().T.1r===b){Y O.3f[a]}}Y R},tr:S(b){if(R===O.3f||R===b||""===b){Y 1d}Q a=O.jB(b);Y O.jC(a)},jC:S(a){if(R===O.3f||R===a){Y 1d}19(Q b=0;b<O.3f.W;b++){if(O.3f[b]===a){a.9y();O.3f.2S(b,1);a.1B();1C}}Y 1a},tq:S(){if(R===O.3f){Y}19(Q a=0;a<O.3f.W;a++){O.jC(O.3f[a])}O.3f=[]},8N:S(){if(R===O.3f||R===O.5Y){Y 1d}Q a=1d;19(Q b=0;b<O.3f.W;b++){if(O.3f[b].8N()){a=1a}}if(a){O.5Y.8t()}Y a},tp:S(){if(R===O.3f){Y 1d}if(O.3f.W<2){Y 1d}19(Q a=0;a<O.3f.W;a++){if(O.3f[a].1J.eH===1a){Y 1a}}},jy:S(){if(R===O.3f){Y}19(Q a=0;a<O.3f.W;a++){O.3f[a].jy()}},71:S(){if(R===O.3f){Y}19(Q a=0;a<O.3f.W;a++){O.3f[a].71()}},jx:S(){if(R===O.3f){Y}19(Q a=0;a<O.3f.W;a++){O.3f[a].jx()}},9y:S(){if(R===O.3f){Y}19(Q a=0;a<O.3f.W;a++){O.3f[a].9y()}},nI:S(c,b){if(R==O.5Y||R===b||""===b){Y R}if(R!==O.jB(b)){Y R}Q a=R;6z(c){1z P.V.6x.eG:a=X P.V.j0();1C;1z P.V.6x.jq:a=X P.V.jn();1C;1z P.V.6x.jt:a=X P.V.js();1C;1z P.V.6x.j4:a=X P.V.j3();1C;1z P.V.6x.j9:a=X P.V.j7();1C;1z P.V.6x.j6:a=X P.V.j5();1C;1z P.V.6x.jm:a=X P.V.ja();1C;6y:Y R}if(R!=a){a.42=b}Y a},6w:S(){Q b={};b.gI=[];19(Q a=0;a<O.3f.W;a++){b.gI.17(O.3f[a].6w())}Y b},6v:S(g){19(Q d=0;d<g.gI.W;d++){Q h=g.gI[d];Q f=h.nt;Q c=P.2Z.3r().4b(f);Q b=h.42;Q e=h.2z;if(c&&b&&e!==-1){Q a=O.nH(e,b,c);if(a!==R){a.6v(h)}}}},to:S(a,f){S b(g){O.1p.1E("nG")}S e(g){O.1p.1E("nF")}Q c=X P.1P.nC(O.1X,{nB:a,eQ:f});c.1p.on({4n:b,4m:e,3R:O});Q d=X P.1P.nA();d.6l="eP";d.tn=O.6w();c.4P(d)},tm:S(a){S b(f){Q g=f.2B;O.6v(g);O.1p.1E("nE")}S e(f){O.1p.1E("nD")}Q c=X P.1P.nC(O.1X,{nB:a});c.1p.on({4n:b,4m:e,3R:O});Q d=X P.1P.nA();d.6l="9z";c.4P(d)},1t:"P.V.gH"});P.V.6x={ny:-1,eG:0,jq:1,jt:2,j4:3,j9:4,j6:5,jm:6};P.V.jp={nn:0,nl:1};P.V.gA={nm:0,jo:1};P.V.j8={n0:0,mY:1};P.V.j1={da:0,jA:1};P.V.8s={af:0,eO:1,jw:2,ju:3,nx:4};P.V.4v=P.27({b2:0,bY:5,c1:1d,42:R,8V:P.V.8s.af,2D:R,1J:R,aW:0,dp:1d,jv:0,5i:0,7C:[],1I:S(a){P.1o.2R(O,a)},1B:S(){O.eN(1d);O.nu();O.2D=R;O.8W=R;O.1J=R;O.42=R;O.8V=P.V.8s.af;19(Q a=0;a<O.7C.W;a++){O.7C[a]=R}O.7C=[]},nz:S(h){if(1l===h||R===h||R===h.1g){Y 1d}Q b=P.2Z.3r();Q f=b.8O();if(R===f.5Y){Y 1d}O.2D=h;O.1J=O.nv(h);if(R===O.1J){Y 1d}O.1J.1g=f.5Y;O.1J.T.1g=f.5Y;f.5Y.eE(O.1J);if(O.8R()===P.V.6x.eG&&h.T.4a.W!==0){19(Q d=0;d<h.T.4a.W;d++){Q a=h.T.4a[d];if(R===a){1W}Q g=a.7l();g.3t=O.1J.T.1r;Q c={1i:g,1c:a.1c,1X:a.1X};Q e=P.U.1N.2X(a.1v,a.1A,R,c,R);O.7C.17(e);e.1g=f.5Y;f.5Y.eE(e)}}O.eN(1d);Y 1a},jz:S(){Y O.2D},8R:S(){Y P.V.6x.ny},jy:S(){Q a=X 8U();if(O.8V===P.V.8s.jw){O.aW+=a.8q()/6a-O.jv}13{O.aW=a.8q()/6a}O.dp=1d;O.8V=P.V.8s.eO;if(O.2D!==R&&O.2D.1g!==R){O.2D.1g.1p.1E("73",{1h:O.2D.1g.1h})}O.eN(1a)},71:S(){O.8V=P.V.8s.ju},jx:S(){O.8V=P.V.8s.jw;Q a=X 8U();O.jv=a.8q()/6a},9y:S(){O.8V=P.V.8s.nx;O.eN(1d)},8N:S(){Y 1d},aR:S(){if(O.8V!==P.V.8s.eO){Y 1d}Q b=X 8U().8q()/6a;if(O.aW+O.b2>b){Y 1d}Q a=O.nw();if((a>1&&O.dp)||a<0){Y 1d}13{Y 1a}},nw:S(){if(O.8V!==P.V.8s.eO){Y 0}Q b=X 8U().8q()/6a;if(O.aW+O.b2>b){Y 0}Q a=(b-O.aW-O.b2)/O.bY;if(a>=1&&!O.dp){if(O.c1){O.aW=X 8U().8q()/6a;a=0;O.dp=1d;O.8V=P.V.8s.eO}13{a=1;O.dp=1a;O.8V=P.V.8s.ju}}13{if(a<0){a=0}}O.5i=a;Y a},eN:S(a){Q e="23";Q d="3N";if(R!==O.1J&&R!==O.1J.Z){O.8p(a);O.1J.1g.2m(O.1J)}if(R!==O.2D&&R!==O.2D.Z){if(a){O.2D.Z.23=d;19(Q c=0;c<O.2D.T.4a.W;c++){O.2D.T.4a[c].1b.Z.23=d}}13{O.2D.Z.23=e;19(Q c=0;c<O.2D.T.4a.W;c++){O.2D.T.4a[c].1b.Z.23=e}}if(R!==O.2D.1g){if(O.2D.1g.4Z.1t==="P.2N.do"){O.2D.1g.gG()}13{O.2D.1g.2m(O.2D);19(Q c=0;c<O.2D.T.4a.W;c++){Q b=O.2D.T.4a[c].1b;b.1g.2m(b)}}}}},8p:S(a){O.1J.T.1i=gF.gE(P.V.1k.5I(O.2D.T.7l()));O.1J.T.1i.1r=O.1J.T.1r;P.V.5H.4B(O.1J.T,O.1J.T.1i);if(a){O.1J.Z.23="23";19(Q b=0;b<O.7C.W;b++){O.7C[b].Z.23="23";O.7C[b].1g.2m(O.7C[b])}}13{O.1J.Z.23="3N";19(Q b=0;b<O.7C.W;b++){O.7C[b].Z.23="3N";O.7C[b].1g.2m(O.7C[b])}if(O.8R()===P.V.6x.eG){if(R!==O.41){O.41.Z.23="3N";O.1J.1g.2m(O.41)}}}},tl:S(a){if(a.T 1m P.U.5a||a.T 1m P.U.6b){Y 1a}13{Y 1d}},8o:S(a){if(a.T 1m P.U.5a){Y 1a}13{Y 1d}},nk:S(a){if(a.T 1m P.U.6b){Y 1a}13{Y 1d}},nv:S(g){Q b=R;Q a=P.2Z.3r();Q f=a.8O();Q e=f.3f;if(R!==e){19(Q c=0;c<e.W;c++){Q d=e[c];if(d.2D===g){b=d.1J;1C}}}if(R===b){b=P.V.1k.gD(g)}Y b},nu:S(){if(R===O.1J||R===O.1J.1g){Y}Q a=P.2Z.3r();Q g=a.8O();Q e=g.3f;Q d=1d;if(R!==e){19(Q b=0;b<e.W;b++){Q f=e[b];if(f===O){1W}if(f.1J===O.1J){d=1a;1C}}}if(!d){Q c=[];c.17(O.1J);c=c.4Y(O.7C);O.1J.1g.4D(c)}},6w:S(){Q a={};a.nt=O.2D.T.1r;a.42=O.42;a.b2=O.b2;a.bY=O.bY;a.c1=O.c1;a.2z=O.8R();Y a},6v:S(a){O.b2=a.b2;O.bY=a.bY;O.c1=a.c1},1t:"P.V.4v"});P.V.js=P.27(P.V.4v,{dn:1d,c0:"#tk",dm:"#tj",dl:1d,aY:0,dk:5,dj:1d,bZ:"#gC",di:"#ti",dh:1d,aX:0,dg:1,8R:S(){Y P.V.6x.jt},8p:S(a){P.V.4v.1x.8p.1q(O,1K);if(a){O.1J.Z.2L=O.c0;O.1J.Z.1D=O.aY;O.1J.Z.86=O.bZ;O.1J.Z.4W=O.aX}},8N:S(){if(!O.aR()){Y 1d}Q d=O.5i;Q c=O.ns(d);Q e=O.nr(d);Q a=O.nq(d);Q b=O.no(d);Y c||e||a||b},ns:S(c){if(!O.dn){Y 1d}Q h=P.V.1k.gB(O.c0);Q f=P.V.1k.gB(O.dm);Q e=4A(h.b1+(f.b1-h.b1)*c);Q d=4A(h.b0+(f.b0-h.b0)*c);Q a=4A(h.aZ+(f.aZ-h.aZ)*c);O.1J.Z.2L=P.V.1k.np({b1:e,b0:d,aZ:a});Y 1a},nr:S(a){if(!O.dl){Y 1d}O.1J.Z.1D=O.aY+(O.dk-O.aY)*a;Y 1a},nq:S(c){if(!O.dj){Y 1d}Q h=P.V.1k.gB(O.bZ);Q f=P.V.1k.gB(O.di);Q e=4A(h.b1+(f.b1-h.b1)*c);Q d=4A(h.b0+(f.b0-h.b0)*c);Q a=4A(h.aZ+(f.aZ-h.aZ)*c);O.1J.Z.86=P.V.1k.np({b1:e,b0:d,aZ:a});Y 1a},no:S(a){if(!O.dh){Y 1d}O.1J.Z.4W=O.aX+(O.dg-O.aX)*a;Y 1a},6w:S(){Q a=P.V.4v.1x.6w.1q(O,1K);a.dn=O.dn;a.c0=O.c0;a.dm=O.dm;a.dl=O.dl;a.aY=O.aY;a.dk=O.dk;a.dj=O.dj;a.bZ=O.bZ;a.di=O.di;a.dh=O.dh;a.aX=O.aX;a.dg=O.dg;Y a},6v:S(a){P.V.4v.1x.6v.1q(O,1K);O.dn=a.dn;O.c0=a.c0;O.dm=a.dm;O.dl=a.dl;O.aY=a.aY;O.dk=a.dk;O.dj=a.dj;O.bZ=a.bZ;O.di=a.di;O.dh=a.dh;O.aX=a.aX;O.dg=a.dg},1t:"P.V.js"});P.V.jn=P.27(P.V.4v,{bX:jr,de:P.V.jp.nn,dd:0,bW:P.V.gA.nm,aV:"#df",aU:"#5Q",1I:S(a){P.V.4v.1x.1I.1q(a)},8R:S(){Y P.V.6x.jq},8N:S(){if(!O.aR()){if(O.2D.Z.23==="3N"&&O.1J.Z.23==="3N"){O.1J.Z.23="23";Y 1a}Y 1d}Q d=X 8U();Q e=d.8q()/6a;Q c=O.bX/6a;if(O.de===P.V.jp.nl){c=O.bX=O.bY/O.dd}S a(h,f){19(Q g=0;g<h.T.11.W;g++){if(h.T.11[g]1m P.U.5q){if(h.T.1s===P.V.1j.4E){h.Z.3B=f}13{h.T.11[g].Z.3B=f}}}}Q b=(e-O.aW)%(c);if(b<=c/2){if(O.bW===P.V.gA.jo){a(O.1J,O.aV);O.1J.Z.2L=O.aV;O.1J.Z.3B=O.aV;O.1J.Z.23="23"}13{O.1J.Z.23="3N"}}13{O.1J.Z.23="23";if(O.bW===P.V.gA.jo){a(O.1J,O.aU);O.1J.Z.2L=O.aU;O.1J.Z.3B=O.aU}}Y 1a},6w:S(){Q a=P.V.4v.1x.6w.1q(O,1K);a.de=O.de;a.bX=O.bX;a.dd=O.dd;a.bW=O.bW;a.aV=O.aV;a.aU=O.aU;Y a},6v:S(a){P.V.4v.1x.6v.1q(O,1K);O.de=a.de;O.bX=a.bX;O.dd=a.dd;O.bW=a.bW;O.aV=a.aV;O.aU=a.aU},1t:"P.V.jn"});P.V.ja=P.27(P.V.4v,{6L:0,70:1,nj:50,gy:0,5P:0,18:[],1I:S(a){P.V.4v.1x.1I.1q(a);O.18=[];O.5P=0},8R:S(){Y P.V.6x.jm},eI:S(e){Q a,d,b;if(O.5P===0){O.18=O.2D.T.18;a=X P.U.1f((O.18[0].x+O.18[1].x)/2,(O.18[0].y+O.18[1].y)/2);O.5P+=P.V.1k.2I(a,O.18[2]);19(d=3;d<O.18.W;d++){O.5P+=P.V.1k.2I(O.18[d-1],O.18[d])}}if(0===e){O.8r();Y 1a}Q g=[];Q c=[];a=X P.U.1f((O.18[0].x+O.18[1].x)/2,(O.18[0].y+O.18[1].y)/2);c.17(a);19(d=2;d<O.18.W;d++){c.17(O.18[d].2s())}g.17(O.18[0]);g.17(O.18[1]);Q f=O.8Q(O.5P*e,c);19(b=1;b<=f.bR;b++){g.17(c[b])}g.17(f.8S);O.1J.T.18=[];O.1J.T.18=g;Y 1a},jb:S(f){if(O.18.W===0){Q m=O.2D.T.18;O.18=P.V.1k.th(m)}if(0===f){O.8r();Y 1a}Q e=O.18;if(4!=e.W){Y 1d}Q k=e[0];Q j=e[1];Q h=e[2];Q g=e[3];Q d=P.V.1k.2I(k,g);Q c=P.V.1k.2I(j,h);Q a=P.V.1k.ae(k,g,d*f);Q b=P.V.1k.ae(j,h,c*f);Q l=[];l.17(k);l.17(j);l.17(b);l.17(a);O.1J.T.18=[];O.1J.T.18=l;Y 1a},n4:S(d){if(O.5P===0){O.18=O.2D.T.18;O.5P=P.V.1k.aT(O.18)}if(0===d){O.8r();Y 1a}Q f=[];Q c=P.V.1k.3F(O.18);Q e=O.8Q(O.5P*d,c);19(Q b=0;b<=e.bR;b++){f.17(c[b])}f.17(e.8S);Q a=[];if(f.W<3){a.17(f[0].2s());a.17(X P.U.1f((f[0].x+f[1].x)/2,(f[0].y+f[1].y)/2));a.17(f[1].2s());f=a}if(P.U.1N.5O(O.1J.T.1v,O.1J.T.1A)){if(O.2D.T.1i.gz>f.W){O.8r();Y 1a}}O.1J.T.18=[];O.1J.T.18=f;Y 1a},bS:S(c){if(O.5P===0){O.18=O.2D.T.18;O.5P=P.V.1k.aT(O.18)}if(0===c){O.8r();Y 1a}Q e=[];Q b=P.V.1k.3F(O.18);Q d=O.8Q(O.5P*c,b);19(Q a=0;a<=d.bR;a++){e.17(b[a])}e.17(d.8S);if(P.U.1N.5O(O.1J.T.1v,O.1J.T.1A)){if(O.2D.T.1i.gz>e.W){O.8r();Y 1a}}O.1J.T.18=[];if(e.W>0&&O.1J.T.3V&&e.W>=O.1J.T.3V){O.1J.T.18=e}Y 1a},ng:S(e){if(O.18.W===0){O.18=O.2D.T.18}Q b=X P.U.1f((O.18[0].x+O.18[1].x)/2,(O.18[0].y+O.18[1].y)/2);Q d=1n.2W(O.18[0].x-O.18[1].x)/2*e;Q a=1n.2W(O.18[0].y-O.18[1].y)/2*e;Q f=X P.U.1f(b.x-d,b.y+a);Q c=X P.U.1f(b.x+d,b.y-a);O.1J.T.18=[];O.1J.T.18.17(f);O.1J.T.18.17(c);Y 1a},nh:S(c){if(O.18.W===0){O.18=O.2D.T.18}Q b=O.18[0].2s();Q a=c*1n.5G((O.18[0].x-O.18[1].x)*(O.18[0].x-O.18[1].x)+(O.18[0].y-O.18[1].y)*(O.18[0].y-O.18[1].y));O.1J.T.18=[];O.1J.T.18.17(b);O.1J.T.18.17(X P.U.1f(b.x+a,b.y));O.1J.T.1b=O.1J;Y 1a},gs:S(d){if(O.18.W===0){O.18=O.2D.T.18}if(0===d){O.8r();Y 1a}Q g=[];Q h=O.18.W;Q a=P.V.1k.jj(O.18);if(a===R){O.8r();Y 1a}19(Q b=0;b<h;b++){Q e=P.V.1k.2I(a,O.18[b]);Q c=e*d;if(c>e){Y 1d}Q f=P.V.1k.ae(a,O.18[b],c);g.17(f)}O.1J.T.18=[];O.1J.T.18=g;Y 1a},nf:S(j){if(O.18.W===0){O.18=O.2D.T.18}if(0===j){O.8r();Y 1a}Q a=O.18.W;Q l=P.V.1k.2I(O.18[0],O.18[O.18.W-1]);Q k=l*j;Q b=X P.U.1f(O.18[0].x+k,O.18[0].y);Q f=2*1n.2r/(a+1);Q g=1n.2r/2+O.1J.T.3q;Q d=b;P.V.1k.jl(O.18[0],g,d);Q h=[];h.17(O.18[0].2s());h.17(d);Q c=d.2s();19(Q e=1;e<a-1;e++){P.V.1k.jl(O.18[0],f,c);h.17(c.2s())}O.1J.T.18=[];O.1J.T.18=h;Y 1a},nd:S(a){if(O.18.W===0){O.18=O.2D.T.18}Q c=P.V.1k.jk(a,O.18[0],O.18[1]);Q b=P.V.1k.jk(a,O.18[0],O.18[2]);O.1J.T.18[1]=c;O.1J.T.18[2]=b;Y 1a},jd:S(d){if(O.18.W===0){O.18=O.2D.T.18}Q h=O.18.W;Q a=P.V.1k.jj(O.18);if(a===R){O.8r();Y 1a}Q g=[];19(Q b=0;b<h;b++){Q e=P.V.1k.2I(a,O.18[b]);Q c=e*d;Q f=P.V.1k.ae(a,O.18[b],c);g.17(f)}O.1J.T.18=[];O.1J.T.18=g;Y 1a},nc:S(b){Q a;if(O.5P===0){O.18=O.2D.T.18;19(a=2;a<O.18.W;a++){O.5P+=P.V.1k.2I(O.18[a-1],O.18[a])}}Q e=[],c=[];19(a=1;a<O.18.W;a++){c.17(O.18[a].2s())}Q d=O.8Q(O.5P*b,c);e.17(O.18[0].2s());19(a=0;a<=d.bR;a++){e.17(c[a])}e.17(d.8S);O.1J.T.18=[];O.1J.T.18=e;Y 1a},nb:S(c){Q a;if(O.5P===0){O.18=O.2D.T.18;a=P.V.1k.aQ(O.18);O.5P+=P.V.1k.aT(a)}Q e=[];a=P.V.1k.aQ(O.18,tg);Q d=O.8Q(O.5P*c,a);19(Q b=0;b<=d.bR;b++){e.17(a[b].2s())}e.17(d.8S);O.1J.T.18=e;Y 1a},na:S(c){if(O.18.W===0){O.18=O.2D.T.18}Q d=O.2D.T.2F();Q g=X P.U.1f((d.21+d.2c)/2,(d.1Z+d.2h)/2);Q f=[];19(Q b=0;b<O.18.W;b++){Q a=P.V.1k.2I(g,O.18[b])*c;Q e=P.V.1k.ae(g,O.18[b],a);f.17(e)}O.1J.T.18=[];O.1J.T.18=f;Y 1a},n9:S(l){if(O.5P===0){O.18=O.2D.T.18;O.5P=P.V.1k.aT(O.18)}if(0===l){O.8r();Y 1a}Q o=[];Q m=P.V.1k.3F(O.18);if(O.2D.T.1s===P.V.1j.ac||O.2D.T.1s===P.V.1j.ab){Q k=[];k.17(O.18[0]);k.17(X P.U.1f(O.2D.T.2a[1],O.2D.T.2a[2]));Q b=P.V.1k.aT(k);Q n=O.8Q(b*l,k);O.1J.T.2a[1]=n.8S.x;O.1J.T.2a[2]=n.8S.y}13{Q c=O.2D.T.2a.W/2;19(Q d=0;d<c;d++){Q h=[];h.17(O.18[0]);h.17(X P.U.1f(O.2D.T.2a[2*d],O.2D.T.2a[2*d+1]));Q a=P.V.1k.aT(h);Q g=O.8Q(a*l,h);O.1J.T.2a[2*d]=g.8S.x;O.1J.T.2a[2*d+1]=g.8S.y}}Q f=O.8Q(O.5P*l,m);19(Q e=0;e<=f.bR;e++){o.17(m[e])}o.17(f.8S);O.1J.T.18=[];O.1J.T.18=o;Y 1a},8r:S(){O.1J.T.18=[];O.1J.eH=P.U.1N.5O(O.1J.T.1v,O.1J.T.1A)},8p:S(a){P.V.4v.1x.8p.1q(O,1K);O.5P=0;O.18=[];if(O.6L<0){O.6L=0}if(O.6L>1){O.6L=1}if(O.70<0){O.70=0}if(O.70>1){O.70=1}},8N:S(){if(!O.nk(O.2D)){Y 1d}if(!O.aR()){Y 1d}Q b=X 8U().8q();if(O.gy>0&&(b-O.nj)<O.gy){Y 1d}Q a=O.6L+O.5i*(O.70-O.6L);O.gy=b;Y O.ni(a)},ni:S(c){Q a=1d;Q b=O.1J.T.1A;Q d=O.1J.T.1v;if(0===d){6z(b){1z P.V.1j.gx:1z P.V.1j.gw:1z P.V.1j.ji:1z P.V.1j.jh:a=O.gs(c);1C;1z P.V.1j.eM:a=O.nh(c);1C;1z P.V.1j.eL:a=O.ng(c);1C;1z P.V.1j.aS:a=O.nf(c);1C;1z P.V.1j.bV:a=O.nd(c);1C;1z P.V.1j.bU:1z P.V.1j.bT:a=O.jd(c);1C;1z P.V.1j.eK:a=O.nc(c);1C;1z P.V.1j.eJ:a=O.nb(c);1C;1z P.V.1j.gv:1z P.V.1j.gu:1z P.V.1j.gt:1z P.V.1j.8T:Y 1d;1z P.V.1j.jg:a=O.na(c);1C;1z P.V.1j.ad:1z P.V.1j.ac:1z P.V.1j.ab:a=O.n9(c);1C;6y:a=O.bS(c);1C}}13{if(22===d){6z(b){1z n8:1z tf:1z n7:1z jf:a=O.eI(c);1C;1z n6:1z te:1z je:a=O.jb(c);1C;1z n5:1z td:a=O.n4(c);1C;1z 32:1z tc:a=O.jd(c);1C;1z jc:a=O.gs(c);1C;1z tb:a=O.gs(c);1C;6y:a=O.bS(c);1C}}13{if(4F===d){6z(b){1z n3:a=O.eI(c);1C;6y:a=O.bS(c);1C}}13{if(ta===d){6z(b){1z t9:a=O.eI(c);1C;1z t8:a=O.jb(c);1C;6y:a=O.bS(c);1C}}13{if(n2===d){6z(b){1z t7:1z t6:a=O.eI(c);1C;6y:a=O.bS(c);1C}}13{a=O.bS(c)}}}}}O.1J.eH=P.U.1N.5O(O.1J.T.1v,O.1J.T.1A);if(!O.1J.eH){O.1J.T.n1=1a;O.1J.T.1u()}Y a},8Q:S(b,d){Q g=0,a=0;Q c;19(c=1;c<d.W;c++){a=P.V.1k.2I(d[c-1],d[c]);if(g+a>=b){1C}g+=a}Q f=X 6Z();Q e;if(c<d.W){e=P.V.1k.6Y(d[c-1],d[c],b-g,0)}13{e=d[c-1].2s()}f.bR=c-1;f.8S=e;Y f},6w:S(){Q a=P.V.4v.1x.6w.1q(O,1K);a.6L=O.6L;a.70=O.70;Y a},6v:S(a){P.V.4v.1x.6v.1q(O,1K);O.6L=a.6L;O.70=a.70},1t:"P.V.ja"});P.V.j7=P.27(P.V.4v,{dc:P.V.j8.n0,39:0,33:3Q,8R:S(){Y P.V.6x.j9},8p:S(a){O.1J.T.2i(O.2D.T.3q-O.1J.T.3q,O.1J.T.18[0]);P.V.4v.1x.8p.1q(O,1K)},8N:S(){if(!O.8o(O.2D)){Y 1d}if(!O.aR()){Y 1d}Q a=O.5i;Q c=O.mZ(O.39,O.33,a);Q b=O.1J.T.3q;O.1J.T.2i(c-b,O.1J.T.18[0]);Y 1a},mZ:S(d,a,e){Q f=0;Q b=a-d;Q c=4A(1n.2W(b/3Q));if(d!==a){if(O.dc===P.V.j8.mY){if(b<0){b=b+3Q*(2*c+1)}f=d+b*e}13{Q g=0;if(b<0){g=b+(c+1)*3Q}13{g=b-c*3Q}if(P.V.1k.5s(g,0)){b=c*3Q}13{b=(3Q-g)+c*3Q}f=d+(3Q-b*e)}}Y f},6w:S(){Q a=P.V.4v.1x.6w.1q(O,1K);a.dc=O.dc;a.39=O.39;a.33=O.33;Y a},6v:S(a){P.V.4v.1x.6v.1q(O,1K);O.dc=a.dc;O.39=a.39;O.33=a.33},1t:"P.V.j7"});P.V.j5=P.27(P.V.4v,{6L:0,70:1,gr:R,1I:S(a){P.V.4v.1x.1I.1q(a)},8R:S(){Y P.V.6x.j6},8p:S(a){O.gr=R;O.1J.T.59(O.2D.T.2y.x/O.1J.T.2y.x,O.1J.T.18[0]);P.V.4v.1x.8p.1q(O,1K)},8N:S(){if(!O.8o(O.2D)){Y 1d}if(!O.aR()){Y 1d}O.gr=O.1J.T.2y.x;Q b=O.6L;if(b===0){b=0.1}Q a=O.70;if(a===0){a=0.1}Q c=O.2D.T.2y.x*(b+O.5i*(a-b));O.1J.T.59(c/O.gr,O.1J.T.18[0]);Y 1a},6w:S(){Q a=P.V.4v.1x.6w.1q(O,1K);a.6L=O.6L;a.70=O.70;Y a},6v:S(a){P.V.4v.1x.6v.1q(O,1K);O.6L=a.6L;O.70=a.70},1t:"P.V.j5"});P.V.j3=P.27(P.V.4v,{db:1d,bQ:1d,8R:S(){Y P.V.6x.j4},8N:S(){if(!O.aR()){Y 1d}Q a=O.5i;if(O.db){O.mW(a)}13{O.mX(a)}Y 1a},mX:S(a){Q c="23";Q b="3N";if(O.bQ){if(1-a<0.gq){O.1J.Z.23=c}13{O.1J.Z.23=b}}13{if(1-a<0.gq){O.1J.Z.23=b}13{O.1J.Z.23=c}}},mW:S(c){if(!O.bQ){c=1-c}Q b=3P(c)<0?0:3P(c);b=3P(c)>1?1:3P(c);S a(g,e){19(Q f=0,d=g.T.11.W;f<d;f++){if(g.T.11[f]1m P.U.5q){if(g.T.1s===P.V.1j.4E){g.Z.58=e}13{g.T.11[f].Z.58=e}}}}a(O.1J,b);O.1J.Z.3M=b;O.1J.Z.58=b;O.1J.Z.85=O.2D.Z.85*c;if(O.1J.Z.3O!==1){O.1J.Z.2k=O.2D.Z.2k*c;O.1J.Z.5L=O.2D.Z.5L*c}},6w:S(){Q a=P.V.4v.1x.6w.1q(O,1K);a.db=O.db;a.bQ=O.bQ;Y a},6v:S(a){P.V.4v.1x.6v.1q(O,1K);O.db=a.db;O.bQ=a.bQ},1t:"P.V.j3"});P.V.j0=P.27(P.V.4v,{bP:1d,bO:1d,8P:0.5,9x:R,j2:R,a9:P.V.j1.da,6u:R,aa:R,41:R,go:0,1I:S(a){P.V.4v.1x.1I.1q(a)},1B:S(){if(O.41!==R){Q a=P.2Z.3r();Q b=a.8O();b.5Y.4D([O.41]);O.41=R}P.V.4v.1x.1B.1q(O,1K)},8R:S(){Y P.V.6x.eG},t5:S(a){O.bP=a},8p:S(b){P.V.4v.1x.8p.1q(O,1K);Q c=O.2D.T.3q;Q e=O.1J.T.3q;O.1J.T.2i(c-e,O.1J.T.18[0]);if(b){if(R===O.41||R===O.aa){O.mV();if(O.9x){O.41.Z.2L=O.9x}if(O.8P){O.41.Z.1D=O.8P}}O.41.Z.23="3N";Q a=P.2Z.3r();Q d=a.8O();d.5Y.2m(O.41)}},8N:S(){if(!O.8o(O.2D)){if(R!==O.41){O.41.Z.23="3N"}Y 1d}if(!O.aR()){Y 1d}if(O.bP&&O.41.Z.23==="3N"){O.41.Z.23="23";Q d=P.2Z.3r();Q j=d.8O();j.5Y.2m(O.41)}Q h=O.5i;Q k=h*O.go;Q f=X 6Z();Q l=O.8Q(k,O.aa,f);O.j2=l.2s();Q b=O.1J.T.18[0];Q g=l.x-b.x;Q e=l.y-b.y;O.1J.T.2n(g,e);if(O.bO){Q c=f.mU;if(h===1){c=0}Q a=O.1J.T.3q;O.1J.T.2i(c-a,O.1J.T.18[0])}Y 1a},mT:S(c){if(!c||!P.1o.4g(c)||2>c.W){O.6u=[O.2D.T.eF()[0],O.2D.T.eF()[0]]}O.6u=[];O.6u=P.V.1k.3F(c);if(R!==O.41){Q a=P.2Z.3r();Q b=a.8O();b.5Y.gp(O.41);O.41.1B();O.41=R}},t4:S(){Y P.V.1k.3F(O.6u)},t3:S(){Y O.j2},t2:S(a){if(!a){Y}O.9x=a;if(!O.41||R===O.41){Y}O.41.Z.2L=O.9x},t1:S(){Y O.9x},t0:S(a){if(!a){Y}O.8P=a;if(!O.41||R===O.8P){Y}O.41.Z.1D=O.8P},sZ:S(){Y O.8P},sY:S(b){if(1l===b||R===b){Y}if(O.a9===b){Y}O.a9=b;if(R!==O.41){Q a=P.2Z.3r();Q c=a.8O();c.5Y.gp(O.41);O.41.1B();O.41=R}},sX:S(){Y O.a9},mV:S(){if(R===O.6u||2>O.6u.W){O.6u=[O.2D.T.eF()[0],O.2D.T.eF()[0]]}if(O.41===R){if(O.a9===P.V.j1.da){O.aa=P.V.1k.3F(O.6u)}13{O.aa=P.V.1k.aQ(O.6u)}Q c=X P.U.6J(O.aa);O.41=X P.5N.4f(c);O.41.Z=P.1o.2t(O.41.Z,O.1J.Z);O.41.T.7B();Q a=P.2Z.3r();Q d=a.8O();d.5Y.eE(O.41)}O.go=0;19(Q b=1;b<O.aa.W;b++){O.go+=P.V.1k.2I(O.aa[b-1],O.aa[b])}Y O.41},8Q:S(b,d,f){Q g=0,a=0;Q c;19(c=1;c<d.W;c++){a=P.V.1k.2I(d[c-1],d[c]);if(g+a>=b){1C}g+=a}Q e=P.V.1k.6Y(d[c-1],d[c],b-g,0);if(O.bO){f.mU=P.V.1k.7k(e,d[c])/1n.2r*2O}Y e},6w:S(){Q b=P.V.4v.1x.6w.1q(O,1K);b.bP=O.bP;b.bO=O.bO;b.a9=O.a9;b.8P=O.8P;b.9x=O.9x;b.6u=[];19(Q a=0;a<O.6u.W;a++){b.6u.17({x:O.6u[a].x,y:O.6u[a].y})}Y b},6v:S(b){P.V.4v.1x.6v.1q(O,1K);O.bP=b.bP;O.bO=b.bO;O.a9=b.a9;O.8P=b.8P;O.9x=b.9x;Q c=[];19(Q a=0;a<b.6u.W;a++){c.17(X P.U.1f(b.6u[a].x,b.6u[a].y))}O.mT(c)},1t:"P.V.j0"});P.V.mP=P.27(P.mS,{1I:S(a){P.mS.1x.1I.1q(O,1K);O.87()},mR:S(){O.mQ();Q a=O;a.gn&&9n.sW(a.gn);a.gn=R;a.gn=9n.sV(a.mR)},mQ:S(){Q a=P.2Z.3r();Q b=a.8O();b.8N()},1t:"P.V.mP"});P.3I.gh=P.27(P.3I.gi,{1b:R,d4:1,d3:1,6k:R,7x:R,bL:10,eA:R,1I:S(a){P.3I.gi.1x.1I.1q(O,[a]);O.1b=a.1b;O.mO()},1B:S(){P.3I.gi.1x.1B.1q(O,1K)},mO:S(){O.mN();Q a=O.sU(O.eB[0],O.eB[1]);O.1R=a.1R;O.mL(a,0,0)},eC:S(b){Q e=[X P.U.1f(0,0),X P.U.1f(b.w,0),X P.U.1f(b.w,b.h),X P.U.1f(0,b.h),X P.U.1f(0,0)];Q a=X P.U.5h(e);Q d=X P.U.4T([a]);d.2i(O.1b.T.3q,X P.U.1f(0,0));Q c=d.2F();b.w=c.5r();b.h=c.5F()},mN:S(){Q m=X P.eD(0,0);Q j=O.1b.T.11[0].Z.1D;if(O.1b.T.1H.W===0||(O.1b.T.1H.W>0&&O.1b.T.2e===8)){O.1b.T.2F();O.6k=O.1b.T.3G;O.eA=X P.U.1f((O.6k.21+O.6k.2c)/2,(O.6k.2h+O.6k.1Z)/2);m=X P.eD(O.1b.T.2u.w,O.1b.T.2u.h);m.w=1n.5X(m.w);m.h=1n.5X(m.h);O.7x=X P.5B(0,0,m.w,m.h);m.w+=j+O.bL;m.h+=j+O.bL;O.eC(m);O.d4=O.d3=1/O.1b.T.1c.3m()}13{O.1b.T.2F();Q b=O.1b.T.3G;O.eA=X P.U.1f((b.21+b.2c)/2,(b.2h+b.1Z)/2);m=X P.eD(O.1b.T.2u.w,O.1b.T.2u.h);m.w=1n.5X(m.w);m.h=1n.5X(m.h);O.1b.T.7B(1a);O.6k=O.1b.T.3G;O.eC(m);Q d=b.5r(),l=b.5F();Q f=m.w,c=m.h;O.d4=f/d;O.d3=c/l;m.w=O.d4*O.6k.5r();m.h=O.d3*O.6k.5F();Q e=1n.5X((b.21-O.6k.21)/O.6k.5r()*m.w);Q k=1n.5X((b.2c-O.6k.21)/O.6k.5r()*m.w);Q h=1n.5X((-b.1Z+O.6k.1Z)/O.6k.5F()*m.h);Q a=1n.5X((-b.2h+O.6k.1Z)/O.6k.5F()*m.h);O.7x=X P.5B(e,a,k,h);m.w+=j+O.bL;m.h+=j+O.bL;O.d4=O.d3=1/O.1b.T.1c.3m();O.1b.T.7B(1d)}O.iZ=[0,0];Q g=X P.U.1f(O.1b.T.18[0].x,O.1b.T.18[0].y);O.9p(g);O.iZ=[g.x,g.y];O.eB=[m.w,m.h]},8n:S(b,c,d){S e(n,r){Q m=n.d9(1,3);Q q=4A(m,16);Q l=n.d9(3,5);Q p=4A(l,16);Q o=n.d9(5);Q k=4A(o,16);Y"mM("+q+","+p+","+k+","+r+")"}if(c.23&&c.23==="3N"){b.23=c.23}13{if(b.2P){if(d.2H===P.V.4X.bN){b.1D=c.4W*2+c.1D}13{b.1D=c.4W}b.2L=c.86;b.3M=c.85}13{if(!b.6t){b.1D=c.1D}if(!b.aP){b.2L=c.2L;b.3M=c.3M}if(!b.9w){b.5M=c.5M}}if(!b.8M){if(b.2g 1m P.3I.aO){b.2g.1B();b.2g=R}if(c.3Z==="8K"||c.3Z==="8J"){Q a=d.2F();Q g=O.8L(X P.U.1f(a.21,a.1Z));Q f=O.8L(X P.U.1f(a.2c,a.2h));Q h=O.8L(X P.U.1f((a.21+a.2c)/2,(a.1Z+a.2h)/2));Q j=1n.2W(g[0]-f[0])>1n.2W(g[1]-f[1])?1n.2W(g[0]-f[0]):1n.2W(g[1]-f[1]);b.2q=1a;if(c.3Z==="8K"){b.2g=O.1R.iY(g[0],g[1],f[0],g[1])}13{if(c.3Z==="8J"){b.2g=O.1R.iX(h[0],h[1],0,h[0],h[1],j)}}b.2g.6X(0,e(c.2g,c.2k));b.2g.6X(1,e(c.4z,c.5L))}13{if(c.3O===1){c.2q=1d}13{c.2q=1a}b.2q=c.2q;b.2g=c.2g;b.2k=c.2k}}13{if(!b.aN){b.2g=b.2L;b.2k=b.3M}}if(!b.6K||b.6K===1d){b.1y=c.1y}if(!b.7j||b.7j===1d){b.3B=c.3B}if(!c.58||c.58!==1l){b.58=c.58}if(!c.3p||c.3p!==1l){b.3p=c.3p}if(b.2w===1l&&c.2w!==1l){b.2w=c.2w}if(b.6K!==1a&&b.7j!==1a){if(c.3J!==1l){b.3J=c.3J}if(c.3Y!==1l){b.3Y=c.3Y}if(c.4u!==1l){b.4u=c.4u}if(c.5W!==1l){b.5W=c.5W}if(c.5V!==1l){b.5V=c.5V}if(c.69!==1l){b.69=c.69}if(c.68!==1l){b.68=c.68}if(c.5E!==1l){b.5E=c.5E}if(c.67!==1l){b.67=c.67}if(c.5D!==1l){b.5D=c.5D}if(c.5C!==1l){b.5C=c.5C}if(c.3e!==1l){b.3e=c.3e}if(c.3j!==1l){b.3j=c.3j}}if(c.23==="3N"){b.23=c.23}13{b.23="23"}if(b.4N<0){b.4N=1n.2W(b.4N)}if(b.4O<0){b.4O=1n.2W(b.4O)}if(b.1y<0){b.1y=1n.2W(b.1y)}}},mL:S(b,j,h){b.6I(j,h);Q c=O.1b.T;Q e=c.11;Q f=O.9p(X P.U.1f(O.eA.x,O.eA.y));Q a=X P.5B(f.x,f.y,f.x,f.y);19(Q d=0;d<e.W;d++){Q g=e[d];O.8n(g.Z,O.1b.Z,c);if(P.U.5h&&(g 1m P.U.5h)){Q l=P.V.1k.3F(g.11);O.ez(b,l,g.Z,a)}13{if(P.U.6J&&(g 1m P.U.6J)){Q l=P.V.1k.3F(g.11);O.gm(b,l,g.Z,a)}13{if(P.U.4T&&(g 1m P.U.4T)){Q l=P.V.1k.3F(g.11[0].11);O.ez(b,l,g.Z,a)}13{if(P.U.d8&&(g 1m P.U.d8)){Q l=P.V.1k.3F(g.11);O.gl(b,l,g.Z,a)}13{if(P.U.1f&&(g 1m P.U.1f)){Q k=X P.U.1f(g.x,g.y);O.9t(b,"",k,g.Z)}13{if(g.1t==="P.U.5q"){Q k=X P.U.1f(g.x,g.y);O.9t(b,g.8I,k,g.Z)}}}}}}}O.7x=a},gm:S(b,d,c,e){O.9p(d[0]);e.2R(d[0]);b.ew();b.8H(d[0].x,d[0].y);19(Q a=1;a<d.W;a++){O.9p(d[a]);e.2R(d[a]);b.7y(d[a].x,d[a].y)}b.7z=c.3M;b.9v=c.5U;b.bM=c.2L;b.9u=c.1D;b.3i()},gl:S(a,c,b,d){a.ew();if(b.2q){a.7i=b.2g;a.2q()}a.bM=b.2L;a.9u=b.1D;O.9p(c[0]);O.9p(c[1]);d.2R(c[0]);d.2R(c[1]);a.sT(c[0].x,c[0].y,c[1].x-c[0].x,c[1].y-c[0].y)},ez:S(c,e,d,f){c.ew();O.9p(e[0]);f.2R(e[0]);c.8H(e[0].x,e[0].y);19(Q b=1;b<e.W;b++){O.9p(e[b]);f.2R(e[b]);Q a=e[b].x;Q g=e[b].y;c.7y(a,g)}c.iT();if(d.2q){c.7i=d.2g;c.2q()}c.bM=d.2L;c.9u=d.1D;c.3i()},9t:S(b,f,a,c){O.9p(a);c=P.1o.2R({3B:"#9s",2w:"cm"},c);Q d=X gk(c.1y)+"px";Q e=[c.3Y?c.3Y:"6s","6s",c.3J?c.3J:"6s",c.1y?d:"a8",c.3p?c.3p:"d7-d6"].8m(" ");b.7i=c.3B;b.9r=e;if(c.a5){O.mK(b,a,c)}13{if(b.9q){b.d5=P.2N.57.aM[c.2w[0]]||"84";b.gj=P.2N.57.aM[c.2w[1]]||"ey";b.9q(f,a.x,a.y)}}},9p:S(a){a.x=(a.x-O.6k.21)*O.d4+O.bL/2;a.y=(O.6k.1Z-a.y)*O.d3+O.bL/2;Y a},mK:S(c,a,e){Q d=S(){Q f=O.Z;Q g=f.4N||f.4O;Q n=f.4O||f.4N;g=g?g:f.d2*2;n=n?n:f.d2*2;Q k=(f.a7!=1l)?f.a7:-(0.5*g);Q h=(f.a6!=1l)?f.a6:-(0.5*n);Q j=f.bK||f.2k;Q q=O.5g;Q p=q.x;Q m=q.y;if(!7A(p)&&!7A(m)){c.9o();Q o;if(f.d1){o=f.d1/2O*1n.2r}c.6I(p,m);if(o){c.2i(o)}c.6I(k,h);c.7z=j;Q l=P.2N.57.mJ||(P.2N.57.mJ=/sS 2.1/.sR(sQ.sP.sO())?iW/9n.sN.3U:1);c.sM(O.mH,0,0,g*l,n*l);c.d0()}};Q b=X gi();b.sL=e.a5;if(e.ex){b.iV=e.ex}b.iU=S(){d.mI({5g:a,Z:e,mH:b})};b.iU()},sK:S(b,a,c){b.sJ(1,0,0,1,0,0);b.6I(a,c);b.ew();b.8H(O.7x.21,O.7x.1Z);b.7y(O.7x.2c,O.7x.1Z);b.7y(O.7x.2c,O.7x.2h);b.7y(O.7x.21,O.7x.2h);b.7y(O.7x.21,O.7x.1Z);b.iT();b.2q()},1t:"P.3I.gh"});',62,2266,'||||||||||||||||||||||||||||||||||||||||||||||||||this|SuperMap|var|null|function|geometry|Geometry|Plot|length|new|return|style||components||else||||push|controlPoints|for|true|feature|map|false||Point|layer|features|symbolData|SymbolType|PlottingUtil|undefined|instanceof|Math|Util|events|apply|uuid|symbolType|CLASS_NAME|calculateParts|libID|setAttributeNS|prototype|fontSize|case|code|destroy|break|strokeWidth|triggerEvent|DefaultStyleConfiguration|dragControl|textContent|initialize|animationGOFeature|arguments|geoJSON|scalePoints|PlottingGeometry|transInfos|REST|subSymbols|canvas|dScale|lat|lon|GraphicObject|continue|serverUrl|credential|top||left||display||||Class|||scaleValues|positionPoints|right||textPosition|plotting|fillColor|bottom|rotate|towardNodes|fillOpacity|hasOwnProperty|drawFeature|move|transaction|routeNodes|fill|PI|clone|copyAttributes|symbolSize|LonLat|labelAlign|handlers|initialScale|type|disableEditFeature|originResult|layers|goFeature|opacity|getBounds|getLonLatFromViewPortPx|surroundLineType|distance|Layer|colorStops|strokeColor|fillCenterOffsetY|Renderer|180|surroundLineFlag|url|extend|splice|offsetY|offsetX|GeoGraphicObject|abs|createFeature|timeWindows|Plotting||||endAngle|||positionPoint|labelRotation|drag|startAngle|getPixelFromLonLat|functionName|isSelected|symbolSizeInLib|fontSpace|goAnimations|AvoidRegion|Primitives|stroke|fontPercent|delete|scaleByMap|getResolution|eventListeners|innerCells|fontFamily|dRotate|getInstance|color|associatedUuid|functionParams|indexOf|childNodes|resolution|fillAngle|clearBounds|nHandle|fontColor|selectedFeatures|routeNode|avoidRegions|clonePoints|bounds|GroupObject|Style|fontWeight|layerId|Pixel|strokeOpacity|none|fillSymbolID|parseFloat|360|scope|symbolTexts|selectControl|width|minEditPts|route|fillCenterOffsetX|fontStyle|fillGradientMode||pathFeature|name|PlottingLayer|||EditPoint|originGeometry||handlePoints|geoSymbolTexts|getFeatureByUuid|redoParams|TransactionInfo|centerPoint|Vector|isArray|undoParams|symbolName|subAssociatedUuids|space|superMapAlgoSymbol|processFailed|processCompleted|GeoRouteNode|relLineText|routeNodeId|Control|transformSymbolCellToGeometry|anchorPoint|fontStroke|GOAnimation|drawGraphicObject|arrRoutePts|ownGeometry|fillBackColor|parseInt|parseSymbolData|libIDs|removeFeatures|TEXTSYMBOL|100|isLocked|symbolLibData|fillID|Route|radius|annotationIndex|ownGroupObj|graphicWidth|graphicHeight|processAsync|setSymbolData|document|deactivate|Polygon|tag|touch|surroundLineWidth|AlgoSurroundLineType|concat|renderer||value||slice|handler|startAssociatedUuid|endAssociatedUuid|Canvas|fontOpacity|resize|DotSymbol|EVENT_TYPES|isEditable|result|orbitPoints|limitWidthHeight|point|LinearRing|ratio|DOTSYMBOL|EditMode|lastResult|height|joinLines|pntCenter|dragStartControlPoints|GeoText|getWidth|equalFuzzy|addFeatures|appendChild|nodeFactory|maxEditPts|positionOffsetY|positionOffsetX|custom|editMode|Bounds|fontShadowOffsetY|fontShadowOffsetX|fontShadow|getHeight|sqrt|AnalysisSymbol|toJSON|isEdit|negativeImage|fillBackOpacity|strokeDashstyle|Feature|isAccessServer|lineLength|ff0000|toString|drawGeometry|rotatePoints|strokeLinecap|fontStrokeWidth|fontStrokeColor|round|goAnimationLayer|cloneObject||inputPoints|towardNode|radiusText|activate|isAddTransInfo|setCursor|fontShadowColor|fontBackgroundColor|fontBackground|1000|AlgoSymbol|add|Transaction|NONE|getTransManager|register|symbolRank|offset|Points|boundsWithTextMP|method|setMap|modifyPoint|init|isHaveFill|showPathLine|addFrame|normal|lineWidthLimit|wayPoints|fromJSONData|getJSONData|GOAnimationType|default|switch|symbolCode|getLonLatFromPixel|strokeLinejoin|locked|i18n|lineStyle|selectFeature|resetControlPointsValue|translate|LineString|fontSizeLimit|startScale|layerName|smlInfo|GetSymbolInfoParameters|deployments|smlFileName|minScale|maxScale|while|reView|positionOffset|symbolInfo|addColorStop|findPoint|Object|endScale|stop||featureneedunselected|defaultStyle||properties|getLocked|activeLayer|getElementById|smlInfos|resourceInfo|sin|cos|removeChild|radiusPosAngle|prevFontSize|multiple|fillStyle|fontColorLimit|radian|getSymbolData|dynamicToken|symbolLibs|fromJson|ServiceBase|ServiceEventArgs|measureText|Collection|path|click|overFeature|unEditBox|symbolBoundDp|lineTo|globalAlpha|isNaN|calculateBounds|featureSymbolTexts|TransactionType|transType|setPositionPoints|endOrbitPoint|index|TowardNode|centerY|centerX|zoom|GetSymbolInfoService|featureneedselected|getCenterLonLat|removeAllFeatures|animationManager|LinearGradient|colorRGBA|scale|cursor|mousemove|isScalePoint|prevLiterateSign|lineRelationType|_sketch|mousedown|controlPointsStyle|dragStartRotate|control|center|surroundLineColorOpacity|surroundLineColor|start|visibility|useCanvas|getNodeByUuid|json|label|SVG|pointer|isCurve|startRouteNode|prevStrokeWidth|radiusLineType|mouseup|active|rootLayer|join|copyCellStyle|isDot|resetAnimationFeature|getTime|executeAndRatioIsZero|GOAnimationState|drawFeatures|startOrbitPoint|SATELLITETIMEWINDOWS|POLYLINESYMBOL|split|sitDataManager|innerHTML|isAvoid|finish|prevRouteNode|subSectionCount|textBoxType|AlgoSymbolFactory|dragStartScale|moveTo|text|RADIAL|LINEAR|getLocalXY|fillLimit|execute|getGOAnimationManager|pathWidth|findPos|getGOAnimationType|pts|ANNOFRAMESYMBOL|Date|animationState|plottingLayer|undoTransactions|RelLineText|CONCENTRICCIRCLE||useCanvas2|layerDatas|key|pasteGeoAry|Handler||Canvas2|actualScale|RadialGradient|sizeFixed|showPathLineArrow|textToLineDistance|NavyDeployment|getSymbolWayType|SubSymbols|dStartAngle|dEndAngle|lastPixel|AddPoint_WayType|dragStartScaleValues|scalePointsStyle|modified|window|save|transPointtoDp|fillText|font|000000|drawText|lineWidth|lineCap|lineTypeLimit|pathColor|reset|GET|AVOIDREGION|SYMBOLTEXT|mapInfo|needCacheList|cacheSymbolData|EditSmlFileParameters|substr|success|prevScale|strokeGradientMode|flagTextSize|square|g_Plotting|symbolLibManager|transformResult|LABEL_FACTOR|parentNode|options|GeoLiterateSign|getBoundsByText|transitionPoint|isShowTooltip|scaleBeforeOffsetY|scaleBeforeOffsetX|ScaleValues|_dragPixel|plottingEdit|clickFeature|dragStartBounds|unselectFeatures|ctrlKey|externalGraphic|graphicYOffset|graphicXOffset|1em|pathType|shapePoints|LINEMARKING|SYMBOLTEXTBOX|ANNOFRAMESYMBOLM|linePnt|UNKNOWN|Events|totalNum|ADDCONTROLPOINT|OUT|SYMBOLTEXT1|SATELLITE|AIRDEPLOYMENT|NAVYDEPLOYMENT|LINERELATION|getSymbolLibByLibId|pasteGeoSel|getCurrentLayer|error|setSymbolSize|270|drawTextPt|atan2|baseVal|visible|setBounds|setRotate|inner|polylineConnectLocationPoint|featureneedreset|getDataFromServer|getCpGeos|drawControl|resetControlPoints|avoidControl|box|callback|getSketch|LABEL_ALIGN|fillColorLimit|Gradient|lineColorLimit|generateBeizerPointsNoCtrlPt|canExecute|REGULARPOLYGON|polylineDistance|endColor|startColor|innerStartTime|startSurroundLineWidth|startLineWidth|blue|green|red|startTime|isUndo|propertyName|removeAvoidRegions|time|SubSymbol|RouteNode|INNER|PATHTEXT|SMLTime|SMLAuthor|SMLDepat|SMLSeclevel|SMLDesc|SMLName|ExtendProperty|EditSmlFileService|renderers|count|selectFeatureByPoint|dotSymbolSize|transManager|query|editor|dpi|newScalePoint|tan|isCanFill|dOffset|patternTransform|setAttribute|setScale|FlagGroup|getRotate|nextRouteNodeType|highlightStyle|colNum|updateSymbolTexts|middleMarkBounds|getScale|dRadius|viewPortDiv|avoidEditing|mouseDown|graphicOpacity|extent|strokeStyle|ALL|tangentDirection|showPath|finalDisplay|pos|execute_Generalization|POLYGONREGION|ARBITRARYPOLYGONSYMBOL|ELLIPSESYMBOL|replaceStyle|blinkInterval|duration|startSurroundLineColor|startLineColor|repeat|removeLayer|featuremodified|EDIT|redoTransactions|maxCount|number|EDITCIRCUMRECTANGLE|AlignType|FLAGGROUP||LITERATESIGN|ARCREGION|GROUPOBJECT|400|getNodeFeature|localePoints|symbolcreated|strokeBackColor|strokeBackOpacity|dotTextSpace||solid|jsonp|newScalePointIndex|createGradient|ctx|pow||setCanvasStyle|labelYOffset|labelXOffset|||linecap|textRoot|vectorRoot|subFeatures|clearCollectionBounds|resizeControlPoints|clearSamePts|endRouteNode|computePointToLineMinDis|LineRelation|setJoinLineToGeometry|image|leadLineDrawFlag|positionOffsetType|nSegmentCount|removeEditFeature|setCursorShape|layerMoveEnd|selectGraphic|defaultControlPointStyle|dragStartScalePoints|getToleranceLonLat|unselectFeature|stoppedDown|lastTouchPx|lastUp|tolerancePixel|restore|rotation|pointRadius|ratioY|ratioX|textAlign|serif|sans|Rectangle|substring|POLYLINE|showEffect|rotateDirection|blinkNumber|blinkStyle|0000ff|endSurroundLineWidth|surroundLineWidthAnimation|endSurroundLineColor|surroundLineColorAnimation|endLineWidth|lineWidthAnimation|endLineColor|lineColorAnimation|PlotCanvas2|lastExecute|addLayer|getLayer|addAvoidRegion|ONLEFTLINE|REMOVECONTROLPOINT|EDITCONTROLPOINT|1016|ROUTENODE||MISSILEROUTE|NAVYROUTE|AIRROUTE|INTERFERENCEBEAM|fromJSON|isInializeOK|isBaseLayer|addLayers|lineJoin|getSymbolLibManager|getDefaultStyle|GetSMLInfosResult|failure|request|EditSmlFileResult|GetSymbolInfoResult|GetLibInfoResult|GetLibIDsResult|getContext|mozDrawText|mozMeasureText|getSpatialData|PlotSVG|points|transform|getTextWidth|LABEL_ID_SUFFIX|0px|dblclick|removeComponents|AssociatedUuid|Uuid|SatelliteTimeWindows|ArcRegion|distVincenty|createGeometry|lastComponents|featureneedhighlight|isLastNode|isFirstNode|arrowBodyType|arrowTailType|arrowHeadType|islocationCircle|roundBox|scaleStrokeWidth|fontIndexs|avoidRegion|onDrag||outFeature|Element|defaultScalePointStyle|isRemovePoints|changeRootLayer|unregister|isDrawing|modifyFeature|getSymbolDataFromCache|beginPath|graphicTitle|middle|drawPolygon|symbolCenter|size|rotateSize|Size|addFeature|getControlPoints|ANIMATION_WAY|grow|execute_1004|POLYBEZIERSYMBOL|PARALLELLINE|RECTANGLESYMBOL|CIRCLESYMBOL|showAnimationFeature|PLAYING|POST|isCover|GOAnimationLayer|displayInLayerSwitcher|REMOVE|parameter|eval|getStyle|position|generateUuid|ARROW|LineRelationType|PICTURE|1023|MapInfoStruct|symbolNodeType|cachedSymbolList|cacheCompleted|floor|symbolNames|getSymbolName|silent|symbolCreated|load|getEditable|DrawFeature|GetSMLInfosParameters|getLayersByClass|mergeDefaultStyle|ServiceFailedEventArgs|ServiceException|toUrlParameters|isInTheSameDomain|Array|body|handleSurroundLine|VML|PlotCanvas|defs|polygon|pointerEvents|msie|Browser|PathText|||toGeoJson|fromGeoJson|calculateOffset|getArcPts|constantSize|ceil|setTextPosition|minDis|highlightFlag|removeJoinLineToGeometry|copyFontStyle|addOrRemoveSurroundLine|arrowTypeEnd|arrowTypeStart|offsetYBeforeScaleByMap|offsetXBeforeScaleByMap|getHandleAndRotatePoints|AvoidRegions|TextContent|Rotate|Scale|extendProperty|GetPtsByTriangle|getArcSpatialData|collectControlPoints|last|started|removeItem|featureModified|moveend|onComplete|Temporary|graphicsLayer|isRemoveFeature|dragStartPositionOffset|_lastPixel|layerOptions|startResolution|isFreeCurve|stopDown|Event|lastDown|isNewAdd|modify|DotSymbolImage|Image|textBaseline|String|drawRectangle|drawLineString|timeoutId|pathLength|removeFeature|01|lastScale|execute_Kidney|ARCSYMBOL|CHORDSYMBOL|PIESYMBOL|POLYBEZIERCLOSESYMBOL|KIDNEY|lastDrawTime|algoMinEditPts|BlinkAnimationReplaceStyle|colorStringToRGB|ffff00|copyFeature|parse|JSON|redraw|GOAnimationManager|animations|propertyValue|createFlags|createGroupObject|unGroupObject|setTextContent|CREATE|setStyle|SymbolText|EqualLargeType|RadiusLineType|ONRIGHTLINE|RouteNodeType|EDITABLECONTENTBOX|COMBINATIONALCIRCLE|ARROWLINE|Property|png|random|GetLibInfoService|symbolLibJsons|initializeCompleted|initializeSymbolLib|pasteToPositionAndLayer|sitData|createTextWC|createSymbolWC|getExtendProperty|addControls|setVisibility|setLocked|getSMLInfosFailed|timeout|dataType|fileElementId|secureuri|ajaxFileUpload|getFeatureCenter|containsPoint|defaultFlag|clientID|data|fileArray|graphicObject|315|225|135|strokeText|Mg|MultiPolygon|MultiLineString|MultiPoint|hitContext|backgroundGraphic|isFilled|firstChild|element|_shadow|div|_|Picture|newSymbolData|9999|innerOutlineDir|controlSize|circlePoint|Time|Number|02|getPositionPoints|transformSymbolCellsToGeometrys|resetComponent|RouteNodePrimitives|AirDeployment|getSubSymbolCount|spaceDisLen|GeoSymbolText1|prevOffsetY|prevOffsetX|calculateSize|GeoSymbolText|log|console|baseScale|resizeCells|removeComponent|handleAnnotation|prevPositionOffsetY|prevPositionOffsetX|scaleBeforeScaleByMap|annoStyle|setScaleValues|getHandlePointsByBounds||Code||LibID|note|getArcInfo|pt3|defaultAvoidEditPointStyle|moveFeature|dragComplete||dragControlPoint|removeClass|lastDownTime|dragStart|over|onStart|True|Function|calculateInRange|PlottingEdit|plottingGraphicsEdit|setEditMode|removeEditFeatures|featureHighlight|featureReset|featureSelected|featureUnselected|lastDragPixel|event|downPixel|clickout|down|smDefault|RootContainer|drawScaleByMap|createDefaultFeature|drawComplete|cur|cursors|layerContainerDiv|mouseSelectCell|closePath|onload|title|320|createRadialGradient|createLinearGradient|anchor|GOAnimationWay|WayPathType|currentPt|GOAnimationShow|ANIMATION_SHOW|GOAnimationScale|ANIMATION_SCALE|GOAnimationRotate|RotateDirection|ANIMATION_ROTATE|GOAnimationGrow|execute_1006|390|execute_ArbitraryPolygon|1021|1018|CURVEEIGHT|TRAPEZOIDSYMBOL|PARALLELOGRAM|getPolygonCenterPt|findPointOnLineByRatio|rotateAngle|ANIMATION_GROW|GOAnimationBlink|Replace_Color|BlinkAnimationBlinkStyle|ANIMATION_BLINK|500|GOAnimationAttribute|ANIMATION_ATTRIBUTE|STOP|pauseTime|PAUSE|pause|play|getGOFeature|CURVE|findGOAnimationByName|removeGOAnimation|TransactionManager|redoValue|undoValue|updateSymbolText|setStrokeColor|setType|setRadiusText|setFontAlign|doTransaction|OrbitPoint|applyDefaults|UniformDistributionType|RIGHT|LEFT|LINE|PositionOffsetType|NONEBOX|TextBoxType|SOLID|ONLINE|AIMING|TURNING|STANDBY|NODECHAIN|1024|ALGOSYMBOL|LayerDataStruct|SMLInfoStruct|SitDataStruct|findProperty|SymbolLib|querySymbol|SYMBOL_GROUP|rootSymbolLibNode|querySymbolbyKey|md5|MD5|initNeedCacheListForNode|initNeedCacheList|getSymbolNameFromList|SymbolLibManager|GetLibIDsService|Editor|SitDataManager|createText|createSymbol|openSmlFileCompleted|setEditable|_getCompletedInit|openSmlFileFailed|GetSMLInfosService|addSmlFileFailed|addSmlFileToLayerFailed|openLocalSmlFileFailed|Query|DefualtStyle|lineOpacity|lineType|lineColor|getDPI|GetSMLInfosEventArgs|EditSmlFileEventArgs|getSymbolInfoFailed|GetSymbolInfoEventArgs|getSymbolInfoComplted|GetLibInfoEventArgs|GetLibIDsEventArgs|ptMinY|ptMinX|fillRect|createElement|CalculateCanvasGradient|mozTextStyle|labelPosition|rendered|_style|PlotVML|userSpaceOnUse|getElement|StopOpacity|StopColor|dot|hidden|spacingAndGlyphs|lengthAdjust|textLength|baseline|IS_GECKO|_background|stopPropagation|addEventListener|textDisplay|projectPoint|calculateFlagTop|2800|YaHei||Microsoft|parallel|setPosition|destinationVincenty|Satellite|getBoundsWithText|annotationPosition|getRouteNodeCells|getFeatureEndWith|getFeatureStartWith||MissileRoute|NavyRoute|AirRoute|finishRoute|createRouteNode|initRoute||getFeatureByPoint|setEndFeature|setStartFeature|setFeatures|isFixedPos|setSubSymbolText|showTooltip|InterferenceBeam|PolygonRegion|getTextPosition|fromSuperMapAlgorithms|toSuperMapAlgorithms|canPolylineConnect|findPointInLine|isCalculate|equals|getDefaultSubSymbols|setSurroundLineType|geotext|widthHeightLimitScale|00|resizeBounds|getHandleCount|Custom|TotalNum|Note|IsLocked|ScaleByMap|Resolution|property|getWithoutPts|calculateAvoidRegion|pt4|GetPointsOfNormal|GetWhichPtOfNormal|calcProtudeC3|isSamePt|calcEllipseRadian|AvoidFeature|removeAvoidRegion|removeAllAvoidRegion|out|graphicsId|unHighlightRoute|highlightRoute|touchTolerance|mouseTolerance|getAddPointTolerance|getSpGeos|collectEditFeatures|setEditFeaturesDisplay|getSelected|unEditBoxStyle|toGeometry|lockedControlPointsStyle|resetStartValues|outFeatureFlag|lastFeature|dbclickFeature|setLayers|done|defaultAvoidRegionStyle|finalize|clear|passesTolerance|cancel|destroyFeature|persist|addControlPoint|create|Pan|Graphics|hitGraphics|container|pointInBounds|img|call|drawImageScaleFactor|drawExternalGraphic|drawComponents|rgba|computeImageSize|render|GOAnimator|executeGOAnimations|tick|Animator|setWayPoints|angle|makePath|executeHaveEffect|executeNoEffect|AntiClockWise|getCurrentAngle|ClockWise|unClearBounds|123|25200|execute_1002|1002|1006|1010|1004|execute_AnnotationFrame|execute_CurveEight|execute_Polybezier|execute_ParallelLine|execute_Ellipse||execute_RegularPloygon|execute_Rect|execute_Circle|executeAnimation|timeSpace|isAlgo|Blink_Number|Replace_NoColor|Blink_Frequency|executeSurroundLineWidthAnimation|colorRGBToString|executeSurroundLineColorAnimation|executeLineWidthAnimation|executeLineColorAnimation|goFeatureUuid|removeAnimationFeature|cloneGOFeature|getRatioByTime|RESET|ANIMATION_UNKNOWN|setGOFeature|EditSituationEvolutionFileParameters|evoFileName|EditSituationEvolutionFileService|openEvoFileFailed|openEvoFileCompleted|saveEvoFileFailed|saveEvoFileCompleted|createGOAnimation|createGOAnimationByType|TimeWindowParameter|VERTICAL|LEVEL|SAME|HEIGHT|WIDTH|HORIZONTALCENTER|VERTICALCENTER|DOWN|UP|HAPPYVALLEY|EIGHTSPIRAL|SUPPRESS|ATTACK|TARGET|WEAPONLAUNCH|COMMONROUTE|LANCH|VISUALINITAL|INITIAL|TAKEOFF|SUPPLY|VOLLEY|EXPANDING|RENDEZVOUS|DASH|2000|FREECURVE|1015|1014|1013|RUNWAY|1012|BRACESYMBOL|590|380|370|setValue|getPropertyCount|getPropertyByIndex||addProperty|icon|getRootSymbolInfo|getRootSymbolIconUrl|getSymbolLibID|cachedSymbols|SYMBOL_NODE|childNodeCount|symbolLibInitializeFail|symbolLibInitializeSuccess|initializeAsync|cacheSymbolLibCompleted|isInitializeOK|saveSmlFileFailed|saveSmlFileCompleted|getVisibility|getCenter|DELETE|deleteSmlFileFailed|deleteSmlFileCompleted|setCenter|openSmlFileOnServer|getSMLInfosCompleted|getSMLInfoFailed|getSMLInfoCompleted|getLayersByName|smlFileDownload|addSmlFileCompleted|addSmlFileOnServer|addSmlFileToLayerCompleted|addSmlFileToLayerOnServer|openLocalSmlFileCompleted|total|FileReader|mergeDefaultStyleToFeature|typeof|parserConfiguration|2px|setCredential|setPlotUrl|getSMLInfosComplted|editSmlFileFailed|editSmlFileComplted|toJsonParameters|params|getLibInfoFailed|getLibInfoComplted|getLibIDsFailed|getLibIDsComplted|CalculateSVGGradient|getGradientDirection|calculateObjectByBounds|createTextureFill|createFillMode|min|max|drawPoint|drawLinearRing|hitDetection||BACKGROUND_ID_SUFFIX|redrawNode|redrawBackgroundNode|LABEL_IE_VOFFSET|patternUnits||pattern||gradientUnits|trim|dash||dashStyle|visiblepainted|symbolMetrics|_rotation|insertBefore|viewBox|getAttributeNS|getPosition|graphicName|toFixed|_geometryClass|getfillMode|isUnicode|LABEL_VFACTOR|LABEL_VSHIFT|shift|tspan|_tspan_|lastChild|absolute|auto|transformOrigin|outline|word|wordWrap|selectNode|xhtml|1999|org|www|http|createElementNS|focus|selection|getSelection|drawHtmlText|setSpace|getSpace|styleToGeoJson|geoJsonToStyle|algoMaxEditPts|2900|getTextContentsCells|getTextCount|textAnchor|subSymbolDefaultPixelSize|radiusGeometry|textGeometry|circlePts|createLiterateSign|addRouteNodes|addRouteNodeByPos|addRouteNodeByNode|setTimeout|unhighlight|highlight|computeLine|2048|applyStyle|lentth|getArrowBodyType|transSymbolCellsToLayers|superMapModifyPoint|superMapCalculateParts|28000|intersectPoint|isIntersectLines|intersectLines|getSurroundLinePts|analysisAlgoBasicInfo|analysisSymbolCells|calAccessServerSymbol|calculateTextContent|calNotAccessServerSymbol|calAssistantLine|getTextGraphic|generateBeizerPointsWithCtrlPt|transformSymbolCellsToCompontGeometrys|prevSpace|generateLeadLine|middleMarkExist|setNegativeImage|getNegativeImage|setSymbolRank|getSymbolRank|getSymbolSize|isSelectedBorder|SLineType|calculateAvoidRegions|254|inch|resizeOffset|getPixel|changeUuid|symbolDataClone|TextPos|SymbolName|geoJson|scaleZ|scaleY|scaleX||rotationZ|rotationY|rotationX|prjCoordSys|parts|removeRedundancySymbolData|setSymbolName|intersectSegs|containRegion|intersects||isPlottingGeometry|parallelline|ellipse|arc|lune|sector||rectangle|circle|parallelogram|loopbezier|bezier|kidney|polyline|getBezierPtsWithScalePts|isRight|reNormalizeKidneyCtrlPoints|calcShapePoints|getKendyShapePts|smDragDown|hideAvoidRegions|showAvoidRegions|drawCompleted|DragFeature|featureCallbacks|dragCallbacks|5f9ea0|avoidEditPointStyle|onGraphicUnSelect|onGraphicSelect|updateGraphics|updateGraphicsLayer|defaultHighlightStyle|addPointByCurve|addPointByPolyLine|removePoint|addPoint|collectEditFeature|defaultUnEditBoxStyle|defaultRotatePointStyle|defaultLockedControlPointStyle|dragControlPoints|dragResize|dragRotate|onMove|hoverMilliSec|onHover|onOver|selectOverFeature|onOut|selectOutFeature|upFeature|featureunselected||featureselected|beforefeatureselected|geometryTypes|selectBoxFeatures|clickoutFeature|onDblclick|addClass|callbacks|00ff00|setControlPoints|eventsDiv|doubleTouchTolerance|destroyFeatures|destroyPersistedFeature|pixelTolerance|button|getImagesLocation|styleMap|PlottingGraphics|addGraphics|Graphic|featurerendered|recordDrawedFeature|crosshair|getFeatureFromEvent|mergeSymbolDataAndServerData|getFeatureById|getFeatureAt|changeRenderers|description|setTransform|drawHitDetectionCanvas|src|drawImage|screen|toLowerCase|userAgent|navigator|test|android|strokeRect|createCanvasContext2D|requestAnimation|cancelAnimation|getPathType|setPathType|getPathWidth|setPathWidth|getPathColor|setPathColor|getCurrentPt|getWayPoints|setShowPath|6031001|60310|317|311|421|3911|3211|2002|2006|2004|array|operateControlPoints|00ffff|0000FF|FF0000|isGeoGraphicObject|openEvoFileOnServer|jsonData|saveEvoFile|hasGrowAnimation|removeAllGOAnimation|removeGOAnimationByName|findGOAnimationByUuid|findGOAnimationsByFeature|deleteEvoFileFailed|deleteEvoFileCompleted|redo|undo|setMaxCount|GRADIENTLINE|LINEBOX|RECTBOX|WITHTIPBOX|TRIANGLESOLID|DOUBLELINE|ArrowLineType|BOTTOM|TOP|RIGHTBOTTOM|RIGHTTOP|LEFTBOTTOM|LEFTTOP|AnnoPosition|ONBOTHLINE|3000|1028|WIRE|1027|1026|1025|1022|1020|1019|1017|1011|1009|1008|1007|1005|1003|1001|350|321|319|ANNOFRAMESYMBOLNOFILL|410|getValue|getKey|setKey|getPropertyValue|deleteProperty|version|getVersion|rootSymbolIconUrl|modifyTime|getModifyTime|creator|getCreator|createTime||getCreateTime||classFication|getClassFication|symbolCount|getSymbolCount|cachedSymbolOK|SYMBOL_DOT|symbolLibName|getSymbolLibName|findSymbolByCode|findSymbolByName|cacheSymbolLib|getSymbolLibByIndex|getSymbolLibJSONInfo|getSymbolLibNumber|pasteToLayer|pasteToPosition|paste|cut|copy|cutFeatures|copyFeatures|getZoom|getGObjectByID|getGObjectByName|getGObjectByCode|getGObjectByExtendProperty|deleteSmlFileOnServer|openSmlData|getSMLInfos|getSMLInfo|saveLayersToSmlFile|saveAsSmlFile|saveSmlFile|removeControl|newSmlFile|downloadSmlFileURL|uploadSmlFile|addSmlFileToLayer|addSmlFile|target|onloadend|onerror|onloadstart|readAsText|files|openLocalSmlFile|openSmlFile|getSitDataLayers|situationMap|getGObjectsInRect|getGObjectsInCircle|getGObjectsInPolygon|captureGObject|immediateEffect|bold|setDPI|setClientID|getClientID|getQuery|getEditor|getSitDataManager|async|processSync|CanvasRenderingContext2D|createPattern|LABEL_SHIFT|fillOpacity2|fillColor2|CanvasPattern|CanvasGradient|_textureFill|radialGradient|_radialGradient_|linearGradient|_linearGradient_|objectBoundingBox|createDefs|replace|longdashdot|longdash|dashdotdot|dashdot|dasharray|strokeLineJoin|linejoin|isStroked|svg|nodeName|cloneNode|nextSibling|importSymbol|isComplexSymbol|preventDefault|onclick|href|xlinkns|preserveAspectRatio|graphic|_options|browerName|0em||central|dominant|_featureId|labelSelect|clientWidth|span|firefox|weight|family|getBoundingClientRect|rect|getBBox|featureDx|node|updateNode|selectAll|execCommand|lineHeight|minHeight|maxWidth|translationParameters|zIndex|caretColor|contenteditable|enableEdit|foreignObject|_Selected|_Div|borderPixelSizeY|borderPixelSizeX|select|collapse|moveToElementText|createRange|collapseToEnd|selectAllChildren|setAvoidLine|getIsAvoidLine|setCurveLine|getIsCurveLine|setShowPathLineArrow|getShowPathLineArrow|setShowPathLine|getShowPathLine|setRelLineText|getRelLineText|marker|images|theme|picture|region|avoid|flagGroup|coordinateTrans|satelliteTimeWindows|isPloyClockwise|arcRegion|getRadiusLineType|setRadiusLineType|||getRadiusTextPos|setRadiusTextPos|getRadiusText|getEndAngle|setEndAngle|getStartAngle|setStartAngle|getRadius|setRadius|getCirclePts|findPointInPolyLine|scalesValues|satellite|getVisible|setVisible|getRouteNodeNameByType|setName|missileRoute|navyRoute|airRoute|setNextRouteNodeType|addRouteNode|insertRouteNode|updateRouteNode|deleteRouteNode|applyNodeStyle|applyLineStyle|applyTextStyle|300|blinkRoute|||lineRelation|getLineRelationType|setLineRelationType|airDeployment|GeoTooltipBox|setShowTooltip|getShowTooltip|navyDeployment|interferenceBeam|pointIsRightToLine|symbolText1|symbolText|setFrame|getFrame|setArrowBodyType|setArrowTailType|getArrowTailType|setArrowHeadType|getArrowHeadType|getLocationCircle|setLocationCircle|getRoundBox|setRoundBox|getTextBoxType|setTextBoxType|setEndArrowType|getEndArrowType|setStartArrowType|||getStartArrowType|13700|setPolylineConnectLocationPoint|getPolylineConnectLocationPoint|canPolylineConnectLocationPoint|pixel2|equal|31401|31400|44300|44400|28201|28200|28100|surroundLineLimit|2em|getAlgoSymbol|getMaxEditPts|getMinEditPts|stream|octet|toDataURL|numRows|isClosed|polybezierClose|symbolRanks|getSymbolRanks|getPositionOffsetType|setPositionOffsetType|getPositionOffset|setPositionOffset|getWidthHeightLimit|Boolean|constructor|setWidthHeightLimit|isChildFeatureSelected|groupObject|getStrokeWidth|setStrokeWidth|getStrokeColor|Edit|_label|hasChildNodes|_clip_|calculateControlPts|getSurroundLineType|symbolDefaultStyle|strokelinejoin|strokelinecap|textStyle2D|addTransaction|isRotatePoint|toGeoJsonStr|Value|Key|intersectLineSegs|setSubSymbol|50331|50208|5020801|5030101|26400|30800|23400|3020901|getSubSymbols|getTextContent|setScaleByMap|getScaleByMap|isNear|getArcPoint|isCounterClockwise|03125|00001|featureadded|PlottingGraphicsEditor|onUnselect|onSelect|SelectGraphic|PlottingGraphicsEdit|uniformDistribution|equalLarge|dispaly|preremovelayer|addlayer|05|caller|callee|dragHandler|deleteSelectFeature|avoidEdit|multiSelect|align|removeMap|collectRoots|resetRoots|SelectFeature|toggle|_container|ffffff|rotatePointStyle|distanceTo|mouseLeft|mouseout|touchend|touchmove|touchstart|trackingFeature|stopUp|multi|originalSymbolInfo|removeGraphics|getGraphicById|createSymbolizer|renderIntent|State|state|object|smooth|rendererType|AnimatorVector|PanDown|Default|pointToPloyLineDis|ptInBounds|pointInBoundsByPiexl|getFeaturesFromEvent|geoJsonToFeature|createAvoidRegion|createCombinationalCircle|createConcentricCircle|createArrowLine|createPathText|createSymbolText|createSymbolText1|createSatelliteTimeWindows2|createSatelliteTimeWindows1|createSatelliteTimeWindows|Error|throw|createSatellite|createAirDeployment|createNavyDeployment|createMissileRoute|createNavyRoute|createAirRoute|createArcRegion|createPolygonRegion|createInterferenceBeam|createLineRelation|removeFeatureAt|removeFeatureByID|moveed|getControlsByClass|setSelected'.split('|'),0,{}))
|
|
|
|
/*!
|
|
*
|
|
* iclient-plot-classic.(https://iclient.supermap.io)
|
|
* Copyright© 2000 - 2019 SuperMap Software Co.Ltd
|
|
* version: v10.0.0-beta
|
|
*
|
|
*/!function(t){var e={};function o(l){if(e[l])return e[l].exports;var i=e[l]={i:l,l:!1,exports:{}};return t[l].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,l){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:l})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(l,i,function(e){return t[e]}.bind(null,i));return l},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=60)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicAlgoSymbolFactory=void 0,o(52);e.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory||{};SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return new SuperMap.Plot.GeoTooltipBox(o);case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMap.Plot.GeoTooltipBoxM(o);case SuperMap.Plot.SymbolType.PATHTEXT:return new SuperMap.Plot.PathText(o);case SuperMap.Plot.SymbolType.ARROWLINE:return new SuperMap.Plot.ArrowLine(o);case SuperMap.Plot.SymbolType.CURVEEIGHT:return new SuperMap.Plot.CurveEight(o);case SuperMap.Plot.SymbolType.RUNWAY:return new SuperMap.Plot.Runway(o);case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:return new SuperMap.Plot.ConcentricCircle(o);case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return new SuperMap.Plot.CombinationalCircle(o);case SuperMap.Plot.SymbolType.FREECURVE:return new SuperMap.Plot.FreeCurve(o);case SuperMap.Plot.SymbolType.REGULARPOLYGON:return new SuperMap.Plot.RegularPolygon(o);case SuperMap.Plot.SymbolType.BRACESYMBOL:return new SuperMap.Plot.Brace(o);case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMap.Plot.Trapezoid(o);case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:return new SuperMap.Plot.SymbolTextBox(o);case SuperMap.Plot.SymbolType.NODECHAIN:return new SuperMap.Plot.NodeChain(o);case SuperMap.Plot.SymbolType.LINERELATION:return new SuperMap.Plot.LineRelation(o);case SuperMap.Plot.SymbolType.LINEMARKING:return new SuperMap.Plot.LineMarking(o);case SuperMap.Plot.SymbolType.POLYGONREGION:return new SuperMap.Plot.PolygonRegion(o);case SuperMap.Plot.SymbolType.WIRE:return new SuperMap.Plot.Wire(o);case SuperMap.Plot.SymbolType.LinearArrow:return new SuperMap.Plot.LinearArrow(o);default:return new SuperMap.Plot.AlgoSymbol(o)}else if(22===t)switch(e){case 1001:return new SuperMap.Plot.AlgoSymbol1001(o);case 1002:return new SuperMap.Plot.AlgoSymbol1002(o);case 1003:return new SuperMap.Plot.AlgoSymbol1003(o);case 1004:return new SuperMap.Plot.AlgoSymbol1004(o);case 1005:return new SuperMap.Plot.AlgoSymbol1005(o);case 1006:return new SuperMap.Plot.AlgoSymbol1006(o);case 1007:return new SuperMap.Plot.AlgoSymbol1007(o);case 1008:return new SuperMap.Plot.AlgoSymbol1008(o);case 1009:return new SuperMap.Plot.AlgoSymbol1009(o);case 1010:return new SuperMap.Plot.AlgoSymbol1010(o);case 1011:return new SuperMap.Plot.AlgoSymbol1011(o);case 1012:return new SuperMap.Plot.AlgoSymbol1012(o);case 1013:return new SuperMap.Plot.AlgoSymbol1013(o);case 1014:return new SuperMap.Plot.AlgoSymbol1014(o);case 1015:return new SuperMap.Plot.AlgoSymbol1015(o);case 1016:return new SuperMap.Plot.AlgoSymbol1016(o);case 1017:return new SuperMap.Plot.AlgoSymbol1017(o);case 1018:return new SuperMap.Plot.AlgoSymbol1018(o);case 1019:return new SuperMap.Plot.AlgoSymbol1019(o);case 1020:return new SuperMap.Plot.AlgoSymbol1020(o);case 1021:return new SuperMap.Plot.AlgoSymbol1021(o);case 1022:return new SuperMap.Plot.AlgoSymbol1022(o);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMap.Plot.AlgoSymbol1004(o);case 315:return new SuperMap.Plot.AlgoSymbol315(o);case 317:return new SuperMap.Plot.AlgoSymbol1006(o);case 318:return new SuperMap.Plot.AlgoSymbol1002(o);case 319:return new SuperMap.Plot.AlgoSymbol15200(o);default:return null}}},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer=function(t,e){if(0===t||22===t)return!1;if(421!==t)return!0;switch(e){case 311:case 317:case 318:case 315:case 319:return!1;default:return!0}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.WIRE:case SuperMap.Plot.SymbolType.LinearArrow:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return 3}else if(22===t)switch(e){case 1001:case 1003:case 1005:case 1007:case 1008:case 1009:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1019:case 1020:case 1022:return 2;case 1002:case 1004:case 1006:case 1010:case 1018:case 1021:return 3}else if(421===t)switch(e){case 319:return 2;case 311:case 315:case 317:case 318:return 3}},SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.LinearArrow:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return 3;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.WIRE:return 9999}else if(22===t)switch(e){case 1003:case 1019:case 1020:case 1022:return 2;case 1006:case 1021:return 4;case 1001:case 1002:case 1004:case 1005:case 1007:case 1008:case 1009:case 1010:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1018:return 99999}else if(421===t)switch(e){case 317:return 4;case 311:case 315:case 318:case 319:return 99999}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var o="";if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:o="文本";break;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:o="圆";break;case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:o="矩形";break;case SuperMap.Plot.SymbolType.ARCSYMBOL:o="弧线";break;case SuperMap.Plot.SymbolType.CHORDSYMBOL:o="弓形";break;case SuperMap.Plot.SymbolType.PIESYMBOL:o="扇形";break;case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:o="椭圆";break;case SuperMap.Plot.SymbolType.PARALLELOGRAM:o="平行四边形";break;case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:o="多边形";break;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:o="折线";break;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:o="贝赛尔曲线";break;case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:o="闭合贝塞尔曲线";break;case SuperMap.Plot.SymbolType.PARALLELLINE:o="平行线";break;case SuperMap.Plot.SymbolType.KIDNEY:o="集结地";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:o="注记指示框";break;case SuperMap.Plot.SymbolType.ARROWLINE:o="箭头线";break;case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:o="组合圆";break;case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:o="同心圆";break;case SuperMap.Plot.SymbolType.CURVEEIGHT:o="八字形";break;case SuperMap.Plot.SymbolType.FREECURVE:o="自由线";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:o="多角标注框";break;case SuperMap.Plot.SymbolType.LINEMARKING:o="线型标注";break;case SuperMap.Plot.SymbolType.LINERELATION:o="对象间连线";break;case SuperMap.Plot.SymbolType.NODECHAIN:o="节点链";break;case SuperMap.Plot.SymbolType.PATHTEXT:o="沿线注记";break;case SuperMap.Plot.SymbolType.POLYGONREGION:o="多边形区域管理";break;case SuperMap.Plot.SymbolType.RUNWAY:o="跑道线";break;case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:o="标注框";break;case SuperMap.Plot.SymbolType.REGULARPOLYGON:o="正多边形";break;case SuperMap.Plot.SymbolType.BRACESYMBOL:o="大括号";break;case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:o="梯形";break;case SuperMap.Plot.SymbolType.WIRE:o="铁丝网";break;case SuperMap.Plot.SymbolType.LinearArrow:o="直线箭头"}return o}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.MD5=SuperMap.MD5=SuperMap.MD5||{};var l=e.md5=function(t){function e(t,e){return t<<e|t>>>32-e}function o(t,e){var o,l,i,n,r;return i=2147483648&t,n=2147483648&e,r=(1073741823&t)+(1073741823&e),(o=1073741824&t)&(l=1073741824&e)?2147483648^r^i^n:o|l?1073741824&r?3221225472^r^i^n:1073741824^r^i^n:r^i^n}function l(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return t&e|~t&o}(l,i,n),r),s)),a),l)}function i(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return t&o|e&~o}(l,i,n),r),s)),a),l)}function n(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return t^e^o}(l,i,n),r),s)),a),l)}function r(t,l,i,n,r,a,s){return o(e(t=o(t,o(o(function(t,e,o){return e^(t|~o)}(l,i,n),r),s)),a),l)}function a(t){var e,o="",l="";for(e=0;e<=3;e++)o+=(l="0"+(t>>>8*e&255).toString(16)).substr(l.length-2,2);return o}var s,p,u,P,c,y,h,S,f,g=Array();for(g=function(t){for(var e,o=t.length,l=o+8,i=16*((l-l%64)/64+1),n=Array(i-1),r=0,a=0;a<o;)r=a%4*8,n[e=(a-a%4)/4]=n[e]|t.charCodeAt(a)<<r,a++;return r=a%4*8,n[e=(a-a%4)/4]=n[e]|128<<r,n[i-2]=o<<3,n[i-1]=o>>>29,n}(t=function(t){t=t.replace("/\r\n/g","\n");for(var e="",o=0;o<t.length;o++){var l=t.charCodeAt(o);l<128?e+=String.fromCharCode(l):l>127&&l<2048?(e+=String.fromCharCode(l>>6|192),e+=String.fromCharCode(63&l|128)):(e+=String.fromCharCode(l>>12|224),e+=String.fromCharCode(l>>6&63|128),e+=String.fromCharCode(63&l|128))}return e}(t)),y=1732584193,h=4023233417,S=2562383102,f=271733878,s=0;s<g.length;s+=16)p=y,u=h,P=S,c=f,h=r(h=r(h=r(h=r(h=n(h=n(h=n(h=n(h=i(h=i(h=i(h=i(h=l(h=l(h=l(h=l(h,S=l(S,f=l(f,y=l(y,h,S,f,g[s+0],7,3614090360),h,S,g[s+1],12,3905402710),y,h,g[s+2],17,606105819),f,y,g[s+3],22,3250441966),S=l(S,f=l(f,y=l(y,h,S,f,g[s+4],7,4118548399),h,S,g[s+5],12,1200080426),y,h,g[s+6],17,2821735955),f,y,g[s+7],22,4249261313),S=l(S,f=l(f,y=l(y,h,S,f,g[s+8],7,1770035416),h,S,g[s+9],12,2336552879),y,h,g[s+10],17,4294925233),f,y,g[s+11],22,2304563134),S=l(S,f=l(f,y=l(y,h,S,f,g[s+12],7,1804603682),h,S,g[s+13],12,4254626195),y,h,g[s+14],17,2792965006),f,y,g[s+15],22,1236535329),S=i(S,f=i(f,y=i(y,h,S,f,g[s+1],5,4129170786),h,S,g[s+6],9,3225465664),y,h,g[s+11],14,643717713),f,y,g[s+0],20,3921069994),S=i(S,f=i(f,y=i(y,h,S,f,g[s+5],5,3593408605),h,S,g[s+10],9,38016083),y,h,g[s+15],14,3634488961),f,y,g[s+4],20,3889429448),S=i(S,f=i(f,y=i(y,h,S,f,g[s+9],5,568446438),h,S,g[s+14],9,3275163606),y,h,g[s+3],14,4107603335),f,y,g[s+8],20,1163531501),S=i(S,f=i(f,y=i(y,h,S,f,g[s+13],5,2850285829),h,S,g[s+2],9,4243563512),y,h,g[s+7],14,1735328473),f,y,g[s+12],20,2368359562),S=n(S,f=n(f,y=n(y,h,S,f,g[s+5],4,4294588738),h,S,g[s+8],11,2272392833),y,h,g[s+11],16,1839030562),f,y,g[s+14],23,4259657740),S=n(S,f=n(f,y=n(y,h,S,f,g[s+1],4,2763975236),h,S,g[s+4],11,1272893353),y,h,g[s+7],16,4139469664),f,y,g[s+10],23,3200236656),S=n(S,f=n(f,y=n(y,h,S,f,g[s+13],4,681279174),h,S,g[s+0],11,3936430074),y,h,g[s+3],16,3572445317),f,y,g[s+6],23,76029189),S=n(S,f=n(f,y=n(y,h,S,f,g[s+9],4,3654602809),h,S,g[s+12],11,3873151461),y,h,g[s+15],16,530742520),f,y,g[s+2],23,3299628645),S=r(S,f=r(f,y=r(y,h,S,f,g[s+0],6,4096336452),h,S,g[s+7],10,1126891415),y,h,g[s+14],15,2878612391),f,y,g[s+5],21,4237533241),S=r(S,f=r(f,y=r(y,h,S,f,g[s+12],6,1700485571),h,S,g[s+3],10,2399980690),y,h,g[s+10],15,4293915773),f,y,g[s+1],21,2240044497),S=r(S,f=r(f,y=r(y,h,S,f,g[s+8],6,1873313359),h,S,g[s+15],10,4264355552),y,h,g[s+6],15,2734768916),f,y,g[s+13],21,1309151649),S=r(S,f=r(f,y=r(y,h,S,f,g[s+4],6,4149444226),h,S,g[s+11],10,3174756917),y,h,g[s+2],15,718787259),f,y,g[s+9],21,3951481745),y=o(y,p),h=o(h,u),S=o(S,P),f=o(f,c);return(a(y)+a(h)+a(S)+a(f)).toLowerCase()};SuperMap.MD5.md5=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.md5=void 0;var l=o(1);e.md5=l.md5},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=void 0,o(0);e.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory||{};SuperMap.Plot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,o=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol(e,o,t):123===e&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol(e,o,t):999===e&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol(e,o,t):null:SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol(e,o,t)},SuperMap.Plot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(100===t)switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 25601:case 25801:case 25901:case 26500:case 26501:case 26502:case 26503:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:case 39101:case 44300:case 22200:case 27701:return SuperMap.Plot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 25503:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(123===t)switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMap.Plot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMap.Plot.YJAlgoSymbolFactory||SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMap.Plot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}},SuperMap.Plot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?"":SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect=function(t,e){if(100!==t)return!1;switch(e){case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42200:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMap.Plot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMap.Plot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){if((0===t||22===t||421===t)&&void 0!==SuperMap.Plot.BasicAlgoSymbolFactory)return SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol(t,e);if(100===t)switch(e){case 28e3:case 28100:case 28200:case 28201:case 32300:return!0;default:return!1}else{if(123!==t||void 0===SuperMap.Plot.WJAlgoSymbolFactory)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(0),o.scaleValues.push(.185)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var o=0,l=0,i=e.length-1;l<i;l++)o+=SuperMap.Plot.PlottingUtil.distance(e[l],e[l+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*n,p=this.scaleValues[1],u=this.scaleValues[2]*n,P=.3*u,c=u;c<o;c+=u){var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===y.index)return void this.finish();var h=c+P,S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1===S.index)return void this.finish();var f=[],g=[];f.push(y.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[y.index],y.pts);0===p?f.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):f.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),g.push(S.pts);var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);if(0===p?g.push(new SuperMap.Geometry.Point(d.pntLeft.x,d.pntLeft.y)):g.push(new SuperMap.Geometry.Point(d.pntRight.x,d.pntRight.y)),u===c){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;for(var l=0,i=0,n=o.length-1;i<n;i++)l+=SuperMap.Plot.PlottingUtil.distance(o[i],o[i+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,l*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(s.pt,a)/l,u=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var P=0,c=-1,y=[],h=0,S=r.length-1;h<S;h++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[h],r[h+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==P?(P=g,c=h,y=e):g<P&&(P=g,c=h,y=e)}}if(-1==c)return;for(var M=0,d=0,m=c-1;d<m;d++)M+=SuperMap.Plot.PlottingUtil.distance(r[d],r[d+1]);var v=(M+=SuperMap.Plot.PlottingUtil.distance(y,r[c]))/l;v>.7&&(v=.7),this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol315=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(.2),o.scaleValues.push(.2),o.scaleValues.push(.4),o.scaleValues.push(.4),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(1),o.scaleValues.push(1)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol315",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments),this.scaleValues.length<9&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(.2),this.scaleValues.push(.4),this.scaleValues.push(.4),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(1),this.scaleValues.push(1));var l,i=e*this.scaleValues[4],n=e*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],r+n);l=(this.scaleValues[8],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],a));var s,p=e*this.scaleValues[6],u=e*this.scaleValues[7],P=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],r+u);s=(this.scaleValues[9],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],P));var c=[];c.push(new SuperMap.Geometry.Point(l.pntLeft.x,l.pntLeft.y)),c.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),c.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),c.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var y=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);y=SuperMap.Plot.PlottingUtil.clearSamePts(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addScalePoint(l.pntLeft,3),this.addScalePoint(s.pntRight,4)}}},{key:"modifyPoint",value:function(t,o){if(!0===o.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.projectPoint(o,l[0],l[1]);if(t<=2&&(SuperMap.Plot.AlgoSymbol1004.prototype.modifyPoint.apply(this,arguments),function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"modifyPoint",this).call(this,t,o)),3===t){var r=SuperMap.Plot.PlottingUtil.distance(o,n)/i,a=SuperMap.Plot.PlottingUtil.distance(n,l[0])/i;this.scaleValues[4]=r,this.scaleValues[5]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],o)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var s=SuperMap.Plot.PlottingUtil.distance(o,n)/i,p=SuperMap.Plot.PlottingUtil.distance(n,l[1])/i;this.scaleValues[6]=s,this.scaleValues[7]=p,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],o)?this.scaleValues[9]=1:this.scaleValues[9]=0}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol315=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1022=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1022",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),n=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.6*e),r=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.5*e),a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,l[0],r).pntLeft;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[a,n,l[1]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var s=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.4*e),p=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.5*e),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,i[0],p).pntRight;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,s,i[0]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i[1],i[0]]),this.addScalePoint(l[0],0),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(o[0],e)/l;this.scaleValues[0]=i}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1022=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1021=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.25),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1021",o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,o.m_dMaxDis=0,o.m_bIsAnimation=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.components=[],this.m_scalePoints=[],t.length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e);o.LeftArowHead.unshift(o.LeftArowLeftBody[0][o.LeftArowLeftBody[0].length-1]),o.RightArowHead.unshift(o.RightArowLeftBody[o.RightArowLeftBody.length-1]),o.LeftArowLeftBody[0].push(o.LeftArowHead[0]),o.RightArowLeftBody.push(o.RightArowHead[0]),o.shapePts.push(o.shapePts[0]);var l=SuperMap.Plot.PlottingUtil.polylineDistance(o.LeftArowLeftBody[0]),i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*l,o.LeftArowLeftBody[0]),n=[],r=[];if(i.bfind)for(var a=0;a<=i.index;a++)n.push(o.LeftArowLeftBody[0][a]);var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,o.LeftArowLeftBody[0]);if(s.bfind)for(var p=s.index;p<o.LeftArowLeftBody[0].length-1;p++)r.push(o.LeftArowLeftBody[0][p]);var u=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowLeftBody),P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*u,o.RightArowLeftBody),c=[],y=[];if(P.bfind)for(var h=0;h<=P.index;h++)c.push(o.RightArowLeftBody[h]);var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*u,o.RightArowLeftBody);if(S.bfind)for(var f=S.index;f<o.RightArowLeftBody.length-1;f++)y.push(o.RightArowLeftBody[f]);var g=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowRightBody),M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*g,o.RightArowRightBody),d=[],m=[];if(M.bfind)for(var v=0;v<=M.index;v++)d.push(o.RightArowRightBody[v]);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*g,o.RightArowRightBody);if(b.bfind)for(var A=b.index;A<o.RightArowRightBody.length-1;A++)m.push(o.RightArowRightBody[A]);o.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)),this.scalePoints=[];for(var L=0;L<this.m_scalePoints.length;L++)this.m_scalePoints[L].isScalePoint=!0,this.m_scalePoints[L].tag=L,this.scalePoints.push(this.m_scalePoints[L]);this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l,i=SuperMap.Plot.PlottingUtil.operateControlPoints(o),n=new SuperMap.Geometry.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),r=new SuperMap.Geometry.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n,r);if(a.isOnline){var s=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,n),p=SuperMap.Plot.PlottingUtil.distance(n,r);(l=SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)?this.SV1_MinValue:s/p)>this.SV1_MaxValue&&(l=this.SV1_MaxValue)}else l=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,n)<SuperMap.Plot.PlottingUtil.distance(a.projectPoint,r)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(l)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];o=this.m_bIsAnimation&&4===t.length?SuperMap.Plot.PlottingUtil.clonePoints(t):SuperMap.Plot.PlottingUtil.operateControlPoints(t);var l=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),n=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),p=new SuperMap.Geometry.Point(a,s),u=.5*(o[1].x+o[2].x),P=.5*(o[1].y+o[2].y),c=new SuperMap.Geometry.Point(u,P),y=SuperMap.Plot.PlottingUtil.distance(p,c);y<this.MIN_LEN_LeftToRightCenter&&(y=this.MIN_LEN_LeftToRightCenter),p.x=a+i*(a-u)/(y*this.QIANJI_RATE1),p.y=s+i*(s-P)/(y*this.QIANJI_RATE1),c.x=u+n*(u-a)/(y*this.QIANJI_RATE1),c.y=P+n*(P-s)/(y*this.QIANJI_RATE1);var h=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);h.x=a+i*(a-u)/(y*this.QIANJI_RATE2),h.y=s+i*(s-P)/(y*this.QIANJI_RATE2),S.x=u+n*(u-a)/(y*this.QIANJI_RATE2),S.y=P+n*(P-s)/(y*this.QIANJI_RATE2);var f=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),g=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),M=o[3].x-(o[3].x-p.x)*this.SCALE_AT,d=o[3].y-(o[3].y-p.y)*this.SCALE_AT,m=o[2].x-(o[2].x-c.x)*this.SCALE_AT,v=o[2].y-(o[2].y-c.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);A.x=M-(d-o[3].y)*this.SCALE_ATAJ,A.y=d+(M-o[3].x)*this.SCALE_ATAJ,b.x=M+(d-o[3].y)*this.SCALE_ATAJ,b.y=d-(M-o[3].x)*this.SCALE_ATAJ,T.x=m-(v-o[2].y)*this.SCALE_ATAJ,T.y=v+(m-o[2].x)*this.SCALE_ATAJ,L.x=m+(v-o[2].y)*this.SCALE_ATAJ,L.y=v-(m-o[2].x)*this.SCALE_ATAJ;var x=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0);x.x=3*b.x-2*M-(o[3].x-M)*this.SCALE_ATAE,x.y=3*b.y-2*d-(o[3].y-d)*this.SCALE_ATAE,O.x=3*A.x-2*M-(o[3].x-M)*this.SCALE_ATAE,O.y=3*A.y-2*d-(o[3].y-d)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,U.x=3*T.x-2*m-(o[2].x-m)*this.SCALE_ATAE,U.y=3*T.y-2*v-(o[2].y-v)*this.SCALE_ATAE,p.x=a+i*(a-u)/(y*this.QIANJI_RATE4),p.y=s+i*(s-P)/(y*this.QIANJI_RATE4),c.x=u+n*(u-a)/(y*this.QIANJI_RATE4),c.y=P+n*(P-s)/(y*this.QIANJI_RATE4);var R=new SuperMap.Geometry.Point(0,0);R.x=o[0].x+(p.x-o[0].x)*this.SCALE_AW,R.y=o[0].y+(p.y-o[0].y)*this.SCALE_AW;var _=new SuperMap.Geometry.Point(0,0);_.x=o[1].x+(c.x-o[1].x)*this.SCALE_AW,_.y=o[1].y+(c.y-o[1].y)*this.SCALE_AW;var E=new SuperMap.Geometry.Point(0,0);E.x=b.x+(p.x-b.x)*this.SCALE_ATAJctrlSameSide,E.y=b.y+(p.y-b.y)*this.SCALE_ATAJctrlSameSide;var C=new SuperMap.Geometry.Point(0,0);C.x=T.x+(c.x-T.x)*this.SCALE_ATAJctrlSameSide,C.y=T.y+(c.y-T.y)*this.SCALE_ATAJctrlSameSide;var I=new SuperMap.Geometry.Point(0,0);I.x=A.x+(h.x-A.x)*this.SCALE_ATAJctrlDefSide,I.y=A.y+(h.y-A.y)*this.SCALE_ATAJctrlDefSide;var B=new SuperMap.Geometry.Point(0,0);B.x=L.x+(S.x-L.x)*this.SCALE_ATAJctrlDefSide,B.y=L.y+(S.y-L.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=f.x+(g.x-f.x)*l,D.y=f.y+(g.y-f.y)*l,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var G=new SuperMap.Geometry.Point(0,0),V=new SuperMap.Geometry.Point(0,0);G.x=o[0].x+(o[3].x-o[0].x)*l,G.y=o[0].y+(o[3].y-o[0].y)*l,V.x=o[1].x+(o[2].x-o[1].x)*l,V.y=o[1].y+(o[2].y-o[1].y)*l,G.x=G.x+(D.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(D.y-G.y)*this.QIANJI_RATE3,V.x=V.x+(D.x-V.x)*this.QIANJI_RATE3,V.y=V.y+(D.y-V.y)*this.QIANJI_RATE3;var N=[];N.push(o[0].clone()),N.push(R.clone()),N.push(E.clone()),N.push(b.clone()),e.MoveTo(N[0]),e.CurveTo(N[1],N[2],N[3]);var k,Y=[],z=[],j=[],F=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),Y.push(q[0]),k=q[0].length,e.LineTo(x),e.LineTo(o[3]),e.LineTo(O),(N=[]).push(A),N.push(I),N.push(G),N.push(D),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)z.push(q[0][k]);for(k=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)j.push(q[0][k]);for(k=q[0].length,(N=[]).push(V),N.push(B),N.push(L),e.CurveTo(N[0],N[1],N[2]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)F.push(q[0][k]);for(k=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(U),(N=[]).push(T),N.push(C),N.push(_),N.push(r),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)W.push(q[0][k]);for(k=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);k<q[0].length;k++)H.push(q[0][k]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:Y,LeftArowHead:z,LeftArowRightBody:j,ArowMidBody:[],RightArowLeftBody:F,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1021=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1020=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1020",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),l=SuperMap.Plot.PlottingUtil.distance(e,o),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-l*i),r=new SuperMap.Geometry.Point(0,l*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(l*(1-s),-l*a),u=new SuperMap.Geometry.Point(l*(1-s),l*a),P=this.scaleValues[2],c=this.scaleValues[4],y=new SuperMap.Geometry.Point(l*(1-c),-l*P),h=new SuperMap.Geometry.Point(l*(1-c),l*P),S=new SuperMap.Geometry.Point(l,0),f=SuperMap.Plot.PlottingUtil.radian(e,o),g=SuperMap.Plot.PlottingUtil.distance(n,p),M=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,.3*g),d=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,.4*g),m=SuperMap.Plot.PlottingUtil.distance(u,r),v=SuperMap.Plot.PlottingUtil.findPointInLine(u,r,.6*m),b=SuperMap.Plot.PlottingUtil.findPointInLine(u,r,.7*m),A=[];A.push(n),A.push(M),A.push(d),A.push(p),A.push(y),A.push(S),A.push(h),A.push(u),A.push(v),A.push(b),A.push(r);for(var L=[],T=0;T<A.length;T++){var x=SuperMap.Plot.PlottingUtil.coordinateTrans(e,A[T],f*SuperMap.Plot.PlottingUtil.RTOD);L.push(x)}for(var O=[],w=L.length-1;w>=0;--w)O.push(L[w]);var U=SuperMap.Plot.PlottingUtil.clonePoints(O);U.push(U[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,U,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[0],O[1]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[2],O[3]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[3],O[4],O[5],O[6],O[7]],{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[7],O[8]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[9],O[10]]),this.scalePoints=[];var R=L[0].clone();R.isScalePoint=!0,R.tag=0,this.scalePoints.push(R);var _=L[3].clone();_.isScalePoint=!0,_.tag=1,this.scalePoints.push(_);var E=L[4].clone();E.isScalePoint=!0,E.tag=2,this.scalePoints.push(E),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),n=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,i)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),p=SuperMap.Plot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(s,n)/l;this.scaleValues[3]=u}else if(2==t){var P=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),c=SuperMap.Plot.PlottingUtil.distance(P,r)/l;this.scaleValues[2]=c;var y=SuperMap.Plot.PlottingUtil.distance(P,n)/l;this.scaleValues[4]=y}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1020=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1019=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1019",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),l=SuperMap.Plot.PlottingUtil.distance(e,o),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-l*i),r=new SuperMap.Geometry.Point(0,l*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(l*(1-s),-l*a),u=new SuperMap.Geometry.Point(l*(1-s),l*a),P=this.scaleValues[2],c=this.scaleValues[4],y=new SuperMap.Geometry.Point(l*(1-c),-l*P),h=new SuperMap.Geometry.Point(l*(1-c),l*P),S=new SuperMap.Geometry.Point(l,0),f=SuperMap.Plot.PlottingUtil.radian(e,o),g=[];g.push(n),g.push(p),g.push(y),g.push(S),g.push(h),g.push(u),g.push(r),g.push(n);for(var M=[],d=0;d<g.length;d++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[d],f*SuperMap.Plot.PlottingUtil.RTOD);M.push(m)}for(var v=[],b=M.length-1;b>=0;--b)v.push(M[b]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[2],v[1],v[7],v[6]],{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[6],v[5],v[4],v[3],v[2]],{lineTypeLimit:!0,surroundLineFlag:!1}),this.scalePoints=[];var A=M[0].clone();A.isScalePoint=!0,A.tag=0,this.scalePoints.push(A);var L=M[1].clone();L.isScalePoint=!0,L.tag=1,this.scalePoints.push(L);var T=M[2].clone();T.isScalePoint=!0,T.tag=2,this.scalePoints.push(T),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),n=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,i)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),p=SuperMap.Plot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(s,n)/l;this.scaleValues[3]=u}else if(2==t){var P=SuperMap.Plot.PlottingUtil.projectPoint(r,i,n),c=SuperMap.Plot.PlottingUtil.distance(P,r)/l;this.scaleValues[2]=c;var y=SuperMap.Plot.PlottingUtil.distance(P,n)/l;this.scaleValues[4]=y}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1019=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1018=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1018",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e),l=SuperMap.Plot.PlottingUtil.clonePoints(o.shapePts);(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).push(l[0]);var i=SuperMap.Plot.PlottingUtil.clearSamePts(o.leftBodyPts),n=SuperMap.Plot.PlottingUtil.clearSamePts(o.rightBodyPts),r=SuperMap.Plot.PlottingUtil.clearSamePts(o.arrowHeadPts);if(0!=o.shapePts.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(i),s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*a,i),p=[],u=[],P=[];if(s.bfind)for(var c=0;c<=s.index;c++)p.push(i[c]);var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.45*a,i),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.8*a,i);if(y.bfind&&h.bfind)for(var S=y.index;S<=h.index;S++)u.push(i[S]);var f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.85*a,i);if(f.bfind)for(var g=f.index;g<i.length;g++)P.push(i[g]);var M=SuperMap.Plot.PlottingUtil.polylineDistance(n),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.15*M,n),m=[],v=[],b=[];if(d.bfind)for(var A=0;A<=d.index;A++)m.push(n[A]);var L=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2*M,n),T=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.55*M,n);if(L.bfind&&T.bfind)for(var x=L.index;x<=T.index;x++)v.push(n[x]);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*M,n);if(O.bfind)for(var w=O.index;w<n.length;w++)b.push(n[w]);var U=SuperMap.Plot.PlottingUtil.clonePoints(r);U.splice(0,0,i[i.length-1]),U.push(n[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U,{surroundLineFlag:!1,lineTypeLimit:!0});var R=this.updateScalePoints(e);if(this.scalePoints=[],3!=R.length)R=[];else for(var _=0;_<R.length;_++)R[_].isScalePoint=!0,R[_].tag=_,this.scalePoints.push(R[_]);this.finish()}else this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var l=o.length;if(l<=2)return;var i,n,r,a,s=this.operateCtrlPts(o);l=s.length,l--;var p=this.calcScaleValueCount(o.length);if(this.scaleValues.length<p){var u=this.calcDefaultScaleValues(l);i=u[0],n=u[1],r=u[2],a=u[3]}else i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var P=SuperMap.Plot.PlottingUtil.polylineDistance(o),c=[],y=0;y<this.scalePoints.length;y++)c.push(this.scalePoints[y].clone());if(0==c.length)return;c[t]=e.clone();var h,S,f=l-1;h=l<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[f-1].clone();var g,M,d,m,v,b,A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h,s[f],s[f+1],L,T),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[l],s[l-1],T,A),S=A.clone();var x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[2]);g=x.dLen1,x.dLen2,0==g&&(g=.1),M=g,i=(g/=a+1)/P,1==t?(m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,a=(m-g)/g):0==t?(g=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[0])).dLen1,n=(d=x.dLen2)/g,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(g=.5*b),m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,(a=(M-g)/g)<.1&&(r=v/(g=M/(1+(a=.1))),n=d/g),i=g/P):2==t&&(i=g/P),d=g*n,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(d=(g=.5*b)*n,i=g/P),this.scaleValues[0]=i,this.scaleValues[1]=n,this.scaleValues[2]=r,this.scaleValues[3]=a}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,p=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var u=[];u.push(s[s.length-1]),u.push(p[p.length-1]);var P=[];P.push(this.scaleValues[2]),P.push(this.scaleValues[3]),P.push(0),P.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(n,u,P,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<s.length;y++)e.push(s[y]),o.push(s[y]);for(var h=0;h<c.length;h++)e.push(c[h]),i.push(c[h]);for(var S=p.length-1;S>=0;S--)e.push(p[S]),l.push(p[S])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);var a=this.genArrowBodyPts(l,i,n),s=a.ArrowBodyCenterPts,p=this.genAtPts(e,s,n,a.ArrowTouLen),u=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(p[2].x,p[2].y)),o.push(new SuperMap.Geometry.Point(u.x,u.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var l,i,n,r=[],a=[],s=[],p=[],u=[],P=[],c=e.length;if(c--,o.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);i=y[0],n=y[1]}else i=o[0],n=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(h[0].x+h[1].x)/2,f=(h[0].y+h[1].y)/2,g=Math.abs(S-h[2].x),M=Math.abs(f-h[2].y),d=0;if(g>0&&M>0){var m=1/(S-h[2].x),v=-1/(f-h[2].y),b=1*h[2].y/(f-h[2].y)-1*h[2].x/(S-h[2].x);d=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else M<=1e-4?d=Math.abs(f-h[1].y):g<=1e-4&&(d=Math.abs(S-h[1].x));var A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,h[2],new SuperMap.Geometry.Point(S,f)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);L?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var T=Math.sqrt((A.pntLeft.x-A.pntRight.x)*(A.pntLeft.x-A.pntRight.x)+(A.pntLeft.y-A.pntRight.y)*(A.pntLeft.y-A.pntRight.y))*this.sv_AtWidthDivAwWidth,x=(l=T*this.sv_AtLenDivAtWidth)*n;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(x=(l=t*i)*n);var O,w,U=SuperMap.Plot.PlottingUtil.distance(h[c],h[c-1]),R=2*l;U<R&&(x=(l=U/2)*n),h.push(h[c].clone()),O=0,w=0;var _=0,E=[];for(_=2;_<=c;_++)O+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]);for(O-=l,_=2;_<=c-1;_++)w+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]),E[_]=x+(T-x)*Math.pow((O-w)/O,this.sv_AtScaleParameter);E[c]=x;var C,I,B=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(_=2;_<=c-1;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[_-1],h[_],h[_+1],D,G),_==c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[c],h[c-1],G,B),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[_],D,h[_]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,D,C.pntRight))?(r[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(r[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(h[c].x-B.x)*(h[c].x-B.x)+1*(h[c].y-B.y)*(h[c].y-B.y))>0&&(h[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(l,h[c],B)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,h[c+1],h[c]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[c],h[c+1],C.pntLeft))?(a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),r[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),_=2;_<c;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[_-1],r[_],r[_+1],D,G),s[_]=new SuperMap.Geometry.Point(D.x,D.y),p[_]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[_-1],a[_],a[_+1],D,G),u[_]=new SuperMap.Geometry.Point(D.x,D.y),P[_]=new SuperMap.Geometry.Point(G.x,G.y),2==_&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],B),p[_]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],u[2],B),P[_]=new SuperMap.Geometry.Point(B.x,B.y)),_==c-1&&(R=(U=SuperMap.Plot.PlottingUtil.distance(r[c],r[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=r[c].x-h[c].x,I.y+=r[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,r[c],I),s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),R=(U=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=a[c].x-h[c].x,I.y+=a[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,a[c],I),u[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:p,RightBodyPtsLeftCtrlPts:u,RightBodyPtsRightCtrlPts:P,ArrowTouLen:l}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,l){var i=o[2],n=[],r=l*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1018=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1017=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.3)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1017",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),l=o.arrowTouLen,i=o.leftBodyPts,n=o.rightBodyPts,r=[];r.push(i[i.length-1]),r.push(n[n.length-1]);var a=[];a.push(this.scaleValues[3]),a.push(this.scaleValues[4]),a.push(this.scaleValues[0]),a.push(this.scaleValues[1]);var s=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(e,r,a,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),p=[];p=(p=p.concat(i)).concat(s);for(var u=n.length-1;u>=0;u--)p.push(n[u]);p.push(p[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var P=SuperMap.Plot.PlottingUtil.clonePoints(i),c=[],y=n.length-1;y>=0;y--)c.push(n[y]);c=c.concat(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var h=SuperMap.Plot.PlottingUtil.clonePoints(s);h.push(n[n.length-1]),h.splice(0,0,i[i.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0});var S=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),f=new SuperMap.Geometry.Point(S.x,S.y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var g=new SuperMap.Geometry.Point(i[i.length-1].x,i[i.length-1].y);g.isScalePoint=!0,g.tag=1,this.scalePoints.push(g);var M=new SuperMap.Geometry.Point(s[0].x,s[0].y);M.isScalePoint=!0,M.tag=2,this.scalePoints.push(M),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);r=SuperMap.Plot.PlottingUtil.clearSamePts(r);var a=SuperMap.Plot.PlottingUtil.polylineDistance(r),s=a*n;if(0==t){var p=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[r.length-2],r[r.length-1]),u=p.projectPoint;if(p.isOnline){var P=SuperMap.Plot.PlottingUtil.distance(u,r[r.length-1]);this.scaleValues[0]=P/a}}else if(1==t){var c=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,y=SuperMap.Plot.PlottingUtil.distance(c,o);this.scaleValues[1]=y/s}else if(2==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[1],i).projectPoint,S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h,o,r[1]),f=S.projectPoint,g=SuperMap.Plot.PlottingUtil.distance(f,o);!1===S.isOnline&&(this.scaleValues[4]=g/s)}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1017=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1016=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.arrowHeadType=t.arrowHeadType?t.arrowHeadType:0,o.arrowBodyType=t.arrowBodyType?t.arrowBodyType:0,o.arrowTailType=t.arrowTailType?t.arrowTailType:0,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1016",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fillStyle:0,lineTypeLimit:!0};this.scaleValues[0]=this.getSubSymbolScaleValue();var o,l=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=2*Math.sqrt(l*l/3)/1.4,n=Math.sqrt(l*l/3),r=!1;this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE||this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,r)):o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,this.arrowBodyType,r);var a=[];this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?(a.push(t[t.length-1]),a.push(t[t.length-2])):r?(a.push(t[t.length-1]),a.push(o[o.length-1])):(a.push(o[o.length-1]),a.push(o[o.length-2]));var s,p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(a,l,this.arrowHeadType);if(o.length>1)if(this.arrowBodyType!==SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);else for(var u=0,P=o.length-1;u<P;u+=2){var c=SuperMap.Plot.PlottingUtil.distance(o[u+1],o[u]),y=180*SuperMap.Plot.PlottingUtil.radian(o[u+1],o[u])/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(o[u+1],.3*c,.3*c,y+30),S=SuperMap.Plot.PlottingUtil.circlePoint(o[u+1],.3*c,.3*c,y+330),f=SuperMap.Plot.PlottingUtil.circlePoint(o[u],.3*c,.3*c,y+30),g=SuperMap.Plot.PlottingUtil.circlePoint(o[u],.3*c,.3*c,y+330),M=[];M.push(h,o[u+1],S,g,o[u],f),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,e)}s=this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER?SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([o[0],o[1]],l,this.arrowTailType):SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([t[0],t[1]],l,this.arrowTailType);var d=SuperMap.Plot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(d=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL),p.length>1&&this.addCell(d,p,e),s.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}}]),e}();SuperMap.Plot.AlgoSymbol1016=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1015=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1015",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1009),e}();SuperMap.Plot.AlgoSymbol1015=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1014=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1014",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1008),e}();SuperMap.Plot.AlgoSymbol1014=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1013=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1013",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1007),e}();SuperMap.Plot.AlgoSymbol1013=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=e.AlgoSymbol1012=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1012",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1005),e}();SuperMap.Plot.AlgoSymbol1012=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1011=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_arrowTailWidth=.05,5!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen),o.scaleValues.push(o.sv_arrowTailWidth)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1011",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<2)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!==e){var o=e*this.scaleValues[4],l=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);void 0!==t[0].z&&(l.pntLeft.z=t[0].z,l.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(l.pntLeft),this.controlPoints.push(l.pntRight);for(var i=1;i<t.length;i++)this.controlPoints.push(t[i].clone());for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);this.scaleValues=[];for(var a=0;a<n.length-1;a++)this.scaleValues.push(n[a]);SuperMap.Plot.AlgoSymbol1004.prototype.calculateParts.apply(this,arguments);var s=l.pntRight.clone();s.isScalePoint=!0,s.tag=3,this.addScalePoint(s),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var p=0;p<n.length;p++)this.scaleValues.push(n[p])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o.length<2)return;this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var l,i=o[0].clone(),n=SuperMap.Plot.PlottingUtil.polylineDistance(o),r=n*this.scaleValues[4],a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,o[1],o[0]);(o=[]).push(a.pntLeft),o.push(a.pntRight);for(var s=1;s<this.controlPoints.length;s++)o.push(this.controlPoints[s].clone());var p,u,P,c,y,h=o.length,S=this.operateCtrlPts(o);h=S.length,h--;var f=this.calcScaleValueCount(o.length);if(f++,this.scaleValues.length<f){var g=this.calcDefaultScaleValues(h);p=g[0],u=g[1],P=g[2],c=g[3],y=this.sv_arrowTailWidth}else p=this.scaleValues[0],u=this.scaleValues[1],P=this.scaleValues[2],c=this.scaleValues[3],y=this.scaleValues[4];l=SuperMap.Plot.PlottingUtil.polylineDistance(o);for(var M=[],d=0;d<this.scalePoints.length;d++)M.push(this.scalePoints[d].clone());if(0===M.length)return;M[t]=e.clone();var m,v,b=h-1;m=h<=3?new SuperMap.Geometry.Point((S[0].x+S[1].x)/2,(S[0].y+S[1].y)/2):S[b-1].clone();var A,L,T,x,O,w,U=new SuperMap.Geometry.Point(0,0),R=new SuperMap.Geometry.Point(0,0),_=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,m,S[b],S[b+1],R,_),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,S[h],S[h-1],_,U),v=U.clone();var E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[2]);if(A=E.dLen1,E.dLen2,0===A&&(A=.1),L=A,p=(A/=c+1)/l,1===t)x=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[1])).dLen1,P=(O=E.dLen2)/A,c=(x-A)/A;else if(0===t)A=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[0])).dLen1,u=(T=E.dLen2)/A,(w=SuperMap.Plot.PlottingUtil.distance(S[h],S[h-1]))<2*A&&(A=.5*w),x=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[h],v,M[1])).dLen1,P=(O=E.dLen2)/A,(c=(L-A)/A)<.1&&(P=O/(A=L/(1+(c=.1))),u=T/A),p=A/l;else if(2===t)p=A/l;else{y=SuperMap.Plot.PlottingUtil.distance(e,i)/n}T=A*u,(w=SuperMap.Plot.PlottingUtil.distance(S[h],S[h-1]))<2*A&&(T=(A=.5*w)*u,p=A/l),this.scaleValues[0]=p,this.scaleValues[1]=u,this.scaleValues[2]=P,this.scaleValues[3]=c,this.scaleValues[4]=y}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,p=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var u=[];u.push(s[s.length-1]),u.push(p[p.length-1]);var P=[];P.push(this.scaleValues[2]),P.push(this.scaleValues[3]),P.push(0),P.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(n,u,P,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<s.length;y++)e.push(s[y]),o.push(s[y]);for(var h=0;h<c.length;h++)e.push(c[h]),i.push(c[h]);for(var S=p.length-1;S>=0;S--)e.push(p[S]),l.push(p[S])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);var a=this.genArrowBodyPts(l,i,n),s=a.ArrowBodyCenterPts,p=this.genAtPts(e,s,n,a.ArrowTouLen),u=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(p[2].x,p[2].y)),o.push(new SuperMap.Geometry.Point(u.x,u.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var l,i,n,r=[],a=[],s=[],p=[],u=[],P=[],c=e.length;if(c--,o.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);i=y[0],n=y[1]}else i=o[0],n=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(h[0].x+h[1].x)/2,f=(h[0].y+h[1].y)/2,g=Math.abs(S-h[2].x),M=Math.abs(f-h[2].y),d=0;if(g>0&&M>0){var m=1/(S-h[2].x),v=-1/(f-h[2].y),b=1*h[2].y/(f-h[2].y)-1*h[2].x/(S-h[2].x);d=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else M<=1e-4?d=Math.abs(f-h[1].y):g<=1e-4&&(d=Math.abs(S-h[1].x));var A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,h[2],new SuperMap.Geometry.Point(S,f)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);L?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var T=Math.sqrt((A.pntLeft.x-A.pntRight.x)*(A.pntLeft.x-A.pntRight.x)+(A.pntLeft.y-A.pntRight.y)*(A.pntLeft.y-A.pntRight.y))*this.sv_AtWidthDivAwWidth,x=(l=T*this.sv_AtLenDivAtWidth)*n;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(x=(l=t*i)*n);var O,w,U=SuperMap.Plot.PlottingUtil.distance(h[c],h[c-1]),R=2*l;U<R&&(x=(l=U/2)*n),h.push(h[c].clone()),O=0,w=0;var _=0,E=[];for(_=2;_<=c;_++)O+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]);for(O-=l,_=2;_<=c-1;_++)w+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]),E[_]=x+(T-x)*Math.pow((O-w)/O,this.sv_AtScaleParameter);E[c]=x;var C,I,B=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(_=2;_<=c-1;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[_-1],h[_],h[_+1],D,G),_===c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[c],h[c-1],G,B),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[_],D,h[_]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,D,C.pntRight))?(r[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(r[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(h[c].x-B.x)*(h[c].x-B.x)+1*(h[c].y-B.y)*(h[c].y-B.y))>0&&(h[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(l,h[c],B)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,h[c+1],h[c]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[c],h[c+1],C.pntLeft))?(a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),r[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),_=2;_<c;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[_-1],r[_],r[_+1],D,G),s[_]=new SuperMap.Geometry.Point(D.x,D.y),p[_]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[_-1],a[_],a[_+1],D,G),u[_]=new SuperMap.Geometry.Point(D.x,D.y),P[_]=new SuperMap.Geometry.Point(G.x,G.y),2===_&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],B),p[_]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],u[2],B),P[_]=new SuperMap.Geometry.Point(B.x,B.y)),_===c-1&&(R=(U=SuperMap.Plot.PlottingUtil.distance(r[c],r[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=r[c].x-h[c].x,I.y+=r[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,r[c],I),s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),R=(U=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=a[c].x-h[c].x,I.y+=a[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,a[c],I),u[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:p,RightBodyPtsLeftCtrlPts:u,RightBodyPtsRightCtrlPts:P,ArrowTouLen:l}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,l){var i=o[2],n=[],r=l*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1011=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1010=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(.148),o.scaleValues.push(.4),o.scaleValues.push(.312),o.scaleValues.push(.2)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1010",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);if(SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts),0!==e.shapePts.length){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1}),this.scalePoints=[];for(var o=0;o<e.m_scalePoints.length;o++)this.addScalePoint(e.m_scalePoints[o])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.scaleValues.length<4&&(this.scaleValues.push(0),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2));var l,i,n,r,a=o.length;if(a<=2)return;this.scaleValues.length<4?(l=0,i=.148,n=.4,r=.312):(l=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=this.scaleValues[3]);var s=SuperMap.Plot.PlottingUtil.polylineDistance(o),p=this.operateCtrlPts(o);a=p.length,a--;for(var u=[],P=0;P<this.scalePoints.length;P++)u.push(this.scalePoints[P].clone());if(0===u.length)return;if(u[t]=e.clone(),3===t){var c=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(o,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),y=new SuperMap.Geometry.Point(.5*(c.leftBodyPts[0].x+c.rightBodyPts[0].x),.5*(c.leftBodyPts[0].y+c.rightBodyPts[0].y)),h=SuperMap.Plot.PlottingUtil.distance(c.leftBodyPts[0],c.rightBodyPts[0]);this.scaleValues[4]=SuperMap.Plot.PlottingUtil.distance(y,e)/h}else{var S,f,g=a-1;S=a<=3?new SuperMap.Geometry.Point((p[0].x+p[1].x)/2,(p[0].y+p[1].y)/2):p[g-1].clone();var M,d,m,v,b,A,L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,S,p[g],p[g+1],T,x),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,p[a],p[a-1],x,L),f=L.clone();var O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[2]);M=O.dLen1,O.dLen2,0===M&&(M=.1),d=M,l=(M/=r+1)/s,1===t?(v=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[1])).dLen1,n=(b=O.dLen2)/M,r=(v-M)/M):0===t?(M=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[0])).dLen1,i=(m=O.dLen2)/M,(A=SuperMap.Plot.PlottingUtil.distance(p[a],p[a-1]))<2*M&&(M=.5*A),v=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(p[a],f,u[1])).dLen1,n=(b=O.dLen2)/M,(r=(d-M)/M)<.1&&(n=b/(M=d/(1+(r=.1))),i=m/M),l=M/s):2===t&&(l=M/s),m=M*i,(A=SuperMap.Plot.PlottingUtil.distance(p[a],p[a-1]))<2*M&&(m=(M=.5*A)*i,l=M/s),this.scaleValues[0]=l,this.scaleValues[1]=i,this.scaleValues[2]=n,this.scaleValues[3]=r}}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=[],r=[],a=SuperMap.Plot.PlottingUtil.clonePoints(t),s=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(a,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),p=s.arrowTouLen,u=s.leftBodyPts,P=s.rightBodyPts;if(a=s.OpectrlPoints,!SuperMap.Plot.PlottingUtil.equalFuzzy(p,0)){var c=[];c.push(u[u.length-1]),c.push(P[P.length-1]);var y=[];y.push(this.scaleValues[2]),y.push(this.scaleValues[3]),y.push(0),y.push(0);var h=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(a,c,y,p,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),S=[];S.push(u[0]),S.push(P[0]);for(var f,g=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts(t,S,this.scaleValues[4],SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY),M=0;M<u.length;M++)e.push(u[M]),o.push(u[M]);for(var d=0;d<h.length;d++)e.push(h[d]),i.push(h[d]);for(var m=P.length-1;m>=0;m--)e.push(P[m]),l.push(P[m]);for(var v=1;v<g.length;v++)e.push(g[v]),n.push(g[v]);var b=a.length;b-=2;var A=p*this.scaleValues[3];f=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(A,a[b],a[b+1]);var L=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y);L.isScalePoint=!0,L.tag=0,r.push(L),(L=new SuperMap.Geometry.Point(i[0].x,i[0].y)).isScalePoint=!0,L.tag=1,r.push(L),(L=new SuperMap.Geometry.Point(f.x,f.y)).isScalePoint=!0,L.tag=2,r.push(L),(L=new SuperMap.Geometry.Point(g[1].x,g[1].y)).isScalePoint=!0,L.tag=3,r.push(L)}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i,arrowTailPts:n,m_scalePoints:r}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}}]),e}();SuperMap.Plot.AlgoSymbol1010=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1009=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1009",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!1),i=[];i.push(l[l.length-1]),i.push(l[l.length-2]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE),r=[];r.push(l[0]),r.push(l[1]);var a=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine(r,o,SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL);if(e){for(var s=t.length,p=[],u=[],P=[],c=0;c<s;++c)p.push({x:t[c].x,y:t[c].y,z:t[c].z});var y,h={x:t[s-1].x,y:t[s-1].y,z:t[s-1].z},S={x:t[s-2].x,y:t[s-2].y,z:t[s-2].z};y=this.ComputeZValue(l[s-1],h,S),p.push({x:l[s-1].x,y:l[s-1].y,z:y});for(var f=0;f<n.length;++f)y=this.ComputeZValue(n[f],h,S),u.push({x:n[f].x,y:n[f].y,z:y});for(var g={x:t[1].x,y:t[1].y,z:t[1].z},M={x:t[0].x,y:t[0].y,z:t[0].z},d=0;d<a.length;++d)y=this.ComputeZValue(a[d],g,M),P.push({x:a[d].x,y:a[d].y,z:y});this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),0!==P.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),0!==a.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a)}}}}]),e}();SuperMap.Plot.AlgoSymbol1009=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1008=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1008",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=Math.sqrt(e*e/3),l=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!0),i=[];i.push(t[t.length-1]),i.push(l[l.length-1]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL);l.push(t[t.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l);n.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fillLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.AlgoSymbol1008=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1007=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1007",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!0),i=[];i.push(t[t.length-1]),i.push(l[l.length-1]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID);if(e){for(var r=t.length,a=[],s=[],p=0;p<r;++p)a.push({x:l[p].x,y:l[p].y,z:t[p].z});var u={x:t[r-1].x,y:t[r-1].y,z:t[r-1].z},P={x:t[r-2].x,y:t[r-2].y,z:t[r-2].z},c=this.ComputeZValue(l[r-1],u,P);a[r-1].z=c;for(var y=0;y<n.length;++y){var h=this.ComputeZValue(n[y],u,P);s.push({x:n[y].x,y:n[y].y,z:h})}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);s.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l);n.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}}}]),e}();SuperMap.Plot.AlgoSymbol1007=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1006=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,0===o.scaleValues.length&&o.scaleValues.push(o.SV1_Default),o.m_dMaxDis=0,o.m_bIsAnimation=!1,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1006",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,l=!1;void 0!==e[0].z&&(l=!0);var i=this.arrowMeshs(t);if(l){for(var n=[],r=0;r<o;r++)n.push(e[r]);var a=i.LeftArowLeftBody,s=i.LeftArowHead,p=i.LeftArowRightBody,u=i.RightArowLeftBody,P=i.RightArowHead,c=i.RightArowRightBody;if(0==a.length)return!1;var y=[],h=[],S=[];if(3==n.length)a[0].x==n[0].x&&a[0].y==n[0].y?(h.push(n[0]),h.push(n[2]),S.push(n[1]),S.push(n[2])):(h.push(n[1]),h.push(n[2]),S.push(n[0]),S.push(n[2]));else{if(4!=n.length)return!1;a[0].x==n[0].x&&a[0].y==n[0].y?(h.push(n[0]),S.push(n[1])):(h.push(n[1]),S.push(n[0])),s[1].x==n[2].x&&s[1].y==n[2].y?(h.push(n[2]),S.push(n[3])):(h.push(n[3]),S.push(n[2]))}var f=new SuperMap.Geometry.Point;f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(a[a.length-1],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var g=this.ComputeZValue(f,h[1],h[0]),M=[];this.ComputeHeight(a,M,h[0].z,g),y=y.concat(M);for(var d=0;d<s.length;d++){f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(s[d],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var m=this.ComputeZValue(f,h[1],h[0]);y.push({x:s[d].x,y:s[d].y,z:m})}f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[0],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint,this.ComputeZValue(f,h[1],h[0]),f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[p.length-1],{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}).projectPoint;var v=this.ComputeZValue(f,h[1],h[0]);f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[0],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var b=(this.ComputeZValue(f,S[1],S[0])+v)/2,A=[];this.ComputeHeight(p,A,g,b),y=y.concat(A),f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[u.length-1],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var L=this.ComputeZValue(f,S[1],S[0]),T=[];this.ComputeHeight(u,T,b,L),y=y.concat(T);for(var x=0;x<P.length;x++){f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(P[x],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var O=this.ComputeZValue(f,S[1],S[0]);y.push({x:P[x].x,y:P[x].y,z:O})}f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(c[0],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var w=this.ComputeZValue(f,S[1],S[0]),U=[];this.ComputeHeight(c,U,w,S[0].z),(y=y.concat(U)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{surroundLineFlag:!1}),this.m_scalePoints.length>0&&(this.m_scalePoints[0]={x:this.m_scalePoints[0].x,y:this.m_scalePoints[0].y,z:b});for(var R=0;R<this.m_scalePoints.length;R++)this.m_scalePoints[R].isScalePoint=!0,this.m_scalePoints[R].tag=R,this.addScalePoint(this.m_scalePoints[R]);return!0}var _=i.shapePts;_.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,{surroundLineFlag:!1})),this.scalePoints=[];for(var E=0;E<this.m_scalePoints.length;E++)this.m_scalePoints[E].isScalePoint=!0,this.m_scalePoints[E].tag=E,this.addScalePoint(this.m_scalePoints[E])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o,l=SuperMap.Plot.PlottingUtil.operateControlPoints(this.controlPoints),i=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),n=new SuperMap.Geometry.Point((l[2].x+l[3].x)/2,(l[2].y+l[3].y)/2),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,i,n);if(r.isOnline){var a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,i),s=SuperMap.Plot.PlottingUtil.distance(i,n);(o=SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)?this.SV1_MinValue:a/s)>this.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,i)<SuperMap.Plot.PlottingUtil.distance(r.projectPoint,n)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(o)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];this.m_bIsAnimation&&4==t.length?o=SuperMap.Plot.PlottingUtil.clonePoints(t):(o=SuperMap.Plot.PlottingUtil.operateControlPoints(t),void 0!==t[0].z&&(o[o.length-1].z=o[o.length-2].z));var l=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),n=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),p=new SuperMap.Geometry.Point(a,s),u=.5*(o[1].x+o[2].x),P=.5*(o[1].y+o[2].y),c=new SuperMap.Geometry.Point(u,P),y=SuperMap.Plot.PlottingUtil.distance(p,c);y<this.MIN_LEN_LeftToRightCenter&&(y=this.MIN_LEN_LeftToRightCenter),p.x=a+i*(a-u)/(y*this.QIANJI_RATE1),p.y=s+i*(s-P)/(y*this.QIANJI_RATE1),c.x=u+n*(u-a)/(y*this.QIANJI_RATE1),c.y=P+n*(P-s)/(y*this.QIANJI_RATE1);var h=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);h.x=a+i*(a-u)/(y*this.QIANJI_RATE2),h.y=s+i*(s-P)/(y*this.QIANJI_RATE2),S.x=u+n*(u-a)/(y*this.QIANJI_RATE2),S.y=P+n*(P-s)/(y*this.QIANJI_RATE2);var f=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),g=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),M=o[3].x-(o[3].x-p.x)*this.SCALE_AT,d=o[3].y-(o[3].y-p.y)*this.SCALE_AT,m=o[2].x-(o[2].x-c.x)*this.SCALE_AT,v=o[2].y-(o[2].y-c.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);A.x=M-(d-o[3].y)*this.SCALE_ATAJ,A.y=d+(M-o[3].x)*this.SCALE_ATAJ,b.x=M+(d-o[3].y)*this.SCALE_ATAJ,b.y=d-(M-o[3].x)*this.SCALE_ATAJ,T.x=m-(v-o[2].y)*this.SCALE_ATAJ,T.y=v+(m-o[2].x)*this.SCALE_ATAJ,L.x=m+(v-o[2].y)*this.SCALE_ATAJ,L.y=v-(m-o[2].x)*this.SCALE_ATAJ;var x=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0);x.x=3*b.x-2*M-(o[3].x-M)*this.SCALE_ATAE,x.y=3*b.y-2*d-(o[3].y-d)*this.SCALE_ATAE,O.x=3*A.x-2*M-(o[3].x-M)*this.SCALE_ATAE,O.y=3*A.y-2*d-(o[3].y-d)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,U.x=3*T.x-2*m-(o[2].x-m)*this.SCALE_ATAE,U.y=3*T.y-2*v-(o[2].y-v)*this.SCALE_ATAE,p.x=a+i*(a-u)/(y*this.QIANJI_RATE4),p.y=s+i*(s-P)/(y*this.QIANJI_RATE4),c.x=u+n*(u-a)/(y*this.QIANJI_RATE4),c.y=P+n*(P-s)/(y*this.QIANJI_RATE4);var R=new SuperMap.Geometry.Point(0,0);R.x=o[0].x+(p.x-o[0].x)*this.SCALE_AW,R.y=o[0].y+(p.y-o[0].y)*this.SCALE_AW;var _=new SuperMap.Geometry.Point(0,0);_.x=o[1].x+(c.x-o[1].x)*this.SCALE_AW,_.y=o[1].y+(c.y-o[1].y)*this.SCALE_AW;var E=new SuperMap.Geometry.Point(0,0);E.x=b.x+(p.x-b.x)*this.SCALE_ATAJctrlSameSide,E.y=b.y+(p.y-b.y)*this.SCALE_ATAJctrlSameSide;var C=new SuperMap.Geometry.Point(0,0);C.x=T.x+(c.x-T.x)*this.SCALE_ATAJctrlSameSide,C.y=T.y+(c.y-T.y)*this.SCALE_ATAJctrlSameSide;var I=new SuperMap.Geometry.Point(0,0);I.x=A.x+(h.x-A.x)*this.SCALE_ATAJctrlDefSide,I.y=A.y+(h.y-A.y)*this.SCALE_ATAJctrlDefSide;var B=new SuperMap.Geometry.Point(0,0);B.x=L.x+(S.x-L.x)*this.SCALE_ATAJctrlDefSide,B.y=L.y+(S.y-L.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=f.x+(g.x-f.x)*l,D.y=f.y+(g.y-f.y)*l,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var G=new SuperMap.Geometry.Point(0,0),V=new SuperMap.Geometry.Point(0,0);G.x=o[0].x+(o[3].x-o[0].x)*l,G.y=o[0].y+(o[3].y-o[0].y)*l,V.x=o[1].x+(o[2].x-o[1].x)*l,V.y=o[1].y+(o[2].y-o[1].y)*l,G.x=G.x+(D.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(D.y-G.y)*this.QIANJI_RATE3,V.x=V.x+(D.x-V.x)*this.QIANJI_RATE3,V.y=V.y+(D.y-V.y)*this.QIANJI_RATE3;var N=[];N.push(o[0].clone()),N.push(R.clone()),N.push(E.clone()),N.push(b.clone()),e.MoveTo(N[0]),e.CurveTo(N[1],N[2],N[3]);var k,Y,z=[],j=[],F=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),k=q[0],Y=q[0].length,e.LineTo(x),e.LineTo(o[3]),e.LineTo(O),(N=[]).push(A),N.push(I),N.push(G),N.push(D),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)z.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)j.push(q[0][Y]);for(Y=q[0].length,(N=[]).push(V),N.push(B),N.push(L),e.CurveTo(N[0],N[1],N[2]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)F.push(q[0][Y]);for(Y=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(U),(N=[]).push(T),N.push(C),N.push(_),N.push(r),e.LineTo(N[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)W.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(N[1],N[2],N[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)H.push(q[0][Y]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:k,LeftArowHead:z,LeftArowRightBody:j,RightArowLeftBody:F,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1006=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1005=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1005",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,e,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!1),l=[];l.push(o[o.length-1]),l.push(o[o.length-2]);var i=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(l,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),i.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}]),e}();SuperMap.Plot.AlgoSymbol1005=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1004=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1004",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts);var o=SuperMap.Plot.PlottingUtil.clonePoints(t),l=o.length,i=!1;if(void 0!==o[0].z&&(i=!0),i){for(var n=e.leftBodyPts,r=e.rightBodyPts,a=e.arrowHeadPts,s=e.shapePts,p=[],u=0;u<s.length;u++)p.push({x:s[u].x,y:s[u].y,z:0});if(0==s.length)return!1;var P=this.updateScalePoints(t);if(this.scalePoints=[],3!=P.length)P=[];else for(var c=0;c<P.length;c++)P[c].isScalePoint=!0,P[c].tag=c,this.addScalePoint(P[c]);var y=[],h={x:(o[0].x+o[1].x)/2,y:(o[0].y+o[1].y)/2},S={x:(n[n.length-1].x+r[0].x)/2,y:(n[n.length-1].y+r[0].y)/2},f=this.ComputeZValue(S,o[l-1],o[l-2]),g=0,M=0;n[0].x==o[0].x&&n[0].y==o[0].y?(g=o[0].z,M=o[1].z):(g=o[1].z,M=o[0].z),y.push({x:h.x,y:h.y,z:g});for(var d=2;d<l-1;d++)y.push(o[d]);y.push({x:S.x,y:S.y,z:f});var m=[];this.ComputeBeizerZValueByDis(y,n,m),(y=[]).push({x:S.x,y:S.y,z:f});for(var v=l-2;v>=2;v--)y.push(o[v]);y.push({x:h.x,y:h.y,z:M});var b=[];this.ComputeBeizerZValueByDis(y,r,b);for(var A=[],L=0;L<a.length;L++){var T=this.ComputeZValue(a[L],o[l-1],o[l-2]);A.push({x:a[L].x,y:a[L].y,z:T})}if(m.length>0&&b.length>0&&A.length>0){p=(p=(p=(p=[]).concat(m)).concat(A)).concat(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1});for(var x=[],O=0;O<P.length;O++){var w=this.ComputeZValue(P[O],o[l-1],o[l-2]),U=new SuperMap.Geometry.Point(P[O].x,P[O].y);U.z=w,x.push(U)}3!=P.length?this.scalePoints=[]:this.scalePoints=this.scalePoints.concat(x)}}else{if(0==e.shapePts.length)return;if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.shapePts,{surroundLineFlag:!1}),P=this.updateScalePoints(t),this.scalePoints=[],3!=P.length)P=[];else for(var R=0;R<P.length;R++)P[R].isScalePoint=!0,P[R].tag=R,this.addScalePoint(P[R])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var l=o.length;if(l<=2)return;var i,n,r,a,s=this.operateCtrlPts(o);l=s.length,l--;var p=this.calcScaleValueCount(o.length);if(this.scaleValues.length<p){var u=this.calcDefaultScaleValues(l);i=u[0],n=u[1],r=u[2],a=u[3]}else i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var P=SuperMap.Plot.PlottingUtil.polylineDistance(o),c=[],y=0;y<this.scalePoints.length;y++)c.push(this.scalePoints[y].clone());if(0==c.length)return;c[t]=e.clone();var h,S,f=l-1;h=l<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[f-1].clone();var g,M,d,m,v,b,A=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h,s[f],s[f+1],L,T),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[l],s[l-1],T,A),S=A.clone();var x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[2]);g=x.dLen1,x.dLen2,0==g&&(g=.1),M=g,i=(g/=a+1)/P,1==t?(m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,a=(m-g)/g):0==t?(g=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[0])).dLen1,n=(d=x.dLen2)/g,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(g=.5*b),m=(x=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[l],S,c[1])).dLen1,r=(v=x.dLen2)/g,(a=(M-g)/g)<.1&&(r=v/(g=M/(1+(a=.1))),n=d/g),i=g/P):2==t&&(i=g/P),d=g*n,(b=SuperMap.Plot.PlottingUtil.distance(s[l],s[l-1]))<2*g&&(d=(g=.5*b)*n,i=g/P),this.scaleValues[0]=i,this.scaleValues[1]=n,this.scaleValues[2]=r,this.scaleValues[3]=a}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(n,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,p=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var u=[];u.push(s[s.length-1]),u.push(p[p.length-1]);var P=[];P.push(this.scaleValues[2]),P.push(this.scaleValues[3]),P.push(0),P.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(n,u,P,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<s.length;y++)e.push(s[y]),o.push(s[y]);for(var h=0;h<c.length;h++)e.push(c[h]),i.push(c[h]);for(var S=p.length-1;S>=0;S--)e.push(p[S]),l.push(p[S])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:i}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)){var i=this.operateCtrlPts(t);e=i.length,e--;for(var n=[],r=0;r<this.scaleValues.length;r++)n.push(this.scaleValues[r]);var a=this.genArrowBodyPts(l,i,n),s=a.ArrowBodyCenterPts,p=this.genAtPts(e,s,n,a.ArrowTouLen),u=this.calc3rdScalePt(e,s,n,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(p[2].x,p[2].y)),o.push(new SuperMap.Geometry.Point(u.x,u.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2];e[2]=i,e.push(n)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var l,i,n,r=[],a=[],s=[],p=[],u=[],P=[],c=e.length;if(c--,o.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);i=y[0],n=y[1]}else i=o[0],n=o[1];var h=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(h[0].x+h[1].x)/2,f=(h[0].y+h[1].y)/2,g=Math.abs(S-h[2].x),M=Math.abs(f-h[2].y),d=0;if(g>0&&M>0){var m=1/(S-h[2].x),v=-1/(f-h[2].y),b=1*h[2].y/(f-h[2].y)-1*h[2].x/(S-h[2].x);d=Math.abs(m*h[0].x+v*h[0].y+b)/Math.sqrt(m*m+v*v)}else M<=1e-4?d=Math.abs(f-h[1].y):g<=1e-4&&(d=Math.abs(S-h[1].x));var A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,h[2],new SuperMap.Geometry.Point(S,f)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[1],h[2],h[0]);L?(r[1]=h[1],a[1]=h[0]):(r[1]=h[0],a[1]=h[1]),h[1]=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);var T=Math.sqrt((A.pntLeft.x-A.pntRight.x)*(A.pntLeft.x-A.pntRight.x)+(A.pntLeft.y-A.pntRight.y)*(A.pntLeft.y-A.pntRight.y))*this.sv_AtWidthDivAwWidth,x=(l=T*this.sv_AtLenDivAtWidth)*n;SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||(x=(l=t*i)*n);var O,w,U=SuperMap.Plot.PlottingUtil.distance(h[c],h[c-1]),R=2*l;U<R&&(x=(l=U/2)*n),h.push(h[c].clone()),O=0,w=0;var _=0,E=[];for(_=2;_<=c;_++)O+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]);for(O-=l,_=2;_<=c-1;_++)w+=SuperMap.Plot.PlottingUtil.distance(h[_],h[_-1]),E[_]=x+(T-x)*Math.pow((O-w)/O,this.sv_AtScaleParameter);E[c]=x;var C,I,B=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(_=2;_<=c-1;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,h[_-1],h[_],h[_+1],D,G),_==c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,h[c],h[c-1],G,B),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[_],D,h[_]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,D,C.pntRight))?(r[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(r[_]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[_]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(h[c].x-B.x)*(h[c].x-B.x)+1*(h[c].y-B.y)*(h[c].y-B.y))>0&&(h[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(l,h[c],B)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,h[c+1],h[c]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(h[c],h[c+1],C.pntLeft))?(a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),r[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),_=2;_<c;_++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[_-1],r[_],r[_+1],D,G),s[_]=new SuperMap.Geometry.Point(D.x,D.y),p[_]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[_-1],a[_],a[_+1],D,G),u[_]=new SuperMap.Geometry.Point(D.x,D.y),P[_]=new SuperMap.Geometry.Point(G.x,G.y),2==_&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],B),p[_]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],u[2],B),P[_]=new SuperMap.Geometry.Point(B.x,B.y)),_==c-1&&(R=(U=SuperMap.Plot.PlottingUtil.distance(r[c],r[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=r[c].x-h[c].x,I.y+=r[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,r[c],I),s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),R=(U=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,h[c],h[c+1])).x+=a[c].x-h[c].x,I.y+=a[c].y-h[c].y,R=(U=T-x)*Math.pow(R/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,a[c],I),u[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(h),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:p,RightBodyPtsLeftCtrlPts:u,RightBodyPtsRightCtrlPts:P,ArrowTouLen:l}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,l){var i=o[2],n=[],r=l*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=l*i;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return n.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),n.push(e[t+1]),n.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),n}},{key:"calc3rdScalePt",value:function(t,e,o,l){var i=l*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(i,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1004=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(.28),o.scaleValues.push(.433333),o.scaleValues.push(.53),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1003",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var o=SuperMap.Plot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID),n=i.arrowTouLen,r=i.leftBodyPts,a=i.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(0),p.push(0);var u=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,n,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),P=[];P=(P=P.concat(r)).concat(u);for(var c=a.length-1;c>=0;c--)P.push(a[c]);if(P.push(r[0]),l){for(var y=[],h={x:o[1].x,y:o[1].y,z:o[1].z},S={x:o[0].x,y:o[0].y,z:o[0].z},f=0;f<P.length;f++){var g=this.ComputeZValue(P[f],h,S);y.push({x:P[f].x,y:P[f].y,z:g})}var M=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),d=new SuperMap.Geometry.Point(M.x,M.y);d.isScalePoint=!0,d.tag=0,this.addScalePoint(d);var m=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m);var v=new SuperMap.Geometry.Point(u[0].x,u[0].y);v.isScalePoint=!0,v.tag=2,this.addScalePoint(v);for(var b={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},A={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},L=[],T=0;T<this.scalePoints.length;T++){var x={x:this.scalePoints[T].x,y:this.scalePoints[T].y},O=this.ComputeZValue(x,b,A);L.push({x:x.x,y:x.y,z:O})}this.scalePoints=L,this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y)}else{var w=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),U=new SuperMap.Geometry.Point(w.x,w.y);U.isScalePoint=!0,U.tag=0,this.addScalePoint(U);var R=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);R.isScalePoint=!0,R.tag=1,this.addScalePoint(R);var _=new SuperMap.Geometry.Point(u[0].x,u[0].y);_.isScalePoint=!0,_.tag=2,this.addScalePoint(_),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P)}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*n;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[0],this.controlPoints[1]),p=s.projectPoint;if(s.isOnline){var u=SuperMap.Plot.PlottingUtil.distance(p,this.controlPoints[1]);this.scaleValues[0]=u/r}}else if(1==t){var P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,c=SuperMap.Plot.PlottingUtil.distance(P,o),y=a*this.scaleValues[1];this.scaleValues[1]=c/a,this.scaleValues[2]=(a*this.scaleValues[2]+c-y)/a}else if(2==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h,o,this.controlPoints[1]),f=S.projectPoint,g=SuperMap.Plot.PlottingUtil.distance(f,o);!0===S.inOnline?this.scaleValues[4]=-g/a:this.scaleValues[4]=g/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1003=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MIN_GEOPT_COUNT=2,o.MAX_GEOPT_COUNT=1024,o.SV1_defaultATLenDivABLen=0,o.SV2_defaultAYPosScale=.65,o.SV_AJCtrl=.6,o.SV_ArrowWoCtrl=.6,o.SV2_DefaultAJWidDiviedByATLen=.148,o.SV3_DefaultAEWidDividedByATLen=.4,o.SV4_DefaultAELenDividedByATLen=.3,o.SV_ATScaleParameter=1.25,o.SV_ATLenDividedByATWid=1.35,o.SV_ATWidDividedByArrowWeiWid=.5,o.AB_VERTEX_COUNT=4,o.MIN_PTCOUNT_PERARROW=3,o.ATL_DIV_AWW=.7,o.ATL_DIV_ABL=.12,o.ATL_DIV_ABL_1=.18,o.DEFAULT_ARROW_TAIL_POS=.12,o.DUOJIANTOU_TAIL_RATE_1=8,o.DUOJIANTOU_TAIL_RATE_2=3,o.DUOJIANTOU_TAIL_RATE_3=.6,o.AB_CTRLPT_RATE1=0,o.AB_CTRLPT_RATE2=3,o.AB_CTRLPT_RATE3=.5,o.MIN_SCALEVALUE=.1,o.MAX_SCALEVALUE=1,o.m_scalePoints=null,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1002",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.operateCtrlPts(t),o=e.length,l=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i=this.scaleValues.length;if(i<2*l-1){0==i&&(this.scaleValues.push(this.SV1_defaultATLenDivABLen),i++);for(var n=2*l-1-i,r=0;r<n;r+=2)this.scaleValues.splice(i/2+1,0,this.SV1_defaultATLenDivABLen),this.scaleValues.splice(this.scaleValues.length,0,this.SV2_defaultAYPosScale)}else if(i>2*l-1){for(var a=0;a<l;a++)this.scaleValues.push(this.SV1_defaultATLenDivABLen);for(var s=0;s<l-1;s++)this.scaleValues.push(this.SV2_defaultAYPosScale)}var p=this.arrowMeshs(e);SuperMap.Plot.PlottingUtil.clearSamePts(p.shapePts);var u=!1;if(void 0!==t[0].z&&(u=!0),u){var P=this.operateCtrlPts3D(t),c=p.arrLeftPts2D,y=p.arrRightPts2D,h=p.arrHeadPts2D;if(l!=c.length&&l!=y.length&&l!=h.length)return!1;for(var S=[],f=0;f<l;f++){for(var g=[],M=3*f;M<3*(f+1)&&M<P.length;M++)g.push(P[M]);S.push(g)}for(var d=[],m=[],v=[],b=0;b<l;b++)if(!(2>S[b].length)){for(var A=c[b][c[b].length-1],L=y[b][0],T=new SuperMap.Geometry.Point(.5*(A.x+L.x),.5*(A.y+L.y)),x=S[b][S[b].length-1],O=S[b][S[b].length-2],w=this.ComputeZValue(T,x,O),U={x:T.x,y:T.y,z:w},R=[],_=[],E=0;E<S[b].length-1;E++)if(0==b)_.push(S[b][E]);else{var C={x:S[b][E].x,y:S[b][E].y,z:.5*(S[b][E].z+S[b-1][E].z)};_.push(C)}_.push(U),this.ComputeBeizerZValueByDis(_,c[b],R),d.push(R),R=[];var I=[];I.push(U);for(var B=S[b].length-2;B>=0;B--)if(b==l-1)I.push(S[b][B]);else{var D={x:S[b][B].x,y:S[b][B].y,z:.5*(S[b][B].z+S[b+1][B].z)};I.push(D)}this.ComputeBeizerZValueByDis(I,y[b],R),m.push(R),R=[];for(var G=h[b],V=0;V<G.length;V++){var N=this.ComputeZValue(G[V],x,O);R.push({x:G[V].x,y:G[V].y,z:N})}v.push(R)}for(var k=[],Y=0;Y<l;Y++)k=(k=(k=k.concat(d[Y])).concat(v[Y])).concat(m[Y]);return SuperMap.Plot.PlottingUtil.clearSamePts(k),p.shapePts.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,k,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}p.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var z=0;z<this.m_scalePoints.length;z++)this.m_scalePoints[z].isScalePoint=!0,this.m_scalePoints[z].tag=z,this.addScalePoint(this.m_scalePoints[z])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=this.operateCtrlPts(this.controlPoints),l=o.length,i=Math.floor(l/this.MIN_PTCOUNT_PERARROW),n=0;if(t<i){var r=[],a=t*this.MIN_PTCOUNT_PERARROW;r[0]=o[a],r[1]=o[a+1],r[2]=o[a+2];var s=SuperMap.Plot.PlottingUtil.polylineDistance(r),p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,r[0],r[1],r[2],p,u),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[2],r[1],u,P),n=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[2],P,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/s}else{var c=[],y=[],h=(t-i)*this.MIN_PTCOUNT_PERARROW;c[0]=o[h],c[1]=o[h+1],c[2]=o[h+2];var S=(t-i+1)*this.MIN_PTCOUNT_PERARROW;y[0]=o[S],y[1]=o[S+1],y[2]=o[S+2];var f=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0),M=new SuperMap.Geometry.Point(0,0);f.x=.5*(c[2].x+y[2].x),g.x=.5*(c[1].x+y[1].x),M.x=.5*(c[0].x+y[0].x),f.y=.5*(c[2].y+y[2].y),g.y=.5*(c[1].y+y[1].y),M.y=.5*(c[0].y+y[0].y);var d=SuperMap.Plot.PlottingUtil.distance(f,g),m=SuperMap.Plot.PlottingUtil.distance(M,g),v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f,g,e),b=v.dLen1;n=b<d?b/(d+m):((b=(v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(g,M,e)).dLen1)+d)/(d+m)}n>this.MAX_SCALEVALUE?n=this.MAX_SCALEVALUE:n<this.MIN_SCALEVALUE&&(n=this.MIN_SCALEVALUE),this.scaleValues[t]=n}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],l=[],i=new SuperMap.Plot.Path2D,n=t.length,r=Math.floor(n/this.MIN_PTCOUNT_PERARROW),a=this.generateAWWidth(r,t),s=[],p=[],u=0,P=0,c=0,y=[];for(P=0,c=0;P<r;P++,c+=this.MIN_PTCOUNT_PERARROW){y[0]=t[c],y[1]=t[c+1],y[2]=t[c+2],u=this.scaleValues[P];var h=this.generateArrowBodyPts(y,a[P],u);u=h.dATLenDivABLen,s[P]=h.arrowBodyPts,p.push(u)}var S=[],f=0,g=0,M=0,d=[],m=[];for(P=0;P<r-1;P++,g+=this.MIN_PTCOUNT_PERARROW){M=g+this.MIN_PTCOUNT_PERARROW,d[0]=t[g],d[1]=t[g+1],d[2]=t[g+2],m[0]=t[M],m[1]=t[M+1],m[2]=t[M+2],f=this.scaleValues[r+P];var v=this.generateAYPts(d,s[P],m,s[P+1],f);S.push(v.arrowLeftYaoPts),S.push(v.arrowRightYaoPts)}var b=[],A=s[0],L=[],T=0,x=[];i.MoveTo(A[0]),i.CurveTo(A[1],A[2],A[3]),i.CurveTo(A[4],A[5],A[6]),i.ToSubPathPolygons(L),e.push(L[0]),T=L[0].length;for(var O=7;O<10;O++)i.LineTo(A[O]);for(L=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);for(l.push(x),b.push(A[0]),b.push(t[0]),P=1,c=this.MIN_PTCOUNT_PERARROW;P<r;P++,c+=this.MIN_PTCOUNT_PERARROW){var w=s[P],U=P+P-2,R=S[U];for(i.LineTo(R[0]),i.CurveTo(R[1],R[2],R[3]),L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);o.push(x);var _=S[U+1];for(i.CurveTo(_[1],_[2],_[3]),L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);e.push(x);for(var E=7;E<10;E++)i.LineTo(w[E]);for(L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);l.push(x),b.push(t[c].clone())}var C=s[r-1];for(i.LineTo(C[10]),i.CurveTo(C[11],C[12],C[13]),i.CurveTo(C[14],C[15],C[16]),L=[],x=[],i.ToSubPathPolygons(L);T<L[0].length;T++)x.push(L[0][T]);o.push(x),b.push(C[16]);var I=[];return i.ToSubPathPolygons(I),{shapePts:I[0],arrLeftPts2D:e,arrRightPts2D:o,arrHeadPts2D:l}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,l=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i=o%this.MIN_PTCOUNT_PERARROW,n=new SuperMap.Geometry.Point;if(2==i&&(n.x=.5*(e[o-2].x+e[o-1].x),n.y=.5*(e[o-2].y+e[o-1].y),n.x==e[o-1].x&&n.y==e[o-1].y||(e.push(e[o-1].clone()),e[o-1]=n,o++,l++)),o>3)for(var r=l-1,a=0,s=r;a<r;s--,a++)for(var p=s*this.MIN_PTCOUNT_PERARROW,u=0;u<p;u+=this.MIN_PTCOUNT_PERARROW){if(!SuperMap.Plot.PlottingUtil.isRight(e[u+3],e[u+1],e[u+2])){var P=e[u];e[u]=e[u+3],e[u+3]=P,P=e[u+1],e[u+1]=e[u+4],e[u+4]=P,P=e[u+2],e[u+2]=e[u+5],e[u+5]=P}}return e}},{key:"operateCtrlPts3D",value:function(t){var e=t,o=e.length,l=Math.floor(o/this.MIN_PTCOUNT_PERARROW),i={x:0,y:0,z:0};if(2==o%3&&(i.x=.5*(e[o-2].x+e[o-1].x),i.y=.5*(e[o-2].y+e[o-1].y),i.z=.5*(e[o-2].z+e[o-1].z),i.x==e[o-1].x&&i.y==e[o-1].y&&i.z==e[o-1].z||(e.push(e[o-1]),e[o-1]=i,o++,l++)),o>3)for(var n=l-1,r=0,a=n;r<n;a--,r++)for(var s=3*a,p=0;p<s;p+=3){if(!SuperMap.Plot.PlottingUtil.isRight(e[p+3],e[p+1],e[p+2])){var u=e[p];e[p]=e[p+3],e[p+3]=u,u=e[p+1],e[p+1]=e[p+4],e[p+4]=u,u=e[p+2],e[p+2]=e[p+5],e[p+5]=u}}return e}},{key:"generateAWWidth",value:function(t,e){var o=[];if(t>0)if(1==t)o.push(0);else{var l=SuperMap.Plot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var i=1,n=this.MIN_PTCOUNT_PERARROW;i<t-1;i++,n+=this.MIN_PTCOUNT_PERARROW){l=.5*(SuperMap.Plot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n])+SuperMap.Plot.PlottingUtil.distance(e[n],e[n+this.MIN_PTCOUNT_PERARROW])),o.push(l)}l=SuperMap.Plot.PlottingUtil.distance(e[n-this.MIN_PTCOUNT_PERARROW],e[n]),o.push(l)}return o}},{key:"generateArrowBodyPts",value:function(t,e,o){var l=[],i=[],n=[],r=[],a=[],s=[],p=[],u=t.length-1;if(u<2)return{dATLenDivABLen:o=0,arrowBodyPts:l};var P=o,c=this.SV2_DefaultAJWidDiviedByATLen,y=this.SV3_DefaultAEWidDividedByATLen,h=this.SV4_DefaultAELenDividedByATLen,S=SuperMap.Plot.PlottingUtil.clonePoints(t),f=SuperMap.Plot.PlottingUtil.polylineDistance(S),g=0==e?f*this.ATL_DIV_ABL_1:(f+e)*this.ATL_DIV_ABL,M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(g,S[1],S[0]);i[1]=M.pntLeft.clone(),n[1]=M.pntRight.clone();var d=0;d=SuperMap.Plot.PlottingUtil.equalFuzzy(P,0,1e-14)?g*this.ATL_DIV_AWW:f*P;var m=SuperMap.Plot.PlottingUtil.distance(S[1],S[2]);d+d>m&&(d=.5*m);var v=d*c;S.push(S[u].clone());var b,A=0;b=f-d;var L=[],T=0;for(T=2;T<=u;T++)A+=SuperMap.Plot.PlottingUtil.distance(S[T-1],S[T-2]),SuperMap.Plot.PlottingUtil.equalFuzzy(b,0,1e-14)?L[T]=0:SuperMap.Plot.PlottingUtil.equalFuzzy(b-A,0,1e-14)?L[T]=v:L[T]=v+(g-v)*Math.pow((b-A)/b,this.SV_ATScaleParameter);L[u+1]=v;var x=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0);for(T=2;T<=u;T++){SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,S[T-2],S[T-1],S[T],O,w),u==T&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,S[u],S[u-1],w,x);var U=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L[T],O,S[T-1]);n[T]=U.pntLeft,i[T]=U.pntRight}var R,_,E=x.clone();if(SuperMap.Plot.PlottingUtil.distance(S[u],E)>0){var C=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d,S[u],x);S[u]=C.clone()}for(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,S[u+1],S[u]),i[u+1]=M.pntLeft,n[u+1]=M.pntRight,T=2;T<=u;T++)SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,i[T-1],i[T],i[T+1],O,w),r[T]=O.clone(),a[T]=w.clone(),SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[T-1],n[T],n[T+1],O,w),s[T]=O.clone(),p[T]=w.clone();SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,i[1],i[2],r[2],x),a[1]=x.clone(),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],s[2],x),p[1]=x.clone();_=SuperMap.Plot.PlottingUtil.distance(i[u+1],i[u])*(1/3),(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(_,S[u],S[u+1])).x+=i[u+1].x-S[u].x,R.y+=i[u+1].y-S[u].y,_=(g-v)*Math.pow(_/b,this.SV_ATScaleParameter+.3),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,i[u+1],R),r[u+1]=M.pntLeft.clone(),_=SuperMap.Plot.PlottingUtil.distance(n[u+1],n[u])*(1/3),(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(_,S[u],S[u+1])).x+=n[u+1].x-S[u].x,R.y+=n[u+1].y-S[u].y,_=(g-v)*Math.pow(_/b,this.SV_ATScaleParameter+.3),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,n[u+1],R),s[u+1]=M.pntRight.clone();var I=[],B=d*h,D=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(B,S[u],S[u+1]);this.m_scalePoints.push(D.clone()),B=d*y,M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,S[u+1],D),I.push(M.pntRight),I.push(S[u+1]),I.push(M.pntLeft);var G=[];for(G.push(i[u+1]),T=u;T>=1;T--)G.push(r[T+1]),G.push(a[T]),G.push(i[T]);var V=[];for(T=1;T<=u;T++)V.push(n[T]),V.push(p[T]),V.push(s[T+1]);V.push(n[u+1]),l.push.apply(l,V),l.push.apply(l,I),l.push.apply(l,G),o=d/f;var N=[];for(T=G.length-1;T>=0;T--)N.push(G[T]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,i){var n=new SuperMap.Geometry.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),r=new SuperMap.Geometry.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMap.Geometry.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),s=SuperMap.Plot.PlottingUtil.distance(n,r),p=SuperMap.Plot.PlottingUtil.distance(a,r),u=i*(s+p),P=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0);if(u>s){u=s+p-u,P=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(u,a,r);var h=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),S=SuperMap.Plot.PlottingUtil.distance(o[1],o[0]);h=h*u/p,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[0],t[1]),S=S*u/p,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[0],o[1])}else{P=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(u,n,r);var f=SuperMap.Plot.PlottingUtil.distance(t[1],t[2]),g=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]);f=f*u/s,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(f,t[2],t[1]),g=g*u/s,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(g,o[2],o[1])}this.m_scalePoints.push(P.clone());var M=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(P,c),d=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(P,y),m=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M,P,c),v=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d,P,y),b=e[11].clone(),A=e[10].clone(),L=l[5].clone(),T=l[6].clone(),x=SuperMap.Plot.PlottingUtil.intersectLines(A,b,P,c),O=SuperMap.Plot.PlottingUtil.distance(x.intersectPoint,A),w=SuperMap.Plot.PlottingUtil.distance(A,P);O=O>w?this.SV_AJCtrl*w:this.SV_AJCtrl*O;var U=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(O,A,b);b=U.clone(),e[11]=U.clone(),x=SuperMap.Plot.PlottingUtil.intersectLines(T,L,P,y),O=(O=SuperMap.Plot.PlottingUtil.distance(x.intersectPoint,T))>(w=SuperMap.Plot.PlottingUtil.distance(T,P))?this.SV_AJCtrl*w:this.SV_AJCtrl*O,L=(U=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(O,T,L)).clone(),l[5]=U.clone();var R=[];R.push(A),R.push(b),R.push(m),R.push(P);var _=[];return _.push(P),_.push(v),_.push(L),_.push(T),{arrowLeftYaoPts:R,arrowRightYaoPts:_}}}]),e}();SuperMap.Plot.AlgoSymbol1002=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol1001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.08)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1001",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){this.scalePoints=[];var o=SuperMap.Plot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),n=i.arrowTouLen,r=i.leftBodyPts,a=i.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(this.scaleValues[0]),p.push(this.scaleValues[1]);var u=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,n,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),P=[];if(l){for(var c=[],y=[],h=[],S=0;S<e-1;S++)y.push({x:r[S].x,y:r[S].y,z:o[S].z}),h.push({x:a[S].x,y:a[S].y,z:o[S].z});var f={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},g={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},M=this.ComputeZValue(r[e-1],g,f);y.push({x:r[e-1].x,y:r[e-1].y,z:M});var d=this.ComputeZValue(a[e-1],g,f);h.push({x:a[e-1].x,y:a[e-1].y,z:d});for(var m=0;m<u.length;m++){var v=this.ComputeZValue(u[m],g,f);c.push({x:u[m].x,y:u[m].y,z:v})}P=(P=P.concat(y)).concat(c);for(var b=h.length-1;b>=0;b--)P.push(h[b]);var A=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),L=new SuperMap.Geometry.Point(A.x,A.y);L.isScalePoint=!0,L.tag=0,this.addScalePoint(L);var T=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);T.isScalePoint=!0,T.tag=1,this.addScalePoint(T);var x=new SuperMap.Geometry.Point(u[0].x,u[0].y);x.isScalePoint=!0,x.tag=2,this.addScalePoint(x);for(var O=0;O<this.scalePoints.length;O++){var w=new SuperMap.Geometry.Point(this.scalePoints[O].x,this.scalePoints[O].y);this.scalePoints[O].z=this.ComputeZValue(w,g,f)}}else{P=(P=P.concat(r)).concat(u);for(var U=a.length-1;U>=0;U--)P.push(a[U]);var R=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),_=new SuperMap.Geometry.Point(R.x,R.y);_.isScalePoint=!0,_.tag=0,this.addScalePoint(_);var E=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);E.isScalePoint=!0,E.tag=1,this.addScalePoint(E);var C=new SuperMap.Geometry.Point(u[0].x,u[0].y);C.isScalePoint=!0,C.tag=2,this.addScalePoint(C)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),l=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),i=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),n=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*n;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[this.controlPoints.length-2],this.controlPoints[this.controlPoints.length-1]),p=s.projectPoint;if(s.isOnline){var u=SuperMap.Plot.PlottingUtil.distance(p,this.controlPoints[this.controlPoints.length-1]);this.scaleValues[0]=u/r}}else if(1==t){var P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,i).projectPoint,c=SuperMap.Plot.PlottingUtil.distance(P,o);this.scaleValues[1]=c/a}else if(2==t){var y=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],i).projectPoint,h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(y,o,this.controlPoints[1]),S=h.projectPoint,f=SuperMap.Plot.PlottingUtil.distance(S,o);!0===h.inOnline?this.scaleValues[4]=-f/a:this.scaleValues[4]=f/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1001=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.LinearArrow=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(15),o.scaleValues.push(7.5),o.scaleValues.push(0),o.scaleValues.push(15),o.scaleValues.push(7.5),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.LinearArrow",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scalePoints=[],this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[0],0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[1],0)){var e=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),o=this.scaleValues[1]*(this.style.weight||this.style.strokeWidth),l=this.getLonLatDistanceFromPixel(e),i=this.getLonLatDistanceFromPixel(o),n=SuperMap.Plot.PlottingUtil.findPointInLine(t[0],t[1],l),r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],n),a=[];if(a.push(r.pntLeft),a.push(t[0]),a.push(r.pntRight),this.addScalePoint(r.pntLeft,0),SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[2],0))this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(n,1);else if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[2],1))this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),this.addScalePoint(t[0],1);else{var s=l*this.scaleValues[2],p=SuperMap.Plot.PlottingUtil.findPointInLine(n,t[0],s);a.push(p),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(p,1)}}if(!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[3],0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)){var u=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),P=this.scaleValues[4]*(this.style.weight||this.style.strokeWidth),c=this.getLonLatDistanceFromPixel(u),y=this.getLonLatDistanceFromPixel(P),h=SuperMap.Plot.PlottingUtil.findPointInLine(t[1],t[0],c),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,t[0],h),f=[];if(f.push(S.pntLeft),f.push(t[1]),f.push(S.pntRight),this.addScalePoint(S.pntLeft,2),SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[5],0))this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0}),this.addScalePoint(h,3);else if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[5],1))this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addScalePoint(t[1],3);else{var g=c*this.scaleValues[5],M=SuperMap.Plot.PlottingUtil.findPointInLine(h,t[1],g);f.push(M),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0}),this.addScalePoint(M,3)}}this.finish()}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){var l=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(l.isOnline){var i=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),n=this.getLonLatDistanceFromPixel(i),r=n*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],n),s=SuperMap.Plot.PlottingUtil.findPointInLine(a,o[0],r);n=SuperMap.Plot.PlottingUtil.distance(o[0],l.projectPoint),i=this.getPixelDistanceFromLonLat(n),this.scaleValues[0]=i/(this.style.weight||this.style.strokeWidth);var p=SuperMap.Plot.PlottingUtil.distance(e,l.projectPoint),u=this.getPixelDistanceFromLonLat(p);this.scaleValues[1]=u/(this.style.weight||this.style.strokeWidth),r=SuperMap.Plot.PlottingUtil.distance(s,l.projectPoint),this.scaleValues[2]=r/n}}else if(1===t){var P=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),c=this.getLonLatDistanceFromPixel(P),y=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],c),h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,y,o[0]);if(h.isOnline){var S=SuperMap.Plot.PlottingUtil.distance(y,h.projectPoint);this.scaleValues[2]=S/c,this.scaleValues[2]<0?this.scaleValues[2]=0:this.scaleValues[2]>1&&(this.scaleValues[2]=1)}}else if(2===t){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(f.isOnline){var g=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),M=this.getLonLatDistanceFromPixel(g),d=M*this.scaleValues[5],m=SuperMap.Plot.PlottingUtil.findPointInLine(o[1],o[0],M),v=SuperMap.Plot.PlottingUtil.findPointInLine(m,o[1],d);M=SuperMap.Plot.PlottingUtil.distance(o[1],f.projectPoint),g=this.getPixelDistanceFromLonLat(M),this.scaleValues[3]=g/(this.style.weight||this.style.strokeWidth);var b=SuperMap.Plot.PlottingUtil.distance(e,f.projectPoint),A=this.getPixelDistanceFromLonLat(b);this.scaleValues[4]=A/(this.style.weight||this.style.strokeWidth),d=SuperMap.Plot.PlottingUtil.distance(v,f.projectPoint),this.scaleValues[5]=d/M}}else if(3===t){var L=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),T=this.getLonLatDistanceFromPixel(L),x=SuperMap.Plot.PlottingUtil.findPointInLine(o[1],o[0],T),O=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,x,o[1]);if(O.isOnline){var w=SuperMap.Plot.PlottingUtil.distance(x,O.projectPoint);this.scaleValues[5]=w/T,this.scaleValues[5]<0?this.scaleValues[5]=0:this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}this.calculateParts()}}]),e}();SuperMap.Plot.LinearArrow=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Wire=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Plot.Wire",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=2*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l=o*this.scaleValues[0],i=o*this.scaleValues[0]/2,n=SuperMap.Plot.PlottingUtil.clonePoints(e),r=parseInt((o-i)/l),a=0;a<=r&&!(i+l*a>o);a++){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,i+l*a);if(-1!==s.index){var p=new SuperMap.Geometry.Point(s.pt.x,s.pt.y),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,e[s.index],p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u.pntLeft,u.pntRight])}}this.finish()}}}]),e}();SuperMap.Plot.Wire=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}(),i=function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0};var n=e.PolygonRegion=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===o.scaleValues[0]&&(o.scaleValues[0]=0),void 0===o.scaleValues[1]&&(o.scaleValues[1]=0),o.CLASS_NAME="SuperMap.Plot.PolygonRegion",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(null!=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))&&t.length>=this.minEditPts){if(this.addCell(32,t,{surroundLineFlag:!1}),this.textContent&&null!=this.textContent&&this.textContent.length>0){var e=[];this.scaleValues[1]>t.length&&(this.scaleValues[1]=0);var o={labelRotation:0,surroundLineFlag:!1,labelAlign:"lt"};if(0===this.scaleValues[1])e=[SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t)];else{var l=null,i=null;this.scaleValues[1]===t.length?(l=t[t.length-1],i=t[0]):(l=t[this.scaleValues[1]-1],i=t[this.scaleValues[1]]),o.labelRotation=-SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI*180;var n=this.scaleValues[0]*SuperMap.Plot.PlottingUtil.distance(l,i);e=[SuperMap.Plot.PlottingUtil.findPoint(l,i,n,0)]}this.addCell(34,e,o,this.textContent);var r=new SuperMap.Geometry.Point(e[0].x,e[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints=[],this.addScalePoint(r)}}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine()}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=0,l=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),i=1;i<this.controlPoints.length;i++){var n=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[i]);n<l&&(l=n,o=i)}var r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);(r=SuperMap.Plot.PlottingUtil.clearSamePts(r)).push(r[0].clone());var a=SuperMap.Plot.PlottingUtil.computePointToLineMinDis(e,r);if(-1===a.minDis)this.scaleValues[1]=o+1,this.offsetX=0,this.offsetY=0;else{var s=SuperMap.Plot.PlottingUtil.projectPoint(e,r[a.index],r[a.index+1]),p=SuperMap.Plot.PlottingUtil.distance(e,s),u=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints),P=SuperMap.Plot.PlottingUtil.distance(e,u);if(P<p&&P<l)this.scaleValues[1]=0,this.scaleValues[0]=0;else if(l<p&&l<P)this.scaleValues[1]=o+1,this.scaleValues[0]=0;else if(p<l&&p<P){this.scaleValues[1]=a.index+1;var c=null,y=null;this.scaleValues[1]===this.controlPoints.length?(c=this.controlPoints[this.controlPoints.length-1],y=this.controlPoints[0]):(c=this.controlPoints[this.scaleValues[1]-1],y=this.controlPoints[this.scaleValues[1]]);var h=SuperMap.Plot.PlottingUtil.distance(s,c),S=SuperMap.Plot.PlottingUtil.distance(c,y);this.scaleValues[0]=h/S}}}this.calculateParts()}},{key:"parseSymbolData",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"parseSymbolData",this).call(this),this.symbolData&&(this.scaleValues[1]=this.symbolData.annotationPosition)}},{key:"setSymbolData",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setSymbolData",this).call(this),this.symbolData&&(this.symbolData.annotationPosition=this.scaleValues[1])}}]),e}();SuperMap.Plot.PolygonRegion=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.LineRelation=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSectionCount=t.subSectionCount?t.subSectionCount:10,o.CLASS_NAME="SuperMap.Plot.LineRelation",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){this.subSectionCount=null,function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();for(var t=0;t<this.controlPoints.length;t++)this.controlPoints[t].tag=t;var e=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);null!==e&&e.length>=this.minEditPts&&this.computeLine(e)}},{key:"computeLine",value:function(t){this.components=[];var e=t[0],o=t[t.length-1];this.subSectionCount<=1&&(this.subSectionCount=10);var l=SuperMap.Plot.PlottingUtil.distance(e,o)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMap.Plot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMap.Plot.LineRelationType.DASH)for(var i=0;i<this.subSectionCount;i++){var n=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*i*l,0),r=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*i+1)*l,0);this.addCell(24,[n,r],{surroundLineFlag:!1})}else if(this.lineRelationType===SuperMap.Plot.LineRelationType.ARROW)for(var a=0;a<this.subSectionCount;a++){var s=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*a*l,0),p=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*a+1)*l,0),u=SuperMap.Plot.PlottingUtil.findPoint(p,s,l,60),P=SuperMap.Plot.PlottingUtil.findPoint(p,s,l,-60);this.addCell(24,[u,p,P],{surroundLineFlag:!1})}}}]),e}();SuperMap.Plot.LineRelation=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.LineMarking=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.islocationCircle=!!t.islocationCircle&&t.islocationCircle,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.RECTBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(4)),o.CLASS_NAME="SuperMap.Plot.LineMarking",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){this.islocationCircle=null,this.textBoxType=null,function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,i;this.scalePoints=[];var n=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,l=this.controlPoints[1].x):(e=this.controlPoints[1].x,l=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y),n.push(new SuperMap.Geometry.Point(e,i)),n.push(new SuperMap.Geometry.Point(e,o)),n.push(new SuperMap.Geometry.Point(l,o)),n.push(new SuperMap.Geometry.Point(l,i)),!1===this.isEdit&&(this.scaleValues[1]=e+.1*(l-e),this.scaleValues[2]=i+-.3*(o-i));var r=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,l,i),a=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]);if(this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX||this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var s=[];switch(r){case 0:this.addScalePoint(a);break;case 1:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(e,o-(o-i)*t)),s.push(a);break;case 2:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(l-(l-e)*t,o)),s.push(a);break;case 3:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(l,o-(o-i)*t)),s.push(a);break;case 4:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(l-(l-e)*t,i)),s.push(a)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}if(0!==n.length&&this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX)this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);else if(0!==n.length&&this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var p=[];switch(r){case 0:break;case 1:p=(p=p.concat(n[0])).concat(n[1]);break;case 2:p=(p=p.concat(n[1])).concat(n[2]);break;case 3:p=(p=p.concat(n[2])).concat(n[3]);break;case 4:p=(p=p.concat(n[3])).concat(n[0])}0!==p.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p):this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints)}this.islocationCircle&&this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x-.05,a.y-.05)]),this.annotationContent(e,o,l,i)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.finish()}}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(this.scaleValues[1]=e.x,this.scaleValues[2]=e.y),this.calculateParts()}},{key:"getAction",value:function(t,e,o,l,i,n){var r=(l-n)/(i-o);return t<o?e>l?Math.abs((e-l)/(t-o))>r?2:1:e<n&&Math.abs((e-n)/(t-o))>r?4:1:t>i?e>l?Math.abs((e-l)/(t-i))>r?2:3:e<n&&Math.abs((e-n)/(t-i))>r?4:3:e>l?2:e<n?4:0}}]),e}();SuperMap.Plot.LineMarking=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.PathText=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.relLineText=t.relLineText?t.relLineText:0,o.showPathLine=!t.showPathLine||t.showPathLine,o.showPathLineArrow=!!t.showPathLineArrow&&t.showPathLineArrow,o.isCurve=!!t.isCurve&&t.isCurve,o.isAvoid=!!t.isAvoid&&t.isAvoid,o.textToLineDistance=t.textToLineDistance?t.textToLineDistance:0,o.CLASS_NAME="SuperMap.Plot.PathText",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),null!==this.controlPoints&&0!==this.controlPoints.length&&!(this.controlPoints.length<this.minEditPts)){SuperMap.Util.isArray(this.textContent)||(this.textContent=[this.textContent]);var t=[];if(t=this.isCurve?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints):SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.relLineText===SuperMap.Plot.RelLineText.ONBOTHLINE){this.relLineText=SuperMap.Plot.RelLineText.ONRIGHTLINE;var e=this.getTextPathPts(t,!1);this.computeText(e,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONLEFTLINE;var o=this.showPathLine;this.showPathLine=!1;var l=this.getTextPathPts(t,!0);this.textContent.length>1?this.computeText(l,this.textContent[1],t):this.computeText(l,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONBOTHLINE,this.showPathLine=o}else{var i=[];i=this.relLineText===SuperMap.Plot.RelLineText.ONRIGHTLINE?this.getTextPathPts(t,!1):this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?this.getTextPathPts(t,!0):t,this.computeText(i,this.textContent[0],t)}this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var o=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=o)return SuperMap.Plot.PlottingUtil.clonePoints(t);var l=SuperMap.Plot.PlottingUtil.paraLine(t,o,e);return SuperMap.Plot.PlottingUtil.clearSamePts(l)}},{key:"computeText",value:function(t,e,o){if(!(t.length<2)){for(var l=e.length,i=t,n=i.length,r=0,a=0;a<i.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(i[a],i[a+1]);var s={index:-1,pt:i[0]},p=0,u=0,P=0,c=180/Math.PI,y=this.getTextBounds(this.style,e),h="lm";h=this.relLineText===SuperMap.Plot.RelLineText.ONLINE?"lm":this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt",(p=(r-y.getWidth())/2)<=0&&(p=0);for(var S=[],f=0;f<l;f++){var g=this.getTextBounds(this.style,e.charAt(f));S.push(new SuperMap.Bounds(0,-y.getHeight(),g.getWidth(),0))}for(var M,d=!1,m=!1,v=0,b=0,A=[];u<=p&&P<n-1;)P++,u+=SuperMap.Plot.PlottingUtil.distance(i[P-1],i[P]);var L=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,p),T=SuperMap.Plot.PlottingUtil.radian(i[P-1],i[P])*c;T>180&&(T-=360),T<-180&&(T+=360),T>90&&T<=180?(v=-180,d=!0,m=!0):T>-180&&T<-90&&(v=180,d=!0,m=!0),!0,0!=v?this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(h=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(h=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt");for(var x=0;x<l&&!(p>r);x++){var O=x;for(m&&(O=l-x-1),b=(M=S[O]).getWidth(),d&&(p+=b);u<=p&&P<n-1;)P++,u+=SuperMap.Plot.PlottingUtil.distance(i[P-1],i[P]);var w=(T=SuperMap.Plot.PlottingUtil.radian(i[P-1],i[P])*c)+v;if((s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,p)).index<0)break;M.add(s.pt.x,s.pt.y);var U=e.charAt(O),R={};R.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,R.textContent=U,R.positionPoints=[s.pt],R.style={surroundLineFlag:!1,labelAlign:h,labelRotation:-w},A.push(R),d||(p+=b)}var _=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,p);if(this.showPathLine){if(this.relLineText===SuperMap.Plot.RelLineText.ONLINE&&this.isAvoid){if(L.index>=0){for(var E=[],C=0;C<=L.index;C++)E.push(o[C]);E.push(L.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E)}if(_.index>=0){var I=[];I.push(_.pt);for(var B=_.index+1;B<o.length;B++)I.push(o[B]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,I)}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.showPathLineArrow&&this.addArrow(o)}for(var D=0;D<A.length;D++)this.components.push(A[D])}}},{key:"addArrow",value:function(t){if(t.length<2)return t;var e=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)*(this.isEdit,null==this.getSubSymbolScaleValue()?.05:.5*this.getSubSymbolScaleValue()),o=t[t.length-1];if(t.length>2){for(var l=-1,i=t.length-2;i>=0;i--)if(e<SuperMap.Plot.PlottingUtil.distance(o,t[i])){l=i;break}t.splice(l+1,t.length-l),t.push(o)}var n=t[t.length-2],r=t[t.length-1],a=e;if(void 0===n)return t;if(!(SuperMap.Plot.PlottingUtil.distance(n,r)<e)){var s=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+157.5),u=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+202.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[p,t[t.length-1],u],{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.PathText=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.CurveEight=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.CurveEight",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints&&!(this.minEditPts>this.controlPoints.length))if(2===this.controlPoints.length){var t=this.controlPoints[0].clone(),e=this.controlPoints[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(t,e)/2,l=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2),n=SuperMap.Plot.PlottingUtil.circlePoint(i,o,o,l+90),r=SuperMap.Plot.PlottingUtil.circlePoint(i,3*o,3*o,l+90);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[n,new SuperMap.Geometry.Point(n.x+o,n.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)])}else{var a=this.controlPoints[0].clone(),s=this.controlPoints[1].clone(),p=this.controlPoints[2].clone(),u=0;u=SuperMap.Plot.PlottingUtil.isRight(p,a,s)?180*SuperMap.Plot.PlottingUtil.radian(s,a)/Math.PI+90:180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI+90;var P=SuperMap.Plot.PlottingUtil.distance(a,s)/2,c=new SuperMap.Geometry.Point((a.x+s.x)/2,(a.y+s.y)/2),y=SuperMap.Plot.PlottingUtil.circlePoint(c,P,P,u),h=SuperMap.Plot.PlottingUtil.plumbLineLen(p,a,s);if(h<=4*P){var S=SuperMap.Plot.PlottingUtil.circlePoint(c,3*P,3*P,u);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[y,new SuperMap.Geometry.Point(y.x+P,y.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[S,new SuperMap.Geometry.Point(S.x+P,S.y)])}else{for(var f=SuperMap.Plot.PlottingUtil.circlePoint(c,h-P,h-P,u),g=180*Math.acos(P/(h-2*P))/Math.PI,M=u-g,d=u-180+g,m=u-180-g+360,v=[],b=u+g-360;b<=M;b+=4){var A=SuperMap.Plot.PlottingUtil.circlePoint(y,P,P,b);v.push(A)}var L=SuperMap.Plot.PlottingUtil.circlePoint(y,P,P,M);v.push(L);for(var T=[],x=d;x<m;x+=4){var O=SuperMap.Plot.PlottingUtil.circlePoint(f,P,P,x);T.push(O)}var w=SuperMap.Plot.PlottingUtil.circlePoint(f,P,P,m);T.push(w);var U=[];U=U.concat(v);for(var R=T.length-1;R>=0;R--)U.push(T[R]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,U)}}}}]),e}();SuperMap.Plot.CurveEight=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Runway=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.2),o.CLASS_NAME="SuperMap.Plot.Runway",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){for(var t=this.controlPoints[0],e=this.controlPoints[1],o=SuperMap.Plot.PlottingUtil.distance(t,e),l=this.scaleValues[0]*o,i=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,l/2),n=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,-l/2),r=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,a=[],s=r+90;s<=r+270;s+=10){var p=SuperMap.Plot.PlottingUtil.circlePoint(t,l/2,l/2,s);a.push(p)}for(var u=[],P=r-90;P<=r+90;P+=10){var c=SuperMap.Plot.PlottingUtil.circlePoint(e,l/2,l/2,P);u.push(c)}var y=[];(y=(y=(y=(y=y.concat(a)).concat(n)).concat(u)).concat(i)).push(y[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y);var h=new SuperMap.Geometry.Point(a[0].x,a[0].y);this.addScalePoint(h)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*o/l}this.calculateParts()}}]),e}();SuperMap.Plot.Runway=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.NodeChain=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues[1]=.1),o.CLASS_NAME="SuperMap.Plot.NodeChain",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t),this.isEdit||(this.scaleValues[1]=.25*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],l=e*this.scaleValues[1];if(0<this.subSymbols.length&&null!==this.subSymbols[0]&&void 0!==this.subSymbols[0])if(this.subSymbols[0].code>0)for(var i=0;i<t.length;i++){var n=new SuperMap.Geometry.Point(t[i].x,t[i].y+o);this.computeSubSymbol(this.subSymbols[0],n,2*l,0)}else this.addCircles(t,o,l);else this.addCircles(t,o,l);var r=new SuperMap.Geometry.Point(t[0].x,t[0].y+o);this.addScalePoint(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,90);this.addScalePoint(a)}}}},{key:"addCircles",value:function(t,e,o){for(var l={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},i=0;i<t.length;i++){var n=new SuperMap.Geometry.Point(t[i].x,t[i].y+e),r=this.getCirclePts(n,o);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,l)}}},{key:"getCirclePts",value:function(t,e){for(var o=[],l=0;l<=360;l+=12){var i=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l);o.push(i)}return o}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t)this.scaleValues[0]=(e.y-o[0].y)/l;else if(1===t){var i=SuperMap.Plot.PlottingUtil.distance(e,o[0]);this.scaleValues[1]=i/l}}this.calculateParts()}}]),e}();SuperMap.Plot.NodeChain=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.FreeCurve=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.FreeCurve",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){this.scalePoints=[];var t=[];if(this.controlPoints.length<3)t.push(this.controlPoints[0]),t.push(this.controlPoints[1]);else{if(!this.isEdit){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(100,100),l=Math.abs(e.lon-o.lon),i=this.reSample(this.controlPoints,l/50);i.length<3&&(i=this.controlPoints),this.controlPoints=[],this.controlPoints=this.controlPoints.concat(i)}var n=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,this.controlPoints,this.scaleValues);n.scalePoints=SuperMap.Plot.PlottingUtil.clearSamePts(n.scalePoints),n.scaleValues=SuperMap.Plot.PlottingUtil.clearSamePts(n.scaleValues),this.scaleValues=n.scaleValues;for(var r=0,a=n.scalePoints.length;r<a;r++){var s=n.scalePoints[r];s.isScalePoint=!0,s.tag=r,this.addScalePoint(s)}t=SuperMap.Plot.PlottingUtil.clonePoints(n.beizerPoints)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(2>o.length)return;var l=SuperMap.Plot.PlottingUtil.polylineDistance(o),i=-1;i=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var n=(e.x-o[i].x)/l,r=(e.y-o[i].y)/l;this.scaleValues[2*t]=n,this.scaleValues[2*t+1]=r}this.calculateParts()}},{key:"reSample",value:function(t,e){var o=[];if(null==t||e<0)return o;var l=t.length;if(l>2){var i=new SuperMap.Geometry.Point(0,0),n=0,r=0,a=0,s=2*Math.PI;i=t[0],o.push(i);for(var p=!1,u=!1,P=!1,c=1;c<l;c++)if(r=Math.sqrt((t[c].y-i.y)*(t[c].y-i.y)+(t[c].x-i.x)*(t[c].x-i.x)),SuperMap.Plot.PlottingUtil.equalFuzzy(0,r))p&&(i=t[c-1],c--,o.push(i),a=0,s=2*Math.PI,p=!1,u=!1,P=!1);else{var y=(t[c].x-i.x)/r,h=(t[c].y-i.y)/r;if(n=h>0||SuperMap.Plot.PlottingUtil.equalFuzzy(0,h)?Math.acos(y):2*Math.PI-Math.acos(y),s>2*Math.PI&&n+2*Math.PI<s?(n+=2*Math.PI,a<0&&(a+=2*Math.PI)):a<0&&n-2*Math.PI>a&&(n-=2*Math.PI,s>2*Math.PI&&(s-=2*Math.PI)),n>a&&n<s||SuperMap.Plot.PlottingUtil.equalFuzzy(0,n-a)||SuperMap.Plot.PlottingUtil.equalFuzzy(0,n-s)){var S=Math.atan(e/r);u?a<n-S&&(a=n-S):(u=!0,a=n-S),P?s>n+S&&(s=n+S):(P=!0,s=n+S),p=!0}else i=t[c-1],c--,o.push(i),a=0,s=2*Math.PI,p=!1,u=!1,P=!1}return o.push(t[l-1]),o}return o}},{key:"reSampleByAngle",value:function(t,e){var o=[],l=t.length;if(null==t||l<=0||e<=0)return o;for(var i=t,n=l,r=!1;SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].x,i[n-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(i[0].y,i[n-1].y);){if((n-=1)<=0)return o;r=!0}var a,s,p=[];for(a=0;a<n;a++)p.push(0);for(p[0]=1,p[n-1]=1,s=0,a=1;a<n-1;a++)if(SuperMap.Plot.PlottingUtil.distance(i[s],i[a])>1e-10&&SuperMap.Plot.PlottingUtil.distance(i[s],i[a+1])>1e-10){var u=180*SuperMap.Plot.PlottingUtil.InnerAngle(i[a],i[s],i[a+1])/Math.PI;u>e&&u<180-e&&(p[a]=1,s++)}var P=0;for(a=0;a<n;a++)1==p[a]&&P++;if(P>0){for(r&&P++,o=[],s=0,a=0;a<n;a++)1==p[a]&&(o[s++]=i[a]);return r&&(o[s]=o[0]),o}return o}}]),e}();SuperMap.Plot.FreeCurve=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.CombinationalCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.angleRange=[],o.defaultRadius=t.defaultRadius?t.defaultRadius:60,o.CLASS_NAME="SuperMap.Plot.CombinationalCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints),!(null==this.controlPoints||this.controlPoints.length<1)){var t=this.getCircleLonLat(this.controlPoints[0],this.defaultRadius);this.angleRange=[];for(var e=0;e<this.controlPoints.length;e++)null==this.scaleValues[e]&&(this.scaleValues[e]=t),this.angleRange.push([{Start:0,End:360}]);for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=0;l<o.length;l++)if(0!==this.angleRange[l].length&&(0!==this.angleRange[l][0].Start||0!==this.angleRange[l][0].End))for(var i=l+1;i<o.length;i++)if(0!==this.angleRange[i].length&&(0!==this.angleRange[i][0].Start||0!==this.angleRange[i][0].End)){var n=SuperMap.Plot.PlottingUtil.distance(o[l],o[i]);if(n<this.scaleValues[l]+this.scaleValues[i])if(n>Math.abs(this.scaleValues[l]-this.scaleValues[i]))for(var r=0;r<2;r++){var a,s,p;0==r?(p=l,a=SuperMap.Plot.PlottingUtil.radian(o[l],o[i])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((n*n+this.scaleValues[l]*this.scaleValues[l]-this.scaleValues[i]*this.scaleValues[i])/(2*n*this.scaleValues[l]))*SuperMap.Plot.PlottingUtil.RTOD):(p=i,a=SuperMap.Plot.PlottingUtil.radian(o[i],o[l])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((n*n+this.scaleValues[i]*this.scaleValues[i]-this.scaleValues[l]*this.scaleValues[l])/(2*n*this.scaleValues[i]))*SuperMap.Plot.PlottingUtil.RTOD);var u=a-s,P=a+s,c=u<0&&P>0||u>360||P>360;u=this.adjustAngle(u),P=this.adjustAngle(P);for(var y=this.angleRange[p].length-1;y>=0;y--)if(c){if(P>this.angleRange[p][y].End||SuperMap.Plot.PlottingUtil.equalFuzzy(P,this.angleRange[p][y].End)){this.angleRange[p].splice(y,1);continue}if(P>this.angleRange[p][y].Start&&(this.angleRange[p][y].Start=P),u<this.angleRange[p][y].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(u,this.angleRange[p][y].Start)){this.angleRange[p].splice(y,1);continue}u<this.angleRange[p][y].End&&(this.angleRange[p][y].End=u)}else if(u<this.angleRange[p][y].Start&&P>this.angleRange[p][y].End)this.angleRange[p].splice(y,1);else if(u>this.angleRange[p][y].Start&&P<this.angleRange[p][y].End)this.angleRange[p].push({Start:this.angleRange[p][y].Start,End:u}),this.angleRange[p].push({Start:P,End:this.angleRange[p][y].End}),this.angleRange[p].splice(y,1);else{if(u>this.angleRange[p][y].End)continue;if(u>this.angleRange[p][y].Start&&(this.angleRange[p][y].End=u),P<this.angleRange[p][y].Start)continue;P<this.angleRange[p][y].End&&(this.angleRange[p][y].Start=P)}}else{if(this.scaleValues[l]<this.scaleValues[i]){this.angleRange[l][0].Start=0,this.angleRange[l][0].End=0;break}this.angleRange[i][0].Start=0,this.angleRange[i][0].End=0}}for(var h=[],S=0;S<o.length;S++)if(0!==this.angleRange[S].length&&(0!==this.angleRange[S][0].Start||0!==this.angleRange[S][0].End))for(var f=this.angleRange[S].length-1;f>=0;f--){for(var g=this.adjustAngle(this.angleRange[S][f].Start),M=this.adjustAngle(this.angleRange[S][f].End);M<g;)M+=360;if(M-g==360)this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[o[S],new SuperMap.Geometry.Point(o[S].x,o[S].y+this.scaleValues[S])]);else{for(var d=[],m=(M-g)/72,v=g;v<M+m/2;v+=m){var b=o[S].x+this.scaleValues[S]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),A=o[S].y+this.scaleValues[S]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);d.push(new SuperMap.Geometry.Point(b,A))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),h.push(d)}}for(var L=[];0!==h.length;){var T=h[0];h.splice(0,1),void 0!==(T=this.generatePolygon(h,T))&&L.push(T)}for(var x=[],O=0;O<L.length;O++)x.push(L[O]);for(var w=x.length-1;w>=0;w--)for(var U=0;U<x[w].length;U++){for(var R in x)if(parseInt(R)!==w){var _=x[R];if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(_,x[w][U])){var E=w,C=parseInt(R);x[C].push(x[C][0]),x[E].push(x[E][0]),x[C]=x[C].concat(x[E]),x.splice(E,1);break}}if(!isNaN(E)&&!isNaN(C))break}for(var I=0;I<x.length;I++){var B={type:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,positionPoints:x[I],style:{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}};this.components.splice(0,0,B)}for(var D=0;D<o.length;D++){var G=new SuperMap.Geometry.Point(o[D].x+this.scaleValues[D],o[D].y);G.isScalePoint=!0,G.tag=D,this.addScalePoint(G)}}}},{key:"generatePolygon",value:function(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,1e-7))return e;for(var o,l=e[e.length-1],i=0;i<t.length;i++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].x,l.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].y,l.y,1e-7)){if(e=e.concat(t[i]),t.splice(i,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].x,l.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].y,l.y,1e-7)){for(var n=t[i].length-1;n>=0;n--)e.push(t[i][n]);if(t.splice(i,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.controlPoints.length)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMap.Plot.PlottingUtil.distance(o[t],e);this.scaleValues[t]=l}this.calculateParts()}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"getCircleLonLat",value:function(t,e){return null===this.map?2*this.getDefaultSubSymbolSize():this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map?((o=this.map.latLngToLayerPoint(L.latLng(t.y,t.x))).x+=e,this.map.layerPointToLatLng(L.point(o.x,o.y)).lng-t.x):this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map?((o=this.map.getPixelFromLonLat(new SuperMap.LonLat(t.x,t.y))).x+=e,this.map.getLonLatFromPixel(new SuperMap.Pixel(o.x,o.y)).lon-t.x):void 0;var o}}]),e}();SuperMap.Plot.CombinationalCircle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.ConcentricCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===o.scaleValues[0]&&(o.scaleValues[0]=0),void 0===o.scaleValues[1]&&(o.scaleValues[1]=360),o.CLASS_NAME="SuperMap.Plot.ConcentricCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!(null==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))||t.length<2)){for(2==t.length&&t.push(t[1].clone());this.scaleValues[0]>360;)this.scaleValues[0]-=360;for(;this.scaleValues[0]<0;)this.scaleValues[0]+=360;for(;this.scaleValues[1]>360;)this.scaleValues[1]-=360;for(;this.scaleValues[1]<0;)this.scaleValues[1]+=360;for(;this.scaleValues[1]<=this.scaleValues[0];)this.scaleValues[1]+=360;for(var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),l=[],i=[],n=Math.PI/180,r=(this.scaleValues[1]-this.scaleValues[0])/72,a=this.scaleValues[0];a<this.scaleValues[1]+r/2;a+=r){var s=t[0].x+e*Math.cos(a*n),p=t[0].y+e*Math.sin(a*n),u=t[0].x+o*Math.cos(a*n),P=t[0].y+o*Math.sin(a*n);l.push(new SuperMap.Geometry.Point(s,p)),i.push(new SuperMap.Geometry.Point(u,P))}for(var c=[],y=0;y<l.length;y++)c.push(l[y]);for(var h=i.length-1;h>=0;h--)c.push(i[h]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var S=t[0].x+e/2*Math.cos(this.scaleValues[0]*n),f=t[0].y+e/2*Math.sin(this.scaleValues[0]*n),g=t[0].x+o/2*Math.cos(this.scaleValues[1]*n),M=t[0].y+o/2*Math.sin(this.scaleValues[1]*n),d=new SuperMap.Geometry.Point(S,f);d.isScalePoint=!0,d.tag=0,this.addScalePoint(d);var m=new SuperMap.Geometry.Point(g,M);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=180*SuperMap.Plot.PlottingUtil.radian(o[0],e)/Math.PI;l>360;)l-=360;for(;l<0;)l+=360;0==t?this.scaleValues[0]=l:1==t&&(this.scaleValues[1]=l)}this.calculateParts()}}]),e}();SuperMap.Plot.ConcentricCircle=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.SymbolTextBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.roundBox=!!t.roundBox&&t.roundBox,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.WITHTIPBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.SymbolTextBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){this.roundBox=null,this.textBoxType=null,function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,i;this.scalePoints=[];var n=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,l=this.controlPoints[1].x):(e=this.controlPoints[1].x,l=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y);var r=1,a=2,s=3,p=4;if(this.roundBox){var u=Math.max(e,l),P=Math.min(e,l),c=Math.max(o,i),y=Math.min(o,i),h=.1*Math.min(Math.abs(e-l),Math.abs(o-i)),S=new SuperMap.Geometry.Point(P+h,y+h),f=new SuperMap.Geometry.Point(P+h,c-h),g=new SuperMap.Geometry.Point(u-h,c-h),M=new SuperMap.Geometry.Point(u-h,y+h),d=this.calculateArc(S,h,3*Math.PI/2,Math.PI,-1,180),m=this.calculateArc(f,h,Math.PI,Math.PI/2,-1,180),v=this.calculateArc(g,h,Math.PI/2,0,-1,180),b=this.calculateArc(M,h,2*Math.PI,3*Math.PI/2,-1,180);r=d.length,a=d.length+m.length,s=d.length+m.length+v.length,p=d.length+m.length+v.length+b.length,n=d.concat(m,v,b)}else n.push(new SuperMap.Geometry.Point(e,i)),n.push(new SuperMap.Geometry.Point(e,o)),n.push(new SuperMap.Geometry.Point(l,o)),n.push(new SuperMap.Geometry.Point(l,i));this.isEdit||(this.scaleValues[1]=e+.1*(l-e),this.scaleValues[2]=i+-.3*(o-i));var A=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]),L=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,l,i);if(this.textBoxType===SuperMap.Plot.TextBoxType.WITHTIPBOX)switch(this.addScalePoint(A,0),L){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-i)*t)),n.splice(r,0,new SuperMap.Geometry.Point(e,o-(o-i)*t)),n.splice(r,0,A),n.splice(r,0,new SuperMap.Geometry.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,o)),n.splice(a,0,new SuperMap.Geometry.Point(l-(l-e)*t,o)),n.splice(a,0,A),n.splice(a,0,new SuperMap.Geometry.Point(e+(l-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(l,o-(o-i)*t)),n.splice(s,0,new SuperMap.Geometry.Point(l,i+(o-i)*t)),n.splice(s,0,A),n.splice(s,0,new SuperMap.Geometry.Point(l,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,i)),n.splice(p,0,new SuperMap.Geometry.Point(e+(l-e)*t,i)),n.splice(p,0,A),n.splice(p,0,new SuperMap.Geometry.Point(l-(l-e)*t,i))}if(0!==n.length)if(this.textBoxType===SuperMap.Plot.TextBoxType.NONEBOX){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,weight:0,lineWidthLimit:!0})}else this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.annotationContent(e,o,l,i),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint)if(0===t)this.scaleValues[1]=e.x,this.scaleValues[2]=e.y;else if(1===t){var o,l,i,n,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,i=this.controlPoints[1].x):(o=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,l=this.controlPoints[1].y):(n=this.controlPoints[1].y,l=this.controlPoints[0].y),r=this.scaleValues[1],a=this.scaleValues[2];var p=(l-n)/(i-o),u=.25;switch(r<o?a>l?Math.abs((a-l)/(r-o))>p?2:1:a<n&&Math.abs((a-n)/(r-o))>p?4:1:r>i?a>l?Math.abs((a-l)/(r-i))>p?2:3:a<n&&Math.abs((a-n)/(r-i))>p?4:3:a>l?2:a<n?4:0){case 1:case 3:var P=s.y+(e.y-s.y);P>l&&(P=l),P<(l+n)/2&&(P=(l+n)/2),u=1-2*(l-P)/(l-n);break;case 2:case 4:var c=s.x+(e.x-s.x);c>i&&(c=i),c<(o+i)/2&&(c=(o+i)/2),u=1-2*(i-c)/(i-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}},{key:"calculateArc",value:function(t,e,o,l,i,n){(!i||1!=i&&-1!=i)&&(i=-1),n||(n=360);for(var r=Math.PI/n/2,a=r*i,s=Math.abs(l-o),p=[],u=o,P=0;P<s;P+=r){var c=new SuperMap.Geometry.Point(Math.cos(u)*e+t.x,Math.sin(u)*e+t.y);p.push(c),u=(u=(u+=a)<0?u+2*Math.PI:u)>2*Math.PI?u-2*Math.PI:u}return p}},{key:"getAction",value:function(t,e,o,l,i,n){var r=(l-n)/(i-o);return t<o?e>l?Math.abs((e-l)/(t-o))>r?2:1:e<n&&Math.abs((e-n)/(t-o))>r?4:1:t>i?e>l?Math.abs((e-l)/(t-i))>r?2:3:e<n&&Math.abs((e-n)/(t-i))>r?4:3:e>l?2:e<n?4:0}}]),e}();SuperMap.Plot.SymbolTextBox=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.GeoTooltipBoxM=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBoxM",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destory",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e,o,l,i;t[0].x<t[1].x?(e=t[0].x,l=t[1].x):(e=t[1].x,l=t[0].x),t[0].y<t[1].y?(i=t[0].y,o=t[1].y):(i=t[1].y,o=t[0].y),this.scalePoints=[];var n=[];n.push(new SuperMap.Geometry.Point(e,i)),n.push(new SuperMap.Geometry.Point(e,o)),n.push(new SuperMap.Geometry.Point(l,o)),n.push(new SuperMap.Geometry.Point(l,i)),this.isEdit||(this.scaleValues[0]=e,this.scaleValues[1]=i-.3*(o-i),this.scaleValues[2]=e+.5*(l-e),this.scaleValues[3]=i-.3*(o-i));for(var r=[],a=[],s=0;s<this.scaleValues.length/2;s++)r.push(this.getAction(this.scaleValues[2*s],this.scaleValues[2*s+1],e,o,l,i)),a.push(new SuperMap.Geometry.Point(this.scaleValues[2*s],this.scaleValues[2*s+1]));for(var p,u,P,c,y=a.length,h=[],S=[],f=[],g=[],M=[],d=0;d<r.length;d++)0===r[d]&&h.push(a[d]),1===r[d]&&S.push(a[d]),2===r[d]&&f.push(a[d]),3===r[d]&&g.push(a[d]),4===r[d]&&M.push(a[d]);var m=r.slice();m.sort();var v=new SuperMap.Geometry.Point(0,0);if(m[0]===m[m.length-1]&&0!==m[0]){var b=[];switch(m[0]){case 0:break;case 1:p=1/(2*S.length+1);for(var A=new SuperMap.Geometry.Point,L=0;L<2*S.length;L++)A=new SuperMap.Geometry.Point(e,i+(o-i)*p*(L+1)),b.unshift(A);break;case 2:u=1/(2*f.length+1);for(var T=new SuperMap.Geometry.Point,x=0;x<2*f.length;x++)T=new SuperMap.Geometry.Point(e+(l-e)*u*(x+1),o),b.unshift(T);break;case 3:P=1/(2*g.length+1);for(var O=new SuperMap.Geometry.Point,w=0;w<2*g.length;w++)O=new SuperMap.Geometry.Point(l,i+(o-i)*P*(w+1)),b.push(O);break;case 4:c=1/(2*M.length+1);for(var U=new SuperMap.Geometry.Point,R=0;R<2*M.length;R++)U=new SuperMap.Geometry.Point(e+(l-e)*c*(R+1),i),b.push(U)}for(var _=0;_<y;_++)for(var E=0;E<y;E++){var C=SuperMap.Plot.PlottingUtil.intersectLineSegs(b[2*_+1],a[_],b[2*E],a[E],v);if(C&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,b[2*_+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,b[2*_+1].y)&&(C=!1),C){var I=a[E].clone();a[E]=a[_],a[_]=I}}for(var B=0;B<y;B++)n.splice(m[0],0,b[2*B]),n.splice(m[0],0,a[B]),n.splice(m[0],0,b[2*B+1])}else{for(var D,G,V=[],N=[],k=[],Y=[],z=0;z<r.length;z++)switch(r[z]){case 0:break;case 1:p=1/(2*S.length+1);for(var j=0;j<2*S.length;j++){var F=new SuperMap.Geometry.Point(e,i+(o-i)*p*(j+1));V.unshift(F)}for(var W=0;W<S.length;W++)for(var H=1;H<S.length;H++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(V[2*W+1],S[W],V[2*H],S[H],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,V[2*W+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,V[2*W+1].y)&&(D=!1),D&&(G=S[H].clone(),S[H]=S[W],S[W]=G);break;case 2:u=1/(2*f.length+1);for(var q=0;q<2*f.length;q++){var J=new SuperMap.Geometry.Point(e+(l-e)*u*(q+1),o);N.unshift(J)}for(var X=0;X<f.length;X++)for(var Z=1;Z<f.length;Z++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(N[2*X+1],f[X],N[2*Z],f[Z],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,N[2*X+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,N[2*X+1].y)&&(D=!1),D&&(G=f[Z].clone(),f[Z]=f[X],f[X]=G);break;case 3:P=1/(2*g.length+1);for(var Q=0;Q<2*g.length;Q++){var K=new SuperMap.Geometry.Point(l,i+(o-i)*P*(Q+1));k.push(K)}for(var $=0;$<g.length;$++)for(var tt=1;tt<g.length;tt++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(k[2*$+1],g[$],k[2*tt],g[tt],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,k[2*$+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,k[2*$+1].y)&&(D=!1),D&&(G=g[tt].clone(),g[tt]=g[$],g[$]=G);break;case 4:c=1/(2*M.length+1);for(var et=0;et<2*M.length;et++){var ot=new SuperMap.Geometry.Point(e+(l-e)*c*(et+1),i);Y.push(ot)}for(var lt=0;lt<M.length;lt++)for(var it=1;it<M.length;it++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(Y[2*lt+1],M[lt],Y[2*it],M[it],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,Y[2*lt+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,Y[2*lt+1].y)&&(D=!1),D&&(G=M[it].clone(),M[it]=M[lt],M[lt]=G)}for(var nt=0;nt<M.length;nt++)n.splice(4,0,Y[2*nt]),n.splice(4,0,M[nt]),n.splice(4,0,Y[2*nt+1]);for(var rt=0;rt<g.length;rt++)n.splice(3,0,k[2*rt]),n.splice(3,0,g[rt]),n.splice(3,0,k[2*rt+1]);for(var at=0;at<f.length;at++)n.splice(2,0,N[2*at]),n.splice(2,0,f[at]),n.splice(2,0,N[2*at+1]);for(var st=0;st<S.length;st++)n.splice(1,0,V[2*st]),n.splice(1,0,S[st]),n.splice(1,0,V[2*st+1])}for(var pt=0;pt<a.length;pt++)this.addScalePoint(a[pt],pt)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),this.annotationContent(e,o,l,i),this.finish()}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(null==t&&void 0===t||(this.scaleValues[2*t]=e.x,this.scaleValues[2*t+1]=e.y)),this.calculateParts()}},{key:"getAction",value:function(t,e,o,l,i,n){var r=(l-n)/(i-o);return t<o?e>l?Math.abs((e-l)/(t-o))>r?2:1:e<n&&Math.abs((e-n)/(t-o))>r?4:1:t>i?e>l?Math.abs((e-l)/(t-i))>r?2:3:e<n&&Math.abs((e-n)/(t-i))>r?4:3:e>l?2:e<n?4:0}}]),e}();SuperMap.Plot.GeoTooltipBoxM=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.GeoTooltipBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.126),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"destroy",value:function(){(function t(e,o,l){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,o);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,o,l)}if("value"in i)return i.value;var r=i.get;return void 0!==r?r.call(l):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,i,n,r;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,l=this.controlPoints[1].x):(e=this.controlPoints[1].x,l=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(i=this.controlPoints[0].y,o=this.controlPoints[1].y):(i=this.controlPoints[1].y,o=this.controlPoints[0].y),n=this.controlPoints[2].x,r=this.controlPoints[2].y;var a=0,s=(o-i)/(l-e);a=n<e?r>o?Math.abs((r-o)/(n-e))>s?2:1:r<i&&Math.abs((r-i)/(n-e))>s?4:1:n>l?r>o?Math.abs((r-o)/(n-l))>s?2:3:r<i&&Math.abs((r-i)/(n-l))>s?4:3:r>o?2:r<i?4:0,this.scalePoints=[];var p=[];switch(p.push(new SuperMap.Geometry.Point(e,i)),p.push(new SuperMap.Geometry.Point(e,o)),p.push(new SuperMap.Geometry.Point(l,o)),p.push(new SuperMap.Geometry.Point(l,i)),a){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-i)*t)),p.splice(a,0,new SuperMap.Geometry.Point(e,o-(o-i)*t)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(e,i+(o-i)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,o)),p.splice(a,0,new SuperMap.Geometry.Point(l-(l-e)*t,o)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(e+(l-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(l,o-(o-i)*t)),p.splice(a,0,new SuperMap.Geometry.Point(l,i+(o-i)*t)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(l,o-(o-i)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(l-(l-e)*t,i)),p.splice(a,0,new SuperMap.Geometry.Point(e+(l-e)*t,i)),p.splice(a,0,this.controlPoints[2].clone()),p.splice(a,0,new SuperMap.Geometry.Point(l-(l-e)*t,i))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p),this.annotationContent(e,o,l,i)}this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o,l,i,n,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,i=this.controlPoints[1].x):(o=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,l=this.controlPoints[1].y):(n=this.controlPoints[1].y,l=this.controlPoints[0].y),r=this.controlPoints[2].x,a=this.controlPoints[2].y;var p=(l-n)/(i-o),u=.25;switch(r<o?a>l?Math.abs((a-l)/(r-o))>p?2:1:a<n&&Math.abs((a-n)/(r-o))>p?4:1:r>i?a>l?Math.abs((a-l)/(r-i))>p?2:3:a<n&&Math.abs((a-n)/(r-i))>p?4:3:a>l?2:a<n?4:0){case 1:case 3:var P=s.y+(e.y-s.y);P>l&&(P=l),P<(l+n)/2&&(P=(l+n)/2),u=1-2*(l-P)/(l-n);break;case 2:case 4:var c=s.x+(e.x-s.x);c>i&&(c=i),c<(o+i)/2&&(c=(o+i)/2),u=1-2*(i-c)/(i-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}}]),e}();SuperMap.Plot.GeoTooltipBox=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Trapezoid=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.Trapezoid",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=[],o=t[0],l=t[1],i=t[2],n=new SuperMap.Geometry.Point(0,0);this.GetPointsByTrapezoid(1,i,l,o,n),e.push(o),e.push(l),e.push(i),e.push(n);var r=SuperMap.Plot.PlottingUtil.intersectLines(o,l,i,n),a=r.intersectPoint;r.isIntersectLines&&(a.x>o.x&&a.x<l.x||a.y>o.y&&a.y<l.y||a.x<o.x&&a.x>l.x||a.y<o.y&&a.y>l.y)&&(e[0]=n,e[3]=o),4==e.length&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,l,i){var n=e.x,r=e.y,a=o.x,s=o.y,p=l.x,u=l.y,P=0,c=0,y=0,h=0;if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(r-s),0))P=n+a-p,c=u;else if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(n-a),0))P=p,c=r+s-u;else{var S=1*(r-s)/(n-a),f=u-S*p;c=S*(P=((s+r)/2+(n+a)/(2*S)-f)/(S+1/S))+f,P=2*P-p,c=2*c-u}var g=Math.sqrt(1*(n-a)*(n-a)+1*(r-s)*(r-s)),M=Math.sqrt(1*(n-P)*(n-P)+1*(r-c)*(r-c));g>0?(y=n+(a-n)*M/g,h=r+(s-r)*M/g):(y=n,h=r);var d=y+(P-y)*t,m=h+(c-h)*t;i.x=d,i.y=m}}]),e}();SuperMap.Plot.Trapezoid=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Brace=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.1)),o.CLASS_NAME="SuperMap.Plot.Brace",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],o=t[1],l=SuperMap.Plot.PlottingUtil.distance(e,o);this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.1));for(var i=this.scaleValues[0],n=this.scaleValues[1],r=new SuperMap.Geometry.Point(l*i,l*i),a=new SuperMap.Geometry.Point(l*(.5-n/2),0),s=new SuperMap.Geometry.Point(.5*l,-l*n),p=new SuperMap.Geometry.Point(l*(.5+n/2),0),u=new SuperMap.Geometry.Point(l*(1-i),l*i),P=[],c=180*Math.PI/180,y=270*Math.PI/180,h=3*Math.PI/180,S=c;S<=y;S+=h){var f=new SuperMap.Geometry.Point(r.x+l*i,r.y);f=SuperMap.Plot.PlottingUtil.rotateAngle(r,S,f),P.push(f)}P.push(a),P.push(s),P.push(p),c=270*Math.PI/180,y=360*Math.PI/180;for(var g=c;g<=y;g+=h){var M=new SuperMap.Geometry.Point(u.x+l*i,u.y);M=SuperMap.Plot.PlottingUtil.rotateAngle(u,g,M),P.push(M)}for(var d=SuperMap.Plot.PlottingUtil.radian(e,o),m=[],v=0;v<P.length;v++){var b=new SuperMap.Geometry.Point(P[v].x+e.x,P[v].y+e.y);b=SuperMap.Plot.PlottingUtil.rotateAngle(e,d,b),m.push(b)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.scalePoints=[];var A=new SuperMap.Geometry.Point(l*i,0),L=new SuperMap.Geometry.Point(A.x+e.x,A.y+e.y);(L=SuperMap.Plot.PlottingUtil.rotateAngle(e,d,L)).isScalePoint=!0,L.tag=0,this.addScalePoint(L);var T=new SuperMap.Geometry.Point(s.x+e.x,s.y+e.y);SuperMap.Plot.PlottingUtil.rotateAngle(e,d,T),T.isScalePoint=!0,T.tag=1,this.addScalePoint(T)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(o[0],e)/l;i>0&&i<.4&&(this.scaleValues[0]=i)}else if(1==t){var n=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),r=SuperMap.Plot.PlottingUtil.distance(e,n)/l;0<r&&.2>r&&(this.scaleValues[1]=r)}}this.calculateParts()}}]),e}();SuperMap.Plot.Brace=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.RegularPolygon=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(1),o.CLASS_NAME="SuperMap.Plot.RegularPolygon",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=this.controlPoints.length+1,o=2*Math.PI/e;if(!this.isEdit){var l=this.controlPoints[this.controlPoints.length-1],i=new SuperMap.Geometry.Point(this.controlPoints[this.controlPoints.length-1].x,this.controlPoints[this.controlPoints.length-1].y);SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o,i),this.scaleValues[0]=SuperMap.Plot.PlottingUtil.distance(t[0],this.calculateMidPt(l,i))/SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1])}var n=[],r=this.controlPoints[this.controlPoints.length-1].clone();n.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r);n.push(a);for(var s=1;s<e;s++)r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),n.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r),n.push(a);var p=n[1];this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,fill:!1}),this.addScalePoint(p),this.finish()}}},{key:"calculateMidPt",value:function(t,e){return new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2)}},{key:"modifyPoint",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[this.controlPoints.length-1]),l=this.scalePoints[0],i=SuperMap.Plot.PlottingUtil.projectPoint(e,this.controlPoints[0],l),n=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],i);this.scaleValues[0]=n/o}this.calculateParts()}}]),e}();SuperMap.Plot.RegularPolygon=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.ArrowLine=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.arrowAngle=t.arrowAngle?t.arrowAngle:45,0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.ArrowLine",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(o));var l,i=this.scaleValues[0]*o,n=this.arrowAngle*Math.PI/180/2,r=(l=e.length>2?SuperMap.Plot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMap.Plot.PlottingUtil.radian(e[1],e[0]))-n,a=e[e.length-1].x+i*Math.cos(r),s=e[e.length-1].y+i*Math.sin(r),p=new SuperMap.Geometry.Point(a,s),u=l+n,P=e[e.length-1].x+i*Math.cos(u),c=e[e.length-1].y+i*Math.sin(u),y=new SuperMap.Geometry.Point(P,c),h=[];h.push(p),h.push(e[e.length-1].clone()),h.push(y);var S={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},f=SuperMap.Plot.PlottingUtil.radian(e[0],e[1]);r=f-n,a=e[0].x+i*Math.cos(r),s=e[0].y+i*Math.sin(r),p=new SuperMap.Geometry.Point(a,s),u=f+n,P=e[0].x+i*Math.cos(u),c=e[0].y+i*Math.sin(u),y=new SuperMap.Geometry.Point(P,c);var g=[];g.push(p),g.push(e[0].clone()),g.push(y);var M=this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d=this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(M,g,S):this.scaleValues[1]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(M,g,S),this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(d,h,S):this.scaleValues[2]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(d,h,S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.ArrowLine=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.style=null,this.libID=e.libID?e.libID:0,this.code=e.code?e.code:0,this.maxEditPts=e.maxEditPts?e.maxEditPts:SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts(e.libID,e.code),this.minEditPts=e.minEditPts?e.minEditPts:SuperMap.Plot.AlgoSymbolFactory.getMinEditPts(e.libID,e.code),this.isEdit=!!e.isEdit&&e.isEdit,this.controlPoints=e.controlPoints?e.controlPoints:[],this.scalePoints=e.scalePoints?e.scalePoints:[],this.scaleValues=e.scaleValues?e.scaleValues:[],this.subSymbols=e.subSymbols?e.subSymbols:SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(e.libID,e.code),this.polylineConnectLocationPoint=!!e.polylineConnectLocationPoint&&e.polylineConnectLocationPoint,this.style=e.style?e.style:SuperMap.Plot.PlottingUtil.copyAttributes(this.style,SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle(e.libID,e.code)),this.textContent=e.textContent?e.textContent:"",this.map=e.map?e.map:null,this.scene=e.scene?e.scene:null,this.subSymbolDefaultPixelSize=e.subSymbolDefaultPixelSize?e.subSymbolDefaultPixelSize:30,this.components=[],this.symbolType=0===this.libID?this.code:2}return l(t,[{key:"addScalePoint",value:function(t,e){if(null!=t){void 0!==e&&null!==e||(e=this.scalePoints.length);var o=new SuperMap.Geometry.Point(t.x,t.y);o.isScalePoint=!0,o.tag=e,this.scalePoints.push(o)}}},{key:"setOptions",value:function(t){if(t)for(var e in this)t[e]&&(this[e]=t[e])}},{key:"getAlgorithmResult",value:function(t){t.components=this.components,t.scalePoints=this.scalePoints,t.scaleValues=this.scaleValues}}]),l(t,[{key:"destroy",value:function(){this.minEditPts=null,this.maxEditPts=null,this.controlPoints.length=0,this.controlPoints=null,this.scalePoints.length=0,this.scalePoints=null,this.scaleValues.length=0,this.scaleValues=null,this.subSymbols.length=0,this.subSymbols=null,this.subSymbolSize=0,this.components=[],this.style=null}},{key:"init",value:function(){if(this.components=[],this.scalePoints=[],this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),this.maxEditPts<this.controlPoints.length&&this.symbolType!==SuperMap.Plot.SymbolType.ELLIPSESYMBOL){var t=this.controlPoints.shift(),e=this.controlPoints.pop();this.controlPoints=[],this.controlPoints.push(t,e)}}},{key:"finish",value:function(){}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clonePoints(t),this.controlPoints.length>=this.minEditPts){var e={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:t,style:{}};if(e.type===SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL&&e.positionPoints.push(e.positionPoints[0]),this.symbolType===SuperMap.Plot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var o=!1;void 0!==this.controlPoints[0].z&&(o=!0);var l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMap.Plot.PlottingUtil.isRight(this.controlPoints[0],this.controlPoints[1],this.controlPoints[2])&&(l=-l);for(var i=[],n=1;n<this.controlPoints.length;n++)i.push(this.controlPoints[n].clone());var r=SuperMap.Plot.PlottingUtil.parallel(i,l);if(this.controlPoints[0].x=r[0].x,this.controlPoints[0].y=r[0].y,o)for(var a=0;a<i.length;a++)r[a].z=i[a].z;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r)}}else this.components.push(e)}}},{key:"modifyPoint",value:function(t,e){if(0===this.libID&&31===this.code){if(0===t)return this.controlPoints[0].x=(this.controlPoints[1].x+this.controlPoints[3].x)/2,void(this.controlPoints[0].y=(this.controlPoints[1].y+this.controlPoints[3].y)/2);var o=-1;0===(o=(t+2)%4)&&(o=4);var l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[t]),i=SuperMap.Plot.PlottingUtil.findPointInLine(this.controlPoints[0],this.controlPoints[o],l),n=new SuperMap.Geometry.Point(2*this.controlPoints[0].x-i.x,2*this.controlPoints[0].y-i.y),r=this.getPixelFromLonLat(i.x,i.y),a=this.getPixelFromLonLat(n.x,n.y),s=!1;(SuperMap.Plot.PlottingUtil.equalFuzzy(r.x-a.x,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(r.y-a.y,0))&&(s=!0),s?(this.controlPoints[o].x=n.x,this.controlPoints[o].y=n.y,this.controlPoints[t].x=i.x,this.controlPoints[t].y=i.y):(this.controlPoints[o].x=i.x,this.controlPoints[o].y=i.y,this.controlPoints[t].x=n.x,this.controlPoints[t].y=n.y)}else this.computeScaleValues(t,e),this.calculateParts()}},{key:"computeScaleValues",value:function(){}},{key:"getLonLatDistanceFromPixel",value:function(t){if(null===this.map)return 0;var e,o;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var l=this.map.layerPointToLatLng(L.point(0,0)),i=this.map.layerPointToLatLng(L.point(t,0));e=new SuperMap.Geometry.Point(l.lng,l.lat),o=new SuperMap.Geometry.Point(i.lng,i.lat)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){l=this.map.getLonLatFromPixel(new SuperMap.Pixel(0,0)),i=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,0));e=new SuperMap.Geometry.Point(l.lon,l.lat),o=new SuperMap.Geometry.Point(i.lon,i.lat)}return SuperMap.Plot.PlottingUtil.distance(e,o)}},{key:"getPixelDistanceFromLonLat",value:function(t){if(null===this.map)return 0;var e,o;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var l=this.map.latLngToLayerPoint(L.latLng(0,0)),i=this.map.latLngToLayerPoint(L.latLng(t,0));e=new SuperMap.Geometry.Point(l.x,l.y),o=new SuperMap.Geometry.Point(i.x,i.y)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){l=this.map.getPixelFromLonLat(new SuperMap.LonLat(0,0)),i=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,0));e=new SuperMap.Geometry.Point(l.x,l.y),o=new SuperMap.Geometry.Point(i.x,i.y)}return SuperMap.Plot.PlottingUtil.distance(e,o)}},{key:"getPixelFromLonLat",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.latLngToLayerPoint(L.latLng(e,t));return{x:o.x,y:o.y}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var l=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,e));return{x:l.x,y:l.y}}}},{key:"getLonLatFromPixel",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.layerPointToLatLng(L.point(t,e));return{lon:o.lng,lat:o.lat}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var l=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,e));return{lon:l.lon,lat:l.lat}}}},{key:"pixelBoundsToLonLat",value:function(t){var e=this.getLonLatFromPixel(t.left,t.top),o=this.getLonLatFromPixel(t.right,t.bottom);return new SuperMap.Bounds(e.lon,o.lat,o.lon,e.lat)}},{key:"annotationContent",value:function(t,e,o,l){var i=this.textContent;if(0!==i.length){var n=i.split("\n");i="";for(var r=0,a=0;a<n.length;a++){r++;var s=n[a],p=SuperMap.Plot.PlottingUtil.getTextWidth(this.style,s),u=this.getPixelFromLonLat(t,e),P=this.getPixelFromLonLat(o,l),c=parseFloat(Math.abs(P.x-u.x)),y=parseFloat(Math.abs(u.y-P.y)),h=0;if(this.style.weight?h=parseFloat(this.style.fontSize)+2*this.style.weight+.2*parseFloat(this.style.fontSize)+r:this.style.strokeWidth&&(h=parseFloat(this.style.fontSize)+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)+r),h>y)break;if(p>=c){var S=s.split("");s="";for(var f="",g=S.length,M=0;M<g;M++){if(f+=S[M],SuperMap.Plot.PlottingUtil.getTextWidth(this.style,f)>=c){var d=S[M];if(S[M]="\n",r++,this.style.weight?h=parseFloat(this.style.fontSize)*r+r+2*this.style.weight+.2*parseFloat(this.style.fontSize):this.style.strokeWidth&&(h=parseFloat(this.style.fontSize)*r+r+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)),!(h<y)){0===i.length?i=s:(i+="\n",i+=s);break}S[M]+=d,f=d}s+=S[M],M===g-1&&(0===i.length?i=s:(i+="\n",i+=s))}}else 0===i.length?i=s:(i+="\n",i+=s)}if(0!==i.length){var m=this.style.labelAlign,v=0,b=0;"l"===m[0]?v=t:"r"===m[0]?v=o:"c"===m[0]&&(v=(t+o)/2),"t"===m[1]?b=e:"b"===m[1]?b=l:"m"===m[1]&&(b=(e+l)/2);var A=new SuperMap.Geometry.Point(v,b),L={};L.positionPoints=[A],L.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,L.textContent=i,L.style={surroundLineFlag:!1,labelAlign:m},this.components.push(L)}}}},{key:"addCell",value:function(t,e,o,l){if(t&&e){var i={};i.type=t,i.textContent=l,i.positionPoints=e,i.style=null==o?{surroundLineFlag:!1}:o,this.components.push(i)}}},{key:"addText",value:function(t,e,o,l,i){if(t&&e){var n={};n.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,n.textContent=t,n.positionPoints=[e];var r=o/t.length/2;n.style={},n.style.surroundLineFlag=!1,n.style.labelRotation=-l,n.style.fontSize=r,n.style.fontColor=void 0===i?"#000000":i,n.style.fontSizeLimit=!0,n.style.sizeFixed=!1,n.style.labelAlign="cm",n.style.label=t,this.components.push(n)}}},{key:"getLinePts",value:function(t,e,o){var l=new Object;if(e>.5)return l.startIndex=0,l.startPt=t[0],l.endIndex=t.length-1,l.endPt=t[t.length-1],l;null==o&&(o=.5);var i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i*(o-e),t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i*(o+e),t);return l.startIndex=n.index,l.startPt=n.pts,l.endIndex=r.index,l.endPt=r.pts,l}},{key:"computeDashLine",value:function(t,e,o){var l=[],i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(i<=0)return[];for(var n,r=o[0],a=1,s=0,p=!0,u=!0;s<i;){var P,c=[];c.push(r),s+=t;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(P=y.index,n=y.pts,!(p=y.bfind))break;if(a<P)for(var h=a;h<P;h++)c.push(o[h]);c.push(n),l.push(c),s+=e;var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(P=S.index,r=S.pts,a=P+1,!(u=S.bfind))break}if(!p){var f=[];f.push(r);for(var g=a;g<o.length;g++)f.push(o[g]);2===f.length&&SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(f[0],f[1]),0)||l.push(f)}if(!u){var M=o[o.length-1],d=SuperMap.Plot.PlottingUtil.distance(n,M);if(d*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(d,0)){var m=SuperMap.Plot.PlottingUtil.linePnt(M,n,d),v=[];v.push(m),v.push(M),l.push(v)}}return l}},{key:"addArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue()));var i=t.slice();o=l*e;var n,r=t[t.length-1],a=o*Math.cos(.125*Math.PI);if(t.length>2){for(var s=-1,p=t.length-2;p>=0;p--)if(o<SuperMap.Plot.PlottingUtil.distance(r,t[p])){s=p;break}t.splice(s+1,t.length-s),t.push(r)}if(t.length>1){SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(n.pts)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var u=t[t.length-1],P=r,c=o;if(void 0===u)return t;var y=SuperMap.Plot.PlottingUtil.radian(u,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(P,c,c,y+157.5),S=SuperMap.Plot.PlottingUtil.circlePoint(P,c,c,y+202.5),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,r,S],f)}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),o=l*e;var i=t[t.length-1];if(t.length>2){for(var n=-1,r=t.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,t[r])){n=r;break}t.splice(n+1,t.length-n),t.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var a=t[t.length-2],s=t[t.length-1],p=o;if(void 0===a)return t;if(!(SuperMap.Plot.PlottingUtil.distance(a,s)<o)){var u=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),y=SuperMap.Plot.PlottingUtil.circlePoint(s,.5*p,.5*p,u+180),h=[];h.push(P),h.push(t[t.length-1]),h.push(c),h.push(y);var S={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,S)}}},{key:"getDefaultSubSymbolSize",value:function(){var t=0;if(this.map){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(this.subSymbolDefaultPixelSize,0),l=new SuperMap.Geometry.Point(e.lon,e.lat),i=new SuperMap.Geometry.Point(o.lon,o.lat);t=SuperMap.Plot.PlottingUtil.distance(l,i)}if(0===t){if(0!==this.subSymbolSize)return this.subSymbolSize;for(var n=0,r=0;r<this.controlPoints.length-1;r++)n+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[r],this.controlPoints[r+1]);t=.3*n}return t}},{key:"getTextBounds",value:function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.innerHTML=e;var l=new SuperMap.Bounds(o.clientLeft,o.clientTop+o.clientHeight-6,o.clientLeft+o.clientWidth,o.clientTop+4),i=this.pixelBoundsToLonLat(l);return document.body.removeChild(o),i}},{key:"calAssistantLine",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&(t.splice(1,0,new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[0].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[1].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y)));var e={type:24,surroundLineFlag:!1,positionPoints:t,style:{color:"#0000ff",opacity:1,weight:1,dashArray:"5, 5",strokeColor:"#0000ff",strokeOpacity:1,strokeWidth:1,strokeDashstyle:"dash",lineColorLimit:!0,lineTypeLimit:!0,lineWidthLimit:!0,surroundLineFlag:!1}};this.components.push(e)}},{key:"getSubSymbolScaleValue",value:function(t,e){var o=0;o=t&&!SuperMap.Plot.PlottingUtil.equalFuzzy(t,0)?t:SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);var l=this.getDefaultSubSymbolSize()/o;return void 0===e&&(e=.3),(l>e||l<=0)&&(l=e),l}},{key:"computeSubSymbol",value:function(t,e,o,l,i,n){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===i&&(i=0),void 0===n&&(n=0);for(var r=SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,s=0,p=0,u=0,P=0;P<r.length;P++)for(var c=SuperMap.Plot.Primitives.getSpatialData(r[P].type,r[P].positionPoints,r[P].textContent,0,r[P].isCalculate),y=0,h=c.length;y<h;y++)a<c[y].x&&(a=c[y].x),s<c[y].y&&(s=c[y].y),p>c[y].x&&(p=c[y].x),u>c[y].y&&(u=c[y].y);var S=new SuperMap.Geometry.Point(a,s),f=new SuperMap.Geometry.Point(p,u),g=(S.y-f.y)/o,M=(S.x-f.x)/o,d=M>g?M:g,m=new SuperMap.Geometry.Point(.5*(S.x+f.x),.5*(S.y+f.y));m.x+=i*(S.x-f.x),m.y+=n*(S.y-f.y);for(var v=0,b=r.length;v<b;v++){for(var A=0,L=r[v].positionPoints.length;A<L;A++)r[v].positionPoints[A].x-=m.x,r[v].positionPoints[A].y-=m.y,r[v].positionPoints[A].x/=d,r[v].positionPoints[A].y/=d,SuperMap.Plot.PlottingUtil.rotateAngle(new SuperMap.Geometry.Point(0,0),l*Math.PI/180,r[v].positionPoints[A]),r[v].positionPoints[A].x+=e.x,r[v].positionPoints[A].y+=e.y;r[v].type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(r[v].style.fontSize/=10*d,r[v].style.labelRotation=-l,r[v].style.sizeFixed=!1),r[v].isCalculate=!1,r[v].style.surroundLineType=0,r[v].style.surroundLineLimit=!0,this.components.push(r[v])}return r}},{key:"ComputeZValue",value:function(t,e,o){var l=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e,o),i=new SuperMap.Geometry.Point(l.projectPoint.x,l.projectPoint.y),n=SuperMap.Plot.PlottingUtil.distance(e,o),r=SuperMap.Plot.PlottingUtil.distance(e,t),a=SuperMap.Plot.PlottingUtil.distance(o,t);if(!l.isOnline){if(r>=n)return o.z;if(a>=n)return e.z}return i.x!=e.x&&e.x!=o.x?e.z+(i.x-e.x)/(e.x-o.x)*(e.z-o.z):i.y!=e.y&&e.y!=o.y?e.z+(i.y-e.y)/(e.y-o.y)*(e.z-o.z):0==(r=SuperMap.Plot.PlottingUtil.distance(e,i))?e.z:e.z-(e.z-o.z)*(r/n)}},{key:"ComputeBeizerZValueByDis",value:function(t,e,o){if(t.length<2)return!1;for(var l=[],i=0;i<t.length;i++)l.push({x:t[i].x,y:t[i].y});var n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==n)return!1;var r=SuperMap.Plot.PlottingUtil.polylineDistance(e),a=[];a.push(l[0]);for(var s=-1,p=0,u=e[0],P=1;P<l.length;P++){a.push(l[P]);var c=SuperMap.Plot.PlottingUtil.polylineDistance(a)/n,y=r*c,h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y,e),S=h.index,f=h.pts;if(h.bfind){for(var g=t[P-1].z,M=t[P].z,d=r*(c-p),m=0,v=++s;v<=S;v++){var b=g+(M-g)*((m+=v==s?SuperMap.Plot.PlottingUtil.distance(u,e[v]):SuperMap.Plot.PlottingUtil.distance(e[v-1],e[v]))/d);o.push({x:e[v].x,y:e[v].y,z:b})}s=S}p=c,u=f}for(var A=s+1;A<e.length;A++)o.push({x:e[A].x,y:e[A].y,z:t[t.length-1].z});return!0}},{key:"ComputeHeight",value:function(t,e,o,l){if(o!=l){if(0!=t.length)if(1==t.length)e.push({x:t[0].x,y:t[0].y,z:o});else if(2==t.length)e.push({x:t[0].x,y:t[0].y,z:o}),e.push({x:t[1].x,y:t[1].y,z:l});else{var i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!=i){var n=[];n.push(t[0]),e.push({x:t[0].x,y:t[0].y,z:o});for(var r=1;r<t.length-1;r++){n.push(t[r]);var a=o+(l-o)*SuperMap.Plot.PlottingUtil.polylineDistance(n)/i;e.push({x:t[r].x,y:t[r].y,z:a})}e.push({x:t[t.length-1].x,y:t[t.length-1].y,z:l})}else for(var s=0;s<t.length;s++)e.push({x:t[s].x,y:t[s].y,z:o})}}else for(var p=0;p<t.length;p++)e.push({x:t[p].x,y:t[p].y,z:o})}}]),t}();SuperMap.Plot.AlgoSymbol=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ArrowToolkit=SuperMap.Plot.ArrowToolkit=SuperMap.Plot.ArrowToolkit||{};SuperMap.Plot.ArrowToolkit.ConstValue={MAX_ARRAY_SIZE:128,sv_AtScaleParameter:1.5,sv_AtLenDivAtWidth:1.35,sv_AtWidthDivAwWidth:.5,DUOJIANTOU_TAIL_RATE_1:8,DUOJIANTOU_TAIL_RATE_2:3,DUOJIANTOU_TAIL_RATE_3:.6},SuperMap.Plot.ArrowToolkit.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4},SuperMap.Plot.ArrowToolkit.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_COATTAIL_HOLLOW:6,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5},SuperMap.Plot.ArrowToolkit.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_COATTAIL:5,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4},SuperMap.Plot.ArrowToolkit.parallel=function(t,e){var o={leftParallelPts:[],rightParallelPts:[]};return 1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y?o:(o.leftParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,e),o.rightParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,-e),o)},SuperMap.Plot.ArrowToolkit.trapezoid=function(t,e,o){var l={leftParallelPts:[],rightParallelPts:[]};if(1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y)return l;for(var i=0;i<t.length-1;i++){t[i].x===t[i+1].x&&t[i].y===t[i+1].y&&(l.leftParallelPts.push(l.leftParallelPts[l.leftParallelPts.length-1]),l.rightParallelPts.push(l.rightParallelPts[l.rightParallelPts.length-1]));var n=t[i+1];n=SuperMap.Plot.PlottingUtil.rotate(t[i],0,1,n),l.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i],n,e)),n=t[i],n=SuperMap.Plot.PlottingUtil.rotate(t[i+1],0,-1,n),l.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i+1],n,o)),n=t[i+1],n=SuperMap.Plot.PlottingUtil.rotate(t[i],0,-1,n),l.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i],n,e)),n=t[i],n=SuperMap.Plot.PlottingUtil.rotate(t[i+1],0,1,n),l.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[i+1],n,o))}return l},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts=function(t,e,o){var l={};switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL:case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID:var i=e[0],n=e[1],r=e[2],a=SuperMap.Plot.PlottingUtil.equalFuzzy(r,0);if(!a&&t.length>2){var s=t.length;t.splice(2,s-2)}var p=SuperMap.Plot.PlottingUtil.polylineDistance(t);l.arrowTouLen=p*i;for(var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,p-l.arrowTouLen).pt,P=[],c=l.arrowTouLen*r,y=l.arrowTouLen*n,h=t.length-1,S=0;S<h;S++)P.push(t[S]);P.push(u);var f={leftParallelPts:[],rightParallelPts:[]};f=!0===a?SuperMap.Plot.ArrowToolkit.parallel(P,y):SuperMap.Plot.ArrowToolkit.trapezoid(P,c,y);var g=t[t.length-1];t[t.length-1]=u,t.push(g);l.leftBodyPts=f.leftParallelPts,l.rightBodyPts=f.rightParallelPts,l.OpectrlPoints=null;break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER:var M=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0==M)return;var d=SuperMap.Plot.ArrowToolkit.OperateCtrlPts(t),m=d.length;m--;var v=SuperMap.Plot.ArrowToolkit.generateMultiBezier(d,m,e,M);t=[];for(var b=0;b<d.length;b++)t.push(d[b]);l.arrowTouLen=v.arrowTouLen,l.leftBodyPts=v.leftBodyPts,l.rightBodyPts=v.rightBodyPts,l.OpectrlPoints=d}return l},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,o,l,i){var n=[];switch(i){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var r=o[0],a=o[1],s=0,p=0;3==o.length&&(s=o[2]),4==o.length&&(s=o[2],p=o[3]);var u=0;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(p,0)){var P=SuperMap.Plot.PlottingUtil.clonePoints(t);P.splice(P.length-1,1),u=SuperMap.Plot.PlottingUtil.polylineDistance(P)*s*p}var c=new SuperMap.Geometry.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var y=l*r,h=t[t.length-1];return h=SuperMap.Plot.PlottingUtil.rotate(c,0,1,h),n.push(SuperMap.Plot.PlottingUtil.findPointInLine(c,h,y)),n.push(t[t.length-1]),h=t[t.length-1],h=SuperMap.Plot.PlottingUtil.rotate(c,0,-1,h),n.push(SuperMap.Plot.PlottingUtil.findPointInLine(c,h,y)),n}var S=l*a,f=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(S,c,t[t.length-1]);S=l*r,S+=u;var g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(S,t[t.length-1],f),M=g.pntLeft,d=g.pntRight,m=t[t.length-1];return n.push(d),n.push(m),n.push(M),n}},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,o,l){var i=[];if(2>t.length)return i;var n,r=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.equalFuzzy(e,0);switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:i=i.concat(t),l&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(n.pt));break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)i=i.concat(t),l&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),i.splice(i.length-1,1),i.push(n.pt));else{var s=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(a)i=i.concat(s);else{var p=s[s.length-1];if(!a&&(e<SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])||SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),e,1e-7))){for(var u=s.length-1;u>1;u--){if(!(e>SuperMap.Plot.PlottingUtil.distance(p,s[u]))){var P=SuperMap.Plot.PlottingUtil.findPoint(p,s[u],e,0);s.push(P),i=s;break}s.splice(u,1)}l||i.push(p)}else i=i.concat(s)}}break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var c=e;if(c>r)return i;for(var y,h,S=Math.ceil(r/(1.4*c)),f=0,g=[],M=0;M<S;M++)y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c*f,t),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c*(f+1),t),y.bfind&&h.bfind&&(g.push(y.pts),g.push(h.pts)),f=1.4*(M+1);i=g}return i},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine=function(t,e,o){var l=[];if(2>t.length)return l;switch(o){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var i=t[0],n=t[1],r=SuperMap.Plot.PlottingUtil.distance(i,n);if(SuperMap.Plot.PlottingUtil.equalFuzzy(r,e,1e-7)||r>e){var a=SuperMap.Plot.PlottingUtil.findPoint(i,n,e,0),s=e*Math.tan(.125*Math.PI),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,t[0],a);l.push(p.pntLeft),l.push(t[0]),l.push(p.pntRight)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var u=t[0],P=t[1],c=SuperMap.Plot.PlottingUtil.distance(u,P);if(SuperMap.Plot.PlottingUtil.equalFuzzy(c,e,1e-7)||c>e){var y=e*Math.tan(.125*Math.PI),h=SuperMap.Plot.PlottingUtil.findPoint(u,P,e,0),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,t[0],h);l.push(S.pntLeft),l.push(u),l.push(S.pntRight),l.push(S.pntLeft)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var f=t[0],g=2*Math.sqrt(e*e/3),M=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(g/2,M,1e-7)||M>g/2){var d=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g,20),m=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g,-20),v=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g/2,0);l.push(f),l.push(d),l.push(v),l.push(m),l.push(f)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var b=[],A=t[0],L=2*Math.sqrt(e*e/3),T=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(L/1.4,T,1e-7)||T>L/1.4){var x=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L,20),O=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L,-20),w=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L/1.4,0);b.push(A),b.push(x),b.push(w),b.push(O),b.push(A);var U=new SuperMap.Geometry.Point((b[0].x+b[1].x)/2,(b[0].y+b[1].y)/2),R=new SuperMap.Geometry.Point((b[3].x+b[4].x)/2,(b[3].y+b[4].y)/2),_=new SuperMap.Geometry.Point((U.x+R.x)/2,(U.y+R.y)/2),E=.75*SuperMap.Plot.PlottingUtil.distance(U,R)/2,C=SuperMap.Plot.PlottingUtil.findPointInLine(_,U,E),I=SuperMap.Plot.PlottingUtil.findPointInLine(_,R,E);l.push(b[0]),l.push(C),l.push(b[1]),l.push(b[2]),l.push(b[3]),l.push(I),l.push(b[4])}}return l},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts=function(t,e,o,l){for(var i=e.length,n=[],r=0,a=0;a<t.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(t[a],t[a+1]);var s=r*o;switch(l){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var p=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,90),u=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-90);n.push(p),n.push(u);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_CURVE:var P=new SuperMap.Geometry.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),c=SuperMap.Plot.PlottingUtil.distance(e[0],e[i-1]),y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(c*o,P,t[t.length-1]),h=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_1,SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_2,e[0],y,e[i-1],h,S);var f=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[0],y,h,f);var g=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[i-1],y,S,g);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var M=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,157.5),d=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-157.5);n.push(M),n.push(t[0]),n.push(d);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY:var m=new SuperMap.Geometry.Point(.5*(e[0].x+e[i-1].x),.5*(e[0].y+e[i-1].y)),v=SuperMap.Plot.PlottingUtil.distance(e[0],e[i-1]),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v*o,e[0],m);n.push(e[i-1]),n.push(b.pntLeft),n.push(e[0])}return n},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine=function(t,e,o){var l=[];switch(o){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var i=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),n=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-90);l.push(i),l.push(n);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var r=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,157.5),a=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-157.5);l.push(r),l.push(t[0]),l.push(a)}return l},SuperMap.Plot.ArrowToolkit.OperateCtrlPts=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3==e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,i=new SuperMap.Geometry.Point(o,l),n=e[2].clone();e[2]=i,e.push(n)}return e},SuperMap.Plot.ArrowToolkit.generateMultiBezier=function(t,e,o,l){var i=0,n=[],r=[],a=[],s=[],p=[],u=[],P=o[0],c=o[1],y=(t[0].x+t[1].x)/2,h=(t[0].y+t[1].y)/2,S=Math.abs(y-t[2].x),f=Math.abs(h-t[2].y),g=0;if(S>0&&f>0){var M=1/(y-t[2].x),d=-1/(h-t[2].y),m=1*t[2].y/(h-t[2].y)-1*t[2].x/(y-t[2].x);g=Math.abs(M*t[0].x+d*t[0].y+m)/Math.sqrt(M*M+d*d)}else f<=1e-4?g=Math.abs(h-t[1].y):S<=1e-4&&(g=Math.abs(y-t[1].x));var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(g,t[2],new SuperMap.Geometry.Point(y,h)),b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[1],t[2],t[0]);b?(n[1]=t[1],r[1]=t[0]):(n[1]=t[0],r[1]=t[1]),t[1]=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var A=Math.sqrt((v.pntLeft.x-v.pntRight.x)*(v.pntLeft.x-v.pntRight.x)+(v.pntLeft.y-v.pntRight.y)*(v.pntLeft.y-v.pntRight.y))*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,L=(i=A*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*c;SuperMap.Plot.PlottingUtil.equalFuzzy(P,0)||(L=(i=l*P)*c);var T,x,O=SuperMap.Plot.PlottingUtil.distance(t[e],t[e-1]),w=2*i;O<w&&(L=(i=O/2)*c),t.push(t[e]),T=0,x=0;var U=0,R=[];for(U=2;U<=e;U++)T+=SuperMap.Plot.PlottingUtil.distance(t[U],t[U-1]);for(T-=i,U=2;U<=e-1;U++)x+=SuperMap.Plot.PlottingUtil.distance(t[U],t[U-1]),R[U]=L+(A-L)*Math.pow((T-x)/T,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter);R[e]=L;var _,E,C=new SuperMap.Geometry.Point(0,0),I=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(U=2;U<=e-1;U++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,t[U-1],t[U],t[U+1],I,B),U==e-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,t[e],t[e-1],B,C),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R[U],I,t[U]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,I,_.pntRight))?(n[U]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[U]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(n[U]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[U]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(t[e].x-C.x)*(t[e].x-C.x)+1*(t[e].y-C.y)*(t[e].y-C.y))>0&&(t[e]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(i,t[e],C)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,t[e+1],t[e]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],_.pntLeft))?(r[e]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),n[e]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(r[e]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),n[e]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),U=2;U<e;U++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,n[U-1],n[U],n[U+1],I,B),a[U]=new SuperMap.Geometry.Point(I.x,I.y),s[U]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[U-1],r[U],r[U+1],I,B),p[U]=new SuperMap.Geometry.Point(I.x,I.y),u[U]=new SuperMap.Geometry.Point(B.x,B.y),2==U&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,n[1],n[2],a[2],C),s[1]=new SuperMap.Geometry.Point(C.x,C.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],p[2],C),u[1]=new SuperMap.Geometry.Point(C.x,C.y)),U==e-1&&(w=(O=SuperMap.Plot.PlottingUtil.distance(n[e],n[e-1]))/3,(E=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=n[e].x-t[e].x,E.y+=n[e].y-t[e].y,w=(O=A-L)*Math.pow(w/T,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,n[e],E),a[e]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),w=(O=SuperMap.Plot.PlottingUtil.distance(r[e],r[e-1]))/3,(E=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=r[e].x-t[e].x,E.y+=r[e].y-t[e].y,w=(O=A-L)*Math.pow(w/T,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,r[e],E),p[e]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{arrowTouLen:i,leftBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,n,a,s),rightBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,r,p,u)}},SuperMap.Plot.ArrowToolkit.genArrowBody=function(t,e,o,l){var i=new SuperMap.Plot.Path2D;if(!(t<2)){i.MoveTo(e[1]);for(var n=1;n<=t-1;n++)i.CubicTo(l[n],o[n+1],e[n+1]);var r=[];return i.ToSubPathPolygons(r),r[0]}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Path2DData=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this.cStart=e.cStart,this.fillRule=e.fillRule,this.require_StartNewFigure=e.require_StartNewFigure,this.isBoundsDirty=e.isBoundsDirty,this.bounds=new SuperMap.Bounds(e.bounds.left,e.bounds.bottom,e.bounds.right,e.bounds.top),this.ref=1,this.elements=[];for(var o=0;o<e.elements.length;o++)this.elements.push(e.elements[o].clone())}else this.ref=1,this.bounds=new SuperMap.Bounds(0,0,0,0),this.elements=[];this.CLASS_NAME="SuperMap.Plot.Path2DData"}return l(t,[{key:"IsClosed",value:function(){var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];return t.GetX()==e.GetX()&&t.GetY()==e.GetY()}},{key:"Close",value:function(){this.require_StartNewFigure=!0;var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];t!=e&&(t.Equal(e)?e.SetPosition(t.GetX(),t.GetY()):this.elements.push(new SuperMap.Plot.Element(t.GetX(),t.GetY(),SuperMap.Plot.ElementType.LineToElement)))}},{key:"MaybeStartNewFigure",value:function(){if(this.require_StartNewFigure){var t=this.elements[this.elements.length-1].clone();t.SetType(0),this.elements.push(t),this.require_StartNewFigure=!1}}}]),t}();SuperMap.Plot.Path2DData=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Element=function(){function t(e,o,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_x=e,this.m_y=o,this.m_type=l,this.CLASS_NAME="SuperMap.Plot.Element"}return l(t,[{key:"GetX",value:function(){return this.m_x}},{key:"GetY",value:function(){return this.m_y}},{key:"GetType",value:function(){return this.m_type}},{key:"GetPosition",value:function(){return SuperMap.Geometry.Point(this.m_x,this.m_y)}},{key:"SetPosition",value:function(t,e){this.m_x=t,this.m_y=e}},{key:"SetType",value:function(t){this.m_type=t}},{key:"IsCurveTo",value:function(){return 2==this.m_type}},{key:"IsLineTo",value:function(){return 1==this.m_type}},{key:"IsMoveTo",value:function(){return 0==this.m_type}},{key:"Equal",value:function(t){return SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_x,t.m_x,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_y,t.m_y,1e-10)&&this.m_type==t.m_type}},{key:"clone",value:function(){return new SuperMap.Plot.Path2D.Element(this.m_x,this.m_y,this.m_type)}}]),t}();SuperMap.Plot.Element=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.Path2D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_pData=null,this.CLASS_NAME="SuperMap.Plot.Path2D"}return l(t,[{key:"MoveTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.require_StartNewFigure=!1,0==e.elements[e.elements.length-1].GetType())e.elements[e.elements.length-1].SetPosition(t.x,t.y);else{var o=new SuperMap.Plot.Element(t.x,t.y,0);e.elements.push(o)}e.cStart=e.elements.length-1}},{key:"LineTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.MaybeStartNewFigure(),e.elements[e.elements.length-1].GetX()!=t.x||e.elements[e.elements.length-1].GetY()!=t.y){var o=new SuperMap.Plot.Element(t.x,t.y,1);e.elements.push(o)}}},{key:"CurveTo",value:function(t,e,o){this.ensureData(),this.detach();var l=this.getDataPtr();if(l.elements[l.elements.length-1].GetX()!=t.x||l.elements[l.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){l.MaybeStartNewFigure();var i=new SuperMap.Plot.Element(t.x,t.y,2),n=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);l.elements.push(i),l.elements.push(n),l.elements.push(r)}}},{key:"CubicTo",value:function(t,e,o){this.ensureData(),this.detach();var l=this.getDataPtr();if(l.elements[l.elements.length-1].GetX()!=t.x||l.elements[l.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){l.MaybeStartNewFigure();var i=new SuperMap.Plot.Element(t.x,t.y,2),n=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);l.elements.push(i),l.elements.push(n),l.elements.push(r)}}},{key:"ToSubPathPolygons",value:function(t){var e,o,l=this.getDataPtr();if(this.IsEmpty())return!1;for(var i=[],n=this.GetElementCount(),r=0;r<n;r++){var a=l.elements[r];switch(a.GetType()){case 0:i.length>1&&t.push(i),i=[],e=a.GetX(),o=a.GetY(),i.push(new SuperMap.Geometry.Point(e,o));break;case 1:e=a.GetX(),o=a.GetY(),i.push(new SuperMap.Geometry.Point(e,o));break;case 2:if(3!=l.elements[r+1].GetType()||3!=l.elements[r+1].GetType())break;for(var s=l.elements[r-1].GetX(),p=l.elements[r-1].GetY(),u=a.GetX(),P=a.GetY(),c=l.elements[r+1].GetX(),y=l.elements[r+1].GetY(),h=l.elements[r+2].GetX(),S=l.elements[r+2].GetY(),f=0;f<=1;f+=.03125){var g=f*f,M=g*f,d=1-3*f+3*g-M,m=3*(f-2*g+M),v=3*(g-M),b=M;i.push(new SuperMap.Geometry.Point(d*s+m*u+v*c+b*h,d*p+m*P+v*y+b*S))}r+=2}}return i.length>1&&t.push(i),!0}},{key:"ensureData",value:function(){null==this.m_pData&&this.ensureData_helper()}},{key:"ensureData_helper",value:function(){var t=new SuperMap.Plot.Path2DData,e=new SuperMap.Plot.Element(0,0,0);t.elements.push(e),null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"detach",value:function(){1!=this.m_pData.ref&&this.detach_helper(),this.setBoundsDirty(!0)}},{key:"detach_helper",value:function(){var t=new SuperMap.Plot.Path2DData;null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"setBoundsDirty",value:function(t){this.getDataPtr().isBoundsDirty=t}},{key:"getDataPtr",value:function(){return this.m_pData}},{key:"IsEmpty",value:function(){if(null==this.m_pData)return!0;var t=this.m_pData.elements.length;return 0==t||1==t&&0==this.m_pData.elements[0].GetType()}},{key:"GetElementCount",value:function(){return null!=this.m_pData?this.m_pData.elements.length:0}}],[{key:"mtRef",value:function(t){return 0!=++t}},{key:"mtDeRef",value:function(t){return 0!=--t}}]),t}();SuperMap.Plot.Path2D=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol15200=e.AlgoSymbol315=e.AlgoSymbol1022=e.AlgoSymbol1021=e.AlgoSymbol1020=e.AlgoSymbol1019=e.AlgoSymbol1018=e.AlgoSymbol1017=e.AlgoSymbol1016=e.AlgoSymbol1015=e.AlgoSymbol1014=e.AlgoSymbol1013=e.AlgoSymbol1012=e.AlgoSymbol1011=e.AlgoSymbol1010=e.AlgoSymbol1009=e.AlgoSymbol1008=e.AlgoSymbol1007=e.AlgoSymbol1006=e.AlgoSymbol1005=e.AlgoSymbol1004=e.AlgoSymbol1003=e.AlgoSymbol1002=e.AlgoSymbol1001=e.LinearArrow=e.Wire=e.PolygonRegion=e.LineRelation=e.LineMarking=e.PathText=e.CurveEight=e.Runway=e.NodeChain=e.FreeCurve=e.CombinationalCircle=e.ConcentricCircle=e.SymbolTextBox=e.GeoTooltipBoxM=e.GeoTooltipBox=e.Trapezoid=e.Brace=e.RegularPolygon=e.ArrowLine=e.AlgoSymbol=e.ArrowToolkit=e.Path2DData=e.Element=e.Path2D=void 0;var l=o(51),i=o(50),n=o(49),r=o(48),a=o(47),s=o(46),p=o(45),u=o(44),P=o(43),c=o(42),y=o(41),h=o(40),S=o(39),f=o(38),g=o(37),M=o(36),d=o(35),m=o(34),v=o(33),b=o(32),A=o(31),L=o(30),T=o(29),x=o(28),O=o(27),w=o(26),U=o(25),R=o(24),_=o(23),E=o(22),C=o(21),I=o(20),B=o(19),D=o(18),G=o(17),V=o(16),N=o(15),k=o(14),Y=o(13),z=o(12),j=o(11),F=o(10),W=o(9),H=o(8),q=o(7),J=o(6),X=o(5),Z=o(4);e.Path2D=l.Path2D,e.Element=i.Element,e.Path2DData=n.Path2DData,e.ArrowToolkit=r.ArrowToolkit,e.AlgoSymbol=a.AlgoSymbol,e.ArrowLine=s.ArrowLine,e.RegularPolygon=p.RegularPolygon,e.Brace=u.Brace,e.Trapezoid=P.Trapezoid,e.GeoTooltipBox=c.GeoTooltipBox,e.GeoTooltipBoxM=y.GeoTooltipBoxM,e.SymbolTextBox=h.SymbolTextBox,e.ConcentricCircle=S.ConcentricCircle,e.CombinationalCircle=f.CombinationalCircle,e.FreeCurve=g.FreeCurve,e.NodeChain=M.NodeChain,e.Runway=d.Runway,e.CurveEight=m.CurveEight,e.PathText=v.PathText,e.LineMarking=b.LineMarking,e.LineRelation=A.LineRelation,e.PolygonRegion=L.PolygonRegion,e.Wire=T.Wire,e.LinearArrow=x.LinearArrow,e.AlgoSymbol1001=O.AlgoSymbol1001,e.AlgoSymbol1002=w.AlgoSymbol1002,e.AlgoSymbol1003=U.AlgoSymbol1003,e.AlgoSymbol1004=R.AlgoSymbol1004,e.AlgoSymbol1005=_.AlgoSymbol1005,e.AlgoSymbol1006=E.AlgoSymbol1006,e.AlgoSymbol1007=C.AlgoSymbol1007,e.AlgoSymbol1008=I.AlgoSymbol1008,e.AlgoSymbol1009=B.AlgoSymbol1009,e.AlgoSymbol1010=D.AlgoSymbol1010,e.AlgoSymbol1011=G.AlgoSymbol1011,e.AlgoSymbol1012=V.AlgoSymbol1012,e.AlgoSymbol1013=N.AlgoSymbol1013,e.AlgoSymbol1014=k.AlgoSymbol1014,e.AlgoSymbol1015=Y.AlgoSymbol1015,e.AlgoSymbol1016=z.AlgoSymbol1016,e.AlgoSymbol1017=j.AlgoSymbol1017,e.AlgoSymbol1018=F.AlgoSymbol1018,e.AlgoSymbol1019=W.AlgoSymbol1019,e.AlgoSymbol1020=H.AlgoSymbol1020,e.AlgoSymbol1021=q.AlgoSymbol1021,e.AlgoSymbol1022=J.AlgoSymbol1022,e.AlgoSymbol315=X.AlgoSymbol315,e.AlgoSymbol15200=Z.AlgoSymbol15200},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=void 0;var l=o(0),i=o(3);e.BasicAlgoSymbolFactory=l.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=i.AlgoSymbolFactory},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AddPoint_WayType=SuperMap.Plot.AddPoint_WayType={UNKNOWN:0,POLYLINE:1,CURVE:2}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives||{};SuperMap.Plot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="会",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},expandingPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="展",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},volleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="齐",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},standbyPoint_Outer:function(t,e){var o=[],l=new SuperMap.Geometry.Point(0,0),i=new SuperMap.Geometry.Point(0,30);t||(t=90);var n=new Object;n.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,n.positionPoints=[];for(var r=t+10;r<170+t;r+=10){var a=SuperMap.Plot.PlottingUtil.findPoint(l,i,30,r);n.positionPoints.push(a)}n.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(n);var s=n.positionPoints[n.positionPoints.length-1],p=n.positionPoints[n.positionPoints.length-2],u=SuperMap.Plot.PlottingUtil.findPoint(s,p,9,22.5),P=SuperMap.Plot.PlottingUtil.findPoint(s,p,9,-22.5),c=new Object;c.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,c.positionPoints=[],c.positionPoints.push(u),c.positionPoints.push(s.clone()),c.positionPoints.push(P),c.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(c);var y=new Object;y.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,y.positionPoints=[];for(var h=190+t;h<350+t;h+=10){var S=SuperMap.Plot.PlottingUtil.findPoint(l,i,30,h);y.positionPoints.push(S)}y.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(y);var f=y.positionPoints[y.positionPoints.length-1],g=y.positionPoints[y.positionPoints.length-2],M=SuperMap.Plot.PlottingUtil.findPoint(f,g,9,22.5),d=SuperMap.Plot.PlottingUtil.findPoint(f,g,9,-22.5),m=new Object;m.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,m.positionPoints=[],m.positionPoints.push(M),m.positionPoints.push(f.clone()),m.positionPoints.push(d),m.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(m);for(var v=0;v<o.length;v++)for(var b=0;b<o[v].positionPoints.length;b++){var A=e*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle(l,A,o[v].positionPoints[b])}return o},standbyPoint_Inner:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-20,0)),e.positionPoints.push(new SuperMap.Geometry.Point(20,10)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-10)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e);var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),o.positionPoints.push(new SuperMap.Geometry.Point(17,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o);var l=new Object;return l.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,l.positionPoints=[],l.positionPoints.push(new SuperMap.Geometry.Point(-2,1.5)),l.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),l.positionPoints.push(new SuperMap.Geometry.Point(-2,-1.5)),l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(l),t},supplyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="补",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},takeoffPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-35)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},initialPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},visualInitalPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},lanchPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},turningPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},aimingPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},targetPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},eightSpiralPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t},happyValleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),e.positionPoints.push(new SuperMap.Geometry.Point(30,20)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var l=new Object;l.type=SuperMap.Plot.SymbolType.ARCSYMBOL,l.positionPoints=[],l.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),l.positionPoints.push(new SuperMap.Geometry.Point(-50,0)),l.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.ARCSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(30,20)),i.positionPoints.push(new SuperMap.Geometry.Point(50,0)),i.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t.push(l),t.push(i),t},attackPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,20)),o.positionPoints.push(new SuperMap.Geometry.Point(20,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-20,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},suppressPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fontSize:14};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,-15)),o.positionPoints.push(new SuperMap.Geometry.Point(-15,-15)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},getRouteNodeCells:function(t,e,o){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return this.rendezvousPoint();case SuperMap.Plot.RouteNodeType.EXPANDING:return this.expandingPoint();case SuperMap.Plot.RouteNodeType.VOLLEY:return this.volleyPoint();case SuperMap.Plot.RouteNodeType.STANDBY:return e?this.standbyPoint_Inner():this.standbyPoint_Outer(null,o);case SuperMap.Plot.RouteNodeType.SUPPLY:return this.supplyPoint();case SuperMap.Plot.RouteNodeType.TAKEOFF:return this.takeoffPoint();case SuperMap.Plot.RouteNodeType.INITIAL:return this.initialPoint();case SuperMap.Plot.RouteNodeType.VISUALINITAL:return this.visualInitalPoint();case SuperMap.Plot.RouteNodeType.LANCH:case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return this.lanchPoint();case SuperMap.Plot.RouteNodeType.TURNING:case SuperMap.Plot.RouteNodeType.COMMONROUTE:return this.turningPoint();case SuperMap.Plot.RouteNodeType.AIMING:return this.aimingPoint();case SuperMap.Plot.RouteNodeType.TARGET:return this.targetPoint();case SuperMap.Plot.RouteNodeType.ATTACK:return this.attackPoint();case SuperMap.Plot.RouteNodeType.SUPPRESS:return this.suppressPoint();case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return this.eightSpiralPoint();case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return this.happyValleyPoint();default:return[]}},getRouteNodeNameByType:function(t){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return"会合点";case SuperMap.Plot.RouteNodeType.EXPANDING:return"展开点";case SuperMap.Plot.RouteNodeType.VOLLEY:return"齐射点";case SuperMap.Plot.RouteNodeType.STANDBY:return"待机点";case SuperMap.Plot.RouteNodeType.SUPPLY:return"补给点";case SuperMap.Plot.RouteNodeType.TAKEOFF:return"起飞点";case SuperMap.Plot.RouteNodeType.INITIAL:return"初始点";case SuperMap.Plot.RouteNodeType.VISUALINITAL:return"可视化初始点";case SuperMap.Plot.RouteNodeType.LANCH:return"发射点";case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return"武器发射点";case SuperMap.Plot.RouteNodeType.TURNING:return"转弯点";case SuperMap.Plot.RouteNodeType.COMMONROUTE:return"普通航路点";case SuperMap.Plot.RouteNodeType.AIMING:return"目标瞄准点";case SuperMap.Plot.RouteNodeType.TARGET:return"目标点";case SuperMap.Plot.RouteNodeType.ATTACK:return"攻击点";case SuperMap.Plot.RouteNodeType.SUPPRESS:return"压制点";case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return"八字盘旋点";case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return"跑马圈点";default:return""}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Primitives=SuperMap.Plot.Primitives=SuperMap.Plot.Primitives||{};SuperMap.Plot.Primitives={nSegmentCount:72,initialize:function(t){t&&t.nSegmentCount&&(this.nSegmentCount=t.nSegmentCount)},polyline:function(t){return t},parallelline:function(t){if(t&&t.length>=3){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);SuperMap.Plot.PlottingUtil.isRight(t[0],t[1],t[2])&&(e=-e);for(var o=[],l=1;l<t.length;l++)o.push(t[l].clone());var i=SuperMap.Plot.PlottingUtil.parallel(o,e);return t[0].x=i[0].x,t[0].y=i[0].y,[o,i]}return[]},kidney:function(t,e){if(t){var o=[];return o=e?this.getKendyShapePts(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},bezier:function(t,e){if(t){var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},loopbezier:function(t,e){if(t){t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y||t.push(t[0]);var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},parallelogram:function(t){if(t&&t.length>=3){var e=t[0].x+(t[2].x-t[1].x),o=t[0].y+(t[2].y-t[1].y),l=new SuperMap.Geometry.Point(e,o),i=[];return i.push.apply(i,t),i.push(l),i.push(i[0]),i}},polygon:function(t){if(t&&t.length>2)return t},circle:function(t){if(t&&2===t.length){for(var e=t[0],o=t[1],l=[],i=Math.sqrt((o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y)),n=360/this.nSegmentCount,r=0;r<this.nSegmentCount;r++){var a=(r*n+1)*Math.PI/180,s=new SuperMap.Geometry.Point(Math.cos(a)*i+e.x,Math.sin(a)*i+e.y);l[r]=s}return l}},rectangle:function(t){if(t&&2===t.length){var e=t[0],o=t[1],l=e.clone();return[l,new SuperMap.Geometry.Point(o.x,e.y),o.clone(),new SuperMap.Geometry.Point(e.x,o.y),l]}},sector:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(l.push(e.pntCenter),0!==l.length)return l}},lune:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},arc:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},ellipse:function(t,e,o,l,i){if(!0===o){if((!l||null==l)&&t&&t.length>=3&&(l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])),(!i||null==i)&&t&&t.length>=3){var n=SuperMap.Plot.PlottingUtil.projectPoint(t[2],t[0],t[1]);i=SuperMap.Plot.PlottingUtil.distance(n,t[2])}}else i=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMap.Plot.PlottingUtil.radian(t[0],t[1]),t&&t.length>0){var r=2*Math.PI,a=r/this.nSegmentCount,s=this.getArcSpatialData(t[0],l,i,e,0,r,a);if(!0===o){var p=Math.sin(e),u=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-i*p,t[2].y=t[0].y+i*u):(t[2].x=t[0].x+i*p,t[2].y=t[0].y-i*u)}return s}},getArcSpatialData:function(t,e,o,l,i,n,r){var a=[];if(Math.abs(r)<1e-9)return a;for(;n<i;)n+=2*Math.PI;for(;n>i+2*Math.PI;)i+=2*Math.PI;var s=Math.cos(l)*e,p=Math.sin(l)*e,u=Math.cos(l)*o,P=Math.sin(l)*o,c=this.calcEllipseRadian(i,e,o),y=this.calcEllipseRadian(n,e,o);y-c<1e-5&&(y+=2*Math.PI);var h=Math.round(Math.abs((y-c)/r)+1);if(h<2)return a;for(var S=0;S<h-1;c+=r,S++){S===h-2&&(c=n);var f=t.x+s*Math.cos(c)-P*Math.sin(c),g=t.y+p*Math.cos(c)+u*Math.sin(c);a.push(new SuperMap.Geometry.Point(f,g))}return 0>a.length&&(a[a.length-1].x=t.x+s*Math.cos(y)-P*Math.sin(y),a[a.length-1].y=t.y+p*Math.cos(y)+u*Math.sin(y)),a},getArcInfo:function(t,e,o){var l={};l.pntCenter=new SuperMap.Geometry.Point(0,0),l.dRadius=0,l.dStartAngle=0,l.dEndAngle=0;var i=e.x-t.x,n=e.y-t.y;if(Math.abs(i)<1e-9){var r={},a={};r.x=(e.x+t.x)/2,r.y=(e.y+t.y)/2,a.x=(e.x+o.x)/2,a.y=(e.y+o.y)/2;var s=0;Math.abs(o.x-e.x)>=1e-9&&(s=(o.y-e.y)/(o.x-e.x)),l.pntCenter.y=r.y,Math.abs(s)<1e-9?l.pntCenter.x=a.x:l.pntCenter.x=a.x-s*(r.y-a.y)}else{var p={},u={};p.x=(e.x+t.x)/2,p.y=(e.y+t.y)/2,u.x=(e.x+o.x)/2,u.y=(e.y+o.y)/2;var P=n/i,c=1;Math.abs(P)<1e-9?(l.pntCenter.x=p.x,Math.abs(o.x-e.x<1e-9)?l.pntCenter.y=u.y:l.pntCenter.y=-(o.x-e.x)/(o.y-e.y)*(l.pntCenter.x-u.x)+u.y):Math.abs(o.x-e.x)<1e-9?(l.pntCenter.y=u.y,l.pntCenter.x=-P*(l.pntCenter.y-p.y)+p.x):(c=(o.y-e.y)/(o.x-e.x),l.pntCenter.x=(P*c*(p.y-u.y)+c*p.x-P*u.x)/(c-P),l.pntCenter.y=(u.x-p.x+c*u.y-P*p.y)/(c-P))}var y=Math.atan2(t.y-l.pntCenter.y,t.x-l.pntCenter.x),h=Math.atan2(o.y-l.pntCenter.y,o.x-l.pntCenter.x);if(SuperMap.Plot.PlottingUtil.isCounterClockwise(t,e,o)){for(;y>=2*Math.PI;)y-=2*Math.PI;for(;y<0;)y+=2*Math.PI;for(;h>2*Math.PI;)h-=2*Math.PI;for(;h<y;)h+=2*Math.PI}else{for(;h>=2*Math.PI;)h-=2*Math.PI;for(;h<0;)h+=2*Math.PI;for(;y>2*Math.PI;)y-=2*Math.PI;for(;h>y;)y+=2*Math.PI;var S=y;y=h,h=S}return l.dRadius=Math.sqrt((l.pntCenter.x-t.x)*(l.pntCenter.x-t.x)+(l.pntCenter.y-t.y)*(l.pntCenter.y-t.y)),l.dEndAngle=180*h/Math.PI,l.dStartAngle=180*y/Math.PI,l},calcEllipseRadian:function(t,e,o){var l=t,i=e*Math.sin(t),n=o*Math.cos(t),r=Math.atan2(i,n);if(t>Math.PI)for(;l>Math.PI;)l-=2*Math.PI,r+=2*Math.PI;else if(t<-Math.PI)for(;l<-Math.PI;)l+=2*Math.PI,r-=2*Math.PI;return r},getKendyShapePts:function(t){var e=[];if(2>(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length)return e;var o=this.calcShapePoints(t);if(12!=o.length)return e;o.push(o[0]),o.push(o[1]),o.splice(0,1);for(var l=0;l<o.length-3;l+=3){var i;i=this.getBezierPtsWithScalePts(o[l],o[l+1],o[l+2],o[l+3]),e=e.concat(i)}return e},calcShapePoints:function(t){var e=[],o=[],l=t.length;if(0!==l){if(1!==l){if(2==l){var i=this.calcProtudeC3(t[0],t[1]);o.push(t[0]),o.push(t[1]),o.push(i)}else if(o.push(t[0]),o.push(t[1]),o.push(t[2]),(SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[2])||SuperMap.Plot.PlottingUtil.isSamePt(t[1],t[2]))&&(e.push(t[0]),e.push(t[1])),SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[1]))return e.push(t[0]),void e.push(t[2]);o=this.reNormalizeKidneyCtrlPoints(o);var n=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);n.x=.5*(o[0].x+o[1].x),n.y=.5*(o[0].y+o[1].y),r.x=n.x-.1*(o[2].x-n.x),r.y=n.y-.1*(o[2].y-n.y);var a=this.GetPtsByTriangle(3,0,o[1],o[0],r);e.push(a.pr),e.push(r),e.push(a.pl);var s=this.GetPtsByTriangle(4,2,o[2],o[0],o[1]);e.push(s.pr),e.push(o[1]),e.push(s.pl);var p=this.GetPtsByTriangle(2,0,o[0],o[1],o[2]);e.push(p.pr),e.push(o[2]),e.push(p.pl);var u=this.GetPtsByTriangle(4,1,o[1],o[2],o[0]);return e.push(u.pr),e.push(o[0]),e.push(u.pl),e}e.push(t[0])}},calcProtudeC3:function(t,e){var o,l=new SuperMap.Geometry.Point(0,0);return l.x=.5*(t.x+e.x),l.y=.5*(t.y+e.y),o=SuperMap.Plot.PlottingUtil.distance(e,t)/2.7,this.GetPointsOfNormal(o,t,l).pt3},GetPointsOfNormal:function(t,e,o){var l,i=new SuperMap.Geometry.Point(0,0),n=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);return 0==(l=SuperMap.Plot.PlottingUtil.distance(e,o))?(r.y=0,r.x=t):(r.x=t*(e.x-o.x)/l,r.y=t*(e.y-o.y)/l),i.x=-r.y+o.x,i.y=r.x+o.y,n.x=r.y+o.x,n.y=-r.x+o.y,{pt3:i,pt4:n}},reNormalizeKidneyCtrlPoints:function(t){var e=[];e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0));var o=t.length;if(o<2)return e;if(2==o)e[0]=t[0],e[1]=t[1],e[2]=this.calcProtudeC3(t[0],t[1]);else{var l,i,n,r=t[0],a=t[1],s=t[2];if(l=SuperMap.Plot.PlottingUtil.distance(a,r),i=SuperMap.Plot.PlottingUtil.distance(s,a),n=SuperMap.Plot.PlottingUtil.distance(r,s),i>=l&&i>=n){var p=r.clone();r=s.clone(),s=p.clone()}else if(n>=l&&n>=i){var u=s.clone();s=a.clone(),a=u.clone()}if(!SuperMap.Plot.PlottingUtil.isRight(s,r,a)){var P=r.clone();r=a.clone(),a=P.clone()}e[0]=r,e[1]=a,e[2]=s}return e},GetPtsByTriangle:function(t,e,o,l,i){var n=new SuperMap.Geometry.Point(0,0),r=0,a=0;return r=SuperMap.Plot.PlottingUtil.distance(i,o),a=SuperMap.Plot.PlottingUtil.distance(l,i),1==e&&(r*=2),2==e&&(a*=2),n.x=(r*l.x+a*o.x)/(r+a),n.y=(r*l.y+a*o.y)/(r+a),{pl:this.GetWhichPtOfNormal(t,o,n,i),pr:this.GetWhichPtOfNormal(t,l,n,i)}},GetWhichPtOfNormal:function(t,e,o,l){var i=0;i=SuperMap.Plot.PlottingUtil.distance(l,e)/t;var n=this.GetPointsOfNormal(i,o,l);return SuperMap.Plot.PlottingUtil.distance(e,n.pt4)>=(i=SuperMap.Plot.PlottingUtil.distance(e,n.pt3))?n.pt3:n.pt4},getBezierPtsWithScalePts:function(t,e,o,l){var i=[],n=t.x,r=t.y,a=e.x,s=e.y,p=o.x,u=o.y,P=l.x,c=l.y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(n,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,P,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10))i.push(new SuperMap.Geometry.Point(n,r)),i.push(new SuperMap.Geometry.Point(p,u));else for(var y=0;y<=1;y+=.03125){var h,S,f,g,M=y*y,d=M*y;h=1-3*y+3*M-d,S=3*(y-2*M+d),f=3*(M-d),g=d;var m=new SuperMap.Geometry.Point(h*n+S*a+f*p+g*P,h*r+S*s+f*u+g*c);i.push(m)}return i},getSpatialData:function(t,e,o,l){switch(null==l&&(l=!0),t){case 24:return this.polyline(e);case 390:return this.kidney(e,l);case 590:return this.bezier(e,l);case 360:return this.loopbezier(e,l);case 28:return this.parallelogram(e);case 32:return this.polygon(e);case 29:return this.circle(e);case 26:return this.rectangle(e);case 380:return this.sector(e);case 370:return this.lune(e);case 44:return this.arc(e);case 31:return this.ellipse(e,o,l);case 48:return this.parallelline(e);default:return e}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.PlottingUtil=SuperMap.Plot.PlottingUtil=SuperMap.Plot.PlottingUtil||{};SuperMap.Plot.PlottingUtil.DEFAULT_PRECISION=14,SuperMap.Plot.PlottingUtil.DPI=96,SuperMap.Plot.PlottingUtil.RTOD=57.29577951308232,SuperMap.Plot.PlottingUtil.DTOR=.017453292519943295,SuperMap.Plot.PlottingUtil.dirAngle=function(t,e){var o,l,i,n;o=e.x,l=e.y,i=o-t.x,n=l-t.y;var r=Math.atan2(n,i);return r<0&&(r+=2*Math.PI),r},SuperMap.Plot.PlottingUtil.generateUuid=function(){for(var t=[],e=0;e<36;e++)t[e]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]="0123456789abcdef".substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")},SuperMap.Plot.PlottingUtil.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},SuperMap.Plot.PlottingUtil.colorRGBA=function(t,e){var o=t.substring(1,3),l=parseInt(o,16),i=t.substring(3,5),n=parseInt(i,16),r=t.substring(5);return"rgba("+l+","+n+","+parseInt(r,16)+","+e+")"},SuperMap.Plot.PlottingUtil.colorRGBToString=function(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var l=t.blue.toString(16);return l.length<2&&(l="0"+l),"#"+e+o+l},SuperMap.Plot.PlottingUtil.colorStringToRGB=function(t){var e={},o=t.substring(1,3);e.red=parseInt(o,16);var l=t.substring(3,5);e.green=parseInt(l,16);var i=t.substring(5);return e.blue=parseInt(i,16),e},SuperMap.Plot.PlottingUtil.decimalToHex=function(t){for(var e=t.toString(16);e.length<8;)e="0"+e;var o=e.substring(0,2),l=e.substring(2,4),i=e.substring(4,6);return{color:"#"+e.substring(6)+i+l,alpha:parseInt(o,16)/255}},SuperMap.Plot.PlottingUtil.hexToDecimal=function(t,e){var o=t.substring(1,3),l=t.substring(3,5),i=t.substring(5),n=parseInt(i+l+o,16),r=Math.round(255*e).toString(16);return parseInt(r+"000000",16)+n},SuperMap.Plot.PlottingUtil.getAlign=function(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":"lt"},SuperMap.Plot.PlottingUtil.trim=function(t){return null==t?"":t.replace(/(^\s*)|(\s*$)/g,"")},SuperMap.Plot.PlottingUtil.getTextWidth=function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var l=o.clientWidth,i=e.length;return void 0===t.fontSpace&&void 0===t.fontPercent||(0!==t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontSpace||void 0!==t.fontPercent?l=t.fontPercent/100*l+t.fontSpace*(t.fontPercent/100)*(i-1):0===t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontPercent?l=t.fontPercent/100*l:0!==t.fontSpace&&100===t.fontPercent&&void 0!==t.fontSpace&&(l+=t.fontSpace*(i-1))),document.body.removeChild(o),l},SuperMap.Plot.PlottingUtil.getTextCount=function(t){for(var e=0,o=0,l=0;l<t.length;l++)t.charCodeAt(l)>255?e++:o++;return e+o/2},SuperMap.Plot.PlottingUtil.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var o=[],i=0,n=e.length;i<n;i++)o.push(SuperMap.Plot.PlottingUtil.toJSON(e[i]));return"["+o.join(",")+"]";case Number:return isFinite(e)?String(e):null;case Boolean:return String(e);case Date:return"{'__type':\"System.DateTime\",'Year':"+e.getFullYear()+",'Month':"+(e.getMonth()+1)+",'Day':"+e.getDate()+",'Hour':"+e.getHours()+",'Minute':"+e.getMinutes()+",'Second':"+e.getSeconds()+",'Millisecond':"+e.getMilliseconds()+",'TimezoneOffset':"+e.getTimezoneOffset()+"}";default:if(null!=e.toJSON&&"function"==typeof e.toJSON)return e.toJSON();if("object"===(void 0===e?"undefined":l(e))){if(e.length){for(var r=[],a=0,s=e.length;a<s;a++)r.push(SuperMap.Plot.PlottingUtil.toJSON(e[a]));return"["+r.join(",")+"]"}var p=[];for(var u in e)"function"!=typeof e[u]&&"CLASS_NAME"!==u&&"parent"!==u&&p.push('"'+u+'":'+SuperMap.Plot.PlottingUtil.toJSON(e[u]));return p.length>0?"{"+p.join(",")+"}":"{}"}return e.toString()}},SuperMap.Plot.PlottingUtil.copyFeature=function(t){var e=null;if(null!=t&&t.geometry){var o=t.geometry.clone();e=new SuperMap.Feature.Vector(o),t.style&&(e.style=SuperMap.Plot.PlottingUtil.copyAttributes(e.style,t.style)),o.feature=e,o.calculateParts()}return e},SuperMap.Plot.PlottingUtil.getSurroundLinePts=function(t,e){for(var o=[],l=[],i=0;i<t.length-1;i++){var n,r,a=[];if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].x,t[i+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].y,t[i+1].y)){a.push(t[i]),a.push(t[i+1]);var s=SuperMap.Plot.PlottingUtil.parallel(a,e);if(n=s[0],r=s[1],0!=o.length){var p=SuperMap.Plot.PlottingUtil.intersectLines(n,r,o[0],o[1]);if(p.isIntersectLines){var u=p.intersectPoint,P=SuperMap.Plot.PlottingUtil.distance(n,r);SuperMap.Plot.PlottingUtil.distance(u,r)>2*P?l.push(r):(l[l.length-1]=u,l.push(r))}else l.push(r)}else l.push(n),l.push(r);(o=[]).push(l[l.length-2]),o.push(l[l.length-1])}}if(t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&1<l.length){var c=SuperMap.Plot.PlottingUtil.intersectLines(l[0],l[1],l[l.length-2],l[l.length-1]);if(c.isIntersectLines){var y=c.intersectPoint;l[l.length-1]=y,l[0]=y}}return l},SuperMap.Plot.PlottingUtil.copyFontStyle=function(t,e){void 0===t.labelAlign&&void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),!0!==t.fontSizeLimit&&(void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontSpace&&(t.fontSpace=e.fontSpace),void 0!==e.fontPercent&&(t.fontPercent=e.fontPercent)),t.strokeWidth=e.strokeWidth},SuperMap.Plot.PlottingUtil.getDataFromServer=function(t,e,o,i,n,r,a,s){var p=void 0;if(void 0!==r&&(p=r),"undefined"!=typeof SuperMap&&void 0!==SuperMap.GetSymbolInfoService){var u=new SuperMap.GetSymbolInfoService(t);u.events.on({processCompleted:a,processFailed:s,scope:p});var P=new SuperMap.GetSymbolInfoParameters;P.libID=e,P.code=o,n&&SuperMap.Plot.PlottingUtil.extend(P,n),i&&null!=i&&(SuperMap.Plot.PlottingUtil.isArray(i)||(i=[i]),P.inputPoints=i),u.processAsync(P)}else if(void 0!==("undefined"==typeof SuperMap?"undefined":l(SuperMap))&&void 0!==l(SuperMap.REST)&&void 0!==l(SuperMap.REST.GetSymbolInfoService)){var c=new SuperMap.REST.GetSymbolInfoService(t);c.events.on({processCompleted:a,processFailed:s,scope:p});var y=new SuperMap.REST.GetSymbolInfoParameters;if(y.libID=e,y.code=o,n&&SuperMap.Plot.PlottingUtil.extend(y,n),i&&null!=i&&(SuperMap.Plot.PlottingUtil.isArray(i)||(i=[i]),y.inputPoints=i),n&&n.credential){var h=n.credential;c.processAsync(y,h)}else c.processAsync(y)}},SuperMap.Plot.PlottingUtil.innerOutlineDir=function(t){function e(t,e){function o(t){var e=Math.atan2(t.y,t.x);return e<0&&(e+=2*Math.PI),e}var l=o(e)-o(t);return l<-Math.PI&&(l+=2*Math.PI),l>Math.PI&&(l-=2*Math.PI),l}if(t.length<3)return 1;for(var o=0,l={x:0,y:0},i={x:0,y:0},n=2;n<t.length;n++)i.x=t[n].x-t[n-1].x,i.y=t[n].y-t[n-1].y,l.x=t[n-1].x-t[n-2].x,l.y=t[n-1].y-t[n-2].y,o+=e(l,i);return i.x=t[1].x-t[0].x,i.y=t[1].y-t[0].y,l.x=t[0].x-t[t.length-1].x,l.y=t[0].y-t[t.length-1].y,(o+=e(l,i))>=0?-1:1},SuperMap.Plot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMap.Plot.PlottingUtil.TORLERANCE_STATIC),t<e&&t>-e},SuperMap.Plot.PlottingUtil.equalFuzzy=function(t,e,o){return o||(o=1e-18),Math.abs(t-e)<=o},SuperMap.Plot.PlottingUtil.intersectLines=function(t,e,o,l){var i={isIntersectLines:!1};if(t.x===e.x&&t.y===e.y||o.x===l.x&&o.y===l.y)return i;var n=e.x-t.x,r=e.y-t.y,a=l.x-o.x,s=l.y-o.y,p=n*s-a*r;if(SuperMap.Plot.PlottingUtil.isNear(p))return i;var u=(n*(t.y-o.y)-r*(t.x-o.x))/p,P=new SuperMap.Geometry.Point(0,0);return P.x=u*a+o.x,P.y=u*s+o.y,i.isIntersectLines=!0,i.intersectPoint=P,i},SuperMap.Plot.PlottingUtil.getEnvelopePoints=function(t){function e(t,e){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(t[o].x!==e[o].x||t[o].y!==e[o].y)return!1;return!0}function o(t,e,o){for(var l=0;l<t.length;l++)if(t[l].containsPoint(e))return o.index=l,!0;return!1}function l(t,e,o){for(var l=t.components[0].components,i=new SuperMap.Geometry.Point(0,0),n=0;n<l.length-1;n++)if(SuperMap.Plot.PlottingUtil.intersectLineSegs(e,o,l[n],l[n+1],i))return i;return null}function i(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,.5))return e;for(var o=e[e.length-1],l=0;l<t.length;l++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][0].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][0].y,o.y,.5)){e=e.concat(t[l]),t.splice(l,1);var n=i(t,e);if(void 0!==n&&0!==n.length)return n}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][t[l].length-1].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[l][t[l].length-1].y,o.y,.5)){for(var r=t[l].length-1;r>=0;r--)e.push(t[l][r]);t.splice(l,1);var a=i(t,e);if(void 0!==a&&0!==a.length)return a}return e}if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),0===t.length)return[];if(1===t.length)return t[0];for(var n=0;n<t.length;n++)for(var r=n+1;r<t.length;)e(t[n],t[r])?t.splice(r,1):r++;for(var a=[],s=0;s<t.length;s++)a.push(new SuperMap.Geometry.Polygon([new SuperMap.Geometry.LinearRing(t[s])]));for(var p=[],u=0;u<t.length;u++){var P=[],c=[],y=-1,h=-1,S=a.slice();S.splice(u,1);for(var f={},g=0;g<t[u].length;g++)if(o(S,t[u][g],f)){if(0!==c.length){var M=l(a[f.index],t[u][g-1],t[u][g]);M&&M!==t[u][g-1]&&M!==t[u][g]&&c.push(M),P.push(c),c=[]}}else{if(0===g&&(y=P.length),g===t[u].length-1&&(h=P.length),0===c.length&&void 0!==f.index){var d=l(a[f.index],t[u][g-1],t[u][g]);d&&d!==t[u][g-1]&&d!==t[u][g]&&c.push(d)}c.push(t[u][g].clone())}if(0!==c.length&&P.push(c),y<P.length&&h<P.length&&y!==h){for(var m=0;m<P[y].length;m++)P[h].push(P[y][m]);P.splice(y,1)}p=p.concat(P)}for(var v=[];0!==p.length;){var b=p[0];p.splice(0,1);var A=i(p,b);void 0!==A&&(b=A),b.length>2&&v.push(b)}return v},SuperMap.Plot.PlottingUtil.isRight=function(t,e,o){var l=e,i=o,n=e,r=t;return(i.x-l.x)*(r.y-n.y)-(r.x-n.x)*(i.y-l.y)<0},SuperMap.Plot.PlottingUtil.radian=function(t,e){var o,l,i=0;return o=e.x-t.x,l=e.y-t.y,(i=Math.atan2(l,o))<0&&(i+=2*Math.PI),i},SuperMap.Plot.PlottingUtil.findBisectorPoint=function(t,e,o,l){var i=SuperMap.Plot.PlottingUtil.radian(e,t),n=(i+SuperMap.Plot.PlottingUtil.radian(e,o))/2,r=Math.cos(n-i+Math.PI/2),a=l;SuperMap.Plot.PlottingUtil.isNear(r,.15)||(a=l/r);var s=e.x+a*Math.cos(n),p=e.y+a*Math.sin(n);return new SuperMap.Geometry.Point(s,p)},SuperMap.Plot.PlottingUtil.findPoint=function(t,e,o,l){if(t===e||Math.abs(o)<1e-18)return t;var i=SuperMap.Plot.PlottingUtil.radian(t,e)+l*Math.PI/180,n=t.x+o*Math.cos(i),r=t.y+o*Math.sin(i);return new SuperMap.Geometry.Point(n,r)},SuperMap.Plot.PlottingUtil.isSameQuadrant=function(t,e,o,l){var i=(e.x-t.x)*(l.x-o.x),n=(e.y-t.y)*(l.y-o.y);return!(Math.abs(i)<1e-18&&Math.abs(n)<1e-18)&&((i>0||Math.abs(i)<1e-18)&&(n>0||Math.abs(n)<1e-18))},SuperMap.Plot.PlottingUtil.isCross=function(t,e,o,l){var i=new SuperMap.Geometry.Point(0,0);return!(!SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,o,l,i)||i==t||i===e||i===o||i==l)},SuperMap.Plot.PlottingUtil.intersectLineSegs=function(t,e,o,l,i){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))return i.x=t.x,i.y=t.y,!1;if(SuperMap.Plot.PlottingUtil.equalFuzzy(o.x,l.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(o.y,l.y))return i.x=o.x,i.y=o.y,!1;var n=0,r=0;if(n=t.x>e.x?t.x:e.x,r=t.x<e.x?t.x:e.x,o.x-n>1e-16&&l.x-n>1e-16||o.x-r<-1e-16&&l.x-r<-1e-16)return!1;if(n=t.y>e.y?t.y:e.y,r=t.y<e.y?t.y:e.y,o.y-n>1e-16&&l.y-n>1e-16||o.y-r<-1e-16&&l.y-r<-1e-16)return!1;var a=e.x-t.x,s=e.y-t.y,p=l.x-o.x,u=l.y-o.y,P=t.x-o.x,c=t.y-o.y,y=a*u-p*s,h=y;if(Math.abs(a)>1e-18&&Math.abs(p)>1e-18&&(h/=a*p),Math.abs(h)<1e-18)return t===o?(i.x=t.x,i.y=t.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===l?(i.x=e.x,i.y=e.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l)):t===l?(i.x=t.x,i.y=t.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===o&&(i.x=e.x,i.y=e.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,l));var S=(a*c-s*P)/y,f=(p*c-u*P)/y;return!(S<0&&(Math.abs(S*p)>1e-16||Math.abs(S*u)>1e-16))&&(!(S>1&&(Math.abs((S-1)*p)>1e-16||Math.abs((S-1)*u)>1e-16))&&(!(f<0&&(Math.abs(f*a)>1e-16||Math.abs(f*s)>1e-16))&&(!(f>1&&(Math.abs((f-1)*a)>1e-16||Math.abs((f-1)*s)>1e-16))&&(Math.abs(S)<1e-18?(i.x=o.x,i.y=o.y,!0):Math.abs(S-1)<1e-18?(i.x=l.x,i.y=l.y,!0):Math.abs(f)<1e-18?(i.x=t.x,i.y=t.y,!0):Math.abs(f-1)<1e-18?(i.x=e.x,i.y=e.y,!0):!(S<0&&(Math.abs(S*p)>1e-16||Math.abs(S*u)>1e-16))&&(!(S>1&&(Math.abs((S-1)*p)>1e-16||Math.abs((S-1)*u)>1e-16))&&(!(f<0&&(Math.abs(f*a)>1e-16||Math.abs(f*s)>1e-16))&&(!(f>1&&(Math.abs((f-1)*a)>1e-16||Math.abs((f-1)*s)>1e-16))&&(i.x=S*p+o.x,i.y=S*u+o.y,!0))))))))},SuperMap.Plot.PlottingUtil.parallel=function(t,e){var o=[],l=t.length;if(!t||null==t||t.length<2)return o;var i=!1;t.length>3&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&(i=!0),i?(o[0]=SuperMap.Plot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),o[t.length-1]=o[0]):(o[0]=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),o[t.length-1]=SuperMap.Plot.PlottingUtil.findPoint(t[t.length-1],t[t.length-2],-e,90));for(var n=t[0],r=t[1],a=t[1],s=1;s<t.length-1;s++)if(r=t[s],t[s]!==t[s-1]&&(n=t[s-1]),t[s]!==t[s+1]){a=t[s+1];var p=SuperMap.Plot.PlottingUtil.findBisectorPoint(n,r,a,e);SuperMap.Plot.PlottingUtil.isCross(n,o[s-1],r,p)&&(p=o[s-1]),o[s]=p}else{for(var u=s;u<l-1;){if(t[u]!==t[u+1]){a=t[u+1];break}u++}if(u<l-1){var P=SuperMap.Plot.PlottingUtil.FindBisectorPoint(n,r,a,e);for(SuperMap.Plot.PlottingUtil.isCross(n,o[s-1],r,P)&&(P=o[s-1]);s<u;)o[s]=P,s++;s=u-1}}return o},SuperMap.Plot.PlottingUtil.distance=function(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},SuperMap.Plot.PlottingUtil.projectPoint=function(t,e,o){if(e===o)return e;var l=new SuperMap.Geometry.Point(0,0),i=o.x-e.x,n=e.y-o.y,r=i*i,a=n*n,s=i*n,p=i*i+n*n;return l.x=(s*(e.y-t.y)+e.x*a+t.x*r)/p,l.y=(s*(e.x-t.x)+e.y*r+t.y*a)/p,l},SuperMap.Plot.PlottingUtil.pointToLineDis=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.projectPoint(t,e,o);return SuperMap.Plot.PlottingUtil.distance(t,l)},SuperMap.Plot.PlottingUtil.pointToPloyLineDis=function(t,e,o){if(e===o)return SuperMap.Plot.PlottingUtil.distance(t,e);var l=(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y),i=(o.x-t.x)*(o.x-t.x)+(o.y-t.y)*(o.y-t.y),n=(e.x-o.x)*(e.x-o.x)+(e.y-o.y)*(e.y-o.y),r=(l+n-i)/(2*n);r<0?r=0:r>1&&(r=1);var a=(o.x-e.x)*r+e.x,s=(o.y-e.y)*r+e.y,p=(a-t.x)*(a-t.x)+(s-t.y)*(s-t.y);return Math.sqrt(p)},SuperMap.Plot.PlottingUtil.isCounterClockwise=function(t,e,o){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)>0},SuperMap.Plot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,o=0;o<e-1;)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].y,t[o+1].y)?(t.splice(o,1),e--):o++;return t},SuperMap.Plot.PlottingUtil.getBeizerCtrlPt=function(t){var e=[],o=t.length;if(o<3)for(var l=0;l<o;++l)e[l]=t[l].clone();else{for(var i=0,n=0;n<3*o-2;n+=3)e[n]=t[i].clone(),e[n+1]=new SuperMap.Geometry.Point(0,0),e[n+2]=new SuperMap.Geometry.Point(0,0),i++;for(var r=1;r<o-1;r++)SuperMap.Plot.PlottingUtil.getTrianglePoints(8,3,t[r-1],t[r],t[r+1],e[3*r+1],e[3*r+2]);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[0],e[3],e[4],e[2]),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[3*o-3],e[3*o-6],e[3*o-4],e[3*o-2]),e[1]=t[0].clone(),e[3*o-1]=t[o-1].clone()}return e},SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var o=t.slice();!0===e&&o.push(o[0]);var l=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(o);return SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)},SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt=function(t){var e=t.length,o=[];if(t.length<3)for(var l=0;l<e;l++)o[l]=t[l].clone();else for(var i=0;i<e;i+=3)if(!(i+4>=e)){var n=t[i].x,r=t[i].y,a=t[i+2].x,s=t[i+2].y,p=t[i+4].x,u=t[i+4].y,P=t[i+3].x,c=t[i+3].y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(n,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,P,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10))o.push(new SuperMap.Geometry.Point(n,r)),o.push(new SuperMap.Geometry.Point(p,u));else for(var y=0;y<=1;y+=.03125){var h,S,f,g,M=y*y,d=M*y;h=1-3*y+3*M-d,S=3*(y-2*M+d),f=3*(M-d),g=d;var m=new SuperMap.Geometry.Point(h*n+S*a+f*p+g*P,h*r+S*s+f*u+g*c);o.push(m)}}return o},SuperMap.Plot.PlottingUtil.computeBeizerPoints=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),i=[],n=[],r=[];if(t){n.push(e[0]);var a=o[0],s=o[1],p=e[0].x+l*a,u=e[0].y+l*s;n.push(new SuperMap.Geometry.Point(p,u)),i.push(new SuperMap.Geometry.Point(p,u));for(var P=1;P<e.length-1;P++){var c=o[4*P-2],y=o[4*P-1],h=e[P].x+l*c,S=e[P].y+l*y;n.push(new SuperMap.Geometry.Point(h,S)),i.push(new SuperMap.Geometry.Point(h,S)),n.push(new SuperMap.Geometry.Point(e[P].x,e[P].y)),c=o[4*P],y=o[4*P+1],h=e[P].x+l*c,S=e[P].y+l*y,n.push(new SuperMap.Geometry.Point(h,S)),i.push(new SuperMap.Geometry.Point(h,S))}var f=e.length-1;a=o[4*f-2],s=o[4*f-1],p=e[f].x+l*a,u=e[f].y+l*s,n.push(new SuperMap.Geometry.Point(p,u)),i.push(new SuperMap.Geometry.Point(p,u)),n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y)),n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y)),n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y)),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}else{o=[];var g=(n=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(e))[1].x-n[0].x,M=n[1].y-n[0].y,d=g/l,m=M/l;o.push(d),o.push(m),i.push(n[1]);for(var v=1;v<e.length-1;v++){var b=(n[3*v-1].x-n[3*v].x)/l,A=(n[3*v-1].y-n[3*v].y)/l;o.push(b),o.push(A),i.push(n[3*v-1]);var L=(n[3*v+1].x-n[3*v].x)/l,T=(n[3*v+1].y-n[3*v].y)/l;o.push(L),o.push(T),i.push(n[3*v+1])}d=(g=n[3*(e.length-1)-1].x-n[3*(e.length-1)].x)/l,m=(M=n[3*(e.length-1)-1].y-n[3*(e.length-1)].y)/l,o.push(d),o.push(m),i.push(n[3*(e.length-1)-1]),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(n)}return{scalePoints:i,scaleValues:o,beizerPoints:r}},SuperMap.Plot.PlottingUtil.getTrianglePoints=function(t,e,o,l,i,n,r){var a=o.x,s=o.y,p=l.x,u=l.y,P=i.x,c=i.y;SuperMap.Plot.PlottingUtil.getPointsByTriangle(t,e,a,s,p,u,P,c,n,r)},SuperMap.Plot.PlottingUtil.getPointsByTriangle=function(t,e,o,l,i,n,r,a,s,p){var u=i+(r-o),P=n+(a-l),c=0,y=0;if(o==r)c=o,y=P;else if(l==a)c=u,y=l;else{var h=1*(a-l)/(r-o),S=l-o*h;y=h*(c=(P+u/h-S)/(h+1/h))+S}var f=Math.sqrt(1*(i-u)*(i-u)+1*(n-P)*(n-P)),g=Math.sqrt(1*(o-i)*(o-i)+1*(l-n)*(l-n)),M=Math.sqrt(1*(i-r)*(i-r)+1*(n-a)*(n-a)),d=0;u=c+(u-c)*(d=g+M?1+(M-g)*t/(M+g):1),P=y+(P-y)*d,0==f&&(f=1),s.x=i+(i-u)*g/(e*f),s.y=n+(n-P)*g/(e*f),p.x=i+(u-i)*M/(e*f),p.y=n+(P-n)*M/(e*f)},SuperMap.Plot.PlottingUtil.getTrapezoidPoints=function(t,e,o,l,i){var n=e.x,r=e.y,a=o.x,s=o.y,p=l.x,u=l.y;return SuperMap.Plot.PlottingUtil.getPointsByTrapezoid(t,n,r,a,s,p,u,i)},SuperMap.Plot.PlottingUtil.getPointsByTrapezoid=function(t,e,o,l,i,n,r,a){var s=0,p=0,u=0,P=0;if(0==Math.abs(o-i))s=e+l-n,p=r;else if(0==Math.abs(e-l))s=n,p=o+i-r;else{var c=1*(o-i)/(e-l),y=r-c*n;p=c*(s=((i+o)/2+(e+l)/(2*c)-y)/(c+1/c))+y,s=2*s-n,p=2*p-r}var h=Math.sqrt(1*(e-l)*(e-l)+1*(o-i)*(o-i)),S=Math.sqrt(1*(e-s)*(e-s)+1*(o-p)*(o-p));return h>0?(u=e+(l-e)*S/h,P=o+(i-o)*S/h):(u=e,P=o),a.x=u+(s-u)*t,a.y=P+(p-P)*t,a},SuperMap.Plot.PlottingUtil.pointIsOnPolyLine=function(t,e,o){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,o.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,o.y))return!0;var l=t.x-e.x,i=t.y-e.y,n=t.x-o.x,r=t.y-o.y,a=(l*n+i*r)/(Math.sqrt(l*l+i*i)*Math.sqrt(n*n+r*r));return!!SuperMap.Plot.PlottingUtil.equalFuzzy(a,-1,.1)},SuperMap.Plot.PlottingUtil.pointIsOnPolyLines=function(t,e){if(!e||0===e.length)return{isOnPolyLine:!1,index:-1};for(var o=!1,l=-1,i=0;i<e.length-1;i++)if(o=SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(t,e[i],e[i+1])){l=i;break}return{isOnPolyLine:o,index:l}},SuperMap.Plot.PlottingUtil.computePointToLineMinDis=function(t,e){for(var o=-1,l=-1,i=0;i<e.length-1;i++){var n=e[i],r=e[i+1],a=SuperMap.Plot.PlottingUtil.projectPoint(t,n,r);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(a,n,r)){var s=SuperMap.Plot.PlottingUtil.distance(t,a);o<0?(o=s,l&&(l=i)):o>s&&(o=s,l=i)}}return l&&o<0&&(l=-1),{minDis:o,index:l}},SuperMap.Plot.PlottingUtil.findPointInLine=function(t,e,o){if(t===e||Math.abs(o)<1e-18)return t;var l=e.x-t.x,i=e.y-t.y,n=o/Math.sqrt(l*l+i*i),r=t.x+l*n,a=t.y+i*n;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.operateControlPoints=function(t){var e=t,o=e.length;if(3==o){var l=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],l),e.push(l)}if(o>4&&(e.splice(4,o-4),o=e.length),SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var i=e[0];e[0]=e[1],e[1]=i}if(!SuperMap.Plot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var n=e[2];e[2]=e[3],e[3]=n}return e},SuperMap.Plot.PlottingUtil.pointIsRightToLine=function(t,e,o){return(e.x-t.x)*(o.y-t.y)-(o.x-t.x)*(e.y-t.y)<0},SuperMap.Plot.PlottingUtil.pointIsRightToVerticle=function(t,e,o){var l=new SuperMap.Geometry.Point(.5*(e.x+t.x),.5*(e.y+t.y)),i=new SuperMap.Geometry.Point(e.x-t.x,e.y-t.y),n=new SuperMap.Geometry.Point(o.x-l.x,o.y-l.y);return i.x*n.x+i.y*n.y>0},SuperMap.Plot.PlottingUtil.linePnt=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.distance(t,e);if(0==l)return t;var i=o/l;return SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(i,t,e)},SuperMap.Plot.PlottingUtil.findPointOnLineByRatio=function(t,e,o){var l=new SuperMap.Geometry.Point(0,0);return l.x=e.x+(o.x-e.x)*t,l.y=e.y+(o.y-e.y)*t,l},SuperMap.Plot.PlottingUtil.rotateAngle=function(t,e,o){var l=e,i=Math.cos(l),n=Math.sin(l),r=o.x-t.x,a=o.y-t.y;return o.x=r*i-a*n+t.x,o.y=r*n+a*i+t.y,o},SuperMap.Plot.PlottingUtil.resize=function(t,e,o){return o.x=t.x+e*(o.x-t.x),o.y=t.y+e*(o.y-t.y),o},SuperMap.Plot.PlottingUtil.findPointInPolyLine=function(t,e){if(e<0||t.length<2)return{index:-1,pt:null};if(Math.abs(e)<1e-18)return{index:0,pt:t[0]};for(var o=0,l=0;l<t.length-1;l++)if((o+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]))>e||SuperMap.Plot.PlottingUtil.equalFuzzy(o,e)){var i=o-e,n=t[l+1],r=t[l],a=i/SuperMap.Plot.PlottingUtil.distance(n,r),s=new SuperMap.Geometry.Point(0,0);return s.x=n.x+(r.x-n.x)*a,s.y=n.y+(r.y-n.y)*a,{index:l,pt:s}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);return e},SuperMap.Plot.PlottingUtil.rotate=function(t,e,o,l){var i=l.x-t.x,n=l.y-t.y,r=i*e-n*o+t.x,a=i*o+n*e+t.y;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale=function(t,e,o){var l=e.x,i=e.y,n=o.x,r=o.y,a=Math.sqrt(1*(l-n)*(l-n)+1*(i-r)*(i-r)),s=0,p=0;return 0==a?(s=l,p=i):(s=l+(n-l)*t/a,p=i+(r-i)*t/a),new SuperMap.Geometry.Point(s,p)},SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale=function(t,e,o){var l=e.x,i=e.y,n=o.x,r=o.y,a=0,s=0,p=Math.sqrt(1*(l-n)*(l-n)+1*(i-r)*(i-r));return 0===p?(a=l,s=i):(a=l+(l-n)*t/p,s=i+(i-r)*t/p),new SuperMap.Geometry.Point(a,s)},SuperMap.Plot.PlottingUtil.getSidePointsOfLine=function(t,e,o){var l=e.x,i=e.y,n=o.x,r=o.y,a=Math.sqrt(1*(l-n)*(l-n)+1*(i-r)*(i-r)),s=0,p=0;0==a?(p=0,s=t):(s=t*(l-n)/a,p=t*(i-r)/a);var u=-p+n,P=+s+r,c=+p+n,y=-s+r;return{pntLeft:new SuperMap.Geometry.Point(c,y),pntRight:new SuperMap.Geometry.Point(u,P)}},SuperMap.Plot.PlottingUtil.pointProjectToSegment=function(t,e,o){var l=0,i=0,n=0,r=1,a=void 0,s=void 0;if(i=e.x!==t.x?(e.y-t.y)/(e.x-t.x):1.7976931348623157e308,n=o.x!==t.x?(o.y-t.y)/(o.x-t.x):1.7976931348623157e308,l=o.y!==e.y?(o.x-e.x)/(e.y-o.y):1.7976931348623157e308,(a=e.x>=t.x&&e.y>=t.y?1:e.x<t.x&&e.y>t.y?2:e.x<=t.x&&e.y<=t.y?3:4)==(s=o.x>t.x&&o.y>t.y?1:o.x<t.x&&o.y>t.y?2:o.x<t.x&&o.y<t.y?3:4))(i<l&&n<l||i>l&&n>l)&&(r=0);else switch(a){case 1:(4==s&&i<l||2==s&&i>l)&&(r=0);break;case 2:(1==s&&i<l||3==s&&i>l)&&(r=0);break;case 3:(2==s&&i<l||4==s&&i>l)&&(r=0);break;case 4:(3==s&&i<l||1==s&&i>l)&&(r=0)}var p=new SuperMap.Geometry.Point(0,0);return SuperMap.Plot.PlottingUtil.equalFuzzy(l-1.7976931348623157e308,0)?(p.x=t.x,p.y=e.y):SuperMap.Plot.PlottingUtil.equalFuzzy(l,0)?(p.x=e.x,p.y=t.y):(p.x=(l*(e.y-t.y)+l*l*t.x+e.x)/(l*l+1),p.y=t.y+l*(p.x-t.x)),{isOnline:1===r,projectPoint:p}},SuperMap.Plot.PlottingUtil.coordinateTrans=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(0,0),e),i=SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(0,0),e)+o*Math.PI/180,n=l*Math.cos(i)+t.x,r=l*Math.sin(i)+t.y;return new SuperMap.Geometry.Point(n,r)},SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen=function(t,e,o){var l=void 0,i=void 0,n=(o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y),r=Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),a=Math.sqrt((t.x-o.x)*(t.x-o.x)+(t.y-o.y)*(t.y-o.y));if(0==a||0==r)l=0,i=0;else if(0==n)l=r,i=0;else{var s=(r*r+a*a-n)/2/r/a,p=0;s>=1?(s=1,p=0):p=Math.sqrt(1-s*s),l=a*s,i=a*p}return{dLen1:l,dLen2:i}},SuperMap.Plot.PlottingUtil.paraLine=function(t,e,o){var l=[];if(2>t.length)return l;if(o){var i=t[1].clone();i=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],Math.PI/2,i),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],i,e));for(var n=1;n<t.length-1;n++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].x,t[n+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].y,t[n+1].y)){for(var r=SuperMap.Plot.PlottingUtil.radian(t[n],t[n+1]),a=SuperMap.Plot.PlottingUtil.radian(t[n],t[n-1])-r;a<0;)a+=2*Math.PI;var s=a/2,p=void 0;p=s>Math.PI/2?s-Math.PI/2:Math.PI/2-s;var u=e/Math.cos(p);i=t[n+1].clone(),i=SuperMap.Plot.PlottingUtil.rotateAngle(t[n],s,i),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[n],i,u))}i=t[t.length-2].clone(),i=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,i),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],i,e))}else{var P=t[1].clone();P=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,P),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],P,e));for(var c=1;c<t.length-1;c++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[c].x,t[c+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[c].y,t[c+1].y)){for(var y=SuperMap.Plot.PlottingUtil.radian(t[c],t[c+1]),h=SuperMap.Plot.PlottingUtil.radian(t[c],t[c-1])-y;h<0;)h+=2*Math.PI;var S=Math.PI-h/2,f=void 0;f=S>Math.PI/2?S-Math.PI/2:Math.PI/2-S;var g=e/Math.cos(f);P=t[c-1].clone(),P=SuperMap.Plot.PlottingUtil.rotateAngle(t[c],S,P),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[c],P,g))}P=t[t.length-2].clone(),P=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,P),l.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],P,e))}return l},SuperMap.Plot.PlottingUtil.circlePoint=function(t,e,o,l){l*=Math.PI/180;var i=t.x+e*Math.cos(l),n=t.y+o*Math.sin(l);return new SuperMap.Geometry.Point(i,n)},SuperMap.Plot.PlottingUtil.getPolygonCenterPt=function(t){if(!t||0===t.length)return null;for(var e=0,o=0,l=0;l<t.length;l++)e+=t[l].x,o+=t[l].y;return new SuperMap.Geometry.Point(e/t.length,o/t.length)},SuperMap.Plot.PlottingUtil.ptIsInPolygon=function(t,e){if(!t||0===t.length)return!1;for(var o=0,l=t.length,i=0;i<l;i++){var n=t[i],r=t[(i+1)%l];if(n.y!==r.y){var a=n.y<r.y?n.y:r.y,s=n.y>r.y?n.y:r.y;if(!(e.y<a||e.y>s))(e.y-n.y)*(r.x-n.x)/(r.y-n.y)+n.x>e.x&&o++}}return o%2==1},SuperMap.Plot.PlottingUtil.projectPtOnPolyLine=function(t,e){if(2>e.length)return{index:-1,pt:null};for(var o=0;o<e.length-1;o++){var l=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e[o],e[o+1]);if(l.isOnline)return{index:o,pt:l.projectPoint}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.isPloyClockwise=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length;if(!(o<3)){var l=e[0].y*(e[o-1].x-e[1].x);e.push(e[0].clone());for(var i=1;i<o;++i)l+=e[i].y*(e[i-1].x-e[i+1].x);return l>0?0:1}},SuperMap.Plot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMap.Plot.PlottingUtil.getPtsIndexByDistance=function(t,e){var o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,t);return{index:o.index,pts:o.pt,bfind:-1!==o.index}},SuperMap.Plot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.x<e.right&&t.y<e.top&&t.y>e.bottom},SuperMap.Plot.PlottingUtil.InnerAngle=function(t,e,o){if(t==e||t==o)return 0;var l=SuperMap.Plot.PlottingUtil.distance(t,e),i=SuperMap.Plot.PlottingUtil.distance(t,o),n=SuperMap.Plot.PlottingUtil.distance(e,o),r=(l*l+i*i-n*n)/(2*l*i);return r>1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,1)?r=1:r<1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,-1)&&(r=-1),Math.acos(r)},SuperMap.Plot.PlottingUtil.plumbLineLen=function(t,e,o){return SuperMap.Plot.PlottingUtil.distance(t,e)*Math.sin(SuperMap.Plot.PlottingUtil.InnerAngle(e,t,o))},SuperMap.Plot.PlottingUtil.paraPolygon=function(t,e,o){var l=[],i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=i.length;if(n<2)return l;var r=new SuperMap.Geometry.Point(0,0);if(o){if(n<3)r=i[1].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[0],Math.PI,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,e));else{for(var a=SuperMap.Plot.PlottingUtil.radian(i[0],i[1]),s=SuperMap.Plot.PlottingUtil.radian(i[0],i[i.length-1])-a;s<0;)s+=2*Math.PI;var p=s/2,u=void 0;u=p>Math.PI/2?p-Math.PI/2:Math.PI/2-p;var P=e/Math.cos(u);r=i[1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[0],p,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,P))}for(var c=1;c<n-1;c++){for(var y=SuperMap.Plot.PlottingUtil.radian(i[c],i[c+1]),h=SuperMap.Plot.PlottingUtil.radian(i[c],i[c-1])-y;h<0;)h+=2*Math.PI;var S=h/2,f=void 0;f=S>Math.PI/2?S-Math.PI/2:Math.PI/2-S;var g=e/Math.cos(f);r=i[c+1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[c],S,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[c],r,g))}if(n<3)r=i[n-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],0,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,e));else{for(var M=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[0]),d=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[n-2])-M;d<0;)d+=2*Math.PI;var m=d/2,v=void 0;v=m>Math.PI/2?m-Math.PI/2:Math.PI/2-m;var b=e/Math.cos(v);r=i[0].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],m,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,b))}}else{if(n<3){var A=i[1].clone();SuperMap.Plot.PlottingUtil.rotateAngle(i[0],0,A),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],A,e))}else{for(var L=SuperMap.Plot.PlottingUtil.radian(i[0],i[1]),T=SuperMap.Plot.PlottingUtil.radian(i[0],i[n-1])-L;T<0;)T+=2*Math.PI;var x=Math.PI-T/2,O=void 0;O=x>Math.PI/2?x-Math.PI/2:Math.PI/2-x;var w=e/Math.cos(O);r=i[n-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[0],x,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[0],r,w))}for(var U=1;U<n-1;U++){for(var R=SuperMap.Plot.PlottingUtil.radian(i[U],i[U+1]),_=SuperMap.Plot.PlottingUtil.radian(i[U],i[U-1])-R;_<0;)_+=2*Math.PI;var E=Math.PI-_/2,C=void 0;C=E>Math.PI/2?E-Math.PI/2:Math.PI/2-E;var I=e/Math.cos(C);r=i[U-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[U],E,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[U],r,I))}if(n<3)r=i[n-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],Math.PI,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,e));else{for(var B=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[0]),D=SuperMap.Plot.PlottingUtil.radian(i[n-1],i[n-2])-B;D<0;)D+=2*Math.PI;var G=Math.PI-D/2,V=void 0;V=G>Math.PI/2?G-Math.PI/2:Math.PI/2-G;var N=e/Math.cos(V);r=i[n-2].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(i[n-1],G,r),l.push(SuperMap.Plot.PlottingUtil.linePnt(i[n-1],r,N))}}return l},SuperMap.Plot.PlottingUtil.getOutRectangleDis=function(t){if(2>t.length)return 0;for(var e=t[0].x,o=t[0].x,l=t[0].y,i=t[0].y,n=1;n<t.length;n++)e<t[n].x&&(e=t[n].x),o>t[n].x&&(o=t[n].x),l<t[n].y&&(l=t[n].y),i>t[n].y&&(i=t[n].y);return SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(e,l),new SuperMap.Geometry.Point(o,i))},SuperMap.Plot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),t&&null!=t)for(var o=0;o<t.length;o++)void 0!==t[o]&&null!==t[o]&&e.push(t[o].clone());return e},SuperMap.Plot.PlottingUtil.extend=function(t,e){if("function"==typeof SuperMap.Util.extend)return SuperMap.Util.extend(t,e);if(t=t||{},e){for(var o in e){var l=e[o];void 0!==l&&(t[o]=l)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},SuperMap.Plot.PlottingUtil.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},SuperMap.Plot.PlottingUtil.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,l=t.length;o<l;o++)if(t[o]===e)return o;return-1},SuperMap.Plot.PlottingUtil.copyAttributes=function(t,e){if(t=t||{},e)for(var o in e){var l=e[o];void 0!==l&&"CLASS_NAME"!==o&&"function"!=typeof l&&(t[o]=l)}return t},SuperMap.Plot.PlottingUtil.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":l(t)))return t;if(t instanceof Date){var e=new Date;return e.setTime(t.getTime()),e}if(t instanceof Array)return t.slice(0);if(t instanceof Object){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=SuperMap.Plot.PlottingUtil.cloneObject(t[i]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},SuperMap.Plot.PlottingUtil.rad=function(t){return t*Math.PI/180},SuperMap.Plot.PlottingUtil.deg=function(t){return 180*t/Math.PI},SuperMap.Plot.PlottingUtil.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563},SuperMap.Plot.PlottingUtil.distVincenty=function(t,e){var o,l,i,n=SuperMap.Plot.PlottingUtil.VincentyConstants,r=n.a,a=n.b,s=n.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng&&e instanceof L.LatLng?(o=SuperMap.Plot.PlottingUtil.rad(e.lng-t.lng),l=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat)))):(o=SuperMap.Plot.PlottingUtil.rad(e.lon-t.lon),l=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat))));for(var p=Math.sin(l),u=Math.cos(l),P=Math.sin(i),c=Math.cos(i),y=o,h=2*Math.PI,S=20;Math.abs(y-h)>1e-12&&--S>0;){var f=Math.sin(y),g=Math.cos(y),M=Math.sqrt(c*f*(c*f)+(u*P-p*c*g)*(u*P-p*c*g));if(0==M)return 0;var d=p*P+u*c*g,m=Math.atan2(M,d),v=Math.asin(u*c*f/M),b=Math.cos(v)*Math.cos(v),A=d-2*p*P/b,T=s/16*b*(4+s*(4-3*b));h=y,y=o+(1-T)*s*Math.sin(v)*(m+T*M*(A+T*d*(2*A*A-1)))}if(0==S)return NaN;var x=b*(r*r-a*a)/(a*a),O=x/1024*(256+x*(x*(74-47*x)-128));return(a*(1+x/16384*(4096+x*(x*(320-175*x)-768)))*(m-O*M*(A+O/4*(d*(2*A*A-1)-O/6*A*(4*M*M-3)*(4*A*A-3))))).toFixed(3)/1e3},SuperMap.Plot.PlottingUtil.destinationVincenty=function(t,e,o){var l,i,n=SuperMap.Plot.PlottingUtil,r=n.VincentyConstants,a=r.a,s=r.b,p=r.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?(l=t.lng,i=t.lat):(l=t.lon,i=t.lat);for(var u=o,P=n.rad(e),c=Math.sin(P),y=Math.cos(P),h=(1-p)*Math.tan(n.rad(i)),S=1/Math.sqrt(1+h*h),f=h*S,g=Math.atan2(h,y),M=S*c,d=1-M*M,m=d*(a*a-s*s)/(s*s),v=1+m/16384*(4096+m*(m*(320-175*m)-768)),b=m/1024*(256+m*(m*(74-47*m)-128)),A=u/(s*v),T=2*Math.PI;Math.abs(A-T)>1e-12;){var x=Math.cos(2*g+A),O=Math.sin(A),w=Math.cos(A);T=A,A=u/(s*v)+b*O*(x+b/4*(w*(2*x*x-1)-b/6*x*(4*O*O-3)*(4*x*x-3)))}var U=f*O-S*w*y,R=Math.atan2(f*w+S*O*y,(1-p)*Math.sqrt(M*M+U*U)),_=p/16*d*(4+p*(4-3*d)),E=Math.atan2(O*c,S*w-f*O*y)-(1-_)*p*M*(A+_*O*(x+_*w*(2*x*x-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(n.deg(R),l+n.deg(E)):new SuperMap.LonLat(l+n.deg(E),n.deg(R))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol||{};SuperMap.Plot.AnalysisSymbol.analysisBasicInfo=function(t){var e=new Object;return e.libID=t.libID,e.code=t.code,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.textContent=t.textContent,e.minEditPts=t.algoMinEditPts,e.maxEditPts=t.algoMaxEditPts,e.surroundLineType=t.surroundLineType,e},SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo=function(t){var e=SuperMap.Plot.PlottingUtil.DPI,o=new Object;o.anchorPoint=new SuperMap.Geometry.Point(t.anchorPoint.x,t.anchorPoint.y);var l=0,i=0;return void 0!==t.symbolSizeInLib?(l=Math.round(t.symbolSizeInLib.x*e/25.4/10),i=Math.round(t.symbolSizeInLib.y*e/25.4/10)):(l=Math.round(t.symbolSize.x*e/25.4/10),i=Math.round(t.symbolSize.y*e/25.4/10)),o.symbolSizeInLib=new SuperMap.Size(l,i),o.symbolSizeInLib.w=l,o.symbolSizeInLib.h=i,o.middleMarkBounds=new SuperMap.Bounds(t.middleMarkBounds.leftBottom.x,t.middleMarkBounds.leftBottom.y,t.middleMarkBounds.rightTop.x,t.middleMarkBounds.rightTop.y),o},SuperMap.Plot.AnalysisSymbol.analysisAlgoBasicInfo=function(t,e){var o=new Object;if(o.subSymbols=[],o.scalePoints=[],o.scaleValues=[],e&&t.subSymbols)for(var l=0;l<t.subSymbols.length;l++)o.subSymbols.push(new SuperMap.Plot.SubSymbol(t.libID,t.subSymbols[l]));if(t.scalePoints){o.scalePoints=[];for(var i=0;i<t.scalePoints.length;i++){var n=new SuperMap.Geometry.Point(t.scalePoints[i].x,t.scalePoints[i].y);n.tag=i,n.isScalePoint=!0,o.scalePoints.push(n)}}if(t.scaleValues)for(var r=0;r<t.scaleValues.length;r++)o.scaleValues.push(t.scaleValues[r]);return o},SuperMap.Plot.AnalysisSymbol.analysisSymbolCells=function(t,e){var o=[];if(t&&(function(t,o){if(t.innerCells&&t.innerCells.length)for(var l=0;l<t.innerCells.length;l++){var i=t.innerCells[l];if(t.symbolIsCanFill&&i.type!==SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL){var n=new Object,r=SuperMap.Plot.AnalysisSymbol.getStyle(t,e);n.type=32,n.style={fillSymbolID:r.fillSymbolID,fillColor:r.fillColor,fillOpacity:r.fillOpacity,strokeOpacity:0,strokeWidth:0,fillLimit:!1,lineColorLimit:!0,lineWidthLimit:!0},n.positionPoints=[];for(var a=0;a<i.positionPoints.length;a++){var s=new SuperMap.Geometry.Point(i.positionPoints[a].x,i.positionPoints[a].y);n.positionPoints.push(s)}o.push(n)}}}(t,o),t.innerCells)){var l=t.innerCells;if(0!==l.length)for(var i=0;i<l.length;i++)o.push(SuperMap.Plot.AnalysisSymbol.analysisInnerCell(l[i],e))}return o},SuperMap.Plot.AnalysisSymbol.analysisInnerCell=function(t,e){var o=new Object;if(o.positionPoints=[],t){if(void 0!==t.polybezierClose&&(o.polybezierClose=t.polybezierClose),o.type=t.type,o.surroundLineFlag=t.surroundLineFlag,o.textContent=t.textContent,o.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,e),null!=t.positionPoints)for(var l=t.positionPoints,i=0;i<l.length;i++){var n=new SuperMap.Geometry.Point(l[i].x,l[i].y);o.positionPoints.push(n)}if(o.style.lineColorLimit=t.lineColorLimit,o.style.lineTypeLimit=t.lineTypeLimit,o.style.lineWidthLimit=t.lineWidthLimit,o.style.fillLimit=t.fillLimit,o.style.fillColorLimit=t.fillColorLimit,o.style.fontColorLimit=t.fontColorLimit,o.style.surroundLineLimit=t.surroundLineLimit,o.style.surroundLineFlag=t.surroundLineFlag,o.style.surroundLineType=t.surroundLineType,34==t.type?o.style.fontColorLimit=!0:o.style.fontColorLimit=t.fontColorLimit,o.type===SuperMap.Plot.SymbolType.RECTANGLESYMBOL){var r=o.positionPoints[0],a=o.positionPoints[1],s=r.clone(),p=new SuperMap.Geometry.Point(a.x,r.y),u=a.clone(),P=new SuperMap.Geometry.Point(r.x,a.y);o.positionPoints=[],o.positionPoints.push(s),o.positionPoints.push(p),o.positionPoints.push(u),o.positionPoints.push(P),o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL}o.type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(o.style.fontSizeLimit=!0)}return o},SuperMap.Plot.AnalysisSymbol.getStyle=function(t,e){function o(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var l=t.blue.toString(16);return l.length<2&&(l="0"+l),"#"+e+o+l}function l(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":0===t?"lt":1===t?"ct":2===t?"rt":6===t?"lb":7===t?"cb":8===t?"rb":3===t?"lm":4===t?"cm":5===t?"rm":"lt"}var i=SuperMap.Plot.PlottingUtil.DPI,n={};return t.style?(e?(n.fillSymbolID=t.style.fillSymbolID,n.fillSymbolID||(n.fill=t.style.fill)):(!1===t.style.fill?t.style.fillSymbolID=1:!0===t.style.fill&&(t.style.fillSymbolID=0),n.fillSymbolID=t.style.fillSymbolID),void 0!==t.style.strokeGradientMode&&null!=t.style.strokeGradientMode?1===t.style.strokeGradientMode?n.strokeGradientMode="LINEAR":2===t.style.strokeGradientMode?n.strokeGradientMode="RADIAL":"LINEAR"!==t.style.strokeGradientMode&&"RADIAL"!==t.style.strokeGradientMode&&(n.strokeGradientMode="NONE"):n.strokeGradientMode="NONE",t.style.strokeBackColor?void 0!==t.style.strokeBackColor.red?(n.strokeBackColor=o(t.style.strokeBackColor),n.strokeBackOpacity=(t.style.strokeBackColor.alpha/255).toFixed(2)):(n.strokeBackColor=t.style.strokeBackColor,n.strokeBackOpacity=t.style.strokeBackOpacity):t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?(n.strokeBackColor=o(t.style.fillBackColor),n.strokeBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2)):(n.strokeBackColor=t.style.strokeBackColor,n.strokeBackOpacity=t.style.strokeBackOpacity)),void 0!==t.style.fillGradientMode&&null!=t.style.fillGradientMode&&(1===t.style.fillGradientMode?n.fillGradientMode="LINEAR":2===t.style.fillGradientMode?n.fillGradientMode="RADIAL":"LINEAR"!==t.style.fillGradientMode&&"RADIAL"!==t.style.fillGradientMode&&(n.fillGradientMode="NONE")),null!=t.style.fillGradientAngle&&void 0!==t.style.fillGradientAngle?n.fillAngle=t.style.fillGradientAngle:void 0!==t.style.fillAngle&&null!=t.style.fillAngle&&(n.fillAngle=t.style.fillAngle),void 0!==t.style.fillGradientOffsetRatioX&&null!=t.style.fillGradientOffsetRatioX?n.fillCenterOffsetX=t.style.fillGradientOffsetRatioX/100:void 0!==t.style.fillCenterOffsetX&&null!=t.style.fillCenterOffsetX&&(n.fillCenterOffsetX=t.style.fillCenterOffsetX/100),void 0!==t.style.fillGradientOffsetRatioY&&null!=t.style.fillGradientOffsetRatioY?n.fillCenterOffsetY=t.style.fillGradientOffsetRatioY/100:void 0!==t.style.fillCenterOffsetY&&null!=t.style.fillCenterOffsetY&&(n.fillCenterOffsetY=t.style.fillCenterOffsetY/100),void 0!==t.style.fillForeColor&&(n.fillColor=o(t.style.fillForeColor)),void 0!==t.style.fillOpaqueRate&&(n.fillOpacity=(t.style.fillOpaqueRate/100).toFixed(2),100!==t.style.fillOpaqueRate||1===t.style.fillGradientMode&&2===t.style.fillGradientMode||(n.fillOpacity=(t.style.fillForeColor.alpha/255).toFixed(2))),void 0!==t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?n.fillBackColor=o(t.style.fillBackColor):n.fillBackColor=t.style.fillBackColor),0===t.style.fillBackOpaque?n.fillBackOpacity=0:t.style.fillBackColor&&t.style.fillBackColor.alpha?n.fillBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2):n.fillBackOpacity=t.style.fillBackOpacity,void 0!==t.style.lineColor&&(!0===e?(n.color=o(t.style.lineColor),n.opacity=(t.style.lineColor.alpha/255).toFixed(2)):(n.strokeColor=o(t.style.lineColor),n.strokeOpacity=(t.style.lineColor.alpha/255).toFixed(2))),!0===e?void 0!==t.style.lineWidth?n.weight=Math.ceil(t.style.lineWidth*i/25.4):n.weight=t.style.strokeWidth:void 0!==t.style.lineWidth?n.strokeWidth=Math.ceil(t.style.lineWidth*i/25.4):n.strokeWidth=t.style.strokeWidth,e?(n.lineSymbolID=t.style.lineSymbolID,n.lineSymbolID||(n.dashArray=t.style.dashArray),!n.dashArray&&t.style.strokeDashstyle&&("dash"===t.style.strokeDashstyle?n.lineSymbolID=1:"dot"===t.style.strokeDashstyle?n.lineSymbolID=2:"dashdot"===t.style.strokeDashstyle?n.lineSymbolID=3:n.lineSymbolID=0)):1===t.style.lineSymbolID?n.strokeDashstyle="dash":2===t.style.lineSymbolID?n.strokeDashstyle="dot":3===t.style.lineSymbolID?n.strokeDashstyle="dashdot":t.style.strokeDashstyle?n.strokeDashstyle=t.style.strokeDashstyle:n.strokeDashstyle="solid",t.textStyle2D&&null!=t.textStyle2D?(void 0!==t.textStyle2D.sizeFixed&&(n.sizeFixed=t.textStyle2D.sizeFixed),void 0!==t.textStyle2D.fontName&&(n.fontFamily=t.textStyle2D.fontName),void 0!==t.textStyle2D.fontHeight&&(n.sizeFixed?n.fontSize=Math.ceil(t.textStyle2D.fontHeight*i/25.4):n.fontSize=t.textStyle2D.fontHeight),void 0!==t.textStyle2D.foreColor&&(n.fontColor=o(t.textStyle2D.foreColor)),void 0!==t.textStyle2D.align&&(n.labelAlign=l(t.textStyle2D.align)),void 0!==t.textStyle2D.rotation&&(n.labelRotation=-t.textStyle2D.rotation),void 0!==t.textStyle2D.bold&&(n.fontWeight=-t.textStyle2D.bold),n.labelXOffset=0,n.labelYOffset=0):t.textStyle&&null!=t.textStyle&&(void 0!==t.textStyle.sizeFixed&&(n.sizeFixed=t.textStyle.sizeFixed),void 0!==t.textStyle.fontName&&(n.fontFamily=t.textStyle.fontName),void 0!==t.textStyle.fontHeight&&(n.sizeFixed?n.fontSize=Math.ceil(t.textStyle.fontHeight*i/25.4):n.fontSize=t.textStyle.fontHeight),void 0!==t.textStyle.foreColor&&(n.fontColor=o(t.textStyle.foreColor)),void 0!==t.textStyle.align&&(n.labelAlign=l(t.textStyle.align)),void 0!==t.textStyle.rotation&&(n.labelRotation=-t.textStyle.rotation),void 0!==t.textStyle.bold&&(n.fontWeight=-t.textStyle.bold),n.labelXOffset=0,n.labelYOffset=0),void 0!==t.style.fontOpacity&&(n.fontOpacity=t.style.fontOpacity),void 0!==t.style.fontStroke?n.fontStroke=t.style.fontStroke:t.textStyle2D&&void 0!==t.textStyle2D.outline&&(n.fontStroke=t.textStyle2D.outline),void 0!==t.style.fontStrokeColor?n.fontStrokeColor=t.style.fontStrokeColor:t.textStyle2D&&void 0!==t.textStyle2D.backColor&&(n.fontStrokeColor=o(t.textStyle2D.backColor)),void 0!==n.fontStrokeWidth&&(n.fontStrokeWidth=t.style.fontStrokeWidth),void 0!==t.style.fontBackground&&(n.fontBackground=t.style.fontBackground),void 0!==t.style.fontBackgroundColor&&(n.fontBackgroundColor=t.style.fontBackgroundColor),void 0!==t.style.fontShadow&&(n.fontShadow=t.style.fontShadow),void 0!==t.style.fontShadowColor&&(n.fontShadowColor=t.style.fontShadowColor),void 0!==t.style.fontShadowOffsetX&&(n.fontShadowOffsetX=t.style.fontShadowOffsetX),void 0!==t.style.fontShadowOffsetY&&(n.fontShadowOffsetY=t.style.fontShadowOffsetY),void 0!==t.style.fontSpace&&(n.fontSpace=t.style.fontSpace),void 0!==t.style.fontPercent&&(n.fontPercent=t.style.fontPercent),void 0!==t.style.fontWeight&&(n.fontWeight=t.style.fontWeight),void 0!==t.style.fontStyle&&(n.fontStyle=t.style.fontStyle),void 0!==t.surroundLineColor&&null!=t.surroundLineColor&&(n.surroundLineColor=o(t.surroundLineColor),n.surroundLineColorOpacity=(t.surroundLineColor.alpha/255).toFixed(2)),void 0!==t.surroundLineWidth2D&&null!=t.surroundLineWidth2D?n.surroundLineWidth=Math.round(t.surroundLineWidth2D*i/25.4):void 0!==t.surroundLineWidth&&null!=t.surroundLineWidth&&(n.surroundLineWidth=Math.round(t.surroundLineWidth*i/25.4)),null!=t.style.graphicWidth&&(n.graphicWidth=t.style.graphicWidth),null!=t.style.graphicHeight&&(n.graphicHeight=t.style.graphicHeight),null!=t.style.graphicOpacity&&(n.graphicOpacity=t.style.graphicOpacity),null!=t.style.graphicXOffset&&(n.graphicXOffset=t.style.graphicXOffset),null!=t.style.graphicYOffset&&(n.graphicYOffset=t.style.graphicYOffset),!1===t.visibility?n.display="none":n.display="display",n):n},SuperMap.Plot.AnalysisSymbol.setStyle=function(t,e,o){var l=SuperMap.Plot.PlottingUtil.DPI;if(null!=e)return e.style||(e.style={}),e.textStyle2D||(e.textStyle2D={}),o?(e.style.fillSymbolID=t.fillSymbolID,e.style.fillSymbolID||(e.style.fill=t.fill)):(!1===t.fill?t.fillSymbolID=1:!0===t.fill&&(t.fillSymbolID=0),e.style.fillSymbolID=t.fillSymbolID),t.fillGradientMode&&(e.style.fillGradientMode=t.fillGradientMode),t.fillGradientMode&&("LINEAR"===t.fillGradientMode?e.style.fillGradientMode=1:"RADIAL"===t.fillGradientMode?e.style.fillGradientMode=2:e.style.fillGradientMode=0),t.strokeGradientMode&&("LINEAR"===t.strokeGradientMode?e.style.strokeGradientMode=1:"RADIAL"===t.strokeGradientMode?e.style.strokeGradientMode=2:e.style.strokeGradientMode=0),t.strokeBackColor&&(e.style.strokeBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeBackColor)),t.strokeBackOpacity&&(e.style.strokeBackColor.alpha=255*t.strokeBackOpacity),null!=t.fillAngle&&void 0!==t.fillAngle&&(e.style.fillAngle=t.fillAngle,e.style.fillGradientAngle=t.fillAngle),null!=t.fillCenterOffsetX&&void 0!==t.fillCenterOffsetX&&(e.style.fillCenterOffsetX=100*t.fillCenterOffsetX,e.style.fillGradientOffsetRatioX=100*t.fillCenterOffsetX),null!=t.fillCenterOffsetY&&void 0!==t.fillCenterOffsetY&&(e.style.fillCenterOffsetY=100*t.fillCenterOffsetY,e.style.fillGradientOffsetRatioY=100*t.fillCenterOffsetY),t.fillColor&&(e.style.fillForeColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillColor)),void 0!==t.fillOpacity&&null!=t.fillOpacity&&(e.style.fillOpaqueRate=100*t.fillOpacity,e.style.fillForeColor.alpha=255),t.fillBackColor&&(e.style.fillBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillBackColor)),void 0!==t.fillBackOpacity&&null!=t.fillBackOpacity&&(0===t.fillBackOpacity?(e.style.fillBackOpaque=0,e.style.fillBackColor.alpha=255):e.style.fillBackColor&&(e.style.fillBackOpaque=1,e.style.fillBackColor.alpha=255*t.fillBackOpacity)),!0===o&&t.color?e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.color):t.strokeColor&&(e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeColor)),!0===o&&null!=t.opacity&&void 0!==t.opacity?(e.style.lineColor.alpha=255*t.opacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)):null!=t.strokeOpacity&&void 0!==t.strokeOpacity&&(e.style.lineColor.alpha=255*t.strokeOpacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)),!0===o&&t.weight?e.style.lineWidth=25.4*t.weight/l:t.strokeWidth&&(e.style.lineWidth=25.4*t.strokeWidth/l),o?(e.style.lineSymbolID=t.lineSymbolID,e.style.lineSymbolID||(e.style.dashArray=t.dashArray)):"dot"===t.strokeDashstyle?e.style.lineSymbolID=2:"dash"===t.strokeDashstyle||"longdash"===t.strokeDashstyle?e.style.lineSymbolID=1:"dashdot"===t.strokeDashstyle||"longdashdot"===t.strokeDashstyle?e.style.lineSymbolID=3:e.style.lineSymbolID=0,t.fontFamily&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.fontName=t.fontFamily:e.textStyle&&null!=e.textStyle&&(e.textStyle.fontName=t.fontFamily)),null!=t.sizeFixed&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.sizeFixed=t.sizeFixed:e.textStyle&&null!=e.textStyle&&(e.textStyle.sizeFixed=t.sizeFixed)),t.fontSize&&(e.textStyle2D&&null!=e.textStyle2D?t.sizeFixed?e.textStyle2D.fontHeight=25.4*t.fontSize/l:e.textStyle2D.fontHeight=t.fontSize:e.textStyle&&null!=e.textStyle&&(t.sizeFixed?e.textStyle.fontHeight=25.4*t.fontSize/l:e.textStyle.fontHeight=t.fontSize)),t.fontWeight&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.bold=t.fontWeight:e.textStyle&&null!=e.textStyle&&(e.textStyle.bold=t.fontWeight)),t.fontColor&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor):e.textStyle&&null!=e.textStyle&&(e.textStyle.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor))),t.labelRotation&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.rotation=-t.labelRotation:e.textStyle&&null!=e.textStyle&&(e.textStyle.rotation=-t.labelRotation)),void 0!==t.fontOpacity&&(e.style.fontOpacity=t.fontOpacity),void 0!==t.fontStroke&&(e.textStyle2D.outline=t.fontStroke),void 0!==t.fontStrokeColor&&(e.textStyle2D.backColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontStrokeColor)),void 0!==t.fontStrokeWidth&&(e.style.fontStrokeWidth=t.fontStrokeWidth),void 0!==t.fontBackground&&(e.style.fontBackground=t.fontBackground),void 0!==t.fontBackgroundColor&&(e.style.fontBackgroundColor=t.fontBackgroundColor),void 0!==t.fontShadow&&(e.style.fontShadow=t.fontShadow),void 0!==t.fontShadowColor&&(e.style.fontShadowColor=t.fontShadowColor),void 0!==t.fontShadowOffsetX&&(e.style.fontShadowOffsetX=t.fontShadowOffsetX),void 0!==t.fontShadowOffsetY&&(e.style.fontShadowOffsetY=t.fontShadowOffsetY),void 0!==t.fontSpace&&(e.style.fontSpace=t.fontSpace),void 0!==t.fontPercent&&(e.style.fontPercent=t.fontPercent),void 0!==t.fontWeight&&(e.style.fontWeight=t.fontWeight),void 0!==t.fontStyle&&(e.style.fontStyle=t.fontStyle),t.surroundLineColor&&(e.surroundLineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.surroundLineColor)),null!=t.surroundLineColorOpacity&&void 0!==t.surroundLineColorOpacity&&(e.surroundLineColor.alpha=255*t.surroundLineColorOpacity),t.surroundLineWidth&&(e.surroundLineWidth2D=25.4*t.surroundLineWidth/l),void 0!==t.labelAlign&&("lt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=0:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=0):"ct"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=1:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=1):"rt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=2:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=2):"lb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=6:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=6):"cb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=7:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=7):"rb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=8:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=8):"lm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=3:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=3):"cm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=4:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=4):"rm"===t.labelAlign&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=5:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=5))),null!=t.graphicWidth&&(e.style.graphicWidth=t.graphicWidth),null!=t.graphicHeight&&(e.style.graphicHeight=t.graphicHeight),null!=t.graphicOpacity&&(e.style.graphicOpacity=t.graphicOpacity),null!=t.graphicXOffset&&(e.style.graphicXOffset=t.graphicXOffset),null!=t.graphicYOffset&&(e.style.graphicYOffset=t.graphicYOffset),t.display&&"none"===t.display?e.visibility=!1:e.visibility=!0,t},SuperMap.Plot.AnalysisSymbol.mergeDefaultStyleToFeature=function(t,e,o){var l=void 0,i=void 0;l=t.style,i=!0!==o?t.geometry:t,e&&!0===e.defaultFlag&&!1===i.isEdit&&(i.surroundLineType=e.surroundLineType,l.surroundLineColor=e.surroundLineColor,l.surroundLineWidth=e.surroundLineWidth,l.surroundLineColorOpacity=e.surroundLineColorOpacity,l.fillBackColor=e.fillBackColor,l.fillBackOpacity=e.fillBackOpacity,l.fillGradientMode=e.fillGradientMode,l.fillCenterOffsetX=e.fillCenterOffsetX,l.fillCenterOffsetY=e.fillCenterOffsetY,l.fillAngle=e.fillAngle,!0===o?(l.color=e.lineColor,l.weight=e.lineWidth,l.opacity=e.lineOpacity,l.lineSymbolID=e.lineType,l.lineCap=e.lineCap,l.lineJoin=e.lineJoin):(l.strokeColor=e.lineColor,l.strokeWidth=e.lineWidth,l.strokeOpacity=e.lineOpacity,l.strokeDashstyle=e.lineType,l.strokeLinecap=e.lineCap,l.strokeLinejoin=e.lineJoin),l.fillSymbolID=e.fillSymbolID,l.fillColor=e.fillColor,l.fillOpacity=e.fillOpacity,l.fontColor=e.fontColor,l.fontOpacity=e.fontOpacity,l.fontSize=e.fontSize,l.fontFamily=e.fontFamily,l.fontWeight=e.fontWeight,l.fontStyle=e.fontStyle,l.fontStroke=e.fontStroke,l.fontStrokeColor=e.fontStrokeColor,l.fontStrokeWidth=e.fontStrokeWidth,l.fontBackground=e.fontBackground,l.fontBackgroundColor=e.fontBackgroundColor,l.fontShadow=e.fontShadow,l.fontShadowColor=e.fontShadowColor,l.fontShadowOffsetX=e.fontShadowOffsetX,l.fontShadowOffsetY=e.fontShadowOffsetY,l.fontSpace=e.fontSpace,l.fontPercent=e.fontPercent,l.strokeGradientMode=e.strokeGradientMode,l.strokeBackColor=e.strokeBackColor,l.strokeBackOpacity=e.strokeBackOpacity)},SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData=function(t,e){t.hasOwnProperty("algoMinEditPts")||(t.algoMinEditPts=e.algoMinEditPts),t.hasOwnProperty("algoMaxEditPts")||(t.algoMaxEditPts=e.algoMaxEditPts),t.hasOwnProperty("innerCells")||(t.innerCells=SuperMap.Util.cloneObject(e.innerCells)),t.hasOwnProperty("symbolRanks")||(t.symbolRanks=SuperMap.Util.cloneObject(e.symbolRanks)),t.hasOwnProperty("symbolSizeInLib")||(t.symbolSizeInLib=SuperMap.Util.cloneObject(e.symbolSize)),t.hasOwnProperty("middleMarkExist")||(t.middleMarkExist=SuperMap.Util.cloneObject(e.middleMarkExist)),t.hasOwnProperty("middleMarkBounds")||(t.middleMarkBounds=SuperMap.Util.cloneObject(e.middleMarkBounds)),t.hasOwnProperty("anchorPoint")||(t.anchorPoint=SuperMap.Util.cloneObject(e.anchorPoint))},SuperMap.Plot.AnalysisSymbol.setSymbolData=function(t,e,o){null==e&&(e={}),e.hasOwnProperty("type")||(e.type="GRAPHICOBJECT"),e.hasOwnProperty("version")||(e.version=2),e.isEdit=!0,e.uuid=t.uuid,e.associatedUuid=t.associatedUuid,e.hasOwnProperty("rotate2D")?e.rotate2D.x=t.dRotate:e.rotate2D={x:t.dRotate,y:0,z:0},e.hasOwnProperty("scale2D")?e.scale2D.x=t.dScale:e.scale2D={x:t.dScale,y:0,z:0},e.libID=t.libID,e.code=t.code,e.algoMaxEditPts=t.maxEditPts,e.algoMinEditPts=t.minEditPts,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.annotationPosition=t.annotationPosition?t.annotationPosition:t.textPosition,e.textContent=t.textContent,e.textDisplay=t.textDisplay,e.scaleByMap=t.scaleByMap,e.resolution=t.resolution,e.isLocked=t.isLocked,e.note=t.note,e.custom=t.custom,e.subSymbols=[];for(var l=0;l<t.subSymbols.length;l++){var i=t.subSymbols[l];e.subSymbols.push({libID:i.libID,code:i.code,symbolData:i.symbolData,textContent:i.textContent,totalNum:i.totalNum})}e.extendProperty=[];for(var n=t.getExtendProperty().getPropertyCount(),r=0;r<n;r++){var a=t.getExtendProperty().getPropertyByIndex(r);e.extendProperty.push({key:a.key,value:a.value})}e.avoidRegions=[];for(var s=0;s<t.avoidRegions.length;s++){var p={};SuperMap.Plot.AnalysisSymbol.setStyle(t.avoidRegions[s].feature.style,p,o),e.avoidRegions.push([t.avoidRegions[s].getSymbolData(),p])}if(!0===o?SuperMap.Plot.AnalysisSymbol.setStyle(t.style,e,o):null!=t.feature&&SuperMap.Plot.AnalysisSymbol.setStyle(t.feature.style,e),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var u in e.routeNodes=[],t.routeNodes)e.routeNodes.push(t.routeNodes[u].setSymbolData());e.arrRoutePts=t.arrRoutePts,o||SuperMap.Plot.AnalysisSymbol.setStyle(t.lineStyle,e)}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(e.subAssociatedUuids=t.subAssociatedUuids,e.subFeatures=[],o)for(var P=0;P<t.subObjects.length;P++)e.subFeatures.push(t.subObjects[P].getSymbolData());else for(var c=0;c<t.components.length;c++)e.subFeatures.push(t.components[c].geometry.getSymbolData());0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?e.ratio=t.ratio:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(e.colNum=t.colNum,e.speceDis=t.speceDis,e.isShowTooltip=t.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(e.colNum=t.colNum,e.speceDis=t.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){var y=[];for(var h in t.symbolTexts)y.push(t.symbolTexts[h].setSymbolData());e.symbolTexts=y,e.addFrame=t.addFrame}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)e.space=t.space,e.offsetX=t.offsetX,e.offsetY=t.offsetY;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.hasOwnProperty("scaleValues"))for(var S=0;S<t.scaleValues.length;S++)e.scaleValues.length>S?e.scaleValues[S]=t.scaleValues[S]:e.scaleValues.push(t.scaleValues[S]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var f=void 0;f=!0===o?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,e.hasOwnProperty("localePoints")||(e.localePoints=[]);var g=f.length;t.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL&&(g=3);for(var M=0;M<g;M++)e.localePoints.length>M?(e.localePoints[M].x=f[M].x,e.localePoints[M].y=f[M].y,e.localePoints[M].hasOwnProperty("z")||(e.localePoints[M].z=0)):e.localePoints.push({x:f[M].x,y:f[M].y,z:0});if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)e.endAssociatedUuid=t.endAssociatedUuid,e.lineRelationType=t.lineRelationType,e.startAssociatedUuid=t.startAssociatedUuid,e.subSectionCount=t.subSectionCount;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PICTURE)e.path=t.path;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){e.surroundLineType=t.surroundLineType,e.symbolRank=t.symbolRank,e.negativeImage=t.negativeImage,e.space=t.space,e.flagTextSize=t.flagTextSize,e.maxScale=t.maxScale,e.minScale=t.minScale,e.actualScale=t.actualScale,void 0!==t.fontSize&&(e.fontSize=t.fontSize),void 0!==t.strokeWidth&&(e.strokeWidth=t.strokeWidth);var d=25.4*t.symbolSize.w*10/SuperMap.Plot.PlottingUtil.DPI,m=25.4*t.symbolSize.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSize={x:d,y:m};var v=25.4*t.symbolSizeInLib.w*10/SuperMap.Plot.PlottingUtil.DPI,b=25.4*t.symbolSizeInLib.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSizeInLib={x:v,y:b},e.positionOffset=t.positionOffset,e.positionOffsetType=t.positionOffsetType,e.positionOffsetX=t.positionOffsetX,e.positionOffsetY=t.positionOffsetY,!1===t.widthHeightLimit||!0===t.widthHeightLimit?e.limitWidthHeight=t.widthHeightLimit:e.limitWidthHeight=t.limitWidthHeight}else{if(e.surroundLineType=t.surroundLineType,e.hasOwnProperty("scaleValues"))for(var A=0;A<t.scaleValues.length;A++)e.scaleValues.length>A?e.scaleValues[A]=t.scaleValues[A]:e.scaleValues.push(t.scaleValues[A]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.subSymbolScaleValue=t.subSymbolScaleValue,e.baseScale=t.baseScale,e.strokeWidth=t.strokeWidth,e.polylineConnectLocationPoint=t.polylineConnectLocationPoint,22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT?(e.isAvoid=t.isAvoid,e.isCurve=t.isCurve,e.relLineText=t.relLineText,e.showPathLine=t.showPathLine,e.textToLineDistance=t.textToLineDistance,e.showPathLineArrow=t.showPathLineArrow):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION&&(o?(e.centerPoint={x:t.centerPoint.lng,y:t.centerPoint.lat},e.circlePts=t.circlePts,e.spatialAnalystUrl=t.spatialAnalystUrl):e.centerPoint=t.centerPoint,e.endAngle=t.endAngle,e.radius=t.radius,e.radiusPosAngle=t.radiusPosAngle,e.startAngle=t.startAngle,e.textPosition=t.textPosition,e.radiusLineType=t.radiusLineType,e.radiusText=t.radiusText))}}t.symbolData=e},SuperMap.Plot.AnalysisSymbol.parseSymbolData=function(t,e,o){if(null!=e){if(void 0!==e.isEdit&&(t.isEdit=e.isEdit),e.hasOwnProperty("version")&&(t.version=e.version),t.libID=parseInt(e.libID),t.code=parseInt(e.code),t.maxEditPts=parseInt(e.algoMaxEditPts),t.minEditPts=parseInt(e.algoMinEditPts),t.symbolType=e.symbolType,t.symbolName=e.symbolName,t.textContent=e.textContent,void 0!==e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),void 0!==e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),void 0!==e.resolution&&(t.resolution=e.resolution),void 0!==e.uuid&&(t.uuid=e.uuid),void 0!==e.associatedUuid&&(t.associatedUuid=e.associatedUuid),void 0!==e.textDisplay&&(t.textDisplay=e.textDisplay),void 0!==e.annotationPosition&&(o?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),void 0!==e.scaleByMap&&(t.scaleByMap=e.scaleByMap),void 0!==e.isLocked&&(t.isLocked=e.isLocked),void 0!==e.note&&(t.note=e.note),void 0!==e.custom&&(t.custom=e.custom),e.extendProperty)for(var l=0;l<e.extendProperty.length;l++){var i=e.extendProperty[l];t.extendProperty.addProperty(i.key,i.value)}if(e.hasOwnProperty("subSymbols")&&null!=e.subSymbols){t.subSymbols=[];for(var n=0;n<e.subSymbols.length;n++){var r=e.subSymbols[n].libID;void 0===r&&(r=t.libID);var a=e.subSymbols[n].code;if(void 0!==a){var s={};void 0!==e.subSymbols[n].textContent&&(s.textContent=e.subSymbols[n].textContent),void 0!==e.subSymbols[n].totalNum&&(s.totalNum=e.subSymbols[n].totalNum),void 0!==e.subSymbols[n].symbolData&&(s.symbolData=e.subSymbols[n].symbolData),t.subSymbols.push(new SuperMap.Plot.SubSymbol(r,a,s))}}}if(e.avoidRegions&&0!==e.avoidRegions.length)for(var p=0;p<e.avoidRegions.length;p++){var u={libID:0,code:SuperMap.Plot.SymbolType.AVOIDREGION,map:t.map,symbolData:e.avoidRegions[p][0]},P=null;if(o)(P=L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,[],u)).style=SuperMap.Plot.AnalysisSymbol.getStyle(t.symbolData.avoidRegions[p][1],!0);else{P=new SuperMap.Geometry.AvoidRegion(u);var c=new SuperMap.Feature.Vector(P);c.style=SuperMap.Plot.AnalysisSymbol.getStyle(e.avoidRegions[p][1],o),P.feature=c,P.calculateParts()}t.avoidRegions.push(P)}if(!0===o&&(t.style=SuperMap.Plot.AnalysisSymbol.getStyle(e,!0)),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var y in t.routeNodes=[],e.routeNodes){var h=new SuperMap.Plot.RouteNode;t.routeNodes.push(h.parseSymbolData(e.routeNodes[y]))}t.arrRoutePts=[];for(var S=0;S<e.arrRoutePts.length;S++){for(var f=[],g=0;g<e.arrRoutePts[S].length;g++)e.arrRoutePts[S][g].hasOwnProperty("lat")&&e.arrRoutePts[S][g].hasOwnProperty("lng")?f.push(new SuperMap.Geometry.Point(e.arrRoutePts[S][g].lng,e.arrRoutePts[S][g].lat)):void 0===e.arrRoutePts[S][g].x&&void 0===e.arrRoutePts[S][g].y||f.push(new SuperMap.Geometry.Point(e.arrRoutePts[S][g].x,e.arrRoutePts[S][g].y));o&&(f=L.Util.superMapPointsToLatLngs(f)),t.arrRoutePts.push(f)}o||(t.lineStyle=SuperMap.Plot.AnalysisSymbol.getStyle(e,!1))}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(t.subAssociatedUuids=e.subAssociatedUuids,o){for(var M=[],d=0;d<e.subFeatures.length;d++){var m=e.subFeatures[d];m.uuid=SuperMap.Plot.PlottingUtil.generateUuid();var v=L.supermap.plotting.PlottingObject.createSymbol(m.libID,m.code,null,{symbolData:m});M.push(v)}t.subObjects=M}else for(var b=0;b<e.subFeatures.length;b++){var A=e.subFeatures[b],T=SuperMap.Geometry.PlottingGeometry.createFeature(A.libID,A.code,null,{symbolData:A,map:t.map});T.geometry.ownGroupObj=t,t.components.push(T)}0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?(t.ratio=e.ratio,t.subFeatures=e.subFeatures):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(t.colNum=e.colNum,t.speceDis=e.speceDis,t.isShowTooltip=e.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(t.colNum=e.colNum,t.speceDis=e.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){t.addFrame=e.addFrame,t.symbolTexts=[];for(var x=0,O=e.symbolTexts.length;x<O;x++){var w=new SuperMap.Plot.SymbolText;w.parseSymbolData(e.symbolTexts[x]),t.symbolTexts.push(w)}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)void 0!==e.space&&(t.space=e.space),void 0!==e.offsetX&&(t.offsetX=e.offsetX),void 0!==e.offsetY&&(t.offsetY=e.offsetY);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var U=0;U<e.scaleValues.length;U++)t.scaleValues.push(e.scaleValues[U])}if(e.subSymbol&&(t.subSymbols=[e.subSymbol]),t.visible=e.visible,e.orbitPoints){t.orbitPoints=[];for(var R=0;R<e.orbitPoints.length;R++)t.orbitPoints.push(new SuperMap.Plot.OrbitPoint(e.orbitPoints[R].x,e.orbitPoints[R].y,e.orbitPoints[R].z,e.orbitPoints[R].number,e.orbitPoints[R].time))}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){t.timeWindows=e.timeWindows;for(var _=0;_<t.timeWindows.length;_++)"Time"!==e.type&&"Number"!==e.type||(t.timeWindows[_].type=e.type)}else{if(e.localePoints){t.controlPoints=[];for(var E=0;E<e.localePoints.length;E++)t.controlPoints.push(new SuperMap.Geometry.Point(e.localePoints[E].x,e.localePoints[E].y));!0===o&&(t.latLngs=L.Util.superMapPointsToLatLngs(t.controlPoints),delete t.controlPoints)}if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)t.endAssociatedUuid=e.endAssociatedUuid,t.lineRelationType=e.lineRelationType,t.startAssociatedUuid=e.startAssociatedUuid,t.subSectionCount=e.subSectionCount;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PICTURE)t.path=e.path;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){t.surroundLineType=e.surroundLineType,t.symbolRank=e.symbolRank,t.negativeImage=e.negativeImage;var C=SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo(e);if(t.anchorPoint=C.anchorPoint,t.symbolSizeInLib=C.symbolSizeInLib,t.middleMarkBounds=C.middleMarkBounds,void 0!==e.actualScale&&(t.actualScale=e.actualScale),void 0!==e.limitWidthHeight&&(t.limitWidthHeight=e.limitWidthHeight),void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.space&&(t.space=e.space),void 0!==e.flagTextSize&&(t.flagTextSize=e.flagTextSize),void 0!==e.maxScale&&(t.maxScale=e.maxScale),void 0!==e.minScale&&(t.minScale=e.minScale),!1!==t.isEdit){var I={x:0,y:0};-1===e.symbolSize.x&&-1===e.symbolSize.x?(I.x=e.symbolSizeInLib.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,I.y=e.symbolSizeInLib.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10):(I.x=e.symbolSize.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,I.y=e.symbolSize.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10),t.setSymbolSize(I.x,I.y)}void 0!==e.positionOffset&&null!==e.positionOffset&&(t.positionOffset=e.positionOffset),void 0!==e.positionOffsetType&&null!==e.positionOffsetType&&(t.positionOffsetType=e.positionOffsetType),void 0!==e.positionOffsetX&&null!==e.positionOffsetX&&(t.positionOffsetX=e.positionOffsetX),void 0!==e.positionOffsetY&&null!==e.positionOffsetY&&(t.positionOffsetY=e.positionOffsetY)}else{if(t.surroundLineType=e.surroundLineType,e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var B=0;B<e.scaleValues.length;B++)t.scaleValues.push(e.scaleValues[B])}if(void 0!==e.strokeWidth&&null!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.baseScale&&null!==e.baseScale&&(t.baseScale=e.baseScale),void 0!==e.polylineConnectLocationPoint&&null!==e.polylineConnectLocationPoint&&(t.polylineConnectLocationPoint=e.polylineConnectLocationPoint),22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL)void 0!==e.arrowHeadType&&null!==e.arrowHeadType&&(t.arrowHeadType=e.arrowHeadType),void 0!==e.arrowBodyType&&null!==e.arrowBodyType&&(t.arrowBodyType=e.arrowBodyType),void 0!==e.arrowTailType&&null!==e.arrowTailType&&(t.arrowTailType=e.arrowTailType);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE)t.arrowAngle=e.arrowAngle,void 0!==e.arrowTypeStart&&(t.scaleValues[1]=e.arrowTypeStart),void 0!==e.arrowTypeEnd&&(t.scaleValues[2]=e.arrowTypeEnd);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE){if(e.radius&&0!==e.radius.length&&0===t.scaleValues.length)for(var D=0;D<e.radius.length;D++)t.scaleValues.push(e.radius[D])}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE)t.symbolData.hasOwnProperty("startAngle")&&(t.scaleValues[0]=t.symbolData.startAngle),t.symbolData.hasOwnProperty("endAngle")&&(t.scaleValues[1]=t.symbolData.endAngle);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING)void 0!==e.islocationCircle&&null!==e.islocationCircle&&(t.islocationCircle=e.islocationCircle),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX)void 0!==e.roundBox&&null!==e.roundBox&&(t.roundBox=e.roundBox),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM)e.tipPoint1&&(this.scaleValues[0]=e.tipPoint1.x,this.scaleValues[1]=e.tipPoint1.y),e.tipPoint2&&(this.scaleValues[2]=e.tipPoint2.x,this.scaleValues[3]=e.tipPoint2.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT)t.isAvoid=e.isAvoid,t.isCurve=e.isCurve,t.relLineText=e.relLineText,t.showPathLine=e.showPathLine,t.textToLineDistance=e.textToLineDistance,t.showPathLineArrow=e.showPathLineArrow;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION){if(o){if(t.centerPoint=L.latLng(e.centerPoint.y,e.centerPoint.x),t.symbolData.circlePts){for(var G=[],V=0;V<e.circlePts.length;V++)G.push(new SuperMap.Geometry.Point(e.circlePts[V].x,e.circlePts[V].y));0!==G.length&&(t.circlePts=G)}t.spatialAnalystUrl=e.spatialAnalystUrl}else t.centerPoint=new SuperMap.Geometry.Point(e.centerPoint.x,e.centerPoint.y);t.endAngle=e.endAngle,t.radius=e.radius,t.radiusPosAngle=e.radiusPosAngle,t.startAngle=e.startAngle,t.textPosition=e.textPosition,t.radiusLineType=e.radiusLineType,t.radiusText=e.radiusText}else 0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION&&(t.symbolData.hasOwnProperty("textPosition")?t.scaleValues[1]=t.symbolData.textPosition:void 0===t.scaleValues[1]&&(t.scaleValues[1]=t.symbolData.annotationPosition))}}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddPoint_WayType=e.RouteNodePrimitives=e.Primitives=e.PlottingUtil=e.AnalysisSymbol=void 0;var l=o(58),i=o(57),n=o(56),r=o(55),a=o(54);e.AnalysisSymbol=l.AnalysisSymbol,e.PlottingUtil=i.PlottingUtil,e.Primitives=n.Primitives,e.RouteNodePrimitives=r.RouteNodePrimitives,e.AddPoint_WayType=a.AddPoint_WayType},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.md5=e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=e.AddPoint_WayType=e.Primitives=e.PlottingUtil=e.RouteNodePrimitives=e.AnalysisSymbol=void 0;var l=o(59),i=o(53),n=o(2);e.AnalysisSymbol=l.AnalysisSymbol,e.RouteNodePrimitives=l.RouteNodePrimitives,e.PlottingUtil=l.PlottingUtil,e.Primitives=l.Primitives,e.AddPoint_WayType=l.AddPoint_WayType,e.BasicAlgoSymbolFactory=i.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=i.AlgoSymbolFactory,e.md5=n.md5}]); |