LJ/www/trckr/js/libs/jquery.imgareaselect.pack.js

2 lines
8.0 KiB
JavaScript
Raw Normal View History

2020-09-19 12:28:56 +00:00
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))};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(m($){1f W=2v.4N,D=2v.4M,F=2v.4L,u=2v.4K;m V(){C $("<4J/>")};$.N=m(T,c){1f O=$(T),1F,A=V(),1j=V(),I=V().r(V()).r(V()).r(V()),B=V().r(V()).r(V()).r(V()),E=$([]),1K,G,l,17={v:0,l:0},Q,M,1k,1g={v:0,l:0},12=0,1J="1H",2k,2j,1s,1r,S,1A,1z,2o,2n,14,1P,a,b,j,g,f={a:0,b:0,j:0,g:0,H:0,L:0},2u=R.4I,$p,d,i,o,w,h,2p;m 1m(x){C x+17.v-1g.v};m 1l(y){C y+17.l-1g.l};m 1a(x){C x-17.v+1g.v};m 19(y){C y-17.l+1g.l};m 1y(3H){C 3H.4H-1g.v};m 1x(3G){C 3G.4G-1g.l};m 13(31){1f 1i=31||1s,1h=31||1r;C{a:u(f.a*1i),b:u(f.b*1h),j:u(f.j*1i),g:u(f.g*1h),H:u(f.j*1i)-u(f.a*1i),L:u(f.g*1h)-u(f.b*1h)}};m 23(a,b,j,g,30){1f 1i=30||1s,1h=30||1r;f={a:u(a/1i||0),b:u(b/1h||0),j:u(j/1i||0),g:u(g/1h||0)};f.H=f.j-f.a;f.L=f.g-f.b};m 1e(){9(!1F||!O.H()){C}17={v:u(O.2t().v),l:u(O.2t().l)};Q=O.2X();M=O.3F();17.l+=(O.2Z()-M)>>1;17.v+=(O.2q()-Q)>>1;1A=u(c.4F/1s)||0;1z=u(c.4E/1r)||0;2o=u(F(c.4D/1s||1<<24,Q));2n=u(F(c.4C/1r||1<<24,M));9($().4B=="1.3.2"&&1J=="21"&&!2u["4A"]){17.l+=D(R.1p.2r,2u.2r);17.v+=D(R.1p.2s,2u.2s)}1g=/1H|4z/.1W(1k.q("1o"))?{v:u(1k.2t().v)-1k.2s(),l:u(1k.2t().l)-1k.2r()}:1J=="21"?{v:$(R).2s(),l:$(R).2r()}:{v:0,l:0};G=1m(0);l=1l(0);9(f.j>Q||f.g>M){1T()}};m 1U(3D){9(!1P){C}A.q({v:1m(f.a),l:1l(f.b)}).r(1j).H(w=f.H).L(h=f.L);1j.r(I).r(E).q({v:0,l:0});I.H(D(w-I.2q()+I.2X(),0)).L(D(h-I.2Z()+I.3F(),0));$(B[0]).q({v:G,l:l,H:f.a,L:M});$(B[1]).q({v:G+f.a,l:l,H:w,L:f.b});$(B[2]).q({v:G+f.j,l:l,H:Q-f.j,L:M});$(B[3]).q({v:G+f.a,l:l+f.g,H:w,L:M-f.g});w-=E.2q();h-=E.2Z();2N(E.3c){15 8:$(E[4]).q({v:w>>1});$(E[5]).q({v:w,l:h>>1});$(E[6]).q({v:w>>1,l:h});$(E[7]).q({l:h>>1});15 4:E.3E(1,3).q({v:w});E.3E(2,4).q({l:h})}9(3D!==Y){9($.N.2Y!=2Q){$(R).U($.N.2z,$.N.2Y)}9(c.1S){$(R)[$.N.2z]($.N.2Y=2Q)}}9($.1b.1E&&I.2q()-I.2X()==2){I.q("3C",0);3v(m(){I.q("3C","4y")},0)}};m 22(3B){1e();1U(3B);a=1m(f.a);b=1l(f.b);j=1m(f.j);g=1l(f.g)};m 27(2W,2w){c.1O?2W.4x(c.1O,2w):2W.1q()};m 1c(2V){1f x=1a(1y(2V))-f.a,y=19(1x(2V))-f.b;9(!2p){1e();2p=11;A.1G("4w",m(){2p=Y})}S="";9(c.2D){9(y<=c.1V){S="n"}X{9(y>=f.L-c.1V){S="s"}}9(x<=c.1V){S+="w"}X{9(x>=f.H-c.1V){S+="e"}}}A.q("2U",S?S+"-18":c.26?"4v":"");9(1K){1K.4u()}};m 2R(4t){$("1p").q("2U","");9(c.4s||f.H*f.L==0){27(A.r(B),m(){$(J).1q()})}$(R).U("P",2l);A.P(1c);c.2f(T,13())};m 2C(1X){9(1X.3x!=1){C Y}1e();9(S){$("1p").q("2U",S+"-18");a=1m(f[/w/.1W(S)?"j":"a"]);b=1l(f[/n/.1W(S)?"g":"b"]);$(R).P(2l).1G("1w",2R);A.U("P",1c)}X{9(c.26){2k=G+f.a-1y(1X);2j=l+f.b-1x(1X);A.U("P",1c);$(R).P(2S).1G("1w",m(){c.2f(T,13());$(R).U("P",2S);A.P(1c)})}X{O.1N(1X)}}C Y};m 1v(3A){9(14){9(3A){j=D(G,F(G+Q,a+W(g-b)*14*(j>a||-1)));g=u(D(l,F(l+M,b+W(j-a)/14*(g>b||-1))));j=u(j)}X{g=D(l,F(l+M,b+W(j-a)/14*(g>b||-1)));j=u(D(G,F(G+Q,a+W(g-b)*14*(j>a||-1))));g=u(g)}}};m 1T(){a=F(a,G+Q);b=F(b,l+M);9(W(j-a)<1A){j=a-1A*(j<a||-1);9(j<G){a=G+1A}X{9(j>G+Q){a=G+Q-1A}}}9(W(g-b)<1z){g=b-1z*(g<b||-1);9(g<l){b=l+1z}X{9(g>l+M){b=l+M-1z}}}j=D(G,F(j,G+Q));g=D(l,F(g,l+M));1v(W(j-a)<W(g-b)*14);9(W(j-a)>2o){j=a-2o*(j<a||-1);1v()}9(W(g-b)>2n){g=b-2n*(g<b||-1);1v(11)}f={a:1a(F(a,j)),j:1a(D(a,j)),b:19(F(b,g)),g:19(D(b,g)),H:W(j-a),L:W(g-b)};1U();c.2g(T,13())};m 2l(2T){j=/w|e|^$/.1W(S)||14?1y(2T):1m(f.j);g=/n|s|^$/.1W(S)||14?1x(2T):1l(f.g);1T();C Y};m 1u(3z,3y){j=(a=3z)+f.H;g=(b=3y)+f.L;$.2c(f,{a:1a(a),b:19(b),j:1a(j),g:19(g)});1U();c.2g(T,13())};m 2S(2m){a=D(G,F(2k+1y(2m),G+Q-f.H));b=D(l,F(2j+1x(2m),l+M-f.L));1u(a,b);2m.4r();C Y};m 2h(){$(R).U("P",2h);1e();j=a;g=b;1T();S="";9(!B.2y(":4q")){A.r(B).1q().2E(c.1O||0)}1P=11;$(R).U("1w",1M).P(2l).1G("1w",2R);A.U("P",1c);c.3w(T,13())};m 1M(){$(R).U("P",2h).U("1w",1M);27(A.r(B));23(1a(a),19(b),1a(a),19(b));9(!(J 4p $.N)){c.2g(T,13());c.2f(T,13())}};m 2A(2i){9(2i.3x!=1||B.2y(":4o")){C Y}1e();2k=a=1y(2i);2j=b=1x(2i);$(R).P(2h).1w(1M);C Y};m 2B(){22(Y)};m 2x(){1F=11;25(c=$.2c({1R:"4n",26:11,20:"1p",2D:11,1V:10,3u:m(){},3w:m(){},2g:m(){},2f:m(){}},c));A.r(B).q({3a:""});9(c.2F){1P=11;1e();1U();A.r(B).1q().2E(c.1O||0)}3v(m(){c.3u(T,13())},0)};1f 2Q=m(16){1f k=