UNPKG

@picoxr/web-cli-core

Version:

Core Library to generate, build and sign TWA projects

1 lines 2.98 kB
'use strict';var _0x3f2068=_0x5593;(function(_0x3ca26a,_0x445a20){var _0x16126c=_0x5593,_0x12879f=_0x3ca26a();while(!![]){try{var _0x3b196c=parseInt(_0x16126c(0x1ca))/0x1+parseInt(_0x16126c(0x1d9))/0x2+parseInt(_0x16126c(0x1d4))/0x3+parseInt(_0x16126c(0x1da))/0x4*(-parseInt(_0x16126c(0x1cf))/0x5)+-parseInt(_0x16126c(0x1ce))/0x6+-parseInt(_0x16126c(0x1cb))/0x7*(parseInt(_0x16126c(0x1dc))/0x8)+parseInt(_0x16126c(0x1d3))/0x9*(parseInt(_0x16126c(0x1df))/0xa);if(_0x3b196c===_0x445a20)break;else _0x12879f['push'](_0x12879f['shift']());}catch(_0x2c781f){_0x12879f['push'](_0x12879f['shift']());}}}(_0x2c86,0x69160));function _0x5593(_0x5b5097,_0x5e9690){var _0x2c86a8=_0x2c86();return _0x5593=function(_0x559362,_0x2b96e3){_0x559362=_0x559362-0x1c8;var _0x3baa38=_0x2c86a8[_0x559362];return _0x3baa38;},_0x5593(_0x5b5097,_0x5e9690);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['BufferedLog']=void 0x0;var LogLevel;(function(_0x5ae23b){var _0x355c48=_0x5593;_0x5ae23b[_0x5ae23b[_0x355c48(0x1e1)]=0x0]=_0x355c48(0x1e1),_0x5ae23b[_0x5ae23b[_0x355c48(0x1de)]=0x1]=_0x355c48(0x1de),_0x5ae23b[_0x5ae23b[_0x355c48(0x1d5)]=0x2]=_0x355c48(0x1d5),_0x5ae23b[_0x5ae23b[_0x355c48(0x1c9)]=0x3]='Error';}(LogLevel||(LogLevel={})));class PendingLog{constructor(_0x5ba30d,_0x4c407d){var _0x6c06a9=_0x5593;this[_0x6c06a9(0x1dd)]=_0x5ba30d,this[_0x6c06a9(0x1d0)]=_0x4c407d;}}class BufferedLog{constructor(_0x2aeefd){var _0x31c726=_0x5593;this['innerLog']=_0x2aeefd,this[_0x31c726(0x1e0)]=[],this[_0x31c726(0x1cc)]=this[_0x31c726(0x1d8)](LogLevel['Debug']),this[_0x31c726(0x1d2)]=this[_0x31c726(0x1d8)](LogLevel[_0x31c726(0x1de)]),this[_0x31c726(0x1d6)]=this['addLogFunction'](LogLevel[_0x31c726(0x1d5)]),this['error']=this[_0x31c726(0x1d8)](LogLevel[_0x31c726(0x1c9)]);}[_0x3f2068(0x1d8)](_0x3925ee){return _0xf35fc3=>{var _0x7d0d23=_0x5593;this[_0x7d0d23(0x1e0)][_0x7d0d23(0x1c8)](new PendingLog(_0x3925ee,_0xf35fc3));};}[_0x3f2068(0x1d7)](_0x5026a7){var _0x14c988=_0x3f2068;this[_0x14c988(0x1cd)][_0x14c988(0x1d7)](_0x5026a7);}['flush'](){var _0x45a746=_0x3f2068;this[_0x45a746(0x1e0)][_0x45a746(0x1db)](_0x7ff4a2=>{var _0x169ccb=_0x45a746;const _0x29c4b6=_0x7ff4a2[_0x169ccb(0x1d0)];switch(_0x7ff4a2['level']){case LogLevel[_0x169ccb(0x1e1)]:this['innerLog']['debug'](_0x29c4b6);break;case LogLevel[_0x169ccb(0x1de)]:this[_0x169ccb(0x1cd)][_0x169ccb(0x1d2)](_0x29c4b6);break;case LogLevel['Warn']:this[_0x169ccb(0x1cd)][_0x169ccb(0x1d6)](_0x29c4b6);break;case LogLevel['Error']:this['innerLog'][_0x169ccb(0x1d1)](_0x29c4b6);break;}}),this['pendingLogs']=[];}}function _0x2c86(){var _0x29a7c1=['10ZVbEZO','pendingLogs','Debug','push','Error','29581STTUIu','8309VOAqYl','debug','innerLog','3097842dvEJrr','35TxCPSq','message','error','info','4678497WozXaa','2072262UDyifW','Warn','warn','setVerbose','addLogFunction','798850AcERcZ','294852tpjCda','forEach','1192fehVqa','level','Info'];_0x2c86=function(){return _0x29a7c1;};return _0x2c86();}exports['BufferedLog']=BufferedLog;