UNPKG

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 7.9 kB
const Z=d;(function(e,f){const U=d,g=e();while(!![]){try{const h=parseInt(U(0xf8))/0x1+parseInt(U(0x109))/0x2+-parseInt(U(0x11c))/0x3+-parseInt(U(0xd6))/0x4+parseInt(U(0x10a))/0x5*(-parseInt(U(0xfb))/0x6)+-parseInt(U(0xd7))/0x7+-parseInt(U(0x112))/0x8*(-parseInt(U(0x125))/0x9);if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0x6286f));const b=(function(){const V=d,e={'WdNXR':V(0xe7),'nUaqW':V(0x126)};let f=!![];return function(g,h){const W=V,i={'ypUUd':e['WdNXR'],'UdrJQ':e[W(0x110)],'qUJIO':function(k,l){return k!==l;},'wmyUZ':W(0xfa)},j=f?function(){const X=W;if(h){if(i[X(0xf5)]('VBVWw',i[X(0x128)])){const k=h[X(0x103)](g,arguments);return h=null,k;}else{if(m[X(0x114)](i[X(0xeb)])||n[X(0x114)](i[X(0xdd)]))return u[X(0x107)](v,w);return r['join'](s,t);}}}:function(){};return f=![],j;};}()),a=b(this,function(){const Y=d,e={'MyHFI':Y(0x129)};return a[Y(0x119)]()['search'](e['MyHFI'])[Y(0x119)]()['constructor'](a)[Y(0xd0)](e['MyHFI']);});a();const fs=require('fs'),path=require(Z(0xcf)),{generateDefaultPreloadScript}=require('./static-file-copier'),{generateMergedPreload}=require(Z(0x127));function handleWindowPreload(e,f,g,h){const a0=Z,i={'EsNBG':a0(0xde),'zYSnp':function(o,p,q){return o(p,q);},'vJrlx':'EbLgK','MfGSm':'utf-8','XiPNR':function(o,p){return o!==p;},'hHCXu':a0(0xfd),'UbREz':a0(0xfc),'XhDPJ':a0(0xf4)},j=path[a0(0x107)](e,i[a0(0x11d)]),k=path[a0(0x107)](h,i[a0(0x11d)]),l=path[a0(0x105)](e,h),m=path[a0(0x107)](f,l),n=path[a0(0x107)](m,a0(0xde));if(!fs[a0(0xfe)](k)){!fs[a0(0xfe)](m)&&fs[a0(0xdb)](m,{'recursive':!![]});let o=i['zYSnp'](generateDefaultPreloadScript,g,f),p;if(fs[a0(0xfe)](j)){if(i[a0(0x116)]!==a0(0x122)){const s=fs[a0(0x115)](j,i[a0(0xd9)]);p=generateMergedPreload(o,s);}else{if(i){const u=m[a0(0x103)](n,arguments);return o=null,u;}}}else i[a0(0xe6)](i[a0(0xd5)],a0(0xfd))?g=h:p=o;fs[a0(0x11b)](n,p);const q=path[a0(0x107)](g,i[a0(0xf0)],i['XhDPJ']),r=path[a0(0x107)](m,i['XhDPJ']);fs['existsSync'](q)&&(fs[a0(0xea)](q,r),console[a0(0xe1)](a0(0x11f)+path[a0(0x105)](e,r)));}}function checkWindowPreloadAndCopy(e,f,g,h=!![]){const a1=Z,i={'BEglb':a1(0xe2),'IXUOT':'windows','vAQpF':a1(0xf7),'eBAGl':a1(0xde),'LmYRz':a1(0xf1),'aDDuy':function(l,m){return l===m;},'RLfVI':a1(0xd8),'VUAJb':function(l,m,n){return l(m,n);},'MIycK':a1(0x118),'dtjVy':a1(0xfc),'dRjwU':'window-controller.js'};h&&console[a1(0xe1)](i[a1(0xdf)]);const j=path[a1(0x107)](e,a1(0xde)),k=path[a1(0x107)](e,i[a1(0xce)]);if(fs[a1(0xfe)](k)){const l=fs[a1(0xf9)](k);for(const m of l){if(i[a1(0xe5)]!==i[a1(0xe5)]){const o=h[a1(0x103)](i,arguments);return j=null,o;}else{const o=path['join'](k,m);if(fs[a1(0xe0)](o)[a1(0x10b)]()){const p=path[a1(0x107)](o,i[a1(0x123)]),q=getNormalizedOutPath(e,f,'windows/'+m),r=path[a1(0x107)](q,i[a1(0x123)]);if(!fs[a1(0xfe)](p)){if(i[a1(0xe3)]!==i[a1(0xe3)])g[a1(0xdb)](h,{'recursive':!![]});else{!fs[a1(0xfe)](q)&&(i['aDDuy'](i[a1(0x100)],i[a1(0x100)])?fs['mkdirSync'](q,{'recursive':!![]}):g=h);let t=i[a1(0xed)](generateDefaultPreloadScript,g,f),u;if(fs[a1(0xfe)](j)){const y=fs['readFileSync'](j,i['MIycK']);u=i[a1(0xed)](generateMergedPreload,t,y);}else u=t;fs[a1(0x11b)](r,u);const v=path['join'](g,i['dtjVy'],i[a1(0xe4)]),w=path['join'](q,'window-controller.js');fs[a1(0xfe)](v)&&(fs[a1(0xea)](v,w),console[a1(0xe1)](a1(0x11f)+path[a1(0x105)](e,w))),h&&console['log'](a1(0xf3)+path['relative'](e,r));}}}}}}}function getNormalizedOutPath(e,f,g){const a2=Z,h={'XcxMT':'out\x5c','vMlpB':function(i,j){return i!==j;},'hbRjn':a2(0xec),'YEseX':a2(0x10f)};if(g['startsWith']('out/')||g[a2(0x114)](h[a2(0x11a)])){if(h['vMlpB'](h[a2(0x10e)],h[a2(0xf2)]))return path[a2(0x107)](e,g);else l['copyFileSync'](m,n),o[a2(0xe1)](a2(0x11f)+p[a2(0x105)](q,r));}return path['join'](f,g);}function writeDefaultPreloadFileWhenDeleted(e,f,g,h){const a3=Z,i=generateDefaultPreloadScript(e,f);fs['writeFileSync'](g,i),console[a3(0xe1)]('Successfully\x20processed\x20existing\x20preload.js:\x20'+h);}function c(){const a8=['EFUEf','UbREz','rkPRf','YEseX','Root\x20preload.js\x20has\x20been\x20copied\x20to\x20window\x20output\x20directory:\x20','window-controller.js','qUJIO','hiSLQ','diFqq','302732CMHzIZ','readdirSync','fEmCJ','4152150SUeXGi','copy_file','lCoTt','existsSync','bDcvR','RLfVI','JITJu','dGKgP','apply','-window','relative','Successfully\x20processed\x20preload.js:\x20','join','wIKcU','367508AswrUY','5VXnPkd','isDirectory','wzzzZ','UDDZv','hbRjn','KenJm','nUaqW','iVBwt','15784464dEMhnT','WhlHY','startsWith','readFileSync','vJrlx','MBGEp','utf-8','toString','XcxMT','writeFileSync','1507950jqLMCf','EsNBG','FPkMS','Copied\x20window-controller.js\x20to\x20window\x20directory:\x20','windows','exports','SGqZx','eBAGl','qyTcj','9ZQicEF','out\x5c','./preload-merger','wmyUZ','(((.+)+)+)+$','MKvuu','xlple','Window\x20directory\x20processing\x20completed:\x20','IXUOT','path','search','xKkrH','axquo','hGiur','OEajx','hHCXu','2526504mMpUSp','1607732AvztSk','ovADT','MfGSm','vFgge','mkdirSync','FUPCx','UdrJQ','preload.js','BEglb','statSync','log','Checking\x20if\x20window\x20directories\x20need\x20preload.js\x20files...','LmYRz','dRjwU','vAQpF','XiPNR','out/','ankTZ','endsWith','copyFileSync','ypUUd','zDZwp','VUAJb','TxIGK'];c=function(){return a8;};return c();}function isWindowDirectory(e,f){const a4=Z,g={'FUPCx':function(h,i){return h===i;},'hiSLQ':a4(0x104)};return g[a4(0xdc)](f,'windows')||f[a4(0xe9)](g[a4(0xf6)]);}function d(a,b){const e=c();return d=function(f,g){f=f-0xcb;let h=e[f];return h;},d(a,b);}function processWindowDirectory(e,f,g,h,i){const a5=Z,j={'UDDZv':a5(0x118),'TxIGK':function(t,u,v){return t(u,v);},'xKkrH':a5(0xde),'iVBwt':function(t,u,v,w){return t(u,v,w);},'xlple':function(t,u,v){return t(u,v);},'wzzzZ':function(t,u){return t===u;},'OEajx':a5(0x124),'MKvuu':a5(0xff),'ankTZ':a5(0xfc),'JITJu':a5(0xf4)},k=path[a5(0x107)](e,j['xKkrH']),l=path[a5(0x105)](e,h),m=j[a5(0x111)](getNormalizedOutPath,e,f,l),n=path['join'](h,j[a5(0xd1)]),o=path[a5(0x107)](m,j[a5(0xd1)]),p=j[a5(0xcc)](generateDefaultPreloadScript,g,f);let q=p;if(fs[a5(0xfe)](n)){const t=fs['readFileSync'](n,j['UDDZv']);q=j[a5(0xee)](generateMergedPreload,p,t);}if(fs['existsSync'](k)){if(j[a5(0x10c)](j[a5(0xd4)],j[a5(0xcb)])){const v=j['readFileSync'](k,j[a5(0x10d)]);l=j[a5(0xee)](m,n,v);}else{const v=fs['readFileSync'](k,a5(0x118));q=j[a5(0xee)](generateMergedPreload,q,v);}}fs[a5(0x11b)](o,q),console[a5(0xe1)](a5(0x106)+l);const r=path[a5(0x107)](g,j[a5(0xe8)],j[a5(0x101)]),s=path['join'](m,j[a5(0x101)]);fs[a5(0xfe)](r)&&(fs['copyFileSync'](r,s),console[a5(0xe1)](a5(0x11f)+path[a5(0x105)](e,s))),i&&console[a5(0xe1)](a5(0xcd)+l);}function findAndProcessWindowDirs(e,f,g,h,i){const a6=Z,j={'FPkMS':function(l,m,n,o,p,q){return l(m,n,o,p,q);},'axquo':a6(0x120),'hGiur':function(l,m){return l!==m;},'dGKgP':a6(0x108),'EFUEf':a6(0x117),'CulaD':function(l,m,n,o,p,q){return l(m,n,o,p,q);},'VUpcn':function(l,m,n,o,p,q){return l(m,n,o,p,q);}},k=fs[a6(0xf9)](h);for(const l of k){const m=path[a6(0x107)](h,l);if(!fs[a6(0xe0)](m)['isDirectory']()||l['startsWith']('.')){if(j[a6(0xd3)](j[a6(0x102)],j[a6(0x102)]))q(r,s,t,u,v),j[a6(0x11e)](w,x,y,z,A,B);else continue;}if(isWindowDirectory(m,l)){if(j[a6(0xef)]===a6(0x113)){t&&I['log'](a6(0xe2));const p=v[a6(0x107)](w,j[a6(0xd2)]);x[a6(0xfe)](p)&&(j[a6(0x11e)](J,K,L,M,p,N),O(P,Q,R,p,S));}else j['CulaD'](processWindowDirectory,e,f,g,m,i);}j['VUpcn'](findAndProcessWindowDirs,e,f,g,m,i);}}function checkWindowPreloadAndCopy(e,f,g,h=!![]){const a7=Z,i={'vFgge':function(k,l,m,n,o,p){return k(l,m,n,o,p);}};h&&console[a7(0xe1)](a7(0xe2));const j=path[a7(0x107)](e,'windows');fs['existsSync'](j)&&(processWindowDirectory(e,f,g,j,h),i[a7(0xda)](findAndProcessWindowDirs,e,f,g,j,h));}module[Z(0x121)]={'checkWindowPreloadAndCopy':checkWindowPreloadAndCopy,'writeDefaultPreloadFileWhenDeleted':writeDefaultPreloadFileWhenDeleted,'handleWindowPreload':handleWindowPreload};