@ckeditor/ckeditor5-pagination 48.0.0-alpha.3 → 48.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x3b3191}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x1f564e,InputNumberView as _0x18cf51,ButtonView as _0x267dde}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5744ee,global as _0x30cf58,Rect as _0x599256,uid as _0x27f5cf,toUnit as _0x4da340,first as _0x3df9cd,env as _0x4d17da,ResizeObserver as _0x3d1394,keyCodes as _0x4f6fe2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x14f0e0}from'es-toolkit/compat';import{IconArrowDown as _0x1ba830,IconArrowUp as _0x4e16d8}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x3b3191{['_recalculatePageBreaksDebounced']=_0x14f0e0(()=>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 _0x5744ee('pagination-config-not-found',this['editor']['config']);const _0x4ae181=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x4ae181),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x1ea08c,_0x1bb2ef,_0x51a429)=>{_0x51a429&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x2afac6){const _0x17c3cc=_0xa50ad9([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]),_0x6785d3=0xc82cb1e,_0x89f677=0xc854e0e^_0x6785d3,_0x4c6cc7=window[_0xa50ad9([0x44,0x61,0x74,0x65])][_0xa50ad9([0x6e,0x6f,0x77])](),_0x1fbefa=_0x2afac6[_0xa50ad9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b25c8=new window[(_0xa50ad9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525c1e=>{_0x1fbefa[_0xa50ad9([0x6f,0x6e,0x63,0x65])](_0xa50ad9([0x72,0x65,0x61,0x64,0x79]),_0x525c1e);}),_0x42330f={[_0xa50ad9([0x6b,0x74,0x79])]:_0xa50ad9([0x45,0x43]),[_0xa50ad9([0x75,0x73,0x65])]:_0xa50ad9([0x73,0x69,0x67]),[_0xa50ad9([0x63,0x72,0x76])]:_0xa50ad9([0x50,0x2d,0x32,0x35,0x36]),[_0xa50ad9([0x78])]:_0xa50ad9([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]),[_0xa50ad9([0x79])]:_0xa50ad9([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]),[_0xa50ad9([0x61,0x6c,0x67])]:_0xa50ad9([0x45,0x53,0x32,0x35,0x36])},_0x5469a6=_0x1fbefa[_0xa50ad9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa50ad9([0x67,0x65,0x74])](_0xa50ad9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58853f(){let _0x7ac515,_0x3d3e0c=null,_0x3eb92b=null;try{if(_0x5469a6==_0xa50ad9([0x47,0x50,0x4c]))return _0xa50ad9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7ac515=_0x5764df(),!_0x7ac515)return _0xa50ad9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7ac515[_0xa50ad9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eb92b=_0x5434e7(_0x7ac515[_0xa50ad9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7ac515[_0xa50ad9([0x6a,0x74,0x69])])),await _0x40b619()?_0x6a37d5()?_0x285894()?_0xa50ad9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1248c4()?(_0x7ac515[_0xa50ad9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa50ad9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d3e0c=_0x218c00(_0xa50ad9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e76b8()):_0xa50ad9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa50ad9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa50ad9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa50ad9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x285894(){const _0x186fdd=[_0xa50ad9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa50ad9([0x74,0x72,0x69,0x61,0x6c])][_0xa50ad9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7ac515[_0xa50ad9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c6cc7/0x3e8:0xe10*_0x89f677;return _0x7ac515[_0xa50ad9([0x65,0x78,0x70])]<_0x186fdd;}function _0x6a37d5(){const _0x170f7d=_0x7ac515[_0xa50ad9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x170f7d&&(!!_0x170f7d[_0xa50ad9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa50ad9([0x2a]))||!!_0x170f7d[_0xa50ad9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa50ad9([0x50,0x41,0x47])));}function _0x1248c4(){const _0x1aa7c2=_0x7ac515[_0xa50ad9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1aa7c2||0x0==_0x1aa7c2[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56b388}=new URL(window[_0xa50ad9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1aa7c2[_0xa50ad9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b388))return!0x0;const _0x2c00b0=_0x56b388[_0xa50ad9([0x73,0x70,0x6c,0x69,0x74])](_0xa50ad9([0x2e]));return _0x1aa7c2[_0xa50ad9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ef364=>_0x5ef364[_0xa50ad9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa50ad9([0x2a])))[_0xa50ad9([0x6d,0x61,0x70])](_0x5170ff=>_0x5170ff[_0xa50ad9([0x73,0x70,0x6c,0x69,0x74])](_0xa50ad9([0x2e])))[_0xa50ad9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x749784=>_0x749784[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c00b0[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa50ad9([0x6d,0x61,0x70])](_0x8eab66=>Array(_0x2c00b0[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8eab66[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa50ad9([0x66,0x69,0x6c,0x6c])](_0x8eab66[0x0]===_0xa50ad9([0x2a])?_0xa50ad9([0x2a]):'')[_0xa50ad9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8eab66))[_0xa50ad9([0x73,0x6f,0x6d,0x65])](_0x1e2190=>_0x2c00b0[_0xa50ad9([0x65,0x76,0x65,0x72,0x79])]((_0x38d674,_0x270cb3)=>_0x1e2190[_0x270cb3]===_0x38d674||_0x1e2190[_0x270cb3]===_0xa50ad9([0x2a])));}function _0x4e76b8(){return _0x3d3e0c&&_0x3eb92b?new window[(_0xa50ad9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26b5b5,_0x284042)=>{_0x3d3e0c[_0xa50ad9([0x74,0x68,0x65,0x6e])](_0x26b5b5,_0x284042),_0x3eb92b[_0xa50ad9([0x74,0x68,0x65,0x6e])](_0x174610=>{_0x174610!=_0xa50ad9([0x56,0x61,0x6c,0x69,0x64])&&_0x26b5b5(_0x174610);},_0x284042);}):_0x3d3e0c||_0x3eb92b||_0xa50ad9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5434e7(_0x1b3aaa,_0x28f4eb){return new window[(_0xa50ad9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365175=>{if(_0x12b38b())return _0x365175(_0xa50ad9([0x56,0x61,0x6c,0x69,0x64]));_0x4c7253(),_0x1fbefa[_0xa50ad9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa50ad9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32b192=!0x1;const _0x1ed74a=_0x27f5cf();function _0x11020d(_0x520c4a){return!!_0x520c4a&&(typeof _0x520c4a===_0xa50ad9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x520c4a===_0xa50ad9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x520c4a[_0xa50ad9([0x74,0x68,0x65,0x6e])]===_0xa50ad9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x520c4a[_0xa50ad9([0x63,0x61,0x74,0x63,0x68])]===_0xa50ad9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43a3f7(_0x4e1c31){_0x4719b1(_0x4e1c31)[_0xa50ad9([0x74,0x68,0x65,0x6e])](_0x2374aa=>{if(!_0x2374aa||_0x2374aa[_0xa50ad9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa50ad9([0x6f,0x6b]))return _0xa50ad9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41321b(_0x46e6c9(_0x1ed74a+_0x28f4eb))!=_0x2374aa[_0xa50ad9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa50ad9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa50ad9([0x56,0x61,0x6c,0x69,0x64]);})[_0xa50ad9([0x74,0x68,0x65,0x6e])](_0x4008db=>(_0x1b4e34(),_0x4008db),()=>{const _0x4588ef=_0x20706f();return null==_0x4588ef?(_0x1b4e34(),_0xa50ad9([0x56,0x61,0x6c,0x69,0x64])):_0xa50ad9(_0x4c6cc7-_0x4588ef>(0x288e4f1e^_0x6785d3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa50ad9([0x74,0x68,0x65,0x6e])](_0x365175)[_0xa50ad9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x365175(_0xa50ad9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x165872=0xcb4259e^_0x6785d3;function _0x1b4e34(){const _0x4f126d=_0xa50ad9([0x6c,0x6c,0x63,0x74,0x2d])+_0x41321b(_0x46e6c9(_0x1b3aaa)),_0xbe9a12=_0xf69b72(_0x41321b(window[_0xa50ad9([0x4d,0x61,0x74,0x68])][_0xa50ad9([0x63,0x65,0x69,0x6c])](_0x4c6cc7/_0x165872)));window[_0xa50ad9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa50ad9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f126d,_0xbe9a12);}function _0x20706f(){const _0x45f718=_0xa50ad9([0x6c,0x6c,0x63,0x74,0x2d])+_0x41321b(_0x46e6c9(_0x1b3aaa)),_0x38e409=window[_0xa50ad9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa50ad9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45f718);return _0x38e409?window[_0xa50ad9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf69b72(_0x38e409),0x10)*_0x165872:null;}function _0x4719b1(_0x3a9b44){return new window[(_0xa50ad9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58d1c1,_0x373460)=>{_0x3a9b44[_0xa50ad9([0x74,0x68,0x65,0x6e])](_0x58d1c1,_0x373460),window[_0xa50ad9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x373460,0xc831fde^_0x6785d3);});}}_0x1fbefa[_0xa50ad9([0x6f,0x6e])](_0xa50ad9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22c36c,_0x1bd2da)=>{if(_0x1bd2da[0x0]!=_0x1b3aaa)return _0x365175(_0xa50ad9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bd2da[0x1]={..._0x1bd2da[0x1],[_0xa50ad9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ed74a};},{[_0xa50ad9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa50ad9([0x68,0x69,0x67,0x68])}),_0x1fbefa[_0xa50ad9([0x6f,0x6e])](_0xa50ad9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x146b02=>{_0x11020d(_0x146b02[_0xa50ad9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32b192=!0x0,_0x43a3f7(_0x146b02[_0xa50ad9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa50ad9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa50ad9([0x6c,0x6f,0x77])}),_0x3b25c8[_0xa50ad9([0x74,0x68,0x65,0x6e])](()=>{_0x32b192||_0x365175(_0xa50ad9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12b38b(){return _0x1fbefa[_0xa50ad9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa50ad9([0x76,0x69,0x65,0x77])][_0xa50ad9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa50ad9([0x61,0x75,0x74,0x6f]);}function _0x4c7253(){_0x1fbefa[_0xa50ad9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa50ad9([0x76,0x69,0x65,0x77])][_0xa50ad9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa50ad9([0x61,0x75,0x74,0x6f]);}}function _0x218c00(_0x2631d2){const _0x29ddbd=[new window[(_0xa50ad9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x433eeb=>setTimeout(_0x433eeb,0xc8bf5d2^_0x6785d3)),_0x3b25c8[_0xa50ad9([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa50ad9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3737ab=>{let _0xc4c1a=0x0;_0x1fbefa[_0xa50ad9([0x6d,0x6f,0x64,0x65,0x6c])][_0xa50ad9([0x6f,0x6e])](_0xa50ad9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ac344,_0x3cc30a)=>{_0x3cc30a[0x0][_0xa50ad9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc4c1a++,_0xc4c1a==(0xc82cef6^_0x6785d3)&&(_0x3737ab(),_0x3ac344[_0xa50ad9([0x6f,0x66,0x66])]());});}))];return window[_0xa50ad9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa50ad9([0x72,0x61,0x63,0x65])](_0x29ddbd)[_0xa50ad9([0x74,0x68,0x65,0x6e])](()=>_0x2631d2);}async function _0x1eedce(){await _0x3b25c8,_0x1fbefa[_0xa50ad9([0x6d,0x6f,0x64,0x65,0x6c])][_0xa50ad9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a64d3,_0x1fbefa[_0xa50ad9([0x6d,0x6f,0x64,0x65,0x6c])][_0xa50ad9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a64d3,_0x1fbefa[_0xa50ad9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa50ad9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b41e8(_0x1ec994){const _0x5ae41f=_0x1f4dfa();_0x1fbefa[_0x5ae41f]=_0xa50ad9([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ec994,_0x1ec994!=_0xa50ad9([0x56,0x61,0x6c,0x69,0x64])&&_0x1eedce();}function _0x1f4dfa(){const _0x492300=window[_0xa50ad9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa50ad9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa50ad9([0x6e,0x6f,0x77])]())[_0xa50ad9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa50ad9([0x2e]),'');let _0x22407e=_0xa50ad9([0x49]);for(let _0x496202=0x0;_0x496202<_0x492300[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x496202+=0x2){let _0x5dd307=window[_0xa50ad9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492300[_0xa50ad9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x496202,_0x496202+0x2));_0x5dd307>=_0x17c3cc[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5dd307-=_0x17c3cc[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22407e+=_0x17c3cc[_0x5dd307];}return _0x22407e;}function _0x5764df(){const _0x3a52ba=_0x5469a6[_0xa50ad9([0x73,0x70,0x6c,0x69,0x74])](_0xa50ad9([0x2e]));if(0x3!=_0x3a52ba[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x96d233(_0x3a52ba[0x1]);function _0x96d233(_0x3b5202){const _0x3c8bf0=_0x13ae18(_0x3b5202);return _0x3c8bf0&&_0x55839c()?_0x3c8bf0:null;function _0x55839c(){const _0x59cec2=_0x3c8bf0[_0xa50ad9([0x6a,0x74,0x69])],_0x28e62f=window[_0xa50ad9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59cec2[_0xa50ad9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59cec2[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15108f={..._0x3c8bf0,[_0xa50ad9([0x6a,0x74,0x69])]:_0x59cec2[_0xa50ad9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59cec2[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15108f[_0xa50ad9([0x76,0x63])],_0x46e6c9(_0x15108f)==_0x28e62f;}}}async function _0x40b619(){let _0x1ee1ad=!0x0;try{const _0x3f734=_0x5469a6[_0xa50ad9([0x73,0x70,0x6c,0x69,0x74])](_0xa50ad9([0x2e])),[_0x45efc4,_0x51699b,_0x4140d1]=_0x3f734;return _0x38ed7a(_0x45efc4),await _0x2e54f4(_0x45efc4,_0x51699b,_0x4140d1),_0x1ee1ad;}catch{return!0x1;}function _0x38ed7a(_0xc127db){const _0x619a23=_0x13ae18(_0xc127db);_0x619a23&&_0x619a23[_0xa50ad9([0x61,0x6c,0x67])]==_0xa50ad9([0x45,0x53,0x32,0x35,0x36])||(_0x1ee1ad=!0x1);}async function _0x2e54f4(_0x2e007f,_0x17ad61,_0x594436){const _0x2fb093=window[_0xa50ad9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa50ad9([0x66,0x72,0x6f,0x6d])](_0x48e0c4(_0x594436),_0x1f2f2f=>_0x1f2f2f[_0xa50ad9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8a419c=new window[(_0xa50ad9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa50ad9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e007f+_0xa50ad9([0x2e])+_0x17ad61),_0x2c5b20=window[_0xa50ad9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa50ad9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c5b20)return;const _0x9cc5a4=await _0x2c5b20[_0xa50ad9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa50ad9([0x6a,0x77,0x6b]),_0x42330f,{[_0xa50ad9([0x6e,0x61,0x6d,0x65])]:_0xa50ad9([0x45,0x43,0x44,0x53,0x41]),[_0xa50ad9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa50ad9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa50ad9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c5b20[_0xa50ad9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa50ad9([0x6e,0x61,0x6d,0x65])]:_0xa50ad9([0x45,0x43,0x44,0x53,0x41]),[_0xa50ad9([0x68,0x61,0x73,0x68])]:{[_0xa50ad9([0x6e,0x61,0x6d,0x65])]:_0xa50ad9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9cc5a4,_0x2fb093,_0x8a419c)||(_0x1ee1ad=!0x1);}}function _0x13ae18(_0x38df82){return _0x38df82[_0xa50ad9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa50ad9([0x65,0x79]))?JSON[_0xa50ad9([0x70,0x61,0x72,0x73,0x65])](_0x48e0c4(_0x38df82)):null;}function _0x48e0c4(_0x415464){return window[_0xa50ad9([0x61,0x74,0x6f,0x62])](_0x415464[_0xa50ad9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa50ad9([0x2b]))[_0xa50ad9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa50ad9([0x2f])));}function _0x46e6c9(_0xdaf208){let _0x11e631=0x1505;function _0x3d5ec3(_0x5be3c1){for(let _0x4fade7=0x0;_0x4fade7<_0x5be3c1[_0xa50ad9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fade7++){const _0x5aebbb=_0x5be3c1[_0xa50ad9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4fade7);_0x11e631=(_0x11e631<<0x5)+_0x11e631+_0x5aebbb,_0x11e631&=_0x11e631;}}function _0xd0e7dc(_0x40e423){Array[_0xa50ad9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40e423)?_0x40e423[_0xa50ad9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd0e7dc):_0x40e423&&typeof _0x40e423==_0xa50ad9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa50ad9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40e423)[_0xa50ad9([0x73,0x6f,0x72,0x74])]()[_0xa50ad9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1437f6,_0x1940f5])=>{_0x3d5ec3(_0x1437f6),_0xd0e7dc(_0x1940f5);}):_0x3d5ec3(window[_0xa50ad9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40e423));}return _0xd0e7dc(_0xdaf208),_0x11e631>>>0x0;}function _0x41321b(_0x27f1ab){return _0x27f1ab[_0xa50ad9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa50ad9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa50ad9([0x30]));}function _0xf69b72(_0x3ce4f6){return _0x3ce4f6[_0xa50ad9([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa50ad9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa50ad9([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a64d3(){}function _0xa50ad9(_0x595a1d){return _0x595a1d['map'](_0x3f1c2c=>String['fromCharCode'](_0x3f1c2c))['join']('');}_0x4b41e8(await _0x58853f());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x4ec227=this['editor'],_0x1a037e=_0x4ec227['editing']['view'],_0x3c8e9e=this['_getAttachedDomRoot']();if(!_0x3c8e9e||0x0===_0x3c8e9e['childElementCount'])return void _0x4ec227['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x29b400,pageHeight:_0x56a50f}=_0x4ec227['config']['get']('pagination'),{top:_0x148819,left:_0x4504f6,bottom:_0x270960,right:_0x94b872}=this['_configuredPaddings'];this['_pagesContainer']=new _0x1f564e(_0x4ec227['locale']);const _0x571cfb=this['_pagesContainer'];_0x571cfb['set']('class',''),_0x571cfb['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x29b400,'width':_0x29b400,'height':'calc(\x20'+_0x56a50f+'\x20-\x20'+_0x148819+'\x20-\x20'+_0x270960+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x94b872+'\x200\x20'+_0x4504f6,'columnGap':'calc('+_0x4504f6+'\x20+\x20'+_0x94b872+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x571cfb['bindTemplate']['to']('class')}}),_0x571cfb['render'](),_0x3c8e9e['parentNode']['insertBefore'](_0x571cfb['element'],_0x3c8e9e['nextSibling']),this['listenTo'](_0x1a037e,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x280eff of this['editor']['editing']['view']['domRoots']['values']())if(_0x280eff['ownerDocument']['body']['contains'](_0x280eff))return _0x280eff;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x59d0ff=this['editor']['editing']['view'],_0x281448=this['_pagesContainer'],_0x51e612=this['_getAttachedDomRoot']();if(!_0x51e612)return Promise['resolve']();for(_0x281448['class']=['ck-reset','ck-pagination-view',..._0x51e612['classList']]['join']('\x20');_0x281448['element']['firstChild'];)_0x281448['element']['firstChild']['remove']();const _0x2a4d03=Array['from'](_0x59d0ff['domRoots']);_0x2a4d03['sort'](([,_0x70d8ed],[,_0x425fb1])=>_0x70d8ed['compareDocumentPosition'](_0x425fb1)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x1e3487,_0x2231ba]of _0x2a4d03){const _0x3c534a=_0x2231ba['cloneNode'](!0x0);'attributeStyleMap'in _0x3c534a&&_0x3c534a['attributeStyleMap']['clear'](),_0x3c534a['dataset']['rootName']=_0x1e3487,_0x3c534a['className']='ck-content\x20ck-pagination_enabled',_0x3c534a['removeAttribute']('id'),_0x3c534a['tabIndex']=-0x1,_0x281448['element']['append'](_0x3c534a);}const _0x1ba517=Array['from'](_0x281448['element']['querySelectorAll']('img'));return function(_0x43bf88){return Promise['all'](_0x43bf88['map'](_0x19a87d=>Promise['race']([k(_0x19a87d),v(0x3e8)])));}(_0x1ba517)['then'](()=>{for(const _0x107e51 of _0x1ba517['filter'](_0x8df2af=>!_0x8df2af['closest']('table')))if(_0x107e51['offsetParent']){const _0x238328=_0x30cf58['window']['getComputedStyle'](_0x107e51),_0x36a520=_0x30cf58['document']['createElement']('span');for(const _0x35544f of _0x238328)_0x36a520['style']['setProperty'](_0x35544f,_0x238328[_0x35544f]);_0x36a520['style']['backgroundImage']='url(\x20'+_0x107e51['src']+'\x20)',_0x36a520['style']['breakInside']='avoid','PICTURE'==_0x107e51['parentElement']?.['tagName']?_0x107e51['parentElement']['replaceWith'](_0x36a520):_0x107e51['replaceWith'](_0x36a520);}return new Promise(_0x37a635=>_0x30cf58['window']['requestAnimationFrame'](()=>_0x37a635()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x543eb6=this['_pagesContainer']['element'];if(!_0x543eb6['ownerDocument']['body']['contains'](_0x543eb6))return;const _0x20a2fb=new _0x599256(_0x543eb6)['excludeScrollbarsAndBorders'](),_0x2a4684=Math['floor'](_0x20a2fb['width']+0x64),_0x374316=_(_0x543eb6,Math['floor'](_0x20a2fb['left']-_0x543eb6['scrollLeft']),_0x2a4684,_0x20a2fb['height'])['map'](_0x6d2560=>this['_mapPageStarterInfoToPageBreakInfo'](_0x6d2560))['filter'](_0x1e932c=>!0x1!==_0x1e932c);_0x374316['every'](_0x320ea9=>!!_0x320ea9)&&(this['pageBreaks']=_0x374316);}['_mapPageStarterInfoToPageBreakInfo'](_0x11a704){const _0x4d68ab=this['editor']['editing']['view'],_0x69cc3b=this['editor']['editing']['mapper'],_0x930e01=_0x4d68ab['domConverter'],_0x2b230a=_0x11a704['path']['shift'](),_0x1a020d=this['_pagesContainer']['element']['childNodes'][_0x2b230a]['dataset']['rootName'],_0x20f77e=_0x4d68ab['getDomRoot'](_0x1a020d);if(!_0x20f77e)return null;const _0x3702c4=function(_0x3758d5,_0x209bb5){let _0x55e9a2=_0x3758d5;for(const _0x3f6fd4 of _0x209bb5['path']){if(!_0x55e9a2)return null;_0x55e9a2=_0x55e9a2['childNodes'][_0x3f6fd4];}return _0x55e9a2;}(_0x20f77e,_0x11a704);if(!_0x3702c4)return null;const _0x4c243c=_0x930e01['domPositionToView'](_0x3702c4,_0x11a704['textOffset']||0x0);return _0x4c243c?'manual'==_0x11a704['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x4c243c,_0x3702c4):'text'==_0x11a704['type']&&_0x69cc3b['toModelPosition'](_0x4c243c)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x4c243c,_0x3702c4,_0x11a704['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x4c243c,_0x3702c4,_0x11a704['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x26fdb3,_0x4e0c88){const _0x57749c=this['editor']['model'],_0xf78091=this['editor']['editing']['mapper']['toModelElement'](_0x26fdb3['parent']),_0x2061c7=_0x57749c['createRangeOn'](_0xf78091);return new b({'type':'manual','modelRange':_0x2061c7,'domNode':_0x4e0c88,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x57fd28,_0x46d0ca,_0x51e32e){const _0x456e93=this['editor']['model'],_0xad703b=this['editor']['editing']['mapper'],_0x11c355=this['editor']['editing']['view']['domConverter'];if(_0x51e32e>=_0x46d0ca['length'])return null;const _0x3f562e=_0xad703b['toModelPosition'](_0x57fd28),_0x2dbdd2=_0x456e93['createRange'](_0x3f562e),_0x28ed03=_0xad703b['findMappedViewAncestor'](_0x57fd28),_0x5ac7c4=_0x11c355['mapViewToDom'](_0x28ed03);return new b({'type':'text','modelRange':_0x2dbdd2,'domNode':_0x46d0ca,'offset':P(_0x46d0ca,_0x51e32e,_0x5ac7c4)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x1b483b,_0x19213c,_0x5a74c1){const _0x5d825b=this['editor']['model'],_0x20c759=this['editor']['editing'],_0x393a39=_0x20c759['mapper'],_0x38ab4f=_0x20c759['view']['domConverter'],_0x4aeeed=_0x393a39['findMappedViewAncestor'](_0x1b483b),_0x49d192=_0x393a39['toModelElement'](_0x4aeeed);if(!_0x49d192||_0x49d192['is']('element','$root'))return!0x1;const _0x200fed=function(_0x471562){const _0x24e0fd=_0x471562['parent'],_0xe678df=_0x24e0fd['root']['document']['model'],_0x105c60=_0x24e0fd['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x3f6992=null;for(const _0x4bba20 of _0x105c60){if(_0x4bba20['is']('rootElement'))return _0x3f6992;if(!_0xe678df['createPositionBefore'](_0x4bba20)['isTouching'](_0x471562))return _0x3f6992;_0x3f6992=_0x4bba20;}}(_0x5d825b['createPositionBefore'](_0x49d192)),_0x1d8216=_0x200fed||_0x49d192;let _0x3e61f4=_0x393a39['toViewElement'](_0x1d8216),_0x7204f5=_0x5d825b['createRangeOn'](_0x1d8216);const _0x2c262e=_0x5d825b['createPositionBefore'](_0x1d8216)['nodeBefore'];if(_0x2c262e&&_0x2c262e['is']('element','imageBlock')){const _0x442db2=_0x393a39['toViewElement'](_0x2c262e),_0x542268=_0x38ab4f['mapViewToDom'](_0x442db2),_0x3ce156=_0x30cf58['window']['getComputedStyle'](_0x542268)['float'];'left'!=_0x3ce156&&'right'!=_0x3ce156||(_0x7204f5=_0x5d825b['createRangeOn'](_0x2c262e));}for(;_0x3e61f4['parent']!==_0x3e61f4['root']&&0x0===_0x3e61f4['index'];)_0x3e61f4=_0x3e61f4['parent'];const _0x5af89c=new _0x599256(I(_0x19213c)?_0x19213c:x(_0x19213c)),_0x19cca6=_0x5a74c1?_0x5af89c['height']-_0x5a74c1:0x0,_0x36f6d0=_0x38ab4f['mapViewToDom'](_0x3e61f4),_0x25abe0=new _0x599256(_0x36f6d0);return new b({'type':'element','modelRange':_0x7204f5,'domNode':_0x36f6d0,'offset':Math['round'](_0x19cca6)||_0x4aeeed!=y(_0x1b483b)?_0x19cca6+_0x5af89c['top']-_0x25abe0['top']:0x0});}get['_configuredPaddings'](){const _0x19e548=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x19e548);}static['_findPageStarterInfos'](_0x58efcb,_0x4cfa44,_0x4fd806,_0x4a8148,_0x3a5a9f){return _(_0x58efcb,_0x4cfa44,_0x4fd806,_0x4a8148,_0x3a5a9f);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x443668,modelRange:_0x76092d,domNode:_0x505b6f,offset:_0xac84cb}){this['type']=_0x443668,this['modelRange']=_0x76092d,this['_domNode']=_0x505b6f,this['_offset']=_0xac84cb;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x311254=new _0x599256(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x311254['top']+_0x311254['height']/0x2:_0x311254['top']+this['_offset'];}}function P(_0x42e835,_0x3043fe,_0x3f918e){const _0x28309a=x(_0x42e835),_0x3d20c5=function(_0x2d63d9){const _0x1761e7=_0x30cf58['document']['createRange']();return _0x1761e7['selectNodeContents'](_0x2d63d9),_0x1761e7;}(_0x3f918e);let _0x302dc9;_0x302dc9=0x0==_0x3043fe?L(_0x3d20c5['startContainer'],_0x3d20c5['startOffset'],_0x42e835['parentNode'],Array['from'](_0x42e835['parentNode']['childNodes'])['indexOf'](_0x42e835)):L(_0x3d20c5['startContainer'],_0x3d20c5['startOffset'],_0x42e835,_0x3043fe);const _0x43c1e5=L(_0x42e835,_0x3043fe,_0x3d20c5['endContainer'],_0x3d20c5['endOffset']),_0x5b8935=new _0x599256(_0x302dc9)['bottom'];return(new _0x599256(_0x43c1e5)['top']+_0x5b8935)/0x2-new _0x599256(_0x28309a)['top'];}function y(_0x37b653){let _0x264714=_0x37b653['parent'];for(;_0x264714['is']('$text')||_0x264714['is']('attributeElement');)_0x264714=_0x264714['parent'];return _0x264714;}function k(_0x386ae8){return _0x386ae8['hasAttribute']('width')&&_0x386ae8['hasAttribute']('height')?Promise['resolve']():new Promise(_0xf063cb=>{function _0x4b5cef(){_0x386ae8['removeEventListener']('load',_0x4b5cef),_0x386ae8['removeEventListener']('error',_0x4b5cef),_0xf063cb();}_0x386ae8['complete']?_0xf063cb():(_0x386ae8['addEventListener']('load',_0x4b5cef),_0x386ae8['addEventListener']('error',_0x4b5cef));});}function v(_0x177757){return new Promise(_0x21ca8e=>setTimeout(_0x21ca8e,_0x177757));}function x(_0x443443){const _0x73db18=_0x30cf58['document']['createRange']();return _0x73db18['selectNode'](_0x443443),_0x73db18;}function N(_0x5e1e74,_0x5393e3,_0x4b14c8){const _0x17863b=_0x30cf58['document']['createRange']();return _0x17863b['setStart'](_0x5e1e74,_0x5393e3),_0x17863b['setEnd'](_0x5e1e74,_0x4b14c8),_0x17863b;}function L(_0x505e7f,_0x52813b,_0x10ac54,_0x3f7f61){const _0x145866=_0x30cf58['document']['createRange']();return _0x145866['setStart'](_0x505e7f,_0x52813b),_0x145866['setEnd'](_0x10ac54,_0x3f7f61),_0x145866;}function _(_0x5db22c,_0x3271bf,_0x244bcd,_0x3a9911,_0x4c7b9c){const _0x3e2f13=[];for(const [_0x1664e1,_0x2d6318]of _0x5db22c['childNodes']['entries']()){let _0x2ac611=[];I(_0x2d6318)&&_0x2d6318['offsetParent']&&['static','relative']['includes'](_0x30cf58['window']['getComputedStyle'](_0x2d6318)['position'])?_0x2ac611=S(_0x2d6318,_0x1664e1,_0x3271bf,_0x244bcd,_0x3a9911,_0x4c7b9c):O(_0x2d6318)&&(_0x2ac611=E(_0x2d6318,_0x1664e1,_0x3271bf,_0x244bcd,_0x4c7b9c)),_0x2ac611['length']&&(_0x3e2f13['push'](..._0x2ac611),_0x3271bf+=_0x2ac611['length']*_0x244bcd,_0x4c7b9c=!0x1);}return _0x3e2f13;}function S(_0x44f09d,_0x389d5d,_0x5d9bca,_0x2293b1,_0x301bca,_0x2fb2ff){const _0x26ca91=[];var _0x3e2cd6;if((_0x3e2cd6=_0x44f09d['previousSibling'])&&I(_0x3e2cd6)&&Boolean(_0x3e2cd6['classList']['contains']('page-break')||_0x3e2cd6['closest']('.page-break'))&&(_0x26ca91['push']({'type':'manual','offset':0x0,'path':[_0x389d5d-0x1]}),_0x2fb2ff=!0x0),'table-row'==_0x30cf58['window']['getComputedStyle'](_0x44f09d)['display']){let _0x53e18a=0x0,_0x107de8=!0x1;for(const _0x22de8c of _0x44f09d['getClientRects']())_0x53e18a+=_0x22de8c['height'],_0x22de8c['left']>=_0x5d9bca&&(_0x107de8=!0x0);if(_0x53e18a<_0x301bca&&_0x107de8)return _0x2fb2ff||_0x26ca91['push']({'type':'element','offset':0x0,'path':[_0x389d5d]}),_0x26ca91;}const _0xd325ce=_0x44f09d['closest']('figure.image');if(_0xd325ce&&function(_0x5cc1d7){let _0x3971b3=!0x1;const _0x22a3f2=_0x5cc1d7['parentElement'],_0x3b8ba4=_0x22a3f2['dataset']['rootName'],_0x1ee5bb=_0x5cc1d7['nextElementSibling'],_0x18ca8b=_0x5cc1d7['previousElementSibling'],_0x2b4435=_0x1ee5bb&&_0x30cf58['window']['getComputedStyle'](_0x1ee5bb)['float'],_0xba65e2=_0x1ee5bb&&'ck-fake-selection-container'===_0x1ee5bb['className'];!_0x3b8ba4||_0x1ee5bb||_0x18ca8b||(_0x3971b3=!0x0),_0x3b8ba4&&!_0x18ca8b&&_0xba65e2&&(_0x3971b3=!0x0),_0x3b8ba4&&!_0x18ca8b&&'none'!==_0x2b4435&&(_0x3971b3=!0x0);if(_0x3971b3)return!0x1;return!0x0;}(_0xd325ce)){const _0x133d47=_0x30cf58['window']['getComputedStyle'](_0xd325ce)['float'];if('left'==_0x133d47||'right'==_0x133d47)return _0x26ca91;}const _0x220c5d=_(_0x44f09d,_0x5d9bca,_0x2293b1,_0x301bca,_0x2fb2ff);if(_0x220c5d['length']){for(const _0x2113bf of _0x220c5d)_0x26ca91['push']({'type':_0x2113bf['type'],'offset':_0x2113bf['offset'],'textOffset':_0x2113bf['textOffset'],'path':[_0x389d5d,..._0x2113bf['path']]}),_0x5d9bca+=_0x2293b1,_0x2fb2ff=!0x1;return _0x26ca91;}return _0x26ca91['push'](...function(_0x8dc489,_0x2524f1,_0x57bb07,_0x104866,_0x4b0823){const _0x340b14=[];if('table-cell'==_0x30cf58['window']['getComputedStyle'](_0x8dc489)['display'])return[];const _0x5f19d9=[];for(const _0x34bbfe of _0x8dc489['getClientRects']())if(_0x34bbfe['left']>=_0x57bb07){for(const _0x352965 of _0x5f19d9)_0x352965['height']+=_0x34bbfe['height'];_0x5f19d9['push']({'height':_0x34bbfe['height']}),_0x57bb07+=_0x104866;}for(const _0x4f9a8f of _0x5f19d9)_0x4b0823||_0x340b14['push']({'type':'element','offset':_0x4f9a8f['height'],'textOffset':0x0,'path':[_0x2524f1]}),_0x4b0823=!0x1;return _0x340b14;}(_0x44f09d,_0x389d5d,_0x5d9bca,_0x2293b1,_0x2fb2ff)),_0x26ca91;}function E(_0x416e84,_0x4240e7,_0x1335b4,_0x121600,_0x7597ad){const _0x479b52=x(_0x416e84),_0x115d42=[];let _0x5219df=0x0;for(const _0x4a1903 of _0x479b52['getClientRects']())if(_0x4a1903['left']>=_0x1335b4){const _0x2d991e=R(_0x416e84,_0x5219df,_0x1335b4,_0x121600);_0x7597ad||_0x115d42['push']({'type':'text','path':[_0x4240e7],'textOffset':_0x2d991e}),_0x5219df=_0x2d991e,_0x1335b4+=_0x121600,_0x7597ad=!0x1;}return _0x115d42;}function R(_0x25b230,_0x58c137,_0x1a390d,_0x25383b){let _0x591246=_0x58c137,_0x3e8fc6=_0x25b230['length'];for(;_0x3e8fc6-_0x591246>0x1;){const _0x585f70=Math['ceil']((_0x591246+_0x3e8fc6)/0x2);K(N(_0x25b230,_0x591246,_0x585f70),_0x1a390d,_0x25383b)?_0x3e8fc6=_0x585f70:_0x591246=_0x585f70;}return _0x591246;}function K(_0xf3654d,_0x466ec1,_0x29938f){for(const _0x3eb8e4 of _0xf3654d['getClientRects']())if(_0x3eb8e4['left']>=_0x466ec1&&_0x3eb8e4['left']<_0x466ec1+_0x29938f)return!0x0;return!0x1;}function I(_0x47ebb5){return _0x47ebb5['nodeType']==Node['ELEMENT_NODE'];}function O(_0x323d78){return _0x323d78['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4da340('px');class T extends _0x1f564e{constructor(){super();const _0x2171f1=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x2171f1['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x2171f1['if']('isVisible','ck-hidden',_0x546058=>!_0x546058)],'style':{'left':_0x2171f1['to']('left',_0x114fe0=>B(_0x114fe0)),'top':_0x2171f1['to']('top',_0x4e14b7=>B(_0x4e14b7)),'width':_0x2171f1['to']('width',_0x1e4809=>B(_0x1e4809))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x182582){this['_viewCollection']=_0x182582['ui']['view']['body'];}['destroy'](){for(const _0x1308b4 of this['_hiddenLines'])_0x1308b4['destroy']();}['cleanLines'](){for(const _0x8227e of this['_visibleLines'])_0x8227e['isVisible']=!0x1,this['_hiddenLines']['add'](_0x8227e);this['_visibleLines']['clear']();}['showLine'](_0x5a9f13,_0xafde5f,_0x4e29ff,_0x33712c){let _0x2b28ec;this['_hiddenLines']['size']?(_0x2b28ec=_0x3df9cd(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x2b28ec)):_0x2b28ec=new T(),_0x2b28ec['set']({'pageNumber':_0x33712c,'left':_0x5a9f13,'top':_0xafde5f,'width':_0x4e29ff}),_0x2b28ec['isVisible']=!0x0,this['_viewCollection']['has'](_0x2b28ec)||this['_viewCollection']['add'](_0x2b28ec),this['_visibleLines']['add'](_0x2b28ec);}['setViewCollection'](_0x40daf7){for(const _0x17c3c3 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x17c3c3)&&this['_viewCollection']['remove'](_0x17c3c3);this['_viewCollection']=_0x40daf7;}}const D='ck-pagination_enabled';class $ extends _0x3b3191{['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 A(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'](D),this['on']('change:isEnabled',(_0x2d840c,_0x3bf540,_0x3afe2c)=>{_0x3afe2c||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x3afe2c);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x2d2a14){if(!this['isEnabled'])return;const _0x257b70=_0x2d2a14>0x1?this['_getPageBreakLineOffset'](_0x2d2a14-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x257b70-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x4d17da['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x51d239=this['editor'],_0x2eda9d=this['_getAttachedDomRoot']();_0x2eda9d?(this['_scrollableEditingRootDomAncestor']&&_0x51d239['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x1ed678){let _0x334154=_0x1ed678;do{_0x334154=_0x334154['parentElement'];const _0x44971e=_0x30cf58['window']['getComputedStyle'](_0x334154)['overflowY'];if('auto'==_0x44971e||'scroll'==_0x44971e)break;}while('BODY'!=_0x334154['tagName']);return _0x334154;}(_0x2eda9d),_0x51d239['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3d1394(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x51d239['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x3ee85e=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x3ee85e['ui']['view']['listenTo'](_0x30cf58['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x3ee85e['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x541fc9 of this['editor']['editing']['view']['domRoots']['values']())if(_0x541fc9['ownerDocument']['body']['contains'](_0x541fc9))return _0x541fc9;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x17d1f3=this['_getAttachedDomRoot'](),_0x5c5cae=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x17d1f3||0x1==_0x5c5cae['length'])return void(this['pageNumber']=0x1);const _0x38a23f=new _0x599256(_0x17d1f3)['excludeScrollbarsAndBorders'](),_0x39886d=new _0x599256(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x5710ca=_0x39886d['top']+_0x39886d['height']/0x3;let _0x422b93=!0x1;const _0x2cfc59=[];for(let _0x287514=0x1;_0x287514<_0x5c5cae['length'];_0x287514++){const _0x422768=this['_getPageBreakLineOffset'](_0x287514,_0x39886d);if(!_0x422768)continue;const _0x463155=_0x39886d['top']+_0x422768-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x2cfc59['push']({'pageOffsetTop':_0x463155,'domRootRect':_0x38a23f,'domScrollableRect':_0x39886d,'pageNumber':_0x287514}),_0x463155>_0x5710ca&&!_0x422b93&&(this['pageNumber']=_0x287514,_0x422b93=!0x0);}this['_renderPageBreakLines'](_0x2cfc59),_0x422b93||(this['pageNumber']=_0x5c5cae['length']);}['_renderPageBreakLines'](_0x38dd50){const {scrollX:_0x9cde1e,scrollY:_0xdb65a3}=_0x30cf58['window'];if(_0x38dd50['length']){for(const {domScrollableRect:_0x445851,pageOffsetTop:_0x48ebf1,domRootRect:_0x41db25,pageNumber:_0x7ba639}of _0x38dd50)_0x445851['top']<_0x48ebf1&&_0x48ebf1<_0x445851['bottom']&&this['linesRepository']['showLine'](_0x41db25['left']+_0x9cde1e,_0x48ebf1+_0xdb65a3,_0x41db25['width'],_0x7ba639+0x1);}}['_getPageBreakLineOffset'](_0x50259b,_0x51cfa7=null){const _0xa25f36=this['_paginationLookupPlugin']['pageBreaks'][_0x50259b]['offset'];return _0xa25f36?(_0x51cfa7||(_0x51cfa7=new _0x599256(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xa25f36-_0x51cfa7['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x44b552,_0x1c3b15=!0x0){const _0x21c0e1=this['editor']['editing']['view'];_0x21c0e1['change'](_0x2edbdb=>{for(const _0x17930e of _0x21c0e1['document']['roots'])_0x1c3b15?_0x2edbdb['addClass'](_0x44b552,_0x17930e):_0x2edbdb['removeClass'](_0x44b552,_0x17930e);});}}function G(_0x4e88ef,_0x4ea960,..._0x248d34){const t=_0x4e88ef['t'];switch(_0x4ea960){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)',..._0x248d34);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 _0x4ea960;}}class C extends _0x3b3191{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x36b9b6=this['editor']['plugins']['get']('Pagination'),_0x4cea53=this['editor']['plugins']['get'](w),_0x25a158=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x36b9b6),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x25a158),this['listenTo'](_0x4cea53,'change:pageBreaks',(_0x4c8d77,_0x1a02ae,_0x8225a1,_0x47e896)=>{this['totalPages']=_0x8225a1['length'],this['_updatePageBreakMarkers'](_0x8225a1,_0x47e896);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b80ee=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x466ead;for(const _0xaff6e in _0x1b80ee){const _0x54c11d=_0xaff6e,_0xb56ef7=_0x1b80ee[_0x54c11d];if('paginationLicenseKeyValid'==_0xb56ef7||'paginationLicenseKeyInvalid'==_0xb56ef7||'paginationLicenseKeyExpired'==_0xb56ef7||'paginationLicenseKeyDomainLimit'==_0xb56ef7||'paginationLicenseKeyNotAllowed'==_0xb56ef7||'paginationLicenseKeyEvaluationLimit'==_0xb56ef7||'paginationLicenseKeyUsageLimit'==_0xb56ef7){delete _0x1b80ee[_0x54c11d],_0x466ead=_0xb56ef7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x466ead&&_0x1b80ee['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x466ead&&_0x1b80ee['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x466ead&&_0x1b80ee['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x466ead&&_0x1b80ee['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x466ead&&_0x1b80ee['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x466ead&&_0x1b80ee['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x43fb68){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x43fb68));}['moveSelectionToPage'](_0x560cf5){if(!this['isEnabled'])return;const _0x32a594=this['editor'],_0x679a62=this['editor']['plugins']['get'](w)['pageBreaks'][_0x560cf5-0x1];_0x679a62&&_0x32a594['model']['change'](_0x33797c=>{switch(_0x679a62['type']){case'manual':{const _0x7ce0a9=_0x32a594['model']['schema']['getNearestSelectionRange'](_0x679a62['modelRange']['end'],'forward');_0x33797c['setSelection'](_0x7ce0a9);break;}case'element':{const _0x531879=_0x32a594['model']['schema']['getNearestSelectionRange'](_0x679a62['modelRange']['start'],'forward');_0x33797c['setSelection'](_0x531879);break;}case'text':{const _0x518b5c=_0x679a62['modelRange']['start'];if(_0x518b5c['textNode']&&'\x20'===_0x518b5c['textNode']['data'][_0x518b5c['offset']]){const _0x460c59=_0x33797c['createPositionAt'](_0x518b5c['parent'],_0x518b5c['offset']+0x1);_0x33797c['setSelection'](_0x460c59);}else _0x33797c['setSelection'](_0x679a62['modelRange']);}}_0x32a594['editing']['view']['focus']();});}['goToNextPage'](){const _0x1af37b=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1af37b),this['scrollToPage'](_0x1af37b);}['goToPreviousPage'](){const _0x263502=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x263502),this['scrollToPage'](_0x263502);}['_updatePageBreakMarkers'](_0x586963,_0x44c255){const _0x43ccf3=this['editor']['model'];this['isEnabled']&&_0x43ccf3['change'](_0x127216=>{for(let _0x877e12=0x1;_0x877e12<_0x586963['length'];_0x877e12++){const _0x24e38f=_0x586963[_0x877e12]['modelRange'],_0x9e6cb9='pagination:'+(_0x877e12+0x1);_0x43ccf3['markers']['has'](_0x9e6cb9)?_0x127216['updateMarker'](_0x9e6cb9,{'range':_0x24e38f}):_0x127216['addMarker'](_0x9e6cb9,{'range':_0x24e38f,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x4692e4=_0x586963['length'];_0x4692e4<_0x44c255['length'];_0x4692e4++){const _0x274ce0='pagination:'+(_0x4692e4+0x1);_0x43ccf3['markers']['has'](_0x274ce0)&&_0x127216['removeMarker'](_0x274ce0);}});}['_setUpDataDowncastConversion'](){const _0x3df063='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x567aa3=>{_0x567aa3['on']('addMarker:'+_0x3df063,(_0x56fede,{markerRange:_0x21ea97,markerName:_0x3a0e4f},_0xadba18)=>{if(!_0xadba18['options']['pagination'])return;if(!_0xadba18['consumable']['consume'](_0x21ea97,_0x56fede['name']))return;const _0x562f56=_0x21ea97['getContainedElement']();let _0x23a399=_0x562f56?_0xadba18['mapper']['toViewElement'](_0x562f56):null;if(!_0x23a399){const _0x23fe2c=_0x21ea97['start'];if(_0xadba18['schema']['checkChild'](_0x23fe2c,'$text')){const _0x47030b=_0xadba18['mapper']['toViewPosition'](_0x23fe2c);_0x23a399=_0xadba18['writer']['createContainerElement']('span'),_0x23a399['getFillerOffset']=()=>null,_0xadba18['writer']['insert'](_0x47030b,_0x23a399);}else{const _0x4458ce=_0x23fe2c['nodeAfter'];_0x23a399=_0xadba18['mapper']['toViewElement'](_0x4458ce);}}for(;_0x23a399['parent']!==_0x23a399['root']&&0x0===_0x23a399['index'];)_0x23a399=_0x23a399['parent'];const _0x561e52=_0x3a0e4f['substring'](0xb);_0x23a399['hasClass']('page-break')||(_0xadba18['writer']['setStyle']('page-break-before','always',_0x23a399),_0xadba18['writer']['setAttribute']('data-pagination-page',_0x561e52,_0x23a399),_0xadba18['mapper']['bindElementToMarker'](_0x23a399,_0x3a0e4f)),_0x56fede['stop']();});});}['_setupKeystrokes'](){const _0x17259c=this['editor'];_0x17259c['keystrokes']['set']('Shift+Pageup',(_0x2dcd1d,_0x3e06cc)=>{this['goToPreviousPage'](),_0x3e06cc();}),_0x17259c['keystrokes']['set']('Shift+Pagedown',(_0x342729,_0x398b39)=>{this['goToNextPage'](),_0x398b39();}),_0x17259c['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x17259c['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x17259c['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x17259c['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x1822d5){return _0x1822d5<0x1&&(_0x1822d5=0x1),_0x1822d5>this['totalPages']&&(_0x1822d5=this['totalPages']),_0x1822d5;}}class U extends _0x1f564e{['pageNumberView'];constructor(_0x8f012c){super(_0x8f012c);const _0x49df71=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x18cf51(_0x8f012c,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0xb70456=>G(_0x8f012c,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0xb70456)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x4e73bf=>!_0x4e73bf),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x49df71['if']('isEnabled','ck-disabled',_0x552645=>!_0x552645)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x49df71['to']('totalPages')}]}]});}['render'](){super['render']();const _0x3b451d=this['pageNumberView']['element'],_0x223fbe=_0x597bfe=>{this['pageNumberView']['element']['value']=String(_0x597bfe);};_0x223fbe(this['pageNumber']),this['on']('change:pageNumber',(_0x6e2156,_0x14d3b5,_0x21c860)=>{_0x223fbe(_0x21c860);}),this['listenTo'](_0x3b451d,'keydown',(_0x33492c,_0x305289)=>{if('ArrowUp'===_0x305289['key']||'ArrowDown'===_0x305289['key'])return void _0x305289['stopPropagation']();if(_0x305289['keyCode']!==_0x4f6fe2['enter'])return;_0x305289['preventDefault']();const _0x5076ca=_0x3b451d['valueAsNumber'];Number['isNaN'](_0x5076ca)?_0x3b451d['value']=String(this['pageNumber']):(_0x3b451d['checkValidity']()?this['pageNumber']=_0x5076ca:_0x5076ca>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x3b451d['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x3b451d['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x3b451d,'blur',()=>{_0x3b451d['value']=String(this['pageNumber']);}),this['listenTo'](_0x3b451d,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x3b3191{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x96c774=this['editor'],_0x286ea5=_0x96c774['plugins']['get']('PaginationEditing');_0x96c774['ui']['componentFactory']['add']('pageNavigation',_0x160f9f=>{const _0x45bc4b=new U(_0x160f9f);return _0x45bc4b['bind']('pageNumber')['to'](_0x286ea5),_0x45bc4b['bind']('totalPages')['to'](_0x286ea5),_0x45bc4b['bind']('isEnabled')['to'](_0x286ea5),_0x45bc4b['on']('navigation',(_0x49daac,_0x541eca)=>{_0x286ea5['moveSelectionToPage'](_0x541eca),_0x286ea5['scrollToPage'](_0x541eca);}),_0x45bc4b;}),_0x96c774['ui']['componentFactory']['add']('nextPage',_0x4bacd4=>{const _0x4c0ca5=new _0x267dde(_0x4bacd4);return _0x4c0ca5['isEnabled']=!0x0,_0x4c0ca5['label']=G(_0x96c774['locale'],'Go\x20to\x20next\x20page'),_0x4c0ca5['icon']=_0x1ba830,_0x4c0ca5['tooltip']=!0x0,_0x4c0ca5['keystroke']='Shift+PageDown',_0x4c0ca5['bind']('isEnabled')['to'](_0x286ea5),this['listenTo'](_0x4c0ca5,'execute',()=>{_0x286ea5['goToNextPage']();}),_0x4c0ca5;}),_0x96c774['ui']['componentFactory']['add']('previousPage',_0x34a082=>{const _0x99a14a=new _0x267dde(_0x34a082);return _0x99a14a['isEnabled']=!0x0,_0x99a14a['label']=G(_0x96c774['locale'],'Go\x20to\x20previous\x20page'),_0x99a14a['icon']=_0x4e16d8,_0x99a14a['tooltip']=!0x0,_0x99a14a['keystroke']='Shift+PageUp',_0x99a14a['bind']('isEnabled')['to'](_0x286ea5),this['listenTo'](_0x99a14a,'execute',()=>{_0x286ea5['goToPreviousPage']();}),_0x99a14a;});}}class j extends _0x3b3191{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x443205){super(_0x443205),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x1276cb=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x1276cb),this['bind']('totalPages')['to'](_0x1276cb),_0x4d17da['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x114c5a){this['editor']['plugins']['get'](C)['scrollToPage'](_0x114c5a);}}export{j as Pagination,$ as PaginationRenderer};
|
|
23
|
+
import{Plugin as _0x465796}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x43439d,InputNumberView as _0x4ebe34,ButtonView as _0x46c922}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x276911,global as _0x3d899a,Rect as _0x4e8282,uid as _0x5c835d,toUnit as _0x134ac6,first as _0x5b50d7,env as _0x26a5ea,ResizeObserver as _0x42584f,keyCodes as _0x569aef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x31d37d}from'es-toolkit/compat';import{IconArrowDown as _0x49dfc5,IconArrowUp as _0x41f95c}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x465796{['_recalculatePageBreaksDebounced']=_0x31d37d(()=>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 _0x276911('pagination-config-not-found',this['editor']['config']);const _0x4051e=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x4051e),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x4550c4,_0x112705,_0x7dee97)=>{_0x7dee97&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x5ed3ea){const _0x44d9d9=_0x59f23f([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]),_0x25b412=0xc82cb1e,_0x2bb764=0xc854e36^_0x25b412,_0x2804bf=window[_0x59f23f([0x44,0x61,0x74,0x65])][_0x59f23f([0x6e,0x6f,0x77])](),_0x344418=_0x5ed3ea[_0x59f23f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1552bd=new window[(_0x59f23f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43fa54=>{_0x344418[_0x59f23f([0x6f,0x6e,0x63,0x65])](_0x59f23f([0x72,0x65,0x61,0x64,0x79]),_0x43fa54);}),_0xdcbe16={[_0x59f23f([0x6b,0x74,0x79])]:_0x59f23f([0x45,0x43]),[_0x59f23f([0x75,0x73,0x65])]:_0x59f23f([0x73,0x69,0x67]),[_0x59f23f([0x63,0x72,0x76])]:_0x59f23f([0x50,0x2d,0x32,0x35,0x36]),[_0x59f23f([0x78])]:_0x59f23f([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]),[_0x59f23f([0x79])]:_0x59f23f([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]),[_0x59f23f([0x61,0x6c,0x67])]:_0x59f23f([0x45,0x53,0x32,0x35,0x36])},_0x453970=_0x344418[_0x59f23f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59f23f([0x67,0x65,0x74])](_0x59f23f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22db3f(){let _0x26dacc,_0x37b6be=null,_0x3ccf5f=null;try{if(_0x453970==_0x59f23f([0x47,0x50,0x4c]))return _0x59f23f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26dacc=_0x323bfe(),!_0x26dacc)return _0x59f23f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26dacc[_0x59f23f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ccf5f=_0x27e7c2(_0x26dacc[_0x59f23f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26dacc[_0x59f23f([0x6a,0x74,0x69])])),await _0xdde72()?_0xcc262b()?_0x46ee5d()?_0x59f23f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b1e4d()?(_0x26dacc[_0x59f23f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59f23f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37b6be=_0x55be6c(_0x59f23f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f8aca()):_0x59f23f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59f23f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59f23f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59f23f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46ee5d(){const _0x2de7da=[_0x59f23f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59f23f([0x74,0x72,0x69,0x61,0x6c])][_0x59f23f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26dacc[_0x59f23f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2804bf/0x3e8:0xe10*_0x2bb764;return _0x26dacc[_0x59f23f([0x65,0x78,0x70])]<_0x2de7da;}function _0xcc262b(){const _0x445461=_0x26dacc[_0x59f23f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x445461&&(!!_0x445461[_0x59f23f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59f23f([0x2a]))||!!_0x445461[_0x59f23f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59f23f([0x50,0x41,0x47])));}function _0x1b1e4d(){const _0x391b20=_0x26dacc[_0x59f23f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x391b20||0x0==_0x391b20[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x343141}=new URL(window[_0x59f23f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x391b20[_0x59f23f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343141))return!0x0;const _0x194af0=_0x343141[_0x59f23f([0x73,0x70,0x6c,0x69,0x74])](_0x59f23f([0x2e]));return _0x391b20[_0x59f23f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24474b=>_0x24474b[_0x59f23f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59f23f([0x2a])))[_0x59f23f([0x6d,0x61,0x70])](_0x1df7f1=>_0x1df7f1[_0x59f23f([0x73,0x70,0x6c,0x69,0x74])](_0x59f23f([0x2e])))[_0x59f23f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a20a5=>_0x4a20a5[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x194af0[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59f23f([0x6d,0x61,0x70])](_0x3d9ba3=>Array(_0x194af0[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d9ba3[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59f23f([0x66,0x69,0x6c,0x6c])](_0x3d9ba3[0x0]===_0x59f23f([0x2a])?_0x59f23f([0x2a]):'')[_0x59f23f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d9ba3))[_0x59f23f([0x73,0x6f,0x6d,0x65])](_0x4844c3=>_0x194af0[_0x59f23f([0x65,0x76,0x65,0x72,0x79])]((_0x47cddc,_0x281d55)=>_0x4844c3[_0x281d55]===_0x47cddc||_0x4844c3[_0x281d55]===_0x59f23f([0x2a])));}function _0x1f8aca(){return _0x37b6be&&_0x3ccf5f?new window[(_0x59f23f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x457988,_0x409d84)=>{_0x37b6be[_0x59f23f([0x74,0x68,0x65,0x6e])](_0x457988,_0x409d84),_0x3ccf5f[_0x59f23f([0x74,0x68,0x65,0x6e])](_0x3eb5de=>{_0x3eb5de!=_0x59f23f([0x56,0x61,0x6c,0x69,0x64])&&_0x457988(_0x3eb5de);},_0x409d84);}):_0x37b6be||_0x3ccf5f||_0x59f23f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27e7c2(_0x343780,_0x2e11e3){return new window[(_0x59f23f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x520807=>{if(_0x12ab04())return _0x520807(_0x59f23f([0x56,0x61,0x6c,0x69,0x64]));_0x878d8d(),_0x344418[_0x59f23f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59f23f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x154f65=!0x1;const _0x55a8a6=_0x5c835d();function _0x3ffc02(_0x20c8cb){return!!_0x20c8cb&&(typeof _0x20c8cb===_0x59f23f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20c8cb===_0x59f23f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20c8cb[_0x59f23f([0x74,0x68,0x65,0x6e])]===_0x59f23f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20c8cb[_0x59f23f([0x63,0x61,0x74,0x63,0x68])]===_0x59f23f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x310dcb(_0x447f1f){_0xda8020(_0x447f1f)[_0x59f23f([0x74,0x68,0x65,0x6e])](_0x44099b=>{if(!_0x44099b||_0x44099b[_0x59f23f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59f23f([0x6f,0x6b]))return _0x59f23f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x250afb(_0xa20a43(_0x55a8a6+_0x2e11e3))!=_0x44099b[_0x59f23f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59f23f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59f23f([0x56,0x61,0x6c,0x69,0x64]);})[_0x59f23f([0x74,0x68,0x65,0x6e])](_0x3d758a=>(_0x587321(),_0x3d758a),()=>{const _0x4e0ffe=_0x1e1c42();return null==_0x4e0ffe?(_0x587321(),_0x59f23f([0x56,0x61,0x6c,0x69,0x64])):_0x59f23f(_0x2804bf-_0x4e0ffe>(0x288e4f1e^_0x25b412)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59f23f([0x74,0x68,0x65,0x6e])](_0x520807)[_0x59f23f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x520807(_0x59f23f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x488f9f=0xcb4259e^_0x25b412;function _0x587321(){const _0x20f0ab=_0x59f23f([0x6c,0x6c,0x63,0x74,0x2d])+_0x250afb(_0xa20a43(_0x343780)),_0x21abe1=_0x59c322(_0x250afb(window[_0x59f23f([0x4d,0x61,0x74,0x68])][_0x59f23f([0x63,0x65,0x69,0x6c])](_0x2804bf/_0x488f9f)));window[_0x59f23f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59f23f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20f0ab,_0x21abe1);}function _0x1e1c42(){const _0x25a681=_0x59f23f([0x6c,0x6c,0x63,0x74,0x2d])+_0x250afb(_0xa20a43(_0x343780)),_0x4b3f86=window[_0x59f23f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59f23f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25a681);return _0x4b3f86?window[_0x59f23f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c322(_0x4b3f86),0x10)*_0x488f9f:null;}function _0xda8020(_0x2e8a5d){return new window[(_0x59f23f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a6ac9,_0x110269)=>{_0x2e8a5d[_0x59f23f([0x74,0x68,0x65,0x6e])](_0x2a6ac9,_0x110269),window[_0x59f23f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x110269,0xc831fde^_0x25b412);});}}_0x344418[_0x59f23f([0x6f,0x6e])](_0x59f23f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f6de1,_0x4ae8f9)=>{if(_0x4ae8f9[0x0]!=_0x343780)return _0x520807(_0x59f23f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ae8f9[0x1]={..._0x4ae8f9[0x1],[_0x59f23f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55a8a6};},{[_0x59f23f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59f23f([0x68,0x69,0x67,0x68])}),_0x344418[_0x59f23f([0x6f,0x6e])](_0x59f23f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bdc32=>{_0x3ffc02(_0x2bdc32[_0x59f23f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x154f65=!0x0,_0x310dcb(_0x2bdc32[_0x59f23f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59f23f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59f23f([0x6c,0x6f,0x77])}),_0x1552bd[_0x59f23f([0x74,0x68,0x65,0x6e])](()=>{_0x154f65||_0x520807(_0x59f23f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12ab04(){return _0x344418[_0x59f23f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59f23f([0x76,0x69,0x65,0x77])][_0x59f23f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59f23f([0x61,0x75,0x74,0x6f]);}function _0x878d8d(){_0x344418[_0x59f23f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59f23f([0x76,0x69,0x65,0x77])][_0x59f23f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59f23f([0x61,0x75,0x74,0x6f]);}}function _0x55be6c(_0x24ede6){const _0x44dc41=[new window[(_0x59f23f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x353786=>setTimeout(_0x353786,0xc8bf5d2^_0x25b412)),_0x1552bd[_0x59f23f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59f23f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fa2ec=>{let _0x2284e0=0x0;_0x344418[_0x59f23f([0x6d,0x6f,0x64,0x65,0x6c])][_0x59f23f([0x6f,0x6e])](_0x59f23f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xee5655,_0x2e3a5c)=>{_0x2e3a5c[0x0][_0x59f23f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2284e0++,_0x2284e0==(0xc82cef6^_0x25b412)&&(_0x3fa2ec(),_0xee5655[_0x59f23f([0x6f,0x66,0x66])]());});}))];return window[_0x59f23f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59f23f([0x72,0x61,0x63,0x65])](_0x44dc41)[_0x59f23f([0x74,0x68,0x65,0x6e])](()=>_0x24ede6);}async function _0x15c326(){await _0x1552bd,_0x344418[_0x59f23f([0x6d,0x6f,0x64,0x65,0x6c])][_0x59f23f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d8b4d,_0x344418[_0x59f23f([0x6d,0x6f,0x64,0x65,0x6c])][_0x59f23f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d8b4d,_0x344418[_0x59f23f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59f23f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf3550(_0x586a31){const _0x420d32=_0x5c359c();_0x344418[_0x420d32]=_0x59f23f([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x586a31,_0x586a31!=_0x59f23f([0x56,0x61,0x6c,0x69,0x64])&&_0x15c326();}function _0x5c359c(){const _0x42e747=window[_0x59f23f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59f23f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59f23f([0x6e,0x6f,0x77])]())[_0x59f23f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59f23f([0x2e]),'');let _0x3bc79a=_0x59f23f([0x49]);for(let _0x2cbcd6=0x0;_0x2cbcd6<_0x42e747[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cbcd6+=0x2){let _0x43c943=window[_0x59f23f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42e747[_0x59f23f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cbcd6,_0x2cbcd6+0x2));_0x43c943>=_0x44d9d9[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43c943-=_0x44d9d9[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bc79a+=_0x44d9d9[_0x43c943];}return _0x3bc79a;}function _0x323bfe(){const _0x4c92a1=_0x453970[_0x59f23f([0x73,0x70,0x6c,0x69,0x74])](_0x59f23f([0x2e]));if(0x3!=_0x4c92a1[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e61d9(_0x4c92a1[0x1]);function _0x1e61d9(_0x36b601){const _0x43a28f=_0x378864(_0x36b601);return _0x43a28f&&_0x4c529c()?_0x43a28f:null;function _0x4c529c(){const _0x102447=_0x43a28f[_0x59f23f([0x6a,0x74,0x69])],_0x5c3c6e=window[_0x59f23f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x102447[_0x59f23f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x102447[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e8048={..._0x43a28f,[_0x59f23f([0x6a,0x74,0x69])]:_0x102447[_0x59f23f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x102447[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e8048[_0x59f23f([0x76,0x63])],_0xa20a43(_0x4e8048)==_0x5c3c6e;}}}async function _0xdde72(){let _0xf93e8b=!0x0;try{const _0x5d7c9b=_0x453970[_0x59f23f([0x73,0x70,0x6c,0x69,0x74])](_0x59f23f([0x2e])),[_0x4c6353,_0x1f4f46,_0x2a7411]=_0x5d7c9b;return _0x349e0e(_0x4c6353),await _0x369589(_0x4c6353,_0x1f4f46,_0x2a7411),_0xf93e8b;}catch{return!0x1;}function _0x349e0e(_0x20b724){const _0x51f243=_0x378864(_0x20b724);_0x51f243&&_0x51f243[_0x59f23f([0x61,0x6c,0x67])]==_0x59f23f([0x45,0x53,0x32,0x35,0x36])||(_0xf93e8b=!0x1);}async function _0x369589(_0x136590,_0x1c48c9,_0xce31d4){const _0x41db15=window[_0x59f23f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59f23f([0x66,0x72,0x6f,0x6d])](_0x3a5310(_0xce31d4),_0x464967=>_0x464967[_0x59f23f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6f891b=new window[(_0x59f23f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59f23f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x136590+_0x59f23f([0x2e])+_0x1c48c9),_0x19a29b=window[_0x59f23f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59f23f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19a29b)return;const _0x38c291=await _0x19a29b[_0x59f23f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59f23f([0x6a,0x77,0x6b]),_0xdcbe16,{[_0x59f23f([0x6e,0x61,0x6d,0x65])]:_0x59f23f([0x45,0x43,0x44,0x53,0x41]),[_0x59f23f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59f23f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59f23f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19a29b[_0x59f23f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59f23f([0x6e,0x61,0x6d,0x65])]:_0x59f23f([0x45,0x43,0x44,0x53,0x41]),[_0x59f23f([0x68,0x61,0x73,0x68])]:{[_0x59f23f([0x6e,0x61,0x6d,0x65])]:_0x59f23f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38c291,_0x41db15,_0x6f891b)||(_0xf93e8b=!0x1);}}function _0x378864(_0x4d947f){return _0x4d947f[_0x59f23f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59f23f([0x65,0x79]))?JSON[_0x59f23f([0x70,0x61,0x72,0x73,0x65])](_0x3a5310(_0x4d947f)):null;}function _0x3a5310(_0x3de08b){return window[_0x59f23f([0x61,0x74,0x6f,0x62])](_0x3de08b[_0x59f23f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59f23f([0x2b]))[_0x59f23f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59f23f([0x2f])));}function _0xa20a43(_0x42afe0){let _0x4ff239=0x1505;function _0x141ce3(_0x4244c7){for(let _0xdbac00=0x0;_0xdbac00<_0x4244c7[_0x59f23f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdbac00++){const _0xdc6faf=_0x4244c7[_0x59f23f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdbac00);_0x4ff239=(_0x4ff239<<0x5)+_0x4ff239+_0xdc6faf,_0x4ff239&=_0x4ff239;}}function _0x19f875(_0xc7c639){Array[_0x59f23f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc7c639)?_0xc7c639[_0x59f23f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19f875):_0xc7c639&&typeof _0xc7c639==_0x59f23f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59f23f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc7c639)[_0x59f23f([0x73,0x6f,0x72,0x74])]()[_0x59f23f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18f86c,_0x45d943])=>{_0x141ce3(_0x18f86c),_0x19f875(_0x45d943);}):_0x141ce3(window[_0x59f23f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc7c639));}return _0x19f875(_0x42afe0),_0x4ff239>>>0x0;}function _0x250afb(_0x4625a7){return _0x4625a7[_0x59f23f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59f23f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59f23f([0x30]));}function _0x59c322(_0x21f432){return _0x21f432[_0x59f23f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59f23f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59f23f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d8b4d(){}function _0x59f23f(_0x2d5fc6){return _0x2d5fc6['map'](_0x2615b4=>String['fromCharCode'](_0x2615b4))['join']('');}_0xf3550(await _0x22db3f());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x5adeec=this['editor'],_0x33e3d2=_0x5adeec['editing']['view'],_0x4b2ab6=this['_getAttachedDomRoot']();if(!_0x4b2ab6||0x0===_0x4b2ab6['childElementCount'])return void _0x5adeec['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x470acc,pageHeight:_0x1e9eb0}=_0x5adeec['config']['get']('pagination'),{top:_0x23424e,left:_0x8d0e84,bottom:_0x1db5f5,right:_0x448ade}=this['_configuredPaddings'];this['_pagesContainer']=new _0x43439d(_0x5adeec['locale']);const _0x41c89a=this['_pagesContainer'];_0x41c89a['set']('class',''),_0x41c89a['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x470acc,'width':_0x470acc,'height':'calc(\x20'+_0x1e9eb0+'\x20-\x20'+_0x23424e+'\x20-\x20'+_0x1db5f5+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x448ade+'\x200\x20'+_0x8d0e84,'columnGap':'calc('+_0x8d0e84+'\x20+\x20'+_0x448ade+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x41c89a['bindTemplate']['to']('class')}}),_0x41c89a['render'](),_0x4b2ab6['parentNode']['insertBefore'](_0x41c89a['element'],_0x4b2ab6['nextSibling']),this['listenTo'](_0x33e3d2,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x37a89d of this['editor']['editing']['view']['domRoots']['values']())if(_0x37a89d['ownerDocument']['body']['contains'](_0x37a89d))return _0x37a89d;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x51b976=this['editor']['editing']['view'],_0x500c89=this['_pagesContainer'],_0x414bcf=this['_getAttachedDomRoot']();if(!_0x414bcf)return Promise['resolve']();for(_0x500c89['class']=['ck-reset','ck-pagination-view',..._0x414bcf['classList']]['join']('\x20');_0x500c89['element']['firstChild'];)_0x500c89['element']['firstChild']['remove']();const _0xef3f0b=Array['from'](_0x51b976['domRoots']);_0xef3f0b['sort'](([,_0x3e90e5],[,_0x49b981])=>_0x3e90e5['compareDocumentPosition'](_0x49b981)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x503c0a,_0x24bffa]of _0xef3f0b){const _0x4e5b1f=_0x24bffa['cloneNode'](!0x0);'attributeStyleMap'in _0x4e5b1f&&_0x4e5b1f['attributeStyleMap']['clear'](),_0x4e5b1f['dataset']['rootName']=_0x503c0a,_0x4e5b1f['className']='ck-content\x20ck-pagination_enabled',_0x4e5b1f['removeAttribute']('id'),_0x4e5b1f['tabIndex']=-0x1,_0x500c89['element']['append'](_0x4e5b1f);}const _0x599651=Array['from'](_0x500c89['element']['querySelectorAll']('img'));return function(_0x341ac7){return Promise['all'](_0x341ac7['map'](_0x1d15ae=>Promise['race']([k(_0x1d15ae),v(0x3e8)])));}(_0x599651)['then'](()=>{for(const _0x1b4d2f of _0x599651['filter'](_0x5d82a4=>!_0x5d82a4['closest']('table')))if(_0x1b4d2f['offsetParent']){const _0x4c1ed1=_0x3d899a['window']['getComputedStyle'](_0x1b4d2f),_0x11f8d8=_0x3d899a['document']['createElement']('span');for(const _0xf54c95 of _0x4c1ed1)_0x11f8d8['style']['setProperty'](_0xf54c95,_0x4c1ed1[_0xf54c95]);_0x11f8d8['style']['backgroundImage']='url(\x20'+_0x1b4d2f['src']+'\x20)',_0x11f8d8['style']['breakInside']='avoid','PICTURE'==_0x1b4d2f['parentElement']?.['tagName']?_0x1b4d2f['parentElement']['replaceWith'](_0x11f8d8):_0x1b4d2f['replaceWith'](_0x11f8d8);}return new Promise(_0x7029d2=>_0x3d899a['window']['requestAnimationFrame'](()=>_0x7029d2()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x4d3b38=this['_pagesContainer']['element'];if(!_0x4d3b38['ownerDocument']['body']['contains'](_0x4d3b38))return;const _0x45006c=new _0x4e8282(_0x4d3b38)['excludeScrollbarsAndBorders'](),_0x58a4bb=Math['floor'](_0x45006c['width']+0x64),_0xf575a5=_(_0x4d3b38,Math['floor'](_0x45006c['left']-_0x4d3b38['scrollLeft']),_0x58a4bb,_0x45006c['height'])['map'](_0x1d5b8c=>this['_mapPageStarterInfoToPageBreakInfo'](_0x1d5b8c))['filter'](_0x462300=>!0x1!==_0x462300);_0xf575a5['every'](_0x2a0ac5=>!!_0x2a0ac5)&&(this['pageBreaks']=_0xf575a5);}['_mapPageStarterInfoToPageBreakInfo'](_0x5da685){const _0x388402=this['editor']['editing']['view'],_0x364a5e=this['editor']['editing']['mapper'],_0x3357c2=_0x388402['domConverter'],_0x667ea1=_0x5da685['path']['shift'](),_0x2b1e25=this['_pagesContainer']['element']['childNodes'][_0x667ea1]['dataset']['rootName'],_0xf29f4c=_0x388402['getDomRoot'](_0x2b1e25);if(!_0xf29f4c)return null;const _0x1d02bf=function(_0x4307fc,_0x472674){let _0x4980d3=_0x4307fc;for(const _0x47db95 of _0x472674['path']){if(!_0x4980d3)return null;_0x4980d3=_0x4980d3['childNodes'][_0x47db95];}return _0x4980d3;}(_0xf29f4c,_0x5da685);if(!_0x1d02bf)return null;const _0x49e97f=_0x3357c2['domPositionToView'](_0x1d02bf,_0x5da685['textOffset']||0x0);return _0x49e97f?'manual'==_0x5da685['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x49e97f,_0x1d02bf):'text'==_0x5da685['type']&&_0x364a5e['toModelPosition'](_0x49e97f)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x49e97f,_0x1d02bf,_0x5da685['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x49e97f,_0x1d02bf,_0x5da685['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x43ab5b,_0x381f89){const _0x3964df=this['editor']['model'],_0x26a920=this['editor']['editing']['mapper']['toModelElement'](_0x43ab5b['parent']),_0x3e7ef4=_0x3964df['createRangeOn'](_0x26a920);return new b({'type':'manual','modelRange':_0x3e7ef4,'domNode':_0x381f89,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x472bac,_0x49e9bc,_0x5eb033){const _0x27e7d7=this['editor']['model'],_0x12495=this['editor']['editing']['mapper'],_0x378b2a=this['editor']['editing']['view']['domConverter'];if(_0x5eb033>=_0x49e9bc['length'])return null;const _0x3d2db6=_0x12495['toModelPosition'](_0x472bac),_0x391354=_0x27e7d7['createRange'](_0x3d2db6),_0x40f179=_0x12495['findMappedViewAncestor'](_0x472bac),_0x2c25f9=_0x378b2a['mapViewToDom'](_0x40f179);return new b({'type':'text','modelRange':_0x391354,'domNode':_0x49e9bc,'offset':P(_0x49e9bc,_0x5eb033,_0x2c25f9)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x2ed503,_0xcad326,_0x466120){const _0x21b595=this['editor']['model'],_0x393f02=this['editor']['editing'],_0x40ce1f=_0x393f02['mapper'],_0x33b963=_0x393f02['view']['domConverter'],_0x56d690=_0x40ce1f['findMappedViewAncestor'](_0x2ed503),_0x2a82d1=_0x40ce1f['toModelElement'](_0x56d690);if(!_0x2a82d1||_0x2a82d1['is']('element','$root'))return!0x1;const _0x277001=function(_0x1c09a9){const _0x191f89=_0x1c09a9['parent'],_0x564e37=_0x191f89['root']['document']['model'],_0x297f6e=_0x191f89['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x49134f=null;for(const _0x324db1 of _0x297f6e){if(_0x324db1['is']('rootElement'))return _0x49134f;if(!_0x564e37['createPositionBefore'](_0x324db1)['isTouching'](_0x1c09a9))return _0x49134f;_0x49134f=_0x324db1;}}(_0x21b595['createPositionBefore'](_0x2a82d1)),_0x489e50=_0x277001||_0x2a82d1;let _0x452027=_0x40ce1f['toViewElement'](_0x489e50),_0x1e58fa=_0x21b595['createRangeOn'](_0x489e50);const _0x3cdfad=_0x21b595['createPositionBefore'](_0x489e50)['nodeBefore'];if(_0x3cdfad&&_0x3cdfad['is']('element','imageBlock')){const _0x47f9de=_0x40ce1f['toViewElement'](_0x3cdfad),_0x209d42=_0x33b963['mapViewToDom'](_0x47f9de),_0x1f91de=_0x3d899a['window']['getComputedStyle'](_0x209d42)['float'];'left'!=_0x1f91de&&'right'!=_0x1f91de||(_0x1e58fa=_0x21b595['createRangeOn'](_0x3cdfad));}for(;_0x452027['parent']!==_0x452027['root']&&0x0===_0x452027['index'];)_0x452027=_0x452027['parent'];const _0x556f60=new _0x4e8282(I(_0xcad326)?_0xcad326:x(_0xcad326)),_0x38b200=_0x466120?_0x556f60['height']-_0x466120:0x0,_0x2f4437=_0x33b963['mapViewToDom'](_0x452027),_0x50dbc8=new _0x4e8282(_0x2f4437);return new b({'type':'element','modelRange':_0x1e58fa,'domNode':_0x2f4437,'offset':Math['round'](_0x38b200)||_0x56d690!=y(_0x2ed503)?_0x38b200+_0x556f60['top']-_0x50dbc8['top']:0x0});}get['_configuredPaddings'](){const _0x573cb5=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x573cb5);}static['_findPageStarterInfos'](_0xceddbf,_0x2054e3,_0x10903b,_0x58f4b5,_0x20cf4d){return _(_0xceddbf,_0x2054e3,_0x10903b,_0x58f4b5,_0x20cf4d);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x462064,modelRange:_0x310daf,domNode:_0x15ce2d,offset:_0x42d5dc}){this['type']=_0x462064,this['modelRange']=_0x310daf,this['_domNode']=_0x15ce2d,this['_offset']=_0x42d5dc;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x23c114=new _0x4e8282(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x23c114['top']+_0x23c114['height']/0x2:_0x23c114['top']+this['_offset'];}}function P(_0x3daf4a,_0x9d09f9,_0x55d8bb){const _0xb961ad=x(_0x3daf4a),_0x4fe3cb=function(_0x414b8b){const _0x318b49=_0x3d899a['document']['createRange']();return _0x318b49['selectNodeContents'](_0x414b8b),_0x318b49;}(_0x55d8bb);let _0x2cca12;_0x2cca12=0x0==_0x9d09f9?L(_0x4fe3cb['startContainer'],_0x4fe3cb['startOffset'],_0x3daf4a['parentNode'],Array['from'](_0x3daf4a['parentNode']['childNodes'])['indexOf'](_0x3daf4a)):L(_0x4fe3cb['startContainer'],_0x4fe3cb['startOffset'],_0x3daf4a,_0x9d09f9);const _0x4a4d00=L(_0x3daf4a,_0x9d09f9,_0x4fe3cb['endContainer'],_0x4fe3cb['endOffset']),_0x3955b4=new _0x4e8282(_0x2cca12)['bottom'];return(new _0x4e8282(_0x4a4d00)['top']+_0x3955b4)/0x2-new _0x4e8282(_0xb961ad)['top'];}function y(_0x137ac3){let _0x5938b7=_0x137ac3['parent'];for(;_0x5938b7['is']('$text')||_0x5938b7['is']('attributeElement');)_0x5938b7=_0x5938b7['parent'];return _0x5938b7;}function k(_0x55437a){return _0x55437a['hasAttribute']('width')&&_0x55437a['hasAttribute']('height')?Promise['resolve']():new Promise(_0x440c7f=>{function _0x47de21(){_0x55437a['removeEventListener']('load',_0x47de21),_0x55437a['removeEventListener']('error',_0x47de21),_0x440c7f();}_0x55437a['complete']?_0x440c7f():(_0x55437a['addEventListener']('load',_0x47de21),_0x55437a['addEventListener']('error',_0x47de21));});}function v(_0x2f6f3b){return new Promise(_0x27b02b=>setTimeout(_0x27b02b,_0x2f6f3b));}function x(_0xcce2e0){const _0x19a65d=_0x3d899a['document']['createRange']();return _0x19a65d['selectNode'](_0xcce2e0),_0x19a65d;}function N(_0x4246de,_0x50cf57,_0x5bb771){const _0x4b986b=_0x3d899a['document']['createRange']();return _0x4b986b['setStart'](_0x4246de,_0x50cf57),_0x4b986b['setEnd'](_0x4246de,_0x5bb771),_0x4b986b;}function L(_0x4ef272,_0x39c674,_0x14e53a,_0x4223c3){const _0x3e00bc=_0x3d899a['document']['createRange']();return _0x3e00bc['setStart'](_0x4ef272,_0x39c674),_0x3e00bc['setEnd'](_0x14e53a,_0x4223c3),_0x3e00bc;}function _(_0x702842,_0x1d527e,_0x48d84f,_0x4b629f,_0xa3ba1b){const _0x3564cc=[];for(const [_0x395c4f,_0x1c48e2]of _0x702842['childNodes']['entries']()){let _0x2af718=[];I(_0x1c48e2)&&_0x1c48e2['offsetParent']&&['static','relative']['includes'](_0x3d899a['window']['getComputedStyle'](_0x1c48e2)['position'])?_0x2af718=S(_0x1c48e2,_0x395c4f,_0x1d527e,_0x48d84f,_0x4b629f,_0xa3ba1b):O(_0x1c48e2)&&(_0x2af718=E(_0x1c48e2,_0x395c4f,_0x1d527e,_0x48d84f,_0xa3ba1b)),_0x2af718['length']&&(_0x3564cc['push'](..._0x2af718),_0x1d527e+=_0x2af718['length']*_0x48d84f,_0xa3ba1b=!0x1);}return _0x3564cc;}function S(_0x1f2d97,_0x14d04b,_0x173223,_0x15aef6,_0x54408d,_0xf4d002){const _0x9c2015=[];var _0x312b9e;if((_0x312b9e=_0x1f2d97['previousSibling'])&&I(_0x312b9e)&&Boolean(_0x312b9e['classList']['contains']('page-break')||_0x312b9e['closest']('.page-break'))&&(_0x9c2015['push']({'type':'manual','offset':0x0,'path':[_0x14d04b-0x1]}),_0xf4d002=!0x0),'table-row'==_0x3d899a['window']['getComputedStyle'](_0x1f2d97)['display']){let _0x101d87=0x0,_0x1cc208=!0x1;for(const _0x9defbe of _0x1f2d97['getClientRects']())_0x101d87+=_0x9defbe['height'],_0x9defbe['left']>=_0x173223&&(_0x1cc208=!0x0);if(_0x101d87<_0x54408d&&_0x1cc208)return _0xf4d002||_0x9c2015['push']({'type':'element','offset':0x0,'path':[_0x14d04b]}),_0x9c2015;}const _0x4905bb=_0x1f2d97['closest']('figure.image');if(_0x4905bb&&function(_0x366868){let _0x5be7e3=!0x1;const _0x1eacce=_0x366868['parentElement'],_0x3269eb=_0x1eacce['dataset']['rootName'],_0x2e07d8=_0x366868['nextElementSibling'],_0xb67bb4=_0x366868['previousElementSibling'],_0x36480b=_0x2e07d8&&_0x3d899a['window']['getComputedStyle'](_0x2e07d8)['float'],_0x4dfbae=_0x2e07d8&&'ck-fake-selection-container'===_0x2e07d8['className'];!_0x3269eb||_0x2e07d8||_0xb67bb4||(_0x5be7e3=!0x0),_0x3269eb&&!_0xb67bb4&&_0x4dfbae&&(_0x5be7e3=!0x0),_0x3269eb&&!_0xb67bb4&&'none'!==_0x36480b&&(_0x5be7e3=!0x0);if(_0x5be7e3)return!0x1;return!0x0;}(_0x4905bb)){const _0x15988c=_0x3d899a['window']['getComputedStyle'](_0x4905bb)['float'];if('left'==_0x15988c||'right'==_0x15988c)return _0x9c2015;}const _0x1970d4=_(_0x1f2d97,_0x173223,_0x15aef6,_0x54408d,_0xf4d002);if(_0x1970d4['length']){for(const _0x92aece of _0x1970d4)_0x9c2015['push']({'type':_0x92aece['type'],'offset':_0x92aece['offset'],'textOffset':_0x92aece['textOffset'],'path':[_0x14d04b,..._0x92aece['path']]}),_0x173223+=_0x15aef6,_0xf4d002=!0x1;return _0x9c2015;}return _0x9c2015['push'](...function(_0x3152ff,_0x165f54,_0xa5b6b,_0x559a32,_0x1e346d){const _0x3542fd=[];if('table-cell'==_0x3d899a['window']['getComputedStyle'](_0x3152ff)['display'])return[];const _0x159de4=[];for(const _0x203739 of _0x3152ff['getClientRects']())if(_0x203739['left']>=_0xa5b6b){for(const _0x19866b of _0x159de4)_0x19866b['height']+=_0x203739['height'];_0x159de4['push']({'height':_0x203739['height']}),_0xa5b6b+=_0x559a32;}for(const _0x37ccb7 of _0x159de4)_0x1e346d||_0x3542fd['push']({'type':'element','offset':_0x37ccb7['height'],'textOffset':0x0,'path':[_0x165f54]}),_0x1e346d=!0x1;return _0x3542fd;}(_0x1f2d97,_0x14d04b,_0x173223,_0x15aef6,_0xf4d002)),_0x9c2015;}function E(_0x3c80f8,_0x433363,_0x5c9590,_0x569cbb,_0x1f4343){const _0x19e290=x(_0x3c80f8),_0x3a1732=[];let _0x1b55d0=0x0;for(const _0x595daf of _0x19e290['getClientRects']())if(_0x595daf['left']>=_0x5c9590){const _0x33ee60=R(_0x3c80f8,_0x1b55d0,_0x5c9590,_0x569cbb);_0x1f4343||_0x3a1732['push']({'type':'text','path':[_0x433363],'textOffset':_0x33ee60}),_0x1b55d0=_0x33ee60,_0x5c9590+=_0x569cbb,_0x1f4343=!0x1;}return _0x3a1732;}function R(_0x4823e9,_0xc835fd,_0x1fbddf,_0x16e6cb){let _0xfa67ee=_0xc835fd,_0x2f9d8c=_0x4823e9['length'];for(;_0x2f9d8c-_0xfa67ee>0x1;){const _0x588369=Math['ceil']((_0xfa67ee+_0x2f9d8c)/0x2);K(N(_0x4823e9,_0xfa67ee,_0x588369),_0x1fbddf,_0x16e6cb)?_0x2f9d8c=_0x588369:_0xfa67ee=_0x588369;}return _0xfa67ee;}function K(_0x251a43,_0x49423c,_0x463f10){for(const _0x2d0cef of _0x251a43['getClientRects']())if(_0x2d0cef['left']>=_0x49423c&&_0x2d0cef['left']<_0x49423c+_0x463f10)return!0x0;return!0x1;}function I(_0xfbc5cb){return _0xfbc5cb['nodeType']==Node['ELEMENT_NODE'];}function O(_0x4b554e){return _0x4b554e['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x134ac6('px');class T extends _0x43439d{constructor(){super();const _0x44b7dc=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x44b7dc['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x44b7dc['if']('isVisible','ck-hidden',_0x3cf5dc=>!_0x3cf5dc)],'style':{'left':_0x44b7dc['to']('left',_0x33d147=>B(_0x33d147)),'top':_0x44b7dc['to']('top',_0x58d328=>B(_0x58d328)),'width':_0x44b7dc['to']('width',_0x541edf=>B(_0x541edf))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x40ae8c){this['_viewCollection']=_0x40ae8c['ui']['view']['body'];}['destroy'](){for(const _0xdf2740 of this['_hiddenLines'])_0xdf2740['destroy']();}['cleanLines'](){for(const _0x42217c of this['_visibleLines'])_0x42217c['isVisible']=!0x1,this['_hiddenLines']['add'](_0x42217c);this['_visibleLines']['clear']();}['showLine'](_0x11e66e,_0x579818,_0x44e0a5,_0x59ee74){let _0x2a7b58;this['_hiddenLines']['size']?(_0x2a7b58=_0x5b50d7(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x2a7b58)):_0x2a7b58=new T(),_0x2a7b58['set']({'pageNumber':_0x59ee74,'left':_0x11e66e,'top':_0x579818,'width':_0x44e0a5}),_0x2a7b58['isVisible']=!0x0,this['_viewCollection']['has'](_0x2a7b58)||this['_viewCollection']['add'](_0x2a7b58),this['_visibleLines']['add'](_0x2a7b58);}['setViewCollection'](_0x43d294){for(const _0x427db1 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x427db1)&&this['_viewCollection']['remove'](_0x427db1);this['_viewCollection']=_0x43d294;}}const D='ck-pagination_enabled';class $ extends _0x465796{['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 A(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'](D),this['on']('change:isEnabled',(_0x3c7b22,_0xeb8190,_0x4b020b)=>{_0x4b020b||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x4b020b);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x3b0a5f){if(!this['isEnabled'])return;const _0x3e1882=_0x3b0a5f>0x1?this['_getPageBreakLineOffset'](_0x3b0a5f-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x3e1882-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x26a5ea['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0xe28c6e=this['editor'],_0x5318c9=this['_getAttachedDomRoot']();_0x5318c9?(this['_scrollableEditingRootDomAncestor']&&_0xe28c6e['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x3cbcdf){let _0x549109=_0x3cbcdf;do{_0x549109=_0x549109['parentElement'];const _0x5c8be2=_0x3d899a['window']['getComputedStyle'](_0x549109)['overflowY'];if('auto'==_0x5c8be2||'scroll'==_0x5c8be2)break;}while('BODY'!=_0x549109['tagName']);return _0x549109;}(_0x5318c9),_0xe28c6e['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x42584f(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0xe28c6e['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x37e0df=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x37e0df['ui']['view']['listenTo'](_0x3d899a['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x37e0df['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x49d7ba of this['editor']['editing']['view']['domRoots']['values']())if(_0x49d7ba['ownerDocument']['body']['contains'](_0x49d7ba))return _0x49d7ba;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x2574a7=this['_getAttachedDomRoot'](),_0x33f4c8=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x2574a7||0x1==_0x33f4c8['length'])return void(this['pageNumber']=0x1);const _0x5ec84f=new _0x4e8282(_0x2574a7)['excludeScrollbarsAndBorders'](),_0x58bb7b=new _0x4e8282(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x3987e8=_0x58bb7b['top']+_0x58bb7b['height']/0x3;let _0x580aaf=!0x1;const _0x36ccfd=[];for(let _0x1fecd9=0x1;_0x1fecd9<_0x33f4c8['length'];_0x1fecd9++){const _0x4c2c23=this['_getPageBreakLineOffset'](_0x1fecd9,_0x58bb7b);if(!_0x4c2c23)continue;const _0x4f9c72=_0x58bb7b['top']+_0x4c2c23-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x36ccfd['push']({'pageOffsetTop':_0x4f9c72,'domRootRect':_0x5ec84f,'domScrollableRect':_0x58bb7b,'pageNumber':_0x1fecd9}),_0x4f9c72>_0x3987e8&&!_0x580aaf&&(this['pageNumber']=_0x1fecd9,_0x580aaf=!0x0);}this['_renderPageBreakLines'](_0x36ccfd),_0x580aaf||(this['pageNumber']=_0x33f4c8['length']);}['_renderPageBreakLines'](_0x4f8a5b){const {scrollX:_0x241ba4,scrollY:_0x29510e}=_0x3d899a['window'];if(_0x4f8a5b['length']){for(const {domScrollableRect:_0x562516,pageOffsetTop:_0x479464,domRootRect:_0x46909c,pageNumber:_0x70e73a}of _0x4f8a5b)_0x562516['top']<_0x479464&&_0x479464<_0x562516['bottom']&&this['linesRepository']['showLine'](_0x46909c['left']+_0x241ba4,_0x479464+_0x29510e,_0x46909c['width'],_0x70e73a+0x1);}}['_getPageBreakLineOffset'](_0x54de27,_0x56efc5=null){const _0x33b40d=this['_paginationLookupPlugin']['pageBreaks'][_0x54de27]['offset'];return _0x33b40d?(_0x56efc5||(_0x56efc5=new _0x4e8282(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x33b40d-_0x56efc5['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x3f6225,_0x1729cf=!0x0){const _0x3ec332=this['editor']['editing']['view'];_0x3ec332['change'](_0x54715d=>{for(const _0x23aadd of _0x3ec332['document']['roots'])_0x1729cf?_0x54715d['addClass'](_0x3f6225,_0x23aadd):_0x54715d['removeClass'](_0x3f6225,_0x23aadd);});}}function G(_0x2097ba,_0x4b2719,..._0x24592e){const t=_0x2097ba['t'];switch(_0x4b2719){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)',..._0x24592e);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 _0x4b2719;}}class C extends _0x465796{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x7414c=this['editor']['plugins']['get']('Pagination'),_0x3eb858=this['editor']['plugins']['get'](w),_0xe0231c=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x7414c),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0xe0231c),this['listenTo'](_0x3eb858,'change:pageBreaks',(_0x5bfa78,_0x52783d,_0x107344,_0x34c158)=>{this['totalPages']=_0x107344['length'],this['_updatePageBreakMarkers'](_0x107344,_0x34c158);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x317103=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x143d2f;for(const _0x48515b in _0x317103){const _0x2ebcb8=_0x48515b,_0x3028bc=_0x317103[_0x2ebcb8];if('paginationLicenseKeyValid'==_0x3028bc||'paginationLicenseKeyInvalid'==_0x3028bc||'paginationLicenseKeyExpired'==_0x3028bc||'paginationLicenseKeyDomainLimit'==_0x3028bc||'paginationLicenseKeyNotAllowed'==_0x3028bc||'paginationLicenseKeyEvaluationLimit'==_0x3028bc||'paginationLicenseKeyUsageLimit'==_0x3028bc){delete _0x317103[_0x2ebcb8],_0x143d2f=_0x3028bc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x143d2f&&_0x317103['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x143d2f&&_0x317103['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x143d2f&&_0x317103['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x143d2f&&_0x317103['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x143d2f&&_0x317103['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x143d2f&&_0x317103['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x55c954){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x55c954));}['moveSelectionToPage'](_0x48f310){if(!this['isEnabled'])return;const _0x22a0f3=this['editor'],_0x1091a2=this['editor']['plugins']['get'](w)['pageBreaks'][_0x48f310-0x1];_0x1091a2&&_0x22a0f3['model']['change'](_0x2a8ed2=>{switch(_0x1091a2['type']){case'manual':{const _0x1b2ab2=_0x22a0f3['model']['schema']['getNearestSelectionRange'](_0x1091a2['modelRange']['end'],'forward');_0x2a8ed2['setSelection'](_0x1b2ab2);break;}case'element':{const _0x43cc5d=_0x22a0f3['model']['schema']['getNearestSelectionRange'](_0x1091a2['modelRange']['start'],'forward');_0x2a8ed2['setSelection'](_0x43cc5d);break;}case'text':{const _0x1b4e31=_0x1091a2['modelRange']['start'];if(_0x1b4e31['textNode']&&'\x20'===_0x1b4e31['textNode']['data'][_0x1b4e31['offset']]){const _0x199012=_0x2a8ed2['createPositionAt'](_0x1b4e31['parent'],_0x1b4e31['offset']+0x1);_0x2a8ed2['setSelection'](_0x199012);}else _0x2a8ed2['setSelection'](_0x1091a2['modelRange']);}}_0x22a0f3['editing']['view']['focus']();});}['goToNextPage'](){const _0x655bca=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x655bca),this['scrollToPage'](_0x655bca);}['goToPreviousPage'](){const _0x854afd=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x854afd),this['scrollToPage'](_0x854afd);}['_updatePageBreakMarkers'](_0x488ffa,_0x1ba98d){const _0x4f6abd=this['editor']['model'];this['isEnabled']&&_0x4f6abd['change'](_0x28c812=>{for(let _0xb67c9b=0x1;_0xb67c9b<_0x488ffa['length'];_0xb67c9b++){const _0x17d0c8=_0x488ffa[_0xb67c9b]['modelRange'],_0x2f2590='pagination:'+(_0xb67c9b+0x1);_0x4f6abd['markers']['has'](_0x2f2590)?_0x28c812['updateMarker'](_0x2f2590,{'range':_0x17d0c8}):_0x28c812['addMarker'](_0x2f2590,{'range':_0x17d0c8,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0xb178a9=_0x488ffa['length'];_0xb178a9<_0x1ba98d['length'];_0xb178a9++){const _0x10fa87='pagination:'+(_0xb178a9+0x1);_0x4f6abd['markers']['has'](_0x10fa87)&&_0x28c812['removeMarker'](_0x10fa87);}});}['_setUpDataDowncastConversion'](){const _0x416c22='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0xd62898=>{_0xd62898['on']('addMarker:'+_0x416c22,(_0x4b87a2,{markerRange:_0x355e09,markerName:_0xf48a56},_0x56755b)=>{if(!_0x56755b['options']['pagination'])return;if(!_0x56755b['consumable']['consume'](_0x355e09,_0x4b87a2['name']))return;const _0x269ac6=_0x355e09['getContainedElement']();let _0x4c0d9a=_0x269ac6?_0x56755b['mapper']['toViewElement'](_0x269ac6):null;if(!_0x4c0d9a){const _0x5cea6c=_0x355e09['start'];if(_0x56755b['schema']['checkChild'](_0x5cea6c,'$text')){const _0x5d09e4=_0x56755b['mapper']['toViewPosition'](_0x5cea6c);_0x4c0d9a=_0x56755b['writer']['createContainerElement']('span'),_0x4c0d9a['getFillerOffset']=()=>null,_0x56755b['writer']['insert'](_0x5d09e4,_0x4c0d9a);}else{const _0x4419bb=_0x5cea6c['nodeAfter'];_0x4c0d9a=_0x56755b['mapper']['toViewElement'](_0x4419bb);}}for(;_0x4c0d9a['parent']!==_0x4c0d9a['root']&&0x0===_0x4c0d9a['index'];)_0x4c0d9a=_0x4c0d9a['parent'];const _0x44850c=_0xf48a56['substring'](0xb);_0x4c0d9a['hasClass']('page-break')||(_0x56755b['writer']['setStyle']('page-break-before','always',_0x4c0d9a),_0x56755b['writer']['setAttribute']('data-pagination-page',_0x44850c,_0x4c0d9a),_0x56755b['mapper']['bindElementToMarker'](_0x4c0d9a,_0xf48a56)),_0x4b87a2['stop']();});});}['_setupKeystrokes'](){const _0x5de591=this['editor'];_0x5de591['keystrokes']['set']('Shift+Pageup',(_0x548d7e,_0x3dcac2)=>{this['goToPreviousPage'](),_0x3dcac2();}),_0x5de591['keystrokes']['set']('Shift+Pagedown',(_0x330a8b,_0x711d94)=>{this['goToNextPage'](),_0x711d94();}),_0x5de591['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x5de591['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x5de591['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x5de591['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2a18eb){return _0x2a18eb<0x1&&(_0x2a18eb=0x1),_0x2a18eb>this['totalPages']&&(_0x2a18eb=this['totalPages']),_0x2a18eb;}}class U extends _0x43439d{['pageNumberView'];constructor(_0x3da9d9){super(_0x3da9d9);const _0x448c0a=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x4ebe34(_0x3da9d9,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x57ecae=>G(_0x3da9d9,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x57ecae)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x1df7ba=>!_0x1df7ba),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x448c0a['if']('isEnabled','ck-disabled',_0x334624=>!_0x334624)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x448c0a['to']('totalPages')}]}]});}['render'](){super['render']();const _0x12499d=this['pageNumberView']['element'],_0x37128b=_0x71de0c=>{this['pageNumberView']['element']['value']=String(_0x71de0c);};_0x37128b(this['pageNumber']),this['on']('change:pageNumber',(_0x5b4a3d,_0x59a7b8,_0x2c9d2c)=>{_0x37128b(_0x2c9d2c);}),this['listenTo'](_0x12499d,'keydown',(_0x570d1c,_0x4baf07)=>{if('ArrowUp'===_0x4baf07['key']||'ArrowDown'===_0x4baf07['key'])return void _0x4baf07['stopPropagation']();if(_0x4baf07['keyCode']!==_0x569aef['enter'])return;_0x4baf07['preventDefault']();const _0x57b29d=_0x12499d['valueAsNumber'];Number['isNaN'](_0x57b29d)?_0x12499d['value']=String(this['pageNumber']):(_0x12499d['checkValidity']()?this['pageNumber']=_0x57b29d:_0x57b29d>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x12499d['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x12499d['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x12499d,'blur',()=>{_0x12499d['value']=String(this['pageNumber']);}),this['listenTo'](_0x12499d,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x465796{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3828d0=this['editor'],_0x2677b1=_0x3828d0['plugins']['get']('PaginationEditing');_0x3828d0['ui']['componentFactory']['add']('pageNavigation',_0x3fca70=>{const _0x289bad=new U(_0x3fca70);return _0x289bad['bind']('pageNumber')['to'](_0x2677b1),_0x289bad['bind']('totalPages')['to'](_0x2677b1),_0x289bad['bind']('isEnabled')['to'](_0x2677b1),_0x289bad['on']('navigation',(_0x4ba379,_0x4b7987)=>{_0x2677b1['moveSelectionToPage'](_0x4b7987),_0x2677b1['scrollToPage'](_0x4b7987);}),_0x289bad;}),_0x3828d0['ui']['componentFactory']['add']('nextPage',_0x20bb7b=>{const _0xa2af63=new _0x46c922(_0x20bb7b);return _0xa2af63['isEnabled']=!0x0,_0xa2af63['label']=G(_0x3828d0['locale'],'Go\x20to\x20next\x20page'),_0xa2af63['icon']=_0x49dfc5,_0xa2af63['tooltip']=!0x0,_0xa2af63['keystroke']='Shift+PageDown',_0xa2af63['bind']('isEnabled')['to'](_0x2677b1),this['listenTo'](_0xa2af63,'execute',()=>{_0x2677b1['goToNextPage']();}),_0xa2af63;}),_0x3828d0['ui']['componentFactory']['add']('previousPage',_0x1649fd=>{const _0x4ada8f=new _0x46c922(_0x1649fd);return _0x4ada8f['isEnabled']=!0x0,_0x4ada8f['label']=G(_0x3828d0['locale'],'Go\x20to\x20previous\x20page'),_0x4ada8f['icon']=_0x41f95c,_0x4ada8f['tooltip']=!0x0,_0x4ada8f['keystroke']='Shift+PageUp',_0x4ada8f['bind']('isEnabled')['to'](_0x2677b1),this['listenTo'](_0x4ada8f,'execute',()=>{_0x2677b1['goToPreviousPage']();}),_0x4ada8f;});}}class j extends _0x465796{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x5b7ef2){super(_0x5b7ef2),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x45b4a4=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x45b4a4),this['bind']('totalPages')['to'](_0x45b4a4),_0x26a5ea['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x57b319){this['editor']['plugins']['get'](C)['scrollToPage'](_0x57b319);}}export{j as Pagination,$ as PaginationRenderer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.4",
|
|
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.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.4",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.4",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.4",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|