'use strict';const a0_0x3cfde1=a0_0x1cab;(function(_0xbe6f8c,_0x2e5ac3){const _0x187ccc=a0_0x1cab,_0x456c95=_0xbe6f8c();while(!![]){try{const _0x1659ce=-parseInt(_0x187ccc(0x11d))/0x1*(-parseInt(_0x187ccc(0x10a))/0x2)+-parseInt(_0x187ccc(0x104))/0x3+-parseInt(_0x187ccc(0x110))/0x4+-parseInt(_0x187ccc(0x106))/0x5*(parseInt(_0x187ccc(0x10f))/0x6)+-parseInt(_0x187ccc(0x10c))/0x7*(parseInt(_0x187ccc(0x10e))/0x8)+-parseInt(_0x187ccc(0x11c))/0x9*(parseInt(_0x187ccc(0x112))/0xa)+-parseInt(_0x187ccc(0x117))/0xb*(-parseInt(_0x187ccc(0x115))/0xc);if(_0x1659ce===_0x2e5ac3)break;else _0x456c95['push'](_0x456c95['shift']());}catch(_0x190487){_0x456c95['push'](_0x456c95['shift']());}}}(a0_0x1510,0x7980c));function a0_0x1cab(_0x42f38a,_0x5a9519){_0x42f38a=_0x42f38a-0x104;const _0x151065=a0_0x1510();let _0x1cab5e=_0x151065[_0x42f38a];if(a0_0x1cab['OTbHdK']===undefined){var _0xa61c63=function(_0x458f75){const _0x4df9bd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20fb34='',_0x38a136='';for(let _0x37e8e6=0x0,_0x2dc0af,_0x4909ed,_0x38a1d2=0x0;_0x4909ed=_0x458f75['charAt'](_0x38a1d2++);~_0x4909ed&&(_0x2dc0af=_0x37e8e6%0x4?_0x2dc0af*0x40+_0x4909ed:_0x4909ed,_0x37e8e6++%0x4)?_0x20fb34+=String['fromCharCode'](0xff&_0x2dc0af>>(-0x2*_0x37e8e6&0x6)):0x0){_0x4909ed=_0x4df9bd['indexOf'](_0x4909ed);}for(let _0x3bf900=0x0,_0x23360c=_0x20fb34['length'];_0x3bf900<_0x23360c;_0x3bf900++){_0x38a136+='%'+('00'+_0x20fb34['charCodeAt'](_0x3bf900)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x38a136);};a0_0x1cab['sfWOLU']=_0xa61c63,a0_0x1cab['MjncPy']={},a0_0x1cab['OTbHdK']=!![];}const _0x1adb77=_0x151065[0x0],_0x2a4cc2=_0x42f38a+_0x1adb77,_0x4ac9e8=a0_0x1cab['MjncPy'][_0x2a4cc2];return!_0x4ac9e8?(_0x1cab5e=a0_0x1cab['sfWOLU'](_0x1cab5e),a0_0x1cab['MjncPy'][_0x2a4cc2]=_0x1cab5e):_0x1cab5e=_0x4ac9e8,_0x1cab5e;}function a0_0x1510(){const _0x244cb0=['Cgf0Aa','mJG2nZKYodHSBNfWEe0','z2v0rNvSBfLLyxi','qMfZzvn0B3jHz2vqCM92AwrLCIbPCYbHyNn0CMfJDcbHBMqGy2fUBM90igjLigLUC3rHBNrPyxrLzcbKAxjLy3rSEq','zxHWB3j0CW','twv0Ag9KigDLDfbYzxnPz25LzfvWBg9HzfvYBcGPig11C3qGyMuGAw1WBgvTzw50zwqGyNKGC3vIy2XHC3m','mty5mNzQvfngCq','nJCXtKvQwwHt','zgvSzxrL','DxbSB2fK','mtm3mdC1mxbdzxHjta','zxHPC3rZ','mtiZnJbJwKrKq0S','CMvWBgfJzq','yMfZzw5HBwu','ChvZAa','mtm3nLnbCwjvvG','z2v0tw9UDgG','mtrLEhDXr04','sfjZEMO','mJC0odq3mKXHAeTnua','mtCZngXisfDqCa','mZGYmtmYz1nOEK1j','y3j5ChrV','mZi4mZbju0TMtui','z2v0uhvIBgLJvxjS','zMLSDgvY','mtjYEwzjCvG'];a0_0x1510=function(){return _0x244cb0;};return a0_0x1510();}const path=require(a0_0x3cfde1(0x116)),crypto=require(a0_0x3cfde1(0x111)),{v7:uuidv7}=require('uuid');class BaseStorageProvider{constructor(_0x379964={}){const _0x54f9d0=a0_0x3cfde1,_0x2e851d={'CsHoc':_0x54f9d0(0x119)};if(new.target===BaseStorageProvider)throw new Error(_0x2e851d['CsHoc']);this['config']=_0x379964,this['providerName']='base';}async[a0_0x3cfde1(0x11f)](_0x1c72d3,_0x4fa615,_0x3f520d={}){const _0xe5ca2d={'UnaVC':'Method\x20upload()\x20must\x20be\x20implemented\x20by\x20subclass'};throw new Error(_0xe5ca2d['UnaVC']);}async[a0_0x3cfde1(0x11e)](_0x41952b){throw new Error('Method\x20delete()\x20must\x20be\x20implemented\x20by\x20subclass');}async['getSignedUrl'](_0x1b663c,_0x29c20b=0xe10){throw new Error('Method\x20getSignedUrl()\x20must\x20be\x20implemented\x20by\x20subclass');}async[a0_0x3cfde1(0x105)](_0x2b77a8){throw new Error('Method\x20exists()\x20must\x20be\x20implemented\x20by\x20subclass');}async['getMetadata'](_0x365c8d){const _0x5e9ed9=a0_0x3cfde1,_0x2f7421={'HRszj':'Method\x20getMetadata()\x20must\x20be\x20implemented\x20by\x20subclass'};throw new Error(_0x2f7421[_0x5e9ed9(0x10d)]);}['generateKey'](_0x36bf0e,_0x30ed75={}){const _0x2f345a=a0_0x3cfde1,_0x4fdda7={'zaudK':function(_0x122b44,_0x40ccbd){return _0x122b44+_0x40ccbd;}},{prefix:prefix='',project:project='',module:module='',endpoint:endpoint=''}=_0x30ed75,_0x3e9546=path['extname'](_0x36bf0e)['toLowerCase'](),_0x73d7b7=path[_0x2f345a(0x108)](_0x36bf0e,_0x3e9546)[_0x2f345a(0x107)](/[^a-zA-Z0-9_-]/g,'-')[_0x2f345a(0x107)](/-+/g,'-')['substring'](0x0,0x32),_0x22e851=uuidv7(),_0x45bbda=new Date(),_0x1ba12e=_0x45bbda[_0x2f345a(0x118)]()+'-'+String(_0x4fdda7['zaudK'](_0x45bbda[_0x2f345a(0x10b)](),0x1))['padStart'](0x2,'0'),_0x124698=[project,module,endpoint,prefix,_0x1ba12e][_0x2f345a(0x114)](Boolean),_0x5b3d28=_0x22e851+'-'+_0x73d7b7+_0x3e9546;return[..._0x124698,_0x5b3d28]['join']('/');}[a0_0x3cfde1(0x113)](_0x2d8a75){return null;}async['getPresignedUploadUrl'](_0x1fe83b,_0x5c31a6,_0x2ebe64=0xe10){const _0xf684ba=a0_0x3cfde1;throw new Error(_0xf684ba(0x11b));}async['deleteMany'](_0x52fe96){const _0x532483=a0_0x3cfde1,_0x1efced=[],_0x18ef24=[];for(const _0x1b92b3 of _0x52fe96){try{await this['delete'](_0x1b92b3),_0x1efced['push'](_0x1b92b3);}catch(_0x72e5e6){_0x18ef24[_0x532483(0x109)]({'key':_0x1b92b3,'error':_0x72e5e6['message']});}}return{'deleted':_0x1efced,'failed':_0x18ef24};}}module[a0_0x3cfde1(0x11a)]=BaseStorageProvider;