@ckeditor/ckeditor5-pagination 48.2.0-alpha.3 → 48.2.0-alpha.5
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 +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x44fdfd}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x41a91,InputNumberView as _0x1bc61a,ButtonView as _0x2a23ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x44f15e,global as _0x552ed4,Rect as _0x24b953,uid as _0x44a321,toUnit as _0x358341,first as _0x5f4031,env as _0x3b37a0,ResizeObserver as _0x24af82,keyCodes as _0x59b412}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1c92a6}from'es-toolkit/compat';import{IconArrowDown as _0x1b811f,IconArrowUp as _0x4453dc}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x44fdfd{['_recalculatePageBreaksDebounced']=_0x1c92a6(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x44f15e('pagination-config-not-found',this['editor']['config']);const _0xf75133=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0xf75133),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x1ad301,_0x3d36b1,_0x40e23e)=>{_0x40e23e&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x283ffc){const _0x2ab99c=_0x398689([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x3c07c1=0xc82cb1e,_0x36776d=0xc854096^_0x3c07c1,_0x5af91a=window[_0x398689([0x44,0x61,0x74,0x65])][_0x398689([0x6e,0x6f,0x77])](),_0x2c458f=_0x283ffc[_0x398689([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6b17c7=new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57d1dd=>{_0x2c458f[_0x398689([0x6f,0x6e,0x63,0x65])](_0x398689([0x72,0x65,0x61,0x64,0x79]),_0x57d1dd);}),_0x248d35={[_0x398689([0x6b,0x74,0x79])]:_0x398689([0x45,0x43]),[_0x398689([0x75,0x73,0x65])]:_0x398689([0x73,0x69,0x67]),[_0x398689([0x63,0x72,0x76])]:_0x398689([0x50,0x2d,0x32,0x35,0x36]),[_0x398689([0x78])]:_0x398689([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]),[_0x398689([0x79])]:_0x398689([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]),[_0x398689([0x61,0x6c,0x67])]:_0x398689([0x45,0x53,0x32,0x35,0x36])},_0x2a1d2c=_0x2c458f[_0x398689([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x398689([0x67,0x65,0x74])](_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c0177(){let _0x12ccb3,_0x2e2504=null,_0x3cf97f=null;try{if(_0x2a1d2c==_0x398689([0x47,0x50,0x4c]))return _0x398689([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12ccb3=_0x1c073a(),!_0x12ccb3)return _0x398689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12ccb3[_0x398689([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cf97f=_0x3aebf8(_0x12ccb3[_0x398689([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12ccb3[_0x398689([0x6a,0x74,0x69])])),await _0x12ed47()?_0x2788fb()?_0x13c0a7()?_0x398689([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d4b5c()?(_0x12ccb3[_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x398689([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e2504=_0x140a07(_0x398689([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26a6fe()):_0x398689([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x398689([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x398689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x398689([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13c0a7(){const _0x3cc4ec=[_0x398689([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x398689([0x74,0x72,0x69,0x61,0x6c])][_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12ccb3[_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5af91a/0x3e8:0xe10*_0x36776d;return _0x12ccb3[_0x398689([0x65,0x78,0x70])]<_0x3cc4ec;}function _0x2788fb(){const _0x4591cc=_0x12ccb3[_0x398689([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4591cc&&(!!_0x4591cc[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398689([0x2a]))||!!_0x4591cc[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398689([0x50,0x41,0x47])));}function _0x3d4b5c(){const _0x58c71b=_0x12ccb3[_0x398689([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58c71b||0x0==_0x58c71b[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xddfadf}=new URL(window[_0x398689([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58c71b[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xddfadf))return!0x0;const _0x1fc328=_0xddfadf[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e]));return _0x58c71b[_0x398689([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f90a3=>_0x1f90a3[_0x398689([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x398689([0x2a])))[_0x398689([0x6d,0x61,0x70])](_0x4783ba=>_0x4783ba[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e])))[_0x398689([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x65f83=>_0x65f83[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fc328[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x398689([0x6d,0x61,0x70])](_0x5081af=>Array(_0x1fc328[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5081af[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x398689([0x66,0x69,0x6c,0x6c])](_0x5081af[0x0]===_0x398689([0x2a])?_0x398689([0x2a]):'')[_0x398689([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5081af))[_0x398689([0x73,0x6f,0x6d,0x65])](_0x460116=>_0x1fc328[_0x398689([0x65,0x76,0x65,0x72,0x79])]((_0x2bdafd,_0xdfea3b)=>_0x460116[_0xdfea3b]===_0x2bdafd||_0x460116[_0xdfea3b]===_0x398689([0x2a])));}function _0x26a6fe(){return _0x2e2504&&_0x3cf97f?new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19f6b1,_0xa269f8)=>{_0x2e2504[_0x398689([0x74,0x68,0x65,0x6e])](_0x19f6b1,_0xa269f8),_0x3cf97f[_0x398689([0x74,0x68,0x65,0x6e])](_0x1d9f99=>{_0x1d9f99!=_0x398689([0x56,0x61,0x6c,0x69,0x64])&&_0x19f6b1(_0x1d9f99);},_0xa269f8);}):_0x2e2504||_0x3cf97f||_0x398689([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3aebf8(_0x33b560,_0x34d2f6){return new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5984e2=>{if(_0x592564())return _0x5984e2(_0x398689([0x56,0x61,0x6c,0x69,0x64]));_0xae88eb(),_0x2c458f[_0x398689([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x398689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf73bfd=!0x1;const _0x4c4b2c=_0x44a321();function _0x4b6de7(_0x40df30){return!!_0x40df30&&(typeof _0x40df30===_0x398689([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40df30===_0x398689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40df30[_0x398689([0x74,0x68,0x65,0x6e])]===_0x398689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40df30[_0x398689([0x63,0x61,0x74,0x63,0x68])]===_0x398689([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x119599(_0x1dadf8){_0x1c431d(_0x1dadf8)[_0x398689([0x74,0x68,0x65,0x6e])](_0x63afbe=>{if(!_0x63afbe||_0x63afbe[_0x398689([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x398689([0x6f,0x6b]))return _0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b820b(_0x3002d0(_0x4c4b2c+_0x34d2f6))!=_0x63afbe[_0x398689([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x398689([0x56,0x61,0x6c,0x69,0x64]);})[_0x398689([0x74,0x68,0x65,0x6e])](_0x306ce4=>(_0x15665a(),_0x306ce4),()=>{const _0x3b4db8=_0x262c52();return null==_0x3b4db8?(_0x15665a(),_0x398689([0x56,0x61,0x6c,0x69,0x64])):_0x398689(_0x5af91a-_0x3b4db8>(0x288e4f1e^_0x3c07c1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x398689([0x74,0x68,0x65,0x6e])](_0x5984e2)[_0x398689([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5984e2(_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ce025=0xcb4259e^_0x3c07c1;function _0x15665a(){const _0x1dc342=_0x398689([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b820b(_0x3002d0(_0x33b560)),_0x373d27=_0x5aed4b(_0x1b820b(window[_0x398689([0x4d,0x61,0x74,0x68])][_0x398689([0x63,0x65,0x69,0x6c])](_0x5af91a/_0x2ce025)));window[_0x398689([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x398689([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dc342,_0x373d27);}function _0x262c52(){const _0x4374be=_0x398689([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b820b(_0x3002d0(_0x33b560)),_0x25269c=window[_0x398689([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x398689([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4374be);return _0x25269c?window[_0x398689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5aed4b(_0x25269c),0x10)*_0x2ce025:null;}function _0x1c431d(_0xb06952){return new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1184ef,_0x33a06f)=>{_0xb06952[_0x398689([0x74,0x68,0x65,0x6e])](_0x1184ef,_0x33a06f),window[_0x398689([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33a06f,0xc831fde^_0x3c07c1);});}}_0x2c458f[_0x398689([0x6f,0x6e])](_0x398689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1adf7c,_0x159488)=>{if(_0x159488[0x0]!=_0x33b560)return _0x5984e2(_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x159488[0x1]={..._0x159488[0x1],[_0x398689([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c4b2c};},{[_0x398689([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x398689([0x68,0x69,0x67,0x68])}),_0x2c458f[_0x398689([0x6f,0x6e])](_0x398689([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4843c5=>{_0x4b6de7(_0x4843c5[_0x398689([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf73bfd=!0x0,_0x119599(_0x4843c5[_0x398689([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x398689([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x398689([0x6c,0x6f,0x77])}),_0x6b17c7[_0x398689([0x74,0x68,0x65,0x6e])](()=>{_0xf73bfd||_0x5984e2(_0x398689([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x592564(){return _0x2c458f[_0x398689([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x398689([0x76,0x69,0x65,0x77])][_0x398689([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x398689([0x61,0x75,0x74,0x6f]);}function _0xae88eb(){_0x2c458f[_0x398689([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x398689([0x76,0x69,0x65,0x77])][_0x398689([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x398689([0x61,0x75,0x74,0x6f]);}}function _0x140a07(_0x3b2782){const _0x33a432=[new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388c88=>setTimeout(_0x388c88,0xc8bf5d2^_0x3c07c1)),_0x6b17c7[_0x398689([0x74,0x68,0x65,0x6e])](()=>new window[(_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4dee=>{let _0x5bb02a=0x0;_0x2c458f[_0x398689([0x6d,0x6f,0x64,0x65,0x6c])][_0x398689([0x6f,0x6e])](_0x398689([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x108f43,_0x471ea6)=>{_0x471ea6[0x0][_0x398689([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bb02a++,_0x5bb02a==(0xc82cef6^_0x3c07c1)&&(_0x5e4dee(),_0x108f43[_0x398689([0x6f,0x66,0x66])]());});}))];return window[_0x398689([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x398689([0x72,0x61,0x63,0x65])](_0x33a432)[_0x398689([0x74,0x68,0x65,0x6e])](()=>_0x3b2782);}async function _0x3cdcc1(){await _0x6b17c7,_0x2c458f[_0x398689([0x6d,0x6f,0x64,0x65,0x6c])][_0x398689([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x450c3e,_0x2c458f[_0x398689([0x6d,0x6f,0x64,0x65,0x6c])][_0x398689([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x450c3e,_0x2c458f[_0x398689([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x398689([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1df052(_0x3e8730){const _0x49b705=_0x416bd2();_0x2c458f[_0x49b705]=_0x398689([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e8730,_0x3e8730!=_0x398689([0x56,0x61,0x6c,0x69,0x64])&&_0x3cdcc1();}function _0x416bd2(){const _0x4fe349=window[_0x398689([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x398689([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x398689([0x6e,0x6f,0x77])]())[_0x398689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x398689([0x2e]),'');let _0x2ea9ab=_0x398689([0x49]);for(let _0x151b13=0x0;_0x151b13<_0x4fe349[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x151b13+=0x2){let _0x182d38=window[_0x398689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe349[_0x398689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x151b13,_0x151b13+0x2));_0x182d38>=_0x2ab99c[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x182d38-=_0x2ab99c[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ea9ab+=_0x2ab99c[_0x182d38];}return _0x2ea9ab;}function _0x1c073a(){const _0x5aeb47=_0x2a1d2c[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e]));if(0x3!=_0x5aeb47[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e7481(_0x5aeb47[0x1]);function _0x4e7481(_0x2f9622){const _0x7637cb=_0x3fa372(_0x2f9622);return _0x7637cb&&_0x212a7a()?_0x7637cb:null;function _0x212a7a(){const _0x5fd950=_0x7637cb[_0x398689([0x6a,0x74,0x69])],_0x543c67=window[_0x398689([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5fd950[_0x398689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5fd950[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2294fb={..._0x7637cb,[_0x398689([0x6a,0x74,0x69])]:_0x5fd950[_0x398689([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5fd950[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2294fb[_0x398689([0x76,0x63])],_0x3002d0(_0x2294fb)==_0x543c67;}}}async function _0x12ed47(){let _0x2b81df=!0x0;try{const _0x4080a0=_0x2a1d2c[_0x398689([0x73,0x70,0x6c,0x69,0x74])](_0x398689([0x2e])),[_0x4c75b9,_0x47adc6,_0x3dc630]=_0x4080a0;return _0x3d38d2(_0x4c75b9),await _0x426656(_0x4c75b9,_0x47adc6,_0x3dc630),_0x2b81df;}catch{return!0x1;}function _0x3d38d2(_0x3cc017){const _0x5cbc8c=_0x3fa372(_0x3cc017);_0x5cbc8c&&_0x5cbc8c[_0x398689([0x61,0x6c,0x67])]==_0x398689([0x45,0x53,0x32,0x35,0x36])||(_0x2b81df=!0x1);}async function _0x426656(_0x4e7ce8,_0x144c4c,_0x4da914){const _0x38b435=window[_0x398689([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x398689([0x66,0x72,0x6f,0x6d])](_0x5b7499(_0x4da914),_0x15e9ed=>_0x15e9ed[_0x398689([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55ec24=new window[(_0x398689([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x398689([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e7ce8+_0x398689([0x2e])+_0x144c4c),_0x4f0060=window[_0x398689([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x398689([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f0060)return;const _0x3a91ae=await _0x4f0060[_0x398689([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x398689([0x6a,0x77,0x6b]),_0x248d35,{[_0x398689([0x6e,0x61,0x6d,0x65])]:_0x398689([0x45,0x43,0x44,0x53,0x41]),[_0x398689([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x398689([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x398689([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f0060[_0x398689([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x398689([0x6e,0x61,0x6d,0x65])]:_0x398689([0x45,0x43,0x44,0x53,0x41]),[_0x398689([0x68,0x61,0x73,0x68])]:{[_0x398689([0x6e,0x61,0x6d,0x65])]:_0x398689([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a91ae,_0x38b435,_0x55ec24)||(_0x2b81df=!0x1);}}function _0x3fa372(_0x4f4b2b){return _0x4f4b2b[_0x398689([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x398689([0x65,0x79]))?JSON[_0x398689([0x70,0x61,0x72,0x73,0x65])](_0x5b7499(_0x4f4b2b)):null;}function _0x5b7499(_0x175d95){return window[_0x398689([0x61,0x74,0x6f,0x62])](_0x175d95[_0x398689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x398689([0x2b]))[_0x398689([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x398689([0x2f])));}function _0x3002d0(_0x536fbb){let _0x194afa=0x1505;function _0x46009f(_0x171818){for(let _0x1900c9=0x0;_0x1900c9<_0x171818[_0x398689([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1900c9++){const _0x8250f4=_0x171818[_0x398689([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1900c9);_0x194afa=(_0x194afa<<0x5)+_0x194afa+_0x8250f4,_0x194afa&=_0x194afa;}}function _0x3e9d67(_0x44fca2){Array[_0x398689([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44fca2)?_0x44fca2[_0x398689([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e9d67):_0x44fca2&&typeof _0x44fca2==_0x398689([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x398689([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44fca2)[_0x398689([0x73,0x6f,0x72,0x74])]()[_0x398689([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x328429,_0x3f6c18])=>{_0x46009f(_0x328429),_0x3e9d67(_0x3f6c18);}):_0x46009f(window[_0x398689([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44fca2));}return _0x3e9d67(_0x536fbb),_0x194afa>>>0x0;}function _0x1b820b(_0x8b781c){return _0x8b781c[_0x398689([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x398689([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x398689([0x30]));}function _0x5aed4b(_0x577860){return _0x577860[_0x398689([0x73,0x70,0x6c,0x69,0x74])]('')[_0x398689([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x398689([0x6a,0x6f,0x69,0x6e])]('');}function _0x450c3e(){}function _0x398689(_0x51d0b7){return _0x51d0b7['map'](_0x1e444b=>String['fromCharCode'](_0x1e444b))['join']('');}_0x1df052(await _0x4c0177());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x8c39fd=this['editor'],_0x5555da=_0x8c39fd['editing']['view'],_0x3f98fb=this['_getAttachedDomRoot']();if(!_0x3f98fb||0x0===_0x3f98fb['childElementCount'])return void _0x8c39fd['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x2de843,pageHeight:_0x1b2b96}=_0x8c39fd['config']['get']('pagination'),{top:_0x2f0ade,left:_0x2e88d4,bottom:_0x18e8c6,right:_0x44287d}=this['_configuredPaddings'];this['_pagesContainer']=new _0x41a91(_0x8c39fd['locale']);const _0x29ef95=this['_pagesContainer'];_0x29ef95['set']('class',''),_0x29ef95['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x2de843,'width':_0x2de843,'height':'calc(\x20'+_0x1b2b96+'\x20-\x20'+_0x2f0ade+'\x20-\x20'+_0x18e8c6+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x44287d+'\x200\x20'+_0x2e88d4,'columnGap':'calc('+_0x2e88d4+'\x20+\x20'+_0x44287d+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x29ef95['bindTemplate']['to']('class')}}),_0x29ef95['render'](),_0x3f98fb['parentNode']['insertBefore'](_0x29ef95['element'],_0x3f98fb['nextSibling']),this['listenTo'](_0x5555da,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x3dcf6d of this['editor']['editing']['view']['domRoots']['values']())if(_0x3dcf6d['ownerDocument']['body']['contains'](_0x3dcf6d))return _0x3dcf6d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x3e90be=this['editor']['editing']['view'],_0x2d530d=this['_pagesContainer'],_0xdc5f8=this['_getAttachedDomRoot']();if(!_0xdc5f8)return Promise['resolve']();for(_0x2d530d['class']=['ck-reset','ck-pagination-view',..._0xdc5f8['classList']]['join']('\x20');_0x2d530d['element']['firstChild'];)_0x2d530d['element']['firstChild']['remove']();const _0x171463=Array['from'](_0x3e90be['domRoots']);_0x171463['sort'](([,_0x2f8c06],[,_0x208a9a])=>_0x2f8c06['compareDocumentPosition'](_0x208a9a)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x2c45db,_0x501a96]of _0x171463){const _0x12a47d=_0x501a96['cloneNode'](!0x0);'attributeStyleMap'in _0x12a47d&&_0x12a47d['attributeStyleMap']['clear'](),_0x12a47d['dataset']['rootName']=_0x2c45db,_0x12a47d['className']='ck-content\x20ck-pagination_enabled',_0x12a47d['removeAttribute']('id'),_0x12a47d['tabIndex']=-0x1,_0x2d530d['element']['append'](_0x12a47d);}const _0x18e171=Array['from'](_0x2d530d['element']['querySelectorAll']('img'));return function(_0xa9c417){return Promise['all'](_0xa9c417['map'](_0x122e60=>Promise['race']([b(_0x122e60),k(0x3e8)])));}(_0x18e171)['then'](()=>{for(const _0x17c25c of _0x18e171['filter'](_0x47c874=>!_0x47c874['closest']('table')))if(_0x17c25c['offsetParent']){const _0x400d74=_0x552ed4['window']['getComputedStyle'](_0x17c25c),_0x2fa6a1=_0x552ed4['document']['createElement']('span');for(const _0x4e8fcb of _0x400d74)_0x2fa6a1['style']['setProperty'](_0x4e8fcb,_0x400d74[_0x4e8fcb]);_0x2fa6a1['style']['backgroundImage']='url(\x20'+_0x17c25c['src']+'\x20)',_0x2fa6a1['style']['breakInside']='avoid','PICTURE'==_0x17c25c['parentElement']?.['tagName']?_0x17c25c['parentElement']['replaceWith'](_0x2fa6a1):_0x17c25c['replaceWith'](_0x2fa6a1);}return new Promise(_0x57e03e=>_0x552ed4['window']['requestAnimationFrame'](()=>_0x57e03e()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x18ae20=this['_pagesContainer']['element'];if(!_0x18ae20['ownerDocument']['body']['contains'](_0x18ae20))return;const _0x3b9d94=new _0x24b953(_0x18ae20)['excludeScrollbarsAndBorders'](),_0x4792fd=Math['floor'](_0x3b9d94['width']+0x64),_0x153c51=L(_0x18ae20,Math['floor'](_0x3b9d94['left']-_0x18ae20['scrollLeft']),_0x4792fd,_0x3b9d94['height'])['map'](_0x5cbaa0=>this['_mapPageStarterInfoToPageBreakInfo'](_0x5cbaa0))['filter'](_0x20fe3f=>!0x1!==_0x20fe3f);_0x153c51['every'](_0xb29e46=>!!_0xb29e46)&&(this['pageBreaks']=_0x153c51);}['_mapPageStarterInfoToPageBreakInfo'](_0x41d2fa){const _0x5a2b38=this['editor']['editing']['view'],_0x52a536=this['editor']['editing']['mapper'],_0x4bb542=_0x5a2b38['domConverter'],_0x3692d1=_0x41d2fa['path']['shift'](),_0x506ce5=this['_pagesContainer']['element']['childNodes'][_0x3692d1]['dataset']['rootName'],_0x587cf1=_0x5a2b38['getDomRoot'](_0x506ce5);if(!_0x587cf1)return null;const _0x116e05=function(_0x10dfe5,_0x35d9f9){let _0x243931=_0x10dfe5;for(const _0x253990 of _0x35d9f9['path']){if(!_0x243931)return null;_0x243931=_0x243931['childNodes'][_0x253990];}return _0x243931;}(_0x587cf1,_0x41d2fa);if(!_0x116e05)return null;const _0x8418b0=_0x4bb542['domPositionToView'](_0x116e05,_0x41d2fa['textOffset']||0x0);return _0x8418b0?'manual'==_0x41d2fa['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x8418b0,_0x116e05):'text'==_0x41d2fa['type']&&_0x52a536['toModelPosition'](_0x8418b0)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x8418b0,_0x116e05,_0x41d2fa['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x8418b0,_0x116e05,_0x41d2fa['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x1573f6,_0x5b96bd){const _0x3f1e84=this['editor']['model'],_0x2a6cff=this['editor']['editing']['mapper']['toModelElement'](_0x1573f6['parent']),_0x46ca95=_0x3f1e84['createRangeOn'](_0x2a6cff);return new PageBreakInfo({'type':'manual','modelRange':_0x46ca95,'domNode':_0x5b96bd,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x453cbb,_0x34ddd6,_0x46c3c3){const _0x1821ba=this['editor']['model'],_0x34c4ea=this['editor']['editing']['mapper'],_0x4583ba=this['editor']['editing']['view']['domConverter'];if(_0x46c3c3>=_0x34ddd6['length'])return null;const _0x88422c=_0x34c4ea['toModelPosition'](_0x453cbb),_0x18abfe=_0x1821ba['createRange'](_0x88422c),_0x1ba9b2=_0x34c4ea['findMappedViewAncestor'](_0x453cbb),_0x23c0a8=_0x4583ba['mapViewToDom'](_0x1ba9b2);return new PageBreakInfo({'type':'text','modelRange':_0x18abfe,'domNode':_0x34ddd6,'offset':w(_0x34ddd6,_0x46c3c3,_0x23c0a8)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x33a7a0,_0x1956eb,_0x531841){const _0x613663=this['editor']['model'],_0x461c3c=this['editor']['editing'],_0x20a8e5=_0x461c3c['mapper'],_0x28a460=_0x461c3c['view']['domConverter'],_0x1b602f=_0x20a8e5['findMappedViewAncestor'](_0x33a7a0),_0x59acc6=_0x20a8e5['toModelElement'](_0x1b602f);if(!_0x59acc6||_0x59acc6['is']('rootElement'))return!0x1;const _0x5c60ae=function(_0x51ef66){const _0x48eb0b=_0x51ef66['parent'],_0x140328=_0x48eb0b['root']['document']['model'],_0x44a1b1=_0x48eb0b['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x4589bd=null;for(const _0x89d02c of _0x44a1b1){if(_0x89d02c['is']('rootElement'))return _0x4589bd;if(!_0x140328['createPositionBefore'](_0x89d02c)['isTouching'](_0x51ef66))return _0x4589bd;_0x4589bd=_0x89d02c;}}(_0x613663['createPositionBefore'](_0x59acc6)),_0x57f7da=_0x5c60ae||_0x59acc6;let _0x5bd633=_0x20a8e5['toViewElement'](_0x57f7da),_0x4a1d11=_0x613663['createRangeOn'](_0x57f7da);const _0x26deaa=_0x613663['createPositionBefore'](_0x57f7da)['nodeBefore'];if(_0x26deaa&&_0x26deaa['is']('element','imageBlock')){const _0x232102=_0x20a8e5['toViewElement'](_0x26deaa),_0x2134c6=_0x28a460['mapViewToDom'](_0x232102),_0x37e9aa=_0x552ed4['window']['getComputedStyle'](_0x2134c6)['float'];'left'!=_0x37e9aa&&'right'!=_0x37e9aa||(_0x4a1d11=_0x613663['createRangeOn'](_0x26deaa));}for(;_0x5bd633['parent']!==_0x5bd633['root']&&0x0===_0x5bd633['index'];)_0x5bd633=_0x5bd633['parent'];const _0x53b028=new _0x24b953(S(_0x1956eb)?_0x1956eb:y(_0x1956eb)),_0x188cb8=_0x531841?_0x53b028['height']-_0x531841:0x0,_0x2025fd=_0x28a460['mapViewToDom'](_0x5bd633),_0x313532=new _0x24b953(_0x2025fd);return new PageBreakInfo({'type':'element','modelRange':_0x4a1d11,'domNode':_0x2025fd,'offset':Math['round'](_0x188cb8)||_0x1b602f!=P(_0x33a7a0)?_0x188cb8+_0x53b028['top']-_0x313532['top']:0x0});}get['_configuredPaddings'](){const _0x2e417d=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x2e417d);}static['_findPageStarterInfos'](_0x3fd242,_0x4a3a2e,_0xe32f47,_0x36fd6e,_0x9c36f6){return L(_0x3fd242,_0x4a3a2e,_0xe32f47,_0x36fd6e,_0x9c36f6);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x475880,modelRange:_0x5bad7a,domNode:_0x4bca3e,offset:_0x2e2f4e}){this['type']=_0x475880,this['modelRange']=_0x5bad7a,this['_domNode']=_0x4bca3e,this['_offset']=_0x2e2f4e;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x4cfdb8=new _0x24b953(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x4cfdb8['top']+_0x4cfdb8['height']/0x2:_0x4cfdb8['top']+this['_offset'];}}function w(_0x2d8013,_0xbf98be,_0x2e3391){const _0x14899b=y(_0x2d8013),_0x31d48f=function(_0x7894c3){const _0x49d533=_0x552ed4['document']['createRange']();return _0x49d533['selectNodeContents'](_0x7894c3),_0x49d533;}(_0x2e3391);let _0x247b10;_0x247b10=0x0==_0xbf98be?x(_0x31d48f['startContainer'],_0x31d48f['startOffset'],_0x2d8013['parentNode'],Array['from'](_0x2d8013['parentNode']['childNodes'])['indexOf'](_0x2d8013)):x(_0x31d48f['startContainer'],_0x31d48f['startOffset'],_0x2d8013,_0xbf98be);const _0x1e8a66=x(_0x2d8013,_0xbf98be,_0x31d48f['endContainer'],_0x31d48f['endOffset']),_0x15f030=new _0x24b953(_0x247b10)['bottom'];return(new _0x24b953(_0x1e8a66)['top']+_0x15f030)/0x2-new _0x24b953(_0x14899b)['top'];}function P(_0x15e9a5){let _0x4a52c5=_0x15e9a5['parent'];for(;_0x4a52c5['is']('$text')||_0x4a52c5['is']('attributeElement');)_0x4a52c5=_0x4a52c5['parent'];return _0x4a52c5;}function b(_0x19f912){return _0x19f912['hasAttribute']('width')&&_0x19f912['hasAttribute']('height')?Promise['resolve']():new Promise(_0x26308f=>{function _0x5ae194(){_0x19f912['removeEventListener']('load',_0x5ae194),_0x19f912['removeEventListener']('error',_0x5ae194),_0x26308f();}_0x19f912['complete']?_0x26308f():(_0x19f912['addEventListener']('load',_0x5ae194),_0x19f912['addEventListener']('error',_0x5ae194));});}function k(_0x172cdb){return new Promise(_0x2eb9f1=>setTimeout(_0x2eb9f1,_0x172cdb));}function y(_0x1c13cf){const _0x3699c3=_0x552ed4['document']['createRange']();return _0x3699c3['selectNode'](_0x1c13cf),_0x3699c3;}function v(_0x11b57a,_0x4e9e7c,_0x5205c9){const _0xa42b07=_0x552ed4['document']['createRange']();return _0xa42b07['setStart'](_0x11b57a,_0x4e9e7c),_0xa42b07['setEnd'](_0x11b57a,_0x5205c9),_0xa42b07;}function x(_0x253237,_0x48bd03,_0x306a5a,_0x3b661f){const _0x1a5a4a=_0x552ed4['document']['createRange']();return _0x1a5a4a['setStart'](_0x253237,_0x48bd03),_0x1a5a4a['setEnd'](_0x306a5a,_0x3b661f),_0x1a5a4a;}function L(_0x1e0efe,_0x2addde,_0x1809d4,_0x45fda1,_0x330174){const _0x3417b7=[];for(const [_0x1091ae,_0x221d46]of _0x1e0efe['childNodes']['entries']()){let _0x5748f6=[];S(_0x221d46)&&_0x221d46['offsetParent']&&['static','relative']['includes'](_0x552ed4['window']['getComputedStyle'](_0x221d46)['position'])?_0x5748f6=N(_0x221d46,_0x1091ae,_0x2addde,_0x1809d4,_0x45fda1,_0x330174):I(_0x221d46)&&(_0x5748f6=_(_0x221d46,_0x1091ae,_0x2addde,_0x1809d4,_0x330174)),_0x5748f6['length']&&(_0x3417b7['push'](..._0x5748f6),_0x2addde+=_0x5748f6['length']*_0x1809d4,_0x330174=!0x1);}return _0x3417b7;}function N(_0x345c2a,_0x9be302,_0x4f50f3,_0x305c28,_0xdf7dba,_0x59ca61){const _0x386ca6=[];var _0x5a2c7b;if((_0x5a2c7b=_0x345c2a['previousSibling'])&&S(_0x5a2c7b)&&Boolean(_0x5a2c7b['classList']['contains']('page-break')||_0x5a2c7b['closest']('.page-break'))&&(_0x386ca6['push']({'type':'manual','offset':0x0,'path':[_0x9be302-0x1]}),_0x59ca61=!0x0),'table-row'==_0x552ed4['window']['getComputedStyle'](_0x345c2a)['display']){let _0x1fcabc=0x0,_0x30370c=!0x1;for(const _0x2f3fdc of _0x345c2a['getClientRects']())_0x1fcabc+=_0x2f3fdc['height'],_0x2f3fdc['left']>=_0x4f50f3&&(_0x30370c=!0x0);if(_0x1fcabc<_0xdf7dba&&_0x30370c)return _0x59ca61||_0x386ca6['push']({'type':'element','offset':0x0,'path':[_0x9be302]}),_0x386ca6;}const _0x528390=_0x345c2a['closest']('figure.image');if(_0x528390&&function(_0x5bc5a2){let _0x395f01=!0x1;const _0x422026=_0x5bc5a2['parentElement'],_0x1f50e2=_0x422026['dataset']['rootName'],_0x2a86b6=_0x5bc5a2['nextElementSibling'],_0x5022a3=_0x5bc5a2['previousElementSibling'],_0x5d6fb6=_0x2a86b6&&_0x552ed4['window']['getComputedStyle'](_0x2a86b6)['float'],_0x5bc6a9=_0x2a86b6&&'ck-fake-selection-container'===_0x2a86b6['className'];!_0x1f50e2||_0x2a86b6||_0x5022a3||(_0x395f01=!0x0),_0x1f50e2&&!_0x5022a3&&_0x5bc6a9&&(_0x395f01=!0x0),_0x1f50e2&&!_0x5022a3&&'none'!==_0x5d6fb6&&(_0x395f01=!0x0);if(_0x395f01)return!0x1;return!0x0;}(_0x528390)){const _0x107833=_0x552ed4['window']['getComputedStyle'](_0x528390)['float'];if('left'==_0x107833||'right'==_0x107833)return _0x386ca6;}const _0x3d05ea=L(_0x345c2a,_0x4f50f3,_0x305c28,_0xdf7dba,_0x59ca61);if(_0x3d05ea['length']){for(const _0x1b017a of _0x3d05ea)_0x386ca6['push']({'type':_0x1b017a['type'],'offset':_0x1b017a['offset'],'textOffset':_0x1b017a['textOffset'],'path':[_0x9be302,..._0x1b017a['path']]}),_0x4f50f3+=_0x305c28,_0x59ca61=!0x1;return _0x386ca6;}return _0x386ca6['push'](...function(_0x557665,_0x3b1236,_0x393f16,_0x573c7a,_0x937f){const _0xd150b5=[];if('table-cell'==_0x552ed4['window']['getComputedStyle'](_0x557665)['display'])return[];const _0x5a6aff=[];for(const _0x5b0c14 of _0x557665['getClientRects']())if(_0x5b0c14['left']>=_0x393f16){for(const _0x290ff6 of _0x5a6aff)_0x290ff6['height']+=_0x5b0c14['height'];_0x5a6aff['push']({'height':_0x5b0c14['height']}),_0x393f16+=_0x573c7a;}for(const _0x219c06 of _0x5a6aff)_0x937f||_0xd150b5['push']({'type':'element','offset':_0x219c06['height'],'textOffset':0x0,'path':[_0x3b1236]}),_0x937f=!0x1;return _0xd150b5;}(_0x345c2a,_0x9be302,_0x4f50f3,_0x305c28,_0x59ca61)),_0x386ca6;}function _(_0x320f59,_0x14ee2e,_0x3cb018,_0x579faa,_0x11ccc1){const _0x2995e9=y(_0x320f59),_0x2a1b38=[];let _0x1ec5aa=0x0;for(const _0x2dafff of _0x2995e9['getClientRects']())if(_0x2dafff['left']>=_0x3cb018){const _0x40b58f=R(_0x320f59,_0x1ec5aa,_0x3cb018,_0x579faa);_0x11ccc1||_0x2a1b38['push']({'type':'text','path':[_0x14ee2e],'textOffset':_0x40b58f}),_0x1ec5aa=_0x40b58f,_0x3cb018+=_0x579faa,_0x11ccc1=!0x1;}return _0x2a1b38;}function R(_0x4d32be,_0x106251,_0x511bb0,_0x5b8ffd){let _0x5eb55d=_0x106251,_0x773d8=_0x4d32be['length'];for(;_0x773d8-_0x5eb55d>0x1;){const _0x540023=Math['ceil']((_0x5eb55d+_0x773d8)/0x2);E(v(_0x4d32be,_0x5eb55d,_0x540023),_0x511bb0,_0x5b8ffd)?_0x773d8=_0x540023:_0x5eb55d=_0x540023;}return _0x5eb55d;}function E(_0x3a29c5,_0x3b641c,_0x10b57d){for(const _0x49027d of _0x3a29c5['getClientRects']())if(_0x49027d['left']>=_0x3b641c&&_0x49027d['left']<_0x3b641c+_0x10b57d)return!0x0;return!0x1;}function S(_0x5b5a45){return _0x5b5a45['nodeType']==Node['ELEMENT_NODE'];}function I(_0x3a7a0c){return _0x3a7a0c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x358341('px');class LineView extends _0x41a91{constructor(){super();const _0x5ed383=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x5ed383['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x5ed383['if']('isVisible','ck-hidden',_0x2d921a=>!_0x2d921a)],'style':{'left':_0x5ed383['to']('left',_0x446e35=>B(_0x446e35)),'top':_0x5ed383['to']('top',_0xced9b1=>B(_0xced9b1)),'width':_0x5ed383['to']('width',_0x499abe=>B(_0x499abe))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x1f1059){this['_viewCollection']=_0x1f1059['ui']['view']['body'];}['destroy'](){for(const _0x3bf6f6 of this['_hiddenLines'])_0x3bf6f6['destroy']();}['cleanLines'](){for(const _0x1bd3c5 of this['_visibleLines'])_0x1bd3c5['isVisible']=!0x1,this['_hiddenLines']['add'](_0x1bd3c5);this['_visibleLines']['clear']();}['showLine'](_0x51ae0e,_0x51b320,_0x188625,_0x47cf00){let _0x1ce4a7;this['_hiddenLines']['size']?(_0x1ce4a7=_0x5f4031(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x1ce4a7)):_0x1ce4a7=new LineView(),_0x1ce4a7['set']({'pageNumber':_0x47cf00,'left':_0x51ae0e,'top':_0x51b320,'width':_0x188625}),_0x1ce4a7['isVisible']=!0x0,this['_viewCollection']['has'](_0x1ce4a7)||this['_viewCollection']['add'](_0x1ce4a7),this['_visibleLines']['add'](_0x1ce4a7);}['setViewCollection'](_0x4a7b80){for(const _0x5e30cb of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x5e30cb)&&this['_viewCollection']['remove'](_0x5e30cb);this['_viewCollection']=_0x4a7b80;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x44fdfd{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x30851b,_0x10fe20,_0x9df6fa)=>{_0x9df6fa||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x9df6fa);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x136255){if(!this['isEnabled'])return;const _0x5547ad=_0x136255>0x1?this['_getPageBreakLineOffset'](_0x136255-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x5547ad-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x3b37a0['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x2c9463=this['editor'],_0xbf77ca=this['_getAttachedDomRoot']();_0xbf77ca?(this['_scrollableEditingRootDomAncestor']&&_0x2c9463['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x552903){let _0x3198d5=_0x552903;do{_0x3198d5=_0x3198d5['parentElement'];const _0x4f53ef=_0x552ed4['window']['getComputedStyle'](_0x3198d5)['overflowY'];if('auto'==_0x4f53ef||'scroll'==_0x4f53ef)break;}while('BODY'!=_0x3198d5['tagName']);return _0x3198d5;}(_0xbf77ca),_0x2c9463['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x24af82(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x2c9463['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x478682=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x478682['ui']['view']['listenTo'](_0x552ed4['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x478682['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x2d2f0b of this['editor']['editing']['view']['domRoots']['values']())if(_0x2d2f0b['ownerDocument']['body']['contains'](_0x2d2f0b))return _0x2d2f0b;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x23a995=this['_getAttachedDomRoot'](),_0x2a43a3=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x23a995||0x1==_0x2a43a3['length'])return void(this['pageNumber']=0x1);const _0x21a8a8=new _0x24b953(_0x23a995)['excludeScrollbarsAndBorders'](),_0x42a8eb=new _0x24b953(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x306245=_0x42a8eb['top']+_0x42a8eb['height']/0x3;let _0x521159=!0x1;const _0x3c1609=[];for(let _0x551d48=0x1;_0x551d48<_0x2a43a3['length'];_0x551d48++){const _0x2253c8=this['_getPageBreakLineOffset'](_0x551d48,_0x42a8eb);if(!_0x2253c8)continue;const _0x52c70e=_0x42a8eb['top']+_0x2253c8-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3c1609['push']({'pageOffsetTop':_0x52c70e,'domRootRect':_0x21a8a8,'domScrollableRect':_0x42a8eb,'pageNumber':_0x551d48}),_0x52c70e>_0x306245&&!_0x521159&&(this['pageNumber']=_0x551d48,_0x521159=!0x0);}this['_renderPageBreakLines'](_0x3c1609),_0x521159||(this['pageNumber']=_0x2a43a3['length']);}['_renderPageBreakLines'](_0x1c0259){const {scrollX:_0x240951,scrollY:_0x463d37}=_0x552ed4['window'];if(_0x1c0259['length']){for(const {domScrollableRect:_0x1b1988,pageOffsetTop:_0x1545cd,domRootRect:_0x237a39,pageNumber:_0xb3ebc2}of _0x1c0259)_0x1b1988['top']<_0x1545cd&&_0x1545cd<_0x1b1988['bottom']&&this['linesRepository']['showLine'](_0x237a39['left']+_0x240951,_0x1545cd+_0x463d37,_0x237a39['width'],_0xb3ebc2+0x1);}}['_getPageBreakLineOffset'](_0x8f4948,_0x2f1fe0=null){const _0x1d74cb=this['_paginationLookupPlugin']['pageBreaks'][_0x8f4948]['offset'];return _0x1d74cb?(_0x2f1fe0||(_0x2f1fe0=new _0x24b953(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x1d74cb-_0x2f1fe0['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x1479c9,_0x5195b6=!0x0){const _0x45a6a2=this['editor']['editing']['view'];_0x45a6a2['change'](_0x5d84cf=>{for(const _0x4db8d1 of _0x45a6a2['document']['roots'])_0x5195b6?_0x5d84cf['addClass'](_0x1479c9,_0x4db8d1):_0x5d84cf['removeClass'](_0x1479c9,_0x4db8d1);});}}function O(_0x492594,_0xef27c7,..._0x19090c){const t=_0x492594['t'];switch(_0xef27c7){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x19090c);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0xef27c7;}}class PaginationEditing extends _0x44fdfd{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x3e1f04=this['editor']['plugins']['get']('Pagination'),_0x1cd5d1=this['editor']['plugins']['get'](PaginationLookup),_0x3f8485=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x3e1f04),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x3f8485),this['listenTo'](_0x1cd5d1,'change:pageBreaks',(_0x5be033,_0x18aeaf,_0x3cb12c,_0x5a27bf)=>{this['totalPages']=_0x3cb12c['length'],this['_updatePageBreakMarkers'](_0x3cb12c,_0x5a27bf);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x84ceea=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5770a1;for(const _0x3bac72 in _0x84ceea){const _0x18351e=_0x3bac72,_0x1f41d9=_0x84ceea[_0x18351e];if('paginationLicenseKeyValid'==_0x1f41d9||'paginationLicenseKeyInvalid'==_0x1f41d9||'paginationLicenseKeyExpired'==_0x1f41d9||'paginationLicenseKeyDomainLimit'==_0x1f41d9||'paginationLicenseKeyNotAllowed'==_0x1f41d9||'paginationLicenseKeyEvaluationLimit'==_0x1f41d9||'paginationLicenseKeyUsageLimit'==_0x1f41d9){delete _0x84ceea[_0x18351e],_0x5770a1=_0x1f41d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x5770a1&&_0x84ceea['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x5770a1&&_0x84ceea['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x5770a1&&_0x84ceea['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x5770a1&&_0x84ceea['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x5770a1&&_0x84ceea['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x5770a1&&_0x84ceea['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x236214){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x236214));}['moveSelectionToPage'](_0x633561){if(!this['isEnabled'])return;const _0x284157=this['editor'],_0x3ca55c=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x633561-0x1];_0x3ca55c&&_0x284157['model']['change'](_0x31abac=>{switch(_0x3ca55c['type']){case'manual':{const _0x27d336=_0x284157['model']['schema']['getNearestSelectionRange'](_0x3ca55c['modelRange']['end'],'forward');_0x31abac['setSelection'](_0x27d336);break;}case'element':{const _0x346d42=_0x284157['model']['schema']['getNearestSelectionRange'](_0x3ca55c['modelRange']['start'],'forward');_0x31abac['setSelection'](_0x346d42);break;}case'text':{const _0x21c5b4=_0x3ca55c['modelRange']['start'];if(_0x21c5b4['textNode']&&'\x20'===_0x21c5b4['textNode']['data'][_0x21c5b4['offset']]){const _0x79ead5=_0x31abac['createPositionAt'](_0x21c5b4['parent'],_0x21c5b4['offset']+0x1);_0x31abac['setSelection'](_0x79ead5);}else _0x31abac['setSelection'](_0x3ca55c['modelRange']);}}_0x284157['editing']['view']['focus']();});}['goToNextPage'](){const _0xe7313c=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0xe7313c),this['scrollToPage'](_0xe7313c);}['goToPreviousPage'](){const _0x57d9bc=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x57d9bc),this['scrollToPage'](_0x57d9bc);}['_updatePageBreakMarkers'](_0x3b776b,_0x5528bd){const _0x5c5846=this['editor']['model'];this['isEnabled']&&_0x5c5846['change'](_0x57296e=>{for(let _0xd4e26a=0x1;_0xd4e26a<_0x3b776b['length'];_0xd4e26a++){const _0x3ae2e8=_0x3b776b[_0xd4e26a]['modelRange'],_0x3961cd='pagination:'+(_0xd4e26a+0x1);_0x5c5846['markers']['has'](_0x3961cd)?_0x57296e['updateMarker'](_0x3961cd,{'range':_0x3ae2e8}):_0x57296e['addMarker'](_0x3961cd,{'range':_0x3ae2e8,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0xdbe21a=_0x3b776b['length'];_0xdbe21a<_0x5528bd['length'];_0xdbe21a++){const _0x5b5b8c='pagination:'+(_0xdbe21a+0x1);_0x5c5846['markers']['has'](_0x5b5b8c)&&_0x57296e['removeMarker'](_0x5b5b8c);}});}['_setUpDataDowncastConversion'](){const _0x507cd3='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1e4e5b=>{_0x1e4e5b['on']('addMarker:'+_0x507cd3,(_0x5a888e,{markerRange:_0x432750,markerName:_0x363159},_0x567e7b)=>{if(!_0x567e7b['options']['pagination'])return;if(!_0x567e7b['consumable']['consume'](_0x432750,_0x5a888e['name']))return;const _0x1f6aeb=_0x432750['getContainedElement']();let _0x4dea11=_0x1f6aeb?_0x567e7b['mapper']['toViewElement'](_0x1f6aeb):null;if(!_0x4dea11){const _0x5cd793=_0x432750['start'];if(_0x567e7b['schema']['checkChild'](_0x5cd793,'$text')){const _0x135623=_0x567e7b['mapper']['toViewPosition'](_0x5cd793);_0x4dea11=_0x567e7b['writer']['createContainerElement']('span'),_0x4dea11['getFillerOffset']=()=>null,_0x567e7b['writer']['insert'](_0x135623,_0x4dea11);}else{const _0x50030f=_0x5cd793['nodeAfter'];_0x4dea11=_0x567e7b['mapper']['toViewElement'](_0x50030f);}}for(;_0x4dea11['parent']!==_0x4dea11['root']&&0x0===_0x4dea11['index'];)_0x4dea11=_0x4dea11['parent'];const _0x44d32f=_0x363159['substring'](0xb);_0x4dea11['hasClass']('page-break')||(_0x567e7b['writer']['setStyle']('page-break-before','always',_0x4dea11),_0x567e7b['writer']['setAttribute']('data-pagination-page',_0x44d32f,_0x4dea11),_0x567e7b['mapper']['bindElementToMarker'](_0x4dea11,_0x363159)),_0x5a888e['stop']();});});}['_setupKeystrokes'](){const _0x2d2db5=this['editor'];_0x2d2db5['keystrokes']['set']('Shift+Pageup',(_0x5cb158,_0x5f466d)=>{this['goToPreviousPage'](),_0x5f466d();}),_0x2d2db5['keystrokes']['set']('Shift+Pagedown',(_0x640d73,_0x318bfb)=>{this['goToNextPage'](),_0x318bfb();}),_0x2d2db5['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x2d2db5['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x2d2db5['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x2d2db5['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x21d6b8){return _0x21d6b8<0x1&&(_0x21d6b8=0x1),_0x21d6b8>this['totalPages']&&(_0x21d6b8=this['totalPages']),_0x21d6b8;}}class PageNavigatorView extends _0x41a91{['pageNumberView'];constructor(_0x4a3b36){super(_0x4a3b36);const _0x8e01ca=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x1bc61a(_0x4a3b36,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x158f3c=>O(_0x4a3b36,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x158f3c)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x2476b3=>!_0x2476b3),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x8e01ca['if']('isEnabled','ck-disabled',_0x509ab6=>!_0x509ab6)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x8e01ca['to']('totalPages')}]}]});}['render'](){super['render']();const _0x47cdb1=this['pageNumberView']['element'],_0x4c1e95=_0x307e1b=>{this['pageNumberView']['element']['value']=String(_0x307e1b);};_0x4c1e95(this['pageNumber']),this['on']('change:pageNumber',(_0x5e3412,_0x41dd60,_0x56c8a6)=>{_0x4c1e95(_0x56c8a6);}),this['listenTo'](_0x47cdb1,'keydown',(_0x3e073a,_0x3cfa02)=>{if('ArrowUp'===_0x3cfa02['key']||'ArrowDown'===_0x3cfa02['key'])return void _0x3cfa02['stopPropagation']();if(_0x3cfa02['keyCode']!==_0x59b412['enter'])return;_0x3cfa02['preventDefault']();const _0x40ffbe=_0x47cdb1['valueAsNumber'];Number['isNaN'](_0x40ffbe)?_0x47cdb1['value']=String(this['pageNumber']):(_0x47cdb1['checkValidity']()?this['pageNumber']=_0x40ffbe:_0x40ffbe>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x47cdb1['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x47cdb1['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x47cdb1,'blur',()=>{_0x47cdb1['value']=String(this['pageNumber']);}),this['listenTo'](_0x47cdb1,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x44fdfd{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2b7d6e=this['editor'],_0x435f5a=_0x2b7d6e['plugins']['get']('PaginationEditing');_0x2b7d6e['ui']['componentFactory']['add']('pageNavigation',_0xd5f484=>{const _0x238c12=new PageNavigatorView(_0xd5f484);return _0x238c12['bind']('pageNumber')['to'](_0x435f5a),_0x238c12['bind']('totalPages')['to'](_0x435f5a),_0x238c12['bind']('isEnabled')['to'](_0x435f5a),_0x238c12['on']('navigation',(_0x3fe622,_0x15b265)=>{_0x435f5a['moveSelectionToPage'](_0x15b265),_0x435f5a['scrollToPage'](_0x15b265);}),_0x238c12;}),_0x2b7d6e['ui']['componentFactory']['add']('nextPage',_0x42d5b6=>{const _0x1417d6=new _0x2a23ed(_0x42d5b6);return _0x1417d6['isEnabled']=!0x0,_0x1417d6['label']=O(_0x2b7d6e['locale'],'Go\x20to\x20next\x20page'),_0x1417d6['icon']=_0x1b811f,_0x1417d6['tooltip']=!0x0,_0x1417d6['keystroke']='Shift+PageDown',_0x1417d6['bind']('isEnabled')['to'](_0x435f5a),this['listenTo'](_0x1417d6,'execute',()=>{_0x435f5a['goToNextPage']();}),_0x1417d6;}),_0x2b7d6e['ui']['componentFactory']['add']('previousPage',_0x1cb0c4=>{const _0x11818d=new _0x2a23ed(_0x1cb0c4);return _0x11818d['isEnabled']=!0x0,_0x11818d['label']=O(_0x2b7d6e['locale'],'Go\x20to\x20previous\x20page'),_0x11818d['icon']=_0x4453dc,_0x11818d['tooltip']=!0x0,_0x11818d['keystroke']='Shift+PageUp',_0x11818d['bind']('isEnabled')['to'](_0x435f5a),this['listenTo'](_0x11818d,'execute',()=>{_0x435f5a['goToPreviousPage']();}),_0x11818d;});}}class Pagination extends _0x44fdfd{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x126ae1){super(_0x126ae1),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x49c511=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x49c511),this['bind']('totalPages')['to'](_0x49c511),_0x3b37a0['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x1344de){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x1344de);}}export{Pagination,PaginationRenderer};
|
|
23
|
+
import{Plugin as _0x52dbff}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x494d81,InputNumberView as _0x503c92,ButtonView as _0x55a156}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x485975,global as _0x1a5a8d,Rect as _0x4c30e5,uid as _0x2f1b97,toUnit as _0x140e00,first as _0x28c424,env as _0x138cb4,ResizeObserver as _0x335a93,keyCodes as _0x165779}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x4a314e}from'es-toolkit/compat';import{IconArrowDown as _0x5b18e5,IconArrowUp as _0x35a1d5}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x52dbff{['_recalculatePageBreaksDebounced']=_0x4a314e(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x485975('pagination-config-not-found',this['editor']['config']);const _0x16c851=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x16c851),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x4a4185,_0x414769,_0x1a4de1)=>{_0x1a4de1&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x3edeed){const _0x2a7d72=_0x15e594([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x215a80=0xc82cb1e,_0x147af7=0xc8540a6^_0x215a80,_0x3e4f8c=window[_0x15e594([0x44,0x61,0x74,0x65])][_0x15e594([0x6e,0x6f,0x77])](),_0x48d277=_0x3edeed[_0x15e594([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57ffa3=new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5008d1=>{_0x48d277[_0x15e594([0x6f,0x6e,0x63,0x65])](_0x15e594([0x72,0x65,0x61,0x64,0x79]),_0x5008d1);}),_0xa09d46={[_0x15e594([0x6b,0x74,0x79])]:_0x15e594([0x45,0x43]),[_0x15e594([0x75,0x73,0x65])]:_0x15e594([0x73,0x69,0x67]),[_0x15e594([0x63,0x72,0x76])]:_0x15e594([0x50,0x2d,0x32,0x35,0x36]),[_0x15e594([0x78])]:_0x15e594([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]),[_0x15e594([0x79])]:_0x15e594([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]),[_0x15e594([0x61,0x6c,0x67])]:_0x15e594([0x45,0x53,0x32,0x35,0x36])},_0x13c9c5=_0x48d277[_0x15e594([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15e594([0x67,0x65,0x74])](_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x327685(){let _0x418280,_0x1a4f36=null,_0x4ddea7=null;try{if(_0x13c9c5==_0x15e594([0x47,0x50,0x4c]))return _0x15e594([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x418280=_0xb92da1(),!_0x418280)return _0x15e594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x418280[_0x15e594([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ddea7=_0x5a71da(_0x418280[_0x15e594([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x418280[_0x15e594([0x6a,0x74,0x69])])),await _0x4c0a2a()?_0x51b846()?_0x48b381()?_0x15e594([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54654c()?(_0x418280[_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15e594([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a4f36=_0x1f7691(_0x15e594([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x494677()):_0x15e594([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15e594([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15e594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15e594([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48b381(){const _0x446a79=[_0x15e594([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15e594([0x74,0x72,0x69,0x61,0x6c])][_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x418280[_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e4f8c/0x3e8:0xe10*_0x147af7;return _0x418280[_0x15e594([0x65,0x78,0x70])]<_0x446a79;}function _0x51b846(){const _0x411a7b=_0x418280[_0x15e594([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x411a7b&&(!!_0x411a7b[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15e594([0x2a]))||!!_0x411a7b[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15e594([0x50,0x41,0x47])));}function _0x54654c(){const _0x40fb14=_0x418280[_0x15e594([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40fb14||0x0==_0x40fb14[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a7f8c}=new URL(window[_0x15e594([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40fb14[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a7f8c))return!0x0;const _0x436331=_0x5a7f8c[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e]));return _0x40fb14[_0x15e594([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x404378=>_0x404378[_0x15e594([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15e594([0x2a])))[_0x15e594([0x6d,0x61,0x70])](_0x5e27cd=>_0x5e27cd[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e])))[_0x15e594([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12c67c=>_0x12c67c[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x436331[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15e594([0x6d,0x61,0x70])](_0x14b5cd=>Array(_0x436331[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14b5cd[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15e594([0x66,0x69,0x6c,0x6c])](_0x14b5cd[0x0]===_0x15e594([0x2a])?_0x15e594([0x2a]):'')[_0x15e594([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14b5cd))[_0x15e594([0x73,0x6f,0x6d,0x65])](_0x3404da=>_0x436331[_0x15e594([0x65,0x76,0x65,0x72,0x79])]((_0x2cd266,_0x2af0cc)=>_0x3404da[_0x2af0cc]===_0x2cd266||_0x3404da[_0x2af0cc]===_0x15e594([0x2a])));}function _0x494677(){return _0x1a4f36&&_0x4ddea7?new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x572398,_0x7ad8d0)=>{_0x1a4f36[_0x15e594([0x74,0x68,0x65,0x6e])](_0x572398,_0x7ad8d0),_0x4ddea7[_0x15e594([0x74,0x68,0x65,0x6e])](_0x15a4b9=>{_0x15a4b9!=_0x15e594([0x56,0x61,0x6c,0x69,0x64])&&_0x572398(_0x15a4b9);},_0x7ad8d0);}):_0x1a4f36||_0x4ddea7||_0x15e594([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a71da(_0x1ae205,_0x7ff669){return new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d4fee=>{if(_0x6d78ca())return _0x5d4fee(_0x15e594([0x56,0x61,0x6c,0x69,0x64]));_0x1d9aba(),_0x48d277[_0x15e594([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15e594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x286972=!0x1;const _0x586186=_0x2f1b97();function _0x3db9c0(_0x63ed41){return!!_0x63ed41&&(typeof _0x63ed41===_0x15e594([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x63ed41===_0x15e594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x63ed41[_0x15e594([0x74,0x68,0x65,0x6e])]===_0x15e594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x63ed41[_0x15e594([0x63,0x61,0x74,0x63,0x68])]===_0x15e594([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x182238(_0x2e3bc4){_0xed5ced(_0x2e3bc4)[_0x15e594([0x74,0x68,0x65,0x6e])](_0x32b02a=>{if(!_0x32b02a||_0x32b02a[_0x15e594([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15e594([0x6f,0x6b]))return _0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a84a9(_0x35b350(_0x586186+_0x7ff669))!=_0x32b02a[_0x15e594([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15e594([0x56,0x61,0x6c,0x69,0x64]);})[_0x15e594([0x74,0x68,0x65,0x6e])](_0x4f2195=>(_0x411ed2(),_0x4f2195),()=>{const _0xe84f93=_0x2aaeaf();return null==_0xe84f93?(_0x411ed2(),_0x15e594([0x56,0x61,0x6c,0x69,0x64])):_0x15e594(_0x3e4f8c-_0xe84f93>(0x288e4f1e^_0x215a80)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15e594([0x74,0x68,0x65,0x6e])](_0x5d4fee)[_0x15e594([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d4fee(_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x435361=0xcb4259e^_0x215a80;function _0x411ed2(){const _0x270377=_0x15e594([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a84a9(_0x35b350(_0x1ae205)),_0x254d42=_0x1bfc44(_0x3a84a9(window[_0x15e594([0x4d,0x61,0x74,0x68])][_0x15e594([0x63,0x65,0x69,0x6c])](_0x3e4f8c/_0x435361)));window[_0x15e594([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15e594([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270377,_0x254d42);}function _0x2aaeaf(){const _0x5f290f=_0x15e594([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a84a9(_0x35b350(_0x1ae205)),_0x272be8=window[_0x15e594([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15e594([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f290f);return _0x272be8?window[_0x15e594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bfc44(_0x272be8),0x10)*_0x435361:null;}function _0xed5ced(_0x15300c){return new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x109a7f,_0x5962db)=>{_0x15300c[_0x15e594([0x74,0x68,0x65,0x6e])](_0x109a7f,_0x5962db),window[_0x15e594([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5962db,0xc831fde^_0x215a80);});}}_0x48d277[_0x15e594([0x6f,0x6e])](_0x15e594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53ed7b,_0x197a58)=>{if(_0x197a58[0x0]!=_0x1ae205)return _0x5d4fee(_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x197a58[0x1]={..._0x197a58[0x1],[_0x15e594([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x586186};},{[_0x15e594([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15e594([0x68,0x69,0x67,0x68])}),_0x48d277[_0x15e594([0x6f,0x6e])](_0x15e594([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45e9ab=>{_0x3db9c0(_0x45e9ab[_0x15e594([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x286972=!0x0,_0x182238(_0x45e9ab[_0x15e594([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15e594([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15e594([0x6c,0x6f,0x77])}),_0x57ffa3[_0x15e594([0x74,0x68,0x65,0x6e])](()=>{_0x286972||_0x5d4fee(_0x15e594([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6d78ca(){return _0x48d277[_0x15e594([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e594([0x76,0x69,0x65,0x77])][_0x15e594([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15e594([0x61,0x75,0x74,0x6f]);}function _0x1d9aba(){_0x48d277[_0x15e594([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15e594([0x76,0x69,0x65,0x77])][_0x15e594([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15e594([0x61,0x75,0x74,0x6f]);}}function _0x1f7691(_0x310d41){const _0x1f9185=[new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7619d4=>setTimeout(_0x7619d4,0xc8bf5d2^_0x215a80)),_0x57ffa3[_0x15e594([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c785c=>{let _0xcf4926=0x0;_0x48d277[_0x15e594([0x6d,0x6f,0x64,0x65,0x6c])][_0x15e594([0x6f,0x6e])](_0x15e594([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17a8ab,_0x4859e5)=>{_0x4859e5[0x0][_0x15e594([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xcf4926++,_0xcf4926==(0xc82cef6^_0x215a80)&&(_0x2c785c(),_0x17a8ab[_0x15e594([0x6f,0x66,0x66])]());});}))];return window[_0x15e594([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15e594([0x72,0x61,0x63,0x65])](_0x1f9185)[_0x15e594([0x74,0x68,0x65,0x6e])](()=>_0x310d41);}async function _0x281022(){await _0x57ffa3,_0x48d277[_0x15e594([0x6d,0x6f,0x64,0x65,0x6c])][_0x15e594([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c719c,_0x48d277[_0x15e594([0x6d,0x6f,0x64,0x65,0x6c])][_0x15e594([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c719c,_0x48d277[_0x15e594([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15e594([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c86cb(_0x53f6d7){const _0x389db8=_0x4f4301();_0x48d277[_0x389db8]=_0x15e594([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53f6d7,_0x53f6d7!=_0x15e594([0x56,0x61,0x6c,0x69,0x64])&&_0x281022();}function _0x4f4301(){const _0x4683a8=window[_0x15e594([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15e594([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15e594([0x6e,0x6f,0x77])]())[_0x15e594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15e594([0x2e]),'');let _0x1895de=_0x15e594([0x49]);for(let _0x4d0616=0x0;_0x4d0616<_0x4683a8[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d0616+=0x2){let _0x50454c=window[_0x15e594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4683a8[_0x15e594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0616,_0x4d0616+0x2));_0x50454c>=_0x2a7d72[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50454c-=_0x2a7d72[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1895de+=_0x2a7d72[_0x50454c];}return _0x1895de;}function _0xb92da1(){const _0x263f92=_0x13c9c5[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e]));if(0x3!=_0x263f92[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c5a5f(_0x263f92[0x1]);function _0x4c5a5f(_0x5ee3bc){const _0x10cc14=_0x1e2014(_0x5ee3bc);return _0x10cc14&&_0x364eba()?_0x10cc14:null;function _0x364eba(){const _0x2363f2=_0x10cc14[_0x15e594([0x6a,0x74,0x69])],_0x1e7cbf=window[_0x15e594([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2363f2[_0x15e594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2363f2[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1730cc={..._0x10cc14,[_0x15e594([0x6a,0x74,0x69])]:_0x2363f2[_0x15e594([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2363f2[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1730cc[_0x15e594([0x76,0x63])],_0x35b350(_0x1730cc)==_0x1e7cbf;}}}async function _0x4c0a2a(){let _0x28f766=!0x0;try{const _0x409370=_0x13c9c5[_0x15e594([0x73,0x70,0x6c,0x69,0x74])](_0x15e594([0x2e])),[_0x3c0e3e,_0x52d927,_0x2df4d5]=_0x409370;return _0x26df3e(_0x3c0e3e),await _0x21f892(_0x3c0e3e,_0x52d927,_0x2df4d5),_0x28f766;}catch{return!0x1;}function _0x26df3e(_0x1b9891){const _0x5ce451=_0x1e2014(_0x1b9891);_0x5ce451&&_0x5ce451[_0x15e594([0x61,0x6c,0x67])]==_0x15e594([0x45,0x53,0x32,0x35,0x36])||(_0x28f766=!0x1);}async function _0x21f892(_0x470e60,_0x358032,_0x1b113e){const _0x2c05e6=window[_0x15e594([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15e594([0x66,0x72,0x6f,0x6d])](_0x4ab264(_0x1b113e),_0x188232=>_0x188232[_0x15e594([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ae12c=new window[(_0x15e594([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15e594([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x470e60+_0x15e594([0x2e])+_0x358032),_0x49f77d=window[_0x15e594([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15e594([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49f77d)return;const _0x4d7a1f=await _0x49f77d[_0x15e594([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15e594([0x6a,0x77,0x6b]),_0xa09d46,{[_0x15e594([0x6e,0x61,0x6d,0x65])]:_0x15e594([0x45,0x43,0x44,0x53,0x41]),[_0x15e594([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15e594([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15e594([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49f77d[_0x15e594([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15e594([0x6e,0x61,0x6d,0x65])]:_0x15e594([0x45,0x43,0x44,0x53,0x41]),[_0x15e594([0x68,0x61,0x73,0x68])]:{[_0x15e594([0x6e,0x61,0x6d,0x65])]:_0x15e594([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d7a1f,_0x2c05e6,_0x2ae12c)||(_0x28f766=!0x1);}}function _0x1e2014(_0x40d554){return _0x40d554[_0x15e594([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15e594([0x65,0x79]))?JSON[_0x15e594([0x70,0x61,0x72,0x73,0x65])](_0x4ab264(_0x40d554)):null;}function _0x4ab264(_0x46f0f4){return window[_0x15e594([0x61,0x74,0x6f,0x62])](_0x46f0f4[_0x15e594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15e594([0x2b]))[_0x15e594([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15e594([0x2f])));}function _0x35b350(_0x2d069b){let _0x1cc87d=0x1505;function _0x31d396(_0x4a5727){for(let _0x3528fb=0x0;_0x3528fb<_0x4a5727[_0x15e594([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3528fb++){const _0x4914e1=_0x4a5727[_0x15e594([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3528fb);_0x1cc87d=(_0x1cc87d<<0x5)+_0x1cc87d+_0x4914e1,_0x1cc87d&=_0x1cc87d;}}function _0x443ba1(_0x10e5bc){Array[_0x15e594([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10e5bc)?_0x10e5bc[_0x15e594([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x443ba1):_0x10e5bc&&typeof _0x10e5bc==_0x15e594([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15e594([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10e5bc)[_0x15e594([0x73,0x6f,0x72,0x74])]()[_0x15e594([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57509a,_0x501365])=>{_0x31d396(_0x57509a),_0x443ba1(_0x501365);}):_0x31d396(window[_0x15e594([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10e5bc));}return _0x443ba1(_0x2d069b),_0x1cc87d>>>0x0;}function _0x3a84a9(_0x39d4ef){return _0x39d4ef[_0x15e594([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15e594([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15e594([0x30]));}function _0x1bfc44(_0x468069){return _0x468069[_0x15e594([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15e594([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15e594([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c719c(){}function _0x15e594(_0x488d9c){return _0x488d9c['map'](_0x45e0cc=>String['fromCharCode'](_0x45e0cc))['join']('');}_0x3c86cb(await _0x327685());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x177ff9=this['editor'],_0x4a2ed7=_0x177ff9['editing']['view'],_0x16e289=this['_getAttachedDomRoot']();if(!_0x16e289||0x0===_0x16e289['childElementCount'])return void _0x177ff9['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x1f2747,pageHeight:_0x3329f2}=_0x177ff9['config']['get']('pagination'),{top:_0x13c3cc,left:_0x44af67,bottom:_0x1e8ec,right:_0x6e1d28}=this['_configuredPaddings'];this['_pagesContainer']=new _0x494d81(_0x177ff9['locale']);const _0x510f37=this['_pagesContainer'];_0x510f37['set']('class',''),_0x510f37['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x1f2747,'width':_0x1f2747,'height':'calc(\x20'+_0x3329f2+'\x20-\x20'+_0x13c3cc+'\x20-\x20'+_0x1e8ec+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x6e1d28+'\x200\x20'+_0x44af67,'columnGap':'calc('+_0x44af67+'\x20+\x20'+_0x6e1d28+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x510f37['bindTemplate']['to']('class')}}),_0x510f37['render'](),_0x16e289['parentNode']['insertBefore'](_0x510f37['element'],_0x16e289['nextSibling']),this['listenTo'](_0x4a2ed7,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x20214d of this['editor']['editing']['view']['domRoots']['values']())if(_0x20214d['ownerDocument']['body']['contains'](_0x20214d))return _0x20214d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x2339fa=this['editor']['editing']['view'],_0x4559b3=this['_pagesContainer'],_0x4b878e=this['_getAttachedDomRoot']();if(!_0x4b878e)return Promise['resolve']();for(_0x4559b3['class']=['ck-reset','ck-pagination-view',..._0x4b878e['classList']]['join']('\x20');_0x4559b3['element']['firstChild'];)_0x4559b3['element']['firstChild']['remove']();const _0x45f384=Array['from'](_0x2339fa['domRoots']);_0x45f384['sort'](([,_0x556331],[,_0x5b60c0])=>_0x556331['compareDocumentPosition'](_0x5b60c0)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x529fbc,_0x2747f6]of _0x45f384){const _0x139b52=_0x2747f6['cloneNode'](!0x0);'attributeStyleMap'in _0x139b52&&_0x139b52['attributeStyleMap']['clear'](),_0x139b52['dataset']['rootName']=_0x529fbc,_0x139b52['className']='ck-content\x20ck-pagination_enabled',_0x139b52['removeAttribute']('id'),_0x139b52['tabIndex']=-0x1,_0x4559b3['element']['append'](_0x139b52);}const _0x52806e=Array['from'](_0x4559b3['element']['querySelectorAll']('img'));return function(_0x26870a){return Promise['all'](_0x26870a['map'](_0x1e36b1=>Promise['race']([b(_0x1e36b1),k(0x3e8)])));}(_0x52806e)['then'](()=>{for(const _0x4026a3 of _0x52806e['filter'](_0x55bcbe=>!_0x55bcbe['closest']('table')))if(_0x4026a3['offsetParent']){const _0x27099d=_0x1a5a8d['window']['getComputedStyle'](_0x4026a3),_0x2e6746=_0x1a5a8d['document']['createElement']('span');for(const _0x3ef029 of _0x27099d)_0x2e6746['style']['setProperty'](_0x3ef029,_0x27099d[_0x3ef029]);_0x2e6746['style']['backgroundImage']='url(\x20'+_0x4026a3['src']+'\x20)',_0x2e6746['style']['breakInside']='avoid','PICTURE'==_0x4026a3['parentElement']?.['tagName']?_0x4026a3['parentElement']['replaceWith'](_0x2e6746):_0x4026a3['replaceWith'](_0x2e6746);}return new Promise(_0x24fba6=>_0x1a5a8d['window']['requestAnimationFrame'](()=>_0x24fba6()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x254866=this['_pagesContainer']['element'];if(!_0x254866['ownerDocument']['body']['contains'](_0x254866))return;const _0x5d845b=new _0x4c30e5(_0x254866)['excludeScrollbarsAndBorders'](),_0x3a8e3a=Math['floor'](_0x5d845b['width']+0x64),_0x391493=L(_0x254866,Math['floor'](_0x5d845b['left']-_0x254866['scrollLeft']),_0x3a8e3a,_0x5d845b['height'])['map'](_0x714e62=>this['_mapPageStarterInfoToPageBreakInfo'](_0x714e62))['filter'](_0x50aabf=>!0x1!==_0x50aabf);_0x391493['every'](_0x276d5d=>!!_0x276d5d)&&(this['pageBreaks']=_0x391493);}['_mapPageStarterInfoToPageBreakInfo'](_0x57509c){const _0x369d7e=this['editor']['editing']['view'],_0x5284e6=this['editor']['editing']['mapper'],_0x3cb432=_0x369d7e['domConverter'],_0xf5d576=_0x57509c['path']['shift'](),_0x43e173=this['_pagesContainer']['element']['childNodes'][_0xf5d576]['dataset']['rootName'],_0x5dcc14=_0x369d7e['getDomRoot'](_0x43e173);if(!_0x5dcc14)return null;const _0x45602d=function(_0x494b31,_0x57d710){let _0x5841de=_0x494b31;for(const _0x23a421 of _0x57d710['path']){if(!_0x5841de)return null;_0x5841de=_0x5841de['childNodes'][_0x23a421];}return _0x5841de;}(_0x5dcc14,_0x57509c);if(!_0x45602d)return null;const _0x3d7647=_0x3cb432['domPositionToView'](_0x45602d,_0x57509c['textOffset']||0x0);return _0x3d7647?'manual'==_0x57509c['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x3d7647,_0x45602d):'text'==_0x57509c['type']&&_0x5284e6['toModelPosition'](_0x3d7647)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x3d7647,_0x45602d,_0x57509c['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x3d7647,_0x45602d,_0x57509c['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x5470bd,_0x4ba2ef){const _0x577fcc=this['editor']['model'],_0x454468=this['editor']['editing']['mapper']['toModelElement'](_0x5470bd['parent']),_0x5af79f=_0x577fcc['createRangeOn'](_0x454468);return new PageBreakInfo({'type':'manual','modelRange':_0x5af79f,'domNode':_0x4ba2ef,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x31cf91,_0x324834,_0x410f2f){const _0x5d7b70=this['editor']['model'],_0x52d755=this['editor']['editing']['mapper'],_0x2bf1e1=this['editor']['editing']['view']['domConverter'];if(_0x410f2f>=_0x324834['length'])return null;const _0x19dd72=_0x52d755['toModelPosition'](_0x31cf91),_0x5e4c32=_0x5d7b70['createRange'](_0x19dd72),_0x5928c0=_0x52d755['findMappedViewAncestor'](_0x31cf91),_0x4a8888=_0x2bf1e1['mapViewToDom'](_0x5928c0);return new PageBreakInfo({'type':'text','modelRange':_0x5e4c32,'domNode':_0x324834,'offset':w(_0x324834,_0x410f2f,_0x4a8888)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x6e497,_0x173298,_0x87a295){const _0x5ab412=this['editor']['model'],_0x4e1c04=this['editor']['editing'],_0x23c1fc=_0x4e1c04['mapper'],_0x2befe9=_0x4e1c04['view']['domConverter'],_0x44e38e=_0x23c1fc['findMappedViewAncestor'](_0x6e497),_0x8eecd7=_0x23c1fc['toModelElement'](_0x44e38e);if(!_0x8eecd7||_0x8eecd7['is']('rootElement'))return!0x1;const _0x4f7d43=function(_0xd64b0e){const _0x4bead2=_0xd64b0e['parent'],_0x3ea231=_0x4bead2['root']['document']['model'],_0x368f1f=_0x4bead2['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x54049c=null;for(const _0x468e19 of _0x368f1f){if(_0x468e19['is']('rootElement'))return _0x54049c;if(!_0x3ea231['createPositionBefore'](_0x468e19)['isTouching'](_0xd64b0e))return _0x54049c;_0x54049c=_0x468e19;}}(_0x5ab412['createPositionBefore'](_0x8eecd7)),_0x4dd68d=_0x4f7d43||_0x8eecd7;let _0x586ee1=_0x23c1fc['toViewElement'](_0x4dd68d),_0x32b07e=_0x5ab412['createRangeOn'](_0x4dd68d);const _0x196a23=_0x5ab412['createPositionBefore'](_0x4dd68d)['nodeBefore'];if(_0x196a23&&_0x196a23['is']('element','imageBlock')){const _0xf38515=_0x23c1fc['toViewElement'](_0x196a23),_0x28a2e0=_0x2befe9['mapViewToDom'](_0xf38515),_0x3312c6=_0x1a5a8d['window']['getComputedStyle'](_0x28a2e0)['float'];'left'!=_0x3312c6&&'right'!=_0x3312c6||(_0x32b07e=_0x5ab412['createRangeOn'](_0x196a23));}for(;_0x586ee1['parent']!==_0x586ee1['root']&&0x0===_0x586ee1['index'];)_0x586ee1=_0x586ee1['parent'];const _0x6ab73b=new _0x4c30e5(S(_0x173298)?_0x173298:y(_0x173298)),_0x334d33=_0x87a295?_0x6ab73b['height']-_0x87a295:0x0,_0x3e96b7=_0x2befe9['mapViewToDom'](_0x586ee1),_0x40e969=new _0x4c30e5(_0x3e96b7);return new PageBreakInfo({'type':'element','modelRange':_0x32b07e,'domNode':_0x3e96b7,'offset':Math['round'](_0x334d33)||_0x44e38e!=P(_0x6e497)?_0x334d33+_0x6ab73b['top']-_0x40e969['top']:0x0});}get['_configuredPaddings'](){const _0x5b2768=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5b2768);}static['_findPageStarterInfos'](_0x247f41,_0x37c451,_0x994f16,_0x34a614,_0x54cea0){return L(_0x247f41,_0x37c451,_0x994f16,_0x34a614,_0x54cea0);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0xc438d9,modelRange:_0x5a82a2,domNode:_0x3fd520,offset:_0x2a98ef}){this['type']=_0xc438d9,this['modelRange']=_0x5a82a2,this['_domNode']=_0x3fd520,this['_offset']=_0x2a98ef;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x48ec84=new _0x4c30e5(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x48ec84['top']+_0x48ec84['height']/0x2:_0x48ec84['top']+this['_offset'];}}function w(_0x25d6f7,_0x1fddeb,_0x4da6dc){const _0x499473=y(_0x25d6f7),_0x3af798=function(_0x22725e){const _0x3d68e6=_0x1a5a8d['document']['createRange']();return _0x3d68e6['selectNodeContents'](_0x22725e),_0x3d68e6;}(_0x4da6dc);let _0x3e72d2;_0x3e72d2=0x0==_0x1fddeb?x(_0x3af798['startContainer'],_0x3af798['startOffset'],_0x25d6f7['parentNode'],Array['from'](_0x25d6f7['parentNode']['childNodes'])['indexOf'](_0x25d6f7)):x(_0x3af798['startContainer'],_0x3af798['startOffset'],_0x25d6f7,_0x1fddeb);const _0x37cb2e=x(_0x25d6f7,_0x1fddeb,_0x3af798['endContainer'],_0x3af798['endOffset']),_0xc00314=new _0x4c30e5(_0x3e72d2)['bottom'];return(new _0x4c30e5(_0x37cb2e)['top']+_0xc00314)/0x2-new _0x4c30e5(_0x499473)['top'];}function P(_0x3b5165){let _0x259a05=_0x3b5165['parent'];for(;_0x259a05['is']('$text')||_0x259a05['is']('attributeElement');)_0x259a05=_0x259a05['parent'];return _0x259a05;}function b(_0x1d04af){return _0x1d04af['hasAttribute']('width')&&_0x1d04af['hasAttribute']('height')?Promise['resolve']():new Promise(_0x5e0ef3=>{function _0x1e1bc8(){_0x1d04af['removeEventListener']('load',_0x1e1bc8),_0x1d04af['removeEventListener']('error',_0x1e1bc8),_0x5e0ef3();}_0x1d04af['complete']?_0x5e0ef3():(_0x1d04af['addEventListener']('load',_0x1e1bc8),_0x1d04af['addEventListener']('error',_0x1e1bc8));});}function k(_0x5b6690){return new Promise(_0x308fa6=>setTimeout(_0x308fa6,_0x5b6690));}function y(_0x12fab0){const _0x4c3463=_0x1a5a8d['document']['createRange']();return _0x4c3463['selectNode'](_0x12fab0),_0x4c3463;}function v(_0x501c2f,_0x2a9398,_0x526239){const _0x3e2053=_0x1a5a8d['document']['createRange']();return _0x3e2053['setStart'](_0x501c2f,_0x2a9398),_0x3e2053['setEnd'](_0x501c2f,_0x526239),_0x3e2053;}function x(_0x2f37ff,_0x4b37a9,_0x44c59d,_0xc2ef74){const _0x2d20ee=_0x1a5a8d['document']['createRange']();return _0x2d20ee['setStart'](_0x2f37ff,_0x4b37a9),_0x2d20ee['setEnd'](_0x44c59d,_0xc2ef74),_0x2d20ee;}function L(_0x4fa170,_0x6379e9,_0x1984d3,_0x5dcee3,_0x268ff7){const _0x473107=[];for(const [_0x5143ff,_0x1fa914]of _0x4fa170['childNodes']['entries']()){let _0x25523e=[];S(_0x1fa914)&&_0x1fa914['offsetParent']&&['static','relative']['includes'](_0x1a5a8d['window']['getComputedStyle'](_0x1fa914)['position'])?_0x25523e=N(_0x1fa914,_0x5143ff,_0x6379e9,_0x1984d3,_0x5dcee3,_0x268ff7):I(_0x1fa914)&&(_0x25523e=_(_0x1fa914,_0x5143ff,_0x6379e9,_0x1984d3,_0x268ff7)),_0x25523e['length']&&(_0x473107['push'](..._0x25523e),_0x6379e9+=_0x25523e['length']*_0x1984d3,_0x268ff7=!0x1);}return _0x473107;}function N(_0x212fec,_0x40ef78,_0x22adeb,_0x1dddba,_0x5285c0,_0x241d15){const _0x7a9950=[];var _0x1079f2;if((_0x1079f2=_0x212fec['previousSibling'])&&S(_0x1079f2)&&Boolean(_0x1079f2['classList']['contains']('page-break')||_0x1079f2['closest']('.page-break'))&&(_0x7a9950['push']({'type':'manual','offset':0x0,'path':[_0x40ef78-0x1]}),_0x241d15=!0x0),'table-row'==_0x1a5a8d['window']['getComputedStyle'](_0x212fec)['display']){let _0x5c4884=0x0,_0x5ef644=!0x1;for(const _0x2a0d8a of _0x212fec['getClientRects']())_0x5c4884+=_0x2a0d8a['height'],_0x2a0d8a['left']>=_0x22adeb&&(_0x5ef644=!0x0);if(_0x5c4884<_0x5285c0&&_0x5ef644)return _0x241d15||_0x7a9950['push']({'type':'element','offset':0x0,'path':[_0x40ef78]}),_0x7a9950;}const _0x3c48eb=_0x212fec['closest']('figure.image');if(_0x3c48eb&&function(_0xd3d007){let _0x4ed2bd=!0x1;const _0x21660f=_0xd3d007['parentElement'],_0x1d8ac4=_0x21660f['dataset']['rootName'],_0x1d0c10=_0xd3d007['nextElementSibling'],_0x84229d=_0xd3d007['previousElementSibling'],_0x464320=_0x1d0c10&&_0x1a5a8d['window']['getComputedStyle'](_0x1d0c10)['float'],_0x5bf2e3=_0x1d0c10&&'ck-fake-selection-container'===_0x1d0c10['className'];!_0x1d8ac4||_0x1d0c10||_0x84229d||(_0x4ed2bd=!0x0),_0x1d8ac4&&!_0x84229d&&_0x5bf2e3&&(_0x4ed2bd=!0x0),_0x1d8ac4&&!_0x84229d&&'none'!==_0x464320&&(_0x4ed2bd=!0x0);if(_0x4ed2bd)return!0x1;return!0x0;}(_0x3c48eb)){const _0x212a43=_0x1a5a8d['window']['getComputedStyle'](_0x3c48eb)['float'];if('left'==_0x212a43||'right'==_0x212a43)return _0x7a9950;}const _0x445579=L(_0x212fec,_0x22adeb,_0x1dddba,_0x5285c0,_0x241d15);if(_0x445579['length']){for(const _0x3a7dfa of _0x445579)_0x7a9950['push']({'type':_0x3a7dfa['type'],'offset':_0x3a7dfa['offset'],'textOffset':_0x3a7dfa['textOffset'],'path':[_0x40ef78,..._0x3a7dfa['path']]}),_0x22adeb+=_0x1dddba,_0x241d15=!0x1;return _0x7a9950;}return _0x7a9950['push'](...function(_0xdcdd0b,_0x7769df,_0x37c679,_0x40d1cc,_0x433398){const _0x11e190=[];if('table-cell'==_0x1a5a8d['window']['getComputedStyle'](_0xdcdd0b)['display'])return[];const _0x4aefc6=[];for(const _0x6c8d8b of _0xdcdd0b['getClientRects']())if(_0x6c8d8b['left']>=_0x37c679){for(const _0x1c626f of _0x4aefc6)_0x1c626f['height']+=_0x6c8d8b['height'];_0x4aefc6['push']({'height':_0x6c8d8b['height']}),_0x37c679+=_0x40d1cc;}for(const _0x141efa of _0x4aefc6)_0x433398||_0x11e190['push']({'type':'element','offset':_0x141efa['height'],'textOffset':0x0,'path':[_0x7769df]}),_0x433398=!0x1;return _0x11e190;}(_0x212fec,_0x40ef78,_0x22adeb,_0x1dddba,_0x241d15)),_0x7a9950;}function _(_0x471c42,_0x5f4254,_0x1417c5,_0x3c7d5e,_0x3923c1){const _0x28387e=y(_0x471c42),_0x49009d=[];let _0x262a89=0x0;for(const _0x506ca3 of _0x28387e['getClientRects']())if(_0x506ca3['left']>=_0x1417c5){const _0x454e9d=R(_0x471c42,_0x262a89,_0x1417c5,_0x3c7d5e);_0x3923c1||_0x49009d['push']({'type':'text','path':[_0x5f4254],'textOffset':_0x454e9d}),_0x262a89=_0x454e9d,_0x1417c5+=_0x3c7d5e,_0x3923c1=!0x1;}return _0x49009d;}function R(_0x443b15,_0x3d3244,_0x306488,_0x32e628){let _0x521433=_0x3d3244,_0x599e74=_0x443b15['length'];for(;_0x599e74-_0x521433>0x1;){const _0x3ebb2f=Math['ceil']((_0x521433+_0x599e74)/0x2);E(v(_0x443b15,_0x521433,_0x3ebb2f),_0x306488,_0x32e628)?_0x599e74=_0x3ebb2f:_0x521433=_0x3ebb2f;}return _0x521433;}function E(_0x3a0a3d,_0x41b5b8,_0x544f5c){for(const _0x59c68b of _0x3a0a3d['getClientRects']())if(_0x59c68b['left']>=_0x41b5b8&&_0x59c68b['left']<_0x41b5b8+_0x544f5c)return!0x0;return!0x1;}function S(_0x3e1fff){return _0x3e1fff['nodeType']==Node['ELEMENT_NODE'];}function I(_0x4db03c){return _0x4db03c['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x140e00('px');class LineView extends _0x494d81{constructor(){super();const _0x2249ea=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x2249ea['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x2249ea['if']('isVisible','ck-hidden',_0x49420a=>!_0x49420a)],'style':{'left':_0x2249ea['to']('left',_0x450bea=>B(_0x450bea)),'top':_0x2249ea['to']('top',_0xcddfc=>B(_0xcddfc)),'width':_0x2249ea['to']('width',_0x468b5e=>B(_0x468b5e))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x8f33c9){this['_viewCollection']=_0x8f33c9['ui']['view']['body'];}['destroy'](){for(const _0x283221 of this['_hiddenLines'])_0x283221['destroy']();}['cleanLines'](){for(const _0x368806 of this['_visibleLines'])_0x368806['isVisible']=!0x1,this['_hiddenLines']['add'](_0x368806);this['_visibleLines']['clear']();}['showLine'](_0x452b71,_0x387ae5,_0x2086a0,_0x269174){let _0x5ce5b8;this['_hiddenLines']['size']?(_0x5ce5b8=_0x28c424(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x5ce5b8)):_0x5ce5b8=new LineView(),_0x5ce5b8['set']({'pageNumber':_0x269174,'left':_0x452b71,'top':_0x387ae5,'width':_0x2086a0}),_0x5ce5b8['isVisible']=!0x0,this['_viewCollection']['has'](_0x5ce5b8)||this['_viewCollection']['add'](_0x5ce5b8),this['_visibleLines']['add'](_0x5ce5b8);}['setViewCollection'](_0x3869e7){for(const _0x15db2b of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x15db2b)&&this['_viewCollection']['remove'](_0x15db2b);this['_viewCollection']=_0x3869e7;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x52dbff{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x5390d8,_0xa7b917,_0x1de817)=>{_0x1de817||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x1de817);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x2d8610){if(!this['isEnabled'])return;const _0x34dd90=_0x2d8610>0x1?this['_getPageBreakLineOffset'](_0x2d8610-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x34dd90-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x138cb4['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4e214f=this['editor'],_0x2ef514=this['_getAttachedDomRoot']();_0x2ef514?(this['_scrollableEditingRootDomAncestor']&&_0x4e214f['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x483566){let _0x4bc924=_0x483566;do{_0x4bc924=_0x4bc924['parentElement'];const _0x3f6467=_0x1a5a8d['window']['getComputedStyle'](_0x4bc924)['overflowY'];if('auto'==_0x3f6467||'scroll'==_0x3f6467)break;}while('BODY'!=_0x4bc924['tagName']);return _0x4bc924;}(_0x2ef514),_0x4e214f['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x335a93(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4e214f['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x10f6dc=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x10f6dc['ui']['view']['listenTo'](_0x1a5a8d['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x10f6dc['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x1d195d of this['editor']['editing']['view']['domRoots']['values']())if(_0x1d195d['ownerDocument']['body']['contains'](_0x1d195d))return _0x1d195d;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x555103=this['_getAttachedDomRoot'](),_0x950e31=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x555103||0x1==_0x950e31['length'])return void(this['pageNumber']=0x1);const _0x2ea005=new _0x4c30e5(_0x555103)['excludeScrollbarsAndBorders'](),_0xdce5c4=new _0x4c30e5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x18c72a=_0xdce5c4['top']+_0xdce5c4['height']/0x3;let _0x40cf8a=!0x1;const _0x10a4b5=[];for(let _0x38069e=0x1;_0x38069e<_0x950e31['length'];_0x38069e++){const _0x58a513=this['_getPageBreakLineOffset'](_0x38069e,_0xdce5c4);if(!_0x58a513)continue;const _0x5f3446=_0xdce5c4['top']+_0x58a513-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x10a4b5['push']({'pageOffsetTop':_0x5f3446,'domRootRect':_0x2ea005,'domScrollableRect':_0xdce5c4,'pageNumber':_0x38069e}),_0x5f3446>_0x18c72a&&!_0x40cf8a&&(this['pageNumber']=_0x38069e,_0x40cf8a=!0x0);}this['_renderPageBreakLines'](_0x10a4b5),_0x40cf8a||(this['pageNumber']=_0x950e31['length']);}['_renderPageBreakLines'](_0x201c44){const {scrollX:_0x3af79b,scrollY:_0x4de4cd}=_0x1a5a8d['window'];if(_0x201c44['length']){for(const {domScrollableRect:_0x1b0bba,pageOffsetTop:_0x58e05f,domRootRect:_0x5152a4,pageNumber:_0x2608ce}of _0x201c44)_0x1b0bba['top']<_0x58e05f&&_0x58e05f<_0x1b0bba['bottom']&&this['linesRepository']['showLine'](_0x5152a4['left']+_0x3af79b,_0x58e05f+_0x4de4cd,_0x5152a4['width'],_0x2608ce+0x1);}}['_getPageBreakLineOffset'](_0x3f3b5d,_0x4f09f1=null){const _0x2020ce=this['_paginationLookupPlugin']['pageBreaks'][_0x3f3b5d]['offset'];return _0x2020ce?(_0x4f09f1||(_0x4f09f1=new _0x4c30e5(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x2020ce-_0x4f09f1['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x271d54,_0xa1d7ae=!0x0){const _0xa89fce=this['editor']['editing']['view'];_0xa89fce['change'](_0xf8ab85=>{for(const _0x2a409e of _0xa89fce['document']['roots'])_0xa1d7ae?_0xf8ab85['addClass'](_0x271d54,_0x2a409e):_0xf8ab85['removeClass'](_0x271d54,_0x2a409e);});}}function O(_0x579a82,_0x82bfce,..._0x322321){const t=_0x579a82['t'];switch(_0x82bfce){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x322321);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x82bfce;}}class PaginationEditing extends _0x52dbff{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x98517b=this['editor']['plugins']['get']('Pagination'),_0x4175a7=this['editor']['plugins']['get'](PaginationLookup),_0x4ced6e=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x98517b),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x4ced6e),this['listenTo'](_0x4175a7,'change:pageBreaks',(_0x556406,_0x2bac99,_0x573373,_0x441f01)=>{this['totalPages']=_0x573373['length'],this['_updatePageBreakMarkers'](_0x573373,_0x441f01);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d4345=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54746f;for(const _0x5c241a in _0x2d4345){const _0x315d10=_0x5c241a,_0x13bc13=_0x2d4345[_0x315d10];if('paginationLicenseKeyValid'==_0x13bc13||'paginationLicenseKeyInvalid'==_0x13bc13||'paginationLicenseKeyExpired'==_0x13bc13||'paginationLicenseKeyDomainLimit'==_0x13bc13||'paginationLicenseKeyNotAllowed'==_0x13bc13||'paginationLicenseKeyEvaluationLimit'==_0x13bc13||'paginationLicenseKeyUsageLimit'==_0x13bc13){delete _0x2d4345[_0x315d10],_0x54746f=_0x13bc13,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x54746f&&_0x2d4345['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x54746f&&_0x2d4345['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x54746f&&_0x2d4345['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x54746f&&_0x2d4345['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x54746f&&_0x2d4345['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x54746f&&_0x2d4345['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x3bed3a){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x3bed3a));}['moveSelectionToPage'](_0x179736){if(!this['isEnabled'])return;const _0xe0f65c=this['editor'],_0x28d0d3=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x179736-0x1];_0x28d0d3&&_0xe0f65c['model']['change'](_0x112c45=>{switch(_0x28d0d3['type']){case'manual':{const _0x44ed81=_0xe0f65c['model']['schema']['getNearestSelectionRange'](_0x28d0d3['modelRange']['end'],'forward');_0x112c45['setSelection'](_0x44ed81);break;}case'element':{const _0x48675e=_0xe0f65c['model']['schema']['getNearestSelectionRange'](_0x28d0d3['modelRange']['start'],'forward');_0x112c45['setSelection'](_0x48675e);break;}case'text':{const _0x590ea3=_0x28d0d3['modelRange']['start'];if(_0x590ea3['textNode']&&'\x20'===_0x590ea3['textNode']['data'][_0x590ea3['offset']]){const _0x43f67e=_0x112c45['createPositionAt'](_0x590ea3['parent'],_0x590ea3['offset']+0x1);_0x112c45['setSelection'](_0x43f67e);}else _0x112c45['setSelection'](_0x28d0d3['modelRange']);}}_0xe0f65c['editing']['view']['focus']();});}['goToNextPage'](){const _0x51a776=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x51a776),this['scrollToPage'](_0x51a776);}['goToPreviousPage'](){const _0x35ee0e=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x35ee0e),this['scrollToPage'](_0x35ee0e);}['_updatePageBreakMarkers'](_0x53a486,_0x16fd62){const _0x1391b1=this['editor']['model'];this['isEnabled']&&_0x1391b1['change'](_0x6253d6=>{for(let _0xe9653=0x1;_0xe9653<_0x53a486['length'];_0xe9653++){const _0x1d8f4a=_0x53a486[_0xe9653]['modelRange'],_0x51ddc0='pagination:'+(_0xe9653+0x1);_0x1391b1['markers']['has'](_0x51ddc0)?_0x6253d6['updateMarker'](_0x51ddc0,{'range':_0x1d8f4a}):_0x6253d6['addMarker'](_0x51ddc0,{'range':_0x1d8f4a,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x377f79=_0x53a486['length'];_0x377f79<_0x16fd62['length'];_0x377f79++){const _0x1c8161='pagination:'+(_0x377f79+0x1);_0x1391b1['markers']['has'](_0x1c8161)&&_0x6253d6['removeMarker'](_0x1c8161);}});}['_setUpDataDowncastConversion'](){const _0x59bf0b='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0xa20a39=>{_0xa20a39['on']('addMarker:'+_0x59bf0b,(_0x1ffd52,{markerRange:_0x3cfcb4,markerName:_0x5c8766},_0x411219)=>{if(!_0x411219['options']['pagination'])return;if(!_0x411219['consumable']['consume'](_0x3cfcb4,_0x1ffd52['name']))return;const _0x4a8f0f=_0x3cfcb4['getContainedElement']();let _0x1da81a=_0x4a8f0f?_0x411219['mapper']['toViewElement'](_0x4a8f0f):null;if(!_0x1da81a){const _0x344473=_0x3cfcb4['start'];if(_0x411219['schema']['checkChild'](_0x344473,'$text')){const _0x121cf4=_0x411219['mapper']['toViewPosition'](_0x344473);_0x1da81a=_0x411219['writer']['createContainerElement']('span'),_0x1da81a['getFillerOffset']=()=>null,_0x411219['writer']['insert'](_0x121cf4,_0x1da81a);}else{const _0x104f58=_0x344473['nodeAfter'];_0x1da81a=_0x411219['mapper']['toViewElement'](_0x104f58);}}for(;_0x1da81a['parent']!==_0x1da81a['root']&&0x0===_0x1da81a['index'];)_0x1da81a=_0x1da81a['parent'];const _0x24264c=_0x5c8766['substring'](0xb);_0x1da81a['hasClass']('page-break')||(_0x411219['writer']['setStyle']('page-break-before','always',_0x1da81a),_0x411219['writer']['setAttribute']('data-pagination-page',_0x24264c,_0x1da81a),_0x411219['mapper']['bindElementToMarker'](_0x1da81a,_0x5c8766)),_0x1ffd52['stop']();});});}['_setupKeystrokes'](){const _0x303a4c=this['editor'];_0x303a4c['keystrokes']['set']('Shift+Pageup',(_0xabde46,_0x4ea0df)=>{this['goToPreviousPage'](),_0x4ea0df();}),_0x303a4c['keystrokes']['set']('Shift+Pagedown',(_0x539e76,_0x3cbb3a)=>{this['goToNextPage'](),_0x3cbb3a();}),_0x303a4c['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x303a4c['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x303a4c['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x303a4c['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x105793){return _0x105793<0x1&&(_0x105793=0x1),_0x105793>this['totalPages']&&(_0x105793=this['totalPages']),_0x105793;}}class PageNavigatorView extends _0x494d81{['pageNumberView'];constructor(_0x5c0cac){super(_0x5c0cac);const _0x3d4563=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x503c92(_0x5c0cac,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x1fa9cc=>O(_0x5c0cac,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x1fa9cc)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x45da31=>!_0x45da31),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x3d4563['if']('isEnabled','ck-disabled',_0x282580=>!_0x282580)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x3d4563['to']('totalPages')}]}]});}['render'](){super['render']();const _0x5915d8=this['pageNumberView']['element'],_0x2dc4f9=_0x2ffb61=>{this['pageNumberView']['element']['value']=String(_0x2ffb61);};_0x2dc4f9(this['pageNumber']),this['on']('change:pageNumber',(_0x2c174d,_0x512de2,_0x2a2265)=>{_0x2dc4f9(_0x2a2265);}),this['listenTo'](_0x5915d8,'keydown',(_0x15e228,_0x3fd810)=>{if('ArrowUp'===_0x3fd810['key']||'ArrowDown'===_0x3fd810['key'])return void _0x3fd810['stopPropagation']();if(_0x3fd810['keyCode']!==_0x165779['enter'])return;_0x3fd810['preventDefault']();const _0x1cf550=_0x5915d8['valueAsNumber'];Number['isNaN'](_0x1cf550)?_0x5915d8['value']=String(this['pageNumber']):(_0x5915d8['checkValidity']()?this['pageNumber']=_0x1cf550:_0x1cf550>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x5915d8['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x5915d8['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x5915d8,'blur',()=>{_0x5915d8['value']=String(this['pageNumber']);}),this['listenTo'](_0x5915d8,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}}class PaginationUI extends _0x52dbff{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1ce648=this['editor'],_0x4f062a=_0x1ce648['plugins']['get']('PaginationEditing');_0x1ce648['ui']['componentFactory']['add']('pageNavigation',_0x3785b2=>{const _0x455b5e=new PageNavigatorView(_0x3785b2);return _0x455b5e['bind']('pageNumber')['to'](_0x4f062a),_0x455b5e['bind']('totalPages')['to'](_0x4f062a),_0x455b5e['bind']('isEnabled')['to'](_0x4f062a),_0x455b5e['on']('navigation',(_0x206500,_0x3f8ab8)=>{_0x4f062a['moveSelectionToPage'](_0x3f8ab8),_0x4f062a['scrollToPage'](_0x3f8ab8);}),_0x455b5e;}),_0x1ce648['ui']['componentFactory']['add']('nextPage',_0x71f45=>{const _0x48f492=new _0x55a156(_0x71f45);return _0x48f492['isEnabled']=!0x0,_0x48f492['label']=O(_0x1ce648['locale'],'Go\x20to\x20next\x20page'),_0x48f492['icon']=_0x5b18e5,_0x48f492['tooltip']=!0x0,_0x48f492['keystroke']='Shift+PageDown',_0x48f492['bind']('isEnabled')['to'](_0x4f062a),this['listenTo'](_0x48f492,'execute',()=>{_0x4f062a['goToNextPage']();}),_0x48f492;}),_0x1ce648['ui']['componentFactory']['add']('previousPage',_0x2b3795=>{const _0x863cb8=new _0x55a156(_0x2b3795);return _0x863cb8['isEnabled']=!0x0,_0x863cb8['label']=O(_0x1ce648['locale'],'Go\x20to\x20previous\x20page'),_0x863cb8['icon']=_0x35a1d5,_0x863cb8['tooltip']=!0x0,_0x863cb8['keystroke']='Shift+PageUp',_0x863cb8['bind']('isEnabled')['to'](_0x4f062a),this['listenTo'](_0x863cb8,'execute',()=>{_0x4f062a['goToPreviousPage']();}),_0x863cb8;});}}class Pagination extends _0x52dbff{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x4a3132){super(_0x4a3132),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x871019=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x871019),this['bind']('totalPages')['to'](_0x871019),_0x138cb4['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x16e748){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x16e748);}}export{Pagination,PaginationRenderer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.5",
|
|
4
4
|
"description": "Pagination feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.5",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|