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 5.23 kB
const Q=d;(function(e,f){const K=d,g=e();while(!![]){try{const h=parseInt(K(0x17e))/0x1+parseInt(K(0x16b))/0x2*(-parseInt(K(0x168))/0x3)+parseInt(K(0x18c))/0x4+parseInt(K(0x19b))/0x5+parseInt(K(0x18b))/0x6+-parseInt(K(0x18f))/0x7*(-parseInt(K(0x19d))/0x8)+-parseInt(K(0x171))/0x9;if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0xaf642));const b=(function(){const L=d,e={'QwhNx':L(0x15d),'kYQlh':L(0x194),'CblhL':L(0x16f),'SpITL':L(0x18a),'oVQZo':function(g,h){return g!==h;},'pTxOD':L(0x19a)};let f=!![];return function(g,h){const M=L;if(e['oVQZo'](e[M(0x19f)],'gXQyF')){const j=k?function(){const N=M;if(j){const y=u[N(0x17c)](v,arguments);return w=null,y;}}:function(){};return p=![],j;}else{const j=f?function(){const O=M,k={'EpkAu':e[O(0x188)],'CJaMO':e[O(0x16c)],'uUnAD':e['CblhL']};if(h){if(e['SpITL']!=='MMaqb'){const l=h[O(0x17c)](g,arguments);return h=null,l;}else{const n=f['toLowerCase']();return[k[O(0x182)],k[O(0x173)],k[O(0x18e)]][O(0x187)](o=>n[O(0x199)](o))?!![]:![];}}}:function(){};return f=![],j;}};}()),a=b(this,function(){const P=d,e={'CbYjF':P(0x165)};return a[P(0x198)]()[P(0x19c)](e[P(0x176)])[P(0x198)]()[P(0x164)](a)[P(0x19c)](e[P(0x176)]);});a();const fs=require('fs'),path=require('path'),statePath=path[Q(0x157)](__dirname,'..',Q(0x174));function setWatchingStatus(e){const R=Q,f={'PnnGg':R(0x197),'kxcCc':function(g,h){return g===h;},'DPNEM':R(0x166),'qIHBg':'📝\x20Monitoring\x20status\x20set:\x20enabled','HDJSK':R(0x16d)};try{f[R(0x184)](R(0x166),f[R(0x17a)])?e?(fs['writeFileSync'](statePath,new Date()[R(0x17f)]()),console[R(0x154)](f[R(0x17b)])):fs[R(0x155)](statePath)&&(fs['unlinkSync'](statePath),console[R(0x154)](f['PnnGg'])):(h[R(0x159)](i),j['log'](f[R(0x16a)]));}catch(h){console[R(0x15f)](f['HDJSK'],h);}}function d(a,b){const e=c();return d=function(f,g){f=f-0x153;let h=e[f];return h;},d(a,b);}function isWatchingActive(){const S=Q;try{return fs['existsSync'](statePath);}catch(e){return console[S(0x15f)](S(0x15c),e),![];}}function cleanupWatchStatus(){const T=Q,e={'EXFuG':'Failed\x20to\x20set\x20monitoring\x20status:','VWrIs':function(f,g){return f===g;},'CqKTH':'ZEyCd','xFXrJ':'Watch\x20status\x20cleaned','uwBue':T(0x185)};try{e[T(0x169)](T(0x160),e[T(0x16e)])?g[T(0x15f)](e['EXFuG'],h):fs['existsSync'](statePath)&&(fs['unlinkSync'](statePath),console['log'](e[T(0x196)]));}catch(g){console['error'](e['uwBue'],g);}}process['on']('exit',cleanupWatchStatus),process['on'](Q(0x179),()=>{const U=Q,e={'IQBkX':function(f){return f();}};e[U(0x158)](cleanupWatchStatus),process['exit'](0x0);});const getWindowDirectory=e=>{const V=Q,f={'ZleaN':function(i,j){return i(j);},'izrJw':function(i,j){return i===j;},'hndEp':'CoAys','cghJk':'JVTln','QJyIB':function(i,j){return i!==j;},'LbkZD':V(0x17d),'flXeG':'windows','fotVn':function(i,j){return i===j;}},g=path[V(0x177)](e);let h=path[V(0x175)](g);while(!![]){if(f[V(0x163)](f[V(0x195)],f[V(0x156)]))h[V(0x193)](...f[V(0x190)](i,j));else{const j=path['basename'](h),k=path[V(0x175)](h);if(j[V(0x199)]('-window')){if(f[V(0x167)](f['LbkZD'],f[V(0x183)])){if(i){const m=m[V(0x17c)](n,arguments);return o=null,m;}}else return h;}else{if(j===f[V(0x181)])return h;}if(f[V(0x191)](h,k))break;h=k;}}return null;},findPageFiles=e=>{const W=Q,f={'PrGzB':W(0x192),'nEcmo':function(i,j){return i!==j;},'FVYMr':W(0x186),'lWFLO':W(0x172),'fCZRH':'page.vue','AdoeM':'page.jsx'},g=[],h=fs['readdirSync'](e);for(const i of h){const j=path[W(0x157)](e,i),k=fs[W(0x161)](j);k['isDirectory']()?f[W(0x19e)](W(0x186),f[W(0x189)])?o?(y[W(0x178)](z,new A()[W(0x17f)]()),B[W(0x154)](f[W(0x153)])):C[W(0x155)](D)&&(H[W(0x159)](I),J[W(0x154)]('Monitoring\x20status\x20set:\x20disabled')):!i[W(0x199)](f[W(0x15e)])&&g[W(0x193)](...findPageFiles(j)):(i[W(0x199)](f[W(0x15b)])||i[W(0x199)](f[W(0x170)]))&&g[W(0x193)](j);}return g;},isPageComponent=e=>{const X=Q,f={'NJrfx':'page.vue','ghlQA':X(0x194),'vMjOC':X(0x16f)},g=e[X(0x18d)]();return[f[X(0x180)],f[X(0x15a)],f[X(0x162)]][X(0x187)](h=>g[X(0x199)](h))?!![]:![];};module['exports']={'setWatchingStatus':setWatchingStatus,'isWatchingActive':isWatchingActive,'cleanupWatchStatus':cleanupWatchStatus,'getWindowDirectory':getWindowDirectory,'isPageComponent':isPageComponent};function c(){const Y=['fotVn','📝\x20Monitoring\x20status\x20set:\x20enabled','push','page.jsx','hndEp','xFXrJ','Monitoring\x20status\x20set:\x20disabled','toString','endsWith','gXQyF','3799725wGzSoF','search','65552rjLvvB','nEcmo','pTxOD','PrGzB','log','existsSync','cghJk','join','IQBkX','unlinkSync','ghlQA','fCZRH','Failed\x20to\x20check\x20monitoring\x20status:','page.vue','lWFLO','error','mkFsV','statSync','vMjOC','izrJw','constructor','(((.+)+)+)+$','tsReY','QJyIB','11754dHSOzy','VWrIs','PnnGg','194cIrrlU','kYQlh','Failed\x20to\x20set\x20monitoring\x20status:','CqKTH','page.tsx','AdoeM','13600026isTttl','-window','CJaMO','.watch-status','dirname','CbYjF','normalize','writeFileSync','SIGINT','DPNEM','qIHBg','apply','cPOPT','223988ZoKBLr','toISOString','NJrfx','flXeG','EpkAu','LbkZD','kxcCc','Failed\x20to\x20clean\x20watch\x20status:','sVVkO','find','QwhNx','FVYMr','JWEUK','8236254TNkQef','880576AlbVSa','toLowerCase','uUnAD','28ZLKEVX','ZleaN'];c=function(){return Y;};return c();}