@web-to-figma/desktop 1.0.4 → 1.0.5

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.
@@ -1 +1 @@
1
- (function(_0x2f1547,_0x3613b8){const _0x59f941=_0x28f9,_0x2870c3=_0x2f1547();while(!![]){try{const _0x5060d4=-parseInt(_0x59f941(0xfc))/0x1+-parseInt(_0x59f941(0x11e))/0x2+-parseInt(_0x59f941(0x10c))/0x3+-parseInt(_0x59f941(0x123))/0x4*(-parseInt(_0x59f941(0x114))/0x5)+parseInt(_0x59f941(0x112))/0x6+parseInt(_0x59f941(0xf9))/0x7+-parseInt(_0x59f941(0x107))/0x8;if(_0x5060d4===_0x3613b8)break;else _0x2870c3['push'](_0x2870c3['shift']());}catch(_0xd3cee4){_0x2870c3['push'](_0x2870c3['shift']());}}}(_0x3ed4,0x79845));import _0x476467 from'crypto';import _0x23bc17 from'fs';import _0xd39aef from'path';import{parseJsonSafe}from'../utils.js';function asChromiumDriver(_0x10f496){return _0x10f496;}export function cleanupOrphanSessionDirs(_0x5ea3e9){const _0x17bce6=_0x28f9;if(!_0x23bc17[_0x17bce6(0x121)](_0x5ea3e9))return;for(const _0x34e11f of _0x23bc17[_0x17bce6(0x116)](_0x5ea3e9,{'withFileTypes':!![]})){if(!_0x34e11f[_0x17bce6(0xfd)]())continue;removeSessionDir(_0xd39aef[_0x17bce6(0xff)](_0x5ea3e9,_0x34e11f['name']));}}export function createHeadedSessionDir(_0x3d84cb){const _0x27ffae=_0x28f9;_0x23bc17[_0x27ffae(0x102)](_0x3d84cb,{'recursive':!![]});const _0x253c42=_0xd39aef[_0x27ffae(0xff)](_0x3d84cb,_0x476467[_0x27ffae(0x10b)]());return _0x23bc17['mkdirSync'](_0xd39aef[_0x27ffae(0xff)](_0x253c42,_0x27ffae(0x124)),{'recursive':!![]}),_0x253c42;}export function seedPinnedExtensionPreferences(_0x15f82c,_0x4dfb76){const _0x15c2ae=_0x28f9,_0x187b4e=_0xd39aef[_0x15c2ae(0xff)](_0x15f82c,_0x15c2ae(0x124),_0x15c2ae(0x103)),_0x5d8f4e=parseJsonSafe(_0x23bc17['existsSync'](_0x187b4e)?_0x23bc17[_0x15c2ae(0x10e)](_0x187b4e,_0x15c2ae(0x110)):null,{}),_0x52e644=parseJsonSafe(typeof _0x5d8f4e[_0x15c2ae(0x11b)]===_0x15c2ae(0x109)&&_0x5d8f4e[_0x15c2ae(0x11b)]!==null?JSON['stringify'](_0x5d8f4e['extensions']):null,{});_0x52e644[_0x15c2ae(0x100)]=[_0x4dfb76],_0x5d8f4e['extensions']=_0x52e644,_0x23bc17[_0x15c2ae(0xfe)](_0x187b4e,JSON[_0x15c2ae(0x10d)](_0x5d8f4e));}export function createInitialPreferencesFile(_0x5899ce,_0x3e9260){const _0x386cde=_0x28f9,_0x3c42b2=_0xd39aef[_0x386cde(0xff)](_0x5899ce,_0x386cde(0x111)),_0xe11292={'extensions':{'pinned_extensions':[_0x3e9260]},'distribution':{'skip_first_run_ui':!![],'show_welcome_page':![]}};return _0x23bc17['writeFileSync'](_0x3c42b2,JSON[_0x386cde(0x10d)](_0xe11292)),_0x3c42b2;}export function removeSessionDir(_0xf82ec5){try{_0x23bc17['rmSync'](_0xf82ec5,{'recursive':!![],'force':!![]});}catch{}}function readPersistedCookies(_0x2bd5db){const _0x2c777f=_0x28f9;if(!_0x23bc17[_0x2c777f(0x121)](_0x2bd5db))return[];const _0x519964=parseJsonSafe(_0x23bc17['readFileSync'](_0x2bd5db,_0x2c777f(0x110)),[]);return Array[_0x2c777f(0x11c)](_0x519964)?_0x519964:[];}function writePersistedCookies(_0x2f16d1,_0x98ace0){const _0x45866d=_0x28f9;_0x23bc17[_0x45866d(0x102)](_0xd39aef['dirname'](_0x2f16d1),{'recursive':!![]}),_0x23bc17[_0x45866d(0xfe)](_0x2f16d1,JSON['stringify'](_0x98ace0,null,0x2)+'\x0a');}function _0x28f9(_0x2f209c,_0x35e80f){_0x2f209c=_0x2f209c-0xf9;const _0x3ed436=_0x3ed4();let _0x28f93d=_0x3ed436[_0x2f209c];if(_0x28f9['MIuvvh']===undefined){var _0x48dae4=function(_0x6ca542){const _0x4e2fe9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x476467='',_0x23bc17='';for(let _0xd39aef=0x0,_0x10f496,_0x5ea3e9,_0x34e11f=0x0;_0x5ea3e9=_0x6ca542['charAt'](_0x34e11f++);~_0x5ea3e9&&(_0x10f496=_0xd39aef%0x4?_0x10f496*0x40+_0x5ea3e9:_0x5ea3e9,_0xd39aef++%0x4)?_0x476467+=String['fromCharCode'](0xff&_0x10f496>>(-0x2*_0xd39aef&0x6)):0x0){_0x5ea3e9=_0x4e2fe9['indexOf'](_0x5ea3e9);}for(let _0x3d84cb=0x0,_0x253c42=_0x476467['length'];_0x3d84cb<_0x253c42;_0x3d84cb++){_0x23bc17+='%'+('00'+_0x476467['charCodeAt'](_0x3d84cb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23bc17);};_0x28f9['nhwGwi']=_0x48dae4,_0x28f9['tUBFJi']={},_0x28f9['MIuvvh']=!![];}const _0x3ce34f=_0x3ed436[0x0],_0xe7a331=_0x2f209c+_0x3ce34f,_0x5ca76c=_0x28f9['tUBFJi'][_0xe7a331];return!_0x5ca76c?(_0x28f93d=_0x28f9['nhwGwi'](_0x28f93d),_0x28f9['tUBFJi'][_0xe7a331]=_0x28f93d):_0x28f93d=_0x5ca76c,_0x28f93d;}function toSetCookieParam(_0x3eff2e){const _0x5e9a96=_0x28f9,_0x3524c9={'name':_0x3eff2e[_0x5e9a96(0x101)],'value':_0x3eff2e['value'],'domain':_0x3eff2e[_0x5e9a96(0x106)],'path':_0x3eff2e[_0x5e9a96(0x117)]||'/'};return typeof _0x3eff2e[_0x5e9a96(0x118)]===_0x5e9a96(0x120)&&_0x3eff2e[_0x5e9a96(0x118)]>0x0&&(_0x3524c9[_0x5e9a96(0x118)]=_0x3eff2e['expires']),typeof _0x3eff2e[_0x5e9a96(0x11a)]===_0x5e9a96(0x105)&&(_0x3524c9[_0x5e9a96(0x11a)]=_0x3eff2e[_0x5e9a96(0x11a)]),typeof _0x3eff2e[_0x5e9a96(0xfb)]===_0x5e9a96(0x105)&&(_0x3524c9[_0x5e9a96(0xfb)]=_0x3eff2e[_0x5e9a96(0xfb)]),_0x3eff2e[_0x5e9a96(0x11f)]&&(_0x3524c9[_0x5e9a96(0x11f)]=_0x3eff2e[_0x5e9a96(0x11f)]),_0x3eff2e[_0x5e9a96(0x11d)]&&(_0x3524c9['priority']=_0x3eff2e[_0x5e9a96(0x11d)]),_0x3524c9;}export async function importPersistedCookies(_0x34b884,_0x1a9804){const _0xc9ee11=_0x28f9,_0x356f79=readPersistedCookies(_0x1a9804);if(_0x356f79[_0xc9ee11(0x108)]===0x0)return;const _0x1b4a58=asChromiumDriver(_0x34b884);await _0x1b4a58[_0xc9ee11(0x119)](_0xc9ee11(0x122),{}),await _0x1b4a58['sendDevToolsCommand'](_0xc9ee11(0x113),{'cookies':_0x356f79[_0xc9ee11(0x10a)](toSetCookieParam)});}export async function exportPersistedCookies(_0x1f41b3,_0x59a59f){const _0x17b990=_0x28f9,_0xdca102=asChromiumDriver(_0x1f41b3);await _0xdca102[_0x17b990(0x119)](_0x17b990(0x122),{});const _0x4977e3=await _0xdca102[_0x17b990(0x104)](_0x17b990(0xfa),{}),_0x54deed=Array['isArray'](_0x4977e3[_0x17b990(0x10f)])?_0x4977e3[_0x17b990(0x10f)]:[];writePersistedCookies(_0x59a59f,_0x54deed);}function _0x3ed4(){const _0x4c674f=['Cgf0Aa','zxHWAxjLCW','C2vUzerLDLrVB2XZq29TBwfUza','Ahr0Ce9UBhK','zxH0zw5ZAw9UCW','AxnbCNjHEq','ChjPB3jPDhK','mJe1mtG2quTLr2Xl','C2fTzvnPDgu','BNvTyMvY','zxHPC3rZu3LUyW','tMv0D29YAY5LBMfIBgu','nfn0zvfcDW','rgvMyxvSDa','nte1mJi0nuPTuvrxra','tMv0D29YAY5NzxrbBgXdB29RAwvZ','C2vJDxjL','nde2mdu0uLvbsNrA','AxneAxjLy3rVCNK','D3jPDgvgAwXLu3LUyW','AM9PBG','CgLUBMvKx2v4DgvUC2LVBNm','BMfTzq','BwTKAxjtEw5J','uhjLzMvYzw5Jzxm','C2vUzefUzeDLDerLDLrVB2XZq29TBwfUza','yM9VBgvHBG','zg9TywLU','mtyXnZi0og1JtwnIva','BgvUz3rO','B2jQzwn0','BwfW','CMfUzg9Tvvvjra','mJu2nJCXnNnhzLvWtG','C3rYAw5NAwz5','CMvHzezPBgvtEw5J','y29VA2LLCW','DxrMoa','Aw5PDgLHBf9WCMvMzxjLBMnLCY5QC29U','ndGZntuYmejbuNfesW','tMv0D29YAY5ZzxrdB29RAwvZ','mJy4ntC2nwHysKfxDa','CM1tEw5J','CMvHzgrPCLn5BMm'];_0x3ed4=function(){return _0x4c674f;};return _0x3ed4();}export function resetHeadedBrowserState(_0x3b18f8,_0x4d3d98){const _0x56b776=_0x28f9;cleanupOrphanSessionDirs(_0x4d3d98),_0x23bc17[_0x56b776(0x121)](_0x3b18f8)&&_0x23bc17[_0x56b776(0x115)](_0x3b18f8,{'recursive':!![],'force':!![]});}
1
+ (function(_0xbb28f8,_0x374162){const _0x3050bc=_0x3cd8,_0x4c3d74=_0xbb28f8();while(!![]){try{const _0x3328c8=parseInt(_0x3050bc(0x13a))/0x1*(parseInt(_0x3050bc(0x13d))/0x2)+parseInt(_0x3050bc(0x138))/0x3+-parseInt(_0x3050bc(0x130))/0x4*(-parseInt(_0x3050bc(0x126))/0x5)+parseInt(_0x3050bc(0x129))/0x6*(-parseInt(_0x3050bc(0x127))/0x7)+-parseInt(_0x3050bc(0x120))/0x8*(parseInt(_0x3050bc(0x137))/0x9)+-parseInt(_0x3050bc(0x136))/0xa+-parseInt(_0x3050bc(0x13e))/0xb;if(_0x3328c8===_0x374162)break;else _0x4c3d74['push'](_0x4c3d74['shift']());}catch(_0x2e6986){_0x4c3d74['push'](_0x4c3d74['shift']());}}}(_0xe598,0xc2368));function _0xe598(){const _0x25d4f2=['ChjPB3jPDhK','yM9VBgvHBG','AM9PBG','C3rYAw5NAwz5','BNvTyMvY','DxrMoa','CM1tEw5J','tMv0D29YAY5ZzxrdB29RAwvZ','mJaWnJC3nKTqq3PhEa','BgvUz3rO','C2vJDxjL','rgvMyxvSDa','AxneAxjLy3rVCNK','AxnbCNjHEq','nZC3oty1se5jAuj2','ntu2ntDvzeHXrKi','BMfTzq','mtHxwMzuCfy','CMvHzgrPCLn5BMm','tMv0D29YAY5LBMfIBgu','zxH0zw5ZAw9UCW','BwTKAxjtEw5J','D3jPDgvgAwXLu3LUyW','Ahr0Ce9UBhK','mJb0EefTuw8','B2jQzwn0','zxHWAxjLCW','CMfUzg9Tvvvjra','C2fTzvnPDgu','C2vUzefUzeDLDerLDLrVB2XZq29TBwfUza','ode2mde2mgL6uuLcDG','mJD4AgvbBKW','mZu2mJe4mKP6q0jXvG','CgLUBMvKx2v4DgvUC2LVBNm','odnyDeLuqNO','C2vUzerLDLrVB2XZq29TBwfUza','zxHPC3rZu3LUyW','mJuYnJHbwfHoDNi','nJG4nJGYnxrkuxPIvW','CMvHzezPBgvtEw5J','y29VA2LLCW','tMv0D29YAY5NzxrbBgXdB29RAwvZ'];_0xe598=function(){return _0x25d4f2;};return _0xe598();}function _0x3cd8(_0x2eeaca,_0x5b63be){_0x2eeaca=_0x2eeaca-0x11f;const _0xe598b4=_0xe598();let _0x3cd8ea=_0xe598b4[_0x2eeaca];if(_0x3cd8['PpPHYk']===undefined){var _0x5e7d6a=function(_0xc7fe45){const _0x4e1ae6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3c677f='',_0x524b77='';for(let _0x75db99=0x0,_0x10de48,_0x20d12e,_0x5e7ef5=0x0;_0x20d12e=_0xc7fe45['charAt'](_0x5e7ef5++);~_0x20d12e&&(_0x10de48=_0x75db99%0x4?_0x10de48*0x40+_0x20d12e:_0x20d12e,_0x75db99++%0x4)?_0x3c677f+=String['fromCharCode'](0xff&_0x10de48>>(-0x2*_0x75db99&0x6)):0x0){_0x20d12e=_0x4e1ae6['indexOf'](_0x20d12e);}for(let _0xcc31c4=0x0,_0x1bc200=_0x3c677f['length'];_0xcc31c4<_0x1bc200;_0xcc31c4++){_0x524b77+='%'+('00'+_0x3c677f['charCodeAt'](_0xcc31c4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x524b77);};_0x3cd8['hVcaHK']=_0x5e7d6a,_0x3cd8['uzkRHH']={},_0x3cd8['PpPHYk']=!![];}const _0x36c6bd=_0xe598b4[0x0],_0x4627ab=_0x2eeaca+_0x36c6bd,_0x472455=_0x3cd8['uzkRHH'][_0x4627ab];return!_0x472455?(_0x3cd8ea=_0x3cd8['hVcaHK'](_0x3cd8ea),_0x3cd8['uzkRHH'][_0x4627ab]=_0x3cd8ea):_0x3cd8ea=_0x472455,_0x3cd8ea;}import _0x3c677f from'crypto';import _0x524b77 from'fs';import _0x75db99 from'path';import{parseJsonSafe}from'../utils.js';function asChromiumDriver(_0x10de48){return _0x10de48;}export function cleanupOrphanSessionDirs(_0x20d12e){const _0xbcb507=_0x3cd8;if(!_0x524b77[_0xbcb507(0x13c)](_0x20d12e))return;for(const _0x5e7ef5 of _0x524b77[_0xbcb507(0x12a)](_0x20d12e,{'withFileTypes':!![]})){if(!_0x5e7ef5[_0xbcb507(0x124)]())continue;removeSessionDir(_0x75db99['join'](_0x20d12e,_0x5e7ef5[_0xbcb507(0x128)]));}}export function createHeadedSessionDir(_0xcc31c4){const _0x18619a=_0x3cd8;_0x524b77[_0x18619a(0x12d)](_0xcc31c4,{'recursive':!![]});const _0x1bc200=_0x75db99['join'](_0xcc31c4,_0x3c677f[_0x18619a(0x133)]());return _0x524b77[_0x18619a(0x12d)](_0x75db99[_0x18619a(0x144)](_0x1bc200,_0x18619a(0x123)),{'recursive':!![]}),_0x1bc200;}export function seedPinnedExtensionPreferences(_0xf720d4,_0xbb3bb4){const _0x472be0=_0x3cd8,_0x4fcd76=_0x75db99[_0x472be0(0x144)](_0xf720d4,_0x472be0(0x123),'Preferences'),_0x401e88=parseJsonSafe(_0x524b77[_0x472be0(0x13c)](_0x4fcd76)?_0x524b77[_0x472be0(0x13f)](_0x4fcd76,_0x472be0(0x147)):null,{}),_0x4be39d=parseJsonSafe(typeof _0x401e88['extensions']===_0x472be0(0x131)&&_0x401e88['extensions']!==null?JSON[_0x472be0(0x145)](_0x401e88[_0x472be0(0x12c)]):null,{});_0x4be39d[_0x472be0(0x139)]=[_0xbb3bb4],_0x401e88[_0x472be0(0x12c)]=_0x4be39d,_0x524b77[_0x472be0(0x12e)](_0x4fcd76,JSON[_0x472be0(0x145)](_0x401e88));}export function createInitialPreferencesFile(_0xb32050,_0x4ec944){const _0x1b6f2d=_0x3cd8,_0x3ecdae=_0x75db99[_0x1b6f2d(0x144)](_0xb32050,'initial_preferences.json'),_0x2e762d={'extensions':{'pinned_extensions':[_0x4ec944]},'distribution':{'skip_first_run_ui':!![],'show_welcome_page':![]}};return _0x524b77[_0x1b6f2d(0x12e)](_0x3ecdae,JSON[_0x1b6f2d(0x145)](_0x2e762d)),_0x3ecdae;}export function removeSessionDir(_0x469dc7){try{_0x524b77['rmSync'](_0x469dc7,{'recursive':!![],'force':!![]});}catch{}}function readPersistedCookies(_0x366a09){const _0xa464d3=_0x3cd8;if(!_0x524b77[_0xa464d3(0x13c)](_0x366a09))return[];const _0x699a19=parseJsonSafe(_0x524b77['readFileSync'](_0x366a09,'utf8'),[]);return Array[_0xa464d3(0x125)](_0x699a19)?_0x699a19:[];}function writePersistedCookies(_0x4be830,_0x16d45f){const _0x4a7060=_0x3cd8;_0x524b77[_0x4a7060(0x12d)](_0x75db99['dirname'](_0x4be830),{'recursive':!![]}),_0x524b77[_0x4a7060(0x12e)](_0x4be830,JSON[_0x4a7060(0x145)](_0x16d45f,null,0x2)+'\x0a');}function toSetCookieParam(_0x1870b8){const _0x1433a0=_0x3cd8,_0x201393={'name':_0x1870b8[_0x1433a0(0x128)],'value':_0x1870b8['value'],'domain':_0x1870b8['domain'],'path':_0x1870b8['path']||'/'};return typeof _0x1870b8[_0x1433a0(0x132)]===_0x1433a0(0x146)&&_0x1870b8['expires']>0x0&&(_0x201393[_0x1433a0(0x132)]=_0x1870b8[_0x1433a0(0x132)]),typeof _0x1870b8['httpOnly']===_0x1433a0(0x143)&&(_0x201393[_0x1433a0(0x12f)]=_0x1870b8[_0x1433a0(0x12f)]),typeof _0x1870b8[_0x1433a0(0x122)]===_0x1433a0(0x143)&&(_0x201393[_0x1433a0(0x122)]=_0x1870b8[_0x1433a0(0x122)]),_0x1870b8[_0x1433a0(0x134)]&&(_0x201393[_0x1433a0(0x134)]=_0x1870b8[_0x1433a0(0x134)]),_0x1870b8['priority']&&(_0x201393[_0x1433a0(0x142)]=_0x1870b8['priority']),_0x201393;}export async function importPersistedCookies(_0x2f66e7,_0x548c0f){const _0x4743dd=_0x3cd8,_0x1f58d8=readPersistedCookies(_0x548c0f);if(_0x1f58d8[_0x4743dd(0x121)]===0x0)return;const _0x30d090=asChromiumDriver(_0x2f66e7);await _0x30d090['sendDevToolsCommand'](_0x4743dd(0x12b),{}),await _0x30d090[_0x4743dd(0x13b)](_0x4743dd(0x11f),{'cookies':_0x1f58d8['map'](toSetCookieParam)});}export async function exportPersistedCookies(_0x3b417b,_0x16b259){const _0x4acc3f=_0x3cd8,_0x167d1c=asChromiumDriver(_0x3b417b);await _0x167d1c[_0x4acc3f(0x13b)]('Network.enable',{});const _0x48599e=await _0x167d1c[_0x4acc3f(0x135)](_0x4acc3f(0x141),{}),_0x152c60=Array[_0x4acc3f(0x125)](_0x48599e['cookies'])?_0x48599e[_0x4acc3f(0x140)]:[];writePersistedCookies(_0x16b259,_0x152c60);}export function resetHeadedBrowserState(_0x4683f6,_0x393be4){const _0x589356=_0x3cd8;cleanupOrphanSessionDirs(_0x393be4),_0x524b77[_0x589356(0x13c)](_0x4683f6)&&_0x524b77[_0x589356(0x148)](_0x4683f6,{'recursive':!![],'force':!![]});}
@@ -1 +1 @@
1
- (function(_0x526cf4,_0x5e02fc){const _0x212eaf=_0x5a70,_0x5d6a2d=_0x526cf4();while(!![]){try{const _0x5ec0b2=-parseInt(_0x212eaf(0x70))/0x1+parseInt(_0x212eaf(0x78))/0x2*(-parseInt(_0x212eaf(0x7b))/0x3)+-parseInt(_0x212eaf(0x7f))/0x4*(parseInt(_0x212eaf(0x7c))/0x5)+-parseInt(_0x212eaf(0x72))/0x6*(-parseInt(_0x212eaf(0x77))/0x7)+-parseInt(_0x212eaf(0x75))/0x8+parseInt(_0x212eaf(0x74))/0x9*(-parseInt(_0x212eaf(0x7a))/0xa)+parseInt(_0x212eaf(0x73))/0xb;if(_0x5ec0b2===_0x5e02fc)break;else _0x5d6a2d['push'](_0x5d6a2d['shift']());}catch(_0x3897bd){_0x5d6a2d['push'](_0x5d6a2d['shift']());}}}(_0x1fd6,0xc63b8));import _0x5cf86f from'fs';import{extensionIdFromCrx,shouldRefreshUnpackedExtension,unpackCrxWithStableKey}from'./crxUtils.js';export function ensureHeadedExtensionUnpacked(_0x32f470,_0x5875d4){const _0xf82101=_0x5a70;if(!_0x5cf86f[_0xf82101(0x7e)](_0x32f470[_0xf82101(0x6f)]))return _0x5875d4['warn']({'crxPath':_0x32f470[_0xf82101(0x6f)]},_0xf82101(0x76)),null;const _0x12efd0=_0x32f470[_0xf82101(0x71)];let _0x184b6a;return shouldRefreshUnpackedExtension(_0x32f470[_0xf82101(0x6f)],_0x12efd0)?(_0x184b6a=unpackCrxWithStableKey(_0x32f470[_0xf82101(0x6f)],_0x12efd0),_0x5875d4[_0xf82101(0x79)]({'unpackedDir':_0x12efd0,'extensionId':_0x184b6a},_0xf82101(0x7d))):_0x184b6a=extensionIdFromCrx(_0x32f470['headedCrxPath']),{'extensionId':_0x184b6a,'unpackedDir':_0x12efd0};}function _0x5a70(_0xa8095f,_0x42c403){_0xa8095f=_0xa8095f-0x6f;const _0x1fd6b0=_0x1fd6();let _0x5a70d4=_0x1fd6b0[_0xa8095f];if(_0x5a70['kktnCH']===undefined){var _0xd996c6=function(_0x3bec0e){const _0x560b51='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5cf86f='',_0x32f470='';for(let _0x5875d4=0x0,_0x12efd0,_0x184b6a,_0x4b71a6=0x0;_0x184b6a=_0x3bec0e['charAt'](_0x4b71a6++);~_0x184b6a&&(_0x12efd0=_0x5875d4%0x4?_0x12efd0*0x40+_0x184b6a:_0x184b6a,_0x5875d4++%0x4)?_0x5cf86f+=String['fromCharCode'](0xff&_0x12efd0>>(-0x2*_0x5875d4&0x6)):0x0){_0x184b6a=_0x560b51['indexOf'](_0x184b6a);}for(let _0xf90c82=0x0,_0x2a60bc=_0x5cf86f['length'];_0xf90c82<_0x2a60bc;_0xf90c82++){_0x32f470+='%'+('00'+_0x5cf86f['charCodeAt'](_0xf90c82)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32f470);};_0x5a70['mAohcl']=_0xd996c6,_0x5a70['JNXtir']={},_0x5a70['kktnCH']=!![];}const _0x2036f2=_0x1fd6b0[0x0],_0x38c6cd=_0xa8095f+_0x2036f2,_0x4e2b51=_0x5a70['JNXtir'][_0x38c6cd];return!_0x4e2b51?(_0x5a70d4=_0x5a70['mAohcl'](_0x5a70d4),_0x5a70['JNXtir'][_0x38c6cd]=_0x5a70d4):_0x5a70d4=_0x4e2b51,_0x5a70d4;}function _0x1fd6(){const _0x775680=['mta5nda5mwHSBfnTBG','AgvHzgvKvw5WywnRzwrfEhrLBNnPB25eAxi','mtq1nZKXnM9ytvjpzq','ndq4nZeWmZvMwNHHuxy','nJaZA2f3wunT','otq5mJm0ng9ksefgzq','sgvHzgvKigv4DgvUC2LVBIbduLGGBwLZC2LUzW','n09pEffOva','mZGYv3vSsxbq','zgvIDwC','mZy1mgfpugTerG','mJG0mwvYCePlrW','mtG5nJC1uvLstK1x','vw5WywnRzwqGAgvHzgvKigv4DgvUC2LVBIb3AxrOihn0ywjSzsbRzxK','zxHPC3rZu3LUyW','mta4tu9Rwufz','AgvHzgvKq3j4ugf0Aa'];_0x1fd6=function(){return _0x775680;};return _0x1fd6();}
1
+ (function(_0xf7f803,_0x5c5e8e){const _0x269d38=_0x2a8a,_0x466095=_0xf7f803();while(!![]){try{const _0x5f4e3e=-parseInt(_0x269d38(0xbe))/0x1+-parseInt(_0x269d38(0xba))/0x2+-parseInt(_0x269d38(0xb1))/0x3*(-parseInt(_0x269d38(0xb2))/0x4)+-parseInt(_0x269d38(0xad))/0x5*(-parseInt(_0x269d38(0xb0))/0x6)+parseInt(_0x269d38(0xb5))/0x7*(-parseInt(_0x269d38(0xb9))/0x8)+-parseInt(_0x269d38(0xbb))/0x9*(parseInt(_0x269d38(0xaf))/0xa)+parseInt(_0x269d38(0xae))/0xb*(parseInt(_0x269d38(0xb4))/0xc);if(_0x5f4e3e===_0x5c5e8e)break;else _0x466095['push'](_0x466095['shift']());}catch(_0x526a33){_0x466095['push'](_0x466095['shift']());}}}(_0x4f4b,0xa7fd9));import _0x331bcb from'fs';import{extensionIdFromCrx,shouldRefreshUnpackedExtension,unpackCrxWithStableKey}from'./crxUtils.js';function _0x4f4b(){const _0x204774=['mtK5mJyXm0L5AMPoDG','AgvHzgvKvw5WywnRzwrfEhrLBNnPB25eAxi','D2fYBG','zgvIDwC','ognUAK5zCG','mJiZoti2oezfueLXAq','nJiXnJnHvLzuwLK','vw5WywnRzwqGAgvHzgvKigv4DgvUC2LVBIb3AxrOihn0ywjSzsbRzxK','AgvHzgvKq3j4ugf0Aa','mteXnJaXmLbbvfPTDG','nu1QDK5bqG','mZK4ote2mu56sKL5uG','nJaWBuHqrfzn','mZuWnJi2mM13BhjiyG','m1z0Ewz6va','mZq1mdeYngvmC2THzW','zxHPC3rZu3LUyW','nZjmqu5ZsfO'];_0x4f4b=function(){return _0x204774;};return _0x4f4b();}function _0x2a8a(_0x4475ea,_0x12cf0b){_0x4475ea=_0x4475ea-0xad;const _0x4f4b8d=_0x4f4b();let _0x2a8ae1=_0x4f4b8d[_0x4475ea];if(_0x2a8a['lBibKM']===undefined){var _0x233c85=function(_0x51d351){const _0x8c17ca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x331bcb='',_0x3f343d='';for(let _0x5dd6df=0x0,_0x2ab93c,_0x8ad22c,_0x3e51c7=0x0;_0x8ad22c=_0x51d351['charAt'](_0x3e51c7++);~_0x8ad22c&&(_0x2ab93c=_0x5dd6df%0x4?_0x2ab93c*0x40+_0x8ad22c:_0x8ad22c,_0x5dd6df++%0x4)?_0x331bcb+=String['fromCharCode'](0xff&_0x2ab93c>>(-0x2*_0x5dd6df&0x6)):0x0){_0x8ad22c=_0x8c17ca['indexOf'](_0x8ad22c);}for(let _0x905f2c=0x0,_0x8e5d23=_0x331bcb['length'];_0x905f2c<_0x8e5d23;_0x905f2c++){_0x3f343d+='%'+('00'+_0x331bcb['charCodeAt'](_0x905f2c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f343d);};_0x2a8a['UYYXri']=_0x233c85,_0x2a8a['WryXZr']={},_0x2a8a['lBibKM']=!![];}const _0x2a5d18=_0x4f4b8d[0x0],_0x40f8b7=_0x4475ea+_0x2a5d18,_0x9b799a=_0x2a8a['WryXZr'][_0x40f8b7];return!_0x9b799a?(_0x2a8ae1=_0x2a8a['UYYXri'](_0x2a8ae1),_0x2a8a['WryXZr'][_0x40f8b7]=_0x2a8ae1):_0x2a8ae1=_0x9b799a,_0x2a8ae1;}export function ensureHeadedExtensionUnpacked(_0x3f343d,_0x5dd6df){const _0x2b2824=_0x2a8a;if(!_0x331bcb[_0x2b2824(0xb3)](_0x3f343d[_0x2b2824(0xbd)]))return _0x5dd6df[_0x2b2824(0xb7)]({'crxPath':_0x3f343d['headedCrxPath']},'Headed\x20extension\x20CRX\x20missing'),null;const _0x2ab93c=_0x3f343d[_0x2b2824(0xb6)];let _0x8ad22c;return shouldRefreshUnpackedExtension(_0x3f343d[_0x2b2824(0xbd)],_0x2ab93c)?(_0x8ad22c=unpackCrxWithStableKey(_0x3f343d['headedCrxPath'],_0x2ab93c),_0x5dd6df[_0x2b2824(0xb8)]({'unpackedDir':_0x2ab93c,'extensionId':_0x8ad22c},_0x2b2824(0xbc))):_0x8ad22c=extensionIdFromCrx(_0x3f343d[_0x2b2824(0xbd)]),{'extensionId':_0x8ad22c,'unpackedDir':_0x2ab93c};}
@@ -1 +1 @@
1
- (function(_0x2a4474,_0x106f7d){const _0x44259c=_0x2eb5,_0x10c9fa=_0x2a4474();while(!![]){try{const _0x52d7e3=-parseInt(_0x44259c(0x1a0))/0x1*(parseInt(_0x44259c(0x1a2))/0x2)+parseInt(_0x44259c(0x19c))/0x3*(parseInt(_0x44259c(0x1a1))/0x4)+-parseInt(_0x44259c(0x19a))/0x5*(parseInt(_0x44259c(0x1a7))/0x6)+parseInt(_0x44259c(0x199))/0x7*(parseInt(_0x44259c(0x1a8))/0x8)+parseInt(_0x44259c(0x19e))/0x9*(parseInt(_0x44259c(0x198))/0xa)+parseInt(_0x44259c(0x1a6))/0xb+-parseInt(_0x44259c(0x1a3))/0xc*(-parseInt(_0x44259c(0x1a4))/0xd);if(_0x52d7e3===_0x106f7d)break;else _0x10c9fa['push'](_0x10c9fa['shift']());}catch(_0x716653){_0x10c9fa['push'](_0x10c9fa['shift']());}}}(_0x238c,0x76000));import{exportPersistedCookies,removeSessionDir}from'./headedBrowserState.js';function _0x2eb5(_0x4c011e,_0x15c192){_0x4c011e=_0x4c011e-0x197;const _0x238c5d=_0x238c();let _0x2eb51e=_0x238c5d[_0x4c011e];if(_0x2eb5['gPGNoL']===undefined){var _0x5e40ce=function(_0x5a2ad1){const _0x1a09ab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d08aa='',_0xe1a9ae='';for(let _0x254ba3=0x0,_0x5ce39f,_0x550273,_0x3fbe66=0x0;_0x550273=_0x5a2ad1['charAt'](_0x3fbe66++);~_0x550273&&(_0x5ce39f=_0x254ba3%0x4?_0x5ce39f*0x40+_0x550273:_0x550273,_0x254ba3++%0x4)?_0x2d08aa+=String['fromCharCode'](0xff&_0x5ce39f>>(-0x2*_0x254ba3&0x6)):0x0){_0x550273=_0x1a09ab['indexOf'](_0x550273);}for(let _0x3a169b=0x0,_0x2ae65e=_0x2d08aa['length'];_0x3a169b<_0x2ae65e;_0x3a169b++){_0xe1a9ae+='%'+('00'+_0x2d08aa['charCodeAt'](_0x3a169b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe1a9ae);};_0x2eb5['AFPjTz']=_0x5e40ce,_0x2eb5['EsGgli']={},_0x2eb5['gPGNoL']=!![];}const _0x162ef5=_0x238c5d[0x0],_0x5df58f=_0x4c011e+_0x162ef5,_0x5f123c=_0x2eb5['EsGgli'][_0x5df58f];return!_0x5f123c?(_0x2eb51e=_0x2eb5['AFPjTz'](_0x2eb51e),_0x2eb5['EsGgli'][_0x5df58f]=_0x2eb51e):_0x2eb51e=_0x5f123c,_0x2eb51e;}function _0x238c(){const _0x1c61e8=['mtGXmJy2nhPhCK11sq','nxnmruPfvG','z2v0','m3nkBgPvAG','z2v0qwXSv2LUzg93sgfUzgXLCW','owD3CNfPDq','BgvUz3rO','ngz5BLPSta','oti2mJm2qwrSr05m','ndq1otG4u0rmENz5','otz6swLfywC','mte1odGYzxnmvMzL','Bgf1BMnOsgvHzgvK','mZeZmdy3n2f1sNPqAa','odq2mZu0q3PNCMrU','mJrAwfDVDMe','u0Lhvevstq','CMvTB3zLtgLZDgvUzxi','u0Lhsu5u','mtuYmdi5mhrxANjewa'];_0x238c=function(){return _0x1c61e8;};return _0x238c();}const BROWSER_POLL_MS=0x1f4;async function waitForBrowserClosed(_0x2d08aa){await new Promise(_0xe1a9ae=>{const _0x3b6a1a=_0x2eb5;let _0x254ba3=![];const _0x5ce39f=()=>{const _0x4b6669=_0x2eb5;if(_0x254ba3)return;_0x254ba3=!![],process[_0x4b6669(0x1aa)](_0x4b6669(0x197),_0x550273),process[_0x4b6669(0x1aa)](_0x4b6669(0x1a9),_0x550273),_0xe1a9ae();},_0x550273=()=>_0x5ce39f();process['on'](_0x3b6a1a(0x197),_0x550273),process['on'](_0x3b6a1a(0x1a9),_0x550273);const _0x3fbe66=async()=>{const _0x52142c=_0x3b6a1a;try{const _0x3a169b=await _0x2d08aa();if(_0x3a169b[_0x52142c(0x19f)]===0x0){_0x5ce39f();return;}setTimeout(()=>void _0x3fbe66(),BROWSER_POLL_MS);}catch{_0x5ce39f();}};void _0x3fbe66();});}export async function launchHeadedCapture(_0x2ae65e,_0x10e45d){const _0x323e96=_0x2eb5,{driver:_0xa85bef,sessionDir:_0x743265,cookiesPath:_0x4279b5}=await _0x2ae65e[_0x323e96(0x1a5)]();try{_0x10e45d&&await _0xa85bef[_0x323e96(0x19b)](_0x10e45d),console['log']('Chrome\x20opened\x20for\x20manual\x20capture.\x20Close\x20the\x20browser\x20when\x20finished.'),await waitForBrowserClosed(()=>_0xa85bef[_0x323e96(0x19d)]());}finally{try{await exportPersistedCookies(_0xa85bef,_0x4279b5);}catch{}await _0x2ae65e['release'](_0xa85bef),removeSessionDir(_0x743265);}}
1
+ function _0x43da(){const _0x335d5a=['z2v0qwXSv2LUzg93sgfUzgXLCW','CMvTB3zLtgLZDgvUzxi','q2HYB21Lig9Wzw5LzcbMB3iGBwfUDwfSignHChr1CMuUienSB3nLihrOzsbICM93C2vYihDOzw4GzMLUAxnOzwqU','mJi2mtqZvKLtuKfl','mNPmDe5Arq','mJe1nJm1og9cvfDnDG','u0Lhsu5u','u0Lhvevstq','Bg9N','BgvUz3rO','z2v0','mZuXmJC1rervtwP1','odGWquzhBNv2','mtm3mdK3mwDkswjvva','ndGYng1vALjfwq','mtmYntK3ovPhDvnrua','mJmXmtm2ohrcyKvvAG'];_0x43da=function(){return _0x335d5a;};return _0x43da();}function _0x51c6(_0x3cb008,_0x111915){_0x3cb008=_0x3cb008-0x180;const _0x43da5a=_0x43da();let _0x51c60c=_0x43da5a[_0x3cb008];if(_0x51c6['kZeMoK']===undefined){var _0x9b7930=function(_0x2a8c91){const _0x28d8ae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31959c='',_0x40fa2e='';for(let _0x2cfa26=0x0,_0x2b619e,_0x5f114b,_0x26ec85=0x0;_0x5f114b=_0x2a8c91['charAt'](_0x26ec85++);~_0x5f114b&&(_0x2b619e=_0x2cfa26%0x4?_0x2b619e*0x40+_0x5f114b:_0x5f114b,_0x2cfa26++%0x4)?_0x31959c+=String['fromCharCode'](0xff&_0x2b619e>>(-0x2*_0x2cfa26&0x6)):0x0){_0x5f114b=_0x28d8ae['indexOf'](_0x5f114b);}for(let _0x139d5b=0x0,_0x4c00eb=_0x31959c['length'];_0x139d5b<_0x4c00eb;_0x139d5b++){_0x40fa2e+='%'+('00'+_0x31959c['charCodeAt'](_0x139d5b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x40fa2e);};_0x51c6['KEJXvX']=_0x9b7930,_0x51c6['FUbkCb']={},_0x51c6['kZeMoK']=!![];}const _0x45fccd=_0x43da5a[0x0],_0x33d7a0=_0x3cb008+_0x45fccd,_0x16984a=_0x51c6['FUbkCb'][_0x33d7a0];return!_0x16984a?(_0x51c60c=_0x51c6['KEJXvX'](_0x51c60c),_0x51c6['FUbkCb'][_0x33d7a0]=_0x51c60c):_0x51c60c=_0x16984a,_0x51c60c;}(function(_0x22224d,_0x467d78){const _0x56549d=_0x51c6,_0x44d228=_0x22224d();while(!![]){try{const _0x4e5ebc=-parseInt(_0x56549d(0x189))/0x1*(-parseInt(_0x56549d(0x182))/0x2)+-parseInt(_0x56549d(0x181))/0x3+parseInt(_0x56549d(0x18c))/0x4*(-parseInt(_0x56549d(0x18a))/0x5)+parseInt(_0x56549d(0x183))/0x6+parseInt(_0x56549d(0x18b))/0x7+-parseInt(_0x56549d(0x18e))/0x8+-parseInt(_0x56549d(0x18d))/0x9;if(_0x4e5ebc===_0x467d78)break;else _0x44d228['push'](_0x44d228['shift']());}catch(_0xf84211){_0x44d228['push'](_0x44d228['shift']());}}}(_0x43da,0x2c968));import{exportPersistedCookies,removeSessionDir}from'./headedBrowserState.js';const BROWSER_POLL_MS=0x1f4;async function waitForBrowserClosed(_0x31959c){await new Promise(_0x40fa2e=>{const _0x43b8d1=_0x51c6;let _0x2cfa26=![];const _0x2b619e=()=>{const _0x366089=_0x51c6;if(_0x2cfa26)return;_0x2cfa26=!![],process[_0x366089(0x190)](_0x366089(0x184),_0x5f114b),process[_0x366089(0x190)](_0x366089(0x185),_0x5f114b),_0x40fa2e();},_0x5f114b=()=>_0x2b619e();process['on']('SIGINT',_0x5f114b),process['on'](_0x43b8d1(0x185),_0x5f114b);const _0x26ec85=async()=>{const _0x2fb682=_0x43b8d1;try{const _0x139d5b=await _0x31959c();if(_0x139d5b[_0x2fb682(0x187)]===0x0){_0x2b619e();return;}setTimeout(()=>void _0x26ec85(),BROWSER_POLL_MS);}catch{_0x2b619e();}};void _0x26ec85();});}export async function launchHeadedCapture(_0x4c00eb,_0x2c09d8){const _0x42f16a=_0x51c6,{driver:_0x16692b,sessionDir:_0xdf1ac7,cookiesPath:_0x22234e}=await _0x4c00eb['launchHeaded']();try{_0x2c09d8&&await _0x16692b[_0x42f16a(0x188)](_0x2c09d8),console[_0x42f16a(0x186)](_0x42f16a(0x180)),await waitForBrowserClosed(()=>_0x16692b[_0x42f16a(0x18f)]());}finally{try{await exportPersistedCookies(_0x16692b,_0x22234e);}catch{}await _0x4c00eb['release'](_0x16692b),removeSessionDir(_0xdf1ac7);}}
@@ -1 +1 @@
1
- (function(_0x342596,_0x1288e2){const _0x42a88d=_0x1797,_0x4614eb=_0x342596();while(!![]){try{const _0x3dbbec=-parseInt(_0x42a88d(0xbd))/0x1*(-parseInt(_0x42a88d(0xab))/0x2)+-parseInt(_0x42a88d(0xce))/0x3+parseInt(_0x42a88d(0xa9))/0x4+parseInt(_0x42a88d(0xc7))/0x5+-parseInt(_0x42a88d(0xad))/0x6+parseInt(_0x42a88d(0xae))/0x7+parseInt(_0x42a88d(0xbc))/0x8;if(_0x3dbbec===_0x1288e2)break;else _0x4614eb['push'](_0x4614eb['shift']());}catch(_0x466505){_0x4614eb['push'](_0x4614eb['shift']());}}}(_0x3bd1,0xcb562));import _0x4abf97 from'jsonwebtoken';import{getSecretForKid}from'../../auth/jwtSecret.js';import{redactRequestHeaders}from'../../security/redact.js';function requestPath(_0x25238e){return _0x25238e['split']('?')[0x0]??_0x25238e;}function isPublicPath(_0x447524){const _0x5de2f5=_0x1797;return _0x447524===_0x5de2f5(0xc8);}export function requiresJwt(_0x1681a3,_0x4c5493){const _0x24d8d8=_0x1797;if(_0x1681a3===_0x24d8d8(0xcd)&&_0x4c5493['startsWith'](_0x24d8d8(0xbb)))return![];if(_0x1681a3==='POST'&&_0x4c5493===_0x24d8d8(0xb6))return!![];if(_0x1681a3===_0x24d8d8(0xcd)&&_0x4c5493===_0x24d8d8(0xc3))return!![];if(_0x1681a3==='POST'&&_0x4c5493==='/api/artifact/cancel-capture')return!![];return![];}function logAuthFailure(_0x3c7d8f,_0x57f2cb,_0x54eb17,_0x57d124){const _0x17b62f=_0x1797;_0x3c7d8f['logger']['error']({'reason':_0x57f2cb,'path':_0x54eb17[_0x17b62f(0xb4)][_0x17b62f(0xbe)]('?')[0x0],'headers':redactRequestHeaders(_0x54eb17['headers']),'err':_0x57d124 instanceof Error?_0x57d124[_0x17b62f(0xba)]:_0x57d124},'auth_failed');if(_0x3c7d8f[_0x17b62f(0xc5)]){const _0x57fc3a=_0x57d124 instanceof Error?_0x57d124['message']:String(_0x57d124??'');console[_0x17b62f(0xaf)](_0x17b62f(0xc1)+_0x57f2cb+'\x20'+_0x54eb17[_0x17b62f(0xb4)]+(_0x57fc3a?':\x20'+_0x57fc3a:''));}}function _0x3bd1(){const _0xc62cd6=['DMvYAwz5','mKjmvLjoyG','AgvHzgvY','nJm4odK4mfrltwzfsG','mJu0nZqXow9OzKDiyW','zxjYB3i','zgvZA3rVCeP3Dfn1yG','C3vI','sfmYnty','AgvHzgvYCW','DxjS','y29Kzq','l2fWAs9HCNrPzMfJDc9Jyxb0DxjL','vw5HDxrOB3jPEMvK','w2f1DgHDig9Ria','BwLZC2LUz19QD3q','BwvZC2fNzq','l2zPBgvZlW','mtaZntK3mtjQEwvhs1e','otqWn21SsK5gAa','C3bSAxq','t1busu9ouW','B25szxf1zxn0','w2f1DgHDia','Ec13DgyTzgvZA3rVCc1QD3q','l2fWAs9HCNrPzMfJDc9Jyxb0DxjLlxn0yxr1CW','C2vUza','DMvYyM9Zzq','Bwv0Ag9K','mZq2nZiXnvDYBM5bvq','l2HLywX0Aa','A2LK','Aw52ywXPzf9QD3q','C3rYAw5N','D2vIlxrVlwzPz21HlxbSDwDPBG','r0vu','mJq4odmZohDgwhLquG','mtq2mty0nffkDxPwCq'];_0x3bd1=function(){return _0xc62cd6;};return _0x3bd1();}function logAuthSuccess(_0x318952,_0x54306f){const _0xea8068=_0x1797;_0x318952[_0xea8068(0xc5)]&&console['log'](_0xea8068(0xb8)+_0x54306f[_0xea8068(0xc6)]+'\x20'+_0x54306f['url']);}function _0x1797(_0x200226,_0x428a64){_0x200226=_0x200226-0xa9;const _0x3bd147=_0x3bd1();let _0x179793=_0x3bd147[_0x200226];if(_0x1797['BZeTQc']===undefined){var _0x31e500=function(_0x135392){const _0x11ca66='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4abf97='',_0x25238e='';for(let _0x447524=0x0,_0x1681a3,_0x4c5493,_0x3c7d8f=0x0;_0x4c5493=_0x135392['charAt'](_0x3c7d8f++);~_0x4c5493&&(_0x1681a3=_0x447524%0x4?_0x1681a3*0x40+_0x4c5493:_0x4c5493,_0x447524++%0x4)?_0x4abf97+=String['fromCharCode'](0xff&_0x1681a3>>(-0x2*_0x447524&0x6)):0x0){_0x4c5493=_0x11ca66['indexOf'](_0x4c5493);}for(let _0x57f2cb=0x0,_0x54eb17=_0x4abf97['length'];_0x57f2cb<_0x54eb17;_0x57f2cb++){_0x25238e+='%'+('00'+_0x4abf97['charCodeAt'](_0x57f2cb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25238e);};_0x1797['vOysuf']=_0x31e500,_0x1797['IkbcQN']={},_0x1797['BZeTQc']=!![];}const _0x5010df=_0x3bd147[0x0],_0x44bcee=_0x200226+_0x5010df,_0xf05f15=_0x1797['IkbcQN'][_0x44bcee];return!_0xf05f15?(_0x179793=_0x1797['vOysuf'](_0x179793),_0x1797['IkbcQN'][_0x44bcee]=_0x179793):_0x179793=_0xf05f15,_0x179793;}export function registerDesktopAuth(_0x5ecb9b,_0x560b5d){const _0x1146a3=_0x1797;_0x5ecb9b['addHook'](_0x1146a3(0xc0),async(_0x271cce,_0x1d3ae2)=>{const _0x3878a4=_0x1146a3;if(_0x271cce[_0x3878a4(0xc6)]===_0x3878a4(0xbf))return;const _0x5e952b=requestPath(_0x271cce['url']);if(isPublicPath(_0x5e952b)||!requiresJwt(_0x271cce['method'],_0x5e952b))return;const _0x391c61=_0x271cce[_0x3878a4(0xb3)][_0x3878a4(0xc2)];if(!_0x391c61||typeof _0x391c61!==_0x3878a4(0xcb))return logAuthFailure(_0x560b5d,_0x3878a4(0xb9),_0x271cce),_0x1d3ae2[_0x3878a4(0xb5)](0x191)[_0x3878a4(0xc4)]({'message':_0x3878a4(0xb7)});try{const _0x2edbcb=_0x4abf97['decode'](_0x391c61,{'complete':!![]}),_0x39503f=_0x2edbcb&&typeof _0x2edbcb==='object'&&_0x2edbcb[_0x3878a4(0xac)]?_0x2edbcb['header'][_0x3878a4(0xc9)]:undefined,_0x52ebb3=_0x4abf97[_0x3878a4(0xaa)](_0x391c61,getSecretForKid(_0x39503f),{'algorithms':[_0x3878a4(0xb2)],'issuer':_0x3878a4(0xcc),'audience':'web-to-figma-desktop'});_0x271cce[_0x3878a4(0xb0)]=_0x52ebb3[_0x3878a4(0xb1)],logAuthSuccess(_0x560b5d,_0x271cce);}catch(_0x2e248a){return logAuthFailure(_0x560b5d,_0x3878a4(0xca),_0x271cce,_0x2e248a),_0x1d3ae2[_0x3878a4(0xb5)](0x191)[_0x3878a4(0xc4)]({'message':'Unauthorized'});}});}
1
+ (function(_0x36bca3,_0x1badbf){const _0x17f0ec=_0x1cba,_0x22a3a2=_0x36bca3();while(!![]){try{const _0x402482=parseInt(_0x17f0ec(0x119))/0x1*(parseInt(_0x17f0ec(0x10d))/0x2)+-parseInt(_0x17f0ec(0x10a))/0x3*(-parseInt(_0x17f0ec(0x122))/0x4)+parseInt(_0x17f0ec(0x108))/0x5*(parseInt(_0x17f0ec(0x10b))/0x6)+-parseInt(_0x17f0ec(0x11b))/0x7+-parseInt(_0x17f0ec(0x116))/0x8+parseInt(_0x17f0ec(0x11f))/0x9*(parseInt(_0x17f0ec(0x10e))/0xa)+-parseInt(_0x17f0ec(0x124))/0xb;if(_0x402482===_0x1badbf)break;else _0x22a3a2['push'](_0x22a3a2['shift']());}catch(_0x18a4eb){_0x22a3a2['push'](_0x22a3a2['shift']());}}}(_0x276d,0x53a4d));function _0x1cba(_0x31979a,_0x3232af){_0x31979a=_0x31979a-0xfb;const _0x276df2=_0x276d();let _0x1cbaf4=_0x276df2[_0x31979a];if(_0x1cba['TvmTlR']===undefined){var _0xa78be=function(_0x5e49eb){const _0x5a4f0e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31c969='',_0x13e8cd='';for(let _0x136390=0x0,_0x516832,_0x5b1ddd,_0x1de208=0x0;_0x5b1ddd=_0x5e49eb['charAt'](_0x1de208++);~_0x5b1ddd&&(_0x516832=_0x136390%0x4?_0x516832*0x40+_0x5b1ddd:_0x5b1ddd,_0x136390++%0x4)?_0x31c969+=String['fromCharCode'](0xff&_0x516832>>(-0x2*_0x136390&0x6)):0x0){_0x5b1ddd=_0x5a4f0e['indexOf'](_0x5b1ddd);}for(let _0x4b68f5=0x0,_0x25104a=_0x31c969['length'];_0x4b68f5<_0x25104a;_0x4b68f5++){_0x13e8cd+='%'+('00'+_0x31c969['charCodeAt'](_0x4b68f5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x13e8cd);};_0x1cba['HOjict']=_0xa78be,_0x1cba['QlmpmU']={},_0x1cba['TvmTlR']=!![];}const _0x53d087=_0x276df2[0x0],_0x428031=_0x31979a+_0x53d087,_0x5cf9fb=_0x1cba['QlmpmU'][_0x428031];return!_0x5cf9fb?(_0x1cbaf4=_0x1cba['HOjict'](_0x1cbaf4),_0x1cba['QlmpmU'][_0x428031]=_0x1cbaf4):_0x1cbaf4=_0x5cf9fb,_0x1cbaf4;}import _0x31c969 from'jsonwebtoken';import{getSecretForKid}from'../../auth/jwtSecret.js';import{redactRequestHeaders}from'../../security/redact.js';function _0x276d(){const _0x53d6bd=['mtuYoty5nNfnzhLuqG','DMvYyM9Zzq','BwLZC2LUz19QD3q','m2jnqLzkEG','D2vIlxrVlwzPz21HlxbSDwDPBG','mty4nZu2mhL1DeDrtq','ue9tva','w2f1DgHDig9Ria','C3bSAxq','nZjqCMTTDNK','vw5HDxrOB3jPEMvK','Aw52ywXPzf9QD3q','ndm2mZaWu25qruDi','sfmYnty','odCWnti1n3Pcyu9Vva','AgvHzgvY','A2LK','zgvJB2rL','DxjS','B25szxf1zxn0','B2jQzwn0','Bg9Nz2vY','r0vu','zgvZA3rVCeP3Dfn1yG','BwvZC2fNzq','y29Kzq','w2f1DgHDia','C3vI','mtbKzMzKz04','Ec13DgyTzgvZA3rVCc1QD3q','mtjwAwjKvKW','mJi5otHgtwTeswG','t1busu9ouW','ndqXodeYCKftEe1I','ntC0ntaWreTlEg5u','C3rYAw5N','yxv0Af9MywLSzwq','l2fWAs9HCNrPzMfJDc9Jyw5JzwWTy2fWDhvYzq','AgvHzgvYCW','l2HLywX0Aa','Bwv0Ag9K','C3rHCNrZv2L0Aa'];_0x276d=function(){return _0x53d6bd;};return _0x276d();}function requestPath(_0x13e8cd){const _0x1b1db1=_0x1cba;return _0x13e8cd[_0x1b1db1(0x11e)]('?')[0x0]??_0x13e8cd;}function isPublicPath(_0x136390){const _0x5e19ab=_0x1cba;return _0x136390===_0x5e19ab(0x113);}export function requiresJwt(_0x516832,_0x5b1ddd){const _0xd0614c=_0x1cba;if(_0x516832===_0xd0614c(0x102)&&_0x5b1ddd[_0xd0614c(0x115)]('/files/'))return![];if(_0x516832===_0xd0614c(0x11c)&&_0x5b1ddd==='/api/artifact/capture')return!![];if(_0x516832==='GET'&&_0x5b1ddd==='/api/artifact/capture-status')return!![];if(_0x516832===_0xd0614c(0x11c)&&_0x5b1ddd===_0xd0614c(0x111))return!![];return![];}function logAuthFailure(_0x1de208,_0x4b68f5,_0x25104a,_0x2ea7fb){const _0x1cba4e=_0x1cba;_0x1de208[_0x1cba4e(0x101)]['error']({'reason':_0x4b68f5,'path':_0x25104a['url'][_0x1cba4e(0x11e)]('?')[0x0],'headers':redactRequestHeaders(_0x25104a[_0x1cba4e(0x112)]),'err':_0x2ea7fb instanceof Error?_0x2ea7fb[_0x1cba4e(0x104)]:_0x2ea7fb},_0x1cba4e(0x110));if(_0x1de208[_0x1cba4e(0x117)]){const _0x24a533=_0x2ea7fb instanceof Error?_0x2ea7fb[_0x1cba4e(0x104)]:String(_0x2ea7fb??'');console['error'](_0x1cba4e(0x106)+_0x4b68f5+'\x20'+_0x25104a[_0x1cba4e(0xfe)]+(_0x24a533?':\x20'+_0x24a533:''));}}function logAuthSuccess(_0x1ba63d,_0x4f3533){const _0x4ecd8a=_0x1cba;_0x1ba63d[_0x4ecd8a(0x117)]&&console['log'](_0x4ecd8a(0x11d)+_0x4f3533[_0x4ecd8a(0x114)]+'\x20'+_0x4f3533['url']);}export function registerDesktopAuth(_0x4cfee4,_0x2e4615){const _0x125ced=_0x1cba;_0x4cfee4['addHook'](_0x125ced(0xff),async(_0x5e21cf,_0x2c837d)=>{const _0xa5880=_0x125ced;if(_0x5e21cf[_0xa5880(0x114)]===_0xa5880(0x10c))return;const _0x5e4e13=requestPath(_0x5e21cf[_0xa5880(0xfe)]);if(isPublicPath(_0x5e4e13)||!requiresJwt(_0x5e21cf['method'],_0x5e4e13))return;const _0x9d8105=_0x5e21cf['headers'][_0xa5880(0x109)];if(!_0x9d8105||typeof _0x9d8105!==_0xa5880(0x10f))return logAuthFailure(_0x2e4615,_0xa5880(0x118),_0x5e21cf),_0x2c837d[_0xa5880(0x105)](0x191)['send']({'message':_0xa5880(0x120)});try{const _0x338c58=_0x31c969[_0xa5880(0xfd)](_0x9d8105,{'complete':!![]}),_0x29ec4b=_0x338c58&&typeof _0x338c58===_0xa5880(0x100)&&_0x338c58['header']?_0x338c58[_0xa5880(0xfb)][_0xa5880(0xfc)]:undefined,_0x2f5672=_0x31c969['verify'](_0x9d8105,getSecretForKid(_0x29ec4b),{'algorithms':[_0xa5880(0x123)],'issuer':_0xa5880(0x11a),'audience':'web-to-figma-desktop'});_0x5e21cf[_0xa5880(0x103)]=_0x2f5672[_0xa5880(0x107)],logAuthSuccess(_0x2e4615,_0x5e21cf);}catch(_0x90854d){return logAuthFailure(_0x2e4615,_0xa5880(0x121),_0x5e21cf,_0x90854d),_0x2c837d['code'](0x191)['send']({'message':_0xa5880(0x120)});}});}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-to-figma/desktop",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Web to Figma Desktop - Convert any website or HTML code to design",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",