1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
'use strict';const _0x552ec0=_0x7798;function _0x7798(_0x45e08e,_0x467b97){const _0x123444=_0x1234();return _0x7798=function(_0x7798ef,_0x24058f){_0x7798ef=_0x7798ef-0x14e;let _0xa5e56=_0x123444[_0x7798ef];return _0xa5e56;},_0x7798(_0x45e08e,_0x467b97);}(function(_0x47e2a6,_0x55de8b){const _0x27f918=_0x7798,_0x2c2d7d=_0x47e2a6();while(!![]){try{const _0x1b7d9d=parseInt(_0x27f918(0x1c2))/0x1*(-parseInt(_0x27f918(0x1ca))/0x2)+-parseInt(_0x27f918(0x18e))/0x3+parseInt(_0x27f918(0x175))/0x4*(-parseInt(_0x27f918(0x195))/0x5)+-parseInt(_0x27f918(0x19f))/0x6*(-parseInt(_0x27f918(0x17e))/0x7)+parseInt(_0x27f918(0x17f))/0x8*(-parseInt(_0x27f918(0x1b5))/0x9)+-parseInt(_0x27f918(0x1c9))/0xa+-parseInt(_0x27f918(0x1d9))/0xb*(-parseInt(_0x27f918(0x19a))/0xc);if(_0x1b7d9d===_0x55de8b)break;else _0x2c2d7d['push'](_0x2c2d7d['shift']());}catch(_0x5ea5e7){_0x2c2d7d['push'](_0x2c2d7d['shift']());}}}(_0x1234,0xa518d));const _0x3ab855=_0x49de;(function(_0xb88b63,_0x2d113c){const _0x5b8fb3=_0x7798,_0x5e3ff7=_0x49de,_0x3d2753=_0xb88b63();while(!![]){try{const _0x53c7b3=parseInt(_0x5e3ff7(0x136))/0x1+-parseInt(_0x5e3ff7(0x125))/0x2+parseInt(_0x5e3ff7(0x184))/0x3*(parseInt(_0x5e3ff7(0x12b))/0x4)+-parseInt(_0x5e3ff7(0x116))/0x5*(-parseInt(_0x5e3ff7(0x182))/0x6)+parseInt(_0x5e3ff7(0x11a))/0x7+-parseInt(_0x5e3ff7(0x10b))/0x8+parseInt(_0x5e3ff7(0x11f))/0x9*(-parseInt(_0x5e3ff7(0x155))/0xa);if(_0x53c7b3===_0x2d113c)break;else _0x3d2753[_0x5b8fb3(0x1d2)](_0x3d2753['shift']());}catch(_0x253e9b){_0x3d2753[_0x5b8fb3(0x1d2)](_0x3d2753[_0x5b8fb3(0x1be)]());}}}(_0x29ee,0x7fb6b));var __importDefault=this&&this[_0x552ec0(0x14f)]||function(_0x4ce622){const _0x1be474=_0x49de;return _0x4ce622&&_0x4ce622[_0x1be474(0x14f)]?_0x4ce622:{'default':_0x4ce622};};function _0x29ee(){const _0x5188ee=_0x552ec0,_0x3c4a14=['userChanged',_0x5188ee(0x151),_0x5188ee(0x16d),_0x5188ee(0x19e),_0x5188ee(0x1a4),_0x5188ee(0x18f),_0x5188ee(0x1a2),_0x5188ee(0x198),_0x5188ee(0x1b4),_0x5188ee(0x183),_0x5188ee(0x18c),_0x5188ee(0x1cc),_0x5188ee(0x1a7),_0x5188ee(0x1e7),_0x5188ee(0x15d),_0x5188ee(0x1b1),_0x5188ee(0x171),'service_type',_0x5188ee(0x158),'send',_0x5188ee(0x1b0),'db://assets/cloud-component/',_0x5188ee(0x1e4),_0x5188ee(0x1cf),_0x5188ee(0x1a8),'./plugin',_0x5188ee(0x1c1),_0x5188ee(0x177),_0x5188ee(0x1a1),_0x5188ee(0x192),_0x5188ee(0x178),_0x5188ee(0x15a),_0x5188ee(0x17c),'close','warn',_0x5188ee(0x1df),_0x5188ee(0x197),_0x5188ee(0x167),_0x5188ee(0x191),'sender','params',_0x5188ee(0x156),'getProjectPath',_0x5188ee(0x15c),_0x5188ee(0x1ad),_0x5188ee(0x1b3),'focus','asset-db',_0x5188ee(0x170),_0x5188ee(0x1c3),_0x5188ee(0x1c4),_0x5188ee(0x16c),'methods','debug',_0x5188ee(0x153),_0x5188ee(0x1a6),_0x5188ee(0x1c8),_0x5188ee(0x163),_0x5188ee(0x189),_0x5188ee(0x1ac),_0x5188ee(0x1c6),_0x5188ee(0x1cb),_0x5188ee(0x168),_0x5188ee(0x17a),'plugin-msg',_0x5188ee(0x1d4),'30tWUXvu',_0x5188ee(0x1e5),_0x5188ee(0x1bf),_0x5188ee(0x150),'346017umgLNU',_0x5188ee(0x184),_0x5188ee(0x154),'package.json','size',_0x5188ee(0x1a9),_0x5188ee(0x1da),_0x5188ee(0x18d),'all',_0x5188ee(0x196),_0x5188ee(0x1e0),_0x5188ee(0x1ae),_0x5188ee(0x1bc),'install','open','readBindGame','sendMsg',_0x5188ee(0x1af),_0x5188ee(0x16b),_0x5188ee(0x1a5),_0x5188ee(0x193),_0x5188ee(0x161),'root','service_id','getGameDetail',_0x5188ee(0x17d),_0x5188ee(0x190),_0x5188ee(0x1e1),_0x5188ee(0x179),_0x5188ee(0x165),'getCreatorVersion',_0x5188ee(0x152),_0x5188ee(0x17b),_0x5188ee(0x1c7),_0x5188ee(0x187),_0x5188ee(0x1e6),_0x5188ee(0x1db),'installPlugin',_0x5188ee(0x1ba),_0x5188ee(0x182),'dialog_title',_0x5188ee(0x1de),'create-node','startsWith',_0x5188ee(0x188),'silenceCreateGame',_0x5188ee(0x15e),_0x5188ee(0x1d1),_0x5188ee(0x1cd),_0x5188ee(0x181),'target\x20not\x20exist!',_0x5188ee(0x172),_0x5188ee(0x199),_0x5188ee(0x180),_0x5188ee(0x1b8),_0x5188ee(0x1a0),_0x5188ee(0x160),'has','broadcastMsg',_0x5188ee(0x157),_0x5188ee(0x14e),'deleteCache',_0x5188ee(0x1d6),_0x5188ee(0x173),_0x5188ee(0x15b),_0x5188ee(0x1a3),_0x5188ee(0x1c0),_0x5188ee(0x169),_0x5188ee(0x1d5),_0x5188ee(0x1d0),'extension',_0x5188ee(0x185),_0x5188ee(0x1dd),_0x5188ee(0x162),_0x5188ee(0x1d7)];return _0x29ee=function(){return _0x3c4a14;},_0x29ee();}function _0x1234(){const _0x5e1920=['main','browser.updating_tips','${name}','requestMsg','readConfigSet','__importDefault','login','service_name_error','install.js','service-','service_component_name','asset-db','service:i18nChange','530ZwPwnJ','assets','getServiceVersion','153eKvezD','pluginExists','load','pluginName','request','service_name','cocos-service:service-data-change','log','compareVersion','fs-extra','readJSONSync','cloud_json','csHttp','replace','package.json\x20is\x20not\x20found.','.prefab','version','UNKNOW','map','query-uuid','getCustomPlugin','service_id','logout','success','Panel','Message','target','164NgtaHg','cloud-function','ensureDir','silence_open_service','748510yCzLXn','dependency','csPlugin','message','electron','49GXmbOA','48YrmiNT','__esModule','cocos-service','getRedirectUrl','redirect_url','cocos-service:popup-show','writeBindGame','all','global','User','values','fromWebContents','sendMsg','import','silence_disable_service','2556975CqBaim','onServiceStatusChanged','existsSync','installed','236142sDqTjX','service','./protocol','13565cqCEBI','value','csProtocol','remove','../utils','19928472UodYRf','BrowserWindow','find','browser.update_tips','csConfig','1045428tBfTQL','scene','download_url','dialogMsgBox','refresh-asset','enable','builder','5557304EiXeNv','csUtil','cocos-service.simple','76941hevBmY','wirteEnableService','package_download_url','getServicePluginInfo','name','362190PgHqNj','64148aiklXh','update-extension','cloud-component:update-import','has','readServiceParam','broadcast','1911285zoAyCc','popupShow','db://assets/cloud-component/','error','userChanged','default','service:handle-penetrate-param','browser.cancel','send','shift','assets/cloud-component','get','Project','55141BkWjna','app_id','join','defineProperty','csLogger','catch','delete','3588500kZmeCL','46nBjqKM','plugin','registerPluginsI18n','plugin-msg-popup','includes','require','copy','readServiceList','push','set','stringify','csEditor','removeListener','service:userChanged','methods','22hvBlbj','unload','path','node','ipcMain','then','popup','apiPost','info','debug','../utils/_inner'];_0x1234=function(){return _0x5e1920;};return _0x1234();}Object[_0x552ec0(0x1c5)](exports,_0x3ab855(0x14f),{'value':!0x0}),exports[_0x3ab855(0x120)]=exports[_0x552ec0(0x15c)]=exports[_0x3ab855(0x108)]=void 0x0;const electron_1=require(_0x3ab855(0x133)),utils_1=require(_0x3ab855(0x14e)),plugin_1=__importDefault(require(_0x3ab855(0x17e))),protocol_1=__importDefault(require(_0x552ec0(0x194))),_inner_1=require(_0x552ec0(0x1e3)),fs_extra_1=require(_0x3ab855(0x10d)),path_1=require(_0x3ab855(0x13e));let popupWindows=new Map(),firstRun=!0x0;function _0x49de(_0x145ce8,_0x5e9838){const _0x2ef5ef=_0x29ee();return _0x49de=function(_0x26c323,_0x2a3149){_0x26c323=_0x26c323-0x108;let _0x332199=_0x2ef5ef[_0x26c323];return _0x332199;},_0x49de(_0x145ce8,_0x5e9838);}async function load(){const _0x207544=_0x552ec0,_0x18d1b1=_0x3ab855;Editor[_0x18d1b1(0x146)]['on'](_0x18d1b1(0x119),exports[_0x18d1b1(0x108)][_0x18d1b1(0x165)]),Editor[_0x18d1b1(0x146)]['on']('logout',exports[_0x18d1b1(0x108)][_0x18d1b1(0x165)]),electron_1[_0x18d1b1(0x162)]['on'](_0x18d1b1(0x11b),exports['methods'][_0x207544(0x1b6)]),await plugin_1[_0x18d1b1(0x140)][_0x18d1b1(0x170)]();}function unload(){const _0x55b684=_0x552ec0,_0x10f948=_0x3ab855;Editor[_0x10f948(0x146)][_0x10f948(0x158)](_0x10f948(0x119),exports[_0x10f948(0x108)][_0x55b684(0x1b9)]),Editor['User'][_0x55b684(0x1d6)](_0x10f948(0x195),exports['methods'][_0x10f948(0x165)]),electron_1[_0x10f948(0x162)][_0x10f948(0x158)](_0x10f948(0x11b),exports[_0x10f948(0x108)][_0x55b684(0x1b6)]);}exports[_0x552ec0(0x1d8)]={async 'openServicePanel'(_0x55214c){const _0x148ea6=_0x552ec0,_0x31dae9=_0x3ab855;await Editor[_0x31dae9(0x14d)][_0x31dae9(0x153)](_0x31dae9(0x14b))?(await Editor[_0x148ea6(0x172)][_0x31dae9(0x193)](_0x148ea6(0x181)),utils_1[_0x31dae9(0x15e)][_0x148ea6(0x18b)](utils_1[_0x31dae9(0x15e)][_0x31dae9(0x111)],_0x31dae9(0x114),_0x31dae9(0x12e),_0x148ea6(0x1bb),_0x55214c)):await Editor[_0x31dae9(0x14d)][_0x31dae9(0x128)]('cocos-service',_0x55214c);},'openPopup'(_0x44b455,_0x52e060,_0x280733){const _0x5db784=_0x3ab855;try{if(!popupWindows[_0x5db784(0x153)](_0x44b455))return void Editor[_0x5db784(0x14d)][_0x5db784(0x128)](_0x5db784(0x17d),_0x44b455,_0x52e060);{let _0x369827=popupWindows[_0x5db784(0x15c)](_0x44b455);null==_0x369827||_0x369827[_0x5db784(0x193)]();}}catch(_0x154190){popupWindows[_0x5db784(0x10c)](_0x44b455);}},'closePopup'(_0x36a60d){const _0x1f52bb=_0x552ec0,_0xba1011=_0x3ab855;try{if(popupWindows[_0x1f52bb(0x1b2)](_0x36a60d)){let _0x632f8=popupWindows[_0xba1011(0x15c)](_0x36a60d);null==_0x632f8||_0x632f8[_0xba1011(0x186)](),popupWindows[_0xba1011(0x10c)](_0x36a60d);}}catch(_0x11c41e){popupWindows[_0xba1011(0x10c)](_0x36a60d);}},'printLog'(_0x4a87da,_0x2930da){const _0x1968b2=_0x3ab855;_0x1968b2(0x150)===_0x4a87da&&console[_0x1968b2(0x150)](_0x2930da),_0x1968b2(0x135)===_0x4a87da&&console['info'](_0x2930da),_0x1968b2(0x12f)===_0x4a87da&&console[_0x1968b2(0x12f)](_0x2930da),'warn'===_0x4a87da&&console[_0x1968b2(0x187)](_0x2930da);},'popupShow'(_0x48271d,_0x17801e){const _0x5b6238=_0x552ec0,_0x296d89=_0x3ab855;let _0x461895=electron_1[_0x5b6238(0x19b)][_0x5b6238(0x18a)](_0x48271d[_0x296d89(0x18c)]),_0x39217d=_0x17801e[_0x296d89(0x173)];null!==_0x461895&&_0x39217d&&popupWindows[_0x5b6238(0x1d3)](_0x39217d,_0x461895);},async 'userChanged'(){const _0x9b3c12=_0x552ec0,_0x193962=_0x3ab855;await Editor[_0x9b3c12(0x172)][_0x9b3c12(0x1b2)](_0x193962(0x14b))&&Editor['Message'][_0x193962(0x178)](_0x193962(0x14b),_0x193962(0x114),_0x9b3c12(0x193),_0x193962(0x164));},'apiRequest':async(_0x2d3db9,_0x4d2f39={})=>_0x3ab855(0x16e)===_0x2d3db9?await protocol_1[_0x3ab855(0x140)][_0x3ab855(0x141)](_0x4d2f39[_0x3ab855(0x16e)]):new Promise((_0x3e9119,_0x336c78)=>protocol_1[_0x3ab855(0x140)][_0x3ab855(0x124)](_0x2d3db9,_0x4d2f39)[_0x3ab855(0x143)](_0x3e9119)[_0x3ab855(0x13b)](_0x2baa1c=>_0x336c78(new Error(JSON[_0x3ab855(0x115)](_0x2baa1c))))),async 'enableService'(_0x37cda7,_0x330692,_0x23bef8=''){const _0x33f23d=_0x552ec0,_0x12fbe0=_0x3ab855;_0x37cda7[_0x12fbe0(0x145)](_0x12fbe0(0x10a))||(_0x37cda7=_0x33f23d(0x153)+_0x37cda7);let _0x1b3053=(await utils_1['csConfig'][_0x12fbe0(0x149)]())[_0x33f23d(0x19c)](_0x4c66b0=>_0x4c66b0[_0x12fbe0(0x11c)]===_0x37cda7);if(void 0x0===_0x1b3053)throw new Error(utils_1[_0x12fbe0(0x15e)]['tr'](_0x12fbe0(0x166)));let _0x54b224=(await utils_1['csConfig'][_0x12fbe0(0x129)]()||{'app_id':_0x33f23d(0x16b)})[_0x12fbe0(0x196)];if(_0x12fbe0(0x12c)===_0x54b224)try{let _0x4d21d3=await(0x0,_inner_1[_0x12fbe0(0x147)])();_0x54b224=_0x4d21d3[_0x12fbe0(0x196)],await utils_1[_0x33f23d(0x19e)][_0x12fbe0(0x161)](_0x4d21d3);let _0x22ce06=await utils_1[_0x12fbe0(0x168)][_0x12fbe0(0x156)]();_0x22ce06&&(_0x23bef8=_0x22ce06['config_id']);}catch(_0x561de7){return _0x561de7['message'];}try{let _0x1f7264=await utils_1['csProtocol'][_0x12fbe0(0x132)](_0x54b224);_0x330692&&'0'!==_0x1b3053[_0x12fbe0(0x176)]&&!_0x1f7264[_0x12fbe0(0x12e)][_0x33f23d(0x1ce)](_0x1b3053[_0x12fbe0(0x131)])&&await utils_1[_0x12fbe0(0x189)]['openService'](_0x54b224,_0x1b3053[_0x12fbe0(0x131)]),await utils_1[_0x12fbe0(0x168)][_0x33f23d(0x1aa)](_0x1b3053[_0x33f23d(0x16f)],_0x330692,_0x23bef8)[_0x12fbe0(0x13b)](utils_1[_0x12fbe0(0x110)][_0x12fbe0(0x109)]),utils_1[_0x33f23d(0x1c6)][_0x12fbe0(0x135)](utils_1[_0x12fbe0(0x15e)]['tr'](_0x330692?_0x12fbe0(0x183):_0x12fbe0(0x121))[_0x12fbe0(0x18a)](_0x12fbe0(0x13d),_0x1b3053[_0x33f23d(0x15f)]));}catch(_0x3c2787){return _0x3c2787[_0x12fbe0(0x185)];}return plugin_1[_0x12fbe0(0x140)][_0x12fbe0(0x15a)](_0x37cda7)||await plugin_1[_0x33f23d(0x1ba)][_0x12fbe0(0x13f)](_0x37cda7,_0x1b3053[_0x33f23d(0x1ab)],(_0x219fff,_0x5721d6)=>{const _0x9219d3=_0x12fbe0;_0x5721d6&&utils_1[_0x9219d3(0x15e)]['tr'](_0x9219d3(0x18b));}),_0x12fbe0(0x175);},'pluginMsg':async(_0x391d47,_0x3db07b,_0xced3a5={})=>_0x3ab855(0x12e)===_0x391d47&&await Editor[_0x3ab855(0x14d)][_0x552ec0(0x1b2)](_0x3ab855(0x14b))?await utils_1[_0x3ab855(0x15e)][_0x3ab855(0x172)](utils_1[_0x552ec0(0x1d5)][_0x3ab855(0x111)],'plugin-msg-service',_0x3db07b,_0xced3a5):_0x3ab855(0x188)===_0x391d47&&popupWindows[_0x3ab855(0x11e)]>0x0?await utils_1['csEditor'][_0x3ab855(0x172)](utils_1[_0x3ab855(0x15e)][_0x552ec0(0x1cb)],_0x3ab855(0x14a),_0x3db07b,_0xced3a5):_0x3ab855(0x14c),'serviceReady'(){firstRun&&(firstRun=!0x1,setTimeout(async()=>{const _0x25e08a=_0x7798,_0x44313f=_0x49de;let _0x95638d=await utils_1[_0x44313f(0x189)][_0x25e08a(0x16e)]();if(0x1===utils_1[_0x25e08a(0x1a7)][_0x44313f(0x163)](_0x95638d[_0x44313f(0x113)],utils_1['csEditor'][_0x44313f(0x138)]()))return;if(0x1!==utils_1[_0x25e08a(0x1a7)][_0x44313f(0x163)](_0x95638d[_0x25e08a(0x16a)],utils_1[_0x44313f(0x15e)][_0x25e08a(0x159)]()))return;if(0x0!==await utils_1[_0x44313f(0x15e)][_0x44313f(0x16b)](_0x44313f(0x135),utils_1[_0x25e08a(0x1d5)]['tr'](_0x25e08a(0x19d)),utils_1[_0x44313f(0x15e)]['tr'](_0x44313f(0x142)),[utils_1[_0x44313f(0x15e)]['tr']('browser.update_now'),utils_1[_0x44313f(0x15e)]['tr'](_0x44313f(0x126))],0x0))return;let _0x1f7626=await utils_1[_0x25e08a(0x166)][_0x44313f(0x15c)](_0x95638d[_0x44313f(0x181)],{});utils_1[_0x44313f(0x110)][_0x44313f(0x135)](utils_1[_0x44313f(0x15e)]['tr'](_0x44313f(0x117))),utils_1[_0x25e08a(0x1d5)][_0x44313f(0x12a)](_0x44313f(0x160),_0x44313f(0x179),_0x1f7626[_0x44313f(0x181)],utils_1[_0x44313f(0x15e)][_0x44313f(0x111)],_0x44313f(0x13c)),Editor[_0x44313f(0x14d)][_0x44313f(0x186)](utils_1[_0x44313f(0x15e)][_0x44313f(0x111)]);},0x1388));},async 'i18nChange'(){const _0x123d73=_0x552ec0,_0x42588f=_0x3ab855;utils_1[_0x42588f(0x15e)][_0x42588f(0x154)](_0x42588f(0x152)),await Editor[_0x42588f(0x14d)][_0x42588f(0x153)](_0x42588f(0x14b))&&Editor[_0x123d73(0x173)][_0x123d73(0x1bd)](_0x123d73(0x181),_0x42588f(0x114),_0x42588f(0x12e),_0x42588f(0x18e));},async 'onServiceStatusChanged'(_0x2fdde4){const _0x58129f=_0x552ec0,_0x4d11b3=_0x3ab855;var _0x10a22c;try{let _0x526873=utils_1[_0x4d11b3(0x13a)][_0x4d11b3(0x10f)](_0x2fdde4[_0x4d11b3(0x11c)]);if(void 0x0===_0x526873||!(null===(_0x10a22c=_0x526873[_0x4d11b3(0x12d)])||void 0x0===_0x10a22c?void 0x0:_0x10a22c[_0x4d11b3(0x17b)]))return;let _0x1478dd={};_0x1478dd[_0x4d11b3(0x131)]=_0x2fdde4[_0x4d11b3(0x131)],_0x1478dd[_0x4d11b3(0x11c)]=_0x2fdde4[_0x4d11b3(0x11c)],_0x1478dd[_0x58129f(0x1a4)]=_0x2fdde4[_0x4d11b3(0x169)]||!0x1,_0x1478dd[_0x4d11b3(0x18d)]=await utils_1[_0x58129f(0x19e)][_0x4d11b3(0x192)](_0x2fdde4['service_id']);let _0x433f1e=utils_1[_0x4d11b3(0x171)][_0x4d11b3(0x17c)](_0x526873['path'],_0x526873[_0x4d11b3(0x12d)][_0x4d11b3(0x17b)]);_0x433f1e[_0x4d11b3(0x16a)]&&await _0x433f1e[_0x4d11b3(0x16a)](utils_1[_0x4d11b3(0x15e)][_0x4d11b3(0x18f)](),_0x1478dd);}catch(_0x225dde){utils_1[_0x4d11b3(0x110)][_0x58129f(0x1e2)](_0x225dde);}},async 'dropScene'(_0x23f350,_0x613f94,_0x382df5){const _0x150de2=_0x552ec0,_0x32a502=_0x3ab855;await Promise[_0x32a502(0x122)](_0x382df5[_0x150de2(0x16c)](async _0x3b28e5=>{const _0x3b05d3=_0x150de2,_0x31a48f=_0x32a502;await exports[_0x31a48f(0x108)][_0x31a48f(0x16f)](_0x3b28e5[_0x3b05d3(0x196)]);const _0x345bc4=_0x31a48f(0x17a)+_0x3b28e5[_0x31a48f(0x191)]+'/'+_0x3b28e5[_0x31a48f(0x191)]+_0x3b05d3(0x169),_0x581ee4=await Editor[_0x31a48f(0x159)][_0x31a48f(0x148)](_0x3b05d3(0x155),_0x31a48f(0x167),_0x345bc4);utils_1[_0x31a48f(0x15e)][_0x3b05d3(0x18b)](_0x31a48f(0x151),_0x31a48f(0x144),{'position':_0x613f94,'assetUuid':_0x581ee4});}));},async 'dropHierarchy'(_0x16ee8d,_0x1ee3b4){const _0x546caa=_0x552ec0,_0x30e0ae=_0x3ab855;_0x1ee3b4=_0x1ee3b4||_0x16ee8d[_0x30e0ae(0x10e)],await Promise[_0x546caa(0x186)](_0x1ee3b4[_0x30e0ae(0x198)](async _0x26f1e5=>{const _0x46de7b=_0x546caa,_0x5a9645=_0x30e0ae,_0x281800=_0x26f1e5[_0x46de7b(0x174)]||_0x26f1e5[_0x46de7b(0x1dc)]||_0x26f1e5['to'];await exports[_0x46de7b(0x1d8)][_0x5a9645(0x16f)](_0x26f1e5[_0x5a9645(0x123)]);const _0xebe685=_0x46de7b(0x1b7)+_0x26f1e5[_0x5a9645(0x191)]+'/'+_0x26f1e5[_0x5a9645(0x191)]+_0x5a9645(0x15d),_0x5988b9=await Editor[_0x5a9645(0x159)][_0x5a9645(0x148)](_0x5a9645(0x194),_0x46de7b(0x16d),_0xebe685);utils_1[_0x46de7b(0x1d5)][_0x5a9645(0x12a)](_0x5a9645(0x151),_0x5a9645(0x144),{'parent':_0x281800,'assetUuid':_0x5988b9});}));},async 'dropAssets'(_0x484427,_0x2a3468){const _0xe2b9ff=_0x552ec0,_0x4ebebc=_0x3ab855;_0x2a3468=_0x2a3468||_0x484427[_0x4ebebc(0x10e)],await Promise[_0x4ebebc(0x122)](_0x2a3468[_0x4ebebc(0x198)](async _0x48e6a6=>await exports[_0xe2b9ff(0x1d8)][_0x4ebebc(0x16f)](_0x48e6a6[_0x4ebebc(0x123)])));},async 'import'(_0x18c89f){const _0x5cc3fc=_0x552ec0,_0x34124d=_0x3ab855;if(!(0x0,fs_extra_1[_0x5cc3fc(0x190)])(_0x18c89f))return;const _0x18485b={'cloud_json':(0x0,path_1[_0x34124d(0x197)])(_0x18c89f,_0x34124d(0x11d)),'assets':(0x0,path_1[_0x5cc3fc(0x1c4)])(_0x18c89f,_0x34124d(0x177)),'function':(0x0,path_1[_0x34124d(0x197)])(_0x18c89f,_0x5cc3fc(0x176)),'install':(0x0,path_1['join'])(_0x18c89f,_0x34124d(0x139))};if(!(0x0,fs_extra_1[_0x34124d(0x134)])(_0x18485b[_0x34124d(0x137)]))throw new Error(_0x34124d(0x112));const _0x5ef4fc=(0x0,fs_extra_1[_0x5cc3fc(0x164)])(_0x18485b[_0x34124d(0x137)]),_0x548e5b={'root':(0x0,path_1[_0x5cc3fc(0x1c4)])(Editor[_0x5cc3fc(0x1c1)][_0x34124d(0x13e)],_0x34124d(0x118)),'assets':(0x0,path_1[_0x34124d(0x197)])(Editor[_0x34124d(0x17f)][_0x34124d(0x13e)],_0x34124d(0x118),_0x5ef4fc[_0x5cc3fc(0x1ad)])};await(0x0,fs_extra_1[_0x34124d(0x180)])(_0x548e5b[_0x34124d(0x130)]);try{(0x0,fs_extra_1[_0x5cc3fc(0x190)])(_0x18485b[_0x34124d(0x177)])&&!(0x0,fs_extra_1[_0x34124d(0x134)])(_0x548e5b[_0x34124d(0x177)])&&await(0x0,fs_extra_1[_0x34124d(0x15f)])(_0x18485b[_0x34124d(0x177)],_0x548e5b[_0x34124d(0x177)]),(0x0,fs_extra_1[_0x34124d(0x134)])(_0x18485b[_0x34124d(0x127)])&&(utils_1[_0x34124d(0x171)][_0x34124d(0x157)](_0x18485b[_0x34124d(0x127)]),await require(_0x18485b[_0x34124d(0x127)])[_0x34124d(0x17b)]({'assetsPath':_0x548e5b[_0x34124d(0x177)]}));}catch(_0x448d90){utils_1[_0x34124d(0x110)][_0x5cc3fc(0x1b8)](_0x448d90),(0x0,fs_extra_1[_0x5cc3fc(0x190)])(_0x548e5b[_0x5cc3fc(0x158)])&&await(0x0,fs_extra_1[_0x34124d(0x16c)])(_0x548e5b[_0x5cc3fc(0x158)]);}await Editor[_0x34124d(0x159)][_0x34124d(0x148)](_0x34124d(0x194),_0x34124d(0x15b),_0x548e5b[_0x34124d(0x130)]),Editor[_0x34124d(0x159)][_0x34124d(0x16d)](_0x34124d(0x174));}},exports[_0x3ab855(0x190)]=load,exports[_0x552ec0(0x1da)]=unload; |