This repository was archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAstroLibrary.min.js
4 lines (4 loc) · 69.9 KB
/
AstroLibrary.min.js
1
2
3
4
/* LGPL-3.0 */
var me=this.me||{};(function(ab,J){function v(){}function fa(){}function Ha(){}function va(){}function Ia(){}function e(a){var d=a.primaryDark,c=a.accent,b=a.textBlack,k=a.textWhite,p=a.textGrey;this.a=a.primary||D.INDIGO;this.b=d||D.INDIGO_DARK;this.c=c||D.PINK_ACCENT;this.d=b||D.BLACK;this.e=k||D.WHITE;this.f=p||D.GREY}function L(){this.g=g.getSystemService(bb.CONNECTIVITY_SERVICE)}function N(a){this.h=a}function f(a,d){this.i="";this.j=a;this.k="";this.l=d;this.m=null;this.n=[];this.o=!1}function wa(a){this.p=a;this.q=!1;this.r=function(){};this.s={}}function S(a){this.t=net.zhuoweizhang.mcpelauncher.AddonManager(g);this.u=a}function O(){}function na(a){this.v=a;this.w=new M(a);this.w.exists()?this.x=JSON.parse(O.read(a)):this.x={}}function y(){}function oa(){}function Z(){}function l(a){a=a||e.DEFAULT;var d=this.y=new q.LayoutParams(-1,-2),c=this.z=new G(g);this.A=a;d.setMargins(8*b,8*b,8*b,8*b);c.setLayoutParams(d);c.setText("TextView");c.setTextColor(a.getTextView(e.TEXT_COLOR));c.setTextSize(1,16)}function u(a){a=a||e.DEFAULT;var d=this,c=this.y=new q.LayoutParams(88*b,36*b),h=this.z=new G(g),k=this.B=new r(a.getButton(e.BACKGROUND_COLOR));this.A=a;this.C=new r(a.getButton(e.EFFECT_COLOR));this.D=function(){};c.setMargins(8*b,6*b,8*b,6*b);h.setBackgroundDrawable(k);h.setGravity(z.CENTER);h.setLayoutParams(c);h.setOnTouchListener(new C.OnTouchListener({onTouch:function(a,c){var b=a.getWidth(),h=a.getHeight(),k=c.getX(),p=c.getY();switch(c.getAction()){case w.ACTION_DOWN:a.setBackgroundDrawable(d.C);break;case w.ACTION_MOVE:0<=k&&k<=b&&0<=p&&p<=h?a.setBackgroundDrawable(d.C):a.setBackgroundDrawable(d.B);break;case w.ACTION_UP:0<=k&&k<=b&&0<=p&&p<=h&&(a.setBackgroundDrawable(d.B),d.D(a));break;case w.ACTION_CANCEL:0<=k&&k<=b&&0<=p&&p<=h&&a.setBackgroundDrawable(d.B)}return!0}}));h.setText("Button");h.setTextColor(a.getButton(e.TEXT_COLOR));h.setTextSize(1,16)}function Ra(a,d,c,h){a=a||255;d=d||0;c=c||0;h=h||function(){};var k=this.F=new G(g),p=this.G=new G(g),e=new Ja,f=ha.createBitmap(40,240,ha.Config.ARGB_8888),ga=ha.createBitmap(240,240,ha.Config.ARGB_8888),xa=new Sa(f),l=new Sa(ga),m=120,q=1;e.setShader(new aa(0,0,0,40,t.rgb(255,0,0),t.rgb(255,255,0),ba.TileMode.CLAMP));xa.drawRect(0,0,40,40,e);e.setShader(new aa(0,40,0,80,t.rgb(255,255,0),t.rgb(0,255,0),ba.TileMode.CLAMP));xa.drawRect(0,40,40,80,e);e.setShader(new aa(0,80,0,120,t.rgb(0,255,0),t.rgb(0,255,255),ba.TileMode.CLAMP));xa.drawRect(0,80,40,120,e);e.setShader(new aa(0,120,0,160,t.rgb(0,255,255),t.rgb(0,0,255),ba.TileMode.CLAMP));xa.drawRect(0,120,40,160,e);e.setShader(new aa(0,160,0,200,t.rgb(0,0,255),t.rgb(255,0,255),ba.TileMode.CLAMP));xa.drawRect(0,160,40,200,e);e.setShader(new aa(0,200,0,240,t.rgb(255,0,255),t.rgb(255,0,0),ba.TileMode.CLAMP));xa.drawRect(0,200,40,240,e);e.setShader(new aa(240,0,0,0,t.rgb(a,d,c),t.WHITE,ba.TileMode.CLAMP));l.drawRect(0,0,240,240,e);e.setShader(new aa(0,0,0,240,t.TRANSPARENT,t.BLACK,ba.TileMode.CLAMP));l.drawRect(0,0,240,240,e);k.setBackgroundDrawable(new ca(f));k.setOnTouchListener(new C.OnTouchListener({onTouch:function(a,c){var d=c.getAction();if(d===w.ACTION_DOWN||d===w.ACTION_MOVE||d===w.ACTION_UP){var d=Math.floor(c.getX()/b),k=Math.floor(c.getY()/b);0<d&&40>d&&0<k&&240>k&&(e.setShader(new aa(240,0,0,0,f.getPixel(0,k),t.WHITE,ba.TileMode.CLAMP)),l.drawRect(0,0,240,240,e),e.setShader(new aa(0,0,0,240,t.TRANSPARENT,t.BLACK,ba.TileMode.CLAMP)),l.drawRect(0,0,240,240,e),p.setBackgroundDrawable(new ca(ga)),h(ga.getPixel(m,q)))}return!0}}));p.setBackgroundDrawable(new ca(ga));p.setOnTouchListener(new C.OnTouchListener({onTouch:function(a,c){var d=c.getAction();if(d===w.ACTION_DOWN||d===w.ACTION_MOVE||d===w.ACTION_UP){var d=Math.floor(c.getX()/b),k=Math.floor(c.getY()/b);0<d&&240>d&&0<k&&240>k&&(m=d,q=k,h(ga.getPixel(d,k)))}return!0}}))}function Ba(a){a=a||e.DEFAULT;var d=this.y=new q.LayoutParams(-1,1*b),c=this.z=new G(g);this.A=a;d.setMargins(8*b,8*b,8*b,7*b);c.setBackgroundDrawable(new r(a.getDivider(e.BACKGROUND_COLOR)));c.setLayoutParams(d)}function A(a){a=a||e.DEFAULT;var d=new Ka,c=d.getPaint();c.setColor(-1);c.setStyle(Ja.Style.STROKE);c.setColor(a.getEditText(e.BACKGROUND_COLOR));c.setStrokeWidth(3*b);this.A=a;this.y=new q.LayoutParams(-1,40*b);this.z=new zb(g);this.y.setMargins(8*b,4*b,8*b,4*b);this.z.setBackgroundDrawable(d);this.z.setHint("EditText");this.z.setHintTextColor(a.getEditText(e.HINT_TEXT_COLOR));this.z.setImeOptions(6);this.z.setLayoutParams(this.y);this.z.setPadding(8*b,8*b,8*b,8*b);this.z.setTextColor(a.getEditText(e.TEXT_COLOR));this.z.setTextSize(1,16)}function P(){this.H=new q(g);this.I=[];this.J=5;this.K=-1;this.L=60*b;this.M=60*b;this.H.setOrientation(1)}function T(a,d){a=a||F.RECT;d=d||e.DEFAULT;var c=this;c.N=a;c.A=d;c.y=new q.LayoutParams(a===F.RECT?-1:40*b,a===F.RECT?36*b:40*b);c.z=new G(g);c.C=new r(0);c.B=new r(0);c.D=function(){};c.y.setMargins(6*b,6*b,6*b,6*b);c.z.setBackgroundDrawable(c.B);c.z.setGravity(z.CENTER);c.z.setLayoutParams(c.y);c.z.setOnTouchListener(new C.OnTouchListener({onTouch:function(a,d){var b=a.getWidth(),h=a.getHeight(),k=d.getX(),e=d.getY();switch(d.getAction()){case w.ACTION_DOWN:a.setBackgroundDrawable(c.C);break;case w.ACTION_MOVE:0<=k&&k<=b&&0<=e&&e<=h?a.setBackgroundDrawable(c.C):a.setBackgroundDrawable(c.B);break;case w.ACTION_UP:0<=k&&k<=b&&0<=e&&e<=h&&(a.setBackgroundDrawable(c.B),c.D(a));break;case w.ACTION_CANCEL:0<=k&&k<=b&&0<=e&&e<=h&&a.setBackgroundDrawable(c.B)}return!0}}))}function pa(a,d){a=a||F.RECT;d=d||e.DEFAULT;var c=this;c.N=a;c.A=d;c.y=new q.LayoutParams(-1,36*b);c.z=new Ab(g);c.C=new r(0);c.B=new r(0);c.D=function(){};c.y.setMargins(6*b,6*b,6*b,6*b);c.z.setBackgroundDrawable(c.B);c.z.setGravity(z.CENTER);c.z.setLayoutParams(c.y);c.z.setOnCheckedChangeListener(new Bb.OnCheckedChangeListener({onCheckedChanged:function(a,d){c.D(a,d);d?a.setBackgroundDrawable(c.C):a.setBackgroundDrawable(c.B)}}));c.z.setTextOff("");c.z.setTextOn("")}function U(){this.y=new q.LayoutParams(40*b,44*b);this.z=new Cb(g);this.y.setMargins(4*b,2*b,4*b,2*b);this.z.setInitialScale(100);this.z.setLayoutParams(this.y);this.z.getSettings().setJavaScriptEnabled(!0)}function x(a){this.A=a||e.DEFAULT;this.H=new q(g);this.H.setOrientation(1)}function ya(){var a=this,d=this.H=new P;a.D=function(){};for(var c in D){var b=D[c];if("number"===typeof b){var k=new G(g);k.setBackgroundDrawable(new r(b));k.setOnClickListener(new C.OnClickListener({onClick:function(c){a.D(c.getTag())}}));k.setTag(b);d.addView(k)}}}function Q(a){a=a||e.DEFAULT;var d=this;this.O=new Db(g);this.P=new q(g);this.Q=new G(g);this.R=new G(g);this.A=a;this.L=340*b;this.O.setLayoutParams(new q.LayoutParams(this.L-6*b,-1));this.O.setOnScrollChangeListener(new C.OnScrollChangeListener({onScrollChange:function(a,h,k,e,f){g.runOnUiThread({run:function(){d.Q.setLayoutParams(new q.LayoutParams(12*b,a.getHeight()*k/a.getChildAt(0).getHeight()))}})}}));this.O.setOverScrollMode(C.OVER_SCROLL_NEVER);this.O.setVerticalScrollBarEnabled(!1);this.O.setHorizontalScrollBarEnabled(!1);this.P.addView(this.Q);this.P.addView(this.R);this.P.setOrientation(1);this.Q.setLayoutParams(new q.LayoutParams(6*b,0));this.R.setBackgroundDrawable(new r(a.getScrollView(e.BACKGROUND_COLOR)));this.R.setLayoutParams(new q.LayoutParams(6*b,36*b));this.R.setOnTouchListener(new C.OnTouchListener({onTouch:function(a,h){var c=h.getRawY();h.getAction()===w.ACTION_MOVE&&(d.Q.setLayoutParams(new q.LayoutParams(12*b,d.O.getChildAt(0).getHeight()*c/(d.O.getHeight()-18*b))),d.O.scrollTo(0,d.O.getChildAt(0).getHeight()*c/(d.O.getHeight()-18*b)));return!0}}))}function Ca(a,d){a=a||F.RECT;d=d||e.DEFAULT;var c=this,h=!1;c.N=a;c.A=d;c.y=new q.LayoutParams(a===F.RECT?-1:40*b,a===F.RECT?36*b:40*b);c.z=new G(g);c.C=new r(0);c.B=new r(0);c.D=function(){};c.y.setMargins(6*b,6*b,6*b,6*b);c.z.setBackgroundDrawable(c.B);c.z.setGravity(z.CENTER);c.z.setLayoutParams(c.y);c.z.setOnLongClickListener(new C.OnLongClickListener({onLongClick:function(a){return h=!0}}));c.z.setOnTouchListener(new C.OnTouchListener({onTouch:function(a,d){var b=a.getWidth(),k=a.getHeight(),e=d.getX(),p=d.getY();switch(d.getAction()){case w.ACTION_DOWN:a.setBackgroundDrawable(c.C);break;case w.ACTION_MOVE:h&&c.D(d.getRawX(),d.getRawY(),a.getWidth(),a.getHeight());0<=e&&e<=b&&0<=p&&p<=k?a.setBackgroundDrawable(c.C):a.setBackgroundDrawable(c.B);break;case w.ACTION_UP:h=!1;0<=e&&e<=b&&0<=p&&p<=k&&a.setBackgroundDrawable(c.B);break;case w.ACTION_CANCEL:h=!1,0<=e&&e<=b&&0<=p&&p<=k&&a.setBackgroundDrawable(c.B)}return!1}}))}function V(a,d){a=a||F.RECT;d=d||e.DEFAULT;var c=this,h;c.N=a;c.A=d;c.y=new q.LayoutParams(a===F.RECT?-1:40*b,a===F.RECT?36*b:40*b);c.z=new G(g);c.C=new r(0);c.B=new r(0);c.D=function(){};c.y.setMargins(6*b,6*b,6*b,6*b);c.z.setBackgroundDrawable(c.B);c.z.setGravity(z.CENTER);c.z.setLayoutParams(c.y);c.z.setOnTouchListener(new C.OnTouchListener({onTouch:function(a,d){var b=a.getWidth(),k=a.getHeight(),e=d.getX(),p=d.getY();switch(d.getAction()){case w.ACTION_DOWN:h=e;a.setBackgroundDrawable(c.C);break;case w.ACTION_MOVE:0<=e&&e<=b&&0<=p&&p<=k?a.setBackgroundDrawable(c.C):a.setBackgroundDrawable(c.B);break;case w.ACTION_UP:Math.abs(h-e)>b/2&&(h<e?c.D(a,V.LEFT_RIGHT):c.D(a,V.RIGHT_LEFT));0<=e&&e<=b&&0<=p&&p<=k&&a.setBackgroundDrawable(c.B);break;case w.ACTION_CANCEL:0<=e&&e<=b&&0<=p&&p<=k&&a.setBackgroundDrawable(c.B)}return!0}}))}function m(){}function ia(a){this.A=a=a||e.DEFAULT;this.S=new K(g)}function ja(a){this.A=a=a||e.DEFAULT;this.M=200*b;this.L=360*b;this.S=new K(g)}function da(a){this.A=a=a||e.DEFAULT;this.S=new K(g);this.S.setWidth(qa);this.S.setHeight(ra)}function Da(a,d,c,b){a=a||255;d=d||0;c=c||0;b=b||function(){};var h=this.T=new G(g);this.G=new Ra(a,d,c,function(a){h.setBackgroundDrawable(new r(a));b(a)});h.setBackgroundDrawable(new r(t.rgb(a,d,c)));h.setGravity(z.CENTER);h.setText("Click to close");h.setTextColor(t.rgb(a,d,c));h.setTextSize(1,18)}function la(a){this.A=a=a||e.DEFAULT;this.M=240*b;this.L=360*b;this.S=new K(g);this.H=new q(g);this.H.setBackgroundDrawable(new r(a.getFloatingWindow(e.BACKGROUND_COLOR)));this.H.setOrientation(1);this.S.setBackgroundDrawable(va.create());this.S.setContentView(this.H);this.S.setWidth(this.L+24*b);this.S.setHeight(this.M+24*b)}function La(){}function Ea(a){this.A=a=a||e.DEFAULT;this.S=new K(g);this.H=new Q(a);this.U=new ya;this.S.setBackgroundDrawable(new r(a.getWindow(e.BACKGROUND_COLOR)));this.S.setContentView(this.H.show());this.S.setWidth(340*b);this.S.setHeight(340*b);this.H.addView(this.U.show())}function R(a){this.A=a=a||e.DEFAULT;this.M=320*b;this.L=400*b;this.V=[];this.W=[];this.S=new K(g);this.X=new q(g);this.Y=new q(g);this.Z=new db(g);this.X.addView(this.Y,60*b,this.M);this.X.addView(this.Z,this.L-60*b,this.M);this.X.setBackgroundDrawable(va.create());this.X.setGravity(z.CENTER);this.Y.setBackgroundDrawable(new r(a.getWindow(e.BACKGROUND_COLOR)));this.Y.setOrientation(1);this.Z.setBackgroundDrawable(new r(a.getWindow(e.TEXT_COLOR)));this.S.setBackgroundDrawable(new r(0));this.S.setContentView(this.X);this.S.setWidth(this.L+24*b);this.S.setHeight(this.M+24*b)}function H(a,d){a=a||e.DEFAULT;var c=this,h=new sa,k=new q(g);c.A=a;c.S=new K(g);c.$=new G(g);c.H=new q(g);c._=new G(g);c.q=!0;c.S.setBackgroundDrawable(new r(a.getProgressWindow(e.BACKGROUND_COLOR)));c.S.setContentView(k);c.S.setWidth(qa);c.S.setHeight(ra);c.$.setGravity(z.CENTER);c.$.setPadding(12*b,8*b,12*b,24*b);c.$.setText("Now Loading...");c.$.setTextColor(a.getProgressWindow(e.TEXT_COLOR));c.$.setTextSize(1,18);h.setColors([a.getProgressWindow(e.EFFECT_COLOR),a.getProgressWindow(e.TEXT_COLOR)]);h.setOrientation(sa.Orientation.LEFT_RIGHT);c._.setBackgroundDrawable(h);c.H.addView(c._);c.H.setBackgroundDrawable(new r(a.getProgressWindow(e.TEXT_COLOR)));c.H.setGravity(z.LEFT);c.H.setLayoutParams(q.LayoutParams(304*b,28*b));c.H.setPadding(2*b,2*b,2*b,2*b);k.addView(c.$);k.addView(c.H);k.setGravity(z.CENTER);k.setOrientation(1);("undefined"===typeof d||d)&&new E({run:function(){for(var a=300*b,d,h=!1,k=0,e=0;c.q;)E.sleep(5),e>=a?d=!1:0>=e&&(d=!0),k+=5,e+=d?b:-b,g.runOnUiThread({run:function(){5e3<=k&&!h&&(h=!0,c.$.setText(c.$.getText()+"\n\n[Force shutdown]"),c.$.setOnClickListener(new C.OnClickListener({onClick:function(a){c.q=!1;c.S.dismiss()}})));c._.setLayoutParams(q.LayoutParams(e,24*b))}})}}).start()}function ka(a){this.A=a=a||e.DEFAULT;this.aa=fa.setAlpha(a.getShowcaseWindow(e.BACKGROUND_COLOR),204);this.ba=50*b;this.ca=[100*b,100*b];this.S=new K(g);this.S.setWidth(qa);this.S.setHeight(ra)}function ea(a){this.A=a=a||e.DEFAULT;this.M=ra;this.L=qa;this.da=1e3;this.H=new q(g);this.H.setBackgroundDrawable(new r(a.getSplashWindow(e.BACKGROUND_COLOR)));this.H.setGravity(z.CENTER);this.S=new K(g);this.S.setBackgroundDrawable(new r(0));this.S.setContentView(this.H);this.S.setWidth(qa);this.S.setHeight(ra)}function W(a){a=a||e.DEFAULT;var d=this;d.A=a;d.M=156*b;d.L=52*b;d.V=[];d.S=new K(g);d.X=new db(g);d.ea=new Ca(F.CIRCLE,a).setEffect(function(a,h,k,e){a=d.fa=qa-a+26*b;h=d.ga=ra-h-78*b;d.S.update(a,h,-1,-1)}).setEffectImage(v.createBitmap(n+"ic_open_with.png",24*b,24*b),a.getButton(e.EFFECT_COLOR)).setImage(v.createBitmap(n+"ic_open_with.png",24*b,24*b),a.getButton(e.BACKGROUND_COLOR));d.ha=[];d.S.setBackgroundDrawable(new r(0));d.S.setContentView(d.X);d.S.setWidth(52*b);d.S.setHeight(156*b)}function eb(a){if(ma.hasProperty(a,"me")){var d=ma.getProperty(a,"me");"object"!==typeof d.astro&&(d.astro=J,ma.putProperty(a,"me",d),ma.hasProperty(a,"onLibraryLoaded")&&ma.callMethod(a,"onLibraryLoaded",["Astro Library","me_astro_library","2.1"]))}else ma.putProperty(a,"me",{astro:J}),ma.hasProperty(a,"onLibraryLoaded")&&ma.callMethod(a,"onLibraryLoaded",["Astro Library","me_astro_library","2.1"])}function Eb(){var a=new M(n,"user.dat");if(a.exists())if((new L).isConnected()){var d,a=new Ma(a),c=new fb(a),b=new gb(c),k=b.readLine().split(",");a.close();c.close();b.close();g.runOnUiThread({run:function(){d=new H;d.setText("Logging in...");d.show()}});B=null;B=new f(k[0],k[1]);B.login(function(a){a===f.LOGIN_FAIL?(B=null,Ta()):a===f.LOGIN_SUCCESS&&hb();Fa.callScriptMethod("onLoginListener",[a]);d.dismiss()})}else m.show("Error: No Internet.");else Ta()}function Ta(){g.runOnUiThread({run:function(){var a=new R,d=new A,c=new A,h=new A,k=new A,e=new A,cb=new A;a.addLayout(v.createBitmap(n+"ic_person.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Deneb DB").setTextSize(24).show()).addView((new l).setPadding(12*b,0,8*b,12*b).setText("Login").setTextSize(14).show()).addView(d.setHint("ID").show()).addView(c.setHint("Password").show()).addView((new x).addView((new u).setText("Login").setEffect(function(){var b=d.getText(),h=c.getText(),k=new H;k.setText("Logging in...");k.show();B=new f(b,h);B.login(function(d){if(d===f.LOGIN_FAIL)B=null,g.runOnUiThread({run:function(){c.setText("")}});else if(d===f.LOGIN_SUCCESS){var e=new Na(n+"user.dat");e.write(new I(b+","+h).getBytes());e.close();a.dismiss()}Fa.callScriptMethod("onLoginListener",[d]);k.dismiss()})}).show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).setOrientation(0).show()).show()).addLayout(v.createBitmap(n+"ic_person_add.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Deneb DB").setTextSize(24).show()).addView((new l).setPadding(12*b,0,8*b,12*b).setText("Sign up").setTextSize(14).show()).addView(h.setHint("ID").show()).addView(k.setHint("Password").show()).addView(cb.setHint("E-mail").show()).addView(e.setHint("Name").show()).addView((new x).addView((new u).setText("Sign up").setEffect(function(){var a=h.getText(),c=k.getText(),d=cb.getText(),b=e.getText(),p=new H;p.setText("Signing up...");p.show();f.signUp(a,c,b,d,function(a){a===f.REGISTER_FAIL&&g.runOnUiThread({run:function(){h.setText("")}});p.dismiss()})}).show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).setOrientation(0).show()).show()).setFocusable(!0).show()}})}function hb(){B instanceof f&&B.isAvailable()?g.runOnUiThread({run:function(){try{var a=new R,d=new A,c=new A,h=new A,k=new A;a.addLayout(v.createBitmap(n+"ic_person.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Account").setTextSize(24).show()).addView((new l).setPadding(12*b,0,8*b,12*b).setText("My Account ("+B.getId()+")").setTextSize(14).show()).addView((new l).setPadding(8*b,12*b,8*b,12*b).setText("Password").show()).addView(d.setHint("Password").setText(B.getPassword()).show()).addView((new l).setPadding(8*b,12*b,8*b,12*b).setText("Name").show()).addView(c.setHint("Name").setText(B.getName()).show()).addView((new l).setPadding(8*b,12*b,8*b,12*b).setText("E-mail").show()).addView(h.setHint("E-mail").setText(B.getEmail()).show()).addView((new x).addView((new u).setText("Save").setEffect(function(){var b=new H;b.setText("Modifying...");b.show();B.modifyUserData(d.getText(),c.getText(),h.getText(),function(c){if(c===f.EDIT_SUCCESS){var h=new Na(n+"user.dat");h.write(new I(B.getId()+","+d.getText()).getBytes());h.close();a.dismiss()}Fa.callScriptMethod("onLoginListener",[c]);b.dismiss()})}).show()).addView((new u).setText("Logout").setEffect(function(){a.dismiss();new M(n,"user.dat")["delete"]();B instanceof f&&B.isAvailable()&&(B.logout(),Fa.callScriptMethod("onLoginListener",[f.LOGOUT]));Ta()}).show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).setOrientation(0).show()).show()).addLayout(v.createBitmap(n+"ic_group.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Friends").setTextSize(24).show()).addView((new l).setPadding(12*b,0,8*b,12*b).setText("Your friends").setTextSize(14).show()).addView((new x).addView(k.setHint("Friend ID").setWH(220*b,40*b).show()).addView((new u).setText("Add").setEffect(function(){var c=new H;c.setText("Adding...");c.show();B.addFriend(k.getText(),function(d){d===f.EDIT_SUCCESS&&a.dismiss();c.dismiss()})}).setPadding(0,0,0,0).show()).setGravity(z.CENTER|z.LEFT).setOrientation(0).show()).addView(function(){var c=new q(g),d=B.getFriends(),h=d.length;0<h&&c.addView((new l).setPadding(12*b,24*b,8*b,12*b).setText("Click to remove your friends").setTextSize(14).show());for(var k=0;k<h;k++)c.addView((new u).setText(d[k]).setTextColor(D.INDIGO).setColor(D.WHITE).setEffect(function(c){var d=new la,h=(new l).setText("Name: None");B.getFriendDataFromServer(c.getText(),"name",function(a,c){a===f.GET_SUCCESS&&h.setText("Name: "+c)});d.addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Manager").setTextSize(24).show()).addView((new l).setPadding(8*b,0,8*b,16*b).setText("You can only show your right friend information.").setTextSize(14).show()).addView(h.show()).addView((new x).addView((new u).setText("Remove").setEffect(function(){var b=new H;b.setText("Removing...");b.show();B.removeFriend(c.getText(),function(c){c===f.EDIT_SUCCESS&&(d.dismiss(),a.dismiss());b.dismiss()})}).show()).addView((new u).setText("Close").setEffect(function(){return d.dismiss()}).show()).setOrientation(0).show()).setFocusable(!0).show()}).setEffectColor(D.WHITE).setWH(-1,36*b).show());c.setOrientation(1);return c}()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).show()).addLayout(v.createBitmap(n+"ic_edit.png"),function(){if(Ua){var c=new A,d=new A,h=new A,k=new A,e=Player.getEntity();return(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Player Manager").setTextSize(24).show()).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Gamemode").setTextSize(14).show()).addView((new x).addView((new u).setText("Survival").setEffect(function(){Level.setGameMode(0);m.show("Gamemode changed.")}).show()).addView((new u).setText("Creative").setEffect(function(){Level.setGameMode(1);m.show("Gamemode changed.")}).show()).setOrientation(0).show(!1)).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Health").setTextSize(14).show()).addView(c.setHint("Health").setText(Entity.getHealth(e)).show()).addView((new u).setText("Set").setEffect(function(){var a=c.getText();y.verifyNumber(a)?(Entity.setHealth(e,Number(a)),m.show("Health changed.")):m.show("Error: Invalid number.")}).show()).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Hunger").setTextSize(14).show()).addView(d.setHint("Hunger").setText(Player.getHunger()).show()).addView((new u).setText("Set").setEffect(function(){var a=d.getText();y.verifyNumber(a)?(Player.setHunger(Number(a)),m.show("Hunger changed.")):m.show("Error: Invalid number.")}).show()).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Level").setTextSize(14).show()).addView(h.setHint("Level").setText(Player.getLevel()).show()).addView((new u).setText("Set").setEffect(function(){var a=h.getText();y.verifyNumber(a)?(Player.setLevel(Number(a)),m.show("Level changed.")):m.show("Error: Invalid number.")}).show()).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Exp").setTextSize(14).show()).addView(k.setHint("Exp").setText(Player.getExp().toFixed(2)).show()).addView((new u).setText("Set").setEffect(function(){var a=k.getText();y.verifyNumber(a)?(Player.setExp(Number(a)),m.show("Exp changed.")):m.show("Error: Invalid number.")}).show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).show()}return(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Player Manager").setTextSize(24).show()).addView((new l).setText("Error: Can not find player.").show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).show()}()).setFocusable(!0).show()}catch(p){print(p+"-"+p.lineNumber)}}}):Eb()}function Fb(){g.runOnUiThread({run:function(){try{var a=new R;a.addLayout(v.createBitmap(n+"ic_settings.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Settings").setTextSize(24).show()).addView((new me.astro.widget.TextView).setText("Show splash screen").setTextSize(14).show()).addView((new me.astro.widget.Layout).addView((new me.astro.widget.Button).setText("On").setEffect(function(){X.set("enable_splash",!0).save();m.show("Enable splash screen")}).show()).addView((new me.astro.widget.Button).setText("Off").setEffect(function(){X.set("enable_splash",!1).save();m.show("Disable splash screen")}).show()).setOrientation(0).show()).addView((new me.astro.widget.TextView).setText("Open notifications with gestures").setTextSize(14).show()).addView((new me.astro.widget.Layout).addView((new me.astro.widget.Button).setText("On").setEffect(function(){X.set("enable_notifications",!0).save();Ga.start();m.show("Enable opening notifications with gestures")}).show()).addView((new me.astro.widget.Button).setText("Off").setEffect(function(){X.set("enable_notifications",!1).save();Ga.stop();m.show("Disable opening notifications with gestures")}).show()).setOrientation(0).show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).show()).addLayout(v.createBitmap(n+"ic_announcement.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Notice").setTextSize(24).show()).addView((new l).setText(ib).setTextColor(D.GREY_DARK).show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).show()).addLayout(v.createBitmap(n+"ic_info_outline.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Device Info").setTextSize(24).show()).addView((new l).setText("Device model: "+Gb+"\nDevice version: "+Hb).setTextColor(D.GREY_DARK).show()).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Library Info").setTextSize(24).show()).addView((new l).setText("Astro Library 2.1\n\nName Code: me_astro_library\nDeveleoper: Astro").setTextColor(D.GREY_DARK).show()).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("License").setTextSize(24).show()).addView((new l).setText("AstroLibrary is licensed under the GNU Lesser General Public License, Version 3 (LGPL-3.0).").setTextColor(D.GREY_DARK).show()).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Share with your friends").setTextSize(24).show()).addView((new U).setLinkButtonText("Github").setLinkButtonUrl("https://github.com/Astro36/AstroLibrary").setLinkText("Hello world").show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).show()).addLayout(v.createBitmap(n+"ic_help_outline.png"),(new x).addView((new l).setPadding(8*b,16*b,8*b,4*b).setText("Error Message Translation (Korean)").setTextSize(24).show()).addView((new l).setText("Cannot connect to the server.\n- 서버 오류. 이 오류를 발견한다면 즉시 개발자에게 알려주세요.\n\nCan not find player.\n- 맵 안에서만 사용 가능한 기능입니다.\n\nCannot find the user.\n- 서버에 올바르지 않은 계정 아이디가 입력되었습니다.\n\nIncompatible version. (Library version ≥ {version})\n- 라이브러리의 버전이 호환되지 않습니다. 최신 버전으로 업데이트해주세요.\n\nInvalid format.\n- 유효하지 않은 형식입니다.\n ID & Password: 4~12자리의 영어, 숫자, 언더바(_)만 사용 가능합니다.\n Name: 1~20자리의 영어, 숫자, 언더바(_)만 사용 가능합니다.\n E-mail: 네이버 E-mail만 사용 가능합니다.\n\nInvalid number.\n- 유효하지 않은 숫자입니다. 정수를 입력해주세요.\n\nInvalid parameters.\n- 스크립트 오류. 해당 스크립트 개발자에게 문의하세요.\n\nInvalid version format.\n- 유효하지 않은 버전 형식입니다. 1.0과 같은 형식으로 입력해주세요.\n\nNo Internet.\n- 인터넷에 연결해주세요.\n\nThe password is incorrect.\n- 비밀번호가 올바르지 않습니다.\n\nThis e-mail is already used.\n-이미 사용중인 E-mail입니다. 다른 E-mail를 입력하세요.\n\nThis ID is already used.\n- 이미 사용중인 아이디입니다. 다른 아이디를 입력하세요.\n\nThis ID is not accepted.\n- 아이디가 아직 승인되지 않았습니다. 개발자가 아이디를 사용 허가할 때까지 기다려주세요.\n\nThis ID is not signed up the server.\n- 서버에 가입하지 않은 아이디입니다. 서버에 가입해주세요.").setTextColor(D.GREY_DARK).show()).addView((new u).setText("Close").setEffect(function(){return a.dismiss()}).show()).show()).setFocusable(!0).show()}catch(d){print(d)}}})}function jb(){for(var a="ic_account_circle.png ic_announcement.png ic_colorize.png ic_edit.png ic_group.png ic_help_outline.png ic_info_outline.png ic_open_with.png ic_palette.png ic_person.png ic_person_add.png ic_settings.png ic_swap_horiz.png img_astro_library_transparent.png".split(" "),d=!0,c=a.length;c--;)new M(n,a[c]).exists()||(O.download(n+a[c],"https://github.com/Astro36/AstroLibrary/raw/master/res/"+a[c]),d=!1);new M(n,"LICENSE").exists()||(O.download(n+"LICENSE","https://github.com/Astro36/AstroLibrary/raw/master/LICENSE"),d=!1);if(d)(new L).isConnected()&&new E({run:function(){ib=Va("http://minedev.dothome.co.kr/deneb/notice.txt")}}).start(),X=new na(n+"preference.json"),Ga=La.getInstance(),ta=new W,X.get("enable_notifications")&&Ga.start(),Ga.addNotification("About","AstroLibrary lets you add flat design and feel to your scripts.","Get Started",function(){g.startActivity(new Oa(Oa.ACTION_VIEW,Wa.parse("https://github.com/Astro36/AstroLibrary")))}),g.runOnUiThread({run:function(){ta.addView(new T(F.CIRCLE).setEffect(hb).setEffectImage(v.createBitmap(n+"ic_account_circle.png",24*b,24*b)).setImage(v.createBitmap(n+"ic_account_circle.png",24*b,24*b)).show()).addView(new T(F.CIRCLE).setEffect(Fb).setEffectImage(v.createBitmap(n+"ic_settings.png",24*b,24*b)).setImage(v.createBitmap(n+"ic_settings.png",24*b,24*b)).show()).show(X.get("window_location_x"),X.get("window_location_y"));if(X.get("enable_splash")){var a=new q(g),c=new G(g);c.setBackgroundDrawable(new ca(v.createBitmap(n+"img_astro_library_transparent.png",480*b,270*b)));a.addView(c);a.setGravity(z.CENTER);(new ea).setColor(D.WHITE).setDelay(3e3).setView(a).show()}}}),new E({run:function(){for(var a=Fa.scripts,c=0;;){var d=a.size();if(d>c)for(var b=d-c;b--;)eb(a.get(c+b).scope);c=d;E.sleep(1e3)}}}).start();else if((new L).isConnected()){var h;g.runOnUiThread({run:function(){h=new H;h.setText("Downloading...");h.show()}});new E({run:function(){for(;!d;){E.sleep(1e3);for(var c=a.length;c--;)if(new M(n,a[c]).exists()&&new M(n,"LICENSE").exists())d=!0;else{d=!1;break}}h.dismiss();jb()}}).start()}else m.show("Error: No Internet.")}var za=android.app.DownloadManager,bb=android.content.Context,Oa=android.content.Intent,Ib=android.content.pm.PackageManager,ha=android.graphics.Bitmap,Xa=android.graphics.BitmapFactory,Sa=android.graphics.Canvas,t=android.graphics.Color,aa=android.graphics.LinearGradient,Ja=android.graphics.Paint,Ya=android.graphics.PorterDuff,kb=android.graphics.PorterDuffColorFilter,Jb=android.graphics.PorterDuffXfermode,ba=android.graphics.Shader,ca=android.graphics.drawable.BitmapDrawable,r=android.graphics.drawable.ColorDrawable,sa=android.graphics.drawable.GradientDrawable,Za=android.graphics.drawable.LayerDrawable,Ka=android.graphics.drawable.ShapeDrawable,lb=android.graphics.drawable.shapes.OvalShape,mb=android.net.ConnectivityManager,Kb=android.net.http.AndroidHttpClient,Wa=android.net.Uri,Pa=android.os.Build,nb=android.os.Environment,Aa=android.os.StrictMode,ob=android.renderscript.Allocation,Lb=android.renderscript.Element,Mb=android.renderscript.RenderScript,Nb=android.renderscript.ScriptIntrinsicBlur,pb=android.util.Base64,Ob=android.util.Patterns,z=android.view.Gravity,w=android.view.MotionEvent,C=android.view.View,qb=android.view.animation.AlphaAnimation,Qa=android.view.animation.DecelerateInterpolator,rb=android.view.animation.TranslateAnimation,Cb=android.webkit.WebView,Bb=android.widget.CompoundButton,zb=android.widget.EditText,db=android.widget.FrameLayout,q=android.widget.LinearLayout,K=android.widget.PopupWindow,Db=android.widget.ScrollView,G=android.widget.TextView,Pb=android.widget.Toast,Ab=android.widget.ToggleButton,gb=java.io.BufferedReader,Y=java.io.ByteArrayOutputStream,Qb=java.io.DataOutputStream,M=java.io.File,Ma=java.io.FileInputStream,Na=java.io.FileOutputStream,fb=java.io.InputStreamReader,sb=java.lang.Byte,I=java.lang.String,E=java.lang.Thread,tb=java.lang.reflect.Array,ub=java.net.DatagramSocket,vb=java.net.DatagramPacket,Rb=java.net.InetSocketAddress,wb=java.net.URL,Sb=java.nio.ByteBuffer,Tb=java.util.zip.ZipInputStream,Fa=net.zhuoweizhang.mcpelauncher.ScriptManager,Ub=org.apache.http.client.methods.HttpGet,ma=org.mozilla.javascript.ScriptableObject,g=com.mojang.minecraftpe.MainActivity.currentMainActivity.get(),b=g.getResources().getDisplayMetrics().density,Vb=g.getResources(),ua=g.getWindow().getDecorView(),n=nb.getExternalStorageDirectory().getAbsolutePath()+"/games/me.astro/library/",qa=g.getScreenWidth(),ra=g.getScreenHeight(),Gb=Pa.MODEL,Hb=Pa.VERSION.RELEASE,Ua=!1,$a,X,Ga,ta,ib="Error: No Internet.",B;v.blur=function(a,d){if(Pa.VERSION.SDK_INT>=Pa.VERSION_CODES.JELLY_BEAN_MR1){var c=Mb.create(g),b=ob.createFromBitmap(c,a),e=ob.createTyped(c,b.getType()),c=Nb.create(c,Lb.U8_4(c));c.setRadius(d);c.setInput(b);c.forEach(e);e.copyTo(a)}return a};v.createBitmap=function(a,d,c){return v.resizeBitmap(Xa.decodeFile(a),d||36,c||36)};v.decodeBase64=function(a){a=pb.decode(a,0);return Xa.decodeByteArray(a,0,a.length)};v.resizeBitmap=function(a,d,c){return ha.createScaledBitmap(a,b*d,b*c,!1)};var D={RED:-769226,RED_DARK:-2937041,RED_ACCENT:-44462,PINK:-1499549,PINK_DARK:-4056997,PINK_ACCENT:-49023,PURPLE:-6543440,PURPLE_DARK:-8708190,PURPLE_ACCENT:-2080517,DEEP_PURPLE:-10011977,DEEP_PURPLE_DARK:-11457112,DEEP_PURPLE_ACCENT:-8630785,INDIGO:-12627531,INDIGO_DARK:-13615201,INDIGO_ACCENT:-11309570,BLUE:-14575885,BLUE_DARK:-15108398,BLUE_ACCENT:-12285185,LIGHT_BLUE:-16537100,LIGHT_BLUE_DARK:-16611119,LIGHT_BLUE_ACCENT:-12532481,CYAN:-16728876,CYAN_DARK:-16738393,CYAN_ACCENT:-15138817,TEAL:-16738680,TEAL_DARK:-16746133,TEAL_ACCENT:-10158118,GREEN:-11751600,GREEN_DARK:-13070788,GREEN_ACCENT:-9834322,LIGHT_GREEN:-7617718,LIGHT_GREEN_DARK:-9920712,LIGHT_GREEN_ACCENT:-5046439,LIME:-3285959,LIME_DARK:-5262293,LIME_ACCENT:-1114303,YELLOW:-5317,YELLOW_DARK:-278483,YELLOW_ACCENT:-256,AMBER:-16121,AMBER_DARK:-24576,AMBER_ACCENT:-10432,ORANGE:-26624,ORANGE_DARK:-689152,ORANGE_ACCENT:-21696,DEEP_ORANGE:-43230,DEEP_ORANGE_DARK:-1684967,DEEP_ORANGE_ACCENT:-37312,BROWN:-8825528,BROWN_DARK:-10665929,BROWN_800:-11652050,GREY:-6381922,GREY_DARK:-10395295,BLUE_GREY:-10453621,BLUE_GREY_DARK:-12232092,BLACK:-16777216,WHITE:-1,TRANSPARENT:0};Object.freeze(D);fa.blendColors=function(a){for(var d=a.length,c=0,b=0,e=0,p=0,g=d;g--;)var f=a[g],c=c+t.red(f),b=b+t.green(f),e=e+t.blue(f),p=p+t.alpha(f);return t.argb(Math.floor(p/d),Math.floor(c/d),Math.floor(b/d),Math.floor(e/d));
};fa.setAlpha=function(a,d){return t.argb(d,t.red(a),t.green(a),t.blue(a))};Ha.setTint=function(a,d){a.getPaint().setColorFilter(new kb(d,Ya.Mode.SRC_ATOP));return a};va.RESOURCE=Vb.getDrawable(17301521);va.create=function(){var a=new Za([va.RESOURCE]);a.setLayerInset(0,3*b,6*b,3*b,3*b);return a};var F={RECT:0,CIRCLE:1};Object.freeze(F);Ia.RESOURCE=function(){var a=pb.decode("iVBORw0KGgoAAAANSUhEUg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wbNYrihSddNZUb7Hg9Bw+R9gbvNYgez9xQWeM6ubBYoTEK2mxSI6bI++XXUyyHdTkERQW8W3skOTLg5QBFETnrWPSnfv0lT4EZpYL2MCmjwVJPl/52ynXG7aywZ3ubfpEB1nomZPDfexp1ZdsrnO4zrlO/lZ5OxTRM+8D3xEKZBlOm52856zpT4y6vLakyG2hv1xoytAVTIhs9DHDYaYO5qqS23F1zxnV2S366EtOUMYL2NakecsitK/j93FnXUZaFo6KwKhsnaKoRXyabglxvFE3g2VWFFQ4W+1HX2XO/F9TlQvR6qaADTKo3ajQKZd320j9O7nRBLWrcleXO2uoSe5XVrDIQbDf7ZjvBUGwHesKgMlur7CXVtc7ySncNPO+unSf/KN1ep1RoNMaOQR9IQhMXUXf+z70XTuw75WLlgOZmuTgdGyoqqqtLSgozM+12exX8gMZ9Y8/MLCwpqa6uqNjgcLKo3exfwZPuOrXvxIW9f56vi4jTdDR4X36zJMjhmynCI/66eP7Qpb+PXT7xz8Gde45DMtDOcIS85nZ7kHrtzBn2CJfr+J6dB/85cfnY35cOnb/4V0Q4PO8aeYJFJOhEE0r1CWXwfTWYIi43Iq/u4unz2w/tv7Tj8L+7dh+7cOHy5SNHzn3ntXNHjly+fOHCsd27/j2849L+Q9vPn75YlxeRG6fA2Fcos+ilQkEXmVAkMVmMRlYRzjBMoYiLCw9PTc3NVfosNzc1NTw8Lk6hwLD6I+VGo8UkEXUZ8iuYCIWiZInEBC2BMyNrZdC4bzw/Y38rkSSL4MGCa3bNrtk1Y+1/kVFqJX5x+88AAAAASUVORK5CYII=",0);return new ca(Xa.decodeByteArray(a,0,a.length))}();Ia.create=function(a){var d=Ia.RESOURCE;a&&d.getPaint().setColorFilter(new kb(a,Ya.Mode.SRC_ATOP));return d};e.DEFAULT=new e({});e.BACKGROUND_COLOR=0;e.EFFECT_COLOR=1;e.TEXT_COLOR=2;e.HINT_TEXT_COLOR=3;e.parse=function(a){return new M(a).exists()?new e(JSON.parse(O.read(a))):e.DEFAULT};e.prototype.getThemeObject=function(){return{primary:this.a,primaryDark:this.b,accent:this.c,textBlack:this.d,textWhite:this.e,textGrey:this.f}};e.prototype.getTextView=function(a){if(a===e.TEXT_COLOR)return this.d};e.prototype.getButton=function(a){switch(a){case e.BACKGROUND_COLOR:return this.a;case e.EFFECT_COLOR:return this.b;case e.TEXT_COLOR:return this.e}};e.prototype.getDivider=function(a){if(a===e.BACKGROUND_COLOR)return this.f};e.prototype.getEditText=function(a){switch(a){case e.BACKGROUND_COLOR:return this.c;case e.TEXT_COLOR:return this.d;case e.HINT_TEXT_COLOR:return this.f}};e.prototype.getFloatingWindow=function(a){switch(a){case e.BACKGROUND_COLOR:return this.e;case e.EFFECT_COLOR:return this.f;case e.TEXT_COLOR:return this.d}};e.prototype.getNotificationWindow=function(a){switch(a){case e.BACKGROUND_COLOR:return this.e;case e.EFFECT_COLOR:return this.a;case e.TEXT_COLOR:return this.d}};e.prototype.getProgressWindow=function(a){switch(a){case e.BACKGROUND_COLOR:return this.a;case e.EFFECT_COLOR:return this.c;case e.TEXT_COLOR:return this.e}};e.prototype.getToast=function(a){switch(a){case e.BACKGROUND_COLOR:return this.a;case e.TEXT_COLOR:return this.e}};e.prototype.getScrollView=function(a){if(a===e.BACKGROUND_COLOR)return this.c};e.prototype.getShowcaseWindow=function(a){if(a===e.BACKGROUND_COLOR)return this.a};e.prototype.getSplashWindow=function(a){if(a===e.BACKGROUND_COLOR)return this.a};e.prototype.getWindow=function(a){switch(a){case e.BACKGROUND_COLOR:return this.a;case e.EFFECT_COLOR:return this.b;case e.TEXT_COLOR:return this.e}};var Va=function(a){try{Aa.setThreadPolicy((new Aa.ThreadPolicy.Builder).permitAll().build());var d=new Y;Kb.newInstance("userAgent").execute(new Ub(a)).getEntity().writeTo(d);d.close();return String(d.toString())}catch(c){m.show(c)}return""};L.WIFI=0;L.MOBILE=1;L.NOT_CONNECTED=2;L.prototype.getConnectedType=function(){var a=this.g,d=a.getNetworkInfo(mb.TYPE_WIFI).isConnected(),a=a.getNetworkInfo(mb.TYPE_MOBILE).isConnected();return d?L.WIFI:a?L.MOBILE:L.NOT_CONNECTED};L.prototype.isConnected=function(){return 1>=this.getConnectedType()};N.prototype.post=function(a,d){if((new L).isConnected()){var c=this;d=d||function(){};new E({run:function(){try{Aa.setThreadPolicy((new Aa.ThreadPolicy.Builder).permitAll().build());var b=new wb(c.h).openConnection(),e;b.setDoInput(!0);b.setDoOutput(!0);b.setUseCaches(!1);b.setRequestMethod("POST");b.setRequestProperty("Content-Type","application/x-www-form-urlencoded");e=b.getOutputStream();e.write(new I(a).getBytes());e.flush();e.close();d(b.getInputStream())}catch(p){m.show(p)}}}).start()}else m.show("Error: No Internet.");return this};N.prototype.upload=function(a,d){if((new L).isConnected()){var c=this;d=d||function(){};new E({run:function(){try{Aa.setThreadPolicy((new Aa.ThreadPolicy.Builder).permitAll().build());var b=new wb(c.h).openConnection(),e=new Ma(a),p,g,f;b.setDoInput(!0);b.setDoOutput(!0);b.setUseCaches(!1);b.setRequestMethod("POST");b.setRequestProperty("Connection","Keep-Alive");b.setRequestProperty("ENCTYPE","multipart/form-data");b.setRequestProperty("Content-Type","multipart/form-data;boundary=*****");b.setRequestProperty("uploaded_file",a);p=new Qb(b.getOutputStream());p.writeBytes("--*****\r\n");p.writeBytes('Content-Disposition: form-data;name="uploaded_file";filename="'+a+'"\r\n');p.writeBytes("\r\n");g=tb.newInstance(sb.TYPE,f=Math.min(e.available(),1048576));e.read(g,0,f);p.write(g,0,f);p.writeBytes("\r\n");p.writeBytes("--*****--\r\n");200===b.getResponseCode()?d("success"):d("fail");e.close();p.flush();p.close()}catch(ga){m.show(ga),d("fail")}}}).start()}else m.show("Error: No Internet.");return this};f.REGISTER_FAIL=0;f.REGISTER_SUCCESS=1;f.LOGIN_FAIL=2;f.LOGIN_SUCCESS=3;f.EDIT_FAIL=4;f.EDIT_SUCCESS=5;f.GET_FAIL=6;f.GET_SUCCESS=7;f.SEND_FAIL=8;f.SEND_SUCCESS=9;f.LOGOUT=10;f.signUp=function(a,d,c,b,e){e=e||function(){};y.verifyId(a)&&y.verifyPassword(d)&&y.verifyName(c)&&y.verifyEmail(b)?new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=sign_up&id="+a+"&password="+d+"&email="+b+"&name="+c,function(a){if(null!==a){for(var c=new Y(1024),d;-1!==(d=a.read());)c.write(d);a.close();c.close();a=new I(c.toByteArray());a.contains("Error")?(m.show(a),e(f.REGISTER_FAIL)):(m.show(a),e(f.REGISTER_SUCCESS))}else m.show("Error: Cannot connect to the server."),e(f.REGISTER_FAIL)}):(m.show("Error: Invalid format."),e(f.REGISTER_FAIL))};f.prototype.addFriend=function(a,d){var c=this.n;a+="";0>c.indexOf(a)&&(c.push(a),this.modifyData("friends",encodeURIComponent(JSON.stringify(c)),d));return this};f.prototype.getDataFromServer=function(a,d){d=d||function(){};new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=get&user_code="+this.m+"&key="+a,function(a){if(null!==a){for(var c=new Y(1024),b;-1!==(b=a.read());)c.write(b);a.close();c.close();a=new I(c.toByteArray());a.contains("Error")?(m.show(a),d(f.GET_FAIL)):d(f.GET_SUCCESS,a)}else m.show("Error: Cannot connect to the server."),d(f.GET_FAIL)});return this};f.prototype.getFriendDataFromServer=function(a,d,c){c=c||function(){};new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=friend_get&user_code="+this.m+"&friend_id="+a+"&key="+d,function(a){if(null!==a){for(var d=new Y(1024),b;-1!==(b=a.read());)d.write(b);a.close();d.close();a=new I(d.toByteArray());a.contains("Error")?(m.show(a),c(f.GET_FAIL)):c(f.GET_SUCCESS,a)}else m.show("Error: Cannot connect to the server."),c(f.GET_FAIL)});return this};f.prototype.getMessagesFromServer=function(a){a=a||function(){};new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=get&user_code="+this.m+"&key=messages",function(d){if(null!==d){for(var c=new Y(1024),b;-1!==(b=d.read());)c.write(b);d.close();c.close();d=new I(c.toByteArray());d.contains("Error")?(m.show(d),a(f.GET_FAIL)):a(f.GET_SUCCESS,JSON.parse(d))}else m.show("Error: Cannot connect to the server."),a(f.GET_FAIL)});return this};f.prototype.getEmail=function(){return this.i};f.prototype.getFriends=function(){return this.n};f.prototype.getId=function(){return this.j};f.prototype.getName=function(){return this.k};f.prototype.getPassword=function(){return this.l};f.prototype.getRank=function(a,b){b=b||function(){};new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=sort&key="+a,function(a){if(null!==a){for(var c=new Y(1024),d;-1!==(d=a.read());)c.write(d);a.close();c.close();a=new I(c.toByteArray());if(a.contains("Error"))m.show(a),b(f.GET_FAIL);else{a=String(a).split("###");for(c=a.length;c--;)a[c]=a[c].split(":");b(f.GET_SUCCESS,a)}}else m.show("Error: Cannot connect to the server."),b(f.GET_FAIL)});return this};f.prototype.getUserCode=function(){return this.m};f.prototype.isAvailable=function(){return this.o};f.prototype.isRightFriend=function(a,b){b=b||function(){};new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=friend_check&user_code="+this.m+"&friend_id="+a,function(a){if(null!==a){for(var c=new Y(1024),d;-1!==(d=a.read());)c.write(d);a.close();c.close();a=new I(c.toByteArray());a.contains("Error")?(m.show(a),b(f.GET_FAIL)):b(f.GET_SUCCESS,!!a)}else m.show("Error: Cannot connect to the server."),b(f.GET_FAIL)});return this};f.prototype.login=function(a){a=a||function(){};if(y.verifyId(this.j)&&y.verifyPassword(this.l)){var b=this;new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=login&id="+b.j+"&password="+b.l,function(c){if(null!==c){for(var d=new Y(1024),e;-1!==(e=c.read());)d.write(e);c.close();d.close();c=new I(d.toByteArray());if(c.contains("Error"))m.show(c),a(f.LOGIN_FAIL);else{var g=c.split("#");b.m=g[1];b.getDataFromServer("name",function(a,c){return a===f.GET_SUCCESS&&(b.k=c)});b.getDataFromServer("friends",function(a,c){a===f.GET_SUCCESS&&(c+="",b.n="string"===typeof c?JSON.parse(decodeURIComponent(c)):[])});b.getDataFromServer("email",function(c,d){c===f.GET_SUCCESS&&(b.i=d,b.o=!0,m.show(g[0]),a(f.LOGIN_SUCCESS))})}}else m.show("Error: Cannot connect to the server."),a(f.LOGIN_FAIL)})}else m.show("Error: Invalid format."),a(f.LOGIN_FAIL);return this};f.prototype.logout=function(){this.m=null;this.o=!1;return this};f.prototype.modifyData=function(a,b,c){c=c||function(){};new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=set&user_code="+this.m+"&key="+a+"&value="+b,function(a){if(null!==a){for(var b=new Y(1024),d;-1!==(d=a.read());)b.write(d);a.close();b.close();a=new I(b.toByteArray());a.contains("Error")?(m.show(a),c(f.EDIT_FAIL)):(m.show(a),c(f.EDIT_SUCCESS))}else m.show("Error: Cannot connect to the server."),c(f.EDIT_FAIL)});return this};f.prototype.modifyUserData=function(a,b,c,e){a=a||this.l;b=b||this.k;c=c||this.i;e=e||function(){};if(y.verifyPassword(a)&&y.verifyName(b)&&y.verifyEmail(c)){var d=this;new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=set&user_code="+this.m+"&key=password|name|email&value="+[a,b,c].join("|"),function(h){if(null!==h){for(var k=new Y(1024),g;-1!==(g=h.read());)k.write(g);h.close();k.close();h=new I(k.toByteArray());h.contains("Error")?e(f.EDIT_FAIL):(d.l=a,d.k=b,d.i=c,e(f.EDIT_SUCCESS));m.show((h+"").replace(/(.+)\1+/g,"$1"))}else m.show("Error: Cannot connect to the server."),e(f.EDIT_FAIL)})}else m.show("Error: Invalid format."),e(f.EDIT_FAIL);return this};f.prototype.removeFriend=function(a,b){var c=this.n,d=c.indexOf(a+"");0<=d&&(c.splice(d,1),this.modifyData("friends",encodeURIComponent(JSON.stringify(c)),b));return this};f.prototype.sendMessage=function(a,b,c){c=c||function(){};new N("http://minedev.dothome.co.kr/deneb/server.php").post("type=send_message&user_code="+this.m+"&friend_id="+a+"&value="+b,function(a){if(null!==a){for(var b=new Y(1024),d;-1!==(d=a.read());)b.write(d);a.close();b.close();a=new I(b.toByteArray());a.contains("Error")?(m.show(a),c(f.SEND_FAIL)):(m.show(a),c(f.SEND_SUCCESS))}else m.show("Error: Cannot connect to the server."),c(f.SEND_FAIL)});return this};wa.prototype.isRunning=function(){return this.q};wa.prototype.setReceiver=function(a){this.r=a;return this};wa.prototype.send=function(a,b){var c=this.s,d=function(a){new E({run:function(){try{var c=new I(b).getBytes(),d=new ub;d.send(new vb(c,c.length,Rb.getByName(a),19e3));d.close()}catch(xb){print(xb)}}}).start()};a in c?d(c[a]):this.p.getFriendDataFromServer(a,"ip",function(a,c){a===f.GET_SUCCESS&&d(c)});return this};wa.prototype.start=function(){var a=this;a.q=!0;new E({run:function(){try{for(var b=a.s,c=tb.newInstance(sb.TYPE,128),e=new ub(19e3),k=new vb(c,c.length);a.q;){E.sleep(1e3);e.receive(k);var g=new I(k.getData(),0,k.getLength());print(g);var f=k.getAddress().toString(),c=!1,l;for(l in b)if(b[l]===f){a.r(l,g);c=!1;break}c&&a.r("Unknown("+f+")",g)}e.close()}catch(ga){print(ga)}}}).start();return this};wa.prototype.stop=function(){this.q=!1;return this};S.DOWNLOAD_INSTALL=0;S.DOWNLOAD_ONLY=1;S.prototype.download=function(a,b,c){var d=this,e=new M(a.toString());e.exists()&&e["delete"]();"undefined"===typeof c||c===S.DOWNLOAD_INSTALL?O.download(a,b,function(){e.exists()&&d.install(a)}):O.download(a,b);return this};S.prototype.getVersion=function(){return g.getPackageManager().getPackageInfo(this.u,Ib.GET_INSTRUMENTATION).versionName};S.prototype.install=function(a){var b=new Oa(Oa.ACTION_VIEW);b.setDataAndType(new Wa.parse("file://"+a.toString()),"application/vnd.android.package-archive");g.startActivity(b);return this};S.prototype.isEnabled=function(){return this.t.isEnabled(this.u)};S.prototype.isInstalled=function(){return null!==g.getPackageManager().getLaunchIntentForPackage(this.u)};S.prototype.setDisable=function(){this.t.setEnabled(this.u,!1);return this};S.prototype.setEnabled=function(){this.t.setEnabled(this.u,!0);return this};O.download=function(a,b,c){try{var d=new M(a),e=d.getName(),f=g.getSystemService(bb.DOWNLOAD_SERVICE),l=new za.Request(new Wa.parse(b));l.setTitle(e);l.setNotificationVisibility(0);l.setDestinationInExternalPublicDir(d.getParent().replace(nb.getExternalStorageDirectory().getAbsolutePath(),""),e);var q=f.enqueue(l);if("function"===typeof c){var r=new za.Query,n=f.query(r),u=n.getColumnIndex(za.COLUMN_ID),t=n.getColumnIndex(za.COLUMN_STATUS);new E({run:function(){for(;;){E.sleep(1e3);n=f.query(r);for(var a=0;a<n.getCount()&&(n.moveToPosition(a),n.getLong(u)!==q);a++);if(n.getInt(t)===za.STATUS_SUCCESSFUL||n.getInt(t)===za.STATUS_FAILED)break}c(n.getInt(t));n.close()}}).start()}}catch(yb){m.show(yb)}};O.preventMediaScanning=function(a){new M(a+(a.endsWith("/")?".nomedia":"/.nomedia")).createNewFile()};O.read=function(a){if(new M(a).exists()){a=new Ma(a);for(var b=new fb(a),c=new gb(b),e=[],k;null!==(k=c.readLine());)e.push(k);c.close();b.close();a.close();return e.join("\n")}return""};O.unzip=function(a){var b=new M(a);a=new Tb(new Ma(b));for(var b=b.getParent(),c;null!==(c=a.getNextEntry());){c=new Na(b+c.getName());for(var e=new Sb.allocate(1024).array(),k;-1!==(k=a.read(e));)c.write(e,0,k);a.closeEntry();c.close()}a.close()};O.write=function(a,b){var c=new M(a),d=new Na(a);c.getParentFile().mkdirs();d.write(new I(b).getBytes());d.close()};na.prototype.get=function(a){return this.x[a]};na.prototype.has=function(a){return a in this.x};na.prototype.save=function(){O.write(this.v,JSON.stringify(this.x));return this};na.prototype.set=function(a,b){this.x[a]=b;return this};na.prototype.toString=function(){return JSON.stringify(this.x)};y.verifyEmail=function(a){return new RegExp(Ob.EMAIL_ADDRESS.toString()).test(a)};y.verifyId=function(a){return/^\w{4,12}$/i.test(a)};y.verifyName=function(a){return/^\w{1,20}$/i.test(a)};y.verifyNumber=function(a){return/^\d+$/.test(a)};y.verifyPassword=function(a){return/^\w{4,12}$/i.test(a)};oa.prototype.getTheme=function(){return this.A};oa.prototype.getView=function(){return this.z};oa.prototype.setGravity=function(){};oa.prototype.setTheme=function(a){this.A=a;return this};oa.prototype.show=function(){return this.z};Z.getTheme=function(a){return"getTag"in a&&(a=a.getTag(),a.contains("theme:"))?new e(JSON.parse(a.replace("theme:","").toString())):null};Z.setTheme=function(a,b){"setTag"in a&&b instanceof e&&a.setTag("theme:"+JSON.stringify(b.getThemeObject()))};l.prototype=Object.create(oa.prototype);l.constructor=l;l.prototype.getText=function(){return this.z.getText().toString()};l.prototype.getTextColor=function(){return this.z.getTextColor()};l.prototype.getTextSize=function(){return this.z.getTextSize()};l.prototype.getWH=function(){var a=this.y;return[a.width,a.height]};l.prototype.setGravity=function(a){this.z.setGravity(a);return this};l.prototype.setPadding=function(a,b,c,e){this.y.setMargins(a,b,c,e);return this};l.prototype.setText=function(a){this.z.setText(a.toString());return this};l.prototype.setTextColor=function(a){this.z.setTextColor(a);return this};l.prototype.setTextSize=function(a){this.z.setTextSize(1,a);return this};l.prototype.setWH=function(a,b){var c=this.y;c.width=a;c.height=b;return this};l.prototype.show=function(){Z.setTheme(this.z,this.A);return this.z};u.prototype=Object.create(l.prototype);u.prototype.constructor=u;u.prototype.getEffect=function(){return this.D};u.prototype.setColor=function(a){this.z.setBackgroundDrawable(this.B=new r(a));return this};u.prototype.setEffect=function(a){this.D="function"===typeof a?a:function(){};return this};u.prototype.setEffectColor=function(a){this.C=new r(a);return this};Ra.prototype.show=function(){var a=new q(g);a.addView(this.G,240*b,240*b);a.addView(this.F,40*b,240*b);return a};Ba.prototype=Object.create(l.prototype);Ba.prototype.constructor=Ba;A.prototype=Object.create(l.prototype);A.prototype.constructor=A;A.prototype.getHint=function(){return this.z.getHint().toString()};A.prototype.setColor=function(a){var d=new Ka,c=d.getPaint();c.setColor(-1);c.setStyle(Ja.Style.STROKE);c.setColor(a);c.setStrokeWidth(3*b);this.z.setBackgroundDrawable(d);return this};A.prototype.setHint=function(a){this.z.setHint(a);return this};A.prototype.setHintColor=function(a){this.z.setHintTextColor(a);return this};P.prototype.addView=function(a){this.I.push(a);return this};P.prototype.getColumn=function(){return this.K};P.prototype.getHeight=function(){return this.M};P.prototype.getLayout=function(){return this.H};P.prototype.getRow=function(){return this.J};P.prototype.getWidth=function(){return this.L};P.prototype.setColumn=function(a){this.K=a;return this};P.prototype.setHeight=function(a){this.M=a;return this};P.prototype.setRow=function(a){this.J=a;return this};P.prototype.setWidth=function(a){this.L=a;return this};P.prototype.show=function(){var a=this.H,b=this.I,c=this.K,e=this.J,k=this.L*e,f=this.M*c,l=this.L,m=this.M;0>c&&(c=Math.ceil(b.length/e));a.setLayoutParams(new q.LayoutParams(k,f));for(f=0;f<c;f++){var n=new q(g);n.setLayoutParams(new q.LayoutParams(k,m));for(var r=0;r<e;r++)if(e*f+r<b.length){var u=b[e*f+r];u.setLayoutParams(new q.LayoutParams(l,m));n.addView(u)}a.addView(n)}return a};T.prototype=Object.create(u.prototype);T.prototype.constructor=T;T.prototype.setImage=function(a,d,c){var h;this.N===F.RECT?h=new r(d||this.A.getButton(e.BACKGROUND_COLOR)):(h=new Ka(new lb),h.getPaint().setColor(d||this.A.getButton(e.BACKGROUND_COLOR)));this.B=new Za([h,a instanceof ha?new ca(a):a]);c=c||8*b;"number"===typeof c?this.B.setLayerInset(1,c,c,c,c):"object"===typeof c&&this.B.setLayerInset(1,c[0],c[1],c[2],c[3]);this.z.setBackgroundDrawable(this.B);return this};T.prototype.setEffectImage=function(a,d,c){var h;this.N===F.RECT?h=new r(d||this.A.getButton(e.EFFECT_COLOR)):(h=new Ka(new lb),h.getPaint().setColor(d||this.A.getButton(e.EFFECT_COLOR)));this.C=new Za([h,a instanceof ha?new ca(a):a]);c=c||8*b;"number"===typeof c?this.C.setLayerInset(1,c,c,c,c):"object"===typeof c&&this.C.setLayerInset(1,c[0],c[1],c[2],c[3]);return this};pa.prototype=Object.create(T.prototype);pa.prototype.constructor=pa;pa.prototype.isChecked=function(){return this.z.isChecked()};pa.prototype.setChecked=function(a){a?this.z.setBackgroundDrawable(this.C):this.z.setBackgroundDrawable(this.B);this.z.setChecked(a);return this};U.prototype=Object.create(l.prototype);U.prototype.constructor=U;U.prototype.setLinkButtonText=function(a){this.ia=a.toString();return this};U.prototype.setLinkButtonUrl=function(a){this.ja=a.toString();return this};U.prototype.setLinkImage=function(a){this.ka=a.toString();this.la="300";this.ma="200";return this};U.prototype.setLinkImageWH=function(a,b){this.la=a.toString();this.ma=b.toString();return this};U.prototype.setLinkText=function(a){this.na=a.toString();return this};U.prototype.show=function(){this.z.loadUrl("http://minedev.dothome.co.kr/library/kakaolink.php?text="+this.na+"&image_url="+this.ka+"&image_width="+this.la+"&image_height="+this.ma+"&button_text="+this.ia+"&button_url="+this.ja);return this.z};x.prototype.addView=function(a){this.H.addView(a);return this};x.prototype.getLayout=function(){return this.H};x.prototype.setGravity=function(a){this.H.setGravity(a);return this};x.prototype.setOrientation=function(a){this.H.setOrientation(a);return this};x.prototype.show=function(a){if(1!==this.H.getOrientation()||"undefined"!==typeof a&&!a)return Z.setTheme(this.H,this.A),this.H;a=new Q(this.A);a.addView(this.H);a=a.show();Z.setTheme(a,this.A);return a};ya.prototype.getEffect=function(){return this.D};ya.prototype.getView=function(){return this.H.getLayout()};ya.prototype.setEffect=function(a){this.D=a;return this};ya.prototype.show=function(){return this.H.show()};Q.prototype.addView=function(a){this.O.addView(a);return this};Q.prototype.getLayout=function(){return this.O};Q.prototype.getTheme=function(){return this.A};Q.prototype.setThumbColor=function(a){this.R.setBackgroundDrawable(new r(a));return this};Q.prototype.setThumbDrawable=function(a){this.R.setBackgroundDrawable(a);return this};Q.prototype.setTrackColor=function(a){this.P.setBackgroundDrawable(new r(a));return this};Q.prototype.setTrackDrawable=function(a){this.P.setBackgroundDrawable(a);return this};Q.prototype.setWidth=function(a){this.L=a;this.O.setLayoutParams(new q.LayoutParams(this.L-6*b,-1));return this};Q.prototype.show=function(){var a=new q(g);a.addView(this.O);a.addView(this.P);a.setLayoutParams(new q.LayoutParams(this.L,-1));Z.setTheme(a,this.A);return a};Ca.prototype=Object.create(T.prototype);Ca.prototype.constructor=Ca;V.LEFT_RIGHT=0;V.RIGHT_LEFT=1;V.prototype=Object.create(T.prototype);V.prototype.constructor=V;m.show=function(a,d){d=d||e.DEFAULT;g.runOnUiThread({run:function(){var c=new G(g);c.setBackgroundDrawable(new r(d.getToast(e.BACKGROUND_COLOR)));c.setPadding(12*b,8*b,12*b,8*b);c.setText(a.toString());c.setTextColor(d.getToast(e.TEXT_COLOR));c.setTextSize(1,14);var h=new Pb(g);h.setView(c);h.show()}})};ia.prototype.dismiss=function(){var a=this;g.runOnUiThread({run:function(){a.S instanceof K&&(a.S.dismiss(),a.S=null)}});return this};ia.prototype.getTheme=function(){return this.A};ia.prototype.getWindow=function(){return this.S};ia.prototype.setFocusable=function(a){this.S.setFocusable(a);return this};ia.prototype.setTheme=function(a){this.A=a;return this};ia.prototype.show=function(){this.S.showAtLocation(ua,z.CENTER,0,0);return this};ja.prototype=Object.create(ia.prototype);ja.prototype.constructor=ja;ja.prototype.getWH=function(){return[this.L,this.M]};ja.prototype.setWH=function(a,b){this.L=a;this.M=b;this.S.setWidth(a);this.S.setHeight(b);return this};da.prototype=Object.create(ia.prototype);da.prototype.constructor=da;Da.prototype=Object.create(da.prototype);Da.prototype.constructor=Da;Da.prototype.show=function(){var a=this;g.runOnUiThread({run:function(){var d=new sa,c=new q(g),e=new K(c,-2,-2);a.S=e;a.T.setOnClickListener(new C.OnClickListener({onClick:function(a){g.runOnUiThread({run:function(){e.dismiss();e=null}})}}));d.setColor(t.rgb(97,97,97));d.setCornerRadius(4*b);c.addView(a.G.show(),280*b,240*b);c.addView(a.T,280*b,60*b);c.setBackgroundDrawable(d);c.setOrientation(1);c.setPadding(24*b,24*b,24*b,24*b);e.setBackgroundDrawable(new r(0));e.showAtLocation(g.getWindow().getDecorView(),z.CENTER,0,0)}})};la.prototype=Object.create(ja.prototype);la.prototype.constructor=la;la.prototype.addView=function(a){this.H.addView(a);return this};la.prototype.setColor=function(a){this.H.setBackgroundDrawable(new r(a));return this};la.prototype.setWH=function(a,d){this.L=a;this.M=d;this.S.setWidth(a+24*b);this.S.setHeight(d+24*b);return this};La.getInstance=function(){if("undefined"===typeof $a){var a=function(){this.A=e.DEFAULT;this.q=!1;this.oa=[];this.pa=0};a.prototype=Object.create(da.prototype);a.prototype.constructor=La;a.prototype.addNotification=function(a,c,b,e){this.oa.push({title:a,text:c,buttonText:b,func:e});this.pa++;return this};a.prototype.dismiss=function(){var a=this.X,c=this.S;new E({run:function(){g.runOnUiThread({run:function(){if(a instanceof q){var c=new rb(0,-200*b,0,0);c.setDuration(500);c.setInterpolator(new Qa);a.startAnimation(c);a=null}}});E.sleep(500);g.runOnUiThread({run:function(){c instanceof K&&(c.dismiss(),c=null)}})}}).start();return this};a.prototype.isRunning=function(){return this.q};a.prototype.show=function(){var a=this,c=a.A,h=a.oa,k=a.pa;g.runOnUiThread({run:function(){var d,f=new rb(-200*b,0,0,0),m=new sa(sa.Orientation.LEFT_RIGHT,[D.BLACK,0]),n=new q(g),t=a.H=new q(g),v=a.X=new q(g),B=a.S=new K(v,208*b,-1);f.setDuration(500);f.setInterpolator(new Qa);n.addView(new Q(c).addView(a.H).setWidth(192*b).show());n.setBackgroundDrawable(new r(c.getNotificationWindow(e.BACKGROUND_COLOR)));for(var A=h.length;A--;){var x=h[A],y=new q(g);y.addView(new l(c).setText(x.title).setTextColor(0<k?c.getNotificationWindow(e.EFFECT_COLOR):c.getNotificationWindow(e.TEXT_COLOR)).setTextSize(18).show());y.addView(new l(c).setText(x.text).setTextSize(12).show());"function"===typeof x.func&&y.addView(new u(c).setEffect(x.func).setText(x.buttonText).setWH(162*b,36*b).show());y.addView(new Ba(c).show());y.setOrientation(1);t.addView(y,-1,-2);0<k&&k--}a.pa=k;t.addView(new l(c).setGravity(z.CENTER).setText("Swipe the edge of the window to the left to close the window").setTextColor(fa.setAlpha(c.getNotificationWindow(e.TEXT_COLOR),160)).setTextSize(10).show());t.setOrientation(1);t.setPadding(4*b,4*b,4*b,4*b);v.addView(n,-1,-1);v.setBackgroundDrawable(m);v.setPadding(0,0,16*b,0);v.setOnTouchListener(new C.OnTouchListener({onTouch:function(c,e){switch(e.getAction()){case w.ACTION_DOWN:d=e.getX();break;case w.ACTION_CANCEL:case w.ACTION_UP:d-e.getX()>16*b&&0<=d&&d<=208*b&&a.dismiss()}return!0}}));v.startAnimation(f);B.showAtLocation(ua,z.CENTER|z.LEFT,0,0)}});return this};a.prototype.start=function(){var a=this;g.runOnUiThread({run:function(){var c;ua.setOnTouchListener(new C.OnTouchListener({onTouch:function(d,e){switch(e.getAction()){case w.ACTION_DOWN:c=e.getX();break;case w.ACTION_CANCEL:case w.ACTION_UP:a.q&&e.getX()-c>16*b&&0<=c&&c<=16*b&&a.show()}return!0}}))}});this.q=!0;return this};a.prototype.stop=function(){this.q=!1;return this};$a=new a}return $a};Ea.prototype=Object.create(da.prototype);Ea.prototype.constructor=Ea;Ea.prototype.setColor=function(a){
this.S.setBackgroundDrawable(new r(a));return this};R.prototype=Object.create(ja.prototype);R.prototype.constructor=R;R.prototype.addLayout=function(a,d){var c=this,h=c.A,f=new pa;f.getView().setId(c.V.length);c.Y.addView(f.setEffect(function(a,b){for(var d=c.V,e=c.W,h=a.getId(),f=0,g=d.length;f<g;f++)d[f].setVisibility(C.GONE),e[f].setChecked(!1);d[h].setVisibility(C.VISIBLE)}).setEffectImage(Ha.setTint(new ca(a),h.getWindow(e.TEXT_COLOR)),h.getWindow(e.EFFECT_COLOR),12*b).setImage(Ha.setTint(new ca(a),h.getWindow(e.TEXT_COLOR)),h.getWindow(e.BACKGROUND_COLOR),12*b).setPadding(0,0,0,0).setWH(60*b,60*b).show());c.V.push(d);c.W.push(f);c.Z.addView(d);return this};R.prototype.dismiss=function(){var a=this,b=a.V;g.runOnUiThread({run:function(){a.S.dismiss();a.S=null;for(var c=0,d=b.length;c<d;c++)b[c].setVisibility(C.GONE);a.V=null}});return this};R.prototype.setColor=function(a){this.aa=a;this.Y.setBackgroundDrawable(new r(a));return this};R.prototype.setWH=function(a,d){this.L=a;this.M=d;this.S.setWidth(a+24*b);this.S.setHeight(d+24*b);return this};R.prototype.show=function(){var a=this.V;this.S.showAtLocation(ua,z.CENTER,0,0);this.W[0].setChecked(!0);for(var b=1,c=a.length;b<c;b++)a[b].setVisibility(C.GONE);return this};H.prototype=Object.create(da.prototype);H.prototype.constructor=H;H.prototype.dismiss=function(){var a=this;g.runOnUiThread({run:function(){a.q=!1;a.S instanceof K&&(a.S.dismiss(),a.S=null)}});return this};H.prototype.setColor=function(a){this.S.setBackgroundDrawable(new r(a));return this};H.prototype.setEffectColor=function(a,b){var c=new sa;c.setColors([a,b]);c.setOrientation(sa.Orientation.LEFT_RIGHT);this._.setBackgroundDrawable(c);this.H.setBackgroundDrawable(new r(b));return this};H.prototype.setText=function(a){this.$.setText(a.toString());return this};H.prototype.setTextColor=function(a){this.$.setTextColor(a);return this};H.prototype.stop=function(){this.q=!1;return this};ka.prototype=Object.create(da.prototype);ka.prototype.constructor=ka;ka.prototype.setColor=function(a){this.aa=a;return this};ka.prototype.setItemXY=function(a,b){this.ca=[a,b];return this};ka.prototype.setRadius=function(a){this.ba=a;return this};ka.prototype.setView=function(a){this.S.setContentView(a);return this};ka.prototype.show=function(){var a=this.ca,b=this.ba,c=ha.createBitmap(qa,ra,ha.Config.ARGB_8888),e=new Sa(c),f=new Ja,c=new ca(c);f.setAntiAlias(!0);f.setColor(this.aa);e.drawPaint(f);f.setXfermode(new Jb(Ya.Mode.CLEAR));e.drawCircle(a[0],a[1],b,f);this.S.setBackgroundDrawable(c);this.S.showAtLocation(ua,z.CENTER,0,0);return this};ea.prototype=Object.create(da.prototype);ea.prototype.constructor=ea;ea.prototype.getDelay=function(){return this.da};ea.prototype.setColor=function(a){this.H.setBackgroundDrawable(new r(a));return this};ea.prototype.setDelay=function(a){this.da=a;return this};ea.prototype.setView=function(a){this.H.addView(a);return this};ea.prototype.show=function(){var a=this,b=new qb(0,1);a.S.showAtLocation(ua,z.BOTTOM|z.RIGHT,0,0);b.setDuration(Math.floor(a.da/4));b.setInterpolator(new Qa);a.H.startAnimation(b);a.qa=new E({run:function(){E.sleep(Math.floor(a.da/2));g.runOnUiThread({run:function(){var b=new qb(1,0);b.setDuration(Math.floor(a.da/4));b.setInterpolator(new Qa);a.H.startAnimation(b)}});E.sleep(Math.floor(a.da/4));g.runOnUiThread({run:function(){a.S.dismiss();a.S=null}})}});a.qa.start();return this};W.prototype=Object.create(ja.prototype);W.prototype.constructor=W;W.prototype.addView=function(a){var d=this.V;if("undefined"===typeof d[0]||3<=d[d.length-1].getChildCount()){var c=Z.getTheme(a)||this.A,f=new V(F.CIRCLE,c);f.getView().setId(d.length);f.setEffect(function(a,b){var c=0;b===V.LEFT_RIGHT?c=a.getId()-1:b===V.RIGHT_LEFT&&(c=a.getId()+1);if(d[c]instanceof q){for(var e=0,f=d.length;e<f;e++)d[e].setVisibility(C.GONE);d[c].setVisibility(C.VISIBLE)}}).setEffectImage(v.createBitmap(n+"ic_swap_horiz.png",24*b,24*b),fa.blendColors([c.getButton(e.EFFECT_COLOR),this.A.getButton(e.EFFECT_COLOR)])).setImage(v.createBitmap(n+"ic_swap_horiz.png",24*b,24*b),fa.blendColors([c.getButton(e.BACKGROUND_COLOR),this.A.getButton(e.BACKGROUND_COLOR)]));this.ha.push(f);c=new q(g);c.addView(a,0);c.addView(new G(g),1,new q.LayoutParams(52*b,52*b));c.addView(f.show(),2);c.removeViewAt(1);c.setOrientation(1);c.setVisibility(C.GONE);this.V.push(c);this.X.addView(c)}else f=Z.getTheme(d[d.length-1].getChildAt(0))||this.A,c=Z.getTheme(a)||this.A,this.ha[this.ha.length-1].setEffectImage(v.createBitmap(n+"ic_swap_horiz.png",24*b,24*b),fa.blendColors([f.getButton(e.EFFECT_COLOR),c.getButton(e.EFFECT_COLOR),this.A.getButton(e.EFFECT_COLOR)])).setImage(v.createBitmap(n+"ic_swap_horiz.png",24*b,24*b),fa.blendColors([f.getButton(e.BACKGROUND_COLOR),c.getButton(e.BACKGROUND_COLOR),this.A.getButton(e.BACKGROUND_COLOR)])),d[d.length-1].addView(a,1);return this};W.prototype.dismiss=function(){var a=this,b=a.V;g.runOnUiThread({run:function(){a.S.dismiss();a.S=null;for(var c=0,d=b.length;c<d;c++)b[c].setVisibility(C.GONE);a.V=null}});return this};W.prototype.getX=function(){return this.fa};W.prototype.getY=function(){return this.ga};W.prototype.setColor=function(a){this.ea.setImage(v.createBitmap(n+"ic_open_with.png",24*b,24*b),a);for(var d=this.ha.length;d--;)this.ha[d].setEffectImage(v.createBitmap(n+"ic_swap_horiz.png",24*b,24*b),a).setImage(v.createBitmap(n+"ic_swap_horiz.png",24*b,24*b),a);return this};W.prototype.show=function(a,b){var c=this.V;this.addView(this.ea.show());c[0].setVisibility(C.VISIBLE);this.S.showAtLocation(ua,z.BOTTOM|z.RIGHT,a||0,b||0);return this};J.getContext=function(){return g};J.getPath=function(){return n};J.getUser=function(){return B};J.getWindow=function(){return ta};J.init=jb;J.loadLibrary=eb;J.design={Bitmap:v,Color:D,ColorUtils:fa,Drawable:Ha,ShadowDrawable:va,Shape:F,SquircleDrawable:Ia,Theme:e};J.internet={NetworkChecker:L,Server:N,getIp:function(){return Va("http://minedev.dothome.co.kr/library/get_ip.php")},readHtml:Va};J.security={Account:f,UserConnection:wa};J.utils={AddonManager:S,File:O,Preference:na,Text:y};J.widget={View:oa,ViewUtils:Z,TextView:l,Button:u,ColorPicker:Ra,Divider:Ba,EditText:A,GridLayout:P,ImageButton:T,ImageToggle:pa,KakaoLink:U,Layout:x,Palette:ya,ScrollView:Q,SensorButton:Ca,SlideButton:V,Toast:m,Window:R};J.window={Window:ia,SizeChangedWindow:ja,SizeFixedWindow:da,ColorPickerWindow:Da,FloatingWindow:la,NotificationWindow:La,PaletteWindow:Ea,PopupWindow:R,ProgressWindow:H,ShowcaseWindow:ka,SplashWindow:ea,VerticalWindow:W};Object.freeze(J);ab.selectLevelHook=function(){Ua=!0;X.set("window_location_x",ta.getX()).set("window_location_y",ta.getY()).save()};ab.leaveGame=function(){Ua=!1;X.set("window_location_x",ta.getX()).set("window_location_y",ta.getY()).save()}})(this,"object"===typeof me.astro?me.astro:me.astro={});me.astro.init();