@ckeditor/ckeditor5-paste-from-office-enhanced 48.3.0-alpha.3 → 48.3.0-alpha.4

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5bf88f}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x5676d9,PasteFromOfficeMSWordNormalizer as _0x29d294}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x24d609,uid as _0x3a6dd0}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x998a63,ViewDomConverter as _0x3b51fe,ViewUpcastWriter as _0x483c51}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x25c571){return f['test'](_0x25c571);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x785b9e,_0x242d2d){const _0x4dafba=new Map();for(const [_0x3013e7,_0x5761db]of _0x242d2d){if(!_0x3013e7['tagName']&&!_0x3013e7['className'])continue;const _0x233b08=!_0x3013e7['tagName']||_0x785b9e['name']===_0x3013e7['tagName'],_0x358dac=!_0x3013e7['className']||_0x785b9e['hasClass'](_0x3013e7['className']);_0x233b08&&_0x358dac&&_0x4dafba['set'](_0x3013e7,_0x5761db);}return _0x4dafba;}function m(_0x17487c){const _0x27c4a8={};for(let _0x345c91=0x0;_0x345c91<_0x17487c['length'];_0x345c91++){const _0x45bea9=_0x17487c[_0x345c91],_0x5643d7=_0x17487c['getPropertyValue'](_0x45bea9);'initial'!==_0x5643d7&&(_0x27c4a8[_0x45bea9]=_0x5643d7);}return _0x27c4a8;}function w(_0x262ec6){const _0x30c833=_0x262ec6['split'](',')['map'](_0x397912=>_0x397912['trim']()),_0x2039ad=[];for(const _0xa8390 of _0x30c833){const _0xa4e596=l['exec'](_0xa8390);_0xa4e596&&_0x2039ad['push'](_0xa4e596['groups']);}return _0x2039ad;}function y(_0xad37c4){const _0x53f5b2={};for(const _0x34d893 of _0xad37c4)Object['assign'](_0x53f5b2,_0x34d893);return _0x53f5b2;}var g=class extends _0x29d294{['execute'](_0x297188){const {styles:_0x44e4a8,stylesString:_0x5ef26f}=_0x297188['extraContent'],_0x12a9fa=new _0x483c51(_0x297188['content']['document']),_0x1ebf78=_0x12a9fa['createRangeIn'](_0x297188['content']),_0xfcd1db=function(_0x392811){const _0x87d544=new Map();for(const _0x452eda in _0x392811){const _0x523983=w(_0x452eda),_0x31341e=_0x392811[_0x452eda];for(const _0x1bab30 of _0x523983)_0x87d544['set'](_0x1bab30,_0x31341e);}return _0x87d544;}(function(_0x15adeb){const _0x14f1fc={};for(const _0x2e7564 of _0x15adeb)for(const _0x19d6f4 of _0x2e7564['cssRules'])if(_0x19d6f4 instanceof CSSStyleRule){const _0x57c023=m(_0x19d6f4['style']);_0x14f1fc[_0x19d6f4['selectorText']]=Object['assign']({},_0x14f1fc[_0x19d6f4['selectorText']]||{},_0x57c023);}return _0x14f1fc;}(_0x44e4a8)),_0x11fad0=function(_0x33d8c2){const _0x142e75={},_0x2116d0=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x425918=/\.(?<className>[\w-]+)/g;let _0x30afec;for(;null!==(_0x30afec=_0x2116d0['exec'](_0x33d8c2));){const {selector:_0xc3032e,color:_0x4bb7eb,patternType:_0x11f183}=_0x30afec['groups'];if('auto'!==_0x4bb7eb['toLowerCase']()&&'none'!==_0x11f183['toLowerCase']()&&'auto'!==_0x11f183['toLowerCase']()){for(const _0x4d9419 of _0xc3032e['matchAll'](_0x425918))_0x142e75[_0x4d9419['groups']['className']]=_0x4bb7eb;}}return _0x142e75;}(_0x5ef26f);for(const _0x540daa of _0x1ebf78){if('elementStart'!==_0x540daa['type'])continue;const _0x5094a4=_0x540daa['item'],_0x1b850e=d(_0x5094a4,_0xfcd1db),_0x46b4ff=_0x1b850e['size']?y(Array['from'](_0x1b850e['values']())):{};if(!('background-color'in _0x46b4ff)&&!('background'in _0x46b4ff)){for(const [_0x4e8279,_0x4f5d25]of Object['entries'](_0x11fad0))if(_0x5094a4['hasClass'](_0x4e8279)){_0x46b4ff['background-color']=_0x4f5d25;break;}}for(const _0x56bad in _0x46b4ff)_0x5094a4['hasStyle'](_0x56bad)||_0x12a9fa['setStyle'](_0x56bad,_0x46b4ff[_0x56bad],_0x5094a4);}}['isActive'](_0x2b607f){return super['isActive'](_0x2b607f)||u(_0x2b607f);}},p=class extends _0x5bf88f{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5676d9];}['init'](){const _0x5bea34=this['editor'],_0x225c9c=_0x5bea34['plugins']['get']('PasteFromOffice'),_0x5e46cb=_0x5bea34['editing']['view']['document'],_0xd21d2d=new g(_0x5e46cb);_0x225c9c['registerNormalizer'](_0xd21d2d,_0x24d609['high']+0xb);}['afterInit'](){!async function(_0x322771){const _0x23f150='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x83a22=0x78e10,_0x4c1d5c=window['Date']['now'](),_0x54d171=_0x322771['editor'],_0x529b01=new window['Promise'](_0x3ebdad=>{_0x54d171['once']('ready',_0x3ebdad);}),_0x45d14a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1f58ea=_0x54d171['config']['get']('licenseKey');async function _0x32d52c(){let _0x306428,_0x3e64bd=null,_0x54cfcb=null;try{return'GPL'==_0x1f58ea?'NotAllowed':(_0x306428=_0x13870d(),_0x306428?(_0x306428['usageEndpoint']&&(_0x54cfcb=_0x433a80(_0x306428['usageEndpoint'],_0x306428['jti'])),await _0x24c14c()?_0x3b0ca7()?_0x4da80a()?'Expired':_0xef3ca3()?('evaluation'==_0x306428['licenseType']&&(_0x3e64bd=_0x38e146('EvaluationLimit')),await _0x5336a8()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4da80a(){const _0x4607a4=['evaluation','trial']['includes'](_0x306428['licenseType'])?_0x4c1d5c/0x3e8:0xe10*_0x83a22;return _0x306428['exp']<_0x4607a4;}function _0x3b0ca7(){const _0x434737=_0x306428['features'];return!!_0x434737&&(!!_0x434737['includes']('*')||(!!_0x434737['includes']('POE')||(!!_0x434737['includes']('PP')||!(!_0x434737['includes']('TRILIUM')||!_0x4da177()))));}function _0xef3ca3(){const _0x41dfaa=_0x306428['licensedHosts'];if(!_0x41dfaa||0x0==_0x41dfaa['length'])return!0x0;const {hostname:_0x36fdcb}=new URL(window['location']['href']);if(_0x41dfaa['includes'](_0x36fdcb))return!0x0;const _0x34025a=_0x36fdcb['split']('.');return _0x41dfaa['filter'](_0x361d3e=>_0x361d3e['includes']('*'))['map'](_0x2a824b=>_0x2a824b['split']('.'))['filter'](_0x10cd33=>_0x10cd33['length']<=_0x34025a['length'])['map'](_0x79ae78=>Array(_0x34025a['length']-_0x79ae78['length'])['fill']('*'===_0x79ae78[0x0]?'*':'')['concat'](_0x79ae78))['some'](_0x54889a=>_0x34025a['every']((_0x37bca0,_0x3d9420)=>_0x54889a[_0x3d9420]===_0x37bca0||'*'===_0x54889a[_0x3d9420]));}function _0x5336a8(){return _0x3e64bd&&_0x54cfcb?new window['Promise']((_0x1edd99,_0x46fc1a)=>{_0x3e64bd['then'](_0x1edd99,_0x46fc1a),_0x54cfcb['then'](_0x2354f2=>{'Valid'!=_0x2354f2&&_0x1edd99(_0x2354f2);},_0x46fc1a);}):_0x3e64bd||_0x54cfcb||'Valid';}}function _0x433a80(_0x2bd886,_0x2dc68f){return new window['Promise'](_0x38836d=>{if(_0x278850())return _0x38836d('Valid');_0x551d5a(),_0x54d171['decorate']('_sendUsageRequest');let _0x337b0f=!0x1;const _0x1b2eaf=_0x3a6dd0();function _0xecc5b8(_0x475fad){return!!_0x475fad&&('object'==typeof _0x475fad||'function'==typeof _0x475fad)&&'function'==typeof _0x475fad['then']&&'function'==typeof _0x475fad['catch'];}function _0x444839(_0x5de0c6){_0x57f5aa(_0x5de0c6)['then'](_0x3e845f=>_0x3e845f&&'ok'==_0x3e845f['status']?_0x2f4119(_0x23a166(_0x1b2eaf+_0x2dc68f))!=_0x3e845f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3deed8=>(_0x5f20fa(),_0x3deed8),()=>{const _0x15ff9c=_0x322217();return null==_0x15ff9c?(_0x5f20fa(),'Valid'):_0x4c1d5c-_0x15ff9c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x38836d)['catch'](()=>{_0x38836d('UsageLimit');});const _0xefb8d7=0x36ee80;function _0x5f20fa(){const _0x4c3b4a='llct-'+_0x2f4119(_0x23a166(_0x2bd886)),_0x15b684=_0x5c17b0(_0x2f4119(window['Math']['ceil'](_0x4c1d5c/_0xefb8d7)));window['localStorage']['setItem'](_0x4c3b4a,_0x15b684);}function _0x322217(){const _0x44fdc3='llct-'+_0x2f4119(_0x23a166(_0x2bd886)),_0x163a51=window['localStorage']['getItem'](_0x44fdc3);return _0x163a51?window['parseInt'](_0x5c17b0(_0x163a51),0x10)*_0xefb8d7:null;}function _0x57f5aa(_0x1c7d67){return new window['Promise']((_0x3e879f,_0x19c48d)=>{_0x1c7d67['then'](_0x3e879f,_0x19c48d),window['setTimeout'](_0x19c48d,0x1d4c0);});}}_0x54d171['on']('_sendUsageRequest',(_0x4f9b9e,_0x3a6b93)=>{if(_0x3a6b93[0x0]!=_0x2bd886)return _0x38836d('UsageLimit');_0x3a6b93[0x1]={..._0x3a6b93[0x1],'requestId':_0x1b2eaf};},{'priority':'high'}),_0x54d171['on']('_sendUsageRequest',_0x4fbdb1=>{_0xecc5b8(_0x4fbdb1['return'])&&(_0x337b0f=!0x0,_0x444839(_0x4fbdb1['return']));},{'priority':'low'}),_0x529b01['then'](()=>{_0x337b0f||_0x38836d('UsageLimit');});});function _0x278850(){return'auto'==_0x54d171['editing']['view']['_overlayModeHint'];}function _0x551d5a(){_0x54d171['editing']['view']['_overlayModeHint']='auto';}}function _0x38e146(_0x183310){const _0x15e11c=[new window['Promise'](_0x47308d=>setTimeout(_0x47308d,0x93ecc)),_0x529b01['then'](()=>new window['Promise'](_0xa1cd08=>{let _0x1ceb8b=0x0;_0x54d171['model']['on']('applyOperation',(_0x2ee0e1,_0x228644)=>{_0x228644[0x0]['isDocumentOperation']&&_0x1ceb8b++,0x5e8==_0x1ceb8b&&(_0xa1cd08(),_0x2ee0e1['off']());});}))];return window['Promise']['race'](_0x15e11c)['then'](()=>_0x183310);}async function _0x491fd1(){await _0x529b01,_0x54d171['model']['change']=_0x314b72,_0x54d171['model']['enqueueChange']=_0x314b72,_0x54d171['enableReadOnlyMode']('model');}function _0x4da177(){return window['glob']&&window['glob']['triliumVersion'];}function _0x20d714(_0x469930){const _0x1ea62a=_0x32656a();_0x54d171[_0x1ea62a]='pasteFromOfficeEnhancedLicenseKey'+_0x469930,'Valid'!=_0x469930&&_0x491fd1();}function _0x32656a(){const _0x4b6190=window['String'](window['performance']['now']())['replace']('.','');let _0xe97b10='s';for(let _0x3fc2c3=0x0;_0x3fc2c3<_0x4b6190['length'];_0x3fc2c3+=0x2){let _0x26a62d=window['parseInt'](_0x4b6190['substring'](_0x3fc2c3,_0x3fc2c3+0x2));_0x26a62d>=0x3e&&(_0x26a62d-=0x3e),_0xe97b10+=_0x23f150[_0x26a62d];}return _0xe97b10;}function _0x13870d(){const _0x22891f=_0x1f58ea['split']('.');if(0x3!=_0x22891f['length'])return null;return _0x4706be(_0x22891f[0x1]);function _0x4706be(_0x58a23a){const _0x10b8d3=_0x10fedd(_0x58a23a);return _0x10b8d3&&_0x2be7d0()?_0x10b8d3:null;function _0x2be7d0(){const _0x3254f6=_0x10b8d3['jti'],_0x5c4a50=window['parseInt'](_0x3254f6['substring'](_0x3254f6['length']-0x8),0x10),_0x4fbb1a={..._0x10b8d3,'jti':_0x3254f6['substring'](0x0,_0x3254f6['length']-0x8)};return delete _0x4fbb1a['vc'],_0x23a166(_0x4fbb1a)==_0x5c4a50;}}}async function _0x24c14c(){let _0x5fb826=!0x0;try{const [_0x35d15e,_0x1a8434,_0x22adc6]=_0x1f58ea['split']('.');return _0x5aaca4(_0x35d15e),await _0x45bcce(_0x35d15e,_0x1a8434,_0x22adc6),_0x5fb826;}catch{return!0x1;}function _0x5aaca4(_0x5b74ca){const _0x1622b0=_0x10fedd(_0x5b74ca);_0x1622b0&&'ES256'==_0x1622b0['alg']||(_0x5fb826=!0x1);}async function _0x45bcce(_0x230bdd,_0x102b55,_0x10dfcd){const _0x15685a=window['Uint8Array']['from'](_0xdd362f(_0x10dfcd),_0x3ecd75=>_0x3ecd75['charCodeAt'](0x0)),_0x1eb6bb=new window['TextEncoder']()['encode'](_0x230bdd+'.'+_0x102b55),_0x1b97e5=window['crypto']['subtle'];if(!_0x1b97e5)return;const _0x1a9928=await _0x1b97e5['importKey']('jwk',_0x45d14a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1b97e5['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1a9928,_0x15685a,_0x1eb6bb)||(_0x5fb826=!0x1);}}function _0x10fedd(_0x3b1943){return _0x3b1943['startsWith']('ey')?JSON['parse'](_0xdd362f(_0x3b1943)):null;}function _0xdd362f(_0x3262d4){return window['atob'](_0x3262d4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x23a166(_0x111089){let _0x3f1e6b=0x1505;function _0xb3c239(_0x4641bf){for(let _0x4556e0=0x0;_0x4556e0<_0x4641bf['length'];_0x4556e0++){const _0x5defdb=_0x4641bf['charCodeAt'](_0x4556e0);_0x3f1e6b=(_0x3f1e6b<<0x5)+_0x3f1e6b+_0x5defdb,_0x3f1e6b&=_0x3f1e6b;}}function _0xd7a4e5(_0x439c8f){Array['isArray'](_0x439c8f)?_0x439c8f['forEach'](_0xd7a4e5):_0x439c8f&&'object'==typeof _0x439c8f?Object['entries'](_0x439c8f)['sort']()['forEach'](([_0x4ee7b6,_0x53283e])=>{_0xb3c239(_0x4ee7b6),_0xd7a4e5(_0x53283e);}):_0xb3c239(window['String'](_0x439c8f));}return _0xd7a4e5(_0x111089),_0x3f1e6b>>>0x0;}function _0x2f4119(_0x14b348){return _0x14b348['toString'](0x10)['padStart'](0x8,'0');}function _0x5c17b0(_0x1f3a05){return _0x1f3a05['split']('')['reverse']()['join']('');}function _0x314b72(){}_0x20d714(await _0x32d52c());}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x29d2ef=>Number(_0x29d2ef)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0xe284ec){return h['includes'](_0xe284ec);}function v(_0x1cd085){return Array['from'](_0x1cd085['getStyleNames']())['filter'](E);}function F(_0x4599d2,_0x433880,_0x196590){const {spanStyles:_0x1a8f24,stylesToBeHtmlElements:_0x3af265}=K(_0x4599d2,_0x196590);!function(_0x4a8b88,_0x4a6751,_0x5801ac){for(const _0x2d9d08 in _0x5801ac)_0x5801ac[_0x2d9d08]['forEach'](([,_0x46cf91])=>{const _0x25830c=_0x4a6751['createElement'](_0x46cf91,[],_0x4a8b88['getChildren']());_0x4a6751['insertChild'](0x0,_0x25830c,_0x4a8b88);}),_0x4a6751['removeStyle'](_0x2d9d08,_0x4a8b88);}(_0x4599d2,_0x433880,_0x3af265),function(_0x5770e3,_0x1e9003,_0x2f6db6){if(!Object['keys'](_0x2f6db6)['length'])return;const _0x860bad=_0x1e9003['createElement']('span',[],_0x5770e3['getChildren']());_0x1e9003['setStyle'](_0x2f6db6,_0x860bad),_0x1e9003['insertChild'](0x0,_0x860bad,_0x5770e3),_0x1e9003['removeStyle'](Object['keys'](_0x2f6db6),_0x5770e3);}(_0x4599d2,_0x433880,_0x1a8f24);}function P(_0x4218b3,_0x523b83,_0x398094){const {spanStyles:_0x546bef}=K(_0x4218b3,_0x398094),_0x2d3da8=Object['keys'](_0x546bef);if(!_0x2d3da8['length'])return;let _0x1db662=!0x1;for(const _0x3fe8f3 of _0x4218b3['getChildren']())if(_0x3fe8f3['is']('element','span')){_0x1db662=!0x0;for(const [_0x596f17,_0x12f06e]of Object['entries'](_0x546bef))_0x3fe8f3['hasStyle'](_0x596f17)||_0x523b83['setStyle']({[_0x596f17]:_0x12f06e},_0x3fe8f3);}_0x1db662&&_0x523b83['removeStyle'](_0x2d3da8,_0x4218b3);}function K(_0x528eaf,_0xcf4de5){const _0x3ac0c1={},_0x216eba={};return _0xcf4de5['forEach'](_0x412175=>{const _0x55b28e=_0x528eaf['getStyle'](_0x412175);if(_0x55b28e){if(function(_0x4f39bd){return O['includes'](_0x4f39bd);}(_0x412175))_0x3ac0c1[_0x412175]=_0x55b28e;else{if(function(_0x5b0f00){return _0x5b0f00 in L;}(_0x412175)){const _0x602e82=_0x55b28e['split']('\x20');L[_0x412175]['forEach'](([_0x3b3fe3,_0x18f03d])=>{for(const _0x5e1aa8 of _0x602e82)('function'==typeof _0x3b3fe3&&_0x3b3fe3(_0x5e1aa8)||_0x3b3fe3===_0x5e1aa8)&&(_0x216eba[_0x412175]=[..._0x216eba[_0x412175]||[],[_0x3b3fe3,_0x18f03d]]);});}}}}),{'spanStyles':_0x3ac0c1,'stylesToBeHtmlElements':_0x216eba};}var b=class extends _0x29d294{['execute'](_0x3e5156){const _0xf664b5=new _0x483c51(_0x3e5156['content']['document']),_0x145b00=_0xf664b5['createRangeIn'](_0x3e5156['content']),_0x4fc7a8=[...new _0x3b51fe(new _0x998a63(_0xf664b5['document']['stylesProcessor']))['blockElements'],'font'],_0x155e5c=_0x145b00['getItems']();for(const _0x3455fb of _0x155e5c)if(_0x3455fb['is']('element')&&_0x4fc7a8['includes'](_0x3455fb['name'])){if(_0x3455fb['hasStyle']('mso-list')&&'none'!==_0x3455fb['getStyle']('mso-list')){P(_0x3455fb,_0xf664b5,v(_0x3455fb));continue;}F(_0x3455fb,_0xf664b5,v(_0x3455fb));}}['isActive'](_0x2f2b15){return super['isActive'](_0x2f2b15)||u(_0x2f2b15);}},x=class extends _0x5bf88f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5676d9];}['init'](){const _0x354dd1=this['editor'],_0x51b895=_0x354dd1['plugins']['get']('PasteFromOffice'),_0x2ef6af=_0x354dd1['editing']['view']['document'],_0x4c490a=new b(_0x2ef6af);_0x51b895['registerNormalizer'](_0x4c490a,_0x24d609['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e0686=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x299cba;for(const _0x5386f4 in _0x1e0686){const _0x2f1940=_0x5386f4,_0x2d6c77=_0x1e0686[_0x2f1940];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x2d6c77||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2d6c77||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2d6c77||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2d6c77||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2d6c77||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2d6c77||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2d6c77){delete _0x1e0686[_0x2f1940],_0x299cba=_0x2d6c77,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x299cba&&_0x1e0686['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x299cba&&_0x1e0686['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x299cba&&_0x1e0686['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x299cba&&_0x1e0686['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x299cba&&_0x1e0686['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x299cba&&_0x1e0686['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x5bf88f{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5676d9,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x5136a6}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x2373ef,PasteFromOfficeMSWordNormalizer as _0x555ede}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x3c2c93,uid as _0x2ba9d8}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x187321,ViewDomConverter as _0x448e7e,ViewUpcastWriter as _0x8a9db0}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x44451d){return f['test'](_0x44451d);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1f2686,_0x399e90){const _0x3159b6=new Map();for(const [_0x4eaab4,_0xadc52a]of _0x399e90){if(!_0x4eaab4['tagName']&&!_0x4eaab4['className'])continue;const _0x79ef1d=!_0x4eaab4['tagName']||_0x1f2686['name']===_0x4eaab4['tagName'],_0x1976f4=!_0x4eaab4['className']||_0x1f2686['hasClass'](_0x4eaab4['className']);_0x79ef1d&&_0x1976f4&&_0x3159b6['set'](_0x4eaab4,_0xadc52a);}return _0x3159b6;}function m(_0x19950c){const _0x340eb0={};for(let _0x260352=0x0;_0x260352<_0x19950c['length'];_0x260352++){const _0x49201f=_0x19950c[_0x260352],_0x48e4a0=_0x19950c['getPropertyValue'](_0x49201f);'initial'!==_0x48e4a0&&(_0x340eb0[_0x49201f]=_0x48e4a0);}return _0x340eb0;}function w(_0x53d4c2){const _0x4e87a3=_0x53d4c2['split'](',')['map'](_0x4cefc6=>_0x4cefc6['trim']()),_0x43de32=[];for(const _0x51b815 of _0x4e87a3){const _0x15e940=l['exec'](_0x51b815);_0x15e940&&_0x43de32['push'](_0x15e940['groups']);}return _0x43de32;}function y(_0x3e37ce){const _0x42f79e={};for(const _0x1d53b1 of _0x3e37ce)Object['assign'](_0x42f79e,_0x1d53b1);return _0x42f79e;}var g=class extends _0x555ede{['execute'](_0x1c1e80){const {styles:_0x406f66,stylesString:_0x2da9b6}=_0x1c1e80['extraContent'],_0x380773=new _0x8a9db0(_0x1c1e80['content']['document']),_0xe0e605=_0x380773['createRangeIn'](_0x1c1e80['content']),_0xc0cc99=function(_0x3390f5){const _0x10117e=new Map();for(const _0xb21ad5 in _0x3390f5){const _0x1febe9=w(_0xb21ad5),_0x45c647=_0x3390f5[_0xb21ad5];for(const _0x5760df of _0x1febe9)_0x10117e['set'](_0x5760df,_0x45c647);}return _0x10117e;}(function(_0x15cbba){const _0xeaf6bd={};for(const _0x4b2902 of _0x15cbba)for(const _0x2126a3 of _0x4b2902['cssRules'])if(_0x2126a3 instanceof CSSStyleRule){const _0x423864=m(_0x2126a3['style']);_0xeaf6bd[_0x2126a3['selectorText']]=Object['assign']({},_0xeaf6bd[_0x2126a3['selectorText']]||{},_0x423864);}return _0xeaf6bd;}(_0x406f66)),_0x159fef=function(_0x145a58){const _0x20f67c={},_0x16e488=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x4fbf36=/\.(?<className>[\w-]+)/g;let _0x336d0b;for(;null!==(_0x336d0b=_0x16e488['exec'](_0x145a58));){const {selector:_0x4f9df0,color:_0x1a0fd5,patternType:_0x864783}=_0x336d0b['groups'];if('auto'!==_0x1a0fd5['toLowerCase']()&&'none'!==_0x864783['toLowerCase']()&&'auto'!==_0x864783['toLowerCase']()){for(const _0x206d2d of _0x4f9df0['matchAll'](_0x4fbf36))_0x20f67c[_0x206d2d['groups']['className']]=_0x1a0fd5;}}return _0x20f67c;}(_0x2da9b6);for(const _0x113b19 of _0xe0e605){if('elementStart'!==_0x113b19['type'])continue;const _0x4cec51=_0x113b19['item'],_0x239cb5=d(_0x4cec51,_0xc0cc99),_0x31c0c5=_0x239cb5['size']?y(Array['from'](_0x239cb5['values']())):{};if(!('background-color'in _0x31c0c5)&&!('background'in _0x31c0c5)){for(const [_0x12fb8a,_0x25cd14]of Object['entries'](_0x159fef))if(_0x4cec51['hasClass'](_0x12fb8a)){_0x31c0c5['background-color']=_0x25cd14;break;}}for(const _0x3387ec in _0x31c0c5)_0x4cec51['hasStyle'](_0x3387ec)||_0x380773['setStyle'](_0x3387ec,_0x31c0c5[_0x3387ec],_0x4cec51);}}['isActive'](_0x2ffcf1){return super['isActive'](_0x2ffcf1)||u(_0x2ffcf1);}},p=class extends _0x5136a6{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2373ef];}['init'](){const _0x14b198=this['editor'],_0x5d9161=_0x14b198['plugins']['get']('PasteFromOffice'),_0x51f824=_0x14b198['editing']['view']['document'],_0x1f5575=new g(_0x51f824);_0x5d9161['registerNormalizer'](_0x1f5575,_0x3c2c93['high']+0xb);}['afterInit'](){!async function(_0x34d958){const _0x354685='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x220b2b=0x78e28,_0x23f753=window['Date']['now'](),_0x21db38=_0x34d958['editor'],_0xd335fa=new window['Promise'](_0x281e96=>{_0x21db38['once']('ready',_0x281e96);}),_0x5b4536={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3a9dcd=_0x21db38['config']['get']('licenseKey');async function _0x5869cf(){let _0x269d3d,_0x348257=null,_0x45f02f=null;try{return'GPL'==_0x3a9dcd?'NotAllowed':(_0x269d3d=_0x3ac0e1(),_0x269d3d?(_0x269d3d['usageEndpoint']&&(_0x45f02f=_0x48dce5(_0x269d3d['usageEndpoint'],_0x269d3d['jti'])),await _0x3d505a()?_0x1dc82e()?_0x3126b4()?'Expired':_0x44c6e8()?('evaluation'==_0x269d3d['licenseType']&&(_0x348257=_0x1ba116('EvaluationLimit')),await _0x2b65a4()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3126b4(){const _0x2193b4=['evaluation','trial']['includes'](_0x269d3d['licenseType'])?_0x23f753/0x3e8:0xe10*_0x220b2b;return _0x269d3d['exp']<_0x2193b4;}function _0x1dc82e(){const _0x5c13bc=_0x269d3d['features'];return!!_0x5c13bc&&(!!_0x5c13bc['includes']('*')||(!!_0x5c13bc['includes']('POE')||(!!_0x5c13bc['includes']('PP')||!(!_0x5c13bc['includes']('TRILIUM')||!_0x2abcd1()))));}function _0x44c6e8(){const _0x3b3fc1=_0x269d3d['licensedHosts'];if(!_0x3b3fc1||0x0==_0x3b3fc1['length'])return!0x0;const {hostname:_0x217649}=new URL(window['location']['href']);if(_0x3b3fc1['includes'](_0x217649))return!0x0;const _0x55ec44=_0x217649['split']('.');return _0x3b3fc1['filter'](_0x45de2f=>_0x45de2f['includes']('*'))['map'](_0x44859a=>_0x44859a['split']('.'))['filter'](_0x14b3ba=>_0x14b3ba['length']<=_0x55ec44['length'])['map'](_0x409839=>Array(_0x55ec44['length']-_0x409839['length'])['fill']('*'===_0x409839[0x0]?'*':'')['concat'](_0x409839))['some'](_0x352807=>_0x55ec44['every']((_0x53045f,_0x421d4b)=>_0x352807[_0x421d4b]===_0x53045f||'*'===_0x352807[_0x421d4b]));}function _0x2b65a4(){return _0x348257&&_0x45f02f?new window['Promise']((_0xcaf243,_0x265046)=>{_0x348257['then'](_0xcaf243,_0x265046),_0x45f02f['then'](_0x4f8822=>{'Valid'!=_0x4f8822&&_0xcaf243(_0x4f8822);},_0x265046);}):_0x348257||_0x45f02f||'Valid';}}function _0x48dce5(_0x2269be,_0x368ee9){return new window['Promise'](_0x46c317=>{if(_0x3deb8c())return _0x46c317('Valid');_0x19fc03(),_0x21db38['decorate']('_sendUsageRequest');let _0x5b6aa6=!0x1;const _0x40a758=_0x2ba9d8();function _0xfde29d(_0x220002){return!!_0x220002&&('object'==typeof _0x220002||'function'==typeof _0x220002)&&'function'==typeof _0x220002['then']&&'function'==typeof _0x220002['catch'];}function _0x1f7be5(_0x4dca70){_0x2cd827(_0x4dca70)['then'](_0x43ff4c=>_0x43ff4c&&'ok'==_0x43ff4c['status']?_0x302aa2(_0x31169e(_0x40a758+_0x368ee9))!=_0x43ff4c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x17ca02=>(_0x37c629(),_0x17ca02),()=>{const _0x540bad=_0x3e4ed1();return null==_0x540bad?(_0x37c629(),'Valid'):_0x23f753-_0x540bad>0x240c8400?'UsageLimit':'Valid';})['then'](_0x46c317)['catch'](()=>{_0x46c317('UsageLimit');});const _0x539efc=0x36ee80;function _0x37c629(){const _0x5598e1='llct-'+_0x302aa2(_0x31169e(_0x2269be)),_0x405125=_0x1fa955(_0x302aa2(window['Math']['ceil'](_0x23f753/_0x539efc)));window['localStorage']['setItem'](_0x5598e1,_0x405125);}function _0x3e4ed1(){const _0x3c1735='llct-'+_0x302aa2(_0x31169e(_0x2269be)),_0x2a7446=window['localStorage']['getItem'](_0x3c1735);return _0x2a7446?window['parseInt'](_0x1fa955(_0x2a7446),0x10)*_0x539efc:null;}function _0x2cd827(_0x1c4400){return new window['Promise']((_0x5946bf,_0x386760)=>{_0x1c4400['then'](_0x5946bf,_0x386760),window['setTimeout'](_0x386760,0x1d4c0);});}}_0x21db38['on']('_sendUsageRequest',(_0x5dbf93,_0x2147f4)=>{if(_0x2147f4[0x0]!=_0x2269be)return _0x46c317('UsageLimit');_0x2147f4[0x1]={..._0x2147f4[0x1],'requestId':_0x40a758};},{'priority':'high'}),_0x21db38['on']('_sendUsageRequest',_0x39ea40=>{_0xfde29d(_0x39ea40['return'])&&(_0x5b6aa6=!0x0,_0x1f7be5(_0x39ea40['return']));},{'priority':'low'}),_0xd335fa['then'](()=>{_0x5b6aa6||_0x46c317('UsageLimit');});});function _0x3deb8c(){return'auto'==_0x21db38['editing']['view']['_overlayModeHint'];}function _0x19fc03(){_0x21db38['editing']['view']['_overlayModeHint']='auto';}}function _0x1ba116(_0x5e5c29){const _0x4e0db4=[new window['Promise'](_0x352be9=>setTimeout(_0x352be9,0x93ecc)),_0xd335fa['then'](()=>new window['Promise'](_0xa78d40=>{let _0x129892=0x0;_0x21db38['model']['on']('applyOperation',(_0x494537,_0x3adb43)=>{_0x3adb43[0x0]['isDocumentOperation']&&_0x129892++,0x5e8==_0x129892&&(_0xa78d40(),_0x494537['off']());});}))];return window['Promise']['race'](_0x4e0db4)['then'](()=>_0x5e5c29);}async function _0x2a673d(){await _0xd335fa,_0x21db38['model']['change']=_0x40e591,_0x21db38['model']['enqueueChange']=_0x40e591,_0x21db38['enableReadOnlyMode']('model');}function _0x2abcd1(){return window['glob']&&window['glob']['triliumVersion'];}function _0xd1a232(_0x47018c){const _0x19ca3d=_0x1e406d();_0x21db38[_0x19ca3d]='pasteFromOfficeEnhancedLicenseKey'+_0x47018c,'Valid'!=_0x47018c&&_0x2a673d();}function _0x1e406d(){const _0xb1d20b=window['String'](window['performance']['now']())['replace']('.','');let _0x436bfb='s';for(let _0x218f7a=0x0;_0x218f7a<_0xb1d20b['length'];_0x218f7a+=0x2){let _0x320e89=window['parseInt'](_0xb1d20b['substring'](_0x218f7a,_0x218f7a+0x2));_0x320e89>=0x3e&&(_0x320e89-=0x3e),_0x436bfb+=_0x354685[_0x320e89];}return _0x436bfb;}function _0x3ac0e1(){const _0x59ecb6=_0x3a9dcd['split']('.');if(0x3!=_0x59ecb6['length'])return null;return _0x54b954(_0x59ecb6[0x1]);function _0x54b954(_0x28bdc8){const _0x434dc1=_0xd159aa(_0x28bdc8);return _0x434dc1&&_0x31fa54()?_0x434dc1:null;function _0x31fa54(){const _0x32bfce=_0x434dc1['jti'],_0x1d636d=window['parseInt'](_0x32bfce['substring'](_0x32bfce['length']-0x8),0x10),_0x17d50d={..._0x434dc1,'jti':_0x32bfce['substring'](0x0,_0x32bfce['length']-0x8)};return delete _0x17d50d['vc'],_0x31169e(_0x17d50d)==_0x1d636d;}}}async function _0x3d505a(){let _0x300aa5=!0x0;try{const [_0x5ba90d,_0x5a132a,_0x2d4d04]=_0x3a9dcd['split']('.');return _0x43c556(_0x5ba90d),await _0x3a328f(_0x5ba90d,_0x5a132a,_0x2d4d04),_0x300aa5;}catch{return!0x1;}function _0x43c556(_0x11b2b0){const _0x3db90d=_0xd159aa(_0x11b2b0);_0x3db90d&&'ES256'==_0x3db90d['alg']||(_0x300aa5=!0x1);}async function _0x3a328f(_0x101727,_0x4ee2a9,_0x2460d0){const _0x53e6fb=window['Uint8Array']['from'](_0x78cca0(_0x2460d0),_0x15ebc6=>_0x15ebc6['charCodeAt'](0x0)),_0x5cb0fa=new window['TextEncoder']()['encode'](_0x101727+'.'+_0x4ee2a9),_0x5054c=window['crypto']['subtle'];if(!_0x5054c)return;const _0x1df1b9=await _0x5054c['importKey']('jwk',_0x5b4536,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5054c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1df1b9,_0x53e6fb,_0x5cb0fa)||(_0x300aa5=!0x1);}}function _0xd159aa(_0x17f66b){return _0x17f66b['startsWith']('ey')?JSON['parse'](_0x78cca0(_0x17f66b)):null;}function _0x78cca0(_0x1ac2b8){return window['atob'](_0x1ac2b8['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x31169e(_0x705c16){let _0x3eba7f=0x1505;function _0x94de32(_0x34c8a6){for(let _0x45e922=0x0;_0x45e922<_0x34c8a6['length'];_0x45e922++){const _0x2478e1=_0x34c8a6['charCodeAt'](_0x45e922);_0x3eba7f=(_0x3eba7f<<0x5)+_0x3eba7f+_0x2478e1,_0x3eba7f&=_0x3eba7f;}}function _0xe97642(_0x2d0b38){Array['isArray'](_0x2d0b38)?_0x2d0b38['forEach'](_0xe97642):_0x2d0b38&&'object'==typeof _0x2d0b38?Object['entries'](_0x2d0b38)['sort']()['forEach'](([_0x2d277d,_0x36bd6d])=>{_0x94de32(_0x2d277d),_0xe97642(_0x36bd6d);}):_0x94de32(window['String'](_0x2d0b38));}return _0xe97642(_0x705c16),_0x3eba7f>>>0x0;}function _0x302aa2(_0x220a06){return _0x220a06['toString'](0x10)['padStart'](0x8,'0');}function _0x1fa955(_0x95c4bd){return _0x95c4bd['split']('')['reverse']()['join']('');}function _0x40e591(){}_0xd1a232(await _0x5869cf());}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x3ca050=>Number(_0x3ca050)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x344122){return h['includes'](_0x344122);}function v(_0xb601f){return Array['from'](_0xb601f['getStyleNames']())['filter'](E);}function F(_0x3614ae,_0x4f7016,_0x3ba449){const {spanStyles:_0x36bcce,stylesToBeHtmlElements:_0x313f1e}=K(_0x3614ae,_0x3ba449);!function(_0x4d025e,_0x40167d,_0x48fb69){for(const _0x48309f in _0x48fb69)_0x48fb69[_0x48309f]['forEach'](([,_0x3285a8])=>{const _0x798d28=_0x40167d['createElement'](_0x3285a8,[],_0x4d025e['getChildren']());_0x40167d['insertChild'](0x0,_0x798d28,_0x4d025e);}),_0x40167d['removeStyle'](_0x48309f,_0x4d025e);}(_0x3614ae,_0x4f7016,_0x313f1e),function(_0x14f7e2,_0xc33a5b,_0x68af09){if(!Object['keys'](_0x68af09)['length'])return;const _0xd2d63=_0xc33a5b['createElement']('span',[],_0x14f7e2['getChildren']());_0xc33a5b['setStyle'](_0x68af09,_0xd2d63),_0xc33a5b['insertChild'](0x0,_0xd2d63,_0x14f7e2),_0xc33a5b['removeStyle'](Object['keys'](_0x68af09),_0x14f7e2);}(_0x3614ae,_0x4f7016,_0x36bcce);}function P(_0x587802,_0x1d8d9b,_0x135d4f){const {spanStyles:_0x3cec63}=K(_0x587802,_0x135d4f),_0xe07667=Object['keys'](_0x3cec63);if(!_0xe07667['length'])return;let _0x540965=!0x1;for(const _0xd00ce8 of _0x587802['getChildren']())if(_0xd00ce8['is']('element','span')){_0x540965=!0x0;for(const [_0x13db32,_0x2a60f6]of Object['entries'](_0x3cec63))_0xd00ce8['hasStyle'](_0x13db32)||_0x1d8d9b['setStyle']({[_0x13db32]:_0x2a60f6},_0xd00ce8);}_0x540965&&_0x1d8d9b['removeStyle'](_0xe07667,_0x587802);}function K(_0x45946e,_0xabafc){const _0x5c6635={},_0x4a95ea={};return _0xabafc['forEach'](_0x5d29ae=>{const _0x249df1=_0x45946e['getStyle'](_0x5d29ae);if(_0x249df1){if(function(_0x5918ea){return O['includes'](_0x5918ea);}(_0x5d29ae))_0x5c6635[_0x5d29ae]=_0x249df1;else{if(function(_0x50b47a){return _0x50b47a in L;}(_0x5d29ae)){const _0x3f398c=_0x249df1['split']('\x20');L[_0x5d29ae]['forEach'](([_0xff5e42,_0x3d403c])=>{for(const _0x275be6 of _0x3f398c)('function'==typeof _0xff5e42&&_0xff5e42(_0x275be6)||_0xff5e42===_0x275be6)&&(_0x4a95ea[_0x5d29ae]=[..._0x4a95ea[_0x5d29ae]||[],[_0xff5e42,_0x3d403c]]);});}}}}),{'spanStyles':_0x5c6635,'stylesToBeHtmlElements':_0x4a95ea};}var b=class extends _0x555ede{['execute'](_0x216a5f){const _0x2db072=new _0x8a9db0(_0x216a5f['content']['document']),_0x275047=_0x2db072['createRangeIn'](_0x216a5f['content']),_0x4c869e=[...new _0x448e7e(new _0x187321(_0x2db072['document']['stylesProcessor']))['blockElements'],'font'],_0xb2eb21=_0x275047['getItems']();for(const _0xdbded4 of _0xb2eb21)if(_0xdbded4['is']('element')&&_0x4c869e['includes'](_0xdbded4['name'])){if(_0xdbded4['hasStyle']('mso-list')&&'none'!==_0xdbded4['getStyle']('mso-list')){P(_0xdbded4,_0x2db072,v(_0xdbded4));continue;}F(_0xdbded4,_0x2db072,v(_0xdbded4));}}['isActive'](_0x1022b2){return super['isActive'](_0x1022b2)||u(_0x1022b2);}},x=class extends _0x5136a6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2373ef];}['init'](){const _0x1c9f5f=this['editor'],_0x46fead=_0x1c9f5f['plugins']['get']('PasteFromOffice'),_0x51781d=_0x1c9f5f['editing']['view']['document'],_0x27064d=new b(_0x51781d);_0x46fead['registerNormalizer'](_0x27064d,_0x3c2c93['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f03bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27098e;for(const _0x172e46 in _0x3f03bb){const _0x3f1a41=_0x172e46,_0x542031=_0x3f03bb[_0x3f1a41];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x542031||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x542031||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x542031||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x542031||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x542031||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x542031||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x542031){delete _0x3f03bb[_0x3f1a41],_0x27098e=_0x542031,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x27098e&&_0x3f03bb['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x27098e&&_0x3f03bb['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x27098e&&_0x3f03bb['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x27098e&&_0x3f03bb['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x27098e&&_0x3f03bb['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x27098e&&_0x3f03bb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x5136a6{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2373ef,p,x];}};export{k as PasteFromOfficeEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "48.3.0-alpha.3",
3
+ "version": "48.3.0-alpha.4",
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.3.0-alpha.3",
35
- "@ckeditor/ckeditor5-core": "48.3.0-alpha.3",
36
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.3",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.3",
38
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.3"
34
+ "@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.4",
35
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.4",
36
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.4",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.4",
38
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.4"
39
39
  },
40
40
  "files": [
41
41
  "dist",