@ckeditor/ckeditor5-pagination 48.0.0-alpha.2 → 48.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -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 _0xdb54e1}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x1b89ce,InputNumberView as _0x4d67b8,ButtonView as _0x5d4a55}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x29045d,global as _0x1f984f,Rect as _0x549341,uid as _0x587400,toUnit as _0xbc7100,first as _0xf42c5a,env as _0x5dfeed,ResizeObserver as _0x570fd7,keyCodes as _0x570225}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x5d8007}from'es-toolkit/compat';import{IconArrowDown as _0x500847,IconArrowUp as _0x3b15e5}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0xdb54e1{['_recalculatePageBreaksDebounced']=_0x5d8007(()=>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 _0x29045d('pagination-config-not-found',this['editor']['config']);const _0x3e2ea2=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x3e2ea2),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x5d108a,_0x1e41fe,_0xb30b70)=>{_0xb30b70&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x425ab2){const _0x14478e=_0x20f18e([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]),_0x266f3a=0xc82cb1e,_0x5399e4=0xc854fe6^_0x266f3a,_0x3ef368=window[_0x20f18e([0x44,0x61,0x74,0x65])][_0x20f18e([0x6e,0x6f,0x77])](),_0x22ed8e=_0x425ab2[_0x20f18e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27432f=new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34fd3b=>{_0x22ed8e[_0x20f18e([0x6f,0x6e,0x63,0x65])](_0x20f18e([0x72,0x65,0x61,0x64,0x79]),_0x34fd3b);}),_0x19104={[_0x20f18e([0x6b,0x74,0x79])]:_0x20f18e([0x45,0x43]),[_0x20f18e([0x75,0x73,0x65])]:_0x20f18e([0x73,0x69,0x67]),[_0x20f18e([0x63,0x72,0x76])]:_0x20f18e([0x50,0x2d,0x32,0x35,0x36]),[_0x20f18e([0x78])]:_0x20f18e([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]),[_0x20f18e([0x79])]:_0x20f18e([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]),[_0x20f18e([0x61,0x6c,0x67])]:_0x20f18e([0x45,0x53,0x32,0x35,0x36])},_0x9a1051=_0x22ed8e[_0x20f18e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20f18e([0x67,0x65,0x74])](_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x126adf(){let _0x41a6d3,_0x2aed5=null,_0x2b1768=null;try{if(_0x9a1051==_0x20f18e([0x47,0x50,0x4c]))return _0x20f18e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41a6d3=_0x3601a1(),!_0x41a6d3)return _0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41a6d3[_0x20f18e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b1768=_0x411535(_0x41a6d3[_0x20f18e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41a6d3[_0x20f18e([0x6a,0x74,0x69])])),await _0x2044b9()?_0x138d26()?_0x2c5e01()?_0x20f18e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56c56d()?(_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20f18e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2aed5=_0x313ce5(_0x20f18e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e0cc7()):_0x20f18e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20f18e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20f18e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c5e01(){const _0x3b46d7=[_0x20f18e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20f18e([0x74,0x72,0x69,0x61,0x6c])][_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef368/0x3e8:0xe10*_0x5399e4;return _0x41a6d3[_0x20f18e([0x65,0x78,0x70])]<_0x3b46d7;}function _0x138d26(){const _0x419ce0=_0x41a6d3[_0x20f18e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x419ce0&&(!!_0x419ce0[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x2a]))||!!_0x419ce0[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x50,0x41,0x47])));}function _0x56c56d(){const _0x486bb1=_0x41a6d3[_0x20f18e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x486bb1||0x0==_0x486bb1[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xda2c9d}=new URL(window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x486bb1[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xda2c9d))return!0x0;const _0x26fa1b=_0xda2c9d[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e]));return _0x486bb1[_0x20f18e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea221=>_0x3ea221[_0x20f18e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f18e([0x2a])))[_0x20f18e([0x6d,0x61,0x70])](_0x183bdd=>_0x183bdd[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e])))[_0x20f18e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e4454=>_0x2e4454[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26fa1b[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20f18e([0x6d,0x61,0x70])](_0x147ec9=>Array(_0x26fa1b[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147ec9[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20f18e([0x66,0x69,0x6c,0x6c])](_0x147ec9[0x0]===_0x20f18e([0x2a])?_0x20f18e([0x2a]):'')[_0x20f18e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147ec9))[_0x20f18e([0x73,0x6f,0x6d,0x65])](_0x1fc87d=>_0x26fa1b[_0x20f18e([0x65,0x76,0x65,0x72,0x79])]((_0x505866,_0x2382f9)=>_0x1fc87d[_0x2382f9]===_0x505866||_0x1fc87d[_0x2382f9]===_0x20f18e([0x2a])));}function _0x1e0cc7(){return _0x2aed5&&_0x2b1768?new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4f86,_0x27fc0a)=>{_0x2aed5[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4e4f86,_0x27fc0a),_0x2b1768[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x1a54a1=>{_0x1a54a1!=_0x20f18e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e4f86(_0x1a54a1);},_0x27fc0a);}):_0x2aed5||_0x2b1768||_0x20f18e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x411535(_0x1cc649,_0x30c0c1){return new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45cbf4=>{if(_0x489c35())return _0x45cbf4(_0x20f18e([0x56,0x61,0x6c,0x69,0x64]));_0x3ee562(),_0x22ed8e[_0x20f18e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3923cf=!0x1;const _0x102143=_0x587400();function _0x10cbd0(_0x4b5e03){return!!_0x4b5e03&&(typeof _0x4b5e03===_0x20f18e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b5e03===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b5e03[_0x20f18e([0x74,0x68,0x65,0x6e])]===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b5e03[_0x20f18e([0x63,0x61,0x74,0x63,0x68])]===_0x20f18e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x525fe2(_0x4d4a47){_0x1313c0(_0x4d4a47)[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x2c6c67=>{if(!_0x2c6c67||_0x2c6c67[_0x20f18e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20f18e([0x6f,0x6b]))return _0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fc2d5(_0xa40e65(_0x102143+_0x30c0c1))!=_0x2c6c67[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20f18e([0x56,0x61,0x6c,0x69,0x64]);})[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4c05d7=>(_0x59b836(),_0x4c05d7),()=>{const _0x491c8c=_0x21b46e();return null==_0x491c8c?(_0x59b836(),_0x20f18e([0x56,0x61,0x6c,0x69,0x64])):_0x20f18e(_0x3ef368-_0x491c8c>(0x288e4f1e^_0x266f3a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x45cbf4)[_0x20f18e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d0b75=0xcb4259e^_0x266f3a;function _0x59b836(){const _0x10868d=_0x20f18e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc2d5(_0xa40e65(_0x1cc649)),_0x262bc9=_0x13165e(_0x2fc2d5(window[_0x20f18e([0x4d,0x61,0x74,0x68])][_0x20f18e([0x63,0x65,0x69,0x6c])](_0x3ef368/_0x4d0b75)));window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20f18e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10868d,_0x262bc9);}function _0x21b46e(){const _0x13226d=_0x20f18e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fc2d5(_0xa40e65(_0x1cc649)),_0x39048d=window[_0x20f18e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20f18e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13226d);return _0x39048d?window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13165e(_0x39048d),0x10)*_0x4d0b75:null;}function _0x1313c0(_0x5a7d82){return new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fccc8,_0x2becd4)=>{_0x5a7d82[_0x20f18e([0x74,0x68,0x65,0x6e])](_0x4fccc8,_0x2becd4),window[_0x20f18e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2becd4,0xc831fde^_0x266f3a);});}}_0x22ed8e[_0x20f18e([0x6f,0x6e])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x365ed5,_0x3b87cc)=>{if(_0x3b87cc[0x0]!=_0x1cc649)return _0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b87cc[0x1]={..._0x3b87cc[0x1],[_0x20f18e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x102143};},{[_0x20f18e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20f18e([0x68,0x69,0x67,0x68])}),_0x22ed8e[_0x20f18e([0x6f,0x6e])](_0x20f18e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3185ec=>{_0x10cbd0(_0x3185ec[_0x20f18e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3923cf=!0x0,_0x525fe2(_0x3185ec[_0x20f18e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20f18e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20f18e([0x6c,0x6f,0x77])}),_0x27432f[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>{_0x3923cf||_0x45cbf4(_0x20f18e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x489c35(){return _0x22ed8e[_0x20f18e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f18e([0x76,0x69,0x65,0x77])][_0x20f18e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20f18e([0x61,0x75,0x74,0x6f]);}function _0x3ee562(){_0x22ed8e[_0x20f18e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f18e([0x76,0x69,0x65,0x77])][_0x20f18e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20f18e([0x61,0x75,0x74,0x6f]);}}function _0x313ce5(_0x24d27e){const _0x5892b1=[new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dff1c=>setTimeout(_0x5dff1c,0xc8bf5d2^_0x266f3a)),_0x27432f[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cb33b=>{let _0x57dbbf=0x0;_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x6f,0x6e])](_0x20f18e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f6496,_0x40ccba)=>{_0x40ccba[0x0][_0x20f18e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57dbbf++,_0x57dbbf==(0xc82cef6^_0x266f3a)&&(_0x4cb33b(),_0x3f6496[_0x20f18e([0x6f,0x66,0x66])]());});}))];return window[_0x20f18e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20f18e([0x72,0x61,0x63,0x65])](_0x5892b1)[_0x20f18e([0x74,0x68,0x65,0x6e])](()=>_0x24d27e);}async function _0x387d87(){await _0x27432f,_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d25d8,_0x22ed8e[_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c])][_0x20f18e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d25d8,_0x22ed8e[_0x20f18e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20f18e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e5030(_0x142081){const _0x2e8f9f=_0x368ac9();_0x22ed8e[_0x2e8f9f]=_0x20f18e([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x142081,_0x142081!=_0x20f18e([0x56,0x61,0x6c,0x69,0x64])&&_0x387d87();}function _0x368ac9(){const _0x5d1203=window[_0x20f18e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20f18e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20f18e([0x6e,0x6f,0x77])]())[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20f18e([0x2e]),'');let _0x3b2b3a=_0x20f18e([0x49]);for(let _0x1dc41a=0x0;_0x1dc41a<_0x5d1203[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dc41a+=0x2){let _0x32d2da=window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d1203[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1dc41a,_0x1dc41a+0x2));_0x32d2da>=_0x14478e[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32d2da-=_0x14478e[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b2b3a+=_0x14478e[_0x32d2da];}return _0x3b2b3a;}function _0x3601a1(){const _0x5de764=_0x9a1051[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e]));if(0x3!=_0x5de764[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11d5e2(_0x5de764[0x1]);function _0x11d5e2(_0x4e5443){const _0x55330d=_0x58349f(_0x4e5443);return _0x55330d&&_0x5bdb78()?_0x55330d:null;function _0x5bdb78(){const _0x2024e7=_0x55330d[_0x20f18e([0x6a,0x74,0x69])],_0x35e9b5=window[_0x20f18e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2024e7[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2024e7[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x250875={..._0x55330d,[_0x20f18e([0x6a,0x74,0x69])]:_0x2024e7[_0x20f18e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2024e7[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x250875[_0x20f18e([0x76,0x63])],_0xa40e65(_0x250875)==_0x35e9b5;}}}async function _0x2044b9(){let _0x599df9=!0x0;try{const _0x3d3279=_0x9a1051[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])](_0x20f18e([0x2e])),[_0x21284c,_0x2efad0,_0x3b876b]=_0x3d3279;return _0x3f614b(_0x21284c),await _0xa6cdea(_0x21284c,_0x2efad0,_0x3b876b),_0x599df9;}catch{return!0x1;}function _0x3f614b(_0x46baac){const _0x1a39a4=_0x58349f(_0x46baac);_0x1a39a4&&_0x1a39a4[_0x20f18e([0x61,0x6c,0x67])]==_0x20f18e([0x45,0x53,0x32,0x35,0x36])||(_0x599df9=!0x1);}async function _0xa6cdea(_0x1d077a,_0x160042,_0x391ec8){const _0x258e7c=window[_0x20f18e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20f18e([0x66,0x72,0x6f,0x6d])](_0xa0a681(_0x391ec8),_0x238634=>_0x238634[_0x20f18e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xeb6d6f=new window[(_0x20f18e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20f18e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d077a+_0x20f18e([0x2e])+_0x160042),_0x592e07=window[_0x20f18e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20f18e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x592e07)return;const _0x46103e=await _0x592e07[_0x20f18e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20f18e([0x6a,0x77,0x6b]),_0x19104,{[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x45,0x43,0x44,0x53,0x41]),[_0x20f18e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20f18e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x592e07[_0x20f18e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x45,0x43,0x44,0x53,0x41]),[_0x20f18e([0x68,0x61,0x73,0x68])]:{[_0x20f18e([0x6e,0x61,0x6d,0x65])]:_0x20f18e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46103e,_0x258e7c,_0xeb6d6f)||(_0x599df9=!0x1);}}function _0x58349f(_0x447b77){return _0x447b77[_0x20f18e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20f18e([0x65,0x79]))?JSON[_0x20f18e([0x70,0x61,0x72,0x73,0x65])](_0xa0a681(_0x447b77)):null;}function _0xa0a681(_0x384e7e){return window[_0x20f18e([0x61,0x74,0x6f,0x62])](_0x384e7e[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20f18e([0x2b]))[_0x20f18e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20f18e([0x2f])));}function _0xa40e65(_0x109d06){let _0x5d41b7=0x1505;function _0x33b7c0(_0x1d5442){for(let _0x192b37=0x0;_0x192b37<_0x1d5442[_0x20f18e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x192b37++){const _0x44eb02=_0x1d5442[_0x20f18e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x192b37);_0x5d41b7=(_0x5d41b7<<0x5)+_0x5d41b7+_0x44eb02,_0x5d41b7&=_0x5d41b7;}}function _0x168ed0(_0x2098a8){Array[_0x20f18e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2098a8)?_0x2098a8[_0x20f18e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x168ed0):_0x2098a8&&typeof _0x2098a8==_0x20f18e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20f18e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2098a8)[_0x20f18e([0x73,0x6f,0x72,0x74])]()[_0x20f18e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fba6,_0x44972c])=>{_0x33b7c0(_0x4fba6),_0x168ed0(_0x44972c);}):_0x33b7c0(window[_0x20f18e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2098a8));}return _0x168ed0(_0x109d06),_0x5d41b7>>>0x0;}function _0x2fc2d5(_0x3a6998){return _0x3a6998[_0x20f18e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20f18e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20f18e([0x30]));}function _0x13165e(_0xb9f2df){return _0xb9f2df[_0x20f18e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20f18e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20f18e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d25d8(){}function _0x20f18e(_0x4f75f3){return _0x4f75f3['map'](_0x2960e8=>String['fromCharCode'](_0x2960e8))['join']('');}_0x5e5030(await _0x126adf());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x128497=this['editor'],_0x55d92a=_0x128497['editing']['view'],_0xfd5e59=this['_getAttachedDomRoot']();if(!_0xfd5e59||0x0===_0xfd5e59['childElementCount'])return void _0x128497['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x12b1ac,pageHeight:_0x5b22a4}=_0x128497['config']['get']('pagination'),{top:_0x171ff1,left:_0x40e737,bottom:_0x30f893,right:_0x540520}=this['_configuredPaddings'];this['_pagesContainer']=new _0x1b89ce(_0x128497['locale']);const _0x529e80=this['_pagesContainer'];_0x529e80['set']('class',''),_0x529e80['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x12b1ac,'width':_0x12b1ac,'height':'calc(\x20'+_0x5b22a4+'\x20-\x20'+_0x171ff1+'\x20-\x20'+_0x30f893+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x540520+'\x200\x20'+_0x40e737,'columnGap':'calc('+_0x40e737+'\x20+\x20'+_0x540520+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x529e80['bindTemplate']['to']('class')}}),_0x529e80['render'](),_0xfd5e59['parentNode']['insertBefore'](_0x529e80['element'],_0xfd5e59['nextSibling']),this['listenTo'](_0x55d92a,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x155f7a of this['editor']['editing']['view']['domRoots']['values']())if(_0x155f7a['ownerDocument']['body']['contains'](_0x155f7a))return _0x155f7a;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x31da3c=this['editor']['editing']['view'],_0x5abbc3=this['_pagesContainer'],_0x5b9340=this['_getAttachedDomRoot']();if(!_0x5b9340)return Promise['resolve']();for(_0x5abbc3['class']=['ck-reset','ck-pagination-view',..._0x5b9340['classList']]['join']('\x20');_0x5abbc3['element']['firstChild'];)_0x5abbc3['element']['firstChild']['remove']();const _0x5d1006=Array['from'](_0x31da3c['domRoots']);_0x5d1006['sort'](([,_0x23a639],[,_0x397012])=>_0x23a639['compareDocumentPosition'](_0x397012)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x2f1f17,_0x13e8fd]of _0x5d1006){const _0x14181f=_0x13e8fd['cloneNode'](!0x0);'attributeStyleMap'in _0x14181f&&_0x14181f['attributeStyleMap']['clear'](),_0x14181f['dataset']['rootName']=_0x2f1f17,_0x14181f['className']='ck-content\x20ck-pagination_enabled',_0x14181f['removeAttribute']('id'),_0x14181f['tabIndex']=-0x1,_0x5abbc3['element']['append'](_0x14181f);}const _0x4c7b7e=Array['from'](_0x5abbc3['element']['querySelectorAll']('img'));return function(_0x170c1f){return Promise['all'](_0x170c1f['map'](_0x3aff15=>Promise['race']([k(_0x3aff15),v(0x3e8)])));}(_0x4c7b7e)['then'](()=>{for(const _0x408bfb of _0x4c7b7e['filter'](_0x398a6e=>!_0x398a6e['closest']('table')))if(_0x408bfb['offsetParent']){const _0x438611=_0x1f984f['window']['getComputedStyle'](_0x408bfb),_0x1259fa=_0x1f984f['document']['createElement']('span');for(const _0xe6b6b2 of _0x438611)_0x1259fa['style']['setProperty'](_0xe6b6b2,_0x438611[_0xe6b6b2]);_0x1259fa['style']['backgroundImage']='url(\x20'+_0x408bfb['src']+'\x20)',_0x1259fa['style']['breakInside']='avoid','PICTURE'==_0x408bfb['parentElement']?.['tagName']?_0x408bfb['parentElement']['replaceWith'](_0x1259fa):_0x408bfb['replaceWith'](_0x1259fa);}return new Promise(_0xd256e6=>_0x1f984f['window']['requestAnimationFrame'](()=>_0xd256e6()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x3518c0=this['_pagesContainer']['element'];if(!_0x3518c0['ownerDocument']['body']['contains'](_0x3518c0))return;const _0x3b245d=new _0x549341(_0x3518c0)['excludeScrollbarsAndBorders'](),_0x3428f0=Math['floor'](_0x3b245d['width']+0x64),_0x2a00df=_(_0x3518c0,Math['floor'](_0x3b245d['left']-_0x3518c0['scrollLeft']),_0x3428f0,_0x3b245d['height'])['map'](_0x558026=>this['_mapPageStarterInfoToPageBreakInfo'](_0x558026))['filter'](_0x3c6c63=>!0x1!==_0x3c6c63);_0x2a00df['every'](_0x2c6d5b=>!!_0x2c6d5b)&&(this['pageBreaks']=_0x2a00df);}['_mapPageStarterInfoToPageBreakInfo'](_0x28de29){const _0x129285=this['editor']['editing']['view'],_0x8f5553=this['editor']['editing']['mapper'],_0x1825b4=_0x129285['domConverter'],_0x49c3bf=_0x28de29['path']['shift'](),_0x4c1551=this['_pagesContainer']['element']['childNodes'][_0x49c3bf]['dataset']['rootName'],_0x5893c4=_0x129285['getDomRoot'](_0x4c1551);if(!_0x5893c4)return null;const _0x4d8e78=function(_0x1a89d6,_0x3c699b){let _0x275ac7=_0x1a89d6;for(const _0x228eab of _0x3c699b['path']){if(!_0x275ac7)return null;_0x275ac7=_0x275ac7['childNodes'][_0x228eab];}return _0x275ac7;}(_0x5893c4,_0x28de29);if(!_0x4d8e78)return null;const _0x51d7d7=_0x1825b4['domPositionToView'](_0x4d8e78,_0x28de29['textOffset']||0x0);return _0x51d7d7?'manual'==_0x28de29['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78):'text'==_0x28de29['type']&&_0x8f5553['toModelPosition'](_0x51d7d7)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78,_0x28de29['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x51d7d7,_0x4d8e78,_0x28de29['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x17aa1d,_0x17db63){const _0xd07375=this['editor']['model'],_0x3ef8c0=this['editor']['editing']['mapper']['toModelElement'](_0x17aa1d['parent']),_0x5847d5=_0xd07375['createRangeOn'](_0x3ef8c0);return new b({'type':'manual','modelRange':_0x5847d5,'domNode':_0x17db63,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x26fb9d,_0x152b56,_0x55087d){const _0x44abbd=this['editor']['model'],_0x2d3be7=this['editor']['editing']['mapper'],_0x2f3888=this['editor']['editing']['view']['domConverter'];if(_0x55087d>=_0x152b56['length'])return null;const _0x5d5c23=_0x2d3be7['toModelPosition'](_0x26fb9d),_0x47e126=_0x44abbd['createRange'](_0x5d5c23),_0xdfbae7=_0x2d3be7['findMappedViewAncestor'](_0x26fb9d),_0x2985fd=_0x2f3888['mapViewToDom'](_0xdfbae7);return new b({'type':'text','modelRange':_0x47e126,'domNode':_0x152b56,'offset':P(_0x152b56,_0x55087d,_0x2985fd)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x3cace2,_0x23cdb0,_0x32bf02){const _0x4967eb=this['editor']['model'],_0x598231=this['editor']['editing'],_0x1037f0=_0x598231['mapper'],_0x5a33a7=_0x598231['view']['domConverter'],_0x370036=_0x1037f0['findMappedViewAncestor'](_0x3cace2),_0x54d780=_0x1037f0['toModelElement'](_0x370036);if(!_0x54d780||_0x54d780['is']('element','$root'))return!0x1;const _0x4b01b3=function(_0xdcad13){const _0x53c9c7=_0xdcad13['parent'],_0x34134e=_0x53c9c7['root']['document']['model'],_0x2c6ef8=_0x53c9c7['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1f817f=null;for(const _0xe0b5c4 of _0x2c6ef8){if(_0xe0b5c4['is']('rootElement'))return _0x1f817f;if(!_0x34134e['createPositionBefore'](_0xe0b5c4)['isTouching'](_0xdcad13))return _0x1f817f;_0x1f817f=_0xe0b5c4;}}(_0x4967eb['createPositionBefore'](_0x54d780)),_0x35e723=_0x4b01b3||_0x54d780;let _0x4cf89b=_0x1037f0['toViewElement'](_0x35e723),_0x44981e=_0x4967eb['createRangeOn'](_0x35e723);const _0x306e80=_0x4967eb['createPositionBefore'](_0x35e723)['nodeBefore'];if(_0x306e80&&_0x306e80['is']('element','imageBlock')){const _0x20be5a=_0x1037f0['toViewElement'](_0x306e80),_0xe23efa=_0x5a33a7['mapViewToDom'](_0x20be5a),_0x48f926=_0x1f984f['window']['getComputedStyle'](_0xe23efa)['float'];'left'!=_0x48f926&&'right'!=_0x48f926||(_0x44981e=_0x4967eb['createRangeOn'](_0x306e80));}for(;_0x4cf89b['parent']!==_0x4cf89b['root']&&0x0===_0x4cf89b['index'];)_0x4cf89b=_0x4cf89b['parent'];const _0x1cc76e=new _0x549341(I(_0x23cdb0)?_0x23cdb0:x(_0x23cdb0)),_0x3bf727=_0x32bf02?_0x1cc76e['height']-_0x32bf02:0x0,_0xa12572=_0x5a33a7['mapViewToDom'](_0x4cf89b),_0x5e73e8=new _0x549341(_0xa12572);return new b({'type':'element','modelRange':_0x44981e,'domNode':_0xa12572,'offset':Math['round'](_0x3bf727)||_0x370036!=y(_0x3cace2)?_0x3bf727+_0x1cc76e['top']-_0x5e73e8['top']:0x0});}get['_configuredPaddings'](){const _0x153063=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x153063);}static['_findPageStarterInfos'](_0x1aa5f6,_0x19ae8c,_0x3b8625,_0x5850f2,_0x1ff0ea){return _(_0x1aa5f6,_0x19ae8c,_0x3b8625,_0x5850f2,_0x1ff0ea);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x403925,modelRange:_0x38517c,domNode:_0x9d8309,offset:_0x2f1275}){this['type']=_0x403925,this['modelRange']=_0x38517c,this['_domNode']=_0x9d8309,this['_offset']=_0x2f1275;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x20b3d7=new _0x549341(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x20b3d7['top']+_0x20b3d7['height']/0x2:_0x20b3d7['top']+this['_offset'];}}function P(_0x11538b,_0x3b536c,_0x358a20){const _0x33e8c4=x(_0x11538b),_0x38ef1e=function(_0x55a5a5){const _0x24d87d=_0x1f984f['document']['createRange']();return _0x24d87d['selectNodeContents'](_0x55a5a5),_0x24d87d;}(_0x358a20);let _0x2b9269;_0x2b9269=0x0==_0x3b536c?L(_0x38ef1e['startContainer'],_0x38ef1e['startOffset'],_0x11538b['parentNode'],Array['from'](_0x11538b['parentNode']['childNodes'])['indexOf'](_0x11538b)):L(_0x38ef1e['startContainer'],_0x38ef1e['startOffset'],_0x11538b,_0x3b536c);const _0x3b04f7=L(_0x11538b,_0x3b536c,_0x38ef1e['endContainer'],_0x38ef1e['endOffset']),_0x315d4a=new _0x549341(_0x2b9269)['bottom'];return(new _0x549341(_0x3b04f7)['top']+_0x315d4a)/0x2-new _0x549341(_0x33e8c4)['top'];}function y(_0x282f64){let _0x13a2ab=_0x282f64['parent'];for(;_0x13a2ab['is']('$text')||_0x13a2ab['is']('attributeElement');)_0x13a2ab=_0x13a2ab['parent'];return _0x13a2ab;}function k(_0x1c042c){return _0x1c042c['hasAttribute']('width')&&_0x1c042c['hasAttribute']('height')?Promise['resolve']():new Promise(_0x12d24a=>{function _0x211e09(){_0x1c042c['removeEventListener']('load',_0x211e09),_0x1c042c['removeEventListener']('error',_0x211e09),_0x12d24a();}_0x1c042c['complete']?_0x12d24a():(_0x1c042c['addEventListener']('load',_0x211e09),_0x1c042c['addEventListener']('error',_0x211e09));});}function v(_0x284705){return new Promise(_0x219f88=>setTimeout(_0x219f88,_0x284705));}function x(_0xc6f0fc){const _0x6bf8a6=_0x1f984f['document']['createRange']();return _0x6bf8a6['selectNode'](_0xc6f0fc),_0x6bf8a6;}function N(_0x3180e2,_0x1c3a40,_0x26a543){const _0x381ccc=_0x1f984f['document']['createRange']();return _0x381ccc['setStart'](_0x3180e2,_0x1c3a40),_0x381ccc['setEnd'](_0x3180e2,_0x26a543),_0x381ccc;}function L(_0x47f76e,_0xee7220,_0x16fbfd,_0x19e7e0){const _0x401880=_0x1f984f['document']['createRange']();return _0x401880['setStart'](_0x47f76e,_0xee7220),_0x401880['setEnd'](_0x16fbfd,_0x19e7e0),_0x401880;}function _(_0x33e215,_0x8dc8e7,_0xc6ef4f,_0x421f73,_0x1e98d2){const _0x4c12e2=[];for(const [_0x7c27fb,_0x1fb31c]of _0x33e215['childNodes']['entries']()){let _0x23edfa=[];I(_0x1fb31c)&&_0x1fb31c['offsetParent']&&['static','relative']['includes'](_0x1f984f['window']['getComputedStyle'](_0x1fb31c)['position'])?_0x23edfa=S(_0x1fb31c,_0x7c27fb,_0x8dc8e7,_0xc6ef4f,_0x421f73,_0x1e98d2):O(_0x1fb31c)&&(_0x23edfa=E(_0x1fb31c,_0x7c27fb,_0x8dc8e7,_0xc6ef4f,_0x1e98d2)),_0x23edfa['length']&&(_0x4c12e2['push'](..._0x23edfa),_0x8dc8e7+=_0x23edfa['length']*_0xc6ef4f,_0x1e98d2=!0x1);}return _0x4c12e2;}function S(_0xf286f8,_0x30382e,_0x2f2629,_0x236e1c,_0x22e571,_0x4d7aef){const _0x471ceb=[];var _0x9005b0;if((_0x9005b0=_0xf286f8['previousSibling'])&&I(_0x9005b0)&&Boolean(_0x9005b0['classList']['contains']('page-break')||_0x9005b0['closest']('.page-break'))&&(_0x471ceb['push']({'type':'manual','offset':0x0,'path':[_0x30382e-0x1]}),_0x4d7aef=!0x0),'table-row'==_0x1f984f['window']['getComputedStyle'](_0xf286f8)['display']){let _0x40dc80=0x0,_0x482189=!0x1;for(const _0x453060 of _0xf286f8['getClientRects']())_0x40dc80+=_0x453060['height'],_0x453060['left']>=_0x2f2629&&(_0x482189=!0x0);if(_0x40dc80<_0x22e571&&_0x482189)return _0x4d7aef||_0x471ceb['push']({'type':'element','offset':0x0,'path':[_0x30382e]}),_0x471ceb;}const _0x1297d2=_0xf286f8['closest']('figure.image');if(_0x1297d2&&function(_0x1aa0c7){let _0x42dc17=!0x1;const _0x5081ab=_0x1aa0c7['parentElement'],_0x46d673=_0x5081ab['dataset']['rootName'],_0x4bde3f=_0x1aa0c7['nextElementSibling'],_0x4ae85d=_0x1aa0c7['previousElementSibling'],_0x51b495=_0x4bde3f&&_0x1f984f['window']['getComputedStyle'](_0x4bde3f)['float'],_0x5d3524=_0x4bde3f&&'ck-fake-selection-container'===_0x4bde3f['className'];!_0x46d673||_0x4bde3f||_0x4ae85d||(_0x42dc17=!0x0),_0x46d673&&!_0x4ae85d&&_0x5d3524&&(_0x42dc17=!0x0),_0x46d673&&!_0x4ae85d&&'none'!==_0x51b495&&(_0x42dc17=!0x0);if(_0x42dc17)return!0x1;return!0x0;}(_0x1297d2)){const _0x4ca3cb=_0x1f984f['window']['getComputedStyle'](_0x1297d2)['float'];if('left'==_0x4ca3cb||'right'==_0x4ca3cb)return _0x471ceb;}const _0x34ab35=_(_0xf286f8,_0x2f2629,_0x236e1c,_0x22e571,_0x4d7aef);if(_0x34ab35['length']){for(const _0x3d72c5 of _0x34ab35)_0x471ceb['push']({'type':_0x3d72c5['type'],'offset':_0x3d72c5['offset'],'textOffset':_0x3d72c5['textOffset'],'path':[_0x30382e,..._0x3d72c5['path']]}),_0x2f2629+=_0x236e1c,_0x4d7aef=!0x1;return _0x471ceb;}return _0x471ceb['push'](...function(_0x3d7dc7,_0x344288,_0x18ec89,_0x290a6f,_0x158622){const _0x134105=[];if('table-cell'==_0x1f984f['window']['getComputedStyle'](_0x3d7dc7)['display'])return[];const _0x267670=[];for(const _0x1f2760 of _0x3d7dc7['getClientRects']())if(_0x1f2760['left']>=_0x18ec89){for(const _0x14be4c of _0x267670)_0x14be4c['height']+=_0x1f2760['height'];_0x267670['push']({'height':_0x1f2760['height']}),_0x18ec89+=_0x290a6f;}for(const _0x1ee4d8 of _0x267670)_0x158622||_0x134105['push']({'type':'element','offset':_0x1ee4d8['height'],'textOffset':0x0,'path':[_0x344288]}),_0x158622=!0x1;return _0x134105;}(_0xf286f8,_0x30382e,_0x2f2629,_0x236e1c,_0x4d7aef)),_0x471ceb;}function E(_0x3b6891,_0x244985,_0xe47f38,_0x40c6f8,_0x2ce3b2){const _0x264faa=x(_0x3b6891),_0x436c40=[];let _0x5c67d3=0x0;for(const _0x184377 of _0x264faa['getClientRects']())if(_0x184377['left']>=_0xe47f38){const _0x10c861=R(_0x3b6891,_0x5c67d3,_0xe47f38,_0x40c6f8);_0x2ce3b2||_0x436c40['push']({'type':'text','path':[_0x244985],'textOffset':_0x10c861}),_0x5c67d3=_0x10c861,_0xe47f38+=_0x40c6f8,_0x2ce3b2=!0x1;}return _0x436c40;}function R(_0x4b2d44,_0x79abaa,_0xfc3b4,_0x207c09){let _0x16b697=_0x79abaa,_0x37c74a=_0x4b2d44['length'];for(;_0x37c74a-_0x16b697>0x1;){const _0x1b33ca=Math['ceil']((_0x16b697+_0x37c74a)/0x2);K(N(_0x4b2d44,_0x16b697,_0x1b33ca),_0xfc3b4,_0x207c09)?_0x37c74a=_0x1b33ca:_0x16b697=_0x1b33ca;}return _0x16b697;}function K(_0x5a9b7e,_0x2b58da,_0x1ab3a5){for(const _0x2617ec of _0x5a9b7e['getClientRects']())if(_0x2617ec['left']>=_0x2b58da&&_0x2617ec['left']<_0x2b58da+_0x1ab3a5)return!0x0;return!0x1;}function I(_0x19246a){return _0x19246a['nodeType']==Node['ELEMENT_NODE'];}function O(_0x577778){return _0x577778['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
- _0xbc7100('px');class T extends _0x1b89ce{constructor(){super();const _0x4e9809=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x4e9809['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x4e9809['if']('isVisible','ck-hidden',_0x38299f=>!_0x38299f)],'style':{'left':_0x4e9809['to']('left',_0x4ce743=>B(_0x4ce743)),'top':_0x4e9809['to']('top',_0x2953e2=>B(_0x2953e2)),'width':_0x4e9809['to']('width',_0x37f8ac=>B(_0x37f8ac))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x522166){this['_viewCollection']=_0x522166['ui']['view']['body'];}['destroy'](){for(const _0xc61c0 of this['_hiddenLines'])_0xc61c0['destroy']();}['cleanLines'](){for(const _0x40fdd7 of this['_visibleLines'])_0x40fdd7['isVisible']=!0x1,this['_hiddenLines']['add'](_0x40fdd7);this['_visibleLines']['clear']();}['showLine'](_0x1e1c97,_0x37e263,_0x1587a4,_0x2bfd9a){let _0x3b8e48;this['_hiddenLines']['size']?(_0x3b8e48=_0xf42c5a(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x3b8e48)):_0x3b8e48=new T(),_0x3b8e48['set']({'pageNumber':_0x2bfd9a,'left':_0x1e1c97,'top':_0x37e263,'width':_0x1587a4}),_0x3b8e48['isVisible']=!0x0,this['_viewCollection']['has'](_0x3b8e48)||this['_viewCollection']['add'](_0x3b8e48),this['_visibleLines']['add'](_0x3b8e48);}['setViewCollection'](_0x79cf7b){for(const _0x59c424 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x59c424)&&this['_viewCollection']['remove'](_0x59c424);this['_viewCollection']=_0x79cf7b;}}const D='ck-pagination_enabled';class $ extends _0xdb54e1{['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',(_0xf1ba7d,_0x2d21f6,_0x2cab3a)=>{_0x2cab3a||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x2cab3a);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1cc357){if(!this['isEnabled'])return;const _0x499093=_0x1cc357>0x1?this['_getPageBreakLineOffset'](_0x1cc357-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x499093-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x5dfeed['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x7b1502=this['editor'],_0x25f12a=this['_getAttachedDomRoot']();_0x25f12a?(this['_scrollableEditingRootDomAncestor']&&_0x7b1502['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x5e1931){let _0x2ada2c=_0x5e1931;do{_0x2ada2c=_0x2ada2c['parentElement'];const _0x54f677=_0x1f984f['window']['getComputedStyle'](_0x2ada2c)['overflowY'];if('auto'==_0x54f677||'scroll'==_0x54f677)break;}while('BODY'!=_0x2ada2c['tagName']);return _0x2ada2c;}(_0x25f12a),_0x7b1502['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x570fd7(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x7b1502['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x4f7fdc=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x4f7fdc['ui']['view']['listenTo'](_0x1f984f['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x4f7fdc['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x7eafab of this['editor']['editing']['view']['domRoots']['values']())if(_0x7eafab['ownerDocument']['body']['contains'](_0x7eafab))return _0x7eafab;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x28008d=this['_getAttachedDomRoot'](),_0xf10f06=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x28008d||0x1==_0xf10f06['length'])return void(this['pageNumber']=0x1);const _0xc33ac0=new _0x549341(_0x28008d)['excludeScrollbarsAndBorders'](),_0x3b1cdf=new _0x549341(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x4d6418=_0x3b1cdf['top']+_0x3b1cdf['height']/0x3;let _0x511500=!0x1;const _0x230a7e=[];for(let _0x34e71e=0x1;_0x34e71e<_0xf10f06['length'];_0x34e71e++){const _0x185c7c=this['_getPageBreakLineOffset'](_0x34e71e,_0x3b1cdf);if(!_0x185c7c)continue;const _0x20aa0b=_0x3b1cdf['top']+_0x185c7c-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x230a7e['push']({'pageOffsetTop':_0x20aa0b,'domRootRect':_0xc33ac0,'domScrollableRect':_0x3b1cdf,'pageNumber':_0x34e71e}),_0x20aa0b>_0x4d6418&&!_0x511500&&(this['pageNumber']=_0x34e71e,_0x511500=!0x0);}this['_renderPageBreakLines'](_0x230a7e),_0x511500||(this['pageNumber']=_0xf10f06['length']);}['_renderPageBreakLines'](_0x2ac9fe){const {scrollX:_0x5f2821,scrollY:_0x51af38}=_0x1f984f['window'];if(_0x2ac9fe['length']){for(const {domScrollableRect:_0x920d8d,pageOffsetTop:_0x43649f,domRootRect:_0x1e3f0d,pageNumber:_0x294f60}of _0x2ac9fe)_0x920d8d['top']<_0x43649f&&_0x43649f<_0x920d8d['bottom']&&this['linesRepository']['showLine'](_0x1e3f0d['left']+_0x5f2821,_0x43649f+_0x51af38,_0x1e3f0d['width'],_0x294f60+0x1);}}['_getPageBreakLineOffset'](_0x2c2d7a,_0x1cd66e=null){const _0x1de144=this['_paginationLookupPlugin']['pageBreaks'][_0x2c2d7a]['offset'];return _0x1de144?(_0x1cd66e||(_0x1cd66e=new _0x549341(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x1de144-_0x1cd66e['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x4799b0,_0xc8b87=!0x0){const _0xc39db=this['editor']['editing']['view'];_0xc39db['change'](_0x5e0080=>{for(const _0x532fe8 of _0xc39db['document']['roots'])_0xc8b87?_0x5e0080['addClass'](_0x4799b0,_0x532fe8):_0x5e0080['removeClass'](_0x4799b0,_0x532fe8);});}}function G(_0x31d0f5,_0x12c0f3,..._0x54a0ba){const t=_0x31d0f5['t'];switch(_0x12c0f3){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)',..._0x54a0ba);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 _0x12c0f3;}}class C extends _0xdb54e1{['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 _0x2a9448=this['editor']['plugins']['get']('Pagination'),_0xc16144=this['editor']['plugins']['get'](w),_0x199a49=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x2a9448),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x199a49),this['listenTo'](_0xc16144,'change:pageBreaks',(_0x34f33d,_0x449404,_0x15d722,_0x119486)=>{this['totalPages']=_0x15d722['length'],this['_updatePageBreakMarkers'](_0x15d722,_0x119486);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b5991=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d56e7;for(const _0x4f751b in _0x1b5991){const _0x4cedcf=_0x4f751b,_0x47a97d=_0x1b5991[_0x4cedcf];if('paginationLicenseKeyValid'==_0x47a97d||'paginationLicenseKeyInvalid'==_0x47a97d||'paginationLicenseKeyExpired'==_0x47a97d||'paginationLicenseKeyDomainLimit'==_0x47a97d||'paginationLicenseKeyNotAllowed'==_0x47a97d||'paginationLicenseKeyEvaluationLimit'==_0x47a97d||'paginationLicenseKeyUsageLimit'==_0x47a97d){delete _0x1b5991[_0x4cedcf],_0x1d56e7=_0x47a97d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1d56e7&&_0x1b5991['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1d56e7&&_0x1b5991['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1d56e7&&_0x1b5991['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1d56e7&&_0x1b5991['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x48ced6){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x48ced6));}['moveSelectionToPage'](_0x11bd6e){if(!this['isEnabled'])return;const _0xf2168=this['editor'],_0x43cc82=this['editor']['plugins']['get'](w)['pageBreaks'][_0x11bd6e-0x1];_0x43cc82&&_0xf2168['model']['change'](_0x395de9=>{switch(_0x43cc82['type']){case'manual':{const _0x48a135=_0xf2168['model']['schema']['getNearestSelectionRange'](_0x43cc82['modelRange']['end'],'forward');_0x395de9['setSelection'](_0x48a135);break;}case'element':{const _0x31a66c=_0xf2168['model']['schema']['getNearestSelectionRange'](_0x43cc82['modelRange']['start'],'forward');_0x395de9['setSelection'](_0x31a66c);break;}case'text':{const _0x198403=_0x43cc82['modelRange']['start'];if(_0x198403['textNode']&&'\x20'===_0x198403['textNode']['data'][_0x198403['offset']]){const _0x4d94d7=_0x395de9['createPositionAt'](_0x198403['parent'],_0x198403['offset']+0x1);_0x395de9['setSelection'](_0x4d94d7);}else _0x395de9['setSelection'](_0x43cc82['modelRange']);}}_0xf2168['editing']['view']['focus']();});}['goToNextPage'](){const _0x1adde3=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1adde3),this['scrollToPage'](_0x1adde3);}['goToPreviousPage'](){const _0x527cd7=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x527cd7),this['scrollToPage'](_0x527cd7);}['_updatePageBreakMarkers'](_0x345ee9,_0x281163){const _0x9c581=this['editor']['model'];this['isEnabled']&&_0x9c581['change'](_0x1e94e5=>{for(let _0x37ba6c=0x1;_0x37ba6c<_0x345ee9['length'];_0x37ba6c++){const _0x2096a1=_0x345ee9[_0x37ba6c]['modelRange'],_0x2ab440='pagination:'+(_0x37ba6c+0x1);_0x9c581['markers']['has'](_0x2ab440)?_0x1e94e5['updateMarker'](_0x2ab440,{'range':_0x2096a1}):_0x1e94e5['addMarker'](_0x2ab440,{'range':_0x2096a1,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x21e2b4=_0x345ee9['length'];_0x21e2b4<_0x281163['length'];_0x21e2b4++){const _0x23b72a='pagination:'+(_0x21e2b4+0x1);_0x9c581['markers']['has'](_0x23b72a)&&_0x1e94e5['removeMarker'](_0x23b72a);}});}['_setUpDataDowncastConversion'](){const _0x4a7fa1='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x3c2dd5=>{_0x3c2dd5['on']('addMarker:'+_0x4a7fa1,(_0x144f89,{markerRange:_0x36e62c,markerName:_0x40f7a1},_0x13ff45)=>{if(!_0x13ff45['options']['pagination'])return;if(!_0x13ff45['consumable']['consume'](_0x36e62c,_0x144f89['name']))return;const _0x4314f5=_0x36e62c['getContainedElement']();let _0x186887=_0x4314f5?_0x13ff45['mapper']['toViewElement'](_0x4314f5):null;if(!_0x186887){const _0x2fefce=_0x36e62c['start'];if(_0x13ff45['schema']['checkChild'](_0x2fefce,'$text')){const _0x129e61=_0x13ff45['mapper']['toViewPosition'](_0x2fefce);_0x186887=_0x13ff45['writer']['createContainerElement']('span'),_0x186887['getFillerOffset']=()=>null,_0x13ff45['writer']['insert'](_0x129e61,_0x186887);}else{const _0x690377=_0x2fefce['nodeAfter'];_0x186887=_0x13ff45['mapper']['toViewElement'](_0x690377);}}for(;_0x186887['parent']!==_0x186887['root']&&0x0===_0x186887['index'];)_0x186887=_0x186887['parent'];const _0x469bd8=_0x40f7a1['substring'](0xb);_0x186887['hasClass']('page-break')||(_0x13ff45['writer']['setStyle']('page-break-before','always',_0x186887),_0x13ff45['writer']['setAttribute']('data-pagination-page',_0x469bd8,_0x186887),_0x13ff45['mapper']['bindElementToMarker'](_0x186887,_0x40f7a1)),_0x144f89['stop']();});});}['_setupKeystrokes'](){const _0x8b19f0=this['editor'];_0x8b19f0['keystrokes']['set']('Shift+Pageup',(_0x516b1b,_0x21a5a3)=>{this['goToPreviousPage'](),_0x21a5a3();}),_0x8b19f0['keystrokes']['set']('Shift+Pagedown',(_0x38a6ab,_0x1e8d5c)=>{this['goToNextPage'](),_0x1e8d5c();}),_0x8b19f0['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x8b19f0['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x8b19f0['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x8b19f0['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x482247){return _0x482247<0x1&&(_0x482247=0x1),_0x482247>this['totalPages']&&(_0x482247=this['totalPages']),_0x482247;}}class U extends _0x1b89ce{['pageNumberView'];constructor(_0x463443){super(_0x463443);const _0x104fe7=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x4d67b8(_0x463443,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x10b866=>G(_0x463443,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x10b866)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x353155=>!_0x353155),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x104fe7['if']('isEnabled','ck-disabled',_0x40b60b=>!_0x40b60b)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x104fe7['to']('totalPages')}]}]});}['render'](){super['render']();const _0x189bac=this['pageNumberView']['element'],_0x1ed078=_0x151d1e=>{this['pageNumberView']['element']['value']=String(_0x151d1e);};_0x1ed078(this['pageNumber']),this['on']('change:pageNumber',(_0x447aba,_0x201bf0,_0x1e104d)=>{_0x1ed078(_0x1e104d);}),this['listenTo'](_0x189bac,'keydown',(_0x2cd82a,_0x51bf1f)=>{if('ArrowUp'===_0x51bf1f['key']||'ArrowDown'===_0x51bf1f['key'])return void _0x51bf1f['stopPropagation']();if(_0x51bf1f['keyCode']!==_0x570225['enter'])return;_0x51bf1f['preventDefault']();const _0x4a8e2a=_0x189bac['valueAsNumber'];Number['isNaN'](_0x4a8e2a)?_0x189bac['value']=String(this['pageNumber']):(_0x189bac['checkValidity']()?this['pageNumber']=_0x4a8e2a:_0x4a8e2a>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x189bac['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x189bac['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x189bac,'blur',()=>{_0x189bac['value']=String(this['pageNumber']);}),this['listenTo'](_0x189bac,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0xdb54e1{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f4580=this['editor'],_0x354491=_0x4f4580['plugins']['get']('PaginationEditing');_0x4f4580['ui']['componentFactory']['add']('pageNavigation',_0x63fbc6=>{const _0x59723d=new U(_0x63fbc6);return _0x59723d['bind']('pageNumber')['to'](_0x354491),_0x59723d['bind']('totalPages')['to'](_0x354491),_0x59723d['bind']('isEnabled')['to'](_0x354491),_0x59723d['on']('navigation',(_0x2d1035,_0x923340)=>{_0x354491['moveSelectionToPage'](_0x923340),_0x354491['scrollToPage'](_0x923340);}),_0x59723d;}),_0x4f4580['ui']['componentFactory']['add']('nextPage',_0x5d85ef=>{const _0x3358f2=new _0x5d4a55(_0x5d85ef);return _0x3358f2['isEnabled']=!0x0,_0x3358f2['label']=G(_0x4f4580['locale'],'Go\x20to\x20next\x20page'),_0x3358f2['icon']=_0x500847,_0x3358f2['tooltip']=!0x0,_0x3358f2['keystroke']='Shift+PageDown',_0x3358f2['bind']('isEnabled')['to'](_0x354491),this['listenTo'](_0x3358f2,'execute',()=>{_0x354491['goToNextPage']();}),_0x3358f2;}),_0x4f4580['ui']['componentFactory']['add']('previousPage',_0x4818b0=>{const _0x53e879=new _0x5d4a55(_0x4818b0);return _0x53e879['isEnabled']=!0x0,_0x53e879['label']=G(_0x4f4580['locale'],'Go\x20to\x20previous\x20page'),_0x53e879['icon']=_0x3b15e5,_0x53e879['tooltip']=!0x0,_0x53e879['keystroke']='Shift+PageUp',_0x53e879['bind']('isEnabled')['to'](_0x354491),this['listenTo'](_0x53e879,'execute',()=>{_0x354491['goToPreviousPage']();}),_0x53e879;});}}class j extends _0xdb54e1{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x2b39b7){super(_0x2b39b7),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x1e352c=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x1e352c),this['bind']('totalPages')['to'](_0x1e352c),_0x5dfeed['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x432fbc){this['editor']['plugins']['get'](C)['scrollToPage'](_0x432fbc);}}export{j as Pagination,$ as PaginationRenderer};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-pagination",
3
- "version": "48.0.0-alpha.2",
3
+ "version": "48.0.0-alpha.3",
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.2",
25
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.2",
26
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.2",
27
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.2",
28
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.3",
26
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.3",
27
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.3",
28
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.3",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [