@ckeditor/ckeditor5-footnotes 47.4.0-alpha.5 → 47.4.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=252]})(t,e)}function c(){const t=["426uhQFzV","24016NbITqf","flat","name","_model","has","slice","root","element","$text","values","remove","insert","_getElementKey","elementName","173954RYZYRJ","506992eDIaTP","12rVgxsW","delete","22455158wXvuzx","78205NDiAml","get","nodeAfter","$graveyard","getItems","7930260ULDDAs","_elementName","type","position","attributes","set","length","createRangeOn","10Qhkocc","42VtqCmk","_trackedElements","rootName","798MkmcOz","add","373022WQKyaY","getElementKey","push","getChanges","reset","from","clear"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(806548===-parseInt(e(257))/1+-parseInt(e(279))/2+-parseInt(e(255))/3*(-parseInt(e(265))/4)+-parseInt(e(284))/5*(parseInt(e(264))/6)+parseInt(e(252))/7*(-parseInt(e(280))/8)+parseInt(e(289))/9*(-parseInt(e(297))/10)+parseInt(e(283))/11*(parseInt(e(281))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(268)];[r(290)];[r(277)];[r(253)]=new Map;constructor(t,e){const o=r;this[o(268)]=t,this[o(290)]=e[o(278)],this[o(277)]=e[o(258)]}[r(261)](){const t=r;this[t(253)][t(263)]()}[r(260)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(276)===i[e(291)]&&e(273)!==i[e(267)]&&i[e(292)][e(286)]){const t=this[e(268)][e(296)](i[e(292)][e(286)]);for(const o of t[e(288)]()){if(!o.is(e(272),this[e(290)]))continue;const t=this[e(277)](o);n[e(269)](t)||n[e(294)](t,[]),n[e(285)](t)[e(259)](o)}}if(e(275)===i[e(291)]&&i[e(267)]===this[e(290)]){const t=this[e(277)]({getAttribute:t=>i[e(293)][e(285)](t)});o[e(256)](t)}}for(const[t,n]of this[e(253)])e(287)===n[e(271)][e(254)]&&o[e(256)](t);for(const t of o)this[e(253)][e(282)](t);for(const[t,o]of n)this[e(253)][e(294)](t,o[o[e(295)]-1]);const i=new Set;for(const[t,s]of n)o[e(269)](t)&&(i[e(256)](s[0]),s[e(295)]>1?n[e(294)](t,s[e(270)](1)):n[e(282)](t),o[e(282)](t));return{removed:Array[e(262)](o),inserted:Array[e(262)](n[e(274)]())[e(266)](),moved:Array[e(262)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=107]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(958333===-parseInt(e(143))/1*(parseInt(e(144))/2)+parseInt(e(172))/3+-parseInt(e(152))/4+parseInt(e(197))/5+parseInt(e(178))/6+parseInt(e(114))/7+-parseInt(e(179))/8*(parseInt(e(163))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(122)]=[];[u(110)]=null;[u(194)]=null;[u(135)];[u(124)];[u(107)];static get[u(185)](){return u(156)}static get[u(165)](){return!0}static get[u(141)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(201)][e(117)],{elementName:e(191),getElementKey:()=>e(138)}),this[e(124)]=new l(this[e(201)][e(117)],{elementName:e(167),getElementKey:t=>t[e(189)](e(145))}),this[e(107)]=new l(this[e(201)][e(117)],{elementName:e(131),getElementKey:t=>t[e(189)](e(145))})}[u(153)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(204)][t(109)](e=>{const n=t,i=o[n(204)][n(125)][n(198)]();let s=!1;return this[n(142)](e,i)&&(s=!0),this[n(206)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(136)](e)&&(s=!0),this[n(174)](e)&&(s=!0),this[n(159)](e)&&(s=!0),s}),this[t(171)](o[t(204)],t(164),()=>{const e=t;o[e(123)]({isUndoable:!1},t=>{this[e(199)](t)})},{priority:t(200)}),this[t(171)](n,t(119),()=>{const e=t;this[e(122)]=[],this[e(135)][e(146)](),this[e(124)][e(146)](),this[e(107)][e(146)]()},{priority:t(129)})}[u(118)](){return this[u(110)]}[u(158)](t){const e=u;return this[e(122)][e(203)](e=>e.id===t)||null}[u(150)](){const t=u;return Array[t(187)](this[t(122)])}[u(115)](){return this[u(194)]}[u(192)](t){this[u(194)]=t}[u(183)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(122)][o(173)];i++)this[o(188)](t,i)&&(n=!0);return n}[u(130)](t,e){const o=u,n=t[o(176)](o(191),{});return t[o(132)](n,e),this[o(110)]=n,n}[u(199)](t){const e=u;if(!this[e(122)][e(173)]||this[e(110)])return;const o=this[e(122)][0][e(169)][e(127)],n=this[e(130)](t,o);for(const o of this[e(122)])o[e(175)][e(195)]||t[e(148)](o[e(175)],n,e(162));this[e(183)](t)}[u(142)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(198)](e);if(r[o(173)]&&(this[o(110)]=r[0]),i[o(173)])if(i[o(173)]>1||this[o(110)]&&i[o(151)](t=>t!==this[o(110)])){const e=t[o(176)](o(191),{}),s=[];this[o(110)]&&s[o(184)](this[o(110)]),s[o(184)](...i),t[o(148)](e,s[0],o(182));for(const n of s)t[o(155)](t[o(160)](n),t[o(137)](e,o(162))),t[o(170)](n);this[o(110)]=e,this[o(183)](t),n=!0}else this[o(110)]=i[0];if(s[o(173)]&&o(193)===this[o(110)]?.[o(127)][o(190)]){for(const e of this[o(122)])t[o(170)](e[o(169)]),n=!0;this[o(122)]=[],this[o(110)]=null}return n}[u(206)](t,e){const o=u;let n=!1;const i=this[o(201)][o(147)][o(112)](o(161)),{inserted:s,moved:r}=this[o(107)][o(198)](e);for(const e of[...r,...s]){const s=e[o(189)](o(145)),r=this[o(158)](s);r&&(r[o(175)]=e),h(t,i,e)&&(n=!0)}return n}[u(133)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(124)][o(198)](e);for(const e of i)this[o(149)](t,e)&&(n=!0);for(const e of s)this[o(154)](t,e)&&(n=!0);for(const e of r)this[o(126)](t,e)&&(n=!0);return n}[u(174)](t){const e=u;if(!this[e(110)])return!1;let o=!1;if(this[e(110)][e(113)]!==this[e(122)][e(173)]){const n=[];for(const t of this[e(110)][e(111)]()){const i=t[e(189)](e(145));this[e(158)](i)||(n[e(196)](t),o=!0)}for(const o of n)t[e(170)](o)}const n=new Set,i=[];for(const t of this[e(110)][e(111)]()){const s=t[e(189)](e(145));n[e(128)](s)?(i[e(196)](t),o=!0):n[e(116)](s)}for(const o of i)t[e(170)](o);return this[e(110)][e(113)]||(t[e(170)](this[e(110)]),this[e(110)]=null,o=!0),o}[u(154)](t,e){const o=u;if(this[o(122)][o(203)](t=>t[o(169)]===e))return!1;let n=!1;const i=e[o(189)](o(145)),s=this[o(122)][o(202)](t=>t.id===i);-1!==s&&(t[o(170)](this[o(122)][s][o(169)]),this[o(122)][o(181)](s,1),n=!0);let r=this[o(110)]?function(t,e){const n=o;for(const o of t[n(111)]())if(o[n(189)](n(145))===e)return o;return null}(this[o(110)],i):null;r||(r=t[o(176)](o(131),{footnoteId:i}),this[o(110)]&&(t[o(148)](r,this[o(110)],o(162)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(201)][o(117)],this[o(122)],e);this[o(122)][o(181)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(183)](t,l)&&(n=!0),n}[u(149)](t,e){const o=u,n=this[o(122)][o(202)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(122)][n];return o(193)!==s[o(175)][o(127)][o(190)]&&(t[o(170)](s[o(175)]),i=!0),this[o(122)][o(181)](n,1),this[o(183)](t,n)&&(i=!0),i}[u(126)](t,e){const o=u,n=e[o(189)](o(145)),i=this[o(122)][o(202)](t=>t.id===n),s=this[o(122)][i];let r=!1;s[o(169)]=e,this[o(122)][o(181)](i,1);const a=p(this[o(201)][o(117)],this[o(122)],e);return this[o(122)][o(181)](a,0,s),this[o(183)](t,Math[o(177)](i,a))&&(r=!0),r}[u(188)](t,e){const o=u;if(!this[o(110)])return!1;const n=this[o(122)][e];let i;return i=this[o(194)]?this[o(194)]({footnote:n,container:this[o(110)],digits:String(this[o(122)][o(173)])[o(173)],value:e+1}):String(e+1),n[o(169)][o(189)](o(186))!=i&&(t[o(120)](o(186),i,n[o(169)]),!0)}[u(159)](t){const e=u;if(!this[e(110)]||this[e(122)][e(173)]<2)return!1;if(function(t,o){const n=e;if(t[n(173)]!==o[n(173)])return!1;for(let e=0;e<t[n(173)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(122)][e(108)](t=>t.id),Array[e(187)](this[e(110)][e(111)]())[e(108)](t=>t[e(189)](e(145)))))return!1;let o=!1;for(let n=0;n<this[e(122)][e(173)];n++){const i=this[e(122)][n],s=t[e(134)](i[e(175)]),r=t[e(137)](this[e(110)],n);s[e(168)](r)||(t[e(155)](t[e(140)](i[e(175)]),r),o=!0)}return o}[u(136)](t){const e=u;if(!this[e(122)][e(173)])return!1;const{model:o}=this[e(201)];let n=!1;for(let i=0;i<this[e(122)][e(173)]-1;i++){const s=this[e(122)][i],r=this[e(122)][i+1],a=o[e(134)](s[e(169)]),c=o[e(134)](r[e(169)]);e(205)===a[e(180)](c)&&(this[e(126)](t,s[e(169)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(113)])return!1;const i=n(e?139:121);return t[n(148)](t[n(176)](i),o),!0}function p(t,e,o){const n=u;if(0===e[n(173)])return 0;const i=t[n(134)](o);for(let o=0;o<e[n(173)];o++){const s=e[o],r=t[n(134)](s[n(169)]);if(n(182)===i[n(180)](r))return o}const s=o[n(127)];let r=-1;for(let t=e[n(173)]-1;t>=0;t--)if(e[t][n(169)][n(127)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(204)][n(166)](),c=a[n(157)](s[n(190)]),l=a[c+1];if(l)for(let t=0;t<e[n(173)];t++)if(e[t][n(169)][n(127)][n(190)]===l)return t;return e[n(173)]}function m(){const t=["min","3410316liksdd","11401224LLAmgw","compareWith","splice","before","_updateFootnotesCounters","push","pluginName","footnoteCounter","from","_updateFootnoteRefCounter","getAttribute","rootName","footnotesDefinitions","setFootnoteFormatter","$graveyard","_footnoteFormatter","parent","unshift","5103665QFqXuN","getChanges","_ensureFootnotesDefinitionsContainerExists","low","editor","findIndex","find","document","after","_handleFootnoteDefinitionsChanges","_footnoteDefsTracker","map","registerPostFixer","_footnotesDefinitions","getChildren","get","childCount","6851838JUfYwH","getFootnotesFormatter","add","model","getFootnotesDefinitionsObjectElement","set","setAttribute","footnoteInlineContent","_footnotes","enqueueChange","_footnoteRefsTracker","differ","_handleMovedFootnoteReference","root","has","high","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","append","_handleFootnoteReferencesChanges","createPositionBefore","_footnoteDefsContainerTracker","_ensureFootnotesReferencesHaveProperOrder","createPositionAt","singleton","paragraph","createRangeOn","isPremiumPlugin","_handleFootnotesDefinitionsObjectChanges","1zJaSqP","727930jayqtD","footnoteId","reset","config","insert","_handleRemoveFootnoteReferenceById","getFootnotes","some","595876XJPuvE","init","_handleInsertedFootnoteReference","move","FootnotesTracker","indexOf","getFootnote","_sortFootnoteDefinitions","createRangeIn","footnotes.multiBlock","end","9iKEoVQ","change:data","isOfficialPlugin","getRootNames","footnoteRef","isEqual","reference","remove","listenTo","985401PUPURx","length","_handleFootnotesDefinitionsObjectSync","definition","createElement"];return(m=function(){return t})()}const g=y;function w(){const t=["end","isEnabled","getItems","checkChild","length","insertObject","plugins","278433uhTkWV","footnoteRef","execute","insert-footnote-command-executed-with-invalid-id","_getPositionToInsertFootnote","document","isObject","3298743IxQCYa","341220reQbIv","949764TGlKrV","refresh","2kIxAza","change","get","222430WuXWIi","FootnotesEditing","616563stmOVs","editor","string","getFirstRange","isBlock","createElement","5517750WiTYSq","model","selection","footnoteId","_moveSelectionToFootnoteDefinition","test","56GyxJMp"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=304]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(462695===-parseInt(e(327))/1*(parseInt(e(338))/2)+-parseInt(e(336))/3+parseInt(e(335))/4+parseInt(e(305))/5+parseInt(e(313))/6+-parseInt(e(334))/7+-parseInt(e(319))/8*(-parseInt(e(307))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(337)](){const t=g,e=this[t(308)][t(314)][t(332)][t(315)],o=this[t(331)](e);this[t(321)]=!!o}[g(329)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(332)],r=this[e(331)](s);if(!r)return;const a=o[e(326)][e(304)](e(306)),c=t?.[e(316)]??(0,i.uid)();!function(t){const o=e;return o(309)==typeof t&&t[o(324)]>0&&!/\s/[o(318)](t)&&!/^\d/[o(318)](t)}(c)?(0,i.logWarning)(e(330)):(n[e(339)](t=>{const o=e,i=t[o(312)](o(328),{footnoteId:c});n[o(325)](i,r,null)}),a[e(317)](c))}[g(331)](t){const e=g,{model:o}=this[e(308)],{schema:n}=o,i=t[e(310)]();for(const t of i[e(322)]())if(n[e(311)](t)||n[e(333)](t))return null;const s=i[e(320)];return n[e(323)](s,e(328))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768262400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=L;function A(){const t=["getFootnote","cloneElement","keys","1583676Uydcgz","create","hasAttribute","string","config","sourceEditorId","contentInsertion","getAttribute","getFootnotes","_handlePasteFootnotesDefinitions","getRanges","includes","2361030qRZLOB","isPremiumPlugin","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","_handleCopyFootnotesDefinitions","createElement","isOfficialPlugin","element","3300200MhcJIl","find","insert","flatMap","getFirstRange","toView","_insertEmptyFootnotesDefinitionsContainer","application/ckeditor5-footnotes","end","toData","stringify","clipboardInput","requires","document","entries","selection","FootnotesClipboard","add","from","getChildren","5609980RJBTuv","footnoteId","650736HkbuUq","push","listenTo","_defineClipboardIntegration","18iORJbG","parse","reduce","7jnWRlq","footnoteRef","footnoteInlineContent","root","editing","setData","remove","toModel","data","content","1617478QXnAly","append","outputTransformation","change","setAttribute","footnotesDefinitions","footnoteDefinition","definition","createRangeIn","htmlProcessor","80208tnJdwv","get","pluginName","editor","dataTransfer","length","1YKWXhm","method","getSelectedBlocks","init","getData","drop"];return(A=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(828131===parseInt(e(258))/1*(parseInt(e(326))/2)+parseInt(e(336))/3+parseInt(e(287))/4+-parseInt(e(307))/5+parseInt(e(267))/6*(-parseInt(e(316))/7)+parseInt(e(309))/8+parseInt(e(313))/9*(parseInt(e(279))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(338)](){return T(303)}static get[T(299)](){return[v,P.ClipboardPipeline]}static get[T(285)](){return!0}static get[T(280)](){return!0}[T(261)](){this[T(312)]()}[T(312)](){const t=T;this[t(283)](),this[t(276)]()}[T(283)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(337)](P.ClipboardPipeline),s=o[t(337)](d);this[t(311)](i,t(328),(o,i)=>{const r=t,a=V(n[r(334)](i[r(325)]));if(!a[r(257)])return;const c=s[r(275)](),l=a[r(315)]((t,o)=>{const n=r,i=c[n(288)](t=>t.id===o);if(i){const o=e[n(324)][n(292)](i[n(333)],{isClipboardPipeline:!0}),s=e[n(324)][n(335)][n(296)](o);t[i.id]=s}return t},Object[r(268)](null));i[r(340)][r(321)](r(294),JSON[r(297)](l))})}[T(276)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(320)],r=n[t(337)](P.ClipboardPipeline),a=n[t(337)](d),c=e[t(271)][t(337)](t(282));let l=null;this[t(311)](s[t(300)],t(298),(e,o)=>{const n=t,i=o[n(340)][n(262)](n(294));l=i?JSON[n(314)](i):null}),this[t(311)](r,t(273),(n,s)=>{const r=t,u=s[r(272)]===this[r(339)].id;u&&r(263)===s[r(259)]||o[r(329)](t=>{const n=r;let f=a[n(281)]();const d=!!f&&Array[n(305)](o[n(300)][n(302)][n(260)]())[n(278)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(286),e(317)))return!0;return!1}(o[n(334)](s[n(325)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(268)](null);for(const e of i[o(306)]())e.is(o(286),o(332))&&e[o(269)](o(308))&&(s[e[o(274)](o(308))]=t[o(265)](e,!0));return Object[o(266)](s)[o(257)]?s:null}(t,s[n(325)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(334)](e))n.is(o(286),o(331))&&i[o(310)](n);for(const e of i)t[o(322)](e)}(t,s[n(325)]),!l)return;const{selection:h}=o[n(300)],p=h[n(291)]()[n(319)];f&&!d||(f=_(t,s[n(325)]),f||=a[n(293)](t,p));const m=Array[n(305)](h[n(277)]())[n(290)](V),g=function(t,e,o){const s=n,r=Object[s(268)](null);for(const{item:n}of t[s(334)](e))if(n.is(s(286),s(317))){const e=n[s(274)](s(308));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(330)](s(308),r[e],n)}return r}(t,s[n(325)],t=>{const e=n;return!u||!!a[e(264)](t)&&!m[e(278)](t)});for(const[o,i]of Object[n(301)](l)){const s=g[o]||o;let r;if(n(270)!=typeof i)r=i,s!==o&&t[n(330)](n(308),s,r);else{r=t[n(284)](n(332),{footnoteId:s});const o=e[n(324)][n(335)][n(292)](i);let a;if(c)a=e[n(324)][n(323)](o,r);else{a=t[n(284)](n(318));const i=e[n(324)][n(323)](o,a);t[n(289)](i,a)}t[n(327)](a,r)}t[n(289)](r,f,n(295))}l=null})})}}function _(t,e){const o=T;for(const{item:n}of t[o(334)](e))if(n.is(o(286),o(331)))return n;return null}function L(t,e){const o=A();return(L=function(t,e){return o[t-=257]})(t,e)}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(286),e(317))&&o[e(304)](n[e(274)](e(308)));return Array[e(305)](o)}var R=o(311),O=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),z=o(102),W=o.n(z),U=o(123),B=o.n(U),q=o(741),J=o.n(q),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=B(),X.insert=W().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=J();K()(H.A,X);H.A&&H.A.locals&&H.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,R.ButtonView)),e.add("menuBar:insertFootnote",Y(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Z;function Z(t,e){var o=tt();return(Z=function(t,e){return o[t-=141]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(860224===parseInt(e(151))/1*(parseInt(e(148))/2)+-parseInt(e(143))/3+-parseInt(e(149))/4*(parseInt(e(154))/5)+parseInt(e(144))/6+parseInt(e(152))/7+-parseInt(e(147))/8+parseInt(e(155))/9*(parseInt(e(153))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);class $ extends t.Plugin{static get[G(146)](){return G(141)}static get[G(150)](){return[v,D,Q]}static get[G(142)](){return!0}static get[G(145)](){return!0}}function tt(){var t=["Footnotes","isOfficialPlugin","1415373sVlQEZ","7357134VztLSm","isPremiumPlugin","pluginName","7595808jkXYaF","10042YAsQji","6376596rxAtYx","requires","167zYQXjw","8977759bsrkUY","5284070ghYpWa","5lTntmw","9rqsmhD"];return(tt=function(){return t})()}function et(t,e){const o=nt();return(et=function(t,e){return o[t-=468]})(t,e)}const ot=et;function nt(){const t=["decimal-leading-zero","1048forjmr","upper-latin","7764SIsESk","11qCgNWj","upper-roman","65lqHORW","lower-roman","18416RVzNxh","46819152PnMVfK","decimal","lower-latin","160956gUbgXw","upper-alpha","lower-alpha","3906taGbfu","5602830EuwMQL","9aDEfRW","2329453Koetkb","35718IHpiyw"];return(nt=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(684497===-parseInt(e(479))/1*(parseInt(e(474))/2)+parseInt(e(485))/3*(-parseInt(e(483))/4)+-parseInt(e(468))/5*(-parseInt(e(481))/6)+-parseInt(e(480))/7+-parseInt(e(470))/8*(parseInt(e(477))/9)+-parseInt(e(478))/10*(parseInt(e(486))/11)+parseInt(e(471))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[ot(472),ot(482),ot(473),ot(484),ot(476),ot(475),ot(469),ot(487)],st=at;function rt(){const t=["plugins","_updateFootnotesCounters","getAttribute","341444FTVKdg","30XvisGp","execute","change","2wStUqm","includes","setAttribute","isEnabled","footnotesListStyle","1285624EcJWJu","getFootnotesDefinitionsObjectElement","6079700mRljTs","value","9OIGfVN","9535559MbWPCz","model","16204sTvZID","refresh","116578JoSWVH","2494887eZswOM","1135yPeEaD","get"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=272]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(765724===parseInt(e(289))/1+-parseInt(e(293))/2*(parseInt(e(283))/3)+parseInt(e(280))/4*(parseInt(e(284))/5)+parseInt(e(290))/6*(-parseInt(e(282))/7)+parseInt(e(273))/8*(parseInt(e(277))/9)+-parseInt(e(275))/10+parseInt(e(278))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(281)](){const t=st,{editor:e}=this,o=e[t(286)][t(285)](d)[t(274)]();this[t(296)]=!!o,this[t(276)]=o?.[t(288)](t(272))??null}[st(291)]({value:t}){const e=st,{editor:o}=this,n=o[e(286)][e(285)](d),i=n[e(274)]();i&&it[e(294)](t)&&o[e(279)][e(292)](o=>{const s=e;o[s(295)](s(272),t,i),n[s(287)](o)})}}const lt=ft;function ut(){const t=["change","refresh","isInteger","get","getFootnotesDefinitionsObjectElement","getAttribute","24VXJzls","2749572oVuVeo","2146916tzTIHX","1085611HEeDSM","setAttribute","2589534lIBzgD","9104056Jrxefo","value","1114795Yzqvcb","plugins","3LJbpoM","isEnabled","execute","_updateFootnotesCounters","2506284JeFZKV","footnotesListStart","model"];return(ut=function(){return t})()}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=364]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(965659===-parseInt(e(386))/1+parseInt(e(385))/2+-parseInt(e(370))/3*(-parseInt(e(374))/4)+-parseInt(e(368))/5*(parseInt(e(383))/6)+parseInt(e(384))/7+parseInt(e(366))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(378)](){const t=lt,{editor:e}=this,o=e[t(369)][t(380)](d)[t(381)]();this[t(371)]=!!o,this[t(367)]=o?.[t(382)](t(375))??null}[lt(372)]({value:t}){const e=lt,{editor:o}=this,n=o[e(369)][e(380)](d),i=n[e(381)]();i&&Number[e(379)](t)&&o[e(376)][e(377)](o=>{const s=e;o[s(364)](s(375),t,i),n[s(373)](o)})}}const ht=pt;function pt(t,e){const o=bt();return(pt=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(981307===parseInt(e(215))/1*(-parseInt(e(134))/2)+parseInt(e(154))/3*(parseInt(e(140))/4)+-parseInt(e(142))/5*(parseInt(e(125))/6)+parseInt(e(184))/7+parseInt(e(148))/8*(parseInt(e(167))/9)+-parseInt(e(159))/10+parseInt(e(203))/11*(parseInt(e(202))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[ht(197)](){return ht(162)}static get[ht(193)](){return[v,d]}static get[ht(155)](){return!0}static get[ht(182)](){return!0}[ht(214)](){const t=ht,{editor:e}=this;e[t(168)][t(178)](t(194),t(198)),e[t(168)][t(178)](t(195),1),e[t(124)][t(135)](t(137),new ct(e)),e[t(124)][t(135)](t(166),new dt(e)),this[t(126)](),this[t(181)](),this[t(153)](),this[t(220)]()}[ht(126)](){const t=ht,{editor:e}=this,{schema:o}=e[t(216)];o[t(123)](t(149),{allowAttributes:[t(196),t(144)]})}[ht(181)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(160)](t(191))[t(135)](e=>{const o=t;e.on(o(188),(t,e,n)=>{const s=o,r=e[s(143)],a=e[s(189)]?.[s(147)];r[s(139)](s(192))&&a?.is(s(163),s(149))&&(function(t,e,o,n){const i=s;if(!n[i(205)](e,i(144)))return;let r=1;const a=o[i(165)][i(146)](t,{attributes:i(210)});if(a){const e=Number[i(219)](t[i(170)](i(210)),10);Number[i(187)](e)||(r=e)}!a&&e[i(207)](i(144))||o[i(171)][i(204)](i(144),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(205)](e,i(196)))return;let r=i(198),a=!1;if(o[i(165)][i(146)](t,{attributes:i(206)})){const e={1:i(198),a:i(130),A:i(158),i:i(209),I:i(212)}[t[i(170)](i(206))];e&&(r=e),a=!0}o[i(165)][i(146)](t,{styles:i(164)})&&(r=function(t){const e=i;switch(t){case e(130):return e(174);case e(158):return e(180);default:return t}}(t[i(211)](i(164))),a=!0),!a&&e[i(207)](i(196))||o[i(171)][i(204)](i(196),r,e)}(r,a,n,i))})}),o[t(160)](t(145))[t(135)](e=>{const o=t;e.on(o(157),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;null==r||1===r?n[i(171)][i(175)](i(210),s):n[i(171)][i(204)](i(210),String(r),s)}),e.on(o(120),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;r&&i(198)!==r?n[i(171)][i(208)](i(164),r,s):n[i(171)][i(217)](i(164),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(183)][t(190)](d),i=this[t(129)](),s=this[t(138)]();o[t(128)][t(218)](e=>{const r=t,a=o[r(128)][r(213)][r(133)]();let c=!1;for(const t of a){if(r(200)!==t[r(206)]||r(141)===t[r(221)])continue;const n=o[r(179)](t[r(150)][r(152)]);for(const t of n[r(201)]())t.is(r(163),r(149))&&(!t[r(207)](r(144))&&o[r(151)][r(205)](t,r(144))&&(e[r(204)](r(144),s,t),c=!0),!t[r(207)](r(196))&&o[r(151)][r(205)](t,r(196))&&(e[r(204)](r(196),i,t),c=!0))}return c&&n[r(173)](e),c})}[ht(153)](){const t=ht,{editor:e}=this;e[t(183)][t(190)](d)[t(199)](e=>this[t(156)](e))}[ht(129)](){const t=ht;return this[t(222)][t(168)][t(190)](t(194))}[ht(138)](){const t=ht;return this[t(222)][t(168)][t(190)](t(195))}[ht(156)]({container:t,value:e,digits:o}){const n=ht,i=t[n(170)](n(196)),s=t[n(170)](n(144)),r=Math[n(131)](e)+(s??1)-1;switch(i){case n(176):return function(t,e){const o=n;return String(t)[o(136)](e,"0")}(r,Math[n(177)](2,o));case n(130):case n(174):return wt(r,!1);case n(158):case n(180):return wt(r,!0);case n(209):return vt(r,!1);case n(212):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(186)](t);return Array[o(127)](n[o(169)]())[o(122)](t=>t.is(o(163),"ol")&&t[o(139)](o(192)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(172)](97+t)+n,i=Math[o(131)]((i-1)/26)}return e?n[o(161)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(){const t=["removeStyle","registerPostFixer","parseInt","_definePostfixer","name","editor","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","find","extend","commands","2388yBnGvr","_defineSchema","from","document","_getDefaultListStyle","lower-alpha","floor","item","getChanges","46lQpDuw","add","padStart","footnotesStyle","_getDefaultStartIndex","hasClass","28AuUOMK","$text","5275QiJPst","viewItem","footnotesListStart","downcast","consume","parent","6936izkgpz","footnotesDefinitions","position","schema","nodeAfter","_defineFormatter","394737oJXSlv","isOfficialPlugin","_formatFootnoteListValue","attribute:footnotesListStart:footnotesDefinitions","upper-alpha","15785370LhZugj","for","toUpperCase","FootnotesPropertiesEditing","element","list-style-type","consumable","footnotesStart","18918pTuweR","config","getChildren","getAttribute","writer","fromCharCode","_updateFootnotesCounters","lower-latin","removeAttribute","decimal-leading-zero","max","define","createRangeOn","upper-latin","_defineConverters","isPremiumPlugin","plugins","5410307kWSpHs","mapper","toViewElement","isNaN","element:ol","modelCursor","get","upcast","footnotes-list","requires","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","pluginName","decimal","setFootnoteFormatter","insert","getItems","906420piIsfQ","187eCPGjd","setAttribute","checkAttribute","type","hasAttribute","setStyle","lower-roman","start","getStyle","upper-roman","differ","init","79163UnMWwV","model"];return(bt=function(){return t})()}function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(121)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=B(),Ct.insert=W().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=J();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["78962rPgtyx","pluginName","161184VLXaWD","902718FnzaQn","3932580jpxsYk","24eEuxhg","2922KZqJQF","35021dPjyqt","requires","18Uwokgh","FootnotesProperties","344gxrNKd","168615hFpaJx","isPremiumPlugin","isOfficialPlugin"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=164]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(128508===parseInt(e(176))/1+-parseInt(e(172))/2*(parseInt(e(167))/3)+parseInt(e(178))/4+parseInt(e(173))/5*(-parseInt(e(170))/6)+-parseInt(e(168))/7*(parseInt(e(166))/8)+-parseInt(e(164))/9+parseInt(e(165))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(177)](){return xt(171)}static get[xt(169)](){return[mt,Ft]}static get[xt(175)](){return!0}static get[xt(174)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=371]})(t,e)}function At(){var t=["2182146rwhpmI","216498AgVZaW","5125764ZouscI","11SquqzX","6nswLGq","1137224dlUgzZ","734820InmtzT","5427185iAuLGp","9RaMtxU","1877664YRvMJr"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(669281===parseInt(e(372))/1*(-parseInt(e(380))/2)+parseInt(e(379))/3+-parseInt(e(378))/4+parseInt(e(376))/5*(parseInt(e(373))/6)+parseInt(e(371))/7+parseInt(e(374))/8*(-parseInt(e(377))/9)+-parseInt(e(375))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=252]})(t,e)}function c(){const t=["426uhQFzV","24016NbITqf","flat","name","_model","has","slice","root","element","$text","values","remove","insert","_getElementKey","elementName","173954RYZYRJ","506992eDIaTP","12rVgxsW","delete","22455158wXvuzx","78205NDiAml","get","nodeAfter","$graveyard","getItems","7930260ULDDAs","_elementName","type","position","attributes","set","length","createRangeOn","10Qhkocc","42VtqCmk","_trackedElements","rootName","798MkmcOz","add","373022WQKyaY","getElementKey","push","getChanges","reset","from","clear"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(806548===-parseInt(e(257))/1+-parseInt(e(279))/2+-parseInt(e(255))/3*(-parseInt(e(265))/4)+-parseInt(e(284))/5*(parseInt(e(264))/6)+parseInt(e(252))/7*(-parseInt(e(280))/8)+parseInt(e(289))/9*(-parseInt(e(297))/10)+parseInt(e(283))/11*(parseInt(e(281))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(268)];[r(290)];[r(277)];[r(253)]=new Map;constructor(t,e){const o=r;this[o(268)]=t,this[o(290)]=e[o(278)],this[o(277)]=e[o(258)]}[r(261)](){const t=r;this[t(253)][t(263)]()}[r(260)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(276)===i[e(291)]&&e(273)!==i[e(267)]&&i[e(292)][e(286)]){const t=this[e(268)][e(296)](i[e(292)][e(286)]);for(const o of t[e(288)]()){if(!o.is(e(272),this[e(290)]))continue;const t=this[e(277)](o);n[e(269)](t)||n[e(294)](t,[]),n[e(285)](t)[e(259)](o)}}if(e(275)===i[e(291)]&&i[e(267)]===this[e(290)]){const t=this[e(277)]({getAttribute:t=>i[e(293)][e(285)](t)});o[e(256)](t)}}for(const[t,n]of this[e(253)])e(287)===n[e(271)][e(254)]&&o[e(256)](t);for(const t of o)this[e(253)][e(282)](t);for(const[t,o]of n)this[e(253)][e(294)](t,o[o[e(295)]-1]);const i=new Set;for(const[t,s]of n)o[e(269)](t)&&(i[e(256)](s[0]),s[e(295)]>1?n[e(294)](t,s[e(270)](1)):n[e(282)](t),o[e(282)](t));return{removed:Array[e(262)](o),inserted:Array[e(262)](n[e(274)]())[e(266)](),moved:Array[e(262)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=107]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(958333===-parseInt(e(143))/1*(parseInt(e(144))/2)+parseInt(e(172))/3+-parseInt(e(152))/4+parseInt(e(197))/5+parseInt(e(178))/6+parseInt(e(114))/7+-parseInt(e(179))/8*(parseInt(e(163))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(122)]=[];[u(110)]=null;[u(194)]=null;[u(135)];[u(124)];[u(107)];static get[u(185)](){return u(156)}static get[u(165)](){return!0}static get[u(141)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(201)][e(117)],{elementName:e(191),getElementKey:()=>e(138)}),this[e(124)]=new l(this[e(201)][e(117)],{elementName:e(167),getElementKey:t=>t[e(189)](e(145))}),this[e(107)]=new l(this[e(201)][e(117)],{elementName:e(131),getElementKey:t=>t[e(189)](e(145))})}[u(153)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(204)][t(109)](e=>{const n=t,i=o[n(204)][n(125)][n(198)]();let s=!1;return this[n(142)](e,i)&&(s=!0),this[n(206)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(136)](e)&&(s=!0),this[n(174)](e)&&(s=!0),this[n(159)](e)&&(s=!0),s}),this[t(171)](o[t(204)],t(164),()=>{const e=t;o[e(123)]({isUndoable:!1},t=>{this[e(199)](t)})},{priority:t(200)}),this[t(171)](n,t(119),()=>{const e=t;this[e(122)]=[],this[e(135)][e(146)](),this[e(124)][e(146)](),this[e(107)][e(146)]()},{priority:t(129)})}[u(118)](){return this[u(110)]}[u(158)](t){const e=u;return this[e(122)][e(203)](e=>e.id===t)||null}[u(150)](){const t=u;return Array[t(187)](this[t(122)])}[u(115)](){return this[u(194)]}[u(192)](t){this[u(194)]=t}[u(183)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(122)][o(173)];i++)this[o(188)](t,i)&&(n=!0);return n}[u(130)](t,e){const o=u,n=t[o(176)](o(191),{});return t[o(132)](n,e),this[o(110)]=n,n}[u(199)](t){const e=u;if(!this[e(122)][e(173)]||this[e(110)])return;const o=this[e(122)][0][e(169)][e(127)],n=this[e(130)](t,o);for(const o of this[e(122)])o[e(175)][e(195)]||t[e(148)](o[e(175)],n,e(162));this[e(183)](t)}[u(142)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(198)](e);if(r[o(173)]&&(this[o(110)]=r[0]),i[o(173)])if(i[o(173)]>1||this[o(110)]&&i[o(151)](t=>t!==this[o(110)])){const e=t[o(176)](o(191),{}),s=[];this[o(110)]&&s[o(184)](this[o(110)]),s[o(184)](...i),t[o(148)](e,s[0],o(182));for(const n of s)t[o(155)](t[o(160)](n),t[o(137)](e,o(162))),t[o(170)](n);this[o(110)]=e,this[o(183)](t),n=!0}else this[o(110)]=i[0];if(s[o(173)]&&o(193)===this[o(110)]?.[o(127)][o(190)]){for(const e of this[o(122)])t[o(170)](e[o(169)]),n=!0;this[o(122)]=[],this[o(110)]=null}return n}[u(206)](t,e){const o=u;let n=!1;const i=this[o(201)][o(147)][o(112)](o(161)),{inserted:s,moved:r}=this[o(107)][o(198)](e);for(const e of[...r,...s]){const s=e[o(189)](o(145)),r=this[o(158)](s);r&&(r[o(175)]=e),h(t,i,e)&&(n=!0)}return n}[u(133)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(124)][o(198)](e);for(const e of i)this[o(149)](t,e)&&(n=!0);for(const e of s)this[o(154)](t,e)&&(n=!0);for(const e of r)this[o(126)](t,e)&&(n=!0);return n}[u(174)](t){const e=u;if(!this[e(110)])return!1;let o=!1;if(this[e(110)][e(113)]!==this[e(122)][e(173)]){const n=[];for(const t of this[e(110)][e(111)]()){const i=t[e(189)](e(145));this[e(158)](i)||(n[e(196)](t),o=!0)}for(const o of n)t[e(170)](o)}const n=new Set,i=[];for(const t of this[e(110)][e(111)]()){const s=t[e(189)](e(145));n[e(128)](s)?(i[e(196)](t),o=!0):n[e(116)](s)}for(const o of i)t[e(170)](o);return this[e(110)][e(113)]||(t[e(170)](this[e(110)]),this[e(110)]=null,o=!0),o}[u(154)](t,e){const o=u;if(this[o(122)][o(203)](t=>t[o(169)]===e))return!1;let n=!1;const i=e[o(189)](o(145)),s=this[o(122)][o(202)](t=>t.id===i);-1!==s&&(t[o(170)](this[o(122)][s][o(169)]),this[o(122)][o(181)](s,1),n=!0);let r=this[o(110)]?function(t,e){const n=o;for(const o of t[n(111)]())if(o[n(189)](n(145))===e)return o;return null}(this[o(110)],i):null;r||(r=t[o(176)](o(131),{footnoteId:i}),this[o(110)]&&(t[o(148)](r,this[o(110)],o(162)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(201)][o(117)],this[o(122)],e);this[o(122)][o(181)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(183)](t,l)&&(n=!0),n}[u(149)](t,e){const o=u,n=this[o(122)][o(202)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(122)][n];return o(193)!==s[o(175)][o(127)][o(190)]&&(t[o(170)](s[o(175)]),i=!0),this[o(122)][o(181)](n,1),this[o(183)](t,n)&&(i=!0),i}[u(126)](t,e){const o=u,n=e[o(189)](o(145)),i=this[o(122)][o(202)](t=>t.id===n),s=this[o(122)][i];let r=!1;s[o(169)]=e,this[o(122)][o(181)](i,1);const a=p(this[o(201)][o(117)],this[o(122)],e);return this[o(122)][o(181)](a,0,s),this[o(183)](t,Math[o(177)](i,a))&&(r=!0),r}[u(188)](t,e){const o=u;if(!this[o(110)])return!1;const n=this[o(122)][e];let i;return i=this[o(194)]?this[o(194)]({footnote:n,container:this[o(110)],digits:String(this[o(122)][o(173)])[o(173)],value:e+1}):String(e+1),n[o(169)][o(189)](o(186))!=i&&(t[o(120)](o(186),i,n[o(169)]),!0)}[u(159)](t){const e=u;if(!this[e(110)]||this[e(122)][e(173)]<2)return!1;if(function(t,o){const n=e;if(t[n(173)]!==o[n(173)])return!1;for(let e=0;e<t[n(173)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(122)][e(108)](t=>t.id),Array[e(187)](this[e(110)][e(111)]())[e(108)](t=>t[e(189)](e(145)))))return!1;let o=!1;for(let n=0;n<this[e(122)][e(173)];n++){const i=this[e(122)][n],s=t[e(134)](i[e(175)]),r=t[e(137)](this[e(110)],n);s[e(168)](r)||(t[e(155)](t[e(140)](i[e(175)]),r),o=!0)}return o}[u(136)](t){const e=u;if(!this[e(122)][e(173)])return!1;const{model:o}=this[e(201)];let n=!1;for(let i=0;i<this[e(122)][e(173)]-1;i++){const s=this[e(122)][i],r=this[e(122)][i+1],a=o[e(134)](s[e(169)]),c=o[e(134)](r[e(169)]);e(205)===a[e(180)](c)&&(this[e(126)](t,s[e(169)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(113)])return!1;const i=n(e?139:121);return t[n(148)](t[n(176)](i),o),!0}function p(t,e,o){const n=u;if(0===e[n(173)])return 0;const i=t[n(134)](o);for(let o=0;o<e[n(173)];o++){const s=e[o],r=t[n(134)](s[n(169)]);if(n(182)===i[n(180)](r))return o}const s=o[n(127)];let r=-1;for(let t=e[n(173)]-1;t>=0;t--)if(e[t][n(169)][n(127)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(204)][n(166)](),c=a[n(157)](s[n(190)]),l=a[c+1];if(l)for(let t=0;t<e[n(173)];t++)if(e[t][n(169)][n(127)][n(190)]===l)return t;return e[n(173)]}function m(){const t=["min","3410316liksdd","11401224LLAmgw","compareWith","splice","before","_updateFootnotesCounters","push","pluginName","footnoteCounter","from","_updateFootnoteRefCounter","getAttribute","rootName","footnotesDefinitions","setFootnoteFormatter","$graveyard","_footnoteFormatter","parent","unshift","5103665QFqXuN","getChanges","_ensureFootnotesDefinitionsContainerExists","low","editor","findIndex","find","document","after","_handleFootnoteDefinitionsChanges","_footnoteDefsTracker","map","registerPostFixer","_footnotesDefinitions","getChildren","get","childCount","6851838JUfYwH","getFootnotesFormatter","add","model","getFootnotesDefinitionsObjectElement","set","setAttribute","footnoteInlineContent","_footnotes","enqueueChange","_footnoteRefsTracker","differ","_handleMovedFootnoteReference","root","has","high","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","append","_handleFootnoteReferencesChanges","createPositionBefore","_footnoteDefsContainerTracker","_ensureFootnotesReferencesHaveProperOrder","createPositionAt","singleton","paragraph","createRangeOn","isPremiumPlugin","_handleFootnotesDefinitionsObjectChanges","1zJaSqP","727930jayqtD","footnoteId","reset","config","insert","_handleRemoveFootnoteReferenceById","getFootnotes","some","595876XJPuvE","init","_handleInsertedFootnoteReference","move","FootnotesTracker","indexOf","getFootnote","_sortFootnoteDefinitions","createRangeIn","footnotes.multiBlock","end","9iKEoVQ","change:data","isOfficialPlugin","getRootNames","footnoteRef","isEqual","reference","remove","listenTo","985401PUPURx","length","_handleFootnotesDefinitionsObjectSync","definition","createElement"];return(m=function(){return t})()}const g=y;function w(){const t=["end","isEnabled","getItems","checkChild","length","insertObject","plugins","278433uhTkWV","footnoteRef","execute","insert-footnote-command-executed-with-invalid-id","_getPositionToInsertFootnote","document","isObject","3298743IxQCYa","341220reQbIv","949764TGlKrV","refresh","2kIxAza","change","get","222430WuXWIi","FootnotesEditing","616563stmOVs","editor","string","getFirstRange","isBlock","createElement","5517750WiTYSq","model","selection","footnoteId","_moveSelectionToFootnoteDefinition","test","56GyxJMp"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=304]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(462695===-parseInt(e(327))/1*(parseInt(e(338))/2)+-parseInt(e(336))/3+parseInt(e(335))/4+parseInt(e(305))/5+parseInt(e(313))/6+-parseInt(e(334))/7+-parseInt(e(319))/8*(-parseInt(e(307))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(337)](){const t=g,e=this[t(308)][t(314)][t(332)][t(315)],o=this[t(331)](e);this[t(321)]=!!o}[g(329)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(332)],r=this[e(331)](s);if(!r)return;const a=o[e(326)][e(304)](e(306)),c=t?.[e(316)]??(0,i.uid)();!function(t){const o=e;return o(309)==typeof t&&t[o(324)]>0&&!/\s/[o(318)](t)&&!/^\d/[o(318)](t)}(c)?(0,i.logWarning)(e(330)):(n[e(339)](t=>{const o=e,i=t[o(312)](o(328),{footnoteId:c});n[o(325)](i,r,null)}),a[e(317)](c))}[g(331)](t){const e=g,{model:o}=this[e(308)],{schema:n}=o,i=t[e(310)]();for(const t of i[e(322)]())if(n[e(311)](t)||n[e(333)](t))return null;const s=i[e(320)];return n[e(323)](s,e(328))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768348800;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=L;function A(){const t=["getFootnote","cloneElement","keys","1583676Uydcgz","create","hasAttribute","string","config","sourceEditorId","contentInsertion","getAttribute","getFootnotes","_handlePasteFootnotesDefinitions","getRanges","includes","2361030qRZLOB","isPremiumPlugin","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","_handleCopyFootnotesDefinitions","createElement","isOfficialPlugin","element","3300200MhcJIl","find","insert","flatMap","getFirstRange","toView","_insertEmptyFootnotesDefinitionsContainer","application/ckeditor5-footnotes","end","toData","stringify","clipboardInput","requires","document","entries","selection","FootnotesClipboard","add","from","getChildren","5609980RJBTuv","footnoteId","650736HkbuUq","push","listenTo","_defineClipboardIntegration","18iORJbG","parse","reduce","7jnWRlq","footnoteRef","footnoteInlineContent","root","editing","setData","remove","toModel","data","content","1617478QXnAly","append","outputTransformation","change","setAttribute","footnotesDefinitions","footnoteDefinition","definition","createRangeIn","htmlProcessor","80208tnJdwv","get","pluginName","editor","dataTransfer","length","1YKWXhm","method","getSelectedBlocks","init","getData","drop"];return(A=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(828131===parseInt(e(258))/1*(parseInt(e(326))/2)+parseInt(e(336))/3+parseInt(e(287))/4+-parseInt(e(307))/5+parseInt(e(267))/6*(-parseInt(e(316))/7)+parseInt(e(309))/8+parseInt(e(313))/9*(parseInt(e(279))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(338)](){return T(303)}static get[T(299)](){return[v,P.ClipboardPipeline]}static get[T(285)](){return!0}static get[T(280)](){return!0}[T(261)](){this[T(312)]()}[T(312)](){const t=T;this[t(283)](),this[t(276)]()}[T(283)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(337)](P.ClipboardPipeline),s=o[t(337)](d);this[t(311)](i,t(328),(o,i)=>{const r=t,a=V(n[r(334)](i[r(325)]));if(!a[r(257)])return;const c=s[r(275)](),l=a[r(315)]((t,o)=>{const n=r,i=c[n(288)](t=>t.id===o);if(i){const o=e[n(324)][n(292)](i[n(333)],{isClipboardPipeline:!0}),s=e[n(324)][n(335)][n(296)](o);t[i.id]=s}return t},Object[r(268)](null));i[r(340)][r(321)](r(294),JSON[r(297)](l))})}[T(276)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(320)],r=n[t(337)](P.ClipboardPipeline),a=n[t(337)](d),c=e[t(271)][t(337)](t(282));let l=null;this[t(311)](s[t(300)],t(298),(e,o)=>{const n=t,i=o[n(340)][n(262)](n(294));l=i?JSON[n(314)](i):null}),this[t(311)](r,t(273),(n,s)=>{const r=t,u=s[r(272)]===this[r(339)].id;u&&r(263)===s[r(259)]||o[r(329)](t=>{const n=r;let f=a[n(281)]();const d=!!f&&Array[n(305)](o[n(300)][n(302)][n(260)]())[n(278)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(286),e(317)))return!0;return!1}(o[n(334)](s[n(325)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(268)](null);for(const e of i[o(306)]())e.is(o(286),o(332))&&e[o(269)](o(308))&&(s[e[o(274)](o(308))]=t[o(265)](e,!0));return Object[o(266)](s)[o(257)]?s:null}(t,s[n(325)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(334)](e))n.is(o(286),o(331))&&i[o(310)](n);for(const e of i)t[o(322)](e)}(t,s[n(325)]),!l)return;const{selection:h}=o[n(300)],p=h[n(291)]()[n(319)];f&&!d||(f=_(t,s[n(325)]),f||=a[n(293)](t,p));const m=Array[n(305)](h[n(277)]())[n(290)](V),g=function(t,e,o){const s=n,r=Object[s(268)](null);for(const{item:n}of t[s(334)](e))if(n.is(s(286),s(317))){const e=n[s(274)](s(308));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(330)](s(308),r[e],n)}return r}(t,s[n(325)],t=>{const e=n;return!u||!!a[e(264)](t)&&!m[e(278)](t)});for(const[o,i]of Object[n(301)](l)){const s=g[o]||o;let r;if(n(270)!=typeof i)r=i,s!==o&&t[n(330)](n(308),s,r);else{r=t[n(284)](n(332),{footnoteId:s});const o=e[n(324)][n(335)][n(292)](i);let a;if(c)a=e[n(324)][n(323)](o,r);else{a=t[n(284)](n(318));const i=e[n(324)][n(323)](o,a);t[n(289)](i,a)}t[n(327)](a,r)}t[n(289)](r,f,n(295))}l=null})})}}function _(t,e){const o=T;for(const{item:n}of t[o(334)](e))if(n.is(o(286),o(331)))return n;return null}function L(t,e){const o=A();return(L=function(t,e){return o[t-=257]})(t,e)}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(286),e(317))&&o[e(304)](n[e(274)](e(308)));return Array[e(305)](o)}var R=o(311),O=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),z=o(102),W=o.n(z),U=o(123),B=o.n(U),q=o(741),J=o.n(q),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=B(),X.insert=W().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=J();K()(H.A,X);H.A&&H.A.locals&&H.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,R.ButtonView)),e.add("menuBar:insertFootnote",Y(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Z;function Z(t,e){var o=tt();return(Z=function(t,e){return o[t-=141]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(860224===parseInt(e(151))/1*(parseInt(e(148))/2)+-parseInt(e(143))/3+-parseInt(e(149))/4*(parseInt(e(154))/5)+parseInt(e(144))/6+parseInt(e(152))/7+-parseInt(e(147))/8+parseInt(e(155))/9*(parseInt(e(153))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);class $ extends t.Plugin{static get[G(146)](){return G(141)}static get[G(150)](){return[v,D,Q]}static get[G(142)](){return!0}static get[G(145)](){return!0}}function tt(){var t=["Footnotes","isOfficialPlugin","1415373sVlQEZ","7357134VztLSm","isPremiumPlugin","pluginName","7595808jkXYaF","10042YAsQji","6376596rxAtYx","requires","167zYQXjw","8977759bsrkUY","5284070ghYpWa","5lTntmw","9rqsmhD"];return(tt=function(){return t})()}function et(t,e){const o=nt();return(et=function(t,e){return o[t-=468]})(t,e)}const ot=et;function nt(){const t=["decimal-leading-zero","1048forjmr","upper-latin","7764SIsESk","11qCgNWj","upper-roman","65lqHORW","lower-roman","18416RVzNxh","46819152PnMVfK","decimal","lower-latin","160956gUbgXw","upper-alpha","lower-alpha","3906taGbfu","5602830EuwMQL","9aDEfRW","2329453Koetkb","35718IHpiyw"];return(nt=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(684497===-parseInt(e(479))/1*(parseInt(e(474))/2)+parseInt(e(485))/3*(-parseInt(e(483))/4)+-parseInt(e(468))/5*(-parseInt(e(481))/6)+-parseInt(e(480))/7+-parseInt(e(470))/8*(parseInt(e(477))/9)+-parseInt(e(478))/10*(parseInt(e(486))/11)+parseInt(e(471))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[ot(472),ot(482),ot(473),ot(484),ot(476),ot(475),ot(469),ot(487)],st=at;function rt(){const t=["plugins","_updateFootnotesCounters","getAttribute","341444FTVKdg","30XvisGp","execute","change","2wStUqm","includes","setAttribute","isEnabled","footnotesListStyle","1285624EcJWJu","getFootnotesDefinitionsObjectElement","6079700mRljTs","value","9OIGfVN","9535559MbWPCz","model","16204sTvZID","refresh","116578JoSWVH","2494887eZswOM","1135yPeEaD","get"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=272]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(765724===parseInt(e(289))/1+-parseInt(e(293))/2*(parseInt(e(283))/3)+parseInt(e(280))/4*(parseInt(e(284))/5)+parseInt(e(290))/6*(-parseInt(e(282))/7)+parseInt(e(273))/8*(parseInt(e(277))/9)+-parseInt(e(275))/10+parseInt(e(278))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(281)](){const t=st,{editor:e}=this,o=e[t(286)][t(285)](d)[t(274)]();this[t(296)]=!!o,this[t(276)]=o?.[t(288)](t(272))??null}[st(291)]({value:t}){const e=st,{editor:o}=this,n=o[e(286)][e(285)](d),i=n[e(274)]();i&&it[e(294)](t)&&o[e(279)][e(292)](o=>{const s=e;o[s(295)](s(272),t,i),n[s(287)](o)})}}const lt=ft;function ut(){const t=["change","refresh","isInteger","get","getFootnotesDefinitionsObjectElement","getAttribute","24VXJzls","2749572oVuVeo","2146916tzTIHX","1085611HEeDSM","setAttribute","2589534lIBzgD","9104056Jrxefo","value","1114795Yzqvcb","plugins","3LJbpoM","isEnabled","execute","_updateFootnotesCounters","2506284JeFZKV","footnotesListStart","model"];return(ut=function(){return t})()}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=364]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(965659===-parseInt(e(386))/1+parseInt(e(385))/2+-parseInt(e(370))/3*(-parseInt(e(374))/4)+-parseInt(e(368))/5*(parseInt(e(383))/6)+parseInt(e(384))/7+parseInt(e(366))/8+-parseInt(e(365))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(378)](){const t=lt,{editor:e}=this,o=e[t(369)][t(380)](d)[t(381)]();this[t(371)]=!!o,this[t(367)]=o?.[t(382)](t(375))??null}[lt(372)]({value:t}){const e=lt,{editor:o}=this,n=o[e(369)][e(380)](d),i=n[e(381)]();i&&Number[e(379)](t)&&o[e(376)][e(377)](o=>{const s=e;o[s(364)](s(375),t,i),n[s(373)](o)})}}const ht=pt;function pt(t,e){const o=bt();return(pt=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(981307===parseInt(e(215))/1*(-parseInt(e(134))/2)+parseInt(e(154))/3*(parseInt(e(140))/4)+-parseInt(e(142))/5*(parseInt(e(125))/6)+parseInt(e(184))/7+parseInt(e(148))/8*(parseInt(e(167))/9)+-parseInt(e(159))/10+parseInt(e(203))/11*(parseInt(e(202))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[ht(197)](){return ht(162)}static get[ht(193)](){return[v,d]}static get[ht(155)](){return!0}static get[ht(182)](){return!0}[ht(214)](){const t=ht,{editor:e}=this;e[t(168)][t(178)](t(194),t(198)),e[t(168)][t(178)](t(195),1),e[t(124)][t(135)](t(137),new ct(e)),e[t(124)][t(135)](t(166),new dt(e)),this[t(126)](),this[t(181)](),this[t(153)](),this[t(220)]()}[ht(126)](){const t=ht,{editor:e}=this,{schema:o}=e[t(216)];o[t(123)](t(149),{allowAttributes:[t(196),t(144)]})}[ht(181)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(160)](t(191))[t(135)](e=>{const o=t;e.on(o(188),(t,e,n)=>{const s=o,r=e[s(143)],a=e[s(189)]?.[s(147)];r[s(139)](s(192))&&a?.is(s(163),s(149))&&(function(t,e,o,n){const i=s;if(!n[i(205)](e,i(144)))return;let r=1;const a=o[i(165)][i(146)](t,{attributes:i(210)});if(a){const e=Number[i(219)](t[i(170)](i(210)),10);Number[i(187)](e)||(r=e)}!a&&e[i(207)](i(144))||o[i(171)][i(204)](i(144),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(205)](e,i(196)))return;let r=i(198),a=!1;if(o[i(165)][i(146)](t,{attributes:i(206)})){const e={1:i(198),a:i(130),A:i(158),i:i(209),I:i(212)}[t[i(170)](i(206))];e&&(r=e),a=!0}o[i(165)][i(146)](t,{styles:i(164)})&&(r=function(t){const e=i;switch(t){case e(130):return e(174);case e(158):return e(180);default:return t}}(t[i(211)](i(164))),a=!0),!a&&e[i(207)](i(196))||o[i(171)][i(204)](i(196),r,e)}(r,a,n,i))})}),o[t(160)](t(145))[t(135)](e=>{const o=t;e.on(o(157),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;null==r||1===r?n[i(171)][i(175)](i(210),s):n[i(171)][i(204)](i(210),String(r),s)}),e.on(o(120),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;r&&i(198)!==r?n[i(171)][i(208)](i(164),r,s):n[i(171)][i(217)](i(164),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(183)][t(190)](d),i=this[t(129)](),s=this[t(138)]();o[t(128)][t(218)](e=>{const r=t,a=o[r(128)][r(213)][r(133)]();let c=!1;for(const t of a){if(r(200)!==t[r(206)]||r(141)===t[r(221)])continue;const n=o[r(179)](t[r(150)][r(152)]);for(const t of n[r(201)]())t.is(r(163),r(149))&&(!t[r(207)](r(144))&&o[r(151)][r(205)](t,r(144))&&(e[r(204)](r(144),s,t),c=!0),!t[r(207)](r(196))&&o[r(151)][r(205)](t,r(196))&&(e[r(204)](r(196),i,t),c=!0))}return c&&n[r(173)](e),c})}[ht(153)](){const t=ht,{editor:e}=this;e[t(183)][t(190)](d)[t(199)](e=>this[t(156)](e))}[ht(129)](){const t=ht;return this[t(222)][t(168)][t(190)](t(194))}[ht(138)](){const t=ht;return this[t(222)][t(168)][t(190)](t(195))}[ht(156)]({container:t,value:e,digits:o}){const n=ht,i=t[n(170)](n(196)),s=t[n(170)](n(144)),r=Math[n(131)](e)+(s??1)-1;switch(i){case n(176):return function(t,e){const o=n;return String(t)[o(136)](e,"0")}(r,Math[n(177)](2,o));case n(130):case n(174):return wt(r,!1);case n(158):case n(180):return wt(r,!0);case n(209):return vt(r,!1);case n(212):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(186)](t);return Array[o(127)](n[o(169)]())[o(122)](t=>t.is(o(163),"ol")&&t[o(139)](o(192)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(172)](97+t)+n,i=Math[o(131)]((i-1)/26)}return e?n[o(161)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(){const t=["removeStyle","registerPostFixer","parseInt","_definePostfixer","name","editor","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","find","extend","commands","2388yBnGvr","_defineSchema","from","document","_getDefaultListStyle","lower-alpha","floor","item","getChanges","46lQpDuw","add","padStart","footnotesStyle","_getDefaultStartIndex","hasClass","28AuUOMK","$text","5275QiJPst","viewItem","footnotesListStart","downcast","consume","parent","6936izkgpz","footnotesDefinitions","position","schema","nodeAfter","_defineFormatter","394737oJXSlv","isOfficialPlugin","_formatFootnoteListValue","attribute:footnotesListStart:footnotesDefinitions","upper-alpha","15785370LhZugj","for","toUpperCase","FootnotesPropertiesEditing","element","list-style-type","consumable","footnotesStart","18918pTuweR","config","getChildren","getAttribute","writer","fromCharCode","_updateFootnotesCounters","lower-latin","removeAttribute","decimal-leading-zero","max","define","createRangeOn","upper-latin","_defineConverters","isPremiumPlugin","plugins","5410307kWSpHs","mapper","toViewElement","isNaN","element:ol","modelCursor","get","upcast","footnotes-list","requires","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","pluginName","decimal","setFootnoteFormatter","insert","getItems","906420piIsfQ","187eCPGjd","setAttribute","checkAttribute","type","hasAttribute","setStyle","lower-roman","start","getStyle","upper-roman","differ","init","79163UnMWwV","model"];return(bt=function(){return t})()}function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(121)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=B(),Ct.insert=W().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=J();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["78962rPgtyx","pluginName","161184VLXaWD","902718FnzaQn","3932580jpxsYk","24eEuxhg","2922KZqJQF","35021dPjyqt","requires","18Uwokgh","FootnotesProperties","344gxrNKd","168615hFpaJx","isPremiumPlugin","isOfficialPlugin"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=164]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(128508===parseInt(e(176))/1+-parseInt(e(172))/2*(parseInt(e(167))/3)+parseInt(e(178))/4+parseInt(e(173))/5*(-parseInt(e(170))/6)+-parseInt(e(168))/7*(parseInt(e(166))/8)+-parseInt(e(164))/9+parseInt(e(165))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(177)](){return xt(171)}static get[xt(169)](){return[mt,Ft]}static get[xt(175)](){return!0}static get[xt(174)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=371]})(t,e)}function At(){var t=["2182146rwhpmI","216498AgVZaW","5125764ZouscI","11SquqzX","6nswLGq","1137224dlUgzZ","734820InmtzT","5427185iAuLGp","9RaMtxU","1877664YRvMJr"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(669281===parseInt(e(372))/1*(-parseInt(e(380))/2)+parseInt(e(379))/3+-parseInt(e(378))/4+parseInt(e(376))/5*(parseInt(e(373))/6)+parseInt(e(371))/7+parseInt(e(374))/8*(-parseInt(e(377))/9)+-parseInt(e(375))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x349802,Command as _0x2110dd}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x537c3e,isWidget as _0x351b54,toWidgetEditable as _0xe0b609,WidgetToolbarRepository as _0x4455ce}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x2e5f04,logWarning as _0x5d3530,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x38980f,ClickObserver as _0x4d05aa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1a0391}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x51fb0a,ButtonView as _0xa42a82,View as _0x3a8c93,ViewCollection as _0x2aec16,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x1571f7,BalloonPanelView as _0x6ed29,createDropdown as _0x2b7949}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x253764,IconListStyleDecimal as _0x1cc222,IconListStyleDecimalLeadingZero as _0x37a66c,IconListStyleLowerRoman as _0x38bc6f,IconListStyleUpperRoman as _0x5b8e00,IconListStyleLowerLatin as _0x300a50,IconListStyleUpperLatin as _0x5f0855}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4e609e,_0x51728c){this['_model']=_0x4e609e,this['_elementName']=_0x51728c['elementName'],this['_getElementKey']=_0x51728c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3edbc1){const _0x50a85e=new Set(),_0x102bf2=new Map();for(const _0x41dc2c of _0x3edbc1){if('insert'===_0x41dc2c['type']&&'$text'!==_0x41dc2c['name']&&_0x41dc2c['position']['nodeAfter']){const _0x496786=this['_model']['createRangeOn'](_0x41dc2c['position']['nodeAfter']);for(const _0x53445c of _0x496786['getItems']()){if(!_0x53445c['is']('element',this['_elementName']))continue;const _0x43761e=this['_getElementKey'](_0x53445c);_0x102bf2['has'](_0x43761e)||_0x102bf2['set'](_0x43761e,[]),_0x102bf2['get'](_0x43761e)['push'](_0x53445c);}}if('remove'===_0x41dc2c['type']&&_0x41dc2c['name']===this['_elementName']){const _0x59f139=this['_getElementKey']({'getAttribute':_0x40f72b=>_0x41dc2c['attributes']['get'](_0x40f72b)});_0x50a85e['add'](_0x59f139);}}for(const [_0x5add2a,_0x3a578d]of this['_trackedElements'])'$graveyard'===_0x3a578d['root']['rootName']&&_0x50a85e['add'](_0x5add2a);for(const _0x1b6354 of _0x50a85e)this['_trackedElements']['delete'](_0x1b6354);for(const [_0x46a68f,_0x260dec]of _0x102bf2)this['_trackedElements']['set'](_0x46a68f,_0x260dec[_0x260dec['length']-0x1]);const _0x5cb0f0=new Set();for(const [_0xc06666,_0x957b01]of _0x102bf2)_0x50a85e['has'](_0xc06666)&&(_0x5cb0f0['add'](_0x957b01[0x0]),_0x957b01['length']>0x1?_0x102bf2['set'](_0xc06666,_0x957b01['slice'](0x1)):_0x102bf2['delete'](_0xc06666),_0x50a85e['delete'](_0xc06666));return{'removed':Array['from'](_0x50a85e),'inserted':Array['from'](_0x102bf2['values']())['flat'](),'moved':Array['from'](_0x5cb0f0)};}}class f extends _0x349802{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x436050){super(_0x436050),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x397247=>_0x397247['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2f1926=>_0x2f1926['getAttribute']('footnoteId')});}['init'](){const {editor:_0x16c689}=this,{model:_0x11c71a,data:_0x1abafe}=_0x16c689;_0x11c71a['document']['registerPostFixer'](_0x458605=>{const _0x287a69=_0x11c71a['document']['differ']['getChanges']();let _0x4b6ec5=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x458605,_0x287a69)&&(_0x4b6ec5=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x458605,_0x287a69)&&(_0x4b6ec5=!0x0),this['_handleFootnoteReferencesChanges'](_0x458605,_0x287a69)&&(_0x4b6ec5=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x458605)&&(_0x4b6ec5=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x458605)&&(_0x4b6ec5=!0x0),this['_sortFootnoteDefinitions'](_0x458605)&&(_0x4b6ec5=!0x0),_0x4b6ec5;}),this['listenTo'](_0x11c71a['document'],'change:data',()=>{_0x11c71a['enqueueChange']({'isUndoable':!0x1},_0x47caad=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x47caad);});},{'priority':'low'}),this['listenTo'](_0x1abafe,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x11c540){return this['_footnotes']['find'](_0x532f62=>_0x532f62['id']===_0x11c540)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x405dc0){this['_footnoteFormatter']=_0x405dc0;}['_updateFootnotesCounters'](_0x33587b,_0x161ba7=0x0){let _0x63d21f=!0x1;for(let _0x4386bd=_0x161ba7;_0x4386bd<this['_footnotes']['length'];_0x4386bd++)this['_updateFootnoteRefCounter'](_0x33587b,_0x4386bd)&&(_0x63d21f=!0x0);return _0x63d21f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1e275e,_0x4796b3){const _0x5439d3=_0x1e275e['createElement']('footnotesDefinitions',{});return _0x1e275e['append'](_0x5439d3,_0x4796b3),this['_footnotesDefinitions']=_0x5439d3,_0x5439d3;}['_ensureFootnotesDefinitionsContainerExists'](_0x189aac){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x1d8deb=this['_footnotes'][0x0]['reference']['root'],_0x54818e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x189aac,_0x1d8deb);for(const _0x4f99d5 of this['_footnotes'])_0x4f99d5['definition']['parent']||_0x189aac['insert'](_0x4f99d5['definition'],_0x54818e,'end');this['_updateFootnotesCounters'](_0x189aac);}['_handleFootnotesDefinitionsObjectChanges'](_0x10cd84,_0x3f32f1){let _0xb815af=!0x1;const {inserted:_0xf5d363,removed:_0xd764bb,moved:_0x576392}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3f32f1);if(_0x576392['length']&&(this['_footnotesDefinitions']=_0x576392[0x0]),_0xf5d363['length']){if(_0xf5d363['length']>0x1||this['_footnotesDefinitions']&&_0xf5d363['some'](_0x421a70=>_0x421a70!==this['_footnotesDefinitions'])){const _0x5d53c2=_0x10cd84['createElement']('footnotesDefinitions',{}),_0xb60f9a=[];this['_footnotesDefinitions']&&_0xb60f9a['push'](this['_footnotesDefinitions']),_0xb60f9a['push'](..._0xf5d363),_0x10cd84['insert'](_0x5d53c2,_0xb60f9a[0x0],'before');for(const _0x5efddb of _0xb60f9a)_0x10cd84['move'](_0x10cd84['createRangeIn'](_0x5efddb),_0x10cd84['createPositionAt'](_0x5d53c2,'end')),_0x10cd84['remove'](_0x5efddb);this['_footnotesDefinitions']=_0x5d53c2,this['_updateFootnotesCounters'](_0x10cd84),_0xb815af=!0x0;}else this['_footnotesDefinitions']=_0xf5d363[0x0];}if(_0xd764bb['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4cf45b of this['_footnotes'])_0x10cd84['remove'](_0x4cf45b['reference']),_0xb815af=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xb815af;}['_handleFootnoteDefinitionsChanges'](_0x281073,_0x8218ac){let _0x137041=!0x1;const _0x10a829=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1dd81c,moved:_0xc80d0e}=this['_footnoteDefsTracker']['getChanges'](_0x8218ac);for(const _0x5e20c4 of[..._0xc80d0e,..._0x1dd81c]){const _0x2cc3b8=_0x5e20c4['getAttribute']('footnoteId'),_0x554029=this['getFootnote'](_0x2cc3b8);_0x554029&&(_0x554029['definition']=_0x5e20c4),_(_0x281073,_0x10a829,_0x5e20c4)&&(_0x137041=!0x0);}return _0x137041;}['_handleFootnoteReferencesChanges'](_0x5ea670,_0x595f08){let _0xfa698e=!0x1;const {removed:_0x4e097d,inserted:_0x5e8257,moved:_0x21a71f}=this['_footnoteRefsTracker']['getChanges'](_0x595f08);for(const _0x2ec338 of _0x4e097d)this['_handleRemoveFootnoteReferenceById'](_0x5ea670,_0x2ec338)&&(_0xfa698e=!0x0);for(const _0xc04bbf of _0x5e8257)this['_handleInsertedFootnoteReference'](_0x5ea670,_0xc04bbf)&&(_0xfa698e=!0x0);for(const _0x3c7c69 of _0x21a71f)this['_handleMovedFootnoteReference'](_0x5ea670,_0x3c7c69)&&(_0xfa698e=!0x0);return _0xfa698e;}['_handleFootnotesDefinitionsObjectSync'](_0x4e317b){if(!this['_footnotesDefinitions'])return!0x1;let _0x2ddc85=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xdfe1f9=[];for(const _0x23d6f3 of this['_footnotesDefinitions']['getChildren']()){const _0xd6d672=_0x23d6f3['getAttribute']('footnoteId');this['getFootnote'](_0xd6d672)||(_0xdfe1f9['unshift'](_0x23d6f3),_0x2ddc85=!0x0);}for(const _0xc364c3 of _0xdfe1f9)_0x4e317b['remove'](_0xc364c3);}const _0x494aab=new Set(),_0x19a431=[];for(const _0x5bd009 of this['_footnotesDefinitions']['getChildren']()){const _0x3a0130=_0x5bd009['getAttribute']('footnoteId');_0x494aab['has'](_0x3a0130)?(_0x19a431['unshift'](_0x5bd009),_0x2ddc85=!0x0):_0x494aab['add'](_0x3a0130);}for(const _0x2abc84 of _0x19a431)_0x4e317b['remove'](_0x2abc84);return this['_footnotesDefinitions']['childCount']||(_0x4e317b['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2ddc85=!0x0),_0x2ddc85;}['_handleInsertedFootnoteReference'](_0x3c0009,_0x2dcb15){if(this['_footnotes']['find'](_0x5ee2ac=>_0x5ee2ac['reference']===_0x2dcb15))return!0x1;let _0x2cb5fe=!0x1;const _0x20b31d=_0x2dcb15['getAttribute']('footnoteId'),_0x1d1c05=this['_footnotes']['findIndex'](_0x45b598=>_0x45b598['id']===_0x20b31d);-0x1!==_0x1d1c05&&(_0x3c0009['remove'](this['_footnotes'][_0x1d1c05]['reference']),this['_footnotes']['splice'](_0x1d1c05,0x1),_0x2cb5fe=!0x0);let _0xbc9290=this['_footnotesDefinitions']?function(_0x5c45b9,_0x87f569){for(const _0x227fc9 of _0x5c45b9['getChildren']())if(_0x227fc9['getAttribute']('footnoteId')===_0x87f569)return _0x227fc9;return null;}(this['_footnotesDefinitions'],_0x20b31d):null;_0xbc9290||(_0xbc9290=_0x3c0009['createElement']('footnoteDefinition',{'footnoteId':_0x20b31d}),this['_footnotesDefinitions']&&(_0x3c0009['insert'](_0xbc9290,this['_footnotesDefinitions'],'end'),_0x2cb5fe=!0x0));const _0x44fa3d={'id':_0x20b31d,'reference':_0x2dcb15,'definition':_0xbc9290},_0x21a467=I(this['editor']['model'],this['_footnotes'],_0x2dcb15);this['_footnotes']['splice'](_0x21a467,0x0,_0x44fa3d);let _0x7c78b5=_0x21a467;return-0x1!==_0x1d1c05&&(_0x7c78b5=Math['min'](_0x21a467,_0x1d1c05)),this['_updateFootnotesCounters'](_0x3c0009,_0x7c78b5)&&(_0x2cb5fe=!0x0),_0x2cb5fe;}['_handleRemoveFootnoteReferenceById'](_0x1aa0d4,_0x10c90f){const _0x33c4b9=this['_footnotes']['findIndex'](_0x40677b=>_0x40677b['id']===_0x10c90f);if(-0x1===_0x33c4b9)return!0x1;let _0x5c091d=!0x1;const _0x5ef4c2=this['_footnotes'][_0x33c4b9];return'$graveyard'!==_0x5ef4c2['definition']['root']['rootName']&&(_0x1aa0d4['remove'](_0x5ef4c2['definition']),_0x5c091d=!0x0),this['_footnotes']['splice'](_0x33c4b9,0x1),this['_updateFootnotesCounters'](_0x1aa0d4,_0x33c4b9)&&(_0x5c091d=!0x0),_0x5c091d;}['_handleMovedFootnoteReference'](_0x338014,_0x126ee5){const _0x4265a5=_0x126ee5['getAttribute']('footnoteId'),_0x50600c=this['_footnotes']['findIndex'](_0x458d83=>_0x458d83['id']===_0x4265a5),_0x25cb00=this['_footnotes'][_0x50600c];let _0x219cbb=!0x1;_0x25cb00['reference']=_0x126ee5,this['_footnotes']['splice'](_0x50600c,0x1);const _0x33db5f=I(this['editor']['model'],this['_footnotes'],_0x126ee5);return this['_footnotes']['splice'](_0x33db5f,0x0,_0x25cb00),this['_updateFootnotesCounters'](_0x338014,Math['min'](_0x50600c,_0x33db5f))&&(_0x219cbb=!0x0),_0x219cbb;}['_updateFootnoteRefCounter'](_0x77e17b,_0x3c5414){if(!this['_footnotesDefinitions'])return!0x1;const _0xe59f45=this['_footnotes'][_0x3c5414];let _0x1c8167;return _0x1c8167=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xe59f45,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3c5414+0x1}):String(_0x3c5414+0x1),_0xe59f45['reference']['getAttribute']('footnoteCounter')!=_0x1c8167&&(_0x77e17b['setAttribute']('footnoteCounter',_0x1c8167,_0xe59f45['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5600d0){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3504db,_0x269f07){if(_0x3504db['length']!==_0x269f07['length'])return!0x1;for(let _0x190273=0x0;_0x190273<_0x3504db['length'];_0x190273++)if(_0x3504db[_0x190273]!==_0x269f07[_0x190273])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3233f4=>_0x3233f4['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x479ec0=>_0x479ec0['getAttribute']('footnoteId'))))return!0x1;let _0x52111e=!0x1;for(let _0x4a542e=0x0;_0x4a542e<this['_footnotes']['length'];_0x4a542e++){const _0x5608b3=this['_footnotes'][_0x4a542e],_0x38b492=_0x5600d0['createPositionBefore'](_0x5608b3['definition']),_0x5015c3=_0x5600d0['createPositionAt'](this['_footnotesDefinitions'],_0x4a542e);_0x38b492['isEqual'](_0x5015c3)||(_0x5600d0['move'](_0x5600d0['createRangeOn'](_0x5608b3['definition']),_0x5015c3),_0x52111e=!0x0);}return _0x52111e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x506867){if(!this['_footnotes']['length'])return!0x1;const {model:_0x25abed}=this['editor'];let _0x4141a7=!0x1;for(let _0x41b700=0x0;_0x41b700<this['_footnotes']['length']-0x1;_0x41b700++){const _0x290695=this['_footnotes'][_0x41b700],_0x5d9594=this['_footnotes'][_0x41b700+0x1],_0x14e02b=_0x25abed['createPositionBefore'](_0x290695['reference']),_0x2ac0b8=_0x25abed['createPositionBefore'](_0x5d9594['reference']);'after'===_0x14e02b['compareWith'](_0x2ac0b8)&&(this['_handleMovedFootnoteReference'](_0x506867,_0x290695['reference']),_0x41b700=-0x1,_0x4141a7=!0x0);}return _0x4141a7;}}function _(_0x484349,_0x369b80,_0xa4a5f1){if(_0xa4a5f1['childCount'])return!0x1;const _0x4e9fdd=_0x369b80?'paragraph':'footnoteInlineContent';return _0x484349['insert'](_0x484349['createElement'](_0x4e9fdd),_0xa4a5f1),!0x0;}function I(_0x1f93eb,_0x23f7da,_0x2aba67){if(0x0===_0x23f7da['length'])return 0x0;const _0x27953e=_0x1f93eb['createPositionBefore'](_0x2aba67);for(let _0x53bd1e=0x0;_0x53bd1e<_0x23f7da['length'];_0x53bd1e++){const _0x215171=_0x23f7da[_0x53bd1e],_0x339768=_0x1f93eb['createPositionBefore'](_0x215171['reference']);if('before'===_0x27953e['compareWith'](_0x339768))return _0x53bd1e;}const _0x2dd74f=_0x2aba67['root'];let _0x178ed5=-0x1;for(let _0x70ff0c=_0x23f7da['length']-0x1;_0x70ff0c>=0x0;_0x70ff0c--)if(_0x23f7da[_0x70ff0c]['reference']['root']===_0x2dd74f){_0x178ed5=_0x70ff0c;break;}if(-0x1!==_0x178ed5)return _0x178ed5+0x1;const _0x2d0102=_0x1f93eb['document']['getRootNames'](),_0x18a175=_0x2d0102['indexOf'](_0x2dd74f['rootName']),_0x29308c=_0x2d0102[_0x18a175+0x1];if(_0x29308c){for(let _0x4e3e55=0x0;_0x4e3e55<_0x23f7da['length'];_0x4e3e55++)if(_0x23f7da[_0x4e3e55]['reference']['root']['rootName']===_0x29308c)return _0x4e3e55;}return _0x23f7da['length'];}class h extends _0x2110dd{['refresh'](){const _0x853ad2=this['editor']['model']['document']['selection'],_0x2e51f8=this['_getPositionToInsertFootnote'](_0x853ad2);this['isEnabled']=!!_0x2e51f8;}['execute'](_0x2b558f){const {editor:_0x30c270}=this,{model:_0x58a924}=_0x30c270,{selection:_0x4fd5d7}=_0x58a924['document'],_0x2d294d=this['_getPositionToInsertFootnote'](_0x4fd5d7);if(!_0x2d294d)return;const _0x397276=_0x30c270['plugins']['get']('FootnotesEditing'),_0x4dbfa6=_0x2b558f?.['footnoteId']??_0x2e5f04();!function(_0x28975a){return'string'==typeof _0x28975a&&_0x28975a['length']>0x0&&!/\s/['test'](_0x28975a)&&!/^\d/['test'](_0x28975a);}(_0x4dbfa6)?_0x5d3530('insert-footnote-command-executed-with-invalid-id'):(_0x58a924['change'](_0x44b452=>{const _0x53504b=_0x44b452['createElement']('footnoteRef',{'footnoteId':_0x4dbfa6});_0x58a924['insertObject'](_0x53504b,_0x2d294d,null);}),_0x397276['_moveSelectionToFootnoteDefinition'](_0x4dbfa6));}['_getPositionToInsertFootnote'](_0x5f0255){const {model:_0x2dd246}=this['editor'],{schema:_0x192e8f}=_0x2dd246,_0x25a751=_0x5f0255['getFirstRange']();for(const _0x772943 of _0x25a751['getItems']())if(_0x192e8f['isBlock'](_0x772943)||_0x192e8f['isObject'](_0x772943))return null;const _0x57ce7c=_0x25a751['end'];return _0x192e8f['checkChild'](_0x57ce7c,'footnoteRef')?_0x57ce7c:null;}}class r extends _0x349802{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x592f48}=this;_0x592f48['config']['define']('footnotes.multiBlock',!0x0),_0x592f48['commands']['add']('insertFootnote',new h(_0x592f48)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x386c38){const _0x15be92=_0x36cd4c([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0xad2382=0x47a28506,_0x1ebc2d=0x47a5fbb6^_0xad2382,_0x323463=window[_0x36cd4c([0x44,0x61,0x74,0x65])][_0x36cd4c([0x6e,0x6f,0x77])](),_0x400a98=_0x386c38[_0x36cd4c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4bea52=new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10277c=>{_0x400a98[_0x36cd4c([0x6f,0x6e,0x63,0x65])](_0x36cd4c([0x72,0x65,0x61,0x64,0x79]),_0x10277c);}),_0x582a5a={[_0x36cd4c([0x6b,0x74,0x79])]:_0x36cd4c([0x45,0x43]),[_0x36cd4c([0x75,0x73,0x65])]:_0x36cd4c([0x73,0x69,0x67]),[_0x36cd4c([0x63,0x72,0x76])]:_0x36cd4c([0x50,0x2d,0x32,0x35,0x36]),[_0x36cd4c([0x78])]:_0x36cd4c([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]),[_0x36cd4c([0x79])]:_0x36cd4c([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]),[_0x36cd4c([0x61,0x6c,0x67])]:_0x36cd4c([0x45,0x53,0x32,0x35,0x36])},_0x3c836d=_0x400a98[_0x36cd4c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36cd4c([0x67,0x65,0x74])](_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46c5eb(){let _0xdf8ca2,_0x5e4317=null,_0x55cc52=null;try{if(_0x3c836d==_0x36cd4c([0x47,0x50,0x4c]))return _0x36cd4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdf8ca2=_0x5a48d6(),!_0xdf8ca2)return _0x36cd4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdf8ca2[_0x36cd4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55cc52=_0x15ac9c(_0xdf8ca2[_0x36cd4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdf8ca2[_0x36cd4c([0x6a,0x74,0x69])])),await _0x208f47()?_0x70e92f()?_0x35e79d()?_0x36cd4c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xddf19f()?(_0xdf8ca2[_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36cd4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e4317=_0x1505c4(_0x36cd4c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4adffe()):_0x36cd4c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36cd4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36cd4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36cd4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35e79d(){const _0x411799=[_0x36cd4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36cd4c([0x74,0x72,0x69,0x61,0x6c])][_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf8ca2[_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x323463/0x3e8:0xe10*_0x1ebc2d;return _0xdf8ca2[_0x36cd4c([0x65,0x78,0x70])]<_0x411799;}function _0x70e92f(){const _0x38044c=_0xdf8ca2[_0x36cd4c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x38044c&&(!!_0x38044c[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36cd4c([0x2a]))||!!_0x38044c[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36cd4c([0x46,0x4f,0x4f])));}function _0xddf19f(){const _0x5b2031=_0xdf8ca2[_0x36cd4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b2031||0x0==_0x5b2031[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4635d0}=new URL(window[_0x36cd4c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b2031[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4635d0))return!0x0;const _0x28d6c9=_0x4635d0[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e]));return _0x5b2031[_0x36cd4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49ce53=>_0x49ce53[_0x36cd4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36cd4c([0x2a])))[_0x36cd4c([0x6d,0x61,0x70])](_0x2b2469=>_0x2b2469[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e])))[_0x36cd4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5319b8=>_0x5319b8[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28d6c9[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36cd4c([0x6d,0x61,0x70])](_0xaca9b=>Array(_0x28d6c9[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xaca9b[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36cd4c([0x66,0x69,0x6c,0x6c])](_0xaca9b[0x0]===_0x36cd4c([0x2a])?_0x36cd4c([0x2a]):'')[_0x36cd4c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xaca9b))[_0x36cd4c([0x73,0x6f,0x6d,0x65])](_0x2df5be=>_0x28d6c9[_0x36cd4c([0x65,0x76,0x65,0x72,0x79])]((_0x2071c8,_0x49aebf)=>_0x2df5be[_0x49aebf]===_0x2071c8||_0x2df5be[_0x49aebf]===_0x36cd4c([0x2a])));}function _0x4adffe(){return _0x5e4317&&_0x55cc52?new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbb89f3,_0x3fff1a)=>{_0x5e4317[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0xbb89f3,_0x3fff1a),_0x55cc52[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x49d2f0=>{_0x49d2f0!=_0x36cd4c([0x56,0x61,0x6c,0x69,0x64])&&_0xbb89f3(_0x49d2f0);},_0x3fff1a);}):_0x5e4317||_0x55cc52||_0x36cd4c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ac9c(_0x4b5481,_0x438a1d){return new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30aefb=>{if(_0x3775e0())return _0x30aefb(_0x36cd4c([0x56,0x61,0x6c,0x69,0x64]));_0x215951(),_0x400a98[_0x36cd4c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36cd4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15589e=!0x1;const _0xdf7194=_0x2e5f04();function _0x3edc4b(_0x318371){return!!_0x318371&&(typeof _0x318371===_0x36cd4c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x318371===_0x36cd4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x318371[_0x36cd4c([0x74,0x68,0x65,0x6e])]===_0x36cd4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x318371[_0x36cd4c([0x63,0x61,0x74,0x63,0x68])]===_0x36cd4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8f94b2(_0x570384){_0xc27a98(_0x570384)[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x3e7a1e=>{if(!_0x3e7a1e||_0x3e7a1e[_0x36cd4c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36cd4c([0x6f,0x6b]))return _0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c2a7c(_0x5ac460(_0xdf7194+_0x438a1d))!=_0x3e7a1e[_0x36cd4c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36cd4c([0x56,0x61,0x6c,0x69,0x64]);})[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x55198d=>(_0x3b0861(),_0x55198d),()=>{const _0xf53e7b=_0x34c941();return null==_0xf53e7b?(_0x3b0861(),_0x36cd4c([0x56,0x61,0x6c,0x69,0x64])):_0x36cd4c(_0x323463-_0xf53e7b>(0x63ae0106^_0xad2382)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x30aefb)[_0x36cd4c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30aefb(_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ef3b9=0x47946b86^_0xad2382;function _0x3b0861(){const _0x5bc285=_0x36cd4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c2a7c(_0x5ac460(_0x4b5481)),_0x465dcc=_0x3bd7b7(_0x2c2a7c(window[_0x36cd4c([0x4d,0x61,0x74,0x68])][_0x36cd4c([0x63,0x65,0x69,0x6c])](_0x323463/_0x3ef3b9)));window[_0x36cd4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36cd4c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bc285,_0x465dcc);}function _0x34c941(){const _0x3ca214=_0x36cd4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c2a7c(_0x5ac460(_0x4b5481)),_0x3abb40=window[_0x36cd4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36cd4c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ca214);return _0x3abb40?window[_0x36cd4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd7b7(_0x3abb40),0x10)*_0x3ef3b9:null;}function _0xc27a98(_0x568b44){return new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x230962,_0x18f5a7)=>{_0x568b44[_0x36cd4c([0x74,0x68,0x65,0x6e])](_0x230962,_0x18f5a7),window[_0x36cd4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18f5a7,0x47a351c6^_0xad2382);});}}_0x400a98[_0x36cd4c([0x6f,0x6e])](_0x36cd4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2237eb,_0x3123d1)=>{if(_0x3123d1[0x0]!=_0x4b5481)return _0x30aefb(_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3123d1[0x1]={..._0x3123d1[0x1],[_0x36cd4c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdf7194};},{[_0x36cd4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36cd4c([0x68,0x69,0x67,0x68])}),_0x400a98[_0x36cd4c([0x6f,0x6e])](_0x36cd4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14c304=>{_0x3edc4b(_0x14c304[_0x36cd4c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15589e=!0x0,_0x8f94b2(_0x14c304[_0x36cd4c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36cd4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36cd4c([0x6c,0x6f,0x77])}),_0x4bea52[_0x36cd4c([0x74,0x68,0x65,0x6e])](()=>{_0x15589e||_0x30aefb(_0x36cd4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3775e0(){return _0x400a98[_0x36cd4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36cd4c([0x76,0x69,0x65,0x77])][_0x36cd4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36cd4c([0x61,0x75,0x74,0x6f]);}function _0x215951(){_0x400a98[_0x36cd4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36cd4c([0x76,0x69,0x65,0x77])][_0x36cd4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36cd4c([0x61,0x75,0x74,0x6f]);}}function _0x1505c4(_0x5f34e2){const _0x1c7e94=[new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c73d3=>setTimeout(_0x1c73d3,0x47abbbca^_0xad2382)),_0x4bea52[_0x36cd4c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40082d=>{let _0x2bd92c=0x0;_0x400a98[_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x36cd4c([0x6f,0x6e])](_0x36cd4c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3dd6c8,_0x262f25)=>{_0x262f25[0x0][_0x36cd4c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bd92c++,_0x2bd92c==(0x47a280ee^_0xad2382)&&(_0x40082d(),_0x3dd6c8[_0x36cd4c([0x6f,0x66,0x66])]());});}))];return window[_0x36cd4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36cd4c([0x72,0x61,0x63,0x65])](_0x1c7e94)[_0x36cd4c([0x74,0x68,0x65,0x6e])](()=>_0x5f34e2);}async function _0x25a3eb(){await _0x4bea52,_0x400a98[_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x36cd4c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5da3b4,_0x400a98[_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x36cd4c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5da3b4,_0x400a98[_0x36cd4c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36cd4c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfcc99e(_0x42caa1){const _0x2767eb=_0x3c1c86();_0x400a98[_0x2767eb]=_0x36cd4c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42caa1,_0x42caa1!=_0x36cd4c([0x56,0x61,0x6c,0x69,0x64])&&_0x25a3eb();}function _0x3c1c86(){const _0x26bf66=window[_0x36cd4c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36cd4c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36cd4c([0x6e,0x6f,0x77])]())[_0x36cd4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36cd4c([0x2e]),'');let _0x2d824c=_0x36cd4c([0x75]);for(let _0x1e8000=0x0;_0x1e8000<_0x26bf66[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e8000+=0x2){let _0x24ffc4=window[_0x36cd4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26bf66[_0x36cd4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e8000,_0x1e8000+0x2));_0x24ffc4>=_0x15be92[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24ffc4-=_0x15be92[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d824c+=_0x15be92[_0x24ffc4];}return _0x2d824c;}function _0x5a48d6(){const _0x4560ab=_0x3c836d[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e]));if(0x3!=_0x4560ab[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45fffe(_0x4560ab[0x1]);function _0x45fffe(_0x3f9dc3){const _0xb1df3=_0xd4fe82(_0x3f9dc3);return _0xb1df3&&_0x2950c2()?_0xb1df3:null;function _0x2950c2(){const _0x22e63e=_0xb1df3[_0x36cd4c([0x6a,0x74,0x69])],_0x2cc96c=window[_0x36cd4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e63e[_0x36cd4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22e63e[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x348e72={..._0xb1df3,[_0x36cd4c([0x6a,0x74,0x69])]:_0x22e63e[_0x36cd4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22e63e[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x348e72[_0x36cd4c([0x76,0x63])],_0x5ac460(_0x348e72)==_0x2cc96c;}}}async function _0x208f47(){let _0x21f74e=!0x0;try{const _0x4b7ca1=_0x3c836d[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])](_0x36cd4c([0x2e])),[_0x49e943,_0x45966d,_0x8ba7a2]=_0x4b7ca1;return _0x4530db(_0x49e943),await _0x27f756(_0x49e943,_0x45966d,_0x8ba7a2),_0x21f74e;}catch{return!0x1;}function _0x4530db(_0x36ce18){const _0x2be415=_0xd4fe82(_0x36ce18);_0x2be415&&_0x2be415[_0x36cd4c([0x61,0x6c,0x67])]==_0x36cd4c([0x45,0x53,0x32,0x35,0x36])||(_0x21f74e=!0x1);}async function _0x27f756(_0x12e69c,_0x3d4202,_0xd0d468){const _0x15c712=window[_0x36cd4c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36cd4c([0x66,0x72,0x6f,0x6d])](_0x5c2df4(_0xd0d468),_0x51ccd5=>_0x51ccd5[_0x36cd4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b7419=new window[(_0x36cd4c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36cd4c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12e69c+_0x36cd4c([0x2e])+_0x3d4202),_0x1d08b8=window[_0x36cd4c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36cd4c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d08b8)return;const _0x3b750d=await _0x1d08b8[_0x36cd4c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36cd4c([0x6a,0x77,0x6b]),_0x582a5a,{[_0x36cd4c([0x6e,0x61,0x6d,0x65])]:_0x36cd4c([0x45,0x43,0x44,0x53,0x41]),[_0x36cd4c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36cd4c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36cd4c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d08b8[_0x36cd4c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36cd4c([0x6e,0x61,0x6d,0x65])]:_0x36cd4c([0x45,0x43,0x44,0x53,0x41]),[_0x36cd4c([0x68,0x61,0x73,0x68])]:{[_0x36cd4c([0x6e,0x61,0x6d,0x65])]:_0x36cd4c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b750d,_0x15c712,_0x3b7419)||(_0x21f74e=!0x1);}}function _0xd4fe82(_0x53d4c8){return _0x53d4c8[_0x36cd4c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36cd4c([0x65,0x79]))?JSON[_0x36cd4c([0x70,0x61,0x72,0x73,0x65])](_0x5c2df4(_0x53d4c8)):null;}function _0x5c2df4(_0x413cc6){return window[_0x36cd4c([0x61,0x74,0x6f,0x62])](_0x413cc6[_0x36cd4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36cd4c([0x2b]))[_0x36cd4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36cd4c([0x2f])));}function _0x5ac460(_0x3a66be){let _0x426e2f=0x1505;function _0x49d1a6(_0x1b4fb8){for(let _0x5b6d47=0x0;_0x5b6d47<_0x1b4fb8[_0x36cd4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b6d47++){const _0xb7e449=_0x1b4fb8[_0x36cd4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b6d47);_0x426e2f=(_0x426e2f<<0x5)+_0x426e2f+_0xb7e449,_0x426e2f&=_0x426e2f;}}function _0x2657a9(_0x4eea98){Array[_0x36cd4c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4eea98)?_0x4eea98[_0x36cd4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2657a9):_0x4eea98&&typeof _0x4eea98==_0x36cd4c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36cd4c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4eea98)[_0x36cd4c([0x73,0x6f,0x72,0x74])]()[_0x36cd4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x62a1bd,_0x3087b6])=>{_0x49d1a6(_0x62a1bd),_0x2657a9(_0x3087b6);}):_0x49d1a6(window[_0x36cd4c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4eea98));}return _0x2657a9(_0x3a66be),_0x426e2f>>>0x0;}function _0x2c2a7c(_0x3ab6cd){return _0x3ab6cd[_0x36cd4c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36cd4c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36cd4c([0x30]));}function _0x3bd7b7(_0x8a7210){return _0x8a7210[_0x36cd4c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36cd4c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36cd4c([0x6a,0x6f,0x69,0x6e])]('');}function _0x5da3b4(){}function _0x36cd4c(_0x497494){return _0x497494['map'](_0x3ffd67=>String['fromCharCode'](_0x3ffd67))['join']('');}_0xfcc99e(await _0x46c5eb());}(this);}['_moveSelectionToFootnoteDefinition'](_0x13ae1e){const {plugins:_0x2ba878,editing:_0xa0cb76,model:_0x5322b2}=this['editor'],_0x5eb5a5=_0x2ba878['get'](f)['getFootnote'](_0x13ae1e);return!!_0x5eb5a5&&(_0x5322b2['change'](_0x551fb2=>{_0x551fb2['setSelection'](_0x551fb2['createPositionAt'](_0x5eb5a5['definition'],'end'));}),_0xa0cb76['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x547ad9){const {plugins:_0x5d378c,editing:_0x1cdc7a,model:_0x55a956}=this['editor'],_0x3adcdf=_0x5d378c['get'](f)['getFootnote'](_0x547ad9);return!!_0x3adcdf&&(_0x55a956['change'](_0x50c25a=>{_0x50c25a['setSelection'](_0x3adcdf['reference'],'on');}),_0x1cdc7a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x54798e}=this['editor']['model'],_0x5a39f5=this['editor']['config']['get']('footnotes.multiBlock');_0x54798e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x54798e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x54798e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5a39f5?_0x54798e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x54798e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x54798e['addChildCheck'](_0x29f6f3=>{for(const _0x854bab of _0x29f6f3)if('footnoteDefinition'===_0x854bab['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x14ff02}=this,{conversion:_0x462209,editing:_0x40520c}=_0x14ff02,{t:t}=_0x14ff02['locale'];_0x462209['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3ec2f8,{writer:_0x299023,consumable:_0x574dc5})=>{const _0x2572f9=_0x3ec2f8['getChild'](0x0);if(!_0x2572f9||!_0x2572f9['is']('element','a'))return null;const _0x17d054=_0x2572f9['getAttribute']('href')||'';if(!_0x17d054['startsWith']('#'))return null;const _0x437b2f=_0x17d054['replace'](/^#/,'');if(!_0x437b2f)return null;_0x574dc5['consume'](_0x2572f9,{'name':!0x0,'attributes':['href']});for(const {item:_0x1cb7d0}of _0x40520c['view']['createRangeIn'](_0x2572f9))_0x1cb7d0['is']('$textProxy')?_0x574dc5['consume'](_0x1cb7d0['textNode'],{'name':!0x0}):_0x1cb7d0['is']('element')&&_0x574dc5['consume'](_0x1cb7d0,{'name':!0x0});return _0x299023['createElement']('footnoteRef',{'footnoteId':_0x437b2f});}}),_0x462209['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x15e3ba,{writer:_0x2a5b03})=>b(_0x15e3ba,_0x2a5b03)}),_0x462209['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x320f9a,{writer:_0x55f819})=>{const _0x194863=_0x320f9a['getAttribute']('footnoteCounter');return _0x537c3e(b(_0x320f9a,_0x55f819),_0x55f819,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x194863)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5a2a8c}=this,{t:t}=_0x5a2a8c['locale'],{conversion:_0x440cac}=_0x5a2a8c;_0x440cac['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x440cac['for']('upcast')['add'](_0x5bf6d6=>{_0x5bf6d6['on']('element:ol',(_0x340c1c,_0x4686dd,_0x20b355)=>{const _0x1dbab2=_0x4686dd['viewItem'];if(!_0x1dbab2['hasClass']('footnotes-list')||!_0x4686dd['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x20b355['consumable']['consume'](_0x1dbab2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x10c6df,modelCursor:_0x4e3ec7}=_0x20b355['convertChildren'](_0x4686dd['viewItem'],_0x4686dd['modelCursor']);_0x4686dd['modelRange']=_0x10c6df,_0x4686dd['modelCursor']=_0x4e3ec7;}),_0x5bf6d6['on']('element:hr',(_0x247c90,_0x386682,_0x4102e9)=>{const _0xe5ecef=_0x386682['viewItem'];_0xe5ecef['hasClass']('footnotes-divider')&&_0x386682['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4102e9['consumable']['consume'](_0xe5ecef,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x440cac['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x14a0f1,{writer:_0x37e6db})=>D(_0x37e6db)}),_0x440cac['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4d96c5,{writer:_0x4cdf1b})=>{const _0x1f575f=D(_0x4cdf1b,{'data-footnotes-list-label':t('Footnotes')}),_0x492371=_0x537c3e(_0x1f575f,_0x4cdf1b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4cdf1b['setCustomProperty']('footnotesDefinitions',!0x0,_0x492371),_0x492371;}});}['_defineDefinitionConverters'](){const {editor:_0xec8816}=this,{conversion:_0x18f089,locale:_0x2a23c4}=_0xec8816,_0x55ceae=_0xec8816['config']['get']('footnotes.multiBlock');_0x18f089['for']('upcast')['add'](_0x5c0cfe=>{_0x5c0cfe['on']('element:li',(_0x2af8ab,_0x2effae,_0x20d2a5)=>{const _0x2ff659=_0x2effae['viewItem'];if(!_0x2ff659['hasClass']('footnote-definition')||!_0x2ff659['getAttribute']('id'))return;const _0x35cba6=_0x2ff659['parent'];if(!_0x35cba6['is']('element','ol')||!_0x35cba6['hasClass']('footnotes-list'))return;if(!_0x20d2a5['consumable']['test'](_0x2ff659,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3af6cd=_0x20d2a5['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2ff659['getAttribute']('id')});if(!_0x20d2a5['safeInsert'](_0x3af6cd,_0x2effae['modelCursor']))return;_0x20d2a5['consumable']['consume'](_0x2ff659,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2f8471=Array['from'](_0x2ff659['getChildren']())['find'](_0x17226c=>_0x17226c['is']('element')&&_0x17226c['hasClass']('footnote-content'));for(const _0x2d0360 of _0x2ff659['getChildren']())_0x2d0360['is']('element')&&(_0x20d2a5['consumable']['consume'](_0x2d0360,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x20d2a5['consumable']['consume'](_0x2d0360,{'name':!0x0,'classes':'footnote-content'}));if(_0x2f8471){if(_0x55ceae)_0x20d2a5['convertChildren'](_0x2f8471,_0x3af6cd);else{const _0x5cf787=_0x20d2a5['writer']['createElement']('footnoteInlineContent');_0x20d2a5['writer']['insert'](_0x5cf787,_0x3af6cd),_0x20d2a5['convertChildren'](_0x2f8471,_0x5cf787);}}_0x20d2a5['updateConversionResult'](_0x3af6cd,_0x2effae);});}),_0x18f089['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4218fe,{writer:_0x71c200})=>y(_0x4218fe,_0x71c200,_0x2a23c4,{'dataPipeline':!0x0})}),_0x18f089['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xc9977a,{writer:_0x19a487})=>y(_0xc9977a,_0x19a487,_0x2a23c4)});}['_defineBogusParagraphConverters'](){const {editor:_0x4a1004}=this,{conversion:_0x1a7967}=_0x4a1004;_0x4a1004['config']['get']('footnotes.multiBlock')?(_0x1a7967['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1a7967['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4a1004['model']['document'],'change:data',()=>{!function(_0x5cbf3c,_0x44272f){const _0x20e06c=_0x5cbf3c['document']['differ'],_0x52a916=new Set();for(const _0xa9b3b7 of _0x20e06c['getChanges']()){const _0x2fe818='attribute'==_0xa9b3b7['type']?_0xa9b3b7['range']['start']['parent']:_0xa9b3b7['position']['parent'];_0x2fe818['is']('element','footnoteDefinition')&&_0x52a916['add'](_0x2fe818);}for(const _0x3f045c of _0x52a916['values']()){const _0x2b2fb9=Array['from'](_0x3f045c['getChildren']())['filter'](_0x3dcc8e=>v(_0x3dcc8e,_0x44272f['mapper']));for(const _0x2a2117 of _0x2b2fb9)_0x44272f['reconvertItem'](_0x2a2117);}}(_0x4a1004['model'],_0x4a1004['editing']);})):(_0x1a7967['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1a7967['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4f6c3d,{writer:_0x343e9e})=>{const _0x2539e0=_0x343e9e['createContainerElement']('span');return _0x343e9e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2539e0),_0x2539e0;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5c8dcb}=this,{editing:_0x47a17d,t:t}=_0x5c8dcb,_0x3d7069=_0x5c8dcb['model']['document']['selection'];_0x5c8dcb['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5c8dcb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x47a17d['view']['document'],'enter',(_0x3b69d7,_0x2d458b)=>{const _0x4e3374=function(_0x492bdb){const _0x3bb3f3=_0x492bdb['getSelectedElement']();if(_0x3bb3f3?.['is']('element','footnoteRef'))return _0x3bb3f3;return null;}(_0x3d7069);if(_0x4e3374){const _0x46c56e=_0x4e3374['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x46c56e),_0x2d458b['preventDefault'](),_0x3b69d7['stop']();}},{'context':_0x351b54});}['_defineClickHandlers'](){const {editor:_0x3c3edf}=this,{editing:_0x23b95c}=_0x3c3edf;_0x3c3edf['editing']['view']['addObserver'](_0x38980f),_0x3c3edf['editing']['view']['addObserver'](_0x4d05aa);let _0x4e9eed=!0x1;this['listenTo'](_0x23b95c['view']['document'],'pointerdown',(_0x25e170,_0x456c15)=>{const {target:_0x3f27e0}=_0x456c15,_0x209da7=_0x23b95c['view']['document']['selection'];_0x4e9eed=!!(_0x3f27e0?.['is']('element','a')&&_0x3f27e0['parent']?.['is']('element','sup')&&_0x3f27e0['parent']['hasClass']('footnote'))&&_0x209da7['getSelectedElement']()===_0x3f27e0['parent'];},{'priority':'high'}),this['listenTo'](_0x23b95c['view']['document'],'click',(_0x4c252d,_0x317eae)=>{const {target:_0x5e5344}=_0x317eae;if(!_0x5e5344?.['is']('element','a'))return;if(_0x5e5344['parent']?.['is']('element','sup')&&_0x5e5344['parent']['hasClass']('footnote')&&!_0x4e9eed)return void _0x317eae['preventDefault']();let _0x2c5393=_0x5e5344['getAttribute']('href');if(!_0x2c5393?.['startsWith']('#'))return;_0x2c5393=_0x2c5393['slice'](0x1);let _0xf64182=!0x1;(_0x2c5393['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2c5393['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2c5393))&&(_0xf64182=!0x0),_0xf64182&&(_0x317eae['preventDefault'](),_0x4c252d['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2e4cf8}={}){return(_0x59e27c,{writer:_0x61b49a})=>{if(!g(_0x59e27c))return null;if(!_0x2e4cf8)return _0x61b49a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x427ad5=_0x61b49a['createContainerElement']('p');return _0x61b49a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x427ad5),_0x427ad5;};}function g(_0x2fb53a){const {parent:_0x381e3a}=_0x2fb53a;if(!_0x381e3a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x381e3a['childCount'])return!0x1;for(const _0x3f9c8b of _0x2fb53a['getAttributeKeys']())if(!_0x3f9c8b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3f9c8b)return!0x1;return!0x0;}function v(_0x22b6ef,_0x4eba3c){if(!_0x22b6ef['is']('element','paragraph'))return!0x1;const _0x47e535=_0x4eba3c['toViewElement'](_0x22b6ef);return!!_0x47e535&&g(_0x22b6ef)!==_0x47e535['is']('element','span');}function Q(_0xed5131){return _0x351b54(_0xed5131)&&_0xed5131['is']('containerElement')&&!!_0xed5131['getCustomProperty']('footnotesDefinitions');}function D(_0x1fff82,_0x394885={}){const _0x33bd1a=_0x1fff82['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1208bf=_0x1fff82['createContainerElement']('ol',{'class':'footnotes-list'},_0x1fff82['createSlot']());return _0x1fff82['createContainerElement']('div',{'class':'footnotes',..._0x394885},[_0x33bd1a,_0x1208bf]);}function b(_0x3de80e,_0x3512b4){const _0x695c97=_0x3de80e['getAttribute']('footnoteId'),_0x351207=_0x3de80e['getAttribute']('footnoteCounter'),_0x41d78a=_0x3512b4['createUIElement']('a',{'href':'#'+_0x695c97},function(_0x59b34b){const _0x11d2ae=this['toDomElement'](_0x59b34b);return _0x11d2ae['textContent']=_0x351207,_0x11d2ae;}),_0x18afa2=_0x3512b4['createContainerElement']('sup',{'id':'ref-'+_0x695c97,'class':'footnote'},[_0x41d78a]);return _0x18afa2['getFillerOffset']=()=>null,_0x18afa2;}function y(_0x25dcbb,_0x4d68e5,_0x347466,{dataPipeline:_0x5cd81e}={}){const {t:t}=_0x347466,_0x576ce0=_0x25dcbb['getAttribute']('footnoteId'),_0x1fcdd9=_0x4d68e5['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x576ce0},function(_0x218e8f){const _0x537202=this['toDomElement'](_0x218e8f);return _0x537202['innerText']='^',_0x537202;}),_0x1f368f=_0x5cd81e?_0x4d68e5['createContainerElement']('div',{'class':'footnote-content'}):_0xe0b609(_0x4d68e5['createEditableElement']('div',{'class':'footnote-content'}),_0x4d68e5,{'label':t('Footnote\x20content.')});return _0x4d68e5['insert'](_0x4d68e5['createPositionAt'](_0x1f368f,0x0),_0x4d68e5['createSlot']()),_0x4d68e5['createContainerElement']('li',{'class':'footnote-definition','id':_0x576ce0},[_0x1fcdd9,_0x1f368f]);}class e extends _0x349802{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1a0391];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2a22f8}=this,{plugins:_0x1ac0e5,model:_0x46331c}=_0x2a22f8,_0xa05b50=_0x1ac0e5['get'](_0x1a0391),_0x1bb297=_0x1ac0e5['get'](f);this['listenTo'](_0xa05b50,'outputTransformation',(_0x5f8e71,_0x9a658)=>{const _0x51a591=l(_0x46331c['createRangeIn'](_0x9a658['content']));if(!_0x51a591['length'])return;const _0xd37e24=_0x1bb297['getFootnotes'](),_0x4cadb9=_0x51a591['reduce']((_0x54f37a,_0x4e4386)=>{const _0x9f7204=_0xd37e24['find'](_0x59490a=>_0x59490a['id']===_0x4e4386);if(_0x9f7204){const _0x59c337=_0x2a22f8['data']['toView'](_0x9f7204['definition'],{'isClipboardPipeline':!0x0}),_0x490ce2=_0x2a22f8['data']['htmlProcessor']['toData'](_0x59c337);_0x54f37a[_0x9f7204['id']]=_0x490ce2;}return _0x54f37a;},Object['create'](null));_0x9a658['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4cadb9));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x6080a4}=this,{model:_0xee134,plugins:_0x1fbd96}=_0x6080a4,{view:_0x4a0b37}=_0x6080a4['editing'],_0x2132a6=_0x1fbd96['get'](_0x1a0391),_0x5953c9=_0x1fbd96['get'](f),_0x1fba76=_0x6080a4['config']['get']('footnotes.multiBlock');let _0x23ea3c=null;this['listenTo'](_0x4a0b37['document'],'clipboardInput',(_0x26c2e6,_0x12200a)=>{const _0x9c46d0=_0x12200a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x23ea3c=_0x9c46d0?JSON['parse'](_0x9c46d0):null;}),this['listenTo'](_0x2132a6,'contentInsertion',(_0x5b0e35,_0x223b11)=>{const _0x36abc8=_0x223b11['sourceEditorId']===this['editor']['id'];_0x36abc8&&'drop'===_0x223b11['method']||_0xee134['change'](_0x2297e2=>{let _0x477b48=_0x5953c9['getFootnotesDefinitionsObjectElement']();const _0x451d75=!!_0x477b48&&Array['from'](_0xee134['document']['selection']['getSelectedBlocks']())['includes'](_0x477b48);if(!_0x23ea3c&&function(_0x47ffe5){for(const {item:_0x416f4f}of _0x47ffe5)if(_0x416f4f['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0xee134['createRangeIn'](_0x223b11['content']))&&(_0x23ea3c=function(_0x5aa51e,_0x111b42){const _0x54fd84=c(_0x5aa51e,_0x111b42);if(!_0x54fd84)return null;const _0x20c32a=Object['create'](null);for(const _0x175576 of _0x54fd84['getChildren']())_0x175576['is']('element','footnoteDefinition')&&_0x175576['hasAttribute']('footnoteId')&&(_0x20c32a[_0x175576['getAttribute']('footnoteId')]=_0x5aa51e['cloneElement'](_0x175576,!0x0));return Object['keys'](_0x20c32a)['length']?_0x20c32a:null;}(_0x2297e2,_0x223b11['content'])),(_0x477b48&&!_0x451d75||!_0x477b48&&!_0x23ea3c)&&function(_0x54a676,_0xe81aef){const _0x3d3f6e=[];for(const {item:_0x1231d5}of _0x54a676['createRangeIn'](_0xe81aef))_0x1231d5['is']('element','footnotesDefinitions')&&_0x3d3f6e['push'](_0x1231d5);for(const _0x419e10 of _0x3d3f6e)_0x54a676['remove'](_0x419e10);}(_0x2297e2,_0x223b11['content']),!_0x23ea3c)return;const {selection:_0x5279d5}=_0xee134['document'],_0x7066e4=_0x5279d5['getFirstRange']()['root'];_0x477b48&&!_0x451d75||(_0x477b48=c(_0x2297e2,_0x223b11['content']),_0x477b48||=_0x5953c9['_insertEmptyFootnotesDefinitionsContainer'](_0x2297e2,_0x7066e4));const _0x19ee7a=Array['from'](_0x5279d5['getRanges']())['flatMap'](l),_0x3a829e=function(_0x596d4e,_0x11d7a0,_0x2ff816){const _0x2369ef=Object['create'](null);for(const {item:_0x1f2818}of _0x596d4e['createRangeIn'](_0x11d7a0))if(_0x1f2818['is']('element','footnoteRef')){const _0x2f743b=_0x1f2818['getAttribute']('footnoteId');if(!_0x2ff816(_0x2f743b))continue;_0x2369ef[_0x2f743b]||(_0x2369ef[_0x2f743b]=_0x2e5f04()),_0x596d4e['setAttribute']('footnoteId',_0x2369ef[_0x2f743b],_0x1f2818);}return _0x2369ef;}(_0x2297e2,_0x223b11['content'],_0x2a7532=>{if(!_0x36abc8)return!0x0;return!!_0x5953c9['getFootnote'](_0x2a7532)&&!_0x19ee7a['includes'](_0x2a7532);});for(const [_0x3d24eb,_0x16c50f]of Object['entries'](_0x23ea3c)){const _0x32fada=_0x3a829e[_0x3d24eb]||_0x3d24eb;let _0x4b1fc3;if('string'!=typeof _0x16c50f)_0x4b1fc3=_0x16c50f,_0x32fada!==_0x3d24eb&&_0x2297e2['setAttribute']('footnoteId',_0x32fada,_0x4b1fc3);else{_0x4b1fc3=_0x2297e2['createElement']('footnoteDefinition',{'footnoteId':_0x32fada});const _0x5d7084=_0x6080a4['data']['htmlProcessor']['toView'](_0x16c50f);let _0x3725d8;if(_0x1fba76)_0x3725d8=_0x6080a4['data']['toModel'](_0x5d7084,_0x4b1fc3);else{_0x3725d8=_0x2297e2['createElement']('footnoteInlineContent');const _0x2b2731=_0x6080a4['data']['toModel'](_0x5d7084,_0x3725d8);_0x2297e2['insert'](_0x2b2731,_0x3725d8);}_0x2297e2['append'](_0x3725d8,_0x4b1fc3);}_0x2297e2['insert'](_0x4b1fc3,_0x477b48,'end');}_0x23ea3c=null;});});}}function c(_0x52ae7b,_0x4e2a4e){for(const {item:_0x4c6355}of _0x52ae7b['createRangeIn'](_0x4e2a4e))if(_0x4c6355['is']('element','footnotesDefinitions'))return _0x4c6355;return null;}function l(_0x41d7a1){const _0x428c17=new Set();for(const {item:_0x2dc76e}of _0x41d7a1)_0x2dc76e['is']('element','footnoteRef')&&_0x428c17['add'](_0x2dc76e['getAttribute']('footnoteId'));return Array['from'](_0x428c17);}class i extends _0x349802{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x351223}=this,{componentFactory:_0x32d235}=_0x351223['ui'];_0x32d235['add']('insertFootnote',E(_0x351223,_0xa42a82)),_0x32d235['add']('menuBar:insertFootnote',E(_0x351223,_0x51fb0a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5be7e3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b2b50;for(const _0x1e849a in _0x5be7e3){const _0x531296=_0x1e849a,_0x293e62=_0x5be7e3[_0x531296];if('footnotesLicenseKeyValid'==_0x293e62||'footnotesLicenseKeyInvalid'==_0x293e62||'footnotesLicenseKeyExpired'==_0x293e62||'footnotesLicenseKeyDomainLimit'==_0x293e62||'footnotesLicenseKeyNotAllowed'==_0x293e62||'footnotesLicenseKeyEvaluationLimit'==_0x293e62||'footnotesLicenseKeyUsageLimit'==_0x293e62){delete _0x5be7e3[_0x531296],_0x2b2b50=_0x293e62,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x2b2b50&&_0x5be7e3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x21fc20,_0x6867f3){const _0x1299e4=_0x21fc20['commands']['get']('insertFootnote');return _0x2bba28=>{const {t:t}=_0x2bba28,_0x54ed5e=new _0x6867f3(_0x2bba28),_0x4fd2cd=_0x54ed5e instanceof _0x51fb0a;return _0x54ed5e['bind']('isEnabled')['to'](_0x1299e4,'isEnabled'),_0x54ed5e['set']({'label':t(_0x4fd2cd?'Footnote':'Insert\x20footnote'),'icon':_0x253764,'tooltip':!0x0}),_0x54ed5e['on']('execute',()=>{_0x1299e4['execute'](),_0x21fc20['editing']['view']['focus']();}),_0x54ed5e;};}class lt extends _0x349802{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x2110dd{['refresh'](){const {editor:_0x1c3157}=this,_0xc78bbe=_0x1c3157['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xc78bbe,this['value']=_0xc78bbe?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x78103d}){const {editor:_0x4d780a}=this,_0xa72ed9=_0x4d780a['plugins']['get'](f),_0x512ff6=_0xa72ed9['getFootnotesDefinitionsObjectElement']();_0x512ff6&&W['includes'](_0x78103d)&&_0x4d780a['model']['change'](_0x35296=>{_0x35296['setAttribute']('footnotesListStyle',_0x78103d,_0x512ff6),_0xa72ed9['_updateFootnotesCounters'](_0x35296);});}}class C extends _0x2110dd{['refresh'](){const {editor:_0x3fc41a}=this,_0x143610=_0x3fc41a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x143610,this['value']=_0x143610?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x74a147}){const {editor:_0x3e8a06}=this,_0x418b5d=_0x3e8a06['plugins']['get'](f),_0xcef2a2=_0x418b5d['getFootnotesDefinitionsObjectElement']();_0xcef2a2&&Number['isInteger'](_0x74a147)&&_0x3e8a06['model']['change'](_0x2f7ccd=>{_0x2f7ccd['setAttribute']('footnotesListStart',_0x74a147,_0xcef2a2),_0x418b5d['_updateFootnotesCounters'](_0x2f7ccd);});}}class P extends _0x349802{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5ef417}=this;_0x5ef417['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5ef417['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5ef417['commands']['add']('footnotesStyle',new S(_0x5ef417)),_0x5ef417['commands']['add']('footnotesStart',new C(_0x5ef417)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2ed74a}=this,{schema:_0x4325de}=_0x2ed74a['model'];_0x4325de['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x227aa3}=this,{conversion:_0x82a6a7,model:_0x22d953}=_0x227aa3,{schema:_0x5dab00}=_0x22d953;_0x82a6a7['for']('upcast')['add'](_0x172085=>{_0x172085['on']('element:ol',(_0x3ab197,_0x5346d3,_0x49cc5f)=>{const _0x906082=_0x5346d3['viewItem'],_0x9e5bad=_0x5346d3['modelCursor']?.['parent'];_0x906082['hasClass']('footnotes-list')&&_0x9e5bad?.['is']('element','footnotesDefinitions')&&(function(_0x27ad72,_0x56edef,_0xffb906,_0x2e4b9f){if(!_0x2e4b9f['checkAttribute'](_0x56edef,'footnotesListStart'))return;let _0x4f67f3=0x1;const _0x39a801=_0xffb906['consumable']['consume'](_0x27ad72,{'attributes':'start'});if(_0x39a801){const _0x523aee=Number['parseInt'](_0x27ad72['getAttribute']('start'),0xa);Number['isNaN'](_0x523aee)||(_0x4f67f3=_0x523aee);}!_0x39a801&&_0x56edef['hasAttribute']('footnotesListStart')||_0xffb906['writer']['setAttribute']('footnotesListStart',_0x4f67f3,_0x56edef);}(_0x906082,_0x9e5bad,_0x49cc5f,_0x5dab00),function(_0x63e647,_0x494cd1,_0xc1ea9e,_0xce5749){if(!_0xce5749['checkAttribute'](_0x494cd1,'footnotesListStyle'))return;let _0x54ccdf='decimal',_0x318d3d=!0x1;if(_0xc1ea9e['consumable']['consume'](_0x63e647,{'attributes':'type'})){const _0x5e071b={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x63e647['getAttribute']('type')];_0x5e071b&&(_0x54ccdf=_0x5e071b),_0x318d3d=!0x0;}_0xc1ea9e['consumable']['consume'](_0x63e647,{'styles':'list-style-type'})&&(_0x54ccdf=function(_0x516979){switch(_0x516979){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x516979;}}(_0x63e647['getStyle']('list-style-type')),_0x318d3d=!0x0),!_0x318d3d&&_0x494cd1['hasAttribute']('footnotesListStyle')||_0xc1ea9e['writer']['setAttribute']('footnotesListStyle',_0x54ccdf,_0x494cd1);}(_0x906082,_0x9e5bad,_0x49cc5f,_0x5dab00));});}),_0x82a6a7['for']('downcast')['add'](_0x7d00ae=>{_0x7d00ae['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1e2024,_0x5065c0,_0x4b8619)=>{if(!_0x4b8619['consumable']['consume'](_0x5065c0['item'],_0x1e2024['name']))return;const _0x10afbf=M(_0x5065c0['item'],_0x4b8619['mapper']),{attributeNewValue:_0x18dc0c}=_0x5065c0;null==_0x18dc0c||0x1===_0x18dc0c?_0x4b8619['writer']['removeAttribute']('start',_0x10afbf):_0x4b8619['writer']['setAttribute']('start',String(_0x18dc0c),_0x10afbf);}),_0x7d00ae['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x30cecc,_0xaa65a4,_0x37564c)=>{if(!_0x37564c['consumable']['consume'](_0xaa65a4['item'],_0x30cecc['name']))return;const _0x1ab74b=M(_0xaa65a4['item'],_0x37564c['mapper']),{attributeNewValue:_0x2056c3}=_0xaa65a4;_0x2056c3&&'decimal'!==_0x2056c3?_0x37564c['writer']['setStyle']('list-style-type',_0x2056c3,_0x1ab74b):_0x37564c['writer']['removeStyle']('list-style-type',_0x1ab74b);});});}['_definePostfixer'](){const {editor:_0x56a90b}=this,{model:_0x358e8e}=_0x56a90b,_0x4de18d=_0x56a90b['plugins']['get'](f),_0x58af9e=this['_getDefaultListStyle'](),_0x749cf8=this['_getDefaultStartIndex']();_0x358e8e['document']['registerPostFixer'](_0x886d7e=>{const _0x3b234e=_0x358e8e['document']['differ']['getChanges']();let _0x578328=!0x1;for(const _0x7e70f8 of _0x3b234e){if('insert'!==_0x7e70f8['type']||'$text'===_0x7e70f8['name'])continue;const _0x11117f=_0x358e8e['createRangeOn'](_0x7e70f8['position']['nodeAfter']);for(const _0x55a0ee of _0x11117f['getItems']())_0x55a0ee['is']('element','footnotesDefinitions')&&(!_0x55a0ee['hasAttribute']('footnotesListStart')&&_0x358e8e['schema']['checkAttribute'](_0x55a0ee,'footnotesListStart')&&(_0x886d7e['setAttribute']('footnotesListStart',_0x749cf8,_0x55a0ee),_0x578328=!0x0),!_0x55a0ee['hasAttribute']('footnotesListStyle')&&_0x358e8e['schema']['checkAttribute'](_0x55a0ee,'footnotesListStyle')&&(_0x886d7e['setAttribute']('footnotesListStyle',_0x58af9e,_0x55a0ee),_0x578328=!0x0));}return _0x578328&&_0x4de18d['_updateFootnotesCounters'](_0x886d7e),_0x578328;});}['_defineFormatter'](){const {editor:_0x42404e}=this;_0x42404e['plugins']['get'](f)['setFootnoteFormatter'](_0x47896e=>this['_formatFootnoteListValue'](_0x47896e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x399233,value:_0x252357,digits:_0x21d061}){const _0x34fafe=_0x399233['getAttribute']('footnotesListStyle'),_0x5e28b8=_0x399233['getAttribute']('footnotesListStart'),_0x1b946e=Math['floor'](_0x252357)+(_0x5e28b8??0x1)-0x1;switch(_0x34fafe){case'decimal-leading-zero':return function(_0x55280e,_0x1961a2){return String(_0x55280e)['padStart'](_0x1961a2,'0');}(_0x1b946e,Math['max'](0x2,_0x21d061));case'lower-alpha':case'lower-latin':return N(_0x1b946e,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1b946e,!0x0);case'lower-roman':return X(_0x1b946e,!0x1);case'upper-roman':return X(_0x1b946e,!0x0);default:return String(_0x1b946e);}}}function M(_0x201841,_0x4aba73){const _0x488b96=_0x4aba73['toViewElement'](_0x201841);return Array['from'](_0x488b96['getChildren']())['find'](_0x54c606=>_0x54c606['is']('element','ol')&&_0x54c606['hasClass']('footnotes-list'));}function N(_0x10dceb,_0x5a6a58){let _0x5e5b7e='',_0x397aac=_0x10dceb;for(;_0x397aac>0x0;){const _0x39ec60=(_0x397aac-0x1)%0x1a;_0x5e5b7e=String['fromCharCode'](0x61+_0x39ec60)+_0x5e5b7e,_0x397aac=Math['floor']((_0x397aac-0x1)/0x1a);}return _0x5a6a58?_0x5e5b7e['toUpperCase']():_0x5e5b7e;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x217e98,_0x18b1ee){let _0x418c88='',_0x4bff51=_0x217e98;for(const {value:_0x1d8d81,numeral:_0x574e3c}of V)for(;_0x4bff51>=_0x1d8d81;)_0x418c88+=_0x574e3c,_0x4bff51-=_0x1d8d81;return _0x18b1ee?_0x418c88:_0x418c88['toLowerCase']();}class J extends _0x3a8c93{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x2aec16();['focusCycler'];constructor(_0x401594,{styleButtonViews:_0x5edc50,styleGridAriaLabel:_0x3ca581}){super(_0x401594),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5edc50,_0x3ca581),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x4664cb of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4664cb['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x4146f3=_0x33d95d=>_0x33d95d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4146f3),this['keystrokes']['set']('arrowleft',_0x4146f3),this['keystrokes']['set']('arrowup',_0x4146f3),this['keystrokes']['set']('arrowdown',_0x4146f3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x44c705,_0x2f6124){const _0x136fe2=new _0x3a8c93(this['locale']);return _0x136fe2['children']=_0x136fe2['createCollection'](),_0x136fe2['children']['addMany'](_0x44c705),_0x136fe2['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2f6124,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x136fe2['children']}),_0x136fe2['children']['delegate']('execute')['to'](this),_0x136fe2['focus']=function(){for(const _0x3d0013 of this['children'])if(_0x3d0013 instanceof _0xa42a82&&_0x3d0013['isOn'])return void _0x3d0013['focus']();this['children']['first']['focus']();},_0x136fe2['focusTracker']=new rt(),_0x136fe2['keystrokes']=new nt(),_0x136fe2['render'](),_0x136fe2['keystrokes']['listenTo'](_0x136fe2['element']),this['children']['add'](_0x136fe2),_0x136fe2;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x29312d=this['_createStartIndexPropertyView'](),_0x17c204=[_0x29312d],_0x45be8a=new it(this['locale'],_0x17c204);return _0x45be8a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x45be8a['buttonView']['bind']('isEnabled')['toMany'](_0x17c204,'isEnabled',(..._0x3ed166)=>_0x3ed166['some'](_0x3ec221=>_0x3ec221)),_0x45be8a['buttonView']['on']('change:isEnabled',(_0x35091b,_0x22730c,_0x136b97)=>{_0x136b97||(_0x45be8a['isCollapsed']=!0x0);}),this['children']['add'](_0x45be8a),[_0x29312d,_0x45be8a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xf2c16b=new et(this['locale'],ot);return _0xf2c16b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xf2c16b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xf2c16b['fieldView']['on']('input',()=>{const _0x1f2f1a=_0xf2c16b['fieldView']['element'],_0x136c17=_0x1f2f1a['valueAsNumber'];Number['isNaN'](_0x136c17)?_0xf2c16b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1f2f1a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x136c17}):_0xf2c16b['errorText']=t(_0x136c17<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xf2c16b;}}class j extends _0x349802{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1571f7,_0x4455ce];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2da154}=this,{componentFactory:_0x42ac84}=_0x2da154['ui'];_0x2da154['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x42ac84['add']('footnotesStyle',function(_0x48af93){return _0x10321d=>{const {t:t}=_0x10321d,_0x403e29=_0x48af93['commands']['get']('footnotesStyle'),_0x1e9da7=_0x2b7949(_0x10321d),{buttonView:_0x188da0}=_0x1e9da7;return _0x1e9da7['class']='ck-footnotes-styles-dropdown',_0x1e9da7['bind']('isEnabled')['to'](_0x403e29,'isEnabled'),_0x188da0['set']({'label':t('Footnotes\x20style'),'icon':_0x253764,'tooltip':!0x0}),_0x1e9da7['once']('change:isOpen',()=>{const _0x233e04=function({editor:_0x4ffb8f,dropdownView:_0x40ef55}){const {t:t}=_0x4ffb8f['locale'],_0xfc98e4=t('Footnotes\x20definitions\x20styles'),_0x2a7a6a=function(_0x7eeeed){const t=_0x7eeeed['locale']['t'],_0x503b96=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1cc222},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x37a66c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x38bc6f},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5b8e00},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x300a50},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5f0855}];return _0x503b96['map'](function(_0x2b6704){const _0x393752=_0x2b6704['locale'];return({label:_0x59143f,icon:_0x3984d3,tooltip:_0x26d296,style:_0x4abb8b})=>{const _0x22747c=_0x2b6704['commands']['get']('footnotesStyle'),_0xaedc4c=new _0xa42a82(_0x393752);return _0xaedc4c['set']({'label':_0x59143f,'icon':_0x3984d3,'tooltip':_0x26d296}),_0xaedc4c['bind']('isOn')['to'](_0x22747c,'value',_0x431725=>_0x431725===_0x4abb8b),_0xaedc4c['bind']('isEnabled')['to'](_0x22747c,'isEnabled'),_0xaedc4c['on']('execute',()=>{_0x2b6704['execute']('footnotesStyle',{'value':_0x4abb8b}),_0x2b6704['editing']['view']['focus']();}),_0xaedc4c;};}(_0x7eeeed));}(_0x4ffb8f),_0x43b627=new J(_0x4ffb8f['locale'],{'styleGridAriaLabel':_0xfc98e4,'styleButtonViews':_0x2a7a6a}),_0x549bfb=_0x4ffb8f['commands']['get']('footnotesStart');return _0x43b627['startIndexFieldView']['bind']('isEnabled')['to'](_0x549bfb),_0x43b627['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x549bfb),_0x43b627['on']('footnotesListStart',(_0x1f5381,_0x4562f2)=>{_0x4ffb8f['execute']('footnotesStart',{'value':_0x4562f2['startIndex']});}),_0x43b627['delegate']('execute')['to'](_0x40ef55),_0x43b627;}({'editor':_0x48af93,'dropdownView':_0x1e9da7});_0x1e9da7['panelView']['children']['add'](_0x233e04);}),_0x1e9da7;};}(_0x2da154));}['afterInit'](){const {editor:_0x508fbc}=this,{t:t}=_0x508fbc['locale'],_0x3fee8a=_0x508fbc['plugins']['get'](_0x4455ce),{defaultPositions:_0x362c6f}=_0x6ed29;_0x3fee8a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x508fbc['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x532914=>{let _0x427d30=_0x532914['getFirstPosition']()?.['parent'];return _0x427d30?.['is']('$text')&&(_0x427d30=_0x427d30['parent']),_0x427d30?.['is']('element')?_0x427d30['findAncestor'](Q):null;},'positions':[_0x362c6f['southArrowNorth'],_0x362c6f['southArrowNorthMiddleWest'],_0x362c6f['southArrowNorthMiddleEast'],_0x362c6f['southArrowNorthWest'],_0x362c6f['southArrowNorthEast'],_0x362c6f['northArrowSouth'],_0x362c6f['northArrowSouthMiddleWest'],_0x362c6f['northArrowSouthMiddleEast'],_0x362c6f['northArrowSouthWest'],_0x362c6f['northArrowSouthEast'],_0x362c6f['viewportStickyNorth']]});}}class ft extends _0x349802{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0xbda463,Command as _0x7b2849}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x25beaf,isWidget as _0x20247d,toWidgetEditable as _0x3848fd,WidgetToolbarRepository as _0x3c578e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x2aee84,logWarning as _0x26e2ed,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x26a296,ClickObserver as _0x3c2747}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1d5283}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x37aab7,ButtonView as _0x228e8a,View as _0x3afb27,ViewCollection as _0x31d3b1,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x1a9cc0,BalloonPanelView as _0x2cd6ae,createDropdown as _0x2bbf50}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x33a085,IconListStyleDecimal as _0x427384,IconListStyleDecimalLeadingZero as _0xe96110,IconListStyleLowerRoman as _0x5667cf,IconListStyleUpperRoman as _0x42d2a1,IconListStyleLowerLatin as _0x30bb87,IconListStyleUpperLatin as _0xe98f80}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0xcfc255,_0x3b884d){this['_model']=_0xcfc255,this['_elementName']=_0x3b884d['elementName'],this['_getElementKey']=_0x3b884d['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x312fea){const _0x1c54ee=new Set(),_0x180110=new Map();for(const _0x11e398 of _0x312fea){if('insert'===_0x11e398['type']&&'$text'!==_0x11e398['name']&&_0x11e398['position']['nodeAfter']){const _0x3a13c1=this['_model']['createRangeOn'](_0x11e398['position']['nodeAfter']);for(const _0x23563c of _0x3a13c1['getItems']()){if(!_0x23563c['is']('element',this['_elementName']))continue;const _0x1c1ab4=this['_getElementKey'](_0x23563c);_0x180110['has'](_0x1c1ab4)||_0x180110['set'](_0x1c1ab4,[]),_0x180110['get'](_0x1c1ab4)['push'](_0x23563c);}}if('remove'===_0x11e398['type']&&_0x11e398['name']===this['_elementName']){const _0x2f09d8=this['_getElementKey']({'getAttribute':_0x3b0204=>_0x11e398['attributes']['get'](_0x3b0204)});_0x1c54ee['add'](_0x2f09d8);}}for(const [_0x12b83d,_0x300d5b]of this['_trackedElements'])'$graveyard'===_0x300d5b['root']['rootName']&&_0x1c54ee['add'](_0x12b83d);for(const _0x4faafe of _0x1c54ee)this['_trackedElements']['delete'](_0x4faafe);for(const [_0x3b86b7,_0x515aa9]of _0x180110)this['_trackedElements']['set'](_0x3b86b7,_0x515aa9[_0x515aa9['length']-0x1]);const _0x4f1359=new Set();for(const [_0x3f7748,_0x32ad1a]of _0x180110)_0x1c54ee['has'](_0x3f7748)&&(_0x4f1359['add'](_0x32ad1a[0x0]),_0x32ad1a['length']>0x1?_0x180110['set'](_0x3f7748,_0x32ad1a['slice'](0x1)):_0x180110['delete'](_0x3f7748),_0x1c54ee['delete'](_0x3f7748));return{'removed':Array['from'](_0x1c54ee),'inserted':Array['from'](_0x180110['values']())['flat'](),'moved':Array['from'](_0x4f1359)};}}class f extends _0xbda463{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e76a2){super(_0x2e76a2),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x315e33=>_0x315e33['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x145c81=>_0x145c81['getAttribute']('footnoteId')});}['init'](){const {editor:_0x400e62}=this,{model:_0x5d3b03,data:_0x5dccdc}=_0x400e62;_0x5d3b03['document']['registerPostFixer'](_0x3c9180=>{const _0x133279=_0x5d3b03['document']['differ']['getChanges']();let _0x738cf=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3c9180,_0x133279)&&(_0x738cf=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3c9180,_0x133279)&&(_0x738cf=!0x0),this['_handleFootnoteReferencesChanges'](_0x3c9180,_0x133279)&&(_0x738cf=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3c9180)&&(_0x738cf=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3c9180)&&(_0x738cf=!0x0),this['_sortFootnoteDefinitions'](_0x3c9180)&&(_0x738cf=!0x0),_0x738cf;}),this['listenTo'](_0x5d3b03['document'],'change:data',()=>{_0x5d3b03['enqueueChange']({'isUndoable':!0x1},_0x2cdea3=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2cdea3);});},{'priority':'low'}),this['listenTo'](_0x5dccdc,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x55e41f){return this['_footnotes']['find'](_0x35a287=>_0x35a287['id']===_0x55e41f)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0xa2a941){this['_footnoteFormatter']=_0xa2a941;}['_updateFootnotesCounters'](_0x2e4a7f,_0x4d07a7=0x0){let _0x81fca9=!0x1;for(let _0x145f28=_0x4d07a7;_0x145f28<this['_footnotes']['length'];_0x145f28++)this['_updateFootnoteRefCounter'](_0x2e4a7f,_0x145f28)&&(_0x81fca9=!0x0);return _0x81fca9;}['_insertEmptyFootnotesDefinitionsContainer'](_0x4d0a2f,_0x54260c){const _0x1c5870=_0x4d0a2f['createElement']('footnotesDefinitions',{});return _0x4d0a2f['append'](_0x1c5870,_0x54260c),this['_footnotesDefinitions']=_0x1c5870,_0x1c5870;}['_ensureFootnotesDefinitionsContainerExists'](_0x431803){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x440004=this['_footnotes'][0x0]['reference']['root'],_0x580795=this['_insertEmptyFootnotesDefinitionsContainer'](_0x431803,_0x440004);for(const _0x3445ca of this['_footnotes'])_0x3445ca['definition']['parent']||_0x431803['insert'](_0x3445ca['definition'],_0x580795,'end');this['_updateFootnotesCounters'](_0x431803);}['_handleFootnotesDefinitionsObjectChanges'](_0x3fd83a,_0x115e3b){let _0x11e157=!0x1;const {inserted:_0x16b0f5,removed:_0x27adda,moved:_0x49c9c3}=this['_footnoteDefsContainerTracker']['getChanges'](_0x115e3b);if(_0x49c9c3['length']&&(this['_footnotesDefinitions']=_0x49c9c3[0x0]),_0x16b0f5['length']){if(_0x16b0f5['length']>0x1||this['_footnotesDefinitions']&&_0x16b0f5['some'](_0x73ea6c=>_0x73ea6c!==this['_footnotesDefinitions'])){const _0x37c219=_0x3fd83a['createElement']('footnotesDefinitions',{}),_0x3fc041=[];this['_footnotesDefinitions']&&_0x3fc041['push'](this['_footnotesDefinitions']),_0x3fc041['push'](..._0x16b0f5),_0x3fd83a['insert'](_0x37c219,_0x3fc041[0x0],'before');for(const _0x7f960e of _0x3fc041)_0x3fd83a['move'](_0x3fd83a['createRangeIn'](_0x7f960e),_0x3fd83a['createPositionAt'](_0x37c219,'end')),_0x3fd83a['remove'](_0x7f960e);this['_footnotesDefinitions']=_0x37c219,this['_updateFootnotesCounters'](_0x3fd83a),_0x11e157=!0x0;}else this['_footnotesDefinitions']=_0x16b0f5[0x0];}if(_0x27adda['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x33edc7 of this['_footnotes'])_0x3fd83a['remove'](_0x33edc7['reference']),_0x11e157=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x11e157;}['_handleFootnoteDefinitionsChanges'](_0x58678b,_0x35e9cc){let _0x50a835=!0x1;const _0x2e3143=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5ea625,moved:_0x32da37}=this['_footnoteDefsTracker']['getChanges'](_0x35e9cc);for(const _0x3eb9c4 of[..._0x32da37,..._0x5ea625]){const _0x2557e4=_0x3eb9c4['getAttribute']('footnoteId'),_0x1b2248=this['getFootnote'](_0x2557e4);_0x1b2248&&(_0x1b2248['definition']=_0x3eb9c4),_(_0x58678b,_0x2e3143,_0x3eb9c4)&&(_0x50a835=!0x0);}return _0x50a835;}['_handleFootnoteReferencesChanges'](_0x188b55,_0x26e5ba){let _0x17cea3=!0x1;const {removed:_0x1b77fc,inserted:_0x4222e0,moved:_0x3917b3}=this['_footnoteRefsTracker']['getChanges'](_0x26e5ba);for(const _0x5fd1e7 of _0x1b77fc)this['_handleRemoveFootnoteReferenceById'](_0x188b55,_0x5fd1e7)&&(_0x17cea3=!0x0);for(const _0x470358 of _0x4222e0)this['_handleInsertedFootnoteReference'](_0x188b55,_0x470358)&&(_0x17cea3=!0x0);for(const _0x3c65f4 of _0x3917b3)this['_handleMovedFootnoteReference'](_0x188b55,_0x3c65f4)&&(_0x17cea3=!0x0);return _0x17cea3;}['_handleFootnotesDefinitionsObjectSync'](_0x11f5d0){if(!this['_footnotesDefinitions'])return!0x1;let _0x582695=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x10dbbb=[];for(const _0x4b4b71 of this['_footnotesDefinitions']['getChildren']()){const _0x40d544=_0x4b4b71['getAttribute']('footnoteId');this['getFootnote'](_0x40d544)||(_0x10dbbb['unshift'](_0x4b4b71),_0x582695=!0x0);}for(const _0x368c5e of _0x10dbbb)_0x11f5d0['remove'](_0x368c5e);}const _0x5c9548=new Set(),_0x17a6a0=[];for(const _0x1af725 of this['_footnotesDefinitions']['getChildren']()){const _0x15854a=_0x1af725['getAttribute']('footnoteId');_0x5c9548['has'](_0x15854a)?(_0x17a6a0['unshift'](_0x1af725),_0x582695=!0x0):_0x5c9548['add'](_0x15854a);}for(const _0x58cd80 of _0x17a6a0)_0x11f5d0['remove'](_0x58cd80);return this['_footnotesDefinitions']['childCount']||(_0x11f5d0['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x582695=!0x0),_0x582695;}['_handleInsertedFootnoteReference'](_0x4868cd,_0x34711b){if(this['_footnotes']['find'](_0x3d1e5f=>_0x3d1e5f['reference']===_0x34711b))return!0x1;let _0x504b2f=!0x1;const _0x487a6c=_0x34711b['getAttribute']('footnoteId'),_0x5b00be=this['_footnotes']['findIndex'](_0xbae65f=>_0xbae65f['id']===_0x487a6c);-0x1!==_0x5b00be&&(_0x4868cd['remove'](this['_footnotes'][_0x5b00be]['reference']),this['_footnotes']['splice'](_0x5b00be,0x1),_0x504b2f=!0x0);let _0x2e3c45=this['_footnotesDefinitions']?function(_0x3893df,_0x354574){for(const _0x4e0576 of _0x3893df['getChildren']())if(_0x4e0576['getAttribute']('footnoteId')===_0x354574)return _0x4e0576;return null;}(this['_footnotesDefinitions'],_0x487a6c):null;_0x2e3c45||(_0x2e3c45=_0x4868cd['createElement']('footnoteDefinition',{'footnoteId':_0x487a6c}),this['_footnotesDefinitions']&&(_0x4868cd['insert'](_0x2e3c45,this['_footnotesDefinitions'],'end'),_0x504b2f=!0x0));const _0x236ab8={'id':_0x487a6c,'reference':_0x34711b,'definition':_0x2e3c45},_0x2cf543=I(this['editor']['model'],this['_footnotes'],_0x34711b);this['_footnotes']['splice'](_0x2cf543,0x0,_0x236ab8);let _0x52234c=_0x2cf543;return-0x1!==_0x5b00be&&(_0x52234c=Math['min'](_0x2cf543,_0x5b00be)),this['_updateFootnotesCounters'](_0x4868cd,_0x52234c)&&(_0x504b2f=!0x0),_0x504b2f;}['_handleRemoveFootnoteReferenceById'](_0x4be2c9,_0x171513){const _0x165e1f=this['_footnotes']['findIndex'](_0x419b1c=>_0x419b1c['id']===_0x171513);if(-0x1===_0x165e1f)return!0x1;let _0x294fa9=!0x1;const _0x4b9848=this['_footnotes'][_0x165e1f];return'$graveyard'!==_0x4b9848['definition']['root']['rootName']&&(_0x4be2c9['remove'](_0x4b9848['definition']),_0x294fa9=!0x0),this['_footnotes']['splice'](_0x165e1f,0x1),this['_updateFootnotesCounters'](_0x4be2c9,_0x165e1f)&&(_0x294fa9=!0x0),_0x294fa9;}['_handleMovedFootnoteReference'](_0x29fe0a,_0x435aa3){const _0x578fbf=_0x435aa3['getAttribute']('footnoteId'),_0x11900d=this['_footnotes']['findIndex'](_0x34897f=>_0x34897f['id']===_0x578fbf),_0x177ed6=this['_footnotes'][_0x11900d];let _0x4f5158=!0x1;_0x177ed6['reference']=_0x435aa3,this['_footnotes']['splice'](_0x11900d,0x1);const _0xf89bb5=I(this['editor']['model'],this['_footnotes'],_0x435aa3);return this['_footnotes']['splice'](_0xf89bb5,0x0,_0x177ed6),this['_updateFootnotesCounters'](_0x29fe0a,Math['min'](_0x11900d,_0xf89bb5))&&(_0x4f5158=!0x0),_0x4f5158;}['_updateFootnoteRefCounter'](_0x10002b,_0x358949){if(!this['_footnotesDefinitions'])return!0x1;const _0x2a48eb=this['_footnotes'][_0x358949];let _0x5824dd;return _0x5824dd=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2a48eb,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x358949+0x1}):String(_0x358949+0x1),_0x2a48eb['reference']['getAttribute']('footnoteCounter')!=_0x5824dd&&(_0x10002b['setAttribute']('footnoteCounter',_0x5824dd,_0x2a48eb['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x1c6e8a){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x6a9de6,_0x10b7ab){if(_0x6a9de6['length']!==_0x10b7ab['length'])return!0x1;for(let _0x5c34a8=0x0;_0x5c34a8<_0x6a9de6['length'];_0x5c34a8++)if(_0x6a9de6[_0x5c34a8]!==_0x10b7ab[_0x5c34a8])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5ec94c=>_0x5ec94c['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x537f2d=>_0x537f2d['getAttribute']('footnoteId'))))return!0x1;let _0x40bbff=!0x1;for(let _0x5f7d75=0x0;_0x5f7d75<this['_footnotes']['length'];_0x5f7d75++){const _0x52fb13=this['_footnotes'][_0x5f7d75],_0x4a1012=_0x1c6e8a['createPositionBefore'](_0x52fb13['definition']),_0x494549=_0x1c6e8a['createPositionAt'](this['_footnotesDefinitions'],_0x5f7d75);_0x4a1012['isEqual'](_0x494549)||(_0x1c6e8a['move'](_0x1c6e8a['createRangeOn'](_0x52fb13['definition']),_0x494549),_0x40bbff=!0x0);}return _0x40bbff;}['_ensureFootnotesReferencesHaveProperOrder'](_0x40cab1){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4c2713}=this['editor'];let _0x2b4d27=!0x1;for(let _0x166119=0x0;_0x166119<this['_footnotes']['length']-0x1;_0x166119++){const _0x4ba6a9=this['_footnotes'][_0x166119],_0x74bbb5=this['_footnotes'][_0x166119+0x1],_0x4230b3=_0x4c2713['createPositionBefore'](_0x4ba6a9['reference']),_0x3091e9=_0x4c2713['createPositionBefore'](_0x74bbb5['reference']);'after'===_0x4230b3['compareWith'](_0x3091e9)&&(this['_handleMovedFootnoteReference'](_0x40cab1,_0x4ba6a9['reference']),_0x166119=-0x1,_0x2b4d27=!0x0);}return _0x2b4d27;}}function _(_0x53e25b,_0x4951df,_0x4d7899){if(_0x4d7899['childCount'])return!0x1;const _0x3335a1=_0x4951df?'paragraph':'footnoteInlineContent';return _0x53e25b['insert'](_0x53e25b['createElement'](_0x3335a1),_0x4d7899),!0x0;}function I(_0x29b0d8,_0x59f634,_0x2a8cfd){if(0x0===_0x59f634['length'])return 0x0;const _0x5833ca=_0x29b0d8['createPositionBefore'](_0x2a8cfd);for(let _0x4e6f61=0x0;_0x4e6f61<_0x59f634['length'];_0x4e6f61++){const _0x16f5ba=_0x59f634[_0x4e6f61],_0x2cb3b7=_0x29b0d8['createPositionBefore'](_0x16f5ba['reference']);if('before'===_0x5833ca['compareWith'](_0x2cb3b7))return _0x4e6f61;}const _0x1dd6e6=_0x2a8cfd['root'];let _0x453c07=-0x1;for(let _0x3f8eda=_0x59f634['length']-0x1;_0x3f8eda>=0x0;_0x3f8eda--)if(_0x59f634[_0x3f8eda]['reference']['root']===_0x1dd6e6){_0x453c07=_0x3f8eda;break;}if(-0x1!==_0x453c07)return _0x453c07+0x1;const _0x165182=_0x29b0d8['document']['getRootNames'](),_0x376e62=_0x165182['indexOf'](_0x1dd6e6['rootName']),_0x43f440=_0x165182[_0x376e62+0x1];if(_0x43f440){for(let _0x346cbc=0x0;_0x346cbc<_0x59f634['length'];_0x346cbc++)if(_0x59f634[_0x346cbc]['reference']['root']['rootName']===_0x43f440)return _0x346cbc;}return _0x59f634['length'];}class h extends _0x7b2849{['refresh'](){const _0x59e816=this['editor']['model']['document']['selection'],_0x3699bc=this['_getPositionToInsertFootnote'](_0x59e816);this['isEnabled']=!!_0x3699bc;}['execute'](_0x4a0465){const {editor:_0x433cf5}=this,{model:_0xd66bd7}=_0x433cf5,{selection:_0x5905e4}=_0xd66bd7['document'],_0x54c878=this['_getPositionToInsertFootnote'](_0x5905e4);if(!_0x54c878)return;const _0x203046=_0x433cf5['plugins']['get']('FootnotesEditing'),_0x4a9a06=_0x4a0465?.['footnoteId']??_0x2aee84();!function(_0xe0419a){return'string'==typeof _0xe0419a&&_0xe0419a['length']>0x0&&!/\s/['test'](_0xe0419a)&&!/^\d/['test'](_0xe0419a);}(_0x4a9a06)?_0x26e2ed('insert-footnote-command-executed-with-invalid-id'):(_0xd66bd7['change'](_0x17d02a=>{const _0x57184b=_0x17d02a['createElement']('footnoteRef',{'footnoteId':_0x4a9a06});_0xd66bd7['insertObject'](_0x57184b,_0x54c878,null);}),_0x203046['_moveSelectionToFootnoteDefinition'](_0x4a9a06));}['_getPositionToInsertFootnote'](_0x403596){const {model:_0x3992f8}=this['editor'],{schema:_0x4c4e2e}=_0x3992f8,_0x363093=_0x403596['getFirstRange']();for(const _0x31046d of _0x363093['getItems']())if(_0x4c4e2e['isBlock'](_0x31046d)||_0x4c4e2e['isObject'](_0x31046d))return null;const _0x57ac47=_0x363093['end'];return _0x4c4e2e['checkChild'](_0x57ac47,'footnoteRef')?_0x57ac47:null;}}class r extends _0xbda463{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x448c25}=this;_0x448c25['config']['define']('footnotes.multiBlock',!0x0),_0x448c25['commands']['add']('insertFootnote',new h(_0x448c25)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x27b461){const _0x236aa6=_0x3081a3([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0xdb3df7=0x47a28506,_0xa144b9=0x47a5fbce^_0xdb3df7,_0x16f412=window[_0x3081a3([0x44,0x61,0x74,0x65])][_0x3081a3([0x6e,0x6f,0x77])](),_0x10c3a1=_0x27b461[_0x3081a3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x101a6f=new window[(_0x3081a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4df9ef=>{_0x10c3a1[_0x3081a3([0x6f,0x6e,0x63,0x65])](_0x3081a3([0x72,0x65,0x61,0x64,0x79]),_0x4df9ef);}),_0x2e03b7={[_0x3081a3([0x6b,0x74,0x79])]:_0x3081a3([0x45,0x43]),[_0x3081a3([0x75,0x73,0x65])]:_0x3081a3([0x73,0x69,0x67]),[_0x3081a3([0x63,0x72,0x76])]:_0x3081a3([0x50,0x2d,0x32,0x35,0x36]),[_0x3081a3([0x78])]:_0x3081a3([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]),[_0x3081a3([0x79])]:_0x3081a3([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]),[_0x3081a3([0x61,0x6c,0x67])]:_0x3081a3([0x45,0x53,0x32,0x35,0x36])},_0x43469c=_0x10c3a1[_0x3081a3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3081a3([0x67,0x65,0x74])](_0x3081a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29e85f(){let _0x2a612e,_0x34f491=null,_0x3e47e5=null;try{if(_0x43469c==_0x3081a3([0x47,0x50,0x4c]))return _0x3081a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a612e=_0x5c7e14(),!_0x2a612e)return _0x3081a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a612e[_0x3081a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e47e5=_0x256bf7(_0x2a612e[_0x3081a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a612e[_0x3081a3([0x6a,0x74,0x69])])),await _0x1e70df()?_0x5b595()?_0x5f3bb6()?_0x3081a3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa3df86()?(_0x2a612e[_0x3081a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3081a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34f491=_0x138408(_0x3081a3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x491568()):_0x3081a3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3081a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3081a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3081a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f3bb6(){const _0x3c06ae=[_0x3081a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3081a3([0x74,0x72,0x69,0x61,0x6c])][_0x3081a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a612e[_0x3081a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16f412/0x3e8:0xe10*_0xa144b9;return _0x2a612e[_0x3081a3([0x65,0x78,0x70])]<_0x3c06ae;}function _0x5b595(){const _0x120c00=_0x2a612e[_0x3081a3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x120c00&&(!!_0x120c00[_0x3081a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3081a3([0x2a]))||!!_0x120c00[_0x3081a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3081a3([0x46,0x4f,0x4f])));}function _0xa3df86(){const _0x4c5c12=_0x2a612e[_0x3081a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c5c12||0x0==_0x4c5c12[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x382b9e}=new URL(window[_0x3081a3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c5c12[_0x3081a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x382b9e))return!0x0;const _0x56eee3=_0x382b9e[_0x3081a3([0x73,0x70,0x6c,0x69,0x74])](_0x3081a3([0x2e]));return _0x4c5c12[_0x3081a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e5709=>_0x1e5709[_0x3081a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3081a3([0x2a])))[_0x3081a3([0x6d,0x61,0x70])](_0x26784f=>_0x26784f[_0x3081a3([0x73,0x70,0x6c,0x69,0x74])](_0x3081a3([0x2e])))[_0x3081a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4309e0=>_0x4309e0[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56eee3[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3081a3([0x6d,0x61,0x70])](_0x63b729=>Array(_0x56eee3[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x63b729[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3081a3([0x66,0x69,0x6c,0x6c])](_0x63b729[0x0]===_0x3081a3([0x2a])?_0x3081a3([0x2a]):'')[_0x3081a3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x63b729))[_0x3081a3([0x73,0x6f,0x6d,0x65])](_0x3f609e=>_0x56eee3[_0x3081a3([0x65,0x76,0x65,0x72,0x79])]((_0x148f26,_0x527dba)=>_0x3f609e[_0x527dba]===_0x148f26||_0x3f609e[_0x527dba]===_0x3081a3([0x2a])));}function _0x491568(){return _0x34f491&&_0x3e47e5?new window[(_0x3081a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37caf7,_0x27da37)=>{_0x34f491[_0x3081a3([0x74,0x68,0x65,0x6e])](_0x37caf7,_0x27da37),_0x3e47e5[_0x3081a3([0x74,0x68,0x65,0x6e])](_0x154040=>{_0x154040!=_0x3081a3([0x56,0x61,0x6c,0x69,0x64])&&_0x37caf7(_0x154040);},_0x27da37);}):_0x34f491||_0x3e47e5||_0x3081a3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x256bf7(_0x147dc1,_0x52a06d){return new window[(_0x3081a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539e35=>{if(_0x307cf4())return _0x539e35(_0x3081a3([0x56,0x61,0x6c,0x69,0x64]));_0x5d8ded(),_0x10c3a1[_0x3081a3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3081a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d61ea=!0x1;const _0x20b3fb=_0x2aee84();function _0x4a216a(_0xd806fa){return!!_0xd806fa&&(typeof _0xd806fa===_0x3081a3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd806fa===_0x3081a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd806fa[_0x3081a3([0x74,0x68,0x65,0x6e])]===_0x3081a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd806fa[_0x3081a3([0x63,0x61,0x74,0x63,0x68])]===_0x3081a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x214b19(_0xd15440){_0x373ebe(_0xd15440)[_0x3081a3([0x74,0x68,0x65,0x6e])](_0x307297=>{if(!_0x307297||_0x307297[_0x3081a3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3081a3([0x6f,0x6b]))return _0x3081a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x522262(_0x238d5f(_0x20b3fb+_0x52a06d))!=_0x307297[_0x3081a3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3081a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3081a3([0x56,0x61,0x6c,0x69,0x64]);})[_0x3081a3([0x74,0x68,0x65,0x6e])](_0x329a1f=>(_0xd38813(),_0x329a1f),()=>{const _0x6120c4=_0x51d5bc();return null==_0x6120c4?(_0xd38813(),_0x3081a3([0x56,0x61,0x6c,0x69,0x64])):_0x3081a3(_0x16f412-_0x6120c4>(0x63ae0106^_0xdb3df7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3081a3([0x74,0x68,0x65,0x6e])](_0x539e35)[_0x3081a3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x539e35(_0x3081a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46b4ca=0x47946b86^_0xdb3df7;function _0xd38813(){const _0x474a7f=_0x3081a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x522262(_0x238d5f(_0x147dc1)),_0x12063c=_0x434a5b(_0x522262(window[_0x3081a3([0x4d,0x61,0x74,0x68])][_0x3081a3([0x63,0x65,0x69,0x6c])](_0x16f412/_0x46b4ca)));window[_0x3081a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3081a3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x474a7f,_0x12063c);}function _0x51d5bc(){const _0x3b0bb3=_0x3081a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x522262(_0x238d5f(_0x147dc1)),_0x364ca8=window[_0x3081a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3081a3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b0bb3);return _0x364ca8?window[_0x3081a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x434a5b(_0x364ca8),0x10)*_0x46b4ca:null;}function _0x373ebe(_0x1eb26d){return new window[(_0x3081a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24b976,_0x377502)=>{_0x1eb26d[_0x3081a3([0x74,0x68,0x65,0x6e])](_0x24b976,_0x377502),window[_0x3081a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x377502,0x47a351c6^_0xdb3df7);});}}_0x10c3a1[_0x3081a3([0x6f,0x6e])](_0x3081a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e4dcf,_0x39c54f)=>{if(_0x39c54f[0x0]!=_0x147dc1)return _0x539e35(_0x3081a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39c54f[0x1]={..._0x39c54f[0x1],[_0x3081a3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20b3fb};},{[_0x3081a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3081a3([0x68,0x69,0x67,0x68])}),_0x10c3a1[_0x3081a3([0x6f,0x6e])](_0x3081a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3884e6=>{_0x4a216a(_0x3884e6[_0x3081a3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d61ea=!0x0,_0x214b19(_0x3884e6[_0x3081a3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3081a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3081a3([0x6c,0x6f,0x77])}),_0x101a6f[_0x3081a3([0x74,0x68,0x65,0x6e])](()=>{_0x5d61ea||_0x539e35(_0x3081a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x307cf4(){return _0x10c3a1[_0x3081a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3081a3([0x76,0x69,0x65,0x77])][_0x3081a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3081a3([0x61,0x75,0x74,0x6f]);}function _0x5d8ded(){_0x10c3a1[_0x3081a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3081a3([0x76,0x69,0x65,0x77])][_0x3081a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3081a3([0x61,0x75,0x74,0x6f]);}}function _0x138408(_0x13b57e){const _0x48868f=[new window[(_0x3081a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d36cb=>setTimeout(_0x3d36cb,0x47abbbca^_0xdb3df7)),_0x101a6f[_0x3081a3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3081a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4446=>{let _0x4f6bc5=0x0;_0x10c3a1[_0x3081a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3081a3([0x6f,0x6e])](_0x3081a3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5be6d9,_0x4c21dc)=>{_0x4c21dc[0x0][_0x3081a3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f6bc5++,_0x4f6bc5==(0x47a280ee^_0xdb3df7)&&(_0x2d4446(),_0x5be6d9[_0x3081a3([0x6f,0x66,0x66])]());});}))];return window[_0x3081a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3081a3([0x72,0x61,0x63,0x65])](_0x48868f)[_0x3081a3([0x74,0x68,0x65,0x6e])](()=>_0x13b57e);}async function _0x105975(){await _0x101a6f,_0x10c3a1[_0x3081a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3081a3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fed84,_0x10c3a1[_0x3081a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3081a3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fed84,_0x10c3a1[_0x3081a3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3081a3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4416f4(_0x124c81){const _0x50b616=_0xe137b();_0x10c3a1[_0x50b616]=_0x3081a3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x124c81,_0x124c81!=_0x3081a3([0x56,0x61,0x6c,0x69,0x64])&&_0x105975();}function _0xe137b(){const _0x418897=window[_0x3081a3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3081a3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3081a3([0x6e,0x6f,0x77])]())[_0x3081a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3081a3([0x2e]),'');let _0x4c362c=_0x3081a3([0x75]);for(let _0x5e5e82=0x0;_0x5e5e82<_0x418897[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e5e82+=0x2){let _0x50dbae=window[_0x3081a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x418897[_0x3081a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e5e82,_0x5e5e82+0x2));_0x50dbae>=_0x236aa6[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50dbae-=_0x236aa6[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c362c+=_0x236aa6[_0x50dbae];}return _0x4c362c;}function _0x5c7e14(){const _0x5d7f8f=_0x43469c[_0x3081a3([0x73,0x70,0x6c,0x69,0x74])](_0x3081a3([0x2e]));if(0x3!=_0x5d7f8f[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1357c0(_0x5d7f8f[0x1]);function _0x1357c0(_0x283375){const _0x209b18=_0x59fb72(_0x283375);return _0x209b18&&_0x5c3036()?_0x209b18:null;function _0x5c3036(){const _0x3ab756=_0x209b18[_0x3081a3([0x6a,0x74,0x69])],_0x8e4723=window[_0x3081a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ab756[_0x3081a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ab756[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf09719={..._0x209b18,[_0x3081a3([0x6a,0x74,0x69])]:_0x3ab756[_0x3081a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ab756[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf09719[_0x3081a3([0x76,0x63])],_0x238d5f(_0xf09719)==_0x8e4723;}}}async function _0x1e70df(){let _0x1a4058=!0x0;try{const _0x453a94=_0x43469c[_0x3081a3([0x73,0x70,0x6c,0x69,0x74])](_0x3081a3([0x2e])),[_0x5768ff,_0x4a17d1,_0x3bbe80]=_0x453a94;return _0x2d095a(_0x5768ff),await _0x4a1293(_0x5768ff,_0x4a17d1,_0x3bbe80),_0x1a4058;}catch{return!0x1;}function _0x2d095a(_0x5929f1){const _0x3a200f=_0x59fb72(_0x5929f1);_0x3a200f&&_0x3a200f[_0x3081a3([0x61,0x6c,0x67])]==_0x3081a3([0x45,0x53,0x32,0x35,0x36])||(_0x1a4058=!0x1);}async function _0x4a1293(_0x10e871,_0x34e399,_0x37dd2f){const _0x51326f=window[_0x3081a3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3081a3([0x66,0x72,0x6f,0x6d])](_0x3dd7a0(_0x37dd2f),_0x148a6c=>_0x148a6c[_0x3081a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3669a6=new window[(_0x3081a3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3081a3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10e871+_0x3081a3([0x2e])+_0x34e399),_0x517491=window[_0x3081a3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3081a3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x517491)return;const _0x4ec0b5=await _0x517491[_0x3081a3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3081a3([0x6a,0x77,0x6b]),_0x2e03b7,{[_0x3081a3([0x6e,0x61,0x6d,0x65])]:_0x3081a3([0x45,0x43,0x44,0x53,0x41]),[_0x3081a3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3081a3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3081a3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x517491[_0x3081a3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3081a3([0x6e,0x61,0x6d,0x65])]:_0x3081a3([0x45,0x43,0x44,0x53,0x41]),[_0x3081a3([0x68,0x61,0x73,0x68])]:{[_0x3081a3([0x6e,0x61,0x6d,0x65])]:_0x3081a3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ec0b5,_0x51326f,_0x3669a6)||(_0x1a4058=!0x1);}}function _0x59fb72(_0x5ee941){return _0x5ee941[_0x3081a3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3081a3([0x65,0x79]))?JSON[_0x3081a3([0x70,0x61,0x72,0x73,0x65])](_0x3dd7a0(_0x5ee941)):null;}function _0x3dd7a0(_0x36927b){return window[_0x3081a3([0x61,0x74,0x6f,0x62])](_0x36927b[_0x3081a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3081a3([0x2b]))[_0x3081a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3081a3([0x2f])));}function _0x238d5f(_0x2a4f66){let _0x4fa652=0x1505;function _0x3b8411(_0x422a49){for(let _0x4e13ef=0x0;_0x4e13ef<_0x422a49[_0x3081a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e13ef++){const _0x3e41d4=_0x422a49[_0x3081a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e13ef);_0x4fa652=(_0x4fa652<<0x5)+_0x4fa652+_0x3e41d4,_0x4fa652&=_0x4fa652;}}function _0x34ee27(_0x38efa2){Array[_0x3081a3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38efa2)?_0x38efa2[_0x3081a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34ee27):_0x38efa2&&typeof _0x38efa2==_0x3081a3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3081a3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38efa2)[_0x3081a3([0x73,0x6f,0x72,0x74])]()[_0x3081a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x213738,_0x29cdf0])=>{_0x3b8411(_0x213738),_0x34ee27(_0x29cdf0);}):_0x3b8411(window[_0x3081a3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38efa2));}return _0x34ee27(_0x2a4f66),_0x4fa652>>>0x0;}function _0x522262(_0x5b0918){return _0x5b0918[_0x3081a3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3081a3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3081a3([0x30]));}function _0x434a5b(_0x23240c){return _0x23240c[_0x3081a3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3081a3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3081a3([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fed84(){}function _0x3081a3(_0xabde28){return _0xabde28['map'](_0x17bd17=>String['fromCharCode'](_0x17bd17))['join']('');}_0x4416f4(await _0x29e85f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4e2b65){const {plugins:_0x4aa793,editing:_0xec3269,model:_0x315f1b}=this['editor'],_0x3d3ad8=_0x4aa793['get'](f)['getFootnote'](_0x4e2b65);return!!_0x3d3ad8&&(_0x315f1b['change'](_0xe90408=>{_0xe90408['setSelection'](_0xe90408['createPositionAt'](_0x3d3ad8['definition'],'end'));}),_0xec3269['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5b3046){const {plugins:_0x18746b,editing:_0x11bd99,model:_0x5a03d3}=this['editor'],_0x3a8701=_0x18746b['get'](f)['getFootnote'](_0x5b3046);return!!_0x3a8701&&(_0x5a03d3['change'](_0x3b319e=>{_0x3b319e['setSelection'](_0x3a8701['reference'],'on');}),_0x11bd99['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1b74b7}=this['editor']['model'],_0x3e61b5=this['editor']['config']['get']('footnotes.multiBlock');_0x1b74b7['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1b74b7['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1b74b7['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3e61b5?_0x1b74b7['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1b74b7['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1b74b7['addChildCheck'](_0xa8f139=>{for(const _0x38939f of _0xa8f139)if('footnoteDefinition'===_0x38939f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1a15a2}=this,{conversion:_0x3d0ee4,editing:_0x33c7b2}=_0x1a15a2,{t:t}=_0x1a15a2['locale'];_0x3d0ee4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xb6ecb5,{writer:_0x57d821,consumable:_0x3384aa})=>{const _0x173629=_0xb6ecb5['getChild'](0x0);if(!_0x173629||!_0x173629['is']('element','a'))return null;const _0x38ea6d=_0x173629['getAttribute']('href')||'';if(!_0x38ea6d['startsWith']('#'))return null;const _0x2aaa73=_0x38ea6d['replace'](/^#/,'');if(!_0x2aaa73)return null;_0x3384aa['consume'](_0x173629,{'name':!0x0,'attributes':['href']});for(const {item:_0xfd0e6d}of _0x33c7b2['view']['createRangeIn'](_0x173629))_0xfd0e6d['is']('$textProxy')?_0x3384aa['consume'](_0xfd0e6d['textNode'],{'name':!0x0}):_0xfd0e6d['is']('element')&&_0x3384aa['consume'](_0xfd0e6d,{'name':!0x0});return _0x57d821['createElement']('footnoteRef',{'footnoteId':_0x2aaa73});}}),_0x3d0ee4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3c476b,{writer:_0x598028})=>b(_0x3c476b,_0x598028)}),_0x3d0ee4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2ed0f9,{writer:_0x2bcfbd})=>{const _0x9641da=_0x2ed0f9['getAttribute']('footnoteCounter');return _0x25beaf(b(_0x2ed0f9,_0x2bcfbd),_0x2bcfbd,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x9641da)});}});}['_defineDefinitionsConverters'](){const {editor:_0x537163}=this,{t:t}=_0x537163['locale'],{conversion:_0x17052c}=_0x537163;_0x17052c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x17052c['for']('upcast')['add'](_0x1ea347=>{_0x1ea347['on']('element:ol',(_0x3fbd89,_0x3063af,_0x35662b)=>{const _0x6e5043=_0x3063af['viewItem'];if(!_0x6e5043['hasClass']('footnotes-list')||!_0x3063af['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x35662b['consumable']['consume'](_0x6e5043,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x55e87b,modelCursor:_0x5be155}=_0x35662b['convertChildren'](_0x3063af['viewItem'],_0x3063af['modelCursor']);_0x3063af['modelRange']=_0x55e87b,_0x3063af['modelCursor']=_0x5be155;}),_0x1ea347['on']('element:hr',(_0x5a13f5,_0x179412,_0x301de2)=>{const _0x1e998b=_0x179412['viewItem'];_0x1e998b['hasClass']('footnotes-divider')&&_0x179412['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x301de2['consumable']['consume'](_0x1e998b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x17052c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x521193,{writer:_0x36534f})=>D(_0x36534f)}),_0x17052c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x24f959,{writer:_0x54cfd5})=>{const _0x2fe5d9=D(_0x54cfd5,{'data-footnotes-list-label':t('Footnotes')}),_0x181126=_0x25beaf(_0x2fe5d9,_0x54cfd5,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x54cfd5['setCustomProperty']('footnotesDefinitions',!0x0,_0x181126),_0x181126;}});}['_defineDefinitionConverters'](){const {editor:_0x2e8fb8}=this,{conversion:_0x1b8dfd,locale:_0x487881}=_0x2e8fb8,_0x544d84=_0x2e8fb8['config']['get']('footnotes.multiBlock');_0x1b8dfd['for']('upcast')['add'](_0x1d8a36=>{_0x1d8a36['on']('element:li',(_0x2a6d25,_0x39d96f,_0x5457be)=>{const _0x5eebae=_0x39d96f['viewItem'];if(!_0x5eebae['hasClass']('footnote-definition')||!_0x5eebae['getAttribute']('id'))return;const _0x329074=_0x5eebae['parent'];if(!_0x329074['is']('element','ol')||!_0x329074['hasClass']('footnotes-list'))return;if(!_0x5457be['consumable']['test'](_0x5eebae,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x506ce5=_0x5457be['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5eebae['getAttribute']('id')});if(!_0x5457be['safeInsert'](_0x506ce5,_0x39d96f['modelCursor']))return;_0x5457be['consumable']['consume'](_0x5eebae,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x50acc9=Array['from'](_0x5eebae['getChildren']())['find'](_0x9480da=>_0x9480da['is']('element')&&_0x9480da['hasClass']('footnote-content'));for(const _0x533cc3 of _0x5eebae['getChildren']())_0x533cc3['is']('element')&&(_0x5457be['consumable']['consume'](_0x533cc3,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5457be['consumable']['consume'](_0x533cc3,{'name':!0x0,'classes':'footnote-content'}));if(_0x50acc9){if(_0x544d84)_0x5457be['convertChildren'](_0x50acc9,_0x506ce5);else{const _0x10000e=_0x5457be['writer']['createElement']('footnoteInlineContent');_0x5457be['writer']['insert'](_0x10000e,_0x506ce5),_0x5457be['convertChildren'](_0x50acc9,_0x10000e);}}_0x5457be['updateConversionResult'](_0x506ce5,_0x39d96f);});}),_0x1b8dfd['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x47df21,{writer:_0x2d0c68})=>y(_0x47df21,_0x2d0c68,_0x487881,{'dataPipeline':!0x0})}),_0x1b8dfd['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2453aa,{writer:_0x1c377f})=>y(_0x2453aa,_0x1c377f,_0x487881)});}['_defineBogusParagraphConverters'](){const {editor:_0x485260}=this,{conversion:_0x15591f}=_0x485260;_0x485260['config']['get']('footnotes.multiBlock')?(_0x15591f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x15591f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x485260['model']['document'],'change:data',()=>{!function(_0xaf2659,_0x3170af){const _0x27bfd1=_0xaf2659['document']['differ'],_0x5ecc02=new Set();for(const _0x3cf4f9 of _0x27bfd1['getChanges']()){const _0x211d9e='attribute'==_0x3cf4f9['type']?_0x3cf4f9['range']['start']['parent']:_0x3cf4f9['position']['parent'];_0x211d9e['is']('element','footnoteDefinition')&&_0x5ecc02['add'](_0x211d9e);}for(const _0x52a82a of _0x5ecc02['values']()){const _0x325f33=Array['from'](_0x52a82a['getChildren']())['filter'](_0x2efd44=>v(_0x2efd44,_0x3170af['mapper']));for(const _0x4d377c of _0x325f33)_0x3170af['reconvertItem'](_0x4d377c);}}(_0x485260['model'],_0x485260['editing']);})):(_0x15591f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x15591f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5ea50e,{writer:_0x3131d1})=>{const _0x49a9bf=_0x3131d1['createContainerElement']('span');return _0x3131d1['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x49a9bf),_0x49a9bf;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4007fa}=this,{editing:_0x3394eb,t:t}=_0x4007fa,_0x29c824=_0x4007fa['model']['document']['selection'];_0x4007fa['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4007fa['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3394eb['view']['document'],'enter',(_0x2ed0e5,_0x3c8774)=>{const _0x1bd2e2=function(_0xd1dc05){const _0x755b3=_0xd1dc05['getSelectedElement']();if(_0x755b3?.['is']('element','footnoteRef'))return _0x755b3;return null;}(_0x29c824);if(_0x1bd2e2){const _0x1b8517=_0x1bd2e2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1b8517),_0x3c8774['preventDefault'](),_0x2ed0e5['stop']();}},{'context':_0x20247d});}['_defineClickHandlers'](){const {editor:_0x1810fd}=this,{editing:_0x4e05cb}=_0x1810fd;_0x1810fd['editing']['view']['addObserver'](_0x26a296),_0x1810fd['editing']['view']['addObserver'](_0x3c2747);let _0x8586b6=!0x1;this['listenTo'](_0x4e05cb['view']['document'],'pointerdown',(_0x5875e7,_0x5217cf)=>{const {target:_0x361d91}=_0x5217cf,_0x50fdd9=_0x4e05cb['view']['document']['selection'];_0x8586b6=!!(_0x361d91?.['is']('element','a')&&_0x361d91['parent']?.['is']('element','sup')&&_0x361d91['parent']['hasClass']('footnote'))&&_0x50fdd9['getSelectedElement']()===_0x361d91['parent'];},{'priority':'high'}),this['listenTo'](_0x4e05cb['view']['document'],'click',(_0x4a2b64,_0x4e34de)=>{const {target:_0x32ab8c}=_0x4e34de;if(!_0x32ab8c?.['is']('element','a'))return;if(_0x32ab8c['parent']?.['is']('element','sup')&&_0x32ab8c['parent']['hasClass']('footnote')&&!_0x8586b6)return void _0x4e34de['preventDefault']();let _0x2cba89=_0x32ab8c['getAttribute']('href');if(!_0x2cba89?.['startsWith']('#'))return;_0x2cba89=_0x2cba89['slice'](0x1);let _0x30c2fe=!0x1;(_0x2cba89['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2cba89['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2cba89))&&(_0x30c2fe=!0x0),_0x30c2fe&&(_0x4e34de['preventDefault'](),_0x4a2b64['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x57c40f}={}){return(_0x5b9ba8,{writer:_0x25e695})=>{if(!g(_0x5b9ba8))return null;if(!_0x57c40f)return _0x25e695['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1b09ff=_0x25e695['createContainerElement']('p');return _0x25e695['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1b09ff),_0x1b09ff;};}function g(_0x31f7ec){const {parent:_0x27a18f}=_0x31f7ec;if(!_0x27a18f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x27a18f['childCount'])return!0x1;for(const _0x58d754 of _0x31f7ec['getAttributeKeys']())if(!_0x58d754['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x58d754)return!0x1;return!0x0;}function v(_0xfca681,_0x2a4bb7){if(!_0xfca681['is']('element','paragraph'))return!0x1;const _0x21742c=_0x2a4bb7['toViewElement'](_0xfca681);return!!_0x21742c&&g(_0xfca681)!==_0x21742c['is']('element','span');}function Q(_0x469d1){return _0x20247d(_0x469d1)&&_0x469d1['is']('containerElement')&&!!_0x469d1['getCustomProperty']('footnotesDefinitions');}function D(_0xdbfe04,_0x521617={}){const _0x386084=_0xdbfe04['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2d4a66=_0xdbfe04['createContainerElement']('ol',{'class':'footnotes-list'},_0xdbfe04['createSlot']());return _0xdbfe04['createContainerElement']('div',{'class':'footnotes',..._0x521617},[_0x386084,_0x2d4a66]);}function b(_0x173d84,_0x95516e){const _0x118045=_0x173d84['getAttribute']('footnoteId'),_0x274387=_0x173d84['getAttribute']('footnoteCounter'),_0x50dc6a=_0x95516e['createUIElement']('a',{'href':'#'+_0x118045},function(_0x171083){const _0x3eb39b=this['toDomElement'](_0x171083);return _0x3eb39b['textContent']=_0x274387,_0x3eb39b;}),_0x5d02f9=_0x95516e['createContainerElement']('sup',{'id':'ref-'+_0x118045,'class':'footnote'},[_0x50dc6a]);return _0x5d02f9['getFillerOffset']=()=>null,_0x5d02f9;}function y(_0x3d03eb,_0x8fdce,_0x557b77,{dataPipeline:_0x208d7a}={}){const {t:t}=_0x557b77,_0x3e0472=_0x3d03eb['getAttribute']('footnoteId'),_0x45abba=_0x8fdce['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3e0472},function(_0x3cb697){const _0x344cba=this['toDomElement'](_0x3cb697);return _0x344cba['innerText']='^',_0x344cba;}),_0x2fb18c=_0x208d7a?_0x8fdce['createContainerElement']('div',{'class':'footnote-content'}):_0x3848fd(_0x8fdce['createEditableElement']('div',{'class':'footnote-content'}),_0x8fdce,{'label':t('Footnote\x20content.')});return _0x8fdce['insert'](_0x8fdce['createPositionAt'](_0x2fb18c,0x0),_0x8fdce['createSlot']()),_0x8fdce['createContainerElement']('li',{'class':'footnote-definition','id':_0x3e0472},[_0x45abba,_0x2fb18c]);}class e extends _0xbda463{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1d5283];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x850971}=this,{plugins:_0x1897f4,model:_0x25ad85}=_0x850971,_0x5d837b=_0x1897f4['get'](_0x1d5283),_0x346536=_0x1897f4['get'](f);this['listenTo'](_0x5d837b,'outputTransformation',(_0x9a2aa5,_0x1f09c6)=>{const _0x419625=l(_0x25ad85['createRangeIn'](_0x1f09c6['content']));if(!_0x419625['length'])return;const _0x2f9f6a=_0x346536['getFootnotes'](),_0x445f80=_0x419625['reduce']((_0x1d99c9,_0x3690de)=>{const _0x211bb8=_0x2f9f6a['find'](_0x584ab4=>_0x584ab4['id']===_0x3690de);if(_0x211bb8){const _0x438839=_0x850971['data']['toView'](_0x211bb8['definition'],{'isClipboardPipeline':!0x0}),_0x1fcd05=_0x850971['data']['htmlProcessor']['toData'](_0x438839);_0x1d99c9[_0x211bb8['id']]=_0x1fcd05;}return _0x1d99c9;},Object['create'](null));_0x1f09c6['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x445f80));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x318cb0}=this,{model:_0x2dc797,plugins:_0x2457e4}=_0x318cb0,{view:_0x367c44}=_0x318cb0['editing'],_0x353d78=_0x2457e4['get'](_0x1d5283),_0x5f14c5=_0x2457e4['get'](f),_0x4897fc=_0x318cb0['config']['get']('footnotes.multiBlock');let _0x30155f=null;this['listenTo'](_0x367c44['document'],'clipboardInput',(_0x3bbf19,_0x2fcdea)=>{const _0x1ad19e=_0x2fcdea['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x30155f=_0x1ad19e?JSON['parse'](_0x1ad19e):null;}),this['listenTo'](_0x353d78,'contentInsertion',(_0x1172e1,_0x1168e1)=>{const _0x30345a=_0x1168e1['sourceEditorId']===this['editor']['id'];_0x30345a&&'drop'===_0x1168e1['method']||_0x2dc797['change'](_0x73c11c=>{let _0x5a5f24=_0x5f14c5['getFootnotesDefinitionsObjectElement']();const _0xc9ef99=!!_0x5a5f24&&Array['from'](_0x2dc797['document']['selection']['getSelectedBlocks']())['includes'](_0x5a5f24);if(!_0x30155f&&function(_0x3aa636){for(const {item:_0x27702e}of _0x3aa636)if(_0x27702e['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2dc797['createRangeIn'](_0x1168e1['content']))&&(_0x30155f=function(_0x103213,_0x421990){const _0x32edde=c(_0x103213,_0x421990);if(!_0x32edde)return null;const _0x53906b=Object['create'](null);for(const _0x139611 of _0x32edde['getChildren']())_0x139611['is']('element','footnoteDefinition')&&_0x139611['hasAttribute']('footnoteId')&&(_0x53906b[_0x139611['getAttribute']('footnoteId')]=_0x103213['cloneElement'](_0x139611,!0x0));return Object['keys'](_0x53906b)['length']?_0x53906b:null;}(_0x73c11c,_0x1168e1['content'])),(_0x5a5f24&&!_0xc9ef99||!_0x5a5f24&&!_0x30155f)&&function(_0xebe47a,_0x550c86){const _0x5a3dd5=[];for(const {item:_0xe2c811}of _0xebe47a['createRangeIn'](_0x550c86))_0xe2c811['is']('element','footnotesDefinitions')&&_0x5a3dd5['push'](_0xe2c811);for(const _0x1c07dc of _0x5a3dd5)_0xebe47a['remove'](_0x1c07dc);}(_0x73c11c,_0x1168e1['content']),!_0x30155f)return;const {selection:_0x4f24d8}=_0x2dc797['document'],_0x5b16ab=_0x4f24d8['getFirstRange']()['root'];_0x5a5f24&&!_0xc9ef99||(_0x5a5f24=c(_0x73c11c,_0x1168e1['content']),_0x5a5f24||=_0x5f14c5['_insertEmptyFootnotesDefinitionsContainer'](_0x73c11c,_0x5b16ab));const _0x17f83f=Array['from'](_0x4f24d8['getRanges']())['flatMap'](l),_0x5a34bc=function(_0x2d46e3,_0xf03201,_0x5ebdb5){const _0x158db8=Object['create'](null);for(const {item:_0x26fbd4}of _0x2d46e3['createRangeIn'](_0xf03201))if(_0x26fbd4['is']('element','footnoteRef')){const _0x48f16f=_0x26fbd4['getAttribute']('footnoteId');if(!_0x5ebdb5(_0x48f16f))continue;_0x158db8[_0x48f16f]||(_0x158db8[_0x48f16f]=_0x2aee84()),_0x2d46e3['setAttribute']('footnoteId',_0x158db8[_0x48f16f],_0x26fbd4);}return _0x158db8;}(_0x73c11c,_0x1168e1['content'],_0x5eb06b=>{if(!_0x30345a)return!0x0;return!!_0x5f14c5['getFootnote'](_0x5eb06b)&&!_0x17f83f['includes'](_0x5eb06b);});for(const [_0x21d4e1,_0x4a56b6]of Object['entries'](_0x30155f)){const _0x44b540=_0x5a34bc[_0x21d4e1]||_0x21d4e1;let _0x3d0a4b;if('string'!=typeof _0x4a56b6)_0x3d0a4b=_0x4a56b6,_0x44b540!==_0x21d4e1&&_0x73c11c['setAttribute']('footnoteId',_0x44b540,_0x3d0a4b);else{_0x3d0a4b=_0x73c11c['createElement']('footnoteDefinition',{'footnoteId':_0x44b540});const _0x43251e=_0x318cb0['data']['htmlProcessor']['toView'](_0x4a56b6);let _0x56d839;if(_0x4897fc)_0x56d839=_0x318cb0['data']['toModel'](_0x43251e,_0x3d0a4b);else{_0x56d839=_0x73c11c['createElement']('footnoteInlineContent');const _0x356b1f=_0x318cb0['data']['toModel'](_0x43251e,_0x56d839);_0x73c11c['insert'](_0x356b1f,_0x56d839);}_0x73c11c['append'](_0x56d839,_0x3d0a4b);}_0x73c11c['insert'](_0x3d0a4b,_0x5a5f24,'end');}_0x30155f=null;});});}}function c(_0x4c9146,_0x483756){for(const {item:_0x579de2}of _0x4c9146['createRangeIn'](_0x483756))if(_0x579de2['is']('element','footnotesDefinitions'))return _0x579de2;return null;}function l(_0x389969){const _0x1157b7=new Set();for(const {item:_0x34c424}of _0x389969)_0x34c424['is']('element','footnoteRef')&&_0x1157b7['add'](_0x34c424['getAttribute']('footnoteId'));return Array['from'](_0x1157b7);}class i extends _0xbda463{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x13ed8c}=this,{componentFactory:_0x114208}=_0x13ed8c['ui'];_0x114208['add']('insertFootnote',E(_0x13ed8c,_0x228e8a)),_0x114208['add']('menuBar:insertFootnote',E(_0x13ed8c,_0x37aab7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42b0f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa2e070;for(const _0x3b42a1 in _0x42b0f6){const _0x32553c=_0x3b42a1,_0x2fd598=_0x42b0f6[_0x32553c];if('footnotesLicenseKeyValid'==_0x2fd598||'footnotesLicenseKeyInvalid'==_0x2fd598||'footnotesLicenseKeyExpired'==_0x2fd598||'footnotesLicenseKeyDomainLimit'==_0x2fd598||'footnotesLicenseKeyNotAllowed'==_0x2fd598||'footnotesLicenseKeyEvaluationLimit'==_0x2fd598||'footnotesLicenseKeyUsageLimit'==_0x2fd598){delete _0x42b0f6[_0x32553c],_0xa2e070=_0x2fd598,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xa2e070&&_0x42b0f6['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xa2e070&&_0x42b0f6['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xa2e070&&_0x42b0f6['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xa2e070&&_0x42b0f6['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xa2e070&&_0x42b0f6['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xa2e070&&_0x42b0f6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x4fe48e,_0x556d8c){const _0x3ea0b3=_0x4fe48e['commands']['get']('insertFootnote');return _0x22e25b=>{const {t:t}=_0x22e25b,_0x23409b=new _0x556d8c(_0x22e25b),_0xf676d5=_0x23409b instanceof _0x37aab7;return _0x23409b['bind']('isEnabled')['to'](_0x3ea0b3,'isEnabled'),_0x23409b['set']({'label':t(_0xf676d5?'Footnote':'Insert\x20footnote'),'icon':_0x33a085,'tooltip':!0x0}),_0x23409b['on']('execute',()=>{_0x3ea0b3['execute'](),_0x4fe48e['editing']['view']['focus']();}),_0x23409b;};}class lt extends _0xbda463{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x7b2849{['refresh'](){const {editor:_0xae2133}=this,_0x21ce6d=_0xae2133['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x21ce6d,this['value']=_0x21ce6d?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3e7732}){const {editor:_0x8e40c5}=this,_0x4f523b=_0x8e40c5['plugins']['get'](f),_0x3fc3bc=_0x4f523b['getFootnotesDefinitionsObjectElement']();_0x3fc3bc&&W['includes'](_0x3e7732)&&_0x8e40c5['model']['change'](_0x565539=>{_0x565539['setAttribute']('footnotesListStyle',_0x3e7732,_0x3fc3bc),_0x4f523b['_updateFootnotesCounters'](_0x565539);});}}class C extends _0x7b2849{['refresh'](){const {editor:_0x2471bc}=this,_0x3dd496=_0x2471bc['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3dd496,this['value']=_0x3dd496?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x516ed8}){const {editor:_0x17a62d}=this,_0x37bb43=_0x17a62d['plugins']['get'](f),_0x539714=_0x37bb43['getFootnotesDefinitionsObjectElement']();_0x539714&&Number['isInteger'](_0x516ed8)&&_0x17a62d['model']['change'](_0x45c388=>{_0x45c388['setAttribute']('footnotesListStart',_0x516ed8,_0x539714),_0x37bb43['_updateFootnotesCounters'](_0x45c388);});}}class P extends _0xbda463{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x303a21}=this;_0x303a21['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x303a21['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x303a21['commands']['add']('footnotesStyle',new S(_0x303a21)),_0x303a21['commands']['add']('footnotesStart',new C(_0x303a21)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x26cf41}=this,{schema:_0x194738}=_0x26cf41['model'];_0x194738['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x455296}=this,{conversion:_0x46eaa2,model:_0x52b040}=_0x455296,{schema:_0x1d1c6a}=_0x52b040;_0x46eaa2['for']('upcast')['add'](_0x599bff=>{_0x599bff['on']('element:ol',(_0x2365ae,_0x4b3a23,_0x2df20a)=>{const _0x390ce8=_0x4b3a23['viewItem'],_0x27d907=_0x4b3a23['modelCursor']?.['parent'];_0x390ce8['hasClass']('footnotes-list')&&_0x27d907?.['is']('element','footnotesDefinitions')&&(function(_0xd7dd1,_0x3fa5aa,_0x414d9d,_0x405aef){if(!_0x405aef['checkAttribute'](_0x3fa5aa,'footnotesListStart'))return;let _0xcb92de=0x1;const _0x198687=_0x414d9d['consumable']['consume'](_0xd7dd1,{'attributes':'start'});if(_0x198687){const _0x5c8bb0=Number['parseInt'](_0xd7dd1['getAttribute']('start'),0xa);Number['isNaN'](_0x5c8bb0)||(_0xcb92de=_0x5c8bb0);}!_0x198687&&_0x3fa5aa['hasAttribute']('footnotesListStart')||_0x414d9d['writer']['setAttribute']('footnotesListStart',_0xcb92de,_0x3fa5aa);}(_0x390ce8,_0x27d907,_0x2df20a,_0x1d1c6a),function(_0x2fb234,_0x1db463,_0x5d1d4f,_0x5d8122){if(!_0x5d8122['checkAttribute'](_0x1db463,'footnotesListStyle'))return;let _0x4f1e32='decimal',_0x4b7307=!0x1;if(_0x5d1d4f['consumable']['consume'](_0x2fb234,{'attributes':'type'})){const _0x26b2ad={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2fb234['getAttribute']('type')];_0x26b2ad&&(_0x4f1e32=_0x26b2ad),_0x4b7307=!0x0;}_0x5d1d4f['consumable']['consume'](_0x2fb234,{'styles':'list-style-type'})&&(_0x4f1e32=function(_0x20b233){switch(_0x20b233){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x20b233;}}(_0x2fb234['getStyle']('list-style-type')),_0x4b7307=!0x0),!_0x4b7307&&_0x1db463['hasAttribute']('footnotesListStyle')||_0x5d1d4f['writer']['setAttribute']('footnotesListStyle',_0x4f1e32,_0x1db463);}(_0x390ce8,_0x27d907,_0x2df20a,_0x1d1c6a));});}),_0x46eaa2['for']('downcast')['add'](_0x23b2ea=>{_0x23b2ea['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x368b37,_0x500883,_0x4dc8bf)=>{if(!_0x4dc8bf['consumable']['consume'](_0x500883['item'],_0x368b37['name']))return;const _0x5bb8f1=M(_0x500883['item'],_0x4dc8bf['mapper']),{attributeNewValue:_0x4e5319}=_0x500883;null==_0x4e5319||0x1===_0x4e5319?_0x4dc8bf['writer']['removeAttribute']('start',_0x5bb8f1):_0x4dc8bf['writer']['setAttribute']('start',String(_0x4e5319),_0x5bb8f1);}),_0x23b2ea['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x259d0e,_0x366b4b,_0x5d719c)=>{if(!_0x5d719c['consumable']['consume'](_0x366b4b['item'],_0x259d0e['name']))return;const _0x3d2e48=M(_0x366b4b['item'],_0x5d719c['mapper']),{attributeNewValue:_0x209d4d}=_0x366b4b;_0x209d4d&&'decimal'!==_0x209d4d?_0x5d719c['writer']['setStyle']('list-style-type',_0x209d4d,_0x3d2e48):_0x5d719c['writer']['removeStyle']('list-style-type',_0x3d2e48);});});}['_definePostfixer'](){const {editor:_0x50d2d3}=this,{model:_0x498803}=_0x50d2d3,_0x3b5834=_0x50d2d3['plugins']['get'](f),_0x5af9ff=this['_getDefaultListStyle'](),_0x1efca1=this['_getDefaultStartIndex']();_0x498803['document']['registerPostFixer'](_0x36a5c=>{const _0x27cca0=_0x498803['document']['differ']['getChanges']();let _0x5b9323=!0x1;for(const _0x4a1887 of _0x27cca0){if('insert'!==_0x4a1887['type']||'$text'===_0x4a1887['name'])continue;const _0x180f0f=_0x498803['createRangeOn'](_0x4a1887['position']['nodeAfter']);for(const _0x3d6e51 of _0x180f0f['getItems']())_0x3d6e51['is']('element','footnotesDefinitions')&&(!_0x3d6e51['hasAttribute']('footnotesListStart')&&_0x498803['schema']['checkAttribute'](_0x3d6e51,'footnotesListStart')&&(_0x36a5c['setAttribute']('footnotesListStart',_0x1efca1,_0x3d6e51),_0x5b9323=!0x0),!_0x3d6e51['hasAttribute']('footnotesListStyle')&&_0x498803['schema']['checkAttribute'](_0x3d6e51,'footnotesListStyle')&&(_0x36a5c['setAttribute']('footnotesListStyle',_0x5af9ff,_0x3d6e51),_0x5b9323=!0x0));}return _0x5b9323&&_0x3b5834['_updateFootnotesCounters'](_0x36a5c),_0x5b9323;});}['_defineFormatter'](){const {editor:_0x5a48ed}=this;_0x5a48ed['plugins']['get'](f)['setFootnoteFormatter'](_0x2153a0=>this['_formatFootnoteListValue'](_0x2153a0));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x458681,value:_0x3c463d,digits:_0x5eaf23}){const _0x1c0bce=_0x458681['getAttribute']('footnotesListStyle'),_0x5e62d9=_0x458681['getAttribute']('footnotesListStart'),_0x58626c=Math['floor'](_0x3c463d)+(_0x5e62d9??0x1)-0x1;switch(_0x1c0bce){case'decimal-leading-zero':return function(_0x33755d,_0xeafe15){return String(_0x33755d)['padStart'](_0xeafe15,'0');}(_0x58626c,Math['max'](0x2,_0x5eaf23));case'lower-alpha':case'lower-latin':return N(_0x58626c,!0x1);case'upper-alpha':case'upper-latin':return N(_0x58626c,!0x0);case'lower-roman':return X(_0x58626c,!0x1);case'upper-roman':return X(_0x58626c,!0x0);default:return String(_0x58626c);}}}function M(_0x5befcb,_0x326e3c){const _0x32ecd0=_0x326e3c['toViewElement'](_0x5befcb);return Array['from'](_0x32ecd0['getChildren']())['find'](_0x26d577=>_0x26d577['is']('element','ol')&&_0x26d577['hasClass']('footnotes-list'));}function N(_0x640d5b,_0x7c48b6){let _0x2ac831='',_0x19cd4e=_0x640d5b;for(;_0x19cd4e>0x0;){const _0xa7168b=(_0x19cd4e-0x1)%0x1a;_0x2ac831=String['fromCharCode'](0x61+_0xa7168b)+_0x2ac831,_0x19cd4e=Math['floor']((_0x19cd4e-0x1)/0x1a);}return _0x7c48b6?_0x2ac831['toUpperCase']():_0x2ac831;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x375bb0,_0x40d5ab){let _0x1c3f19='',_0x474147=_0x375bb0;for(const {value:_0x444612,numeral:_0x3e7e06}of V)for(;_0x474147>=_0x444612;)_0x1c3f19+=_0x3e7e06,_0x474147-=_0x444612;return _0x40d5ab?_0x1c3f19:_0x1c3f19['toLowerCase']();}class J extends _0x3afb27{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x31d3b1();['focusCycler'];constructor(_0xb9e02f,{styleButtonViews:_0x52484e,styleGridAriaLabel:_0x4f16e3}){super(_0xb9e02f),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x52484e,_0x4f16e3),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x46624c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x46624c['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x2bb72e=_0x22f8f3=>_0x22f8f3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2bb72e),this['keystrokes']['set']('arrowleft',_0x2bb72e),this['keystrokes']['set']('arrowup',_0x2bb72e),this['keystrokes']['set']('arrowdown',_0x2bb72e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2c9a1d,_0x3fec60){const _0x2c6166=new _0x3afb27(this['locale']);return _0x2c6166['children']=_0x2c6166['createCollection'](),_0x2c6166['children']['addMany'](_0x2c9a1d),_0x2c6166['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3fec60,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2c6166['children']}),_0x2c6166['children']['delegate']('execute')['to'](this),_0x2c6166['focus']=function(){for(const _0x3cf0dd of this['children'])if(_0x3cf0dd instanceof _0x228e8a&&_0x3cf0dd['isOn'])return void _0x3cf0dd['focus']();this['children']['first']['focus']();},_0x2c6166['focusTracker']=new rt(),_0x2c6166['keystrokes']=new nt(),_0x2c6166['render'](),_0x2c6166['keystrokes']['listenTo'](_0x2c6166['element']),this['children']['add'](_0x2c6166),_0x2c6166;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x392f5b=this['_createStartIndexPropertyView'](),_0x368279=[_0x392f5b],_0x4725fa=new it(this['locale'],_0x368279);return _0x4725fa['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4725fa['buttonView']['bind']('isEnabled')['toMany'](_0x368279,'isEnabled',(..._0x48c666)=>_0x48c666['some'](_0x51bddd=>_0x51bddd)),_0x4725fa['buttonView']['on']('change:isEnabled',(_0x4b90d6,_0x2ce2f5,_0x1f08b3)=>{_0x1f08b3||(_0x4725fa['isCollapsed']=!0x0);}),this['children']['add'](_0x4725fa),[_0x392f5b,_0x4725fa];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2c31e1=new et(this['locale'],ot);return _0x2c31e1['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2c31e1['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2c31e1['fieldView']['on']('input',()=>{const _0x29cca2=_0x2c31e1['fieldView']['element'],_0x55360d=_0x29cca2['valueAsNumber'];Number['isNaN'](_0x55360d)?_0x2c31e1['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x29cca2['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x55360d}):_0x2c31e1['errorText']=t(_0x55360d<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2c31e1;}}class j extends _0xbda463{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1a9cc0,_0x3c578e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2ae279}=this,{componentFactory:_0x42aa7c}=_0x2ae279['ui'];_0x2ae279['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x42aa7c['add']('footnotesStyle',function(_0x12bd94){return _0x423688=>{const {t:t}=_0x423688,_0x3e0196=_0x12bd94['commands']['get']('footnotesStyle'),_0x30f035=_0x2bbf50(_0x423688),{buttonView:_0x2dd9ec}=_0x30f035;return _0x30f035['class']='ck-footnotes-styles-dropdown',_0x30f035['bind']('isEnabled')['to'](_0x3e0196,'isEnabled'),_0x2dd9ec['set']({'label':t('Footnotes\x20style'),'icon':_0x33a085,'tooltip':!0x0}),_0x30f035['once']('change:isOpen',()=>{const _0x4ecf4b=function({editor:_0x49f25a,dropdownView:_0x2a54ba}){const {t:t}=_0x49f25a['locale'],_0x3b0737=t('Footnotes\x20definitions\x20styles'),_0x585e83=function(_0x49cc1d){const t=_0x49cc1d['locale']['t'],_0x12fa7e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x427384},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xe96110},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5667cf},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x42d2a1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x30bb87},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xe98f80}];return _0x12fa7e['map'](function(_0x56daf9){const _0x3e68ef=_0x56daf9['locale'];return({label:_0x23e33b,icon:_0x583af1,tooltip:_0x250b4f,style:_0x1fbe57})=>{const _0x489c71=_0x56daf9['commands']['get']('footnotesStyle'),_0x3bd8a2=new _0x228e8a(_0x3e68ef);return _0x3bd8a2['set']({'label':_0x23e33b,'icon':_0x583af1,'tooltip':_0x250b4f}),_0x3bd8a2['bind']('isOn')['to'](_0x489c71,'value',_0x463499=>_0x463499===_0x1fbe57),_0x3bd8a2['bind']('isEnabled')['to'](_0x489c71,'isEnabled'),_0x3bd8a2['on']('execute',()=>{_0x56daf9['execute']('footnotesStyle',{'value':_0x1fbe57}),_0x56daf9['editing']['view']['focus']();}),_0x3bd8a2;};}(_0x49cc1d));}(_0x49f25a),_0x4256a0=new J(_0x49f25a['locale'],{'styleGridAriaLabel':_0x3b0737,'styleButtonViews':_0x585e83}),_0x30ae9b=_0x49f25a['commands']['get']('footnotesStart');return _0x4256a0['startIndexFieldView']['bind']('isEnabled')['to'](_0x30ae9b),_0x4256a0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x30ae9b),_0x4256a0['on']('footnotesListStart',(_0x26636d,_0x5c4b5f)=>{_0x49f25a['execute']('footnotesStart',{'value':_0x5c4b5f['startIndex']});}),_0x4256a0['delegate']('execute')['to'](_0x2a54ba),_0x4256a0;}({'editor':_0x12bd94,'dropdownView':_0x30f035});_0x30f035['panelView']['children']['add'](_0x4ecf4b);}),_0x30f035;};}(_0x2ae279));}['afterInit'](){const {editor:_0x297ae4}=this,{t:t}=_0x297ae4['locale'],_0x3eb61d=_0x297ae4['plugins']['get'](_0x3c578e),{defaultPositions:_0x377a6c}=_0x2cd6ae;_0x3eb61d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x297ae4['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3a9907=>{let _0x1c4b1c=_0x3a9907['getFirstPosition']()?.['parent'];return _0x1c4b1c?.['is']('$text')&&(_0x1c4b1c=_0x1c4b1c['parent']),_0x1c4b1c?.['is']('element')?_0x1c4b1c['findAncestor'](Q):null;},'positions':[_0x377a6c['southArrowNorth'],_0x377a6c['southArrowNorthMiddleWest'],_0x377a6c['southArrowNorthMiddleEast'],_0x377a6c['southArrowNorthWest'],_0x377a6c['southArrowNorthEast'],_0x377a6c['northArrowSouth'],_0x377a6c['northArrowSouthMiddleWest'],_0x377a6c['northArrowSouthMiddleEast'],_0x377a6c['northArrowSouthWest'],_0x377a6c['northArrowSouthEast'],_0x377a6c['viewportStickyNorth']]});}}class ft extends _0xbda463{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "47.4.0-alpha.
|
|
3
|
+
"version": "47.4.0-alpha.6",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "47.4.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.4.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.
|
|
33
|
-
"ckeditor5": "47.4.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.4.0-alpha.6",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.6",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.4.0-alpha.6",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.6",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.6",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.6",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.6",
|
|
33
|
+
"ckeditor5": "47.4.0-alpha.6"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x15ca55}from'ckeditor5/src/core.js';import{isWidget as _0x573acd,toWidget as _0x189017,toWidgetEditable as _0x1339ce}from'ckeditor5/src/widget.js';import{uid as _0x5865a7}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1bd3fc,ClickObserver as _0x1f34e3}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5a8352}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xff4fc7}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x15ca55{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5a8352];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d17d3}=this;_0x3d17d3['config']['define']('footnotes.multiBlock',!0x0),_0x3d17d3['commands']['add']('insertFootnote',new _0xff4fc7(_0x3d17d3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x18a8b7){const _0x15d9bf=_0x25f99b([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x11a0ad=0x47a28506,_0x43adb9=0x47a5fbb6^_0x11a0ad,_0x1e8e12=window[_0x25f99b([0x44,0x61,0x74,0x65])][_0x25f99b([0x6e,0x6f,0x77])](),_0x173ff0=_0x18a8b7[_0x25f99b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50bb2b=new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e09c=>{_0x173ff0[_0x25f99b([0x6f,0x6e,0x63,0x65])](_0x25f99b([0x72,0x65,0x61,0x64,0x79]),_0x24e09c);}),_0x23c790={[_0x25f99b([0x6b,0x74,0x79])]:_0x25f99b([0x45,0x43]),[_0x25f99b([0x75,0x73,0x65])]:_0x25f99b([0x73,0x69,0x67]),[_0x25f99b([0x63,0x72,0x76])]:_0x25f99b([0x50,0x2d,0x32,0x35,0x36]),[_0x25f99b([0x78])]:_0x25f99b([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]),[_0x25f99b([0x79])]:_0x25f99b([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]),[_0x25f99b([0x61,0x6c,0x67])]:_0x25f99b([0x45,0x53,0x32,0x35,0x36])},_0x513540=_0x173ff0[_0x25f99b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25f99b([0x67,0x65,0x74])](_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c042e(){let _0x45872e,_0x27a0f5=null,_0x254cf7=null;try{if(_0x513540==_0x25f99b([0x47,0x50,0x4c]))return _0x25f99b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45872e=_0x358ad0(),!_0x45872e)return _0x25f99b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45872e[_0x25f99b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x254cf7=_0x78221(_0x45872e[_0x25f99b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45872e[_0x25f99b([0x6a,0x74,0x69])])),await _0x2d4e8c()?_0x2698dd()?_0xde3347()?_0x25f99b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29de7f()?(_0x45872e[_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25f99b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27a0f5=_0x3fe91d(_0x25f99b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38cb49()):_0x25f99b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25f99b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25f99b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25f99b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xde3347(){const _0x563088=[_0x25f99b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25f99b([0x74,0x72,0x69,0x61,0x6c])][_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45872e[_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e8e12/0x3e8:0xe10*_0x43adb9;return _0x45872e[_0x25f99b([0x65,0x78,0x70])]<_0x563088;}function _0x2698dd(){const _0x589334=_0x45872e[_0x25f99b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x589334&&(!!_0x589334[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f99b([0x2a]))||!!_0x589334[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f99b([0x46,0x4f,0x4f])));}function _0x29de7f(){const _0x3b0d22=_0x45872e[_0x25f99b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b0d22||0x0==_0x3b0d22[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5417e}=new URL(window[_0x25f99b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b0d22[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5417e))return!0x0;const _0x2ce28e=_0x5417e[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e]));return _0x3b0d22[_0x25f99b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x466223=>_0x466223[_0x25f99b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25f99b([0x2a])))[_0x25f99b([0x6d,0x61,0x70])](_0x132f5a=>_0x132f5a[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e])))[_0x25f99b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x488598=>_0x488598[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ce28e[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25f99b([0x6d,0x61,0x70])](_0xdcc6f5=>Array(_0x2ce28e[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xdcc6f5[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25f99b([0x66,0x69,0x6c,0x6c])](_0xdcc6f5[0x0]===_0x25f99b([0x2a])?_0x25f99b([0x2a]):'')[_0x25f99b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xdcc6f5))[_0x25f99b([0x73,0x6f,0x6d,0x65])](_0x194313=>_0x2ce28e[_0x25f99b([0x65,0x76,0x65,0x72,0x79])]((_0x2cf1,_0xadf990)=>_0x194313[_0xadf990]===_0x2cf1||_0x194313[_0xadf990]===_0x25f99b([0x2a])));}function _0x38cb49(){return _0x27a0f5&&_0x254cf7?new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347a15,_0x2dfba2)=>{_0x27a0f5[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x347a15,_0x2dfba2),_0x254cf7[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x3f8532=>{_0x3f8532!=_0x25f99b([0x56,0x61,0x6c,0x69,0x64])&&_0x347a15(_0x3f8532);},_0x2dfba2);}):_0x27a0f5||_0x254cf7||_0x25f99b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x78221(_0x235744,_0x5ce8e9){return new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46c203=>{if(_0x4661a1())return _0x46c203(_0x25f99b([0x56,0x61,0x6c,0x69,0x64]));_0x75c28e(),_0x173ff0[_0x25f99b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25f99b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2355f1=!0x1;const _0x56a144=_0x5865a7();function _0x6d855a(_0x2ba107){return!!_0x2ba107&&(typeof _0x2ba107===_0x25f99b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ba107===_0x25f99b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ba107[_0x25f99b([0x74,0x68,0x65,0x6e])]===_0x25f99b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ba107[_0x25f99b([0x63,0x61,0x74,0x63,0x68])]===_0x25f99b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1faa13(_0xabe4c4){_0x2326bf(_0xabe4c4)[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x2bc382=>{if(!_0x2bc382||_0x2bc382[_0x25f99b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25f99b([0x6f,0x6b]))return _0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40d7c3(_0x20439b(_0x56a144+_0x5ce8e9))!=_0x2bc382[_0x25f99b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25f99b([0x56,0x61,0x6c,0x69,0x64]);})[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x1d024d=>(_0x215ee8(),_0x1d024d),()=>{const _0x1e9ee1=_0x3eea2a();return null==_0x1e9ee1?(_0x215ee8(),_0x25f99b([0x56,0x61,0x6c,0x69,0x64])):_0x25f99b(_0x1e8e12-_0x1e9ee1>(0x63ae0106^_0x11a0ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x46c203)[_0x25f99b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46c203(_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5551b5=0x47946b86^_0x11a0ad;function _0x215ee8(){const _0x108ca0=_0x25f99b([0x6c,0x6c,0x63,0x74,0x2d])+_0x40d7c3(_0x20439b(_0x235744)),_0x1e336e=_0x58b04e(_0x40d7c3(window[_0x25f99b([0x4d,0x61,0x74,0x68])][_0x25f99b([0x63,0x65,0x69,0x6c])](_0x1e8e12/_0x5551b5)));window[_0x25f99b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f99b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x108ca0,_0x1e336e);}function _0x3eea2a(){const _0x3ba878=_0x25f99b([0x6c,0x6c,0x63,0x74,0x2d])+_0x40d7c3(_0x20439b(_0x235744)),_0x2925ed=window[_0x25f99b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25f99b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ba878);return _0x2925ed?window[_0x25f99b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b04e(_0x2925ed),0x10)*_0x5551b5:null;}function _0x2326bf(_0x31036d){return new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43c0aa,_0x218ae0)=>{_0x31036d[_0x25f99b([0x74,0x68,0x65,0x6e])](_0x43c0aa,_0x218ae0),window[_0x25f99b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x218ae0,0x47a351c6^_0x11a0ad);});}}_0x173ff0[_0x25f99b([0x6f,0x6e])](_0x25f99b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c2027,_0x4ef792)=>{if(_0x4ef792[0x0]!=_0x235744)return _0x46c203(_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ef792[0x1]={..._0x4ef792[0x1],[_0x25f99b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56a144};},{[_0x25f99b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f99b([0x68,0x69,0x67,0x68])}),_0x173ff0[_0x25f99b([0x6f,0x6e])](_0x25f99b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3221e3=>{_0x6d855a(_0x3221e3[_0x25f99b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2355f1=!0x0,_0x1faa13(_0x3221e3[_0x25f99b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25f99b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25f99b([0x6c,0x6f,0x77])}),_0x50bb2b[_0x25f99b([0x74,0x68,0x65,0x6e])](()=>{_0x2355f1||_0x46c203(_0x25f99b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4661a1(){return _0x173ff0[_0x25f99b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f99b([0x76,0x69,0x65,0x77])][_0x25f99b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25f99b([0x61,0x75,0x74,0x6f]);}function _0x75c28e(){_0x173ff0[_0x25f99b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25f99b([0x76,0x69,0x65,0x77])][_0x25f99b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25f99b([0x61,0x75,0x74,0x6f]);}}function _0x3fe91d(_0x446370){const _0xf5b7d1=[new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35a778=>setTimeout(_0x35a778,0x47abbbca^_0x11a0ad)),_0x50bb2b[_0x25f99b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c6a74=>{let _0x1a1348=0x0;_0x173ff0[_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f99b([0x6f,0x6e])](_0x25f99b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x209d87,_0x24b828)=>{_0x24b828[0x0][_0x25f99b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a1348++,_0x1a1348==(0x47a280ee^_0x11a0ad)&&(_0x4c6a74(),_0x209d87[_0x25f99b([0x6f,0x66,0x66])]());});}))];return window[_0x25f99b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25f99b([0x72,0x61,0x63,0x65])](_0xf5b7d1)[_0x25f99b([0x74,0x68,0x65,0x6e])](()=>_0x446370);}async function _0x45ee8b(){await _0x50bb2b,_0x173ff0[_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f99b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59c2ef,_0x173ff0[_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c])][_0x25f99b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59c2ef,_0x173ff0[_0x25f99b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25f99b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x138bdb(_0x5105cd){const _0x4d01ad=_0x36b942();_0x173ff0[_0x4d01ad]=_0x25f99b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5105cd,_0x5105cd!=_0x25f99b([0x56,0x61,0x6c,0x69,0x64])&&_0x45ee8b();}function _0x36b942(){const _0x39a3b0=window[_0x25f99b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25f99b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25f99b([0x6e,0x6f,0x77])]())[_0x25f99b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25f99b([0x2e]),'');let _0x34295e=_0x25f99b([0x75]);for(let _0x1fab2b=0x0;_0x1fab2b<_0x39a3b0[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fab2b+=0x2){let _0x599044=window[_0x25f99b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a3b0[_0x25f99b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fab2b,_0x1fab2b+0x2));_0x599044>=_0x15d9bf[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x599044-=_0x15d9bf[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34295e+=_0x15d9bf[_0x599044];}return _0x34295e;}function _0x358ad0(){const _0x48d044=_0x513540[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e]));if(0x3!=_0x48d044[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58c003(_0x48d044[0x1]);function _0x58c003(_0x2436c0){const _0x21502e=_0x3c6137(_0x2436c0);return _0x21502e&&_0xf4378a()?_0x21502e:null;function _0xf4378a(){const _0x1c2683=_0x21502e[_0x25f99b([0x6a,0x74,0x69])],_0x590130=window[_0x25f99b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c2683[_0x25f99b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c2683[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a1f44={..._0x21502e,[_0x25f99b([0x6a,0x74,0x69])]:_0x1c2683[_0x25f99b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c2683[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a1f44[_0x25f99b([0x76,0x63])],_0x20439b(_0x2a1f44)==_0x590130;}}}async function _0x2d4e8c(){let _0x2bf442=!0x0;try{const _0x32d3cc=_0x513540[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])](_0x25f99b([0x2e])),[_0x2bd094,_0x132ce6,_0x1efc3f]=_0x32d3cc;return _0x497617(_0x2bd094),await _0x3b491a(_0x2bd094,_0x132ce6,_0x1efc3f),_0x2bf442;}catch{return!0x1;}function _0x497617(_0x2403e2){const _0x2d3904=_0x3c6137(_0x2403e2);_0x2d3904&&_0x2d3904[_0x25f99b([0x61,0x6c,0x67])]==_0x25f99b([0x45,0x53,0x32,0x35,0x36])||(_0x2bf442=!0x1);}async function _0x3b491a(_0x15d11f,_0x2e02b5,_0x25043c){const _0x19ee79=window[_0x25f99b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25f99b([0x66,0x72,0x6f,0x6d])](_0x35e970(_0x25043c),_0x514da6=>_0x514da6[_0x25f99b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x138124=new window[(_0x25f99b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25f99b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15d11f+_0x25f99b([0x2e])+_0x2e02b5),_0x15c13f=window[_0x25f99b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25f99b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15c13f)return;const _0x1efa3c=await _0x15c13f[_0x25f99b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25f99b([0x6a,0x77,0x6b]),_0x23c790,{[_0x25f99b([0x6e,0x61,0x6d,0x65])]:_0x25f99b([0x45,0x43,0x44,0x53,0x41]),[_0x25f99b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25f99b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25f99b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15c13f[_0x25f99b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25f99b([0x6e,0x61,0x6d,0x65])]:_0x25f99b([0x45,0x43,0x44,0x53,0x41]),[_0x25f99b([0x68,0x61,0x73,0x68])]:{[_0x25f99b([0x6e,0x61,0x6d,0x65])]:_0x25f99b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1efa3c,_0x19ee79,_0x138124)||(_0x2bf442=!0x1);}}function _0x3c6137(_0x172d17){return _0x172d17[_0x25f99b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25f99b([0x65,0x79]))?JSON[_0x25f99b([0x70,0x61,0x72,0x73,0x65])](_0x35e970(_0x172d17)):null;}function _0x35e970(_0xb532a5){return window[_0x25f99b([0x61,0x74,0x6f,0x62])](_0xb532a5[_0x25f99b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25f99b([0x2b]))[_0x25f99b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25f99b([0x2f])));}function _0x20439b(_0x700b19){let _0x51c25a=0x1505;function _0x2b62b2(_0x28f38d){for(let _0x16f480=0x0;_0x16f480<_0x28f38d[_0x25f99b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16f480++){const _0x45f342=_0x28f38d[_0x25f99b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16f480);_0x51c25a=(_0x51c25a<<0x5)+_0x51c25a+_0x45f342,_0x51c25a&=_0x51c25a;}}function _0x246bfb(_0x372db3){Array[_0x25f99b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x372db3)?_0x372db3[_0x25f99b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x246bfb):_0x372db3&&typeof _0x372db3==_0x25f99b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25f99b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x372db3)[_0x25f99b([0x73,0x6f,0x72,0x74])]()[_0x25f99b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22ee9e,_0x35759a])=>{_0x2b62b2(_0x22ee9e),_0x246bfb(_0x35759a);}):_0x2b62b2(window[_0x25f99b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x372db3));}return _0x246bfb(_0x700b19),_0x51c25a>>>0x0;}function _0x40d7c3(_0x1ce575){return _0x1ce575[_0x25f99b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25f99b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25f99b([0x30]));}function _0x58b04e(_0x18269d){return _0x18269d[_0x25f99b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25f99b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25f99b([0x6a,0x6f,0x69,0x6e])]('');}function _0x59c2ef(){}function _0x25f99b(_0x4bb9dc){return _0x4bb9dc['map'](_0x4f19e1=>String['fromCharCode'](_0x4f19e1))['join']('');}_0x138bdb(await _0x2c042e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1f7ae3){const {plugins:_0x4d2e3f,editing:_0x498565,model:_0x153b53}=this['editor'],_0x4df628=_0x4d2e3f['get'](_0x5a8352)['getFootnote'](_0x1f7ae3);return!!_0x4df628&&(_0x153b53['change'](_0x18aae6=>{_0x18aae6['setSelection'](_0x18aae6['createPositionAt'](_0x4df628['definition'],'end'));}),_0x498565['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x339d58){const {plugins:_0x321cc1,editing:_0xcc4c1a,model:_0x131a39}=this['editor'],_0x43e976=_0x321cc1['get'](_0x5a8352)['getFootnote'](_0x339d58);return!!_0x43e976&&(_0x131a39['change'](_0x15347c=>{_0x15347c['setSelection'](_0x43e976['reference'],'on');}),_0xcc4c1a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x9edb9a}=this['editor']['model'],_0x4d9b57=this['editor']['config']['get']('footnotes.multiBlock');_0x9edb9a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x9edb9a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x9edb9a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4d9b57?_0x9edb9a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x9edb9a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x9edb9a['addChildCheck'](_0x330b71=>{for(const _0x469298 of _0x330b71)if('footnoteDefinition'===_0x469298['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2c7823}=this,{conversion:_0x2cac80,editing:_0x1d6395}=_0x2c7823,{t:t}=_0x2c7823['locale'];_0x2cac80['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1e7e3d,{writer:_0x98ea1e,consumable:_0x17efc8})=>{const _0x302411=_0x1e7e3d['getChild'](0x0);if(!_0x302411||!_0x302411['is']('element','a'))return null;const _0x2d6771=_0x302411['getAttribute']('href')||'';if(!_0x2d6771['startsWith']('#'))return null;const _0x14a2dc=_0x2d6771['replace'](/^#/,'');if(!_0x14a2dc)return null;_0x17efc8['consume'](_0x302411,{'name':!0x0,'attributes':['href']});for(const {item:_0x7aed22}of _0x1d6395['view']['createRangeIn'](_0x302411))_0x7aed22['is']('$textProxy')?_0x17efc8['consume'](_0x7aed22['textNode'],{'name':!0x0}):_0x7aed22['is']('element')&&_0x17efc8['consume'](_0x7aed22,{'name':!0x0});return _0x98ea1e['createElement']('footnoteRef',{'footnoteId':_0x14a2dc});}}),_0x2cac80['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3c0c18,{writer:_0x28a737})=>b(_0x3c0c18,_0x28a737)}),_0x2cac80['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4604d0,{writer:_0x5be026})=>{const _0x16ed18=_0x4604d0['getAttribute']('footnoteCounter');return _0x189017(b(_0x4604d0,_0x5be026),_0x5be026,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x16ed18)});}});}['_defineDefinitionsConverters'](){const {editor:_0x583a32}=this,{t:t}=_0x583a32['locale'],{conversion:_0x5d374a}=_0x583a32;_0x5d374a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5d374a['for']('upcast')['add'](_0x37fdfb=>{_0x37fdfb['on']('element:ol',(_0x3faa09,_0x3603d3,_0x36bc22)=>{const _0x195ce8=_0x3603d3['viewItem'];if(!_0x195ce8['hasClass']('footnotes-list')||!_0x3603d3['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x36bc22['consumable']['consume'](_0x195ce8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xf36d94,modelCursor:_0x20c516}=_0x36bc22['convertChildren'](_0x3603d3['viewItem'],_0x3603d3['modelCursor']);_0x3603d3['modelRange']=_0xf36d94,_0x3603d3['modelCursor']=_0x20c516;}),_0x37fdfb['on']('element:hr',(_0x45b2a6,_0x308140,_0x5f0bde)=>{const _0x436cca=_0x308140['viewItem'];_0x436cca['hasClass']('footnotes-divider')&&_0x308140['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f0bde['consumable']['consume'](_0x436cca,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5d374a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x385fd9,{writer:_0x41db6c})=>D(_0x41db6c)}),_0x5d374a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x544e7f,{writer:_0x379541})=>{const _0x3801cb=D(_0x379541,{'data-footnotes-list-label':t('Footnotes')}),_0x279ad2=_0x189017(_0x3801cb,_0x379541,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x379541['setCustomProperty']('footnotesDefinitions',!0x0,_0x279ad2),_0x279ad2;}});}['_defineDefinitionConverters'](){const {editor:_0x2f7db4}=this,{conversion:_0x4d3636,locale:_0x429adc}=_0x2f7db4,_0x45fae2=_0x2f7db4['config']['get']('footnotes.multiBlock');_0x4d3636['for']('upcast')['add'](_0x51cb60=>{_0x51cb60['on']('element:li',(_0x58e7af,_0x604396,_0x3af96d)=>{const _0xc062b8=_0x604396['viewItem'];if(!_0xc062b8['hasClass']('footnote-definition')||!_0xc062b8['getAttribute']('id'))return;const _0x177919=_0xc062b8['parent'];if(!_0x177919['is']('element','ol')||!_0x177919['hasClass']('footnotes-list'))return;if(!_0x3af96d['consumable']['test'](_0xc062b8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x49b675=_0x3af96d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xc062b8['getAttribute']('id')});if(!_0x3af96d['safeInsert'](_0x49b675,_0x604396['modelCursor']))return;_0x3af96d['consumable']['consume'](_0xc062b8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3264d9=Array['from'](_0xc062b8['getChildren']())['find'](_0x51046e=>_0x51046e['is']('element')&&_0x51046e['hasClass']('footnote-content'));for(const _0x4f83f8 of _0xc062b8['getChildren']())_0x4f83f8['is']('element')&&(_0x3af96d['consumable']['consume'](_0x4f83f8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3af96d['consumable']['consume'](_0x4f83f8,{'name':!0x0,'classes':'footnote-content'}));if(_0x3264d9){if(_0x45fae2)_0x3af96d['convertChildren'](_0x3264d9,_0x49b675);else{const _0x337b8e=_0x3af96d['writer']['createElement']('footnoteInlineContent');_0x3af96d['writer']['insert'](_0x337b8e,_0x49b675),_0x3af96d['convertChildren'](_0x3264d9,_0x337b8e);}}_0x3af96d['updateConversionResult'](_0x49b675,_0x604396);});}),_0x4d3636['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x566773,{writer:_0x2b8412})=>y(_0x566773,_0x2b8412,_0x429adc,{'dataPipeline':!0x0})}),_0x4d3636['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43eeec,{writer:_0x19f0fa})=>y(_0x43eeec,_0x19f0fa,_0x429adc)});}['_defineBogusParagraphConverters'](){const {editor:_0x4188ac}=this,{conversion:_0x20becf}=_0x4188ac;_0x4188ac['config']['get']('footnotes.multiBlock')?(_0x20becf['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x20becf['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4188ac['model']['document'],'change:data',()=>{!function(_0x3596f9,_0x330797){const _0x5803b4=_0x3596f9['document']['differ'],_0x251295=new Set();for(const _0x93e4a4 of _0x5803b4['getChanges']()){const _0x1bb5d1='attribute'==_0x93e4a4['type']?_0x93e4a4['range']['start']['parent']:_0x93e4a4['position']['parent'];_0x1bb5d1['is']('element','footnoteDefinition')&&_0x251295['add'](_0x1bb5d1);}for(const _0x5f2324 of _0x251295['values']()){const _0x1e3e61=Array['from'](_0x5f2324['getChildren']())['filter'](_0xafc36a=>v(_0xafc36a,_0x330797['mapper']));for(const _0x1cffb1 of _0x1e3e61)_0x330797['reconvertItem'](_0x1cffb1);}}(_0x4188ac['model'],_0x4188ac['editing']);})):(_0x20becf['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x20becf['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x6db163,{writer:_0x526289})=>{const _0x1ad22f=_0x526289['createContainerElement']('span');return _0x526289['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1ad22f),_0x1ad22f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4268a5}=this,{editing:_0x32bb2f,t:t}=_0x4268a5,_0x31cd82=_0x4268a5['model']['document']['selection'];_0x4268a5['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4268a5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x32bb2f['view']['document'],'enter',(_0x396d84,_0x1d2e5e)=>{const _0x566032=function(_0x599c88){const _0x4bb0d9=_0x599c88['getSelectedElement']();if(_0x4bb0d9?.['is']('element','footnoteRef'))return _0x4bb0d9;return null;}(_0x31cd82);if(_0x566032){const _0x5a4e15=_0x566032['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5a4e15),_0x1d2e5e['preventDefault'](),_0x396d84['stop']();}},{'context':_0x573acd});}['_defineClickHandlers'](){const {editor:_0x2e5cce}=this,{editing:_0x4c0a06}=_0x2e5cce;_0x2e5cce['editing']['view']['addObserver'](_0x1bd3fc),_0x2e5cce['editing']['view']['addObserver'](_0x1f34e3);let _0x107b90=!0x1;this['listenTo'](_0x4c0a06['view']['document'],'pointerdown',(_0x590210,_0x2b5605)=>{const {target:_0x3f5129}=_0x2b5605,_0x4eca92=_0x4c0a06['view']['document']['selection'];_0x107b90=!!(_0x3f5129?.['is']('element','a')&&_0x3f5129['parent']?.['is']('element','sup')&&_0x3f5129['parent']['hasClass']('footnote'))&&_0x4eca92['getSelectedElement']()===_0x3f5129['parent'];},{'priority':'high'}),this['listenTo'](_0x4c0a06['view']['document'],'click',(_0xcbd36a,_0xd02180)=>{const {target:_0x5153d1}=_0xd02180;if(!_0x5153d1?.['is']('element','a'))return;if(_0x5153d1['parent']?.['is']('element','sup')&&_0x5153d1['parent']['hasClass']('footnote')&&!_0x107b90)return void _0xd02180['preventDefault']();let _0x5f5478=_0x5153d1['getAttribute']('href');if(!_0x5f5478?.['startsWith']('#'))return;_0x5f5478=_0x5f5478['slice'](0x1);let _0x190602=!0x1;(_0x5f5478['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5f5478['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5f5478))&&(_0x190602=!0x0),_0x190602&&(_0xd02180['preventDefault'](),_0xcbd36a['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x131289}={}){return(_0x5ba3dc,{writer:_0x39c728})=>{if(!g(_0x5ba3dc))return null;if(!_0x131289)return _0x39c728['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1c94ae=_0x39c728['createContainerElement']('p');return _0x39c728['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1c94ae),_0x1c94ae;};}function g(_0x5cd5a9){const {parent:_0x23d353}=_0x5cd5a9;if(!_0x23d353?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x23d353['childCount'])return!0x1;for(const _0x3c6261 of _0x5cd5a9['getAttributeKeys']())if(!_0x3c6261['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3c6261)return!0x1;return!0x0;}function v(_0xd9e999,_0x1ad3fc){if(!_0xd9e999['is']('element','paragraph'))return!0x1;const _0x1921ed=_0x1ad3fc['toViewElement'](_0xd9e999);return!!_0x1921ed&&g(_0xd9e999)!==_0x1921ed['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x14efeb){return _0x573acd(_0x14efeb)&&_0x14efeb['is']('containerElement')&&!!_0x14efeb['getCustomProperty']('footnotesDefinitions');}function D(_0xc75975,_0x178955={}){const _0x48aac6=_0xc75975['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2b4461=_0xc75975['createContainerElement']('ol',{'class':'footnotes-list'},_0xc75975['createSlot']());return _0xc75975['createContainerElement']('div',{'class':'footnotes',..._0x178955},[_0x48aac6,_0x2b4461]);}function b(_0x317b99,_0xcf464d){const _0x4582f2=_0x317b99['getAttribute']('footnoteId'),_0x19319c=_0x317b99['getAttribute']('footnoteCounter'),_0x4b1a5e=_0xcf464d['createUIElement']('a',{'href':'#'+_0x4582f2},function(_0x3dd9cf){const _0x7ffc4d=this['toDomElement'](_0x3dd9cf);return _0x7ffc4d['textContent']=_0x19319c,_0x7ffc4d;}),_0x3f43fd=_0xcf464d['createContainerElement']('sup',{'id':'ref-'+_0x4582f2,'class':'footnote'},[_0x4b1a5e]);return _0x3f43fd['getFillerOffset']=()=>null,_0x3f43fd;}function y(_0x15d9b9,_0x2845f0,_0x1720b6,{dataPipeline:_0x3b09e8}={}){const {t:t}=_0x1720b6,_0x1e2093=_0x15d9b9['getAttribute']('footnoteId'),_0x2539d2=_0x2845f0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1e2093},function(_0x4f1202){const _0x4edd45=this['toDomElement'](_0x4f1202);return _0x4edd45['innerText']='^',_0x4edd45;}),_0x4a8ffb=_0x3b09e8?_0x2845f0['createContainerElement']('div',{'class':'footnote-content'}):_0x1339ce(_0x2845f0['createEditableElement']('div',{'class':'footnote-content'}),_0x2845f0,{'label':t('Footnote\x20content.')});return _0x2845f0['insert'](_0x2845f0['createPositionAt'](_0x4a8ffb,0x0),_0x2845f0['createSlot']()),_0x2845f0['createContainerElement']('li',{'class':'footnote-definition','id':_0x1e2093},[_0x2539d2,_0x4a8ffb]);}
|
|
23
|
+
import{Plugin as _0x2ed68a}from'ckeditor5/src/core.js';import{isWidget as _0xdadc05,toWidget as _0x3e8240,toWidgetEditable as _0x3ecac3}from'ckeditor5/src/widget.js';import{uid as _0x748a2c}from'ckeditor5/src/utils.js';import{PointerObserver as _0xdb65b8,ClickObserver as _0x5bcff3}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x570d5d}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x51098b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2ed68a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x570d5d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa3a55}=this;_0xa3a55['config']['define']('footnotes.multiBlock',!0x0),_0xa3a55['commands']['add']('insertFootnote',new _0x51098b(_0xa3a55)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x50d15c){const _0x1e1225=_0x11098f([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x350c6d=0x47a28506,_0x5a8199=0x47a5fbce^_0x350c6d,_0x95aebd=window[_0x11098f([0x44,0x61,0x74,0x65])][_0x11098f([0x6e,0x6f,0x77])](),_0x29e97a=_0x50d15c[_0x11098f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fc575=new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x175b43=>{_0x29e97a[_0x11098f([0x6f,0x6e,0x63,0x65])](_0x11098f([0x72,0x65,0x61,0x64,0x79]),_0x175b43);}),_0x482ee2={[_0x11098f([0x6b,0x74,0x79])]:_0x11098f([0x45,0x43]),[_0x11098f([0x75,0x73,0x65])]:_0x11098f([0x73,0x69,0x67]),[_0x11098f([0x63,0x72,0x76])]:_0x11098f([0x50,0x2d,0x32,0x35,0x36]),[_0x11098f([0x78])]:_0x11098f([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]),[_0x11098f([0x79])]:_0x11098f([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]),[_0x11098f([0x61,0x6c,0x67])]:_0x11098f([0x45,0x53,0x32,0x35,0x36])},_0x4648db=_0x29e97a[_0x11098f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11098f([0x67,0x65,0x74])](_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xcbc8c5(){let _0x2fedad,_0x4e5fcf=null,_0x1c9277=null;try{if(_0x4648db==_0x11098f([0x47,0x50,0x4c]))return _0x11098f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fedad=_0x24242b(),!_0x2fedad)return _0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fedad[_0x11098f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c9277=_0x4097a4(_0x2fedad[_0x11098f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fedad[_0x11098f([0x6a,0x74,0x69])])),await _0x6201e5()?_0x195df3()?_0x59e1df()?_0x11098f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22b8a5()?(_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11098f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e5fcf=_0x43fa81(_0x11098f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ad388()):_0x11098f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11098f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11098f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59e1df(){const _0x19d61a=[_0x11098f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11098f([0x74,0x72,0x69,0x61,0x6c])][_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x95aebd/0x3e8:0xe10*_0x5a8199;return _0x2fedad[_0x11098f([0x65,0x78,0x70])]<_0x19d61a;}function _0x195df3(){const _0x134ccb=_0x2fedad[_0x11098f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x134ccb&&(!!_0x134ccb[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x2a]))||!!_0x134ccb[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x46,0x4f,0x4f])));}function _0x22b8a5(){const _0x5b64a2=_0x2fedad[_0x11098f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b64a2||0x0==_0x5b64a2[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58c263}=new URL(window[_0x11098f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b64a2[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58c263))return!0x0;const _0x3c7a1d=_0x58c263[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e]));return _0x5b64a2[_0x11098f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2df5ba=>_0x2df5ba[_0x11098f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11098f([0x2a])))[_0x11098f([0x6d,0x61,0x70])](_0x2e1a85=>_0x2e1a85[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e])))[_0x11098f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x366049=>_0x366049[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c7a1d[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11098f([0x6d,0x61,0x70])](_0x2b214c=>Array(_0x3c7a1d[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b214c[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11098f([0x66,0x69,0x6c,0x6c])](_0x2b214c[0x0]===_0x11098f([0x2a])?_0x11098f([0x2a]):'')[_0x11098f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b214c))[_0x11098f([0x73,0x6f,0x6d,0x65])](_0x31297d=>_0x3c7a1d[_0x11098f([0x65,0x76,0x65,0x72,0x79])]((_0x1a5bf1,_0xdfe746)=>_0x31297d[_0xdfe746]===_0x1a5bf1||_0x31297d[_0xdfe746]===_0x11098f([0x2a])));}function _0x3ad388(){return _0x4e5fcf&&_0x1c9277?new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48a3b1,_0x2c9054)=>{_0x4e5fcf[_0x11098f([0x74,0x68,0x65,0x6e])](_0x48a3b1,_0x2c9054),_0x1c9277[_0x11098f([0x74,0x68,0x65,0x6e])](_0x2a3740=>{_0x2a3740!=_0x11098f([0x56,0x61,0x6c,0x69,0x64])&&_0x48a3b1(_0x2a3740);},_0x2c9054);}):_0x4e5fcf||_0x1c9277||_0x11098f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4097a4(_0x36de96,_0x54767d){return new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387c84=>{if(_0x18fd7e())return _0x387c84(_0x11098f([0x56,0x61,0x6c,0x69,0x64]));_0x3583c8(),_0x29e97a[_0x11098f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13a24c=!0x1;const _0x271292=_0x748a2c();function _0x598266(_0x41bc81){return!!_0x41bc81&&(typeof _0x41bc81===_0x11098f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41bc81===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41bc81[_0x11098f([0x74,0x68,0x65,0x6e])]===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41bc81[_0x11098f([0x63,0x61,0x74,0x63,0x68])]===_0x11098f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2257e2(_0x422fe1){_0x1c9c7c(_0x422fe1)[_0x11098f([0x74,0x68,0x65,0x6e])](_0x316a8c=>{if(!_0x316a8c||_0x316a8c[_0x11098f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11098f([0x6f,0x6b]))return _0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x469b01(_0x2337ca(_0x271292+_0x54767d))!=_0x316a8c[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11098f([0x56,0x61,0x6c,0x69,0x64]);})[_0x11098f([0x74,0x68,0x65,0x6e])](_0x3673f8=>(_0x31c313(),_0x3673f8),()=>{const _0x2092da=_0x3a633a();return null==_0x2092da?(_0x31c313(),_0x11098f([0x56,0x61,0x6c,0x69,0x64])):_0x11098f(_0x95aebd-_0x2092da>(0x63ae0106^_0x350c6d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11098f([0x74,0x68,0x65,0x6e])](_0x387c84)[_0x11098f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54de88=0x47946b86^_0x350c6d;function _0x31c313(){const _0x1dce9b=_0x11098f([0x6c,0x6c,0x63,0x74,0x2d])+_0x469b01(_0x2337ca(_0x36de96)),_0x581702=_0x2c1f36(_0x469b01(window[_0x11098f([0x4d,0x61,0x74,0x68])][_0x11098f([0x63,0x65,0x69,0x6c])](_0x95aebd/_0x54de88)));window[_0x11098f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11098f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dce9b,_0x581702);}function _0x3a633a(){const _0x44fba2=_0x11098f([0x6c,0x6c,0x63,0x74,0x2d])+_0x469b01(_0x2337ca(_0x36de96)),_0x13765c=window[_0x11098f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11098f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44fba2);return _0x13765c?window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1f36(_0x13765c),0x10)*_0x54de88:null;}function _0x1c9c7c(_0x2cbe1d){return new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5687f4,_0x53a1e3)=>{_0x2cbe1d[_0x11098f([0x74,0x68,0x65,0x6e])](_0x5687f4,_0x53a1e3),window[_0x11098f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53a1e3,0x47a351c6^_0x350c6d);});}}_0x29e97a[_0x11098f([0x6f,0x6e])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52eece,_0x3eb4f0)=>{if(_0x3eb4f0[0x0]!=_0x36de96)return _0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3eb4f0[0x1]={..._0x3eb4f0[0x1],[_0x11098f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x271292};},{[_0x11098f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11098f([0x68,0x69,0x67,0x68])}),_0x29e97a[_0x11098f([0x6f,0x6e])](_0x11098f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3112cc=>{_0x598266(_0x3112cc[_0x11098f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13a24c=!0x0,_0x2257e2(_0x3112cc[_0x11098f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11098f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11098f([0x6c,0x6f,0x77])}),_0x3fc575[_0x11098f([0x74,0x68,0x65,0x6e])](()=>{_0x13a24c||_0x387c84(_0x11098f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18fd7e(){return _0x29e97a[_0x11098f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11098f([0x76,0x69,0x65,0x77])][_0x11098f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11098f([0x61,0x75,0x74,0x6f]);}function _0x3583c8(){_0x29e97a[_0x11098f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11098f([0x76,0x69,0x65,0x77])][_0x11098f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11098f([0x61,0x75,0x74,0x6f]);}}function _0x43fa81(_0x53455a){const _0x49bc41=[new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2563e1=>setTimeout(_0x2563e1,0x47abbbca^_0x350c6d)),_0x3fc575[_0x11098f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x470b63=>{let _0x4f9e00=0x0;_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x6f,0x6e])](_0x11098f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c1e93,_0x51ff96)=>{_0x51ff96[0x0][_0x11098f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f9e00++,_0x4f9e00==(0x47a280ee^_0x350c6d)&&(_0x470b63(),_0x3c1e93[_0x11098f([0x6f,0x66,0x66])]());});}))];return window[_0x11098f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11098f([0x72,0x61,0x63,0x65])](_0x49bc41)[_0x11098f([0x74,0x68,0x65,0x6e])](()=>_0x53455a);}async function _0x236f41(){await _0x3fc575,_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1960f6,_0x29e97a[_0x11098f([0x6d,0x6f,0x64,0x65,0x6c])][_0x11098f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1960f6,_0x29e97a[_0x11098f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11098f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fd4a3(_0x302ea3){const _0x4358b7=_0x156aef();_0x29e97a[_0x4358b7]=_0x11098f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x302ea3,_0x302ea3!=_0x11098f([0x56,0x61,0x6c,0x69,0x64])&&_0x236f41();}function _0x156aef(){const _0x53a785=window[_0x11098f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11098f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11098f([0x6e,0x6f,0x77])]())[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11098f([0x2e]),'');let _0x4edceb=_0x11098f([0x75]);for(let _0x191a93=0x0;_0x191a93<_0x53a785[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x191a93+=0x2){let _0x1550e6=window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a785[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x191a93,_0x191a93+0x2));_0x1550e6>=_0x1e1225[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1550e6-=_0x1e1225[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4edceb+=_0x1e1225[_0x1550e6];}return _0x4edceb;}function _0x24242b(){const _0x55f935=_0x4648db[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e]));if(0x3!=_0x55f935[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4aedae(_0x55f935[0x1]);function _0x4aedae(_0x4fe4dc){const _0x3401c5=_0x3fec02(_0x4fe4dc);return _0x3401c5&&_0x3d460e()?_0x3401c5:null;function _0x3d460e(){const _0x33de38=_0x3401c5[_0x11098f([0x6a,0x74,0x69])],_0x545a46=window[_0x11098f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33de38[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33de38[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48e490={..._0x3401c5,[_0x11098f([0x6a,0x74,0x69])]:_0x33de38[_0x11098f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33de38[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48e490[_0x11098f([0x76,0x63])],_0x2337ca(_0x48e490)==_0x545a46;}}}async function _0x6201e5(){let _0x17dfd2=!0x0;try{const _0x4898c1=_0x4648db[_0x11098f([0x73,0x70,0x6c,0x69,0x74])](_0x11098f([0x2e])),[_0x558987,_0x3df8b5,_0x164b3b]=_0x4898c1;return _0x26eb33(_0x558987),await _0x346b43(_0x558987,_0x3df8b5,_0x164b3b),_0x17dfd2;}catch{return!0x1;}function _0x26eb33(_0x44f061){const _0x236377=_0x3fec02(_0x44f061);_0x236377&&_0x236377[_0x11098f([0x61,0x6c,0x67])]==_0x11098f([0x45,0x53,0x32,0x35,0x36])||(_0x17dfd2=!0x1);}async function _0x346b43(_0x5b55a3,_0x87f80b,_0x38d897){const _0x34c8c0=window[_0x11098f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11098f([0x66,0x72,0x6f,0x6d])](_0x1fa8d2(_0x38d897),_0x26f8ee=>_0x26f8ee[_0x11098f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x82e3fa=new window[(_0x11098f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11098f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b55a3+_0x11098f([0x2e])+_0x87f80b),_0x986ce1=window[_0x11098f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11098f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x986ce1)return;const _0x14664a=await _0x986ce1[_0x11098f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11098f([0x6a,0x77,0x6b]),_0x482ee2,{[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x45,0x43,0x44,0x53,0x41]),[_0x11098f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11098f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x986ce1[_0x11098f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x45,0x43,0x44,0x53,0x41]),[_0x11098f([0x68,0x61,0x73,0x68])]:{[_0x11098f([0x6e,0x61,0x6d,0x65])]:_0x11098f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14664a,_0x34c8c0,_0x82e3fa)||(_0x17dfd2=!0x1);}}function _0x3fec02(_0x5eaaa0){return _0x5eaaa0[_0x11098f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11098f([0x65,0x79]))?JSON[_0x11098f([0x70,0x61,0x72,0x73,0x65])](_0x1fa8d2(_0x5eaaa0)):null;}function _0x1fa8d2(_0x27a990){return window[_0x11098f([0x61,0x74,0x6f,0x62])](_0x27a990[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11098f([0x2b]))[_0x11098f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11098f([0x2f])));}function _0x2337ca(_0x1aa2d0){let _0x53a0ba=0x1505;function _0x2f9c5f(_0x1b731c){for(let _0x8c921e=0x0;_0x8c921e<_0x1b731c[_0x11098f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8c921e++){const _0x4bc3e2=_0x1b731c[_0x11098f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8c921e);_0x53a0ba=(_0x53a0ba<<0x5)+_0x53a0ba+_0x4bc3e2,_0x53a0ba&=_0x53a0ba;}}function _0x3b0bdd(_0x23a993){Array[_0x11098f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23a993)?_0x23a993[_0x11098f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b0bdd):_0x23a993&&typeof _0x23a993==_0x11098f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11098f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23a993)[_0x11098f([0x73,0x6f,0x72,0x74])]()[_0x11098f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x146e51,_0x2fe637])=>{_0x2f9c5f(_0x146e51),_0x3b0bdd(_0x2fe637);}):_0x2f9c5f(window[_0x11098f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23a993));}return _0x3b0bdd(_0x1aa2d0),_0x53a0ba>>>0x0;}function _0x469b01(_0x2488d2){return _0x2488d2[_0x11098f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11098f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11098f([0x30]));}function _0x2c1f36(_0x5b7aa6){return _0x5b7aa6[_0x11098f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11098f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11098f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1960f6(){}function _0x11098f(_0x50e821){return _0x50e821['map'](_0x1c3f2e=>String['fromCharCode'](_0x1c3f2e))['join']('');}_0x4fd4a3(await _0xcbc8c5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x10f201){const {plugins:_0x476838,editing:_0x305d61,model:_0x4026cc}=this['editor'],_0x37ad68=_0x476838['get'](_0x570d5d)['getFootnote'](_0x10f201);return!!_0x37ad68&&(_0x4026cc['change'](_0x5a08c7=>{_0x5a08c7['setSelection'](_0x5a08c7['createPositionAt'](_0x37ad68['definition'],'end'));}),_0x305d61['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5525fc){const {plugins:_0x4ef959,editing:_0x159bf0,model:_0x5afe6c}=this['editor'],_0x1835cd=_0x4ef959['get'](_0x570d5d)['getFootnote'](_0x5525fc);return!!_0x1835cd&&(_0x5afe6c['change'](_0x2fb833=>{_0x2fb833['setSelection'](_0x1835cd['reference'],'on');}),_0x159bf0['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x33189f}=this['editor']['model'],_0x33566f=this['editor']['config']['get']('footnotes.multiBlock');_0x33189f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x33189f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x33189f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x33566f?_0x33189f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x33189f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x33189f['addChildCheck'](_0x4f1bf1=>{for(const _0x30df87 of _0x4f1bf1)if('footnoteDefinition'===_0x30df87['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x596481}=this,{conversion:_0x3ca7d8,editing:_0x511dcd}=_0x596481,{t:t}=_0x596481['locale'];_0x3ca7d8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x78afe5,{writer:_0x59b1af,consumable:_0x4b25dc})=>{const _0x22adcc=_0x78afe5['getChild'](0x0);if(!_0x22adcc||!_0x22adcc['is']('element','a'))return null;const _0xc03631=_0x22adcc['getAttribute']('href')||'';if(!_0xc03631['startsWith']('#'))return null;const _0x1daea6=_0xc03631['replace'](/^#/,'');if(!_0x1daea6)return null;_0x4b25dc['consume'](_0x22adcc,{'name':!0x0,'attributes':['href']});for(const {item:_0x134ea2}of _0x511dcd['view']['createRangeIn'](_0x22adcc))_0x134ea2['is']('$textProxy')?_0x4b25dc['consume'](_0x134ea2['textNode'],{'name':!0x0}):_0x134ea2['is']('element')&&_0x4b25dc['consume'](_0x134ea2,{'name':!0x0});return _0x59b1af['createElement']('footnoteRef',{'footnoteId':_0x1daea6});}}),_0x3ca7d8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4f3a69,{writer:_0x2d5b29})=>b(_0x4f3a69,_0x2d5b29)}),_0x3ca7d8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x211396,{writer:_0x493e14})=>{const _0x588c35=_0x211396['getAttribute']('footnoteCounter');return _0x3e8240(b(_0x211396,_0x493e14),_0x493e14,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x588c35)});}});}['_defineDefinitionsConverters'](){const {editor:_0x9a76e2}=this,{t:t}=_0x9a76e2['locale'],{conversion:_0xc196f1}=_0x9a76e2;_0xc196f1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xc196f1['for']('upcast')['add'](_0x2976a8=>{_0x2976a8['on']('element:ol',(_0xf950af,_0x376aa0,_0x206285)=>{const _0x353880=_0x376aa0['viewItem'];if(!_0x353880['hasClass']('footnotes-list')||!_0x376aa0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x206285['consumable']['consume'](_0x353880,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d57bf,modelCursor:_0x51185f}=_0x206285['convertChildren'](_0x376aa0['viewItem'],_0x376aa0['modelCursor']);_0x376aa0['modelRange']=_0x4d57bf,_0x376aa0['modelCursor']=_0x51185f;}),_0x2976a8['on']('element:hr',(_0x4d6035,_0x487902,_0x42da11)=>{const _0x31828f=_0x487902['viewItem'];_0x31828f['hasClass']('footnotes-divider')&&_0x487902['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x42da11['consumable']['consume'](_0x31828f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xc196f1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2c28d4,{writer:_0x402758})=>D(_0x402758)}),_0xc196f1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x38cb46,{writer:_0x3af6bc})=>{const _0x5b799a=D(_0x3af6bc,{'data-footnotes-list-label':t('Footnotes')}),_0x50ba1b=_0x3e8240(_0x5b799a,_0x3af6bc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3af6bc['setCustomProperty']('footnotesDefinitions',!0x0,_0x50ba1b),_0x50ba1b;}});}['_defineDefinitionConverters'](){const {editor:_0x117368}=this,{conversion:_0x37513f,locale:_0x37c0ee}=_0x117368,_0xe8697a=_0x117368['config']['get']('footnotes.multiBlock');_0x37513f['for']('upcast')['add'](_0x3f0fd9=>{_0x3f0fd9['on']('element:li',(_0x27d144,_0x1f5bff,_0x5b47f6)=>{const _0x2c06bd=_0x1f5bff['viewItem'];if(!_0x2c06bd['hasClass']('footnote-definition')||!_0x2c06bd['getAttribute']('id'))return;const _0x55d755=_0x2c06bd['parent'];if(!_0x55d755['is']('element','ol')||!_0x55d755['hasClass']('footnotes-list'))return;if(!_0x5b47f6['consumable']['test'](_0x2c06bd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5c9afe=_0x5b47f6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2c06bd['getAttribute']('id')});if(!_0x5b47f6['safeInsert'](_0x5c9afe,_0x1f5bff['modelCursor']))return;_0x5b47f6['consumable']['consume'](_0x2c06bd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2d2949=Array['from'](_0x2c06bd['getChildren']())['find'](_0x591776=>_0x591776['is']('element')&&_0x591776['hasClass']('footnote-content'));for(const _0xa31f87 of _0x2c06bd['getChildren']())_0xa31f87['is']('element')&&(_0x5b47f6['consumable']['consume'](_0xa31f87,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b47f6['consumable']['consume'](_0xa31f87,{'name':!0x0,'classes':'footnote-content'}));if(_0x2d2949){if(_0xe8697a)_0x5b47f6['convertChildren'](_0x2d2949,_0x5c9afe);else{const _0x52f507=_0x5b47f6['writer']['createElement']('footnoteInlineContent');_0x5b47f6['writer']['insert'](_0x52f507,_0x5c9afe),_0x5b47f6['convertChildren'](_0x2d2949,_0x52f507);}}_0x5b47f6['updateConversionResult'](_0x5c9afe,_0x1f5bff);});}),_0x37513f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1c7282,{writer:_0x3e3e13})=>y(_0x1c7282,_0x3e3e13,_0x37c0ee,{'dataPipeline':!0x0})}),_0x37513f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x23f80d,{writer:_0x18fe39})=>y(_0x23f80d,_0x18fe39,_0x37c0ee)});}['_defineBogusParagraphConverters'](){const {editor:_0x35bc9e}=this,{conversion:_0x50acfa}=_0x35bc9e;_0x35bc9e['config']['get']('footnotes.multiBlock')?(_0x50acfa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x50acfa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x35bc9e['model']['document'],'change:data',()=>{!function(_0xb509ac,_0x2fdc54){const _0x51cf8f=_0xb509ac['document']['differ'],_0x392c68=new Set();for(const _0x339c86 of _0x51cf8f['getChanges']()){const _0x36a184='attribute'==_0x339c86['type']?_0x339c86['range']['start']['parent']:_0x339c86['position']['parent'];_0x36a184['is']('element','footnoteDefinition')&&_0x392c68['add'](_0x36a184);}for(const _0x58305a of _0x392c68['values']()){const _0x2613b=Array['from'](_0x58305a['getChildren']())['filter'](_0x559d1=>v(_0x559d1,_0x2fdc54['mapper']));for(const _0x461943 of _0x2613b)_0x2fdc54['reconvertItem'](_0x461943);}}(_0x35bc9e['model'],_0x35bc9e['editing']);})):(_0x50acfa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x50acfa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x6b444d,{writer:_0x223c03})=>{const _0xa9b844=_0x223c03['createContainerElement']('span');return _0x223c03['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xa9b844),_0xa9b844;}}));}['_defineKeyboardHandlers'](){const {editor:_0x181537}=this,{editing:_0x2ccb0c,t:t}=_0x181537,_0x758fc2=_0x181537['model']['document']['selection'];_0x181537['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x181537['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2ccb0c['view']['document'],'enter',(_0x441b7d,_0x5450a3)=>{const _0x1b858f=function(_0x2985b2){const _0x528f3f=_0x2985b2['getSelectedElement']();if(_0x528f3f?.['is']('element','footnoteRef'))return _0x528f3f;return null;}(_0x758fc2);if(_0x1b858f){const _0x4bfaf1=_0x1b858f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4bfaf1),_0x5450a3['preventDefault'](),_0x441b7d['stop']();}},{'context':_0xdadc05});}['_defineClickHandlers'](){const {editor:_0x1c1d4e}=this,{editing:_0x32c836}=_0x1c1d4e;_0x1c1d4e['editing']['view']['addObserver'](_0xdb65b8),_0x1c1d4e['editing']['view']['addObserver'](_0x5bcff3);let _0x49878e=!0x1;this['listenTo'](_0x32c836['view']['document'],'pointerdown',(_0x55ff9e,_0x1a6143)=>{const {target:_0x427785}=_0x1a6143,_0x185e67=_0x32c836['view']['document']['selection'];_0x49878e=!!(_0x427785?.['is']('element','a')&&_0x427785['parent']?.['is']('element','sup')&&_0x427785['parent']['hasClass']('footnote'))&&_0x185e67['getSelectedElement']()===_0x427785['parent'];},{'priority':'high'}),this['listenTo'](_0x32c836['view']['document'],'click',(_0x25e580,_0x22e5f3)=>{const {target:_0x9d7d1b}=_0x22e5f3;if(!_0x9d7d1b?.['is']('element','a'))return;if(_0x9d7d1b['parent']?.['is']('element','sup')&&_0x9d7d1b['parent']['hasClass']('footnote')&&!_0x49878e)return void _0x22e5f3['preventDefault']();let _0x8d9251=_0x9d7d1b['getAttribute']('href');if(!_0x8d9251?.['startsWith']('#'))return;_0x8d9251=_0x8d9251['slice'](0x1);let _0x5194b3=!0x1;(_0x8d9251['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x8d9251['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x8d9251))&&(_0x5194b3=!0x0),_0x5194b3&&(_0x22e5f3['preventDefault'](),_0x25e580['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x4c9c84}={}){return(_0x4d78a6,{writer:_0x19cc6f})=>{if(!g(_0x4d78a6))return null;if(!_0x4c9c84)return _0x19cc6f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x36c7d4=_0x19cc6f['createContainerElement']('p');return _0x19cc6f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x36c7d4),_0x36c7d4;};}function g(_0x5a26ae){const {parent:_0x41870d}=_0x5a26ae;if(!_0x41870d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x41870d['childCount'])return!0x1;for(const _0x317f79 of _0x5a26ae['getAttributeKeys']())if(!_0x317f79['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x317f79)return!0x1;return!0x0;}function v(_0x3449f7,_0x286b38){if(!_0x3449f7['is']('element','paragraph'))return!0x1;const _0x4cf671=_0x286b38['toViewElement'](_0x3449f7);return!!_0x4cf671&&g(_0x3449f7)!==_0x4cf671['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x30aea7){return _0xdadc05(_0x30aea7)&&_0x30aea7['is']('containerElement')&&!!_0x30aea7['getCustomProperty']('footnotesDefinitions');}function D(_0x3abcce,_0x58bad1={}){const _0xba6dbf=_0x3abcce['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xf4899f=_0x3abcce['createContainerElement']('ol',{'class':'footnotes-list'},_0x3abcce['createSlot']());return _0x3abcce['createContainerElement']('div',{'class':'footnotes',..._0x58bad1},[_0xba6dbf,_0xf4899f]);}function b(_0x59a5dc,_0x234967){const _0x583298=_0x59a5dc['getAttribute']('footnoteId'),_0x30d721=_0x59a5dc['getAttribute']('footnoteCounter'),_0x222f61=_0x234967['createUIElement']('a',{'href':'#'+_0x583298},function(_0x3c4cb4){const _0x312b22=this['toDomElement'](_0x3c4cb4);return _0x312b22['textContent']=_0x30d721,_0x312b22;}),_0x3fd560=_0x234967['createContainerElement']('sup',{'id':'ref-'+_0x583298,'class':'footnote'},[_0x222f61]);return _0x3fd560['getFillerOffset']=()=>null,_0x3fd560;}function y(_0x1cd0b5,_0x5e65be,_0x5e6a65,{dataPipeline:_0x387fd1}={}){const {t:t}=_0x5e6a65,_0x29ac4c=_0x1cd0b5['getAttribute']('footnoteId'),_0x3a0379=_0x5e65be['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x29ac4c},function(_0x2cd07b){const _0xfa8cc2=this['toDomElement'](_0x2cd07b);return _0xfa8cc2['innerText']='^',_0xfa8cc2;}),_0x18e511=_0x387fd1?_0x5e65be['createContainerElement']('div',{'class':'footnote-content'}):_0x3ecac3(_0x5e65be['createEditableElement']('div',{'class':'footnote-content'}),_0x5e65be,{'label':t('Footnote\x20content.')});return _0x5e65be['insert'](_0x5e65be['createPositionAt'](_0x18e511,0x0),_0x5e65be['createSlot']()),_0x5e65be['createContainerElement']('li',{'class':'footnote-definition','id':_0x29ac4c},[_0x3a0379,_0x18e511]);}
|