@ckeditor/ckeditor5-paste-from-office-enhanced 48.0.0-alpha.0 → 48.0.0-alpha.2
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/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x118bb6}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x47be3e,PasteFromOffice as _0x1cd220,parsePasteOfficeHtml as _0x42e33f}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x396a8d,uid as _0x115d99}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x568a36,ViewDocument as _0x1fd81c,ViewDomConverter as _0x1a180d}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x460d6a){return a['test'](_0x460d6a);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x5e2b9a,_0x4618dd){const _0x15ff92=new Map();for(const [_0xc56c28,_0xbfccfb]of _0x4618dd){if(!_0xc56c28['tagName']&&!_0xc56c28['className'])continue;const _0x311142=!_0xc56c28['tagName']||_0x5e2b9a['name']===_0xc56c28['tagName'],_0x273a9c=!_0xc56c28['className']||_0x5e2b9a['hasClass'](_0xc56c28['className']);_0x311142&&_0x273a9c&&_0x15ff92['set'](_0xc56c28,_0xbfccfb);}return _0x15ff92;}function m(_0x5aaac7){const _0x3dbd39={};for(let _0x115086=0x0;_0x115086<_0x5aaac7['length'];_0x115086++){const _0x4579b9=_0x5aaac7[_0x115086],_0x1cb3b1=_0x5aaac7['getPropertyValue'](_0x4579b9);'initial'!==_0x1cb3b1&&(_0x3dbd39[_0x4579b9]=_0x1cb3b1);}return _0x3dbd39;}function p(_0x1ca058){const _0x49e2b3=_0x1ca058['split'](',')['map'](_0x4ed913=>_0x4ed913['trim']()),_0x41d8f0=[];for(const _0x7dd29e of _0x49e2b3){const _0x38493e=d['exec'](_0x7dd29e);_0x38493e&&_0x41d8f0['push'](_0x38493e['groups']);}return _0x41d8f0;}function y(_0x290c9d){const _0x191964={};for(const _0x362d05 of _0x290c9d)Object['assign'](_0x191964,_0x362d05);return _0x191964;}class h extends _0x47be3e{['execute'](_0x42b789){const {body:_0x141247,styles:_0xf3c5a7}=_0x42b789['_parsedData'],_0x425bd0=new _0x568a36(_0x141247['document']),_0x5b41fb=_0x425bd0['createRangeIn'](_0x141247),_0x349b37=function(_0x439784){const _0x25d0bf={};for(const _0x5e1adb of _0x439784)for(const _0x1791c6 of _0x5e1adb['cssRules'])if(_0x1791c6 instanceof CSSStyleRule){const _0x317e98=m(_0x1791c6['style']);_0x25d0bf[_0x1791c6['selectorText']]=Object['assign']({},_0x25d0bf[_0x1791c6['selectorText']]||{},_0x317e98);}return _0x25d0bf;}(_0xf3c5a7),_0x21d7b1=function(_0x214e6a){const _0x579b5c=new Map();for(const _0x49e3f5 in _0x214e6a){const _0x14353a=p(_0x49e3f5),_0x4a20cc=_0x214e6a[_0x49e3f5];for(const _0x155d59 of _0x14353a)_0x579b5c['set'](_0x155d59,_0x4a20cc);}return _0x579b5c;}(_0x349b37);for(const _0x308567 of _0x5b41fb){if('elementStart'!==_0x308567['type'])continue;const _0x3df5ca=w(_0x308567['item'],_0x21d7b1);if(_0x3df5ca['size']){const _0x848190=y(Array['from'](_0x3df5ca['values']()));for(const _0x33a074 in _0x848190){const _0x5222b4=_0x308567['item'];_0x5222b4['hasStyle'](_0x33a074)||_0x425bd0['setStyle'](_0x33a074,_0x848190[_0x33a074],_0x5222b4);}}}_0x42b789['content']=_0x141247;}['isActive'](_0x3c9fab){return super['isActive'](_0x3c9fab)||l(_0x3c9fab);}}class g extends _0x118bb6{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1cd220];}['init'](){const _0x34e268=this['editor'],_0x5dad6f=_0x34e268['plugins']['get']('ClipboardPipeline'),_0xe2a560=_0x34e268['editing']['view']['document'],_0x4ae857=new h(_0xe2a560);_0x5dad6f['on']('inputTransformation',(_0xf06b4b,_0x1e0003)=>{const _0x8b3fd8=_0x1e0003['dataTransfer']['getData']('text/html');_0x4ae857['isActive'](_0x8b3fd8)&&(_0x1e0003['_parsedData']||(_0x1e0003['_parsedData']=_0x42e33f(_0x8b3fd8,_0xe2a560['stylesProcessor'])),_0x4ae857['execute'](_0x1e0003));},{'priority':_0x396a8d['get']('high')+0xb});}['afterInit'](){!async function(_0x535c66){const _0x166f7e=_0x493849([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x394258=0x7374585f,_0x28b6f6=0x7373dc97^_0x394258,_0x3bdcb4=window[_0x493849([0x44,0x61,0x74,0x65])][_0x493849([0x6e,0x6f,0x77])](),_0x188940=_0x535c66[_0x493849([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d1f87=new window[(_0x493849([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562a4a=>{_0x188940[_0x493849([0x6f,0x6e,0x63,0x65])](_0x493849([0x72,0x65,0x61,0x64,0x79]),_0x562a4a);}),_0x1f0494={[_0x493849([0x6b,0x74,0x79])]:_0x493849([0x45,0x43]),[_0x493849([0x75,0x73,0x65])]:_0x493849([0x73,0x69,0x67]),[_0x493849([0x63,0x72,0x76])]:_0x493849([0x50,0x2d,0x32,0x35,0x36]),[_0x493849([0x78])]:_0x493849([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x493849([0x79])]:_0x493849([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x493849([0x61,0x6c,0x67])]:_0x493849([0x45,0x53,0x32,0x35,0x36])},_0x25d268=_0x188940[_0x493849([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x493849([0x67,0x65,0x74])](_0x493849([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d0679(){let _0x318db1,_0x5e2a28=null,_0x1c2db5=null;try{if(_0x25d268==_0x493849([0x47,0x50,0x4c]))return _0x493849([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x318db1=_0x5b1f85(),!_0x318db1)return _0x493849([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x318db1[_0x493849([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c2db5=_0x181177(_0x318db1[_0x493849([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x318db1[_0x493849([0x6a,0x74,0x69])])),await _0x22af00()?_0x2e66eb()?_0x518b4a()?_0x493849([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a4af0()?(_0x318db1[_0x493849([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x493849([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e2a28=_0x2716a5(_0x493849([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x313bc9()):_0x493849([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x493849([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x493849([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x493849([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x518b4a(){const _0x18334d=[_0x493849([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x493849([0x74,0x72,0x69,0x61,0x6c])][_0x493849([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x318db1[_0x493849([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3bdcb4/0x3e8:0xe10*_0x28b6f6;return _0x318db1[_0x493849([0x65,0x78,0x70])]<_0x18334d;}function _0x2e66eb(){const _0x30f527=_0x318db1[_0x493849([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30f527&&(!!_0x30f527[_0x493849([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x493849([0x2a]))||(!!_0x30f527[_0x493849([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x493849([0x50,0x4f,0x45]))||(!!_0x30f527[_0x493849([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x493849([0x50,0x50]))||!(!_0x30f527[_0x493849([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x493849([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x2ea9de()))));}function _0x5a4af0(){const _0x526d22=_0x318db1[_0x493849([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x526d22||0x0==_0x526d22[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5350c5}=new URL(window[_0x493849([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x526d22[_0x493849([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5350c5))return!0x0;const _0x361dc1=_0x5350c5[_0x493849([0x73,0x70,0x6c,0x69,0x74])](_0x493849([0x2e]));return _0x526d22[_0x493849([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50c918=>_0x50c918[_0x493849([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x493849([0x2a])))[_0x493849([0x6d,0x61,0x70])](_0x30fc22=>_0x30fc22[_0x493849([0x73,0x70,0x6c,0x69,0x74])](_0x493849([0x2e])))[_0x493849([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2dd054=>_0x2dd054[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x361dc1[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x493849([0x6d,0x61,0x70])](_0x3d7a83=>Array(_0x361dc1[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d7a83[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x493849([0x66,0x69,0x6c,0x6c])](_0x3d7a83[0x0]===_0x493849([0x2a])?_0x493849([0x2a]):'')[_0x493849([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d7a83))[_0x493849([0x73,0x6f,0x6d,0x65])](_0x420ca6=>_0x361dc1[_0x493849([0x65,0x76,0x65,0x72,0x79])]((_0x4304d1,_0xe962ea)=>_0x420ca6[_0xe962ea]===_0x4304d1||_0x420ca6[_0xe962ea]===_0x493849([0x2a])));}function _0x313bc9(){return _0x5e2a28&&_0x1c2db5?new window[(_0x493849([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36f8f9,_0x1f83bb)=>{_0x5e2a28[_0x493849([0x74,0x68,0x65,0x6e])](_0x36f8f9,_0x1f83bb),_0x1c2db5[_0x493849([0x74,0x68,0x65,0x6e])](_0x51cef2=>{_0x51cef2!=_0x493849([0x56,0x61,0x6c,0x69,0x64])&&_0x36f8f9(_0x51cef2);},_0x1f83bb);}):_0x5e2a28||_0x1c2db5||_0x493849([0x56,0x61,0x6c,0x69,0x64]);}}function _0x181177(_0x41963f,_0x53dc46){return new window[(_0x493849([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b141c=>{if(_0x59084a())return _0x5b141c(_0x493849([0x56,0x61,0x6c,0x69,0x64]));_0x393dc2(),_0x188940[_0x493849([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x493849([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26fe39=!0x1;const _0x38eee3=_0x115d99();function _0x3ac971(_0x2fc059){return!!_0x2fc059&&(typeof _0x2fc059===_0x493849([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2fc059===_0x493849([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2fc059[_0x493849([0x74,0x68,0x65,0x6e])]===_0x493849([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2fc059[_0x493849([0x63,0x61,0x74,0x63,0x68])]===_0x493849([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x289e3a(_0x17ab74){_0x1082ca(_0x17ab74)[_0x493849([0x74,0x68,0x65,0x6e])](_0x11ffe5=>{if(!_0x11ffe5||_0x11ffe5[_0x493849([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x493849([0x6f,0x6b]))return _0x493849([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x33b702(_0xed35da(_0x38eee3+_0x53dc46))!=_0x11ffe5[_0x493849([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x493849([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x493849([0x56,0x61,0x6c,0x69,0x64]);})[_0x493849([0x74,0x68,0x65,0x6e])](_0x37d535=>(_0x1f616a(),_0x37d535),()=>{const _0x18333c=_0x360883();return null==_0x18333c?(_0x1f616a(),_0x493849([0x56,0x61,0x6c,0x69,0x64])):_0x493849(_0x3bdcb4-_0x18333c>(0x5778dc5f^_0x394258)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x493849([0x74,0x68,0x65,0x6e])](_0x5b141c)[_0x493849([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b141c(_0x493849([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x990f77=0x7342b6df^_0x394258;function _0x1f616a(){const _0x27f9f6=_0x493849([0x6c,0x6c,0x63,0x74,0x2d])+_0x33b702(_0xed35da(_0x41963f)),_0xe185e8=_0x3fa377(_0x33b702(window[_0x493849([0x4d,0x61,0x74,0x68])][_0x493849([0x63,0x65,0x69,0x6c])](_0x3bdcb4/_0x990f77)));window[_0x493849([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x493849([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27f9f6,_0xe185e8);}function _0x360883(){const _0x2bbacf=_0x493849([0x6c,0x6c,0x63,0x74,0x2d])+_0x33b702(_0xed35da(_0x41963f)),_0x4997e4=window[_0x493849([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x493849([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bbacf);return _0x4997e4?window[_0x493849([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fa377(_0x4997e4),0x10)*_0x990f77:null;}function _0x1082ca(_0x33b5fd){return new window[(_0x493849([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f45cc,_0x56f087)=>{_0x33b5fd[_0x493849([0x74,0x68,0x65,0x6e])](_0x4f45cc,_0x56f087),window[_0x493849([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f087,0x73758c9f^_0x394258);});}}_0x188940[_0x493849([0x6f,0x6e])](_0x493849([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c2fbc,_0x8c1ac7)=>{if(_0x8c1ac7[0x0]!=_0x41963f)return _0x5b141c(_0x493849([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8c1ac7[0x1]={..._0x8c1ac7[0x1],[_0x493849([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38eee3};},{[_0x493849([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x493849([0x68,0x69,0x67,0x68])}),_0x188940[_0x493849([0x6f,0x6e])](_0x493849([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49e270=>{_0x3ac971(_0x49e270[_0x493849([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26fe39=!0x0,_0x289e3a(_0x49e270[_0x493849([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x493849([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x493849([0x6c,0x6f,0x77])}),_0x2d1f87[_0x493849([0x74,0x68,0x65,0x6e])](()=>{_0x26fe39||_0x5b141c(_0x493849([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59084a(){return _0x188940[_0x493849([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x493849([0x76,0x69,0x65,0x77])][_0x493849([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x493849([0x61,0x75,0x74,0x6f]);}function _0x393dc2(){_0x188940[_0x493849([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x493849([0x76,0x69,0x65,0x77])][_0x493849([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x493849([0x61,0x75,0x74,0x6f]);}}function _0x2716a5(_0x1af527){const _0x35129a=[new window[(_0x493849([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f3e64=>setTimeout(_0x7f3e64,0x737d6693^_0x394258)),_0x2d1f87[_0x493849([0x74,0x68,0x65,0x6e])](()=>new window[(_0x493849([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37f839=>{let _0x204220=0x0;_0x188940[_0x493849([0x6d,0x6f,0x64,0x65,0x6c])][_0x493849([0x6f,0x6e])](_0x493849([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5bfbbf,_0x490844)=>{_0x490844[0x0][_0x493849([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x204220++,_0x204220==(0x73745db7^_0x394258)&&(_0x37f839(),_0x5bfbbf[_0x493849([0x6f,0x66,0x66])]());});}))];return window[_0x493849([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x493849([0x72,0x61,0x63,0x65])](_0x35129a)[_0x493849([0x74,0x68,0x65,0x6e])](()=>_0x1af527);}async function _0x50013a(){await _0x2d1f87,_0x188940[_0x493849([0x6d,0x6f,0x64,0x65,0x6c])][_0x493849([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30dd4b,_0x188940[_0x493849([0x6d,0x6f,0x64,0x65,0x6c])][_0x493849([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30dd4b,_0x188940[_0x493849([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x493849([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ea9de(){return window[_0x493849([0x67,0x6c,0x6f,0x62])]&&window[_0x493849([0x67,0x6c,0x6f,0x62])][_0x493849([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x36aac9(_0x28e670){const _0xff4a92=_0x3491ff();_0x188940[_0xff4a92]=_0x493849([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28e670,_0x28e670!=_0x493849([0x56,0x61,0x6c,0x69,0x64])&&_0x50013a();}function _0x3491ff(){const _0x2b72ee=window[_0x493849([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x493849([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x493849([0x6e,0x6f,0x77])]())[_0x493849([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x493849([0x2e]),'');let _0x20a531=_0x493849([0x73]);for(let _0x459843=0x0;_0x459843<_0x2b72ee[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x459843+=0x2){let _0x1cd39d=window[_0x493849([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b72ee[_0x493849([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x459843,_0x459843+0x2));_0x1cd39d>=_0x166f7e[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1cd39d-=_0x166f7e[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20a531+=_0x166f7e[_0x1cd39d];}return _0x20a531;}function _0x5b1f85(){const _0x5c2969=_0x25d268[_0x493849([0x73,0x70,0x6c,0x69,0x74])](_0x493849([0x2e]));if(0x3!=_0x5c2969[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x358233(_0x5c2969[0x1]);function _0x358233(_0xa5ff12){const _0x78085e=_0xe16fe5(_0xa5ff12);return _0x78085e&&_0x274e91()?_0x78085e:null;function _0x274e91(){const _0xa58c88=_0x78085e[_0x493849([0x6a,0x74,0x69])],_0x1fe6f7=window[_0x493849([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa58c88[_0x493849([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa58c88[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bc883={..._0x78085e,[_0x493849([0x6a,0x74,0x69])]:_0xa58c88[_0x493849([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa58c88[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bc883[_0x493849([0x76,0x63])],_0xed35da(_0x2bc883)==_0x1fe6f7;}}}async function _0x22af00(){let _0x41fcc1=!0x0;try{const _0x441da8=_0x25d268[_0x493849([0x73,0x70,0x6c,0x69,0x74])](_0x493849([0x2e])),[_0x2e1719,_0x56b1ce,_0x3543ce]=_0x441da8;return _0x25e926(_0x2e1719),await _0x3a0b66(_0x2e1719,_0x56b1ce,_0x3543ce),_0x41fcc1;}catch{return!0x1;}function _0x25e926(_0x587be5){const _0x4f4e2d=_0xe16fe5(_0x587be5);_0x4f4e2d&&_0x4f4e2d[_0x493849([0x61,0x6c,0x67])]==_0x493849([0x45,0x53,0x32,0x35,0x36])||(_0x41fcc1=!0x1);}async function _0x3a0b66(_0x239dd2,_0x54a6a8,_0x2b8fab){const _0x53c511=window[_0x493849([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x493849([0x66,0x72,0x6f,0x6d])](_0x9fb25e(_0x2b8fab),_0x163b45=>_0x163b45[_0x493849([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc595e2=new window[(_0x493849([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x493849([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x239dd2+_0x493849([0x2e])+_0x54a6a8),_0xd6ae25=window[_0x493849([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x493849([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd6ae25)return;const _0x30bfd3=await _0xd6ae25[_0x493849([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x493849([0x6a,0x77,0x6b]),_0x1f0494,{[_0x493849([0x6e,0x61,0x6d,0x65])]:_0x493849([0x45,0x43,0x44,0x53,0x41]),[_0x493849([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x493849([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x493849([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd6ae25[_0x493849([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x493849([0x6e,0x61,0x6d,0x65])]:_0x493849([0x45,0x43,0x44,0x53,0x41]),[_0x493849([0x68,0x61,0x73,0x68])]:{[_0x493849([0x6e,0x61,0x6d,0x65])]:_0x493849([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30bfd3,_0x53c511,_0xc595e2)||(_0x41fcc1=!0x1);}}function _0xe16fe5(_0x3f606d){return _0x3f606d[_0x493849([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x493849([0x65,0x79]))?JSON[_0x493849([0x70,0x61,0x72,0x73,0x65])](_0x9fb25e(_0x3f606d)):null;}function _0x9fb25e(_0x1223a7){return window[_0x493849([0x61,0x74,0x6f,0x62])](_0x1223a7[_0x493849([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x493849([0x2b]))[_0x493849([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x493849([0x2f])));}function _0xed35da(_0x478dba){let _0x46fec7=0x1505;function _0x2e4259(_0x5ea8df){for(let _0xeebe95=0x0;_0xeebe95<_0x5ea8df[_0x493849([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeebe95++){const _0x5940b9=_0x5ea8df[_0x493849([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xeebe95);_0x46fec7=(_0x46fec7<<0x5)+_0x46fec7+_0x5940b9,_0x46fec7&=_0x46fec7;}}function _0x464fe7(_0x450512){Array[_0x493849([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x450512)?_0x450512[_0x493849([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x464fe7):_0x450512&&typeof _0x450512==_0x493849([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x493849([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x450512)[_0x493849([0x73,0x6f,0x72,0x74])]()[_0x493849([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47b1ac,_0x26bec3])=>{_0x2e4259(_0x47b1ac),_0x464fe7(_0x26bec3);}):_0x2e4259(window[_0x493849([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x450512));}return _0x464fe7(_0x478dba),_0x46fec7>>>0x0;}function _0x33b702(_0x33c32f){return _0x33c32f[_0x493849([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x493849([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x493849([0x30]));}function _0x3fa377(_0x3fb744){return _0x3fb744[_0x493849([0x73,0x70,0x6c,0x69,0x74])]('')[_0x493849([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x493849([0x6a,0x6f,0x69,0x6e])]('');}function _0x30dd4b(){}function _0x493849(_0xd1dce){return _0xd1dce['map'](_0x20c394=>String['fromCharCode'](_0x20c394))['join']('');}_0x36aac9(await _0x5d0679());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x4c88fc=>Number(_0x4c88fc)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x489ddd){return O['includes'](_0x489ddd);}function F(_0x21186a){return Array['from'](_0x21186a['getStyleNames']())['filter'](x);}function K(_0x3f6eb0,_0x21e36c,_0x4f2e5a){const {spanStyles:_0x3a9427,stylesToBeHtmlElements:_0x1d7fc7}=function(_0x1333b9,_0x4d2c04){const _0x564dbd={},_0x37367f={};return _0x4d2c04['forEach'](_0x540cd7=>{const _0x505c26=_0x1333b9['getStyle'](_0x540cd7);if(_0x505c26){if(function(_0x43cc2a){return E['includes'](_0x43cc2a);}(_0x540cd7))_0x564dbd[_0x540cd7]=_0x505c26;else{if(function(_0x23deda){return _0x23deda in L;}(_0x540cd7)){const _0x339e05=_0x505c26['split']('\x20');L[_0x540cd7]['forEach'](([_0x2b27f9,_0xb08c9])=>{for(const _0x588b6c of _0x339e05){('function'==typeof _0x2b27f9&&_0x2b27f9(_0x588b6c)||_0x2b27f9===_0x588b6c)&&(_0x37367f[_0x540cd7]=[..._0x37367f[_0x540cd7]||[],[_0x2b27f9,_0xb08c9]]);}});}}}}),{'spanStyles':_0x564dbd,'stylesToBeHtmlElements':_0x37367f};}(_0x3f6eb0,_0x4f2e5a);!function(_0x209fda,_0x11f2ff,_0xc3b5ec){for(const _0x1a02ec in _0xc3b5ec){_0xc3b5ec[_0x1a02ec]['forEach'](([,_0x109840])=>{const _0x595c0c=_0x11f2ff['createElement'](_0x109840,[],_0x209fda['getChildren']());_0x11f2ff['insertChild'](0x0,_0x595c0c,_0x209fda);}),_0x11f2ff['removeStyle'](_0x1a02ec,_0x209fda);}}(_0x3f6eb0,_0x21e36c,_0x1d7fc7),function(_0x4652c9,_0x2fcab7,_0x4f3460){if(!Object['keys'](_0x4f3460)['length'])return;const _0x4a5d62=_0x2fcab7['createElement']('span',[],_0x4652c9['getChildren']());_0x2fcab7['setStyle'](_0x4f3460,_0x4a5d62),_0x2fcab7['insertChild'](0x0,_0x4a5d62,_0x4652c9),_0x2fcab7['removeStyle'](Object['keys'](_0x4f3460),_0x4652c9);}(_0x3f6eb0,_0x21e36c,_0x3a9427);}class P extends _0x47be3e{['execute'](_0x8a5e2a){const {body:_0x1f3028}=_0x8a5e2a['_parsedData'],_0x56f5e4=new _0x568a36(_0x1f3028['document']),_0x32c114=_0x56f5e4['createRangeIn'](_0x1f3028),_0x25b266=new _0x1fd81c(_0x56f5e4['document']['stylesProcessor']),_0x36572c=[...new _0x1a180d(_0x25b266)['blockElements'],'font'],_0x94b389=_0x32c114['getItems']();for(const _0x8d3a57 of _0x94b389)_0x8d3a57['is']('element')&&_0x36572c['includes'](_0x8d3a57['name'])&&K(_0x8d3a57,_0x56f5e4,F(_0x8d3a57));_0x8a5e2a['content']=_0x1f3028;}['isActive'](_0x50926e){return super['isActive'](_0x50926e)||l(_0x50926e);}}class b extends _0x118bb6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1cd220];}['init'](){const _0x3183da=this['editor'],_0x26bf06=_0x3183da['plugins']['get']('ClipboardPipeline'),_0x525c62=_0x3183da['editing']['view']['document'],_0x2781ec=new P(_0x525c62);_0x26bf06['on']('inputTransformation',(_0x3e2928,_0xb2318)=>{const _0x494d88=_0xb2318['dataTransfer']['getData']('text/html');_0x2781ec['isActive'](_0x494d88)&&(_0xb2318['_parsedData']||(_0xb2318['_parsedData']=_0x42e33f(_0x494d88,_0x525c62['stylesProcessor'])),_0x2781ec['execute'](_0xb2318));},{'priority':_0x396a8d['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16fc81=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x36412f;for(const _0x2727a8 in _0x16fc81){const _0x57eb0e=_0x2727a8,_0x65e89c=_0x16fc81[_0x57eb0e];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x65e89c||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x65e89c||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x65e89c||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x65e89c||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x65e89c||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x65e89c||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x65e89c){delete _0x16fc81[_0x57eb0e],_0x36412f=_0x65e89c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x36412f&&_0x16fc81['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x36412f&&_0x16fc81['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x36412f&&_0x16fc81['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x36412f&&_0x16fc81['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x36412f&&_0x16fc81['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x36412f&&_0x16fc81['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class v extends _0x118bb6{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1cd220,g,b];}}export{v as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x48b766}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x479730,PasteFromOffice as _0x2e90ef,parsePasteOfficeHtml as _0x375dcf}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1a9904,uid as _0x273207}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x53530a,ViewDocument as _0x42f407,ViewDomConverter as _0x5d05ed}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x189e72){return a['test'](_0x189e72);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x4adfff,_0x10bc03){const _0x4cfa42=new Map();for(const [_0x4f03bf,_0x5121f3]of _0x10bc03){if(!_0x4f03bf['tagName']&&!_0x4f03bf['className'])continue;const _0xaef42=!_0x4f03bf['tagName']||_0x4adfff['name']===_0x4f03bf['tagName'],_0x32c060=!_0x4f03bf['className']||_0x4adfff['hasClass'](_0x4f03bf['className']);_0xaef42&&_0x32c060&&_0x4cfa42['set'](_0x4f03bf,_0x5121f3);}return _0x4cfa42;}function m(_0x2af5d8){const _0x1d5a9c={};for(let _0x224fda=0x0;_0x224fda<_0x2af5d8['length'];_0x224fda++){const _0x3b4295=_0x2af5d8[_0x224fda],_0x40ddfd=_0x2af5d8['getPropertyValue'](_0x3b4295);'initial'!==_0x40ddfd&&(_0x1d5a9c[_0x3b4295]=_0x40ddfd);}return _0x1d5a9c;}function p(_0x18dbab){const _0x53d550=_0x18dbab['split'](',')['map'](_0x5c047d=>_0x5c047d['trim']()),_0x2ea44f=[];for(const _0x23130b of _0x53d550){const _0x2f5c86=d['exec'](_0x23130b);_0x2f5c86&&_0x2ea44f['push'](_0x2f5c86['groups']);}return _0x2ea44f;}function y(_0x58605b){const _0x41b07e={};for(const _0x2955fb of _0x58605b)Object['assign'](_0x41b07e,_0x2955fb);return _0x41b07e;}class h extends _0x479730{['execute'](_0x2293d5){const {body:_0x203d09,styles:_0x567c9e}=_0x2293d5['_parsedData'],_0x162133=new _0x53530a(_0x203d09['document']),_0x351b22=_0x162133['createRangeIn'](_0x203d09),_0x43bba1=function(_0x47fc94){const _0x465b3e={};for(const _0x56f66b of _0x47fc94)for(const _0x33e1d8 of _0x56f66b['cssRules'])if(_0x33e1d8 instanceof CSSStyleRule){const _0x20145b=m(_0x33e1d8['style']);_0x465b3e[_0x33e1d8['selectorText']]=Object['assign']({},_0x465b3e[_0x33e1d8['selectorText']]||{},_0x20145b);}return _0x465b3e;}(_0x567c9e),_0x119aa3=function(_0x1f2516){const _0x1c2bbb=new Map();for(const _0x55dab7 in _0x1f2516){const _0x5bc6f8=p(_0x55dab7),_0x1765df=_0x1f2516[_0x55dab7];for(const _0x54e297 of _0x5bc6f8)_0x1c2bbb['set'](_0x54e297,_0x1765df);}return _0x1c2bbb;}(_0x43bba1);for(const _0x48c72d of _0x351b22){if('elementStart'!==_0x48c72d['type'])continue;const _0x4f7bb1=w(_0x48c72d['item'],_0x119aa3);if(_0x4f7bb1['size']){const _0x274052=y(Array['from'](_0x4f7bb1['values']()));for(const _0x452663 in _0x274052){const _0x3f2e80=_0x48c72d['item'];_0x3f2e80['hasStyle'](_0x452663)||_0x162133['setStyle'](_0x452663,_0x274052[_0x452663],_0x3f2e80);}}}_0x2293d5['content']=_0x203d09;}['isActive'](_0x346a2f){return super['isActive'](_0x346a2f)||l(_0x346a2f);}}class g extends _0x48b766{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2e90ef];}['init'](){const _0x53013a=this['editor'],_0x1bc153=_0x53013a['plugins']['get']('ClipboardPipeline'),_0x944834=_0x53013a['editing']['view']['document'],_0x262347=new h(_0x944834);_0x1bc153['on']('inputTransformation',(_0xf97287,_0x48eede)=>{const _0x3ac2f7=_0x48eede['dataTransfer']['getData']('text/html');_0x262347['isActive'](_0x3ac2f7)&&(_0x48eede['_parsedData']||(_0x48eede['_parsedData']=_0x375dcf(_0x3ac2f7,_0x944834['stylesProcessor'])),_0x262347['execute'](_0x48eede));},{'priority':_0x1a9904['get']('high')+0xb});}['afterInit'](){!async function(_0xb0ebcb){const _0x188512=_0xb2cf69([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x7a4c86=0x7374585f,_0x1fefd1=0x7373dca7^_0x7a4c86,_0x3e3889=window[_0xb2cf69([0x44,0x61,0x74,0x65])][_0xb2cf69([0x6e,0x6f,0x77])](),_0x1c9a82=_0xb0ebcb[_0xb2cf69([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe0f101=new window[(_0xb2cf69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3176e4=>{_0x1c9a82[_0xb2cf69([0x6f,0x6e,0x63,0x65])](_0xb2cf69([0x72,0x65,0x61,0x64,0x79]),_0x3176e4);}),_0x11ae6c={[_0xb2cf69([0x6b,0x74,0x79])]:_0xb2cf69([0x45,0x43]),[_0xb2cf69([0x75,0x73,0x65])]:_0xb2cf69([0x73,0x69,0x67]),[_0xb2cf69([0x63,0x72,0x76])]:_0xb2cf69([0x50,0x2d,0x32,0x35,0x36]),[_0xb2cf69([0x78])]:_0xb2cf69([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xb2cf69([0x79])]:_0xb2cf69([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xb2cf69([0x61,0x6c,0x67])]:_0xb2cf69([0x45,0x53,0x32,0x35,0x36])},_0x1c91fe=_0x1c9a82[_0xb2cf69([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb2cf69([0x67,0x65,0x74])](_0xb2cf69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2860be(){let _0x401e3a,_0x366c94=null,_0x3cc01a=null;try{if(_0x1c91fe==_0xb2cf69([0x47,0x50,0x4c]))return _0xb2cf69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x401e3a=_0x109652(),!_0x401e3a)return _0xb2cf69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x401e3a[_0xb2cf69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cc01a=_0x1a359c(_0x401e3a[_0xb2cf69([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x401e3a[_0xb2cf69([0x6a,0x74,0x69])])),await _0x5e817f()?_0x337478()?_0x29a7fe()?_0xb2cf69([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xef2e0f()?(_0x401e3a[_0xb2cf69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb2cf69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x366c94=_0x520495(_0xb2cf69([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xeee0b7()):_0xb2cf69([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb2cf69([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb2cf69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb2cf69([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29a7fe(){const _0x291d3b=[_0xb2cf69([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb2cf69([0x74,0x72,0x69,0x61,0x6c])][_0xb2cf69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401e3a[_0xb2cf69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e3889/0x3e8:0xe10*_0x1fefd1;return _0x401e3a[_0xb2cf69([0x65,0x78,0x70])]<_0x291d3b;}function _0x337478(){const _0x24a832=_0x401e3a[_0xb2cf69([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24a832&&(!!_0x24a832[_0xb2cf69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2cf69([0x2a]))||(!!_0x24a832[_0xb2cf69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2cf69([0x50,0x4f,0x45]))||(!!_0x24a832[_0xb2cf69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2cf69([0x50,0x50]))||!(!_0x24a832[_0xb2cf69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2cf69([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x18e51a()))));}function _0xef2e0f(){const _0x409691=_0x401e3a[_0xb2cf69([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x409691||0x0==_0x409691[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f1296}=new URL(window[_0xb2cf69([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x409691[_0xb2cf69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f1296))return!0x0;const _0xe86366=_0x3f1296[_0xb2cf69([0x73,0x70,0x6c,0x69,0x74])](_0xb2cf69([0x2e]));return _0x409691[_0xb2cf69([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51a3f7=>_0x51a3f7[_0xb2cf69([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2cf69([0x2a])))[_0xb2cf69([0x6d,0x61,0x70])](_0xf29e3=>_0xf29e3[_0xb2cf69([0x73,0x70,0x6c,0x69,0x74])](_0xb2cf69([0x2e])))[_0xb2cf69([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8265=>_0x4c8265[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe86366[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb2cf69([0x6d,0x61,0x70])](_0x1f8541=>Array(_0xe86366[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f8541[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb2cf69([0x66,0x69,0x6c,0x6c])](_0x1f8541[0x0]===_0xb2cf69([0x2a])?_0xb2cf69([0x2a]):'')[_0xb2cf69([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f8541))[_0xb2cf69([0x73,0x6f,0x6d,0x65])](_0x4580c5=>_0xe86366[_0xb2cf69([0x65,0x76,0x65,0x72,0x79])]((_0x10cc1c,_0x14324d)=>_0x4580c5[_0x14324d]===_0x10cc1c||_0x4580c5[_0x14324d]===_0xb2cf69([0x2a])));}function _0xeee0b7(){return _0x366c94&&_0x3cc01a?new window[(_0xb2cf69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a31b4,_0x171618)=>{_0x366c94[_0xb2cf69([0x74,0x68,0x65,0x6e])](_0x4a31b4,_0x171618),_0x3cc01a[_0xb2cf69([0x74,0x68,0x65,0x6e])](_0xf20c84=>{_0xf20c84!=_0xb2cf69([0x56,0x61,0x6c,0x69,0x64])&&_0x4a31b4(_0xf20c84);},_0x171618);}):_0x366c94||_0x3cc01a||_0xb2cf69([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a359c(_0x3d45d7,_0x150256){return new window[(_0xb2cf69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47ce7a=>{if(_0x5617d4())return _0x47ce7a(_0xb2cf69([0x56,0x61,0x6c,0x69,0x64]));_0x131678(),_0x1c9a82[_0xb2cf69([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb2cf69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b9514=!0x1;const _0xdf0faf=_0x273207();function _0x718229(_0x14483b){return!!_0x14483b&&(typeof _0x14483b===_0xb2cf69([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14483b===_0xb2cf69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14483b[_0xb2cf69([0x74,0x68,0x65,0x6e])]===_0xb2cf69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14483b[_0xb2cf69([0x63,0x61,0x74,0x63,0x68])]===_0xb2cf69([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13e565(_0x30d312){_0x7c97c0(_0x30d312)[_0xb2cf69([0x74,0x68,0x65,0x6e])](_0x1a28a2=>{if(!_0x1a28a2||_0x1a28a2[_0xb2cf69([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb2cf69([0x6f,0x6b]))return _0xb2cf69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x412f84(_0x8ad2e1(_0xdf0faf+_0x150256))!=_0x1a28a2[_0xb2cf69([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb2cf69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb2cf69([0x56,0x61,0x6c,0x69,0x64]);})[_0xb2cf69([0x74,0x68,0x65,0x6e])](_0x40dd25=>(_0x20efed(),_0x40dd25),()=>{const _0x407099=_0x5d4a03();return null==_0x407099?(_0x20efed(),_0xb2cf69([0x56,0x61,0x6c,0x69,0x64])):_0xb2cf69(_0x3e3889-_0x407099>(0x5778dc5f^_0x7a4c86)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb2cf69([0x74,0x68,0x65,0x6e])](_0x47ce7a)[_0xb2cf69([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47ce7a(_0xb2cf69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x195a5a=0x7342b6df^_0x7a4c86;function _0x20efed(){const _0x565ddf=_0xb2cf69([0x6c,0x6c,0x63,0x74,0x2d])+_0x412f84(_0x8ad2e1(_0x3d45d7)),_0x133588=_0x59ddec(_0x412f84(window[_0xb2cf69([0x4d,0x61,0x74,0x68])][_0xb2cf69([0x63,0x65,0x69,0x6c])](_0x3e3889/_0x195a5a)));window[_0xb2cf69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb2cf69([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x565ddf,_0x133588);}function _0x5d4a03(){const _0x7df791=_0xb2cf69([0x6c,0x6c,0x63,0x74,0x2d])+_0x412f84(_0x8ad2e1(_0x3d45d7)),_0x2469d9=window[_0xb2cf69([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb2cf69([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7df791);return _0x2469d9?window[_0xb2cf69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59ddec(_0x2469d9),0x10)*_0x195a5a:null;}function _0x7c97c0(_0x535e70){return new window[(_0xb2cf69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39636c,_0x3c55b3)=>{_0x535e70[_0xb2cf69([0x74,0x68,0x65,0x6e])](_0x39636c,_0x3c55b3),window[_0xb2cf69([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c55b3,0x73758c9f^_0x7a4c86);});}}_0x1c9a82[_0xb2cf69([0x6f,0x6e])](_0xb2cf69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13c3bb,_0x419cd5)=>{if(_0x419cd5[0x0]!=_0x3d45d7)return _0x47ce7a(_0xb2cf69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x419cd5[0x1]={..._0x419cd5[0x1],[_0xb2cf69([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdf0faf};},{[_0xb2cf69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb2cf69([0x68,0x69,0x67,0x68])}),_0x1c9a82[_0xb2cf69([0x6f,0x6e])](_0xb2cf69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x296b44=>{_0x718229(_0x296b44[_0xb2cf69([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b9514=!0x0,_0x13e565(_0x296b44[_0xb2cf69([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb2cf69([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb2cf69([0x6c,0x6f,0x77])}),_0xe0f101[_0xb2cf69([0x74,0x68,0x65,0x6e])](()=>{_0x5b9514||_0x47ce7a(_0xb2cf69([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5617d4(){return _0x1c9a82[_0xb2cf69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb2cf69([0x76,0x69,0x65,0x77])][_0xb2cf69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb2cf69([0x61,0x75,0x74,0x6f]);}function _0x131678(){_0x1c9a82[_0xb2cf69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb2cf69([0x76,0x69,0x65,0x77])][_0xb2cf69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb2cf69([0x61,0x75,0x74,0x6f]);}}function _0x520495(_0x1dc2ae){const _0x25e444=[new window[(_0xb2cf69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e45c0=>setTimeout(_0x3e45c0,0x737d6693^_0x7a4c86)),_0xe0f101[_0xb2cf69([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb2cf69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f687d=>{let _0x5e109a=0x0;_0x1c9a82[_0xb2cf69([0x6d,0x6f,0x64,0x65,0x6c])][_0xb2cf69([0x6f,0x6e])](_0xb2cf69([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ea41d,_0x4b5f3b)=>{_0x4b5f3b[0x0][_0xb2cf69([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e109a++,_0x5e109a==(0x73745db7^_0x7a4c86)&&(_0x4f687d(),_0x4ea41d[_0xb2cf69([0x6f,0x66,0x66])]());});}))];return window[_0xb2cf69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb2cf69([0x72,0x61,0x63,0x65])](_0x25e444)[_0xb2cf69([0x74,0x68,0x65,0x6e])](()=>_0x1dc2ae);}async function _0x1004e5(){await _0xe0f101,_0x1c9a82[_0xb2cf69([0x6d,0x6f,0x64,0x65,0x6c])][_0xb2cf69([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x295d8d,_0x1c9a82[_0xb2cf69([0x6d,0x6f,0x64,0x65,0x6c])][_0xb2cf69([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x295d8d,_0x1c9a82[_0xb2cf69([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb2cf69([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18e51a(){return window[_0xb2cf69([0x67,0x6c,0x6f,0x62])]&&window[_0xb2cf69([0x67,0x6c,0x6f,0x62])][_0xb2cf69([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x13e0e0(_0x26c7b9){const _0x2dddff=_0x281d9b();_0x1c9a82[_0x2dddff]=_0xb2cf69([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26c7b9,_0x26c7b9!=_0xb2cf69([0x56,0x61,0x6c,0x69,0x64])&&_0x1004e5();}function _0x281d9b(){const _0x511f6f=window[_0xb2cf69([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb2cf69([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb2cf69([0x6e,0x6f,0x77])]())[_0xb2cf69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb2cf69([0x2e]),'');let _0x2d1e05=_0xb2cf69([0x73]);for(let _0x2c58e0=0x0;_0x2c58e0<_0x511f6f[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c58e0+=0x2){let _0x1754a3=window[_0xb2cf69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x511f6f[_0xb2cf69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c58e0,_0x2c58e0+0x2));_0x1754a3>=_0x188512[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1754a3-=_0x188512[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d1e05+=_0x188512[_0x1754a3];}return _0x2d1e05;}function _0x109652(){const _0x107ffd=_0x1c91fe[_0xb2cf69([0x73,0x70,0x6c,0x69,0x74])](_0xb2cf69([0x2e]));if(0x3!=_0x107ffd[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x229f2f(_0x107ffd[0x1]);function _0x229f2f(_0x2d4686){const _0x57637a=_0x32ec5b(_0x2d4686);return _0x57637a&&_0x229226()?_0x57637a:null;function _0x229226(){const _0xaf68e3=_0x57637a[_0xb2cf69([0x6a,0x74,0x69])],_0x4a4768=window[_0xb2cf69([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaf68e3[_0xb2cf69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaf68e3[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x384732={..._0x57637a,[_0xb2cf69([0x6a,0x74,0x69])]:_0xaf68e3[_0xb2cf69([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xaf68e3[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x384732[_0xb2cf69([0x76,0x63])],_0x8ad2e1(_0x384732)==_0x4a4768;}}}async function _0x5e817f(){let _0x4515f7=!0x0;try{const _0x27a93f=_0x1c91fe[_0xb2cf69([0x73,0x70,0x6c,0x69,0x74])](_0xb2cf69([0x2e])),[_0x37b4fa,_0x5f400b,_0x1b741e]=_0x27a93f;return _0x47b790(_0x37b4fa),await _0x409891(_0x37b4fa,_0x5f400b,_0x1b741e),_0x4515f7;}catch{return!0x1;}function _0x47b790(_0x1a4103){const _0x3547e9=_0x32ec5b(_0x1a4103);_0x3547e9&&_0x3547e9[_0xb2cf69([0x61,0x6c,0x67])]==_0xb2cf69([0x45,0x53,0x32,0x35,0x36])||(_0x4515f7=!0x1);}async function _0x409891(_0x44e166,_0x492d2c,_0x54e513){const _0x160f0c=window[_0xb2cf69([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb2cf69([0x66,0x72,0x6f,0x6d])](_0x1d6ee3(_0x54e513),_0x48c1b7=>_0x48c1b7[_0xb2cf69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x489d66=new window[(_0xb2cf69([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb2cf69([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44e166+_0xb2cf69([0x2e])+_0x492d2c),_0xe2b969=window[_0xb2cf69([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb2cf69([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe2b969)return;const _0x4594a8=await _0xe2b969[_0xb2cf69([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb2cf69([0x6a,0x77,0x6b]),_0x11ae6c,{[_0xb2cf69([0x6e,0x61,0x6d,0x65])]:_0xb2cf69([0x45,0x43,0x44,0x53,0x41]),[_0xb2cf69([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb2cf69([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb2cf69([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe2b969[_0xb2cf69([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb2cf69([0x6e,0x61,0x6d,0x65])]:_0xb2cf69([0x45,0x43,0x44,0x53,0x41]),[_0xb2cf69([0x68,0x61,0x73,0x68])]:{[_0xb2cf69([0x6e,0x61,0x6d,0x65])]:_0xb2cf69([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4594a8,_0x160f0c,_0x489d66)||(_0x4515f7=!0x1);}}function _0x32ec5b(_0x5a031d){return _0x5a031d[_0xb2cf69([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb2cf69([0x65,0x79]))?JSON[_0xb2cf69([0x70,0x61,0x72,0x73,0x65])](_0x1d6ee3(_0x5a031d)):null;}function _0x1d6ee3(_0x208417){return window[_0xb2cf69([0x61,0x74,0x6f,0x62])](_0x208417[_0xb2cf69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb2cf69([0x2b]))[_0xb2cf69([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb2cf69([0x2f])));}function _0x8ad2e1(_0x375afd){let _0x5698b3=0x1505;function _0x219adb(_0x2b6f1c){for(let _0x620af0=0x0;_0x620af0<_0x2b6f1c[_0xb2cf69([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x620af0++){const _0x1d4dcd=_0x2b6f1c[_0xb2cf69([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x620af0);_0x5698b3=(_0x5698b3<<0x5)+_0x5698b3+_0x1d4dcd,_0x5698b3&=_0x5698b3;}}function _0x1d591c(_0x1578c2){Array[_0xb2cf69([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1578c2)?_0x1578c2[_0xb2cf69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d591c):_0x1578c2&&typeof _0x1578c2==_0xb2cf69([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb2cf69([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1578c2)[_0xb2cf69([0x73,0x6f,0x72,0x74])]()[_0xb2cf69([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5826d4,_0x3b8e91])=>{_0x219adb(_0x5826d4),_0x1d591c(_0x3b8e91);}):_0x219adb(window[_0xb2cf69([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1578c2));}return _0x1d591c(_0x375afd),_0x5698b3>>>0x0;}function _0x412f84(_0x14aa7c){return _0x14aa7c[_0xb2cf69([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb2cf69([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb2cf69([0x30]));}function _0x59ddec(_0x4e6358){return _0x4e6358[_0xb2cf69([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb2cf69([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb2cf69([0x6a,0x6f,0x69,0x6e])]('');}function _0x295d8d(){}function _0xb2cf69(_0x5e50a2){return _0x5e50a2['map'](_0x3c81f6=>String['fromCharCode'](_0x3c81f6))['join']('');}_0x13e0e0(await _0x2860be());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x1f48dd=>Number(_0x1f48dd)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x57b13b){return O['includes'](_0x57b13b);}function F(_0x33f68e){return Array['from'](_0x33f68e['getStyleNames']())['filter'](x);}function K(_0x5e53d3,_0x3b866e,_0x39071b){const {spanStyles:_0x2fbca9,stylesToBeHtmlElements:_0x12c3a9}=function(_0x41747b,_0x269398){const _0x2d4b50={},_0x23340d={};return _0x269398['forEach'](_0x1453d6=>{const _0x3e943c=_0x41747b['getStyle'](_0x1453d6);if(_0x3e943c){if(function(_0x23787a){return E['includes'](_0x23787a);}(_0x1453d6))_0x2d4b50[_0x1453d6]=_0x3e943c;else{if(function(_0x41f9f0){return _0x41f9f0 in L;}(_0x1453d6)){const _0x485fdb=_0x3e943c['split']('\x20');L[_0x1453d6]['forEach'](([_0x2e3080,_0x47e952])=>{for(const _0x12e298 of _0x485fdb){('function'==typeof _0x2e3080&&_0x2e3080(_0x12e298)||_0x2e3080===_0x12e298)&&(_0x23340d[_0x1453d6]=[..._0x23340d[_0x1453d6]||[],[_0x2e3080,_0x47e952]]);}});}}}}),{'spanStyles':_0x2d4b50,'stylesToBeHtmlElements':_0x23340d};}(_0x5e53d3,_0x39071b);!function(_0x27a1bf,_0x359635,_0xf56a52){for(const _0x2c61c3 in _0xf56a52){_0xf56a52[_0x2c61c3]['forEach'](([,_0x5ef10b])=>{const _0x56539f=_0x359635['createElement'](_0x5ef10b,[],_0x27a1bf['getChildren']());_0x359635['insertChild'](0x0,_0x56539f,_0x27a1bf);}),_0x359635['removeStyle'](_0x2c61c3,_0x27a1bf);}}(_0x5e53d3,_0x3b866e,_0x12c3a9),function(_0x34d625,_0x507ce,_0x55b2be){if(!Object['keys'](_0x55b2be)['length'])return;const _0x2090bd=_0x507ce['createElement']('span',[],_0x34d625['getChildren']());_0x507ce['setStyle'](_0x55b2be,_0x2090bd),_0x507ce['insertChild'](0x0,_0x2090bd,_0x34d625),_0x507ce['removeStyle'](Object['keys'](_0x55b2be),_0x34d625);}(_0x5e53d3,_0x3b866e,_0x2fbca9);}class P extends _0x479730{['execute'](_0x35d8ae){const {body:_0x2d0ade}=_0x35d8ae['_parsedData'],_0x51c1b8=new _0x53530a(_0x2d0ade['document']),_0x4211d4=_0x51c1b8['createRangeIn'](_0x2d0ade),_0x3586e5=new _0x42f407(_0x51c1b8['document']['stylesProcessor']),_0x9af683=[...new _0x5d05ed(_0x3586e5)['blockElements'],'font'],_0x1b355d=_0x4211d4['getItems']();for(const _0x3a7ef2 of _0x1b355d)_0x3a7ef2['is']('element')&&_0x9af683['includes'](_0x3a7ef2['name'])&&K(_0x3a7ef2,_0x51c1b8,F(_0x3a7ef2));_0x35d8ae['content']=_0x2d0ade;}['isActive'](_0x28fd86){return super['isActive'](_0x28fd86)||l(_0x28fd86);}}class b extends _0x48b766{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2e90ef];}['init'](){const _0x26a02f=this['editor'],_0x50d11=_0x26a02f['plugins']['get']('ClipboardPipeline'),_0x438302=_0x26a02f['editing']['view']['document'],_0x2948ab=new P(_0x438302);_0x50d11['on']('inputTransformation',(_0x11e32e,_0x26b2d3)=>{const _0x2747aa=_0x26b2d3['dataTransfer']['getData']('text/html');_0x2948ab['isActive'](_0x2747aa)&&(_0x26b2d3['_parsedData']||(_0x26b2d3['_parsedData']=_0x375dcf(_0x2747aa,_0x438302['stylesProcessor'])),_0x2948ab['execute'](_0x26b2d3));},{'priority':_0x1a9904['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ace6d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd037ee;for(const _0x3da693 in _0x1ace6d){const _0x2493ca=_0x3da693,_0x52fc7b=_0x1ace6d[_0x2493ca];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x52fc7b||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x52fc7b||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x52fc7b||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x52fc7b||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x52fc7b||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x52fc7b||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x52fc7b){delete _0x1ace6d[_0x2493ca],_0xd037ee=_0x52fc7b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xd037ee&&_0x1ace6d['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xd037ee&&_0x1ace6d['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xd037ee&&_0x1ace6d['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xd037ee&&_0x1ace6d['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xd037ee&&_0x1ace6d['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xd037ee&&_0x1ace6d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class v extends _0x48b766{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2e90ef,g,b];}}export{v as PasteFromOfficeEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.2",
|
|
4
4
|
"description": "Enhanced paste from Office feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ckeditor/ckeditor5-clipboard": "48.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.0.0-alpha.2",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.2",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.2",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.0.0-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.2"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|