@ckeditor/ckeditor5-export-inline-styles 48.2.0-alpha.0 → 48.2.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 +4 -4
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x15ee61,Plugin as _0x5f2772}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x557c3c,createElement as _0x8148aa,uid as _0x571404}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x27b95a,addMarginStylesRules as _0x3d2e23,addPaddingStylesRules as _0x29b354}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x244bea,compare as _0x2b9d43}from'specificity';function f(_0x38f4a2){const _0xcd756a=[];let _0x1d2a6f='',_0x4bea9c=0x0;for(;_0x4bea9c<_0x38f4a2['length'];){const _0x1c28ea=_0x38f4a2[_0x4bea9c];if('('===_0x1c28ea){const _0x403f8f=y(_0x38f4a2,_0x4bea9c+0x1);if(-0x1===_0x403f8f)return[];_0x1d2a6f+=_0x38f4a2['slice'](_0x4bea9c,_0x403f8f+0x1),_0x4bea9c=_0x403f8f+0x1;}else','!==_0x1c28ea||_0x1d2a6f['endsWith']('\x5c')?(_0x1d2a6f+=_0x1c28ea,_0x4bea9c++):(_0xcd756a['push'](_0x1d2a6f['trim']()),_0x1d2a6f='',_0x4bea9c++);}return _0x1d2a6f['trim']()&&_0xcd756a['push'](_0x1d2a6f['trim']()),_0xcd756a['filter'](Boolean);}function y(_0x397699,_0x1c67ce){let _0x222f50=0x1;for(let _0x106070=_0x1c67ce;_0x106070<_0x397699['length'];_0x106070++){const _0x4c13d2=_0x397699[_0x106070];if('('===_0x4c13d2)_0x222f50++;else{if(')'===_0x4c13d2&&(_0x222f50--,0x0===_0x222f50))return _0x106070;}}return-0x1;}function p(_0x5b00b3){return _0x5b00b3['replace'](/!\s*important/i,'')['trim']();}function w(_0xbb4cb2,_0x2e5084){const _0x3ed6c5=new Map(),_0x19f32c=_0x502f9c=>_0x3ed6c5['has'](_0x502f9c)?_0x3ed6c5['get'](_0x502f9c):_0xbb4cb2(_0x502f9c);for(const [_0x37b301,_0x216cc8]of _0x2e5084['getStylesEntries']())if(_0x216cc8&&_0x37b301['startsWith']('--')){const _0x1b7c35=d(_0x19f32c,_0x216cc8);_0x3ed6c5['set'](_0x37b301,_0x1b7c35),_0x2e5084['remove'](_0x37b301);}for(const [_0x5339f4,_0x43f74c]of _0x2e5084['getStylesEntries']())if(_0x43f74c){const _0x1801af=d(_0x19f32c,_0x43f74c);_0x2e5084['set'](_0x5339f4,_0x1801af);}return _0x3ed6c5;}function d(_0x52c661,_0x366deb){return function(_0x5aba10,_0x146234){let _0x1aae03='',_0x18a20c=0x0;for(;_0x18a20c<_0x5aba10['length'];){const _0x2e2a26=_0x5aba10['indexOf']('var(',_0x18a20c);if(-0x1===_0x2e2a26){_0x1aae03+=_0x5aba10['slice'](_0x18a20c);break;}_0x1aae03+=_0x5aba10['slice'](_0x18a20c,_0x2e2a26);const _0xe5665e=_0x2e2a26+0x4,_0x200c46=y(_0x5aba10,_0xe5665e);_0x1aae03+=_0x146234(_0x5aba10['substring'](_0xe5665e,_0x200c46)),_0x18a20c=_0x200c46+0x1;}return _0x1aae03;}(_0x366deb,_0x2c23df=>{const [_0x5be1ef,_0x3832e3]=f(_0x2c23df),_0x2edb7e=_0x52c661(_0x5be1ef);return void 0x0!==_0x2edb7e?_0x2edb7e:_0x3832e3?d(_0x52c661,_0x3832e3):'var('+_0x5be1ef+')';});}async function m(_0x1b3390){const _0x308a5e=[await _0x557c3c(_0x1b3390['stylesheets']),_0x1b3390['inlineCss']]['filter'](_0x3d7365=>_0x3d7365&&_0x3d7365['length'])['join']('\x0a'),_0x14792b=await async function(_0x173306,_0x579ff6){const _0x4fc5d2=new CSSStyleSheet();return await _0x4fc5d2['replace'](_0x579ff6),S(Array['from'](_0x4fc5d2['cssRules'])['filter'](_0x4ca69a=>_0x4ca69a instanceof CSSStyleRule))['flatMap'](({selectorText:_0x31c37b,contentCssText:_0x2d244a})=>{const _0x411bc1=f(_0x31c37b),_0x29a7e0=new _0x27b95a(_0x173306)['setTo'](_0x2d244a);return _0x411bc1['map'](_0x5b4f7b=>{const _0x567df7=function(_0x4b48e6){const _0xbfd5af=':where(';let _0x5316b5=_0x4b48e6,_0x1e0044=0x0;for(let _0x4ff79e=0x0;_0x4ff79e<0x64;_0x4ff79e++){const _0x394116=_0x5316b5['indexOf'](_0xbfd5af,_0x1e0044);if(-0x1===_0x394116)break;let _0x48ab1e=0x0;for(let _0x1ef5dc=0x0;_0x1ef5dc<_0x394116;_0x1ef5dc++)'('===_0x5316b5[_0x1ef5dc]?_0x48ab1e++:')'===_0x5316b5[_0x1ef5dc]&&_0x48ab1e--;if(_0x48ab1e>0x0){_0x1e0044=_0x394116+_0xbfd5af['length'];continue;}let _0x6be54a=-0x1;for(let _0x5718b9=_0x394116+_0xbfd5af['length'],_0x5160e1=0x1;_0x5718b9<_0x5316b5['length'];_0x5718b9++)if('('===_0x5316b5[_0x5718b9]?_0x5160e1++:')'===_0x5316b5[_0x5718b9]&&_0x5160e1--,!_0x5160e1){_0x6be54a=_0x5718b9;break;}-0x1!==_0x6be54a?(_0x5316b5=_0x5316b5['slice'](0x0,_0x394116)+_0x5316b5['slice'](_0x6be54a+0x1),_0x1e0044=_0x394116):_0x1e0044=_0x394116+_0xbfd5af['length'];}return _0x5316b5['replace'](/\s+/g,'\x20')['trim']();}(_0x5b4f7b),_0x383cf7=_0x567df7?_0x244bea(_0x567df7)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x29a7e0,'flatSelector':_0x5b4f7b,'specificity':_0x383cf7};});})['sort']((_0x31344b,_0x44aeae)=>_0x2b9d43(_0x31344b['specificity'],_0x44aeae['specificity']));}(_0x1b3390['stylesProcessor'],_0x308a5e);return{'parsedCssRules':_0x14792b,'rootCssVariables':function(_0x98058a){const _0x5661d7=new Map();for(const {stylesMap:_0x303ccd,flatSelector:_0x42ff7a}of _0x98058a){if(':root'!==_0x42ff7a)continue;const _0x5c5253=w(_0x5661d7['get']['bind'](_0x5661d7),_0x303ccd);for(const [_0x3dd81e,_0x2745e1]of _0x5c5253)_0x5661d7['set'](_0x3dd81e,_0x2745e1);}return _0x5661d7;}(_0x14792b)};}function S(_0x29906a,_0x226e39=''){return _0x29906a['flatMap'](_0x149f18=>{const {selectorText:_0xf3eff9,cssText:_0x1bb685,cssRules:_0x4d1145}=_0x149f18;if(!_0xf3eff9)return[];const _0x1e8da3=_0xf3eff9['replace'](/&/g,_0x226e39);let _0x298a3f=_0x1bb685['replace'](_0xf3eff9,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x4d1145||!_0x4d1145['length'])return[{'selectorText':_0x1e8da3,'contentCssText':_0x298a3f}];for(const _0x2c66ee of _0x4d1145)_0x298a3f=_0x298a3f['replace'](_0x2c66ee['cssText'],'')['trim']();return[{'selectorText':_0x1e8da3,'contentCssText':_0x298a3f},...S(Array['from'](_0x4d1145),_0x1e8da3)];});}function h(_0x133627,_0x58867c){const _0x2c4c5a=new _0x27b95a(_0x133627);for(const _0x211dc2 of _0x58867c){let _0x3fee0d=null;if(_0x3fee0d='string'==typeof _0x211dc2?new _0x27b95a(_0x133627)['setTo'](_0x211dc2):_0x211dc2,_0x3fee0d){for(const [_0x527b4f,_0x322fbe]of _0x3fee0d['getStylesEntries']())_0x2c4c5a['set'](_0x527b4f,_0x322fbe);}}return _0x2c4c5a;}class ExportInlineStylesCommand extends _0x15ee61{['_stylesProcessor'];constructor(_0x2c67cf){super(_0x2c67cf),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x3d2e23(this['_stylesProcessor']),_0x29b354(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x3b5a39){const _0x42157c=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x4e8c75}=this['editor']['locale'],{rootName:_0x3a2ea3='main',dataControllerDowncastOptions:_0x5d0b27={},transformations:_0xae2e24=_0x42157c['transformations']||[]}=_0x3b5a39||{};this['isBusy']=!0x0,this['refresh']();const _0x524422=this['_getRootDataHTMLFragment'](_0x3a2ea3,_0x5d0b27),_0x5f40f1=_0x8148aa(_0x524422['ownerDocument'],'div',{'dir':_0x4e8c75,'class':'ck-content'},[_0x524422]);return this['_collectAndApplyStyles'](_0xae2e24,_0x5f40f1)['then'](()=>{const _0x2a5bf6=function(_0x2d352d){const _0x4af462=_0x2d352d['ownerDocument']['createDocumentFragment']();for(;_0x2d352d['firstChild'];)_0x4af462['appendChild'](_0x2d352d['firstChild']);return _0x4af462;}(_0x5f40f1),_0x3cf98d=_0x5f40f1['getAttribute']('style');if(_0x3cf98d)for(const _0x5ca372 of _0x2a5bf6['children']){const _0x2deee8=_0x5ca372['getAttribute']('style'),_0x2f00cb=h(this['_stylesProcessor'],[_0x3cf98d,_0x2deee8]);_0x5ca372['setAttribute']('style',x(_0x2f00cb));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x2a5bf6);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x144265,_0x40364f){const {data:_0x49b568,model:_0x54b893}=this['editor'],_0x4e171a=_0x54b893['document']['getRoot'](_0x144265),_0x417b7a=_0x49b568['toView'](_0x4e171a,_0x40364f);return _0x49b568['htmlProcessor']['domConverter']['viewToDom'](_0x417b7a);}async['_collectAndApplyStyles'](_0x1739fd,_0x5d856e){const {stylesheets:_0xc7f49c,inlineCss:_0x195cd9,stripCssClasses:_0x40d436}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x5ee9a8,rootCssVariables:_0x40e010}=await m({'stylesheets':_0xc7f49c||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x195cd9}),_0x2fd83b=[];this['_processElementTree']({'transformations':_0x1739fd,'parsedCssRules':_0x5ee9a8,'element':_0x5d856e,'stripCssClasses':_0x40d436,'parentCSSVariablesLookup':_0x40e010['get']['bind'](_0x40e010),'runAfterDocumentTransformation':_0x40e3bb=>{_0x2fd83b['unshift'](_0x40e3bb);}});for(const _0x2e1b46 of _0x2fd83b)_0x2e1b46();}['_processElementTree']({element:_0x176006,parsedCssRules:_0x57683d,parentCSSVariablesLookup:_0x1121d6,runAfterDocumentTransformation:_0x4186bf,stripCssClasses:_0x27c6da,transformations:_0x5d090d}){const {stylesMap:_0x5e8932,localCSSVariables:_0x55d402}=function(_0x41538e){const _0x843142=_0x41538e['element']['getAttribute']('style')||'',_0x379a51=_0x41538e['parsedCssRules']['filter'](_0x43aeac=>_0x41538e['element']['matches'](_0x43aeac['flatSelector']))['map'](_0xd098e2=>_0xd098e2['stylesMap']),_0x1edb25=h(_0x41538e['stylesProcessor'],[..._0x379a51,_0x843142]);return{'localCSSVariables':w(_0x41538e['fallbackCSSVariablesLookup'],_0x1edb25),'stylesMap':_0x1edb25};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x1121d6,'parsedCssRules':_0x57683d,'element':_0x176006}),_0x20d37f=[];for(const _0x4e0b67 of _0x5d090d){const _0x40a66c=_0x4e0b67(_0x176006,_0x5e8932,{'runAfterDocumentTransformation':_0x4186bf,'runAfterChildrenTransformation':_0x69024c=>{_0x20d37f['unshift'](_0x69024c);}});_0x40a66c&&_0x40a66c instanceof HTMLElement&&(_0x176006=_0x40a66c);}_0x5e8932['size']?_0x176006['setAttribute']('style',x(_0x5e8932)):_0x176006['removeAttribute']('style');const _0x2f9bef=_0x523cc6=>_0x55d402['has'](_0x523cc6)?_0x55d402['get'](_0x523cc6):_0x1121d6(_0x523cc6);for(const _0x356199 of _0x176006['children'])_0x356199 instanceof HTMLElement&&this['_processElementTree']({'element':_0x356199,'parsedCssRules':_0x57683d,'stripCssClasses':_0x27c6da,'transformations':_0x5d090d,'parentCSSVariablesLookup':_0x2f9bef,'runAfterDocumentTransformation':_0x4186bf});_0x27c6da&&_0x176006['removeAttribute']('class');for(const _0x41416e of _0x20d37f)_0x41416e();}}function x(_0x4972be){return _0x4972be['getStylesEntries']()['map'](_0x42bdb6=>_0x42bdb6['join'](':'))['join'](';')+';';}class ExportInlineStylesEditing extends _0x5f2772{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 ExportInlineStylesCommand(this['editor']));}['afterInit'](){!async function(_0xfe80d6){const _0x171ab0=_0x16eb83([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x581ebd=0x6f40c3fb,_0x25e724=0x6f4748bb^_0x581ebd,_0x5c078d=window[_0x16eb83([0x44,0x61,0x74,0x65])][_0x16eb83([0x6e,0x6f,0x77])](),_0x989f97=_0xfe80d6[_0x16eb83([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f7b90=new window[(_0x16eb83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1192ea=>{_0x989f97[_0x16eb83([0x6f,0x6e,0x63,0x65])](_0x16eb83([0x72,0x65,0x61,0x64,0x79]),_0x1192ea);}),_0x13b5a0={[_0x16eb83([0x6b,0x74,0x79])]:_0x16eb83([0x45,0x43]),[_0x16eb83([0x75,0x73,0x65])]:_0x16eb83([0x73,0x69,0x67]),[_0x16eb83([0x63,0x72,0x76])]:_0x16eb83([0x50,0x2d,0x32,0x35,0x36]),[_0x16eb83([0x78])]:_0x16eb83([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]),[_0x16eb83([0x79])]:_0x16eb83([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]),[_0x16eb83([0x61,0x6c,0x67])]:_0x16eb83([0x45,0x53,0x32,0x35,0x36])},_0x55370b=_0x989f97[_0x16eb83([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16eb83([0x67,0x65,0x74])](_0x16eb83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x202c35(){let _0x467b96,_0x17b564=null,_0x1ad798=null;try{if(_0x55370b==_0x16eb83([0x47,0x50,0x4c]))return _0x16eb83([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x467b96=_0xfa45d2(),!_0x467b96)return _0x16eb83([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x467b96[_0x16eb83([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ad798=_0x5b514b(_0x467b96[_0x16eb83([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x467b96[_0x16eb83([0x6a,0x74,0x69])])),await _0x21e7c5()?_0x5b3933()?_0x1ed7d3()?_0x16eb83([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d3614()?(_0x467b96[_0x16eb83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16eb83([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17b564=_0x1db4ca(_0x16eb83([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5da4a4()):_0x16eb83([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16eb83([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16eb83([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16eb83([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ed7d3(){const _0x237d4a=[_0x16eb83([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16eb83([0x74,0x72,0x69,0x61,0x6c])][_0x16eb83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467b96[_0x16eb83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5c078d/0x3e8:0xe10*_0x25e724;return _0x467b96[_0x16eb83([0x65,0x78,0x70])]<_0x237d4a;}function _0x5b3933(){const _0x51f8d7=_0x467b96[_0x16eb83([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51f8d7&&(!!_0x51f8d7[_0x16eb83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16eb83([0x2a]))||!!_0x51f8d7[_0x16eb83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16eb83([0x45,0x49,0x53])));}function _0x4d3614(){const _0x6fa1dd=_0x467b96[_0x16eb83([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6fa1dd||0x0==_0x6fa1dd[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2785fb}=new URL(window[_0x16eb83([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6fa1dd[_0x16eb83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2785fb))return!0x0;const _0x364d3e=_0x2785fb[_0x16eb83([0x73,0x70,0x6c,0x69,0x74])](_0x16eb83([0x2e]));return _0x6fa1dd[_0x16eb83([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x248aeb=>_0x248aeb[_0x16eb83([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16eb83([0x2a])))[_0x16eb83([0x6d,0x61,0x70])](_0x27c40b=>_0x27c40b[_0x16eb83([0x73,0x70,0x6c,0x69,0x74])](_0x16eb83([0x2e])))[_0x16eb83([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c5da1=>_0x3c5da1[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x364d3e[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16eb83([0x6d,0x61,0x70])](_0x533daf=>Array(_0x364d3e[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x533daf[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16eb83([0x66,0x69,0x6c,0x6c])](_0x533daf[0x0]===_0x16eb83([0x2a])?_0x16eb83([0x2a]):'')[_0x16eb83([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x533daf))[_0x16eb83([0x73,0x6f,0x6d,0x65])](_0x1a98bf=>_0x364d3e[_0x16eb83([0x65,0x76,0x65,0x72,0x79])]((_0x154c3b,_0x545c87)=>_0x1a98bf[_0x545c87]===_0x154c3b||_0x1a98bf[_0x545c87]===_0x16eb83([0x2a])));}function _0x5da4a4(){return _0x17b564&&_0x1ad798?new window[(_0x16eb83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47bf4f,_0x338ea1)=>{_0x17b564[_0x16eb83([0x74,0x68,0x65,0x6e])](_0x47bf4f,_0x338ea1),_0x1ad798[_0x16eb83([0x74,0x68,0x65,0x6e])](_0x372247=>{_0x372247!=_0x16eb83([0x56,0x61,0x6c,0x69,0x64])&&_0x47bf4f(_0x372247);},_0x338ea1);}):_0x17b564||_0x1ad798||_0x16eb83([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b514b(_0x1e80ca,_0x2886fb){return new window[(_0x16eb83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a4193=>{if(_0x2c0343())return _0x2a4193(_0x16eb83([0x56,0x61,0x6c,0x69,0x64]));_0x1aaa17(),_0x989f97[_0x16eb83([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16eb83([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f610b=!0x1;const _0xd654cf=_0x571404();function _0x317143(_0x35265f){return!!_0x35265f&&(typeof _0x35265f===_0x16eb83([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35265f===_0x16eb83([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35265f[_0x16eb83([0x74,0x68,0x65,0x6e])]===_0x16eb83([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35265f[_0x16eb83([0x63,0x61,0x74,0x63,0x68])]===_0x16eb83([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x348bd(_0x40edb3){_0x19a776(_0x40edb3)[_0x16eb83([0x74,0x68,0x65,0x6e])](_0x497f8f=>{if(!_0x497f8f||_0x497f8f[_0x16eb83([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16eb83([0x6f,0x6b]))return _0x16eb83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x579c89(_0x33fb74(_0xd654cf+_0x2886fb))!=_0x497f8f[_0x16eb83([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16eb83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16eb83([0x56,0x61,0x6c,0x69,0x64]);})[_0x16eb83([0x74,0x68,0x65,0x6e])](_0x555d22=>(_0x267a88(),_0x555d22),()=>{const _0x33eb33=_0xaf8c53();return null==_0x33eb33?(_0x267a88(),_0x16eb83([0x56,0x61,0x6c,0x69,0x64])):_0x16eb83(_0x5c078d-_0x33eb33>(0x4b4c47fb^_0x581ebd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16eb83([0x74,0x68,0x65,0x6e])](_0x2a4193)[_0x16eb83([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a4193(_0x16eb83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13c0c7=0x6f762d7b^_0x581ebd;function _0x267a88(){const _0x3a423d=_0x16eb83([0x6c,0x6c,0x63,0x74,0x2d])+_0x579c89(_0x33fb74(_0x1e80ca)),_0x17bd46=_0x15f030(_0x579c89(window[_0x16eb83([0x4d,0x61,0x74,0x68])][_0x16eb83([0x63,0x65,0x69,0x6c])](_0x5c078d/_0x13c0c7)));window[_0x16eb83([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16eb83([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a423d,_0x17bd46);}function _0xaf8c53(){const _0x32ca43=_0x16eb83([0x6c,0x6c,0x63,0x74,0x2d])+_0x579c89(_0x33fb74(_0x1e80ca)),_0x2ed2e9=window[_0x16eb83([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16eb83([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32ca43);return _0x2ed2e9?window[_0x16eb83([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15f030(_0x2ed2e9),0x10)*_0x13c0c7:null;}function _0x19a776(_0x3b4b7a){return new window[(_0x16eb83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x341367,_0x2f853d)=>{_0x3b4b7a[_0x16eb83([0x74,0x68,0x65,0x6e])](_0x341367,_0x2f853d),window[_0x16eb83([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f853d,0x6f41173b^_0x581ebd);});}}_0x989f97[_0x16eb83([0x6f,0x6e])](_0x16eb83([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5763fe,_0x1b67a3)=>{if(_0x1b67a3[0x0]!=_0x1e80ca)return _0x2a4193(_0x16eb83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b67a3[0x1]={..._0x1b67a3[0x1],[_0x16eb83([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd654cf};},{[_0x16eb83([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16eb83([0x68,0x69,0x67,0x68])}),_0x989f97[_0x16eb83([0x6f,0x6e])](_0x16eb83([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a4fa4=>{_0x317143(_0x1a4fa4[_0x16eb83([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f610b=!0x0,_0x348bd(_0x1a4fa4[_0x16eb83([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16eb83([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16eb83([0x6c,0x6f,0x77])}),_0x4f7b90[_0x16eb83([0x74,0x68,0x65,0x6e])](()=>{_0x3f610b||_0x2a4193(_0x16eb83([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c0343(){return _0x989f97[_0x16eb83([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16eb83([0x76,0x69,0x65,0x77])][_0x16eb83([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16eb83([0x61,0x75,0x74,0x6f]);}function _0x1aaa17(){_0x989f97[_0x16eb83([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16eb83([0x76,0x69,0x65,0x77])][_0x16eb83([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16eb83([0x61,0x75,0x74,0x6f]);}}function _0x1db4ca(_0x23ebaf){const _0x2a2d0f=[new window[(_0x16eb83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1475c3=>setTimeout(_0x1475c3,0x6f49fd37^_0x581ebd)),_0x4f7b90[_0x16eb83([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16eb83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x243215=>{let _0x550313=0x0;_0x989f97[_0x16eb83([0x6d,0x6f,0x64,0x65,0x6c])][_0x16eb83([0x6f,0x6e])](_0x16eb83([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1bb670,_0x11087d)=>{_0x11087d[0x0][_0x16eb83([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x550313++,_0x550313==(0x6f40c613^_0x581ebd)&&(_0x243215(),_0x1bb670[_0x16eb83([0x6f,0x66,0x66])]());});}))];return window[_0x16eb83([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16eb83([0x72,0x61,0x63,0x65])](_0x2a2d0f)[_0x16eb83([0x74,0x68,0x65,0x6e])](()=>_0x23ebaf);}async function _0xc03d53(){await _0x4f7b90;const _0x5d324e=_0x989f97['commands'][_0x16eb83([0x67,0x65,0x74])](_0x16eb83([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x5d324e&&_0x5d324e[_0x16eb83([0x6f,0x6e])](_0x16eb83([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x238f95=>{_0x238f95['stop']();},{'priority':_0x16eb83([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x989f97[_0x16eb83([0x6d,0x6f,0x64,0x65,0x6c])][_0x16eb83([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b6f87,_0x989f97[_0x16eb83([0x6d,0x6f,0x64,0x65,0x6c])][_0x16eb83([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b6f87,_0x989f97[_0x16eb83([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16eb83([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b5ba3(_0xef22eb){const _0x156cd3=_0x4c67e5();_0x989f97[_0x156cd3]=_0x16eb83([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xef22eb,_0xef22eb!=_0x16eb83([0x56,0x61,0x6c,0x69,0x64])&&_0xc03d53();}function _0x4c67e5(){const _0x506801=window[_0x16eb83([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16eb83([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16eb83([0x6e,0x6f,0x77])]())[_0x16eb83([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16eb83([0x2e]),'');let _0x59d7ad=_0x16eb83([0x44]);for(let _0x44aefe=0x0;_0x44aefe<_0x506801[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44aefe+=0x2){let _0x4a64e0=window[_0x16eb83([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x506801[_0x16eb83([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44aefe,_0x44aefe+0x2));_0x4a64e0>=_0x171ab0[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a64e0-=_0x171ab0[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59d7ad+=_0x171ab0[_0x4a64e0];}return _0x59d7ad;}function _0xfa45d2(){const _0x36af32=_0x55370b[_0x16eb83([0x73,0x70,0x6c,0x69,0x74])](_0x16eb83([0x2e]));if(0x3!=_0x36af32[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5000d4(_0x36af32[0x1]);function _0x5000d4(_0x4bd6f4){const _0x5addbb=_0x47e930(_0x4bd6f4);return _0x5addbb&&_0x547fd7()?_0x5addbb:null;function _0x547fd7(){const _0xbfc33f=_0x5addbb[_0x16eb83([0x6a,0x74,0x69])],_0x2f0551=window[_0x16eb83([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbfc33f[_0x16eb83([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbfc33f[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30305f={..._0x5addbb,[_0x16eb83([0x6a,0x74,0x69])]:_0xbfc33f[_0x16eb83([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbfc33f[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30305f[_0x16eb83([0x76,0x63])],_0x33fb74(_0x30305f)==_0x2f0551;}}}async function _0x21e7c5(){let _0x13eeb7=!0x0;try{const _0x5a251f=_0x55370b[_0x16eb83([0x73,0x70,0x6c,0x69,0x74])](_0x16eb83([0x2e])),[_0x1712d3,_0x23efa9,_0x64a361]=_0x5a251f;return _0x299d75(_0x1712d3),await _0x4d9317(_0x1712d3,_0x23efa9,_0x64a361),_0x13eeb7;}catch{return!0x1;}function _0x299d75(_0x52eade){const _0x1a3db4=_0x47e930(_0x52eade);_0x1a3db4&&_0x1a3db4[_0x16eb83([0x61,0x6c,0x67])]==_0x16eb83([0x45,0x53,0x32,0x35,0x36])||(_0x13eeb7=!0x1);}async function _0x4d9317(_0x385575,_0x1fca0e,_0x4b6ed0){const _0x1b73ef=window[_0x16eb83([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16eb83([0x66,0x72,0x6f,0x6d])](_0x2f7695(_0x4b6ed0),_0xaed398=>_0xaed398[_0x16eb83([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21cf2d=new window[(_0x16eb83([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16eb83([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x385575+_0x16eb83([0x2e])+_0x1fca0e),_0x4d352d=window[_0x16eb83([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16eb83([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d352d)return;const _0x5d3a60=await _0x4d352d[_0x16eb83([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16eb83([0x6a,0x77,0x6b]),_0x13b5a0,{[_0x16eb83([0x6e,0x61,0x6d,0x65])]:_0x16eb83([0x45,0x43,0x44,0x53,0x41]),[_0x16eb83([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16eb83([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16eb83([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d352d[_0x16eb83([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16eb83([0x6e,0x61,0x6d,0x65])]:_0x16eb83([0x45,0x43,0x44,0x53,0x41]),[_0x16eb83([0x68,0x61,0x73,0x68])]:{[_0x16eb83([0x6e,0x61,0x6d,0x65])]:_0x16eb83([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d3a60,_0x1b73ef,_0x21cf2d)||(_0x13eeb7=!0x1);}}function _0x47e930(_0x135d48){return _0x135d48[_0x16eb83([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16eb83([0x65,0x79]))?JSON[_0x16eb83([0x70,0x61,0x72,0x73,0x65])](_0x2f7695(_0x135d48)):null;}function _0x2f7695(_0x5a3c7e){return window[_0x16eb83([0x61,0x74,0x6f,0x62])](_0x5a3c7e[_0x16eb83([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16eb83([0x2b]))[_0x16eb83([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16eb83([0x2f])));}function _0x33fb74(_0x4bf1f2){let _0x59f509=0x1505;function _0x4eb5aa(_0x1420d3){for(let _0x47bec1=0x0;_0x47bec1<_0x1420d3[_0x16eb83([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47bec1++){const _0x5e7ba2=_0x1420d3[_0x16eb83([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47bec1);_0x59f509=(_0x59f509<<0x5)+_0x59f509+_0x5e7ba2,_0x59f509&=_0x59f509;}}function _0x49a9c6(_0x59d2eb){Array[_0x16eb83([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x59d2eb)?_0x59d2eb[_0x16eb83([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49a9c6):_0x59d2eb&&typeof _0x59d2eb==_0x16eb83([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16eb83([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x59d2eb)[_0x16eb83([0x73,0x6f,0x72,0x74])]()[_0x16eb83([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28057d,_0x566a20])=>{_0x4eb5aa(_0x28057d),_0x49a9c6(_0x566a20);}):_0x4eb5aa(window[_0x16eb83([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x59d2eb));}return _0x49a9c6(_0x4bf1f2),_0x59f509>>>0x0;}function _0x579c89(_0x50c0c7){return _0x50c0c7[_0x16eb83([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16eb83([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16eb83([0x30]));}function _0x15f030(_0x2da48c){return _0x2da48c[_0x16eb83([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16eb83([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16eb83([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b6f87(){}function _0x16eb83(_0x535a5a){return _0x535a5a['map'](_0x38e1e0=>String['fromCharCode'](_0x38e1e0))['join']('');}_0x1b5ba3(await _0x202c35());}(this);}}class ExportInlineStyles extends _0x5f2772{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x27e20a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xffd29f;for(const _0x457b3c in _0x27e20a){const _0x3050e9=_0x457b3c,_0x100bb8=_0x27e20a[_0x3050e9];if('exportInlineStylesLicenseKeyValid'==_0x100bb8||'exportInlineStylesLicenseKeyInvalid'==_0x100bb8||'exportInlineStylesLicenseKeyExpired'==_0x100bb8||'exportInlineStylesLicenseKeyDomainLimit'==_0x100bb8||'exportInlineStylesLicenseKeyNotAllowed'==_0x100bb8||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x100bb8||'exportInlineStylesLicenseKeyUsageLimit'==_0x100bb8){delete _0x27e20a[_0x3050e9],_0xffd29f=_0x100bb8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0xffd29f&&_0x27e20a['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0xffd29f&&_0x27e20a['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0xffd29f&&_0x27e20a['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0xffd29f&&_0x27e20a['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0xffd29f&&_0x27e20a['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0xffd29f&&_0x27e20a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,p as dropImportantStyleSuffix};
|
|
23
|
+
import{Command as _0x1632b0,Plugin as _0x344cc0}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x222f6a,createElement as _0x5c33ed,uid as _0x13e480}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x47798b,addMarginStylesRules as _0x520b7b,addPaddingStylesRules as _0x55292e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x39f078,compare as _0x46ebed}from'specificity';function f(_0x20ece4){const _0x380430=[];let _0x217703='',_0x4ce899=0x0;for(;_0x4ce899<_0x20ece4['length'];){const _0x223002=_0x20ece4[_0x4ce899];if('('===_0x223002){const _0x403f84=y(_0x20ece4,_0x4ce899+0x1);if(-0x1===_0x403f84)return[];_0x217703+=_0x20ece4['slice'](_0x4ce899,_0x403f84+0x1),_0x4ce899=_0x403f84+0x1;}else','!==_0x223002||_0x217703['endsWith']('\x5c')?(_0x217703+=_0x223002,_0x4ce899++):(_0x380430['push'](_0x217703['trim']()),_0x217703='',_0x4ce899++);}return _0x217703['trim']()&&_0x380430['push'](_0x217703['trim']()),_0x380430['filter'](Boolean);}function y(_0x396659,_0x45c4c8){let _0x56eb35=0x1;for(let _0x3b9826=_0x45c4c8;_0x3b9826<_0x396659['length'];_0x3b9826++){const _0x342e7c=_0x396659[_0x3b9826];if('('===_0x342e7c)_0x56eb35++;else{if(')'===_0x342e7c&&(_0x56eb35--,0x0===_0x56eb35))return _0x3b9826;}}return-0x1;}function p(_0xae5516){return _0xae5516['replace'](/!\s*important/i,'')['trim']();}function w(_0x5404fd,_0x1c12ef){const _0x1d983f=new Map(),_0x173d73=_0x23f0e1=>_0x1d983f['has'](_0x23f0e1)?_0x1d983f['get'](_0x23f0e1):_0x5404fd(_0x23f0e1);for(const [_0x384e1a,_0x556c47]of _0x1c12ef['getStylesEntries']())if(_0x556c47&&_0x384e1a['startsWith']('--')){const _0x368122=d(_0x173d73,_0x556c47);_0x1d983f['set'](_0x384e1a,_0x368122),_0x1c12ef['remove'](_0x384e1a);}for(const [_0x37fee2,_0x4f97a6]of _0x1c12ef['getStylesEntries']())if(_0x4f97a6){const _0x2b09b9=d(_0x173d73,_0x4f97a6);_0x1c12ef['set'](_0x37fee2,_0x2b09b9);}return _0x1d983f;}function d(_0x37dd01,_0x554ac0){return function(_0x221e76,_0x254871){let _0x579414='',_0xc6db7b=0x0;for(;_0xc6db7b<_0x221e76['length'];){const _0x3e7f27=_0x221e76['indexOf']('var(',_0xc6db7b);if(-0x1===_0x3e7f27){_0x579414+=_0x221e76['slice'](_0xc6db7b);break;}_0x579414+=_0x221e76['slice'](_0xc6db7b,_0x3e7f27);const _0x5d83f9=_0x3e7f27+0x4,_0x516470=y(_0x221e76,_0x5d83f9);_0x579414+=_0x254871(_0x221e76['substring'](_0x5d83f9,_0x516470)),_0xc6db7b=_0x516470+0x1;}return _0x579414;}(_0x554ac0,_0x4a1df2=>{const [_0x4d8b65,_0x32d91e]=f(_0x4a1df2),_0x1027e5=_0x37dd01(_0x4d8b65);return void 0x0!==_0x1027e5?_0x1027e5:_0x32d91e?d(_0x37dd01,_0x32d91e):'var('+_0x4d8b65+')';});}async function m(_0xfa2e00){const _0x3d6b5c=[await _0x222f6a(_0xfa2e00['stylesheets']),_0xfa2e00['inlineCss']]['filter'](_0x5c45a8=>_0x5c45a8&&_0x5c45a8['length'])['join']('\x0a'),_0x2522a6=await async function(_0x43d116,_0x197e54){const _0x46e8a4=new CSSStyleSheet();return await _0x46e8a4['replace'](_0x197e54),S(Array['from'](_0x46e8a4['cssRules'])['filter'](_0x20b0e1=>_0x20b0e1 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x3fbdf6,contentCssText:_0x490f05})=>{const _0x7530c=f(_0x3fbdf6),_0x242dda=new _0x47798b(_0x43d116)['setTo'](_0x490f05);return _0x7530c['map'](_0x3c1e3e=>{const _0x530423=function(_0x1d23ce){const _0x2f6d3f=':where(';let _0x9a535c=_0x1d23ce,_0x5850c0=0x0;for(let _0x3a1327=0x0;_0x3a1327<0x64;_0x3a1327++){const _0xcdd78f=_0x9a535c['indexOf'](_0x2f6d3f,_0x5850c0);if(-0x1===_0xcdd78f)break;let _0xed1990=0x0;for(let _0x1032c7=0x0;_0x1032c7<_0xcdd78f;_0x1032c7++)'('===_0x9a535c[_0x1032c7]?_0xed1990++:')'===_0x9a535c[_0x1032c7]&&_0xed1990--;if(_0xed1990>0x0){_0x5850c0=_0xcdd78f+_0x2f6d3f['length'];continue;}let _0x356d4b=-0x1;for(let _0x4eb8f1=_0xcdd78f+_0x2f6d3f['length'],_0x329842=0x1;_0x4eb8f1<_0x9a535c['length'];_0x4eb8f1++)if('('===_0x9a535c[_0x4eb8f1]?_0x329842++:')'===_0x9a535c[_0x4eb8f1]&&_0x329842--,!_0x329842){_0x356d4b=_0x4eb8f1;break;}-0x1!==_0x356d4b?(_0x9a535c=_0x9a535c['slice'](0x0,_0xcdd78f)+_0x9a535c['slice'](_0x356d4b+0x1),_0x5850c0=_0xcdd78f):_0x5850c0=_0xcdd78f+_0x2f6d3f['length'];}return _0x9a535c['replace'](/\s+/g,'\x20')['trim']();}(_0x3c1e3e),_0x1a3eea=_0x530423?_0x39f078(_0x530423)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x242dda,'flatSelector':_0x3c1e3e,'specificity':_0x1a3eea};});})['sort']((_0x33ddfa,_0x3b0a84)=>_0x46ebed(_0x33ddfa['specificity'],_0x3b0a84['specificity']));}(_0xfa2e00['stylesProcessor'],_0x3d6b5c);return{'parsedCssRules':_0x2522a6,'rootCssVariables':function(_0x5db62d){const _0x3b7f07=new Map();for(const {stylesMap:_0x54e789,flatSelector:_0x21a2d1}of _0x5db62d){if(':root'!==_0x21a2d1)continue;const _0x2bcd51=w(_0x3b7f07['get']['bind'](_0x3b7f07),_0x54e789);for(const [_0x517786,_0x3675a7]of _0x2bcd51)_0x3b7f07['set'](_0x517786,_0x3675a7);}return _0x3b7f07;}(_0x2522a6)};}function S(_0x4f3fe8,_0x1252da=''){return _0x4f3fe8['flatMap'](_0x4f14b3=>{const {selectorText:_0x3265be,cssText:_0x2021d9,cssRules:_0x5dcf06}=_0x4f14b3;if(!_0x3265be)return[];const _0x580cc5=_0x3265be['replace'](/&/g,_0x1252da);let _0x323646=_0x2021d9['replace'](_0x3265be,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x5dcf06||!_0x5dcf06['length'])return[{'selectorText':_0x580cc5,'contentCssText':_0x323646}];for(const _0x128b39 of _0x5dcf06)_0x323646=_0x323646['replace'](_0x128b39['cssText'],'')['trim']();return[{'selectorText':_0x580cc5,'contentCssText':_0x323646},...S(Array['from'](_0x5dcf06),_0x580cc5)];});}function h(_0x31e18e,_0x551ac7){const _0x15d574=new _0x47798b(_0x31e18e);for(const _0x112347 of _0x551ac7){let _0x248800=null;if(_0x248800='string'==typeof _0x112347?new _0x47798b(_0x31e18e)['setTo'](_0x112347):_0x112347,_0x248800){for(const [_0x20db4b,_0x239b63]of _0x248800['getStylesEntries']())_0x15d574['set'](_0x20db4b,_0x239b63);}}return _0x15d574;}class ExportInlineStylesCommand extends _0x1632b0{['_stylesProcessor'];constructor(_0x159df1){super(_0x159df1),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x520b7b(this['_stylesProcessor']),_0x55292e(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x2ec0cb){const _0x3fa81a=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3fb2e1}=this['editor']['locale'],{rootName:_0x481bdf='main',dataControllerDowncastOptions:_0xbdb105={},transformations:_0x23fad3=_0x3fa81a['transformations']||[]}=_0x2ec0cb||{};this['isBusy']=!0x0,this['refresh']();const _0x558e43=this['_getRootDataHTMLFragment'](_0x481bdf,_0xbdb105),_0x21a299=_0x5c33ed(_0x558e43['ownerDocument'],'div',{'dir':_0x3fb2e1,'class':'ck-content'},[_0x558e43]);return this['_collectAndApplyStyles'](_0x23fad3,_0x21a299)['then'](()=>{const _0x146c46=function(_0x1b40e1){const _0x2cd186=_0x1b40e1['ownerDocument']['createDocumentFragment']();for(;_0x1b40e1['firstChild'];)_0x2cd186['appendChild'](_0x1b40e1['firstChild']);return _0x2cd186;}(_0x21a299),_0x360525=_0x21a299['getAttribute']('style');if(_0x360525)for(const _0x21a51b of _0x146c46['children']){const _0x127d20=_0x21a51b['getAttribute']('style'),_0x3672dc=h(this['_stylesProcessor'],[_0x360525,_0x127d20]);_0x21a51b['setAttribute']('style',x(_0x3672dc));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x146c46);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x5a33ef,_0x2afe64){const {data:_0xf18bf4,model:_0x54748e}=this['editor'],_0x4f293e=_0x54748e['document']['getRoot'](_0x5a33ef),_0xa1161b=_0xf18bf4['toView'](_0x4f293e,_0x2afe64);return _0xf18bf4['htmlProcessor']['domConverter']['viewToDom'](_0xa1161b);}async['_collectAndApplyStyles'](_0x52f0f2,_0x498727){const {stylesheets:_0x26077d,inlineCss:_0x39025e,stripCssClasses:_0x5a6916}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x787b9f,rootCssVariables:_0x25ccce}=await m({'stylesheets':_0x26077d||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x39025e}),_0x3dfb86=[];this['_processElementTree']({'transformations':_0x52f0f2,'parsedCssRules':_0x787b9f,'element':_0x498727,'stripCssClasses':_0x5a6916,'parentCSSVariablesLookup':_0x25ccce['get']['bind'](_0x25ccce),'runAfterDocumentTransformation':_0x160be2=>{_0x3dfb86['unshift'](_0x160be2);}});for(const _0x558714 of _0x3dfb86)_0x558714();}['_processElementTree']({element:_0x4a15c9,parsedCssRules:_0x5d51a6,parentCSSVariablesLookup:_0x41b719,runAfterDocumentTransformation:_0x5a266a,stripCssClasses:_0x25d7e5,transformations:_0x2907de}){const {stylesMap:_0x26cb75,localCSSVariables:_0x5b7f9f}=function(_0x172439){const _0x5f4ce7=_0x172439['element']['getAttribute']('style')||'',_0x1b96c2=_0x172439['parsedCssRules']['filter'](_0x48aa15=>_0x172439['element']['matches'](_0x48aa15['flatSelector']))['map'](_0x5b0041=>_0x5b0041['stylesMap']),_0x1179d=h(_0x172439['stylesProcessor'],[..._0x1b96c2,_0x5f4ce7]);return{'localCSSVariables':w(_0x172439['fallbackCSSVariablesLookup'],_0x1179d),'stylesMap':_0x1179d};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x41b719,'parsedCssRules':_0x5d51a6,'element':_0x4a15c9}),_0x29915f=[];for(const _0x5c6624 of _0x2907de){const _0x3d462d=_0x5c6624(_0x4a15c9,_0x26cb75,{'runAfterDocumentTransformation':_0x5a266a,'runAfterChildrenTransformation':_0x5cae76=>{_0x29915f['unshift'](_0x5cae76);}});_0x3d462d&&_0x3d462d instanceof HTMLElement&&(_0x4a15c9=_0x3d462d);}_0x26cb75['size']?_0x4a15c9['setAttribute']('style',x(_0x26cb75)):_0x4a15c9['removeAttribute']('style');const _0x3e6520=_0xa425e7=>_0x5b7f9f['has'](_0xa425e7)?_0x5b7f9f['get'](_0xa425e7):_0x41b719(_0xa425e7);for(const _0x2fab41 of _0x4a15c9['children'])_0x2fab41 instanceof HTMLElement&&this['_processElementTree']({'element':_0x2fab41,'parsedCssRules':_0x5d51a6,'stripCssClasses':_0x25d7e5,'transformations':_0x2907de,'parentCSSVariablesLookup':_0x3e6520,'runAfterDocumentTransformation':_0x5a266a});_0x25d7e5&&_0x4a15c9['removeAttribute']('class');for(const _0x1ead74 of _0x29915f)_0x1ead74();}}function x(_0x5a3a51){return _0x5a3a51['getStylesEntries']()['map'](_0x14ff50=>_0x14ff50['join'](':'))['join'](';')+';';}class ExportInlineStylesEditing extends _0x344cc0{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 ExportInlineStylesCommand(this['editor']));}['afterInit'](){!async function(_0x30f138){const _0x4cc47a=_0xd03658([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x4a5f24=0x6f40c3fb,_0x2f0c7b=0x6f47488b^_0x4a5f24,_0x213454=window[_0xd03658([0x44,0x61,0x74,0x65])][_0xd03658([0x6e,0x6f,0x77])](),_0x4232c6=_0x30f138[_0xd03658([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x571ba7=new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3316a2=>{_0x4232c6[_0xd03658([0x6f,0x6e,0x63,0x65])](_0xd03658([0x72,0x65,0x61,0x64,0x79]),_0x3316a2);}),_0x235014={[_0xd03658([0x6b,0x74,0x79])]:_0xd03658([0x45,0x43]),[_0xd03658([0x75,0x73,0x65])]:_0xd03658([0x73,0x69,0x67]),[_0xd03658([0x63,0x72,0x76])]:_0xd03658([0x50,0x2d,0x32,0x35,0x36]),[_0xd03658([0x78])]:_0xd03658([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]),[_0xd03658([0x79])]:_0xd03658([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]),[_0xd03658([0x61,0x6c,0x67])]:_0xd03658([0x45,0x53,0x32,0x35,0x36])},_0x21c2ee=_0x4232c6[_0xd03658([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd03658([0x67,0x65,0x74])](_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51cb02(){let _0x2b90e0,_0x2cc83a=null,_0xed7e97=null;try{if(_0x21c2ee==_0xd03658([0x47,0x50,0x4c]))return _0xd03658([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b90e0=_0x104221(),!_0x2b90e0)return _0xd03658([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b90e0[_0xd03658([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xed7e97=_0x4e58ff(_0x2b90e0[_0xd03658([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b90e0[_0xd03658([0x6a,0x74,0x69])])),await _0x1e01c8()?_0x2caf18()?_0x66635e()?_0xd03658([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50f354()?(_0x2b90e0[_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd03658([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2cc83a=_0x518ed1(_0xd03658([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x264fd5()):_0xd03658([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd03658([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd03658([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd03658([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x66635e(){const _0x5f2991=[_0xd03658([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd03658([0x74,0x72,0x69,0x61,0x6c])][_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b90e0[_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x213454/0x3e8:0xe10*_0x2f0c7b;return _0x2b90e0[_0xd03658([0x65,0x78,0x70])]<_0x5f2991;}function _0x2caf18(){const _0x4296f9=_0x2b90e0[_0xd03658([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4296f9&&(!!_0x4296f9[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd03658([0x2a]))||!!_0x4296f9[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd03658([0x45,0x49,0x53])));}function _0x50f354(){const _0x4b6d43=_0x2b90e0[_0xd03658([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b6d43||0x0==_0x4b6d43[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a6da4}=new URL(window[_0xd03658([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b6d43[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a6da4))return!0x0;const _0x2a62a7=_0x1a6da4[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e]));return _0x4b6d43[_0xd03658([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c16c2=>_0x5c16c2[_0xd03658([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd03658([0x2a])))[_0xd03658([0x6d,0x61,0x70])](_0x30a951=>_0x30a951[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e])))[_0xd03658([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7cc0d4=>_0x7cc0d4[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a62a7[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd03658([0x6d,0x61,0x70])](_0x4c2f27=>Array(_0x2a62a7[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c2f27[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd03658([0x66,0x69,0x6c,0x6c])](_0x4c2f27[0x0]===_0xd03658([0x2a])?_0xd03658([0x2a]):'')[_0xd03658([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c2f27))[_0xd03658([0x73,0x6f,0x6d,0x65])](_0x34b337=>_0x2a62a7[_0xd03658([0x65,0x76,0x65,0x72,0x79])]((_0xfb09ab,_0x37e271)=>_0x34b337[_0x37e271]===_0xfb09ab||_0x34b337[_0x37e271]===_0xd03658([0x2a])));}function _0x264fd5(){return _0x2cc83a&&_0xed7e97?new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e3cff,_0x5f2ad5)=>{_0x2cc83a[_0xd03658([0x74,0x68,0x65,0x6e])](_0x5e3cff,_0x5f2ad5),_0xed7e97[_0xd03658([0x74,0x68,0x65,0x6e])](_0x2b70df=>{_0x2b70df!=_0xd03658([0x56,0x61,0x6c,0x69,0x64])&&_0x5e3cff(_0x2b70df);},_0x5f2ad5);}):_0x2cc83a||_0xed7e97||_0xd03658([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e58ff(_0x25ed74,_0x119d95){return new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7500=>{if(_0x203bf0())return _0x1c7500(_0xd03658([0x56,0x61,0x6c,0x69,0x64]));_0x17c5d0(),_0x4232c6[_0xd03658([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd03658([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x345058=!0x1;const _0x28ffea=_0x13e480();function _0x578931(_0x1e27b2){return!!_0x1e27b2&&(typeof _0x1e27b2===_0xd03658([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e27b2===_0xd03658([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e27b2[_0xd03658([0x74,0x68,0x65,0x6e])]===_0xd03658([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e27b2[_0xd03658([0x63,0x61,0x74,0x63,0x68])]===_0xd03658([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x58f155(_0x1f371b){_0x1671df(_0x1f371b)[_0xd03658([0x74,0x68,0x65,0x6e])](_0x15cbb7=>{if(!_0x15cbb7||_0x15cbb7[_0xd03658([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd03658([0x6f,0x6b]))return _0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x243b3e(_0x10f279(_0x28ffea+_0x119d95))!=_0x15cbb7[_0xd03658([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd03658([0x56,0x61,0x6c,0x69,0x64]);})[_0xd03658([0x74,0x68,0x65,0x6e])](_0x2a11cc=>(_0x58961f(),_0x2a11cc),()=>{const _0x56f2de=_0x5b377b();return null==_0x56f2de?(_0x58961f(),_0xd03658([0x56,0x61,0x6c,0x69,0x64])):_0xd03658(_0x213454-_0x56f2de>(0x4b4c47fb^_0x4a5f24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd03658([0x74,0x68,0x65,0x6e])](_0x1c7500)[_0xd03658([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c7500(_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49289c=0x6f762d7b^_0x4a5f24;function _0x58961f(){const _0xb3cdf0=_0xd03658([0x6c,0x6c,0x63,0x74,0x2d])+_0x243b3e(_0x10f279(_0x25ed74)),_0x2b4eee=_0x12bda9(_0x243b3e(window[_0xd03658([0x4d,0x61,0x74,0x68])][_0xd03658([0x63,0x65,0x69,0x6c])](_0x213454/_0x49289c)));window[_0xd03658([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd03658([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb3cdf0,_0x2b4eee);}function _0x5b377b(){const _0x16ac8a=_0xd03658([0x6c,0x6c,0x63,0x74,0x2d])+_0x243b3e(_0x10f279(_0x25ed74)),_0x1d981e=window[_0xd03658([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd03658([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16ac8a);return _0x1d981e?window[_0xd03658([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12bda9(_0x1d981e),0x10)*_0x49289c:null;}function _0x1671df(_0x55db3f){return new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26eb45,_0x47eaaa)=>{_0x55db3f[_0xd03658([0x74,0x68,0x65,0x6e])](_0x26eb45,_0x47eaaa),window[_0xd03658([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47eaaa,0x6f41173b^_0x4a5f24);});}}_0x4232c6[_0xd03658([0x6f,0x6e])](_0xd03658([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x75ddeb,_0x31c511)=>{if(_0x31c511[0x0]!=_0x25ed74)return _0x1c7500(_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31c511[0x1]={..._0x31c511[0x1],[_0xd03658([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28ffea};},{[_0xd03658([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd03658([0x68,0x69,0x67,0x68])}),_0x4232c6[_0xd03658([0x6f,0x6e])](_0xd03658([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6b8d36=>{_0x578931(_0x6b8d36[_0xd03658([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x345058=!0x0,_0x58f155(_0x6b8d36[_0xd03658([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd03658([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd03658([0x6c,0x6f,0x77])}),_0x571ba7[_0xd03658([0x74,0x68,0x65,0x6e])](()=>{_0x345058||_0x1c7500(_0xd03658([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x203bf0(){return _0x4232c6[_0xd03658([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd03658([0x76,0x69,0x65,0x77])][_0xd03658([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd03658([0x61,0x75,0x74,0x6f]);}function _0x17c5d0(){_0x4232c6[_0xd03658([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd03658([0x76,0x69,0x65,0x77])][_0xd03658([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd03658([0x61,0x75,0x74,0x6f]);}}function _0x518ed1(_0x46e310){const _0x5d23c6=[new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202943=>setTimeout(_0x202943,0x6f49fd37^_0x4a5f24)),_0x571ba7[_0xd03658([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x257224=>{let _0x168616=0x0;_0x4232c6[_0xd03658([0x6d,0x6f,0x64,0x65,0x6c])][_0xd03658([0x6f,0x6e])](_0xd03658([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ae678,_0x336efd)=>{_0x336efd[0x0][_0xd03658([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x168616++,_0x168616==(0x6f40c613^_0x4a5f24)&&(_0x257224(),_0x4ae678[_0xd03658([0x6f,0x66,0x66])]());});}))];return window[_0xd03658([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd03658([0x72,0x61,0x63,0x65])](_0x5d23c6)[_0xd03658([0x74,0x68,0x65,0x6e])](()=>_0x46e310);}async function _0x229872(){await _0x571ba7;const _0x9ceff6=_0x4232c6['commands'][_0xd03658([0x67,0x65,0x74])](_0xd03658([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x9ceff6&&_0x9ceff6[_0xd03658([0x6f,0x6e])](_0xd03658([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x1d8d08=>{_0x1d8d08['stop']();},{'priority':_0xd03658([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x4232c6[_0xd03658([0x6d,0x6f,0x64,0x65,0x6c])][_0xd03658([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3158cd,_0x4232c6[_0xd03658([0x6d,0x6f,0x64,0x65,0x6c])][_0xd03658([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3158cd,_0x4232c6[_0xd03658([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd03658([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x68ff9d(_0x34e605){const _0x771952=_0x78ccc3();_0x4232c6[_0x771952]=_0xd03658([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x34e605,_0x34e605!=_0xd03658([0x56,0x61,0x6c,0x69,0x64])&&_0x229872();}function _0x78ccc3(){const _0x425211=window[_0xd03658([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd03658([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd03658([0x6e,0x6f,0x77])]())[_0xd03658([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd03658([0x2e]),'');let _0x56f1f9=_0xd03658([0x44]);for(let _0x4dcd7b=0x0;_0x4dcd7b<_0x425211[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dcd7b+=0x2){let _0x3bccef=window[_0xd03658([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x425211[_0xd03658([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dcd7b,_0x4dcd7b+0x2));_0x3bccef>=_0x4cc47a[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bccef-=_0x4cc47a[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56f1f9+=_0x4cc47a[_0x3bccef];}return _0x56f1f9;}function _0x104221(){const _0x213e2e=_0x21c2ee[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e]));if(0x3!=_0x213e2e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a90d(_0x213e2e[0x1]);function _0x16a90d(_0x500860){const _0x3999aa=_0x4a91cc(_0x500860);return _0x3999aa&&_0x581caa()?_0x3999aa:null;function _0x581caa(){const _0x3e722e=_0x3999aa[_0xd03658([0x6a,0x74,0x69])],_0x1727f6=window[_0xd03658([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e722e[_0xd03658([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e722e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x305379={..._0x3999aa,[_0xd03658([0x6a,0x74,0x69])]:_0x3e722e[_0xd03658([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e722e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x305379[_0xd03658([0x76,0x63])],_0x10f279(_0x305379)==_0x1727f6;}}}async function _0x1e01c8(){let _0x40d624=!0x0;try{const _0x30a222=_0x21c2ee[_0xd03658([0x73,0x70,0x6c,0x69,0x74])](_0xd03658([0x2e])),[_0x898f5a,_0x197a2b,_0x172eab]=_0x30a222;return _0x5d345e(_0x898f5a),await _0x220552(_0x898f5a,_0x197a2b,_0x172eab),_0x40d624;}catch{return!0x1;}function _0x5d345e(_0x334fe6){const _0x53be0e=_0x4a91cc(_0x334fe6);_0x53be0e&&_0x53be0e[_0xd03658([0x61,0x6c,0x67])]==_0xd03658([0x45,0x53,0x32,0x35,0x36])||(_0x40d624=!0x1);}async function _0x220552(_0x3676e2,_0x58d206,_0x12bf58){const _0x21069b=window[_0xd03658([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd03658([0x66,0x72,0x6f,0x6d])](_0x197867(_0x12bf58),_0xd23ab8=>_0xd23ab8[_0xd03658([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5af187=new window[(_0xd03658([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd03658([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3676e2+_0xd03658([0x2e])+_0x58d206),_0x1b4e12=window[_0xd03658([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd03658([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b4e12)return;const _0x1058c5=await _0x1b4e12[_0xd03658([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd03658([0x6a,0x77,0x6b]),_0x235014,{[_0xd03658([0x6e,0x61,0x6d,0x65])]:_0xd03658([0x45,0x43,0x44,0x53,0x41]),[_0xd03658([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd03658([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd03658([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b4e12[_0xd03658([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd03658([0x6e,0x61,0x6d,0x65])]:_0xd03658([0x45,0x43,0x44,0x53,0x41]),[_0xd03658([0x68,0x61,0x73,0x68])]:{[_0xd03658([0x6e,0x61,0x6d,0x65])]:_0xd03658([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1058c5,_0x21069b,_0x5af187)||(_0x40d624=!0x1);}}function _0x4a91cc(_0x186462){return _0x186462[_0xd03658([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd03658([0x65,0x79]))?JSON[_0xd03658([0x70,0x61,0x72,0x73,0x65])](_0x197867(_0x186462)):null;}function _0x197867(_0x3804b6){return window[_0xd03658([0x61,0x74,0x6f,0x62])](_0x3804b6[_0xd03658([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd03658([0x2b]))[_0xd03658([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd03658([0x2f])));}function _0x10f279(_0x11522e){let _0x4eab85=0x1505;function _0x5cfc4c(_0x52809e){for(let _0x19bf17=0x0;_0x19bf17<_0x52809e[_0xd03658([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19bf17++){const _0x17896f=_0x52809e[_0xd03658([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19bf17);_0x4eab85=(_0x4eab85<<0x5)+_0x4eab85+_0x17896f,_0x4eab85&=_0x4eab85;}}function _0x4c58a3(_0x1e76f6){Array[_0xd03658([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e76f6)?_0x1e76f6[_0xd03658([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c58a3):_0x1e76f6&&typeof _0x1e76f6==_0xd03658([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd03658([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e76f6)[_0xd03658([0x73,0x6f,0x72,0x74])]()[_0xd03658([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17d117,_0x4ecabc])=>{_0x5cfc4c(_0x17d117),_0x4c58a3(_0x4ecabc);}):_0x5cfc4c(window[_0xd03658([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e76f6));}return _0x4c58a3(_0x11522e),_0x4eab85>>>0x0;}function _0x243b3e(_0x383506){return _0x383506[_0xd03658([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd03658([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd03658([0x30]));}function _0x12bda9(_0x4270cb){return _0x4270cb[_0xd03658([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd03658([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd03658([0x6a,0x6f,0x69,0x6e])]('');}function _0x3158cd(){}function _0xd03658(_0x5cacc3){return _0x5cacc3['map'](_0x10bcd1=>String['fromCharCode'](_0x10bcd1))['join']('');}_0x68ff9d(await _0x51cb02());}(this);}}class ExportInlineStyles extends _0x344cc0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f8e9f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd810b5;for(const _0x31fab1 in _0x1f8e9f){const _0x48401f=_0x31fab1,_0x16d8bf=_0x1f8e9f[_0x48401f];if('exportInlineStylesLicenseKeyValid'==_0x16d8bf||'exportInlineStylesLicenseKeyInvalid'==_0x16d8bf||'exportInlineStylesLicenseKeyExpired'==_0x16d8bf||'exportInlineStylesLicenseKeyDomainLimit'==_0x16d8bf||'exportInlineStylesLicenseKeyNotAllowed'==_0x16d8bf||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x16d8bf||'exportInlineStylesLicenseKeyUsageLimit'==_0x16d8bf){delete _0x1f8e9f[_0x48401f],_0xd810b5=_0x16d8bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0xd810b5&&_0x1f8e9f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,p as dropImportantStyleSuffix};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-inline-styles",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.2",
|
|
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.2.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
37
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.2",
|
|
39
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.2",
|
|
40
40
|
"specificity": "0.4.1"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|