@unotest/viewer 0.26.0 → 0.26.1

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 _0x5a24(_0x910f05,_0x4da0cc){_0x910f05=_0x910f05-0x96;const _0x302606=_0x3026();let _0x5a2492=_0x302606[_0x910f05];if(_0x5a24['iRSSrz']===undefined){var _0x5b11e0=function(_0x1bc304){const _0x543b1a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x897be9='',_0x2585ae='';for(let _0x205f55=0x0,_0x509d60,_0x351df8,_0x57560d=0x0;_0x351df8=_0x1bc304['charAt'](_0x57560d++);~_0x351df8&&(_0x509d60=_0x205f55%0x4?_0x509d60*0x40+_0x351df8:_0x351df8,_0x205f55++%0x4)?_0x897be9+=String['fromCharCode'](0xff&_0x509d60>>(-0x2*_0x205f55&0x6)):0x0){_0x351df8=_0x543b1a['indexOf'](_0x351df8);}for(let _0x14939f=0x0,_0x426fc2=_0x897be9['length'];_0x14939f<_0x426fc2;_0x14939f++){_0x2585ae+='%'+('00'+_0x897be9['charCodeAt'](_0x14939f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2585ae);};_0x5a24['tgtqEP']=_0x5b11e0,_0x5a24['SEINoh']={},_0x5a24['iRSSrz']=!![];}const _0x18f3cb=_0x302606[0x0],_0x305ef2=_0x910f05+_0x18f3cb,_0x22883a=_0x5a24['SEINoh'][_0x305ef2];return!_0x22883a?(_0x5a2492=_0x5a24['tgtqEP'](_0x5a2492),_0x5a24['SEINoh'][_0x305ef2]=_0x5a2492):_0x5a2492=_0x22883a,_0x5a2492;}const _0x179d79=_0x5a24;(function(_0x4c7723,_0x5aebc0){const _0x3e70fd={_0x365e:0xae,_0x59aa46:0xaa,_0x14bd68:0xa5},_0x1f7f5e=_0x5a24,_0x112e83=_0x4c7723();while(!![]){try{const _0x1ea0f2=parseInt(_0x1f7f5e(0xa8))/0x1*(parseInt(_0x1f7f5e(_0x3e70fd._0x365e))/0x2)+-parseInt(_0x1f7f5e(0xa6))/0x3*(-parseInt(_0x1f7f5e(_0x3e70fd._0x59aa46))/0x4)+-parseInt(_0x1f7f5e(_0x3e70fd._0x14bd68))/0x5+parseInt(_0x1f7f5e(0x9f))/0x6*(parseInt(_0x1f7f5e(0x96))/0x7)+-parseInt(_0x1f7f5e(0xa1))/0x8+parseInt(_0x1f7f5e(0xac))/0x9+-parseInt(_0x1f7f5e(0x9e))/0xa;if(_0x1ea0f2===_0x5aebc0)break;else _0x112e83['push'](_0x112e83['shift']());}catch(_0x2d9994){_0x112e83['push'](_0x112e83['shift']());}}}(_0x3026,0x92b02));var __defProp=Object[_0x179d79(0xaf)],__name=(_0x897be9,_0x2585ae)=>__defProp(_0x897be9,'name',{'value':_0x2585ae,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER='x-unotest-viewer-session';function encodeViewerSession(_0x205f55){const _0x105d7f=_0x179d79;return Buffer[_0x105d7f(0x9a)](JSON[_0x105d7f(0xa4)](_0x205f55),_0x105d7f(0x9b))['toString'](_0x105d7f(0xa7));}__name(encodeViewerSession,_0x179d79(0xa0));function decodeViewerSession(_0x509d60){const _0x155499={_0x9f229d:0x9d,_0x16aad7:0xa7,_0x35227b:0x9b},_0x4c3a35=_0x179d79;if(_0x509d60===void 0x0||_0x509d60==='')return null;let _0x351df8;try{_0x351df8=JSON[_0x4c3a35(_0x155499._0x9f229d)](Buffer[_0x4c3a35(0x9a)](_0x509d60,_0x4c3a35(_0x155499._0x16aad7))['toString'](_0x4c3a35(_0x155499._0x35227b)));}catch{return null;}if(typeof _0x351df8!==_0x4c3a35(0xa9)||_0x351df8===null)return null;const {capabilities:_0x57560d,identity:_0x14939f}=_0x351df8,_0x426fc2=readCapabilities(_0x57560d);if(_0x426fc2===null)return null;return{'capabilities':_0x426fc2,'identity':readIdentity(_0x14939f)};}__name(decodeViewerSession,_0x179d79(0xb0));function readCapabilities(_0x471182){const _0x5613af={_0x51c4fc:0xa3,_0xf410c6:0xa2,_0x8bcd07:0xad},_0x4bdc8e=_0x179d79;if(typeof _0x471182!==_0x4bdc8e(0xa9)||_0x471182===null)return null;const _0x2534ef=_0x471182,_0x58031b=__name(_0x13d306=>_0x2534ef[_0x13d306]===!![],_0x4bdc8e(_0x5613af._0x51c4fc));return{'canRun':_0x58031b(_0x4bdc8e(_0x5613af._0xf410c6)),'canEditFiles':_0x58031b(_0x4bdc8e(_0x5613af._0x8bcd07)),'canTerminal':_0x58031b(_0x4bdc8e(0x97)),'canBrowseFs':_0x58031b(_0x4bdc8e(0xb2))};}__name(readCapabilities,_0x179d79(0x99));function readIdentity(_0x317042){const _0x45f8c2={_0x4248d1:0xab,_0x521cf4:0x9c,_0x3d036f:0x98},_0x24063c=_0x179d79;if(typeof _0x317042!==_0x24063c(0xa9)||_0x317042===null)return null;const _0x28f3b4=_0x317042,{user:_0x31dc5b,role:_0x33a4d0}=_0x28f3b4;if(typeof _0x31dc5b!==_0x24063c(_0x45f8c2._0x4248d1)||typeof _0x33a4d0!==_0x24063c(0xab))return null;return{'user':_0x31dc5b,'role':_0x33a4d0,...typeof _0x28f3b4[_0x24063c(0x9c)]==='string'?{'env':_0x28f3b4[_0x24063c(_0x45f8c2._0x521cf4)]}:{},...typeof _0x28f3b4[_0x24063c(0x98)]===_0x24063c(_0x45f8c2._0x4248d1)?{'logoutUrl':_0x28f3b4[_0x24063c(_0x45f8c2._0x3d036f)]}:{}};}__name(readIdentity,_0x179d79(0xb1));export{FULL_CAPABILITIES,STANDALONE_SESSION,VIEWER_SESSION_HEADER,decodeViewerSession,encodeViewerSession};function _0x3026(){const _0xc9b730=['y2fUrwrPDezPBgvZ','mtmWnNHSz0HRyq','zgvMAw5LuhjVCgvYDhK','zgvJB2rLvMLLD2vYu2vZC2LVBG','CMvHzeLKzw50Axr5','y2fUqNjVD3nLrNm','mJa5ntHHDw9fzvi','y2fUvgvYBwLUywW','Bg9NB3v0vxjS','CMvHzenHCgfIAwXPDgLLCW','zNjVBq','DxrMoa','zw52','CgfYC2u','mte0ote5mJbPqK9jvLK','odi4vKzJB0Xr','zw5JB2rLvMLLD2vYu2vZC2LVBG','mJa2odm3nMHbDMvpBG','y2fUuNvU','zMXHzW','C3rYAw5NAwz5','mZe5mJi4nxHey0rKrW','mtiWndi2EwzorfPt','yMfZzty0DxjS','mtm3ouvft2nXtq','B2jQzwn0','mJHituroCvC','C3rYAw5N','otq3mtm5m2XJyK5NEG'];_0x3026=function(){return _0xc9b730;};return _0x3026();}
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();}