@unotest/viewer 0.26.1 → 0.27.0

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
- const _0x2f6beb=_0x3826;(function(_0x144025,_0x33b0d4){const _0x3c2df1={_0x5c38c3:0x166,_0x2da135:0x179,_0xbe3d07:0x176,_0x16ec50:0x168,_0x35b182:0x162},_0x874145=_0x3826,_0x6e0389=_0x144025();while(!![]){try{const _0x54ebfb=-parseInt(_0x874145(_0x3c2df1._0x5c38c3))/0x1+-parseInt(_0x874145(_0x3c2df1._0x2da135))/0x2+parseInt(_0x874145(0x16a))/0x3+parseInt(_0x874145(_0x3c2df1._0xbe3d07))/0x4+-parseInt(_0x874145(_0x3c2df1._0x16ec50))/0x5+-parseInt(_0x874145(_0x3c2df1._0x35b182))/0x6*(-parseInt(_0x874145(0x174))/0x7)+-parseInt(_0x874145(0x165))/0x8;if(_0x54ebfb===_0x33b0d4)break;else _0x6e0389['push'](_0x6e0389['shift']());}catch(_0x34f8bb){_0x6e0389['push'](_0x6e0389['shift']());}}}(_0x4e7c,0x5edd6));var __defProp=Object[_0x2f6beb(0x17d)],__name=(_0x4da158,_0x1fbea8)=>__defProp(_0x4da158,_0x2f6beb(0x178),{'value':_0x1fbea8,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER=_0x2f6beb(0x171);function _0x3826(_0x56ec6a,_0x205e7b){_0x56ec6a=_0x56ec6a-0x161;const _0x4e7c5e=_0x4e7c();let _0x38265a=_0x4e7c5e[_0x56ec6a];if(_0x3826['Hgwqjr']===undefined){var _0x58cb92=function(_0xd02eb7){const _0x52d8fe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4da158='',_0x1fbea8='';for(let _0x49ecd6=0x0,_0x57b25e,_0x5bb1c6,_0x389785=0x0;_0x5bb1c6=_0xd02eb7['charAt'](_0x389785++);~_0x5bb1c6&&(_0x57b25e=_0x49ecd6%0x4?_0x57b25e*0x40+_0x5bb1c6:_0x5bb1c6,_0x49ecd6++%0x4)?_0x4da158+=String['fromCharCode'](0xff&_0x57b25e>>(-0x2*_0x49ecd6&0x6)):0x0){_0x5bb1c6=_0x52d8fe['indexOf'](_0x5bb1c6);}for(let _0x529e2b=0x0,_0x1fa89a=_0x4da158['length'];_0x529e2b<_0x1fa89a;_0x529e2b++){_0x1fbea8+='%'+('00'+_0x4da158['charCodeAt'](_0x529e2b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1fbea8);};_0x3826['QhlSqZ']=_0x58cb92,_0x3826['JqsRBn']={},_0x3826['Hgwqjr']=!![];}const _0x3077b6=_0x4e7c5e[0x0],_0x598b41=_0x56ec6a+_0x3077b6,_0x4d234a=_0x3826['JqsRBn'][_0x598b41];return!_0x4d234a?(_0x38265a=_0x3826['QhlSqZ'](_0x38265a),_0x3826['JqsRBn'][_0x598b41]=_0x38265a):_0x38265a=_0x4d234a,_0x38265a;}function encodeViewerSession(_0x49ecd6){const _0x1e11da={_0x137dea:0x167,_0x5bb646:0x161},_0x677efc=_0x2f6beb;return Buffer[_0x677efc(_0x1e11da._0x137dea)](JSON[_0x677efc(_0x1e11da._0x5bb646)](_0x49ecd6),_0x677efc(0x173))['toString']('base64url');}__name(encodeViewerSession,_0x2f6beb(0x177));function decodeViewerSession(_0x57b25e){const _0x26dfad={_0x3c3b47:0x167,_0x5b2e64:0x16f,_0x239723:0x172},_0x4831cc=_0x2f6beb;if(_0x57b25e===void 0x0||_0x57b25e==='')return null;let _0x5bb1c6;try{_0x5bb1c6=JSON[_0x4831cc(0x16d)](Buffer[_0x4831cc(_0x26dfad._0x3c3b47)](_0x57b25e,_0x4831cc(_0x26dfad._0x5b2e64))[_0x4831cc(_0x26dfad._0x239723)](_0x4831cc(0x173)));}catch{return null;}if(typeof _0x5bb1c6!==_0x4831cc(0x164)||_0x5bb1c6===null)return null;const {capabilities:_0x389785,identity:_0x529e2b}=_0x5bb1c6,_0x1fa89a=readCapabilities(_0x389785);if(_0x1fa89a===null)return null;return{'capabilities':_0x1fa89a,'identity':readIdentity(_0x529e2b)};}__name(decodeViewerSession,_0x2f6beb(0x163));function readCapabilities(_0x3c3a19){const _0x5a0153={_0x3bbd78:0x164,_0x3b383a:0x16c,_0x854f52:0x170,_0x17fb74:0x16b},_0xa349bd=_0x2f6beb;if(typeof _0x3c3a19!==_0xa349bd(_0x5a0153._0x3bbd78)||_0x3c3a19===null)return null;const _0x220883=_0x3c3a19,_0x5aef5e=__name(_0x21658a=>_0x220883[_0x21658a]===!![],_0xa349bd(_0x5a0153._0x3b383a));return{'canRun':_0x5aef5e(_0xa349bd(_0x5a0153._0x854f52)),'canEditFiles':_0x5aef5e(_0xa349bd(0x17a)),'canTerminal':_0x5aef5e('canTerminal'),'canBrowseFs':_0x5aef5e(_0xa349bd(_0x5a0153._0x17fb74))};}__name(readCapabilities,_0x2f6beb(0x169));function readIdentity(_0x52043b){const _0x15d7f5={_0x11a934:0x16e,_0x197778:0x17c,_0xc4ea55:0x17c},_0x4f8582=_0x2f6beb;if(typeof _0x52043b!=='object'||_0x52043b===null)return null;const _0x2441bd=_0x52043b,{user:_0x43f4c9,role:_0x34c78d}=_0x2441bd;if(typeof _0x43f4c9!==_0x4f8582(_0x15d7f5._0x11a934)||typeof _0x34c78d!==_0x4f8582(_0x15d7f5._0x11a934))return null;return{'user':_0x43f4c9,'role':_0x34c78d,...typeof _0x2441bd[_0x4f8582(_0x15d7f5._0x197778)]===_0x4f8582(0x16e)?{'env':_0x2441bd[_0x4f8582(_0x15d7f5._0xc4ea55)]}:{},...typeof _0x2441bd[_0x4f8582(0x175)]===_0x4f8582(_0x15d7f5._0x11a934)?{'logoutUrl':_0x2441bd['logoutUrl']}:{}};}__name(readIdentity,_0x2f6beb(0x17b));export{FULL_CAPABILITIES,STANDALONE_SESSION,VIEWER_SESSION_HEADER,decodeViewerSession,encodeViewerSession};function _0x4e7c(){const _0x439ae9=['CgfYC2u','C3rYAw5N','yMfZzty0DxjS','y2fUuNvU','Ec11BM90zxn0lxzPzxDLCI1ZzxnZAw9U','Dg9tDhjPBMC','DxrMoa','n2HAvgTyzW','Bg9NB3v0vxjS','odC2ntq0CfDWChb5','zw5JB2rLvMLLD2vYu2vZC2LVBG','BMfTzq','nJeYmJC0A3bhDe1x','y2fUrwrPDezPBgvZ','CMvHzeLKzw50Axr5','zw52','zgvMAw5LuhjVCgvYDhK','C3rYAw5NAwz5','mZa3ndy1og1XwuXAyq','zgvJB2rLvMLLD2vYu2vZC2LVBG','B2jQzwn0','mJC3nJy0C1j4rhft','otG4ntjYAK9eCMq','zNjVBq','mtGZmdu4meD6r3jQuW','CMvHzenHCgfIAwXPDgLLCW','mtm4odqWmgHWsxPqEG','y2fUqNjVD3nLrNm','zMXHzW'];_0x4e7c=function(){return _0x439ae9;};return _0x4e7c();}
1
+ const _0x25b64b=_0x3b21;(function(_0x2c4363,_0x4048fe){const _0x3ab26d={_0x3f8911:0x182,_0x2bbf13:0x184,_0x2c25e6:0x18a,_0x2a122e:0x18f,_0x5dd682:0x190},_0x5d2f4a=_0x3b21,_0x376fd4=_0x2c4363();while(!![]){try{const _0x1e2517=-parseInt(_0x5d2f4a(0x198))/0x1+parseInt(_0x5d2f4a(0x183))/0x2+-parseInt(_0x5d2f4a(_0x3ab26d._0x3f8911))/0x3+-parseInt(_0x5d2f4a(_0x3ab26d._0x2bbf13))/0x4+parseInt(_0x5d2f4a(_0x3ab26d._0x2c25e6))/0x5+-parseInt(_0x5d2f4a(0x18e))/0x6+parseInt(_0x5d2f4a(_0x3ab26d._0x2a122e))/0x7*(parseInt(_0x5d2f4a(_0x3ab26d._0x5dd682))/0x8);if(_0x1e2517===_0x4048fe)break;else _0x376fd4['push'](_0x376fd4['shift']());}catch(_0x49bf9f){_0x376fd4['push'](_0x376fd4['shift']());}}}(_0x4872,0x52c4c));function _0x3b21(_0x2c6d39,_0x3a6b17){_0x2c6d39=_0x2c6d39-0x181;const _0x4872f0=_0x4872();let _0x3b21e6=_0x4872f0[_0x2c6d39];if(_0x3b21['hyWHMj']===undefined){var _0x39c4e1=function(_0x584a2f){const _0x10a132='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2af93c='',_0x9acbd1='';for(let _0x1c222f=0x0,_0x45b945,_0x28808f,_0x4a95cb=0x0;_0x28808f=_0x584a2f['charAt'](_0x4a95cb++);~_0x28808f&&(_0x45b945=_0x1c222f%0x4?_0x45b945*0x40+_0x28808f:_0x28808f,_0x1c222f++%0x4)?_0x2af93c+=String['fromCharCode'](0xff&_0x45b945>>(-0x2*_0x1c222f&0x6)):0x0){_0x28808f=_0x10a132['indexOf'](_0x28808f);}for(let _0x17f1d0=0x0,_0xef0589=_0x2af93c['length'];_0x17f1d0<_0xef0589;_0x17f1d0++){_0x9acbd1+='%'+('00'+_0x2af93c['charCodeAt'](_0x17f1d0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9acbd1);};_0x3b21['qPmTvx']=_0x39c4e1,_0x3b21['jvCzfR']={},_0x3b21['hyWHMj']=!![];}const _0x43b9cc=_0x4872f0[0x0],_0xb3e954=_0x2c6d39+_0x43b9cc,_0xffc397=_0x3b21['jvCzfR'][_0xb3e954];return!_0xffc397?(_0x3b21e6=_0x3b21['qPmTvx'](_0x3b21e6),_0x3b21['jvCzfR'][_0xb3e954]=_0x3b21e6):_0x3b21e6=_0xffc397,_0x3b21e6;}var __defProp=Object['defineProperty'],__name=(_0x2af93c,_0x9acbd1)=>__defProp(_0x2af93c,'name',{'value':_0x9acbd1,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER=_0x25b64b(0x185);function encodeViewerSession(_0x1c222f){const _0x27f261={_0x3ccc85:0x18d,_0x5d96cb:0x195},_0x269393=_0x25b64b;return Buffer[_0x269393(0x186)](JSON[_0x269393(0x181)](_0x1c222f),_0x269393(0x193))[_0x269393(_0x27f261._0x3ccc85)](_0x269393(_0x27f261._0x5d96cb));}__name(encodeViewerSession,'encodeViewerSession');function decodeViewerSession(_0x45b945){const _0x50ff14=_0x25b64b;if(_0x45b945===void 0x0||_0x45b945==='')return null;let _0x28808f;try{_0x28808f=JSON['parse'](Buffer['from'](_0x45b945,_0x50ff14(0x195))['toString']('utf8'));}catch{return null;}if(typeof _0x28808f!=='object'||_0x28808f===null)return null;const {capabilities:_0x4a95cb,identity:_0x17f1d0}=_0x28808f,_0xef0589=readCapabilities(_0x4a95cb);if(_0xef0589===null)return null;return{'capabilities':_0xef0589,'identity':readIdentity(_0x17f1d0)};}__name(decodeViewerSession,_0x25b64b(0x18b));function readCapabilities(_0x2cea0f){const _0x44a1ce={_0xdbd45a:0x199,_0x50c20b:0x187,_0x301e3a:0x18c},_0x227d2e=_0x25b64b;if(typeof _0x2cea0f!==_0x227d2e(_0x44a1ce._0xdbd45a)||_0x2cea0f===null)return null;const _0x41f5fe=_0x2cea0f,_0x1ac972=__name(_0x165834=>_0x41f5fe[_0x165834]===!![],_0x227d2e(0x192));return{'canRun':_0x1ac972(_0x227d2e(0x197)),'canEditFiles':_0x1ac972(_0x227d2e(_0x44a1ce._0x50c20b)),'canTerminal':_0x1ac972(_0x227d2e(_0x44a1ce._0x301e3a)),'canBrowseFs':_0x1ac972(_0x227d2e(0x194))};}__name(readCapabilities,_0x25b64b(0x196));function _0x4872(){const _0xfb89aa=['mtC1mZK2mhDmt0Xdza','Ec11BM90zxn0lxzPzxDLCI1ZzxnZAw9U','zNjVBq','y2fUrwrPDezPBgvZ','C3rYAw5N','zw52','mtC4nZu2nu1jseTHDW','zgvJB2rLvMLLD2vYu2vZC2LVBG','y2fUvgvYBwLUywW','Dg9tDhjPBMC','mtu2odyYofvVDuv6ra','mtriBfP3tMG','ndGWmZKZnMfqvgTgrW','Bg9NB3v0vxjS','zMXHzW','DxrMoa','y2fUqNjVD3nLrNm','yMfZzty0DxjS','CMvHzenHCgfIAwXPDgLLCW','y2fUuNvU','mJa2mdq5s1jjz1bN','B2jQzwn0','C3rYAw5NAwz5','mtu2otCWoenwsLjMDW','nde5ndCYEMPoChzs'];_0x4872=function(){return _0xfb89aa;};return _0x4872();}function readIdentity(_0x2879ae){const _0x41274f={_0x555d3d:0x189,_0x2a3791:0x189,_0x1157b5:0x191},_0x124424=_0x25b64b;if(typeof _0x2879ae!=='object'||_0x2879ae===null)return null;const _0x5aa2a2=_0x2879ae,{user:_0x3b9da8,role:_0x552107}=_0x5aa2a2;if(typeof _0x3b9da8!=='string'||typeof _0x552107!=='string')return null;return{'user':_0x3b9da8,'role':_0x552107,...typeof _0x5aa2a2[_0x124424(_0x41274f._0x555d3d)]==='string'?{'env':_0x5aa2a2[_0x124424(_0x41274f._0x2a3791)]}:{},...typeof _0x5aa2a2[_0x124424(_0x41274f._0x1157b5)]===_0x124424(0x188)?{'logoutUrl':_0x5aa2a2['logoutUrl']}:{}};}__name(readIdentity,'readIdentity');export{FULL_CAPABILITIES,STANDALONE_SESSION,VIEWER_SESSION_HEADER,decodeViewerSession,encodeViewerSession};