const _0xeb0f56=_0x2c08;(function(_0x457e57,_0x29dffa){const _0x3763af={_0x5a4583:0x298,_0x215204:0x364,_0x2d6350:0x21a,_0x4090cf:0x258,_0x1f0bb5:0x32c},_0x5d2807=_0x2c08,_0x5cb360=_0x457e57();while(!![]){try{const _0x531fd9=parseInt(_0x5d2807(0x325))/0x1+parseInt(_0x5d2807(_0x3763af._0x5a4583))/0x2+-parseInt(_0x5d2807(0x36e))/0x3*(parseInt(_0x5d2807(0x28a))/0x4)+-parseInt(_0x5d2807(_0x3763af._0x215204))/0x5+-parseInt(_0x5d2807(0x279))/0x6+-parseInt(_0x5d2807(_0x3763af._0x2d6350))/0x7*(parseInt(_0x5d2807(_0x3763af._0x4090cf))/0x8)+parseInt(_0x5d2807(0x261))/0x9*(parseInt(_0x5d2807(_0x3763af._0x1f0bb5))/0xa);if(_0x531fd9===_0x29dffa)break;else _0x5cb360['push'](_0x5cb360['shift']());}catch(_0x172569){_0x5cb360['push'](_0x5cb360['shift']());}}}(_0x4da6,0x8a8ba));import _0x320715 from'node-fetch';import _0x2cba66 from'image-size';import _0x43967c from'fs';import _0x5bfd20 from'../../../lib/config/config.js';import{getdsc}from'../../../plugins/earth-k-plugin/resources/getecy.js';import _0x1540d2 from'../../../lib/puppeteer/puppeteer.js';let data1={};import{createRequire}from'module';import _0x53c071 from'yaml';const require=createRequire(import.meta[_0xeb0f56(0x2ec)]);let ysct,mf,mfkg=0x0,tpjc='',jsss=0x0,ml=process[_0xeb0f56(0x20c)]();var http=require(_0xeb0f56(0x1dd));import _0x35d0d4 from'lodash';let yushekg=0x0,kg=0x0,guimo=0xa,kg2=0x0,tsckg=0x0,ecydtkg=0x0,wdecykg=0x0,mfid='',res4,htm='',htm2='',res5,res,zr=0x0,changdu=0x200,kuandu=0x200,chang,kuan,msg2,tpjg,timeout=0x7530,isch=0x1,cd=0x0,t,zhuren,startTimeMS,iscd=0x0,my,dz,sj1,sj2,shuju,zt=0x0,gjc2,sc=0x0,bushu=0x1c,id='',xsd=0.5,nr,ycqx,jz=0.2,dtkg=0x0,ss=0x1,txtdz='https://www.tukuai.one/ht.php',imgdz=_0xeb0f56(0x2e0),Path,ys=[],moxing='Euler\x20a',isdl=0x0,iscanshu=0x1,ishuifu=!![],HttpsProxyAgent='',changkuan=0x0,jhft=0x1,chicun=0x0,sesequn=[],blackqun=[],blackqq=[],dqjk=0x0,beishu=0x6,pc=_0xeb0f56(0x2c3);function _0x4da6(){const _0x59cb6a=['{{masterpiece}},Sucrose','当前屏蔽词有:','{{masterpiece}},keqing','开关是','#菲化','member','/sdapi/v1/txt2img','4371930oSaUci','#开启词条回复','{{masterpiece}},Nilou','tga','#归终','application/x-www-form-urlencoded','#删除预设','bot','^#填写ak(.*)|#填写sk(.*)','group','height','0_0,\x20(o)_(o),\x20+_+,\x20+_-,\x20._.,\x20_,\x20<|>_<|>,\x20=_=,\x20>_<,\x203_3,\x206_9,\x20>_o,\x20@_@,\x20^_^,\x20o_o,\x20u_u,\x20x_x,\x20|_|,\x20||_||','substring','#手办','split','get','http://www.tukuai.one/wj.php','2476JavKVH','trim','gjc','\x0a相似度:','seq','kqdl','1kporpll8be','img','此群已经被封禁!','wdecy','已开启画图撤回,撤回时间为30秒','好的,我开始画图了,请稍等哦','#新增接口','#关闭大尺寸','1981422Bwxiaq','新增屏蔽词成功','json','{{masterpiece}},Ganyu','friend','https://api.novelai.net/ai/generate-image\x20','^#新增屏蔽词(.*)$|#查看屏蔽词$|#删除屏蔽词$|#开启默认屏蔽词(.*)$','[\x5cu4E00-\x5cu9FFF]+','新增预设成功','当前相似度','/resources/ys.json','#开启代理','#开启随机图','message_id','^#绘个图(.*)$|#预设(.*)$','DPM++\x202M','ckscys','#查看预设词条','https://www.tukuai.one//qx.php?tk=','end','Euler','已开启鉴黄发图','Euler\x20a','跳过创建','reply','{{masterpiece}},Yelan','match','#土块画图封群','POST','http://www.tukuai.one/ckmf.php','imgs','你的输入方式不对,例如:#新增接口本地我的\x20http://127.0.0.1:7860,本地我的为接口名称,空格后为地址','source','#取消画图','./plugins/earth-k-plugin/resources/aiht/ml.html','&qq=','image=','#开启参数显示','(ink\u00a0wash\u00a0painting:1.1)\x20,sketchr','user_id','blackqq','已设置冷却时间为','jhft','lowres,nude,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry,\x20owres,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry\x20(worst\x20quality,\x20low\x20quality:1.4),\x20lowres,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry','#妮化','isGroup','{{{masterpiece}}},{{genshin\x20kokomi}},best\x20quality,illustration,1girl,\x20small\x20breast,\x20sailor\x20dress,wet\x20clothes,\x20bikini,\x20sideboob,white\x20shirt,','error','#开启默认屏蔽词1','#以图生草降噪','pop','dizhi','你不可以生草哦','best\x20quality','昵称:','#离谱','好吧,那就一起来吧!','#派化','https://api.sdgou.cc/api/fanyi/?msg=','{{masterpiece}},Hutao','#预设','#开启长图','已关闭鉴黄发图','https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=','{{masterpiece}},Kamisato\x20AyakaB','文件写入成功!','DPM++\x202S\x20a\x20Karras','开启随机图成功','已关闭参数显示','tscys','ignore','https://aip.baidubce.com/rest/2.0/solution/v1/img_censor/v2/user_defined?access_token=','https://www.tukuai.one/ytsc.php','已经取消','#嘿嘿','{{masterpiece}},LumineA','访问成功了','https://aip.baidubce.com/rest/2.0/image-process/v1/image_quality_enhance?access_token=','getTime','access_token','Mozilla/5.0\x20(Windows\x20NT\x206.1;\x20WOW64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/86.0.4240.198\x20Safari/537.36','你好号主','ysgn','已经切换到','url','{{masterpiece}},Paimon','\x0a步数:','规模已设置为','#查看魔法','Resize\x20and\x20fill','wet\x20nsfw\x20nude','\x20\x20\x20\x20\x20\x20\x20\x20|seed:','#土块鉴黄关闭','丢进黑名单群了','#纱雾化','post','scscys','当前降噪','群中关闭,请注意身体哦','&spec=5','采样已设置为Euler','#切换接口','{{masterpiece}},Xiao','已关闭画图撤回','#刻化','我在cd中,还有','#仅我可画','已激活密钥,号主为','nickname','^#二次元的他(.*)','HLg91cjEH0yRfZjL4TpmLOKAFukAN1ou','Latent','default','可以访问','data','recallMsg','text','30秒还未发图,以图生草已取消','qvht','tsc','请发送要查看魔法的图片,0.0','./config/config/other.yaml','\x0a规模:','base64Img','http://0.0.0.0:0','#土块鉴黄开启','填写sk成功','huatu3','已开启词条回复','不合规','floor','utf-8','./resources/3.jpg','已经切换到土块接口','#夜化','R_OK','name','#甘化','#关闭参数显示','msg','None','780191lHWGym','/sdapi/v1/img2img','我知道你要干嘛!注意身体!','type','#呜呜','已关闭代理','findIndex','11105610MlCfnT','采样已设置为DDIM','huatu2','正在画图中,我知道你很急,但是你先别急。','已激活该密钥','已开启参数显示','ckmx','DPM++\x20SDE\x20Karras','采样已设置为DPM++\x20SDE\x20Karras','对不起,不支持私聊','{{masterpiece}},Raiden\x20Ei','#魈化','服务器正忙,请稍后','replace','stringify','_preprocess','#关闭鉴黄发图','很抱歉,你的密钥错误。','image','土块AI画图','#云化','szgm','已经开启默认屏蔽词2','szmx','#生气','dqjk','length','服务器正忙,请稍后','base64','#雷化','qhjk','pbc','规模不在合理范围内,3-12为合理范围','{{masterpiece}},Diana','你小子已经被封禁画图,请找主人解封。','szbs','card','readFileSync','#祷告','isPrivate','\x20\x0a步数:','pickUser','wd14-vit','#土块画图冷却','成功了!','是英文','采样已设置为DPM++\x202S\x20a','#荧化','#所有人可画','https://www.tukuai.one//diqiu.php?tk=','#开启宽图','采样已设置为DPM++\x202S\x20a\x20Karras','toString','sendMsg','\x0a降噪:','#开启鉴黄发图','970730zkjZyd','删除图生草预设成功','^#土块画图封群|^#土块画图解封群','ecydt','123','{{masterpiece}},Sangonomiya\x20KokomiA','access','round','#新增预设','#开启默认屏蔽词2','2283mjiLdi','你还没有配置百度鉴黄api,看教程:https://www.wolai.com/fFYRjryGk8ktsVvTWjgK5i','包含中文','#填写sk','#寄化','又画涩图!你画涩图我已经发给主人了,别再画了!','yus','^#土块画图采样(.*)|^#查看所有采样','application/json','删除屏蔽词成功','test','对不起,你不可画哦','./resources/ys.json','txak','/resources/3.jpg','#鹤化','{{masterpiece}},ShenheA','http','采样不在合理范围内,1-9为合理范围','#库库','#查看所有采样','好的,权限已经关闭,只有你能画了','data:image/jpeg;base64,','catch','masterQQ','#宵化','开启宽图成功','没有这个预设哦','^#新增生草预设(.*)','已开启画图冷却,冷却时间为30秒','cckg','iscd','{{masterpiece}},Yunjin','#嚯嚯','写入文件错误','报告主人\x0a','&client_secret=','秒可画','已取消当前画图','shuju','(black\x20and\x20white:1.1),sketch,wet','blackqun','screenshot','^#土块画图规模(.*)','./resources/yb.png','kmf','你不是主人,不能新增','开启长图成功','^#以图生草(.*)$|(.*)','他已经黑名单里了','{{masterpiece}},Klee','该密钥已被激活','从黑名单里放出来了','已经开启默认屏蔽词1','#查看画图设置','没有访问成功','#查看接口','水手少女','Bearer','sesequn','writeFile','includes','wet','#龟化','cwd','密钥不存在','log','#土块画图解禁','正在生草中,我知道你很急,但是你先别急。','images','http://q2.qlogo.cn/headimg_dl?dst_uin=','开启大尺寸成功','pickFriend','正在生草中,我知道你很急,先别急','./resources/th2.txt','width','{{masterpiece}},Izumi\x20Sagiri(eromanga\x20sensei)','code','7fnLMNX','你还没有填写密钥哦。','parse','./resources/tscys.yaml','丢进黑名单了','/resources/','data:image/png;base64,','二次元的','#土块画图冷却开启','正在查看魔法,请稍后啊,0v0','群号:','Seed','#查看屏蔽词','{{masterpiece}},YoimiyaA','utf8','caiyang','[name].[output_extension]','预设包含中文','删除预设成功','已设置撤回时间为','#嗯哼','getChatHistory','tags','readFile','写入文件成功','#以图生草相似度','#填写ak','0yzsdmhe9br9','#然化','#以图生草','message','isch','DDIM','random','他不在黑名单里!','新增图生草预设成功','.yaml','步数不在合理范围内,28以下为合理范围','开启代理成功','该群已经被禁止画图。','splice','https://www.tukuai.one/wj.php','uin','#土块画图撤回开启','^#取消画图$|^#所有人可画$|^#仅我可画$|^#土块画图撤回(.*)$|^#土块画图冷却(.*)$|^#土块鉴黄开启|^#土块鉴黄关闭','模型:','#查看预设','#可化','^#填写密钥(.*)','这个密钥已经被激活了,你想干嘛!','./plugins/earth-k-plugin/config/config.yaml','{{masterpiece}},Suspenders,\x20center\x20split,\x20(basketball:1.2),\x20(chicken:1.5)','Steps','已经将','constants','tianxie','访问失败了,QAQ,TvT','在画涩图被我抓到了','./resources/ht.png','.json','chicun','black','7360968fuJCwU','^#我的二次元','concat','^#切换接口(.*)|^#新增接口(.*)|^#查看接口|^#删除接口(.*)','{{masterpiece}},','{{masterpiece}},Fischl','timeout','^#查看所有预设$|#新增预设(.*)|(.*)','wet,sweating,heart_shaped_pupils,hot,breathing,cum,A\x20few\x20tears\x20in\x20the\x20eyes,\x20wide\x20open\x20eyes,\x20open\x20mouth','9xboyEk','^#开启代理|^#关闭代理|^#开启参数显示|^#关闭参数显示|^#开启词条回复|^#关闭词条回复','#新增屏蔽词','isMaster','采样已设置为Heun','./plugins/earth-k-plugin/resources/aiht/jiekou.yaml','group_id','删除接口','push','好的,已在','{{masterpiece}},ElysiaA','\x20\x20\x20|规模:','从黑名单群里放出来了','writeFileSync','lowres,nude,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry,\x20owres,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry','DPM++\x202M\x20Karras','^#看魔法(.*)'];_0x4da6=function(){return _0x59cb6a;};return _0x4da6();}export class aiht extends plugin{0x3;constructor(){const _0x391eec={_0x23b4a5:0x33f,_0x3b2e08:0x2a6,_0x29b568:0x246,_0x43b05f:0x1fc,_0x2c3d3c:0x2ea,_0xb07ec7:0x1f7,_0x5d218b:0x1d3,_0x1e2116:0x343,_0x568d3a:0x34f,_0x29d420:0x262,_0x540d19:0x24a,_0x13bd8d:0x367,_0x837d7f:0x281,_0x4e8256:0x1f9,_0x488358:0x25b,_0x556dd7:0x366,_0x42515d:0x2f8},_0x13101c=_0xeb0f56;super({'name':_0x13101c(_0x391eec._0x23b4a5),'dsc':_0x13101c(_0x391eec._0x23b4a5),'event':'message','priority':0x190,'rule':[{'reg':_0x13101c(_0x391eec._0x3b2e08),'fnc':_0x13101c(0x32e)},{'reg':_0x13101c(_0x391eec._0x29b568),'fnc':_0x13101c(0x30e)},{'reg':_0x13101c(0x29e),'fnc':_0x13101c(0x34b)},{'reg':_0x13101c(_0x391eec._0x43b05f),'fnc':_0x13101c(0x317),'log':![]},{'reg':_0x13101c(0x25f),'fnc':_0x13101c(_0x391eec._0x2c3d3c),'log':![]},{'reg':_0x13101c(_0x391eec._0xb07ec7),'fnc':_0x13101c(0x341)},{'reg':_0x13101c(_0x391eec._0x5d218b),'fnc':_0x13101c(_0x391eec._0x1e2116)},{'reg':'^#土块画图步数(.*)|^#查看画图设置','fnc':_0x13101c(_0x391eec._0x568d3a)},{'reg':_0x13101c(_0x391eec._0x29d420),'fnc':'kqdl'},{'reg':_0x13101c(_0x391eec._0x540d19),'fnc':'tianxie'},{'reg':'^#查看模型','fnc':_0x13101c(0x332)},{'reg':_0x13101c(0x259),'fnc':_0x13101c(0x293)},{'reg':_0x13101c(0x305),'fnc':_0x13101c(_0x391eec._0x13bd8d)},{'reg':'^#图生草(.*)|#嗯哼(.*)|#离谱(.*)|#嘿嘿(.*)|#生气(.*)|#库库(.*)|#嚯嚯(.*)|#呜呜(.*)|^#(.*)化$|#手办(.*)|#归终(.*)','fnc':'tsc'},{'reg':_0x13101c(_0x391eec._0x837d7f),'fnc':_0x13101c(0x1d9)},{'reg':_0x13101c(0x271),'fnc':_0x13101c(_0x391eec._0x4e8256)},{'reg':_0x13101c(_0x391eec._0x488358),'fnc':_0x13101c(0x34a)},{'reg':'^#开启大尺寸|^#关闭大尺寸|^#开启长图|^#开启宽图|^#开启随机图','fnc':_0x13101c(0x1ea)},{'reg':'^#关闭鉴黄发图|#开启鉴黄发图','fnc':_0x13101c(0x2c2)},{'reg':'^#土块画图封禁|^#土块画图解禁','fnc':_0x13101c(0x257)},{'reg':_0x13101c(_0x391eec._0x556dd7),'fnc':_0x13101c(0x1f5)},{'reg':_0x13101c(0x1e8),'fnc':'xzscys'},{'reg':'^#查看生草预设(.*)','fnc':_0x13101c(0x2a8)},{'reg':'^#删除生草预设(.*)','fnc':_0x13101c(_0x391eec._0x42515d)}]});}async[_0xeb0f56(0x2f8)](_0x49e1ee){const _0x4df066={_0x2df1ea:0x2b0,_0x44b1d9:0x21d,_0x22698b:0x228,_0x34dcf8:0x323,_0x40c03b:0x339},_0x59d9c2=_0xeb0f56;if(!_0x49e1ee[_0x59d9c2(0x264)]){_0x49e1ee[_0x59d9c2(_0x4df066._0x2df1ea)]('你不是主人,不能乱删!');return;}let _0x3537c9=_0x53c071['parse'](_0x43967c[_0x59d9c2(0x351)](_0x59d9c2(_0x4df066._0x44b1d9),_0x59d9c2(_0x4df066._0x22698b))),_0x568828=_0x49e1ee[_0x59d9c2(_0x4df066._0x34dcf8)][_0x59d9c2(_0x4df066._0x40c03b)](/#删除生草预设/g,'')[_0x59d9c2(0x28b)]();_0x568828=Number(_0x568828)-0x1,_0x3537c9[_0x59d9c2(0x1d2)][_0x59d9c2(0x242)](_0x568828,0x1),_0x49e1ee[_0x59d9c2(0x2b0)](_0x59d9c2(0x365)),_0x43967c[_0x59d9c2(0x26e)]('./resources/tscys.yaml',_0x53c071[_0x59d9c2(0x33a)](_0x3537c9));}async[_0xeb0f56(0x2a8)](_0x5ac78f){const _0x33aaa={_0x1d9a49:0x21c,_0x2134c8:0x228,_0x1dbeb8:0x1d2,_0x5e30c0:0x2ba,_0x2b8514:0x1f6},_0x37453b=_0xeb0f56;let _0xd4a201=_0x53c071[_0x37453b(_0x33aaa._0x1d9a49)](_0x43967c['readFileSync'](_0x37453b(0x21d),_0x37453b(_0x33aaa._0x2134c8))),_0x12b21d=[];for(let _0x10da9a=0x0;_0x10da9a<_0xd4a201[_0x37453b(0x1d2)][_0x37453b(0x346)];_0x10da9a++){_0x12b21d['push'](_0xd4a201[_0x37453b(_0x33aaa._0x1dbeb8)][_0x10da9a]['mc']);}data1={'tplFile':_0x37453b(_0x33aaa._0x5e30c0),'dz':ml,'lb':_0x12b21d,'qsid':0x0};let _0x1be571=await _0x1540d2[_0x37453b(_0x33aaa._0x2b8514)]('123',{...data1});_0x5ac78f[_0x37453b(0x2b0)](_0x1be571);}async['xzscys'](_0x2514df){const _0x556f3d={_0x31271c:0x264,_0x53d01d:0x2b0,_0x1fc6f8:0x21f,_0x458d82:0x2dd,_0x27ea1f:0x21d,_0x5ced87:0x36a,_0x5984dc:0x360,_0x15be29:0x31f,_0x102014:0x323,_0x471974:0x339,_0x4c8460:0x346,_0xa63065:0x228,_0xce0fae:0x26e,_0x59bf0e:0x33a},_0x2d98e2={_0x34d685:0x26e,_0x2348e5:0x20e},_0x54678a=_0xeb0f56;if(!_0x2514df[_0x54678a(_0x556f3d._0x31271c)]){_0x2514df[_0x54678a(_0x556f3d._0x53d01d)](_0x54678a(0x1fa));return;}let _0x55aed7=ml+_0x54678a(_0x556f3d._0x1fc6f8)+_0x54678a(_0x556f3d._0x458d82)+_0x54678a(0x23e),_0x516855=_0x54678a(_0x556f3d._0x27ea1f);_0x43967c[_0x54678a(_0x556f3d._0x5ced87)](_0x516855[_0x54678a(_0x556f3d._0x5984dc)](),_0x43967c[_0x54678a(0x250)][_0x54678a(_0x556f3d._0x15be29)],_0xaaecd2=>{const _0x64ec73=_0x54678a;if(_0xaaecd2){let _0x14374a={'yus':[{'mc':'高达','tga':'gundam'}]};_0x43967c[_0x64ec73(_0x2d98e2._0x34d685)](_0x55aed7,_0x53c071[_0x64ec73(0x33a)](_0x14374a));}else console[_0x64ec73(_0x2d98e2._0x2348e5)](_0x2514df[_0x64ec73(0x2bf)]['toString']()+'跳过创建');}),await sleep(0x1f4);let _0x2b83dc=_0x2514df[_0x54678a(_0x556f3d._0x102014)][_0x54678a(_0x556f3d._0x471974)](/#新增生草预设/g,'')[_0x54678a(0x28b)](),_0x33840e=_0x2b83dc['split']('+');if(_0x33840e[_0x54678a(_0x556f3d._0x4c8460)]!=0x2){_0x2514df['reply']('你输入的不合规范,中间请用+连接');return;}let _0x5aee51=_0x53c071['parse'](_0x43967c[_0x54678a(0x351)](_0x54678a(0x21d),_0x54678a(_0x556f3d._0xa63065)));_0x5aee51['yus'][_0x54678a(0x269)]({'mc':_0x33840e[0x0],'tga':'{{masterpiece}}'+_0x33840e[0x1]}),_0x2514df[_0x54678a(_0x556f3d._0x53d01d)](_0x54678a(0x23d)),_0x43967c[_0x54678a(_0x556f3d._0xce0fae)](_0x55aed7,_0x53c071[_0x54678a(_0x556f3d._0x59bf0e)](_0x5aee51)),console[_0x54678a(0x20e)](_0x33840e);}async['blackqun'](_0x3d4d05){const _0x2d5444={_0xa6cd16:0x351,_0x3f751c:0x24c,_0x274e30:0x1f5,_0x5cd3f5:0x2b0,_0x2fcd75:0x292,_0x7b203d:0x267,_0x5a30f7:0x2b0,_0x202bbe:0x2f5,_0x314c1f:0x26d,_0x217184:0x26e},_0x3cbf28=_0xeb0f56;let _0x54d183=_0x53c071[_0x3cbf28(0x21c)](_0x43967c[_0x3cbf28(_0x2d5444._0xa6cd16)](_0x3cbf28(_0x2d5444._0x3f751c),'utf8'));if(_0x3d4d05[_0x3cbf28(0x323)]==_0x3cbf28(0x2b3)&_0x3d4d05[_0x3cbf28(0x264)]){let _0x91ae61=_0x54d183[_0x3cbf28(_0x2d5444._0x274e30)][_0x3cbf28(0x32b)](_0x2f5d24=>_0x2f5d24==_0x3d4d05['group_id']);if(_0x91ae61!=-0x1){_0x3d4d05[_0x3cbf28(_0x2d5444._0x5cd3f5)](_0x3cbf28(_0x2d5444._0x2fcd75));return;}_0x54d183[_0x3cbf28(_0x2d5444._0x274e30)][_0x3cbf28(0x269)](_0x3d4d05[_0x3cbf28(_0x2d5444._0x7b203d)]),_0x3d4d05[_0x3cbf28(_0x2d5444._0x5a30f7)]([_0x3cbf28(0x24f),String(_0x3d4d05[_0x3cbf28(_0x2d5444._0x7b203d)]),_0x3cbf28(_0x2d5444._0x202bbe)]);}if(_0x3d4d05[_0x3cbf28(0x323)]=='#土块画图解封群'&_0x3d4d05['isMaster']){let _0x280f92=_0x54d183[_0x3cbf28(0x1f5)]['findIndex'](_0x2ed7ba=>_0x2ed7ba==_0x3d4d05[_0x3cbf28(0x267)]);if(_0x280f92==-0x1){_0x3d4d05['reply']('此群没有被封禁!');return;}_0x54d183[_0x3cbf28(0x1f5)][_0x3cbf28(0x242)](_0x280f92,0x1),_0x3d4d05['reply'](['已经将',String(_0x3d4d05['group_id']),_0x3cbf28(_0x2d5444._0x314c1f)]);}_0x43967c[_0x3cbf28(_0x2d5444._0x217184)]('./plugins/earth-k-plugin/config/config.yaml',_0x53c071['stringify'](_0x54d183));}async[_0xeb0f56(0x257)](_0x4c70a7){const _0xcbc890={_0x19a2f9:0x21c,_0x522f2f:0x2c0,_0x5607c8:0x24f,_0x28075b:0x323,_0x934080:0x20f,_0x30c7b5:0x28b,_0x3e1283:0x2c0,_0xc6a154:0x2b0,_0xafbfce:0x242,_0x2902fd:0x200,_0x54e77b:0x33a},_0x2100f7=_0xeb0f56;let _0x5bb844=_0x53c071[_0x2100f7(_0xcbc890._0x19a2f9)](_0x43967c['readFileSync'](_0x2100f7(0x24c),_0x2100f7(0x228)));if(_0x4c70a7['msg']=='#土块画图封禁'&_0x4c70a7[_0x2100f7(0x264)]){let _0x167d94=_0x4c70a7['at'],_0x14b79f=_0x5bb844['blackqq'][_0x2100f7(0x32b)](_0x250039=>_0x250039==_0x167d94);if(_0x14b79f!=-0x1){_0x4c70a7['reply'](_0x2100f7(0x1fd));return;}_0x4c70a7['at']==undefined&&(_0x167d94=_0x4c70a7[_0x2100f7(0x323)][_0x2100f7(0x339)](/#土块画图封禁/g,'')[_0x2100f7(0x28b)]()),_0x5bb844[_0x2100f7(_0xcbc890._0x522f2f)]['push'](_0x167d94),_0x4c70a7['reply']([_0x2100f7(_0xcbc890._0x5607c8),String(_0x167d94),_0x2100f7(0x21e)]);}if(_0x4c70a7[_0x2100f7(_0xcbc890._0x28075b)]==_0x2100f7(_0xcbc890._0x934080)&_0x4c70a7['isMaster']){let _0xe8d2d=_0x4c70a7['at'];_0x4c70a7['at']==undefined&&(_0xe8d2d=_0x4c70a7[_0x2100f7(_0xcbc890._0x28075b)]['replace'](/#土块画图解禁/g,'')[_0x2100f7(_0xcbc890._0x30c7b5)]());let _0x25ec3b=_0x5bb844[_0x2100f7(_0xcbc890._0x3e1283)]['findIndex'](_0x2761da=>_0x2761da==_0xe8d2d);if(_0x25ec3b==-0x1){_0x4c70a7[_0x2100f7(_0xcbc890._0xc6a154)](_0x2100f7(0x23c));return;}_0x5bb844[_0x2100f7(_0xcbc890._0x3e1283)][_0x2100f7(_0xcbc890._0xafbfce)](_0x25ec3b,0x1),_0x4c70a7[_0x2100f7(0x2b0)]([_0x2100f7(0x24f),String(_0xe8d2d),_0x2100f7(_0xcbc890._0x2902fd)]);}_0x43967c[_0x2100f7(0x26e)](_0x2100f7(0x24c),_0x53c071[_0x2100f7(_0xcbc890._0x54e77b)](_0x5bb844));}async['jhft'](_0x1e1df5){const _0x15b01e={_0x567e58:0x21c,_0x25d512:0x351,_0x4f4500:0x24c,_0x537fc6:0x323,_0x50c6da:0x2c2,_0x4679f3:0x24c,_0x5a8fb1:0x33a,_0x5a45d7:0x2b0},_0x571150=_0xeb0f56;let _0x234a62=_0x53c071[_0x571150(_0x15b01e._0x567e58)](_0x43967c[_0x571150(_0x15b01e._0x25d512)](_0x571150(_0x15b01e._0x4f4500),_0x571150(0x228)));_0x1e1df5[_0x571150(_0x15b01e._0x537fc6)]==_0x571150(0x363)&_0x1e1df5['isMaster']&&(jhft=0x1,_0x234a62[_0x571150(_0x15b01e._0x50c6da)]=0x1,_0x43967c[_0x571150(0x26e)](_0x571150(0x24c),_0x53c071[_0x571150(0x33a)](_0x234a62)),_0x1e1df5[_0x571150(0x2b0)](_0x571150(0x2ad))),_0x1e1df5['msg']==_0x571150(0x33c)&_0x1e1df5['isMaster']&&(jhft=0x0,_0x234a62[_0x571150(_0x15b01e._0x50c6da)]=0x0,_0x43967c['writeFileSync'](_0x571150(_0x15b01e._0x4679f3),_0x53c071[_0x571150(_0x15b01e._0x5a8fb1)](_0x234a62)),_0x1e1df5[_0x571150(_0x15b01e._0x5a45d7)](_0x571150(0x2d6)));}async['cckg'](_0x5631bb){const _0x4b9913={_0x18e4e4:0x21c,_0x23ab06:0x351,_0x1b2366:0x24c,_0x5f2b45:0x323,_0x212912:0x2b0,_0x582c09:0x323,_0x54be54:0x2a4,_0x62f1e5:0x2b0,_0x5d1dcb:0x2db,_0x54c8d7:0x264,_0x5e5090:0x213},_0xd15e2f=_0xeb0f56;let _0x3eabdc=_0x53c071[_0xd15e2f(_0x4b9913._0x18e4e4)](_0x43967c[_0xd15e2f(_0x4b9913._0x23ab06)](_0xd15e2f(_0x4b9913._0x1b2366),'utf8'));_0x5631bb[_0xd15e2f(_0x4b9913._0x5f2b45)]==_0xd15e2f(0x2d5)&&(changkuan=0x1,_0x5631bb[_0xd15e2f(0x2b0)]('开启长图成功')),_0x5631bb[_0xd15e2f(0x323)]=='#开启长图'&&(changkuan=0x1,_0x5631bb[_0xd15e2f(_0x4b9913._0x212912)](_0xd15e2f(0x1fb))),_0x5631bb['msg']==_0xd15e2f(0x35e)&&(changkuan=0x2,_0x5631bb[_0xd15e2f(0x2b0)](_0xd15e2f(0x1e6))),_0x5631bb[_0xd15e2f(_0x4b9913._0x582c09)]==_0xd15e2f(_0x4b9913._0x54be54)&&(changkuan=0x0,_0x5631bb[_0xd15e2f(_0x4b9913._0x62f1e5)](_0xd15e2f(_0x4b9913._0x5d1dcb))),_0x5631bb[_0xd15e2f(0x323)]=='#开启大尺寸'&_0x5631bb[_0xd15e2f(_0x4b9913._0x54c8d7)]&&(chicun=0x1,_0x5631bb[_0xd15e2f(0x2b0)](_0xd15e2f(_0x4b9913._0x5e5090))),_0x5631bb[_0xd15e2f(0x323)]==_0xd15e2f(0x297)&_0x5631bb[_0xd15e2f(0x264)]&&(chicun=0x0,_0x5631bb['reply']('关闭大尺寸成功')),_0x3eabdc['chicun']=chicun,_0x43967c['writeFileSync'](_0xd15e2f(_0x4b9913._0x1b2366),_0x53c071[_0xd15e2f(0x33a)](_0x3eabdc));}async[_0xeb0f56(0x34a)](_0x2c9902){const _0x2ec182={_0x6abe57:0x228,_0x1e7712:0x209,_0xef5828:0x264,_0xf64e54:0x21c,_0xd58d2f:0x339,_0x36b3f0:0x28b,_0x4eb506:0x346,_0x458bf9:0x269,_0x36dd61:0x2cb,_0x466127:0x26e,_0x2ed34b:0x33a,_0x31dc85:0x2cb,_0x5a1473:0x323,_0x58d7c1:0x2fd,_0x2adca9:0x266,_0x3c9025:0x323,_0x2cb202:0x28b,_0x21cead:0x2cb,_0x126731:0x242},_0x4f8cba=_0xeb0f56;let _0x215148=_0x53c071[_0x4f8cba(0x21c)](_0x43967c[_0x4f8cba(0x351)]('./plugins/earth-k-plugin/resources/aiht/jiekou.yaml',_0x4f8cba(_0x2ec182._0x6abe57)));if(_0x2c9902[_0x4f8cba(0x323)][_0x4f8cba(_0x2ec182._0x1e7712)](_0x4f8cba(0x296))&_0x2c9902[_0x4f8cba(_0x2ec182._0xef5828)]){let _0x50357d=[],_0xf7ce77=_0x53c071[_0x4f8cba(_0x2ec182._0xf64e54)](_0x43967c[_0x4f8cba(0x351)](_0x4f8cba(0x266),_0x4f8cba(_0x2ec182._0x6abe57)));_0x50357d=_0xf7ce77[_0x4f8cba(0x2cb)],console['log'](_0xf7ce77);let _0x1dd060=_0x2c9902['msg'][_0x4f8cba(_0x2ec182._0xd58d2f)](/#新增接口/g,'')['trim']();_0x1dd060=_0x1dd060[_0x4f8cba(_0x2ec182._0xd58d2f)](/,/g,'\x20')[_0x4f8cba(_0x2ec182._0x36b3f0)](),_0x1dd060=_0x1dd060[_0x4f8cba(0x339)](/,/g,'\x20')['trim']();let _0xa49194=_0x1dd060['split']('\x20');if(_0xa49194[_0x4f8cba(_0x2ec182._0x4eb506)]<0x2){_0x2c9902[_0x4f8cba(0x2b0)](_0x4f8cba(0x2b7));return;}_0x50357d==null&&(_0x50357d=[]),_0x50357d[_0x4f8cba(_0x2ec182._0x458bf9)]({'mc':_0xa49194[0x0],'jk':_0xa49194[0x1]}),_0xf7ce77[_0x4f8cba(_0x2ec182._0x36dd61)]=_0x50357d,console[_0x4f8cba(0x20e)](_0xf7ce77),_0x43967c[_0x4f8cba(_0x2ec182._0x466127)](_0x4f8cba(0x266),_0x53c071[_0x4f8cba(_0x2ec182._0x2ed34b)](_0xf7ce77)),_0x2c9902[_0x4f8cba(0x2b0)](['新增接口',_0xa49194[0x0],'成功']);}if(_0x2c9902[_0x4f8cba(0x323)]==_0x4f8cba(0x204)&_0x2c9902['isMaster']){let _0x3e1f97='';console[_0x4f8cba(0x20e)](_0x215148[_0x4f8cba(_0x2ec182._0x36dd61)]);for(let _0x4cf6b0=0x0;_0x4cf6b0<_0x215148[_0x4f8cba(0x2cb)][_0x4f8cba(0x346)];_0x4cf6b0++){_0x3e1f97=_0x3e1f97+String(_0x4cf6b0+0x1)+'.'+_0x215148[_0x4f8cba(_0x2ec182._0x31dc85)][_0x4cf6b0]['mc']+'\x0a';}_0x2c9902['reply'](_0x3e1f97);}if(_0x2c9902[_0x4f8cba(_0x2ec182._0x5a1473)][_0x4f8cba(0x209)](_0x4f8cba(_0x2ec182._0x58d7c1))&_0x2c9902[_0x4f8cba(0x264)]){let _0x49e8ab=_0x2c9902['msg']['replace'](/#切换接口/g,'')[_0x4f8cba(_0x2ec182._0x36b3f0)]();_0x49e8ab=Number(_0x49e8ab),_0x49e8ab!=0x0?(txtdz=_0x215148['dizhi'][_0x49e8ab-0x1]['jk']+_0x4f8cba(0x278),imgdz=_0x215148[_0x4f8cba(0x2cb)][_0x49e8ab-0x1]['jk']+'/sdapi/v1/img2img',_0x2c9902['reply']([_0x4f8cba(0x2eb),_0x215148[_0x4f8cba(_0x2ec182._0x36dd61)][_0x49e8ab-0x1]['mc']]),_0x215148['dqjk']=_0x49e8ab,_0x43967c['writeFileSync'](_0x4f8cba(_0x2ec182._0x2adca9),_0x53c071[_0x4f8cba(_0x2ec182._0x2ed34b)](_0x215148))):(_0x2c9902[_0x4f8cba(0x2b0)](_0x4f8cba(0x31d)),_0x215148[_0x4f8cba(0x345)]=0x0,_0x43967c[_0x4f8cba(0x26e)](_0x4f8cba(0x266),_0x53c071[_0x4f8cba(_0x2ec182._0x2ed34b)](_0x215148)));}if(_0x2c9902[_0x4f8cba(0x323)]['includes']('#删除接口')&_0x2c9902[_0x4f8cba(0x264)]){let _0x50863b=_0x2c9902[_0x4f8cba(_0x2ec182._0x3c9025)][_0x4f8cba(_0x2ec182._0xd58d2f)](/#删除接口/g,'')[_0x4f8cba(_0x2ec182._0x2cb202)]();_0x50863b=Number(_0x50863b);let _0x8d6192=_0x215148[_0x4f8cba(_0x2ec182._0x21cead)][_0x50863b-0x1]['mc'];_0x215148[_0x4f8cba(0x2cb)][_0x4f8cba(_0x2ec182._0x126731)](_0x50863b-0x1,0x1),_0x43967c['writeFileSync']('./plugins/earth-k-plugin/resources/aiht/jiekou.yaml',_0x53c071[_0x4f8cba(0x33a)](_0x215148)),_0x2c9902['reply']([_0x4f8cba(0x268),_0x8d6192,'成功']);}}async[_0xeb0f56(0x1f9)](_0x597abd){const _0x1b7676={_0x40aae0:0x2b8,_0x27d11f:0x2c5,_0x42e38b:0x282,_0x4ec7da:0x238,_0x45b6fd:0x29c,_0x371d75:0x2b8,_0x510171:0x2ca,_0x46adfa:0x238,_0x4e62bf:0x1dd,_0x7c4c6a:0x28b,_0x1a04c7:0x2b5,_0x461227:0x20e,_0x1be267:0x2de,_0x186db4:0x356,_0x46ea40:0x284,_0x37b2db:0x290,_0x9f6c8a:0x33a,_0x453b2e:0x1d4},_0x2991a7=_0xeb0f56;let _0x363b8e;if(_0x597abd[_0x2991a7(_0x1b7676._0x40aae0)]){_0x597abd[_0x2991a7(_0x1b7676._0x27d11f)]?_0x363b8e=(await _0x597abd[_0x2991a7(_0x1b7676._0x42e38b)][_0x2991a7(0x22f)](_0x597abd['source'][_0x2991a7(0x28e)],0x1))[_0x2991a7(0x2ca)]()?.[_0x2991a7(_0x1b7676._0x4ec7da)]:_0x363b8e=(await _0x597abd[_0x2991a7(_0x1b7676._0x45b6fd)][_0x2991a7(0x22f)](_0x597abd[_0x2991a7(_0x1b7676._0x371d75)]['time'],0x1))[_0x2991a7(_0x1b7676._0x510171)]()?.[_0x2991a7(_0x1b7676._0x46adfa)];if(_0x363b8e)for(let _0x2aad70 of _0x363b8e){if(_0x2aad70['type']==_0x2991a7(0x33e)){_0x597abd[_0x2991a7(0x291)]=[_0x2aad70['url']];break;}}}let _0x34edad;if(!_0x597abd['img']){if(!_0x597abd[_0x2991a7(0x291)]){let _0x54d5b9=_0x597abd['at'],_0x4dbcc3='http://q2.qlogo.cn/headimg_dl?dst_uin='+_0x54d5b9+_0x2991a7(0x2fb);_0x34edad=await imgUrlToBase64(_0x4dbcc3);}}else _0x34edad=await imgUrlToBase64(_0x597abd[_0x2991a7(0x291)][0x0]['replace'](/https/g,_0x2991a7(_0x1b7676._0x4e62bf))[_0x2991a7(_0x1b7676._0x7c4c6a)]());let _0x524d27=_0x34edad[_0x2991a7(0x313)],_0x54817b=_0x2991a7(_0x1b7676._0x1a04c7);console[_0x2991a7(_0x1b7676._0x461227)](_0x597abd['img']);let _0x3c088d={'fn_index':0x166,'data':['data:image/png;base64,'+_0x524d27,'',![],'','[name].[output_extension]',_0x2991a7(_0x1b7676._0x1be267),![],_0x2991a7(_0x1b7676._0x186db4),0.35,'','',![],![],!![],_0x2991a7(_0x1b7676._0x46ea40),![],![]],'session_hash':_0x2991a7(_0x1b7676._0x37b2db)};res=await _0x320715(_0x54817b,{'method':'post','body':JSON[_0x2991a7(_0x1b7676._0x9f6c8a)](_0x3c088d),'headers':{'Content-Type':_0x2991a7(_0x1b7676._0x453b2e),'User-Agent':_0x2991a7(0x2e8)}}),res=await res[_0x2991a7(0x29a)](),await sleep(0x3e8),_0x597abd[_0x2991a7(0x2b0)](_0x2991a7(0x352)+res[_0x2991a7(0x30a)][0x0],!![]);}async[_0xeb0f56(0x1d9)](_0x3b82bd){const _0x1da824={_0x39bc64:0x209,_0x479b83:0x24c,_0x367e7d:0x228,_0x30c614:0x339,_0x12b779:0x2b0,_0x33870b:0x1cf,_0x5d9381:0x21c,_0x1e8eb7:0x323,_0x44f9c6:0x28b,_0x133a70:0x33a},_0x173dea=_0xeb0f56;if(_0x3b82bd[_0x173dea(0x323)][_0x173dea(_0x1da824._0x39bc64)](_0x173dea(0x234))&_0x3b82bd[_0x173dea(0x264)]){let _0x5a6ee=_0x53c071[_0x173dea(0x21c)](_0x43967c['readFileSync'](_0x173dea(_0x1da824._0x479b83),_0x173dea(_0x1da824._0x367e7d))),_0x525f69=_0x3b82bd[_0x173dea(0x323)][_0x173dea(_0x1da824._0x30c614)](/#填写ak/g,'')[_0x173dea(0x28b)]();_0x5a6ee['ak']=_0x525f69,_0x43967c[_0x173dea(0x26e)](_0x173dea(_0x1da824._0x479b83),_0x53c071[_0x173dea(0x33a)](_0x5a6ee)),_0x3b82bd[_0x173dea(_0x1da824._0x12b779)]('填写ak成功');}if(_0x3b82bd[_0x173dea(0x323)][_0x173dea(0x209)](_0x173dea(_0x1da824._0x33870b))&_0x3b82bd[_0x173dea(0x264)]){let _0x83c5cf=_0x53c071[_0x173dea(_0x1da824._0x5d9381)](_0x43967c['readFileSync'](_0x173dea(0x24c),'utf8')),_0x30f09e=_0x3b82bd[_0x173dea(_0x1da824._0x1e8eb7)]['replace'](/#填写sk/g,'')[_0x173dea(_0x1da824._0x44f9c6)]();_0x83c5cf['sk']=_0x30f09e,_0x43967c[_0x173dea(0x26e)]('./plugins/earth-k-plugin/config/config.yaml',_0x53c071[_0x173dea(_0x1da824._0x133a70)](_0x83c5cf)),_0x3b82bd[_0x173dea(0x2b0)](_0x173dea(0x316));}}async[_0xeb0f56(0x30f)](_0xf898e0){const _0x4ca44e={_0x25f492:0x1d7,_0x36a63d:0x2b0,_0x117f61:0x351,_0xda776:0x1f5,_0x2f3b14:0x32b,_0x3605e2:0x241,_0x3c85cb:0x34e,_0x5756cf:0x2c5,_0x45b4ed:0x216,_0x48f396:0x21b,_0x3aa341:0x2aa,_0x27ffef:0x20e,_0x228453:0x30c,_0x4c8c3e:0x209,_0xe0beef:0x33d,_0x9960dc:0x339,_0x25d7b9:0x339,_0x3e28be:0x1d2,_0x40b54f:0x22e,_0x4a8f09:0x20a,_0x58e9ce:0x323,_0x17c78d:0x2cf,_0x11e8f2:0x1f4,_0x2b333f:0x323,_0x5bc401:0x344,_0x2df0e7:0x1df,_0x279c6b:0x323,_0x5cd285:0x300,_0x1f893a:0x274,_0x3e9ff9:0x323,_0x1e318a:0x2d8,_0x1eac1f:0x26b,_0x5018da:0x2d3,_0x545cea:0x236,_0x3f1448:0x34d,_0x4ef918:0x1fe,_0x498ea3:0x2c4,_0x12186c:0x27b,_0x2a8c99:0x2d1,_0xc54c2b:0x1e5,_0x2821c4:0x227,_0x56c333:0x323,_0x310b5a:0x340,_0x30a3ba:0x1ec,_0x5a0019:0x35b,_0x487ab1:0x2e3,_0x356b54:0x321,_0x4c51f0:0x29b,_0x1fa0e0:0x323,_0x3bab9b:0x349,_0x2fcd7b:0x336,_0x5bff84:0x337,_0x3904c9:0x24d,_0x290e33:0x323,_0x57c059:0x31e,_0x3c3d20:0x2b1,_0x5b4011:0x272,_0x1d580f:0x323,_0x18ecda:0x1db,_0x2e2689:0x323,_0x1d6a06:0x260,_0x5d1557:0x323,_0x250507:0x2b8,_0xa9e44:0x2c5,_0x33e9cf:0x22f,_0x3fcffe:0x2ca,_0x571306:0x238,_0xbd8962:0x328,_0x4a66b4:0x291,_0x5ff65f:0x291,_0x3aeac8:0x291,_0x48289b:0x1dd,_0x47509d:0x208,_0x5ad176:0x31a,_0xf6dfe7:0x31a,_0x3ebe64:0x20e,_0xe272b:0x2f1,_0x5dd4a5:0x208,_0x3ba02d:0x277,_0x19824b:0x304,_0x135dc:0x2bf,_0x5a527d:0x320,_0x206c7d:0x267,_0x4c9083:0x31c,_0x18aba0:0x361,_0x5782c6:0x31c,_0x12167b:0x2b0,_0x3543b9:0x347,_0x267010:0x2e6,_0x371325:0x36b,_0x19580e:0x2b0,_0x3407be:0x2b0,_0x1d25f1:0x210},_0x3cb539={_0x5e7511:0x2a5},_0x371aa1=_0xeb0f56;dqpz();if(zr==0x1&!_0xf898e0[_0x371aa1(0x264)]){_0xf898e0['reply'](_0x371aa1(_0x4ca44e._0x25f492));return;}if(!_0xf898e0['isGroup']){_0xf898e0[_0x371aa1(_0x4ca44e._0x36a63d)]('对不起,不支持私聊');return;}let _0x55b92f=_0x53c071[_0x371aa1(0x21c)](_0x43967c[_0x371aa1(_0x4ca44e._0x117f61)](_0x371aa1(0x24c),_0x371aa1(0x228))),_0x415de5=_0x55b92f[_0x371aa1(0x2c0)]['findIndex'](_0x4fa633=>_0x4fa633==_0xf898e0['user_id']),_0x30b800=_0x55b92f[_0x371aa1(_0x4ca44e._0xda776)][_0x371aa1(_0x4ca44e._0x2f3b14)](_0x49fe36=>_0x49fe36==_0xf898e0['group_id']);if(_0x30b800!=-0x1){_0xf898e0[_0x371aa1(0x2b0)](_0x371aa1(_0x4ca44e._0x3605e2));return;}if(_0x415de5!=-0x1){_0xf898e0['reply'](_0x371aa1(_0x4ca44e._0x3c85cb));return;}let _0x2361e6='',_0x35a632=0.5;if(_0xf898e0[_0x371aa1(_0x4ca44e._0x5756cf)]|_0xf898e0[_0x371aa1(0x264)]){tsckg=0x1;if(dqjk==0x0){try{_0x2361e6=_0x43967c['readFileSync'](_0x371aa1(_0x4ca44e._0x45b4ed));}catch{_0xf898e0[_0x371aa1(0x2b0)](_0x371aa1(_0x4ca44e._0x48f396));return;}_0x2361e6=_0x2361e6[_0x371aa1(0x360)]();let _0x33d0bd=_0x53c071['parse'](_0x43967c[_0x371aa1(0x351)](_0x371aa1(0x311),_0x371aa1(0x228)));_0x33d0bd=_0x33d0bd[_0x371aa1(0x1e4)][0x0];try{let _0x1a2dad=_0x371aa1(_0x4ca44e._0x3aa341)+_0x2361e6+'&qq='+String(_0x33d0bd);res=await _0x320715(_0x1a2dad,{'agent':isdl?await getAgent():''}),console[_0x371aa1(0x20e)](_0x371aa1(0x2e4));}catch(_0x966124){console[_0x371aa1(_0x4ca44e._0x27ffef)](_0x966124),console[_0x371aa1(0x20e)](_0x371aa1(0x203));}res=await res[_0x371aa1(_0x4ca44e._0x228453)]();if(res[_0x371aa1(_0x4ca44e._0x4c8c3e)](_0x371aa1(0x309))==![]){_0xf898e0[_0x371aa1(0x2b0)](_0x371aa1(_0x4ca44e._0xe0beef)),console[_0x371aa1(_0x4ca44e._0x27ffef)](res);return;}}let _0x408045=_0xf898e0[_0x371aa1(0x323)][_0x371aa1(_0x4ca44e._0x9960dc)](/#图生草/g,'')[_0x371aa1(0x28b)]();try{if(_0xf898e0[_0x371aa1(0x323)][_0x371aa1(0x209)]('化')){let _0xc0c2bb=_0x53c071[_0x371aa1(0x21c)](_0x43967c[_0x371aa1(0x351)]('./resources/tscys.yaml',_0x371aa1(0x228))),_0x5a59f1=_0xf898e0[_0x371aa1(0x323)][_0x371aa1(0x339)](/#/g,'')['trim']();_0x5a59f1=_0x5a59f1[_0x371aa1(_0x4ca44e._0x25d7b9)](/化/g,'')[_0x371aa1(0x28b)]();let _0x5da8f6=_0xc0c2bb[_0x371aa1(_0x4ca44e._0x3e28be)][_0x371aa1(_0x4ca44e._0x2f3b14)](_0x31fc43=>_0x31fc43['mc']==_0x5a59f1);_0x408045=_0xc0c2bb[_0x371aa1(0x1d2)][_0x5da8f6][_0x371aa1(0x27c)];}}catch{}_0xf898e0[_0x371aa1(0x323)]==_0x371aa1(_0x4ca44e._0x40b54f)&&(_0x408045=_0x371aa1(_0x4ca44e._0x4a8f09));_0xf898e0[_0x371aa1(_0x4ca44e._0x58e9ce)]==_0x371aa1(_0x4ca44e._0x17c78d)&&(_0x408045=_0x371aa1(_0x4ca44e._0x11e8f2),_0x35a632=0.55);_0xf898e0[_0x371aa1(_0x4ca44e._0x58e9ce)]==_0x371aa1(0x2e2)&&(_0x408045=_0x371aa1(0x2be));_0xf898e0[_0x371aa1(_0x4ca44e._0x2b333f)]==_0x371aa1(_0x4ca44e._0x5bc401)&&(_0x408045='Angry');_0xf898e0[_0x371aa1(_0x4ca44e._0x2b333f)]==_0x371aa1(_0x4ca44e._0x2df0e7)&&(_0x408045='(photorealistic:1.5),{{masterpiece}},wet');_0xf898e0['msg']==_0x371aa1(0x286)&&(_0x408045='{{masterpiece}},,wet');_0xf898e0[_0x371aa1(_0x4ca44e._0x2b333f)]==_0x371aa1(0x27d)&&(_0x408045=_0x371aa1(0x25c));_0xf898e0[_0x371aa1(_0x4ca44e._0x279c6b)]=='#妲化'&&(_0x408045='{{masterpiece}}\x20nahida');_0xf898e0[_0x371aa1(_0x4ca44e._0x2b333f)]==_0x371aa1(_0x4ca44e._0x5cd285)&&(_0x408045=_0x371aa1(_0x4ca44e._0x1f893a));_0xf898e0[_0x371aa1(_0x4ca44e._0x3e9ff9)]==_0x371aa1(0x20b)&&(_0x408045=_0x371aa1(_0x4ca44e._0x1e318a));_0xf898e0[_0x371aa1(_0x4ca44e._0x279c6b)]=='#爱化'&&(_0x408045=_0x371aa1(_0x4ca44e._0x1eac1f));_0xf898e0['msg']==_0x371aa1(0x276)&&(_0x408045=_0x371aa1(0x25d));_0xf898e0[_0x371aa1(0x323)]=='#平化'&&(_0x408045=_0x371aa1(_0x4ca44e._0x5018da));_0xf898e0[_0x371aa1(0x323)]==_0x371aa1(_0x4ca44e._0x545cea)&&(_0x408045=_0x371aa1(_0x4ca44e._0x3f1448));_0xf898e0[_0x371aa1(0x323)]==_0x371aa1(0x249)&&(_0x408045=_0x371aa1(_0x4ca44e._0x4ef918));_0xf898e0['msg']==_0x371aa1(_0x4ca44e._0x498ea3)&&(_0x408045=_0x371aa1(_0x4ca44e._0x12186c));_0xf898e0[_0x371aa1(_0x4ca44e._0x2b333f)]==_0x371aa1(_0x4ca44e._0x2a8c99)&&(_0x408045=_0x371aa1(0x2ed));_0xf898e0[_0x371aa1(0x323)]==_0x371aa1(0x1d0)&&(_0x408045='{{masterpiece}},Yae\x20Miko');_0xf898e0[_0x371aa1(_0x4ca44e._0x58e9ce)]==_0x371aa1(_0x4ca44e._0xc54c2b)&&(_0x408045=_0x371aa1(_0x4ca44e._0x2821c4));_0xf898e0[_0x371aa1(_0x4ca44e._0x56c333)]==_0x371aa1(_0x4ca44e._0x310b5a)&&(_0x408045=_0x371aa1(_0x4ca44e._0x30a3ba));_0xf898e0[_0x371aa1(_0x4ca44e._0x279c6b)]==_0x371aa1(_0x4ca44e._0x5a0019)&&(_0x408045=_0x371aa1(_0x4ca44e._0x487ab1));_0xf898e0[_0x371aa1(0x323)]==_0x371aa1(_0x4ca44e._0x356b54)&&(_0x408045=_0x371aa1(_0x4ca44e._0x4c51f0));_0xf898e0[_0x371aa1(_0x4ca44e._0x1fa0e0)]==_0x371aa1(_0x4ca44e._0x3bab9b)&&(_0x408045=_0x371aa1(_0x4ca44e._0x2fcd7b));_0xf898e0[_0x371aa1(0x323)]==_0x371aa1(_0x4ca44e._0x5bff84)&&(_0x408045=_0x371aa1(0x2fe));_0xf898e0[_0x371aa1(0x323)]=='#坤化'&&(_0x408045=_0x371aa1(_0x4ca44e._0x3904c9));_0xf898e0[_0x371aa1(_0x4ca44e._0x290e33)]==_0x371aa1(_0x4ca44e._0x57c059)&&(_0x408045=_0x371aa1(_0x4ca44e._0x3c3d20));_0xf898e0['msg']=='#糖化'&&(_0x408045=_0x371aa1(_0x4ca44e._0x5b4011));_0xf898e0[_0x371aa1(0x323)]==_0x371aa1(0x2f6)&&(_0x408045=_0x371aa1(0x218));_0xf898e0[_0x371aa1(_0x4ca44e._0x1d580f)]==_0x371aa1(_0x4ca44e._0x18ecda)&&(_0x408045=_0x371aa1(0x1dc));_0xf898e0[_0x371aa1(_0x4ca44e._0x2e2689)]=='#鱼化'&&(_0x408045=_0x371aa1(0x369));_0xf898e0[_0x371aa1(_0x4ca44e._0x2b333f)]==_0x371aa1(0x329)&&(_0x408045=_0x371aa1(_0x4ca44e._0x1d6a06));_0xf898e0[_0x371aa1(_0x4ca44e._0x5d1557)]==_0x371aa1(0x1ed)&_0xf898e0['isMaster']&&(_0x408045=_0x371aa1(0x2f2));let _0x52710a;if(_0xf898e0[_0x371aa1(_0x4ca44e._0x250507)]){_0xf898e0[_0x371aa1(_0x4ca44e._0xa9e44)]?_0x52710a=(await _0xf898e0['group'][_0x371aa1(_0x4ca44e._0x33e9cf)](_0xf898e0[_0x371aa1(0x2b8)]['seq'],0x1))[_0x371aa1(_0x4ca44e._0x3fcffe)]()?.[_0x371aa1(_0x4ca44e._0x571306)]:_0x52710a=(await _0xf898e0[_0x371aa1(0x29c)]['getChatHistory'](_0xf898e0[_0x371aa1(0x2b8)]['time'],0x1))['pop']()?.[_0x371aa1(_0x4ca44e._0x571306)];if(_0x52710a)for(let _0x392526 of _0x52710a){if(_0x392526[_0x371aa1(_0x4ca44e._0xbd8962)]=='image'){_0xf898e0[_0x371aa1(_0x4ca44e._0x4a66b4)]=[_0x392526[_0x371aa1(0x2ec)]];break;}}}let _0x5b9ae3;if(!_0xf898e0[_0x371aa1(_0x4ca44e._0x5ff65f)]){if(!_0xf898e0[_0x371aa1(_0x4ca44e._0x3aeac8)]){let _0x3290f9=_0xf898e0['at'],_0x1b31ee='http://q2.qlogo.cn/headimg_dl?dst_uin='+_0x3290f9+_0x371aa1(0x2fb);_0x5b9ae3=await imgUrlToBase64(_0x1b31ee);}}else _0x5b9ae3=await imgUrlToBase64(_0xf898e0[_0x371aa1(0x291)][0x0][_0x371aa1(0x339)](/https/g,_0x371aa1(_0x4ca44e._0x48289b))[_0x371aa1(0x28b)]());let _0x592a4c=_0x5b9ae3['base64Img'];_0x43967c[_0x371aa1(_0x4ca44e._0x47509d)]('./resources/yb.png',_0x592a4c[_0x371aa1(0x360)](),'base64',_0x197c1d=>{const _0x4d76ac=_0x371aa1;_0x197c1d?console[_0x4d76ac(0x20e)](_0x4d76ac(0x1ee)):console[_0x4d76ac(0x20e)](_0x4d76ac(0x232));}),await sleep(0x1f4);let _0x5be154=_0x2cba66('./resources/yb.png'),_0x11a799=_0x5be154[_0x371aa1(0x283)],_0x242123=_0x5be154['width'];_0x11a799=Math[_0x371aa1(_0x4ca44e._0x5ad176)](_0x11a799/0x40),_0x242123=Math['floor'](_0x242123/0x40);let _0xa3543d;_0x11a799>_0x242123&&(_0xa3543d=_0x11a799/_0x242123,_0x242123=0xc*0x40,_0x11a799=Math[_0x371aa1(0x31a)](0xc*_0xa3543d)*0x40);_0x242123>_0x11a799&&(_0xa3543d=_0x242123/_0x11a799,_0x11a799=0xc*0x40,_0x242123=Math[_0x371aa1(_0x4ca44e._0xf6dfe7)](0xc*_0xa3543d)*0x40);_0x242123==_0x11a799&&(_0x11a799=0x300,_0x242123=0x300,_0xa3543d=0x1);console[_0x371aa1(_0x4ca44e._0x3ebe64)](_0x11a799,_0x242123,_0xa3543d);var _0x4d6ddf={'init_images':['data:image/jpeg;base64,'+_0x592a4c],'denoising_strength':_0x35a632,'prompt':_0x408045,'styles':[_0x371aa1(_0x4ca44e._0xe272b)],'seed':-0x1,'steps':0x28,'cfg_scale':guimo+0x2,'width':_0x242123,'height':_0x11a799,'negative_prompt':_0x371aa1(0x26f),'sampler_index':'Euler\x20a'};try{res=await _0x320715(imgdz,{'method':'post','agent':isdl?await getAgent():'','body':JSON['stringify'](_0x4d6ddf),'headers':{'Content-Type':'application/json','User-Agent':'Mozilla/5.0\x20(Windows\x20NT\x206.1;\x20WOW64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/86.0.4240.198\x20Safari/537.36'}});let _0x1c2bcd=await res['json']();_0x1c2bcd=_0x1c2bcd['images'],_0x43967c[_0x371aa1(_0x4ca44e._0x5dd4a5)](_0x371aa1(0x31c),_0x1c2bcd['toString'](),'base64',_0x16d4e3=>{const _0x285057=_0x371aa1;_0x16d4e3?console[_0x285057(0x20e)](_0x285057(0x1ee)):console['log'](_0x285057(0x232));}),await sleep(0x1f4),console[_0x371aa1(_0x4ca44e._0x27ffef)](ss);let _0x2f8c55=_0x55b92f['sesequn'][_0x371aa1(_0x4ca44e._0x2f3b14)](_0x243d57=>_0x243d57==_0xf898e0['group_id']);tpjc='';ss==0x0&_0x2f8c55==-0x1&&(await main('./resources/3.jpg'),console[_0x371aa1(0x20e)](tpjc));let _0x151391,_0x4db607=_0xf898e0[_0x371aa1(_0x4ca44e._0x3ba02d)]?.['card']?_0xf898e0[_0x371aa1(_0x4ca44e._0x3ba02d)]['card']:_0xf898e0[_0x371aa1(_0x4ca44e._0x3ba02d)]?.[_0x371aa1(_0x4ca44e._0x19824b)];if(tpjc==_0x371aa1(0x319)&ss==0x0)_0x151391=await _0xf898e0[_0x371aa1(0x2b0)](_0x371aa1(0x1d1)),msg2=[_0x371aa1(0x1ef),_0x371aa1(0x2ce)+_0x4db607+'('+String(_0xf898e0[_0x371aa1(_0x4ca44e._0x135dc)])+')\x0a','群号:'+_0xf898e0['group'][_0x371aa1(_0x4ca44e._0x5a527d)]+'('+String(_0xf898e0[_0x371aa1(_0x4ca44e._0x206c7d)])+')\x0a','在画涩图被我抓到了',segment['image'](_0x371aa1(_0x4ca44e._0x4c9083))],jhft==0x1&&Bot[_0x371aa1(0x355)](zhuren)[_0x371aa1(_0x4ca44e._0x18aba0)](msg2);else{msg2=segment[_0x371aa1(0x33e)](_0x371aa1(_0x4ca44e._0x5782c6));let _0x157b4b=await _0xf898e0[_0x371aa1(_0x4ca44e._0x36a63d)](msg2,!![]);if(_0x157b4b&&_0x157b4b[_0x371aa1(0x2a5)]&&isch==0x1&&_0xf898e0[_0x371aa1(_0x4ca44e._0xa9e44)]){let _0x1400e9=_0xf898e0['group'];setTimeout(()=>{const _0x1faccc=_0x371aa1;_0x1400e9['recallMsg'](_0x157b4b[_0x1faccc(_0x3cb539._0x5e7511)]);},timeout);}startTimeMS=new Date()['getTime'](),t=setTimeout(()=>{tsckg=0x0,iscd=0x0;},cd);}}catch(_0x5f1993){console[_0x371aa1(_0x4ca44e._0x3ebe64)](_0x5f1993),console['log']('没有访问成功'),_0xf898e0[_0x371aa1(_0x4ca44e._0x12167b)](_0x371aa1(_0x4ca44e._0x3543b9)),tsckg=0x0;return;}}else{if(iscd==0x1&startTimeMS!=undefined){let _0x2c897e=cd-(new Date()[_0x371aa1(_0x4ca44e._0x267010)]()-startTimeMS);_0x2c897e=Math[_0x371aa1(_0x4ca44e._0x371325)](_0x2c897e/0x3e8);if(_0x2c897e<0x0){tsckg=0x0;return;}_0xf898e0[_0x371aa1(_0x4ca44e._0x19580e)]('我在cd中,还有'+String(_0x2c897e)+_0x371aa1(0x1f1));}else _0xf898e0[_0x371aa1(_0x4ca44e._0x3407be)](_0x371aa1(_0x4ca44e._0x1d25f1));}}async[_0xeb0f56(0x367)](_0x3ade7d){const _0x56e9e1={_0x596768:0x2c5,_0x5f47b7:0x24c,_0x5cfe53:0x1f5,_0x17bfa8:0x2b0,_0x5422a6:0x351,_0x3034b9:0x2b0,_0x2e07a1:0x21b,_0x4551b3:0x2bb,_0x309d7f:0x20e,_0x1e10b0:0x30c,_0x185367:0x33d,_0x659f34:0x2b0,_0x38322a:0x282,_0x3c099c:0x22f,_0x3381af:0x2ca,_0x1603e9:0x2b8,_0x3785bc:0x328,_0x24460e:0x33e,_0x57d53d:0x212,_0x276e34:0x2fb,_0x19a8f5:0x339,_0x44e45b:0x1dd,_0x28b3a3:0x313,_0x4ef1fa:0x208,_0x25040e:0x360,_0x555da2:0x283,_0x2845c5:0x31a,_0x4b6c1c:0x2ae,_0x4acec6:0x1d4,_0x5a9a3e:0x211,_0x1fd319:0x33e,_0x197bfd:0x221,_0x91f93b:0x2a5,_0x20f30e:0x282,_0x365445:0x2e6,_0x8af254:0x2e6,_0x582a79:0x36b,_0x1ebcf7:0x301,_0x531a90:0x210},_0x23b793={_0x664309:0x30b,_0x46c1c:0x2a5},_0x30e5ca={_0x21a2d5:0x1ee,_0x449114:0x20e},_0x10425e={_0xa0d00c:0x20e,_0x19739e:0x20e},_0x2e9312=_0xeb0f56;if(ecydtkg==0x0&_0x3ade7d[_0x2e9312(_0x56e9e1._0x596768)]|_0x3ade7d['isMaster']){dqpz(),ecydtkg=0x1;let _0x2d049a=_0x53c071[_0x2e9312(0x21c)](_0x43967c['readFileSync'](_0x2e9312(_0x56e9e1._0x5f47b7),_0x2e9312(0x228))),_0x19f2b2=_0x2d049a['blackqq']['findIndex'](_0x434cc4=>_0x434cc4==_0x3ade7d[_0x2e9312(0x2bf)]),_0x22951d=_0x2d049a[_0x2e9312(_0x56e9e1._0x5cfe53)][_0x2e9312(0x32b)](_0x14018f=>_0x14018f==_0x3ade7d[_0x2e9312(0x267)]);if(_0x22951d!=-0x1){_0x3ade7d[_0x2e9312(_0x56e9e1._0x17bfa8)](_0x2e9312(0x241));return;}if(_0x19f2b2!=-0x1){_0x3ade7d['reply'](_0x2e9312(0x34e));return;}if(!_0x3ade7d[_0x2e9312(_0x56e9e1._0x596768)]){_0x3ade7d[_0x2e9312(_0x56e9e1._0x17bfa8)](_0x2e9312(0x335));return;}let _0x31ca7c='';if(dqjk==0x0){try{_0x31ca7c=_0x43967c[_0x2e9312(_0x56e9e1._0x5422a6)]('./resources/th2.txt');}catch{_0x3ade7d[_0x2e9312(_0x56e9e1._0x3034b9)](_0x2e9312(_0x56e9e1._0x2e07a1));return;}_0x31ca7c=_0x31ca7c[_0x2e9312(0x360)]();let _0x428fe8=_0x53c071['parse'](_0x43967c[_0x2e9312(_0x56e9e1._0x5422a6)](_0x2e9312(0x311),'utf8'));_0x428fe8=_0x428fe8[_0x2e9312(0x1e4)][0x0];try{let _0x4a6ce3='https://www.tukuai.one//qx.php?tk='+_0x31ca7c+_0x2e9312(_0x56e9e1._0x4551b3)+String(_0x428fe8);res=await _0x320715(_0x4a6ce3,{'agent':isdl?await getAgent():''}),console['log']('访问成功了');}catch(_0x5b55d4){console[_0x2e9312(_0x56e9e1._0x309d7f)](_0x5b55d4),console['log']('没有访问成功');}res=await res[_0x2e9312(_0x56e9e1._0x1e10b0)]();if(res[_0x2e9312(0x209)](_0x2e9312(0x309))==![]){_0x3ade7d[_0x2e9312(_0x56e9e1._0x3034b9)](_0x2e9312(_0x56e9e1._0x185367)),console[_0x2e9312(0x20e)](res);return;}}_0x3ade7d['at']==undefined&&_0x3ade7d[_0x2e9312(_0x56e9e1._0x659f34)]('二次元的空气吗?你艾特谁了?');let _0x2acfeb;if(_0x3ade7d['source']){_0x3ade7d[_0x2e9312(_0x56e9e1._0x596768)]?_0x2acfeb=(await _0x3ade7d[_0x2e9312(_0x56e9e1._0x38322a)][_0x2e9312(_0x56e9e1._0x3c099c)](_0x3ade7d['source'][_0x2e9312(0x28e)],0x1))[_0x2e9312(_0x56e9e1._0x3381af)]()?.[_0x2e9312(0x238)]:_0x2acfeb=(await _0x3ade7d[_0x2e9312(0x29c)][_0x2e9312(0x22f)](_0x3ade7d[_0x2e9312(_0x56e9e1._0x1603e9)]['time'],0x1))['pop']()?.['message'];if(_0x2acfeb)for(let _0x3bd6c3 of _0x2acfeb){if(_0x3bd6c3[_0x2e9312(_0x56e9e1._0x3785bc)]==_0x2e9312(_0x56e9e1._0x24460e)){_0x3ade7d[_0x2e9312(0x291)]=[_0x3bd6c3['url']];break;}}}let _0x40c470,_0x349188,_0x52f8d3;if(!_0x3ade7d[_0x2e9312(0x291)]){_0x40c470=_0x3ade7d['at'];let _0x3dda87=_0x2e9312(_0x56e9e1._0x57d53d)+_0x40c470+_0x2e9312(_0x56e9e1._0x276e34);_0x349188=await imgUrlToBase64(_0x3dda87),_0x52f8d3=getdsc(_0x3ade7d[_0x2e9312(0x2bf)]);}else _0x40c470=_0x3ade7d['at'],_0x349188=await imgUrlToBase64(_0x3ade7d[_0x2e9312(0x291)][0x0][_0x2e9312(_0x56e9e1._0x19a8f5)](/https/g,_0x2e9312(_0x56e9e1._0x44e45b))['trim']()),_0x52f8d3=getdsc(_0x3ade7d[_0x2e9312(0x2bf)]);_0x3ade7d['at']==undefined&&(_0x40c470=0x75bcd15);let _0x5797be=_0x349188[_0x2e9312(_0x56e9e1._0x28b3a3)];_0x43967c[_0x2e9312(_0x56e9e1._0x4ef1fa)](_0x2e9312(0x1f8),_0x5797be[_0x2e9312(_0x56e9e1._0x25040e)](),'base64',_0x522c49=>{const _0x474d1c=_0x2e9312;_0x522c49?console[_0x474d1c(_0x10425e._0xa0d00c)](_0x474d1c(0x1ee)):console[_0x474d1c(_0x10425e._0x19739e)](_0x474d1c(0x232));}),await sleep(0x1f4);let _0x4873ae=_0x2cba66(_0x2e9312(0x1f8)),_0x1a7c03=_0x4873ae[_0x2e9312(_0x56e9e1._0x555da2)],_0x24f831=_0x4873ae['width'];_0x1a7c03=Math[_0x2e9312(0x31a)](_0x1a7c03/0x40),_0x24f831=Math[_0x2e9312(0x31a)](_0x24f831/0x40);let _0x33cbe4;_0x1a7c03>_0x24f831&&(_0x33cbe4=_0x1a7c03/_0x24f831,_0x24f831=beishu*0x40,_0x1a7c03=Math[_0x2e9312(_0x56e9e1._0x2845c5)](beishu*_0x33cbe4)*0x40);_0x24f831>_0x1a7c03&&(_0x33cbe4=_0x24f831/_0x1a7c03,_0x1a7c03=beishu*0x40,_0x24f831=Math[_0x2e9312(0x31a)](beishu*_0x33cbe4)*0x40);_0x24f831==_0x1a7c03&&(_0x1a7c03=0x300,_0x24f831=0x300,_0x33cbe4=0x1);console['log'](_0x1a7c03,_0x24f831,_0x33cbe4);var _0x7b8060={'init_images':['data:image/jpeg;base64,'+_0x5797be],'denoising_strength':0.65,'prompt':_0x52f8d3['en'],'styles':['Resize\x20and\x20fill'],'seed':-0x1,'steps':0x28,'cfg_scale':guimo+0x2,'width':_0x24f831,'height':_0x1a7c03,'negative_prompt':'lowres,nude,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry,\x20owres,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry','sampler_index':_0x2e9312(_0x56e9e1._0x4b6c1c)};try{res=await _0x320715(imgdz,{'method':'post','agent':isdl?await getAgent():'','body':JSON['stringify'](_0x7b8060),'headers':{'Content-Type':_0x2e9312(_0x56e9e1._0x4acec6),'User-Agent':_0x2e9312(0x2e8)}});let _0x277171=await res[_0x2e9312(0x29a)]();_0x277171=_0x277171[_0x2e9312(_0x56e9e1._0x5a9a3e)],_0x43967c[_0x2e9312(0x208)](_0x2e9312(0x31c),_0x277171[_0x2e9312(0x360)](),_0x2e9312(0x348),_0x42b1fd=>{const _0x40b000=_0x2e9312;_0x42b1fd?console[_0x40b000(0x20e)](_0x40b000(_0x30e5ca._0x21a2d5)):console[_0x40b000(_0x30e5ca._0x449114)](_0x40b000(0x232));}),await sleep(0x1f4),msg2=[segment[_0x2e9312(_0x56e9e1._0x1fd319)](_0x2e9312(0x31c)),_0x2e9312(_0x56e9e1._0x197bfd),segment['at'](_0x40c470),_0x52f8d3['ch']];let _0xf3ff02=await _0x3ade7d['reply'](msg2);if(_0xf3ff02&&_0xf3ff02[_0x2e9312(_0x56e9e1._0x91f93b)]&&isch==0x1&&_0x3ade7d[_0x2e9312(0x2c5)]){let _0x314757=_0x3ade7d[_0x2e9312(_0x56e9e1._0x20f30e)];setTimeout(()=>{const _0x8ca790=_0x2e9312;_0x314757[_0x8ca790(_0x23b793._0x664309)](_0xf3ff02[_0x8ca790(_0x23b793._0x46c1c)]);},timeout);}startTimeMS=new Date()[_0x2e9312(_0x56e9e1._0x365445)](),t=setTimeout(()=>{ecydtkg=0x0,iscd=0x0;},cd);}catch(_0x22eebb){console[_0x2e9312(_0x56e9e1._0x309d7f)](_0x22eebb),console['log']('没有访问成功'),_0x3ade7d[_0x2e9312(0x2b0)](_0x2e9312(0x347)),ecydtkg=0x0;return;}}else{if(iscd==0x1&startTimeMS!=undefined){let _0x1ccae3=cd-(new Date()[_0x2e9312(_0x56e9e1._0x8af254)]()-startTimeMS);_0x1ccae3=Math[_0x2e9312(_0x56e9e1._0x582a79)](_0x1ccae3/0x3e8);if(_0x1ccae3<0x0){ecydtkg=0x0;return;}_0x3ade7d[_0x2e9312(0x2b0)](_0x2e9312(_0x56e9e1._0x1ebcf7)+String(_0x1ccae3)+_0x2e9312(0x1f1));}else _0x3ade7d[_0x2e9312(_0x56e9e1._0x659f34)](_0x2e9312(_0x56e9e1._0x531a90));}}async['wdecy'](_0x5b736e){const _0x59d770={_0x4ed83a:0x2c5,_0x23156f:0x264,_0x466956:0x21c,_0xf024e8:0x32b,_0xca13b2:0x351,_0x57f5a3:0x311,_0x2818a6:0x228,_0x47b957:0x20e,_0x4e6263:0x2b0,_0x55d617:0x33d,_0x2ef2a2:0x2b4,_0x342cbf:0x206,_0x548d1e:0x254,_0x44e367:0x33e,_0x4a329a:0x254,_0x5a6afe:0x221,_0x1c6dc6:0x2c5,_0x1579a5:0x282,_0x567ee5:0x338,_0x54fbf2:0x36b},_0x2c79d5={_0x3dc4bf:0x2a5},_0x49ccbe=_0xeb0f56;if(wdecykg==0x0&_0x5b736e[_0x49ccbe(_0x59d770._0x4ed83a)]|_0x5b736e[_0x49ccbe(_0x59d770._0x23156f)]){wdecykg=0x1;let _0x45a08d='',_0x386380=_0x53c071[_0x49ccbe(_0x59d770._0x466956)](_0x43967c[_0x49ccbe(0x351)]('./plugins/earth-k-plugin/config/config.yaml','utf8')),_0x5aab83=_0x386380['blackqq'][_0x49ccbe(_0x59d770._0xf024e8)](_0x5953dd=>_0x5953dd==_0x5b736e[_0x49ccbe(0x2bf)]),_0x54d6fc=_0x386380['blackqun'][_0x49ccbe(0x32b)](_0x492f5a=>_0x492f5a==_0x5b736e[_0x49ccbe(0x267)]);if(_0x54d6fc!=-0x1){_0x5b736e[_0x49ccbe(0x2b0)]('该群已经被禁止画图。');return;}if(_0x5aab83!=-0x1){_0x5b736e[_0x49ccbe(0x2b0)](_0x49ccbe(0x34e));return;}if(dqjk==0x0){try{_0x45a08d=_0x43967c[_0x49ccbe(_0x59d770._0xca13b2)](_0x49ccbe(0x216));}catch{_0x5b736e[_0x49ccbe(0x2b0)](_0x49ccbe(0x21b));return;}_0x45a08d=_0x45a08d['toString']();let _0xf7f736=_0x53c071['parse'](_0x43967c[_0x49ccbe(0x351)](_0x49ccbe(_0x59d770._0x57f5a3),_0x49ccbe(_0x59d770._0x2818a6)));_0xf7f736=_0xf7f736['masterQQ'][0x0];try{let _0x4c0a60='https://www.tukuai.one//qx.php?tk='+_0x45a08d+'&qq='+String(_0xf7f736);res=await _0x320715(_0x4c0a60,{'agent':isdl?await getAgent():''}),console['log']('访问成功了');}catch(_0x250463){console['log'](_0x250463),console[_0x49ccbe(_0x59d770._0x47b957)](_0x49ccbe(0x203));}res=await res[_0x49ccbe(0x30c)]();if(res['includes'](_0x49ccbe(0x309))==![]){_0x5b736e[_0x49ccbe(_0x59d770._0x4e6263)](_0x49ccbe(_0x59d770._0x55d617)),console['log'](res);return;}}let _0x5555f3=getdsc(_0x5b736e['user_id']);try{let _0x584999=await _0x320715(txtdz,{'method':_0x49ccbe(_0x59d770._0x2ef2a2),'agent':isdl?await getAgent():'','headers':{'Content-Type':_0x49ccbe(0x1d4),'authorization':_0x49ccbe(_0x59d770._0x342cbf)},'body':JSON[_0x49ccbe(0x33a)]({'prompt':_0x5555f3['en'],'width':kuandu,'height':changdu,'cfg_scale':guimo+0x2,'sampler':moxing,'steps':0x17,'seed':-0x1,'n_samples':0x1,'ucPreset':0x0,'negative_prompt':pc})});res4=await _0x584999[_0x49ccbe(0x29a)](),res=res4[_0x49ccbe(0x211)][0x0],_0x43967c[_0x49ccbe(0x208)](_0x49ccbe(_0x59d770._0x548d1e),res['toString'](),_0x49ccbe(0x348),_0xbe1265=>{if(_0xbe1265)console['log']('写入文件错误');else{}});if(iscanshu==0x0){}await sleep(0x1f4),msg2=[segment[_0x49ccbe(_0x59d770._0x44e367)](_0x49ccbe(_0x59d770._0x4a329a)),_0x49ccbe(_0x59d770._0x5a6afe),segment['at'](_0x5b736e[_0x49ccbe(0x2bf)]),_0x5555f3['ch']];let _0x5c7fac=await _0x5b736e[_0x49ccbe(0x2b0)](msg2);if(_0x5c7fac&&_0x5c7fac['message_id']&&isch==0x1&&_0x5b736e[_0x49ccbe(_0x59d770._0x1c6dc6)]){let _0x5c407a=_0x5b736e[_0x49ccbe(_0x59d770._0x1579a5)];setTimeout(()=>{const _0x9b2228=_0x49ccbe;_0x5c407a[_0x9b2228(0x30b)](_0x5c7fac[_0x9b2228(_0x2c79d5._0x3dc4bf)]);},timeout);}startTimeMS=new Date()[_0x49ccbe(0x2e6)](),t=setTimeout(()=>{wdecykg=0x0,iscd=0x0;},cd);}catch{_0x5b736e[_0x49ccbe(_0x59d770._0x4e6263)](_0x49ccbe(_0x59d770._0x567ee5)),wdecykg=0x0,iscd=0x0;}}else{if(iscd==0x1&startTimeMS!=undefined){let _0x5adfa8=cd-(new Date()[_0x49ccbe(0x2e6)]()-startTimeMS);_0x5adfa8=Math[_0x49ccbe(_0x59d770._0x54fbf2)](_0x5adfa8/0x3e8);if(_0x5adfa8<0x0){wdecykg=0x0;return;}_0x5b736e['reply'](_0x49ccbe(0x301)+String(_0x5adfa8)+_0x49ccbe(0x1f1));}else _0x5b736e[_0x49ccbe(0x2b0)]('正在生草中,我知道你很急,但是你先别急。');}}async[_0xeb0f56(0x332)](_0x511032){const _0x4b8bec={_0x25e83c:0x243,_0x3852d6:0x320},_0x2f12da=_0xeb0f56;let _0x28f813=_0x2f12da(_0x4b8bec._0x25e83c),_0x43b885=await _0x320715(_0x28f813),_0x244a97=await _0x43b885[_0x2f12da(0x29a)](),_0x2ba0f5=_0x244a97[_0x2f12da(_0x4b8bec._0x3852d6)];data1={'tplFile':'./plugins/earth-k-plugin/resources/aiht/mx.html','dz':ml,'lb':_0x2ba0f5};let _0x3be6ee=await _0x1540d2[_0x2f12da(0x1f6)]('123',{...data1});_0x511032[_0x2f12da(0x2b0)](_0x3be6ee);}async[_0xeb0f56(0x251)](_0x2ff369){const _0x2ed3fa={_0x105aa6:0x264,_0x2741a6:0x28b,_0x1da4dc:0x209,_0x2a7df5:0x20d,_0x2e5efb:0x2b0,_0x20d54d:0x2b0,_0x246cdf:0x208,_0xe7e7ac:0x216,_0x4158f4:0x209,_0x1f4b04:0x2b0,_0xdc7067:0x303,_0x527ebc:0x216,_0x1475af:0x1ff,_0xfff076:0x24b},_0x3afa26={_0x2a6a95:0x1ee},_0x53d838={_0x222d4c:0x20e,_0x165f18:0x1ee},_0x352d31=_0xeb0f56;if(_0x2ff369[_0x352d31(_0x2ed3fa._0x105aa6)]){let _0xfc5b4d=_0x53c071[_0x352d31(0x21c)](_0x43967c[_0x352d31(0x351)](_0x352d31(0x311),_0x352d31(0x228)));_0xfc5b4d=_0xfc5b4d['masterQQ'][0x0],console[_0x352d31(0x20e)](_0xfc5b4d);let _0x45aa46=_0x2ff369[_0x352d31(0x323)]['replace'](/#填写密钥/g,'')[_0x352d31(_0x2ed3fa._0x2741a6)](),_0x2fcad2=_0x352d31(0x35d)+_0x45aa46+'&qq='+String(_0x2ff369[_0x352d31(0x2bf)]),_0x4611f1=await _0x320715(_0x2fcad2,{'agent':isdl?await getAgent():''}),_0x146ef9=await _0x4611f1['text']();if(_0x146ef9[_0x352d31(_0x2ed3fa._0x1da4dc)](_0x352d31(_0x2ed3fa._0x2a7df5))){_0x2ff369[_0x352d31(_0x2ed3fa._0x2e5efb)]('密钥不存在!不能乱输入哦');return;}if(_0x146ef9['includes'](_0x352d31(0x2e9))){_0x2ff369[_0x352d31(_0x2ed3fa._0x20d54d)]('你好号主,成功再次激活'),await _0x43967c[_0x352d31(_0x2ed3fa._0x246cdf)](_0x352d31(_0x2ed3fa._0xe7e7ac),_0x45aa46[_0x352d31(0x360)](),_0x352d31(0x31b),_0x7d5b9b=>{const _0x5a3489=_0x352d31;if(_0x7d5b9b)console[_0x5a3489(_0x53d838._0x222d4c)](_0x5a3489(_0x53d838._0x165f18));else{}});return;}_0x146ef9[_0x352d31(_0x2ed3fa._0x4158f4)](_0x352d31(0x330))&&(_0x2ff369[_0x352d31(_0x2ed3fa._0x1f4b04)](_0x352d31(_0x2ed3fa._0xdc7067)+String(_0x2ff369[_0x352d31(0x2bf)])),await _0x43967c[_0x352d31(0x208)](_0x352d31(_0x2ed3fa._0x527ebc),_0x45aa46[_0x352d31(0x360)](),_0x352d31(0x31b),_0x495b22=>{const _0x403f0d=_0x352d31;if(_0x495b22)console[_0x403f0d(0x20e)](_0x403f0d(_0x3afa26._0x2a6a95));else{}})),_0x146ef9[_0x352d31(0x209)](_0x352d31(_0x2ed3fa._0x1475af))&&_0x2ff369[_0x352d31(_0x2ed3fa._0x2e5efb)](_0x352d31(_0x2ed3fa._0xfff076));}}async[_0xeb0f56(0x28f)](_0x2473a5){const _0x33071f={_0x429734:0x323,_0x22cb03:0x2a3,_0x3f7801:0x2b0,_0x178104:0x264,_0x515ebd:0x323,_0x57111c:0x27a,_0x2c93b0:0x264,_0x29b056:0x2b0,_0x418afc:0x318,_0xe2da97:0x323,_0x48bb58:0x264},_0x486867=_0xeb0f56;_0x2473a5[_0x486867(_0x33071f._0x429734)]==_0x486867(_0x33071f._0x22cb03)&_0x2473a5['isMaster']&&(isdl=0x1,_0x2473a5[_0x486867(0x2b0)](_0x486867(0x240))),_0x2473a5[_0x486867(_0x33071f._0x429734)]=='#关闭代理'&_0x2473a5['isMaster']&&(isdl=0x0,_0x2473a5[_0x486867(_0x33071f._0x3f7801)](_0x486867(0x32a))),_0x2473a5[_0x486867(0x323)]==_0x486867(0x2bd)&_0x2473a5[_0x486867(_0x33071f._0x178104)]&&(iscanshu=0x1,_0x2473a5[_0x486867(0x2b0)](_0x486867(0x331))),_0x2473a5[_0x486867(0x323)]==_0x486867(0x322)&_0x2473a5['isMaster']&&(iscanshu=0x0,_0x2473a5['reply'](_0x486867(0x2dc))),_0x2473a5[_0x486867(_0x33071f._0x515ebd)]==_0x486867(_0x33071f._0x57111c)&_0x2473a5[_0x486867(_0x33071f._0x2c93b0)]&&(ishuifu=!![],_0x2473a5[_0x486867(_0x33071f._0x29b056)](_0x486867(_0x33071f._0x418afc))),_0x2473a5[_0x486867(_0x33071f._0xe2da97)]=='#关闭词条回复'&_0x2473a5[_0x486867(_0x33071f._0x48bb58)]&&(ishuifu=![],_0x2473a5[_0x486867(0x2b0)]('已关闭词条回复'));}async['szbs'](_0x37bf9b){const _0x450bc2={_0x25c474:0x28d,_0x2ec266:0x360,_0x3eb342:0x339,_0x3dd848:0x2b0,_0x28477b:0x23f},_0x826985=_0xeb0f56;if(_0x37bf9b[_0x826985(0x323)]==_0x826985(0x202)){console['log'](guimo);let _0x1b0fe1=['模型:',moxing,_0x826985(0x312),guimo[_0x826985(0x360)](),_0x826985(0x2ee),bushu[_0x826985(0x360)](),_0x826985(_0x450bc2._0x25c474),xsd[_0x826985(_0x450bc2._0x2ec266)](),_0x826985(0x362),jz['toString']()];_0x37bf9b[_0x826985(0x2b0)](_0x1b0fe1);return;}bushu=_0x37bf9b[_0x826985(0x323)][_0x826985(_0x450bc2._0x3eb342)](/#土块画图步数/g,'')[_0x826985(0x28b)](),bushu=Number(bushu);if(bushu<0x0|bushu>0x1c){bushu=0x1c,_0x37bf9b[_0x826985(_0x450bc2._0x3dd848)](_0x826985(_0x450bc2._0x28477b));return;}else _0x37bf9b[_0x826985(0x2b0)]('步数已设置为'+String(bushu));}async[_0xeb0f56(0x343)](_0x4c3a9d){const _0x1ffe6d={_0xfa4c02:0x24c,_0x2e5d47:0x323,_0x3bd571:0x28b,_0x4d0199:0x2ac,_0x2dfe29:0x2b0,_0xa98389:0x2b0,_0x344268:0x2da,_0x191f0f:0x35f,_0x2fde41:0x2b0,_0x2bbb9e:0x333,_0x412d23:0x334,_0x5e228d:0x33a},_0x2edbb8=_0xeb0f56;if(_0x4c3a9d[_0x2edbb8(0x323)]==_0x2edbb8(0x1e0)){let _0x32eeae=['1:Euler\x20a,\x0a2:Euler,\x0a3:Heun,\x0a4:DPM++\x202S\x20a,\x0a5:DPM++\x202M,\x0a6:DPM++\x202S\x20a\x20Karras,\x0a7:DPM++\x202M\x20Karras,\x0a8:DDIM,\x0a9:DPM++\x20SDE\x20Karras'];_0x4c3a9d[_0x2edbb8(0x2b0)](_0x32eeae);return;}let _0x328941=_0x53c071['parse'](_0x43967c['readFileSync'](_0x2edbb8(_0x1ffe6d._0xfa4c02),'utf8'));moxing=_0x4c3a9d[_0x2edbb8(_0x1ffe6d._0x2e5d47)][_0x2edbb8(0x339)](/#土块画图采样/g,'')[_0x2edbb8(_0x1ffe6d._0x3bd571)](),moxing=Number(moxing);if(moxing<0x0|moxing>0x9){_0x4c3a9d['reply'](_0x2edbb8(0x1de)),moxing=0x2;return;}moxing==0x1&&(moxing=_0x2edbb8(0x2ae),_0x4c3a9d['reply']('采样已设置为Euler\x20a')),moxing==0x2&&(moxing=_0x2edbb8(_0x1ffe6d._0x4d0199),_0x4c3a9d[_0x2edbb8(_0x1ffe6d._0x2dfe29)](_0x2edbb8(0x2fc))),moxing==0x3&&(moxing='Heun',_0x4c3a9d[_0x2edbb8(0x2b0)](_0x2edbb8(0x265))),moxing==0x4&&(moxing='DPM++\x202S\x20a',_0x4c3a9d[_0x2edbb8(0x2b0)](_0x2edbb8(0x35a))),moxing==0x5&&(moxing=_0x2edbb8(0x2a7),_0x4c3a9d[_0x2edbb8(_0x1ffe6d._0xa98389)]('采样已设置为DPM++\x202M')),moxing==0x6&&(moxing=_0x2edbb8(_0x1ffe6d._0x344268),_0x4c3a9d[_0x2edbb8(0x2b0)](_0x2edbb8(_0x1ffe6d._0x191f0f))),moxing==0x7&&(moxing=_0x2edbb8(0x270),_0x4c3a9d[_0x2edbb8(0x2b0)]('采样已设置为DPM++\x202M\x20Karras')),moxing==0x8&&(moxing=_0x2edbb8(0x23a),_0x4c3a9d[_0x2edbb8(_0x1ffe6d._0x2fde41)](_0x2edbb8(0x32d))),moxing==0x9&&(moxing=_0x2edbb8(_0x1ffe6d._0x2bbb9e),_0x4c3a9d['reply'](_0x2edbb8(_0x1ffe6d._0x412d23))),_0x328941[_0x2edbb8(0x229)]=moxing,_0x43967c[_0x2edbb8(0x26e)](_0x2edbb8(_0x1ffe6d._0xfa4c02),_0x53c071[_0x2edbb8(_0x1ffe6d._0x5e228d)](_0x328941));}async[_0xeb0f56(0x341)](_0x4f225c){const _0x202cbe={_0x51f39a:0x339,_0x48d49d:0x2b0,_0x431468:0x34c},_0x539923=_0xeb0f56;guimo=_0x4f225c[_0x539923(0x323)][_0x539923(_0x202cbe._0x51f39a)](/#土块画图规模/g,'')[_0x539923(0x28b)](),guimo=Number(guimo);if(guimo<0x3|guimo>0xc){_0x4f225c[_0x539923(_0x202cbe._0x48d49d)](_0x539923(_0x202cbe._0x431468)),guimo=5.5;return;}else _0x4f225c['reply'](_0x539923(0x2ef)+String(guimo));}async[_0xeb0f56(0x2ea)](_0x5b1faa){const _0x2df78d={_0x51a2d8:0x323,_0x42fcc4:0x209,_0x179262:0x323,_0x2f729b:0x231,_0x1d13a4:0x28b,_0x56315d:0x287,_0x45d896:0x346,_0x217e9b:0x368,_0x5f2ba6:0x2b0,_0x5c92e7:0x209,_0x2c05fd:0x264,_0x2735af:0x242,_0x3fea2e:0x33a,_0x3fcbca:0x208,_0x74a9d4:0x323,_0x461d66:0x209,_0x5853bf:0x36c,_0x23259e:0x323,_0x197ce7:0x339,_0x36780f:0x33a},_0x1a838f={_0x17ec0a:0x2d9,_0xf480da:0x2a0},_0x5e5dad={_0x18c632:0x360,_0x53b901:0x21c,_0x2b414c:0x1f3,_0x183867:0x346},_0x454b05={_0x429fc1:0x21f,_0x2d4dbe:0x205,_0x1f64d5:0x26e,_0x33ca89:0x31b,_0x241170:0x20e,_0x4e33e3:0x2af},_0x2a494b=_0xeb0f56;if(_0x5b1faa['img']!=undefined)return![];if(yushekg==0x0&_0x5b1faa[_0x2a494b(_0x2df78d._0x51a2d8)][_0x2a494b(_0x2df78d._0x42fcc4)](_0x2a494b(0x248))==![]&_0x5b1faa[_0x2a494b(_0x2df78d._0x51a2d8)][_0x2a494b(_0x2df78d._0x42fcc4)]('#新增预设')==![]&_0x5b1faa[_0x2a494b(_0x2df78d._0x179262)][_0x2a494b(_0x2df78d._0x42fcc4)](_0x2a494b(0x27f))==![]&_0x5b1faa['msg'][_0x2a494b(0x209)](_0x2a494b(0x2a9))==![])return![];let _0x4548d8=_0x2a494b(0x1d8);_0x43967c[_0x2a494b(0x36a)](_0x4548d8[_0x2a494b(0x360)](),_0x43967c[_0x2a494b(0x250)][_0x2a494b(0x31f)],_0x1e3827=>{const _0x573b48=_0x2a494b;if(_0x1e3827){let _0x28ef1c=ml+_0x573b48(_0x454b05._0x429fc1)+'ys'+'.json',_0x115374={'shuju':[{'name':_0x573b48(_0x454b05._0x2d4dbe),'gjc':_0x573b48(0x2c6)}]};_0x43967c[_0x573b48(_0x454b05._0x1f64d5)](_0x28ef1c[_0x573b48(0x360)](),JSON[_0x573b48(0x33a)](_0x115374),_0x573b48(_0x454b05._0x33ca89));}else console[_0x573b48(_0x454b05._0x241170)](_0x5b1faa[_0x573b48(0x2bf)]['toString']()+_0x573b48(_0x454b05._0x4e33e3));}),await sleep(0x1f4);let _0x2fb86b='';await _0x43967c[_0x2a494b(_0x2df78d._0x2f729b)](_0x4548d8,(_0x53ce22,_0x536aad)=>{const _0x263ed6=_0x2a494b;if(_0x53ce22)throw _0x53ce22;var _0x52c72a=_0x536aad[_0x263ed6(_0x5e5dad._0x18c632)]()!=''?JSON[_0x263ed6(_0x5e5dad._0x53b901)](_0x536aad[_0x263ed6(0x360)]()):[];ysct='',_0x2fb86b='',shuju=_0x52c72a;for(let _0x360d14=0x0;_0x360d14ysct[_0x2a494b(_0x2df78d._0x45d896)]|_0x5b6150<0x0){_0x5b1faa[_0x2a494b(0x2b0)]('数字超过了预设个数');return;}_0x5b1faa[_0x2a494b(0x2b0)]([_0x2fb86b[_0x5b6150-0x1],':',ysct[_0x5b6150-0x1]]),ysct='',_0x2fb86b='';}if(_0x5b1faa[_0x2a494b(0x323)]=='#查看预设'&_0x5b1faa[_0x2a494b(0x264)]){_0x2fb86b=_0x2fb86b[_0x2a494b(_0x2df78d._0x56315d)](','),data1={'tplFile':_0x2a494b(0x2ba),'dz':ml,'lb':_0x2fb86b,'qsid':0x0};let _0x49192b=await _0x1540d2[_0x2a494b(0x1f6)](_0x2a494b(_0x2df78d._0x217e9b),{...data1});_0x5b1faa[_0x2a494b(_0x2df78d._0x5f2ba6)](_0x49192b);return;}if(_0x5b1faa[_0x2a494b(_0x2df78d._0x179262)][_0x2a494b(_0x2df78d._0x5c92e7)]('#删除预设')&_0x5b1faa[_0x2a494b(_0x2df78d._0x2c05fd)]){let _0x322ee0=_0x5b1faa[_0x2a494b(0x323)][_0x2a494b(0x339)](/#删除预设/g,'')['trim']();_0x322ee0=Number(_0x322ee0);if(_0x322ee0{const _0x52d1ee=_0x2a494b;if(_0x51d35b)throw _0x51d35b;console[_0x52d1ee(0x20e)](_0x52d1ee(_0x1a838f._0x17ec0a)),_0x5b1faa['reply'](_0x52d1ee(_0x1a838f._0xf480da));});return;}}async[_0xeb0f56(0x34b)](_0x493744){const _0x251d8a={_0x4297de:0x21c,_0x2941cc:0x24c,_0x1f1bc6:0x264,_0xf41984:0x2b0,_0x204eb1:0x299,_0x518628:0x339,_0x437eca:0x28b,_0x326d76:0x226,_0x38d9f3:0x273,_0x53171d:0x323,_0x15cc33:0x209,_0x19a568:0x2c8,_0xee2669:0x264,_0x3b5cee:0x201,_0x2aa234:0x264,_0x353a99:0x342,_0x281186:0x26e},_0x59cc38=_0xeb0f56;let _0x18d666=_0x53c071[_0x59cc38(_0x251d8a._0x4297de)](_0x43967c['readFileSync'](_0x59cc38(_0x251d8a._0x2941cc),_0x59cc38(0x228)));_0x493744[_0x59cc38(0x323)]['includes'](_0x59cc38(0x263))&_0x493744[_0x59cc38(_0x251d8a._0x1f1bc6)]&&(_0x493744[_0x59cc38(_0x251d8a._0xf41984)](_0x59cc38(_0x251d8a._0x204eb1)),pc=_0x493744['msg'][_0x59cc38(_0x251d8a._0x518628)](/#新增屏蔽词/g,'')[_0x59cc38(_0x251d8a._0x437eca)](),_0x18d666['pc']=pc),_0x493744[_0x59cc38(0x323)]==_0x59cc38(_0x251d8a._0x326d76)&_0x493744[_0x59cc38(_0x251d8a._0x1f1bc6)]&&_0x493744['reply']([_0x59cc38(_0x251d8a._0x38d9f3),pc]),_0x493744[_0x59cc38(_0x251d8a._0x53171d)][_0x59cc38(_0x251d8a._0x15cc33)]('#删除屏蔽词')&_0x493744[_0x59cc38(0x264)]&&(_0x493744[_0x59cc38(0x2b0)](_0x59cc38(0x1d5)+_0x59cc38(0x327)),pc=''),_0x493744['msg'][_0x59cc38(0x209)](_0x59cc38(_0x251d8a._0x19a568))&_0x493744[_0x59cc38(_0x251d8a._0xee2669)]&&(_0x493744[_0x59cc38(0x2b0)](_0x59cc38(_0x251d8a._0x3b5cee)),pc=_0x59cc38(0x26f),_0x18d666['pc']=pc),_0x493744[_0x59cc38(0x323)][_0x59cc38(0x209)](_0x59cc38(0x36d))&_0x493744[_0x59cc38(_0x251d8a._0x2aa234)]&&(_0x493744['reply'](_0x59cc38(_0x251d8a._0x353a99)),pc=_0x59cc38(0x2c3),_0x18d666['pc']=pc),_0x43967c[_0x59cc38(_0x251d8a._0x281186)](_0x59cc38(0x24c),_0x53c071['stringify'](_0x18d666));}async[_0xeb0f56(0x30e)](_0x329e1b){const _0x110c6c={_0x3208e5:0x24c,_0x4d6890:0x2f4,_0x142456:0x2fa,_0x4ab315:0x269,_0x34ccfa:0x315,_0x21949e:0x264,_0x650334:0x242,_0x40eefc:0x1cd,_0x2dd1b9:0x26e,_0x46f224:0x24c,_0x5183db:0x33a,_0x4674ce:0x33a,_0x234752:0x323,_0x2c9a6a:0x209,_0x13c71c:0x357,_0x27e151:0x264,_0x322844:0x339,_0x592127:0x33a,_0x1bc227:0x2c1,_0xd8b60:0x209,_0xb751b7:0x264,_0x384ad5:0x239,_0x2152b9:0x245,_0x5cd0b8:0x264,_0x37900e:0x25e,_0x36e0bb:0x323,_0x2fe377:0x239,_0x5a505c:0x2b9,_0x20ffdc:0x20e,_0x1e9e9b:0x2e1,_0xf21d20:0x2b0,_0x33ccb0:0x1f2,_0x543d1b:0x35c,_0x130a00:0x2d0,_0x3b9196:0x1e1},_0x18755b=_0xeb0f56;let _0x579653=_0x53c071[_0x18755b(0x21c)](_0x43967c[_0x18755b(0x351)](_0x18755b(_0x110c6c._0x3208e5),_0x18755b(0x228)));_0x329e1b['msg']==_0x18755b(_0x110c6c._0x4d6890)&_0x329e1b['isMaster']&&(_0x329e1b['reply'](_0x18755b(0x26a)+String(_0x329e1b[_0x18755b(0x267)])+_0x18755b(_0x110c6c._0x142456)),_0x579653[_0x18755b(0x207)][_0x18755b(_0x110c6c._0x4ab315)](_0x329e1b['group_id']),_0x43967c[_0x18755b(0x26e)](_0x18755b(0x24c),_0x53c071['stringify'](_0x579653)));if(_0x329e1b[_0x18755b(0x323)]==_0x18755b(_0x110c6c._0x34ccfa)&_0x329e1b[_0x18755b(_0x110c6c._0x21949e)]){let _0x43cb70=_0x579653['sesequn']['findIndex'](_0x379bf0=>_0x379bf0==_0x329e1b[_0x18755b(0x267)]);_0x43cb70!=-0x1&&_0x579653['sesequn'][_0x18755b(_0x110c6c._0x650334)](_0x43cb70,0x1);if(_0x579653['sk']==null|_0x579653['sk']==null){_0x329e1b[_0x18755b(0x2b0)](_0x18755b(_0x110c6c._0x40eefc));return;}_0x329e1b[_0x18755b(0x2b0)]('好的,开启鉴黄了'),ss=0x0,_0x579653['ss']=0x0,_0x43967c[_0x18755b(_0x110c6c._0x2dd1b9)](_0x18755b(_0x110c6c._0x46f224),_0x53c071[_0x18755b(_0x110c6c._0x5183db)](_0x579653));}await dqpz();if(_0x329e1b['msg'][_0x18755b(0x209)](_0x18755b(0x222))&_0x329e1b['isMaster']){_0x579653['cd']=0x7530,_0x579653[_0x18755b(0x1eb)]=0x1,_0x43967c[_0x18755b(0x26e)](_0x18755b(0x24c),_0x53c071[_0x18755b(_0x110c6c._0x4674ce)](_0x579653)),cd=0x7530,_0x329e1b[_0x18755b(0x2b0)](_0x18755b(0x1e9));return;}if(_0x329e1b[_0x18755b(_0x110c6c._0x234752)][_0x18755b(_0x110c6c._0x2c9a6a)](_0x18755b(_0x110c6c._0x13c71c))&_0x329e1b[_0x18755b(_0x110c6c._0x27e151)]){let _0x9a4121=_0x329e1b[_0x18755b(_0x110c6c._0x234752)][_0x18755b(_0x110c6c._0x322844)](/#土块画图冷却/g,'')['trim']();cd=Number(_0x9a4121)*0x3e8,_0x579653['cd']=cd,_0x579653[_0x18755b(0x1eb)]=0x1,_0x43967c[_0x18755b(0x26e)](_0x18755b(_0x110c6c._0x3208e5),_0x53c071[_0x18755b(_0x110c6c._0x592127)](_0x579653)),_0x329e1b[_0x18755b(0x2b0)](_0x18755b(_0x110c6c._0x1bc227)+_0x9a4121+'秒');}if(_0x329e1b[_0x18755b(_0x110c6c._0x234752)][_0x18755b(_0x110c6c._0xd8b60)]('#土块画图撤回关闭')&_0x329e1b[_0x18755b(_0x110c6c._0xb751b7)]){_0x579653[_0x18755b(0x25e)]=0x0,_0x579653[_0x18755b(_0x110c6c._0x384ad5)]=0x0,_0x43967c[_0x18755b(0x26e)]('./plugins/earth-k-plugin/config/config.yaml',_0x53c071[_0x18755b(0x33a)](_0x579653)),isch=0x0,_0x329e1b['reply'](_0x18755b(0x2ff));return;}if(_0x329e1b[_0x18755b(_0x110c6c._0x234752)][_0x18755b(_0x110c6c._0x2c9a6a)](_0x18755b(_0x110c6c._0x2152b9))&_0x329e1b[_0x18755b(_0x110c6c._0x5cd0b8)]){isch=0x1,_0x579653[_0x18755b(_0x110c6c._0x37900e)]=0x7530,_0x579653[_0x18755b(0x239)]=0x1,_0x43967c[_0x18755b(_0x110c6c._0x2dd1b9)](_0x18755b(_0x110c6c._0x46f224),_0x53c071[_0x18755b(0x33a)](_0x579653)),timeout=0x7530,_0x329e1b[_0x18755b(0x2b0)](_0x18755b(0x294));return;}if(_0x329e1b[_0x18755b(0x323)][_0x18755b(0x209)]('#土块画图撤回')&_0x329e1b[_0x18755b(0x264)]){isch=0x1;let _0x46515f=_0x329e1b[_0x18755b(_0x110c6c._0x36e0bb)][_0x18755b(_0x110c6c._0x322844)](/#土块画图撤回/g,'')['trim']();timeout=Number(_0x46515f)*0x3e8,_0x579653[_0x18755b(0x25e)]=timeout,_0x579653[_0x18755b(_0x110c6c._0x2fe377)]=0x1,_0x43967c[_0x18755b(0x26e)]('./plugins/earth-k-plugin/config/config.yaml',_0x53c071[_0x18755b(0x33a)](_0x579653)),_0x329e1b['reply'](_0x18755b(0x22d)+_0x46515f+'秒');}_0x329e1b[_0x18755b(0x323)]==_0x18755b(_0x110c6c._0x5a505c)&&(kg=0x0,sc=0x0,zt=0x0,id='',console[_0x18755b(_0x110c6c._0x20ffdc)](_0x18755b(_0x110c6c._0x1e9e9b)),kg2=0x0,_0x329e1b[_0x18755b(_0x110c6c._0xf21d20)](_0x18755b(_0x110c6c._0x33ccb0))),_0x329e1b[_0x18755b(0x323)]==_0x18755b(_0x110c6c._0x543d1b)&_0x329e1b['isMaster']&&(_0x329e1b[_0x18755b(0x2b0)](_0x18755b(_0x110c6c._0x130a00)),zr=0x0,_0x579653['zr']=0x0,_0x43967c[_0x18755b(0x26e)]('./plugins/earth-k-plugin/config/config.yaml',_0x53c071['stringify'](_0x579653))),_0x329e1b[_0x18755b(0x323)]==_0x18755b(0x302)&_0x329e1b[_0x18755b(0x264)]&&(_0x329e1b[_0x18755b(0x2b0)](_0x18755b(_0x110c6c._0x3b9196)),zr=0x1,_0x579653['zr']=0x1,_0x43967c[_0x18755b(0x26e)](_0x18755b(0x24c),_0x53c071[_0x18755b(0x33a)](_0x579653)));}async[_0xeb0f56(0x317)](_0x180aff){const _0x49d48f={_0x28753e:0x291,_0x20dd1f:0x323,_0x1eccb0:0x237,_0x2d013f:0x323,_0x108803:0x2f0,_0x531b46:0x2bf,_0x495adc:0x310,_0x58216a:0x2b0,_0x66610e:0x223,_0xe596c2:0x2b5,_0x14cb21:0x28b,_0x60908d:0x22a,_0x72057c:0x2de,_0xa6fda5:0x356,_0x334b24:0x235,_0x9776c7:0x2f7,_0x14e632:0x1d4,_0x22f3a4:0x29a,_0x15b277:0x230,_0x109075:0x219,_0x3f1927:0x2b0,_0x59948f:0x252,_0x5aaf48:0x323,_0x2d5be7:0x323,_0x1b5d4b:0x339,_0x1f698e:0x20e,_0x782e2d:0x323,_0x460ffc:0x209,_0x18aab6:0x353,_0x3d439d:0x2b0,_0x391102:0x351,_0x52db4d:0x24c,_0x2eaffc:0x32b,_0x1e604a:0x241,_0x18123e:0x216,_0x4ea8f5:0x351,_0x3e79d3:0x311,_0x1b4d92:0x2aa,_0xe45021:0x2e4,_0x416781:0x309,_0xa34d60:0x33d,_0x242fd5:0x20e,_0x25f671:0x264,_0x491874:0x323,_0x22c7cf:0x339,_0x4f7590:0x28b,_0x1e0e14:0x320,_0x10b27a:0x346,_0x20314b:0x1ce,_0x537391:0x2d2,_0x5beef4:0x30c,_0x22c517:0x339,_0x2e3165:0x339,_0x181bb9:0x20e,_0x2478f7:0x2b0,_0x1f16ec:0x2c5,_0x20e539:0x1f8,_0x4415b0:0x217,_0x59e1f0:0x31a,_0x2f2da1:0x31a,_0x45fb51:0x1e2,_0x58e354:0x2e8,_0x3ba7ac:0x358,_0x32d986:0x31c,_0x749213:0x2bf,_0x3c780e:0x1da,_0x4dd72a:0x31c,_0x1492f1:0x277,_0x51623a:0x311,_0x186097:0x1ef,_0x8aca9d:0x2bf,_0x43a366:0x320,_0x3446b4:0x267,_0x14872b:0x253,_0x5978d7:0x33e,_0x47c57e:0x2e6,_0xdbbf93:0x20e,_0x44992e:0x301,_0x2f0c4f:0x1f1,_0xca20e5:0x215},_0x42bca7={_0x2ff258:0x20e,_0x1780d2:0x20e},_0x29ea4e={_0x24019d:0x20e},_0x4651e4={_0xbdf549:0x2b0},_0x55901a=_0xeb0f56;if(_0x180aff[_0x55901a(_0x49d48f._0x28753e)]!=undefined&zt==0x0&mfkg==0x0)return![];if(_0x180aff['img']==undefined&_0x180aff[_0x55901a(0x323)]!=undefined){if(_0x180aff[_0x55901a(_0x49d48f._0x20dd1f)][_0x55901a(0x209)](_0x55901a(_0x49d48f._0x1eccb0))==![]&_0x180aff['img']==undefined&zt==0x0&_0x180aff[_0x55901a(_0x49d48f._0x2d013f)]['includes'](_0x55901a(_0x49d48f._0x108803))==![]&mfkg==0x0)return![];}mfkg==0x0&_0x180aff['msg']==_0x55901a(0x2f0)&&(mfkg=0x1,mfid=_0x180aff[_0x55901a(_0x49d48f._0x531b46)],_0x180aff[_0x55901a(0x2b0)](_0x55901a(_0x49d48f._0x495adc)),mf=setTimeout(()=>{const _0x396819=_0x55901a;if(mfkg==0x1){mfkg=0x0,_0x180aff[_0x396819(0x2b0)]('15秒还未发图,查看魔法已取消');return;}},0x3a98));if(_0x180aff[_0x55901a(0x291)]!=undefined&mfkg==0x1&mfid==_0x180aff[_0x55901a(0x2bf)]){clearTimeout(mf),_0x180aff[_0x55901a(_0x49d48f._0x58216a)](_0x55901a(_0x49d48f._0x66610e)),mfkg=0x0,mfid='';let _0x1cba04=_0x55901a(_0x49d48f._0xe596c2);console['log'](_0x180aff[_0x55901a(_0x49d48f._0x28753e)]);let _0x350e9c=await imgUrlToBase64(_0x180aff[_0x55901a(0x291)][0x0][_0x55901a(0x339)](/https/g,'http')[_0x55901a(_0x49d48f._0x14cb21)]()),_0x3924e5=_0x350e9c[_0x55901a(0x313)],_0x9bfcb5={'fn_index':0x118,'data':[_0x55901a(0x220)+_0x3924e5,'',![],'',_0x55901a(_0x49d48f._0x60908d),_0x55901a(_0x49d48f._0x72057c),![],_0x55901a(_0x49d48f._0xa6fda5),0.35,'','',![],![],!![],_0x55901a(0x284),![],![]],'session_hash':_0x55901a(_0x49d48f._0x334b24)};res=await _0x320715(_0x1cba04,{'method':_0x55901a(_0x49d48f._0x9776c7),'body':JSON[_0x55901a(0x33a)](_0x9bfcb5),'headers':{'Content-Type':_0x55901a(_0x49d48f._0x14e632),'User-Agent':'Mozilla/5.0\x20(Windows\x20NT\x206.1;\x20WOW64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/86.0.4240.198\x20Safari/537.36'}}),res=await res[_0x55901a(_0x49d48f._0x22f3a4)](),_0x180aff['reply'](res[_0x55901a(0x30a)][0x0],!![]);if(res!=undefined)_0x180aff['reply'](res[_0x55901a(_0x49d48f._0x15b277)],!![]),res[_0x55901a(_0x49d48f._0x109075)]==-0x1&&(_0x180aff[_0x55901a(_0x49d48f._0x3f1927)](_0x55901a(_0x49d48f._0x59948f)),mfkg=0x0,mfid='');else{}}if(_0x180aff[_0x55901a(0x291)]==undefined&zt==0x1)return![];if(_0x180aff[_0x55901a(_0x49d48f._0x28753e)]==undefined&_0x180aff[_0x55901a(_0x49d48f._0x5aaf48)]!=undefined){dqpz();if(_0x180aff[_0x55901a(0x323)][_0x55901a(0x209)](_0x55901a(0x233))&_0x180aff[_0x55901a(0x264)]){xsd=Number(_0x180aff[_0x55901a(_0x49d48f._0x2d5be7)][_0x55901a(_0x49d48f._0x1b5d4b)](/#以图生草相似度/g,'')[_0x55901a(_0x49d48f._0x14cb21)]())/0x64,_0x180aff['reply'](_0x55901a(0x2a1)+String(xsd)),console[_0x55901a(_0x49d48f._0x1f698e)](xsd);return;}if(_0x180aff[_0x55901a(0x323)]['includes'](_0x55901a(0x2c9))&_0x180aff['isMaster']){jz=Number(_0x180aff[_0x55901a(0x323)][_0x55901a(0x339)](/#以图生草降噪/g,'')[_0x55901a(0x28b)]())/0x64,_0x180aff['reply'](_0x55901a(0x2f9)+String(jz)),console[_0x55901a(0x20e)](jz);return;}if(zt==0x0&&sc==0x0&&_0x180aff[_0x55901a(_0x49d48f._0x782e2d)][_0x55901a(_0x49d48f._0x460ffc)]('#以图生草')){if(_0x180aff[_0x55901a(_0x49d48f._0x18aab6)]){_0x180aff[_0x55901a(_0x49d48f._0x3d439d)]('以图生草暂不支持私聊');return;}dqpz();let _0x9b9693=_0x53c071['parse'](_0x43967c[_0x55901a(_0x49d48f._0x391102)](_0x55901a(_0x49d48f._0x52db4d),_0x55901a(0x228))),_0x787bd5=_0x9b9693['blackqq'][_0x55901a(0x32b)](_0x482f98=>_0x482f98==_0x180aff[_0x55901a(0x2bf)]),_0x5d0d07=_0x9b9693[_0x55901a(0x1f5)][_0x55901a(_0x49d48f._0x2eaffc)](_0x4d3bae=>_0x4d3bae==_0x180aff[_0x55901a(0x267)]);if(_0x5d0d07!=-0x1){_0x180aff['reply'](_0x55901a(_0x49d48f._0x1e604a));return;}if(_0x787bd5!=-0x1){_0x180aff[_0x55901a(_0x49d48f._0x3f1927)](_0x55901a(0x34e));return;}let _0x59f3e6='';if(dqjk==0x0){try{_0x59f3e6=_0x43967c['readFileSync'](_0x55901a(_0x49d48f._0x18123e));}catch{_0x180aff[_0x55901a(0x2b0)](_0x55901a(0x21b));return;}_0x59f3e6=_0x59f3e6['toString']();let _0x5e0278=_0x53c071['parse'](_0x43967c[_0x55901a(_0x49d48f._0x4ea8f5)](_0x55901a(_0x49d48f._0x3e79d3),_0x55901a(0x228)));_0x5e0278=_0x5e0278[_0x55901a(0x1e4)][0x0];try{let _0x3423f9=_0x55901a(_0x49d48f._0x1b4d92)+_0x59f3e6+'&qq='+String(_0x5e0278);res=await _0x320715(_0x3423f9,{'agent':isdl?await getAgent():''}),console['log'](_0x55901a(_0x49d48f._0xe45021));}catch(_0x180b1a){console[_0x55901a(0x20e)](_0x180b1a),console['log'](_0x55901a(0x203));}res=await res['text']();if(res['includes'](_0x55901a(_0x49d48f._0x416781))==![]){_0x180aff[_0x55901a(0x2b0)](_0x55901a(_0x49d48f._0xa34d60)),console[_0x55901a(_0x49d48f._0x242fd5)](res);return;}}if(zr==0x1&!_0x180aff[_0x55901a(_0x49d48f._0x25f671)]){_0x180aff[_0x55901a(0x2b0)](_0x55901a(0x2cc));return;}console[_0x55901a(_0x49d48f._0x242fd5)]('以图生草'),id=_0x180aff['user_id'],chang=0x200,kuan=0x200,gjc2=_0x180aff[_0x55901a(_0x49d48f._0x491874)][_0x55901a(_0x49d48f._0x22c7cf)](/#以图生草/g,'')[_0x55901a(_0x49d48f._0x4f7590)]();var _0x5809b3=new RegExp('[\x5cu4E00-\x5cu9FFF]+','g');let _0x261fd7='',_0x276082='';if(_0x5809b3[_0x55901a(0x1d6)](gjc2)&_0x180aff[_0x55901a(_0x49d48f._0x5aaf48)]['includes']('序号')==![]){let _0x49681c=_0x55901a(0x289),_0x4c36a3=await _0x320715(_0x49681c);_0x261fd7=await _0x4c36a3[_0x55901a(0x29a)](),_0x261fd7=_0x261fd7[_0x55901a(_0x49d48f._0x1e0e14)];for(let _0x22696d=0x0;_0x22696d<_0x261fd7[_0x55901a(_0x49d48f._0x10b27a)];_0x22696d++){if(gjc2[_0x55901a(0x209)](_0x261fd7[_0x22696d]['zw'])==!![]&_0x261fd7[_0x22696d]['zw']!=''){_0x276082=_0x261fd7[_0x22696d]['zw'],gjc2=gjc2[_0x55901a(0x339)](new RegExp(_0x276082,'g'),_0x55901a(0x2cd)),_0x276082=_0x261fd7[_0x22696d]['pt'];break;}}}console[_0x55901a(0x20e)](gjc2);if(_0x5809b3[_0x55901a(0x1d6)](gjc2)){console[_0x55901a(_0x49d48f._0x1f698e)](_0x55901a(_0x49d48f._0x20314b));let _0x5c20f5=_0x55901a(_0x49d48f._0x537391)+gjc2,_0x56b64e=await _0x320715(_0x5c20f5),_0x16a4bb=await _0x56b64e[_0x55901a(_0x49d48f._0x5beef4)]();_0x16a4bb=_0x16a4bb[_0x55901a(_0x49d48f._0x22c517)](/有道翻译查询结果/g,'')[_0x55901a(0x28b)](),_0x16a4bb=_0x16a4bb[_0x55901a(_0x49d48f._0x22c517)](/翻译后/g,'')['trim'](),_0x16a4bb=_0x16a4bb[_0x55901a(0x339)](/翻译前/g,'')['trim'](),_0x16a4bb=_0x16a4bb[_0x55901a(_0x49d48f._0x2e3165)](/:/g,'')[_0x55901a(_0x49d48f._0x4f7590)](),_0x16a4bb=_0x16a4bb['replace'](new RegExp(gjc2,'g'),''),gjc2=_0x276082+'\x20'+_0x16a4bb,console[_0x55901a(_0x49d48f._0x242fd5)](gjc2);}else console[_0x55901a(_0x49d48f._0x181bb9)]('是英文');zt=0x1,ycqx=setTimeout(()=>{const _0x18d292=_0x55901a;if(zt==0x1){zt=0x0,_0x180aff[_0x18d292(_0x4651e4._0xbdf549)](_0x18d292(0x30d));return;}},0x7530),_0x180aff[_0x55901a(_0x49d48f._0x2478f7)]([segment['at'](id),'请发送图片']);return;}}if(sc==0x0&_0x180aff[_0x55901a(_0x49d48f._0x1f16ec)]&zt==0x1&_0x180aff['img']!=undefined){clearTimeout(ycqx);let _0x470dc4=_0x53c071[_0x55901a(0x21c)](_0x43967c[_0x55901a(0x351)]('./plugins/earth-k-plugin/config/config.yaml',_0x55901a(0x228)));if(_0x180aff['user_id']==id&zt==0x1){sc=0x1;let _0x3e7fbc=await imgUrlToBase64(_0x180aff['img'][0x0][_0x55901a(0x339)](/https/g,'http')[_0x55901a(0x28b)]()),_0x5945c4=_0x3e7fbc[_0x55901a(0x313)];_0x43967c[_0x55901a(0x208)](_0x55901a(0x1f8),_0x5945c4[_0x55901a(0x360)](),_0x55901a(0x348),_0x2dde6f=>{const _0x2624c1=_0x55901a;_0x2dde6f?console[_0x2624c1(_0x29ea4e._0x24019d)]('写入文件错误'):console[_0x2624c1(0x20e)]('写入文件成功');}),await sleep(0x1f4);let _0x169253=_0x2cba66(_0x55901a(_0x49d48f._0x20e539)),_0x509067=_0x169253[_0x55901a(0x283)],_0x18aa97=_0x169253[_0x55901a(_0x49d48f._0x4415b0)];_0x509067=Math[_0x55901a(_0x49d48f._0x59e1f0)](_0x509067/0x40),_0x18aa97=Math[_0x55901a(0x31a)](_0x18aa97/0x40);let _0xda50f8;_0x509067>_0x18aa97&&(_0xda50f8=_0x509067/_0x18aa97,_0x18aa97=beishu*0x40,_0x509067=Math[_0x55901a(0x31a)](beishu*_0xda50f8)*0x40);_0x18aa97>_0x509067&&(_0xda50f8=_0x18aa97/_0x509067,_0x509067=beishu*0x40,_0x18aa97=Math[_0x55901a(_0x49d48f._0x2f2da1)](beishu*_0xda50f8)*0x40);_0x18aa97==_0x509067&&(_0x509067=0x300,_0x18aa97=0x300,_0xda50f8=0x1);console[_0x55901a(0x20e)](_0x509067,_0x18aa97,_0xda50f8);var _0x3499b7={'init_images':[_0x55901a(_0x49d48f._0x45fb51)+_0x5945c4],'denoising_strength':0x1-xsd,'prompt':gjc2,'styles':[_0x55901a(0x2f1)],'seed':-0x1,'steps':0x28,'cfg_scale':guimo+0x2,'width':_0x18aa97,'height':_0x509067,'negative_prompt':'lowres,nude,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry,\x20owres,\x20bad\x20anatomy,\x20bad\x20hands,\x20text,\x20error,\x20missing\x20fingers,\x20extra\x20digit,\x20fewer\x20digits,\x20cropped,\x20worst\x20quality,\x20low\x20quality,\x20normal\x20quality,\x20jpeg\x20artifacts,\x20signature,\x20watermark,\x20username,\x20blurry','sampler_index':_0x55901a(0x2ae)};_0x180aff['reply']('好的,我开始以图生草了'),zt=0x0;try{res=await _0x320715(imgdz,{'method':_0x55901a(0x2f7),'agent':isdl?await getAgent():'','body':JSON['stringify'](_0x3499b7),'headers':{'Content-Type':_0x55901a(0x1d4),'User-Agent':_0x55901a(_0x49d48f._0x58e354)}});let _0x1aedcc=await res[_0x55901a(0x29a)]();_0x1aedcc=_0x1aedcc[_0x55901a(0x211)],_0x180aff['reply'](_0x55901a(_0x49d48f._0x3ba7ac)),await _0x43967c[_0x55901a(0x208)](_0x55901a(_0x49d48f._0x32d986),_0x1aedcc[_0x55901a(0x360)](),'base64',_0x1ddc67=>{const _0xde9a0c=_0x55901a;_0x1ddc67?console[_0xde9a0c(_0x42bca7._0x2ff258)](_0xde9a0c(0x1ee)):console[_0xde9a0c(_0x42bca7._0x1780d2)](_0xde9a0c(0x232));}),await sleep(0x1f4),msg2=[segment['at'](_0x180aff[_0x55901a(_0x49d48f._0x749213)]),segment[_0x55901a(0x33e)](ml+_0x55901a(_0x49d48f._0x3c780e))],await sleep(0x1f4),iscd=0x0,sc=0x0,id='';let _0x3f76a5=_0x470dc4['sesequn'][_0x55901a(_0x49d48f._0x2eaffc)](_0x3b1fa7=>_0x3b1fa7==_0x180aff[_0x55901a(0x267)]);tpjc='';ss==0x0&_0x3f76a5==-0x1&&(await main(_0x55901a(_0x49d48f._0x4dd72a)),console[_0x55901a(_0x49d48f._0x1f698e)](tpjc));let _0x286d3c,_0x57e48b=_0x180aff[_0x55901a(_0x49d48f._0x1492f1)]?.['card']?_0x180aff[_0x55901a(0x277)]['card']:_0x180aff[_0x55901a(0x277)]?.['nickname'],_0x32cb5b=_0x53c071[_0x55901a(0x21c)](_0x43967c[_0x55901a(_0x49d48f._0x4ea8f5)](_0x55901a(_0x49d48f._0x51623a),_0x55901a(0x228)));_0x32cb5b=_0x32cb5b['masterQQ'][0x0];tpjc=='不合规'&ss==0x0?(_0x286d3c=await _0x180aff['reply']('又画涩图!你画涩图我已经发给主人了,别再画了!'),msg2=[_0x55901a(_0x49d48f._0x186097),_0x55901a(0x2ce)+_0x57e48b+'('+String(_0x180aff[_0x55901a(_0x49d48f._0x8aca9d)])+')\x0a',_0x55901a(0x224)+_0x180aff['group'][_0x55901a(_0x49d48f._0x43a366)]+'('+String(_0x180aff[_0x55901a(_0x49d48f._0x3446b4)])+')\x0a',_0x55901a(_0x49d48f._0x14872b),segment[_0x55901a(_0x49d48f._0x5978d7)](_0x55901a(0x31c))],jhft==0x1&&Bot['pickUser'](_0x32cb5b)['sendMsg'](msg2)):_0x286d3c=await _0x180aff[_0x55901a(_0x49d48f._0x3d439d)](msg2);iscd=0x1;if(_0x286d3c&&_0x286d3c[_0x55901a(0x2a5)]&&isch==0x1&&_0x180aff['isGroup']){let _0xbe2025=_0x180aff['group'];setTimeout(()=>{const _0x3684cc=_0x55901a;_0xbe2025[_0x3684cc(0x30b)](_0x286d3c[_0x3684cc(0x2a5)]);},timeout);}startTimeMS=new Date()[_0x55901a(_0x49d48f._0x47c57e)](),t=setTimeout(()=>{iscd=0x0,sc=0x0,id='';},cd);}catch(_0x2f6c5a){console[_0x55901a(_0x49d48f._0xdbbf93)](_0x2f6c5a),_0x180aff[_0x55901a(_0x49d48f._0x3d439d)](_0x55901a(0x347)),kg=0x0,iscd=0x0,sc=0x0;return;}}}else{if(_0x180aff[_0x55901a(_0x49d48f._0x28753e)]==undefined&_0x180aff[_0x55901a(0x323)]!=undefined){if(_0x180aff[_0x55901a(0x323)]['includes']('#以图生草')){if(iscd==0x1){console[_0x55901a(0x20e)](iscd);let _0x560409=cd-(new Date()[_0x55901a(0x2e6)]()-startTimeMS);_0x560409=Math[_0x55901a(0x36b)](_0x560409/0x3e8);if(_0x560409<0x0){sc=0x0,id='';return;}_0x180aff[_0x55901a(0x2b0)](_0x55901a(_0x49d48f._0x44992e)+String(_0x560409)+_0x55901a(_0x49d48f._0x2f0c4f));}else _0x180aff[_0x55901a(_0x49d48f._0x3d439d)](_0x55901a(_0x49d48f._0xca20e5));}}}}async[_0xeb0f56(0x32e)](_0x187a35){const _0x58c261={_0x314186:0x21c,_0x1c8d5f:0x228,_0xb8be0e:0x32b,_0x191ff2:0x32b,_0x5d773b:0x2b0,_0x22988e:0x2b0,_0x13e43b:0x2d4,_0x5e80d5:0x264,_0x53d163:0x323,_0x36313b:0x209,_0x5b1dfa:0x2d4,_0xc229ed:0x275,_0x22c591:0x264,_0x5491fc:0x264,_0x2219ae:0x2b0,_0x5b7aaa:0x1d7,_0x133207:0x320,_0x5d40fd:0x346,_0x431fad:0x209,_0x8b5591:0x339,_0x3a87df:0x20e,_0x55b016:0x1ce,_0x381626:0x2d2,_0xb9c1e:0x339,_0x1fb3fd:0x339,_0x325ddc:0x339,_0x483422:0x359,_0x514d29:0x28b,_0xd11b8f:0x2a2,_0x5d327d:0x243,_0x3f2b58:0x29a,_0x43fcb5:0x20e,_0x2fd0e0:0x295,_0xe405ba:0x23b,_0x3e9c6d:0x2ae,_0x5b7c05:0x324,_0xe389d7:0x324,_0x1a27c9:0x2ae,_0x58b964:0x29d,_0x58142b:0x247,_0xb01c8d:0x26c,_0x2e1dc9:0x360,_0x1b7e57:0x2f3,_0x1d1fc7:0x360,_0x1efbb8:0x21b,_0x1ca5f2:0x360,_0x1eebe3:0x2bb,_0x4abe48:0x203,_0x2f6b9c:0x206,_0x542d27:0x211,_0x91b68c:0x358,_0x1cbb04:0x360,_0x1ea47c:0x277,_0x25db42:0x1ef,_0x288b1c:0x2bf,_0x10305a:0x267,_0x2cea96:0x254,_0x3d1724:0x2a5,_0x238f23:0x2c5,_0x283b97:0x2e6,_0x4ccc60:0x347,_0x414148:0x32f},_0x29fa6b={_0x316a6e:0x20e,_0x2d9fce:0x1ee},_0x5f1d6a={_0x19b9f2:0x21c,_0x342443:0x360,_0x1ce294:0x20e,_0x5f32b9:0x32b},_0x43b071={_0x478213:0x21f,_0x75f0c6:0x205,_0x3107a5:0x26e,_0x434c86:0x2bf},_0x59b2e1=_0xeb0f56;dqpz();let _0x5c4a53=_0x53c071[_0x59b2e1(_0x58c261._0x314186)](_0x43967c['readFileSync'](_0x59b2e1(0x24c),_0x59b2e1(_0x58c261._0x1c8d5f))),_0x45c97c=_0x5c4a53['blackqq'][_0x59b2e1(_0x58c261._0xb8be0e)](_0x241b04=>_0x241b04==_0x187a35[_0x59b2e1(0x2bf)]),_0x5f25ad=_0x5c4a53['blackqun'][_0x59b2e1(_0x58c261._0x191ff2)](_0x92b27c=>_0x92b27c==_0x187a35['group_id']);if(_0x5f25ad!=-0x1){_0x187a35[_0x59b2e1(_0x58c261._0x5d773b)](_0x59b2e1(0x241));return;}if(_0x45c97c!=-0x1){_0x187a35[_0x59b2e1(_0x58c261._0x22988e)]('你小子已经被封禁画图,请找主人解封。');return;}if(_0x187a35[_0x59b2e1(0x323)][_0x59b2e1(0x209)](_0x59b2e1(_0x58c261._0x13e43b))&!_0x187a35[_0x59b2e1(_0x58c261._0x5e80d5)]){_0x187a35[_0x59b2e1(0x2b0)]('你不是主人,不能用预设哦');return;}let _0x3e31fd,_0x271c21,_0xed6765;_0x187a35[_0x59b2e1(_0x58c261._0x53d163)][_0x59b2e1(_0x58c261._0x36313b)](_0x59b2e1(_0x58c261._0x5b1dfa))==![]&&(_0xed6765=_0x187a35[_0x59b2e1(0x323)][_0x59b2e1(0x339)](/#绘个图/g,'')['trim']());console['log'](_0x59b2e1(_0x58c261._0xc229ed)+kg2);if(kg2==0x0&_0x187a35[_0x59b2e1(0x2c5)]|_0x187a35[_0x59b2e1(_0x58c261._0x22c591)]){if(zr==0x1&!_0x187a35[_0x59b2e1(_0x58c261._0x5491fc)]){_0x187a35[_0x59b2e1(_0x58c261._0x2219ae)](_0x59b2e1(_0x58c261._0x5b7aaa));return;}kg2=0x1;let _0x542384=_0xed6765,_0x220147='',_0x1fe842='';var _0x3d3db0=new RegExp(_0x59b2e1(0x29f),'g');if(_0x3d3db0[_0x59b2e1(0x1d6)](_0x542384)&_0x187a35[_0x59b2e1(_0x58c261._0x53d163)][_0x59b2e1(0x209)]('序号')==![]){let _0x5c04e9='http://www.tukuai.one/wj.php',_0x2245ca=await _0x320715(_0x5c04e9);_0x220147=await _0x2245ca[_0x59b2e1(0x29a)](),_0x220147=_0x220147[_0x59b2e1(_0x58c261._0x133207)];for(let _0x2c7fe2=0x0;_0x2c7fe2<_0x220147[_0x59b2e1(_0x58c261._0x5d40fd)];_0x2c7fe2++){if(_0x542384[_0x59b2e1(_0x58c261._0x431fad)](_0x220147[_0x2c7fe2]['zw'])==!![]&_0x220147[_0x2c7fe2]['zw']!=''){_0x1fe842=_0x220147[_0x2c7fe2]['zw'],_0x542384=_0x542384[_0x59b2e1(_0x58c261._0x8b5591)](new RegExp(_0x1fe842,'g'),'\x20'),_0x1fe842=_0x220147[_0x2c7fe2]['pt'];break;}}}console[_0x59b2e1(_0x58c261._0x3a87df)](_0x542384);if(_0x3d3db0['test'](_0x542384)&_0x187a35[_0x59b2e1(0x323)]['includes']('序号')==![]){console[_0x59b2e1(_0x58c261._0x3a87df)](_0x59b2e1(_0x58c261._0x55b016));let _0x4fcf95=_0x59b2e1(_0x58c261._0x381626)+_0x542384,_0x1fd996=await _0x320715(_0x4fcf95),_0x23500d=await _0x1fd996[_0x59b2e1(0x30c)]();_0x23500d=_0x23500d[_0x59b2e1(_0x58c261._0xb9c1e)](/有道翻译查询结果/g,'')[_0x59b2e1(0x28b)](),_0x23500d=_0x23500d[_0x59b2e1(_0x58c261._0x1fb3fd)](/翻译后/g,'')['trim'](),_0x23500d=_0x23500d[_0x59b2e1(0x339)](/翻译前/g,'')['trim'](),_0x23500d=_0x23500d[_0x59b2e1(_0x58c261._0x325ddc)](/:/g,'')[_0x59b2e1(0x28b)](),_0x23500d=_0x23500d[_0x59b2e1(0x339)](new RegExp(_0x542384,'g'),''),res4=_0x1fe842+'\x20'+_0x23500d,console[_0x59b2e1(0x20e)](res4);}else console['log'](_0x59b2e1(_0x58c261._0x483422)),res4=_0x1fe842+'\x20'+_0x542384,console['log'](res4);let _0x1e246f,_0x28a822;if(_0x187a35[_0x59b2e1(0x323)][_0x59b2e1(0x209)](_0x59b2e1(_0x58c261._0x5b1dfa))&_0x187a35[_0x59b2e1(0x264)]){_0x271c21=_0x187a35[_0x59b2e1(0x323)][_0x59b2e1(0x339)](/#预设/g,'')[_0x59b2e1(_0x58c261._0x514d29)]();let _0x448984=ml+_0x59b2e1(_0x58c261._0xd11b8f);_0x43967c[_0x59b2e1(0x36a)](_0x448984[_0x59b2e1(0x360)](),_0x43967c[_0x59b2e1(0x250)]['R_OK'],_0x594151=>{const _0x977e1f=_0x59b2e1;if(_0x594151){let _0x697bc=ml+_0x977e1f(_0x43b071._0x478213)+'ys'+_0x977e1f(0x255),_0x101b0a={'shuju':[{'name':_0x977e1f(_0x43b071._0x75f0c6),'gjc':_0x977e1f(0x2c6)}]};_0x43967c[_0x977e1f(_0x43b071._0x3107a5)](_0x697bc['toString'](),JSON['stringify'](_0x101b0a),'utf-8');}else console[_0x977e1f(0x20e)](_0x187a35[_0x977e1f(_0x43b071._0x434c86)]['toString']()+_0x977e1f(0x2af));}),await sleep(0x1f4),await _0x43967c[_0x59b2e1(0x231)](_0x448984,(_0x418871,_0x5a85da)=>{const _0x5d15e3=_0x59b2e1;_0x3e31fd=JSON[_0x5d15e3(_0x5f1d6a._0x19b9f2)](_0x5a85da[_0x5d15e3(_0x5f1d6a._0x342443)]()),_0x28a822=_0x3e31fd[_0x5d15e3(0x1f3)];var _0x81f56a=new RegExp('[\x5cu4E00-\x5cu9FFF]+','g');if(_0x81f56a[_0x5d15e3(0x1d6)](_0x271c21))console[_0x5d15e3(_0x5f1d6a._0x1ce294)](_0x5d15e3(0x22b)),_0x1e246f=_0x28a822[_0x5d15e3(_0x5f1d6a._0x5f32b9)](_0x1a9b86=>_0x1a9b86[_0x5d15e3(0x320)]==_0x271c21);else{_0x1e246f=Number(_0x271c21)-0x1;if(_0x1e246f>_0x28a822['length']){_0x1e246f=-0x1;return;}}}),await sleep(0x1f4),console['log'](_0x1e246f);if(_0x1e246f!=-0x1)res4=_0x28a822[_0x1e246f]['gjc'];else{_0x187a35[_0x59b2e1(0x2b0)](_0x59b2e1(0x1e7));return;}}if(_0x187a35['msg'][_0x59b2e1(0x209)]('序号')){res4=res4[_0x59b2e1(_0x58c261._0x1fb3fd)](/序号/g,'')[_0x59b2e1(0x28b)]();let _0xc2b41c=_0x59b2e1(_0x58c261._0x5d327d),_0x146a7e=await _0x320715(_0xc2b41c,{'agent':isdl?await getAgent():''}),_0x2eb914=await _0x146a7e[_0x59b2e1(_0x58c261._0x3f2b58)](),_0x5afbac=_0x2eb914[_0x59b2e1(0x320)],_0x5db065=_0x187a35[_0x59b2e1(_0x58c261._0x53d163)][_0x59b2e1(0x285)](0x6,0x9);const _0x52308d=/\d+/;let _0x29f222=_0x5db065[_0x59b2e1(0x2b2)](_0x52308d),_0x20b02e=_0x29f222[0x0];res4=res4['replace'](new RegExp(_0x20b02e,'g'),''),_0x29f222=Number(_0x29f222[0x0]);try{res4=_0x5afbac[_0x29f222+0x1]['pt']+res4,console[_0x59b2e1(_0x58c261._0x43fcb5)](res4);}catch{_0x187a35[_0x59b2e1(_0x58c261._0x5d773b)]('没有这个序号哦');return;}}await sleep(0x1f4),_0x187a35[_0x59b2e1(0x2b0)](_0x59b2e1(_0x58c261._0x2fd0e0)+_0x1fe842);let _0x38748c=Math[_0x59b2e1(0x31a)](Math[_0x59b2e1(_0x58c261._0xe405ba)]()*0x2);changkuan==0x1&&(_0x38748c=0x1);changkuan==0x2&&(_0x38748c=0x0);_0x38748c==0x0&&(changdu=0x240,kuandu=0x180);_0x38748c==0x1&&(changdu=0x180,kuandu=0x240);chicun==0x1&&(_0x38748c==0x0&&(changdu=0x300,kuandu=0x200),_0x38748c==0x1&&(changdu=0x200,kuandu=0x300));console[_0x59b2e1(_0x58c261._0x3a87df)](_0x38748c);var _0x45a8d4='abc',_0x4446f5=[res4,pc,'None','None',0x14,_0x59b2e1(_0x58c261._0x3e9c6d),![],![],0x1,0x1,0x7,-0x1,-0x1,0x0,0x0,0x0,![],changdu,kuandu,![],![],0.7,_0x59b2e1(_0x58c261._0x5b7c05),![],![],null,'','Seed','','Steps','',!![],![],null,'',''],_0x58e4e4=[res4,pc,'None',_0x59b2e1(_0x58c261._0xe389d7),0x1c,_0x59b2e1(_0x58c261._0x1a27c9),![],![],0x1,0x1,0xb,-0x1,-0x1,0x0,0x0,0x0,![],0x200,0x200,![],![],0.7,_0x59b2e1(0x324),![],![],null,'',_0x59b2e1(0x225),'',_0x59b2e1(0x24e),'',!![],![],null,'',''];let _0x3fabf8=_0x59b2e1(_0x58c261._0x58b964),_0x986385=Math['floor'](Math[_0x59b2e1(0x23b)]()*0xb6cff090),_0x45bdd7=_0x59b2e1(_0x58c261._0x58142b)+moxing+_0x59b2e1(_0x58c261._0xb01c8d)+guimo[_0x59b2e1(0x360)]()+_0x59b2e1(0x354)+bushu[_0x59b2e1(_0x58c261._0x2e1dc9)]()+_0x59b2e1(_0x58c261._0x1b7e57)+_0x986385[_0x59b2e1(_0x58c261._0x1d1fc7)](),_0x36fea5='';if(dqjk==0x0){try{_0x36fea5=_0x43967c[_0x59b2e1(0x351)](_0x59b2e1(0x216));}catch{_0x187a35[_0x59b2e1(0x2b0)](_0x59b2e1(_0x58c261._0x1efbb8));return;}_0x36fea5=_0x36fea5[_0x59b2e1(_0x58c261._0x1ca5f2)]();let _0x64824e=_0x53c071[_0x59b2e1(0x21c)](_0x43967c['readFileSync']('./config/config/other.yaml',_0x59b2e1(_0x58c261._0x1c8d5f)));_0x64824e=_0x64824e[_0x59b2e1(0x1e4)][0x0];try{let _0x29e4a2=_0x59b2e1(0x2aa)+_0x36fea5+_0x59b2e1(_0x58c261._0x1eebe3)+String(_0x64824e);res=await _0x320715(_0x29e4a2,{'agent':isdl?await getAgent():''}),console['log'](_0x59b2e1(0x2e4));}catch(_0x3930c2){console['log'](_0x3930c2),console[_0x59b2e1(0x20e)](_0x59b2e1(_0x58c261._0x4abe48));}res=await res[_0x59b2e1(0x30c)]();if(res[_0x59b2e1(0x209)](_0x59b2e1(0x309))==![]){_0x187a35['reply']('很抱歉,你的密钥错误。'),console[_0x59b2e1(_0x58c261._0x43fcb5)](res);return;}}try{let _0x531abe=await _0x320715(txtdz,{'method':_0x59b2e1(0x2b4),'agent':isdl?await getAgent():'','headers':{'Content-Type':_0x59b2e1(0x1d4),'authorization':_0x59b2e1(_0x58c261._0x2f6b9c)},'body':JSON[_0x59b2e1(0x33a)]({'enable_hr':!![],'denoising_strength':0.7,'hr_scale':0x2,'hr_upscaler':_0x59b2e1(0x307),'hr_second_pass_steps':0xa,'prompt':res4,'seed':-0x1,'sampler_name':moxing,'steps':0x14,'cfg_scale':0x7,'width':changdu,'height':kuandu,'negative_prompt':pc})});res4=await _0x531abe[_0x59b2e1(_0x58c261._0x3f2b58)](),res=res4[_0x59b2e1(_0x58c261._0x542d27)][0x0],_0x187a35[_0x59b2e1(0x2b0)](_0x59b2e1(_0x58c261._0x91b68c)),await _0x43967c[_0x59b2e1(0x208)]('./resources/ht.png',res[_0x59b2e1(_0x58c261._0x1cbb04)](),'base64',_0x450ebb=>{const _0x30f34f=_0x59b2e1;if(_0x450ebb)console[_0x30f34f(_0x29fa6b._0x316a6e)](_0x30f34f(_0x29fa6b._0x2d9fce));else{}});iscanshu==0x0&&(_0x45bdd7='');await sleep(0x1f4);let _0x132ed5=_0x5c4a53['sesequn']['findIndex'](_0x298b81=>_0x298b81==_0x187a35[_0x59b2e1(0x267)]);tpjc='';ss==0x0&_0x132ed5==-0x1&&(await main(_0x59b2e1(0x254)),console['log'](tpjc));let _0x178530,_0x29dc05=_0x187a35['member']?.[_0x59b2e1(0x350)]?_0x187a35[_0x59b2e1(_0x58c261._0x1ea47c)][_0x59b2e1(0x350)]:_0x187a35[_0x59b2e1(0x277)]?.[_0x59b2e1(0x304)];tpjc==_0x59b2e1(0x319)&ss==0x0?(_0x178530=await _0x187a35['reply'](_0x59b2e1(0x1d1)),msg2=[_0x59b2e1(_0x58c261._0x25db42),'昵称:'+_0x29dc05+'('+String(_0x187a35[_0x59b2e1(_0x58c261._0x288b1c)])+')\x0a',_0x59b2e1(0x224)+_0x187a35[_0x59b2e1(0x282)]['name']+'('+String(_0x187a35[_0x59b2e1(_0x58c261._0x10305a)])+')\x0a','在画涩图被我抓到了',segment['image'](_0x59b2e1(0x254))],jhft==0x1&&Bot[_0x59b2e1(0x355)](zhuren)['sendMsg'](msg2)):(msg2=[segment[_0x59b2e1(0x33e)](_0x59b2e1(_0x58c261._0x2cea96)),_0x45bdd7],_0x178530=await _0x187a35['reply'](msg2,ishuifu));iscd=0x1,console[_0x59b2e1(_0x58c261._0x3a87df)](_0x178530[_0x59b2e1(_0x58c261._0x3d1724)],isch);if(_0x178530&&_0x178530['message_id']&&isch==0x1&&_0x187a35[_0x59b2e1(_0x58c261._0x238f23)]){let _0x2b5f16=_0x187a35[_0x59b2e1(0x282)];setTimeout(()=>{const _0x3db41a=_0x59b2e1;_0x2b5f16[_0x3db41a(0x30b)](_0x178530[_0x3db41a(0x2a5)]);},timeout);}startTimeMS=new Date()[_0x59b2e1(_0x58c261._0x283b97)](),t=setTimeout(()=>{kg2=0x0,iscd=0x0;},cd);}catch{_0x187a35[_0x59b2e1(0x2b0)](_0x59b2e1(_0x58c261._0x4ccc60)),kg2=0x0,iscd=0x0;return;}}else{if(iscd==0x1&startTimeMS!=undefined){console[_0x59b2e1(_0x58c261._0x3a87df)](0x756b5b3);let _0x1916bc=cd-(new Date()[_0x59b2e1(0x2e6)]()-startTimeMS);_0x1916bc=Math[_0x59b2e1(0x36b)](_0x1916bc/0x3e8);if(_0x1916bc<0x0){kg2=0x0;return;}_0x187a35[_0x59b2e1(0x2b0)](_0x59b2e1(0x301)+String(_0x1916bc)+_0x59b2e1(0x1f1));}else _0x187a35[_0x59b2e1(0x2b0)](_0x59b2e1(_0x58c261._0x414148));}}}async function imgUrlToBase64(_0x3bdc46){const _0x1ac029={_0x55df3c:0x288},_0x3245bd={_0x471c79:0x238};let _0xe216c8;return new Promise(function(_0x1d1f71,_0x251a4e){const _0x3dd85b={_0x3f5dbc:0x30a,_0x11352b:0x2ab},_0x41436f={_0x293b74:0x348},_0x537783=_0x2c08;let _0x1b20de=http[_0x537783(_0x1ac029._0x55df3c)](_0x3bdc46,function(_0x2474c3){const _0x5a6e9a={_0x190465:0x346},_0x84492=_0x537783;var _0x34cc6c=[],_0x4e92f5=0x0;_0x2474c3['on'](_0x84492(_0x3dd85b._0x3f5dbc),function(_0x5434c4){const _0x97afe7=_0x84492;_0x34cc6c[_0x97afe7(0x269)](_0x5434c4),_0x4e92f5+=_0x5434c4[_0x97afe7(_0x5a6e9a._0x190465)];}),_0x2474c3['on'](_0x84492(_0x3dd85b._0x11352b),function(_0x32b524){const _0x2051b6=_0x84492;var _0x123ebe=Buffer[_0x2051b6(0x25a)](_0x34cc6c,_0x4e92f5);_0xe216c8=_0x123ebe[_0x2051b6(0x360)](_0x2051b6(_0x41436f._0x293b74)),_0x1d1f71({'success':!![],'base64Img':_0xe216c8});});});_0x1b20de['on'](_0x537783(0x2c7),_0x3ea6e0=>{const _0x59d9da=_0x537783;_0x1d1f71({'success':![],'errmsg':_0x3ea6e0[_0x59d9da(_0x3245bd._0x471c79)]});}),_0x1b20de['end']();});}function sleep(_0xa2b846){return new Promise(_0x408bec=>setTimeout(_0x408bec,_0xa2b846));}async function dqpz(){const _0xcb16d5={_0xa062f4:0x345,_0x1f6a50:0x2cb,_0x45783f:0x345,_0x492b60:0x2e0,_0x38cb2a:0x351,_0xff2b81:0x24c,_0x1a092c:0x1eb,_0x45ff6c:0x25e,_0x3f14ed:0x256},_0x475ce8={_0x3a8579:0x26e,_0xfe34f4:0x33a,_0x44c0eb:0x20e},_0x279ffe=_0xeb0f56;let _0x15ba98=_0x279ffe(0x21d);_0x43967c['access'](_0x15ba98[_0x279ffe(0x360)](),_0x43967c['constants'][_0x279ffe(0x31f)],_0x145eb4=>{const _0x5f1fb0=_0x279ffe;if(_0x145eb4){let _0x30983d={'yus':[{'mc':'高达','tga':'gundam'}]};_0x43967c[_0x5f1fb0(_0x475ce8._0x3a8579)](_0x15ba98,_0x53c071[_0x5f1fb0(_0x475ce8._0xfe34f4)](_0x30983d));}else console[_0x5f1fb0(_0x475ce8._0x44c0eb)]();});let _0x537160=_0x53c071['parse'](_0x43967c['readFileSync'](_0x279ffe(0x266),'utf8'));dqjk=_0x537160[_0x279ffe(_0xcb16d5._0xa062f4)];_0x537160[_0x279ffe(0x345)]!=0x0&&(txtdz=_0x537160['dizhi'][_0x537160['dqjk']-0x1]['jk']+'/sdapi/v1/txt2img',imgdz=_0x537160[_0x279ffe(_0xcb16d5._0x1f6a50)][_0x537160['dqjk']-0x1]['jk']+_0x279ffe(0x326),beishu=0x8);_0x537160[_0x279ffe(_0xcb16d5._0x45783f)]==0x0&&(txtdz='https://www.tukuai.one/ht.php',imgdz=_0x279ffe(_0xcb16d5._0x492b60),beishu=0x6);zhuren=_0x53c071[_0x279ffe(0x21c)](_0x43967c[_0x279ffe(_0xcb16d5._0x38cb2a)](_0x279ffe(0x311),_0x279ffe(0x228))),zhuren=zhuren['masterQQ'][0x0];let _0x28ad8a=_0x53c071['parse'](_0x43967c[_0x279ffe(_0xcb16d5._0x38cb2a)](_0x279ffe(_0xcb16d5._0xff2b81),_0x279ffe(0x228)));_0x28ad8a['jhft']==undefined&&(_0x28ad8a[_0x279ffe(0x2c2)]=0x1),_0x28ad8a['sesequn']==undefined&&(_0x28ad8a['sesequn']=[]),_0x28ad8a[_0x279ffe(0x1f5)]==undefined&&(_0x28ad8a['blackqun']=[]),_0x28ad8a[_0x279ffe(0x2c0)]==undefined&&(_0x28ad8a['blackqq']=[]),cd=_0x28ad8a['cd'],cd<=0x7530&_0x537160[_0x279ffe(0x345)]==0x0&&(cd=0x7530,_0x28ad8a['cd']=0x7530,iscd=0x1,_0x28ad8a[_0x279ffe(_0xcb16d5._0x1a092c)]=0x1),_0x537160['dqjk']!=0x0&&(iscd=0x0,_0x28ad8a['cd']=0x0,cd=0x0,_0x28ad8a['iscd']=0x0),timeout=_0x28ad8a[_0x279ffe(_0xcb16d5._0x45ff6c)],isch=_0x28ad8a[_0x279ffe(0x239)],_0x28ad8a['pc']==undefined?(_0x28ad8a['pc']=pc,_0x28ad8a[_0x279ffe(0x229)]=moxing,_0x28ad8a[_0x279ffe(_0xcb16d5._0x3f14ed)]=chicun):(pc=_0x28ad8a['pc'],moxing=_0x28ad8a[_0x279ffe(0x229)],chicun=_0x28ad8a[_0x279ffe(0x256)]),zr=_0x28ad8a['zr'],ss=_0x28ad8a['ss'],jhft=_0x28ad8a['jhft'],console['log'](cd,timeout,isch,iscd,zr,ss),_0x43967c['writeFileSync']('./plugins/earth-k-plugin/config/config.yaml',_0x53c071[_0x279ffe(0x33a)](_0x28ad8a)),await sleep(0x1f4);}async function getAgent(){const _0x455b50={_0x1b6365:0x280},_0x8c068e={_0x268c19:0x2c7},_0x536097=_0xeb0f56;let _0x56c2cd=_0x5bfd20[_0x536097(_0x455b50._0x1b6365)]['proxyAddress'];if(!_0x56c2cd)return null;if(_0x56c2cd===_0x536097(0x314))return null;HttpsProxyAgent===''&&(HttpsProxyAgent=await import('https-proxy-agent')[_0x536097(0x1e3)](_0x2ee4b1=>{const _0x2f7d07=_0x536097;logger[_0x2f7d07(_0x8c068e._0x268c19)](_0x2ee4b1);}),HttpsProxyAgent=HttpsProxyAgent?HttpsProxyAgent[_0x536097(0x308)]:undefined);if(HttpsProxyAgent)return new HttpsProxyAgent(_0x56c2cd);return null;}async function main(_0x5822e2){const _0x16d682={_0x4fb046:0x2f7,_0x4522b8:0x2bc},_0x450401=_0xeb0f56;let _0x5bb737=getFileContentAsBase64(_0x5822e2),_0x4bc414=_0x450401(0x2df)+await getAccessToken(),_0x562c56=await _0x320715(_0x4bc414,{'method':_0x450401(_0x16d682._0x4fb046),'body':_0x450401(_0x16d682._0x4522b8)+encodeURIComponent(_0x5bb737),'headers':{'Content-Type':'application/x-www-form-urlencoded','Accept':_0x450401(0x1d4)}});_0x562c56=await _0x562c56[_0x450401(0x29a)](),tpjc=_0x562c56['conclusion'],console[_0x450401(0x20e)](tpjc);}async function getAccessToken(){const _0x13e900={_0x4435f6:0x21c,_0xebcc1a:0x2e7},_0x156a4d=_0xeb0f56;let _0x23451a=_0x53c071[_0x156a4d(_0x13e900._0x4435f6)](_0x43967c[_0x156a4d(0x351)]('./plugins/earth-k-plugin/config/config.yaml','utf8'));const _0x19b5a1=_0x23451a['ak'],_0x39fe21=_0x23451a['sk'];let _0x5f3d91=_0x156a4d(0x2d7)+_0x19b5a1+'&client_secret='+_0x39fe21,_0x24e2dc=await _0x320715(_0x5f3d91,{'method':_0x156a4d(0x2f7)});return _0x24e2dc=await _0x24e2dc[_0x156a4d(0x29a)](),_0x24e2dc=_0x24e2dc[_0x156a4d(_0x13e900._0xebcc1a)],_0x24e2dc;}async function getAccessToken2(){const _0x4b7dab={_0x52d2dd:0x306,_0x3538fb:0x2d7,_0x1a7703:0x1f0},_0x20a32e=_0xeb0f56,_0x28295c='Gfnqs8t8TVYxyuPwQXV3BsBU',_0x46dcd2=_0x20a32e(_0x4b7dab._0x52d2dd);let _0x232034=_0x20a32e(_0x4b7dab._0x3538fb)+_0x28295c+_0x20a32e(_0x4b7dab._0x1a7703)+_0x46dcd2,_0x4d67c2=await _0x320715(_0x232034,{'method':'post'});return _0x4d67c2=await _0x4d67c2[_0x20a32e(0x29a)](),_0x4d67c2=_0x4d67c2[_0x20a32e(0x2e7)],_0x4d67c2;}async function xingxi(_0x59eb66){const _0x18a25={_0x11eaf4:0x29a},_0x59c868={_0x1b37e4:0x1ee},_0x54ee23=_0xeb0f56;let _0x2b2ba3=getFileContentAsBase64(_0x59eb66),_0x4e42a7='https://aip.baidubce.com/rest/2.0/image-process/v1/color_enhance?access_token='+await getAccessToken2(),_0x39a7ad=await _0x320715(_0x4e42a7,{'method':'post','body':'image='+encodeURIComponent(_0x2b2ba3),'headers':{'Content-Type':_0x54ee23(0x27e),'Accept':'application/json'}});_0x39a7ad=await _0x39a7ad[_0x54ee23(_0x18a25._0x11eaf4)](),tpjg=_0x39a7ad[_0x54ee23(0x33e)];let _0x2e99b8=_0x54ee23(0x2e5)+await getAccessToken2(),_0x2d41be=await _0x320715(_0x2e99b8,{'method':'post','body':_0x54ee23(0x2bc)+encodeURIComponent(tpjg),'headers':{'Content-Type':_0x54ee23(0x27e),'Accept':_0x54ee23(0x1d4)}});_0x2d41be=await _0x2d41be['json'](),tpjg=_0x2d41be['image'],await _0x43967c[_0x54ee23(0x208)](_0x54ee23(0x254),tpjg[_0x54ee23(0x360)](),_0x54ee23(0x348),_0x2b2df9=>{const _0x745a55=_0x54ee23;if(_0x2b2df9)console[_0x745a55(0x20e)](_0x745a55(_0x59c868._0x1b37e4));else{}}),await sleep(0x1f4);}function getFileContentAsBase64(_0x1260dc){const _0x3270ee={_0x3d1374:0x351},_0x4cca92=_0xeb0f56,_0x4abf0f=require('fs');try{return _0x4abf0f[_0x4cca92(_0x3270ee._0x3d1374)](_0x1260dc,{'encoding':_0x4cca92(0x348)});}catch(_0x30b58e){throw new Error(_0x30b58e);}}function _0x2c08(_0x45b33a,_0x412937){const _0x4da655=_0x4da6();return _0x2c08=function(_0x2c0890,_0x4820c1){_0x2c0890=_0x2c0890-0x1cd;let _0x11ad6a=_0x4da655[_0x2c0890];return _0x11ad6a;},_0x2c08(_0x45b33a,_0x412937);}async function upload_image(_0x522cfd){const _0x5ab613={_0x44df7b:0x214,_0x5405ac:0x33b,_0x4baa35:0x33e,_0x3a15b2:0x2b6},_0x245b74=_0xeb0f56;return(await Bot[_0x245b74(_0x5ab613._0x44df7b)](Bot[_0x245b74(0x244)])[_0x245b74(_0x5ab613._0x5405ac)](segment[_0x245b74(_0x5ab613._0x4baa35)](_0x522cfd,!![])))[_0x245b74(_0x5ab613._0x3a15b2)][0x0];}