UNPKG

@ckeditor/ckeditor5-export-inline-styles

Version:

The export with inline styles feature for CKEditor 5.

23 lines 3.54 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ (function(_0x431682,_0x3e37e7){const _0x8f23ce=_0x3e31,_0xa1126c=_0x431682();while(!![]){try{const _0x20d03f=parseInt(_0x8f23ce(0x73))/0x1*(parseInt(_0x8f23ce(0x77))/0x2)+-parseInt(_0x8f23ce(0x72))/0x3+-parseInt(_0x8f23ce(0x81))/0x4*(parseInt(_0x8f23ce(0x82))/0x5)+-parseInt(_0x8f23ce(0x7b))/0x6+parseInt(_0x8f23ce(0x75))/0x7*(-parseInt(_0x8f23ce(0x76))/0x8)+parseInt(_0x8f23ce(0x7c))/0x9*(-parseInt(_0x8f23ce(0x7f))/0xa)+-parseInt(_0x8f23ce(0x80))/0xb*(-parseInt(_0x8f23ce(0x7d))/0xc);if(_0x20d03f===_0x3e37e7)break;else _0xa1126c['push'](_0xa1126c['shift']());}catch(_0x36d2d1){_0xa1126c['push'](_0xa1126c['shift']());}}}(_0xa3bc,0xe32b2));export function splitByTopLevelComma(_0x14d6fe){const _0x26a5c3=_0x3e31,_0x27967d=[];let _0x3c367d='',_0xb1e4e5=0x0;for(;_0xb1e4e5<_0x14d6fe[_0x26a5c3(0x7e)];){const _0x317427=_0x14d6fe[_0xb1e4e5];if('('===_0x317427){const _0x1518a0=findMatchingParenthesis(_0x14d6fe,_0xb1e4e5+0x1);if(-0x1===_0x1518a0)return[];_0x3c367d+=_0x14d6fe[_0x26a5c3(0x79)](_0xb1e4e5,_0x1518a0+0x1),_0xb1e4e5=_0x1518a0+0x1;}else','!==_0x317427||_0x3c367d[_0x26a5c3(0x83)]('\x5c')?(_0x3c367d+=_0x317427,_0xb1e4e5++):(_0x27967d[_0x26a5c3(0x71)](_0x3c367d[_0x26a5c3(0x7a)]()),_0x3c367d='',_0xb1e4e5++);}return _0x3c367d[_0x26a5c3(0x7a)]()&&_0x27967d[_0x26a5c3(0x71)](_0x3c367d[_0x26a5c3(0x7a)]()),_0x27967d[_0x26a5c3(0x74)](Boolean);}export function findMatchingParenthesis(_0x2d55d1,_0x4cc491){const _0x3ba715=_0x3e31;let _0x574e24=0x1;for(let _0x12ad6e=_0x4cc491;_0x12ad6e<_0x2d55d1[_0x3ba715(0x7e)];_0x12ad6e++){const _0x216dba=_0x2d55d1[_0x12ad6e];if('('===_0x216dba)_0x574e24++;else{if(')'===_0x216dba&&(_0x574e24--,0x0===_0x574e24))return _0x12ad6e;}}return-0x1;}export function dropImportantStyleSuffix(_0x5f2999){const _0xbc28da=_0x3e31;return _0x5f2999[_0xbc28da(0x78)](/!\s*important/i,'')[_0xbc28da(0x7a)]();}function _0x3e31(_0x181db0,_0x5ef6cf){const _0xa3bcb5=_0xa3bc();return _0x3e31=function(_0x3e310d,_0x3db1ae){_0x3e310d=_0x3e310d-0x71;let _0x12a64a=_0xa3bcb5[_0x3e310d];return _0x12a64a;},_0x3e31(_0x181db0,_0x5ef6cf);}function _0xa3bc(){const _0x3414ed=['8alZvsE','2qicTQc','replace','slice','trim','3691116OpwJGt','36cUaMmz','24WCOeqX','length','2758130KSHqkN','24342362ovPUov','8EitIHC','2758160KsvxmQ','endsWith','push','1879728kIwaWh','56957LzodMa','filter','728567cGUpgs'];_0xa3bc=function(){return _0x3414ed;};return _0xa3bc();}