mixone
Version:
MixOne is a Node scaffolding tool implemented based on Vite, used for compiling HTML5, JavasCript, Vue, React and other codes. It supports packaging Web applications with multiple HTML entry points (BS architecture) and desktop installation packages (CS a
1 lines • 12.7 kB
JavaScript
const as=d;(function(e,f){const an=d,g=e();while(!![]){try{const h=parseInt(an(0x18e))/0x1*(parseInt(an(0x18d))/0x2)+parseInt(an(0x1f0))/0x3*(parseInt(an(0x1e5))/0x4)+-parseInt(an(0x1c9))/0x5*(-parseInt(an(0x1da))/0x6)+-parseInt(an(0x1a7))/0x7*(-parseInt(an(0x1d1))/0x8)+-parseInt(an(0x1b1))/0x9*(parseInt(an(0x17d))/0xa)+parseInt(an(0x216))/0xb*(-parseInt(an(0x1ed))/0xc)+-parseInt(an(0x1ab))/0xd;if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0x62e09));const b=(function(){const ao=d,e={'gdXfM':ao(0x1b5),'DWdnx':function(g,h){return g===h;},'KjZan':ao(0x1b4),'IObYC':ao(0x224),'WqgYb':ao(0x21c),'wHxdK':ao(0x1a2),'YScbT':ao(0x1c1),'roYES':'exportNamespaceFrom','OzXqH':ao(0x1f9),'VBGHZ':'YvwXc'};let f=!![];return function(g,h){const ap=ao,i={'gLAHY':e[ap(0x1ee)],'IHItH':e[ap(0x177)],'DIuEj':e[ap(0x1e7)],'eipEt':ap(0x182),'kVEry':e['YScbT'],'bDMIo':e['roYES'],'kOzEE':ap(0x1ad)};if(e[ap(0x1d7)](e['OzXqH'],e[ap(0x1a1)]))m[ap(0x17c)](n['node'][ap(0x1a4)])&&o[ap(0x179)](p[ap(0x1d0)][ap(0x1a4)][ap(0x1fd)],{'name':e[ap(0x185)]})&&q[ap(0x179)](r[ap(0x1d0)][ap(0x1a4)]['property'],{'name':'exposeInMainWorld'})&&v[ap(0x1b3)](w['node']);else{const k=f?function(){const aq=ap;if(h){if(e[aq(0x1d7)](e[aq(0x215)],e['KjZan'])){const l=h['apply'](g,arguments);return h=null,l;}else try{return m(n,{'sourceType':i[aq(0x205)],'plugins':[i['IHItH'],i[aq(0x1bd)],i[aq(0x1ec)],'classProperties',i[aq(0x1c6)],i[aq(0x1e4)]]});}catch(n){q[aq(0x204)](i['kOzEE'],n);throw new r(aq(0x1e0)+n[aq(0x1fc)]);}}}:function(){};return f=![],k;}};}()),a=b(this,function(){const ar=d,e={'VJYft':ar(0x208)};return a['toString']()[ar(0x18f)](e[ar(0x17b)])[ar(0x1ef)]()[ar(0x1c0)](a)[ar(0x18f)](e[ar(0x17b)]);});a();function d(a,b){const e=c();return d=function(f,g){f=f-0x177;let h=e[f];return h;},d(a,b);}const {parse}=require('@babel/parser'),traverse=require('@babel/traverse')['default'],generate=require(as(0x228))['default'],t=require(as(0x1aa));function generateMergedPreload(e,f){const at=as,g={'Yldqj':at(0x224),'WacUd':at(0x21c),'pJZEf':at(0x1a2),'dlLZy':at(0x182),'iEKRi':at(0x187),'wxlev':at(0x1c1),'kcmdz':at(0x1c5),'FvQTL':function(h,i){return h||i;},'GoeeT':function(h,i){return h!==i;},'tjZHT':at(0x1b9),'GbJgG':at(0x1de),'UxDsD':at(0x19f),'ojhsi':function(h,i){return h(i);},'dbefQ':function(h,i){return h(i);},'wWIbl':function(h,i){return h(i);},'UwvRz':function(h,i,j){return h(i,j);},'SfTbH':'single','WLjoC':at(0x1bc)};if(g[at(0x17a)](!e,!f)){if(g[at(0x1f4)](g[at(0x1d8)],g[at(0x1a0)]))throw new Error(g['UxDsD']);else h[at(0x1c4)](i,j);}try{const i=g['ojhsi'](parseToAst,e),j=g[at(0x1cd)](parseToAst,f),k=g[at(0x1cd)](collectRequires,i),l=collectRequires(j),m=mergeRequires(k,l),n=g[at(0x1cd)](collectExposes,i),o=g[at(0x214)](collectExposes,j),p=mergeExposes(n,o),q=g['wWIbl'](collectOtherStatements,i),r=g[at(0x198)](collectOtherStatements,j),s=[...q,...r],u=t[at(0x181)]([...m,...s,...p]);return g[at(0x196)](generate,u,{'retainLines':!![],'compact':![],'quotes':at(0x1dd),'concise':![],'jsescOption':{'quotes':g[at(0x1bb)]}})[at(0x200)];}catch(v){if(g[at(0x17f)]==='bCkub'){console[at(0x204)](at(0x1c3),v);throw new Error(at(0x20e)+v['message']);}else return g(h,{'sourceType':g[at(0x1ac)],'plugins':[g[at(0x1b7)],g[at(0x1c7)],g['dlLZy'],g[at(0x222)],g[at(0x195)],g[at(0x1d9)]]});}}function parseToAst(e){const au=as,f={'OxoZu':function(g,h,i){return g(h,i);},'jgbUy':au(0x224),'kltab':au(0x21c),'IyTbe':'jsx','BqXBO':au(0x187),'Csxjs':au(0x1c1),'kLSso':au(0x1c5)};try{return f[au(0x1f6)](parse,e,{'sourceType':f['jgbUy'],'plugins':[f['kltab'],f[au(0x186)],au(0x182),f[au(0x21a)],f[au(0x1ae)],f[au(0x1be)]]});}catch(g){console['error']('Error\x20occurred\x20while\x20parsing\x20code\x20to\x20AST:',g);throw new Error(au(0x1e0)+g[au(0x1fc)]);}}function collectRequires(e){const f={'wPVOm':function(h,i,j){return h(i,j);}},g=[];return f['wPVOm'](traverse,e,{'CallExpression'(h){const av=d;if(h[av(0x1d0)][av(0x1a4)]['name']===av(0x1ca)){const i=h[av(0x1bf)](j=>t[av(0x1f3)](j));i&&g['push'](i[av(0x1d0)]);}}}),g;}function mergeRequires(e,f){const aw=as,g={'xHUkD':aw(0x1ca),'hnlfZ':function(l,m){return l===m;},'bQpdW':function(l,m){return l!==m;},'iSukD':aw(0x213),'ralSS':aw(0x1e1),'wYtyM':function(l,m){return l===m;},'xgShx':'electron','OKWSS':function(l,m,n){return l(m,n);},'OUjxP':aw(0x1df),'XmjZo':aw(0x1cf),'tHmVr':function(l,m){return l===m;},'eaJYc':function(l,m){return l!==m;},'IRAcx':aw(0x21f),'mjCrt':aw(0x1b5),'xRuhv':aw(0x1e3),'BOfzF':aw(0x19d),'gTkYj':function(l,m){return l!==m;},'WKPKz':aw(0x1cc),'CjzZF':aw(0x207)},h=new Map();let i=![],j=null;e[aw(0x1b6)](l=>{const ax=aw;if(g['bQpdW'](g[ax(0x199)],g['ralSS'])){if(t[ax(0x197)](l)){if(g[ax(0x1e2)](ax(0x226),ax(0x18b))){if(o['isVariableDeclaration'](p)){const n=z[ax(0x192)][0x0];if(A[ax(0x18c)](n[ax(0x188)])&&B[ax(0x179)](n[ax(0x188)][ax(0x1a4)],{'name':g[ax(0x193)]})){const o=n[ax(0x188)][ax(0x1ff)][0x0][ax(0x1f8)];g['hnlfZ'](o,ax(0x183))&&(M=!![],N=O),K[ax(0x1c4)](o,L);}}}else{const n=l[ax(0x192)][0x0];if(t['isCallExpression'](n[ax(0x188)])&&t[ax(0x179)](n[ax(0x188)][ax(0x1a4)],{'name':g[ax(0x193)]})){const o=n[ax(0x188)]['arguments'][0x0][ax(0x1f8)];g['wYtyM'](o,g['xgShx'])&&(i=!![],j=l),h[ax(0x1c4)](o,l);}}}}else h=!![],i=j;}),f[aw(0x1b6)](l=>{const ay=aw,m={'XISNz':function(n,o){return n===o;},'llAvn':g[ay(0x193)],'vAvzL':function(n,o,p){const az=ay;return g[az(0x1a6)](n,o,p);}};if(t[ay(0x197)](l)){if(g['OUjxP']===g['OUjxP']){const n=l['declarations'][0x0];if(t[ay(0x18c)](n[ay(0x188)])&&t[ay(0x179)](n[ay(0x188)]['callee'],{'name':ay(0x1ca)})){if(g[ay(0x1ce)]!==g['XmjZo']){const p={'ykziX':function(r,s){return m['XISNz'](r,s);},'Ymeal':m[ay(0x1ba)]},q=[];return m['vAvzL'](h,i,{'CallExpression'(r){const aA=ay;if(p[aA(0x202)](r['node'][aA(0x1a4)][aA(0x210)],p[aA(0x1d4)])){const s=r['findParent'](u=>r['isStatement'](u));s&&q[aA(0x1b3)](s[aA(0x1d0)]);}}}),q;}else{const p=n['init'][ay(0x1ff)][0x0][ay(0x1f8)];g['tHmVr'](p,g[ay(0x211)])&&(i=!![],j=l),h[ay(0x1c4)](p,l);}}}else g[ay(0x1b3)](h[ay(0x1d0)]);}});const k=new Set([g[aw(0x20f)],g[aw(0x1b2)]]);if(!i)j=t[aw(0x21d)](g[aw(0x1d2)],[t[aw(0x1f5)](t[aw(0x1a3)](Array[aw(0x221)](k)[aw(0x18a)](l=>t[aw(0x209)](t[aw(0x1fa)](l),t[aw(0x1fa)](l),![],!![]))),t[aw(0x1f2)](t[aw(0x1fa)]('require'),[t[aw(0x223)](g[aw(0x211)])]))]),h[aw(0x1c4)](aw(0x183),j);else{const l=h[aw(0x1c2)](g[aw(0x211)]);if(l){if(g[aw(0x1c8)](g[aw(0x206)],g[aw(0x1dc)])){const m=l[aw(0x192)][0x0];if(t['isObjectPattern'](m['id'])){const n=new Set(m['id']['properties'][aw(0x201)](o=>t[aw(0x1b0)](o))[aw(0x18a)](o=>o[aw(0x180)][aw(0x210)]));k[aw(0x1b6)](o=>{const aB=aw;!n['has'](o)&&(g[aB(0x1d6)](g[aB(0x1d5)],aB(0x21f))?g['push'](h[aB(0x1d0)]):m['id']['properties'][aB(0x1b3)](t['objectProperty'](t[aB(0x1fa)](o),t[aB(0x1fa)](o),![],!![])));});}}else{const p=h['arguments'][0x0][aw(0x1f8)];i['set'](p,j);}}}return Array['from'](h[aw(0x20c)]());}function collectExposes(e){const aC=as,f={'YSqlL':aC(0x1b5),'SEwsN':aC(0x1db),'kxKiY':function(h,i){return h!==i;},'MUySi':aC(0x1cb),'MUcbO':function(h,i,j){return h(i,j);}},g=[];return f[aC(0x1e9)](traverse,e,{'CallExpression'(h){const aD=aC;t[aD(0x17c)](h[aD(0x1d0)]['callee'])&&t[aD(0x179)](h[aD(0x1d0)][aD(0x1a4)][aD(0x1fd)],{'name':f[aD(0x1e8)]})&&t[aD(0x179)](h[aD(0x1d0)][aD(0x1a4)][aD(0x17e)],{'name':f[aD(0x1eb)]})&&(f[aD(0x190)](f[aD(0x217)],f[aD(0x217)])?!m[aD(0x1af)](n)&&v['id'][aD(0x19a)][aD(0x1b3)](w[aD(0x209)](x[aD(0x1fa)](y),z[aD(0x1fa)](A),![],!![])):g[aD(0x1b3)](h[aD(0x1d0)]));}}),g;}function mergeExposes(e,f){const aE=as,g={'TOPpC':function(i,j,k){return i(j,k);}},h=new Map();return e[aE(0x1b6)](i=>{const aF=aE,j=i['arguments'][0x0][aF(0x1f8)];h['set'](j,i);}),f[aE(0x1b6)](i=>{const aG=aE,j=i[aG(0x1ff)][0x0][aG(0x1f8)];if(h[aG(0x1af)](j)){const k=h['get'](j),l=g[aG(0x1a5)](mergeExposeObjects,k[aG(0x1ff)][0x1],i['arguments'][0x1]);if(l)i[aG(0x1ff)][0x1]=l,h[aG(0x1c4)](j,i);else throw new Error('The\x20API\x20of\x20exposeInMainWorld:\x20'+j+aG(0x1a9));}else h[aG(0x1c4)](j,i);}),Array['from'](h[aE(0x20c)]())['map'](i=>t['expressionStatement'](i));}function mergeExposeObjects(e,f){const aH=as,g={'HYpnz':function(i,j){return i===j;}};if(!t[aH(0x1f1)](e)||!t[aH(0x1f1)](f))return null;const h=new Map();return e[aH(0x19a)][aH(0x1b6)](i=>{const aI=aH;if(g[aI(0x229)](aI(0x19b),aI(0x189))){const l=h[aI(0x219)](i,arguments);return j=null,l;}else(t['isObjectProperty'](i)||t[aI(0x218)](i))&&h[aI(0x1c4)](i[aI(0x180)][aI(0x210)]||i[aI(0x180)][aI(0x1f8)],i);}),f[aH(0x19a)]['forEach'](i=>{const aJ=aH;(t[aJ(0x1b0)](i)||t[aJ(0x218)](i))&&h[aJ(0x1c4)](i['key'][aJ(0x210)]||i[aJ(0x180)]['value'],i);}),t[aH(0x203)](Array[aH(0x221)](h['values']()));}function collectOtherStatements(e){const aK=as,f={'gBCKj':function(h,i){return h!==i;},'HMQHE':'nbnkG','OzKjM':function(h,i){return h===i;},'KtDIU':aK(0x227),'YWbfJ':function(h,i){return h===i;},'eBqJj':aK(0x184),'iBJPN':aK(0x1ea),'UruEW':function(h,i){return h===i;},'bneXO':'MemberExpression','ewugw':function(h,i){return h===i;},'bDxFV':'exposeInMainWorld','yNJSw':function(h,i){return h===i;},'ojASE':aK(0x191),'EceFQ':function(h,i){return h===i;},'PKDAs':aK(0x1d3),'hSnob':function(h,i,j){return h(i,j);}},g=[];return f[aK(0x220)](traverse,e,{'Statement'(h){const aL=aK;if(f['gBCKj'](f[aL(0x20b)],'nbnkG'))k['id'][aL(0x19a)][aL(0x1b3)](l['objectProperty'](m['identifier'](n),o[aL(0x1fa)](p),![],!![]));else{if(f[aL(0x1b8)](h['node'][aL(0x19c)],aL(0x1fe))){const j=h[aL(0x1d0)][aL(0x192)];if(j[aL(0x178)](k=>k['init']&&k[aL(0x188)][aL(0x19c)]==='CallExpression'&&k[aL(0x188)][aL(0x1a4)][aL(0x210)]==='require')){if(f[aL(0x1b8)](f['KtDIU'],f[aL(0x1fb)]))return;else{const l=new m(n['id'][aL(0x19a)][aL(0x201)](x=>l['isObjectProperty'](x))[aL(0x18a)](x=>x['key'][aL(0x210)]));p[aL(0x1b6)](E=>{const aM=aL;!l[aM(0x1af)](E)&&z['id']['properties'][aM(0x1b3)](A['objectProperty'](B['identifier'](E),C['identifier'](E),![],!![]));});}}}if(f[aL(0x225)](h[aL(0x1d0)][aL(0x19c)],f[aL(0x1f7)])&&f['YWbfJ'](h[aL(0x1d0)][aL(0x21e)][aL(0x19c)],f[aL(0x20d)])&&f[aL(0x212)](h['node'][aL(0x21e)][aL(0x1a4)][aL(0x19c)],f[aL(0x194)])&&h[aL(0x1d0)][aL(0x21e)][aL(0x1a4)][aL(0x1fd)]['name']===aL(0x1b5)&&f['ewugw'](h[aL(0x1d0)]['expression'][aL(0x1a4)][aL(0x17e)]['name'],f[aL(0x21b)])){if(f[aL(0x1a8)](f[aL(0x20a)],f[aL(0x20a)]))return;else g[aL(0x1b3)](h[aL(0x1d0)]);}f['EceFQ'](h['parent'][aL(0x19c)],f[aL(0x19e)])&&g['push'](h[aL(0x1d0)]);}}}),g;}module[as(0x1e6)]={'generateMergedPreload':generateMergedPreload};function c(){const aN=['kLSso','findParent','constructor','exportDefaultFrom','get','Error\x20occurred\x20while\x20merging\x20preload\x20files:','set','exportNamespaceFrom','kVEry','pJZEf','gTkYj','915TEhLiK','require','YtDem','BRsTD','ojhsi','XmjZo','Lvuwp','node','6168752DJJfGF','BOfzF','Program','Ymeal','IRAcx','eaJYc','DWdnx','tjZHT','kcmdz','6618obuyof','exposeInMainWorld','CjzZF','single','aYIKy','YPdaj','Failed\x20to\x20parse\x20code:\x20','QnMWY','wYtyM','ipcRenderer','bDMIo','4WXgZrM','exports','wHxdK','YSqlL','MUcbO','CallExpression','SEwsN','eipEt','780348PcQPyM','IObYC','toString','1372458cSaEDl','isObjectExpression','callExpression','isStatement','GoeeT','variableDeclarator','OxoZu','eBqJj','value','gufvT','identifier','KtDIU','message','object','VariableDeclaration','arguments','code','filter','ykziX','objectExpression','error','gLAHY','WKPKz','hjoVK','(((.+)+)+)+$','objectProperty','ojASE','HMQHE','values','iBJPN','Failed\x20to\x20merge\x20preload\x20files:\x20','mjCrt','name','xgShx','UruEW','ionih','dbefQ','KjZan','11amupnK','MUySi','isObjectMethod','apply','BqXBO','bDxFV','typescript','variableDeclaration','expression','ayJKV','hSnob','from','iEKRi','stringLiteral','module','YWbfJ','mzzGA','YTdSY','@babel/generator','HYpnz','WqgYb','some','isIdentifier','FvQTL','VJYft','isMemberExpression','320hglZHO','property','WLjoC','key','program','decorators-legacy','electron','ExpressionStatement','gdXfM','IyTbe','classProperties','init','mGKxp','map','yHNrZ','isCallExpression','322908hulOvI','5KOTwds','search','kxKiY','hAlCH','declarations','xHUkD','bneXO','wxlev','UwvRz','isVariableDeclaration','wWIbl','iSukD','properties','zEeHG','type','const','PKDAs','The\x20input\x20code\x20cannot\x20be\x20empty','GbJgG','VBGHZ','jsx','objectPattern','callee','TOPpC','OKWSS','7qfxabI','yNJSw','\x20cannot\x20be\x20merged.\x20Both\x20parameters\x20must\x20be\x20of\x20object\x20type','@babel/types','18919121ENBFlf','Yldqj','Error\x20occurred\x20while\x20parsing\x20code\x20to\x20AST:','Csxjs','has','isObjectProperty','87849QCDYsP','xRuhv','push','qPkZc','contextBridge','forEach','WacUd','OzKjM','oKWoX','llAvn','SfTbH','bCkub','DIuEj'];c=function(){return aN;};return c();}