@ckeditor/ckeditor5-export-inline-styles 48.4.0-alpha.2 → 48.4.0-alpha.3

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 +4 -4
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x245b93,Plugin as _0x162ef7}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x3db165,createElement as _0x1b8660,uid as _0x38d3e7}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x30c216,addMarginStylesRules as _0x4fc1af,addPaddingStylesRules as _0x2d70e2}from'@ckeditor/ckeditor5-engine';import{calculate as _0x520ad4,compare as _0x508dc5}from'specificity';function f(_0x273a44){const _0x1b67d7=[];let _0x2f36ab='',_0x744691=0x0;for(;_0x744691<_0x273a44['length'];){const _0x1a0780=_0x273a44[_0x744691];if('('===_0x1a0780){const _0x6bd2d3=y(_0x273a44,_0x744691+0x1);if(-0x1===_0x6bd2d3)return[];_0x2f36ab+=_0x273a44['slice'](_0x744691,_0x6bd2d3+0x1),_0x744691=_0x6bd2d3+0x1;}else','!==_0x1a0780||_0x2f36ab['endsWith']('\x5c')?(_0x2f36ab+=_0x1a0780,_0x744691++):(_0x1b67d7['push'](_0x2f36ab['trim']()),_0x2f36ab='',_0x744691++);}return _0x2f36ab['trim']()&&_0x1b67d7['push'](_0x2f36ab['trim']()),_0x1b67d7['filter'](Boolean);}function y(_0x461f95,_0x286e5a){let _0x3c79e0=0x1;for(let _0x376317=_0x286e5a;_0x376317<_0x461f95['length'];_0x376317++){const _0x51a30d=_0x461f95[_0x376317];if('('===_0x51a30d)_0x3c79e0++;else{if(')'===_0x51a30d&&(_0x3c79e0--,0x0===_0x3c79e0))return _0x376317;}}return-0x1;}function d(_0x17d94c){return _0x17d94c['replace'](/!\s*important/i,'')['trim']();}function w(_0x3e7906){const _0x15d0b4=new Map();for(const {stylesMap:_0xb1ff77,flatSelector:_0x57429a}of _0x3e7906){if(':root'!==_0x57429a)continue;const _0x3f3e8b=p(_0x15d0b4['get']['bind'](_0x15d0b4),_0xb1ff77);for(const [_0x254da7,_0xdea6d7]of _0x3f3e8b)_0x15d0b4['set'](_0x254da7,_0xdea6d7);}return _0x15d0b4;}function p(_0x34d10c,_0x15b1b4){const _0x268bd0=new Map(),_0x2e4a4f=_0x37a540=>_0x268bd0['has'](_0x37a540)?_0x268bd0['get'](_0x37a540):_0x34d10c(_0x37a540);for(const [_0x5499b8,_0x475267]of _0x15b1b4['getStylesEntries']())if(_0x475267&&_0x5499b8['startsWith']('--')){const _0x332c79=m(_0x2e4a4f,_0x475267);_0x268bd0['set'](_0x5499b8,_0x332c79),_0x15b1b4['remove'](_0x5499b8);}for(const [_0x395d97,_0x10f4da]of _0x15b1b4['getStylesEntries']())if(_0x10f4da){const _0x4c0418=m(_0x2e4a4f,_0x10f4da);_0x15b1b4['set'](_0x395d97,_0x4c0418);}return _0x268bd0;}function m(_0x4c42cc,_0x564e09){return function(_0x4154c1,_0x4eb888){let _0x273747='',_0x256487=0x0;for(;_0x256487<_0x4154c1['length'];){const _0x215067=_0x4154c1['indexOf']('var(',_0x256487);if(-0x1===_0x215067){_0x273747+=_0x4154c1['slice'](_0x256487);break;}_0x273747+=_0x4154c1['slice'](_0x256487,_0x215067);const _0x1b1845=_0x215067+0x4,_0x37a3a8=y(_0x4154c1,_0x1b1845);_0x273747+=_0x4eb888(_0x4154c1['substring'](_0x1b1845,_0x37a3a8)),_0x256487=_0x37a3a8+0x1;}return _0x273747;}(_0x564e09,_0x8bdc1e=>{const [_0x5b5cbc,_0x25f10a]=f(_0x8bdc1e),_0x59029a=_0x4c42cc(_0x5b5cbc);return void 0x0!==_0x59029a?_0x59029a:_0x25f10a?m(_0x4c42cc,_0x25f10a):'var('+_0x5b5cbc+')';});}async function h(_0x19c7f9){const _0x1e4230=[await _0x3db165(_0x19c7f9['stylesheets']),_0x19c7f9['inlineCss']]['filter'](_0xa26994=>_0xa26994&&_0xa26994['length'])['join']('\x0a'),_0x271c5e=await async function(_0x10af69,_0x480110){const _0x3fc1fc=new CSSStyleSheet();return await _0x3fc1fc['replace'](_0x480110),S(Array['from'](_0x3fc1fc['cssRules'])['filter'](_0x21e31c=>_0x21e31c instanceof CSSStyleRule))['flatMap'](({selectorText:_0x457fe9,contentCssText:_0xf8fbce})=>{const _0x8e6bc1=f(_0x457fe9),_0x376619=new _0x30c216(_0x10af69)['setTo'](_0xf8fbce);return _0x8e6bc1['map'](_0x235f52=>{const _0x38db89=function(_0x376d88){const _0x532ce7=':where(';let _0x156c9f=_0x376d88,_0x521788=0x0;for(let _0x45af8c=0x0;_0x45af8c<0x64;_0x45af8c++){const _0x31f8a7=_0x156c9f['indexOf'](_0x532ce7,_0x521788);if(-0x1===_0x31f8a7)break;let _0x54cd19=0x0;for(let _0x112485=0x0;_0x112485<_0x31f8a7;_0x112485++)'('===_0x156c9f[_0x112485]?_0x54cd19++:')'===_0x156c9f[_0x112485]&&_0x54cd19--;if(_0x54cd19>0x0){_0x521788=_0x31f8a7+0x7;continue;}let _0x3b963c=-0x1;for(let _0x19615c=_0x31f8a7+0x7,_0x56aadb=0x1;_0x19615c<_0x156c9f['length'];_0x19615c++)if('('===_0x156c9f[_0x19615c]?_0x56aadb++:')'===_0x156c9f[_0x19615c]&&_0x56aadb--,!_0x56aadb){_0x3b963c=_0x19615c;break;}-0x1!==_0x3b963c?(_0x156c9f=_0x156c9f['slice'](0x0,_0x31f8a7)+_0x156c9f['slice'](_0x3b963c+0x1),_0x521788=_0x31f8a7):_0x521788=_0x31f8a7+0x7;}return _0x156c9f['replace'](/\s+/g,'\x20')['trim']();}(_0x235f52),_0x36cc8a=_0x38db89?_0x520ad4(_0x38db89)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x376619,'flatSelector':_0x235f52,'specificity':_0x36cc8a};});})['sort']((_0x5bf897,_0x16d5da)=>_0x508dc5(_0x5bf897['specificity'],_0x16d5da['specificity']));}(_0x19c7f9['stylesProcessor'],_0x1e4230);return{'parsedCssRules':_0x271c5e,'rootCssVariables':w(_0x271c5e)};}function S(_0x3dc0d2,_0xb90b99=''){return _0x3dc0d2['flatMap'](_0x4ca92f=>{const {selectorText:_0x3bcc9d,cssText:_0x1ab426,cssRules:_0x268138}=_0x4ca92f;if(!_0x3bcc9d)return[];const _0x57a20d=_0x3bcc9d['replace'](/&/g,_0xb90b99);let _0xe2af52=_0x1ab426['replace'](_0x3bcc9d,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x268138||!_0x268138['length'])return[{'selectorText':_0x57a20d,'contentCssText':_0xe2af52}];for(const _0x20902f of _0x268138)_0xe2af52=_0xe2af52['replace'](_0x20902f['cssText'],'')['trim']();return[{'selectorText':_0x57a20d,'contentCssText':_0xe2af52},...S(Array['from'](_0x268138),_0x57a20d)];});}function L(_0x39e5b7,_0x59a720){const _0x2c5175=new _0x30c216(_0x39e5b7);for(const _0x235270 of _0x59a720){let _0x42b066;if(_0x42b066='string'==typeof _0x235270?new _0x30c216(_0x39e5b7)['setTo'](_0x235270):_0x235270,_0x42b066){for(const [_0x453649,_0x2d6596]of _0x42b066['getStylesEntries']())_0x2c5175['set'](_0x453649,_0x2d6596);}}return _0x2c5175;}var g=class extends _0x245b93{_stylesProcessor;constructor(_0xd2184e){super(_0xd2184e),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x4fc1af(this['_stylesProcessor']),_0x2d70e2(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0x555d36){const _0x3667b0=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x4f5446}=this['editor']['locale'],{rootName:_0x4ef452='main',dataControllerDowncastOptions:_0x3c91ad={},transformations:_0x276126=_0x3667b0['transformations']||[]}=_0x555d36||{};this['isBusy']=!0x0,this['refresh']();const _0x290bc0=this['_getRootDataHTMLFragment'](_0x4ef452,_0x3c91ad),_0xdc750e=_0x1b8660(_0x290bc0['ownerDocument'],'div',{'dir':_0x4f5446,'class':'ck-content'},[_0x290bc0]);return this['_collectAndApplyStyles'](_0x276126,_0xdc750e)['then'](()=>{const _0x17a242=function(_0x4589d8){const _0x597a8a=_0x4589d8['ownerDocument']['createDocumentFragment']();for(;_0x4589d8['firstChild'];)_0x597a8a['appendChild'](_0x4589d8['firstChild']);return _0x597a8a;}(_0xdc750e),_0x3d3121=_0xdc750e['getAttribute']('style');if(_0x3d3121)for(const _0x5a2f8f of _0x17a242['children']){const _0x1f4be4=_0x5a2f8f['getAttribute']('style'),_0x3a0131=L(this['_stylesProcessor'],[_0x3d3121,_0x1f4be4]);_0x5a2f8f['setAttribute']('style',x(_0x3a0131));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x17a242);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0x530ea2,_0x3e27b9){const {data:_0x368cc4,model:_0x5289f1}=this['editor'],_0x24c0e4=_0x5289f1['document']['getRoot'](_0x530ea2),_0x87e2c6=_0x368cc4['toView'](_0x24c0e4,_0x3e27b9);return _0x368cc4['htmlProcessor']['domConverter']['viewToDom'](_0x87e2c6);}async _collectAndApplyStyles(_0x40c4cb,_0x40ab5a){const {stylesheets:_0x5ea670,inlineCss:_0x4571fd,stripCssClasses:_0x7320a0}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x441cd5,rootCssVariables:_0x120ccc}=await h({'stylesheets':_0x5ea670||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x4571fd}),_0x39bf46=[];this['_processElementTree']({'transformations':_0x40c4cb,'parsedCssRules':_0x441cd5,'element':_0x40ab5a,'stripCssClasses':_0x7320a0,'parentCSSVariablesLookup':_0x120ccc['get']['bind'](_0x120ccc),'runAfterDocumentTransformation':_0x135388=>{_0x39bf46['unshift'](_0x135388);}});for(const _0x29e407 of _0x39bf46)_0x29e407();}_processElementTree({element:_0x3be597,parsedCssRules:_0x300184,parentCSSVariablesLookup:_0x45256a,runAfterDocumentTransformation:_0x3277ea,stripCssClasses:_0x39a2fd,transformations:_0x2e0713}){const {stylesMap:_0x207b86,localCSSVariables:_0x5e33e9}=function(_0x24a969){const _0x53fb61=_0x24a969['element']['getAttribute']('style')||'',_0x31a717=_0x24a969['parsedCssRules']['filter'](_0x1a3c4d=>_0x24a969['element']['matches'](_0x1a3c4d['flatSelector']))['map'](_0x32f472=>_0x32f472['stylesMap']),_0x2b137b=L(_0x24a969['stylesProcessor'],[..._0x31a717,_0x53fb61]);return{'localCSSVariables':p(_0x24a969['fallbackCSSVariablesLookup'],_0x2b137b),'stylesMap':_0x2b137b};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x45256a,'parsedCssRules':_0x300184,'element':_0x3be597}),_0x5ea8de=[];for(const _0x56fffe of _0x2e0713){const _0x1e835a=_0x56fffe(_0x3be597,_0x207b86,{'runAfterDocumentTransformation':_0x3277ea,'runAfterChildrenTransformation':_0x5d3b96=>{_0x5ea8de['unshift'](_0x5d3b96);}});_0x1e835a&&_0x1e835a instanceof HTMLElement&&(_0x3be597=_0x1e835a);}_0x207b86['size']?_0x3be597['setAttribute']('style',x(_0x207b86)):_0x3be597['removeAttribute']('style');const _0x4188e0=_0x4df688=>_0x5e33e9['has'](_0x4df688)?_0x5e33e9['get'](_0x4df688):_0x45256a(_0x4df688);for(const _0x25bec0 of _0x3be597['children'])_0x25bec0 instanceof HTMLElement&&this['_processElementTree']({'element':_0x25bec0,'parsedCssRules':_0x300184,'stripCssClasses':_0x39a2fd,'transformations':_0x2e0713,'parentCSSVariablesLookup':_0x4188e0,'runAfterDocumentTransformation':_0x3277ea});_0x39a2fd&&_0x3be597['removeAttribute']('class');for(const _0x57483c of _0x5ea8de)_0x57483c();}};function x(_0x71bf89){return _0x71bf89['getStylesEntries']()['map'](_0xd52191=>_0xd52191['join'](':'))['join'](';')+';';}var C=class extends _0x162ef7{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new g(this['editor']));}afterInit(){!async function(_0x2c93ea){const _0x2d731c='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0xdd03cf=0x79158,_0x2b685a=window['Date']['now'](),_0x33e486=_0x2c93ea['editor'],_0x197828=new window['Promise'](_0x170b16=>{_0x33e486['once']('ready',_0x170b16);}),_0xbcbc41={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x11efd1=_0x33e486['config']['get']('licenseKey');async function _0x8897c1(){let _0x30b212,_0xf208bc=null,_0x2fb191=null;try{return'GPL'==_0x11efd1?'NotAllowed':(_0x30b212=_0x3de604(),_0x30b212?(_0x30b212['usageEndpoint']&&(_0x2fb191=_0x26fd07(_0x30b212['usageEndpoint'],_0x30b212['jti'])),await _0x4cb324()?_0x11e6c9()?_0x2a9fd4()?'Expired':_0x64207d()?('evaluation'==_0x30b212['licenseType']&&(_0xf208bc=_0x593c05('EvaluationLimit')),await _0xa6ef65()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2a9fd4(){const _0x45ba7d=['evaluation','trial']['includes'](_0x30b212['licenseType'])?_0x2b685a/0x3e8:0xe10*_0xdd03cf;return _0x30b212['exp']<_0x45ba7d;}function _0x11e6c9(){const _0x3f6757=_0x30b212['features'];return!!_0x3f6757&&(!!_0x3f6757['includes']('*')||!!_0x3f6757['includes']('EIS'));}function _0x64207d(){const _0x450d9e=_0x30b212['licensedHosts'];if(!_0x450d9e||0x0==_0x450d9e['length'])return!0x0;const {hostname:_0x217c8c}=new URL(window['location']['href']);if(_0x450d9e['includes'](_0x217c8c))return!0x0;const _0x12b774=_0x217c8c['split']('.');return _0x450d9e['filter'](_0x11e766=>_0x11e766['includes']('*'))['map'](_0xcc5679=>_0xcc5679['split']('.'))['filter'](_0x4d6ef1=>_0x4d6ef1['length']<=_0x12b774['length'])['map'](_0x540381=>Array(_0x12b774['length']-_0x540381['length'])['fill']('*'===_0x540381[0x0]?'*':'')['concat'](_0x540381))['some'](_0x4e88dd=>_0x12b774['every']((_0x15cd0f,_0x4c7e78)=>_0x4e88dd[_0x4c7e78]===_0x15cd0f||'*'===_0x4e88dd[_0x4c7e78]));}function _0xa6ef65(){return _0xf208bc&&_0x2fb191?new window['Promise']((_0x441b88,_0x16330a)=>{_0xf208bc['then'](_0x441b88,_0x16330a),_0x2fb191['then'](_0xd7d9c8=>{'Valid'!=_0xd7d9c8&&_0x441b88(_0xd7d9c8);},_0x16330a);}):_0xf208bc||_0x2fb191||'Valid';}}function _0x26fd07(_0x3de483,_0x26b5f7){return new window['Promise'](_0x420371=>{if(_0x5b8c97())return _0x420371('Valid');_0x1a62d6(),_0x33e486['decorate']('_sendUsageRequest');let _0x166646=!0x1;const _0x3388df=_0x38d3e7();function _0x1ebab4(_0x14cd79){return!!_0x14cd79&&('object'==typeof _0x14cd79||'function'==typeof _0x14cd79)&&'function'==typeof _0x14cd79['then']&&'function'==typeof _0x14cd79['catch'];}function _0x5c3ba6(_0x519fe8){_0xcc2eb9(_0x519fe8)['then'](_0x22e24e=>_0x22e24e&&'ok'==_0x22e24e['status']?_0x20f1ec(_0x17b7e9(_0x3388df+_0x26b5f7))!=_0x22e24e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5c7094=>(_0x1e710b(),_0x5c7094),()=>{const _0x464b48=_0x5b2f58();return null==_0x464b48?(_0x1e710b(),'Valid'):_0x2b685a-_0x464b48>0x240c8400?'UsageLimit':'Valid';})['then'](_0x420371)['catch'](()=>{_0x420371('UsageLimit');});const _0x18ebe8=0x36ee80;function _0x1e710b(){const _0x2bd3d4='llct-'+_0x20f1ec(_0x17b7e9(_0x3de483)),_0x54db17=_0x425f14(_0x20f1ec(window['Math']['ceil'](_0x2b685a/_0x18ebe8)));window['localStorage']['setItem'](_0x2bd3d4,_0x54db17);}function _0x5b2f58(){const _0x5c7bdc='llct-'+_0x20f1ec(_0x17b7e9(_0x3de483)),_0xe24c43=window['localStorage']['getItem'](_0x5c7bdc);return _0xe24c43?window['parseInt'](_0x425f14(_0xe24c43),0x10)*_0x18ebe8:null;}function _0xcc2eb9(_0x548dea){return new window['Promise']((_0x2966b9,_0x39046d)=>{_0x548dea['then'](_0x2966b9,_0x39046d),window['setTimeout'](_0x39046d,0x1d4c0);});}}_0x33e486['on']('_sendUsageRequest',(_0x1aca1a,_0x388cbd)=>{if(_0x388cbd[0x0]!=_0x3de483)return _0x420371('UsageLimit');_0x388cbd[0x1]={..._0x388cbd[0x1],'requestId':_0x3388df};},{'priority':'high'}),_0x33e486['on']('_sendUsageRequest',_0x53d722=>{_0x1ebab4(_0x53d722['return'])&&(_0x166646=!0x0,_0x5c3ba6(_0x53d722['return']));},{'priority':'low'}),_0x197828['then'](()=>{_0x166646||_0x420371('UsageLimit');});});function _0x5b8c97(){return'auto'==_0x33e486['editing']['view']['_overlayModeHint'];}function _0x1a62d6(){_0x33e486['editing']['view']['_overlayModeHint']='auto';}}function _0x593c05(_0x549738){const _0x2631c2=[new window['Promise'](_0x962579=>setTimeout(_0x962579,0x93ecc)),_0x197828['then'](()=>new window['Promise'](_0x4ab8cf=>{let _0x37e6e3=0x0;_0x33e486['model']['on']('applyOperation',(_0x39eae3,_0x1d3b29)=>{_0x1d3b29[0x0]['isDocumentOperation']&&_0x37e6e3++,0x5e8==_0x37e6e3&&(_0x4ab8cf(),_0x39eae3['off']());});}))];return window['Promise']['race'](_0x2631c2)['then'](()=>_0x549738);}async function _0x5f3c56(){await _0x197828;const _0x57825=_0x33e486['commands']['get']('exportInlineStyles');_0x57825&&_0x57825['on']('execute',_0x2a4be2=>{_0x2a4be2['stop']();},{'priority':'highest'}),_0x33e486['model']['change']=_0x4dd674,_0x33e486['model']['enqueueChange']=_0x4dd674,_0x33e486['enableReadOnlyMode']('model');}function _0x2ff591(_0x1fc35a){const _0x3cc942=_0x38d9fd();_0x33e486[_0x3cc942]='exportInlineStylesLicenseKey'+_0x1fc35a,'Valid'!=_0x1fc35a&&_0x5f3c56();}function _0x38d9fd(){const _0x2efe37=window['String'](window['performance']['now']())['replace']('.','');let _0x522edd='D';for(let _0x4aab24=0x0;_0x4aab24<_0x2efe37['length'];_0x4aab24+=0x2){let _0x1e8887=window['parseInt'](_0x2efe37['substring'](_0x4aab24,_0x4aab24+0x2));_0x1e8887>=0x3e&&(_0x1e8887-=0x3e),_0x522edd+=_0x2d731c[_0x1e8887];}return _0x522edd;}function _0x3de604(){const _0x265310=_0x11efd1['split']('.');if(0x3!=_0x265310['length'])return null;return _0x19540a(_0x265310[0x1]);function _0x19540a(_0x1bfb5e){const _0x5a86b8=_0x39df7d(_0x1bfb5e);return _0x5a86b8&&_0x21b154()?_0x5a86b8:null;function _0x21b154(){const _0x4abc44=_0x5a86b8['jti'],_0x4a3ff6=window['parseInt'](_0x4abc44['substring'](_0x4abc44['length']-0x8),0x10),_0x4a5e67={..._0x5a86b8,'jti':_0x4abc44['substring'](0x0,_0x4abc44['length']-0x8)};return delete _0x4a5e67['vc'],_0x17b7e9(_0x4a5e67)==_0x4a3ff6;}}}async function _0x4cb324(){let _0x15b550=!0x0;try{const [_0x2959fb,_0x318567,_0x2e897c]=_0x11efd1['split']('.');return _0xff41f2(_0x2959fb),await _0x13ba7d(_0x2959fb,_0x318567,_0x2e897c),_0x15b550;}catch{return!0x1;}function _0xff41f2(_0x238cbd){const _0xd92f78=_0x39df7d(_0x238cbd);_0xd92f78&&'ES256'==_0xd92f78['alg']||(_0x15b550=!0x1);}async function _0x13ba7d(_0x43f17a,_0x3fb5c0,_0x2a49d9){const _0x29b5f8=window['Uint8Array']['from'](_0x6d740(_0x2a49d9),_0x292f94=>_0x292f94['charCodeAt'](0x0)),_0x848d21=new window['TextEncoder']()['encode'](_0x43f17a+'.'+_0x3fb5c0),_0x43bddc=window['crypto']['subtle'];if(!_0x43bddc)return;const _0x31b369=await _0x43bddc['importKey']('jwk',_0xbcbc41,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x43bddc['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x31b369,_0x29b5f8,_0x848d21)||(_0x15b550=!0x1);}}function _0x39df7d(_0x10e453){return _0x10e453['startsWith']('ey')?JSON['parse'](_0x6d740(_0x10e453)):null;}function _0x6d740(_0x4de4a2){return window['atob'](_0x4de4a2['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x17b7e9(_0x4fa712){let _0x5f1b12=0x1505;function _0xf0095e(_0x27585e){for(let _0x2823d6=0x0;_0x2823d6<_0x27585e['length'];_0x2823d6++){const _0x357b7b=_0x27585e['charCodeAt'](_0x2823d6);_0x5f1b12=(_0x5f1b12<<0x5)+_0x5f1b12+_0x357b7b,_0x5f1b12&=_0x5f1b12;}}function _0x503ed2(_0x35dfe4){Array['isArray'](_0x35dfe4)?_0x35dfe4['forEach'](_0x503ed2):_0x35dfe4&&'object'==typeof _0x35dfe4?Object['entries'](_0x35dfe4)['sort']()['forEach'](([_0x19c1c3,_0x50541d])=>{_0xf0095e(_0x19c1c3),_0x503ed2(_0x50541d);}):_0xf0095e(window['String'](_0x35dfe4));}return _0x503ed2(_0x4fa712),_0x5f1b12>>>0x0;}function _0x20f1ec(_0x36d5ce){return _0x36d5ce['toString'](0x10)['padStart'](0x8,'0');}function _0x425f14(_0x146c3c){return _0x146c3c['split']('')['reverse']()['join']('');}function _0x4dd674(){}_0x2ff591(await _0x8897c1());}(this);}},I=class extends _0x162ef7{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[C];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1fcf61=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b342c;for(const _0x181a8a in _0x1fcf61){const _0xcb099c=_0x181a8a,_0x5bbd4c=_0x1fcf61[_0xcb099c];if('exportInlineStylesLicenseKeyValid'==_0x5bbd4c||'exportInlineStylesLicenseKeyInvalid'==_0x5bbd4c||'exportInlineStylesLicenseKeyExpired'==_0x5bbd4c||'exportInlineStylesLicenseKeyDomainLimit'==_0x5bbd4c||'exportInlineStylesLicenseKeyNotAllowed'==_0x5bbd4c||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x5bbd4c||'exportInlineStylesLicenseKeyUsageLimit'==_0x5bbd4c){delete _0x1fcf61[_0xcb099c],_0x3b342c=_0x5bbd4c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x3b342c&&_0x1fcf61['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x3b342c&&_0x1fcf61['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x3b342c&&_0x1fcf61['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x3b342c&&_0x1fcf61['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3b342c&&_0x1fcf61['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x3b342c&&_0x1fcf61['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
23
+ import{Command as _0x2a3830,Plugin as _0x19c81e}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x479501,createElement as _0x4d3a1c,uid as _0x2e8704}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x1327d6,addMarginStylesRules as _0x3e2b26,addPaddingStylesRules as _0x47bbf2}from'@ckeditor/ckeditor5-engine';import{calculate as _0x5dee1c,compare as _0x301f39}from'specificity';function f(_0x3bf3cc){const _0xcac7c8=[];let _0x22a58d='',_0x57ecf4=0x0;for(;_0x57ecf4<_0x3bf3cc['length'];){const _0xc722a4=_0x3bf3cc[_0x57ecf4];if('('===_0xc722a4){const _0x3d1326=y(_0x3bf3cc,_0x57ecf4+0x1);if(-0x1===_0x3d1326)return[];_0x22a58d+=_0x3bf3cc['slice'](_0x57ecf4,_0x3d1326+0x1),_0x57ecf4=_0x3d1326+0x1;}else','!==_0xc722a4||_0x22a58d['endsWith']('\x5c')?(_0x22a58d+=_0xc722a4,_0x57ecf4++):(_0xcac7c8['push'](_0x22a58d['trim']()),_0x22a58d='',_0x57ecf4++);}return _0x22a58d['trim']()&&_0xcac7c8['push'](_0x22a58d['trim']()),_0xcac7c8['filter'](Boolean);}function y(_0x2de497,_0x2689f2){let _0x4b1370=0x1;for(let _0x204872=_0x2689f2;_0x204872<_0x2de497['length'];_0x204872++){const _0x318c3f=_0x2de497[_0x204872];if('('===_0x318c3f)_0x4b1370++;else{if(')'===_0x318c3f&&(_0x4b1370--,0x0===_0x4b1370))return _0x204872;}}return-0x1;}function d(_0x403bbd){return _0x403bbd['replace'](/!\s*important/i,'')['trim']();}function w(_0x3da26e){const _0x2bb9c4=new Map();for(const {stylesMap:_0x35689d,flatSelector:_0x557026}of _0x3da26e){if(':root'!==_0x557026)continue;const _0xbdd959=p(_0x2bb9c4['get']['bind'](_0x2bb9c4),_0x35689d);for(const [_0x56fd5f,_0x794f98]of _0xbdd959)_0x2bb9c4['set'](_0x56fd5f,_0x794f98);}return _0x2bb9c4;}function p(_0x1b9c6d,_0x1412d9){const _0x1ea949=new Map(),_0x536262=_0x555a76=>_0x1ea949['has'](_0x555a76)?_0x1ea949['get'](_0x555a76):_0x1b9c6d(_0x555a76);for(const [_0x535c0d,_0x4b2a26]of _0x1412d9['getStylesEntries']())if(_0x4b2a26&&_0x535c0d['startsWith']('--')){const _0x2d0735=m(_0x536262,_0x4b2a26);_0x1ea949['set'](_0x535c0d,_0x2d0735),_0x1412d9['remove'](_0x535c0d);}for(const [_0x14e8a0,_0x1d540f]of _0x1412d9['getStylesEntries']())if(_0x1d540f){const _0x5b98ca=m(_0x536262,_0x1d540f);_0x1412d9['set'](_0x14e8a0,_0x5b98ca);}return _0x1ea949;}function m(_0x1b542e,_0x280b49){return function(_0xf20e79,_0x22fbda){let _0x2fd209='',_0x78c146=0x0;for(;_0x78c146<_0xf20e79['length'];){const _0x356a71=_0xf20e79['indexOf']('var(',_0x78c146);if(-0x1===_0x356a71){_0x2fd209+=_0xf20e79['slice'](_0x78c146);break;}_0x2fd209+=_0xf20e79['slice'](_0x78c146,_0x356a71);const _0x28612e=_0x356a71+0x4,_0x328680=y(_0xf20e79,_0x28612e);_0x2fd209+=_0x22fbda(_0xf20e79['substring'](_0x28612e,_0x328680)),_0x78c146=_0x328680+0x1;}return _0x2fd209;}(_0x280b49,_0x3281d0=>{const [_0x24dd90,_0x3233f0]=f(_0x3281d0),_0x251052=_0x1b542e(_0x24dd90);return void 0x0!==_0x251052?_0x251052:_0x3233f0?m(_0x1b542e,_0x3233f0):'var('+_0x24dd90+')';});}async function h(_0x5a50dc){const _0x2b8fff=[await _0x479501(_0x5a50dc['stylesheets']),_0x5a50dc['inlineCss']]['filter'](_0x1a91f9=>_0x1a91f9&&_0x1a91f9['length'])['join']('\x0a'),_0x1b5c0f=await async function(_0x1f6a40,_0x186951){const _0x5f3743=new CSSStyleSheet();return await _0x5f3743['replace'](_0x186951),S(Array['from'](_0x5f3743['cssRules'])['filter'](_0x53dfb8=>_0x53dfb8 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x6b194c,contentCssText:_0x5d116c})=>{const _0x1562aa=f(_0x6b194c),_0x3e8965=new _0x1327d6(_0x1f6a40)['setTo'](_0x5d116c);return _0x1562aa['map'](_0x487bd1=>{const _0x47783d=function(_0x2a3d44){const _0x4b10d9=':where(';let _0x57228a=_0x2a3d44,_0x586bf6=0x0;for(let _0x1c22d4=0x0;_0x1c22d4<0x64;_0x1c22d4++){const _0x3f7a30=_0x57228a['indexOf'](_0x4b10d9,_0x586bf6);if(-0x1===_0x3f7a30)break;let _0x5c3164=0x0;for(let _0x1bc5b4=0x0;_0x1bc5b4<_0x3f7a30;_0x1bc5b4++)'('===_0x57228a[_0x1bc5b4]?_0x5c3164++:')'===_0x57228a[_0x1bc5b4]&&_0x5c3164--;if(_0x5c3164>0x0){_0x586bf6=_0x3f7a30+0x7;continue;}let _0xffcda4=-0x1;for(let _0x1628a1=_0x3f7a30+0x7,_0x42120b=0x1;_0x1628a1<_0x57228a['length'];_0x1628a1++)if('('===_0x57228a[_0x1628a1]?_0x42120b++:')'===_0x57228a[_0x1628a1]&&_0x42120b--,!_0x42120b){_0xffcda4=_0x1628a1;break;}-0x1!==_0xffcda4?(_0x57228a=_0x57228a['slice'](0x0,_0x3f7a30)+_0x57228a['slice'](_0xffcda4+0x1),_0x586bf6=_0x3f7a30):_0x586bf6=_0x3f7a30+0x7;}return _0x57228a['replace'](/\s+/g,'\x20')['trim']();}(_0x487bd1),_0x123590=_0x47783d?_0x5dee1c(_0x47783d)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x3e8965,'flatSelector':_0x487bd1,'specificity':_0x123590};});})['sort']((_0x162ac3,_0xd9860)=>_0x301f39(_0x162ac3['specificity'],_0xd9860['specificity']));}(_0x5a50dc['stylesProcessor'],_0x2b8fff);return{'parsedCssRules':_0x1b5c0f,'rootCssVariables':w(_0x1b5c0f)};}function S(_0x116f95,_0x45e720=''){return _0x116f95['flatMap'](_0x2d2a56=>{const {selectorText:_0x47e7a7,cssText:_0x4de51e,cssRules:_0x4038b8}=_0x2d2a56;if(!_0x47e7a7)return[];const _0x19e411=_0x47e7a7['replace'](/&/g,_0x45e720);let _0x499c00=_0x4de51e['replace'](_0x47e7a7,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x4038b8||!_0x4038b8['length'])return[{'selectorText':_0x19e411,'contentCssText':_0x499c00}];for(const _0x531117 of _0x4038b8)_0x499c00=_0x499c00['replace'](_0x531117['cssText'],'')['trim']();return[{'selectorText':_0x19e411,'contentCssText':_0x499c00},...S(Array['from'](_0x4038b8),_0x19e411)];});}function L(_0x295638,_0x1639ec){const _0x435cd0=new _0x1327d6(_0x295638);for(const _0x4cd9b0 of _0x1639ec){let _0x440191;if(_0x440191='string'==typeof _0x4cd9b0?new _0x1327d6(_0x295638)['setTo'](_0x4cd9b0):_0x4cd9b0,_0x440191){for(const [_0x307025,_0x418623]of _0x440191['getStylesEntries']())_0x435cd0['set'](_0x307025,_0x418623);}}return _0x435cd0;}var g=class extends _0x2a3830{_stylesProcessor;constructor(_0x2b3e7d){super(_0x2b3e7d),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x3e2b26(this['_stylesProcessor']),_0x47bbf2(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0x2f3b43){const _0x437666=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x2d78bd}=this['editor']['locale'],{rootName:_0x191206='main',dataControllerDowncastOptions:_0x32aa64={},transformations:_0x497007=_0x437666['transformations']||[]}=_0x2f3b43||{};this['isBusy']=!0x0,this['refresh']();const _0x3f337d=this['_getRootDataHTMLFragment'](_0x191206,_0x32aa64),_0x53dc13=_0x4d3a1c(_0x3f337d['ownerDocument'],'div',{'dir':_0x2d78bd,'class':'ck-content'},[_0x3f337d]);return this['_collectAndApplyStyles'](_0x497007,_0x53dc13)['then'](()=>{const _0x145a41=function(_0x9ac13d){const _0x260ec8=_0x9ac13d['ownerDocument']['createDocumentFragment']();for(;_0x9ac13d['firstChild'];)_0x260ec8['appendChild'](_0x9ac13d['firstChild']);return _0x260ec8;}(_0x53dc13),_0x5c175a=_0x53dc13['getAttribute']('style');if(_0x5c175a)for(const _0x38d673 of _0x145a41['children']){const _0x394f6a=_0x38d673['getAttribute']('style'),_0x3ebc8b=L(this['_stylesProcessor'],[_0x5c175a,_0x394f6a]);_0x38d673['setAttribute']('style',x(_0x3ebc8b));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x145a41);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0x26d003,_0x35cca5){const {data:_0x1f4b6c,model:_0xacf7ae}=this['editor'],_0xcd9ef5=_0xacf7ae['document']['getRoot'](_0x26d003),_0x7dee64=_0x1f4b6c['toView'](_0xcd9ef5,_0x35cca5);return _0x1f4b6c['htmlProcessor']['domConverter']['viewToDom'](_0x7dee64);}async _collectAndApplyStyles(_0x441b9a,_0x4de6d1){const {stylesheets:_0x565795,inlineCss:_0x31d2ab,stripCssClasses:_0x55186b}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x417283,rootCssVariables:_0x1fcba6}=await h({'stylesheets':_0x565795||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x31d2ab}),_0x468369=[];this['_processElementTree']({'transformations':_0x441b9a,'parsedCssRules':_0x417283,'element':_0x4de6d1,'stripCssClasses':_0x55186b,'parentCSSVariablesLookup':_0x1fcba6['get']['bind'](_0x1fcba6),'runAfterDocumentTransformation':_0x4346f8=>{_0x468369['unshift'](_0x4346f8);}});for(const _0x712402 of _0x468369)_0x712402();}_processElementTree({element:_0x5a59ca,parsedCssRules:_0x55073a,parentCSSVariablesLookup:_0x5f14d2,runAfterDocumentTransformation:_0x475273,stripCssClasses:_0x4b3a5e,transformations:_0x3500a4}){const {stylesMap:_0xe2ce34,localCSSVariables:_0x5251d8}=function(_0x548162){const _0x1b9f41=_0x548162['element']['getAttribute']('style')||'',_0x3541f5=_0x548162['parsedCssRules']['filter'](_0x18a230=>_0x548162['element']['matches'](_0x18a230['flatSelector']))['map'](_0xdda1ad=>_0xdda1ad['stylesMap']),_0x2f27e4=L(_0x548162['stylesProcessor'],[..._0x3541f5,_0x1b9f41]);return{'localCSSVariables':p(_0x548162['fallbackCSSVariablesLookup'],_0x2f27e4),'stylesMap':_0x2f27e4};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x5f14d2,'parsedCssRules':_0x55073a,'element':_0x5a59ca}),_0x3b2c6f=[];for(const _0x382904 of _0x3500a4){const _0x282b6f=_0x382904(_0x5a59ca,_0xe2ce34,{'runAfterDocumentTransformation':_0x475273,'runAfterChildrenTransformation':_0x33f31d=>{_0x3b2c6f['unshift'](_0x33f31d);}});_0x282b6f&&_0x282b6f instanceof HTMLElement&&(_0x5a59ca=_0x282b6f);}_0xe2ce34['size']?_0x5a59ca['setAttribute']('style',x(_0xe2ce34)):_0x5a59ca['removeAttribute']('style');const _0x2f035c=_0x26a1cc=>_0x5251d8['has'](_0x26a1cc)?_0x5251d8['get'](_0x26a1cc):_0x5f14d2(_0x26a1cc);for(const _0x599b3b of _0x5a59ca['children'])_0x599b3b instanceof HTMLElement&&this['_processElementTree']({'element':_0x599b3b,'parsedCssRules':_0x55073a,'stripCssClasses':_0x4b3a5e,'transformations':_0x3500a4,'parentCSSVariablesLookup':_0x2f035c,'runAfterDocumentTransformation':_0x475273});_0x4b3a5e&&_0x5a59ca['removeAttribute']('class');for(const _0x2773f3 of _0x3b2c6f)_0x2773f3();}};function x(_0x39c5e7){return _0x39c5e7['getStylesEntries']()['map'](_0x2a71ed=>_0x2a71ed['join'](':'))['join'](';')+';';}var C=class extends _0x19c81e{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new g(this['editor']));}afterInit(){!async function(_0x250846){const _0x87c0fb='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x4b4aac=0x79170,_0x6f1c15=window['Date']['now'](),_0x27a65=_0x250846['editor'],_0x449ad4=new window['Promise'](_0x34cc18=>{_0x27a65['once']('ready',_0x34cc18);}),_0x3beb73={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x10ced9=_0x27a65['config']['get']('licenseKey');async function _0x35c8c1(){let _0x42e54a,_0x380893=null,_0x2de861=null;try{return'GPL'==_0x10ced9?'NotAllowed':(_0x42e54a=_0x412e63(),_0x42e54a?(_0x42e54a['usageEndpoint']&&(_0x2de861=_0x1ed24d(_0x42e54a['usageEndpoint'],_0x42e54a['jti'])),await _0xeaef77()?_0x12d1de()?_0x247328()?'Expired':_0x1cade6()?('evaluation'==_0x42e54a['licenseType']&&(_0x380893=_0x48d711('EvaluationLimit')),await _0xb0636()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x247328(){const _0x524963=['evaluation','trial']['includes'](_0x42e54a['licenseType'])?_0x6f1c15/0x3e8:0xe10*_0x4b4aac;return _0x42e54a['exp']<_0x524963;}function _0x12d1de(){const _0x4a3b78=_0x42e54a['features'];return!!_0x4a3b78&&(!!_0x4a3b78['includes']('*')||!!_0x4a3b78['includes']('EIS'));}function _0x1cade6(){const _0xa37935=_0x42e54a['licensedHosts'];if(!_0xa37935||0x0==_0xa37935['length'])return!0x0;const {hostname:_0x3b0621}=new URL(window['location']['href']);if(_0xa37935['includes'](_0x3b0621))return!0x0;const _0x5994a8=_0x3b0621['split']('.');return _0xa37935['filter'](_0x329022=>_0x329022['includes']('*'))['map'](_0x4176d8=>_0x4176d8['split']('.'))['filter'](_0x49dad6=>_0x49dad6['length']<=_0x5994a8['length'])['map'](_0x34d0a3=>Array(_0x5994a8['length']-_0x34d0a3['length'])['fill']('*'===_0x34d0a3[0x0]?'*':'')['concat'](_0x34d0a3))['some'](_0x5ecb17=>_0x5994a8['every']((_0x2b5210,_0x331ead)=>_0x5ecb17[_0x331ead]===_0x2b5210||'*'===_0x5ecb17[_0x331ead]));}function _0xb0636(){return _0x380893&&_0x2de861?new window['Promise']((_0x111b36,_0x593404)=>{_0x380893['then'](_0x111b36,_0x593404),_0x2de861['then'](_0xb5a590=>{'Valid'!=_0xb5a590&&_0x111b36(_0xb5a590);},_0x593404);}):_0x380893||_0x2de861||'Valid';}}function _0x1ed24d(_0x47d31f,_0x27626e){return new window['Promise'](_0x55d03a=>{if(_0x300f71())return _0x55d03a('Valid');_0x4b8d44(),_0x27a65['decorate']('_sendUsageRequest');let _0x1dc163=!0x1;const _0x41f1bc=_0x2e8704();function _0x5d762b(_0x11fbb0){return!!_0x11fbb0&&('object'==typeof _0x11fbb0||'function'==typeof _0x11fbb0)&&'function'==typeof _0x11fbb0['then']&&'function'==typeof _0x11fbb0['catch'];}function _0x25ca05(_0x1d9fc2){_0x3c5c03(_0x1d9fc2)['then'](_0x23fae3=>_0x23fae3&&'ok'==_0x23fae3['status']?_0x394850(_0x412f7c(_0x41f1bc+_0x27626e))!=_0x23fae3['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5e1d80=>(_0x14f9f9(),_0x5e1d80),()=>{const _0x47d85e=_0x533014();return null==_0x47d85e?(_0x14f9f9(),'Valid'):_0x6f1c15-_0x47d85e>0x240c8400?'UsageLimit':'Valid';})['then'](_0x55d03a)['catch'](()=>{_0x55d03a('UsageLimit');});const _0x53e5a4=0x36ee80;function _0x14f9f9(){const _0x147c81='llct-'+_0x394850(_0x412f7c(_0x47d31f)),_0x36e2dd=_0x352dab(_0x394850(window['Math']['ceil'](_0x6f1c15/_0x53e5a4)));window['localStorage']['setItem'](_0x147c81,_0x36e2dd);}function _0x533014(){const _0x312762='llct-'+_0x394850(_0x412f7c(_0x47d31f)),_0x25bced=window['localStorage']['getItem'](_0x312762);return _0x25bced?window['parseInt'](_0x352dab(_0x25bced),0x10)*_0x53e5a4:null;}function _0x3c5c03(_0x5520ac){return new window['Promise']((_0x503539,_0x10ca85)=>{_0x5520ac['then'](_0x503539,_0x10ca85),window['setTimeout'](_0x10ca85,0x1d4c0);});}}_0x27a65['on']('_sendUsageRequest',(_0x2050e9,_0x3b8c35)=>{if(_0x3b8c35[0x0]!=_0x47d31f)return _0x55d03a('UsageLimit');_0x3b8c35[0x1]={..._0x3b8c35[0x1],'requestId':_0x41f1bc};},{'priority':'high'}),_0x27a65['on']('_sendUsageRequest',_0x418958=>{_0x5d762b(_0x418958['return'])&&(_0x1dc163=!0x0,_0x25ca05(_0x418958['return']));},{'priority':'low'}),_0x449ad4['then'](()=>{_0x1dc163||_0x55d03a('UsageLimit');});});function _0x300f71(){return'auto'==_0x27a65['editing']['view']['_overlayModeHint'];}function _0x4b8d44(){_0x27a65['editing']['view']['_overlayModeHint']='auto';}}function _0x48d711(_0x5c7ec1){const _0x53376b=[new window['Promise'](_0x198206=>setTimeout(_0x198206,0x93ecc)),_0x449ad4['then'](()=>new window['Promise'](_0x402828=>{let _0x59f11f=0x0;_0x27a65['model']['on']('applyOperation',(_0x59b05c,_0x3b5c52)=>{_0x3b5c52[0x0]['isDocumentOperation']&&_0x59f11f++,0x5e8==_0x59f11f&&(_0x402828(),_0x59b05c['off']());});}))];return window['Promise']['race'](_0x53376b)['then'](()=>_0x5c7ec1);}async function _0x48ab96(){await _0x449ad4;const _0x5662d1=_0x27a65['commands']['get']('exportInlineStyles');_0x5662d1&&_0x5662d1['on']('execute',_0x5296f2=>{_0x5296f2['stop']();},{'priority':'highest'}),_0x27a65['model']['change']=_0x3acbc3,_0x27a65['model']['enqueueChange']=_0x3acbc3,_0x27a65['enableReadOnlyMode']('model');}function _0x288003(_0x1166d9){const _0xc8c3f8=_0x27a2b5();_0x27a65[_0xc8c3f8]='exportInlineStylesLicenseKey'+_0x1166d9,'Valid'!=_0x1166d9&&_0x48ab96();}function _0x27a2b5(){const _0x4eec9a=window['String'](window['performance']['now']())['replace']('.','');let _0x2705f1='D';for(let _0x561462=0x0;_0x561462<_0x4eec9a['length'];_0x561462+=0x2){let _0x52c2d9=window['parseInt'](_0x4eec9a['substring'](_0x561462,_0x561462+0x2));_0x52c2d9>=0x3e&&(_0x52c2d9-=0x3e),_0x2705f1+=_0x87c0fb[_0x52c2d9];}return _0x2705f1;}function _0x412e63(){const _0x333fe4=_0x10ced9['split']('.');if(0x3!=_0x333fe4['length'])return null;return _0x4543ed(_0x333fe4[0x1]);function _0x4543ed(_0x4e0eaf){const _0x527607=_0x3a3486(_0x4e0eaf);return _0x527607&&_0x4a035e()?_0x527607:null;function _0x4a035e(){const _0x3a7c7c=_0x527607['jti'],_0x475f67=window['parseInt'](_0x3a7c7c['substring'](_0x3a7c7c['length']-0x8),0x10),_0x5a8be7={..._0x527607,'jti':_0x3a7c7c['substring'](0x0,_0x3a7c7c['length']-0x8)};return delete _0x5a8be7['vc'],_0x412f7c(_0x5a8be7)==_0x475f67;}}}async function _0xeaef77(){let _0x2b075f=!0x0;try{const [_0x4a333e,_0x4cb6aa,_0x29c581]=_0x10ced9['split']('.');return _0x5e5dd4(_0x4a333e),await _0x284a2d(_0x4a333e,_0x4cb6aa,_0x29c581),_0x2b075f;}catch{return!0x1;}function _0x5e5dd4(_0x3b4eca){const _0x488ae5=_0x3a3486(_0x3b4eca);_0x488ae5&&'ES256'==_0x488ae5['alg']||(_0x2b075f=!0x1);}async function _0x284a2d(_0x3b1bdf,_0x8b4bf0,_0x5ccabb){const _0x5a5764=window['Uint8Array']['from'](_0x5e030d(_0x5ccabb),_0x4eee4e=>_0x4eee4e['charCodeAt'](0x0)),_0x5af2d3=new window['TextEncoder']()['encode'](_0x3b1bdf+'.'+_0x8b4bf0),_0x51e8b8=window['crypto']['subtle'];if(!_0x51e8b8)return;const _0x4270c5=await _0x51e8b8['importKey']('jwk',_0x3beb73,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x51e8b8['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4270c5,_0x5a5764,_0x5af2d3)||(_0x2b075f=!0x1);}}function _0x3a3486(_0x54e4d4){return _0x54e4d4['startsWith']('ey')?JSON['parse'](_0x5e030d(_0x54e4d4)):null;}function _0x5e030d(_0x2f0372){return window['atob'](_0x2f0372['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x412f7c(_0x4825e4){let _0x371ee9=0x1505;function _0x47a693(_0x2a8fc5){for(let _0x1ff4b4=0x0;_0x1ff4b4<_0x2a8fc5['length'];_0x1ff4b4++){const _0x1bd577=_0x2a8fc5['charCodeAt'](_0x1ff4b4);_0x371ee9=(_0x371ee9<<0x5)+_0x371ee9+_0x1bd577,_0x371ee9&=_0x371ee9;}}function _0x2c35bf(_0x427f6f){Array['isArray'](_0x427f6f)?_0x427f6f['forEach'](_0x2c35bf):_0x427f6f&&'object'==typeof _0x427f6f?Object['entries'](_0x427f6f)['sort']()['forEach'](([_0x1e47f6,_0x1f47ce])=>{_0x47a693(_0x1e47f6),_0x2c35bf(_0x1f47ce);}):_0x47a693(window['String'](_0x427f6f));}return _0x2c35bf(_0x4825e4),_0x371ee9>>>0x0;}function _0x394850(_0x4d9015){return _0x4d9015['toString'](0x10)['padStart'](0x8,'0');}function _0x352dab(_0x4fee3e){return _0x4fee3e['split']('')['reverse']()['join']('');}function _0x3acbc3(){}_0x288003(await _0x35c8c1());}(this);}},I=class extends _0x19c81e{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[C];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4054d5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57e9b8;for(const _0x25f8cf in _0x4054d5){const _0x46940b=_0x25f8cf,_0x5e1fd5=_0x4054d5[_0x46940b];if('exportInlineStylesLicenseKeyValid'==_0x5e1fd5||'exportInlineStylesLicenseKeyInvalid'==_0x5e1fd5||'exportInlineStylesLicenseKeyExpired'==_0x5e1fd5||'exportInlineStylesLicenseKeyDomainLimit'==_0x5e1fd5||'exportInlineStylesLicenseKeyNotAllowed'==_0x5e1fd5||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x5e1fd5||'exportInlineStylesLicenseKeyUsageLimit'==_0x5e1fd5){delete _0x4054d5[_0x46940b],_0x57e9b8=_0x5e1fd5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x57e9b8&&_0x4054d5['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x57e9b8&&_0x4054d5['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x57e9b8&&_0x4054d5['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x57e9b8&&_0x4054d5['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x57e9b8&&_0x4054d5['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x57e9b8&&_0x4054d5['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-inline-styles",
3
- "version": "48.4.0-alpha.2",
3
+ "version": "48.4.0-alpha.3",
4
4
  "description": "The export with inline styles feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -34,9 +34,9 @@
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "dependencies": {
37
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.2",
38
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.2",
39
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.2",
37
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.3",
38
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.3",
39
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.3",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [