@e-techsolutions/e-baas-sdk 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +23 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +8 -6
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(stringArrayFunction,comparisonValue){const stringArray=stringArrayFunction();function _0x3cd4f0(_0x2319c8,_0x2edf47){return _0x32c5(_0x2319c8- -0x2d4,_0x2edf47);}while(!![]){try{const _0x6dc93c=parseInt(_0x3cd4f0(0x4,0x32))/0x1*(parseInt(_0x3cd4f0(0x99,-0x2))/0x2)+-parseInt(_0x3cd4f0(-0x2,-0x1a))/0x3*(-parseInt(_0x3cd4f0(0x62,0xf6))/0x4)+parseInt(_0x3cd4f0(0xd3,0x1cb))/0x5+-parseInt(_0x3cd4f0(-0xb9,-0x160))/0x6*(parseInt(_0x3cd4f0(-0x71,0x7b))/0x7)+parseInt(_0x3cd4f0(-0x5f,0x5c))/0x8+-parseInt(_0x3cd4f0(0x82,0x138))/0x9*(parseInt(_0x3cd4f0(0x100,0xa0))/0xa)+parseInt(_0x3cd4f0(-0xf0,-0xba))/0xb;if(_0x6dc93c===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x928871){stringArray['push'](stringArray['shift']());}}}(_0x46ca,0x6d4ce));import axios from'axios';import _0x2ca273 from'eventemitter3';class EBaaSError extends Error{constructor(_0x7dfe18,status=0x0,_0x521395){super(_0x7dfe18),this[_0x45c4b0(0x764,0x664)]='EBaaSError',this[_0x45c4b0(0x480,0x4ce)]=status,this[_0x45c4b0(0x498,0x56d)]=_0x521395;function _0x45c4b0(_0x2c9fde,_0x49e716){return _0x32c5(_0x49e716-0x276,_0x2c9fde);}Error[_0x45c4b0(0x57e,0x52b)]&&Error[_0x45c4b0(0x505,0x52b)](this,EBaaSError);}[_0xf108a4(0x422,0x371)](){function _0x2c0e56(_0x24e83f,_0x23d239){return _0x32c5(_0x23d239-0x29b,_0x24e83f);}return{'name':this['name'],'message':this['message'],'status':this[_0x2c0e56(0x428,0x4f3)],'details':this[_0x2c0e56(0x6a9,0x592)],'stack':this[_0x2c0e56(0x567,0x494)]};}[_0xf108a4(0x4ca,0x3df)](){function _0x310bbe(_0x361302,_0x6d32ad){return _0x32c5(_0x6d32ad-0x45,_0x361302);}return this[_0x310bbe(0x4c7,0x433)]+':\x20'+this['message']+_0x310bbe(0x32f,0x3aa)+this[_0x310bbe(0x383,0x29d)]+')';}}class HttpClient{constructor(config){this['baseURL']=config['url'],this[_0x31ba32(-0x101,-0xa5)]=config[_0x31ba32(-0x101,-0x1)];function _0x31ba32(_0x351903,_0x14b722){return _0x32c5(_0x351903- -0x3cb,_0x14b722);}this[_0x31ba32(-0x71,-0x168)]=axios['create']({'baseURL':this['baseURL'],'timeout':config[_0x31ba32(-0xd8,-0xf9)]||0x2710,'headers':{'Content-Type':'application/json','apikey':this['apiKey'],...config['headers']}}),this[_0x31ba32(-0x86,-0x98)]();}['setupInterceptors'](){function _0x251e65(_0x2c9167,_0x3d871e){return _0x32c5(_0x3d871e-0x3c9,_0x2c9167);}this[_0x251e65(0x75a,0x723)][_0x251e65(0x783,0x789)][_0x251e65(0x799,0x754)]['use'](config=>{return config;},_0x46c1b8=>{return Promise['reject'](new EBaaSError('Request\x20failed',0x0,_0x46c1b8));}),this['client']['interceptors']['response'][_0x251e65(0x6a8,0x5d6)](response=>{return response;},_0x4ab4fb=>{const status=_0x4ab4fb[_0x554fe5(0x1e5,0x274)]?.[_0x554fe5(0x264,0x256)]||0x0,_0x436346=_0x4ab4fb[_0x554fe5(0x1e5,0x229)]?.[_0x554fe5(0x2bb,0x3a5)]?.[_0x554fe5(0x35b,0x41d)]||_0x4ab4fb['message']||_0x554fe5(0x1e1,0x200);function _0x554fe5(_0x47a934,_0x103814){return _0x32c5(_0x47a934-0xc,_0x103814);}const _0x1fb784=_0x4ab4fb[_0x554fe5(0x1e5,0x1bf)]?.['data']||_0x4ab4fb;return Promise[_0x554fe5(0x35c,0x41e)](new EBaaSError(_0x436346,status,_0x1fb784));});}async[_0xf108a4(0x459,0x478)](_0x507bad,config){function _0x140e70(_0x2819ff,_0x50dccd){return _0x32c5(_0x2819ff- -0x26,_0x50dccd);}try{const response=await this[_0x140e70(0x334,0x3d1)][_0x140e70(0x2f2,0x252)](_0x507bad,config);return{'data':response[_0x140e70(0x289,0x24f)],'status':response['status'],'statusText':response[_0x140e70(0x216,0x1b5)],'headers':response[_0x140e70(0x2e2,0x2d4)]};}catch(_0x30f11d){throw this[_0x140e70(0x199,0x224)](_0x30f11d);}}async[_0xf108a4(0x361,0x46b)](_0x1504fd,data,config){function _0x306211(_0xa0a74b,_0x47cc7b){return _0x32c5(_0x47cc7b-0x238,_0xa0a74b);}try{const response=await this[_0x306211(0x522,0x592)][_0x306211(0x62c,0x543)](_0x1504fd,data,config);return{'data':response[_0x306211(0x5b0,0x4e7)],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x17c1ad){throw this['handleError'](_0x17c1ad);}}async[_0xf108a4(0x2cc,0x379)](_0x4d0b89,data,config){function _0x470989(_0x1b6f57,_0x234f35){return _0x32c5(_0x1b6f57- -0x228,_0x234f35);}try{const response=await this[_0x470989(0x132,0xc8)][_0x470989(-0xf,-0x5a)](_0x4d0b89,data,config);return{'data':response[_0x470989(0x87,0x15e)],'status':response[_0x470989(0x30,0xcf)],'statusText':response[_0x470989(0x14,-0xab)],'headers':response[_0x470989(0xe0,0x1e5)]};}catch(_0x4feaa2){throw this[_0x470989(-0x69,-0xb2)](_0x4feaa2);}}async['patch'](_0x5959d2,data,config){function _0x4d7933(_0x11e37b,_0x195277){return _0x32c5(_0x11e37b-0x29b,_0x195277);}try{const response=await this[_0x4d7933(0x5f5,0x6b9)]['patch'](_0x5959d2,data,config);return{'data':response[_0x4d7933(0x54a,0x5e9)],'status':response['status'],'statusText':response[_0x4d7933(0x4d7,0x52e)],'headers':response['headers']};}catch(_0x243954){throw this[_0x4d7933(0x45a,0x517)](_0x243954);}}async[_0xf108a4(0x412,0x395)](_0x5b8e62,config){function _0xd0973d(_0x434d83,_0x25bc78){return _0x32c5(_0x25bc78-0xc8,_0x434d83);}try{const response=await this[_0xd0973d(0x315,0x422)][_0xd0973d(0x31e,0x2fd)](_0x5b8e62,config);return{'data':response[_0xd0973d(0x2ec,0x377)],'status':response[_0xd0973d(0x325,0x320)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x211dbe){throw this[_0xd0973d(0x34d,0x287)](_0x211dbe);}}['setAuthToken'](_0x5761ac){function _0x4e29f2(_0x5caf3b,_0xebc327){return _0x32c5(_0xebc327- -0x137,_0x5caf3b);}this[_0x4e29f2(0x1af,0x223)][_0x4e29f2(0x2d8,0x237)]['headers']['common']['Authorization']=_0x4e29f2(0x25c,0x214)+_0x5761ac;}[_0xf108a4(0x35b,0x378)](){function _0x221bb2(_0x2d8684,_0x40c7a5){return _0x32c5(_0x2d8684- -0xdf,_0x40c7a5);}delete this[_0x221bb2(0x27b,0x1b8)]['defaults'][_0x221bb2(0x229,0x134)]['common']['Authorization'],this[_0x221bb2(0x27b,0x2ae)][_0x221bb2(0x28f,0x2c8)]['headers']['common']['Authorization']='Bearer\x20'+this['apiKey'];}[_0xf108a4(0x216,0x31f)](_0x51deb2){function _0x55911d(_0x5a9204,_0x229a6c){return _0x32c5(_0x229a6c- -0x14f,_0x5a9204);}if(_0x51deb2 instanceof EBaaSError)return _0x51deb2;return new EBaaSError(_0x51deb2['message']||'HTTP\x20request\x20failed',_0x51deb2[_0x55911d(0xa9,0x109)]||0x0,_0x51deb2);}}class AuthClient{constructor(_0x3fa9b4,_0x18567b){function _0x5df621(_0x3c99f4,_0x84de4f){return _0x32c5(_0x3c99f4- -0x260,_0x84de4f);}this[_0x5df621(0x19b,0x1e0)]=null,this[_0x5df621(0xc6,0x152)]=_0x3fa9b4,this['workspaceId']=_0x18567b,this['loadSession']();}async[_0xf108a4(0x548,0x551)](data){function _0x163f17(_0x2e733d,_0x396441){return _0x32c5(_0x2e733d-0x16d,_0x396441);}try{const response=await this['httpClient'][_0x163f17(0x478,0x381)]('/auth/v1/signup',data);return response['data']['session']&&this['setSessionInternal'](response['data'][_0x163f17(0x37b,0x2c5)]),response[_0x163f17(0x41c,0x34b)];}catch(_0xd7bcb){throw this[_0x163f17(0x533,0x5fd)](_0xd7bcb);}}async[_0xf108a4(0x449,0x4e0)](data){function _0x5e778c(_0x1baede,_0x3c7272){return _0x32c5(_0x1baede-0x23,_0x3c7272);}try{const headers={};this['workspaceId']&&(headers['X-Workspace-ID']=this['workspaceId']);const response=await this['httpClient'][_0x5e778c(0x32e,0x32a)]('/auth/v1/sdk/signin',data,{'headers':headers});return response['data'][_0x5e778c(0x231,0x187)]&&this['setSessionInternal'](response[_0x5e778c(0x2d2,0x335)]['session']),response[_0x5e778c(0x2d2,0x24e)];}catch(_0x24289a){throw this['handleAuthError'](_0x24289a);}}async['signOut'](){function _0x362bb5(_0xef052a,_0x1663b1){return _0x32c5(_0x1663b1- -0x14c,_0xef052a);}try{await this['httpClient'][_0x362bb5(0x202,0x1bf)](_0x362bb5(0x1ff,0x1a6)),this[_0x362bb5(0xab,0x84)]();}catch(_0x45acec){this['clearSession']();throw this['handleAuthError'](_0x45acec);}}async['getUser'](){if(!this['currentSession']?.[_0x182ee7(0x287,0x2c8)])return null;function _0x182ee7(_0x4e5e93,_0x44b2fa){return _0x32c5(_0x44b2fa-0xc6,_0x4e5e93);}try{const response=await this[_0x182ee7(0x3ad,0x3ec)]['get']('/auth/v1/user');return response[_0x182ee7(0x447,0x375)]['user'];}catch(_0x273f13){if(_0x273f13 instanceof EBaaSError&&_0x273f13[_0x182ee7(0x329,0x31e)]===0x191)return this['clearSession'](),null;throw this[_0x182ee7(0x3dc,0x48c)](_0x273f13);}}async[_0xf108a4(0x3b2,0x3a8)](){if(!this[_0x4fd739(0x12c,0x1f5)]?.[_0x4fd739(0x1cf,0x122)])return null;function _0x4fd739(_0x1f4adb,_0x3396d1){return _0x32c5(_0x3396d1- -0x206,_0x1f4adb);}try{const response=await this[_0x4fd739(0x203,0x120)]['post']('/auth/v1/refresh',{'refresh_token':this[_0x4fd739(0x1aa,0x1f5)]['refresh_token']});if(response[_0x4fd739(0x12f,0xa9)][_0x4fd739(-0x2,0x8)])return this[_0x4fd739(0x8e,0x60)](response[_0x4fd739(0x11b,0xa9)]['session']),response[_0x4fd739(0x1b2,0xa9)][_0x4fd739(-0x10e,0x8)];return null;}catch(_0x110b4b){this[_0x4fd739(-0x98,-0x36)]();throw this[_0x4fd739(0x11f,0x1c0)](_0x110b4b);}}async[_0xf108a4(0x3f8,0x4c2)](_0x4303dd){function _0x28f438(_0xa1d0e1,_0x382af5){return _0x32c5(_0x382af5-0x3e3,_0xa1d0e1);}try{await this[_0x28f438(0x81e,0x709)]['post']('/auth/v1/reset-password',{'email':_0x4303dd});}catch(_0x2cbbb2){throw this[_0x28f438(0x752,0x7a9)](_0x2cbbb2);}}async['updateUser'](data){function _0x4d07fb(_0x1a1fe7,_0x2acf47){return _0x32c5(_0x2acf47- -0x2da,_0x1a1fe7);}try{const response=await this['httpClient'][_0x4d07fb(-0x56,-0xc1)]('/auth/v1/user',data);return response['data'][_0x4d07fb(0xa7,-0x32)];}catch(_0x4c8c30){throw this['handleAuthError'](_0x4c8c30);}}[_0xf108a4(0x3a3,0x3f4)](){function _0x305e76(_0x17973b,_0x5efa33){return _0x32c5(_0x5efa33- -0x168,_0x17973b);}return this[_0x305e76(0x17b,0x293)];}[_0xf108a4(0x361,0x3c6)](_0x5e3929){function _0x1dd282(_0x21c464,_0x5d18d4){return _0x32c5(_0x5d18d4- -0x305,_0x21c464);}this['currentSession']=_0x5e3929,this['httpClient'][_0x1dd282(0x61,-0x26)](_0x5e3929[_0x1dd282(-0xe7,-0x103)]),typeof localStorage!=='undefined'&&localStorage['setItem']('ebaas.auth.session',JSON['stringify'](_0x5e3929));}[_0xf108a4(0x423,0x47b)](_0x59cea1){return()=>{};}[_0xf108a4(0x39d,0x3c2)](_0x445443){this['workspaceId']=_0x445443;}['setSessionInternal'](_0x5e8b40){function _0x2130da(_0x1bcfb0,_0x3985fc){return _0x32c5(_0x3985fc-0x147,_0x1bcfb0);}this[_0x2130da(0x4da,0x542)]=_0x5e8b40,this[_0x2130da(0x4c8,0x46d)]['setAuthToken'](_0x5e8b40[_0x2130da(0x245,0x349)]),typeof localStorage!==_0x2130da(0x2cd,0x3e7)&&localStorage[_0x2130da(0x517,0x466)]('ebaas.auth.session',JSON[_0x2130da(0x3cf,0x3e4)](_0x5e8b40));}[_0xf108a4(0x372,0x330)](){this['currentSession']=null;function _0x10a0f8(_0x4b683d,_0x524a1e){return _0x32c5(_0x524a1e- -0x108,_0x4b683d);}this['httpClient'][_0x10a0f8(0xdf,0x110)](),typeof localStorage!==_0x10a0f8(0xed,0x198)&&localStorage['removeItem'](_0x10a0f8(0x12d,0x144));}[_0xf108a4(0x44a,0x3c4)](){function _0x19acf9(_0x5e86f8,_0x6a1279){return _0x32c5(_0x6a1279- -0x27b,_0x5e86f8);}if(typeof localStorage!==_0x19acf9(0x3a,0x25)){const _0x111b1a=localStorage['getItem']('ebaas.auth.session');if(_0x111b1a)try{const _0x3160b7=JSON[_0x19acf9(0x55,-0x68)](_0x111b1a);this[_0x19acf9(0xba,0xc8)](_0x3160b7);}catch(_0x490572){this[_0x19acf9(0x1a,-0xab)]();}}}[_0xf108a4(0x58f,0x526)](_0x6f65ec){function _0x23d9a3(_0x39e540,_0x17d1a0){return _0x32c5(_0x17d1a0- -0x381,_0x39e540);}if(_0x6f65ec instanceof EBaaSError)return _0x6f65ec;return new EBaaSError(_0x6f65ec[_0x23d9a3(0xde,-0x32)]||'Authentication\x20failed',_0x6f65ec['status']||0x0,_0x6f65ec);}}class QueryBuilder{constructor(_0x2dd491,_0x30d63d,_0x170f0b,_0x4d062f){this[_0x46c851(0x2d5,0x25f)]=_0x2dd491;function _0x46c851(_0x4c5f96,_0x58c7a4){return _0x32c5(_0x4c5f96- -0x51,_0x58c7a4);}this[_0x46c851(0x204,0x28e)]=_0x30d63d,this[_0x46c851(0x28a,0x19f)]=_0x170f0b,this[_0x46c851(0x23c,0x333)]=_0x4d062f,this['query']={'filters':[]};}[_0xf108a4(0x289,0x392)](_0x33c5c2='*',_0x3d55be){this[_0x8b6256(0x5dc,0x5af)][_0x8b6256(0x39c,0x43b)]=_0x33c5c2;function _0x8b6256(_0x4e7af1,_0x2e51dc){return _0x32c5(_0x2e51dc-0x209,_0x4e7af1);}return this;}['insert'](data,_0x1d4fab){function _0x404c98(_0x39b83a,_0x44fd0c){return _0x32c5(_0x44fd0c- -0x315,_0x39b83a);}return this[_0x404c98(-0x5,0x26)]('POST',_0x404c98(0x189,0xa8)+this[_0x404c98(-0x10e,-0xc0)]+'?operation=insert',{'data':data,'options':_0x1d4fab});}['update'](data,_0x5cadb1){function _0x525b5a(_0x2b8057,_0x552f23){return _0x32c5(_0x552f23-0x23,_0x2b8057);}return this[_0x525b5a(0x3a4,0x3c9)]['updateData']=data,this[_0x525b5a(0x417,0x3c9)]['updateOptions']=_0x5cadb1,this;}['upsert'](data,_0x58d207){function _0xba7659(_0x2c349f,_0x67e559){return _0x32c5(_0x67e559- -0x3a8,_0x2c349f);}return this[_0xba7659(-0x161,-0x6d)]('POST',_0xba7659(0xcc,0x15)+this[_0xba7659(-0x127,-0x153)]+_0xba7659(-0xd7,-0x181),{'data':data,'options':{..._0x58d207,'upsert':!![]}});}['delete'](_0x479147){this['query']['deleteOptions']=_0x479147,this[_0x57363d(0x53c,0x544)]['isDelete']=!![];function _0x57363d(_0xd4758b,_0x1744d2){return _0x32c5(_0xd4758b-0x196,_0x1744d2);}return this;}['eq'](_0x4c7f6a,_0x2654c5){this[_0x265b3e(0x589,0x557)][_0x265b3e(0x34d,0x45b)][_0x265b3e(0x3f3,0x428)]({'column':_0x4c7f6a,'operator':'eq','value':_0x2654c5});function _0x265b3e(_0x794b0c,_0x5d912e){return _0x32c5(_0x5d912e-0x1b1,_0x794b0c);}return this;}[_0xf108a4(0x383,0x367)](_0x40d880,_0x453554){function _0xcf8ed3(_0x2eeae5,_0x1f4aa8){return _0x32c5(_0x2eeae5- -0x390,_0x1f4aa8);}return this['query']['filters'][_0xcf8ed3(-0x119,-0xc8)]({'column':_0x40d880,'operator':_0xcf8ed3(-0x189,-0xde),'value':_0x453554}),this;}['gt'](_0x5bfecf,_0x39739d){this['query']['filters'][_0x1b958c(0x543,0x613)]({'column':_0x5bfecf,'operator':'gt','value':_0x39739d});function _0x1b958c(_0x4810a8,_0x3b44c2){return _0x32c5(_0x4810a8-0x2cc,_0x3b44c2);}return this;}[_0xf108a4(0x503,0x541)](_0x33687a,_0x4ffa4e){this[_0x4219fe(0x1f0,0x190)][_0x4219fe(-0x4a,0x94)]['push']({'column':_0x33687a,'operator':'gte','value':_0x4ffa4e});function _0x4219fe(_0x2da63d,_0xfdbaca){return _0x32c5(_0xfdbaca- -0x216,_0x2da63d);}return this;}['lt'](_0x55bd5b,_0x5715d5){function _0x36e5d5(_0x31fd65,_0x1f8a5e){return _0x32c5(_0x31fd65-0x14b,_0x1f8a5e);}return this[_0x36e5d5(0x4f1,0x544)]['filters'][_0x36e5d5(0x3c2,0x38a)]({'column':_0x55bd5b,'operator':'lt','value':_0x5715d5}),this;}['lte'](_0x22d802,_0x57e661){function _0x5475b1(_0x31c2a9,_0x42e42a){return _0x32c5(_0x42e42a-0x25b,_0x31c2a9);}return this[_0x5475b1(0x5f4,0x601)]['filters']['push']({'column':_0x22d802,'operator':_0x5475b1(0x70f,0x624),'value':_0x57e661}),this;}[_0xf108a4(0x498,0x3cc)](_0x433929,_0x3ab436){this['query']['filters'][_0x331098(-0xa4,-0x121)]({'column':_0x433929,'operator':'like','value':_0x3ab436});function _0x331098(_0x5190a6,_0x173ad0){return _0x32c5(_0x173ad0- -0x398,_0x5190a6);}return this;}[_0xf108a4(0x498,0x479)](_0x2ddcf4,_0x4d0dcc){this[_0x21d150(0x441,0x3b7)][_0x21d150(0x345,0x2bc)][_0x21d150(0x312,0x2e7)]({'column':_0x2ddcf4,'operator':'ilike','value':_0x4d0dcc});function _0x21d150(_0x28854e,_0x3b5ba3){return _0x32c5(_0x28854e-0x9b,_0x3b5ba3);}return this;}['is'](_0x5019c2,_0x269882){function _0x12ce69(_0x5da7ff,_0x23e580){return _0x32c5(_0x23e580-0x36b,_0x5da7ff);}return this['query']['filters'][_0x12ce69(0x66d,0x5e2)]({'column':_0x5019c2,'operator':'is','value':_0x269882}),this;}['in'](_0x5cd11b,_0x135135){function _0x165eb8(_0x50ab72,_0xd7bb6c){return _0x32c5(_0x50ab72- -0x2bf,_0xd7bb6c);}return this[_0x165eb8(0xe7,0x116)][_0x165eb8(-0x15,-0x10a)][_0x165eb8(-0x48,-0x67)]({'column':_0x5cd11b,'operator':'in','value':_0x135135}),this;}['contains'](_0x5d5b77,_0x94ef15){function _0x4d3e82(_0x3e7902,_0x3e32b3){return _0x32c5(_0x3e32b3-0x240,_0x3e7902);}return this[_0x4d3e82(0x4e7,0x5e6)]['filters'][_0x4d3e82(0x5c0,0x4b7)]({'column':_0x5d5b77,'operator':_0x4d3e82(0x383,0x444),'value':_0x94ef15}),this;}['match'](_0x16f3c3){return Object['entries'](_0x16f3c3)['forEach'](([_0x1615be,_0x777976])=>{this['eq'](_0x1615be,_0x777976);}),this;}[_0xf108a4(0x4af,0x514)](_0xc5033,_0x4a5e1e){!this['query']['order']&&(this[_0x1638f8(0xce,0x15e)]['order']=[]);this[_0x1638f8(0xce,0x13)][_0x1638f8(0xdc,0x122)]['push']({'column':_0xc5033,'ascending':_0x4a5e1e?.['ascending']!==![]});function _0x1638f8(_0x4f4449,_0x405dcf){return _0x32c5(_0x4f4449- -0x2d8,_0x405dcf);}return this;}['limit'](count){function _0x4a9773(_0x3e0801,_0x18bc1b){return _0x32c5(_0x3e0801-0xfe,_0x18bc1b);}return this[_0x4a9773(0x4a4,0x571)]['limit']=count,this;}[_0xf108a4(0x586,0x46d)](from,_0x100356){this['query'][_0x1de679(0x3ae,0x33a)]={'from':from,'to':_0x100356};function _0x1de679(_0x56e5c7,_0x52b454){return _0x32c5(_0x52b454-0x2d,_0x56e5c7);}return this;}async[_0xf108a4(0x5ce,0x4c7)](){function _0x55d0b6(_0xae401b,_0x96bdd1){return _0x32c5(_0xae401b- -0x2fe,_0x96bdd1);}if(this['query']['updateData'])return this[_0x55d0b6(0x3d,-0xb)]('PATCH',_0x55d0b6(0xbf,0x143)+this[_0x55d0b6(-0xa9,-0x19c)],{'data':this['query'][_0x55d0b6(0xd5,0x1ce)],'options':this['query'][_0x55d0b6(0x34,-0xb5)],'filters':this['query'][_0x55d0b6(-0x54,-0x2f)]});else return this[_0x55d0b6(0xa8,-0x79)]['isDelete']?this['executeQuery']('DELETE','/sdk/v1/'+this['table']+'?operation=delete',{'options':this['query'][_0x55d0b6(0x7c,-0x49)],'filters':this[_0x55d0b6(0xa8,0xe8)][_0x55d0b6(-0x54,0x70)]}):this['executeQuery']('GET',_0x55d0b6(0xbf,0x126)+this[_0x55d0b6(-0xa9,-0x163)]+'?operation=select',{'select':this['query'][_0x55d0b6(-0xcc,-0x19d)],'filters':this['query'][_0x55d0b6(-0x54,0x35)],'order':this[_0x55d0b6(0xa8,0x11d)]['order'],'limit':this[_0x55d0b6(0xa8,0x1b6)]['limit'],'range':this['query'][_0x55d0b6(0xf,0x2b)]});}async['single'](){this['limit'](0x1);function _0x4e7484(_0xfba36b,_0x2fe56d){return _0x32c5(_0x2fe56d-0x31e,_0xfba36b);}const result=await this['execute']();return{'data':result[_0x4e7484(0x4ea,0x5cd)]?.[0x0]||null,'error':result[_0x4e7484(0x61b,0x6b5)]};}async['executeQuery'](_0x403ef6,_0x541c27,_0x2f6c62){function _0x182739(_0x5c2d17,_0x29cfae){return _0x32c5(_0x5c2d17- -0x10c,_0x29cfae);}try{let response;const headers={};this['workspaceId']&&(headers['x-workspace-id']=this[_0x182739(0x181,0x138)]);if(_0x403ef6==='GET'){const _0x159027=_0x541c27['split']('?'),_0x209caf=_0x159027[0x0],existingParams=new URLSearchParams(_0x159027[0x1]||'');if(_0x2f6c62[_0x182739(0x126,0x139)])existingParams['append'](_0x182739(0x126,0x9),_0x2f6c62['select']);_0x2f6c62[_0x182739(0x19e,0x1b4)]?.['length']&&_0x2f6c62['filters'][_0x182739(0x17a,0x22d)](filter=>{function _0x3157fe(_0x1b4a5a,_0x365240){return _0x32c5(_0x1b4a5a-0x14e,_0x365240);}existingParams[_0x3157fe(0x38f,0x3ad)](filter[_0x3157fe(0x454,0x40a)],filter['operator']+'.'+filter[_0x3157fe(0x4be,0x4ea)]);});if(_0x2f6c62[_0x182739(0x2a8,0x3bc)]?.['length']){const orderStr=_0x2f6c62['order']['map'](_0x1c49ec=>''+_0x1c49ec[_0x182739(0x1fa,0x13c)]+(_0x1c49ec['ascending']?'.asc':_0x182739(0x2d7,0x333)))[_0x182739(0x242,0x188)](',');existingParams[_0x182739(0x135,0xc5)]('order',orderStr);}if(_0x2f6c62[_0x182739(0x236,0x2f4)])existingParams[_0x182739(0x135,0x8d)]('limit',_0x2f6c62['limit'][_0x182739(0x173,0x1ba)]());_0x2f6c62['range']&&(existingParams[_0x182739(0x135,0x16f)]('offset',_0x2f6c62['range']['from'][_0x182739(0x173,0xc2)]()),existingParams[_0x182739(0x135,0xfd)]('limit',(_0x2f6c62[_0x182739(0x201,0x206)]['to']-_0x2f6c62[_0x182739(0x201,0x1ea)]['from']+0x1)[_0x182739(0x173,0x217)]())),response=await this['httpClient']['get'](_0x209caf+'?'+existingParams['toString'](),{'headers':headers});}else{if(_0x403ef6==='DELETE'){const _0x43c661=_0x541c27[_0x182739(0x208,0x212)]('?'),_0x124e7d=_0x43c661[0x0],existingParams=new URLSearchParams(_0x43c661[0x1]||'');!existingParams['has'](_0x182739(0x265,0x208))&&existingParams['append'](_0x182739(0x265,0x2fb),_0x182739(0x129,0x109));_0x2f6c62[_0x182739(0x19e,0x2b8)]?.[_0x182739(0x184,0x1a8)]&&_0x2f6c62['filters']['forEach'](filter=>{function _0x590eb9(_0x4aa962,_0x5bc2c7){return _0x32c5(_0x4aa962- -0x307,_0x5bc2c7);}existingParams['append'](filter[_0x590eb9(-0x1,0x11)],filter[_0x590eb9(0x3f,-0x11)]+'.'+filter['value']);});const deleteUrl=_0x124e7d+'?'+existingParams['toString']();console['log']('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console['log']('\uD83D\uDD27 DELETE headers:',headers),console[_0x182739(0xb6,0x195)]('\uD83D\uDD27 DELETE filtros originais:',_0x2f6c62[_0x182739(0x19e,0x2ab)]),response=await this[_0x182739(0x21a,0x220)][_0x182739(0x129,0x228)](deleteUrl,{'headers':headers});}else{if(_0x403ef6==='PATCH'){const _0x9c749f=_0x541c27[_0x182739(0x208,0x285)]('?'),_0x25c0fa=_0x9c749f[0x0],existingParams=new URLSearchParams(_0x9c749f[0x1]||'');!existingParams['has']('operation')&&existingParams['append']('operation',_0x182739(0x11a,0x15d));_0x2f6c62['filters']?.['length']&&_0x2f6c62['filters']['forEach'](filter=>{function _0x21f0b0(_0x306e1b,_0x2dfb90){return _0x32c5(_0x2dfb90- -0x1ea,_0x306e1b);}existingParams['append'](filter[_0x21f0b0(0x1e1,0x11c)],filter[_0x21f0b0(0x15a,0x15c)]+'.'+filter['value']);});_0x2f6c62['options']?.[_0x182739(0x2a4,0x27c)]&&(headers[_0x182739(0x10e,0x17c)]=_0x2f6c62['options']['prefer']);const updateUrl=_0x25c0fa+'?'+existingParams['toString']();response=await this['httpClient'][_0x182739(0x131,0x119)](updateUrl,_0x2f6c62['data'],{'headers':headers});}else{let _0x55472b=_0x2f6c62['data'];!headers[_0x182739(0x10e,0x19c)]&&(headers['Prefer']=_0x182739(0x223,0x2b4)),_0x2f6c62['options']?.['upsert']&&(headers[_0x182739(0x10e,0xa8)]='resolution=merge-duplicates,return=representation'),_0x2f6c62[_0x182739(0x21b,0x1c0)]&&(_0x55472b=_0x2f6c62[_0x182739(0x21b,0x289)]),response=await this[_0x182739(0x21a,0x1e8)]['post'](_0x541c27,_0x55472b,{'headers':headers});}}}return{'data':response[_0x182739(0x1a3,0x214)],'error':null,'count':response[_0x182739(0x1fc,0x11f)]?.[_0x182739(0x2d8,0x331)]?parseInt(response[_0x182739(0x1fc,0x2b9)][_0x182739(0x2d8,0x2ed)]):undefined};}catch(_0x3994dd){return{'data':null,'error':_0x3994dd instanceof EBaaSError?_0x3994dd:new EBaaSError(_0x3994dd instanceof Error?_0x3994dd['message']:_0x182739(0x183,0x64),0x0,_0x3994dd)};}}}class CustomDatabaseManager{constructor(_0x4fdad4,_0x186dcc){this[_0x192218(0x2e3,0x212)]=_0x4fdad4;function _0x192218(_0x2dca42,_0x1b2c02){return _0x32c5(_0x2dca42- -0x43,_0x1b2c02);}this['workspaceId']=_0x186dcc;}async[_0xf108a4(0x479,0x443)](){if(!this['workspaceId'])return{'hasCustomDatabase':![]};try{const response=await this[_0x22234b(0x31a,0x2f4)][_0x22234b(0x30c,0x385)]('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this['workspaceId']}});if(response['status']===0xc8&&response['data']?.['config']){const config=response['data']['config'],_0x39148d={'host':config['postgresHost'],'port':config['postgresPort'],'database':config[_0x22234b(0x3b9,0x3b7)],'username':config['postgresUsername'],'password':'','schema':config['postgresSchema'],'sslEnabled':config[_0x22234b(0x1dc,0x192)]};return this[_0x22234b(0x34d,0x28b)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x39148d},this['detectedConfig'];}}catch(_0x5ba420){if(_0x5ba420?.[_0x22234b(0x24c,0x26e)]===0x194)return this['detectedConfig']={'hasCustomDatabase':![]},this[_0x22234b(0x34d,0x285)];console['warn']('Failed to detect custom database configuration:',_0x5ba420);}this['detectedConfig']={'hasCustomDatabase':![]};function _0x22234b(_0xe1586c,_0x357968){return _0x32c5(_0xe1586c- -0xc,_0x357968);}return this['detectedConfig'];}async['testConnection'](_0x585b25){function _0x50742f(_0x4f5f8c,_0x39bdb2){return _0x32c5(_0x39bdb2- -0x157,_0x4f5f8c);}try{const response=await this[_0x50742f(0x22a,0x1cf)][_0x50742f(0x1ed,0x1b4)]('/admin/v1/workspace/custom-database/test-connection',_0x585b25,{'headers':this[_0x50742f(0xe1,0x136)]?{'X-Workspace-ID':this['workspaceId']}:{}});return response[_0x50742f(0xf1,0x158)];}catch(_0x182714){return{'success':![],'message':_0x182714?.['message']||'Failed\x20to\x20test\x20connection'};}}async[_0xf108a4(0x48b,0x42f)](_0x1e09c3){function _0x336439(_0x469130,_0xbe2dfd){return _0x32c5(_0xbe2dfd-0x31,_0x469130);}if(!this[_0x336439(0x3d2,0x2be)])throw new Error('Workspace ID is required to configure custom database');const response=await this[_0x336439(0x312,0x357)]['post']('/admin/v1/workspace/custom-database',{'workspaceId':this[_0x336439(0x1cf,0x2be)],..._0x1e09c3},{'headers':{'X-Workspace-ID':this['workspaceId']}}),config=response[_0x336439(0x2a2,0x2e0)][_0x336439(0x505,0x429)];return this['detectedConfig']={'hasCustomDatabase':!![],'config':config,'credentials':_0x1e09c3},config;}async[_0xf108a4(0x648,0x531)](){if(!this['workspaceId'])throw new Error('Workspace ID is required to remove custom database');function _0x4a3ff6(_0x23e5f1,_0x1f2d8a){return _0x32c5(_0x1f2d8a- -0xcf,_0x23e5f1);}await this['httpClient']['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this[_0x4a3ff6(0xab,0x1be)]}}),this['detectedConfig']={'hasCustomDatabase':![]};}['getDetectedConfig'](){return this['detectedConfig'];}[_0xf108a4(0x459,0x44e)](){function _0x220e29(_0x366049,_0x24e345){return _0x32c5(_0x24e345-0x31b,_0x366049);}return this[_0x220e29(0x660,0x674)]?.[_0x220e29(0x4e7,0x609)]??![];}[_0xf108a4(0x3a3,0x316)](){return this['detectedConfig']?.['credentials'];}['setWorkspaceId'](_0x53507f){this[_0x455ebd(0x3eb,0x4a9)]=_0x53507f;function _0x455ebd(_0xf21a95,_0xcdc7a5){return _0x32c5(_0xf21a95-0x15e,_0xcdc7a5);}this['detectedConfig']=undefined;}[_0xf108a4(0x5e1,0x4ea)](){return this['workspaceId'];}[_0xf108a4(0x2da,0x323)](){function _0x5940b1(_0x9dab3,_0x203451){return _0x32c5(_0x203451-0x158,_0x9dab3);}return{'workspaceId':this['workspaceId'],'hasConfig':this[_0x5940b1(0x3fd,0x446)](),'configDetails':this['detectedConfig']?.['credentials']?{'host':this[_0x5940b1(0x5c2,0x4b1)][_0x5940b1(0x404,0x3b8)]['host'],'port':this['detectedConfig'][_0x5940b1(0x2f0,0x3b8)][_0x5940b1(0x478,0x43f)],'database':this['detectedConfig']['credentials']['database'],'schema':this[_0x5940b1(0x424,0x4b1)][_0x5940b1(0x345,0x3b8)][_0x5940b1(0x4fa,0x433)]||'public','sslEnabled':this[_0x5940b1(0x51d,0x4b1)]['credentials']['sslEnabled']||![]}:undefined};}}class DatabaseClient{constructor(_0x3a611b,_0x40a1fe){this['httpClient']=_0x3a611b,this['customDatabaseManager']=new CustomDatabaseManager(_0x3a611b,_0x40a1fe);}['from'](_0x5957e3){function _0x26f4c3(_0x4cd6c3,_0x204191){return _0x32c5(_0x4cd6c3-0x361,_0x204191);}return new QueryBuilder(this[_0x26f4c3(0x687,0x587)],_0x5957e3,this[_0x26f4c3(0x6fd,0x78e)],this[_0x26f4c3(0x5ca,0x642)]['getWorkspaceId']());}['rpc'](_0x162bb5,_0x927702){function _0x4a2785(_0x27bc3e,_0x45ece2){return _0x32c5(_0x45ece2-0x30d,_0x27bc3e);}return this[_0x4a2785(0x622,0x633)]['post'](_0x4a2785(0x4fe,0x5d1)+_0x162bb5,_0x927702);}[_0xf108a4(0x4cb,0x43b)](_0x371128){const _0x53edae=new DatabaseClient(this['httpClient'],this['customDatabaseManager'][_0x48be77(0x24c,0x29a)]());_0x53edae['currentSchema']=_0x371128;function _0x48be77(_0x1a4523,_0x33b3b4){return _0x32c5(_0x1a4523- -0x13e,_0x33b3b4);}return _0x53edae['customDatabaseManager']=this['customDatabaseManager'],_0x53edae;}async['detectCustomDatabase'](){function _0x4f7ae6(_0x17d5bb,_0x1a6caa){return _0x32c5(_0x1a6caa- -0x339,_0x17d5bb);}return this['customDatabaseManager'][_0x4f7ae6(-0xa5,-0x56)]();}async['testCustomConnection'](_0x2ebe84){function _0x23bd0f(_0x1257c6,_0xf33cb3){return _0x32c5(_0x1257c6-0x306,_0xf33cb3);}return this['customDatabaseManager'][_0x23bd0f(0x681,0x6fb)](_0x2ebe84);}async['configureCustomDatabase'](_0x3c4dc6){return this['customDatabaseManager']['configureCustomDatabase'](_0x3c4dc6);}async[_0xf108a4(0x454,0x531)](){function _0x1ece59(_0x4c0fb3,_0x3d389a){return _0x32c5(_0x3d389a- -0xee,_0x4c0fb3);}return this['customDatabaseManager'][_0x1ece59(0x380,0x2e3)]();}[_0xf108a4(0x302,0x34c)](){function _0x1db6ac(_0x48de30,_0x1025fb){return _0x32c5(_0x48de30- -0x397,_0x1025fb);}return this['customDatabaseManager'][_0x1db6ac(-0xa9,0x6)]();}['getCustomDatabaseStatus'](){function _0x220a1e(_0x42a657,_0x23d599){return _0x32c5(_0x42a657-0x181,_0x23d599);}return this[_0x220a1e(0x3ea,0x4f7)][_0x220a1e(0x344,0x3d0)]();}[_0xf108a4(0x472,0x3c2)](_0x21e713){this['customDatabaseManager']['setWorkspaceId'](_0x21e713);}async['initialize'](){function _0x67cdfa(_0xb0cb7a,_0x1d4a49){return _0x32c5(_0xb0cb7a-0xc8,_0x1d4a49);}try{await this[_0x67cdfa(0x331,0x39b)]['detectCustomDatabase']();}catch(_0x5470d6){console[_0x67cdfa(0x3c7,0x32e)]('Failed to initialize custom database detection:',_0x5470d6);}}}class StorageBucket{constructor(_0x58fd72,bucketId){this['httpClient']=_0x58fd72,this['bucketId']=bucketId;}async['upload'](_0x81f53,_0x14cff7,_0x5f0d6d){function _0x3a0dbc(_0x5267f8,_0x16ba6f){return _0x32c5(_0x5267f8- -0x166,_0x16ba6f);}try{const _0x5a5cf8=new FormData();if(_0x14cff7 instanceof File)_0x5a5cf8[_0x3a0dbc(0xdb,0x1d3)](_0x3a0dbc(0x244,0x18a),_0x14cff7);else{if(_0x14cff7 instanceof Blob)_0x5a5cf8[_0x3a0dbc(0xdb,0x149)](_0x3a0dbc(0x244,0x18a),_0x14cff7,_0x81f53);else{if(_0x14cff7 instanceof ArrayBuffer)_0x5a5cf8['append'](_0x3a0dbc(0x244,0x227),new Blob([_0x14cff7]),_0x81f53);else typeof _0x14cff7==='string'&&_0x5a5cf8['append'](_0x3a0dbc(0x244,0x2ac),new Blob([_0x14cff7],{'type':'text/plain'}),_0x81f53);}}_0x5a5cf8[_0x3a0dbc(0xdb,-0x3)]('path',_0x81f53);_0x5f0d6d?.[_0x3a0dbc(0x16f,0x213)]&&_0x5a5cf8[_0x3a0dbc(0xdb,-0x16)]('cacheControl',_0x5f0d6d[_0x3a0dbc(0x16f,0x125)]);_0x5f0d6d?.[_0x3a0dbc(0x67,0x15)]&&_0x5a5cf8[_0x3a0dbc(0xdb,0x1dc)](_0x3a0dbc(0x67,0x12f),_0x5f0d6d[_0x3a0dbc(0x67,0xa2)]);_0x5f0d6d?.['metadata']&&_0x5a5cf8['append']('metadata',JSON[_0x3a0dbc(0x137,0x224)](_0x5f0d6d['metadata']));const _0x32c4bd=_0x3a0dbc(0x58,0x76)+this[_0x3a0dbc(0x294,0x352)]+'/files'+(_0x5f0d6d?.[_0x3a0dbc(0x187,0x2a0)]?_0x3a0dbc(0x150,0x264):''),response=await this[_0x3a0dbc(0x1c0,0x29d)]['post'](_0x32c4bd,_0x5a5cf8,{'headers':{'Content-Type':_0x3a0dbc(0x135,0x200)}});return{'data':response[_0x3a0dbc(0x149,0x1ae)],'error':null};}catch(_0xe44167){return{'data':null,'error':_0xe44167 instanceof EBaaSError?_0xe44167:new EBaaSError(_0xe44167 instanceof Error?_0xe44167[_0x3a0dbc(0x1e9,0x1e5)]:_0x3a0dbc(0x250,0x1a5),0x0,_0xe44167)};}}async[_0xf108a4(0x439,0x547)](_0x3c1352,_0x2ab2ec){function _0x4d0eb6(_0x9e17e0,_0x3d6eee){return _0x32c5(_0x9e17e0-0x1ad,_0x3d6eee);}try{const _0x1d50c5=new URLSearchParams();_0x2ab2ec?.['transform']&&Object['entries'](_0x2ab2ec['transform'])['forEach'](([_0x49ad51,_0xf28d68])=>{_0xf28d68!==undefined&&_0x1d50c5['append'](_0x49ad51,String(_0xf28d68));});const _0x3d7d9b='/storage/buckets/'+this['bucketId']+'/files/'+_0x3c1352+(_0x1d50c5['toString']()?'?'+_0x1d50c5['toString']():''),response=await this[_0x4d0eb6(0x4d3,0x535)]['get'](_0x3d7d9b,{'responseType':'blob'});return{'data':response['data'],'error':null};}catch(_0x1cf9a1){return{'data':null,'error':_0x1cf9a1 instanceof EBaaSError?_0x1cf9a1:new EBaaSError(_0x1cf9a1 instanceof Error?_0x1cf9a1[_0x4d0eb6(0x4fc,0x475)]:_0x4d0eb6(0x3d5,0x426),0x0,_0x1cf9a1)};}}async['list'](_0x225253,_0x9f0629){function _0x11de57(_0x3d586a,_0x44f2ce){return _0x32c5(_0x44f2ce- -0x3a2,_0x3d586a);}try{const _0xe7b6c8=new URLSearchParams();_0x225253&&_0xe7b6c8[_0x11de57(-0xf7,-0x161)]('prefix',_0x225253);_0x9f0629?.[_0x11de57(-0x172,-0x60)]&&_0xe7b6c8['append']('limit',String(_0x9f0629['limit']));_0x9f0629?.['offset']&&_0xe7b6c8['append']('offset',String(_0x9f0629['offset']));_0x9f0629?.['sortBy']&&_0xe7b6c8[_0x11de57(-0x283,-0x161)](_0x11de57(-0x10d,-0x180),JSON[_0x11de57(-0x3a,-0x105)](_0x9f0629['sortBy']));_0x9f0629?.['search']&&_0xe7b6c8[_0x11de57(-0x18e,-0x161)]('search',_0x9f0629['search']);const _0x4e455b='/storage/buckets/'+this['bucketId']+_0x11de57(-0x1d5,-0xc8)+(_0xe7b6c8['toString']()?'?'+_0xe7b6c8[_0x11de57(-0x1d8,-0x123)]():''),response=await this[_0x11de57(-0xc1,-0x7c)][_0x11de57(-0x68,-0x8a)](_0x4e455b);return{'data':response['data'],'error':null};}catch(_0x570590){return{'data':null,'error':_0x570590 instanceof EBaaSError?_0x570590:new EBaaSError(_0x570590 instanceof Error?_0x570590['message']:'Failed\x20to\x20list\x20files',0x0,_0x570590)};}}async['remove'](_0x5ba3dd){function _0x4b7c43(_0x1fa241,_0x1f2e53){return _0x32c5(_0x1fa241-0x360,_0x1f2e53);}try{const response=await this['httpClient']['delete']('/storage/buckets/'+this[_0x4b7c43(0x75a,0x7ec)]+_0x4b7c43(0x63a,0x66e),{'data':{'paths':_0x5ba3dd}});return{'data':response['data'],'error':null};}catch(_0x424644){return{'data':null,'error':_0x424644 instanceof EBaaSError?_0x424644:new EBaaSError(_0x424644 instanceof Error?_0x424644[_0x4b7c43(0x6af,0x678)]:_0x4b7c43(0x52b,0x4e9),0x0,_0x424644)};}}async[_0xf108a4(0x3df,0x384)](fromPath,_0xbee865){function _0x331521(_0x3240e3,_0x409ae9){return _0x32c5(_0x409ae9-0x2dc,_0x3240e3);}try{const response=await this[_0x331521(0x5b9,0x602)]['post']('/storage/buckets/'+this[_0x331521(0x79e,0x6d6)]+_0x331521(0x623,0x609),{'sourceKey':fromPath,'destinationKey':_0xbee865});return{'data':response[_0x331521(0x505,0x58b)],'error':null};}catch(_0x5815ce){return{'data':null,'error':_0x5815ce instanceof EBaaSError?_0x5815ce:new EBaaSError(_0x5815ce instanceof Error?_0x5815ce['message']:'Failed\x20to\x20move\x20file',0x0,_0x5815ce)};}}async[_0xf108a4(0x459,0x442)](fromPath,_0x9d32aa){function _0x14c7ff(_0x225887,_0x3086d5){return _0x32c5(_0x225887- -0xb2,_0x3086d5);}try{const response=await this[_0x14c7ff(0x274,0x258)][_0x14c7ff(0x259,0x27d)](_0x14c7ff(0x10c,0x14c)+this[_0x14c7ff(0x348,0x3a2)]+_0x14c7ff(0x210,0x113),{'sourceKey':fromPath,'destinationKey':_0x9d32aa});return{'data':response[_0x14c7ff(0x1fd,0x2f6)],'error':null};}catch(_0x1f49d6){return{'data':null,'error':_0x1f49d6 instanceof EBaaSError?_0x1f49d6:new EBaaSError(_0x1f49d6 instanceof Error?_0x1f49d6['message']:_0x14c7ff(0x25f,0x1a7),0x0,_0x1f49d6)};}}async[_0xf108a4(0x2e1,0x3ba)](_0x30a381,_0x22918f,_0x3ed5c8){function _0xb3a1b5(_0x2596c9,_0x2e5ba9){return _0x32c5(_0x2e5ba9- -0x17,_0x2596c9);}try{const response=await this['httpClient'][_0xb3a1b5(0x1de,0x2f4)]('/storage/buckets/'+this['bucketId']+'/files/'+_0x30a381+_0xb3a1b5(0x1bb,0x26d),{'expiresIn':_0x22918f,..._0x3ed5c8});return{'data':response['data'],'error':null};}catch(_0x597a60){return{'data':null,'error':_0x597a60 instanceof EBaaSError?_0x597a60:new EBaaSError(_0x597a60 instanceof Error?_0x597a60['message']:'Failed\x20to\x20create\x20signed\x20URL',0x0,_0x597a60)};}}['getPublicUrl'](_0x353148,_0x35f0fa){const _0x34c728=new URLSearchParams();function _0x507cae(_0x1029c4,_0xbd4377){return _0x32c5(_0xbd4377-0x3be,_0x1029c4);}_0x35f0fa?.['transform']&&Object['entries'](_0x35f0fa[_0x507cae(0x5b4,0x5bb)])[_0x507cae(0x6e6,0x644)](([_0x7b28f0,_0x219321])=>{function _0xa0eefb(_0x55e05e,_0xd5d560){return _0x32c5(_0x55e05e-0x271,_0xd5d560);}_0x219321!==undefined&&_0x34c728[_0xa0eefb(0x4b2,0x3d3)](_0x7b28f0,String(_0x219321));});const _0x246fae=this['httpClient'][_0x507cae(0x6ad,0x623)]||'',_0x5de95e=_0x246fae+_0x507cae(0x631,0x57c)+this['bucketId']+_0x507cae(0x4b7,0x5b2)+_0x353148+(_0x34c728[_0x507cae(0x5b3,0x63d)]()?'?'+_0x34c728[_0x507cae(0x562,0x63d)]():'');return{'data':{'publicUrl':_0x5de95e}};}async['getFileInfo'](_0x34eaf6){function _0x5b7390(_0x1e4aec,_0x46d469){return _0x32c5(_0x1e4aec- -0x356,_0x46d469);}try{const response=await this[_0x5b7390(-0x30,-0x7d)]['get'](_0x5b7390(-0x198,-0x1be)+this[_0x5b7390(0xa4,0x1a2)]+'/files/'+_0x34eaf6+_0x5b7390(-0xde,-0x135));return{'data':response[_0x5b7390(-0xa7,-0x1ca)],'error':null};}catch(_0x1761ac){return{'data':null,'error':_0x1761ac instanceof EBaaSError?_0x1761ac:new EBaaSError(_0x1761ac instanceof Error?_0x1761ac[_0x5b7390(-0x7,0x103)]:_0x5b7390(0x71,-0x22),0x0,_0x1761ac)};}}async['updateFileMetadata'](_0x1efec3,metadata){function _0x1b33e7(_0x42f673,_0x155367){return _0x32c5(_0x42f673-0x162,_0x155367);}try{const response=await this[_0x1b33e7(0x488,0x518)][_0x1b33e7(0x37b,0x2f0)](_0x1b33e7(0x320,0x38f)+this[_0x1b33e7(0x55c,0x474)]+_0x1b33e7(0x356,0x234)+_0x1efec3+_0x1b33e7(0x4a1,0x576),{'metadata':metadata});return{'data':response[_0x1b33e7(0x411,0x312)],'error':null};}catch(_0x4e0d9c){return{'data':null,'error':_0x4e0d9c instanceof EBaaSError?_0x4e0d9c:new EBaaSError(_0x4e0d9c instanceof Error?_0x4e0d9c[_0x1b33e7(0x4b1,0x3c6)]:'Failed\x20to\x20update\x20file\x20metadata',0x0,_0x4e0d9c)};}}}class StorageClient{constructor(_0x1ca557){function _0x5cb037(_0x374096,_0x3e2b2f){return _0x32c5(_0x3e2b2f-0x3cd,_0x374096);}this[_0x5cb037(0x79e,0x6f3)]=_0x1ca557;}[_0xf108a4(0x333,0x39b)](bucketId){return new StorageBucket(this['httpClient'],bucketId);}async[_0xf108a4(0x2ae,0x3c1)](_0xc80fdf,_0x20496e){try{const response=await this['httpClient']['post']('/storage/buckets',{'id':_0xc80fdf,..._0x20496e});return{'data':response['data'],'error':null};}catch(_0x5ceea1){return{'data':null,'error':_0x5ceea1 instanceof EBaaSError?_0x5ceea1:new EBaaSError(_0x5ceea1 instanceof Error?_0x5ceea1['message']:'Failed\x20to\x20create\x20bucket',0x0,_0x5ceea1)};}}async[_0xf108a4(0x500,0x45e)](_0x1be2dd){function _0x2a45cd(_0x20a059,_0x734c7a){return _0x32c5(_0x734c7a-0x2d9,_0x20a059);}try{const response=await this[_0x2a45cd(0x68e,0x5ff)]['get']('/storage/buckets/'+_0x1be2dd);return{'data':response['data'],'error':null};}catch(_0x411237){return{'data':null,'error':_0x411237 instanceof EBaaSError?_0x411237:new EBaaSError(_0x411237 instanceof Error?_0x411237['message']:'Failed\x20to\x20get\x20bucket',0x0,_0x411237)};}}async[_0xf108a4(0x3ba,0x4d5)](){function _0x4ef550(_0x37931e,_0x2c2760){return _0x32c5(_0x2c2760- -0x2c8,_0x37931e);}try{const response=await this[_0x4ef550(0x179,0x5e)]['get']('/storage/buckets');return{'data':response['data'],'error':null};}catch(_0x238835){return{'data':null,'error':_0x238835 instanceof EBaaSError?_0x238835:new EBaaSError(_0x238835 instanceof Error?_0x238835['message']:_0x4ef550(0x86,-0xe),0x0,_0x238835)};}}async[_0xf108a4(0x493,0x4ad)](_0x42b6e8,_0x4a7683){function _0x5245f0(_0x8a957e,_0x16f86e){return _0x32c5(_0x8a957e-0x182,_0x16f86e);}try{const response=await this['httpClient'][_0x5245f0(0x39b,0x351)](_0x5245f0(0x340,0x462)+_0x42b6e8,_0x4a7683);return{'data':response['data'],'error':null};}catch(_0x1025b0){return{'data':null,'error':_0x1025b0 instanceof EBaaSError?_0x1025b0:new EBaaSError(_0x1025b0 instanceof Error?_0x1025b0['message']:'Failed\x20to\x20update\x20bucket',0x0,_0x1025b0)};}}async[_0xf108a4(0x419,0x3be)](_0x46085d){function _0x53010c(_0x556450,_0x2ac52d){return _0x32c5(_0x2ac52d-0x4a,_0x556450);}try{const response=await this['httpClient']['delete'](_0x53010c(0x30a,0x208)+_0x46085d);return{'data':response['data'],'error':null};}catch(_0x28259d){return{'data':null,'error':_0x28259d instanceof EBaaSError?_0x28259d:new EBaaSError(_0x28259d instanceof Error?_0x28259d[_0x53010c(0x2bf,0x399)]:'Failed\x20to\x20delete\x20bucket',0x0,_0x28259d)};}}async[_0xf108a4(0x312,0x3e1)](){try{const response=await this['httpClient']['get']('/storage/usage');return{'data':response['data'],'error':null};}catch(_0x38e796){return{'data':null,'error':_0x38e796 instanceof EBaaSError?_0x38e796:new EBaaSError(_0x38e796 instanceof Error?_0x38e796['message']:'Failed\x20to\x20get\x20storage\x20usage',0x0,_0x38e796)};}}}class RealtimeChannel extends _0x2ca273{constructor(_0x5e4dab,_0x109cba){super(),this[_0xf89ed1(0x67a,0x5fe)]=![],this['state']=_0xf89ed1(0x6d1,0x79e);function _0xf89ed1(_0x88c0c7,_0x3145ee){return _0x32c5(_0x88c0c7-0x3ce,_0x3145ee);}this[_0xf89ed1(0x69e,0x667)]=new Map(),this['topic']=_0x5e4dab,this[_0xf89ed1(0x5fd,0x6ca)]=_0x109cba;}[_0xf108a4(0x441,0x45b)](_0xbf94b6){!this['joinedOnce']&&(this['joinedOnce']=!![],this['_join']());_0xbf94b6&&this['on'](_0x15f006(-0x5a,0x42),_0xbf94b6);function _0x15f006(_0x11a471,_0x45482f){return _0x32c5(_0x45482f- -0x216,_0x11a471);}return this;}['onPostgresChanges'](filter,_0x500207){function _0x41f20e(_0x56e316,_0x43c0a1){return _0x32c5(_0x56e316-0x304,_0x43c0a1);}const _0x27f066='postgres_changes:'+JSON['stringify'](filter);super['on'](_0x27f066,_0x500207);const _0x46d752={'unsubscribe':()=>{function _0x3f585b(_0x1ef920,_0x2aac00){return _0x32c5(_0x1ef920- -0x1e0,_0x2aac00);}super['off'](_0x27f066,_0x500207),this['subscriptions'][_0x3f585b(0x55,0x86)](_0x27f066);}};return this[_0x41f20e(0x5d4,0x4cf)][_0x41f20e(0x6e6,0x667)](_0x27f066,_0x46d752),this[_0x41f20e(0x533,0x4f0)]?.[_0x41f20e(0x4ee,0x4a5)]&&this[_0x41f20e(0x63c,0x6f7)]===_0x41f20e(0x65f,0x605)&&this[_0x41f20e(0x533,0x552)][_0x41f20e(0x5fe,0x696)]('subscribe_postgres_changes',{'topic':this['topic'],'filter':filter,'ref':this['makeRef']()}),_0x46d752;}['onBroadcast'](filter,_0x2d2c71){const _0x16ccee='broadcast:'+JSON['stringify'](filter);super['on'](_0x16ccee,_0x2d2c71);function _0x264a59(_0x196d0a,_0x2f7018){return _0x32c5(_0x2f7018- -0x1a2,_0x196d0a);}const _0x14233d={'unsubscribe':()=>{function _0x49d51d(_0x122a29,_0x9617c0){return _0x32c5(_0x122a29-0x80,_0x9617c0);}super[_0x49d51d(0x28b,0x1f7)](_0x16ccee,_0x2d2c71),this['subscriptions']['delete'](_0x16ccee);}};return this[_0x264a59(0x102,0x12e)]['set'](_0x16ccee,_0x14233d),_0x14233d;}[_0xf108a4(0x308,0x419)](filter,_0x4060ca){const _0x3fb100=_0x13c98e(0x5c1,0x53f)+JSON['stringify'](filter);function _0x13c98e(_0x4880c1,_0x3f2067){return _0x32c5(_0x3f2067-0x28e,_0x4880c1);}super['on'](_0x3fb100,_0x4060ca);const _0x1847a3={'unsubscribe':()=>{function _0x596c4d(_0x16cffb,_0x529023){return _0x32c5(_0x16cffb-0x31a,_0x529023);}super['off'](_0x3fb100,_0x4060ca),this[_0x596c4d(0x5ea,0x62d)][_0x596c4d(0x54f,0x46c)](_0x3fb100);}};return this['subscriptions']['set'](_0x3fb100,_0x1847a3),_0x1847a3;}[_0xf108a4(0x3aa,0x470)](_0x4ab46e){return new Promise(_0x44774e=>{function _0x21c0ba(_0x4415e7,_0x30dced){return _0x32c5(_0x30dced- -0x26a,_0x4415e7);}this[_0x21c0ba(-0x75,-0x3b)]?.['connected']&&this[_0x21c0ba(0x183,0xce)]==='joined'?(this[_0x21c0ba(0x1f,-0x3b)][_0x21c0ba(0x179,0x90)](_0x21c0ba(0x6,-0x49),{'topic':this[_0x21c0ba(-0x1e,-0x1b)],'event':_0x4ab46e[_0x21c0ba(0x141,0x125)],'payload':_0x4ab46e,'ref':this['makeRef']()}),_0x44774e('ok')):_0x44774e(_0x21c0ba(0x133,0x12d));});}[_0xf108a4(0x533,0x49d)](_0x4ddc06){return new Promise(_0x4ba3ef=>{function _0x27eb36(_0x589cc3,_0x285f02){return _0x32c5(_0x589cc3-0x9,_0x285f02);}this['socket']?.[_0x27eb36(0x1f3,0x159)]&&this[_0x27eb36(0x341,0x38b)]==='joined'?(this[_0x27eb36(0x238,0x20a)]['emit'](_0x27eb36(0x212,0x276),{'topic':this['topic'],'event':'track','payload':_0x4ddc06,'ref':this[_0x27eb36(0x400,0x505)]()}),_0x4ba3ef('ok')):_0x4ba3ef('error');});}['untrack'](){return new Promise(_0x214486=>{function _0x5e56f4(_0x3a74e6,_0x2bbaf7){return _0x32c5(_0x2bbaf7- -0x2b6,_0x3a74e6);}this[_0x5e56f4(0x62,-0x87)]?.['connected']&&this[_0x5e56f4(0x70,0x82)]===_0x5e56f4(0xe4,0xa5)?(this['socket']['emit'](_0x5e56f4(-0x125,-0xad),{'topic':this[_0x5e56f4(0x73,-0x67)],'event':_0x5e56f4(0x22b,0x140),'ref':this[_0x5e56f4(0x1e5,0x141)]()}),_0x214486('ok')):_0x214486(_0x5e56f4(0x14d,0xe1));});}[_0xf108a4(0x434,0x3f2)](){return new Promise(_0x2318b6=>{this['state']=_0x5820e6(0x3b7,0x45a),this['subscriptions'][_0x5820e6(0x2e0,0x228)](_0x29c9bf=>{_0x29c9bf['unsubscribe']();}),this[_0x5820e6(0x32a,0x3ef)][_0x5820e6(0x328,0x381)]();this[_0x5820e6(0x289,0x1e9)]?.[_0x5820e6(0x244,0x237)]&&this[_0x5820e6(0x289,0x37d)]['emit']('leave',{'topic':this[_0x5820e6(0x2a9,0x3a7)],'ref':this[_0x5820e6(0x451,0x3b4)]()});this[_0x5820e6(0x392,0x352)]='closed',this[_0x5820e6(0x3f0,0x4e6)]();function _0x5820e6(_0x1dd3e5,_0x3370e3){return _0x32c5(_0x1dd3e5-0x5a,_0x3370e3);}_0x2318b6('ok');});}['_join'](){if(this['state']===_0x1d4a60(0x4b7,0x3d3))return;this['state']=_0x1d4a60(0x3a1,0x2de);function _0x1d4a60(_0x2afaf4,_0xfff094){return _0x32c5(_0xfff094-0x76,_0x2afaf4);}this[_0x1d4a60(0x376,0x2a5)]?.[_0x1d4a60(0x36a,0x260)]&&(this['socket'][_0x1d4a60(0x468,0x370)](_0x1d4a60(0x3b4,0x3c4),{'topic':this['topic'],'ref':this['makeRef']()}),setTimeout(()=>{function _0x2d8daf(_0xb65f39,_0x1e7e52){return _0x32c5(_0xb65f39-0x326,_0x1e7e52);}this['state']===_0x2d8daf(0x58e,0x596)&&(this['state']=_0x2d8daf(0x681,0x5b5),this[_0x2d8daf(0x620,0x6ad)]('status','SUBSCRIBED'));},0x64));}['_rejoin'](){this['joinedOnce']&&(this['_join'](),this['subscriptions']['forEach']((_0x5b7ba3,_0x3024eb)=>{function _0x1253a2(_0x235056,_0x7b5421){return _0x32c5(_0x7b5421- -0xb0,_0x235056);}if(_0x3024eb['startsWith'](_0x1253a2(0x351,0x27e))){const filter=JSON['parse'](_0x3024eb['replace'](_0x1253a2(0x15b,0x27e),''));this[_0x1253a2(0x18d,0x17f)]?.['emit']('subscribe_postgres_changes',{'topic':this['topic'],'filter':filter,'ref':this[_0x1253a2(0x2fe,0x347)]()});}}));}[_0xf108a4(0x41b,0x441)](_0x2beda4,_0x83e8df){function _0x12350e(_0x3bd6fb,_0x59be22){return _0x32c5(_0x3bd6fb-0x108,_0x59be22);}if(_0x2beda4===_0x12350e(0x4e1,0x4cf)){const _0x32e1e5=_0x12350e(0x436,0x558)+JSON['stringify'](_0x83e8df[_0x12350e(0x46b,0x527)]||{});this['emit'](_0x32e1e5,_0x83e8df);}else{if(_0x2beda4===_0x12350e(0x329,0x228)){const _0x1b5fc0='broadcast:'+JSON['stringify']({'event':_0x83e8df[_0x12350e(0x497,0x42f)]});this['emit'](_0x1b5fc0,_0x83e8df);}else{if(_0x2beda4===_0x12350e(0x311,0x264)){const _0x3b0aa8='presence:'+JSON['stringify']({'event':_0x83e8df[_0x12350e(0x497,0x3db)]});this['emit'](_0x3b0aa8,_0x83e8df);}}}this['emit'](_0x2beda4,_0x83e8df);}['_setState'](_0x42c7e9){function _0x3d721b(_0x13be2d,_0x105fd4){return _0x32c5(_0x105fd4-0x2a,_0x13be2d);}this['state']=_0x42c7e9;let status;switch(_0x42c7e9){case'joined':status='SUBSCRIBED';break;case'errored':status='CHANNEL_ERROR';break;case'closed':status=_0x3d721b(0x31e,0x2e7);break;default:return;}this['emit'](_0x3d721b(0x1bc,0x282),status);}['makeRef'](){function _0x2cbadc(_0xf10070,_0x344fe3){return _0x32c5(_0x344fe3-0xcc,_0xf10070);}return Math[_0x2cbadc(0x4ce,0x45c)]()[_0x2cbadc(0x35b,0x34b)](0x24)['substring'](0x2,0xf);}['getState'](){function _0x35177a(_0x1edb14,_0x3715ad){return _0x32c5(_0x3715ad-0xfb,_0x1edb14);}return this[_0x35177a(0x545,0x433)];}}class WebSocketAdapter{constructor(){this['socket']=null;}async['connect'](_0x860ee0,_0x5b88ae){function _0x26e49b(_0x2f49fb,_0x46bcf3){return _0x32c5(_0x2f49fb- -0x18b,_0x46bcf3);}const {io:_0x3f8941}=await Promise[_0x26e49b(0x71,0x133)]()[_0x26e49b(0x1e0,0x301)](function(){return index;});return new Promise((_0x51ce3d,_0x25c89e)=>{this['socket']=_0x3f8941(_0x860ee0,_0x5b88ae),this['socket']['on']('connect',()=>_0x51ce3d()),this['socket']['on']('connect_error',_0x4d9cac=>_0x25c89e(_0x4d9cac));});}['disconnect'](){function _0x3b2687(_0x326119,_0x4a942f){return _0x32c5(_0x4a942f- -0xb3,_0x326119);}this['socket']&&(this['socket']['disconnect'](),this[_0x3b2687(0x6f,0x17c)]=null);}[_0xf108a4(0x50a,0x45a)](_0x443d8d,data){this['socket']?.['emit'](_0x443d8d,data);}['on'](_0x4a7d2a,_0x4bd8a4){function _0x3010f4(_0x114499,_0x14ea6c){return _0x32c5(_0x114499- -0x3da,_0x14ea6c);}this[_0x3010f4(-0x1ab,-0x297)]?.['on'](_0x4a7d2a,_0x4bd8a4);}['off'](_0x571e21,_0x20ba2e){function _0x5bf377(_0x190c50,_0x1f0f9f){return _0x32c5(_0x1f0f9f-0x34c,_0x190c50);}_0x20ba2e?this['socket']?.['off'](_0x571e21,_0x20ba2e):this['socket']?.[_0x5bf377(0x585,0x557)](_0x571e21);}get[_0xf108a4(0x340,0x34a)](){function _0x2dfc66(_0x201428,_0x501963){return _0x32c5(_0x501963-0x157,_0x201428);}return this[_0x2dfc66(0x2d0,0x386)]?.['connected']??![];}}class ReactNativeSocketAdapter{constructor(){function _0x55a343(_0x19e5e9,_0x360c29){return _0x32c5(_0x360c29- -0x37a,_0x19e5e9);}this[_0x55a343(-0x10e,-0x14b)]=null;}async['connect'](_0x109f0a,_0x33e588){function _0x24930f(_0x4532be,_0xb8fa43){return _0x32c5(_0x4532be-0x262,_0xb8fa43);}try{const {io:_0x52fadf}=await Promise[_0x24930f(0x45e,0x550)]()[_0x24930f(0x5cd,0x52e)](function(){return index;});return new Promise((_0x2fc1d1,_0x3544ad)=>{this['socket']=_0x52fadf(_0x109f0a,{..._0x33e588,'transports':[_0x3e776f(-0x13a,-0x190)],'upgrade':![],'autoConnect':!![]}),this[_0x3e776f(-0x19b,-0x15c)]['on'](_0x3e776f(0x32,0x13),()=>_0x2fc1d1());function _0x3e776f(_0xc7be91,_0x1d9545){return _0x32c5(_0x1d9545- -0x38b,_0xc7be91);}this[_0x3e776f(-0x1ed,-0x15c)]['on'](_0x3e776f(0x93,-0x4b),_0x5ba035=>_0x3544ad(_0x5ba035));});}catch(_0x45cfe8){throw new Error(_0x24930f(0x4f0,0x477));}}[_0xf108a4(0x559,0x4f1)](){function _0x346d7c(_0x3196b8,_0x2ef7f8){return _0x32c5(_0x2ef7f8-0xdd,_0x3196b8);}this[_0x346d7c(0x37e,0x30c)]&&(this[_0x346d7c(0x2ad,0x30c)]['disconnect'](),this[_0x346d7c(0x341,0x30c)]=null);}['emit'](_0xccfd47,data){function _0x19d32a(_0x5ad2c0,_0xc4e9f3){return _0x32c5(_0x5ad2c0- -0x1e7,_0xc4e9f3);}this[_0x19d32a(0x48,-0x14)]?.['emit'](_0xccfd47,data);}['on'](_0x26c2bc,_0x575267){function _0xa24cba(_0x56fb3c,_0x29c466){return _0x32c5(_0x29c466-0xa8,_0x56fb3c);}this[_0xa24cba(0x3e6,0x2d7)]?.['on'](_0x26c2bc,_0x575267);}['off'](_0x481fb4,_0x201435){function _0x43d03d(_0x26f922,_0xce9efa){return _0x32c5(_0xce9efa- -0x37e,_0x26f922);}_0x201435?this[_0x43d03d(-0xb1,-0x14f)]?.[_0x43d03d(-0x5f,-0x173)](_0x481fb4,_0x201435):this['socket']?.['off'](_0x481fb4);}get[_0xf108a4(0x3b3,0x34a)](){function _0x33038e(_0x3db483,_0xf5cbbf){return _0x32c5(_0x3db483-0x3ad,_0xf5cbbf);}return this[_0x33038e(0x5dc,0x4be)]?.[_0x33038e(0x597,0x603)]??![];}}function createSocketAdapter(){function _0x4870fb(_0x533a3a,_0x24342a){return _0x32c5(_0x533a3a-0x92,_0x24342a);}if(typeof window!==_0x4870fb(0x332,0x244)&&typeof document!=='undefined')return new WebSocketAdapter();else return typeof global!==_0x4870fb(0x332,0x2df)&&global['navigator']?.[_0x4870fb(0x2a8,0x280)]===_0x4870fb(0x3fa,0x3bf)?new ReactNativeSocketAdapter():new WebSocketAdapter();}class RealtimeClient{constructor(_0x40e328,_0x51d1eb,_0x264125={}){this[_0x46e1c6(-0x141,-0x19e)]=null,this[_0x46e1c6(-0x4b,-0xc7)]=new Map(),this[_0x46e1c6(-0xc3,-0x176)]=_0x46e1c6(-0x120,-0xb1),this['reconnectAttempts']=0x0,this['maxReconnectAttempts']=0x5;function _0x46e1c6(_0x3ec2ce,_0x33bbe1){return _0x32c5(_0x3ec2ce- -0x370,_0x33bbe1);}this[_0x46e1c6(-0x39,0x79)]=_0x40e328,this[_0x46e1c6(-0xa6,-0xd3)]=_0x51d1eb,this['options']={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x264125},this[_0x46e1c6(-0x100,-0x19d)]=createSocketAdapter();}['connect'](){return new Promise(async(_0x37e9c2,_0x38beca)=>{if(this['socketAdapter']['connected']){_0x37e9c2();return;}function _0x52668f(_0x1011c8,_0x1f03e9){return _0x32c5(_0x1011c8- -0x18a,_0x1f03e9);}this[_0x52668f(0x123,0x17b)]=_0x52668f(0x1cb,0xd0);try{await this['socketAdapter'][_0x52668f(0x214,0x1d1)](this[_0x52668f(0x1ad,0x24f)],{'auth':{'apikey':this[_0x52668f(0x140,0x195)]},'transports':['websocket'],'reconnection':!![],'reconnectionDelay':this['options'][_0x52668f(0x30,0x67)],'reconnectionAttempts':this[_0x52668f(0x252,0x1b0)][_0x52668f(0x17f,0x242)],...this[_0x52668f(0x252,0x345)][_0x52668f(0x4d,-0x22)]}),this[_0x52668f(0xa5,0x34)]=this[_0x52668f(0xe6,0x1f)]['socket'],this['socketAdapter']['on'](_0x52668f(0x214,0x236),()=>{this[_0x39ccc4(0xd8,0x53)]=_0x39ccc4(-0xe4,-0x70),this['reconnectAttempts']=0x0;function _0x39ccc4(_0x39964b,_0x33ecfe){return _0x32c5(_0x33ecfe- -0x25a,_0x39964b);}this['setupHeartbeat'](),_0x37e9c2();}),this['socketAdapter']['on'](_0x52668f(0x207,0x13a),()=>{this[_0x16db8e(-0x61,0xbe)]=_0x16db8e(-0xba,0x61);function _0x16db8e(_0x5104e8,_0x1542de){return _0x32c5(_0x1542de- -0x1ef,_0x5104e8);}this['channels']['forEach'](channel=>{channel['_setState']('closed');});}),this[_0x52668f(0xe6,0x176)]['on']('connect_error',_0x229b84=>{function _0x2bb465(_0xcc817a,_0x2f7966){return _0x32c5(_0x2f7966-0xb2,_0xcc817a);}this[_0x2bb465(0x2f6,0x35f)]=_0x2bb465(0x37b,0x449),this[_0x2bb465(0x3ba,0x476)]++,this[_0x2bb465(0x4ee,0x476)]>=this[_0x2bb465(0x29f,0x3bb)]&&_0x38beca(new Error('Failed\x20to\x20connect\x20after\x20'+this['maxReconnectAttempts']+'\x20attempts:\x20'+_0x229b84['message']));}),this[_0x52668f(0xe6,0xc6)]['on'](_0x52668f(0x198,0x1bf),()=>{function _0x4fdf89(_0x1ac259,_0x2798c6){return _0x32c5(_0x2798c6- -0xc4,_0x1ac259);}this[_0x4fdf89(0x2ea,0x1e9)]=_0x4fdf89(0x186,0x126),this['reconnectAttempts']=0x0,this[_0x4fdf89(0x19d,0x261)][_0x4fdf89(0x19b,0x1c2)](channel=>{channel['_rejoin']();});}),this['socketAdapter']['on']('postgres_changes',_0x2a8223=>{function _0x35eada(_0x16edf7,_0x3895ea){return _0x32c5(_0x3895ea-0x235,_0x16edf7);}const channel=this['channels'][_0x35eada(0x440,0x54d)](_0x2a8223[_0x35eada(0x421,0x484)]);channel&&channel[_0x35eada(0x622,0x516)]('postgres_changes',_0x2a8223);}),this[_0x52668f(0xe6,0x1c6)]['on']('broadcast',_0x2d1fd8=>{const channel=this['channels']['get'](_0x2d1fd8['topic']);function _0x4792dc(_0x347eb5,_0x2aa4d1){return _0x32c5(_0x2aa4d1-0x2bb,_0x347eb5);}channel&&channel['_trigger'](_0x4792dc(0x53a,0x4dc),_0x2d1fd8);}),this['socketAdapter']['on'](_0x52668f(0x7f,0xb9),_0x2f3202=>{const channel=this['channels'][_0x3abb70(0x485,0x40d)](_0x2f3202[_0x3abb70(0x3bc,0x378)]);function _0x3abb70(_0x4aa8f9,_0x1d2297){return _0x32c5(_0x4aa8f9-0x16d,_0x1d2297);}channel&&channel[_0x3abb70(0x44e,0x345)]('presence',_0x2f3202);});}catch(_0x41cc38){this[_0x52668f(0x123,0x164)]='error',_0x38beca(_0x41cc38);}});}['disconnect'](){this['socketAdapter']&&(this['socketAdapter']['disconnect'](),this['socket']=null);function _0x328b64(_0x29bb58,_0x35e921){return _0x32c5(_0x29bb58- -0x1a0,_0x35e921);}this[_0x328b64(0x10d,0x22)]=_0x328b64(0xb0,-0x7),this[_0x328b64(0x185,0xf1)][_0x328b64(0x12e,0x19b)]();}['channel'](_0x4ab1d9){if(this[_0x482cfc(-0xc7,-0x17)][_0x482cfc(0x3d,0xb1)](_0x4ab1d9))return this['channels']['get'](_0x4ab1d9);const channel=new RealtimeChannel(_0x4ab1d9,this['socket']);this['channels']['set'](_0x4ab1d9,channel);this['connectionState']===_0x482cfc(-0x4a,-0x152)&&channel['_join']();function _0x482cfc(_0x4150bf,_0x247920){return _0x32c5(_0x247920- -0x33c,_0x4150bf);}return channel;}['removeChannel'](channel){function _0x1c35e3(_0x26c30b,_0x1c2a1d){return _0x32c5(_0x1c2a1d-0x49,_0x26c30b);}const _0x5915d4=channel[_0x1c35e3(0x1c9,0x298)];this['channels']['has'](_0x5915d4)&&(this['channels'][_0x1c35e3(0x29c,0x27e)](_0x5915d4),channel[_0x1c35e3(0x3b1,0x2db)]());}['removeAllChannels'](){this['channels'][_0x48821b(0x52f,0x54b)](channel=>{channel['unsubscribe']();});function _0x48821b(_0x3a710f,_0x58978d){return _0x32c5(_0x58978d-0x2c5,_0x3a710f);}this['channels']['clear']();}['getChannels'](){function _0x1dc542(_0x4a38e1,_0x41fe77){return _0x32c5(_0x41fe77-0xcd,_0x4a38e1);}return Array[_0x1dc542(0x1f6,0x308)](this['channels']['values']());}['isConnected'](){function _0x38103a(_0x582ecb,_0x2d4334){return _0x32c5(_0x2d4334- -0x16d,_0x582ecb);}return this[_0x38103a(0x8a,0x140)]===_0x38103a(0xdc,0x7d)&&this['socketAdapter'][_0x38103a(0x7c,0x7d)];}[_0xf108a4(0x566,0x4de)](){function _0x5874f0(_0x28c465,_0x1cb02a){return _0x32c5(_0x1cb02a-0x247,_0x28c465);}return this[_0x5874f0(0x59f,0x4f4)];}[_0xf108a4(0x4fd,0x423)](_0x7891dd){const _0x408fa5=()=>_0x7891dd(this[_0x1fd164(0x1ef,0x279)]);function _0x1fd164(_0x4fe78f,_0x5b0584){return _0x32c5(_0x5b0584- -0x34,_0x4fe78f);}return this[_0x1fd164(0x236,0x23c)]&&(this[_0x1fd164(0x263,0x23c)]['on']('connect',()=>{function _0xb587c2(_0x33a23b,_0x1c21a4){return _0x32c5(_0x33a23b-0x35c,_0x1c21a4);}this[_0xb587c2(0x609,0x676)]=_0xb587c2(0x546,0x5bb),_0x408fa5();}),this[_0x1fd164(0x2dc,0x23c)]['on'](_0x1fd164(0x2f8,0x35d),()=>{function _0x38f76e(_0x63a988,_0x2c0057){return _0x32c5(_0x63a988-0x2b6,_0x2c0057);}this['connectionState']=_0x38f76e(0x506,0x561),_0x408fa5();}),this[_0x1fd164(0x2c8,0x23c)]['on'](_0x1fd164(0x32b,0x30c),()=>{function _0xe2e7c6(_0x26986b,_0xc21b73){return _0x32c5(_0xc21b73-0xb7,_0x26986b);}this[_0xe2e7c6(0x461,0x364)]=_0xe2e7c6(0x3a3,0x44e),_0x408fa5();})),()=>{function _0x10854a(_0x5858ab,_0x2516ea){return _0x32c5(_0x5858ab-0xa1,_0x2516ea);}this[_0x10854a(0x311,0x29e)]&&(this['socketAdapter'][_0x10854a(0x2ac,0x26f)]('connect',_0x408fa5),this[_0x10854a(0x311,0x3ee)]['off'](_0x10854a(0x432,0x373),_0x408fa5),this[_0x10854a(0x311,0x2cf)]['off']('connect_error',_0x408fa5));};}[_0xf108a4(0x425,0x460)](){function _0x460bce(_0xbbaf64,_0x369291){return _0x32c5(_0x369291-0x86,_0xbbaf64);}if(!this[_0x460bce(0x3cc,0x462)]['heartbeatInterval']||!this[_0x460bce(0x243,0x2f6)])return;const interval=setInterval(()=>{function _0x51c7f4(_0x3efb3f,_0x200c10){return _0x32c5(_0x200c10-0x252,_0x3efb3f);}this[_0x51c7f4(0x540,0x4c2)]?.[_0x51c7f4(0x3d4,0x43c)]?this[_0x51c7f4(0x42e,0x4c2)][_0x51c7f4(0x5fe,0x54c)]('heartbeat',{'timestamp':Date['now']()}):clearInterval(interval);},this['options']['heartbeatInterval']);}['_getSocket'](){return this['socket'];}}class FunctionsClient{constructor(_0x115722){function _0x2d166a(_0x10aafe,_0x919dc9){return _0x32c5(_0x10aafe-0x374,_0x919dc9);}this[_0x2d166a(0x69a,0x664)]=_0x115722;}async['invoke'](_0x5ba246,_0x327b28){function _0x10a956(_0x101d0d,_0xea5639){return _0x32c5(_0x101d0d-0x264,_0xea5639);}try{const _0x332797=_0x327b28?.[_0x10a956(0x453,0x396)]||'POST',headers={'Content-Type':'application/json',..._0x327b28?.[_0x10a956(0x56c,0x4e5)]};let response;const _0x5345fe='/functions/v1/'+_0x5ba246;switch(_0x332797['toUpperCase']()){case'GET':response=await this['httpClient']['get'](_0x5345fe,{'headers':headers,'params':_0x327b28?.[_0x10a956(0x494,0x507)]});break;case'POST':response=await this[_0x10a956(0x58a,0x59c)]['post'](_0x5345fe,_0x327b28?.[_0x10a956(0x494,0x389)],{'headers':headers});break;case'PUT':response=await this['httpClient']['put'](_0x5345fe,_0x327b28?.['body'],{'headers':headers});break;case'PATCH':response=await this['httpClient']['patch'](_0x5345fe,_0x327b28?.[_0x10a956(0x494,0x505)],{'headers':headers});break;case'DELETE':response=await this['httpClient'][_0x10a956(0x499,0x457)](_0x5345fe,{'headers':headers,'data':_0x327b28?.[_0x10a956(0x494,0x5a6)]});break;default:throw new EBaaSError('Unsupported\x20HTTP\x20method:\x20'+_0x332797,0x190);}return{'data':response['data'],'error':null};}catch(_0x2d9edd){return{'data':null,'error':_0x2d9edd instanceof EBaaSError?_0x2d9edd:new EBaaSError(_0x2d9edd instanceof Error?_0x2d9edd[_0x10a956(0x5b3,0x6c4)]:_0x10a956(0x555,0x4bc),0x0,_0x2d9edd)};}}async[_0xf108a4(0x43f,0x33d)](){function _0x36ff79(_0x499601,_0x220061){return _0x32c5(_0x499601-0xc2,_0x220061);}try{const response=await this[_0x36ff79(0x3e8,0x2c7)][_0x36ff79(0x3da,0x324)](_0x36ff79(0x42b,0x419));return{'data':response['data'],'error':null};}catch(_0x1c0158){return{'data':null,'error':_0x1c0158 instanceof EBaaSError?_0x1c0158:new EBaaSError(_0x1c0158 instanceof Error?_0x1c0158[_0x36ff79(0x411,0x46e)]:'Failed\x20to\x20list\x20functions',0x0,_0x1c0158)};}}async[_0xf108a4(0x3b0,0x478)](_0x23384f){function _0x480d62(_0x54d02c,_0x590315){return _0x32c5(_0x54d02c- -0x21e,_0x590315);}try{const response=await this['httpClient'][_0x480d62(0xfa,0xb0)]('/functions/v1/'+_0x23384f+_0x480d62(0x5a,0xa1));return{'data':response['data'],'error':null};}catch(_0x760838){return{'data':null,'error':_0x760838 instanceof EBaaSError?_0x760838:new EBaaSError(_0x760838 instanceof Error?_0x760838['message']:'Failed\x20to\x20get\x20function',0x0,_0x760838)};}}async['deploy'](_0x32943e,_0x3fd22d){function _0x4edf72(_0x2d0e87,_0x298020){return _0x32c5(_0x298020-0xbb,_0x2d0e87);}try{const _0xbef069=new FormData();if(_0x3fd22d[_0x4edf72(0x245,0x2b2)]instanceof File)_0xbef069[_0x4edf72(0x39f,0x2fc)]('code',_0x3fd22d['code']);else typeof _0x3fd22d['code']==='string'&&_0xbef069['append'](_0x4edf72(0x349,0x2b2),new Blob([_0x3fd22d[_0x4edf72(0x214,0x2b2)]],{'type':'text/plain'}),'index.ts');_0x3fd22d[_0x4edf72(0x2ef,0x3d2)]&&_0xbef069[_0x4edf72(0x218,0x2fc)]('entrypoint',_0x3fd22d['entrypoint']);_0x3fd22d[_0x4edf72(0x248,0x2ec)]&&_0xbef069['append']('env',JSON['stringify'](_0x3fd22d['env']));_0x3fd22d[_0x4edf72(0x339,0x2d8)]&&_0xbef069[_0x4edf72(0x37d,0x2fc)](_0x4edf72(0x257,0x2d8),JSON[_0x4edf72(0x25f,0x358)](_0x3fd22d['importMap']));_0x3fd22d[_0x4edf72(0x181,0x29c)]!==undefined&&_0xbef069[_0x4edf72(0x353,0x2fc)]('verify',String(_0x3fd22d['verify']));const response=await this[_0x4edf72(0x496,0x3e1)][_0x4edf72(0x446,0x3c6)]('/functions/v1/'+_0x32943e+'/deploy',_0xbef069,{'headers':{'Content-Type':_0x4edf72(0x2c5,0x356)}});return{'data':response['data'],'error':null};}catch(_0x14d3cb){return{'data':null,'error':_0x14d3cb instanceof EBaaSError?_0x14d3cb:new EBaaSError(_0x14d3cb instanceof Error?_0x14d3cb['message']:_0x4edf72(0x328,0x35e),0x0,_0x14d3cb)};}}async['delete'](_0x386186){function _0x5a96bd(_0x5bbcd9,_0x35c094){return _0x32c5(_0x5bbcd9-0x2f2,_0x35c094);}try{const response=await this['httpClient']['delete'](_0x5a96bd(0x4ae,0x4d9)+_0x386186);return{'data':response['data'],'error':null};}catch(_0x15b1cd){return{'data':null,'error':_0x15b1cd instanceof EBaaSError?_0x15b1cd:new EBaaSError(_0x15b1cd instanceof Error?_0x15b1cd[_0x5a96bd(0x641,0x70f)]:_0x5a96bd(0x5f6,0x6fb),0x0,_0x15b1cd)};}}async[_0xf108a4(0x513,0x46c)](_0x10c796,_0x303b24){function _0x5d678b(_0x2cb0fc,_0x11c717){return _0x32c5(_0x2cb0fc-0x344,_0x11c717);}try{const response=await this[_0x5d678b(0x66a,0x641)][_0x5d678b(0x55d,0x4c2)]('/functions/v1/'+_0x10c796+'/env',{'env':_0x303b24});return{'data':response[_0x5d678b(0x5f3,0x662)],'error':null};}catch(_0x45b088){return{'data':null,'error':_0x45b088 instanceof EBaaSError?_0x45b088:new EBaaSError(_0x45b088 instanceof Error?_0x45b088['message']:_0x5d678b(0x54c,0x4bd),0x0,_0x45b088)};}}async['getLogs'](_0x2ddb17,_0x5ed6c8){function _0x7cad3a(_0x11f327,_0x391c8c){return _0x32c5(_0x11f327- -0x183,_0x391c8c);}try{const _0x318645=new URLSearchParams();_0x5ed6c8?.['limit']&&_0x318645[_0x7cad3a(0xbe,0x8b)](_0x7cad3a(0x1bf,0x288),String(_0x5ed6c8[_0x7cad3a(0x1bf,0x25a)]));_0x5ed6c8?.['offset']&&_0x318645[_0x7cad3a(0xbe,-0x11)](_0x7cad3a(0x153,0x1f4),String(_0x5ed6c8['offset']));_0x5ed6c8?.[_0x7cad3a(0x18c,0x101)]&&_0x318645[_0x7cad3a(0xbe,0x5c)]('level',_0x5ed6c8['level']);const _0x5e279e=_0x7cad3a(0x39,0x13b)+_0x2ddb17+'/logs'+(_0x318645['toString']()?'?'+_0x318645['toString']():''),response=await this['httpClient'][_0x7cad3a(0x195,0xb3)](_0x5e279e);return{'data':response[_0x7cad3a(0x12c,0x13a)],'error':null};}catch(_0x3dfe71){return{'data':null,'error':_0x3dfe71 instanceof EBaaSError?_0x3dfe71:new EBaaSError(_0x3dfe71 instanceof Error?_0x3dfe71['message']:_0x7cad3a(0xfa,0x216),0x0,_0x3dfe71)};}}async[_0xf108a4(0x38f,0x324)](_0x10e6c5,_0x37bb62){function _0x125c68(_0x3eda95,_0x164018){return _0x32c5(_0x164018-0x21a,_0x3eda95);}try{const _0x26f9b5=new URLSearchParams();_0x37bb62?.[_0x125c68(0x61e,0x5d5)]&&_0x26f9b5['append']('period',_0x37bb62[_0x125c68(0x4ba,0x5d5)]);const _0x2db6ae='/functions/v1/'+_0x10e6c5+'/metrics'+(_0x26f9b5[_0x125c68(0x459,0x499)]()?'?'+_0x26f9b5[_0x125c68(0x49b,0x499)]():''),response=await this[_0x125c68(0x650,0x540)]['get'](_0x2db6ae);return{'data':response['data'],'error':null};}catch(_0x154851){return{'data':null,'error':_0x154851 instanceof EBaaSError?_0x154851:new EBaaSError(_0x154851 instanceof Error?_0x154851[_0x125c68(0x556,0x569)]:'Failed\x20to\x20get\x20function\x20metrics',0x0,_0x154851)};}}}class EBaaSClient{constructor(_0x2f1a61,_0x114807,_0x8bb5b0){this[_0x4e59b3(0x539,0x596)]=_0x8bb5b0,this['httpClient']=new HttpClient({'url':_0x2f1a61,'apiKey':_0x114807,'timeout':0x7530,'headers':_0x8bb5b0?.['global']?.['headers']}),this[_0x4e59b3(0x31d,0x408)]=new AuthClient(this['httpClient'],_0x8bb5b0?.['database']?.['workspaceId']),this['database']=new DatabaseClient(this['httpClient'],_0x8bb5b0?.[_0x4e59b3(0x46d,0x45c)]?.[_0x4e59b3(0x486,0x447)]),this[_0x4e59b3(0x3e6,0x3e4)]=new StorageClient(this['httpClient']),this['realtime']=new RealtimeClient(_0x2f1a61,_0x114807,_0x8bb5b0?.[_0x4e59b3(0x3b5,0x428)]),this[_0x4e59b3(0x561,0x49e)]=new FunctionsClient(this['httpClient']);function _0x4e59b3(_0x4a243c,_0xdca83a){return _0x32c5(_0xdca83a-0x1ba,_0x4a243c);}this['initializeCustomDatabase']();}['from'](_0x5f4279){function _0x5f2ba6(_0x41a995,_0x30109a){return _0x32c5(_0x30109a-0x3bc,_0x41a995);}return this[_0x5f2ba6(0x58d,0x65e)]['from'](_0x5f4279);}['rpc'](_0x5ab7fd,_0x5d3dc1){return this['database']['rpc'](_0x5ab7fd,_0x5d3dc1);}[_0xf108a4(0x46b,0x413)](_0x33b76a){function _0x30496a(_0x3acaf1,_0x496aa2){return _0x32c5(_0x496aa2- -0x2ad,_0x3acaf1);}return this[_0x30496a(-0xe1,-0x83)][_0x30496a(-0x188,-0x72)](_0x33b76a);}['channel'](_0x6b90d6){function _0x317417(_0x5ef490,_0x15d593){return _0x32c5(_0x15d593-0xfe,_0x5ef490);}return this[_0x317417(0x412,0x36c)][_0x317417(0x3ea,0x48a)](_0x6b90d6);}['invoke'](_0x263e37,_0x12447d){return this['functions']['invoke'](_0x263e37,_0x12447d);}async['initializeCustomDatabase'](){function _0x43d1c8(_0x292a51,_0x5b8be6){return _0x32c5(_0x5b8be6-0x180,_0x292a51);}if(this['options']?.[_0x43d1c8(0x3cb,0x422)]?.[_0x43d1c8(0x445,0x4a0)])try{await this[_0x43d1c8(0x441,0x422)][_0x43d1c8(0x42a,0x475)]();}catch(_0x42fe53){console['warn']('Failed to initialize custom database detection:',_0x42fe53);}}async['setWorkspaceId'](_0x4d8c6e){this[_0x5f2b0e(0x5bd,0x4b3)][_0x5f2b0e(0x5d1,0x58a)](_0x4d8c6e);function _0x5f2b0e(_0x50a26c,_0x39f386){return _0x32c5(_0x50a26c-0x36f,_0x39f386);}this[_0x5f2b0e(0x611,0x6db)][_0x5f2b0e(0x5d1,0x4e4)](_0x4d8c6e),this[_0x5f2b0e(0x74b,0x62e)]?.[_0x5f2b0e(0x611,0x6ff)]?.['autoDetectCustomDatabase']&&await this['database'][_0x5f2b0e(0x664,0x5ba)]();}async[_0xf108a4(0x4bb,0x42f)](_0x48b2e7){await this['database']['configureCustomDatabase'](_0x48b2e7);}[_0xf108a4(0x2bb,0x393)](){function _0x3b5c00(_0x3bc6df,_0x3b06bb){return _0x32c5(_0x3b06bb- -0x3c9,_0x3bc6df);}return this['database'][_0x3b5c00(-0x169,-0x196)]();}}function createClient(_0x3aeeb6,_0x361f80,_0x14a160){return new EBaaSClient(_0x3aeeb6,_0x361f80,_0x14a160);}const version=_0xf108a4(0x528,0x412),PACKET_TYPES=Object[_0xf108a4(0x2ed,0x3ab)](null);PACKET_TYPES['open']='0',PACKET_TYPES[_0xf108a4(0x43f,0x532)]='1',PACKET_TYPES[_0xf108a4(0x364,0x332)]='2',PACKET_TYPES[_0xf108a4(0x540,0x545)]='3',PACKET_TYPES[_0xf108a4(0x57a,0x4af)]='4',PACKET_TYPES['upgrade']='5',PACKET_TYPES['noop']='6';const PACKET_TYPES_REVERSE=Object[_0xf108a4(0x463,0x3ab)](null);Object['keys'](PACKET_TYPES)['forEach'](_0x5412e3=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x5412e3]]=_0x5412e3;});const ERROR_PACKET={'type':_0xf108a4(0x4c8,0x4f7),'data':_0xf108a4(0x48b,0x3e8)},withNativeBlob$1=typeof Blob==='function'||typeof Blob!==_0xf108a4(0x3c3,0x400)&&Object[_0xf108a4(0x3b0,0x4b1)]['toString'][_0xf108a4(0x388,0x48a)](Blob)==='[object\x20BlobConstructor]',withNativeArrayBuffer$2=typeof ArrayBuffer==='function',isView$1=_0x4bed5f=>{function _0x17440e(_0x4e3422,_0x2de23b){return _0x32c5(_0x4e3422- -0x40,_0x2de23b);}return typeof ArrayBuffer['isView']==='function'?ArrayBuffer['isView'](_0x4bed5f):_0x4bed5f&&_0x4bed5f[_0x17440e(0x37c,0x316)]instanceof ArrayBuffer;},encodePacket=({type:_0x54de2e,data:data},supportsBinary,_0x4605a4)=>{if(withNativeBlob$1&&data instanceof Blob)return supportsBinary?_0x4605a4(data):encodeBlobAsBase64(data,_0x4605a4);else{if(withNativeArrayBuffer$2&&(data instanceof ArrayBuffer||isView$1(data)))return supportsBinary?_0x4605a4(data):encodeBlobAsBase64(new Blob([data]),_0x4605a4);}return _0x4605a4(PACKET_TYPES[_0x54de2e]+(data||''));},encodeBlobAsBase64=(data,_0x9c5cb9)=>{const _0xdd089f=new FileReader();_0xdd089f[_0x3217bd(0x46c,0x34b)]=function(){function _0x464364(_0x4310f4,_0x41e26f){return _0x32c5(_0x41e26f-0x19f,_0x4310f4);}const _0xc3028c=_0xdd089f[_0x464364(0x4f8,0x3e9)]['split'](',')[0x1];_0x9c5cb9('b'+(_0xc3028c||''));};function _0x3217bd(_0x41b201,_0x34b12b){return _0x32c5(_0x41b201-0x228,_0x34b12b);}return _0xdd089f[_0x3217bd(0x471,0x510)](data);};function toArray(data){function _0x35c2b9(_0x123930,_0x390ae2){return _0x32c5(_0x390ae2- -0x36,_0x123930);}if(data instanceof Uint8Array)return data;else return data instanceof ArrayBuffer?new Uint8Array(data):new Uint8Array(data[_0x35c2b9(0x401,0x386)],data['byteOffset'],data[_0x35c2b9(0x220,0x288)]);}let TEXT_ENCODER;function encodePacketToBinary(_0x309e6c,_0x5bfa2d){if(withNativeBlob$1&&_0x309e6c['data']instanceof Blob)return _0x309e6c[_0x2c1c1a(0xa7,-0x35)][_0x2c1c1a(-0x1c8,-0x10a)]()[_0x2c1c1a(0xb5,0x87)](toArray)['then'](_0x5bfa2d);else{if(withNativeArrayBuffer$2&&(_0x309e6c[_0x2c1c1a(-0xd6,-0x35)]instanceof ArrayBuffer||isView$1(_0x309e6c[_0x2c1c1a(0xd2,-0x35)])))return _0x5bfa2d(toArray(_0x309e6c['data']));}function _0x2c1c1a(_0x427d24,_0x141103){return _0x32c5(_0x141103- -0x2e4,_0x427d24);}encodePacket(_0x309e6c,![],_0x142967=>{!TEXT_ENCODER&&(TEXT_ENCODER=new TextEncoder()),_0x5bfa2d(TEXT_ENCODER['encode'](_0x142967));});}const chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',lookup$1=typeof Uint8Array===_0xf108a4(0x4fb,0x400)?[]:new Uint8Array(0x100);for(let i=0x0;i<chars[_0xf108a4(0x4c1,0x3f0)];i++){lookup$1[chars['charCodeAt'](i)]=i;}const decode$1=_0x200d2f=>{let bufferLength=_0x200d2f['length']*0.75,_0x12a29e=_0x200d2f[_0x280c69(-0x79,-0x166)],_0x1ee72c,_0x104fdb=0x0,_0x467928,_0x25432e,_0x3ccfcf,_0xafbd62;function _0x280c69(_0x16264c,_0x12dd61){return _0x32c5(_0x16264c- -0x309,_0x12dd61);}_0x200d2f[_0x200d2f['length']-0x1]==='='&&(bufferLength--,_0x200d2f[_0x200d2f[_0x280c69(-0x79,-0x7a)]-0x2]==='='&&bufferLength--);const _0x122fc7=new ArrayBuffer(bufferLength),_0x720e5a=new Uint8Array(_0x122fc7);for(_0x1ee72c=0x0;_0x1ee72c<_0x12a29e;_0x1ee72c+=0x4){_0x467928=lookup$1[_0x200d2f['charCodeAt'](_0x1ee72c)],_0x25432e=lookup$1[_0x200d2f[_0x280c69(0x7d,0x106)](_0x1ee72c+0x1)],_0x3ccfcf=lookup$1[_0x200d2f['charCodeAt'](_0x1ee72c+0x2)],_0xafbd62=lookup$1[_0x200d2f['charCodeAt'](_0x1ee72c+0x3)],_0x720e5a[_0x104fdb++]=_0x467928<<0x2|_0x25432e>>0x4,_0x720e5a[_0x104fdb++]=(_0x25432e&0xf)<<0x4|_0x3ccfcf>>0x2,_0x720e5a[_0x104fdb++]=(_0x3ccfcf&0x3)<<0x6|_0xafbd62&0x3f;}return _0x122fc7;},withNativeArrayBuffer$1=typeof ArrayBuffer===_0xf108a4(0x474,0x456),decodePacket=(_0x427622,binaryType)=>{if(typeof _0x427622!==_0x45d7fc(0xce,0x5))return{'type':_0x45d7fc(0x111,0x16),'data':mapBinary(_0x427622,binaryType)};const _0xb447d0=_0x427622['charAt'](0x0);if(_0xb447d0==='b')return{'type':_0x45d7fc(-0x2d,0x16),'data':decodeBase64Packet(_0x427622[_0x45d7fc(0x60,0x54)](0x1),binaryType)};const _0x12e3b0=PACKET_TYPES_REVERSE[_0xb447d0];function _0x45d7fc(_0x2d3fef,_0x29079e){return _0x32c5(_0x29079e- -0x339,_0x2d3fef);}if(!_0x12e3b0)return ERROR_PACKET;return _0x427622['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0xb447d0],'data':_0x427622['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0xb447d0]};},decodeBase64Packet=(data,binaryType)=>{if(withNativeArrayBuffer$1){const _0x185ae3=decode$1(data);return mapBinary(_0x185ae3,binaryType);}else return{'base64':!![],'data':data};},mapBinary=(data,binaryType)=>{function _0x462d52(_0x4727e7,_0x2fc2e1){return _0x32c5(_0x2fc2e1-0x2f5,_0x4727e7);}switch(binaryType){case _0x462d52(0x4e6,0x514):return data instanceof Blob?data:new Blob([data]);case'arraybuffer':default:return data instanceof ArrayBuffer?data:data['buffer'];}},SEPARATOR=String[_0xf108a4(0x4a1,0x46e)](0x1e),encodePayload=(_0x3138b9,_0x3dd8f5)=>{function _0x13a182(_0x3f64f1,_0xaf06ee){return _0x32c5(_0x3f64f1- -0x332,_0xaf06ee);}const length=_0x3138b9[_0x13a182(-0xa2,-0x13f)],_0x38f6d4=new Array(length);let count=0x0;_0x3138b9['forEach']((_0x5c34af,_0x5eef0a)=>{encodePacket(_0x5c34af,![],_0x1a492e=>{_0x38f6d4[_0x5eef0a]=_0x1a492e;function _0x8ee742(_0x3964a9,_0x30c184){return _0x32c5(_0x3964a9- -0x7c,_0x30c184);}++count===length&&_0x3dd8f5(_0x38f6d4[_0x8ee742(0x2d2,0x35d)](SEPARATOR));});});},decodePayload=(_0x46b4df,binaryType)=>{const _0xd8af3f=_0x46b4df[_0x564b9e(0x666,0x6a3)](SEPARATOR);function _0x564b9e(_0x19e1b7,_0x1238f7){return _0x32c5(_0x19e1b7-0x352,_0x1238f7);}const _0x5632e6=[];for(let _0x745850=0x0;_0x745850<_0xd8af3f['length'];_0x745850++){const _0x3eca93=decodePacket(_0xd8af3f[_0x745850],binaryType);_0x5632e6[_0x564b9e(0x5c9,0x64d)](_0x3eca93);if(_0x3eca93[_0x564b9e(0x5b1,0x4b0)]==='error')break;}return _0x5632e6;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x5866e3,_0x37ac22){encodePacketToBinary(_0x5866e3,_0x1576d5=>{const payloadLength=_0x1576d5['length'];function _0x4bc015(_0x25987b,_0x2de5f6){return _0x32c5(_0x25987b-0x1fe,_0x2de5f6);}let _0x640121;if(payloadLength<0x7e)_0x640121=new Uint8Array(0x1),new DataView(_0x640121[_0x4bc015(0x5ba,0x5e8)])[_0x4bc015(0x4f6,0x4ab)](0x0,payloadLength);else{if(payloadLength<0x10000){_0x640121=new Uint8Array(0x3);const _0x5be7ef=new DataView(_0x640121[_0x4bc015(0x5ba,0x4d3)]);_0x5be7ef[_0x4bc015(0x4f6,0x408)](0x0,0x7e),_0x5be7ef['setUint16'](0x1,payloadLength);}else{_0x640121=new Uint8Array(0x9);const _0x122b30=new DataView(_0x640121[_0x4bc015(0x5ba,0x60d)]);_0x122b30['setUint8'](0x0,0x7f),_0x122b30['setBigUint64'](0x1,BigInt(payloadLength));}}_0x5866e3['data']&&typeof _0x5866e3['data']!=='string'&&(_0x640121[0x0]|=0x80),_0x37ac22[_0x4bc015(0x438,0x4f9)](_0x640121),_0x37ac22[_0x4bc015(0x438,0x47c)](_0x1576d5);});}});}let TEXT_DECODER;function totalLength(_0x4af37d){function _0x44e522(_0x5f5173,_0x35db31){return _0x32c5(_0x35db31- -0x3d5,_0x5f5173);}return _0x4af37d['reduce']((_0x207b9a,_0x37316d)=>_0x207b9a+_0x37316d[_0x44e522(-0x1af,-0x145)],0x0);}function concatChunks(_0x2a3550,_0x360666){if(_0x2a3550[0x0][_0x24bd6e(0x213,0x150)]===_0x360666)return _0x2a3550['shift']();const _0x55d03c=new Uint8Array(_0x360666);function _0x24bd6e(_0x10e3cf,_0x515c10){return _0x32c5(_0x515c10- -0x140,_0x10e3cf);}let _0x159139=0x0;for(let _0x4d71af=0x0;_0x4d71af<_0x360666;_0x4d71af++){_0x55d03c[_0x4d71af]=_0x2a3550[0x0][_0x159139++],_0x159139===_0x2a3550[0x0]['length']&&(_0x2a3550['shift'](),_0x159139=0x0);}return _0x2a3550['length']&&_0x159139<_0x2a3550[0x0]['length']&&(_0x2a3550[0x0]=_0x2a3550[0x0]['slice'](_0x159139)),_0x55d03c;}function createPacketDecoderStream(_0x45f1e2,binaryType){!TEXT_DECODER&&(TEXT_DECODER=new TextDecoder());const _0x5312e9=[];let _0x4ad1b2=0x0,expectedLength=-0x1,isBinary=![];return new TransformStream({'transform'(_0x2b16e1,_0x452dee){function _0x16d778(_0x5a0196,_0x24753e){return _0x32c5(_0x24753e- -0x69,_0x5a0196);}_0x5312e9[_0x16d778(0x1ac,0x20e)](_0x2b16e1);while(!![]){if(_0x4ad1b2===0x0){if(totalLength(_0x5312e9)<0x1)break;const _0x5aadfb=concatChunks(_0x5312e9,0x1);isBinary=(_0x5aadfb[0x0]&0x80)===0x80,expectedLength=_0x5aadfb[0x0]&0x7f;if(expectedLength<0x7e)_0x4ad1b2=0x3;else expectedLength===0x7e?_0x4ad1b2=0x1:_0x4ad1b2=0x2;}else{if(_0x4ad1b2===0x1){if(totalLength(_0x5312e9)<0x2)break;const _0x1ee699=concatChunks(_0x5312e9,0x2);expectedLength=new DataView(_0x1ee699['buffer'],_0x1ee699['byteOffset'],_0x1ee699['length'])[_0x16d778(0x200,0x2ea)](0x0),_0x4ad1b2=0x3;}else{if(_0x4ad1b2===0x2){if(totalLength(_0x5312e9)<0x8)break;const _0x45b8ce=concatChunks(_0x5312e9,0x8),_0x35b968=new DataView(_0x45b8ce['buffer'],_0x45b8ce[_0x16d778(0x121,0x206)],_0x45b8ce[_0x16d778(0x250,0x227)]),_0x3f6d5f=_0x35b968['getUint32'](0x0);if(_0x3f6d5f>Math['pow'](0x2,0x35-0x20)-0x1){_0x452dee[_0x16d778(0x230,0x1d1)](ERROR_PACKET);break;}expectedLength=_0x3f6d5f*Math['pow'](0x2,0x20)+_0x35b968[_0x16d778(0x26e,0x270)](0x4),_0x4ad1b2=0x3;}else{if(totalLength(_0x5312e9)<expectedLength)break;const data=concatChunks(_0x5312e9,expectedLength);_0x452dee['enqueue'](decodePacket(isBinary?data:TEXT_DECODER[_0x16d778(0x48e,0x38a)](data),binaryType)),_0x4ad1b2=0x0;}}}if(expectedLength===0x0||expectedLength>_0x45f1e2){_0x452dee[_0x16d778(0x18b,0x1d1)](ERROR_PACKET);break;}}}});}const protocol$1=0x4;function Emitter(_0x2794ae){if(_0x2794ae)return mixin(_0x2794ae);}function mixin(_0x5730bd){for(var _0x18bd4e in Emitter[_0x2288db(0x396,0x35b)]){_0x5730bd[_0x18bd4e]=Emitter['prototype'][_0x18bd4e];}function _0x2288db(_0x273aae,_0xbae3e7){return _0x32c5(_0xbae3e7-0xa,_0x273aae);}return _0x5730bd;}Emitter[_0xf108a4(0x3d3,0x4b1)]['on']=Emitter[_0xf108a4(0x584,0x4b1)][_0xf108a4(0x2cc,0x397)]=function(_0x200a67,_0x1671ca){this['_callbacks']=this[_0x4aaacd(0x102,0x218)]||{},(this[_0x4aaacd(0x102,0x1a7)]['$'+_0x200a67]=this[_0x4aaacd(0x102,0x178)]['$'+_0x200a67]||[])[_0x4aaacd(0x133,0x201)](_0x1671ca);function _0x4aaacd(_0x26f154,_0xa4ffa4){return _0x32c5(_0x26f154- -0x144,_0xa4ffa4);}return this;},Emitter['prototype'][_0xf108a4(0x42f,0x3e3)]=function(_0x2759fd,_0x2ec883){function _0x4c2d6e(){this[_0x57dfc2(0xaf,0x48)](_0x2759fd,_0x4c2d6e);function _0x57dfc2(_0x344b62,_0xca6ee4){return _0x32c5(_0x344b62- -0x15c,_0xca6ee4);}_0x2ec883['apply'](this,arguments);}return _0x4c2d6e['fn']=_0x2ec883,this['on'](_0x2759fd,_0x4c2d6e),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter[_0xf108a4(0x3cb,0x4b1)]['removeAllListeners']=Emitter[_0xf108a4(0x422,0x4b1)]['removeEventListener']=function(_0x3ce87d,_0x256758){this['_callbacks']=this['_callbacks']||{};if(0x0==arguments['length'])return this['_callbacks']={},this;var _0xf2079d=this['_callbacks']['$'+_0x3ce87d];function _0x27ba15(_0x1a1efc,_0xde0171){return _0x32c5(_0x1a1efc-0x3e8,_0xde0171);}if(!_0xf2079d)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x3ce87d],this;var _0x1a4fdf;for(var _0x2124be=0x0;_0x2124be<_0xf2079d[_0x27ba15(0x678,0x587)];_0x2124be++){_0x1a4fdf=_0xf2079d[_0x2124be];if(_0x1a4fdf===_0x256758||_0x1a4fdf['fn']===_0x256758){_0xf2079d[_0x27ba15(0x64f,0x5b2)](_0x2124be,0x1);break;}}return _0xf2079d['length']===0x0&&delete this['_callbacks']['$'+_0x3ce87d],this;},Emitter['prototype']['emit']=function(_0x80d404){this[_0x9d2e68(-0x110,-0x10f)]=this['_callbacks']||{};function _0x9d2e68(_0x4d9c84,_0x22de33){return _0x32c5(_0x22de33- -0x355,_0x4d9c84);}var _0x41f5e1=new Array(arguments[_0x9d2e68(-0x14d,-0xc5)]-0x1),_0x2c892f=this['_callbacks']['$'+_0x80d404];for(var _0x8bc225=0x1;_0x8bc225<arguments['length'];_0x8bc225++){_0x41f5e1[_0x8bc225-0x1]=arguments[_0x8bc225];}if(_0x2c892f){_0x2c892f=_0x2c892f[_0x9d2e68(-0x5e,-0x94)](0x0);for(var _0x8bc225=0x0,_0x312724=_0x2c892f['length'];_0x8bc225<_0x312724;++_0x8bc225){_0x2c892f[_0x8bc225]['apply'](this,_0x41f5e1);}}return this;},Emitter[_0xf108a4(0x5ca,0x4b1)]['emitReserved']=Emitter['prototype'][_0xf108a4(0x4d3,0x45a)],Emitter['prototype'][_0xf108a4(0x4b6,0x39e)]=function(_0x28ae85){function _0x311ac5(_0x1e16b9,_0x34a85e){return _0x32c5(_0x34a85e- -0xd9,_0x1e16b9);}return this[_0x311ac5(0xd9,0x16d)]=this['_callbacks']||{},this['_callbacks']['$'+_0x28ae85]||[];},Emitter['prototype']['hasListeners']=function(_0x3d90c3){function _0x4cb2df(_0x33bf21,_0x4094e4){return _0x32c5(_0x33bf21- -0x3dc,_0x4094e4);}return!!this['listeners'](_0x3d90c3)[_0x4cb2df(-0x14c,-0x146)];};const nextTick=((()=>{function _0x3bc92b(_0x202186,_0x2ffaf2){return _0x32c5(_0x2ffaf2-0x292,_0x202186);}const isPromiseAvailable=typeof Promise==='function'&&typeof Promise['resolve']==='function';return isPromiseAvailable?_0x475e0a=>Promise[_0x3bc92b(0x5a8,0x48e)]()['then'](_0x475e0a):(_0x28d187,_0x5a9094)=>_0x5a9094(_0x28d187,0x0);})()),globalThisShim=((()=>{function _0x37d133(_0x99de19,_0x16fd87){return _0x32c5(_0x99de19-0x2f9,_0x16fd87);}if(typeof self!=='undefined')return self;else return typeof window!=='undefined'?window:Function(_0x37d133(0x5ed,0x5d1))();})()),defaultBinaryType=_0xf108a4(0x441,0x355);function createCookieJar(){}function pick(_0x4db3f2,..._0x4aa75d){function _0x105d5c(_0x435f4f,_0x3cb9e0){return _0x32c5(_0x3cb9e0- -0x11,_0x435f4f);}return _0x4aa75d[_0x105d5c(0x162,0x1f9)]((_0x4dbc7b,_0x9058e7)=>{_0x4db3f2[_0x1592be(0x122,0x35)](_0x9058e7)&&(_0x4dbc7b[_0x9058e7]=_0x4db3f2[_0x9058e7]);function _0x1592be(_0x5476f8,_0xc42f01){return _0x32c5(_0xc42f01- -0x2a2,_0x5476f8);}return _0x4dbc7b;},{});}const NATIVE_SET_TIMEOUT=globalThisShim[_0xf108a4(0x457,0x491)],NATIVE_CLEAR_TIMEOUT=globalThisShim[_0xf108a4(0x565,0x4df)];function installTimerFunctions(_0x346dc9,_0x35c830){function _0x224032(_0x2c4948,_0x328bb2){return _0x32c5(_0x328bb2- -0x25,_0x2c4948);}_0x35c830[_0x224032(0x3f8,0x3d4)]?(_0x346dc9['setTimeoutFn']=NATIVE_SET_TIMEOUT[_0x224032(0x1e4,0x20f)](globalThisShim),_0x346dc9['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT[_0x224032(0x254,0x20f)](globalThisShim)):(_0x346dc9[_0x224032(0x12f,0x1af)]=globalThisShim[_0x224032(0x1f7,0x30c)]['bind'](globalThisShim),_0x346dc9['clearTimeoutFn']=globalThisShim[_0x224032(0x240,0x35a)]['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x5e9527){if(typeof _0x5e9527==='string')return utf8Length(_0x5e9527);function _0x458c1b(_0xb05c4e,_0x40869e){return _0x32c5(_0xb05c4e- -0x110,_0x40869e);}return Math[_0x458c1b(0xcf,0xa5)]((_0x5e9527['byteLength']||_0x5e9527['size'])*BASE64_OVERHEAD);}function utf8Length(_0x33f2dd){function _0x182228(_0x47ccef,_0x21218d){return _0x32c5(_0x21218d- -0x2c0,_0x47ccef);}let _0x35e366=0x0,length=0x0;for(let _0x530697=0x0,_0x36ea2b=_0x33f2dd[_0x182228(-0xcc,-0x30)];_0x530697<_0x36ea2b;_0x530697++){_0x35e366=_0x33f2dd['charCodeAt'](_0x530697);if(_0x35e366<0x80)length+=0x1;else{if(_0x35e366<0x800)length+=0x2;else _0x35e366<0xd800||_0x35e366>=0xe000?length+=0x3:(_0x530697++,length+=0x4);}}return length;}function randomString(){function _0x11403e(_0x435f64,_0x3510ba){return _0x32c5(_0x3510ba-0xad,_0x435f64);}return Date[_0x11403e(0x352,0x27c)]()['toString'](0x24)['substring'](0x3)+Math[_0x11403e(0x3af,0x43d)]()['toString'](0x24)['substring'](0x2,0x5);}function encode(_0x49cf59){let _0x521d1d='';for(let _0x40029f in _0x49cf59){if(_0x49cf59['hasOwnProperty'](_0x40029f)){if(_0x521d1d['length'])_0x521d1d+='&';_0x521d1d+=encodeURIComponent(_0x40029f)+'='+encodeURIComponent(_0x49cf59[_0x40029f]);}}return _0x521d1d;}function decode(_0x15bdc1){let _0x3df217={};function _0x69d3d8(_0xf184b7,_0x117d8c){return _0x32c5(_0x117d8c-0x236,_0xf184b7);}let _0x397203=_0x15bdc1['split']('&');for(let _0x512ccd=0x0,_0x230638=_0x397203[_0x69d3d8(0x514,0x4c6)];_0x512ccd<_0x230638;_0x512ccd++){let _0x4f2732=_0x397203[_0x512ccd]['split']('=');_0x3df217[decodeURIComponent(_0x4f2732[0x0])]=decodeURIComponent(_0x4f2732[0x1]);}return _0x3df217;}class TransportError extends Error{constructor(_0x57b2b6,_0x184dae,_0x15960e){super(_0x57b2b6),this['description']=_0x184dae,this['context']=_0x15960e,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x5ae4e3){super(),this[_0x1e84f6(0x9c,0x13f)]=![],installTimerFunctions(this,_0x5ae4e3),this[_0x1e84f6(0x50,0x10c)]=_0x5ae4e3,this[_0x1e84f6(0x13e,0x189)]=_0x5ae4e3[_0x1e84f6(0xdd,0x189)],this[_0x1e84f6(-0xb5,0x12)]=_0x5ae4e3[_0x1e84f6(0xc8,0x12)];function _0x1e84f6(_0x336b7f,_0x33aee7){return _0x32c5(_0x33aee7- -0x21d,_0x336b7f);}this[_0x1e84f6(-0x5d,0x6e)]=!_0x5ae4e3[_0x1e84f6(0x1c0,0xa2)];}[_0xf108a4(0x41c,0x4f8)](_0x58b399,_0x1dd501,_0x437ad7){function _0x21a141(_0x26fb66,_0x46c97e){return _0x32c5(_0x26fb66- -0x2db,_0x46c97e);}return super['emitReserved'](_0x21a141(0xbc,0xc9),new TransportError(_0x58b399,_0x1dd501,_0x437ad7)),this;}[_0xf108a4(0x39d,0x34b)](){function _0x3ea9ed(_0x3ba570,_0x377703){return _0x32c5(_0x377703- -0x19f,_0x3ba570);}return this[_0x3ea9ed(0x306,0x22e)]='opening',this['doOpen'](),this;}['close'](){(this['readyState']===_0x24cc4d(0x769,0x752)||this['readyState']===_0x24cc4d(0x68a,0x572))&&(this['doClose'](),this[_0x24cc4d(0x636,0x74f)]());function _0x24cc4d(_0x52c7a0,_0x320261){return _0x32c5(_0x320261-0x387,_0x52c7a0);}return this;}[_0xf108a4(0x493,0x470)](_0x3e2551){function _0x32073e(_0x26c504,_0x568380){return _0x32c5(_0x568380-0x3ae,_0x26c504);}this[_0x32073e(0x77d,0x77b)]===_0x32073e(0x691,0x599)&&this[_0x32073e(0x634,0x5f5)](_0x3e2551);}[_0xf108a4(0x554,0x548)](){this[_0xc6f462(0x607,0x543)]=_0xc6f462(0x425,0x507),this['writable']=!![];function _0xc6f462(_0x23224a,_0x5d94b2){return _0x32c5(_0x23224a-0x23a,_0x5d94b2);}super[_0xc6f462(0x51f,0x5a5)](_0xc6f462(0x425,0x547));}['onData'](data){function _0x36e49e(_0xcdcf97,_0x490161){return _0x32c5(_0xcdcf97- -0x28e,_0x490161);}const _0x11388c=decodePacket(data,this[_0x36e49e(-0x5f,-0x163)][_0x36e49e(0x32,-0x83)]);this[_0x36e49e(-0xcd,-0x1aa)](_0x11388c);}['onPacket'](_0x331123){function _0x1e3d60(_0x18452c,_0x201dc3){return _0x32c5(_0x201dc3- -0x179,_0x18452c);}super['emitReserved'](_0x1e3d60(0x11a,0x62),_0x331123);}[_0xf108a4(0x40f,0x528)](_0x3c9909){function _0xb20705(_0xd7dc2d,_0x180357){return _0x32c5(_0x180357-0x1e7,_0xd7dc2d);}this[_0xb20705(0x587,0x5b4)]='closed',super['emitReserved'](_0xb20705(0x50c,0x5b9),_0x3c9909);}[_0xf108a4(0x3ec,0x426)](_0x219cc5){}['createUri'](_0x4a28b4,_0x5effb1={}){function _0x31602d(_0x3989bf,_0x5ca1a6){return _0x32c5(_0x5ca1a6- -0x354,_0x3989bf);}return _0x4a28b4+_0x31602d(-0x10f,0x4)+this[_0x31602d(-0x1e5,-0x155)]()+this['_port']()+this[_0x31602d(-0xf3,-0x2b)][_0x31602d(0x9c,-0x8)]+this['_query'](_0x5effb1);}[_0xf108a4(0x46a,0x35f)](){const _0xc397e=this['opts'][_0x3c6854(0x298,0x1da)];function _0x3c6854(_0x593f4e,_0x4970be){return _0x32c5(_0x4970be- -0xad,_0x593f4e);}return _0xc397e['indexOf'](':')===-0x1?_0xc397e:'['+_0xc397e+']';}['_port'](){function _0x1c5627(_0x464786,_0x499446){return _0x32c5(_0x499446-0x33d,_0x464786);}return this['opts'][_0x1c5627(0x603,0x624)]&&(this['opts'][_0x1c5627(0x732,0x687)]&&Number(this[_0x1c5627(0x6fb,0x666)][_0x1c5627(0x6df,0x624)]!==0x1bb)||!this['opts']['secure']&&Number(this[_0x1c5627(0x691,0x666)]['port'])!==0x50)?':'+this['opts']['port']:'';}[_0xf108a4(0x376,0x465)](_0xfe6a9e){const _0x582441=encode(_0xfe6a9e);return _0x582441['length']?'?'+_0x582441:'';}}class Polling extends Transport{constructor(){super(...arguments);function _0x5a2f54(_0x4e40ff,_0x310f3d){return _0x32c5(_0x4e40ff- -0x352,_0x310f3d);}this[_0x5a2f54(0x61,-0x88)]=![];}get['name'](){return'polling';}['doOpen'](){this['_poll']();}[_0xf108a4(0x3e8,0x426)](_0x29c10f){function _0x50d4a2(_0xea0129,_0x511bd0){return _0x32c5(_0x511bd0-0x2c0,_0xea0129);}this[_0x50d4a2(0x59f,0x68d)]='pausing';const _0x445b9a=()=>{this['readyState']='paused',_0x29c10f();};if(this[_0x50d4a2(0x6d9,0x673)]||!this['writable']){let _0x21400d=0x0;this['_polling']&&(_0x21400d++,this[_0x50d4a2(0x5a9,0x543)]('pollComplete',function(){--_0x21400d||_0x445b9a();})),!this['writable']&&(_0x21400d++,this['once']('drain',function(){--_0x21400d||_0x445b9a();}));}else _0x445b9a();}[_0xf108a4(0x480,0x502)](){this[_0x4728b6(0x478,0x377)]=!![],this['doPoll']();function _0x4728b6(_0x634c0c,_0x213e8d){return _0x32c5(_0x213e8d- -0x3c,_0x634c0c);}this[_0x4728b6(0x32a,0x2a9)]('poll');}['onData'](data){const _0x1e3c01=_0x21a68f=>{_0x2411f4(0x292,0x2a1)===this[_0x2411f4(0x294,0x291)]&&_0x21a68f[_0x2411f4(0x126,0xd7)]==='open'&&this[_0x2411f4(0x2af,0x2df)]();if(_0x2411f4(0x299,0x3b9)===_0x21a68f['type'])return this[_0x2411f4(0x28f,0x25e)]({'description':_0x2411f4(0xe3,0xdb)}),![];function _0x2411f4(_0x2e0afc,_0x17cec1){return _0x32c5(_0x2e0afc- -0x139,_0x17cec1);}this[_0x2411f4(0x88,0x13f)](_0x21a68f);};function _0x327a0b(_0x4972bf,_0x16eff7){return _0x32c5(_0x16eff7-0x27c,_0x4972bf);}decodePayload(data,this[_0x327a0b(0x5b1,0x4ab)][_0x327a0b(0x566,0x53c)])['forEach'](_0x1e3c01),'closed'!==this['readyState']&&(this[_0x327a0b(0x746,0x62f)]=![],this[_0x327a0b(0x4f2,0x561)]('pollComplete'),_0x327a0b(0x568,0x467)===this[_0x327a0b(0x5af,0x649)]&&this['_poll']());}['doClose'](){const _0x58f39c=()=>{this['write']([{'type':'close'}]);};function _0x4b2001(_0x527d95,_0x301dfd){return _0x32c5(_0x527d95- -0x155,_0x301dfd);}'open'===this[_0x4b2001(0x278,0x23d)]?_0x58f39c():this['once'](_0x4b2001(0x96,0x127),_0x58f39c);}['write'](_0x1db324){this['writable']=![],encodePayload(_0x1db324,data=>{function _0x13872c(_0x3ddbe6,_0x9e70e4){return _0x32c5(_0x9e70e4-0x166,_0x3ddbe6);}this[_0x13872c(0x60e,0x546)](data,()=>{this[_0x5b7044(0x4f9,0x56e)]=!![];function _0x5b7044(_0x38a2a4,_0x233dca){return _0x32c5(_0x233dca-0x212,_0x38a2a4);}this[_0x5b7044(0x4eb,0x4f7)](_0x5b7044(0x6be,0x5d1));});});}[_0xf108a4(0x5bb,0x4ee)](){function _0x53d477(_0x333cee,_0x11a347){return _0x32c5(_0x11a347- -0x3e0,_0x333cee);}const _0x35dd1c=this[_0x53d477(0x6c,-0xb7)]['secure']?'https':'http',_0xc9b5c6=this[_0x53d477(-0x136,-0x3a)]||{};return![]!==this[_0x53d477(0x33,-0xb7)]['timestampRequests']&&(_0xc9b5c6[this[_0x53d477(-0x1d,-0xb7)][_0x53d477(0x29,-0x6d)]]=randomString()),!this['supportsBinary']&&!_0xc9b5c6[_0x53d477(-0x30,-0x114)]&&(_0xc9b5c6[_0x53d477(-0x262,-0x193)]=0x1),this[_0x53d477(-0x27c,-0x173)](_0x35dd1c,_0xc9b5c6);}}function _0x46ca(){const _0x4310ca=['D3jPDgfIBgu','BgvHDMLUzW','B25WywnRzxq','C3vICW','Cgz4','CMvQzwn0vw5HDxrOB3jPEMvK','CMvZzxrqyxnZD29Yza','zMLSDgvY','Dhj5ugfYC2u','icHtDgf0Dxm6ia','BwLU','zxHLy3v0zq','uMvHy3royxrPDMu','l2z1BMn0Aw9UCY92mq','y2XVC2LUzW','DgHLBG','zg9dBg9Zzq','otbeCNboqve','zgvMyxvSDhm','Ahr0Chm6','DMfSDwu','B3bLCMf0Aw9U','ChjVyMuGzxjYB3i','DgLTzxn0yw1WugfYyw0','AxnwAwv3','BgLZDej1y2TLDhm','Dhj5q291BNq','x3jLC2v0ugLUz1rPBwvVDxq','l2vUz2LUzs5PBW','B25YzwnVBM5Ly3q','zgvSzxrLt3b0Aw9UCW','DgvZDenVBM5Ly3rPB24','x2rYywLUuxvLDwu','zw5NAw5L','z2v0q29UBMvJDgLVBLn0yxrL','y2XLyxjuAw1LB3v0','C2LNBKLU','x3DYAxrLCG','y2HLy2Ttzxj2zxjjzgvUDgL0Eq','yxr0ywnOBwvUDhm','zxHLyW','y2f0y2G','y2HHCKnVzgvbDa','D3jPDgvcDwzMzxi','reLtq09otKvdva','x3jHBMrVBwL6yxrPB25gywn0B3i','z2v0v29YA3nWywnLswq','CMvXDwvZDa','y2HHBM5LBa','C3vIC3rYAw5N','DxjP','zxzLBNq','CMfUzg9T','zgLZy29UBMvJDa','y29Uy2f0','CxvLCNLlzxK','x2fUEuXPC3rLBMvYCW','yxr0zw1WDhm','CMvTB3zLqwXStgLZDgvUzxjZ','zxjYB3i','B25fCNjVCG','CMvHzhK','l3nVy2TLDc5PBW','Dhj5qwXSvhjHBNnWB3j0CW','y3vYCMvUDfnJAgvTyq','z2v0uMvZCg9UC2vizwfKzxi','y29UBMvJDa','x3jLywr5u3rHDgu','x3vWz3jHzgvZ','CMvJB25Uzwn0Aw9UrgvSyxLnyxG','x3bVBgW','x3bYB2jL','yxbWBhK','x21LDgHVza','CxvLCNK','mJaYnuLlu0rkCq','x3nLBMrdB25Uzwn0ugfJA2v0','x3bPBMDuAw1LB3v0','zMLSzq','x2nVB2TPzuPHCG','Ahr0Chm','x2nSzwfUDxa','CMvJB25Uzwn0x2vYCM9Y','CMvXDwvZDhndB3vUDa','ChjLzMvY','DgvZDa','B25eyxrH','x3bVBgXPBMC','B3jKzxi','q09otKvdvf9fuLjpuG','rMfPBgvKihrVihvWBg9HzcbMAwXL','q09otKvdva','tufyx1nbrKvFsu5uruDfuG','iIbPCYbHihjLC2vYDMvKigv2zw50ig5HBwu','CgfYC2vY','CgvYAw9K','yNvMzMvY','l3nKAY92ms8','qunl','zhjHAw4','Aw50zxjJzxb0B3jZ','y2vYDa','CMvTB3zLtgLZDgvUzxi','y3jLyxrLu29JA2v0','CMvJB25Uzwn0qxr0zw1WDhm','Cg9ZDgDYzxneyxrHyMfZzq','AgfUzgXLqxv0AevYCM9Y','rMfPBgvKihrVigDLDcbMAwXLigLUzM8','B25dBg9Zzq','BhrL','CgLUzYb0Aw1LB3v0','B3bLBMLUzW','x3jLy29UBMvJDgLUzW','CMvHzhLtDgf0zq','qwn0AxzL','D3nZ','zNjVBvf1zxvL','CMvTB3zLq3vZDg9Trgf0ywjHC2u','y2XVC2u','DxbKyxrLrgf0yq','nJi5mertAhnvDa','x3bPza','zw1PDfDPDgHby2S','x29UugfJA2v0','x3nVy2TLDa','Cg9ZDgDYzxnFy2HHBMDLCW','AxnqyxLSB2fKvMfSAwq','tM8GDhjHBNnWB3j0CYbHDMfPBgfIBgu','B3b0Aw9UCW','x2LUzgv4','C2v0vhjHBNnWB3j0','DhjHBNnWB3j0CW','zg9xCML0zq','z3rL','C2v0','lMrLC2m','Ec10B3rHBc1JB3vUDa','Cg9UzW','z2v0uMvHzgvY','zg93BMXVywq','B25pCgvU','ywnRCW','Dw5Yzwy','CgvUzgLUzW','zgvJB2rLCG','AgfZ','BMfTzq','CMvHzgfIBgu','DgfRzujPBMfYEurHDge','C2LNBLvW','DhjHBNnWB3j0t3b0Aw9UCW','zgvJB2rL','Dgv4Dc9WBgfPBJTJAgfYC2v0pvvurI04','CMvJzwL2zuj1zMzLCG','Dw50CMfJAW','BwfRzvjLzG','y29UzMLN','DxnLtMf0AxzLvgLTzxjZ','yNvJA2v0swq','y3vYCMvUDfnLC3nPB24','z2v0q3vZDg9Tq3jLzgvUDgLHBhm','BM90Awz5t3v0z29PBMDmAxn0zw5LCNm','zgvJB2rLza','x21HEfbHEwXVywq','CMvJB25Uzwn0sw50zxj2ywW','CMvTzw1IzxjvCgDYywrL','l2z1BMn0Aw9UCY92ms8','ywn0AxzL','l3n0B3jHz2uVyNvJA2v0CY8','AgfUzgXLrxjYB3i','x29UrxjYB3i','B25qywnRzxq','Bg9N','z2v0u3rHDhvZ','z2v0twv0CMLJCW','Bwf5yMvszwnVBM5Ly3rpBK9Wzw4','Bwf4ugf5Bg9Hza','ywnRvgLTzw91Da','CgLUz0LUDgvYDMfS','CgLUz1rPBwvVDxq','Aw8GC2vYDMvYigrPC2nVBM5Ly3q','rMfPBgvKihrVihjLBw92zsbMAwXLCW','B2jQzwn0','y29UDgvUDfr5Cgu','x29Uq2XVC2u','BM93','y2XLyxjtzxnZAw9U','y2HHCKf0','CgLUzW','zNjLzxPL','C2v0vgLTzw91DezU','vw5RBM93BIbLCNjVCG','x3rYyw5ZCg9YDa','C29JA2v0t3b0Aw9UCW','B25JB25Uzwn0','CMvZCg9UC2u','yxjYyxLcDwzMzxi','CgfJA2v0','x3HOCG','BgLZDa','BMv0D29YAYbJB25Uzwn0Aw9UigXVC3q','y2vPBa','zMXVB3i','DMvYAwz5','C2v0twLU','zxH0CMfizwfKzxjZ','ntKZota5ohfYyLPTAG','C2v0uMvXDwvZDeHLywrLCG','Bg9JywXOB3n0','x29WDhm','C3nSrw5HyMXLza','B25YzwfKExn0yxrLy2HHBMDL','y29UBMvJDgvK','B3bLBG','AxnvC2LUz0n1C3rVBurHDgfIyxnL','EgHYihbVC3qGzxjYB3i','C291CMnL','Bwv0Ag9K','DxbNCMfKzq','zw1PDej1zMzLCMvK','CMvJB25Uzwn0Aw9U','w29IAMvJDcbpyMPLy3rD','l2zPBgvZlW','yxjYyxLIDwzMzxi','ywnR','y29Kzq','CMvHy3rUyxrPDMu','C3rHy2S','x3rPBwvVDxq','D2vIC29JA2v0','CMvZB2X2zq','DhjHBNnMB3jT','ChjVDg9JB2W','x2HVC3rUyw1L','x29Utg9Hza','y2XLyxjuAw1LB3v0rM4','ywnJzxnZx3rVA2vU','qwnJzxb0','y29UDgfPBNm','x3bYzxzcDwzMzxjmzw4','B25VCgvU','BMvX','rMfPBgvKihrVihvWzgf0zsbMDw5JDgLVBIbLBNzPCM9UBwvUDa','ChjLC2vUy2u','CMvKDwnL','B2zM','x3bPBMDuAw1LB3v0vgLTzxi','DxnL','C2vZC2LVBG','x3rYyw5ZCg9YDhncEu5HBwu','x3jLy29UBMvJDgLVBKf0DgvTChrZ','Dg9ku09o','yMfJA29MzG','CgfYC2u','B25iyw5KC2HHA2u','ywDLBNq','ChjVzhvJDa','D2vIDhjHBNnWB3j0','CMvTB3zLqxv0AfrVA2vU','Chv0','uhjLzMvY','mZy0ota5mLjrr2Ttwa','DhjHBNnWB3j0ignSB3nLzcbIEsb0AguGC2vYDMvY','Aw1WB3j0twfW','BNvTyMvY','yMXVyG','zw1PDev2zw50','yNjVywrJyxn0','C29YDej5','CMfUzg9TAxPHDgLVBKzHy3rVCG','Bw92zq','DhjHBNnWB3j0igvYCM9Y','DxbKyxrL','p29WzxjHDgLVBJ11ChnLCNq','rMfPBgvKihrVigrVD25SB2fKigzPBgu','ywrKq29VA2LLCW','C3rVCMfNzq','C2HPzNq','x3jLy29UBMvJDgLVBKrLBgf5','yxv0B1vUCMvM','ywjVCNq','C29JA2v0','yM9KEq','zw52','C2vSzwn0','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','yMLUza','zgvSzxrL','DxbNCMfKzxm','ywrKrxzLBNrmAxn0zw5LCG','Aw8Gy2XPzw50igrPC2nVBM5Ly3q','C3vJy2vZCW','zw5XDwv1zq','zNjVBq','C3rHDhvZvgv4Da','Cgf0y2G','BgLZDgvUzxjZ','tw96v2vIu29JA2v0','ndqZ','yxbWzw5K','AML0DgvY','CMvZCg9UC2vuExbL','B25SB2fK','zgvZDhjVEq','x2nHBgXIywnRCW','D3jPDgu','CMvMCMvZAfnLC3nPB24','CMvHzefZrgf0yvvsta','CMvZDwX0','y3jLyxrL','zwjHyxmUyxv0Ac5ZzxnZAw9U','yJy0','yxv0Aa','Dg9WAwm','zgLZy29UBMvJDgvK','CMvJB25qywnR','x2nYzwf0zq','B251BMXVywq','Cg93','DgfIBgu','B3bLCMf0Aw9UigHHCYb0Aw1LzcbVDxq','AgvHCNrIzwf0','C3rHDhvZ','B25JBg9Zzq','y3jLyxrLu2LNBMvKvxjS','x2rLC3rYB3K','DxbNCMfKzuvYCM9Y','x3nLBMrqywnRzxq','zgvSzxrLqNvJA2v0','DhLWzq','y3jLzgvUDgLHBhm','y3jLyxrLqNvJA2v0','C2v0v29YA3nWywnLswq','n3jcvMnorq','Bg9HzfnLC3nPB24','yMfZzvvsta','C2v0u2vZC2LVBG','C3bSAwnL','AM9PBMLUzW','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','x2f1Dg9dB25Uzwn0','B3jPz2LU','BgLRzq','y3jLyxrLvxjP','CMvHBhrPBwu','yNL0zu9MzNnLDa','C29JA2v0qwrHChrLCG','zw5JB2rLqxncAw5HCNK','Aw5KzxHpzG','yNvMzMvYCW','qKLoqvjzx0vwru5u','mta0mJuYmeLoAeflza','x3bHy2TLDa','ChvZAa','l2LUzM8','x3vYAq','x2rHDge','Axb2nNvYAq','CMv2AxzLCG','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbSB2DZ','C29JA2v0igHHCYbIzwvUigrPC2nVBM5Ly3rLza','Dg9tDhjPBMC','x3jLy29UBMvJDgLVBG','z2v0vxnHz2u','yxnZAwDU','B25Jzq','l3nPz24','x2zPBhrLCLvWz3jHzgvZ','zM9YrwfJAa','Ag9ZDg5HBwu','CgfYC2vYigvYCM9Y','x2nSB3nL','DM9SyxrPBgu','C3vWCg9YDhncAw5HCNK','zMfTAwX5','D29YA3nWywnLswq','u29JA2v0lMLVlwnSAwvUDcbUW6nVigvZDmoHigrPC3bVBSoTDMvSig5LC3rLigfTyMLLBNrLlIbqyxjHifjLywn0ie5HDgL2zsWGAw5ZDgfSzsbHCYbKzxbLBMtdQM5JAwfZig5Ly2vZC8oHCMLHCY4','rgf0ywjHC2uGB3bLCMf0Aw9UigzHAwXLza','BgvUz3rO','DhjHBNnWB3j0ignSB3nL','Dw5ZDwjZy3jPyMu','A2v5','z2v0u2vZC2LVBG','y29VA2LLsMfY','x3f1zxvL','zMfJDg9Y','CgLK','zgLYzwn0B3j5','B25Hy2S','BxvSDgLWyxj0l2zVCM0Tzgf0yq','BgLZDgvUzxjZqw55','C3rYAw5NAwz5','C2vUzej1zMzLCG','DgLTzxn0yw1WuMvXDwvZDhm','Dw5KzwzPBMvK','B25WAw5N','zgf0ywjHC2u','rMfPBgvKihrVigrLCgXVEsbMDw5JDgLVBG','BNnW','CMvJB25Uzwn0x2zHAwXLza','rw5JB2rLCG','qKLoqvjzx0fdsW','DxnLCG','Dg9mB3DLCKnHC2u','zMLSDgvYCW','DhjHBNnWB3j0','AM9PBMvKt25Jzq','y29UBMvJDgLVBLn0yxrL','Ag9ZDa','zgf0yq','z2v0v3jPDgvY','ChjLC2vUy2u6','ms4WlJa','yNvJA2v0','y3jLyxrLvhjHBNnWB3j0','y2fWDhvYzvn0ywnRvhjHy2u','p3vWC2vYDd10CNvL','Bg9JywXbzgrYzxnZ','CMvWBgfJzq','B25qCMvZzw5Jzq','rMfPBgvKihrVigXPC3qGyNvJA2v0CW','D2L0AenYzwrLBNrPywXZ','BNvT','q0Xpu0ve','yNL0zuXLBMD0Aa','zM9Yy2vcyxnLnJq','yMLUyxj5vhLWzq','C2XPy2u','l2zPBgvZl2nVChK','B25dB25Uzwn0Aw9Uu3rHDgvdAgfUz2u','l3jWyY8','C3vIrxzLBNrZ','Cgf1C2u','B25KzwnVzgvK','CMvJB25Uzwn0Aw9UrgvSyxK','x2XHC3rpzMzZzxq','yxbPs2v5','Dw5ZAgLMDa','C2LK','x2jLzM9YzxvUBg9Hzev2zw50tgLZDgvUzxi','y2XLyxi','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','C3vIC2nYAxb0Aw9UCW','ChjVDg9JB2XZ','m2fNqLHyrG','CMvJB25ZDhj1y3rVCG','x3jLy29UBMvJDgLVBKrLBgf5twf4','y2fJAgvdB250CM9S','B2zMC2v0','AgfZt3DUuhjVCgvYDhK','ntm0mMzVD0fxBW','z2v0vwLUDdmY','l2zPBgvZ','C2nOzw1H','x29Wzw4','CMvJB25Uzwn0Aw9Uqxr0zw1WDhm','BMv3tgLZDgvUzxi','C2v0qxv0AfrVA2vU','x3f1zxvLu2vX','x3rYAwDNzxi','y29WEq','zgv0zwn0q3vZDg9Trgf0ywjHC2u','zNvUy3rPB25Z','zw1PDfjLC2vYDMvK','Dw5RBM93BIbWywnRzxqGDhLWzsa','Cg9YDa','DxbNCMfKAw5N','B2zMqw55','x3bPBMDuAw1LB3v0vgLTzq','rvzftLq','EYjZAwqIoIi','DxbZzxj0','AgfZq3vZDg9Trgf0ywjHC2u','y29TChjLC3m','B25LCNjVCG','rNvUy3rPB24GAw52B2nHDgLVBIbMywLSzwq','l2f1DgGVDJeVC2LNBM91Da','DgLTzw91Da','CMv0DxjUihrOAxm','Aw5PDgLHBgL6zq','zNvUy3rPB24','zgv0ywLSCW','C2v0vwLUDdG','ChjVyMu','zw1PDa','C3vIC2nYAwjL','C29Tzq','Bwf4','z2v0qNvJA2v0','D2fYBG','C2v0DxbizwfYDgjLyxq','zgvJB2rLu3rYAw5N','CgfZC3bOCMfZzq','y2XVC2vK','rMfPBgvKihrVigrLBgv0zsbMDw5JDgLVBG','x3f1zxj5','y29SDw1U','y2XLyw51Ca','AgvHzgvYCW','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','B2zMBgLUzq','Cg9ZDa','DxbKyxrLrw52','CMfUz2u','zNjVBunOyxjdB2rL','Bgv2zwW','C2vUza','rMfPBgvKihrVignVChKGzMLSzq','rgvJB2rLCG','C2v0lwnVB2TPzq','C3bSAxq','zg9pCgvU','B25bBNK','zw50CNLWB2LUDa','z2v0','AwXPA2u','AgfUzhnOywTL','B25bDxrOu3rHDgvdAgfUz2u','x2fUEu91DgDVAw5NtgLZDgvUzxjZ','zMXHz3m','ywrKrxzLBNrmAxn0zw5LCNm','C2v0sxrLBq','yxv0B0rLDgvJDen1C3rVBurHDgfIyxnL','C2TPCfjLy29UBMvJDa','CMvJB25Uzwn0','yMfZzty0','z290igjPBMfYEsbKyxrHihDOzw4GBM90ihjLy29UC3rYDwn0Aw5NigeGCgfJA2v0','y2HHBM5LBhm','Ahr0CenSAwvUDa','zgf0yufYCMf5','CMvMCMvZAf90B2TLBG','B3b0CW','y2fSBa','C2v0rgLZywjSzuHLywrLCKnOzwnR','CMvXDwvZDhm','l2zPBgvZl21VDMu','Cg9ZDgDYzxnFy2HHBMDLCZO','CMv0DxjUpxjLChjLC2vUDgf0Aw9U','zMLUAxnOzwrszwnVBNn0CNvJDgLVBG','C2v0vgLTzw91Da','DxbKyxrLt3b0Aw9UCW','x29UrhjHAw4','BNnWCW','y2XVC2vpBKjLzM9YzxvUBg9Hza','mJy5nZG2ngnnAKXVva','DxjS','C3rHDgu','zw5JB2rLqxntDhjPBMC','yxv0Ag9YAxr5','zxHLy3v0zvf1zxj5','D2L0AevYCM9Y','DhjHy2S','C3rYAw5N','l21LDgfKyxrH','y29UBMvJDf9LCNjVCG','CMvZzxq','BgLTAxq','C2v0u2vZC2LVBKLUDgvYBMfS','DxnLCKLUzM8','C2v0DxbjBNrLCMnLChrVCNm','B3bLCMf0B3i','B25TzxnZywDL','AxnbCNjHEq','C2v0sML0DgvY','C2vJDxjL','qMvHCMvYia','Cgf0Aa','DxbKyxrLqNvJA2v0','AM9PBG','BwvZC2fNzq','CMvQzwn0','ChjVDg90ExbL','ChjPB3jxzwjZB2nRzxrtDwnJzxnZ','z2v0vwLUDde2','zMX1C2G','y29UBMvJDgLUzW','nZu3oezHuhf3Da','x3bPBMDjBNrLCNzHBa','oI8V','zgv0zwn0zwrdB25MAwC','y2XPzw50','AM9PBMvK'];_0x46ca=function(){return _0x4310ca;};return _0x46ca();}let value=![];try{value=typeof XMLHttpRequest!=='undefined'&&'withCredentials'in new XMLHttpRequest();}catch(_0x587fc8){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(_0x13d2b8){function _0x13910b(_0x24f1ea,_0x478627){return _0x32c5(_0x24f1ea-0x2d6,_0x478627);}super(_0x13d2b8);if(typeof location!==_0x13910b(0x576,0x634)){const isSSL=_0x13910b(0x645,0x711)===location[_0x13910b(0x4d4,0x575)];let _0x147c80=location[_0x13910b(0x5bd,0x6da)];!_0x147c80&&(_0x147c80=isSSL?_0x13910b(0x516,0x5d0):'80'),this['xd']=typeof location!=='undefined'&&_0x13d2b8[_0x13910b(0x55d,0x4c9)]!==location['hostname']||_0x147c80!==_0x13d2b8['port'];}}['doWrite'](data,_0xbf1e15){const req=this[_0x1583e1(0x21e,0x313)]({'method':'POST','data':data});req['on']('success',_0xbf1e15);function _0x1583e1(_0x464e1e,_0x385bc4){return _0x32c5(_0x464e1e- -0x16d,_0x385bc4);}req['on']('error',(_0x44a6f7,_0x257b57)=>{function _0x522c26(_0x4fa943,_0xed9bc0){return _0x32c5(_0x4fa943- -0x12d,_0xed9bc0);}this[_0x522c26(0x26b,0x1af)](_0x522c26(0xc0,0x1cf),_0x44a6f7,_0x257b57);});}['doPoll'](){const req=this['request']();req['on'](_0xe35d1e(0x567,0x5e9),this[_0xe35d1e(0x72e,0x6ec)]['bind'](this));function _0xe35d1e(_0x1d46ae,_0x3317a1){return _0x32c5(_0x3317a1-0x33a,_0x1d46ae);}req['on']('error',(_0x30ebac,_0x5db5dc)=>{this['onError']('xhr\x20poll\x20error',_0x30ebac,_0x5db5dc);}),this['pollXhr']=req;}}class Request extends Emitter{constructor(createRequest,_0x28df46,_0x1b3a7a){super(),this['createRequest']=createRequest;function _0x50c63a(_0x4d0a56,_0x451e87){return _0x32c5(_0x4d0a56- -0x2ec,_0x451e87);}installTimerFunctions(this,_0x1b3a7a),this['_opts']=_0x1b3a7a,this[_0x50c63a(0xb9,0x1c6)]=_0x1b3a7a[_0x50c63a(-0xfd,-0x95)]||'GET',this[_0x50c63a(-0x73,-0xae)]=_0x28df46,this[_0x50c63a(-0x72,-0x4b)]=undefined!==_0x1b3a7a[_0x50c63a(-0x3d,0x4c)]?_0x1b3a7a[_0x50c63a(-0x3d,0x19)]:null,this[_0x50c63a(-0x9a,-0x173)]();}['_create'](){var _0x411a00;function _0x407a1f(_0x215369,_0x2b288d){return _0x32c5(_0x215369- -0x2d7,_0x2b288d);}const _0x504a97=pick(this[_0x407a1f(-0xf0,-0x106)],_0x407a1f(-0xc2,-0x71),_0x407a1f(0x89,0x126),_0x407a1f(-0x44,0x13),_0x407a1f(0x2b,-0x55),_0x407a1f(0xea,0x108),'ca','ciphers',_0x407a1f(0x8a,0x8b),_0x407a1f(-0xaa,-0x196));_0x504a97['xdomain']=!!this[_0x407a1f(-0xf0,-0x12f)]['xd'];const _0x5b24dc=this[_0x407a1f(-0xfb,-0x168)]=this['createRequest'](_0x504a97);try{_0x5b24dc[_0x407a1f(-0xec,-0xde)](this['_method'],this[_0x407a1f(-0x5e,0x78)],!![]);try{if(this[_0x407a1f(-0xf0,-0x19f)][_0x407a1f(-0xf4,-0x11f)]){_0x5b24dc[_0x407a1f(0x54,-0x95)]&&_0x5b24dc[_0x407a1f(0x54,0x161)](!![]);for(let _0x475dfb in this['_opts']['extraHeaders']){this['_opts'][_0x407a1f(-0xf4,-0x1e8)]['hasOwnProperty'](_0x475dfb)&&_0x5b24dc['setRequestHeader'](_0x475dfb,this['_opts'][_0x407a1f(-0xf4,-0x138)][_0x475dfb]);}}}catch(_0x20d324){}if('POST'===this[_0x407a1f(0xce,0xfd)])try{_0x5b24dc[_0x407a1f(-0xf2,-0x8b)]('Content-type',_0x407a1f(0x11d,0x140));}catch(_0x42d93f){}try{_0x5b24dc['setRequestHeader'](_0x407a1f(-0xd4,-0x1c6),'*/*');}catch(_0xc58264){}(_0x411a00=this[_0x407a1f(-0xf0,0xd)][_0x407a1f(-0x42,-0xd2)])===null||_0x411a00===void 0x0?void 0x0:_0x411a00[_0x407a1f(-0xae,-0x13d)](_0x5b24dc),_0x407a1f(-0x1c,-0x125)in _0x5b24dc&&(_0x5b24dc['withCredentials']=this[_0x407a1f(-0xf0,-0x4c)][_0x407a1f(-0x1c,0x24)]),this[_0x407a1f(-0xf0,-0x1b2)]['requestTimeout']&&(_0x5b24dc['timeout']=this[_0x407a1f(-0xf0,-0x172)]['requestTimeout']),_0x5b24dc[_0x407a1f(-0xee,0x13)]=()=>{var _0x3a0c8b;function _0x2155b2(_0x1ce208,_0x2767eb){return _0x32c5(_0x2767eb-0x215,_0x1ce208);}_0x5b24dc['readyState']===0x3&&((_0x3a0c8b=this[_0x2155b2(0x32f,0x3fc)][_0x2155b2(0x4d3,0x4aa)])===null||_0x3a0c8b===void 0x0?void 0x0:_0x3a0c8b['parseCookies'](_0x5b24dc[_0x2155b2(0x50b,0x5b2)](_0x2155b2(0x4f0,0x528))));if(0x4!==_0x5b24dc['readyState'])return;0xc8===_0x5b24dc['status']||0x4c7===_0x5b24dc[_0x2155b2(0x34e,0x46d)]?this[_0x2155b2(0x482,0x415)]():this[_0x2155b2(0x407,0x3e9)](()=>{function _0x599e17(_0x34e948,_0x19f36b){return _0x32c5(_0x19f36b-0x307,_0x34e948);}this[_0x599e17(0x475,0x4c7)](typeof _0x5b24dc[_0x599e17(0x646,0x55f)]===_0x599e17(0x441,0x525)?_0x5b24dc[_0x599e17(0x55a,0x55f)]:0x0);},0x0);},_0x5b24dc[_0x407a1f(0x39,-0xcc)](this['_data']);}catch(_0x1ae2dc){this[_0x407a1f(-0x103,-0xf1)](()=>{this['_onError'](_0x1ae2dc);},0x0);return;}typeof document!=='undefined'&&(this[_0x407a1f(0x106,0x1d)]=Request['requestsCount']++,Request['requests'][this['_index']]=this);}['_onError'](_0x4b7a1b){function _0x4fcbcf(_0x3967e4,_0x4aa283){return _0x32c5(_0x4aa283- -0x13e,_0x3967e4);}this[_0x4fcbcf(0x117,0x1a7)]('error',_0x4b7a1b,this[_0x4fcbcf(0x1,0x9e)]),this[_0x4fcbcf(0x2ae,0x26f)](!![]);}[_0xf108a4(0x510,0x50d)](fromError){if(_0x13c659(0x2ab,0x38e)===typeof this['_xhr']||null===this['_xhr'])return;this[_0x13c659(0x25f,0x2ca)]['onreadystatechange']=empty;if(fromError)try{this['_xhr']['abort']();}catch(_0x22144f){}function _0x13c659(_0x15cb72,_0x5c3dcd){return _0x32c5(_0x5c3dcd-0xee,_0x15cb72);}typeof document!=='undefined'&&delete Request[_0x13c659(0x500,0x41a)][this['_index']],this[_0x13c659(0x36b,0x2ca)]=null;}['_onLoad'](){function _0x53bb77(_0x78df80,_0x3810e1){return _0x32c5(_0x78df80-0xc3,_0x3810e1);}const data=this[_0x53bb77(0x29f,0x3af)]['responseText'];data!==null&&(this[_0x53bb77(0x3a8,0x49c)]('data',data),this['emitReserved'](_0x53bb77(0x2fc,0x30d)),this['_cleanup']());}[_0xf108a4(0x409,0x38e)](){function _0x499bd0(_0x494110,_0x21e125){return _0x32c5(_0x494110-0x237,_0x21e125);}this[_0x499bd0(0x5e4,0x5ed)]();}}Request[_0xf108a4(0x427,0x50f)]=0x0,Request[_0xf108a4(0x569,0x48c)]={};if(typeof document!==_0xf108a4(0x4b6,0x400)){if(typeof attachEvent===_0xf108a4(0x4af,0x456))attachEvent(_0xf108a4(0x3d8,0x3b3),unloadHandler);else{if(typeof addEventListener===_0xf108a4(0x44f,0x456)){const terminationEvent='onpagehide'in globalThisShim?'pagehide':'unload';addEventListener(terminationEvent,unloadHandler,![]);}}}function unloadHandler(){function _0x23005a(_0x410ea6,_0xd5b565){return _0x32c5(_0x410ea6- -0x28f,_0xd5b565);}for(let _0x172aa8 in Request[_0x23005a(0x9d,0x12e)]){Request['requests']['hasOwnProperty'](_0x172aa8)&&Request['requests'][_0x172aa8][_0x23005a(-0x61,0x96)]();}}const hasXHR2=(function(){function _0x3caf48(_0x14ca62,_0x3d9838){return _0x32c5(_0x3d9838- -0x3a7,_0x14ca62);}const _0x3be88b=newRequest({'xdomain':![]});return _0x3be88b&&_0x3be88b[_0x3caf48(-0x4f,-0x164)]!==null;}());class XHR extends BaseXHR{constructor(_0x9f84e3){super(_0x9f84e3);const _0x12a8b7=_0x9f84e3&&_0x9f84e3[_0x10b1f3(0x147,0x20d)];function _0x10b1f3(_0x269903,_0x517835){return _0x32c5(_0x517835- -0xb2,_0x269903);}this[_0x10b1f3(0xf5,0x1d9)]=hasXHR2&&!_0x12a8b7;}[_0xf108a4(0x449,0x4eb)](_0x2062e4={}){return Object['assign'](_0x2062e4,{'xd':this['xd']},this['opts']),new Request(newRequest,this['uri'](),_0x2062e4);}}function newRequest(_0x5d3445){function _0x3be77a(_0x448d2e,_0x564609){return _0x32c5(_0x448d2e- -0xd8,_0x564609);}const xdomain=_0x5d3445['xdomain'];try{if(_0x3be77a(0x1c8,0x281)!==typeof XMLHttpRequest&&(!xdomain||hasCORS))return new XMLHttpRequest();}catch(_0x8de913){}if(!xdomain)try{return new globalThisShim[([_0x3be77a(0x2f6,0x348)][_0x3be77a(0x2ba,0x2d9)]('Object')[_0x3be77a(0x276,0x1ee)]('X'))]('Microsoft.XMLHTTP');}catch(_0x1534a7){}}const isReactNative=typeof navigator!==_0xf108a4(0x44a,0x400)&&typeof navigator['product']==='string'&&navigator[_0xf108a4(0x31f,0x376)][_0xf108a4(0x3f1,0x409)]()===_0xf108a4(0x24a,0x358);class BaseWS extends Transport{get[_0xf108a4(0x5b3,0x54e)](){return'websocket';}[_0xf108a4(0x41a,0x475)](){const _0x2be0e1=this['uri'](),_0x1fa1e0=this['opts'][_0x46d274(0x1f,-0xef)],_0x43e3c5=isReactNative?{}:pick(this[_0x46d274(0x77,0xa4)],_0x46d274(-0x9d,-0x11e),'perMessageDeflate','pfx',_0x46d274(-0x1f,-0x7e),'passphrase',_0x46d274(0x10f,0x158),'ca','ciphers',_0x46d274(0xaf,0x5d),_0x46d274(0x5,-0xe0),'protocolVersion',_0x46d274(-0x47,-0xa),'maxPayload',_0x46d274(-0x26,-0xc9),_0x46d274(0xd0,0x184));this['opts'][_0x46d274(-0xcf,-0x189)]&&(_0x43e3c5['headers']=this[_0x46d274(0x77,0x83)][_0x46d274(-0xcf,-0x4c)]);try{this['ws']=this[_0x46d274(0x111,0x18d)](_0x2be0e1,_0x1fa1e0,_0x43e3c5);}catch(_0xbaa68){return this['emitReserved'](_0x46d274(0xe5,0x83),_0xbaa68);}function _0x46d274(_0x31f278,_0x251d42){return _0x32c5(_0x31f278- -0x2b2,_0x251d42);}this['ws']['binaryType']=this['socket'][_0x46d274(0xe,0xd7)],this['addEventListeners']();}[_0xf108a4(0x49d,0x47e)](){this['ws']['onopen']=()=>{function _0x156e68(_0x47a1ea,_0x2bea1d){return _0x32c5(_0x47a1ea- -0x2f8,_0x2bea1d);}this['opts'][_0x156e68(-0xcb,0x39)]&&this['ws'][_0x156e68(0xe0,0x9e)][_0x156e68(0xf2,0x17e)](),this[_0x156e68(0xf0,-0x32)]();},this['ws'][_0x4d9dfb(-0x67,-0x90)]=_0x73c293=>this[_0x4d9dfb(0x18b,0xdf)]({'description':'websocket\x20connection\x20closed','context':_0x73c293}),this['ws'][_0x4d9dfb(0x17,0x5e)]=_0x4bb7aa=>this[_0x4d9dfb(0x1d5,0xc9)](_0x4bb7aa['data']);function _0x4d9dfb(_0x5f0938,_0x700965){return _0x32c5(_0x700965- -0x2e9,_0x5f0938);}this['ws'][_0x4d9dfb(0x2,0x7)]=_0x276e3f=>this[_0x4d9dfb(0xc3,0xaf)]('websocket\x20error',_0x276e3f);}['write'](_0x2cd014){this[_0x29a5bf(0x2e,-0x56)]=![];function _0x29a5bf(_0x161422,_0x20130c){return _0x32c5(_0x161422- -0x32e,_0x20130c);}for(let _0x46956d=0x0;_0x46956d<_0x2cd014['length'];_0x46956d++){const _0x178055=_0x2cd014[_0x46956d],_0x4bb851=_0x46956d===_0x2cd014[_0x29a5bf(-0x9e,-0x43)]-0x1;encodePacket(_0x178055,this['supportsBinary'],data=>{try{this[_0x3f3067(0x337,0x2b4)](_0x178055,data);}catch(_0x25db36){}function _0x3f3067(_0x489617,_0x5b5480){return _0x32c5(_0x489617- -0xa9,_0x5b5480);}_0x4bb851&&nextTick(()=>{this['writable']=!![];function _0x50511f(_0xc15cef,_0x46cbc6){return _0x32c5(_0x46cbc6-0x170,_0xc15cef);}this['emitReserved'](_0x50511f(0x617,0x52f));},this['setTimeoutFn']);});}}['doClose'](){function _0x36c569(_0x2a3276,_0x5ef903){return _0x32c5(_0x2a3276- -0x223,_0x5ef903);}typeof this['ws']!=='undefined'&&(this['ws'][_0x36c569(0xcd,0xde)]=()=>{},this['ws'][_0x36c569(0x1af,0x13d)](),this['ws']=null);}[_0xf108a4(0x5af,0x4ee)](){const _0x349dbc=this['opts'][_0x47af15(0x3ea,0x37b)]?_0x47af15(0x46f,0x447):'ws',_0xf43657=this['query']||{};this[_0x47af15(0x3c9,0x379)][_0x47af15(0x33f,0x249)]&&(_0xf43657[this[_0x47af15(0x3c9,0x3b2)]['timestampParam']]=randomString());!this[_0x47af15(0x32b,0x355)]&&(_0xf43657['b64']=0x1);function _0x47af15(_0x5da92b,_0x18470f){return _0x32c5(_0x5da92b-0xa0,_0x18470f);}return this[_0x47af15(0x30d,0x420)](_0x349dbc,_0xf43657);}}const WebSocketCtor=globalThisShim['WebSocket']||globalThisShim[_0xf108a4(0x4a8,0x39f)];class WS extends BaseWS{['createSocket'](_0x1027dc,_0x30f3ec,_0x18c6f6){return!isReactNative?_0x30f3ec?new WebSocketCtor(_0x1027dc,_0x30f3ec):new WebSocketCtor(_0x1027dc):new WebSocketCtor(_0x1027dc,_0x30f3ec,_0x18c6f6);}['doWrite'](_0x1eb7f7,data){function _0x220d76(_0x2b79a8,_0x399cf2){return _0x32c5(_0x2b79a8-0x12a,_0x399cf2);}this['ws'][_0x220d76(0x43a,0x4f3)](data);}}class WT extends Transport{get[_0xf108a4(0x52f,0x54e)](){function _0x352489(_0x35e7c7,_0x1f3245){return _0x32c5(_0x35e7c7- -0xd3,_0x1f3245);}return _0x352489(0x144,0x22e);}[_0xf108a4(0x40b,0x475)](){function _0x346a4e(_0x3afba3,_0x252f77){return _0x32c5(_0x252f77-0x21,_0x3afba3);}try{this[_0x346a4e(0x118,0x1f7)]=new WebTransport(this[_0x346a4e(0x1d2,0x28e)]('https'),this['opts'][_0x346a4e(0x303,0x413)][this[_0x346a4e(0x316,0x40f)]]);}catch(_0xbf973){return this[_0x346a4e(0x1fc,0x306)](_0x346a4e(0x3c0,0x3b8),_0xbf973);}this['_transport']['closed'][_0x346a4e(0x43d,0x38c)](()=>{this['onClose']();})['catch'](_0x2a1b44=>{function _0x4ad3e5(_0x22ee1e,_0x22e621){return _0x32c5(_0x22e621- -0x3e7,_0x22ee1e);}this[_0x4ad3e5(-0x74,-0x4f)]('webtransport\x20error',_0x2a1b44);}),this['_transport'][_0x346a4e(0x3a0,0x3ba)]['then'](()=>{function _0x14d343(_0x3aa81c,_0x470240){return _0x32c5(_0x3aa81c- -0x2a3,_0x470240);}this[_0x14d343(-0xcd,0x32)]['createBidirectionalStream']()['then'](_0x5a3528=>{const _0x38694f=createPacketDecoderStream(Number[_0x339f8f(0x70b,0x7da)],this['socket']['binaryType']);function _0x339f8f(_0x3c0331,_0x5f6c7){return _0x32c5(_0x3c0331-0x353,_0x5f6c7);}const _0x57fcce=_0x5a3528[_0x339f8f(0x742,0x711)]['pipeThrough'](_0x38694f)[_0x339f8f(0x739,0x7ae)](),_0x459832=createPacketEncoderStream();_0x459832['readable']['pipeTo'](_0x5a3528[_0x339f8f(0x6af,0x651)]),this['_writer']=_0x459832['writable'][_0x339f8f(0x603,0x624)]();const _0x3a88a6=()=>{function _0x10e0dc(_0x3c63a0,_0x30907b){return _0x32c5(_0x3c63a0- -0x231,_0x30907b);}_0x57fcce['read']()['then'](({done:_0x70b6f6,value:_0x1efbae})=>{if(_0x70b6f6)return;this['onPacket'](_0x1efbae),_0x3a88a6();})[_0x10e0dc(0x154,0xa6)](_0x19bc18=>{});};_0x3a88a6();const _0xabb563={'type':_0x339f8f(0x53e,0x4c6)};this[_0x339f8f(0x6f9,0x7db)][_0x339f8f(0x61f,0x554)]&&(_0xabb563['data']=_0x339f8f(0x63f,0x563)+this[_0x339f8f(0x6f9,0x68c)][_0x339f8f(0x61f,0x67e)]+'\x22}'),this[_0x339f8f(0x6d4,0x715)]['write'](_0xabb563)['then'](()=>this['onOpen']());});});}[_0xf108a4(0x2ff,0x3a7)](_0x4eff04){function _0x3a7643(_0x248e7b,_0x2d7117){return _0x32c5(_0x248e7b-0x207,_0x2d7117);}this[_0x3a7643(0x563,0x584)]=![];for(let _0xd6965=0x0;_0xd6965<_0x4eff04[_0x3a7643(0x497,0x416)];_0xd6965++){const _0x3a3952=_0x4eff04[_0xd6965],_0x2418f7=_0xd6965===_0x4eff04['length']-0x1;this['_writer']['write'](_0x3a3952)[_0x3a7643(0x572,0x55f)](()=>{function _0x1d9569(_0x4b2303,_0x766a57){return _0x32c5(_0x4b2303-0x222,_0x766a57);}_0x2418f7&&nextTick(()=>{this[_0x2924c3(0x430,0x400)]=!![];function _0x2924c3(_0x43aac6,_0x2d112d){return _0x32c5(_0x43aac6-0xd4,_0x2d112d);}this['emitReserved']('drain');},this[_0x1d9569(0x3f6,0x413)]);});}}[_0xf108a4(0x4f9,0x4cc)](){function _0x2feebf(_0x4d49b9,_0xb5a02b){return _0x32c5(_0xb5a02b- -0x384,_0x4d49b9);}var _0x516591;(_0x516591=this[_0x2feebf(-0x13a,-0x1ae)])===null||_0x516591===void 0x0?void 0x0:_0x516591['close']();}}const transports={'websocket':WS,'webtransport':WT,'polling':XHR},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=[_0xf108a4(0x2f9,0x34e),'protocol','authority',_0xf108a4(0x513,0x4a4),_0xf108a4(0x4d2,0x408),'password','host',_0xf108a4(0x4ff,0x447),'relative',_0xf108a4(0x3c5,0x4ac),_0xf108a4(0x3e3,0x3f9),'file',_0xf108a4(0x4e1,0x506),'anchor'];function parse(_0x702039){function _0x2e116b(_0x2acae7,_0x256a79){return _0x32c5(_0x256a79- -0xa7,_0x2acae7);}if(_0x702039[_0x2e116b(0x185,0x1e9)]>0x1f40)throw'URI\x20too\x20long';const _0x3e1e77=_0x702039,_0x145751=_0x702039['indexOf']('['),_0x3ea956=_0x702039['indexOf'](']');_0x145751!=-0x1&&_0x3ea956!=-0x1&&(_0x702039=_0x702039[_0x2e116b(0x3ad,0x2e6)](0x0,_0x145751)+_0x702039['substring'](_0x145751,_0x3ea956)[_0x2e116b(0x2be,0x211)](/:/g,';')+_0x702039[_0x2e116b(0x32f,0x2e6)](_0x3ea956,_0x702039[_0x2e116b(0x11a,0x1e9)]));let _0x12bbca=re[_0x2e116b(0x3e7,0x2dd)](_0x702039||''),_0x580516={},_0x408aa7=0xe;while(_0x408aa7--){_0x580516[parts[_0x408aa7]]=_0x12bbca[_0x408aa7]||'';}return _0x145751!=-0x1&&_0x3ea956!=-0x1&&(_0x580516[_0x2e116b(0x40,0x147)]=_0x3e1e77,_0x580516[_0x2e116b(0x210,0x207)]=_0x580516[_0x2e116b(0x2e7,0x207)]['substring'](0x1,_0x580516['host'][_0x2e116b(0x267,0x1e9)]-0x1)['replace'](/;/g,':'),_0x580516['authority']=_0x580516[_0x2e116b(0x341,0x293)]['replace']('[','')[_0x2e116b(0x1d9,0x211)](']','')[_0x2e116b(0x126,0x211)](/;/g,':'),_0x580516[_0x2e116b(0x289,0x1d4)]=!![]),_0x580516['pathNames']=pathNames(_0x580516,_0x580516[_0x2e116b(0x2ea,0x2a5)]),_0x580516[_0x2e116b(0x208,0x2ec)]=queryKey(_0x580516,_0x580516['query']),_0x580516;}function pathNames(_0x433065,_0x58075b){const _0x25fb44=/\/{2,9}/g,_0x5e9ab1=_0x58075b['replace'](_0x25fb44,'/')[_0x16a7de(0x20c,0x1a7)]('/');(_0x58075b['slice'](0x0,0x1)=='/'||_0x58075b['length']===0x0)&&_0x5e9ab1['splice'](0x0,0x1);_0x58075b[_0x16a7de(0x1b9,0x201)](-0x1)=='/'&&_0x5e9ab1[_0x16a7de(0x15f,0x1c0)](_0x5e9ab1[_0x16a7de(0x188,0x12a)]-0x1,0x1);function _0x16a7de(_0x418392,_0x46485f){return _0x32c5(_0x418392- -0x108,_0x46485f);}return _0x5e9ab1;}function queryKey(_0x1586e7,_0xe42907){function _0xecdfab(_0x5b1c53,_0x59d777){return _0x32c5(_0x59d777-0x3b4,_0x5b1c53);}const data={};return _0xe42907[_0xecdfab(0x719,0x66c)](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x337c1c,_0x53c803,_0xac56ac){_0x53c803&&(data[_0x53c803]=_0xac56ac);}),data;}const withEventListeners=typeof addEventListener==='function'&&typeof removeEventListener===_0xf108a4(0x4fa,0x456),OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener(_0xf108a4(0x371,0x46a),()=>{OFFLINE_EVENT_LISTENERS['forEach'](listener=>listener());},![]);class SocketWithoutUpgrade extends Emitter{constructor(_0x21c8a4,_0x40fec1){super(),this['binaryType']=defaultBinaryType,this[_0x33c20b(0x75b,0x6ce)]=[],this[_0x33c20b(0x66d,0x54c)]=0x0,this[_0x33c20b(0x581,0x69e)]=-0x1,this[_0x33c20b(0x7ca,0x6f0)]=-0x1,this['_maxPayload']=-0x1,this[_0x33c20b(0x667,0x631)]=Infinity;_0x21c8a4&&_0x33c20b(0x623,0x513)===typeof _0x21c8a4&&(_0x40fec1=_0x21c8a4,_0x21c8a4=null);if(_0x21c8a4){const parsedUri=parse(_0x21c8a4);_0x40fec1['hostname']=parsedUri['host'],_0x40fec1['secure']=parsedUri['protocol']===_0x33c20b(0x7bd,0x6f3)||parsedUri[_0x33c20b(0x623,0x545)]==='wss',_0x40fec1['port']=parsedUri['port'];if(parsedUri[_0x33c20b(0x711,0x6ed)])_0x40fec1[_0x33c20b(0x741,0x6ed)]=parsedUri[_0x33c20b(0x79a,0x6ed)];}else _0x40fec1['host']&&(_0x40fec1[_0x33c20b(0x6c9,0x5ce)]=parse(_0x40fec1['host'])[_0x33c20b(0x587,0x5f5)]);installTimerFunctions(this,_0x40fec1),this['secure']=null!=_0x40fec1[_0x33c20b(0x75c,0x691)]?_0x40fec1['secure']:typeof location!==_0x33c20b(0x6e2,0x5e7)&&_0x33c20b(0x768,0x6b6)===location['protocol'];_0x40fec1['hostname']&&!_0x40fec1['port']&&(_0x40fec1[_0x33c20b(0x615,0x62e)]=this['secure']?'443':'80');this['hostname']=_0x40fec1['hostname']||(typeof location!=='undefined'?location[_0x33c20b(0x60b,0x5ce)]:_0x33c20b(0x5b4,0x52d)),this['port']=_0x40fec1[_0x33c20b(0x64d,0x62e)]||(typeof location!==_0x33c20b(0x624,0x5e7)&&location[_0x33c20b(0x5a9,0x62e)]?location[_0x33c20b(0x6e7,0x62e)]:this['secure']?_0x33c20b(0x59c,0x587):'80'),this['transports']=[],this[_0x33c20b(0x60d,0x556)]={};function _0x33c20b(_0x52c5d,_0xfd225b){return _0x32c5(_0xfd225b-0x347,_0x52c5d);}_0x40fec1['transports']['forEach'](_0x2c3e32=>{function _0x4a9f4b(_0x4df8c4,_0x43dfd5){return _0x32c5(_0x4df8c4- -0xd2,_0x43dfd5);}const _0x325925=_0x2c3e32[_0x4a9f4b(0x27f,0x1a5)]['name'];this['transports'][_0x4a9f4b(0x1a5,0x1e7)](_0x325925),this[_0x4a9f4b(0x13d,0x12c)][_0x325925]=_0x2c3e32;}),this[_0x33c20b(0x76f,0x670)]=Object['assign']({'path':_0x33c20b(0x666,0x6bf),'agent':![],'withCredentials':![],'upgrade':!![],'timestampParam':'t','rememberUpgrade':![],'addTrailingSlash':!![],'rejectUnauthorized':!![],'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':![]},_0x40fec1),this['opts'][_0x33c20b(0x61f,0x693)]=this['opts']['path'][_0x33c20b(0x645,0x5ff)](/\/$/,'')+(this['opts']['addTrailingSlash']?'/':''),typeof this['opts'][_0x33c20b(0x732,0x6ed)]===_0x33c20b(0x740,0x685)&&(this[_0x33c20b(0x606,0x670)][_0x33c20b(0x7d8,0x6ed)]=decode(this[_0x33c20b(0x697,0x670)][_0x33c20b(0x7c1,0x6ed)])),withEventListeners&&(this[_0x33c20b(0x6dc,0x670)][_0x33c20b(0x61c,0x67c)]&&(this['_beforeunloadEventListener']=()=>{function _0x54fae9(_0x1ca401,_0x4c73e0){return _0x32c5(_0x4c73e0- -0x219,_0x1ca401);}this[_0x54fae9(-0x8a,0x92)]&&(this['transport'][_0x54fae9(0xf4,0x17d)](),this['transport'][_0x54fae9(0x280,0x1b9)]());},addEventListener('beforeunload',this[_0x33c20b(0x609,0x614)],![])),this[_0x33c20b(0x5e4,0x5ce)]!==_0x33c20b(0x615,0x52d)&&(this['_offlineEventListener']=()=>{function _0x5acb29(_0x21a1af,_0x44cb0c){return _0x32c5(_0x21a1af- -0x280,_0x44cb0c);}this[_0x5acb29(-0xb2,-0x35)]('transport\x20close',{'description':_0x5acb29(-0xa2,-0xda)});},OFFLINE_EVENT_LISTENERS[_0x33c20b(0x5c6,0x5be)](this['_offlineEventListener']))),this[_0x33c20b(0x5d1,0x670)][_0x33c20b(0x6c5,0x602)]&&(this[_0x33c20b(0x780,0x6f2)]=createCookieJar()),this['_open']();}['createTransport'](_0x37767d){const _0x48f902=Object[_0x3dc23f(0x28,-0x1c)]({},this[_0x3dc23f(0xcf,0x10e)]['query']);_0x48f902['EIO']=protocol$1;function _0x3dc23f(_0x2bf042,_0x29648e){return _0x32c5(_0x2bf042- -0x25a,_0x29648e);}_0x48f902['transport']=_0x37767d;if(this['id'])_0x48f902[_0x3dc23f(0x72,-0x29)]=this['id'];const _0x55e915=Object['assign']({},this[_0x3dc23f(0xcf,0xaf)],{'query':_0x48f902,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this[_0x3dc23f(0xcf,0x6c)][_0x3dc23f(0x198,0x1b7)][_0x37767d]);return new this['_transportsByName'][_0x37767d](_0x55e915);}[_0xf108a4(0x48e,0x43c)](){if(this['transports']['length']===0x0){this['setTimeoutFn'](()=>{function _0x4c121c(_0x19d372,_0x7145f4){return _0x32c5(_0x19d372- -0x1a8,_0x7145f4);}this[_0x4c121c(0x13d,0x117)](_0x4c121c(0x1ef,0x129),_0x4c121c(0x233,0x252));},0x0);return;}function _0x158636(_0x4ae1ef,_0x46f1e8){return _0x32c5(_0x46f1e8- -0x31e,_0x4ae1ef);}const _0x4f029b=this[_0x158636(0xa,0xb)][_0x158636(-0x124,-0x163)]&&SocketWithoutUpgrade['priorWebsocketSuccess']&&this[_0x158636(0x20,0xc1)][_0x158636(-0x191,-0xac)]('websocket')!==-0x1?_0x158636(-0x1b6,-0x123):this[_0x158636(0x177,0xc1)][0x0];this['readyState']=_0x158636(0x59,0xad);const _0x13f82a=this[_0x158636(-0x9a,-0x6a)](_0x4f029b);_0x13f82a[_0x158636(-0x255,-0x133)](),this[_0x158636(0x11a,0xc0)](_0x13f82a);}[_0xf108a4(0x483,0x53e)](_0x58e896){this['transport']&&this['transport'][_0x388519(0x1d8,0x2be)]();this[_0x388519(0xed,0x1db)]=_0x58e896;function _0x388519(_0x512008,_0x4a396e){return _0x32c5(_0x512008- -0x1be,_0x4a396e);}_0x58e896['on'](_0x388519(0x201,0x2ca),this['_onDrain'][_0x388519(0x76,-0x3d)](this))['on']('packet',this[_0x388519(0x219,0x2f9)][_0x388519(0x76,0xc2)](this))['on'](_0x388519(0x1d9,0x2eb),this['_onError']['bind'](this))['on'](_0x388519(0x214,0x2fe),_0x13e9dd=>this['_onClose'](_0x388519(0xd3,0x1e6),_0x13e9dd));}['onOpen'](){function _0x1f076b(_0x39fe73,_0x3b83c2){return _0x32c5(_0x39fe73-0x16,_0x3b83c2);}this['readyState']='open',SocketWithoutUpgrade[_0x1f076b(0x368,0x2f6)]='websocket'===this[_0x1f076b(0x2c1,0x382)][_0x1f076b(0x404,0x4b2)],this[_0x1f076b(0x2fb,0x316)](_0x1f076b(0x201,0x291)),this[_0x1f076b(0x36a,0x3b0)]();}[_0xf108a4(0x637,0x537)](_0xba5463){function _0x1ce21a(_0x3b6b25,_0x2de676){return _0x32c5(_0x3b6b25-0xa8,_0x2de676);}if('opening'===this['readyState']||_0x1ce21a(0x293,0x196)===this['readyState']||_0x1ce21a(0x412,0x4e4)===this[_0x1ce21a(0x475,0x48a)]){this['emitReserved'](_0x1ce21a(0x283,0x20d),_0xba5463),this['emitReserved'](_0x1ce21a(0x2ff,0x2dd));switch(_0xba5463[_0x1ce21a(0x307,0x3f3)]){case _0x1ce21a(0x293,0x260):this[_0x1ce21a(0x2bc,0x302)](JSON['parse'](_0xba5463[_0x1ce21a(0x357,0x334)]));break;case _0x1ce21a(0x27a,0x208):this[_0x1ce21a(0x305,0x354)](_0x1ce21a(0x48d,0x504)),this[_0x1ce21a(0x38d,0x41d)]('ping'),this['emitReserved'](_0x1ce21a(0x48d,0x512)),this['_resetPingTimeout']();break;case'error':const _0x519636=new Error('server\x20error');_0x519636[_0x1ce21a(0x29f,0x1f8)]=_0xba5463[_0x1ce21a(0x357,0x421)],this['_onError'](_0x519636);break;case'message':this[_0x1ce21a(0x38d,0x2a7)]('data',_0xba5463['data']),this[_0x1ce21a(0x38d,0x296)]('message',_0xba5463['data']);break;}}}[_0xf108a4(0x37e,0x374)](data){this[_0x373588(0x2cd,0x3ea)](_0x373588(0x4b0,0x41f),data),this['id']=data['sid'],this['transport']['query']['sid']=data[_0x373588(0x370,0x3d1)];function _0x373588(_0x3bf3d2,_0xe7cc80){return _0x32c5(_0xe7cc80-0x105,_0x3bf3d2);}this[_0x373588(0x4d2,0x45c)]=data[_0x373588(0x3cc,0x2cd)],this['_pingTimeout']=data[_0x373588(0x34a,0x2ce)],this[_0x373588(0x314,0x2be)]=data[_0x373588(0x1e1,0x2cb)],this[_0x373588(0x5d5,0x4ed)]();if('closed'===this[_0x373588(0x561,0x4d2)])return;this[_0x373588(0x3de,0x47c)]();}[_0xf108a4(0x5cd,0x4d7)](){function _0x2bff36(_0xbbf0c8,_0x34b015){return _0x32c5(_0xbbf0c8-0x26c,_0x34b015);}this['clearTimeoutFn'](this[_0x2bff36(0x478,0x499)]);const _0xb050a0=this[_0x2bff36(0x5c3,0x5f6)]+this['_pingTimeout'];this[_0x2bff36(0x556,0x484)]=Date['now']()+_0xb050a0,this[_0x2bff36(0x478,0x3f1)]=this[_0x2bff36(0x440,0x322)](()=>{function _0x1ee2cb(_0x17e75c,_0x5d336d){return _0x32c5(_0x5d336d- -0x29b,_0x17e75c);}this[_0x1ee2cb(-0x22,-0xcd)](_0x1ee2cb(0x1bc,0x12f));},_0xb050a0),this[_0x2bff36(0x595,0x6ab)][_0x2bff36(0x499,0x465)]&&this['_pingTimeoutTimer']['unref']();}[_0xf108a4(0x47f,0x493)](){this[_0x2306f4(0x430,0x3ef)]['splice'](0x0,this['_prevBufferLen']),this[_0x2306f4(0x2ae,0x1b0)]=0x0;function _0x2306f4(_0x1ac551,_0x564c29){return _0x32c5(_0x1ac551-0xa9,_0x564c29);}0x0===this[_0x2306f4(0x430,0x3c9)]['length']?this[_0x2306f4(0x38e,0x32b)]('drain'):this[_0x2306f4(0x3fd,0x3bc)]();}[_0xf108a4(0x476,0x4b4)](){function _0x4472fc(_0x5ecf91,_0x359dd3){return _0x32c5(_0x359dd3-0x242,_0x5ecf91);}if('closed'!==this[_0x4472fc(0x58e,0x60f)]&&this[_0x4472fc(0x3d1,0x4ed)][_0x4472fc(0x5f8,0x59e)]&&!this['upgrading']&&this['writeBuffer']['length']){const _0xfd5410=this['_getWritablePackets']();this[_0x4472fc(0x45d,0x4ed)][_0x4472fc(0x4d5,0x552)](_0xfd5410),this[_0x4472fc(0x4de,0x447)]=_0xfd5410[_0x4472fc(0x541,0x4d2)],this[_0x4472fc(0x5f3,0x527)]('flush');}}['_getWritablePackets'](){const _0x4ff530=this['_maxPayload']&&this[_0x3090a1(0x4df,0x58f)]['name']==='polling'&&this[_0x3090a1(0x5bb,0x668)]['length']>0x1;if(!_0x4ff530)return this[_0x3090a1(0x5bb,0x5d7)];let _0x560d32=0x1;for(let _0x4c9ec4=0x0;_0x4c9ec4<this['writeBuffer'][_0x3090a1(0x4c4,0x4ec)];_0x4c9ec4++){const data=this['writeBuffer'][_0x4c9ec4][_0x3090a1(0x4e3,0x416)];data&&(_0x560d32+=byteLength(data));if(_0x4c9ec4>0x0&&_0x560d32>this['_maxPayload'])return this['writeBuffer'][_0x3090a1(0x4f5,0x524)](0x0,_0x4c9ec4);_0x560d32+=0x2;}function _0x3090a1(_0x5b0a08,_0x2ed16c){return _0x32c5(_0x5b0a08-0x234,_0x2ed16c);}return this['writeBuffer'];}['_hasPingExpired'](){function _0x36ed97(_0x1c0b9e,_0x4d115b){return _0x32c5(_0x4d115b- -0x354,_0x1c0b9e);}if(!this[_0x36ed97(0x74,-0x6a)])return!![];const _0x228e82=Date['now']()>this['_pingTimeoutTime'];return _0x228e82&&(this[_0x36ed97(-0xbf,-0x6a)]=0x0,nextTick(()=>{function _0x5861ba(_0x1278e1,_0x438f62){return _0x32c5(_0x1278e1-0x1e4,_0x438f62);}this[_0x5861ba(0x3b2,0x3c0)](_0x5861ba(0x5ae,0x5d9));},this['setTimeoutFn'])),_0x228e82;}['write'](_0x43080d,_0x4bfc8c,_0x54ce8c){this['_sendPacket'](_0x27628a(0x3da,0x4ca),_0x43080d,_0x4bfc8c,_0x54ce8c);function _0x27628a(_0x2dfc75,_0x1c0c3d){return _0x32c5(_0x1c0c3d-0x17b,_0x2dfc75);}return this;}['send'](_0x699ba3,_0x4e68af,_0x1b5411){this['_sendPacket'](_0x5b092c(0x30c,0x25b),_0x699ba3,_0x4e68af,_0x1b5411);function _0x5b092c(_0x2d9bdc,_0x4d9f2d){return _0x32c5(_0x2d9bdc- -0x43,_0x4d9f2d);}return this;}[_0xf108a4(0x29f,0x3bd)](_0x2fd7ea,data,_0x3e0e0a,_0x1ee71f){_0x26dfd5(0x4cd,0x582)===typeof data&&(_0x1ee71f=data,data=undefined);'function'===typeof _0x3e0e0a&&(_0x1ee71f=_0x3e0e0a,_0x3e0e0a=null);if(_0x26dfd5(0x6dd,0x5f6)===this['readyState']||_0x26dfd5(0x4f7,0x58f)===this[_0x26dfd5(0x594,0x659)])return;_0x3e0e0a=_0x3e0e0a||{},_0x3e0e0a['compress']=![]!==_0x3e0e0a[_0x26dfd5(0x4ea,0x57b)];const _0x46c9fa={'type':_0x2fd7ea,'data':data,'options':_0x3e0e0a};this[_0x26dfd5(0x4ec,0x571)]('packetCreate',_0x46c9fa),this['writeBuffer'][_0x26dfd5(0x58a,0x503)](_0x46c9fa);function _0x26dfd5(_0x497a07,_0xfe85ba){return _0x32c5(_0xfe85ba-0x28c,_0x497a07);}if(_0x1ee71f)this[_0x26dfd5(0x4f9,0x50f)](_0x26dfd5(0x504,0x5e0),_0x1ee71f);this['flush']();}['close'](){function _0x4838e8(_0x1bb12b,_0x3c9b03){return _0x32c5(_0x3c9b03-0x1c3,_0x1bb12b);}const _0x516c62=()=>{this['_onClose']('forced\x20close'),this['transport']['close']();},_0x210835=()=>{this[_0x37f656(0x137,0x8d)](_0x37f656(0x131,0x72),_0x210835),this[_0x37f656(0x3b,0x8d)](_0x37f656(0x200,0xde),_0x210835);function _0x37f656(_0x5b22a9,_0x12bf07){return _0x32c5(_0x12bf07- -0x17e,_0x5b22a9);}_0x516c62();},_0x19eaf2=()=>{function _0x3f06ae(_0x1a2dcb,_0xe0e752){return _0x32c5(_0x1a2dcb-0x301,_0xe0e752);}this['once'](_0x3f06ae(0x4f1,0x59b),_0x210835),this[_0x3f06ae(0x584,0x5e2)]('upgradeError',_0x210835);};if('opening'===this[_0x4838e8(0x4d4,0x590)]||_0x4838e8(0x462,0x3ae)===this['readyState']){this['readyState']='closing';if(this[_0x4838e8(0x4b0,0x54a)]['length'])this[_0x4838e8(0x3e3,0x446)]('drain',()=>{this['upgrading']?_0x19eaf2():_0x516c62();});else this['upgrading']?_0x19eaf2():_0x516c62();}return this;}['_onError'](_0x105ce2){SocketWithoutUpgrade[_0x571939(0x309,0x1e9)]=![];if(this[_0x571939(0x2e0,0x371)][_0x571939(0x352,0x38f)]&&this['transports']['length']>0x1&&this['readyState']==='opening')return this['transports'][_0x571939(0x1e2,0x2c0)](),this[_0x571939(0x293,0x2ea)]();this[_0x571939(0x29c,0x212)]('error',_0x105ce2);function _0x571939(_0x456015,_0x12c086){return _0x32c5(_0x456015- -0x49,_0x12c086);}this[_0x571939(0x185,0x20d)](_0x571939(0x1dc,0x10b),_0x105ce2);}[_0xf108a4(0x398,0x32e)](_0xf06b97,_0x100268){function _0x418176(_0x5d3091,_0x5cd4b3){return _0x32c5(_0x5d3091-0x3e4,_0x5cd4b3);}if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState']){this[_0x418176(0x5e5,0x567)](this[_0x418176(0x5f0,0x6f8)]),this['transport']['removeAllListeners']('close'),this['transport'][_0x418176(0x7b6,0x694)](),this['transport']['removeAllListeners']();if(withEventListeners){this['_beforeunloadEventListener']&&removeEventListener('beforeunload',this[_0x418176(0x6b1,0x72d)],![]);if(this['_offlineEventListener']){const _0x2a5ab4=OFFLINE_EVENT_LISTENERS['indexOf'](this['_offlineEventListener']);_0x2a5ab4!==-0x1&&OFFLINE_EVENT_LISTENERS['splice'](_0x2a5ab4,0x1);}}this[_0x418176(0x7b1,0x818)]=_0x418176(0x6e7,0x736),this['id']=null,this[_0x418176(0x6c9,0x743)](_0x418176(0x7b6,0x6b5),_0xf06b97,_0x100268),this[_0x418176(0x76b,0x73b)]=[],this['_prevBufferLen']=0x0;}}}SocketWithoutUpgrade[_0xf108a4(0x252,0x35e)]=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments);function _0x1cf743(_0x5af6ab,_0x5a2a30){return _0x32c5(_0x5a2a30-0x25f,_0x5af6ab);}this[_0x1cf743(0x50c,0x5ff)]=[];}['onOpen'](){function _0x15dec8(_0x388c92,_0x499c95){return _0x32c5(_0x499c95-0x31b,_0x388c92);}super[_0x15dec8(0x71b,0x703)]();if(_0x15dec8(0x466,0x506)===this[_0x15dec8(0x660,0x6e8)]&&this[_0x15dec8(0x620,0x644)][_0x15dec8(0x5c8,0x50b)])for(let _0x2d361b=0x0;_0x2d361b<this[_0x15dec8(0x601,0x6bb)][_0x15dec8(0x5bf,0x5ab)];_0x2d361b++){this[_0x15dec8(0x64e,0x6be)](this[_0x15dec8(0x634,0x6bb)][_0x2d361b]);}}[_0xf108a4(0x5d4,0x503)](_0x505443){let _0x33a3d4=this[_0x1885c5(0x5d1,0x59e)](_0x505443),_0x175358=![];SocketWithoutUpgrade['priorWebsocketSuccess']=![];const _0x4173b0=()=>{if(_0x175358)return;function _0x5075fc(_0x4a22ac,_0x8aa22e){return _0x32c5(_0x8aa22e-0x261,_0x4a22ac);}_0x33a3d4['send']([{'type':_0x5075fc(0x381,0x433),'data':'probe'}]),_0x33a3d4[_0x5075fc(0x3c9,0x4e4)](_0x5075fc(0x46d,0x43c),_0x405c66=>{if(_0x175358)return;function _0x1e4cae(_0x2baf70,_0x55c640){return _0x32c5(_0x55c640-0x25d,_0x2baf70);}if('pong'===_0x405c66['type']&&_0x1e4cae(0x4cc,0x556)===_0x405c66[_0x1e4cae(0x564,0x50c)]){this[_0x1e4cae(0x4cf,0x545)]=!![],this[_0x1e4cae(0x550,0x542)](_0x1e4cae(0x5af,0x545),_0x33a3d4);if(!_0x33a3d4)return;SocketWithoutUpgrade[_0x1e4cae(0x4e4,0x5af)]='websocket'===_0x33a3d4['name'],this['transport']['pause'](()=>{if(_0x175358)return;if('closed'===this[_0x3f8550(0x68d,0x792)])return;_0x53d012(),this['setTransport'](_0x33a3d4),_0x33a3d4['send']([{'type':_0x3f8550(0x4b0,0x3af)}]),this[_0x3f8550(0x5a5,0x49a)](_0x3f8550(0x4b0,0x512),_0x33a3d4),_0x33a3d4=null;function _0x3f8550(_0x25d8da,_0x439966){return _0x32c5(_0x25d8da-0x2c0,_0x439966);}this['upgrading']=![],this[_0x3f8550(0x614,0x579)]();});}else{const _0x229145=new Error(_0x1e4cae(0x57c,0x5cf));_0x229145['transport']=_0x33a3d4['name'],this['emitReserved'](_0x1e4cae(0x594,0x4b9),_0x229145);}});};function _0xfe9537(){function _0x2b75db(_0x39732e,_0x2f1024){return _0x32c5(_0x2f1024-0x2cb,_0x39732e);}if(_0x175358)return;_0x175358=!![],_0x53d012(),_0x33a3d4[_0x2b75db(0x5c5,0x69d)](),_0x33a3d4=null;}const _0x542cdc=_0x24c886=>{function _0x26a86c(_0x1e43a5,_0x31a225){return _0x32c5(_0x1e43a5-0x38b,_0x31a225);}const _0x32a797=new Error('probe\x20error:\x20'+_0x24c886);_0x32a797[_0x26a86c(0x636,0x6df)]=_0x33a3d4['name'],_0xfe9537(),this[_0x26a86c(0x670,0x5f9)](_0x26a86c(0x5e7,0x561),_0x32a797);};function _0x5b5b01(){_0x542cdc('transport\x20closed');}function _0x1b20f6(){_0x542cdc('socket\x20closed');}function _0x246752(_0x70d551){_0x33a3d4&&_0x70d551['name']!==_0x33a3d4['name']&&_0xfe9537();}const _0x53d012=()=>{_0x33a3d4['removeListener'](_0x33a255(0x24f,0x1ea),_0x4173b0),_0x33a3d4['removeListener']('error',_0x542cdc);function _0x33a255(_0x254016,_0x4ab92e){return _0x32c5(_0x4ab92e- -0x1,_0x254016);}_0x33a3d4['removeListener']('close',_0x5b5b01),this['off']('close',_0x1b20f6),this['off']('upgrading',_0x246752);};_0x33a3d4['once']('open',_0x4173b0),_0x33a3d4['once']('error',_0x542cdc),_0x33a3d4[_0x1885c5(0x66f,0x56d)](_0x1885c5(0x618,0x6bc),_0x5b5b01);function _0x1885c5(_0x3cad13,_0x14afc2){return _0x32c5(_0x14afc2-0x2ea,_0x3cad13);}this['once'](_0x1885c5(0x711,0x6bc),_0x1b20f6),this['once'](_0x1885c5(0x569,0x5d2),_0x246752),this[_0x1885c5(0x784,0x68a)]['indexOf']('webtransport')!==-0x1&&_0x505443!=='webtransport'?this['setTimeoutFn'](()=>{function _0x2007dc(_0x5952a7,_0x4208e0){return _0x32c5(_0x5952a7-0xff,_0x4208e0);}!_0x175358&&_0x33a3d4[_0x2007dc(0x2ea,0x333)]();},0xc8):_0x33a3d4[_0x1885c5(0x4df,0x4d5)]();}[_0xf108a4(0x2ac,0x374)](data){function _0x9ca1d1(_0x38834b,_0x44efa5){return _0x32c5(_0x38834b- -0xf3,_0x44efa5);}this['_upgrades']=this[_0x9ca1d1(0x192,0xe8)](data[_0x9ca1d1(0x143,0x254)]),super['onHandshake'](data);}[_0xf108a4(0x3d4,0x3e5)](_0x4bcf19){const filteredUpgrades=[];function _0x95cd(_0x240622,_0x5aec0e){return _0x32c5(_0x240622- -0x112,_0x5aec0e);}for(let _0x2d28ee=0x0;_0x2d28ee<_0x4bcf19['length'];_0x2d28ee++){if(~this[_0x95cd(0x2cd,0x224)]['indexOf'](_0x4bcf19[_0x2d28ee]))filteredUpgrades['push'](_0x4bcf19[_0x2d28ee]);}return filteredUpgrades;}}let Socket$1=class Socket extends SocketWithUpgrade{constructor(_0x43bb9c,_0x2015f1={}){function _0x53bfc2(_0x4aff39,_0x260e17){return _0x32c5(_0x4aff39- -0x312,_0x260e17);}const _0x24c1d1=typeof _0x43bb9c===_0x53bfc2(-0x146,-0x78)?_0x43bb9c:_0x2015f1;(!_0x24c1d1[_0x53bfc2(0xcd,0x142)]||_0x24c1d1[_0x53bfc2(0xcd,0x1e0)]&&typeof _0x24c1d1['transports'][0x0]===_0x53bfc2(0x2c,0x124))&&(_0x24c1d1['transports']=(_0x24c1d1[_0x53bfc2(0xcd,0x1b0)]||['polling',_0x53bfc2(-0x117,-0x35),'webtransport'])['map'](_0x332fb6=>transports[_0x332fb6])['filter'](_0x50ffc9=>!!_0x50ffc9)),super(_0x43bb9c,_0x24c1d1);}};function url(_0x24e12b,_0x438628='',_0x22023a){let _0x48cbf1=_0x24e12b;_0x22023a=_0x22023a||typeof location!=='undefined'&&location;if(null==_0x24e12b)_0x24e12b=_0x22023a[_0x3b45c4(0x135,0x11e)]+'//'+_0x22023a[_0x3b45c4(0x1fc,0x1ce)];typeof _0x24e12b==='string'&&('/'===_0x24e12b[_0x3b45c4(0x9b,0xf1)](0x0)&&('/'===_0x24e12b['charAt'](0x1)?_0x24e12b=_0x22023a[_0x3b45c4(0x14a,0x11e)]+_0x24e12b:_0x24e12b=_0x22023a['host']+_0x24e12b),!/^(https?|wss?):\/\//['test'](_0x24e12b)&&(_0x3b45c4(0x272,0x1c0)!==typeof _0x22023a?_0x24e12b=_0x22023a['protocol']+'//'+_0x24e12b:_0x24e12b='https://'+_0x24e12b),_0x48cbf1=parse(_0x24e12b));function _0x3b45c4(_0x1a9d81,_0x20dabf){return _0x32c5(_0x20dabf- -0xe0,_0x1a9d81);}if(!_0x48cbf1['port']){if(/^(http|ws)$/[_0x3b45c4(0x385,0x2d1)](_0x48cbf1['protocol']))_0x48cbf1['port']='80';else/^(http|ws)s$/['test'](_0x48cbf1[_0x3b45c4(0xdf,0x11e)])&&(_0x48cbf1['port']='443');}_0x48cbf1[_0x3b45c4(0x2f1,0x26c)]=_0x48cbf1[_0x3b45c4(0x33c,0x26c)]||'/';const _0x447aba=_0x48cbf1['host']['indexOf'](':')!==-0x1,_0x5656e6=_0x447aba?'['+_0x48cbf1[_0x3b45c4(0xe7,0x1ce)]+']':_0x48cbf1['host'];return _0x48cbf1['id']=_0x48cbf1['protocol']+_0x3b45c4(0x329,0x278)+_0x5656e6+':'+_0x48cbf1['port']+_0x438628,_0x48cbf1['href']=_0x48cbf1[_0x3b45c4(0x117,0x11e)]+'://'+_0x5656e6+(_0x22023a&&_0x22023a['port']===_0x48cbf1['port']?'':':'+_0x48cbf1['port']),_0x48cbf1;}const withNativeArrayBuffer=typeof ArrayBuffer===_0xf108a4(0x507,0x456),isView=_0xa21457=>{function _0x5d1465(_0x36a432,_0x2e3137){return _0x32c5(_0x36a432-0x3c,_0x2e3137);}return typeof ArrayBuffer[_0x5d1465(0x3b0,0x34a)]==='function'?ArrayBuffer[_0x5d1465(0x3b0,0x344)](_0xa21457):_0xa21457[_0x5d1465(0x3f8,0x34e)]instanceof ArrayBuffer;},toString=Object['prototype'][_0xf108a4(0x47f,0x3df)],withNativeBlob=typeof Blob===_0xf108a4(0x385,0x456)||typeof Blob!=='undefined'&&toString['call'](Blob)==='[object\x20BlobConstructor]',withNativeFile=typeof File===_0xf108a4(0x44c,0x456)||typeof File!==_0xf108a4(0x3ee,0x400)&&toString[_0xf108a4(0x5a6,0x48a)](File)==='[object\x20FileConstructor]';function isBinary(_0x4e5ff0){return withNativeArrayBuffer&&(_0x4e5ff0 instanceof ArrayBuffer||isView(_0x4e5ff0))||withNativeBlob&&_0x4e5ff0 instanceof Blob||withNativeFile&&_0x4e5ff0 instanceof File;}function hasBinary(_0x26c565,toJSON){if(!_0x26c565||typeof _0x26c565!=='object')return![];if(Array[_0x36c52b(-0x67,0x45)](_0x26c565)){for(let _0x1ea97c=0x0,_0x4d94e9=_0x26c565[_0x36c52b(-0x11f,-0x12)];_0x1ea97c<_0x4d94e9;_0x1ea97c++){if(hasBinary(_0x26c565[_0x1ea97c]))return!![];}return![];}if(isBinary(_0x26c565))return!![];if(_0x26c565[_0x36c52b(-0x19e,-0x21e)]&&typeof _0x26c565[_0x36c52b(-0x19e,-0x158)]==='function'&&arguments[_0x36c52b(-0x11f,-0xca)]===0x1)return hasBinary(_0x26c565['toJSON'](),!![]);function _0x36c52b(_0x23d631,_0x389272){return _0x32c5(_0x23d631- -0x3af,_0x389272);}for(const _0x1c40aa in _0x26c565){if(Object['prototype']['hasOwnProperty'][_0x36c52b(-0x85,-0xd7)](_0x26c565,_0x1c40aa)&&hasBinary(_0x26c565[_0x1c40aa]))return!![];}return![];}function deconstructPacket(_0xb998cf){const _0x59affd=[];function _0x105ac5(_0x852be7,_0x3403a0){return _0x32c5(_0x852be7-0x335,_0x3403a0);}const _0x2fb500=_0xb998cf['data'],_0x1355b3=_0xb998cf;return _0x1355b3[_0x105ac5(0x5e4,0x5f4)]=_deconstructPacket(_0x2fb500,_0x59affd),_0x1355b3['attachments']=_0x59affd['length'],{'packet':_0x1355b3,'buffers':_0x59affd};}function _deconstructPacket(data,_0x2aa8cd){if(!data)return data;if(isBinary(data)){const _0x354366={'_placeholder':!![],'num':_0x2aa8cd['length']};return _0x2aa8cd[_0x5c9a23(-0xe,-0xf5)](data),_0x354366;}else{if(Array['isArray'](data)){const _0x422117=new Array(data[_0x5c9a23(-0x9d,-0xdc)]);for(let _0x28129d=0x0;_0x28129d<data[_0x5c9a23(-0x15d,-0xdc)];_0x28129d++){_0x422117[_0x28129d]=_deconstructPacket(data[_0x28129d],_0x2aa8cd);}return _0x422117;}else{if(typeof data===_0x5c9a23(-0x11c,-0x1a0)&&!(data instanceof Date)){const _0x475b7b={};for(const _0x4749c3 in data){Object[_0x5c9a23(-0x118,-0x1b)][_0x5c9a23(-0x74,-0x95)][_0x5c9a23(-0x73,-0x42)](data,_0x4749c3)&&(_0x475b7b[_0x4749c3]=_deconstructPacket(data[_0x4749c3],_0x2aa8cd));}return _0x475b7b;}}}function _0x5c9a23(_0x45673f,_0x3a77cd){return _0x32c5(_0x3a77cd- -0x36c,_0x45673f);}return data;}function reconstructPacket(_0x40a2fb,_0x44105b){_0x40a2fb['data']=_reconstructPacket(_0x40a2fb[_0x98d61f(0x60c,0x59e)],_0x44105b),delete _0x40a2fb[_0x98d61f(0x6ae,0x672)];function _0x98d61f(_0x553ecf,_0x16bf99){return _0x32c5(_0x16bf99-0x2ef,_0x553ecf);}return _0x40a2fb;}function _reconstructPacket(data,_0x317d3b){function _0x3517f5(_0xdc3104,_0x2097bf){return _0x32c5(_0xdc3104- -0x2c5,_0x2097bf);}if(!data)return data;if(data&&data['_placeholder']===!![]){const isIndexValid=typeof data[_0x3517f5(-0x9,-0x11b)]===_0x3517f5(-0xa7,-0xdd)&&data['num']>=0x0&&data[_0x3517f5(-0x9,0xe1)]<_0x317d3b['length'];if(isIndexValid)return _0x317d3b[data[_0x3517f5(-0x9,0x69)]];else throw new Error('illegal\x20attachments');}else{if(Array[_0x3517f5(0x83,-0x5d)](data))for(let _0x45ae07=0x0;_0x45ae07<data[_0x3517f5(-0x35,0x54)];_0x45ae07++){data[_0x45ae07]=_reconstructPacket(data[_0x45ae07],_0x317d3b);}else{if(typeof data==='object')for(const _0x262d22 in data){Object['prototype'][_0x3517f5(0x12,-0xd9)]['call'](data,_0x262d22)&&(data[_0x262d22]=_reconstructPacket(data[_0x262d22],_0x317d3b));}}}return data;}const RESERVED_EVENTS$1=[_0xf108a4(0x4f2,0x4fe),'connect_error',_0xf108a4(0x49c,0x4f1),'disconnecting',_0xf108a4(0x476,0x43e),_0xf108a4(0x5cd,0x522)],protocol=0x5;function _0x32c5(_0x197439,_0x25d302){const _0x46ca09=_0x46ca();return _0x32c5=function(_0x32c54c,_0x46146a){_0x32c54c=_0x32c54c-0x1b6;let _0x4906e1=_0x46ca09[_0x32c54c];if(_0x32c5['AzhNBk']===undefined){var _0x4cb858=function(_0x2ca273){const _0x7dfe18='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x521395='',_0x46c1b8='';for(let _0x4ab4fb=0x0,_0x436346,_0x1fb784,_0x507bad=0x0;_0x1fb784=_0x2ca273['charAt'](_0x507bad++);~_0x1fb784&&(_0x436346=_0x4ab4fb%0x4?_0x436346*0x40+_0x1fb784:_0x1fb784,_0x4ab4fb++%0x4)?_0x521395+=String['fromCharCode'](0xff&_0x436346>>(-0x2*_0x4ab4fb&0x6)):0x0){_0x1fb784=_0x7dfe18['indexOf'](_0x1fb784);}for(let _0x30f11d=0x0,_0x1504fd=_0x521395['length'];_0x30f11d<_0x1504fd;_0x30f11d++){_0x46c1b8+='%'+('00'+_0x521395['charCodeAt'](_0x30f11d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46c1b8);};_0x32c5['InZErd']=_0x4cb858,_0x197439=arguments,_0x32c5['AzhNBk']=!![];}const _0x347c20=_0x46ca09[0x0],_0xd1fb46=_0x32c54c+_0x347c20,_0x1a0e1d=_0x197439[_0xd1fb46];return!_0x1a0e1d?(_0x4906e1=_0x32c5['InZErd'](_0x4906e1),_0x197439[_0xd1fb46]=_0x4906e1):_0x4906e1=_0x1a0e1d,_0x4906e1;},_0x32c5(_0x197439,_0x25d302);}var PacketType;(function(_0x1a2e7f){_0x1a2e7f[_0x1a2e7f['CONNECT']=0x0]=_0x5084dc(0x641,0x5f7),_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x612,0x6f6)]=0x1]=_0x5084dc(0x612,0x4f7),_0x1a2e7f[_0x1a2e7f['EVENT']=0x2]='EVENT';function _0x5084dc(_0x1badea,_0x39bcf0){return _0x32c5(_0x1badea-0x28a,_0x39bcf0);}_0x1a2e7f[_0x1a2e7f['ACK']=0x3]='ACK',_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x63f,0x72d)]=0x4]='CONNECT_ERROR',_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x4fe,0x4a9)]=0x5]=_0x5084dc(0x4fe,0x412),_0x1a2e7f[_0x1a2e7f[_0x5084dc(0x531,0x483)]=0x6]='BINARY_ACK';}(PacketType||(PacketType={})));class Encoder{constructor(_0x29d599){this['replacer']=_0x29d599;}['encode'](_0x59ca97){function _0x2be5f1(_0x5e9648,_0x233b0f){return _0x32c5(_0x233b0f-0x33d,_0x5e9648);}if(_0x59ca97['type']===PacketType[_0x2be5f1(0x5ff,0x628)]||_0x59ca97[_0x2be5f1(0x49b,0x59c)]===PacketType['ACK']){if(hasBinary(_0x59ca97))return this['encodeAsBinary']({'type':_0x59ca97[_0x2be5f1(0x669,0x59c)]===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x59ca97['nsp'],'data':_0x59ca97['data'],'id':_0x59ca97['id']});}return[this['encodeAsString'](_0x59ca97)];}[_0xf108a4(0x540,0x499)](_0x3be000){let _0x496891=''+_0x3be000['type'];(_0x3be000['type']===PacketType['BINARY_EVENT']||_0x3be000[_0x750972(0x98,-0x70)]===PacketType['BINARY_ACK'])&&(_0x496891+=_0x3be000['attachments']+'-');_0x3be000['nsp']&&'/'!==_0x3be000[_0x750972(-0xf8,-0x2b)]&&(_0x496891+=_0x3be000[_0x750972(-0x51,-0x2b)]+',');null!=_0x3be000['id']&&(_0x496891+=_0x3be000['id']);null!=_0x3be000[_0x750972(0xc0,-0x20)]&&(_0x496891+=JSON['stringify'](_0x3be000['data'],this['replacer']));function _0x750972(_0x285a7a,_0x547065){return _0x32c5(_0x547065- -0x2cf,_0x285a7a);}return _0x496891;}[_0xf108a4(0x34a,0x3d1)](_0x28b985){const _0x27682f=deconstructPacket(_0x28b985),_0x26ba34=this[_0x16c626(0x3a,0x116)](_0x27682f[_0x16c626(-0x124,-0x9c)]),_0x188932=_0x27682f['buffers'];_0x188932[_0x16c626(-0x34,-0x150)](_0x26ba34);function _0x16c626(_0x23674b,_0x2ef01c){return _0x32c5(_0x23674b- -0x2ff,_0x2ef01c);}return _0x188932;}}function isObject(_0x44c352){function _0xc877b9(_0x21f07f,_0x25878a){return _0x32c5(_0x25878a- -0x16e,_0x21f07f);}return Object[_0xc877b9(0x171,0x1e3)][_0xc877b9(0x102,0x111)][_0xc877b9(0x164,0x1bc)](_0x44c352)===_0xc877b9(-0x57,0x85);}class Decoder extends Emitter{constructor(_0x257446){super();function _0x4445fa(_0x5a01e1,_0x426fa9){return _0x32c5(_0x426fa9-0x14f,_0x5a01e1);}this[_0x4445fa(0x45a,0x3cb)]=_0x257446;}['add'](_0x309746){let _0xc9b855;function _0x28aab6(_0x515cb4,_0x125f53){return _0x32c5(_0x515cb4- -0x2cc,_0x125f53);}if(typeof _0x309746==='string'){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0xc9b855=this[_0x28aab6(0x35,0x5)](_0x309746);const isBinaryEvent=_0xc9b855[_0x28aab6(-0x6d,-0x96)]===PacketType[_0x28aab6(-0x58,-0x12c)];isBinaryEvent||_0xc9b855['type']===PacketType[_0x28aab6(-0x25,-0xbe)]?(_0xc9b855[_0x28aab6(-0x6d,-0xde)]=isBinaryEvent?PacketType['EVENT']:PacketType[_0x28aab6(0xf2,0x147)],this['reconstructor']=new BinaryReconstructor(_0xc9b855),_0xc9b855['attachments']===0x0&&super[_0x28aab6(0x19,0xb5)](_0x28aab6(-0x114,-0xb0),_0xc9b855)):super[_0x28aab6(0x19,-0xa5)]('decoded',_0xc9b855);}else{if(isBinary(_0x309746)||_0x309746[_0x28aab6(0x57,-0x2f)]){if(!this[_0x28aab6(0x7,0x87)])throw new Error(_0x28aab6(0x58,-0x48));else _0xc9b855=this['reconstructor']['takeBinaryData'](_0x309746),_0xc9b855&&(this['reconstructor']=null,super[_0x28aab6(0x19,0x7f)]('decoded',_0xc9b855));}else throw new Error('Unknown\x20type:\x20'+_0x309746);}}[_0xf108a4(0x43d,0x461)](_0x23422b){let _0x42e7f0=0x0;function _0xe75056(_0x6359e3,_0x2d419f){return _0x32c5(_0x6359e3- -0x333,_0x2d419f);}const _0x20c5b9={'type':Number(_0x23422b[_0xe75056(-0x162,-0xf6)](0x0))};if(PacketType[_0x20c5b9[_0xe75056(-0xd4,-0x15d)]]===undefined)throw new Error(_0xe75056(-0x4d,-0xa5)+_0x20c5b9['type']);if(_0x20c5b9[_0xe75056(-0xd4,-0x1d)]===PacketType[_0xe75056(-0xbf,-0x181)]||_0x20c5b9[_0xe75056(-0xd4,0x7)]===PacketType[_0xe75056(-0x8c,-0x170)]){const _0x57c94f=_0x42e7f0+0x1;while(_0x23422b[_0xe75056(-0x162,-0x223)](++_0x42e7f0)!=='-'&&_0x42e7f0!=_0x23422b['length']){}const _0xf24a3=_0x23422b[_0xe75056(0x5a,0xf7)](_0x57c94f,_0x42e7f0);if(_0xf24a3!=Number(_0xf24a3)||_0x23422b['charAt'](_0x42e7f0)!=='-')throw new Error('Illegal\x20attachments');_0x20c5b9['attachments']=Number(_0xf24a3);}if('/'===_0x23422b[_0xe75056(-0x162,-0x103)](_0x42e7f0+0x1)){const _0x43a6e4=_0x42e7f0+0x1;while(++_0x42e7f0){const _0x517a5c=_0x23422b[_0xe75056(-0x162,-0x68)](_0x42e7f0);if(','===_0x517a5c)break;if(_0x42e7f0===_0x23422b['length'])break;}_0x20c5b9['nsp']=_0x23422b[_0xe75056(0x5a,-0x70)](_0x43a6e4,_0x42e7f0);}else _0x20c5b9[_0xe75056(-0x8f,-0xac)]='/';const _0x8ec1d7=_0x23422b['charAt'](_0x42e7f0+0x1);if(''!==_0x8ec1d7&&Number(_0x8ec1d7)==_0x8ec1d7){const _0x151eaa=_0x42e7f0+0x1;while(++_0x42e7f0){const _0x5738a9=_0x23422b['charAt'](_0x42e7f0);if(null==_0x5738a9||Number(_0x5738a9)!=_0x5738a9){--_0x42e7f0;break;}if(_0x42e7f0===_0x23422b[_0xe75056(-0xa3,-0xac)])break;}_0x20c5b9['id']=Number(_0x23422b['substring'](_0x151eaa,_0x42e7f0+0x1));}if(_0x23422b['charAt'](++_0x42e7f0)){const _0x599099=this['tryParse'](_0x23422b['substr'](_0x42e7f0));if(Decoder['isPayloadValid'](_0x20c5b9[_0xe75056(-0xd4,-0x192)],_0x599099))_0x20c5b9['data']=_0x599099;else throw new Error('invalid payload');}return _0x20c5b9;}[_0xf108a4(0x3b6,0x4c4)](_0x42357b){try{return JSON['parse'](_0x42357b,this['reviver']);}catch(_0x5b98a9){return![];}}static[_0xf108a4(0x65b,0x53a)](_0x36d257,_0x5a207a){function _0x497972(_0x245eee,_0x375115){return _0x32c5(_0x375115-0x33b,_0x245eee);}switch(_0x36d257){case PacketType['CONNECT']:return isObject(_0x5a207a);case PacketType[_0x497972(0x5a9,0x6c3)]:return _0x5a207a===undefined;case PacketType[_0x497972(0x5d7,0x6f0)]:return typeof _0x5a207a===_0x497972(0x64d,0x679)||isObject(_0x5a207a);case PacketType['EVENT']:case PacketType[_0x497972(0x5f7,0x5af)]:return Array['isArray'](_0x5a207a)&&(typeof _0x5a207a[0x0]==='number'||typeof _0x5a207a[0x0]==='string'&&RESERVED_EVENTS$1[_0x497972(0x504,0x5ad)](_0x5a207a[0x0])===-0x1);case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x5a207a);}}[_0xf108a4(0x289,0x3a5)](){function _0x3275fb(_0x4546d4,_0x7db62f){return _0x32c5(_0x4546d4- -0x39c,_0x7db62f);}this[_0x3275fb(-0xc9,-0x7f)]&&(this['reconstructor'][_0x3275fb(-0x6c,-0xd5)](),this['reconstructor']=null);}}function _0xf108a4(_0x1d3356,_0x44fe72){return _0x32c5(_0x44fe72-0x160,_0x1d3356);}class BinaryReconstructor{constructor(_0x2c76f5){this[_0x4fc02a(0x25c,0x21d)]=_0x2c76f5,this[_0x4fc02a(0x2f4,0x204)]=[];function _0x4fc02a(_0x1d857f,_0x32289c){return _0x32c5(_0x1d857f-0x81,_0x32289c);}this[_0x4fc02a(0x2d2,0x1e5)]=_0x2c76f5;}[_0xf108a4(0x644,0x550)](binData){this['buffers'][_0x141b23(-0x29,-0x115)](binData);if(this['buffers']['length']===this['reconPack']['attachments']){const _0x50221f=reconstructPacket(this[_0x141b23(-0x4f,0x70)],this['buffers']);return this['finishedReconstruction'](),_0x50221f;}function _0x141b23(_0x329b7e,_0x340a9c){return _0x32c5(_0x329b7e- -0x2a0,_0x340a9c);}return null;}[_0xf108a4(0x426,0x490)](){function _0x2d3c75(_0xb8e4fd,_0x3970ff){return _0x32c5(_0x3970ff- -0x2d9,_0xb8e4fd);}this['reconPack']=null,this[_0x2d3c75(-0xb8,-0x66)]=[];}}var parser=Object[_0xf108a4(0x22f,0x333)]({'__proto__':null,'Decoder':Decoder,'Encoder':Encoder,get 'PacketType'(){return PacketType;},'protocol':protocol});function on(_0x3107c4,_0x2f6f14,_0x498ffe){return _0x3107c4['on'](_0x2f6f14,_0x498ffe),function _0xbf3b8b(){_0x3107c4['off'](_0x2f6f14,_0x498ffe);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x29f97b,_0x5c1c3c,_0x1c8c9d){super(),this[_0x10690d(-0x1df,-0x24f)]=![],this['recovered']=![],this[_0x10690d(0x2c,-0x1c)]=[],this['sendBuffer']=[],this[_0x10690d(-0x133,-0xff)]=[],this[_0x10690d(-0xe9,-0x2d)]=0x0,this['ids']=0x0;function _0x10690d(_0x2b3421,_0x3db94a){return _0x32c5(_0x2b3421- -0x3c9,_0x3db94a);}this[_0x10690d(0x20,-0x7)]={},this['flags']={},this['io']=_0x29f97b,this['nsp']=_0x5c1c3c;_0x1c8c9d&&_0x1c8c9d[_0x10690d(-0x17b,-0x16d)]&&(this['auth']=_0x1c8c9d['auth']);this[_0x10690d(-0x1e2,-0x1ec)]=Object['assign']({},_0x1c8c9d);if(this['io']['_autoConnect'])this[_0x10690d(-0x1de,-0x114)]();}get['disconnected'](){return!this['connected'];}[_0xf108a4(0x53e,0x425)](){if(this[_0x15da0b(0x71b,0x742)])return;const _0x4c6408=this['io'];function _0x15da0b(_0x459180,_0x56eccf){return _0x32c5(_0x56eccf-0x3e3,_0x459180);}this[_0x15da0b(0x825,0x742)]=[on(_0x4c6408,'open',this[_0x15da0b(0x4fc,0x5e9)][_0x15da0b(0x502,0x617)](this)),on(_0x4c6408,_0x15da0b(0x63c,0x5be),this['onpacket'][_0x15da0b(0x4fc,0x617)](this)),on(_0x4c6408,_0x15da0b(0x74b,0x77a),this['onerror']['bind'](this)),on(_0x4c6408,_0x15da0b(0x6c6,0x7b5),this[_0x15da0b(0x669,0x63c)][_0x15da0b(0x530,0x617)](this))];}get['active'](){function _0x5a3b2a(_0x3cef1a,_0x4e04cf){return _0x32c5(_0x4e04cf- -0x159,_0x3cef1a);}return!!this[_0x5a3b2a(0x1ad,0x206)];}['connect'](){if(this[_0x243790(0x187,0x10d)])return this;this['subEvents']();if(!this['io'][_0x243790(0x369,0x35e)])this['io'][_0x243790(0x188,0x123)]();function _0x243790(_0x5be867,_0x4ae2a9){return _0x32c5(_0x5be867- -0x63,_0x4ae2a9);}if(_0x243790(0x188,0xd6)===this['io'][_0x243790(0x33c,0x357)])this[_0x243790(0x1a3,0x273)]();return this;}[_0xf108a4(0x361,0x34b)](){function _0x4ffcfe(_0x1729c1,_0x550544){return _0x32c5(_0x1729c1-0x263,_0x550544);}return this[_0x4ffcfe(0x601,0x521)]();}['send'](..._0x137cf5){function _0x53cf80(_0x39845c,_0x139060){return _0x32c5(_0x39845c- -0x38c,_0x139060);}return _0x137cf5[_0x53cf80(-0xc1,-0x37)](_0x53cf80(-0x3d,0x24)),this[_0x53cf80(-0x92,-0x19b)]['apply'](this,_0x137cf5),this;}['emit'](_0x3908d5,..._0x504acf){var _0x5596aa,_0x308142,_0x5ac518;function _0x453c09(_0x13d728,_0x8fe433){return _0x32c5(_0x8fe433- -0x8,_0x13d728);}if(RESERVED_EVENTS[_0x453c09(0x38d,0x2cf)](_0x3908d5))throw new Error('\x22'+_0x3908d5[_0x453c09(0x261,0x277)]()+_0x453c09(0x3a6,0x3b1));_0x504acf[_0x453c09(0x3e6,0x2c3)](_0x3908d5);if(this['_opts']['retries']&&!this['flags'][_0x453c09(0x48a,0x3c8)]&&!this['flags']['volatile'])return this['_addToQueue'](_0x504acf),this;const _0x53b5ea={'type':PacketType[_0x453c09(0x29f,0x2e3)],'data':_0x504acf};_0x53b5ea[_0x453c09(0x360,0x3d4)]={},_0x53b5ea[_0x453c09(0x2b5,0x3d4)]['compress']=this[_0x453c09(0x2da,0x315)][_0x453c09(0x302,0x2e7)]!==![];if('function'===typeof _0x504acf[_0x504acf[_0x453c09(0x291,0x288)]-0x1]){const _0x3ae5aa=this['ids']++,_0x2ca4d8=_0x504acf['pop']();this['_registerAckCallback'](_0x3ae5aa,_0x2ca4d8),_0x53b5ea['id']=_0x3ae5aa;}const isTransportWritable=(_0x308142=(_0x5596aa=this['io']['engine'])===null||_0x5596aa===void 0x0?void 0x0:_0x5596aa[_0x453c09(0x389,0x2a3)])===null||_0x308142===void 0x0?void 0x0:_0x308142[_0x453c09(0x3b4,0x354)],isConnected=this['connected']&&!((_0x5ac518=this['io'][_0x453c09(0x2bb,0x375)])===null||_0x5ac518===void 0x0?void 0x0:_0x5ac518['_hasPingExpired']()),discardPacket=this[_0x453c09(0x3d1,0x315)][_0x453c09(0x34d,0x282)]&&!isTransportWritable;if(discardPacket);else isConnected?(this[_0x453c09(0xb0,0x1af)](_0x53b5ea),this[_0x453c09(0x234,0x1d3)](_0x53b5ea)):this['sendBuffer']['push'](_0x53b5ea);return this['flags']={},this;}['_registerAckCallback'](_0x3f368c,_0x41cbb6){var _0x5e3d61;function _0x150074(_0x3d95f3,_0x1c3cda){return _0x32c5(_0x3d95f3- -0x148,_0x1c3cda);}const _0x3c35b6=(_0x5e3d61=this[_0x150074(0x1d5,0x296)][_0x150074(0x1ab,0x200)])!==null&&_0x5e3d61!==void 0x0?_0x5e3d61:this[_0x150074(0x9f,0x101)][_0x150074(0x7f,0x16a)];if(_0x3c35b6===undefined){this['acks'][_0x3f368c]=_0x41cbb6;return;}const _0x9ff92f=this['io']['setTimeoutFn'](()=>{delete this[_0x337348(0x746,0x7bf)][_0x3f368c];for(let _0x3d5cbb=0x0;_0x3d5cbb<this['sendBuffer'][_0x337348(0x5ed,0x6b3)];_0x3d5cbb++){this['sendBuffer'][_0x3d5cbb]['id']===_0x3f368c&&this['sendBuffer'][_0x337348(0x5c4,0x4f8)](_0x3d5cbb,0x1);}function _0x337348(_0xc95c67,_0x396349){return _0x32c5(_0xc95c67-0x35d,_0x396349);}_0x41cbb6['call'](this,new Error(_0x337348(0x5b3,0x5d9)));},_0x3c35b6),_0x40be17=(..._0x5da262)=>{function _0xb8ec31(_0x523a57,_0xebe9a8){return _0x32c5(_0xebe9a8- -0x120,_0x523a57);}this['io'][_0xb8ec31(0x89,0xe1)](_0x9ff92f),_0x41cbb6[_0xb8ec31(0x1a3,0x284)](this,_0x5da262);};_0x40be17[_0x150074(0x1f4,0x25d)]=!![],this['acks'][_0x3f368c]=_0x40be17;}[_0xf108a4(0x56b,0x536)](_0x59cfb7,..._0x524746){return new Promise((_0x2bb428,_0x98ce9d)=>{const _0x5726d5=(_0x50d96f,_0x50bdcc)=>{return _0x50d96f?_0x98ce9d(_0x50d96f):_0x2bb428(_0x50bdcc);};function _0x25f423(_0x2d5d59,_0x6579e6){return _0x32c5(_0x2d5d59-0x2ab,_0x6579e6);}_0x5726d5[_0x25f423(0x5e7,0x56d)]=!![],_0x524746[_0x25f423(0x522,0x535)](_0x5726d5),this['emit'](_0x59cfb7,..._0x524746);});}['_addToQueue'](_0x1a0bd8){let _0xfe5f77;typeof _0x1a0bd8[_0x1a0bd8[_0x5b6afa(0x4db,0x5f9)]-0x1]===_0x5b6afa(0x54d,0x65f)&&(_0xfe5f77=_0x1a0bd8['pop']());const _0x756ef9={'id':this['_queueSeq']++,'tryCount':0x0,'pending':![],'args':_0x1a0bd8,'flags':Object['assign']({'fromQueue':!![]},this['flags'])};_0x1a0bd8['push']((_0x2d6d98,...responseArgs)=>{function _0x3683df(_0x15c069,_0x4f7be8){return _0x32c5(_0x4f7be8-0xf7,_0x15c069);}if(_0x756ef9!==this[_0x3683df(0x420,0x38d)][0x0])return;const _0x8d00ef=_0x2d6d98!==null;return _0x8d00ef?_0x756ef9['tryCount']>this['_opts']['retries']&&(this['_queue'][_0x3683df(0x37e,0x322)](),_0xfe5f77&&_0xfe5f77(_0x2d6d98)):(this[_0x3683df(0x3c7,0x38d)]['shift'](),_0xfe5f77&&_0xfe5f77(null,...responseArgs)),_0x756ef9[_0x3683df(0x5e1,0x4e2)]=![],this['_drainQueue']();}),this[_0x5b6afa(0x50c,0x5ff)][_0x5b6afa(0x650,0x5e0)](_0x756ef9);function _0x5b6afa(_0x1a6e35,_0x40697f){return _0x32c5(_0x40697f-0x369,_0x1a6e35);}this[_0x5b6afa(0x7d3,0x6e5)]();}['_drainQueue'](_0x15964d=![]){if(!this[_0x296d11(0x16e,0x14a)]||this[_0x296d11(0x1d9,0x1f6)][_0x296d11(0x1e4,0x1f0)]===0x0)return;const _0x5c64d0=this[_0x296d11(0xf6,0x1f6)][0x0];if(_0x5c64d0['pending']&&!_0x15964d)return;function _0x296d11(_0x2705a3,_0x35cc2c){return _0x32c5(_0x35cc2c- -0xa0,_0x2705a3);}_0x5c64d0[_0x296d11(0x37e,0x34b)]=!![],_0x5c64d0[_0x296d11(0x2e8,0x2d6)]++,this[_0x296d11(0x2da,0x27d)]=_0x5c64d0['flags'],this['emit']['apply'](this,_0x5c64d0['args']);}['packet'](_0x812a24){_0x812a24[_0x1d3883(0x1c4,0x22e)]=this[_0x1d3883(0x17a,0x22e)];function _0x1d3883(_0x1d60b0,_0x2af7bf){return _0x32c5(_0x2af7bf- -0x76,_0x1d60b0);}this['io']['_packet'](_0x812a24);}[_0xf108a4(0x479,0x366)](){function _0x2df451(_0x42feca,_0x4e6513){return _0x32c5(_0x42feca-0x8c,_0x4e6513);}typeof this['auth']=='function'?this[_0x2df451(0x2da,0x3bb)](data=>{this['_sendConnectPacket'](data);}):this['_sendConnectPacket'](this[_0x2df451(0x2da,0x1fc)]);}[_0xf108a4(0x5f2,0x508)](data){function _0x162c8c(_0xaaf597,_0x1a76f5){return _0x32c5(_0x1a76f5- -0x47,_0xaaf597);}this[_0x162c8c(0x200,0x194)]({'type':PacketType['CONNECT'],'data':this[_0x162c8c(0x292,0x38e)]?Object['assign']({'pid':this[_0x162c8c(0x388,0x38e)],'offset':this[_0x162c8c(0x2c5,0x282)]},data):data});}['onerror'](_0x1f88af){function _0x49ee42(_0x3c8cdf,_0x4fbd55){return _0x32c5(_0x4fbd55-0xe3,_0x3c8cdf);}!this[_0x49ee42(0x2c2,0x2cd)]&&this['emitReserved']('connect_error',_0x1f88af);}['onclose'](_0x2bcb97,_0x4b5470){this[_0x37c7f5(0x71,-0x4c)]=![],delete this['id'];function _0x37c7f5(_0x3bd930,_0x2d221d){return _0x32c5(_0x3bd930- -0x179,_0x2d221d);}this[_0x37c7f5(0x16c,0x1ad)](_0x37c7f5(0x218,0x2a7),_0x2bcb97,_0x4b5470),this['_clearAcks']();}['_clearAcks'](){function _0x25d18b(_0x2a3d4e,_0x1bf7f4){return _0x32c5(_0x1bf7f4-0x2ae,_0x2a3d4e);}Object['keys'](this['acks'])[_0x25d18b(0x4fa,0x534)](_0x281728=>{const isBuffered=this['sendBuffer'][_0x23f589(0xf3,0x120)](_0x317b9b=>String(_0x317b9b['id'])===_0x281728);function _0x23f589(_0x1214d4,_0x12db5b){return _0x32c5(_0x12db5b- -0x1dc,_0x1214d4);}if(!isBuffered){const _0x3e51bb=this['acks'][_0x281728];delete this[_0x23f589(0x2c5,0x20d)][_0x281728],_0x3e51bb[_0x23f589(0x1f0,0x160)]&&_0x3e51bb['call'](this,new Error(_0x23f589(0xeb,0xa2)));}});}[_0xf108a4(0x534,0x4be)](_0x1d3d5c){function _0x527a7c(_0x3e4887,_0x4670c2){return _0x32c5(_0x4670c2-0x1f2,_0x3e4887);}const _0x190f90=_0x1d3d5c[_0x527a7c(0x3e5,0x496)]===this['nsp'];if(!_0x190f90)return;switch(_0x1d3d5c[_0x527a7c(0x34d,0x451)]){case PacketType[_0x527a7c(0x4b1,0x5a9)]:_0x1d3d5c['data']&&_0x1d3d5c['data'][_0x527a7c(0x5d4,0x4be)]?this['onconnect'](_0x1d3d5c[_0x527a7c(0x4d9,0x4a1)]['sid'],_0x1d3d5c['data'][_0x527a7c(0x585,0x48a)]):this[_0x527a7c(0x42e,0x4d7)]('connect_error',new Error('It\x20seems\x20you\x20are\x20trying\x20to\x20reach\x20a\x20Socket.IO\x20server\x20in\x20v2.x\x20with\x20a\x20v3.x\x20client,\x20but\x20they\x20are\x20not\x20compatible\x20(more\x20information\x20here:\x20https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)'));break;case PacketType['EVENT']:case PacketType['BINARY_EVENT']:this['onevent'](_0x1d3d5c);break;case PacketType[_0x527a7c(0x636,0x5b0)]:case PacketType[_0x527a7c(0x3ba,0x499)]:this['onack'](_0x1d3d5c);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this[_0x527a7c(0x500,0x437)]();const _0x1a004f=new Error(_0x1d3d5c['data'][_0x527a7c(0x4f8,0x541)]);_0x1a004f['data']=_0x1d3d5c['data']['data'],this['emitReserved'](_0x527a7c(0x623,0x532),_0x1a004f);break;}}['onevent'](_0xc339cc){const _0x2b042e=_0xc339cc['data']||[];function _0x2d2fd5(_0x7180f7,_0x2034ea){return _0x32c5(_0x2034ea- -0x143,_0x7180f7);}null!=_0xc339cc['id']&&_0x2b042e['push'](this[_0x2d2fd5(0x11f,0xb3)](_0xc339cc['id'])),this['connected']?this['emitEvent'](_0x2b042e):this[_0x2d2fd5(0x1a3,0x2b2)]['push'](Object[_0x2d2fd5(0x6c,0x90)](_0x2b042e));}[_0xf108a4(0x49c,0x380)](_0x33fac1){function _0xdb71f4(_0x1c300b,_0xea21){return _0x32c5(_0xea21-0x21,_0x1c300b);}if(this[_0xdb71f4(0x3fa,0x3b5)]&&this['_anyListeners'][_0xdb71f4(0x2e5,0x2b1)]){const listeners=this['_anyListeners'][_0xdb71f4(0x325,0x2e2)]();for(const listener of listeners){listener[_0xdb71f4(0x418,0x3c5)](this,_0x33fac1);}}super['emit']['apply'](this,_0x33fac1),this['_pid']&&_0x33fac1['length']&&typeof _0x33fac1[_0x33fac1[_0xdb71f4(0x33b,0x2b1)]-0x1]===_0xdb71f4(0x377,0x35f)&&(this['_lastOffset']=_0x33fac1[_0x33fac1['length']-0x1]);}['ack'](_0x539bc4){const _0x37b34f=this;let _0x45ddda=![];return function(..._0x514cfe){function _0x562691(_0xb7a4c,_0x5746b5){return _0x32c5(_0x5746b5- -0x93,_0xb7a4c);}if(_0x45ddda)return;_0x45ddda=!![],_0x37b34f[_0x562691(0x154,0x148)]({'type':PacketType[_0x562691(0x2a0,0x32b)],'id':_0x539bc4,'data':_0x514cfe});};}[_0xf108a4(0x3ca,0x3fa)](_0x3d931b){function _0x36b1b2(_0x34f023,_0x34994a){return _0x32c5(_0x34f023- -0x22f,_0x34994a);}const _0x3dd3db=this[_0x36b1b2(0x1ba,0x2c7)][_0x3d931b['id']];if(typeof _0x3dd3db!==_0x36b1b2(0xc7,0x1b4))return;delete this['acks'][_0x3d931b['id']],_0x3dd3db[_0x36b1b2(0x10d,0x1a4)]&&_0x3d931b[_0x36b1b2(0x80,0x12e)][_0x36b1b2(0x9c,0x2b)](null),_0x3dd3db[_0x36b1b2(0x175,0x11e)](this,_0x3d931b[_0x36b1b2(0x80,0x150)]);}[_0xf108a4(0x415,0x338)](_0x2f0e8c,_0x2d42e4){this['id']=_0x2f0e8c,this['recovered']=_0x2d42e4&&this[_0x750451(0x571,0x565)]===_0x2d42e4,this['_pid']=_0x2d42e4,this[_0x750451(0x386,0x481)]=!![],this[_0x750451(0x38d,0x271)](),this['emitReserved']('connect');function _0x750451(_0x54e1b1,_0x3337bd){return _0x32c5(_0x54e1b1-0x19c,_0x3337bd);}this[_0x750451(0x518,0x55b)](!![]);}['emitBuffered'](){this[_0x31e3eb(0x51,-0x1f)][_0x31e3eb(-0x11e,-0x201)](_0x29ca84=>this['emitEvent'](_0x29ca84)),this[_0x31e3eb(0x51,0x11c)]=[];function _0x31e3eb(_0x1dedf3,_0x5902f8){return _0x32c5(_0x1dedf3- -0x3a4,_0x5902f8);}this['sendBuffer']['forEach'](_0x2eb1cb=>{function _0x2628d7(_0x26a644,_0x4322ab){return _0x32c5(_0x4322ab-0x2ad,_0x26a644);}this[_0x2628d7(0x4cc,0x464)](_0x2eb1cb),this[_0x2628d7(0x42a,0x488)](_0x2eb1cb);}),this[_0x31e3eb(-0x106,-0x1a3)]=[];}['ondisconnect'](){this['destroy']();function _0x6fa904(_0x524298,_0xf01d5){return _0x32c5(_0x524298- -0x270,_0xf01d5);}this[_0x6fa904(-0x17,-0xc4)](_0x6fa904(-0xa6,0x20));}['destroy'](){this[_0x22c087(0x7b1,0x6b0)]&&(this[_0x22c087(0x5b1,0x6b0)][_0x22c087(0x5f5,0x5d7)](_0x44713e=>_0x44713e()),this['subs']=undefined);function _0x22c087(_0x283a5d,_0x1e64fa){return _0x32c5(_0x1e64fa-0x351,_0x283a5d);}this['io'][_0x22c087(0x683,0x5ac)](this);}['disconnect'](){this['connected']&&this['packet']({'type':PacketType[_0x2c2679(0xce,0xf0)]});this['destroy']();this[_0x2c2679(-0x7e,-0xae)]&&this[_0x2c2679(-0x58,-0x3f)](_0x2c2679(-0x56,-0x60));function _0x2c2679(_0x3f209d,_0x2bb560){return _0x32c5(_0x2bb560- -0x298,_0x3f209d);}return this;}['close'](){function _0xc3e86d(_0x2b3838,_0x4fc68b){return _0x32c5(_0x4fc68b- -0xfc,_0x2b3838);}return this[_0xc3e86d(0x226,0x295)]();}['compress'](_0x59afa3){return this['flags']['compress']=_0x59afa3,this;}get['volatile'](){return this['flags']['volatile']=!![],this;}[_0xf108a4(0x3df,0x453)](_0x1deed5){function _0x5d7724(_0x4b632a,_0x2b4e80){return _0x32c5(_0x4b632a- -0x318,_0x2b4e80);}return this[_0x5d7724(0x5,-0x78)]['timeout']=_0x1deed5,this;}[_0xf108a4(0x380,0x476)](listener){this[_0x1f2bab(0x5a9,0x56e)]=this['_anyListeners']||[],this['_anyListeners'][_0x1f2bab(0x516,0x451)](listener);function _0x1f2bab(_0x1a4c61,_0x3fba5c){return _0x32c5(_0x3fba5c-0x1da,_0x1a4c61);}return this;}['prependAny'](listener){this['_anyListeners']=this[_0x49cf57(0x226,0x15a)]||[],this[_0x49cf57(0x226,0x1f2)][_0x49cf57(0x15d,0x4d)](listener);function _0x49cf57(_0x994dee,_0x162502){return _0x32c5(_0x994dee- -0x16e,_0x162502);}return this;}[_0xf108a4(0x426,0x449)](listener){if(!this[_0x530580(0x437,0x41c)])return this;if(listener){const listeners=this['_anyListeners'];for(let _0x4f5482=0x0;_0x4f5482<listeners['length'];_0x4f5482++){if(listener===listeners[_0x4f5482])return listeners[_0x530580(0x1cc,0x2ef)](_0x4f5482,0x1),this;}}else this[_0x530580(0x378,0x41c)]=[];function _0x530580(_0x41b67b,_0x54f61c){return _0x32c5(_0x54f61c-0x88,_0x41b67b);}return this;}[_0xf108a4(0x3c1,0x3fc)](){return this['_anyListeners']||[];}['onAnyOutgoing'](listener){this['_anyOutgoingListeners']=this[_0x55da7a(0x1e5,0x2ef)]||[],this[_0x55da7a(0x3df,0x2ef)][_0x55da7a(0x1e1,0x24a)](listener);function _0x55da7a(_0x588c79,_0x31c8fb){return _0x32c5(_0x31c8fb- -0x2d,_0x588c79);}return this;}['prependAnyOutgoing'](listener){this[_0x54523c(-0x53,-0xbc)]=this[_0x54523c(-0x8c,-0xbc)]||[],this['_anyOutgoingListeners']['unshift'](listener);function _0x54523c(_0x2dd67e,_0x432088){return _0x32c5(_0x432088- -0x3d8,_0x2dd67e);}return this;}['offAnyOutgoing'](listener){function _0x3eb3c9(_0x3545d5,_0x53a68e){return _0x32c5(_0x3545d5-0xd,_0x53a68e);}if(!this[_0x3eb3c9(0x329,0x3bb)])return this;if(listener){const listeners=this['_anyOutgoingListeners'];for(let _0x2fb52a=0x0;_0x2fb52a<listeners['length'];_0x2fb52a++){if(listener===listeners[_0x2fb52a])return listeners[_0x3eb3c9(0x274,0x2c0)](_0x2fb52a,0x1),this;}}else this[_0x3eb3c9(0x329,0x279)]=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}[_0xf108a4(0x28b,0x317)](_0x51b813){function _0x15ef22(_0x31e052,_0x4054b9){return _0x32c5(_0x31e052-0xb0,_0x4054b9);}if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const listeners=this['_anyOutgoingListeners'][_0x15ef22(0x371,0x2db)]();for(const listener of listeners){listener['apply'](this,_0x51b813['data']);}}}}function Backoff(_0x1aa942){_0x1aa942=_0x1aa942||{},this['ms']=_0x1aa942[_0xb5e72f(0x1df,0x290)]||0x64;function _0xb5e72f(_0xf86e9,_0x22854c){return _0x32c5(_0x22854c- -0xd6,_0xf86e9);}this['max']=_0x1aa942[_0xb5e72f(0x14b,0x227)]||0x2710,this['factor']=_0x1aa942[_0xb5e72f(0x25d,0x1c1)]||0x2,this[_0xb5e72f(0x28f,0x16c)]=_0x1aa942['jitter']>0x0&&_0x1aa942['jitter']<=0x1?_0x1aa942['jitter']:0x0,this[_0xb5e72f(0x26e,0x2bf)]=0x0;}Backoff['prototype']['duration']=function(){var _0x44c79b=this['ms']*Math[_0x4de3be(0x30d,0x34a)](this[_0x4de3be(0x350,0x456)],this['attempts']++);function _0x4de3be(_0xbf6c1f,_0x16f89f){return _0x32c5(_0xbf6c1f-0xb9,_0x16f89f);}if(this['jitter']){var _0x22904c=Math[_0x4de3be(0x449,0x467)](),_0x16d0ab=Math['floor'](_0x22904c*this[_0x4de3be(0x2fb,0x3c7)]*_0x44c79b);_0x44c79b=(Math[_0x4de3be(0x299,0x2dd)](_0x22904c*0xa)&0x1)==0x0?_0x44c79b-_0x16d0ab:_0x44c79b+_0x16d0ab;}return Math['min'](_0x44c79b,this['max'])|0x0;},Backoff['prototype'][_0xf108a4(0x56f,0x4a1)]=function(){this['attempts']=0x0;},Backoff[_0xf108a4(0x58d,0x4b1)][_0xf108a4(0x3ae,0x342)]=function(min){this['ms']=min;},Backoff[_0xf108a4(0x46a,0x4b1)]['setMax']=function(_0x214a48){function _0x4bd045(_0x262a78,_0x349abf){return _0x32c5(_0x262a78-0x2c9,_0x349abf);}this[_0x4bd045(0x5c6,0x5ff)]=_0x214a48;},Backoff['prototype'][_0xf108a4(0x5be,0x4a9)]=function(_0xbf6822){this['jitter']=_0xbf6822;};class Manager extends Emitter{constructor(_0x11d1f6,_0x1fa8b5){var _0x3e89be;super(),this['nsps']={},this['subs']=[];_0x11d1f6&&'object'===typeof _0x11d1f6&&(_0x1fa8b5=_0x11d1f6,_0x11d1f6=undefined);_0x1fa8b5=_0x1fa8b5||{},_0x1fa8b5['path']=_0x1fa8b5['path']||_0x5babc9(0x7ac,0x715),this['opts']=_0x1fa8b5,installTimerFunctions(this,_0x1fa8b5),this['reconnection'](_0x1fa8b5['reconnection']!==![]),this['reconnectionAttempts'](_0x1fa8b5['reconnectionAttempts']||Infinity),this['reconnectionDelay'](_0x1fa8b5['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x1fa8b5['reconnectionDelayMax']||0x1388),this[_0x5babc9(0x56f,0x59e)]((_0x3e89be=_0x1fa8b5[_0x5babc9(0x653,0x59e)])!==null&&_0x3e89be!==void 0x0?_0x3e89be:0.5);function _0x5babc9(_0x211df1,_0x39ce59){return _0x32c5(_0x39ce59-0x37b,_0x211df1);}this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this[_0x5babc9(0x6ce,0x66e)](null==_0x1fa8b5[_0x5babc9(0x67b,0x66e)]?0x4e20:_0x1fa8b5['timeout']),this['_readyState']='closed',this[_0x5babc9(0x660,0x709)]=_0x11d1f6;const _parser=_0x1fa8b5[_0x5babc9(0x800,0x735)]||parser;this['encoder']=new _parser[(_0x5babc9(0x592,0x621))](),this['decoder']=new _parser[(_0x5babc9(0x655,0x68d))](),this['_autoConnect']=_0x1fa8b5['autoConnect']!==![];if(this['_autoConnect'])this[_0x5babc9(0x657,0x566)]();}[_0xf108a4(0x2bd,0x352)](_0x1909fb){if(!arguments['length'])return this['_reconnection'];this[_0xa9b22(-0xa,0x79)]=!!_0x1909fb;function _0xa9b22(_0x745462,_0x4e45e){return _0x32c5(_0x4e45e- -0x207,_0x745462);}return!_0x1909fb&&(this['skipReconnect']=!![]),this;}[_0xf108a4(0x559,0x43d)](_0x2a22fb){if(_0x2a22fb===undefined)return this[_0x39d10f(0x278,0x16e)];function _0x39d10f(_0x32e931,_0x5a8714){return _0x32c5(_0x5a8714- -0xa2,_0x32e931);}return this['_reconnectionAttempts']=_0x2a22fb,this;}[_0xf108a4(0x53e,0x428)](_0x492863){var _0x162181;if(_0x492863===undefined)return this['_reconnectionDelay'];function _0x15e453(_0x5f1834,_0x589939){return _0x32c5(_0x5f1834-0x2fc,_0x589939);}return this[_0x15e453(0x528,0x537)]=_0x492863,(_0x162181=this[_0x15e453(0x50e,0x5a4)])===null||_0x162181===void 0x0?void 0x0:_0x162181[_0x15e453(0x4de,0x460)](_0x492863),this;}['randomizationFactor'](_0x16bd2d){var _0x108615;function _0x4ab06c(_0x260704,_0x3faa3f){return _0x32c5(_0x260704-0x3a,_0x3faa3f);}if(_0x16bd2d===undefined)return this[_0x4ab06c(0x3c3,0x453)];return this['_randomizationFactor']=_0x16bd2d,(_0x108615=this['backoff'])===null||_0x108615===void 0x0?void 0x0:_0x108615[_0x4ab06c(0x383,0x3f4)](_0x16bd2d),this;}[_0xf108a4(0x3f3,0x501)](_0x182aca){var _0x40c29f;if(_0x182aca===undefined)return this['_reconnectionDelayMax'];this[_0x679bc8(0x65,0x23)]=_0x182aca,(_0x40c29f=this['backoff'])===null||_0x40c29f===void 0x0?void 0x0:_0x40c29f['setMax'](_0x182aca);function _0x679bc8(_0x398ce8,_0x5eedfc){return _0x32c5(_0x5eedfc- -0x2b1,_0x398ce8);}return this;}[_0xf108a4(0x34a,0x453)](_0x5c40d0){if(!arguments['length'])return this['_timeout'];return this['_timeout']=_0x5c40d0,this;}[_0xf108a4(0x2c7,0x325)](){function _0x431d23(_0x57e433,_0x1d6800){return _0x32c5(_0x57e433-0x2cd,_0x1d6800);}!this[_0x431d23(0x699,0x749)]&&this['_reconnection']&&this['backoff']['attempts']===0x0&&this[_0x431d23(0x5ef,0x6a5)]();}['open'](_0x137b92){if(~this[_0x5a0a3c(0x252,0x318)]['indexOf'](_0x5a0a3c(0x9e,-0xa)))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x73c9f2=this[_0x5a0a3c(0x230,0x308)],_0x2656db=this;this[_0x5a0a3c(0x252,0x271)]='opening',this['skipReconnect']=![];const _0x498a14=on(_0x73c9f2,_0x5a0a3c(0x9e,-0x4),function(){_0x2656db['onopen'](),_0x137b92&&_0x137b92();});function _0x5a0a3c(_0x3ddf1c,_0x42eb95){return _0x32c5(_0x3ddf1c- -0x14d,_0x42eb95);}const _0x309820=_0xd1848e=>{this[_0x312cd8(0x6c6,0x5b0)](),this[_0x312cd8(0x75e,0x83a)]=_0x312cd8(0x6c2,0x5dc);function _0x312cd8(_0x447921,_0x283d0e){return _0x32c5(_0x447921-0x3bf,_0x283d0e);}this[_0x312cd8(0x6a4,0x700)]('error',_0xd1848e),_0x137b92?_0x137b92(_0xd1848e):this['maybeReconnectOnOpen']();},_0xb19d8c=on(_0x73c9f2,_0x5a0a3c(0x24a,0x194),_0x309820);if(![]!==this[_0x5a0a3c(0xad,0xac)]){const _0x595c52=this['_timeout'],_0x4742ca=this[_0x5a0a3c(0x87,0x107)](()=>{_0x498a14(),_0x309820(new Error(_0x41eb41(0x248,0x1be)));function _0x41eb41(_0x5a6f33,_0x2042f8){return _0x32c5(_0x5a6f33- -0xab,_0x2042f8);}_0x73c9f2['close']();},_0x595c52);this[_0x5a0a3c(0x1dc,0x101)]['autoUnref']&&_0x4742ca[_0x5a0a3c(0x29d,0x269)](),this[_0x5a0a3c(0x212,0x149)]['push'](()=>{this['clearTimeoutFn'](_0x4742ca);});}return this[_0x5a0a3c(0x212,0xf9)][_0x5a0a3c(0x12a,0x248)](_0x498a14),this[_0x5a0a3c(0x212,0x1f6)]['push'](_0xb19d8c),this;}['connect'](_0x599379){return this['open'](_0x599379);}[_0xf108a4(0x2c9,0x366)](){function _0x4ddba9(_0x23653f,_0x550d6c){return _0x32c5(_0x23653f-0xc5,_0x550d6c);}this[_0x4ddba9(0x3cc,0x2c9)](),this['_readyState']=_0x4ddba9(0x2b0,0x2b0),this['emitReserved'](_0x4ddba9(0x2b0,0x239));const _0x84fd8a=this[_0x4ddba9(0x442,0x40a)];this['subs']['push'](on(_0x84fd8a,_0x4ddba9(0x297,0x17e),this[_0x4ddba9(0x366,0x254)][_0x4ddba9(0x2f9,0x2d6)](this)),on(_0x84fd8a,_0x4ddba9(0x374,0x45f),this['ondata']['bind'](this)),on(_0x84fd8a,'error',this[_0x4ddba9(0x3b5,0x362)][_0x4ddba9(0x2f9,0x3ec)](this)),on(_0x84fd8a,'close',this['onclose']['bind'](this)),on(this[_0x4ddba9(0x4b1,0x3a5)],'decoded',this['ondecoded'][_0x4ddba9(0x2f9,0x34c)](this)));}['onping'](){function _0x4f93c9(_0x172508,_0x17ec79){return _0x32c5(_0x17ec79- -0x375,_0x172508);}this[_0x4f93c9(-0x158,-0x90)]('ping');}['ondata'](data){try{this['decoder']['add'](data);}catch(_0x573382){this['onclose']('parse\x20error',_0x573382);}}[_0xf108a4(0x467,0x427)](_0x5b2d3e){nextTick(()=>{function _0xa103f7(_0x5bd2e3,_0x16aa39){return _0x32c5(_0x5bd2e3- -0x1b2,_0x16aa39);}this[_0xa103f7(0x133,0x3d)]('packet',_0x5b2d3e);},this['setTimeoutFn']);}[_0xf108a4(0x4a7,0x450)](_0x1ecd1){function _0x54c9b4(_0x505d32,_0xda624){return _0x32c5(_0x505d32-0x365,_0xda624);}this[_0x54c9b4(0x64a,0x714)]('error',_0x1ecd1);}[_0xf108a4(0x27d,0x38f)](_0x4f6094,_0x11e417){let _0x5f0449=this['nsps'][_0x4f6094];if(!_0x5f0449)_0x5f0449=new Socket(this,_0x4f6094,_0x11e417),this[_0x3ff30e(0x590,0x5c4)][_0x4f6094]=_0x5f0449;else this[_0x3ff30e(0x4c6,0x3df)]&&!_0x5f0449['active']&&_0x5f0449['connect']();function _0x3ff30e(_0x12f07f,_0x1da603){return _0x32c5(_0x12f07f-0x25c,_0x1da603);}return _0x5f0449;}[_0xf108a4(0x426,0x3bb)](_0x534ea6){const _0x15df3f=Object['keys'](this['nsps']);for(const _0x4d4c02 of _0x15df3f){const _0x5d40df=this[_0xf37f67(-0x6d,-0x60)][_0x4d4c02];if(_0x5d40df[_0xf37f67(-0x1e4,-0x2bc)])return;}function _0xf37f67(_0x46251a,_0x4d2d6c){return _0x32c5(_0x46251a- -0x3a1,_0x4d2d6c);}this['_close']();}[_0xf108a4(0x3a9,0x3d6)](_0x6ba5e9){function _0x5b83f7(_0xf00a21,_0x27e5f8){return _0x32c5(_0x27e5f8- -0x1b1,_0xf00a21);}const _0x164e72=this['encoder']['encode'](_0x6ba5e9);for(let _0xa6d049=0x0;_0xa6d049<_0x164e72['length'];_0xa6d049++){this[_0x5b83f7(0x257,0x1cc)][_0x5b83f7(-0x11,0x96)](_0x164e72[_0xa6d049],_0x6ba5e9[_0x5b83f7(0x30c,0x22b)]);}}['cleanup'](){this[_0x4a578e(0x41b,0x487)]['forEach'](_0x3ec71a=>_0x3ec71a()),this['subs'][_0x4a578e(0x34c,0x22f)]=0x0;function _0x4a578e(_0xd18197,_0x27fb7f){return _0x32c5(_0xd18197-0xbc,_0x27fb7f);}this['decoder']['destroy']();}[_0xf108a4(0x3fb,0x3e9)](){this['skipReconnect']=!![],this['_reconnecting']=![],this['onclose']('forced\x20close');}['disconnect'](){function _0x15f2c4(_0x13b48b,_0x3b205f){return _0x32c5(_0x3b205f-0x1d8,_0x13b48b);}return this[_0x15f2c4(0x4b7,0x461)]();}['onclose'](_0x17e9f1,_0x3af0e2){function _0x553781(_0x4d927e,_0x110021){return _0x32c5(_0x4d927e- -0x25b,_0x110021);}var _0x13a467;this['cleanup'](),(_0x13a467=this[_0x553781(0x122,0xa4)])===null||_0x13a467===void 0x0?void 0x0:_0x13a467[_0x553781(0x177,0x27e)](),this[_0x553781(-0x49,0x51)]['reset'](),this[_0x553781(0x144,0xcb)]='closed',this[_0x553781(0x8a,0x194)]('close',_0x17e9f1,_0x3af0e2),this[_0x553781(0x25,0xcd)]&&!this[_0x553781(0xc6,0x155)]&&this[_0x553781(0xc7,-0x1b)]();}['reconnect'](){if(this[_0x2b3535(0x71a,0x794)]||this['skipReconnect'])return this;function _0x2b3535(_0x265722,_0x1064e4){return _0x32c5(_0x1064e4-0x3c8,_0x265722);}const _0x4cc3cd=this;if(this[_0x2b3535(0x619,0x5da)][_0x2b3535(0x811,0x75d)]>=this[_0x2b3535(0x5c5,0x5d8)])this['backoff']['reset'](),this[_0x2b3535(0x6d3,0x6ad)](_0x2b3535(0x579,0x66d)),this[_0x2b3535(0x7e1,0x794)]=![];else{const _0x47450f=this[_0x2b3535(0x628,0x5da)]['duration']();this['_reconnecting']=!![];const _0x362bf5=this['setTimeoutFn'](()=>{if(_0x4cc3cd[_0x32b56a(0x596,0x4ca)])return;this['emitReserved']('reconnect_attempt',_0x4cc3cd['backoff']['attempts']);if(_0x4cc3cd[_0x32b56a(0x421,0x4ca)])return;function _0x32b56a(_0x57d614,_0x56116a){return _0x32c5(_0x56116a-0x1a9,_0x57d614);}_0x4cc3cd[_0x32b56a(0x2f4,0x394)](_0xe7e5ff=>{function _0x57af42(_0xe6b193,_0x187526){return _0x32c5(_0x187526- -0x10a,_0xe6b193);}_0xe7e5ff?(_0x4cc3cd[_0x57af42(0x2eb,0x2c2)]=![],_0x4cc3cd['reconnect'](),this['emitReserved'](_0x57af42(0x198,0x2a4),_0xe7e5ff)):_0x4cc3cd['onreconnect']();});},_0x47450f);this['opts']['autoUnref']&&_0x362bf5['unref'](),this['subs'][_0x2b3535(0x55c,0x63f)](()=>{function _0x589287(_0x18cded,_0x121758){return _0x32c5(_0x121758- -0xa8,_0x18cded);}this[_0x589287(0xb5,0x159)](_0x362bf5);});}}[_0xf108a4(0x5d3,0x4d9)](){const _0x1939e0=this[_0x3f5066(0x404,0x510)]['attempts'];this[_0x3f5066(0x5be,0x53c)]=![],this[_0x3f5066(0x404,0x349)][_0x3f5066(0x533,0x502)]();function _0x3f5066(_0x1c7bc6,_0x50ccce){return _0x32c5(_0x1c7bc6-0x1f2,_0x50ccce);}this[_0x3f5066(0x4d7,0x497)](_0x3f5066(0x514,0x537),_0x1939e0);}}const cache={};function lookup(_0x1b5ad0,_0x51a29f){typeof _0x1b5ad0==='object'&&(_0x51a29f=_0x1b5ad0,_0x1b5ad0=undefined);_0x51a29f=_0x51a29f||{};const parsed=url(_0x1b5ad0,_0x51a29f[_0x272792(0x4c8,0x464)]||_0x272792(0x516,0x4db)),_0x46d3bb=parsed['source'];function _0x272792(_0x3da2ba,_0x3360bf){return _0x32c5(_0x3da2ba-0x17c,_0x3360bf);}const _0x12010f=parsed['id'],_0x3ed6a6=parsed[_0x272792(0x4c8,0x4a7)],_0x1c201a=cache[_0x12010f]&&_0x3ed6a6 in cache[_0x12010f][_0x272792(0x4b0,0x5b3)],_0x3f5038=_0x51a29f['forceNew']||_0x51a29f['force\x20new\x20connection']||![]===_0x51a29f['multiplex']||_0x1c201a;let _0x580a1c;return _0x3f5038?_0x580a1c=new Manager(_0x46d3bb,_0x51a29f):(!cache[_0x12010f]&&(cache[_0x12010f]=new Manager(_0x46d3bb,_0x51a29f)),_0x580a1c=cache[_0x12010f]),parsed[_0x272792(0x522,0x63f)]&&!_0x51a29f[_0x272792(0x522,0x4ad)]&&(_0x51a29f[_0x272792(0x522,0x58c)]=parsed['queryKey']),_0x580a1c['socket'](parsed[_0x272792(0x4c8,0x569)],_0x51a29f);}Object[_0xf108a4(0x3fd,0x3e2)](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});var index=Object[_0xf108a4(0x381,0x333)]({'__proto__':null,'Manager':Manager,'NodeWebSocket':WS,'NodeXHR':XHR,'Socket':Socket,'WebSocket':WS,'WebTransport':WT,'XHR':XHR,'connect':lookup,'default':lookup,'io':lookup,'protocol':protocol});export{AuthClient,CustomDatabaseManager,DatabaseClient,EBaaSClient,EBaaSError,FunctionsClient,HttpClient,QueryBuilder,RealtimeChannel,RealtimeClient,StorageBucket,StorageClient,createClient,version};
|
|
1
|
+
(function(stringArrayFunction,comparisonValue){function _0x16218b(_0x45ba2f,_0x130808){return _0x1e97(_0x45ba2f-0x55,_0x130808);}const stringArray=stringArrayFunction();while(!![]){try{const _0x19ce91=-parseInt(_0x16218b(0x1d8,0x246))/0x1+-parseInt(_0x16218b(0x159,0x19a))/0x2+-parseInt(_0x16218b(0x20f,0x1e7))/0x3*(-parseInt(_0x16218b(0x148,0x10f))/0x4)+-parseInt(_0x16218b(0x143,0xfb))/0x5*(parseInt(_0x16218b(0x18b,0x19f))/0x6)+-parseInt(_0x16218b(0x152,0x1c5))/0x7*(parseInt(_0x16218b(0x1ec,0x21f))/0x8)+-parseInt(_0x16218b(0x1d4,0x1b2))/0x9*(parseInt(_0x16218b(0x22b,0x1fe))/0xa)+-parseInt(_0x16218b(0x1a3,0x1f8))/0xb*(-parseInt(_0x16218b(0x165,0x113))/0xc);if(_0x19ce91===comparisonValue)break;else stringArray['push'](stringArray['shift']());}catch(_0x3e0ab5){stringArray['push'](stringArray['shift']());}}}(_0x5df5,0xc901c));import axios from'axios';class EBaaSError extends Error{constructor(_0x10db32,status=0x0,_0x1fb62e){super(_0x10db32),this[_0x5c9a48(0x31c,0x2b7)]=_0x5c9a48(0x24c,0x2af),this['status']=status,this['details']=_0x1fb62e;function _0x5c9a48(_0x1889d9,_0x551a7b){return _0x1e97(_0x551a7b-0xce,_0x1889d9);}Error[_0x5c9a48(0x2fc,0x298)]&&Error[_0x5c9a48(0x22b,0x298)](this,EBaaSError);}[_0x4bcf27(-0x2c7,-0x303)](){function _0xf71b9b(_0x3adda8,_0x825c76){return _0x1e97(_0x825c76-0x315,_0x3adda8);}return{'name':this[_0xf71b9b(0x567,0x4fe)],'message':this['message'],'status':this['status'],'details':this[_0xf71b9b(0x49c,0x4d5)],'stack':this[_0xf71b9b(0x4ef,0x4ab)]};}['toString'](){function _0x212a39(_0x31adeb,_0x3144db){return _0x1e97(_0x3144db- -0x193,_0x31adeb);}return this['name']+':\x20'+this[_0x212a39(0xab,0x52)]+'\x20(Status:\x20'+this['status']+')';}}class HttpClient{constructor(config){this[_0x53c16a(0x18e,0x162)]=config[_0x53c16a(0x147,0xc6)];function _0x53c16a(_0x4f695c,_0x5bb283){return _0x1e97(_0x4f695c-0x3a,_0x5bb283);}this[_0x53c16a(0x156,0x14b)]=config['apiKey'],this[_0x53c16a(0x13c,0xd7)]=axios['create']({'baseURL':this[_0x53c16a(0x18e,0x183)],'timeout':config[_0x53c16a(0x20b,0x183)]||0x2710,'headers':{'Content-Type':'application/json','apikey':this[_0x53c16a(0x156,0x159)],...config[_0x53c16a(0x217,0x1c9)]}}),this[_0x53c16a(0x166,0x12b)]();}[_0x4bcf27(-0x2b8,-0x270)](){this['client']['interceptors']['request'][_0x30a29f(-0x276,-0x205)](config=>{return config;},_0x481f57=>{return Promise['reject'](new EBaaSError('Request\x20failed',0x0,_0x481f57));});function _0x30a29f(_0x4c1fc6,_0x11eae8){return _0x1e97(_0x11eae8- -0x3dc,_0x4c1fc6);}this['client'][_0x30a29f(-0x299,-0x2c6)]['response'][_0x30a29f(-0x198,-0x205)](response=>{return response;},_0xe911a0=>{const status=_0xe911a0['response']?.['status']||0x0;function _0xd47aff(_0x4035c6,_0xe0ed56){return _0x1e97(_0x4035c6- -0x64,_0xe0ed56);}const _0x26cd03=_0xe911a0[_0xd47aff(0xc0,0xb9)]?.['data']?.['message']||_0xe911a0['message']||'Unknown\x20error',_0x12d93d=_0xe911a0[_0xd47aff(0xc0,0xe2)]?.[_0xd47aff(0x120,0xe7)]||_0xe911a0;return Promise[_0xd47aff(0xbc,0xbd)](new EBaaSError(_0x26cd03,status,_0x12d93d));});}async[_0x4bcf27(-0x204,-0x231)](_0x12c9e4,config){try{const response=await this['client']['get'](_0x12c9e4,config);return{'data':response['data'],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x52f10c){throw this['handleError'](_0x52f10c);}}async[_0x4bcf27(-0x2cc,-0x309)](_0x4655aa,data,config){function _0x950f45(_0x18aad5,_0x5da8c9){return _0x1e97(_0x18aad5- -0x394,_0x5da8c9);}try{const response=await this[_0x950f45(-0x292,-0x2c9)]['post'](_0x4655aa,data,config);return{'data':response[_0x950f45(-0x210,-0x292)],'status':response[_0x950f45(-0x1ce,-0x225)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x5c1c4e){throw this[_0x950f45(-0x1cc,-0x21c)](_0x5c1c4e);}}async['put'](_0x549dc2,data,config){function _0x1e1697(_0x358898,_0x29bd43){return _0x1e97(_0x358898- -0x2ec,_0x29bd43);}try{const response=await this[_0x1e1697(-0x1ea,-0x23f)]['put'](_0x549dc2,data,config);return{'data':response[_0x1e1697(-0x168,-0x1c3)],'status':response[_0x1e1697(-0x126,-0xb6)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x514775){throw this['handleError'](_0x514775);}}async['patch'](_0x59856b,data,config){function _0xdeb0da(_0x6f0673,_0x26419f){return _0x1e97(_0x26419f- -0x22,_0x6f0673);}try{const response=await this['client']['patch'](_0x59856b,data,config);return{'data':response[_0xdeb0da(0x1bf,0x162)],'status':response[_0xdeb0da(0x1e1,0x1a4)],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x5a602e){throw this[_0xdeb0da(0x1c9,0x1a6)](_0x5a602e);}}async['delete'](_0x361c1a,config){function _0x309c24(_0x3db93b,_0x4dd548){return _0x1e97(_0x3db93b-0x38d,_0x4dd548);}try{const response=await this[_0x309c24(0x48f,0x446)][_0x309c24(0x475,0x471)](_0x361c1a,config);return{'data':response['data'],'status':response['status'],'statusText':response['statusText'],'headers':response['headers']};}catch(_0x2731fc){throw this['handleError'](_0x2731fc);}}['setAuthToken'](_0x27ebe5){function _0x2d7cec(_0x4aeac0,_0x42fcc0){return _0x1e97(_0x4aeac0- -0xa5,_0x42fcc0);}this[_0x2d7cec(0x5d,-0x9)][_0x2d7cec(0x4c,0x3a)][_0x2d7cec(0x138,0x111)]['common']['Authorization']='Bearer\x20'+_0x27ebe5;}[_0x4bcf27(-0x2de,-0x331)](){function _0x4f15a8(_0x2874fe,_0x2135c0){return _0x1e97(_0x2135c0- -0x2b3,_0x2874fe);}delete this[_0x4f15a8(-0x1b9,-0x1b1)][_0x4f15a8(-0x142,-0x1c2)]['headers']['common']['Authorization'],this[_0x4f15a8(-0x234,-0x1b1)][_0x4f15a8(-0x1ff,-0x1c2)][_0x4f15a8(-0x108,-0xd6)][_0x4f15a8(-0x103,-0x124)]['Authorization']='Bearer\x20'+this[_0x4f15a8(-0x176,-0x197)];}[_0x4bcf27(-0x21c,-0x283)](_0xffe721){if(_0xffe721 instanceof EBaaSError)return _0xffe721;return new EBaaSError(_0xffe721['message']||'HTTP\x20request\x20failed',_0xffe721['status']||0x0,_0xffe721);}}class AuthClient{constructor(_0x2a936e,_0x5c1a17){this['currentSession']=null;function _0x168d17(_0x3ed356,_0x42d16f){return _0x1e97(_0x3ed356- -0x1df,_0x42d16f);}this['httpClient']=_0x2a936e,this[_0x168d17(-0xe8,-0x155)]=_0x5c1a17,this['loadSession']();}async['signUp'](data){function _0x3cd40e(_0x47c513,_0x575a1d){return _0x1e97(_0x47c513-0x2a9,_0x575a1d);}try{const response=await this[_0x3cd40e(0x443,0x404)][_0x3cd40e(0x3c1,0x3de)]('/auth/v1/signup',data);return response[_0x3cd40e(0x42d,0x3c2)]['session']&&this[_0x3cd40e(0x49b,0x4d5)](response['data']['session']),response[_0x3cd40e(0x42d,0x3ca)];}catch(_0x1c1009){throw this[_0x3cd40e(0x46d,0x400)](_0x1c1009);}}async['signIn'](data){function _0x253c16(_0x33384f,_0x11d0ef){return _0x1e97(_0x33384f-0xa5,_0x11d0ef);}try{const headers={};this[_0x253c16(0x19c,0x195)]&&(headers['X-Workspace-ID']=this['workspaceId']);const response=await this[_0x253c16(0x23f,0x233)][_0x253c16(0x1bd,0x1ba)](_0x253c16(0x232,0x1f7),data,{'headers':headers});return response[_0x253c16(0x229,0x1a2)]['session']&&this[_0x253c16(0x297,0x21d)](response['data'][_0x253c16(0x247,0x2c5)]),response[_0x253c16(0x229,0x27e)];}catch(_0x1ce18f){throw this['handleAuthError'](_0x1ce18f);}}async[_0x4bcf27(-0x216,-0x29b)](){function _0x5118f7(_0x464c54,_0x212176){return _0x1e97(_0x212176- -0x2be,_0x464c54);}try{await this[_0x5118f7(-0xee,-0x124)][_0x5118f7(-0x1c5,-0x1a6)](_0x5118f7(-0xb0,-0x129)),this[_0x5118f7(-0x140,-0x161)]();}catch(_0x5ea821){this[_0x5118f7(-0x1a8,-0x161)]();throw this['handleAuthError'](_0x5ea821);}}async[_0x4bcf27(-0x2a4,-0x296)](){if(!this[_0x4769ec(0x4df,0x479)]?.['access_token'])return null;function _0x4769ec(_0x478132,_0x8b2421){return _0x1e97(_0x478132-0x395,_0x8b2421);}try{const response=await this['httpClient'][_0x4769ec(0x575,0x5de)]('/auth/v1/user');return response[_0x4769ec(0x519,0x4fe)][_0x4769ec(0x551,0x5b4)];}catch(_0x3d88f0){if(_0x3d88f0 instanceof EBaaSError&&_0x3d88f0['status']===0x191)return this[_0x4769ec(0x4f2,0x528)](),null;throw this[_0x4769ec(0x559,0x59e)](_0x3d88f0);}}async['refreshSession'](){if(!this[_0x5a9271(0x1a4,0x192)]?.[_0x5a9271(0x16e,0x1eb)])return null;function _0x5a9271(_0x3bd48c,_0x268986){return _0x1e97(_0x268986-0x48,_0x3bd48c);}try{const response=await this['httpClient'][_0x5a9271(0x193,0x160)](_0x5a9271(0xec,0x170),{'refresh_token':this[_0x5a9271(0x16a,0x192)]['refresh_token']});if(response[_0x5a9271(0x242,0x1cc)]['session'])return this['setSession'](response['data']['session']),response[_0x5a9271(0x181,0x1cc)][_0x5a9271(0x193,0x1ea)];return null;}catch(_0x4eae95){this[_0x5a9271(0x127,0x1a5)]();throw this['handleAuthError'](_0x4eae95);}}async['resetPassword'](_0x44e0b3){function _0x34e16e(_0x249663,_0x11ddc1){return _0x1e97(_0x249663- -0x37,_0x11ddc1);}try{await this['httpClient'][_0x34e16e(0xe1,0x5c)](_0x34e16e(0x111,0xf9),{'email':_0x44e0b3});}catch(_0x436524){throw this['handleAuthError'](_0x436524);}}async[_0x4bcf27(-0x23c,-0x28b)](data){function _0x5dc104(_0x257b2d,_0x46202c){return _0x1e97(_0x257b2d-0x3d5,_0x46202c);}try{const response=await this[_0x5dc104(0x56f,0x58f)][_0x5dc104(0x571,0x56f)]('/auth/v1/user',data);return response[_0x5dc104(0x559,0x581)]['user'];}catch(_0x3f3574){throw this['handleAuthError'](_0x3f3574);}}[_0x4bcf27(-0x263,-0x287)](){return this['currentSession'];}[_0x4bcf27(-0x294,-0x283)](_0x2415a6){function _0xed3616(_0x50b75e,_0x3768fd){return _0x1e97(_0x3768fd- -0x3a1,_0x50b75e);}this[_0xed3616(-0x1cf,-0x257)]=_0x2415a6,this['httpClient'][_0xed3616(-0x197,-0x1f8)](_0x2415a6['access_token']),typeof localStorage!==_0xed3616(-0x22c,-0x280)&&localStorage['setItem']('ebaas.auth.session',JSON[_0xed3616(-0x2f8,-0x2a1)](_0x2415a6));}['onAuthStateChange'](_0x3a3fc0){return()=>{};}['setWorkspaceId'](_0x4fdbda){function _0x113caf(_0x2c97a7,_0x10af1f){return _0x1e97(_0x2c97a7- -0x130,_0x10af1f);}this[_0x113caf(-0x39,-0xa2)]=_0x4fdbda;}[_0x4bcf27(-0x1f2,-0x204)](_0x5282a8){this['currentSession']=_0x5282a8,this[_0x2fc37c(-0x232,-0x217)]['setAuthToken'](_0x5282a8['access_token']);function _0x2fc37c(_0x1d1dc5,_0x1bd58c){return _0x1e97(_0x1d1dc5- -0x3cc,_0x1bd58c);}typeof localStorage!=='undefined'&&localStorage[_0x2fc37c(-0x1dc,-0x1c9)]('ebaas.auth.session',JSON[_0x2fc37c(-0x2cc,-0x28c)](_0x5282a8));}['clearSession'](){this['currentSession']=null,this[_0x3f1c7c(0xa2,0xec)]['removeAuthToken']();function _0x3f1c7c(_0x300fbe,_0x12ac7a){return _0x1e97(_0x12ac7a- -0xae,_0x300fbe);}typeof localStorage!==_0x3f1c7c(0x7b,0x73)&&localStorage['removeItem'](_0x3f1c7c(0x108,0x13e));}[_0x4bcf27(-0x239,-0x262)](){function _0x3348c9(_0x2f5529,_0x1369a6){return _0x1e97(_0x1369a6-0x240,_0x2f5529);}if(typeof localStorage!==_0x3348c9(0x2f3,0x361)){const _0x21ba48=localStorage['getItem'](_0x3348c9(0x48a,0x42c));if(_0x21ba48)try{const _0x22d407=JSON[_0x3348c9(0x378,0x3de)](_0x21ba48);this[_0x3348c9(0x497,0x432)](_0x22d407);}catch(_0x401a89){this[_0x3348c9(0x3d5,0x39d)]();}}}[_0x4bcf27(-0x220,-0x1f1)](_0x5b9352){function _0x20ca90(_0x217f29,_0x3ae3fe){return _0x1e97(_0x3ae3fe-0x20c,_0x217f29);}if(_0x5b9352 instanceof EBaaSError)return _0x5b9352;return new EBaaSError(_0x5b9352[_0x20ca90(0x373,0x3f1)]||'Authentication\x20failed',_0x5b9352[_0x20ca90(0x443,0x3d2)]||0x0,_0x5b9352);}}class QueryBuilder{constructor(_0x8f7549,_0x3d2b86,_0x2133de,_0x4f5ba8){this['httpClient']=_0x8f7549,this[_0x2f86c2(-0xde,-0x126)]=_0x3d2b86;function _0x2f86c2(_0x219cfd,_0x20c296){return _0x1e97(_0x20c296- -0x268,_0x219cfd);}this[_0x2f86c2(-0x36,-0x82)]=_0x2133de,this[_0x2f86c2(-0x1b8,-0x171)]=_0x4f5ba8,this['query']={'filters':[]};}['select'](_0x11cf37='*',_0x271c09){return this['query']['select']=_0x11cf37,this;}['insert'](data,_0x589764){function _0x346e3c(_0x16ad0a,_0x1019d1){return _0x1e97(_0x16ad0a- -0x294,_0x1019d1);}return this[_0x346e3c(-0x12d,-0xc1)]('POST','/sdk/v1/'+this['table']+'?operation=insert',{'data':data,'options':_0x589764});}[_0x4bcf27(-0x249,-0x223)](data,_0x22ee6a){function _0x40b352(_0x5dde20,_0x5e9b62){return _0x1e97(_0x5dde20-0x34c,_0x5e9b62);}return this['query']['updateData']=data,this['query'][_0x40b352(0x4b2,0x44c)]=_0x22ee6a,this;}['upsert'](data,_0xa7cc36){function _0x50566(_0x550eb8,_0x3f1370){return _0x1e97(_0x3f1370-0x1c0,_0x550eb8);}return this[_0x50566(0x39e,0x327)]('POST','/sdk/v1/'+this['table']+_0x50566(0x336,0x36d),{'data':data,'options':{..._0xa7cc36,'upsert':!![]}});}['delete'](_0x3649e3){this[_0x5ef4da(-0x244,-0x2ad)]['deleteOptions']=_0x3649e3,this['query'][_0x5ef4da(-0x25f,-0x2a7)]=!![];function _0x5ef4da(_0x4845ec,_0x6b6d97){return _0x1e97(_0x4845ec- -0x3bf,_0x6b6d97);}return this;}['eq'](_0x27bd89,_0x57ae0e){function _0x15c234(_0x54e5d6,_0x558f10){return _0x1e97(_0x54e5d6- -0x172,_0x558f10);}return this[_0x15c234(0x9,-0x18)][_0x15c234(0x2e,-0x40)][_0x15c234(-0x7,-0x8c)]({'column':_0x27bd89,'operator':'eq','value':_0x57ae0e}),this;}[_0x4bcf27(-0x1f5,-0x23c)](_0x21574b,_0x5bb5b4){function _0xa6988e(_0x516056,_0x3f5cfe){return _0x1e97(_0x516056- -0xac,_0x3f5cfe);}return this[_0xa6988e(0xcf,0x9d)][_0xa6988e(0xf4,0xb9)][_0xa6988e(0xbf,0x121)]({'column':_0x21574b,'operator':_0xa6988e(0x143,0x16f),'value':_0x5bb5b4}),this;}['gt'](_0x28aa64,_0x1a9e25){function _0x1af12f(_0x29e10a,_0x36b417){return _0x1e97(_0x36b417- -0x2d1,_0x29e10a);}return this[_0x1af12f(-0x1ab,-0x156)]['filters'][_0x1af12f(-0x1c4,-0x166)]({'column':_0x28aa64,'operator':'gt','value':_0x1a9e25}),this;}['gte'](_0x28236b,_0x1eedc6){this['query'][_0x556326(0x38,0x25)][_0x556326(0x3,-0x56)]({'column':_0x28236b,'operator':_0x556326(0x24,0x3d),'value':_0x1eedc6});function _0x556326(_0x215545,_0x1e1823){return _0x1e97(_0x215545- -0x168,_0x1e1823);}return this;}['lt'](_0x15c51a,_0xdb3d71){this[_0x491a6c(-0x110,-0x14f)][_0x491a6c(-0xb1,-0x12a)][_0x491a6c(-0x13c,-0x15f)]({'column':_0x15c51a,'operator':'lt','value':_0xdb3d71});function _0x491a6c(_0x5a7d58,_0x4c8aaf){return _0x1e97(_0x4c8aaf- -0x2ca,_0x5a7d58);}return this;}['lte'](_0x12e586,_0x480c85){this[_0x3f733d(0x26f,0x1f6)][_0x3f733d(0x1f2,0x21b)][_0x3f733d(0x19d,0x1e6)]({'column':_0x12e586,'operator':'lte','value':_0x480c85});function _0x3f733d(_0x5c4c7a,_0x334096){return _0x1e97(_0x334096-0x7b,_0x5c4c7a);}return this;}['like'](_0x2e3238,_0x4e217a){this[_0x142000(0x13,0x42)]['filters']['push']({'column':_0x2e3238,'operator':_0x142000(-0x6f,-0x8a),'value':_0x4e217a});function _0x142000(_0x4f7186,_0x46c458){return _0x1e97(_0x4f7186- -0x168,_0x46c458);}return this;}['ilike'](_0x56abd1,_0xa85a7b){function _0x5995cd(_0x266346,_0x4d30e4){return _0x1e97(_0x4d30e4-0x1bb,_0x266346);}return this[_0x5995cd(0x376,0x336)][_0x5995cd(0x32e,0x35b)]['push']({'column':_0x56abd1,'operator':_0x5995cd(0x326,0x36c),'value':_0xa85a7b}),this;}['is'](_0x3b7594,_0x191bd8){function _0x125b24(_0x2b2db6,_0x2aeecb){return _0x1e97(_0x2aeecb- -0x257,_0x2b2db6);}return this['query'][_0x125b24(-0x3f,-0xb7)]['push']({'column':_0x3b7594,'operator':'is','value':_0x191bd8}),this;}['in'](_0x27992e,_0x19a6f2){function _0x11d7b8(_0x387d22,_0x794f27){return _0x1e97(_0x794f27- -0x1c8,_0x387d22);}return this[_0x11d7b8(-0xcc,-0x4d)][_0x11d7b8(0x2a,-0x28)]['push']({'column':_0x27992e,'operator':'in','value':_0x19a6f2}),this;}[_0x4bcf27(-0x1fc,-0x21b)](_0x22bc5d,_0x31640f){this['query'][_0x2b81c0(0x5b4,0x55b)][_0x2b81c0(0x538,0x526)]({'column':_0x22bc5d,'operator':_0x2b81c0(0x5ec,0x5a3),'value':_0x31640f});function _0x2b81c0(_0x46502b,_0x506819){return _0x1e97(_0x506819-0x3bb,_0x46502b);}return this;}['match'](_0x57d472){Object[_0x12e779(0x12,0x8f)](_0x57d472)[_0x12e779(0x1e,0x80)](([_0x3389c7,_0x10d68e])=>{this['eq'](_0x3389c7,_0x10d68e);});function _0x12e779(_0x5d3699,_0x49d787){return _0x1e97(_0x49d787- -0xb2,_0x5d3699);}return this;}['order'](_0x2b58f0,_0x4ad617){!this[_0x3d4019(0x1cf,0x153)]['order']&&(this[_0x3d4019(0x103,0x153)]['order']=[]);function _0x3d4019(_0x33b0be,_0x472706){return _0x1e97(_0x472706- -0x28,_0x33b0be);}return this[_0x3d4019(0x149,0x153)]['order']['push']({'column':_0x2b58f0,'ascending':_0x4ad617?.[_0x3d4019(0x187,0x15f)]!==![]}),this;}['limit'](count){return this['query']['limit']=count,this;}['range'](from,_0x42be16){function _0x4b9151(_0x39cce4,_0x5a1d75){return _0x1e97(_0x39cce4-0x212,_0x5a1d75);}return this[_0x4b9151(0x38d,0x3e8)]['range']={'from':from,'to':_0x42be16},this;}async[_0x4bcf27(-0x25c,-0x296)](){function _0x5b3280(_0xf0aab9,_0x1b2b73){return _0x1e97(_0x1b2b73-0x175,_0xf0aab9);}if(this[_0x5b3280(0x2e8,0x2f0)]['updateData'])return this['executeQuery']('PATCH','/sdk/v1/'+this[_0x5b3280(0x2a6,0x2b7)],{'data':this[_0x5b3280(0x28f,0x2f0)]['updateData'],'options':this['query']['updateOptions'],'filters':this[_0x5b3280(0x369,0x2f0)]['filters']});else return this['query'][_0x5b3280(0x33e,0x2d5)]?this['executeQuery']('DELETE',_0x5b3280(0x2ee,0x28f)+this[_0x5b3280(0x300,0x2b7)]+'?operation=delete',{'options':this[_0x5b3280(0x344,0x2f0)]['deleteOptions'],'filters':this['query'][_0x5b3280(0x29d,0x315)]}):this[_0x5b3280(0x361,0x2dc)]('GET','/sdk/v1/'+this['table']+_0x5b3280(0x290,0x2d1),{'select':this[_0x5b3280(0x2f8,0x2f0)][_0x5b3280(0x308,0x2b8)],'filters':this[_0x5b3280(0x34e,0x2f0)][_0x5b3280(0x2e4,0x315)],'order':this[_0x5b3280(0x343,0x2f0)][_0x5b3280(0x2b0,0x2a2)],'limit':this['query']['limit'],'range':this[_0x5b3280(0x304,0x2f0)]['range']});}async['single'](){this[_0x4dfae1(0x1f5,0x233)](0x1);function _0x4dfae1(_0x4d6fdb,_0x4a6a97){return _0x1e97(_0x4d6fdb-0x19,_0x4a6a97);}const result=await this['execute']();return{'data':result['data']?.[0x0]||null,'error':result[_0x4dfae1(0x17e,0x13f)]};}async['executeQuery'](_0x58c34e,_0x52f568,_0x10c3f8){function _0x2324c4(_0x2c36e4,_0x2afab2){return _0x1e97(_0x2afab2-0x9b,_0x2c36e4);}try{let response;const headers={};this[_0x2324c4(0x119,0x192)]&&(headers['x-workspace-id']=this['workspaceId']);if(_0x58c34e==='GET'){const _0xfc35e8=_0x52f568['split']('?'),_0x3dcd39=_0xfc35e8[0x0],existingParams=new URLSearchParams(_0xfc35e8[0x1]||'');if(_0x10c3f8[_0x2324c4(0x24a,0x1de)])existingParams['append']('select',_0x10c3f8['select']);_0x10c3f8['filters']?.['length']&&_0x10c3f8['filters']['forEach'](filter=>{function _0x2fda8f(_0x4e048d,_0x5469b1){return _0x1e97(_0x5469b1- -0x35c,_0x4e048d);}existingParams['append'](filter[_0x2fda8f(-0x1ba,-0x197)],filter['operator']+'.'+filter['value']);});if(_0x10c3f8[_0x2324c4(0x24f,0x1c8)]?.['length']){const orderStr=_0x10c3f8[_0x2324c4(0x21e,0x1c8)][_0x2324c4(0x142,0x18a)](_0x1dd550=>''+_0x1dd550['column']+(_0x1dd550[_0x2324c4(0x1c1,0x222)]?_0x2324c4(0x2e9,0x264):_0x2324c4(0x1b2,0x1f2)))['join'](',');existingParams['append']('order',orderStr);}if(_0x10c3f8['limit'])existingParams['append'](_0x2324c4(0x2a2,0x277),_0x10c3f8['limit']['toString']());_0x10c3f8['range']&&(existingParams['append']('offset',_0x10c3f8['range'][_0x2324c4(0x297,0x240)][_0x2324c4(0x210,0x1c4)]()),existingParams[_0x2324c4(0x307,0x286)]('limit',(_0x10c3f8[_0x2324c4(0x1a8,0x1e2)]['to']-_0x10c3f8['range'][_0x2324c4(0x246,0x240)]+0x1)[_0x2324c4(0x22c,0x1c4)]())),response=await this[_0x2324c4(0x2b8,0x235)]['get'](_0x3dcd39+'?'+existingParams['toString'](),{'headers':headers});}else{if(_0x58c34e==='DELETE'){const _0x1f4c0a=_0x52f568['split']('?'),_0xc11854=_0x1f4c0a[0x0],existingParams=new URLSearchParams(_0x1f4c0a[0x1]||'');!existingParams[_0x2324c4(0x185,0x187)](_0x2324c4(0x20d,0x275))&&existingParams['append']('operation',_0x2324c4(0x1dd,0x183));_0x10c3f8[_0x2324c4(0x26d,0x23b)]?.[_0x2324c4(0x1ed,0x1a4)]&&_0x10c3f8['filters']['forEach'](filter=>{function _0x225b01(_0x1b4f42,_0x50948d){return _0x1e97(_0x1b4f42-0xf9,_0x50948d);}existingParams[_0x225b01(0x2e4,0x2b1)](filter[_0x225b01(0x2be,0x268)],filter[_0x225b01(0x2ba,0x2ac)]+'.'+filter['value']);});const deleteUrl=_0xc11854+'?'+existingParams[_0x2324c4(0x218,0x1c4)]();console[_0x2324c4(0x27c,0x262)]('\uD83D\uDD27 DELETE URL construída:',deleteUrl),console[_0x2324c4(0x214,0x262)]('\uD83D\uDD27 DELETE headers:',headers),console['log']('\uD83D\uDD27 DELETE filtros originais:',_0x10c3f8['filters']),response=await this['httpClient'][_0x2324c4(0x17d,0x183)](deleteUrl,{'headers':headers});}else{if(_0x58c34e==='PATCH'){const _0x209908=_0x52f568['split']('?'),_0x37c3ad=_0x209908[0x0],existingParams=new URLSearchParams(_0x209908[0x1]||'');!existingParams[_0x2324c4(0x174,0x187)]('operation')&&existingParams[_0x2324c4(0x2b4,0x286)]('operation',_0x2324c4(0x250,0x236));_0x10c3f8['filters']?.['length']&&_0x10c3f8['filters'][_0x2324c4(0x23f,0x1cd)](filter=>{function _0x146568(_0xe92ef4,_0x4e12ed){return _0x1e97(_0x4e12ed-0x2aa,_0xe92ef4);}existingParams[_0x146568(0x509,0x495)](filter['column'],filter[_0x146568(0x4ef,0x46b)]+'.'+filter['value']);});_0x10c3f8['options']?.['prefer']&&(headers['Prefer']=_0x10c3f8[_0x2324c4(0x2b2,0x24f)][_0x2324c4(0x1f7,0x203)]);const updateUrl=_0x37c3ad+'?'+existingParams['toString']();response=await this['httpClient'][_0x2324c4(0x1cb,0x1ed)](updateUrl,_0x10c3f8['data'],{'headers':headers});}else{let _0x53f510=_0x10c3f8['data'];!headers[_0x2324c4(0x225,0x1b0)]&&(headers['Prefer']='return=representation'),_0x10c3f8[_0x2324c4(0x288,0x24f)]?.['upsert']&&(headers[_0x2324c4(0x222,0x1b0)]=_0x2324c4(0x171,0x1e6)),_0x10c3f8['dataArray']&&(_0x53f510=_0x10c3f8[_0x2324c4(0x2c1,0x26f)]),response=await this[_0x2324c4(0x25b,0x235)]['post'](_0x52f568,_0x53f510,{'headers':headers});}}}return{'data':response['data'],'error':null,'count':response[_0x2324c4(0x2a8,0x278)]?.['x-total-count']?parseInt(response[_0x2324c4(0x24b,0x278)][_0x2324c4(0x208,0x221)]):undefined};}catch(_0x5c312c){return{'data':null,'error':_0x5c312c instanceof EBaaSError?_0x5c312c:new EBaaSError(_0x5c312c instanceof Error?_0x5c312c['message']:'Database\x20operation\x20failed',0x0,_0x5c312c)};}}}class CustomDatabaseManager{constructor(_0x2f32fd,_0x4cf8f0){this[_0x3f81c5(0x2d,0x96)]=_0x2f32fd;function _0x3f81c5(_0x30df03,_0x57d5c3){return _0x1e97(_0x57d5c3- -0x104,_0x30df03);}this[_0x3f81c5(-0x2e,-0xd)]=_0x4cf8f0;}async['detectCustomDatabase'](){if(!this[_0x13d976(-0x173,-0x131)])return{'hasCustomDatabase':![]};try{const response=await this['httpClient'][_0x13d976(-0x8a,-0x111)]('/admin/v1/workspace/custom-database',{'headers':{'x-workspace-id':this['workspaceId']}});if(response[_0x13d976(-0xa4,-0xf4)]===0xc8&&response[_0x13d976(-0xe6,-0x126)]?.[_0x13d976(-0x167,-0x1b1)]){const config=response[_0x13d976(-0xe6,-0xb7)]['config'],_0x3dcb2b={'host':config[_0x13d976(-0x157,-0x15e)],'port':config[_0x13d976(-0x124,-0x128)],'database':config[_0x13d976(-0xf7,-0x11f)],'username':config['postgresUsername'],'password':'','schema':config[_0x13d976(-0xb3,-0x43)],'sslEnabled':config[_0x13d976(-0x91,-0x96)]};return this['detectedConfig']={'hasCustomDatabase':!![],'config':config,'credentials':_0x3dcb2b},this['detectedConfig'];}}catch(_0x38820c){if(_0x38820c?.[_0x13d976(-0xa4,-0x7c)]===0x194)return this['detectedConfig']={'hasCustomDatabase':![]},this['detectedConfig'];console['warn']('Failed to detect custom database configuration:',_0x38820c);}this[_0x13d976(-0xb8,-0x13d)]={'hasCustomDatabase':![]};function _0x13d976(_0x1a635d,_0x21e183){return _0x1e97(_0x1a635d- -0x26a,_0x21e183);}return this['detectedConfig'];}async['testConnection'](_0x5afb99){function _0x56c45d(_0x2db072,_0xd25011){return _0x1e97(_0xd25011-0x3b9,_0x2db072);}try{const response=await this[_0x56c45d(0x5ad,0x553)]['post']('/admin/v1/workspace/custom-database/test-connection',_0x5afb99,{'headers':this['workspaceId']?{'X-Workspace-ID':this[_0x56c45d(0x449,0x4b0)]}:{}});return response[_0x56c45d(0x52d,0x53d)];}catch(_0xd4ad51){return{'success':![],'message':_0xd4ad51?.['message']||_0x56c45d(0x5d4,0x58b)};}}async['configureCustomDatabase'](_0x134a49){if(!this[_0x229870(0x389,0x338)])throw new Error('Workspace ID is required to configure custom database');const response=await this['httpClient'][_0x229870(0x3aa,0x3ad)]('/admin/v1/workspace/custom-database',{'workspaceId':this['workspaceId'],..._0x134a49},{'headers':{'X-Workspace-ID':this[_0x229870(0x389,0x35f)]}}),config=response['data']['config'];function _0x229870(_0x157e37,_0x12a750){return _0x1e97(_0x157e37-0x292,_0x12a750);}return this[_0x229870(0x444,0x3f7)]={'hasCustomDatabase':!![],'config':config,'credentials':_0x134a49},config;}async[_0x4bcf27(-0x2e5,-0x2c5)](){function _0x4b1fc1(_0x190779,_0x536579){return _0x1e97(_0x190779-0x81,_0x536579);}if(!this[_0x4b1fc1(0x178,0x1a0)])throw new Error('Workspace ID is required to remove custom database');await this['httpClient']['delete']('/admin/v1/workspace/custom-database',{'headers':{'X-Workspace-ID':this[_0x4b1fc1(0x178,0x10c)]}}),this['detectedConfig']={'hasCustomDatabase':![]};}[_0x4bcf27(-0x2c2,-0x33e)](){return this['detectedConfig'];}[_0x4bcf27(-0x278,-0x203)](){function _0x51e11(_0x26be23,_0x941d61){return _0x1e97(_0x26be23- -0x190,_0x941d61);}return this[_0x51e11(0x22,-0x24)]?.['hasCustomDatabase']??![];}[_0x4bcf27(-0x22c,-0x1c1)](){function _0x44e15(_0x549620,_0x1a8c26){return _0x1e97(_0x549620- -0x37e,_0x1a8c26);}return this['detectedConfig']?.[_0x44e15(-0x1f4,-0x19e)];}[_0x4bcf27(-0x20c,-0x183)](_0xdef9b){this['workspaceId']=_0xdef9b;function _0xc06c89(_0x5f0a9e,_0x5c7573){return _0x1e97(_0x5c7573-0x8,_0x5f0a9e);}this[_0xc06c89(0x203,0x1ba)]=undefined;}[_0x4bcf27(-0x2ac,-0x25e)](){return this['workspaceId'];}[_0x4bcf27(-0x2fd,-0x2b3)](){function _0x115f63(_0x55beef,_0x47cd34){return _0x1e97(_0x47cd34- -0x35e,_0x55beef);}return{'workspaceId':this[_0x115f63(-0x2e1,-0x267)],'hasConfig':this['hasCustomDatabase'](),'configDetails':this[_0x115f63(-0x1de,-0x1ac)]?.['credentials']?{'host':this[_0x115f63(-0x181,-0x1ac)][_0x115f63(-0x243,-0x1d4)][_0x115f63(-0x1f5,-0x230)],'port':this['detectedConfig'][_0x115f63(-0x1f3,-0x1d4)][_0x115f63(-0x16f,-0x1e8)],'database':this['detectedConfig'][_0x115f63(-0x198,-0x1d4)][_0x115f63(-0x241,-0x224)],'schema':this[_0x115f63(-0x156,-0x1ac)][_0x115f63(-0x1fa,-0x1d4)]['schema']||_0x115f63(-0x18e,-0x1de),'sslEnabled':this['detectedConfig'][_0x115f63(-0x1a8,-0x1d4)][_0x115f63(-0x175,-0x185)]||![]}:undefined};}}class DatabaseClient{constructor(_0x17e20a,_0x25af0b){this['httpClient']=_0x17e20a,this['customDatabaseManager']=new CustomDatabaseManager(_0x17e20a,_0x25af0b);}['from'](_0x25b317){function _0x78ae68(_0x60069b,_0x3d1d82){return _0x1e97(_0x3d1d82- -0x1be,_0x60069b);}return new QueryBuilder(this['httpClient'],_0x25b317,this[_0x78ae68(-0x9c,-0x89)],this['customDatabaseManager'][_0x78ae68(-0x38,-0x86)]());}[_0x4bcf27(-0x277,-0x259)](_0x352a38,_0x114a7a){function _0x28cad8(_0x581532,_0x4dfb2a){return _0x1e97(_0x581532- -0x2a,_0x4dfb2a);}return this[_0x28cad8(0x170,0xf8)][_0x28cad8(0xee,0x16a)]('/rpc/'+_0x352a38,_0x114a7a);}['schema'](_0x544784){const _0x20d405=new DatabaseClient(this['httpClient'],this['customDatabaseManager']['getWorkspaceId']());_0x20d405[_0x406a6e(0x376,0x334)]=_0x544784;function _0x406a6e(_0x1e443c,_0x36bb69){return _0x1e97(_0x36bb69-0x1ff,_0x1e443c);}return _0x20d405['customDatabaseManager']=this[_0x406a6e(0x3e2,0x3f3)],_0x20d405;}async['detectCustomDatabase'](){return this['customDatabaseManager']['detectCustomDatabase']();}async['testCustomConnection'](_0x47e350){function _0x369a8b(_0x468f80,_0x1e7302){return _0x1e97(_0x468f80- -0x327,_0x1e7302);}return this[_0x369a8b(-0x133,-0xf6)][_0x369a8b(-0x1ec,-0x1d0)](_0x47e350);}async[_0x4bcf27(-0x252,-0x20e)](_0x29c3bb){function _0x736b39(_0xf304a6,_0x120497){return _0x1e97(_0x120497-0x288,_0xf304a6);}return this[_0x736b39(0x414,0x47c)][_0x736b39(0x39d,0x41a)](_0x29c3bb);}async['removeCustomDatabase'](){function _0x5dfafc(_0x4620b0,_0x370bde){return _0x1e97(_0x4620b0- -0x137,_0x370bde);}return this['customDatabaseManager'][_0x5dfafc(-0x38,-0xa6)]();}[_0x4bcf27(-0x2df,-0x30c)](){function _0x419227(_0x31379c,_0x6581eb){return _0x1e97(_0x6581eb-0xb3,_0x31379c);}return this[_0x419227(0x24b,0x2a7)][_0x419227(0x27c,0x21f)]();}['getCustomDatabaseStatus'](){function _0x353d72(_0x50c55a,_0x960305){return _0x1e97(_0x960305- -0x117,_0x50c55a);}return this[_0x353d72(0xb6,0xdd)]['getStatus']();}[_0x4bcf27(-0x20c,-0x18c)](_0x413635){function _0x52ade4(_0x3d363a,_0x1279d8){return _0x1e97(_0x3d363a-0x16e,_0x1279d8);}this[_0x52ade4(0x362,0x344)]['setWorkspaceId'](_0x413635);}async['initialize'](){function _0xfd5419(_0x1a3158,_0x5b5f99){return _0x1e97(_0x1a3158- -0x347,_0x5b5f99);}try{await this[_0xfd5419(-0x153,-0x16b)]['detectCustomDatabase']();}catch(_0x55cd05){console[_0xfd5419(-0x177,-0x15a)]('Failed to initialize custom database detection:',_0x55cd05);}}}class StorageBucket{constructor(_0x330dcf,bucketId){this[_0x22148a(-0xae,-0xc4)]=_0x330dcf;function _0x22148a(_0x53f90b,_0x5a38bb){return _0x1e97(_0x53f90b- -0x248,_0x5a38bb);}this['bucketId']=bucketId;}async[_0x4bcf27(-0x1f6,-0x248)](_0x523823,_0xd3d5d4,_0x1e4e0a){function _0x2e5353(_0x4516a5,_0x5d8009){return _0x1e97(_0x4516a5- -0x1e4,_0x5d8009);}try{const _0x342624=new FormData();if(_0xd3d5d4 instanceof File)_0x342624['append']('file',_0xd3d5d4);else{if(_0xd3d5d4 instanceof Blob)_0x342624[_0x2e5353(0x7,0x26)](_0x2e5353(-0xad,-0x4a),_0xd3d5d4,_0x523823);else{if(_0xd3d5d4 instanceof ArrayBuffer)_0x342624[_0x2e5353(0x7,0x1e)]('file',new Blob([_0xd3d5d4]),_0x523823);else typeof _0xd3d5d4==='string'&&_0x342624['append'](_0x2e5353(-0xad,-0x31),new Blob([_0xd3d5d4],{'type':'text/plain'}),_0x523823);}}_0x342624[_0x2e5353(0x7,0x4a)]('path',_0x523823);_0x1e4e0a?.['cacheControl']&&_0x342624[_0x2e5353(0x7,-0x3a)](_0x2e5353(-0xe6,-0x14a),_0x1e4e0a['cacheControl']);_0x1e4e0a?.[_0x2e5353(-0x9f,-0x112)]&&_0x342624[_0x2e5353(0x7,-0x70)](_0x2e5353(-0x9f,-0x8b),_0x1e4e0a[_0x2e5353(-0x9f,-0x1f)]);_0x1e4e0a?.['metadata']&&_0x342624['append']('metadata',JSON['stringify'](_0x1e4e0a[_0x2e5353(-0x40,-0x1)]));const _0x36820e='/storage/buckets/'+this[_0x2e5353(-0xc9,-0xc8)]+'/files'+(_0x1e4e0a?.[_0x2e5353(0x6,-0x3b)]?'?upsert=true':''),response=await this['httpClient'][_0x2e5353(-0xcc,-0x83)](_0x36820e,_0x342624,{'headers':{'Content-Type':'multipart/form-data'}});return{'data':response[_0x2e5353(-0x60,-0x6)],'error':null};}catch(_0x38ef23){return{'data':null,'error':_0x38ef23 instanceof EBaaSError?_0x38ef23:new EBaaSError(_0x38ef23 instanceof Error?_0x38ef23['message']:'Failed\x20to\x20upload\x20file',0x0,_0x38ef23)};}}async['download'](_0x33a4cd,_0x2fde01){function _0x2f4974(_0x5d3c6e,_0x2d77c4){return _0x1e97(_0x2d77c4- -0x1a6,_0x5d3c6e);}try{const _0xbc512d=new URLSearchParams();_0x2fde01?.['transform']&&Object['entries'](_0x2fde01[_0x2f4974(-0x9e,-0x34)])['forEach'](([_0x401660,_0x3ba7a8])=>{_0x3ba7a8!==undefined&&_0xbc512d['append'](_0x401660,String(_0x3ba7a8));});const _0xacf894='/storage/buckets/'+this[_0x2f4974(-0xb,-0x8b)]+'/files/'+_0x33a4cd+(_0xbc512d['toString']()?'?'+_0xbc512d['toString']():''),response=await this['httpClient']['get'](_0xacf894,{'responseType':'blob'});return{'data':response[_0x2f4974(0x1e,-0x22)],'error':null};}catch(_0x406b14){return{'data':null,'error':_0x406b14 instanceof EBaaSError?_0x406b14:new EBaaSError(_0x406b14 instanceof Error?_0x406b14[_0x2f4974(0x52,0x3f)]:'Failed\x20to\x20download\x20file',0x0,_0x406b14)};}}async[_0x4bcf27(-0x281,-0x2b2)](_0xb8e78a,_0x4d0e91){function _0x296c84(_0x477465,_0x323364){return _0x1e97(_0x477465- -0x35a,_0x323364);}try{const _0x437983=new URLSearchParams();_0xb8e78a&&_0x437983['append'](_0x296c84(-0x22a,-0x234),_0xb8e78a);_0x4d0e91?.['limit']&&_0x437983[_0x296c84(-0x16f,-0x176)](_0x296c84(-0x17e,-0x1d6),String(_0x4d0e91[_0x296c84(-0x17e,-0x1f5)]));_0x4d0e91?.['offset']&&_0x437983[_0x296c84(-0x16f,-0x174)](_0x296c84(-0x20b,-0x289),String(_0x4d0e91['offset']));_0x4d0e91?.[_0x296c84(-0x270,-0x256)]&&_0x437983['append']('sortBy',JSON[_0x296c84(-0x25a,-0x287)](_0x4d0e91['sortBy']));_0x4d0e91?.['search']&&_0x437983['append'](_0x296c84(-0x17f,-0x1d7),_0x4d0e91['search']);const _0x4a0a4f='/storage/buckets/'+this['bucketId']+'/files'+(_0x437983['toString']()?'?'+_0x437983['toString']():''),response=await this['httpClient']['get'](_0x4a0a4f);return{'data':response[_0x296c84(-0x1d6,-0x249)],'error':null};}catch(_0x464cb1){return{'data':null,'error':_0x464cb1 instanceof EBaaSError?_0x464cb1:new EBaaSError(_0x464cb1 instanceof Error?_0x464cb1['message']:_0x296c84(-0x1ea,-0x25a),0x0,_0x464cb1)};}}async['remove'](_0x354792){function _0x7cc89b(_0x52a249,_0xfccdde){return _0x1e97(_0x52a249- -0x30f,_0xfccdde);}try{const response=await this[_0x7cc89b(-0x175,-0xf6)]['delete']('/storage/buckets/'+this[_0x7cc89b(-0x1f4,-0x1e7)]+'/files',{'data':{'paths':_0x354792}});return{'data':response[_0x7cc89b(-0x18b,-0x125)],'error':null};}catch(_0x212b58){return{'data':null,'error':_0x212b58 instanceof EBaaSError?_0x212b58:new EBaaSError(_0x212b58 instanceof Error?_0x212b58[_0x7cc89b(-0x12a,-0x196)]:'Failed\x20to\x20remove\x20files',0x0,_0x212b58)};}}async[_0x4bcf27(-0x1fd,-0x278)](fromPath,_0x16f21d){function _0x1edd8d(_0x8a2b2c,_0x43557f){return _0x1e97(_0x43557f- -0x1b,_0x8a2b2c);}try{const response=await this['httpClient']['post']('/storage/buckets/'+this['bucketId']+_0x1edd8d(0x210,0x1a4),{'sourceKey':fromPath,'destinationKey':_0x16f21d});return{'data':response['data'],'error':null};}catch(_0x5e2101){return{'data':null,'error':_0x5e2101 instanceof EBaaSError?_0x5e2101:new EBaaSError(_0x5e2101 instanceof Error?_0x5e2101['message']:'Failed\x20to\x20move\x20file',0x0,_0x5e2101)};}}async[_0x4bcf27(-0x2a0,-0x261)](fromPath,_0x19c955){function _0x4dd2c6(_0x152434,_0x23afbb){return _0x1e97(_0x152434-0x318,_0x23afbb);}try{const response=await this['httpClient']['post'](_0x4dd2c6(0x48f,0x462)+this[_0x4dd2c6(0x433,0x47e)]+_0x4dd2c6(0x410,0x3ad),{'sourceKey':fromPath,'destinationKey':_0x19c955});return{'data':response[_0x4dd2c6(0x49c,0x500)],'error':null};}catch(_0x4f5bdb){return{'data':null,'error':_0x4f5bdb instanceof EBaaSError?_0x4f5bdb:new EBaaSError(_0x4f5bdb instanceof Error?_0x4f5bdb[_0x4dd2c6(0x4fd,0x504)]:'Failed\x20to\x20copy\x20file',0x0,_0x4f5bdb)};}}async['createSignedUrl'](_0x17dad9,_0xd25562,_0x1d440c){function _0x34c661(_0x5ab250,_0x20862e){return _0x1e97(_0x20862e- -0x3e4,_0x5ab250);}try{const response=await this['httpClient'][_0x34c661(-0x308,-0x2cc)]('/storage/buckets/'+this[_0x34c661(-0x27f,-0x2c9)]+'/files/'+_0x17dad9+'/sign',{'expiresIn':_0xd25562,..._0x1d440c});return{'data':response['data'],'error':null};}catch(_0x203cc3){return{'data':null,'error':_0x203cc3 instanceof EBaaSError?_0x203cc3:new EBaaSError(_0x203cc3 instanceof Error?_0x203cc3[_0x34c661(-0x1b2,-0x1ff)]:_0x34c661(-0x253,-0x28a),0x0,_0x203cc3)};}}[_0x4bcf27(-0x2d5,-0x293)](_0x28adb0,_0x3d696e){const _0x44d7d2=new URLSearchParams();function _0x1f7074(_0x32207e,_0x3417ea){return _0x1e97(_0x3417ea- -0x3de,_0x32207e);}_0x3d696e?.[_0x1f7074(-0x28c,-0x26c)]&&Object[_0x1f7074(-0x236,-0x29d)](_0x3d696e[_0x1f7074(-0x29c,-0x26c)])['forEach'](([_0x271e49,_0x9c9382])=>{function _0x33afe0(_0x16351a,_0x50dc98){return _0x1e97(_0x16351a- -0x309,_0x50dc98);}_0x9c9382!==undefined&&_0x44d7d2[_0x33afe0(-0x11e,-0xf1)](_0x271e49,String(_0x9c9382));});const _0x11218a=this[_0x1f7074(-0x216,-0x244)]['baseURL']||'',_0x5a66a6=_0x11218a+'/storage/buckets/'+this['bucketId']+'/files/'+_0x28adb0+(_0x44d7d2['toString']()?'?'+_0x44d7d2['toString']():'');return{'data':{'publicUrl':_0x5a66a6}};}async[_0x4bcf27(-0x2ab,-0x2a2)](_0x2bb478){function _0x21f384(_0x15e52f,_0x574386){return _0x1e97(_0x15e52f- -0x29b,_0x574386);}try{const response=await this[_0x21f384(-0x101,-0xce)]['get']('/storage/buckets/'+this['bucketId']+_0x21f384(-0x12d,-0xd6)+_0x2bb478+_0x21f384(-0x1ab,-0x123));return{'data':response['data'],'error':null};}catch(_0x4946aa){return{'data':null,'error':_0x4946aa instanceof EBaaSError?_0x4946aa:new EBaaSError(_0x4946aa instanceof Error?_0x4946aa['message']:_0x21f384(-0xf5,-0x17d),0x0,_0x4946aa)};}}async['updateFileMetadata'](_0x3a4540,metadata){function _0x469047(_0x2316c5,_0x369d1d){return _0x1e97(_0x369d1d- -0x3db,_0x2316c5);}try{const response=await this['httpClient']['put'](_0x469047(-0x25b,-0x264)+this['bucketId']+'/files/'+_0x3a4540+'/metadata',{'metadata':metadata});return{'data':response['data'],'error':null};}catch(_0x142d0f){return{'data':null,'error':_0x142d0f instanceof EBaaSError?_0x142d0f:new EBaaSError(_0x142d0f instanceof Error?_0x142d0f[_0x469047(-0x19b,-0x1f6)]:_0x469047(-0x2bc,-0x2c7),0x0,_0x142d0f)};}}}class StorageClient{constructor(_0x70bc8){function _0x34ecf5(_0x513893,_0x5813cb){return _0x1e97(_0x513893-0x3b4,_0x5813cb);}this[_0x34ecf5(0x54e,0x58a)]=_0x70bc8;}[_0x4bcf27(-0x23f,-0x284)](bucketId){function _0x444113(_0x797eef,_0x1c7e5e){return _0x1e97(_0x1c7e5e- -0x24f,_0x797eef);}return new StorageBucket(this[_0x444113(-0x123,-0xb5)],bucketId);}async['createBucket'](_0x1f7f90,_0xa57d4a){function _0x44d64a(_0x411cdc,_0x3f9b84){return _0x1e97(_0x3f9b84-0x3b5,_0x411cdc);}try{const response=await this[_0x44d64a(0x571,0x54f)][_0x44d64a(0x4ae,0x4cd)]('/storage/buckets',{'id':_0x1f7f90,..._0xa57d4a});return{'data':response['data'],'error':null};}catch(_0x41e3b7){return{'data':null,'error':_0x41e3b7 instanceof EBaaSError?_0x41e3b7:new EBaaSError(_0x41e3b7 instanceof Error?_0x41e3b7['message']:'Failed\x20to\x20create\x20bucket',0x0,_0x41e3b7)};}}async[_0x4bcf27(-0x22b,-0x24c)](_0x3e187b){function _0x3f1f5e(_0x4dd790,_0x5f5840){return _0x1e97(_0x5f5840-0x2f1,_0x4dd790);}try{const response=await this[_0x3f1f5e(0x480,0x48b)]['get'](_0x3f1f5e(0x46b,0x468)+_0x3e187b);return{'data':response[_0x3f1f5e(0x49a,0x475)],'error':null};}catch(_0x2652d4){return{'data':null,'error':_0x2652d4 instanceof EBaaSError?_0x2652d4:new EBaaSError(_0x2652d4 instanceof Error?_0x2652d4[_0x3f1f5e(0x508,0x4d6)]:_0x3f1f5e(0x3e5,0x3e7),0x0,_0x2652d4)};}}async['listBuckets'](){function _0x1f089e(_0x497e73,_0x378fbd){return _0x1e97(_0x497e73-0x33f,_0x378fbd);}try{const response=await this['httpClient'][_0x1f089e(0x51f,0x555)]('/storage/buckets');return{'data':response[_0x1f089e(0x4c3,0x512)],'error':null};}catch(_0x497f8c){return{'data':null,'error':_0x497f8c instanceof EBaaSError?_0x497f8c:new EBaaSError(_0x497f8c instanceof Error?_0x497f8c[_0x1f089e(0x524,0x4c8)]:_0x1f089e(0x530,0x56f),0x0,_0x497f8c)};}}async['updateBucket'](_0x4c2855,_0xa9d043){function _0xb2df81(_0x575e96,_0x21010a){return _0x1e97(_0x21010a-0x206,_0x575e96);}try{const response=await this['httpClient'][_0xb2df81(0x418,0x3a2)]('/storage/buckets/'+_0x4c2855,_0xa9d043);return{'data':response[_0xb2df81(0x3c2,0x38a)],'error':null};}catch(_0x7026c3){return{'data':null,'error':_0x7026c3 instanceof EBaaSError?_0x7026c3:new EBaaSError(_0x7026c3 instanceof Error?_0x7026c3[_0xb2df81(0x46a,0x3eb)]:'Failed\x20to\x20update\x20bucket',0x0,_0x7026c3)};}}async['deleteBucket'](_0x532e34){function _0xc55dae(_0x124c0b,_0x13be33){return _0x1e97(_0x124c0b-0x336,_0x13be33);}try{const response=await this[_0xc55dae(0x4d0,0x517)]['delete'](_0xc55dae(0x4ad,0x446)+_0x532e34);return{'data':response['data'],'error':null};}catch(_0x3deb7e){return{'data':null,'error':_0x3deb7e instanceof EBaaSError?_0x3deb7e:new EBaaSError(_0x3deb7e instanceof Error?_0x3deb7e[_0xc55dae(0x51b,0x4ee)]:'Failed\x20to\x20delete\x20bucket',0x0,_0x3deb7e)};}}async['getUsage'](){function _0x5e5742(_0x3eeaf3,_0x1c9107){return _0x1e97(_0x3eeaf3-0x204,_0x1c9107);}try{const response=await this['httpClient']['get']('/storage/usage');return{'data':response[_0x5e5742(0x388,0x3ac)],'error':null};}catch(_0x1f2905){return{'data':null,'error':_0x1f2905 instanceof EBaaSError?_0x1f2905:new EBaaSError(_0x1f2905 instanceof Error?_0x1f2905[_0x5e5742(0x3e9,0x460)]:'Failed\x20to\x20get\x20storage\x20usage',0x0,_0x1f2905)};}}}function _0x5df5(){const _0x43cb85=['BM9Kzq','zxjYB3i','DxbKyxrLt3b0Aw9UCW','zxHLy3v0zvf1zxj5','ChjLzMvY','yM9KEq','AM9PBMvK','ChvZAa','AgfZq3vZDg9Trgf0ywjHC2u','CNbJ','l2zPBgvZlW','Bwf4uMvJB25Uzwn0qxr0zw1WDhm','rMfPBgvKihrVigXPC3qGzMLSzxm','C2vUza','DhjHBNnMB3jT','Cg9ZDgDYzxneyxrHyMfZzq','z2v0twv0CMLJCW','CMfUzg9T','Cg9YDa','l3n0B3jHz2uVyNvJA2v0CY8','Cg9ZDgDYzxnFy2HHBMDLCW','B25qB3n0z3jLC0nOyw5Nzxm','yxv0B0rLDgvJDen1C3rVBurHDgfIyxnL','CxvLCNK','Aw5PDgLHBgL6zun1C3rVBurHDgfIyxnL','x3jLAM9PBG','CMvTB3zLq2HHBM5LBa','mZa0mta1nwfLDgTiCa','ChvIBgLJ','z2v0u2vZC2LVBG','zxjYB3jLza','ndu3mti1sM10wvjv','zgf0yq','C3vIC2nYAxb0Aw9UCW','Ec10B3rHBc1JB3vUDa','yxnJzw5KAw5N','zxHLy3v0zq','ms4XlJG','y3jLzgvUDgLHBhm','Dw5ZDwjZy3jPyMu','z3rL','l2f1DgGVDJeVC2rRl3nPz25PBG','C3rHDgu','y29TBw9U','y29UBMvJDgLUzW','Cg9ZDgDYzxnFy2HHBMDLCZO','y29UzMLNDxjLq3vZDg9Trgf0ywjHC2u','CMvHBhrPBwu','y2HHBM5LBa','l2f1DgGVDJeVC2LNBM91Da','C3rHy2S','mta3mLPSA2LKvq','y29UBMvJDf9LCNjVCG','rMfPBgvKihrVigrLCgXVEsbMDw5JDgLVBG','Ahr0CenSAwvUDa','DxbKyxrL','Chv0','CMvJB25Uzwn0','CgfYC2u','z2XVyMfS','zMLSDgvYCW','Bgv2zwW','C2vZC2LVBG','CMvMCMvZAf90B2TLBG','Bwv0ywrHDge','zNjVBq','rMfPBgvKihrVigDLDcbMAwXLigLUzM8','zxzLBNrZ','DxbKyxrLvxnLCG','C2v0qxv0AfrVA2vU','x2PVAw4','Bg9HzfnLC3nPB24','CgvYAw9K','p29WzxjHDgLVBJ11ChnLCNq','Aw1WB3j0twfW','AxndB25Uzwn0zwq','AM9PBG','AwXPA2u','zgv0zwn0zwrdB25MAwC','z2v0twf4tgLZDgvUzxjZ','B3b0Aw9UCW','y29Kzq','DMfSDwvZ','Cg9ZDgDYzxnty2HLBwe','z2v0q3vZDg9Tq3jLzgvUDgLHBhm','z2v0qNvJA2v0','mtqWnZntzhHezvi','CMvHy3qTBMf0AxzL','DxnLCG','DMvYAwz5','Aw5PDgLHBgL6zq','l2zPBgvZl21VDMu','zgv0ywLSCW','B3bLCMf0B3i','C3vIC2nYAwjLx3bVC3rNCMvZx2nOyw5Nzxm','zw1PDa','AgfUzgXLqxv0AevYCM9Y','y29SDw1U','C3rHDhvZ','Bg9N','AgfUzgXLrxjYB3i','lMfZyW','y2fWDhvYzvn0ywnRvhjHy2u','rMfPBgvKihrVigDLDcbMDw5JDgLVBIbTzxrYAwnZ','C2v0','igf0DgvTChrZoIa','C2LNBK91Da','rNvUy3rPB24GAw52B2nHDgLVBIbMywLSzwq','D2fYBG','DgLTzw91Da','rMfPBgvKihrVihrLC3qGy29UBMvJDgLVBG','u29JA2v0lMLVlwnSAwvUDcbUW6nVigvZDmoHigrPC3bVBSoTDMvSlIbqyxjHifjLywn0ie5HDgL2zsWGAw5ZDgfSztOGBNbTigLUC3rHBgWGC29JA2v0lMLVlwnSAwvUDa','zgf0yufYCMf5','B2zM','mJbXsvD5wwm','DxnL','C2v0v29YA3nWywnLswq','C3nSrw5HyMXLza','B3bLCMf0Aw9U','C2vHCMnO','BgLTAxq','AgvHzgvYCW','l21LDhjPy3m','z2v0tg9NCW','z2v0','rujHyvnfCNjVCG','y2XVC2vK','CMvWBgfJzq','C2L6zq','BwvZC2fNzq','C2nOzw1H','Bw92zq','y29UDgfPBNm','BMfTzq','DxbZzxj0','yxbWzw5K','zwjHyxmUyxv0Ac5ZzxnZAw9U','BgvHDMLUzW','DxbSB2fK','BMvX','C2v0sxrLBq','rMfPBgvKihrVigXPC3qGyNvJA2v0CW','C2v0u2vZC2LVBKLUDgvYBMfS','BgvHDMu','y3vZDg9Trgf0ywjHC2vnyw5Hz2vY','BgLZDgvUzxjZ','zgLZy29UBMvJDa','DhjHy2S','z2v0u3rHDhvZ','zgvSzxrL','BwfRzvjLzG','C29YDej5','AM9PBMvKt25Jzq','AgfZ','Dw50CMfJAW','mZK1otvVDe11y3O','BwfW','l2LUzM8','zgvMyxvSDhm','yNjVywrJyxn0','mte3mMfXsu5Tta','Aw5KzxGUDhm','vw5ZDxbWB3j0zwqGsfruucbTzxrOB2q6ia','rMfPBgvKihrVigDLDcbIDwnRzxq','D29YA3nWywnLswq','l2zPBgvZl2nVChK','BgLRzq','B25dB25Uzwn0Aw9Uu3rHDgvdAgfUz2u','yNvJA2v0','C3rYAw5N','ntyYoen5q1jAzW','y2fJAgvdB250CM9S','CMvTB3zLq3vZDg9Trgf0ywjHC2u','C3rYAw5NAwz5','C29JA2v0lMLVlwnSAwvUDcbUB3qGyxzHAwXHyMXL','y2XPzw50','y29UzMLN','mJaZnZm1mg5vD0HmDW','AxnvC2LUz0n1C3rVBurHDgfIyxnL','CMvTB3zLqxv0AfrVA2vU','zgvWBg95','AM9PBMLUzW','BgvUz3rO','y29UBMvJDa','u29JA2v0lMLVlwnSAwvUDcbUW6nVigvZDmoHigrPC3bVBSoTDMvSig5LC3rLigfTyMLLBNrLlIbqyxjHihvZyxiGzNvUy2LVBMfSAwrHzgvZigrLihjLywX0Aw1LlcbPBNn0ywXLoIbUCg0GAw5ZDgfSBcbZB2nRzxqUAw8Ty2XPzw50','CMvZB2X2zq','DxjS','Aw52B2TL','z2v0uhvIBgLJvxjS','mJrht3jzu2K','z2v0q2HHBM5LBhm','DMvYC2LVBNm','Cg9ZDgDYzxniB3n0','rMfPBgvKihrVihvWzgf0zsbMAwXLig1LDgfKyxrH','uhjLzMvY','Aw50zxjJzxb0B3jZ','Dgv4Dc9WBgfPBG','Cg9ZDa','BxvSDgLWyxj0l2zVCM0Tzgf0yq','l3nKAY92ms8','yNvJA2v0swq','yxbPs2v5','Dg9ku09o','y29UBMvJDgvK','AgvHCNrIzwf0sw50zxj2ywW','CMvQzwn0','Dw5KzwzPBMvK','z2v0rgv0zwn0zwrdB25MAwC','Dg9WAwm','CMvZCg9UC2u','zw50CNLWB2LUDa','zgLZy29UBMvJDgvK','DxbKyxrLrw52','l2f1DgGVDJeVCMvMCMvZAa','Dg9tDhjPBMC','Bwf4tgLZDgvUzxjZ','l2XVz3m','C2v0DxbjBNrLCMnLChrVCNm','B3jKzxi','Ag9ZDa','y2HHBM5LBhm','ChjLzML4','C3rHCNrZv2L0Aa','zM9YrwfJAa','B25Jzq','l2z1BMn0Aw9UCY92ms8','y3vYCMvUDfnJAgvTyq','mta4nNLfzwHuBW','zMLSzq','z2v0v29YA3nWywnLswq','z2v0rMLSzuLUzM8','zgf0ywjHC2u','DgvZDenVBM5Ly3rPB24','C29JA2v0lMLVlwnSAwvUDa','yNjVywrJyxn0oG','zw52','y2XLyxi','z2v0vxnLCG','zw50CMLLCW','DgfIBgu','C2vSzwn0','y29WEq','y29UDgvUDfr5Cgu','Cg9ZDgDYzxnqB3j0','CMfUz2u','l2f1DgGVDJeVCMvZzxqTCgfZC3DVCMq','y29UBMvJDgLVBLn0yxrL','y3vYCMvUDfnLC3nPB24','CMvZB2X1DgLVBJ1TzxjNzs1KDxbSAwnHDgvZlhjLDhvYBJ1YzxbYzxnLBNrHDgLVBG','z2v0q3vZDg9Trgf0ywjHC2vtDgf0Dxm','C29JA2v0qwrHChrLCG','mtCYnZGZotnlzNbQv3u','B2zMC2v0','C2v0u2vZC2LVBG','ChjLC2vUy2u6','Cgf0y2G','ChjLCgvUzeXPC3rLBMvY','yMfZzvvsta','CMf3tgLZDgvUzxjZ','C29JA2v0','lMrLC2m','x3nLDfn0yxrL','ChjLC2vUy2u','rMfPBgvKihrVignYzwf0zsbZAwDUzwqGvvjm','zxzLBNq','p29WzxjHDgLVBJ1ZzwXLy3q','y2XLyxjtzxnZAw9U','C29JA2v0t3b0Aw9UCW','ChjLCgvUze9Uy2vmAxn0zw5LCG','AxnezwXLDgu','x3rYAwDNzxi','u1vcu0nssujfra','BgLZDa'];_0x5df5=function(){return _0x43cb85;};return _0x5df5();}function _0x1e97(_0x1256b1,_0x3bacd6){const _0x5df500=_0x5df5();return _0x1e97=function(_0x1e9716,_0x4589a7){_0x1e9716=_0x1e9716-0xe5;let _0x177aed=_0x5df500[_0x1e9716];if(_0x1e97['JRHTFw']===undefined){var _0x693b3f=function(_0x10db32){const _0x1fb62e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x481f57='',_0xe911a0='';for(let _0x26cd03=0x0,_0x12d93d,_0x12c9e4,_0x52f10c=0x0;_0x12c9e4=_0x10db32['charAt'](_0x52f10c++);~_0x12c9e4&&(_0x12d93d=_0x26cd03%0x4?_0x12d93d*0x40+_0x12c9e4:_0x12c9e4,_0x26cd03++%0x4)?_0x481f57+=String['fromCharCode'](0xff&_0x12d93d>>(-0x2*_0x26cd03&0x6)):0x0){_0x12c9e4=_0x1fb62e['indexOf'](_0x12c9e4);}for(let _0x4655aa=0x0,_0x5c1c4e=_0x481f57['length'];_0x4655aa<_0x5c1c4e;_0x4655aa++){_0xe911a0+='%'+('00'+_0x481f57['charCodeAt'](_0x4655aa)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe911a0);};_0x1e97['edwsyl']=_0x693b3f,_0x1256b1=arguments,_0x1e97['JRHTFw']=!![];}const _0x12bbe6=_0x5df500[0x0],_0x258443=_0x1e9716+_0x12bbe6,_0x507cff=_0x1256b1[_0x258443];return!_0x507cff?(_0x177aed=_0x1e97['edwsyl'](_0x177aed),_0x1256b1[_0x258443]=_0x177aed):_0x177aed=_0x507cff,_0x177aed;},_0x1e97(_0x1256b1,_0x3bacd6);}class EventManager{constructor(){function _0x27ba21(_0x21af30,_0x10b2a2){return _0x1e97(_0x10b2a2- -0x2a2,_0x21af30);}this['events']=new Map(),this[_0x27ba21(-0x1e0,-0x178)]=0xa;}['on'](_0x2614f8,_0x49f56f){!this[_0xe8db23(-0x87,-0xb3)][_0xe8db23(-0x10d,-0x16e)](_0x2614f8)&&this['events'][_0xe8db23(-0x110,-0x8e)](_0x2614f8,new Set());function _0xe8db23(_0x5478d6,_0x1a16db){return _0x1e97(_0x1a16db- -0x25a,_0x5478d6);}this[_0xe8db23(-0x48,-0xb3)][_0xe8db23(-0x60,-0x7a)](_0x2614f8)['add'](_0x49f56f);}[_0x4bcf27(-0x20f,-0x258)](_0x3302a0,_0x3fcdd9){if(!this[_0x641eba(0x2e6,0x28d)][_0x641eba(0x1d7,0x1d2)](_0x3302a0))return;function _0x641eba(_0xd142be,_0x546948){return _0x1e97(_0x546948-0xe6,_0xd142be);}const _0x79106f=this['events']['get'](_0x3302a0);_0x3fcdd9?_0x79106f[_0x641eba(0x181,0x1ce)](_0x3fcdd9):_0x79106f[_0x641eba(0x294,0x225)](),_0x79106f[_0x641eba(0x26a,0x2ca)]===0x0&&this[_0x641eba(0x252,0x28d)][_0x641eba(0x1ac,0x1ce)](_0x3302a0);}['emit'](_0x4c007c,..._0x5bc328){if(!this[_0x5c7383(0x23f,0x2c3)][_0x5c7383(0x18b,0x208)](_0x4c007c))return![];function _0x5c7383(_0x2c051a,_0x45ecd4){return _0x1e97(_0x45ecd4-0x11c,_0x2c051a);}const _0x22e2a8=this['events'][_0x5c7383(0x2d5,0x2fc)](_0x4c007c);for(const _0x533c1b of _0x22e2a8){try{_0x533c1b(..._0x5bc328);}catch(_0x2601c8){console[_0x5c7383(0x22c,0x281)]('Error\x20in\x20event\x20listener\x20for\x20\x22'+_0x4c007c+'\x22:',_0x2601c8);}}return _0x22e2a8['size']>0x0;}['removeAllListeners'](_0x8d5bb3){_0x8d5bb3?this['events']['delete'](_0x8d5bb3):this['events']['clear']();}['listenerCount'](_0x186569){function _0x489464(_0xe6de31,_0x1389b1){return _0x1e97(_0xe6de31- -0x393,_0x1389b1);}return this[_0x489464(-0x1ec,-0x164)]['get'](_0x186569)?.['size']??0x0;}['eventNames'](){function _0x4dfbdb(_0x252b29,_0x34a3cb){return _0x1e97(_0x252b29- -0x21,_0x34a3cb);}return Array['from'](this[_0x4dfbdb(0x186,0x1a6)]['keys']());}[_0x4bcf27(-0x1ef,-0x249)](_0x18f594){function _0x20060a(_0x55c6b8,_0x53d536){return _0x1e97(_0x53d536-0x2af,_0x55c6b8);}return Array['from'](this['events'][_0x20060a(0x406,0x48f)](_0x18f594)??[]);}['addListener'](_0xa10ef2,_0x173863){this['on'](_0xa10ef2,_0x173863);}['removeListener'](_0x59bd16,_0x4fddf8){function _0x1f7f72(_0x5ce929,_0x18ee55){return _0x1e97(_0x18ee55-0x124,_0x5ce929);}this[_0x1f7f72(0x296,0x2f9)](_0x59bd16,_0x4fddf8);}[_0x4bcf27(-0x2b1,-0x321)](_0x5ca79b,_0x10176d){const _0xb39156=(..._0x298c12)=>{this['off'](_0x5ca79b,_0xb39156),_0x10176d(..._0x298c12);};this['on'](_0x5ca79b,_0xb39156);}[_0x4bcf27(-0x291,-0x283)](_0x11344a,_0x2c68a0){this['on'](_0x11344a,_0x2c68a0);}[_0x4bcf27(-0x285,-0x291)](_0x18d7ac,_0x360d16){const _0x2fc9cd=(..._0xbe3615)=>{this[_0x56995f(-0x72,-0xb3)](_0x18d7ac,_0x2fc9cd);function _0x56995f(_0x598a6e,_0x4d4a94){return _0x1e97(_0x4d4a94- -0x288,_0x598a6e);}_0x360d16(..._0xbe3615);};this['on'](_0x18d7ac,_0x2fc9cd);}['setMaxListeners'](_0x4d87e0){return this['maxListeners']=_0x4d87e0,this;}[_0x4bcf27(-0x231,-0x285)](){return this['maxListeners'];}[_0x4bcf27(-0x28f,-0x305)](_0x43f66a){function _0x3799bc(_0x5d690e,_0x3e5e97){return _0x1e97(_0x5d690e-0x173,_0x3e5e97);}return this[_0x3799bc(0x368,0x348)](_0x43f66a);}}class RealtimeChannel extends EventManager{constructor(_0x7adbd2,_0x5b14c9){super(),this['joinedOnce']=![],this['state']=_0x35fc1f(-0xcc,-0xab),this[_0x35fc1f(-0x129,-0x113)]=new Map(),this[_0x35fc1f(-0x18b,-0x1e3)]=_0x7adbd2;function _0x35fc1f(_0x2f1049,_0x123a31){return _0x1e97(_0x2f1049- -0x2ae,_0x123a31);}this['socket']=_0x5b14c9;}['subscribe'](_0x2d1d78){!this[_0x8ed3b6(-0x231,-0x253)]&&(this[_0x8ed3b6(-0x231,-0x296)]=!![],this['_join']());_0x2d1d78&&this['on']('status',_0x2d1d78);function _0x8ed3b6(_0x8dbf7c,_0x5662cc){return _0x1e97(_0x8dbf7c- -0x31c,_0x5662cc);}return this;}[_0x4bcf27(-0x26b,-0x249)](filter,_0x2f09d0){const _0x40dd05=_0x155c6b(0x2e3,0x296)+JSON[_0x155c6b(0x252,0x1e7)](filter);this['on'](_0x40dd05,_0x2f09d0);const _0x553830={'unsubscribe':()=>{function _0x5a01cc(_0x1ffa14,_0x34d8de){return _0x1e97(_0x34d8de- -0x1b0,_0x1ffa14);}this[_0x5a01cc(0x9f,0x25)](_0x40dd05,_0x2f09d0),this[_0x5a01cc(0x26,-0x2b)]['delete'](_0x40dd05);}};function _0x155c6b(_0x27287b,_0xa57598){return _0x1e97(_0x27287b-0x152,_0xa57598);}return this[_0x155c6b(0x2d7,0x339)][_0x155c6b(0x31e,0x36c)](_0x40dd05,_0x553830),this[_0x155c6b(0x2a8,0x28b)]?.[_0x155c6b(0x270,0x2c5)]&&this['state']===_0x155c6b(0x2bc,0x317)&&this['socket'][_0x155c6b(0x315,0x330)]('subscribe_postgres_changes',{'topic':this[_0x155c6b(0x275,0x29b)],'filter':filter,'ref':this['makeRef']()}),_0x553830;}['onBroadcast'](filter,_0x44a58d){const _0x2e7e1a=_0x5b5215(-0x135,-0xcd)+JSON[_0x5b5215(-0x14b,-0x10a)](filter);function _0x5b5215(_0x1c1541,_0x50a384){return _0x1e97(_0x50a384- -0x20a,_0x1c1541);}this['on'](_0x2e7e1a,_0x44a58d);const _0x33b839={'unsubscribe':()=>{this['off'](_0x2e7e1a,_0x44a58d);function _0x3fcf54(_0x802571,_0x453896){return _0x1e97(_0x453896- -0x224,_0x802571);}this['subscriptions'][_0x3fcf54(-0x14d,-0x13c)](_0x2e7e1a);}};return this['subscriptions'][_0x5b5215(-0x5e,-0x3e)](_0x2e7e1a,_0x33b839),_0x33b839;}['onPresence'](filter,_0x100f51){const _0xa6fdf3=_0xf0ae25(0x239,0x24f)+JSON[_0xf0ae25(0x1b6,0x1fe)](filter);this['on'](_0xa6fdf3,_0x100f51);const _0x15c269={'unsubscribe':()=>{this[_0x49396d(0x28b,0x27d)](_0xa6fdf3,_0x100f51);function _0x49396d(_0x382524,_0x3432fb){return _0x1e97(_0x3432fb-0xa8,_0x382524);}this['subscriptions'][_0x49396d(0x1a4,0x190)](_0xa6fdf3);}};this['subscriptions']['set'](_0xa6fdf3,_0x15c269);function _0xf0ae25(_0x312be0,_0x48aeb5){return _0x1e97(_0x48aeb5-0xfe,_0x312be0);}return _0x15c269;}[_0x4bcf27(-0x273,-0x29a)](_0x4c37ba){return new Promise(_0x53992f=>{function _0x1de3e1(_0x19b39e,_0x41cadc){return _0x1e97(_0x41cadc-0x101,_0x19b39e);}this[_0x1de3e1(0x25f,0x257)]?.[_0x1de3e1(0x25b,0x21f)]&&this['state']==='joined'?(this[_0x1de3e1(0x2c4,0x257)][_0x1de3e1(0x336,0x2c4)]('broadcast',{'topic':this[_0x1de3e1(0x2a1,0x224)],'event':_0x4c37ba[_0x1de3e1(0x243,0x25c)],'payload':_0x4c37ba,'ref':this['makeRef']()}),_0x53992f('ok')):_0x53992f('error');});}[_0x4bcf27(-0x2fe,-0x284)](_0x5750d2){return new Promise(_0x3d4669=>{function _0x31f720(_0x1ab698,_0x310ac0){return _0x1e97(_0x310ac0- -0x2b4,_0x1ab698);}this[_0x31f720(-0x11f,-0x15e)]?.[_0x31f720(-0x198,-0x196)]&&this[_0x31f720(-0x18e,-0x126)]==='joined'?(this[_0x31f720(-0x1da,-0x15e)][_0x31f720(-0xb0,-0xf1)]('presence',{'topic':this['topic'],'event':'track','payload':_0x5750d2,'ref':this['makeRef']()}),_0x3d4669('ok')):_0x3d4669('error');});}[_0x4bcf27(-0x2f7,-0x334)](){return new Promise(_0x5a3f49=>{function _0x1fac05(_0x5b5958,_0x386849){return _0x1e97(_0x386849-0x139,_0x5b5958);}this[_0x1fac05(0x2b8,0x28f)]?.['connected']&&this['state']===_0x1fac05(0x311,0x2a3)?(this[_0x1fac05(0x2a9,0x28f)][_0x1fac05(0x2c4,0x2fc)](_0x1fac05(0x2ca,0x292),{'topic':this['topic'],'event':_0x1fac05(0x290,0x226),'ref':this[_0x1fac05(0x292,0x222)]()}),_0x5a3f49('ok')):_0x5a3f49('error');});}[_0x4bcf27(-0x259,-0x26e)](){return new Promise(_0x3f9676=>{this[_0x4bc7dd(-0x1ca,-0x19c)]='leaving',this['subscriptions']['forEach'](_0x12ee5c=>{function _0x345cf6(_0x2dcd2e,_0x171e9a){return _0x1e97(_0x171e9a- -0x234,_0x2dcd2e);}_0x12ee5c[_0x345cf6(-0xd7,-0xa9)]();}),this[_0x4bc7dd(-0x219,-0x1a5)]['clear']();this['socket']?.[_0x4bc7dd(-0x227,-0x20c)]&&this['socket'][_0x4bc7dd(-0x155,-0x167)](_0x4bc7dd(-0x1b1,-0x137),{'topic':this['topic'],'ref':this['makeRef']()});this[_0x4bc7dd(-0x1d6,-0x19c)]=_0x4bc7dd(-0x195,-0x148);function _0x4bc7dd(_0x30023f,_0x30f2b6){return _0x1e97(_0x30f2b6- -0x32a,_0x30023f);}this['removeAllListeners'](),_0x3f9676('ok');});}[_0x4bcf27(-0x23a,-0x2a9)](){function _0x28c461(_0xbd634f,_0x292e28){return _0x1e97(_0xbd634f-0x42,_0x292e28);}if(this['state']===_0x28c461(0x22f,0x200))return;this['state']='joining',this[_0x28c461(0x198,0x18f)]?.[_0x28c461(0x160,0x149)]&&(this['socket']['emit'](_0x28c461(0x1f2,0x1dd),{'topic':this['topic'],'ref':this['makeRef']()}),setTimeout(()=>{function _0x49332e(_0x5e8a2a,_0x55a25c){return _0x1e97(_0x5e8a2a-0x324,_0x55a25c);}this['state']===_0x49332e(0x42c,0x3e1)&&(this['state']='joined',this['emit'](_0x49332e(0x4ea,0x480),_0x49332e(0x486,0x45a)));},0x64));}[_0x4bcf27(-0x267,-0x2ca)](){function _0x55d38e(_0x282c6e,_0x508d9c){return _0x1e97(_0x508d9c- -0x1b9,_0x282c6e);}this['joinedOnce']&&(this[_0x55d38e(-0x47,-0xf)](),this['subscriptions']['forEach']((_0x3f93bf,_0x1a901e)=>{function _0x3252bf(_0x4b5e4b,_0x3b4069){return _0x1e97(_0x3b4069- -0x16f,_0x4b5e4b);}if(_0x1a901e[_0x3252bf(-0x85,-0x3e)]('postgres_changes:')){const filter=JSON[_0x3252bf(0xe,0x2f)](_0x1a901e[_0x3252bf(0x13,0x74)](_0x3252bf(-0x47,0x22),''));this[_0x3252bf(0x52,-0x19)]?.['emit'](_0x3252bf(-0x9,0x53),{'topic':this['topic'],'filter':filter,'ref':this[_0x3252bf(-0xd,-0x86)]()});}}));}['_trigger'](_0x31b1bd,_0x4f43ee){if(_0x31b1bd===_0x54f34c(-0x1e5,-0x26a)){const _0x3ccf5f=_0x54f34c(-0x1ed,-0x251)+JSON[_0x54f34c(-0x268,-0x2e2)](_0x4f43ee['filter']||{});this['emit'](_0x3ccf5f,_0x4f43ee);}else{if(_0x31b1bd==='broadcast'){const _0x25dd41='broadcast:'+JSON['stringify']({'event':_0x4f43ee[_0x54f34c(-0x264,-0x287)]});this[_0x54f34c(-0x1fc,-0x21f)](_0x25dd41,_0x4f43ee);}else{if(_0x31b1bd==='presence'){const _0xead4f3=_0x54f34c(-0x294,-0x291)+JSON[_0x54f34c(-0x342,-0x2e2)]({'event':_0x4f43ee['event']});this[_0x54f34c(-0x20f,-0x21f)](_0xead4f3,_0x4f43ee);}}}function _0x54f34c(_0x565d9d,_0x229b29){return _0x1e97(_0x229b29- -0x3e2,_0x565d9d);}this[_0x54f34c(-0x197,-0x21f)](_0x31b1bd,_0x4f43ee);}[_0x4bcf27(-0x28c,-0x312)](_0x196b5b){this['state']=_0x196b5b;let status;function _0x20c606(_0x56480d,_0x3b5c05){return _0x1e97(_0x56480d-0x332,_0x3b5c05);}switch(_0x196b5b){case _0x20c606(0x49c,0x420):status='SUBSCRIBED';break;case _0x20c606(0x4b4,0x4df):status='CHANNEL_ERROR';break;case _0x20c606(0x514,0x4a1):status='CLOSED';break;default:return;}this[_0x20c606(0x4f5,0x4e2)]('status',status);}[_0x4bcf27(-0x2fb,-0x298)](){function _0x1dd50c(_0x738616,_0x33c612){return _0x1e97(_0x33c612- -0xd2,_0x738616);}return Math[_0x1dd50c(0x2c,0xa3)]()['toString'](0x24)['substring'](0x2,0xf);}['getState'](){function _0x408744(_0x22c408,_0x3dde82){return _0x1e97(_0x3dde82-0x352,_0x22c408);}return this[_0x408744(0x45e,0x4e0)];}}function getEnvironment(){if(typeof navigator!==_0x251394(0x45f,0x4bf)&&navigator['product']==='ReactNative')return _0x251394(0x527,0x559);if(typeof window!=='undefined'&&typeof document!==_0x251394(0x48e,0x4bf))return'browser';function _0x251394(_0x353a1b,_0x44a729){return _0x1e97(_0x44a729-0x39e,_0x353a1b);}if(typeof global!==_0x251394(0x451,0x4bf)&&typeof process!==_0x251394(0x44c,0x4bf)&&process[_0x251394(0x49c,0x4b0)]?.[_0x251394(0x499,0x502)])return'node';return'browser';}function isSocketIOAvailable(){function _0x40aaeb(_0x16d91c,_0x1878ae){return _0x1e97(_0x1878ae-0x1c5,_0x16d91c);}try{const _0x9d98a2=getEnvironment();switch(_0x9d98a2){case _0x40aaeb(0x32b,0x329):return typeof require!=='undefined'&&require[_0x40aaeb(0x2ae,0x2d1)]&&!!require[_0x40aaeb(0x350,0x2d1)]('socket.io-client');case'browser':if(typeof globalThis!==_0x40aaeb(0x369,0x2e6)&&'io'in globalThis)return!![];return typeof require!=='undefined'&&require[_0x40aaeb(0x2c6,0x2d1)]&&!!require[_0x40aaeb(0x272,0x2d1)]('socket.io-client');case'react-native':try{return typeof require!==_0x40aaeb(0x29b,0x2e6)&&!!require('socket.io-client');}catch{return![];}default:return![];}}catch{return![];}}function getSocketIO(){function _0x11f852(_0x998979,_0x200792){return _0x1e97(_0x200792- -0xb9,_0x998979);}try{if(typeof require!==_0x11f852(0xc2,0x68))return require(_0x11f852(0x1c,0x83));if(typeof globalThis!==_0x11f852(0x62,0x68)&&'io'in globalThis)return{'io':globalThis['io']};throw new Error(_0x11f852(0x62,0x48));}catch(_0x3eaef7){throw new Error(_0x11f852(0xae,0x52));}}class WebSocketAdapter{constructor(){function _0x35a3a2(_0x5c1353,_0x2e45cf){return _0x1e97(_0x5c1353-0x21a,_0x2e45cf);}this[_0x35a3a2(0x370,0x3b9)]=null;}async['connect'](_0x453c16,_0x2da356){if(!isSocketIOAvailable())throw new Error('Socket.io-client não está disponível. Para usar funcionalidades de realtime, instale: npm install socket.io-client');const {io:_0x54dafb}=getSocketIO();return new Promise((_0x1b5cb3,_0x54002c)=>{function _0x3b8def(_0x46c47b,_0xa71522){return _0x1e97(_0xa71522-0x2b4,_0x46c47b);}this[_0x3b8def(0x402,0x40a)]=_0x54dafb(_0x453c16,_0x2da356),this[_0x3b8def(0x3a3,0x40a)]['on'](_0x3b8def(0x38a,0x3be),()=>_0x1b5cb3()),this['socket']['on']('connect_error',_0x36087a=>_0x54002c(_0x36087a));});}[_0x4bcf27(-0x2ff,-0x2d9)](){function _0x1c199e(_0x168844,_0x59db92){return _0x1e97(_0x59db92-0xdf,_0x168844);}this[_0x1c199e(0x20e,0x235)]&&(this['socket'][_0x1c199e(0x223,0x1c4)](),this[_0x1c199e(0x1c7,0x235)]=null);}['emit'](_0x50c5aa,data){function _0xfdea43(_0x286e8e,_0x318306){return _0x1e97(_0x318306-0x1dd,_0x286e8e);}this[_0xfdea43(0x304,0x333)]?.['emit'](_0x50c5aa,data);}['on'](_0x13c960,_0x162e78){function _0x40a67e(_0x297492,_0x5ad559){return _0x1e97(_0x5ad559-0x2c0,_0x297492);}this[_0x40a67e(0x450,0x416)]?.['on'](_0x13c960,_0x162e78);}['off'](_0x366110,_0x2d7800){_0x2d7800?this['socket']?.['off'](_0x366110,_0x2d7800):this['socket']?.['off'](_0x366110);}get['connected'](){function _0x3d0f2a(_0x2bdc92,_0x2e439a){return _0x1e97(_0x2bdc92- -0xe0,_0x2e439a);}return this['socket']?.[_0x3d0f2a(0x3e,-0x22)]??![];}}class ReactNativeSocketAdapter{constructor(){this['socket']=null;}async['connect'](_0x59b96a,_0x2d30b5){if(!isSocketIOAvailable())throw new Error(_0x5415c7(0x50f,0x4e2));const {io:_0x104237}=getSocketIO();function _0x5415c7(_0x3eea18,_0x573c79){return _0x1e97(_0x573c79-0x30f,_0x3eea18);}return new Promise((_0x2ed51e,_0x40d733)=>{function _0x8dc0d3(_0x5edc95,_0x71b1d9){return _0x1e97(_0x5edc95- -0x3a1,_0x71b1d9);}this['socket']=_0x104237(_0x59b96a,{..._0x2d30b5,'transports':['websocket'],'upgrade':![],'autoConnect':!![]}),this[_0x8dc0d3(-0x24b,-0x223)]['on']('connect',()=>_0x2ed51e()),this['socket']['on']('connect_error',_0x3ea8a2=>_0x40d733(_0x3ea8a2));});}[_0x4bcf27(-0x2ff,-0x28d)](){function _0x265004(_0xce23bf,_0x252a9c){return _0x1e97(_0x252a9c- -0x150,_0xce23bf);}this['socket']&&(this[_0x265004(-0x4e,0x6)][_0x265004(-0x43,-0x6b)](),this['socket']=null);}['emit'](_0x4dbc7e,data){this['socket']?.['emit'](_0x4dbc7e,data);}['on'](_0x48a0b7,_0x3fef56){function _0x45201c(_0x5c62fe,_0x5cee4f){return _0x1e97(_0x5c62fe- -0xaf,_0x5cee4f);}this[_0x45201c(0xa7,0xf1)]?.['on'](_0x48a0b7,_0x3fef56);}['off'](_0x2622df,_0x1af53f){function _0x37ffd9(_0x3f54b6,_0x131cd4){return _0x1e97(_0x3f54b6- -0x266,_0x131cd4);}_0x1af53f?this[_0x37ffd9(-0x110,-0xfa)]?.['off'](_0x2622df,_0x1af53f):this[_0x37ffd9(-0x110,-0x18a)]?.[_0x37ffd9(-0x91,-0x7a)](_0x2622df);}get['connected'](){return this['socket']?.['connected']??![];}}function createSocketAdapter(){const _0x320cf8=getEnvironment();function _0x5e107f(_0x5a6117,_0x11a6b2){return _0x1e97(_0x11a6b2-0x6c,_0x5a6117);}switch(_0x320cf8){case _0x5e107f(0x203,0x227):return new ReactNativeSocketAdapter();case'browser':case'node':default:return new WebSocketAdapter();}}function _0x4bcf27(_0x5e739a,_0x16ad07){return _0x1e97(_0x5e739a- -0x3e4,_0x16ad07);}class RealtimeClient{constructor(_0x1177ae,_0x505d3c,_0x23736b={}){function _0x50b847(_0x47d2d3,_0x3c29f1){return _0x1e97(_0x47d2d3- -0xc5,_0x3c29f1);}this['socket']=null,this['channels']=new Map(),this['connectionState']='disconnected',this['reconnectAttempts']=0x0,this[_0x50b847(0xaa,0xb2)]=0x5,this[_0x50b847(0x48,0xa8)]=_0x1177ae,this[_0x50b847(0x57,0x16)]=_0x505d3c,this['options']={'heartbeatInterval':0x7530,'reconnectInterval':0x1388,'maxReconnectAttempts':0x5,..._0x23736b},this['socketAdapter']=createSocketAdapter();}[_0x4bcf27(-0x2da,-0x2a6)](){return new Promise(async(_0x4dfe2e,_0xa056b4)=>{function _0x49688d(_0x5521cd,_0x4419f4){return _0x1e97(_0x4419f4- -0x239,_0x5521cd);}if(this[_0x49688d(-0xec,-0xec)]['connected']){_0x4dfe2e();return;}this['connectionState']=_0x49688d(-0x8e,-0xa9);try{await this[_0x49688d(-0x130,-0xec)][_0x49688d(-0x124,-0x12f)](this['url'],{'auth':{'apikey':this['apiKey']},'transports':['websocket'],'reconnection':!![],'reconnectionDelay':this['options']['reconnectInterval'],'reconnectionAttempts':this[_0x49688d(-0x3d,-0x85)][_0x49688d(-0xdf,-0xca)],...this[_0x49688d(-0x1d,-0x85)][_0x49688d(-0x8f,-0xdb)]}),this[_0x49688d(-0x11b,-0xe3)]=this['socketAdapter']['socket'],this['socketAdapter']['on'](_0x49688d(-0x11a,-0x12f),()=>{this[_0x10c92c(0x14d,0x1a7)]='connected';function _0x10c92c(_0x262b9a,_0x1ab548){return _0x1e97(_0x262b9a-0x4,_0x1ab548);}this['reconnectAttempts']=0x0,this['setupHeartbeat'](),_0x4dfe2e();}),this[_0x49688d(-0x165,-0xec)]['on']('disconnect',()=>{function _0x228f39(_0x29aa03,_0x208ef2){return _0x1e97(_0x208ef2- -0x2c9,_0x29aa03);}this[_0x228f39(-0x1ed,-0x180)]='disconnected',this['channels'][_0x228f39(-0x21e,-0x197)](channel=>{function _0x49cc59(_0x4f4be2,_0x1a6a2a){return _0x1e97(_0x1a6a2a- -0x2ac,_0x4f4be2);}channel[_0x49cc59(-0x125,-0x154)](_0x49cc59(-0x6d,-0xca));});}),this['socketAdapter']['on'](_0x49688d(-0x10d,-0xa1),_0x21bbe9=>{function _0x245b16(_0x3f78ef,_0x2c6d42){return _0x1e97(_0x2c6d42- -0xa2,_0x3f78ef);}this['connectionState']=_0x245b16(0xc1,0xc3),this['reconnectAttempts']++,this['reconnectAttempts']>=this[_0x245b16(0x96,0xcd)]&&_0xa056b4(new Error('Failed\x20to\x20connect\x20after\x20'+this[_0x245b16(0x73,0xcd)]+_0x245b16(0xfb,0x12b)+_0x21bbe9['message']));}),this[_0x49688d(-0x12a,-0xec)]['on'](_0x49688d(-0x68,-0x9c),()=>{function _0x76a6c6(_0x3bf758,_0x39e807){return _0x1e97(_0x39e807-0x253,_0x3bf758);}this[_0x76a6c6(0x326,0x39c)]=_0x76a6c6(0x31b,0x371),this['reconnectAttempts']=0x0,this[_0x76a6c6(0x33f,0x382)]['forEach'](channel=>{channel['_rejoin']();});}),this[_0x49688d(-0x11f,-0xec)]['on'](_0x49688d(-0x7f,-0xc1),_0x4556e4=>{function _0x2a10ff(_0x1bc25f,_0x2bea9a){return _0x1e97(_0x2bea9a-0x38a,_0x1bc25f);}const channel=this[_0x2a10ff(0x4fd,0x4b9)]['get'](_0x4556e4['topic']);channel&&channel[_0x2a10ff(0x532,0x4eb)]('postgres_changes',_0x4556e4);}),this['socketAdapter']['on'](_0x49688d(-0xe8,-0x147),_0x181d8e=>{const channel=this['channels'][_0x4390fc(-0x4f,-0x6)](_0x181d8e['topic']);function _0x4390fc(_0x5150d8,_0x1ec7ba){return _0x1e97(_0x1ec7ba- -0x1e6,_0x5150d8);}channel&&channel[_0x4390fc(-0x51,-0x85)](_0x4390fc(-0x128,-0xf4),_0x181d8e);}),this[_0x49688d(-0xfb,-0xec)]['on']('presence',_0x48b76f=>{const channel=this[_0xaea61f(0x34f,0x375)]['get'](_0x48b76f[_0xaea61f(0x332,0x369)]);function _0xaea61f(_0x3e1133,_0x5b7acd){return _0x1e97(_0x5b7acd-0x246,_0x3e1133);}channel&&channel[_0xaea61f(0x3ed,0x3a7)](_0xaea61f(0x390,0x39f),_0x48b76f);});}catch(_0x37f248){this[_0x49688d(-0xc8,-0xf0)]='error',_0xa056b4(_0x37f248);}});}[_0x4bcf27(-0x2ff,-0x320)](){this[_0x40bf7c(0x4fe,0x505)]&&(this[_0x40bf7c(0x4fe,0x4dd)][_0x40bf7c(0x496,0x4bf)](),this[_0x40bf7c(0x507,0x53d)]=null);this[_0x40bf7c(0x4fa,0x484)]=_0x40bf7c(0x4d7,0x513);function _0x40bf7c(_0x25d7b7,_0x489632){return _0x1e97(_0x25d7b7-0x3b1,_0x489632);}this[_0x40bf7c(0x4e0,0x52c)][_0x40bf7c(0x4f0,0x4f4)]();}['channel'](_0x46cf52){function _0x111c0b(_0x1acf63,_0x5120a0){return _0x1e97(_0x1acf63-0x22,_0x5120a0);}if(this['channels'][_0x111c0b(0x10e,0x153)](_0x46cf52))return this[_0x111c0b(0x151,0xd4)][_0x111c0b(0x202,0x218)](_0x46cf52);const channel=new RealtimeChannel(_0x46cf52,this[_0x111c0b(0x178,0x188)]);return this[_0x111c0b(0x151,0x131)][_0x111c0b(0x1ee,0x1fd)](_0x46cf52,channel),this[_0x111c0b(0x16b,0x169)]==='connected'&&channel['_join'](),channel;}[_0x4bcf27(-0x266,-0x2d4)](channel){const _0x32c2bd=channel[_0x1e379d(0x20d,0x1a5)];function _0x1e379d(_0xfc8e9c,_0x3f3ed4){return _0x1e97(_0xfc8e9c-0xea,_0x3f3ed4);}this['channels']['has'](_0x32c2bd)&&(this['channels'][_0x1e379d(0x1d2,0x1d6)](_0x32c2bd),channel['unsubscribe']());}['removeAllChannels'](){function _0x2b245c(_0x3c2706,_0xa47e9e){return _0x1e97(_0x3c2706-0x169,_0xa47e9e);}this[_0x2b245c(0x298,0x2d8)][_0x2b245c(0x29b,0x25f)](channel=>{channel['unsubscribe']();}),this[_0x2b245c(0x298,0x310)][_0x2b245c(0x2a8,0x26e)]();}[_0x4bcf27(-0x2d3,-0x2e1)](){function _0x46a4b4(_0x12c92f,_0x5d7293){return _0x1e97(_0x12c92f- -0x1d1,_0x5d7293);}return Array['from'](this['channels'][_0x46a4b4(-0x1b,0x24)]());}[_0x4bcf27(-0x235,-0x29b)](){function _0x50ff71(_0x57429a,_0x418d58){return _0x1e97(_0x57429a- -0x276,_0x418d58);}return this[_0x50ff71(-0x12d,-0x19d)]===_0x50ff71(-0x158,-0x15d)&&this['socketAdapter']['connected'];}['getConnectionState'](){return this['connectionState'];}[_0x4bcf27(-0x2ea,-0x2cc)](_0x500c0f){const _0x5754b6=()=>_0x500c0f(this[_0x4c2833(-0xb2,-0x91)]);this[_0x4c2833(-0xab,-0x8d)]&&(this['socketAdapter']['on'](_0x4c2833(-0x131,-0xd0),()=>{this['connectionState']='connected',_0x5754b6();}),this[_0x4c2833(-0x5b,-0x8d)]['on']('disconnect',()=>{function _0x439a99(_0x2f16a9,_0x2a9029){return _0x1e97(_0x2f16a9-0xfc,_0x2a9029);}this[_0x439a99(0x245,0x1f8)]=_0x439a99(0x222,0x231),_0x5754b6();}),this['socketAdapter']['on'](_0x4c2833(-0x76,-0x42),()=>{this['connectionState']='error',_0x5754b6();}));function _0x4c2833(_0x1e1aa3,_0x5ba13f){return _0x1e97(_0x5ba13f- -0x1da,_0x1e1aa3);}return()=>{function _0x4dc363(_0x413017,_0x265c64){return _0x1e97(_0x265c64-0x191,_0x413017);}this[_0x4dc363(0x271,0x2de)]&&(this['socketAdapter']['off']('connect',_0x5754b6),this['socketAdapter'][_0x4dc363(0x2f6,0x366)]('disconnect',_0x5754b6),this[_0x4dc363(0x2b0,0x2de)][_0x4dc363(0x2e0,0x366)](_0x4dc363(0x2b6,0x329),_0x5754b6));};}['setupHeartbeat'](){if(!this['options']['heartbeatInterval']||!this[_0x2f53f4(-0x1e1,-0x1e2)])return;function _0x2f53f4(_0x179aa9,_0x42e189){return _0x1e97(_0x179aa9- -0x32e,_0x42e189);}const interval=setInterval(()=>{function _0x3a2257(_0x3323a8,_0x3d7f6d){return _0x1e97(_0x3323a8- -0x34b,_0x3d7f6d);}this[_0x3a2257(-0x1fe,-0x223)]?.[_0x3a2257(-0x22d,-0x286)]?this[_0x3a2257(-0x1fe,-0x1ac)]['emit']('heartbeat',{'timestamp':Date['now']()}):clearInterval(interval);},this[_0x2f53f4(-0x17a,-0x196)][_0x2f53f4(-0x20f,-0x1c4)]);}['_getSocket'](){return this['socket'];}}class FunctionsClient{constructor(_0x1a3fe0){this['httpClient']=_0x1a3fe0;}async[_0x4bcf27(-0x2d6,-0x296)](_0x41d7ea,_0x3b7b41){function _0x260812(_0x3147c9,_0x4269f5){return _0x1e97(_0x4269f5- -0x34b,_0x3147c9);}try{const _0x1aa9b4=_0x3b7b41?.['method']||'POST',headers={'Content-Type':'application/json',..._0x3b7b41?.[_0x260812(-0x188,-0x16e)]};let response;const _0x3d025e=_0x260812(-0x1d1,-0x217)+_0x41d7ea;switch(_0x1aa9b4['toUpperCase']()){case'GET':response=await this['httpClient'][_0x260812(-0x1d7,-0x16b)](_0x3d025e,{'headers':headers,'params':_0x3b7b41?.[_0x260812(-0x1ba,-0x1e2)]});break;case'POST':response=await this['httpClient'][_0x260812(-0x2b7,-0x233)](_0x3d025e,_0x3b7b41?.['body'],{'headers':headers});break;case'PUT':response=await this[_0x260812(-0x236,-0x1b1)]['put'](_0x3d025e,_0x3b7b41?.[_0x260812(-0x1ee,-0x1e2)],{'headers':headers});break;case'PATCH':response=await this['httpClient']['patch'](_0x3d025e,_0x3b7b41?.[_0x260812(-0x1e1,-0x1e2)],{'headers':headers});break;case'DELETE':response=await this[_0x260812(-0x139,-0x1b1)]['delete'](_0x3d025e,{'headers':headers,'data':_0x3b7b41?.[_0x260812(-0x22b,-0x1e2)]});break;default:throw new EBaaSError(_0x260812(-0x22a,-0x256)+_0x1aa9b4,0x190);}return{'data':response['data'],'error':null};}catch(_0x38080e){return{'data':null,'error':_0x38080e instanceof EBaaSError?_0x38080e:new EBaaSError(_0x38080e instanceof Error?_0x38080e[_0x260812(-0x186,-0x166)]:_0x260812(-0x122,-0x17c),0x0,_0x38080e)};}}async[_0x4bcf27(-0x281,-0x2e0)](){function _0x19cdad(_0x50787d,_0x56deab){return _0x1e97(_0x50787d-0x1e6,_0x56deab);}try{const response=await this['httpClient'][_0x19cdad(0x3c6,0x418)]('/functions/v1');return{'data':response['data'],'error':null};}catch(_0x4423d6){return{'data':null,'error':_0x4423d6 instanceof EBaaSError?_0x4423d6:new EBaaSError(_0x4423d6 instanceof Error?_0x4423d6['message']:'Failed\x20to\x20list\x20functions',0x0,_0x4423d6)};}}async[_0x4bcf27(-0x204,-0x1ba)](_0x29c1ca){function _0x3f3b2b(_0x13d185,_0x50d1b3){return _0x1e97(_0x50d1b3-0x32b,_0x13d185);}try{const response=await this['httpClient']['get'](_0x3f3b2b(0x461,0x45f)+_0x29c1ca+'/info');return{'data':response[_0x3f3b2b(0x499,0x4af)],'error':null};}catch(_0x1c0c2e){return{'data':null,'error':_0x1c0c2e instanceof EBaaSError?_0x1c0c2e:new EBaaSError(_0x1c0c2e instanceof Error?_0x1c0c2e[_0x3f3b2b(0x4bc,0x510)]:'Failed\x20to\x20get\x20function',0x0,_0x1c0c2e)};}}async[_0x4bcf27(-0x2dd,-0x2c7)](_0x3d0aa8,_0x55de8c){function _0x548966(_0x5e0e91,_0x263a71){return _0x1e97(_0x5e0e91- -0x1c7,_0x263a71);}try{const _0x3cc28b=new FormData();if(_0x55de8c[_0x548966(-0x12,0x1b)]instanceof File)_0x3cc28b[_0x548966(0x24,-0x58)]('code',_0x55de8c['code']);else typeof _0x55de8c['code']===_0x548966(-0xcb,-0x135)&&_0x3cc28b['append']('code',new Blob([_0x55de8c[_0x548966(-0x12,-0x76)]],{'type':_0x548966(-0xb0,-0x10f)}),_0x548966(-0xd3,-0x14a));_0x55de8c['entrypoint']&&_0x3cc28b['append']('entrypoint',_0x55de8c[_0x548966(-0xa2,-0x44)]);_0x55de8c[_0x548966(-0x89,-0xda)]&&_0x3cc28b[_0x548966(0x24,-0x10)](_0x548966(-0x89,-0x7a),JSON[_0x548966(-0xc7,-0x7f)](_0x55de8c[_0x548966(-0x89,-0xd2)]));_0x55de8c['importMap']&&_0x3cc28b[_0x548966(0x24,-0xe)](_0x548966(-0x19,-0x7),JSON['stringify'](_0x55de8c['importMap']));_0x55de8c['verify']!==undefined&&_0x3cc28b['append'](_0x548966(-0xa,-0x40),String(_0x55de8c[_0x548966(-0xa,-0x42)]));const response=await this[_0x548966(-0x2d,-0x2)][_0x548966(-0xaf,-0x41)](_0x548966(-0x93,-0x18)+_0x3d0aa8+'/deploy',_0x3cc28b,{'headers':{'Content-Type':_0x548966(-0xae,-0x112)}});return{'data':response['data'],'error':null};}catch(_0x4357c5){return{'data':null,'error':_0x4357c5 instanceof EBaaSError?_0x4357c5:new EBaaSError(_0x4357c5 instanceof Error?_0x4357c5[_0x548966(0x1e,0xc)]:_0x548966(-0x2e,-0x6d),0x0,_0x4357c5)};}}async['delete'](_0x59f17d){function _0x2666e8(_0x1615d4,_0x35a2c2){return _0x1e97(_0x1615d4- -0x375,_0x35a2c2);}try{const response=await this['httpClient']['delete'](_0x2666e8(-0x241,-0x1c3)+_0x59f17d);return{'data':response['data'],'error':null};}catch(_0x605054){return{'data':null,'error':_0x605054 instanceof EBaaSError?_0x605054:new EBaaSError(_0x605054 instanceof Error?_0x605054[_0x2666e8(-0x190,-0x179)]:'Failed\x20to\x20delete\x20function',0x0,_0x605054)};}}async[_0x4bcf27(-0x2bd,-0x305)](_0x4b2f68,_0x3603b2){function _0x515df8(_0x2ade83,_0x56f5ab){return _0x1e97(_0x2ade83-0x79,_0x56f5ab);}try{const response=await this['httpClient']['put']('/functions/v1/'+_0x4b2f68+'/env',{'env':_0x3603b2});return{'data':response['data'],'error':null};}catch(_0x37b46b){return{'data':null,'error':_0x37b46b instanceof EBaaSError?_0x37b46b:new EBaaSError(_0x37b46b instanceof Error?_0x37b46b[_0x515df8(0x25e,0x246)]:'Failed\x20to\x20update\x20function\x20environment',0x0,_0x37b46b)};}}async[_0x4bcf27(-0x205,-0x1da)](_0x2f0062,_0x5b9887){function _0x53ca71(_0x5bf744,_0x2f9527){return _0x1e97(_0x2f9527-0x1e7,_0x5bf744);}try{const _0x41ad26=new URLSearchParams();_0x5b9887?.[_0x53ca71(0x3ff,0x3c3)]&&_0x41ad26[_0x53ca71(0x44d,0x3d2)](_0x53ca71(0x367,0x3c3),String(_0x5b9887['limit']));_0x5b9887?.['offset']&&_0x41ad26[_0x53ca71(0x43b,0x3d2)]('offset',String(_0x5b9887['offset']));_0x5b9887?.[_0x53ca71(0x336,0x388)]&&_0x41ad26[_0x53ca71(0x3a5,0x3d2)](_0x53ca71(0x311,0x388),_0x5b9887['level']);const _0x3be71e=_0x53ca71(0x33d,0x31b)+_0x2f0062+_0x53ca71(0x295,0x312)+(_0x41ad26[_0x53ca71(0x2ee,0x310)]()?'?'+_0x41ad26['toString']():''),response=await this['httpClient'][_0x53ca71(0x379,0x3c7)](_0x3be71e);return{'data':response[_0x53ca71(0x334,0x36b)],'error':null};}catch(_0x27ecbd){return{'data':null,'error':_0x27ecbd instanceof EBaaSError?_0x27ecbd:new EBaaSError(_0x27ecbd instanceof Error?_0x27ecbd[_0x53ca71(0x3cd,0x3cc)]:'Failed\x20to\x20get\x20function\x20logs',0x0,_0x27ecbd)};}}async[_0x4bcf27(-0x270,-0x2f8)](_0x361a41,_0x1a98ed){function _0x6d862b(_0x32223f,_0x296724){return _0x1e97(_0x296724-0x257,_0x32223f);}try{const _0xab63c2=new URLSearchParams();_0x1a98ed?.[_0x6d862b(0x3bb,0x403)]&&_0xab63c2[_0x6d862b(0x4c6,0x442)](_0x6d862b(0x3af,0x403),_0x1a98ed['period']);const _0x5c1589='/functions/v1/'+_0x361a41+_0x6d862b(0x433,0x435)+(_0xab63c2['toString']()?'?'+_0xab63c2['toString']():''),response=await this[_0x6d862b(0x433,0x3f1)][_0x6d862b(0x464,0x437)](_0x5c1589);return{'data':response['data'],'error':null};}catch(_0xbe1c19){return{'data':null,'error':_0xbe1c19 instanceof EBaaSError?_0xbe1c19:new EBaaSError(_0xbe1c19 instanceof Error?_0xbe1c19[_0x6d862b(0x457,0x43c)]:_0x6d862b(0x3e8,0x422),0x0,_0xbe1c19)};}}}class EBaaSClient{constructor(_0x2c9d13,_0x1b728e,_0x5e4755){this['options']=_0x5e4755,this['httpClient']=new HttpClient({'url':_0x2c9d13,'apiKey':_0x1b728e,'timeout':0x7530,'headers':_0x5e4755?.[_0x41d58e(-0xa4,-0x101)]?.['headers']}),this['auth']=new AuthClient(this['httpClient'],_0x5e4755?.[_0x41d58e(-0x186,-0x166)]?.['workspaceId']),this[_0x41d58e(-0x18a,-0x166)]=new DatabaseClient(this['httpClient'],_0x5e4755?.[_0x41d58e(-0x14f,-0x166)]?.['workspaceId']),this['storage']=new StorageClient(this[_0x41d58e(-0xd8,-0x106)]),this[_0x41d58e(-0x194,-0x10d)]=new RealtimeClient(_0x2c9d13,_0x1b728e,_0x5e4755?.['realtime']);function _0x41d58e(_0x1dd942,_0x4efd82){return _0x1e97(_0x4efd82- -0x2a0,_0x1dd942);}this['functions']=new FunctionsClient(this['httpClient']),this['initializeCustomDatabase']();}['from'](_0x47fad3){function _0x203179(_0x3e0184,_0x6e4203){return _0x1e97(_0x3e0184- -0x3c8,_0x6e4203);}return this[_0x203179(-0x28e,-0x282)][_0x203179(-0x223,-0x253)](_0x47fad3);}['rpc'](_0x59f355,_0x427811){function _0x5e143a(_0x2857d4,_0x224037){return _0x1e97(_0x2857d4- -0xdd,_0x224037);}return this[_0x5e143a(0x5d,0x6b)]['rpc'](_0x59f355,_0x427811);}[_0x4bcf27(-0x2e9,-0x27d)](_0x40058b){return this['storage']['from'](_0x40058b);}[_0x4bcf27(-0x250,-0x288)](_0x1d732d){function _0x253b4c(_0x18a257,_0xb57052){return _0x1e97(_0x18a257- -0x283,_0xb57052);}return this[_0x253b4c(-0xf0,-0xc6)]['channel'](_0x1d732d);}[_0x4bcf27(-0x2d6,-0x2f0)](_0x30f53f,_0x1ff8b7){return this['functions']['invoke'](_0x30f53f,_0x1ff8b7);}async[_0x4bcf27(-0x268,-0x2cb)](){function _0x290446(_0x55bef4,_0x421602){return _0x1e97(_0x421602- -0x1ad,_0x55bef4);}if(this[_0x290446(-0x5f,0x7)]?.['database']?.['autoDetectCustomDatabase'])try{await this[_0x290446(-0xd0,-0x73)][_0x290446(-0x2e,0x11)]();}catch(_0x14ac16){console['warn']('Failed to initialize custom database detection:',_0x14ac16);}}async[_0x4bcf27(-0x20c,-0x1c0)](_0x31264e){this['auth'][_0x1e0cf7(0x301,0x331)](_0x31264e),this[_0x1e0cf7(0x292,0x293)][_0x1e0cf7(0x36c,0x331)](_0x31264e);function _0x1e0cf7(_0x285002,_0x10a9d9){return _0x1e97(_0x10a9d9-0x159,_0x285002);}this[_0x1e0cf7(0x303,0x30d)]?.[_0x1e0cf7(0x22c,0x293)]?.[_0x1e0cf7(0x30e,0x2d3)]&&await this[_0x1e0cf7(0x2cb,0x293)][_0x1e0cf7(0x2a5,0x317)]();}async['configureCustomDatabase'](_0x2ce36b){function _0x1b3575(_0x59cfcf,_0x2afe29){return _0x1e97(_0x2afe29- -0x157,_0x59cfcf);}await this['database'][_0x1b3575(0x2c,0x3b)](_0x2ce36b);}['getCustomDatabaseStatus'](){function _0x4c154a(_0x459e82,_0x166ea5){return _0x1e97(_0x459e82-0x12,_0x166ea5);}return this[_0x4c154a(0x14c,0x13f)][_0x4c154a(0x15e,0x1ad)]();}}function createClient(_0x1aa2a1,_0x124d77,_0x37c6af){return new EBaaSClient(_0x1aa2a1,_0x124d77,_0x37c6af);}const version=_0x4bcf27(-0x25b,-0x21d);export{AuthClient,CustomDatabaseManager,DatabaseClient,EBaaSClient,EBaaSError,FunctionsClient,HttpClient,QueryBuilder,RealtimeChannel,RealtimeClient,StorageBucket,StorageClient,createClient,version};
|